Skip to content

Commit d213dac

Browse files
authored
Merge pull request #1380 from DNNCommunity/release/0.27.6
Released v0.27.6
2 parents fc2aab4 + 0c25eae commit d213dac

File tree

79 files changed

+13059
-12192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+13059
-12192
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ version: 2
77
updates:
88
- package-ecosystem: "npm" # See documentation for possible values
99
directory: "/" # Location of package manifests
10+
open-pull-requests-limit: 10
1011
schedule:
1112
interval: "monthly"
1213
- package-ecosystem: "nuget"
1314
directory: "/_build"
15+
open-pull-requests-limit: 10
1416
schedule:
1517
interval: "monthly"

.github/workflows/Publish_Site.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ on:
2121
branches:
2222
- main
2323
- master
24-
- 'release/*'
2524

2625
jobs:
2726
ubuntu-latest:

package-lock.json

Lines changed: 8556 additions & 11355 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"test": "npx lerna run test"
1111
},
1212
"devDependencies": {
13-
"@types/node": "^22.14.0",
13+
"@types/node": "^24.3.0",
1414
"lerna": "^8.0.0",
1515
"typescript": "^5.0.3"
1616
}

packages/react-library/README.md

Lines changed: 68 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,76 @@
1-
# `dnn-elements-react`
2-
This is a collection of pure web components (custom elements) for use within DNN Platform or custom extensions for DNN. These can even be used in projects outside of the DNN purview, though some are unique for the DNN experience. The web components in `dnn-elements-react` are framework specific to React. For framework agnostic web components, you can use `dnn-elements`.
1+
# DNN Elements React
32

4-
## Usage
5-
### npm
6-
`npm install @dnncommunity/dnn-elements-react`
3+
React wrapper components for DNN Elements using the latest Stencil React Output Target.
74

8-
### yarn
9-
`yarn add @dnncommunity/dnn-elements-react`
5+
## Installation
106

7+
```bash
8+
npm install @dnncommunity/dnn-elements-react
119
```
12-
// App.tsx
13-
import { DnnButton, defineCustomElements } from '@dnncommunity/dnn-elements-react';
1410

15-
defineCustomElements();
11+
## Usage
12+
13+
### Basic Setup
1614

15+
```tsx
16+
import React, { useEffect } from 'react';
17+
import { defineCustomElements } from '@dnncommunity/dnn-elements-react';
18+
19+
// Call this once in your app's main component or index file
1720
function App() {
18-
return (
19-
<div className="App>
20-
<DnnButton type="secondary">Secondary Button</DnnButton>
21-
</div>
22-
);
21+
useEffect(() => {
22+
defineCustomElements();
23+
}, []);
24+
25+
return (
26+
<div>
27+
{/* Your app content */}
28+
</div>
29+
);
2330
}
24-
```
31+
```
32+
33+
### Using Components
34+
35+
```tsx
36+
import React, { useState } from 'react';
37+
import { DnnButton, DnnInput, DnnCheckbox } from '@dnncommunity/dnn-elements-react';
38+
39+
function MyComponent() {
40+
const [inputValue, setInputValue] = useState('');
41+
const [checked, setChecked] = useState(false);
42+
43+
return (
44+
<div>
45+
<DnnButton
46+
onClick={() => console.log('Button clicked!')}
47+
>
48+
Click me
49+
</DnnButton>
50+
51+
<DnnInput
52+
label="Your Name"
53+
helpText="Enter your name..."
54+
value={inputValue}
55+
onValueChange={(e) => setInputValue(e.detail)}
56+
/>
57+
58+
<DnnCheckbox
59+
label="Agree to terms"
60+
checked={checked}
61+
onCheckedChange={(e) => setChecked(e.detail)}
62+
/>
63+
</div>
64+
);
65+
}
66+
```
67+
68+
## TypeScript Support
69+
70+
This package includes full TypeScript definitions for all components with proper prop types and event handlers.
71+
72+
## Testing
73+
74+
A test React application is available in the `test-app/` directory to verify component functionality.
75+
76+
This is a collection of pure web components (custom elements) for use within DNN Platform or custom extensions for DNN. These can even be used in projects outside of the DNN purview, though some are unique for the DNN experience. The web components in `dnn-elements-react` are framework specific to React. For framework agnostic web components, you can use `dnn-elements`.

packages/react-library/lib/components/stencil-generated/components.ts

Lines changed: 397 additions & 0 deletions
Large diffs are not rendered by default.

packages/react-library/lib/components/stencil-generated/index.ts

Lines changed: 0 additions & 36 deletions
This file was deleted.

packages/react-library/lib/components/stencil-generated/react-component-lib/attachProps.ts

Lines changed: 0 additions & 125 deletions
This file was deleted.

packages/react-library/lib/components/stencil-generated/react-component-lib/case.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)