@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
|
@@ -20,8 +20,8 @@ const base = css `
|
|
|
20
20
|
box-sizing: border-box;
|
|
21
21
|
height: 100%;
|
|
22
22
|
overflow: hidden;
|
|
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);
|
|
@@ -36,12 +36,19 @@ const base = css `
|
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
:host {
|
|
40
|
+
--_hoverBorderDefault: var(
|
|
41
|
+
--card-border-color,
|
|
42
|
+
var(--eun-border-color, #dee0e7)
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
:host([href]) {
|
|
46
|
+
--_hoverBorderDefault: var(--eun-color-primary-500, #3d6fff);
|
|
47
|
+
}
|
|
48
|
+
|
|
39
49
|
#card:hover,
|
|
40
50
|
#card:focus-visible {
|
|
41
|
-
border-color: var(
|
|
42
|
-
--card-hover-border-color,
|
|
43
|
-
var(--eun-color-primary-500, #3d6fff)
|
|
44
|
-
);
|
|
51
|
+
border-color: var(--card-hover-border-color, var(--_hoverBorderDefault));
|
|
45
52
|
background: var(
|
|
46
53
|
--card-hover-background,
|
|
47
54
|
var(--card-background, var(--eun-surface-color, #ffffff))
|
|
@@ -85,14 +92,14 @@ const base = css `
|
|
|
85
92
|
}
|
|
86
93
|
|
|
87
94
|
::slotted([slot="title"]) {
|
|
88
|
-
font-weight: var(--eun-
|
|
89
|
-
font-size: var(--image-card-title-size, var(--eun-
|
|
95
|
+
font-weight: var(--eun-font-weight-l, 700);
|
|
96
|
+
font-size: var(--image-card-title-size, var(--eun-font-size-m, 16px));
|
|
90
97
|
color: var(--eun-text-color, #071621);
|
|
91
98
|
}
|
|
92
99
|
|
|
93
100
|
::slotted([slot="description"]) {
|
|
94
|
-
font-weight: var(--eun-
|
|
95
|
-
font-size: var(--image-card-description-size, var(--eun-
|
|
101
|
+
font-weight: var(--eun-font-weight-s, 300);
|
|
102
|
+
font-size: var(--image-card-description-size, var(--eun-font-size-s, 14px));
|
|
96
103
|
color: var(--eun-text-secondary, #484e61);
|
|
97
104
|
}
|
|
98
105
|
|
|
@@ -38,10 +38,6 @@ const base = css `
|
|
|
38
38
|
width: var(--sliding-card-width, 300px);
|
|
39
39
|
height: var(--sliding-card-height, 280px);
|
|
40
40
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
41
|
-
background: var(
|
|
42
|
-
--sliding-card-front-background,
|
|
43
|
-
var(--eun-surface-color, #ffffff)
|
|
44
|
-
);
|
|
45
41
|
clip-path: inset(0 0 calc(-1 * var(--sliding-card-fade-height, 60px)) 0);
|
|
46
42
|
}
|
|
47
43
|
|
|
@@ -67,7 +63,7 @@ const base = css `
|
|
|
67
63
|
position: absolute;
|
|
68
64
|
border-radius: var(
|
|
69
65
|
--sliding-card-border-radius,
|
|
70
|
-
var(--eun-
|
|
66
|
+
var(--eun-border-radius-l, 16px)
|
|
71
67
|
);
|
|
72
68
|
padding: var(--sliding-card-padding, var(--eun-space-l, 32px));
|
|
73
69
|
overflow: hidden;
|
|
@@ -119,7 +115,8 @@ const base = css `
|
|
|
119
115
|
--sliding-card-front-background,
|
|
120
116
|
var(--eun-surface-color, #ffffff)
|
|
121
117
|
);
|
|
122
|
-
border: var(--eun-
|
|
118
|
+
border: var(--eun-border-width-s, 1px) solid
|
|
119
|
+
var(--eun-border-color, #dee0e7);
|
|
123
120
|
z-index: 2;
|
|
124
121
|
}
|
|
125
122
|
|
|
@@ -52,7 +52,9 @@ declare const EunomiaChip_base: import("../../../utils/constructor.type.js").Con
|
|
|
52
52
|
* @fires {CloseEvent} eunclose - Fired when the delete button is activated. The chip has no visibility state of its own, so removing or hiding it in response is the consumer's own responsibility
|
|
53
53
|
* @prop {'primary' | 'secondary' | 'light' | 'medium' | 'dark'} [color='medium'] - The color to apply to the chip
|
|
54
54
|
* @prop {'info' | 'success' | 'warning' | 'critical' | 'neutral'} severity - The severity of the chip, matching the nature of the information conveyed. Takes priority over color when both are set
|
|
55
|
-
* @prop {'default' | 'fill' | 'outline' | 'flat'} [appearance='default'] - The surface style of the chip. Flat
|
|
55
|
+
* @prop {'default' | 'fill' | 'outline' | 'flat'} [appearance='default'] - The surface style of the chip. Flat renders the same muted, low emphasis surface regardless of color or severity, except for the light and dark colors, which keep their own white or black
|
|
56
|
+
* @prop {boolean} [fixedColor=false] - Keeps a light or dark chip white or black in every theme. Without it, they follow the grey scale, which flips with the active theme. Has no effect on the other colors or on severity
|
|
57
|
+
* @attr {boolean} [fixed-color=false] - Keeps a light or dark chip white or black in every theme. Without it, they follow the grey scale, which flips with the active theme. Has no effect on the other colors or on severity
|
|
56
58
|
* @prop {'s' | 'm' | 'l'} [size='m'] - The size of the chip
|
|
57
59
|
* @prop {EunomiaIconName} icon - The leading icon to display. Ignored once an avatar image or initials are set. When severity is set and icon isn't, the icon is set according to the chip's severity
|
|
58
60
|
* @prop {boolean} [hideIcon=false] - Whether the leading icon is hidden from the chip, once resolved. The avatar and initials are unaffected
|
|
@@ -71,13 +73,13 @@ declare const EunomiaChip_base: import("../../../utils/constructor.type.js").Con
|
|
|
71
73
|
* @prop {string} [ariaLabelRemove] - A prefix combined with the chip's own slotted text to build the delete button's accessible name, such as "Remove Alice Doe", so multiple chips on the same page stay distinguishable to assistive technology. Defaults to the localized string for the current locale (English: "Remove")
|
|
72
74
|
* @attr {string} [aria-label-remove] - A prefix combined with the chip's own slotted text to build the delete button's accessible name. Defaults to the localized string for the current locale (English: "Remove")
|
|
73
75
|
* @prop {string} [locale] - The locale used to resolve the default accessible label of the delete button. Defaults to the runtime's own
|
|
74
|
-
* @cssprop [--chip-background-color] - Sets the background color of the chip
|
|
75
|
-
* @cssprop [--chip-border-color] - Sets the border color of the chip, for
|
|
76
|
-
* @cssprop [--chip-border-width] - Sets the border width of the chip, for the
|
|
76
|
+
* @cssprop [--chip-background-color] - Sets the background color of the chip, for every appearance, color and severity
|
|
77
|
+
* @cssprop [--chip-border-color] - Sets the border color of the chip, for every appearance, color and severity
|
|
78
|
+
* @cssprop [--chip-border-width] - Sets the border width of the chip, for every appearance. The border takes room out of the padding, so the chip keeps its size
|
|
77
79
|
* @cssprop [--chip-box-shadow] - Sets a box shadow on the chip, none by default
|
|
78
|
-
* @cssprop [--chip-color] - Sets the text color of the chip
|
|
80
|
+
* @cssprop [--chip-color] - Sets the text color of the chip, for every appearance, color and severity
|
|
79
81
|
* @cssprop [--chip-icon-color] - Sets the color of the leading icon only, not the avatar, initials, or delete button icon. Defaults to matching the chip's own text color
|
|
80
|
-
* @cssprop [--chip-border-radius] - Sets the corner radius of the chip
|
|
82
|
+
* @cssprop [--chip-border-radius] - Sets the corner radius of the chip, also over rounded
|
|
81
83
|
* @cssprop [--chip-gap] - Sets the gap between the chip's leading visual, label, and delete button
|
|
82
84
|
* @cssprop [--chip-avatar-background] - Sets the background color of the initials badge
|
|
83
85
|
* @cssprop [--chip-avatar-color] - Sets the text color of the initials badge
|
|
@@ -93,11 +95,18 @@ export declare class EunomiaChip extends EunomiaChip_base {
|
|
|
93
95
|
* @internal
|
|
94
96
|
* @readonly
|
|
95
97
|
*/
|
|
96
|
-
static readonly styles: import("lit").CSSResult;
|
|
98
|
+
static readonly styles: import("lit").CSSResult[];
|
|
97
99
|
/**
|
|
98
100
|
* The color of the chip.
|
|
99
101
|
*/
|
|
100
102
|
color: EunomiaChipColor;
|
|
103
|
+
/**
|
|
104
|
+
* Keeps a `light` or `dark` chip white or black in every theme. Without
|
|
105
|
+
* it, they follow the grey scale, which flips with the active theme.
|
|
106
|
+
* Has no effect on the other colors or on `severity`.
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
fixedColor: boolean;
|
|
101
110
|
/**
|
|
102
111
|
* The severity of the chip to display.
|
|
103
112
|
*/
|
|
@@ -56,7 +56,9 @@ const DELETE_ICON_SIZES = {
|
|
|
56
56
|
* @fires {CloseEvent} eunclose - Fired when the delete button is activated. The chip has no visibility state of its own, so removing or hiding it in response is the consumer's own responsibility
|
|
57
57
|
* @prop {'primary' | 'secondary' | 'light' | 'medium' | 'dark'} [color='medium'] - The color to apply to the chip
|
|
58
58
|
* @prop {'info' | 'success' | 'warning' | 'critical' | 'neutral'} severity - The severity of the chip, matching the nature of the information conveyed. Takes priority over color when both are set
|
|
59
|
-
* @prop {'default' | 'fill' | 'outline' | 'flat'} [appearance='default'] - The surface style of the chip. Flat
|
|
59
|
+
* @prop {'default' | 'fill' | 'outline' | 'flat'} [appearance='default'] - The surface style of the chip. Flat renders the same muted, low emphasis surface regardless of color or severity, except for the light and dark colors, which keep their own white or black
|
|
60
|
+
* @prop {boolean} [fixedColor=false] - Keeps a light or dark chip white or black in every theme. Without it, they follow the grey scale, which flips with the active theme. Has no effect on the other colors or on severity
|
|
61
|
+
* @attr {boolean} [fixed-color=false] - Keeps a light or dark chip white or black in every theme. Without it, they follow the grey scale, which flips with the active theme. Has no effect on the other colors or on severity
|
|
60
62
|
* @prop {'s' | 'm' | 'l'} [size='m'] - The size of the chip
|
|
61
63
|
* @prop {EunomiaIconName} icon - The leading icon to display. Ignored once an avatar image or initials are set. When severity is set and icon isn't, the icon is set according to the chip's severity
|
|
62
64
|
* @prop {boolean} [hideIcon=false] - Whether the leading icon is hidden from the chip, once resolved. The avatar and initials are unaffected
|
|
@@ -75,13 +77,13 @@ const DELETE_ICON_SIZES = {
|
|
|
75
77
|
* @prop {string} [ariaLabelRemove] - A prefix combined with the chip's own slotted text to build the delete button's accessible name, such as "Remove Alice Doe", so multiple chips on the same page stay distinguishable to assistive technology. Defaults to the localized string for the current locale (English: "Remove")
|
|
76
78
|
* @attr {string} [aria-label-remove] - A prefix combined with the chip's own slotted text to build the delete button's accessible name. Defaults to the localized string for the current locale (English: "Remove")
|
|
77
79
|
* @prop {string} [locale] - The locale used to resolve the default accessible label of the delete button. Defaults to the runtime's own
|
|
78
|
-
* @cssprop [--chip-background-color] - Sets the background color of the chip
|
|
79
|
-
* @cssprop [--chip-border-color] - Sets the border color of the chip, for
|
|
80
|
-
* @cssprop [--chip-border-width] - Sets the border width of the chip, for the
|
|
80
|
+
* @cssprop [--chip-background-color] - Sets the background color of the chip, for every appearance, color and severity
|
|
81
|
+
* @cssprop [--chip-border-color] - Sets the border color of the chip, for every appearance, color and severity
|
|
82
|
+
* @cssprop [--chip-border-width] - Sets the border width of the chip, for every appearance. The border takes room out of the padding, so the chip keeps its size
|
|
81
83
|
* @cssprop [--chip-box-shadow] - Sets a box shadow on the chip, none by default
|
|
82
|
-
* @cssprop [--chip-color] - Sets the text color of the chip
|
|
84
|
+
* @cssprop [--chip-color] - Sets the text color of the chip, for every appearance, color and severity
|
|
83
85
|
* @cssprop [--chip-icon-color] - Sets the color of the leading icon only, not the avatar, initials, or delete button icon. Defaults to matching the chip's own text color
|
|
84
|
-
* @cssprop [--chip-border-radius] - Sets the corner radius of the chip
|
|
86
|
+
* @cssprop [--chip-border-radius] - Sets the corner radius of the chip, also over rounded
|
|
85
87
|
* @cssprop [--chip-gap] - Sets the gap between the chip's leading visual, label, and delete button
|
|
86
88
|
* @cssprop [--chip-avatar-background] - Sets the background color of the initials badge
|
|
87
89
|
* @cssprop [--chip-avatar-color] - Sets the text color of the initials badge
|
|
@@ -96,6 +98,13 @@ let EunomiaChip = class EunomiaChip extends LocalizableMixin(LitElement) {
|
|
|
96
98
|
* The color of the chip.
|
|
97
99
|
*/
|
|
98
100
|
this.color = "medium";
|
|
101
|
+
/**
|
|
102
|
+
* Keeps a `light` or `dark` chip white or black in every theme. Without
|
|
103
|
+
* it, they follow the grey scale, which flips with the active theme.
|
|
104
|
+
* Has no effect on the other colors or on `severity`.
|
|
105
|
+
* @default false
|
|
106
|
+
*/
|
|
107
|
+
this.fixedColor = false;
|
|
99
108
|
/**
|
|
100
109
|
* The surface treatment of the chip.
|
|
101
110
|
* @default default
|
|
@@ -323,6 +332,9 @@ EunomiaChip.styles = chipStyles;
|
|
|
323
332
|
__decorate([
|
|
324
333
|
property({ reflect: true })
|
|
325
334
|
], EunomiaChip.prototype, "color", void 0);
|
|
335
|
+
__decorate([
|
|
336
|
+
property({ type: Boolean, reflect: true, attribute: "fixed-color" })
|
|
337
|
+
], EunomiaChip.prototype, "fixedColor", void 0);
|
|
326
338
|
__decorate([
|
|
327
339
|
property({ reflect: true })
|
|
328
340
|
], EunomiaChip.prototype, "severity", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const chipStyles: import("lit").CSSResult;
|
|
1
|
+
export declare const chipStyles: import("lit").CSSResult[];
|
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
+
import { toneSurfaceStyles } from "../shared-styles/tone-surface.styles.js";
|
|
2
3
|
/**
|
|
3
4
|
* Base style for chip.
|
|
4
5
|
*
|
|
5
6
|
* Custom css variables:
|
|
6
|
-
* [--chip-background-color] - Set a custom color
|
|
7
|
-
* [--chip-border-color] - Set a custom color
|
|
8
|
-
* [--chip-border-width] - Set a custom border width to
|
|
7
|
+
* [--chip-background-color] - Set a custom background color, for every appearance
|
|
8
|
+
* [--chip-border-color] - Set a custom border color, for every appearance
|
|
9
|
+
* [--chip-border-width] - Set a custom border width, for every appearance. Defaults to 1px, only drawn (in a color) by outline, or when --chip-border-color is set
|
|
9
10
|
* [--chip-box-shadow] - Set a custom box shadow to the chip, none by default
|
|
10
|
-
* [--chip-color] - Set a custom color to the chip textual content
|
|
11
|
+
* [--chip-color] - Set a custom color to the chip textual content, for every appearance
|
|
11
12
|
* [--chip-icon-color] - Set a custom color for the leading icon only (not the avatar/initials, not the delete button's icon). Defaults to the chip's own text color, so it only needs setting to make the icon diverge from the label
|
|
12
|
-
* [--chip-border-radius] - Set a custom border radius to the chip
|
|
13
|
+
* [--chip-border-radius] - Set a custom border radius to the chip, also over `rounded`
|
|
13
14
|
* [--chip-gap] - Set a custom gap between the chip's leading visual, label, and delete button
|
|
14
15
|
* [--chip-avatar-background] - Set a custom background color for the initials badge
|
|
15
16
|
* [--chip-avatar-color] - Set a custom text color for the initials badge
|
|
16
17
|
* [--chip-avatar-size] - Set a custom diameter for the leading avatar/initials/image
|
|
17
18
|
* [--chip-delete-focus-outline-color] - Set a custom focus outline color for the delete button
|
|
18
19
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* defaults to `medium` and reflects), so a branch that only checked for
|
|
24
|
-
* `color` being absent could never actually be reached by a consumer who
|
|
25
|
-
* left it at its default — see "Custom colors" in the Examples tab.
|
|
20
|
+
* The palette and appearance resolution is shared with `eun-tag` (see
|
|
21
|
+
* {@link toneSurfaceStyles}) ; this sheet only reads its `--_bg`, `--_fg` and
|
|
22
|
+
* `--_bd` behind the `--chip-*` custom properties, applied last on the chip
|
|
23
|
+
* itself, so they win over any palette/appearance combination.
|
|
26
24
|
*/
|
|
27
25
|
const base = css `
|
|
28
26
|
:host {
|
|
@@ -33,190 +31,15 @@ const base = css `
|
|
|
33
31
|
vertical-align: middle;
|
|
34
32
|
}
|
|
35
33
|
|
|
36
|
-
:host
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
var(--eun-color-primary-transparent, #3d6fff33)
|
|
40
|
-
);
|
|
41
|
-
--_backgroundFilled: var(
|
|
42
|
-
--chip-background-color,
|
|
43
|
-
var(--eun-color-primary-500, #3d6fff)
|
|
44
|
-
);
|
|
45
|
-
--_border-color: var(
|
|
46
|
-
--chip-border-color,
|
|
47
|
-
var(--eun-color-primary-500, #3d6fff)
|
|
48
|
-
);
|
|
49
|
-
--_color: var(--chip-color, var(--eun-color-primary-500, #3d6fff));
|
|
50
|
-
}
|
|
51
|
-
:host([color="secondary"]:not([severity])) {
|
|
52
|
-
--_background: var(
|
|
53
|
-
--chip-background-color,
|
|
54
|
-
var(--eun-color-secondary-transparent, #e5a03033)
|
|
55
|
-
);
|
|
56
|
-
--_backgroundFilled: var(
|
|
57
|
-
--chip-background-color,
|
|
58
|
-
var(--eun-color-secondary-500, #e5a030)
|
|
59
|
-
);
|
|
60
|
-
--_border-color: var(
|
|
61
|
-
--chip-border-color,
|
|
62
|
-
var(--eun-color-secondary-500, #e5a030)
|
|
63
|
-
);
|
|
64
|
-
--_color: var(--chip-color, var(--eun-color-secondary-500, #e5a030));
|
|
65
|
-
}
|
|
66
|
-
:host([color="light"]:not([severity])) {
|
|
67
|
-
--_background: var(
|
|
68
|
-
--chip-background-color,
|
|
69
|
-
var(--eun-color-grey-100, #f7f8fa)
|
|
70
|
-
);
|
|
71
|
-
--_backgroundFilled: var(
|
|
72
|
-
--chip-background-color,
|
|
73
|
-
var(--eun-color-grey-100, #f7f8fa)
|
|
74
|
-
);
|
|
75
|
-
--_border-color: var(
|
|
76
|
-
--chip-border-color,
|
|
77
|
-
var(--eun-color-grey-100, #f7f8fa)
|
|
78
|
-
);
|
|
79
|
-
--_color: var(--chip-color, var(--eun-color-grey-600, #666e8a));
|
|
80
|
-
}
|
|
81
|
-
:host([color="light"][appearance="outline"]:not([severity])) {
|
|
82
|
-
--_color: var(--chip-color, var(--eun-color-grey-600, #666e8a));
|
|
83
|
-
}
|
|
84
|
-
:host([color="medium"]:not([severity])) {
|
|
85
|
-
--_background: var(
|
|
86
|
-
--chip-background-color,
|
|
87
|
-
var(--eun-color-grey-200, #ecedf0)
|
|
88
|
-
);
|
|
89
|
-
--_backgroundFilled: var(
|
|
90
|
-
--chip-background-color,
|
|
91
|
-
var(--eun-color-grey-500, #8d93aa)
|
|
92
|
-
);
|
|
93
|
-
--_border-color: var(
|
|
94
|
-
--chip-border-color,
|
|
95
|
-
var(--eun-color-grey-300, #dee0e7)
|
|
96
|
-
);
|
|
97
|
-
--_color: var(--chip-color, var(--eun-color-grey-900, #000000));
|
|
98
|
-
}
|
|
99
|
-
:host([color="dark"]:not([severity])) {
|
|
100
|
-
--_background: var(
|
|
101
|
-
--chip-background-color,
|
|
102
|
-
var(--eun-color-grey-800, #071621)
|
|
103
|
-
);
|
|
104
|
-
--_backgroundFilled: var(
|
|
105
|
-
--chip-background-color,
|
|
106
|
-
var(--eun-color-grey-800, #071621)
|
|
107
|
-
);
|
|
108
|
-
--_border-color: var(
|
|
109
|
-
--chip-border-color,
|
|
110
|
-
var(--eun-color-grey-800, #071621)
|
|
111
|
-
);
|
|
112
|
-
--_color: var(--chip-color, var(--eun-color-grey-0, #ffffff));
|
|
113
|
-
}
|
|
114
|
-
:host([color="dark"][appearance="outline"]:not([severity])) {
|
|
115
|
-
--_color: var(--chip-color, var(--eun-color-grey-800, #071621));
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
:host([severity="info"]) {
|
|
119
|
-
--_background: var(
|
|
120
|
-
--chip-background-color,
|
|
121
|
-
var(--eun-color-info-30, #f0f7fa)
|
|
122
|
-
);
|
|
123
|
-
--_backgroundFilled: var(
|
|
124
|
-
--chip-background-color,
|
|
125
|
-
var(--eun-color-info-100, #097faf)
|
|
126
|
-
);
|
|
127
|
-
--_border-color: var(
|
|
128
|
-
--chip-border-color,
|
|
129
|
-
var(--eun-color-info-100, #097faf)
|
|
130
|
-
);
|
|
131
|
-
--_color: var(--chip-color, var(--eun-color-info-100, #097faf));
|
|
132
|
-
}
|
|
133
|
-
:host([severity="success"]) {
|
|
134
|
-
--_background: var(
|
|
135
|
-
--chip-background-color,
|
|
136
|
-
var(--eun-color-success-30, #f1f9f4)
|
|
137
|
-
);
|
|
138
|
-
--_backgroundFilled: var(
|
|
139
|
-
--chip-background-color,
|
|
140
|
-
var(--eun-color-success-100, #1a9948)
|
|
141
|
-
);
|
|
142
|
-
--_border-color: var(
|
|
143
|
-
--chip-border-color,
|
|
144
|
-
var(--eun-color-success-100, #1a9948)
|
|
145
|
-
);
|
|
146
|
-
--_color: var(--chip-color, var(--eun-color-success-100, #1a9948));
|
|
147
|
-
}
|
|
148
|
-
:host([severity="warning"]) {
|
|
149
|
-
--_background: var(
|
|
150
|
-
--chip-background-color,
|
|
151
|
-
var(--eun-color-warning-30, #fcf5f0)
|
|
152
|
-
);
|
|
153
|
-
--_backgroundFilled: var(
|
|
154
|
-
--chip-background-color,
|
|
155
|
-
var(--eun-color-warning-100, #c85207)
|
|
156
|
-
);
|
|
157
|
-
--_border-color: var(
|
|
158
|
-
--chip-border-color,
|
|
159
|
-
var(--eun-color-warning-100, #c85207)
|
|
160
|
-
);
|
|
161
|
-
--_color: var(--chip-color, var(--eun-color-warning-100, #c85207));
|
|
162
|
-
}
|
|
163
|
-
:host([severity="critical"]) {
|
|
164
|
-
--_background: var(
|
|
165
|
-
--chip-background-color,
|
|
166
|
-
var(--eun-color-critical-30, #faf0f1)
|
|
167
|
-
);
|
|
168
|
-
--_backgroundFilled: var(
|
|
169
|
-
--chip-background-color,
|
|
170
|
-
var(--eun-color-critical-100, #aa0014)
|
|
171
|
-
);
|
|
172
|
-
--_border-color: var(
|
|
173
|
-
--chip-border-color,
|
|
174
|
-
var(--eun-color-critical-100, #aa0014)
|
|
175
|
-
);
|
|
176
|
-
--_color: var(--chip-color, var(--eun-color-critical-100, #aa0014));
|
|
177
|
-
}
|
|
178
|
-
:host([severity="neutral"]) {
|
|
179
|
-
--_background: var(
|
|
180
|
-
--chip-background-color,
|
|
181
|
-
var(--eun-color-grey-200, #ecedf0)
|
|
182
|
-
);
|
|
183
|
-
--_backgroundFilled: var(
|
|
184
|
-
--chip-background-color,
|
|
185
|
-
var(--eun-color-grey-700, #484e61)
|
|
186
|
-
);
|
|
187
|
-
--_border-color: var(
|
|
188
|
-
--chip-border-color,
|
|
189
|
-
var(--eun-color-grey-700, #484e61)
|
|
190
|
-
);
|
|
191
|
-
--_color: var(--chip-color, var(--eun-color-grey-700, #484e61));
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
:host([appearance="default"]) #chip {
|
|
195
|
-
background: var(--_background);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
:host([appearance="fill"]) #chip {
|
|
199
|
-
--_color: var(--chip-color, #fff);
|
|
200
|
-
background: var(--_backgroundFilled);
|
|
201
|
-
color: var(--_color);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
:host([appearance="outline"]) #chip {
|
|
205
|
-
background: var(--eun-surface-color, #ffffff);
|
|
206
|
-
border: var(--chip-border-width, var(--eun-borderWidth-s, 1px)) solid
|
|
207
|
-
var(--_border-color);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
:host([appearance="flat"]) #chip {
|
|
211
|
-
--_color: var(--chip-color, var(--eun-text-secondary, #484e61));
|
|
212
|
-
background: var(--eun-content-hover, #edeff0);
|
|
213
|
-
color: var(--_color);
|
|
34
|
+
:host {
|
|
35
|
+
/* Unlike a tag's transparent outline, a chip's sits on the surface. */
|
|
36
|
+
--_bg-outline: var(--eun-surface-color, #ffffff);
|
|
214
37
|
}
|
|
215
38
|
|
|
216
39
|
:host([size="s"]) {
|
|
217
40
|
--_height: 26px;
|
|
218
41
|
--_paddingInline: 4px;
|
|
219
|
-
--_fontSize: var(--eun-
|
|
42
|
+
--_fontSize: var(--eun-font-size-xs, 12px);
|
|
220
43
|
--_gap: 4px;
|
|
221
44
|
--_avatarFontSize: 10px;
|
|
222
45
|
--_avatarInsetSize: 16px;
|
|
@@ -225,7 +48,7 @@ const base = css `
|
|
|
225
48
|
:host(:not([size])) {
|
|
226
49
|
--_height: 30px;
|
|
227
50
|
--_paddingInline: 6px;
|
|
228
|
-
--_fontSize: var(--eun-
|
|
51
|
+
--_fontSize: var(--eun-font-size-s, 14px);
|
|
229
52
|
--_gap: 6px;
|
|
230
53
|
--_avatarFontSize: 11px;
|
|
231
54
|
--_avatarInsetSize: 20px;
|
|
@@ -233,17 +56,17 @@ const base = css `
|
|
|
233
56
|
:host([size="l"]) {
|
|
234
57
|
--_height: 38px;
|
|
235
58
|
--_paddingInline: 6px;
|
|
236
|
-
--_fontSize: var(--eun-
|
|
59
|
+
--_fontSize: var(--eun-font-size-m, 16px);
|
|
237
60
|
--_gap: 8px;
|
|
238
61
|
--_avatarFontSize: 12px;
|
|
239
62
|
--_avatarInsetSize: 24px;
|
|
240
63
|
}
|
|
241
64
|
|
|
242
|
-
:host
|
|
243
|
-
--
|
|
65
|
+
:host {
|
|
66
|
+
--_radius: var(--eun-border-radius-s, 5px);
|
|
244
67
|
}
|
|
245
|
-
:host(
|
|
246
|
-
--
|
|
68
|
+
:host([rounded]) {
|
|
69
|
+
--_radius: var(--eun-border-radius-xl, 999px);
|
|
247
70
|
}
|
|
248
71
|
|
|
249
72
|
#chip {
|
|
@@ -252,20 +75,30 @@ const base = css `
|
|
|
252
75
|
box-sizing: border-box;
|
|
253
76
|
max-width: 100%;
|
|
254
77
|
height: var(--_height);
|
|
255
|
-
border-
|
|
256
|
-
|
|
257
|
-
|
|
78
|
+
--_borderWidth: var(--chip-border-width, var(--eun-border-width-s, 1px));
|
|
79
|
+
background: var(--chip-background-color, var(--_bg));
|
|
80
|
+
/* Every appearance carries the same border box (transparent unless
|
|
81
|
+
drawn), taken out of the padding, so switching appearance or adding a
|
|
82
|
+
--chip-border-* never changes the chip's size. */
|
|
83
|
+
border: var(--_borderWidth) solid var(--chip-border-color, var(--_bd));
|
|
84
|
+
border-radius: var(--chip-border-radius, var(--_radius));
|
|
85
|
+
padding-inline-start: max(0px, calc(var(--_paddingInline) - var(--_borderWidth)));
|
|
86
|
+
padding-inline-end: max(0px, calc(var(--_paddingInline) - var(--_borderWidth)));
|
|
258
87
|
font-size: var(--_fontSize);
|
|
259
88
|
gap: var(--chip-gap, var(--_gap));
|
|
260
|
-
color: var(--
|
|
261
|
-
font-weight: var(--eun-
|
|
89
|
+
color: var(--chip-color, var(--_fg));
|
|
90
|
+
font-weight: var(--eun-font-weight-m, 500);
|
|
262
91
|
box-shadow: var(--chip-box-shadow, none);
|
|
263
|
-
--
|
|
92
|
+
--_textColor: var(--chip-color, var(--_fg));
|
|
93
|
+
--_leadingIconColor: var(--chip-icon-color, var(--_textColor));
|
|
264
94
|
}
|
|
265
95
|
|
|
266
96
|
#chip[data-leading="icon"],
|
|
267
97
|
#chip[data-leading="none"] {
|
|
268
|
-
padding-inline-start:
|
|
98
|
+
padding-inline-start: max(
|
|
99
|
+
0px,
|
|
100
|
+
calc(var(--_paddingInline) + 4px - var(--_borderWidth))
|
|
101
|
+
);
|
|
269
102
|
}
|
|
270
103
|
|
|
271
104
|
#chip[data-leading="none"] slot[name="icon"] {
|
|
@@ -291,12 +124,12 @@ const base = css `
|
|
|
291
124
|
width: var(--chip-avatar-size, var(--_avatarInsetSize, 20px));
|
|
292
125
|
height: var(--chip-avatar-size, var(--_avatarInsetSize, 20px));
|
|
293
126
|
font-size: var(--_avatarFontSize);
|
|
294
|
-
font-weight: var(--eun-
|
|
127
|
+
font-weight: var(--eun-font-weight-l, 700);
|
|
295
128
|
line-height: 1;
|
|
296
|
-
color: var(--chip-avatar-color, #fff);
|
|
129
|
+
color: var(--chip-avatar-color, var(--_onSolid, #fff));
|
|
297
130
|
background: var(
|
|
298
131
|
--chip-avatar-background,
|
|
299
|
-
var(--
|
|
132
|
+
var(--_solid, var(--eun-color-grey-500, #8d93aa))
|
|
300
133
|
);
|
|
301
134
|
overflow: hidden;
|
|
302
135
|
}
|
|
@@ -306,7 +139,7 @@ const base = css `
|
|
|
306
139
|
}
|
|
307
140
|
|
|
308
141
|
#avatar[data-shape="square"] {
|
|
309
|
-
border-radius: var(--eun-
|
|
142
|
+
border-radius: var(--eun-border-radius-s, 5px);
|
|
310
143
|
}
|
|
311
144
|
|
|
312
145
|
#avatar img {
|
|
@@ -323,7 +156,7 @@ const base = css `
|
|
|
323
156
|
|
|
324
157
|
#delete {
|
|
325
158
|
flex-shrink: 0;
|
|
326
|
-
--button-text: var(--
|
|
159
|
+
--button-text: var(--_textColor);
|
|
327
160
|
--button-focus-outline: var(
|
|
328
161
|
--chip-delete-focus-outline-color,
|
|
329
162
|
var(--eun-color-primary-500, #3d6fff)
|
|
@@ -334,4 +167,4 @@ const base = css `
|
|
|
334
167
|
opacity: 0.6;
|
|
335
168
|
}
|
|
336
169
|
`;
|
|
337
|
-
export const chipStyles = base;
|
|
170
|
+
export const chipStyles = [toneSurfaceStyles, base];
|
|
@@ -35,7 +35,7 @@ export const collapseStyles = css `
|
|
|
35
35
|
#wrapper {
|
|
36
36
|
--_background: var(
|
|
37
37
|
--collapse-background,
|
|
38
|
-
var(--eun-
|
|
38
|
+
var(--eun-surface-sunken, #f7f8fa)
|
|
39
39
|
);
|
|
40
40
|
--_backgroundHover: var(--collapse-background-hover, var(--_background));
|
|
41
41
|
--_backgroundOpen: var(--collapse-background-open, var(--_background));
|
|
@@ -58,7 +58,7 @@ export const collapseStyles = css `
|
|
|
58
58
|
);
|
|
59
59
|
--_contentFontSize: var(
|
|
60
60
|
--collapse-content-font-size,
|
|
61
|
-
var(--eun-
|
|
61
|
+
var(--eun-font-size-s, 14px)
|
|
62
62
|
);
|
|
63
63
|
--_richTextLinkColor: var(
|
|
64
64
|
--collapse-rich-text-link-color,
|
|
@@ -70,7 +70,7 @@ export const collapseStyles = css `
|
|
|
70
70
|
);
|
|
71
71
|
--_borderRadius: var(
|
|
72
72
|
--collapse-border-radius,
|
|
73
|
-
var(--eun-
|
|
73
|
+
var(--eun-border-radius-l, 16px)
|
|
74
74
|
);
|
|
75
75
|
--_padding: var(--collapse-padding, var(--eun-space-m, 16px));
|
|
76
76
|
--_transitionDuration: var(--collapse-transition-duration, 0.3s);
|
|
@@ -87,8 +87,8 @@ export const collapseStyles = css `
|
|
|
87
87
|
border-radius: var(--_borderRadius);
|
|
88
88
|
color: var(--_color);
|
|
89
89
|
font: inherit;
|
|
90
|
-
font-size: var(--eun-
|
|
91
|
-
font-weight: var(--eun-
|
|
90
|
+
font-size: var(--eun-font-size-m, 16px);
|
|
91
|
+
font-weight: var(--eun-font-weight-l);
|
|
92
92
|
text-align: left;
|
|
93
93
|
cursor: pointer;
|
|
94
94
|
outline: 2px solid transparent;
|
|
@@ -138,11 +138,11 @@ export const collapseStyles = css `
|
|
|
138
138
|
#heading {
|
|
139
139
|
overflow: hidden;
|
|
140
140
|
text-overflow: ellipsis;
|
|
141
|
-
font-size: var(--eun-
|
|
141
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
142
142
|
}
|
|
143
143
|
#subheading {
|
|
144
|
-
font-size: var(--eun-
|
|
145
|
-
font-weight: var(--eun-
|
|
144
|
+
font-size: var(--eun-font-size-xs, 14px);
|
|
145
|
+
font-weight: var(--eun-font-weight-m);
|
|
146
146
|
color: var(--_subheadingColor);
|
|
147
147
|
}
|
|
148
148
|
#actions {
|
|
@@ -162,6 +162,7 @@ export const collapseStyles = css `
|
|
|
162
162
|
background: var(--_background);
|
|
163
163
|
border-bottom-left-radius: var(--_borderRadius);
|
|
164
164
|
border-bottom-right-radius: var(--_borderRadius);
|
|
165
|
+
overflow-anchor: none;
|
|
165
166
|
transition:
|
|
166
167
|
grid-template-rows var(--_transitionDuration) ease-out,
|
|
167
168
|
margin-top var(--_transitionDuration) ease-out,
|
|
@@ -171,7 +172,7 @@ export const collapseStyles = css `
|
|
|
171
172
|
overflow: hidden;
|
|
172
173
|
}
|
|
173
174
|
#panel-content {
|
|
174
|
-
border-top: var(--eun-
|
|
175
|
+
border-top: var(--eun-border-width-s, 1px) solid
|
|
175
176
|
var(--eun-color-grey-300, #dee0e7);
|
|
176
177
|
padding: var(--_padding);
|
|
177
178
|
color: var(--_contentColor);
|
|
@@ -186,13 +187,6 @@ export const collapseStyles = css `
|
|
|
186
187
|
#rich-text :last-child {
|
|
187
188
|
margin-block-end: 0;
|
|
188
189
|
}
|
|
189
|
-
#rich-text p {
|
|
190
|
-
margin-block: var(--eun-space-xs, 4px) 0;
|
|
191
|
-
}
|
|
192
|
-
#rich-text ul {
|
|
193
|
-
margin-block: var(--eun-space-xs, 4px) 0;
|
|
194
|
-
padding-inline-start: var(--eun-space-m, 16px);
|
|
195
|
-
}
|
|
196
190
|
#rich-text a {
|
|
197
191
|
color: var(--_richTextLinkColor);
|
|
198
192
|
}
|