@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,50 +3,148 @@ import { css } from "lit";
|
|
|
3
3
|
* Base style for the toggle group component.
|
|
4
4
|
*
|
|
5
5
|
* Custom css variables:
|
|
6
|
-
* [--toggle-group-background] - Set a custom background color for the track
|
|
7
|
-
* [--toggle-group-border-color] - Set a custom border color for the track
|
|
6
|
+
* [--toggle-group-background] - Set a custom background color for the track, for every appearance (transparent by default in `outline`/`flat`)
|
|
7
|
+
* [--toggle-group-border-color] - Set a custom border color for the track in `default` appearance, and for each option's border at rest in `outline` and `flat` appearance
|
|
8
8
|
* [--toggle-group-color] - Set a custom text color for unselected options
|
|
9
|
-
* [--toggle-group-active-background] - Set a custom background color for selected options (and the sliding indicator, in exclusive mode) in `default` appearance ;
|
|
10
|
-
* [--toggle-group-active-color] - Set a custom text color for selected options
|
|
9
|
+
* [--toggle-group-active-background] - Set a custom background color for selected options (and the sliding indicator, in exclusive mode) in `default` appearance ; in `outline`/`flat` appearance, the selected color of every option, over its own variant
|
|
10
|
+
* [--toggle-group-active-color] - Set a custom text color for selected options, for every appearance
|
|
11
11
|
* [--toggle-group-border-radius] - Set a custom border radius for the track and its options
|
|
12
12
|
* [--toggle-group-gap] - Set a custom gap between the options
|
|
13
13
|
* [--toggle-group-padding] - Set a custom padding for the track ; also used as the indicator's inset, so it stays flush with the track's edge. Ignored once `appearance` isn't `default`
|
|
14
|
-
* [--toggle-group-hover-color] - Set a custom text color on hover state, for an unselected option,
|
|
14
|
+
* [--toggle-group-hover-color] - Set a custom text color on hover state, for an unselected option, for every appearance
|
|
15
15
|
* [--toggle-group-hover-background] - Set a custom background color on hover state, for an unselected option ; transparent by default. Applies regardless of `appearance`
|
|
16
16
|
* [--toggle-group-shadow] - Set a custom box shadow on every option (and the sliding indicator, in exclusive mode), none by default
|
|
17
17
|
* [--toggle-group-shadow-hover] - Set a custom box shadow on hover state, for an unselected option ; falls back to `--toggle-group-shadow`
|
|
18
|
+
* [--toggle-group-arrows-color] - Set a custom background color the overflow arrows fade out to, once the group overflows its container ; defaults to the track color laid over `--eun-surface-color`, so set it when the group sits on another background
|
|
18
19
|
*/
|
|
19
20
|
export const toggleGroupStyles = css `
|
|
20
21
|
:host {
|
|
21
22
|
display: inline-flex;
|
|
23
|
+
width: fit-content;
|
|
24
|
+
max-width: 100%;
|
|
25
|
+
--_arrowsColor: var(
|
|
26
|
+
--toggle-group-arrows-color,
|
|
27
|
+
var(--eun-surface-sunken, #f7f8fa)
|
|
28
|
+
);
|
|
29
|
+
--_arrowsBase: var(
|
|
30
|
+
--toggle-group-arrows-color,
|
|
31
|
+
var(--eun-surface-color, #ffffff)
|
|
32
|
+
);
|
|
22
33
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
23
|
-
font-size: var(--eun-
|
|
34
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
35
|
+
}
|
|
36
|
+
:host([appearance="outline"]),
|
|
37
|
+
:host([appearance="flat"]) {
|
|
38
|
+
--_arrowsColor: var(
|
|
39
|
+
--toggle-group-arrows-color,
|
|
40
|
+
var(--eun-surface-color, #ffffff)
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
:host([full]) {
|
|
44
|
+
display: flex;
|
|
45
|
+
width: 100%;
|
|
24
46
|
}
|
|
25
47
|
:host([disabled]) {
|
|
26
48
|
opacity: 0.5;
|
|
27
49
|
}
|
|
28
|
-
#
|
|
50
|
+
#scrollable-wrapper {
|
|
51
|
+
position: relative;
|
|
52
|
+
min-width: 0;
|
|
53
|
+
}
|
|
54
|
+
:host([full]) #scrollable-wrapper {
|
|
55
|
+
width: 100%;
|
|
56
|
+
}
|
|
57
|
+
#scrollable {
|
|
29
58
|
position: relative;
|
|
59
|
+
box-sizing: border-box;
|
|
30
60
|
display: inline-flex;
|
|
61
|
+
max-width: 100%;
|
|
31
62
|
gap: var(--toggle-group-gap, var(--eun-space-xs, 4px));
|
|
32
63
|
padding: var(--toggle-group-padding, 4px);
|
|
33
64
|
border-radius: var(
|
|
34
65
|
--toggle-group-border-radius,
|
|
35
|
-
var(--eun-
|
|
66
|
+
var(--eun-border-radius-m, 8px)
|
|
36
67
|
);
|
|
37
68
|
background: var(
|
|
38
69
|
--toggle-group-background,
|
|
39
|
-
var(--eun-
|
|
70
|
+
var(--eun-surface-sunken, #f7f8fa)
|
|
40
71
|
);
|
|
41
|
-
border: var(--eun-
|
|
72
|
+
border: var(--eun-border-width-s, 1px) solid
|
|
42
73
|
var(--toggle-group-border-color, var(--eun-color-grey-300, #dee0e7));
|
|
74
|
+
scrollbar-width: none;
|
|
75
|
+
overflow-x: hidden;
|
|
76
|
+
}
|
|
77
|
+
#scrollable::-webkit-scrollbar {
|
|
78
|
+
display: none;
|
|
79
|
+
}
|
|
80
|
+
:has(#arrows arrow-container.visible) #scrollable {
|
|
81
|
+
overflow-x: scroll;
|
|
82
|
+
}
|
|
83
|
+
:host([full]) #scrollable {
|
|
84
|
+
width: 100%;
|
|
43
85
|
}
|
|
44
|
-
:host([appearance="outline"]) #
|
|
45
|
-
:host([appearance="flat"]) #
|
|
86
|
+
:host([appearance="outline"]) #scrollable,
|
|
87
|
+
:host([appearance="flat"]) #scrollable {
|
|
46
88
|
padding: 0;
|
|
47
|
-
background: transparent;
|
|
89
|
+
background: var(--toggle-group-background, transparent);
|
|
48
90
|
border: none;
|
|
49
91
|
}
|
|
92
|
+
#arrows {
|
|
93
|
+
position: absolute;
|
|
94
|
+
inset: 0;
|
|
95
|
+
z-index: 2;
|
|
96
|
+
pointer-events: none;
|
|
97
|
+
}
|
|
98
|
+
arrow-container {
|
|
99
|
+
position: absolute;
|
|
100
|
+
top: 0;
|
|
101
|
+
height: 100%;
|
|
102
|
+
opacity: 0;
|
|
103
|
+
min-width: 24px;
|
|
104
|
+
pointer-events: none;
|
|
105
|
+
transition: opacity 0.2s ease;
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
}
|
|
109
|
+
arrow-container.visible {
|
|
110
|
+
opacity: 1;
|
|
111
|
+
pointer-events: all;
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
}
|
|
114
|
+
arrow-container:nth-of-type(1) {
|
|
115
|
+
left: 0;
|
|
116
|
+
justify-content: flex-start;
|
|
117
|
+
background:
|
|
118
|
+
linear-gradient(
|
|
119
|
+
90deg,
|
|
120
|
+
var(--_arrowsColor) 0%,
|
|
121
|
+
var(--_arrowsColor) 60%,
|
|
122
|
+
transparent 100%
|
|
123
|
+
),
|
|
124
|
+
linear-gradient(
|
|
125
|
+
90deg,
|
|
126
|
+
var(--_arrowsBase) 0%,
|
|
127
|
+
var(--_arrowsBase) 60%,
|
|
128
|
+
transparent 100%
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
arrow-container:nth-of-type(2) {
|
|
132
|
+
right: 0;
|
|
133
|
+
justify-content: flex-end;
|
|
134
|
+
background:
|
|
135
|
+
linear-gradient(
|
|
136
|
+
90deg,
|
|
137
|
+
transparent 0%,
|
|
138
|
+
var(--_arrowsColor) 40%,
|
|
139
|
+
var(--_arrowsColor) 100%
|
|
140
|
+
),
|
|
141
|
+
linear-gradient(
|
|
142
|
+
90deg,
|
|
143
|
+
transparent 0%,
|
|
144
|
+
var(--_arrowsBase) 40%,
|
|
145
|
+
var(--_arrowsBase) 100%
|
|
146
|
+
);
|
|
147
|
+
}
|
|
50
148
|
#indicator {
|
|
51
149
|
position: absolute;
|
|
52
150
|
top: var(--toggle-group-padding, 4px);
|
|
@@ -56,7 +154,7 @@ export const toggleGroupStyles = css `
|
|
|
56
154
|
opacity: 0;
|
|
57
155
|
z-index: 0;
|
|
58
156
|
border-radius: calc(
|
|
59
|
-
var(--toggle-group-border-radius, var(--eun-
|
|
157
|
+
var(--toggle-group-border-radius, var(--eun-border-radius-m, 8px)) - 3px
|
|
60
158
|
);
|
|
61
159
|
background: var(
|
|
62
160
|
--toggle-group-active-background,
|
|
@@ -84,27 +182,36 @@ export const toggleGroupStyles = css `
|
|
|
84
182
|
--_hoverBackground: var(--toggle-group-hover-background, transparent);
|
|
85
183
|
--_boxShadow: var(--toggle-group-shadow, none);
|
|
86
184
|
--_boxShadow-hover: var(--toggle-group-shadow-hover, var(--_boxShadow));
|
|
185
|
+
--_variantColorDefault: var(--eun-color-primary-500, #3d6fff);
|
|
186
|
+
--_variantTintDefault: var(--eun-color-primary-transparent, #3d6fff33);
|
|
87
187
|
--_variantColor: var(
|
|
88
188
|
--toggle-group-active-background,
|
|
89
|
-
var(--
|
|
189
|
+
var(--_variantColorDefault)
|
|
190
|
+
);
|
|
191
|
+
--_variantTint: var(--_customTint, var(--_variantTintDefault));
|
|
192
|
+
--_customTint: color-mix(
|
|
193
|
+
in srgb,
|
|
194
|
+
var(--toggle-group-active-background) 15%,
|
|
195
|
+
transparent
|
|
90
196
|
);
|
|
91
|
-
--_variantTint: var(--eun-color-primary-transparent, #3d6fff33);
|
|
92
197
|
position: relative;
|
|
93
198
|
z-index: 1;
|
|
94
199
|
display: inline-flex;
|
|
95
200
|
align-items: center;
|
|
201
|
+
flex-shrink: 0;
|
|
96
202
|
gap: var(--eun-space-xs, 4px);
|
|
97
203
|
font: inherit;
|
|
98
204
|
text-transform: capitalize;
|
|
205
|
+
white-space: nowrap;
|
|
99
206
|
cursor: pointer;
|
|
100
207
|
border: none;
|
|
101
208
|
background: transparent;
|
|
102
209
|
color: var(--toggle-group-color, var(--eun-color-grey-600, #666e8a));
|
|
103
210
|
padding: calc(var(--eun-space-xs, 4px) * 1.5) var(--eun-space-m, 16px);
|
|
104
|
-
font-weight: var(--eun-
|
|
211
|
+
font-weight: var(--eun-font-weight-m, 500);
|
|
105
212
|
outline: 2px solid transparent;
|
|
106
213
|
border-radius: calc(
|
|
107
|
-
var(--toggle-group-border-radius, var(--eun-
|
|
214
|
+
var(--toggle-group-border-radius, var(--eun-border-radius-m, 8px)) - 3px
|
|
108
215
|
);
|
|
109
216
|
box-shadow: var(--_boxShadow);
|
|
110
217
|
transition:
|
|
@@ -112,6 +219,13 @@ export const toggleGroupStyles = css `
|
|
|
112
219
|
color 0.2s ease-out,
|
|
113
220
|
box-shadow 0.2s ease-out;
|
|
114
221
|
}
|
|
222
|
+
:host([full]) button,
|
|
223
|
+
:host([full]) ::slotted(eun-toggle-item) {
|
|
224
|
+
flex: 1 1 0%;
|
|
225
|
+
}
|
|
226
|
+
:host([full]) button {
|
|
227
|
+
justify-content: center;
|
|
228
|
+
}
|
|
115
229
|
:host(:not([disabled])) button:hover {
|
|
116
230
|
box-shadow: var(--_boxShadow-hover);
|
|
117
231
|
}
|
|
@@ -129,13 +243,15 @@ export const toggleGroupStyles = css `
|
|
|
129
243
|
button[disabled] {
|
|
130
244
|
cursor: not-allowed;
|
|
131
245
|
}
|
|
132
|
-
:host([appearance="default"]) #
|
|
246
|
+
:host([appearance="default"]) #scrollable:has(#indicator) button.active {
|
|
133
247
|
color: var(
|
|
134
248
|
--toggle-group-active-color,
|
|
135
249
|
var(--eun-color-on-primary-500, #ffffff)
|
|
136
250
|
);
|
|
137
251
|
}
|
|
138
|
-
:host([appearance="default"])
|
|
252
|
+
:host([appearance="default"])
|
|
253
|
+
#scrollable:not(:has(#indicator))
|
|
254
|
+
button.active {
|
|
139
255
|
background: var(
|
|
140
256
|
--toggle-group-active-background,
|
|
141
257
|
var(--eun-color-primary-500, #3d6fff)
|
|
@@ -151,51 +267,52 @@ export const toggleGroupStyles = css `
|
|
|
151
267
|
}
|
|
152
268
|
|
|
153
269
|
button[data-variant="secondary"] {
|
|
154
|
-
--
|
|
155
|
-
--
|
|
270
|
+
--_variantColorDefault: var(--eun-color-secondary-500, #e5a030);
|
|
271
|
+
--_variantTintDefault: var(--eun-color-secondary-transparent, #e5a03033);
|
|
156
272
|
}
|
|
157
273
|
button[data-variant="critical"] {
|
|
158
|
-
--
|
|
159
|
-
--
|
|
274
|
+
--_variantColorDefault: var(--eun-color-critical-100, #aa0014);
|
|
275
|
+
--_variantTintDefault: var(--eun-color-critical-30, #faf0f1);
|
|
160
276
|
}
|
|
161
277
|
button[data-variant="success"] {
|
|
162
|
-
--
|
|
163
|
-
--
|
|
278
|
+
--_variantColorDefault: var(--eun-color-success-100, #1a9948);
|
|
279
|
+
--_variantTintDefault: var(--eun-color-success-30, #f1f9f4);
|
|
164
280
|
}
|
|
165
281
|
button[data-variant="warning"] {
|
|
166
|
-
--
|
|
167
|
-
--
|
|
282
|
+
--_variantColorDefault: var(--eun-color-warning-100, #c85207);
|
|
283
|
+
--_variantTintDefault: var(--eun-color-warning-30, #fcf5f0);
|
|
168
284
|
}
|
|
169
285
|
:host([appearance="outline"]) button,
|
|
170
286
|
:host([appearance="flat"]) button {
|
|
171
287
|
border-radius: var(
|
|
172
288
|
--toggle-group-border-radius,
|
|
173
|
-
var(--eun-
|
|
289
|
+
var(--eun-border-radius-m, 8px)
|
|
174
290
|
);
|
|
175
291
|
}
|
|
176
292
|
:host([appearance="outline"]) button {
|
|
177
|
-
border: var(--eun-
|
|
293
|
+
border: var(--eun-border-width-s, 1px) solid
|
|
178
294
|
var(--toggle-group-border-color, var(--eun-color-grey-300, #dee0e7));
|
|
179
295
|
}
|
|
180
296
|
:host([appearance="flat"]) button {
|
|
181
|
-
border: var(--eun-
|
|
297
|
+
border: var(--eun-border-width-s, 1px) solid
|
|
298
|
+
var(--toggle-group-border-color, transparent);
|
|
182
299
|
}
|
|
183
300
|
:host([appearance="outline"]) button.active,
|
|
184
301
|
:host([appearance="flat"]) button.active {
|
|
185
302
|
background: var(--_variantTint);
|
|
186
|
-
color: var(--_variantColor);
|
|
187
|
-
font-weight: var(--eun-
|
|
303
|
+
color: var(--toggle-group-active-color, var(--_variantColor));
|
|
304
|
+
font-weight: var(--eun-font-weight-b, 700);
|
|
188
305
|
}
|
|
189
306
|
:host([appearance="outline"]) button.active {
|
|
190
307
|
border-color: var(--_variantColor);
|
|
191
308
|
}
|
|
192
309
|
:host([appearance="outline"]:not([disabled])) button:not(.active):hover,
|
|
193
310
|
:host([appearance="flat"]:not([disabled])) button:not(.active):hover {
|
|
194
|
-
color: var(--_variantColor);
|
|
311
|
+
color: var(--toggle-group-hover-color, var(--_variantColor));
|
|
195
312
|
}
|
|
196
313
|
:host([appearance="outline"]) button:focus-visible,
|
|
197
314
|
:host([appearance="flat"]) button:focus-visible {
|
|
198
315
|
outline-color: var(--_variantColor);
|
|
199
|
-
color: var(--_variantColor);
|
|
316
|
+
color: var(--toggle-group-hover-color, var(--_variantColor));
|
|
200
317
|
}
|
|
201
318
|
`;
|
|
@@ -16,22 +16,28 @@ export const toggleItemStyles = css `
|
|
|
16
16
|
position: relative;
|
|
17
17
|
z-index: 1;
|
|
18
18
|
display: inline-block;
|
|
19
|
-
|
|
19
|
+
flex-shrink: 0;
|
|
20
|
+
outline: none !important;
|
|
21
|
+
}
|
|
22
|
+
:host([full]) {
|
|
23
|
+
flex: 1 1 0%;
|
|
20
24
|
}
|
|
21
25
|
#item {
|
|
22
26
|
box-sizing: border-box;
|
|
27
|
+
width: 100%;
|
|
23
28
|
display: inline-flex;
|
|
24
29
|
align-items: center;
|
|
25
30
|
gap: var(--eun-space-xs, 4px);
|
|
26
31
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
27
|
-
font-size: var(--eun-
|
|
28
|
-
font-weight: var(--eun-
|
|
32
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
33
|
+
font-weight: var(--eun-font-weight-m, 500);
|
|
29
34
|
text-transform: capitalize;
|
|
35
|
+
white-space: nowrap;
|
|
30
36
|
cursor: pointer;
|
|
31
37
|
color: var(--toggle-group-color, var(--eun-color-grey-600, #666e8a));
|
|
32
38
|
padding: 6px 14px;
|
|
33
39
|
border-radius: calc(
|
|
34
|
-
var(--toggle-group-border-radius, var(--eun-
|
|
40
|
+
var(--toggle-group-border-radius, var(--eun-border-radius-m, 8px)) - 3px
|
|
35
41
|
);
|
|
36
42
|
outline: 2px solid transparent;
|
|
37
43
|
box-shadow: var(--_boxShadow);
|
|
@@ -59,6 +65,9 @@ export const toggleItemStyles = css `
|
|
|
59
65
|
cursor: not-allowed;
|
|
60
66
|
opacity: 0.5;
|
|
61
67
|
}
|
|
68
|
+
:host([full]) #item {
|
|
69
|
+
justify-content: center;
|
|
70
|
+
}
|
|
62
71
|
:host([checked]:not([exclusive])) #item {
|
|
63
72
|
background: var(
|
|
64
73
|
--toggle-group-active-background,
|
|
@@ -73,59 +82,67 @@ export const toggleItemStyles = css `
|
|
|
73
82
|
}
|
|
74
83
|
|
|
75
84
|
:host {
|
|
85
|
+
--_variantColorDefault: var(--eun-color-primary-500, #3d6fff);
|
|
86
|
+
--_variantTintDefault: var(--eun-color-primary-transparent, #3d6fff33);
|
|
76
87
|
--_variantColor: var(
|
|
77
88
|
--toggle-group-active-background,
|
|
78
|
-
var(--
|
|
89
|
+
var(--_variantColorDefault)
|
|
90
|
+
);
|
|
91
|
+
--_variantTint: var(--_customTint, var(--_variantTintDefault));
|
|
92
|
+
--_customTint: color-mix(
|
|
93
|
+
in srgb,
|
|
94
|
+
var(--toggle-group-active-background) 15%,
|
|
95
|
+
transparent
|
|
79
96
|
);
|
|
80
|
-
--_variantTint: var(--eun-color-primary-transparent, #3d6fff33);
|
|
81
97
|
}
|
|
82
98
|
:host([variant="secondary"]) {
|
|
83
|
-
--
|
|
84
|
-
--
|
|
99
|
+
--_variantColorDefault: var(--eun-color-secondary-500, #e5a030);
|
|
100
|
+
--_variantTintDefault: var(--eun-color-secondary-transparent, #e5a03033);
|
|
85
101
|
}
|
|
86
102
|
:host([variant="critical"]) {
|
|
87
|
-
--
|
|
88
|
-
--
|
|
103
|
+
--_variantColorDefault: var(--eun-color-critical-100, #aa0014);
|
|
104
|
+
--_variantTintDefault: var(--eun-color-critical-30, #faf0f1);
|
|
89
105
|
}
|
|
90
106
|
:host([variant="success"]) {
|
|
91
|
-
--
|
|
92
|
-
--
|
|
107
|
+
--_variantColorDefault: var(--eun-color-success-100, #1a9948);
|
|
108
|
+
--_variantTintDefault: var(--eun-color-success-30, #f1f9f4);
|
|
93
109
|
}
|
|
94
110
|
:host([variant="warning"]) {
|
|
95
|
-
--
|
|
96
|
-
--
|
|
111
|
+
--_variantColorDefault: var(--eun-color-warning-100, #c85207);
|
|
112
|
+
--_variantTintDefault: var(--eun-color-warning-30, #fcf5f0);
|
|
97
113
|
}
|
|
98
114
|
:host([appearance="outline"]) #item,
|
|
99
115
|
:host([appearance="flat"]) #item {
|
|
100
116
|
border-radius: var(
|
|
101
117
|
--toggle-group-border-radius,
|
|
102
|
-
var(--eun-
|
|
118
|
+
var(--eun-border-radius-m, 8px)
|
|
103
119
|
);
|
|
104
120
|
}
|
|
105
121
|
:host([appearance="outline"]) #item {
|
|
106
|
-
border: var(--eun-
|
|
122
|
+
border: var(--eun-border-width-s, 1px) solid
|
|
107
123
|
var(--toggle-group-border-color, var(--eun-color-grey-300, #dee0e7));
|
|
108
124
|
}
|
|
109
125
|
:host([appearance="flat"]) #item {
|
|
110
|
-
border: var(--eun-
|
|
126
|
+
border: var(--eun-border-width-s, 1px) solid
|
|
127
|
+
var(--toggle-group-border-color, transparent);
|
|
111
128
|
}
|
|
112
129
|
:host([appearance="outline"][checked]) #item,
|
|
113
130
|
:host([appearance="flat"][checked]) #item {
|
|
114
131
|
background: var(--_variantTint);
|
|
115
|
-
color: var(--_variantColor);
|
|
116
|
-
font-weight: var(--eun-
|
|
132
|
+
color: var(--toggle-group-active-color, var(--_variantColor));
|
|
133
|
+
font-weight: var(--eun-font-weight-b, 700);
|
|
117
134
|
}
|
|
118
135
|
:host([appearance="outline"][checked]) #item {
|
|
119
136
|
border-color: var(--_variantColor);
|
|
120
137
|
}
|
|
121
138
|
:host([appearance="outline"]:not([disabled]):not([checked]):hover) #item,
|
|
122
139
|
:host([appearance="flat"]:not([disabled]):not([checked]):hover) #item {
|
|
123
|
-
color: var(--_variantColor);
|
|
140
|
+
color: var(--toggle-group-hover-color, var(--_variantColor));
|
|
124
141
|
}
|
|
125
142
|
:host([appearance="outline"]:focus-visible) #item,
|
|
126
143
|
:host([appearance="flat"]:focus-visible) #item {
|
|
127
144
|
outline-color: var(--_variantColor);
|
|
128
|
-
color: var(--_variantColor);
|
|
145
|
+
color: var(--toggle-group-hover-color, var(--_variantColor));
|
|
129
146
|
}
|
|
130
147
|
:host([appearance="outline"]:not([disabled]):not([checked]):hover) #item,
|
|
131
148
|
:host([appearance="outline"]:focus-visible) #item {
|
|
@@ -28,7 +28,7 @@ declare const EunomiaToggle_base: import("../../../utils/constructor.type.js").C
|
|
|
28
28
|
* @prop {'default' | 'flat'} [appearance='default'] - The toggle's surface style while not pressed, or always while swap is set. Default keeps the toggle's own bordered look. Flat drops the border for the same muted, low emphasis surface used by a flat button, better suited next to borderless buttons
|
|
29
29
|
* @fires {ChangeEvent} eunchange - Fired whenever checked changes
|
|
30
30
|
* @cssprop [--toggle-background] - Sets the background color while not pressed
|
|
31
|
-
* @cssprop [--toggle-border-color] - Sets the border color while not pressed
|
|
31
|
+
* @cssprop [--toggle-border-color] - Sets the border color while not pressed, for every appearance. The flat appearance has no border by default, so it draws one when set
|
|
32
32
|
* @cssprop [--toggle-border-color-hover] - Sets the border color on hover while not pressed, falling back to toggle-border-color when unset, or staying transparent in the flat appearance
|
|
33
33
|
* @cssprop [--toggle-color] - Sets the text color while not pressed
|
|
34
34
|
* @cssprop [--toggle-active-background] - Sets the background color while pressed. Ignored while swap is set
|
|
@@ -37,7 +37,7 @@ export const EunomiaToggleTagName = "eun-toggle";
|
|
|
37
37
|
* @prop {'default' | 'flat'} [appearance='default'] - The toggle's surface style while not pressed, or always while swap is set. Default keeps the toggle's own bordered look. Flat drops the border for the same muted, low emphasis surface used by a flat button, better suited next to borderless buttons
|
|
38
38
|
* @fires {ChangeEvent} eunchange - Fired whenever checked changes
|
|
39
39
|
* @cssprop [--toggle-background] - Sets the background color while not pressed
|
|
40
|
-
* @cssprop [--toggle-border-color] - Sets the border color while not pressed
|
|
40
|
+
* @cssprop [--toggle-border-color] - Sets the border color while not pressed, for every appearance. The flat appearance has no border by default, so it draws one when set
|
|
41
41
|
* @cssprop [--toggle-border-color-hover] - Sets the border color on hover while not pressed, falling back to toggle-border-color when unset, or staying transparent in the flat appearance
|
|
42
42
|
* @cssprop [--toggle-color] - Sets the text color while not pressed
|
|
43
43
|
* @cssprop [--toggle-active-background] - Sets the background color while pressed. Ignored while swap is set
|
|
@@ -77,7 +77,7 @@ let EunomiaToggle = class EunomiaToggle extends DisabledMixin(LitElement) {
|
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
79
|
this.checked = !this.checked;
|
|
80
|
-
this.dispatchEvent(new ChangeEvent());
|
|
80
|
+
this.dispatchEvent(new ChangeEvent(this.checked));
|
|
81
81
|
};
|
|
82
82
|
/**
|
|
83
83
|
* Activates the toggle with `Enter`/`Space`, following native `<button>`
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Custom css variables:
|
|
5
5
|
* [--toggle-background] - Set a custom background color when not pressed
|
|
6
|
-
* [--toggle-border-color] - Set a custom border color when not pressed
|
|
7
|
-
* [--toggle-border-color-hover] - Set a custom border color on hover state, while not pressed ; falls back to --toggle-border-color (or stays transparent while appearance="flat")
|
|
6
|
+
* [--toggle-border-color] - Set a custom border color when not pressed, for every appearance (flat has no border by default, so it draws one when set)
|
|
7
|
+
* [--toggle-border-color-hover] - Set a custom border color on hover state, while not pressed ; falls back to --toggle-border-color (or stays transparent while appearance="flat" and no border color is set)
|
|
8
8
|
* [--toggle-color] - Set a custom text color when not pressed
|
|
9
9
|
* [--toggle-active-background] - Set a custom background color when pressed
|
|
10
10
|
* [--toggle-active-color] - Set a custom text color when pressed
|
|
@@ -4,8 +4,8 @@ import { css } from "lit";
|
|
|
4
4
|
*
|
|
5
5
|
* Custom css variables:
|
|
6
6
|
* [--toggle-background] - Set a custom background color when not pressed
|
|
7
|
-
* [--toggle-border-color] - Set a custom border color when not pressed
|
|
8
|
-
* [--toggle-border-color-hover] - Set a custom border color on hover state, while not pressed ; falls back to --toggle-border-color (or stays transparent while appearance="flat")
|
|
7
|
+
* [--toggle-border-color] - Set a custom border color when not pressed, for every appearance (flat has no border by default, so it draws one when set)
|
|
8
|
+
* [--toggle-border-color-hover] - Set a custom border color on hover state, while not pressed ; falls back to --toggle-border-color (or stays transparent while appearance="flat" and no border color is set)
|
|
9
9
|
* [--toggle-color] - Set a custom text color when not pressed
|
|
10
10
|
* [--toggle-active-background] - Set a custom background color when pressed
|
|
11
11
|
* [--toggle-active-color] - Set a custom text color when pressed
|
|
@@ -38,8 +38,8 @@ export const toggleStyles = css `
|
|
|
38
38
|
gap: var(--eun-space-xs, 4px);
|
|
39
39
|
cursor: pointer;
|
|
40
40
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
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
|
text-transform: capitalize;
|
|
44
44
|
color: var(--toggle-color, var(--eun-color-grey-600, #666e8a));
|
|
45
45
|
padding: var(
|
|
@@ -47,9 +47,9 @@ export const toggleStyles = css `
|
|
|
47
47
|
calc(var(--eun-space-xs, 4px) * 1.5) var(--eun-space-m, 16px)
|
|
48
48
|
);
|
|
49
49
|
outline: 2px solid transparent;
|
|
50
|
-
border-radius: var(--toggle-border-radius, var(--eun-
|
|
51
|
-
background: var(--toggle-background, var(--eun-
|
|
52
|
-
border: var(--toggle-border-size, var(--eun-
|
|
50
|
+
border-radius: var(--toggle-border-radius, var(--eun-border-radius-m, 8px));
|
|
51
|
+
background: var(--toggle-background, var(--eun-surface-sunken, #f7f8fa));
|
|
52
|
+
border: var(--toggle-border-size, var(--eun-border-width-s, 1px)) solid
|
|
53
53
|
var(--toggle-border-color, var(--eun-color-grey-300, #dee0e7));
|
|
54
54
|
box-shadow: var(--_boxShadow);
|
|
55
55
|
transition:
|
|
@@ -92,11 +92,14 @@ export const toggleStyles = css `
|
|
|
92
92
|
);
|
|
93
93
|
}
|
|
94
94
|
:host([appearance="flat"]:not([disabled])) #toggle {
|
|
95
|
-
background: var(--toggle-background, var(--eun-
|
|
96
|
-
border-color: transparent;
|
|
95
|
+
background: var(--toggle-background, var(--eun-surface-sunken, #f7f8fa));
|
|
96
|
+
border-color: var(--toggle-border-color, transparent);
|
|
97
97
|
}
|
|
98
98
|
:host([appearance="flat"]:not([disabled]):hover) #toggle {
|
|
99
|
-
border-color: var(
|
|
99
|
+
border-color: var(
|
|
100
|
+
--toggle-border-color-hover,
|
|
101
|
+
var(--toggle-border-color, transparent)
|
|
102
|
+
);
|
|
100
103
|
}
|
|
101
104
|
:host([checked]:not([swap])) #toggle {
|
|
102
105
|
background: var(
|
|
@@ -46,9 +46,10 @@ type AlertAppearance = EunomiaDisplayAppearance;
|
|
|
46
46
|
* @prop {boolean} [closeable=false] - Shows a close button. Clicking it fires the close event without changing the alert's own rendering
|
|
47
47
|
* @prop {string} [ariaLabelClose='Close'] - The accessible label of the close button
|
|
48
48
|
* @attr {string} [aria-label-close='Close'] - The accessible label of the close button
|
|
49
|
-
* @cssprop [--alert-background-color] - Sets the background color
|
|
50
|
-
* @cssprop [--alert-border-color] - Sets the border color
|
|
51
|
-
* @cssprop [--alert-
|
|
49
|
+
* @cssprop [--alert-background-color] - Sets the background color, for every appearance and severity
|
|
50
|
+
* @cssprop [--alert-border-color] - Sets the border color, for every appearance and severity: the leading accent of the default appearance, and the border of every other one
|
|
51
|
+
* @cssprop [--alert-border-width] - Sets the border width, for every appearance. The border takes room out of the padding, so it keeps its size
|
|
52
|
+
* @cssprop [--alert-color] - Sets the heading, icon and link color, for every appearance and severity. The icon always matches this unless alert-icon-color overrides it
|
|
52
53
|
* @cssprop [--alert-icon-color] - Sets the icon color only, independently of the heading. Defaults to matching alert-color or the severity accent
|
|
53
54
|
* @cssprop [--alert-content-color] - Sets the color of the description and action content, independently of the heading and icon color
|
|
54
55
|
* @cssprop [--alert-border-radius] - Sets the corner radius of the alert
|
|
@@ -49,9 +49,10 @@ export const EunomiaAlertTagName = "eun-alert";
|
|
|
49
49
|
* @prop {boolean} [closeable=false] - Shows a close button. Clicking it fires the close event without changing the alert's own rendering
|
|
50
50
|
* @prop {string} [ariaLabelClose='Close'] - The accessible label of the close button
|
|
51
51
|
* @attr {string} [aria-label-close='Close'] - The accessible label of the close button
|
|
52
|
-
* @cssprop [--alert-background-color] - Sets the background color
|
|
53
|
-
* @cssprop [--alert-border-color] - Sets the border color
|
|
54
|
-
* @cssprop [--alert-
|
|
52
|
+
* @cssprop [--alert-background-color] - Sets the background color, for every appearance and severity
|
|
53
|
+
* @cssprop [--alert-border-color] - Sets the border color, for every appearance and severity: the leading accent of the default appearance, and the border of every other one
|
|
54
|
+
* @cssprop [--alert-border-width] - Sets the border width, for every appearance. The border takes room out of the padding, so it keeps its size
|
|
55
|
+
* @cssprop [--alert-color] - Sets the heading, icon and link color, for every appearance and severity. The icon always matches this unless alert-icon-color overrides it
|
|
55
56
|
* @cssprop [--alert-icon-color] - Sets the icon color only, independently of the heading. Defaults to matching alert-color or the severity accent
|
|
56
57
|
* @cssprop [--alert-content-color] - Sets the color of the description and action content, independently of the heading and icon color
|
|
57
58
|
* @cssprop [--alert-border-radius] - Sets the corner radius of the alert
|