@eunomia/elements 1.0.0-beta.3 → 1.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cdn/components/chunks/{chunk-EAGGN3ZI.js → chunk-2XASWWKR.js} +9 -9
- package/dist/cdn/components/chunks/chunk-32DTNR52.js +1 -0
- package/dist/cdn/components/chunks/chunk-3MTUVMM5.js +1 -0
- package/dist/cdn/components/chunks/chunk-5GKM5DIB.js +1 -0
- package/dist/cdn/components/chunks/{chunk-32KRPOPV.js → chunk-5XJGYXW7.js} +6 -6
- package/dist/cdn/components/chunks/{chunk-O2HNWH65.js → chunk-5XJLIHAU.js} +7 -7
- package/dist/cdn/components/chunks/{chunk-TBKKTJOX.js → chunk-6ETDXUH2.js} +3 -3
- package/dist/cdn/components/chunks/{chunk-5GF2Q3NR.js → chunk-74AOAB4X.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-WYMBUIKX.js → chunk-A6KGFALA.js} +4 -4
- package/dist/cdn/components/chunks/{chunk-NEYBPT3D.js → chunk-AIS3UICU.js} +9 -9
- package/dist/cdn/components/chunks/{chunk-LJYTHDZP.js → chunk-D2M4BV5Y.js} +6 -6
- package/dist/cdn/components/chunks/chunk-DKOPI7QA.js +415 -0
- package/dist/cdn/components/chunks/{chunk-53QH6MPM.js → chunk-EAKYD33D.js} +3 -3
- package/dist/cdn/components/chunks/chunk-EST3M4AO.js +1 -0
- package/dist/cdn/components/chunks/{chunk-BYBUXKXC.js → chunk-IDKZKLJR.js} +7 -7
- package/dist/cdn/components/chunks/chunk-JRGM3W7I.js +53 -0
- package/dist/cdn/components/chunks/{chunk-RWONCXTF.js → chunk-KVYUNKUO.js} +2 -2
- package/dist/cdn/components/chunks/{chunk-6UPI7GHJ.js → chunk-L65WUTXM.js} +12 -12
- package/dist/cdn/components/chunks/chunk-LFCXUVDO.js +1 -0
- package/dist/cdn/components/chunks/chunk-LGLQ36QB.js +16 -0
- package/dist/cdn/components/chunks/chunk-MPQP4R54.js +263 -0
- package/dist/cdn/components/chunks/{chunk-ON42P6FI.js → chunk-NBIENHLV.js} +6 -6
- package/dist/cdn/components/chunks/chunk-OAULRKHQ.js +38 -0
- package/dist/cdn/components/chunks/chunk-OW7XKDCH.js +124 -0
- package/dist/cdn/components/chunks/chunk-P32B7BFD.js +118 -0
- package/dist/cdn/components/chunks/{chunk-ZPFHTJSS.js → chunk-PCM7D3YF.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-ABYEBP57.js → chunk-PED5ATYN.js} +11 -8
- package/dist/cdn/components/chunks/{chunk-5C7YND22.js → chunk-S2UCEWNG.js} +8 -8
- package/dist/cdn/components/chunks/{chunk-5RCCZVFZ.js → chunk-SD2WHGPF.js} +7 -6
- package/dist/cdn/components/chunks/chunk-SJWRE6PW.js +1 -0
- package/dist/cdn/components/chunks/{chunk-6IILPCSQ.js → chunk-X2AUBZD2.js} +3 -3
- package/dist/cdn/components/eun-alert.js +65 -45
- package/dist/cdn/components/eun-animate.js +5 -3
- package/dist/cdn/components/eun-badge.js +8 -8
- package/dist/cdn/components/eun-breadcrumb-item.js +14 -10
- package/dist/cdn/components/eun-breadcrumb.js +11 -7
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-calendar.js +20 -20
- package/dist/cdn/components/eun-card.js +61 -13
- package/dist/cdn/components/eun-carousel.js +35 -27
- package/dist/cdn/components/eun-check-card.js +3 -3
- package/dist/cdn/components/eun-checkbox-list.js +3 -3
- package/dist/cdn/components/eun-checkbox.js +1 -1
- package/dist/cdn/components/eun-chip.js +45 -207
- package/dist/cdn/components/eun-collapse.js +49 -29
- package/dist/cdn/components/eun-color-picker.js +13 -13
- package/dist/cdn/components/eun-counter.js +15 -15
- package/dist/cdn/components/eun-date-picker.js +62 -62
- package/dist/cdn/components/eun-drawer.js +12 -12
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-dropdown-item.js +6 -6
- package/dist/cdn/components/eun-fab.js +31 -53
- package/dist/cdn/components/eun-icon.js +1 -1
- package/dist/cdn/components/eun-image-card.js +18 -11
- package/dist/cdn/components/eun-image-carousel.js +18 -18
- package/dist/cdn/components/eun-infinite-list.js +1 -1
- package/dist/cdn/components/eun-input-file.js +12 -12
- package/dist/cdn/components/eun-input-phone.js +28 -28
- package/dist/cdn/components/eun-input.js +1 -1
- package/dist/cdn/components/eun-label.js +4 -4
- package/dist/cdn/components/eun-link.js +134 -18
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +21 -21
- package/dist/cdn/components/eun-pagination.js +3 -3
- package/dist/cdn/components/eun-password-strength.js +9 -6
- package/dist/cdn/components/eun-progress-bar.js +13 -13
- package/dist/cdn/components/eun-radio-card.js +2 -2
- package/dist/cdn/components/eun-radio-list.js +1 -1
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-scheduler-event-editor.js +9 -9
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +26 -26
- package/dist/cdn/components/eun-search.js +21 -21
- package/dist/cdn/components/eun-select.js +10 -10
- package/dist/cdn/components/eun-sidebar.js +9 -9
- package/dist/cdn/components/eun-skeleton.js +1 -1
- package/dist/cdn/components/eun-slider.js +8 -8
- package/dist/cdn/components/eun-sliding-card.js +4 -3
- package/dist/cdn/components/eun-step.js +8 -8
- package/dist/cdn/components/eun-stepper.js +8 -8
- package/dist/cdn/components/eun-switch.js +10 -10
- package/dist/cdn/components/eun-tab-group.js +19 -11
- package/dist/cdn/components/eun-tab-panel.js +1 -1
- package/dist/cdn/components/eun-tab.js +1 -1
- package/dist/cdn/components/eun-table-action-bar.js +1 -1
- package/dist/cdn/components/eun-table-cell.js +1 -1
- package/dist/cdn/components/eun-table-column.js +1 -1
- package/dist/cdn/components/eun-table-header.js +1 -1
- package/dist/cdn/components/eun-table-item.js +1 -1
- package/dist/cdn/components/eun-table-skeleton-row.js +1 -1
- package/dist/cdn/components/eun-table.js +3 -3
- package/dist/cdn/components/eun-tag.js +34 -126
- package/dist/cdn/components/eun-textarea.js +23 -23
- package/dist/cdn/components/eun-time-picker.js +32 -32
- package/dist/cdn/components/eun-toast.js +40 -36
- package/dist/cdn/components/eun-toggle-group.js +213 -72
- package/dist/cdn/components/eun-toggle-item.js +49 -30
- package/dist/cdn/components/eun-toggle.js +12 -9
- package/dist/cdn/components/eun-toolbar.js +15 -8
- package/dist/cdn/components/eun-tooltip.js +122 -87
- package/dist/cdn/styles/eunomia-themes.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.scss +1 -0
- package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +71 -0
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +2 -0
- package/dist/cdn/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/dist/cdn/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +39 -0
- package/dist/cdn/styles/tools/mixins/settings/eunomia-border.mixin.scss +3 -3
- package/dist/cdn/styles/tools/mixins/settings/eunomia-font.mixin.scss +12 -12
- package/dist/cdn/styles/tools/mixins/settings/eunomia-radius.mixin.scss +4 -4
- package/dist/components/action/button/button.d.ts +44 -15
- package/dist/components/action/button/button.js +100 -20
- package/dist/components/action/button/button.styles.js +179 -393
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +13 -6
- package/dist/components/action/dropdown-button/dropdown-button.js +16 -5
- package/dist/components/action/dropdown-button/dropdown-button.styles.js +8 -8
- package/dist/components/action/dropdown-button/dropdown-item.styles.js +6 -6
- package/dist/components/action/fab/fab.d.ts +7 -4
- package/dist/components/action/fab/fab.js +11 -6
- package/dist/components/action/fab/fab.styles.js +26 -49
- package/dist/components/action/link/link.d.ts +115 -6
- package/dist/components/action/link/link.js +245 -21
- package/dist/components/action/link/link.styles.js +105 -3
- package/dist/components/action/shared-styles/button-palette.styles.d.ts +27 -0
- package/dist/components/action/shared-styles/button-palette.styles.js +151 -0
- package/dist/components/action/toggle/toggle-group.d.ts +55 -11
- package/dist/components/action/toggle/toggle-group.js +193 -52
- package/dist/components/action/toggle/toggle-group.styles.d.ts +7 -5
- package/dist/components/action/toggle/toggle-group.styles.js +166 -41
- package/dist/components/action/toggle/toggle-item.d.ts +4 -4
- package/dist/components/action/toggle/toggle-item.js +2 -2
- package/dist/components/action/toggle/toggle-item.styles.js +45 -26
- package/dist/components/action/toggle/toggle.d.ts +1 -1
- package/dist/components/action/toggle/toggle.js +1 -1
- package/dist/components/action/toggle/toggle.styles.d.ts +2 -2
- package/dist/components/action/toggle/toggle.styles.js +13 -10
- package/dist/components/alert/alert/alert.d.ts +4 -3
- package/dist/components/alert/alert/alert.js +4 -3
- package/dist/components/alert/alert/alert.styles.js +57 -36
- package/dist/components/alert/drawer/drawer.js +1 -1
- package/dist/components/alert/drawer/drawer.styles.js +3 -3
- package/dist/components/alert/modal/modal.d.ts +8 -8
- package/dist/components/alert/modal/modal.js +11 -11
- package/dist/components/alert/modal/modal.styles.js +6 -6
- package/dist/components/alert/toast/toast.d.ts +4 -3
- package/dist/components/alert/toast/toast.js +4 -3
- package/dist/components/alert/toast/toast.styles.js +41 -36
- package/dist/components/content/badge/badge.d.ts +6 -6
- package/dist/components/content/badge/badge.js +4 -4
- package/dist/components/content/badge/badge.styles.js +5 -5
- package/dist/components/content/card/card.d.ts +36 -8
- package/dist/components/content/card/card.js +68 -8
- package/dist/components/content/card/card.styles.js +52 -11
- package/dist/components/content/card/image-card.d.ts +3 -2
- package/dist/components/content/card/image-card.js +2 -1
- package/dist/components/content/card/image-card.styles.js +17 -10
- package/dist/components/content/card/sliding-card.d.ts +2 -1
- package/dist/components/content/card/sliding-card.js +1 -0
- package/dist/components/content/card/sliding-card.styles.js +3 -2
- package/dist/components/content/chip/chip.d.ts +16 -7
- package/dist/components/content/chip/chip.js +18 -6
- package/dist/components/content/chip/chip.styles.d.ts +1 -1
- package/dist/components/content/chip/chip.styles.js +43 -207
- package/dist/components/content/collapse/collapse.d.ts +29 -11
- package/dist/components/content/collapse/collapse.js +53 -23
- package/dist/components/content/collapse/collapse.styles.js +23 -9
- package/dist/components/content/icon/icon.d.ts +12 -2
- package/dist/components/content/icon/icon.js +52 -22
- package/dist/components/content/icon/icon.style.d.ts +2 -0
- package/dist/components/content/icon/icon.style.js +5 -2
- package/dist/components/content/image-carousel/image-carousel.styles.js +14 -14
- package/dist/components/content/password-strength/password-strength.styles.js +7 -4
- package/dist/components/content/progress-bar/progress-bar.styles.js +9 -9
- package/dist/components/content/shared-styles/card-link.styles.js +1 -0
- package/dist/components/content/shared-styles/tone-surface.styles.d.ts +31 -0
- package/dist/components/content/shared-styles/tone-surface.styles.js +149 -0
- package/dist/components/content/tag/tag.d.ts +16 -6
- package/dist/components/content/tag/tag.js +19 -6
- package/dist/components/content/tag/tag.styles.d.ts +1 -1
- package/dist/components/content/tag/tag.styles.js +40 -125
- package/dist/components/content/tooltip/tooltip.d.ts +15 -4
- package/dist/components/content/tooltip/tooltip.js +21 -4
- package/dist/components/content/tooltip/tooltip.styles.js +115 -79
- package/dist/components/form/checkbox/check-card.styles.js +2 -2
- package/dist/components/form/checkbox/checkbox-list.d.ts +1 -1
- package/dist/components/form/checkbox/checkbox.d.ts +1 -1
- package/dist/components/form/checkbox/checkbox.styles.js +6 -6
- package/dist/components/form/color-picker/color-picker.d.ts +3 -3
- package/dist/components/form/color-picker/color-picker.js +4 -4
- package/dist/components/form/color-picker/color-picker.styles.js +7 -7
- package/dist/components/form/counter/counter.d.ts +3 -3
- package/dist/components/form/counter/counter.js +3 -3
- package/dist/components/form/counter/counter.styles.js +12 -12
- package/dist/components/form/date-picker/date-picker-day-grid.styles.js +2 -2
- package/dist/components/form/date-picker/date-picker-grid.styles.js +15 -15
- package/dist/components/form/date-picker/date-picker-month-grid.styles.js +1 -1
- package/dist/components/form/date-picker/date-picker-year-grid.styles.js +1 -1
- package/dist/components/form/date-picker/date-picker.d.ts +3 -3
- package/dist/components/form/date-picker/date-picker.js +3 -3
- package/dist/components/form/date-picker/date-picker.styles.js +17 -17
- package/dist/components/form/input/input.d.ts +3 -3
- package/dist/components/form/input/input.js +4 -4
- package/dist/components/form/input-file/input-file.d.ts +1 -1
- package/dist/components/form/input-file/input-file.styles.js +9 -9
- package/dist/components/form/input-phone/input-phone.d.ts +3 -3
- package/dist/components/form/input-phone/input-phone.js +3 -3
- package/dist/components/form/input-phone/input-phone.styles.js +19 -19
- package/dist/components/form/label/label.styles.js +4 -4
- package/dist/components/form/radio/radio-card.styles.js +1 -1
- package/dist/components/form/radio/radio-list.d.ts +1 -1
- package/dist/components/form/radio/radio.d.ts +1 -1
- package/dist/components/form/radio/radio.styles.js +2 -2
- package/dist/components/form/search/search.styles.js +9 -9
- package/dist/components/form/select/select.d.ts +3 -3
- package/dist/components/form/select/select.js +3 -3
- package/dist/components/form/select/select.styles.js +6 -6
- package/dist/components/form/shared-styles/card.styles.js +1 -1
- package/dist/components/form/shared-styles/field.styles.js +12 -12
- package/dist/components/form/shared-styles/form-labels.styles.js +1 -1
- package/dist/components/form/shared-styles/listbox.styles.js +6 -6
- package/dist/components/form/slider/slider.d.ts +1 -1
- package/dist/components/form/slider/slider.styles.js +6 -6
- package/dist/components/form/switch/switch.d.ts +1 -1
- package/dist/components/form/switch/switch.styles.js +8 -8
- package/dist/components/form/textarea/textarea.d.ts +3 -3
- package/dist/components/form/textarea/textarea.js +4 -4
- package/dist/components/form/textarea/textarea.styles.js +6 -6
- package/dist/components/form/time-picker/time-picker-columns.styles.js +6 -6
- package/dist/components/form/time-picker/time-picker-list.styles.js +2 -2
- package/dist/components/form/time-picker/time-picker.d.ts +3 -3
- package/dist/components/form/time-picker/time-picker.js +3 -3
- package/dist/components/form/time-picker/time-picker.styles.js +13 -13
- package/dist/components/layout/animate/animate.d.ts +8 -0
- package/dist/components/layout/animate/animate.js +20 -8
- package/dist/components/loader/loader/loader.styles.js +2 -2
- package/dist/components/loader/skeleton/skeleton.styles.js +8 -5
- package/dist/components/navigation/breadcrumb/breadcrumb-item.d.ts +7 -0
- package/dist/components/navigation/breadcrumb/breadcrumb-item.js +15 -1
- package/dist/components/navigation/breadcrumb/breadcrumb-item.styles.js +3 -3
- package/dist/components/navigation/breadcrumb/breadcrumb.d.ts +1 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.js +7 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.styles.js +3 -3
- package/dist/components/navigation/carousel/carousel.d.ts +40 -6
- package/dist/components/navigation/carousel/carousel.js +61 -12
- package/dist/components/navigation/carousel/carousel.styles.js +19 -7
- package/dist/components/navigation/pagination/pagination.styles.js +3 -3
- package/dist/components/navigation/sidebar/sidebar.styles.js +9 -9
- package/dist/components/navigation/stepper/step.styles.js +8 -8
- package/dist/components/navigation/stepper/stepper.styles.js +8 -8
- package/dist/components/navigation/tabs/tab/tab.styles.js +5 -5
- package/dist/components/navigation/tabs/tab-group/tab-group.d.ts +9 -0
- package/dist/components/navigation/tabs/tab-group/tab-group.js +19 -2
- package/dist/components/navigation/tabs/tab-group/tab-group.styles.js +12 -4
- package/dist/components/navigation/tabs/tab-panel/tab-panel.styles.js +1 -1
- package/dist/components/navigation/toolbar/toolbar.d.ts +2 -0
- package/dist/components/navigation/toolbar/toolbar.js +2 -0
- package/dist/components/navigation/toolbar/toolbar.styles.js +16 -7
- package/dist/features/scheduler/calendar/calendar.d.ts +6 -6
- package/dist/features/scheduler/calendar/calendar.js +10 -10
- package/dist/features/scheduler/calendar/calendar.styles.js +3 -3
- package/dist/features/scheduler/scheduler/scheduler.d.ts +6 -6
- package/dist/features/scheduler/scheduler/scheduler.js +13 -13
- package/dist/features/scheduler/scheduler/scheduler.styles.js +2 -2
- package/dist/features/scheduler/scheduler-event/scheduler-event.d.ts +10 -8
- package/dist/features/scheduler/scheduler-event/scheduler-event.js +7 -7
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +8 -8
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +5 -5
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.styles.js +2 -2
- package/dist/features/scheduler/shared/scheduler-event-popover.js +2 -2
- package/dist/features/scheduler/shared/scheduler-event-popover.styles.js +4 -4
- package/dist/features/scheduler/shared/scheduler-hour-grid.d.ts +2 -2
- package/dist/features/scheduler/shared/scheduler-hour-grid.js +3 -3
- package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +1 -1
- package/dist/features/scheduler/shared/scheduler-month-view.d.ts +3 -3
- package/dist/features/scheduler/shared/scheduler-month-view.js +2 -2
- package/dist/features/scheduler/shared/scheduler-month-view.styles.js +1 -1
- package/dist/features/scheduler/shared/scheduler-year-view.styles.js +1 -1
- package/dist/features/table/native-table.css +11 -11
- package/dist/features/table/table/table.styles.js +2 -2
- package/dist/features/table/table/table.types.d.ts +7 -3
- package/dist/features/table/table-action-bar/table-action-bar.js +3 -3
- package/dist/features/table/table-action-bar/table-action-bar.styles.js +2 -2
- package/dist/features/table/table-cell/table-cell.styles.js +2 -2
- package/dist/features/table/table-column/table-column.styles.js +3 -3
- package/dist/features/table/table-header/table-header.styles.js +4 -4
- package/dist/features/table/table-item/table-item.styles.js +6 -6
- package/dist/features/table/table-managed/table-managed.js +2 -2
- package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.js +1 -1
- package/dist/i18n/en.d.ts +3 -0
- package/dist/i18n/en.js +3 -0
- package/dist/i18n/fr.js +3 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.js +5 -2
- package/dist/jsx.d.ts +19 -6
- package/dist/mixins/button.mixin.d.ts +11 -9
- package/dist/mixins/button.mixin.js +23 -5
- package/dist/mixins/card-link.mixin.d.ts +3 -2
- package/dist/mixins/card-link.mixin.js +12 -5
- package/dist/mixins/check.mixin.d.ts +1 -1
- package/dist/mixins/disabled.mixin.d.ts +3 -3
- package/dist/mixins/disabled.mixin.js +10 -5
- package/dist/mixins/editable.mixin.d.ts +1 -1
- package/dist/mixins/field-appearance.mixin.d.ts +19 -0
- package/dist/mixins/{field-variant.mixin.js → field-appearance.mixin.js} +11 -11
- package/dist/mixins/form.mixin.d.ts +5 -1
- package/dist/mixins/form.mixin.js +32 -12
- package/dist/mixins/overflow-navigation.mixin.js +2 -1
- package/dist/mixins/radio.mixin.d.ts +1 -1
- package/dist/mixins/validators.mixin.d.ts +9 -3
- package/dist/ssr/animate-ssr.css +26 -72
- package/dist/ssr/links-ssr.css +35 -0
- package/dist/ssr/overlay-ssr.css +0 -41
- package/dist/ssr/rich-text.css +38 -0
- package/dist/ssr/sidebar-ssr.css +0 -38
- package/dist/ssr/toolbar-ssr.css +73 -39
- package/dist/types/variant.type.d.ts +26 -10
- package/dist/utils/navigation.utils.d.ts +14 -0
- package/dist/utils/navigation.utils.js +33 -0
- package/dist/utils/new-tab-anchor.controller.d.ts +44 -0
- package/dist/utils/new-tab-anchor.controller.js +102 -0
- package/dist/utils/rich-text.utils.d.ts +33 -0
- package/dist/utils/rich-text.utils.js +140 -49
- package/dist/utils/severity-icon.utils.d.ts +1 -1
- package/dist/utils/severity-icon.utils.js +1 -1
- package/dist/utils/theme-generator.utils.d.ts +26 -3
- package/dist/utils/theme-generator.utils.js +68 -21
- package/package.json +13 -2
- package/styles/themes/eunomia-theme.scss +1 -0
- package/styles/themes/mixins/eunomia-neutrals.mixin.scss +71 -0
- package/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +2 -0
- package/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +39 -0
- package/styles/tools/mixins/settings/eunomia-border.mixin.scss +3 -3
- package/styles/tools/mixins/settings/eunomia-font.mixin.scss +12 -12
- package/styles/tools/mixins/settings/eunomia-radius.mixin.scss +4 -4
- package/dist/cdn/components/chunks/chunk-3LMI7KUA.js +0 -48
- package/dist/cdn/components/chunks/chunk-5TH3P53V.js +0 -16
- package/dist/cdn/components/chunks/chunk-ATH2OAMU.js +0 -1
- package/dist/cdn/components/chunks/chunk-BKHD4S57.js +0 -1
- package/dist/cdn/components/chunks/chunk-KNM5QHDK.js +0 -38
- package/dist/cdn/components/chunks/chunk-MBF52GEL.js +0 -1
- package/dist/cdn/components/chunks/chunk-T7WABJEJ.js +0 -1
- package/dist/cdn/components/chunks/chunk-XSMCT4DF.js +0 -1
- package/dist/cdn/components/chunks/chunk-Z6PJYSC3.js +0 -622
- package/dist/cdn/components/chunks/chunk-ZKPCO5RB.js +0 -262
- package/dist/mixins/field-variant.mixin.d.ts +0 -22
|
@@ -3,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;
|
|
@@ -424,7 +424,7 @@ let EunomiaDrawer = class EunomiaDrawer extends DialogSurfaceMixin(LitElement) {
|
|
|
424
424
|
heading=${this.confirmCloseHeading}
|
|
425
425
|
cancel-label=${this.confirmCloseCancelLabel}
|
|
426
426
|
confirm-label=${this.confirmCloseConfirmLabel}
|
|
427
|
-
confirm-
|
|
427
|
+
confirm-color="critical"
|
|
428
428
|
@eunconfirm=${this.handleDiscardConfirmed}
|
|
429
429
|
@euncancel=${this.stopDialogPropagation}
|
|
430
430
|
>
|
|
@@ -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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, PropertyValues, TemplateResult } from "lit";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ButtonColor } from "../../../mixins/button.mixin.js";
|
|
3
|
+
import { EunomiaModalConfirmColor } from "../../../types/variant.type.js";
|
|
4
4
|
/**
|
|
5
5
|
* Tag name of the modal component.
|
|
6
6
|
*/
|
|
@@ -34,8 +34,8 @@ declare const EunomiaModal_base: import("../../../utils/constructor.type.js").Co
|
|
|
34
34
|
* @prop {boolean} [closeable=true] - Shows the close button in the top right corner
|
|
35
35
|
* @prop {string} [cancelLabel='Cancel'] - The label of the default cancel button
|
|
36
36
|
* @prop {string} [confirmLabel='Confirm'] - The label of the default confirm button
|
|
37
|
-
* @prop {'primary' | 'critical'} [
|
|
38
|
-
* @prop {'primary' | 'secondary' | 'critical' | 'success' | 'warning'}
|
|
37
|
+
* @prop {'primary' | 'critical'} [confirmColor='primary'] - The color of the default confirm button
|
|
38
|
+
* @prop {'primary' | 'secondary' | 'critical' | 'success' | 'warning'} cancelColor - The color of the default cancel button. Left unset, it renders as a neutral gray ghost button
|
|
39
39
|
* @prop {string} ariaLabelClose - The accessible label of the close button
|
|
40
40
|
* @prop {string} [confirmCloseHeading='Discard changes?'] - The heading of the internal discard confirmation dialog
|
|
41
41
|
* @attr {string} [confirm-close-heading='Discard changes?'] - The heading of the internal discard confirmation dialog
|
|
@@ -122,16 +122,16 @@ export declare class EunomiaModal extends EunomiaModal_base {
|
|
|
122
122
|
*/
|
|
123
123
|
confirmLabel: string;
|
|
124
124
|
/**
|
|
125
|
-
*
|
|
125
|
+
* Color of the default confirm button.
|
|
126
126
|
* @default primary
|
|
127
127
|
*/
|
|
128
|
-
|
|
128
|
+
confirmColor: EunomiaModalConfirmColor;
|
|
129
129
|
/**
|
|
130
|
-
*
|
|
130
|
+
* Color of the default cancel button. Left unset, it renders as a
|
|
131
131
|
* neutral gray ghost button; set it to color it like any other button
|
|
132
132
|
* instead.
|
|
133
133
|
*/
|
|
134
|
-
|
|
134
|
+
cancelColor?: ButtonColor;
|
|
135
135
|
/**
|
|
136
136
|
* Aria label of the close (X) button.
|
|
137
137
|
* @default Close
|
|
@@ -45,8 +45,8 @@ export const EunomiaModalTagName = "eun-modal";
|
|
|
45
45
|
* @prop {boolean} [closeable=true] - Shows the close button in the top right corner
|
|
46
46
|
* @prop {string} [cancelLabel='Cancel'] - The label of the default cancel button
|
|
47
47
|
* @prop {string} [confirmLabel='Confirm'] - The label of the default confirm button
|
|
48
|
-
* @prop {'primary' | 'critical'} [
|
|
49
|
-
* @prop {'primary' | 'secondary' | 'critical' | 'success' | 'warning'}
|
|
48
|
+
* @prop {'primary' | 'critical'} [confirmColor='primary'] - The color of the default confirm button
|
|
49
|
+
* @prop {'primary' | 'secondary' | 'critical' | 'success' | 'warning'} cancelColor - The color of the default cancel button. Left unset, it renders as a neutral gray ghost button
|
|
50
50
|
* @prop {string} ariaLabelClose - The accessible label of the close button
|
|
51
51
|
* @prop {string} [confirmCloseHeading='Discard changes?'] - The heading of the internal discard confirmation dialog
|
|
52
52
|
* @attr {string} [confirm-close-heading='Discard changes?'] - The heading of the internal discard confirmation dialog
|
|
@@ -120,10 +120,10 @@ let EunomiaModal = class EunomiaModal extends DialogSurfaceMixin(LitElement) {
|
|
|
120
120
|
*/
|
|
121
121
|
this.confirmLabel = "Confirm";
|
|
122
122
|
/**
|
|
123
|
-
*
|
|
123
|
+
* Color of the default confirm button.
|
|
124
124
|
* @default primary
|
|
125
125
|
*/
|
|
126
|
-
this.
|
|
126
|
+
this.confirmColor = "primary";
|
|
127
127
|
/**
|
|
128
128
|
* Aria label of the close (X) button.
|
|
129
129
|
* @default Close
|
|
@@ -412,7 +412,7 @@ let EunomiaModal = class EunomiaModal extends DialogSurfaceMixin(LitElement) {
|
|
|
412
412
|
heading=${this.confirmCloseHeading}
|
|
413
413
|
cancel-label=${this.confirmCloseCancelLabel}
|
|
414
414
|
confirm-label=${this.confirmCloseConfirmLabel}
|
|
415
|
-
confirm-
|
|
415
|
+
confirm-color="critical"
|
|
416
416
|
@eunconfirm=${this.handleDiscardConfirmed}
|
|
417
417
|
@euncancel=${this.stopDialogPropagation}
|
|
418
418
|
>
|
|
@@ -465,12 +465,12 @@ let EunomiaModal = class EunomiaModal extends DialogSurfaceMixin(LitElement) {
|
|
|
465
465
|
<eun-button
|
|
466
466
|
id="cancel-button"
|
|
467
467
|
appearance="ghost"
|
|
468
|
-
|
|
468
|
+
color=${ifDefined(this.cancelColor)}
|
|
469
469
|
@click=${() => this.requestClose()}
|
|
470
470
|
>${this.cancelLabel}</eun-button
|
|
471
471
|
>
|
|
472
472
|
<eun-button
|
|
473
|
-
|
|
473
|
+
color=${this.confirmColor}
|
|
474
474
|
@click=${() => this.confirm()}
|
|
475
475
|
>${this.confirmLabel}</eun-button
|
|
476
476
|
>
|
|
@@ -521,11 +521,11 @@ __decorate([
|
|
|
521
521
|
property({ attribute: "confirm-label" })
|
|
522
522
|
], EunomiaModal.prototype, "confirmLabel", void 0);
|
|
523
523
|
__decorate([
|
|
524
|
-
property({ attribute: "confirm-
|
|
525
|
-
], EunomiaModal.prototype, "
|
|
524
|
+
property({ attribute: "confirm-color" })
|
|
525
|
+
], EunomiaModal.prototype, "confirmColor", void 0);
|
|
526
526
|
__decorate([
|
|
527
|
-
property({ attribute: "cancel-
|
|
528
|
-
], EunomiaModal.prototype, "
|
|
527
|
+
property({ attribute: "cancel-color" })
|
|
528
|
+
], EunomiaModal.prototype, "cancelColor", void 0);
|
|
529
529
|
__decorate([
|
|
530
530
|
property({ attribute: "aria-label-close" })
|
|
531
531
|
], EunomiaModal.prototype, "ariaLabelClose", void 0);
|
|
@@ -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) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { LitElement, PropertyValues, TemplateResult } from "lit";
|
|
2
|
-
import {
|
|
2
|
+
import { EunomiaActionColor, EunomiaCompactSize } from "../../../types/variant.type.js";
|
|
3
3
|
/**
|
|
4
4
|
* Tag name of the badge component.
|
|
5
5
|
*/
|
|
6
6
|
export declare const EunomiaBadgeTagName = "eun-badge";
|
|
7
7
|
/**
|
|
8
|
-
* All available badge
|
|
8
|
+
* All available badge colors.
|
|
9
9
|
*/
|
|
10
|
-
export type
|
|
10
|
+
export type EunomiaBadgeColor = EunomiaActionColor;
|
|
11
11
|
/**
|
|
12
12
|
* All available badge sizes.
|
|
13
13
|
*/
|
|
@@ -23,7 +23,7 @@ export type EunomiaBadgeSize = EunomiaCompactSize;
|
|
|
23
23
|
*
|
|
24
24
|
* @slot [default] - The badge's content, typically a short number. Left empty, the badge renders as a plain dot
|
|
25
25
|
* @csspart badge - The badge's own box, carrying its size, padding, and background. Exposed for effects the badge's CSS custom properties don't cover
|
|
26
|
-
* @prop {'primary' | 'secondary' | 'critical' | 'success' | 'warning'} [
|
|
26
|
+
* @prop {'primary' | 'secondary' | 'critical' | 'success' | 'warning'} [color='critical'] - The color to apply
|
|
27
27
|
* @prop {'s' | 'm' | 'l'} [size='m'] - The size of the badge
|
|
28
28
|
* @prop {string} label - An optional accessible name. When set, the badge announces this text instead of staying hidden from assistive technology
|
|
29
29
|
* @cssprop [--badge-background] - Sets the background color of the badge
|
|
@@ -43,10 +43,10 @@ export declare class EunomiaBadge extends LitElement {
|
|
|
43
43
|
*/
|
|
44
44
|
static readonly styles: import("lit").CSSResult;
|
|
45
45
|
/**
|
|
46
|
-
* The color
|
|
46
|
+
* The color to apply.
|
|
47
47
|
* @default critical
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
color: EunomiaBadgeColor;
|
|
50
50
|
/**
|
|
51
51
|
* The size of the badge.
|
|
52
52
|
* @default m
|
|
@@ -22,7 +22,7 @@ export const EunomiaBadgeTagName = "eun-badge";
|
|
|
22
22
|
*
|
|
23
23
|
* @slot [default] - The badge's content, typically a short number. Left empty, the badge renders as a plain dot
|
|
24
24
|
* @csspart badge - The badge's own box, carrying its size, padding, and background. Exposed for effects the badge's CSS custom properties don't cover
|
|
25
|
-
* @prop {'primary' | 'secondary' | 'critical' | 'success' | 'warning'} [
|
|
25
|
+
* @prop {'primary' | 'secondary' | 'critical' | 'success' | 'warning'} [color='critical'] - The color to apply
|
|
26
26
|
* @prop {'s' | 'm' | 'l'} [size='m'] - The size of the badge
|
|
27
27
|
* @prop {string} label - An optional accessible name. When set, the badge announces this text instead of staying hidden from assistive technology
|
|
28
28
|
* @cssprop [--badge-background] - Sets the background color of the badge
|
|
@@ -36,10 +36,10 @@ let EunomiaBadge = class EunomiaBadge extends LitElement {
|
|
|
36
36
|
constructor() {
|
|
37
37
|
super(...arguments);
|
|
38
38
|
/**
|
|
39
|
-
* The color
|
|
39
|
+
* The color to apply.
|
|
40
40
|
* @default critical
|
|
41
41
|
*/
|
|
42
|
-
this.
|
|
42
|
+
this.color = "critical";
|
|
43
43
|
/**
|
|
44
44
|
* The size of the badge.
|
|
45
45
|
* @default m
|
|
@@ -129,7 +129,7 @@ let EunomiaBadge = class EunomiaBadge extends LitElement {
|
|
|
129
129
|
EunomiaBadge.styles = badgeStyles;
|
|
130
130
|
__decorate([
|
|
131
131
|
property({ reflect: true })
|
|
132
|
-
], EunomiaBadge.prototype, "
|
|
132
|
+
], EunomiaBadge.prototype, "color", void 0);
|
|
133
133
|
__decorate([
|
|
134
134
|
property({ reflect: true })
|
|
135
135
|
], EunomiaBadge.prototype, "size", void 0);
|