@folkehelseinstituttet/designsystem 0.41.3 → 0.42.0
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 +1 -1
- package/fhi-callout.d.ts +1 -0
- package/fhi-callout.js +142 -0
- package/fhi-callout.js.map +1 -0
- package/fhi-callout.manifest.json +1 -0
- package/fhi-data-table.js +1 -1
- package/index.js +125 -124
- package/package.json +1 -1
- package/web-types.json +54 -1
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@folkehelseinstituttet/designsystem",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.42.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -207,6 +207,59 @@
|
|
|
207
207
|
]
|
|
208
208
|
}
|
|
209
209
|
},
|
|
210
|
+
{
|
|
211
|
+
"name": "fhi-callout",
|
|
212
|
+
"description": "## FHI Callout\n\nhttps://designsystem.fhi.no/?path=/docs/komponenter-callout--docs\n\nThe `<fhi-callout>` component represents a callout message.\nIt should be used to highlight important information or warnings.\n---\n\n\n### **Slot Section:**\n - _default_ - The main content of the callout. This is typically plain text or other inline elements.\n- **icon** - Optional icon to be displayed in the callout.",
|
|
213
|
+
"doc-url": "",
|
|
214
|
+
"attributes": [
|
|
215
|
+
{
|
|
216
|
+
"name": "color",
|
|
217
|
+
"description": "The color of the callout, which indicates the type of message being conveyed.",
|
|
218
|
+
"value": { "type": "string", "default": "'neutral'" }
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "heading",
|
|
222
|
+
"description": "The heading of the callout. This is optional and can be used to provide a title for the callout message.",
|
|
223
|
+
"value": { "type": "string" }
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "variant",
|
|
227
|
+
"description": "The variant of the callout, which determines the visual style of the callout.",
|
|
228
|
+
"value": { "type": "string", "default": "'subtle'" }
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"slots": [
|
|
232
|
+
{
|
|
233
|
+
"name": "",
|
|
234
|
+
"description": "The main content of the callout. This is typically plain text or other inline elements."
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "icon",
|
|
238
|
+
"description": "Optional icon to be displayed in the callout."
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"events": [],
|
|
242
|
+
"js": {
|
|
243
|
+
"properties": [
|
|
244
|
+
{
|
|
245
|
+
"name": "color",
|
|
246
|
+
"description": "The color of the callout, which indicates the type of message being conveyed.",
|
|
247
|
+
"type": "string"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "heading",
|
|
251
|
+
"description": "The heading of the callout. This is optional and can be used to provide a title for the callout message.",
|
|
252
|
+
"type": "string"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"name": "variant",
|
|
256
|
+
"description": "The variant of the callout, which determines the visual style of the callout.",
|
|
257
|
+
"type": "string"
|
|
258
|
+
}
|
|
259
|
+
],
|
|
260
|
+
"events": []
|
|
261
|
+
}
|
|
262
|
+
},
|
|
210
263
|
{
|
|
211
264
|
"name": "fhi-checkbox",
|
|
212
265
|
"description": "## FHI Checkbox\n\nhttps://designsystem.fhi.no/?path=/docs/komponenter-checkbox--docs\n\nThe `<fhi-checkbox>` component represents a checkbox input element styled and implemented according to the FHI Design System guidelines.\nIt allows users to make binary choices, such as selecting or deselecting an option.\n---\n\n\n### **Custom Events:**\n - **change** - Standard DOM event with the type `change`.\nThis event is dispatched when the checkbox is checked or unchecked.\n- **input** - Standard DOM event with the type `input`.\nThis event is dispatched when the checkbox is checked or unchecked.",
|