@tmorrow/cre8-wc 1.0.25 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +15 -46
- 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 +16 -16
- package/lib/components/button-group/button-group.js +19 -50
- 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.d.ts +0 -5
- package/lib/components/checkbox-field-item/checkbox-field-item.d.ts.map +1 -1
- package/lib/components/checkbox-field-item/checkbox-field-item.js +42 -212
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.d.ts.map +1 -1
- package/lib/components/contexts/form-internals-context.d.ts +30 -0
- package/lib/components/contexts/form-internals-context.d.ts.map +1 -0
- package/lib/components/cre8-form-element.d.ts +98 -24
- package/lib/components/cre8-form-element.d.ts.map +1 -1
- package/lib/components/cre8-form-element.js +221 -22
- 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.js +50 -215
- package/lib/components/modal/modal.styles.d.ts.map +1 -1
- package/lib/components/multi-select/multi-select.js +57 -222
- 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.d.ts +0 -4
- package/lib/components/radio-field-item/radio-field-item.d.ts.map +1 -1
- package/lib/components/radio-field-item/radio-field-item.js +69 -207
- 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.d.ts +6 -10
- package/lib/components/select/select.d.ts.map +1 -1
- package/lib/components/select/select.js +67 -135
- package/lib/components/select/select.styles.d.ts.map +1 -1
- package/lib/components/select-tile/select-tile.d.ts +0 -4
- package/lib/components/select-tile/select-tile.d.ts.map +1 -1
- package/lib/components/select-tile/select-tile.js +21 -448
- 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.d.ts.map +1 -1
- package/lib/components/tabs/tabs.js +58 -159
- package/lib/components/tabs/tabs.styles.d.ts.map +1 -1
- package/lib/components/tag/tag.js +46 -161
- 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 +6 -6
- 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 +12 -5
|
@@ -1,190 +1,25 @@
|
|
|
1
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
|
-
|
|
22
|
-
.cre8-c-multi-select {
|
|
23
|
-
position: relative;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Label
|
|
28
|
-
*/
|
|
29
|
-
.cre8-c-multi-select__label {
|
|
30
|
-
@include label-styles;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Body
|
|
35
|
-
* 1) The div that contains the input and icons
|
|
36
|
-
*/
|
|
37
|
-
.cre8-c-multi-select__body {
|
|
38
|
-
display: flex;
|
|
39
|
-
align-items: center;
|
|
40
|
-
justify-content: space-between;
|
|
41
|
-
position: relative;
|
|
42
|
-
@include input-styles;
|
|
43
|
-
padding: var(--cre8-spacing-8);
|
|
44
|
-
padding-inline-end: calc(8px * 5.5);
|
|
45
|
-
min-width: 240px;
|
|
46
|
-
cursor: pointer;
|
|
47
|
-
min-height: calc(8px * 6);
|
|
48
|
-
height: fit-content;
|
|
49
|
-
|
|
50
|
-
.cre8-is-disabled & {
|
|
51
|
-
box-shadow: none;
|
|
52
|
-
background-color: var(--cre8-color-bg-disabled);
|
|
53
|
-
border-color: var(--cre8-color-border-disabled);
|
|
54
|
-
cursor: not-allowed;
|
|
55
|
-
outline: none;
|
|
56
|
-
|
|
57
|
-
&:hover,
|
|
58
|
-
&:focus,
|
|
59
|
-
&:active,
|
|
60
|
-
&:focus-visible {
|
|
61
|
-
outline: none;
|
|
62
|
-
background-color: var(--cre8-color-bg-disabled);
|
|
63
|
-
border-color: var(--cre8-color-border-disabled);
|
|
64
|
-
color: var(--cre8-color-content-disabled);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.cre8-c-multi-select__content {
|
|
68
|
-
border-color: var(--cre8-color-border-disabled);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.cre8-c-multi-select__content {
|
|
74
|
-
display: flex;
|
|
75
|
-
min-height: 30px;
|
|
76
|
-
width: 100%;
|
|
77
|
-
border-right: var(--cre8-border-width-default) var(--cre8-border-style-default) var(--cre8-color-border-strong);
|
|
78
|
-
padding-right: calc(8px * 5.5);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.cre8-c-multi-select__tag-wrapper {
|
|
82
|
-
list-style-type: none;
|
|
83
|
-
margin: 0;
|
|
84
|
-
padding: 0;
|
|
85
|
-
display: flex;
|
|
86
|
-
flex-wrap: wrap;
|
|
87
|
-
height: 100%;
|
|
88
|
-
gap: calc(8px * 0.5);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.cre8-c-multi-select__icons-wrapper {
|
|
92
|
-
display: flex;
|
|
93
|
-
justify-content: end;
|
|
94
|
-
margin-right: -36px;
|
|
95
|
-
margin-left: -48px;
|
|
96
|
-
gap: calc(8px * 3);
|
|
97
|
-
min-width: 96px;
|
|
98
|
-
|
|
99
|
-
button {
|
|
100
|
-
background-color: inherit;
|
|
101
|
-
border: none;
|
|
102
|
-
padding: none;
|
|
103
|
-
|
|
104
|
-
.cre8-is-disabled & {
|
|
105
|
-
cursor: not-allowed;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.cre8-c-multi-select__clear_icon {
|
|
111
|
-
.cre8-c-multi-select--no-clear-icon & {
|
|
112
|
-
display: none;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Select Icon
|
|
118
|
-
* 1) The icons within the body container positioned absolutely over the input
|
|
119
|
-
*/
|
|
120
|
-
cre8-icon {
|
|
121
|
-
display: flex;
|
|
122
|
-
pointer-events: none;
|
|
123
|
-
color: var(--cre8-color-button-tertiary-content);
|
|
124
|
-
|
|
125
|
-
.cre8-is-disabled & {
|
|
126
|
-
color: var(--cre8-color-border-disabled);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.cre8-c-multi-select__dropdown {
|
|
131
|
-
background-color: var(--cre8-color-bg-default);
|
|
132
|
-
border: var(--cre8-border-width-default) var(--cre8-border-style-default) var(--cre8-color-border-strong);
|
|
133
|
-
box-shadow: var(--cre8-shadow-default);
|
|
134
|
-
border-radius: var(--cre8-border-radius-default);
|
|
135
|
-
flex-direction: column;
|
|
136
|
-
left: 0;
|
|
137
|
-
min-width: 100%;
|
|
138
|
-
position: absolute;
|
|
139
|
-
top: 100%;
|
|
140
|
-
white-space: nowrap;
|
|
141
|
-
margin-top: var(--cre8-spacing-4);
|
|
142
|
-
margin-left: 0;
|
|
143
|
-
padding: var(--cre8-spacing-8);
|
|
144
|
-
|
|
145
|
-
ul {
|
|
146
|
-
list-style-type: none;
|
|
147
|
-
padding: 0;
|
|
148
|
-
margin: 0;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
li {
|
|
152
|
-
@include cre8-typography-body-default;
|
|
153
|
-
background-color: var(--cre8-color-bg-default);
|
|
154
|
-
border: var(--cre8-border-width-focus) var(--cre8-border-style-default) var(--cre8-color-border-transparent);
|
|
155
|
-
border-radius: var(--cre8-border-radius-default);
|
|
156
|
-
color: var(--cre8-color-content-default);
|
|
157
|
-
width: 100%;
|
|
158
|
-
cursor: pointer;
|
|
159
|
-
margin: var(--cre8-spacing-0);
|
|
160
|
-
padding: var(--cre8-spacing-8) var(--cre8-spacing-8);
|
|
161
|
-
text-align: left;
|
|
162
|
-
|
|
163
|
-
&:active,
|
|
164
|
-
&:hover,
|
|
165
|
-
&:focus {
|
|
166
|
-
background-color: var(--cre8-color-bg-brand-hover);
|
|
167
|
-
color: var(--cre8-color-content-default);
|
|
168
|
-
outline: var(--cre8-border-width-none);
|
|
169
|
-
border: var(--cre8-border-width-focus) var(--cre8-border-style-default) var(--cre8-color-border-active-outline);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Select field notes
|
|
176
|
-
*/
|
|
177
|
-
.cre8-c-multi-select__field-note,
|
|
178
|
-
.cre8-c-multi-select__field-note-success,
|
|
179
|
-
.cre8-c-multi-select__field-note-error {
|
|
180
|
-
flex-basis: 100%;
|
|
181
|
-
}`;
|
|
182
|
-
var w = Object.defineProperty, i = (u, e, r, c) => {
|
|
183
|
-
for (var o = void 0, d = u.length - 1, a; d >= 0; d--)
|
|
184
|
-
(a = u[d]) && (o = a(e, r, o) || o);
|
|
185
|
-
return o && w(e, r, o), o;
|
|
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;
|
|
186
21
|
};
|
|
187
|
-
const p = class p extends
|
|
22
|
+
const p = class p extends y {
|
|
188
23
|
/* Life Cycle Methods */
|
|
189
24
|
constructor() {
|
|
190
25
|
super(), this.items = [], this.selectedTagItems = [], this.dropdownOpen = !1, this._handleOnClick = this._handleOnClick.bind(this);
|
|
@@ -203,14 +38,14 @@ const p = class p extends g {
|
|
|
203
38
|
return this.items.map(
|
|
204
39
|
// Note: Keyboard can already navigate to the checkbox
|
|
205
40
|
// eslint-disable-next-line lit-a11y/click-events-have-key-events
|
|
206
|
-
(e,
|
|
207
|
-
@click="${(
|
|
41
|
+
(e, t) => l`<li
|
|
42
|
+
@click="${(s) => this._handleListItemClick(s, t)}"
|
|
208
43
|
>
|
|
209
44
|
<cre8-checkbox-field-item
|
|
210
45
|
.checked="${!!this.selectedTagItems.includes(e)}"
|
|
211
46
|
label=${e}
|
|
212
|
-
id=${
|
|
213
|
-
@input="${(
|
|
47
|
+
id=${t}
|
|
48
|
+
@input="${(s) => this._handleDropdownItemInput(e, s)}"
|
|
214
49
|
>
|
|
215
50
|
</cre8-checkbox-field-item>
|
|
216
51
|
</li>`
|
|
@@ -259,25 +94,25 @@ const p = class p extends g {
|
|
|
259
94
|
throw Error(
|
|
260
95
|
"Could not determine navigation context during click handler"
|
|
261
96
|
);
|
|
262
|
-
const
|
|
97
|
+
const t = e.composedPath().includes(this.shadowRoot.host), s = this.renderRoot.querySelector(
|
|
263
98
|
".cre8-c-multi-select__label"
|
|
264
|
-
),
|
|
99
|
+
), c = this.renderRoot.querySelector(
|
|
265
100
|
".cre8-c-multi-select__icons-wrapper"
|
|
266
|
-
), d = this.shadowRoot?.querySelector(
|
|
267
|
-
".cre8-c-multi-select__tag-wrapper"
|
|
268
101
|
), a = this.shadowRoot?.querySelector(
|
|
102
|
+
".cre8-c-multi-select__tag-wrapper"
|
|
103
|
+
), d = this.shadowRoot?.querySelector(
|
|
269
104
|
".cre8-c-multi-select__dropdown"
|
|
270
105
|
);
|
|
271
|
-
|
|
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;
|
|
272
107
|
}
|
|
273
|
-
_handleListItemClick(e,
|
|
274
|
-
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();
|
|
275
110
|
}
|
|
276
|
-
_handleDropdownItemInput(e,
|
|
277
|
-
|
|
111
|
+
_handleDropdownItemInput(e, t) {
|
|
112
|
+
t.target.checked ? this.selectedTagItems = this.selectedTagItems.concat(e) : this.selectedTagItems = this.selectedTagItems.filter((c) => c !== e), this.emitSelectedItems();
|
|
278
113
|
}
|
|
279
114
|
async _handleRemoveTagClick(e) {
|
|
280
|
-
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());
|
|
281
116
|
}
|
|
282
117
|
dropdownArrowClick() {
|
|
283
118
|
this.disabled || this.toggleDropDown();
|
|
@@ -354,7 +189,7 @@ const p = class p extends g {
|
|
|
354
189
|
<div class="cre8-c-multi-select__icons-wrapper">
|
|
355
190
|
<cre8-button
|
|
356
191
|
?hideText=${!0}
|
|
357
|
-
svg="${
|
|
192
|
+
svg="${v}"
|
|
358
193
|
text="Clear All"
|
|
359
194
|
variant="tertiary"
|
|
360
195
|
?disabled="${this.disabled}"
|
|
@@ -364,7 +199,7 @@ const p = class p extends g {
|
|
|
364
199
|
</cre8-button>
|
|
365
200
|
<cre8-button
|
|
366
201
|
?hideText=${!0}
|
|
367
|
-
svg="${
|
|
202
|
+
svg="${g}"
|
|
368
203
|
variant="tertiary"
|
|
369
204
|
?disabled="${this.disabled}"
|
|
370
205
|
class="cre8-c-multi-select__down_icon"
|
|
@@ -397,52 +232,52 @@ const p = class p extends g {
|
|
|
397
232
|
`;
|
|
398
233
|
}
|
|
399
234
|
};
|
|
400
|
-
p.styles = [
|
|
401
|
-
let
|
|
235
|
+
p.styles = [_];
|
|
236
|
+
let r = p;
|
|
402
237
|
i([
|
|
403
|
-
|
|
404
|
-
],
|
|
238
|
+
o({ type: Array })
|
|
239
|
+
], r.prototype, "items");
|
|
405
240
|
i([
|
|
406
241
|
m()
|
|
407
|
-
],
|
|
242
|
+
], r.prototype, "selectedTagItems");
|
|
408
243
|
i([
|
|
409
|
-
|
|
410
|
-
],
|
|
244
|
+
o({ type: Array })
|
|
245
|
+
], r.prototype, "preselectedItems");
|
|
411
246
|
i([
|
|
412
247
|
m()
|
|
413
|
-
],
|
|
248
|
+
], r.prototype, "dropdownOpen");
|
|
414
249
|
i([
|
|
415
|
-
|
|
416
|
-
],
|
|
250
|
+
o()
|
|
251
|
+
], r.prototype, "label");
|
|
417
252
|
i([
|
|
418
|
-
|
|
419
|
-
],
|
|
253
|
+
o()
|
|
254
|
+
], r.prototype, "fieldId");
|
|
420
255
|
i([
|
|
421
|
-
|
|
422
|
-
],
|
|
256
|
+
o()
|
|
257
|
+
], r.prototype, "fieldNote");
|
|
423
258
|
i([
|
|
424
|
-
|
|
425
|
-
],
|
|
259
|
+
o()
|
|
260
|
+
], r.prototype, "ariaDescribedBy");
|
|
426
261
|
i([
|
|
427
|
-
|
|
428
|
-
],
|
|
262
|
+
o()
|
|
263
|
+
], r.prototype, "validationAriaDescribedBy");
|
|
429
264
|
i([
|
|
430
|
-
|
|
431
|
-
],
|
|
265
|
+
o({ type: Boolean, reflect: !0 })
|
|
266
|
+
], r.prototype, "disabled");
|
|
432
267
|
i([
|
|
433
|
-
|
|
434
|
-
],
|
|
268
|
+
o({ type: Boolean, reflect: !0 })
|
|
269
|
+
], r.prototype, "isError");
|
|
435
270
|
i([
|
|
436
|
-
|
|
437
|
-
],
|
|
271
|
+
o()
|
|
272
|
+
], r.prototype, "errorNote");
|
|
438
273
|
i([
|
|
439
|
-
|
|
440
|
-
],
|
|
274
|
+
o({ type: Boolean, reflect: !0 })
|
|
275
|
+
], r.prototype, "isSuccess");
|
|
441
276
|
i([
|
|
442
|
-
|
|
443
|
-
],
|
|
444
|
-
customElements.get("cre8-multi-select") === void 0 && customElements.define("cre8-multi-select",
|
|
277
|
+
o()
|
|
278
|
+
], r.prototype, "successNote");
|
|
279
|
+
customElements.get("cre8-multi-select") === void 0 && customElements.define("cre8-multi-select", r);
|
|
445
280
|
export {
|
|
446
|
-
|
|
447
|
-
|
|
281
|
+
r as Cre8MultiSelect,
|
|
282
|
+
r as default
|
|
448
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"}
|
|
@@ -1,51 +1,16 @@
|
|
|
1
|
-
import { css as
|
|
1
|
+
import { css as r, html as a } from "lit";
|
|
2
2
|
import { Cre8Element as s } from "../cre8-element.js";
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* 1) Wrapper around contents that get placed into a toggleable
|
|
7
|
-
* menu on smaller screens (usually primary nav and maybe other contents)
|
|
8
|
-
*/
|
|
9
|
-
:host {
|
|
10
|
-
position: absolute;
|
|
11
|
-
left: 0;
|
|
12
|
-
top: 100%;
|
|
13
|
-
width: 100%;
|
|
14
|
-
height: 100vh;
|
|
15
|
-
background: var(--cre8-nav-container-background, var(--cre8-color-header-submenu-bg-default));
|
|
16
|
-
overflow: auto;
|
|
17
|
-
|
|
18
|
-
@media all and (min-width:$cre8-breakpoint-lg) {
|
|
19
|
-
position: static;
|
|
20
|
-
width: auto;
|
|
21
|
-
height: auto;
|
|
22
|
-
background: none;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Actual nav container component
|
|
28
|
-
*/
|
|
29
|
-
.cre8-c-nav-container {
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: column;
|
|
32
|
-
justify-content: space-between;
|
|
33
|
-
|
|
34
|
-
@media all and (min-width:$cre8-breakpoint-lg) {
|
|
35
|
-
flex-direction: row;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
`, t = class t extends s {
|
|
3
|
+
const n = r`*,::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{position:absolute;left:0;top:100%;width:100%;height:100vh;background:var(--cre8-nav-container-background, var(--cre8-color-header-submenu-bg-default));overflow:auto}@media all and (min-width: 960px){:host{position:static;width:auto;height:auto;background:none}}.cre8-c-nav-container{display:flex;flex-direction:column;justify-content:space-between}@media all and (min-width: 960px){.cre8-c-nav-container{flex-direction:row}}`, t = class t extends s {
|
|
39
4
|
render() {
|
|
40
|
-
const
|
|
5
|
+
const i = this.componentClassNames("cre8-c-nav-container", {});
|
|
41
6
|
return a`
|
|
42
|
-
<div class="${
|
|
7
|
+
<div class="${i}">
|
|
43
8
|
<slot></slot>
|
|
44
9
|
</div>
|
|
45
10
|
`;
|
|
46
11
|
}
|
|
47
12
|
};
|
|
48
|
-
t.styles = [
|
|
13
|
+
t.styles = [n];
|
|
49
14
|
let e = t;
|
|
50
15
|
customElements.get("cre8-nav-container") === void 0 && customElements.define("cre8-nav-container", e);
|
|
51
16
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav-container.styles.d.ts","sourceRoot":"","sources":["../../../components/nav-container/nav-container.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"nav-container.styles.d.ts","sourceRoot":"","sources":["../../../components/nav-container/nav-container.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA8rE,CAAC;AAC3sE,eAAe,MAAM,CAAC"}
|
|
@@ -1,58 +1,23 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { property as
|
|
3
|
-
import { Cre8Element as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
.cre8-c-page-header {
|
|
10
|
-
margin-bottom: calc(8px * 4);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Page header title
|
|
15
|
-
*/
|
|
16
|
-
.cre8-c-page-header__title {
|
|
17
|
-
display: inline;
|
|
18
|
-
margin: 0;
|
|
19
|
-
@include cre8-typography-display-default();
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Page header title after
|
|
24
|
-
* 1) Container placed after page header title if something like a badge needs to be placed there
|
|
25
|
-
*/
|
|
26
|
-
.cre8-c-page-header__title-after {
|
|
27
|
-
display: inline-block;
|
|
28
|
-
position: relative;
|
|
29
|
-
bottom: calc(8px * 1.25);
|
|
30
|
-
margin-left: calc(8px * 2);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Page header description
|
|
35
|
-
*/
|
|
36
|
-
.cre8-c-page-header__description {
|
|
37
|
-
@include cre8-typography-body-default;
|
|
38
|
-
}
|
|
39
|
-
`;
|
|
40
|
-
var g = Object.defineProperty, m = (s, t, c, f) => {
|
|
41
|
-
for (var e = void 0, r = s.length - 1, o; r >= 0; r--)
|
|
42
|
-
(o = s[r]) && (e = o(t, c, e) || e);
|
|
43
|
-
return e && g(t, c, e), e;
|
|
1
|
+
import { css as p, html as l } from "lit";
|
|
2
|
+
import { property as n } from "lit/decorators.js";
|
|
3
|
+
import { Cre8Element as h } from "../cre8-element.js";
|
|
4
|
+
const f = p`*,::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}.cre8-c-page-header{margin-bottom:2rem}.cre8-c-page-header__title{display:inline;margin:0;font-family:var(--cre8-typography-display-default-mobile-font-family);font-size:var(--cre8-typography-display-default-mobile-font-size);font-weight:var(--cre8-typography-display-default-mobile-font-weight);line-height:var(--cre8-typography-display-default-mobile-line-height);text-decoration:var(--cre8-typography-display-default-mobile-text-decoration);text-transform:var(--cre8-typography-display-default-mobile-text-transform)}@media all and (min-width: 768px){.cre8-c-page-header__title{font-family:var(--cre8-typography-display-default-font-family);font-size:var(--cre8-typography-display-default-font-size);font-weight:var(--cre8-typography-display-default-font-weight);line-height:var(--cre8-typography-display-default-line-height);text-decoration:var(--cre8-typography-display-default-text-decoration);text-transform:var(--cre8-typography-display-default-text-transform)}}.cre8-c-page-header__title-after{display:inline-block;position:relative;bottom:0.625rem;margin-left:1rem}.cre8-c-page-header__description{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)}`;
|
|
5
|
+
var m = Object.defineProperty, c = (s, t, d, y) => {
|
|
6
|
+
for (var e = void 0, a = s.length - 1, o; a >= 0; a--)
|
|
7
|
+
(o = s[a]) && (e = o(t, d, e) || e);
|
|
8
|
+
return e && m(t, d, e), e;
|
|
44
9
|
};
|
|
45
|
-
const i = class i extends
|
|
10
|
+
const i = class i extends h {
|
|
46
11
|
constructor() {
|
|
47
12
|
super(...arguments), this.heading = "Page header title";
|
|
48
13
|
}
|
|
49
14
|
render() {
|
|
50
15
|
const t = this.componentClassNames("cre8-c-page-header", {});
|
|
51
|
-
return
|
|
16
|
+
return l`
|
|
52
17
|
<div class="${t}">
|
|
53
18
|
<h1 class="cre8-c-page-header__title">
|
|
54
19
|
${this.heading}
|
|
55
|
-
${this.slotNotEmpty("titCre8ter") &&
|
|
20
|
+
${this.slotNotEmpty("titCre8ter") && l`
|
|
56
21
|
<div class="cre8-c-page-header__title-after">
|
|
57
22
|
<slot name="titCre8ter"></slot>
|
|
58
23
|
</div>`}
|
|
@@ -64,13 +29,13 @@ const i = class i extends p {
|
|
|
64
29
|
`;
|
|
65
30
|
}
|
|
66
31
|
};
|
|
67
|
-
i.styles = [
|
|
68
|
-
let
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
],
|
|
72
|
-
customElements.get("cre8-page-header") === void 0 && customElements.define("cre8-page-header",
|
|
32
|
+
i.styles = [f];
|
|
33
|
+
let r = i;
|
|
34
|
+
c([
|
|
35
|
+
n({ type: String })
|
|
36
|
+
], r.prototype, "heading");
|
|
37
|
+
customElements.get("cre8-page-header") === void 0 && customElements.define("cre8-page-header", r);
|
|
73
38
|
export {
|
|
74
|
-
|
|
75
|
-
|
|
39
|
+
r as Cre8PageHeader,
|
|
40
|
+
r as default
|
|
76
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-header.styles.d.ts","sourceRoot":"","sources":["../../../components/page-header/page-header.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"page-header.styles.d.ts","sourceRoot":"","sources":["../../../components/page-header/page-header.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAAstG,CAAC;AACnuG,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-counter.styles.d.ts","sourceRoot":"","sources":["../../../../components/pagination/page-counter/page-counter.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"page-counter.styles.d.ts","sourceRoot":"","sources":["../../../../components/pagination/page-counter/page-counter.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA8rE,CAAC;AAC3sE,eAAe,MAAM,CAAC"}
|