@politiet/sheriff-web-components 1.0.0-beta.3 → 1.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/frameworks/react.d.ts +15 -0
- package/package.json +2 -2
|
@@ -20,6 +20,21 @@ import { SDSTextFieldProps } from '../sds-textfield/sds-textfield';
|
|
|
20
20
|
declare module 'react' {
|
|
21
21
|
namespace JSX {
|
|
22
22
|
interface IntrinsicElements {
|
|
23
|
+
/**
|
|
24
|
+
* `<sds-button>` - A styled button component.
|
|
25
|
+
*
|
|
26
|
+
* Attributes:
|
|
27
|
+
* - **type**: Button type ('button', 'submit', or 'reset').
|
|
28
|
+
* - **variant**: Visual style variant ('primary', 'secondary', 'tertiary', 'critical').
|
|
29
|
+
* - **size**: Button size ('large', 'medium', 'small').
|
|
30
|
+
* - **disabled**: Disables the button.
|
|
31
|
+
* - **name**: The name attribute for form submission.
|
|
32
|
+
* - **value**: The value attribute for form submission.
|
|
33
|
+
* - **form**: Associates the button with a form.
|
|
34
|
+
* - **onClick**: Callback fired on click events.
|
|
35
|
+
* - **onSubmit**: Callback fired on submit events.
|
|
36
|
+
* - **onReset**: Callback fired on reset events.
|
|
37
|
+
*/
|
|
23
38
|
'sds-button': SDSButtonProps & React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
24
39
|
'sds-checkbox': SDSCheckboxProps & React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
25
40
|
'sds-checkbox-group': SDSCheckboxGroupProps & React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@politiet/sheriff-web-components",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.5",
|
|
4
4
|
"description": "Sheriff Design System Web Components Library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"lit": "^3.2.0"
|
|
142
142
|
},
|
|
143
143
|
"peerDependencies": {
|
|
144
|
-
"@politiet/sheriff-css-framework": "^1.0.0"
|
|
144
|
+
"@politiet/sheriff-css-framework": "^1.0.0-rc.1"
|
|
145
145
|
},
|
|
146
146
|
"author": "Politiets IT-enhet",
|
|
147
147
|
"license": "ISC"
|