@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
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
# @ds-autonomie/web-components
|
|
2
|
+
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7195834: Publication sur le registre NPM
|
|
8
|
+
Mise en place de la license MIT
|
|
9
|
+
- Updated dependencies [7195834]
|
|
10
|
+
- @ds-autonomie/assets@1.0.1
|
|
11
|
+
|
|
12
|
+
## 1.0.0
|
|
13
|
+
|
|
14
|
+
### Major Changes
|
|
15
|
+
|
|
16
|
+
- e3d7ec0: cnsa-theme from @cnsa-fr/design-assets are no longer bundled with the package.
|
|
17
|
+
|
|
18
|
+
You will need to import the css manually from `@cnsa-fr/design-assets/css/cnsa-ds.css`. Please refer to the documentation.
|
|
19
|
+
|
|
20
|
+
- 155beec: Renommage des fichiers CSS de theme avec `dsa`
|
|
21
|
+
- c0ee06c: `events`,`components`: renommer le prefix cnsa en dsa
|
|
22
|
+
- 155beec: Changement de l'espace nom des packages pour `@ds-autonomie/`.
|
|
23
|
+
- c0ee06c: `tokens`: renonmage des token interne de cnsa-ds a dsa-wc
|
|
24
|
+
- e3d7ec0: Suppression des dependances non essentiel shoelace
|
|
25
|
+
- 155beec: Le package `@ds-autonomie/design-system` est renommée en `@ds-autonomie/web-components`
|
|
26
|
+
- 154acea: Les icônes se trouvent maintenant dans le package `@cnsa-fr/design-assets`
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- 3b9e00d: `input`, `input-mask`, `input-phone`, `textarea`, `radio-group`, `checkbox-group`: uniformisation des styles du label, help-text et error-text
|
|
31
|
+
- 443e37e: `breadcrumb`,`breadcrumb-item`: documentation technique
|
|
32
|
+
- 55c01ef: `radio-button`: documentation technique
|
|
33
|
+
- 4fdc3f6: `alert`: documentation technique
|
|
34
|
+
- 3233495: `select`: documentation
|
|
35
|
+
- 764afd7: `dialog`: documentation technique
|
|
36
|
+
- 38830b4: `card`: documentation technique
|
|
37
|
+
- 6fa6c66: `checkbox-button`: documentation
|
|
38
|
+
- f14442d: `drawer`: documentation technique
|
|
39
|
+
- 9c00faa: `accordion`: documentation technique
|
|
40
|
+
- 119eda3: `ts-doc`: mise a jour des liens de documentation zeroheights
|
|
41
|
+
- 7854af4: `radio`,`radio-group`: documentation technique
|
|
42
|
+
- 1fe78af: `button`: ajustement des tokens des fonts
|
|
43
|
+
- fc981a6: `tag`: documentation technique
|
|
44
|
+
- 19bca5f: `tooltip`: documentation technique
|
|
45
|
+
- 3f0d262: suppression de la doc shoelace du repo
|
|
46
|
+
- 05c9b65: `checkbox-group`: documentation
|
|
47
|
+
- 035b35f: Application de la police de caractère sur les label des formcontrols
|
|
48
|
+
- 62805ab: `option`: documentation
|
|
49
|
+
- 184eeb9: `input-phone`: documentation
|
|
50
|
+
- 80fd445: `checkbox`: documentation
|
|
51
|
+
- Updated dependencies [155beec]
|
|
52
|
+
- Updated dependencies [c0ee06c]
|
|
53
|
+
- Updated dependencies [155beec]
|
|
54
|
+
- Updated dependencies [c0ee06c]
|
|
55
|
+
- Updated dependencies [154acea]
|
|
56
|
+
- Updated dependencies [155beec]
|
|
57
|
+
- @ds-autonomie/assets@1.0.0
|
|
58
|
+
|
|
59
|
+
## 0.10.0
|
|
60
|
+
|
|
61
|
+
### Minor Changes
|
|
62
|
+
|
|
63
|
+
- 96ec7fc: Ajout d'une class `no-animations` pour désactiver les animations
|
|
64
|
+
- 6289fbb: `radio-button`,`radio-group`: implémentation technique du statut selectionné et readonly
|
|
65
|
+
- 97a3530: `.cnsa-link`: stylisation des liens et ajout du visited
|
|
66
|
+
|
|
67
|
+
### Patch Changes
|
|
68
|
+
|
|
69
|
+
- e93393a: `input-mask`: documentation
|
|
70
|
+
- b28d602: `dialog`,`drawer`: ajustement de l'opacité de l'overlay
|
|
71
|
+
- 8773d28: `select` : correction des options du multiselect qui ne revenait pas a la ligne
|
|
72
|
+
- 8973f9a: `dropdown`: documentation technique
|
|
73
|
+
- e5b4937: `checkbox-button`: renommer `locked` en `readonly`
|
|
74
|
+
- c7be223: Les traductions françaises sont maintenant enregistrées automatiquement
|
|
75
|
+
- 0c1c5db: `button`: documentation
|
|
76
|
+
- 658b545: les astériques sont maintenant des éléments réels
|
|
77
|
+
- 396d3a2: mise à jour des dépendances
|
|
78
|
+
- 05e4054: `textarea`: documentation
|
|
79
|
+
- 1bb785d: `card`: alt de l'image controllable dans storybook
|
|
80
|
+
- Updated dependencies [e5b4937]
|
|
81
|
+
- Updated dependencies [97a3530]
|
|
82
|
+
- Updated dependencies [396d3a2]
|
|
83
|
+
- @cnsa-fr/design-assets@0.10.0
|
|
84
|
+
|
|
85
|
+
## 0.9.0
|
|
86
|
+
|
|
87
|
+
### Minor Changes
|
|
88
|
+
|
|
89
|
+
- 7768fa9: `badge`: implémentation graphique
|
|
90
|
+
- d2aca6d: `breadcrumb-item`: mise a jour du style des breadcrumb-items
|
|
91
|
+
- 05ea512: `checkbox-group` mise à disposition du composant
|
|
92
|
+
- 40436c2: `input`: mise à jour de storybook
|
|
93
|
+
- 44baebf: `input-mask`: fix de l'affichage en mode readonly
|
|
94
|
+
- 52aa8f2: `checkbox-button` mise à disposition du composant
|
|
95
|
+
- 2536887: `avatar`,`avatar-group`: mise à disposition des composants
|
|
96
|
+
- 4ad959a: `spinner`: implémentation graphique
|
|
97
|
+
- 3bbdb86: `button-group`: le composant est maintenant privé et interne
|
|
98
|
+
`radio-group`: affichage correct et wrapper avec des `radio-button`
|
|
99
|
+
- d2aca6d: `cnsa-link`: ajout d'une classe de stylisation de liens
|
|
100
|
+
|
|
101
|
+
### Patch Changes
|
|
102
|
+
|
|
103
|
+
- 9cee2f0: `dialog`, `drawer`: mise à jour de la documentation pour ajouter un button trigger
|
|
104
|
+
- 6c8d308: feat: adjust placeholder color
|
|
105
|
+
- 7b47e83: `input`: la largeur intrinsèque du composant est respecté dans un flex conteneur
|
|
106
|
+
- 124d5b6: `breadcrumb`,`breadcrumb-item`: mise en conformité d'accessibilité
|
|
107
|
+
- 1262fe0: `checkbox-group`,`input`,`select`,`radio-group`,`textarea`,`input-mask`,`input-phone`: ajout d'exemple d'usage avec infobulle sur storybook
|
|
108
|
+
- ebb7eb5: `menu-item`: mise en place du focus
|
|
109
|
+
- 6c2f8fe: `input`: focus visible sur les boutons d'actions
|
|
110
|
+
- 0c8b809: `focus`: correction d'implémentation d'a11y et de style
|
|
111
|
+
- 72339be: `radio-group` deselectionnable avec le clavier
|
|
112
|
+
- fd3b313: `radio-button`: réparation du bouton non selectionnable sur firefox et edge
|
|
113
|
+
- e9aad8f: `tag` contour sur la croix de suppression
|
|
114
|
+
- Updated dependencies [6c8d308]
|
|
115
|
+
- Updated dependencies [52aa8f2]
|
|
116
|
+
- @cnsa-fr/design-assets@0.9.0
|
|
117
|
+
|
|
118
|
+
## 0.8.1
|
|
119
|
+
|
|
120
|
+
### Patch Changes
|
|
121
|
+
|
|
122
|
+
- 8c67e4c: `select`: ajout de la propriété "no-sync-width" permettant a la popup de ne pas se synchroniser avec la taille de son ancre ; la propriété "placement" accepte maintenant les variantes "-start" et "-end" pour top et bottom
|
|
123
|
+
- 8c67e4c: `input-mask`: le charactère '\_' peut être utilisé pour définir le mask dans le placeholder
|
|
124
|
+
- 8c67e4c: `input-phone`: implémentation du composant (BETA)
|
|
125
|
+
- 8c67e4c: `select`: ajustement de la marge du prefix-icon et ajout de la propriété boolean 'display-value' qui affiche la valeur et non son label
|
|
126
|
+
- 8c67e4c: `input-mask`: mise en conformité d'accessibilité
|
|
127
|
+
- @cnsa-fr/design-assets@0.8.1
|
|
128
|
+
|
|
129
|
+
## 0.8.0
|
|
130
|
+
|
|
131
|
+
### Minor Changes
|
|
132
|
+
|
|
133
|
+
- 6d778e5: `input`: mise en conformité d'accessibilité
|
|
134
|
+
- 6b403eb: `button`: mise en conformité d'accessibilité
|
|
135
|
+
- 6789b7f: `storybook`: reconfiguration des attributs
|
|
136
|
+
- d4afe25: `tag`: mise en conformité d'accessibilité
|
|
137
|
+
- 59508af: `input`, `input-mask` passe graphique lorsque le champ est autocomplete
|
|
138
|
+
- 25581e4: `alert`: mise en conformité d'accessibilité
|
|
139
|
+
- 8dbc2bc: `textarea`: mise en conformité d'accessibilité
|
|
140
|
+
- d4afe25: `checkbox`: mise en conformité d'accessibilité
|
|
141
|
+
- 6789b7f: `dialog`, `drawer`: mise en conformité d'accessibilité
|
|
142
|
+
- 0b33cdd: `radio-group`: mise en conformité d'accessibilité
|
|
143
|
+
- 6ce8257: `card`: mise en conformité d'accessibilité
|
|
144
|
+
- 34f860d: `input-mask`: mise en conformité d'accessibilité
|
|
145
|
+
- 6789b7f: `icon`,`icon-button`: mise en conformité d'accessibilité
|
|
146
|
+
- d4afe25: `divider`: mise en conformité d'accessibilité
|
|
147
|
+
|
|
148
|
+
### Patch Changes
|
|
149
|
+
|
|
150
|
+
- 949e96b: `icon`: mise à jour de la documentation pour expliciter l'usage des Material Icons et non pas les Material Symbols
|
|
151
|
+
- Updated dependencies [59508af]
|
|
152
|
+
- @cnsa-fr/design-assets@0.8.0
|
|
153
|
+
|
|
154
|
+
## 0.7.0
|
|
155
|
+
|
|
156
|
+
### Minor Changes
|
|
157
|
+
|
|
158
|
+
- e4e4c3e: `input-mask`: mise à jour de la configuration NIR
|
|
159
|
+
- 732d2b7: `accordion`: implementation graphique
|
|
160
|
+
- a7492e3: `progress-ring`: implémentation graphique et la taille "large" à été enlevé
|
|
161
|
+
- e4e4c3e: `input`, `input-mask`: Les champs ont une 'width' de 100%
|
|
162
|
+
- e4e4c3e: `input`,`input-mask`,`textarea`,`select`: l'utilisation des composants sans label est possible si la propriété title est définie
|
|
163
|
+
- f4aa934: `drawer`: implementation graphique
|
|
164
|
+
- 6ecbc89: `dialog`: mise a jour de la doc pour inclure le header-actions slot
|
|
165
|
+
- 25d9d2d: `progess-bar`: implémentation graphique du composant
|
|
166
|
+
|
|
167
|
+
### Patch Changes
|
|
168
|
+
|
|
169
|
+
- @cnsa-fr/design-assets@0.7.0
|
|
170
|
+
|
|
171
|
+
## 0.6.0
|
|
172
|
+
|
|
173
|
+
### Minor Changes
|
|
174
|
+
|
|
175
|
+
- 15205fa: `input`: mise a jour des tokens du composant. La propriété `filled` à été remplacé par la propriété `variant`.
|
|
176
|
+
- 5d3e5e1: `breadcrumb et breadcrumb-item`: implementation graphique
|
|
177
|
+
- 719b352: `tooltip`: mise à disposition du composant
|
|
178
|
+
- 81dec43: `tag`: stylisation du composant
|
|
179
|
+
- 962b7c4: `tree`, `tree-item`: refonte graphique
|
|
180
|
+
`tokens`: mise à jour pour le composant `tree` et `tree-item`
|
|
181
|
+
- 56313e1: `skeleton`: mise a disposition du composant
|
|
182
|
+
- c35ccab: `dropdown`: implémentation graphique
|
|
183
|
+
- dd1f6c1: `input-mask`: impleméntation du composant
|
|
184
|
+
- 81dec43: `select`: stylisation des tags dans le cas du multiselect
|
|
185
|
+
`tokens`: mise à jour du rouge, ajout des variables pour le tag du multiselect
|
|
186
|
+
- 0b3a807: `tokens`: ajout d'une version minifié, ajout des tokens pour les composants `radio-group`, `radio-button`, `checkbox` et `radio`.
|
|
187
|
+
`button-group`: documentation storybook
|
|
188
|
+
`radio-group`: stylisation pour le `button-group` et ajout de la propriété `deselectable`
|
|
189
|
+
`radio-button`: mise à disposition du composant
|
|
190
|
+
`theme`: mise à jour des références
|
|
191
|
+
- d35bcca: `alert`: implémentation du composant
|
|
192
|
+
|
|
193
|
+
### Patch Changes
|
|
194
|
+
|
|
195
|
+
- Updated dependencies [81dec43]
|
|
196
|
+
- Updated dependencies [962b7c4]
|
|
197
|
+
- Updated dependencies [81dec43]
|
|
198
|
+
- Updated dependencies [0b3a807]
|
|
199
|
+
- @cnsa-fr/design-assets@0.6.0
|
|
200
|
+
|
|
201
|
+
## 0.5.0
|
|
202
|
+
|
|
203
|
+
### Minor Changes
|
|
204
|
+
|
|
205
|
+
- 1bc3440: `menu`, `menu-item` et `menu-label`: implementation graphique
|
|
206
|
+
- 01f107d: `accordion`: revue fonctionelle du composant accordion précédement appellé `details`
|
|
207
|
+
- 808ef68: `badge`: revue fonctionnelle et mise à jour des stories.
|
|
208
|
+
- b60c1c9: `drawer`: revue fonctionelle du composant
|
|
209
|
+
- 0c2c865: `progress-ring`: revue fonctionelle du composant
|
|
210
|
+
- 07c601a: `dropdown`: revue fonctionelle du composant
|
|
211
|
+
- 702608d: `select`: implémentation graphique
|
|
212
|
+
- b24b0f1: `icon-button`: revue graphique du composant
|
|
213
|
+
- 0eb6c14: `textarea`: revue graphique du composant
|
|
214
|
+
- ce71aed: `transverse`, les events sont maintenant préfixé par `cnsa-`
|
|
215
|
+
- 9ddbebe: `option`: implémentation graphique
|
|
216
|
+
- 4a5a31b: `error-text` : ajout du composant error-text et ajustement des apis des composants `input`, `textarea`, `select` , `checkbox` ,`radio`, `radio-group` et `option` pour afficher l'états erreur
|
|
217
|
+
- a02977e: `<radio-group>`, renommage de la prop `part` pour l'input pour qu'il diffère de celui du label
|
|
218
|
+
- e515d20: `<divider>`, revue fonctionnelle et mise à jour des stories.
|
|
219
|
+
`<breadcrumb-item>`, bugfix de la story
|
|
220
|
+
|
|
221
|
+
### Patch Changes
|
|
222
|
+
|
|
223
|
+
- fc5466d: `tooltip`, `menu-item`: bugfix sur le contenu d'une tooltip qui ne revenais pas a la ligne, bugfix du contenu d'un menu-item qui ne prennais pas toute la place
|
|
224
|
+
- Updated dependencies [df04031]
|
|
225
|
+
- Updated dependencies [304ab43]
|
|
226
|
+
- Updated dependencies [96240bb]
|
|
227
|
+
- Updated dependencies [0193bf3]
|
|
228
|
+
- @cnsa-fr/design-assets@0.5.0
|
|
229
|
+
|
|
230
|
+
## 0.4.0
|
|
231
|
+
|
|
232
|
+
### Minor Changes
|
|
233
|
+
|
|
234
|
+
- 29c3ca7: tree and tree item api
|
|
235
|
+
- bcf673b: select component api
|
|
236
|
+
- 155610f: icon button api
|
|
237
|
+
- 292708d: breadcrumb and breadcrumb-item api refactoring
|
|
238
|
+
- 6f43501: Option functional dev + Icons stories update
|
|
239
|
+
- 8fb9445: button api
|
|
240
|
+
- c084713: textarea api
|
|
241
|
+
- 8ebeaf2: tag api refactoring
|
|
242
|
+
- 2e767c8: menu , menu-item and menu-label api
|
|
243
|
+
|
|
244
|
+
## 0.3.0
|
|
245
|
+
|
|
246
|
+
### Minor Changes
|
|
247
|
+
|
|
248
|
+
- 05b67c5: checkbox component styling
|
|
249
|
+
- eb27abc: card component styling
|
|
250
|
+
- 01c76c6: dialog styling
|
|
251
|
+
- 6394097: tab, tab-group, tab-panel: rework api and stylisation
|
|
252
|
+
- d284d3c: Styled radio and radio-group
|
|
253
|
+
|
|
254
|
+
### Patch Changes
|
|
255
|
+
|
|
256
|
+
- Updated dependencies [6394097]
|
|
257
|
+
- @cnsa-fr/design-assets@0.3.0
|
|
258
|
+
|
|
259
|
+
## 0.2.4
|
|
260
|
+
|
|
261
|
+
### Patch Changes
|
|
262
|
+
|
|
263
|
+
- 3e2d8ad: publish design-assets
|
|
264
|
+
- Updated dependencies [3e2d8ad]
|
|
265
|
+
- @cnsa-fr/design-assets@0.2.2
|
|
266
|
+
|
|
267
|
+
## 0.2.3
|
|
268
|
+
|
|
269
|
+
### Patch Changes
|
|
270
|
+
|
|
271
|
+
- 2605612: set registry to github packages
|
|
272
|
+
|
|
273
|
+
## 0.2.2
|
|
274
|
+
|
|
275
|
+
### Patch Changes
|
|
276
|
+
|
|
277
|
+
- b624b86: remove unused prepublish lifecycle script
|
|
278
|
+
|
|
279
|
+
## 0.2.1
|
|
280
|
+
|
|
281
|
+
### Patch Changes
|
|
282
|
+
|
|
283
|
+
- Updated dependencies [cde3a4f]
|
|
284
|
+
- @cnsa-fr/design-assets@0.2.1
|
|
285
|
+
|
|
286
|
+
## 0.2.0
|
|
287
|
+
|
|
288
|
+
### Minor Changes
|
|
289
|
+
|
|
290
|
+
- aeb1cdc: use Shoelace as a package instead of the original dependency
|
|
291
|
+
- 769eef0: add storybook and move stories to the design-system package
|
|
292
|
+
- aeb1cdc: configure eslint and tsconfig and remove react
|
|
293
|
+
- 1d49e5b: styled the input component, added input stories to storybook, update cnsa design tokens
|
|
294
|
+
- a3d0f18: update design tokens from figma
|
|
295
|
+
- 273d322: change the default icons library to Material Design icons
|
|
296
|
+
- 8a0ed52: Update readme to include font setup
|
|
297
|
+
- aeb1cdc: minimize exported shoelace components
|
|
298
|
+
|
|
299
|
+
### Patch Changes
|
|
300
|
+
|
|
301
|
+
- 65a8c35: add getting started for developers in Storybook introduction page
|
|
302
|
+
- 69cc4c0: refactor dependencies and format codebase
|
|
303
|
+
- Updated dependencies [1d49e5b]
|
|
304
|
+
- Updated dependencies [a3d0f18]
|
|
305
|
+
- @cnsa-fr/design-assets@0.2.0
|
|
306
|
+
|
|
307
|
+
## 0.1.0
|
|
308
|
+
|
|
309
|
+
### Minor Changes
|
|
310
|
+
|
|
311
|
+
- bec2dbf: Replace Bootstrap icons with Material Symbols (outlined + filled)
|
|
312
|
+
- 2e51636: Proxy first set of components in storybook
|
|
313
|
+
- 4ace016: Enable autocompletion for major IDEs like WebStorm or VSCode
|
|
314
|
+
|
|
315
|
+
### Patch Changes
|
|
316
|
+
|
|
317
|
+
- e2aa111: Add type barrels for conveniance
|
|
318
|
+
- 611a65c: chore: document setup and provide an angular example
|
package/LICENSE
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Copyright (c) 2023 Caisse nationale de solidarité pour l'autonomie
|
|
2
|
+
Copyright (c) 2020 A Beautiful Site, LLC
|
|
3
|
+
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
5
|
+
|
|
6
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
requestInclude
|
|
3
|
+
} from "./chunk.XNEONNEJ.js";
|
|
4
|
+
|
|
5
|
+
// src/components/icon/request.ts
|
|
6
|
+
var iconFiles = /* @__PURE__ */ new Map();
|
|
7
|
+
async function requestIcon(url) {
|
|
8
|
+
if (iconFiles.has(url)) {
|
|
9
|
+
return iconFiles.get(url);
|
|
10
|
+
}
|
|
11
|
+
const fileData = await requestInclude(url);
|
|
12
|
+
const iconFileData = {
|
|
13
|
+
ok: fileData.ok,
|
|
14
|
+
status: fileData.status,
|
|
15
|
+
svg: null
|
|
16
|
+
};
|
|
17
|
+
if (fileData.ok) {
|
|
18
|
+
const div = document.createElement("div");
|
|
19
|
+
div.innerHTML = fileData.html;
|
|
20
|
+
const svg = div.firstElementChild;
|
|
21
|
+
iconFileData.svg = (svg == null ? void 0 : svg.tagName.toLowerCase()) === "svg" ? svg.outerHTML : "";
|
|
22
|
+
}
|
|
23
|
+
iconFiles.set(url, iconFileData);
|
|
24
|
+
return iconFileData;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
requestIcon
|
|
29
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__spreadProps,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "./chunk.6M63UXML.js";
|
|
5
|
+
|
|
6
|
+
// src/internal/animate.ts
|
|
7
|
+
function hasNoAnimations() {
|
|
8
|
+
return !!document.querySelector(".no-animations");
|
|
9
|
+
}
|
|
10
|
+
function animateTo(el, keyframes, options) {
|
|
11
|
+
return new Promise((resolve) => {
|
|
12
|
+
if ((options == null ? void 0 : options.duration) === Infinity) {
|
|
13
|
+
throw new Error("Promise-based animations must be finite.");
|
|
14
|
+
}
|
|
15
|
+
const animation = el.animate(keyframes, __spreadProps(__spreadValues({}, options), {
|
|
16
|
+
duration: prefersReducedMotion() || hasNoAnimations() ? 0 : options.duration
|
|
17
|
+
}));
|
|
18
|
+
animation.addEventListener("cancel", resolve, { once: true });
|
|
19
|
+
animation.addEventListener("finish", resolve, { once: true });
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function parseDuration(delay) {
|
|
23
|
+
delay = delay.toString().toLowerCase();
|
|
24
|
+
if (delay.indexOf("ms") > -1) {
|
|
25
|
+
return parseFloat(delay);
|
|
26
|
+
}
|
|
27
|
+
if (delay.indexOf("s") > -1) {
|
|
28
|
+
return parseFloat(delay) * 1e3;
|
|
29
|
+
}
|
|
30
|
+
return parseFloat(delay);
|
|
31
|
+
}
|
|
32
|
+
function prefersReducedMotion() {
|
|
33
|
+
const query = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
34
|
+
return query.matches;
|
|
35
|
+
}
|
|
36
|
+
function stopAnimations(el) {
|
|
37
|
+
return Promise.all(
|
|
38
|
+
el.getAnimations().map((animation) => {
|
|
39
|
+
return new Promise((resolve) => {
|
|
40
|
+
const handleAnimationEvent = requestAnimationFrame(resolve);
|
|
41
|
+
animation.addEventListener("cancel", () => handleAnimationEvent, {
|
|
42
|
+
once: true
|
|
43
|
+
});
|
|
44
|
+
animation.addEventListener("finish", () => handleAnimationEvent, {
|
|
45
|
+
once: true
|
|
46
|
+
});
|
|
47
|
+
animation.cancel();
|
|
48
|
+
});
|
|
49
|
+
})
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
function shimKeyframesHeightAuto(keyframes, calculatedHeight) {
|
|
53
|
+
return keyframes.map((keyframe) => __spreadProps(__spreadValues({}, keyframe), {
|
|
54
|
+
height: keyframe.height === "auto" ? `${calculatedHeight}px` : keyframe.height
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
animateTo,
|
|
60
|
+
parseDuration,
|
|
61
|
+
stopAnimations,
|
|
62
|
+
shimKeyframesHeightAuto
|
|
63
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import {
|
|
2
|
+
LocalizeController
|
|
3
|
+
} from "./chunk.5XL2LZLC.js";
|
|
4
|
+
import {
|
|
5
|
+
ShoelaceElement
|
|
6
|
+
} from "./chunk.YCXTCVAZ.js";
|
|
7
|
+
import {
|
|
8
|
+
__decorateClass
|
|
9
|
+
} from "./chunk.6M63UXML.js";
|
|
10
|
+
|
|
11
|
+
// src/components/format-number/format-number.ts
|
|
12
|
+
import { customElement, property } from "lit/decorators.js";
|
|
13
|
+
var DSAFormatNumber = class extends ShoelaceElement {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.localize = new LocalizeController(this);
|
|
17
|
+
this.value = 0;
|
|
18
|
+
this.type = "decimal";
|
|
19
|
+
this.noGrouping = false;
|
|
20
|
+
this.currency = "USD";
|
|
21
|
+
this.currencyDisplay = "symbol";
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
if (isNaN(this.value)) {
|
|
25
|
+
return "";
|
|
26
|
+
}
|
|
27
|
+
return this.localize.number(this.value, {
|
|
28
|
+
style: this.type,
|
|
29
|
+
currency: this.currency,
|
|
30
|
+
currencyDisplay: this.currencyDisplay,
|
|
31
|
+
useGrouping: !this.noGrouping,
|
|
32
|
+
minimumIntegerDigits: this.minimumIntegerDigits,
|
|
33
|
+
minimumFractionDigits: this.minimumFractionDigits,
|
|
34
|
+
maximumFractionDigits: this.maximumFractionDigits,
|
|
35
|
+
minimumSignificantDigits: this.minimumSignificantDigits,
|
|
36
|
+
maximumSignificantDigits: this.maximumSignificantDigits
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
__decorateClass([
|
|
41
|
+
property({ type: Number })
|
|
42
|
+
], DSAFormatNumber.prototype, "value", 2);
|
|
43
|
+
__decorateClass([
|
|
44
|
+
property()
|
|
45
|
+
], DSAFormatNumber.prototype, "type", 2);
|
|
46
|
+
__decorateClass([
|
|
47
|
+
property({ attribute: "no-grouping", type: Boolean })
|
|
48
|
+
], DSAFormatNumber.prototype, "noGrouping", 2);
|
|
49
|
+
__decorateClass([
|
|
50
|
+
property()
|
|
51
|
+
], DSAFormatNumber.prototype, "currency", 2);
|
|
52
|
+
__decorateClass([
|
|
53
|
+
property({ attribute: "currency-display" })
|
|
54
|
+
], DSAFormatNumber.prototype, "currencyDisplay", 2);
|
|
55
|
+
__decorateClass([
|
|
56
|
+
property({ attribute: "minimum-integer-digits", type: Number })
|
|
57
|
+
], DSAFormatNumber.prototype, "minimumIntegerDigits", 2);
|
|
58
|
+
__decorateClass([
|
|
59
|
+
property({ attribute: "minimum-fraction-digits", type: Number })
|
|
60
|
+
], DSAFormatNumber.prototype, "minimumFractionDigits", 2);
|
|
61
|
+
__decorateClass([
|
|
62
|
+
property({ attribute: "maximum-fraction-digits", type: Number })
|
|
63
|
+
], DSAFormatNumber.prototype, "maximumFractionDigits", 2);
|
|
64
|
+
__decorateClass([
|
|
65
|
+
property({ attribute: "minimum-significant-digits", type: Number })
|
|
66
|
+
], DSAFormatNumber.prototype, "minimumSignificantDigits", 2);
|
|
67
|
+
__decorateClass([
|
|
68
|
+
property({ attribute: "maximum-significant-digits", type: Number })
|
|
69
|
+
], DSAFormatNumber.prototype, "maximumSignificantDigits", 2);
|
|
70
|
+
DSAFormatNumber = __decorateClass([
|
|
71
|
+
customElement("dsa-format-number")
|
|
72
|
+
], DSAFormatNumber);
|
|
73
|
+
|
|
74
|
+
export {
|
|
75
|
+
DSAFormatNumber
|
|
76
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import {
|
|
2
|
+
badge_styles_default
|
|
3
|
+
} from "./chunk.ZVGZDTBF.js";
|
|
4
|
+
import {
|
|
5
|
+
ShoelaceElement
|
|
6
|
+
} from "./chunk.YCXTCVAZ.js";
|
|
7
|
+
import {
|
|
8
|
+
__decorateClass
|
|
9
|
+
} from "./chunk.6M63UXML.js";
|
|
10
|
+
|
|
11
|
+
// src/components/badge/badge.ts
|
|
12
|
+
import { html } from "lit";
|
|
13
|
+
import { customElement, property } from "lit/decorators.js";
|
|
14
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
15
|
+
var DSABadge = class extends ShoelaceElement {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.variant = "primary";
|
|
19
|
+
this.dot = false;
|
|
20
|
+
this.pulse = false;
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return html`
|
|
24
|
+
<div
|
|
25
|
+
part="base"
|
|
26
|
+
class=${classMap({
|
|
27
|
+
badge: true,
|
|
28
|
+
"badge--primary": this.variant === "primary",
|
|
29
|
+
"badge--success": this.variant === "success",
|
|
30
|
+
"badge--neutral": this.variant === "neutral",
|
|
31
|
+
"badge--warning": this.variant === "warning",
|
|
32
|
+
"badge--danger": this.variant === "danger",
|
|
33
|
+
"badge--dot": this.dot,
|
|
34
|
+
"badge--pulse": this.pulse
|
|
35
|
+
})}
|
|
36
|
+
role="status"
|
|
37
|
+
>
|
|
38
|
+
<slot class="${classMap({ "badge__slot-dot": this.dot })}"></slot>
|
|
39
|
+
</div>
|
|
40
|
+
`;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
DSABadge.styles = badge_styles_default;
|
|
44
|
+
__decorateClass([
|
|
45
|
+
property({ reflect: true })
|
|
46
|
+
], DSABadge.prototype, "variant", 2);
|
|
47
|
+
__decorateClass([
|
|
48
|
+
property({ type: Boolean, reflect: true })
|
|
49
|
+
], DSABadge.prototype, "dot", 2);
|
|
50
|
+
__decorateClass([
|
|
51
|
+
property({ type: Boolean, reflect: true })
|
|
52
|
+
], DSABadge.prototype, "pulse", 2);
|
|
53
|
+
DSABadge = __decorateClass([
|
|
54
|
+
customElement("dsa-badge")
|
|
55
|
+
], DSABadge);
|
|
56
|
+
|
|
57
|
+
export {
|
|
58
|
+
DSABadge
|
|
59
|
+
};
|