@ds-autonomie/web-components 2.0.1 → 2.2.0

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.
Files changed (327) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/cdn/chunks/{chunk.ZDLDKWEM.js → chunk.2APAO2OW.js} +1 -1
  3. package/cdn/chunks/{chunk.QPY2AEFG.js → chunk.2DJERWBI.js} +14 -10
  4. package/cdn/chunks/{chunk.QCSRN6TI.js → chunk.3JMBGIZN.js} +1 -1
  5. package/cdn/chunks/{chunk.QTUCYPM5.js → chunk.3TUFAITJ.js} +18 -0
  6. package/cdn/chunks/{chunk.2SEDRBTZ.js → chunk.4NC4QO64.js} +4 -1
  7. package/cdn/chunks/{chunk.ZC2YWJX5.js → chunk.5BF76EO7.js} +1 -1
  8. package/cdn/chunks/{chunk.HRSNXHEG.js → chunk.5BL6KECM.js} +31 -5
  9. package/cdn/chunks/{chunk.OZEY33RC.js → chunk.5LXQ3RKQ.js} +2 -22
  10. package/cdn/chunks/{chunk.GDKBZ2H6.js → chunk.6CF6SXDF.js} +1 -2
  11. package/cdn/chunks/{chunk.SRCH73UW.js → chunk.6QTMZJGH.js} +25 -2
  12. package/cdn/chunks/{chunk.Z326Q4YW.js → chunk.6V2FRFCB.js} +1 -1
  13. package/cdn/chunks/{chunk.KQ5BQRHA.js → chunk.77CWRZEL.js} +6 -0
  14. package/cdn/chunks/{chunk.6E6G25TQ.js → chunk.A33BZOMA.js} +1 -1
  15. package/cdn/chunks/{chunk.GLQFV66F.js → chunk.ATHAYO6A.js} +177 -12
  16. package/cdn/chunks/{chunk.VIT6ZMSL.js → chunk.BCLU5KXE.js} +4 -5
  17. package/cdn/chunks/{chunk.5UR3I4O7.js → chunk.BE7PKTJW.js} +1 -1
  18. package/cdn/chunks/chunk.BNPGOQZ2.js +223 -0
  19. package/cdn/chunks/{chunk.PS3BQQBO.js → chunk.C62MMBV4.js} +17 -3
  20. package/cdn/chunks/{chunk.VR6U4JFG.js → chunk.CUCCBQJX.js} +11 -2
  21. package/cdn/chunks/{chunk.Q2IGBG6C.js → chunk.CVV4WLBC.js} +16 -8
  22. package/cdn/chunks/{chunk.5AFQZ4HE.js → chunk.CYMM2ZAV.js} +6 -0
  23. package/cdn/chunks/{chunk.2GCON4UO.js → chunk.DSKRAAOI.js} +3 -4
  24. package/cdn/chunks/{chunk.454LK2SB.js → chunk.E6VF2I6I.js} +9 -4
  25. package/cdn/chunks/{chunk.JYYFSSR2.js → chunk.EARU4CHS.js} +1 -1
  26. package/cdn/chunks/chunk.F7NUIVDV.js +10 -0
  27. package/cdn/chunks/{chunk.OVD3Q2LV.js → chunk.FHOCNAJ4.js} +5 -2
  28. package/cdn/chunks/{chunk.PLPMNDIZ.js → chunk.HYTYRM6S.js} +1 -1
  29. package/cdn/chunks/{chunk.DTZ62PPT.js → chunk.IGA57P5N.js} +13 -22
  30. package/cdn/chunks/{chunk.YTHFESMA.js → chunk.J73YJOU4.js} +6 -2
  31. package/cdn/chunks/chunk.KELDA33H.js +198 -0
  32. package/cdn/chunks/{chunk.3NTS3AEA.js → chunk.LFCUNNYV.js} +34 -30
  33. package/cdn/chunks/{chunk.R6BGXKHX.js → chunk.LNBAAP45.js} +1 -1
  34. package/cdn/chunks/{chunk.MEYHIAQ5.js → chunk.M7QHADJH.js} +5 -1
  35. package/cdn/chunks/chunk.MJLKYERJ.js +348 -0
  36. package/cdn/chunks/{chunk.3E6XVTWL.js → chunk.P45DWAWT.js} +1 -1
  37. package/cdn/chunks/chunk.PWL7QCVG.js +9 -0
  38. package/cdn/chunks/chunk.RJXLIOW7.js +28 -0
  39. package/cdn/chunks/{chunk.Y5CXRULD.js → chunk.UAQ7MMLI.js} +1 -1
  40. package/cdn/chunks/{chunk.PAGENBUA.js → chunk.UR6UOSYK.js} +10 -12
  41. package/cdn/chunks/{chunk.JY6ROHQN.js → chunk.WOONNSQ2.js} +14 -20
  42. package/cdn/chunks/{chunk.F2LQ5OCB.js → chunk.XD7G7WIJ.js} +6 -2
  43. package/cdn/chunks/chunk.XIX7XP2G.js +91 -0
  44. package/cdn/chunks/{chunk.CSDIRQFE.js → chunk.XLX7QTXT.js} +9 -1
  45. package/cdn/chunks/{chunk.BTTFPDXL.js → chunk.XPL6N3OJ.js} +3 -2
  46. package/cdn/chunks/{chunk.PMMQ5QVY.js → chunk.XQAKSW3W.js} +12 -1
  47. package/cdn/chunks/{chunk.NW4AAKGG.js → chunk.YQQNMFZF.js} +42 -93
  48. package/cdn/chunks/{chunk.E4GNTJPS.js → chunk.YS6XV3LD.js} +1 -1
  49. package/cdn/chunks/{chunk.FGSGBIL3.js → chunk.ZKPOAPR2.js} +0 -4
  50. package/cdn/components/accordion/accordion.js +3 -3
  51. package/cdn/components/alert/alert.js +4 -4
  52. package/cdn/components/avatar/avatar.js +4 -4
  53. package/cdn/components/breadcrumb/breadcrumb.js +3 -3
  54. package/cdn/components/button/button.d.ts +4 -1
  55. package/cdn/components/button/button.js +4 -4
  56. package/cdn/components/callout/callout.d.ts +3 -1
  57. package/cdn/components/callout/callout.js +4 -4
  58. package/cdn/components/checkbox/checkbox.d.ts +5 -1
  59. package/cdn/components/checkbox/checkbox.js +9 -4
  60. package/cdn/components/checkbox-button/checkbox-button.d.ts +1 -0
  61. package/cdn/components/checkbox-button/checkbox-button.js +4 -4
  62. package/cdn/components/checkbox-group/checkbox-group.d.ts +9 -8
  63. package/cdn/components/checkbox-group/checkbox-group.js +8 -8
  64. package/cdn/components/checkbox-group/checkbox-group.styles.js +1 -1
  65. package/cdn/components/combobox/combobox.d.ts +3 -2
  66. package/cdn/components/combobox/combobox.js +6 -5
  67. package/cdn/components/dialog/dialog.d.ts +5 -1
  68. package/cdn/components/dialog/dialog.js +5 -5
  69. package/cdn/components/dialog/dialog.styles.js +1 -1
  70. package/cdn/components/download-card/download-card.js +5 -5
  71. package/cdn/components/download-card/download-card.styles.js +1 -1
  72. package/cdn/components/download-link/download-link.js +5 -5
  73. package/cdn/components/download-link/download-link.styles.js +1 -1
  74. package/cdn/components/drawer/drawer.js +3 -3
  75. package/cdn/components/error-text/error-text.js +3 -3
  76. package/cdn/components/file-upload/file-upload.d.ts +3 -2
  77. package/cdn/components/file-upload/file-upload.js +3 -3
  78. package/cdn/components/file-upload-item/file-upload-item.js +3 -3
  79. package/cdn/components/filter-base/filter-base-stories.js +1 -1
  80. package/cdn/components/filter-base/filter-base.js +3 -3
  81. package/cdn/components/filter-button/filter-button.js +3 -3
  82. package/cdn/components/filter-counter/filter-counter.js +9 -8
  83. package/cdn/components/filter-date/filter-date.js +4 -4
  84. package/cdn/components/filter-range/filter-range.js +10 -9
  85. package/cdn/components/filter-select/filter-select.d.ts +6 -3
  86. package/cdn/components/filter-select/filter-select.js +14 -13
  87. package/cdn/components/header/header.d.ts +5 -1
  88. package/cdn/components/header/header.js +2 -2
  89. package/cdn/components/header/header.styles.js +1 -1
  90. package/cdn/components/header-search/header-search.d.ts +6 -0
  91. package/cdn/components/header-search/header-search.js +11 -5
  92. package/cdn/components/header-search/header-search.styles.js +1 -1
  93. package/cdn/components/icon/icon.js +3 -3
  94. package/cdn/components/icon/library.js +2 -2
  95. package/cdn/components/icon/library.system.js +1 -1
  96. package/cdn/components/icon-button/icon-button.js +3 -3
  97. package/cdn/components/input/input.js +8 -7
  98. package/cdn/components/input-date/input-date.js +7 -6
  99. package/cdn/components/input-mask/input-mask.js +6 -5
  100. package/cdn/components/input-otp/input-otp.d.ts +90 -0
  101. package/cdn/components/input-otp/input-otp.js +38 -0
  102. package/cdn/components/input-otp/input-otp.styles.d.ts +2 -0
  103. package/cdn/components/input-otp/input-otp.styles.js +11 -0
  104. package/cdn/components/input-otp/input-otp.utils.d.ts +3 -0
  105. package/cdn/components/input-otp/input-otp.utils.js +11 -0
  106. package/cdn/components/input-phone/input-phone.d.ts +3 -3
  107. package/cdn/components/input-phone/input-phone.js +14 -19
  108. package/cdn/components/input-phone/input-phone.styles.js +1 -1
  109. package/cdn/components/input-phone/input-phone.utils.d.ts +0 -2
  110. package/cdn/components/input-phone/input-phone.utils.js +1 -7
  111. package/cdn/components/menu-accordion/menu-accordion.js +3 -3
  112. package/cdn/components/menu-item/menu-item.js +3 -3
  113. package/cdn/components/menu-navigation/menu-navigation.js +1 -1
  114. package/cdn/components/navbar-link/navbar-link.js +5 -5
  115. package/cdn/components/navbar-menu/navbar-menu.js +4 -4
  116. package/cdn/components/option/option.js +5 -5
  117. package/cdn/components/option/option.styles.js +1 -1
  118. package/cdn/components/pagination/pagination.js +11 -10
  119. package/cdn/components/profile-button/profile-button.js +4 -4
  120. package/cdn/components/quote/quote.js +3 -3
  121. package/cdn/components/radio/radio.js +3 -3
  122. package/cdn/components/radio-button/radio-button.js +9 -7
  123. package/cdn/components/radio-group/radio-group.d.ts +7 -2
  124. package/cdn/components/radio-group/radio-group.js +8 -6
  125. package/cdn/components/range-slider/range-slider.d.ts +0 -2
  126. package/cdn/components/range-slider/range-slider.js +1 -1
  127. package/cdn/components/select/select.d.ts +4 -2
  128. package/cdn/components/select/select.js +6 -5
  129. package/cdn/components/split-panel/split-panel.js +3 -3
  130. package/cdn/components/step/step.js +5 -4
  131. package/cdn/components/tab/tab.d.ts +2 -0
  132. package/cdn/components/tab/tab.js +4 -4
  133. package/cdn/components/tab-group/tab-group.js +3 -3
  134. package/cdn/components/table-body/table-body.js +2 -2
  135. package/cdn/components/table-header-cell/table-header-cell.js +3 -3
  136. package/cdn/components/table-header-row/table-header-row.js +12 -9
  137. package/cdn/components/table-row/table-row.js +10 -5
  138. package/cdn/components/tag/tag.js +3 -3
  139. package/cdn/components/textarea/textarea.js +6 -5
  140. package/cdn/components/tree/tree.js +11 -6
  141. package/cdn/components/tree-item/tree-item.js +9 -4
  142. package/cdn/custom-elements.json +815 -184
  143. package/cdn/design-system.d.ts +2 -0
  144. package/cdn/design-system.js +129 -116
  145. package/cdn/events/events.d.ts +7 -7
  146. package/cdn/internal/a11y-warning.d.ts +2 -0
  147. package/cdn/internal/a11y-warning.js +4 -0
  148. package/cdn/internal/components/date-field/date-field.js +6 -1
  149. package/cdn/internal/components/form-control/form-control-layout.js +6 -1
  150. package/cdn/internal/components/form-toggle-button/form-toggle-button-stories.d.ts +2 -86
  151. package/cdn/themes/dsa-wc-theme.css +19 -0
  152. package/cdn/themes/dsa-wc-theme.min.css +1 -1
  153. package/cdn/themes/dsa-wc-theme.styles.js +19 -0
  154. package/cdn/utilities/icon-library.js +2 -2
  155. package/cdn/utilities/storybook.d.ts +1 -0
  156. package/cdn/utilities/storybook.js +3 -1
  157. package/cdn/vscode.html-custom-data.json +140 -18
  158. package/cdn/web-types.json +472 -69
  159. package/dist/chunks/{chunk.N5DO55QO.js → chunk.2EDNCADP.js} +9 -1
  160. package/dist/chunks/{chunk.YDXAC3AX.js → chunk.2VH3OZ2T.js} +1 -1
  161. package/dist/chunks/{chunk.QTUCYPM5.js → chunk.3TUFAITJ.js} +18 -0
  162. package/dist/chunks/{chunk.VC2F6FEI.js → chunk.4WSA3PVB.js} +1 -1
  163. package/dist/chunks/chunk.5P2EEOC5.js +196 -0
  164. package/dist/chunks/{chunk.VOOE2BQV.js → chunk.6HR34L7E.js} +2 -22
  165. package/dist/chunks/{chunk.Y72CHU6D.js → chunk.6JHM36KH.js} +5 -1
  166. package/dist/chunks/{chunk.TB3WT3D4.js → chunk.6QAB5TYJ.js} +6 -0
  167. package/dist/chunks/{chunk.LKCPAJMF.js → chunk.B6LMEZTV.js} +5 -2
  168. package/dist/chunks/{chunk.JUPNFWMF.js → chunk.DDDHV2NU.js} +14 -10
  169. package/dist/chunks/{chunk.P4HRQ2D7.js → chunk.DHDRABMZ.js} +1 -1
  170. package/dist/chunks/{chunk.X6V74J4Y.js → chunk.DUTPVTUZ.js} +4 -5
  171. package/dist/chunks/{chunk.JDG6WH3B.js → chunk.EQZ4YFRU.js} +94 -54
  172. package/dist/chunks/chunk.F7NUIVDV.js +10 -0
  173. package/dist/chunks/{chunk.CWVZX3HL.js → chunk.FKXOTDTY.js} +1 -1
  174. package/dist/chunks/{chunk.D3SHMAJT.js → chunk.H3FSR35C.js} +1 -1
  175. package/dist/chunks/chunk.HRIAHWFV.js +89 -0
  176. package/dist/chunks/{chunk.T4BUHP4L.js → chunk.I5HR7JYK.js} +10 -1
  177. package/dist/chunks/{chunk.4FP4K3F5.js → chunk.JDIBYGPL.js} +11 -2
  178. package/dist/chunks/{chunk.QEFQHCEK.js → chunk.KFRR2I2P.js} +3 -4
  179. package/dist/chunks/{chunk.RPZWIHKX.js → chunk.KN6RQWYN.js} +1 -1
  180. package/dist/chunks/{chunk.2DJFK3E6.js → chunk.KUYI27GJ.js} +204 -34
  181. package/dist/chunks/{chunk.ZGQUBAEK.js → chunk.L3LZ4MKX.js} +1 -1
  182. package/dist/chunks/{chunk.5LBJAKDG.js → chunk.LB54GRRB.js} +31 -5
  183. package/dist/chunks/{chunk.CQG7MKTO.js → chunk.LDXGSIJP.js} +6 -2
  184. package/dist/chunks/{chunk.BXOGG3JO.js → chunk.LTCZARVI.js} +1 -1
  185. package/dist/chunks/{chunk.ARYKCY32.js → chunk.MBRRLF6D.js} +34 -30
  186. package/dist/chunks/{chunk.R426GAXO.js → chunk.MJKJSMQX.js} +3 -2
  187. package/dist/chunks/{chunk.IAL72I44.js → chunk.MYSJOWY5.js} +6 -2
  188. package/dist/chunks/{chunk.3E6XVTWL.js → chunk.P45DWAWT.js} +1 -1
  189. package/dist/chunks/chunk.PWL7QCVG.js +9 -0
  190. package/dist/chunks/{chunk.7NPJ25LI.js → chunk.PZXD4VTO.js} +14 -20
  191. package/dist/chunks/chunk.RJXLIOW7.js +28 -0
  192. package/dist/chunks/{chunk.35URRZJ2.js → chunk.SYVX56PU.js} +1 -2
  193. package/dist/chunks/chunk.UDJJFUZ3.js +335 -0
  194. package/dist/chunks/{chunk.YXXLXJPE.js → chunk.UEWG3G4R.js} +6 -0
  195. package/dist/chunks/{chunk.K6FDIYMY.js → chunk.UVN7RIEO.js} +0 -4
  196. package/dist/chunks/{chunk.WWANVBI5.js → chunk.UWGAOHHQ.js} +1 -1
  197. package/dist/chunks/{chunk.6RJLT24F.js → chunk.VBW5RZBM.js} +4 -1
  198. package/dist/chunks/{chunk.LWFWCZIX.js → chunk.WQYBYKZ2.js} +9 -4
  199. package/dist/chunks/{chunk.XWFZLRHU.js → chunk.WRPRKCVY.js} +25 -2
  200. package/dist/chunks/{chunk.35M6DDPF.js → chunk.WUOMKASN.js} +17 -3
  201. package/dist/chunks/{chunk.GBRTFFMV.js → chunk.XJMGXWLM.js} +42 -93
  202. package/dist/chunks/{chunk.GOMVXZ72.js → chunk.XRZGSSHY.js} +1 -1
  203. package/dist/chunks/{chunk.Z2SRVRIK.js → chunk.XXN6UBL4.js} +10 -12
  204. package/dist/chunks/{chunk.6GN2WDDT.js → chunk.Y52TCF24.js} +1 -1
  205. package/dist/chunks/{chunk.DY2W3WPP.js → chunk.Z7DBDDCZ.js} +16 -8
  206. package/dist/chunks/{chunk.WI3DWLXW.js → chunk.ZTGPYOYG.js} +13 -22
  207. package/dist/components/accordion/accordion.js +3 -3
  208. package/dist/components/alert/alert.js +4 -4
  209. package/dist/components/avatar/avatar.js +4 -4
  210. package/dist/components/breadcrumb/breadcrumb.js +3 -3
  211. package/dist/components/button/button.d.ts +4 -1
  212. package/dist/components/button/button.js +4 -4
  213. package/dist/components/callout/callout.d.ts +3 -1
  214. package/dist/components/callout/callout.js +4 -4
  215. package/dist/components/checkbox/checkbox.d.ts +5 -1
  216. package/dist/components/checkbox/checkbox.js +9 -4
  217. package/dist/components/checkbox-button/checkbox-button.d.ts +1 -0
  218. package/dist/components/checkbox-button/checkbox-button.js +4 -4
  219. package/dist/components/checkbox-group/checkbox-group.d.ts +9 -8
  220. package/dist/components/checkbox-group/checkbox-group.js +8 -7
  221. package/dist/components/checkbox-group/checkbox-group.styles.js +1 -1
  222. package/dist/components/combobox/combobox.d.ts +3 -2
  223. package/dist/components/combobox/combobox.js +6 -5
  224. package/dist/components/dialog/dialog.d.ts +5 -1
  225. package/dist/components/dialog/dialog.js +5 -5
  226. package/dist/components/dialog/dialog.styles.js +1 -1
  227. package/dist/components/download-card/download-card.js +5 -5
  228. package/dist/components/download-card/download-card.styles.js +1 -1
  229. package/dist/components/download-link/download-link.js +5 -5
  230. package/dist/components/download-link/download-link.styles.js +1 -1
  231. package/dist/components/drawer/drawer.js +3 -3
  232. package/dist/components/error-text/error-text.js +3 -3
  233. package/dist/components/file-upload/file-upload.d.ts +3 -2
  234. package/dist/components/file-upload/file-upload.js +3 -3
  235. package/dist/components/file-upload-item/file-upload-item.js +3 -3
  236. package/dist/components/filter-base/filter-base-stories.js +1 -1
  237. package/dist/components/filter-base/filter-base.js +3 -3
  238. package/dist/components/filter-button/filter-button.js +3 -3
  239. package/dist/components/filter-counter/filter-counter.js +9 -8
  240. package/dist/components/filter-date/filter-date.js +4 -4
  241. package/dist/components/filter-range/filter-range.js +10 -9
  242. package/dist/components/filter-select/filter-select.d.ts +6 -3
  243. package/dist/components/filter-select/filter-select.js +14 -13
  244. package/dist/components/header/header.d.ts +5 -1
  245. package/dist/components/header/header.js +2 -2
  246. package/dist/components/header/header.styles.js +1 -1
  247. package/dist/components/header-search/header-search.d.ts +6 -0
  248. package/dist/components/header-search/header-search.js +11 -5
  249. package/dist/components/header-search/header-search.styles.js +1 -1
  250. package/dist/components/icon/icon.js +3 -3
  251. package/dist/components/icon/library.js +2 -2
  252. package/dist/components/icon/library.system.js +1 -1
  253. package/dist/components/icon-button/icon-button.js +3 -3
  254. package/dist/components/input/input.js +8 -7
  255. package/dist/components/input-date/input-date.js +7 -6
  256. package/dist/components/input-mask/input-mask.js +6 -5
  257. package/dist/components/input-otp/input-otp.d.ts +90 -0
  258. package/dist/components/input-otp/input-otp.js +31 -0
  259. package/dist/components/input-otp/input-otp.styles.d.ts +2 -0
  260. package/dist/components/input-otp/input-otp.styles.js +9 -0
  261. package/dist/components/input-otp/input-otp.utils.d.ts +3 -0
  262. package/dist/components/input-otp/input-otp.utils.js +11 -0
  263. package/dist/components/input-phone/input-phone.d.ts +3 -3
  264. package/dist/components/input-phone/input-phone.js +14 -19
  265. package/dist/components/input-phone/input-phone.styles.js +1 -1
  266. package/dist/components/input-phone/input-phone.utils.d.ts +0 -2
  267. package/dist/components/input-phone/input-phone.utils.js +1 -5
  268. package/dist/components/menu-accordion/menu-accordion.js +3 -3
  269. package/dist/components/menu-item/menu-item.js +3 -3
  270. package/dist/components/menu-navigation/menu-navigation.js +1 -1
  271. package/dist/components/navbar-link/navbar-link.js +5 -5
  272. package/dist/components/navbar-menu/navbar-menu.js +4 -4
  273. package/dist/components/option/option.js +5 -5
  274. package/dist/components/option/option.styles.js +1 -1
  275. package/dist/components/pagination/pagination.js +11 -10
  276. package/dist/components/profile-button/profile-button.js +4 -4
  277. package/dist/components/quote/quote.js +3 -3
  278. package/dist/components/radio/radio.js +3 -3
  279. package/dist/components/radio-button/radio-button.js +9 -7
  280. package/dist/components/radio-group/radio-group.d.ts +7 -2
  281. package/dist/components/radio-group/radio-group.js +8 -6
  282. package/dist/components/range-slider/range-slider.d.ts +0 -2
  283. package/dist/components/range-slider/range-slider.js +1 -1
  284. package/dist/components/select/select.d.ts +4 -2
  285. package/dist/components/select/select.js +6 -5
  286. package/dist/components/split-panel/split-panel.js +3 -3
  287. package/dist/components/step/step.js +5 -4
  288. package/dist/components/tab/tab.d.ts +2 -0
  289. package/dist/components/tab/tab.js +4 -4
  290. package/dist/components/tab-group/tab-group.js +3 -3
  291. package/dist/components/table-body/table-body.js +2 -2
  292. package/dist/components/table-header-cell/table-header-cell.js +3 -3
  293. package/dist/components/table-header-row/table-header-row.js +11 -8
  294. package/dist/components/table-row/table-row.js +10 -5
  295. package/dist/components/tag/tag.js +3 -3
  296. package/dist/components/textarea/textarea.js +6 -5
  297. package/dist/components/tree/tree.js +11 -6
  298. package/dist/components/tree-item/tree-item.js +9 -4
  299. package/dist/custom-elements.json +815 -184
  300. package/dist/design-system.d.ts +2 -0
  301. package/dist/design-system.js +129 -116
  302. package/dist/events/events.d.ts +7 -7
  303. package/dist/internal/a11y-warning.d.ts +2 -0
  304. package/dist/internal/a11y-warning.js +4 -0
  305. package/dist/internal/components/date-field/date-field.js +6 -1
  306. package/dist/internal/components/form-control/form-control-layout.js +6 -1
  307. package/dist/internal/components/form-toggle-button/form-toggle-button-stories.d.ts +2 -86
  308. package/dist/themes/dsa-wc-theme.css +19 -0
  309. package/dist/themes/dsa-wc-theme.min.css +1 -1
  310. package/dist/themes/dsa-wc-theme.styles.js +19 -0
  311. package/dist/utilities/icon-library.js +2 -2
  312. package/dist/utilities/storybook.d.ts +1 -0
  313. package/dist/utilities/storybook.js +3 -1
  314. package/dist/vscode.html-custom-data.json +140 -18
  315. package/dist/web-types.json +472 -69
  316. package/package.json +3 -1
  317. package/cdn/chunks/chunk.CCL2RZON.js +0 -132
  318. package/cdn/chunks/chunk.DIF52FDQ.js +0 -183
  319. package/cdn/chunks/chunk.GVVML3JJ.js +0 -272
  320. package/cdn/chunks/chunk.PS4PM6DJ.js +0 -164
  321. package/dist/chunks/chunk.2T66U3QC.js +0 -270
  322. package/dist/chunks/chunk.AYDVF4T3.js +0 -157
  323. package/dist/chunks/chunk.ESYJVRG3.js +0 -129
  324. package/cdn/chunks/{chunk.COR7P3QG.js → chunk.NSE76EM5.js} +3 -3
  325. package/cdn/chunks/{chunk.P33HFS7T.js → chunk.V2UYRTUC.js} +3 -3
  326. package/dist/chunks/{chunk.WOV5QN3O.js → chunk.3OHVWJYG.js} +3 -3
  327. package/dist/chunks/{chunk.7BFH35RV.js → chunk.63MNXWSY.js} +3 -3
@@ -1,29 +1,8 @@
1
1
  // src/components/download-link/download-link.styles.ts
2
2
  import { css } from "lit";
3
3
  var download_link_styles_default = css`
4
- .document-link {
5
- font: var(--dsa-wc-link-font);
6
- --icon-size: var(--dsa-spacing-24);
7
- }
8
- .document-link--x-large {
9
- font: var(--dsa-wc-link-font-x-large);
10
- --icon-size: var(--dsa-spacing-32);
11
- }
12
- .document-link--large {
13
- font: var(--dsa-wc-link-font-large);
14
- --icon-size: 28px;
15
- }
16
- .document-link--small {
17
- font: var(--dsa-wc-link-font-small);
18
- --icon-size: 20px;
19
- }
20
- .document-link--x-small {
21
- font: var(--dsa-wc-link-font-x-small);
22
- --icon-size: var(--dsa-spacing-16);
23
- }
24
- .document-link--2x-small {
25
- font: var(--dsa-wc-link-font-2x-small);
26
- --icon-size: 14px;
4
+ :host {
5
+ display: inline-block;
27
6
  }
28
7
 
29
8
  .link {
@@ -93,6 +72,38 @@ var download_link_styles_default = css`
93
72
  border-radius: var(--dsa-wc-focus-ring-radius);
94
73
  }
95
74
 
75
+ .document-link {
76
+ font: var(--dsa-wc-link-font);
77
+ --icon-size: var(--dsa-spacing-24);
78
+ }
79
+ .document-link--x-large {
80
+ font: var(--dsa-wc-link-font-x-large);
81
+ --icon-size: var(--dsa-spacing-32);
82
+ }
83
+ .document-link--large {
84
+ font: var(--dsa-wc-link-font-large);
85
+ --icon-size: 28px;
86
+ }
87
+ .document-link--small {
88
+ font: var(--dsa-wc-link-font-small);
89
+ --icon-size: 20px;
90
+ }
91
+ .document-link--x-small {
92
+ font: var(--dsa-wc-link-font-x-small);
93
+ --icon-size: var(--dsa-spacing-16);
94
+ }
95
+ .document-link--2x-small {
96
+ font: var(--dsa-wc-link-font-2x-small);
97
+ --icon-size: 14px;
98
+ }
99
+
100
+ dsa-icon {
101
+ width: var(--icon-size);
102
+ height: var(--icon-size);
103
+ margin-inline-start: var(--dsa-spacing-8);
104
+ vertical-align: bottom;
105
+ }
106
+
96
107
  .document-info {
97
108
  color: var(--dsa-wc-link-document-info-on-base-color);
98
109
  margin-top: var(--dsa-spacing-8);
@@ -108,13 +119,6 @@ var download_link_styles_default = css`
108
119
  .document-info--floating-menu {
109
120
  color: var(--dsa-wc-link-document-info-floating-menu-color);
110
121
  }
111
-
112
- dsa-icon {
113
- width: var(--icon-size);
114
- height: var(--icon-size);
115
- margin-inline-start: var(--dsa-spacing-8);
116
- vertical-align: bottom;
117
- }
118
122
  `;
119
123
 
120
124
  export {
@@ -67,12 +67,14 @@ var dialog_styles_default = css`
67
67
  display: flex;
68
68
  background-color: var(--dsa-wc-dialog-panel-color);
69
69
  z-index: 10;
70
+ justify-content: end;
71
+ align-items: center;
72
+ padding: var(--header-spacing);
70
73
  }
71
74
 
72
75
  .dialog__title {
73
76
  flex: 1 1 auto;
74
77
  font: var(--dsa-wc-dialog-header-title-font);
75
- padding: var(--header-spacing);
76
78
  margin: 0;
77
79
  }
78
80
 
@@ -83,7 +85,6 @@ var dialog_styles_default = css`
83
85
  justify-content: end;
84
86
  font: var(--dsa-wc-dialog-header-title-font);
85
87
  gap: var(--dsa-wc-dialog-header-actions-gap);
86
- padding: 0 var(--header-spacing);
87
88
  }
88
89
 
89
90
  .dialog__header-actions dsa-icon-button,
@@ -20,7 +20,7 @@ var errorArgTypes = {
20
20
  };
21
21
  var errorMessageArgTypes = {
22
22
  name: "error-message",
23
- description: 'An error message that is shown when `error` is set to true. If there are several messages, must be a string of messages separated by a pipe, e.g. "Error 1|Error 2|Error 3"',
23
+ description: 'The error message or messages that are shown when \u201Cerror\u201D is set to \u201Ctrue\u201D. To display several messages, they must be separated by a pipe character, e.g. "Error 1|Error 2|Error 3\u201D',
24
24
  table: {
25
25
  defaultValue: { summary: "''" },
26
26
  type: {
@@ -126,6 +126,9 @@ var filtersDrawerDecorator = (story) => {
126
126
  </dsa-drawer>
127
127
  `;
128
128
  };
129
+ var fullScreenDecorator = (story) => {
130
+ return html` <div style="height: 100vh">${story()}</div>`;
131
+ };
129
132
 
130
133
  export {
131
134
  updateCompleteArgTypes,
@@ -136,5 +139,6 @@ export {
136
139
  withOnLayerOnBaseDecorator,
137
140
  withOnFloatingMenuOnBaseDecorator,
138
141
  withBackgroundDecorator,
139
- filtersDrawerDecorator
142
+ filtersDrawerDecorator,
143
+ fullScreenDecorator
140
144
  };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.C2W7WMBY.js";
4
4
  import {
5
5
  library_system_default
6
- } from "./chunk.QTUCYPM5.js";
6
+ } from "./chunk.3TUFAITJ.js";
7
7
 
8
8
  // src/components/icon/library.ts
9
9
  var registry = [library_default_default, library_system_default];
@@ -0,0 +1,9 @@
1
+ // src/internal/a11y-warning.ts
2
+ var A11Y_WARNING_START = "(DSA a11y) ";
3
+ function a11yWarning(message) {
4
+ console.warn(`${A11Y_WARNING_START}${message}`);
5
+ }
6
+
7
+ export {
8
+ a11yWarning
9
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  download_link_styles_default
3
- } from "./chunk.ARYKCY32.js";
3
+ } from "./chunk.MBRRLF6D.js";
4
4
  import {
5
5
  ShoelaceElement
6
6
  } from "./chunk.XZ5FE34T.js";
@@ -26,32 +26,26 @@ var DSADownloadLink = class extends ShoelaceElement {
26
26
  }
27
27
  render() {
28
28
  return html`
29
- <div
30
- part="base"
29
+ <a
30
+ part="link"
31
31
  class=${classMap({
32
+ link: true,
33
+ "link--on-layer": this.variant === "layer",
34
+ "link--on-contrasted": this.variant === "contrasted",
35
+ "link--floating-menu": this.variant === "floating",
32
36
  "document-link--x-large": this.size === "xlarge",
33
37
  "document-link--large": this.size === "large",
34
38
  "document-link--small": this.size === "small",
35
39
  "document-link--x-small": this.size === "xsmall",
36
40
  "document-link--2x-small": this.size === "2xsmall"
37
41
  })}
42
+ download=${this.filename}
43
+ href=${this.href}
44
+ @focus=${this.handleFocus}
45
+ @blur=${this.handleBlur}
38
46
  >
39
- <a
40
- part="link"
41
- class=${classMap({
42
- link: true,
43
- "link--on-layer": this.variant === "layer",
44
- "link--on-contrasted": this.variant === "contrasted",
45
- "link--floating-menu": this.variant === "floating"
46
- })}
47
- download=${this.filename}
48
- href=${this.href}
49
- @focus=${this.handleFocus}
50
- @blur=${this.handleBlur}
51
- >
52
- <slot></slot>
53
- <dsa-icon name="download" library="system"></dsa-icon>
54
- </a>
47
+ <slot></slot>
48
+ <dsa-icon name="download" library="system"></dsa-icon>
55
49
  <p
56
50
  id="document-info"
57
51
  class=${classMap({
@@ -63,7 +57,7 @@ var DSADownloadLink = class extends ShoelaceElement {
63
57
  >
64
58
  ${this.format}${this.format && this.documentSize ? " - " : ""}${this.documentSize}
65
59
  </p>
66
- </div>
60
+ </a>
67
61
  `;
68
62
  }
69
63
  };
@@ -0,0 +1,28 @@
1
+ // src/components/input-phone/input-phone.utils.ts
2
+ var frenchNumberPrefix = [
3
+ "+33",
4
+ "+262",
5
+ "+508",
6
+ "+590",
7
+ "+594",
8
+ "+596",
9
+ "+681",
10
+ "+687",
11
+ "+689"
12
+ ];
13
+ var phonePrefixOptions = [
14
+ { value: "+33", label: "fr_FR" },
15
+ { value: "+590", label: "fr_GP" },
16
+ { value: "+594", label: "fr_GF" },
17
+ { value: "+596", label: "fr_MQ" },
18
+ { value: "+687", label: "fr_NC" },
19
+ { value: "+689", label: "fr_PF" },
20
+ { value: "+508", label: "fr_PM" },
21
+ { value: "+262", label: "fr_RE" },
22
+ { value: "+681", label: "fr_WF" }
23
+ ];
24
+
25
+ export {
26
+ frenchNumberPrefix,
27
+ phonePrefixOptions
28
+ };
@@ -64,8 +64,7 @@ var DSATableRow = class extends ShoelaceElement {
64
64
  class="checkbox"
65
65
  size="small"
66
66
  name=${this.selectionName}
67
- title=${this.selectionLabel !== "" ? this.selectionLabel : this.localize.term("selectRow")}
68
- aria-label=${this.selectionLabel !== "" ? this.selectionLabel : this.localize.term("selectRow")}
67
+ accessible-name=${this.selectionLabel !== "" ? this.selectionLabel : this.localize.term("selectRow")}
69
68
  value=${this.selectionValue}
70
69
  ?checked=${this.selected}
71
70
  @click=${(e) => e.stopPropagation()}
@@ -0,0 +1,335 @@
1
+ import {
2
+ input_otp_styles_default
3
+ } from "./chunk.5P2EEOC5.js";
4
+ import {
5
+ FormControlLayout
6
+ } from "./chunk.I5HR7JYK.js";
7
+ import {
8
+ defaultValue
9
+ } from "./chunk.CMJ2SRTL.js";
10
+ import {
11
+ FormControlController
12
+ } from "./chunk.JA7YFGLI.js";
13
+ import {
14
+ watch
15
+ } from "./chunk.NOMN6DGD.js";
16
+ import {
17
+ ifDefinedAndNotEmpty
18
+ } from "./chunk.ZQJVCRB2.js";
19
+ import {
20
+ __decorateClass
21
+ } from "./chunk.S3NI7NKU.js";
22
+
23
+ // src/components/input-otp/input-otp.ts
24
+ import { html } from "lit";
25
+ import { customElement, property, query, state } from "lit/decorators.js";
26
+ import { classMap } from "lit/directives/class-map.js";
27
+ import { ifDefined } from "lit/directives/if-defined.js";
28
+ import { live } from "lit/directives/live.js";
29
+ var DSAInputOTP = class extends FormControlLayout {
30
+ constructor() {
31
+ super(...arguments);
32
+ this.formControlController = new FormControlController(this, {
33
+ assumeInteractionOn: ["dsa-blur", "dsa-input"]
34
+ });
35
+ this.hasFocus = false;
36
+ this.currentIndex = 0;
37
+ this.value = "";
38
+ this.defaultValue = "";
39
+ this.length = 6;
40
+ }
41
+ /** Gets the validity state object */
42
+ get validity() {
43
+ return this.input.validity;
44
+ }
45
+ /** Gets the validation message */
46
+ get validationMessage() {
47
+ return this.input.validationMessage;
48
+ }
49
+ async firstUpdated() {
50
+ await this.updateComplete;
51
+ this.formControlController.updateValidity();
52
+ }
53
+ handleBlur() {
54
+ this.hasFocus = false;
55
+ this.emit("dsa-blur");
56
+ }
57
+ handleChange() {
58
+ this.value = this.input.value;
59
+ this.emit("dsa-change");
60
+ }
61
+ handleFocus() {
62
+ this.currentIndex = this.value ? -1 : 0;
63
+ this.hasFocus = true;
64
+ this.emit("dsa-focus");
65
+ }
66
+ handleInput(event) {
67
+ var _a;
68
+ if (this.patternRegexp && !this.patternRegexp.test(this.input.value)) {
69
+ this.input.value = this.value;
70
+ this.handleCurrentIndexChange();
71
+ return;
72
+ }
73
+ if (this.input.value.length > this.length) {
74
+ this.input.value = this.input.value.slice(0, this.length);
75
+ } else {
76
+ this.value = this.input.value;
77
+ if (!event.data) {
78
+ if (this.currentIndex === 0) {
79
+ this.handleCurrentIndexChange();
80
+ } else if (this.currentIndex === -1) {
81
+ this.currentIndex = 0;
82
+ } else {
83
+ this.currentIndex -= 1;
84
+ }
85
+ } else {
86
+ if (((_a = event.data) == null ? void 0 : _a.length) === 1) {
87
+ this.currentIndex = this.currentIndex < this.length ? this.currentIndex + 1 : this.length - 1;
88
+ } else {
89
+ this.currentIndex = this.getLastIndex();
90
+ }
91
+ }
92
+ this.formControlController.updateValidity();
93
+ this.emit("dsa-input");
94
+ }
95
+ }
96
+ handleSelect() {
97
+ if (this.input.value.length > 1 && this.input.selectionStart === 0 && this.input.selectionEnd === this.input.value.length) {
98
+ this.currentIndex = -1;
99
+ }
100
+ }
101
+ handleInvalid(event) {
102
+ this.formControlController.setValidity(false);
103
+ this.formControlController.emitInvalidEvent(event);
104
+ }
105
+ handleKeyDown(event) {
106
+ const hasModifier = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;
107
+ if (event.key === "Enter" && !hasModifier) {
108
+ setTimeout(() => {
109
+ if (!event.defaultPrevented && !event.isComposing) {
110
+ this.formControlController.submit();
111
+ }
112
+ });
113
+ }
114
+ if (["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"].includes(event.key)) {
115
+ event.preventDefault();
116
+ switch (event.key) {
117
+ case "ArrowLeft":
118
+ this.currentIndex = this.currentIndex > 0 ? this.currentIndex - 1 : 0;
119
+ break;
120
+ case "ArrowRight":
121
+ if (this.currentIndex === -1) {
122
+ this.currentIndex = this.getLastIndex();
123
+ } else if (this.currentIndex < this.value.length && this.currentIndex < this.length - 1) {
124
+ this.currentIndex += 1;
125
+ }
126
+ break;
127
+ case "ArrowUp":
128
+ this.currentIndex = 0;
129
+ break;
130
+ case "ArrowDown":
131
+ this.currentIndex = this.getLastIndex();
132
+ break;
133
+ }
134
+ }
135
+ }
136
+ handleSingleFieldClick(event) {
137
+ this.focus();
138
+ if (event.currentTarget instanceof HTMLElement) {
139
+ const clickedIndex = Number(event.currentTarget.dataset.fieldIndex);
140
+ this.currentIndex = clickedIndex < this.value.length ? clickedIndex : this.getLastIndex();
141
+ }
142
+ }
143
+ getLastIndex() {
144
+ return this.value.length > 0 ? Math.min(this.value.length, this.length - 1) : 0;
145
+ }
146
+ getDescriptionIds() {
147
+ const ids = [...this.error ? ["error-text"] : [], "help-text"];
148
+ return ids.join(" ");
149
+ }
150
+ handleCurrentIndexChange() {
151
+ if (this.currentIndex === -1) {
152
+ this.input.setSelectionRange(0, this.input.value.length);
153
+ } else {
154
+ this.input.setSelectionRange(this.currentIndex, this.currentIndex + 1);
155
+ }
156
+ }
157
+ handleDisabledChange() {
158
+ this.formControlController.setValidity(this.disabled);
159
+ }
160
+ async handleValueChange() {
161
+ await this.updateComplete;
162
+ this.formControlController.updateValidity();
163
+ }
164
+ handlePatterChange() {
165
+ this.patternRegexp = new RegExp(this.pattern);
166
+ }
167
+ /** Removes focus from the input. */
168
+ blur() {
169
+ this.input.blur();
170
+ }
171
+ /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
172
+ checkValidity() {
173
+ return this.input.checkValidity();
174
+ }
175
+ /** Sets focus on the input. */
176
+ focus(options) {
177
+ this.input.focus(options);
178
+ }
179
+ /** Gets the associated form, if one exists. */
180
+ getForm() {
181
+ return this.formControlController.getForm();
182
+ }
183
+ /** Checks for validity and shows the browser's validation message if the control is invalid. */
184
+ reportValidity() {
185
+ return this.input.reportValidity();
186
+ }
187
+ /** Selects all the text in the input. */
188
+ select() {
189
+ if (this.input instanceof HTMLInputElement) {
190
+ this.input.select();
191
+ }
192
+ }
193
+ /** Sets a custom validation message. Pass an empty string to restore validity. */
194
+ setCustomValidity(message) {
195
+ this.input.setCustomValidity(message);
196
+ this.formControlController.updateValidity();
197
+ }
198
+ async getUpdateComplete() {
199
+ const result = await super.getUpdateComplete();
200
+ return result;
201
+ }
202
+ renderSingleField(index) {
203
+ const charValue = this.value.split("")[index];
204
+ const isCurrentField = this.currentIndex === index || this.currentIndex === -1 && charValue;
205
+ const inputClasses = classMap({
206
+ "single-field": true,
207
+ "single-field--active": this.hasFocus && isCurrentField
208
+ });
209
+ return html`
210
+ <div
211
+ class=${inputClasses}
212
+ data-field-index=${index}
213
+ aria-hidden="true"
214
+ @click=${this.handleSingleFieldClick}
215
+ >
216
+ ${charValue || this.hasFocus && isCurrentField ? html`<span class="single-field__value">${charValue}</span>` : html`
217
+ <span class="single-field__placeholder"
218
+ >${this.placeholder.charAt(0)}</span
219
+ >
220
+ `}
221
+ ${this.hasFocus && isCurrentField && !charValue ? html` <div class="fake-caret"></div> ` : ""}
222
+ </div>
223
+ `;
224
+ }
225
+ renderInput() {
226
+ const hasLabelSlot = this.hasSlotController.test("label");
227
+ const hasLabel = this.label ? true : !!hasLabelSlot;
228
+ return html`
229
+ <div part="base" class="input__wrapper">
230
+ <div
231
+ class=${classMap({
232
+ "visible-input": true,
233
+ "input--focused": this.hasFocus,
234
+ // Sizes
235
+ "input--small": this.size === "small",
236
+ "input--medium": this.size === "medium",
237
+ "input--large": this.size === "large",
238
+ // States
239
+ "input--error": this.error,
240
+ "input--on-layer": this.variant === "layer",
241
+ "input--on-base": this.variant === "base",
242
+ "input--disabled": this.disabled
243
+ })}
244
+ >
245
+ ${Array.from(Array(this.length)).map(
246
+ (_, index) => this.renderSingleField(index)
247
+ )}
248
+ </div>
249
+ <input
250
+ part="input"
251
+ id="input"
252
+ class="hidden-input"
253
+ type="text"
254
+ name=${ifDefinedAndNotEmpty(this.name)}
255
+ ?disabled=${this.disabled}
256
+ ?required=${this.required}
257
+ minlength=${this.length}
258
+ maxlength=${this.length}
259
+ .value=${live(this.value)}
260
+ autocomplete="one-time-code"
261
+ ?autofocus=${this.autofocus}
262
+ pattern=${ifDefined(this.pattern)}
263
+ enterkeyhint=${ifDefined(this.enterkeyhint)}
264
+ inputmode=${ifDefined(this.inputmode)}
265
+ aria-label=${ifDefinedAndNotEmpty(hasLabel ? void 0 : this.title)}
266
+ aria-describedby=${this.getDescriptionIds()}
267
+ aria-invalid=${ifDefined(this.error ? "true" : void 0)}
268
+ @change=${this.handleChange}
269
+ @input=${this.handleInput}
270
+ @invalid=${this.handleInvalid}
271
+ @keydown=${this.handleKeyDown}
272
+ @focus=${this.handleFocus}
273
+ @blur=${this.handleBlur}
274
+ @select=${this.handleSelect}
275
+ />
276
+ </div>
277
+ `;
278
+ }
279
+ };
280
+ DSAInputOTP.styles = input_otp_styles_default;
281
+ __decorateClass([
282
+ query("input")
283
+ ], DSAInputOTP.prototype, "input", 2);
284
+ __decorateClass([
285
+ state()
286
+ ], DSAInputOTP.prototype, "hasFocus", 2);
287
+ __decorateClass([
288
+ state()
289
+ ], DSAInputOTP.prototype, "currentIndex", 2);
290
+ __decorateClass([
291
+ state()
292
+ ], DSAInputOTP.prototype, "patternRegexp", 2);
293
+ __decorateClass([
294
+ property()
295
+ ], DSAInputOTP.prototype, "value", 2);
296
+ __decorateClass([
297
+ defaultValue()
298
+ ], DSAInputOTP.prototype, "defaultValue", 2);
299
+ __decorateClass([
300
+ property()
301
+ ], DSAInputOTP.prototype, "pattern", 2);
302
+ __decorateClass([
303
+ property({ type: Number })
304
+ ], DSAInputOTP.prototype, "length", 2);
305
+ __decorateClass([
306
+ property()
307
+ ], DSAInputOTP.prototype, "autocapitalize", 2);
308
+ __decorateClass([
309
+ property({ type: Boolean })
310
+ ], DSAInputOTP.prototype, "autofocus", 2);
311
+ __decorateClass([
312
+ property()
313
+ ], DSAInputOTP.prototype, "enterkeyhint", 2);
314
+ __decorateClass([
315
+ property()
316
+ ], DSAInputOTP.prototype, "inputmode", 2);
317
+ __decorateClass([
318
+ watch("currentIndex", { waitUntilFirstUpdate: true })
319
+ ], DSAInputOTP.prototype, "handleCurrentIndexChange", 1);
320
+ __decorateClass([
321
+ watch("disabled", { waitUntilFirstUpdate: true })
322
+ ], DSAInputOTP.prototype, "handleDisabledChange", 1);
323
+ __decorateClass([
324
+ watch("value", { waitUntilFirstUpdate: true })
325
+ ], DSAInputOTP.prototype, "handleValueChange", 1);
326
+ __decorateClass([
327
+ watch("pattern")
328
+ ], DSAInputOTP.prototype, "handlePatterChange", 1);
329
+ DSAInputOTP = __decorateClass([
330
+ customElement("dsa-input-otp")
331
+ ], DSAInputOTP);
332
+
333
+ export {
334
+ DSAInputOTP
335
+ };
@@ -15,6 +15,12 @@ var DSACheckboxButton = class extends FormToggleButton {
15
15
  super(...arguments);
16
16
  this.type = "checkbox";
17
17
  }
18
+ connectedCallback() {
19
+ super.connectedCallback();
20
+ if (!this.hasAttribute("role")) {
21
+ this.setAttribute("role", "listitem");
22
+ }
23
+ }
18
24
  handleClick() {
19
25
  this.checked = !this.checked;
20
26
  }
@@ -24,7 +24,6 @@ var DSARangeSlider = class extends ShoelaceElement {
24
24
  super(...arguments);
25
25
  this.hasFromSliderFocus = false;
26
26
  this.hasToSliderFocus = false;
27
- this.title = "";
28
27
  this.labelFrom = "";
29
28
  this.labelTo = "";
30
29
  this.fromValue = "";
@@ -183,9 +182,6 @@ __decorateClass([
183
182
  __decorateClass([
184
183
  state()
185
184
  ], DSARangeSlider.prototype, "hasToSliderFocus", 2);
186
- __decorateClass([
187
- property()
188
- ], DSARangeSlider.prototype, "title", 2);
189
185
  __decorateClass([
190
186
  property({ attribute: "label-from" })
191
187
  ], DSARangeSlider.prototype, "labelFrom", 2);
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk.7OLEA3GQ.js";
9
9
  import {
10
10
  FormControlLayout
11
- } from "./chunk.T4BUHP4L.js";
11
+ } from "./chunk.I5HR7JYK.js";
12
12
  import {
13
13
  defaultValue
14
14
  } from "./chunk.CMJ2SRTL.js";
@@ -81,7 +81,7 @@ var DSATab = class extends ShoelaceElement {
81
81
  part="close-button"
82
82
  exportparts="base:close-button__base"
83
83
  name="close"
84
- label=${this.localize.term("close")}
84
+ label=${this.closeButtonLabel && this.closeButtonLabel !== "" ? this.closeButtonLabel : this.localize.term("close")}
85
85
  class="tab__close-button"
86
86
  @click=${this.handleCloseClick}
87
87
  library="system"
@@ -110,6 +110,9 @@ __decorateClass([
110
110
  __decorateClass([
111
111
  property({ type: Boolean })
112
112
  ], DSATab.prototype, "closable", 2);
113
+ __decorateClass([
114
+ property({ attribute: "close-button-label" })
115
+ ], DSATab.prototype, "closeButtonLabel", 2);
113
116
  __decorateClass([
114
117
  property({ type: Boolean, reflect: true })
115
118
  ], DSATab.prototype, "disabled", 2);
@@ -68,6 +68,7 @@ var DSAButton = class extends ShoelaceElement {
68
68
  this.href = "";
69
69
  this.rel = "noreferrer noopener";
70
70
  this.ariaLabel = "";
71
+ this.accessibleName = "";
71
72
  this.description = "";
72
73
  }
73
74
  /** Gets the validity state object */
@@ -225,14 +226,15 @@ var DSAButton = class extends ShoelaceElement {
225
226
  target=${ifDefined(isLink ? this.target : void 0)}
226
227
  download=${ifDefined(isLink ? this.download : void 0)}
227
228
  rel=${ifDefined(isLink ? this.rel : void 0)}
228
- role=${ifDefined(isLink ? void 0 : "button")}
229
- aria-label=${ifDefinedAndNotEmpty(this.ariaLabel)}
229
+ aria-label=${ifDefinedAndNotEmpty(
230
+ this.accessibleName || this.ariaLabel
231
+ )}
230
232
  aria-describedby=${ifDefined(
231
233
  this.description !== "" ? "description" : void 0
232
234
  )}
233
- aria-disabled=${this.disabled ? "true" : "false"}
235
+ aria-disabled=${ifDefined(this.disabled ? "true" : void 0)}
234
236
  aria-pressed=${ifDefined(this.toggle ? this.pressed : void 0)}
235
- tabindex=${this.disabled ? "-1" : "0"}
237
+ tabindex=${ifDefined(this.disabled ? "-1" : void 0)}
236
238
  @blur=${this.handleBlur}
237
239
  @focus=${this.handleFocus}
238
240
  @invalid=${this.isButton() ? this.handleInvalid : null}
@@ -349,6 +351,9 @@ __decorateClass([
349
351
  __decorateClass([
350
352
  property({ attribute: "aria-label" })
351
353
  ], DSAButton.prototype, "ariaLabel", 2);
354
+ __decorateClass([
355
+ property({ attribute: "accessible-name" })
356
+ ], DSAButton.prototype, "accessibleName", 2);
352
357
  __decorateClass([
353
358
  property({ attribute: "description" })
354
359
  ], DSAButton.prototype, "description", 2);