@eunomia/elements 1.0.0-beta.3 → 1.0.0-beta.5
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-EAGGN3ZI.js → chunk-2XASWWKR.js} +9 -9
- package/dist/cdn/components/chunks/chunk-32DTNR52.js +1 -0
- package/dist/cdn/components/chunks/chunk-3MTUVMM5.js +1 -0
- package/dist/cdn/components/chunks/chunk-5GKM5DIB.js +1 -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-TBKKTJOX.js → chunk-6ETDXUH2.js} +3 -3
- 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-NEYBPT3D.js → chunk-AIS3UICU.js} +9 -9
- package/dist/cdn/components/chunks/{chunk-LJYTHDZP.js → chunk-D2M4BV5Y.js} +6 -6
- package/dist/cdn/components/chunks/chunk-DKOPI7QA.js +415 -0
- package/dist/cdn/components/chunks/{chunk-53QH6MPM.js → chunk-EAKYD33D.js} +3 -3
- package/dist/cdn/components/chunks/chunk-EST3M4AO.js +1 -0
- package/dist/cdn/components/chunks/{chunk-BYBUXKXC.js → chunk-IDKZKLJR.js} +7 -7
- package/dist/cdn/components/chunks/chunk-JRGM3W7I.js +53 -0
- package/dist/cdn/components/chunks/{chunk-RWONCXTF.js → chunk-KVYUNKUO.js} +2 -2
- package/dist/cdn/components/chunks/{chunk-6UPI7GHJ.js → chunk-L65WUTXM.js} +12 -12
- package/dist/cdn/components/chunks/chunk-LFCXUVDO.js +1 -0
- package/dist/cdn/components/chunks/chunk-LGLQ36QB.js +16 -0
- package/dist/cdn/components/chunks/chunk-MPQP4R54.js +263 -0
- package/dist/cdn/components/chunks/{chunk-ON42P6FI.js → chunk-NBIENHLV.js} +6 -6
- package/dist/cdn/components/chunks/chunk-OAULRKHQ.js +38 -0
- package/dist/cdn/components/chunks/chunk-OW7XKDCH.js +124 -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-5C7YND22.js → chunk-S2UCEWNG.js} +8 -8
- package/dist/cdn/components/chunks/{chunk-5RCCZVFZ.js → chunk-SD2WHGPF.js} +7 -6
- package/dist/cdn/components/chunks/chunk-SJWRE6PW.js +1 -0
- package/dist/cdn/components/chunks/{chunk-6IILPCSQ.js → chunk-X2AUBZD2.js} +3 -3
- package/dist/cdn/components/eun-alert.js +65 -45
- package/dist/cdn/components/eun-animate.js +5 -3
- package/dist/cdn/components/eun-badge.js +8 -8
- 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 +20 -20
- package/dist/cdn/components/eun-card.js +61 -13
- package/dist/cdn/components/eun-carousel.js +35 -27
- 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 -207
- package/dist/cdn/components/eun-collapse.js +49 -29
- package/dist/cdn/components/eun-color-picker.js +13 -13
- package/dist/cdn/components/eun-counter.js +15 -15
- package/dist/cdn/components/eun-date-picker.js +62 -62
- package/dist/cdn/components/eun-drawer.js +12 -12
- 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 +18 -18
- package/dist/cdn/components/eun-infinite-list.js +1 -1
- package/dist/cdn/components/eun-input-file.js +12 -12
- package/dist/cdn/components/eun-input-phone.js +28 -28
- 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 +134 -18
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +21 -21
- 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 +1 -1
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-scheduler-event-editor.js +9 -9
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +26 -26
- package/dist/cdn/components/eun-search.js +21 -21
- package/dist/cdn/components/eun-select.js +10 -10
- package/dist/cdn/components/eun-sidebar.js +9 -9
- package/dist/cdn/components/eun-skeleton.js +1 -1
- package/dist/cdn/components/eun-slider.js +8 -8
- package/dist/cdn/components/eun-sliding-card.js +4 -3
- 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 -126
- package/dist/cdn/components/eun-textarea.js +23 -23
- package/dist/cdn/components/eun-time-picker.js +32 -32
- package/dist/cdn/components/eun-toast.js +40 -36
- package/dist/cdn/components/eun-toggle-group.js +213 -72
- package/dist/cdn/components/eun-toggle-item.js +49 -30
- package/dist/cdn/components/eun-toggle.js +12 -9
- package/dist/cdn/components/eun-toolbar.js +15 -8
- 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 +44 -15
- package/dist/components/action/button/button.js +100 -20
- package/dist/components/action/button/button.styles.js +179 -393
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +13 -6
- package/dist/components/action/dropdown-button/dropdown-button.js +16 -5
- 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 +7 -4
- package/dist/components/action/fab/fab.js +11 -6
- package/dist/components/action/fab/fab.styles.js +26 -49
- package/dist/components/action/link/link.d.ts +115 -6
- package/dist/components/action/link/link.js +245 -21
- package/dist/components/action/link/link.styles.js +105 -3
- 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 +55 -11
- package/dist/components/action/toggle/toggle-group.js +193 -52
- package/dist/components/action/toggle/toggle-group.styles.d.ts +7 -5
- package/dist/components/action/toggle/toggle-group.styles.js +166 -41
- package/dist/components/action/toggle/toggle-item.d.ts +4 -4
- package/dist/components/action/toggle/toggle-item.js +2 -2
- package/dist/components/action/toggle/toggle-item.styles.js +45 -26
- package/dist/components/action/toggle/toggle.d.ts +1 -1
- package/dist/components/action/toggle/toggle.js +1 -1
- 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.js +1 -1
- package/dist/components/alert/drawer/drawer.styles.js +3 -3
- package/dist/components/alert/modal/modal.d.ts +8 -8
- package/dist/components/alert/modal/modal.js +11 -11
- 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.d.ts +6 -6
- package/dist/components/content/badge/badge.js +4 -4
- package/dist/components/content/badge/badge.styles.js +5 -5
- package/dist/components/content/card/card.d.ts +36 -8
- package/dist/components/content/card/card.js +68 -8
- package/dist/components/content/card/card.styles.js +52 -11
- package/dist/components/content/card/image-card.d.ts +3 -2
- package/dist/components/content/card/image-card.js +2 -1
- package/dist/components/content/card/image-card.styles.js +17 -10
- package/dist/components/content/card/sliding-card.d.ts +2 -1
- package/dist/components/content/card/sliding-card.js +1 -0
- package/dist/components/content/card/sliding-card.styles.js +3 -2
- 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 -207
- package/dist/components/content/collapse/collapse.d.ts +29 -11
- package/dist/components/content/collapse/collapse.js +53 -23
- package/dist/components/content/collapse/collapse.styles.js +23 -9
- package/dist/components/content/icon/icon.d.ts +12 -2
- package/dist/components/content/icon/icon.js +52 -22
- package/dist/components/content/icon/icon.style.d.ts +2 -0
- package/dist/components/content/icon/icon.style.js +5 -2
- 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/card-link.styles.js +1 -0
- 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 -125
- 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.d.ts +1 -1
- package/dist/components/form/checkbox/checkbox.styles.js +6 -6
- package/dist/components/form/color-picker/color-picker.d.ts +3 -3
- package/dist/components/form/color-picker/color-picker.js +4 -4
- package/dist/components/form/color-picker/color-picker.styles.js +7 -7
- package/dist/components/form/counter/counter.d.ts +3 -3
- package/dist/components/form/counter/counter.js +3 -3
- package/dist/components/form/counter/counter.styles.js +12 -12
- 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 +3 -3
- package/dist/components/form/date-picker/date-picker.js +3 -3
- package/dist/components/form/date-picker/date-picker.styles.js +17 -17
- package/dist/components/form/input/input.d.ts +3 -3
- package/dist/components/form/input/input.js +4 -4
- package/dist/components/form/input-file/input-file.d.ts +1 -1
- package/dist/components/form/input-file/input-file.styles.js +9 -9
- package/dist/components/form/input-phone/input-phone.d.ts +3 -3
- package/dist/components/form/input-phone/input-phone.js +3 -3
- package/dist/components/form/input-phone/input-phone.styles.js +19 -19
- 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.d.ts +1 -1
- package/dist/components/form/radio/radio.styles.js +2 -2
- package/dist/components/form/search/search.styles.js +9 -9
- package/dist/components/form/select/select.d.ts +3 -3
- package/dist/components/form/select/select.js +3 -3
- package/dist/components/form/select/select.styles.js +6 -6
- package/dist/components/form/shared-styles/card.styles.js +1 -1
- package/dist/components/form/shared-styles/field.styles.js +12 -12
- 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.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 +3 -3
- 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 +3 -3
- package/dist/components/form/time-picker/time-picker.js +3 -3
- package/dist/components/form/time-picker/time-picker.styles.js +13 -13
- package/dist/components/layout/animate/animate.d.ts +8 -0
- package/dist/components/layout/animate/animate.js +20 -8
- 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 +19 -7
- 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 +2 -0
- package/dist/components/navigation/toolbar/toolbar.js +2 -0
- package/dist/components/navigation/toolbar/toolbar.styles.js +16 -7
- package/dist/features/scheduler/calendar/calendar.d.ts +6 -6
- package/dist/features/scheduler/calendar/calendar.js +10 -10
- package/dist/features/scheduler/calendar/calendar.styles.js +3 -3
- package/dist/features/scheduler/scheduler/scheduler.d.ts +6 -6
- package/dist/features/scheduler/scheduler/scheduler.js +13 -13
- package/dist/features/scheduler/scheduler/scheduler.styles.js +2 -2
- package/dist/features/scheduler/scheduler-event/scheduler-event.d.ts +10 -8
- package/dist/features/scheduler/scheduler-event/scheduler-event.js +7 -7
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +8 -8
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +5 -5
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.styles.js +2 -2
- package/dist/features/scheduler/shared/scheduler-event-popover.js +2 -2
- package/dist/features/scheduler/shared/scheduler-event-popover.styles.js +4 -4
- package/dist/features/scheduler/shared/scheduler-hour-grid.d.ts +2 -2
- package/dist/features/scheduler/shared/scheduler-hour-grid.js +3 -3
- package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +1 -1
- package/dist/features/scheduler/shared/scheduler-month-view.d.ts +3 -3
- package/dist/features/scheduler/shared/scheduler-month-view.js +2 -2
- package/dist/features/scheduler/shared/scheduler-month-view.styles.js +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/table.types.d.ts +7 -3
- package/dist/features/table/table-action-bar/table-action-bar.js +3 -3
- 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-managed/table-managed.js +2 -2
- package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.js +1 -1
- package/dist/i18n/en.d.ts +3 -0
- package/dist/i18n/en.js +3 -0
- package/dist/i18n/fr.js +3 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.js +5 -2
- package/dist/jsx.d.ts +19 -6
- package/dist/mixins/button.mixin.d.ts +11 -9
- package/dist/mixins/button.mixin.js +23 -5
- package/dist/mixins/card-link.mixin.d.ts +3 -2
- package/dist/mixins/card-link.mixin.js +12 -5
- package/dist/mixins/check.mixin.d.ts +1 -1
- package/dist/mixins/disabled.mixin.d.ts +3 -3
- package/dist/mixins/disabled.mixin.js +10 -5
- package/dist/mixins/editable.mixin.d.ts +1 -1
- package/dist/mixins/field-appearance.mixin.d.ts +19 -0
- package/dist/mixins/{field-variant.mixin.js → field-appearance.mixin.js} +11 -11
- package/dist/mixins/form.mixin.d.ts +5 -1
- package/dist/mixins/form.mixin.js +32 -12
- package/dist/mixins/overflow-navigation.mixin.js +2 -1
- package/dist/mixins/radio.mixin.d.ts +1 -1
- package/dist/mixins/validators.mixin.d.ts +9 -3
- package/dist/ssr/animate-ssr.css +26 -72
- package/dist/ssr/links-ssr.css +35 -0
- package/dist/ssr/overlay-ssr.css +0 -41
- package/dist/ssr/rich-text.css +38 -0
- package/dist/ssr/sidebar-ssr.css +0 -38
- package/dist/ssr/toolbar-ssr.css +73 -39
- package/dist/types/variant.type.d.ts +26 -10
- package/dist/utils/navigation.utils.d.ts +14 -0
- package/dist/utils/navigation.utils.js +33 -0
- package/dist/utils/new-tab-anchor.controller.d.ts +44 -0
- package/dist/utils/new-tab-anchor.controller.js +102 -0
- package/dist/utils/rich-text.utils.d.ts +33 -0
- package/dist/utils/rich-text.utils.js +140 -49
- package/dist/utils/severity-icon.utils.d.ts +1 -1
- package/dist/utils/severity-icon.utils.js +1 -1
- package/dist/utils/theme-generator.utils.d.ts +26 -3
- package/dist/utils/theme-generator.utils.js +68 -21
- package/package.json +13 -2
- 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-3LMI7KUA.js +0 -48
- package/dist/cdn/components/chunks/chunk-5TH3P53V.js +0 -16
- package/dist/cdn/components/chunks/chunk-ATH2OAMU.js +0 -1
- package/dist/cdn/components/chunks/chunk-BKHD4S57.js +0 -1
- package/dist/cdn/components/chunks/chunk-KNM5QHDK.js +0 -38
- package/dist/cdn/components/chunks/chunk-MBF52GEL.js +0 -1
- package/dist/cdn/components/chunks/chunk-T7WABJEJ.js +0 -1
- package/dist/cdn/components/chunks/chunk-XSMCT4DF.js +0 -1
- package/dist/cdn/components/chunks/chunk-Z6PJYSC3.js +0 -622
- package/dist/cdn/components/chunks/chunk-ZKPCO5RB.js +0 -262
- package/dist/mixins/field-variant.mixin.d.ts +0 -22
|
@@ -3,50 +3,154 @@ 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 color
|
|
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
|
+
* [--toggle-group-box-shadow] - Set a custom box shadow on the track itself, for every appearance, none by default
|
|
16
17
|
* [--toggle-group-shadow] - Set a custom box shadow on every option (and the sliding indicator, in exclusive mode), none by default
|
|
17
18
|
* [--toggle-group-shadow-hover] - Set a custom box shadow on hover state, for an unselected option ; falls back to `--toggle-group-shadow`
|
|
19
|
+
* [--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
20
|
*/
|
|
19
21
|
export const toggleGroupStyles = css `
|
|
20
22
|
:host {
|
|
21
23
|
display: inline-flex;
|
|
24
|
+
width: fit-content;
|
|
25
|
+
max-width: 100%;
|
|
26
|
+
--_arrowsColor: var(
|
|
27
|
+
--toggle-group-arrows-color,
|
|
28
|
+
var(--eun-surface-sunken, #f7f8fa)
|
|
29
|
+
);
|
|
30
|
+
--_arrowsBase: var(
|
|
31
|
+
--toggle-group-arrows-color,
|
|
32
|
+
var(--eun-surface-color, #ffffff)
|
|
33
|
+
);
|
|
22
34
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
23
|
-
font-size: var(--eun-
|
|
35
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
36
|
+
}
|
|
37
|
+
:host([appearance="outline"]),
|
|
38
|
+
:host([appearance="flat"]) {
|
|
39
|
+
--_arrowsColor: var(
|
|
40
|
+
--toggle-group-arrows-color,
|
|
41
|
+
var(--eun-surface-color, #ffffff)
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
:host([full]) {
|
|
45
|
+
display: flex;
|
|
46
|
+
width: 100%;
|
|
24
47
|
}
|
|
25
48
|
:host([disabled]) {
|
|
26
49
|
opacity: 0.5;
|
|
27
50
|
}
|
|
28
|
-
#
|
|
51
|
+
#scrollable-wrapper {
|
|
52
|
+
position: relative;
|
|
53
|
+
min-width: 0;
|
|
54
|
+
}
|
|
55
|
+
:host([full]) #scrollable-wrapper {
|
|
56
|
+
width: 100%;
|
|
57
|
+
}
|
|
58
|
+
#scrollable {
|
|
29
59
|
position: relative;
|
|
60
|
+
box-sizing: border-box;
|
|
30
61
|
display: inline-flex;
|
|
62
|
+
max-width: 100%;
|
|
31
63
|
gap: var(--toggle-group-gap, var(--eun-space-xs, 4px));
|
|
32
64
|
padding: var(--toggle-group-padding, 4px);
|
|
33
65
|
border-radius: var(
|
|
34
66
|
--toggle-group-border-radius,
|
|
35
|
-
var(--eun-
|
|
67
|
+
var(--eun-border-radius-m, 8px)
|
|
36
68
|
);
|
|
37
69
|
background: var(
|
|
38
70
|
--toggle-group-background,
|
|
39
|
-
var(--eun-
|
|
71
|
+
var(--eun-surface-sunken, #f7f8fa)
|
|
40
72
|
);
|
|
41
|
-
border: var(--eun-
|
|
73
|
+
border: var(--eun-border-width-s, 1px) solid
|
|
42
74
|
var(--toggle-group-border-color, var(--eun-color-grey-300, #dee0e7));
|
|
75
|
+
box-shadow: var(--toggle-group-box-shadow, none);
|
|
76
|
+
scrollbar-width: none;
|
|
77
|
+
overflow-x: hidden;
|
|
43
78
|
}
|
|
44
|
-
:
|
|
45
|
-
|
|
79
|
+
#scrollable:not(.settled) {
|
|
80
|
+
--_toggleTransition: none;
|
|
81
|
+
--icon-transition: none;
|
|
82
|
+
}
|
|
83
|
+
#scrollable::-webkit-scrollbar {
|
|
84
|
+
display: none;
|
|
85
|
+
}
|
|
86
|
+
:has(#arrows arrow-container.visible) #scrollable {
|
|
87
|
+
overflow-x: scroll;
|
|
88
|
+
}
|
|
89
|
+
:host([full]) #scrollable {
|
|
90
|
+
width: 100%;
|
|
91
|
+
}
|
|
92
|
+
:host([appearance="outline"]) #scrollable,
|
|
93
|
+
:host([appearance="flat"]) #scrollable {
|
|
46
94
|
padding: 0;
|
|
47
|
-
background: transparent;
|
|
95
|
+
background: var(--toggle-group-background, transparent);
|
|
48
96
|
border: none;
|
|
49
97
|
}
|
|
98
|
+
#arrows {
|
|
99
|
+
position: absolute;
|
|
100
|
+
inset: 0;
|
|
101
|
+
z-index: 2;
|
|
102
|
+
pointer-events: none;
|
|
103
|
+
}
|
|
104
|
+
arrow-container {
|
|
105
|
+
position: absolute;
|
|
106
|
+
top: 0;
|
|
107
|
+
height: 100%;
|
|
108
|
+
opacity: 0;
|
|
109
|
+
min-width: 24px;
|
|
110
|
+
pointer-events: none;
|
|
111
|
+
transition: opacity 0.2s ease;
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
}
|
|
115
|
+
arrow-container.visible {
|
|
116
|
+
opacity: 1;
|
|
117
|
+
pointer-events: all;
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
}
|
|
120
|
+
arrow-container:nth-of-type(1) {
|
|
121
|
+
left: 0;
|
|
122
|
+
justify-content: flex-start;
|
|
123
|
+
background:
|
|
124
|
+
linear-gradient(
|
|
125
|
+
90deg,
|
|
126
|
+
var(--_arrowsColor) 0%,
|
|
127
|
+
var(--_arrowsColor) 60%,
|
|
128
|
+
transparent 100%
|
|
129
|
+
),
|
|
130
|
+
linear-gradient(
|
|
131
|
+
90deg,
|
|
132
|
+
var(--_arrowsBase) 0%,
|
|
133
|
+
var(--_arrowsBase) 60%,
|
|
134
|
+
transparent 100%
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
arrow-container:nth-of-type(2) {
|
|
138
|
+
right: 0;
|
|
139
|
+
justify-content: flex-end;
|
|
140
|
+
background:
|
|
141
|
+
linear-gradient(
|
|
142
|
+
90deg,
|
|
143
|
+
transparent 0%,
|
|
144
|
+
var(--_arrowsColor) 40%,
|
|
145
|
+
var(--_arrowsColor) 100%
|
|
146
|
+
),
|
|
147
|
+
linear-gradient(
|
|
148
|
+
90deg,
|
|
149
|
+
transparent 0%,
|
|
150
|
+
var(--_arrowsBase) 40%,
|
|
151
|
+
var(--_arrowsBase) 100%
|
|
152
|
+
);
|
|
153
|
+
}
|
|
50
154
|
#indicator {
|
|
51
155
|
position: absolute;
|
|
52
156
|
top: var(--toggle-group-padding, 4px);
|
|
@@ -56,7 +160,7 @@ export const toggleGroupStyles = css `
|
|
|
56
160
|
opacity: 0;
|
|
57
161
|
z-index: 0;
|
|
58
162
|
border-radius: calc(
|
|
59
|
-
var(--toggle-group-border-radius, var(--eun-
|
|
163
|
+
var(--toggle-group-border-radius, var(--eun-border-radius-m, 8px)) - 3px
|
|
60
164
|
);
|
|
61
165
|
background: var(
|
|
62
166
|
--toggle-group-active-background,
|
|
@@ -84,33 +188,51 @@ export const toggleGroupStyles = css `
|
|
|
84
188
|
--_hoverBackground: var(--toggle-group-hover-background, transparent);
|
|
85
189
|
--_boxShadow: var(--toggle-group-shadow, none);
|
|
86
190
|
--_boxShadow-hover: var(--toggle-group-shadow-hover, var(--_boxShadow));
|
|
191
|
+
--_variantColorDefault: var(--eun-color-primary-500, #3d6fff);
|
|
192
|
+
--_variantTintDefault: var(--eun-color-primary-transparent, #3d6fff33);
|
|
87
193
|
--_variantColor: var(
|
|
88
194
|
--toggle-group-active-background,
|
|
89
|
-
var(--
|
|
195
|
+
var(--_variantColorDefault)
|
|
196
|
+
);
|
|
197
|
+
--_variantTint: var(--_customTint, var(--_variantTintDefault));
|
|
198
|
+
--_customTint: color-mix(
|
|
199
|
+
in srgb,
|
|
200
|
+
var(--toggle-group-active-background) 15%,
|
|
201
|
+
transparent
|
|
90
202
|
);
|
|
91
|
-
--_variantTint: var(--eun-color-primary-transparent, #3d6fff33);
|
|
92
203
|
position: relative;
|
|
93
204
|
z-index: 1;
|
|
94
205
|
display: inline-flex;
|
|
95
206
|
align-items: center;
|
|
207
|
+
flex-shrink: 0;
|
|
96
208
|
gap: var(--eun-space-xs, 4px);
|
|
97
209
|
font: inherit;
|
|
98
210
|
text-transform: capitalize;
|
|
211
|
+
white-space: nowrap;
|
|
99
212
|
cursor: pointer;
|
|
100
213
|
border: none;
|
|
101
214
|
background: transparent;
|
|
102
215
|
color: var(--toggle-group-color, var(--eun-color-grey-600, #666e8a));
|
|
103
216
|
padding: calc(var(--eun-space-xs, 4px) * 1.5) var(--eun-space-m, 16px);
|
|
104
|
-
font-weight: var(--eun-
|
|
217
|
+
font-weight: var(--eun-font-weight-m, 500);
|
|
105
218
|
outline: 2px solid transparent;
|
|
106
219
|
border-radius: calc(
|
|
107
|
-
var(--toggle-group-border-radius, var(--eun-
|
|
220
|
+
var(--toggle-group-border-radius, var(--eun-border-radius-m, 8px)) - 3px
|
|
108
221
|
);
|
|
109
222
|
box-shadow: var(--_boxShadow);
|
|
110
|
-
transition:
|
|
223
|
+
transition: var(
|
|
224
|
+
--_toggleTransition,
|
|
111
225
|
background-color 0.2s ease-out,
|
|
112
226
|
color 0.2s ease-out,
|
|
113
|
-
box-shadow 0.2s ease-out
|
|
227
|
+
box-shadow 0.2s ease-out
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
:host([full]) button,
|
|
231
|
+
:host([full]) ::slotted(eun-toggle-item) {
|
|
232
|
+
flex: 1 1 0%;
|
|
233
|
+
}
|
|
234
|
+
:host([full]) button {
|
|
235
|
+
justify-content: center;
|
|
114
236
|
}
|
|
115
237
|
:host(:not([disabled])) button:hover {
|
|
116
238
|
box-shadow: var(--_boxShadow-hover);
|
|
@@ -129,13 +251,15 @@ export const toggleGroupStyles = css `
|
|
|
129
251
|
button[disabled] {
|
|
130
252
|
cursor: not-allowed;
|
|
131
253
|
}
|
|
132
|
-
:host([appearance="default"]) #
|
|
254
|
+
:host([appearance="default"]) #scrollable:has(#indicator) button.active {
|
|
133
255
|
color: var(
|
|
134
256
|
--toggle-group-active-color,
|
|
135
257
|
var(--eun-color-on-primary-500, #ffffff)
|
|
136
258
|
);
|
|
137
259
|
}
|
|
138
|
-
:host([appearance="default"])
|
|
260
|
+
:host([appearance="default"])
|
|
261
|
+
#scrollable:not(:has(#indicator))
|
|
262
|
+
button.active {
|
|
139
263
|
background: var(
|
|
140
264
|
--toggle-group-active-background,
|
|
141
265
|
var(--eun-color-primary-500, #3d6fff)
|
|
@@ -150,52 +274,53 @@ export const toggleGroupStyles = css `
|
|
|
150
274
|
padding: 6px;
|
|
151
275
|
}
|
|
152
276
|
|
|
153
|
-
button[data-
|
|
154
|
-
--
|
|
155
|
-
--
|
|
277
|
+
button[data-color="secondary"] {
|
|
278
|
+
--_variantColorDefault: var(--eun-color-secondary-500, #e5a030);
|
|
279
|
+
--_variantTintDefault: var(--eun-color-secondary-transparent, #e5a03033);
|
|
156
280
|
}
|
|
157
|
-
button[data-
|
|
158
|
-
--
|
|
159
|
-
--
|
|
281
|
+
button[data-color="critical"] {
|
|
282
|
+
--_variantColorDefault: var(--eun-color-critical-100, #aa0014);
|
|
283
|
+
--_variantTintDefault: var(--eun-color-critical-30, #faf0f1);
|
|
160
284
|
}
|
|
161
|
-
button[data-
|
|
162
|
-
--
|
|
163
|
-
--
|
|
285
|
+
button[data-color="success"] {
|
|
286
|
+
--_variantColorDefault: var(--eun-color-success-100, #1a9948);
|
|
287
|
+
--_variantTintDefault: var(--eun-color-success-30, #f1f9f4);
|
|
164
288
|
}
|
|
165
|
-
button[data-
|
|
166
|
-
--
|
|
167
|
-
--
|
|
289
|
+
button[data-color="warning"] {
|
|
290
|
+
--_variantColorDefault: var(--eun-color-warning-100, #c85207);
|
|
291
|
+
--_variantTintDefault: var(--eun-color-warning-30, #fcf5f0);
|
|
168
292
|
}
|
|
169
293
|
:host([appearance="outline"]) button,
|
|
170
294
|
:host([appearance="flat"]) button {
|
|
171
295
|
border-radius: var(
|
|
172
296
|
--toggle-group-border-radius,
|
|
173
|
-
var(--eun-
|
|
297
|
+
var(--eun-border-radius-m, 8px)
|
|
174
298
|
);
|
|
175
299
|
}
|
|
176
300
|
:host([appearance="outline"]) button {
|
|
177
|
-
border: var(--eun-
|
|
301
|
+
border: var(--eun-border-width-s, 1px) solid
|
|
178
302
|
var(--toggle-group-border-color, var(--eun-color-grey-300, #dee0e7));
|
|
179
303
|
}
|
|
180
304
|
:host([appearance="flat"]) button {
|
|
181
|
-
border: var(--eun-
|
|
305
|
+
border: var(--eun-border-width-s, 1px) solid
|
|
306
|
+
var(--toggle-group-border-color, transparent);
|
|
182
307
|
}
|
|
183
308
|
:host([appearance="outline"]) button.active,
|
|
184
309
|
:host([appearance="flat"]) button.active {
|
|
185
310
|
background: var(--_variantTint);
|
|
186
|
-
color: var(--_variantColor);
|
|
187
|
-
font-weight: var(--eun-
|
|
311
|
+
color: var(--toggle-group-active-color, var(--_variantColor));
|
|
312
|
+
font-weight: var(--eun-font-weight-b, 700);
|
|
188
313
|
}
|
|
189
314
|
:host([appearance="outline"]) button.active {
|
|
190
315
|
border-color: var(--_variantColor);
|
|
191
316
|
}
|
|
192
317
|
:host([appearance="outline"]:not([disabled])) button:not(.active):hover,
|
|
193
318
|
:host([appearance="flat"]:not([disabled])) button:not(.active):hover {
|
|
194
|
-
color: var(--_variantColor);
|
|
319
|
+
color: var(--toggle-group-hover-color, var(--_variantColor));
|
|
195
320
|
}
|
|
196
321
|
:host([appearance="outline"]) button:focus-visible,
|
|
197
322
|
:host([appearance="flat"]) button:focus-visible {
|
|
198
323
|
outline-color: var(--_variantColor);
|
|
199
|
-
color: var(--_variantColor);
|
|
324
|
+
color: var(--toggle-group-hover-color, var(--_variantColor));
|
|
200
325
|
}
|
|
201
326
|
`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, PropertyValues, TemplateResult } from "lit";
|
|
2
2
|
import { EunomiaIconName } from "../../content/icon/icon.type.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ButtonColor } from "../../../mixins/button.mixin.js";
|
|
4
4
|
/**
|
|
5
5
|
* Tag name of the toggle item component.
|
|
6
6
|
*/
|
|
@@ -18,7 +18,7 @@ declare const EunomiaToggleItem_base: import("../../../utils/constructor.type.js
|
|
|
18
18
|
* @csspart item - The item's own surface box, carrying its padding, background, and border. Exposed for effects the item's CSS custom properties don't cover
|
|
19
19
|
* @prop {string} value - The value reported when this option is selected
|
|
20
20
|
* @prop {EunomiaIconName} icon - An icon shown before the slotted content. For an icon only item, also set an accessible label yourself, since there's no label property to derive one from
|
|
21
|
-
* @prop {'primary' | 'secondary' | 'critical' | 'success' | 'warning'} [
|
|
21
|
+
* @prop {'primary' | 'secondary' | 'critical' | 'success' | 'warning'} [color] - This item's own color, used once the parent group's appearance isn't default. It renders as neutral at rest, taking on this color only once selected, and defaults to primary when unset. Ignored entirely in the default appearance
|
|
22
22
|
* @prop {boolean} [disabled=false] - Whether this option is disabled
|
|
23
23
|
* @prop {boolean} [checked=false] - Whether this option is currently selected. Set by the parent toggle group, and shouldn't be set directly
|
|
24
24
|
* @element eun-toggle-item
|
|
@@ -43,11 +43,11 @@ export declare class EunomiaToggleItem extends EunomiaToggleItem_base {
|
|
|
43
43
|
/**
|
|
44
44
|
* This item's own semantic color, once the parent group's `appearance`
|
|
45
45
|
* isn't `default` — see `eun-toggle-group`'s own `appearance`/
|
|
46
|
-
* `
|
|
46
|
+
* `ButtonColor` doc. Falls back to a neutral style at rest, taking on
|
|
47
47
|
* this color only once selected ; unset defaults to `primary`. Ignored
|
|
48
48
|
* entirely in `default` appearance.
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
color?: ButtonColor;
|
|
51
51
|
/**
|
|
52
52
|
* Indicates whether this option is currently selected.
|
|
53
53
|
* Owned by the parent `eun-toggle-group` ; do not set directly.
|
|
@@ -35,7 +35,7 @@ const TOGGLE_GROUP_TAG_NAME = "eun-toggle-group";
|
|
|
35
35
|
* @csspart item - The item's own surface box, carrying its padding, background, and border. Exposed for effects the item's CSS custom properties don't cover
|
|
36
36
|
* @prop {string} value - The value reported when this option is selected
|
|
37
37
|
* @prop {EunomiaIconName} icon - An icon shown before the slotted content. For an icon only item, also set an accessible label yourself, since there's no label property to derive one from
|
|
38
|
-
* @prop {'primary' | 'secondary' | 'critical' | 'success' | 'warning'} [
|
|
38
|
+
* @prop {'primary' | 'secondary' | 'critical' | 'success' | 'warning'} [color] - This item's own color, used once the parent group's appearance isn't default. It renders as neutral at rest, taking on this color only once selected, and defaults to primary when unset. Ignored entirely in the default appearance
|
|
39
39
|
* @prop {boolean} [disabled=false] - Whether this option is disabled
|
|
40
40
|
* @prop {boolean} [checked=false] - Whether this option is currently selected. Set by the parent toggle group, and shouldn't be set directly
|
|
41
41
|
* @element eun-toggle-item
|
|
@@ -130,7 +130,7 @@ __decorate([
|
|
|
130
130
|
], EunomiaToggleItem.prototype, "icon", void 0);
|
|
131
131
|
__decorate([
|
|
132
132
|
property({ reflect: true })
|
|
133
|
-
], EunomiaToggleItem.prototype, "
|
|
133
|
+
], EunomiaToggleItem.prototype, "color", void 0);
|
|
134
134
|
__decorate([
|
|
135
135
|
property({ type: Boolean, reflect: true })
|
|
136
136
|
], EunomiaToggleItem.prototype, "checked", void 0);
|
|
@@ -16,29 +16,37 @@ export const toggleItemStyles = css `
|
|
|
16
16
|
position: relative;
|
|
17
17
|
z-index: 1;
|
|
18
18
|
display: inline-block;
|
|
19
|
+
flex-shrink: 0;
|
|
19
20
|
outline: none !important;
|
|
20
21
|
}
|
|
22
|
+
:host([full]) {
|
|
23
|
+
flex: 1 1 0%;
|
|
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);
|
|
38
|
-
transition:
|
|
44
|
+
transition: var(
|
|
45
|
+
--_toggleTransition,
|
|
39
46
|
background-color 0.2s ease-out,
|
|
40
47
|
color 0.2s ease-out,
|
|
41
|
-
box-shadow 0.2s ease-out
|
|
48
|
+
box-shadow 0.2s ease-out
|
|
49
|
+
);
|
|
42
50
|
}
|
|
43
51
|
:host(:not([disabled]):hover) #item {
|
|
44
52
|
box-shadow: var(--_boxShadow-hover);
|
|
@@ -59,6 +67,9 @@ export const toggleItemStyles = css `
|
|
|
59
67
|
cursor: not-allowed;
|
|
60
68
|
opacity: 0.5;
|
|
61
69
|
}
|
|
70
|
+
:host([full]) #item {
|
|
71
|
+
justify-content: center;
|
|
72
|
+
}
|
|
62
73
|
:host([checked]:not([exclusive])) #item {
|
|
63
74
|
background: var(
|
|
64
75
|
--toggle-group-active-background,
|
|
@@ -73,59 +84,67 @@ export const toggleItemStyles = css `
|
|
|
73
84
|
}
|
|
74
85
|
|
|
75
86
|
:host {
|
|
87
|
+
--_variantColorDefault: var(--eun-color-primary-500, #3d6fff);
|
|
88
|
+
--_variantTintDefault: var(--eun-color-primary-transparent, #3d6fff33);
|
|
76
89
|
--_variantColor: var(
|
|
77
90
|
--toggle-group-active-background,
|
|
78
|
-
var(--
|
|
91
|
+
var(--_variantColorDefault)
|
|
92
|
+
);
|
|
93
|
+
--_variantTint: var(--_customTint, var(--_variantTintDefault));
|
|
94
|
+
--_customTint: color-mix(
|
|
95
|
+
in srgb,
|
|
96
|
+
var(--toggle-group-active-background) 15%,
|
|
97
|
+
transparent
|
|
79
98
|
);
|
|
80
|
-
--_variantTint: var(--eun-color-primary-transparent, #3d6fff33);
|
|
81
99
|
}
|
|
82
|
-
:host([
|
|
83
|
-
--
|
|
84
|
-
--
|
|
100
|
+
:host([color="secondary"]) {
|
|
101
|
+
--_variantColorDefault: var(--eun-color-secondary-500, #e5a030);
|
|
102
|
+
--_variantTintDefault: var(--eun-color-secondary-transparent, #e5a03033);
|
|
85
103
|
}
|
|
86
|
-
:host([
|
|
87
|
-
--
|
|
88
|
-
--
|
|
104
|
+
:host([color="critical"]) {
|
|
105
|
+
--_variantColorDefault: var(--eun-color-critical-100, #aa0014);
|
|
106
|
+
--_variantTintDefault: var(--eun-color-critical-30, #faf0f1);
|
|
89
107
|
}
|
|
90
|
-
:host([
|
|
91
|
-
--
|
|
92
|
-
--
|
|
108
|
+
:host([color="success"]) {
|
|
109
|
+
--_variantColorDefault: var(--eun-color-success-100, #1a9948);
|
|
110
|
+
--_variantTintDefault: var(--eun-color-success-30, #f1f9f4);
|
|
93
111
|
}
|
|
94
|
-
:host([
|
|
95
|
-
--
|
|
96
|
-
--
|
|
112
|
+
:host([color="warning"]) {
|
|
113
|
+
--_variantColorDefault: var(--eun-color-warning-100, #c85207);
|
|
114
|
+
--_variantTintDefault: var(--eun-color-warning-30, #fcf5f0);
|
|
97
115
|
}
|
|
98
116
|
:host([appearance="outline"]) #item,
|
|
99
117
|
:host([appearance="flat"]) #item {
|
|
100
118
|
border-radius: var(
|
|
101
119
|
--toggle-group-border-radius,
|
|
102
|
-
var(--eun-
|
|
120
|
+
var(--eun-border-radius-m, 8px)
|
|
103
121
|
);
|
|
104
122
|
}
|
|
105
123
|
:host([appearance="outline"]) #item {
|
|
106
|
-
border: var(--eun-
|
|
124
|
+
border: var(--eun-border-width-s, 1px) solid
|
|
107
125
|
var(--toggle-group-border-color, var(--eun-color-grey-300, #dee0e7));
|
|
108
126
|
}
|
|
109
127
|
:host([appearance="flat"]) #item {
|
|
110
|
-
border: var(--eun-
|
|
128
|
+
border: var(--eun-border-width-s, 1px) solid
|
|
129
|
+
var(--toggle-group-border-color, transparent);
|
|
111
130
|
}
|
|
112
131
|
:host([appearance="outline"][checked]) #item,
|
|
113
132
|
:host([appearance="flat"][checked]) #item {
|
|
114
133
|
background: var(--_variantTint);
|
|
115
|
-
color: var(--_variantColor);
|
|
116
|
-
font-weight: var(--eun-
|
|
134
|
+
color: var(--toggle-group-active-color, var(--_variantColor));
|
|
135
|
+
font-weight: var(--eun-font-weight-b, 700);
|
|
117
136
|
}
|
|
118
137
|
:host([appearance="outline"][checked]) #item {
|
|
119
138
|
border-color: var(--_variantColor);
|
|
120
139
|
}
|
|
121
140
|
:host([appearance="outline"]:not([disabled]):not([checked]):hover) #item,
|
|
122
141
|
:host([appearance="flat"]:not([disabled]):not([checked]):hover) #item {
|
|
123
|
-
color: var(--_variantColor);
|
|
142
|
+
color: var(--toggle-group-hover-color, var(--_variantColor));
|
|
124
143
|
}
|
|
125
144
|
:host([appearance="outline"]:focus-visible) #item,
|
|
126
145
|
:host([appearance="flat"]:focus-visible) #item {
|
|
127
146
|
outline-color: var(--_variantColor);
|
|
128
|
-
color: var(--_variantColor);
|
|
147
|
+
color: var(--toggle-group-hover-color, var(--_variantColor));
|
|
129
148
|
}
|
|
130
149
|
:host([appearance="outline"]:not([disabled]):not([checked]):hover) #item,
|
|
131
150
|
: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
|
|
@@ -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
|