@politiet/sheriff-web-components 2.12.0 → 2.13.1
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/custom-elements.json +224 -8
- package/dist/frameworks/vue.d.ts +79 -30
- package/dist/frameworks/vue.d.ts.map +1 -1
- package/dist/mixins/sds-dialog-target-mixin.d.ts.map +1 -1
- package/dist/mixins/sds-dialog-target-mixin.js +10 -0
- package/dist/mixins/sds-dialog-target-mixin.js.map +1 -1
- package/dist/sds-alert/sds-alert.component.js +3 -3
- package/dist/sds-alert/sds-alert.component.js.map +1 -1
- package/dist/sds-alert/sds-alert.styles.d.ts.map +1 -1
- package/dist/sds-alert/sds-alert.styles.js +0 -6
- package/dist/sds-alert/sds-alert.styles.js.map +1 -1
- package/dist/sds-button/sds-button.component.d.ts +1 -0
- package/dist/sds-button/sds-button.component.d.ts.map +1 -1
- package/dist/sds-button/sds-button.component.js.map +1 -1
- package/dist/sds-button/sds-button.styles.d.ts.map +1 -1
- package/dist/sds-button/sds-button.styles.js +7 -2
- package/dist/sds-button/sds-button.styles.js.map +1 -1
- package/dist/sds-details/sds-details.styles.d.ts.map +1 -1
- package/dist/sds-details/sds-details.styles.js +4 -2
- package/dist/sds-details/sds-details.styles.js.map +1 -1
- package/dist/sds-dialog/sds-dialog.styles.d.ts.map +1 -1
- package/dist/sds-dialog/sds-dialog.styles.js +2 -0
- package/dist/sds-dialog/sds-dialog.styles.js.map +1 -1
- package/dist/sds-icon/sds-icon-loader.d.ts +1 -0
- package/dist/sds-icon/sds-icon-loader.d.ts.map +1 -1
- package/dist/sds-icon/sds-icon-loader.js +21 -14
- package/dist/sds-icon/sds-icon-loader.js.map +1 -1
- package/dist/sds-radio/sds-radio.d.ts +53 -1
- package/dist/sds-radio/sds-radio.d.ts.map +1 -1
- package/dist/sds-radio/sds-radio.js +218 -41
- package/dist/sds-radio/sds-radio.js.map +1 -1
- package/dist/sds-radio/sds-radio.styles.js +36 -36
- package/dist/sds-radio/sds-radio.styles.js.map +1 -1
- package/dist/sds-radio-group/sds-radio-group.d.ts +4 -2
- package/dist/sds-radio-group/sds-radio-group.d.ts.map +1 -1
- package/dist/sds-radio-group/sds-radio-group.js +10 -3
- package/dist/sds-radio-group/sds-radio-group.js.map +1 -1
- package/dist/sds-text/sds-text.component.d.ts +2 -0
- package/dist/sds-text/sds-text.component.d.ts.map +1 -1
- package/dist/sds-text/sds-text.component.js +4 -0
- package/dist/sds-text/sds-text.component.js.map +1 -1
- package/dist/sds-text/sds-text.styles.d.ts.map +1 -1
- package/dist/sds-text/sds-text.styles.js +4 -0
- package/dist/sds-text/sds-text.styles.js.map +1 -1
- package/dist/sds-textarea/sds-textarea.styles.d.ts.map +1 -1
- package/dist/sds-textarea/sds-textarea.styles.js +2 -0
- package/dist/sds-textarea/sds-textarea.styles.js.map +1 -1
- package/dist/shared/assets/positioning.js +1 -1
- package/dist/sheriff-web-components.js +206 -194
- package/dist/skill/SKILL.md +127 -41
- package/dist/skill/references/components.md +247 -35
- package/dist/skill/references/react-wrappers.md +34 -9
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +78 -36
- package/web-types.json +163 -45
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@politiet/sheriff-web-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.1",
|
|
4
4
|
"description": "Sheriff Design System Web Components Library",
|
|
5
5
|
"author": "Politiets IT-enhet",
|
|
6
6
|
"license": "ISC",
|
|
@@ -15,10 +15,17 @@
|
|
|
15
15
|
"web-types.json",
|
|
16
16
|
"custom-elements.json"
|
|
17
17
|
],
|
|
18
|
+
"sideEffects": [
|
|
19
|
+
"./dist/index.js",
|
|
20
|
+
"./dist/sds-*/sds-*.js",
|
|
21
|
+
"./dist/shared/**/positioning.js",
|
|
22
|
+
"./dist/sheriff-web-components.js"
|
|
23
|
+
],
|
|
18
24
|
"exports": {
|
|
19
25
|
".": {
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
20
27
|
"import": "./dist/index.js",
|
|
21
|
-
"
|
|
28
|
+
"default": "./dist/index.js"
|
|
22
29
|
},
|
|
23
30
|
"./framework/preact": {
|
|
24
31
|
"types": "./dist/frameworks/preact.d.ts"
|
|
@@ -36,131 +43,165 @@
|
|
|
36
43
|
"types": "./dist/frameworks/vue.d.ts"
|
|
37
44
|
},
|
|
38
45
|
"./react-wrappers": {
|
|
46
|
+
"types": "./dist/react-wrappers/index.d.ts",
|
|
39
47
|
"import": "./dist/react-wrappers/index.js",
|
|
40
|
-
"
|
|
48
|
+
"default": "./dist/react-wrappers/index.js"
|
|
41
49
|
},
|
|
42
50
|
"./sds-alert": {
|
|
51
|
+
"types": "./dist/sds-alert/sds-alert.d.ts",
|
|
43
52
|
"import": "./dist/sds-alert/sds-alert.js",
|
|
44
|
-
"
|
|
53
|
+
"default": "./dist/sds-alert/sds-alert.js"
|
|
45
54
|
},
|
|
46
55
|
"./sds-button": {
|
|
56
|
+
"types": "./dist/sds-button/sds-button.d.ts",
|
|
47
57
|
"import": "./dist/sds-button/sds-button.js",
|
|
48
|
-
"
|
|
58
|
+
"default": "./dist/sds-button/sds-button.js"
|
|
49
59
|
},
|
|
50
60
|
"./sds-card": {
|
|
61
|
+
"types": "./dist/sds-card/sds-card.d.ts",
|
|
51
62
|
"import": "./dist/sds-card/sds-card.js",
|
|
52
|
-
"
|
|
63
|
+
"default": "./dist/sds-card/sds-card.js"
|
|
53
64
|
},
|
|
54
65
|
"./sds-checkbox": {
|
|
66
|
+
"types": "./dist/sds-checkbox/sds-checkbox.d.ts",
|
|
55
67
|
"import": "./dist/sds-checkbox/sds-checkbox.js",
|
|
56
|
-
"
|
|
68
|
+
"default": "./dist/sds-checkbox/sds-checkbox.js"
|
|
57
69
|
},
|
|
58
70
|
"./sds-checkbox-group": {
|
|
71
|
+
"types": "./dist/sds-checkbox-group/sds-checkbox-group.d.ts",
|
|
59
72
|
"import": "./dist/sds-checkbox-group/sds-checkbox-group.js",
|
|
60
|
-
"
|
|
73
|
+
"default": "./dist/sds-checkbox-group/sds-checkbox-group.js"
|
|
61
74
|
},
|
|
62
75
|
"./sds-chip": {
|
|
76
|
+
"types": "./dist/sds-chip/sds-chip.d.ts",
|
|
63
77
|
"import": "./dist/sds-chip/sds-chip.js",
|
|
64
|
-
"
|
|
78
|
+
"default": "./dist/sds-chip/sds-chip.js"
|
|
65
79
|
},
|
|
66
80
|
"./sds-details": {
|
|
81
|
+
"types": "./dist/sds-details/sds-details.d.ts",
|
|
67
82
|
"import": "./dist/sds-details/sds-details.js",
|
|
68
|
-
"
|
|
83
|
+
"default": "./dist/sds-details/sds-details.js"
|
|
69
84
|
},
|
|
70
85
|
"./sds-details-group": {
|
|
86
|
+
"types": "./dist/sds-details-group/sds-details-group.d.ts",
|
|
71
87
|
"import": "./dist/sds-details-group/sds-details-group.js",
|
|
72
|
-
"
|
|
88
|
+
"default": "./dist/sds-details-group/sds-details-group.js"
|
|
73
89
|
},
|
|
74
90
|
"./sds-dialog": {
|
|
91
|
+
"types": "./dist/sds-dialog/sds-dialog.d.ts",
|
|
75
92
|
"import": "./dist/sds-dialog/sds-dialog.js",
|
|
76
|
-
"
|
|
93
|
+
"default": "./dist/sds-dialog/sds-dialog.js"
|
|
77
94
|
},
|
|
78
95
|
"./sds-environment-banner": {
|
|
96
|
+
"types": "./dist/sds-environment-banner/sds-environment-banner.d.ts",
|
|
79
97
|
"import": "./dist/sds-environment-banner/sds-environment-banner.js",
|
|
80
|
-
"
|
|
98
|
+
"default": "./dist/sds-environment-banner/sds-environment-banner.js"
|
|
81
99
|
},
|
|
82
100
|
"./sds-heading": {
|
|
101
|
+
"types": "./dist/sds-heading/sds-heading.d.ts",
|
|
83
102
|
"import": "./dist/sds-heading/sds-heading.js",
|
|
84
|
-
"
|
|
103
|
+
"default": "./dist/sds-heading/sds-heading.js"
|
|
85
104
|
},
|
|
86
105
|
"./sds-icon": {
|
|
106
|
+
"types": "./dist/sds-icon/sds-icon.d.ts",
|
|
87
107
|
"import": "./dist/sds-icon/sds-icon.js",
|
|
88
|
-
"
|
|
108
|
+
"default": "./dist/sds-icon/sds-icon.js"
|
|
89
109
|
},
|
|
90
110
|
"./sds-icon/icon-loader": {
|
|
111
|
+
"types": "./dist/sds-icon/sds-icon-loader.d.ts",
|
|
91
112
|
"import": "./dist/sds-icon/sds-icon-loader.js",
|
|
92
|
-
"
|
|
113
|
+
"default": "./dist/sds-icon/sds-icon-loader.js"
|
|
93
114
|
},
|
|
94
115
|
"./sds-internal-header": {
|
|
116
|
+
"types": "./dist/sds-internal-header/sds-internal-header.d.ts",
|
|
95
117
|
"import": "./dist/sds-internal-header/sds-internal-header.js",
|
|
96
|
-
"
|
|
118
|
+
"default": "./dist/sds-internal-header/sds-internal-header.js"
|
|
97
119
|
},
|
|
98
120
|
"./sds-loader": {
|
|
121
|
+
"types": "./dist/sds-loader/sds-loader.d.ts",
|
|
99
122
|
"import": "./dist/sds-loader/sds-loader.js",
|
|
100
|
-
"
|
|
123
|
+
"default": "./dist/sds-loader/sds-loader.js"
|
|
101
124
|
},
|
|
102
125
|
"./sds-notification": {
|
|
126
|
+
"types": "./dist/sds-notification/sds-notification.d.ts",
|
|
103
127
|
"import": "./dist/sds-notification/sds-notification.js",
|
|
104
|
-
"
|
|
128
|
+
"default": "./dist/sds-notification/sds-notification.js"
|
|
105
129
|
},
|
|
106
130
|
"./sds-process": {
|
|
131
|
+
"types": "./dist/sds-process/sds-process.d.ts",
|
|
107
132
|
"import": "./dist/sds-process/sds-process.js",
|
|
108
|
-
"
|
|
133
|
+
"default": "./dist/sds-process/sds-process.js"
|
|
109
134
|
},
|
|
110
135
|
"./sds-process-step": {
|
|
136
|
+
"types": "./dist/sds-process-step/sds-process-step.d.ts",
|
|
111
137
|
"import": "./dist/sds-process-step/sds-process-step.js",
|
|
112
|
-
"
|
|
138
|
+
"default": "./dist/sds-process-step/sds-process-step.js"
|
|
113
139
|
},
|
|
114
140
|
"./sds-popover": {
|
|
141
|
+
"types": "./dist/sds-popover/sds-popover.d.ts",
|
|
115
142
|
"import": "./dist/sds-popover/sds-popover.js",
|
|
116
|
-
"
|
|
143
|
+
"default": "./dist/sds-popover/sds-popover.js"
|
|
117
144
|
},
|
|
118
145
|
"./sds-radio": {
|
|
146
|
+
"types": "./dist/sds-radio/sds-radio.d.ts",
|
|
119
147
|
"import": "./dist/sds-radio/sds-radio.js",
|
|
120
|
-
"
|
|
148
|
+
"default": "./dist/sds-radio/sds-radio.js"
|
|
121
149
|
},
|
|
122
150
|
"./sds-radio-group": {
|
|
151
|
+
"types": "./dist/sds-radio-group/sds-radio-group.d.ts",
|
|
123
152
|
"import": "./dist/sds-radio-group/sds-radio-group.js",
|
|
124
|
-
"
|
|
153
|
+
"default": "./dist/sds-radio-group/sds-radio-group.js"
|
|
125
154
|
},
|
|
126
155
|
"./sds-select": {
|
|
156
|
+
"types": "./dist/sds-select/sds-select.d.ts",
|
|
127
157
|
"import": "./dist/sds-select/sds-select.js",
|
|
128
|
-
"
|
|
158
|
+
"default": "./dist/sds-select/sds-select.js"
|
|
129
159
|
},
|
|
130
160
|
"./sds-stepper": {
|
|
161
|
+
"types": "./dist/sds-stepper/sds-stepper.d.ts",
|
|
131
162
|
"import": "./dist/sds-stepper/sds-stepper.js",
|
|
132
|
-
"
|
|
163
|
+
"default": "./dist/sds-stepper/sds-stepper.js"
|
|
133
164
|
},
|
|
134
165
|
"./sds-stepper-step": {
|
|
166
|
+
"types": "./dist/sds-stepper-step/sds-stepper-step.d.ts",
|
|
135
167
|
"import": "./dist/sds-stepper-step/sds-stepper-step.js",
|
|
136
|
-
"
|
|
168
|
+
"default": "./dist/sds-stepper-step/sds-stepper-step.js"
|
|
137
169
|
},
|
|
138
170
|
"./sds-switch": {
|
|
171
|
+
"types": "./dist/sds-switch/sds-switch.d.ts",
|
|
139
172
|
"import": "./dist/sds-switch/sds-switch.js",
|
|
140
|
-
"
|
|
173
|
+
"default": "./dist/sds-switch/sds-switch.js"
|
|
141
174
|
},
|
|
142
175
|
"./sds-tag": {
|
|
176
|
+
"types": "./dist/sds-tag/sds-tag.d.ts",
|
|
143
177
|
"import": "./dist/sds-tag/sds-tag.js",
|
|
144
|
-
"
|
|
178
|
+
"default": "./dist/sds-tag/sds-tag.js"
|
|
145
179
|
},
|
|
146
180
|
"./sds-text": {
|
|
181
|
+
"types": "./dist/sds-text/sds-text.d.ts",
|
|
147
182
|
"import": "./dist/sds-text/sds-text.js",
|
|
148
|
-
"
|
|
183
|
+
"default": "./dist/sds-text/sds-text.js"
|
|
149
184
|
},
|
|
150
185
|
"./sds-textarea": {
|
|
186
|
+
"types": "./dist/sds-textarea/sds-textarea.d.ts",
|
|
151
187
|
"import": "./dist/sds-textarea/sds-textarea.js",
|
|
152
|
-
"
|
|
188
|
+
"default": "./dist/sds-textarea/sds-textarea.js"
|
|
153
189
|
},
|
|
154
190
|
"./sds-textfield": {
|
|
191
|
+
"types": "./dist/sds-textfield/sds-textfield.d.ts",
|
|
155
192
|
"import": "./dist/sds-textfield/sds-textfield.js",
|
|
156
|
-
"
|
|
193
|
+
"default": "./dist/sds-textfield/sds-textfield.js"
|
|
157
194
|
},
|
|
158
195
|
"./sds-tooltip": {
|
|
196
|
+
"types": "./dist/sds-tooltip/sds-tooltip.d.ts",
|
|
159
197
|
"import": "./dist/sds-tooltip/sds-tooltip.js",
|
|
160
|
-
"
|
|
161
|
-
}
|
|
198
|
+
"default": "./dist/sds-tooltip/sds-tooltip.js"
|
|
199
|
+
},
|
|
200
|
+
"./package.json": "./package.json"
|
|
162
201
|
},
|
|
163
202
|
"scripts": {
|
|
203
|
+
"test": "vitest run",
|
|
204
|
+
"test:watch": "vitest",
|
|
164
205
|
"tidy-frameworks": "node ../../../scripts/delete-filetypes-from-folder.js --folder ./dist/frameworks --filetypes js,js.map",
|
|
165
206
|
"build:component-version": "node generate-version.cjs",
|
|
166
207
|
"build": "npm run build:shared && npm run build:popover && npm run build:tooltip && npm run build:component-version && tsc && npm run tidy-frameworks && npm run build:metadata && npm run build:skill",
|
|
@@ -177,10 +218,10 @@
|
|
|
177
218
|
},
|
|
178
219
|
"optionalDependencies": {
|
|
179
220
|
"@lit/react": "^1.0.8",
|
|
180
|
-
"@politiet/sheriff-icons": "^2.1.
|
|
221
|
+
"@politiet/sheriff-icons": "^2.1.1"
|
|
181
222
|
},
|
|
182
223
|
"peerDependencies": {
|
|
183
|
-
"@politiet/sheriff-css-framework": "^2.6.
|
|
224
|
+
"@politiet/sheriff-css-framework": "^2.6.1",
|
|
184
225
|
"typescript": ">=3.8.0"
|
|
185
226
|
},
|
|
186
227
|
"peerDependenciesMeta": {
|
|
@@ -200,6 +241,7 @@
|
|
|
200
241
|
"rollup": "^4.59.0",
|
|
201
242
|
"solid-js": "^1.9.4",
|
|
202
243
|
"ts-lit-plugin": "^2.0.2",
|
|
244
|
+
"vitest": "^3.2.4",
|
|
203
245
|
"vue": "^3.5.13",
|
|
204
246
|
"web-component-analyzer-webtypes": "^2.0.12"
|
|
205
247
|
},
|