@eunomia/elements 1.0.0-beta.4 → 1.0.0-beta.6
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/breakpoints.d.ts +37 -10
- package/dist/breakpoints.js +38 -10
- package/dist/cdn/components/chunks/{chunk-MMLIPCOY.js → chunk-22D3SRFR.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-4MXL6PZC.js → chunk-2Y2EU2CI.js} +28 -28
- package/dist/cdn/components/chunks/chunk-3MTUVMM5.js +1 -0
- package/dist/cdn/components/chunks/chunk-4PI6RDUS.js +1 -0
- package/dist/cdn/components/chunks/chunk-5GKM5DIB.js +1 -0
- package/dist/cdn/components/chunks/chunk-624VJYNA.js +1 -0
- package/dist/cdn/components/chunks/{chunk-5XJLIHAU.js → chunk-7KKWYPHY.js} +4 -2
- package/dist/cdn/components/chunks/chunk-A3X4KD2X.js +1 -0
- package/dist/cdn/components/chunks/chunk-BKZGTCMF.js +1 -0
- package/dist/cdn/components/chunks/{chunk-GW3VP2L7.js → chunk-BO3JOEWM.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-NHFWATVN.js → chunk-BQFJR2UP.js} +5 -5
- package/dist/cdn/components/chunks/chunk-EUWUDCBZ.js +1 -0
- package/dist/cdn/components/chunks/{chunk-P32B7BFD.js → chunk-FF3I7C3C.js} +15 -15
- package/dist/cdn/components/chunks/{chunk-74AOAB4X.js → chunk-FOILAXLL.js} +6 -5
- package/dist/cdn/components/chunks/{chunk-E4IS25H7.js → chunk-G5SBDQQ3.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-LGLQ36QB.js → chunk-GDBPWZN6.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-S2UCEWNG.js → chunk-JYIIWN2P.js} +13 -11
- package/dist/cdn/components/chunks/{chunk-EOWBYZV7.js → chunk-KDN4O5W2.js} +26 -13
- package/dist/cdn/components/chunks/chunk-KSZRQRN4.js +1 -0
- package/dist/cdn/components/chunks/{chunk-PED5ATYN.js → chunk-L2ADCEN7.js} +1 -1
- package/dist/cdn/components/chunks/chunk-LMVW522V.js +1 -0
- package/dist/cdn/components/chunks/{chunk-5XJGYXW7.js → chunk-MOMYII3P.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-SIHZFOTK.js → chunk-MQQ4BGVJ.js} +5 -5
- package/dist/cdn/components/chunks/{chunk-A4EQSU36.js → chunk-O7PHBLH2.js} +1 -1
- package/dist/cdn/components/chunks/chunk-PD62MBOJ.js +1 -0
- package/dist/cdn/components/chunks/{chunk-KBH5PCUO.js → chunk-PE4DAXHQ.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-GSJEJLFA.js → chunk-PMPSJG5V.js} +7 -7
- package/dist/cdn/components/chunks/{chunk-5EVP7YNE.js → chunk-PPCHQG7P.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-EJIX2D4Z.js → chunk-QZ5SHR3I.js} +15 -11
- package/dist/cdn/components/chunks/chunk-RS7TWEMQ.js +1 -0
- package/dist/cdn/components/chunks/chunk-SMTIDNGW.js +1 -0
- package/dist/cdn/components/chunks/{chunk-YGUJJ25C.js → chunk-SZYEBMG6.js} +11 -10
- package/dist/cdn/components/chunks/chunk-UDVB4LAE.js +56 -0
- package/dist/cdn/components/chunks/{chunk-UAGCQF23.js → chunk-UYZR4JXZ.js} +17 -12
- package/dist/cdn/components/chunks/chunk-VG6NAAIV.js +1 -0
- package/dist/cdn/components/chunks/chunk-VJCNHMQZ.js +10 -0
- package/dist/cdn/components/chunks/chunk-VOTRXBDS.js +38 -0
- package/dist/cdn/components/chunks/{chunk-BMQOI7HX.js → chunk-VYFR364B.js} +128 -74
- package/dist/cdn/components/chunks/{chunk-IJ5WFMK4.js → chunk-XDPRWUKN.js} +7 -6
- package/dist/cdn/components/chunks/{chunk-XH6NREVZ.js → chunk-YITWLCD3.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-BQHYZB2W.js → chunk-ZBN4HTWP.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-RJCJXB7Y.js → chunk-ZKZV2YG5.js} +18 -18
- package/dist/cdn/components/eun-alert.js +24 -16
- package/dist/cdn/components/eun-animate.js +12 -6
- package/dist/cdn/components/eun-badge.js +7 -7
- package/dist/cdn/components/eun-breadcrumb.js +25 -41
- package/dist/cdn/components/eun-button.js +1 -1
- package/dist/cdn/components/eun-calendar.js +68 -66
- package/dist/cdn/components/eun-card.js +67 -13
- package/dist/cdn/components/eun-carousel.js +66 -35
- package/dist/cdn/components/eun-check-card.js +13 -6
- package/dist/cdn/components/eun-checkbox-list.js +4 -4
- package/dist/cdn/components/eun-checkbox.js +1 -1
- package/dist/cdn/components/eun-chip.js +1 -1
- package/dist/cdn/components/eun-collapse.js +87 -39
- package/dist/cdn/components/eun-color-picker.js +54 -53
- package/dist/cdn/components/eun-counter.js +14 -13
- package/dist/cdn/components/eun-date-picker.js +66 -63
- package/dist/cdn/components/eun-description-list.js +152 -0
- package/dist/cdn/components/eun-divider.js +1 -1
- package/dist/cdn/components/eun-drawer.js +26 -12
- package/dist/cdn/components/eun-dropdown-button.js +1 -1
- package/dist/cdn/components/eun-dropdown-item.js +6 -5
- package/dist/cdn/components/eun-fab.js +20 -19
- package/dist/cdn/components/eun-icon.js +1 -1
- package/dist/cdn/components/eun-image-card.js +79 -22
- package/dist/cdn/components/eun-image-carousel.js +92 -47
- package/dist/cdn/components/eun-infinite-list.js +23 -11
- package/dist/cdn/components/eun-input-file.js +14 -13
- package/dist/cdn/components/eun-input-phone.js +26 -26
- 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 +174 -27
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +29 -22
- package/dist/cdn/components/eun-pagination.js +17 -12
- package/dist/cdn/components/eun-password-strength.js +6 -2
- package/dist/cdn/components/eun-progress-bar.js +13 -5
- package/dist/cdn/components/eun-radio-card.js +16 -9
- package/dist/cdn/components/eun-radio-list.js +4 -4
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-scheduler-event-editor.js +8 -8
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +42 -42
- package/dist/cdn/components/eun-search.js +21 -20
- package/dist/cdn/components/eun-select.js +12 -11
- package/dist/cdn/components/eun-sidebar.js +34 -20
- package/dist/cdn/components/eun-skeleton.js +1 -1
- package/dist/cdn/components/eun-slider.js +15 -14
- package/dist/cdn/components/eun-sliding-card.js +8 -4
- package/dist/cdn/components/eun-step.js +17 -6
- package/dist/cdn/components/eun-stepper.js +17 -6
- package/dist/cdn/components/eun-switch.js +10 -8
- package/dist/cdn/components/eun-tab-group.js +22 -17
- package/dist/cdn/components/eun-tab-panel.js +11 -3
- 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 +572 -31
- package/dist/cdn/components/eun-tag.js +13 -7
- package/dist/cdn/components/eun-textarea.js +24 -24
- package/dist/cdn/components/eun-time-picker.js +21 -19
- package/dist/cdn/components/eun-toast.js +36 -16
- package/dist/cdn/components/eun-toggle-group.js +64 -37
- package/dist/cdn/components/eun-toggle-item.js +24 -21
- package/dist/cdn/components/eun-toggle.js +12 -10
- package/dist/cdn/components/eun-toolbar.js +62 -52
- package/dist/cdn/components/eun-tooltip.js +30 -14
- package/dist/cdn/styles/breakpoints.scss +8 -0
- package/dist/cdn/styles/eunomia-grid.scss +6 -0
- 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 +4 -3
- package/dist/cdn/styles/themes/mixins/eunomia-a11y-color.mixin.scss +34 -1
- package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +4 -0
- package/dist/cdn/styles/themes/mixins/eunomia-states.mixin.scss +36 -12
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
- package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +10 -10
- 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 +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +10 -10
- 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 +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +10 -10
- 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 +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +10 -10
- 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 +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +10 -10
- 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 +3 -2
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +10 -10
- package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +10 -10
- 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 +3 -2
- package/dist/cdn/styles/tools/indexes/eunomia-media-queries.index.scss +1 -3
- package/dist/cdn/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/dist/cdn/styles/tools/mixins/layout/eunomia-grid.mixin.scss +117 -53
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-media-queries.mixin.scss +69 -0
- package/dist/cdn/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +28 -4
- package/dist/cdn/styles/tools/mixins/settings/eunomia-motion.mixin.scss +9 -0
- package/dist/cdn/styles/tools/variables/eunomia.breakpoints.scss +4 -0
- package/dist/components/action/button/button.d.ts +51 -19
- package/dist/components/action/button/button.js +107 -24
- package/dist/components/action/button/button.styles.js +115 -62
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +10 -10
- package/dist/components/action/dropdown-button/dropdown-button.js +18 -17
- package/dist/components/action/dropdown-button/dropdown-button.styles.js +3 -2
- package/dist/components/action/dropdown-button/dropdown-item.js +5 -6
- package/dist/components/action/dropdown-button/dropdown-item.styles.js +3 -2
- package/dist/components/action/fab/fab.d.ts +7 -6
- package/dist/components/action/fab/fab.js +11 -8
- package/dist/components/action/fab/fab.styles.js +18 -17
- package/dist/components/action/link/link.d.ts +72 -9
- package/dist/components/action/link/link.js +183 -23
- package/dist/components/action/link/link.styles.js +146 -10
- package/dist/components/action/shared-styles/button-palette.styles.d.ts +3 -3
- package/dist/components/action/shared-styles/button-palette.styles.js +29 -29
- package/dist/components/action/toggle/toggle-group.d.ts +17 -5
- package/dist/components/action/toggle/toggle-group.js +46 -19
- package/dist/components/action/toggle/toggle-group.styles.d.ts +4 -1
- package/dist/components/action/toggle/toggle-group.styles.js +56 -27
- 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 +20 -17
- package/dist/components/action/toggle/toggle.d.ts +2 -0
- package/dist/components/action/toggle/toggle.js +2 -0
- package/dist/components/action/toggle/toggle.styles.d.ts +2 -0
- package/dist/components/action/toggle/toggle.styles.js +12 -8
- package/dist/components/alert/alert/alert.d.ts +2 -0
- package/dist/components/alert/alert/alert.js +2 -0
- package/dist/components/alert/alert/alert.styles.js +23 -13
- package/dist/components/alert/drawer/drawer.d.ts +3 -1
- package/dist/components/alert/drawer/drawer.js +5 -3
- package/dist/components/alert/drawer/drawer.styles.js +25 -9
- package/dist/components/alert/modal/modal.d.ts +11 -9
- package/dist/components/alert/modal/modal.js +15 -13
- package/dist/components/alert/modal/modal.styles.js +16 -7
- package/dist/components/alert/toast/toast.d.ts +2 -0
- package/dist/components/alert/toast/toast.js +2 -0
- package/dist/components/alert/toast/toast.styles.js +37 -15
- 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 +4 -4
- package/dist/components/content/card/card.d.ts +39 -7
- package/dist/components/content/card/card.js +71 -7
- package/dist/components/content/card/card.styles.js +58 -11
- package/dist/components/content/card/image-card.d.ts +62 -7
- package/dist/components/content/card/image-card.js +121 -11
- package/dist/components/content/card/image-card.styles.js +66 -15
- package/dist/components/content/card/sliding-card.d.ts +4 -1
- package/dist/components/content/card/sliding-card.js +3 -0
- package/dist/components/content/card/sliding-card.styles.js +5 -1
- package/dist/components/content/collapse/collapse.d.ts +39 -12
- package/dist/components/content/collapse/collapse.js +65 -25
- package/dist/components/content/collapse/collapse.styles.d.ts +10 -1
- package/dist/components/content/collapse/collapse.styles.js +69 -18
- package/dist/components/content/description-list/description-list.d.ts +87 -0
- package/dist/components/content/description-list/description-list.js +107 -0
- package/dist/components/content/description-list/description-list.styles.d.ts +1 -0
- package/dist/components/content/description-list/description-list.styles.js +185 -0
- package/dist/components/content/icon/icon.d.ts +14 -2
- package/dist/components/content/icon/icon.js +54 -22
- package/dist/components/content/icon/icon.style.d.ts +2 -0
- package/dist/components/content/icon/icon.style.js +8 -2
- package/dist/components/content/image-carousel/image-carousel.d.ts +30 -19
- package/dist/components/content/image-carousel/image-carousel.js +48 -45
- package/dist/components/content/image-carousel/image-carousel.styles.js +69 -30
- package/dist/components/content/password-strength/password-strength.styles.js +5 -1
- package/dist/components/content/progress-bar/progress-bar.styles.js +12 -4
- package/dist/components/content/shared-styles/card-link.styles.js +5 -3
- package/dist/components/content/shared-styles/tone-surface.styles.d.ts +5 -0
- package/dist/components/content/shared-styles/tone-surface.styles.js +19 -14
- package/dist/components/content/tag/tag.d.ts +4 -0
- package/dist/components/content/tag/tag.js +4 -0
- package/dist/components/content/tag/tag.styles.js +14 -4
- package/dist/components/content/tooltip/tooltip.d.ts +3 -2
- package/dist/components/content/tooltip/tooltip.js +9 -16
- package/dist/components/content/tooltip/tooltip.styles.js +25 -7
- package/dist/components/form/checkbox/check-card.d.ts +4 -1
- package/dist/components/form/checkbox/check-card.js +4 -1
- package/dist/components/form/checkbox/check-card.styles.js +13 -4
- package/dist/components/form/checkbox/checkbox-list.d.ts +4 -1
- package/dist/components/form/checkbox/checkbox-list.js +11 -7
- package/dist/components/form/checkbox/checkbox.d.ts +4 -1
- package/dist/components/form/checkbox/checkbox.js +4 -1
- package/dist/components/form/checkbox/checkbox.styles.js +2 -2
- package/dist/components/form/color-picker/color-picker.d.ts +10 -4
- package/dist/components/form/color-picker/color-picker.js +23 -25
- package/dist/components/form/color-picker/color-picker.styles.js +6 -5
- package/dist/components/form/counter/counter.d.ts +7 -4
- package/dist/components/form/counter/counter.js +8 -5
- package/dist/components/form/counter/counter.styles.js +10 -9
- package/dist/components/form/date-picker/date-picker.d.ts +40 -36
- package/dist/components/form/date-picker/date-picker.js +35 -45
- package/dist/components/form/date-picker/date-picker.styles.js +13 -10
- package/dist/components/form/input/input.d.ts +10 -4
- package/dist/components/form/input/input.js +12 -6
- package/dist/components/form/input-file/input-file.d.ts +4 -1
- package/dist/components/form/input-file/input-file.js +8 -5
- package/dist/components/form/input-file/input-file.styles.js +3 -2
- package/dist/components/form/input-phone/input-phone.d.ts +11 -5
- package/dist/components/form/input-phone/input-phone.js +16 -20
- package/dist/components/form/input-phone/input-phone.styles.js +16 -16
- package/dist/components/form/label/label.styles.js +3 -3
- package/dist/components/form/radio/radio-card.d.ts +5 -2
- package/dist/components/form/radio/radio-card.js +5 -2
- package/dist/components/form/radio/radio-card.styles.js +14 -5
- package/dist/components/form/radio/radio-list.d.ts +5 -2
- package/dist/components/form/radio/radio-list.js +14 -10
- package/dist/components/form/radio/radio.d.ts +5 -2
- package/dist/components/form/radio/radio.js +5 -2
- package/dist/components/form/radio/radio.styles.js +4 -4
- package/dist/components/form/search/search.d.ts +2 -1
- package/dist/components/form/search/search.js +6 -15
- package/dist/components/form/search/search.styles.js +8 -7
- package/dist/components/form/select/select.d.ts +12 -5
- package/dist/components/form/select/select.js +18 -21
- package/dist/components/form/select/select.styles.js +3 -2
- package/dist/components/form/shared-styles/card.styles.js +5 -4
- package/dist/components/form/shared-styles/field.styles.js +21 -11
- package/dist/components/form/shared-styles/form-labels.styles.js +1 -1
- package/dist/components/form/slider/slider.d.ts +4 -1
- package/dist/components/form/slider/slider.js +5 -2
- package/dist/components/form/slider/slider.styles.js +8 -7
- package/dist/components/form/switch/switch.d.ts +4 -1
- package/dist/components/form/switch/switch.js +4 -1
- package/dist/components/form/switch/switch.styles.js +7 -5
- package/dist/components/form/textarea/textarea.d.ts +10 -4
- package/dist/components/form/textarea/textarea.js +18 -12
- package/dist/components/form/time-picker/time-picker-columns.styles.js +4 -2
- package/dist/components/form/time-picker/time-picker-list.styles.js +2 -1
- package/dist/components/form/time-picker/time-picker.d.ts +9 -5
- package/dist/components/form/time-picker/time-picker.js +25 -29
- package/dist/components/form/time-picker/time-picker.styles.js +9 -8
- package/dist/components/layout/animate/animate.d.ts +41 -11
- package/dist/components/layout/animate/animate.js +48 -16
- package/dist/components/layout/animate/animate.styles.js +9 -16
- package/dist/components/layout/infinite-list/infinite-list.d.ts +33 -10
- package/dist/components/layout/infinite-list/infinite-list.js +115 -18
- package/dist/components/layout/infinite-list/infinite-list.styles.d.ts +3 -0
- package/dist/components/layout/infinite-list/infinite-list.styles.js +17 -5
- package/dist/components/loader/loader/loader.styles.js +3 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.d.ts +31 -45
- package/dist/components/navigation/breadcrumb/breadcrumb.js +111 -77
- package/dist/components/navigation/breadcrumb/breadcrumb.styles.d.ts +3 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.styles.js +22 -26
- package/dist/components/navigation/carousel/carousel.d.ts +30 -10
- package/dist/components/navigation/carousel/carousel.js +37 -18
- package/dist/components/navigation/carousel/carousel.styles.js +60 -20
- package/dist/components/navigation/pagination/pagination.styles.js +8 -3
- package/dist/components/navigation/sidebar/sidebar.d.ts +2 -0
- package/dist/components/navigation/sidebar/sidebar.js +2 -0
- package/dist/components/navigation/sidebar/sidebar.styles.js +27 -11
- package/dist/components/navigation/stepper/step.styles.js +16 -5
- package/dist/components/navigation/stepper/stepper.styles.js +16 -5
- package/dist/components/navigation/tabs/tab/tab.d.ts +11 -0
- package/dist/components/navigation/tabs/tab/tab.js +11 -0
- package/dist/components/navigation/tabs/tab/tab.styles.js +22 -16
- package/dist/components/navigation/tabs/tab-group/tab-group.js +7 -8
- package/dist/components/navigation/tabs/tab-group/tab-group.styles.js +19 -14
- package/dist/components/navigation/tabs/tab-panel/tab-panel.d.ts +4 -0
- package/dist/components/navigation/tabs/tab-panel/tab-panel.js +4 -0
- package/dist/components/navigation/tabs/tab-panel/tab-panel.styles.js +18 -1
- package/dist/components/navigation/toolbar/toolbar.d.ts +17 -49
- package/dist/components/navigation/toolbar/toolbar.js +23 -71
- package/dist/components/navigation/toolbar/toolbar.styles.js +59 -36
- package/dist/events/table-row-click.event.d.ts +5 -4
- package/dist/events/table-row-click.event.js +10 -5
- package/dist/features/scheduler/calendar/calendar.d.ts +12 -12
- package/dist/features/scheduler/calendar/calendar.js +15 -14
- package/dist/features/scheduler/calendar/calendar.styles.js +8 -6
- package/dist/features/scheduler/scheduler/scheduler.d.ts +7 -7
- package/dist/features/scheduler/scheduler/scheduler.js +21 -35
- package/dist/features/scheduler/scheduler/scheduler.styles.js +6 -4
- package/dist/features/scheduler/scheduler-event/scheduler-event.d.ts +12 -8
- package/dist/features/scheduler/scheduler-event/scheduler-event.js +9 -7
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +16 -10
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +5 -5
- package/dist/features/scheduler/shared/scheduler-event-popover.js +2 -2
- 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 +3 -3
- 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 +2 -2
- package/dist/features/scheduler/shared/scheduler-year-view.styles.js +2 -2
- package/dist/features/table/table/table-native.styles.d.ts +28 -0
- package/dist/features/table/table/table-native.styles.js +502 -0
- package/dist/features/table/table/table.d.ts +342 -294
- package/dist/features/table/table/table.js +820 -546
- package/dist/features/table/table/table.styles.js +31 -17
- package/dist/features/table/table/table.types.d.ts +18 -23
- package/dist/features/table/table/table.utils.d.ts +6 -36
- package/dist/features/table/table/table.utils.js +16 -65
- package/dist/features/table/table-action-bar/table-action-bar.d.ts +33 -16
- package/dist/features/table/table-action-bar/table-action-bar.js +18 -25
- package/dist/features/table/table-action-bar/table-action-bar.styles.js +15 -3
- package/dist/i18n/en.d.ts +34 -0
- package/dist/i18n/en.js +34 -0
- package/dist/i18n/fr.js +38 -0
- package/dist/index.d.ts +7 -13
- package/dist/index.js +6 -10
- package/dist/jsx.d.ts +1 -1
- package/dist/mixins/button.mixin.d.ts +10 -9
- package/dist/mixins/button.mixin.js +14 -6
- package/dist/mixins/card-link.mixin.d.ts +3 -2
- package/dist/mixins/card-link.mixin.js +12 -5
- package/dist/mixins/check.mixin.js +4 -5
- package/dist/mixins/disabled.mixin.d.ts +3 -3
- package/dist/mixins/disabled.mixin.js +10 -5
- 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 +17 -1
- package/dist/mixins/form.mixin.js +80 -25
- package/dist/mixins/radio.mixin.js +4 -5
- package/dist/mixins/validators.mixin.d.ts +7 -1
- package/dist/mixins/validators.mixin.js +36 -17
- package/dist/ssr/animate-ssr.css +27 -72
- package/dist/ssr/button-ssr.css +319 -0
- package/dist/ssr/card-ssr.css +184 -0
- package/dist/ssr/description-list-ssr.css +150 -0
- 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/table-ssr.css +472 -0
- package/dist/ssr/tag-ssr.css +197 -0
- package/dist/ssr/toolbar-ssr.css +77 -39
- package/dist/types/variant.type.d.ts +26 -10
- package/dist/utils/drag-drop.utils.js +18 -2
- package/dist/utils/dropdown-menu.utils.d.ts +2 -2
- package/dist/utils/dropdown-menu.utils.js +4 -14
- package/dist/utils/light-dom-styles.utils.d.ts +14 -0
- package/dist/utils/light-dom-styles.utils.js +37 -0
- package/dist/utils/media.styles.d.ts +19 -0
- package/dist/utils/media.styles.js +23 -0
- package/dist/utils/motion.utils.d.ts +40 -0
- package/dist/utils/motion.utils.js +51 -0
- 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/severity-icon.utils.d.ts +1 -1
- package/dist/utils/severity-icon.utils.js +1 -1
- package/dist/utils/theme-generator.utils.d.ts +9 -2
- package/dist/utils/theme-generator.utils.js +62 -21
- package/package.json +24 -29
- package/styles/breakpoints.scss +8 -0
- package/styles/eunomia-grid.scss +6 -0
- package/styles/themes/eunomia-theme.scss +4 -3
- package/styles/themes/mixins/eunomia-a11y-color.mixin.scss +34 -1
- package/styles/themes/mixins/eunomia-neutrals.mixin.scss +4 -0
- package/styles/themes/mixins/eunomia-states.mixin.scss +36 -12
- package/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +3 -2
- package/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +10 -10
- package/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +3 -2
- package/styles/tools/indexes/eunomia-media-queries.index.scss +1 -3
- package/styles/tools/indexes/eunomia-tools.index.scss +1 -0
- package/styles/tools/mixins/layout/eunomia-grid.mixin.scss +117 -53
- package/styles/tools/mixins/media-queries/eunomia-media-queries.mixin.scss +69 -0
- package/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +28 -4
- package/styles/tools/mixins/settings/eunomia-motion.mixin.scss +9 -0
- package/styles/tools/variables/eunomia.breakpoints.scss +4 -0
- package/dist/cdn/components/chunks/chunk-2JLDJFYD.js +0 -48
- package/dist/cdn/components/chunks/chunk-A6KGFALA.js +0 -132
- 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-CEDHJUUH.js +0 -1
- package/dist/cdn/components/chunks/chunk-D2M4BV5Y.js +0 -328
- package/dist/cdn/components/chunks/chunk-E74CM7UG.js +0 -66
- package/dist/cdn/components/chunks/chunk-EST3M4AO.js +0 -1
- package/dist/cdn/components/chunks/chunk-GU6BVMFJ.js +0 -1
- package/dist/cdn/components/chunks/chunk-KVYUNKUO.js +0 -27
- package/dist/cdn/components/chunks/chunk-OAULRKHQ.js +0 -38
- package/dist/cdn/components/chunks/chunk-PCM7D3YF.js +0 -84
- package/dist/cdn/components/chunks/chunk-T4PTHUYF.js +0 -10
- package/dist/cdn/components/chunks/chunk-T7WABJEJ.js +0 -1
- package/dist/cdn/components/chunks/chunk-VRGRCYIO.js +0 -1
- package/dist/cdn/components/chunks/chunk-X2AUBZD2.js +0 -30
- package/dist/cdn/components/chunks/chunk-XSMCT4DF.js +0 -1
- package/dist/cdn/components/eun-breadcrumb-item.js +0 -93
- package/dist/cdn/components/eun-table-cell.js +0 -1
- package/dist/cdn/components/eun-table-column.js +0 -1
- package/dist/cdn/components/eun-table-header.js +0 -1
- package/dist/cdn/components/eun-table-item.js +0 -1
- package/dist/cdn/components/eun-table-skeleton-row.js +0 -1
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-device.mixin.scss +0 -14
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-gte.mixin.scss +0 -26
- package/dist/cdn/styles/tools/mixins/media-queries/eunomia-lte.mixin.scss +0 -26
- package/dist/components/navigation/breadcrumb/breadcrumb-item.d.ts +0 -77
- package/dist/components/navigation/breadcrumb/breadcrumb-item.js +0 -130
- package/dist/components/navigation/breadcrumb/breadcrumb-item.styles.d.ts +0 -6
- package/dist/components/navigation/breadcrumb/breadcrumb-item.styles.js +0 -78
- package/dist/features/table/native-table.css +0 -276
- package/dist/features/table/shared-styles/table-row.styles.d.ts +0 -7
- package/dist/features/table/shared-styles/table-row.styles.js +0 -47
- package/dist/features/table/shared-styles/table-shared.styles.d.ts +0 -23
- package/dist/features/table/shared-styles/table-shared.styles.js +0 -33
- package/dist/features/table/table-cell/table-cell.d.ts +0 -59
- package/dist/features/table/table-cell/table-cell.js +0 -73
- package/dist/features/table/table-cell/table-cell.styles.d.ts +0 -1
- package/dist/features/table/table-cell/table-cell.styles.js +0 -46
- package/dist/features/table/table-column/table-column.d.ts +0 -73
- package/dist/features/table/table-column/table-column.js +0 -89
- package/dist/features/table/table-column/table-column.styles.d.ts +0 -1
- package/dist/features/table/table-column/table-column.styles.js +0 -51
- package/dist/features/table/table-header/table-header.d.ts +0 -102
- package/dist/features/table/table-header/table-header.js +0 -165
- package/dist/features/table/table-header/table-header.styles.d.ts +0 -1
- package/dist/features/table/table-header/table-header.styles.js +0 -147
- package/dist/features/table/table-item/table-item.d.ts +0 -179
- package/dist/features/table/table-item/table-item.js +0 -291
- package/dist/features/table/table-item/table-item.styles.d.ts +0 -1
- package/dist/features/table/table-item/table-item.styles.js +0 -404
- package/dist/features/table/table-managed/table-managed.d.ts +0 -19
- package/dist/features/table/table-managed/table-managed.js +0 -128
- package/dist/features/table/table-skeleton-row/table-skeleton-row.d.ts +0 -46
- package/dist/features/table/table-skeleton-row/table-skeleton-row.js +0 -110
- package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.d.ts +0 -12
- package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.js +0 -65
- package/dist/mixins/field-variant.mixin.d.ts +0 -22
- package/dist/mixins/table-row.mixin.d.ts +0 -37
- package/dist/mixins/table-row.mixin.js +0 -103
- package/styles/tools/mixins/media-queries/eunomia-device.mixin.scss +0 -14
- package/styles/tools/mixins/media-queries/eunomia-gte.mixin.scss +0 -26
- package/styles/tools/mixins/media-queries/eunomia-lte.mixin.scss +0 -26
|
@@ -5,7 +5,7 @@ import { ValidatorsMixinInterface } from "../../../mixins/validators.mixin.js";
|
|
|
5
5
|
import { FormMixinInterface } from "../../../mixins/form.mixin.js";
|
|
6
6
|
import { FormLabelMixinInterface } from "../../../mixins/form-label.mixin.js";
|
|
7
7
|
import { EditableMixinInterface } from "../../../mixins/editable.mixin.js";
|
|
8
|
-
import {
|
|
8
|
+
import { FieldAppearanceMixinInterface } from "../../../mixins/field-appearance.mixin.js";
|
|
9
9
|
import { AnchorPositionMixinInterface } from "../../../mixins/anchor-position.mixin.js";
|
|
10
10
|
import { EunomiaIconName } from "../../content/icon/icon.type.js";
|
|
11
11
|
import { Constructor } from "../../../utils/constructor.type.js";
|
|
@@ -22,7 +22,7 @@ type SelectValue = string | string[];
|
|
|
22
22
|
* Type of the select base used to declare every necessary Mixin interface elements.
|
|
23
23
|
* @internal
|
|
24
24
|
*/
|
|
25
|
-
type EunomiaSelectBase = LitElement & DisabledMixinInterface & ReadonlyMixinInterface & ValidatorsMixinInterface<SelectValue> & FormMixinInterface<SelectValue> & EditableMixinInterface & FormLabelMixinInterface &
|
|
25
|
+
type EunomiaSelectBase = LitElement & DisabledMixinInterface & ReadonlyMixinInterface & ValidatorsMixinInterface<SelectValue> & FormMixinInterface<SelectValue> & EditableMixinInterface & FormLabelMixinInterface & FieldAppearanceMixinInterface & AnchorPositionMixinInterface;
|
|
26
26
|
declare const EunomiaSelectMixinBase: Constructor<EunomiaSelectBase>;
|
|
27
27
|
/**
|
|
28
28
|
* A field that picks one or more values from a list of option and optgroup
|
|
@@ -49,7 +49,7 @@ declare const EunomiaSelectMixinBase: Constructor<EunomiaSelectBase>;
|
|
|
49
49
|
* @prop {boolean} [searchable=false] - Whether the field filters its options as the user types. When false, the field is read only and driven by arrow keys, Enter, and type-ahead. Ignored while native is set
|
|
50
50
|
* @prop {boolean} [native=false] - Renders the field as a real select, using the browser's own dropdown instead of the listbox panel. Takes priority over searchable and multiple, neither of which a native dropdown can support
|
|
51
51
|
* @prop {boolean} [multiple=false] - Whether more than one option can be picked at once. Each option then renders a checkbox, and picking one toggles it without closing the dropdown, so value becomes an array of every picked option's value. Ignored while native is set
|
|
52
|
-
* @prop {'outline' | '
|
|
52
|
+
* @prop {'outline' | 'flat' | 'underline'} [appearance='outline'] - How the field's surface is drawn: a bordered box, a muted background with no border, or a bottom border only
|
|
53
53
|
* @prop {string} label - The title label of the field, rendered through the label component
|
|
54
54
|
* @prop {string} instructions - Instructions displayed below the label
|
|
55
55
|
* @prop {string} name - The field name
|
|
@@ -59,7 +59,8 @@ declare const EunomiaSelectMixinBase: Constructor<EunomiaSelectBase>;
|
|
|
59
59
|
* @prop {boolean} [disabled=false] - Whether the field is disabled
|
|
60
60
|
* @prop {boolean} [readonly=false] - Whether the field is read only
|
|
61
61
|
* @prop {boolean} [required=false] - Whether a selection is required
|
|
62
|
-
* @prop {boolean} [hideError=false] - Whether the errors are hidden
|
|
62
|
+
* @prop {boolean} [hideError=false] - Whether the errors are hidden. The hint stays visible
|
|
63
|
+
* @prop {string} [error] - An error computed outside the field, by the form or by the server. While set, the field is invalid and shows this message right away
|
|
63
64
|
* @prop {Array<Validators<string | string[]>>} validators - The list of validation rules applied to the field value
|
|
64
65
|
* @prop {EunomiaIconName} icon - An optional leading icon
|
|
65
66
|
* @prop {string} [placeholder] - The placeholder shown when the field is empty. Defaults to searchPlaceholder when searchable, and selectPlaceholder otherwise
|
|
@@ -85,9 +86,12 @@ declare const EunomiaSelectMixinBase: Constructor<EunomiaSelectBase>;
|
|
|
85
86
|
* @cssprop [--field-border-color-focus] - Sets the border color on focus
|
|
86
87
|
* @cssprop [--field-border-radius] - Sets the corner radius of the field
|
|
87
88
|
* @cssprop [--field-padding] - Sets the padding of the field
|
|
89
|
+
* @cssprop [--field-padding-block] - Sets the vertical padding, as one length applied to both sides. Ignored when --field-padding is set
|
|
90
|
+
* @cssprop [--field-padding-inline] - Sets the horizontal padding, as one length applied to both sides. Ignored when --field-padding is set
|
|
88
91
|
* @cssprop [--field-text-color] - Sets the text color of the field
|
|
89
92
|
* @cssprop [--field-placeholder-color] - Sets the color of the placeholder
|
|
90
93
|
* @cssprop [--field-icon-color] - Sets the color of the leading icon and the dropdown arrow
|
|
94
|
+
* @cssprop [--field-loader-color] - Sets the color of the spinner shown while loading, the icon color by default. Shared with the search component
|
|
91
95
|
* @cssprop [--field-error-color] - Sets the color of the error message
|
|
92
96
|
* @cssprop [--field-hint-color] - Sets the color of the hint message
|
|
93
97
|
* @cssprop [--field-focus-outline-color] - Sets the color of the focus outline
|
|
@@ -101,6 +105,9 @@ declare const EunomiaSelectMixinBase: Constructor<EunomiaSelectBase>;
|
|
|
101
105
|
* @cssprop [--field-listbox-transition-duration=200ms] - Sets the duration of the dropdown panel's open and close height transition, disabled entirely by the no-animation attribute or reduced motion settings
|
|
102
106
|
* @cssprop [--eun-viewport-inset-top] - Reserves space, such as a page's sticky header height, that the dropdown panel keeps clear of at the top of the viewport. Set on the root or an ancestor rather than on the field itself
|
|
103
107
|
* @cssprop [--eun-viewport-inset-bottom] - The same as eun-viewport-inset-top, reserved at the bottom of the viewport, such as for a sticky footer
|
|
108
|
+
* @cssprop [--field-font-size] - Sets the font size of the field's value and placeholder
|
|
109
|
+
* @cssprop [--field-label-font-size] - Sets the font size of the label
|
|
110
|
+
* @cssprop [--field-message-font-size] - Sets the font size of the hint, error messages and instructions
|
|
104
111
|
* @element eun-select
|
|
105
112
|
*/
|
|
106
113
|
export declare class EunomiaSelect extends EunomiaSelectMixinBase {
|
|
@@ -506,7 +513,7 @@ export declare class EunomiaSelect extends EunomiaSelectMixinBase {
|
|
|
506
513
|
* The listbox's open/close animation duration, in ms : `0` if `
|
|
507
514
|
* noAnimation` is set or the browser reports `prefers-reduced-motion:
|
|
508
515
|
* reduce`, otherwise `--field-listbox-transition-duration` (default
|
|
509
|
-
* `
|
|
516
|
+
* `--eun-duration-m`).
|
|
510
517
|
*
|
|
511
518
|
* @param el the listbox to read `--field-listbox-transition-duration` off.
|
|
512
519
|
* @private
|
|
@@ -15,13 +15,14 @@ import { ValidatorsMixin, } from "../../../mixins/validators.mixin.js";
|
|
|
15
15
|
import { FormMixin } from "../../../mixins/form.mixin.js";
|
|
16
16
|
import { FormLabelMixin, } from "../../../mixins/form-label.mixin.js";
|
|
17
17
|
import { EditableMixin, } from "../../../mixins/editable.mixin.js";
|
|
18
|
-
import {
|
|
18
|
+
import { FieldAppearanceMixin, } from "../../../mixins/field-appearance.mixin.js";
|
|
19
19
|
import { AnchorPositionMixin, } from "../../../mixins/anchor-position.mixin.js";
|
|
20
20
|
import { ChangeEvent } from "../../../events/change.event.js";
|
|
21
21
|
import { formLabelsStyles } from "../shared-styles/form-labels.styles.js";
|
|
22
22
|
import { selectStyles } from "./select.styles.js";
|
|
23
23
|
import { isWebKit } from "../../../utils/browser.utils.js";
|
|
24
24
|
import { parseListboxOptions, renderHighlightedLabel, } from "../../../utils/listbox-options.utils.js";
|
|
25
|
+
import { resolveDurationMs, resolveEasing, } from "../../../utils/motion.utils.js";
|
|
25
26
|
/**
|
|
26
27
|
* Tag name of the select component.
|
|
27
28
|
*/
|
|
@@ -31,7 +32,7 @@ export const EunomiaSelectTagName = "eun-select";
|
|
|
31
32
|
* @internal
|
|
32
33
|
*/
|
|
33
34
|
const Base = DisabledMixin(ValidatorsMixin(LitElement));
|
|
34
|
-
const EunomiaSelectMixinBase = AnchorPositionMixin(
|
|
35
|
+
const EunomiaSelectMixinBase = AnchorPositionMixin(FieldAppearanceMixin(FormLabelMixin(ReadonlyMixin(EditableMixin(FormMixin(Base))))));
|
|
35
36
|
/**
|
|
36
37
|
* A field that picks one or more values from a list of option and optgroup
|
|
37
38
|
* children. Set searchable to let the field also filter that list as the
|
|
@@ -57,7 +58,7 @@ const EunomiaSelectMixinBase = AnchorPositionMixin(FieldVariantMixin(FormLabelMi
|
|
|
57
58
|
* @prop {boolean} [searchable=false] - Whether the field filters its options as the user types. When false, the field is read only and driven by arrow keys, Enter, and type-ahead. Ignored while native is set
|
|
58
59
|
* @prop {boolean} [native=false] - Renders the field as a real select, using the browser's own dropdown instead of the listbox panel. Takes priority over searchable and multiple, neither of which a native dropdown can support
|
|
59
60
|
* @prop {boolean} [multiple=false] - Whether more than one option can be picked at once. Each option then renders a checkbox, and picking one toggles it without closing the dropdown, so value becomes an array of every picked option's value. Ignored while native is set
|
|
60
|
-
* @prop {'outline' | '
|
|
61
|
+
* @prop {'outline' | 'flat' | 'underline'} [appearance='outline'] - How the field's surface is drawn: a bordered box, a muted background with no border, or a bottom border only
|
|
61
62
|
* @prop {string} label - The title label of the field, rendered through the label component
|
|
62
63
|
* @prop {string} instructions - Instructions displayed below the label
|
|
63
64
|
* @prop {string} name - The field name
|
|
@@ -67,7 +68,8 @@ const EunomiaSelectMixinBase = AnchorPositionMixin(FieldVariantMixin(FormLabelMi
|
|
|
67
68
|
* @prop {boolean} [disabled=false] - Whether the field is disabled
|
|
68
69
|
* @prop {boolean} [readonly=false] - Whether the field is read only
|
|
69
70
|
* @prop {boolean} [required=false] - Whether a selection is required
|
|
70
|
-
* @prop {boolean} [hideError=false] - Whether the errors are hidden
|
|
71
|
+
* @prop {boolean} [hideError=false] - Whether the errors are hidden. The hint stays visible
|
|
72
|
+
* @prop {string} [error] - An error computed outside the field, by the form or by the server. While set, the field is invalid and shows this message right away
|
|
71
73
|
* @prop {Array<Validators<string | string[]>>} validators - The list of validation rules applied to the field value
|
|
72
74
|
* @prop {EunomiaIconName} icon - An optional leading icon
|
|
73
75
|
* @prop {string} [placeholder] - The placeholder shown when the field is empty. Defaults to searchPlaceholder when searchable, and selectPlaceholder otherwise
|
|
@@ -93,9 +95,12 @@ const EunomiaSelectMixinBase = AnchorPositionMixin(FieldVariantMixin(FormLabelMi
|
|
|
93
95
|
* @cssprop [--field-border-color-focus] - Sets the border color on focus
|
|
94
96
|
* @cssprop [--field-border-radius] - Sets the corner radius of the field
|
|
95
97
|
* @cssprop [--field-padding] - Sets the padding of the field
|
|
98
|
+
* @cssprop [--field-padding-block] - Sets the vertical padding, as one length applied to both sides. Ignored when --field-padding is set
|
|
99
|
+
* @cssprop [--field-padding-inline] - Sets the horizontal padding, as one length applied to both sides. Ignored when --field-padding is set
|
|
96
100
|
* @cssprop [--field-text-color] - Sets the text color of the field
|
|
97
101
|
* @cssprop [--field-placeholder-color] - Sets the color of the placeholder
|
|
98
102
|
* @cssprop [--field-icon-color] - Sets the color of the leading icon and the dropdown arrow
|
|
103
|
+
* @cssprop [--field-loader-color] - Sets the color of the spinner shown while loading, the icon color by default. Shared with the search component
|
|
99
104
|
* @cssprop [--field-error-color] - Sets the color of the error message
|
|
100
105
|
* @cssprop [--field-hint-color] - Sets the color of the hint message
|
|
101
106
|
* @cssprop [--field-focus-outline-color] - Sets the color of the focus outline
|
|
@@ -109,6 +114,9 @@ const EunomiaSelectMixinBase = AnchorPositionMixin(FieldVariantMixin(FormLabelMi
|
|
|
109
114
|
* @cssprop [--field-listbox-transition-duration=200ms] - Sets the duration of the dropdown panel's open and close height transition, disabled entirely by the no-animation attribute or reduced motion settings
|
|
110
115
|
* @cssprop [--eun-viewport-inset-top] - Reserves space, such as a page's sticky header height, that the dropdown panel keeps clear of at the top of the viewport. Set on the root or an ancestor rather than on the field itself
|
|
111
116
|
* @cssprop [--eun-viewport-inset-bottom] - The same as eun-viewport-inset-top, reserved at the bottom of the viewport, such as for a sticky footer
|
|
117
|
+
* @cssprop [--field-font-size] - Sets the font size of the field's value and placeholder
|
|
118
|
+
* @cssprop [--field-label-font-size] - Sets the font size of the label
|
|
119
|
+
* @cssprop [--field-message-font-size] - Sets the font size of the hint, error messages and instructions
|
|
112
120
|
* @element eun-select
|
|
113
121
|
*/
|
|
114
122
|
let EunomiaSelect = EunomiaSelect_1 = class EunomiaSelect extends EunomiaSelectMixinBase {
|
|
@@ -656,7 +664,7 @@ let EunomiaSelect = EunomiaSelect_1 = class EunomiaSelect extends EunomiaSelectM
|
|
|
656
664
|
* The listbox's open/close animation duration, in ms : `0` if `
|
|
657
665
|
* noAnimation` is set or the browser reports `prefers-reduced-motion:
|
|
658
666
|
* reduce`, otherwise `--field-listbox-transition-duration` (default
|
|
659
|
-
* `
|
|
667
|
+
* `--eun-duration-m`).
|
|
660
668
|
*
|
|
661
669
|
* @param el the listbox to read `--field-listbox-transition-duration` off.
|
|
662
670
|
* @private
|
|
@@ -666,18 +674,7 @@ let EunomiaSelect = EunomiaSelect_1 = class EunomiaSelect extends EunomiaSelectM
|
|
|
666
674
|
window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
667
675
|
return 0;
|
|
668
676
|
}
|
|
669
|
-
|
|
670
|
-
.getPropertyValue("--field-listbox-transition-duration")
|
|
671
|
-
.trim();
|
|
672
|
-
if (raw) {
|
|
673
|
-
const parsed = raw.endsWith("ms")
|
|
674
|
-
? Number.parseFloat(raw)
|
|
675
|
-
: Number.parseFloat(raw) * 1000;
|
|
676
|
-
if (Number.isFinite(parsed) && parsed >= 0) {
|
|
677
|
-
return parsed;
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
return 200;
|
|
677
|
+
return resolveDurationMs(el, "--field-listbox-transition-duration", "m", 200);
|
|
681
678
|
}
|
|
682
679
|
/**
|
|
683
680
|
* Plays the fade/scaleY-in, replacing any {@link listboxAnimation}
|
|
@@ -695,7 +692,7 @@ let EunomiaSelect = EunomiaSelect_1 = class EunomiaSelect extends EunomiaSelectM
|
|
|
695
692
|
this.listboxAnimation = listbox.animate([
|
|
696
693
|
{ opacity: 0, transform: "scaleY(0.01)" },
|
|
697
694
|
{ opacity: 1, transform: "scaleY(1)" },
|
|
698
|
-
], { duration, easing:
|
|
695
|
+
], { duration, easing: resolveEasing(listbox), fill: "forwards" });
|
|
699
696
|
}
|
|
700
697
|
/**
|
|
701
698
|
* Closes the dropdown panel, if open. All state cleanup happens in
|
|
@@ -738,7 +735,7 @@ let EunomiaSelect = EunomiaSelect_1 = class EunomiaSelect extends EunomiaSelectM
|
|
|
738
735
|
const animation = listbox.animate([
|
|
739
736
|
{ opacity: 1, transform: "scaleY(1)" },
|
|
740
737
|
{ opacity: 0, transform: "scaleY(0.01)" },
|
|
741
|
-
], { duration, easing:
|
|
738
|
+
], { duration, easing: resolveEasing(listbox), fill: "forwards" });
|
|
742
739
|
this.listboxAnimation = animation;
|
|
743
740
|
animation.finished
|
|
744
741
|
.then(() => {
|
|
@@ -1176,7 +1173,7 @@ let EunomiaSelect = EunomiaSelect_1 = class EunomiaSelect extends EunomiaSelectM
|
|
|
1176
1173
|
aria-describedby=${hasDescription ? "description" : nothing}
|
|
1177
1174
|
?disabled=${this.disabled || this.readonly}
|
|
1178
1175
|
?required=${this.required}
|
|
1179
|
-
aria-invalid=${
|
|
1176
|
+
aria-invalid=${this.showError}
|
|
1180
1177
|
@change=${this.handleNativeChange}
|
|
1181
1178
|
></select>
|
|
1182
1179
|
${this.showConfirmLink ? this.renderConfirmLink() : nothing}
|
|
@@ -1225,7 +1222,7 @@ let EunomiaSelect = EunomiaSelect_1 = class EunomiaSelect extends EunomiaSelectM
|
|
|
1225
1222
|
?disabled=${this.disabled}
|
|
1226
1223
|
?readonly=${this.readonly || !this.searchable}
|
|
1227
1224
|
aria-required=${this.required ? "true" : "false"}
|
|
1228
|
-
aria-invalid=${
|
|
1225
|
+
aria-invalid=${this.showError}
|
|
1229
1226
|
@pointerdown=${this.handleFieldPointerDown}
|
|
1230
1227
|
@focus=${this.handleFieldActivate}
|
|
1231
1228
|
@click=${this.handleFieldActivate}
|
|
@@ -28,7 +28,8 @@ const select = css `
|
|
|
28
28
|
pointer-events: none;
|
|
29
29
|
color: var(--_iconColor);
|
|
30
30
|
font-size: var(--eun-font-size-s, 14px);
|
|
31
|
-
transition: transform
|
|
31
|
+
transition: transform var(--eun-duration-s, 150ms)
|
|
32
|
+
var(--eun-easing-default, ease);
|
|
32
33
|
}
|
|
33
34
|
#select-arrow.open {
|
|
34
35
|
transform: rotate(180deg);
|
|
@@ -37,7 +38,7 @@ const select = css `
|
|
|
37
38
|
position: absolute;
|
|
38
39
|
right: var(--eun-space-m, 16px);
|
|
39
40
|
pointer-events: none;
|
|
40
|
-
color: var(--_iconColor);
|
|
41
|
+
color: var(--field-loader-color, var(--_iconColor));
|
|
41
42
|
}
|
|
42
43
|
.has-icon #field {
|
|
43
44
|
padding-inline-start: calc(
|
|
@@ -69,9 +69,9 @@ const base = css `
|
|
|
69
69
|
outline: 2px solid transparent;
|
|
70
70
|
cursor: pointer;
|
|
71
71
|
transition:
|
|
72
|
-
outline
|
|
73
|
-
border-color
|
|
74
|
-
background
|
|
72
|
+
outline var(--eun-duration-m, 200ms) var(--eun-easing-out, ease-out),
|
|
73
|
+
border-color var(--eun-duration-s, 150ms) var(--eun-easing-default, ease),
|
|
74
|
+
background var(--eun-duration-s, 150ms) var(--eun-easing-default, ease);
|
|
75
75
|
user-select: none;
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -82,7 +82,8 @@ const base = css `
|
|
|
82
82
|
display: block;
|
|
83
83
|
color: var(--_iconColor);
|
|
84
84
|
margin-block-end: var(--eun-space-s, 8px);
|
|
85
|
-
transition: color
|
|
85
|
+
transition: color var(--eun-duration-s, 150ms)
|
|
86
|
+
var(--eun-easing-default, ease);
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
slot {
|
|
@@ -9,11 +9,16 @@ import { css } from "lit";
|
|
|
9
9
|
* [--field-border-color-focus] - Set a custom border color on focus state
|
|
10
10
|
* [--field-border-radius] - Set a custom border radius to the field
|
|
11
11
|
* [--field-padding] - Set a custom padding to the field
|
|
12
|
+
* [--field-padding-block] - Set a custom vertical padding, as one length applied to both sides. Ignored when --field-padding is set
|
|
13
|
+
* [--field-padding-inline] - Set a custom horizontal padding, as one length applied to both sides. Ignored when --field-padding is set
|
|
12
14
|
* [--field-text-color] - Set a custom text color
|
|
13
15
|
* [--field-placeholder-color] - Set a custom placeholder color
|
|
14
16
|
* [--field-icon-color] - Set a custom color to the leading icon and action buttons
|
|
15
17
|
* [--field-error-color] - Set a custom color to the error state content
|
|
16
18
|
* [--field-hint-color] - Set a custom color to the hint message
|
|
19
|
+
* [--field-font-size] - Set a custom font size for the field's value and placeholder
|
|
20
|
+
* [--field-label-font-size] - Set a custom font size for the label (see label.styles.ts)
|
|
21
|
+
* [--field-message-font-size] - Set a custom font size for the hint, error and instructions (see form-labels.styles.ts)
|
|
17
22
|
* [--field-focus-outline-color] - Set a custom color to the focus outline
|
|
18
23
|
* [--field-edit-confirm-color] - Set a custom color for the confirm button in `readonly-available` edit mode
|
|
19
24
|
* [--field-edit-cancel-color] - Set a custom color for the cancel button in `readonly-available` edit mode
|
|
@@ -38,14 +43,18 @@ const base = css `
|
|
|
38
43
|
--field-focus-outline-color,
|
|
39
44
|
var(--eun-color-primary-500, #3d6fff)
|
|
40
45
|
);
|
|
41
|
-
--_borderRadius: var(
|
|
46
|
+
--_borderRadius: var(
|
|
47
|
+
--field-border-radius,
|
|
48
|
+
var(--eun-border-radius-m, 8px)
|
|
49
|
+
);
|
|
42
50
|
--_padding: var(
|
|
43
51
|
--field-padding,
|
|
44
|
-
var(--
|
|
52
|
+
var(--field-padding-block, var(--eun-space-s, 8px))
|
|
53
|
+
var(--field-padding-inline, var(--eun-space-s, 8px))
|
|
45
54
|
);
|
|
46
55
|
--_shadow: var(--field-shadow, none);
|
|
47
56
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
48
|
-
font-size: var(--eun-font-size-s, 14px);
|
|
57
|
+
font-size: var(--field-font-size, var(--eun-font-size-s, 14px));
|
|
49
58
|
display: block;
|
|
50
59
|
width: 100%;
|
|
51
60
|
outline: none;
|
|
@@ -72,8 +81,8 @@ const base = css `
|
|
|
72
81
|
box-shadow: var(--_shadow);
|
|
73
82
|
box-sizing: border-box;
|
|
74
83
|
transition:
|
|
75
|
-
border-color
|
|
76
|
-
outline-color
|
|
84
|
+
border-color var(--eun-duration-s, 150ms) var(--eun-easing-default, ease),
|
|
85
|
+
outline-color var(--eun-duration-s, 150ms) var(--eun-easing-default, ease);
|
|
77
86
|
appearance: none;
|
|
78
87
|
}
|
|
79
88
|
#field::placeholder {
|
|
@@ -117,22 +126,22 @@ const base = css `
|
|
|
117
126
|
#field[aria-invalid="true"]:focus-visible {
|
|
118
127
|
outline-color: var(--_errorColor);
|
|
119
128
|
}
|
|
120
|
-
:host([
|
|
129
|
+
:host([appearance="flat"]) {
|
|
121
130
|
--_background: var(--field-background, var(--eun-content-hover, #edeff0));
|
|
122
131
|
}
|
|
123
|
-
:host([
|
|
132
|
+
:host([appearance="flat"]) #field:not(:hover) {
|
|
124
133
|
border-color: transparent;
|
|
125
134
|
}
|
|
126
|
-
:host([
|
|
135
|
+
:host([appearance="flat"]) #field[aria-invalid="true"] {
|
|
127
136
|
box-shadow: inset 0 0 0 var(--eun-border-width-m, 1.5px) var(--_errorColor);
|
|
128
137
|
}
|
|
129
|
-
:host([
|
|
138
|
+
:host([appearance="underline"]) #field {
|
|
130
139
|
border: none;
|
|
131
140
|
outline: none;
|
|
132
141
|
border-bottom: var(--eun-border-width-m, 1.5px) solid var(--_borderColor);
|
|
133
142
|
border-radius: 0;
|
|
134
143
|
}
|
|
135
|
-
:host([
|
|
144
|
+
:host([appearance="underline"]) #field:focus-visible {
|
|
136
145
|
outline: none;
|
|
137
146
|
}
|
|
138
147
|
slot[name="icon"] {
|
|
@@ -176,7 +185,8 @@ const base = css `
|
|
|
176
185
|
border-radius: var(--_borderRadius);
|
|
177
186
|
box-sizing: border-box;
|
|
178
187
|
cursor: text;
|
|
179
|
-
transition: background-color
|
|
188
|
+
transition: background-color var(--eun-duration-s, 150ms)
|
|
189
|
+
var(--eun-easing-default, ease);
|
|
180
190
|
}
|
|
181
191
|
#readonly-display:hover {
|
|
182
192
|
background-color: var(--eun-content-hover, #edeff0);
|
|
@@ -4,7 +4,7 @@ const base = css `
|
|
|
4
4
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
5
5
|
display: block;
|
|
6
6
|
margin-block-start: var(--eun-space-xs, 4px);
|
|
7
|
-
font-size: var(--eun-font-size-xs, 12px);
|
|
7
|
+
font-size: var(--field-message-font-size, var(--eun-font-size-xs, 12px));
|
|
8
8
|
margin-block: 0;
|
|
9
9
|
}
|
|
10
10
|
#description span {
|
|
@@ -45,7 +45,8 @@ declare const EunomiaSliderMixinBase: Constructor<EunomiaSliderBase>;
|
|
|
45
45
|
* @prop {boolean} [disabled=false] - Whether the field is disabled
|
|
46
46
|
* @prop {boolean} [readonly=false] - Whether the field is read only
|
|
47
47
|
* @prop {boolean} [required=false] - Present for API consistency with every other field, but inert here, since a slider's value can never be empty the way a text field's can
|
|
48
|
-
* @prop {boolean} [hideError=false] - Whether the errors are hidden
|
|
48
|
+
* @prop {boolean} [hideError=false] - Whether the errors are hidden. The hint stays visible
|
|
49
|
+
* @prop {string} [error] - An error computed outside the field, by the form or by the server. While set, the field is invalid and shows this message right away
|
|
49
50
|
* @attr {boolean} [hide-error=false] - Whether the errors are hidden
|
|
50
51
|
* @prop {boolean} [hideTooltip=false] - Hides the floating value bubble that otherwise appears above the thumb while dragging or focused
|
|
51
52
|
* @attr {boolean} [hide-tooltip=false] - Hides the floating value bubble that otherwise appears above the thumb while dragging or focused
|
|
@@ -71,6 +72,8 @@ declare const EunomiaSliderMixinBase: Constructor<EunomiaSliderBase>;
|
|
|
71
72
|
* @cssprop [--slider-error-color] - Sets the color of the error message
|
|
72
73
|
* @cssprop [--slider-hint-color] - Sets the color of the hint message
|
|
73
74
|
* @cssprop [--slider-focus-outline-color] - Sets the color of the focus outline drawn around the thumb
|
|
75
|
+
* @cssprop [--field-label-font-size] - Sets the font size of the label
|
|
76
|
+
* @cssprop [--field-message-font-size] - Sets the font size of the hint, error messages and instructions
|
|
74
77
|
* @element eun-slider
|
|
75
78
|
*/
|
|
76
79
|
export declare class EunomiaSlider extends EunomiaSliderMixinBase {
|
|
@@ -57,7 +57,8 @@ const EunomiaSliderMixinBase = FormLabelMixin(ReadonlyMixin(FormMixin(Base)));
|
|
|
57
57
|
* @prop {boolean} [disabled=false] - Whether the field is disabled
|
|
58
58
|
* @prop {boolean} [readonly=false] - Whether the field is read only
|
|
59
59
|
* @prop {boolean} [required=false] - Present for API consistency with every other field, but inert here, since a slider's value can never be empty the way a text field's can
|
|
60
|
-
* @prop {boolean} [hideError=false] - Whether the errors are hidden
|
|
60
|
+
* @prop {boolean} [hideError=false] - Whether the errors are hidden. The hint stays visible
|
|
61
|
+
* @prop {string} [error] - An error computed outside the field, by the form or by the server. While set, the field is invalid and shows this message right away
|
|
61
62
|
* @attr {boolean} [hide-error=false] - Whether the errors are hidden
|
|
62
63
|
* @prop {boolean} [hideTooltip=false] - Hides the floating value bubble that otherwise appears above the thumb while dragging or focused
|
|
63
64
|
* @attr {boolean} [hide-tooltip=false] - Hides the floating value bubble that otherwise appears above the thumb while dragging or focused
|
|
@@ -83,6 +84,8 @@ const EunomiaSliderMixinBase = FormLabelMixin(ReadonlyMixin(FormMixin(Base)));
|
|
|
83
84
|
* @cssprop [--slider-error-color] - Sets the color of the error message
|
|
84
85
|
* @cssprop [--slider-hint-color] - Sets the color of the hint message
|
|
85
86
|
* @cssprop [--slider-focus-outline-color] - Sets the color of the focus outline drawn around the thumb
|
|
87
|
+
* @cssprop [--field-label-font-size] - Sets the font size of the label
|
|
88
|
+
* @cssprop [--field-message-font-size] - Sets the font size of the hint, error messages and instructions
|
|
86
89
|
* @element eun-slider
|
|
87
90
|
*/
|
|
88
91
|
let EunomiaSlider = class EunomiaSlider extends EunomiaSliderMixinBase {
|
|
@@ -431,7 +434,7 @@ let EunomiaSlider = class EunomiaSlider extends EunomiaSliderMixinBase {
|
|
|
431
434
|
step=${this.step}
|
|
432
435
|
.value=${String(value)}
|
|
433
436
|
?disabled=${this.disabled}
|
|
434
|
-
aria-invalid=${
|
|
437
|
+
aria-invalid=${this.showError}
|
|
435
438
|
aria-label=${ifDefined(this.label)}
|
|
436
439
|
aria-describedby=${hasDescription ? "description" : nothing}
|
|
437
440
|
@input=${this.handleInput}
|
|
@@ -96,7 +96,8 @@ const base = css `
|
|
|
96
96
|
border-radius: 50%;
|
|
97
97
|
background: var(--_tickColor);
|
|
98
98
|
transform: translate(-50%, -50%);
|
|
99
|
-
transition: background-color
|
|
99
|
+
transition: background-color var(--eun-duration-s, 150ms)
|
|
100
|
+
var(--eun-easing-default, ease);
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
.tick.tick-active {
|
|
@@ -173,9 +174,9 @@ const base = css `
|
|
|
173
174
|
outline: 2px solid transparent;
|
|
174
175
|
cursor: grab;
|
|
175
176
|
transition:
|
|
176
|
-
transform
|
|
177
|
-
outline
|
|
178
|
-
outline-color
|
|
177
|
+
transform var(--eun-duration-xs, 100ms) var(--eun-easing-default, ease),
|
|
178
|
+
outline var(--eun-duration-m, 200ms) var(--eun-easing-out, ease-out),
|
|
179
|
+
outline-color var(--eun-duration-s, 150ms) var(--eun-easing-default, ease);
|
|
179
180
|
}
|
|
180
181
|
|
|
181
182
|
#field:active::-webkit-slider-thumb {
|
|
@@ -211,9 +212,9 @@ const base = css `
|
|
|
211
212
|
outline: 2px solid transparent;
|
|
212
213
|
cursor: grab;
|
|
213
214
|
transition:
|
|
214
|
-
outline
|
|
215
|
-
transform
|
|
216
|
-
outline-color
|
|
215
|
+
outline var(--eun-duration-m, 200ms) var(--eun-easing-out, ease-out),
|
|
216
|
+
transform var(--eun-duration-xs, 100ms) var(--eun-easing-default, ease),
|
|
217
|
+
outline-color var(--eun-duration-s, 150ms) var(--eun-easing-default, ease);
|
|
217
218
|
}
|
|
218
219
|
|
|
219
220
|
#field:active::-moz-range-thumb {
|
|
@@ -38,7 +38,8 @@ declare const EunomiaSwitchMixinBase: Constructor<EunomiaSwitchBase>;
|
|
|
38
38
|
* @prop {boolean} [readonly=false] - Whether the switch is read only
|
|
39
39
|
* @prop {boolean} [hideIcon=false] - Whether the icon inside the thumb is hidden
|
|
40
40
|
* @attr {boolean} [hide-icon=false] - Whether the icon inside the thumb is hidden
|
|
41
|
-
* @prop {boolean} [hideError=false] - Whether the
|
|
41
|
+
* @prop {boolean} [hideError=false] - Whether the errors are hidden. The hint stays visible
|
|
42
|
+
* @prop {string} [error] - An error computed outside the field, by the form or by the server. While set, the field is invalid and shows this message right away
|
|
42
43
|
* @attr {boolean} [hide-error=false] - Whether the error message is hidden
|
|
43
44
|
* @prop {boolean} [required=false] - Whether the switch must be turned on to be valid
|
|
44
45
|
* @prop {string} name - The name of the switch field
|
|
@@ -62,6 +63,8 @@ declare const EunomiaSwitchMixinBase: Constructor<EunomiaSwitchBase>;
|
|
|
62
63
|
* @cssprop [--switch-error-color] - Sets the color of the error message
|
|
63
64
|
* @cssprop [--switch-hint-color] - Sets the color of the hint message
|
|
64
65
|
* @cssprop [--switch-focus-outline-color] - Sets the color of the focus outline
|
|
66
|
+
* @cssprop [--field-label-font-size] - Sets the font size of the label
|
|
67
|
+
* @cssprop [--field-message-font-size] - Sets the font size of the hint, error messages and instructions
|
|
65
68
|
* @fires click - Fired when the switch is clicked
|
|
66
69
|
* @fires {ChangeEvent} eunchange - Fired when the switch's checked state changes
|
|
67
70
|
* @element eun-switch
|
|
@@ -43,7 +43,8 @@ const EunomiaSwitchMixinBase = CheckMixin(ReadonlyMixin(FormMixin(DisabledMixin(
|
|
|
43
43
|
* @prop {boolean} [readonly=false] - Whether the switch is read only
|
|
44
44
|
* @prop {boolean} [hideIcon=false] - Whether the icon inside the thumb is hidden
|
|
45
45
|
* @attr {boolean} [hide-icon=false] - Whether the icon inside the thumb is hidden
|
|
46
|
-
* @prop {boolean} [hideError=false] - Whether the
|
|
46
|
+
* @prop {boolean} [hideError=false] - Whether the errors are hidden. The hint stays visible
|
|
47
|
+
* @prop {string} [error] - An error computed outside the field, by the form or by the server. While set, the field is invalid and shows this message right away
|
|
47
48
|
* @attr {boolean} [hide-error=false] - Whether the error message is hidden
|
|
48
49
|
* @prop {boolean} [required=false] - Whether the switch must be turned on to be valid
|
|
49
50
|
* @prop {string} name - The name of the switch field
|
|
@@ -67,6 +68,8 @@ const EunomiaSwitchMixinBase = CheckMixin(ReadonlyMixin(FormMixin(DisabledMixin(
|
|
|
67
68
|
* @cssprop [--switch-error-color] - Sets the color of the error message
|
|
68
69
|
* @cssprop [--switch-hint-color] - Sets the color of the hint message
|
|
69
70
|
* @cssprop [--switch-focus-outline-color] - Sets the color of the focus outline
|
|
71
|
+
* @cssprop [--field-label-font-size] - Sets the font size of the label
|
|
72
|
+
* @cssprop [--field-message-font-size] - Sets the font size of the hint, error messages and instructions
|
|
70
73
|
* @fires click - Fired when the switch is clicked
|
|
71
74
|
* @fires {ChangeEvent} eunchange - Fired when the switch's checked state changes
|
|
72
75
|
* @element eun-switch
|
|
@@ -39,7 +39,7 @@ const base = css `
|
|
|
39
39
|
);
|
|
40
40
|
--_trackBorderWidth: var(--eun-border-width-s, 1px);
|
|
41
41
|
font-family: var(--eun-font-family, "Mulish", sans-serif);
|
|
42
|
-
font-size: var(--eun-font-size-s, 14px);
|
|
42
|
+
font-size: var(--field-label-font-size, var(--eun-font-size-s, 14px));
|
|
43
43
|
display: flex;
|
|
44
44
|
width: 100%;
|
|
45
45
|
outline: none;
|
|
@@ -166,9 +166,10 @@ const base = css `
|
|
|
166
166
|
box-sizing: border-box;
|
|
167
167
|
outline: 2px solid transparent;
|
|
168
168
|
transition:
|
|
169
|
-
background-color
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
background-color var(--eun-duration-s, 150ms)
|
|
170
|
+
var(--eun-easing-default, ease),
|
|
171
|
+
outline var(--eun-duration-xl, 300ms) var(--eun-easing-default, ease),
|
|
172
|
+
border-color var(--eun-duration-s, 150ms) var(--eun-easing-default, ease);
|
|
172
173
|
}
|
|
173
174
|
|
|
174
175
|
#thumb {
|
|
@@ -183,7 +184,8 @@ const base = css `
|
|
|
183
184
|
display: flex;
|
|
184
185
|
align-items: center;
|
|
185
186
|
justify-content: center;
|
|
186
|
-
transition: transform
|
|
187
|
+
transition: transform var(--eun-duration-s, 150ms)
|
|
188
|
+
var(--eun-easing-default, ease);
|
|
187
189
|
}
|
|
188
190
|
:host([aria-checked="true"]) #thumb {
|
|
189
191
|
transform: translateX(
|
|
@@ -5,7 +5,7 @@ import { ValidatorsMixinInterface, Validity } from "../../../mixins/validators.m
|
|
|
5
5
|
import { FormMixinInterface } from "../../../mixins/form.mixin.js";
|
|
6
6
|
import { FormLabelMixinInterface } from "../../../mixins/form-label.mixin.js";
|
|
7
7
|
import { EditableMixinInterface } from "../../../mixins/editable.mixin.js";
|
|
8
|
-
import {
|
|
8
|
+
import { FieldAppearanceMixinInterface } from "../../../mixins/field-appearance.mixin.js";
|
|
9
9
|
import { Constructor } from "../../../utils/constructor.type.js";
|
|
10
10
|
/**
|
|
11
11
|
* Tag name of the textarea component.
|
|
@@ -15,7 +15,7 @@ export declare const EunomiaTextareaTagName = "eun-textarea";
|
|
|
15
15
|
* Type of the textarea base used to declare every necessary Mixin interface elements.
|
|
16
16
|
* @internal
|
|
17
17
|
*/
|
|
18
|
-
type EunomiaTextareaBase = LitElement & DisabledMixinInterface & ReadonlyMixinInterface & ValidatorsMixinInterface<string> & FormMixinInterface<string> & EditableMixinInterface & FormLabelMixinInterface &
|
|
18
|
+
type EunomiaTextareaBase = LitElement & DisabledMixinInterface & ReadonlyMixinInterface & ValidatorsMixinInterface<string> & FormMixinInterface<string> & EditableMixinInterface & FormLabelMixinInterface & FieldAppearanceMixinInterface;
|
|
19
19
|
declare const EunomiaTextareaMixinBase: Constructor<EunomiaTextareaBase>;
|
|
20
20
|
/**
|
|
21
21
|
* A multi-line text field, sharing its label, hint, and error chrome and
|
|
@@ -34,7 +34,7 @@ declare const EunomiaTextareaMixinBase: Constructor<EunomiaTextareaBase>;
|
|
|
34
34
|
* typed by hand. See the Accessibility tab for the full keyboard and ARIA
|
|
35
35
|
* details of the toolbar and both readonly behaviors.
|
|
36
36
|
*
|
|
37
|
-
* @prop {'outline' | '
|
|
37
|
+
* @prop {'outline' | 'flat' | 'underline'} [appearance='outline'] - How the field's surface is drawn: a bordered box, a muted background with no border, or a bottom border only
|
|
38
38
|
* @prop {string} label - The title label of the field, rendered through the label component
|
|
39
39
|
* @prop {string} instructions - Instructions displayed below the label
|
|
40
40
|
* @prop {string} placeholder - The placeholder shown when the field is empty
|
|
@@ -44,7 +44,8 @@ declare const EunomiaTextareaMixinBase: Constructor<EunomiaTextareaBase>;
|
|
|
44
44
|
* @prop {boolean} [disabled=false] - Whether the field is disabled
|
|
45
45
|
* @prop {boolean} [readonly=false] - Whether the field is read only
|
|
46
46
|
* @prop {boolean} [required=false] - Whether the field is required
|
|
47
|
-
* @prop {boolean} [hideError=false] - Whether the errors are hidden
|
|
47
|
+
* @prop {boolean} [hideError=false] - Whether the errors are hidden. The hint stays visible
|
|
48
|
+
* @prop {string} [error] - An error computed outside the field, by the form or by the server. While set, the field is invalid and shows this message right away
|
|
48
49
|
* @prop {Array<import('../../../types/form-validators.type.js').Validators<string>>} validators - The list of validation rules applied to the field value
|
|
49
50
|
* @prop {number} rows - The fixed number of visible rows. When omitted, the field automatically grows and shrinks its height to fit its content
|
|
50
51
|
* @prop {boolean} [readonlyAvailable=false] - Whether the field can switch between a static display and an editable one
|
|
@@ -76,6 +77,8 @@ declare const EunomiaTextareaMixinBase: Constructor<EunomiaTextareaBase>;
|
|
|
76
77
|
* @cssprop [--field-border-color-focus] - Sets the border color on focus
|
|
77
78
|
* @cssprop [--field-border-radius] - Sets the corner radius of the field
|
|
78
79
|
* @cssprop [--field-padding] - Sets the padding of the field
|
|
80
|
+
* @cssprop [--field-padding-block] - Sets the vertical padding, as one length applied to both sides. Ignored when --field-padding is set
|
|
81
|
+
* @cssprop [--field-padding-inline] - Sets the horizontal padding, as one length applied to both sides. Ignored when --field-padding is set
|
|
79
82
|
* @cssprop [--field-text-color] - Sets the text color of the field
|
|
80
83
|
* @cssprop [--field-placeholder-color] - Sets the color of the placeholder
|
|
81
84
|
* @cssprop [--field-error-color] - Sets the color of the error message
|
|
@@ -84,6 +87,9 @@ declare const EunomiaTextareaMixinBase: Constructor<EunomiaTextareaBase>;
|
|
|
84
87
|
* @cssprop [--field-edit-confirm-color] - Sets the color of the confirm button in readonly-available edit mode
|
|
85
88
|
* @cssprop [--field-edit-cancel-color] - Sets the color of the cancel button in readonly-available edit mode
|
|
86
89
|
* @cssprop [--field-shadow] - Sets a box shadow on the field, none by default
|
|
90
|
+
* @cssprop [--field-font-size] - Sets the font size of the field's value and placeholder
|
|
91
|
+
* @cssprop [--field-label-font-size] - Sets the font size of the label
|
|
92
|
+
* @cssprop [--field-message-font-size] - Sets the font size of the hint, error messages and instructions
|
|
87
93
|
* @element eun-textarea
|
|
88
94
|
*/
|
|
89
95
|
export declare class EunomiaTextarea extends EunomiaTextareaMixinBase {
|