@statistikzh/leu 0.15.1 → 0.17.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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/Accordion.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/ChartWrapper.js +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/CheckboxGroup.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ChipGroup.js +1 -1
- package/dist/ChipLink.js +1 -1
- package/dist/ChipRemovable.js +1 -1
- package/dist/ChipSelectable.js +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/Dropdown.js +1 -1
- package/dist/Icon.js +1 -1
- package/dist/Input.js +1 -1
- package/dist/{LeuElement-B84x5CPL.js → LeuElement-BRZYxDjR.js} +1 -1
- package/dist/Menu.js +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Message.d.ts +63 -0
- package/dist/Message.js +268 -0
- package/dist/Pagination.js +1 -1
- package/dist/Placeholder.js +1 -1
- package/dist/Popup.js +1 -1
- package/dist/Radio.js +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/Range.js +1 -1
- package/dist/ScrollTop.js +1 -1
- package/dist/Select.js +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/Tag.d.ts +17 -0
- package/dist/Tag.js +75 -0
- package/dist/VisuallyHidden.js +1 -1
- package/dist/components/message/Message.d.ts +59 -0
- package/dist/components/message/Message.d.ts.map +1 -0
- package/dist/components/message/leu-message.d.ts +3 -0
- package/dist/components/message/leu-message.d.ts.map +1 -0
- package/dist/components/message/stories/message.stories.d.ts +179 -0
- package/dist/components/message/stories/message.stories.d.ts.map +1 -0
- package/dist/components/message/test/message.test.d.ts +2 -0
- package/dist/components/message/test/message.test.d.ts.map +1 -0
- package/dist/components/tag/Tag.d.ts +13 -0
- package/dist/components/tag/Tag.d.ts.map +1 -0
- package/dist/components/tag/leu-tag.d.ts +3 -0
- package/dist/components/tag/leu-tag.d.ts.map +1 -0
- package/dist/components/tag/stories/tag.stories.d.ts +136 -0
- package/dist/components/tag/stories/tag.stories.d.ts.map +1 -0
- package/dist/components/tag/test/tag.test.d.ts +2 -0
- package/dist/components/tag/test/tag.test.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/dist/leu-accordion.js +1 -1
- package/dist/leu-button-group.js +1 -1
- package/dist/leu-button.js +1 -1
- package/dist/leu-chart-wrapper.js +1 -1
- package/dist/leu-checkbox-group.js +1 -1
- package/dist/leu-checkbox.js +1 -1
- package/dist/leu-chip-group.js +1 -1
- package/dist/leu-chip-link.js +1 -1
- package/dist/leu-chip-removable.js +1 -1
- package/dist/leu-chip-selectable.js +1 -1
- package/dist/leu-dialog.js +1 -1
- package/dist/leu-dropdown.js +1 -1
- package/dist/leu-icon.js +1 -1
- package/dist/leu-input.js +1 -1
- package/dist/leu-menu-item.js +1 -1
- package/dist/leu-menu.js +1 -1
- package/dist/leu-message.d.ts +5 -0
- package/dist/leu-message.js +12 -0
- package/dist/leu-pagination.js +1 -1
- package/dist/leu-placeholder.js +1 -1
- package/dist/leu-popup.js +1 -1
- package/dist/leu-radio-group.js +1 -1
- package/dist/leu-radio.js +1 -1
- package/dist/leu-range.js +1 -1
- package/dist/leu-scroll-top.js +1 -1
- package/dist/leu-select.js +1 -1
- package/dist/leu-spinner.js +1 -1
- package/dist/leu-table.js +1 -1
- package/dist/leu-tag.d.ts +4 -0
- package/dist/leu-tag.js +9 -0
- package/dist/leu-visually-hidden.js +1 -1
- package/dist/vscode.html-custom-data.json +68 -11
- package/dist/vue/index.d.ts +72 -20
- package/dist/web-types.json +137 -28
- package/package.json +1 -1
- package/src/components/message/Message.ts +118 -0
- package/src/components/message/leu-message.ts +5 -0
- package/src/components/message/message.css +163 -0
- package/src/components/message/stories/message.mdx +76 -0
- package/src/components/message/stories/message.stories.ts +149 -0
- package/src/components/message/test/message.test.ts +96 -0
- package/src/components/tag/Tag.ts +28 -0
- package/src/components/tag/leu-tag.ts +5 -0
- package/src/components/tag/stories/tag.stories.ts +107 -0
- package/src/components/tag/tag.css +42 -0
- package/src/components/tag/test/tag.test.ts +28 -0
- package/src/docs/theme.mdx +49 -2
- package/src/styles/custom-media.css +1 -0
package/dist/leu-dialog.js
CHANGED
|
@@ -2,7 +2,7 @@ import { LeuDialog } from './Dialog.js';
|
|
|
2
2
|
import 'lit';
|
|
3
3
|
import 'lit/directives/ref.js';
|
|
4
4
|
import 'lit/directives/class-map.js';
|
|
5
|
-
import './LeuElement-
|
|
5
|
+
import './LeuElement-BRZYxDjR.js';
|
|
6
6
|
import './hasSlotController-Bm2tipvG.js';
|
|
7
7
|
import './Icon.js';
|
|
8
8
|
|
package/dist/leu-dropdown.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LeuDropdown } from './Dropdown.js';
|
|
2
2
|
import 'lit';
|
|
3
3
|
import 'lit/directives/ref.js';
|
|
4
|
-
import './LeuElement-
|
|
4
|
+
import './LeuElement-BRZYxDjR.js';
|
|
5
5
|
import './hasSlotController-Bm2tipvG.js';
|
|
6
6
|
import './Button.js';
|
|
7
7
|
import './_tslib-CNEFicEt.js';
|
package/dist/leu-icon.js
CHANGED
package/dist/leu-input.js
CHANGED
|
@@ -4,7 +4,7 @@ import 'lit/directives/class-map.js';
|
|
|
4
4
|
import 'lit/directives/if-defined.js';
|
|
5
5
|
import 'lit/directives/live.js';
|
|
6
6
|
import 'lit/directives/ref.js';
|
|
7
|
-
import './LeuElement-
|
|
7
|
+
import './LeuElement-BRZYxDjR.js';
|
|
8
8
|
import './Icon.js';
|
|
9
9
|
|
|
10
10
|
LeuInput.define("leu-input");
|
package/dist/leu-menu-item.js
CHANGED
package/dist/leu-menu.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LeuMessage } from './Message.js';
|
|
2
|
+
import './_tslib-CNEFicEt.js';
|
|
3
|
+
import 'lit';
|
|
4
|
+
import 'lit/decorators.js';
|
|
5
|
+
import 'lit/directives/class-map.js';
|
|
6
|
+
import './LeuElement-BRZYxDjR.js';
|
|
7
|
+
import './Icon.js';
|
|
8
|
+
import './hasSlotController-Bm2tipvG.js';
|
|
9
|
+
|
|
10
|
+
LeuMessage.define("leu-message");
|
|
11
|
+
|
|
12
|
+
export { LeuMessage };
|
package/dist/leu-pagination.js
CHANGED
|
@@ -3,7 +3,7 @@ import './_tslib-CNEFicEt.js';
|
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit/directives/live.js';
|
|
5
5
|
import 'lit/decorators.js';
|
|
6
|
-
import './LeuElement-
|
|
6
|
+
import './LeuElement-BRZYxDjR.js';
|
|
7
7
|
import './Button.js';
|
|
8
8
|
import 'lit/directives/class-map.js';
|
|
9
9
|
import 'lit/directives/if-defined.js';
|
package/dist/leu-placeholder.js
CHANGED
package/dist/leu-popup.js
CHANGED
package/dist/leu-radio-group.js
CHANGED
package/dist/leu-radio.js
CHANGED
package/dist/leu-range.js
CHANGED
package/dist/leu-scroll-top.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LeuScrollTop } from './ScrollTop.js';
|
|
2
2
|
import 'lit';
|
|
3
3
|
import 'lit/directives/class-map.js';
|
|
4
|
-
import './LeuElement-
|
|
4
|
+
import './LeuElement-BRZYxDjR.js';
|
|
5
5
|
import './Button.js';
|
|
6
6
|
import './_tslib-CNEFicEt.js';
|
|
7
7
|
import 'lit/directives/if-defined.js';
|
package/dist/leu-select.js
CHANGED
|
@@ -3,7 +3,7 @@ import 'lit';
|
|
|
3
3
|
import 'lit/directives/class-map.js';
|
|
4
4
|
import 'lit/directives/ref.js';
|
|
5
5
|
import 'lit/directives/if-defined.js';
|
|
6
|
-
import './LeuElement-
|
|
6
|
+
import './LeuElement-BRZYxDjR.js';
|
|
7
7
|
import './hasSlotController-Bm2tipvG.js';
|
|
8
8
|
import './Button.js';
|
|
9
9
|
import './_tslib-CNEFicEt.js';
|
package/dist/leu-spinner.js
CHANGED
package/dist/leu-table.js
CHANGED
|
@@ -3,7 +3,7 @@ import 'lit';
|
|
|
3
3
|
import 'lit/directives/class-map.js';
|
|
4
4
|
import 'lit/directives/style-map.js';
|
|
5
5
|
import 'lit/directives/ref.js';
|
|
6
|
-
import './LeuElement-
|
|
6
|
+
import './LeuElement-BRZYxDjR.js';
|
|
7
7
|
import './Icon.js';
|
|
8
8
|
import './Pagination.js';
|
|
9
9
|
import './_tslib-CNEFicEt.js';
|
package/dist/leu-tag.js
ADDED
|
@@ -34,17 +34,6 @@
|
|
|
34
34
|
}
|
|
35
35
|
]
|
|
36
36
|
},
|
|
37
|
-
{
|
|
38
|
-
"name": "leu-button-group",
|
|
39
|
-
"description": "A radio input-like button group component.\nIt allows only one button to be active at a time.\n---\n\n\n### **Events:**\n - **input** - When the value of the group changes by clicking a button\n\n### **Slots:**\n - _default_ - Slot for the buttons",
|
|
40
|
-
"attributes": [],
|
|
41
|
-
"references": [
|
|
42
|
-
{
|
|
43
|
-
"name": "Documentation",
|
|
44
|
-
"url": "https://statistikzh.github.io/leu/?path=/story/button-group"
|
|
45
|
-
}
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
37
|
{
|
|
49
38
|
"name": "leu-button",
|
|
50
39
|
"description": "\n---\n\n\n### **Slots:**\n - **before** - The icon to display before the label\n- **after** - The icon to display after the label\n- _default_ - The label of the button or the icon if no label is set",
|
|
@@ -120,6 +109,17 @@
|
|
|
120
109
|
}
|
|
121
110
|
]
|
|
122
111
|
},
|
|
112
|
+
{
|
|
113
|
+
"name": "leu-button-group",
|
|
114
|
+
"description": "A radio input-like button group component.\nIt allows only one button to be active at a time.\n---\n\n\n### **Events:**\n - **input** - When the value of the group changes by clicking a button\n\n### **Slots:**\n - _default_ - Slot for the buttons",
|
|
115
|
+
"attributes": [],
|
|
116
|
+
"references": [
|
|
117
|
+
{
|
|
118
|
+
"name": "Documentation",
|
|
119
|
+
"url": "https://statistikzh.github.io/leu/?path=/story/button-group"
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
123
|
{
|
|
124
124
|
"name": "leu-chart-wrapper",
|
|
125
125
|
"description": "A wrapper element for charts.\n---\n\n\n### **Slots:**\n - **title** - The title of the chart. Use a heading tag (h2-4) depending on your context.\n- **description** - A description of the chart. Content is wrapped in a `<p>` tag by the component.\n- **chart** - The actual chart\n- **caption** - A caption for the chart, e.g. a source or explanation of the data.\n- **download** - A download button or dropdown to export the chart in different formats.",
|
|
@@ -491,6 +491,43 @@
|
|
|
491
491
|
}
|
|
492
492
|
]
|
|
493
493
|
},
|
|
494
|
+
{
|
|
495
|
+
"name": "leu-message",
|
|
496
|
+
"description": "\n---\n\n\n### **Events:**\n - **leu:remove** - Fired when the close button is clicked.\n\n### **Slots:**\n - **default** - The content of the message. The title of the message should marked up with a `<strong>` tag.\n- **cta** - A call to action button that is only allowed for `size=large`\n\n### **CSS Properties:**\n - **--leu-message-accent-color** - Sets the color of the message. According to the design system, it is only allowd for `info` _(default: undefined)_",
|
|
497
|
+
"attributes": [
|
|
498
|
+
{
|
|
499
|
+
"name": "type",
|
|
500
|
+
"description": "The type of the message. `error` and `success` will be displayed as filled boxes.",
|
|
501
|
+
"values": [
|
|
502
|
+
{ "name": "error" },
|
|
503
|
+
{ "name": "success" },
|
|
504
|
+
{ "name": "info" },
|
|
505
|
+
{ "name": "warning" }
|
|
506
|
+
]
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"name": "size",
|
|
510
|
+
"description": "The size of the message. A call to action button is only allowed for `large` messages.",
|
|
511
|
+
"values": [{ "name": "regular" }, { "name": "large" }]
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"name": "removable",
|
|
515
|
+
"description": "Wheter the message is removable or not. The component will not remove itself when the close button is clicked.",
|
|
516
|
+
"values": []
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"name": "popup",
|
|
520
|
+
"description": "Wheter the message is used as a popup or not. This will add a drop shadow but will not position the message absolutely.",
|
|
521
|
+
"values": []
|
|
522
|
+
}
|
|
523
|
+
],
|
|
524
|
+
"references": [
|
|
525
|
+
{
|
|
526
|
+
"name": "Documentation",
|
|
527
|
+
"url": "https://statistikzh.github.io/leu/?path=/story/message"
|
|
528
|
+
}
|
|
529
|
+
]
|
|
530
|
+
},
|
|
494
531
|
{
|
|
495
532
|
"name": "leu-pagination",
|
|
496
533
|
"description": "\n---\n\n\n### **Events:**\n - **leu:pagechange**",
|
|
@@ -717,6 +754,26 @@
|
|
|
717
754
|
}
|
|
718
755
|
]
|
|
719
756
|
},
|
|
757
|
+
{
|
|
758
|
+
"name": "leu-tag",
|
|
759
|
+
"description": "\n---\n\n\n### **Slots:**\n - **default** - The label of the tag\n- **icon** - An icon to display in the tag\n\n### **CSS Properties:**\n - **--leu-tag-accent-color** - The color of the tag _(default: undefined)_",
|
|
760
|
+
"attributes": [
|
|
761
|
+
{
|
|
762
|
+
"name": "variant",
|
|
763
|
+
"values": [
|
|
764
|
+
{ "name": "solid" },
|
|
765
|
+
{ "name": "outline" },
|
|
766
|
+
{ "name": "ghost" }
|
|
767
|
+
]
|
|
768
|
+
}
|
|
769
|
+
],
|
|
770
|
+
"references": [
|
|
771
|
+
{
|
|
772
|
+
"name": "Documentation",
|
|
773
|
+
"url": "https://statistikzh.github.io/leu/?path=/story/tag"
|
|
774
|
+
}
|
|
775
|
+
]
|
|
776
|
+
},
|
|
720
777
|
{
|
|
721
778
|
"name": "leu-visually-hidden",
|
|
722
779
|
"description": "\n---\n",
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { DefineComponent } from "vue";
|
|
2
2
|
|
|
3
3
|
import type { LeuAccordion } from "../Accordion.js";
|
|
4
|
-
import type { LeuButtonGroup } from "../ButtonGroup.js";
|
|
5
4
|
import type { LeuButton } from "../Button.js";
|
|
5
|
+
import type { LeuButtonGroup } from "../ButtonGroup.js";
|
|
6
6
|
import type { LeuChartWrapper } from "../ChartWrapper.js";
|
|
7
7
|
import type { LeuCheckbox } from "../Checkbox.js";
|
|
8
8
|
import type { LeuCheckboxGroup } from "../CheckboxGroup.js";
|
|
@@ -16,6 +16,7 @@ import type { LeuIcon } from "../Icon.js";
|
|
|
16
16
|
import type { LeuInput, CustomEvent } from "../Input.js";
|
|
17
17
|
import type { LeuMenu } from "../Menu.js";
|
|
18
18
|
import type { LeuMenuItem } from "../MenuItem.js";
|
|
19
|
+
import type { LeuMessage, CustomEvent } from "../Message.js";
|
|
19
20
|
import type { LeuPagination, CustomEvent } from "../Pagination.js";
|
|
20
21
|
import type { LeuPlaceholder } from "../Placeholder.js";
|
|
21
22
|
import type { LeuPopup } from "../Popup.js";
|
|
@@ -26,6 +27,7 @@ import type { LeuScrollTop } from "../ScrollTop.js";
|
|
|
26
27
|
import type { LeuSelect } from "../Select.js";
|
|
27
28
|
import type { LeuSpinner } from "../Spinner.js";
|
|
28
29
|
import type { LeuTable } from "../Table.js";
|
|
30
|
+
import type { LeuTag } from "../Tag.js";
|
|
29
31
|
import type { LeuVisuallyHidden } from "../VisuallyHidden.js";
|
|
30
32
|
|
|
31
33
|
type LeuAccordionProps = {
|
|
@@ -39,13 +41,6 @@ type LeuAccordionProps = {
|
|
|
39
41
|
label?: LeuAccordion["label"];
|
|
40
42
|
};
|
|
41
43
|
|
|
42
|
-
type LeuButtonGroupProps = {
|
|
43
|
-
/** The value of the currently selected (active) button */
|
|
44
|
-
value?: LeuButtonGroup["value"];
|
|
45
|
-
/** When the value of the group changes by clicking a button */
|
|
46
|
-
oninput?: (e: CustomEvent<never>) => void;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
44
|
type LeuButtonProps = {
|
|
50
45
|
/** `aria-label` of the underlying button elements.
|
|
51
46
|
Use it to provide a label when only an icon is visible. */
|
|
@@ -77,6 +72,13 @@ If it is set, the icon will either show an expanded or collapsed state. */
|
|
|
77
72
|
fluid?: LeuButton["fluid"];
|
|
78
73
|
};
|
|
79
74
|
|
|
75
|
+
type LeuButtonGroupProps = {
|
|
76
|
+
/** The value of the currently selected (active) button */
|
|
77
|
+
value?: LeuButtonGroup["value"];
|
|
78
|
+
/** When the value of the group changes by clicking a button */
|
|
79
|
+
oninput?: (e: CustomEvent<never>) => void;
|
|
80
|
+
};
|
|
81
|
+
|
|
80
82
|
type LeuChartWrapperProps = {
|
|
81
83
|
/** Whether the chart is currently loading or not.
|
|
82
84
|
When set to `true`, a spinner will be shown in the chart container. */
|
|
@@ -263,6 +265,20 @@ type LeuMenuItemProps = {
|
|
|
263
265
|
componentRole?: LeuMenuItem["componentRole"];
|
|
264
266
|
};
|
|
265
267
|
|
|
268
|
+
type LeuMessageProps = {
|
|
269
|
+
/** The type of the message. `error` and `success` will be displayed as filled boxes. */
|
|
270
|
+
type?: LeuMessage["type"];
|
|
271
|
+
/** The size of the message. A call to action button is only allowed for `large` messages. */
|
|
272
|
+
size?: LeuMessage["size"];
|
|
273
|
+
/** Wheter the message is removable or not. The component will not remove itself when the close button is clicked. */
|
|
274
|
+
removable?: LeuMessage["removable"];
|
|
275
|
+
/** Wheter the message is used as a popup or not. This will add a drop shadow but will not position the message absolutely. */
|
|
276
|
+
popup?: LeuMessage["popup"];
|
|
277
|
+
|
|
278
|
+
/** Fired when the close button is clicked. */
|
|
279
|
+
"onleu:remove"?: (e: CustomEvent<CustomEvent>) => void;
|
|
280
|
+
};
|
|
281
|
+
|
|
266
282
|
type LeuPaginationProps = {
|
|
267
283
|
/** */
|
|
268
284
|
defaultPage?: LeuPagination["defaultPage"];
|
|
@@ -434,6 +450,11 @@ type LeuTableProps = {
|
|
|
434
450
|
_resizeObserver?: LeuTable["_resizeObserver"];
|
|
435
451
|
};
|
|
436
452
|
|
|
453
|
+
type LeuTagProps = {
|
|
454
|
+
/** */
|
|
455
|
+
variant?: LeuTag["variant"];
|
|
456
|
+
};
|
|
457
|
+
|
|
437
458
|
type LeuVisuallyHiddenProps = {};
|
|
438
459
|
|
|
439
460
|
export type CustomElements = {
|
|
@@ -448,30 +469,30 @@ export type CustomElements = {
|
|
|
448
469
|
"leu-accordion": DefineComponent<LeuAccordionProps>;
|
|
449
470
|
|
|
450
471
|
/**
|
|
451
|
-
*
|
|
452
|
-
* It allows only one button to be active at a time.
|
|
472
|
+
*
|
|
453
473
|
* ---
|
|
454
474
|
*
|
|
455
475
|
*
|
|
456
|
-
* ### **Events:**
|
|
457
|
-
* - **input** - When the value of the group changes by clicking a button
|
|
458
|
-
*
|
|
459
476
|
* ### **Slots:**
|
|
460
|
-
* -
|
|
477
|
+
* - **before** - The icon to display before the label
|
|
478
|
+
* - **after** - The icon to display after the label
|
|
479
|
+
* - _default_ - The label of the button or the icon if no label is set
|
|
461
480
|
*/
|
|
462
|
-
"leu-button
|
|
481
|
+
"leu-button": DefineComponent<LeuButtonProps>;
|
|
463
482
|
|
|
464
483
|
/**
|
|
465
|
-
*
|
|
484
|
+
* A radio input-like button group component.
|
|
485
|
+
* It allows only one button to be active at a time.
|
|
466
486
|
* ---
|
|
467
487
|
*
|
|
468
488
|
*
|
|
489
|
+
* ### **Events:**
|
|
490
|
+
* - **input** - When the value of the group changes by clicking a button
|
|
491
|
+
*
|
|
469
492
|
* ### **Slots:**
|
|
470
|
-
* -
|
|
471
|
-
* - **after** - The icon to display after the label
|
|
472
|
-
* - _default_ - The label of the button or the icon if no label is set
|
|
493
|
+
* - _default_ - Slot for the buttons
|
|
473
494
|
*/
|
|
474
|
-
"leu-button": DefineComponent<
|
|
495
|
+
"leu-button-group": DefineComponent<LeuButtonGroupProps>;
|
|
475
496
|
|
|
476
497
|
/**
|
|
477
498
|
* A wrapper element for charts.
|
|
@@ -628,6 +649,23 @@ export type CustomElements = {
|
|
|
628
649
|
*/
|
|
629
650
|
"leu-menu-item": DefineComponent<LeuMenuItemProps>;
|
|
630
651
|
|
|
652
|
+
/**
|
|
653
|
+
*
|
|
654
|
+
* ---
|
|
655
|
+
*
|
|
656
|
+
*
|
|
657
|
+
* ### **Events:**
|
|
658
|
+
* - **leu:remove** - Fired when the close button is clicked.
|
|
659
|
+
*
|
|
660
|
+
* ### **Slots:**
|
|
661
|
+
* - **default** - The content of the message. The title of the message should marked up with a `<strong>` tag.
|
|
662
|
+
* - **cta** - A call to action button that is only allowed for `size=large`
|
|
663
|
+
*
|
|
664
|
+
* ### **CSS Properties:**
|
|
665
|
+
* - **--leu-message-accent-color** - Sets the color of the message. According to the design system, it is only allowd for `info` _(default: undefined)_
|
|
666
|
+
*/
|
|
667
|
+
"leu-message": DefineComponent<LeuMessageProps>;
|
|
668
|
+
|
|
631
669
|
/**
|
|
632
670
|
*
|
|
633
671
|
* ---
|
|
@@ -727,6 +765,20 @@ export type CustomElements = {
|
|
|
727
765
|
*/
|
|
728
766
|
"leu-table": DefineComponent<LeuTableProps>;
|
|
729
767
|
|
|
768
|
+
/**
|
|
769
|
+
*
|
|
770
|
+
* ---
|
|
771
|
+
*
|
|
772
|
+
*
|
|
773
|
+
* ### **Slots:**
|
|
774
|
+
* - **default** - The label of the tag
|
|
775
|
+
* - **icon** - An icon to display in the tag
|
|
776
|
+
*
|
|
777
|
+
* ### **CSS Properties:**
|
|
778
|
+
* - **--leu-tag-accent-color** - The color of the tag _(default: undefined)_
|
|
779
|
+
*/
|
|
780
|
+
"leu-tag": DefineComponent<LeuTagProps>;
|
|
781
|
+
|
|
730
782
|
/**
|
|
731
783
|
*
|
|
732
784
|
* ---
|