@eunomia/elements 1.0.0-beta.3 → 1.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cdn/components/chunks/{chunk-3LMI7KUA.js → chunk-2JLDJFYD.js} +1 -1
- package/dist/cdn/components/chunks/chunk-4MXL6PZC.js +124 -0
- package/dist/cdn/components/chunks/{chunk-32KRPOPV.js → chunk-5XJGYXW7.js} +6 -6
- package/dist/cdn/components/chunks/{chunk-O2HNWH65.js → chunk-5XJLIHAU.js} +7 -7
- package/dist/cdn/components/chunks/{chunk-5GF2Q3NR.js → chunk-74AOAB4X.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-WYMBUIKX.js → chunk-A6KGFALA.js} +4 -4
- package/dist/cdn/components/chunks/chunk-BMQOI7HX.js +371 -0
- package/dist/cdn/components/chunks/{chunk-LJYTHDZP.js → chunk-D2M4BV5Y.js} +6 -6
- package/dist/cdn/components/chunks/{chunk-NEYBPT3D.js → chunk-EJIX2D4Z.js} +2 -2
- package/dist/cdn/components/chunks/{chunk-BYBUXKXC.js → chunk-EOWBYZV7.js} +2 -2
- package/dist/cdn/components/chunks/chunk-EST3M4AO.js +1 -0
- package/dist/cdn/components/chunks/{chunk-TBKKTJOX.js → chunk-GSJEJLFA.js} +3 -3
- package/dist/cdn/components/chunks/{chunk-5RCCZVFZ.js → chunk-IJ5WFMK4.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-RWONCXTF.js → chunk-KVYUNKUO.js} +2 -2
- package/dist/cdn/components/chunks/chunk-LGLQ36QB.js +16 -0
- package/dist/cdn/components/chunks/{chunk-53QH6MPM.js → chunk-NHFWATVN.js} +1 -1
- package/dist/cdn/components/chunks/chunk-OAULRKHQ.js +38 -0
- package/dist/cdn/components/chunks/chunk-P32B7BFD.js +118 -0
- package/dist/cdn/components/chunks/{chunk-ZPFHTJSS.js → chunk-PCM7D3YF.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-ABYEBP57.js → chunk-PED5ATYN.js} +11 -8
- package/dist/cdn/components/chunks/{chunk-ON42P6FI.js → chunk-RJCJXB7Y.js} +5 -5
- package/dist/cdn/components/chunks/{chunk-5C7YND22.js → chunk-S2UCEWNG.js} +8 -8
- package/dist/cdn/components/chunks/{chunk-EAGGN3ZI.js → chunk-SIHZFOTK.js} +9 -9
- package/dist/cdn/components/chunks/{chunk-6UPI7GHJ.js → chunk-UAGCQF23.js} +7 -7
- package/dist/cdn/components/chunks/{chunk-6IILPCSQ.js → chunk-X2AUBZD2.js} +3 -3
- package/dist/cdn/components/chunks/chunk-YGUJJ25C.js +263 -0
- package/dist/cdn/components/eun-alert.js +65 -45
- package/dist/cdn/components/eun-badge.js +1 -1
- package/dist/cdn/components/eun-breadcrumb-item.js +14 -10
- package/dist/cdn/components/eun-breadcrumb.js +11 -7
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-calendar.js +16 -16
- package/dist/cdn/components/eun-card.js +21 -12
- 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 +13 -12
- package/dist/cdn/components/eun-color-picker.js +12 -12
- package/dist/cdn/components/eun-counter.js +8 -8
- package/dist/cdn/components/eun-date-picker.js +50 -50
- package/dist/cdn/components/eun-drawer.js +3 -3
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-dropdown-item.js +6 -6
- package/dist/cdn/components/eun-fab.js +31 -53
- package/dist/cdn/components/eun-icon.js +1 -1
- package/dist/cdn/components/eun-image-card.js +18 -11
- package/dist/cdn/components/eun-image-carousel.js +16 -16
- package/dist/cdn/components/eun-infinite-list.js +1 -1
- package/dist/cdn/components/eun-input-file.js +12 -12
- package/dist/cdn/components/eun-input-phone.js +13 -13
- package/dist/cdn/components/eun-input.js +1 -1
- package/dist/cdn/components/eun-label.js +4 -4
- package/dist/cdn/components/eun-link.js +29 -11
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +6 -6
- package/dist/cdn/components/eun-pagination.js +3 -3
- package/dist/cdn/components/eun-password-strength.js +9 -6
- package/dist/cdn/components/eun-progress-bar.js +13 -13
- package/dist/cdn/components/eun-radio-card.js +2 -2
- package/dist/cdn/components/eun-radio-list.js +1 -1
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-scheduler-event-editor.js +2 -2
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +10 -10
- package/dist/cdn/components/eun-search.js +7 -7
- package/dist/cdn/components/eun-select.js +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 +22 -22
- package/dist/cdn/components/eun-time-picker.js +25 -25
- package/dist/cdn/components/eun-toast.js +40 -36
- package/dist/cdn/components/eun-toggle-group.js +199 -66
- package/dist/cdn/components/eun-toggle-item.js +41 -24
- package/dist/cdn/components/eun-toggle.js +11 -8
- package/dist/cdn/components/eun-toolbar.js +14 -7
- 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 +2 -0
- package/dist/components/action/button/button.js +2 -0
- package/dist/components/action/button/button.styles.js +132 -384
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +7 -0
- package/dist/components/action/dropdown-button/dropdown-button.js +11 -0
- package/dist/components/action/dropdown-button/dropdown-button.styles.js +8 -8
- package/dist/components/action/dropdown-button/dropdown-item.styles.js +6 -6
- package/dist/components/action/fab/fab.d.ts +3 -1
- package/dist/components/action/fab/fab.js +3 -1
- package/dist/components/action/fab/fab.styles.js +26 -49
- package/dist/components/action/link/link.d.ts +50 -0
- package/dist/components/action/link/link.js +69 -1
- package/dist/components/action/link/link.styles.js +19 -2
- package/dist/components/action/shared-styles/button-palette.styles.d.ts +27 -0
- package/dist/components/action/shared-styles/button-palette.styles.js +151 -0
- package/dist/components/action/toggle/toggle-group.d.ts +41 -7
- package/dist/components/action/toggle/toggle-group.js +161 -45
- package/dist/components/action/toggle/toggle-group.styles.d.ts +6 -5
- package/dist/components/action/toggle/toggle-group.styles.js +152 -35
- package/dist/components/action/toggle/toggle-item.styles.js +37 -20
- 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.styles.js +3 -3
- package/dist/components/alert/modal/modal.styles.js +6 -6
- package/dist/components/alert/toast/toast.d.ts +4 -3
- package/dist/components/alert/toast/toast.js +4 -3
- package/dist/components/alert/toast/toast.styles.js +41 -36
- package/dist/components/content/badge/badge.styles.js +1 -1
- package/dist/components/content/card/card.d.ts +4 -4
- package/dist/components/content/card/card.js +4 -4
- package/dist/components/content/card/card.styles.js +19 -10
- package/dist/components/content/card/image-card.d.ts +1 -1
- package/dist/components/content/card/image-card.js +1 -1
- package/dist/components/content/card/image-card.styles.js +17 -10
- package/dist/components/content/card/sliding-card.styles.js +3 -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.styles.js +10 -9
- package/dist/components/content/icon/icon.style.js +1 -1
- package/dist/components/content/image-carousel/image-carousel.styles.js +14 -14
- package/dist/components/content/password-strength/password-strength.styles.js +7 -4
- package/dist/components/content/progress-bar/progress-bar.styles.js +9 -9
- package/dist/components/content/shared-styles/tone-surface.styles.d.ts +31 -0
- package/dist/components/content/shared-styles/tone-surface.styles.js +149 -0
- package/dist/components/content/tag/tag.d.ts +16 -6
- package/dist/components/content/tag/tag.js +19 -6
- package/dist/components/content/tag/tag.styles.d.ts +1 -1
- package/dist/components/content/tag/tag.styles.js +40 -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 +1 -1
- package/dist/components/form/color-picker/color-picker.styles.js +7 -7
- package/dist/components/form/counter/counter.d.ts +1 -1
- package/dist/components/form/counter/counter.styles.js +7 -7
- package/dist/components/form/date-picker/date-picker-day-grid.styles.js +2 -2
- package/dist/components/form/date-picker/date-picker-grid.styles.js +15 -15
- package/dist/components/form/date-picker/date-picker-month-grid.styles.js +1 -1
- package/dist/components/form/date-picker/date-picker-year-grid.styles.js +1 -1
- package/dist/components/form/date-picker/date-picker.d.ts +1 -1
- package/dist/components/form/date-picker/date-picker.styles.js +12 -12
- package/dist/components/form/input/input.d.ts +1 -1
- 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 +1 -1
- package/dist/components/form/input-phone/input-phone.styles.js +7 -7
- package/dist/components/form/label/label.styles.js +4 -4
- package/dist/components/form/radio/radio-card.styles.js +1 -1
- package/dist/components/form/radio/radio-list.d.ts +1 -1
- package/dist/components/form/radio/radio.d.ts +1 -1
- package/dist/components/form/radio/radio.styles.js +2 -2
- package/dist/components/form/search/search.styles.js +6 -6
- package/dist/components/form/select/select.d.ts +1 -1
- 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 +7 -7
- package/dist/components/form/shared-styles/form-labels.styles.js +1 -1
- package/dist/components/form/shared-styles/listbox.styles.js +6 -6
- package/dist/components/form/slider/slider.d.ts +1 -1
- package/dist/components/form/slider/slider.styles.js +6 -6
- package/dist/components/form/switch/switch.d.ts +1 -1
- package/dist/components/form/switch/switch.styles.js +8 -8
- package/dist/components/form/textarea/textarea.d.ts +1 -1
- package/dist/components/form/textarea/textarea.styles.js +6 -6
- package/dist/components/form/time-picker/time-picker-columns.styles.js +6 -6
- package/dist/components/form/time-picker/time-picker-list.styles.js +2 -2
- package/dist/components/form/time-picker/time-picker.d.ts +1 -1
- package/dist/components/form/time-picker/time-picker.styles.js +8 -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.js +1 -1
- package/dist/features/scheduler/calendar/calendar.styles.js +3 -3
- package/dist/features/scheduler/scheduler/scheduler.styles.js +2 -2
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +2 -2
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.styles.js +2 -2
- package/dist/features/scheduler/shared/scheduler-event-popover.styles.js +4 -4
- package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +1 -1
- package/dist/features/scheduler/shared/scheduler-month-view.styles.js +1 -1
- package/dist/features/scheduler/shared/scheduler-year-view.styles.js +1 -1
- package/dist/features/table/native-table.css +11 -11
- package/dist/features/table/table/table.styles.js +2 -2
- package/dist/features/table/table-action-bar/table-action-bar.styles.js +2 -2
- package/dist/features/table/table-cell/table-cell.styles.js +2 -2
- package/dist/features/table/table-column/table-column.styles.js +3 -3
- package/dist/features/table/table-header/table-header.styles.js +4 -4
- package/dist/features/table/table-item/table-item.styles.js +6 -6
- package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +5 -2
- package/dist/jsx.d.ts +18 -5
- package/dist/mixins/button.mixin.d.ts +1 -0
- package/dist/mixins/button.mixin.js +10 -0
- package/dist/mixins/check.mixin.d.ts +1 -1
- package/dist/mixins/editable.mixin.d.ts +1 -1
- 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/utils/rich-text.utils.d.ts +33 -0
- package/dist/utils/rich-text.utils.js +140 -49
- package/dist/utils/theme-generator.utils.d.ts +24 -3
- package/dist/utils/theme-generator.utils.js +66 -21
- package/package.json +6 -1
- 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-5TH3P53V.js +0 -16
- 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-Z6PJYSC3.js +0 -622
- package/dist/cdn/components/chunks/chunk-ZKPCO5RB.js +0 -262
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ list is just the map.
|
|
|
76
76
|
|
|
77
77
|
## Sizing assumes `1rem = 16px`
|
|
78
78
|
|
|
79
|
-
Every size token (`--eun-
|
|
79
|
+
Every size token (`--eun-font-size-*`, `--eun-space-*`, icon sizes,
|
|
80
80
|
button padding, ...) is expressed in `rem`, which is always relative to
|
|
81
81
|
the `font-size` on `<html>`, never to a nearby parent. The values shown
|
|
82
82
|
throughout the documentation site assume the browser default of 16px,
|
|
@@ -13,7 +13,7 @@ import{a as k,b as f,c as _}from"./chunk-SGM2X2TC.js";import{a as c,b as v,c as
|
|
|
13
13
|
fill: var(--_color);
|
|
14
14
|
color: var(--_color);
|
|
15
15
|
background-color: var(--_background);
|
|
16
|
-
border-radius: var(--icon-border-radius, var(--eun-
|
|
16
|
+
border-radius: var(--icon-border-radius, var(--eun-border-radius-m, 8px));
|
|
17
17
|
text-decoration: none;
|
|
18
18
|
display: inline-block;
|
|
19
19
|
user-select: none;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import{a as r,g as s,h as o}from"./chunk-XH6NREVZ.js";var u=n=>{class e extends n{constructor(){super(...arguments);this.type="button";this.fixedColor=!1;this.size="m";this.rounded=!1;this.slide=!1;this.loading=!1}connectedCallback(){super.connectedCallback?.(),!this.href&&(this.hasAttribute("role")||this.setAttribute("role","button"),this.addEventListener("click",this.handleClick,!0),this.addEventListener("keydown",this.handleKeydown,!0))}disconnectedCallback(){this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeydown),super.disconnectedCallback?.()}handleClick(t){if(this.disabled||this.loading){t.stopImmediatePropagation();return}if(this.hasAttribute("commandfor")){this.handleCommandClick?.();return}if(this.hasAttribute("popovertarget")){this.handlePopoverClick?.();return}this.handleFormBehavior()}handleKeydown(t){this.disabled||this.loading||!["Enter"," "].includes(t.key)||(t.preventDefault(),this.handleFormBehavior()||this.dispatchEvent(new Event("click")))}handleFormBehavior(){if(this.type!=="submit"&&this.type!=="reset")return!1;let t;if(this.form?t=this.getRootNode()?.getElementById(this.form):t=this.closest("form"),!t||!(t instanceof HTMLFormElement))throw new Error("The element link to the button does not exist or is invalid");return this.type==="reset"&&t.reset(),this.type==="submit"&&t.requestSubmit(),!0}}return r([o({reflect:!0})],e.prototype,"type",2),r([o({reflect:!0})],e.prototype,"variant",2),r([o({type:Boolean,reflect:!0,attribute:"fixed-color"})],e.prototype,"fixedColor",2),r([o({reflect:!0})],e.prototype,"size",2),r([o({type:Boolean,reflect:!0})],e.prototype,"rounded",2),r([o({type:Boolean,reflect:!0})],e.prototype,"slide",2),r([o()],e.prototype,"form",2),r([o()],e.prototype,"href",2),r([o()],e.prototype,"target",2),r([o()],e.prototype,"download",2),r([o({type:Boolean,reflect:!0})],e.prototype,"loading",2),e};var c=class n extends Event{static{this.eventName="command"}constructor(e,a){super(n.eventName,{bubbles:!1,composed:!0,cancelable:!0}),this.command=e,this.source=a}};function d(n,e){let a=globalThis.CommandEvent;return typeof a=="function"?new a(c.eventName,{command:n,source:e,cancelable:!0,composed:!0}):new c(n,e)}var g=n=>{class e extends n{handleCommandClick(){let i=this.getAttribute("commandfor");if(!i)return;let l=this.getRootNode().getElementById(i);if(!l)throw new Error(`The given id [${i}] do not correspond to any command target`);l.dispatchEvent(d(this.getAttribute("command")??"",this))}}return r([o({reflect:!0})],e.prototype,"command",2),r([o({attribute:"commandfor"})],e.prototype,"commandFor",2),e};var x=s`
|
|
2
|
+
:host {
|
|
3
|
+
--_solid: var(--eun-color-primary-500, #3d6fff);
|
|
4
|
+
--_solid-hover: var(--eun-color-primary-700, #3662e0);
|
|
5
|
+
--_solid-active: var(--eun-color-primary-800, #2d52bd);
|
|
6
|
+
--_onSolid: var(--eun-color-on-primary-500, #ffffff);
|
|
7
|
+
--_accent: var(--eun-color-primary-500, #3d6fff);
|
|
8
|
+
--_tint: var(--eun-color-primary-transparent, #3d6fff33);
|
|
9
|
+
--_tint-hover: var(--eun-color-primary-transparent-hover, #3d6fff4d);
|
|
10
|
+
--_tint-active: var(--eun-color-primary-transparent-active, #3d6fff66);
|
|
11
|
+
--_fgTint: var(--_accent);
|
|
12
|
+
--_wash-hover: var(--_tint-hover);
|
|
13
|
+
--_wash-active: var(--_tint-active);
|
|
14
|
+
--_flat: var(--eun-surface-sunken, #f7f8fa);
|
|
15
|
+
--_flat-hover: var(--eun-surface-sunken-hover, #edeff0);
|
|
16
|
+
--_flatFg: var(--eun-text-secondary, #484e61);
|
|
17
|
+
--_ring: var(--eun-color-primary-700, #3662e0);
|
|
18
|
+
}
|
|
19
|
+
:host([variant="secondary"]) {
|
|
20
|
+
--_solid: var(--eun-color-secondary-500, #e5a030);
|
|
21
|
+
--_solid-hover: var(--eun-color-secondary-700, #ca8d2a);
|
|
22
|
+
--_solid-active: var(--eun-color-secondary-800, #a97624);
|
|
23
|
+
--_onSolid: var(--eun-color-on-secondary-500, #000000de);
|
|
24
|
+
--_accent: var(--eun-color-secondary-500, #e5a030);
|
|
25
|
+
--_tint: var(--eun-color-secondary-transparent, #e5a03033);
|
|
26
|
+
--_tint-hover: var(--eun-color-secondary-transparent-hover, #e5a0304d);
|
|
27
|
+
--_tint-active: var(--eun-color-secondary-transparent-active, #e5a03066);
|
|
28
|
+
--_ring: var(--eun-color-secondary-700, #ca8d2a);
|
|
29
|
+
}
|
|
30
|
+
:host([variant="critical"]) {
|
|
31
|
+
--_solid: var(--eun-color-critical-100, #aa0014);
|
|
32
|
+
--_solid-hover: var(--eun-color-critical-100, #aa0014);
|
|
33
|
+
--_solid-active: var(--eun-color-critical-100, #aa0014);
|
|
34
|
+
--_onSolid: #fff;
|
|
35
|
+
--_accent: var(--eun-color-critical-100, #aa0014);
|
|
36
|
+
--_tint: var(--eun-color-critical-30, #faf0f1);
|
|
37
|
+
--_tint-hover: var(--eun-color-critical-50, #f1d6d9);
|
|
38
|
+
--_tint-active: var(--eun-color-critical-90, #e4adb4);
|
|
39
|
+
--_ring: var(--eun-color-critical-100, #aa0014);
|
|
40
|
+
}
|
|
41
|
+
:host([variant="success"]) {
|
|
42
|
+
--_solid: var(--eun-color-success-100, #1a9948);
|
|
43
|
+
--_solid-hover: var(--eun-color-success-100, #1a9948);
|
|
44
|
+
--_solid-active: var(--eun-color-success-100, #1a9948);
|
|
45
|
+
--_onSolid: #fff;
|
|
46
|
+
--_accent: var(--eun-color-success-100, #1a9948);
|
|
47
|
+
--_tint: var(--eun-color-success-30, #f1f9f4);
|
|
48
|
+
--_tint-hover: var(--eun-color-success-50, #daefe2);
|
|
49
|
+
--_tint-active: var(--eun-color-success-90, #b6dec4);
|
|
50
|
+
--_ring: var(--eun-color-success-100, #1a9948);
|
|
51
|
+
}
|
|
52
|
+
:host([variant="warning"]) {
|
|
53
|
+
--_solid: var(--eun-color-warning-100, #c85207);
|
|
54
|
+
--_solid-hover: var(--eun-color-warning-100, #c85207);
|
|
55
|
+
--_solid-active: var(--eun-color-warning-100, #c85207);
|
|
56
|
+
--_onSolid: #fff;
|
|
57
|
+
--_accent: var(--eun-color-warning-100, #c85207);
|
|
58
|
+
--_tint: var(--eun-color-warning-30, #fcf5f0);
|
|
59
|
+
--_tint-hover: var(--eun-color-warning-50, #f6e3d7);
|
|
60
|
+
--_tint-active: var(--eun-color-warning-90, #edc8b0);
|
|
61
|
+
--_ring: var(--eun-color-warning-100, #c85207);
|
|
62
|
+
}
|
|
63
|
+
:host([variant="medium"]) {
|
|
64
|
+
--_solid: var(--eun-color-grey-700, #484e61);
|
|
65
|
+
--_solid-hover: var(--eun-color-grey-800, #071621);
|
|
66
|
+
--_solid-active: var(--eun-color-grey-900, #000000);
|
|
67
|
+
--_onSolid: var(--eun-color-grey-0, #ffffff);
|
|
68
|
+
--_accent: var(--eun-color-grey-900, #000000);
|
|
69
|
+
--_tint: color-mix(
|
|
70
|
+
in srgb,
|
|
71
|
+
var(--eun-color-grey-700, #484e61) 20%,
|
|
72
|
+
transparent
|
|
73
|
+
);
|
|
74
|
+
--_tint-hover: color-mix(
|
|
75
|
+
in srgb,
|
|
76
|
+
var(--eun-color-grey-700, #484e61) 30%,
|
|
77
|
+
transparent
|
|
78
|
+
);
|
|
79
|
+
--_tint-active: color-mix(
|
|
80
|
+
in srgb,
|
|
81
|
+
var(--eun-color-grey-700, #484e61) 40%,
|
|
82
|
+
transparent
|
|
83
|
+
);
|
|
84
|
+
--_ring: var(--eun-color-grey-700, #484e61);
|
|
85
|
+
}
|
|
86
|
+
:host([variant="light"]) {
|
|
87
|
+
--_solid: var(--eun-color-grey-0, #ffffff);
|
|
88
|
+
--_solid-hover: var(--eun-color-grey-200, #ecedf0);
|
|
89
|
+
--_solid-active: var(--eun-color-grey-300, #dee0e7);
|
|
90
|
+
--_onSolid: var(--eun-color-grey-900, #000000);
|
|
91
|
+
}
|
|
92
|
+
:host([variant="light"][fixed-color]) {
|
|
93
|
+
--_solid: #ffffff;
|
|
94
|
+
--_solid-hover: #ecedf0;
|
|
95
|
+
--_solid-active: #dee0e7;
|
|
96
|
+
--_onSolid: #000000;
|
|
97
|
+
}
|
|
98
|
+
:host([variant="dark"]) {
|
|
99
|
+
--_solid: var(--eun-color-grey-800, #071621);
|
|
100
|
+
--_solid-hover: var(--eun-color-grey-900, #000000);
|
|
101
|
+
--_solid-active: var(--eun-color-grey-900, #000000);
|
|
102
|
+
--_onSolid: var(--eun-color-grey-0, #ffffff);
|
|
103
|
+
}
|
|
104
|
+
:host([variant="dark"][fixed-color]) {
|
|
105
|
+
--_solid: #071621;
|
|
106
|
+
--_solid-hover: #000000;
|
|
107
|
+
--_solid-active: #000000;
|
|
108
|
+
--_onSolid: #ffffff;
|
|
109
|
+
}
|
|
110
|
+
:host([variant="light"]),
|
|
111
|
+
:host([variant="dark"]) {
|
|
112
|
+
--_accent: var(--_solid);
|
|
113
|
+
--_tint: var(--_solid);
|
|
114
|
+
--_tint-hover: var(--_solid-hover);
|
|
115
|
+
--_tint-active: var(--_solid-active);
|
|
116
|
+
--_fgTint: var(--_onSolid);
|
|
117
|
+
--_wash-hover: color-mix(in srgb, var(--_solid) 16%, transparent);
|
|
118
|
+
--_wash-active: color-mix(in srgb, var(--_solid) 28%, transparent);
|
|
119
|
+
--_flat: color-mix(in srgb, var(--_solid) 16%, transparent);
|
|
120
|
+
--_flat-hover: color-mix(in srgb, var(--_solid) 24%, transparent);
|
|
121
|
+
--_flatFg: var(--_solid);
|
|
122
|
+
--_ring: var(--_solid);
|
|
123
|
+
}
|
|
124
|
+
`;export{u as a,x as b,g as c};
|
|
@@ -11,10 +11,10 @@ import{g as o}from"./chunk-XH6NREVZ.js";var r=o`
|
|
|
11
11
|
max-height: var(--field-listbox-max-height, 260px);
|
|
12
12
|
overflow-y: auto;
|
|
13
13
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
14
|
-
font-size: var(--eun-
|
|
14
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
15
15
|
color: var(--_textColor);
|
|
16
16
|
background: var(--eun-surface-color, #ffffff);
|
|
17
|
-
border: var(--eun-
|
|
17
|
+
border: var(--eun-border-width-m, 1.5px) solid var(--_borderColor);
|
|
18
18
|
border-radius: var(--_borderRadius);
|
|
19
19
|
box-shadow: var(
|
|
20
20
|
--eun-shadow-m,
|
|
@@ -46,13 +46,13 @@ import{g as o}from"./chunk-XH6NREVZ.js";var r=o`
|
|
|
46
46
|
background: var(--eun-content-hover, #edeff0);
|
|
47
47
|
}
|
|
48
48
|
#listbox li.selected {
|
|
49
|
-
font-weight: var(--eun-
|
|
49
|
+
font-weight: var(--eun-font-weight-l, 700);
|
|
50
50
|
color: var(--eun-color-primary-500, #3d6fff);
|
|
51
51
|
}
|
|
52
52
|
#listbox li mark {
|
|
53
53
|
background: var(--field-match-background, none);
|
|
54
54
|
color: var(--field-match-color, var(--eun-color-primary-500, #3d6fff));
|
|
55
|
-
font-weight: var(--field-match-font-weight, var(--eun-
|
|
55
|
+
font-weight: var(--field-match-font-weight, var(--eun-font-weight-l, 700));
|
|
56
56
|
text-decoration: var(--field-match-text-decoration, none);
|
|
57
57
|
}
|
|
58
58
|
#listbox .no-results,
|
|
@@ -64,8 +64,8 @@ import{g as o}from"./chunk-XH6NREVZ.js";var r=o`
|
|
|
64
64
|
#listbox .group-label {
|
|
65
65
|
cursor: default;
|
|
66
66
|
padding-block-end: var(--eun-space-xxs, 1.6px);
|
|
67
|
-
font-size: var(--eun-
|
|
68
|
-
font-weight: var(--eun-
|
|
67
|
+
font-size: var(--eun-font-size-xs, 12px);
|
|
68
|
+
font-weight: var(--eun-font-weight-l, 700);
|
|
69
69
|
color: var(--_placeholderColor);
|
|
70
70
|
text-transform: uppercase;
|
|
71
71
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as b}from"./chunk-MMLIPCOY.js";import{a as
|
|
1
|
+
import{a as b}from"./chunk-MMLIPCOY.js";import{a as m}from"./chunk-A4EQSU36.js";import{a as f}from"./chunk-5EVP7YNE.js";import{a,b as l,c as d,d as p,f as u,g as n,h as r,n as s,s as c}from"./chunk-XH6NREVZ.js";var v=n`
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
@@ -87,11 +87,11 @@ import{a as b}from"./chunk-MMLIPCOY.js";import{a as f}from"./chunk-A4EQSU36.js";
|
|
|
87
87
|
overflow: hidden;
|
|
88
88
|
border-radius: var(
|
|
89
89
|
--loader-bar-border-radius,
|
|
90
|
-
var(--eun-
|
|
90
|
+
var(--eun-border-radius-full, 999px)
|
|
91
91
|
);
|
|
92
92
|
background: var(
|
|
93
93
|
--loader-bar-track-color,
|
|
94
|
-
var(--eun-
|
|
94
|
+
var(--eun-surface-sunken-strong, #ecedf0)
|
|
95
95
|
);
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -138,19 +138,19 @@ import{a as b}from"./chunk-MMLIPCOY.js";import{a as f}from"./chunk-A4EQSU36.js";
|
|
|
138
138
|
animation-duration: 2.8s;
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
`,h=[v,y];var k="eun-loader",i,t=class extends
|
|
141
|
+
`,h=[v,y];var k="eun-loader",i,t=class extends c{constructor(){super(...arguments);this.label="Loading\u2026";this.variant="dots";d(this,i);this.sticky=!1;this.stickyPosition="top"}set size(e){if(p(this,i,e),!e){this.style.removeProperty("--_size");return}let o;/%$/.test(e)?o=`${parseFloat(e)/100}rem`:/^\d+(\.\d+)?$/.test(e)?o=`${e}px`:o=e,this.style.setProperty("--_size",o)}get size(){return l(this,i)}get clampedValue(){return this.value===void 0?void 0:Math.min(100,Math.max(0,this.value))}render(){if(this.variant==="bar"){let e=this.clampedValue;return s`
|
|
142
142
|
<div
|
|
143
143
|
id="track"
|
|
144
144
|
role="progressbar"
|
|
145
145
|
aria-label=${this.label}
|
|
146
146
|
aria-valuemin="0"
|
|
147
147
|
aria-valuemax="100"
|
|
148
|
-
aria-valuenow=${
|
|
148
|
+
aria-valuenow=${f(e)}
|
|
149
149
|
>
|
|
150
150
|
<div
|
|
151
151
|
id="fill"
|
|
152
|
-
class=${
|
|
152
|
+
class=${m({indeterminate:e===void 0})}
|
|
153
153
|
style=${b({width:e===void 0?"":`${e}%`})}
|
|
154
154
|
></div>
|
|
155
155
|
</div>
|
|
156
|
-
`}return s`<span role="status" aria-label=${this.label}></span>`}};i=new WeakMap,t.styles=h,a([r()],t.prototype,"label",2),a([r({reflect:!0})],t.prototype,"variant",2),a([r({hasChanged:()=>!1})],t.prototype,"size",1),a([r({type:Number})],t.prototype,"value",2),a([r({type:Boolean,reflect:!0})],t.prototype,"sticky",2),a([r({attribute:"sticky-position",reflect:!0})],t.prototype,"stickyPosition",2),t=a([
|
|
156
|
+
`}return s`<span role="status" aria-label=${this.label}></span>`}};i=new WeakMap,t.styles=h,a([r()],t.prototype,"label",2),a([r({reflect:!0})],t.prototype,"variant",2),a([r({hasChanged:()=>!1})],t.prototype,"size",1),a([r({type:Number})],t.prototype,"value",2),a([r({type:Boolean,reflect:!0})],t.prototype,"sticky",2),a([r({attribute:"sticky-position",reflect:!0})],t.prototype,"stickyPosition",2),t=a([u(k)],t);export{k as a,t as b};
|
|
@@ -6,9 +6,9 @@ import{a as i,d as b,e as d,f as u}from"./chunk-E74CM7UG.js";import{a as t,f as
|
|
|
6
6
|
var(--eun-surface-color, #ffffff)
|
|
7
7
|
);
|
|
8
8
|
box-shadow: inset 0 0 0 9999px transparent;
|
|
9
|
-
border-bottom: var(--eun-
|
|
9
|
+
border-bottom: var(--eun-border-width-s, 1px) solid
|
|
10
10
|
var(--table-border-color, var(--eun-border-color, #dee0e7));
|
|
11
|
-
font-weight: var(--eun-
|
|
11
|
+
font-weight: var(--eun-font-weight-m, 500);
|
|
12
12
|
transition: box-shadow var(--table-row-transition-duration, 200ms) ease;
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -74,7 +74,7 @@ import{a as i,d as b,e as d,f as u}from"./chunk-E74CM7UG.js";import{a as t,f as
|
|
|
74
74
|
var(--table-header-background, var(--eun-surface-color, #ffffff))
|
|
75
75
|
);
|
|
76
76
|
box-shadow: inset 0 0 0 9999px transparent;
|
|
77
|
-
border-inline-end: var(--eun-
|
|
77
|
+
border-inline-end: var(--eun-border-width-s, 1px) solid
|
|
78
78
|
var(
|
|
79
79
|
--table-sticky-border-color,
|
|
80
80
|
var(--table-column-border-color, transparent)
|
|
@@ -119,7 +119,7 @@ import{a as i,d as b,e as d,f as u}from"./chunk-E74CM7UG.js";import{a as t,f as
|
|
|
119
119
|
);
|
|
120
120
|
box-shadow: inset 0 0 0 9999px transparent;
|
|
121
121
|
transition: box-shadow var(--table-row-transition-duration, 200ms) ease;
|
|
122
|
-
border-inline-start: var(--eun-
|
|
122
|
+
border-inline-start: var(--eun-border-width-s, 1px) solid
|
|
123
123
|
var(
|
|
124
124
|
--table-sticky-border-color,
|
|
125
125
|
var(--table-column-border-color, transparent)
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import{a as v,b as h,c as f}from"./chunk-4MXL6PZC.js";import{a as _}from"./chunk-T7WABJEJ.js";import{a as p}from"./chunk-UP4M7TER.js";import{a as o}from"./chunk-5EVP7YNE.js";import{a as b}from"./chunk-BKHD4S57.js";import{a as n,f as c,g as i,h as s,n as a,p as l,s as u}from"./chunk-XH6NREVZ.js";var x=i`
|
|
2
|
+
:host {
|
|
3
|
+
--_focusIndicator: var(--button-focus-outline, var(--_ring));
|
|
4
|
+
--_hoverFromCustom: color-mix(in srgb, var(--button-background) 88%, black);
|
|
5
|
+
--_activeFromCustom: color-mix(
|
|
6
|
+
in srgb,
|
|
7
|
+
var(--button-background) 76%,
|
|
8
|
+
black
|
|
9
|
+
);
|
|
10
|
+
--_borderRadius: var(
|
|
11
|
+
--button-border-radius,
|
|
12
|
+
var(--eun-border-radius-m, 8px)
|
|
13
|
+
);
|
|
14
|
+
--_padding: var(
|
|
15
|
+
--button-padding,
|
|
16
|
+
var(--eun-space-s, 8px) calc(var(--eun-space-l, 32px) / 2)
|
|
17
|
+
);
|
|
18
|
+
--_boxShadow: var(--button-shadow, none);
|
|
19
|
+
--_boxShadow-hover: var(--button-shadow-hover, var(--_boxShadow));
|
|
20
|
+
--_transition: var(--button-transition, 0.2s);
|
|
21
|
+
--_borderSize: var(--button-border-size, 1.5px);
|
|
22
|
+
--_fontSize: var(--eun-font-size-s, 14px);
|
|
23
|
+
--_gap: var(--eun-space-xs, 4px);
|
|
24
|
+
--_lineHeight: 1rem;
|
|
25
|
+
--icon-size: var(--_lineHeight);
|
|
26
|
+
--_before-display: none;
|
|
27
|
+
--_cursor: pointer;
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
width: fit-content;
|
|
30
|
+
position: relative;
|
|
31
|
+
user-select: none;
|
|
32
|
+
cursor: var(--_cursor);
|
|
33
|
+
outline: 2px solid transparent;
|
|
34
|
+
transition: all ease-out var(--_transition);
|
|
35
|
+
border-radius: var(--_borderRadius);
|
|
36
|
+
z-index: 0;
|
|
37
|
+
}
|
|
38
|
+
:host(:focus-visible) {
|
|
39
|
+
outline-offset: 2px;
|
|
40
|
+
outline-color: var(--_focusIndicator);
|
|
41
|
+
}
|
|
42
|
+
#button:focus-visible {
|
|
43
|
+
outline-offset: 2px;
|
|
44
|
+
outline-color: var(--_focusIndicator);
|
|
45
|
+
}
|
|
46
|
+
:host([size="xs"]) {
|
|
47
|
+
--_fontSize: var(--eun-font-size-xs, 10px);
|
|
48
|
+
--_padding: var(--eun-space-xxs, 1.6px) var(--eun-space-xs, 4px);
|
|
49
|
+
--_lineHeight: 10px;
|
|
50
|
+
--_borderRadius: var(--eun-border-radius-s, 999px);
|
|
51
|
+
}
|
|
52
|
+
:host([size="s"]) {
|
|
53
|
+
--_fontSize: var(--eun-font-size-xs, 10px);
|
|
54
|
+
--_padding: calc(var(--eun-space-s) / 2) var(--eun-space-s);
|
|
55
|
+
--_lineHeight: 10px;
|
|
56
|
+
--_borderRadius: var(--eun-border-radius-s, 999px);
|
|
57
|
+
}
|
|
58
|
+
:host([size="l"]) {
|
|
59
|
+
--_fontSize: var(--eun-font-size-m, 16px);
|
|
60
|
+
--_gap: var(--eun-space-m, 16px);
|
|
61
|
+
--_padding: calc(var(--eun-space-s, 8px) * 1.25) var(--eun-space-l, 32px);
|
|
62
|
+
--_lineHeight: 1.1rem;
|
|
63
|
+
}
|
|
64
|
+
:host([size="xl"]) {
|
|
65
|
+
--_fontSize: var(--eun-font-size-l, 1.3rem);
|
|
66
|
+
--_gap: var(--eun-space-m, 16px);
|
|
67
|
+
--_padding: calc(var(--eun-space-s, 8px) * 1.5) var(--eun-space-l, 32px);
|
|
68
|
+
--_lineHeight: 1.3rem;
|
|
69
|
+
}
|
|
70
|
+
:host([rounded]) {
|
|
71
|
+
--_borderRadius: var(--eun-border-radius-xl, 999px);
|
|
72
|
+
}
|
|
73
|
+
slot::slotted(*) {
|
|
74
|
+
color: var(--_textColor);
|
|
75
|
+
}
|
|
76
|
+
slot::slotted(*:not([fill])),
|
|
77
|
+
slot::slotted(*[fill="currentColor"]) {
|
|
78
|
+
fill: var(--_textColor);
|
|
79
|
+
}
|
|
80
|
+
slot[name="start"]::slotted(eun-icon),
|
|
81
|
+
slot[name="end"]::slotted(eun-icon) {
|
|
82
|
+
flex-shrink: 0;
|
|
83
|
+
}
|
|
84
|
+
.auto-icon {
|
|
85
|
+
flex-shrink: 0;
|
|
86
|
+
}
|
|
87
|
+
#button {
|
|
88
|
+
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
89
|
+
--_textColor: var(--button-text, var(--_fg));
|
|
90
|
+
background: var(--button-background, var(--_bg));
|
|
91
|
+
border-radius: var(--_borderRadius);
|
|
92
|
+
color: var(--_textColor);
|
|
93
|
+
box-shadow: var(--_boxShadow);
|
|
94
|
+
display: flex;
|
|
95
|
+
width: 100%;
|
|
96
|
+
height: fit-content;
|
|
97
|
+
border: var(--_borderSize) solid var(--button-border-color, var(--_bd));
|
|
98
|
+
outline: 2px solid transparent;
|
|
99
|
+
padding: var(--_padding);
|
|
100
|
+
gap: var(--_gap);
|
|
101
|
+
transition: all ease-out var(--_transition);
|
|
102
|
+
font-size: var(--_fontSize);
|
|
103
|
+
line-height: var(--_lineHeight);
|
|
104
|
+
text-decoration: none;
|
|
105
|
+
align-items: center;
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
}
|
|
108
|
+
#button:hover,
|
|
109
|
+
:host(:focus-visible) #button,
|
|
110
|
+
#button:focus-visible {
|
|
111
|
+
box-shadow: var(--_boxShadow-hover);
|
|
112
|
+
border-color: var(
|
|
113
|
+
--button-border-color-hover,
|
|
114
|
+
var(--button-border-color, var(--_bd))
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
#external-link-icon {
|
|
118
|
+
display: inline-flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
margin-inline: var(--eun-space-s) calc(-1 * var(--eun-space-xs));
|
|
121
|
+
transform: rotate(-45deg);
|
|
122
|
+
--icon-color: var(--_textColor);
|
|
123
|
+
}
|
|
124
|
+
#content-hidden {
|
|
125
|
+
display: flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
gap: var(--_gap);
|
|
128
|
+
visibility: hidden;
|
|
129
|
+
}
|
|
130
|
+
#loader-overlay {
|
|
131
|
+
position: absolute;
|
|
132
|
+
inset: 0;
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
}
|
|
137
|
+
:host([loading]) #button {
|
|
138
|
+
cursor: wait;
|
|
139
|
+
pointer-events: none;
|
|
140
|
+
}
|
|
141
|
+
.sr-only {
|
|
142
|
+
position: absolute;
|
|
143
|
+
width: 1px;
|
|
144
|
+
height: 1px;
|
|
145
|
+
padding: 0;
|
|
146
|
+
margin: -1px;
|
|
147
|
+
overflow: hidden;
|
|
148
|
+
clip: rect(0 0 0 0);
|
|
149
|
+
white-space: nowrap;
|
|
150
|
+
border: 0;
|
|
151
|
+
}
|
|
152
|
+
`,m=i`
|
|
153
|
+
:host([appearance="fill"]),
|
|
154
|
+
:host(:not([appearance])) {
|
|
155
|
+
--_bg: var(--_solid);
|
|
156
|
+
--_bg-hover: var(--_solid-hover);
|
|
157
|
+
--_bg-active: var(--_solid-active);
|
|
158
|
+
--_fg: var(--_onSolid);
|
|
159
|
+
--_bd: transparent;
|
|
160
|
+
}
|
|
161
|
+
:host([appearance="default"]) {
|
|
162
|
+
--_bg: var(--_tint);
|
|
163
|
+
--_bg-hover: var(--_tint-hover);
|
|
164
|
+
--_bg-active: var(--_tint-active);
|
|
165
|
+
--_fg: var(--_fgTint);
|
|
166
|
+
--_bd: transparent;
|
|
167
|
+
}
|
|
168
|
+
:host([appearance="outline"]) {
|
|
169
|
+
--_bg: transparent;
|
|
170
|
+
--_bg-hover: var(--_wash-hover);
|
|
171
|
+
--_bg-active: var(--_wash-active);
|
|
172
|
+
--_fg: var(--_accent);
|
|
173
|
+
--_bd: var(--_solid);
|
|
174
|
+
}
|
|
175
|
+
:host([appearance="ghost"]) {
|
|
176
|
+
--_bg: transparent;
|
|
177
|
+
--_bg-hover: var(--_wash-hover);
|
|
178
|
+
--_bg-active: var(--_wash-active);
|
|
179
|
+
--_fg: var(--_accent);
|
|
180
|
+
--_bd: transparent;
|
|
181
|
+
}
|
|
182
|
+
:host([appearance="ghost"]:not([variant])) {
|
|
183
|
+
--_accent: var(--eun-text-secondary, #484e61);
|
|
184
|
+
--_wash-hover: var(--eun-content-hover, #edeff0);
|
|
185
|
+
--_wash-active: var(--eun-disabled-color, #ecedf0);
|
|
186
|
+
}
|
|
187
|
+
:host([appearance="raised"]) {
|
|
188
|
+
--_bg: transparent;
|
|
189
|
+
--_bg-hover: transparent;
|
|
190
|
+
--_bg-active: transparent;
|
|
191
|
+
--_fg: var(--_accent);
|
|
192
|
+
--_bd: transparent;
|
|
193
|
+
--_boxShadow: var(
|
|
194
|
+
--button-shadow,
|
|
195
|
+
var(--eun-shadow-s, "rgba(149, 157, 165, 0.2) 0px 8px 24px")
|
|
196
|
+
);
|
|
197
|
+
--_boxShadow-hover: var(
|
|
198
|
+
--button-shadow-hover,
|
|
199
|
+
var(
|
|
200
|
+
--eun-shadow-m,
|
|
201
|
+
"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px"
|
|
202
|
+
)
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
:host([appearance="flat"]) {
|
|
206
|
+
--_bg: var(--_flat);
|
|
207
|
+
--_bg-hover: var(--_flat-hover);
|
|
208
|
+
--_bg-active: var(--_flat-hover);
|
|
209
|
+
--_fg: var(--_flatFg);
|
|
210
|
+
--_bd: transparent;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/* States : a custom background wins, derived when only the rest one is set. */
|
|
214
|
+
:host(:not([disabled])) #button:is(:hover, :focus-visible),
|
|
215
|
+
:host(:not([disabled]):focus-visible) #button {
|
|
216
|
+
background: var(
|
|
217
|
+
--button-background-hover,
|
|
218
|
+
var(--_hoverFromCustom, var(--_bg-hover))
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
:host(:not([disabled])) #button:active {
|
|
222
|
+
background: var(
|
|
223
|
+
--button-background-active,
|
|
224
|
+
var(--_activeFromCustom, var(--_bg-active))
|
|
225
|
+
);
|
|
226
|
+
}
|
|
227
|
+
:host([appearance="raised"]:not([disabled])) #button:active {
|
|
228
|
+
box-shadow: var(
|
|
229
|
+
--eun-shadow-l,
|
|
230
|
+
"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px"
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* A solid semantic button darkens instead of switching color. */
|
|
235
|
+
:host(
|
|
236
|
+
[appearance="fill"]:is(
|
|
237
|
+
[variant="critical"],
|
|
238
|
+
[variant="success"],
|
|
239
|
+
[variant="warning"]
|
|
240
|
+
):not([disabled]):is(:hover, :focus-visible)
|
|
241
|
+
)
|
|
242
|
+
#button,
|
|
243
|
+
:host(
|
|
244
|
+
[appearance="fill"]:is(
|
|
245
|
+
[variant="critical"],
|
|
246
|
+
[variant="success"],
|
|
247
|
+
[variant="warning"]
|
|
248
|
+
):not([disabled])
|
|
249
|
+
)
|
|
250
|
+
#button:is(:hover, :focus-visible) {
|
|
251
|
+
filter: brightness(0.9);
|
|
252
|
+
}
|
|
253
|
+
:host([appearance="fill"][variant="critical"]:not([disabled])) #button:active,
|
|
254
|
+
:host([appearance="fill"][variant="success"]:not([disabled])) #button:active,
|
|
255
|
+
:host([appearance="fill"][variant="warning"]:not([disabled])) #button:active {
|
|
256
|
+
filter: brightness(0.8);
|
|
257
|
+
}
|
|
258
|
+
`,w=i`
|
|
259
|
+
:host([disabled]) {
|
|
260
|
+
--_bg: var(--eun-disabled-color, #ecedf0);
|
|
261
|
+
--_bg-hover: var(--eun-disabled-color, #ecedf0);
|
|
262
|
+
--_bg-active: var(--eun-disabled-color, #ecedf0);
|
|
263
|
+
--_fg: var(--eun-text-disabled-color, #8d93aa);
|
|
264
|
+
--_bd: transparent;
|
|
265
|
+
--_boxShadow: none;
|
|
266
|
+
--_boxShadow-hover: none;
|
|
267
|
+
--_cursor: not-allowed;
|
|
268
|
+
}
|
|
269
|
+
:host([disabled]) #button {
|
|
270
|
+
--_icon-color: currentColor;
|
|
271
|
+
--_textColor: var(--_fg);
|
|
272
|
+
background: var(--_bg);
|
|
273
|
+
border-color: var(--_bd);
|
|
274
|
+
pointer-events: none;
|
|
275
|
+
}
|
|
276
|
+
`,y=i`
|
|
277
|
+
:host([slide]) {
|
|
278
|
+
width: auto;
|
|
279
|
+
}
|
|
280
|
+
:host([slide]) #button {
|
|
281
|
+
display: grid;
|
|
282
|
+
grid-template-columns: auto 0fr auto;
|
|
283
|
+
gap: 0;
|
|
284
|
+
align-items: center;
|
|
285
|
+
justify-content: start;
|
|
286
|
+
transition: grid-template-columns ease var(--_transition);
|
|
287
|
+
}
|
|
288
|
+
:host([slide]:hover) #button,
|
|
289
|
+
:host([slide]:focus-visible) #button,
|
|
290
|
+
:host([slide]) #button:focus-visible {
|
|
291
|
+
grid-template-columns: auto 1fr auto;
|
|
292
|
+
}
|
|
293
|
+
:host([slide]) slot:not([name]) {
|
|
294
|
+
display: inline-block;
|
|
295
|
+
overflow: hidden;
|
|
296
|
+
white-space: nowrap;
|
|
297
|
+
text-overflow: ellipsis;
|
|
298
|
+
margin-left: 0;
|
|
299
|
+
opacity: 0;
|
|
300
|
+
transition:
|
|
301
|
+
margin-left ease var(--_transition),
|
|
302
|
+
opacity ease var(--_transition);
|
|
303
|
+
}
|
|
304
|
+
:host([slide]:hover) slot:not([name]),
|
|
305
|
+
:host([slide]:focus-visible) slot:not([name]),
|
|
306
|
+
:host([slide]) #button:focus-visible slot:not([name]) {
|
|
307
|
+
margin-left: var(--_gap);
|
|
308
|
+
opacity: 1;
|
|
309
|
+
}
|
|
310
|
+
`,k=i`
|
|
311
|
+
:host([full]) {
|
|
312
|
+
display: flex;
|
|
313
|
+
width: 100%;
|
|
314
|
+
}
|
|
315
|
+
:host([full]) #button {
|
|
316
|
+
justify-content: center;
|
|
317
|
+
}
|
|
318
|
+
`,S=i`
|
|
319
|
+
@supports (width: if(style(--a: b): 1px; else: 2px)) {
|
|
320
|
+
:host {
|
|
321
|
+
width: if(style(--button-full: true): 100%; else: fit-content);
|
|
322
|
+
}
|
|
323
|
+
#button {
|
|
324
|
+
justify-content: if(style(--button-full: true): center; else: normal);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
`,g=[h,x,m,w,y,S,k];var z="eun-button",t=class extends v(f(_(u))){constructor(){super(...arguments);this.loadingLabel="Loading\u2026";this.appearance="fill";this.full=!1}updated(e){if(super.updated(e),e.has("href")||e.has("disabled")||e.has("loading")){let r=this.disabled||this.loading;this.href&&!r?this.removeAttribute("tabindex"):this.setAttribute("tabindex",r?"-1":"0")}}renderEndContent(){return this.href&&this.target==="_blank"?a`
|
|
328
|
+
<span id="external-link-icon">
|
|
329
|
+
<eun-icon name="arrow_forward" shape="round" size="12"></eun-icon>
|
|
330
|
+
${this.ariaLabel?l:a`<span class="sr-only"> (opens in a new tab)</span>`}
|
|
331
|
+
</span>
|
|
332
|
+
`:a`<slot name="end"></slot>`}renderContent(){let e=p(this.icon,this.severity),r=a`
|
|
333
|
+
<slot name="start">
|
|
334
|
+
${e?a`<eun-icon
|
|
335
|
+
class="auto-icon"
|
|
336
|
+
name=${e}
|
|
337
|
+
size="16"
|
|
338
|
+
></eun-icon>`:l}
|
|
339
|
+
</slot>
|
|
340
|
+
<slot></slot>
|
|
341
|
+
${this.renderEndContent()}
|
|
342
|
+
`;return this.loading?a`
|
|
343
|
+
<span id="content-hidden" aria-hidden="true">${r}</span>
|
|
344
|
+
<span id="loader-overlay">
|
|
345
|
+
<eun-loader label=${this.loadingLabel}></eun-loader>
|
|
346
|
+
<span class="sr-only" role="status" aria-live="polite"
|
|
347
|
+
>${this.loadingLabel}</span
|
|
348
|
+
>
|
|
349
|
+
</span>
|
|
350
|
+
`:r}handleLinkClick(e){this.download||b(this,e,this.href,this.target)}render(){let e=this.renderContent(),r=this.disabled||this.loading;if(this.href){let d=this.target==="_blank";return a`
|
|
351
|
+
<a
|
|
352
|
+
id="button"
|
|
353
|
+
href=${o(r?void 0:this.href)}
|
|
354
|
+
target=${o(this.target)}
|
|
355
|
+
rel=${o(d?"noopener noreferrer":void 0)}
|
|
356
|
+
download=${o(this.download)}
|
|
357
|
+
aria-label=${o(d&&this.ariaLabel?`${this.ariaLabel} (opens in a new tab)`:this.ariaLabel??void 0)}
|
|
358
|
+
aria-disabled=${o(this.disabled?"true":void 0)}
|
|
359
|
+
aria-busy=${o(this.loading?"true":void 0)}
|
|
360
|
+
@click=${this.handleLinkClick}
|
|
361
|
+
>
|
|
362
|
+
${e}
|
|
363
|
+
</a>
|
|
364
|
+
`}return a`
|
|
365
|
+
<div
|
|
366
|
+
id="button"
|
|
367
|
+
aria-busy=${o(this.loading?"true":void 0)}
|
|
368
|
+
>
|
|
369
|
+
${e}
|
|
370
|
+
</div>
|
|
371
|
+
`}};t.styles=g,n([s({attribute:"loading-label"})],t.prototype,"loadingLabel",2),n([s()],t.prototype,"icon",2),n([s({reflect:!0})],t.prototype,"severity",2),n([s({reflect:!0})],t.prototype,"appearance",2),n([s({type:Boolean,reflect:!0})],t.prototype,"full",2),t=n([c(z)],t);export{z as a,t as b};
|