@eunomia/elements 1.0.0-beta.6 → 1.0.0-beta.8
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-KDN4O5W2.js → chunk-32L2QYWQ.js} +5 -5
- package/dist/cdn/components/chunks/{chunk-JYIIWN2P.js → chunk-36KLGY6U.js} +8 -8
- package/dist/cdn/components/chunks/chunk-3BMACIDO.js +1 -0
- package/dist/cdn/components/chunks/{chunk-2Y2EU2CI.js → chunk-3UUZM7X2.js} +1 -1
- package/dist/cdn/components/chunks/chunk-55PUDL7D.js +109 -0
- package/dist/cdn/components/chunks/chunk-5LA5DQMP.js +1 -0
- package/dist/cdn/components/chunks/chunk-5LXGJVJR.js +1 -0
- package/dist/cdn/components/chunks/{chunk-ZKZV2YG5.js → chunk-5XPOGBPL.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-LMVW522V.js → chunk-62RLISRD.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-PMPSJG5V.js → chunk-6FYW5TQU.js} +3 -3
- package/dist/cdn/components/chunks/chunk-6TIEBY34.js +1 -0
- package/dist/cdn/components/chunks/{chunk-MOMYII3P.js → chunk-AH2SKZ7T.js} +14 -1
- package/dist/cdn/components/chunks/chunk-AK2DIJX7.js +1 -0
- package/dist/cdn/components/chunks/chunk-B5XMGWM7.js +10 -0
- package/dist/cdn/components/chunks/chunk-GVS6IUKC.js +1 -0
- package/dist/cdn/components/chunks/chunk-GWLD2I3P.js +8 -0
- package/dist/cdn/components/chunks/{chunk-UDVB4LAE.js → chunk-I4ERDXSM.js} +5 -3
- package/dist/cdn/components/chunks/{chunk-QZ5SHR3I.js → chunk-J3SZBXM6.js} +2 -2
- package/dist/cdn/components/chunks/chunk-JAGZL7JH.js +1 -0
- package/dist/cdn/components/chunks/{chunk-VYFR364B.js → chunk-LD35BFNK.js} +18 -17
- package/dist/cdn/components/chunks/{chunk-XDPRWUKN.js → chunk-MQQJ6DID.js} +1 -1
- package/dist/cdn/components/chunks/chunk-P6LGU3FT.js +1 -0
- package/dist/cdn/components/chunks/chunk-QL5GSW2A.js +1 -0
- package/dist/cdn/components/chunks/{chunk-UYZR4JXZ.js → chunk-QSZO4GIH.js} +45 -9
- package/dist/cdn/components/chunks/{chunk-7KKWYPHY.js → chunk-QXQ25SQS.js} +21 -19
- package/dist/cdn/components/chunks/{chunk-SZYEBMG6.js → chunk-QYB6Z6FG.js} +5 -5
- package/dist/cdn/components/chunks/{chunk-RIFF2D2F.js → chunk-RGC3I6MK.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-L2ADCEN7.js → chunk-SVGWCKWT.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-N6ZW5CDN.js → chunk-TCSB2MLU.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-MQQ4BGVJ.js → chunk-TFTRCIIK.js} +7 -6
- package/dist/cdn/components/chunks/chunk-TLBXTBMM.js +46 -0
- package/dist/cdn/components/chunks/chunk-UVHVQRPT.js +1 -0
- package/dist/cdn/components/chunks/chunk-WIUERJII.js +1 -0
- package/dist/cdn/components/chunks/chunk-WW4BTWMH.js +1 -0
- package/dist/cdn/components/eun-alert.js +13 -6
- package/dist/cdn/components/eun-animate.js +6 -6
- package/dist/cdn/components/eun-badge.js +1 -1
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-calendar.js +2 -2
- package/dist/cdn/components/eun-card.js +4 -4
- package/dist/cdn/components/eun-carousel.js +26 -22
- package/dist/cdn/components/eun-check-card.js +1 -1
- package/dist/cdn/components/eun-checkbox-list.js +11 -8
- package/dist/cdn/components/eun-checkbox.js +1 -1
- package/dist/cdn/components/eun-chip.js +17 -11
- package/dist/cdn/components/eun-collapse.js +1 -1
- package/dist/cdn/components/eun-color-picker.js +74 -69
- package/dist/cdn/components/eun-counter.js +16 -14
- package/dist/cdn/components/eun-date-picker.js +67 -63
- package/dist/cdn/components/eun-description-list.js +2 -2
- package/dist/cdn/components/eun-divider.js +3 -3
- package/dist/cdn/components/eun-drawer.js +21 -22
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-dropdown-item.js +3 -3
- package/dist/cdn/components/eun-fab.js +2 -2
- package/dist/cdn/components/eun-icon.js +1 -1
- package/dist/cdn/components/eun-image-card.js +1 -1
- package/dist/cdn/components/eun-image-carousel.js +10 -10
- package/dist/cdn/components/eun-infinite-list.js +1 -1
- package/dist/cdn/components/eun-input-file.js +21 -21
- package/dist/cdn/components/eun-input-phone.js +16 -12
- package/dist/cdn/components/eun-input.js +1 -1
- package/dist/cdn/components/eun-link.js +59 -13
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +33 -23
- package/dist/cdn/components/eun-pagination.js +16 -16
- package/dist/cdn/components/eun-password-strength.js +14 -10
- package/dist/cdn/components/eun-radio-card.js +1 -1
- package/dist/cdn/components/eun-radio-list.js +11 -8
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-rating.js +276 -0
- package/dist/cdn/components/eun-scheduler-event-editor.js +11 -11
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +28 -28
- package/dist/cdn/components/eun-search.js +36 -32
- package/dist/cdn/components/eun-select.js +27 -27
- package/dist/cdn/components/eun-sidebar.js +73 -26
- package/dist/cdn/components/eun-skeleton.js +1 -1
- package/dist/cdn/components/eun-slider.js +3 -3
- package/dist/cdn/components/eun-sliding-card.js +1 -1
- package/dist/cdn/components/eun-step.js +5 -4
- package/dist/cdn/components/eun-stepper.js +30 -30
- package/dist/cdn/components/eun-switch.js +1 -1
- package/dist/cdn/components/eun-tab-group.js +4 -4
- 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.js +2 -2
- package/dist/cdn/components/eun-tag.js +3 -3
- package/dist/cdn/components/eun-textarea.js +36 -28
- package/dist/cdn/components/eun-time-picker.js +31 -28
- package/dist/cdn/components/eun-toast.js +24 -15
- package/dist/cdn/components/eun-toggle-group.js +75 -37
- package/dist/cdn/components/eun-toggle-item.js +9 -9
- package/dist/cdn/components/eun-toggle.js +2 -2
- package/dist/cdn/components/eun-toolbar.js +22 -22
- package/dist/cdn/components/eun-tooltip.js +6 -6
- package/dist/cdn/styles/eunomia-themes.css +1 -1
- package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +6 -2
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
- package/dist/components/action/button/button.d.ts +4 -3
- package/dist/components/action/button/button.js +6 -9
- package/dist/components/action/button/button.styles.js +13 -8
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +4 -6
- package/dist/components/action/dropdown-button/dropdown-button.js +16 -13
- package/dist/components/action/dropdown-button/dropdown-item.d.ts +10 -2
- package/dist/components/action/dropdown-button/dropdown-item.js +24 -9
- package/dist/components/action/link/link.d.ts +10 -1
- package/dist/components/action/link/link.js +13 -1
- package/dist/components/action/link/link.styles.js +50 -3
- package/dist/components/action/toggle/toggle-group.d.ts +12 -2
- package/dist/components/action/toggle/toggle-group.js +18 -3
- package/dist/components/action/toggle/toggle-group.styles.js +58 -20
- package/dist/components/action/toggle/toggle-item.js +1 -3
- package/dist/components/action/toggle/toggle-item.styles.js +7 -7
- package/dist/components/action/toggle/toggle.js +1 -1
- package/dist/components/alert/alert/alert.d.ts +9 -7
- package/dist/components/alert/alert/alert.js +11 -14
- package/dist/components/alert/alert/alert.styles.js +9 -2
- package/dist/components/alert/drawer/drawer.d.ts +30 -5
- package/dist/components/alert/drawer/drawer.js +48 -13
- package/dist/components/alert/drawer/drawer.styles.js +7 -7
- package/dist/components/alert/modal/modal.d.ts +35 -10
- package/dist/components/alert/modal/modal.js +55 -28
- package/dist/components/alert/modal/modal.styles.js +17 -6
- package/dist/components/alert/toast/toast.d.ts +7 -5
- package/dist/components/alert/toast/toast.js +12 -15
- package/dist/components/alert/toast/toast.styles.js +18 -9
- package/dist/components/content/badge/badge.js +2 -2
- package/dist/components/content/card/card.js +1 -1
- package/dist/components/content/card/card.styles.js +2 -2
- package/dist/components/content/chip/chip.d.ts +4 -4
- package/dist/components/content/chip/chip.js +11 -10
- package/dist/components/content/chip/chip.styles.js +9 -3
- package/dist/components/content/description-list/description-list.js +3 -3
- package/dist/components/content/icon/icon.d.ts +3 -0
- package/dist/components/content/icon/icon.js +3 -0
- package/dist/components/content/icon/icon.style.d.ts +2 -0
- package/dist/components/content/icon/icon.style.js +4 -0
- package/dist/components/content/image-carousel/image-carousel.d.ts +12 -12
- package/dist/components/content/image-carousel/image-carousel.js +29 -28
- package/dist/components/content/password-strength/password-strength.d.ts +21 -6
- package/dist/components/content/password-strength/password-strength.js +37 -16
- package/dist/components/content/password-strength/password-strength.styles.js +4 -0
- package/dist/components/content/tag/tag.js +2 -2
- package/dist/components/content/tooltip/tooltip.d.ts +16 -9
- package/dist/components/content/tooltip/tooltip.js +31 -15
- package/dist/components/content/tooltip/tooltip.styles.js +1 -1
- package/dist/components/form/checkbox/check-card.d.ts +1 -0
- package/dist/components/form/checkbox/check-card.js +1 -0
- package/dist/components/form/checkbox/checkbox-list.d.ts +17 -0
- package/dist/components/form/checkbox/checkbox-list.js +39 -10
- package/dist/components/form/checkbox/checkbox.d.ts +1 -0
- package/dist/components/form/checkbox/checkbox.js +3 -1
- package/dist/components/form/checkbox/checkbox.styles.js +3 -2
- package/dist/components/form/color-picker/color-picker.d.ts +47 -28
- package/dist/components/form/color-picker/color-picker.js +73 -51
- package/dist/components/form/color-picker/color-picker.styles.js +14 -1
- package/dist/components/form/counter/counter.d.ts +24 -18
- package/dist/components/form/counter/counter.js +61 -61
- package/dist/components/form/counter/counter.styles.js +6 -4
- package/dist/components/form/date-picker/date-picker.d.ts +33 -7
- package/dist/components/form/date-picker/date-picker.js +82 -56
- package/dist/components/form/date-picker/date-picker.styles.js +9 -6
- package/dist/components/form/input/input.d.ts +43 -39
- package/dist/components/form/input/input.js +91 -110
- package/dist/components/form/input-file/input-file.d.ts +26 -13
- package/dist/components/form/input-file/input-file.js +35 -35
- package/dist/components/form/input-file/input-file.styles.js +4 -4
- package/dist/components/form/input-phone/input-phone.d.ts +28 -5
- package/dist/components/form/input-phone/input-phone.js +47 -13
- package/dist/components/form/input-phone/input-phone.styles.js +6 -3
- package/dist/components/form/radio/radio-card.d.ts +1 -0
- package/dist/components/form/radio/radio-card.js +1 -0
- package/dist/components/form/radio/radio-list.d.ts +23 -7
- package/dist/components/form/radio/radio-list.js +47 -22
- package/dist/components/form/radio/radio.d.ts +1 -0
- package/dist/components/form/radio/radio.js +1 -0
- package/dist/components/form/rating/rating.d.ts +349 -0
- package/dist/components/form/rating/rating.js +665 -0
- package/dist/components/form/rating/rating.styles.d.ts +1 -0
- package/dist/components/form/rating/rating.styles.js +213 -0
- package/dist/components/form/search/search.d.ts +72 -18
- package/dist/components/form/search/search.js +135 -72
- package/dist/components/form/search/search.styles.js +2 -0
- package/dist/components/form/select/select.d.ts +29 -10
- package/dist/components/form/select/select.js +65 -41
- package/dist/components/form/shared-styles/field.styles.js +45 -8
- package/dist/components/form/shared-styles/listbox.styles.js +15 -1
- package/dist/components/form/slider/slider.d.ts +7 -8
- package/dist/components/form/slider/slider.js +9 -12
- package/dist/components/form/switch/switch.d.ts +1 -0
- package/dist/components/form/switch/switch.js +1 -0
- package/dist/components/form/textarea/textarea.d.ts +90 -23
- package/dist/components/form/textarea/textarea.js +194 -44
- package/dist/components/form/textarea/textarea.styles.js +3 -0
- package/dist/components/form/time-picker/time-picker-columns.d.ts +2 -2
- package/dist/components/form/time-picker/time-picker-columns.js +8 -8
- package/dist/components/form/time-picker/time-picker.d.ts +30 -9
- package/dist/components/form/time-picker/time-picker.js +66 -40
- package/dist/components/form/time-picker/time-picker.styles.js +7 -5
- package/dist/components/layout/animate/animate.js +3 -2
- package/dist/components/layout/animate/animate.styles.js +2 -2
- package/dist/components/layout/divider/divider.js +1 -1
- package/dist/components/layout/divider/divider.styles.js +1 -1
- package/dist/components/loader/loader/loader.js +2 -2
- package/dist/components/loader/loader/loader.styles.js +14 -12
- package/dist/components/loader/skeleton/skeleton.js +1 -1
- package/dist/components/navigation/carousel/carousel.d.ts +32 -9
- package/dist/components/navigation/carousel/carousel.js +88 -41
- package/dist/components/navigation/carousel/carousel.styles.js +10 -6
- package/dist/components/navigation/pagination/pagination.d.ts +23 -21
- package/dist/components/navigation/pagination/pagination.js +30 -53
- package/dist/components/navigation/sidebar/sidebar.d.ts +113 -65
- package/dist/components/navigation/sidebar/sidebar.js +161 -118
- package/dist/components/navigation/sidebar/sidebar.styles.d.ts +1 -1
- package/dist/components/navigation/sidebar/sidebar.styles.js +74 -24
- package/dist/components/navigation/stepper/step.js +9 -8
- package/dist/components/navigation/stepper/stepper.d.ts +1 -3
- package/dist/components/navigation/stepper/stepper.js +15 -26
- package/dist/components/navigation/tabs/tab-group/tab-group.js +2 -2
- package/dist/components/navigation/tabs/tab-group/tab-group.styles.js +2 -2
- package/dist/components/navigation/toolbar/toolbar.d.ts +23 -13
- package/dist/components/navigation/toolbar/toolbar.js +28 -35
- package/dist/components/navigation/toolbar/toolbar.styles.js +18 -17
- package/dist/events/select.event.d.ts +3 -2
- package/dist/events/select.event.js +2 -1
- package/dist/features/scheduler/calendar/calendar.js +1 -1
- package/dist/features/scheduler/scheduler/scheduler.d.ts +7 -7
- package/dist/features/scheduler/scheduler/scheduler.js +15 -24
- package/dist/features/scheduler/scheduler-event/scheduler-event.js +3 -3
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +1 -1
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.d.ts +6 -4
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +7 -8
- package/dist/features/table/table/table.js +1 -1
- package/dist/features/table/table-action-bar/table-action-bar.js +2 -2
- package/dist/i18n/en.d.ts +68 -0
- package/dist/i18n/en.js +68 -0
- package/dist/i18n/fr.js +68 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -0
- package/dist/mixins/button.mixin.d.ts +1 -1
- package/dist/mixins/button.mixin.js +9 -6
- package/dist/mixins/check.mixin.js +11 -10
- package/dist/mixins/dialog-surface.mixin.d.ts +8 -0
- package/dist/mixins/disabled.mixin.d.ts +5 -0
- package/dist/mixins/disabled.mixin.js +21 -1
- package/dist/mixins/editable.mixin.js +28 -5
- package/dist/mixins/field-appearance.mixin.js +3 -2
- package/dist/mixins/field-size.mixin.d.ts +19 -0
- package/dist/mixins/field-size.mixin.js +33 -0
- package/dist/mixins/form.mixin.d.ts +4 -0
- package/dist/mixins/form.mixin.js +87 -13
- package/dist/mixins/localizable.mixin.d.ts +1 -1
- package/dist/mixins/localizable.mixin.js +1 -1
- package/dist/mixins/radio.mixin.js +11 -10
- package/dist/mixins/readonly.mixin.d.ts +2 -1
- package/dist/mixins/readonly.mixin.js +10 -3
- package/dist/mixins/rounded.mixin.d.ts +18 -0
- package/dist/mixins/rounded.mixin.js +32 -0
- package/dist/ssr/alert-ssr.css +187 -0
- package/dist/ssr/badge-ssr.css +67 -0
- package/dist/ssr/breadcrumb-ssr.css +41 -0
- package/dist/ssr/button-ssr.css +5 -5
- package/dist/ssr/card-ssr.css +27 -15
- package/dist/ssr/carousel-ssr.css +247 -0
- package/dist/ssr/checkbox-ssr.css +67 -0
- package/dist/ssr/chip-ssr.css +250 -0
- package/dist/ssr/collapse-ssr.css +180 -0
- package/dist/ssr/field-ssr.css +202 -0
- package/dist/ssr/icon-ssr.css +266 -0
- package/dist/ssr/image-carousel-ssr.css +34 -0
- package/dist/ssr/links-ssr.css +44 -1
- package/dist/ssr/pagination-ssr.css +4 -0
- package/dist/ssr/rating-ssr.css +254 -0
- package/dist/ssr/sidebar-ssr.css +102 -3
- package/dist/ssr/skeleton-ssr.css +63 -0
- package/dist/ssr/tabs-ssr.css +129 -0
- package/dist/ssr/toggle-group-ssr.css +233 -0
- package/dist/ssr/toolbar-ssr.css +81 -2
- package/dist/types/variant.type.d.ts +4 -1
- package/dist/utils/boolean.utils.d.ts +14 -0
- package/dist/utils/boolean.utils.js +20 -0
- package/dist/utils/dropdown-menu.utils.d.ts +1 -1
- package/dist/utils/focusable-elements.utils.d.ts +12 -0
- package/dist/utils/focusable-elements.utils.js +26 -0
- package/dist/utils/implicit-submission.utils.d.ts +18 -0
- package/dist/utils/implicit-submission.utils.js +79 -0
- package/dist/utils/input-modality.utils.d.ts +13 -0
- package/dist/utils/input-modality.utils.js +34 -0
- package/dist/utils/listbox-options.utils.d.ts +11 -0
- package/dist/utils/listbox-options.utils.js +41 -3
- package/dist/utils/theme-generator.utils.d.ts +8 -2
- package/dist/utils/theme-generator.utils.js +30 -9
- package/package.json +26 -7
- package/styles/themes/mixins/eunomia-neutrals.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +6 -2
- package/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +6 -2
- package/dist/cdn/components/chunks/chunk-4PI6RDUS.js +0 -1
- package/dist/cdn/components/chunks/chunk-6VK6SHCG.js +0 -1
- package/dist/cdn/components/chunks/chunk-A3X4KD2X.js +0 -1
- package/dist/cdn/components/chunks/chunk-BQFJR2UP.js +0 -110
- package/dist/cdn/components/chunks/chunk-G5SBDQQ3.js +0 -1
- package/dist/cdn/components/chunks/chunk-KSZRQRN4.js +0 -1
- package/dist/cdn/components/chunks/chunk-PE4DAXHQ.js +0 -3
- package/dist/cdn/components/chunks/chunk-RS7TWEMQ.js +0 -1
- package/dist/cdn/components/chunks/chunk-UDOZRIJZ.js +0 -1
- package/dist/cdn/components/chunks/chunk-VOTRXBDS.js +0 -38
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as w}from"./chunks/chunk-624VJYNA.js";import{a as d}from"./chunks/chunk-YYCEPZUN.js";import{a as z,b as P}from"./chunks/chunk-BKZGTCMF.js";import{a as u}from"./chunks/chunk-PPCHQG7P.js";import{a as g}from"./chunks/chunk-6TIEBY34.js";import{a as y}from"./chunks/chunk-62RLISRD.js";import"./chunks/chunk-QL5GSW2A.js";import{a as r,f as m,g as b,h as f,j as a,k as h,l as c,p as s,r as l,u as x}from"./chunks/chunk-YITWLCD3.js";var _=f`
|
|
2
2
|
:host {
|
|
3
3
|
--_width: var(--sidebar-width, 280px);
|
|
4
4
|
--_miniWidth: var(--sidebar-mini-width, 64px);
|
|
@@ -8,6 +8,14 @@ import{a as p}from"./chunks/chunk-YYCEPZUN.js";import{a as m}from"./chunks/chunk
|
|
|
8
8
|
--sidebar-border-color,
|
|
9
9
|
var(--eun-border-color, #dee0e7)
|
|
10
10
|
);
|
|
11
|
+
--_toggleColor: var(
|
|
12
|
+
--sidebar-toggle-color,
|
|
13
|
+
var(--eun-text-secondary, #484e61)
|
|
14
|
+
);
|
|
15
|
+
--_toggleBackgroundHover: var(
|
|
16
|
+
--sidebar-toggle-background-hover,
|
|
17
|
+
var(--eun-content-hover, #edeff0)
|
|
18
|
+
);
|
|
11
19
|
--_paddingBlock: var(
|
|
12
20
|
--sidebar-padding,
|
|
13
21
|
var(--sidebar-padding-block, var(--eun-space-m, 16px))
|
|
@@ -34,22 +42,37 @@ import{a as p}from"./chunks/chunk-YYCEPZUN.js";import{a as m}from"./chunks/chunk
|
|
|
34
42
|
:host([dragging]) {
|
|
35
43
|
transition: none;
|
|
36
44
|
}
|
|
45
|
+
:host([theme="dark"]) {
|
|
46
|
+
--_background: var(
|
|
47
|
+
--sidebar-background,
|
|
48
|
+
var(--eun-surface-inverse, #0b1620)
|
|
49
|
+
);
|
|
50
|
+
--_color: var(--sidebar-color, var(--eun-text-on-inverse, #f5f7fa));
|
|
51
|
+
--_borderColor: var(
|
|
52
|
+
--sidebar-border-color,
|
|
53
|
+
color-mix(in srgb, var(--_color) 16%, transparent)
|
|
54
|
+
);
|
|
55
|
+
--_toggleColor: var(
|
|
56
|
+
--sidebar-toggle-color,
|
|
57
|
+
color-mix(in srgb, var(--_color) 75%, transparent)
|
|
58
|
+
);
|
|
59
|
+
--_toggleBackgroundHover: var(
|
|
60
|
+
--sidebar-toggle-background-hover,
|
|
61
|
+
color-mix(in srgb, var(--_color) 12%, transparent)
|
|
62
|
+
);
|
|
63
|
+
}
|
|
37
64
|
:host([position="end"]) {
|
|
38
65
|
border-inline-end: none;
|
|
39
66
|
border-inline-start: var(--eun-border-width-s, 1px) solid
|
|
40
67
|
var(--_borderColor);
|
|
41
68
|
}
|
|
42
|
-
:host([collapsed][collapse-mode="mini"]) {
|
|
69
|
+
:host([collapsed]:is([collapse-mode="mini"], :not([collapse-mode]))) {
|
|
43
70
|
--_width: var(--_miniWidth);
|
|
44
71
|
}
|
|
45
72
|
:host([collapsed][collapse-mode="hidden"]) {
|
|
46
73
|
--_width: 0px;
|
|
47
74
|
border-color: transparent;
|
|
48
75
|
}
|
|
49
|
-
:host([dragged-hidden]) {
|
|
50
|
-
--_width: 0px !important;
|
|
51
|
-
border-color: transparent !important;
|
|
52
|
-
}
|
|
53
76
|
|
|
54
77
|
#surface {
|
|
55
78
|
box-sizing: border-box;
|
|
@@ -101,20 +124,20 @@ import{a as p}from"./chunks/chunk-YYCEPZUN.js";import{a as m}from"./chunks/chunk
|
|
|
101
124
|
inset-inline-end: -4px;
|
|
102
125
|
z-index: 0;
|
|
103
126
|
width: 8px;
|
|
104
|
-
cursor: ew-resize;
|
|
105
127
|
touch-action: none;
|
|
106
128
|
background: transparent;
|
|
107
|
-
transition: background-color var(--eun-duration-s, 150ms)
|
|
108
|
-
var(--eun-easing-default, ease);
|
|
109
129
|
}
|
|
110
130
|
:host([position="end"]) #resize-handle {
|
|
111
131
|
inset-inline-end: auto;
|
|
112
132
|
inset-inline-start: -4px;
|
|
113
133
|
}
|
|
114
|
-
#resize-handle
|
|
134
|
+
#resize-handle.armed,
|
|
115
135
|
#resize-handle:focus-visible {
|
|
136
|
+
cursor: ew-resize;
|
|
116
137
|
background: var(--eun-color-primary-500, #3d6fff);
|
|
117
138
|
opacity: 0.35;
|
|
139
|
+
transition: background-color var(--eun-duration-s, 150ms)
|
|
140
|
+
var(--eun-easing-default, ease);
|
|
118
141
|
}
|
|
119
142
|
#resize-handle:focus-visible {
|
|
120
143
|
outline: none;
|
|
@@ -138,17 +161,25 @@ import{a as p}from"./chunks/chunk-YYCEPZUN.js";import{a as m}from"./chunks/chunk
|
|
|
138
161
|
background: var(--_background);
|
|
139
162
|
border: var(--eun-border-width-s, 1px) solid var(--_borderColor);
|
|
140
163
|
border-radius: var(--eun-border-radius-xl, 999px);
|
|
141
|
-
color: var(--
|
|
164
|
+
color: var(--_toggleColor);
|
|
142
165
|
cursor: pointer;
|
|
143
|
-
|
|
144
|
-
|
|
166
|
+
outline: 2px solid transparent;
|
|
167
|
+
transition:
|
|
168
|
+
background-color var(--eun-duration-s, 150ms)
|
|
169
|
+
var(--eun-easing-default, ease),
|
|
170
|
+
outline var(--eun-duration-m, 200ms) var(--eun-easing-out, ease-out);
|
|
145
171
|
}
|
|
146
172
|
:host([position="end"]) #collapse-toggle:not(.inline) {
|
|
147
173
|
inset-inline-end: auto;
|
|
148
174
|
inset-inline-start: -14px;
|
|
149
175
|
}
|
|
150
176
|
#collapse-toggle:not(.inline):hover {
|
|
151
|
-
background:
|
|
177
|
+
background:
|
|
178
|
+
linear-gradient(
|
|
179
|
+
var(--_toggleBackgroundHover),
|
|
180
|
+
var(--_toggleBackgroundHover)
|
|
181
|
+
),
|
|
182
|
+
var(--_background);
|
|
152
183
|
}
|
|
153
184
|
|
|
154
185
|
#collapse-toggle.inline {
|
|
@@ -162,46 +193,59 @@ import{a as p}from"./chunks/chunk-YYCEPZUN.js";import{a as m}from"./chunks/chunk
|
|
|
162
193
|
border-top: var(--eun-border-width-s, 1px) solid var(--_borderColor);
|
|
163
194
|
border-radius: 0;
|
|
164
195
|
background: transparent;
|
|
165
|
-
color: var(--
|
|
196
|
+
color: var(--_toggleColor);
|
|
166
197
|
font: inherit;
|
|
167
198
|
font-size: var(--eun-font-size-s, 14px);
|
|
168
199
|
text-align: start;
|
|
169
200
|
cursor: pointer;
|
|
170
|
-
|
|
171
|
-
|
|
201
|
+
outline: 2px solid transparent;
|
|
202
|
+
transition:
|
|
203
|
+
background-color var(--eun-duration-s, 150ms)
|
|
204
|
+
var(--eun-easing-default, ease),
|
|
205
|
+
outline var(--eun-duration-m, 200ms) var(--eun-easing-out, ease-out);
|
|
172
206
|
}
|
|
173
207
|
#collapse-toggle.inline:hover {
|
|
174
|
-
background: var(--
|
|
208
|
+
background: var(--_toggleBackgroundHover);
|
|
175
209
|
}
|
|
176
210
|
#collapse-toggle-label {
|
|
177
211
|
overflow: hidden;
|
|
178
212
|
white-space: nowrap;
|
|
179
213
|
text-overflow: ellipsis;
|
|
180
214
|
}
|
|
181
|
-
:host([collapsed][collapse-mode="mini"]
|
|
215
|
+
:host([collapsed]:is([collapse-mode="mini"], :not([collapse-mode])))
|
|
216
|
+
#collapse-toggle.inline {
|
|
182
217
|
justify-content: center;
|
|
183
218
|
}
|
|
184
|
-
:host([collapsed][collapse-mode="mini"]
|
|
219
|
+
:host([collapsed]:is([collapse-mode="mini"], :not([collapse-mode])))
|
|
220
|
+
#collapse-toggle-label {
|
|
185
221
|
display: none;
|
|
186
222
|
}
|
|
187
223
|
|
|
188
224
|
#collapse-toggle:focus-visible {
|
|
189
|
-
outline:
|
|
225
|
+
outline-color: var(--eun-color-primary-500, #3d6fff);
|
|
190
226
|
outline-offset: 1px;
|
|
191
227
|
}
|
|
228
|
+
#collapse-toggle.inline:focus-visible {
|
|
229
|
+
outline-offset: -2px;
|
|
230
|
+
outline-color: var(--eun-color-primary-500, #3d6fff);
|
|
231
|
+
border-start-start-radius: var(--eun-border-radius-m, 8px);
|
|
232
|
+
border-start-end-radius: var(--eun-border-radius-m, 8px);
|
|
233
|
+
background: var(--_toggleBackgroundHover);
|
|
234
|
+
}
|
|
192
235
|
|
|
193
236
|
@media (prefers-reduced-motion: reduce) {
|
|
194
237
|
:host {
|
|
195
238
|
transition: none;
|
|
196
239
|
}
|
|
197
240
|
}
|
|
198
|
-
`,
|
|
241
|
+
`,T=b(Object.keys(z).map(p=>`@media ${P(p)} { :host([hide-below="${p}"]) { display: none; } }`).join(`
|
|
242
|
+
`)),k=[_,T];var W="eun-sidebar",t=class extends y(x){constructor(){super(...arguments);this.position="start";this.theme="light";this.collapsible=!0;this.togglePlacement="edge";this.collapseMode="mini";this.collapsed=!1;this.resizable=!0;this.dragStartWidth=0;this.lastRawWidth=0;this.dragStartCollapsed=!1;this.dragMoved=!1;this.dragging=!1;this.resizeHandleArmed=!1;this.focusWasInsideBeforeHiddenCollapse=!1;this.handleResizePointerEnter=()=>{this.disarmResizeHandle();let e=w(getComputedStyle(this).getPropertyValue("--sidebar-resize-handle-delay"))??100;if(e===0){this.resizeHandleArmed=!0;return}this.resizeHandleArmTimer=setTimeout(()=>{this.resizeHandleArmTimer=void 0,this.resizeHandleArmed=!0},e)};this.handleResizePointerLeave=()=>{this.disarmResizeHandle()};this.handleResizePointerDown=e=>{if(!(e.pointerType==="mouse"&&e.button!==0)){this.resizeHandleArmTimer!==void 0&&(clearTimeout(this.resizeHandleArmTimer),this.resizeHandleArmTimer=void 0),this.resizeHandleArmed=!0;try{this.resizeHandleEl?.setPointerCapture(e.pointerId)}catch{}this.dragStartX=e.clientX,this.dragStartWidth=this.currentWidthPx(),this.dragStartCollapsed=this.collapsed,this.lastRawWidth=this.dragStartWidth,this.dragMoved=!1}};this.handleResizePointerMove=e=>{if(this.dragStartX===void 0)return;this.dragging=!0,this.dragMoved=!0;let o=e.clientX-this.dragStartX,i=this.position==="start"?o:-o;this.lastRawWidth=this.dragStartWidth+i,this.applyWidth(this.lastRawWidth,this.collapseMode==="hidden"?0:this.miniWidthPx())};this.handleResizePointerUp=e=>{if(this.dragStartX!==void 0){try{this.resizeHandleEl?.releasePointerCapture(e.pointerId)}catch{}this.dragStartX=void 0,this.dragging=!1,this.dragMoved&&this.settleWidth(this.lastRawWidth,this.dragStartCollapsed)}};this.handleResizeKeydown=e=>{let i;switch(e.key){case"ArrowLeft":i=this.currentWidthPx()+(this.position==="start"?-16:16);break;case"ArrowRight":i=this.currentWidthPx()+(this.position==="start"?16:-16);break;case"Home":i=this.miniWidthPx();break;case"End":i=this.maxWidthPx();break;default:return}e.preventDefault();let n=this.collapsed;this.applyWidth(i),this.settleCollapsedState(i,n)}}willUpdate(e){super.willUpdate(e),e.has("collapsed")&&this.collapsed&&this.collapseMode==="hidden"&&(this.focusWasInsideBeforeHiddenCollapse=!!(document.activeElement&&this.contains(document.activeElement)))}updated(e){super.updated(e),e.has("collapsed")&&this.collapsed&&this.collapseMode==="hidden"&&this.focusWasInsideBeforeHiddenCollapse&&(this.focusWasInsideBeforeHiddenCollapse=!1,this.collapseToggleEl?.focus())}disconnectedCallback(){super.disconnectedCallback(),this.disarmResizeHandle()}collapse(){this.setCollapsed(!0)}expand(){this.setCollapsed(!1)}toggleCollapse(){this.setCollapsed(!this.collapsed)}setCollapsed(e){this.collapsed!==e&&(this.collapsed=e,this.dispatchEvent(new d))}forgetResizedWidth(){this.style.removeProperty("--sidebar-width"),this.liveWidthPx=void 0}resolvedPx(e,o){let i=getComputedStyle(this).getPropertyValue(e).trim(),n=Number.parseFloat(i);return Number.isNaN(n)?o:n}miniWidthPx(){return this.resolvedPx("--sidebar-mini-width",64)}maxWidthPx(){return this.resolvedPx("--sidebar-max-width",480)}currentWidthPx(){return this.collapsed&&this.collapseMode==="hidden"?0:this.collapsed&&this.collapseMode==="mini"?this.miniWidthPx():this.liveWidthPx??this.resolvedPx("--sidebar-width",280)}applyWidth(e,o=this.miniWidthPx()){let i=Math.min(Math.max(e,o),this.maxWidthPx());this.collapsed=!1,this.style.setProperty("--sidebar-width",`${i}px`),this.liveWidthPx=i}settleCollapsedState(e,o){let i=this.collapseMode==="mini"&&e<=this.miniWidthPx();i&&this.forgetResizedWidth(),this.collapsed=i,i!==o&&this.dispatchEvent(new d)}settleWidth(e,o){let i=this.miniWidthPx(),n=e<i;if(n)this.forgetResizedWidth();else{let v=Math.min(e,this.maxWidthPx());this.style.setProperty("--sidebar-width",`${v}px`),this.liveWidthPx=v}this.collapsed=n,n!==o&&this.dispatchEvent(new d)}disarmResizeHandle(){this.resizeHandleArmTimer!==void 0&&(clearTimeout(this.resizeHandleArmTimer),this.resizeHandleArmTimer=void 0),this.resizeHandleArmed=!1}collapseToggleIcon(){return(this.position==="start"?!this.collapsed:this.collapsed)?"chevron_left":"chevron_right"}surfaceAriaLabel(){return this.heading??this.ariaLabel??void 0}hasFooterContent(){return this.querySelector('[slot="footer"]')!==null}hasHeaderContent(){return!!this.heading||this.querySelector('[slot="header"]')!==null}renderHeader(){return s`
|
|
199
243
|
<div id="header">
|
|
200
244
|
<slot name="header">
|
|
201
245
|
${this.heading?s`<h2 id="heading">${this.heading}</h2>`:l}
|
|
202
246
|
</slot>
|
|
203
247
|
</div>
|
|
204
|
-
`}collapseToggleLabel(){return this.collapsed?this.
|
|
248
|
+
`}collapseToggleLabel(){return this.collapsed?this.expandLabel??this.dictionary.sidebar.expand:this.collapseLabel??this.dictionary.sidebar.collapse}renderEdgeToggle(){return s`
|
|
205
249
|
<button
|
|
206
250
|
type="button"
|
|
207
251
|
id="collapse-toggle"
|
|
@@ -226,13 +270,16 @@ import{a as p}from"./chunks/chunk-YYCEPZUN.js";import{a as m}from"./chunks/chunk
|
|
|
226
270
|
`}renderResizeHandle(){return s`
|
|
227
271
|
<div
|
|
228
272
|
id="resize-handle"
|
|
273
|
+
class=${u(this.resizeHandleArmed?"armed":void 0)}
|
|
229
274
|
role="separator"
|
|
230
275
|
aria-orientation="vertical"
|
|
231
|
-
aria-label=${this.
|
|
276
|
+
aria-label=${this.resizeLabel??this.dictionary.sidebar.resize}
|
|
232
277
|
aria-valuenow=${Math.round(this.currentWidthPx())}
|
|
233
278
|
aria-valuemin=${Math.round(this.miniWidthPx())}
|
|
234
279
|
aria-valuemax=${Math.round(this.maxWidthPx())}
|
|
235
280
|
tabindex="0"
|
|
281
|
+
@pointerenter=${this.handleResizePointerEnter}
|
|
282
|
+
@pointerleave=${this.handleResizePointerLeave}
|
|
236
283
|
@pointerdown=${this.handleResizePointerDown}
|
|
237
284
|
@pointermove=${this.handleResizePointerMove}
|
|
238
285
|
@pointerup=${this.handleResizePointerUp}
|
|
@@ -243,7 +290,7 @@ import{a as p}from"./chunks/chunk-YYCEPZUN.js";import{a as m}from"./chunks/chunk
|
|
|
243
290
|
<div
|
|
244
291
|
id="surface"
|
|
245
292
|
role="navigation"
|
|
246
|
-
aria-label=${
|
|
293
|
+
aria-label=${u(this.surfaceAriaLabel())}
|
|
247
294
|
?inert=${this.collapseMode==="hidden"&&this.collapsed}
|
|
248
295
|
>
|
|
249
296
|
${this.hasHeaderContent()?this.renderHeader():l}
|
|
@@ -259,4 +306,4 @@ import{a as p}from"./chunks/chunk-YYCEPZUN.js";import{a as m}from"./chunks/chunk
|
|
|
259
306
|
</div>
|
|
260
307
|
${this.resizable?this.renderResizeHandle():l}
|
|
261
308
|
${this.collapsible&&this.togglePlacement==="edge"?this.renderEdgeToggle():l}
|
|
262
|
-
`}};
|
|
309
|
+
`}};t.styles=k,r([a({reflect:!0,useDefault:!0})],t.prototype,"position",2),r([a({reflect:!0,attribute:"hide-below"})],t.prototype,"hideBelow",2),r([a({reflect:!0,useDefault:!0})],t.prototype,"theme",2),r([a()],t.prototype,"heading",2),r([a({converter:g})],t.prototype,"collapsible",2),r([a({reflect:!0,attribute:"toggle-placement",useDefault:!0})],t.prototype,"togglePlacement",2),r([a({reflect:!0,attribute:"collapse-mode",useDefault:!0})],t.prototype,"collapseMode",2),r([a({type:Boolean,reflect:!0})],t.prototype,"collapsed",2),r([a({attribute:"expand-label"})],t.prototype,"expandLabel",2),r([a({attribute:"collapse-label"})],t.prototype,"collapseLabel",2),r([a({converter:g})],t.prototype,"resizable",2),r([a({attribute:"resize-label"})],t.prototype,"resizeLabel",2),r([c("#resize-handle")],t.prototype,"resizeHandleEl",2),r([c("#collapse-toggle")],t.prototype,"collapseToggleEl",2),r([a({type:Boolean,reflect:!0})],t.prototype,"dragging",2),r([h()],t.prototype,"resizeHandleArmed",2),r([h()],t.prototype,"liveWidthPx",2),t=r([m(W)],t);export{t as EunomiaSidebar,W as EunomiaSidebarTagName};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"./chunks/chunk-
|
|
1
|
+
import{a,b}from"./chunks/chunk-SVGWCKWT.js";import"./chunks/chunk-22D3SRFR.js";import"./chunks/chunk-SGM2X2TC.js";import"./chunks/chunk-YITWLCD3.js";export{b as EunomiaSkeleton,a as EunomiaSkeletonTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as C}from"./chunks/chunk-BO3JOEWM.js";import{c as _,d as y,e as w,f as d}from"./chunks/chunk-
|
|
1
|
+
import{a as C}from"./chunks/chunk-BO3JOEWM.js";import{c as _,d as y,e as w,f as d}from"./chunks/chunk-TLBXTBMM.js";import{a as x}from"./chunks/chunk-YYCEPZUN.js";import{a as k}from"./chunks/chunk-3BMACIDO.js";import{a as h}from"./chunks/chunk-22D3SRFR.js";import{a as f}from"./chunks/chunk-PPCHQG7P.js";import{a as g}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js";import"./chunks/chunk-QL5GSW2A.js";import{a,f as p,h as m,j as o,k as c,l as b,p as s,r as l,u as v}from"./chunks/chunk-YITWLCD3.js";var $=m`
|
|
2
2
|
:host {
|
|
3
3
|
--_trackHeight: var(--slider-track-height, 6px);
|
|
4
4
|
--_trackColor: var(
|
|
@@ -234,7 +234,7 @@ import{a as C}from"./chunks/chunk-BO3JOEWM.js";import{c as _,d as y,e as w,f as
|
|
|
234
234
|
:host([aria-readonly="true"]) #field::-moz-range-thumb {
|
|
235
235
|
cursor: default;
|
|
236
236
|
}
|
|
237
|
-
`,M=$;var B="eun-slider",
|
|
237
|
+
`,M=$;var B="eun-slider",S=k(w(v)),F=C(y(_(S))),t=class extends F{constructor(){super(...arguments);this.min=0;this.max=100;this.step=1;this.hideTooltip=!1;this.graduated=!1;this.dragging=!1;this.hasFocus=!1;this.handleInput=e=>{this.value=Number(e.target.value),this.dispatchEvent(new x(this.value))};this.handleKeydown=e=>{this.readonly&&e.preventDefault()};this.handlePointerDown=()=>{this.disabled||this.readonly||(this.dragging=!0,window.addEventListener("pointerup",this.handlePointerUp),window.addEventListener("pointercancel",this.handlePointerUp))};this.handlePointerUp=()=>{this.dragging=!1,window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)};this.handleFocus=()=>{this.hasFocus=!0};this.handleBlur=()=>{this.hasFocus=!1}}get value(){return super.value}set value(e){super.value=e===void 0?void 0:this.clamp(e)}get defaultValue(){return super.defaultValue}set defaultValue(e){super.defaultValue=e}connectedCallback(){super.connectedCallback?.(),this.value??=this.clamp(this.defaultRangeValue)}disconnectedCallback(){window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),super.disconnectedCallback?.()}get defaultRangeValue(){return this.max<this.min?this.min:(this.min+this.max)/2}roundToStep(e){let r=(String(this.step).split(".")[1]??"").length;return r?Number(e.toFixed(r)):e}clamp(e){let r=Math.min(this.min,this.max),i=Math.max(this.min,this.max),n=Math.min(i,Math.max(r,e));if(!this.step||this.step<=0)return this.roundToStep(n);let u=Math.round((n-this.min)/this.step),z=this.min+u*this.step;return this.roundToStep(Math.min(i,Math.max(r,z)))}percentFor(e){let r=this.max-this.min;return r<=0?0:Math.min(100,Math.max(0,(e-this.min)/r*100))}formatValue(e){let r=(String(this.step).split(".")[1]??"").length;return r?e.toFixed(r):String(e)}get tickValues(){if(!this.graduated||this.max<=this.min)return[];let e=this.tickStep!==void 0&&this.tickStep>0?this.tickStep:this.step;if(!e||e<=0)return[this.min,this.max];let r=[];for(let i=this.min;i<this.max;i+=e)r.push(i);return r.push(this.max),r}get hostTabStop(){return!1}getFocusAnchor(){return this.fieldEl??void 0}focus(){super.focus?.(),this.fieldEl?.focus()}renderTicks(e){let r=this.tickValues;return r.length?s`
|
|
238
238
|
<div id="ticks" aria-hidden="true">
|
|
239
239
|
${r.map(i=>s`
|
|
240
240
|
<span
|
|
@@ -276,4 +276,4 @@ import{a as C}from"./chunks/chunk-BO3JOEWM.js";import{c as _,d as y,e as w,f as
|
|
|
276
276
|
</div>
|
|
277
277
|
${e}
|
|
278
278
|
</div>
|
|
279
|
-
`}willUpdate(e){if((e.has("min")||e.has("max")||e.has("step"))&&this.value!==void 0){let r=this.clamp(this.value);r!==this.value&&(this.value=r)}super.willUpdate(e)}};t.styles=[M,d.base,d.errorMessages,d.hintMessages],a([o({type:Number})],t.prototype,"min",2),a([o({type:Number})],t.prototype,"max",2),a([o({type:Number})],t.prototype,"step",2),a([o({type:Boolean,attribute:"hide-tooltip",reflect:!0})],t.prototype,"hideTooltip",2),a([o({type:Boolean,reflect:!0})],t.prototype,"graduated",2),a([o({type:Number,attribute:"tick-step"})],t.prototype,"tickStep",2),a([o({type:Number})],t.prototype,"value",1),a([o({attribute:"default-value",type:Number})],t.prototype,"defaultValue",1),a([
|
|
279
|
+
`}willUpdate(e){if((e.has("min")||e.has("max")||e.has("step"))&&this.value!==void 0){let r=this.clamp(this.value);r!==this.value&&(this.value=r)}super.willUpdate(e)}};t.styles=[M,d.base,d.errorMessages,d.hintMessages],a([o({type:Number})],t.prototype,"min",2),a([o({type:Number})],t.prototype,"max",2),a([o({type:Number})],t.prototype,"step",2),a([o({type:Boolean,attribute:"hide-tooltip",reflect:!0})],t.prototype,"hideTooltip",2),a([o({type:Boolean,reflect:!0})],t.prototype,"graduated",2),a([o({type:Number,attribute:"tick-step"})],t.prototype,"tickStep",2),a([o({type:Number})],t.prototype,"value",1),a([o({attribute:"default-value",type:Number})],t.prototype,"defaultValue",1),a([b("#field")],t.prototype,"fieldEl",2),a([c()],t.prototype,"dragging",2),a([c()],t.prototype,"hasFocus",2),t=a([p(B)],t);export{t as EunomiaSlider,B as EunomiaSliderTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as u,b as s}from"./chunks/chunk-
|
|
1
|
+
import{a as u,b as s}from"./chunks/chunk-RGC3I6MK.js";import"./chunks/chunk-5LXGJVJR.js";import{a as f,b as p}from"./chunks/chunk-MQQJ6DID.js";import"./chunks/chunk-5GKM5DIB.js";import{a as n}from"./chunks/chunk-PPCHQG7P.js";import{a as h}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js";import"./chunks/chunk-62RLISRD.js";import"./chunks/chunk-QL5GSW2A.js";import{a as t,f as o,h as d,j as l,k as a,p as r,u as c}from"./chunks/chunk-YITWLCD3.js";var v=d`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
position: relative;
|
|
@@ -256,7 +256,8 @@ import{a as f}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js
|
|
|
256
256
|
type="button"
|
|
257
257
|
class=${a}
|
|
258
258
|
@click=${this.handleClick}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
259
|
+
>
|
|
260
|
+
${i}${s}
|
|
261
|
+
</button>`:n=r`<button type="button" class=${a} disabled>
|
|
262
|
+
${i}${s}
|
|
263
|
+
</button>`,r`${n}<span class="connector" aria-hidden="true"></span>`}};e.styles=[v],t([o({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([o({reflect:!0,useDefault:!0})],e.prototype,"state",2),t([o({reflect:!0,useDefault:!0})],e.prototype,"status",2),t([o({type:Boolean})],e.prototype,"reachable",2),t([o({type:Number})],e.prototype,"index",2),t([o({reflect:!0,useDefault:!0})],e.prototype,"orientation",2),t([d({slot:"description"})],e.prototype,"descriptionEls",2),e=t([l(h)],e);export{e as EunomiaStep,h as EunomiaStepTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as $}from"./chunks/chunk-6TIEBY34.js";import{a as l}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js";import{a as s,f as g,h as S,j as i,n as x,p as a,r as p,u as y}from"./chunks/chunk-YITWLCD3.js";var u=class f extends Event{static{this.eventName="eunstepchange"}constructor(m){super(f.eventName,{bubbles:!0,composed:!1}),this.step=m}};var k=S`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
container-type: normal;
|
|
@@ -300,63 +300,63 @@ import{a as u}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js
|
|
|
300
300
|
var(--eun-text-disabled-color, #8d93aa)
|
|
301
301
|
);
|
|
302
302
|
}
|
|
303
|
-
`;var
|
|
304
|
-
class=${
|
|
303
|
+
`;var T="eun-stepper",o=class extends y{constructor(){super(...arguments);this.steps=[];this.activeStep=0;this.orientation="horizontal";this.variant="numbered";this.linear=!0;this.disabled=!1;this.handleSlotChange=()=>{this.syncSlottedSteps(),this.requestUpdate()}}hasSlottedSteps(){return this.children.length>0}requestStepFromChild(e){let t=this.slottedSteps.indexOf(e);t!==-1&&this.requestStep(t)}syncSlottedSteps(){this.slottedSteps.forEach((e,t)=>{e.index=t,e.orientation!==this.orientation&&(e.orientation=this.orientation);let r=this.statusOf(t,this.activeStep,e.state);e.status!==r&&(e.status=r);let n=t===this.activeStep;e.reachable=!n&&!this.disabled&&!e.disabled&&(!this.linear||t<this.activeStep)})}updated(e){super.updated(e),this.hasSlottedSteps()&&this.syncSlottedSteps()}requestStep(e){this.dispatchEvent(new u(e))}statusOf(e,t,r){return e===t?"current":e<t?r==="error"?"error":"completed":"upcoming"}renderIndicatorContent(e,t){return e==="completed"?a`<eun-icon name="check" size="16"></eun-icon>`:e==="error"?a`<eun-icon name="error" size="16"></eun-icon>`:`${t+1}`}renderSubstepRing(e){let t=this.activeSubstep??-1,r=e.length>0?Math.min(Math.max((t+1)/e.length,0),1):0,n=e[t]?.state==="error";return a`<span
|
|
304
|
+
class=${l({"substep-ring":!0,error:n})}
|
|
305
305
|
aria-hidden="true"
|
|
306
|
-
style="--_substepFraction: ${
|
|
307
|
-
></span>`}renderIndicator(e,t,
|
|
306
|
+
style="--_substepFraction: ${r}"
|
|
307
|
+
></span>`}renderIndicator(e,t,r){let n=r===this.activeStep&&!!e.substeps?.length;return a`
|
|
308
308
|
<span class="indicator" aria-hidden="true">
|
|
309
|
-
${this.renderIndicatorContent(t,
|
|
310
|
-
${
|
|
309
|
+
${this.renderIndicatorContent(t,r)}
|
|
310
|
+
${n?this.renderSubstepRing(e.substeps):p}
|
|
311
311
|
</span>
|
|
312
|
-
`}renderStep(e,t,
|
|
312
|
+
`}renderStep(e,t,r){let n=this.statusOf(t,this.activeStep,e.state),d=t===this.activeStep,w=!d&&!this.disabled&&!e.disabled&&(!this.linear||t<this.activeStep),v=this.renderIndicator(e,n,t),b=l({"step-control":!0,"has-description":!!e.description}),h=a`
|
|
313
313
|
<span class="content">
|
|
314
314
|
<span class="label">${e.label}</span>
|
|
315
|
-
${e.description?
|
|
315
|
+
${e.description?a`<span class="description">${e.description}</span>`:p}
|
|
316
316
|
</span>
|
|
317
|
-
`,
|
|
317
|
+
`,E=d&&e.substeps?.length&&this.activeSubstep!==void 0?a`<span class="sr-only"
|
|
318
318
|
>, step ${this.activeSubstep+1} of ${e.substeps.length}:
|
|
319
319
|
${e.substeps[this.activeSubstep]?.label}</span
|
|
320
|
-
>`:p,
|
|
321
|
-
>${
|
|
322
|
-
>`:
|
|
320
|
+
>`:p,c;d?c=a`<span class=${b} aria-current="step"
|
|
321
|
+
>${v}${h}${E}</span
|
|
322
|
+
>`:w?c=a`<button
|
|
323
323
|
type="button"
|
|
324
|
-
class=${
|
|
324
|
+
class=${b}
|
|
325
325
|
@click=${()=>this.requestStep(t)}
|
|
326
326
|
>
|
|
327
|
-
${
|
|
328
|
-
</button>`:
|
|
329
|
-
${
|
|
330
|
-
</button>`;let
|
|
327
|
+
${v}${h}
|
|
328
|
+
</button>`:c=a`<button type="button" class=${b} disabled>
|
|
329
|
+
${v}${h}
|
|
330
|
+
</button>`;let z=this.orientation==="vertical"&&t<r?a`<span
|
|
331
331
|
class="v-connector"
|
|
332
332
|
aria-hidden="true"
|
|
333
333
|
?data-active=${t<this.activeStep}
|
|
334
|
-
></span>`:p;return
|
|
335
|
-
${
|
|
336
|
-
</li>`}renderConnector(e){return
|
|
334
|
+
></span>`:p;return a`<li class="step" data-status=${n}>
|
|
335
|
+
${c}${z}
|
|
336
|
+
</li>`}renderConnector(e){return a`<li
|
|
337
337
|
class="connector"
|
|
338
338
|
aria-hidden="true"
|
|
339
339
|
?data-active=${e<this.activeStep}
|
|
340
|
-
></li>`}renderNumbered(){let e=this.hasSlottedSteps(),t=this.steps.length-1;return
|
|
340
|
+
></li>`}renderNumbered(){let e=this.hasSlottedSteps(),t=this.steps.length-1;return a`
|
|
341
341
|
<nav aria-label=${this.ariaLabel??"Progress"}>
|
|
342
342
|
<ol id="list" role="list">
|
|
343
|
-
${e?p:this.steps.map((
|
|
344
|
-
${this.renderStep(
|
|
345
|
-
${this.orientation!=="vertical"&&
|
|
343
|
+
${e?p:this.steps.map((r,n)=>a`
|
|
344
|
+
${this.renderStep(r,n,t)}
|
|
345
|
+
${this.orientation!=="vertical"&&n<t?this.renderConnector(n):p}
|
|
346
346
|
`)}
|
|
347
|
-
<li class=${
|
|
347
|
+
<li class=${l({"items-slot":!0,hidden:!e})}>
|
|
348
348
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
349
349
|
</li>
|
|
350
350
|
</ol>
|
|
351
351
|
</nav>
|
|
352
|
-
`}renderProgress(){let e=this.steps.length||1,t=Math.min(Math.max(this.activeStep,0),e-1),
|
|
352
|
+
`}renderProgress(){let e=this.steps.length||1,t=Math.min(Math.max(this.activeStep,0),e-1),r=this.steps[t]?.label,n=this.ariaLabel??(r?`Step ${t+1} of ${e}: ${r}`:`Step ${t+1} of ${e}`);return a`
|
|
353
353
|
<eun-progress-bar
|
|
354
354
|
min="1"
|
|
355
355
|
max=${e}
|
|
356
356
|
value=${t+1}
|
|
357
|
-
aria-label=${
|
|
357
|
+
aria-label=${n}
|
|
358
358
|
>
|
|
359
|
-
${a
|
|
359
|
+
${r?a`<span slot="top-left">${r}</span>`:p}
|
|
360
360
|
<span slot="top-right">${t+1} / ${e}</span>
|
|
361
361
|
</eun-progress-bar>
|
|
362
|
-
`}render(){return this.variant==="progress"?this.renderProgress():this.renderNumbered()}};
|
|
362
|
+
`}render(){return this.variant==="progress"?this.renderProgress():this.renderNumbered()}};o.styles=[k],s([i({type:Array,reflect:!0,useDefault:!0})],o.prototype,"steps",2),s([i({type:Number,attribute:"active-step"})],o.prototype,"activeStep",2),s([i({type:Number,attribute:"active-substep"})],o.prototype,"activeSubstep",2),s([i({reflect:!0,useDefault:!0})],o.prototype,"orientation",2),s([i({reflect:!0,useDefault:!0})],o.prototype,"variant",2),s([i({reflect:!0,converter:$})],o.prototype,"linear",2),s([i({type:Boolean,reflect:!0})],o.prototype,"disabled",2),s([x()],o.prototype,"slottedSteps",2),o=s([g(T)],o);export{o as EunomiaStepper,T as EunomiaStepperTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as k}from"./chunks/chunk-
|
|
1
|
+
import{a as k}from"./chunks/chunk-AK2DIJX7.js";import{c as f,d as v,e as b,f as t}from"./chunks/chunk-TLBXTBMM.js";import"./chunks/chunk-YYCEPZUN.js";import{a as h}from"./chunks/chunk-3BMACIDO.js";import{a as d}from"./chunks/chunk-PPCHQG7P.js";import{a as u}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js";import"./chunks/chunk-QL5GSW2A.js";import{a as e,f as n,h as c,j as a,p as i,r as s,u as l}from"./chunks/chunk-YITWLCD3.js";var g=c`
|
|
2
2
|
:host {
|
|
3
3
|
--_trackWidth: var(--switch-track-width, 40px);
|
|
4
4
|
--_trackHeight: var(--switch-track-height, 22px);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as k}from"./chunks/chunk-SMTIDNGW.js";import{b as _}from"./chunks/chunk-
|
|
1
|
+
import{a as k}from"./chunks/chunk-SMTIDNGW.js";import{b as _}from"./chunks/chunk-5XPOGBPL.js";import{a as D}from"./chunks/chunk-E5LQKBFI.js";import{a as S}from"./chunks/chunk-624VJYNA.js";import"./chunks/chunk-3BMACIDO.js";import"./chunks/chunk-PD62MBOJ.js";import"./chunks/chunk-BKZGTCMF.js";import{a as x}from"./chunks/chunk-PPCHQG7P.js";import{a as P}from"./chunks/chunk-SD2H5UDZ.js";import{a as c}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js";import{a as o,f as y,h as w,j as l,l as d,n as h,p as T,u as E}from"./chunks/chunk-YITWLCD3.js";var p=class N extends Event{static{this.eventName="tabchange"}constructor(v){super(N.eventName),this.active=v.active}};var F=w`
|
|
2
2
|
:host {
|
|
3
3
|
--_swipe-duration: var(
|
|
4
4
|
--tab-panel-swipe-duration,
|
|
@@ -188,13 +188,13 @@ import{a as k}from"./chunks/chunk-SMTIDNGW.js";import{b as _}from"./chunks/chunk
|
|
|
188
188
|
animation: var(--_animationTime) ease-in fade-in;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
:host([animation="slide"])
|
|
191
|
+
:host(:is([animation="slide"], :not([animation])))
|
|
192
192
|
slot:not([name])::slotted(eun-tab-panel.slide-left) {
|
|
193
193
|
--_animationTime: var(--tab-panel-animation, 500ms);
|
|
194
194
|
animation: var(--_animationTime) var(--eun-easing-out, ease-out) slide-left;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
:host([animation="slide"])
|
|
197
|
+
:host(:is([animation="slide"], :not([animation])))
|
|
198
198
|
slot:not([name])::slotted(eun-tab-panel.slide-right) {
|
|
199
199
|
--_animationTime: var(--tab-panel-animation, 500ms);
|
|
200
200
|
animation: var(--_animationTime) var(--eun-easing-out, ease-out) slide-right;
|
|
@@ -280,4 +280,4 @@ import{a as k}from"./chunks/chunk-SMTIDNGW.js";import{b as _}from"./chunks/chunk
|
|
|
280
280
|
<slot></slot>
|
|
281
281
|
</div>
|
|
282
282
|
</div>
|
|
283
|
-
`}};r.styles=A,r.EDGE_RESISTANCE=.3,o([l({reflect:!0})],r.prototype,"align",2),o([l({type:Boolean,reflect:!0})],r.prototype,"full",2),o([l({reflect:!0})],r.prototype,"animation",2),o([l({type:Boolean,reflect:!0})],r.prototype,"hideIndicator",2),o([h()],r.prototype,"panels",2),o([h({slot:"navigation"})],r.prototype,"tabs",2),o([d("#tab-indicator")],r.prototype,"indicator",2),o([d("#scrollable")],r.prototype,"scrollableContent",2),o([d("#panel-viewport")],r.prototype,"panelViewport",2),r=o([y($)],r);export{r as EunomiaTabGroup,$ as EunomiaTabGroupTagName};
|
|
283
|
+
`}};r.styles=A,r.EDGE_RESISTANCE=.3,o([l({reflect:!0,useDefault:!0})],r.prototype,"align",2),o([l({type:Boolean,reflect:!0})],r.prototype,"full",2),o([l({reflect:!0,useDefault:!0})],r.prototype,"animation",2),o([l({type:Boolean,reflect:!0})],r.prototype,"hideIndicator",2),o([h()],r.prototype,"panels",2),o([h({slot:"navigation"})],r.prototype,"tabs",2),o([d("#tab-indicator")],r.prototype,"indicator",2),o([d("#scrollable")],r.prototype,"scrollableContent",2),o([d("#panel-viewport")],r.prototype,"panelViewport",2),r=o([y($)],r);export{r as EunomiaTabGroup,$ as EunomiaTabGroupTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{c as d}from"./chunks/chunk-5LXGJVJR.js";import{a as i,f as l,h as r,j as s,p as n,u as o}from"./chunks/chunk-YITWLCD3.js";var c=r`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"./chunks/chunk-
|
|
1
|
+
import{a,b}from"./chunks/chunk-5XPOGBPL.js";import"./chunks/chunk-3BMACIDO.js";import"./chunks/chunk-PD62MBOJ.js";import"./chunks/chunk-BKZGTCMF.js";import"./chunks/chunk-YITWLCD3.js";export{b as EunomiaTab,a as EunomiaTabTagName};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,c as b}from"./chunks/chunk-
|
|
1
|
+
import{b as a,c as b}from"./chunks/chunk-32L2QYWQ.js";import"./chunks/chunk-PD62MBOJ.js";import"./chunks/chunk-BKZGTCMF.js";import"./chunks/chunk-PPCHQG7P.js";import"./chunks/chunk-62RLISRD.js";import"./chunks/chunk-QL5GSW2A.js";import"./chunks/chunk-YITWLCD3.js";export{b as EunomiaTableActionBar,a as EunomiaTableActionBarTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as C,b as J}from"./chunks/chunk-
|
|
1
|
+
import{a as C,b as J}from"./chunks/chunk-32L2QYWQ.js";import"./chunks/chunk-SVGWCKWT.js";import{a as Y,b as X}from"./chunks/chunk-ZYC7DHES.js";import"./chunks/chunk-QXQ25SQS.js";import{a as G}from"./chunks/chunk-VG6NAAIV.js";import"./chunks/chunk-QYB6Z6FG.js";import"./chunks/chunk-5LA5DQMP.js";import"./chunks/chunk-EUWUDCBZ.js";import"./chunks/chunk-I4ERDXSM.js";import"./chunks/chunk-TFTRCIIK.js";import"./chunks/chunk-AK2DIJX7.js";import{b as x,c as k,d as U,e as W,f as T}from"./chunks/chunk-VJCNHMQZ.js";import"./chunks/chunk-624VJYNA.js";import"./chunks/chunk-TLBXTBMM.js";import"./chunks/chunk-YYCEPZUN.js";import"./chunks/chunk-LD35BFNK.js";import"./chunks/chunk-3UUZM7X2.js";import"./chunks/chunk-3BMACIDO.js";import"./chunks/chunk-UP4M7TER.js";import"./chunks/chunk-22D3SRFR.js";import"./chunks/chunk-PD62MBOJ.js";import"./chunks/chunk-BKZGTCMF.js";import"./chunks/chunk-3MTUVMM5.js";import"./chunks/chunk-5GKM5DIB.js";import{a as A}from"./chunks/chunk-PPCHQG7P.js";import"./chunks/chunk-O7PHBLH2.js";import{a as q,b as V,c as I}from"./chunks/chunk-SGM2X2TC.js";import{a as j}from"./chunks/chunk-62RLISRD.js";import"./chunks/chunk-QL5GSW2A.js";import{a as o,f as _,h as S,j as s,k as K,l as L,p as m,q as N,r as R,t as D,u as F}from"./chunks/chunk-YITWLCD3.js";var Q=(b,v,e)=>{let t=new Map;for(let a=v;a<=e;a++)t.set(b[a],a);return t},Z=V(class extends I{constructor(b){if(super(b),b.type!==q.CHILD)throw Error("repeat() can only be used in text expressions")}dt(b,v,e){let t;e===void 0?e=v:v!==void 0&&(t=v);let a=[],r=[],i=0;for(let c of b)a[i]=t?t(c,i):i,r[i]=e(c,i),i++;return{values:r,keys:a}}render(b,v,e){return this.dt(b,v,e).values}update(b,[v,e,t]){let a=W(b),{values:r,keys:i}=this.dt(v,e,t);if(!Array.isArray(a))return this.ut=i,r;let c=this.ut??=[],l=[],u,f,d=0,h=a.length-1,p=0,g=r.length-1;for(;d<=h&&p<=g;)if(a[d]===null)d++;else if(a[h]===null)h--;else if(c[d]===i[p])l[p]=k(a[d],r[p]),d++,p++;else if(c[h]===i[g])l[g]=k(a[h],r[g]),h--,g--;else if(c[d]===i[g])l[g]=k(a[d],r[g]),x(b,l[g+1],a[d]),d++,g--;else if(c[h]===i[p])l[p]=k(a[h],r[p]),x(b,a[d],a[h]),h--,p++;else if(u===void 0&&(u=Q(i,p,g),f=Q(c,d,h)),u.has(c[d]))if(u.has(c[h])){let y=f.get(i[p]),B=y!==void 0?a[y]:null;if(B===null){let $=x(b,a[d]);k($,r[p]),l[p]=$}else l[p]=k(B,r[p]),x(b,a[d],B),a[y]=null;p++}else T(a[h]),h--;else T(a[d]),d++;for(;p<=g;){let y=x(b,l[g+1]);k(y,r[p]),l[p++]=y}for(;d<=h;){let y=a[d++];y!==null&&T(y)}return this.ut=i,U(b,l),N}});function O(b,v){return b?.length?b:`__row-${v}`}function ee(b){switch(b){case"center":return"center";case"right":return"end";case"left":return"start";default:return}}var M=class b extends Event{static{this.eventName="euntableselectionchange"}constructor(v){super(b.eventName,{bubbles:!0,composed:!1}),this.selectedKeys=v,this.selectedCount=v.length}};var z=class b extends Event{static{this.eventName="euntablerowclick"}constructor(v){super(b.eventName,{bubbles:!0,cancelable:!0,composed:!1}),this.rowKey=v}};var re=S`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -561,7 +561,7 @@ import{a as C,b as J}from"./chunks/chunk-KDN4O5W2.js";import"./chunks/chunk-L2AD
|
|
|
561
561
|
@eunselect=${r=>e.onSelect(r.key,t,a)}
|
|
562
562
|
></eun-dropdown-button>`:m`<eun-button
|
|
563
563
|
size="xs"
|
|
564
|
-
appearance=${e.color?"
|
|
564
|
+
appearance=${e.color?"soft":"ghost"}
|
|
565
565
|
color=${A(e.color)}
|
|
566
566
|
aria-label=${e.label}
|
|
567
567
|
?disabled=${e.disabled?.(t)??!1}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as m}from"./chunks/chunk-FF3I7C3C.js";import{a as u}from"./chunks/chunk-UP4M7TER.js";import{a as c}from"./chunks/chunk-PPCHQG7P.js";import{a as d}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js";import{a as t,f as i,h as n,j as a,n as s,p as o,r as p,u as l}from"./chunks/chunk-YITWLCD3.js";var
|
|
1
|
+
import{a as m}from"./chunks/chunk-FF3I7C3C.js";import{a as u}from"./chunks/chunk-UP4M7TER.js";import{a as c}from"./chunks/chunk-PPCHQG7P.js";import{a as d}from"./chunks/chunk-O7PHBLH2.js";import"./chunks/chunk-SGM2X2TC.js";import{a as t,f as i,h as n,j as a,n as s,p as o,r as p,u as l}from"./chunks/chunk-YITWLCD3.js";var v=n`
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
@@ -93,7 +93,7 @@ import{a as m}from"./chunks/chunk-FF3I7C3C.js";import{a as u}from"./chunks/chunk
|
|
|
93
93
|
slot[name="icon"].hidden {
|
|
94
94
|
display: none;
|
|
95
95
|
}
|
|
96
|
-
`,
|
|
96
|
+
`,f=[m,v];var h="eun-tag",e=class extends l{constructor(){super(...arguments);this.color="medium";this.appearance="default";this.hideIcon=!1;this.iconOnly=!1;this.rounded=!1;this.fixedColor=!1;this.uppercase=!1;this.handleIconSlotChange=()=>{this.requestUpdate()}}getIconName(){return u(this.icon,this.severity,"severity")}shouldHideIcon(){return this.hideIcon?!0:this.iconSlotEls.length>0||this.iconOnly||this.severity?!1:!this.icon}render(){let r=this.shouldHideIcon();return o`
|
|
97
97
|
<div id="tag">
|
|
98
98
|
<slot
|
|
99
99
|
name="icon"
|
|
@@ -110,4 +110,4 @@ import{a as m}from"./chunks/chunk-FF3I7C3C.js";import{a as u}from"./chunks/chunk
|
|
|
110
110
|
</slot>
|
|
111
111
|
<slot></slot>
|
|
112
112
|
</div>
|
|
113
|
-
`}};e.styles=
|
|
113
|
+
`}};e.styles=f,t([a({reflect:!0,useDefault:!0})],e.prototype,"color",2),t([a({reflect:!0})],e.prototype,"severity",2),t([a({reflect:!0,useDefault:!0})],e.prototype,"appearance",2),t([a()],e.prototype,"icon",2),t([a({reflect:!0})],e.prototype,"size",2),t([a({type:Boolean,attribute:"hide-icon"})],e.prototype,"hideIcon",2),t([a({type:Boolean,attribute:"icon-only",reflect:!0})],e.prototype,"iconOnly",2),t([a({type:Boolean,reflect:!0})],e.prototype,"rounded",2),t([a({type:Boolean,reflect:!0,attribute:"fixed-color"})],e.prototype,"fixedColor",2),t([a({type:Boolean,reflect:!0})],e.prototype,"uppercase",2),t([s({slot:"icon"})],e.prototype,"iconSlotEls",2),e=t([i(h)],e);export{e as EunomiaTag,h as EunomiaTagTagName};
|