@eunomia/elements 1.0.0-beta.4 → 1.0.0-beta.6
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/README.md +1 -1
- package/dist/breakpoints.d.ts +37 -10
- package/dist/breakpoints.js +38 -10
- package/dist/cdn/components/chunks/{chunk-MMLIPCOY.js → chunk-22D3SRFR.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-4MXL6PZC.js → chunk-2Y2EU2CI.js} +28 -28
- package/dist/cdn/components/chunks/chunk-3MTUVMM5.js +1 -0
- package/dist/cdn/components/chunks/chunk-4PI6RDUS.js +1 -0
- package/dist/cdn/components/chunks/chunk-5GKM5DIB.js +1 -0
- package/dist/cdn/components/chunks/chunk-624VJYNA.js +1 -0
- package/dist/cdn/components/chunks/{chunk-5XJLIHAU.js → chunk-7KKWYPHY.js} +4 -2
- package/dist/cdn/components/chunks/chunk-A3X4KD2X.js +1 -0
- package/dist/cdn/components/chunks/chunk-BKZGTCMF.js +1 -0
- package/dist/cdn/components/chunks/{chunk-GW3VP2L7.js → chunk-BO3JOEWM.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-NHFWATVN.js → chunk-BQFJR2UP.js} +5 -5
- package/dist/cdn/components/chunks/chunk-EUWUDCBZ.js +1 -0
- package/dist/cdn/components/chunks/{chunk-P32B7BFD.js → chunk-FF3I7C3C.js} +15 -15
- package/dist/cdn/components/chunks/{chunk-74AOAB4X.js → chunk-FOILAXLL.js} +6 -5
- package/dist/cdn/components/chunks/{chunk-E4IS25H7.js → chunk-G5SBDQQ3.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-LGLQ36QB.js → chunk-GDBPWZN6.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-S2UCEWNG.js → chunk-JYIIWN2P.js} +13 -11
- package/dist/cdn/components/chunks/{chunk-EOWBYZV7.js → chunk-KDN4O5W2.js} +26 -13
- package/dist/cdn/components/chunks/chunk-KSZRQRN4.js +1 -0
- package/dist/cdn/components/chunks/{chunk-PED5ATYN.js → chunk-L2ADCEN7.js} +1 -1
- package/dist/cdn/components/chunks/chunk-LMVW522V.js +1 -0
- package/dist/cdn/components/chunks/{chunk-5XJGYXW7.js → chunk-MOMYII3P.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-SIHZFOTK.js → chunk-MQQ4BGVJ.js} +5 -5
- package/dist/cdn/components/chunks/{chunk-A4EQSU36.js → chunk-O7PHBLH2.js} +1 -1
- package/dist/cdn/components/chunks/chunk-PD62MBOJ.js +1 -0
- package/dist/cdn/components/chunks/{chunk-KBH5PCUO.js → chunk-PE4DAXHQ.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-GSJEJLFA.js → chunk-PMPSJG5V.js} +7 -7
- package/dist/cdn/components/chunks/{chunk-5EVP7YNE.js → chunk-PPCHQG7P.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-EJIX2D4Z.js → chunk-QZ5SHR3I.js} +15 -11
- package/dist/cdn/components/chunks/chunk-RS7TWEMQ.js +1 -0
- package/dist/cdn/components/chunks/chunk-SMTIDNGW.js +1 -0
- package/dist/cdn/components/chunks/{chunk-YGUJJ25C.js → chunk-SZYEBMG6.js} +11 -10
- package/dist/cdn/components/chunks/chunk-UDVB4LAE.js +56 -0
- package/dist/cdn/components/chunks/{chunk-UAGCQF23.js → chunk-UYZR4JXZ.js} +17 -12
- package/dist/cdn/components/chunks/chunk-VG6NAAIV.js +1 -0
- package/dist/cdn/components/chunks/chunk-VJCNHMQZ.js +10 -0
- package/dist/cdn/components/chunks/chunk-VOTRXBDS.js +38 -0
- package/dist/cdn/components/chunks/{chunk-BMQOI7HX.js → chunk-VYFR364B.js} +128 -74
- package/dist/cdn/components/chunks/{chunk-IJ5WFMK4.js → chunk-XDPRWUKN.js} +7 -6
- package/dist/cdn/components/chunks/{chunk-XH6NREVZ.js → chunk-YITWLCD3.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-BQHYZB2W.js → chunk-ZBN4HTWP.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-RJCJXB7Y.js → chunk-ZKZV2YG5.js} +18 -18
- package/dist/cdn/components/eun-alert.js +24 -16
- package/dist/cdn/components/eun-animate.js +12 -6
- package/dist/cdn/components/eun-badge.js +7 -7
- package/dist/cdn/components/eun-breadcrumb.js +25 -41
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-calendar.js +68 -66
- package/dist/cdn/components/eun-card.js +67 -13
- package/dist/cdn/components/eun-carousel.js +66 -35
- package/dist/cdn/components/eun-check-card.js +13 -6
- package/dist/cdn/components/eun-checkbox-list.js +4 -4
- package/dist/cdn/components/eun-checkbox.js +1 -1
- package/dist/cdn/components/eun-chip.js +1 -1
- package/dist/cdn/components/eun-collapse.js +87 -39
- package/dist/cdn/components/eun-color-picker.js +54 -53
- package/dist/cdn/components/eun-counter.js +14 -13
- package/dist/cdn/components/eun-date-picker.js +66 -63
- package/dist/cdn/components/eun-description-list.js +152 -0
- package/dist/cdn/components/eun-divider.js +1 -1
- package/dist/cdn/components/eun-drawer.js +26 -12
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-dropdown-item.js +6 -5
- package/dist/cdn/components/eun-fab.js +20 -19
- package/dist/cdn/components/eun-icon.js +1 -1
- package/dist/cdn/components/eun-image-card.js +79 -22
- package/dist/cdn/components/eun-image-carousel.js +92 -47
- package/dist/cdn/components/eun-infinite-list.js +23 -11
- package/dist/cdn/components/eun-input-file.js +14 -13
- package/dist/cdn/components/eun-input-phone.js +26 -26
- package/dist/cdn/components/eun-input.js +1 -1
- package/dist/cdn/components/eun-label.js +4 -4
- package/dist/cdn/components/eun-link.js +174 -27
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +29 -22
- package/dist/cdn/components/eun-pagination.js +17 -12
- package/dist/cdn/components/eun-password-strength.js +6 -2
- package/dist/cdn/components/eun-progress-bar.js +13 -5
- package/dist/cdn/components/eun-radio-card.js +16 -9
- package/dist/cdn/components/eun-radio-list.js +4 -4
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-scheduler-event-editor.js +8 -8
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +42 -42
- package/dist/cdn/components/eun-search.js +21 -20
- package/dist/cdn/components/eun-select.js +12 -11
- package/dist/cdn/components/eun-sidebar.js +34 -20
- package/dist/cdn/components/eun-skeleton.js +1 -1
- package/dist/cdn/components/eun-slider.js +15 -14
- package/dist/cdn/components/eun-sliding-card.js +8 -4
- package/dist/cdn/components/eun-step.js +17 -6
- package/dist/cdn/components/eun-stepper.js +17 -6
- package/dist/cdn/components/eun-switch.js +10 -8
- package/dist/cdn/components/eun-tab-group.js +22 -17
- package/dist/cdn/components/eun-tab-panel.js +11 -3
- package/dist/cdn/components/eun-tab.js +1 -1
- package/dist/cdn/components/eun-table-action-bar.js +1 -1
- package/dist/cdn/components/eun-table.js +572 -31
- package/dist/cdn/components/eun-tag.js +13 -7
- package/dist/cdn/components/eun-textarea.js +24 -24
- package/dist/cdn/components/eun-time-picker.js +21 -19
- package/dist/cdn/components/eun-toast.js +36 -16
- package/dist/cdn/components/eun-toggle-group.js +64 -37
- package/dist/cdn/components/eun-toggle-item.js +24 -21
- package/dist/cdn/components/eun-toggle.js +12 -10
- package/dist/cdn/components/eun-toolbar.js +62 -52
- package/dist/cdn/components/eun-tooltip.js +30 -14
- package/dist/cdn/styles/breakpoints.scss +8 -0
- package/dist/cdn/styles/eunomia-grid.scss +6 -0
- package/dist/cdn/styles/eunomia-themes.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.scss +4 -3
- package/dist/cdn/styles/themes/mixins/eunomia-a11y-color.mixin.scss +34 -1
- package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +4 -0
- package/dist/cdn/styles/themes/mixins/eunomia-states.mixin.scss +36 -12
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +3 -2
- package/dist/cdn/styles/tools/indexes/eunomia-media-queries.index.scss +1 -3
- package/dist/cdn/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/dist/cdn/styles/tools/mixins/layout/eunomia-grid.mixin.scss +117 -53
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-media-queries.mixin.scss +69 -0
- package/dist/cdn/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +28 -4
- package/dist/cdn/styles/tools/mixins/settings/eunomia-motion.mixin.scss +9 -0
- package/dist/cdn/styles/tools/variables/eunomia.breakpoints.scss +4 -0
- package/dist/components/action/button/button.d.ts +51 -19
- package/dist/components/action/button/button.js +107 -24
- package/dist/components/action/button/button.styles.js +115 -62
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +10 -10
- package/dist/components/action/dropdown-button/dropdown-button.js +18 -17
- package/dist/components/action/dropdown-button/dropdown-button.styles.js +3 -2
- package/dist/components/action/dropdown-button/dropdown-item.js +5 -6
- package/dist/components/action/dropdown-button/dropdown-item.styles.js +3 -2
- package/dist/components/action/fab/fab.d.ts +7 -6
- package/dist/components/action/fab/fab.js +11 -8
- package/dist/components/action/fab/fab.styles.js +18 -17
- package/dist/components/action/link/link.d.ts +72 -9
- package/dist/components/action/link/link.js +183 -23
- package/dist/components/action/link/link.styles.js +146 -10
- package/dist/components/action/shared-styles/button-palette.styles.d.ts +3 -3
- package/dist/components/action/shared-styles/button-palette.styles.js +29 -29
- package/dist/components/action/toggle/toggle-group.d.ts +17 -5
- package/dist/components/action/toggle/toggle-group.js +46 -19
- package/dist/components/action/toggle/toggle-group.styles.d.ts +4 -1
- package/dist/components/action/toggle/toggle-group.styles.js +56 -27
- package/dist/components/action/toggle/toggle-item.d.ts +4 -4
- package/dist/components/action/toggle/toggle-item.js +2 -2
- package/dist/components/action/toggle/toggle-item.styles.js +20 -17
- package/dist/components/action/toggle/toggle.d.ts +2 -0
- package/dist/components/action/toggle/toggle.js +2 -0
- package/dist/components/action/toggle/toggle.styles.d.ts +2 -0
- package/dist/components/action/toggle/toggle.styles.js +12 -8
- package/dist/components/alert/alert/alert.d.ts +2 -0
- package/dist/components/alert/alert/alert.js +2 -0
- package/dist/components/alert/alert/alert.styles.js +23 -13
- package/dist/components/alert/drawer/drawer.d.ts +3 -1
- package/dist/components/alert/drawer/drawer.js +5 -3
- package/dist/components/alert/drawer/drawer.styles.js +25 -9
- package/dist/components/alert/modal/modal.d.ts +11 -9
- package/dist/components/alert/modal/modal.js +15 -13
- package/dist/components/alert/modal/modal.styles.js +16 -7
- package/dist/components/alert/toast/toast.d.ts +2 -0
- package/dist/components/alert/toast/toast.js +2 -0
- package/dist/components/alert/toast/toast.styles.js +37 -15
- package/dist/components/content/badge/badge.d.ts +6 -6
- package/dist/components/content/badge/badge.js +4 -4
- package/dist/components/content/badge/badge.styles.js +4 -4
- package/dist/components/content/card/card.d.ts +39 -7
- package/dist/components/content/card/card.js +71 -7
- package/dist/components/content/card/card.styles.js +58 -11
- package/dist/components/content/card/image-card.d.ts +62 -7
- package/dist/components/content/card/image-card.js +121 -11
- package/dist/components/content/card/image-card.styles.js +66 -15
- package/dist/components/content/card/sliding-card.d.ts +4 -1
- package/dist/components/content/card/sliding-card.js +3 -0
- package/dist/components/content/card/sliding-card.styles.js +5 -1
- package/dist/components/content/collapse/collapse.d.ts +39 -12
- package/dist/components/content/collapse/collapse.js +65 -25
- package/dist/components/content/collapse/collapse.styles.d.ts +10 -1
- package/dist/components/content/collapse/collapse.styles.js +69 -18
- package/dist/components/content/description-list/description-list.d.ts +87 -0
- package/dist/components/content/description-list/description-list.js +107 -0
- package/dist/components/content/description-list/description-list.styles.d.ts +1 -0
- package/dist/components/content/description-list/description-list.styles.js +185 -0
- package/dist/components/content/icon/icon.d.ts +14 -2
- package/dist/components/content/icon/icon.js +54 -22
- package/dist/components/content/icon/icon.style.d.ts +2 -0
- package/dist/components/content/icon/icon.style.js +8 -2
- package/dist/components/content/image-carousel/image-carousel.d.ts +30 -19
- package/dist/components/content/image-carousel/image-carousel.js +48 -45
- package/dist/components/content/image-carousel/image-carousel.styles.js +69 -30
- package/dist/components/content/password-strength/password-strength.styles.js +5 -1
- package/dist/components/content/progress-bar/progress-bar.styles.js +12 -4
- package/dist/components/content/shared-styles/card-link.styles.js +5 -3
- package/dist/components/content/shared-styles/tone-surface.styles.d.ts +5 -0
- package/dist/components/content/shared-styles/tone-surface.styles.js +19 -14
- package/dist/components/content/tag/tag.d.ts +4 -0
- package/dist/components/content/tag/tag.js +4 -0
- package/dist/components/content/tag/tag.styles.js +14 -4
- package/dist/components/content/tooltip/tooltip.d.ts +3 -2
- package/dist/components/content/tooltip/tooltip.js +9 -16
- package/dist/components/content/tooltip/tooltip.styles.js +25 -7
- package/dist/components/form/checkbox/check-card.d.ts +4 -1
- package/dist/components/form/checkbox/check-card.js +4 -1
- package/dist/components/form/checkbox/check-card.styles.js +13 -4
- package/dist/components/form/checkbox/checkbox-list.d.ts +4 -1
- package/dist/components/form/checkbox/checkbox-list.js +11 -7
- package/dist/components/form/checkbox/checkbox.d.ts +4 -1
- package/dist/components/form/checkbox/checkbox.js +4 -1
- package/dist/components/form/checkbox/checkbox.styles.js +2 -2
- package/dist/components/form/color-picker/color-picker.d.ts +10 -4
- package/dist/components/form/color-picker/color-picker.js +23 -25
- package/dist/components/form/color-picker/color-picker.styles.js +6 -5
- package/dist/components/form/counter/counter.d.ts +7 -4
- package/dist/components/form/counter/counter.js +8 -5
- package/dist/components/form/counter/counter.styles.js +10 -9
- package/dist/components/form/date-picker/date-picker.d.ts +40 -36
- package/dist/components/form/date-picker/date-picker.js +35 -45
- package/dist/components/form/date-picker/date-picker.styles.js +13 -10
- package/dist/components/form/input/input.d.ts +10 -4
- package/dist/components/form/input/input.js +12 -6
- package/dist/components/form/input-file/input-file.d.ts +4 -1
- package/dist/components/form/input-file/input-file.js +8 -5
- package/dist/components/form/input-file/input-file.styles.js +3 -2
- package/dist/components/form/input-phone/input-phone.d.ts +11 -5
- package/dist/components/form/input-phone/input-phone.js +16 -20
- package/dist/components/form/input-phone/input-phone.styles.js +16 -16
- package/dist/components/form/label/label.styles.js +3 -3
- package/dist/components/form/radio/radio-card.d.ts +5 -2
- package/dist/components/form/radio/radio-card.js +5 -2
- package/dist/components/form/radio/radio-card.styles.js +14 -5
- package/dist/components/form/radio/radio-list.d.ts +5 -2
- package/dist/components/form/radio/radio-list.js +14 -10
- package/dist/components/form/radio/radio.d.ts +5 -2
- package/dist/components/form/radio/radio.js +5 -2
- package/dist/components/form/radio/radio.styles.js +4 -4
- package/dist/components/form/search/search.d.ts +2 -1
- package/dist/components/form/search/search.js +6 -15
- package/dist/components/form/search/search.styles.js +8 -7
- package/dist/components/form/select/select.d.ts +12 -5
- package/dist/components/form/select/select.js +18 -21
- package/dist/components/form/select/select.styles.js +3 -2
- package/dist/components/form/shared-styles/card.styles.js +5 -4
- package/dist/components/form/shared-styles/field.styles.js +21 -11
- package/dist/components/form/shared-styles/form-labels.styles.js +1 -1
- package/dist/components/form/slider/slider.d.ts +4 -1
- package/dist/components/form/slider/slider.js +5 -2
- package/dist/components/form/slider/slider.styles.js +8 -7
- package/dist/components/form/switch/switch.d.ts +4 -1
- package/dist/components/form/switch/switch.js +4 -1
- package/dist/components/form/switch/switch.styles.js +7 -5
- package/dist/components/form/textarea/textarea.d.ts +10 -4
- package/dist/components/form/textarea/textarea.js +18 -12
- package/dist/components/form/time-picker/time-picker-columns.styles.js +4 -2
- package/dist/components/form/time-picker/time-picker-list.styles.js +2 -1
- package/dist/components/form/time-picker/time-picker.d.ts +9 -5
- package/dist/components/form/time-picker/time-picker.js +25 -29
- package/dist/components/form/time-picker/time-picker.styles.js +9 -8
- package/dist/components/layout/animate/animate.d.ts +41 -11
- package/dist/components/layout/animate/animate.js +48 -16
- package/dist/components/layout/animate/animate.styles.js +9 -16
- package/dist/components/layout/infinite-list/infinite-list.d.ts +33 -10
- package/dist/components/layout/infinite-list/infinite-list.js +115 -18
- package/dist/components/layout/infinite-list/infinite-list.styles.d.ts +3 -0
- package/dist/components/layout/infinite-list/infinite-list.styles.js +17 -5
- package/dist/components/loader/loader/loader.styles.js +3 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.d.ts +31 -45
- package/dist/components/navigation/breadcrumb/breadcrumb.js +111 -77
- package/dist/components/navigation/breadcrumb/breadcrumb.styles.d.ts +3 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.styles.js +22 -26
- package/dist/components/navigation/carousel/carousel.d.ts +30 -10
- package/dist/components/navigation/carousel/carousel.js +37 -18
- package/dist/components/navigation/carousel/carousel.styles.js +60 -20
- package/dist/components/navigation/pagination/pagination.styles.js +8 -3
- package/dist/components/navigation/sidebar/sidebar.d.ts +2 -0
- package/dist/components/navigation/sidebar/sidebar.js +2 -0
- package/dist/components/navigation/sidebar/sidebar.styles.js +27 -11
- package/dist/components/navigation/stepper/step.styles.js +16 -5
- package/dist/components/navigation/stepper/stepper.styles.js +16 -5
- package/dist/components/navigation/tabs/tab/tab.d.ts +11 -0
- package/dist/components/navigation/tabs/tab/tab.js +11 -0
- package/dist/components/navigation/tabs/tab/tab.styles.js +22 -16
- package/dist/components/navigation/tabs/tab-group/tab-group.js +7 -8
- package/dist/components/navigation/tabs/tab-group/tab-group.styles.js +19 -14
- package/dist/components/navigation/tabs/tab-panel/tab-panel.d.ts +4 -0
- package/dist/components/navigation/tabs/tab-panel/tab-panel.js +4 -0
- package/dist/components/navigation/tabs/tab-panel/tab-panel.styles.js +18 -1
- package/dist/components/navigation/toolbar/toolbar.d.ts +17 -49
- package/dist/components/navigation/toolbar/toolbar.js +23 -71
- package/dist/components/navigation/toolbar/toolbar.styles.js +59 -36
- package/dist/events/table-row-click.event.d.ts +5 -4
- package/dist/events/table-row-click.event.js +10 -5
- package/dist/features/scheduler/calendar/calendar.d.ts +12 -12
- package/dist/features/scheduler/calendar/calendar.js +15 -14
- package/dist/features/scheduler/calendar/calendar.styles.js +8 -6
- package/dist/features/scheduler/scheduler/scheduler.d.ts +7 -7
- package/dist/features/scheduler/scheduler/scheduler.js +21 -35
- package/dist/features/scheduler/scheduler/scheduler.styles.js +6 -4
- package/dist/features/scheduler/scheduler-event/scheduler-event.d.ts +12 -8
- package/dist/features/scheduler/scheduler-event/scheduler-event.js +9 -7
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +16 -10
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +5 -5
- package/dist/features/scheduler/shared/scheduler-event-popover.js +2 -2
- package/dist/features/scheduler/shared/scheduler-hour-grid.d.ts +2 -2
- package/dist/features/scheduler/shared/scheduler-hour-grid.js +3 -3
- package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +3 -3
- package/dist/features/scheduler/shared/scheduler-month-view.d.ts +3 -3
- package/dist/features/scheduler/shared/scheduler-month-view.js +2 -2
- package/dist/features/scheduler/shared/scheduler-month-view.styles.js +2 -2
- package/dist/features/scheduler/shared/scheduler-year-view.styles.js +2 -2
- package/dist/features/table/table/table-native.styles.d.ts +28 -0
- package/dist/features/table/table/table-native.styles.js +502 -0
- package/dist/features/table/table/table.d.ts +342 -294
- package/dist/features/table/table/table.js +820 -546
- package/dist/features/table/table/table.styles.js +31 -17
- package/dist/features/table/table/table.types.d.ts +18 -23
- package/dist/features/table/table/table.utils.d.ts +6 -36
- package/dist/features/table/table/table.utils.js +16 -65
- package/dist/features/table/table-action-bar/table-action-bar.d.ts +33 -16
- package/dist/features/table/table-action-bar/table-action-bar.js +18 -25
- package/dist/features/table/table-action-bar/table-action-bar.styles.js +15 -3
- package/dist/i18n/en.d.ts +34 -0
- package/dist/i18n/en.js +34 -0
- package/dist/i18n/fr.js +38 -0
- package/dist/index.d.ts +7 -13
- package/dist/index.js +6 -10
- package/dist/jsx.d.ts +1 -1
- package/dist/mixins/button.mixin.d.ts +10 -9
- package/dist/mixins/button.mixin.js +14 -6
- package/dist/mixins/card-link.mixin.d.ts +3 -2
- package/dist/mixins/card-link.mixin.js +12 -5
- package/dist/mixins/check.mixin.js +4 -5
- package/dist/mixins/disabled.mixin.d.ts +3 -3
- package/dist/mixins/disabled.mixin.js +10 -5
- package/dist/mixins/field-appearance.mixin.d.ts +19 -0
- package/dist/mixins/{field-variant.mixin.js → field-appearance.mixin.js} +11 -11
- package/dist/mixins/form.mixin.d.ts +17 -1
- package/dist/mixins/form.mixin.js +80 -25
- package/dist/mixins/radio.mixin.js +4 -5
- package/dist/mixins/validators.mixin.d.ts +7 -1
- package/dist/mixins/validators.mixin.js +36 -17
- package/dist/ssr/animate-ssr.css +27 -72
- package/dist/ssr/button-ssr.css +319 -0
- package/dist/ssr/card-ssr.css +184 -0
- package/dist/ssr/description-list-ssr.css +150 -0
- package/dist/ssr/links-ssr.css +35 -0
- package/dist/ssr/overlay-ssr.css +0 -41
- package/dist/ssr/rich-text.css +38 -0
- package/dist/ssr/sidebar-ssr.css +0 -38
- package/dist/ssr/table-ssr.css +472 -0
- package/dist/ssr/tag-ssr.css +197 -0
- package/dist/ssr/toolbar-ssr.css +77 -39
- package/dist/types/variant.type.d.ts +26 -10
- package/dist/utils/drag-drop.utils.js +18 -2
- package/dist/utils/dropdown-menu.utils.d.ts +2 -2
- package/dist/utils/dropdown-menu.utils.js +4 -14
- package/dist/utils/light-dom-styles.utils.d.ts +14 -0
- package/dist/utils/light-dom-styles.utils.js +37 -0
- package/dist/utils/media.styles.d.ts +19 -0
- package/dist/utils/media.styles.js +23 -0
- package/dist/utils/motion.utils.d.ts +40 -0
- package/dist/utils/motion.utils.js +51 -0
- package/dist/utils/navigation.utils.d.ts +14 -0
- package/dist/utils/navigation.utils.js +33 -0
- package/dist/utils/new-tab-anchor.controller.d.ts +44 -0
- package/dist/utils/new-tab-anchor.controller.js +102 -0
- package/dist/utils/severity-icon.utils.d.ts +1 -1
- package/dist/utils/severity-icon.utils.js +1 -1
- package/dist/utils/theme-generator.utils.d.ts +9 -2
- package/dist/utils/theme-generator.utils.js +62 -21
- package/package.json +24 -29
- package/styles/breakpoints.scss +8 -0
- package/styles/eunomia-grid.scss +6 -0
- package/styles/themes/eunomia-theme.scss +4 -3
- package/styles/themes/mixins/eunomia-a11y-color.mixin.scss +34 -1
- package/styles/themes/mixins/eunomia-neutrals.mixin.scss +4 -0
- package/styles/themes/mixins/eunomia-states.mixin.scss +36 -12
- package/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +3 -2
- package/styles/tools/indexes/eunomia-media-queries.index.scss +1 -3
- package/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/styles/tools/mixins/layout/eunomia-grid.mixin.scss +117 -53
- package/styles/tools/mixins/media-queries/eunomia-media-queries.mixin.scss +69 -0
- package/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +28 -4
- package/styles/tools/mixins/settings/eunomia-motion.mixin.scss +9 -0
- package/styles/tools/variables/eunomia.breakpoints.scss +4 -0
- package/dist/cdn/components/chunks/chunk-2JLDJFYD.js +0 -48
- package/dist/cdn/components/chunks/chunk-A6KGFALA.js +0 -132
- package/dist/cdn/components/chunks/chunk-ATH2OAMU.js +0 -1
- package/dist/cdn/components/chunks/chunk-BKHD4S57.js +0 -1
- package/dist/cdn/components/chunks/chunk-CEDHJUUH.js +0 -1
- package/dist/cdn/components/chunks/chunk-D2M4BV5Y.js +0 -328
- package/dist/cdn/components/chunks/chunk-E74CM7UG.js +0 -66
- package/dist/cdn/components/chunks/chunk-EST3M4AO.js +0 -1
- package/dist/cdn/components/chunks/chunk-GU6BVMFJ.js +0 -1
- package/dist/cdn/components/chunks/chunk-KVYUNKUO.js +0 -27
- package/dist/cdn/components/chunks/chunk-OAULRKHQ.js +0 -38
- package/dist/cdn/components/chunks/chunk-PCM7D3YF.js +0 -84
- package/dist/cdn/components/chunks/chunk-T4PTHUYF.js +0 -10
- package/dist/cdn/components/chunks/chunk-T7WABJEJ.js +0 -1
- package/dist/cdn/components/chunks/chunk-VRGRCYIO.js +0 -1
- package/dist/cdn/components/chunks/chunk-X2AUBZD2.js +0 -30
- package/dist/cdn/components/chunks/chunk-XSMCT4DF.js +0 -1
- package/dist/cdn/components/eun-breadcrumb-item.js +0 -93
- package/dist/cdn/components/eun-table-cell.js +0 -1
- package/dist/cdn/components/eun-table-column.js +0 -1
- package/dist/cdn/components/eun-table-header.js +0 -1
- package/dist/cdn/components/eun-table-item.js +0 -1
- package/dist/cdn/components/eun-table-skeleton-row.js +0 -1
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-device.mixin.scss +0 -14
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-gte.mixin.scss +0 -26
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-lte.mixin.scss +0 -26
- package/dist/components/navigation/breadcrumb/breadcrumb-item.d.ts +0 -77
- package/dist/components/navigation/breadcrumb/breadcrumb-item.js +0 -130
- package/dist/components/navigation/breadcrumb/breadcrumb-item.styles.d.ts +0 -6
- package/dist/components/navigation/breadcrumb/breadcrumb-item.styles.js +0 -78
- package/dist/features/table/native-table.css +0 -276
- package/dist/features/table/shared-styles/table-row.styles.d.ts +0 -7
- package/dist/features/table/shared-styles/table-row.styles.js +0 -47
- package/dist/features/table/shared-styles/table-shared.styles.d.ts +0 -23
- package/dist/features/table/shared-styles/table-shared.styles.js +0 -33
- package/dist/features/table/table-cell/table-cell.d.ts +0 -59
- package/dist/features/table/table-cell/table-cell.js +0 -73
- package/dist/features/table/table-cell/table-cell.styles.d.ts +0 -1
- package/dist/features/table/table-cell/table-cell.styles.js +0 -46
- package/dist/features/table/table-column/table-column.d.ts +0 -73
- package/dist/features/table/table-column/table-column.js +0 -89
- package/dist/features/table/table-column/table-column.styles.d.ts +0 -1
- package/dist/features/table/table-column/table-column.styles.js +0 -51
- package/dist/features/table/table-header/table-header.d.ts +0 -102
- package/dist/features/table/table-header/table-header.js +0 -165
- package/dist/features/table/table-header/table-header.styles.d.ts +0 -1
- package/dist/features/table/table-header/table-header.styles.js +0 -147
- package/dist/features/table/table-item/table-item.d.ts +0 -179
- package/dist/features/table/table-item/table-item.js +0 -291
- package/dist/features/table/table-item/table-item.styles.d.ts +0 -1
- package/dist/features/table/table-item/table-item.styles.js +0 -404
- package/dist/features/table/table-managed/table-managed.d.ts +0 -19
- package/dist/features/table/table-managed/table-managed.js +0 -128
- package/dist/features/table/table-skeleton-row/table-skeleton-row.d.ts +0 -46
- package/dist/features/table/table-skeleton-row/table-skeleton-row.js +0 -110
- package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.d.ts +0 -12
- package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.js +0 -65
- package/dist/mixins/field-variant.mixin.d.ts +0 -22
- package/dist/mixins/table-row.mixin.d.ts +0 -37
- package/dist/mixins/table-row.mixin.js +0 -103
- package/styles/tools/mixins/media-queries/eunomia-device.mixin.scss +0 -14
- package/styles/tools/mixins/media-queries/eunomia-gte.mixin.scss +0 -26
- package/styles/tools/mixins/media-queries/eunomia-lte.mixin.scss +0 -26
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
2
|
/**
|
|
3
3
|
* Shared color palette of the button family (`eun-button`, `eun-fab`, and so
|
|
4
|
-
* `eun-dropdown-button`, which renders an `eun-button`). A `
|
|
4
|
+
* `eun-dropdown-button`, which renders an `eun-button`). A `color` fills
|
|
5
5
|
* the same slots on the host, and each component's stylesheet then reads
|
|
6
6
|
* them, per appearance and state, *behind* its public `--<component>-*`
|
|
7
|
-
* custom properties, so those always win over any
|
|
7
|
+
* custom properties, so those always win over any color and appearance.
|
|
8
8
|
*
|
|
9
9
|
* Slots :
|
|
10
10
|
* - `--_solid`, `--_solid-hover`, `--_solid-active` : the strong color, at
|
|
@@ -21,7 +21,7 @@ import { css } from "lit";
|
|
|
21
21
|
* `light` and `dark` are absolute colors : white and black, whatever the
|
|
22
22
|
* appearance. They have no pale wash, so the tinted surface is as solid as
|
|
23
23
|
* the strong one, and `flat` is a faint wash of the color itself rather than
|
|
24
|
-
* the neutral surface every other
|
|
24
|
+
* the neutral surface every other color shares. By default they follow the
|
|
25
25
|
* grey scale, which flips with the active theme ; `fixed-color` pins them to
|
|
26
26
|
* the light theme's white and black instead.
|
|
27
27
|
*/
|
|
@@ -32,9 +32,9 @@ export const buttonPaletteStyles = css `
|
|
|
32
32
|
--_solid-active: var(--eun-color-primary-800, #2d52bd);
|
|
33
33
|
--_onSolid: var(--eun-color-on-primary-500, #ffffff);
|
|
34
34
|
--_accent: var(--eun-color-primary-500, #3d6fff);
|
|
35
|
-
--_tint: var(--eun-color-primary-
|
|
36
|
-
--_tint-hover: var(--eun-color-primary-
|
|
37
|
-
--_tint-active: var(--eun-color-primary-
|
|
35
|
+
--_tint: var(--eun-color-primary-alpha-20, #3d6fff33);
|
|
36
|
+
--_tint-hover: var(--eun-color-primary-alpha-30, #3d6fff4d);
|
|
37
|
+
--_tint-active: var(--eun-color-primary-alpha-40, #3d6fff66);
|
|
38
38
|
--_fgTint: var(--_accent);
|
|
39
39
|
--_wash-hover: var(--_tint-hover);
|
|
40
40
|
--_wash-active: var(--_tint-active);
|
|
@@ -43,51 +43,51 @@ export const buttonPaletteStyles = css `
|
|
|
43
43
|
--_flatFg: var(--eun-text-secondary, #484e61);
|
|
44
44
|
--_ring: var(--eun-color-primary-700, #3662e0);
|
|
45
45
|
}
|
|
46
|
-
:host([
|
|
46
|
+
:host([color="secondary"]) {
|
|
47
47
|
--_solid: var(--eun-color-secondary-500, #e5a030);
|
|
48
48
|
--_solid-hover: var(--eun-color-secondary-700, #ca8d2a);
|
|
49
49
|
--_solid-active: var(--eun-color-secondary-800, #a97624);
|
|
50
50
|
--_onSolid: var(--eun-color-on-secondary-500, #000000de);
|
|
51
51
|
--_accent: var(--eun-color-secondary-500, #e5a030);
|
|
52
|
-
--_tint: var(--eun-color-secondary-
|
|
53
|
-
--_tint-hover: var(--eun-color-secondary-
|
|
54
|
-
--_tint-active: var(--eun-color-secondary-
|
|
52
|
+
--_tint: var(--eun-color-secondary-alpha-20, #edbd6f33);
|
|
53
|
+
--_tint-hover: var(--eun-color-secondary-alpha-30, #edbd6f4d);
|
|
54
|
+
--_tint-active: var(--eun-color-secondary-alpha-40, #edbd6f66);
|
|
55
55
|
--_ring: var(--eun-color-secondary-700, #ca8d2a);
|
|
56
56
|
}
|
|
57
|
-
:host([
|
|
57
|
+
:host([color="critical"]) {
|
|
58
58
|
--_solid: var(--eun-color-critical-100, #aa0014);
|
|
59
59
|
--_solid-hover: var(--eun-color-critical-100, #aa0014);
|
|
60
60
|
--_solid-active: var(--eun-color-critical-100, #aa0014);
|
|
61
61
|
--_onSolid: #fff;
|
|
62
62
|
--_accent: var(--eun-color-critical-100, #aa0014);
|
|
63
|
-
--_tint: var(--eun-color-critical-
|
|
64
|
-
--_tint-hover: var(--eun-color-critical-
|
|
65
|
-
--_tint-active: var(--eun-color-critical-
|
|
63
|
+
--_tint: var(--eun-color-critical-alpha-5, #aa00140d);
|
|
64
|
+
--_tint-hover: var(--eun-color-critical-alpha-20, #aa001433);
|
|
65
|
+
--_tint-active: var(--eun-color-critical-alpha-30, #aa00144d);
|
|
66
66
|
--_ring: var(--eun-color-critical-100, #aa0014);
|
|
67
67
|
}
|
|
68
|
-
:host([
|
|
68
|
+
:host([color="success"]) {
|
|
69
69
|
--_solid: var(--eun-color-success-100, #1a9948);
|
|
70
70
|
--_solid-hover: var(--eun-color-success-100, #1a9948);
|
|
71
71
|
--_solid-active: var(--eun-color-success-100, #1a9948);
|
|
72
72
|
--_onSolid: #fff;
|
|
73
73
|
--_accent: var(--eun-color-success-100, #1a9948);
|
|
74
|
-
--_tint: var(--eun-color-success-
|
|
75
|
-
--_tint-hover: var(--eun-color-success-
|
|
76
|
-
--_tint-active: var(--eun-color-success-
|
|
74
|
+
--_tint: var(--eun-color-success-alpha-5, #1a99480d);
|
|
75
|
+
--_tint-hover: var(--eun-color-success-alpha-20, #1a994833);
|
|
76
|
+
--_tint-active: var(--eun-color-success-alpha-30, #1a99484d);
|
|
77
77
|
--_ring: var(--eun-color-success-100, #1a9948);
|
|
78
78
|
}
|
|
79
|
-
:host([
|
|
79
|
+
:host([color="warning"]) {
|
|
80
80
|
--_solid: var(--eun-color-warning-100, #c85207);
|
|
81
81
|
--_solid-hover: var(--eun-color-warning-100, #c85207);
|
|
82
82
|
--_solid-active: var(--eun-color-warning-100, #c85207);
|
|
83
83
|
--_onSolid: #fff;
|
|
84
84
|
--_accent: var(--eun-color-warning-100, #c85207);
|
|
85
|
-
--_tint: var(--eun-color-warning-
|
|
86
|
-
--_tint-hover: var(--eun-color-warning-
|
|
87
|
-
--_tint-active: var(--eun-color-warning-
|
|
85
|
+
--_tint: var(--eun-color-warning-alpha-5, #c852070d);
|
|
86
|
+
--_tint-hover: var(--eun-color-warning-alpha-20, #c8520733);
|
|
87
|
+
--_tint-active: var(--eun-color-warning-alpha-30, #c852074d);
|
|
88
88
|
--_ring: var(--eun-color-warning-100, #c85207);
|
|
89
89
|
}
|
|
90
|
-
:host([
|
|
90
|
+
:host([color="medium"]) {
|
|
91
91
|
--_solid: var(--eun-color-grey-700, #484e61);
|
|
92
92
|
--_solid-hover: var(--eun-color-grey-800, #071621);
|
|
93
93
|
--_solid-active: var(--eun-color-grey-900, #000000);
|
|
@@ -110,32 +110,32 @@ export const buttonPaletteStyles = css `
|
|
|
110
110
|
);
|
|
111
111
|
--_ring: var(--eun-color-grey-700, #484e61);
|
|
112
112
|
}
|
|
113
|
-
:host([
|
|
113
|
+
:host([color="light"]) {
|
|
114
114
|
--_solid: var(--eun-color-grey-0, #ffffff);
|
|
115
115
|
--_solid-hover: var(--eun-color-grey-200, #ecedf0);
|
|
116
116
|
--_solid-active: var(--eun-color-grey-300, #dee0e7);
|
|
117
117
|
--_onSolid: var(--eun-color-grey-900, #000000);
|
|
118
118
|
}
|
|
119
|
-
:host([
|
|
119
|
+
:host([color="light"][fixed-color]) {
|
|
120
120
|
--_solid: #ffffff;
|
|
121
121
|
--_solid-hover: #ecedf0;
|
|
122
122
|
--_solid-active: #dee0e7;
|
|
123
123
|
--_onSolid: #000000;
|
|
124
124
|
}
|
|
125
|
-
:host([
|
|
125
|
+
:host([color="dark"]) {
|
|
126
126
|
--_solid: var(--eun-color-grey-800, #071621);
|
|
127
127
|
--_solid-hover: var(--eun-color-grey-900, #000000);
|
|
128
128
|
--_solid-active: var(--eun-color-grey-900, #000000);
|
|
129
129
|
--_onSolid: var(--eun-color-grey-0, #ffffff);
|
|
130
130
|
}
|
|
131
|
-
:host([
|
|
131
|
+
:host([color="dark"][fixed-color]) {
|
|
132
132
|
--_solid: #071621;
|
|
133
133
|
--_solid-hover: #000000;
|
|
134
134
|
--_solid-active: #000000;
|
|
135
135
|
--_onSolid: #ffffff;
|
|
136
136
|
}
|
|
137
|
-
:host([
|
|
138
|
-
:host([
|
|
137
|
+
:host([color="light"]),
|
|
138
|
+
:host([color="dark"]) {
|
|
139
139
|
--_accent: var(--_solid);
|
|
140
140
|
--_tint: var(--_solid);
|
|
141
141
|
--_tint-hover: var(--_solid-hover);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, PropertyValues, TemplateResult } from "lit";
|
|
2
2
|
import { EunomiaIconName } from "../../content/icon/icon.type.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ButtonColor } from "../../../mixins/button.mixin.js";
|
|
4
4
|
import { EunomiaToggleAppearance } from "../../../types/variant.type.js";
|
|
5
5
|
import type { EunomiaToggleItem } from "./toggle-item.js";
|
|
6
6
|
/**
|
|
@@ -36,11 +36,11 @@ export type EunomiaToggleGroupOption = {
|
|
|
36
36
|
showLabel?: boolean;
|
|
37
37
|
/**
|
|
38
38
|
* This choice's own semantic color, once the group's `appearance` isn't
|
|
39
|
-
* `default` — see {@link
|
|
39
|
+
* `default` — see {@link ButtonColor}. Falls back to a neutral style at
|
|
40
40
|
* rest, taking on this color only once selected ; unset choices default
|
|
41
41
|
* to `primary`. Ignored entirely in `default` appearance.
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
color?: ButtonColor;
|
|
44
44
|
};
|
|
45
45
|
declare const EunomiaToggleGroup_base: import("../../../utils/constructor.type.js").Constructor<import("../../../mixins/overflow-navigation.mixin.js").NavigationOverflowMixinInterface> & import("../../../utils/constructor.type.js").Constructor<import("../../../mixins/disabled.mixin.js").DisabledMixinInterface> & typeof LitElement;
|
|
46
46
|
/**
|
|
@@ -82,13 +82,16 @@ declare const EunomiaToggleGroup_base: import("../../../utils/constructor.type.j
|
|
|
82
82
|
* @cssprop [--toggle-group-background] - Sets the background color of the track, for every appearance (transparent by default in outline and flat)
|
|
83
83
|
* @cssprop [--toggle-group-border-color] - Sets the border color of the track in the default appearance, and the border color of each option at rest in the outline and flat appearances
|
|
84
84
|
* @cssprop [--toggle-group-color] - Sets the text color of unselected options
|
|
85
|
-
* @cssprop [--toggle-group-active-background] - Sets the background color of selected options, and the sliding indicator in exclusive mode, in the default appearance. In the outline and flat appearances, sets the selected color of every option, over its own
|
|
85
|
+
* @cssprop [--toggle-group-active-background] - Sets the background color of selected options, and the sliding indicator in exclusive mode, in the default appearance. In the outline and flat appearances, sets the selected color of every option, over its own color
|
|
86
86
|
* @cssprop [--toggle-group-active-color] - Sets the text color of selected options, for every appearance
|
|
87
87
|
* @cssprop [--toggle-group-border-radius] - Sets the corner radius of the track and its options
|
|
88
88
|
* @cssprop [--toggle-group-gap] - Sets the gap between the options
|
|
89
89
|
* @cssprop [--toggle-group-padding] - Sets the padding of the track, also used as the indicator's inset so it stays flush with the track's edge. Ignored once appearance isn't default
|
|
90
|
+
* @cssprop [--toggle-group-padding-block] - Sets the vertical padding, as one length applied to both sides. Ignored when --toggle-group-padding is set
|
|
91
|
+
* @cssprop [--toggle-group-padding-inline] - Sets the horizontal padding, as one length applied to both sides. Ignored when --toggle-group-padding is set
|
|
90
92
|
* @cssprop [--toggle-group-hover-color] - Sets the text color of an unselected option on hover and keyboard focus, for every appearance
|
|
91
93
|
* @cssprop [--toggle-group-hover-background] - Sets the background color of an unselected option on hover. Transparent by default, and applies regardless of appearance
|
|
94
|
+
* @cssprop [--toggle-group-box-shadow] - Sets a box shadow on the track itself, for every appearance. None by default
|
|
92
95
|
* @cssprop [--toggle-group-shadow] - Sets a box shadow on every option, and the sliding indicator in exclusive mode. None by default
|
|
93
96
|
* @cssprop [--toggle-group-shadow-hover] - Sets the box shadow of an unselected option on hover, falling back to toggle-group-shadow when unset
|
|
94
97
|
* @cssprop [--toggle-group-arrows-color] - Sets the background color the overflow arrows fade out to, once the group overflows its container
|
|
@@ -106,7 +109,8 @@ export declare class EunomiaToggleGroup extends EunomiaToggleGroup_base {
|
|
|
106
109
|
static readonly styles: import("lit").CSSResult[];
|
|
107
110
|
/**
|
|
108
111
|
* The choices to render, in order. Also reflected as a JSON-serialized
|
|
109
|
-
* `options` attribute (Lit's default `Array` converter)
|
|
112
|
+
* `options` attribute (Lit's default `Array` converter), left out while
|
|
113
|
+
* empty so an SSR framework doesn't see an attribute it never rendered.
|
|
110
114
|
* @default []
|
|
111
115
|
*/
|
|
112
116
|
options: EunomiaToggleGroupOption[];
|
|
@@ -159,6 +163,14 @@ export declare class EunomiaToggleGroup extends EunomiaToggleGroup_base {
|
|
|
159
163
|
* @readonly
|
|
160
164
|
*/
|
|
161
165
|
private readonly indicatorEl?;
|
|
166
|
+
/**
|
|
167
|
+
* Whether the initial selection has been painted once. Until then, the
|
|
168
|
+
* choices and their icons skip their color transitions (see the
|
|
169
|
+
* `#scrollable:not(.settled)` rule), so the selected one appears in its
|
|
170
|
+
* final state on load instead of fading in from the unselected color.
|
|
171
|
+
* @internal
|
|
172
|
+
*/
|
|
173
|
+
private settled;
|
|
162
174
|
/**
|
|
163
175
|
* The total number of choices, combining `options` and slotted
|
|
164
176
|
* `eun-toggle-item` elements. Drives {@link exclusive} together with
|
|
@@ -16,7 +16,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
16
16
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
17
17
|
};
|
|
18
18
|
var _EunomiaToggleGroup_resizeObserver, _EunomiaToggleGroup_hasSeededInitialValue;
|
|
19
|
-
import { customElement, property, query, queryAssignedElements, } from "lit/decorators.js";
|
|
19
|
+
import { customElement, property, query, queryAssignedElements, state, } from "lit/decorators.js";
|
|
20
20
|
import { html, LitElement, nothing } from "lit";
|
|
21
21
|
import { classMap } from "lit/directives/class-map.js";
|
|
22
22
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -73,13 +73,16 @@ export const EunomiaToggleGroupTagName = "eun-toggle-group";
|
|
|
73
73
|
* @cssprop [--toggle-group-background] - Sets the background color of the track, for every appearance (transparent by default in outline and flat)
|
|
74
74
|
* @cssprop [--toggle-group-border-color] - Sets the border color of the track in the default appearance, and the border color of each option at rest in the outline and flat appearances
|
|
75
75
|
* @cssprop [--toggle-group-color] - Sets the text color of unselected options
|
|
76
|
-
* @cssprop [--toggle-group-active-background] - Sets the background color of selected options, and the sliding indicator in exclusive mode, in the default appearance. In the outline and flat appearances, sets the selected color of every option, over its own
|
|
76
|
+
* @cssprop [--toggle-group-active-background] - Sets the background color of selected options, and the sliding indicator in exclusive mode, in the default appearance. In the outline and flat appearances, sets the selected color of every option, over its own color
|
|
77
77
|
* @cssprop [--toggle-group-active-color] - Sets the text color of selected options, for every appearance
|
|
78
78
|
* @cssprop [--toggle-group-border-radius] - Sets the corner radius of the track and its options
|
|
79
79
|
* @cssprop [--toggle-group-gap] - Sets the gap between the options
|
|
80
80
|
* @cssprop [--toggle-group-padding] - Sets the padding of the track, also used as the indicator's inset so it stays flush with the track's edge. Ignored once appearance isn't default
|
|
81
|
+
* @cssprop [--toggle-group-padding-block] - Sets the vertical padding, as one length applied to both sides. Ignored when --toggle-group-padding is set
|
|
82
|
+
* @cssprop [--toggle-group-padding-inline] - Sets the horizontal padding, as one length applied to both sides. Ignored when --toggle-group-padding is set
|
|
81
83
|
* @cssprop [--toggle-group-hover-color] - Sets the text color of an unselected option on hover and keyboard focus, for every appearance
|
|
82
84
|
* @cssprop [--toggle-group-hover-background] - Sets the background color of an unselected option on hover. Transparent by default, and applies regardless of appearance
|
|
85
|
+
* @cssprop [--toggle-group-box-shadow] - Sets a box shadow on the track itself, for every appearance. None by default
|
|
83
86
|
* @cssprop [--toggle-group-shadow] - Sets a box shadow on every option, and the sliding indicator in exclusive mode. None by default
|
|
84
87
|
* @cssprop [--toggle-group-shadow-hover] - Sets the box shadow of an unselected option on hover, falling back to toggle-group-shadow when unset
|
|
85
88
|
* @cssprop [--toggle-group-arrows-color] - Sets the background color the overflow arrows fade out to, once the group overflows its container
|
|
@@ -90,7 +93,8 @@ let EunomiaToggleGroup = class EunomiaToggleGroup extends NavigationOverflowMixi
|
|
|
90
93
|
super(...arguments);
|
|
91
94
|
/**
|
|
92
95
|
* The choices to render, in order. Also reflected as a JSON-serialized
|
|
93
|
-
* `options` attribute (Lit's default `Array` converter)
|
|
96
|
+
* `options` attribute (Lit's default `Array` converter), left out while
|
|
97
|
+
* empty so an SSR framework doesn't see an attribute it never rendered.
|
|
94
98
|
* @default []
|
|
95
99
|
*/
|
|
96
100
|
this.options = [];
|
|
@@ -141,6 +145,14 @@ let EunomiaToggleGroup = class EunomiaToggleGroup extends NavigationOverflowMixi
|
|
|
141
145
|
* @internal
|
|
142
146
|
*/
|
|
143
147
|
_EunomiaToggleGroup_hasSeededInitialValue.set(this, false);
|
|
148
|
+
/**
|
|
149
|
+
* Whether the initial selection has been painted once. Until then, the
|
|
150
|
+
* choices and their icons skip their color transitions (see the
|
|
151
|
+
* `#scrollable:not(.settled)` rule), so the selected one appears in its
|
|
152
|
+
* final state on load instead of fading in from the unselected color.
|
|
153
|
+
* @internal
|
|
154
|
+
*/
|
|
155
|
+
this.settled = false;
|
|
144
156
|
/**
|
|
145
157
|
* Debounced wrapper around {@link moveIndicator}, used by the resize
|
|
146
158
|
* observer so a burst of layout changes doesn't retrigger it constantly.
|
|
@@ -153,7 +165,7 @@ let EunomiaToggleGroup = class EunomiaToggleGroup extends NavigationOverflowMixi
|
|
|
153
165
|
* @private
|
|
154
166
|
*/
|
|
155
167
|
this.handleSlotChange = () => {
|
|
156
|
-
this.settleAndSync(false);
|
|
168
|
+
void this.settleAndSync(false);
|
|
157
169
|
};
|
|
158
170
|
}
|
|
159
171
|
/**
|
|
@@ -202,7 +214,13 @@ let EunomiaToggleGroup = class EunomiaToggleGroup extends NavigationOverflowMixi
|
|
|
202
214
|
}
|
|
203
215
|
firstUpdated(changedProperties) {
|
|
204
216
|
super.firstUpdated(changedProperties);
|
|
205
|
-
this.settleAndSync(false)
|
|
217
|
+
void this.settleAndSync(false)
|
|
218
|
+
.then(() => Promise.all((this.items ?? []).map((item) => this.whenItemReady(item))))
|
|
219
|
+
.then(() => {
|
|
220
|
+
requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
221
|
+
this.settled = true;
|
|
222
|
+
}));
|
|
223
|
+
});
|
|
206
224
|
}
|
|
207
225
|
updated(_changedProperties) {
|
|
208
226
|
super.updated(_changedProperties);
|
|
@@ -253,14 +271,11 @@ let EunomiaToggleGroup = class EunomiaToggleGroup extends NavigationOverflowMixi
|
|
|
253
271
|
* @private
|
|
254
272
|
*/
|
|
255
273
|
settleAndSync(animate) {
|
|
256
|
-
this.whenItemsReady().then(() => {
|
|
274
|
+
return this.whenItemsReady().then(() => {
|
|
257
275
|
this.seedInitialValue();
|
|
258
276
|
this.applyExclusiveDefault();
|
|
259
277
|
this.syncItems();
|
|
260
278
|
this.refreshIndicator(animate);
|
|
261
|
-
// After the sync : measuring reads layout, which would otherwise style
|
|
262
|
-
// the items before they carry their state, then transition into it.
|
|
263
|
-
// Needed since the host's size may not change with the choices.
|
|
264
279
|
this.updateScroll();
|
|
265
280
|
});
|
|
266
281
|
}
|
|
@@ -450,7 +465,7 @@ let EunomiaToggleGroup = class EunomiaToggleGroup extends NavigationOverflowMixi
|
|
|
450
465
|
};
|
|
451
466
|
const active = this.entries.find((entry) => entry.value === this.value[0]);
|
|
452
467
|
if (active && active.element.tagName !== "BUTTON") {
|
|
453
|
-
this.whenItemReady(active.element).then(settle);
|
|
468
|
+
void this.whenItemReady(active.element).then(settle);
|
|
454
469
|
return;
|
|
455
470
|
}
|
|
456
471
|
settle();
|
|
@@ -508,10 +523,6 @@ let EunomiaToggleGroup = class EunomiaToggleGroup extends NavigationOverflowMixi
|
|
|
508
523
|
}
|
|
509
524
|
const trackRect = this.trackEl.getBoundingClientRect();
|
|
510
525
|
const activeRect = active.element.getBoundingClientRect();
|
|
511
|
-
// The indicator lives inside the scrolling row, so it moves with the
|
|
512
|
-
// content : its offset is the active entry's position in *content*
|
|
513
|
-
// coordinates, from the padding edge (past the border), not from the
|
|
514
|
-
// window.
|
|
515
526
|
const offset = activeRect.left -
|
|
516
527
|
trackRect.left -
|
|
517
528
|
this.trackEl.clientLeft +
|
|
@@ -520,8 +531,8 @@ let EunomiaToggleGroup = class EunomiaToggleGroup extends NavigationOverflowMixi
|
|
|
520
531
|
indicator.style.transition = "none";
|
|
521
532
|
}
|
|
522
533
|
indicator.style.opacity = "1";
|
|
523
|
-
indicator.style.width = `${
|
|
524
|
-
indicator.style.transform = `translateX(${
|
|
534
|
+
indicator.style.width = `${activeRect.width}px`;
|
|
535
|
+
indicator.style.transform = `translateX(${offset}px)`;
|
|
525
536
|
if (!animate) {
|
|
526
537
|
indicator.getBoundingClientRect();
|
|
527
538
|
indicator.style.transition = "";
|
|
@@ -646,6 +657,7 @@ let EunomiaToggleGroup = class EunomiaToggleGroup extends NavigationOverflowMixi
|
|
|
646
657
|
<div id="scrollable-wrapper">
|
|
647
658
|
<div
|
|
648
659
|
id="scrollable"
|
|
660
|
+
class=${classMap({ settled: this.settled })}
|
|
649
661
|
role=${exclusive ? "radiogroup" : "group"}
|
|
650
662
|
part="track"
|
|
651
663
|
aria-label=${this.ariaLabel ?? nothing}
|
|
@@ -668,7 +680,7 @@ let EunomiaToggleGroup = class EunomiaToggleGroup extends NavigationOverflowMixi
|
|
|
668
680
|
type="button"
|
|
669
681
|
class=${classMap({ active: checked, "icon-only": iconOnly })}
|
|
670
682
|
data-value=${option.value}
|
|
671
|
-
data-
|
|
683
|
+
data-color=${ifDefined(option.color)}
|
|
672
684
|
role=${exclusive ? "radio" : "checkbox"}
|
|
673
685
|
aria-checked=${checked ? "true" : "false"}
|
|
674
686
|
aria-label=${ifDefined(iconOnly ? option.label : undefined)}
|
|
@@ -717,10 +729,22 @@ _EunomiaToggleGroup_hasSeededInitialValue = new WeakMap();
|
|
|
717
729
|
*/
|
|
718
730
|
EunomiaToggleGroup.styles = [toggleGroupStyles];
|
|
719
731
|
__decorate([
|
|
720
|
-
property({
|
|
732
|
+
property({
|
|
733
|
+
type: Array,
|
|
734
|
+
reflect: true,
|
|
735
|
+
converter: {
|
|
736
|
+
toAttribute: (value) => value?.length ? JSON.stringify(value) : null,
|
|
737
|
+
},
|
|
738
|
+
})
|
|
721
739
|
], EunomiaToggleGroup.prototype, "options", void 0);
|
|
722
740
|
__decorate([
|
|
723
|
-
property({
|
|
741
|
+
property({
|
|
742
|
+
type: Array,
|
|
743
|
+
reflect: true,
|
|
744
|
+
converter: {
|
|
745
|
+
toAttribute: (value) => value?.length ? JSON.stringify(value) : null,
|
|
746
|
+
},
|
|
747
|
+
})
|
|
724
748
|
], EunomiaToggleGroup.prototype, "value", void 0);
|
|
725
749
|
__decorate([
|
|
726
750
|
property({ type: Boolean, reflect: true })
|
|
@@ -740,6 +764,9 @@ __decorate([
|
|
|
740
764
|
__decorate([
|
|
741
765
|
query("#indicator")
|
|
742
766
|
], EunomiaToggleGroup.prototype, "indicatorEl", void 0);
|
|
767
|
+
__decorate([
|
|
768
|
+
state()
|
|
769
|
+
], EunomiaToggleGroup.prototype, "settled", void 0);
|
|
743
770
|
EunomiaToggleGroup = __decorate([
|
|
744
771
|
customElement(EunomiaToggleGroupTagName)
|
|
745
772
|
], EunomiaToggleGroup);
|
|
@@ -5,13 +5,16 @@
|
|
|
5
5
|
* [--toggle-group-background] - Set a custom background color for the track, for every appearance (transparent by default in `outline`/`flat`)
|
|
6
6
|
* [--toggle-group-border-color] - Set a custom border color for the track in `default` appearance, and for each option's border at rest in `outline` and `flat` appearance
|
|
7
7
|
* [--toggle-group-color] - Set a custom text color for unselected options
|
|
8
|
-
* [--toggle-group-active-background] - Set a custom background color for selected options (and the sliding indicator, in exclusive mode) in `default` appearance ; in `outline`/`flat` appearance, the selected color of every option, over its own
|
|
8
|
+
* [--toggle-group-active-background] - Set a custom background color for selected options (and the sliding indicator, in exclusive mode) in `default` appearance ; in `outline`/`flat` appearance, the selected color of every option, over its own color
|
|
9
9
|
* [--toggle-group-active-color] - Set a custom text color for selected options, for every appearance
|
|
10
10
|
* [--toggle-group-border-radius] - Set a custom border radius for the track and its options
|
|
11
11
|
* [--toggle-group-gap] - Set a custom gap between the options
|
|
12
12
|
* [--toggle-group-padding] - Set a custom padding for the track ; also used as the indicator's inset, so it stays flush with the track's edge. Ignored once `appearance` isn't `default`
|
|
13
|
+
* [--toggle-group-padding-block] - Set a custom vertical padding, as one length applied to both sides. Ignored when --toggle-group-padding is set
|
|
14
|
+
* [--toggle-group-padding-inline] - Set a custom horizontal padding, as one length applied to both sides. Ignored when --toggle-group-padding is set
|
|
13
15
|
* [--toggle-group-hover-color] - Set a custom text color on hover state, for an unselected option, for every appearance
|
|
14
16
|
* [--toggle-group-hover-background] - Set a custom background color on hover state, for an unselected option ; transparent by default. Applies regardless of `appearance`
|
|
17
|
+
* [--toggle-group-box-shadow] - Set a custom box shadow on the track itself, for every appearance, none by default
|
|
15
18
|
* [--toggle-group-shadow] - Set a custom box shadow on every option (and the sliding indicator, in exclusive mode), none by default
|
|
16
19
|
* [--toggle-group-shadow-hover] - Set a custom box shadow on hover state, for an unselected option ; falls back to `--toggle-group-shadow`
|
|
17
20
|
* [--toggle-group-arrows-color] - Set a custom background color the overflow arrows fade out to, once the group overflows its container ; defaults to the track color laid over `--eun-surface-color`, so set it when the group sits on another background
|
|
@@ -6,13 +6,16 @@ import { css } from "lit";
|
|
|
6
6
|
* [--toggle-group-background] - Set a custom background color for the track, for every appearance (transparent by default in `outline`/`flat`)
|
|
7
7
|
* [--toggle-group-border-color] - Set a custom border color for the track in `default` appearance, and for each option's border at rest in `outline` and `flat` appearance
|
|
8
8
|
* [--toggle-group-color] - Set a custom text color for unselected options
|
|
9
|
-
* [--toggle-group-active-background] - Set a custom background color for selected options (and the sliding indicator, in exclusive mode) in `default` appearance ; in `outline`/`flat` appearance, the selected color of every option, over its own
|
|
9
|
+
* [--toggle-group-active-background] - Set a custom background color for selected options (and the sliding indicator, in exclusive mode) in `default` appearance ; in `outline`/`flat` appearance, the selected color of every option, over its own color
|
|
10
10
|
* [--toggle-group-active-color] - Set a custom text color for selected options, for every appearance
|
|
11
11
|
* [--toggle-group-border-radius] - Set a custom border radius for the track and its options
|
|
12
12
|
* [--toggle-group-gap] - Set a custom gap between the options
|
|
13
13
|
* [--toggle-group-padding] - Set a custom padding for the track ; also used as the indicator's inset, so it stays flush with the track's edge. Ignored once `appearance` isn't `default`
|
|
14
|
+
* [--toggle-group-padding-block] - Set a custom vertical padding, as one length applied to both sides. Ignored when --toggle-group-padding is set
|
|
15
|
+
* [--toggle-group-padding-inline] - Set a custom horizontal padding, as one length applied to both sides. Ignored when --toggle-group-padding is set
|
|
14
16
|
* [--toggle-group-hover-color] - Set a custom text color on hover state, for an unselected option, for every appearance
|
|
15
17
|
* [--toggle-group-hover-background] - Set a custom background color on hover state, for an unselected option ; transparent by default. Applies regardless of `appearance`
|
|
18
|
+
* [--toggle-group-box-shadow] - Set a custom box shadow on the track itself, for every appearance, none by default
|
|
16
19
|
* [--toggle-group-shadow] - Set a custom box shadow on every option (and the sliding indicator, in exclusive mode), none by default
|
|
17
20
|
* [--toggle-group-shadow-hover] - Set a custom box shadow on hover state, for an unselected option ; falls back to `--toggle-group-shadow`
|
|
18
21
|
* [--toggle-group-arrows-color] - Set a custom background color the overflow arrows fade out to, once the group overflows its container ; defaults to the track color laid over `--eun-surface-color`, so set it when the group sits on another background
|
|
@@ -30,11 +33,21 @@ export const toggleGroupStyles = css `
|
|
|
30
33
|
--toggle-group-arrows-color,
|
|
31
34
|
var(--eun-surface-color, #ffffff)
|
|
32
35
|
);
|
|
36
|
+
--_trackPaddingBlock: var(
|
|
37
|
+
--toggle-group-padding,
|
|
38
|
+
var(--toggle-group-padding-block, 4px)
|
|
39
|
+
);
|
|
40
|
+
--_trackPaddingInline: var(
|
|
41
|
+
--toggle-group-padding,
|
|
42
|
+
var(--toggle-group-padding-inline, 4px)
|
|
43
|
+
);
|
|
44
|
+
--_focusRoom: 0px;
|
|
33
45
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
34
46
|
font-size: var(--eun-font-size-s, 14px);
|
|
35
47
|
}
|
|
36
48
|
:host([appearance="outline"]),
|
|
37
49
|
:host([appearance="flat"]) {
|
|
50
|
+
--_focusRoom: 4px;
|
|
38
51
|
--_arrowsColor: var(
|
|
39
52
|
--toggle-group-arrows-color,
|
|
40
53
|
var(--eun-surface-color, #ffffff)
|
|
@@ -60,7 +73,7 @@ export const toggleGroupStyles = css `
|
|
|
60
73
|
display: inline-flex;
|
|
61
74
|
max-width: 100%;
|
|
62
75
|
gap: var(--toggle-group-gap, var(--eun-space-xs, 4px));
|
|
63
|
-
padding: var(--
|
|
76
|
+
padding: var(--_trackPaddingBlock) var(--_trackPaddingInline);
|
|
64
77
|
border-radius: var(
|
|
65
78
|
--toggle-group-border-radius,
|
|
66
79
|
var(--eun-border-radius-m, 8px)
|
|
@@ -71,9 +84,14 @@ export const toggleGroupStyles = css `
|
|
|
71
84
|
);
|
|
72
85
|
border: var(--eun-border-width-s, 1px) solid
|
|
73
86
|
var(--toggle-group-border-color, var(--eun-color-grey-300, #dee0e7));
|
|
87
|
+
box-shadow: var(--toggle-group-box-shadow, none);
|
|
74
88
|
scrollbar-width: none;
|
|
75
89
|
overflow-x: hidden;
|
|
76
90
|
}
|
|
91
|
+
#scrollable:not(.settled) {
|
|
92
|
+
--_toggleTransition: none;
|
|
93
|
+
--icon-transition: none;
|
|
94
|
+
}
|
|
77
95
|
#scrollable::-webkit-scrollbar {
|
|
78
96
|
display: none;
|
|
79
97
|
}
|
|
@@ -85,13 +103,19 @@ export const toggleGroupStyles = css `
|
|
|
85
103
|
}
|
|
86
104
|
:host([appearance="outline"]) #scrollable,
|
|
87
105
|
:host([appearance="flat"]) #scrollable {
|
|
88
|
-
padding:
|
|
106
|
+
padding: var(--_focusRoom);
|
|
107
|
+
margin: calc(-1 * var(--_focusRoom));
|
|
108
|
+
max-width: calc(100% + 2 * var(--_focusRoom));
|
|
89
109
|
background: var(--toggle-group-background, transparent);
|
|
90
110
|
border: none;
|
|
91
111
|
}
|
|
112
|
+
:host([full][appearance="outline"]) #scrollable,
|
|
113
|
+
:host([full][appearance="flat"]) #scrollable {
|
|
114
|
+
width: calc(100% + 2 * var(--_focusRoom));
|
|
115
|
+
}
|
|
92
116
|
#arrows {
|
|
93
117
|
position: absolute;
|
|
94
|
-
inset:
|
|
118
|
+
inset: calc(-1 * var(--_focusRoom));
|
|
95
119
|
z-index: 2;
|
|
96
120
|
pointer-events: none;
|
|
97
121
|
}
|
|
@@ -102,7 +126,8 @@ export const toggleGroupStyles = css `
|
|
|
102
126
|
opacity: 0;
|
|
103
127
|
min-width: 24px;
|
|
104
128
|
pointer-events: none;
|
|
105
|
-
transition: opacity
|
|
129
|
+
transition: opacity var(--eun-duration-m, 200ms)
|
|
130
|
+
var(--eun-easing-default, ease);
|
|
106
131
|
display: flex;
|
|
107
132
|
align-items: center;
|
|
108
133
|
}
|
|
@@ -147,8 +172,8 @@ export const toggleGroupStyles = css `
|
|
|
147
172
|
}
|
|
148
173
|
#indicator {
|
|
149
174
|
position: absolute;
|
|
150
|
-
top: var(--
|
|
151
|
-
bottom: var(--
|
|
175
|
+
top: var(--_trackPaddingBlock);
|
|
176
|
+
bottom: var(--_trackPaddingBlock);
|
|
152
177
|
left: 0;
|
|
153
178
|
width: 0;
|
|
154
179
|
opacity: 0;
|
|
@@ -165,13 +190,14 @@ export const toggleGroupStyles = css `
|
|
|
165
190
|
var(--eun-shadow-xs, rgba(7, 22, 33, 0.08) 0 1px 2px)
|
|
166
191
|
);
|
|
167
192
|
transition:
|
|
168
|
-
transform
|
|
169
|
-
width
|
|
170
|
-
opacity
|
|
193
|
+
transform var(--eun-duration-l, 250ms) cubic-bezier(0.4, 0, 0.2, 1),
|
|
194
|
+
width var(--eun-duration-l, 250ms) cubic-bezier(0.4, 0, 0.2, 1),
|
|
195
|
+
opacity var(--eun-duration-s, 150ms) var(--eun-easing-out, ease-out);
|
|
171
196
|
}
|
|
172
197
|
@media (prefers-reduced-motion: reduce) {
|
|
173
198
|
#indicator {
|
|
174
|
-
transition: opacity
|
|
199
|
+
transition: opacity var(--eun-duration-s, 150ms)
|
|
200
|
+
var(--eun-easing-out, ease-out);
|
|
175
201
|
}
|
|
176
202
|
}
|
|
177
203
|
button {
|
|
@@ -183,7 +209,7 @@ export const toggleGroupStyles = css `
|
|
|
183
209
|
--_boxShadow: var(--toggle-group-shadow, none);
|
|
184
210
|
--_boxShadow-hover: var(--toggle-group-shadow-hover, var(--_boxShadow));
|
|
185
211
|
--_variantColorDefault: var(--eun-color-primary-500, #3d6fff);
|
|
186
|
-
--_variantTintDefault: var(--eun-color-primary-
|
|
212
|
+
--_variantTintDefault: var(--eun-color-primary-alpha-20, #3d6fff33);
|
|
187
213
|
--_variantColor: var(
|
|
188
214
|
--toggle-group-active-background,
|
|
189
215
|
var(--_variantColorDefault)
|
|
@@ -201,7 +227,6 @@ export const toggleGroupStyles = css `
|
|
|
201
227
|
flex-shrink: 0;
|
|
202
228
|
gap: var(--eun-space-xs, 4px);
|
|
203
229
|
font: inherit;
|
|
204
|
-
text-transform: capitalize;
|
|
205
230
|
white-space: nowrap;
|
|
206
231
|
cursor: pointer;
|
|
207
232
|
border: none;
|
|
@@ -214,10 +239,13 @@ export const toggleGroupStyles = css `
|
|
|
214
239
|
var(--toggle-group-border-radius, var(--eun-border-radius-m, 8px)) - 3px
|
|
215
240
|
);
|
|
216
241
|
box-shadow: var(--_boxShadow);
|
|
217
|
-
transition:
|
|
218
|
-
|
|
219
|
-
color
|
|
220
|
-
|
|
242
|
+
transition: var(
|
|
243
|
+
--_toggleTransition,
|
|
244
|
+
background-color var(--eun-duration-m, 200ms)
|
|
245
|
+
var(--eun-easing-out, ease-out),
|
|
246
|
+
color var(--eun-duration-m, 200ms) var(--eun-easing-out, ease-out),
|
|
247
|
+
box-shadow var(--eun-duration-m, 200ms) var(--eun-easing-out, ease-out)
|
|
248
|
+
);
|
|
221
249
|
}
|
|
222
250
|
:host([full]) button,
|
|
223
251
|
:host([full]) ::slotted(eun-toggle-item) {
|
|
@@ -237,8 +265,9 @@ export const toggleGroupStyles = css `
|
|
|
237
265
|
outline-color: var(--eun-color-primary-500, #3d6fff);
|
|
238
266
|
outline-offset: 2px;
|
|
239
267
|
transition:
|
|
240
|
-
outline-color
|
|
241
|
-
outline-offset
|
|
268
|
+
outline-color var(--eun-duration-m, 200ms) var(--eun-easing-out, ease-out),
|
|
269
|
+
outline-offset var(--eun-duration-m, 200ms)
|
|
270
|
+
var(--eun-easing-out, ease-out);
|
|
242
271
|
}
|
|
243
272
|
button[disabled] {
|
|
244
273
|
cursor: not-allowed;
|
|
@@ -266,21 +295,21 @@ export const toggleGroupStyles = css `
|
|
|
266
295
|
padding: 6px;
|
|
267
296
|
}
|
|
268
297
|
|
|
269
|
-
button[data-
|
|
298
|
+
button[data-color="secondary"] {
|
|
270
299
|
--_variantColorDefault: var(--eun-color-secondary-500, #e5a030);
|
|
271
|
-
--_variantTintDefault: var(--eun-color-secondary-
|
|
300
|
+
--_variantTintDefault: var(--eun-color-secondary-alpha-20, #edbd6f33);
|
|
272
301
|
}
|
|
273
|
-
button[data-
|
|
302
|
+
button[data-color="critical"] {
|
|
274
303
|
--_variantColorDefault: var(--eun-color-critical-100, #aa0014);
|
|
275
|
-
--_variantTintDefault: var(--eun-color-critical-
|
|
304
|
+
--_variantTintDefault: var(--eun-color-critical-alpha-5, #aa00140d);
|
|
276
305
|
}
|
|
277
|
-
button[data-
|
|
306
|
+
button[data-color="success"] {
|
|
278
307
|
--_variantColorDefault: var(--eun-color-success-100, #1a9948);
|
|
279
|
-
--_variantTintDefault: var(--eun-color-success-
|
|
308
|
+
--_variantTintDefault: var(--eun-color-success-alpha-5, #1a99480d);
|
|
280
309
|
}
|
|
281
|
-
button[data-
|
|
310
|
+
button[data-color="warning"] {
|
|
282
311
|
--_variantColorDefault: var(--eun-color-warning-100, #c85207);
|
|
283
|
-
--_variantTintDefault: var(--eun-color-warning-
|
|
312
|
+
--_variantTintDefault: var(--eun-color-warning-alpha-5, #c852070d);
|
|
284
313
|
}
|
|
285
314
|
:host([appearance="outline"]) button,
|
|
286
315
|
:host([appearance="flat"]) button {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, PropertyValues, TemplateResult } from "lit";
|
|
2
2
|
import { EunomiaIconName } from "../../content/icon/icon.type.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ButtonColor } from "../../../mixins/button.mixin.js";
|
|
4
4
|
/**
|
|
5
5
|
* Tag name of the toggle item component.
|
|
6
6
|
*/
|
|
@@ -18,7 +18,7 @@ declare const EunomiaToggleItem_base: import("../../../utils/constructor.type.js
|
|
|
18
18
|
* @csspart item - The item's own surface box, carrying its padding, background, and border. Exposed for effects the item's CSS custom properties don't cover
|
|
19
19
|
* @prop {string} value - The value reported when this option is selected
|
|
20
20
|
* @prop {EunomiaIconName} icon - An icon shown before the slotted content. For an icon only item, also set an accessible label yourself, since there's no label property to derive one from
|
|
21
|
-
* @prop {'primary' | 'secondary' | 'critical' | 'success' | 'warning'} [
|
|
21
|
+
* @prop {'primary' | 'secondary' | 'critical' | 'success' | 'warning'} [color] - This item's own color, used once the parent group's appearance isn't default. It renders as neutral at rest, taking on this color only once selected, and defaults to primary when unset. Ignored entirely in the default appearance
|
|
22
22
|
* @prop {boolean} [disabled=false] - Whether this option is disabled
|
|
23
23
|
* @prop {boolean} [checked=false] - Whether this option is currently selected. Set by the parent toggle group, and shouldn't be set directly
|
|
24
24
|
* @element eun-toggle-item
|
|
@@ -43,11 +43,11 @@ export declare class EunomiaToggleItem extends EunomiaToggleItem_base {
|
|
|
43
43
|
/**
|
|
44
44
|
* This item's own semantic color, once the parent group's `appearance`
|
|
45
45
|
* isn't `default` — see `eun-toggle-group`'s own `appearance`/
|
|
46
|
-
* `
|
|
46
|
+
* `ButtonColor` doc. Falls back to a neutral style at rest, taking on
|
|
47
47
|
* this color only once selected ; unset defaults to `primary`. Ignored
|
|
48
48
|
* entirely in `default` appearance.
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
color?: ButtonColor;
|
|
51
51
|
/**
|
|
52
52
|
* Indicates whether this option is currently selected.
|
|
53
53
|
* Owned by the parent `eun-toggle-group` ; do not set directly.
|
|
@@ -35,7 +35,7 @@ const TOGGLE_GROUP_TAG_NAME = "eun-toggle-group";
|
|
|
35
35
|
* @csspart item - The item's own surface box, carrying its padding, background, and border. Exposed for effects the item's CSS custom properties don't cover
|
|
36
36
|
* @prop {string} value - The value reported when this option is selected
|
|
37
37
|
* @prop {EunomiaIconName} icon - An icon shown before the slotted content. For an icon only item, also set an accessible label yourself, since there's no label property to derive one from
|
|
38
|
-
* @prop {'primary' | 'secondary' | 'critical' | 'success' | 'warning'} [
|
|
38
|
+
* @prop {'primary' | 'secondary' | 'critical' | 'success' | 'warning'} [color] - This item's own color, used once the parent group's appearance isn't default. It renders as neutral at rest, taking on this color only once selected, and defaults to primary when unset. Ignored entirely in the default appearance
|
|
39
39
|
* @prop {boolean} [disabled=false] - Whether this option is disabled
|
|
40
40
|
* @prop {boolean} [checked=false] - Whether this option is currently selected. Set by the parent toggle group, and shouldn't be set directly
|
|
41
41
|
* @element eun-toggle-item
|
|
@@ -130,7 +130,7 @@ __decorate([
|
|
|
130
130
|
], EunomiaToggleItem.prototype, "icon", void 0);
|
|
131
131
|
__decorate([
|
|
132
132
|
property({ reflect: true })
|
|
133
|
-
], EunomiaToggleItem.prototype, "
|
|
133
|
+
], EunomiaToggleItem.prototype, "color", void 0);
|
|
134
134
|
__decorate([
|
|
135
135
|
property({ type: Boolean, reflect: true })
|
|
136
136
|
], EunomiaToggleItem.prototype, "checked", void 0);
|