@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
|
@@ -1,68 +1,50 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
+
import { buttonPaletteStyles } from "../shared-styles/button-palette.styles.js";
|
|
2
3
|
/**
|
|
3
4
|
* Base style for button.
|
|
4
5
|
*
|
|
5
6
|
* Custom css variables:
|
|
6
|
-
* [--button-background] - Set a custom background color
|
|
7
|
-
* [--button-background-hover] - Set a custom button background color for hover state
|
|
8
|
-
* [--button-background-active] - Set a custom button background color for active state
|
|
9
|
-
* [--button-text] - Set a custom button text color
|
|
10
|
-
* [--button-padding] - Set a custom padding to the button
|
|
11
|
-
* [--button-border-radius] - Set a custom radius to the button border
|
|
7
|
+
* [--button-background] - Set a custom background color, for every appearance and color
|
|
8
|
+
* [--button-background-hover] - Set a custom button background color for hover state. Derived from --button-background when only that one is set
|
|
9
|
+
* [--button-background-active] - Set a custom button background color for active state. Derived from --button-background when only that one is set
|
|
10
|
+
* [--button-text] - Set a custom button text color, for every appearance and color
|
|
11
|
+
* [--button-padding] - Set a custom padding to the button, for every size
|
|
12
|
+
* [--button-border-radius] - Set a custom radius to the button border, for every size and over `rounded`
|
|
12
13
|
* [--button-focus-outline] - Set a custom color to the focus outline
|
|
13
14
|
* [--button-transition] - Set a custom button transition time
|
|
14
15
|
* [--button-shadow] - Set a custom box shadow to the button (used by the `raised` variant)
|
|
15
16
|
* [--button-shadow-hover] - Set a custom box shadow to the button on hover state (used by the `raised` variant)
|
|
16
|
-
* [--button-border-color] - Set a custom border color,
|
|
17
|
+
* [--button-border-color] - Set a custom border color, for every appearance and color
|
|
17
18
|
* [--button-border-color-hover] - Set a custom border color for hover/focus-visible state, falling back to --button-border-color
|
|
18
19
|
* [--button-border-size] - Set a custom border width
|
|
19
20
|
* [--button-full] - Set to `true` to get the same result as the `full` attribute. Meant to be set from a container query
|
|
20
21
|
*/
|
|
21
22
|
const base = css `
|
|
22
23
|
:host {
|
|
23
|
-
--
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
);
|
|
31
|
-
--
|
|
32
|
-
--
|
|
33
|
-
|
|
34
|
-
);
|
|
35
|
-
--_mainColor-text: var(
|
|
36
|
-
--button-text,
|
|
37
|
-
var(--eun-color-on-primary-500, #ffffff)
|
|
38
|
-
);
|
|
39
|
-
--_mainColor-outline: var(
|
|
40
|
-
--button-focus-outline,
|
|
41
|
-
var(--eun-color-primary-700, #3662e0)
|
|
42
|
-
);
|
|
43
|
-
--_focusIndicator: var(--button-focus-outline, var(--_mainColor-outline));
|
|
44
|
-
--_borderRadius: var(
|
|
45
|
-
--button-border-radius,
|
|
46
|
-
var(--eun-borderRadius-m, 8px)
|
|
47
|
-
);
|
|
48
|
-
--_backgroundColor: var(--button-background, var(--_mainColor));
|
|
49
|
-
--_padding: var(
|
|
50
|
-
--button-padding,
|
|
51
|
-
var(--eun-space-s, 8px) calc(var(--eun-space-l, 32px) / 2)
|
|
52
|
-
);
|
|
53
|
-
--_textColor: var(--button-text, var(--_mainColor-text));
|
|
24
|
+
--_focusIndicator: var(--button-focus-outline, var(--_ring));
|
|
25
|
+
--_hoverFromCustom: color-mix(in srgb, var(--button-background) 88%, black);
|
|
26
|
+
--_activeFromCustom: color-mix(
|
|
27
|
+
in srgb,
|
|
28
|
+
var(--button-background) 76%,
|
|
29
|
+
black
|
|
30
|
+
);
|
|
31
|
+
--_defaultBorderRadius: var(--eun-border-radius-m, 8px);
|
|
32
|
+
--_defaultPadding: var(--eun-space-s, 8px)
|
|
33
|
+
calc(var(--eun-space-l, 32px) / 2);
|
|
34
|
+
--_borderRadius: var(--button-border-radius, var(--_defaultBorderRadius));
|
|
35
|
+
--_padding: var(--button-padding, var(--_defaultPadding));
|
|
54
36
|
--_boxShadow: var(--button-shadow, none);
|
|
55
37
|
--_boxShadow-hover: var(--button-shadow-hover, var(--_boxShadow));
|
|
56
38
|
--_transition: var(--button-transition, 0.2s);
|
|
57
39
|
--_borderSize: var(--button-border-size, 1.5px);
|
|
58
|
-
--_fontSize: var(--eun-
|
|
40
|
+
--_fontSize: var(--eun-font-size-s, 14px);
|
|
59
41
|
--_gap: var(--eun-space-xs, 4px);
|
|
60
42
|
--_lineHeight: 1rem;
|
|
61
43
|
--icon-size: var(--_lineHeight);
|
|
62
|
-
--_borderColor: transparent;
|
|
63
44
|
--_before-display: none;
|
|
64
45
|
--_cursor: pointer;
|
|
65
46
|
display: inline-flex;
|
|
47
|
+
width: fit-content;
|
|
66
48
|
position: relative;
|
|
67
49
|
user-select: none;
|
|
68
50
|
cursor: var(--_cursor);
|
|
@@ -80,95 +62,39 @@ const base = css `
|
|
|
80
62
|
outline-color: var(--_focusIndicator);
|
|
81
63
|
}
|
|
82
64
|
:host([size="xs"]) {
|
|
83
|
-
--_fontSize: var(--eun-
|
|
84
|
-
--
|
|
65
|
+
--_fontSize: var(--eun-font-size-xs, 10px);
|
|
66
|
+
--_defaultPadding: var(--eun-space-xxs, 1.6px) var(--eun-space-xs, 4px);
|
|
85
67
|
--_lineHeight: 10px;
|
|
86
|
-
--
|
|
68
|
+
--_defaultBorderRadius: var(--eun-border-radius-s, 999px);
|
|
87
69
|
}
|
|
88
70
|
:host([size="s"]) {
|
|
89
|
-
--_fontSize: var(--eun-
|
|
90
|
-
--
|
|
71
|
+
--_fontSize: var(--eun-font-size-xs, 10px);
|
|
72
|
+
--_defaultPadding: calc(var(--eun-space-s) / 2) var(--eun-space-s);
|
|
91
73
|
--_lineHeight: 10px;
|
|
92
|
-
--
|
|
74
|
+
--_defaultBorderRadius: var(--eun-border-radius-s, 999px);
|
|
93
75
|
}
|
|
94
76
|
:host([size="l"]) {
|
|
95
|
-
--_fontSize: var(--eun-
|
|
77
|
+
--_fontSize: var(--eun-font-size-m, 16px);
|
|
96
78
|
--_gap: var(--eun-space-m, 16px);
|
|
97
|
-
--
|
|
79
|
+
--_defaultPadding: calc(var(--eun-space-s, 8px) * 1.25)
|
|
80
|
+
var(--eun-space-l, 32px);
|
|
98
81
|
--_lineHeight: 1.1rem;
|
|
99
82
|
}
|
|
100
83
|
:host([size="xl"]) {
|
|
101
|
-
--_fontSize: var(--eun-
|
|
84
|
+
--_fontSize: var(--eun-font-size-l, 1.3rem);
|
|
102
85
|
--_gap: var(--eun-space-m, 16px);
|
|
103
|
-
--
|
|
86
|
+
--_defaultPadding: calc(var(--eun-space-s, 8px) * 1.5)
|
|
87
|
+
var(--eun-space-l, 32px);
|
|
104
88
|
--_lineHeight: 1.3rem;
|
|
105
89
|
}
|
|
106
90
|
:host([rounded]) {
|
|
107
|
-
--
|
|
108
|
-
}
|
|
109
|
-
:host([variant="secondary"]) {
|
|
110
|
-
--_mainColor: var(--eun-color-secondary-500, #e5a030);
|
|
111
|
-
--_mainColor-hover: var(--eun-color-secondary-700, #ca8d2a);
|
|
112
|
-
--_mainColor-active: var(--eun-color-secondary-800, #a97624);
|
|
113
|
-
--_mainColor-text: var(--eun-color-on-secondary-500, #000000de);
|
|
114
|
-
--_mainColor-outline: var(--eun-color-secondary-700, #ca8d2a);
|
|
115
|
-
}
|
|
116
|
-
:host([variant="critical"]) {
|
|
117
|
-
--_mainColor: var(--eun-color-critical-100, #aa0014);
|
|
118
|
-
--_mainColor-hover: var(--eun-color-critical-100, #aa0014);
|
|
119
|
-
--_mainColor-active: var(--eun-color-critical-100, #aa0014);
|
|
120
|
-
--_mainColor-text: #fff;
|
|
121
|
-
--_mainColor-outline: var(--eun-color-critical-100, #aa0014);
|
|
122
|
-
}
|
|
123
|
-
:host([variant="success"]) {
|
|
124
|
-
--_mainColor: var(--eun-color-success-100, #1a9948);
|
|
125
|
-
--_mainColor-hover: var(--eun-color-success-100, #1a9948);
|
|
126
|
-
--_mainColor-active: var(--eun-color-success-100, #1a9948);
|
|
127
|
-
--_mainColor-text: #fff;
|
|
128
|
-
--_mainColor-outline: var(--eun-color-success-100, #1a9948);
|
|
129
|
-
}
|
|
130
|
-
:host([variant="warning"]) {
|
|
131
|
-
--_mainColor: var(--eun-color-warning-100, #c85207);
|
|
132
|
-
--_mainColor-hover: var(--eun-color-warning-100, #c85207);
|
|
133
|
-
--_mainColor-active: var(--eun-color-warning-100, #c85207);
|
|
134
|
-
--_mainColor-text: #fff;
|
|
135
|
-
--_mainColor-outline: var(--eun-color-warning-100, #c85207);
|
|
136
|
-
}
|
|
137
|
-
:host([variant="light"]) {
|
|
138
|
-
--_mainColor: var(--eun-color-grey-0, #ffffff);
|
|
139
|
-
--_mainColor-hover: var(--eun-color-grey-200, #ecedf0);
|
|
140
|
-
--_mainColor-active: var(--eun-color-grey-300, #dee0e7);
|
|
141
|
-
--_mainColor-text: var(--eun-color-grey-900, #000000);
|
|
142
|
-
--_mainColor-outline: var(--eun-color-grey-500, #8d93aa);
|
|
143
|
-
}
|
|
144
|
-
:host([variant="medium"]) {
|
|
145
|
-
--_mainColor: color-mix(
|
|
146
|
-
in srgb,
|
|
147
|
-
var(--eun-color-grey-700, #484e61) 20%,
|
|
148
|
-
transparent
|
|
149
|
-
);
|
|
150
|
-
--_mainColor-hover: color-mix(
|
|
151
|
-
in srgb,
|
|
152
|
-
var(--eun-color-grey-700, #484e61) 30%,
|
|
153
|
-
transparent
|
|
154
|
-
);
|
|
155
|
-
--_mainColor-active: color-mix(
|
|
156
|
-
in srgb,
|
|
157
|
-
var(--eun-color-grey-700, #484e61) 40%,
|
|
158
|
-
transparent
|
|
159
|
-
);
|
|
160
|
-
--_mainColor-text: var(--eun-color-grey-900, #000000);
|
|
161
|
-
--_mainColor-outline: var(--eun-color-grey-700, #484e61);
|
|
162
|
-
}
|
|
163
|
-
:host([variant="dark"]) {
|
|
164
|
-
--_mainColor: var(--eun-color-grey-800, #071621);
|
|
165
|
-
--_mainColor-hover: var(--eun-color-grey-900, #000000);
|
|
166
|
-
--_mainColor-active: var(--eun-color-grey-900, #000000);
|
|
167
|
-
--_mainColor-text: var(--eun-color-grey-0, #ffffff);
|
|
168
|
-
--_mainColor-outline: var(--eun-color-grey-800, #071621);
|
|
91
|
+
--_defaultBorderRadius: var(--eun-border-radius-xl, 999px);
|
|
169
92
|
}
|
|
170
93
|
slot::slotted(*) {
|
|
171
94
|
color: var(--_textColor);
|
|
95
|
+
}
|
|
96
|
+
slot::slotted(*:not([fill])),
|
|
97
|
+
slot::slotted(*[fill="currentColor"]) {
|
|
172
98
|
fill: var(--_textColor);
|
|
173
99
|
}
|
|
174
100
|
slot[name="start"]::slotted(eun-icon),
|
|
@@ -180,15 +106,15 @@ const base = css `
|
|
|
180
106
|
}
|
|
181
107
|
#button {
|
|
182
108
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
183
|
-
|
|
109
|
+
--_textColor: var(--button-text, var(--_fg));
|
|
110
|
+
background: var(--button-background, var(--_bg));
|
|
184
111
|
border-radius: var(--_borderRadius);
|
|
185
112
|
color: var(--_textColor);
|
|
186
113
|
box-shadow: var(--_boxShadow);
|
|
187
114
|
display: flex;
|
|
188
115
|
width: 100%;
|
|
189
116
|
height: fit-content;
|
|
190
|
-
border: var(--_borderSize) solid
|
|
191
|
-
var(--button-border-color, var(--_borderColor));
|
|
117
|
+
border: var(--_borderSize) solid var(--button-border-color, var(--_bd));
|
|
192
118
|
outline: 2px solid transparent;
|
|
193
119
|
padding: var(--_padding);
|
|
194
120
|
gap: var(--_gap);
|
|
@@ -205,7 +131,7 @@ const base = css `
|
|
|
205
131
|
box-shadow: var(--_boxShadow-hover);
|
|
206
132
|
border-color: var(
|
|
207
133
|
--button-border-color-hover,
|
|
208
|
-
var(--button-border-color, var(--
|
|
134
|
+
var(--button-border-color, var(--_bd))
|
|
209
135
|
);
|
|
210
136
|
}
|
|
211
137
|
#external-link-icon {
|
|
@@ -244,47 +170,94 @@ const base = css `
|
|
|
244
170
|
border: 0;
|
|
245
171
|
}
|
|
246
172
|
`;
|
|
247
|
-
const
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
--_textColor: var(--_mainColor-text);
|
|
173
|
+
const slottedLink = css `
|
|
174
|
+
#button.slotted-link {
|
|
175
|
+
position: relative;
|
|
251
176
|
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
177
|
+
::slotted(a) {
|
|
178
|
+
color: inherit;
|
|
179
|
+
text-decoration: none;
|
|
180
|
+
outline: none !important;
|
|
256
181
|
}
|
|
257
|
-
|
|
258
|
-
|
|
182
|
+
::slotted(a)::after {
|
|
183
|
+
content: "";
|
|
184
|
+
position: absolute;
|
|
185
|
+
inset: calc(-1 * var(--_borderSize));
|
|
186
|
+
border-radius: var(--_borderRadius);
|
|
187
|
+
outline: 2px solid transparent;
|
|
188
|
+
transition: outline ease-out var(--_transition);
|
|
259
189
|
}
|
|
260
|
-
:
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
[variant="success"],
|
|
264
|
-
[variant="warning"]
|
|
265
|
-
):not([disabled]):is(:hover, :focus-visible)
|
|
266
|
-
)
|
|
267
|
-
#button,
|
|
268
|
-
:host(
|
|
269
|
-
[appearance="fill"]:is(
|
|
270
|
-
[variant="critical"],
|
|
271
|
-
[variant="success"],
|
|
272
|
-
[variant="warning"]
|
|
273
|
-
):not([disabled])
|
|
274
|
-
)
|
|
275
|
-
#button:is(:hover, :focus-visible) {
|
|
276
|
-
filter: brightness(0.9);
|
|
190
|
+
::slotted(a:focus-visible)::after {
|
|
191
|
+
outline-offset: 2px;
|
|
192
|
+
outline-color: var(--_focusIndicator);
|
|
277
193
|
}
|
|
278
|
-
:host(
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
194
|
+
:host(:focus-within) #button.slotted-link {
|
|
195
|
+
box-shadow: var(--_boxShadow-hover);
|
|
196
|
+
border-color: var(
|
|
197
|
+
--button-border-color-hover,
|
|
198
|
+
var(--button-border-color, var(--_bd))
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
:host(:not([disabled]):focus-within) #button.slotted-link {
|
|
202
|
+
background: var(
|
|
203
|
+
--button-background-hover,
|
|
204
|
+
var(--_hoverFromCustom, var(--_bg-hover))
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
:host([slide]:focus-within) #button.slotted-link {
|
|
208
|
+
grid-template-columns: auto 1fr auto;
|
|
209
|
+
}
|
|
210
|
+
:host([slide]:focus-within) #button.slotted-link slot:not([name]) {
|
|
211
|
+
margin-left: var(--_gap);
|
|
212
|
+
opacity: 1;
|
|
213
|
+
}
|
|
214
|
+
:host([disabled]) ::slotted(a),
|
|
215
|
+
:host([loading]) ::slotted(a) {
|
|
216
|
+
pointer-events: none;
|
|
217
|
+
cursor: inherit;
|
|
282
218
|
}
|
|
283
219
|
`;
|
|
284
|
-
const
|
|
285
|
-
:host([appearance="
|
|
286
|
-
|
|
287
|
-
--
|
|
220
|
+
const appearances = css `
|
|
221
|
+
:host([appearance="fill"]),
|
|
222
|
+
:host(:not([appearance])) {
|
|
223
|
+
--_bg: var(--_solid);
|
|
224
|
+
--_bg-hover: var(--_solid-hover);
|
|
225
|
+
--_bg-active: var(--_solid-active);
|
|
226
|
+
--_fg: var(--_onSolid);
|
|
227
|
+
--_bd: transparent;
|
|
228
|
+
}
|
|
229
|
+
:host([appearance="default"]) {
|
|
230
|
+
--_bg: var(--_tint);
|
|
231
|
+
--_bg-hover: var(--_tint-hover);
|
|
232
|
+
--_bg-active: var(--_tint-active);
|
|
233
|
+
--_fg: var(--_fgTint);
|
|
234
|
+
--_bd: transparent;
|
|
235
|
+
}
|
|
236
|
+
:host([appearance="outline"]) {
|
|
237
|
+
--_bg: transparent;
|
|
238
|
+
--_bg-hover: var(--_wash-hover);
|
|
239
|
+
--_bg-active: var(--_wash-active);
|
|
240
|
+
--_fg: var(--_accent);
|
|
241
|
+
--_bd: var(--_solid);
|
|
242
|
+
}
|
|
243
|
+
:host([appearance="ghost"]) {
|
|
244
|
+
--_bg: transparent;
|
|
245
|
+
--_bg-hover: var(--_wash-hover);
|
|
246
|
+
--_bg-active: var(--_wash-active);
|
|
247
|
+
--_fg: var(--_accent);
|
|
248
|
+
--_bd: transparent;
|
|
249
|
+
}
|
|
250
|
+
:host([appearance="ghost"]:not([color])) {
|
|
251
|
+
--_accent: var(--eun-text-secondary, #484e61);
|
|
252
|
+
--_wash-hover: var(--eun-content-hover, #edeff0);
|
|
253
|
+
--_wash-active: var(--eun-disabled-color, #ecedf0);
|
|
254
|
+
}
|
|
255
|
+
:host([appearance="raised"]) {
|
|
256
|
+
--_bg: transparent;
|
|
257
|
+
--_bg-hover: transparent;
|
|
258
|
+
--_bg-active: transparent;
|
|
259
|
+
--_fg: var(--_accent);
|
|
260
|
+
--_bd: transparent;
|
|
288
261
|
--_boxShadow: var(
|
|
289
262
|
--button-shadow,
|
|
290
263
|
var(--eun-shadow-s, "rgba(149, 157, 165, 0.2) 0px 8px 24px")
|
|
@@ -297,265 +270,81 @@ const raised = css `
|
|
|
297
270
|
)
|
|
298
271
|
);
|
|
299
272
|
}
|
|
300
|
-
:host([appearance="
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
);
|
|
305
|
-
|
|
306
|
-
`;
|
|
307
|
-
const defaultAppearance = css `
|
|
308
|
-
:host([appearance="default"]:not([disabled])) {
|
|
309
|
-
--_textColor: var(--_mainColor);
|
|
310
|
-
}
|
|
311
|
-
:host([appearance="default"]:not([disabled])) {
|
|
312
|
-
--_backgroundColor: var(
|
|
313
|
-
--button-background,
|
|
314
|
-
var(--eun-color-primary-transparent, #3d6fff33)
|
|
315
|
-
);
|
|
316
|
-
--_mainColor-hover: var(
|
|
317
|
-
--button-background-hover,
|
|
318
|
-
var(--eun-color-primary-transparent-hover, #3d6fff4d)
|
|
319
|
-
);
|
|
320
|
-
--_mainColor-active: var(
|
|
321
|
-
--button-background-active,
|
|
322
|
-
var(--eun-color-primary-transparent-active, #3d6fff66)
|
|
323
|
-
);
|
|
324
|
-
}
|
|
325
|
-
:host([appearance="default"][variant="secondary"]:not([disabled])) {
|
|
326
|
-
--_backgroundColor: var(
|
|
327
|
-
--button-background,
|
|
328
|
-
var(--eun-color-secondary-transparent, #e5a03033)
|
|
329
|
-
);
|
|
330
|
-
--_mainColor-hover: var(
|
|
331
|
-
--button-background-hover,
|
|
332
|
-
var(--eun-color-secondary-transparent-hover, #e5a0304d)
|
|
333
|
-
);
|
|
334
|
-
--_mainColor-active: var(
|
|
335
|
-
--button-background-active,
|
|
336
|
-
var(--eun-color-secondary-transparent-active, #e5a03066)
|
|
337
|
-
);
|
|
338
|
-
}
|
|
339
|
-
:host([appearance="default"][variant="critical"]:not([disabled])) {
|
|
340
|
-
--_backgroundColor: var(
|
|
341
|
-
--button-background,
|
|
342
|
-
var(--eun-color-critical-30, #faf0f1)
|
|
343
|
-
);
|
|
344
|
-
--_mainColor-hover: var(
|
|
345
|
-
--button-background-hover,
|
|
346
|
-
var(--eun-color-critical-50, #f1d6d9)
|
|
347
|
-
);
|
|
348
|
-
--_mainColor-active: var(
|
|
349
|
-
--button-background-active,
|
|
350
|
-
var(--eun-color-critical-90, #e4adb4)
|
|
351
|
-
);
|
|
352
|
-
}
|
|
353
|
-
:host([appearance="default"][variant="success"]:not([disabled])) {
|
|
354
|
-
--_backgroundColor: var(
|
|
355
|
-
--button-background,
|
|
356
|
-
var(--eun-color-success-30, #f1f9f4)
|
|
357
|
-
);
|
|
358
|
-
--_mainColor-hover: var(
|
|
359
|
-
--button-background-hover,
|
|
360
|
-
var(--eun-color-success-50, #daefe2)
|
|
361
|
-
);
|
|
362
|
-
--_mainColor-active: var(
|
|
363
|
-
--button-background-active,
|
|
364
|
-
var(--eun-color-success-90, #b6dec4)
|
|
365
|
-
);
|
|
366
|
-
}
|
|
367
|
-
:host([appearance="default"][variant="warning"]:not([disabled])) {
|
|
368
|
-
--_backgroundColor: var(
|
|
369
|
-
--button-background,
|
|
370
|
-
var(--eun-color-warning-30, #fcf5f0)
|
|
371
|
-
);
|
|
372
|
-
--_mainColor-hover: var(
|
|
373
|
-
--button-background-hover,
|
|
374
|
-
var(--eun-color-warning-50, #f6e3d7)
|
|
375
|
-
);
|
|
376
|
-
--_mainColor-active: var(
|
|
377
|
-
--button-background-active,
|
|
378
|
-
var(--eun-color-warning-90, #edc8b0)
|
|
379
|
-
);
|
|
380
|
-
}
|
|
381
|
-
:host([appearance="default"][variant="light"]:not([disabled])) {
|
|
382
|
-
--_backgroundColor: var(
|
|
383
|
-
--button-background,
|
|
384
|
-
var(--eun-color-grey-100, #f7f8fa)
|
|
385
|
-
);
|
|
386
|
-
--_mainColor-hover: var(
|
|
387
|
-
--button-background-hover,
|
|
388
|
-
var(--eun-color-grey-200, #ecedf0)
|
|
389
|
-
);
|
|
390
|
-
--_mainColor-active: var(
|
|
391
|
-
--button-background-active,
|
|
392
|
-
var(--eun-color-grey-300, #dee0e7)
|
|
393
|
-
);
|
|
273
|
+
:host([appearance="flat"]) {
|
|
274
|
+
--_bg: var(--_flat);
|
|
275
|
+
--_bg-hover: var(--_flat-hover);
|
|
276
|
+
--_bg-active: var(--_flat-hover);
|
|
277
|
+
--_fg: var(--_flatFg);
|
|
278
|
+
--_bd: transparent;
|
|
394
279
|
}
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
);
|
|
400
|
-
--_mainColor-hover: var(
|
|
280
|
+
|
|
281
|
+
:host(:not([disabled])) #button:is(:hover, :focus-visible),
|
|
282
|
+
:host(:not([disabled]):focus-visible) #button {
|
|
283
|
+
background: var(
|
|
401
284
|
--button-background-hover,
|
|
402
|
-
var(--
|
|
403
|
-
);
|
|
404
|
-
--_mainColor-active: var(
|
|
405
|
-
--button-background-active,
|
|
406
|
-
var(--eun-color-grey-400, #c1c9d6)
|
|
285
|
+
var(--_hoverFromCustom, var(--_bg-hover))
|
|
407
286
|
);
|
|
408
287
|
}
|
|
409
|
-
:host(
|
|
410
|
-
|
|
411
|
-
--button-background,
|
|
412
|
-
var(--eun-color-grey-200, #ecedf0)
|
|
413
|
-
);
|
|
414
|
-
--_mainColor-hover: var(
|
|
415
|
-
--button-background-hover,
|
|
416
|
-
var(--eun-color-grey-300, #dee0e7)
|
|
417
|
-
);
|
|
418
|
-
--_mainColor-active: var(
|
|
288
|
+
:host(:not([disabled])) #button:active {
|
|
289
|
+
background: var(
|
|
419
290
|
--button-background-active,
|
|
420
|
-
var(--
|
|
291
|
+
var(--_activeFromCustom, var(--_bg-active))
|
|
421
292
|
);
|
|
422
293
|
}
|
|
423
|
-
:host([appearance="
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
--_backgroundColor: var(--_mainColor-hover);
|
|
428
|
-
}
|
|
429
|
-
:host([appearance="default"]:not([disabled])) #button:active {
|
|
430
|
-
--_backgroundColor: var(--_mainColor-active);
|
|
431
|
-
}
|
|
432
|
-
`;
|
|
433
|
-
const outline = css `
|
|
434
|
-
:host([appearance="outline"]:not([disabled])) {
|
|
435
|
-
--_backgroundColor: transparent;
|
|
436
|
-
--_textColor: var(--_mainColor);
|
|
437
|
-
--_borderColor: var(--_mainColor);
|
|
438
|
-
--_mainColor-hover: var(--eun-color-primary-transparent-hover, #3d6fff4d);
|
|
439
|
-
--_mainColor-active: var(--eun-color-primary-transparent-active, #3d6fff66);
|
|
440
|
-
}
|
|
441
|
-
:host([appearance="outline"][variant="secondary"]:not([disabled])) {
|
|
442
|
-
--_mainColor-hover: var(--eun-color-secondary-transparent-hover, #e5a0304d);
|
|
443
|
-
--_mainColor-active: var(
|
|
444
|
-
--eun-color-secondary-transparent-active,
|
|
445
|
-
#ef9c7c66
|
|
294
|
+
:host([appearance="raised"]:not([disabled])) #button:active {
|
|
295
|
+
box-shadow: var(
|
|
296
|
+
--eun-shadow-l,
|
|
297
|
+
"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px"
|
|
446
298
|
);
|
|
447
299
|
}
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
:host([appearance="outline"][variant="warning"]:not([disabled])) {
|
|
457
|
-
--_mainColor-hover: var(--eun-color-warning-50, #f6e3d7);
|
|
458
|
-
--_mainColor-active: var(--eun-color-warning-90, #edc8b0);
|
|
459
|
-
}
|
|
460
|
-
:host([appearance="outline"][variant="light"]:not([disabled])) {
|
|
461
|
-
--_mainColor-hover: var(--eun-color-grey-200, #ecedf0);
|
|
462
|
-
--_mainColor-active: var(--eun-color-grey-300, #dee0e7);
|
|
463
|
-
}
|
|
464
|
-
:host([appearance="outline"][variant="medium"]:not([disabled])) {
|
|
465
|
-
--_mainColor-hover: var(--eun-color-grey-300, #dee0e7);
|
|
466
|
-
--_mainColor-active: var(--eun-color-grey-400, #c1c9d6);
|
|
467
|
-
}
|
|
468
|
-
:host([appearance="outline"][variant="dark"]:not([disabled])) {
|
|
469
|
-
--_mainColor-hover: var(--eun-color-grey-200, #ecedf0);
|
|
470
|
-
--_mainColor-active: var(--eun-color-grey-300, #dee0e7);
|
|
471
|
-
}
|
|
472
|
-
:host([appearance="outline"]:not([disabled]):is(:hover, :focus-visible))
|
|
300
|
+
|
|
301
|
+
:host(
|
|
302
|
+
[appearance="fill"]:is(
|
|
303
|
+
[color="critical"],
|
|
304
|
+
[color="success"],
|
|
305
|
+
[color="warning"]
|
|
306
|
+
):not([disabled]):is(:hover, :focus-visible)
|
|
307
|
+
)
|
|
473
308
|
#button,
|
|
474
|
-
:host(
|
|
309
|
+
:host(
|
|
310
|
+
[appearance="fill"]:is(
|
|
311
|
+
[color="critical"],
|
|
312
|
+
[color="success"],
|
|
313
|
+
[color="warning"]
|
|
314
|
+
):not([disabled])
|
|
315
|
+
)
|
|
475
316
|
#button:is(:hover, :focus-visible) {
|
|
476
|
-
|
|
477
|
-
}
|
|
478
|
-
:host([appearance="outline"]:not([disabled])) #button:active {
|
|
479
|
-
--_backgroundColor: var(--_mainColor-active);
|
|
480
|
-
}
|
|
481
|
-
`;
|
|
482
|
-
const flat = css `
|
|
483
|
-
:host([appearance="flat"]:not([disabled])) {
|
|
484
|
-
--_backgroundColor: var(--eun-color-grey-100, #f7f8fa);
|
|
485
|
-
--_textColor: var(--eun-text-secondary, #484e61);
|
|
486
|
-
}
|
|
487
|
-
:host([appearance="flat"]:not([disabled]):is(:hover, :focus-visible, :active))
|
|
488
|
-
#button,
|
|
489
|
-
:host([appearance="flat"]:not([disabled]))
|
|
490
|
-
#button:is(:hover, :focus-visible, :active) {
|
|
491
|
-
--_backgroundColor: var(--eun-content-hover, #edeff0);
|
|
492
|
-
}
|
|
493
|
-
`;
|
|
494
|
-
const ghost = css `
|
|
495
|
-
:host([appearance="ghost"]:not([disabled])) {
|
|
496
|
-
--_backgroundColor: transparent;
|
|
497
|
-
--_borderColor: transparent;
|
|
498
|
-
--_textColor: var(--button-text, var(--_mainColor));
|
|
499
|
-
--_mainColor-hover: var(--eun-color-primary-transparent-hover, #3d6fff4d);
|
|
500
|
-
--_mainColor-active: var(--eun-color-primary-transparent-active, #3d6fff66);
|
|
501
|
-
}
|
|
502
|
-
:host([appearance="ghost"][variant="secondary"]:not([disabled])) {
|
|
503
|
-
--_mainColor-hover: var(--eun-color-secondary-transparent-hover, #e5a0304d);
|
|
504
|
-
--_mainColor-active: var(
|
|
505
|
-
--eun-color-secondary-transparent-active,
|
|
506
|
-
#ef9c7c66
|
|
507
|
-
);
|
|
508
|
-
}
|
|
509
|
-
:host([appearance="ghost"][variant="critical"]:not([disabled])) {
|
|
510
|
-
--_mainColor-hover: var(--eun-color-critical-50, #f1d6d9);
|
|
511
|
-
--_mainColor-active: var(--eun-color-critical-90, #e4adb4);
|
|
512
|
-
}
|
|
513
|
-
:host([appearance="ghost"][variant="success"]:not([disabled])) {
|
|
514
|
-
--_mainColor-hover: var(--eun-color-success-50, #daefe2);
|
|
515
|
-
--_mainColor-active: var(--eun-color-success-90, #b6dec4);
|
|
516
|
-
}
|
|
517
|
-
:host([appearance="ghost"][variant="warning"]:not([disabled])) {
|
|
518
|
-
--_mainColor-hover: var(--eun-color-warning-50, #f6e3d7);
|
|
519
|
-
--_mainColor-active: var(--eun-color-warning-90, #edc8b0);
|
|
520
|
-
}
|
|
521
|
-
:host([appearance="ghost"][variant="light"]:not([disabled])) {
|
|
522
|
-
--_mainColor-hover: var(--eun-color-grey-200, #ecedf0);
|
|
523
|
-
--_mainColor-active: var(--eun-color-grey-300, #dee0e7);
|
|
524
|
-
}
|
|
525
|
-
:host([appearance="ghost"][variant="medium"]:not([disabled])) {
|
|
526
|
-
--_mainColor-hover: var(--eun-color-grey-300, #dee0e7);
|
|
527
|
-
--_mainColor-active: var(--eun-color-grey-400, #c1c9d6);
|
|
528
|
-
}
|
|
529
|
-
:host([appearance="ghost"][variant="dark"]:not([disabled])) {
|
|
530
|
-
--_mainColor-hover: var(--eun-color-grey-200, #ecedf0);
|
|
531
|
-
--_mainColor-active: var(--eun-color-grey-300, #dee0e7);
|
|
532
|
-
}
|
|
533
|
-
:host([appearance="ghost"]:not([variant]):not([disabled])) {
|
|
534
|
-
--_mainColor: var(--eun-text-secondary, #484e61);
|
|
535
|
-
--_mainColor-hover: var(--eun-content-hover, #edeff0);
|
|
536
|
-
--_mainColor-active: var(--eun-disabled-color, #ecedf0);
|
|
537
|
-
}
|
|
538
|
-
:host([appearance="ghost"]:not([disabled])) #button:hover,
|
|
539
|
-
:host([appearance="ghost"]:not([disabled]):focus-visible) #button,
|
|
540
|
-
:host([appearance="ghost"]:not([disabled])) #button:focus-visible {
|
|
541
|
-
--_backgroundColor: var(--_mainColor-hover);
|
|
317
|
+
filter: brightness(0.9);
|
|
542
318
|
}
|
|
543
|
-
:host([appearance="
|
|
544
|
-
|
|
319
|
+
:host([appearance="fill"][color="critical"]:not([disabled])) #button:active,
|
|
320
|
+
:host([appearance="fill"][color="success"]:not([disabled])) #button:active,
|
|
321
|
+
:host([appearance="fill"][color="warning"]:not([disabled])) #button:active {
|
|
322
|
+
filter: brightness(0.8);
|
|
545
323
|
}
|
|
546
324
|
`;
|
|
547
325
|
const disabled = css `
|
|
548
326
|
:host([disabled]) {
|
|
549
|
-
--
|
|
550
|
-
--
|
|
327
|
+
--_bg: var(--eun-disabled-color, #ecedf0);
|
|
328
|
+
--_bg-hover: var(--eun-disabled-color, #ecedf0);
|
|
329
|
+
--_bg-active: var(--eun-disabled-color, #ecedf0);
|
|
330
|
+
--_fg: var(--eun-text-disabled-color, #8d93aa);
|
|
331
|
+
--_bd: transparent;
|
|
332
|
+
--_boxShadow: none;
|
|
333
|
+
--_boxShadow-hover: none;
|
|
551
334
|
--_cursor: not-allowed;
|
|
552
335
|
}
|
|
553
336
|
:host([disabled]) #button {
|
|
554
337
|
--_icon-color: currentColor;
|
|
338
|
+
--_textColor: var(--_fg);
|
|
339
|
+
background: var(--_bg);
|
|
340
|
+
border-color: var(--_bd);
|
|
555
341
|
pointer-events: none;
|
|
556
342
|
}
|
|
557
343
|
`;
|
|
558
344
|
const slide = css `
|
|
345
|
+
:host([slide]) {
|
|
346
|
+
width: auto;
|
|
347
|
+
}
|
|
559
348
|
:host([slide]) #button {
|
|
560
349
|
display: grid;
|
|
561
350
|
grid-template-columns: auto 0fr auto;
|
|
@@ -599,7 +388,7 @@ const full = css `
|
|
|
599
388
|
const fullVariable = css `
|
|
600
389
|
@supports (width: if(style(--a: b): 1px; else: 2px)) {
|
|
601
390
|
:host {
|
|
602
|
-
width: if(style(--button-full: true): 100%; else:
|
|
391
|
+
width: if(style(--button-full: true): 100%; else: fit-content);
|
|
603
392
|
}
|
|
604
393
|
#button {
|
|
605
394
|
justify-content: if(style(--button-full: true): center; else: normal);
|
|
@@ -607,15 +396,12 @@ const fullVariable = css `
|
|
|
607
396
|
}
|
|
608
397
|
`;
|
|
609
398
|
export const buttonStyles = [
|
|
399
|
+
buttonPaletteStyles,
|
|
610
400
|
base,
|
|
611
|
-
|
|
612
|
-
raised,
|
|
613
|
-
outline,
|
|
614
|
-
flat,
|
|
615
|
-
ghost,
|
|
616
|
-
defaultAppearance,
|
|
401
|
+
appearances,
|
|
617
402
|
disabled,
|
|
618
403
|
slide,
|
|
404
|
+
slottedLink,
|
|
619
405
|
fullVariable,
|
|
620
406
|
full,
|
|
621
407
|
];
|