@eunomia/elements 1.0.0-beta.5 → 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-OW7XKDCH.js → chunk-2Y2EU2CI.js} +16 -16
- package/dist/cdn/components/chunks/{chunk-LFCXUVDO.js → chunk-4PI6RDUS.js} +1 -1
- 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-EAKYD33D.js → chunk-BQFJR2UP.js} +4 -4
- 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-IDKZKLJR.js → chunk-KDN4O5W2.js} +24 -11
- 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-2XASWWKR.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-6ETDXUH2.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-AIS3UICU.js → chunk-QZ5SHR3I.js} +9 -5
- package/dist/cdn/components/chunks/{chunk-32DTNR52.js → chunk-RS7TWEMQ.js} +1 -1
- package/dist/cdn/components/chunks/chunk-SMTIDNGW.js +1 -0
- package/dist/cdn/components/chunks/{chunk-MPQP4R54.js → chunk-SZYEBMG6.js} +10 -9
- package/dist/cdn/components/chunks/{chunk-JRGM3W7I.js → chunk-UDVB4LAE.js} +5 -2
- package/dist/cdn/components/chunks/{chunk-L65WUTXM.js → chunk-UYZR4JXZ.js} +12 -7
- 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-DKOPI7QA.js → chunk-VYFR364B.js} +73 -63
- package/dist/cdn/components/chunks/{chunk-SD2WHGPF.js → chunk-XDPRWUKN.js} +1 -1
- 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-NBIENHLV.js → chunk-ZKZV2YG5.js} +18 -18
- package/dist/cdn/components/eun-alert.js +24 -16
- package/dist/cdn/components/eun-animate.js +12 -8
- package/dist/cdn/components/eun-badge.js +1 -1
- 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 +67 -65
- package/dist/cdn/components/eun-card.js +32 -17
- 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 +56 -27
- package/dist/cdn/components/eun-color-picker.js +53 -52
- package/dist/cdn/components/eun-counter.js +9 -8
- package/dist/cdn/components/eun-date-picker.js +59 -56
- 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 +32 -18
- 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 +17 -16
- 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 +15 -15
- 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 +78 -29
- package/dist/cdn/components/eun-loader.js +1 -1
- package/dist/cdn/components/eun-modal.js +17 -10
- 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 +1 -1
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +36 -36
- package/dist/cdn/components/eun-search.js +11 -10
- 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 +23 -23
- package/dist/cdn/components/eun-time-picker.js +17 -15
- package/dist/cdn/components/eun-toast.js +36 -16
- package/dist/cdn/components/eun-toggle-group.js +53 -34
- package/dist/cdn/components/eun-toggle-item.js +16 -15
- 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 +7 -2
- package/dist/components/action/button/button.js +7 -2
- package/dist/components/action/button/button.styles.js +51 -36
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +2 -2
- package/dist/components/action/dropdown-button/dropdown-button.js +11 -10
- 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.styles.js +14 -13
- package/dist/components/action/link/link.d.ts +7 -3
- package/dist/components/action/link/link.js +11 -7
- package/dist/components/action/link/link.styles.js +66 -15
- package/dist/components/action/shared-styles/button-palette.styles.js +15 -15
- package/dist/components/action/toggle/toggle-group.d.ts +2 -0
- package/dist/components/action/toggle/toggle-group.js +5 -3
- package/dist/components/action/toggle/toggle-group.styles.d.ts +2 -0
- package/dist/components/action/toggle/toggle-group.styles.js +42 -21
- package/dist/components/action/toggle/toggle-item.styles.js +13 -12
- 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 +4 -2
- package/dist/components/alert/drawer/drawer.styles.js +25 -9
- package/dist/components/alert/modal/modal.d.ts +3 -1
- package/dist/components/alert/modal/modal.js +4 -2
- 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/card/card.d.ts +7 -3
- package/dist/components/content/card/card.js +7 -3
- package/dist/components/content/card/card.styles.js +26 -11
- package/dist/components/content/card/image-card.d.ts +60 -6
- package/dist/components/content/card/image-card.js +120 -11
- package/dist/components/content/card/image-card.styles.js +66 -15
- package/dist/components/content/card/sliding-card.d.ts +2 -0
- package/dist/components/content/card/sliding-card.js +2 -0
- package/dist/components/content/card/sliding-card.styles.js +5 -1
- package/dist/components/content/collapse/collapse.d.ts +10 -1
- package/dist/components/content/collapse/collapse.js +12 -2
- package/dist/components/content/collapse/collapse.styles.d.ts +10 -1
- package/dist/components/content/collapse/collapse.styles.js +56 -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 +2 -0
- package/dist/components/content/icon/icon.js +2 -0
- package/dist/components/content/icon/icon.style.js +4 -1
- 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 +4 -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 +7 -1
- package/dist/components/form/color-picker/color-picker.js +19 -21
- package/dist/components/form/color-picker/color-picker.styles.js +6 -5
- package/dist/components/form/counter/counter.d.ts +4 -1
- package/dist/components/form/counter/counter.js +5 -2
- package/dist/components/form/counter/counter.styles.js +5 -4
- package/dist/components/form/date-picker/date-picker.d.ts +37 -33
- package/dist/components/form/date-picker/date-picker.js +32 -42
- package/dist/components/form/date-picker/date-picker.styles.js +8 -5
- package/dist/components/form/input/input.d.ts +7 -1
- package/dist/components/form/input/input.js +8 -2
- 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 +8 -2
- package/dist/components/form/input-phone/input-phone.js +13 -17
- package/dist/components/form/input-phone/input-phone.styles.js +4 -4
- 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 +5 -4
- package/dist/components/form/select/select.d.ts +9 -2
- package/dist/components/form/select/select.js +15 -18
- 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 +16 -6
- 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 +7 -1
- package/dist/components/form/textarea/textarea.js +14 -8
- 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 +6 -2
- package/dist/components/form/time-picker/time-picker.js +22 -26
- package/dist/components/form/time-picker/time-picker.styles.js +4 -3
- package/dist/components/layout/animate/animate.d.ts +37 -15
- package/dist/components/layout/animate/animate.js +35 -15
- 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 +6 -6
- package/dist/features/scheduler/calendar/calendar.js +6 -5
- package/dist/features/scheduler/calendar/calendar.styles.js +8 -6
- package/dist/features/scheduler/scheduler/scheduler.d.ts +1 -1
- package/dist/features/scheduler/scheduler/scheduler.js +9 -23
- package/dist/features/scheduler/scheduler/scheduler.styles.js +6 -4
- package/dist/features/scheduler/scheduler-event/scheduler-event.d.ts +2 -0
- package/dist/features/scheduler/scheduler-event/scheduler-event.js +2 -0
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +10 -4
- package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +3 -3
- 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 +11 -20
- 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 +15 -22
- package/dist/features/table/table-action-bar/table-action-bar.styles.js +15 -3
- package/dist/i18n/en.d.ts +31 -0
- package/dist/i18n/en.js +31 -0
- package/dist/i18n/fr.js +35 -0
- package/dist/index.d.ts +4 -10
- package/dist/index.js +6 -10
- package/dist/mixins/check.mixin.js +4 -5
- 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 +3 -2
- 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 +1 -1
- package/dist/ssr/table-ssr.css +472 -0
- package/dist/ssr/tag-ssr.css +197 -0
- package/dist/ssr/toolbar-ssr.css +5 -1
- 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/theme-generator.utils.d.ts +6 -1
- package/dist/utils/theme-generator.utils.js +59 -20
- package/package.json +17 -28
- 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-A6KGFALA.js +0 -132
- 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-SJWRE6PW.js +0 -1
- package/dist/cdn/components/chunks/chunk-T4PTHUYF.js +0 -10
- package/dist/cdn/components/chunks/chunk-VRGRCYIO.js +0 -1
- package/dist/cdn/components/chunks/chunk-X2AUBZD2.js +0 -30
- 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/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
|
@@ -22,6 +22,7 @@ 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
|
*/
|
|
@@ -67,7 +68,8 @@ const EunomiaSelectMixinBase = AnchorPositionMixin(FieldAppearanceMixin(FormLabe
|
|
|
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(FieldAppearanceMixin(FormLabe
|
|
|
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(FieldAppearanceMixin(FormLabe
|
|
|
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 {
|
|
@@ -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(
|
|
@@ -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 {
|
|
@@ -495,7 +495,8 @@ const EunomiaTextareaMixinBase = FieldAppearanceMixin(FormLabelMixin(ReadonlyMix
|
|
|
495
495
|
* @prop {boolean} [disabled=false] - Whether the field is disabled
|
|
496
496
|
* @prop {boolean} [readonly=false] - Whether the field is read only
|
|
497
497
|
* @prop {boolean} [required=false] - Whether the field is required
|
|
498
|
-
* @prop {boolean} [hideError=false] - Whether the errors are hidden
|
|
498
|
+
* @prop {boolean} [hideError=false] - Whether the errors are hidden. The hint stays visible
|
|
499
|
+
* @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
|
|
499
500
|
* @prop {Array<import('../../../types/form-validators.type.js').Validators<string>>} validators - The list of validation rules applied to the field value
|
|
500
501
|
* @prop {number} rows - The fixed number of visible rows. When omitted, the field automatically grows and shrinks its height to fit its content
|
|
501
502
|
* @prop {boolean} [readonlyAvailable=false] - Whether the field can switch between a static display and an editable one
|
|
@@ -527,6 +528,8 @@ const EunomiaTextareaMixinBase = FieldAppearanceMixin(FormLabelMixin(ReadonlyMix
|
|
|
527
528
|
* @cssprop [--field-border-color-focus] - Sets the border color on focus
|
|
528
529
|
* @cssprop [--field-border-radius] - Sets the corner radius of the field
|
|
529
530
|
* @cssprop [--field-padding] - Sets the padding of the field
|
|
531
|
+
* @cssprop [--field-padding-block] - Sets the vertical padding, as one length applied to both sides. Ignored when --field-padding is set
|
|
532
|
+
* @cssprop [--field-padding-inline] - Sets the horizontal padding, as one length applied to both sides. Ignored when --field-padding is set
|
|
530
533
|
* @cssprop [--field-text-color] - Sets the text color of the field
|
|
531
534
|
* @cssprop [--field-placeholder-color] - Sets the color of the placeholder
|
|
532
535
|
* @cssprop [--field-error-color] - Sets the color of the error message
|
|
@@ -535,6 +538,9 @@ const EunomiaTextareaMixinBase = FieldAppearanceMixin(FormLabelMixin(ReadonlyMix
|
|
|
535
538
|
* @cssprop [--field-edit-confirm-color] - Sets the color of the confirm button in readonly-available edit mode
|
|
536
539
|
* @cssprop [--field-edit-cancel-color] - Sets the color of the cancel button in readonly-available edit mode
|
|
537
540
|
* @cssprop [--field-shadow] - Sets a box shadow on the field, none by default
|
|
541
|
+
* @cssprop [--field-font-size] - Sets the font size of the field's value and placeholder
|
|
542
|
+
* @cssprop [--field-label-font-size] - Sets the font size of the label
|
|
543
|
+
* @cssprop [--field-message-font-size] - Sets the font size of the hint, error messages and instructions
|
|
538
544
|
* @element eun-textarea
|
|
539
545
|
*/
|
|
540
546
|
let EunomiaTextarea = class EunomiaTextarea extends EunomiaTextareaMixinBase {
|
|
@@ -996,13 +1002,13 @@ let EunomiaTextarea = class EunomiaTextarea extends EunomiaTextareaMixinBase {
|
|
|
996
1002
|
if (this.minlength !== undefined && length > 0 && length < this.minlength) {
|
|
997
1003
|
return {
|
|
998
1004
|
validity: { tooShort: true },
|
|
999
|
-
message:
|
|
1005
|
+
message: this.validationDictionary.validation.tooShort(this.minlength, length),
|
|
1000
1006
|
};
|
|
1001
1007
|
}
|
|
1002
1008
|
if (this.maxlength !== undefined && length > this.maxlength) {
|
|
1003
1009
|
return {
|
|
1004
1010
|
validity: { tooLong: true },
|
|
1005
|
-
message:
|
|
1011
|
+
message: this.validationDictionary.validation.tooLong(this.maxlength, length),
|
|
1006
1012
|
};
|
|
1007
1013
|
}
|
|
1008
1014
|
return { validity: {} };
|
|
@@ -1204,7 +1210,7 @@ let EunomiaTextarea = class EunomiaTextarea extends EunomiaTextareaMixinBase {
|
|
|
1204
1210
|
return;
|
|
1205
1211
|
}
|
|
1206
1212
|
this.handleEditableInput();
|
|
1207
|
-
this.updateComplete.then(() => {
|
|
1213
|
+
void this.updateComplete.then(() => {
|
|
1208
1214
|
root.focus();
|
|
1209
1215
|
this.syncToolbarToSelection();
|
|
1210
1216
|
});
|
|
@@ -1260,7 +1266,7 @@ let EunomiaTextarea = class EunomiaTextarea extends EunomiaTextareaMixinBase {
|
|
|
1260
1266
|
const [align] = event.target.value;
|
|
1261
1267
|
root.style.textAlign = align === "start" ? "" : align;
|
|
1262
1268
|
this.handleEditableInput();
|
|
1263
|
-
this.updateComplete.then(() => root.focus());
|
|
1269
|
+
void this.updateComplete.then(() => root.focus());
|
|
1264
1270
|
}
|
|
1265
1271
|
/**
|
|
1266
1272
|
* Opens or closes a color picker popover, wiring up (or tearing down) the
|
|
@@ -1321,7 +1327,7 @@ let EunomiaTextarea = class EunomiaTextarea extends EunomiaTextareaMixinBase {
|
|
|
1321
1327
|
}
|
|
1322
1328
|
}
|
|
1323
1329
|
this.closeColorPicker();
|
|
1324
|
-
this.updateComplete.then(() => this.fieldEl?.focus());
|
|
1330
|
+
void this.updateComplete.then(() => this.fieldEl?.focus());
|
|
1325
1331
|
}
|
|
1326
1332
|
/**
|
|
1327
1333
|
* Renders the formatting toolbar, shown above the field itself (never
|
|
@@ -1539,7 +1545,7 @@ let EunomiaTextarea = class EunomiaTextarea extends EunomiaTextareaMixinBase {
|
|
|
1539
1545
|
?required=${this.required}
|
|
1540
1546
|
minlength=${ifDefined(this.minlength)}
|
|
1541
1547
|
maxlength=${ifDefined(this.maxlength)}
|
|
1542
|
-
aria-invalid=${
|
|
1548
|
+
aria-invalid=${this.showError}
|
|
1543
1549
|
aria-label=${ifDefined(this.label)}
|
|
1544
1550
|
aria-describedby=${describedBy || nothing}
|
|
1545
1551
|
@input=${this.handleInput}
|
|
@@ -1570,7 +1576,7 @@ let EunomiaTextarea = class EunomiaTextarea extends EunomiaTextareaMixinBase {
|
|
|
1570
1576
|
role="textbox"
|
|
1571
1577
|
aria-multiline="true"
|
|
1572
1578
|
aria-required=${this.required ? "true" : nothing}
|
|
1573
|
-
aria-invalid=${
|
|
1579
|
+
aria-invalid=${this.showError}
|
|
1574
1580
|
aria-label=${ifDefined(this.label)}
|
|
1575
1581
|
aria-describedby=${describedBy || nothing}
|
|
1576
1582
|
@beforeinput=${this.handleEditableBeforeInput}
|
|
@@ -36,7 +36,8 @@ const timePickerColumns = css `
|
|
|
36
36
|
padding: var(--eun-space-xxs, 1.6px);
|
|
37
37
|
color: var(--_iconColor, var(--eun-text-secondary, #484e61));
|
|
38
38
|
cursor: pointer;
|
|
39
|
-
transition: background-color
|
|
39
|
+
transition: background-color var(--eun-duration-s, 150ms)
|
|
40
|
+
var(--eun-easing-default, ease);
|
|
40
41
|
}
|
|
41
42
|
.tp-arrow:hover:not(:disabled) {
|
|
42
43
|
background-color: var(
|
|
@@ -109,7 +110,8 @@ const timePickerColumns = css `
|
|
|
109
110
|
color: var(--_placeholderColor, var(--eun-color-grey-400, #c1c9d6));
|
|
110
111
|
font: inherit;
|
|
111
112
|
cursor: pointer;
|
|
112
|
-
transition: color
|
|
113
|
+
transition: color var(--eun-duration-s, 150ms)
|
|
114
|
+
var(--eun-easing-default, ease);
|
|
113
115
|
}
|
|
114
116
|
.tp-wheel-item.selected {
|
|
115
117
|
color: var(--_textColor, var(--eun-text-color, #071621));
|
|
@@ -27,7 +27,8 @@ const timePickerList = css `
|
|
|
27
27
|
font-variant-numeric: tabular-nums;
|
|
28
28
|
text-align: start;
|
|
29
29
|
cursor: pointer;
|
|
30
|
-
transition: background-color
|
|
30
|
+
transition: background-color var(--eun-duration-s, 150ms)
|
|
31
|
+
var(--eun-easing-default, ease);
|
|
31
32
|
}
|
|
32
33
|
.tp-list-item:hover:not(:disabled) {
|
|
33
34
|
background-color: var(
|
|
@@ -64,7 +64,8 @@ declare const EunomiaTimePickerMixinBase: Constructor<EunomiaTimePickerBase>;
|
|
|
64
64
|
* @prop {boolean} [disabled=false] - Whether the field is disabled
|
|
65
65
|
* @prop {boolean} [readonly=false] - Whether the field is read only
|
|
66
66
|
* @prop {boolean} [required=false] - Whether the field is required
|
|
67
|
-
* @prop {boolean} [hideError=false] - Whether the errors are hidden
|
|
67
|
+
* @prop {boolean} [hideError=false] - Whether the errors are hidden. The hint stays visible
|
|
68
|
+
* @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
|
|
68
69
|
* @prop {Array<Validators<Date | null>>} validators - The list of custom validation rules applied to the value
|
|
69
70
|
* @prop {string} [applyLabel='Apply'] - The label of the mobile modal's confirm button
|
|
70
71
|
* @attr {string} [apply-label='Apply'] - The label of the mobile modal's confirm button
|
|
@@ -96,6 +97,9 @@ declare const EunomiaTimePickerMixinBase: Constructor<EunomiaTimePickerBase>;
|
|
|
96
97
|
* @cssprop [--time-picker-selected-color] - Sets the text color of the selected item in the list panel mode
|
|
97
98
|
* @cssprop [--time-picker-panel-background] - Sets the background color of the popover panel
|
|
98
99
|
* @cssprop [--time-picker-panel-transition-duration=200ms] - Sets the duration of the popover panel's open and close transition
|
|
100
|
+
* @cssprop [--field-font-size] - Sets the font size of the field's value and placeholder
|
|
101
|
+
* @cssprop [--field-label-font-size] - Sets the font size of the label
|
|
102
|
+
* @cssprop [--field-message-font-size] - Sets the font size of the hint, error messages and instructions
|
|
99
103
|
* @element eun-time-picker
|
|
100
104
|
*/
|
|
101
105
|
export declare class EunomiaTimePicker extends EunomiaTimePickerMixinBase {
|
|
@@ -429,7 +433,7 @@ export declare class EunomiaTimePicker extends EunomiaTimePickerMixinBase {
|
|
|
429
433
|
* The popover's open/close animation duration, in ms : `0` if
|
|
430
434
|
* `noAnimation` is set or the browser reports `prefers-reduced-motion:
|
|
431
435
|
* reduce`, otherwise `--time-picker-panel-transition-duration` (default
|
|
432
|
-
* `
|
|
436
|
+
* `--eun-duration-m`).
|
|
433
437
|
*
|
|
434
438
|
* @param el the popover to read `--time-picker-panel-transition-duration` off.
|
|
435
439
|
* @private
|