@ukic/web-components 3.15.0 → 3.16.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/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +9 -5
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +2 -2
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +9 -6
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +14 -6
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-button/ic-button.stories.js +3 -3
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +2 -0
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +18 -18
- package/dist/collection/components/ic-data-list/ic-data-list.css +1 -0
- package/dist/collection/components/ic-data-row/ic-data-row.css +2 -0
- package/dist/collection/components/ic-footer/ic-footer.js +29 -5
- package/dist/collection/components/ic-footer/ic-footer.js.map +1 -1
- package/dist/collection/components/ic-footer/ic-footer.stories.js +31 -0
- package/dist/collection/components/ic-hero/ic-hero.css +0 -2
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +9 -0
- package/dist/collection/components/ic-input-validation/ic-input-validation.css +2 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.stories.js +17 -18
- package/dist/collection/components/ic-menu/ic-menu.css +8 -0
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +12 -0
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +2 -7
- package/dist/collection/components/ic-pagination/ic-pagination.stories.js +3 -3
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.stories.js +7 -7
- package/dist/collection/components/ic-radio-group/ic-radio-group.css +6 -6
- package/dist/collection/components/ic-radio-group/ic-radio-group.stories.js +12 -12
- package/dist/collection/components/ic-radio-option/ic-radio-option.css +60 -54
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +9 -5
- package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
- package/dist/collection/components/ic-search-bar/ic-search-bar.css +8 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.stories.js +19 -19
- package/dist/collection/components/ic-select/ic-select_(multi).stories.js +20 -20
- package/dist/collection/components/ic-select/ic-select_(searchable).stories.js +21 -21
- package/dist/collection/components/ic-tab-context/ic-tabs.stories.js +1 -1
- package/dist/collection/components/ic-text-field/ic-text-field.stories.js +19 -19
- package/dist/collection/components/ic-toast/ic-toast.css +26 -1
- package/dist/collection/components/ic-toast/ic-toast.js +39 -5
- package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
- package/dist/collection/components/ic-toast/ic-toast.stories.js +21 -9
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.stories.js +14 -14
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.stories.js +7 -7
- package/dist/collection/components/ic-tooltip/ic-tooltip.stories.js +11 -11
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.stories.js +15 -15
- package/dist/collection/components/ic-typography/ic-typography.stories.js +1 -1
- package/dist/collection/patterns/top-nav-content-footer.stories.js +1 -1
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-classification-banner.js.map +1 -1
- package/dist/components/ic-data-list.js.map +1 -1
- package/dist/components/ic-data-row.js.map +1 -1
- package/dist/components/ic-footer.js +10 -5
- package/dist/components/ic-footer.js.map +1 -1
- package/dist/components/ic-hero.js.map +1 -1
- package/dist/components/ic-input-component-container2.js +1 -1
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-validation2.js +1 -1
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-menu2.js +1 -1
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-group.js +1 -1
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +1 -1
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-radio-group.js +1 -1
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +10 -7
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +1 -1
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js.map +1 -1
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-toast.js +15 -6
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-082e0068.entry.js +2 -0
- package/dist/core/p-082e0068.entry.js.map +1 -0
- package/dist/core/p-3238389a.entry.js +2 -0
- package/dist/core/p-3238389a.entry.js.map +1 -0
- package/dist/core/p-33e35173.entry.js.map +1 -1
- package/dist/core/p-52c66bfe.entry.js +2 -0
- package/dist/core/p-52c66bfe.entry.js.map +1 -0
- package/dist/core/p-6ed48c46.entry.js +2 -0
- package/dist/core/p-6ed48c46.entry.js.map +1 -0
- package/dist/core/p-8abcc114.entry.js.map +1 -1
- package/dist/core/p-9c52ee48.entry.js +2 -0
- package/dist/core/p-9c52ee48.entry.js.map +1 -0
- package/dist/core/p-afbba548.entry.js +2 -0
- package/dist/core/p-afbba548.entry.js.map +1 -0
- package/dist/core/p-b4a2f6fa.entry.js.map +1 -1
- package/dist/core/{p-0c4ceed9.entry.js → p-b59504f1.entry.js} +2 -2
- package/dist/core/p-b59504f1.entry.js.map +1 -0
- package/dist/core/p-b83a736d.entry.js +3 -0
- package/dist/core/p-b83a736d.entry.js.map +1 -0
- package/dist/core/{p-4bdeb62d.entry.js → p-bdda404b.entry.js} +2 -2
- package/dist/core/p-bdda404b.entry.js.map +1 -0
- package/dist/core/p-ffd0d9d1.entry.js.map +1 -1
- package/dist/esm/core.js +1 -1
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-data-list.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js.map +1 -1
- package/dist/esm/ic-footer.entry.js +9 -5
- package/dist/esm/ic-footer.entry.js.map +1 -1
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-input-component-container_3.entry.js +2 -2
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +1 -1
- package/dist/esm/ic-input-label_2.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +1 -1
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +1 -1
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +1 -1
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +9 -6
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +1 -1
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +14 -6
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-footer/ic-footer.d.ts +4 -0
- package/dist/types/components/ic-toast/ic-toast.d.ts +5 -1
- package/dist/types/components.d.ts +16 -0
- package/hydrate/index.js +42 -25
- package/hydrate/index.mjs +42 -25
- package/package.json +4 -4
- package/vscode-data.json +19 -0
- package/dist/core/p-042cfc35.entry.js +0 -2
- package/dist/core/p-042cfc35.entry.js.map +0 -1
- package/dist/core/p-06c950a3.entry.js +0 -2
- package/dist/core/p-06c950a3.entry.js.map +0 -1
- package/dist/core/p-0c4ceed9.entry.js.map +0 -1
- package/dist/core/p-11d8a504.entry.js +0 -3
- package/dist/core/p-11d8a504.entry.js.map +0 -1
- package/dist/core/p-3680f22c.entry.js +0 -2
- package/dist/core/p-3680f22c.entry.js.map +0 -1
- package/dist/core/p-4bdeb62d.entry.js.map +0 -1
- package/dist/core/p-a5415f6c.entry.js +0 -2
- package/dist/core/p-a5415f6c.entry.js.map +0 -1
- package/dist/core/p-b3cb1e35.entry.js +0 -2
- package/dist/core/p-b3cb1e35.entry.js.map +0 -1
- package/dist/core/p-e7af1e2d.entry.js +0 -2
- package/dist/core/p-e7af1e2d.entry.js.map +0 -1
|
@@ -25,7 +25,7 @@ export default {
|
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export const Default = {
|
|
28
|
-
render: (
|
|
28
|
+
render: () =>
|
|
29
29
|
html`<ic-select
|
|
30
30
|
id="select-default"
|
|
31
31
|
label="What are your favourite types of coffee?"
|
|
@@ -66,7 +66,7 @@ export const Default = {
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
export const AsyncDefault = {
|
|
69
|
-
render: (
|
|
69
|
+
render: () =>
|
|
70
70
|
html`<ic-select
|
|
71
71
|
label="What are your favourite types of coffee?"
|
|
72
72
|
id="select-async"
|
|
@@ -96,7 +96,7 @@ export const AsyncDefault = {
|
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
export const DefaultValue = {
|
|
99
|
-
render: (
|
|
99
|
+
render: () =>
|
|
100
100
|
html`<ic-select
|
|
101
101
|
id="select-default-value"
|
|
102
102
|
label="What are your favourite types of coffee?"
|
|
@@ -123,7 +123,7 @@ export const DefaultValue = {
|
|
|
123
123
|
};
|
|
124
124
|
|
|
125
125
|
export const WithClearButton = {
|
|
126
|
-
render: (
|
|
126
|
+
render: () =>
|
|
127
127
|
html`<ic-select
|
|
128
128
|
id="select-clear"
|
|
129
129
|
label="What are your favourite types of coffee?"
|
|
@@ -150,7 +150,7 @@ export const WithClearButton = {
|
|
|
150
150
|
};
|
|
151
151
|
|
|
152
152
|
export const WithDescriptions = {
|
|
153
|
-
render: (
|
|
153
|
+
render: () =>
|
|
154
154
|
html`<ic-select
|
|
155
155
|
id="select-descriptions"
|
|
156
156
|
label="What are your favourite types of coffee?"
|
|
@@ -206,7 +206,7 @@ export const WithDescriptions = {
|
|
|
206
206
|
};
|
|
207
207
|
|
|
208
208
|
export const HelperText = {
|
|
209
|
-
render: (
|
|
209
|
+
render: () =>
|
|
210
210
|
html`<ic-select
|
|
211
211
|
label="What are your favourite types of coffee?"
|
|
212
212
|
multiple
|
|
@@ -241,7 +241,7 @@ export const HelperText = {
|
|
|
241
241
|
};
|
|
242
242
|
|
|
243
243
|
export const CustomPlaceholder = {
|
|
244
|
-
render: (
|
|
244
|
+
render: () =>
|
|
245
245
|
html`<ic-select
|
|
246
246
|
id="select-placeholder"
|
|
247
247
|
label="What are your favourite types of coffee?"
|
|
@@ -268,7 +268,7 @@ export const CustomPlaceholder = {
|
|
|
268
268
|
};
|
|
269
269
|
|
|
270
270
|
export const CustomComponents = {
|
|
271
|
-
render: (
|
|
271
|
+
render: () =>
|
|
272
272
|
html`<ic-select
|
|
273
273
|
id="select-custom-components"
|
|
274
274
|
label="What are your favourite types of coffee?"
|
|
@@ -311,7 +311,7 @@ export const CustomComponents = {
|
|
|
311
311
|
};
|
|
312
312
|
|
|
313
313
|
export const Sizes = {
|
|
314
|
-
render: (
|
|
314
|
+
render: () =>
|
|
315
315
|
html`<div style="display: flex; flex-direction: column; gap: 16px;">
|
|
316
316
|
<ic-select
|
|
317
317
|
id="select-size-small"
|
|
@@ -381,7 +381,7 @@ export const Sizes = {
|
|
|
381
381
|
};
|
|
382
382
|
|
|
383
383
|
export const Disabled = {
|
|
384
|
-
render: (
|
|
384
|
+
render: () =>
|
|
385
385
|
html`<ic-select
|
|
386
386
|
id="select-disabled"
|
|
387
387
|
label="What are your favourite types of coffee?"
|
|
@@ -408,7 +408,7 @@ export const Disabled = {
|
|
|
408
408
|
};
|
|
409
409
|
|
|
410
410
|
export const DisabledOptions = {
|
|
411
|
-
render: (
|
|
411
|
+
render: () =>
|
|
412
412
|
html`<ic-select
|
|
413
413
|
id="select-disabled-options"
|
|
414
414
|
label="What are your favourite types of coffee?"
|
|
@@ -434,7 +434,7 @@ export const DisabledOptions = {
|
|
|
434
434
|
};
|
|
435
435
|
|
|
436
436
|
export const FullWidth = {
|
|
437
|
-
render: (
|
|
437
|
+
render: () =>
|
|
438
438
|
html`<ic-select
|
|
439
439
|
id="select-full-width"
|
|
440
440
|
label="What are your favourite types of coffee?"
|
|
@@ -461,7 +461,7 @@ export const FullWidth = {
|
|
|
461
461
|
};
|
|
462
462
|
|
|
463
463
|
export const HiddenLabel = {
|
|
464
|
-
render: (
|
|
464
|
+
render: () =>
|
|
465
465
|
html`<ic-select
|
|
466
466
|
id="select-hidden-label"
|
|
467
467
|
label="What are your favourite types of coffee?"
|
|
@@ -488,7 +488,7 @@ export const HiddenLabel = {
|
|
|
488
488
|
};
|
|
489
489
|
|
|
490
490
|
export const Required = {
|
|
491
|
-
render: (
|
|
491
|
+
render: () =>
|
|
492
492
|
html`<ic-select
|
|
493
493
|
id="select-required"
|
|
494
494
|
label="What are your favourite types of coffee?"
|
|
@@ -543,7 +543,7 @@ export const ReadOnly = {
|
|
|
543
543
|
};
|
|
544
544
|
|
|
545
545
|
export const Groups = {
|
|
546
|
-
render: (
|
|
546
|
+
render: () =>
|
|
547
547
|
html`<ic-select
|
|
548
548
|
id="select-groups"
|
|
549
549
|
label="What are your favourite types of coffee?"
|
|
@@ -576,7 +576,7 @@ export const Groups = {
|
|
|
576
576
|
};
|
|
577
577
|
|
|
578
578
|
export const Recommended = {
|
|
579
|
-
render: (
|
|
579
|
+
render: () =>
|
|
580
580
|
html`<ic-select
|
|
581
581
|
id="select-recommended"
|
|
582
582
|
label="What are your favourite types of coffee?"
|
|
@@ -602,7 +602,7 @@ export const Recommended = {
|
|
|
602
602
|
};
|
|
603
603
|
|
|
604
604
|
export const Validation = {
|
|
605
|
-
render: (
|
|
605
|
+
render: () =>
|
|
606
606
|
html`<ic-select
|
|
607
607
|
id="select-success"
|
|
608
608
|
label="What are your favourite types of coffee?"
|
|
@@ -674,7 +674,7 @@ export const Validation = {
|
|
|
674
674
|
};
|
|
675
675
|
|
|
676
676
|
export const ScrollBehaviour = {
|
|
677
|
-
render: (
|
|
677
|
+
render: () =>
|
|
678
678
|
html`<ic-select
|
|
679
679
|
id="select-scroll"
|
|
680
680
|
label="What are your favourite types of coffee?"
|
|
@@ -705,7 +705,7 @@ export const ScrollBehaviour = {
|
|
|
705
705
|
};
|
|
706
706
|
|
|
707
707
|
export const LoadingWithError = {
|
|
708
|
-
render: (
|
|
708
|
+
render: () =>
|
|
709
709
|
html`<ic-select
|
|
710
710
|
id="select-loading"
|
|
711
711
|
label="What are your favourite types of coffee?"
|
|
@@ -736,7 +736,7 @@ export const LoadingWithError = {
|
|
|
736
736
|
};
|
|
737
737
|
|
|
738
738
|
export const InForm = {
|
|
739
|
-
render: (
|
|
739
|
+
render: () => html`
|
|
740
740
|
<form>
|
|
741
741
|
<ic-select
|
|
742
742
|
id="select-form"
|
|
@@ -27,7 +27,7 @@ export default {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export const Default = {
|
|
30
|
-
render: (
|
|
30
|
+
render: () =>
|
|
31
31
|
html`<ic-select
|
|
32
32
|
id="select-default"
|
|
33
33
|
label="What is your favourite coffee?"
|
|
@@ -65,7 +65,7 @@ export const Default = {
|
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
export const AsyncDefault = {
|
|
68
|
-
render: (
|
|
68
|
+
render: () =>
|
|
69
69
|
html`<ic-select
|
|
70
70
|
id="select-async"
|
|
71
71
|
label="What is your favourite coffee?"
|
|
@@ -95,7 +95,7 @@ export const AsyncDefault = {
|
|
|
95
95
|
};
|
|
96
96
|
|
|
97
97
|
export const DefaultValue = {
|
|
98
|
-
render: (
|
|
98
|
+
render: () =>
|
|
99
99
|
html`<ic-select
|
|
100
100
|
id="select-default-value"
|
|
101
101
|
label="What is your favourite coffee?"
|
|
@@ -122,7 +122,7 @@ export const DefaultValue = {
|
|
|
122
122
|
};
|
|
123
123
|
|
|
124
124
|
export const FilterByStartOfOptions = {
|
|
125
|
-
render: (
|
|
125
|
+
render: () =>
|
|
126
126
|
html`<ic-select
|
|
127
127
|
id="select-filter-start"
|
|
128
128
|
label="What is your favourite coffee?"
|
|
@@ -149,7 +149,7 @@ export const FilterByStartOfOptions = {
|
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
export const WithDescriptions = {
|
|
152
|
-
render: (
|
|
152
|
+
render: () =>
|
|
153
153
|
html`<ic-select
|
|
154
154
|
id="select-descriptions"
|
|
155
155
|
label="What is your favourite coffee?"
|
|
@@ -205,7 +205,7 @@ export const WithDescriptions = {
|
|
|
205
205
|
};
|
|
206
206
|
|
|
207
207
|
export const WithDescriptionsIncludedInSearch = {
|
|
208
|
-
render: (
|
|
208
|
+
render: () =>
|
|
209
209
|
html`<ic-select
|
|
210
210
|
id="select-descriptions-included"
|
|
211
211
|
label="What is your favourite coffee?"
|
|
@@ -262,7 +262,7 @@ export const WithDescriptionsIncludedInSearch = {
|
|
|
262
262
|
};
|
|
263
263
|
|
|
264
264
|
export const HelperText = {
|
|
265
|
-
render: (
|
|
265
|
+
render: () =>
|
|
266
266
|
html`<ic-select
|
|
267
267
|
label="What is your favourite coffee?"
|
|
268
268
|
searchable
|
|
@@ -297,7 +297,7 @@ export const HelperText = {
|
|
|
297
297
|
};
|
|
298
298
|
|
|
299
299
|
export const Sizes = {
|
|
300
|
-
render: (
|
|
300
|
+
render: () =>
|
|
301
301
|
html`<div style="display: flex; flex-direction: column; gap: 16px;">
|
|
302
302
|
<ic-select
|
|
303
303
|
id="select-size-small"
|
|
@@ -367,7 +367,7 @@ export const Sizes = {
|
|
|
367
367
|
};
|
|
368
368
|
|
|
369
369
|
export const Disabled = {
|
|
370
|
-
render: (
|
|
370
|
+
render: () =>
|
|
371
371
|
html`<ic-select
|
|
372
372
|
id="select-disabled"
|
|
373
373
|
label="What is your favourite coffee?"
|
|
@@ -394,7 +394,7 @@ export const Disabled = {
|
|
|
394
394
|
};
|
|
395
395
|
|
|
396
396
|
export const DisabledOptions = {
|
|
397
|
-
render: (
|
|
397
|
+
render: () =>
|
|
398
398
|
html`<ic-select
|
|
399
399
|
id="select-disabled-options"
|
|
400
400
|
label="What is your favourite coffee?"
|
|
@@ -420,7 +420,7 @@ export const DisabledOptions = {
|
|
|
420
420
|
};
|
|
421
421
|
|
|
422
422
|
export const HiddenLabel = {
|
|
423
|
-
render: (
|
|
423
|
+
render: () =>
|
|
424
424
|
html`<ic-select
|
|
425
425
|
id="select-hidden-label"
|
|
426
426
|
label="What is your favourite coffee?"
|
|
@@ -447,7 +447,7 @@ export const HiddenLabel = {
|
|
|
447
447
|
};
|
|
448
448
|
|
|
449
449
|
export const Required = {
|
|
450
|
-
render: (
|
|
450
|
+
render: () =>
|
|
451
451
|
html`<ic-select
|
|
452
452
|
id="select-required"
|
|
453
453
|
label="What is your favourite coffee?"
|
|
@@ -474,7 +474,7 @@ export const Required = {
|
|
|
474
474
|
};
|
|
475
475
|
|
|
476
476
|
export const Groups = {
|
|
477
|
-
render: (
|
|
477
|
+
render: () =>
|
|
478
478
|
html`<ic-select
|
|
479
479
|
id="select-groups"
|
|
480
480
|
label="What is your favourite coffee?"
|
|
@@ -507,7 +507,7 @@ export const Groups = {
|
|
|
507
507
|
};
|
|
508
508
|
|
|
509
509
|
export const GroupsGroupTitlesIncludedInSearch = {
|
|
510
|
-
render: (
|
|
510
|
+
render: () =>
|
|
511
511
|
html`<ic-select
|
|
512
512
|
id="select-groups-included"
|
|
513
513
|
label="What is your favourite coffee?"
|
|
@@ -541,7 +541,7 @@ export const GroupsGroupTitlesIncludedInSearch = {
|
|
|
541
541
|
};
|
|
542
542
|
|
|
543
543
|
export const Recommended = {
|
|
544
|
-
render: (
|
|
544
|
+
render: () =>
|
|
545
545
|
html`<ic-select
|
|
546
546
|
id="select-recommended"
|
|
547
547
|
label="What is your favourite coffee?"
|
|
@@ -567,7 +567,7 @@ export const Recommended = {
|
|
|
567
567
|
};
|
|
568
568
|
|
|
569
569
|
export const Validation = {
|
|
570
|
-
render: (
|
|
570
|
+
render: () =>
|
|
571
571
|
html`<ic-select
|
|
572
572
|
id="select-success"
|
|
573
573
|
label="What is your favourite coffee?"
|
|
@@ -642,7 +642,7 @@ export const Validation = {
|
|
|
642
642
|
};
|
|
643
643
|
|
|
644
644
|
export const ScrollBehaviour = {
|
|
645
|
-
render: (
|
|
645
|
+
render: () =>
|
|
646
646
|
html`<ic-select
|
|
647
647
|
id="select-scroll"
|
|
648
648
|
label="What is your favourite coffee?"
|
|
@@ -672,7 +672,7 @@ export const ScrollBehaviour = {
|
|
|
672
672
|
};
|
|
673
673
|
|
|
674
674
|
export const ExternalFiltering = {
|
|
675
|
-
render: (
|
|
675
|
+
render: () =>
|
|
676
676
|
html`<ic-select
|
|
677
677
|
label="What is your favourite coffee?"
|
|
678
678
|
searchable
|
|
@@ -742,7 +742,7 @@ export const ExternalFiltering = {
|
|
|
742
742
|
};
|
|
743
743
|
|
|
744
744
|
export const InForm = {
|
|
745
|
-
render: (
|
|
745
|
+
render: () => html`
|
|
746
746
|
<form>
|
|
747
747
|
<ic-select
|
|
748
748
|
id="select-form"
|
|
@@ -775,7 +775,7 @@ export const InForm = {
|
|
|
775
775
|
};
|
|
776
776
|
|
|
777
777
|
export const UpdateInputValueFromExternalRequest = {
|
|
778
|
-
render: (
|
|
778
|
+
render: () =>
|
|
779
779
|
html`<ic-section-container>
|
|
780
780
|
<ic-select
|
|
781
781
|
id="select-external-request"
|
|
@@ -811,7 +811,7 @@ export const UpdateInputValueFromExternalRequest = {
|
|
|
811
811
|
};
|
|
812
812
|
|
|
813
813
|
export const EmittingIcOptionSelectOnEnter = {
|
|
814
|
-
render: (
|
|
814
|
+
render: () =>
|
|
815
815
|
html`<ic-select
|
|
816
816
|
id="select-icoptionselect"
|
|
817
817
|
label="What is your favourite coffee?"
|
|
@@ -41,7 +41,7 @@ const defaultArgs = {
|
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
export const Default = {
|
|
44
|
-
render: (
|
|
44
|
+
render: () =>
|
|
45
45
|
html`<ic-text-field label="What is your favourite coffee?"> </ic-text-field>
|
|
46
46
|
<ic-text-field rows="6" label="What is your favourite coffee?">
|
|
47
47
|
</ic-text-field>`,
|
|
@@ -50,7 +50,7 @@ export const Default = {
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
export const Autofocus = {
|
|
53
|
-
render: (
|
|
53
|
+
render: () =>
|
|
54
54
|
html`<ic-text-field autofocus label="What is your favourite coffee?">
|
|
55
55
|
</ic-text-field>`,
|
|
56
56
|
|
|
@@ -58,7 +58,7 @@ export const Autofocus = {
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
export const PlaceholderAndRequired = {
|
|
61
|
-
render: (
|
|
61
|
+
render: () =>
|
|
62
62
|
html`<ic-text-field
|
|
63
63
|
label="What is your favourite coffee?"
|
|
64
64
|
required
|
|
@@ -77,7 +77,7 @@ export const PlaceholderAndRequired = {
|
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
export const HelperText = {
|
|
80
|
-
render: (
|
|
80
|
+
render: () =>
|
|
81
81
|
html`<ic-text-field
|
|
82
82
|
label="What is your favourite coffee?"
|
|
83
83
|
required
|
|
@@ -109,7 +109,7 @@ export const HelperText = {
|
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
export const WithIcon = {
|
|
112
|
-
render: (
|
|
112
|
+
render: () =>
|
|
113
113
|
html`<ic-text-field
|
|
114
114
|
label="What is your favourite coffee?"
|
|
115
115
|
required
|
|
@@ -156,7 +156,7 @@ export const WithIcon = {
|
|
|
156
156
|
};
|
|
157
157
|
|
|
158
158
|
export const WithValue = {
|
|
159
|
-
render: (
|
|
159
|
+
render: () =>
|
|
160
160
|
html`<ic-text-field
|
|
161
161
|
value="Arabica"
|
|
162
162
|
label="What is your favourite coffee?"
|
|
@@ -205,7 +205,7 @@ export const WithValue = {
|
|
|
205
205
|
};
|
|
206
206
|
|
|
207
207
|
export const CustomWidth = {
|
|
208
|
-
render: (
|
|
208
|
+
render: () =>
|
|
209
209
|
html`<style>
|
|
210
210
|
ic-text-field {
|
|
211
211
|
--input-width: 400px;
|
|
@@ -264,7 +264,7 @@ export const CustomWidth = {
|
|
|
264
264
|
};
|
|
265
265
|
|
|
266
266
|
export const FullWidth = {
|
|
267
|
-
render: (
|
|
267
|
+
render: () =>
|
|
268
268
|
html`<div style="display: flex">
|
|
269
269
|
<ic-text-field
|
|
270
270
|
full-width="true"
|
|
@@ -322,7 +322,7 @@ export const FullWidth = {
|
|
|
322
322
|
};
|
|
323
323
|
|
|
324
324
|
export const Disabled = {
|
|
325
|
-
render: (
|
|
325
|
+
render: () =>
|
|
326
326
|
html`<ic-text-field
|
|
327
327
|
value="Arabica"
|
|
328
328
|
label="What is your favourite coffee?"
|
|
@@ -416,7 +416,7 @@ export const Disabled = {
|
|
|
416
416
|
};
|
|
417
417
|
|
|
418
418
|
export const ReadOnly = {
|
|
419
|
-
render: (
|
|
419
|
+
render: () =>
|
|
420
420
|
html`<ic-text-field
|
|
421
421
|
value="Arabica"
|
|
422
422
|
max-characters="25"
|
|
@@ -486,7 +486,7 @@ export const ReadOnly = {
|
|
|
486
486
|
};
|
|
487
487
|
|
|
488
488
|
export const Validation = {
|
|
489
|
-
render: (
|
|
489
|
+
render: () =>
|
|
490
490
|
html`<ic-text-field
|
|
491
491
|
validation-status="success"
|
|
492
492
|
validation-text="Good choice!"
|
|
@@ -802,7 +802,7 @@ export const Validation = {
|
|
|
802
802
|
};
|
|
803
803
|
|
|
804
804
|
export const AriaLiveBehaviour = {
|
|
805
|
-
render: (
|
|
805
|
+
render: () =>
|
|
806
806
|
html`<ic-text-field
|
|
807
807
|
id="field-1"
|
|
808
808
|
label="What is your favourite coffee?"
|
|
@@ -886,7 +886,7 @@ export const AriaLiveBehaviour = {
|
|
|
886
886
|
};
|
|
887
887
|
|
|
888
888
|
export const TextAreaWithResize = {
|
|
889
|
-
render: (
|
|
889
|
+
render: () =>
|
|
890
890
|
html`<ic-text-field
|
|
891
891
|
rows="6"
|
|
892
892
|
value="Arabica"
|
|
@@ -915,7 +915,7 @@ export const TextAreaWithResize = {
|
|
|
915
915
|
};
|
|
916
916
|
|
|
917
917
|
export const Form = {
|
|
918
|
-
render: (
|
|
918
|
+
render: () => html`
|
|
919
919
|
<form>
|
|
920
920
|
<ic-text-field label="What is your favourite coffee?"></ic-text-field>
|
|
921
921
|
<br />
|
|
@@ -937,7 +937,7 @@ export const Form = {
|
|
|
937
937
|
};
|
|
938
938
|
|
|
939
939
|
export const MinAndMax = {
|
|
940
|
-
render: (
|
|
940
|
+
render: () =>
|
|
941
941
|
html`<ic-text-field
|
|
942
942
|
inputmode="numeric"
|
|
943
943
|
label="How many coffees do you want?"
|
|
@@ -963,7 +963,7 @@ export const MinAndMax = {
|
|
|
963
963
|
};
|
|
964
964
|
|
|
965
965
|
export const LoggingIcChange = {
|
|
966
|
-
render: (
|
|
966
|
+
render: () =>
|
|
967
967
|
html`<script>
|
|
968
968
|
function handleIcChange(ev) {
|
|
969
969
|
console.log(ev.detail.value, "icChange");
|
|
@@ -978,7 +978,7 @@ export const LoggingIcChange = {
|
|
|
978
978
|
};
|
|
979
979
|
|
|
980
980
|
export const LoggingIcKeydown = {
|
|
981
|
-
render: (
|
|
981
|
+
render: () =>
|
|
982
982
|
html`<script>
|
|
983
983
|
function handleIcChange(ev) {
|
|
984
984
|
console.log(ev.detail.value, "icChange");
|
|
@@ -1000,7 +1000,7 @@ export const LoggingIcKeydown = {
|
|
|
1000
1000
|
};
|
|
1001
1001
|
|
|
1002
1002
|
export const MaximumAndMinimumCharacters = {
|
|
1003
|
-
render: (
|
|
1003
|
+
render: () =>
|
|
1004
1004
|
html`<ic-text-field
|
|
1005
1005
|
max-characters="2"
|
|
1006
1006
|
label="What is your favourite coffee?"
|
|
@@ -1034,7 +1034,7 @@ export const MaximumAndMinimumCharacters = {
|
|
|
1034
1034
|
};
|
|
1035
1035
|
|
|
1036
1036
|
export const Internationalisation = {
|
|
1037
|
-
render: (
|
|
1037
|
+
render: () =>
|
|
1038
1038
|
html`<span lang="fr">
|
|
1039
1039
|
<ic-text-field
|
|
1040
1040
|
label="Boisson préférée"
|
|
@@ -482,6 +482,7 @@ video {
|
|
|
482
482
|
display: flex;
|
|
483
483
|
align-items: center;
|
|
484
484
|
position: relative;
|
|
485
|
+
border: var(--ic-space-1px) solid var(--ic-color-border-neutral-grey);
|
|
485
486
|
border-radius: var(--ic-border-radius);
|
|
486
487
|
}
|
|
487
488
|
|
|
@@ -491,11 +492,35 @@ video {
|
|
|
491
492
|
align-items: center;
|
|
492
493
|
}
|
|
493
494
|
|
|
495
|
+
.container-neutral {
|
|
496
|
+
border-color: var(--ic-toast-status-neutral);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.container-info {
|
|
500
|
+
border-color: var(--ic-toast-status-info);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.container-warning {
|
|
504
|
+
border-color: var(--ic-toast-status-warning);
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.container-error {
|
|
508
|
+
border-color: var(--ic-toast-status-error);
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.container-success {
|
|
512
|
+
border-color: var(--ic-toast-status-success);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.container-ai {
|
|
516
|
+
border-color: var(--ic-toast-status-ai);
|
|
517
|
+
}
|
|
518
|
+
|
|
494
519
|
.divider {
|
|
495
520
|
height: 100%;
|
|
496
521
|
width: var(--ic-space-xs);
|
|
497
522
|
position: absolute;
|
|
498
|
-
border-radius:
|
|
523
|
+
border-radius: 0;
|
|
499
524
|
}
|
|
500
525
|
|
|
501
526
|
.divider-neutral {
|
|
@@ -14,6 +14,10 @@ export class Toast {
|
|
|
14
14
|
this.interactiveElements = [];
|
|
15
15
|
this.timerProgress = 100;
|
|
16
16
|
this.visible = false;
|
|
17
|
+
/**
|
|
18
|
+
* Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
|
|
19
|
+
*/
|
|
20
|
+
this.theme = "inherit";
|
|
17
21
|
/**
|
|
18
22
|
* If toast dismissMode is set to `automatic`, use this prop to define the time before the toast dismisses (in MILLISECONDS)
|
|
19
23
|
* (NOTE: Has a minimum value of `5000ms`)
|
|
@@ -201,17 +205,21 @@ export class Toast {
|
|
|
201
205
|
: document.activeElement === targetEl;
|
|
202
206
|
}
|
|
203
207
|
render() {
|
|
204
|
-
const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, } = this;
|
|
205
|
-
return (h(Host, { key: '
|
|
208
|
+
const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, theme, } = this;
|
|
209
|
+
return (h(Host, { key: '9934a16e3f339bec971138aec7d46092216d5554', class: {
|
|
210
|
+
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
206
211
|
["ic-toast-hidden"]: !visible,
|
|
207
212
|
[`ic-toast-variant-${variant}`]: variant !== undefined,
|
|
208
|
-
}, tabindex: "0", onFocus: this.onFocus, onBlur: this.onBlur, role: isManual ? "dialog" : "alert", "aria-live": isManual ? null : "polite" }, h("div", { key: '
|
|
213
|
+
}, tabindex: "0", onFocus: this.onFocus, onBlur: this.onBlur, role: isManual ? "dialog" : "alert", "aria-live": isManual ? null : "polite" }, h("div", { key: '97a03d41017adf58f826e42291906b3225ab091c', class: {
|
|
214
|
+
["container"]: true,
|
|
215
|
+
[`container-${variant}`]: variant !== undefined,
|
|
216
|
+
} }, variant && visible && (h("div", { key: '289b4544bee27fd02b20deae22b5bbb822844c9e', class: "toast-icon-container" }, h("div", { key: '03dae21944b95c1d96e2a6b2480b0c20e12ccbd7', class: {
|
|
209
217
|
["divider"]: true,
|
|
210
218
|
[`divider-${variant}`]: true,
|
|
211
|
-
} }), variant === "neutral" ? (h("slot", { name: "neutral-icon" })) : (h("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), h("div", { key: '
|
|
219
|
+
} }), variant === "neutral" ? (h("slot", { name: "neutral-icon" })) : (h("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), h("div", { key: '6191a3f5c39adfa8c5ab4ca5c9e35fd214e00fa2', class: {
|
|
212
220
|
["toast-content"]: true,
|
|
213
221
|
["no-icon"]: variant === "neutral" && !isSlotUsed(this.el, "neutral-icon"),
|
|
214
|
-
} }, h("div", { key: '
|
|
222
|
+
} }, h("div", { key: '1e08fbbfa2ba920c1b90f2eaf35aa801830d47b0', class: "toast-text" }, h("ic-typography", { key: 'ebc61cb12c3bdd05511ae567d09f5504ad010c47', variant: "subtitle-large", class: "toast-heading" }, visible && (isManual ? h("h5", null, heading) : h("p", null, heading))), message && (h("ic-typography", { key: '48ffe5377a09237ac490c8d4a62e962979ce6dc0', variant: "body", class: "toast-message" }, visible && h("p", { key: '7fbffa0f6e6d30389a9d0e5a3b5e1c279911ed9a' }, message)))), isSlotUsed(this.el, "action") && (h("div", { key: '83ba75d3d7aa54caf13cc7723defee623103dffc', class: "toast-action-container" }, h("slot", { key: '18367dd5f8acdc33129ead64728abc71a82f7e57', name: "action" })))), !isManual ? (h("ic-loading-indicator", { class: "toast-dismiss-timer", theme: "dark", monochrome: true, size: "icon", progress: this.timerProgress, description: "Dismiss timer" })) : (h("ic-button", { id: "dismiss-button", innerHTML: closeIcon, onClick: this.dismissAction, variant: "icon-tertiary", "aria-label": dismissButtonAriaLabel })))));
|
|
215
223
|
}
|
|
216
224
|
static get is() { return "ic-toast"; }
|
|
217
225
|
static get encapsulation() { return "shadow"; }
|
|
@@ -227,6 +235,32 @@ export class Toast {
|
|
|
227
235
|
}
|
|
228
236
|
static get properties() {
|
|
229
237
|
return {
|
|
238
|
+
"theme": {
|
|
239
|
+
"type": "string",
|
|
240
|
+
"mutable": false,
|
|
241
|
+
"complexType": {
|
|
242
|
+
"original": "IcThemeMode",
|
|
243
|
+
"resolved": "\"dark\" | \"inherit\" | \"light\"",
|
|
244
|
+
"references": {
|
|
245
|
+
"IcThemeMode": {
|
|
246
|
+
"location": "import",
|
|
247
|
+
"path": "../../utils/types",
|
|
248
|
+
"id": "src/utils/types.ts::IcThemeMode"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"required": false,
|
|
253
|
+
"optional": false,
|
|
254
|
+
"docs": {
|
|
255
|
+
"tags": [],
|
|
256
|
+
"text": "Sets the theme color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component."
|
|
257
|
+
},
|
|
258
|
+
"getter": false,
|
|
259
|
+
"setter": false,
|
|
260
|
+
"attribute": "theme",
|
|
261
|
+
"reflect": false,
|
|
262
|
+
"defaultValue": "\"inherit\""
|
|
263
|
+
},
|
|
230
264
|
"autoDismissTimeout": {
|
|
231
265
|
"type": "number",
|
|
232
266
|
"mutable": true,
|