@eunomia/elements 1.0.0-beta.3 → 1.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cdn/components/chunks/{chunk-3LMI7KUA.js → chunk-2JLDJFYD.js} +1 -1
- package/dist/cdn/components/chunks/chunk-4MXL6PZC.js +124 -0
- package/dist/cdn/components/chunks/{chunk-32KRPOPV.js → chunk-5XJGYXW7.js} +6 -6
- package/dist/cdn/components/chunks/{chunk-O2HNWH65.js → chunk-5XJLIHAU.js} +7 -7
- package/dist/cdn/components/chunks/{chunk-5GF2Q3NR.js → chunk-74AOAB4X.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-WYMBUIKX.js → chunk-A6KGFALA.js} +4 -4
- package/dist/cdn/components/chunks/chunk-BMQOI7HX.js +371 -0
- package/dist/cdn/components/chunks/{chunk-LJYTHDZP.js → chunk-D2M4BV5Y.js} +6 -6
- package/dist/cdn/components/chunks/{chunk-NEYBPT3D.js → chunk-EJIX2D4Z.js} +2 -2
- package/dist/cdn/components/chunks/{chunk-BYBUXKXC.js → chunk-EOWBYZV7.js} +2 -2
- package/dist/cdn/components/chunks/chunk-EST3M4AO.js +1 -0
- package/dist/cdn/components/chunks/{chunk-TBKKTJOX.js → chunk-GSJEJLFA.js} +3 -3
- package/dist/cdn/components/chunks/{chunk-5RCCZVFZ.js → chunk-IJ5WFMK4.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-RWONCXTF.js → chunk-KVYUNKUO.js} +2 -2
- package/dist/cdn/components/chunks/chunk-LGLQ36QB.js +16 -0
- package/dist/cdn/components/chunks/{chunk-53QH6MPM.js → chunk-NHFWATVN.js} +1 -1
- package/dist/cdn/components/chunks/chunk-OAULRKHQ.js +38 -0
- package/dist/cdn/components/chunks/chunk-P32B7BFD.js +118 -0
- package/dist/cdn/components/chunks/{chunk-ZPFHTJSS.js → chunk-PCM7D3YF.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-ABYEBP57.js → chunk-PED5ATYN.js} +11 -8
- package/dist/cdn/components/chunks/{chunk-ON42P6FI.js → chunk-RJCJXB7Y.js} +5 -5
- package/dist/cdn/components/chunks/{chunk-5C7YND22.js → chunk-S2UCEWNG.js} +8 -8
- package/dist/cdn/components/chunks/{chunk-EAGGN3ZI.js → chunk-SIHZFOTK.js} +9 -9
- package/dist/cdn/components/chunks/{chunk-6UPI7GHJ.js → chunk-UAGCQF23.js} +7 -7
- package/dist/cdn/components/chunks/{chunk-6IILPCSQ.js → chunk-X2AUBZD2.js} +3 -3
- package/dist/cdn/components/chunks/chunk-YGUJJ25C.js +263 -0
- package/dist/cdn/components/eun-alert.js +65 -45
- package/dist/cdn/components/eun-badge.js +1 -1
- package/dist/cdn/components/eun-breadcrumb-item.js +14 -10
- package/dist/cdn/components/eun-breadcrumb.js +11 -7
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-calendar.js +16 -16
- package/dist/cdn/components/eun-card.js +21 -12
- package/dist/cdn/components/eun-carousel.js +35 -27
- package/dist/cdn/components/eun-check-card.js +3 -3
- package/dist/cdn/components/eun-checkbox-list.js +3 -3
- package/dist/cdn/components/eun-checkbox.js +1 -1
- package/dist/cdn/components/eun-chip.js +45 -207
- package/dist/cdn/components/eun-collapse.js +13 -12
- package/dist/cdn/components/eun-color-picker.js +12 -12
- package/dist/cdn/components/eun-counter.js +8 -8
- package/dist/cdn/components/eun-date-picker.js +50 -50
- package/dist/cdn/components/eun-drawer.js +3 -3
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-dropdown-item.js +6 -6
- package/dist/cdn/components/eun-fab.js +31 -53
- package/dist/cdn/components/eun-icon.js +1 -1
- package/dist/cdn/components/eun-image-card.js +18 -11
- package/dist/cdn/components/eun-image-carousel.js +16 -16
- package/dist/cdn/components/eun-infinite-list.js +1 -1
- package/dist/cdn/components/eun-input-file.js +12 -12
- package/dist/cdn/components/eun-input-phone.js +13 -13
- package/dist/cdn/components/eun-input.js +1 -1
- package/dist/cdn/components/eun-label.js +4 -4
- package/dist/cdn/components/eun-link.js +29 -11
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +6 -6
- package/dist/cdn/components/eun-pagination.js +3 -3
- package/dist/cdn/components/eun-password-strength.js +9 -6
- package/dist/cdn/components/eun-progress-bar.js +13 -13
- package/dist/cdn/components/eun-radio-card.js +2 -2
- package/dist/cdn/components/eun-radio-list.js +1 -1
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-scheduler-event-editor.js +2 -2
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +10 -10
- package/dist/cdn/components/eun-search.js +7 -7
- package/dist/cdn/components/eun-select.js +10 -10
- package/dist/cdn/components/eun-sidebar.js +9 -9
- package/dist/cdn/components/eun-skeleton.js +1 -1
- package/dist/cdn/components/eun-slider.js +8 -8
- package/dist/cdn/components/eun-sliding-card.js +4 -3
- package/dist/cdn/components/eun-step.js +8 -8
- package/dist/cdn/components/eun-stepper.js +8 -8
- package/dist/cdn/components/eun-switch.js +10 -10
- package/dist/cdn/components/eun-tab-group.js +19 -11
- package/dist/cdn/components/eun-tab-panel.js +1 -1
- package/dist/cdn/components/eun-tab.js +1 -1
- package/dist/cdn/components/eun-table-action-bar.js +1 -1
- package/dist/cdn/components/eun-table-cell.js +1 -1
- package/dist/cdn/components/eun-table-column.js +1 -1
- package/dist/cdn/components/eun-table-header.js +1 -1
- package/dist/cdn/components/eun-table-item.js +1 -1
- package/dist/cdn/components/eun-table-skeleton-row.js +1 -1
- package/dist/cdn/components/eun-table.js +3 -3
- package/dist/cdn/components/eun-tag.js +34 -126
- package/dist/cdn/components/eun-textarea.js +22 -22
- package/dist/cdn/components/eun-time-picker.js +25 -25
- package/dist/cdn/components/eun-toast.js +40 -36
- package/dist/cdn/components/eun-toggle-group.js +199 -66
- package/dist/cdn/components/eun-toggle-item.js +41 -24
- package/dist/cdn/components/eun-toggle.js +11 -8
- package/dist/cdn/components/eun-toolbar.js +14 -7
- package/dist/cdn/components/eun-tooltip.js +122 -87
- package/dist/cdn/styles/eunomia-themes.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.scss +1 -0
- package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +71 -0
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +2 -0
- package/dist/cdn/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/dist/cdn/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +39 -0
- package/dist/cdn/styles/tools/mixins/settings/eunomia-border.mixin.scss +3 -3
- package/dist/cdn/styles/tools/mixins/settings/eunomia-font.mixin.scss +12 -12
- package/dist/cdn/styles/tools/mixins/settings/eunomia-radius.mixin.scss +4 -4
- package/dist/components/action/button/button.d.ts +2 -0
- package/dist/components/action/button/button.js +2 -0
- package/dist/components/action/button/button.styles.js +132 -384
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +7 -0
- package/dist/components/action/dropdown-button/dropdown-button.js +11 -0
- package/dist/components/action/dropdown-button/dropdown-button.styles.js +8 -8
- package/dist/components/action/dropdown-button/dropdown-item.styles.js +6 -6
- package/dist/components/action/fab/fab.d.ts +3 -1
- package/dist/components/action/fab/fab.js +3 -1
- package/dist/components/action/fab/fab.styles.js +26 -49
- package/dist/components/action/link/link.d.ts +50 -0
- package/dist/components/action/link/link.js +69 -1
- package/dist/components/action/link/link.styles.js +19 -2
- package/dist/components/action/shared-styles/button-palette.styles.d.ts +27 -0
- package/dist/components/action/shared-styles/button-palette.styles.js +151 -0
- package/dist/components/action/toggle/toggle-group.d.ts +41 -7
- package/dist/components/action/toggle/toggle-group.js +161 -45
- package/dist/components/action/toggle/toggle-group.styles.d.ts +6 -5
- package/dist/components/action/toggle/toggle-group.styles.js +152 -35
- package/dist/components/action/toggle/toggle-item.styles.js +37 -20
- package/dist/components/action/toggle/toggle.d.ts +1 -1
- package/dist/components/action/toggle/toggle.js +1 -1
- package/dist/components/action/toggle/toggle.styles.d.ts +2 -2
- package/dist/components/action/toggle/toggle.styles.js +13 -10
- package/dist/components/alert/alert/alert.d.ts +4 -3
- package/dist/components/alert/alert/alert.js +4 -3
- package/dist/components/alert/alert/alert.styles.js +57 -36
- package/dist/components/alert/drawer/drawer.styles.js +3 -3
- package/dist/components/alert/modal/modal.styles.js +6 -6
- package/dist/components/alert/toast/toast.d.ts +4 -3
- package/dist/components/alert/toast/toast.js +4 -3
- package/dist/components/alert/toast/toast.styles.js +41 -36
- package/dist/components/content/badge/badge.styles.js +1 -1
- package/dist/components/content/card/card.d.ts +4 -4
- package/dist/components/content/card/card.js +4 -4
- package/dist/components/content/card/card.styles.js +19 -10
- package/dist/components/content/card/image-card.d.ts +1 -1
- package/dist/components/content/card/image-card.js +1 -1
- package/dist/components/content/card/image-card.styles.js +17 -10
- package/dist/components/content/card/sliding-card.styles.js +3 -2
- package/dist/components/content/chip/chip.d.ts +16 -7
- package/dist/components/content/chip/chip.js +18 -6
- package/dist/components/content/chip/chip.styles.d.ts +1 -1
- package/dist/components/content/chip/chip.styles.js +43 -207
- package/dist/components/content/collapse/collapse.styles.js +10 -9
- package/dist/components/content/icon/icon.style.js +1 -1
- package/dist/components/content/image-carousel/image-carousel.styles.js +14 -14
- package/dist/components/content/password-strength/password-strength.styles.js +7 -4
- package/dist/components/content/progress-bar/progress-bar.styles.js +9 -9
- package/dist/components/content/shared-styles/tone-surface.styles.d.ts +31 -0
- package/dist/components/content/shared-styles/tone-surface.styles.js +149 -0
- package/dist/components/content/tag/tag.d.ts +16 -6
- package/dist/components/content/tag/tag.js +19 -6
- package/dist/components/content/tag/tag.styles.d.ts +1 -1
- package/dist/components/content/tag/tag.styles.js +40 -125
- package/dist/components/content/tooltip/tooltip.d.ts +15 -4
- package/dist/components/content/tooltip/tooltip.js +21 -4
- package/dist/components/content/tooltip/tooltip.styles.js +115 -79
- package/dist/components/form/checkbox/check-card.styles.js +2 -2
- package/dist/components/form/checkbox/checkbox-list.d.ts +1 -1
- package/dist/components/form/checkbox/checkbox.d.ts +1 -1
- package/dist/components/form/checkbox/checkbox.styles.js +6 -6
- package/dist/components/form/color-picker/color-picker.d.ts +1 -1
- package/dist/components/form/color-picker/color-picker.styles.js +7 -7
- package/dist/components/form/counter/counter.d.ts +1 -1
- package/dist/components/form/counter/counter.styles.js +7 -7
- package/dist/components/form/date-picker/date-picker-day-grid.styles.js +2 -2
- package/dist/components/form/date-picker/date-picker-grid.styles.js +15 -15
- package/dist/components/form/date-picker/date-picker-month-grid.styles.js +1 -1
- package/dist/components/form/date-picker/date-picker-year-grid.styles.js +1 -1
- package/dist/components/form/date-picker/date-picker.d.ts +1 -1
- package/dist/components/form/date-picker/date-picker.styles.js +12 -12
- package/dist/components/form/input/input.d.ts +1 -1
- package/dist/components/form/input-file/input-file.d.ts +1 -1
- package/dist/components/form/input-file/input-file.styles.js +9 -9
- package/dist/components/form/input-phone/input-phone.d.ts +1 -1
- package/dist/components/form/input-phone/input-phone.styles.js +7 -7
- package/dist/components/form/label/label.styles.js +4 -4
- package/dist/components/form/radio/radio-card.styles.js +1 -1
- package/dist/components/form/radio/radio-list.d.ts +1 -1
- package/dist/components/form/radio/radio.d.ts +1 -1
- package/dist/components/form/radio/radio.styles.js +2 -2
- package/dist/components/form/search/search.styles.js +6 -6
- package/dist/components/form/select/select.d.ts +1 -1
- package/dist/components/form/select/select.styles.js +6 -6
- package/dist/components/form/shared-styles/card.styles.js +1 -1
- package/dist/components/form/shared-styles/field.styles.js +7 -7
- package/dist/components/form/shared-styles/form-labels.styles.js +1 -1
- package/dist/components/form/shared-styles/listbox.styles.js +6 -6
- package/dist/components/form/slider/slider.d.ts +1 -1
- package/dist/components/form/slider/slider.styles.js +6 -6
- package/dist/components/form/switch/switch.d.ts +1 -1
- package/dist/components/form/switch/switch.styles.js +8 -8
- package/dist/components/form/textarea/textarea.d.ts +1 -1
- package/dist/components/form/textarea/textarea.styles.js +6 -6
- package/dist/components/form/time-picker/time-picker-columns.styles.js +6 -6
- package/dist/components/form/time-picker/time-picker-list.styles.js +2 -2
- package/dist/components/form/time-picker/time-picker.d.ts +1 -1
- package/dist/components/form/time-picker/time-picker.styles.js +8 -8
- package/dist/components/loader/loader/loader.styles.js +2 -2
- package/dist/components/loader/skeleton/skeleton.styles.js +8 -5
- package/dist/components/navigation/breadcrumb/breadcrumb-item.d.ts +7 -0
- package/dist/components/navigation/breadcrumb/breadcrumb-item.js +15 -1
- package/dist/components/navigation/breadcrumb/breadcrumb-item.styles.js +3 -3
- package/dist/components/navigation/breadcrumb/breadcrumb.d.ts +1 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.js +7 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.styles.js +3 -3
- package/dist/components/navigation/carousel/carousel.d.ts +40 -6
- package/dist/components/navigation/carousel/carousel.js +61 -12
- package/dist/components/navigation/carousel/carousel.styles.js +19 -7
- package/dist/components/navigation/pagination/pagination.styles.js +3 -3
- package/dist/components/navigation/sidebar/sidebar.styles.js +9 -9
- package/dist/components/navigation/stepper/step.styles.js +8 -8
- package/dist/components/navigation/stepper/stepper.styles.js +8 -8
- package/dist/components/navigation/tabs/tab/tab.styles.js +5 -5
- package/dist/components/navigation/tabs/tab-group/tab-group.d.ts +9 -0
- package/dist/components/navigation/tabs/tab-group/tab-group.js +19 -2
- package/dist/components/navigation/tabs/tab-group/tab-group.styles.js +12 -4
- package/dist/components/navigation/tabs/tab-panel/tab-panel.styles.js +1 -1
- package/dist/components/navigation/toolbar/toolbar.d.ts +2 -0
- package/dist/components/navigation/toolbar/toolbar.js +2 -0
- package/dist/components/navigation/toolbar/toolbar.styles.js +16 -7
- package/dist/features/scheduler/calendar/calendar.js +1 -1
- package/dist/features/scheduler/calendar/calendar.styles.js +3 -3
- package/dist/features/scheduler/scheduler/scheduler.styles.js +2 -2
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +2 -2
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.styles.js +2 -2
- package/dist/features/scheduler/shared/scheduler-event-popover.styles.js +4 -4
- package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +1 -1
- package/dist/features/scheduler/shared/scheduler-month-view.styles.js +1 -1
- package/dist/features/scheduler/shared/scheduler-year-view.styles.js +1 -1
- package/dist/features/table/native-table.css +11 -11
- package/dist/features/table/table/table.styles.js +2 -2
- package/dist/features/table/table-action-bar/table-action-bar.styles.js +2 -2
- package/dist/features/table/table-cell/table-cell.styles.js +2 -2
- package/dist/features/table/table-column/table-column.styles.js +3 -3
- package/dist/features/table/table-header/table-header.styles.js +4 -4
- package/dist/features/table/table-item/table-item.styles.js +6 -6
- package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +5 -2
- package/dist/jsx.d.ts +18 -5
- package/dist/mixins/button.mixin.d.ts +1 -0
- package/dist/mixins/button.mixin.js +10 -0
- package/dist/mixins/check.mixin.d.ts +1 -1
- package/dist/mixins/editable.mixin.d.ts +1 -1
- package/dist/mixins/form.mixin.d.ts +5 -1
- package/dist/mixins/form.mixin.js +32 -12
- package/dist/mixins/overflow-navigation.mixin.js +2 -1
- package/dist/mixins/radio.mixin.d.ts +1 -1
- package/dist/mixins/validators.mixin.d.ts +9 -3
- package/dist/utils/rich-text.utils.d.ts +33 -0
- package/dist/utils/rich-text.utils.js +140 -49
- package/dist/utils/theme-generator.utils.d.ts +24 -3
- package/dist/utils/theme-generator.utils.js +66 -21
- package/package.json +6 -1
- package/styles/themes/eunomia-theme.scss +1 -0
- package/styles/themes/mixins/eunomia-neutrals.mixin.scss +71 -0
- package/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +2 -0
- package/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +39 -0
- package/styles/tools/mixins/settings/eunomia-border.mixin.scss +3 -3
- package/styles/tools/mixins/settings/eunomia-font.mixin.scss +12 -12
- package/styles/tools/mixins/settings/eunomia-radius.mixin.scss +4 -4
- package/dist/cdn/components/chunks/chunk-5TH3P53V.js +0 -16
- package/dist/cdn/components/chunks/chunk-KNM5QHDK.js +0 -38
- package/dist/cdn/components/chunks/chunk-MBF52GEL.js +0 -1
- package/dist/cdn/components/chunks/chunk-Z6PJYSC3.js +0 -622
- package/dist/cdn/components/chunks/chunk-ZKPCO5RB.js +0 -262
|
@@ -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
|
|
|
@@ -63,7 +63,7 @@ const base = css `
|
|
|
63
63
|
position: absolute;
|
|
64
64
|
border-radius: var(
|
|
65
65
|
--sliding-card-border-radius,
|
|
66
|
-
var(--eun-
|
|
66
|
+
var(--eun-border-radius-l, 16px)
|
|
67
67
|
);
|
|
68
68
|
padding: var(--sliding-card-padding, var(--eun-space-l, 32px));
|
|
69
69
|
overflow: hidden;
|
|
@@ -115,7 +115,8 @@ const base = css `
|
|
|
115
115
|
--sliding-card-front-background,
|
|
116
116
|
var(--eun-surface-color, #ffffff)
|
|
117
117
|
);
|
|
118
|
-
border: var(--eun-
|
|
118
|
+
border: var(--eun-border-width-s, 1px) solid
|
|
119
|
+
var(--eun-border-color, #dee0e7);
|
|
119
120
|
z-index: 2;
|
|
120
121
|
}
|
|
121
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,187 +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-0, #ffffff)
|
|
70
|
-
);
|
|
71
|
-
--_backgroundFilled: var(
|
|
72
|
-
--chip-background-color,
|
|
73
|
-
var(--eun-color-grey-0, #ffffff)
|
|
74
|
-
);
|
|
75
|
-
--_border-color: var(
|
|
76
|
-
--chip-border-color,
|
|
77
|
-
var(--eun-color-grey-0, #ffffff)
|
|
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
|
-
color-mix(in srgb, var(--eun-color-grey-700, #484e61) 20%, transparent)
|
|
88
|
-
);
|
|
89
|
-
--_backgroundFilled: var(--_background);
|
|
90
|
-
--_border-color: var(
|
|
91
|
-
--chip-border-color,
|
|
92
|
-
var(--eun-color-grey-700, #484e61)
|
|
93
|
-
);
|
|
94
|
-
--_color: var(--chip-color, var(--eun-color-grey-900, #000000));
|
|
95
|
-
}
|
|
96
|
-
:host([color="dark"]:not([severity])) {
|
|
97
|
-
--_background: var(
|
|
98
|
-
--chip-background-color,
|
|
99
|
-
var(--eun-color-grey-800, #071621)
|
|
100
|
-
);
|
|
101
|
-
--_backgroundFilled: var(
|
|
102
|
-
--chip-background-color,
|
|
103
|
-
var(--eun-color-grey-800, #071621)
|
|
104
|
-
);
|
|
105
|
-
--_border-color: var(
|
|
106
|
-
--chip-border-color,
|
|
107
|
-
var(--eun-color-grey-800, #071621)
|
|
108
|
-
);
|
|
109
|
-
--_color: var(--chip-color, var(--eun-color-grey-0, #ffffff));
|
|
110
|
-
}
|
|
111
|
-
:host([color="dark"][appearance="outline"]:not([severity])) {
|
|
112
|
-
--_color: var(--chip-color, var(--eun-color-grey-800, #071621));
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
:host([severity="info"]) {
|
|
116
|
-
--_background: var(
|
|
117
|
-
--chip-background-color,
|
|
118
|
-
var(--eun-color-info-30, #f0f7fa)
|
|
119
|
-
);
|
|
120
|
-
--_backgroundFilled: var(
|
|
121
|
-
--chip-background-color,
|
|
122
|
-
var(--eun-color-info-100, #097faf)
|
|
123
|
-
);
|
|
124
|
-
--_border-color: var(
|
|
125
|
-
--chip-border-color,
|
|
126
|
-
var(--eun-color-info-100, #097faf)
|
|
127
|
-
);
|
|
128
|
-
--_color: var(--chip-color, var(--eun-color-info-100, #097faf));
|
|
129
|
-
}
|
|
130
|
-
:host([severity="success"]) {
|
|
131
|
-
--_background: var(
|
|
132
|
-
--chip-background-color,
|
|
133
|
-
var(--eun-color-success-30, #f1f9f4)
|
|
134
|
-
);
|
|
135
|
-
--_backgroundFilled: var(
|
|
136
|
-
--chip-background-color,
|
|
137
|
-
var(--eun-color-success-100, #1a9948)
|
|
138
|
-
);
|
|
139
|
-
--_border-color: var(
|
|
140
|
-
--chip-border-color,
|
|
141
|
-
var(--eun-color-success-100, #1a9948)
|
|
142
|
-
);
|
|
143
|
-
--_color: var(--chip-color, var(--eun-color-success-100, #1a9948));
|
|
144
|
-
}
|
|
145
|
-
:host([severity="warning"]) {
|
|
146
|
-
--_background: var(
|
|
147
|
-
--chip-background-color,
|
|
148
|
-
var(--eun-color-warning-30, #fcf5f0)
|
|
149
|
-
);
|
|
150
|
-
--_backgroundFilled: var(
|
|
151
|
-
--chip-background-color,
|
|
152
|
-
var(--eun-color-warning-100, #c85207)
|
|
153
|
-
);
|
|
154
|
-
--_border-color: var(
|
|
155
|
-
--chip-border-color,
|
|
156
|
-
var(--eun-color-warning-100, #c85207)
|
|
157
|
-
);
|
|
158
|
-
--_color: var(--chip-color, var(--eun-color-warning-100, #c85207));
|
|
159
|
-
}
|
|
160
|
-
:host([severity="critical"]) {
|
|
161
|
-
--_background: var(
|
|
162
|
-
--chip-background-color,
|
|
163
|
-
var(--eun-color-critical-30, #faf0f1)
|
|
164
|
-
);
|
|
165
|
-
--_backgroundFilled: var(
|
|
166
|
-
--chip-background-color,
|
|
167
|
-
var(--eun-color-critical-100, #aa0014)
|
|
168
|
-
);
|
|
169
|
-
--_border-color: var(
|
|
170
|
-
--chip-border-color,
|
|
171
|
-
var(--eun-color-critical-100, #aa0014)
|
|
172
|
-
);
|
|
173
|
-
--_color: var(--chip-color, var(--eun-color-critical-100, #aa0014));
|
|
174
|
-
}
|
|
175
|
-
:host([severity="neutral"]) {
|
|
176
|
-
--_background: var(
|
|
177
|
-
--chip-background-color,
|
|
178
|
-
var(--eun-color-grey-200, #ecedf0)
|
|
179
|
-
);
|
|
180
|
-
--_backgroundFilled: var(
|
|
181
|
-
--chip-background-color,
|
|
182
|
-
var(--eun-color-grey-700, #484e61)
|
|
183
|
-
);
|
|
184
|
-
--_border-color: var(
|
|
185
|
-
--chip-border-color,
|
|
186
|
-
var(--eun-color-grey-700, #484e61)
|
|
187
|
-
);
|
|
188
|
-
--_color: var(--chip-color, var(--eun-color-grey-700, #484e61));
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
:host([appearance="default"]) #chip {
|
|
192
|
-
background: var(--_background);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
:host([appearance="fill"]) #chip {
|
|
196
|
-
--_color: var(--chip-color, #fff);
|
|
197
|
-
background: var(--_backgroundFilled);
|
|
198
|
-
color: var(--_color);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
:host([appearance="outline"]) #chip {
|
|
202
|
-
background: var(--eun-surface-color, #ffffff);
|
|
203
|
-
border: var(--chip-border-width, var(--eun-borderWidth-s, 1px)) solid
|
|
204
|
-
var(--_border-color);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
:host([appearance="flat"]) #chip {
|
|
208
|
-
--_color: var(--chip-color, var(--eun-text-secondary, #484e61));
|
|
209
|
-
background: var(--eun-content-hover, #edeff0);
|
|
210
|
-
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);
|
|
211
37
|
}
|
|
212
38
|
|
|
213
39
|
:host([size="s"]) {
|
|
214
40
|
--_height: 26px;
|
|
215
41
|
--_paddingInline: 4px;
|
|
216
|
-
--_fontSize: var(--eun-
|
|
42
|
+
--_fontSize: var(--eun-font-size-xs, 12px);
|
|
217
43
|
--_gap: 4px;
|
|
218
44
|
--_avatarFontSize: 10px;
|
|
219
45
|
--_avatarInsetSize: 16px;
|
|
@@ -222,7 +48,7 @@ const base = css `
|
|
|
222
48
|
:host(:not([size])) {
|
|
223
49
|
--_height: 30px;
|
|
224
50
|
--_paddingInline: 6px;
|
|
225
|
-
--_fontSize: var(--eun-
|
|
51
|
+
--_fontSize: var(--eun-font-size-s, 14px);
|
|
226
52
|
--_gap: 6px;
|
|
227
53
|
--_avatarFontSize: 11px;
|
|
228
54
|
--_avatarInsetSize: 20px;
|
|
@@ -230,17 +56,17 @@ const base = css `
|
|
|
230
56
|
:host([size="l"]) {
|
|
231
57
|
--_height: 38px;
|
|
232
58
|
--_paddingInline: 6px;
|
|
233
|
-
--_fontSize: var(--eun-
|
|
59
|
+
--_fontSize: var(--eun-font-size-m, 16px);
|
|
234
60
|
--_gap: 8px;
|
|
235
61
|
--_avatarFontSize: 12px;
|
|
236
62
|
--_avatarInsetSize: 24px;
|
|
237
63
|
}
|
|
238
64
|
|
|
239
|
-
:host
|
|
240
|
-
--
|
|
65
|
+
:host {
|
|
66
|
+
--_radius: var(--eun-border-radius-s, 5px);
|
|
241
67
|
}
|
|
242
|
-
:host(
|
|
243
|
-
--
|
|
68
|
+
:host([rounded]) {
|
|
69
|
+
--_radius: var(--eun-border-radius-xl, 999px);
|
|
244
70
|
}
|
|
245
71
|
|
|
246
72
|
#chip {
|
|
@@ -249,20 +75,30 @@ const base = css `
|
|
|
249
75
|
box-sizing: border-box;
|
|
250
76
|
max-width: 100%;
|
|
251
77
|
height: var(--_height);
|
|
252
|
-
border-
|
|
253
|
-
|
|
254
|
-
|
|
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)));
|
|
255
87
|
font-size: var(--_fontSize);
|
|
256
88
|
gap: var(--chip-gap, var(--_gap));
|
|
257
|
-
color: var(--
|
|
258
|
-
font-weight: var(--eun-
|
|
89
|
+
color: var(--chip-color, var(--_fg));
|
|
90
|
+
font-weight: var(--eun-font-weight-m, 500);
|
|
259
91
|
box-shadow: var(--chip-box-shadow, none);
|
|
260
|
-
--
|
|
92
|
+
--_textColor: var(--chip-color, var(--_fg));
|
|
93
|
+
--_leadingIconColor: var(--chip-icon-color, var(--_textColor));
|
|
261
94
|
}
|
|
262
95
|
|
|
263
96
|
#chip[data-leading="icon"],
|
|
264
97
|
#chip[data-leading="none"] {
|
|
265
|
-
padding-inline-start:
|
|
98
|
+
padding-inline-start: max(
|
|
99
|
+
0px,
|
|
100
|
+
calc(var(--_paddingInline) + 4px - var(--_borderWidth))
|
|
101
|
+
);
|
|
266
102
|
}
|
|
267
103
|
|
|
268
104
|
#chip[data-leading="none"] slot[name="icon"] {
|
|
@@ -288,12 +124,12 @@ const base = css `
|
|
|
288
124
|
width: var(--chip-avatar-size, var(--_avatarInsetSize, 20px));
|
|
289
125
|
height: var(--chip-avatar-size, var(--_avatarInsetSize, 20px));
|
|
290
126
|
font-size: var(--_avatarFontSize);
|
|
291
|
-
font-weight: var(--eun-
|
|
127
|
+
font-weight: var(--eun-font-weight-l, 700);
|
|
292
128
|
line-height: 1;
|
|
293
|
-
color: var(--chip-avatar-color, #fff);
|
|
129
|
+
color: var(--chip-avatar-color, var(--_onSolid, #fff));
|
|
294
130
|
background: var(
|
|
295
131
|
--chip-avatar-background,
|
|
296
|
-
var(--
|
|
132
|
+
var(--_solid, var(--eun-color-grey-500, #8d93aa))
|
|
297
133
|
);
|
|
298
134
|
overflow: hidden;
|
|
299
135
|
}
|
|
@@ -303,7 +139,7 @@ const base = css `
|
|
|
303
139
|
}
|
|
304
140
|
|
|
305
141
|
#avatar[data-shape="square"] {
|
|
306
|
-
border-radius: var(--eun-
|
|
142
|
+
border-radius: var(--eun-border-radius-s, 5px);
|
|
307
143
|
}
|
|
308
144
|
|
|
309
145
|
#avatar img {
|
|
@@ -320,7 +156,7 @@ const base = css `
|
|
|
320
156
|
|
|
321
157
|
#delete {
|
|
322
158
|
flex-shrink: 0;
|
|
323
|
-
--button-text: var(--
|
|
159
|
+
--button-text: var(--_textColor);
|
|
324
160
|
--button-focus-outline: var(
|
|
325
161
|
--chip-delete-focus-outline-color,
|
|
326
162
|
var(--eun-color-primary-500, #3d6fff)
|
|
@@ -331,4 +167,4 @@ const base = css `
|
|
|
331
167
|
opacity: 0.6;
|
|
332
168
|
}
|
|
333
169
|
`;
|
|
334
|
-
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);
|
|
@@ -25,7 +25,7 @@ export const iconStyles = css `
|
|
|
25
25
|
fill: var(--_color);
|
|
26
26
|
color: var(--_color);
|
|
27
27
|
background-color: var(--_background);
|
|
28
|
-
border-radius: var(--icon-border-radius, var(--eun-
|
|
28
|
+
border-radius: var(--icon-border-radius, var(--eun-border-radius-m, 8px));
|
|
29
29
|
text-decoration: none;
|
|
30
30
|
display: inline-block;
|
|
31
31
|
user-select: none;
|