@eunomia/elements 1.0.0-beta.5 → 1.0.0-beta.7
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 +2 -2
- 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-36KLGY6U.js +209 -0
- package/dist/cdn/components/chunks/chunk-3BMACIDO.js +1 -0
- package/dist/cdn/components/chunks/{chunk-IDKZKLJR.js → chunk-3PNGQEG4.js} +24 -11
- package/dist/cdn/components/chunks/{chunk-NBIENHLV.js → chunk-5XPOGBPL.js} +18 -18
- package/dist/cdn/components/chunks/chunk-624VJYNA.js +1 -0
- package/dist/cdn/components/chunks/chunk-62RLISRD.js +1 -0
- package/dist/cdn/components/chunks/{chunk-6ETDXUH2.js → chunk-6FYW5TQU.js} +7 -7
- package/dist/cdn/components/chunks/chunk-AK2DIJX7.js +1 -0
- package/dist/cdn/components/chunks/chunk-B5XMGWM7.js +10 -0
- package/dist/cdn/components/chunks/chunk-BKZGTCMF.js +1 -0
- package/dist/cdn/components/chunks/{chunk-GW3VP2L7.js → chunk-BO3JOEWM.js} +1 -1
- package/dist/cdn/components/chunks/chunk-BVASCT2V.js +109 -0
- package/dist/cdn/components/chunks/{chunk-DKOPI7QA.js → chunk-DGI7TKCU.js} +83 -68
- 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-LGLQ36QB.js → chunk-GDBPWZN6.js} +1 -1
- package/dist/cdn/components/chunks/chunk-GVS6IUKC.js +1 -0
- package/dist/cdn/components/chunks/chunk-GWLD2I3P.js +8 -0
- package/dist/cdn/components/chunks/{chunk-JRGM3W7I.js → chunk-I4ERDXSM.js} +9 -4
- package/dist/cdn/components/chunks/{chunk-AIS3UICU.js → chunk-J3SZBXM6.js} +11 -7
- package/dist/cdn/components/chunks/{chunk-5XJGYXW7.js → chunk-LVKMAHMU.js} +11 -1
- package/dist/cdn/components/chunks/{chunk-SD2WHGPF.js → chunk-MQQJ6DID.js} +1 -1
- 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-5EVP7YNE.js → chunk-PPCHQG7P.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-MPQP4R54.js → chunk-PXF554MD.js} +10 -9
- package/dist/cdn/components/chunks/chunk-QL5GSW2A.js +1 -0
- package/dist/cdn/components/chunks/{chunk-5XJLIHAU.js → chunk-QXQ25SQS.js} +24 -20
- package/dist/cdn/components/chunks/chunk-SMTIDNGW.js +1 -0
- package/dist/cdn/components/chunks/{chunk-PED5ATYN.js → chunk-SVGWCKWT.js} +2 -2
- package/dist/cdn/components/chunks/{chunk-2XASWWKR.js → chunk-TFTRCIIK.js} +9 -8
- package/dist/cdn/components/chunks/chunk-TLBXTBMM.js +46 -0
- package/dist/cdn/components/chunks/chunk-UVHVQRPT.js +1 -0
- package/dist/cdn/components/chunks/{chunk-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-WW4BTWMH.js +1 -0
- package/dist/cdn/components/chunks/{chunk-XH6NREVZ.js → chunk-YITWLCD3.js} +1 -1
- package/dist/cdn/components/chunks/{chunk-OW7XKDCH.js → chunk-Z3OFIE7S.js} +16 -16
- package/dist/cdn/components/chunks/{chunk-BQHYZB2W.js → chunk-ZBN4HTWP.js} +1 -1
- package/dist/cdn/components/eun-alert.js +33 -18
- package/dist/cdn/components/eun-animate.js +14 -10
- package/dist/cdn/components/eun-badge.js +2 -2
- 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 +34 -19
- package/dist/cdn/components/eun-carousel.js +76 -42
- package/dist/cdn/components/eun-check-card.js +13 -6
- package/dist/cdn/components/eun-checkbox-list.js +11 -8
- package/dist/cdn/components/eun-checkbox.js +1 -1
- package/dist/cdn/components/eun-chip.js +3 -3
- package/dist/cdn/components/eun-collapse.js +56 -27
- package/dist/cdn/components/eun-color-picker.js +79 -86
- package/dist/cdn/components/eun-counter.js +16 -15
- package/dist/cdn/components/eun-date-picker.js +71 -67
- package/dist/cdn/components/eun-description-list.js +152 -0
- package/dist/cdn/components/eun-divider.js +3 -3
- package/dist/cdn/components/eun-drawer.js +34 -20
- 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 +20 -19
- package/dist/cdn/components/eun-input-phone.js +17 -16
- 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 +27 -20
- package/dist/cdn/components/eun-pagination.js +24 -19
- package/dist/cdn/components/eun-password-strength.js +19 -11
- 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 +12 -9
- package/dist/cdn/components/eun-radio.js +1 -1
- package/dist/cdn/components/eun-rating.js +276 -0
- package/dist/cdn/components/eun-scheduler-event-editor.js +10 -10
- package/dist/cdn/components/eun-scheduler-event.js +1 -1
- package/dist/cdn/components/eun-scheduler.js +27 -27
- package/dist/cdn/components/eun-search.js +24 -25
- package/dist/cdn/components/eun-select.js +32 -31
- package/dist/cdn/components/eun-sidebar.js +40 -24
- 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 +22 -10
- package/dist/cdn/components/eun-stepper.js +41 -30
- package/dist/cdn/components/eun-switch.js +10 -8
- package/dist/cdn/components/eun-tab-group.js +24 -19
- 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 +34 -29
- package/dist/cdn/components/eun-time-picker.js +24 -21
- package/dist/cdn/components/eun-toast.js +51 -22
- package/dist/cdn/components/eun-toggle-group.js +57 -36
- 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 +64 -54
- 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 +9 -3
- package/dist/components/action/button/button.js +10 -4
- package/dist/components/action/button/button.styles.js +61 -41
- package/dist/components/action/dropdown-button/dropdown-button.d.ts +2 -2
- package/dist/components/action/dropdown-button/dropdown-button.js +21 -15
- 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 +6 -4
- package/dist/components/action/toggle/toggle-group.styles.d.ts +2 -0
- package/dist/components/action/toggle/toggle-group.styles.js +46 -23
- 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 +3 -1
- 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 +11 -7
- package/dist/components/alert/alert/alert.js +13 -14
- package/dist/components/alert/alert/alert.styles.js +32 -15
- package/dist/components/alert/drawer/drawer.d.ts +8 -6
- package/dist/components/alert/drawer/drawer.js +12 -14
- package/dist/components/alert/drawer/drawer.styles.js +26 -10
- package/dist/components/alert/modal/modal.d.ts +13 -11
- package/dist/components/alert/modal/modal.js +17 -27
- package/dist/components/alert/modal/modal.styles.js +16 -7
- package/dist/components/alert/toast/toast.d.ts +9 -5
- package/dist/components/alert/toast/toast.js +11 -13
- package/dist/components/alert/toast/toast.styles.js +49 -18
- package/dist/components/content/badge/badge.js +2 -2
- package/dist/components/content/card/card.d.ts +7 -3
- package/dist/components/content/card/card.js +8 -4
- package/dist/components/content/card/card.styles.js +28 -13
- 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/chip/chip.d.ts +4 -4
- package/dist/components/content/chip/chip.js +8 -8
- 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 +5 -0
- package/dist/components/content/icon/icon.js +5 -0
- package/dist/components/content/icon/icon.style.d.ts +2 -0
- package/dist/components/content/icon/icon.style.js +8 -1
- package/dist/components/content/image-carousel/image-carousel.d.ts +30 -19
- package/dist/components/content/image-carousel/image-carousel.js +58 -55
- package/dist/components/content/image-carousel/image-carousel.styles.js +69 -30
- package/dist/components/content/password-strength/password-strength.d.ts +21 -6
- package/dist/components/content/password-strength/password-strength.js +37 -16
- package/dist/components/content/password-strength/password-strength.styles.js +9 -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 +6 -2
- 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 +12 -19
- package/dist/components/content/tooltip/tooltip.styles.js +25 -7
- package/dist/components/form/checkbox/check-card.d.ts +5 -1
- package/dist/components/form/checkbox/check-card.js +5 -1
- package/dist/components/form/checkbox/check-card.styles.js +13 -4
- package/dist/components/form/checkbox/checkbox-list.d.ts +21 -1
- package/dist/components/form/checkbox/checkbox-list.js +50 -17
- package/dist/components/form/checkbox/checkbox.d.ts +5 -1
- package/dist/components/form/checkbox/checkbox.js +7 -2
- package/dist/components/form/checkbox/checkbox.styles.js +5 -4
- package/dist/components/form/color-picker/color-picker.d.ts +48 -29
- package/dist/components/form/color-picker/color-picker.js +85 -71
- package/dist/components/form/color-picker/color-picker.styles.js +7 -6
- package/dist/components/form/counter/counter.d.ts +26 -19
- package/dist/components/form/counter/counter.js +64 -63
- package/dist/components/form/counter/counter.styles.js +5 -4
- package/dist/components/form/date-picker/date-picker.d.ts +64 -39
- package/dist/components/form/date-picker/date-picker.js +107 -96
- package/dist/components/form/date-picker/date-picker.styles.js +8 -5
- package/dist/components/form/input/input.d.ts +45 -40
- package/dist/components/form/input/input.js +93 -111
- package/dist/components/form/input-file/input-file.d.ts +30 -14
- package/dist/components/form/input-file/input-file.js +43 -40
- package/dist/components/form/input-file/input-file.styles.js +7 -6
- package/dist/components/form/input-phone/input-phone.d.ts +30 -7
- package/dist/components/form/input-phone/input-phone.js +54 -30
- 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 +6 -2
- package/dist/components/form/radio/radio-card.js +6 -2
- package/dist/components/form/radio/radio-card.styles.js +14 -5
- package/dist/components/form/radio/radio-list.d.ts +28 -9
- package/dist/components/form/radio/radio-list.js +61 -32
- package/dist/components/form/radio/radio.d.ts +6 -2
- package/dist/components/form/radio/radio.js +6 -2
- package/dist/components/form/radio/radio.styles.js +4 -4
- package/dist/components/form/rating/rating.d.ts +349 -0
- package/dist/components/form/rating/rating.js +665 -0
- package/dist/components/form/rating/rating.styles.d.ts +1 -0
- package/dist/components/form/rating/rating.styles.js +213 -0
- package/dist/components/form/search/search.d.ts +10 -9
- package/dist/components/form/search/search.js +29 -56
- package/dist/components/form/search/search.styles.js +5 -4
- package/dist/components/form/select/select.d.ts +32 -12
- package/dist/components/form/select/select.js +74 -59
- 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/shared-styles/listbox.styles.js +10 -0
- package/dist/components/form/slider/slider.d.ts +11 -9
- package/dist/components/form/slider/slider.js +14 -14
- package/dist/components/form/slider/slider.styles.js +8 -7
- package/dist/components/form/switch/switch.d.ts +5 -1
- package/dist/components/form/switch/switch.js +5 -1
- package/dist/components/form/switch/switch.styles.js +7 -5
- package/dist/components/form/textarea/textarea.d.ts +96 -24
- package/dist/components/form/textarea/textarea.js +206 -51
- package/dist/components/form/time-picker/time-picker-columns.d.ts +2 -2
- package/dist/components/form/time-picker/time-picker-columns.js +8 -8
- package/dist/components/form/time-picker/time-picker-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 +30 -10
- package/dist/components/form/time-picker/time-picker.js +81 -64
- 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 +36 -16
- package/dist/components/layout/animate/animate.styles.js +11 -18
- package/dist/components/layout/divider/divider.js +1 -1
- package/dist/components/layout/divider/divider.styles.js +1 -1
- 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.js +2 -2
- package/dist/components/loader/loader/loader.styles.js +17 -13
- package/dist/components/loader/skeleton/skeleton.js +1 -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 +55 -11
- package/dist/components/navigation/carousel/carousel.js +101 -43
- package/dist/components/navigation/carousel/carousel.styles.js +65 -22
- package/dist/components/navigation/pagination/pagination.d.ts +23 -21
- package/dist/components/navigation/pagination/pagination.js +30 -53
- package/dist/components/navigation/pagination/pagination.styles.js +8 -3
- package/dist/components/navigation/sidebar/sidebar.d.ts +17 -13
- package/dist/components/navigation/sidebar/sidebar.js +23 -33
- package/dist/components/navigation/sidebar/sidebar.styles.js +32 -14
- package/dist/components/navigation/stepper/step.js +9 -8
- package/dist/components/navigation/stepper/step.styles.js +16 -5
- package/dist/components/navigation/stepper/stepper.js +12 -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 +9 -10
- package/dist/components/navigation/tabs/tab-group/tab-group.styles.js +21 -16
- 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 +30 -62
- package/dist/components/navigation/toolbar/toolbar.js +43 -105
- 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 +7 -6
- package/dist/features/scheduler/calendar/calendar.styles.js +8 -6
- package/dist/features/scheduler/scheduler/scheduler.d.ts +8 -8
- package/dist/features/scheduler/scheduler/scheduler.js +24 -47
- 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 +5 -3
- package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +11 -5
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.d.ts +6 -4
- package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +6 -7
- 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 +99 -0
- package/dist/i18n/en.js +99 -0
- package/dist/i18n/fr.js +103 -2
- package/dist/index.d.ts +6 -10
- package/dist/index.js +7 -10
- package/dist/mixins/button.mixin.js +3 -2
- package/dist/mixins/check.mixin.js +15 -15
- package/dist/mixins/disabled.mixin.d.ts +5 -0
- package/dist/mixins/disabled.mixin.js +21 -1
- package/dist/mixins/editable.mixin.js +28 -5
- package/dist/mixins/field-appearance.mixin.js +3 -2
- package/dist/mixins/form.mixin.d.ts +21 -1
- package/dist/mixins/form.mixin.js +156 -27
- package/dist/mixins/localizable.mixin.d.ts +1 -1
- package/dist/mixins/localizable.mixin.js +1 -1
- package/dist/mixins/radio.mixin.js +15 -15
- package/dist/mixins/readonly.mixin.d.ts +2 -1
- package/dist/mixins/readonly.mixin.js +10 -3
- package/dist/mixins/validators.mixin.d.ts +7 -1
- package/dist/mixins/validators.mixin.js +36 -17
- package/dist/ssr/alert-ssr.css +187 -0
- package/dist/ssr/animate-ssr.css +3 -2
- package/dist/ssr/badge-ssr.css +67 -0
- package/dist/ssr/breadcrumb-ssr.css +41 -0
- package/dist/ssr/button-ssr.css +319 -0
- package/dist/ssr/card-ssr.css +196 -0
- package/dist/ssr/carousel-ssr.css +238 -0
- package/dist/ssr/checkbox-ssr.css +67 -0
- package/dist/ssr/chip-ssr.css +242 -0
- package/dist/ssr/collapse-ssr.css +151 -0
- package/dist/ssr/description-list-ssr.css +150 -0
- package/dist/ssr/field-ssr.css +163 -0
- package/dist/ssr/icon-ssr.css +266 -0
- package/dist/ssr/image-carousel-ssr.css +24 -0
- package/dist/ssr/links-ssr.css +8 -2
- package/dist/ssr/pagination-ssr.css +4 -0
- package/dist/ssr/rating-ssr.css +254 -0
- package/dist/ssr/sidebar-ssr.css +9 -1
- package/dist/ssr/skeleton-ssr.css +63 -0
- package/dist/ssr/table-ssr.css +472 -0
- package/dist/ssr/tabs-ssr.css +129 -0
- package/dist/ssr/tag-ssr.css +197 -0
- package/dist/ssr/toggle-group-ssr.css +182 -0
- package/dist/ssr/toolbar-ssr.css +34 -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/implicit-submission.utils.d.ts +18 -0
- package/dist/utils/implicit-submission.utils.js +79 -0
- package/dist/utils/light-dom-styles.utils.d.ts +14 -0
- package/dist/utils/light-dom-styles.utils.js +37 -0
- package/dist/utils/listbox-options.utils.d.ts +11 -0
- package/dist/utils/listbox-options.utils.js +41 -3
- 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 +39 -31
- 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-32DTNR52.js +0 -1
- 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-E4IS25H7.js +0 -1
- package/dist/cdn/components/chunks/chunk-E74CM7UG.js +0 -66
- package/dist/cdn/components/chunks/chunk-EAKYD33D.js +0 -110
- 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-KBH5PCUO.js +0 -3
- package/dist/cdn/components/chunks/chunk-KVYUNKUO.js +0 -27
- package/dist/cdn/components/chunks/chunk-LFCXUVDO.js +0 -1
- 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-S2UCEWNG.js +0 -207
- 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
|
@@ -4,6 +4,7 @@ import { PasswordStrengthLevel, PasswordStrengthRule } from "./password-strength
|
|
|
4
4
|
* Tag name of the password strength component.
|
|
5
5
|
*/
|
|
6
6
|
export declare const EunomiaPasswordStrengthTagName = "eun-password-strength";
|
|
7
|
+
declare const EunomiaPasswordStrength_base: import("../../../utils/constructor.type.js").Constructor<import("../../../mixins/localizable.mixin.js").LocalizableMixinInterface> & typeof LitElement;
|
|
7
8
|
/**
|
|
8
9
|
* A visual and assistive technology indicator of how well a password
|
|
9
10
|
* satisfies a set of configurable requirements, graded into levels,
|
|
@@ -21,9 +22,10 @@ export declare const EunomiaPasswordStrengthTagName = "eun-password-strength";
|
|
|
21
22
|
* escape hatch for a level that needs a specific pattern instead.
|
|
22
23
|
*
|
|
23
24
|
* @prop {string} [value=''] - The password to grade
|
|
24
|
-
* @prop {string} [label
|
|
25
|
+
* @prop {string} [label] - A static caption shown next to the current level's name, and used to prefix the message announced to screen readers on every level change. Defaults to the localized string for the current locale (English: "Password strength")
|
|
25
26
|
* @prop {Array<import('./password-strength.type.js').PasswordStrengthRule>} [rules] - The shared pool of requirements levels are scored against by default. Four by default: eight or more characters, upper and lower case, one number, and one special character
|
|
26
|
-
* @prop {Array<import('./password-strength.type.js').PasswordStrengthLevel>} [levels] - The levels to render, ordered from weakest to strongest. Four by default: Weak, Fair, Good, and Strong
|
|
27
|
+
* @prop {Array<import('./password-strength.type.js').PasswordStrengthLevel>} [levels] - The levels to render, ordered from weakest to strongest. Four by default: Weak, Fair, Good, and Strong, named in the current locale
|
|
28
|
+
* @prop {string} [locale] - The locale used to resolve the default caption and level names. Defaults to the shared default locale
|
|
27
29
|
* @prop {boolean} [hideLabel=false] - Hides the always-visible caption and level name. The level name is still announced to screen readers on every change either way
|
|
28
30
|
* @attr {boolean} [hide-label=false] - Hides the always-visible caption and level name
|
|
29
31
|
* @cssprop [--password-strength-gap] - Sets the gap between the segment row and the label
|
|
@@ -42,7 +44,7 @@ export declare const EunomiaPasswordStrengthTagName = "eun-password-strength";
|
|
|
42
44
|
* @cssprop [--password-strength-level-font-weight] - Sets the font weight of the level name
|
|
43
45
|
* @element eun-password-strength
|
|
44
46
|
*/
|
|
45
|
-
export declare class EunomiaPasswordStrength extends
|
|
47
|
+
export declare class EunomiaPasswordStrength extends EunomiaPasswordStrength_base {
|
|
46
48
|
/**
|
|
47
49
|
* Styles to import to the component.
|
|
48
50
|
*
|
|
@@ -59,10 +61,10 @@ export declare class EunomiaPasswordStrength extends LitElement {
|
|
|
59
61
|
/**
|
|
60
62
|
* Static caption shown next to the current level's name, and used to
|
|
61
63
|
* prefix the message announced to screen readers on every level change
|
|
62
|
-
* (e.g. "Password strength: Fair").
|
|
63
|
-
*
|
|
64
|
+
* (e.g. "Password strength: Fair"). Falls back to the localized string
|
|
65
|
+
* for the current locale when unset.
|
|
64
66
|
*/
|
|
65
|
-
label
|
|
67
|
+
label?: string;
|
|
66
68
|
/**
|
|
67
69
|
* The shared pool of regex-based requirements levels are scored against
|
|
68
70
|
* by default (see {@link PasswordStrengthLevel.minScore}). A JS-only
|
|
@@ -107,6 +109,18 @@ export declare class EunomiaPasswordStrength extends LitElement {
|
|
|
107
109
|
* @internal
|
|
108
110
|
*/
|
|
109
111
|
private get currentLevelIndex();
|
|
112
|
+
/**
|
|
113
|
+
* {@link levels}, with the default levels named in the current locale.
|
|
114
|
+
* Custom levels are returned as is.
|
|
115
|
+
* @internal
|
|
116
|
+
*/
|
|
117
|
+
private get resolvedLevels();
|
|
118
|
+
/**
|
|
119
|
+
* {@link label} or its localized fallback, punctuated for the current
|
|
120
|
+
* locale (e.g. "Password strength:").
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
private get caption();
|
|
110
124
|
/**
|
|
111
125
|
* Lifecycle hook called whenever reactive properties change. Speaks the
|
|
112
126
|
* newly-reached level through {@link announcerEl} whenever it actually
|
|
@@ -122,3 +136,4 @@ declare global {
|
|
|
122
136
|
[EunomiaPasswordStrengthTagName]: EunomiaPasswordStrength;
|
|
123
137
|
}
|
|
124
138
|
}
|
|
139
|
+
export {};
|
|
@@ -10,6 +10,7 @@ import { classMap } from "lit/directives/class-map.js";
|
|
|
10
10
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
11
11
|
import { passwordStrengthStyles } from "./password-strength.styles.js";
|
|
12
12
|
import { DEFAULT_PASSWORD_STRENGTH_LEVELS, DEFAULT_PASSWORD_STRENGTH_RULES, getPasswordStrengthLevelIndex, } from "./password-strength.type.js";
|
|
13
|
+
import { LocalizableMixin } from "../../../mixins/localizable.mixin.js";
|
|
13
14
|
/**
|
|
14
15
|
* Tag name of the password strength component.
|
|
15
16
|
*/
|
|
@@ -31,9 +32,10 @@ export const EunomiaPasswordStrengthTagName = "eun-password-strength";
|
|
|
31
32
|
* escape hatch for a level that needs a specific pattern instead.
|
|
32
33
|
*
|
|
33
34
|
* @prop {string} [value=''] - The password to grade
|
|
34
|
-
* @prop {string} [label
|
|
35
|
+
* @prop {string} [label] - A static caption shown next to the current level's name, and used to prefix the message announced to screen readers on every level change. Defaults to the localized string for the current locale (English: "Password strength")
|
|
35
36
|
* @prop {Array<import('./password-strength.type.js').PasswordStrengthRule>} [rules] - The shared pool of requirements levels are scored against by default. Four by default: eight or more characters, upper and lower case, one number, and one special character
|
|
36
|
-
* @prop {Array<import('./password-strength.type.js').PasswordStrengthLevel>} [levels] - The levels to render, ordered from weakest to strongest. Four by default: Weak, Fair, Good, and Strong
|
|
37
|
+
* @prop {Array<import('./password-strength.type.js').PasswordStrengthLevel>} [levels] - The levels to render, ordered from weakest to strongest. Four by default: Weak, Fair, Good, and Strong, named in the current locale
|
|
38
|
+
* @prop {string} [locale] - The locale used to resolve the default caption and level names. Defaults to the shared default locale
|
|
37
39
|
* @prop {boolean} [hideLabel=false] - Hides the always-visible caption and level name. The level name is still announced to screen readers on every change either way
|
|
38
40
|
* @attr {boolean} [hide-label=false] - Hides the always-visible caption and level name
|
|
39
41
|
* @cssprop [--password-strength-gap] - Sets the gap between the segment row and the label
|
|
@@ -52,7 +54,7 @@ export const EunomiaPasswordStrengthTagName = "eun-password-strength";
|
|
|
52
54
|
* @cssprop [--password-strength-level-font-weight] - Sets the font weight of the level name
|
|
53
55
|
* @element eun-password-strength
|
|
54
56
|
*/
|
|
55
|
-
let EunomiaPasswordStrength = class EunomiaPasswordStrength extends LitElement {
|
|
57
|
+
let EunomiaPasswordStrength = class EunomiaPasswordStrength extends LocalizableMixin(LitElement) {
|
|
56
58
|
constructor() {
|
|
57
59
|
super(...arguments);
|
|
58
60
|
/**
|
|
@@ -60,13 +62,6 @@ let EunomiaPasswordStrength = class EunomiaPasswordStrength extends LitElement {
|
|
|
60
62
|
* @default ''
|
|
61
63
|
*/
|
|
62
64
|
this.value = "";
|
|
63
|
-
/**
|
|
64
|
-
* Static caption shown next to the current level's name, and used to
|
|
65
|
-
* prefix the message announced to screen readers on every level change
|
|
66
|
-
* (e.g. "Password strength: Fair").
|
|
67
|
-
* @default Password strength
|
|
68
|
-
*/
|
|
69
|
-
this.label = "Password strength";
|
|
70
65
|
/**
|
|
71
66
|
* The shared pool of regex-based requirements levels are scored against
|
|
72
67
|
* by default (see {@link PasswordStrengthLevel.minScore}). A JS-only
|
|
@@ -106,6 +101,30 @@ let EunomiaPasswordStrength = class EunomiaPasswordStrength extends LitElement {
|
|
|
106
101
|
get currentLevelIndex() {
|
|
107
102
|
return getPasswordStrengthLevelIndex(this.value, this.rules, this.levels);
|
|
108
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* {@link levels}, with the default levels named in the current locale.
|
|
106
|
+
* Custom levels are returned as is.
|
|
107
|
+
* @internal
|
|
108
|
+
*/
|
|
109
|
+
get resolvedLevels() {
|
|
110
|
+
if (this.levels !== DEFAULT_PASSWORD_STRENGTH_LEVELS) {
|
|
111
|
+
return this.levels;
|
|
112
|
+
}
|
|
113
|
+
const names = this.dictionary.passwordStrength.levels;
|
|
114
|
+
return this.levels.map((level, index) => ({
|
|
115
|
+
...level,
|
|
116
|
+
label: names[index] ?? level.label,
|
|
117
|
+
}));
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* {@link label} or its localized fallback, punctuated for the current
|
|
121
|
+
* locale (e.g. "Password strength:").
|
|
122
|
+
* @internal
|
|
123
|
+
*/
|
|
124
|
+
get caption() {
|
|
125
|
+
const { passwordStrength } = this.dictionary;
|
|
126
|
+
return passwordStrength.caption(this.label ?? passwordStrength.label);
|
|
127
|
+
}
|
|
109
128
|
/**
|
|
110
129
|
* Lifecycle hook called whenever reactive properties change. Speaks the
|
|
111
130
|
* newly-reached level through {@link announcerEl} whenever it actually
|
|
@@ -127,12 +146,14 @@ let EunomiaPasswordStrength = class EunomiaPasswordStrength extends LitElement {
|
|
|
127
146
|
this.previousLevelIndex = index;
|
|
128
147
|
if (this.announcerEl) {
|
|
129
148
|
this.announcerEl.textContent =
|
|
130
|
-
index === -1
|
|
149
|
+
index === -1
|
|
150
|
+
? ""
|
|
151
|
+
: `${this.caption} ${this.resolvedLevels[index].label}`;
|
|
131
152
|
}
|
|
132
153
|
}
|
|
133
154
|
render() {
|
|
134
155
|
const index = this.currentLevelIndex;
|
|
135
|
-
const level = index === -1 ? undefined : this.
|
|
156
|
+
const level = index === -1 ? undefined : this.resolvedLevels[index];
|
|
136
157
|
return html `
|
|
137
158
|
<div id="wrapper" data-severity=${ifDefined(level?.severity)}>
|
|
138
159
|
<div id="segments" role="presentation" aria-hidden="true">
|
|
@@ -145,12 +166,12 @@ let EunomiaPasswordStrength = class EunomiaPasswordStrength extends LitElement {
|
|
|
145
166
|
></span>
|
|
146
167
|
`)}
|
|
147
168
|
</div>
|
|
148
|
-
${this.hideLabel
|
|
169
|
+
${this.hideLabel
|
|
149
170
|
? nothing
|
|
150
171
|
: html `
|
|
151
|
-
<span id="label">
|
|
152
|
-
<span id="caption">${this.
|
|
153
|
-
<span id="level-name">${level
|
|
172
|
+
<span id="label" class=${classMap({ empty: !level })}>
|
|
173
|
+
<span id="caption">${this.caption}</span>
|
|
174
|
+
<span id="level-name">${level?.label ?? "\u00A0"}</span>
|
|
154
175
|
</span>
|
|
155
176
|
`}
|
|
156
177
|
</div>
|
|
@@ -83,7 +83,11 @@ const base = css `
|
|
|
83
83
|
var(--eun-surface-sunken-strong, #ecedf0)
|
|
84
84
|
);
|
|
85
85
|
transition: background-color
|
|
86
|
-
var(
|
|
86
|
+
var(
|
|
87
|
+
--password-strength-transition-duration,
|
|
88
|
+
var(--eun-duration-xl, 300ms)
|
|
89
|
+
)
|
|
90
|
+
var(--eun-easing-default, ease);
|
|
87
91
|
}
|
|
88
92
|
|
|
89
93
|
.segment.filled {
|
|
@@ -103,6 +107,10 @@ const base = css `
|
|
|
103
107
|
);
|
|
104
108
|
}
|
|
105
109
|
|
|
110
|
+
#label.empty {
|
|
111
|
+
visibility: hidden;
|
|
112
|
+
}
|
|
113
|
+
|
|
106
114
|
#caption {
|
|
107
115
|
color: var(
|
|
108
116
|
--password-strength-caption-color,
|
|
@@ -155,7 +155,9 @@ const base = css `
|
|
|
155
155
|
--progress-bar-border-radius,
|
|
156
156
|
var(--eun-border-radius-full, 999px)
|
|
157
157
|
);
|
|
158
|
-
transition: width
|
|
158
|
+
transition: width
|
|
159
|
+
var(--progress-bar-transition-duration, var(--eun-duration-xl, 300ms))
|
|
160
|
+
var(--eun-easing-default, ease);
|
|
159
161
|
}
|
|
160
162
|
|
|
161
163
|
#field::-webkit-meter-suboptimum-value {
|
|
@@ -164,7 +166,9 @@ const base = css `
|
|
|
164
166
|
--progress-bar-border-radius,
|
|
165
167
|
var(--eun-border-radius-full, 999px)
|
|
166
168
|
);
|
|
167
|
-
transition: width
|
|
169
|
+
transition: width
|
|
170
|
+
var(--progress-bar-transition-duration, var(--eun-duration-xl, 300ms))
|
|
171
|
+
var(--eun-easing-default, ease);
|
|
168
172
|
}
|
|
169
173
|
|
|
170
174
|
#field::-webkit-meter-even-less-good-value {
|
|
@@ -173,7 +177,9 @@ const base = css `
|
|
|
173
177
|
--progress-bar-border-radius,
|
|
174
178
|
var(--eun-border-radius-full, 999px)
|
|
175
179
|
);
|
|
176
|
-
transition: width
|
|
180
|
+
transition: width
|
|
181
|
+
var(--progress-bar-transition-duration, var(--eun-duration-xl, 300ms))
|
|
182
|
+
var(--eun-easing-default, ease);
|
|
177
183
|
}
|
|
178
184
|
|
|
179
185
|
#field::-moz-meter-bar {
|
|
@@ -183,7 +189,9 @@ const base = css `
|
|
|
183
189
|
var(--eun-border-radius-full, 999px)
|
|
184
190
|
);
|
|
185
191
|
background: var(--_optimumColor);
|
|
186
|
-
transition: width
|
|
192
|
+
transition: width
|
|
193
|
+
var(--progress-bar-transition-duration, var(--eun-duration-xl, 300ms))
|
|
194
|
+
var(--eun-easing-default, ease);
|
|
187
195
|
}
|
|
188
196
|
|
|
189
197
|
#field:-moz-meter-sub-optimum::-moz-meter-bar {
|
|
@@ -5,9 +5,10 @@ import { css } from "lit";
|
|
|
5
5
|
* once `href` is set, and the absolutely-positioned external-link badge
|
|
6
6
|
* shown when `target="_blank"` (see `CardLinkMixin`).
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* The element holding the badge (`#card`, or `#back` for the sliding
|
|
9
|
+
* card) must be positioned. Positioning only `:host` isn't enough : the
|
|
10
|
+
* hover `transform` makes that element the containing block, and the
|
|
11
|
+
* badge would jump by the border width on hover.
|
|
11
12
|
*/
|
|
12
13
|
const base = css `
|
|
13
14
|
:host([href]) {
|
|
@@ -25,6 +25,11 @@
|
|
|
25
25
|
* flips with the active theme ; the `fixed-color` attribute pins them to the
|
|
26
26
|
* light theme's white and black instead.
|
|
27
27
|
*
|
|
28
|
+
* Severities read their `--eun-color-<state>-text` token for the solid and
|
|
29
|
+
* the accent rather than the raw `-100` state color, so both the colored
|
|
30
|
+
* text on the pale wash and the white text on the `fill` surface reach a
|
|
31
|
+
* 4.5:1 contrast ratio.
|
|
32
|
+
*
|
|
28
33
|
* A component can override a slot on its own host to adapt it, for example
|
|
29
34
|
* `--_bg-outline` when its outline surface isn't transparent.
|
|
30
35
|
*/
|
|
@@ -26,6 +26,11 @@ import { css } from "lit";
|
|
|
26
26
|
* flips with the active theme ; the `fixed-color` attribute pins them to the
|
|
27
27
|
* light theme's white and black instead.
|
|
28
28
|
*
|
|
29
|
+
* Severities read their `--eun-color-<state>-text` token for the solid and
|
|
30
|
+
* the accent rather than the raw `-100` state color, so both the colored
|
|
31
|
+
* text on the pale wash and the white text on the `fill` surface reach a
|
|
32
|
+
* 4.5:1 contrast ratio.
|
|
33
|
+
*
|
|
29
34
|
* A component can override a slot on its own host to adapt it, for example
|
|
30
35
|
* `--_bg-outline` when its outline surface isn't transparent.
|
|
31
36
|
*/
|
|
@@ -58,13 +63,13 @@ export const toneSurfaceStyles = css `
|
|
|
58
63
|
:host([color="primary"]:not([severity])) {
|
|
59
64
|
--_solid: var(--eun-color-primary-500, #3d6fff);
|
|
60
65
|
--_onSolid: var(--eun-color-on-primary-500, #ffffff);
|
|
61
|
-
--_tint: var(--eun-color-primary-
|
|
66
|
+
--_tint: var(--eun-color-primary-alpha-20, #3d6fff33);
|
|
62
67
|
--_accent: var(--eun-color-primary-500, #3d6fff);
|
|
63
68
|
}
|
|
64
69
|
:host([color="secondary"]:not([severity])) {
|
|
65
70
|
--_solid: var(--eun-color-secondary-500, #e5a030);
|
|
66
71
|
--_onSolid: var(--eun-color-on-secondary-500, #000000de);
|
|
67
|
-
--_tint: var(--eun-color-secondary-
|
|
72
|
+
--_tint: var(--eun-color-secondary-alpha-20, #edbd6f33);
|
|
68
73
|
--_accent: var(--eun-color-secondary-500, #e5a030);
|
|
69
74
|
}
|
|
70
75
|
|
|
@@ -95,28 +100,28 @@ export const toneSurfaceStyles = css `
|
|
|
95
100
|
}
|
|
96
101
|
|
|
97
102
|
:host([severity="info"]) {
|
|
98
|
-
--_solid: var(--eun-color-info-
|
|
103
|
+
--_solid: var(--eun-color-info-text, #097aa8);
|
|
99
104
|
--_onSolid: #fff;
|
|
100
|
-
--_tint: var(--eun-color-info-
|
|
101
|
-
--_accent: var(--eun-color-info-
|
|
105
|
+
--_tint: var(--eun-color-info-alpha-5, #097faf0d);
|
|
106
|
+
--_accent: var(--eun-color-info-text, #097aa8);
|
|
102
107
|
}
|
|
103
108
|
:host([severity="success"]) {
|
|
104
|
-
--_solid: var(--eun-color-success-
|
|
109
|
+
--_solid: var(--eun-color-success-text, #167f3c);
|
|
105
110
|
--_onSolid: #fff;
|
|
106
|
-
--_tint: var(--eun-color-success-
|
|
107
|
-
--_accent: var(--eun-color-success-
|
|
111
|
+
--_tint: var(--eun-color-success-alpha-5, #1a99480d);
|
|
112
|
+
--_accent: var(--eun-color-success-text, #167f3c);
|
|
108
113
|
}
|
|
109
114
|
:host([severity="warning"]) {
|
|
110
|
-
--_solid: var(--eun-color-warning-
|
|
115
|
+
--_solid: var(--eun-color-warning-text, #b94c06);
|
|
111
116
|
--_onSolid: #fff;
|
|
112
|
-
--_tint: var(--eun-color-warning-
|
|
113
|
-
--_accent: var(--eun-color-warning-
|
|
117
|
+
--_tint: var(--eun-color-warning-alpha-5, #c852070d);
|
|
118
|
+
--_accent: var(--eun-color-warning-text, #b94c06);
|
|
114
119
|
}
|
|
115
120
|
:host([severity="critical"]) {
|
|
116
|
-
--_solid: var(--eun-color-critical-
|
|
121
|
+
--_solid: var(--eun-color-critical-text, #aa0014);
|
|
117
122
|
--_onSolid: #fff;
|
|
118
|
-
--_tint: var(--eun-color-critical-
|
|
119
|
-
--_accent: var(--eun-color-critical-
|
|
123
|
+
--_tint: var(--eun-color-critical-alpha-5, #aa00140d);
|
|
124
|
+
--_accent: var(--eun-color-critical-text, #aa0014);
|
|
120
125
|
}
|
|
121
126
|
:host([severity="neutral"]) {
|
|
122
127
|
--_solid: var(--eun-color-grey-700, #484e61);
|
|
@@ -50,6 +50,10 @@ type TagSize = EunomiaCompactSize;
|
|
|
50
50
|
* @cssprop [--tag-color] - Sets the text and icon color of the tag, for every appearance, color and severity
|
|
51
51
|
* @cssprop [--tag-border-radius] - Sets the corner radius of the tag, also over rounded
|
|
52
52
|
* @cssprop [--tag-gap] - Sets the gap between the tag icon and the label
|
|
53
|
+
* @cssprop [--tag-padding-block] - Sets the vertical padding of the tag, for every size. The border is taken out of it, so the tag keeps the same size with or without one
|
|
54
|
+
* @cssprop [--tag-padding-inline] - Sets the horizontal padding of the tag, for every size. The border is taken out of it, so the tag keeps the same size with or without one
|
|
55
|
+
* @cssprop [--tag-font-size] - Sets the font size of the tag, for every size
|
|
56
|
+
* @cssprop [--tag-font-weight] - Sets the font weight of the tag
|
|
53
57
|
* @element eun-tag
|
|
54
58
|
*/
|
|
55
59
|
export declare class EunomiaTag extends LitElement {
|
|
@@ -43,6 +43,10 @@ export const EunomiaTagTagName = "eun-tag";
|
|
|
43
43
|
* @cssprop [--tag-color] - Sets the text and icon color of the tag, for every appearance, color and severity
|
|
44
44
|
* @cssprop [--tag-border-radius] - Sets the corner radius of the tag, also over rounded
|
|
45
45
|
* @cssprop [--tag-gap] - Sets the gap between the tag icon and the label
|
|
46
|
+
* @cssprop [--tag-padding-block] - Sets the vertical padding of the tag, for every size. The border is taken out of it, so the tag keeps the same size with or without one
|
|
47
|
+
* @cssprop [--tag-padding-inline] - Sets the horizontal padding of the tag, for every size. The border is taken out of it, so the tag keeps the same size with or without one
|
|
48
|
+
* @cssprop [--tag-font-size] - Sets the font size of the tag, for every size
|
|
49
|
+
* @cssprop [--tag-font-weight] - Sets the font weight of the tag
|
|
46
50
|
* @element eun-tag
|
|
47
51
|
*/
|
|
48
52
|
let EunomiaTag = class EunomiaTag extends LitElement {
|
|
@@ -163,13 +167,13 @@ let EunomiaTag = class EunomiaTag extends LitElement {
|
|
|
163
167
|
*/
|
|
164
168
|
EunomiaTag.styles = tagStyles;
|
|
165
169
|
__decorate([
|
|
166
|
-
property({ reflect: true })
|
|
170
|
+
property({ reflect: true, useDefault: true })
|
|
167
171
|
], EunomiaTag.prototype, "color", void 0);
|
|
168
172
|
__decorate([
|
|
169
173
|
property({ reflect: true })
|
|
170
174
|
], EunomiaTag.prototype, "severity", void 0);
|
|
171
175
|
__decorate([
|
|
172
|
-
property({ reflect: true })
|
|
176
|
+
property({ reflect: true, useDefault: true })
|
|
173
177
|
], EunomiaTag.prototype, "appearance", void 0);
|
|
174
178
|
__decorate([
|
|
175
179
|
property()
|
|
@@ -15,6 +15,10 @@ import { toneSurfaceStyles } from "../shared-styles/tone-surface.styles.js";
|
|
|
15
15
|
* [--tag-border-width] - Set a custom border width, for every appearance. Defaults to 1px, only drawn (in a color) by outline, or when --tag-border-color is set
|
|
16
16
|
* [--tag-border-radius] - Set a custom border radius to the tag, also over rounded
|
|
17
17
|
* [--tag-gap] - Set a custom gap between the tag icon and the label
|
|
18
|
+
* [--tag-padding-block] - Set a custom vertical padding, for every size. The border is taken out of it
|
|
19
|
+
* [--tag-padding-inline] - Set a custom horizontal padding, for every size. The border is taken out of it
|
|
20
|
+
* [--tag-font-size] - Set a custom font size, for every size
|
|
21
|
+
* [--tag-font-weight] - Set a custom font weight
|
|
18
22
|
*/
|
|
19
23
|
const base = css `
|
|
20
24
|
:host {
|
|
@@ -90,11 +94,17 @@ const base = css `
|
|
|
90
94
|
color: var(--tag-color, var(--_fg));
|
|
91
95
|
border: var(--_borderWidth) solid var(--tag-border-color, var(--_bd));
|
|
92
96
|
border-radius: var(--tag-border-radius, var(--_radius));
|
|
93
|
-
padding: max(
|
|
94
|
-
|
|
95
|
-
|
|
97
|
+
padding: max(
|
|
98
|
+
0px,
|
|
99
|
+
calc(var(--tag-padding-block, var(--_padV)) - var(--_borderWidth))
|
|
100
|
+
)
|
|
101
|
+
max(
|
|
102
|
+
0px,
|
|
103
|
+
calc(var(--tag-padding-inline, var(--_padH)) - var(--_borderWidth))
|
|
104
|
+
);
|
|
105
|
+
font-size: var(--tag-font-size, var(--_fontSize));
|
|
96
106
|
gap: var(--tag-gap, var(--_gap));
|
|
97
|
-
font-weight: var(--eun-font-weight-m, 500);
|
|
107
|
+
font-weight: var(--tag-font-weight, var(--eun-font-weight-m, 500));
|
|
98
108
|
--icon-color: var(--tag-color, var(--_fg));
|
|
99
109
|
}
|
|
100
110
|
|
|
@@ -93,6 +93,8 @@ declare const EunomiaTooltipMixinBase: Constructor<EunomiaTooltipBase>;
|
|
|
93
93
|
* @cssprop [--tooltip-font-weight] - Sets the font weight of the description content, not the heading, and not richText, which stays at its own normal weight
|
|
94
94
|
* @cssprop [--tooltip-border-radius] - Sets the corner radius of the panel
|
|
95
95
|
* @cssprop [--tooltip-padding] - Sets the padding of the panel
|
|
96
|
+
* @cssprop [--tooltip-padding-block] - Sets the vertical padding, as one length applied to both sides. Ignored when --tooltip-padding is set
|
|
97
|
+
* @cssprop [--tooltip-padding-inline] - Sets the horizontal padding, as one length applied to both sides. Ignored when --tooltip-padding is set
|
|
96
98
|
* @cssprop [--tooltip-shadow] - Sets the shadow of the panel
|
|
97
99
|
* @cssprop [--tooltip-transition-duration] - Sets the duration of the open and close transition
|
|
98
100
|
* @element eun-tooltip
|
|
@@ -467,8 +469,7 @@ export declare class EunomiaTooltip extends EunomiaTooltipMixinBase {
|
|
|
467
469
|
* The enter/exit animation's duration, in ms : `0` under
|
|
468
470
|
* `prefers-reduced-motion: reduce`, otherwise `--tooltip-transition-
|
|
469
471
|
* duration` (forwarded onto the panel by {@link forwardCssVariables}) if
|
|
470
|
-
* set, falling back to
|
|
471
|
-
* used.
|
|
472
|
+
* set, falling back to `--eun-duration-s`.
|
|
472
473
|
*
|
|
473
474
|
* @param panel the panel to read `--tooltip-transition-duration` off.
|
|
474
475
|
* @private
|
|
@@ -14,6 +14,7 @@ import { clampToViewport } from "../../../utils/dropdown-menu.utils.js";
|
|
|
14
14
|
import { isWebKit } from "../../../utils/browser.utils.js";
|
|
15
15
|
import { formatRichText } from "../../../utils/rich-text.utils.js";
|
|
16
16
|
import { tooltipHostStyles, tooltipPanelStyles, tooltipAnchorPositioningStyles, } from "./tooltip.styles.js";
|
|
17
|
+
import { resolveDurationMs, resolveEasing, } from "../../../utils/motion.utils.js";
|
|
17
18
|
/**
|
|
18
19
|
* Tag name of the tooltip component.
|
|
19
20
|
*/
|
|
@@ -58,6 +59,8 @@ const FORWARDED_CSS_VARS = [
|
|
|
58
59
|
"--tooltip-font-weight",
|
|
59
60
|
"--tooltip-border-radius",
|
|
60
61
|
"--tooltip-padding",
|
|
62
|
+
"--tooltip-padding-block",
|
|
63
|
+
"--tooltip-padding-inline",
|
|
61
64
|
"--tooltip-row-gap",
|
|
62
65
|
"--tooltip-shadow",
|
|
63
66
|
"--tooltip-transition-duration",
|
|
@@ -121,6 +124,8 @@ const EunomiaTooltipMixinBase = AnchorPositionMixin(LitElement);
|
|
|
121
124
|
* @cssprop [--tooltip-font-weight] - Sets the font weight of the description content, not the heading, and not richText, which stays at its own normal weight
|
|
122
125
|
* @cssprop [--tooltip-border-radius] - Sets the corner radius of the panel
|
|
123
126
|
* @cssprop [--tooltip-padding] - Sets the padding of the panel
|
|
127
|
+
* @cssprop [--tooltip-padding-block] - Sets the vertical padding, as one length applied to both sides. Ignored when --tooltip-padding is set
|
|
128
|
+
* @cssprop [--tooltip-padding-inline] - Sets the horizontal padding, as one length applied to both sides. Ignored when --tooltip-padding is set
|
|
124
129
|
* @cssprop [--tooltip-shadow] - Sets the shadow of the panel
|
|
125
130
|
* @cssprop [--tooltip-transition-duration] - Sets the duration of the open and close transition
|
|
126
131
|
* @element eun-tooltip
|
|
@@ -608,8 +613,7 @@ let EunomiaTooltip = EunomiaTooltip_1 = class EunomiaTooltip extends EunomiaTool
|
|
|
608
613
|
* The enter/exit animation's duration, in ms : `0` under
|
|
609
614
|
* `prefers-reduced-motion: reduce`, otherwise `--tooltip-transition-
|
|
610
615
|
* duration` (forwarded onto the panel by {@link forwardCssVariables}) if
|
|
611
|
-
* set, falling back to
|
|
612
|
-
* used.
|
|
616
|
+
* set, falling back to `--eun-duration-s`.
|
|
613
617
|
*
|
|
614
618
|
* @param panel the panel to read `--tooltip-transition-duration` off.
|
|
615
619
|
* @private
|
|
@@ -618,18 +622,7 @@ let EunomiaTooltip = EunomiaTooltip_1 = class EunomiaTooltip extends EunomiaTool
|
|
|
618
622
|
if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
619
623
|
return 0;
|
|
620
624
|
}
|
|
621
|
-
|
|
622
|
-
.getPropertyValue("--tooltip-transition-duration")
|
|
623
|
-
.trim();
|
|
624
|
-
if (raw) {
|
|
625
|
-
const parsed = raw.endsWith("ms")
|
|
626
|
-
? Number.parseFloat(raw)
|
|
627
|
-
: Number.parseFloat(raw) * 1000;
|
|
628
|
-
if (Number.isFinite(parsed) && parsed >= 0) {
|
|
629
|
-
return parsed;
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
return 150;
|
|
625
|
+
return resolveDurationMs(panel, "--tooltip-transition-duration", "s", 150);
|
|
633
626
|
}
|
|
634
627
|
/**
|
|
635
628
|
* Plays the fade/scale-in, replacing any {@link panelAnimation} already
|
|
@@ -669,7 +662,7 @@ let EunomiaTooltip = EunomiaTooltip_1 = class EunomiaTooltip extends EunomiaTool
|
|
|
669
662
|
{ opacity: 1, scale: 1 },
|
|
670
663
|
], {
|
|
671
664
|
duration,
|
|
672
|
-
easing:
|
|
665
|
+
easing: resolveEasing(panel),
|
|
673
666
|
fill: "forwards",
|
|
674
667
|
});
|
|
675
668
|
}
|
|
@@ -693,7 +686,7 @@ let EunomiaTooltip = EunomiaTooltip_1 = class EunomiaTooltip extends EunomiaTool
|
|
|
693
686
|
const animation = panel.animate([
|
|
694
687
|
{ opacity: 1, scale: 1 },
|
|
695
688
|
{ opacity: 0, scale: 0.96 },
|
|
696
|
-
], { duration, easing:
|
|
689
|
+
], { duration, easing: resolveEasing(panel), fill: "forwards" });
|
|
697
690
|
this.panelAnimation = animation;
|
|
698
691
|
animation.finished
|
|
699
692
|
.then(() => {
|
|
@@ -1174,16 +1167,16 @@ __decorate([
|
|
|
1174
1167
|
property({ reflect: true })
|
|
1175
1168
|
], EunomiaTooltip.prototype, "severity", void 0);
|
|
1176
1169
|
__decorate([
|
|
1177
|
-
property({ reflect: true })
|
|
1170
|
+
property({ reflect: true, useDefault: true })
|
|
1178
1171
|
], EunomiaTooltip.prototype, "color", void 0);
|
|
1179
1172
|
__decorate([
|
|
1180
|
-
property({ reflect: true })
|
|
1173
|
+
property({ reflect: true, useDefault: true })
|
|
1181
1174
|
], EunomiaTooltip.prototype, "appearance", void 0);
|
|
1182
1175
|
__decorate([
|
|
1183
1176
|
property({ type: Boolean, reflect: true, attribute: "fixed-color" })
|
|
1184
1177
|
], EunomiaTooltip.prototype, "fixedColor", void 0);
|
|
1185
1178
|
__decorate([
|
|
1186
|
-
property({ reflect: true })
|
|
1179
|
+
property({ reflect: true, useDefault: true })
|
|
1187
1180
|
], EunomiaTooltip.prototype, "placement", void 0);
|
|
1188
1181
|
__decorate([
|
|
1189
1182
|
property()
|
|
@@ -25,6 +25,8 @@ export const tooltipHostStyles = css `
|
|
|
25
25
|
* [--tooltip-font-weight] - Set a custom font weight for the description content (not the heading, and not richText, which stays at its own normal weight)
|
|
26
26
|
* [--tooltip-border-radius] - Set a custom border radius
|
|
27
27
|
* [--tooltip-padding] - Set a custom padding
|
|
28
|
+
* [--tooltip-padding-block] - Set a custom vertical padding, as one length applied to both sides. Ignored when --tooltip-padding is set
|
|
29
|
+
* [--tooltip-padding-inline] - Set a custom horizontal padding, as one length applied to both sides. Ignored when --tooltip-padding is set
|
|
28
30
|
* [--tooltip-row-gap] - Set a custom gap between the heading and description rows
|
|
29
31
|
* [--tooltip-shadow] - Set a custom shadow
|
|
30
32
|
* [--tooltip-transition-duration] - Set a custom duration for the open/close transition
|
|
@@ -89,7 +91,9 @@ const panel = css `
|
|
|
89
91
|
--_onSolid: var(--eun-color-grey-900, #000000);
|
|
90
92
|
--_opposite: var(--eun-color-grey-800, #071621);
|
|
91
93
|
}
|
|
92
|
-
.eun-tooltip-panel:not(
|
|
94
|
+
.eun-tooltip-panel:not(
|
|
95
|
+
[data-severity]
|
|
96
|
+
)[data-color="light"][data-fixed-color] {
|
|
93
97
|
--_solid: #ffffff;
|
|
94
98
|
--_onSolid: #000000;
|
|
95
99
|
--_opposite: #071621;
|
|
@@ -137,14 +141,22 @@ const panel = css `
|
|
|
137
141
|
--_body: var(--_onSolid);
|
|
138
142
|
--_bd: transparent;
|
|
139
143
|
}
|
|
140
|
-
.eun-tooltip-panel:not(
|
|
141
|
-
|
|
144
|
+
.eun-tooltip-panel:not(
|
|
145
|
+
[data-severity]
|
|
146
|
+
)[data-color="light"][data-appearance="default"],
|
|
147
|
+
.eun-tooltip-panel:not(
|
|
148
|
+
[data-severity]
|
|
149
|
+
)[data-color="dark"][data-appearance="default"] {
|
|
142
150
|
--_bg: var(--_solid);
|
|
143
151
|
--_head: var(--_onSolid);
|
|
144
152
|
--_body: var(--_onSolid);
|
|
145
153
|
}
|
|
146
|
-
.eun-tooltip-panel:not(
|
|
147
|
-
|
|
154
|
+
.eun-tooltip-panel:not(
|
|
155
|
+
[data-severity]
|
|
156
|
+
)[data-color="light"][data-appearance="outline"],
|
|
157
|
+
.eun-tooltip-panel:not(
|
|
158
|
+
[data-severity]
|
|
159
|
+
)[data-color="dark"][data-appearance="outline"] {
|
|
148
160
|
--_bg: var(--_opposite);
|
|
149
161
|
--_head: var(--_solid);
|
|
150
162
|
--_body: var(--_solid);
|
|
@@ -164,8 +176,14 @@ const panel = css `
|
|
|
164
176
|
max-width: var(--tooltip-max-width, 280px);
|
|
165
177
|
padding: var(
|
|
166
178
|
--tooltip-padding,
|
|
167
|
-
|
|
168
|
-
|
|
179
|
+
var(
|
|
180
|
+
--tooltip-padding-block,
|
|
181
|
+
max(0px, calc(var(--eun-space-s, 8px) - var(--_bw)))
|
|
182
|
+
)
|
|
183
|
+
var(
|
|
184
|
+
--tooltip-padding-inline,
|
|
185
|
+
max(0px, calc(var(--eun-space-m, 16px) - var(--_bw)))
|
|
186
|
+
)
|
|
169
187
|
);
|
|
170
188
|
border-radius: var(
|
|
171
189
|
--tooltip-border-radius,
|
|
@@ -24,7 +24,9 @@ export declare const EunomiaCheckCardTagName = "eun-check-card";
|
|
|
24
24
|
* @prop {boolean} [disabled=false] - Whether the card is disabled
|
|
25
25
|
* @prop {boolean} [readonly=false] - Whether the card is read only
|
|
26
26
|
* @prop {boolean} [indeterminate=false] - Whether the card value is indeterminate
|
|
27
|
-
* @prop {boolean} [hideError=false] - Whether the
|
|
27
|
+
* @prop {boolean} [hideError=false] - Whether the errors are hidden. The hint stays visible
|
|
28
|
+
* @prop {boolean} [invalid=false] - Shows the field as invalid without any message, for an error displayed elsewhere
|
|
29
|
+
* @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
|
|
28
30
|
* @attr {boolean} [hide-error=false] - Whether the error message is hidden
|
|
29
31
|
* @prop {boolean} [required=false] - Whether a selection is required
|
|
30
32
|
* @prop {string} name - The name of the field
|
|
@@ -46,6 +48,8 @@ export declare const EunomiaCheckCardTagName = "eun-check-card";
|
|
|
46
48
|
* @cssprop [--check-card-border-width] - Sets the width of the border
|
|
47
49
|
* @cssprop [--check-card-border-radius] - Sets the corner radius of the card
|
|
48
50
|
* @cssprop [--check-card-padding] - Sets the padding inside the card
|
|
51
|
+
* @cssprop [--check-card-padding-block] - Sets the vertical padding, as one length applied to both sides. Ignored when --check-card-padding is set
|
|
52
|
+
* @cssprop [--check-card-padding-inline] - Sets the horizontal padding, as one length applied to both sides. Ignored when --check-card-padding is set
|
|
49
53
|
* @cssprop [--check-card-min-width] - Sets the minimum width of the card
|
|
50
54
|
* @cssprop [--check-card-icon-color] - Sets the color of the leading icon while not checked
|
|
51
55
|
* @cssprop [--check-card-icon-color-checked] - Sets the color of the leading icon while checked
|
|
@@ -35,7 +35,9 @@ export const EunomiaCheckCardTagName = "eun-check-card";
|
|
|
35
35
|
* @prop {boolean} [disabled=false] - Whether the card is disabled
|
|
36
36
|
* @prop {boolean} [readonly=false] - Whether the card is read only
|
|
37
37
|
* @prop {boolean} [indeterminate=false] - Whether the card value is indeterminate
|
|
38
|
-
* @prop {boolean} [hideError=false] - Whether the
|
|
38
|
+
* @prop {boolean} [hideError=false] - Whether the errors are hidden. The hint stays visible
|
|
39
|
+
* @prop {boolean} [invalid=false] - Shows the field as invalid without any message, for an error displayed elsewhere
|
|
40
|
+
* @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
|
|
39
41
|
* @attr {boolean} [hide-error=false] - Whether the error message is hidden
|
|
40
42
|
* @prop {boolean} [required=false] - Whether a selection is required
|
|
41
43
|
* @prop {string} name - The name of the field
|
|
@@ -57,6 +59,8 @@ export const EunomiaCheckCardTagName = "eun-check-card";
|
|
|
57
59
|
* @cssprop [--check-card-border-width] - Sets the width of the border
|
|
58
60
|
* @cssprop [--check-card-border-radius] - Sets the corner radius of the card
|
|
59
61
|
* @cssprop [--check-card-padding] - Sets the padding inside the card
|
|
62
|
+
* @cssprop [--check-card-padding-block] - Sets the vertical padding, as one length applied to both sides. Ignored when --check-card-padding is set
|
|
63
|
+
* @cssprop [--check-card-padding-inline] - Sets the horizontal padding, as one length applied to both sides. Ignored when --check-card-padding is set
|
|
60
64
|
* @cssprop [--check-card-min-width] - Sets the minimum width of the card
|
|
61
65
|
* @cssprop [--check-card-icon-color] - Sets the color of the leading icon while not checked
|
|
62
66
|
* @cssprop [--check-card-icon-color-checked] - Sets the color of the leading icon while checked
|