@ds-autonomie/web-components 1.0.1
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/CHANGELOG.md +318 -0
- package/LICENSE +8 -0
- package/README.md +3 -0
- package/dist/chunks/chunk.23TOS4ZE.js +29 -0
- package/dist/chunks/chunk.2FK6USFR.js +63 -0
- package/dist/chunks/chunk.2HUORR44.js +76 -0
- package/dist/chunks/chunk.3BL7JA77.js +59 -0
- package/dist/chunks/chunk.3RBCYA4F.js +147 -0
- package/dist/chunks/chunk.3XRQRY25.js +25 -0
- package/dist/chunks/chunk.42W4S2HN.js +145 -0
- package/dist/chunks/chunk.4A3WMGMZ.js +79 -0
- package/dist/chunks/chunk.4A57I2HX.js +241 -0
- package/dist/chunks/chunk.4XT2OJD2.js +75 -0
- package/dist/chunks/chunk.5LT3B7MI.js +372 -0
- package/dist/chunks/chunk.5WAZTHII.js +37 -0
- package/dist/chunks/chunk.5XL2LZLC.js +100 -0
- package/dist/chunks/chunk.5XUV3SRW.js +420 -0
- package/dist/chunks/chunk.6FAUBLR3.js +84 -0
- package/dist/chunks/chunk.6M63UXML.js +35 -0
- package/dist/chunks/chunk.6PS5KB3O.js +53 -0
- package/dist/chunks/chunk.6ZQ4OQ2C.js +51 -0
- package/dist/chunks/chunk.73T7TU6S.js +24 -0
- package/dist/chunks/chunk.7J7CS3BK.js +43 -0
- package/dist/chunks/chunk.7NWAYDYI.js +168 -0
- package/dist/chunks/chunk.7ZCCXTFG.js +301 -0
- package/dist/chunks/chunk.A2PAK6VF.js +206 -0
- package/dist/chunks/chunk.ABGBXXKA.js +164 -0
- package/dist/chunks/chunk.AQRNB4GJ.js +33 -0
- package/dist/chunks/chunk.AR5HJD7F.js +111 -0
- package/dist/chunks/chunk.B4BZKR24.js +16 -0
- package/dist/chunks/chunk.BD63GRU5.js +132 -0
- package/dist/chunks/chunk.BEB47LM2.js +278 -0
- package/dist/chunks/chunk.BLPP3Q5H.js +555 -0
- package/dist/chunks/chunk.CJIL3BLA.js +45 -0
- package/dist/chunks/chunk.CPXD6UYZ.js +34 -0
- package/dist/chunks/chunk.D7CATJYB.js +36 -0
- package/dist/chunks/chunk.DC6CT5PU.js +109 -0
- package/dist/chunks/chunk.DRGGQ4WL.js +9 -0
- package/dist/chunks/chunk.DSGUQNN4.js +26 -0
- package/dist/chunks/chunk.DURVPB6M.js +391 -0
- package/dist/chunks/chunk.DXVNWE2M.js +166 -0
- package/dist/chunks/chunk.EFQHAGXP.js +26 -0
- package/dist/chunks/chunk.EHVJT7BH.js +215 -0
- package/dist/chunks/chunk.EKWYMXQO.js +166 -0
- package/dist/chunks/chunk.EMIT7S33.js +71 -0
- package/dist/chunks/chunk.EMJZLQCL.js +60 -0
- package/dist/chunks/chunk.ENKP2IFW.js +361 -0
- package/dist/chunks/chunk.EU56EW33.js +91 -0
- package/dist/chunks/chunk.EYZGEU3G.js +45 -0
- package/dist/chunks/chunk.FDYFSRSX.js +33 -0
- package/dist/chunks/chunk.FIGO7UV2.js +77 -0
- package/dist/chunks/chunk.G7AELPSO.js +131 -0
- package/dist/chunks/chunk.GI7VDIWX.js +24 -0
- package/dist/chunks/chunk.GYTA2LJC.js +145 -0
- package/dist/chunks/chunk.HAL7R4WT.js +0 -0
- package/dist/chunks/chunk.HC5BO5YV.js +405 -0
- package/dist/chunks/chunk.HH63FIEF.js +122 -0
- package/dist/chunks/chunk.HLYGKGDG.js +308 -0
- package/dist/chunks/chunk.I33L3NO6.js +122 -0
- package/dist/chunks/chunk.IGYXUK7A.js +19 -0
- package/dist/chunks/chunk.INCGVIAQ.js +61 -0
- package/dist/chunks/chunk.IOFPPNUO.js +25 -0
- package/dist/chunks/chunk.IRQOFNJE.js +317 -0
- package/dist/chunks/chunk.ISAFRNR2.js +112 -0
- package/dist/chunks/chunk.J2XNYTTZ.js +715 -0
- package/dist/chunks/chunk.JETXIC4F.js +150 -0
- package/dist/chunks/chunk.JT7UJED5.js +33 -0
- package/dist/chunks/chunk.K6WCEYZI.js +52 -0
- package/dist/chunks/chunk.KBT2EKLF.js +25 -0
- package/dist/chunks/chunk.KDAK2GXX.js +58 -0
- package/dist/chunks/chunk.KHIMMW3T.js +33 -0
- package/dist/chunks/chunk.KIFBWPW5.js +298 -0
- package/dist/chunks/chunk.KOH5V4C6.js +552 -0
- package/dist/chunks/chunk.LC54322H.js +99 -0
- package/dist/chunks/chunk.LMJPQPQT.js +26 -0
- package/dist/chunks/chunk.LT7JMZ3T.js +371 -0
- package/dist/chunks/chunk.M245ZGRR.js +80 -0
- package/dist/chunks/chunk.MOWTZFON.js +63 -0
- package/dist/chunks/chunk.MY434P47.js +125 -0
- package/dist/chunks/chunk.N6VVY6XD.js +91 -0
- package/dist/chunks/chunk.NDEZEB3Z.js +402 -0
- package/dist/chunks/chunk.NHRDZGLI.js +81 -0
- package/dist/chunks/chunk.NKKVGICB.js +114 -0
- package/dist/chunks/chunk.NNBOLKWI.js +17 -0
- package/dist/chunks/chunk.O73OYTYJ.js +319 -0
- package/dist/chunks/chunk.OBU65KDL.js +29 -0
- package/dist/chunks/chunk.ODSCDJDO.js +91 -0
- package/dist/chunks/chunk.OVK7QCA7.js +441 -0
- package/dist/chunks/chunk.PQWQ42E2.js +150 -0
- package/dist/chunks/chunk.PULHNCDM.js +98 -0
- package/dist/chunks/chunk.PWWER3ZK.js +806 -0
- package/dist/chunks/chunk.QFJA3MTV.js +66 -0
- package/dist/chunks/chunk.QKNNLZ2M.js +361 -0
- package/dist/chunks/chunk.QL5C2XOW.js +0 -0
- package/dist/chunks/chunk.RDGMZ5XB.js +24 -0
- package/dist/chunks/chunk.RIJQGADY.js +108 -0
- package/dist/chunks/chunk.RMCOWJOW.js +17 -0
- package/dist/chunks/chunk.RY4QCT3T.js +29 -0
- package/dist/chunks/chunk.S4ATPBQN.js +89 -0
- package/dist/chunks/chunk.SGIGGO5M.js +86 -0
- package/dist/chunks/chunk.SQMWMSBA.js +207 -0
- package/dist/chunks/chunk.TJOP7HQP.js +14 -0
- package/dist/chunks/chunk.TUVJKY7S.js +21 -0
- package/dist/chunks/chunk.UA32LJYW.js +230 -0
- package/dist/chunks/chunk.UEUTSYIH.js +60 -0
- package/dist/chunks/chunk.UPYCV66H.js +111 -0
- package/dist/chunks/chunk.UV53JTE3.js +128 -0
- package/dist/chunks/chunk.UZLQVFDR.js +386 -0
- package/dist/chunks/chunk.V7RJROLH.js +48 -0
- package/dist/chunks/chunk.VFYKLPN2.js +144 -0
- package/dist/chunks/chunk.VRY3E2XG.js +196 -0
- package/dist/chunks/chunk.WE6IG5XG.js +164 -0
- package/dist/chunks/chunk.WFHOSUOX.js +263 -0
- package/dist/chunks/chunk.WHK7EFIM.js +264 -0
- package/dist/chunks/chunk.WIEJJS3W.js +88 -0
- package/dist/chunks/chunk.WK7RWLAK.js +54 -0
- package/dist/chunks/chunk.WNHQYL5W.js +298 -0
- package/dist/chunks/chunk.WSVP75MH.js +102 -0
- package/dist/chunks/chunk.XNEONNEJ.js +23 -0
- package/dist/chunks/chunk.XSCX6TC5.js +127 -0
- package/dist/chunks/chunk.XWUQFDIN.js +15 -0
- package/dist/chunks/chunk.Y3ZUFLVS.js +90 -0
- package/dist/chunks/chunk.YCXTCVAZ.js +30 -0
- package/dist/chunks/chunk.YIY5RM53.js +66 -0
- package/dist/chunks/chunk.YL3TSWVM.js +17 -0
- package/dist/chunks/chunk.YS7MY5CH.js +512 -0
- package/dist/chunks/chunk.YY6AEXJK.js +33 -0
- package/dist/chunks/chunk.YZHDFJWJ.js +17 -0
- package/dist/chunks/chunk.Z6TBD2AC.js +125 -0
- package/dist/chunks/chunk.ZKYSHEVZ.js +22 -0
- package/dist/chunks/chunk.ZVGZDTBF.js +104 -0
- package/dist/components/accordion/accordion.d.ts +49 -0
- package/dist/components/accordion/accordion.js +23 -0
- package/dist/components/accordion/accordion.styles.d.ts +2 -0
- package/dist/components/accordion/accordion.styles.js +8 -0
- package/dist/components/alert/alert.d.ts +52 -0
- package/dist/components/alert/alert.js +25 -0
- package/dist/components/alert/alert.styles.d.ts +2 -0
- package/dist/components/alert/alert.styles.js +8 -0
- package/dist/components/animation/animation.d.ts +81 -0
- package/dist/components/animation/animation.js +12 -0
- package/dist/components/animation/animation.styles.d.ts +2 -0
- package/dist/components/animation/animation.styles.js +8 -0
- package/dist/components/animation/animations.d.ts +6 -0
- package/dist/components/animation/animations.js +11 -0
- package/dist/components/avatar/avatar.d.ts +42 -0
- package/dist/components/avatar/avatar.js +19 -0
- package/dist/components/avatar/avatar.styles.d.ts +2 -0
- package/dist/components/avatar/avatar.styles.js +8 -0
- package/dist/components/avatar-group/avatar-group.d.ts +21 -0
- package/dist/components/avatar-group/avatar-group.js +9 -0
- package/dist/components/avatar-group/avatar-group.styles.d.ts +2 -0
- package/dist/components/avatar-group/avatar-group.styles.js +7 -0
- package/dist/components/badge/badge.d.ts +23 -0
- package/dist/components/badge/badge.js +10 -0
- package/dist/components/badge/badge.styles.d.ts +2 -0
- package/dist/components/badge/badge.styles.js +8 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +23 -0
- package/dist/components/breadcrumb/breadcrumb.js +20 -0
- package/dist/components/breadcrumb/breadcrumb.styles.d.ts +2 -0
- package/dist/components/breadcrumb/breadcrumb.styles.js +8 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.d.ts +30 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.js +12 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.d.ts +2 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.js +8 -0
- package/dist/components/button/button.d.ts +120 -0
- package/dist/components/button/button.js +24 -0
- package/dist/components/button/button.styles.d.ts +2 -0
- package/dist/components/button/button.styles.js +8 -0
- package/dist/components/card/card.d.ts +22 -0
- package/dist/components/card/card.js +11 -0
- package/dist/components/card/card.styles.d.ts +2 -0
- package/dist/components/card/card.styles.js +8 -0
- package/dist/components/checkbox/checkbox.d.ts +93 -0
- package/dist/components/checkbox/checkbox.js +24 -0
- package/dist/components/checkbox/checkbox.styles.d.ts +2 -0
- package/dist/components/checkbox/checkbox.styles.js +9 -0
- package/dist/components/checkbox-button/checkbox-button.d.ts +48 -0
- package/dist/components/checkbox-button/checkbox-button.js +21 -0
- package/dist/components/checkbox-button/checkbox-button.styles.d.ts +2 -0
- package/dist/components/checkbox-button/checkbox-button.styles.js +9 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts +85 -0
- package/dist/components/checkbox-group/checkbox-group.js +16 -0
- package/dist/components/checkbox-group/checkbox-group.styles.d.ts +2 -0
- package/dist/components/checkbox-group/checkbox-group.styles.js +9 -0
- package/dist/components/dialog/dialog.d.ts +70 -0
- package/dist/components/dialog/dialog.js +28 -0
- package/dist/components/dialog/dialog.styles.d.ts +2 -0
- package/dist/components/dialog/dialog.styles.js +8 -0
- package/dist/components/divider/divider.d.ts +17 -0
- package/dist/components/divider/divider.js +10 -0
- package/dist/components/divider/divider.styles.d.ts +2 -0
- package/dist/components/divider/divider.styles.js +8 -0
- package/dist/components/drawer/drawer.d.ts +77 -0
- package/dist/components/drawer/drawer.js +28 -0
- package/dist/components/drawer/drawer.styles.d.ts +2 -0
- package/dist/components/drawer/drawer.styles.js +8 -0
- package/dist/components/dropdown/dropdown.d.ts +87 -0
- package/dist/components/dropdown/dropdown.js +15 -0
- package/dist/components/dropdown/dropdown.styles.d.ts +2 -0
- package/dist/components/dropdown/dropdown.styles.js +8 -0
- package/dist/components/error-text/error-text.d.ts +18 -0
- package/dist/components/error-text/error-text.js +9 -0
- package/dist/components/error-text/error-text.styles.d.ts +2 -0
- package/dist/components/error-text/error-text.styles.js +7 -0
- package/dist/components/format-bytes/format-bytes.d.ts +22 -0
- package/dist/components/format-bytes/format-bytes.js +9 -0
- package/dist/components/format-date/format-date.d.ts +42 -0
- package/dist/components/format-date/format-date.js +9 -0
- package/dist/components/format-number/format-number.d.ts +36 -0
- package/dist/components/format-number/format-number.js +9 -0
- package/dist/components/icon/icon.d.ts +40 -0
- package/dist/components/icon/icon.js +17 -0
- package/dist/components/icon/icon.styles.d.ts +2 -0
- package/dist/components/icon/icon.styles.js +8 -0
- package/dist/components/icon/library.d.ts +21 -0
- package/dist/components/icon/library.default.d.ts +3 -0
- package/dist/components/icon/library.default.js +8 -0
- package/dist/components/icon/library.js +18 -0
- package/dist/components/icon/library.system.d.ts +3 -0
- package/dist/components/icon/library.system.js +7 -0
- package/dist/components/icon/request.d.ts +11 -0
- package/dist/components/icon/request.js +8 -0
- package/dist/components/icon-button/icon-button.d.ts +59 -0
- package/dist/components/icon-button/icon-button.js +19 -0
- package/dist/components/icon-button/icon-button.styles.d.ts +2 -0
- package/dist/components/icon-button/icon-button.styles.js +8 -0
- package/dist/components/include/include.d.ts +32 -0
- package/dist/components/include/include.js +12 -0
- package/dist/components/include/include.styles.d.ts +2 -0
- package/dist/components/include/include.styles.js +8 -0
- package/dist/components/include/request.d.ts +8 -0
- package/dist/components/include/request.js +7 -0
- package/dist/components/input/input.d.ts +165 -0
- package/dist/components/input/input.js +27 -0
- package/dist/components/input/input.styles.d.ts +2 -0
- package/dist/components/input/input.styles.js +9 -0
- package/dist/components/input/input.utils.d.ts +4 -0
- package/dist/components/input/input.utils.js +9 -0
- package/dist/components/input-mask/input-mask.configs.d.ts +42 -0
- package/dist/components/input-mask/input-mask.configs.js +11 -0
- package/dist/components/input-mask/input-mask.d.ts +127 -0
- package/dist/components/input-mask/input-mask.js +19 -0
- package/dist/components/input-mask/input-mask.styles.d.ts +2 -0
- package/dist/components/input-mask/input-mask.styles.js +9 -0
- package/dist/components/input-mask/input-mask.utils.d.ts +7 -0
- package/dist/components/input-mask/input-mask.utils.js +19 -0
- package/dist/components/input-phone/input-phone.configs.d.ts +14 -0
- package/dist/components/input-phone/input-phone.configs.js +7 -0
- package/dist/components/input-phone/input-phone.d.ts +138 -0
- package/dist/components/input-phone/input-phone.js +49 -0
- package/dist/components/input-phone/input-phone.styles.d.ts +2 -0
- package/dist/components/input-phone/input-phone.styles.js +9 -0
- package/dist/components/input-phone/input-phone.utils.d.ts +9 -0
- package/dist/components/input-phone/input-phone.utils.js +13 -0
- package/dist/components/menu/menu.d.ts +43 -0
- package/dist/components/menu/menu.js +10 -0
- package/dist/components/menu/menu.styles.d.ts +2 -0
- package/dist/components/menu/menu.styles.js +8 -0
- package/dist/components/menu-item/menu-item.d.ts +44 -0
- package/dist/components/menu-item/menu-item.js +20 -0
- package/dist/components/menu-item/menu-item.styles.d.ts +2 -0
- package/dist/components/menu-item/menu-item.styles.js +8 -0
- package/dist/components/menu-label/menu-label.d.ts +17 -0
- package/dist/components/menu-label/menu-label.js +10 -0
- package/dist/components/menu-label/menu-label.styles.d.ts +2 -0
- package/dist/components/menu-label/menu-label.styles.js +8 -0
- package/dist/components/mutation-observer/mutation-observer.d.ts +44 -0
- package/dist/components/mutation-observer/mutation-observer.js +11 -0
- package/dist/components/mutation-observer/mutation-observer.styles.d.ts +2 -0
- package/dist/components/mutation-observer/mutation-observer.styles.js +8 -0
- package/dist/components/option/option.d.ts +50 -0
- package/dist/components/option/option.js +20 -0
- package/dist/components/option/option.styles.d.ts +2 -0
- package/dist/components/option/option.styles.js +8 -0
- package/dist/components/popup/popup.d.ts +123 -0
- package/dist/components/popup/popup.js +10 -0
- package/dist/components/popup/popup.styles.d.ts +2 -0
- package/dist/components/popup/popup.styles.js +8 -0
- package/dist/components/progress-bar/progress-bar.d.ts +23 -0
- package/dist/components/progress-bar/progress-bar.js +11 -0
- package/dist/components/progress-bar/progress-bar.styles.d.ts +2 -0
- package/dist/components/progress-bar/progress-bar.styles.js +8 -0
- package/dist/components/progress-ring/progress-ring.d.ts +25 -0
- package/dist/components/progress-ring/progress-ring.js +11 -0
- package/dist/components/progress-ring/progress-ring.styles.d.ts +2 -0
- package/dist/components/progress-ring/progress-ring.styles.js +8 -0
- package/dist/components/radio/radio.d.ts +46 -0
- package/dist/components/radio/radio.js +19 -0
- package/dist/components/radio/radio.styles.d.ts +2 -0
- package/dist/components/radio/radio.styles.js +8 -0
- package/dist/components/radio-button/radio-button.d.ts +47 -0
- package/dist/components/radio-button/radio-button.js +13 -0
- package/dist/components/radio-button/radio-button.styles.d.ts +2 -0
- package/dist/components/radio-button/radio-button.styles.js +9 -0
- package/dist/components/radio-group/radio-group.d.ts +91 -0
- package/dist/components/radio-group/radio-group.js +16 -0
- package/dist/components/radio-group/radio-group.styles.d.ts +2 -0
- package/dist/components/radio-group/radio-group.styles.js +9 -0
- package/dist/components/relative-time/relative-time.d.ts +34 -0
- package/dist/components/relative-time/relative-time.js +9 -0
- package/dist/components/resize-observer/resize-observer.d.ts +31 -0
- package/dist/components/resize-observer/resize-observer.js +11 -0
- package/dist/components/resize-observer/resize-observer.styles.d.ts +2 -0
- package/dist/components/resize-observer/resize-observer.styles.js +8 -0
- package/dist/components/select/select.d.ts +166 -0
- package/dist/components/select/select.js +36 -0
- package/dist/components/select/select.styles.d.ts +2 -0
- package/dist/components/select/select.styles.js +9 -0
- package/dist/components/skeleton/skeleton.d.ts +21 -0
- package/dist/components/skeleton/skeleton.js +10 -0
- package/dist/components/skeleton/skeleton.styles.d.ts +2 -0
- package/dist/components/skeleton/skeleton.styles.js +8 -0
- package/dist/components/spinner/spinner.d.ts +21 -0
- package/dist/components/spinner/spinner.js +11 -0
- package/dist/components/spinner/spinner.styles.d.ts +2 -0
- package/dist/components/spinner/spinner.styles.js +8 -0
- package/dist/components/tab/tab.d.ts +44 -0
- package/dist/components/tab/tab.js +12 -0
- package/dist/components/tab/tab.styles.d.ts +2 -0
- package/dist/components/tab/tab.styles.js +8 -0
- package/dist/components/tab-group/tab-group.d.ts +61 -0
- package/dist/components/tab-group/tab-group.js +13 -0
- package/dist/components/tab-group/tab-group.styles.d.ts +2 -0
- package/dist/components/tab-group/tab-group.styles.js +8 -0
- package/dist/components/tab-panel/tab-panel.d.ts +25 -0
- package/dist/components/tab-panel/tab-panel.js +11 -0
- package/dist/components/tab-panel/tab-panel.styles.d.ts +2 -0
- package/dist/components/tab-panel/tab-panel.styles.js +8 -0
- package/dist/components/tag/tag.d.ts +34 -0
- package/dist/components/tag/tag.js +22 -0
- package/dist/components/tag/tag.styles.d.ts +2 -0
- package/dist/components/tag/tag.styles.js +8 -0
- package/dist/components/textarea/textarea.d.ts +137 -0
- package/dist/components/textarea/textarea.js +17 -0
- package/dist/components/textarea/textarea.styles.d.ts +2 -0
- package/dist/components/textarea/textarea.styles.js +9 -0
- package/dist/components/tooltip/tooltip.d.ts +80 -0
- package/dist/components/tooltip/tooltip.js +17 -0
- package/dist/components/tooltip/tooltip.styles.d.ts +2 -0
- package/dist/components/tooltip/tooltip.styles.js +8 -0
- package/dist/components/tree/tree.d.ts +53 -0
- package/dist/components/tree/tree.js +33 -0
- package/dist/components/tree/tree.styles.d.ts +2 -0
- package/dist/components/tree/tree.styles.js +8 -0
- package/dist/components/tree-item/tree-item.d.ts +69 -0
- package/dist/components/tree-item/tree-item.js +31 -0
- package/dist/components/tree-item/tree-item.styles.d.ts +2 -0
- package/dist/components/tree-item/tree-item.styles.js +8 -0
- package/dist/components/visually-hidden/visually-hidden.d.ts +17 -0
- package/dist/components/visually-hidden/visually-hidden.js +10 -0
- package/dist/components/visually-hidden/visually-hidden.styles.d.ts +2 -0
- package/dist/components/visually-hidden/visually-hidden.styles.js +8 -0
- package/dist/custom-elements.json +14628 -0
- package/dist/design-system-autoloader.d.ts +4 -0
- package/dist/design-system-autoloader.js +46 -0
- package/dist/design-system.d.ts +58 -0
- package/dist/design-system.js +309 -0
- package/dist/events/dsa-after-collapse.d.ts +7 -0
- package/dist/events/dsa-after-collapse.js +1 -0
- package/dist/events/dsa-after-expand.d.ts +7 -0
- package/dist/events/dsa-after-expand.js +1 -0
- package/dist/events/dsa-after-hide.d.ts +7 -0
- package/dist/events/dsa-after-hide.js +1 -0
- package/dist/events/dsa-after-show.d.ts +7 -0
- package/dist/events/dsa-after-show.js +1 -0
- package/dist/events/dsa-blur.d.ts +7 -0
- package/dist/events/dsa-blur.js +1 -0
- package/dist/events/dsa-cancel.d.ts +7 -0
- package/dist/events/dsa-cancel.js +1 -0
- package/dist/events/dsa-change.d.ts +7 -0
- package/dist/events/dsa-change.js +1 -0
- package/dist/events/dsa-clear.d.ts +7 -0
- package/dist/events/dsa-clear.js +1 -0
- package/dist/events/dsa-close.d.ts +7 -0
- package/dist/events/dsa-close.js +1 -0
- package/dist/events/dsa-collapse.d.ts +7 -0
- package/dist/events/dsa-collapse.js +1 -0
- package/dist/events/dsa-error.d.ts +9 -0
- package/dist/events/dsa-error.js +1 -0
- package/dist/events/dsa-expand.d.ts +7 -0
- package/dist/events/dsa-expand.js +1 -0
- package/dist/events/dsa-finish.d.ts +7 -0
- package/dist/events/dsa-finish.js +1 -0
- package/dist/events/dsa-focus.d.ts +7 -0
- package/dist/events/dsa-focus.js +1 -0
- package/dist/events/dsa-hide.d.ts +7 -0
- package/dist/events/dsa-hide.js +1 -0
- package/dist/events/dsa-hover.d.ts +10 -0
- package/dist/events/dsa-hover.js +1 -0
- package/dist/events/dsa-initial-focus.d.ts +7 -0
- package/dist/events/dsa-initial-focus.js +1 -0
- package/dist/events/dsa-input.d.ts +7 -0
- package/dist/events/dsa-input.js +1 -0
- package/dist/events/dsa-invalid.d.ts +7 -0
- package/dist/events/dsa-invalid.js +1 -0
- package/dist/events/dsa-lazy-change.d.ts +7 -0
- package/dist/events/dsa-lazy-change.js +1 -0
- package/dist/events/dsa-lazy-load.d.ts +7 -0
- package/dist/events/dsa-lazy-load.js +1 -0
- package/dist/events/dsa-load.d.ts +7 -0
- package/dist/events/dsa-load.js +1 -0
- package/dist/events/dsa-mutation.d.ts +9 -0
- package/dist/events/dsa-mutation.js +1 -0
- package/dist/events/dsa-remove.d.ts +7 -0
- package/dist/events/dsa-remove.js +1 -0
- package/dist/events/dsa-reposition.d.ts +7 -0
- package/dist/events/dsa-reposition.js +1 -0
- package/dist/events/dsa-request-close.d.ts +9 -0
- package/dist/events/dsa-request-close.js +1 -0
- package/dist/events/dsa-resize.d.ts +9 -0
- package/dist/events/dsa-resize.js +1 -0
- package/dist/events/dsa-select.d.ts +10 -0
- package/dist/events/dsa-select.js +1 -0
- package/dist/events/dsa-selection-change.d.ts +10 -0
- package/dist/events/dsa-selection-change.js +1 -0
- package/dist/events/dsa-show.d.ts +7 -0
- package/dist/events/dsa-show.js +1 -0
- package/dist/events/dsa-start.d.ts +7 -0
- package/dist/events/dsa-start.js +1 -0
- package/dist/events/dsa-tab-hide.d.ts +9 -0
- package/dist/events/dsa-tab-hide.js +1 -0
- package/dist/events/dsa-tab-show.d.ts +9 -0
- package/dist/events/dsa-tab-show.js +1 -0
- package/dist/events/events.d.ts +32 -0
- package/dist/events/events.js +1 -0
- package/dist/internal/animate.d.ts +22 -0
- package/dist/internal/animate.js +56 -0
- package/dist/internal/components/button-group/button-group.d.ts +34 -0
- package/dist/internal/components/button-group/button-group.js +110 -0
- package/dist/internal/components/button-group/button-group.styles.d.ts +2 -0
- package/dist/internal/components/button-group/button-group.styles.js +19 -0
- package/dist/internal/debounce.d.ts +1 -0
- package/dist/internal/debounce.js +26 -0
- package/dist/internal/default-value.d.ts +2 -0
- package/dist/internal/default-value.js +38 -0
- package/dist/internal/drag.d.ts +15 -0
- package/dist/internal/drag.js +27 -0
- package/dist/internal/event.d.ts +2 -0
- package/dist/internal/event.js +12 -0
- package/dist/internal/form.d.ts +73 -0
- package/dist/internal/form.js +328 -0
- package/dist/internal/math.d.ts +2 -0
- package/dist/internal/math.js +11 -0
- package/dist/internal/modal.d.ts +12 -0
- package/dist/internal/modal.js +51 -0
- package/dist/internal/offset.d.ts +11 -0
- package/dist/internal/offset.js +13 -0
- package/dist/internal/scroll.d.ts +11 -0
- package/dist/internal/scroll.js +63 -0
- package/dist/internal/shoelace-element.d.ts +43 -0
- package/dist/internal/shoelace-element.js +21 -0
- package/dist/internal/slot.d.ts +23 -0
- package/dist/internal/slot.js +84 -0
- package/dist/internal/string.d.ts +2 -0
- package/dist/internal/string.js +4 -0
- package/dist/internal/tabbable.d.ts +8 -0
- package/dist/internal/tabbable.js +79 -0
- package/dist/internal/test/data-testid-helpers.d.ts +12 -0
- package/dist/internal/test/data-testid-helpers.js +14 -0
- package/dist/internal/test/element-visible-overflow.d.ts +11 -0
- package/dist/internal/test/element-visible-overflow.js +18 -0
- package/dist/internal/test/form-control-base-tests.d.ts +7 -0
- package/dist/internal/test/form-control-base-tests.js +262 -0
- package/dist/internal/test/wait-for-scrolling.d.ts +9 -0
- package/dist/internal/test/wait-for-scrolling.js +34 -0
- package/dist/internal/test.d.ts +20 -0
- package/dist/internal/test.js +71 -0
- package/dist/internal/watch.d.ts +26 -0
- package/dist/internal/watch.js +38 -0
- package/dist/styles/component.styles.d.ts +2 -0
- package/dist/styles/component.styles.js +16 -0
- package/dist/styles/form-control.styles.d.ts +2 -0
- package/dist/styles/form-control.styles.js +142 -0
- package/dist/themes/dsa-wc-theme.css +1218 -0
- package/dist/themes/dsa-wc-theme.min.css +1 -0
- package/dist/themes/dsa-wc-theme.styles.js +1229 -0
- package/dist/translations/en-gb.d.ts +3 -0
- package/dist/translations/en-gb.js +21 -0
- package/dist/translations/en.d.ts +3 -0
- package/dist/translations/en.js +7 -0
- package/dist/translations/fr.d.ts +3 -0
- package/dist/translations/fr.js +7 -0
- package/dist/utilities/animation-registry.d.ts +24 -0
- package/dist/utilities/animation-registry.js +11 -0
- package/dist/utilities/animation.d.ts +1 -0
- package/dist/utilities/animation.js +10 -0
- package/dist/utilities/base-path.d.ts +18 -0
- package/dist/utilities/base-path.js +9 -0
- package/dist/utilities/form.d.ts +11 -0
- package/dist/utilities/form.js +43 -0
- package/dist/utilities/icon-library.d.ts +1 -0
- package/dist/utilities/icon-library.js +13 -0
- package/dist/utilities/localize.d.ts +39 -0
- package/dist/utilities/localize.js +9 -0
- package/dist/utilities/storybook.d.ts +46 -0
- package/dist/utilities/storybook.js +54 -0
- package/dist/vscode.html-custom-data.json +2392 -0
- package/dist/web-types.json +8687 -0
- package/package.json +109 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import {
|
|
2
|
+
icon_styles_default
|
|
3
|
+
} from "./chunk.LMJPQPQT.js";
|
|
4
|
+
import {
|
|
5
|
+
getIconLibrary,
|
|
6
|
+
unwatchIcon,
|
|
7
|
+
watchIcon
|
|
8
|
+
} from "./chunk.7J7CS3BK.js";
|
|
9
|
+
import {
|
|
10
|
+
requestIcon
|
|
11
|
+
} from "./chunk.23TOS4ZE.js";
|
|
12
|
+
import {
|
|
13
|
+
watch
|
|
14
|
+
} from "./chunk.D7CATJYB.js";
|
|
15
|
+
import {
|
|
16
|
+
ShoelaceElement
|
|
17
|
+
} from "./chunk.YCXTCVAZ.js";
|
|
18
|
+
import {
|
|
19
|
+
__decorateClass
|
|
20
|
+
} from "./chunk.6M63UXML.js";
|
|
21
|
+
|
|
22
|
+
// src/components/icon/icon.ts
|
|
23
|
+
import { html } from "lit";
|
|
24
|
+
import { customElement, property, state } from "lit/decorators.js";
|
|
25
|
+
import { unsafeSVG } from "lit/directives/unsafe-svg.js";
|
|
26
|
+
var parser;
|
|
27
|
+
var DSAIcon = class extends ShoelaceElement {
|
|
28
|
+
constructor() {
|
|
29
|
+
super(...arguments);
|
|
30
|
+
this.svg = "";
|
|
31
|
+
this.label = "";
|
|
32
|
+
this.library = "default";
|
|
33
|
+
}
|
|
34
|
+
connectedCallback() {
|
|
35
|
+
super.connectedCallback();
|
|
36
|
+
watchIcon(this);
|
|
37
|
+
}
|
|
38
|
+
firstUpdated() {
|
|
39
|
+
this.setIcon();
|
|
40
|
+
}
|
|
41
|
+
disconnectedCallback() {
|
|
42
|
+
super.disconnectedCallback();
|
|
43
|
+
unwatchIcon(this);
|
|
44
|
+
}
|
|
45
|
+
getUrl() {
|
|
46
|
+
const library = getIconLibrary(this.library);
|
|
47
|
+
if (this.name && library) {
|
|
48
|
+
return library.resolver(this.name);
|
|
49
|
+
}
|
|
50
|
+
return this.src;
|
|
51
|
+
}
|
|
52
|
+
handleLabelChange() {
|
|
53
|
+
const hasLabel = typeof this.label === "string" && this.label.length > 0;
|
|
54
|
+
if (hasLabel) {
|
|
55
|
+
this.setAttribute("role", "img");
|
|
56
|
+
this.setAttribute("aria-label", this.label);
|
|
57
|
+
this.removeAttribute("aria-hidden");
|
|
58
|
+
} else {
|
|
59
|
+
this.removeAttribute("role");
|
|
60
|
+
this.removeAttribute("aria-label");
|
|
61
|
+
this.setAttribute("aria-hidden", "true");
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
async setIcon() {
|
|
65
|
+
var _a;
|
|
66
|
+
const library = getIconLibrary(this.library);
|
|
67
|
+
const url = this.getUrl();
|
|
68
|
+
if (!parser) {
|
|
69
|
+
parser = new DOMParser();
|
|
70
|
+
}
|
|
71
|
+
if (url) {
|
|
72
|
+
try {
|
|
73
|
+
const file = await requestIcon(url);
|
|
74
|
+
if (url !== this.getUrl()) {
|
|
75
|
+
return;
|
|
76
|
+
} else if (file.ok) {
|
|
77
|
+
const doc = parser.parseFromString(file.svg, "text/html");
|
|
78
|
+
const svgEl = doc.body.querySelector("svg");
|
|
79
|
+
if (svgEl !== null) {
|
|
80
|
+
svgEl.part.add("svg");
|
|
81
|
+
(_a = library == null ? void 0 : library.mutator) == null ? void 0 : _a.call(library, svgEl);
|
|
82
|
+
this.svg = svgEl.outerHTML;
|
|
83
|
+
this.emit("dsa-load");
|
|
84
|
+
} else {
|
|
85
|
+
this.svg = "";
|
|
86
|
+
this.emit("dsa-error");
|
|
87
|
+
}
|
|
88
|
+
} else {
|
|
89
|
+
this.svg = "";
|
|
90
|
+
this.emit("dsa-error");
|
|
91
|
+
}
|
|
92
|
+
} catch (e) {
|
|
93
|
+
this.emit("dsa-error");
|
|
94
|
+
}
|
|
95
|
+
} else if (this.svg.length > 0) {
|
|
96
|
+
this.svg = "";
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
render() {
|
|
100
|
+
return html` ${unsafeSVG(this.svg)} `;
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
DSAIcon.styles = icon_styles_default;
|
|
104
|
+
__decorateClass([
|
|
105
|
+
state()
|
|
106
|
+
], DSAIcon.prototype, "svg", 2);
|
|
107
|
+
__decorateClass([
|
|
108
|
+
property({ reflect: true })
|
|
109
|
+
], DSAIcon.prototype, "name", 2);
|
|
110
|
+
__decorateClass([
|
|
111
|
+
property()
|
|
112
|
+
], DSAIcon.prototype, "src", 2);
|
|
113
|
+
__decorateClass([
|
|
114
|
+
property()
|
|
115
|
+
], DSAIcon.prototype, "label", 2);
|
|
116
|
+
__decorateClass([
|
|
117
|
+
property({ reflect: true })
|
|
118
|
+
], DSAIcon.prototype, "library", 2);
|
|
119
|
+
__decorateClass([
|
|
120
|
+
watch("label")
|
|
121
|
+
], DSAIcon.prototype, "handleLabelChange", 1);
|
|
122
|
+
__decorateClass([
|
|
123
|
+
watch(["name", "src", "library"])
|
|
124
|
+
], DSAIcon.prototype, "setIcon", 1);
|
|
125
|
+
DSAIcon = __decorateClass([
|
|
126
|
+
customElement("dsa-icon")
|
|
127
|
+
], DSAIcon);
|
|
128
|
+
|
|
129
|
+
export {
|
|
130
|
+
DSAIcon
|
|
131
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// src/internal/default-value.ts
|
|
2
|
+
import { defaultConverter } from "lit";
|
|
3
|
+
var defaultValue = (propertyName = "value") => (proto, key) => {
|
|
4
|
+
const ctor = proto.constructor;
|
|
5
|
+
const attributeChangedCallback = ctor.prototype.attributeChangedCallback;
|
|
6
|
+
ctor.prototype.attributeChangedCallback = function(name, old, value) {
|
|
7
|
+
var _a;
|
|
8
|
+
const options = ctor.getPropertyOptions(propertyName);
|
|
9
|
+
const attributeName = typeof options.attribute === "string" ? options.attribute : propertyName;
|
|
10
|
+
if (name === attributeName) {
|
|
11
|
+
const converter = options.converter || defaultConverter;
|
|
12
|
+
const fromAttribute = typeof converter === "function" ? converter : (_a = converter == null ? void 0 : converter.fromAttribute) != null ? _a : defaultConverter.fromAttribute;
|
|
13
|
+
const newValue = fromAttribute(value, options.type);
|
|
14
|
+
if (this[propertyName] !== newValue) {
|
|
15
|
+
this[key] = newValue;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
attributeChangedCallback.call(this, name, old, value);
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
defaultValue
|
|
24
|
+
};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import {
|
|
2
|
+
checkbox_button_styles_default
|
|
3
|
+
} from "./chunk.UPYCV66H.js";
|
|
4
|
+
import {
|
|
5
|
+
HasSlotController
|
|
6
|
+
} from "./chunk.YIY5RM53.js";
|
|
7
|
+
import {
|
|
8
|
+
watch
|
|
9
|
+
} from "./chunk.D7CATJYB.js";
|
|
10
|
+
import {
|
|
11
|
+
ShoelaceElement
|
|
12
|
+
} from "./chunk.YCXTCVAZ.js";
|
|
13
|
+
import {
|
|
14
|
+
__decorateClass
|
|
15
|
+
} from "./chunk.6M63UXML.js";
|
|
16
|
+
|
|
17
|
+
// src/components/checkbox-button/checkbox-button.ts
|
|
18
|
+
import { customElement, property, query, state } from "lit/decorators.js";
|
|
19
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
20
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
21
|
+
import { html } from "lit/static-html.js";
|
|
22
|
+
var DSACheckboxButton = class extends ShoelaceElement {
|
|
23
|
+
constructor() {
|
|
24
|
+
super(...arguments);
|
|
25
|
+
this.hasSlotController = new HasSlotController(this, "[default]");
|
|
26
|
+
this.hasFocus = false;
|
|
27
|
+
this.checked = false;
|
|
28
|
+
this.disabled = false;
|
|
29
|
+
this.size = "medium";
|
|
30
|
+
}
|
|
31
|
+
connectedCallback() {
|
|
32
|
+
super.connectedCallback();
|
|
33
|
+
this.setAttribute("role", "presentation");
|
|
34
|
+
}
|
|
35
|
+
handleClick(event) {
|
|
36
|
+
if (this.disabled || this.readonly) {
|
|
37
|
+
event.preventDefault();
|
|
38
|
+
event.stopPropagation();
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
this.checked = !this.checked;
|
|
42
|
+
}
|
|
43
|
+
handleBlur() {
|
|
44
|
+
this.hasFocus = false;
|
|
45
|
+
this.emit("dsa-blur");
|
|
46
|
+
}
|
|
47
|
+
handleFocus() {
|
|
48
|
+
this.hasFocus = true;
|
|
49
|
+
this.emit("dsa-focus");
|
|
50
|
+
}
|
|
51
|
+
handleDisabledChange() {
|
|
52
|
+
this.setAttribute("aria-disabled", this.disabled ? "true" : "false");
|
|
53
|
+
}
|
|
54
|
+
handleReadonlyChange() {
|
|
55
|
+
this.disabled = this.readonly;
|
|
56
|
+
}
|
|
57
|
+
/** Sets focus on the checbox button. */
|
|
58
|
+
focus(options) {
|
|
59
|
+
this.input.focus(options);
|
|
60
|
+
}
|
|
61
|
+
/** Removes focus from the checkbox button. */
|
|
62
|
+
blur() {
|
|
63
|
+
this.input.blur();
|
|
64
|
+
}
|
|
65
|
+
render() {
|
|
66
|
+
return html`
|
|
67
|
+
<div part="base" role="presentation">
|
|
68
|
+
<button
|
|
69
|
+
part="${`button${this.checked ? " button--checked" : ""}`}"
|
|
70
|
+
role="checkbox"
|
|
71
|
+
aria-checked="${this.checked}"
|
|
72
|
+
class=${classMap({
|
|
73
|
+
button: true,
|
|
74
|
+
"button--on-base": true,
|
|
75
|
+
"button--toggle": true,
|
|
76
|
+
"button--small": this.size === "small",
|
|
77
|
+
"button--medium": this.size === "medium",
|
|
78
|
+
"button--large": this.size === "large",
|
|
79
|
+
"button--checked": this.checked,
|
|
80
|
+
"button--readonly": this.readonly,
|
|
81
|
+
"button--disabled": this.disabled,
|
|
82
|
+
"button--focused": this.hasFocus,
|
|
83
|
+
// TODO: remove ?
|
|
84
|
+
"button--has-label": this.hasSlotController.test("[default]")
|
|
85
|
+
})}
|
|
86
|
+
?disabled=${this.disabled}
|
|
87
|
+
aria-disabled=${this.disabled}
|
|
88
|
+
type="button"
|
|
89
|
+
value=${ifDefined(this.value)}
|
|
90
|
+
@blur=${this.handleBlur}
|
|
91
|
+
@focus=${this.handleFocus}
|
|
92
|
+
@click=${this.handleClick}
|
|
93
|
+
>
|
|
94
|
+
${this.readonly ? html`<dsa-icon
|
|
95
|
+
name="lock"
|
|
96
|
+
class="button__icon-readonly"
|
|
97
|
+
></dsa-icon>` : ""}
|
|
98
|
+
<slot part="label" class="button__label"></slot>
|
|
99
|
+
${this.checked ? html`<dsa-icon
|
|
100
|
+
name="check"
|
|
101
|
+
class="button__icon-check"
|
|
102
|
+
></dsa-icon>` : ""}
|
|
103
|
+
</button>
|
|
104
|
+
</div>
|
|
105
|
+
`;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
DSACheckboxButton.styles = checkbox_button_styles_default;
|
|
109
|
+
__decorateClass([
|
|
110
|
+
query(".button")
|
|
111
|
+
], DSACheckboxButton.prototype, "input", 2);
|
|
112
|
+
__decorateClass([
|
|
113
|
+
query(".hidden-input")
|
|
114
|
+
], DSACheckboxButton.prototype, "hiddenInput", 2);
|
|
115
|
+
__decorateClass([
|
|
116
|
+
state()
|
|
117
|
+
], DSACheckboxButton.prototype, "hasFocus", 2);
|
|
118
|
+
__decorateClass([
|
|
119
|
+
property({ type: Boolean, reflect: true })
|
|
120
|
+
], DSACheckboxButton.prototype, "checked", 2);
|
|
121
|
+
__decorateClass([
|
|
122
|
+
property()
|
|
123
|
+
], DSACheckboxButton.prototype, "value", 2);
|
|
124
|
+
__decorateClass([
|
|
125
|
+
property({ type: Boolean, reflect: true })
|
|
126
|
+
], DSACheckboxButton.prototype, "disabled", 2);
|
|
127
|
+
__decorateClass([
|
|
128
|
+
property({ reflect: true })
|
|
129
|
+
], DSACheckboxButton.prototype, "size", 2);
|
|
130
|
+
__decorateClass([
|
|
131
|
+
property({ type: Boolean })
|
|
132
|
+
], DSACheckboxButton.prototype, "readonly", 2);
|
|
133
|
+
__decorateClass([
|
|
134
|
+
watch("disabled", { waitUntilFirstUpdate: true })
|
|
135
|
+
], DSACheckboxButton.prototype, "handleDisabledChange", 1);
|
|
136
|
+
__decorateClass([
|
|
137
|
+
watch("readonly")
|
|
138
|
+
], DSACheckboxButton.prototype, "handleReadonlyChange", 1);
|
|
139
|
+
DSACheckboxButton = __decorateClass([
|
|
140
|
+
customElement("dsa-checkbox-button")
|
|
141
|
+
], DSACheckboxButton);
|
|
142
|
+
|
|
143
|
+
export {
|
|
144
|
+
DSACheckboxButton
|
|
145
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
import {
|
|
2
|
+
form_control_styles_default
|
|
3
|
+
} from "./chunk.3RBCYA4F.js";
|
|
4
|
+
import {
|
|
5
|
+
component_styles_default
|
|
6
|
+
} from "./chunk.TUVJKY7S.js";
|
|
7
|
+
|
|
8
|
+
// src/components/input-phone/input-phone.styles.ts
|
|
9
|
+
import { css } from "lit";
|
|
10
|
+
var input_phone_styles_default = css`
|
|
11
|
+
${component_styles_default}
|
|
12
|
+
${form_control_styles_default}
|
|
13
|
+
|
|
14
|
+
:host {
|
|
15
|
+
display: block;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.input-phone {
|
|
19
|
+
position: relative;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
align-items: center;
|
|
23
|
+
padding: var(--dsa-wc-input-padding);
|
|
24
|
+
vertical-align: middle;
|
|
25
|
+
font: var(--dsa-wc-input-text-field-font);
|
|
26
|
+
letter-spacing: var(--dsa-wc-input-mask-placeholder-letter-spacing);
|
|
27
|
+
font-size: inherit;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
cursor: text;
|
|
30
|
+
width: 100%;
|
|
31
|
+
transition: var(--dsa-wc-transition-fast) color,
|
|
32
|
+
var(--dsa-wc-transition-fast) border,
|
|
33
|
+
var(--dsa-wc-transition-fast) box-shadow,
|
|
34
|
+
var(--dsa-wc-transition-fast) background-color;
|
|
35
|
+
border-radius: var(--dsa-wc-input-phone-border-radius);
|
|
36
|
+
border-left-width: 0.5px;
|
|
37
|
+
height: auto;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.input-phone--focused:not(.input-phone--disabled):not(
|
|
41
|
+
.input-phone--readonly
|
|
42
|
+
) {
|
|
43
|
+
outline: var(--dsa-wc-focus-ring);
|
|
44
|
+
outline-offset: var(--dsa-wc-focus-ring-offset);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* On Layer inputs */
|
|
48
|
+
.input-phone--on-layer {
|
|
49
|
+
background-color: var(--dsa-wc-input-on-layer-background-color);
|
|
50
|
+
border: solid var(--dsa-wc-input-border-width)
|
|
51
|
+
var(--dsa-wc-input-on-layer-border-color);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.input-phone--on-layer:hover:not(.input-phone--disabled):not(
|
|
55
|
+
.input-phone--readonly
|
|
56
|
+
) {
|
|
57
|
+
border-color: var(--dsa-wc-input-on-layer-border-color-hover);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.input-phone--on-layer.input-phone--focused:not(.input-phone--disabled):not(
|
|
61
|
+
.input-phone--readonly
|
|
62
|
+
)
|
|
63
|
+
.input-phone__control {
|
|
64
|
+
color: var(--dsa-wc-input-on-layer-text-field-input-color);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.input-phone--on-layer.input-phone--disabled {
|
|
68
|
+
background-color: var(--dsa-wc-input-on-layer-background-color-disabled);
|
|
69
|
+
border-color: var(--dsa-wc-input-on-layer-border-color-disabled);
|
|
70
|
+
opacity: 0.5;
|
|
71
|
+
cursor: not-allowed;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.input-phone--on-layer.input-phone--readonly {
|
|
75
|
+
background-color: var(--dsa-wc-input-on-layer-locked-background-color);
|
|
76
|
+
border-color: var(--dsa-wc-input-on-layer-locked-border-color);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.input-phone__control::placeholder {
|
|
80
|
+
visibility: hidden;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.input-phone--on-layer .input-phone__placeholder {
|
|
84
|
+
color: var(--dsa-wc-input-on-layer-text-field-placeholder-color);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.input-phone--on-layer.input-phone--disabled .input-phone__control {
|
|
88
|
+
color: var(--dsa-wc-input-on-layer-text-field-input-color-disabled);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.input-phone--on-layer.input-phone--disabled
|
|
92
|
+
.input-phone__control::placeholder {
|
|
93
|
+
color: var(--dsa-wc-input-on-layer-text-field-placeholder-color-disabled);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.input-phone--error.input-phone--on-layer:not(.input-phone--disabled):not(
|
|
97
|
+
.input-phone--readonly
|
|
98
|
+
) {
|
|
99
|
+
background-color: var(--dsa-wc-input-on-layer-background-color-error);
|
|
100
|
+
border-color: var(--dsa-wc-input-on-layer-border-color-error);
|
|
101
|
+
}
|
|
102
|
+
.input-phone--error.input-phone--on-layer:hover:not(
|
|
103
|
+
.input-phone--disabled
|
|
104
|
+
):not(.input-phone--readonly) {
|
|
105
|
+
border-color: var(--dsa-wc-input-on-layer-border-color-error-hover);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* On Base inputs */
|
|
109
|
+
.input-phone--on-base {
|
|
110
|
+
border: solid var(--dsa-wc-input-border-width)
|
|
111
|
+
var(--dsa-color-input-border-on-base-enabled);
|
|
112
|
+
background-color: var(--dsa-color-input-background-on-base-enabled);
|
|
113
|
+
color: var(--dsa-wc-input-on-base-text-field-input-color);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.input-phone--on-base:hover:not(.input-phone--disabled):not(
|
|
117
|
+
.input-phone--readonly
|
|
118
|
+
) {
|
|
119
|
+
border-color: var(--dsa-wc-input-on-base-border-color-hover);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.input-phone--on-base.input-phone--disabled {
|
|
123
|
+
border-color: var(--dsa-wc-input-on-base-border-color-disabled);
|
|
124
|
+
background-color: var(--dsa-wc-input-on-base-background-color-disabled);
|
|
125
|
+
opacity: 0.5;
|
|
126
|
+
cursor: not-allowed;
|
|
127
|
+
}
|
|
128
|
+
.input-phone--on-base.input-phone--readonly {
|
|
129
|
+
background-color: var(--dsa-wc-input-on-base-locked-background-color);
|
|
130
|
+
border-color: var(--dsa-wc-input-on-base-locked-border-color);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.input-phone--on-base .input-phone__placeholder {
|
|
134
|
+
color: var(--dsa-wc-input-on-base-text-field-placeholder-color);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.input-phone__placeholder {
|
|
138
|
+
user-select: none;
|
|
139
|
+
pointer-events: none;
|
|
140
|
+
width: 100%;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.input-phone--error.input-phone--on-base:not(.input-phone--disabled):not(
|
|
144
|
+
.input-phone--readonly
|
|
145
|
+
) {
|
|
146
|
+
background-color: var(--dsa-wc-input-on-base-background-color-error);
|
|
147
|
+
border-color: var(--dsa-wc-input-on-base-border-color-error);
|
|
148
|
+
}
|
|
149
|
+
.input-phone--error.input-phone--on-base:hover:not(
|
|
150
|
+
.input-phone--disabled
|
|
151
|
+
):not(.input-phone--readonly) {
|
|
152
|
+
border-color: var(--dsa-wc-input-on-base-border-color-error-hover);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.input-phone__control {
|
|
156
|
+
position: absolute;
|
|
157
|
+
padding: var(--dsa-wc-input-padding);
|
|
158
|
+
display: inline-flex;
|
|
159
|
+
flex-direction: row;
|
|
160
|
+
flex: 1 1 auto;
|
|
161
|
+
font-family: inherit;
|
|
162
|
+
font-size: inherit;
|
|
163
|
+
font-weight: inherit;
|
|
164
|
+
letter-spacing: var(--dsa-wc-input-mask-placeholder-letter-spacing);
|
|
165
|
+
min-width: 0;
|
|
166
|
+
height: 100%;
|
|
167
|
+
border: none;
|
|
168
|
+
background: none;
|
|
169
|
+
box-shadow: none;
|
|
170
|
+
margin: 0;
|
|
171
|
+
right: 0;
|
|
172
|
+
left: 0;
|
|
173
|
+
cursor: inherit;
|
|
174
|
+
-webkit-appearance: none;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.input-phone__control.input-phone__control-with-prefix {
|
|
178
|
+
margin-inline-start: calc(
|
|
179
|
+
var(--dsa-wc-input-mask-control-margin-inline-start) -
|
|
180
|
+
var(--dsa-wc-input-phone-prefix-margin-inline-end)
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
.input-phone__control::-webkit-search-decoration,
|
|
184
|
+
.input-phone__control::-webkit-search-cancel-button,
|
|
185
|
+
.input-phone__control::-webkit-search-results-button,
|
|
186
|
+
.input-phone__control::-webkit-search-results-decoration {
|
|
187
|
+
-webkit-appearance: none;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.input-phone__control:-webkit-autofill,
|
|
191
|
+
.input-phone__control:-webkit-autofill:hover,
|
|
192
|
+
.input-phone__control:-webkit-autofill:focus,
|
|
193
|
+
.input-phone__control:-webkit-autofill:active {
|
|
194
|
+
box-shadow: 0 0 0 var(--dsa-wc-form-input-height-large)
|
|
195
|
+
var(--dsa-wc-input-on-base-border-color-hover) inset !important;
|
|
196
|
+
-webkit-text-fill-color: var(--dsa-wc-input-on-base-text-field-input-color);
|
|
197
|
+
caret-color: var(--dsa-wc-input-on-base-text-field-input-color);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.input-phone:hover:not(.input-phone--disabled):not(.input-phone--readonly)
|
|
201
|
+
.input-phone__control {
|
|
202
|
+
color: var(--dsa-wc-input-on-base-text-field-input-color);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.input-phone__control:focus {
|
|
206
|
+
outline: none;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.input-phone__suffix {
|
|
210
|
+
display: inline-flex;
|
|
211
|
+
flex: 0 0 auto;
|
|
212
|
+
align-items: center;
|
|
213
|
+
cursor: default;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.input-phone__input {
|
|
217
|
+
display: flex;
|
|
218
|
+
width: 100%;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/* Select */
|
|
222
|
+
.input-phone__select {
|
|
223
|
+
flex-shrink: 0;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.input-phone__select::part(combobox) {
|
|
227
|
+
border-radius: var(--dsa-wc-input-phone-select-border-radius);
|
|
228
|
+
border-right: none;
|
|
229
|
+
height: auto;
|
|
230
|
+
font-size: inherit;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.input-phone__select::part(popup) {
|
|
234
|
+
display: unset;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
:not(.form-control--readonly):not(form-control--disabled)
|
|
238
|
+
> dsa-select:not(.input-phone__select-error) {
|
|
239
|
+
--dsa-wc-internal-select-on-base-active-background-color: var(
|
|
240
|
+
--dsa-wc-input-phone-select-on-base-active-background
|
|
241
|
+
);
|
|
242
|
+
--dsa-wc-internal-select-on-base-hover-background-color: var(
|
|
243
|
+
--dsa-wc-input-phone-select-on-base-hover-background
|
|
244
|
+
);
|
|
245
|
+
|
|
246
|
+
--dsa-wc-internal-select-on-layer-active-background-color: var(
|
|
247
|
+
--dsa-wc-input-phone-select-on-layer-active-background
|
|
248
|
+
);
|
|
249
|
+
--dsa-wc-internal-select-on-layer-hover-background-color: var(
|
|
250
|
+
--dsa-wc-input-phone-select-on-layer-hover-background
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
dsa-select.input-phone__select-error {
|
|
254
|
+
--dsa-wc-internal-select-on-base-background-color: var(
|
|
255
|
+
--dsa-wc-input-on-base-background-color-error
|
|
256
|
+
);
|
|
257
|
+
--dsa-wc-internal-select-on-base-border-color: var(
|
|
258
|
+
--dsa-wc-input-on-base-border-color-error
|
|
259
|
+
);
|
|
260
|
+
--dsa-wc-internal-select-on-base-active-background-color: var(
|
|
261
|
+
--dsa-wc-input-on-base-background-color-error
|
|
262
|
+
);
|
|
263
|
+
--dsa-wc-internal-select-on-base-hover-border-color: var(
|
|
264
|
+
--dsa-wc-input-on-base-border-color-error-hover
|
|
265
|
+
);
|
|
266
|
+
--dsa-wc-internal-select-on-base-hover-background-color: var(
|
|
267
|
+
--dsa-wc-input-on-base-background-color-error
|
|
268
|
+
);
|
|
269
|
+
--dsa-wc-internal-select-on-layer-active-box-shadow: none;
|
|
270
|
+
|
|
271
|
+
--dsa-wc-internal-select-on-layer-background-color: var(
|
|
272
|
+
--dsa-wc-input-on-layer-background-color-error
|
|
273
|
+
);
|
|
274
|
+
--dsa-wc-internal-select-on-layer-border-color: var(
|
|
275
|
+
--dsa-wc-input-on-layer-border-color-error
|
|
276
|
+
);
|
|
277
|
+
--dsa-wc-internal-select-on-layer-active-background-color: var(
|
|
278
|
+
--dsa-wc-input-on-layer-background-color-error
|
|
279
|
+
);
|
|
280
|
+
|
|
281
|
+
--dsa-wc-internal-select-on-layer-hover-border-color: var(
|
|
282
|
+
--dsa-wc-input-on-layer-border-color-error-hover
|
|
283
|
+
);
|
|
284
|
+
--dsa-wc-internal-select-on-layer-hover-background-color: var(
|
|
285
|
+
--dsa-wc-input-on-layer-background-color-error
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.form-control--readonly:not(form-control--disabled) dsa-select {
|
|
290
|
+
--dsa-wc-internal-select-on-base-disabled-background-color: var(
|
|
291
|
+
--dsa-wc-input-on-base-locked-background-color
|
|
292
|
+
);
|
|
293
|
+
--dsa-wc-internal-select-on-base-disabled-border-color: var(
|
|
294
|
+
--dsa-wc-input-on-base-locked-border-color
|
|
295
|
+
);
|
|
296
|
+
|
|
297
|
+
--dsa-wc-internal-select-on-layer-disabled-background-color: var(
|
|
298
|
+
--dsa-wc-input-on-layer-locked-background-color
|
|
299
|
+
);
|
|
300
|
+
|
|
301
|
+
--dsa-wc-internal-select-on-layer-disabled-border-color: var(
|
|
302
|
+
--dsa-wc-input-on-layer-locked-border-color
|
|
303
|
+
);
|
|
304
|
+
|
|
305
|
+
--dsa-wc-internal-select-disabled-cursor: text;
|
|
306
|
+
pointer-event: none;
|
|
307
|
+
--dsa-wc-internal-select-disabled-opacity: 1;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.input > button + button,
|
|
311
|
+
.input > .input-phone__control + button {
|
|
312
|
+
margin-left: var(--dsa-wc-input-margin-left);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/*
|
|
316
|
+
* Size modifiers
|
|
317
|
+
*/
|
|
318
|
+
|
|
319
|
+
.form-control--small .input-phone__input,
|
|
320
|
+
.form-control--small dsa-select::part(combobox) {
|
|
321
|
+
font: var(--dsa-wc-input-text-field-font-small);
|
|
322
|
+
height: var(--dsa-wc-input-phone-small-height);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.form-control--small .input-phone__control {
|
|
326
|
+
height: calc(
|
|
327
|
+
var(--dsa-wc-input-phone-small-height) - var(--dsa-wc-input-border-width) *
|
|
328
|
+
2
|
|
329
|
+
);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.form-control--medium dsa-select::part(combobox) {
|
|
333
|
+
height: var(--dsa-wc-input-phone-height);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.form-control--medium .input-phone__control {
|
|
337
|
+
height: calc(
|
|
338
|
+
var(--dsa-wc-input-phone-height) - var(--dsa-wc-input-border-width) * 2
|
|
339
|
+
);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.form-control--large
|
|
343
|
+
.input-phone___input.form-control--large
|
|
344
|
+
dsa-select::part(combobox) {
|
|
345
|
+
font: var(--dsa-wc-input-text-field-font-large);
|
|
346
|
+
height: var(--dsa-wc-input-phone-large-height);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.form-control--large .input-phone__control {
|
|
350
|
+
height: calc(
|
|
351
|
+
var(--dsa-wc-input-phone-large-height) - var(--dsa-wc-input-border-width) *
|
|
352
|
+
2
|
|
353
|
+
);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/*
|
|
357
|
+
* Clearable
|
|
358
|
+
*/
|
|
359
|
+
|
|
360
|
+
.input-phone__clear {
|
|
361
|
+
font-size: 1.25rem;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.input-phone__clear::part(base) {
|
|
365
|
+
padding: 0;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.input-phone__clear:hover {
|
|
369
|
+
color: var(--dsa-wc-input-icon-color-hover);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.input-phone--empty .input-phone__clear {
|
|
373
|
+
visibility: hidden;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/* Don't show the browser's password toggle in Edge */
|
|
377
|
+
::-ms-reveal {
|
|
378
|
+
display: none;
|
|
379
|
+
}
|
|
380
|
+
/* Prefix */
|
|
381
|
+
.input-phone__prefix-icon,
|
|
382
|
+
.input-phone__prefix {
|
|
383
|
+
color: var(--dsa-wc-input-icon-color);
|
|
384
|
+
cursor: none;
|
|
385
|
+
font-size: 1.25rem;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.input-phone__prefix::slotted(*) {
|
|
389
|
+
margin-inline-end: var(--dsa-wc-input-phone-prefix-margin-inline-end);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/* Mask */
|
|
393
|
+
|
|
394
|
+
.input-phone__value {
|
|
395
|
+
visibility: hidden;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.input-phone__mask {
|
|
399
|
+
position: absolute;
|
|
400
|
+
}
|
|
401
|
+
`;
|
|
402
|
+
|
|
403
|
+
export {
|
|
404
|
+
input_phone_styles_default
|
|
405
|
+
};
|