@baloise/ds-core 20.0.0-next.4 → 20.0.0-next.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (988) hide show
  1. package/LICENSE +9 -0
  2. package/components/all.d.ts +56 -0
  3. package/components/all.js +84 -0
  4. package/components/ds-accordion.js +1 -1
  5. package/components/ds-alert-container.js +1 -1
  6. package/components/ds-app.js +1 -1
  7. package/components/ds-badge.js +1 -1
  8. package/components/ds-button-group.js +1 -1
  9. package/components/ds-button.js +1 -1
  10. package/components/ds-card-actions.js +1 -1
  11. package/components/ds-card-content.js +1 -1
  12. package/components/ds-card-header.js +1 -1
  13. package/components/ds-card-subtitle.js +1 -1
  14. package/components/ds-card-title.js +1 -1
  15. package/components/ds-card.js +1 -1
  16. package/components/ds-carousel-item.d.ts +11 -0
  17. package/components/ds-carousel-item.js +4 -0
  18. package/components/ds-carousel.d.ts +11 -0
  19. package/components/ds-carousel.js +4 -0
  20. package/components/ds-checkbox-group.js +1 -1
  21. package/components/ds-checkbox.js +1 -1
  22. package/components/ds-close.js +1 -1
  23. package/components/ds-content.js +1 -1
  24. package/components/ds-data-item.d.ts +11 -0
  25. package/components/ds-data-item.js +4 -0
  26. package/components/ds-data-label.d.ts +11 -0
  27. package/components/ds-data-label.js +4 -0
  28. package/components/ds-data-value.d.ts +11 -0
  29. package/components/ds-data-value.js +4 -0
  30. package/components/ds-data.d.ts +11 -0
  31. package/components/ds-data.js +4 -0
  32. package/components/ds-date.d.ts +11 -0
  33. package/components/ds-date.js +4 -0
  34. package/components/ds-divider.js +1 -1
  35. package/components/ds-drawer.d.ts +11 -0
  36. package/components/ds-drawer.js +4 -0
  37. package/components/ds-file-upload.d.ts +11 -0
  38. package/components/ds-file-upload.js +4 -0
  39. package/components/ds-footer.d.ts +11 -0
  40. package/components/ds-footer.js +4 -0
  41. package/components/ds-heading.js +1 -1
  42. package/components/ds-hint-text.d.ts +11 -0
  43. package/components/ds-hint-text.js +4 -0
  44. package/components/ds-hint-title.d.ts +11 -0
  45. package/components/ds-hint-title.js +4 -0
  46. package/components/ds-hint.d.ts +11 -0
  47. package/components/ds-hint.js +4 -0
  48. package/components/ds-icon.js +1 -1
  49. package/components/ds-input.js +1 -1
  50. package/components/ds-item.js +1 -1
  51. package/components/ds-label.js +1 -1
  52. package/components/ds-list.js +1 -1
  53. package/components/ds-logo.js +1 -1
  54. package/components/ds-modal-body.d.ts +11 -0
  55. package/components/ds-modal-body.js +4 -0
  56. package/components/ds-modal-header.d.ts +11 -0
  57. package/components/ds-modal-header.js +4 -0
  58. package/components/ds-modal.d.ts +11 -0
  59. package/components/ds-modal.js +4 -0
  60. package/components/ds-navbar.d.ts +11 -0
  61. package/components/ds-navbar.js +4 -0
  62. package/components/ds-notification.js +1 -1
  63. package/components/ds-number-input.js +1 -1
  64. package/components/ds-pagination.js +1 -1
  65. package/components/ds-popup.d.ts +11 -0
  66. package/components/ds-popup.js +4 -0
  67. package/components/ds-progress-bar.js +1 -1
  68. package/components/ds-radio-group.js +1 -1
  69. package/components/ds-radio.js +1 -1
  70. package/components/ds-segment-item.js +1 -1
  71. package/components/ds-segment.js +1 -1
  72. package/components/ds-select-optgroup.d.ts +11 -0
  73. package/components/ds-select-optgroup.js +4 -0
  74. package/components/ds-select-option.d.ts +11 -0
  75. package/components/ds-select-option.js +4 -0
  76. package/components/ds-select.d.ts +11 -0
  77. package/components/ds-select.js +4 -0
  78. package/components/ds-shape.js +1 -1
  79. package/components/ds-snackbar.js +1 -1
  80. package/components/ds-spinner.js +1 -1
  81. package/components/ds-stack.js +1 -1
  82. package/components/ds-step-panel.d.ts +11 -0
  83. package/components/ds-step-panel.js +4 -0
  84. package/components/ds-step.d.ts +11 -0
  85. package/components/ds-step.js +4 -0
  86. package/components/ds-steps.d.ts +11 -0
  87. package/components/ds-steps.js +4 -0
  88. package/components/ds-tab-panel.d.ts +11 -0
  89. package/components/ds-tab-panel.js +4 -0
  90. package/components/ds-tab.d.ts +11 -0
  91. package/components/ds-tab.js +4 -0
  92. package/components/ds-tabs.d.ts +11 -0
  93. package/components/ds-tabs.js +4 -0
  94. package/components/ds-tag-group.js +1 -1
  95. package/components/ds-tag.js +1 -1
  96. package/components/ds-text.js +1 -1
  97. package/components/ds-textarea.js +1 -1
  98. package/components/ds-toast.js +1 -1
  99. package/components/ds-toggle.js +1 -1
  100. package/components/ds-tooltip.d.ts +11 -0
  101. package/components/ds-tooltip.js +4 -0
  102. package/components/index.js +1 -1
  103. package/components/p-3Mi9vpmB.js +4 -0
  104. package/components/p-B-en4B17.js +4 -0
  105. package/components/p-B1gnrQ9b.js +4 -0
  106. package/components/p-BU0dY8pq.js +4 -0
  107. package/components/p-BfXZJ1Fe.js +4 -0
  108. package/components/p-BgzU1loG.js +4 -0
  109. package/components/p-BhbWmCTu.js +4 -0
  110. package/components/p-BqY0KzJC.js +4 -0
  111. package/components/p-BrIcCcce.js +4 -0
  112. package/components/p-BrJFPhMA.js +4 -0
  113. package/components/p-Btdh3fq7.js +4 -0
  114. package/components/{p-Urcs7-vS.js → p-BwfAXfmz.js} +1 -1
  115. package/components/p-ByX1_7SF.js +4 -0
  116. package/components/p-C1jqbZdf.js +4 -0
  117. package/{dist/design-system/p-15bc012833.entry.js → components/p-CA7G72wZ.js} +1 -1
  118. package/components/p-CQHwI4iD.js +4 -0
  119. package/components/p-CYWn3X22.js +4 -0
  120. package/components/p-CjIxf5zy.js +4 -0
  121. package/components/p-Ctnm_MBD.js +4 -0
  122. package/components/p-CvaNxQtw.js +4 -0
  123. package/components/p-D9ILiUgm.js +4 -0
  124. package/components/{p-BATOumsf.js → p-D9YYP2SG.js} +1 -1
  125. package/components/p-DAYd9ty0.js +4 -0
  126. package/components/p-DIK6Zkg6.js +4 -0
  127. package/{dist/design-system/p-BkESlUMc.js → components/p-DQBzmbR6.js} +1 -1
  128. package/components/{p-z1jJgtep.js → p-DU7t9H9h.js} +1 -1
  129. package/components/p-DYTOWDAA.js +4 -0
  130. package/components/p-DYlqkAWn.js +4 -0
  131. package/components/p-DbM7ALm9.js +14 -0
  132. package/{dist/design-system/p-D2tr7015.js → components/p-DbY6Pfeh.js} +1 -1
  133. package/components/{p-DZqqelPH.js → p-DcSNuA8W.js} +1 -1
  134. package/components/p-DenZRIeA.js +4 -0
  135. package/components/p-DokkRjWC.js +4 -0
  136. package/{dist/design-system/p-BwrOVItb.js → components/p-Dr4MUfss.js} +1 -1
  137. package/components/p-DsvYY32v.js +4 -0
  138. package/components/p-Du7QOHtz.js +5 -0
  139. package/components/{p-E8U6M5ii.js → p-FBQaJyH0.js} +1 -1
  140. package/components/{p-Dr4dquer.js → p-J0mxIuTt.js} +1 -1
  141. package/{dist/design-system/p-DJxr2Dcd.js → components/p-UCeQ1JCs.js} +1 -1
  142. package/components/p-Uy_dVz21.js +4 -0
  143. package/components/p-WO0X5Vmy.js +4 -0
  144. package/components/p-bGV2P6rT.js +4 -0
  145. package/components/{p-Bt20CEww.js → p-n3_2KEz0.js} +1 -1
  146. package/dist/cjs/array-CioNm_V1.js +1985 -0
  147. package/dist/cjs/{breakpoints.decorator-qaoHOU6Q.js → breakpoints.decorator-C-Qm21UK.js} +1 -1
  148. package/dist/cjs/{breakpoints.subject-DhAN_ZAn.js → breakpoints.subject-XNcGwhzh.js} +3 -3
  149. package/dist/cjs/{button.interfaces-BueDWsuH.js → button.interfaces-CqlUGR-N.js} +1 -1
  150. package/dist/cjs/carousel.interfaces-BFQpUNrw.js +12 -0
  151. package/dist/cjs/{config.decorator-Qmrq4ZYj.js → config.decorator-ThGLtT-3.js} +1 -1
  152. package/dist/cjs/{config.utils-Cv4cx_Xa.js → config.utils-MhZvq4Qm.js} +1 -1
  153. package/dist/cjs/create-validator-decorator-BIgFqrMJ.js +212 -0
  154. package/dist/cjs/design-system.cjs.js +3 -3
  155. package/dist/cjs/{device-CptgCtVc.js → device-BnjBOLnP.js} +1 -1
  156. package/dist/cjs/ds-accordion.cjs.entry.js +30 -34
  157. package/dist/cjs/ds-alert-container.cjs.entry.js +12 -15
  158. package/dist/cjs/ds-app.cjs.entry.js +16 -6
  159. package/dist/cjs/ds-badge.cjs.entry.js +32 -25
  160. package/dist/cjs/ds-button-group.cjs.entry.js +14 -17
  161. package/dist/cjs/ds-button_2.cjs.entry.js +58 -73
  162. package/dist/cjs/ds-card-actions.cjs.entry.js +6 -8
  163. package/dist/cjs/ds-card-content.cjs.entry.js +2 -2
  164. package/dist/cjs/ds-card-header.cjs.entry.js +8 -5
  165. package/dist/cjs/ds-card-subtitle.cjs.entry.js +13 -13
  166. package/dist/cjs/ds-card-title.cjs.entry.js +11 -7
  167. package/dist/cjs/ds-card.cjs.entry.js +30 -42
  168. package/dist/cjs/ds-carousel-item.cjs.entry.js +128 -0
  169. package/dist/cjs/ds-carousel.cjs.entry.js +473 -0
  170. package/dist/cjs/ds-checkbox-group.cjs.entry.js +41 -2012
  171. package/dist/cjs/ds-checkbox.cjs.entry.js +23 -19
  172. package/dist/cjs/ds-content_2.cjs.entry.js +330 -0
  173. package/dist/cjs/ds-data-item.cjs.entry.js +146 -0
  174. package/dist/cjs/ds-data-label.cjs.entry.js +41 -0
  175. package/dist/cjs/ds-data-value.cjs.entry.js +31 -0
  176. package/dist/cjs/ds-data.cjs.entry.js +43 -0
  177. package/dist/cjs/ds-date.cjs.entry.js +5334 -0
  178. package/dist/cjs/{ds-logo.cjs.entry.js → ds-divider_2.cjs.entry.js} +130 -25
  179. package/dist/cjs/ds-drawer_2.cjs.entry.js +602 -0
  180. package/dist/cjs/ds-file-upload.cjs.entry.js +515 -0
  181. package/dist/cjs/ds-footer.cjs.entry.js +159 -0
  182. package/dist/cjs/ds-heading.cjs.entry.js +21 -19
  183. package/dist/cjs/ds-hint-text.cjs.entry.js +28 -0
  184. package/dist/cjs/ds-hint-title.cjs.entry.js +31 -0
  185. package/dist/cjs/ds-hint.cjs.entry.js +243 -0
  186. package/dist/cjs/ds-icon_2.cjs.entry.js +78 -70
  187. package/dist/cjs/ds-input.cjs.entry.js +45 -43
  188. package/dist/cjs/ds-item.cjs.entry.js +29 -34
  189. package/dist/cjs/ds-label.cjs.entry.js +22 -30
  190. package/dist/cjs/ds-list.cjs.entry.js +6 -12
  191. package/dist/cjs/ds-modal-body.cjs.entry.js +34 -0
  192. package/dist/cjs/ds-modal-header.cjs.entry.js +31 -0
  193. package/dist/cjs/ds-modal.cjs.entry.js +201 -0
  194. package/dist/cjs/ds-navbar.cjs.entry.js +359 -0
  195. package/dist/cjs/ds-notification.cjs.entry.js +19 -27
  196. package/dist/cjs/ds-number-input.cjs.entry.js +128 -45
  197. package/dist/cjs/ds-pagination.cjs.entry.js +41 -37
  198. package/dist/cjs/ds-progress-bar.cjs.entry.js +25 -29
  199. package/dist/cjs/ds-radio-group.cjs.entry.js +30 -29
  200. package/dist/cjs/ds-radio.cjs.entry.js +26 -33
  201. package/dist/cjs/ds-segment-item.cjs.entry.js +9 -9
  202. package/dist/cjs/ds-segment.cjs.entry.js +29 -117
  203. package/dist/cjs/ds-select-optgroup.cjs.entry.js +49 -0
  204. package/dist/cjs/ds-select-option.cjs.entry.js +57 -0
  205. package/dist/cjs/ds-select.cjs.entry.js +2772 -0
  206. package/dist/cjs/ds-shape.cjs.entry.js +10 -16
  207. package/dist/cjs/ds-snackbar.cjs.entry.js +40 -57
  208. package/dist/cjs/ds-step-panel.cjs.entry.js +55 -0
  209. package/dist/cjs/ds-step.cjs.entry.js +170 -0
  210. package/dist/cjs/ds-steps.cjs.entry.js +227 -0
  211. package/dist/cjs/ds-tab-panel.cjs.entry.js +55 -0
  212. package/dist/cjs/ds-tab.cjs.entry.js +120 -0
  213. package/dist/cjs/ds-tabs.cjs.entry.js +364 -0
  214. package/dist/cjs/ds-tag-group.cjs.entry.js +3 -3
  215. package/dist/cjs/ds-tag.cjs.entry.js +19 -26
  216. package/dist/cjs/ds-text.cjs.entry.js +28 -32
  217. package/dist/cjs/ds-textarea.cjs.entry.js +32 -31
  218. package/dist/cjs/ds-toast.cjs.entry.js +40 -54
  219. package/dist/cjs/ds-toggle.cjs.entry.js +22 -21
  220. package/dist/cjs/ds-tooltip.cjs.entry.js +182 -0
  221. package/dist/cjs/{field.util-RjuvTLNZ.js → field.util-L-DkeMVk.js} +1 -1
  222. package/dist/cjs/floating-ui.dom-Cu3dZdFD.js +1628 -0
  223. package/dist/cjs/focus-D3VVgpM7.js +1958 -0
  224. package/dist/cjs/footer.i18n-CpGxizgm.js +162 -0
  225. package/dist/cjs/{form-control-Bno2tBGf.js → form-control-CtMcJUuC.js} +2 -2
  226. package/dist/cjs/has-value-DK0oRqXI.js +12 -0
  227. package/dist/cjs/{index-CdD-TT_n.js → index-sC3JnTlJ.js} +497 -175
  228. package/dist/cjs/index.cjs.js +26 -8283
  229. package/dist/cjs/keyboard-C7y0jXYb.js +23 -0
  230. package/dist/cjs/{listener-DgVWqfa1.js → listener-BwB_xent.js} +1 -1
  231. package/dist/cjs/loader.cjs.js +2 -2
  232. package/dist/cjs/luxon-q23LOWrr.js +8137 -0
  233. package/dist/cjs/one-of-BZGRIMtQ.js +30 -0
  234. package/dist/cjs/popup.interfaces-B-mwd9rh.js +23 -0
  235. package/dist/cjs/required-COz3Unzu.js +38 -0
  236. package/dist/cjs/resize.decorator-DWM_fQgv.js +98 -0
  237. package/dist/cjs/scroll-CUuEh4xd.js +89 -0
  238. package/dist/cjs/svg-D9RbiR8R.js +2443 -0
  239. package/dist/cjs/{tslib.es6-BTi-SLnA.js → tslib.es6-CxyosZMg.js} +1 -1
  240. package/dist/cjs/type-hmc4CJcO.js +33 -0
  241. package/dist/collection/collection-manifest.json +30 -2
  242. package/dist/collection/components/accordion/accordion.host.css +1 -1
  243. package/dist/collection/components/accordion/accordion.js +22 -29
  244. package/dist/collection/components/alert/alert-container.js +8 -14
  245. package/dist/collection/components/alert/alert.controller.js +1 -1
  246. package/dist/collection/components/alert/snackbar/snackbar.js +30 -53
  247. package/dist/collection/components/alert/toast/toast.js +32 -53
  248. package/dist/collection/components/app/app.js +11 -3
  249. package/dist/collection/components/badge/badge.interfaces.js +1 -1
  250. package/dist/collection/components/badge/badge.js +28 -25
  251. package/dist/collection/components/button/button-group/button-group.js +8 -14
  252. package/dist/collection/components/button/button.host.css +1 -1
  253. package/dist/collection/components/button/button.interfaces.js +1 -1
  254. package/dist/collection/components/button/button.js +44 -54
  255. package/dist/collection/components/card/card-actions/card-actions.js +3 -6
  256. package/dist/collection/components/card/card-header/card-header.js +4 -3
  257. package/dist/collection/components/card/card-subtitle/card-subtitle.js +8 -11
  258. package/dist/collection/components/card/card-title/card-title.js +6 -5
  259. package/dist/collection/components/card/card.host.css +1 -1
  260. package/dist/collection/components/card/card.js +25 -38
  261. package/dist/collection/components/carousel/carousel/carousel.host.css +1 -0
  262. package/dist/collection/components/carousel/carousel/carousel.i18n.js +65 -0
  263. package/dist/collection/components/carousel/carousel/carousel.js +631 -0
  264. package/dist/collection/components/carousel/carousel-item/carousel-item.host.css +1 -0
  265. package/dist/collection/components/carousel/carousel-item/carousel-item.js +313 -0
  266. package/dist/collection/components/carousel/carousel.interfaces.js +6 -0
  267. package/dist/collection/components/carousel/test/carousel.a11y.play.js +34 -0
  268. package/dist/collection/components/carousel/test/carousel.component.play.js +57 -0
  269. package/dist/collection/components/carousel/test/carousel.visual.play.js +24 -0
  270. package/dist/collection/components/checkbox/checkbox-group/checkbox-group.host.css +1 -1
  271. package/dist/collection/components/checkbox/checkbox-group/checkbox-group.js +25 -26
  272. package/dist/collection/components/checkbox/checkbox.js +18 -18
  273. package/dist/collection/components/close/close.js +10 -21
  274. package/dist/collection/components/content/content.js +38 -52
  275. package/dist/collection/components/data/data-item.host.css +1 -0
  276. package/dist/collection/components/data/data-item.i18n.js +35 -0
  277. package/dist/collection/components/data/data-item.js +244 -0
  278. package/dist/collection/components/data/data-label.host.css +1 -0
  279. package/dist/collection/components/data/data-label.js +72 -0
  280. package/dist/collection/components/data/data-value.host.css +1 -0
  281. package/dist/collection/components/data/data-value.js +38 -0
  282. package/dist/collection/components/data/data.host.css +1 -0
  283. package/dist/collection/components/data/data.js +75 -0
  284. package/dist/collection/components/data/test/data.a11y.play.js +31 -0
  285. package/dist/collection/components/data/test/data.component.play.js +104 -0
  286. package/dist/collection/components/data/test/data.visual.play.js +25 -0
  287. package/dist/collection/components/date/date.host.css +1 -0
  288. package/dist/collection/components/date/date.i18n.js +105 -0
  289. package/dist/collection/components/date/date.interfaces.js +4 -0
  290. package/dist/collection/components/date/date.js +1241 -0
  291. package/dist/collection/components/date/date.mask.js +189 -0
  292. package/dist/collection/components/date/date.picker.js +536 -0
  293. package/dist/collection/components/date/test/date.a11y.play.js +27 -0
  294. package/dist/collection/components/date/test/date.component.play.js +69 -0
  295. package/dist/collection/components/date/test/date.visual.play.js +43 -0
  296. package/dist/collection/components/divider/divider.host.css +1 -1
  297. package/dist/collection/components/divider/divider.js +11 -24
  298. package/dist/collection/components/drawer/drawer.host.css +1 -0
  299. package/dist/collection/{utils/property-checkers/constants.js → components/drawer/drawer.interfaces.js} +1 -1
  300. package/dist/collection/components/drawer/drawer.js +492 -0
  301. package/dist/collection/components/drawer/test/drawer.a11y.play.js +39 -0
  302. package/dist/collection/components/drawer/test/drawer.component.play.js +131 -0
  303. package/dist/collection/components/drawer/test/drawer.visual.play.js +31 -0
  304. package/dist/collection/components/file-upload/file-upload.host.css +1 -0
  305. package/dist/collection/components/file-upload/file-upload.i18n.js +55 -0
  306. package/dist/collection/components/file-upload/file-upload.interfaces.js +10 -0
  307. package/dist/collection/components/file-upload/file-upload.js +1030 -0
  308. package/dist/collection/components/file-upload/test/file-upload.a11y.play.js +52 -0
  309. package/dist/collection/components/file-upload/test/file-upload.component.play.js +124 -0
  310. package/dist/collection/components/file-upload/test/file-upload.visual.play.js +18 -0
  311. package/dist/collection/components/file-upload/utils/file-list.util.js +13 -0
  312. package/dist/collection/components/file-upload/utils/file-size.util.js +10 -0
  313. package/dist/collection/components/file-upload/utils/file-validation.util.js +48 -0
  314. package/dist/collection/components/footer/footer.host.css +1 -0
  315. package/dist/collection/components/footer/footer.i18n.js +155 -0
  316. package/dist/collection/components/footer/footer.interfaces.js +4 -0
  317. package/dist/collection/components/footer/footer.js +350 -0
  318. package/dist/collection/components/footer/test/footer.a11y.play.js +17 -0
  319. package/dist/collection/components/footer/test/footer.component.play.js +74 -0
  320. package/dist/collection/components/footer/test/footer.visual.play.js +16 -0
  321. package/dist/collection/components/form/test/form.visual.play.js +13 -1
  322. package/dist/collection/components/heading/heading.js +16 -17
  323. package/dist/collection/components/hint/hint-text/hint-text.js +28 -0
  324. package/dist/collection/components/hint/hint-title/hint-title.js +31 -0
  325. package/dist/collection/components/hint/hint.host.css +1 -0
  326. package/dist/collection/components/hint/hint.i18n.js +35 -0
  327. package/dist/collection/components/hint/hint.interfaces.js +1 -0
  328. package/dist/collection/components/hint/hint.js +410 -0
  329. package/dist/collection/components/hint/test/hint.a11y.play.js +41 -0
  330. package/dist/collection/components/hint/test/hint.component.play.js +110 -0
  331. package/dist/collection/components/hint/test/hint.visual.play.js +39 -0
  332. package/dist/collection/components/icon/icon.host.css +1 -1
  333. package/dist/collection/components/icon/icon.interfaces.js +1 -0
  334. package/dist/collection/components/icon/icon.js +73 -42
  335. package/dist/collection/components/icon/test/icon.component.play.js +23 -1
  336. package/dist/collection/components/input/clear-button.i18n.js +35 -0
  337. package/dist/collection/components/input/clear-button.util.js +11 -0
  338. package/dist/collection/components/input/input.host.css +1 -1
  339. package/dist/collection/components/input/input.js +36 -37
  340. package/dist/collection/components/input/test/input.component.play.js +1 -1
  341. package/dist/collection/components/input/trigger-button.i18n.js +45 -0
  342. package/dist/collection/components/label/label.js +16 -28
  343. package/dist/collection/components/list/item/item.host.css +1 -1
  344. package/dist/collection/components/list/item/item.interfaces.js +1 -1
  345. package/dist/collection/components/list/item/item.js +27 -34
  346. package/dist/collection/components/list/list.js +3 -10
  347. package/dist/collection/components/list/test/list.visual.play.js +30 -0
  348. package/dist/collection/components/logo/logo.js +11 -18
  349. package/dist/collection/components/modal/modal-body/modal-body.host.css +1 -0
  350. package/dist/collection/components/modal/modal-body/modal-body.js +41 -0
  351. package/dist/collection/components/modal/modal-header/modal-header.js +32 -0
  352. package/dist/collection/components/modal/modal.controller.js +31 -0
  353. package/dist/collection/components/modal/modal.host.css +1 -0
  354. package/dist/collection/components/modal/modal.interfaces.js +1 -0
  355. package/dist/collection/components/modal/modal.js +461 -0
  356. package/dist/collection/components/modal/test/modal.a11y.play.js +59 -0
  357. package/dist/collection/components/modal/test/modal.component.play.js +196 -0
  358. package/dist/collection/components/modal/test/modal.visual.play.js +36 -0
  359. package/dist/collection/components/navbar/navbar.host.css +1 -0
  360. package/dist/collection/components/navbar/navbar.i18n.js +65 -0
  361. package/dist/collection/components/navbar/navbar.interfaces.js +6 -0
  362. package/dist/collection/components/navbar/navbar.js +544 -0
  363. package/dist/collection/components/navbar/test/navbar.a11y.play.js +26 -0
  364. package/dist/collection/components/navbar/test/navbar.component.play.js +76 -0
  365. package/dist/collection/components/navbar/test/navbar.visual.play.js +14 -0
  366. package/dist/collection/components/notification/notification.js +14 -26
  367. package/dist/collection/components/number-input/number-input.host.css +1 -1
  368. package/dist/collection/components/number-input/number-input.js +23 -24
  369. package/dist/collection/components/pagination/pagination.host.css +1 -1
  370. package/dist/collection/components/pagination/pagination.js +29 -28
  371. package/dist/collection/components/popup/popup.host.css +1 -0
  372. package/dist/collection/components/popup/popup.interfaces.js +18 -0
  373. package/dist/collection/components/popup/popup.js +869 -0
  374. package/dist/collection/components/popup/test/popup.a11y.play.js +50 -0
  375. package/dist/collection/components/popup/test/popup.component.play.js +168 -0
  376. package/dist/collection/components/popup/test/popup.visual.play.js +33 -0
  377. package/dist/collection/components/progress-bar/progress-bar.host.css +1 -1
  378. package/dist/collection/components/progress-bar/progress-bar.js +13 -20
  379. package/dist/collection/components/radio/radio-group/radio-group.host.css +1 -1
  380. package/dist/collection/components/radio/radio-group/radio-group.js +22 -23
  381. package/dist/collection/components/radio/radio.js +19 -20
  382. package/dist/collection/components/segment/segment/segment.host.css +1 -1
  383. package/dist/collection/components/segment/segment/segment.js +19 -20
  384. package/dist/collection/components/segment/segment-item.js +6 -7
  385. package/dist/collection/components/select/select-optgroup.host.css +1 -0
  386. package/dist/collection/components/select/select-optgroup.js +82 -0
  387. package/dist/collection/components/select/select-option.host.css +1 -0
  388. package/dist/collection/components/select/select-option.js +112 -0
  389. package/dist/collection/components/select/select.host.css +1 -0
  390. package/dist/collection/components/select/select.i18n.js +45 -0
  391. package/dist/collection/components/select/select.interfaces.js +4 -0
  392. package/dist/collection/components/select/select.js +1024 -0
  393. package/dist/collection/components/select/select.picker.js +276 -0
  394. package/dist/collection/components/select/test/select.a11y.play.js +81 -0
  395. package/dist/collection/components/select/test/select.component.play.js +184 -0
  396. package/dist/collection/components/select/test/select.visual.play.js +70 -0
  397. package/dist/collection/components/shape/shape.js +7 -14
  398. package/dist/collection/components/spinner/spinner.js +18 -26
  399. package/dist/collection/components/stack/stack.host.css +1 -1
  400. package/dist/collection/components/stack/stack.js +41 -153
  401. package/dist/collection/components/steps/step/step.host.css +1 -0
  402. package/dist/collection/components/steps/step/step.js +431 -0
  403. package/dist/collection/components/steps/step-panel/step-panel.host.css +1 -0
  404. package/dist/collection/components/steps/step-panel/step-panel.js +104 -0
  405. package/dist/collection/components/steps/steps/steps.host.css +1 -0
  406. package/dist/collection/components/steps/steps/steps.js +356 -0
  407. package/dist/collection/components/steps/steps.interfaces.js +4 -0
  408. package/dist/collection/components/steps/test/steps.a11y.play.js +73 -0
  409. package/dist/collection/components/steps/test/steps.component.play.js +182 -0
  410. package/dist/collection/components/steps/test/steps.visual.play.js +18 -0
  411. package/dist/collection/components/tabs/tab/tab.host.css +1 -0
  412. package/dist/collection/components/tabs/tab/tab.js +278 -0
  413. package/dist/collection/components/tabs/tab-panel/tab-panel.host.css +1 -0
  414. package/dist/collection/components/tabs/tab-panel/tab-panel.js +104 -0
  415. package/dist/collection/components/tabs/tabs/tabs.host.css +1 -0
  416. package/dist/collection/components/tabs/tabs/tabs.i18n.js +45 -0
  417. package/dist/collection/components/tabs/tabs/tabs.js +552 -0
  418. package/dist/collection/components/tabs/tabs.interfaces.js +12 -0
  419. package/dist/collection/components/tabs/test/tabs.a11y.play.js +60 -0
  420. package/dist/collection/components/tabs/test/tabs.component.play.js +129 -0
  421. package/dist/collection/components/tabs/test/tabs.visual.play.js +31 -0
  422. package/dist/collection/components/tag/tag-group/tag-group.js +1 -1
  423. package/dist/collection/components/tag/tag.js +15 -26
  424. package/dist/collection/components/text/text.js +23 -30
  425. package/dist/collection/components/textarea/textarea.host.css +1 -1
  426. package/dist/collection/components/textarea/textarea.js +24 -25
  427. package/dist/collection/components/time-input/test/time-input.visual.play.js +18 -0
  428. package/dist/collection/components/toggle/toggle.js +19 -20
  429. package/dist/collection/components/tooltip/test/tooltip.a11y.play.js +32 -0
  430. package/dist/collection/components/tooltip/test/tooltip.component.play.js +51 -0
  431. package/dist/collection/components/tooltip/test/tooltip.visual.play.js +16 -0
  432. package/dist/collection/components/tooltip/tooltip.host.css +1 -0
  433. package/dist/collection/components/tooltip/tooltip.interfaces.js +4 -0
  434. package/dist/collection/components/tooltip/tooltip.js +407 -0
  435. package/dist/collection/foundation/colors.visual.play.js +18 -0
  436. package/dist/collection/global/config/config.const.js +11 -0
  437. package/dist/collection/global/config/config.default.js +92 -42
  438. package/dist/collection/global/config/config.js +1 -1
  439. package/dist/collection/global/config/config.meta.js +27 -0
  440. package/dist/collection/global/config/index.js +1 -0
  441. package/dist/collection/global/config/initialize.js +2 -1
  442. package/dist/collection/global/constants/tags.constant.js +29 -1
  443. package/dist/collection/global/constants/version.constant.js +1 -1
  444. package/dist/collection/global/index.js +0 -1
  445. package/dist/collection/global/initialize.js +2 -0
  446. package/dist/collection/index.js +5 -20
  447. package/dist/collection/utils/attributes.js +0 -15
  448. package/dist/collection/utils/focus.js +72 -0
  449. package/dist/collection/utils/form-control.js +1 -1
  450. package/dist/collection/utils/has-value.js +7 -0
  451. package/dist/collection/utils/helpers.js +14 -74
  452. package/dist/collection/utils/index.js +7 -5
  453. package/dist/collection/utils/{property-checkers/is-value-empty.js → is-value-empty.js} +1 -1
  454. package/dist/collection/utils/number.js +6 -25
  455. package/dist/collection/utils/property-decorators/array-of.js +25 -0
  456. package/dist/collection/utils/property-decorators/bound.js +79 -0
  457. package/dist/collection/utils/property-decorators/create-validator-decorator.js +212 -0
  458. package/dist/collection/utils/property-decorators/date.js +24 -0
  459. package/dist/collection/utils/property-decorators/index.js +12 -0
  460. package/dist/collection/utils/property-decorators/iso-date.js +24 -0
  461. package/dist/collection/utils/property-decorators/one-of.js +25 -0
  462. package/dist/collection/utils/property-decorators/pattern.js +25 -0
  463. package/dist/collection/utils/property-decorators/required.js +44 -0
  464. package/dist/collection/utils/property-decorators/type.js +28 -0
  465. package/dist/collection/utils/property-decorators/url.js +32 -0
  466. package/dist/collection/utils/property-types.js +1 -0
  467. package/dist/collection/utils/svg.js +19 -0
  468. package/dist/design-system/design-system.esm.js +1 -1
  469. package/dist/design-system/index.esm.js +1 -1
  470. package/dist/design-system/p-01430d5c28.entry.js +4 -0
  471. package/dist/design-system/p-014d464627.entry.js +4 -0
  472. package/dist/design-system/p-0663d7c0f1.entry.js +4 -0
  473. package/dist/design-system/p-0bd2ce2da3.entry.js +4 -0
  474. package/dist/design-system/p-0ff0be5b83.entry.js +4 -0
  475. package/dist/design-system/p-10c136d00d.entry.js +4 -0
  476. package/dist/design-system/p-11f34d0c7d.entry.js +4 -0
  477. package/dist/design-system/p-13d1ce3158.entry.js +4 -0
  478. package/dist/design-system/p-163d606781.entry.js +4 -0
  479. package/dist/design-system/p-1VXOIrN2.js +4 -0
  480. package/dist/design-system/p-202ecb8f01.entry.js +4 -0
  481. package/dist/design-system/p-27d181c5ac.entry.js +4 -0
  482. package/dist/design-system/p-2a35e0b9b0.entry.js +4 -0
  483. package/dist/design-system/p-2f51e1d39b.entry.js +4 -0
  484. package/dist/design-system/p-3134821ac6.entry.js +4 -0
  485. package/dist/design-system/p-3292ae6a05.entry.js +4 -0
  486. package/dist/design-system/p-372bf379f9.entry.js +4 -0
  487. package/dist/design-system/p-3895178b39.entry.js +4 -0
  488. package/dist/design-system/p-3c6b7a2967.entry.js +4 -0
  489. package/dist/design-system/p-3ef4bd1c59.entry.js +4 -0
  490. package/dist/design-system/p-493b18cc46.entry.js +4 -0
  491. package/dist/design-system/p-4a99464dae.entry.js +4 -0
  492. package/dist/design-system/p-4e6638d14e.entry.js +4 -0
  493. package/dist/design-system/p-53dda5d400.entry.js +4 -0
  494. package/dist/design-system/p-5d17209d91.entry.js +4 -0
  495. package/dist/design-system/p-5e51fa8df4.entry.js +4 -0
  496. package/dist/design-system/p-60d29d8b8e.entry.js +4 -0
  497. package/dist/design-system/p-62cb503015.entry.js +4 -0
  498. package/dist/design-system/p-650289138a.entry.js +4 -0
  499. package/dist/design-system/p-65c221261c.entry.js +4 -0
  500. package/dist/design-system/p-68c9f4f630.entry.js +4 -0
  501. package/dist/design-system/p-68ebed7eee.entry.js +4 -0
  502. package/dist/design-system/p-6b6531379b.entry.js +4 -0
  503. package/dist/design-system/p-6d168ba9ad.entry.js +4 -0
  504. package/dist/design-system/p-6ef31a3c07.entry.js +4 -0
  505. package/dist/design-system/p-774b89ed0b.entry.js +4 -0
  506. package/dist/design-system/p-787bd92bcc.entry.js +4 -0
  507. package/{components/p-E1SnOz0L.js → dist/design-system/p-78NZc8PM.js} +1 -1
  508. package/dist/design-system/p-7c353652a9.entry.js +4 -0
  509. package/dist/design-system/p-7c8bf0f33e.entry.js +4 -0
  510. package/dist/design-system/p-7e702193fc.entry.js +4 -0
  511. package/dist/design-system/p-8353961d39.entry.js +4 -0
  512. package/dist/design-system/{p-1d312498a6.entry.js → p-8406f6faf1.entry.js} +1 -1
  513. package/dist/design-system/p-9f2dd0b55b.entry.js +4 -0
  514. package/dist/design-system/p-B-en4B17.js +4 -0
  515. package/dist/design-system/p-B1e0kNRJ.js +14 -0
  516. package/dist/design-system/p-B8KVoKrH.js +5 -0
  517. package/dist/design-system/p-BAY6Z8bT.js +4 -0
  518. package/dist/design-system/p-BLGVE-7Z.js +4 -0
  519. package/dist/design-system/{p-C7EnKCpl.js → p-BMM6Nxeh.js} +1 -1
  520. package/{components/p-Diz11uvt.js → dist/design-system/p-BPGfTrrM.js} +1 -1
  521. package/dist/design-system/p-BhdSNuGP.js +4 -0
  522. package/dist/design-system/p-BkTv_bQR.js +4 -0
  523. package/dist/design-system/p-BqY0KzJC.js +4 -0
  524. package/dist/design-system/p-BrJFPhMA.js +4 -0
  525. package/dist/design-system/p-BvEM6oCl.js +4 -0
  526. package/dist/design-system/p-C1jqbZdf.js +4 -0
  527. package/dist/design-system/p-C6MVahkC.js +5 -0
  528. package/dist/design-system/{p-DCf2fJmI.js → p-C7i6xLTJ.js} +1 -1
  529. package/dist/design-system/p-CvTcEsXg.js +4 -0
  530. package/dist/design-system/p-CwCAiaMq.js +4 -0
  531. package/{components/p-5Sp1eJOt.js → dist/design-system/p-DTxLRTYr.js} +1 -1
  532. package/dist/design-system/{p-Dnjznncd.js → p-DgVaaZT_.js} +1 -1
  533. package/dist/design-system/{p-CAcwu8uP.js → p-Dm2lqE3-.js} +1 -1
  534. package/dist/design-system/p-HwbqEzpk.js +4 -0
  535. package/dist/design-system/p-LCY5n5tq.js +4 -0
  536. package/dist/design-system/p-Uy_dVz21.js +4 -0
  537. package/dist/design-system/p-a465c1acce.entry.js +4 -0
  538. package/dist/design-system/p-a62b7985a0.entry.js +4 -0
  539. package/dist/design-system/p-a8de98dd7b.entry.js +4 -0
  540. package/dist/design-system/p-ad2b17b0a0.entry.js +4 -0
  541. package/dist/design-system/p-afd8bbe699.entry.js +4 -0
  542. package/dist/design-system/{p-7e6ed497e7.entry.js → p-b68bc14064.entry.js} +1 -1
  543. package/dist/design-system/p-b955a93959.entry.js +4 -0
  544. package/dist/design-system/p-c37f266740.entry.js +4 -0
  545. package/dist/design-system/p-caad93b943.entry.js +4 -0
  546. package/dist/design-system/p-cca79bfeb1.entry.js +4 -0
  547. package/dist/design-system/p-d5f8d8f5e1.entry.js +4 -0
  548. package/dist/design-system/p-dcb749efc7.entry.js +4 -0
  549. package/dist/design-system/p-dd38f8f206.entry.js +4 -0
  550. package/dist/design-system/p-ddf2a7dfee.entry.js +4 -0
  551. package/dist/design-system/p-df5899b930.entry.js +4 -0
  552. package/dist/design-system/p-e7472337ed.entry.js +4 -0
  553. package/dist/design-system/p-e85c92ca1a.entry.js +4 -0
  554. package/dist/design-system/p-f0119fe693.entry.js +4 -0
  555. package/dist/design-system/p-f4958b9e97.entry.js +4 -0
  556. package/dist/design-system/p-f62643c33d.entry.js +4 -0
  557. package/dist/design-system/p-fa9568abce.entry.js +4 -0
  558. package/dist/design-system/p-fcd98f22b7.entry.js +4 -0
  559. package/dist/design-system/p-feeef4a8cb.entry.js +4 -0
  560. package/dist/design-system/{p-BLPSziW-.js → p-hLAmwHiq.js} +1 -1
  561. package/dist/design-system/p-ij4OEkzJ.js +4 -0
  562. package/dist/design-system/p-tl_BegdE.js +4 -0
  563. package/dist/esm/array-dJH4dfMr.js +1983 -0
  564. package/dist/esm/{breakpoints.decorator-L2xeP46f.js → breakpoints.decorator-DZ0xN4Np.js} +1 -1
  565. package/dist/esm/{breakpoints.subject-BhbzG-rl.js → breakpoints.subject-BNnXcKMw.js} +3 -3
  566. package/dist/esm/{button.interfaces-BkESlUMc.js → button.interfaces-BPGfTrrM.js} +1 -1
  567. package/dist/esm/carousel.interfaces-B-en4B17.js +8 -0
  568. package/dist/esm/{config.decorator-BQNIja4k.js → config.decorator-ZQ0_Zx5y.js} +1 -1
  569. package/dist/esm/{config.utils-COlKFRlV.js → config.utils-D9o7rffC.js} +1 -1
  570. package/dist/esm/create-validator-decorator-DovxquEu.js +208 -0
  571. package/dist/esm/design-system.js +4 -4
  572. package/dist/esm/{device-Dhwt3m7W.js → device-CRuIJzXR.js} +1 -1
  573. package/dist/esm/ds-accordion.entry.js +30 -34
  574. package/dist/esm/ds-alert-container.entry.js +12 -15
  575. package/dist/esm/ds-app.entry.js +16 -6
  576. package/dist/esm/ds-badge.entry.js +32 -25
  577. package/dist/esm/ds-button-group.entry.js +14 -17
  578. package/dist/esm/ds-button_2.entry.js +58 -73
  579. package/dist/esm/ds-card-actions.entry.js +6 -8
  580. package/dist/esm/ds-card-content.entry.js +2 -2
  581. package/dist/esm/ds-card-header.entry.js +8 -5
  582. package/dist/esm/ds-card-subtitle.entry.js +13 -13
  583. package/dist/esm/ds-card-title.entry.js +11 -7
  584. package/dist/esm/ds-card.entry.js +30 -42
  585. package/dist/esm/ds-carousel-item.entry.js +126 -0
  586. package/dist/esm/ds-carousel.entry.js +471 -0
  587. package/dist/esm/ds-checkbox-group.entry.js +40 -2011
  588. package/dist/esm/ds-checkbox.entry.js +23 -19
  589. package/dist/esm/ds-content_2.entry.js +327 -0
  590. package/dist/esm/ds-data-item.entry.js +144 -0
  591. package/dist/esm/ds-data-label.entry.js +39 -0
  592. package/dist/esm/ds-data-value.entry.js +29 -0
  593. package/dist/esm/ds-data.entry.js +41 -0
  594. package/dist/esm/ds-date.entry.js +5332 -0
  595. package/dist/esm/{ds-logo.entry.js → ds-divider_2.entry.js} +130 -26
  596. package/dist/esm/ds-drawer_2.entry.js +599 -0
  597. package/dist/esm/ds-file-upload.entry.js +513 -0
  598. package/dist/esm/ds-footer.entry.js +157 -0
  599. package/dist/esm/ds-heading.entry.js +21 -19
  600. package/dist/esm/ds-hint-text.entry.js +26 -0
  601. package/dist/esm/ds-hint-title.entry.js +29 -0
  602. package/dist/esm/ds-hint.entry.js +241 -0
  603. package/dist/esm/ds-icon_2.entry.js +78 -70
  604. package/dist/esm/ds-input.entry.js +46 -44
  605. package/dist/esm/ds-item.entry.js +29 -34
  606. package/dist/esm/ds-label.entry.js +22 -30
  607. package/dist/esm/ds-list.entry.js +6 -12
  608. package/dist/esm/ds-modal-body.entry.js +32 -0
  609. package/dist/esm/ds-modal-header.entry.js +29 -0
  610. package/dist/esm/ds-modal.entry.js +199 -0
  611. package/dist/esm/ds-navbar.entry.js +357 -0
  612. package/dist/esm/ds-notification.entry.js +19 -27
  613. package/dist/esm/ds-number-input.entry.js +129 -46
  614. package/dist/esm/ds-pagination.entry.js +41 -37
  615. package/dist/esm/ds-progress-bar.entry.js +25 -29
  616. package/dist/esm/ds-radio-group.entry.js +31 -30
  617. package/dist/esm/ds-radio.entry.js +25 -32
  618. package/dist/esm/ds-segment-item.entry.js +9 -9
  619. package/dist/esm/ds-segment.entry.js +28 -116
  620. package/dist/esm/ds-select-optgroup.entry.js +47 -0
  621. package/dist/esm/ds-select-option.entry.js +55 -0
  622. package/dist/esm/ds-select.entry.js +2770 -0
  623. package/dist/esm/ds-shape.entry.js +10 -16
  624. package/dist/esm/ds-snackbar.entry.js +40 -57
  625. package/dist/esm/ds-step-panel.entry.js +53 -0
  626. package/dist/esm/ds-step.entry.js +168 -0
  627. package/dist/esm/ds-steps.entry.js +225 -0
  628. package/dist/esm/ds-tab-panel.entry.js +53 -0
  629. package/dist/esm/ds-tab.entry.js +118 -0
  630. package/dist/esm/ds-tabs.entry.js +362 -0
  631. package/dist/esm/ds-tag-group.entry.js +3 -3
  632. package/dist/esm/ds-tag.entry.js +19 -26
  633. package/dist/esm/ds-text.entry.js +28 -32
  634. package/dist/esm/ds-textarea.entry.js +33 -32
  635. package/dist/esm/ds-toast.entry.js +40 -54
  636. package/dist/esm/ds-toggle.entry.js +22 -21
  637. package/dist/esm/ds-tooltip.entry.js +180 -0
  638. package/dist/esm/{field.util-BXxRO7CD.js → field.util-BjZzAi09.js} +1 -1
  639. package/dist/esm/floating-ui.dom-BqY0KzJC.js +1621 -0
  640. package/dist/esm/focus-ZxHImoOj.js +1956 -0
  641. package/dist/esm/footer.i18n-BrJFPhMA.js +159 -0
  642. package/dist/esm/{form-control-D2O-sb65.js → form-control-DvJo0GKN.js} +2 -2
  643. package/dist/esm/has-value-DU9L2JaI.js +10 -0
  644. package/dist/esm/{index-CuwLeg-T.js → index-C6MVahkC.js} +496 -175
  645. package/dist/esm/index.js +13 -8273
  646. package/dist/esm/{input.interfaces-C7EnKCpl.js → input.interfaces-BMM6Nxeh.js} +1 -1
  647. package/dist/esm/keyboard-Uy_dVz21.js +20 -0
  648. package/dist/esm/{listener-C_kjUVTE.js → listener-DHP2OPMZ.js} +1 -1
  649. package/dist/esm/loader.js +3 -3
  650. package/dist/esm/luxon-C1jqbZdf.js +8133 -0
  651. package/dist/esm/one-of-CKPv0Nqm.js +28 -0
  652. package/dist/esm/popup.interfaces-BAY6Z8bT.js +20 -0
  653. package/dist/esm/required-Dqsbx5fH.js +36 -0
  654. package/dist/esm/resize.decorator-B8h8D676.js +96 -0
  655. package/dist/esm/scroll-CsH7NHo5.js +87 -0
  656. package/dist/esm/svg-B8KVoKrH.js +2440 -0
  657. package/dist/esm/{tslib.es6-tdchDLyb.js → tslib.es6-C9GKXw-5.js} +1 -1
  658. package/dist/esm/type-DzkhLOG_.js +31 -0
  659. package/dist/types/components/accordion/accordion.d.ts +0 -5
  660. package/dist/types/components/alert/alert-container.d.ts +0 -5
  661. package/dist/types/components/alert/snackbar/snackbar.d.ts +0 -5
  662. package/dist/types/components/alert/toast/toast.d.ts +0 -5
  663. package/dist/types/components/badge/badge.d.ts +1 -3
  664. package/dist/types/components/badge/badge.interfaces.d.ts +1 -1
  665. package/dist/types/components/button/button-group/button-group.d.ts +0 -5
  666. package/dist/types/components/button/button.d.ts +1 -3
  667. package/dist/types/components/button/button.interfaces.d.ts +1 -1
  668. package/dist/types/components/card/card-actions/card-actions.d.ts +0 -1
  669. package/dist/types/components/card/card-subtitle/card-subtitle.d.ts +0 -1
  670. package/dist/types/components/card/card.d.ts +1 -3
  671. package/dist/types/components/carousel/carousel/carousel.d.ts +114 -0
  672. package/dist/types/components/carousel/carousel/carousel.i18n.d.ts +9 -0
  673. package/dist/types/components/carousel/carousel-item/carousel-item.d.ts +70 -0
  674. package/dist/types/components/carousel/carousel.interfaces.d.ts +14 -0
  675. package/dist/types/components/carousel/test/carousel.a11y.play.d.ts +1 -0
  676. package/dist/types/components/carousel/test/carousel.component.play.d.ts +1 -0
  677. package/dist/types/components/carousel/test/carousel.visual.play.d.ts +1 -0
  678. package/dist/types/components/close/close.d.ts +1 -3
  679. package/dist/types/components/content/content.d.ts +2 -5
  680. package/dist/types/components/data/data-item.d.ts +43 -0
  681. package/dist/types/components/data/data-item.i18n.d.ts +6 -0
  682. package/dist/types/components/data/data-item.interfaces.d.ts +4 -0
  683. package/dist/types/components/data/data-label.d.ts +19 -0
  684. package/dist/types/components/data/data-label.interfaces.d.ts +3 -0
  685. package/dist/types/components/data/data-value.d.ts +15 -0
  686. package/dist/types/components/data/data-value.interfaces.d.ts +5 -0
  687. package/dist/types/components/data/data.d.ts +19 -0
  688. package/dist/types/components/data/data.interfaces.d.ts +4 -0
  689. package/dist/types/components/data/test/data.a11y.play.d.ts +1 -0
  690. package/dist/types/components/data/test/data.component.play.d.ts +1 -0
  691. package/dist/types/components/data/test/data.visual.play.d.ts +1 -0
  692. package/dist/types/components/date/date.d.ts +214 -0
  693. package/dist/types/components/date/date.i18n.d.ts +13 -0
  694. package/dist/types/components/date/date.interfaces.d.ts +18 -0
  695. package/dist/types/components/date/date.mask.d.ts +29 -0
  696. package/dist/types/components/date/date.picker.d.ts +67 -0
  697. package/dist/types/components/date/test/date.a11y.play.d.ts +1 -0
  698. package/dist/types/components/date/test/date.component.play.d.ts +1 -0
  699. package/dist/types/components/date/test/date.visual.play.d.ts +1 -0
  700. package/dist/types/components/divider/divider.d.ts +1 -3
  701. package/dist/types/components/drawer/drawer.d.ts +102 -0
  702. package/dist/types/components/drawer/drawer.interfaces.d.ts +8 -0
  703. package/dist/types/components/drawer/test/drawer.a11y.play.d.ts +1 -0
  704. package/dist/types/components/drawer/test/drawer.component.play.d.ts +1 -0
  705. package/dist/types/components/drawer/test/drawer.visual.play.d.ts +1 -0
  706. package/dist/types/components/file-upload/file-upload.d.ts +192 -0
  707. package/dist/types/components/file-upload/file-upload.i18n.d.ts +8 -0
  708. package/dist/types/components/file-upload/file-upload.interfaces.d.ts +24 -0
  709. package/dist/types/components/file-upload/test/file-upload.a11y.play.d.ts +1 -0
  710. package/dist/types/components/file-upload/test/file-upload.component.play.d.ts +1 -0
  711. package/dist/types/components/file-upload/test/file-upload.visual.play.d.ts +1 -0
  712. package/dist/types/components/file-upload/utils/file-list.util.d.ts +2 -0
  713. package/dist/types/components/file-upload/utils/file-size.util.d.ts +1 -0
  714. package/dist/types/components/file-upload/utils/file-validation.util.d.ts +13 -0
  715. package/dist/types/components/footer/footer.d.ts +68 -0
  716. package/dist/types/components/footer/footer.i18n.d.ts +7 -0
  717. package/dist/types/components/footer/footer.interfaces.d.ts +19 -0
  718. package/dist/types/components/footer/test/footer.a11y.play.d.ts +1 -0
  719. package/dist/types/components/footer/test/footer.component.play.d.ts +1 -0
  720. package/dist/types/components/footer/test/footer.visual.play.d.ts +1 -0
  721. package/dist/types/components/hint/hint-text/hint-text.d.ts +15 -0
  722. package/dist/types/components/hint/hint-title/hint-title.d.ts +16 -0
  723. package/dist/types/components/hint/hint.d.ts +87 -0
  724. package/dist/types/components/hint/hint.i18n.d.ts +6 -0
  725. package/dist/types/components/hint/hint.interfaces.d.ts +4 -0
  726. package/dist/types/components/hint/test/hint.a11y.play.d.ts +1 -0
  727. package/dist/types/components/hint/test/hint.component.play.d.ts +1 -0
  728. package/dist/types/components/hint/test/hint.visual.play.d.ts +1 -0
  729. package/dist/types/components/icon/icon.d.ts +7 -3
  730. package/dist/types/components/icon/icon.interfaces.d.ts +1 -1
  731. package/dist/types/components/input/clear-button.i18n.d.ts +6 -0
  732. package/dist/types/components/input/clear-button.util.d.ts +10 -0
  733. package/dist/types/components/input/trigger-button.i18n.d.ts +7 -0
  734. package/dist/types/components/label/label.d.ts +3 -5
  735. package/dist/types/components/list/item/item.d.ts +0 -5
  736. package/dist/types/components/list/item/item.interfaces.d.ts +1 -1
  737. package/dist/types/components/list/list.d.ts +0 -5
  738. package/dist/types/components/list/test/list.visual.play.d.ts +1 -0
  739. package/dist/types/components/logo/logo.d.ts +1 -2
  740. package/dist/types/components/modal/modal-body/modal-body.d.ts +15 -0
  741. package/dist/types/components/modal/modal-header/modal-header.d.ts +17 -0
  742. package/dist/types/components/modal/modal.controller.d.ts +3 -0
  743. package/dist/types/components/modal/modal.d.ts +97 -0
  744. package/dist/types/components/modal/modal.interfaces.d.ts +15 -0
  745. package/dist/types/components/modal/test/modal.a11y.play.d.ts +1 -0
  746. package/dist/types/components/modal/test/modal.component.play.d.ts +1 -0
  747. package/dist/types/components/modal/test/modal.visual.play.d.ts +1 -0
  748. package/dist/types/components/navbar/navbar.d.ts +128 -0
  749. package/dist/types/components/navbar/navbar.i18n.d.ts +9 -0
  750. package/dist/types/components/navbar/navbar.interfaces.d.ts +10 -0
  751. package/dist/types/components/navbar/test/navbar.a11y.play.d.ts +1 -0
  752. package/dist/types/components/navbar/test/navbar.component.play.d.ts +1 -0
  753. package/dist/types/components/navbar/test/navbar.visual.play.d.ts +1 -0
  754. package/dist/types/components/notification/notification.d.ts +1 -3
  755. package/dist/types/components/pagination/pagination.d.ts +0 -5
  756. package/dist/types/components/popup/popup.d.ts +152 -0
  757. package/dist/types/components/popup/popup.interfaces.d.ts +14 -0
  758. package/dist/types/components/popup/test/popup.a11y.play.d.ts +1 -0
  759. package/dist/types/components/popup/test/popup.component.play.d.ts +1 -0
  760. package/dist/types/components/popup/test/popup.visual.play.d.ts +1 -0
  761. package/dist/types/components/progress-bar/progress-bar.d.ts +0 -5
  762. package/dist/types/components/select/select-optgroup.d.ts +28 -0
  763. package/dist/types/components/select/select-option.d.ts +34 -0
  764. package/dist/types/components/select/select.d.ts +193 -0
  765. package/dist/types/components/select/select.i18n.d.ts +7 -0
  766. package/dist/types/components/select/select.interfaces.d.ts +16 -0
  767. package/dist/types/components/select/select.picker.d.ts +57 -0
  768. package/dist/types/components/select/test/select.a11y.play.d.ts +1 -0
  769. package/dist/types/components/select/test/select.component.play.d.ts +1 -0
  770. package/dist/types/components/select/test/select.visual.play.d.ts +1 -0
  771. package/dist/types/components/shape/shape.d.ts +2 -7
  772. package/dist/types/components/spinner/spinner.d.ts +0 -2
  773. package/dist/types/components/stack/stack.d.ts +7 -19
  774. package/dist/types/components/steps/step/step.d.ts +89 -0
  775. package/dist/types/components/steps/step-panel/step-panel.d.ts +34 -0
  776. package/dist/types/components/steps/steps/steps.d.ts +77 -0
  777. package/dist/types/components/steps/steps.interfaces.d.ts +10 -0
  778. package/dist/types/components/steps/test/steps.a11y.play.d.ts +1 -0
  779. package/dist/types/components/steps/test/steps.component.play.d.ts +1 -0
  780. package/dist/types/components/steps/test/steps.visual.play.d.ts +1 -0
  781. package/dist/types/components/tabs/tab/tab.d.ts +67 -0
  782. package/dist/types/components/tabs/tab-panel/tab-panel.d.ts +34 -0
  783. package/dist/types/components/tabs/tabs/tabs.d.ts +97 -0
  784. package/dist/types/components/tabs/tabs/tabs.i18n.d.ts +7 -0
  785. package/dist/types/components/tabs/tabs.interfaces.d.ts +12 -0
  786. package/dist/types/components/tabs/test/tabs.a11y.play.d.ts +1 -0
  787. package/dist/types/components/tabs/test/tabs.component.play.d.ts +1 -0
  788. package/dist/types/components/tabs/test/tabs.visual.play.d.ts +1 -0
  789. package/dist/types/components/tag/tag.d.ts +1 -3
  790. package/dist/types/components/text/text.d.ts +2 -7
  791. package/dist/types/components/time-input/test/time-input.visual.play.d.ts +1 -0
  792. package/dist/types/components/tooltip/test/tooltip.a11y.play.d.ts +1 -0
  793. package/dist/types/components/tooltip/test/tooltip.component.play.d.ts +1 -0
  794. package/dist/types/components/tooltip/test/tooltip.visual.play.d.ts +1 -0
  795. package/dist/types/components/tooltip/tooltip.d.ts +85 -0
  796. package/dist/types/components/tooltip/tooltip.interfaces.d.ts +10 -0
  797. package/dist/types/components.d.ts +4913 -1926
  798. package/dist/types/foundation/colors.visual.play.d.ts +1 -0
  799. package/dist/types/global/config/config.const.d.ts +3 -0
  800. package/dist/types/global/config/config.default.d.ts +0 -40
  801. package/dist/types/global/config/config.meta.d.ts +2 -0
  802. package/dist/types/global/config/config.types.d.ts +27 -0
  803. package/dist/types/global/config/index.d.ts +1 -0
  804. package/dist/types/global/index.d.ts +0 -1
  805. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/carousel.po.d.ts +12 -0
  806. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/data-item.po.d.ts +16 -0
  807. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/data.po.d.ts +12 -0
  808. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/date.po.d.ts +15 -0
  809. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/drawer.po.d.ts +11 -0
  810. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/file-upload.po.d.ts +16 -0
  811. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/footer.po.d.ts +16 -0
  812. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/hint.po.d.ts +10 -0
  813. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/index.d.ts +15 -0
  814. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/modal.po.d.ts +15 -0
  815. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/navbar.po.d.ts +13 -0
  816. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/popup.po.d.ts +11 -0
  817. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/select.po.d.ts +24 -0
  818. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/steps.po.d.ts +13 -0
  819. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/tabs.po.d.ts +13 -0
  820. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/tooltip.po.d.ts +6 -0
  821. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/page/utils/goto.d.ts +1 -1
  822. package/dist/types/index.d.ts +4 -1
  823. package/dist/types/stencil-public-runtime.d.ts +1 -0
  824. package/dist/types/utils/attributes.d.ts +0 -8
  825. package/dist/types/utils/focus.d.ts +18 -0
  826. package/dist/types/utils/form-control.d.ts +2 -2
  827. package/dist/types/utils/has-value.d.ts +1 -0
  828. package/dist/types/utils/index.d.ts +7 -5
  829. package/dist/types/utils/number.d.ts +0 -3
  830. package/dist/types/utils/property-decorators/array-of.d.ts +9 -0
  831. package/dist/types/utils/property-decorators/bound.d.ts +36 -0
  832. package/dist/types/utils/property-decorators/create-validator-decorator.d.ts +48 -0
  833. package/dist/types/utils/property-decorators/date.d.ts +6 -0
  834. package/dist/types/utils/property-decorators/index.d.ts +9 -0
  835. package/dist/types/utils/property-decorators/iso-date.d.ts +6 -0
  836. package/dist/types/utils/property-decorators/one-of.d.ts +8 -0
  837. package/dist/types/utils/property-decorators/pattern.d.ts +8 -0
  838. package/dist/types/utils/property-decorators/required.d.ts +17 -0
  839. package/dist/types/utils/property-decorators/type.d.ts +9 -0
  840. package/dist/types/utils/property-decorators/url.d.ts +6 -0
  841. package/dist/types/utils/svg.d.ts +2 -0
  842. package/docs/cem.json +17659 -0
  843. package/docs/components.json +38767 -17409
  844. package/docs/html.html-data.json +1529 -147
  845. package/docs/tags.json +29 -1
  846. package/package.json +45 -38
  847. package/sbom.cdx.json +54391 -0
  848. package/README.md +0 -33
  849. package/components/p-82RSSk25.js +0 -4
  850. package/components/p-BEngECpF.js +0 -4
  851. package/components/p-BMBthpLd.js +0 -4
  852. package/components/p-BNY3JzuV.js +0 -4
  853. package/components/p-BOTkpyFe.js +0 -5
  854. package/components/p-BOgMmRCt.js +0 -4
  855. package/components/p-CDYlUuhB.js +0 -4
  856. package/components/p-Cb75Rr6o.js +0 -4
  857. package/components/p-CojUmpFm.js +0 -4
  858. package/components/p-DHeVI6dR.js +0 -4
  859. package/components/p-DTPbL3uY.js +0 -4
  860. package/components/p-DnnGnukM.js +0 -4
  861. package/components/p-DtuTnY5l.js +0 -4
  862. package/components/p-JZ1uDtZv.js +0 -4
  863. package/components/p-cSbDziZm.js +0 -4
  864. package/components/p-gA-94RPS.js +0 -4
  865. package/components/p-xDEngwqW.js +0 -4
  866. package/dist/cjs/contact-SPfz2A_q.js +0 -1647
  867. package/dist/cjs/ds-content.cjs.entry.js +0 -154
  868. package/dist/cjs/ds-divider.cjs.entry.js +0 -131
  869. package/dist/cjs/ds-stack.cjs.entry.js +0 -224
  870. package/dist/cjs/isEmpty-BmKp4bH4.js +0 -99
  871. package/dist/cjs/stack.interfaces-6vlKvBmb.js +0 -68
  872. package/dist/cjs/svg-D7Mwbcvp.js +0 -1482
  873. package/dist/cjs/validate.decorator-C9-9HA0Y.js +0 -115
  874. package/dist/collection/global/constants/icons.constant.js +0 -42
  875. package/dist/collection/utils/element-states/element-states.decorator.js +0 -23
  876. package/dist/collection/utils/element-states/element-states.listener.js +0 -55
  877. package/dist/collection/utils/element-states/element-states.subject.js +0 -24
  878. package/dist/collection/utils/element-states/index.js +0 -5
  879. package/dist/collection/utils/keyboard/index.js +0 -6
  880. package/dist/collection/utils/keyboard/keyboard.decorator.js +0 -23
  881. package/dist/collection/utils/keyboard/keyboard.listener.js +0 -34
  882. package/dist/collection/utils/keyboard/keyboard.subject.js +0 -24
  883. package/dist/collection/utils/property-checkers/check-array-of.js +0 -13
  884. package/dist/collection/utils/property-checkers/check-date.js +0 -18
  885. package/dist/collection/utils/property-checkers/check-iso-date.js +0 -14
  886. package/dist/collection/utils/property-checkers/check-one-of.js +0 -13
  887. package/dist/collection/utils/property-checkers/check-pattern.js +0 -13
  888. package/dist/collection/utils/property-checkers/check-type.js +0 -20
  889. package/dist/collection/utils/property-checkers/check-url.js +0 -20
  890. package/dist/collection/utils/property-checkers/empty-or.js +0 -15
  891. package/dist/collection/utils/property-checkers/index.js +0 -57
  892. package/dist/collection/utils/property-checkers/required-and.js +0 -20
  893. package/dist/collection/utils/swipe/index.js +0 -6
  894. package/dist/collection/utils/swipe/swipe.decorator.js +0 -23
  895. package/dist/collection/utils/swipe/swipe.listener.js +0 -33
  896. package/dist/collection/utils/swipe/swipe.subject.js +0 -28
  897. package/dist/collection/utils/validate.decorator.js +0 -203
  898. package/dist/design-system/p-03bbcdf9de.entry.js +0 -4
  899. package/dist/design-system/p-1154323457.entry.js +0 -4
  900. package/dist/design-system/p-1f0601a4f4.entry.js +0 -4
  901. package/dist/design-system/p-21b080a49a.entry.js +0 -4
  902. package/dist/design-system/p-27c34c4e5f.entry.js +0 -4
  903. package/dist/design-system/p-2b91de302f.entry.js +0 -4
  904. package/dist/design-system/p-31c1235ac5.entry.js +0 -4
  905. package/dist/design-system/p-3259acaa64.entry.js +0 -4
  906. package/dist/design-system/p-339d85cca0.entry.js +0 -4
  907. package/dist/design-system/p-35e63b52e7.entry.js +0 -4
  908. package/dist/design-system/p-363f3a7ab4.entry.js +0 -4
  909. package/dist/design-system/p-3d901720f7.entry.js +0 -4
  910. package/dist/design-system/p-40ba8b9812.entry.js +0 -4
  911. package/dist/design-system/p-432430e14f.entry.js +0 -4
  912. package/dist/design-system/p-487807f228.entry.js +0 -4
  913. package/dist/design-system/p-4a049d1b7f.entry.js +0 -4
  914. package/dist/design-system/p-4f4cce8ce4.entry.js +0 -4
  915. package/dist/design-system/p-5a901a9b8e.entry.js +0 -4
  916. package/dist/design-system/p-5d3330bf93.entry.js +0 -4
  917. package/dist/design-system/p-640223834c.entry.js +0 -4
  918. package/dist/design-system/p-6b9aab417f.entry.js +0 -4
  919. package/dist/design-system/p-799705af3a.entry.js +0 -4
  920. package/dist/design-system/p-82RSSk25.js +0 -4
  921. package/dist/design-system/p-8e0872fef0.entry.js +0 -4
  922. package/dist/design-system/p-9617d56181.entry.js +0 -4
  923. package/dist/design-system/p-BaIoYrFa.js +0 -5
  924. package/dist/design-system/p-Cb75Rr6o.js +0 -4
  925. package/dist/design-system/p-CqZ6YSy9.js +0 -4
  926. package/dist/design-system/p-CqzM3doy.js +0 -4
  927. package/dist/design-system/p-CuwLeg-T.js +0 -5
  928. package/dist/design-system/p-DTPbL3uY.js +0 -4
  929. package/dist/design-system/p-aff68865ee.entry.js +0 -4
  930. package/dist/design-system/p-b3c6327744.entry.js +0 -4
  931. package/dist/design-system/p-be9023a38b.entry.js +0 -4
  932. package/dist/design-system/p-c031d1dce5.entry.js +0 -4
  933. package/dist/design-system/p-c3ae96e220.entry.js +0 -4
  934. package/dist/design-system/p-d430812a57.entry.js +0 -4
  935. package/dist/design-system/p-de1354f022.entry.js +0 -4
  936. package/dist/design-system/p-e3d0c82e2a.entry.js +0 -4
  937. package/dist/design-system/p-ea1a5e1f75.entry.js +0 -4
  938. package/dist/design-system/p-ea7169501c.entry.js +0 -4
  939. package/dist/design-system/p-eab397e041.entry.js +0 -4
  940. package/dist/design-system/p-ecba4deb9a.entry.js +0 -4
  941. package/dist/design-system/p-fe0dbd4b03.entry.js +0 -4
  942. package/dist/design-system/p-ng5ZzTOj.js +0 -4
  943. package/dist/esm/contact-Cb75Rr6o.js +0 -1636
  944. package/dist/esm/ds-content.entry.js +0 -152
  945. package/dist/esm/ds-divider.entry.js +0 -129
  946. package/dist/esm/ds-stack.entry.js +0 -222
  947. package/dist/esm/isEmpty-DmZYZqE9.js +0 -97
  948. package/dist/esm/stack.interfaces-ng5ZzTOj.js +0 -62
  949. package/dist/esm/svg-BaIoYrFa.js +0 -1480
  950. package/dist/esm/validate.decorator-82RSSk25.js +0 -110
  951. package/dist/types/global/constants/icons.constant.d.ts +0 -38
  952. package/dist/types/utils/element-states/element-states.decorator.d.ts +0 -3
  953. package/dist/types/utils/element-states/element-states.interfaces.d.ts +0 -10
  954. package/dist/types/utils/element-states/element-states.listener.d.ts +0 -15
  955. package/dist/types/utils/element-states/element-states.subject.d.ts +0 -8
  956. package/dist/types/utils/element-states/index.d.ts +0 -2
  957. package/dist/types/utils/keyboard/index.d.ts +0 -3
  958. package/dist/types/utils/keyboard/keyboard.decorator.d.ts +0 -3
  959. package/dist/types/utils/keyboard/keyboard.interfaces.d.ts +0 -8
  960. package/dist/types/utils/keyboard/keyboard.listener.d.ts +0 -9
  961. package/dist/types/utils/keyboard/keyboard.subject.d.ts +0 -8
  962. package/dist/types/utils/property-checkers/check-array-of.d.ts +0 -2
  963. package/dist/types/utils/property-checkers/check-date.d.ts +0 -1
  964. package/dist/types/utils/property-checkers/check-iso-date.d.ts +0 -1
  965. package/dist/types/utils/property-checkers/check-one-of.d.ts +0 -1
  966. package/dist/types/utils/property-checkers/check-pattern.d.ts +0 -1
  967. package/dist/types/utils/property-checkers/check-type.d.ts +0 -2
  968. package/dist/types/utils/property-checkers/check-url.d.ts +0 -1
  969. package/dist/types/utils/property-checkers/constants.d.ts +0 -1
  970. package/dist/types/utils/property-checkers/empty-or.d.ts +0 -1
  971. package/dist/types/utils/property-checkers/index.d.ts +0 -19
  972. package/dist/types/utils/property-checkers/required-and.d.ts +0 -1
  973. package/dist/types/utils/swipe/index.d.ts +0 -3
  974. package/dist/types/utils/swipe/swipe.decorator.d.ts +0 -5
  975. package/dist/types/utils/swipe/swipe.interfaces.d.ts +0 -10
  976. package/dist/types/utils/swipe/swipe.listener.d.ts +0 -10
  977. package/dist/types/utils/swipe/swipe.subject.d.ts +0 -11
  978. package/dist/types/utils/validate.decorator.d.ts +0 -114
  979. /package/dist/collection/{utils/element-states/element-states.interfaces.js → components/data/data-item.interfaces.js} +0 -0
  980. /package/dist/collection/{utils/keyboard/keyboard.interfaces.js → components/data/data-label.interfaces.js} +0 -0
  981. /package/dist/collection/{utils/property-checkers/property-types.js → components/data/data-value.interfaces.js} +0 -0
  982. /package/dist/collection/{utils/swipe/swipe.interfaces.js → components/data/data.interfaces.js} +0 -0
  983. /package/dist/collection/utils/{property-checkers/is-iso-date.js → is-iso-date.js} +0 -0
  984. /package/dist/collection/utils/{keyboard/keyboard.helpers.js → keyboard.js} +0 -0
  985. /package/dist/types/utils/{property-checkers/is-iso-date.d.ts → is-iso-date.d.ts} +0 -0
  986. /package/dist/types/utils/{property-checkers/is-value-empty.d.ts → is-value-empty.d.ts} +0 -0
  987. /package/dist/types/utils/{keyboard/keyboard.helpers.d.ts → keyboard.d.ts} +0 -0
  988. /package/dist/types/utils/{property-checkers/property-types.d.ts → property-types.d.ts} +0 -0
@@ -0,0 +1,1628 @@
1
+ /*!
2
+ * (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
3
+ */
4
+ 'use strict';
5
+
6
+ /**
7
+ * Custom positioning reference element.
8
+ * @see https://floating-ui.com/docs/virtual-elements
9
+ */
10
+
11
+ const min = Math.min;
12
+ const max = Math.max;
13
+ const round = Math.round;
14
+ const floor = Math.floor;
15
+ const createCoords = v => ({
16
+ x: v,
17
+ y: v
18
+ });
19
+ const oppositeSideMap = {
20
+ left: 'right',
21
+ right: 'left',
22
+ bottom: 'top',
23
+ top: 'bottom'
24
+ };
25
+ function clamp(start, value, end) {
26
+ return max(start, min(value, end));
27
+ }
28
+ function evaluate(value, param) {
29
+ return typeof value === 'function' ? value(param) : value;
30
+ }
31
+ function getSide(placement) {
32
+ return placement.split('-')[0];
33
+ }
34
+ function getAlignment(placement) {
35
+ return placement.split('-')[1];
36
+ }
37
+ function getOppositeAxis(axis) {
38
+ return axis === 'x' ? 'y' : 'x';
39
+ }
40
+ function getAxisLength(axis) {
41
+ return axis === 'y' ? 'height' : 'width';
42
+ }
43
+ function getSideAxis(placement) {
44
+ const firstChar = placement[0];
45
+ return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';
46
+ }
47
+ function getAlignmentAxis(placement) {
48
+ return getOppositeAxis(getSideAxis(placement));
49
+ }
50
+ function getAlignmentSides(placement, rects, rtl) {
51
+ if (rtl === void 0) {
52
+ rtl = false;
53
+ }
54
+ const alignment = getAlignment(placement);
55
+ const alignmentAxis = getAlignmentAxis(placement);
56
+ const length = getAxisLength(alignmentAxis);
57
+ let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
58
+ if (rects.reference[length] > rects.floating[length]) {
59
+ mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
60
+ }
61
+ return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
62
+ }
63
+ function getExpandedPlacements(placement) {
64
+ const oppositePlacement = getOppositePlacement(placement);
65
+ return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
66
+ }
67
+ function getOppositeAlignmentPlacement(placement) {
68
+ return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');
69
+ }
70
+ const lrPlacement = ['left', 'right'];
71
+ const rlPlacement = ['right', 'left'];
72
+ const tbPlacement = ['top', 'bottom'];
73
+ const btPlacement = ['bottom', 'top'];
74
+ function getSideList(side, isStart, rtl) {
75
+ switch (side) {
76
+ case 'top':
77
+ case 'bottom':
78
+ if (rtl) return isStart ? rlPlacement : lrPlacement;
79
+ return isStart ? lrPlacement : rlPlacement;
80
+ case 'left':
81
+ case 'right':
82
+ return isStart ? tbPlacement : btPlacement;
83
+ default:
84
+ return [];
85
+ }
86
+ }
87
+ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
88
+ const alignment = getAlignment(placement);
89
+ let list = getSideList(getSide(placement), direction === 'start', rtl);
90
+ if (alignment) {
91
+ list = list.map(side => side + "-" + alignment);
92
+ if (flipAlignment) {
93
+ list = list.concat(list.map(getOppositeAlignmentPlacement));
94
+ }
95
+ }
96
+ return list;
97
+ }
98
+ function getOppositePlacement(placement) {
99
+ const side = getSide(placement);
100
+ return oppositeSideMap[side] + placement.slice(side.length);
101
+ }
102
+ function expandPaddingObject(padding) {
103
+ var _padding$top, _padding$right, _padding$bottom, _padding$left;
104
+ return {
105
+ top: (_padding$top = padding.top) != null ? _padding$top : 0,
106
+ right: (_padding$right = padding.right) != null ? _padding$right : 0,
107
+ bottom: (_padding$bottom = padding.bottom) != null ? _padding$bottom : 0,
108
+ left: (_padding$left = padding.left) != null ? _padding$left : 0
109
+ };
110
+ }
111
+ function getPaddingObject(padding) {
112
+ return typeof padding !== 'number' ? expandPaddingObject(padding) : {
113
+ top: padding,
114
+ right: padding,
115
+ bottom: padding,
116
+ left: padding
117
+ };
118
+ }
119
+ function rectToClientRect(rect) {
120
+ const {
121
+ x,
122
+ y,
123
+ width,
124
+ height
125
+ } = rect;
126
+ return {
127
+ width,
128
+ height,
129
+ top: y,
130
+ left: x,
131
+ right: x + width,
132
+ bottom: y + height,
133
+ x,
134
+ y
135
+ };
136
+ }
137
+
138
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
139
+ let {
140
+ reference,
141
+ floating
142
+ } = _ref;
143
+ const sideAxis = getSideAxis(placement);
144
+ const alignmentAxis = getAlignmentAxis(placement);
145
+ const alignLength = getAxisLength(alignmentAxis);
146
+ const side = getSide(placement);
147
+ const isVertical = sideAxis === 'y';
148
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
149
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
150
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
151
+ let coords;
152
+ switch (side) {
153
+ case 'top':
154
+ coords = {
155
+ x: commonX,
156
+ y: reference.y - floating.height
157
+ };
158
+ break;
159
+ case 'bottom':
160
+ coords = {
161
+ x: commonX,
162
+ y: reference.y + reference.height
163
+ };
164
+ break;
165
+ case 'right':
166
+ coords = {
167
+ x: reference.x + reference.width,
168
+ y: commonY
169
+ };
170
+ break;
171
+ case 'left':
172
+ coords = {
173
+ x: reference.x - floating.width,
174
+ y: commonY
175
+ };
176
+ break;
177
+ default:
178
+ coords = {
179
+ x: reference.x,
180
+ y: reference.y
181
+ };
182
+ }
183
+ const alignment = getAlignment(placement);
184
+ if (alignment) {
185
+ coords[alignmentAxis] += commonAlign * (alignment === 'end' ? 1 : -1) * (rtl && isVertical ? -1 : 1);
186
+ }
187
+ return coords;
188
+ }
189
+
190
+ /**
191
+ * Resolves with an object of overflow side offsets that determine how much the
192
+ * element is overflowing a given clipping boundary on each side.
193
+ * - positive = overflowing the boundary by that number of pixels
194
+ * - negative = how many pixels left before it will overflow
195
+ * - 0 = lies flush with the boundary
196
+ * @see https://floating-ui.com/docs/detectOverflow
197
+ */
198
+ async function detectOverflow(state, options) {
199
+ var _await$platform$isEle;
200
+ if (options === void 0) {
201
+ options = {};
202
+ }
203
+ const {
204
+ x,
205
+ y,
206
+ platform,
207
+ rects,
208
+ elements,
209
+ strategy
210
+ } = state;
211
+ const {
212
+ boundary = 'clippingAncestors',
213
+ rootBoundary = 'viewport',
214
+ elementContext = 'floating',
215
+ altBoundary = false,
216
+ padding = 0
217
+ } = evaluate(options, state);
218
+ const paddingObject = getPaddingObject(padding);
219
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
220
+ const element = elements[altBoundary ? altContext : elementContext];
221
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
222
+ element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
223
+ boundary,
224
+ rootBoundary,
225
+ strategy
226
+ }));
227
+ const rect = elementContext === 'floating' ? {
228
+ x,
229
+ y,
230
+ width: rects.floating.width,
231
+ height: rects.floating.height
232
+ } : rects.reference;
233
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
234
+ const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) && (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
235
+ x: 1,
236
+ y: 1
237
+ };
238
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
239
+ elements,
240
+ rect,
241
+ offsetParent,
242
+ strategy
243
+ }) : rect);
244
+ return {
245
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
246
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
247
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
248
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
249
+ };
250
+ }
251
+
252
+ // Maximum number of resets that can occur before bailing to avoid infinite reset loops.
253
+ const MAX_RESET_COUNT = 50;
254
+
255
+ /**
256
+ * Computes the `x` and `y` coordinates that will place the floating element
257
+ * next to a given reference element.
258
+ *
259
+ * This export does not have any `platform` interface logic. You will need to
260
+ * write one for the platform you are using Floating UI with.
261
+ */
262
+ const computePosition$1 = async (reference, floating, config) => {
263
+ const {
264
+ placement = 'bottom',
265
+ strategy = 'absolute',
266
+ middleware = [],
267
+ platform
268
+ } = config;
269
+ const platformWithDetectOverflow = platform.detectOverflow ? platform : {
270
+ ...platform,
271
+ detectOverflow
272
+ };
273
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
274
+ let rects = await platform.getElementRects({
275
+ reference,
276
+ floating,
277
+ strategy
278
+ });
279
+ let {
280
+ x,
281
+ y
282
+ } = computeCoordsFromPlacement(rects, placement, rtl);
283
+ let statefulPlacement = placement;
284
+ let resetCount = 0;
285
+ const middlewareData = {};
286
+ for (let i = 0; i < middleware.length; i++) {
287
+ const currentMiddleware = middleware[i];
288
+ if (!currentMiddleware) {
289
+ continue;
290
+ }
291
+ const {
292
+ name,
293
+ fn
294
+ } = currentMiddleware;
295
+ const {
296
+ x: nextX,
297
+ y: nextY,
298
+ data,
299
+ reset
300
+ } = await fn({
301
+ x,
302
+ y,
303
+ initialPlacement: placement,
304
+ placement: statefulPlacement,
305
+ strategy,
306
+ middlewareData,
307
+ rects,
308
+ platform: platformWithDetectOverflow,
309
+ elements: {
310
+ reference,
311
+ floating
312
+ }
313
+ });
314
+ x = nextX != null ? nextX : x;
315
+ y = nextY != null ? nextY : y;
316
+ middlewareData[name] = {
317
+ ...middlewareData[name],
318
+ ...data
319
+ };
320
+ if (reset && resetCount < MAX_RESET_COUNT) {
321
+ resetCount++;
322
+ if (typeof reset === 'object') {
323
+ if (reset.placement) {
324
+ statefulPlacement = reset.placement;
325
+ }
326
+ if (reset.rects) {
327
+ rects = reset.rects === true ? await platform.getElementRects({
328
+ reference,
329
+ floating,
330
+ strategy
331
+ }) : reset.rects;
332
+ }
333
+ ({
334
+ x,
335
+ y
336
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
337
+ }
338
+ i = -1;
339
+ }
340
+ }
341
+ return {
342
+ x,
343
+ y,
344
+ placement: statefulPlacement,
345
+ strategy,
346
+ middlewareData
347
+ };
348
+ };
349
+
350
+ /**
351
+ * Provides data to position an inner element of the floating element so that it
352
+ * appears centered to the reference element.
353
+ * @see https://floating-ui.com/docs/arrow
354
+ */
355
+ const arrow$1 = options => ({
356
+ name: 'arrow',
357
+ options,
358
+ async fn(state) {
359
+ const {
360
+ x,
361
+ y,
362
+ placement,
363
+ rects,
364
+ platform,
365
+ elements,
366
+ middlewareData
367
+ } = state;
368
+ // Since `element` is required, we don't Partial<> the type.
369
+ const {
370
+ element,
371
+ padding = 0
372
+ } = evaluate(options, state) || {};
373
+ if (element == null) {
374
+ return {};
375
+ }
376
+ const paddingObject = getPaddingObject(padding);
377
+ const coords = {
378
+ x,
379
+ y
380
+ };
381
+ const axis = getAlignmentAxis(placement);
382
+ const length = getAxisLength(axis);
383
+ const arrowDimensions = await platform.getDimensions(element);
384
+ const isYAxis = axis === 'y';
385
+ const minProp = isYAxis ? 'top' : 'left';
386
+ const maxProp = isYAxis ? 'bottom' : 'right';
387
+ const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
388
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
389
+ const startDiff = coords[axis] - rects.reference[axis];
390
+ const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
391
+ let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
392
+
393
+ // DOM platform can return `window` as the `offsetParent`.
394
+ if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
395
+ clientSize = elements.floating[clientProp] || rects.floating[length];
396
+ }
397
+ const centerToReference = endDiff / 2 - startDiff / 2;
398
+
399
+ // If the padding is large enough that it causes the arrow to no longer be
400
+ // centered, modify the padding so that it is centered.
401
+ const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
402
+ const minPadding = min(paddingObject[minProp], largestPossiblePadding);
403
+ const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
404
+
405
+ // Make sure the arrow doesn't overflow the floating element if the center
406
+ // point is outside the floating element's bounds.
407
+ const max = clientSize - arrowDimensions[length] - maxPadding;
408
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
409
+ const offset = clamp(minPadding, center, max);
410
+
411
+ // If the reference is small enough that the arrow's padding causes it to
412
+ // to point to nothing for an aligned placement, adjust the offset of the
413
+ // floating element itself. To ensure `shift()` continues to take action,
414
+ // a single reset is performed when this is true.
415
+ const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < minPadding ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
416
+ const alignmentOffset = shouldAddOffset ? center < minPadding ? center - minPadding : center - max : 0;
417
+ return {
418
+ [axis]: coords[axis] + alignmentOffset,
419
+ data: {
420
+ [axis]: offset,
421
+ centerOffset: center - offset - alignmentOffset,
422
+ ...(shouldAddOffset && {
423
+ alignmentOffset
424
+ })
425
+ },
426
+ reset: shouldAddOffset
427
+ };
428
+ }
429
+ });
430
+
431
+ /**
432
+ * Optimizes the visibility of the floating element by flipping the `placement`
433
+ * in order to keep it in view when the preferred placement(s) will overflow the
434
+ * clipping boundary. Alternative to `autoPlacement`.
435
+ * @see https://floating-ui.com/docs/flip
436
+ */
437
+ const flip$1 = function (options) {
438
+ if (options === void 0) {
439
+ options = {};
440
+ }
441
+ return {
442
+ name: 'flip',
443
+ options,
444
+ async fn(state) {
445
+ var _middlewareData$arrow, _middlewareData$flip;
446
+ const {
447
+ placement,
448
+ middlewareData,
449
+ rects,
450
+ initialPlacement,
451
+ platform,
452
+ elements
453
+ } = state;
454
+ const {
455
+ mainAxis: checkMainAxis = true,
456
+ crossAxis: checkCrossAxis = true,
457
+ fallbackPlacements: specifiedFallbackPlacements,
458
+ fallbackStrategy = 'bestFit',
459
+ fallbackAxisSideDirection = 'none',
460
+ flipAlignment = true,
461
+ ...detectOverflowOptions
462
+ } = evaluate(options, state);
463
+
464
+ // If a reset by the arrow was caused due to an alignment offset being
465
+ // added, we should skip any logic now since `flip()` has already done its
466
+ // work.
467
+ // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
468
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
469
+ return {};
470
+ }
471
+ const side = getSide(placement);
472
+ const initialSideAxis = getSideAxis(initialPlacement);
473
+ const isBasePlacement = getSide(initialPlacement) === initialPlacement;
474
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
475
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
476
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
477
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
478
+ fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
479
+ }
480
+ const placements = [initialPlacement, ...fallbackPlacements];
481
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
482
+ const overflows = [];
483
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
484
+ if (checkMainAxis) {
485
+ overflows.push(overflow[side]);
486
+ }
487
+ if (checkCrossAxis) {
488
+ const sides = getAlignmentSides(placement, rects, rtl);
489
+ overflows.push(overflow[sides[0]], overflow[sides[1]]);
490
+ }
491
+ overflowsData = [...overflowsData, {
492
+ placement,
493
+ overflows
494
+ }];
495
+
496
+ // One or more sides is overflowing.
497
+ if (!overflows.every(side => side <= 0)) {
498
+ var _middlewareData$flip2, _overflowsData$filter;
499
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
500
+ const nextPlacement = placements[nextIndex];
501
+ if (nextPlacement) {
502
+ const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
503
+ if (!ignoreCrossAxisOverflow ||
504
+ // We leave the current main axis only if every placement on that axis
505
+ // overflows the main axis.
506
+ overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
507
+ // Try next placement and re-run the lifecycle.
508
+ return {
509
+ data: {
510
+ index: nextIndex,
511
+ overflows: overflowsData
512
+ },
513
+ reset: {
514
+ placement: nextPlacement
515
+ }
516
+ };
517
+ }
518
+ }
519
+
520
+ // First, find the candidates that fit on the mainAxis side of overflow,
521
+ // then find the placement that fits the best on the main crossAxis side.
522
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
523
+
524
+ // Otherwise fallback.
525
+ if (!resetPlacement) {
526
+ switch (fallbackStrategy) {
527
+ case 'bestFit':
528
+ {
529
+ var _overflowsData$filter2;
530
+ const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
531
+ if (hasFallbackAxisSideDirection) {
532
+ const currentSideAxis = getSideAxis(d.placement);
533
+ return currentSideAxis === initialSideAxis ||
534
+ // Create a bias to the `y` side axis due to horizontal
535
+ // reading directions favoring greater width.
536
+ currentSideAxis === 'y';
537
+ }
538
+ return true;
539
+ }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
540
+ if (placement) {
541
+ resetPlacement = placement;
542
+ }
543
+ break;
544
+ }
545
+ case 'initialPlacement':
546
+ resetPlacement = initialPlacement;
547
+ break;
548
+ }
549
+ }
550
+ if (placement !== resetPlacement) {
551
+ return {
552
+ reset: {
553
+ placement: resetPlacement
554
+ }
555
+ };
556
+ }
557
+ }
558
+ return {};
559
+ }
560
+ };
561
+ };
562
+
563
+ const originSides = /*#__PURE__*/new Set(['left', 'top']);
564
+
565
+ // For type backwards-compatibility, the `OffsetOptions` type was also
566
+ // Derivable.
567
+
568
+ async function convertValueToCoords(state, options) {
569
+ const {
570
+ placement,
571
+ platform,
572
+ elements
573
+ } = state;
574
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
575
+ const side = getSide(placement);
576
+ const alignment = getAlignment(placement);
577
+ const isVertical = getSideAxis(placement) === 'y';
578
+ const mainAxisMulti = originSides.has(side) ? -1 : 1;
579
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
580
+ const rawValue = evaluate(options, state);
581
+
582
+ // eslint-disable-next-line prefer-const
583
+ let {
584
+ mainAxis,
585
+ crossAxis,
586
+ alignmentAxis
587
+ } = typeof rawValue === 'number' ? {
588
+ mainAxis: rawValue,
589
+ crossAxis: 0,
590
+ alignmentAxis: null
591
+ } : {
592
+ mainAxis: rawValue.mainAxis || 0,
593
+ crossAxis: rawValue.crossAxis || 0,
594
+ alignmentAxis: rawValue.alignmentAxis
595
+ };
596
+ if (alignment && typeof alignmentAxis === 'number') {
597
+ crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
598
+ }
599
+ return isVertical ? {
600
+ x: crossAxis * crossAxisMulti,
601
+ y: mainAxis * mainAxisMulti
602
+ } : {
603
+ x: mainAxis * mainAxisMulti,
604
+ y: crossAxis * crossAxisMulti
605
+ };
606
+ }
607
+
608
+ /**
609
+ * Modifies the placement by translating the floating element along the
610
+ * specified axes.
611
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
612
+ * object may be passed.
613
+ * @see https://floating-ui.com/docs/offset
614
+ */
615
+ const offset$1 = function (options) {
616
+ if (options === void 0) {
617
+ options = 0;
618
+ }
619
+ return {
620
+ name: 'offset',
621
+ options,
622
+ async fn(state) {
623
+ var _middlewareData$offse, _middlewareData$arrow;
624
+ const {
625
+ x,
626
+ y,
627
+ placement,
628
+ middlewareData
629
+ } = state;
630
+ const diffCoords = await convertValueToCoords(state, options);
631
+
632
+ // If the placement is the same and the arrow caused an alignment offset
633
+ // then we don't need to change the positioning coordinates.
634
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
635
+ return {};
636
+ }
637
+ return {
638
+ x: x + diffCoords.x,
639
+ y: y + diffCoords.y,
640
+ data: {
641
+ ...diffCoords,
642
+ placement
643
+ }
644
+ };
645
+ }
646
+ };
647
+ };
648
+
649
+ /**
650
+ * Optimizes the visibility of the floating element by shifting it in order to
651
+ * keep it in view when it will overflow the clipping boundary.
652
+ * @see https://floating-ui.com/docs/shift
653
+ */
654
+ const shift$1 = function (options) {
655
+ if (options === void 0) {
656
+ options = {};
657
+ }
658
+ return {
659
+ name: 'shift',
660
+ options,
661
+ async fn(state) {
662
+ const {
663
+ x,
664
+ y,
665
+ placement,
666
+ platform
667
+ } = state;
668
+ const {
669
+ mainAxis: checkMainAxis = true,
670
+ crossAxis: checkCrossAxis = false,
671
+ limiter = {
672
+ fn: _ref => {
673
+ let {
674
+ x,
675
+ y
676
+ } = _ref;
677
+ return {
678
+ x,
679
+ y
680
+ };
681
+ }
682
+ },
683
+ ...detectOverflowOptions
684
+ } = evaluate(options, state);
685
+ const coords = {
686
+ x,
687
+ y
688
+ };
689
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
690
+ const crossAxis = getSideAxis(placement);
691
+ const mainAxis = getOppositeAxis(crossAxis);
692
+ let mainAxisCoord = coords[mainAxis];
693
+ let crossAxisCoord = coords[crossAxis];
694
+ const clampCoord = (axis, coord) => clamp(coord + overflow[axis === 'y' ? 'top' : 'left'], coord, coord - overflow[axis === 'y' ? 'bottom' : 'right']);
695
+ if (checkMainAxis) {
696
+ mainAxisCoord = clampCoord(mainAxis, mainAxisCoord);
697
+ }
698
+ if (checkCrossAxis) {
699
+ crossAxisCoord = clampCoord(crossAxis, crossAxisCoord);
700
+ }
701
+ const limitedCoords = limiter.fn({
702
+ ...state,
703
+ [mainAxis]: mainAxisCoord,
704
+ [crossAxis]: crossAxisCoord
705
+ });
706
+ return {
707
+ ...limitedCoords,
708
+ data: {
709
+ x: limitedCoords.x - x,
710
+ y: limitedCoords.y - y,
711
+ enabled: {
712
+ [mainAxis]: checkMainAxis,
713
+ [crossAxis]: checkCrossAxis
714
+ }
715
+ }
716
+ };
717
+ }
718
+ };
719
+ };
720
+
721
+ function hasWindow() {
722
+ return typeof window !== 'undefined';
723
+ }
724
+ function getNodeName(node) {
725
+ if (isNode(node)) {
726
+ return (node.nodeName || '').toLowerCase();
727
+ }
728
+ // Mocked nodes in testing environments may not be instances of Node. By
729
+ // returning `#document` an infinite loop won't occur.
730
+ // https://github.com/floating-ui/floating-ui/issues/2317
731
+ return '#document';
732
+ }
733
+ function getWindow(node) {
734
+ var _node$ownerDocument;
735
+ return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
736
+ }
737
+ function getDocumentElement(node) {
738
+ var _ref;
739
+ return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
740
+ }
741
+ function isNode(value) {
742
+ if (!hasWindow()) {
743
+ return false;
744
+ }
745
+ return value instanceof Node || value instanceof getWindow(value).Node;
746
+ }
747
+ function isElement(value) {
748
+ if (!hasWindow()) {
749
+ return false;
750
+ }
751
+ return value instanceof Element || value instanceof getWindow(value).Element;
752
+ }
753
+ function isHTMLElement(value) {
754
+ if (!hasWindow()) {
755
+ return false;
756
+ }
757
+ return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
758
+ }
759
+ function isShadowRoot(value) {
760
+ if (!hasWindow() || typeof ShadowRoot === 'undefined') {
761
+ return false;
762
+ }
763
+ return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
764
+ }
765
+ function isOverflowElement(element) {
766
+ const {
767
+ overflow,
768
+ overflowX,
769
+ overflowY,
770
+ display
771
+ } = getComputedStyle$1(element);
772
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';
773
+ }
774
+ function isTableElement(element) {
775
+ return /^(table|td|th)$/.test(getNodeName(element));
776
+ }
777
+ function isTopLayer(element) {
778
+ try {
779
+ if (element.matches(':popover-open')) {
780
+ return true;
781
+ }
782
+ } catch (_e) {
783
+ // no-op
784
+ }
785
+ try {
786
+ return element.matches(':modal');
787
+ } catch (_e) {
788
+ return false;
789
+ }
790
+ }
791
+ const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
792
+ const containRe = /paint|layout|strict|content/;
793
+ const isNotNone = value => !!value && value !== 'none';
794
+ let isWebKitValue;
795
+ function isContainingBlock(elementOrCss) {
796
+ const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
797
+
798
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
799
+ // https://drafts.csswg.org/css-transforms-2/#individual-transforms
800
+ return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');
801
+ }
802
+ function getContainingBlock(element) {
803
+ let currentNode = getParentNode(element);
804
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
805
+ if (isContainingBlock(currentNode)) {
806
+ return currentNode;
807
+ } else if (isTopLayer(currentNode)) {
808
+ return null;
809
+ }
810
+ currentNode = getParentNode(currentNode);
811
+ }
812
+ return null;
813
+ }
814
+ function isWebKit() {
815
+ if (isWebKitValue == null) {
816
+ isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');
817
+ }
818
+ return isWebKitValue;
819
+ }
820
+ function isLastTraversableNode(node) {
821
+ return /^(html|body|#document)$/.test(getNodeName(node));
822
+ }
823
+ function getComputedStyle$1(element) {
824
+ return getWindow(element).getComputedStyle(element);
825
+ }
826
+ function getNodeScroll(element) {
827
+ if (isElement(element)) {
828
+ return {
829
+ scrollLeft: element.scrollLeft,
830
+ scrollTop: element.scrollTop
831
+ };
832
+ }
833
+ return {
834
+ scrollLeft: element.scrollX,
835
+ scrollTop: element.scrollY
836
+ };
837
+ }
838
+ function getParentNode(node) {
839
+ if (getNodeName(node) === 'html') {
840
+ return node;
841
+ }
842
+ const result =
843
+ // Step into the shadow DOM of the parent of a slotted node.
844
+ node.assignedSlot ||
845
+ // DOM Element detected.
846
+ node.parentNode ||
847
+ // ShadowRoot detected.
848
+ isShadowRoot(node) && node.host ||
849
+ // Fallback.
850
+ getDocumentElement(node);
851
+ return isShadowRoot(result) ? result.host : result;
852
+ }
853
+ function getNearestOverflowAncestor(node) {
854
+ const parentNode = getParentNode(node);
855
+ if (isLastTraversableNode(parentNode)) {
856
+ return (node.ownerDocument || node).body;
857
+ }
858
+ if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
859
+ return parentNode;
860
+ }
861
+ return getNearestOverflowAncestor(parentNode);
862
+ }
863
+ function getOverflowAncestors(node, list, traverseIframes) {
864
+ var _node$ownerDocument2;
865
+ if (list === void 0) {
866
+ list = [];
867
+ }
868
+ if (traverseIframes === void 0) {
869
+ traverseIframes = true;
870
+ }
871
+ const scrollableAncestor = getNearestOverflowAncestor(node);
872
+ const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
873
+ const win = getWindow(scrollableAncestor);
874
+ if (isBody) {
875
+ const frameElement = getFrameElement(win);
876
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
877
+ } else {
878
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
879
+ }
880
+ }
881
+ function getFrameElement(win) {
882
+ return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
883
+ }
884
+
885
+ function getCssDimensions(element) {
886
+ const css = getComputedStyle$1(element);
887
+ // In testing environments, the `width` and `height` properties are empty
888
+ // strings for SVG elements, returning NaN. Fallback to `0` in this case.
889
+ let width = parseFloat(css.width) || 0;
890
+ let height = parseFloat(css.height) || 0;
891
+ const hasOffset = isHTMLElement(element);
892
+ const offsetWidth = hasOffset ? element.offsetWidth : width;
893
+ const offsetHeight = hasOffset ? element.offsetHeight : height;
894
+ const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
895
+ if (shouldFallback) {
896
+ width = offsetWidth;
897
+ height = offsetHeight;
898
+ }
899
+ return {
900
+ width,
901
+ height,
902
+ $: shouldFallback
903
+ };
904
+ }
905
+
906
+ function unwrapElement(element) {
907
+ return !isElement(element) ? element.contextElement : element;
908
+ }
909
+
910
+ function getScale(element) {
911
+ const domElement = unwrapElement(element);
912
+ if (!isHTMLElement(domElement)) {
913
+ return createCoords(1);
914
+ }
915
+ const rect = domElement.getBoundingClientRect();
916
+ const {
917
+ width,
918
+ height,
919
+ $
920
+ } = getCssDimensions(domElement);
921
+ let x = ($ ? round(rect.width) : rect.width) / width;
922
+ let y = ($ ? round(rect.height) : rect.height) / height;
923
+
924
+ // 0, NaN, or Infinity should always fallback to 1.
925
+
926
+ if (!x || !Number.isFinite(x)) {
927
+ x = 1;
928
+ }
929
+ if (!y || !Number.isFinite(y)) {
930
+ y = 1;
931
+ }
932
+ return {
933
+ x,
934
+ y
935
+ };
936
+ }
937
+
938
+ const noOffsets = /*#__PURE__*/createCoords(0);
939
+ function getVisualOffsets(element) {
940
+ const win = getWindow(element);
941
+ if (!isWebKit() || !win.visualViewport) {
942
+ return noOffsets;
943
+ }
944
+ return {
945
+ x: win.visualViewport.offsetLeft,
946
+ y: win.visualViewport.offsetTop
947
+ };
948
+ }
949
+ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
950
+ if (isFixed === void 0) {
951
+ isFixed = false;
952
+ }
953
+ return !!floatingOffsetParent && isFixed && floatingOffsetParent === getWindow(element);
954
+ }
955
+
956
+ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
957
+ if (includeScale === void 0) {
958
+ includeScale = false;
959
+ }
960
+ if (isFixedStrategy === void 0) {
961
+ isFixedStrategy = false;
962
+ }
963
+ const clientRect = element.getBoundingClientRect();
964
+ const domElement = unwrapElement(element);
965
+ let scale = createCoords(1);
966
+ if (includeScale) {
967
+ if (offsetParent) {
968
+ if (isElement(offsetParent)) {
969
+ scale = getScale(offsetParent);
970
+ }
971
+ } else {
972
+ scale = getScale(element);
973
+ }
974
+ }
975
+ const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
976
+ let x = (clientRect.left + visualOffsets.x) / scale.x;
977
+ let y = (clientRect.top + visualOffsets.y) / scale.y;
978
+ let width = clientRect.width / scale.x;
979
+ let height = clientRect.height / scale.y;
980
+ if (domElement && offsetParent) {
981
+ const win = getWindow(domElement);
982
+ const offsetWin = isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
983
+ let currentWin = win;
984
+ let currentIFrame = getFrameElement(currentWin);
985
+ while (currentIFrame && offsetWin !== currentWin) {
986
+ const iframeScale = getScale(currentIFrame);
987
+ const iframeRect = currentIFrame.getBoundingClientRect();
988
+ const css = getComputedStyle$1(currentIFrame);
989
+ const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
990
+ const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
991
+ x *= iframeScale.x;
992
+ y *= iframeScale.y;
993
+ width *= iframeScale.x;
994
+ height *= iframeScale.y;
995
+ x += left;
996
+ y += top;
997
+ currentWin = getWindow(currentIFrame);
998
+ currentIFrame = getFrameElement(currentWin);
999
+ }
1000
+ }
1001
+ return rectToClientRect({
1002
+ width,
1003
+ height,
1004
+ x,
1005
+ y
1006
+ });
1007
+ }
1008
+
1009
+ // If <html> has a CSS width greater than the viewport, then this will be
1010
+ // incorrect for RTL.
1011
+ function getWindowScrollBarX(element, rect) {
1012
+ const leftScroll = getNodeScroll(element).scrollLeft;
1013
+ if (!rect) {
1014
+ return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
1015
+ }
1016
+ return rect.left + leftScroll;
1017
+ }
1018
+
1019
+ function getHTMLOffset(documentElement, scroll) {
1020
+ const htmlRect = documentElement.getBoundingClientRect();
1021
+ const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
1022
+ const y = htmlRect.top + scroll.scrollTop;
1023
+ return {
1024
+ x,
1025
+ y
1026
+ };
1027
+ }
1028
+
1029
+ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
1030
+ let {
1031
+ elements,
1032
+ rect,
1033
+ offsetParent,
1034
+ strategy
1035
+ } = _ref;
1036
+ const isFixed = strategy === 'fixed';
1037
+ const documentElement = getDocumentElement(offsetParent);
1038
+ const topLayer = elements ? isTopLayer(elements.floating) : false;
1039
+ if (offsetParent === documentElement || topLayer && isFixed) {
1040
+ return rect;
1041
+ }
1042
+ let scroll = {
1043
+ scrollLeft: 0,
1044
+ scrollTop: 0
1045
+ };
1046
+ let scale = createCoords(1);
1047
+ const offsets = createCoords(0);
1048
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
1049
+ if (isOffsetParentAnElement || !isFixed) {
1050
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1051
+ scroll = getNodeScroll(offsetParent);
1052
+ }
1053
+ if (isOffsetParentAnElement) {
1054
+ const offsetRect = getBoundingClientRect(offsetParent);
1055
+ scale = getScale(offsetParent);
1056
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
1057
+ offsets.y = offsetRect.y + offsetParent.clientTop;
1058
+ }
1059
+ }
1060
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
1061
+ return {
1062
+ width: rect.width * scale.x,
1063
+ height: rect.height * scale.y,
1064
+ x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
1065
+ y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
1066
+ };
1067
+ }
1068
+
1069
+ function getClientRects(element) {
1070
+ return element.getClientRects ? Array.from(element.getClientRects()) : [];
1071
+ }
1072
+
1073
+ // Gets the entire size of the scrollable document area, even extending outside
1074
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable.
1075
+ function getDocumentRect(html) {
1076
+ const scroll = getNodeScroll(html);
1077
+ const body = html.ownerDocument.body;
1078
+ const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
1079
+ const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
1080
+ let x = -scroll.scrollLeft + getWindowScrollBarX(html);
1081
+ const y = -scroll.scrollTop;
1082
+ if (getComputedStyle$1(body).direction === 'rtl') {
1083
+ x += max(html.clientWidth, body.clientWidth) - width;
1084
+ }
1085
+ return {
1086
+ width,
1087
+ height,
1088
+ x,
1089
+ y
1090
+ };
1091
+ }
1092
+
1093
+ // Safety check: ensure the scrollbar space is reasonable in case this
1094
+ // calculation is affected by unusual styles.
1095
+ // Most scrollbars leave 15-18px of space.
1096
+ const SCROLLBAR_MAX = 25;
1097
+ function getViewportRect(element, strategy, rootBoundary) {
1098
+ if (rootBoundary === void 0) {
1099
+ rootBoundary = 'viewport';
1100
+ }
1101
+ const isLayoutViewport = rootBoundary === 'layoutViewport';
1102
+ const win = getWindow(element);
1103
+ const html = getDocumentElement(element);
1104
+ const visualViewport = win.visualViewport;
1105
+ let width = html.clientWidth;
1106
+ let height = html.clientHeight;
1107
+ let x = 0;
1108
+ let y = 0;
1109
+ if (visualViewport) {
1110
+ // Client coordinates are relative to the layout viewport, except in
1111
+ // WebKit with an `absolute` strategy, where they are relative to the
1112
+ // visual viewport.
1113
+ const layoutRelativeClientCoords = !isWebKit() || strategy === 'fixed';
1114
+ if (isLayoutViewport) {
1115
+ if (!layoutRelativeClientCoords) {
1116
+ x = -visualViewport.offsetLeft;
1117
+ y = -visualViewport.offsetTop;
1118
+ }
1119
+ } else {
1120
+ width = visualViewport.width;
1121
+ height = visualViewport.height;
1122
+ if (layoutRelativeClientCoords) {
1123
+ x = visualViewport.offsetLeft;
1124
+ y = visualViewport.offsetTop;
1125
+ }
1126
+ }
1127
+ }
1128
+ const windowScrollbarX = getWindowScrollBarX(html);
1129
+ // `scrollbar-gutter: stable` on the <html> reserves gutter space that shrinks
1130
+ // the visual width but isn't reflected in `html.clientWidth`, so subtract it.
1131
+ // Only the inline-end (right) gutter can hold the scrollbar; `both-edges` also
1132
+ // reserves an empty inline-start gutter that clips nothing, so exclude just
1133
+ // the one scrollbar-side gutter — halve the measured (two-gutter) total. A
1134
+ // left-side scrollbar (`windowScrollbarX > 0`) is already handled by
1135
+ // `getHTMLOffset`/`visualViewport.width`; skip it here.
1136
+ if (windowScrollbarX <= 0) {
1137
+ const doc = html.ownerDocument;
1138
+ const body = doc.body;
1139
+ const bodyStyles = getComputedStyle(body);
1140
+ const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
1141
+ const reservedWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
1142
+ const gutter = getComputedStyle(html).scrollbarGutter === 'stable both-edges' ? reservedWidth / 2 : reservedWidth;
1143
+ if (gutter <= SCROLLBAR_MAX) {
1144
+ width -= gutter;
1145
+ }
1146
+ }
1147
+ return {
1148
+ width,
1149
+ height,
1150
+ x,
1151
+ y
1152
+ };
1153
+ }
1154
+
1155
+ // Returns the inner client rect, subtracting scrollbars if present.
1156
+ function getInnerBoundingClientRect(element, strategy) {
1157
+ const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
1158
+ const top = clientRect.top + element.clientTop;
1159
+ const left = clientRect.left + element.clientLeft;
1160
+ const scale = getScale(element);
1161
+ const width = element.clientWidth * scale.x;
1162
+ const height = element.clientHeight * scale.y;
1163
+ const x = left * scale.x;
1164
+ const y = top * scale.y;
1165
+ return {
1166
+ width,
1167
+ height,
1168
+ x,
1169
+ y
1170
+ };
1171
+ }
1172
+ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
1173
+ let rect;
1174
+ if (clippingAncestor === 'viewport' || clippingAncestor === 'layoutViewport') {
1175
+ rect = getViewportRect(element, strategy, clippingAncestor);
1176
+ } else if (clippingAncestor === 'document') {
1177
+ rect = getDocumentRect(getDocumentElement(element));
1178
+ } else if (isElement(clippingAncestor)) {
1179
+ rect = getInnerBoundingClientRect(clippingAncestor, strategy);
1180
+ } else {
1181
+ const visualOffsets = getVisualOffsets(element);
1182
+ rect = {
1183
+ x: clippingAncestor.x - visualOffsets.x,
1184
+ y: clippingAncestor.y - visualOffsets.y,
1185
+ width: clippingAncestor.width,
1186
+ height: clippingAncestor.height
1187
+ };
1188
+ }
1189
+ return rectToClientRect(rect);
1190
+ }
1191
+
1192
+ // A "clipping ancestor" is an `overflow` element with the characteristic of
1193
+ // clipping (or hiding) child elements. This returns all clipping ancestors
1194
+ // of the given element up the tree.
1195
+ function getClippingElementAncestors(element, cache) {
1196
+ const cachedResult = cache.get(element);
1197
+ if (cachedResult) {
1198
+ return cachedResult;
1199
+ }
1200
+ let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
1201
+ let lastKeptComputedStyle = null;
1202
+ const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
1203
+ let currentNode = elementIsFixed ? getParentNode(element) : element;
1204
+
1205
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1206
+ while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
1207
+ const computedStyle = getComputedStyle$1(currentNode);
1208
+ const currentNodeIsContaining = isContainingBlock(currentNode);
1209
+ // Position of the containing block chain below the current node. A fixed
1210
+ // element whose containing block hasn't been found yet is a fixed chain.
1211
+ const lastPosition = lastKeptComputedStyle ? lastKeptComputedStyle.position : elementIsFixed ? 'fixed' : '';
1212
+
1213
+ // A non-containing ancestor does not clip the element when the chain
1214
+ // below it escapes it: a fixed chain escapes all ancestors up to the
1215
+ // next containing block, an absolute chain escapes static ancestors.
1216
+ const shouldDropCurrentNode = !currentNodeIsContaining && (lastPosition === 'fixed' || lastPosition === 'absolute' && computedStyle.position === 'static');
1217
+ if (shouldDropCurrentNode) {
1218
+ // Drop non-containing blocks.
1219
+ result = result.filter(ancestor => ancestor !== currentNode);
1220
+ } else {
1221
+ // The kept node carries the chain position for the next iteration.
1222
+ lastKeptComputedStyle = computedStyle;
1223
+ }
1224
+ currentNode = getParentNode(currentNode);
1225
+ }
1226
+ cache.set(element, result);
1227
+ return result;
1228
+ }
1229
+
1230
+ // Gets the maximum area that the element is visible in due to any number of
1231
+ // clipping ancestors.
1232
+ function getClippingRect(_ref) {
1233
+ let {
1234
+ element,
1235
+ boundary,
1236
+ rootBoundary,
1237
+ strategy
1238
+ } = _ref;
1239
+ const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
1240
+ const clippingAncestors = [...elementClippingAncestors, rootBoundary];
1241
+ const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
1242
+ let top = firstRect.top;
1243
+ let right = firstRect.right;
1244
+ let bottom = firstRect.bottom;
1245
+ let left = firstRect.left;
1246
+ for (let i = 1; i < clippingAncestors.length; i++) {
1247
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
1248
+ top = max(rect.top, top);
1249
+ right = min(rect.right, right);
1250
+ bottom = min(rect.bottom, bottom);
1251
+ left = max(rect.left, left);
1252
+ }
1253
+ return {
1254
+ width: right - left,
1255
+ height: bottom - top,
1256
+ x: left,
1257
+ y: top
1258
+ };
1259
+ }
1260
+
1261
+ function getDimensions(element) {
1262
+ const {
1263
+ width,
1264
+ height
1265
+ } = getCssDimensions(element);
1266
+ return {
1267
+ width,
1268
+ height
1269
+ };
1270
+ }
1271
+
1272
+ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
1273
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
1274
+ const documentElement = getDocumentElement(offsetParent);
1275
+ const isFixed = strategy === 'fixed';
1276
+ const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
1277
+ let scroll = {
1278
+ scrollLeft: 0,
1279
+ scrollTop: 0
1280
+ };
1281
+ const offsets = createCoords(0);
1282
+ if (isOffsetParentAnElement || !isFixed) {
1283
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1284
+ scroll = getNodeScroll(offsetParent);
1285
+ }
1286
+ if (isOffsetParentAnElement) {
1287
+ const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
1288
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
1289
+ offsets.y = offsetRect.y + offsetParent.clientTop;
1290
+ }
1291
+ }
1292
+
1293
+ // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
1294
+ // Firefox with layout.scrollbar.side = 3 in about:config to test this.
1295
+ if (!isOffsetParentAnElement && documentElement) {
1296
+ offsets.x = getWindowScrollBarX(documentElement);
1297
+ }
1298
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
1299
+ const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
1300
+ const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
1301
+ return {
1302
+ x,
1303
+ y,
1304
+ width: rect.width,
1305
+ height: rect.height
1306
+ };
1307
+ }
1308
+
1309
+ function isStaticPositioned(element) {
1310
+ return getComputedStyle$1(element).position === 'static';
1311
+ }
1312
+
1313
+ function getTrueOffsetParent(element, polyfill) {
1314
+ if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
1315
+ return null;
1316
+ }
1317
+ if (polyfill) {
1318
+ return polyfill(element);
1319
+ }
1320
+ let rawOffsetParent = element.offsetParent;
1321
+
1322
+ // Firefox returns the <html> element as the offsetParent if it's non-static,
1323
+ // while Chrome and Safari return the <body> element. The <body> element must
1324
+ // be used to perform the correct calculations even if the <html> element is
1325
+ // non-static.
1326
+ if (getDocumentElement(element) === rawOffsetParent) {
1327
+ rawOffsetParent = rawOffsetParent.ownerDocument.body;
1328
+ }
1329
+ return rawOffsetParent;
1330
+ }
1331
+
1332
+ // Gets the closest ancestor positioned element. Handles some edge cases,
1333
+ // such as table ancestors and cross browser bugs.
1334
+ function getOffsetParent(element, polyfill) {
1335
+ const win = getWindow(element);
1336
+ if (isTopLayer(element)) {
1337
+ return win;
1338
+ }
1339
+ if (!isHTMLElement(element)) {
1340
+ let svgOffsetParent = getParentNode(element);
1341
+ while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
1342
+ if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
1343
+ return svgOffsetParent;
1344
+ }
1345
+ svgOffsetParent = getParentNode(svgOffsetParent);
1346
+ }
1347
+ return win;
1348
+ }
1349
+ let offsetParent = getTrueOffsetParent(element, polyfill);
1350
+ while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
1351
+ offsetParent = getTrueOffsetParent(offsetParent, polyfill);
1352
+ }
1353
+ if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
1354
+ return win;
1355
+ }
1356
+ return offsetParent || getContainingBlock(element) || win;
1357
+ }
1358
+
1359
+ const getElementRects = async function (data) {
1360
+ const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
1361
+ const getDimensionsFn = this.getDimensions;
1362
+ const floatingDimensions = await getDimensionsFn(data.floating);
1363
+ return {
1364
+ reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
1365
+ floating: {
1366
+ x: 0,
1367
+ y: 0,
1368
+ width: floatingDimensions.width,
1369
+ height: floatingDimensions.height
1370
+ }
1371
+ };
1372
+ };
1373
+
1374
+ function isRTL(element) {
1375
+ return getComputedStyle$1(element).direction === 'rtl';
1376
+ }
1377
+
1378
+ const platform = {
1379
+ convertOffsetParentRelativeRectToViewportRelativeRect,
1380
+ getDocumentElement,
1381
+ getClippingRect,
1382
+ getOffsetParent,
1383
+ getElementRects,
1384
+ getClientRects,
1385
+ getDimensions,
1386
+ getScale,
1387
+ isElement,
1388
+ isRTL
1389
+ };
1390
+
1391
+ function rectsAreEqual(a, b) {
1392
+ return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
1393
+ }
1394
+
1395
+ // https://samthor.au/2021/observing-dom/
1396
+ function observeMove(element, onMove, ancestorResize) {
1397
+ let io = null;
1398
+ let timeoutId;
1399
+ const root = getDocumentElement(element);
1400
+ function cleanup() {
1401
+ var _io;
1402
+ clearTimeout(timeoutId);
1403
+ (_io = io) == null || _io.disconnect();
1404
+ io = null;
1405
+ }
1406
+ function refresh(skip, threshold) {
1407
+ if (skip === void 0) {
1408
+ skip = false;
1409
+ }
1410
+ if (threshold === void 0) {
1411
+ threshold = 1;
1412
+ }
1413
+ cleanup();
1414
+ const elementRectForRootMargin = element.getBoundingClientRect();
1415
+ const {
1416
+ left,
1417
+ top,
1418
+ width,
1419
+ height
1420
+ } = elementRectForRootMargin;
1421
+ if (!skip) {
1422
+ onMove();
1423
+ }
1424
+ if (!width || !height) {
1425
+ return;
1426
+ }
1427
+ const insetTop = floor(top);
1428
+ const insetRight = floor(root.clientWidth - (left + width));
1429
+ const insetBottom = floor(root.clientHeight - (top + height));
1430
+ const insetLeft = floor(left);
1431
+ const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
1432
+ const options = {
1433
+ rootMargin,
1434
+ threshold: max(0, min(1, threshold)) || 1
1435
+ };
1436
+ let isFirstUpdate = true;
1437
+ function handleObserve(entries) {
1438
+ const ratio = entries[0].intersectionRatio;
1439
+
1440
+ // The entry is a snapshot, so the reference may have moved since the
1441
+ // intersection was computed (under performance constraints, or between
1442
+ // consecutive frames of a multi-frame layout shift). The reported ratio
1443
+ // and the observed area are stale in that case and cannot be trusted to
1444
+ // detect subsequent movement, so refresh regardless of the ratio.
1445
+ if (!rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
1446
+ return refresh();
1447
+ }
1448
+ if (ratio !== threshold) {
1449
+ if (!isFirstUpdate) {
1450
+ return refresh();
1451
+ }
1452
+ if (!ratio) {
1453
+ // If the reference is clipped in place, the ratio is 0. Throttle
1454
+ // the refresh to prevent an infinite loop of updates.
1455
+ timeoutId = setTimeout(() => {
1456
+ refresh(false, 1e-7);
1457
+ }, 1000);
1458
+ } else {
1459
+ refresh(false, ratio);
1460
+ }
1461
+ }
1462
+ isFirstUpdate = false;
1463
+ }
1464
+
1465
+ // Older browsers don't support a `document` as the root and will throw an
1466
+ // error.
1467
+ try {
1468
+ io = new IntersectionObserver(handleObserve, {
1469
+ ...options,
1470
+ // Handle <iframe>s
1471
+ root: root.ownerDocument
1472
+ });
1473
+ } catch (_e) {
1474
+ io = new IntersectionObserver(handleObserve, options);
1475
+ }
1476
+ io.observe(element);
1477
+ }
1478
+ const win = getWindow(element);
1479
+ // The window is a resize ancestor, so when `ancestorResize` is enabled its
1480
+ // listener already runs the update on resize. Here we only need to rebuild
1481
+ // the `IntersectionObserver` for the new root size, skipping a redundant
1482
+ // update. When `ancestorResize` is disabled, this becomes the sole update.
1483
+ const handleResize = () => refresh(ancestorResize);
1484
+ win.addEventListener('resize', handleResize);
1485
+ refresh(true);
1486
+ return () => {
1487
+ win.removeEventListener('resize', handleResize);
1488
+ cleanup();
1489
+ };
1490
+ }
1491
+
1492
+ /**
1493
+ * Automatically updates the position of the floating element when necessary.
1494
+ * Should only be called when the floating element is mounted on the DOM or
1495
+ * visible on the screen.
1496
+ * @returns cleanup function that should be invoked when the floating element is
1497
+ * removed from the DOM or hidden from the screen.
1498
+ * @see https://floating-ui.com/docs/autoUpdate
1499
+ */
1500
+ function autoUpdate(reference, floating, update, options) {
1501
+ if (options === void 0) {
1502
+ options = {};
1503
+ }
1504
+ const {
1505
+ ancestorScroll = true,
1506
+ ancestorResize = true,
1507
+ elementResize = typeof ResizeObserver === 'function',
1508
+ layoutShift = typeof IntersectionObserver === 'function',
1509
+ animationFrame = false
1510
+ } = options;
1511
+ const referenceEl = unwrapElement(reference);
1512
+ const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...(floating ? getOverflowAncestors(floating) : [])] : [];
1513
+ ancestors.forEach(ancestor => {
1514
+ ancestorScroll && ancestor.addEventListener('scroll', update);
1515
+ ancestorResize && ancestor.addEventListener('resize', update);
1516
+ });
1517
+ const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update, ancestorResize) : null;
1518
+ let reobserveFrame = -1;
1519
+ let resizeObserver = null;
1520
+ if (elementResize) {
1521
+ resizeObserver = new ResizeObserver(_ref => {
1522
+ let [firstEntry] = _ref;
1523
+ if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {
1524
+ // Prevent update loops when using the `size` middleware.
1525
+ // https://github.com/floating-ui/floating-ui/issues/1740
1526
+ resizeObserver.unobserve(floating);
1527
+ cancelAnimationFrame(reobserveFrame);
1528
+ reobserveFrame = requestAnimationFrame(() => {
1529
+ var _resizeObserver;
1530
+ (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
1531
+ });
1532
+ }
1533
+ update();
1534
+ });
1535
+ if (referenceEl && !animationFrame) {
1536
+ resizeObserver.observe(referenceEl);
1537
+ }
1538
+ if (floating) {
1539
+ resizeObserver.observe(floating);
1540
+ }
1541
+ }
1542
+ let frameId;
1543
+ let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
1544
+ if (animationFrame) {
1545
+ frameLoop();
1546
+ }
1547
+ function frameLoop() {
1548
+ const nextRefRect = getBoundingClientRect(reference);
1549
+ if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
1550
+ update();
1551
+ }
1552
+ prevRefRect = nextRefRect;
1553
+ frameId = requestAnimationFrame(frameLoop);
1554
+ }
1555
+ update();
1556
+ return () => {
1557
+ var _resizeObserver2;
1558
+ ancestors.forEach(ancestor => {
1559
+ ancestorScroll && ancestor.removeEventListener('scroll', update);
1560
+ ancestorResize && ancestor.removeEventListener('resize', update);
1561
+ });
1562
+ cleanupIo == null || cleanupIo();
1563
+ (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
1564
+ resizeObserver = null;
1565
+ if (animationFrame) {
1566
+ cancelAnimationFrame(frameId);
1567
+ }
1568
+ };
1569
+ }
1570
+
1571
+ /**
1572
+ * Modifies the placement by translating the floating element along the
1573
+ * specified axes.
1574
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
1575
+ * object may be passed.
1576
+ * @see https://floating-ui.com/docs/offset
1577
+ */
1578
+ const offset = offset$1;
1579
+
1580
+ /**
1581
+ * Optimizes the visibility of the floating element by shifting it in order to
1582
+ * keep it in view when it will overflow the clipping boundary.
1583
+ * @see https://floating-ui.com/docs/shift
1584
+ */
1585
+ const shift = shift$1;
1586
+
1587
+ /**
1588
+ * Optimizes the visibility of the floating element by flipping the `placement`
1589
+ * in order to keep it in view when the preferred placement(s) will overflow the
1590
+ * clipping boundary. Alternative to `autoPlacement`.
1591
+ * @see https://floating-ui.com/docs/flip
1592
+ */
1593
+ const flip = flip$1;
1594
+
1595
+ /**
1596
+ * Provides data to position an inner element of the floating element so that it
1597
+ * appears centered to the reference element.
1598
+ * @see https://floating-ui.com/docs/arrow
1599
+ */
1600
+ const arrow = arrow$1;
1601
+
1602
+ /**
1603
+ * Computes the `x` and `y` coordinates that will place the floating element
1604
+ * next to a given reference element.
1605
+ */
1606
+ const computePosition = (reference, floating, options) => {
1607
+ // This caches the expensive `getClippingElementAncestors` function so that
1608
+ // multiple lifecycle resets re-use the same result. It only lives for a
1609
+ // single call. If other functions become expensive, we can add them as well.
1610
+ const cache = new Map();
1611
+ const mergedOptions = options != null ? options : {};
1612
+ const platformWithCache = {
1613
+ ...platform,
1614
+ ...mergedOptions.platform,
1615
+ _c: cache
1616
+ };
1617
+ return computePosition$1(reference, floating, {
1618
+ ...mergedOptions,
1619
+ platform: platformWithCache
1620
+ });
1621
+ };
1622
+
1623
+ exports.arrow = arrow;
1624
+ exports.autoUpdate = autoUpdate;
1625
+ exports.computePosition = computePosition;
1626
+ exports.flip = flip;
1627
+ exports.offset = offset;
1628
+ exports.shift = shift;