@eunomia/elements 1.0.0-beta.3 → 1.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cdn/components/chunks/{chunk-EAGGN3ZI.js → chunk-2XASWWKR.js} +9 -9
- package/dist/cdn/components/chunks/chunk-32DTNR52.js +1 -0
- package/dist/cdn/components/chunks/chunk-3MTUVMM5.js +1 -0
- package/dist/cdn/components/chunks/chunk-5GKM5DIB.js +1 -0
- package/dist/cdn/components/chunks/{chunk-32KRPOPV.js → chunk-5XJGYXW7.js} +6 -6
- package/dist/cdn/components/chunks/{chunk-O2HNWH65.js → chunk-5XJLIHAU.js} +7 -7
- package/dist/cdn/components/chunks/{chunk-TBKKTJOX.js → chunk-6ETDXUH2.js} +3 -3
- package/dist/cdn/components/chunks/{chunk-5GF2Q3NR.js → chunk-74AOAB4X.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-WYMBUIKX.js → chunk-A6KGFALA.js} +4 -4
- package/dist/cdn/components/chunks/{chunk-NEYBPT3D.js → chunk-AIS3UICU.js} +9 -9
- package/dist/cdn/components/chunks/{chunk-LJYTHDZP.js → chunk-D2M4BV5Y.js} +6 -6
- package/dist/cdn/components/chunks/chunk-DKOPI7QA.js +415 -0
- package/dist/cdn/components/chunks/{chunk-53QH6MPM.js → chunk-EAKYD33D.js} +3 -3
- package/dist/cdn/components/chunks/chunk-EST3M4AO.js +1 -0
- package/dist/cdn/components/chunks/{chunk-BYBUXKXC.js → chunk-IDKZKLJR.js} +7 -7
- package/dist/cdn/components/chunks/chunk-JRGM3W7I.js +53 -0
- package/dist/cdn/components/chunks/{chunk-RWONCXTF.js → chunk-KVYUNKUO.js} +2 -2
- package/dist/cdn/components/chunks/{chunk-6UPI7GHJ.js → chunk-L65WUTXM.js} +12 -12
- package/dist/cdn/components/chunks/chunk-LFCXUVDO.js +1 -0
- package/dist/cdn/components/chunks/chunk-LGLQ36QB.js +16 -0
- package/dist/cdn/components/chunks/chunk-MPQP4R54.js +263 -0
- package/dist/cdn/components/chunks/{chunk-ON42P6FI.js → chunk-NBIENHLV.js} +6 -6
- package/dist/cdn/components/chunks/chunk-OAULRKHQ.js +38 -0
- package/dist/cdn/components/chunks/chunk-OW7XKDCH.js +124 -0
- package/dist/cdn/components/chunks/chunk-P32B7BFD.js +118 -0
- package/dist/cdn/components/chunks/{chunk-ZPFHTJSS.js → chunk-PCM7D3YF.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-ABYEBP57.js → chunk-PED5ATYN.js} +11 -8
- package/dist/cdn/components/chunks/{chunk-5C7YND22.js → chunk-S2UCEWNG.js} +8 -8
- package/dist/cdn/components/chunks/{chunk-5RCCZVFZ.js → chunk-SD2WHGPF.js} +7 -6
- package/dist/cdn/components/chunks/chunk-SJWRE6PW.js +1 -0
- package/dist/cdn/components/chunks/{chunk-6IILPCSQ.js → chunk-X2AUBZD2.js} +3 -3
- package/dist/cdn/components/eun-alert.js +65 -45
- package/dist/cdn/components/eun-animate.js +5 -3
- package/dist/cdn/components/eun-badge.js +8 -8
- package/dist/cdn/components/eun-breadcrumb-item.js +14 -10
- package/dist/cdn/components/eun-breadcrumb.js +11 -7
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-calendar.js +20 -20
- package/dist/cdn/components/eun-card.js +61 -13
- package/dist/cdn/components/eun-carousel.js +35 -27
- package/dist/cdn/components/eun-check-card.js +3 -3
- package/dist/cdn/components/eun-checkbox-list.js +3 -3
- package/dist/cdn/components/eun-checkbox.js +1 -1
- package/dist/cdn/components/eun-chip.js +45 -207
- package/dist/cdn/components/eun-collapse.js +49 -29
- package/dist/cdn/components/eun-color-picker.js +13 -13
- package/dist/cdn/components/eun-counter.js +15 -15
- package/dist/cdn/components/eun-date-picker.js +62 -62
- package/dist/cdn/components/eun-drawer.js +12 -12
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-dropdown-item.js +6 -6
- package/dist/cdn/components/eun-fab.js +31 -53
- package/dist/cdn/components/eun-icon.js +1 -1
- package/dist/cdn/components/eun-image-card.js +18 -11
- package/dist/cdn/components/eun-image-carousel.js +18 -18
- package/dist/cdn/components/eun-infinite-list.js +1 -1
- package/dist/cdn/components/eun-input-file.js +12 -12
- package/dist/cdn/components/eun-input-phone.js +28 -28
- package/dist/cdn/components/eun-input.js +1 -1
- package/dist/cdn/components/eun-label.js +4 -4
- package/dist/cdn/components/eun-link.js +134 -18
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +21 -21
- package/dist/cdn/components/eun-pagination.js +3 -3
- package/dist/cdn/components/eun-password-strength.js +9 -6
- package/dist/cdn/components/eun-progress-bar.js +13 -13
- package/dist/cdn/components/eun-radio-card.js +2 -2
- package/dist/cdn/components/eun-radio-list.js +1 -1
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-scheduler-event-editor.js +9 -9
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +26 -26
- package/dist/cdn/components/eun-search.js +21 -21
- package/dist/cdn/components/eun-select.js +10 -10
- package/dist/cdn/components/eun-sidebar.js +9 -9
- package/dist/cdn/components/eun-skeleton.js +1 -1
- package/dist/cdn/components/eun-slider.js +8 -8
- package/dist/cdn/components/eun-sliding-card.js +4 -3
- package/dist/cdn/components/eun-step.js +8 -8
- package/dist/cdn/components/eun-stepper.js +8 -8
- package/dist/cdn/components/eun-switch.js +10 -10
- package/dist/cdn/components/eun-tab-group.js +19 -11
- package/dist/cdn/components/eun-tab-panel.js +1 -1
- package/dist/cdn/components/eun-tab.js +1 -1
- package/dist/cdn/components/eun-table-action-bar.js +1 -1
- package/dist/cdn/components/eun-table-cell.js +1 -1
- package/dist/cdn/components/eun-table-column.js +1 -1
- package/dist/cdn/components/eun-table-header.js +1 -1
- package/dist/cdn/components/eun-table-item.js +1 -1
- package/dist/cdn/components/eun-table-skeleton-row.js +1 -1
- package/dist/cdn/components/eun-table.js +3 -3
- package/dist/cdn/components/eun-tag.js +34 -126
- package/dist/cdn/components/eun-textarea.js +23 -23
- package/dist/cdn/components/eun-time-picker.js +32 -32
- package/dist/cdn/components/eun-toast.js +40 -36
- package/dist/cdn/components/eun-toggle-group.js +213 -72
- package/dist/cdn/components/eun-toggle-item.js +49 -30
- package/dist/cdn/components/eun-toggle.js +12 -9
- package/dist/cdn/components/eun-toolbar.js +15 -8
- package/dist/cdn/components/eun-tooltip.js +122 -87
- package/dist/cdn/styles/eunomia-themes.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.css +1 -1
- package/dist/cdn/styles/themes/eunomia-theme.scss +1 -0
- package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +71 -0
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +2 -0
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +3 -13
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +2 -0
- package/dist/cdn/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/dist/cdn/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +39 -0
- package/dist/cdn/styles/tools/mixins/settings/eunomia-border.mixin.scss +3 -3
- package/dist/cdn/styles/tools/mixins/settings/eunomia-font.mixin.scss +12 -12
- package/dist/cdn/styles/tools/mixins/settings/eunomia-radius.mixin.scss +4 -4
- package/dist/components/action/button/button.d.ts +44 -15
- package/dist/components/action/button/button.js +100 -20
- package/dist/components/action/button/button.styles.js +179 -393
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +13 -6
- package/dist/components/action/dropdown-button/dropdown-button.js +16 -5
- package/dist/components/action/dropdown-button/dropdown-button.styles.js +8 -8
- package/dist/components/action/dropdown-button/dropdown-item.styles.js +6 -6
- package/dist/components/action/fab/fab.d.ts +7 -4
- package/dist/components/action/fab/fab.js +11 -6
- package/dist/components/action/fab/fab.styles.js +26 -49
- package/dist/components/action/link/link.d.ts +115 -6
- package/dist/components/action/link/link.js +245 -21
- package/dist/components/action/link/link.styles.js +105 -3
- package/dist/components/action/shared-styles/button-palette.styles.d.ts +27 -0
- package/dist/components/action/shared-styles/button-palette.styles.js +151 -0
- package/dist/components/action/toggle/toggle-group.d.ts +55 -11
- package/dist/components/action/toggle/toggle-group.js +193 -52
- package/dist/components/action/toggle/toggle-group.styles.d.ts +7 -5
- package/dist/components/action/toggle/toggle-group.styles.js +166 -41
- package/dist/components/action/toggle/toggle-item.d.ts +4 -4
- package/dist/components/action/toggle/toggle-item.js +2 -2
- package/dist/components/action/toggle/toggle-item.styles.js +45 -26
- package/dist/components/action/toggle/toggle.d.ts +1 -1
- package/dist/components/action/toggle/toggle.js +1 -1
- package/dist/components/action/toggle/toggle.styles.d.ts +2 -2
- package/dist/components/action/toggle/toggle.styles.js +13 -10
- package/dist/components/alert/alert/alert.d.ts +4 -3
- package/dist/components/alert/alert/alert.js +4 -3
- package/dist/components/alert/alert/alert.styles.js +57 -36
- package/dist/components/alert/drawer/drawer.js +1 -1
- package/dist/components/alert/drawer/drawer.styles.js +3 -3
- package/dist/components/alert/modal/modal.d.ts +8 -8
- package/dist/components/alert/modal/modal.js +11 -11
- package/dist/components/alert/modal/modal.styles.js +6 -6
- package/dist/components/alert/toast/toast.d.ts +4 -3
- package/dist/components/alert/toast/toast.js +4 -3
- package/dist/components/alert/toast/toast.styles.js +41 -36
- package/dist/components/content/badge/badge.d.ts +6 -6
- package/dist/components/content/badge/badge.js +4 -4
- package/dist/components/content/badge/badge.styles.js +5 -5
- package/dist/components/content/card/card.d.ts +36 -8
- package/dist/components/content/card/card.js +68 -8
- package/dist/components/content/card/card.styles.js +52 -11
- package/dist/components/content/card/image-card.d.ts +3 -2
- package/dist/components/content/card/image-card.js +2 -1
- package/dist/components/content/card/image-card.styles.js +17 -10
- package/dist/components/content/card/sliding-card.d.ts +2 -1
- package/dist/components/content/card/sliding-card.js +1 -0
- package/dist/components/content/card/sliding-card.styles.js +3 -2
- package/dist/components/content/chip/chip.d.ts +16 -7
- package/dist/components/content/chip/chip.js +18 -6
- package/dist/components/content/chip/chip.styles.d.ts +1 -1
- package/dist/components/content/chip/chip.styles.js +43 -207
- package/dist/components/content/collapse/collapse.d.ts +29 -11
- package/dist/components/content/collapse/collapse.js +53 -23
- package/dist/components/content/collapse/collapse.styles.js +23 -9
- package/dist/components/content/icon/icon.d.ts +12 -2
- package/dist/components/content/icon/icon.js +52 -22
- package/dist/components/content/icon/icon.style.d.ts +2 -0
- package/dist/components/content/icon/icon.style.js +5 -2
- package/dist/components/content/image-carousel/image-carousel.styles.js +14 -14
- package/dist/components/content/password-strength/password-strength.styles.js +7 -4
- package/dist/components/content/progress-bar/progress-bar.styles.js +9 -9
- package/dist/components/content/shared-styles/card-link.styles.js +1 -0
- package/dist/components/content/shared-styles/tone-surface.styles.d.ts +31 -0
- package/dist/components/content/shared-styles/tone-surface.styles.js +149 -0
- package/dist/components/content/tag/tag.d.ts +16 -6
- package/dist/components/content/tag/tag.js +19 -6
- package/dist/components/content/tag/tag.styles.d.ts +1 -1
- package/dist/components/content/tag/tag.styles.js +40 -125
- package/dist/components/content/tooltip/tooltip.d.ts +15 -4
- package/dist/components/content/tooltip/tooltip.js +21 -4
- package/dist/components/content/tooltip/tooltip.styles.js +115 -79
- package/dist/components/form/checkbox/check-card.styles.js +2 -2
- package/dist/components/form/checkbox/checkbox-list.d.ts +1 -1
- package/dist/components/form/checkbox/checkbox.d.ts +1 -1
- package/dist/components/form/checkbox/checkbox.styles.js +6 -6
- package/dist/components/form/color-picker/color-picker.d.ts +3 -3
- package/dist/components/form/color-picker/color-picker.js +4 -4
- package/dist/components/form/color-picker/color-picker.styles.js +7 -7
- package/dist/components/form/counter/counter.d.ts +3 -3
- package/dist/components/form/counter/counter.js +3 -3
- package/dist/components/form/counter/counter.styles.js +12 -12
- package/dist/components/form/date-picker/date-picker-day-grid.styles.js +2 -2
- package/dist/components/form/date-picker/date-picker-grid.styles.js +15 -15
- package/dist/components/form/date-picker/date-picker-month-grid.styles.js +1 -1
- package/dist/components/form/date-picker/date-picker-year-grid.styles.js +1 -1
- package/dist/components/form/date-picker/date-picker.d.ts +3 -3
- package/dist/components/form/date-picker/date-picker.js +3 -3
- package/dist/components/form/date-picker/date-picker.styles.js +17 -17
- package/dist/components/form/input/input.d.ts +3 -3
- package/dist/components/form/input/input.js +4 -4
- package/dist/components/form/input-file/input-file.d.ts +1 -1
- package/dist/components/form/input-file/input-file.styles.js +9 -9
- package/dist/components/form/input-phone/input-phone.d.ts +3 -3
- package/dist/components/form/input-phone/input-phone.js +3 -3
- package/dist/components/form/input-phone/input-phone.styles.js +19 -19
- package/dist/components/form/label/label.styles.js +4 -4
- package/dist/components/form/radio/radio-card.styles.js +1 -1
- package/dist/components/form/radio/radio-list.d.ts +1 -1
- package/dist/components/form/radio/radio.d.ts +1 -1
- package/dist/components/form/radio/radio.styles.js +2 -2
- package/dist/components/form/search/search.styles.js +9 -9
- package/dist/components/form/select/select.d.ts +3 -3
- package/dist/components/form/select/select.js +3 -3
- package/dist/components/form/select/select.styles.js +6 -6
- package/dist/components/form/shared-styles/card.styles.js +1 -1
- package/dist/components/form/shared-styles/field.styles.js +12 -12
- package/dist/components/form/shared-styles/form-labels.styles.js +1 -1
- package/dist/components/form/shared-styles/listbox.styles.js +6 -6
- package/dist/components/form/slider/slider.d.ts +1 -1
- package/dist/components/form/slider/slider.styles.js +6 -6
- package/dist/components/form/switch/switch.d.ts +1 -1
- package/dist/components/form/switch/switch.styles.js +8 -8
- package/dist/components/form/textarea/textarea.d.ts +3 -3
- package/dist/components/form/textarea/textarea.js +4 -4
- package/dist/components/form/textarea/textarea.styles.js +6 -6
- package/dist/components/form/time-picker/time-picker-columns.styles.js +6 -6
- package/dist/components/form/time-picker/time-picker-list.styles.js +2 -2
- package/dist/components/form/time-picker/time-picker.d.ts +3 -3
- package/dist/components/form/time-picker/time-picker.js +3 -3
- package/dist/components/form/time-picker/time-picker.styles.js +13 -13
- package/dist/components/layout/animate/animate.d.ts +8 -0
- package/dist/components/layout/animate/animate.js +20 -8
- package/dist/components/loader/loader/loader.styles.js +2 -2
- package/dist/components/loader/skeleton/skeleton.styles.js +8 -5
- package/dist/components/navigation/breadcrumb/breadcrumb-item.d.ts +7 -0
- package/dist/components/navigation/breadcrumb/breadcrumb-item.js +15 -1
- package/dist/components/navigation/breadcrumb/breadcrumb-item.styles.js +3 -3
- package/dist/components/navigation/breadcrumb/breadcrumb.d.ts +1 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.js +7 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.styles.js +3 -3
- package/dist/components/navigation/carousel/carousel.d.ts +40 -6
- package/dist/components/navigation/carousel/carousel.js +61 -12
- package/dist/components/navigation/carousel/carousel.styles.js +19 -7
- package/dist/components/navigation/pagination/pagination.styles.js +3 -3
- package/dist/components/navigation/sidebar/sidebar.styles.js +9 -9
- package/dist/components/navigation/stepper/step.styles.js +8 -8
- package/dist/components/navigation/stepper/stepper.styles.js +8 -8
- package/dist/components/navigation/tabs/tab/tab.styles.js +5 -5
- package/dist/components/navigation/tabs/tab-group/tab-group.d.ts +9 -0
- package/dist/components/navigation/tabs/tab-group/tab-group.js +19 -2
- package/dist/components/navigation/tabs/tab-group/tab-group.styles.js +12 -4
- package/dist/components/navigation/tabs/tab-panel/tab-panel.styles.js +1 -1
- package/dist/components/navigation/toolbar/toolbar.d.ts +2 -0
- package/dist/components/navigation/toolbar/toolbar.js +2 -0
- package/dist/components/navigation/toolbar/toolbar.styles.js +16 -7
- package/dist/features/scheduler/calendar/calendar.d.ts +6 -6
- package/dist/features/scheduler/calendar/calendar.js +10 -10
- package/dist/features/scheduler/calendar/calendar.styles.js +3 -3
- package/dist/features/scheduler/scheduler/scheduler.d.ts +6 -6
- package/dist/features/scheduler/scheduler/scheduler.js +13 -13
- package/dist/features/scheduler/scheduler/scheduler.styles.js +2 -2
- package/dist/features/scheduler/scheduler-event/scheduler-event.d.ts +10 -8
- package/dist/features/scheduler/scheduler-event/scheduler-event.js +7 -7
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +8 -8
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +5 -5
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.styles.js +2 -2
- package/dist/features/scheduler/shared/scheduler-event-popover.js +2 -2
- package/dist/features/scheduler/shared/scheduler-event-popover.styles.js +4 -4
- package/dist/features/scheduler/shared/scheduler-hour-grid.d.ts +2 -2
- package/dist/features/scheduler/shared/scheduler-hour-grid.js +3 -3
- package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +1 -1
- package/dist/features/scheduler/shared/scheduler-month-view.d.ts +3 -3
- package/dist/features/scheduler/shared/scheduler-month-view.js +2 -2
- package/dist/features/scheduler/shared/scheduler-month-view.styles.js +1 -1
- package/dist/features/scheduler/shared/scheduler-year-view.styles.js +1 -1
- package/dist/features/table/native-table.css +11 -11
- package/dist/features/table/table/table.styles.js +2 -2
- package/dist/features/table/table/table.types.d.ts +7 -3
- package/dist/features/table/table-action-bar/table-action-bar.js +3 -3
- package/dist/features/table/table-action-bar/table-action-bar.styles.js +2 -2
- package/dist/features/table/table-cell/table-cell.styles.js +2 -2
- package/dist/features/table/table-column/table-column.styles.js +3 -3
- package/dist/features/table/table-header/table-header.styles.js +4 -4
- package/dist/features/table/table-item/table-item.styles.js +6 -6
- package/dist/features/table/table-managed/table-managed.js +2 -2
- package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.js +1 -1
- package/dist/i18n/en.d.ts +3 -0
- package/dist/i18n/en.js +3 -0
- package/dist/i18n/fr.js +3 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.js +5 -2
- package/dist/jsx.d.ts +19 -6
- package/dist/mixins/button.mixin.d.ts +11 -9
- package/dist/mixins/button.mixin.js +23 -5
- package/dist/mixins/card-link.mixin.d.ts +3 -2
- package/dist/mixins/card-link.mixin.js +12 -5
- package/dist/mixins/check.mixin.d.ts +1 -1
- package/dist/mixins/disabled.mixin.d.ts +3 -3
- package/dist/mixins/disabled.mixin.js +10 -5
- package/dist/mixins/editable.mixin.d.ts +1 -1
- package/dist/mixins/field-appearance.mixin.d.ts +19 -0
- package/dist/mixins/{field-variant.mixin.js → field-appearance.mixin.js} +11 -11
- package/dist/mixins/form.mixin.d.ts +5 -1
- package/dist/mixins/form.mixin.js +32 -12
- package/dist/mixins/overflow-navigation.mixin.js +2 -1
- package/dist/mixins/radio.mixin.d.ts +1 -1
- package/dist/mixins/validators.mixin.d.ts +9 -3
- package/dist/ssr/animate-ssr.css +26 -72
- package/dist/ssr/links-ssr.css +35 -0
- package/dist/ssr/overlay-ssr.css +0 -41
- package/dist/ssr/rich-text.css +38 -0
- package/dist/ssr/sidebar-ssr.css +0 -38
- package/dist/ssr/toolbar-ssr.css +73 -39
- package/dist/types/variant.type.d.ts +26 -10
- package/dist/utils/navigation.utils.d.ts +14 -0
- package/dist/utils/navigation.utils.js +33 -0
- package/dist/utils/new-tab-anchor.controller.d.ts +44 -0
- package/dist/utils/new-tab-anchor.controller.js +102 -0
- package/dist/utils/rich-text.utils.d.ts +33 -0
- package/dist/utils/rich-text.utils.js +140 -49
- package/dist/utils/severity-icon.utils.d.ts +1 -1
- package/dist/utils/severity-icon.utils.js +1 -1
- package/dist/utils/theme-generator.utils.d.ts +26 -3
- package/dist/utils/theme-generator.utils.js +68 -21
- package/package.json +13 -2
- package/styles/themes/eunomia-theme.scss +1 -0
- package/styles/themes/mixins/eunomia-neutrals.mixin.scss +71 -0
- package/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +2 -0
- package/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +3 -13
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +2 -0
- package/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +39 -0
- package/styles/tools/mixins/settings/eunomia-border.mixin.scss +3 -3
- package/styles/tools/mixins/settings/eunomia-font.mixin.scss +12 -12
- package/styles/tools/mixins/settings/eunomia-radius.mixin.scss +4 -4
- package/dist/cdn/components/chunks/chunk-3LMI7KUA.js +0 -48
- package/dist/cdn/components/chunks/chunk-5TH3P53V.js +0 -16
- package/dist/cdn/components/chunks/chunk-ATH2OAMU.js +0 -1
- package/dist/cdn/components/chunks/chunk-BKHD4S57.js +0 -1
- package/dist/cdn/components/chunks/chunk-KNM5QHDK.js +0 -38
- package/dist/cdn/components/chunks/chunk-MBF52GEL.js +0 -1
- package/dist/cdn/components/chunks/chunk-T7WABJEJ.js +0 -1
- package/dist/cdn/components/chunks/chunk-XSMCT4DF.js +0 -1
- package/dist/cdn/components/chunks/chunk-Z6PJYSC3.js +0 -622
- package/dist/cdn/components/chunks/chunk-ZKPCO5RB.js +0 -262
- package/dist/mixins/field-variant.mixin.d.ts +0 -22
|
@@ -3,7 +3,7 @@ import{a as v,b as f,d as y,e as g,f as m}from"./chunks/chunk-CEDHJUUH.js";impor
|
|
|
3
3
|
display: block;
|
|
4
4
|
white-space: nowrap;
|
|
5
5
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
6
|
-
font-size: var(--eun-
|
|
6
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
7
7
|
outline: none;
|
|
8
8
|
}
|
|
9
9
|
.content {
|
|
@@ -45,7 +45,7 @@ import{a as v,b as f,d as y,e as g,f as m}from"./chunks/chunk-CEDHJUUH.js";impor
|
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
47
|
:host([active]) .content {
|
|
48
|
-
font-weight: var(--eun-
|
|
48
|
+
font-weight: var(--eun-font-weight-l, 700);
|
|
49
49
|
color: var(
|
|
50
50
|
--dropdown-menu-accent-color,
|
|
51
51
|
var(--eun-color-primary-500, #3d6fff)
|
|
@@ -73,7 +73,7 @@ import{a as v,b as f,d as y,e as g,f as m}from"./chunks/chunk-CEDHJUUH.js";impor
|
|
|
73
73
|
text-overflow: ellipsis;
|
|
74
74
|
}
|
|
75
75
|
.description {
|
|
76
|
-
font-size: var(--eun-
|
|
76
|
+
font-size: var(--eun-font-size-xs, 12px);
|
|
77
77
|
color: var(
|
|
78
78
|
--dropdown-menu-description-color,
|
|
79
79
|
var(--eun-text-secondary, #484e61)
|
|
@@ -92,17 +92,17 @@ import{a as v,b as f,d as y,e as g,f as m}from"./chunks/chunk-CEDHJUUH.js";impor
|
|
|
92
92
|
max-height: 260px;
|
|
93
93
|
overflow-y: auto;
|
|
94
94
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
95
|
-
font-size: var(--eun-
|
|
95
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
96
96
|
color: var(--dropdown-menu-color, var(--eun-text-color, #071621));
|
|
97
97
|
background: var(
|
|
98
98
|
--dropdown-menu-background,
|
|
99
99
|
var(--eun-surface-color, #ffffff)
|
|
100
100
|
);
|
|
101
|
-
border: var(--eun-
|
|
101
|
+
border: var(--eun-border-width-s, 1px) solid
|
|
102
102
|
var(--dropdown-menu-border-color, var(--eun-border-color, #dee0e7));
|
|
103
103
|
border-radius: var(
|
|
104
104
|
--dropdown-menu-border-radius,
|
|
105
|
-
var(--eun-
|
|
105
|
+
var(--eun-border-radius-m, 8px)
|
|
106
106
|
);
|
|
107
107
|
box-shadow: var(
|
|
108
108
|
--dropdown-menu-shadow,
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import{a as f,b as
|
|
1
|
+
import{a as f,b as u,c as b}from"./chunks/chunk-OW7XKDCH.js";import{a as h}from"./chunks/chunk-32DTNR52.js";import{a as v}from"./chunks/chunk-SJWRE6PW.js";import{a as t}from"./chunks/chunk-5EVP7YNE.js";import{a as c}from"./chunks/chunk-5GKM5DIB.js";import{a,f as d,g as r,h as n,n as i,p as l,s as p}from"./chunks/chunk-XH6NREVZ.js";var m=r`
|
|
2
2
|
:host {
|
|
3
|
-
--
|
|
4
|
-
--
|
|
5
|
-
--fab-background-hover,
|
|
6
|
-
var(--eun-color-primary-700, #3662e0)
|
|
7
|
-
);
|
|
8
|
-
--_mainColor-text: var(
|
|
9
|
-
--fab-text,
|
|
10
|
-
var(--eun-color-on-primary-500, #ffffff)
|
|
11
|
-
);
|
|
12
|
-
--_focusIndicator: var(--fab-focus-outline, var(--_mainColor));
|
|
3
|
+
--_focusIndicator: var(--fab-focus-outline, var(--_solid));
|
|
4
|
+
--_hoverFromCustom: color-mix(in srgb, var(--fab-background) 88%, black);
|
|
13
5
|
--_transition: var(--fab-transition, 0.3s);
|
|
14
6
|
--_gap: var(--eun-space-xs, 4px);
|
|
15
7
|
--_circleSize: 56px;
|
|
@@ -19,7 +11,7 @@ import{a as f,b as p}from"./chunks/chunk-MBF52GEL.js";import{a as u}from"./chunk
|
|
|
19
11
|
user-select: none;
|
|
20
12
|
outline: 2px solid transparent;
|
|
21
13
|
z-index: 0;
|
|
22
|
-
border-radius: var(--eun-
|
|
14
|
+
border-radius: var(--eun-border-radius-xl);
|
|
23
15
|
transition:
|
|
24
16
|
background 0.3s ease-out,
|
|
25
17
|
box-shadow 0.3s ease-out,
|
|
@@ -49,32 +41,15 @@ import{a as f,b as p}from"./chunks/chunk-MBF52GEL.js";import{a as u}from"./chunk
|
|
|
49
41
|
--_circleSize: 88px;
|
|
50
42
|
--icon-size: 34px;
|
|
51
43
|
}
|
|
52
|
-
:host([variant="secondary"]) {
|
|
53
|
-
--_mainColor: var(--eun-color-secondary-500, #e5a030);
|
|
54
|
-
--_mainColor-hover: var(--eun-color-secondary-700, #ca8d2a);
|
|
55
|
-
--_mainColor-text: var(--eun-color-on-secondary-500, #000000de);
|
|
56
|
-
}
|
|
57
|
-
:host([variant="critical"]) {
|
|
58
|
-
--_mainColor: var(--eun-color-critical-100, #aa0014);
|
|
59
|
-
--_mainColor-hover: var(--eun-color-critical-100, #aa0014);
|
|
60
|
-
--_mainColor-text: #fff;
|
|
61
|
-
}
|
|
62
|
-
:host([variant="success"]) {
|
|
63
|
-
--_mainColor: var(--eun-color-success-100, #1a9948);
|
|
64
|
-
--_mainColor-hover: var(--eun-color-success-100, #1a9948);
|
|
65
|
-
--_mainColor-text: #fff;
|
|
66
|
-
}
|
|
67
|
-
:host([variant="warning"]) {
|
|
68
|
-
--_mainColor: var(--eun-color-warning-100, #c85207);
|
|
69
|
-
--_mainColor-hover: var(--eun-color-warning-100, #c85207);
|
|
70
|
-
--_mainColor-text: #fff;
|
|
71
|
-
}
|
|
72
44
|
:host([disabled]) {
|
|
73
|
-
--
|
|
74
|
-
--
|
|
75
|
-
--
|
|
45
|
+
--_solid: var(--eun-disabled-color, #ecedf0);
|
|
46
|
+
--_solid-hover: var(--eun-disabled-color, #ecedf0);
|
|
47
|
+
--_onSolid: var(--eun-text-disabled-color, #8d93aa);
|
|
76
48
|
}
|
|
49
|
+
/* A disabled fab never loses its look to a custom property. */
|
|
77
50
|
:host([disabled]) #fab {
|
|
51
|
+
background: var(--_solid);
|
|
52
|
+
color: var(--_onSolid);
|
|
78
53
|
cursor: not-allowed;
|
|
79
54
|
pointer-events: none;
|
|
80
55
|
box-shadow: none;
|
|
@@ -92,11 +67,11 @@ import{a as f,b as p}from"./chunks/chunk-MBF52GEL.js";import{a as u}from"./chunk
|
|
|
92
67
|
box-sizing: border-box;
|
|
93
68
|
overflow: hidden;
|
|
94
69
|
border: none;
|
|
95
|
-
border-radius: var(--eun-
|
|
96
|
-
background: var(--
|
|
97
|
-
color: var(--
|
|
70
|
+
border-radius: var(--eun-border-radius-xl, 999px);
|
|
71
|
+
background: var(--fab-background, var(--_solid));
|
|
72
|
+
color: var(--fab-text, var(--_onSolid));
|
|
98
73
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
99
|
-
font-size: var(--eun-
|
|
74
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
100
75
|
text-decoration: none;
|
|
101
76
|
cursor: pointer;
|
|
102
77
|
outline: 2px solid transparent;
|
|
@@ -119,7 +94,10 @@ import{a as f,b as p}from"./chunks/chunk-MBF52GEL.js";import{a as u}from"./chunk
|
|
|
119
94
|
transform: rotate(-45deg);
|
|
120
95
|
}
|
|
121
96
|
:host(:not([disabled]):not([loading])) #fab:hover {
|
|
122
|
-
background: var(
|
|
97
|
+
background: var(
|
|
98
|
+
--fab-background-hover,
|
|
99
|
+
var(--_hoverFromCustom, var(--_solid-hover))
|
|
100
|
+
);
|
|
123
101
|
box-shadow: var(
|
|
124
102
|
--eun-shadow-l,
|
|
125
103
|
0 10px 15px -3px rgba(0, 0, 0, 0.15),
|
|
@@ -150,7 +128,7 @@ import{a as f,b as p}from"./chunks/chunk-MBF52GEL.js";import{a as u}from"./chunk
|
|
|
150
128
|
white-space: nowrap;
|
|
151
129
|
border: 0;
|
|
152
130
|
}
|
|
153
|
-
`,
|
|
131
|
+
`,g=r`
|
|
154
132
|
:host([slide]:not([loading])) #fab {
|
|
155
133
|
display: grid;
|
|
156
134
|
grid-template-columns: var(--_circleSize) 0fr;
|
|
@@ -198,7 +176,7 @@ import{a as f,b as p}from"./chunks/chunk-MBF52GEL.js";import{a as u}from"./chunk
|
|
|
198
176
|
margin-inline-start: var(--_gap);
|
|
199
177
|
opacity: 1;
|
|
200
178
|
}
|
|
201
|
-
`,
|
|
179
|
+
`,y=r`
|
|
202
180
|
:host([position]) {
|
|
203
181
|
position: fixed;
|
|
204
182
|
z-index: var(--fab-z-index, 40);
|
|
@@ -219,7 +197,7 @@ import{a as f,b as p}from"./chunks/chunk-MBF52GEL.js";import{a as u}from"./chunk
|
|
|
219
197
|
top: var(--fab-offset, var(--eun-space-l, 32px));
|
|
220
198
|
left: var(--fab-offset, var(--eun-space-l, 32px));
|
|
221
199
|
}
|
|
222
|
-
`,
|
|
200
|
+
`,x=[u,m,g,y];var k="eun-fab",o=class extends f(b(h(v(p)))){constructor(){super(...arguments);this.loadingLabel="Loading\u2026"}updated(e){if(super.updated(e),e.has("label")&&(this.slide=!!this.label),e.has("href")||e.has("disabled")||e.has("loading")){let s=this.disabled||this.loading;this.href&&!s?this.removeAttribute("tabindex"):this.setAttribute("tabindex",s?"-1":"0")}}handleLinkClick(e){this.download||c(this,e,this.href,this.target)}get isBlank(){return!!this.href&&this.target==="_blank"}renderExternalLinkHint(){if(!this.isBlank||this.ariaLabel)return l;let e=this.dictionary.link.opensInNewTab;return i`<span class="sr-only"> (${e})</span>`}renderLabel(){return this.isBlank?i`<span id="label"
|
|
223
201
|
>${this.label}<span id="external-link-icon"
|
|
224
202
|
><eun-icon name="arrow_forward" shape="round" size="12"></eun-icon
|
|
225
203
|
>${this.renderExternalLinkHint()}</span
|
|
@@ -237,22 +215,22 @@ import{a as f,b as p}from"./chunks/chunk-MBF52GEL.js";import{a as u}from"./chunk
|
|
|
237
215
|
>${this.loadingLabel}</span
|
|
238
216
|
>
|
|
239
217
|
</span>
|
|
240
|
-
`:e}render(){let e=this.renderContent(),
|
|
218
|
+
`:e}render(){let e=this.renderContent(),s=this.disabled||this.loading;return this.href?i`
|
|
241
219
|
<a
|
|
242
220
|
id="fab"
|
|
243
|
-
href=${
|
|
244
|
-
target=${
|
|
245
|
-
rel=${
|
|
246
|
-
download=${
|
|
247
|
-
aria-label=${
|
|
248
|
-
aria-disabled=${
|
|
249
|
-
aria-busy=${
|
|
221
|
+
href=${t(s?void 0:this.href)}
|
|
222
|
+
target=${t(this.target)}
|
|
223
|
+
rel=${t(this.isBlank?"noopener noreferrer":void 0)}
|
|
224
|
+
download=${t(this.download)}
|
|
225
|
+
aria-label=${t(this.isBlank&&this.ariaLabel?`${this.ariaLabel} (${this.dictionary.link.opensInNewTab})`:this.ariaLabel??void 0)}
|
|
226
|
+
aria-disabled=${t(this.disabled?"true":void 0)}
|
|
227
|
+
aria-busy=${t(this.loading?"true":void 0)}
|
|
250
228
|
@click=${this.handleLinkClick}
|
|
251
229
|
>
|
|
252
230
|
${e}
|
|
253
231
|
</a>
|
|
254
232
|
`:i`
|
|
255
|
-
<div id="fab" aria-busy=${
|
|
233
|
+
<div id="fab" aria-busy=${t(this.loading?"true":void 0)}>
|
|
256
234
|
${e}
|
|
257
235
|
</div>
|
|
258
|
-
`}};
|
|
236
|
+
`}};o.styles=x,a([n()],o.prototype,"icon",2),a([n()],o.prototype,"label",2),a([n({reflect:!0})],o.prototype,"position",2),a([n({attribute:"loading-label"})],o.prototype,"loadingLabel",2),o=a([d(k)],o);export{o as EunomiaFab,k as EunomiaFabTagName};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"./chunks/chunk-
|
|
1
|
+
import{a,b,c}from"./chunks/chunk-JRGM3W7I.js";import"./chunks/chunk-MMLIPCOY.js";import"./chunks/chunk-SGM2X2TC.js";import"./chunks/chunk-XH6NREVZ.js";export{c as EunomiaIcon,a as EunomiaIconTagName,b as setIconBaseUrl};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as s,b as n}from"./chunks/chunk-
|
|
1
|
+
import{a as s,b as n}from"./chunks/chunk-SD2WHGPF.js";import"./chunks/chunk-SJWRE6PW.js";import"./chunks/chunk-5EVP7YNE.js";import"./chunks/chunk-5GKM5DIB.js";import{a,f as t,g as d,n as e,s as i}from"./chunks/chunk-XH6NREVZ.js";var l=d`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
position: relative;
|
|
@@ -11,8 +11,8 @@ import{a as s,b as n}from"./chunks/chunk-5RCCZVFZ.js";import"./chunks/chunk-BKHD
|
|
|
11
11
|
box-sizing: border-box;
|
|
12
12
|
height: 100%;
|
|
13
13
|
overflow: hidden;
|
|
14
|
-
border-radius: var(--card-border-radius, var(--eun-
|
|
15
|
-
border: var(--card-border-width, var(--eun-
|
|
14
|
+
border-radius: var(--card-border-radius, var(--eun-border-radius-m, 8px));
|
|
15
|
+
border: var(--card-border-width, var(--eun-border-width-s, 1px)) solid
|
|
16
16
|
var(--card-border-color, var(--eun-border-color, #dee0e7));
|
|
17
17
|
background: var(--card-background, var(--eun-surface-color, #ffffff));
|
|
18
18
|
box-shadow: var(--card-shadow, none);
|
|
@@ -27,12 +27,19 @@ import{a as s,b as n}from"./chunks/chunk-5RCCZVFZ.js";import"./chunks/chunk-BKHD
|
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
:host {
|
|
31
|
+
--_hoverBorderDefault: var(
|
|
32
|
+
--card-border-color,
|
|
33
|
+
var(--eun-border-color, #dee0e7)
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
:host([href]) {
|
|
37
|
+
--_hoverBorderDefault: var(--eun-color-primary-500, #3d6fff);
|
|
38
|
+
}
|
|
39
|
+
|
|
30
40
|
#card:hover,
|
|
31
41
|
#card:focus-visible {
|
|
32
|
-
border-color: var(
|
|
33
|
-
--card-hover-border-color,
|
|
34
|
-
var(--eun-color-primary-500, #3d6fff)
|
|
35
|
-
);
|
|
42
|
+
border-color: var(--card-hover-border-color, var(--_hoverBorderDefault));
|
|
36
43
|
background: var(
|
|
37
44
|
--card-hover-background,
|
|
38
45
|
var(--card-background, var(--eun-surface-color, #ffffff))
|
|
@@ -76,14 +83,14 @@ import{a as s,b as n}from"./chunks/chunk-5RCCZVFZ.js";import"./chunks/chunk-BKHD
|
|
|
76
83
|
}
|
|
77
84
|
|
|
78
85
|
::slotted([slot="title"]) {
|
|
79
|
-
font-weight: var(--eun-
|
|
80
|
-
font-size: var(--image-card-title-size, var(--eun-
|
|
86
|
+
font-weight: var(--eun-font-weight-l, 700);
|
|
87
|
+
font-size: var(--image-card-title-size, var(--eun-font-size-m, 16px));
|
|
81
88
|
color: var(--eun-text-color, #071621);
|
|
82
89
|
}
|
|
83
90
|
|
|
84
91
|
::slotted([slot="description"]) {
|
|
85
|
-
font-weight: var(--eun-
|
|
86
|
-
font-size: var(--image-card-description-size, var(--eun-
|
|
92
|
+
font-weight: var(--eun-font-weight-s, 300);
|
|
93
|
+
font-size: var(--image-card-description-size, var(--eun-font-size-s, 14px));
|
|
87
94
|
color: var(--eun-text-secondary, #484e61);
|
|
88
95
|
}
|
|
89
96
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as L}from"./chunks/chunk-E5LQKBFI.js";import{a as
|
|
1
|
+
import{a as L}from"./chunks/chunk-E5LQKBFI.js";import{a as D}from"./chunks/chunk-SD2H5UDZ.js";import{a as k}from"./chunks/chunk-VRGRCYIO.js";import{a as c}from"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js";import{a as I}from"./chunks/chunk-SJWRE6PW.js";import{a as n,f as w,g as T,h as s,i as g,j as p,n as o,p as l,s as $}from"./chunks/chunk-XH6NREVZ.js";var m=class P extends Event{static{this.eventName="eunimagechange"}constructor(v){super(P.eventName,{bubbles:!0,composed:!1}),this.index=v.index,this.count=v.count}};var S=T`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
--_magnifierZoom: 2.5;
|
|
@@ -29,11 +29,11 @@ import{a as L}from"./chunks/chunk-E5LQKBFI.js";import{a as k}from"./chunks/chunk
|
|
|
29
29
|
aspect-ratio: var(--image-carousel-aspect-ratio, 4 / 3);
|
|
30
30
|
border-radius: var(
|
|
31
31
|
--image-carousel-border-radius,
|
|
32
|
-
var(--eun-
|
|
32
|
+
var(--eun-border-radius-m, 8px)
|
|
33
33
|
);
|
|
34
34
|
background: var(
|
|
35
35
|
--image-carousel-background,
|
|
36
|
-
var(--eun-
|
|
36
|
+
var(--eun-surface-sunken, #f7f8fa)
|
|
37
37
|
);
|
|
38
38
|
outline: 3px solid transparent;
|
|
39
39
|
transition: outline-color 0.2s ease-out;
|
|
@@ -216,10 +216,10 @@ import{a as L}from"./chunks/chunk-E5LQKBFI.js";import{a as k}from"./chunks/chunk
|
|
|
216
216
|
bottom: var(--eun-space-s, 8px);
|
|
217
217
|
z-index: 3;
|
|
218
218
|
padding: 2px 8px;
|
|
219
|
-
border-radius: var(--eun-
|
|
219
|
+
border-radius: var(--eun-border-radius-full, 999px);
|
|
220
220
|
background: rgba(7, 22, 33, 0.55);
|
|
221
221
|
color: #fff;
|
|
222
|
-
font-size: var(--eun-
|
|
222
|
+
font-size: var(--eun-font-size-xs, 12px);
|
|
223
223
|
pointer-events: none;
|
|
224
224
|
}
|
|
225
225
|
|
|
@@ -242,8 +242,8 @@ import{a as L}from"./chunks/chunk-E5LQKBFI.js";import{a as k}from"./chunks/chunk
|
|
|
242
242
|
width: var(--image-carousel-thumbnail-size, 64px);
|
|
243
243
|
height: var(--image-carousel-thumbnail-size, 64px);
|
|
244
244
|
overflow: hidden;
|
|
245
|
-
border: var(--eun-
|
|
246
|
-
border-radius: var(--eun-
|
|
245
|
+
border: var(--eun-border-width-m, 1.5px) solid transparent;
|
|
246
|
+
border-radius: var(--eun-border-radius-s, 6px);
|
|
247
247
|
cursor: pointer;
|
|
248
248
|
opacity: 0.6;
|
|
249
249
|
outline: 2px solid transparent;
|
|
@@ -300,7 +300,7 @@ import{a as L}from"./chunks/chunk-E5LQKBFI.js";import{a as k}from"./chunks/chunk
|
|
|
300
300
|
}
|
|
301
301
|
.dot[aria-current="true"] {
|
|
302
302
|
width: calc(var(--image-carousel-dot-size, 8px) * 3.5);
|
|
303
|
-
border-radius: var(--eun-
|
|
303
|
+
border-radius: var(--eun-border-radius-full, 999px);
|
|
304
304
|
background: var(
|
|
305
305
|
--image-carousel-dot-active-color,
|
|
306
306
|
var(--eun-color-primary-500, #3d6fff)
|
|
@@ -336,7 +336,7 @@ import{a as L}from"./chunks/chunk-E5LQKBFI.js";import{a as k}from"./chunks/chunk
|
|
|
336
336
|
object-fit: contain;
|
|
337
337
|
border-radius: var(
|
|
338
338
|
--image-carousel-lightbox-image-radius,
|
|
339
|
-
var(--eun-
|
|
339
|
+
var(--eun-border-radius-m, 8px)
|
|
340
340
|
);
|
|
341
341
|
}
|
|
342
342
|
|
|
@@ -383,10 +383,10 @@ import{a as L}from"./chunks/chunk-E5LQKBFI.js";import{a as k}from"./chunks/chunk
|
|
|
383
383
|
transform: translateX(-50%);
|
|
384
384
|
z-index: 3;
|
|
385
385
|
padding: 4px 10px;
|
|
386
|
-
border-radius: var(--eun-
|
|
386
|
+
border-radius: var(--eun-border-radius-full, 999px);
|
|
387
387
|
background: rgba(0, 0, 0, 0.55);
|
|
388
388
|
color: #fff;
|
|
389
|
-
font-size: var(--eun-
|
|
389
|
+
font-size: var(--eun-font-size-xs, 12px);
|
|
390
390
|
}
|
|
391
391
|
|
|
392
392
|
#lightbox-grid {
|
|
@@ -399,7 +399,7 @@ import{a as L}from"./chunks/chunk-E5LQKBFI.js";import{a as k}from"./chunks/chunk
|
|
|
399
399
|
padding: var(--eun-space-s, 8px);
|
|
400
400
|
overflow-y: auto;
|
|
401
401
|
background: var(--eun-surface-color, #ffffff);
|
|
402
|
-
border-left: var(--eun-
|
|
402
|
+
border-left: var(--eun-border-width-s, 1px) solid
|
|
403
403
|
var(--eun-border-color, #dee0e7);
|
|
404
404
|
}
|
|
405
405
|
.grid-item {
|
|
@@ -407,8 +407,8 @@ import{a as L}from"./chunks/chunk-E5LQKBFI.js";import{a as k}from"./chunks/chunk
|
|
|
407
407
|
box-sizing: border-box;
|
|
408
408
|
aspect-ratio: 1;
|
|
409
409
|
overflow: hidden;
|
|
410
|
-
border: var(--eun-
|
|
411
|
-
border-radius: var(--eun-
|
|
410
|
+
border: var(--eun-border-width-m, 1.5px) solid transparent;
|
|
411
|
+
border-radius: var(--eun-border-radius-s, 6px);
|
|
412
412
|
cursor: pointer;
|
|
413
413
|
opacity: 0.7;
|
|
414
414
|
transition:
|
|
@@ -433,7 +433,7 @@ import{a as L}from"./chunks/chunk-E5LQKBFI.js";import{a as k}from"./chunks/chunk
|
|
|
433
433
|
outline-offset: 2px;
|
|
434
434
|
}
|
|
435
435
|
|
|
436
|
-
@media (max-width: ${
|
|
436
|
+
@media (max-width: ${k.mobile}px) {
|
|
437
437
|
#lightbox {
|
|
438
438
|
flex-direction: column;
|
|
439
439
|
}
|
|
@@ -445,7 +445,7 @@ import{a as L}from"./chunks/chunk-E5LQKBFI.js";import{a as k}from"./chunks/chunk
|
|
|
445
445
|
max-height: none;
|
|
446
446
|
overflow-x: auto;
|
|
447
447
|
overflow-y: hidden;
|
|
448
|
-
border-top: var(--eun-
|
|
448
|
+
border-top: var(--eun-border-width-s, 1px) solid
|
|
449
449
|
var(--eun-border-color, #dee0e7);
|
|
450
450
|
border-left: none;
|
|
451
451
|
}
|
|
@@ -465,7 +465,7 @@ import{a as L}from"./chunks/chunk-E5LQKBFI.js";import{a as k}from"./chunks/chunk
|
|
|
465
465
|
animation: none !important;
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
`,E=S;var
|
|
468
|
+
`,E=S;var M="eun-image-carousel",r=class extends I($){constructor(){super(...arguments);this.images=[];this.activeIndex=0;this.magnifier=!1;this.magnifierZoom=2.5;this.showThumbnails=!0;this.showDots=!0;this.lightbox=!0;this.lightboxGrid=!0;this.loop=!1;this.transition="slide";this.autoplay=!1;this.autoplayInterval=4e3;this.ariaLabelPrevious="Previous image";this.ariaLabelNext="Next image";this.ariaLabelExpand="View full-size image";this.ariaLabelLightbox="Image viewer";this.announcement="";this.transitionDirection=1;this.dragActive=!1;this.dragDirection=1;this.dragHasTarget=!1;this.suppressNextClick=!1;this.manuallyPaused=!1;this.scheduleAnnounce=D(()=>{this.announcement=this.buildAnnouncement()},150);this.handleTransientPause=()=>{this.stopAutoplay()};this.handleTransientResume=()=>{this.startAutoplay()};this.handleStageDragMove=e=>{this.dragActive||this.beginImageDrag(e),this.updateImageDragPosition(e)};this.handleStageDragEnd=(e,t)=>{this.dragActive&&(this.suppressNextClick=!0,this.settleImageDrag(t&&this.dragHasTarget))};this.handleStageDragCancel=()=>{this.dragActive&&(this.suppressNextClick=!0,this.settleImageDrag(!1))};this.handleLeaveAnimationEnd=()=>{this.previousImage=void 0};this.handleKeydown=e=>{switch(e.key){case"ArrowLeft":e.preventDefault(),this.previous();break;case"ArrowRight":e.preventDefault(),this.next();break;case"Home":e.preventDefault(),this.goToIndex(0,-1);break;case"End":e.preventDefault(),this.goToIndex(this.images.length-1,1);break;default:break}};this.handlePointerEnter=e=>{!this.magnifier||e.pointerType==="touch"||this.mainImageEl?.classList.add("zoomed")};this.handlePointerMove=e=>{if(!this.magnifier||e.pointerType==="touch")return;let{clientX:t,clientY:i}=e;this.pointerRaf===void 0&&(this.pointerRaf=requestAnimationFrame(()=>{this.pointerRaf=void 0,this.updateMagnifierOrigin(t,i)}))};this.handlePointerLeave=()=>{this.mainImageEl?.classList.remove("zoomed")};this.handleSwipeStart=e=>{e.pointerType==="touch"&&(this.swipeStart={x:e.clientX,y:e.clientY})};this.handleSwipeEnd=e=>{let t=this.swipeStart;if(this.swipeStart=void 0,e.pointerType!=="touch"||!t)return;let i=e.clientX-t.x,a=e.clientY-t.y;Math.abs(i)<r.SWIPE_THRESHOLD||Math.abs(i)<Math.abs(a)||(this.suppressNextClick=!0,i<0?this.next():this.previous())};this.handleSwipeCancel=()=>{this.swipeStart=void 0};this.handleExpandClick=()=>{if(this.suppressNextClick){this.suppressNextClick=!1;return}this.openLightbox()}}connectedCallback(){super.connectedCallback?.(),this.addEventListener("mouseenter",this.handleTransientPause),this.addEventListener("mouseleave",this.handleTransientResume),this.addEventListener("focusin",this.handleTransientPause),this.addEventListener("focusout",this.handleTransientResume)}willUpdate(e){if(super.willUpdate(e),e.has("images")){let t=Math.max(0,this.images.length-1);this.activeIndex>t&&(this.activeIndex=t)}if(e.has("activeIndex")||e.has("loop")||e.has("images")){let t=this.shadowRoot?.activeElement;this.focusedNavButton=t instanceof HTMLButtonElement&&this.isNavButton(t)?t:void 0}}updated(e){super.updated(e),e.has("magnifierZoom")&&this.style.setProperty("--_magnifierZoom",String(this.magnifierZoom)),(e.has("autoplay")||e.has("images"))&&(this.autoplay?this.startAutoplay():this.stopAutoplay()),this.focusedNavButton&&(this.restoreNavFocusIfDisabled(this.focusedNavButton),this.focusedNavButton=void 0),!this.swipeGesture&&this.stageEl&&(this.swipeGesture=L(this.stageEl,{threshold:r.SWIPE_THRESHOLD,onDragMove:this.handleStageDragMove,onDragEnd:this.handleStageDragEnd,onDragCancel:this.handleStageDragCancel}))}isNavButton(e){return e.classList.contains("stage-nav")||e.classList.contains("lightbox-nav")}restoreNavFocusIfDisabled(e){if(!e.isConnected||!e.disabled)return;let t=e.classList.contains("stage-nav")?".stage-nav":".lightbox-nav";Array.from(this.shadowRoot?.querySelectorAll(t)??[]).find(a=>a!==e&&!a.disabled)?.focus()}disconnectedCallback(){this.stopAutoplay(),this.removeEventListener("mouseenter",this.handleTransientPause),this.removeEventListener("mouseleave",this.handleTransientResume),this.removeEventListener("focusin",this.handleTransientPause),this.removeEventListener("focusout",this.handleTransientResume),this.pointerRaf!==void 0&&cancelAnimationFrame(this.pointerRaf),this.swipeGesture?.destroy(),this.dragPreviewEl?.remove(),super.disconnectedCallback?.()}startAutoplay(){this.autoplayTimer||!this.autoplay||this.manuallyPaused||this.images.length<=1||(this.autoplayTimer=setInterval(()=>this.next(),this.autoplayInterval))}stopAutoplay(){clearInterval(this.autoplayTimer),this.autoplayTimer=void 0}pauseAutoplay(){this.manuallyPaused=!0,this.stopAutoplay()}resumeAutoplay(){this.manuallyPaused=!1,this.startAutoplay()}previous(){this.goToIndex(this.activeIndex-1,-1)}next(){this.goToIndex(this.activeIndex+1,1)}goTo(e){this.goToIndex(e)}openLightbox(e){this.images.length&&(typeof e=="number"&&this.goToIndex(e),this.handleTransientPause(),this.modalEl?.show())}closeLightbox(){this.modalEl?.hide(),this.handleTransientResume()}goToIndex(e,t,i){let a=this.images.length;if(a===0)return;let d=a-1,u=this.loop?(e%a+a)%a:Math.max(0,Math.min(e,d));if(u===this.activeIndex)return;let h=this.images[this.activeIndex];this.transitionDirection=t??(u>this.activeIndex?1:-1),this.activeIndex=u,i?.skipTransition||this.beginTransition(h),this.resetMagnifier(),this.scheduleAnnounce(),this.dispatchEvent(new m({index:u,count:a}))}beginImageDrag(e){this.dragActive=!0,this.dragDirection=e<0?1:-1;let t=this.images.length,i=this.activeIndex+this.dragDirection;if(this.dragHasTarget=this.loop?t>1:i>=0&&i<t,this.dragTargetIndex=this.dragHasTarget?(i%t+t)%t:void 0,this.mainImageEl&&(this.mainImageEl.style.transition="none"),this.dragTargetIndex===void 0||!this.stageImagesEl)return;let a=document.createElement("img");a.className="img-layer",a.src=this.images[this.dragTargetIndex].src,a.alt="",a.setAttribute("aria-hidden","true"),this.stageImagesEl.appendChild(a),this.dragPreviewEl=a}updateImageDragPosition(e){let t=this.mainImageEl;if(t){if(!this.dragHasTarget){t.style.transform=`translateX(${e*r.EDGE_RESISTANCE}px)`;return}t.style.transform=`translateX(${e}px)`,this.dragPreviewEl&&(this.dragPreviewEl.style.transform=`translateX(calc(${this.dragDirection*100}% + ${e}px))`)}}settleImageDrag(e){let t=this.mainImageEl,i=this.dragPreviewEl,a=this.dragDirection,d=e?`${-a*100}%`:"0px",u=e?"0px":`${a*100}%`,h=getComputedStyle(this).getPropertyValue("--_swipe-duration"),b=Number.parseFloat(h)<=0,f=b?"none":"transform var(--_swipe-duration) ease-out";if(t&&(t.style.transition=f,t.style.transform=`translateX(${d})`),i&&(i.style.transition=f,i.style.transform=`translateX(${u})`),b){this.finalizeImageDrag(e);return}let x=!1,y=()=>{x||(x=!0,this.finalizeImageDrag(e))};t?.addEventListener("transitionend",y,{once:!0}),window.setTimeout(y,Number.parseFloat(h)||260)}finalizeImageDrag(e){let t=this.mainImageEl,i=this.dragPreviewEl,a=this.dragTargetIndex,d=this.dragDirection;this.dragActive=!1,this.dragTargetIndex=void 0,this.dragHasTarget=!1,this.dragPreviewEl=void 0;let u=()=>{t&&(t.style.transition="none",t.style.removeProperty("transform")),i?.remove(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{t?.style.removeProperty("transition")})})};e&&a!==void 0?(this.goToIndex(a,d,{skipTransition:!0}),this.updateComplete.then(u)):u()}resetMagnifier(){this.mainImageEl?.classList.remove("zoomed")}beginTransition(e){if(this.transition==="none"||this.prefersReducedMotion()){this.previousImage=void 0;return}this.previousImage=e}prefersReducedMotion(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}buildAnnouncement(){if(!this.images.length)return"";let e=this.images[this.activeIndex],t=`Image ${this.activeIndex+1} of ${this.images.length}`;return e?.alt?`${t}: ${e.alt}`:t}updateMagnifierOrigin(e,t){let i=this.mainImageEl;if(!i)return;let a=i.getBoundingClientRect(),d=Math.min(100,Math.max(0,(e-a.left)/a.width*100)),u=Math.min(100,Math.max(0,(t-a.top)/a.height*100));i.style.setProperty("transform-origin",`${d}% ${u}%`)}layerClasses(e){let t=!!this.previousImage;return{"img-layer":!0,[e]:t,[`transition-${this.transition}`]:t,"dir-next":t&&this.transitionDirection===1,"dir-prev":t&&this.transitionDirection===-1}}renderMainImage(e,t){let i=o`
|
|
469
469
|
<div id="stage-images">
|
|
470
470
|
${this.previousImage?o`
|
|
471
471
|
<img
|
|
@@ -641,4 +641,4 @@ import{a as L}from"./chunks/chunk-E5LQKBFI.js";import{a as k}from"./chunks/chunk
|
|
|
641
641
|
<span class="sr-only" role="status" aria-live="polite"
|
|
642
642
|
>${this.announcement}</span
|
|
643
643
|
>
|
|
644
|
-
`}};r.styles=E,r.SWIPE_THRESHOLD=40,r.EDGE_RESISTANCE=.3,n([s({type:Array,reflect:!0})],r.prototype,"images",2),n([s({type:Number,attribute:"active-index"})],r.prototype,"activeIndex",2),n([s({type:Boolean,reflect:!0})],r.prototype,"magnifier",2),n([s({type:Number,attribute:"magnifier-zoom"})],r.prototype,"magnifierZoom",2),n([s({type:Boolean,attribute:"show-thumbnails"})],r.prototype,"showThumbnails",2),n([s({type:Boolean,attribute:"show-dots"})],r.prototype,"showDots",2),n([s({type:Boolean})],r.prototype,"lightbox",2),n([s({type:Boolean,attribute:"lightbox-grid"})],r.prototype,"lightboxGrid",2),n([s({type:Boolean})],r.prototype,"loop",2),n([s({reflect:!0})],r.prototype,"transition",2),n([s({type:Boolean})],r.prototype,"autoplay",2),n([s({type:Number,attribute:"autoplay-interval"})],r.prototype,"autoplayInterval",2),n([s({attribute:"aria-label-previous"})],r.prototype,"ariaLabelPrevious",2),n([s({attribute:"aria-label-next"})],r.prototype,"ariaLabelNext",2),n([s({attribute:"aria-label-expand"})],r.prototype,"ariaLabelExpand",2),n([s({attribute:"aria-label-lightbox"})],r.prototype,"ariaLabelLightbox",2),n([g()],r.prototype,"announcement",2),n([g()],r.prototype,"previousImage",2),n([g()],r.prototype,"transitionDirection",2),n([p("#modal")],r.prototype,"modalEl",2),n([p("#main-image")],r.prototype,"mainImageEl",2),n([p("#stage")],r.prototype,"stageEl",2),n([p("#stage-images")],r.prototype,"stageImagesEl",2),r=n([w(
|
|
644
|
+
`}};r.styles=E,r.SWIPE_THRESHOLD=40,r.EDGE_RESISTANCE=.3,n([s({type:Array,reflect:!0})],r.prototype,"images",2),n([s({type:Number,attribute:"active-index"})],r.prototype,"activeIndex",2),n([s({type:Boolean,reflect:!0})],r.prototype,"magnifier",2),n([s({type:Number,attribute:"magnifier-zoom"})],r.prototype,"magnifierZoom",2),n([s({type:Boolean,attribute:"show-thumbnails"})],r.prototype,"showThumbnails",2),n([s({type:Boolean,attribute:"show-dots"})],r.prototype,"showDots",2),n([s({type:Boolean})],r.prototype,"lightbox",2),n([s({type:Boolean,attribute:"lightbox-grid"})],r.prototype,"lightboxGrid",2),n([s({type:Boolean})],r.prototype,"loop",2),n([s({reflect:!0})],r.prototype,"transition",2),n([s({type:Boolean})],r.prototype,"autoplay",2),n([s({type:Number,attribute:"autoplay-interval"})],r.prototype,"autoplayInterval",2),n([s({attribute:"aria-label-previous"})],r.prototype,"ariaLabelPrevious",2),n([s({attribute:"aria-label-next"})],r.prototype,"ariaLabelNext",2),n([s({attribute:"aria-label-expand"})],r.prototype,"ariaLabelExpand",2),n([s({attribute:"aria-label-lightbox"})],r.prototype,"ariaLabelLightbox",2),n([g()],r.prototype,"announcement",2),n([g()],r.prototype,"previousImage",2),n([g()],r.prototype,"transitionDirection",2),n([p("#modal")],r.prototype,"modalEl",2),n([p("#main-image")],r.prototype,"mainImageEl",2),n([p("#stage")],r.prototype,"stageEl",2),n([p("#stage-images")],r.prototype,"stageImagesEl",2),r=n([w(M)],r);export{r as EunomiaImageCarousel,M as EunomiaImageCarouselTagName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as K,b as G}from"./chunks/chunk-ZYC7DHES.js";import"./chunks/chunk-
|
|
1
|
+
import{a as K,b as G}from"./chunks/chunk-ZYC7DHES.js";import"./chunks/chunk-5XJLIHAU.js";import"./chunks/chunk-MMLIPCOY.js";import"./chunks/chunk-A4EQSU36.js";import"./chunks/chunk-SGM2X2TC.js";import{a as q}from"./chunks/chunk-5EVP7YNE.js";import{a as c,b as t,c as u,d as p,e as l,f as B,g as R,h as f,i as I,j as L,n as _,s as U}from"./chunks/chunk-XH6NREVZ.js";var V=R`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as E}from"./chunks/chunk-GW3VP2L7.js";import{a as z,b as p,c as _,d as C,e as h}from"./chunks/chunk-
|
|
1
|
+
import{a as E}from"./chunks/chunk-GW3VP2L7.js";import{a as z,b as p,c as _,d as C,e as h}from"./chunks/chunk-OAULRKHQ.js";import{a as u}from"./chunks/chunk-YYCEPZUN.js";import{a as L}from"./chunks/chunk-32DTNR52.js";import{a as m}from"./chunks/chunk-5EVP7YNE.js";import{a as s,f as y,g as k,h as l,i as w,j as F,n as d,p as b,s as $}from"./chunks/chunk-XH6NREVZ.js";var v=class g extends Event{static{this.eventName="eunfilereject"}constructor(x){super(g.eventName,{bubbles:!0,composed:!1}),this.files=x}};var M=k`
|
|
2
2
|
:host {
|
|
3
3
|
--_borderColor: var(
|
|
4
4
|
--input-file-border-color,
|
|
@@ -28,7 +28,7 @@ import{a as E}from"./chunks/chunk-GW3VP2L7.js";import{a as z,b as p,c as _,d as
|
|
|
28
28
|
);
|
|
29
29
|
--_borderRadius: var(
|
|
30
30
|
--input-file-border-radius,
|
|
31
|
-
var(--eun-
|
|
31
|
+
var(--eun-border-radius-m, 8px)
|
|
32
32
|
);
|
|
33
33
|
--_itemBackground: var(
|
|
34
34
|
--input-file-item-background,
|
|
@@ -38,7 +38,7 @@ import{a as E}from"./chunks/chunk-GW3VP2L7.js";import{a as z,b as p,c as _,d as
|
|
|
38
38
|
--_gap: var(--input-file-gap, var(--eun-space-s, 8px));
|
|
39
39
|
--_thumbnailSize: var(--input-file-thumbnail-size, 96px);
|
|
40
40
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
41
|
-
font-size: var(--eun-
|
|
41
|
+
font-size: var(--eun-font-size-s, 14px);
|
|
42
42
|
color: var(--_textColor);
|
|
43
43
|
display: block;
|
|
44
44
|
width: 100%;
|
|
@@ -71,7 +71,7 @@ import{a as E}from"./chunks/chunk-GW3VP2L7.js";import{a as z,b as p,c as _,d as
|
|
|
71
71
|
justify-content: center;
|
|
72
72
|
gap: var(--eun-space-xs, 4px);
|
|
73
73
|
padding: var(--eun-space-l, 32px) var(--eun-space-m, 16px);
|
|
74
|
-
border: var(--eun-
|
|
74
|
+
border: var(--eun-border-width-m, 1.5px) dashed var(--_borderColor);
|
|
75
75
|
border-radius: var(--_borderRadius);
|
|
76
76
|
background-color: var(--_background);
|
|
77
77
|
text-align: center;
|
|
@@ -137,7 +137,7 @@ import{a as E}from"./chunks/chunk-GW3VP2L7.js";import{a as z,b as p,c as _,d as
|
|
|
137
137
|
justify-content: space-between;
|
|
138
138
|
gap: var(--eun-space-s, 8px);
|
|
139
139
|
flex-wrap: wrap;
|
|
140
|
-
font-size: var(--eun-
|
|
140
|
+
font-size: var(--eun-font-size-xs, 12px);
|
|
141
141
|
color: var(--_hintColor);
|
|
142
142
|
}
|
|
143
143
|
#header-actions {
|
|
@@ -155,7 +155,7 @@ import{a as E}from"./chunks/chunk-GW3VP2L7.js";import{a as z,b as p,c as _,d as
|
|
|
155
155
|
border: none;
|
|
156
156
|
padding: 0;
|
|
157
157
|
font: inherit;
|
|
158
|
-
font-size: var(--eun-
|
|
158
|
+
font-size: var(--eun-font-size-xs, 12px);
|
|
159
159
|
color: var(--eun-color-primary-500, #3d6fff);
|
|
160
160
|
cursor: pointer;
|
|
161
161
|
text-decoration: underline;
|
|
@@ -168,7 +168,7 @@ import{a as E}from"./chunks/chunk-GW3VP2L7.js";import{a as z,b as p,c as _,d as
|
|
|
168
168
|
.text-button:focus-visible {
|
|
169
169
|
outline: 2px solid var(--_focusIndicator);
|
|
170
170
|
outline-offset: 2px;
|
|
171
|
-
border-radius: var(--eun-
|
|
171
|
+
border-radius: var(--eun-border-radius-xs, 4px);
|
|
172
172
|
}
|
|
173
173
|
#items {
|
|
174
174
|
display: grid;
|
|
@@ -187,7 +187,7 @@ import{a as E}from"./chunks/chunk-GW3VP2L7.js";import{a as z,b as p,c as _,d as
|
|
|
187
187
|
position: relative;
|
|
188
188
|
display: flex;
|
|
189
189
|
background-color: var(--_itemBackground);
|
|
190
|
-
border: var(--eun-
|
|
190
|
+
border: var(--eun-border-width-m, 1.5px) solid var(--_itemBorderColor);
|
|
191
191
|
border-radius: var(--_borderRadius);
|
|
192
192
|
box-sizing: border-box;
|
|
193
193
|
cursor: pointer;
|
|
@@ -230,7 +230,7 @@ import{a as E}from"./chunks/chunk-GW3VP2L7.js";import{a as z,b as p,c as _,d as
|
|
|
230
230
|
white-space: nowrap;
|
|
231
231
|
}
|
|
232
232
|
.item-size {
|
|
233
|
-
font-size: var(--eun-
|
|
233
|
+
font-size: var(--eun-font-size-xs, 12px);
|
|
234
234
|
color: var(--_hintColor);
|
|
235
235
|
}
|
|
236
236
|
.item-checkbox {
|
|
@@ -249,7 +249,7 @@ import{a as E}from"./chunks/chunk-GW3VP2L7.js";import{a as z,b as p,c as _,d as
|
|
|
249
249
|
justify-content: center;
|
|
250
250
|
background: rgb(7 22 33 / 0.55);
|
|
251
251
|
border: none;
|
|
252
|
-
border-radius: var(--eun-
|
|
252
|
+
border-radius: var(--eun-border-radius-xl, 999px);
|
|
253
253
|
color: #fff;
|
|
254
254
|
cursor: pointer;
|
|
255
255
|
padding: 2px;
|
|
@@ -272,7 +272,7 @@ import{a as E}from"./chunks/chunk-GW3VP2L7.js";import{a as z,b as p,c as _,d as
|
|
|
272
272
|
outline: 2px solid var(--_focusIndicator);
|
|
273
273
|
outline-offset: 2px;
|
|
274
274
|
}
|
|
275
|
-
`,
|
|
275
|
+
`,R=M;var D="eun-input-file",j=L(C($)),B=E(z(_(j))),r=class extends B{constructor(){super(...arguments);this.kind="image";this.multiple=!1;this.selectable=!1;this.dropLabel="Drag and drop files here, or";this.browseLabel="browse files";this.ariaLabelRemove="Remove file";this.ariaLabelSelect="Select file";this.removeAllLabel="Remove all";this.selectAllLabel="Select all";this.deleteSelectedLabel="Delete selected";this.ariaLabelOpen="Open in a new tab";this.dragging=!1;this.selected=new Set;this.dragCounter=0;this.objectUrls=new Map;this.handleHostFocus=()=>{this.firstFocusable()?.focus()};this.handleNativeChange=e=>{let t=e.target;t.files?.length&&this.processFiles(t.files),t.value=""};this.handleDragEnter=e=>{this.disabled||this.readonly||!this.carriesFiles(e)||(e.preventDefault(),this.dragCounter+=1,this.dragging=!0)};this.handleDragOver=e=>{this.disabled||this.readonly||!this.carriesFiles(e)||e.preventDefault()};this.handleDragLeave=e=>{this.disabled||this.readonly||!this.carriesFiles(e)||(this.dragCounter=Math.max(this.dragCounter-1,0),this.dragCounter===0&&(this.dragging=!1))};this.handleDrop=e=>{if(e.preventDefault(),this.dragCounter=0,this.dragging=!1,this.disabled||this.readonly)return;let t=e.dataTransfer?.files;t?.length&&this.processFiles(t)}}connectedCallback(){super.connectedCallback?.(),this.addEventListener("focus",this.handleHostFocus),this.addEventListener("dragenter",this.handleDragEnter),this.addEventListener("dragover",this.handleDragOver),this.addEventListener("dragleave",this.handleDragLeave),this.addEventListener("drop",this.handleDrop)}disconnectedCallback(){this.removeEventListener("focus",this.handleHostFocus),this.removeEventListener("dragenter",this.handleDragEnter),this.removeEventListener("dragover",this.handleDragOver),this.removeEventListener("dragleave",this.handleDragLeave),this.removeEventListener("drop",this.handleDrop),this.objectUrls.forEach(e=>URL.revokeObjectURL(e)),this.objectUrls.clear(),super.disconnectedCallback?.()}firstFocusable(){return this.fieldEl??this.shadowRoot?.querySelector(".item")??void 0}updated(e){if(super.updated(e),e.has("value")){let t=new Set(this.value??[]);if(this.objectUrls.forEach((i,o)=>{t.has(o)||(URL.revokeObjectURL(i),this.objectUrls.delete(o))}),this.selected.size){let i=new Set(Array.from(this.selected).filter(o=>t.has(o)));i.size!==this.selected.size&&(this.selected=i)}}}getFocusAnchor(){return this.firstFocusable()}focus(){super.focus?.(),this.firstFocusable()?.focus()}get effectiveAccept(){return this.accept?this.accept:this.kind==="image"?"image/*":void 0}getObjectUrl(e){let t=this.objectUrls.get(e);return t||(t=URL.createObjectURL(e),this.objectUrls.set(e,t)),t}matchesAccept(e,t){let i=t.split(",").map(n=>n.trim().toLowerCase()).filter(Boolean);if(!i.length)return!0;let o=e.name.toLowerCase(),a=e.type.toLowerCase();return i.some(n=>n.startsWith(".")?o.endsWith(n):n.endsWith("/*")?a.startsWith(n.slice(0,-1)):a===n)}processFiles(e){if(this.disabled||this.readonly)return;let t=this.multiple?Array.from(e):Array.from(e).slice(0,1),i=[],o=this.effectiveAccept,a=[];t.forEach(c=>{if(o&&!this.matchesAccept(c,o)){i.push({file:c,reason:"type"});return}if(this.maxSize!=null&&c.size>this.maxSize){i.push({file:c,reason:"size"});return}a.push(c)});let n=this.value??[],f;if(this.multiple){if(this.maxFiles!=null){let c=Math.max(this.maxFiles-n.length,0);a.length>c&&(i.push(...a.slice(c).map(S=>({file:S,reason:"max-files"}))),a=a.slice(0,c))}f=[...n,...a]}else f=a;a.length&&(this.value=f,this.dispatchEvent(new u(this.value))),i.length&&this.dispatchEvent(new v(i))}carriesFiles(e){return!!e.dataTransfer?.types.includes("Files")}removeFile(e){let t=this.value??[],i=t.indexOf(e);if(i===-1)return;let o=t.filter(a=>a!==e);this.value=o,this.dispatchEvent(new u(this.value)),this.updateComplete.then(()=>{if(!o.length){this.firstFocusable()?.focus();return}let a=Array.from(this.shadowRoot?.querySelectorAll(".item")??[]);a[Math.min(i,a.length-1)]?.focus()})}removeAll(){this.selected=new Set,this.value=[],this.dispatchEvent(new u(this.value)),this.updateComplete.then(()=>this.firstFocusable()?.focus())}deleteSelected(){let t=(this.value??[]).filter(i=>!this.selected.has(i));this.selected=new Set,this.value=t,this.dispatchEvent(new u(this.value)),this.updateComplete.then(()=>this.firstFocusable()?.focus())}toggleSelected(e,t){let i=new Set(this.selected);t?i.add(e):i.delete(e),this.selected=i}toggleSelectAll(e){this.selected=e?new Set(this.value??[]):new Set}openFile(e){window.open(this.getObjectUrl(e),"_blank","noopener")}handleItemKeydown(e,t){if(!this.disabled){if(e.key==="Enter"||e.key===" "){e.preventDefault(),this.openFile(t);return}(e.key==="Delete"||e.key==="Backspace")&&(e.preventDefault(),this.removeFile(t))}}getFileIcon(e){return e.type==="application/pdf"?"picture_as_pdf":e.type.startsWith("image/")?"image":"insert_drive_file"}formatBytes(e){if(e<1024)return`${e} B`;let t=["KB","MB","GB","TB"],i=e/1024,o=0;for(;i>=1024&&o<t.length-1;)i/=1024,o+=1;let a=o===0||i>=10?0:1;return`${i.toFixed(a)} ${t[o]}`}renderDropzone(e,t){return d`
|
|
276
276
|
<label
|
|
277
277
|
id="dropzone"
|
|
278
278
|
aria-disabled=${e?"true":"false"}
|
|
@@ -386,4 +386,4 @@ import{a as E}from"./chunks/chunk-GW3VP2L7.js";import{a as z,b as p,c as _,d as
|
|
|
386
386
|
</div>
|
|
387
387
|
${e}
|
|
388
388
|
</div>
|
|
389
|
-
`}};r.styles=[
|
|
389
|
+
`}};r.styles=[R,h.base,h.errorMessages,h.hintMessages],s([l({reflect:!0})],r.prototype,"kind",2),s([l()],r.prototype,"accept",2),s([l({type:Boolean,reflect:!0})],r.prototype,"multiple",2),s([l({type:Number,attribute:"max-size"})],r.prototype,"maxSize",2),s([l({type:Number,attribute:"max-files"})],r.prototype,"maxFiles",2),s([l({type:Boolean,reflect:!0})],r.prototype,"selectable",2),s([l({attribute:"drop-label"})],r.prototype,"dropLabel",2),s([l({attribute:"browse-label"})],r.prototype,"browseLabel",2),s([l({attribute:"aria-label-remove"})],r.prototype,"ariaLabelRemove",2),s([l({attribute:"aria-label-select"})],r.prototype,"ariaLabelSelect",2),s([l({attribute:"remove-all-label"})],r.prototype,"removeAllLabel",2),s([l({attribute:"select-all-label"})],r.prototype,"selectAllLabel",2),s([l({attribute:"delete-selected-label"})],r.prototype,"deleteSelectedLabel",2),s([l({attribute:"aria-label-open"})],r.prototype,"ariaLabelOpen",2),s([l({type:Boolean,reflect:!0})],r.prototype,"dragging",2),s([w()],r.prototype,"selected",2),s([F("#field")],r.prototype,"fieldEl",2),r=s([y(D)],r);export{r as EunomiaInputFile,D as EunomiaInputFileTagName};
|