@tmorrow/cre8-wc 1.0.26 → 1.1.2
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/cdn/cre8-wc.esm.js +9082 -15604
- package/cdn/cre8-wc.esm.js.map +1 -1
- package/cdn/cre8-wc.min.js +1231 -8308
- package/cdn/cre8-wc.min.js.map +1 -1
- package/lib/cdn-entry.d.ts +20 -2
- package/lib/cdn-entry.d.ts.map +1 -1
- package/lib/components/accordion/accordion.js +18 -64
- package/lib/components/accordion/accordion.styles.d.ts.map +1 -1
- package/lib/components/accordion-item/accordion-item.js +35 -238
- package/lib/components/accordion-item/accordion-item.styles.d.ts.map +1 -1
- package/lib/components/alert/alert.js +56 -221
- package/lib/components/alert/alert.styles.d.ts.map +1 -1
- package/lib/components/badge/badge.js +33 -164
- package/lib/components/badge/badge.styles.d.ts.map +1 -1
- package/lib/components/band/band.js +11 -261
- package/lib/components/band/band.styles.d.ts.map +1 -1
- package/lib/components/breadcrumbs/breadcrumbs.js +14 -33
- package/lib/components/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
- package/lib/components/breadcrumbs-item/breadcrumbs-item.js +10 -45
- package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.d.ts.map +1 -1
- package/lib/components/button/button.js +14 -14
- package/lib/components/button-group/button-group.js +10 -261
- package/lib/components/button-group/button-group.styles.d.ts.map +1 -1
- package/lib/components/card/card.js +17 -130
- package/lib/components/card/card.styles.d.ts.map +1 -1
- package/lib/components/chart/chart.js +137 -223
- package/lib/components/chart/chart.styles.d.ts.map +1 -1
- package/lib/components/checkbox-field/checkbox-field.js +26 -59
- package/lib/components/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
- package/lib/components/checkbox-field-item/checkbox-field-item.js +38 -205
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.d.ts.map +1 -1
- package/lib/components/danger-button/danger-button.js +53 -582
- package/lib/components/danger-button/danger-button.styles.d.ts.map +1 -1
- package/lib/components/date-picker/calendar/calendar.styles.d.ts.map +1 -1
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.d.ts.map +1 -1
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.d.ts.map +1 -1
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.d.ts.map +1 -1
- package/lib/components/date-picker/date-picker.js +262 -499
- package/lib/components/date-picker/date-picker.styles.d.ts.map +1 -1
- package/lib/components/divider/divider.js +20 -61
- package/lib/components/divider/divider.styles.d.ts.map +1 -1
- package/lib/components/dropdown/dropdown.js +34 -107
- package/lib/components/dropdown/dropdown.styles.d.ts.map +1 -1
- package/lib/components/dropdown-item/dropdown-item.js +18 -49
- package/lib/components/dropdown-item/dropdown-item.styles.d.ts.map +1 -1
- package/lib/components/feature/feature.js +19 -81
- package/lib/components/feature/feature.styles.d.ts.map +1 -1
- package/lib/components/field/field.js +12 -146
- package/lib/components/field/field.styles.d.ts.map +1 -1
- package/lib/components/field-note/field-note.js +22 -66
- package/lib/components/field-note/field-note.styles.d.ts.map +1 -1
- package/lib/components/footer/footer.js +10 -29
- package/lib/components/footer/footer.styles.d.ts.map +1 -1
- package/lib/components/global-nav/global-nav.js +20 -43
- package/lib/components/global-nav/global-nav.styles.d.ts.map +1 -1
- package/lib/components/global-nav-item/global-nav-item.js +26 -105
- package/lib/components/global-nav-item/global-nav-item.styles.d.ts.map +1 -1
- package/lib/components/grid/grid.js +15 -337
- package/lib/components/grid/grid.styles.d.ts.map +1 -1
- package/lib/components/grid-item/grid-item.js +7 -15
- package/lib/components/grid-item/grid-item.styles.d.ts.map +1 -1
- package/lib/components/header/header.js +17 -80
- package/lib/components/header/header.styles.d.ts.map +1 -1
- package/lib/components/heading/heading.js +16 -153
- package/lib/components/heading/heading.styles.d.ts.map +1 -1
- package/lib/components/hero/hero.js +17 -149
- package/lib/components/hero/hero.styles.d.ts.map +1 -1
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon.styles.d.ts.map +1 -1
- package/lib/components/inline-alert/inline-alert.js +53 -214
- package/lib/components/inline-alert/inline-alert.styles.d.ts.map +1 -1
- package/lib/components/layout/layout.js +20 -53
- package/lib/components/layout/layout.styles.d.ts.map +1 -1
- package/lib/components/layout-container/layout-container.js +20 -43
- package/lib/components/layout-container/layout-container.styles.d.ts.map +1 -1
- package/lib/components/layout-section/layout-section.js +20 -29
- package/lib/components/layout-section/layout-section.styles.d.ts.map +1 -1
- package/lib/components/linelength-container/linelength-container.js +7 -15
- package/lib/components/linelength-container/linelength-container.styles.d.ts.map +1 -1
- package/lib/components/link/link.js +33 -228
- package/lib/components/link/link.styles.d.ts.map +1 -1
- package/lib/components/link-list/link-list.js +23 -129
- package/lib/components/link-list/link-list.styles.d.ts.map +1 -1
- package/lib/components/link-list-item/link-list-item.js +19 -80
- package/lib/components/link-list-item/link-list-item.styles.d.ts.map +1 -1
- package/lib/components/list/list.js +17 -67
- package/lib/components/list/list.styles.d.ts.map +1 -1
- package/lib/components/list-item/list-item.js +11 -16
- package/lib/components/list-item/list-item.styles.d.ts.map +1 -1
- package/lib/components/loading-spinner/loading-spinner.js +13 -157
- package/lib/components/loading-spinner/loading-spinner.styles.d.ts.map +1 -1
- package/lib/components/logo/logo.js +20 -30
- package/lib/components/logo/logo.styles.d.ts.map +1 -1
- package/lib/components/main/main.js +18 -42
- package/lib/components/main/main.styles.d.ts.map +1 -1
- package/lib/components/modal/modal.d.ts +1 -0
- package/lib/components/modal/modal.d.ts.map +1 -1
- package/lib/components/modal/modal.js +52 -217
- package/lib/components/modal/modal.styles.d.ts.map +1 -1
- package/lib/components/multi-select/multi-select.js +71 -532
- package/lib/components/multi-select/multi-select.styles.d.ts.map +1 -1
- package/lib/components/nav-container/nav-container.js +5 -40
- package/lib/components/nav-container/nav-container.styles.d.ts.map +1 -1
- package/lib/components/page-header/page-header.js +19 -54
- package/lib/components/page-header/page-header.styles.d.ts.map +1 -1
- package/lib/components/pagination/page-counter/page-counter.styles.d.ts.map +1 -1
- package/lib/components/pagination/pagination.js +102 -183
- package/lib/components/pagination/pagination.styles.d.ts.map +1 -1
- package/lib/components/percent-bar/percent-bar.js +22 -50
- package/lib/components/percent-bar/percent-bar.styles.d.ts.map +1 -1
- package/lib/components/popover/popover.js +51 -220
- package/lib/components/popover/popover.styles.d.ts.map +1 -1
- package/lib/components/primary-nav/primary-nav.js +17 -51
- package/lib/components/primary-nav/primary-nav.styles.d.ts.map +1 -1
- package/lib/components/primary-nav-item/primary-nav-item.js +24 -191
- package/lib/components/primary-nav-item/primary-nav-item.styles.d.ts.map +1 -1
- package/lib/components/progress-meter/progress-meter.js +23 -127
- package/lib/components/progress-meter/progress-meter.styles.d.ts.map +1 -1
- package/lib/components/progress-steps/progress-steps.styles.d.ts.map +1 -1
- package/lib/components/progress-steps-item/progress-steps-item.js +27 -118
- package/lib/components/progress-steps-item/progress-steps-item.styles.d.ts.map +1 -1
- package/lib/components/radio-field/radio-field.js +28 -64
- package/lib/components/radio-field/radio-field.styles.d.ts.map +1 -1
- package/lib/components/radio-field-item/radio-field-item.js +54 -189
- package/lib/components/radio-field-item/radio-field-item.styles.d.ts.map +1 -1
- package/lib/components/remove-tag/remove-tag.js +36 -129
- package/lib/components/remove-tag/remove-tag.styles.d.ts.map +1 -1
- package/lib/components/section/section.js +19 -50
- package/lib/components/section/section.styles.d.ts.map +1 -1
- package/lib/components/select/select.js +43 -416
- package/lib/components/select/select.styles.d.ts.map +1 -1
- package/lib/components/select-tile/select-tile.js +18 -442
- package/lib/components/select-tile/select-tile.styles.d.ts.map +1 -1
- package/lib/components/select-tile-list/select-tile-list.js +24 -62
- package/lib/components/select-tile-list/select-tile-list.styles.d.ts.map +1 -1
- package/lib/components/skeleton-loader/skeleton-loader.js +19 -73
- package/lib/components/skeleton-loader/skeleton-loader.styles.d.ts.map +1 -1
- package/lib/components/split-button/split-button.js +21 -37
- package/lib/components/split-button/split-button.styles.d.ts.map +1 -1
- package/lib/components/submenu/submenu.js +8 -18
- package/lib/components/submenu/submenu.styles.d.ts.map +1 -1
- package/lib/components/submenu-item/submenu-item.js +21 -42
- package/lib/components/submenu-item/submenu-item.styles.d.ts.map +1 -1
- package/lib/components/tab/tab.js +17 -100
- package/lib/components/tab/tab.styles.d.ts.map +1 -1
- package/lib/components/tab-panel/tab-panel.js +18 -52
- package/lib/components/tab-panel/tab-panel.styles.d.ts.map +1 -1
- package/lib/components/table/table.js +21 -73
- package/lib/components/table/table.styles.d.ts.map +1 -1
- package/lib/components/table-body/table-body.js +12 -24
- package/lib/components/table-body/table-body.styles.d.ts.map +1 -1
- package/lib/components/table-cell/table-cell.js +29 -69
- package/lib/components/table-cell/table-cell.styles.d.ts.map +1 -1
- package/lib/components/table-header/table-header.js +8 -39
- package/lib/components/table-header/table-header.styles.d.ts.map +1 -1
- package/lib/components/table-header-cell/table-header-cell.js +18 -37
- package/lib/components/table-header-cell/table-header-cell.styles.d.ts.map +1 -1
- package/lib/components/table-object/table-object.js +13 -32
- package/lib/components/table-object/table-object.styles.d.ts.map +1 -1
- package/lib/components/table-row/table-row.js +33 -139
- package/lib/components/table-row/table-row.styles.d.ts.map +1 -1
- package/lib/components/tabs/tabs.js +24 -339
- package/lib/components/tabs/tabs.styles.d.ts.map +1 -1
- package/lib/components/tag/tag.js +44 -159
- package/lib/components/tag/tag.styles.d.ts.map +1 -1
- package/lib/components/tag-list/tag-list.js +20 -51
- package/lib/components/tag-list/tag-list.styles.d.ts.map +1 -1
- package/lib/components/tertiary-nav/tertiary-nav.js +21 -54
- package/lib/components/tertiary-nav/tertiary-nav.styles.d.ts.map +1 -1
- package/lib/components/tertiary-nav-item/tertiary-nav-item.js +18 -68
- package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.d.ts.map +1 -1
- package/lib/components/text-link/text-link.js +20 -85
- package/lib/components/text-link/text-link.styles.d.ts.map +1 -1
- package/lib/components/text-passage/text-passage-light-dom.styles.d.ts.map +1 -1
- package/lib/components/text-passage/text-passage.js +17 -189
- package/lib/components/text-passage/text-passage.styles.d.ts.map +1 -1
- package/lib/components/tooltip/tooltip.js +57 -248
- package/lib/components/tooltip/tooltip.styles.d.ts.map +1 -1
- package/lib/components/utility-nav/utility-nav.js +23 -56
- package/lib/components/utility-nav/utility-nav.styles.d.ts.map +1 -1
- package/lib/components/utility-nav-item/utility-nav-item.js +28 -83
- package/lib/components/utility-nav-item/utility-nav-item.styles.d.ts.map +1 -1
- package/lib/design-tokens/brands/blue/css/tokens_blue.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/bolt/tokens_bolt.theme.d.ts.map +1 -1
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts +3 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts +2 -2
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.d.ts.map +1 -1
- package/lib/design-tokens/core/scss/theming/component.scss +5 -5
- package/lib/design-tokens/core/scss/theming/functions.scss +4 -0
- package/lib/design-tokens/core/scss/theming/spacing.scss +60 -60
- package/lib/design-tokens/core/scss/theming/variables.scss +11 -11
- package/lib/design-tokens/mixins/typography-usage.scss +277 -277
- package/lib/design-tokens/tokens_netflix.theme.d.ts.map +1 -1
- package/lib/{icon-DImqxDiW.js → icon-D22g8aWB.js} +35 -138
- package/lib/index.js +1 -1
- package/package.json +14 -8
|
@@ -1,486 +1,25 @@
|
|
|
1
|
-
import { ifDefined as
|
|
1
|
+
import { ifDefined as b } from "lit-html/directives/if-defined.js";
|
|
2
2
|
import { css as f, html as l, nothing as n } from "lit";
|
|
3
|
-
import { property as
|
|
3
|
+
import { property as o, state as m } from "lit/decorators.js";
|
|
4
4
|
import { nanoid as h } from "nanoid";
|
|
5
|
-
import { Cre8Element as
|
|
5
|
+
import { Cre8Element as y } from "../cre8-element.js";
|
|
6
6
|
import "../remove-tag/remove-tag.js";
|
|
7
7
|
import "../field-note/field-note.js";
|
|
8
8
|
import "../button/button.js";
|
|
9
9
|
import "../checkbox-field-item/checkbox-field-item.js";
|
|
10
|
-
const
|
|
10
|
+
const g = `<svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
11
11
|
<path d="M15.7869 4.87827L8.51452 12.1506C8.44698 12.2182 8.36677 12.2719 8.27849 12.3085C8.1902 12.3451 8.09557 12.3639 8 12.3639C7.90443 12.3639 7.8098 12.3451 7.72151 12.3085C7.63323 12.2719 7.55302 12.2182 7.48548 12.1506L0.213121 4.87827C0.0766618 4.74181 0 4.55673 0 4.36375C0 4.17077 0.0766618 3.98569 0.213121 3.84923C0.34958 3.71277 0.534658 3.63611 0.72764 3.63611C0.920622 3.63611 1.1057 3.71277 1.24216 3.84923L8 10.608L14.7578 3.84923C14.8254 3.78166 14.9056 3.72806 14.9939 3.6915C15.0822 3.65493 15.1768 3.63611 15.2724 3.63611C15.3679 3.63611 15.4625 3.65493 15.5508 3.6915C15.6391 3.72806 15.7193 3.78166 15.7869 3.84923C15.8544 3.9168 15.908 3.99701 15.9446 4.08529C15.9812 4.17357 16 4.26819 16 4.36375C16 4.4593 15.9812 4.55392 15.9446 4.6422C15.908 4.73049 15.8544 4.8107 15.7869 4.87827Z"/>
|
|
12
12
|
</svg>
|
|
13
13
|
`, v = `<svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
14
14
|
<path d="M10.8969 5.97385L8.87 8L10.8969 10.0262C10.9541 10.0833 10.9995 10.1512 11.0304 10.2259C11.0613 10.3006 11.0773 10.3807 11.0773 10.4615C11.0773 10.5424 11.0613 10.6225 11.0304 10.6972C10.9995 10.7719 10.9541 10.8397 10.8969 10.8969C10.8397 10.9541 10.7719 10.9994 10.6972 11.0304C10.6225 11.0613 10.5424 11.0773 10.4615 11.0773C10.3807 11.0773 10.3006 11.0613 10.2259 11.0304C10.1512 10.9994 10.0833 10.9541 10.0262 10.8969L8 8.87L5.97385 10.8969C5.91667 10.9541 5.8488 10.9994 5.77409 11.0304C5.69939 11.0613 5.61932 11.0773 5.53846 11.0773C5.45761 11.0773 5.37754 11.0613 5.30283 11.0304C5.22813 10.9994 5.16025 10.9541 5.10308 10.8969C5.0459 10.8397 5.00055 10.7719 4.96961 10.6972C4.93866 10.6225 4.92274 10.5424 4.92274 10.4615C4.92274 10.3807 4.93866 10.3006 4.96961 10.2259C5.00055 10.1512 5.0459 10.0833 5.10308 10.0262L7.13 8L5.10308 5.97385C4.98761 5.85837 4.92274 5.70176 4.92274 5.53846C4.92274 5.37516 4.98761 5.21855 5.10308 5.10308C5.21855 4.9876 5.37516 4.92273 5.53846 4.92273C5.70176 4.92273 5.85838 4.9876 5.97385 5.10308L8 7.13L10.0262 5.10308C10.0833 5.0459 10.1512 5.00055 10.2259 4.9696C10.3006 4.93866 10.3807 4.92273 10.4615 4.92273C10.5424 4.92273 10.6225 4.93866 10.6972 4.9696C10.7719 5.00055 10.8397 5.0459 10.8969 5.10308C10.9541 5.16025 10.9995 5.22813 11.0304 5.30283C11.0613 5.37753 11.0773 5.4576 11.0773 5.53846C11.0773 5.61932 11.0613 5.69939 11.0304 5.77409C10.9995 5.84879 10.9541 5.91667 10.8969 5.97385ZM16 8C16 9.58225 15.5308 11.129 14.6518 12.4446C13.7727 13.7602 12.5233 14.7855 11.0615 15.391C9.59966 15.9965 7.99113 16.155 6.43928 15.8463C4.88743 15.5376 3.46197 14.7757 2.34315 13.6569C1.22433 12.538 0.462403 11.1126 0.153721 9.56072C-0.15496 8.00887 0.00346628 6.40034 0.608967 4.93853C1.21447 3.47672 2.23985 2.22729 3.55544 1.34824C4.87103 0.469192 6.41775 0 8 0C10.121 0.00223986 12.1546 0.845814 13.6544 2.34562C15.1542 3.84542 15.9978 5.87895 16 8ZM14.7692 8C14.7692 6.66117 14.3722 5.35241 13.6284 4.23922C12.8846 3.12602 11.8274 2.25839 10.5905 1.74605C9.35356 1.2337 7.99249 1.09965 6.67939 1.36084C5.36629 1.62203 4.16013 2.26674 3.21343 3.21343C2.26674 4.16012 1.62203 5.36629 1.36084 6.67939C1.09965 7.99249 1.2337 9.35356 1.74605 10.5905C2.2584 11.8274 3.12603 12.8846 4.23922 13.6284C5.35241 14.3722 6.66117 14.7692 8 14.7692C9.79469 14.7672 11.5153 14.0534 12.7843 12.7843C14.0534 11.5153 14.7672 9.79468 14.7692 8Z"/>
|
|
15
15
|
</svg>
|
|
16
|
-
`,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
*:before,
|
|
22
|
-
*:after {
|
|
23
|
-
box-sizing: border-box;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
:root {
|
|
27
|
-
--size-base-unit: 0.5rem;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* RTL support for values logical properties can't automatically adjust for
|
|
32
|
-
* 1) Percentage based horizontal translate values need to be flipped
|
|
33
|
-
* 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
|
|
34
|
-
* 3) Inverse items that have 45degs
|
|
35
|
-
*/
|
|
36
|
-
[dir=rtl] {
|
|
37
|
-
--rtlTranslateX: 50%;
|
|
38
|
-
/* 1 */
|
|
39
|
-
--rtlGradientToRight: 270deg;
|
|
40
|
-
/* 2 */
|
|
41
|
-
--rtlRotate45Inverse: -45deg;
|
|
42
|
-
/* 3 */
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Visible focus outline for elements on a light background
|
|
47
|
-
*/
|
|
48
|
-
/**
|
|
49
|
-
* Visible focus outline for elements with an error status
|
|
50
|
-
*/
|
|
51
|
-
/**
|
|
52
|
-
* Visible focus outline for elements on a dark background
|
|
53
|
-
*/
|
|
54
|
-
/**
|
|
55
|
-
* Focus state for themes that need a dashed outline for focus
|
|
56
|
-
* state
|
|
57
|
-
**/
|
|
58
|
-
/**
|
|
59
|
-
* Invisible focus outline for elements that need a more visible
|
|
60
|
-
* focus state for high-contrast mode
|
|
61
|
-
*/
|
|
62
|
-
/**
|
|
63
|
-
* Visually hidden from display
|
|
64
|
-
*/
|
|
65
|
-
/*
|
|
66
|
-
=======
|
|
67
|
-
Animations
|
|
68
|
-
=======
|
|
69
|
-
*/
|
|
70
|
-
:host {
|
|
71
|
-
--cre8-z-index-1: 1;
|
|
72
|
-
--cre8-z-index-50: 50;
|
|
73
|
-
--cre8-z-index-100: 100;
|
|
74
|
-
--cre8-z-index-200: 200;
|
|
75
|
-
--cre8-z-index-1030: 1030;
|
|
76
|
-
--cre8-anim-fade-quick: 0.35s;
|
|
77
|
-
--cre8-anim-ease: ease;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
@keyframes fadeIn {
|
|
81
|
-
100% {
|
|
82
|
-
opacity: 1;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
@keyframes slideIn {
|
|
86
|
-
100% {
|
|
87
|
-
transform: translateX(0);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
@keyframes slideInFwd {
|
|
91
|
-
100% {
|
|
92
|
-
width: 272px;
|
|
93
|
-
height: 272px;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
@keyframes slideOutRight {
|
|
97
|
-
100% {
|
|
98
|
-
width: 272px;
|
|
99
|
-
height: 272px;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
@keyframes slideUp {
|
|
103
|
-
100% {
|
|
104
|
-
transform: translateY(0);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
@media (width >= 481px) {
|
|
108
|
-
@keyframes slideInFwd {
|
|
109
|
-
100% {
|
|
110
|
-
width: 417px;
|
|
111
|
-
height: 417px;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
@keyframes slideOutRight {
|
|
115
|
-
100% {
|
|
116
|
-
width: 417px;
|
|
117
|
-
height: 417px;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
@media (width >= 48rem) {
|
|
122
|
-
@keyframes slideInFwd {
|
|
123
|
-
100% {
|
|
124
|
-
width: 330px;
|
|
125
|
-
height: 330px;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
@keyframes slideOutRight {
|
|
129
|
-
100% {
|
|
130
|
-
width: 330px;
|
|
131
|
-
height: 330px;
|
|
132
|
-
transform: translateX(calc(100vw - 45px));
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
@media (width >= 60rem) {
|
|
137
|
-
@keyframes slideInFwd {
|
|
138
|
-
100% {
|
|
139
|
-
width: 460px;
|
|
140
|
-
height: 460px;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
@keyframes slideOutRight {
|
|
144
|
-
100% {
|
|
145
|
-
width: 460px;
|
|
146
|
-
height: 460px;
|
|
147
|
-
transform: translateX(calc(100vw - 45px));
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
@media (width >= 75rem) {
|
|
152
|
-
@keyframes slideInFwd {
|
|
153
|
-
100% {
|
|
154
|
-
width: 592px;
|
|
155
|
-
height: 591px;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
@keyframes slideOutRight {
|
|
159
|
-
100% {
|
|
160
|
-
width: 592px;
|
|
161
|
-
height: 591px;
|
|
162
|
-
transform: translateX(calc(100vw - 45px));
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
@media (width >= 87.5rem) {
|
|
167
|
-
@keyframes slideOutRight {
|
|
168
|
-
100% {
|
|
169
|
-
width: 592px;
|
|
170
|
-
height: 591px;
|
|
171
|
-
transform: translateX(calc(100vw - 120px));
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
@media (width >= 2200px) {
|
|
176
|
-
@keyframes slideOutRight {
|
|
177
|
-
100% {
|
|
178
|
-
width: 592px;
|
|
179
|
-
height: 591px;
|
|
180
|
-
transform: translateX(calc(100vw - 592px));
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
span.ripple {
|
|
185
|
-
position: absolute;
|
|
186
|
-
border-radius: 50%;
|
|
187
|
-
transform: scale(0);
|
|
188
|
-
animation: ripple 600ms linear;
|
|
189
|
-
background-color: var(--ripple-bg-color);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
@keyframes ripple {
|
|
193
|
-
to {
|
|
194
|
-
transform: scale(4);
|
|
195
|
-
opacity: 1;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
:root {
|
|
199
|
-
--size-base-unit: 0.5rem;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* RTL support for values logical properties can't automatically adjust for
|
|
204
|
-
* 1) Percentage based horizontal translate values need to be flipped
|
|
205
|
-
* 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
|
|
206
|
-
* 3) Inverse items that have 45degs
|
|
207
|
-
*/
|
|
208
|
-
[dir=rtl] {
|
|
209
|
-
--rtlTranslateX: 50%;
|
|
210
|
-
/* 1 */
|
|
211
|
-
--rtlGradientToRight: 270deg;
|
|
212
|
-
/* 2 */
|
|
213
|
-
--rtlRotate45Inverse: -45deg;
|
|
214
|
-
/* 3 */
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Visible focus outline for elements on a light background
|
|
219
|
-
*/
|
|
220
|
-
/**
|
|
221
|
-
* Visible focus outline for elements with an error status
|
|
222
|
-
*/
|
|
223
|
-
/**
|
|
224
|
-
* Visible focus outline for elements on a dark background
|
|
225
|
-
*/
|
|
226
|
-
/**
|
|
227
|
-
* Focus state for themes that need a dashed outline for focus
|
|
228
|
-
* state
|
|
229
|
-
**/
|
|
230
|
-
/**
|
|
231
|
-
* Invisible focus outline for elements that need a more visible
|
|
232
|
-
* focus state for high-contrast mode
|
|
233
|
-
*/
|
|
234
|
-
/**
|
|
235
|
-
* Visually hidden from display
|
|
236
|
-
*/
|
|
237
|
-
:host {
|
|
238
|
-
display: block;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.cre8-c-multi-select {
|
|
242
|
-
position: relative;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* Label
|
|
247
|
-
*/
|
|
248
|
-
.cre8-c-multi-select__label {
|
|
249
|
-
font-family: var(--cre8-typography-label-small-font-family);
|
|
250
|
-
font-size: var(--cre8-typography-label-small-font-size);
|
|
251
|
-
font-weight: var(--cre8-typography-label-small-font-weight);
|
|
252
|
-
line-height: var(--cre8-typography-label-small-line-height);
|
|
253
|
-
-webkit-text-decoration: var(--cre8-typography-label-small-text-decoration);
|
|
254
|
-
text-decoration: var(--cre8-typography-label-small-text-decoration);
|
|
255
|
-
text-transform: var(--cre8-typography-label-small-text-transform);
|
|
256
|
-
display: block;
|
|
257
|
-
margin-bottom: 8px;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* Body
|
|
262
|
-
* 1) The div that contains the input and icons
|
|
263
|
-
*/
|
|
264
|
-
.cre8-c-multi-select__body {
|
|
265
|
-
display: flex;
|
|
266
|
-
align-items: center;
|
|
267
|
-
justify-content: space-between;
|
|
268
|
-
position: relative;
|
|
269
|
-
font-family: var(--cre8-typography-body-default-font-family);
|
|
270
|
-
font-size: var(--cre8-typography-body-default-font-size);
|
|
271
|
-
font-weight: var(--cre8-typography-body-default-font-weight);
|
|
272
|
-
line-height: var(--cre8-typography-body-default-line-height);
|
|
273
|
-
-webkit-text-decoration: var(--cre8-typography-body-default-text-decoration);
|
|
274
|
-
text-decoration: var(--cre8-typography-body-default-text-decoration);
|
|
275
|
-
text-transform: var(--cre8-typography-body-default-text-transform);
|
|
276
|
-
outline: var(--cre8-border-width-focus) solid transparent;
|
|
277
|
-
outline-offset: 2px;
|
|
278
|
-
-webkit-appearance: none;
|
|
279
|
-
width: 100%;
|
|
280
|
-
border-width: var(--cre8-border-width-default);
|
|
281
|
-
border-style: solid;
|
|
282
|
-
border-color: var(--cre8-color-border-strong);
|
|
283
|
-
border-radius: var(--cre8-border-radius-default);
|
|
284
|
-
padding: 12px 8px;
|
|
285
|
-
color: var(--cre8-color-content-default);
|
|
286
|
-
background-color: var(--cre8-color-bg-default);
|
|
287
|
-
transition: outline-color var(--cre8-anim-fade-quick) var(--cre8-anim-ease), border-color var(--cre8-anim-fade-quick) var(--cre8-anim-ease), background-color var(--cre8-anim-fade-quick) var(--cre8-anim-ease), color var(--cre8-anim-fade-quick) var(--cre8-anim-ease);
|
|
288
|
-
/**
|
|
289
|
-
* Hover, focus, active, and focus-visible styles for default input elements
|
|
290
|
-
*/
|
|
291
|
-
/**
|
|
292
|
-
* Disabled styles for default input elements
|
|
293
|
-
*/
|
|
294
|
-
/**
|
|
295
|
-
* Placeholder styles for default input elements
|
|
296
|
-
*/
|
|
297
|
-
/**
|
|
298
|
-
* Error state for default input elements
|
|
299
|
-
*/
|
|
300
|
-
/**
|
|
301
|
-
* Success state for default input elements
|
|
302
|
-
*/
|
|
303
|
-
padding: var(--cre8-spacing-8);
|
|
304
|
-
padding-inline-end: 44px;
|
|
305
|
-
min-width: 240px;
|
|
306
|
-
cursor: pointer;
|
|
307
|
-
min-height: 48px;
|
|
308
|
-
height: -moz-fit-content;
|
|
309
|
-
height: fit-content;
|
|
310
|
-
}
|
|
311
|
-
.cre8-c-multi-select__body:hover:not(:disabled), .cre8-c-multi-select__body:focus:not(:disabled), .cre8-c-multi-select__body:active:not(:disabled), .cre8-c-multi-select__body:focus-visible {
|
|
312
|
-
outline: var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);
|
|
313
|
-
outline-offset: 2px;
|
|
314
|
-
/**
|
|
315
|
-
* Error state
|
|
316
|
-
*/
|
|
317
|
-
/**
|
|
318
|
-
* Success state
|
|
319
|
-
*/
|
|
320
|
-
}
|
|
321
|
-
.cre8-is-error .cre8-c-multi-select__body:hover:not(:disabled), .cre8-is-error .cre8-c-multi-select__body:focus:not(:disabled), .cre8-is-error .cre8-c-multi-select__body:active:not(:disabled), .cre8-is-error .cre8-c-multi-select__body:focus-visible {
|
|
322
|
-
outline-color: var(--cre8-color-border-error);
|
|
323
|
-
}
|
|
324
|
-
.cre8-is-success .cre8-c-multi-select__body:hover:not(:disabled), .cre8-is-success .cre8-c-multi-select__body:focus:not(:disabled), .cre8-is-success .cre8-c-multi-select__body:active:not(:disabled), .cre8-is-success .cre8-c-multi-select__body:focus-visible {
|
|
325
|
-
outline-color: var(--cre8-color-border-success);
|
|
326
|
-
}
|
|
327
|
-
.cre8-c-multi-select__body:disabled {
|
|
328
|
-
background-color: var(--cre8-color-bg-disabled);
|
|
329
|
-
border-color: var(--cre8-color-border-disabled);
|
|
330
|
-
color: var(--cre8-color-content-disabled);
|
|
331
|
-
cursor: not-allowed;
|
|
332
|
-
/**
|
|
333
|
-
* Disabled text colors
|
|
334
|
-
*/
|
|
335
|
-
}
|
|
336
|
-
.cre8-c-multi-select__body:disabled::-moz-placeholder {
|
|
337
|
-
color: var(--cre8-color-content-disabled);
|
|
338
|
-
}
|
|
339
|
-
.cre8-c-multi-select__body:disabled::placeholder {
|
|
340
|
-
color: var(--cre8-color-content-disabled);
|
|
341
|
-
}
|
|
342
|
-
.cre8-c-multi-select__body::-moz-placeholder {
|
|
343
|
-
color: var(--cre8-color-content-subtle);
|
|
344
|
-
}
|
|
345
|
-
.cre8-c-multi-select__body::placeholder {
|
|
346
|
-
color: var(--cre8-color-content-subtle);
|
|
347
|
-
}
|
|
348
|
-
.cre8-is-error .cre8-c-multi-select__body {
|
|
349
|
-
border-color: var(--cre8-color-border-error);
|
|
350
|
-
}
|
|
351
|
-
.cre8-is-success .cre8-c-multi-select__body {
|
|
352
|
-
border-color: var(--cre8-color-border-success);
|
|
353
|
-
}
|
|
354
|
-
.cre8-is-disabled .cre8-c-multi-select__body {
|
|
355
|
-
box-shadow: none;
|
|
356
|
-
background-color: var(--cre8-color-bg-disabled);
|
|
357
|
-
border-color: var(--cre8-color-border-disabled);
|
|
358
|
-
cursor: not-allowed;
|
|
359
|
-
outline: none;
|
|
360
|
-
}
|
|
361
|
-
.cre8-is-disabled .cre8-c-multi-select__body:hover, .cre8-is-disabled .cre8-c-multi-select__body:focus, .cre8-is-disabled .cre8-c-multi-select__body:active, .cre8-is-disabled .cre8-c-multi-select__body:focus-visible {
|
|
362
|
-
outline: none;
|
|
363
|
-
background-color: var(--cre8-color-bg-disabled);
|
|
364
|
-
border-color: var(--cre8-color-border-disabled);
|
|
365
|
-
color: var(--cre8-color-content-disabled);
|
|
366
|
-
}
|
|
367
|
-
.cre8-is-disabled .cre8-c-multi-select__body .cre8-c-multi-select__content {
|
|
368
|
-
border-color: var(--cre8-color-border-disabled);
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
.cre8-c-multi-select__content {
|
|
372
|
-
display: flex;
|
|
373
|
-
min-height: 30px;
|
|
374
|
-
width: 100%;
|
|
375
|
-
border-right: var(--cre8-border-width-default) var(--cre8-border-style-default) var(--cre8-color-border-strong);
|
|
376
|
-
padding-right: 44px;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.cre8-c-multi-select__tag-wrapper {
|
|
380
|
-
list-style-type: none;
|
|
381
|
-
margin: 0;
|
|
382
|
-
padding: 0;
|
|
383
|
-
display: flex;
|
|
384
|
-
flex-wrap: wrap;
|
|
385
|
-
height: 100%;
|
|
386
|
-
gap: 4px;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
.cre8-c-multi-select__icons-wrapper {
|
|
390
|
-
display: flex;
|
|
391
|
-
justify-content: end;
|
|
392
|
-
margin-right: -36px;
|
|
393
|
-
margin-left: -48px;
|
|
394
|
-
gap: 24px;
|
|
395
|
-
min-width: 96px;
|
|
396
|
-
}
|
|
397
|
-
.cre8-c-multi-select__icons-wrapper button {
|
|
398
|
-
background-color: inherit;
|
|
399
|
-
border: none;
|
|
400
|
-
padding: none;
|
|
401
|
-
}
|
|
402
|
-
.cre8-is-disabled .cre8-c-multi-select__icons-wrapper button {
|
|
403
|
-
cursor: not-allowed;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
.cre8-c-multi-select--no-clear-icon .cre8-c-multi-select__clear_icon {
|
|
407
|
-
display: none;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* Select Icon
|
|
412
|
-
* 1) The icons within the body container positioned absolutely over the input
|
|
413
|
-
*/
|
|
414
|
-
cre8-icon {
|
|
415
|
-
display: flex;
|
|
416
|
-
pointer-events: none;
|
|
417
|
-
color: var(--cre8-color-button-tertiary-content);
|
|
418
|
-
}
|
|
419
|
-
.cre8-is-disabled cre8-icon {
|
|
420
|
-
color: var(--cre8-color-border-disabled);
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
.cre8-c-multi-select__dropdown {
|
|
424
|
-
background-color: var(--cre8-color-bg-default);
|
|
425
|
-
border: var(--cre8-border-width-default) var(--cre8-border-style-default) var(--cre8-color-border-strong);
|
|
426
|
-
box-shadow: var(--cre8-shadow-default);
|
|
427
|
-
border-radius: var(--cre8-border-radius-default);
|
|
428
|
-
flex-direction: column;
|
|
429
|
-
left: 0;
|
|
430
|
-
min-width: 100%;
|
|
431
|
-
position: absolute;
|
|
432
|
-
top: 100%;
|
|
433
|
-
white-space: nowrap;
|
|
434
|
-
margin-top: var(--cre8-spacing-4);
|
|
435
|
-
margin-left: 0;
|
|
436
|
-
padding: var(--cre8-spacing-8);
|
|
437
|
-
}
|
|
438
|
-
.cre8-c-multi-select__dropdown ul {
|
|
439
|
-
list-style-type: none;
|
|
440
|
-
padding: 0;
|
|
441
|
-
margin: 0;
|
|
442
|
-
}
|
|
443
|
-
.cre8-c-multi-select__dropdown li {
|
|
444
|
-
font-family: var(--cre8-typography-body-default-font-family);
|
|
445
|
-
font-size: var(--cre8-typography-body-default-font-size);
|
|
446
|
-
font-weight: var(--cre8-typography-body-default-font-weight);
|
|
447
|
-
line-height: var(--cre8-typography-body-default-line-height);
|
|
448
|
-
-webkit-text-decoration: var(--cre8-typography-body-default-text-decoration);
|
|
449
|
-
text-decoration: var(--cre8-typography-body-default-text-decoration);
|
|
450
|
-
text-transform: var(--cre8-typography-body-default-text-transform);
|
|
451
|
-
background-color: var(--cre8-color-bg-default);
|
|
452
|
-
border: var(--cre8-border-width-focus) var(--cre8-border-style-default) var(--cre8-color-border-transparent);
|
|
453
|
-
border-radius: var(--cre8-border-radius-default);
|
|
454
|
-
color: var(--cre8-color-content-default);
|
|
455
|
-
width: 100%;
|
|
456
|
-
cursor: pointer;
|
|
457
|
-
margin: var(--cre8-spacing-0);
|
|
458
|
-
padding: var(--cre8-spacing-8) var(--cre8-spacing-8);
|
|
459
|
-
text-align: left;
|
|
460
|
-
}
|
|
461
|
-
.cre8-c-multi-select__dropdown li:active, .cre8-c-multi-select__dropdown li:hover, .cre8-c-multi-select__dropdown li:focus {
|
|
462
|
-
background-color: var(--cre8-color-bg-brand-hover);
|
|
463
|
-
color: var(--cre8-color-content-default);
|
|
464
|
-
outline: var(--cre8-border-width-none);
|
|
465
|
-
border: var(--cre8-border-width-focus) var(--cre8-border-style-default) var(--cre8-color-border-active-outline);
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* Select field notes
|
|
470
|
-
*/
|
|
471
|
-
.cre8-c-multi-select__field-note,
|
|
472
|
-
.cre8-c-multi-select__field-note-success,
|
|
473
|
-
.cre8-c-multi-select__field-note-error {
|
|
474
|
-
flex-basis: 100%;
|
|
475
|
-
}
|
|
476
|
-
/* sourceMappingURL=multi-select.module.css.map */
|
|
477
|
-
`;
|
|
478
|
-
var _ = Object.defineProperty, o = (p, e, r, c) => {
|
|
479
|
-
for (var s = void 0, a = p.length - 1, d; a >= 0; a--)
|
|
480
|
-
(d = p[a]) && (s = d(e, r, s) || s);
|
|
481
|
-
return s && _(e, r, s), s;
|
|
16
|
+
`, _ = f`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{display:block}.cre8-c-multi-select{position:relative}.cre8-c-multi-select__label{font-family:var(--cre8-typography-label-small-font-family);font-size:var(--cre8-typography-label-small-font-size);font-weight:var(--cre8-typography-label-small-font-weight);line-height:var(--cre8-typography-label-small-line-height);text-decoration:var(--cre8-typography-label-small-text-decoration);text-transform:var(--cre8-typography-label-small-text-transform);display:block;margin-bottom:0.5rem}.cre8-c-multi-select__body{display:flex;align-items:center;justify-content:space-between;position:relative;font-family:var(--cre8-typography-body-default-font-family);font-size:var(--cre8-typography-body-default-font-size);font-weight:var(--cre8-typography-body-default-font-weight);line-height:var(--cre8-typography-body-default-line-height);text-decoration:var(--cre8-typography-body-default-text-decoration);text-transform:var(--cre8-typography-body-default-text-transform);outline:var(--cre8-border-width-focus) solid rgba(0,0,0,0);outline-offset:0.125rem;-webkit-appearance:none;width:100%;border-width:var(--cre8-border-width-default);border-style:solid;border-color:var(--cre8-color-border-strong);border-radius:var(--cre8-border-radius-default);padding:0.75rem 0.5rem;color:var(--cre8-color-content-default);background-color:var(--cre8-color-bg-default);transition:outline-color var(--cre8-anim-fade-quick) var(--cre8-anim-ease),border-color var(--cre8-anim-fade-quick) var(--cre8-anim-ease),background-color var(--cre8-anim-fade-quick) var(--cre8-anim-ease),color var(--cre8-anim-fade-quick) var(--cre8-anim-ease)}.cre8-c-multi-select__body:hover:not(:disabled),.cre8-c-multi-select__body:focus:not(:disabled),.cre8-c-multi-select__body:active:not(:disabled),.cre8-c-multi-select__body:focus-visible{outline:var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);outline-offset:0.125rem}.cre8-is-error .cre8-c-multi-select__body:hover:not(:disabled),.cre8-is-error .cre8-c-multi-select__body:focus:not(:disabled),.cre8-is-error .cre8-c-multi-select__body:active:not(:disabled),.cre8-is-error .cre8-c-multi-select__body:focus-visible{outline-color:var(--cre8-color-border-error)}.cre8-is-success .cre8-c-multi-select__body:hover:not(:disabled),.cre8-is-success .cre8-c-multi-select__body:focus:not(:disabled),.cre8-is-success .cre8-c-multi-select__body:active:not(:disabled),.cre8-is-success .cre8-c-multi-select__body:focus-visible{outline-color:var(--cre8-color-border-success)}.cre8-c-multi-select__body:disabled{background-color:var(--cre8-color-bg-disabled);border-color:var(--cre8-color-border-disabled);color:var(--cre8-color-content-disabled);cursor:not-allowed}.cre8-c-multi-select__body:disabled::placeholder{color:var(--cre8-color-content-disabled)}.cre8-c-multi-select__body::placeholder{color:var(--cre8-color-content-subtle)}.cre8-is-error .cre8-c-multi-select__body{border-color:var(--cre8-color-border-error)}.cre8-is-success .cre8-c-multi-select__body{border-color:var(--cre8-color-border-success)}.cre8-c-multi-select__body{padding:var(--cre8-spacing-8);padding-inline-end:2.75rem;min-width:240px;cursor:pointer;min-height:3rem;height:fit-content}.cre8-is-disabled .cre8-c-multi-select__body{box-shadow:none;background-color:var(--cre8-color-bg-disabled);border-color:var(--cre8-color-border-disabled);cursor:not-allowed;outline:none}.cre8-is-disabled .cre8-c-multi-select__body:hover,.cre8-is-disabled .cre8-c-multi-select__body:focus,.cre8-is-disabled .cre8-c-multi-select__body:active,.cre8-is-disabled .cre8-c-multi-select__body:focus-visible{outline:none;background-color:var(--cre8-color-bg-disabled);border-color:var(--cre8-color-border-disabled);color:var(--cre8-color-content-disabled)}.cre8-is-disabled .cre8-c-multi-select__body .cre8-c-multi-select__content{border-color:var(--cre8-color-border-disabled)}.cre8-c-multi-select__content{display:flex;min-height:30px;width:100%;border-right:var(--cre8-border-width-default) var(--cre8-border-style-default) var(--cre8-color-border-strong);padding-right:2.75rem}.cre8-c-multi-select__tag-wrapper{list-style-type:none;margin:0;padding:0;display:flex;flex-wrap:wrap;height:100%;gap:0.25rem}.cre8-c-multi-select__icons-wrapper{display:flex;justify-content:end;margin-right:-36px;margin-left:-48px;gap:1.5rem;min-width:96px}.cre8-c-multi-select__icons-wrapper button{background-color:inherit;border:none;padding:none}.cre8-is-disabled .cre8-c-multi-select__icons-wrapper button{cursor:not-allowed}.cre8-c-multi-select--no-clear-icon .cre8-c-multi-select__clear_icon{display:none}cre8-icon{display:flex;pointer-events:none;color:var(--cre8-color-button-tertiary-content)}.cre8-is-disabled cre8-icon{color:var(--cre8-color-border-disabled)}.cre8-c-multi-select__dropdown{background-color:var(--cre8-color-bg-default);border:var(--cre8-border-width-default) var(--cre8-border-style-default) var(--cre8-color-border-strong);box-shadow:var(--cre8-shadow-default);border-radius:var(--cre8-border-radius-default);flex-direction:column;left:0;min-width:100%;position:absolute;top:100%;white-space:nowrap;margin-top:var(--cre8-spacing-4);margin-left:0;padding:var(--cre8-spacing-8)}.cre8-c-multi-select__dropdown ul{list-style-type:none;padding:0;margin:0}.cre8-c-multi-select__dropdown li{font-family:var(--cre8-typography-body-default-font-family);font-size:var(--cre8-typography-body-default-font-size);font-weight:var(--cre8-typography-body-default-font-weight);line-height:var(--cre8-typography-body-default-line-height);text-decoration:var(--cre8-typography-body-default-text-decoration);text-transform:var(--cre8-typography-body-default-text-transform);background-color:var(--cre8-color-bg-default);border:var(--cre8-border-width-focus) var(--cre8-border-style-default) var(--cre8-color-border-transparent);border-radius:var(--cre8-border-radius-default);color:var(--cre8-color-content-default);width:100%;cursor:pointer;margin:var(--cre8-spacing-0);padding:var(--cre8-spacing-8) var(--cre8-spacing-8);text-align:left}.cre8-c-multi-select__dropdown li:active,.cre8-c-multi-select__dropdown li:hover,.cre8-c-multi-select__dropdown li:focus{background-color:var(--cre8-color-bg-brand-hover);color:var(--cre8-color-content-default);outline:var(--cre8-border-width-none);border:var(--cre8-border-width-focus) var(--cre8-border-style-default) var(--cre8-color-border-active-outline)}.cre8-c-multi-select__field-note,.cre8-c-multi-select__field-note-success,.cre8-c-multi-select__field-note-error{flex-basis:100%}`;
|
|
17
|
+
var w = Object.defineProperty, i = (u, e, t, s) => {
|
|
18
|
+
for (var c = void 0, a = u.length - 1, d; a >= 0; a--)
|
|
19
|
+
(d = u[a]) && (c = d(e, t, c) || c);
|
|
20
|
+
return c && w(e, t, c), c;
|
|
482
21
|
};
|
|
483
|
-
const
|
|
22
|
+
const p = class p extends y {
|
|
484
23
|
/* Life Cycle Methods */
|
|
485
24
|
constructor() {
|
|
486
25
|
super(), this.items = [], this.selectedTagItems = [], this.dropdownOpen = !1, this._handleOnClick = this._handleOnClick.bind(this);
|
|
@@ -499,14 +38,14 @@ const u = class u extends g {
|
|
|
499
38
|
return this.items.map(
|
|
500
39
|
// Note: Keyboard can already navigate to the checkbox
|
|
501
40
|
// eslint-disable-next-line lit-a11y/click-events-have-key-events
|
|
502
|
-
(e,
|
|
503
|
-
@click="${(
|
|
41
|
+
(e, t) => l`<li
|
|
42
|
+
@click="${(s) => this._handleListItemClick(s, t)}"
|
|
504
43
|
>
|
|
505
44
|
<cre8-checkbox-field-item
|
|
506
45
|
.checked="${!!this.selectedTagItems.includes(e)}"
|
|
507
46
|
label=${e}
|
|
508
|
-
id=${
|
|
509
|
-
@input="${(
|
|
47
|
+
id=${t}
|
|
48
|
+
@input="${(s) => this._handleDropdownItemInput(e, s)}"
|
|
510
49
|
>
|
|
511
50
|
</cre8-checkbox-field-item>
|
|
512
51
|
</li>`
|
|
@@ -555,25 +94,25 @@ const u = class u extends g {
|
|
|
555
94
|
throw Error(
|
|
556
95
|
"Could not determine navigation context during click handler"
|
|
557
96
|
);
|
|
558
|
-
const
|
|
97
|
+
const t = e.composedPath().includes(this.shadowRoot.host), s = this.renderRoot.querySelector(
|
|
559
98
|
".cre8-c-multi-select__label"
|
|
560
|
-
),
|
|
99
|
+
), c = this.renderRoot.querySelector(
|
|
561
100
|
".cre8-c-multi-select__icons-wrapper"
|
|
562
101
|
), a = this.shadowRoot?.querySelector(
|
|
563
102
|
".cre8-c-multi-select__tag-wrapper"
|
|
564
103
|
), d = this.shadowRoot?.querySelector(
|
|
565
104
|
".cre8-c-multi-select__dropdown"
|
|
566
105
|
);
|
|
567
|
-
|
|
106
|
+
t ? !e.composedPath().includes(s) && !e.composedPath().includes(a) && !e.composedPath().includes(c) && !e.composedPath().includes(d) && !this.disabled && this.toggleDropDown() : this.dropdownOpen = !1;
|
|
568
107
|
}
|
|
569
|
-
_handleListItemClick(e,
|
|
570
|
-
e.target !== this.shadowRoot?.querySelector(`cre8-checkbox-field-item[id="${
|
|
108
|
+
_handleListItemClick(e, t) {
|
|
109
|
+
e.target !== this.shadowRoot?.querySelector(`cre8-checkbox-field-item[id="${t}"]`) && this.shadowRoot?.querySelector(`cre8-checkbox-field-item[id="${t}"]`).shadowRoot?.querySelector("input").click();
|
|
571
110
|
}
|
|
572
|
-
_handleDropdownItemInput(e,
|
|
573
|
-
|
|
111
|
+
_handleDropdownItemInput(e, t) {
|
|
112
|
+
t.target.checked ? this.selectedTagItems = this.selectedTagItems.concat(e) : this.selectedTagItems = this.selectedTagItems.filter((c) => c !== e), this.emitSelectedItems();
|
|
574
113
|
}
|
|
575
114
|
async _handleRemoveTagClick(e) {
|
|
576
|
-
this.disabled || (this.selectedTagItems = this.selectedTagItems.filter((
|
|
115
|
+
this.disabled || (this.selectedTagItems = this.selectedTagItems.filter((t) => t !== e), this.shadowRoot?.querySelector(`cre8-checkbox-field-item[label="${e}"]`).shadowRoot?.querySelector("input").click(), await this.updateComplete, this.emitSelectedItems());
|
|
577
116
|
}
|
|
578
117
|
dropdownArrowClick() {
|
|
579
118
|
this.disabled || this.toggleDropDown();
|
|
@@ -638,7 +177,7 @@ const u = class u extends g {
|
|
|
638
177
|
<div class="cre8-c-multi-select__body" ?disabled=${this.disabled}>
|
|
639
178
|
<div
|
|
640
179
|
class="cre8-c-multi-select__content"
|
|
641
|
-
aria-describedby="${
|
|
180
|
+
aria-describedby="${b(this._fieldNoteAria())}"
|
|
642
181
|
>
|
|
643
182
|
<ul
|
|
644
183
|
class="cre8-c-multi-select__tag-wrapper"
|
|
@@ -660,7 +199,7 @@ const u = class u extends g {
|
|
|
660
199
|
</cre8-button>
|
|
661
200
|
<cre8-button
|
|
662
201
|
?hideText=${!0}
|
|
663
|
-
svg="${
|
|
202
|
+
svg="${g}"
|
|
664
203
|
variant="tertiary"
|
|
665
204
|
?disabled="${this.disabled}"
|
|
666
205
|
class="cre8-c-multi-select__down_icon"
|
|
@@ -693,52 +232,52 @@ const u = class u extends g {
|
|
|
693
232
|
`;
|
|
694
233
|
}
|
|
695
234
|
};
|
|
696
|
-
|
|
697
|
-
let
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
],
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
],
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
],
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
],
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
],
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
],
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
],
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
],
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
],
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
],
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
],
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
],
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
],
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
],
|
|
740
|
-
customElements.get("cre8-multi-select") === void 0 && customElements.define("cre8-multi-select",
|
|
235
|
+
p.styles = [_];
|
|
236
|
+
let r = p;
|
|
237
|
+
i([
|
|
238
|
+
o({ type: Array })
|
|
239
|
+
], r.prototype, "items");
|
|
240
|
+
i([
|
|
241
|
+
m()
|
|
242
|
+
], r.prototype, "selectedTagItems");
|
|
243
|
+
i([
|
|
244
|
+
o({ type: Array })
|
|
245
|
+
], r.prototype, "preselectedItems");
|
|
246
|
+
i([
|
|
247
|
+
m()
|
|
248
|
+
], r.prototype, "dropdownOpen");
|
|
249
|
+
i([
|
|
250
|
+
o()
|
|
251
|
+
], r.prototype, "label");
|
|
252
|
+
i([
|
|
253
|
+
o()
|
|
254
|
+
], r.prototype, "fieldId");
|
|
255
|
+
i([
|
|
256
|
+
o()
|
|
257
|
+
], r.prototype, "fieldNote");
|
|
258
|
+
i([
|
|
259
|
+
o()
|
|
260
|
+
], r.prototype, "ariaDescribedBy");
|
|
261
|
+
i([
|
|
262
|
+
o()
|
|
263
|
+
], r.prototype, "validationAriaDescribedBy");
|
|
264
|
+
i([
|
|
265
|
+
o({ type: Boolean, reflect: !0 })
|
|
266
|
+
], r.prototype, "disabled");
|
|
267
|
+
i([
|
|
268
|
+
o({ type: Boolean, reflect: !0 })
|
|
269
|
+
], r.prototype, "isError");
|
|
270
|
+
i([
|
|
271
|
+
o()
|
|
272
|
+
], r.prototype, "errorNote");
|
|
273
|
+
i([
|
|
274
|
+
o({ type: Boolean, reflect: !0 })
|
|
275
|
+
], r.prototype, "isSuccess");
|
|
276
|
+
i([
|
|
277
|
+
o()
|
|
278
|
+
], r.prototype, "successNote");
|
|
279
|
+
customElements.get("cre8-multi-select") === void 0 && customElements.define("cre8-multi-select", r);
|
|
741
280
|
export {
|
|
742
|
-
|
|
743
|
-
|
|
281
|
+
r as Cre8MultiSelect,
|
|
282
|
+
r as default
|
|
744
283
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-select.styles.d.ts","sourceRoot":"","sources":["../../../components/multi-select/multi-select.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"multi-select.styles.d.ts","sourceRoot":"","sources":["../../../components/multi-select/multi-select.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA6mQ,CAAC;AAC1nQ,eAAe,MAAM,CAAC"}
|