@eunomia/elements 1.0.0-beta.5 → 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-OW7XKDCH.js → chunk-2Y2EU2CI.js} +16 -16
- package/dist/cdn/components/chunks/{chunk-LFCXUVDO.js → chunk-4PI6RDUS.js} +1 -1
- 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-EAKYD33D.js → chunk-BQFJR2UP.js} +4 -4
- 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-IDKZKLJR.js → chunk-KDN4O5W2.js} +24 -11
- 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-2XASWWKR.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-6ETDXUH2.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-AIS3UICU.js → chunk-QZ5SHR3I.js} +9 -5
- package/dist/cdn/components/chunks/{chunk-32DTNR52.js → chunk-RS7TWEMQ.js} +1 -1
- package/dist/cdn/components/chunks/chunk-SMTIDNGW.js +1 -0
- package/dist/cdn/components/chunks/{chunk-MPQP4R54.js → chunk-SZYEBMG6.js} +10 -9
- package/dist/cdn/components/chunks/{chunk-JRGM3W7I.js → chunk-UDVB4LAE.js} +5 -2
- package/dist/cdn/components/chunks/{chunk-L65WUTXM.js → chunk-UYZR4JXZ.js} +12 -7
- 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-DKOPI7QA.js → chunk-VYFR364B.js} +73 -63
- package/dist/cdn/components/chunks/{chunk-SD2WHGPF.js → chunk-XDPRWUKN.js} +1 -1
- 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-NBIENHLV.js → chunk-ZKZV2YG5.js} +18 -18
- package/dist/cdn/components/eun-alert.js +24 -16
- package/dist/cdn/components/eun-animate.js +12 -8
- package/dist/cdn/components/eun-badge.js +1 -1
- 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 +67 -65
- package/dist/cdn/components/eun-card.js +32 -17
- 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 +56 -27
- package/dist/cdn/components/eun-color-picker.js +53 -52
- package/dist/cdn/components/eun-counter.js +9 -8
- package/dist/cdn/components/eun-date-picker.js +59 -56
- 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 +32 -18
- 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 +17 -16
- 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 +15 -15
- 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 +78 -29
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +17 -10
- 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 +1 -1
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +36 -36
- package/dist/cdn/components/eun-search.js +11 -10
- 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 +23 -23
- package/dist/cdn/components/eun-time-picker.js +17 -15
- package/dist/cdn/components/eun-toast.js +36 -16
- package/dist/cdn/components/eun-toggle-group.js +53 -34
- package/dist/cdn/components/eun-toggle-item.js +16 -15
- 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 +7 -2
- package/dist/components/action/button/button.js +7 -2
- package/dist/components/action/button/button.styles.js +51 -36
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +2 -2
- package/dist/components/action/dropdown-button/dropdown-button.js +11 -10
- 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.styles.js +14 -13
- package/dist/components/action/link/link.d.ts +7 -3
- package/dist/components/action/link/link.js +11 -7
- package/dist/components/action/link/link.styles.js +66 -15
- package/dist/components/action/shared-styles/button-palette.styles.js +15 -15
- package/dist/components/action/toggle/toggle-group.d.ts +2 -0
- package/dist/components/action/toggle/toggle-group.js +5 -3
- package/dist/components/action/toggle/toggle-group.styles.d.ts +2 -0
- package/dist/components/action/toggle/toggle-group.styles.js +42 -21
- package/dist/components/action/toggle/toggle-item.styles.js +13 -12
- 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 +4 -2
- package/dist/components/alert/drawer/drawer.styles.js +25 -9
- package/dist/components/alert/modal/modal.d.ts +3 -1
- package/dist/components/alert/modal/modal.js +4 -2
- 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/card/card.d.ts +7 -3
- package/dist/components/content/card/card.js +7 -3
- package/dist/components/content/card/card.styles.js +26 -11
- package/dist/components/content/card/image-card.d.ts +60 -6
- package/dist/components/content/card/image-card.js +120 -11
- package/dist/components/content/card/image-card.styles.js +66 -15
- package/dist/components/content/card/sliding-card.d.ts +2 -0
- package/dist/components/content/card/sliding-card.js +2 -0
- package/dist/components/content/card/sliding-card.styles.js +5 -1
- package/dist/components/content/collapse/collapse.d.ts +10 -1
- package/dist/components/content/collapse/collapse.js +12 -2
- package/dist/components/content/collapse/collapse.styles.d.ts +10 -1
- package/dist/components/content/collapse/collapse.styles.js +56 -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 +2 -0
- package/dist/components/content/icon/icon.js +2 -0
- package/dist/components/content/icon/icon.style.js +4 -1
- 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 +4 -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 +7 -1
- package/dist/components/form/color-picker/color-picker.js +19 -21
- package/dist/components/form/color-picker/color-picker.styles.js +6 -5
- package/dist/components/form/counter/counter.d.ts +4 -1
- package/dist/components/form/counter/counter.js +5 -2
- package/dist/components/form/counter/counter.styles.js +5 -4
- package/dist/components/form/date-picker/date-picker.d.ts +37 -33
- package/dist/components/form/date-picker/date-picker.js +32 -42
- package/dist/components/form/date-picker/date-picker.styles.js +8 -5
- package/dist/components/form/input/input.d.ts +7 -1
- package/dist/components/form/input/input.js +8 -2
- 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 +8 -2
- package/dist/components/form/input-phone/input-phone.js +13 -17
- package/dist/components/form/input-phone/input-phone.styles.js +4 -4
- 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 +5 -4
- package/dist/components/form/select/select.d.ts +9 -2
- package/dist/components/form/select/select.js +15 -18
- 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 +16 -6
- 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 +7 -1
- package/dist/components/form/textarea/textarea.js +14 -8
- 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 +6 -2
- package/dist/components/form/time-picker/time-picker.js +22 -26
- package/dist/components/form/time-picker/time-picker.styles.js +4 -3
- package/dist/components/layout/animate/animate.d.ts +37 -15
- package/dist/components/layout/animate/animate.js +35 -15
- 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 +6 -6
- package/dist/features/scheduler/calendar/calendar.js +6 -5
- package/dist/features/scheduler/calendar/calendar.styles.js +8 -6
- package/dist/features/scheduler/scheduler/scheduler.d.ts +1 -1
- package/dist/features/scheduler/scheduler/scheduler.js +9 -23
- package/dist/features/scheduler/scheduler/scheduler.styles.js +6 -4
- package/dist/features/scheduler/scheduler-event/scheduler-event.d.ts +2 -0
- package/dist/features/scheduler/scheduler-event/scheduler-event.js +2 -0
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +10 -4
- package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +3 -3
- 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 +11 -20
- 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 +15 -22
- package/dist/features/table/table-action-bar/table-action-bar.styles.js +15 -3
- package/dist/i18n/en.d.ts +31 -0
- package/dist/i18n/en.js +31 -0
- package/dist/i18n/fr.js +35 -0
- package/dist/index.d.ts +4 -10
- package/dist/index.js +6 -10
- package/dist/mixins/check.mixin.js +4 -5
- 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 +3 -2
- 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 +1 -1
- package/dist/ssr/table-ssr.css +472 -0
- package/dist/ssr/tag-ssr.css +197 -0
- package/dist/ssr/toolbar-ssr.css +5 -1
- 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/theme-generator.utils.d.ts +6 -1
- package/dist/utils/theme-generator.utils.js +59 -20
- package/package.json +17 -28
- 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-A6KGFALA.js +0 -132
- 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-SJWRE6PW.js +0 -1
- package/dist/cdn/components/chunks/chunk-T4PTHUYF.js +0 -10
- package/dist/cdn/components/chunks/chunk-VRGRCYIO.js +0 -1
- package/dist/cdn/components/chunks/chunk-X2AUBZD2.js +0 -30
- 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/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
|
@@ -12,6 +12,7 @@ import { SelectEvent } from "../../../events/select.event.js";
|
|
|
12
12
|
import { clampToViewport, dropdownMenuAnimationDuration, focusEntryAt, handleMenuKeydown, positionFlyout, } from "../../../utils/dropdown-menu.utils.js";
|
|
13
13
|
import { dropdownButtonStyles } from "./dropdown-button.styles.js";
|
|
14
14
|
import { resolveIcon } from "../../../utils/severity-icon.utils.js";
|
|
15
|
+
import { resolveEasing } from "../../../utils/motion.utils.js";
|
|
15
16
|
/**
|
|
16
17
|
* Tag name of the dropdown-button component.
|
|
17
18
|
*/
|
|
@@ -125,8 +126,8 @@ let EunomiaDropdownButton = class EunomiaDropdownButton extends LitElement {
|
|
|
125
126
|
/**
|
|
126
127
|
* Whether the menu is currently open. Reflected as an attribute so a
|
|
127
128
|
* consumer (or its own CSS, via `eun-dropdown-button[open]`) can tell —
|
|
128
|
-
* `eun-table
|
|
129
|
-
*
|
|
129
|
+
* `eun-table`'s row end action cell relies on it to stay visible while
|
|
130
|
+
* this menu is open, since the menu itself is a `popover="auto"`
|
|
130
131
|
* element positioned outside the row's own box, so hovering it doesn't
|
|
131
132
|
* count as hovering the row anymore.
|
|
132
133
|
* @default false
|
|
@@ -168,7 +169,7 @@ let EunomiaDropdownButton = class EunomiaDropdownButton extends LitElement {
|
|
|
168
169
|
if (toggleEvent.newState === "open") {
|
|
169
170
|
this.open = true;
|
|
170
171
|
this.positionMenu();
|
|
171
|
-
this.updateComplete.then(() => focusEntryAt(this.menuEntries, 0));
|
|
172
|
+
void this.updateComplete.then(() => focusEntryAt(this.menuEntries, 0));
|
|
172
173
|
window.addEventListener("resize", this.handleReposition);
|
|
173
174
|
window.addEventListener("scroll", this.handleReposition, true);
|
|
174
175
|
return;
|
|
@@ -237,7 +238,7 @@ let EunomiaDropdownButton = class EunomiaDropdownButton extends LitElement {
|
|
|
237
238
|
if (this.disabled) {
|
|
238
239
|
return;
|
|
239
240
|
}
|
|
240
|
-
this.updateComplete.then(() => {
|
|
241
|
+
void this.updateComplete.then(() => {
|
|
241
242
|
const menu = this.menuEl;
|
|
242
243
|
if (!menu) {
|
|
243
244
|
return;
|
|
@@ -278,7 +279,7 @@ let EunomiaDropdownButton = class EunomiaDropdownButton extends LitElement {
|
|
|
278
279
|
transform: `translate(${offsetX}, ${offsetY}) scale(0.96)`,
|
|
279
280
|
},
|
|
280
281
|
{ opacity: 1, transform: "translate(0, 0) scale(1)" },
|
|
281
|
-
], { duration, easing:
|
|
282
|
+
], { duration, easing: resolveEasing(menu), fill: "forwards" });
|
|
282
283
|
}
|
|
283
284
|
/**
|
|
284
285
|
* Closes the menu, if open. All state cleanup happens in
|
|
@@ -324,7 +325,7 @@ let EunomiaDropdownButton = class EunomiaDropdownButton extends LitElement {
|
|
|
324
325
|
opacity: 0,
|
|
325
326
|
transform: `translate(${offsetX}, ${offsetY}) scale(0.96)`,
|
|
326
327
|
},
|
|
327
|
-
], { duration, easing:
|
|
328
|
+
], { duration, easing: resolveEasing(menu), fill: "forwards" });
|
|
328
329
|
this.menuAnimation = animation;
|
|
329
330
|
animation.finished
|
|
330
331
|
.then(() => {
|
|
@@ -673,7 +674,7 @@ let EunomiaDropdownButton = class EunomiaDropdownButton extends LitElement {
|
|
|
673
674
|
this.submenuAnimation = submenu.animate([
|
|
674
675
|
{ opacity: 0, transform: `translate(${offsetX}, 0) scale(0.96)` },
|
|
675
676
|
{ opacity: 1, transform: "translate(0, 0) scale(1)" },
|
|
676
|
-
], { duration, easing:
|
|
677
|
+
], { duration, easing: resolveEasing(submenu), fill: "forwards" });
|
|
677
678
|
}
|
|
678
679
|
/**
|
|
679
680
|
* Plays an `options`-sourced submenu's fade/scale/slide-out, then
|
|
@@ -693,7 +694,7 @@ let EunomiaDropdownButton = class EunomiaDropdownButton extends LitElement {
|
|
|
693
694
|
const animation = submenu.animate([
|
|
694
695
|
{ opacity: 1, transform: "translate(0, 0) scale(1)" },
|
|
695
696
|
{ opacity: 0, transform: `translate(${offsetX}, 0) scale(0.96)` },
|
|
696
|
-
], { duration, easing:
|
|
697
|
+
], { duration, easing: resolveEasing(submenu), fill: "forwards" });
|
|
697
698
|
this.submenuAnimation = animation;
|
|
698
699
|
animation.finished
|
|
699
700
|
.then(() => {
|
|
@@ -756,7 +757,7 @@ let EunomiaDropdownButton = class EunomiaDropdownButton extends LitElement {
|
|
|
756
757
|
if (li) {
|
|
757
758
|
this.positionSubmenu(li, submenu);
|
|
758
759
|
}
|
|
759
|
-
this.updateComplete.then(() => {
|
|
760
|
+
void this.updateComplete.then(() => {
|
|
760
761
|
const subEntries = Array.from(submenu.querySelectorAll(":scope > li"));
|
|
761
762
|
focusEntryAt(subEntries, 0);
|
|
762
763
|
});
|
|
@@ -773,7 +774,7 @@ let EunomiaDropdownButton = class EunomiaDropdownButton extends LitElement {
|
|
|
773
774
|
*/
|
|
774
775
|
closeSubmenuAndRefocus(option) {
|
|
775
776
|
this.closeSubmenu();
|
|
776
|
-
this.updateComplete.then(() => {
|
|
777
|
+
void this.updateComplete.then(() => {
|
|
777
778
|
const li = this.menuEl?.querySelector(`li[data-key="${CSS.escape(option.key)}"]`);
|
|
778
779
|
li?.focus();
|
|
779
780
|
});
|
|
@@ -83,8 +83,9 @@ const base = css `
|
|
|
83
83
|
outline: 2px solid transparent;
|
|
84
84
|
outline-offset: -2px;
|
|
85
85
|
transition:
|
|
86
|
-
background
|
|
87
|
-
outline-color
|
|
86
|
+
background var(--eun-duration-xl, 300ms) var(--eun-easing-out, ease-out),
|
|
87
|
+
outline-color var(--eun-duration-xl, 300ms)
|
|
88
|
+
var(--eun-easing-out, ease-out);
|
|
88
89
|
}
|
|
89
90
|
#menu li:hover:not([aria-disabled="true"]),
|
|
90
91
|
#menu li:focus-visible:not([aria-disabled="true"]),
|
|
@@ -8,6 +8,7 @@ import { customElement, property, query, queryAssignedElements, state, } from "l
|
|
|
8
8
|
import { html, LitElement, nothing } from "lit";
|
|
9
9
|
import { DROPDOWN_MENU_CONTAINER_SELECTOR, dropdownMenuAnimationDuration, focusEntryAt, handleMenuKeydown, positionFlyout, } from "../../../utils/dropdown-menu.utils.js";
|
|
10
10
|
import { dropdownItemStyles } from "./dropdown-item.styles.js";
|
|
11
|
+
import { resolveEasing } from "../../../utils/motion.utils.js";
|
|
11
12
|
/**
|
|
12
13
|
* Tag name of the dropdown-item component.
|
|
13
14
|
*/
|
|
@@ -91,14 +92,12 @@ let EunomiaDropdownItem = class EunomiaDropdownItem extends LitElement {
|
|
|
91
92
|
this.toggleAttribute("data-submenu-open", true);
|
|
92
93
|
this.container?.notifySubmenuOpened(this.key);
|
|
93
94
|
this.positionOwnSubmenu();
|
|
94
|
-
this.updateComplete.then(() => focusEntryAt(this.submenuItems, 0));
|
|
95
|
+
void this.updateComplete.then(() => focusEntryAt(this.submenuItems, 0));
|
|
95
96
|
return;
|
|
96
97
|
}
|
|
97
98
|
this.setAttribute("aria-expanded", "false");
|
|
98
99
|
this.toggleAttribute("data-submenu-open", false);
|
|
99
100
|
this.container?.notifySubmenuClosed(this.key);
|
|
100
|
-
// Cascade the close to this item's own open child, if any — mirrors
|
|
101
|
-
// `eun-dropdown-button`'s root-menu-close handling of a submenu.
|
|
102
101
|
this.closeOtherSubmenus(null);
|
|
103
102
|
};
|
|
104
103
|
/**
|
|
@@ -139,7 +138,7 @@ let EunomiaDropdownItem = class EunomiaDropdownItem extends LitElement {
|
|
|
139
138
|
onClose: parentItem
|
|
140
139
|
? () => {
|
|
141
140
|
parentItem.closeSubmenu();
|
|
142
|
-
this.updateComplete.then(() => parentItem.focus());
|
|
141
|
+
void this.updateComplete.then(() => parentItem.focus());
|
|
143
142
|
}
|
|
144
143
|
: undefined,
|
|
145
144
|
onTabAway: () => this.tabAway(),
|
|
@@ -293,7 +292,7 @@ let EunomiaDropdownItem = class EunomiaDropdownItem extends LitElement {
|
|
|
293
292
|
this.submenuAnimation = submenu.animate([
|
|
294
293
|
{ opacity: 0, transform: `translate(${offsetX}, 0) scale(0.96)` },
|
|
295
294
|
{ opacity: 1, transform: "translate(0, 0) scale(1)" },
|
|
296
|
-
], { duration, easing:
|
|
295
|
+
], { duration, easing: resolveEasing(submenu), fill: "forwards" });
|
|
297
296
|
}
|
|
298
297
|
/**
|
|
299
298
|
* Closes this item's own submenu, if open. Part of the
|
|
@@ -332,7 +331,7 @@ let EunomiaDropdownItem = class EunomiaDropdownItem extends LitElement {
|
|
|
332
331
|
const animation = submenu.animate([
|
|
333
332
|
{ opacity: 1, transform: "translate(0, 0) scale(1)" },
|
|
334
333
|
{ opacity: 0, transform: `translate(${offsetX}, 0) scale(0.96)` },
|
|
335
|
-
], { duration, easing:
|
|
334
|
+
], { duration, easing: resolveEasing(submenu), fill: "forwards" });
|
|
336
335
|
this.submenuAnimation = animation;
|
|
337
336
|
animation.finished
|
|
338
337
|
.then(() => {
|
|
@@ -33,8 +33,9 @@ const base = css `
|
|
|
33
33
|
outline: 2px solid transparent;
|
|
34
34
|
outline-offset: -2px;
|
|
35
35
|
transition:
|
|
36
|
-
background
|
|
37
|
-
outline-color
|
|
36
|
+
background var(--eun-duration-xl, 300ms) var(--eun-easing-out, ease-out),
|
|
37
|
+
outline-color var(--eun-duration-xl, 300ms)
|
|
38
|
+
var(--eun-easing-out, ease-out);
|
|
38
39
|
}
|
|
39
40
|
:host(:hover:not([aria-disabled="true"])) .content,
|
|
40
41
|
:host(:focus-visible:not([aria-disabled="true"])) .content,
|
|
@@ -21,7 +21,7 @@ const base = css `
|
|
|
21
21
|
:host {
|
|
22
22
|
--_focusIndicator: var(--fab-focus-outline, var(--_solid));
|
|
23
23
|
--_hoverFromCustom: color-mix(in srgb, var(--fab-background) 88%, black);
|
|
24
|
-
--_transition: var(--fab-transition,
|
|
24
|
+
--_transition: var(--fab-transition, var(--eun-duration-xl, 300ms));
|
|
25
25
|
--_gap: var(--eun-space-xs, 4px);
|
|
26
26
|
--_circleSize: 56px;
|
|
27
27
|
--icon-size: 24px;
|
|
@@ -32,9 +32,9 @@ const base = css `
|
|
|
32
32
|
z-index: 0;
|
|
33
33
|
border-radius: var(--eun-border-radius-xl);
|
|
34
34
|
transition:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
outline var(--eun-duration-xl, 300ms) var(--eun-easing-out, ease-out),
|
|
36
|
+
outline-offset var(--eun-duration-xl, 300ms)
|
|
37
|
+
var(--eun-easing-out, ease-out);
|
|
38
38
|
}
|
|
39
39
|
:host(:focus-visible) {
|
|
40
40
|
outline-offset: 2px;
|
|
@@ -96,9 +96,10 @@ const base = css `
|
|
|
96
96
|
outline: 2px solid transparent;
|
|
97
97
|
box-shadow: var(--eun-shadow-m, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
|
|
98
98
|
transition:
|
|
99
|
-
background-color
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
background-color var(--eun-duration-s, 150ms)
|
|
100
|
+
var(--eun-easing-default, ease),
|
|
101
|
+
box-shadow var(--eun-duration-s, 150ms) var(--eun-easing-default, ease),
|
|
102
|
+
outline var(--eun-duration-m, 200ms) var(--eun-easing-out, ease-out);
|
|
102
103
|
}
|
|
103
104
|
#fab slot[name="icon"] {
|
|
104
105
|
display: inline-flex;
|
|
@@ -157,10 +158,10 @@ const slide = css `
|
|
|
157
158
|
justify-content: start;
|
|
158
159
|
outline: 2px solid transparent;
|
|
159
160
|
transition:
|
|
160
|
-
background
|
|
161
|
-
box-shadow
|
|
162
|
-
outline
|
|
163
|
-
grid-template-columns ease var(--_transition);
|
|
161
|
+
background var(--eun-duration-xl, 300ms) var(--eun-easing-out, ease-out),
|
|
162
|
+
box-shadow var(--eun-duration-xl, 300ms) var(--eun-easing-out, ease-out),
|
|
163
|
+
outline var(--eun-duration-xl, 300ms) var(--eun-easing-out, ease-out),
|
|
164
|
+
grid-template-columns var(--eun-easing-default, ease) var(--_transition);
|
|
164
165
|
}
|
|
165
166
|
:host([slide]:not([loading])) #fab slot[name="icon"] {
|
|
166
167
|
grid-column: 1;
|
|
@@ -174,8 +175,8 @@ const slide = css `
|
|
|
174
175
|
margin-inline-start: 0;
|
|
175
176
|
opacity: 0;
|
|
176
177
|
transition:
|
|
177
|
-
margin-inline-start ease var(--_transition),
|
|
178
|
-
opacity ease var(--_transition);
|
|
178
|
+
margin-inline-start var(--eun-easing-default, ease) var(--_transition),
|
|
179
|
+
opacity var(--eun-easing-default, ease) var(--_transition);
|
|
179
180
|
}
|
|
180
181
|
:host([slide]:not([loading]):hover) #fab,
|
|
181
182
|
:host([slide]:not([loading]):focus-visible) #fab,
|
|
@@ -20,15 +20,15 @@ declare const EunomiaLink_base: import("../../../utils/constructor.type.js").Con
|
|
|
20
20
|
* it the same way, through the anchor's aria-description.
|
|
21
21
|
*
|
|
22
22
|
* @slot [default] - The link content, or a native anchor carrying the href itself when href is unset
|
|
23
|
-
* @slot [icon] - Replaces the leading icon entirely with any content, not just an icon element. Falls back to icon when empty
|
|
23
|
+
* @slot [icon] - Replaces the leading icon entirely with any content, not just an icon element, such as an icon from another set. Falls back to icon when empty. The icon is decorative : the focus ring surrounds the text only
|
|
24
24
|
* @prop {string} href - The destination URL
|
|
25
25
|
* @prop {'_blank' | '_self' | '_parent' | '_top'} [target='_self'] - Where to open the linked URL. Opening in a new tab automatically adds an external link icon at the end and announces it to assistive technology, in the current locale
|
|
26
26
|
* @prop {import('../../content/icon/icon.type.js').EunomiaIconName} icon - An optional decorative icon displayed to the left of the link
|
|
27
|
-
* @prop {'light' | 'dark'} [theme='light'] - The text color theme. Use dark on a dark background
|
|
27
|
+
* @prop {'light' | 'dark'} [theme='light'] - The text color theme. Use dark on a dark background, such as --eun-surface-inverse, where it takes the --eun-text-on-inverse colors
|
|
28
28
|
* @prop {'auto' | 'off' | 'on'} [visitedStyle='auto'] - Controls the visited state color. Auto follows the browser's real navigation history, off always renders as unvisited, and on always renders as visited
|
|
29
29
|
* @prop {boolean} [current=false] - Marks the link as the current page: it renders with aria-current="page" and keeps the --link-color-current color in every state (hover, focus, visited), for example an active item in a navigation
|
|
30
30
|
* @prop {string} [locale] - The locale used to resolve the "opens in a new tab" announcement. Defaults to the one set with setDefaultLocale, English otherwise
|
|
31
|
-
* @attr {string} aria-label - An accessible label that overrides the link content. When the link also opens in a new tab, a note announcing it is appended automatically
|
|
31
|
+
* @attr {string} aria-label - An accessible label that overrides the link content. When the link also opens in a new tab, a note announcing it is appended automatically. Ignored with a slotted anchor, which takes it instead
|
|
32
32
|
* @fires {NavigationEvent} eunnavigate - Fired before following the link, so a client-side router can intercept the navigation. Cancelable
|
|
33
33
|
* @cssprop [--link-color] - Sets the color of the link
|
|
34
34
|
* @cssprop [--link-color-hover] - Sets the color of the link on hover
|
|
@@ -39,7 +39,11 @@ declare const EunomiaLink_base: import("../../../utils/constructor.type.js").Con
|
|
|
39
39
|
* @cssprop [--link-line-height] - Sets the line-height of the link. Inherits the surrounding text's line-height when unset
|
|
40
40
|
* @cssprop [--link-text-decoration] - Sets the text decoration of the link, for example none, when embedding a link inside an already distinct interactive surface such as a card
|
|
41
41
|
* @cssprop [--link-icon-color] - Sets the color of the leading icon, independently of the link text color
|
|
42
|
+
* @cssprop [--link-icon-size] - Sets the size of the leading icon, 18px by default. Also sets the font size of the icon slot, so an icon from another set sized in em follows it
|
|
43
|
+
* @cssprop [--link-transition-duration] - Sets the duration of the color, background and focus transitions. Defaults to --eun-duration-xl
|
|
42
44
|
* @cssprop [--link-padding] - Sets padding around the link, for example to give its focus outline room to breathe. Defaults to 0, flush with the text
|
|
45
|
+
* @cssprop [--link-padding-block] - Sets the vertical padding, as one length applied to both sides. Ignored when --link-padding is set
|
|
46
|
+
* @cssprop [--link-padding-inline] - Sets the horizontal padding, as one length applied to both sides. Ignored when --link-padding is set
|
|
43
47
|
* @cssprop [--link-background] - Sets a persistent background color behind the link. Defaults to transparent
|
|
44
48
|
* @cssprop [--link-background-focus] - Sets a background color shown while the link is keyboard-focused, falling back to --link-background when unset
|
|
45
49
|
* @cssprop [--link-border-radius] - Sets the corner radius of the link's own background/focus outline box
|
|
@@ -43,15 +43,15 @@ export const EunomiaLinkTagName = "eun-link";
|
|
|
43
43
|
* it the same way, through the anchor's aria-description.
|
|
44
44
|
*
|
|
45
45
|
* @slot [default] - The link content, or a native anchor carrying the href itself when href is unset
|
|
46
|
-
* @slot [icon] - Replaces the leading icon entirely with any content, not just an icon element. Falls back to icon when empty
|
|
46
|
+
* @slot [icon] - Replaces the leading icon entirely with any content, not just an icon element, such as an icon from another set. Falls back to icon when empty. The icon is decorative : the focus ring surrounds the text only
|
|
47
47
|
* @prop {string} href - The destination URL
|
|
48
48
|
* @prop {'_blank' | '_self' | '_parent' | '_top'} [target='_self'] - Where to open the linked URL. Opening in a new tab automatically adds an external link icon at the end and announces it to assistive technology, in the current locale
|
|
49
49
|
* @prop {import('../../content/icon/icon.type.js').EunomiaIconName} icon - An optional decorative icon displayed to the left of the link
|
|
50
|
-
* @prop {'light' | 'dark'} [theme='light'] - The text color theme. Use dark on a dark background
|
|
50
|
+
* @prop {'light' | 'dark'} [theme='light'] - The text color theme. Use dark on a dark background, such as --eun-surface-inverse, where it takes the --eun-text-on-inverse colors
|
|
51
51
|
* @prop {'auto' | 'off' | 'on'} [visitedStyle='auto'] - Controls the visited state color. Auto follows the browser's real navigation history, off always renders as unvisited, and on always renders as visited
|
|
52
52
|
* @prop {boolean} [current=false] - Marks the link as the current page: it renders with aria-current="page" and keeps the --link-color-current color in every state (hover, focus, visited), for example an active item in a navigation
|
|
53
53
|
* @prop {string} [locale] - The locale used to resolve the "opens in a new tab" announcement. Defaults to the one set with setDefaultLocale, English otherwise
|
|
54
|
-
* @attr {string} aria-label - An accessible label that overrides the link content. When the link also opens in a new tab, a note announcing it is appended automatically
|
|
54
|
+
* @attr {string} aria-label - An accessible label that overrides the link content. When the link also opens in a new tab, a note announcing it is appended automatically. Ignored with a slotted anchor, which takes it instead
|
|
55
55
|
* @fires {NavigationEvent} eunnavigate - Fired before following the link, so a client-side router can intercept the navigation. Cancelable
|
|
56
56
|
* @cssprop [--link-color] - Sets the color of the link
|
|
57
57
|
* @cssprop [--link-color-hover] - Sets the color of the link on hover
|
|
@@ -62,7 +62,11 @@ export const EunomiaLinkTagName = "eun-link";
|
|
|
62
62
|
* @cssprop [--link-line-height] - Sets the line-height of the link. Inherits the surrounding text's line-height when unset
|
|
63
63
|
* @cssprop [--link-text-decoration] - Sets the text decoration of the link, for example none, when embedding a link inside an already distinct interactive surface such as a card
|
|
64
64
|
* @cssprop [--link-icon-color] - Sets the color of the leading icon, independently of the link text color
|
|
65
|
+
* @cssprop [--link-icon-size] - Sets the size of the leading icon, 18px by default. Also sets the font size of the icon slot, so an icon from another set sized in em follows it
|
|
66
|
+
* @cssprop [--link-transition-duration] - Sets the duration of the color, background and focus transitions. Defaults to --eun-duration-xl
|
|
65
67
|
* @cssprop [--link-padding] - Sets padding around the link, for example to give its focus outline room to breathe. Defaults to 0, flush with the text
|
|
68
|
+
* @cssprop [--link-padding-block] - Sets the vertical padding, as one length applied to both sides. Ignored when --link-padding is set
|
|
69
|
+
* @cssprop [--link-padding-inline] - Sets the horizontal padding, as one length applied to both sides. Ignored when --link-padding is set
|
|
66
70
|
* @cssprop [--link-background] - Sets a persistent background color behind the link. Defaults to transparent
|
|
67
71
|
* @cssprop [--link-background-focus] - Sets a background color shown while the link is keyboard-focused, falling back to --link-background when unset
|
|
68
72
|
* @cssprop [--link-border-radius] - Sets the corner radius of the link's own background/focus outline box
|
|
@@ -286,9 +290,7 @@ let EunomiaLink = class EunomiaLink extends LocalizableMixin(LitElement) {
|
|
|
286
290
|
class=${classMap({ "has-icon": hasIcon })}
|
|
287
291
|
@slotchange=${this.handleIconSlotChange}
|
|
288
292
|
>
|
|
289
|
-
${this.icon
|
|
290
|
-
? html `<eun-icon name=${this.icon} size="18"></eun-icon>`
|
|
291
|
-
: nothing}
|
|
293
|
+
${this.icon ? html `<eun-icon name=${this.icon}></eun-icon>` : nothing}
|
|
292
294
|
</slot>`;
|
|
293
295
|
if (this.slottedAnchor) {
|
|
294
296
|
return html `
|
|
@@ -321,7 +323,9 @@ let EunomiaLink = class EunomiaLink extends LocalizableMixin(LitElement) {
|
|
|
321
323
|
@blur=${this.handleBlur}
|
|
322
324
|
>
|
|
323
325
|
${iconSlot}
|
|
324
|
-
<
|
|
326
|
+
<span id="label"
|
|
327
|
+
><slot @slotchange=${this.handleDefaultSlotChange}></slot
|
|
328
|
+
></span>
|
|
325
329
|
${isBlank && !this.ariaLabel
|
|
326
330
|
? html `<span class="sr-only"> ${newTabHint}</span>`
|
|
327
331
|
: nothing}
|
|
@@ -13,7 +13,11 @@ import { css } from "lit";
|
|
|
13
13
|
* [--link-color-current] - Set a custom link color for the current page link (the `current` attribute). It stays this color on hover, focus and visited states
|
|
14
14
|
* [--link-text-decoration] - Set a custom text-decoration for the link
|
|
15
15
|
* [--link-icon-color] - Set a custom color for the leading icon, independent from the link text color
|
|
16
|
+
* [--link-icon-size] - Set a custom size for the leading icon, 18px by default. Also the font size of the icon slot, for an icon sized in em
|
|
17
|
+
* [--link-transition-duration] - Set a custom duration for the link transitions, --eun-duration-xl by default
|
|
16
18
|
* [--link-padding] - Set custom padding around the link, for example to give its focus outline room to breathe. Defaults to 0, flush with the text
|
|
19
|
+
* [--link-padding-block] - Set a custom vertical padding, as one length applied to both sides. Ignored when --link-padding is set
|
|
20
|
+
* [--link-padding-inline] - Set a custom horizontal padding, as one length applied to both sides. Ignored when --link-padding is set
|
|
17
21
|
* [--link-background] - Set a persistent background color behind the link. Defaults to transparent
|
|
18
22
|
* [--link-background-focus] - Set a background color shown while the link is keyboard-focused, falling back to --link-background when unset
|
|
19
23
|
* [--link-border-radius] - Set a custom corner radius for the link's own background/focus outline box
|
|
@@ -42,6 +46,7 @@ const base = css `
|
|
|
42
46
|
var(--eun-color-primary-500, #3d6fff)
|
|
43
47
|
);
|
|
44
48
|
--_textDecoration: var(--link-text-decoration, underline);
|
|
49
|
+
--_duration: var(--link-transition-duration, var(--eun-duration-xl, 300ms));
|
|
45
50
|
--_iconColor: var(--link-icon-color, var(--_color));
|
|
46
51
|
--icon-color: var(--_iconColor);
|
|
47
52
|
font-size: var(--link-font-size, unset);
|
|
@@ -50,9 +55,12 @@ const base = css `
|
|
|
50
55
|
align-items: center;
|
|
51
56
|
}
|
|
52
57
|
:host([theme="dark"]) {
|
|
53
|
-
--_color: var(
|
|
54
|
-
|
|
55
|
-
|
|
58
|
+
--_color: var(
|
|
59
|
+
--link-color,
|
|
60
|
+
var(--eun-text-on-inverse-secondary, rgba(255, 255, 255, 0.7))
|
|
61
|
+
);
|
|
62
|
+
--_colorHover: var(--link-color-hover, var(--eun-text-on-inverse, #fff));
|
|
63
|
+
--_colorFocus: var(--link-color-focus, var(--eun-text-on-inverse, #fff));
|
|
56
64
|
--_colorVisited: var(
|
|
57
65
|
--link-color-visited,
|
|
58
66
|
var(--eun-color-purple-300, #bea0ed)
|
|
@@ -65,6 +73,15 @@ const base = css `
|
|
|
65
73
|
display: inline-flex;
|
|
66
74
|
flex-shrink: 0;
|
|
67
75
|
}
|
|
76
|
+
slot[name="icon"] {
|
|
77
|
+
--icon-size: var(--link-icon-size, 18px);
|
|
78
|
+
font-size: var(--link-icon-size, inherit);
|
|
79
|
+
}
|
|
80
|
+
#label {
|
|
81
|
+
border-radius: var(--link-border-radius, var(--eun-border-radius-m, 8px));
|
|
82
|
+
outline: 2px solid transparent;
|
|
83
|
+
transition: outline var(--_duration) var(--eun-easing-out, ease-out);
|
|
84
|
+
}
|
|
68
85
|
#external-link-icon {
|
|
69
86
|
display: inline-flex;
|
|
70
87
|
flex-shrink: 0;
|
|
@@ -75,20 +92,23 @@ const base = css `
|
|
|
75
92
|
display: inline-flex;
|
|
76
93
|
align-items: center;
|
|
77
94
|
gap: var(--eun-space-s, 8px);
|
|
78
|
-
padding: var(
|
|
95
|
+
padding: var(
|
|
96
|
+
--link-padding,
|
|
97
|
+
var(--link-padding-block, 0) var(--link-padding-inline, 0)
|
|
98
|
+
);
|
|
79
99
|
background: var(--link-background, transparent);
|
|
80
100
|
color: var(--_color);
|
|
81
101
|
font: inherit;
|
|
82
102
|
text-decoration: var(--_textDecoration);
|
|
83
|
-
text-wrap: pretty;
|
|
103
|
+
text-wrap-style: pretty;
|
|
84
104
|
border-radius: var(--link-border-radius, var(--eun-border-radius-m, 8px));
|
|
85
105
|
cursor: pointer;
|
|
86
106
|
outline: 2px solid transparent;
|
|
87
107
|
transition:
|
|
88
|
-
color
|
|
89
|
-
background-color
|
|
90
|
-
outline
|
|
91
|
-
text-decoration-color
|
|
108
|
+
color var(--_duration) var(--eun-easing-out, ease-out),
|
|
109
|
+
background-color var(--_duration) var(--eun-easing-out, ease-out),
|
|
110
|
+
outline var(--_duration) var(--eun-easing-out, ease-out),
|
|
111
|
+
text-decoration-color var(--_duration) var(--eun-easing-out, ease-out);
|
|
92
112
|
}
|
|
93
113
|
#link:visited {
|
|
94
114
|
color: var(--_colorVisited);
|
|
@@ -129,6 +149,18 @@ const base = css `
|
|
|
129
149
|
outline-offset: 2px;
|
|
130
150
|
--icon-color: var(--link-icon-color, var(--_colorHover));
|
|
131
151
|
}
|
|
152
|
+
#link.has-icon:focus-visible {
|
|
153
|
+
background: var(--link-background, transparent);
|
|
154
|
+
outline-color: transparent;
|
|
155
|
+
}
|
|
156
|
+
#link.has-icon:focus-visible #label {
|
|
157
|
+
background: var(
|
|
158
|
+
--link-background-focus,
|
|
159
|
+
var(--link-background, transparent)
|
|
160
|
+
);
|
|
161
|
+
outline-color: var(--_colorFocus);
|
|
162
|
+
outline-offset: 2px;
|
|
163
|
+
}
|
|
132
164
|
|
|
133
165
|
:host([current]) #link,
|
|
134
166
|
:host([current]) #link:visited,
|
|
@@ -155,12 +187,12 @@ const base = css `
|
|
|
155
187
|
color: var(--_color);
|
|
156
188
|
font: inherit;
|
|
157
189
|
text-decoration: var(--_textDecoration);
|
|
158
|
-
text-wrap: pretty;
|
|
190
|
+
text-wrap-style: pretty;
|
|
159
191
|
border-radius: var(--link-border-radius, var(--eun-border-radius-m, 8px));
|
|
160
192
|
transition:
|
|
161
|
-
color
|
|
162
|
-
background-color
|
|
163
|
-
text-decoration-color
|
|
193
|
+
color var(--_duration) var(--eun-easing-out, ease-out),
|
|
194
|
+
background-color var(--_duration) var(--eun-easing-out, ease-out),
|
|
195
|
+
text-decoration-color var(--_duration) var(--eun-easing-out, ease-out);
|
|
164
196
|
}
|
|
165
197
|
::slotted(a:visited) {
|
|
166
198
|
color: var(--_colorVisited);
|
|
@@ -195,9 +227,28 @@ const base = css `
|
|
|
195
227
|
::slotted(a:focus-visible) {
|
|
196
228
|
color: var(--_colorHover) !important;
|
|
197
229
|
text-decoration: none;
|
|
198
|
-
outline: none
|
|
230
|
+
outline: none;
|
|
231
|
+
}
|
|
232
|
+
#link.has-icon ::slotted(a) {
|
|
233
|
+
outline: 2px solid transparent;
|
|
234
|
+
transition:
|
|
235
|
+
color var(--_duration) var(--eun-easing-out, ease-out),
|
|
236
|
+
background-color var(--_duration) var(--eun-easing-out, ease-out),
|
|
237
|
+
outline var(--_duration) var(--eun-easing-out, ease-out),
|
|
238
|
+
text-decoration-color var(--_duration) var(--eun-easing-out, ease-out);
|
|
239
|
+
}
|
|
240
|
+
#link.has-icon ::slotted(a:focus-visible) {
|
|
241
|
+
background: var(
|
|
242
|
+
--link-background-focus,
|
|
243
|
+
var(--link-background, transparent)
|
|
244
|
+
);
|
|
245
|
+
outline-color: var(--_colorFocus);
|
|
246
|
+
outline-offset: 2px;
|
|
247
|
+
}
|
|
248
|
+
:host(:state(focus-visible)) #link.slotted-link.has-icon {
|
|
249
|
+
--icon-color: var(--link-icon-color, var(--_colorHover));
|
|
199
250
|
}
|
|
200
|
-
:host(:state(focus-visible)) #link.slotted-link {
|
|
251
|
+
:host(:state(focus-visible)) #link.slotted-link:not(.has-icon) {
|
|
201
252
|
background: var(
|
|
202
253
|
--link-background-focus,
|
|
203
254
|
var(--link-background, transparent)
|
|
@@ -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);
|
|
@@ -49,9 +49,9 @@ export const buttonPaletteStyles = css `
|
|
|
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
57
|
:host([color="critical"]) {
|
|
@@ -60,9 +60,9 @@ export const buttonPaletteStyles = css `
|
|
|
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
68
|
:host([color="success"]) {
|
|
@@ -71,9 +71,9 @@ export const buttonPaletteStyles = css `
|
|
|
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
79
|
:host([color="warning"]) {
|
|
@@ -82,9 +82,9 @@ export const buttonPaletteStyles = css `
|
|
|
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
90
|
:host([color="medium"]) {
|
|
@@ -87,6 +87,8 @@ declare const EunomiaToggleGroup_base: import("../../../utils/constructor.type.j
|
|
|
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
|
|
92
94
|
* @cssprop [--toggle-group-box-shadow] - Sets a box shadow on the track itself, for every appearance. None by default
|
|
@@ -78,6 +78,8 @@ export const EunomiaToggleGroupTagName = "eun-toggle-group";
|
|
|
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
|
|
83
85
|
* @cssprop [--toggle-group-box-shadow] - Sets a box shadow on the track itself, for every appearance. None by default
|
|
@@ -163,7 +165,7 @@ let EunomiaToggleGroup = class EunomiaToggleGroup extends NavigationOverflowMixi
|
|
|
163
165
|
* @private
|
|
164
166
|
*/
|
|
165
167
|
this.handleSlotChange = () => {
|
|
166
|
-
this.settleAndSync(false);
|
|
168
|
+
void this.settleAndSync(false);
|
|
167
169
|
};
|
|
168
170
|
}
|
|
169
171
|
/**
|
|
@@ -212,7 +214,7 @@ let EunomiaToggleGroup = class EunomiaToggleGroup extends NavigationOverflowMixi
|
|
|
212
214
|
}
|
|
213
215
|
firstUpdated(changedProperties) {
|
|
214
216
|
super.firstUpdated(changedProperties);
|
|
215
|
-
this.settleAndSync(false)
|
|
217
|
+
void this.settleAndSync(false)
|
|
216
218
|
.then(() => Promise.all((this.items ?? []).map((item) => this.whenItemReady(item))))
|
|
217
219
|
.then(() => {
|
|
218
220
|
requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
@@ -463,7 +465,7 @@ let EunomiaToggleGroup = class EunomiaToggleGroup extends NavigationOverflowMixi
|
|
|
463
465
|
};
|
|
464
466
|
const active = this.entries.find((entry) => entry.value === this.value[0]);
|
|
465
467
|
if (active && active.element.tagName !== "BUTTON") {
|
|
466
|
-
this.whenItemReady(active.element).then(settle);
|
|
468
|
+
void this.whenItemReady(active.element).then(settle);
|
|
467
469
|
return;
|
|
468
470
|
}
|
|
469
471
|
settle();
|
|
@@ -10,6 +10,8 @@
|
|
|
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`
|
|
15
17
|
* [--toggle-group-box-shadow] - Set a custom box shadow on the track itself, for every appearance, none by default
|