@eunomia/elements 1.0.0-beta.2 → 1.0.0-beta.4
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/cdn/components/chunks/chunk-2JLDJFYD.js +48 -0
- package/dist/cdn/components/chunks/chunk-4MXL6PZC.js +124 -0
- package/dist/cdn/components/chunks/{chunk-32KRPOPV.js → chunk-5XJGYXW7.js} +6 -6
- package/dist/cdn/components/chunks/{chunk-O2HNWH65.js → chunk-5XJLIHAU.js} +7 -7
- package/dist/cdn/components/chunks/{chunk-5GF2Q3NR.js → chunk-74AOAB4X.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-WYMBUIKX.js → chunk-A6KGFALA.js} +4 -4
- package/dist/cdn/components/chunks/chunk-BMQOI7HX.js +371 -0
- package/dist/cdn/components/chunks/{chunk-LJYTHDZP.js → chunk-D2M4BV5Y.js} +6 -6
- package/dist/cdn/components/chunks/{chunk-NEYBPT3D.js → chunk-EJIX2D4Z.js} +2 -2
- package/dist/cdn/components/chunks/{chunk-BYBUXKXC.js → chunk-EOWBYZV7.js} +2 -2
- package/dist/cdn/components/chunks/chunk-EST3M4AO.js +1 -0
- package/dist/cdn/components/chunks/{chunk-AQQMW353.js → chunk-GSJEJLFA.js} +3 -3
- package/dist/cdn/components/chunks/chunk-GU6BVMFJ.js +1 -0
- package/dist/cdn/components/chunks/{chunk-5RCCZVFZ.js → chunk-IJ5WFMK4.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-RWONCXTF.js → chunk-KVYUNKUO.js} +2 -2
- package/dist/cdn/components/chunks/chunk-LGLQ36QB.js +16 -0
- package/dist/cdn/components/chunks/{chunk-74HHV4CX.js → chunk-NHFWATVN.js} +2 -2
- package/dist/cdn/components/chunks/chunk-OAULRKHQ.js +38 -0
- package/dist/cdn/components/chunks/chunk-P32B7BFD.js +118 -0
- package/dist/cdn/components/chunks/{chunk-ZPFHTJSS.js → chunk-PCM7D3YF.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-ABYEBP57.js → chunk-PED5ATYN.js} +11 -8
- package/dist/cdn/components/chunks/{chunk-ON42P6FI.js → chunk-RJCJXB7Y.js} +5 -5
- package/dist/cdn/components/chunks/{chunk-5C7YND22.js → chunk-S2UCEWNG.js} +8 -8
- package/dist/cdn/components/chunks/{chunk-7WTSHE7M.js → chunk-SIHZFOTK.js} +9 -9
- package/dist/cdn/components/chunks/{chunk-6UPI7GHJ.js → chunk-UAGCQF23.js} +7 -7
- package/dist/cdn/components/chunks/{chunk-6IILPCSQ.js → chunk-X2AUBZD2.js} +3 -3
- package/dist/cdn/components/chunks/chunk-YGUJJ25C.js +263 -0
- package/dist/cdn/components/chunks/chunk-YYCEPZUN.js +1 -0
- package/dist/cdn/components/eun-alert.js +65 -45
- package/dist/cdn/components/eun-animate.js +178 -2
- package/dist/cdn/components/eun-badge.js +1 -1
- package/dist/cdn/components/eun-breadcrumb-item.js +14 -10
- package/dist/cdn/components/eun-breadcrumb.js +11 -7
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-calendar.js +16 -16
- package/dist/cdn/components/eun-card.js +29 -12
- package/dist/cdn/components/eun-carousel.js +36 -28
- package/dist/cdn/components/eun-check-card.js +3 -3
- package/dist/cdn/components/eun-checkbox-list.js +3 -3
- package/dist/cdn/components/eun-checkbox.js +1 -1
- package/dist/cdn/components/eun-chip.js +45 -210
- package/dist/cdn/components/eun-collapse.js +20 -26
- package/dist/cdn/components/eun-color-picker.js +28 -28
- package/dist/cdn/components/eun-counter.js +11 -11
- package/dist/cdn/components/eun-date-picker.js +50 -50
- package/dist/cdn/components/eun-drawer.js +3 -3
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-dropdown-item.js +6 -6
- package/dist/cdn/components/eun-fab.js +31 -53
- package/dist/cdn/components/eun-icon.js +1 -1
- package/dist/cdn/components/eun-image-card.js +18 -11
- package/dist/cdn/components/eun-image-carousel.js +16 -16
- package/dist/cdn/components/eun-infinite-list.js +1 -1
- package/dist/cdn/components/eun-input-file.js +20 -20
- package/dist/cdn/components/eun-input-phone.js +14 -14
- 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 +29 -11
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +6 -6
- package/dist/cdn/components/eun-pagination.js +3 -3
- package/dist/cdn/components/eun-password-strength.js +9 -6
- package/dist/cdn/components/eun-progress-bar.js +13 -13
- package/dist/cdn/components/eun-radio-card.js +2 -2
- package/dist/cdn/components/eun-radio-list.js +3 -3
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-scheduler-event-editor.js +2 -2
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +10 -10
- package/dist/cdn/components/eun-search.js +7 -7
- package/dist/cdn/components/eun-select.js +39 -18
- package/dist/cdn/components/eun-sidebar.js +10 -10
- package/dist/cdn/components/eun-skeleton.js +1 -1
- package/dist/cdn/components/eun-slider.js +9 -9
- package/dist/cdn/components/eun-sliding-card.js +7 -10
- package/dist/cdn/components/eun-step.js +8 -8
- package/dist/cdn/components/eun-stepper.js +8 -8
- package/dist/cdn/components/eun-switch.js +10 -10
- package/dist/cdn/components/eun-tab-group.js +19 -11
- package/dist/cdn/components/eun-tab-panel.js +1 -1
- 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-cell.js +1 -1
- package/dist/cdn/components/eun-table-column.js +1 -1
- package/dist/cdn/components/eun-table-header.js +1 -1
- package/dist/cdn/components/eun-table-item.js +1 -1
- package/dist/cdn/components/eun-table-skeleton-row.js +1 -1
- package/dist/cdn/components/eun-table.js +3 -3
- package/dist/cdn/components/eun-tag.js +34 -122
- package/dist/cdn/components/eun-textarea.js +28 -28
- package/dist/cdn/components/eun-time-picker.js +25 -25
- package/dist/cdn/components/eun-toast.js +40 -36
- package/dist/cdn/components/eun-toggle-group.js +199 -66
- package/dist/cdn/components/eun-toggle-item.js +42 -25
- package/dist/cdn/components/eun-toggle.js +13 -10
- package/dist/cdn/components/eun-toolbar.js +28 -19
- package/dist/cdn/components/eun-tooltip.js +122 -87
- 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 +1 -0
- package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +71 -0
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +3 -13
- 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 +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +3 -13
- 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 +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +3 -13
- 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 +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +3 -13
- 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 +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +3 -13
- 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 +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +3 -13
- 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 +2 -0
- package/dist/cdn/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/dist/cdn/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +39 -0
- package/dist/cdn/styles/tools/mixins/settings/eunomia-border.mixin.scss +3 -3
- package/dist/cdn/styles/tools/mixins/settings/eunomia-font.mixin.scss +12 -12
- package/dist/cdn/styles/tools/mixins/settings/eunomia-radius.mixin.scss +4 -4
- package/dist/components/action/button/button.d.ts +7 -6
- package/dist/components/action/button/button.js +7 -6
- package/dist/components/action/button/button.styles.js +143 -373
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +7 -0
- package/dist/components/action/dropdown-button/dropdown-button.js +11 -0
- package/dist/components/action/dropdown-button/dropdown-button.styles.js +8 -8
- package/dist/components/action/dropdown-button/dropdown-item.styles.js +6 -6
- package/dist/components/action/fab/fab.d.ts +3 -1
- package/dist/components/action/fab/fab.js +3 -1
- package/dist/components/action/fab/fab.styles.js +26 -49
- package/dist/components/action/link/link.d.ts +50 -0
- package/dist/components/action/link/link.js +69 -1
- package/dist/components/action/link/link.styles.js +19 -2
- package/dist/components/action/shared-styles/button-palette.styles.d.ts +27 -0
- package/dist/components/action/shared-styles/button-palette.styles.js +151 -0
- package/dist/components/action/toggle/toggle-group.d.ts +41 -7
- package/dist/components/action/toggle/toggle-group.js +162 -46
- package/dist/components/action/toggle/toggle-group.styles.d.ts +6 -5
- package/dist/components/action/toggle/toggle-group.styles.js +152 -35
- package/dist/components/action/toggle/toggle-item.styles.js +38 -21
- package/dist/components/action/toggle/toggle.d.ts +1 -1
- package/dist/components/action/toggle/toggle.js +2 -2
- package/dist/components/action/toggle/toggle.styles.d.ts +2 -2
- package/dist/components/action/toggle/toggle.styles.js +13 -10
- package/dist/components/alert/alert/alert.d.ts +4 -3
- package/dist/components/alert/alert/alert.js +4 -3
- package/dist/components/alert/alert/alert.styles.js +57 -36
- package/dist/components/alert/drawer/drawer.styles.js +3 -3
- package/dist/components/alert/modal/modal.styles.js +6 -6
- package/dist/components/alert/toast/toast.d.ts +4 -3
- package/dist/components/alert/toast/toast.js +4 -3
- package/dist/components/alert/toast/toast.styles.js +41 -36
- package/dist/components/content/badge/badge.styles.js +1 -1
- package/dist/components/content/card/card.d.ts +4 -4
- package/dist/components/content/card/card.js +4 -4
- package/dist/components/content/card/card.styles.js +27 -10
- package/dist/components/content/card/image-card.d.ts +1 -1
- package/dist/components/content/card/image-card.js +1 -1
- package/dist/components/content/card/image-card.styles.js +17 -10
- package/dist/components/content/card/sliding-card.styles.js +3 -6
- package/dist/components/content/chip/chip.d.ts +16 -7
- package/dist/components/content/chip/chip.js +18 -6
- package/dist/components/content/chip/chip.styles.d.ts +1 -1
- package/dist/components/content/chip/chip.styles.js +43 -210
- package/dist/components/content/collapse/collapse.styles.js +10 -16
- package/dist/components/content/icon/icon.d.ts +48 -5
- package/dist/components/content/icon/icon.js +92 -20
- package/dist/components/content/icon/icon.style.js +1 -1
- package/dist/components/content/image-carousel/image-carousel.styles.js +14 -14
- package/dist/components/content/password-strength/password-strength.styles.js +7 -4
- package/dist/components/content/progress-bar/progress-bar.styles.js +9 -9
- package/dist/components/content/shared-styles/tone-surface.styles.d.ts +31 -0
- package/dist/components/content/shared-styles/tone-surface.styles.js +149 -0
- package/dist/components/content/tag/tag.d.ts +16 -6
- package/dist/components/content/tag/tag.js +19 -6
- package/dist/components/content/tag/tag.styles.d.ts +1 -1
- package/dist/components/content/tag/tag.styles.js +40 -121
- package/dist/components/content/tooltip/tooltip.d.ts +15 -4
- package/dist/components/content/tooltip/tooltip.js +21 -4
- package/dist/components/content/tooltip/tooltip.styles.js +115 -79
- package/dist/components/form/checkbox/check-card.styles.js +2 -2
- package/dist/components/form/checkbox/checkbox-list.d.ts +1 -1
- package/dist/components/form/checkbox/checkbox-list.js +1 -1
- package/dist/components/form/checkbox/checkbox.d.ts +1 -1
- package/dist/components/form/checkbox/checkbox.styles.js +6 -6
- package/dist/components/form/color-picker/color-picker.d.ts +1 -1
- package/dist/components/form/color-picker/color-picker.js +9 -7
- package/dist/components/form/color-picker/color-picker.styles.js +7 -7
- package/dist/components/form/counter/counter.d.ts +1 -1
- package/dist/components/form/counter/counter.js +3 -3
- package/dist/components/form/counter/counter.styles.js +7 -7
- package/dist/components/form/date-picker/date-picker-day-grid.styles.js +2 -2
- package/dist/components/form/date-picker/date-picker-grid.styles.js +15 -15
- package/dist/components/form/date-picker/date-picker-month-grid.styles.js +1 -1
- package/dist/components/form/date-picker/date-picker-year-grid.styles.js +1 -1
- package/dist/components/form/date-picker/date-picker.d.ts +1 -1
- package/dist/components/form/date-picker/date-picker.js +3 -3
- package/dist/components/form/date-picker/date-picker.styles.js +12 -12
- package/dist/components/form/input/input.d.ts +1 -1
- package/dist/components/form/input/input.js +2 -2
- package/dist/components/form/input-file/input-file.d.ts +1 -1
- package/dist/components/form/input-file/input-file.js +5 -5
- package/dist/components/form/input-file/input-file.styles.js +9 -9
- package/dist/components/form/input-phone/input-phone.d.ts +1 -1
- package/dist/components/form/input-phone/input-phone.js +3 -3
- package/dist/components/form/input-phone/input-phone.styles.js +7 -7
- package/dist/components/form/label/label.styles.js +4 -4
- package/dist/components/form/radio/radio-card.styles.js +1 -1
- package/dist/components/form/radio/radio-list.d.ts +1 -1
- package/dist/components/form/radio/radio-list.js +2 -2
- package/dist/components/form/radio/radio.d.ts +1 -1
- package/dist/components/form/radio/radio.styles.js +2 -2
- package/dist/components/form/search/search.styles.js +6 -6
- package/dist/components/form/select/select.d.ts +17 -1
- package/dist/components/form/select/select.js +28 -5
- package/dist/components/form/select/select.styles.js +16 -5
- package/dist/components/form/shared-styles/card.styles.js +1 -1
- package/dist/components/form/shared-styles/field.styles.js +7 -7
- package/dist/components/form/shared-styles/form-labels.styles.js +1 -1
- package/dist/components/form/shared-styles/listbox.styles.js +6 -6
- package/dist/components/form/slider/slider.d.ts +1 -1
- package/dist/components/form/slider/slider.js +2 -2
- package/dist/components/form/slider/slider.styles.js +6 -6
- package/dist/components/form/switch/switch.d.ts +1 -1
- package/dist/components/form/switch/switch.styles.js +8 -8
- package/dist/components/form/textarea/textarea.d.ts +1 -1
- package/dist/components/form/textarea/textarea.js +4 -4
- package/dist/components/form/textarea/textarea.styles.js +6 -6
- package/dist/components/form/time-picker/time-picker-columns.styles.js +6 -6
- package/dist/components/form/time-picker/time-picker-list.styles.js +2 -2
- package/dist/components/form/time-picker/time-picker.d.ts +1 -1
- package/dist/components/form/time-picker/time-picker.js +3 -3
- package/dist/components/form/time-picker/time-picker.styles.js +8 -8
- package/dist/components/layout/animate/animate.d.ts +40 -5
- package/dist/components/layout/animate/animate.js +30 -11
- package/dist/components/layout/animate/animate.styles.d.ts +1 -1
- package/dist/components/layout/animate/animate.styles.js +191 -1
- package/dist/components/loader/loader/loader.styles.js +2 -2
- package/dist/components/loader/skeleton/skeleton.styles.js +8 -5
- package/dist/components/navigation/breadcrumb/breadcrumb-item.d.ts +7 -0
- package/dist/components/navigation/breadcrumb/breadcrumb-item.js +15 -1
- package/dist/components/navigation/breadcrumb/breadcrumb-item.styles.js +3 -3
- package/dist/components/navigation/breadcrumb/breadcrumb.d.ts +1 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.js +7 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.styles.js +3 -3
- package/dist/components/navigation/carousel/carousel.d.ts +40 -6
- package/dist/components/navigation/carousel/carousel.js +61 -12
- package/dist/components/navigation/carousel/carousel.styles.js +20 -8
- package/dist/components/navigation/pagination/pagination.styles.js +3 -3
- package/dist/components/navigation/sidebar/sidebar.styles.js +9 -9
- package/dist/components/navigation/stepper/step.styles.js +8 -8
- package/dist/components/navigation/stepper/stepper.styles.js +8 -8
- package/dist/components/navigation/tabs/tab/tab.styles.js +5 -5
- package/dist/components/navigation/tabs/tab-group/tab-group.d.ts +9 -0
- package/dist/components/navigation/tabs/tab-group/tab-group.js +19 -2
- package/dist/components/navigation/tabs/tab-group/tab-group.styles.js +12 -4
- package/dist/components/navigation/tabs/tab-panel/tab-panel.styles.js +1 -1
- package/dist/components/navigation/toolbar/toolbar.d.ts +24 -0
- package/dist/components/navigation/toolbar/toolbar.js +30 -2
- package/dist/components/navigation/toolbar/toolbar.styles.js +20 -10
- package/dist/events/change.event.d.ts +13 -1
- package/dist/events/change.event.js +2 -1
- package/dist/features/scheduler/calendar/calendar.js +1 -1
- package/dist/features/scheduler/calendar/calendar.styles.js +3 -3
- package/dist/features/scheduler/scheduler/scheduler.styles.js +2 -2
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +2 -2
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.styles.js +2 -2
- package/dist/features/scheduler/shared/scheduler-event-popover.styles.js +4 -4
- package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +1 -1
- package/dist/features/scheduler/shared/scheduler-month-view.styles.js +1 -1
- package/dist/features/scheduler/shared/scheduler-year-view.styles.js +1 -1
- package/dist/features/table/native-table.css +11 -11
- package/dist/features/table/table/table.styles.js +2 -2
- package/dist/features/table/table-action-bar/table-action-bar.styles.js +2 -2
- package/dist/features/table/table-cell/table-cell.styles.js +2 -2
- package/dist/features/table/table-column/table-column.styles.js +3 -3
- package/dist/features/table/table-header/table-header.styles.js +4 -4
- package/dist/features/table/table-item/table-item.styles.js +6 -6
- package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.js +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -3
- package/dist/jsx.d.ts +18 -5
- package/dist/mixins/button.mixin.d.ts +1 -0
- package/dist/mixins/button.mixin.js +10 -0
- package/dist/mixins/check.mixin.d.ts +1 -1
- package/dist/mixins/check.mixin.js +6 -2
- package/dist/mixins/editable.mixin.d.ts +1 -1
- package/dist/mixins/form.mixin.d.ts +9 -1
- package/dist/mixins/form.mixin.js +110 -14
- package/dist/mixins/overflow-navigation.mixin.js +2 -1
- package/dist/mixins/radio.mixin.d.ts +1 -1
- package/dist/mixins/radio.mixin.js +6 -2
- package/dist/mixins/validators.mixin.d.ts +9 -3
- package/dist/ssr/animate-ssr.css +149 -0
- package/dist/ssr/overlay-ssr.css +57 -0
- package/dist/ssr/sidebar-ssr.css +57 -0
- package/dist/ssr/toolbar-ssr.css +41 -0
- package/dist/utils/rich-text.utils.d.ts +33 -0
- package/dist/utils/rich-text.utils.js +140 -49
- package/dist/utils/theme-generator.utils.d.ts +24 -3
- package/dist/utils/theme-generator.utils.js +66 -21
- package/package.json +14 -3
- package/styles/themes/eunomia-theme.scss +1 -0
- package/styles/themes/mixins/eunomia-neutrals.mixin.scss +71 -0
- package/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +2 -0
- package/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +39 -0
- package/styles/tools/mixins/settings/eunomia-border.mixin.scss +3 -3
- package/styles/tools/mixins/settings/eunomia-font.mixin.scss +12 -12
- package/styles/tools/mixins/settings/eunomia-radius.mixin.scss +4 -4
- package/dist/cdn/components/chunks/chunk-27Q2SLRY.js +0 -603
- package/dist/cdn/components/chunks/chunk-2IQUMAMI.js +0 -38
- package/dist/cdn/components/chunks/chunk-5TH3P53V.js +0 -16
- package/dist/cdn/components/chunks/chunk-7Q6AHVI5.js +0 -1
- package/dist/cdn/components/chunks/chunk-DENMN3WH.js +0 -48
- package/dist/cdn/components/chunks/chunk-MBF52GEL.js +0 -1
- package/dist/cdn/components/chunks/chunk-ONYUXQV2.js +0 -1
- package/dist/cdn/components/chunks/chunk-ZKPCO5RB.js +0 -262
- package/dist/components/layout/animate/animate-ssr.css +0 -64
|
@@ -3,6 +3,10 @@ import { css } from "lit";
|
|
|
3
3
|
* Base style for the carousel component.
|
|
4
4
|
*
|
|
5
5
|
* Custom css variables:
|
|
6
|
+
* [--carousel-visible-slides] - Set how many slides are shown at once, overriding `visibleSlides` ; meant for the consumer's own media/container queries
|
|
7
|
+
* [--carousel-scroll-step] - Set how many slides a prev/next/dot click advances by, overriding `scrollStep`
|
|
8
|
+
* [--carousel-responsive-breakpoint] - Set the width (px) below which an `inline` layout moves its buttons into the header row, overriding `responsiveBreakpoint`
|
|
9
|
+
* [--carousel-fade-display] - Set to `none` to hide the edge fades via pure CSS (e.g. in a container query), regardless of `edgeFade`
|
|
6
10
|
* [--carousel-gap] - Set a custom gap between slides
|
|
7
11
|
* [--carousel-track-padding] - Set a custom vertical padding on the track, giving slides' own effects that bleed outside their box (a hover shadow, `eun-sliding-card`'s bottom fade, ...) room to render before `overflow-y: hidden` clips them
|
|
8
12
|
* [--carousel-min-slide-width] - Set a custom minimum slide width ; on a narrow viewport, this wins over `visibleSlides` so slides never get uncomfortably small — fewer of them just become scrollable off-screen instead
|
|
@@ -33,6 +37,10 @@ const base = css `
|
|
|
33
37
|
:host {
|
|
34
38
|
display: block;
|
|
35
39
|
--_visibleCount: 1;
|
|
40
|
+
--_effectiveVisibleCount: var(
|
|
41
|
+
--carousel-visible-slides,
|
|
42
|
+
var(--_visibleCount)
|
|
43
|
+
);
|
|
36
44
|
--_snapAlign: start;
|
|
37
45
|
}
|
|
38
46
|
|
|
@@ -50,7 +58,7 @@ const base = css `
|
|
|
50
58
|
|
|
51
59
|
#carousel-header {
|
|
52
60
|
display: flex;
|
|
53
|
-
align-items: var(--carousel-header-align,
|
|
61
|
+
align-items: var(--carousel-header-align, flex-end);
|
|
54
62
|
justify-content: space-between;
|
|
55
63
|
gap: var(--carousel-header-gap, var(--eun-space-m, 16px));
|
|
56
64
|
margin-bottom: var(--eun-space-m, 16px);
|
|
@@ -84,6 +92,7 @@ const base = css `
|
|
|
84
92
|
#viewport::before,
|
|
85
93
|
#viewport::after {
|
|
86
94
|
content: "";
|
|
95
|
+
display: var(--carousel-fade-display, block);
|
|
87
96
|
position: absolute;
|
|
88
97
|
top: 0;
|
|
89
98
|
bottom: 0;
|
|
@@ -125,7 +134,7 @@ const base = css `
|
|
|
125
134
|
scrollbar-width: none;
|
|
126
135
|
outline: 2px solid transparent;
|
|
127
136
|
outline-offset: 8px;
|
|
128
|
-
border-radius: var(--eun-
|
|
137
|
+
border-radius: var(--eun-border-radius-m);
|
|
129
138
|
transition: outline 0.2s ease-out;
|
|
130
139
|
}
|
|
131
140
|
#track::-webkit-scrollbar {
|
|
@@ -156,8 +165,11 @@ const base = css `
|
|
|
156
165
|
flex-basis: max(
|
|
157
166
|
var(--carousel-min-slide-width, 220px),
|
|
158
167
|
calc(
|
|
159
|
-
(
|
|
160
|
-
|
|
168
|
+
(
|
|
169
|
+
100% - (var(--_effectiveVisibleCount) - 1) *
|
|
170
|
+
var(--carousel-gap, 16px)
|
|
171
|
+
) /
|
|
172
|
+
var(--_effectiveVisibleCount)
|
|
161
173
|
)
|
|
162
174
|
);
|
|
163
175
|
}
|
|
@@ -167,9 +179,9 @@ const base = css `
|
|
|
167
179
|
calc(
|
|
168
180
|
(
|
|
169
181
|
100% - var(--carousel-peek-size, 32px) -
|
|
170
|
-
(var(--
|
|
182
|
+
(var(--_effectiveVisibleCount) - 1) * var(--carousel-gap, 16px)
|
|
171
183
|
) /
|
|
172
|
-
var(--
|
|
184
|
+
var(--_effectiveVisibleCount)
|
|
173
185
|
)
|
|
174
186
|
);
|
|
175
187
|
}
|
|
@@ -190,7 +202,7 @@ const base = css `
|
|
|
190
202
|
align-items: center;
|
|
191
203
|
justify-content: center;
|
|
192
204
|
border-radius: 50%;
|
|
193
|
-
border: var(--eun-
|
|
205
|
+
border: var(--eun-border-width-s, 1px) solid
|
|
194
206
|
var(--carousel-nav-border-color, var(--eun-border-color, #dee0e7));
|
|
195
207
|
background: var(
|
|
196
208
|
--carousel-nav-background,
|
|
@@ -274,7 +286,7 @@ const base = css `
|
|
|
274
286
|
width: calc(var(--carousel-dot-size, 6px) * 3.5);
|
|
275
287
|
border-radius: var(
|
|
276
288
|
--carousel-dot-border-radius,
|
|
277
|
-
var(--eun-
|
|
289
|
+
var(--eun-border-radius-full, 999px)
|
|
278
290
|
);
|
|
279
291
|
background: var(
|
|
280
292
|
--carousel-dot-active-color,
|
|
@@ -55,8 +55,8 @@ export const paginationStyles = css `
|
|
|
55
55
|
height: var(--pagination-item-size, 32px);
|
|
56
56
|
padding-inline: var(--eun-space-xs, 4px);
|
|
57
57
|
font-family: inherit;
|
|
58
|
-
font-size: var(--pagination-font-size, var(--eun-
|
|
59
|
-
font-weight: var(--eun-
|
|
58
|
+
font-size: var(--pagination-font-size, var(--eun-font-size-s, 14px));
|
|
59
|
+
font-weight: var(--eun-font-weight-m, 500);
|
|
60
60
|
line-height: 1;
|
|
61
61
|
}
|
|
62
62
|
:host([show-labels]) button.control {
|
|
@@ -71,7 +71,7 @@ export const paginationStyles = css `
|
|
|
71
71
|
border: none;
|
|
72
72
|
border-radius: var(
|
|
73
73
|
--pagination-border-radius,
|
|
74
|
-
var(--eun-
|
|
74
|
+
var(--eun-border-radius-m, 8px)
|
|
75
75
|
);
|
|
76
76
|
background: transparent;
|
|
77
77
|
color: var(--pagination-item-color, var(--eun-text-secondary, #484e61));
|
|
@@ -34,14 +34,14 @@ const base = css `
|
|
|
34
34
|
box-sizing: border-box;
|
|
35
35
|
width: var(--_width);
|
|
36
36
|
transition: width var(--_transitionDuration) ease;
|
|
37
|
-
border-inline-end: var(--eun-
|
|
37
|
+
border-inline-end: var(--eun-border-width-s, 1px) solid var(--_borderColor);
|
|
38
38
|
}
|
|
39
39
|
:host([dragging]) {
|
|
40
40
|
transition: none;
|
|
41
41
|
}
|
|
42
42
|
:host([position="end"]) {
|
|
43
43
|
border-inline-end: none;
|
|
44
|
-
border-inline-start: var(--eun-
|
|
44
|
+
border-inline-start: var(--eun-border-width-s, 1px) solid var(--_borderColor);
|
|
45
45
|
}
|
|
46
46
|
:host([collapsed][collapse-mode="mini"]) {
|
|
47
47
|
--_width: var(--_miniWidth);
|
|
@@ -80,8 +80,8 @@ const base = css `
|
|
|
80
80
|
}
|
|
81
81
|
#heading {
|
|
82
82
|
margin: 0;
|
|
83
|
-
font-size: var(--eun-
|
|
84
|
-
font-weight: var(--eun-
|
|
83
|
+
font-size: var(--eun-font-size-l, 18px);
|
|
84
|
+
font-weight: var(--eun-font-weight-l, 700);
|
|
85
85
|
color: inherit;
|
|
86
86
|
}
|
|
87
87
|
#body {
|
|
@@ -89,7 +89,7 @@ const base = css `
|
|
|
89
89
|
min-height: 0;
|
|
90
90
|
overflow-y: auto;
|
|
91
91
|
padding: var(--_gap) var(--_padding);
|
|
92
|
-
font-size: var(--eun-
|
|
92
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
93
93
|
}
|
|
94
94
|
#footer {
|
|
95
95
|
flex: none;
|
|
@@ -139,8 +139,8 @@ const base = css `
|
|
|
139
139
|
height: 28px;
|
|
140
140
|
padding: 0;
|
|
141
141
|
background: var(--_background);
|
|
142
|
-
border: var(--eun-
|
|
143
|
-
border-radius: var(--eun-
|
|
142
|
+
border: var(--eun-border-width-s, 1px) solid var(--_borderColor);
|
|
143
|
+
border-radius: var(--eun-border-radius-xl, 999px);
|
|
144
144
|
color: var(--eun-text-secondary, #484e61);
|
|
145
145
|
cursor: pointer;
|
|
146
146
|
transition: background-color 0.15s ease;
|
|
@@ -161,12 +161,12 @@ const base = css `
|
|
|
161
161
|
width: 100%;
|
|
162
162
|
padding: var(--eun-space-s, 8px) var(--_padding);
|
|
163
163
|
border: none;
|
|
164
|
-
border-top: var(--eun-
|
|
164
|
+
border-top: var(--eun-border-width-s, 1px) solid var(--_borderColor);
|
|
165
165
|
border-radius: 0;
|
|
166
166
|
background: transparent;
|
|
167
167
|
color: var(--eun-text-secondary, #484e61);
|
|
168
168
|
font: inherit;
|
|
169
|
-
font-size: var(--eun-
|
|
169
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
170
170
|
text-align: start;
|
|
171
171
|
cursor: pointer;
|
|
172
172
|
transition: background-color 0.15s ease;
|
|
@@ -61,7 +61,7 @@ export const stepStyles = css `
|
|
|
61
61
|
text-align: left;
|
|
62
62
|
outline: 2px solid transparent;
|
|
63
63
|
outline-offset: 2px;
|
|
64
|
-
border-radius: var(--eun-
|
|
64
|
+
border-radius: var(--eun-border-radius-m, 8px);
|
|
65
65
|
flex: 0 1 auto;
|
|
66
66
|
min-width: 0;
|
|
67
67
|
}
|
|
@@ -100,17 +100,17 @@ export const stepStyles = css `
|
|
|
100
100
|
height: var(--_indicatorSize);
|
|
101
101
|
border-radius: var(
|
|
102
102
|
--stepper-indicator-border-radius,
|
|
103
|
-
var(--eun-
|
|
103
|
+
var(--eun-border-radius-xl, 999px)
|
|
104
104
|
);
|
|
105
105
|
background: var(
|
|
106
106
|
--stepper-indicator-background,
|
|
107
107
|
var(--eun-content-hover, #edeff0)
|
|
108
108
|
);
|
|
109
109
|
color: var(--stepper-indicator-color, var(--eun-text-secondary, #484e61));
|
|
110
|
-
font-size: var(--stepper-indicator-font-size, var(--eun-
|
|
110
|
+
font-size: var(--stepper-indicator-font-size, var(--eun-font-size-xs, 12px));
|
|
111
111
|
font-weight: var(
|
|
112
112
|
--stepper-indicator-font-weight,
|
|
113
|
-
var(--eun-
|
|
113
|
+
var(--eun-font-weight-m, 500)
|
|
114
114
|
);
|
|
115
115
|
transition:
|
|
116
116
|
background var(--stepper-transition-duration, 0.2s) ease-out,
|
|
@@ -163,18 +163,18 @@ export const stepStyles = css `
|
|
|
163
163
|
min-width: 0;
|
|
164
164
|
}
|
|
165
165
|
.label {
|
|
166
|
-
font-size: var(--stepper-label-font-size, var(--eun-
|
|
167
|
-
font-weight: var(--stepper-label-font-weight, var(--eun-
|
|
166
|
+
font-size: var(--stepper-label-font-size, var(--eun-font-size-s, 14px));
|
|
167
|
+
font-weight: var(--stepper-label-font-weight, var(--eun-font-weight-m, 500));
|
|
168
168
|
color: var(--stepper-label-color, var(--eun-text-color, #071621));
|
|
169
169
|
}
|
|
170
170
|
:host([status="current"]) .label {
|
|
171
171
|
color: var(--stepper-label-color-current, var(--eun-text-color, #071621));
|
|
172
|
-
font-weight: var(--eun-
|
|
172
|
+
font-weight: var(--eun-font-weight-l, 700);
|
|
173
173
|
}
|
|
174
174
|
.description {
|
|
175
175
|
font-size: var(
|
|
176
176
|
--stepper-description-font-size,
|
|
177
|
-
var(--eun-
|
|
177
|
+
var(--eun-font-size-xs, 12px)
|
|
178
178
|
);
|
|
179
179
|
color: var(--stepper-description-color, var(--eun-text-secondary, #484e61));
|
|
180
180
|
}
|
|
@@ -161,7 +161,7 @@ export const stepperStyles = css `
|
|
|
161
161
|
text-align: left;
|
|
162
162
|
outline: 2px solid transparent;
|
|
163
163
|
outline-offset: 2px;
|
|
164
|
-
border-radius: var(--eun-
|
|
164
|
+
border-radius: var(--eun-border-radius-m, 8px);
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
.step-control.has-description {
|
|
@@ -199,17 +199,17 @@ export const stepperStyles = css `
|
|
|
199
199
|
height: var(--_indicatorSize);
|
|
200
200
|
border-radius: var(
|
|
201
201
|
--stepper-indicator-border-radius,
|
|
202
|
-
var(--eun-
|
|
202
|
+
var(--eun-border-radius-xl, 999px)
|
|
203
203
|
);
|
|
204
204
|
background: var(
|
|
205
205
|
--stepper-indicator-background,
|
|
206
206
|
var(--eun-content-hover, #edeff0)
|
|
207
207
|
);
|
|
208
208
|
color: var(--stepper-indicator-color, var(--eun-text-secondary, #484e61));
|
|
209
|
-
font-size: var(--stepper-indicator-font-size, var(--eun-
|
|
209
|
+
font-size: var(--stepper-indicator-font-size, var(--eun-font-size-xs, 12px));
|
|
210
210
|
font-weight: var(
|
|
211
211
|
--stepper-indicator-font-weight,
|
|
212
|
-
var(--eun-
|
|
212
|
+
var(--eun-font-weight-m, 500)
|
|
213
213
|
);
|
|
214
214
|
transition:
|
|
215
215
|
background var(--stepper-transition-duration, 0.2s) ease-out,
|
|
@@ -304,18 +304,18 @@ export const stepperStyles = css `
|
|
|
304
304
|
min-width: 0;
|
|
305
305
|
}
|
|
306
306
|
.label {
|
|
307
|
-
font-size: var(--stepper-label-font-size, var(--eun-
|
|
308
|
-
font-weight: var(--stepper-label-font-weight, var(--eun-
|
|
307
|
+
font-size: var(--stepper-label-font-size, var(--eun-font-size-s, 14px));
|
|
308
|
+
font-weight: var(--stepper-label-font-weight, var(--eun-font-weight-m, 500));
|
|
309
309
|
color: var(--stepper-label-color, var(--eun-text-color, #071621));
|
|
310
310
|
}
|
|
311
311
|
li.step[data-status="current"] .label {
|
|
312
312
|
color: var(--stepper-label-color-current, var(--eun-text-color, #071621));
|
|
313
|
-
font-weight: var(--eun-
|
|
313
|
+
font-weight: var(--eun-font-weight-l, 700);
|
|
314
314
|
}
|
|
315
315
|
.description {
|
|
316
316
|
font-size: var(
|
|
317
317
|
--stepper-description-font-size,
|
|
318
|
-
var(--eun-
|
|
318
|
+
var(--eun-font-size-xs, 12px)
|
|
319
319
|
);
|
|
320
320
|
color: var(--stepper-description-color, var(--eun-text-secondary, #484e61));
|
|
321
321
|
}
|
|
@@ -38,8 +38,8 @@ const base = css `
|
|
|
38
38
|
--_border: var(--tab-border);
|
|
39
39
|
--_border-radius: var(--tab-border-radius, 8px);
|
|
40
40
|
--_pointerEvents: all;
|
|
41
|
-
font-size: var(--eun-
|
|
42
|
-
font-weight: var(--eun-
|
|
41
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
42
|
+
font-weight: var(--eun-font-weight-m, 500);
|
|
43
43
|
outline: none;
|
|
44
44
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
45
45
|
z-index: 1;
|
|
@@ -110,7 +110,7 @@ const base = css `
|
|
|
110
110
|
:host([icon]) div slot[name="icon"],
|
|
111
111
|
div[has-icon] slot[name="icon"] {
|
|
112
112
|
grid-area: icon;
|
|
113
|
-
font-size: var(--eun-
|
|
113
|
+
font-size: var(--eun-font-size-m, 16px);
|
|
114
114
|
line-height: 1;
|
|
115
115
|
display: block;
|
|
116
116
|
}
|
|
@@ -137,7 +137,7 @@ const base = css `
|
|
|
137
137
|
--tab-notification-color,
|
|
138
138
|
var(--eun-color-critical-100, #aa0014)
|
|
139
139
|
);
|
|
140
|
-
border-radius: var(--eun-
|
|
140
|
+
border-radius: var(--eun-border-radius-xl, 999px);
|
|
141
141
|
transition: scale 0.2s cubic-bezier(0.35, 0.92, 0.65, 1.28);
|
|
142
142
|
scale: 1;
|
|
143
143
|
place-self: var(--_badge-place, start);
|
|
@@ -165,7 +165,7 @@ const base = css `
|
|
|
165
165
|
|
|
166
166
|
@media (min-width: ${EUNOMIA_BREAKPOINTS.tablet}px) {
|
|
167
167
|
:host {
|
|
168
|
-
font-size: var(--eun-
|
|
168
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
169
169
|
}
|
|
170
170
|
:host([badge]) div::after {
|
|
171
171
|
--_y-correction: none;
|
|
@@ -30,6 +30,7 @@ declare const EunomiaTabGroup_base: import("../../../../utils/constructor.type.j
|
|
|
30
30
|
* @prop { 'start' | 'center' | 'end' } align - The tabs position alignment according to the component
|
|
31
31
|
* @prop { 'fade' | 'slide' | 'none' } animation - The animation to apply to a click/keyboard-triggered panel switch ; a touch swipe's own release settling into place is never this, see the class doc and `--tab-panel-swipe-duration`
|
|
32
32
|
* @prop { boolean } hideIndicator - Indicates whether the indicators under a tab should be displayed or not
|
|
33
|
+
* @prop { boolean } [full=false] - Stretches the tab header to 100% of the group's width, dividing it equally between the tabs and centering each label. Makes align irrelevant. Combines with overflow scrolling : a tab whose label doesn't fit its share keeps the room it needs
|
|
33
34
|
* @attr {string} aria-label - Accessible name for the tablist, forwarded to the internal `role="tablist"` element. Recommended when the group's purpose isn't already clear from a preceding heading, or when several tab groups appear on the same page
|
|
34
35
|
* @fires { TabChangeEvent } tabchange - Emitted event on active panel change (click, keyboard, or a committed touch swipe alike)
|
|
35
36
|
* @cssprop [--tab-header-background] - Set a custom color to the background of the tab header
|
|
@@ -58,6 +59,13 @@ export declare class EunomiaTabGroup extends EunomiaTabGroup_base {
|
|
|
58
59
|
* @default start
|
|
59
60
|
*/
|
|
60
61
|
align: "start" | "center" | "end";
|
|
62
|
+
/**
|
|
63
|
+
* Stretches the tab header to 100% of the group's width, dividing it
|
|
64
|
+
* equally between the tabs. Ignores `align`, since nothing is left to
|
|
65
|
+
* align.
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
68
|
+
full: boolean;
|
|
61
69
|
/**
|
|
62
70
|
* The animation type, for a tab switch triggered by a click or a keyboard
|
|
63
71
|
* activation only. A touch swipe always tracks the finger 1:1 during the
|
|
@@ -173,6 +181,7 @@ export declare class EunomiaTabGroup extends EunomiaTabGroup_base {
|
|
|
173
181
|
connectedCallback(): void;
|
|
174
182
|
protected firstUpdated(changedProperties: PropertyValues): void;
|
|
175
183
|
disconnectedCallback(): void;
|
|
184
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
176
185
|
/**
|
|
177
186
|
* Update the displayed indicator under the active tab.
|
|
178
187
|
* @internal
|
|
@@ -60,6 +60,7 @@ const eunTabTagName = "eun-tab";
|
|
|
60
60
|
* @prop { 'start' | 'center' | 'end' } align - The tabs position alignment according to the component
|
|
61
61
|
* @prop { 'fade' | 'slide' | 'none' } animation - The animation to apply to a click/keyboard-triggered panel switch ; a touch swipe's own release settling into place is never this, see the class doc and `--tab-panel-swipe-duration`
|
|
62
62
|
* @prop { boolean } hideIndicator - Indicates whether the indicators under a tab should be displayed or not
|
|
63
|
+
* @prop { boolean } [full=false] - Stretches the tab header to 100% of the group's width, dividing it equally between the tabs and centering each label. Makes align irrelevant. Combines with overflow scrolling : a tab whose label doesn't fit its share keeps the room it needs
|
|
63
64
|
* @attr {string} aria-label - Accessible name for the tablist, forwarded to the internal `role="tablist"` element. Recommended when the group's purpose isn't already clear from a preceding heading, or when several tab groups appear on the same page
|
|
64
65
|
* @fires { TabChangeEvent } tabchange - Emitted event on active panel change (click, keyboard, or a committed touch swipe alike)
|
|
65
66
|
* @cssprop [--tab-header-background] - Set a custom color to the background of the tab header
|
|
@@ -83,6 +84,13 @@ let EunomiaTabGroup = EunomiaTabGroup_1 = class EunomiaTabGroup extends Navigati
|
|
|
83
84
|
* @default start
|
|
84
85
|
*/
|
|
85
86
|
this.align = "start";
|
|
87
|
+
/**
|
|
88
|
+
* Stretches the tab header to 100% of the group's width, dividing it
|
|
89
|
+
* equally between the tabs. Ignores `align`, since nothing is left to
|
|
90
|
+
* align.
|
|
91
|
+
* @default false
|
|
92
|
+
*/
|
|
93
|
+
this.full = false;
|
|
86
94
|
/**
|
|
87
95
|
* The animation type, for a tab switch triggered by a click or a keyboard
|
|
88
96
|
* activation only. A touch swipe always tracks the finger 1:1 during the
|
|
@@ -267,6 +275,12 @@ let EunomiaTabGroup = EunomiaTabGroup_1 = class EunomiaTabGroup extends Navigati
|
|
|
267
275
|
this.swipeGesture?.destroy();
|
|
268
276
|
super.disconnectedCallback?.();
|
|
269
277
|
}
|
|
278
|
+
updated(changedProperties) {
|
|
279
|
+
super.updated?.(changedProperties);
|
|
280
|
+
if (changedProperties.has("full")) {
|
|
281
|
+
this.updateIndicator();
|
|
282
|
+
}
|
|
283
|
+
}
|
|
270
284
|
/**
|
|
271
285
|
* Update the displayed indicator under the active tab.
|
|
272
286
|
* @internal
|
|
@@ -281,7 +295,7 @@ let EunomiaTabGroup = EunomiaTabGroup_1 = class EunomiaTabGroup extends Navigati
|
|
|
281
295
|
}
|
|
282
296
|
const { clientWidth, offsetLeft } = this.activeTab;
|
|
283
297
|
let translateOffset;
|
|
284
|
-
if (this.align === "center" && !this.overflowState) {
|
|
298
|
+
if (this.align === "center" && !this.overflowState && !this.full) {
|
|
285
299
|
translateOffset =
|
|
286
300
|
-this.scrollableContent.clientWidth +
|
|
287
301
|
this.scrollableContent.clientWidth / 2 +
|
|
@@ -289,7 +303,7 @@ let EunomiaTabGroup = EunomiaTabGroup_1 = class EunomiaTabGroup extends Navigati
|
|
|
289
303
|
clientWidth -
|
|
290
304
|
clientWidth / 2;
|
|
291
305
|
}
|
|
292
|
-
else if (this.align === "end" && !this.overflowState) {
|
|
306
|
+
else if (this.align === "end" && !this.overflowState && !this.full) {
|
|
293
307
|
translateOffset =
|
|
294
308
|
offsetLeft -
|
|
295
309
|
this.scrollableContent.clientWidth +
|
|
@@ -699,6 +713,9 @@ EunomiaTabGroup.EDGE_RESISTANCE = 0.3;
|
|
|
699
713
|
__decorate([
|
|
700
714
|
property({ reflect: true })
|
|
701
715
|
], EunomiaTabGroup.prototype, "align", void 0);
|
|
716
|
+
__decorate([
|
|
717
|
+
property({ type: Boolean, reflect: true })
|
|
718
|
+
], EunomiaTabGroup.prototype, "full", void 0);
|
|
702
719
|
__decorate([
|
|
703
720
|
property({ reflect: true })
|
|
704
721
|
], EunomiaTabGroup.prototype, "animation", void 0);
|
|
@@ -52,6 +52,14 @@ const base = css `
|
|
|
52
52
|
justify-content: center;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
:host([full]) [role="tablist"] {
|
|
56
|
+
justify-content: flex-start;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:host([full]) ::slotted(eun-tab) {
|
|
60
|
+
flex: 1 1 0%;
|
|
61
|
+
}
|
|
62
|
+
|
|
55
63
|
:host([hide-indicator]) ::slotted(eun-tab:hover)::after {
|
|
56
64
|
display: none;
|
|
57
65
|
}
|
|
@@ -142,8 +150,8 @@ const base = css `
|
|
|
142
150
|
justify-content: flex-start;
|
|
143
151
|
background: linear-gradient(
|
|
144
152
|
90deg,
|
|
145
|
-
var(--tab-arrows-color, var(--eun-color
|
|
146
|
-
var(--tab-arrows-color, var(--eun-color
|
|
153
|
+
var(--tab-arrows-color, var(--eun-surface-color, #ffffff)) 0%,
|
|
154
|
+
var(--tab-arrows-color, var(--eun-surface-color, #ffffff)) 60%,
|
|
147
155
|
transparent 100%
|
|
148
156
|
);
|
|
149
157
|
}
|
|
@@ -153,8 +161,8 @@ const base = css `
|
|
|
153
161
|
background: linear-gradient(
|
|
154
162
|
90deg,
|
|
155
163
|
transparent 0%,
|
|
156
|
-
var(--tab-arrows-color, var(--eun-color
|
|
157
|
-
var(--tab-arrows-color, var(--eun-color
|
|
164
|
+
var(--tab-arrows-color, var(--eun-surface-color, #ffffff)) 40%,
|
|
165
|
+
var(--tab-arrows-color, var(--eun-surface-color, #ffffff)) 100%
|
|
158
166
|
);
|
|
159
167
|
}
|
|
160
168
|
hr {
|
|
@@ -54,6 +54,8 @@ declare const EunomiaToolbar_base: import("../../../utils/constructor.type.js").
|
|
|
54
54
|
* everything behind it, including the logo and any other bar content;
|
|
55
55
|
* the burger is the only thing that stays visible in front of it.
|
|
56
56
|
*
|
|
57
|
+
* @slot [menu-icon] - Replaces the burger's default open icon (an `eun-icon name="menu"`) with any content, shown while the panel is closed. Useful wherever `eun-icon`'s own dynamic SVG resolution doesn't fit, e.g. some bundler setups
|
|
58
|
+
* @slot [close-icon] - Replaces the burger's default close icon (an `eun-icon name="close"`) with any content, shown while the panel is open. See `menu-icon` above
|
|
57
59
|
* @slot start - Left-side content, rendered after a logo image linking to logoHref whenever logoSrc is set
|
|
58
60
|
* @slot center - Center content, truly centered independently of the start and end widths
|
|
59
61
|
* @slot end - Right-side content
|
|
@@ -129,12 +131,15 @@ declare const EunomiaToolbar_base: import("../../../utils/constructor.type.js").
|
|
|
129
131
|
* @cssprop [--toolbar-panel-background] - Sets the background of the mobile panel, defaulting to a translucent mix of the bar's own background
|
|
130
132
|
* @cssprop [--toolbar-panel-color] - Sets the text color of the mobile panel
|
|
131
133
|
* @cssprop [--toolbar-panel-padding] - Sets the padding of the mobile panel
|
|
134
|
+
* @cssprop [--toolbar-burger-align] - Sets the vertical alignment of the burger button within the bar's height, defaulting to center ; set flex-start to pin it to the top instead
|
|
135
|
+
* @cssprop [--toolbar-burger-padding] - Sets the padding around the burger button, defaulting to 0 on the block axis and --toolbar-panel-padding on the inline axis
|
|
132
136
|
* @cssprop [--toolbar-panel-gap] - Sets the gap inside the mobile panel
|
|
133
137
|
* @cssprop [--toolbar-panel-backdrop-blur] - Sets a backdrop blur radius for the mobile panel
|
|
134
138
|
* @cssprop [--toolbar-skip-links-height] - Sets the height of the skip-links bar
|
|
135
139
|
* @cssprop [--toolbar-skip-links-background] - Sets the background of the skip-links bar, defaulting to a darker mix of the bar's own background
|
|
136
140
|
* @cssprop [--toolbar-skip-links-color] - Sets the text color of the skip-links bar
|
|
137
141
|
* @cssprop [--toolbar-skip-links-separator-color] - Sets the color of the divider drawn between skip links
|
|
142
|
+
* @cssprop [--toolbar-skip-links-gap] - Sets the gap between skip links, with the divider centered in it
|
|
138
143
|
* @element eun-toolbar
|
|
139
144
|
*/
|
|
140
145
|
export declare class EunomiaToolbar extends EunomiaToolbar_base {
|
|
@@ -302,6 +307,25 @@ export declare class EunomiaToolbar extends EunomiaToolbar_base {
|
|
|
302
307
|
* @readonly
|
|
303
308
|
*/
|
|
304
309
|
private readonly burgerEl?;
|
|
310
|
+
/**
|
|
311
|
+
* Elements assigned to the `menu-icon` slot, if any ; queried live so the
|
|
312
|
+
* default `eun-icon` fallback correctly appears/disappears as content is
|
|
313
|
+
* slotted/removed, same pattern `eun-collapse`'s `chevron` slot uses.
|
|
314
|
+
* @internal
|
|
315
|
+
*/
|
|
316
|
+
private readonly menuIconSlotEls;
|
|
317
|
+
/**
|
|
318
|
+
* Elements assigned to the `close-icon` slot, if any ; see
|
|
319
|
+
* {@link menuIconSlotEls}.
|
|
320
|
+
* @internal
|
|
321
|
+
*/
|
|
322
|
+
private readonly closeIconSlotEls;
|
|
323
|
+
/**
|
|
324
|
+
* Re-renders once a `menu-icon`/`close-icon` slot's content changes, so
|
|
325
|
+
* the default `eun-icon` fallback correctly appears/disappears.
|
|
326
|
+
* @private
|
|
327
|
+
*/
|
|
328
|
+
private handleIconSlotChange;
|
|
305
329
|
/**
|
|
306
330
|
* The live `matchMedia` list backing {@link mobile}, rebuilt whenever
|
|
307
331
|
* `mobileBreakpoint` changes.
|
|
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { customElement, property, query } from "lit/decorators.js";
|
|
7
|
+
import { customElement, property, query, queryAssignedElements, } from "lit/decorators.js";
|
|
8
8
|
import { html, LitElement, nothing } from "lit";
|
|
9
9
|
import { ChangeEvent } from "../../../events/change.event.js";
|
|
10
10
|
import { handleLinkNavigation } from "../../../utils/navigation.utils.js";
|
|
@@ -53,6 +53,8 @@ export const EunomiaToolbarTagName = "eun-toolbar";
|
|
|
53
53
|
* everything behind it, including the logo and any other bar content;
|
|
54
54
|
* the burger is the only thing that stays visible in front of it.
|
|
55
55
|
*
|
|
56
|
+
* @slot [menu-icon] - Replaces the burger's default open icon (an `eun-icon name="menu"`) with any content, shown while the panel is closed. Useful wherever `eun-icon`'s own dynamic SVG resolution doesn't fit, e.g. some bundler setups
|
|
57
|
+
* @slot [close-icon] - Replaces the burger's default close icon (an `eun-icon name="close"`) with any content, shown while the panel is open. See `menu-icon` above
|
|
56
58
|
* @slot start - Left-side content, rendered after a logo image linking to logoHref whenever logoSrc is set
|
|
57
59
|
* @slot center - Center content, truly centered independently of the start and end widths
|
|
58
60
|
* @slot end - Right-side content
|
|
@@ -128,12 +130,15 @@ export const EunomiaToolbarTagName = "eun-toolbar";
|
|
|
128
130
|
* @cssprop [--toolbar-panel-background] - Sets the background of the mobile panel, defaulting to a translucent mix of the bar's own background
|
|
129
131
|
* @cssprop [--toolbar-panel-color] - Sets the text color of the mobile panel
|
|
130
132
|
* @cssprop [--toolbar-panel-padding] - Sets the padding of the mobile panel
|
|
133
|
+
* @cssprop [--toolbar-burger-align] - Sets the vertical alignment of the burger button within the bar's height, defaulting to center ; set flex-start to pin it to the top instead
|
|
134
|
+
* @cssprop [--toolbar-burger-padding] - Sets the padding around the burger button, defaulting to 0 on the block axis and --toolbar-panel-padding on the inline axis
|
|
131
135
|
* @cssprop [--toolbar-panel-gap] - Sets the gap inside the mobile panel
|
|
132
136
|
* @cssprop [--toolbar-panel-backdrop-blur] - Sets a backdrop blur radius for the mobile panel
|
|
133
137
|
* @cssprop [--toolbar-skip-links-height] - Sets the height of the skip-links bar
|
|
134
138
|
* @cssprop [--toolbar-skip-links-background] - Sets the background of the skip-links bar, defaulting to a darker mix of the bar's own background
|
|
135
139
|
* @cssprop [--toolbar-skip-links-color] - Sets the text color of the skip-links bar
|
|
136
140
|
* @cssprop [--toolbar-skip-links-separator-color] - Sets the color of the divider drawn between skip links
|
|
141
|
+
* @cssprop [--toolbar-skip-links-gap] - Sets the gap between skip links, with the divider centered in it
|
|
137
142
|
* @element eun-toolbar
|
|
138
143
|
*/
|
|
139
144
|
let EunomiaToolbar = class EunomiaToolbar extends DialogSurfaceMixin(LitElement) {
|
|
@@ -256,6 +261,14 @@ let EunomiaToolbar = class EunomiaToolbar extends DialogSurfaceMixin(LitElement)
|
|
|
256
261
|
* @internal
|
|
257
262
|
*/
|
|
258
263
|
this.mobile = false;
|
|
264
|
+
/**
|
|
265
|
+
* Re-renders once a `menu-icon`/`close-icon` slot's content changes, so
|
|
266
|
+
* the default `eun-icon` fallback correctly appears/disappears.
|
|
267
|
+
* @private
|
|
268
|
+
*/
|
|
269
|
+
this.handleIconSlotChange = () => {
|
|
270
|
+
this.requestUpdate();
|
|
271
|
+
};
|
|
259
272
|
/**
|
|
260
273
|
* The element (or `window`) {@link handleScroll} is currently listening
|
|
261
274
|
* on, resolved from `scrollTarget`.
|
|
@@ -834,6 +847,11 @@ let EunomiaToolbar = class EunomiaToolbar extends DialogSurfaceMixin(LitElement)
|
|
|
834
847
|
* @private
|
|
835
848
|
*/
|
|
836
849
|
renderBurger() {
|
|
850
|
+
const slotName = this.open ? "close-icon" : "menu-icon";
|
|
851
|
+
const iconName = this.open ? "close" : "menu";
|
|
852
|
+
const hasSlotted = this.open
|
|
853
|
+
? this.closeIconSlotEls.length
|
|
854
|
+
: this.menuIconSlotEls.length;
|
|
837
855
|
return html `
|
|
838
856
|
<eun-button
|
|
839
857
|
id="burger"
|
|
@@ -846,7 +864,11 @@ let EunomiaToolbar = class EunomiaToolbar extends DialogSurfaceMixin(LitElement)
|
|
|
846
864
|
: this.ariaLabelMenuOpen}
|
|
847
865
|
@click=${() => this.toggle()}
|
|
848
866
|
>
|
|
849
|
-
<
|
|
867
|
+
<slot name=${slotName} @slotchange=${this.handleIconSlotChange}>
|
|
868
|
+
${hasSlotted
|
|
869
|
+
? nothing
|
|
870
|
+
: html `<eun-icon name=${iconName} size="20"></eun-icon>`}
|
|
871
|
+
</slot>
|
|
850
872
|
</eun-button>
|
|
851
873
|
`;
|
|
852
874
|
}
|
|
@@ -996,6 +1018,12 @@ __decorate([
|
|
|
996
1018
|
__decorate([
|
|
997
1019
|
query("#burger")
|
|
998
1020
|
], EunomiaToolbar.prototype, "burgerEl", void 0);
|
|
1021
|
+
__decorate([
|
|
1022
|
+
queryAssignedElements({ slot: "menu-icon" })
|
|
1023
|
+
], EunomiaToolbar.prototype, "menuIconSlotEls", void 0);
|
|
1024
|
+
__decorate([
|
|
1025
|
+
queryAssignedElements({ slot: "close-icon" })
|
|
1026
|
+
], EunomiaToolbar.prototype, "closeIconSlotEls", void 0);
|
|
999
1027
|
EunomiaToolbar = __decorate([
|
|
1000
1028
|
customElement(EunomiaToolbarTagName)
|
|
1001
1029
|
], EunomiaToolbar);
|