@eunomia/elements 1.0.0-beta.2 → 1.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cdn/components/chunks/chunk-2JLDJFYD.js +48 -0
- package/dist/cdn/components/chunks/chunk-4MXL6PZC.js +124 -0
- package/dist/cdn/components/chunks/{chunk-32KRPOPV.js → chunk-5XJGYXW7.js} +6 -6
- package/dist/cdn/components/chunks/{chunk-O2HNWH65.js → chunk-5XJLIHAU.js} +7 -7
- package/dist/cdn/components/chunks/{chunk-5GF2Q3NR.js → chunk-74AOAB4X.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-WYMBUIKX.js → chunk-A6KGFALA.js} +4 -4
- package/dist/cdn/components/chunks/chunk-BMQOI7HX.js +371 -0
- package/dist/cdn/components/chunks/{chunk-LJYTHDZP.js → chunk-D2M4BV5Y.js} +6 -6
- package/dist/cdn/components/chunks/{chunk-NEYBPT3D.js → chunk-EJIX2D4Z.js} +2 -2
- package/dist/cdn/components/chunks/{chunk-BYBUXKXC.js → chunk-EOWBYZV7.js} +2 -2
- package/dist/cdn/components/chunks/chunk-EST3M4AO.js +1 -0
- package/dist/cdn/components/chunks/{chunk-AQQMW353.js → chunk-GSJEJLFA.js} +3 -3
- package/dist/cdn/components/chunks/chunk-GU6BVMFJ.js +1 -0
- package/dist/cdn/components/chunks/{chunk-5RCCZVFZ.js → chunk-IJ5WFMK4.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-RWONCXTF.js → chunk-KVYUNKUO.js} +2 -2
- package/dist/cdn/components/chunks/chunk-LGLQ36QB.js +16 -0
- package/dist/cdn/components/chunks/{chunk-74HHV4CX.js → chunk-NHFWATVN.js} +2 -2
- package/dist/cdn/components/chunks/chunk-OAULRKHQ.js +38 -0
- package/dist/cdn/components/chunks/chunk-P32B7BFD.js +118 -0
- package/dist/cdn/components/chunks/{chunk-ZPFHTJSS.js → chunk-PCM7D3YF.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-ABYEBP57.js → chunk-PED5ATYN.js} +11 -8
- package/dist/cdn/components/chunks/{chunk-ON42P6FI.js → chunk-RJCJXB7Y.js} +5 -5
- package/dist/cdn/components/chunks/{chunk-5C7YND22.js → chunk-S2UCEWNG.js} +8 -8
- package/dist/cdn/components/chunks/{chunk-7WTSHE7M.js → chunk-SIHZFOTK.js} +9 -9
- package/dist/cdn/components/chunks/{chunk-6UPI7GHJ.js → chunk-UAGCQF23.js} +7 -7
- package/dist/cdn/components/chunks/{chunk-6IILPCSQ.js → chunk-X2AUBZD2.js} +3 -3
- package/dist/cdn/components/chunks/chunk-YGUJJ25C.js +263 -0
- package/dist/cdn/components/chunks/chunk-YYCEPZUN.js +1 -0
- package/dist/cdn/components/eun-alert.js +65 -45
- package/dist/cdn/components/eun-animate.js +178 -2
- package/dist/cdn/components/eun-badge.js +1 -1
- package/dist/cdn/components/eun-breadcrumb-item.js +14 -10
- package/dist/cdn/components/eun-breadcrumb.js +11 -7
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-calendar.js +16 -16
- package/dist/cdn/components/eun-card.js +29 -12
- package/dist/cdn/components/eun-carousel.js +36 -28
- package/dist/cdn/components/eun-check-card.js +3 -3
- package/dist/cdn/components/eun-checkbox-list.js +3 -3
- package/dist/cdn/components/eun-checkbox.js +1 -1
- package/dist/cdn/components/eun-chip.js +45 -210
- package/dist/cdn/components/eun-collapse.js +20 -26
- package/dist/cdn/components/eun-color-picker.js +28 -28
- package/dist/cdn/components/eun-counter.js +11 -11
- package/dist/cdn/components/eun-date-picker.js +50 -50
- package/dist/cdn/components/eun-drawer.js +3 -3
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-dropdown-item.js +6 -6
- package/dist/cdn/components/eun-fab.js +31 -53
- package/dist/cdn/components/eun-icon.js +1 -1
- package/dist/cdn/components/eun-image-card.js +18 -11
- package/dist/cdn/components/eun-image-carousel.js +16 -16
- package/dist/cdn/components/eun-infinite-list.js +1 -1
- package/dist/cdn/components/eun-input-file.js +20 -20
- package/dist/cdn/components/eun-input-phone.js +14 -14
- package/dist/cdn/components/eun-input.js +1 -1
- package/dist/cdn/components/eun-label.js +4 -4
- package/dist/cdn/components/eun-link.js +29 -11
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +6 -6
- package/dist/cdn/components/eun-pagination.js +3 -3
- package/dist/cdn/components/eun-password-strength.js +9 -6
- package/dist/cdn/components/eun-progress-bar.js +13 -13
- package/dist/cdn/components/eun-radio-card.js +2 -2
- package/dist/cdn/components/eun-radio-list.js +3 -3
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-scheduler-event-editor.js +2 -2
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +10 -10
- package/dist/cdn/components/eun-search.js +7 -7
- package/dist/cdn/components/eun-select.js +39 -18
- package/dist/cdn/components/eun-sidebar.js +10 -10
- package/dist/cdn/components/eun-skeleton.js +1 -1
- package/dist/cdn/components/eun-slider.js +9 -9
- package/dist/cdn/components/eun-sliding-card.js +7 -10
- package/dist/cdn/components/eun-step.js +8 -8
- package/dist/cdn/components/eun-stepper.js +8 -8
- package/dist/cdn/components/eun-switch.js +10 -10
- package/dist/cdn/components/eun-tab-group.js +19 -11
- package/dist/cdn/components/eun-tab-panel.js +1 -1
- package/dist/cdn/components/eun-tab.js +1 -1
- package/dist/cdn/components/eun-table-action-bar.js +1 -1
- package/dist/cdn/components/eun-table-cell.js +1 -1
- package/dist/cdn/components/eun-table-column.js +1 -1
- package/dist/cdn/components/eun-table-header.js +1 -1
- package/dist/cdn/components/eun-table-item.js +1 -1
- package/dist/cdn/components/eun-table-skeleton-row.js +1 -1
- package/dist/cdn/components/eun-table.js +3 -3
- package/dist/cdn/components/eun-tag.js +34 -122
- package/dist/cdn/components/eun-textarea.js +28 -28
- package/dist/cdn/components/eun-time-picker.js +25 -25
- package/dist/cdn/components/eun-toast.js +40 -36
- package/dist/cdn/components/eun-toggle-group.js +199 -66
- package/dist/cdn/components/eun-toggle-item.js +42 -25
- package/dist/cdn/components/eun-toggle.js +13 -10
- package/dist/cdn/components/eun-toolbar.js +28 -19
- package/dist/cdn/components/eun-tooltip.js +122 -87
- package/dist/cdn/styles/eunomia-themes.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.scss +1 -0
- package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +71 -0
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +2 -0
- package/dist/cdn/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/dist/cdn/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +39 -0
- package/dist/cdn/styles/tools/mixins/settings/eunomia-border.mixin.scss +3 -3
- package/dist/cdn/styles/tools/mixins/settings/eunomia-font.mixin.scss +12 -12
- package/dist/cdn/styles/tools/mixins/settings/eunomia-radius.mixin.scss +4 -4
- package/dist/components/action/button/button.d.ts +7 -6
- package/dist/components/action/button/button.js +7 -6
- package/dist/components/action/button/button.styles.js +143 -373
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +7 -0
- package/dist/components/action/dropdown-button/dropdown-button.js +11 -0
- package/dist/components/action/dropdown-button/dropdown-button.styles.js +8 -8
- package/dist/components/action/dropdown-button/dropdown-item.styles.js +6 -6
- package/dist/components/action/fab/fab.d.ts +3 -1
- package/dist/components/action/fab/fab.js +3 -1
- package/dist/components/action/fab/fab.styles.js +26 -49
- package/dist/components/action/link/link.d.ts +50 -0
- package/dist/components/action/link/link.js +69 -1
- package/dist/components/action/link/link.styles.js +19 -2
- package/dist/components/action/shared-styles/button-palette.styles.d.ts +27 -0
- package/dist/components/action/shared-styles/button-palette.styles.js +151 -0
- package/dist/components/action/toggle/toggle-group.d.ts +41 -7
- package/dist/components/action/toggle/toggle-group.js +162 -46
- package/dist/components/action/toggle/toggle-group.styles.d.ts +6 -5
- package/dist/components/action/toggle/toggle-group.styles.js +152 -35
- package/dist/components/action/toggle/toggle-item.styles.js +38 -21
- package/dist/components/action/toggle/toggle.d.ts +1 -1
- package/dist/components/action/toggle/toggle.js +2 -2
- package/dist/components/action/toggle/toggle.styles.d.ts +2 -2
- package/dist/components/action/toggle/toggle.styles.js +13 -10
- package/dist/components/alert/alert/alert.d.ts +4 -3
- package/dist/components/alert/alert/alert.js +4 -3
- package/dist/components/alert/alert/alert.styles.js +57 -36
- package/dist/components/alert/drawer/drawer.styles.js +3 -3
- package/dist/components/alert/modal/modal.styles.js +6 -6
- package/dist/components/alert/toast/toast.d.ts +4 -3
- package/dist/components/alert/toast/toast.js +4 -3
- package/dist/components/alert/toast/toast.styles.js +41 -36
- package/dist/components/content/badge/badge.styles.js +1 -1
- package/dist/components/content/card/card.d.ts +4 -4
- package/dist/components/content/card/card.js +4 -4
- package/dist/components/content/card/card.styles.js +27 -10
- package/dist/components/content/card/image-card.d.ts +1 -1
- package/dist/components/content/card/image-card.js +1 -1
- package/dist/components/content/card/image-card.styles.js +17 -10
- package/dist/components/content/card/sliding-card.styles.js +3 -6
- package/dist/components/content/chip/chip.d.ts +16 -7
- package/dist/components/content/chip/chip.js +18 -6
- package/dist/components/content/chip/chip.styles.d.ts +1 -1
- package/dist/components/content/chip/chip.styles.js +43 -210
- package/dist/components/content/collapse/collapse.styles.js +10 -16
- package/dist/components/content/icon/icon.d.ts +48 -5
- package/dist/components/content/icon/icon.js +92 -20
- package/dist/components/content/icon/icon.style.js +1 -1
- package/dist/components/content/image-carousel/image-carousel.styles.js +14 -14
- package/dist/components/content/password-strength/password-strength.styles.js +7 -4
- package/dist/components/content/progress-bar/progress-bar.styles.js +9 -9
- package/dist/components/content/shared-styles/tone-surface.styles.d.ts +31 -0
- package/dist/components/content/shared-styles/tone-surface.styles.js +149 -0
- package/dist/components/content/tag/tag.d.ts +16 -6
- package/dist/components/content/tag/tag.js +19 -6
- package/dist/components/content/tag/tag.styles.d.ts +1 -1
- package/dist/components/content/tag/tag.styles.js +40 -121
- package/dist/components/content/tooltip/tooltip.d.ts +15 -4
- package/dist/components/content/tooltip/tooltip.js +21 -4
- package/dist/components/content/tooltip/tooltip.styles.js +115 -79
- package/dist/components/form/checkbox/check-card.styles.js +2 -2
- package/dist/components/form/checkbox/checkbox-list.d.ts +1 -1
- package/dist/components/form/checkbox/checkbox-list.js +1 -1
- package/dist/components/form/checkbox/checkbox.d.ts +1 -1
- package/dist/components/form/checkbox/checkbox.styles.js +6 -6
- package/dist/components/form/color-picker/color-picker.d.ts +1 -1
- package/dist/components/form/color-picker/color-picker.js +9 -7
- package/dist/components/form/color-picker/color-picker.styles.js +7 -7
- package/dist/components/form/counter/counter.d.ts +1 -1
- package/dist/components/form/counter/counter.js +3 -3
- package/dist/components/form/counter/counter.styles.js +7 -7
- package/dist/components/form/date-picker/date-picker-day-grid.styles.js +2 -2
- package/dist/components/form/date-picker/date-picker-grid.styles.js +15 -15
- package/dist/components/form/date-picker/date-picker-month-grid.styles.js +1 -1
- package/dist/components/form/date-picker/date-picker-year-grid.styles.js +1 -1
- package/dist/components/form/date-picker/date-picker.d.ts +1 -1
- package/dist/components/form/date-picker/date-picker.js +3 -3
- package/dist/components/form/date-picker/date-picker.styles.js +12 -12
- package/dist/components/form/input/input.d.ts +1 -1
- package/dist/components/form/input/input.js +2 -2
- package/dist/components/form/input-file/input-file.d.ts +1 -1
- package/dist/components/form/input-file/input-file.js +5 -5
- package/dist/components/form/input-file/input-file.styles.js +9 -9
- package/dist/components/form/input-phone/input-phone.d.ts +1 -1
- package/dist/components/form/input-phone/input-phone.js +3 -3
- package/dist/components/form/input-phone/input-phone.styles.js +7 -7
- package/dist/components/form/label/label.styles.js +4 -4
- package/dist/components/form/radio/radio-card.styles.js +1 -1
- package/dist/components/form/radio/radio-list.d.ts +1 -1
- package/dist/components/form/radio/radio-list.js +2 -2
- package/dist/components/form/radio/radio.d.ts +1 -1
- package/dist/components/form/radio/radio.styles.js +2 -2
- package/dist/components/form/search/search.styles.js +6 -6
- package/dist/components/form/select/select.d.ts +17 -1
- package/dist/components/form/select/select.js +28 -5
- package/dist/components/form/select/select.styles.js +16 -5
- package/dist/components/form/shared-styles/card.styles.js +1 -1
- package/dist/components/form/shared-styles/field.styles.js +7 -7
- package/dist/components/form/shared-styles/form-labels.styles.js +1 -1
- package/dist/components/form/shared-styles/listbox.styles.js +6 -6
- package/dist/components/form/slider/slider.d.ts +1 -1
- package/dist/components/form/slider/slider.js +2 -2
- package/dist/components/form/slider/slider.styles.js +6 -6
- package/dist/components/form/switch/switch.d.ts +1 -1
- package/dist/components/form/switch/switch.styles.js +8 -8
- package/dist/components/form/textarea/textarea.d.ts +1 -1
- package/dist/components/form/textarea/textarea.js +4 -4
- package/dist/components/form/textarea/textarea.styles.js +6 -6
- package/dist/components/form/time-picker/time-picker-columns.styles.js +6 -6
- package/dist/components/form/time-picker/time-picker-list.styles.js +2 -2
- package/dist/components/form/time-picker/time-picker.d.ts +1 -1
- package/dist/components/form/time-picker/time-picker.js +3 -3
- package/dist/components/form/time-picker/time-picker.styles.js +8 -8
- package/dist/components/layout/animate/animate.d.ts +40 -5
- package/dist/components/layout/animate/animate.js +30 -11
- package/dist/components/layout/animate/animate.styles.d.ts +1 -1
- package/dist/components/layout/animate/animate.styles.js +191 -1
- package/dist/components/loader/loader/loader.styles.js +2 -2
- package/dist/components/loader/skeleton/skeleton.styles.js +8 -5
- package/dist/components/navigation/breadcrumb/breadcrumb-item.d.ts +7 -0
- package/dist/components/navigation/breadcrumb/breadcrumb-item.js +15 -1
- package/dist/components/navigation/breadcrumb/breadcrumb-item.styles.js +3 -3
- package/dist/components/navigation/breadcrumb/breadcrumb.d.ts +1 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.js +7 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.styles.js +3 -3
- package/dist/components/navigation/carousel/carousel.d.ts +40 -6
- package/dist/components/navigation/carousel/carousel.js +61 -12
- package/dist/components/navigation/carousel/carousel.styles.js +20 -8
- package/dist/components/navigation/pagination/pagination.styles.js +3 -3
- package/dist/components/navigation/sidebar/sidebar.styles.js +9 -9
- package/dist/components/navigation/stepper/step.styles.js +8 -8
- package/dist/components/navigation/stepper/stepper.styles.js +8 -8
- package/dist/components/navigation/tabs/tab/tab.styles.js +5 -5
- package/dist/components/navigation/tabs/tab-group/tab-group.d.ts +9 -0
- package/dist/components/navigation/tabs/tab-group/tab-group.js +19 -2
- package/dist/components/navigation/tabs/tab-group/tab-group.styles.js +12 -4
- package/dist/components/navigation/tabs/tab-panel/tab-panel.styles.js +1 -1
- package/dist/components/navigation/toolbar/toolbar.d.ts +24 -0
- package/dist/components/navigation/toolbar/toolbar.js +30 -2
- package/dist/components/navigation/toolbar/toolbar.styles.js +20 -10
- package/dist/events/change.event.d.ts +13 -1
- package/dist/events/change.event.js +2 -1
- package/dist/features/scheduler/calendar/calendar.js +1 -1
- package/dist/features/scheduler/calendar/calendar.styles.js +3 -3
- package/dist/features/scheduler/scheduler/scheduler.styles.js +2 -2
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +2 -2
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.styles.js +2 -2
- package/dist/features/scheduler/shared/scheduler-event-popover.styles.js +4 -4
- package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +1 -1
- package/dist/features/scheduler/shared/scheduler-month-view.styles.js +1 -1
- package/dist/features/scheduler/shared/scheduler-year-view.styles.js +1 -1
- package/dist/features/table/native-table.css +11 -11
- package/dist/features/table/table/table.styles.js +2 -2
- package/dist/features/table/table-action-bar/table-action-bar.styles.js +2 -2
- package/dist/features/table/table-cell/table-cell.styles.js +2 -2
- package/dist/features/table/table-column/table-column.styles.js +3 -3
- package/dist/features/table/table-header/table-header.styles.js +4 -4
- package/dist/features/table/table-item/table-item.styles.js +6 -6
- package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.js +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -3
- package/dist/jsx.d.ts +18 -5
- package/dist/mixins/button.mixin.d.ts +1 -0
- package/dist/mixins/button.mixin.js +10 -0
- package/dist/mixins/check.mixin.d.ts +1 -1
- package/dist/mixins/check.mixin.js +6 -2
- package/dist/mixins/editable.mixin.d.ts +1 -1
- package/dist/mixins/form.mixin.d.ts +9 -1
- package/dist/mixins/form.mixin.js +110 -14
- package/dist/mixins/overflow-navigation.mixin.js +2 -1
- package/dist/mixins/radio.mixin.d.ts +1 -1
- package/dist/mixins/radio.mixin.js +6 -2
- package/dist/mixins/validators.mixin.d.ts +9 -3
- package/dist/ssr/animate-ssr.css +149 -0
- package/dist/ssr/overlay-ssr.css +57 -0
- package/dist/ssr/sidebar-ssr.css +57 -0
- package/dist/ssr/toolbar-ssr.css +41 -0
- package/dist/utils/rich-text.utils.d.ts +33 -0
- package/dist/utils/rich-text.utils.js +140 -49
- package/dist/utils/theme-generator.utils.d.ts +24 -3
- package/dist/utils/theme-generator.utils.js +66 -21
- package/package.json +14 -3
- package/styles/themes/eunomia-theme.scss +1 -0
- package/styles/themes/mixins/eunomia-neutrals.mixin.scss +71 -0
- package/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +2 -0
- package/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +39 -0
- package/styles/tools/mixins/settings/eunomia-border.mixin.scss +3 -3
- package/styles/tools/mixins/settings/eunomia-font.mixin.scss +12 -12
- package/styles/tools/mixins/settings/eunomia-radius.mixin.scss +4 -4
- package/dist/cdn/components/chunks/chunk-27Q2SLRY.js +0 -603
- package/dist/cdn/components/chunks/chunk-2IQUMAMI.js +0 -38
- package/dist/cdn/components/chunks/chunk-5TH3P53V.js +0 -16
- package/dist/cdn/components/chunks/chunk-7Q6AHVI5.js +0 -1
- package/dist/cdn/components/chunks/chunk-DENMN3WH.js +0 -48
- package/dist/cdn/components/chunks/chunk-MBF52GEL.js +0 -1
- package/dist/cdn/components/chunks/chunk-ONYUXQV2.js +0 -1
- package/dist/cdn/components/chunks/chunk-ZKPCO5RB.js +0 -262
- package/dist/components/layout/animate/animate-ssr.css +0 -64
|
@@ -3,9 +3,10 @@ import { css } from "lit";
|
|
|
3
3
|
* Base style for the alert component.
|
|
4
4
|
*
|
|
5
5
|
* Custom css variables:
|
|
6
|
-
* [--alert-background-color] - Set a custom background color
|
|
7
|
-
* [--alert-border-color] - Set a custom border color
|
|
8
|
-
* [--alert-
|
|
6
|
+
* [--alert-background-color] - Set a custom background color, for every appearance and severity
|
|
7
|
+
* [--alert-border-color] - Set a custom border color, for every appearance and severity : the leading accent of the default appearance, and the border of every other one
|
|
8
|
+
* [--alert-border-width] - Set a custom border width, for every appearance. Defaults to 1px, only drawn (in a color) by outline, or when --alert-border-color is set
|
|
9
|
+
* [--alert-color] - Set a custom heading/icon/link color, for every appearance and severity ; the icon always matches this unless --alert-icon-color overrides it
|
|
9
10
|
* [--alert-icon-color] - Set a custom icon color only, independent of the heading — defaults to matching --alert-color/the severity accent
|
|
10
11
|
* [--alert-content-color] - Set a custom color for the description/action content, independent of the heading/icon color
|
|
11
12
|
* [--alert-border-radius] - Set a custom border radius
|
|
@@ -23,16 +24,10 @@ const base = css `
|
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
:host(:not([severity])) {
|
|
26
|
-
--_background: var(
|
|
27
|
-
--alert-background-color,
|
|
28
|
-
var(--eun-color-grey-100, #f7f8fa)
|
|
29
|
-
);
|
|
27
|
+
--_background: var(--eun-surface-sunken, #f7f8fa);
|
|
30
28
|
--_backgroundFilled: var(--_background);
|
|
31
|
-
--_borderColor: var(
|
|
32
|
-
|
|
33
|
-
var(--eun-color-grey-300, #dee0e7)
|
|
34
|
-
);
|
|
35
|
-
--_titleColor: var(--alert-color, var(--eun-text-color, #071621));
|
|
29
|
+
--_borderColor: var(--eun-color-grey-300, #dee0e7);
|
|
30
|
+
--_titleColor: var(--eun-text-color, #071621);
|
|
36
31
|
}
|
|
37
32
|
:host([severity="info"]) {
|
|
38
33
|
--_background: var(--eun-color-info-30, #f0f7fa);
|
|
@@ -59,7 +54,8 @@ const base = css `
|
|
|
59
54
|
--_titleColor: var(--eun-color-critical-100, #aa0014);
|
|
60
55
|
}
|
|
61
56
|
:host([severity="neutral"]) {
|
|
62
|
-
--
|
|
57
|
+
--_onFilled: var(--eun-color-grey-0, #ffffff);
|
|
58
|
+
--_background: var(--eun-surface-sunken-strong, #ecedf0);
|
|
63
59
|
--_backgroundFilled: var(--eun-color-grey-700, #484e61);
|
|
64
60
|
--_borderColor: var(--eun-color-grey-700, #484e61);
|
|
65
61
|
--_titleColor: var(--eun-color-grey-700, #484e61);
|
|
@@ -74,9 +70,18 @@ const base = css `
|
|
|
74
70
|
row-gap: var(--alert-row-gap, var(--eun-space-s, 8px));
|
|
75
71
|
width: 100%;
|
|
76
72
|
box-sizing: border-box;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
73
|
+
--_bw: var(--alert-border-width, var(--eun-border-width-s, 1px));
|
|
74
|
+
/* Every appearance carries the same border box (transparent unless
|
|
75
|
+
drawn), taken out of the padding, so switching appearance or adding a
|
|
76
|
+
--alert-border-* never changes the size. */
|
|
77
|
+
border: var(--_bw) solid
|
|
78
|
+
var(--alert-border-color, var(--_frame, transparent));
|
|
79
|
+
padding: var(
|
|
80
|
+
--alert-padding,
|
|
81
|
+
max(0px, calc(var(--eun-space-m, 16px) - var(--_bw)))
|
|
82
|
+
);
|
|
83
|
+
border-radius: var(--alert-border-radius, var(--eun-border-radius-m, 8px));
|
|
84
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
80
85
|
--_contentColor: var(--alert-content-color, var(--eun-text-color, #071621));
|
|
81
86
|
color: var(--_contentColor);
|
|
82
87
|
}
|
|
@@ -90,44 +95,53 @@ const base = css `
|
|
|
90
95
|
:host([appearance="default"]) #alert {
|
|
91
96
|
background: linear-gradient(
|
|
92
97
|
to right,
|
|
93
|
-
var(--_borderColor) 4px,
|
|
94
|
-
var(--_background) 4px
|
|
98
|
+
var(--alert-border-color, var(--_borderColor)) 4px,
|
|
99
|
+
var(--alert-background-color, var(--_background)) 4px
|
|
95
100
|
);
|
|
96
101
|
}
|
|
97
102
|
:host([appearance="flat"]) #alert {
|
|
98
|
-
background: var(--_background);
|
|
103
|
+
background: var(--alert-background-color, var(--_background));
|
|
99
104
|
}
|
|
100
105
|
:host([appearance="outline"]) #alert {
|
|
101
|
-
|
|
102
|
-
|
|
106
|
+
--_frame: var(--_borderColor);
|
|
107
|
+
background: var(
|
|
108
|
+
--alert-background-color,
|
|
109
|
+
var(--eun-surface-color, #ffffff)
|
|
110
|
+
);
|
|
103
111
|
}
|
|
104
112
|
:host([appearance="fill"]) #alert {
|
|
105
|
-
background: var(--_backgroundFilled);
|
|
106
|
-
--_contentColor: var(--alert-content-color, #fff);
|
|
113
|
+
background: var(--alert-background-color, var(--_backgroundFilled));
|
|
114
|
+
--_contentColor: var(--alert-content-color, var(--_onFilled, #fff));
|
|
107
115
|
}
|
|
108
116
|
|
|
109
117
|
#heading {
|
|
110
|
-
color: var(--_titleColor);
|
|
118
|
+
color: var(--alert-color, var(--_titleColor));
|
|
111
119
|
}
|
|
112
120
|
:host([appearance="fill"]) #heading {
|
|
113
|
-
color: #fff;
|
|
121
|
+
color: var(--alert-color, var(--_onFilled, #fff));
|
|
114
122
|
}
|
|
115
123
|
|
|
116
124
|
slot[name="icon"] {
|
|
117
|
-
--icon-color: var(
|
|
125
|
+
--icon-color: var(
|
|
126
|
+
--alert-icon-color,
|
|
127
|
+
var(--alert-color, var(--_titleColor))
|
|
128
|
+
);
|
|
118
129
|
grid-column: 1;
|
|
119
130
|
grid-row: 1;
|
|
120
131
|
align-self: center;
|
|
121
132
|
display: flex;
|
|
122
133
|
}
|
|
123
134
|
:host([appearance="fill"]) slot[name="icon"] {
|
|
124
|
-
--icon-color: var(
|
|
135
|
+
--icon-color: var(
|
|
136
|
+
--alert-icon-color,
|
|
137
|
+
var(--alert-color, var(--_onFilled, #fff))
|
|
138
|
+
);
|
|
125
139
|
}
|
|
126
140
|
#heading {
|
|
127
141
|
grid-column: 2;
|
|
128
142
|
grid-row: 1;
|
|
129
143
|
align-self: center;
|
|
130
|
-
font-weight: var(--eun-
|
|
144
|
+
font-weight: var(--eun-font-weight-l, 700);
|
|
131
145
|
}
|
|
132
146
|
|
|
133
147
|
#description,
|
|
@@ -145,7 +159,10 @@ const base = css `
|
|
|
145
159
|
margin-block-end: 0;
|
|
146
160
|
}
|
|
147
161
|
#rich-text a {
|
|
148
|
-
color: var(--_titleColor);
|
|
162
|
+
color: var(--alert-color, var(--_titleColor));
|
|
163
|
+
}
|
|
164
|
+
:host([appearance="fill"]) #rich-text a {
|
|
165
|
+
color: var(--alert-color, var(--_onFilled, #fff));
|
|
149
166
|
}
|
|
150
167
|
|
|
151
168
|
::slotted([slot="description"]) {
|
|
@@ -162,15 +179,19 @@ const base = css `
|
|
|
162
179
|
display: inline-block;
|
|
163
180
|
}
|
|
164
181
|
:host([appearance="fill"]) ::slotted([slot="action"]) {
|
|
165
|
-
--link-color: #fff;
|
|
166
|
-
--link-color-hover: #fff;
|
|
167
|
-
--link-color-visited: #fff;
|
|
168
|
-
--link-color-visited-hover: #fff;
|
|
182
|
+
--link-color: var(--_onFilled, #fff);
|
|
183
|
+
--link-color-hover: var(--_onFilled, #fff);
|
|
184
|
+
--link-color-visited: var(--_onFilled, #fff);
|
|
185
|
+
--link-color-visited-hover: var(--_onFilled, #fff);
|
|
169
186
|
}
|
|
170
187
|
|
|
171
188
|
:host([closeable]) #alert {
|
|
172
189
|
padding-right: calc(
|
|
173
|
-
var(
|
|
190
|
+
var(
|
|
191
|
+
--alert-padding,
|
|
192
|
+
max(0px, calc(var(--eun-space-m, 16px) - var(--_bw)))
|
|
193
|
+
) +
|
|
194
|
+
var(--eun-space-l, 32px)
|
|
174
195
|
);
|
|
175
196
|
}
|
|
176
197
|
#close-button {
|
|
@@ -179,7 +200,7 @@ const base = css `
|
|
|
179
200
|
display: flex;
|
|
180
201
|
top: var(--eun-space-s, 8px);
|
|
181
202
|
right: var(--eun-space-s, 8px);
|
|
182
|
-
--button-text: var(--_titleColor);
|
|
203
|
+
--button-text: var(--alert-color, var(--_titleColor));
|
|
183
204
|
--button-focus-outline: var(
|
|
184
205
|
--alert-focus-outline-color,
|
|
185
206
|
var(--eun-color-primary-500, #3d6fff)
|
|
@@ -188,7 +209,7 @@ const base = css `
|
|
|
188
209
|
justify-content: center;
|
|
189
210
|
}
|
|
190
211
|
:host([appearance="fill"]) #close-button {
|
|
191
|
-
--button-text: #fff;
|
|
212
|
+
--button-text: var(--alert-color, var(--_onFilled, #fff));
|
|
192
213
|
}
|
|
193
214
|
`;
|
|
194
215
|
export const alertStyles = base;
|
|
@@ -105,8 +105,8 @@ const base = css `
|
|
|
105
105
|
}
|
|
106
106
|
#heading {
|
|
107
107
|
margin: 0;
|
|
108
|
-
font-size: var(--eun-
|
|
109
|
-
font-weight: var(--eun-
|
|
108
|
+
font-size: var(--eun-font-size-l, 18px);
|
|
109
|
+
font-weight: var(--eun-font-weight-l, 700);
|
|
110
110
|
color: inherit;
|
|
111
111
|
}
|
|
112
112
|
#close-button {
|
|
@@ -117,7 +117,7 @@ const base = css `
|
|
|
117
117
|
min-height: 0;
|
|
118
118
|
overflow-y: auto;
|
|
119
119
|
padding: var(--_gap) var(--_padding);
|
|
120
|
-
font-size: var(--eun-
|
|
120
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
121
121
|
}
|
|
122
122
|
#footer {
|
|
123
123
|
flex: none;
|
|
@@ -44,7 +44,7 @@ const base = css `
|
|
|
44
44
|
color: var(--eun-text-color, #071621);
|
|
45
45
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
46
46
|
border: none;
|
|
47
|
-
border-radius: var(--modal-border-radius, var(--eun-
|
|
47
|
+
border-radius: var(--modal-border-radius, var(--eun-border-radius-l, 12px));
|
|
48
48
|
box-shadow: var(
|
|
49
49
|
--eun-shadow-l,
|
|
50
50
|
rgba(0, 0, 0, 0.1) 0 10px 15px -3px,
|
|
@@ -112,26 +112,26 @@ const base = css `
|
|
|
112
112
|
flex: 1 1 auto;
|
|
113
113
|
min-height: 0;
|
|
114
114
|
overflow-y: auto;
|
|
115
|
-
font-size: var(--eun-
|
|
115
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
116
116
|
}
|
|
117
117
|
#header {
|
|
118
118
|
flex: none;
|
|
119
119
|
padding-bottom: var(--modal-gap, var(--eun-space-s, 8px));
|
|
120
120
|
border-bottom: var(
|
|
121
121
|
--modal-header-border,
|
|
122
|
-
var(--eun-
|
|
122
|
+
var(--eun-border-width-m, 1.5px) solid var(--eun-border-color, #dee0e7)
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
125
|
#heading {
|
|
126
126
|
margin: 0;
|
|
127
127
|
padding-inline-end: var(--eun-space-l, 32px);
|
|
128
|
-
font-size: var(--eun-
|
|
129
|
-
font-weight: var(--eun-
|
|
128
|
+
font-size: var(--eun-font-size-l, 18px);
|
|
129
|
+
font-weight: var(--eun-font-weight-l, 700);
|
|
130
130
|
color: var(--eun-text-color, #071621);
|
|
131
131
|
}
|
|
132
132
|
#description {
|
|
133
133
|
margin: var(--eun-space-xs, 4px) 0 0;
|
|
134
|
-
font-size: var(--eun-
|
|
134
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
135
135
|
color: var(--eun-text-secondary, #484e61);
|
|
136
136
|
}
|
|
137
137
|
#actions {
|
|
@@ -74,9 +74,10 @@ export type EunomiaToastSlide = "vertical" | "horizontal";
|
|
|
74
74
|
* @cssprop [--toast-stack-gap] - Sets the gap between stacked toasts sharing the same position
|
|
75
75
|
* @cssprop [--toast-width] - Sets the width of the toast
|
|
76
76
|
* @cssprop [--toast-transition-duration] - Sets the duration of the enter, exit, and stack reflow transitions
|
|
77
|
-
* @cssprop [--toast-background-color] - Sets the background color
|
|
78
|
-
* @cssprop [--toast-border-color] - Sets the border color
|
|
79
|
-
* @cssprop [--toast-
|
|
77
|
+
* @cssprop [--toast-background-color] - Sets the background color, for every appearance and severity
|
|
78
|
+
* @cssprop [--toast-border-color] - Sets the border color, for every appearance and severity: the leading accent of the default appearance, and the border of every other one
|
|
79
|
+
* @cssprop [--toast-border-width] - Sets the border width, for every appearance. The border takes room out of the padding, so it keeps its size
|
|
80
|
+
* @cssprop [--toast-color] - Sets the heading, icon and link color, for every appearance and severity. The icon always matches this unless toast-icon-color overrides it
|
|
80
81
|
* @cssprop [--toast-icon-color] - Sets the icon color only, independently of the heading. Defaults to matching toast-color or the severity accent
|
|
81
82
|
* @cssprop [--toast-content-color] - Sets the color of the description and action content, independently of the heading and icon color
|
|
82
83
|
* @cssprop [--toast-border-radius] - Sets the corner radius of the toast
|
|
@@ -73,9 +73,10 @@ const EXIT_FALLBACK_MS = 600;
|
|
|
73
73
|
* @cssprop [--toast-stack-gap] - Sets the gap between stacked toasts sharing the same position
|
|
74
74
|
* @cssprop [--toast-width] - Sets the width of the toast
|
|
75
75
|
* @cssprop [--toast-transition-duration] - Sets the duration of the enter, exit, and stack reflow transitions
|
|
76
|
-
* @cssprop [--toast-background-color] - Sets the background color
|
|
77
|
-
* @cssprop [--toast-border-color] - Sets the border color
|
|
78
|
-
* @cssprop [--toast-
|
|
76
|
+
* @cssprop [--toast-background-color] - Sets the background color, for every appearance and severity
|
|
77
|
+
* @cssprop [--toast-border-color] - Sets the border color, for every appearance and severity: the leading accent of the default appearance, and the border of every other one
|
|
78
|
+
* @cssprop [--toast-border-width] - Sets the border width, for every appearance. The border takes room out of the padding, so it keeps its size
|
|
79
|
+
* @cssprop [--toast-color] - Sets the heading, icon and link color, for every appearance and severity. The icon always matches this unless toast-icon-color overrides it
|
|
79
80
|
* @cssprop [--toast-icon-color] - Sets the icon color only, independently of the heading. Defaults to matching toast-color or the severity accent
|
|
80
81
|
* @cssprop [--toast-content-color] - Sets the color of the description and action content, independently of the heading and icon color
|
|
81
82
|
* @cssprop [--toast-border-radius] - Sets the corner radius of the toast
|
|
@@ -8,9 +8,10 @@ import { css } from "lit";
|
|
|
8
8
|
* [--toast-stack-gap] - Set a custom gap between stacked toasts sharing the same `position` ; read by `toast-stack.utils.ts` itself, not just CSS
|
|
9
9
|
* [--toast-width] - Set a custom width
|
|
10
10
|
* [--toast-transition-duration] - Set a custom duration for the enter/exit and stack-reflow transitions
|
|
11
|
-
* [--toast-background-color] - Set a custom background color
|
|
12
|
-
* [--toast-border-color] - Set a custom border color
|
|
13
|
-
* [--toast-
|
|
11
|
+
* [--toast-background-color] - Set a custom background color, for every appearance and severity
|
|
12
|
+
* [--toast-border-color] - Set a custom border color, for every appearance and severity : the leading accent of the default appearance, and the border of every other one
|
|
13
|
+
* [--toast-border-width] - Set a custom border width, for every appearance. Defaults to 1px, only drawn (in a color) by outline, or when --toast-border-color is set
|
|
14
|
+
* [--toast-color] - Set a custom heading/icon/link color, for every appearance and severity ; the icon always matches this unless --toast-icon-color overrides it
|
|
14
15
|
* [--toast-icon-color] - Set a custom icon color only, independent of the heading — defaults to matching --toast-color
|
|
15
16
|
* [--toast-content-color] - Set a custom color for the description/action content, independent of the heading/icon color
|
|
16
17
|
* [--toast-border-radius] - Set a custom border radius
|
|
@@ -138,16 +139,10 @@ const base = css `
|
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
:host(:not([severity])) {
|
|
141
|
-
--_background: var(
|
|
142
|
-
--toast-background-color,
|
|
143
|
-
var(--eun-color-grey-100, #f7f8fa)
|
|
144
|
-
);
|
|
142
|
+
--_background: var(--eun-color-grey-100, #f7f8fa);
|
|
145
143
|
--_backgroundFilled: var(--_background);
|
|
146
|
-
--_borderColor: var(
|
|
147
|
-
|
|
148
|
-
var(--eun-color-grey-300, #dee0e7)
|
|
149
|
-
);
|
|
150
|
-
--_titleColor: var(--toast-color, var(--eun-text-color, #071621));
|
|
144
|
+
--_borderColor: var(--eun-color-grey-300, #dee0e7);
|
|
145
|
+
--_titleColor: var(--eun-text-color, #071621);
|
|
151
146
|
}
|
|
152
147
|
:host([severity="info"]) {
|
|
153
148
|
--_background: var(--eun-color-info-30, #f0f7fa);
|
|
@@ -174,6 +169,7 @@ const base = css `
|
|
|
174
169
|
--_titleColor: var(--eun-color-critical-100, #aa0014);
|
|
175
170
|
}
|
|
176
171
|
:host([severity="neutral"]) {
|
|
172
|
+
--_onFilled: var(--eun-color-grey-0, #ffffff);
|
|
177
173
|
--_background: var(--eun-color-grey-200, #ecedf0);
|
|
178
174
|
--_backgroundFilled: var(--eun-color-grey-700, #484e61);
|
|
179
175
|
--_borderColor: var(--eun-color-grey-700, #484e61);
|
|
@@ -189,8 +185,13 @@ const base = css `
|
|
|
189
185
|
row-gap: var(--toast-row-gap, var(--eun-space-s, 8px));
|
|
190
186
|
width: 100%;
|
|
191
187
|
box-sizing: border-box;
|
|
192
|
-
|
|
193
|
-
|
|
188
|
+
--_bw: var(--toast-border-width, var(--eun-border-width-s, 1px));
|
|
189
|
+
/* Every appearance carries the same border box (transparent unless
|
|
190
|
+
drawn), taken out of the padding, so switching appearance or adding a
|
|
191
|
+
--toast-border-* never changes the size. */
|
|
192
|
+
border: var(--_bw) solid var(--toast-border-color, var(--_frame, transparent));
|
|
193
|
+
padding: var(--toast-padding, max(0px, calc(var(--eun-space-m, 16px) - var(--_bw))));
|
|
194
|
+
border-radius: var(--toast-border-radius, var(--eun-border-radius-m, 8px));
|
|
194
195
|
box-shadow: var(
|
|
195
196
|
--toast-shadow,
|
|
196
197
|
var(
|
|
@@ -199,7 +200,7 @@ const base = css `
|
|
|
199
200
|
rgba(0, 0, 0, 0.05) 0 4px 6px -2px
|
|
200
201
|
)
|
|
201
202
|
);
|
|
202
|
-
font-size: var(--eun-
|
|
203
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
203
204
|
--_contentColor: var(--toast-content-color, var(--eun-text-color, #071621));
|
|
204
205
|
color: var(--_contentColor);
|
|
205
206
|
}
|
|
@@ -213,42 +214,42 @@ const base = css `
|
|
|
213
214
|
:host([appearance="default"]) #toast {
|
|
214
215
|
background: linear-gradient(
|
|
215
216
|
to right,
|
|
216
|
-
var(--_borderColor) 4px,
|
|
217
|
-
var(--eun-surface-color, #ffffff) 4px
|
|
217
|
+
var(--toast-border-color, var(--_borderColor)) 4px,
|
|
218
|
+
var(--toast-background-color, var(--eun-surface-color, #ffffff)) 4px
|
|
218
219
|
);
|
|
219
220
|
}
|
|
220
221
|
:host([appearance="flat"]) #toast {
|
|
221
|
-
background: var(--_background);
|
|
222
|
+
background: var(--toast-background-color, var(--_background));
|
|
222
223
|
}
|
|
223
224
|
:host([appearance="outline"]) #toast {
|
|
224
|
-
|
|
225
|
-
|
|
225
|
+
--_frame: var(--_borderColor);
|
|
226
|
+
background: var(--toast-background-color, var(--eun-surface-color, #ffffff));
|
|
226
227
|
}
|
|
227
228
|
:host([appearance="fill"]) #toast {
|
|
228
|
-
background: var(--_backgroundFilled);
|
|
229
|
-
--_contentColor: var(--toast-content-color, #fff);
|
|
229
|
+
background: var(--toast-background-color, var(--_backgroundFilled));
|
|
230
|
+
--_contentColor: var(--toast-content-color, var(--_onFilled, #fff));
|
|
230
231
|
}
|
|
231
232
|
|
|
232
233
|
#heading {
|
|
233
|
-
color: var(--_titleColor);
|
|
234
|
-
font-weight: var(--eun-
|
|
234
|
+
color: var(--toast-color, var(--_titleColor));
|
|
235
|
+
font-weight: var(--eun-font-weight-l, 700);
|
|
235
236
|
grid-column: 2;
|
|
236
237
|
grid-row: 1;
|
|
237
238
|
align-self: center;
|
|
238
239
|
}
|
|
239
240
|
:host([appearance="fill"]) #heading {
|
|
240
|
-
color: #fff;
|
|
241
|
+
color: var(--toast-color, var(--_onFilled, #fff));
|
|
241
242
|
}
|
|
242
243
|
|
|
243
244
|
slot[name="icon"] {
|
|
244
|
-
--icon-color: var(--toast-icon-color, var(--_titleColor));
|
|
245
|
+
--icon-color: var(--toast-icon-color, var(--toast-color, var(--_titleColor)));
|
|
245
246
|
grid-column: 1;
|
|
246
247
|
grid-row: 1;
|
|
247
248
|
align-self: center;
|
|
248
249
|
display: flex;
|
|
249
250
|
}
|
|
250
251
|
:host([appearance="fill"]) slot[name="icon"] {
|
|
251
|
-
--icon-color: var(--toast-icon-color, #fff);
|
|
252
|
+
--icon-color: var(--toast-icon-color, var(--toast-color, var(--_onFilled, #fff)));
|
|
252
253
|
}
|
|
253
254
|
|
|
254
255
|
#description,
|
|
@@ -266,7 +267,10 @@ const base = css `
|
|
|
266
267
|
margin-block-end: 0;
|
|
267
268
|
}
|
|
268
269
|
#rich-text a {
|
|
269
|
-
color: var(--_titleColor);
|
|
270
|
+
color: var(--toast-color, var(--_titleColor));
|
|
271
|
+
}
|
|
272
|
+
:host([appearance="fill"]) #rich-text a {
|
|
273
|
+
color: var(--toast-color, var(--_onFilled, #fff));
|
|
270
274
|
}
|
|
271
275
|
|
|
272
276
|
::slotted([slot="description"]) {
|
|
@@ -277,16 +281,17 @@ const base = css `
|
|
|
277
281
|
display: inline-block;
|
|
278
282
|
}
|
|
279
283
|
:host([appearance="fill"]) ::slotted([slot="action"]) {
|
|
280
|
-
--link-color: #fff;
|
|
281
|
-
--link-color-hover: #fff;
|
|
282
|
-
--link-color-visited: #fff;
|
|
283
|
-
--link-color-visited-hover: #fff;
|
|
284
|
-
--button-text: #fff;
|
|
284
|
+
--link-color: var(--_onFilled, #fff);
|
|
285
|
+
--link-color-hover: var(--_onFilled, #fff);
|
|
286
|
+
--link-color-visited: var(--_onFilled, #fff);
|
|
287
|
+
--link-color-visited-hover: var(--_onFilled, #fff);
|
|
288
|
+
--button-text: var(--_onFilled, #fff);
|
|
285
289
|
}
|
|
286
290
|
|
|
287
291
|
:host([closeable]) #toast {
|
|
288
292
|
padding-right: calc(
|
|
289
|
-
var(--toast-padding, var(--eun-space-s, 8px)
|
|
293
|
+
var(--toast-padding, max(0px, calc(var(--eun-space-s, 8px) - var(--_bw)))) +
|
|
294
|
+
var(--eun-space-l, 32px)
|
|
290
295
|
);
|
|
291
296
|
}
|
|
292
297
|
#close-button {
|
|
@@ -295,7 +300,7 @@ const base = css `
|
|
|
295
300
|
display: flex;
|
|
296
301
|
top: var(--eun-space-s, 8px);
|
|
297
302
|
right: var(--eun-space-s, 8px);
|
|
298
|
-
--button-text: var(--_titleColor);
|
|
303
|
+
--button-text: var(--toast-color, var(--_titleColor));
|
|
299
304
|
--button-focus-outline: var(
|
|
300
305
|
--toast-focus-outline-color,
|
|
301
306
|
var(--eun-color-primary-500, #3d6fff)
|
|
@@ -304,7 +309,7 @@ const base = css `
|
|
|
304
309
|
justify-content: center;
|
|
305
310
|
}
|
|
306
311
|
:host([appearance="fill"]) #close-button {
|
|
307
|
-
--button-text: #fff;
|
|
312
|
+
--button-text: var(--toast-color, var(--_onFilled, #fff));
|
|
308
313
|
}
|
|
309
314
|
|
|
310
315
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -46,7 +46,7 @@ const base = css `
|
|
|
46
46
|
color: var(--_color);
|
|
47
47
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
48
48
|
font-size: var(--_fontSize);
|
|
49
|
-
font-weight: var(--eun-
|
|
49
|
+
font-weight: var(--eun-font-weight-l, 700);
|
|
50
50
|
line-height: 1;
|
|
51
51
|
white-space: nowrap;
|
|
52
52
|
user-select: none;
|
|
@@ -28,15 +28,15 @@ declare const EunomiaCard_base: import("../../../utils/constructor.type.js").Con
|
|
|
28
28
|
* @cssprop [--card-padding] - Sets the padding of the card
|
|
29
29
|
* @cssprop [--card-gap] - Sets the gap between the card's own direct children
|
|
30
30
|
* @cssprop [--card-border-radius] - Sets the corner radius of the card
|
|
31
|
-
* @cssprop [--card-border-color] - Sets the border color, for
|
|
32
|
-
* @cssprop [--card-border-width] - Sets the width
|
|
33
|
-
* @cssprop [--card-background] - Sets the background color, for
|
|
31
|
+
* @cssprop [--card-border-color] - Sets the border color, for every appearance. Fill and raised have no border by default, so it draws one when set
|
|
32
|
+
* @cssprop [--card-border-width] - Sets the border width, for every appearance. Fill and raised have a transparent border by default, so it only shows once --card-border-color is set
|
|
33
|
+
* @cssprop [--card-background] - Sets the background color, for every appearance. The fill appearance reads card-fill-background first, then this one
|
|
34
34
|
* @cssprop [--card-fill-background] - Sets the background color for the fill appearance
|
|
35
35
|
* @cssprop [--card-fill-hover-background] - Sets the background color on hover for the fill appearance
|
|
36
36
|
* @cssprop [--card-shadow] - Sets a box shadow for the default appearance, none by default. Replaced by a subtle elevation for the raised appearance, and unused by fill
|
|
37
37
|
* @cssprop [--card-raised-hover-shadow] - Sets the box shadow on hover for the raised appearance
|
|
38
38
|
* @cssprop [--card-hover-transform] - Sets a transform applied on hover or focus, for every appearance. Setting this always applies it, link or not. Left unset, a small lift only applies to linked cards, since a non-linked card gets the border, tint, or shadow change on hover but stays in place otherwise
|
|
39
|
-
* @cssprop [--card-hover-border-color] - Sets the border color on hover or focus, for the
|
|
39
|
+
* @cssprop [--card-hover-border-color] - Sets the border color on hover or focus, for every appearance, including fill and raised, whose border is otherwise transparent rather than absent, reserving the space so the color reveals with no layout shift. Defaults to the primary color when `href` is set, otherwise the border stays exactly as it is at rest (unchanged for default, still transparent for fill/raised) — hovering a non-link card gives no color feedback, since there's nothing to click
|
|
40
40
|
* @cssprop [--card-hover-background] - Sets the background color on hover or focus, for the default appearance only, unchanged by default. See card-fill-hover-background for the fill appearance
|
|
41
41
|
* @cssprop [--card-hover-duration] - Sets the duration of the hover transition
|
|
42
42
|
* @cssprop [--card-transition] - Overrides the card's whole hover transition, for example to animate an extra property alongside the built-in ones. Defaults to transform, outline, box shadow, background color, and border color
|
|
@@ -36,15 +36,15 @@ export const EunomiaCardTagName = "eun-card";
|
|
|
36
36
|
* @cssprop [--card-padding] - Sets the padding of the card
|
|
37
37
|
* @cssprop [--card-gap] - Sets the gap between the card's own direct children
|
|
38
38
|
* @cssprop [--card-border-radius] - Sets the corner radius of the card
|
|
39
|
-
* @cssprop [--card-border-color] - Sets the border color, for
|
|
40
|
-
* @cssprop [--card-border-width] - Sets the width
|
|
41
|
-
* @cssprop [--card-background] - Sets the background color, for
|
|
39
|
+
* @cssprop [--card-border-color] - Sets the border color, for every appearance. Fill and raised have no border by default, so it draws one when set
|
|
40
|
+
* @cssprop [--card-border-width] - Sets the border width, for every appearance. Fill and raised have a transparent border by default, so it only shows once --card-border-color is set
|
|
41
|
+
* @cssprop [--card-background] - Sets the background color, for every appearance. The fill appearance reads card-fill-background first, then this one
|
|
42
42
|
* @cssprop [--card-fill-background] - Sets the background color for the fill appearance
|
|
43
43
|
* @cssprop [--card-fill-hover-background] - Sets the background color on hover for the fill appearance
|
|
44
44
|
* @cssprop [--card-shadow] - Sets a box shadow for the default appearance, none by default. Replaced by a subtle elevation for the raised appearance, and unused by fill
|
|
45
45
|
* @cssprop [--card-raised-hover-shadow] - Sets the box shadow on hover for the raised appearance
|
|
46
46
|
* @cssprop [--card-hover-transform] - Sets a transform applied on hover or focus, for every appearance. Setting this always applies it, link or not. Left unset, a small lift only applies to linked cards, since a non-linked card gets the border, tint, or shadow change on hover but stays in place otherwise
|
|
47
|
-
* @cssprop [--card-hover-border-color] - Sets the border color on hover or focus, for the
|
|
47
|
+
* @cssprop [--card-hover-border-color] - Sets the border color on hover or focus, for every appearance, including fill and raised, whose border is otherwise transparent rather than absent, reserving the space so the color reveals with no layout shift. Defaults to the primary color when `href` is set, otherwise the border stays exactly as it is at rest (unchanged for default, still transparent for fill/raised) — hovering a non-link card gives no color feedback, since there's nothing to click
|
|
48
48
|
* @cssprop [--card-hover-background] - Sets the background color on hover or focus, for the default appearance only, unchanged by default. See card-fill-hover-background for the fill appearance
|
|
49
49
|
* @cssprop [--card-hover-duration] - Sets the duration of the hover transition
|
|
50
50
|
* @cssprop [--card-transition] - Overrides the card's whole hover transition, for example to animate an extra property alongside the built-in ones. Defaults to transform, outline, box shadow, background color, and border color
|
|
@@ -20,13 +20,13 @@ const base = css `
|
|
|
20
20
|
box-sizing: border-box;
|
|
21
21
|
height: 100%;
|
|
22
22
|
padding: var(--card-padding, var(--eun-space-m, 16px));
|
|
23
|
-
border-radius: var(--card-border-radius, var(--eun-
|
|
24
|
-
border: var(--card-border-width, var(--eun-
|
|
23
|
+
border-radius: var(--card-border-radius, var(--eun-border-radius-m, 8px));
|
|
24
|
+
border: var(--card-border-width, var(--eun-border-width-s, 1px)) solid
|
|
25
25
|
var(--card-border-color, var(--eun-border-color, #dee0e7));
|
|
26
26
|
background: var(--card-background, var(--eun-surface-color, #ffffff));
|
|
27
27
|
box-shadow: var(--card-shadow, none);
|
|
28
28
|
color: var(--eun-text-color, #071621);
|
|
29
|
-
font-size: var(--eun-
|
|
29
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
30
30
|
text-decoration: none;
|
|
31
31
|
outline: 2px solid transparent;
|
|
32
32
|
transition: var(
|
|
@@ -60,9 +60,18 @@ const base = css `
|
|
|
60
60
|
|
|
61
61
|
:host {
|
|
62
62
|
--_hoverLift: none;
|
|
63
|
+
--_hoverBorderDefault: var(
|
|
64
|
+
--card-border-color,
|
|
65
|
+
var(--eun-border-color, #dee0e7)
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
:host([appearance="fill"]),
|
|
69
|
+
:host([appearance="raised"]) {
|
|
70
|
+
--_hoverBorderDefault: var(--card-border-color, transparent);
|
|
63
71
|
}
|
|
64
72
|
:host([href]) {
|
|
65
73
|
--_hoverLift: translateY(-4px);
|
|
74
|
+
--_hoverBorderDefault: var(--eun-color-primary-500, #3d6fff);
|
|
66
75
|
}
|
|
67
76
|
|
|
68
77
|
:host([appearance="default"]) #card:hover,
|
|
@@ -72,19 +81,27 @@ const base = css `
|
|
|
72
81
|
--card-hover-background,
|
|
73
82
|
var(--card-background, var(--eun-surface-color, #ffffff))
|
|
74
83
|
);
|
|
75
|
-
border-color: var(
|
|
76
|
-
--card-hover-border-color,
|
|
77
|
-
var(--eun-color-primary-500, #3d6fff)
|
|
78
|
-
);
|
|
79
84
|
}
|
|
80
85
|
|
|
81
86
|
:host([appearance="fill"]) #card,
|
|
82
87
|
:host([appearance="raised"]) #card {
|
|
83
|
-
border:
|
|
88
|
+
border-color: var(--card-border-color, transparent);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
:host([appearance="fill"]) #card:hover,
|
|
92
|
+
:host([appearance="fill"]) #card:focus-visible,
|
|
93
|
+
:host([appearance="raised"]) #card:hover,
|
|
94
|
+
:host([appearance="raised"]) #card:focus-visible,
|
|
95
|
+
#card:hover,
|
|
96
|
+
#card:focus-visible {
|
|
97
|
+
border-color: var(--card-hover-border-color, var(--_hoverBorderDefault));
|
|
84
98
|
}
|
|
85
99
|
|
|
86
100
|
:host([appearance="fill"]) #card {
|
|
87
|
-
background: var(
|
|
101
|
+
background: var(
|
|
102
|
+
--card-fill-background,
|
|
103
|
+
var(--card-background, var(--eun-surface-sunken, #f7f8fa))
|
|
104
|
+
);
|
|
88
105
|
}
|
|
89
106
|
|
|
90
107
|
:host([appearance="raised"]) #card {
|
|
@@ -98,7 +115,7 @@ const base = css `
|
|
|
98
115
|
transform: var(--card-hover-transform, var(--_hoverLift));
|
|
99
116
|
background: var(
|
|
100
117
|
--card-fill-hover-background,
|
|
101
|
-
var(--eun-
|
|
118
|
+
var(--eun-surface-sunken-hover, #ecedf0)
|
|
102
119
|
);
|
|
103
120
|
}
|
|
104
121
|
|
|
@@ -30,7 +30,7 @@ declare const EunomiaImageCard_base: import("../../../utils/constructor.type.js"
|
|
|
30
30
|
* @cssprop [--card-background] - Sets the background color of the card
|
|
31
31
|
* @cssprop [--card-shadow] - Sets a box shadow, none by default
|
|
32
32
|
* @cssprop [--card-hover-transform] - Sets a transform applied on hover or focus, for linked cards only, defaulting to a small lift
|
|
33
|
-
* @cssprop [--card-hover-border-color] - Sets the border color on hover or focus
|
|
33
|
+
* @cssprop [--card-hover-border-color] - Sets the border color on hover or focus. Defaults to the primary color when `href` is set, otherwise the border stays exactly as it is at rest — hovering a non-link card gives no color feedback, since there's nothing to click
|
|
34
34
|
* @cssprop [--card-hover-background] - Sets the background color on hover or focus, linked or not, unchanged by default
|
|
35
35
|
* @cssprop [--card-hover-duration] - Sets the duration of the hover transition
|
|
36
36
|
* @cssprop [--card-transition] - Overrides the card's whole hover transition, for example to animate an extra property alongside the built-in ones. Defaults to transform, box shadow, background color, and border color
|
|
@@ -39,7 +39,7 @@ export const EunomiaImageCardTagName = "eun-image-card";
|
|
|
39
39
|
* @cssprop [--card-background] - Sets the background color of the card
|
|
40
40
|
* @cssprop [--card-shadow] - Sets a box shadow, none by default
|
|
41
41
|
* @cssprop [--card-hover-transform] - Sets a transform applied on hover or focus, for linked cards only, defaulting to a small lift
|
|
42
|
-
* @cssprop [--card-hover-border-color] - Sets the border color on hover or focus
|
|
42
|
+
* @cssprop [--card-hover-border-color] - Sets the border color on hover or focus. Defaults to the primary color when `href` is set, otherwise the border stays exactly as it is at rest — hovering a non-link card gives no color feedback, since there's nothing to click
|
|
43
43
|
* @cssprop [--card-hover-background] - Sets the background color on hover or focus, linked or not, unchanged by default
|
|
44
44
|
* @cssprop [--card-hover-duration] - Sets the duration of the hover transition
|
|
45
45
|
* @cssprop [--card-transition] - Overrides the card's whole hover transition, for example to animate an extra property alongside the built-in ones. Defaults to transform, box shadow, background color, and border color
|