@bi-digital/react 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (544) hide show
  1. package/dist/{alert-footer-CHHPzMiX.d.mts → alert-footer-D_kCDrhn.d.mts} +109 -232
  2. package/dist/components/alert/alert-footer.d.mts +1 -14
  3. package/dist/components/alert/alert-footer.mjs +15 -2
  4. package/dist/components/alert/alert-footer.mjs.map +1 -0
  5. package/dist/components/alert/alert.d.mts +1 -14
  6. package/dist/components/alert/alert.mjs +33 -2
  7. package/dist/components/alert/alert.mjs.map +1 -0
  8. package/dist/components/alert/index.d.mts +1 -14
  9. package/dist/components/alert/index.mjs +3 -5
  10. package/dist/components/avatar/avatar.d.mts +1 -14
  11. package/dist/components/avatar/avatar.mjs +37 -2
  12. package/dist/components/avatar/avatar.mjs.map +1 -0
  13. package/dist/components/avatar/index.d.mts +1 -14
  14. package/dist/components/avatar/index.mjs +2 -4
  15. package/dist/components/badge/badge.d.mts +1 -14
  16. package/dist/components/badge/badge.mjs +19 -2
  17. package/dist/components/badge/badge.mjs.map +1 -0
  18. package/dist/components/badge/index.d.mts +1 -14
  19. package/dist/components/badge/index.mjs +2 -4
  20. package/dist/components/button/button.d.mts +1 -14
  21. package/dist/components/button/button.mjs +39 -4
  22. package/dist/components/button/button.mjs.map +1 -0
  23. package/dist/components/button/index.d.mts +1 -14
  24. package/dist/components/button/index.mjs +2 -6
  25. package/dist/components/card/card-action.d.mts +1 -14
  26. package/dist/components/card/card-action.mjs +21 -6
  27. package/dist/components/card/card-action.mjs.map +1 -0
  28. package/dist/components/card/card-actions.d.mts +1 -14
  29. package/dist/components/card/card-actions.mjs +14 -2
  30. package/dist/components/card/card-actions.mjs.map +1 -0
  31. package/dist/components/card/card-content.d.mts +1 -14
  32. package/dist/components/card/card-content.mjs +15 -2
  33. package/dist/components/card/card-content.mjs.map +1 -0
  34. package/dist/components/card/card-date.d.mts +1 -14
  35. package/dist/components/card/card-date.mjs +14 -2
  36. package/dist/components/card/card-date.mjs.map +1 -0
  37. package/dist/components/card/card-header.d.mts +1 -14
  38. package/dist/components/card/card-header.mjs +37 -2
  39. package/dist/components/card/card-header.mjs.map +1 -0
  40. package/dist/components/card/card-media.d.mts +1 -14
  41. package/dist/components/card/card-media.mjs +17 -2
  42. package/dist/components/card/card-media.mjs.map +1 -0
  43. package/dist/components/card/card.d.mts +1 -14
  44. package/dist/components/card/card.mjs +19 -2
  45. package/dist/components/card/card.mjs.map +1 -0
  46. package/dist/components/card/index.d.mts +1 -14
  47. package/dist/components/card/index.mjs +8 -14
  48. package/dist/components/checkbox/checkbox-subsection.d.mts +1 -14
  49. package/dist/components/checkbox/checkbox-subsection.mjs +15 -2
  50. package/dist/components/checkbox/checkbox-subsection.mjs.map +1 -0
  51. package/dist/components/checkbox/checkbox.d.mts +1 -14
  52. package/dist/components/checkbox/checkbox.mjs +59 -11
  53. package/dist/components/checkbox/checkbox.mjs.map +1 -0
  54. package/dist/components/checkbox/index.d.mts +1 -14
  55. package/dist/components/checkbox/index.mjs +3 -14
  56. package/dist/components/chip/chip.d.mts +1 -14
  57. package/dist/components/chip/chip.mjs +24 -2
  58. package/dist/components/chip/chip.mjs.map +1 -0
  59. package/dist/components/chip/index.d.mts +1 -14
  60. package/dist/components/chip/index.mjs +2 -4
  61. package/dist/components/details/details-content.d.mts +1 -14
  62. package/dist/components/details/details-content.mjs +20 -2
  63. package/dist/components/details/details-content.mjs.map +1 -0
  64. package/dist/components/details/details-summary.d.mts +1 -14
  65. package/dist/components/details/details-summary.mjs +20 -2
  66. package/dist/components/details/details-summary.mjs.map +1 -0
  67. package/dist/components/details/details.d.mts +1 -14
  68. package/dist/components/details/details.mjs +33 -2
  69. package/dist/components/details/details.mjs.map +1 -0
  70. package/dist/components/details/index.d.mts +1 -14
  71. package/dist/components/details/index.mjs +4 -6
  72. package/dist/components/dialog/dialog-close-button.d.mts +1 -14
  73. package/dist/components/dialog/dialog-close-button.mjs +28 -6
  74. package/dist/components/dialog/dialog-close-button.mjs.map +1 -0
  75. package/dist/components/dialog/dialog-content.d.mts +1 -14
  76. package/dist/components/dialog/dialog-content.mjs +16 -2
  77. package/dist/components/dialog/dialog-content.mjs.map +1 -0
  78. package/dist/components/dialog/dialog-footer.d.mts +1 -14
  79. package/dist/components/dialog/dialog-footer.mjs +16 -2
  80. package/dist/components/dialog/dialog-footer.mjs.map +1 -0
  81. package/dist/components/dialog/dialog-header.d.mts +1 -14
  82. package/dist/components/dialog/dialog-header.mjs +16 -2
  83. package/dist/components/dialog/dialog-header.mjs.map +1 -0
  84. package/dist/components/dialog/dialog-trigger-context.d.mts +1 -1
  85. package/dist/components/dialog/dialog-trigger-context.mjs +21 -2
  86. package/dist/components/dialog/dialog-trigger-context.mjs.map +1 -0
  87. package/dist/components/dialog/dialog-trigger.d.mts +1 -14
  88. package/dist/components/dialog/dialog-trigger.mjs +20 -7
  89. package/dist/components/dialog/dialog-trigger.mjs.map +1 -0
  90. package/dist/components/dialog/dialog.d.mts +1 -14
  91. package/dist/components/dialog/dialog.mjs +62 -4
  92. package/dist/components/dialog/dialog.mjs.map +1 -0
  93. package/dist/components/dialog/index.d.mts +2 -14
  94. package/dist/components/dialog/index.mjs +8 -15
  95. package/dist/components/dropdown/dropdown-button.d.mts +1 -14
  96. package/dist/components/dropdown/dropdown-button.mjs +14 -6
  97. package/dist/components/dropdown/dropdown-button.mjs.map +1 -0
  98. package/dist/components/dropdown/dropdown-item.d.mts +1 -1
  99. package/dist/components/dropdown/dropdown-item.mjs +9 -2
  100. package/dist/components/dropdown/dropdown-item.mjs.map +1 -0
  101. package/dist/components/dropdown/dropdown-list.d.mts +1 -1
  102. package/dist/components/dropdown/dropdown-list.mjs +9 -2
  103. package/dist/components/dropdown/dropdown-list.mjs.map +1 -0
  104. package/dist/components/dropdown/dropdown-trigger-context.d.mts +1 -14
  105. package/dist/components/dropdown/dropdown-trigger-context.mjs +27 -12
  106. package/dist/components/dropdown/dropdown-trigger-context.mjs.map +1 -0
  107. package/dist/components/dropdown/dropdown-trigger.d.mts +1 -14
  108. package/dist/components/dropdown/dropdown-trigger.mjs +12 -12
  109. package/dist/components/dropdown/dropdown-trigger.mjs.map +1 -0
  110. package/dist/components/dropdown/dropdown.d.mts +1 -14
  111. package/dist/components/dropdown/dropdown.mjs +43 -12
  112. package/dist/components/dropdown/dropdown.mjs.map +1 -0
  113. package/dist/components/dropdown/index.d.mts +3 -14
  114. package/dist/components/dropdown/index.mjs +7 -19
  115. package/dist/components/field/field-affix.d.mts +1 -14
  116. package/dist/components/field/field-affix.mjs +43 -2
  117. package/dist/components/field/field-affix.mjs.map +1 -0
  118. package/dist/components/field/field-description.d.mts +1 -14
  119. package/dist/components/field/field-description.mjs +14 -2
  120. package/dist/components/field/field-description.mjs.map +1 -0
  121. package/dist/components/field/field.d.mts +1 -14
  122. package/dist/components/field/field.mjs +28 -2
  123. package/dist/components/field/field.mjs.map +1 -0
  124. package/dist/components/field/index.d.mts +1 -14
  125. package/dist/components/field/index.mjs +4 -6
  126. package/dist/components/fieldset/fieldset-description.d.mts +1 -14
  127. package/dist/components/fieldset/fieldset-description.mjs +12 -2
  128. package/dist/components/fieldset/fieldset-description.mjs.map +1 -0
  129. package/dist/components/fieldset/fieldset-legend.d.mts +1 -14
  130. package/dist/components/fieldset/fieldset-legend.mjs +18 -4
  131. package/dist/components/fieldset/fieldset-legend.mjs.map +1 -0
  132. package/dist/components/fieldset/fieldset.d.mts +1 -14
  133. package/dist/components/fieldset/fieldset.mjs +15 -2
  134. package/dist/components/fieldset/fieldset.mjs.map +1 -0
  135. package/dist/components/fieldset/index.d.mts +1 -14
  136. package/dist/components/fieldset/index.mjs +4 -8
  137. package/dist/components/filter-group/filter-group.d.mts +1 -14
  138. package/dist/components/filter-group/filter-group.mjs +38 -2
  139. package/dist/components/filter-group/filter-group.mjs.map +1 -0
  140. package/dist/components/filter-group/index.d.mts +1 -14
  141. package/dist/components/filter-group/index.mjs +2 -4
  142. package/dist/components/footer/footer-links.d.mts +1 -1
  143. package/dist/components/footer/footer-links.mjs +13 -2
  144. package/dist/components/footer/footer-links.mjs.map +1 -0
  145. package/dist/components/footer/footer.d.mts +1 -14
  146. package/dist/components/footer/footer.mjs +110 -6
  147. package/dist/components/footer/footer.mjs.map +1 -0
  148. package/dist/components/footer/index.d.mts +2 -14
  149. package/dist/components/footer/index.mjs +3 -9
  150. package/dist/components/index.d.mts +9 -15
  151. package/dist/components/index.mjs +104 -120
  152. package/dist/components/input/index.d.mts +1 -14
  153. package/dist/components/input/index.mjs +2 -4
  154. package/dist/components/input/input.d.mts +1 -14
  155. package/dist/components/input/input.mjs +23 -2
  156. package/dist/components/input/input.mjs.map +1 -0
  157. package/dist/components/label/index.d.mts +1 -14
  158. package/dist/components/label/index.mjs +2 -4
  159. package/dist/components/label/label.d.mts +1 -14
  160. package/dist/components/label/label.mjs +16 -2
  161. package/dist/components/label/label.mjs.map +1 -0
  162. package/dist/components/link/index.d.mts +1 -14
  163. package/dist/components/link/index.mjs +2 -4
  164. package/dist/components/link/link.d.mts +1 -14
  165. package/dist/components/link/link.mjs +17 -2
  166. package/dist/components/link/link.mjs.map +1 -0
  167. package/dist/components/logo/index.d.mts +1 -14
  168. package/dist/components/logo/index.mjs +2 -4
  169. package/dist/components/logo/logo.d.mts +1 -14
  170. package/dist/components/logo/logo.mjs +17 -2
  171. package/dist/components/logo/logo.mjs.map +1 -0
  172. package/dist/components/navbar/index.d.mts +1 -14
  173. package/dist/components/navbar/index.mjs +3 -13
  174. package/dist/components/navbar/navbar.d.mts +1 -14
  175. package/dist/components/navbar/navbar.mjs +22 -4
  176. package/dist/components/navbar/navbar.mjs.map +1 -0
  177. package/dist/components/navbar/sub-navbar.d.mts +1 -14
  178. package/dist/components/navbar/sub-navbar.mjs +27 -8
  179. package/dist/components/navbar/sub-navbar.mjs.map +1 -0
  180. package/dist/components/pagination/index.d.mts +2 -14
  181. package/dist/components/pagination/index.mjs +4 -10
  182. package/dist/components/pagination/pagination-button.d.mts +1 -14
  183. package/dist/components/pagination/pagination-button.mjs +13 -6
  184. package/dist/components/pagination/pagination-button.mjs.map +1 -0
  185. package/dist/components/pagination/pagination-item.d.mts +1 -1
  186. package/dist/components/pagination/pagination-item.mjs +13 -2
  187. package/dist/components/pagination/pagination-item.mjs.map +1 -0
  188. package/dist/components/pagination/pagination.d.mts +1 -14
  189. package/dist/components/pagination/pagination.mjs +15 -2
  190. package/dist/components/pagination/pagination.mjs.map +1 -0
  191. package/dist/components/popover/index.d.mts +2 -14
  192. package/dist/components/popover/index.mjs +4 -12
  193. package/dist/components/popover/popover-trigger-context.d.mts +1 -1
  194. package/dist/components/popover/popover-trigger-context.mjs +37 -2
  195. package/dist/components/popover/popover-trigger-context.mjs.map +1 -0
  196. package/dist/components/popover/popover-trigger.d.mts +1 -14
  197. package/dist/components/popover/popover-trigger.mjs +43 -7
  198. package/dist/components/popover/popover-trigger.mjs.map +1 -0
  199. package/dist/components/popover/popover.d.mts +1 -14
  200. package/dist/components/popover/popover.mjs +110 -5
  201. package/dist/components/popover/popover.mjs.map +1 -0
  202. package/dist/components/radio/index.d.mts +1 -14
  203. package/dist/components/radio/index.mjs +2 -12
  204. package/dist/components/radio/radio.d.mts +1 -14
  205. package/dist/components/radio/radio.mjs +46 -10
  206. package/dist/components/radio/radio.mjs.map +1 -0
  207. package/dist/components/search/index.d.mts +1 -14
  208. package/dist/components/search/index.mjs +2 -14
  209. package/dist/components/search/search.d.mts +1 -14
  210. package/dist/components/search/search.mjs +59 -12
  211. package/dist/components/search/search.mjs.map +1 -0
  212. package/dist/components/select/index.d.mts +1 -14
  213. package/dist/components/select/index.mjs +4 -6
  214. package/dist/components/select/select-optgroup.d.mts +1 -14
  215. package/dist/components/select/select-optgroup.mjs +12 -2
  216. package/dist/components/select/select-optgroup.mjs.map +1 -0
  217. package/dist/components/select/select-option.d.mts +1 -14
  218. package/dist/components/select/select-option.mjs +12 -2
  219. package/dist/components/select/select-option.mjs.map +1 -0
  220. package/dist/components/select/select.d.mts +1 -14
  221. package/dist/components/select/select.mjs +24 -2
  222. package/dist/components/select/select.mjs.map +1 -0
  223. package/dist/components/selectfield/index.d.mts +1 -14
  224. package/dist/components/selectfield/index.mjs +2 -16
  225. package/dist/components/selectfield/selectfield.d.mts +1 -14
  226. package/dist/components/selectfield/selectfield.mjs +55 -14
  227. package/dist/components/selectfield/selectfield.mjs.map +1 -0
  228. package/dist/components/skip-link/index.d.mts +1 -14
  229. package/dist/components/skip-link/index.mjs +2 -4
  230. package/dist/components/skip-link/skip-link.d.mts +1 -14
  231. package/dist/components/skip-link/skip-link.mjs +15 -2
  232. package/dist/components/skip-link/skip-link.mjs.map +1 -0
  233. package/dist/components/spinner/index.d.mts +1 -14
  234. package/dist/components/spinner/index.mjs +2 -4
  235. package/dist/components/spinner/spinner.d.mts +1 -14
  236. package/dist/components/spinner/spinner.mjs +15 -2
  237. package/dist/components/spinner/spinner.mjs.map +1 -0
  238. package/dist/components/sticky-header/index.d.mts +1 -2
  239. package/dist/components/sticky-header/index.mjs +2 -4
  240. package/dist/components/sticky-header/sticky-header.d.mts +1 -1
  241. package/dist/components/sticky-header/sticky-header.mjs +18 -2
  242. package/dist/components/sticky-header/sticky-header.mjs.map +1 -0
  243. package/dist/components/switch/index.d.mts +1 -14
  244. package/dist/components/switch/index.mjs +2 -12
  245. package/dist/components/switch/switch.d.mts +1 -14
  246. package/dist/components/switch/switch.mjs +35 -10
  247. package/dist/components/switch/switch.mjs.map +1 -0
  248. package/dist/components/tabs/index.d.mts +2 -15
  249. package/dist/components/tabs/index.mjs +5 -11
  250. package/dist/components/tabs/tab.d.mts +1 -14
  251. package/dist/components/tabs/tab.mjs +28 -6
  252. package/dist/components/tabs/tab.mjs.map +1 -0
  253. package/dist/components/tabs/tabs-list.d.mts +1 -14
  254. package/dist/components/tabs/tabs-list.mjs +14 -2
  255. package/dist/components/tabs/tabs-list.mjs.map +1 -0
  256. package/dist/components/tabs/tabs-panel.d.mts +1 -14
  257. package/dist/components/tabs/tabs-panel.mjs +18 -2
  258. package/dist/components/tabs/tabs-panel.mjs.map +1 -0
  259. package/dist/components/tabs/tabs.d.mts +2 -15
  260. package/dist/components/tabs/tabs.mjs +51 -2
  261. package/dist/components/tabs/tabs.mjs.map +1 -0
  262. package/dist/components/textarea/index.d.mts +1 -14
  263. package/dist/components/textarea/index.mjs +2 -4
  264. package/dist/components/textarea/textarea.d.mts +1 -14
  265. package/dist/components/textarea/textarea.mjs +15 -2
  266. package/dist/components/textarea/textarea.mjs.map +1 -0
  267. package/dist/components/textfield/index.d.mts +1 -14
  268. package/dist/components/textfield/index.mjs +2 -16
  269. package/dist/components/textfield/textfield.d.mts +1 -14
  270. package/dist/components/textfield/textfield.mjs +68 -14
  271. package/dist/components/textfield/textfield.mjs.map +1 -0
  272. package/dist/components/validation-message/index.d.mts +1 -14
  273. package/dist/components/validation-message/index.mjs +2 -4
  274. package/dist/components/validation-message/validation-message.d.mts +1 -14
  275. package/dist/components/validation-message/validation-message.mjs +16 -2
  276. package/dist/components/validation-message/validation-message.mjs.map +1 -0
  277. package/dist/dialog-trigger-context-CAC7jh1K.d.mts +20 -0
  278. package/dist/{dropdown-item-wInrqt83.d.mts → dropdown-item-aYyDctA9.d.mts} +3 -3
  279. package/dist/{dropdown-list-z14BOCh4.d.mts → dropdown-list-Dg3yJhKc.d.mts} +3 -3
  280. package/dist/{footer-links-C7vC-VD7.d.mts → footer-links-BiBVxNWE.d.mts} +3 -3
  281. package/dist/main.d.mts +15 -18
  282. package/dist/main.mjs +76 -121
  283. package/dist/{pagination-item-cKOuhfhM.d.mts → pagination-item-BNyKs6wz.d.mts} +3 -3
  284. package/dist/{popover-trigger-context-sQGC75uf.d.mts → popover-trigger-context-DTh-_AMm.d.mts} +5 -5
  285. package/dist/{sticky-header-Y0uT-nWI.d.mts → sticky-header-CLZPboYg.d.mts} +3 -3
  286. package/dist/{types-Bgj7p8nD.d.mts → types-BXsMIYrD.d.mts} +1 -1
  287. package/dist/{types-Biyhmxh9.d.mts → types-CgAV-Uiu.d.mts} +1 -1
  288. package/dist/types.d.mts +1 -1
  289. package/dist/types.mjs +1 -1
  290. package/dist/{useCheckboxGroup-BUpI46_M.d.mts → useCheckboxGroup-Boc_tLJ3.d.mts} +1 -1
  291. package/dist/{useIsElementAboveViewport-BcIGWQqn.d.mts → useIsElementAboveViewport-DmYCeDwm.d.mts} +1 -1
  292. package/dist/useIsomorphicLayoutEffect-DXCY5AxR.d.mts +7 -0
  293. package/dist/{useMediaQuery-CIi3MXay.d.mts → useMediaQuery-Cz0DvE8S.d.mts} +1 -1
  294. package/dist/{useScrollDirection-Cm7w2CbB.d.mts → useScrollDirection-CepdY5lA.d.mts} +1 -1
  295. package/dist/utilities/hooks/index.d.mts +6 -16
  296. package/dist/utilities/hooks/index.mjs +7 -9
  297. package/dist/utilities/hooks/useCheckboxGroup/useCheckboxGroup.d.mts +1 -1
  298. package/dist/utilities/hooks/useCheckboxGroup/useCheckboxGroup.mjs +16 -2
  299. package/dist/{useCheckboxGroup-B2Px3eiz.mjs.map → utilities/hooks/useCheckboxGroup/useCheckboxGroup.mjs.map} +1 -1
  300. package/dist/utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.d.mts +1 -1
  301. package/dist/utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.mjs +18 -2
  302. package/dist/{useIsElementAboveViewport-BaSLEYQk.mjs.map → utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.mjs.map} +1 -1
  303. package/dist/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.mts +1 -1
  304. package/dist/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs +6 -2
  305. package/dist/{useIsomorphicLayoutEffect-Bn8aiGVW.mjs.map → utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs.map} +1 -1
  306. package/dist/utilities/hooks/useMediaQuery/useMediaQuery.d.mts +1 -1
  307. package/dist/utilities/hooks/useMediaQuery/useMediaQuery.mjs +42 -3
  308. package/dist/{useMediaQuery-BRGC6S33.mjs.map → utilities/hooks/useMediaQuery/useMediaQuery.mjs.map} +1 -1
  309. package/dist/utilities/hooks/useMergeRefs/useMergeRefs.mjs +40 -2
  310. package/dist/{useMergeRefs-DeEL5hK6.mjs.map → utilities/hooks/useMergeRefs/useMergeRefs.mjs.map} +1 -1
  311. package/dist/utilities/hooks/usePagination/usePagination.d.mts +1 -14
  312. package/dist/utilities/hooks/usePagination/usePagination.mjs +95 -2
  313. package/dist/{usePagination-aBXSjQBp.mjs.map → utilities/hooks/usePagination/usePagination.mjs.map} +1 -1
  314. package/dist/utilities/hooks/useScrollDirection/useScrollDirection.d.mts +1 -1
  315. package/dist/utilities/hooks/useScrollDirection/useScrollDirection.mjs +26 -2
  316. package/dist/{useScrollDirection-C36-HP3S.mjs.map → utilities/hooks/useScrollDirection/useScrollDirection.mjs.map} +1 -1
  317. package/dist/utilities/index.d.mts +7 -17
  318. package/dist/utilities/index.mjs +8 -9
  319. package/dist/utilities/types.d.mts +1 -1
  320. package/dist/utilities/types.mjs +1 -1
  321. package/dist/vanilla/dropdown/index.mjs +2 -3
  322. package/dist/vanilla/dropdown/index.mjs.map +1 -1
  323. package/dist/vanilla/index.mjs +3 -3
  324. package/dist/vanilla/popover/index.mjs +83 -2
  325. package/dist/vanilla/popover/index.mjs.map +1 -0
  326. package/dist/vanilla/sub-navbar/index.mjs +1 -1
  327. package/dist/vanilla/sub-navbar/index.mjs.map +1 -1
  328. package/package.json +14 -16
  329. package/dist/alert-B-qfyhxc.mjs +0 -35
  330. package/dist/alert-B-qfyhxc.mjs.map +0 -1
  331. package/dist/alert-footer-CiXj-PGD.mjs +0 -17
  332. package/dist/alert-footer-CiXj-PGD.mjs.map +0 -1
  333. package/dist/alert-vOhEayej.mjs +0 -1
  334. package/dist/avatar-5e5_er9-.mjs +0 -1
  335. package/dist/avatar-BEjjwjRn.mjs +0 -39
  336. package/dist/avatar-BEjjwjRn.mjs.map +0 -1
  337. package/dist/badge-D6dJHxi2.mjs +0 -1
  338. package/dist/badge-tAjYsQEq.mjs +0 -21
  339. package/dist/badge-tAjYsQEq.mjs.map +0 -1
  340. package/dist/button-BoSub8TT.mjs +0 -1
  341. package/dist/button-Df0Se51p.mjs +0 -40
  342. package/dist/button-Df0Se51p.mjs.map +0 -1
  343. package/dist/card-BwkKWLCT.mjs +0 -21
  344. package/dist/card-BwkKWLCT.mjs.map +0 -1
  345. package/dist/card-action-DAFhhfZ5.mjs +0 -22
  346. package/dist/card-action-DAFhhfZ5.mjs.map +0 -1
  347. package/dist/card-actions-DQXkkGKI.mjs +0 -16
  348. package/dist/card-actions-DQXkkGKI.mjs.map +0 -1
  349. package/dist/card-content-zQQxsR9_.mjs +0 -17
  350. package/dist/card-content-zQQxsR9_.mjs.map +0 -1
  351. package/dist/card-date-PwKzeTzD.mjs +0 -16
  352. package/dist/card-date-PwKzeTzD.mjs.map +0 -1
  353. package/dist/card-header-DkKr5o8N.mjs +0 -39
  354. package/dist/card-header-DkKr5o8N.mjs.map +0 -1
  355. package/dist/card-media-Bv2VWU3K.mjs +0 -19
  356. package/dist/card-media-Bv2VWU3K.mjs.map +0 -1
  357. package/dist/card-qYOn8pIl.mjs +0 -1
  358. package/dist/checkbox-BPiURV39.mjs +0 -1
  359. package/dist/checkbox-DLGjrSt2.mjs +0 -58
  360. package/dist/checkbox-DLGjrSt2.mjs.map +0 -1
  361. package/dist/checkbox-subsection-Dq60blow.mjs +0 -17
  362. package/dist/checkbox-subsection-Dq60blow.mjs.map +0 -1
  363. package/dist/chip-BEnK1Tg4.mjs +0 -1
  364. package/dist/chip-BzRByPTB.mjs +0 -26
  365. package/dist/chip-BzRByPTB.mjs.map +0 -1
  366. package/dist/components/drawer/drawer-close-button.d.mts +0 -15
  367. package/dist/components/drawer/drawer-close-button.mjs +0 -16
  368. package/dist/components/drawer/drawer-content.d.mts +0 -15
  369. package/dist/components/drawer/drawer-content.mjs +0 -16
  370. package/dist/components/drawer/drawer-footer.d.mts +0 -15
  371. package/dist/components/drawer/drawer-footer.mjs +0 -16
  372. package/dist/components/drawer/drawer-header.d.mts +0 -15
  373. package/dist/components/drawer/drawer-header.mjs +0 -16
  374. package/dist/components/drawer/drawer-trigger-context.d.mts +0 -2
  375. package/dist/components/drawer/drawer-trigger-context.mjs +0 -16
  376. package/dist/components/drawer/drawer-trigger.d.mts +0 -15
  377. package/dist/components/drawer/drawer-trigger.mjs +0 -16
  378. package/dist/components/drawer/drawer.d.mts +0 -15
  379. package/dist/components/drawer/drawer.mjs +0 -16
  380. package/dist/components/drawer/index.d.mts +0 -15
  381. package/dist/components/drawer/index.mjs +0 -23
  382. package/dist/details-BFP82eFe.mjs +0 -35
  383. package/dist/details-BFP82eFe.mjs.map +0 -1
  384. package/dist/details-BTkav6FR.mjs +0 -1
  385. package/dist/details-content-B-YYBzuY.mjs +0 -22
  386. package/dist/details-content-B-YYBzuY.mjs.map +0 -1
  387. package/dist/details-summary-BiXSfZfC.mjs +0 -22
  388. package/dist/details-summary-BiXSfZfC.mjs.map +0 -1
  389. package/dist/dialog-CRNSJEfp.mjs +0 -91
  390. package/dist/dialog-CRNSJEfp.mjs.map +0 -1
  391. package/dist/dialog-DOBwB8ll.mjs +0 -1
  392. package/dist/dialog-close-button-CJZrsHfN.mjs +0 -24
  393. package/dist/dialog-close-button-CJZrsHfN.mjs.map +0 -1
  394. package/dist/dialog-content-CrbstN2A.mjs +0 -18
  395. package/dist/dialog-content-CrbstN2A.mjs.map +0 -1
  396. package/dist/dialog-footer-CFNIIiwS.mjs +0 -18
  397. package/dist/dialog-footer-CFNIIiwS.mjs.map +0 -1
  398. package/dist/dialog-header-Duz76tEF.mjs +0 -18
  399. package/dist/dialog-header-Duz76tEF.mjs.map +0 -1
  400. package/dist/dialog-trigger-CEvyANEF.mjs +0 -22
  401. package/dist/dialog-trigger-CEvyANEF.mjs.map +0 -1
  402. package/dist/dialog-trigger-context-Dlf5Whq6.d.mts +0 -15
  403. package/dist/dialog-trigger-context-DqM6S5V-.mjs +0 -16
  404. package/dist/dialog-trigger-context-DqM6S5V-.mjs.map +0 -1
  405. package/dist/drawer-DYVQZLML.mjs +0 -1
  406. package/dist/drawer-Ds2MkNjF.mjs +0 -46
  407. package/dist/drawer-Ds2MkNjF.mjs.map +0 -1
  408. package/dist/drawer-close-button-gjzgYKSw.mjs +0 -12
  409. package/dist/drawer-close-button-gjzgYKSw.mjs.map +0 -1
  410. package/dist/drawer-content-DxY9zj19.mjs +0 -14
  411. package/dist/drawer-content-DxY9zj19.mjs.map +0 -1
  412. package/dist/drawer-footer-DEZvKbZ9.mjs +0 -14
  413. package/dist/drawer-footer-DEZvKbZ9.mjs.map +0 -1
  414. package/dist/drawer-header-8MFxFbKD.mjs +0 -14
  415. package/dist/drawer-header-8MFxFbKD.mjs.map +0 -1
  416. package/dist/drawer-trigger-CUFZtPLQ.mjs +0 -12
  417. package/dist/drawer-trigger-CUFZtPLQ.mjs.map +0 -1
  418. package/dist/drawer-trigger-context-3hDiHR-k.d.mts +0 -13
  419. package/dist/drawer-trigger-context-DUYTD43h.mjs +0 -9
  420. package/dist/drawer-trigger-context-DUYTD43h.mjs.map +0 -1
  421. package/dist/dropdown-4m7NoRv7.mjs +0 -1
  422. package/dist/dropdown-BZZfp-oa.mjs +0 -44
  423. package/dist/dropdown-BZZfp-oa.mjs.map +0 -1
  424. package/dist/dropdown-button-DFRD5c3-.mjs +0 -15
  425. package/dist/dropdown-button-DFRD5c3-.mjs.map +0 -1
  426. package/dist/dropdown-item-rKVicLWJ.mjs +0 -11
  427. package/dist/dropdown-item-rKVicLWJ.mjs.map +0 -1
  428. package/dist/dropdown-list-CCnbpP3r.mjs +0 -11
  429. package/dist/dropdown-list-CCnbpP3r.mjs.map +0 -1
  430. package/dist/dropdown-trigger-FhCAqY-W.mjs +0 -13
  431. package/dist/dropdown-trigger-FhCAqY-W.mjs.map +0 -1
  432. package/dist/dropdown-trigger-context-DnY5awW2.mjs +0 -28
  433. package/dist/dropdown-trigger-context-DnY5awW2.mjs.map +0 -1
  434. package/dist/field-BIBlDQoi.mjs +0 -30
  435. package/dist/field-BIBlDQoi.mjs.map +0 -1
  436. package/dist/field-D8ZE0keC.mjs +0 -1
  437. package/dist/field-affix-DNZXWyx-.mjs +0 -45
  438. package/dist/field-affix-DNZXWyx-.mjs.map +0 -1
  439. package/dist/field-description-Dt2qLchF.mjs +0 -16
  440. package/dist/field-description-Dt2qLchF.mjs.map +0 -1
  441. package/dist/fieldset-CcTi6Dum.mjs +0 -17
  442. package/dist/fieldset-CcTi6Dum.mjs.map +0 -1
  443. package/dist/fieldset-EvlIWkNe.mjs +0 -1
  444. package/dist/fieldset-description-C2jSmnwk.mjs +0 -14
  445. package/dist/fieldset-description-C2jSmnwk.mjs.map +0 -1
  446. package/dist/fieldset-legend-CSlBCJxg.mjs +0 -19
  447. package/dist/fieldset-legend-CSlBCJxg.mjs.map +0 -1
  448. package/dist/filter-group-CqgWY3I1.mjs +0 -1
  449. package/dist/filter-group-Djsr79gi.mjs +0 -40
  450. package/dist/filter-group-Djsr79gi.mjs.map +0 -1
  451. package/dist/footer-CFU5m0uE.mjs +0 -1
  452. package/dist/footer-TlcFTYFC.mjs +0 -111
  453. package/dist/footer-TlcFTYFC.mjs.map +0 -1
  454. package/dist/footer-links-CE3T7evI.mjs +0 -15
  455. package/dist/footer-links-CE3T7evI.mjs.map +0 -1
  456. package/dist/hooks-DndqtgSU.mjs +0 -1
  457. package/dist/input-8Az-c2K1.mjs +0 -1
  458. package/dist/input-DU_8Z4cN.mjs +0 -25
  459. package/dist/input-DU_8Z4cN.mjs.map +0 -1
  460. package/dist/label-BrxPu7QD.mjs +0 -1
  461. package/dist/label-QZyUM8Df.mjs +0 -18
  462. package/dist/label-QZyUM8Df.mjs.map +0 -1
  463. package/dist/link-CU3kBJB8.mjs +0 -19
  464. package/dist/link-CU3kBJB8.mjs.map +0 -1
  465. package/dist/link-CYniSrWk.mjs +0 -1
  466. package/dist/logo-Cj67VFWL.mjs +0 -1
  467. package/dist/logo-d750FIud.mjs +0 -19
  468. package/dist/logo-d750FIud.mjs.map +0 -1
  469. package/dist/navbar-A1xgv5BY.mjs +0 -23
  470. package/dist/navbar-A1xgv5BY.mjs.map +0 -1
  471. package/dist/navbar-Ch7rJsaf.mjs +0 -1
  472. package/dist/pagination-BK24_vW3.mjs +0 -1
  473. package/dist/pagination-Drbd1147.mjs +0 -17
  474. package/dist/pagination-Drbd1147.mjs.map +0 -1
  475. package/dist/pagination-button-F_ZOuaN-.mjs +0 -14
  476. package/dist/pagination-button-F_ZOuaN-.mjs.map +0 -1
  477. package/dist/pagination-item-BfCHe-dC.mjs +0 -15
  478. package/dist/pagination-item-BfCHe-dC.mjs.map +0 -1
  479. package/dist/popover-B8P0dE2-.mjs +0 -85
  480. package/dist/popover-B8P0dE2-.mjs.map +0 -1
  481. package/dist/popover-CGqBsAam.mjs +0 -112
  482. package/dist/popover-CGqBsAam.mjs.map +0 -1
  483. package/dist/popover-C_lxbEYu.mjs +0 -1
  484. package/dist/popover-trigger-BDYAK6jg.mjs +0 -44
  485. package/dist/popover-trigger-BDYAK6jg.mjs.map +0 -1
  486. package/dist/popover-trigger-context-DZFORTLq.mjs +0 -39
  487. package/dist/popover-trigger-context-DZFORTLq.mjs.map +0 -1
  488. package/dist/radio-CikbRUIb.mjs +0 -45
  489. package/dist/radio-CikbRUIb.mjs.map +0 -1
  490. package/dist/radio-DoypqZjr.mjs +0 -1
  491. package/dist/search-B71qkkhd.mjs +0 -1
  492. package/dist/search-B9aa1_12.mjs +0 -58
  493. package/dist/search-B9aa1_12.mjs.map +0 -1
  494. package/dist/select-D80ba0X2.mjs +0 -1
  495. package/dist/select-optgroup-BzjAhfRU.mjs +0 -14
  496. package/dist/select-optgroup-BzjAhfRU.mjs.map +0 -1
  497. package/dist/select-option-DLslGIIp.mjs +0 -14
  498. package/dist/select-option-DLslGIIp.mjs.map +0 -1
  499. package/dist/select-vw7cl3d_.mjs +0 -26
  500. package/dist/select-vw7cl3d_.mjs.map +0 -1
  501. package/dist/selectfield-BrXuaiOJ.mjs +0 -53
  502. package/dist/selectfield-BrXuaiOJ.mjs.map +0 -1
  503. package/dist/selectfield-acG211WN.mjs +0 -1
  504. package/dist/skip-link-0SNs70lF.mjs +0 -17
  505. package/dist/skip-link-0SNs70lF.mjs.map +0 -1
  506. package/dist/skip-link-DtgRPO9V.mjs +0 -1
  507. package/dist/spinner-C4Z-GQVz.mjs +0 -1
  508. package/dist/spinner-xmvtWIZ0.mjs +0 -17
  509. package/dist/spinner-xmvtWIZ0.mjs.map +0 -1
  510. package/dist/sticky-header-Bwee74P6.mjs +0 -20
  511. package/dist/sticky-header-Bwee74P6.mjs.map +0 -1
  512. package/dist/sticky-header-j3zwZtj_.mjs +0 -1
  513. package/dist/sub-navbar-Dke7jNvB.mjs +0 -28
  514. package/dist/sub-navbar-Dke7jNvB.mjs.map +0 -1
  515. package/dist/switch-CJtJvYv6.mjs +0 -34
  516. package/dist/switch-CJtJvYv6.mjs.map +0 -1
  517. package/dist/switch-DZsMi5Uf.mjs +0 -1
  518. package/dist/tab-Bm-746fZ.mjs +0 -27
  519. package/dist/tab-Bm-746fZ.mjs.map +0 -1
  520. package/dist/tabs-BYYODpZJ.mjs +0 -24
  521. package/dist/tabs-BYYODpZJ.mjs.map +0 -1
  522. package/dist/tabs-Bdxundn7.mjs +0 -1
  523. package/dist/tabs-list-BAnPnTwx.mjs +0 -20
  524. package/dist/tabs-list-BAnPnTwx.mjs.map +0 -1
  525. package/dist/tabs-panel-GX2ZoOvH.mjs +0 -21
  526. package/dist/tabs-panel-GX2ZoOvH.mjs.map +0 -1
  527. package/dist/textarea-BDAr1Unx.mjs +0 -1
  528. package/dist/textarea-CHhlswpx.mjs +0 -17
  529. package/dist/textarea-CHhlswpx.mjs.map +0 -1
  530. package/dist/textfield-BFLLhYVI.mjs +0 -1
  531. package/dist/textfield-rcRRkfZB.mjs +0 -65
  532. package/dist/textfield-rcRRkfZB.mjs.map +0 -1
  533. package/dist/useCheckboxGroup-B2Px3eiz.mjs +0 -17
  534. package/dist/useIsElementAboveViewport-BaSLEYQk.mjs +0 -20
  535. package/dist/useIsomorphicLayoutEffect-Bn8aiGVW.mjs +0 -8
  536. package/dist/useIsomorphicLayoutEffect-PJRUcTSc.d.mts +0 -7
  537. package/dist/useMediaQuery-BRGC6S33.mjs +0 -44
  538. package/dist/useMergeRefs-DeEL5hK6.mjs +0 -42
  539. package/dist/usePagination-aBXSjQBp.mjs +0 -97
  540. package/dist/useScrollDirection-C36-HP3S.mjs +0 -28
  541. package/dist/validation-message-376E95cm.mjs +0 -18
  542. package/dist/validation-message-376E95cm.mjs.map +0 -1
  543. package/dist/validation-message-YHHHXfxE.mjs +0 -1
  544. /package/dist/{index-C3reD4RP.d.mts → index-D9zIjQH9.d.mts} +0 -0
@@ -1,15 +1,2 @@
1
- import "../../useCheckboxGroup-BUpI46_M.mjs";
2
- import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
3
- import "../../types-Bgj7p8nD.mjs";
4
- import { d as TabsPanel, f as TabsPanelProps } from "../../alert-footer-CHHPzMiX.mjs";
5
- import "../../dialog-trigger-context-Dlf5Whq6.mjs";
6
- import "../../drawer-trigger-context-3hDiHR-k.mjs";
7
- import "../../popover-trigger-context-sQGC75uf.mjs";
8
- import "../../dropdown-item-wInrqt83.mjs";
9
- import "../../dropdown-list-z14BOCh4.mjs";
10
- import "../../footer-links-C7vC-VD7.mjs";
11
- import "../../pagination-item-cKOuhfhM.mjs";
12
- import "../../sticky-header-Y0uT-nWI.mjs";
13
- import "../../index-C3reD4RP.mjs";
14
- import "../../useIsElementAboveViewport-BcIGWQqn.mjs";
1
+ import { d as TabsPanel, f as TabsPanelProps } from "../../alert-footer-D_kCDrhn.mjs";
15
2
  export { TabsPanel, TabsPanelProps };
@@ -1,3 +1,19 @@
1
- import { t as TabsPanel } from "../../tabs-panel-GX2ZoOvH.mjs";
1
+ import { Context } from "./tabs.mjs";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { use } from "react";
4
+ //#region src/components/tabs/tabs-panel.tsx
5
+ const TabsPanel = ({ value, id, children, dark, ref, ...props }) => {
6
+ const { getPrefixedValue } = use(Context);
7
+ return /* @__PURE__ */ jsx("ds-tabpanel", {
8
+ suppressHydrationWarning: true,
9
+ ref,
10
+ "data-dark": dark,
11
+ id: id ?? getPrefixedValue?.(value),
12
+ ...props,
13
+ children
14
+ });
15
+ };
16
+ //#endregion
17
+ export { TabsPanel };
2
18
 
3
- export { TabsPanel };
19
+ //# sourceMappingURL=tabs-panel.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs-panel.mjs","names":[],"sources":["../../../src/components/tabs/tabs-panel.tsx"],"sourcesContent":["import type { DSTabPanelElement } from '@digdir/designsystemet-web';\nimport { use, type HTMLAttributes, type Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { Context } from './tabs';\n\nexport type TabsPanelProps = MergeRight<\n DefaultProps & HTMLAttributes<DSTabPanelElement>,\n {\n /** A unique value that associates the content with a trigger. */\n value: string;\n ref?: Ref<DSTabPanelElement>;\n }\n>;\n\nexport const TabsPanel = ({ value, id, children, dark, ref, ...props }: TabsPanelProps) => {\n const { getPrefixedValue } = use(Context);\n\n return (\n <ds-tabpanel\n suppressHydrationWarning // Since <ds-tablist> adds attributes\n ref={ref}\n data-dark={dark}\n id={id ?? getPrefixedValue?.(value)}\n {...props}\n >\n {children}\n </ds-tabpanel>\n );\n};\n"],"mappings":";;;;AAeA,MAAa,aAAa,EAAE,OAAO,IAAI,UAAU,MAAM,KAAK,GAAG,YAA4B;CACzF,MAAM,EAAE,qBAAqB,IAAI,QAAQ;AAEzC,QACE,oBAAC,eAAD;EACE,0BAAA;EACK;EACL,aAAW;EACX,IAAI,MAAM,mBAAmB,MAAM;EACnC,GAAI;EAEH;EACW,CAAA"}
@@ -1,15 +1,2 @@
1
- import "../../useCheckboxGroup-BUpI46_M.mjs";
2
- import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
3
- import "../../types-Bgj7p8nD.mjs";
4
- import { _ as Tabs, v as TabsProps } from "../../alert-footer-CHHPzMiX.mjs";
5
- import "../../dialog-trigger-context-Dlf5Whq6.mjs";
6
- import "../../drawer-trigger-context-3hDiHR-k.mjs";
7
- import "../../popover-trigger-context-sQGC75uf.mjs";
8
- import "../../dropdown-item-wInrqt83.mjs";
9
- import "../../dropdown-list-z14BOCh4.mjs";
10
- import "../../footer-links-C7vC-VD7.mjs";
11
- import "../../pagination-item-cKOuhfhM.mjs";
12
- import "../../sticky-header-Y0uT-nWI.mjs";
13
- import "../../index-C3reD4RP.mjs";
14
- import "../../useIsElementAboveViewport-BcIGWQqn.mjs";
15
- export { Tabs, TabsProps };
1
+ import { _ as Context, b as TabsProps, v as Tabs, y as TabsContext } from "../../alert-footer-D_kCDrhn.mjs";
2
+ export { Context, Tabs, TabsContext, TabsProps };
@@ -1,3 +1,52 @@
1
- import { t as Tabs } from "../../tabs-BYYODpZJ.mjs";
1
+ import { useMergeRefs } from "../../utilities/hooks/useMergeRefs/useMergeRefs.mjs";
2
+ import "@digdir/designsystemet-web";
3
+ import clsx from "clsx/lite";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { createContext, useEffect, useId, useRef } from "react";
6
+ import { useControllableState } from "@radix-ui/react-use-controllable-state";
7
+ //#region src/components/tabs/tabs.tsx
8
+ const Context = createContext({});
9
+ const Tabs = ({ defaultValue, value: valueProp, onChange, children, className, dark, ref, ...props }) => {
10
+ const isControlled = valueProp !== void 0;
11
+ const tabsRef = useRef(null);
12
+ const isProgrammaticClick = useRef(false);
13
+ const valuePrefix = useId();
14
+ const mergedRefs = useMergeRefs([ref, tabsRef]);
15
+ const [value, setValue] = useControllableState({
16
+ prop: valueProp,
17
+ onChange,
18
+ defaultProp: defaultValue || "",
19
+ caller: "Tabs"
20
+ });
21
+ useEffect(() => {
22
+ if (!tabsRef.current || valueProp === void 0) return;
23
+ tabsRef.current?.tabList?.tabs?.forEach((tab) => {
24
+ if (tab.getAttribute("data-value") === valueProp) {
25
+ isProgrammaticClick.current = true;
26
+ tab.click();
27
+ isProgrammaticClick.current = false;
28
+ }
29
+ });
30
+ }, [valueProp]);
31
+ return /* @__PURE__ */ jsx(Context, {
32
+ value: {
33
+ isControlled,
34
+ currentValue: value,
35
+ defaultValue,
36
+ onChange: setValue,
37
+ getPrefixedValue: (value) => value && `${valuePrefix}-${value}`
38
+ },
39
+ children: /* @__PURE__ */ jsx("ds-tabs", {
40
+ suppressHydrationWarning: true,
41
+ ref: mergedRefs,
42
+ className: clsx("bi-tabs", className),
43
+ "data-dark": dark,
44
+ ...props,
45
+ children
46
+ })
47
+ });
48
+ };
49
+ //#endregion
50
+ export { Context, Tabs };
2
51
 
3
- export { Tabs };
52
+ //# sourceMappingURL=tabs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.mjs","names":[],"sources":["../../../src/components/tabs/tabs.tsx"],"sourcesContent":["import { createContext, useEffect, useId, useRef } from 'react';\nimport type { HTMLAttributes, Ref } from 'react';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport type { DSTabsElement } from '@digdir/designsystemet-web';\nimport '@digdir/designsystemet-web'; // Import ds-tabs custom element\nimport clsx from 'clsx/lite';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { useMergeRefs } from '../../utilities/hooks/useMergeRefs/useMergeRefs';\n\nexport type TabsProps = MergeRight<\n DefaultProps & HTMLAttributes<DSTabsElement>,\n {\n /** The value of the tab that should be active when initially rendered. Use when you do not need to control the state of the tabs. */\n defaultValue?: string;\n /** The controlled value of the tab to activate. Should be used together with `onChange`. */\n value?: string;\n /** Event handler called when the value changes. */\n onChange?: (value: string) => void;\n ref?: Ref<DSTabsElement>;\n }\n>;\n\nexport type TabsContext = {\n isControlled?: boolean;\n currentValue?: string;\n defaultValue?: string;\n onChange?: (value: string) => void;\n getPrefixedValue?: (value?: string) => string | undefined;\n};\n\nexport const Context = createContext<TabsContext>({});\n\nexport const Tabs = ({\n defaultValue,\n value: valueProp,\n onChange,\n children,\n className,\n dark,\n ref,\n ...props\n}: TabsProps) => {\n const isControlled = valueProp !== undefined;\n const tabsRef = useRef<DSTabsElement>(null);\n const isProgrammaticClick = useRef(false);\n const valuePrefix = useId(); // Used for generation of unique value-based ids for tabs and panels\n const mergedRefs = useMergeRefs([ref, tabsRef]);\n const [value, setValue] = useControllableState({\n prop: valueProp,\n onChange,\n defaultProp: defaultValue || '',\n caller: 'Tabs',\n });\n\n useEffect(() => {\n if (!tabsRef.current || valueProp === undefined) return;\n tabsRef.current?.tabList?.tabs?.forEach((tab) => {\n if (tab.getAttribute('data-value') === valueProp) {\n isProgrammaticClick.current = true;\n tab.click();\n isProgrammaticClick.current = false;\n }\n });\n }, [valueProp]);\n\n return (\n <Context\n value={{\n isControlled,\n currentValue: value,\n defaultValue,\n onChange: setValue,\n getPrefixedValue: (value?: string) => value && `${valuePrefix}-${value}`,\n }}\n >\n <ds-tabs\n suppressHydrationWarning // Since <ds-tablist> adds attributes\n ref={mergedRefs}\n className={clsx('bi-tabs', className)}\n data-dark={dark}\n {...props}\n >\n {children}\n </ds-tabs>\n </Context>\n );\n};\n"],"mappings":";;;;;;;AA+BA,MAAa,UAAU,cAA2B,EAAE,CAAC;AAErD,MAAa,QAAQ,EACnB,cACA,OAAO,WACP,UACA,UACA,WACA,MACA,KACA,GAAG,YACY;CACf,MAAM,eAAe,cAAc,KAAA;CACnC,MAAM,UAAU,OAAsB,KAAK;CAC3C,MAAM,sBAAsB,OAAO,MAAM;CACzC,MAAM,cAAc,OAAO;CAC3B,MAAM,aAAa,aAAa,CAAC,KAAK,QAAQ,CAAC;CAC/C,MAAM,CAAC,OAAO,YAAY,qBAAqB;EAC7C,MAAM;EACN;EACA,aAAa,gBAAgB;EAC7B,QAAQ;EACT,CAAC;AAEF,iBAAgB;AACd,MAAI,CAAC,QAAQ,WAAW,cAAc,KAAA,EAAW;AACjD,UAAQ,SAAS,SAAS,MAAM,SAAS,QAAQ;AAC/C,OAAI,IAAI,aAAa,aAAa,KAAK,WAAW;AAChD,wBAAoB,UAAU;AAC9B,QAAI,OAAO;AACX,wBAAoB,UAAU;;IAEhC;IACD,CAAC,UAAU,CAAC;AAEf,QACE,oBAAC,SAAD;EACE,OAAO;GACL;GACA,cAAc;GACd;GACA,UAAU;GACV,mBAAmB,UAAmB,SAAS,GAAG,YAAY,GAAG;GAClE;YAED,oBAAC,WAAD;GACE,0BAAA;GACA,KAAK;GACL,WAAW,KAAK,WAAW,UAAU;GACrC,aAAW;GACX,GAAI;GAEH;GACO,CAAA;EACF,CAAA"}
@@ -1,15 +1,2 @@
1
- import "../../useCheckboxGroup-BUpI46_M.mjs";
2
- import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
3
- import "../../types-Bgj7p8nD.mjs";
4
- import { l as Textarea, u as TextareaProps } from "../../alert-footer-CHHPzMiX.mjs";
5
- import "../../dialog-trigger-context-Dlf5Whq6.mjs";
6
- import "../../drawer-trigger-context-3hDiHR-k.mjs";
7
- import "../../popover-trigger-context-sQGC75uf.mjs";
8
- import "../../dropdown-item-wInrqt83.mjs";
9
- import "../../dropdown-list-z14BOCh4.mjs";
10
- import "../../footer-links-C7vC-VD7.mjs";
11
- import "../../pagination-item-cKOuhfhM.mjs";
12
- import "../../sticky-header-Y0uT-nWI.mjs";
13
- import "../../index-C3reD4RP.mjs";
14
- import "../../useIsElementAboveViewport-BcIGWQqn.mjs";
1
+ import { l as Textarea, u as TextareaProps } from "../../alert-footer-D_kCDrhn.mjs";
15
2
  export { Textarea, TextareaProps };
@@ -1,4 +1,2 @@
1
- import { t as Textarea } from "../../textarea-CHhlswpx.mjs";
2
- import "../../textarea-BDAr1Unx.mjs";
3
-
4
- export { Textarea };
1
+ import { Textarea } from "./textarea.mjs";
2
+ export { Textarea };
@@ -1,15 +1,2 @@
1
- import "../../useCheckboxGroup-BUpI46_M.mjs";
2
- import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
3
- import "../../types-Bgj7p8nD.mjs";
4
- import { l as Textarea, u as TextareaProps } from "../../alert-footer-CHHPzMiX.mjs";
5
- import "../../dialog-trigger-context-Dlf5Whq6.mjs";
6
- import "../../drawer-trigger-context-3hDiHR-k.mjs";
7
- import "../../popover-trigger-context-sQGC75uf.mjs";
8
- import "../../dropdown-item-wInrqt83.mjs";
9
- import "../../dropdown-list-z14BOCh4.mjs";
10
- import "../../footer-links-C7vC-VD7.mjs";
11
- import "../../pagination-item-cKOuhfhM.mjs";
12
- import "../../sticky-header-Y0uT-nWI.mjs";
13
- import "../../index-C3reD4RP.mjs";
14
- import "../../useIsElementAboveViewport-BcIGWQqn.mjs";
1
+ import { l as Textarea, u as TextareaProps } from "../../alert-footer-D_kCDrhn.mjs";
15
2
  export { Textarea, TextareaProps };
@@ -1,3 +1,16 @@
1
- import { t as Textarea } from "../../textarea-CHhlswpx.mjs";
1
+ import clsx from "clsx/lite";
2
+ import { jsx } from "react/jsx-runtime";
3
+ //#region src/components/textarea/textarea.tsx
4
+ const Textarea = ({ className, dark, size, ref, ...props }) => {
5
+ return /* @__PURE__ */ jsx("textarea", {
6
+ className: clsx("bi-input", className),
7
+ "data-dark": dark,
8
+ "data-size": size,
9
+ ref,
10
+ ...props
11
+ });
12
+ };
13
+ //#endregion
14
+ export { Textarea };
2
15
 
3
- export { Textarea };
16
+ //# sourceMappingURL=textarea.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea.mjs","names":[],"sources":["../../../src/components/textarea/textarea.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { Ref, TextareaHTMLAttributes } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type TextareaProps = MergeRight<\n DefaultProps & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'prefix'>,\n {\n /**\n * Size of the textarea.\n * @default 'medium'\n */\n size?: 'medium' | 'large';\n ref?: Ref<HTMLTextAreaElement>;\n }\n>;\n\nexport const Textarea = ({ className, dark, size, ref, ...props }: TextareaProps) => {\n return <textarea className={clsx('bi-input', className)} data-dark={dark} data-size={size} ref={ref} {...props} />;\n};\n"],"mappings":";;;AAiBA,MAAa,YAAY,EAAE,WAAW,MAAM,MAAM,KAAK,GAAG,YAA2B;AACnF,QAAO,oBAAC,YAAD;EAAU,WAAW,KAAK,YAAY,UAAU;EAAE,aAAW;EAAM,aAAW;EAAW;EAAK,GAAI;EAAS,CAAA"}
@@ -1,15 +1,2 @@
1
- import "../../useCheckboxGroup-BUpI46_M.mjs";
2
- import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
3
- import "../../types-Bgj7p8nD.mjs";
4
- import { c as TextfieldProps, s as Textfield } from "../../alert-footer-CHHPzMiX.mjs";
5
- import "../../dialog-trigger-context-Dlf5Whq6.mjs";
6
- import "../../drawer-trigger-context-3hDiHR-k.mjs";
7
- import "../../popover-trigger-context-sQGC75uf.mjs";
8
- import "../../dropdown-item-wInrqt83.mjs";
9
- import "../../dropdown-list-z14BOCh4.mjs";
10
- import "../../footer-links-C7vC-VD7.mjs";
11
- import "../../pagination-item-cKOuhfhM.mjs";
12
- import "../../sticky-header-Y0uT-nWI.mjs";
13
- import "../../index-C3reD4RP.mjs";
14
- import "../../useIsElementAboveViewport-BcIGWQqn.mjs";
1
+ import { c as TextfieldProps, s as Textfield } from "../../alert-footer-D_kCDrhn.mjs";
15
2
  export { Textfield, TextfieldProps };
@@ -1,16 +1,2 @@
1
- import "../../field-BIBlDQoi.mjs";
2
- import "../../field-description-Dt2qLchF.mjs";
3
- import "../../field-affix-DNZXWyx-.mjs";
4
- import "../../field-D8ZE0keC.mjs";
5
- import "../../input-DU_8Z4cN.mjs";
6
- import "../../input-8Az-c2K1.mjs";
7
- import "../../label-QZyUM8Df.mjs";
8
- import "../../label-BrxPu7QD.mjs";
9
- import "../../validation-message-376E95cm.mjs";
10
- import "../../validation-message-YHHHXfxE.mjs";
11
- import "../../textarea-CHhlswpx.mjs";
12
- import "../../textarea-BDAr1Unx.mjs";
13
- import { t as Textfield } from "../../textfield-rcRRkfZB.mjs";
14
- import "../../textfield-BFLLhYVI.mjs";
15
-
16
- export { Textfield };
1
+ import { Textfield } from "./textfield.mjs";
2
+ export { Textfield };
@@ -1,15 +1,2 @@
1
- import "../../useCheckboxGroup-BUpI46_M.mjs";
2
- import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
3
- import "../../types-Bgj7p8nD.mjs";
4
- import { c as TextfieldProps, s as Textfield } from "../../alert-footer-CHHPzMiX.mjs";
5
- import "../../dialog-trigger-context-Dlf5Whq6.mjs";
6
- import "../../drawer-trigger-context-3hDiHR-k.mjs";
7
- import "../../popover-trigger-context-sQGC75uf.mjs";
8
- import "../../dropdown-item-wInrqt83.mjs";
9
- import "../../dropdown-list-z14BOCh4.mjs";
10
- import "../../footer-links-C7vC-VD7.mjs";
11
- import "../../pagination-item-cKOuhfhM.mjs";
12
- import "../../sticky-header-Y0uT-nWI.mjs";
13
- import "../../index-C3reD4RP.mjs";
14
- import "../../useIsElementAboveViewport-BcIGWQqn.mjs";
1
+ import { c as TextfieldProps, s as Textfield } from "../../alert-footer-D_kCDrhn.mjs";
15
2
  export { Textfield, TextfieldProps };
@@ -1,15 +1,69 @@
1
- import "../../field-BIBlDQoi.mjs";
2
- import "../../field-description-Dt2qLchF.mjs";
3
- import "../../field-affix-DNZXWyx-.mjs";
4
- import "../../field-D8ZE0keC.mjs";
5
- import "../../input-DU_8Z4cN.mjs";
6
- import "../../input-8Az-c2K1.mjs";
7
- import "../../label-QZyUM8Df.mjs";
8
- import "../../label-BrxPu7QD.mjs";
9
- import "../../validation-message-376E95cm.mjs";
10
- import "../../validation-message-YHHHXfxE.mjs";
11
- import "../../textarea-CHhlswpx.mjs";
12
- import "../../textarea-BDAr1Unx.mjs";
13
- import { t as Textfield } from "../../textfield-rcRRkfZB.mjs";
1
+ import { Field } from "../field/field.mjs";
2
+ import { FieldDescription } from "../field/field-description.mjs";
3
+ import { FieldAffix, FieldAffixes } from "../field/field-affix.mjs";
4
+ import "../field/index.mjs";
5
+ import { Input } from "../input/input.mjs";
6
+ import "../input/index.mjs";
7
+ import { Label } from "../label/label.mjs";
8
+ import "../label/index.mjs";
9
+ import { ValidationMessage } from "../validation-message/validation-message.mjs";
10
+ import "../validation-message/index.mjs";
11
+ import { Textarea } from "../textarea/textarea.mjs";
12
+ import "../textarea/index.mjs";
13
+ import { jsx, jsxs } from "react/jsx-runtime";
14
+ import { useId } from "react";
15
+ //#region src/components/textfield/textfield.tsx
16
+ const Textfield = ({ dark, label, description, error, multiline, prefix, suffix, style, className, fullwidth, ref, id: idProp, "aria-describedby": ariaDescribedByProp, ...props }) => {
17
+ const generatedId = useId();
18
+ const descriptionId = useId();
19
+ const validationId = useId();
20
+ const id = idProp || generatedId;
21
+ const ariaDescribedBy = [
22
+ description ? descriptionId : "",
23
+ error ? validationId : "",
24
+ ariaDescribedByProp
25
+ ].join(" ").trim() || void 0;
26
+ return /* @__PURE__ */ jsxs(Field, {
27
+ className,
28
+ "data-dark": dark,
29
+ style,
30
+ fullwidth,
31
+ children: [
32
+ label && /* @__PURE__ */ jsx(Label, {
33
+ htmlFor: id,
34
+ children: label
35
+ }),
36
+ description && /* @__PURE__ */ jsx(FieldDescription, {
37
+ id: descriptionId,
38
+ children: description
39
+ }),
40
+ /* @__PURE__ */ jsxs(FieldAffixes, { children: [
41
+ prefix && /* @__PURE__ */ jsx(FieldAffix, { children: prefix }),
42
+ multiline ? /* @__PURE__ */ jsx(Textarea, {
43
+ id,
44
+ ref,
45
+ "aria-invalid": Boolean(error) || void 0,
46
+ "aria-describedby": ariaDescribedBy,
47
+ dark,
48
+ ...props
49
+ }) : /* @__PURE__ */ jsx(Input, {
50
+ id,
51
+ ref,
52
+ "aria-invalid": Boolean(error) || void 0,
53
+ "aria-describedby": ariaDescribedBy,
54
+ dark,
55
+ ...props
56
+ }),
57
+ suffix && /* @__PURE__ */ jsx(FieldAffix, { children: suffix })
58
+ ] }),
59
+ !!error && /* @__PURE__ */ jsx(ValidationMessage, {
60
+ id: validationId,
61
+ children: error
62
+ })
63
+ ]
64
+ });
65
+ };
66
+ //#endregion
67
+ export { Textfield };
14
68
 
15
- export { Textfield };
69
+ //# sourceMappingURL=textfield.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textfield.mjs","names":[],"sources":["../../../src/components/textfield/textfield.tsx"],"sourcesContent":["import { useId, type ReactNode, type Ref } from 'react';\n\nimport type { DefaultProps, LabelRequiredProps } from '../../types';\nimport { Field, FieldAffix, FieldAffixes, FieldDescription } from '../field';\nimport { Input, type InputProps } from '../input';\nimport { Label } from '../label';\nimport { Textarea, type TextareaProps } from '../textarea';\nimport { ValidationMessage } from '../validation-message';\n\ntype InputPropsFiltered = Omit<InputProps, 'prefix' | 'className' | 'style'>;\ntype TextareaPropsFiltered = Omit<TextareaProps, 'prefix' | 'className' | 'style'>;\n\ntype BaseTextfieldProps = LabelRequiredProps &\n DefaultProps & {\n /** Label */\n label?: ReactNode;\n /** Description */\n description?: ReactNode;\n /** Prefix */\n prefix?: string;\n /** Suffix */\n suffix?: string;\n /** Error message for field */\n error?: ReactNode;\n /** `className` for the `Field` element */\n className?: InputProps['className'];\n /** `style` for the `Field` element */\n style?: InputProps['style'];\n /** If true, the selectfield will take up the full available width */\n fullwidth?: boolean;\n };\n\ntype TextfieldTextareaProps = {\n /** Render `Textarea` instead of a `Input`. The `Textarea` has support for multiple rows of input. */\n multiline: true;\n} & TextareaPropsFiltered;\n\ntype TextfieldInputProps = {\n /** Render `Textarea` instead of a `Input`. The `Textarea` has support for multiple rows of input. */\n multiline?: never | false;\n} & InputPropsFiltered;\n\nexport type TextfieldProps = BaseTextfieldProps & // We use either Textarea or Input props, depending on the `multiline` prop.\n (TextfieldTextareaProps | TextfieldInputProps) & {\n ref?: Ref<HTMLInputElement | HTMLTextAreaElement>;\n };\n\nexport const Textfield = ({\n dark,\n label,\n description,\n error,\n multiline,\n prefix,\n suffix,\n style,\n className,\n fullwidth,\n ref,\n id: idProp,\n 'aria-describedby': ariaDescribedByProp,\n ...props\n}: TextfieldProps) => {\n const generatedId = useId();\n const descriptionId = useId();\n const validationId = useId();\n const id = idProp || generatedId;\n\n const ariaDescribedBy =\n [description ? descriptionId : '', error ? validationId : '', ariaDescribedByProp].join(' ').trim() || undefined;\n return (\n <Field className={className} data-dark={dark} style={style} fullwidth={fullwidth}>\n {label && <Label htmlFor={id}>{label}</Label>}\n {description && <FieldDescription id={descriptionId}>{description}</FieldDescription>}\n <FieldAffixes>\n {prefix && <FieldAffix>{prefix}</FieldAffix>}\n {multiline ? (\n <Textarea\n id={id}\n ref={ref as Ref<HTMLTextAreaElement>}\n aria-invalid={Boolean(error) || undefined}\n aria-describedby={ariaDescribedBy}\n dark={dark}\n {...(props as TextareaPropsFiltered)}\n />\n ) : (\n <Input\n id={id}\n ref={ref as Ref<HTMLInputElement>}\n aria-invalid={Boolean(error) || undefined}\n aria-describedby={ariaDescribedBy}\n dark={dark}\n {...(props as InputPropsFiltered)}\n />\n )}\n {suffix && <FieldAffix>{suffix}</FieldAffix>}\n </FieldAffixes>\n {!!error && <ValidationMessage id={validationId}>{error}</ValidationMessage>}\n </Field>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;AA+CA,MAAa,aAAa,EACxB,MACA,OACA,aACA,OACA,WACA,QACA,QACA,OACA,WACA,WACA,KACA,IAAI,QACJ,oBAAoB,qBACpB,GAAG,YACiB;CACpB,MAAM,cAAc,OAAO;CAC3B,MAAM,gBAAgB,OAAO;CAC7B,MAAM,eAAe,OAAO;CAC5B,MAAM,KAAK,UAAU;CAErB,MAAM,kBACJ;EAAC,cAAc,gBAAgB;EAAI,QAAQ,eAAe;EAAI;EAAoB,CAAC,KAAK,IAAI,CAAC,MAAM,IAAI,KAAA;AACzG,QACE,qBAAC,OAAD;EAAkB;EAAW,aAAW;EAAa;EAAkB;YAAvE;GACG,SAAS,oBAAC,OAAD;IAAO,SAAS;cAAK;IAAc,CAAA;GAC5C,eAAe,oBAAC,kBAAD;IAAkB,IAAI;cAAgB;IAA+B,CAAA;GACrF,qBAAC,cAAD,EAAA,UAAA;IACG,UAAU,oBAAC,YAAD,EAAA,UAAa,QAAoB,CAAA;IAC3C,YACC,oBAAC,UAAD;KACM;KACC;KACL,gBAAc,QAAQ,MAAM,IAAI,KAAA;KAChC,oBAAkB;KACZ;KACN,GAAK;KACL,CAAA,GAEF,oBAAC,OAAD;KACM;KACC;KACL,gBAAc,QAAQ,MAAM,IAAI,KAAA;KAChC,oBAAkB;KACZ;KACN,GAAK;KACL,CAAA;IAEH,UAAU,oBAAC,YAAD,EAAA,UAAa,QAAoB,CAAA;IAC/B,EAAA,CAAA;GACd,CAAC,CAAC,SAAS,oBAAC,mBAAD;IAAmB,IAAI;cAAe;IAA0B,CAAA;GACtE"}
@@ -1,15 +1,2 @@
1
- import "../../useCheckboxGroup-BUpI46_M.mjs";
2
- import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
3
- import "../../types-Bgj7p8nD.mjs";
4
- import { a as ValidationMessage, o as ValidationMessageProps } from "../../alert-footer-CHHPzMiX.mjs";
5
- import "../../dialog-trigger-context-Dlf5Whq6.mjs";
6
- import "../../drawer-trigger-context-3hDiHR-k.mjs";
7
- import "../../popover-trigger-context-sQGC75uf.mjs";
8
- import "../../dropdown-item-wInrqt83.mjs";
9
- import "../../dropdown-list-z14BOCh4.mjs";
10
- import "../../footer-links-C7vC-VD7.mjs";
11
- import "../../pagination-item-cKOuhfhM.mjs";
12
- import "../../sticky-header-Y0uT-nWI.mjs";
13
- import "../../index-C3reD4RP.mjs";
14
- import "../../useIsElementAboveViewport-BcIGWQqn.mjs";
1
+ import { a as ValidationMessage, o as ValidationMessageProps } from "../../alert-footer-D_kCDrhn.mjs";
15
2
  export { ValidationMessage, ValidationMessageProps };
@@ -1,4 +1,2 @@
1
- import { t as ValidationMessage } from "../../validation-message-376E95cm.mjs";
2
- import "../../validation-message-YHHHXfxE.mjs";
3
-
4
- export { ValidationMessage };
1
+ import { ValidationMessage } from "./validation-message.mjs";
2
+ export { ValidationMessage };
@@ -1,15 +1,2 @@
1
- import "../../useCheckboxGroup-BUpI46_M.mjs";
2
- import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
3
- import "../../types-Bgj7p8nD.mjs";
4
- import { a as ValidationMessage, o as ValidationMessageProps } from "../../alert-footer-CHHPzMiX.mjs";
5
- import "../../dialog-trigger-context-Dlf5Whq6.mjs";
6
- import "../../drawer-trigger-context-3hDiHR-k.mjs";
7
- import "../../popover-trigger-context-sQGC75uf.mjs";
8
- import "../../dropdown-item-wInrqt83.mjs";
9
- import "../../dropdown-list-z14BOCh4.mjs";
10
- import "../../footer-links-C7vC-VD7.mjs";
11
- import "../../pagination-item-cKOuhfhM.mjs";
12
- import "../../sticky-header-Y0uT-nWI.mjs";
13
- import "../../index-C3reD4RP.mjs";
14
- import "../../useIsElementAboveViewport-BcIGWQqn.mjs";
1
+ import { a as ValidationMessage, o as ValidationMessageProps } from "../../alert-footer-D_kCDrhn.mjs";
15
2
  export { ValidationMessage, ValidationMessageProps };
@@ -1,3 +1,17 @@
1
- import { t as ValidationMessage } from "../../validation-message-376E95cm.mjs";
1
+ import clsx from "clsx/lite";
2
+ import { Slot } from "@radix-ui/react-slot";
3
+ import { ErrorIcon } from "@bi-digital/icons";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ //#region src/components/validation-message/validation-message.tsx
6
+ const ValidationMessage = ({ children, className, icon, asChild, ref, ...props }) => {
7
+ return /* @__PURE__ */ jsxs(asChild ? Slot : "p", {
8
+ className: clsx("bi-validation-message", className),
9
+ ref,
10
+ ...props,
11
+ children: [icon || /* @__PURE__ */ jsx(ErrorIcon, {}), children]
12
+ });
13
+ };
14
+ //#endregion
15
+ export { ValidationMessage };
2
16
 
3
- export { ValidationMessage };
17
+ //# sourceMappingURL=validation-message.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation-message.mjs","names":[],"sources":["../../../src/components/validation-message/validation-message.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx/lite';\nimport type { HTMLAttributes, ReactNode, Ref } from 'react';\nimport type { AsChildProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { ErrorIcon } from '@bi-digital/icons';\n\nexport type ValidationMessageProps = MergeRight<\n AsChildProps & HTMLAttributes<HTMLParagraphElement>,\n {\n /** Override the default warning icon. Must be a BiIcon to work correctly. */\n icon?: ReactNode;\n ref?: Ref<HTMLParagraphElement>;\n }\n>;\n\nexport const ValidationMessage = ({ children, className, icon, asChild, ref, ...props }: ValidationMessageProps) => {\n const Component = asChild ? Slot : 'p';\n\n return (\n <Component className={clsx('bi-validation-message', className)} ref={ref} {...props}>\n {icon || <ErrorIcon />}\n {children}\n </Component>\n );\n};\n"],"mappings":";;;;;AAgBA,MAAa,qBAAqB,EAAE,UAAU,WAAW,MAAM,SAAS,KAAK,GAAG,YAAoC;AAGlH,QACE,qBAHgB,UAAU,OAAO,KAGjC;EAAW,WAAW,KAAK,yBAAyB,UAAU;EAAO;EAAK,GAAI;YAA9E,CACG,QAAQ,oBAAC,WAAD,EAAa,CAAA,EACrB,SACS"}
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as react from "react";
3
+ import { ReactNode } from "react";
4
+
5
+ //#region src/components/dialog/dialog-trigger-context.d.ts
6
+ type DialogContext = {
7
+ id?: string;
8
+ };
9
+ declare const Context: react.Context<DialogContext & {
10
+ setContext?: (context: DialogContext) => void;
11
+ }>;
12
+ type DialogTriggerContextProps = {
13
+ children: ReactNode;
14
+ };
15
+ declare const DialogTriggerContext: ({
16
+ children
17
+ }: DialogTriggerContextProps) => react_jsx_runtime0.JSX.Element;
18
+ //#endregion
19
+ export { DialogTriggerContext as n, DialogTriggerContextProps as r, Context as t };
20
+ //# sourceMappingURL=dialog-trigger-context-CAC7jh1K.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime47 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
  import { HTMLAttributes, Ref } from "react";
3
3
 
4
4
  //#region src/components/dropdown/dropdown-item.d.ts
@@ -8,7 +8,7 @@ type DropdownItemProps = HTMLAttributes<HTMLLIElement> & {
8
8
  declare const DropdownItem: ({
9
9
  ref,
10
10
  ...rest
11
- }: DropdownItemProps) => react_jsx_runtime47.JSX.Element;
11
+ }: DropdownItemProps) => react_jsx_runtime0.JSX.Element;
12
12
  //#endregion
13
13
  export { DropdownItemProps as n, DropdownItem as t };
14
- //# sourceMappingURL=dropdown-item-wInrqt83.d.mts.map
14
+ //# sourceMappingURL=dropdown-item-aYyDctA9.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime63 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
  import { HTMLAttributes, Ref } from "react";
3
3
 
4
4
  //#region src/components/dropdown/dropdown-list.d.ts
@@ -8,7 +8,7 @@ type DropdownListProps = HTMLAttributes<HTMLUListElement> & {
8
8
  declare const DropdownList: ({
9
9
  ref,
10
10
  ...rest
11
- }: DropdownListProps) => react_jsx_runtime63.JSX.Element;
11
+ }: DropdownListProps) => react_jsx_runtime0.JSX.Element;
12
12
  //#endregion
13
13
  export { DropdownListProps as n, DropdownList as t };
14
- //# sourceMappingURL=dropdown-list-z14BOCh4.d.mts.map
14
+ //# sourceMappingURL=dropdown-list-Dg3yJhKc.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime74 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
  import { HTMLAttributes, Ref } from "react";
3
3
 
4
4
  //#region src/components/footer/footer-links.d.ts
@@ -14,7 +14,7 @@ declare const FooterLinks: ({
14
14
  children,
15
15
  ref,
16
16
  ...props
17
- }: FooterLinksProps) => react_jsx_runtime74.JSX.Element;
17
+ }: FooterLinksProps) => react_jsx_runtime0.JSX.Element;
18
18
  //#endregion
19
19
  export { FooterLinksProps as n, FooterLinks as t };
20
- //# sourceMappingURL=footer-links-C7vC-VD7.d.mts.map
20
+ //# sourceMappingURL=footer-links-BiBVxNWE.d.mts.map
package/dist/main.d.mts CHANGED
@@ -1,18 +1,15 @@
1
- import { r as useCheckboxGroup, t as UseCheckboxGroupOptions } from "./useCheckboxGroup-BUpI46_M.mjs";
2
- import { t as useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect-PJRUcTSc.mjs";
3
- import "./types-Bgj7p8nD.mjs";
4
- import { $ as FieldsetLegend, $t as DetailsContent, A as SelectOptionProps, An as AvatarProps, At as DrawerTriggerProps, B as PaginationProps, Bt as DialogCloseButtonProps, C as SkipLink, Cn as Card, Ct as PopoverTrigger, D as SelectOptgroup, Dn as Badge, Dt as DrawerCloseButton, E as SelectfieldProps, En as ButtonProps, Et as PopoverProps, F as Radio, Ft as DrawerContent, G as Logo, Gt as DialogHeader, H as SubNavbarProps, Ht as DialogTriggerProps, I as RadioProps, It as DrawerContentProps, J as LinkProps, Jt as DialogContentProps, K as LogoProps, Kt as DialogHeaderProps, L as PaginationButton, Lt as Drawer, M as SelectProps, Mn as AlertProps, Mt as DrawerFooterProps, N as Search, Nt as DrawerHeader, O as SelectOptgroupProps, On as BadgeProps, Ot as DrawerCloseButtonProps, P as SearchProps, Pt as DrawerHeaderProps, Q as FilterGroupProps, Qt as DetailsSummaryProps, R as PaginationButtonProps, Rt as DrawerProps, S as SpinnerProps, Sn as CardActionsProps, St as DropdownProps, T as Selectfield, Tn as Button, Tt as Popover, U as Navbar, Ut as DialogFooter, V as SubNavbar, Vt as DialogTrigger, W as NavbarProps, Wt as DialogFooterProps, X as FooterProps, Xt as DialogProps, Y as Footer, Yt as Dialog, Z as FilterGroup, Zt as DetailsSummary, _ as Tabs, _n as CardContent, _t as DropdownTrigger, a as ValidationMessage, an as CheckboxSubsection, at as Fieldset, b as SwitchProps, bn as CardActionProps, bt as DropdownButtonProps, c as TextfieldProps, cn as CheckboxProps, ct as FieldAffixProps, d as TabsPanel, dn as CardDate, dt as FieldDescription, en as DetailsContentProps, et as FieldsetLegendProps, f as TabsPanelProps, fn as CardDateProps, ft as FieldDescriptionProps, g as TabProps, gn as CardHeaderProps, gt as DropdownTriggerContextProps, h as Tab, hn as CardHeader, ht as DropdownTriggerContext, i as usePagination, in as ChipProps, it as FieldsetDescriptionProps, j as Select, jn as Alert, jt as DrawerFooter, k as SelectOption, kn as Avatar, kt as DrawerTrigger, l as Textarea, ln as Input, lt as FieldAffixes, m as TabsListProps, mn as CardMediaProps, mt as FieldProps, n as AlertFooterProps, nn as DetailsProps, nt as LabelProps, o as ValidationMessageProps, on as CheckboxSubsectionProps, ot as FieldsetProps, p as TabsList, pn as CardMedia, pt as Field, q as Link, qt as DialogContent, r as UsePaginationProps, rn as Chip, rt as FieldsetDescription, s as Textfield, sn as Checkbox, st as FieldAffix, t as AlertFooter, tn as Details, tt as Label, u as TextareaProps, un as InputProps, ut as FieldAffixesProps, v as TabsProps, vn as CardContentProps, vt as DropdownTriggerProps, w as SkipLinkProps, wn as CardProps, wt as PopoverTriggerProps, x as Spinner, xn as CardActions, xt as Dropdown, y as Switch, yn as CardAction, yt as DropdownButton, z as Pagination, zt as DialogCloseButton } from "./alert-footer-CHHPzMiX.mjs";
5
- import { n as DialogTriggerContext, r as DialogTriggerContextProps, t as Context } from "./dialog-trigger-context-Dlf5Whq6.mjs";
6
- import { n as DrawerTriggerContextProps, t as DrawerTriggerContext } from "./drawer-trigger-context-3hDiHR-k.mjs";
7
- import { n as PopoverTriggerContext, r as PopoverTriggerContextProps } from "./popover-trigger-context-sQGC75uf.mjs";
8
- import { n as DropdownItemProps, t as DropdownItem } from "./dropdown-item-wInrqt83.mjs";
9
- import { n as DropdownListProps, t as DropdownList } from "./dropdown-list-z14BOCh4.mjs";
10
- import { n as FooterLinksProps, t as FooterLinks } from "./footer-links-C7vC-VD7.mjs";
11
- import { n as PaginationItemProps, t as PaginationItem } from "./pagination-item-cKOuhfhM.mjs";
12
- import { n as StickyHeaderProps, t as StickyHeader } from "./sticky-header-Y0uT-nWI.mjs";
13
- import "./index-C3reD4RP.mjs";
14
- import { t as useIsElementAboveViewport } from "./useIsElementAboveViewport-BcIGWQqn.mjs";
15
- import { t as useScrollDirection } from "./useScrollDirection-Cm7w2CbB.mjs";
16
- import { n as useMediaQuery, t as UseMediaQueryOptions } from "./useMediaQuery-CIi3MXay.mjs";
17
- import { t as MergeRight } from "./types-Biyhmxh9.mjs";
18
- export { Alert, AlertFooter, AlertFooterProps, AlertProps, Avatar, AvatarProps, Badge, BadgeProps, Button, ButtonProps, Card, CardAction, CardActionProps, CardActions, CardActionsProps, CardContent, CardContentProps, CardDate, CardDateProps, CardHeader, CardHeaderProps, CardMedia, CardMediaProps, CardProps, Checkbox, CheckboxProps, CheckboxSubsection, CheckboxSubsectionProps, Chip, ChipProps, Context, Details, DetailsContent, DetailsContentProps, DetailsProps, DetailsSummary, DetailsSummaryProps, Dialog, DialogCloseButton, DialogCloseButtonProps, DialogContent, DialogContentProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogProps, DialogTrigger, DialogTriggerContext, DialogTriggerContextProps, DialogTriggerProps, Drawer, DrawerCloseButton, DrawerCloseButtonProps, DrawerContent, DrawerContentProps, DrawerFooter, DrawerFooterProps, DrawerHeader, DrawerHeaderProps, DrawerProps, DrawerTrigger, DrawerTriggerContext, DrawerTriggerContextProps, DrawerTriggerProps, Dropdown, DropdownButton, DropdownButtonProps, DropdownItem, DropdownItemProps, DropdownList, DropdownListProps, DropdownProps, DropdownTrigger, DropdownTriggerContext, DropdownTriggerContextProps, DropdownTriggerProps, Field, FieldAffix, FieldAffixProps, FieldAffixes, FieldAffixesProps, FieldDescription, FieldDescriptionProps, FieldProps, Fieldset, FieldsetDescription, FieldsetDescriptionProps, FieldsetLegend, FieldsetLegendProps, FieldsetProps, FilterGroup, FilterGroupProps, Footer, FooterLinks, FooterLinksProps, FooterProps, Input, InputProps, Label, LabelProps, Link, LinkProps, Logo, LogoProps, MergeRight, Navbar, NavbarProps, Pagination, PaginationButton, PaginationButtonProps, PaginationItem, PaginationItemProps, PaginationProps, Popover, PopoverProps, PopoverTrigger, PopoverTriggerContext, PopoverTriggerContextProps, PopoverTriggerProps, Radio, RadioProps, Search, SearchProps, Select, SelectOptgroup, SelectOptgroupProps, SelectOption, SelectOptionProps, SelectProps, Selectfield, SelectfieldProps, SkipLink, SkipLinkProps, Spinner, SpinnerProps, StickyHeader, StickyHeaderProps, SubNavbar, SubNavbarProps, Switch, SwitchProps, Tab, TabProps, Tabs, TabsList, TabsListProps, TabsPanel, TabsPanelProps, TabsProps, Textarea, TextareaProps, Textfield, TextfieldProps, UseCheckboxGroupOptions, UseMediaQueryOptions, UsePaginationProps, ValidationMessage, ValidationMessageProps, useCheckboxGroup, useIsElementAboveViewport, useIsomorphicLayoutEffect, useMediaQuery, usePagination, useScrollDirection };
1
+ import { r as useCheckboxGroup, t as UseCheckboxGroupOptions } from "./useCheckboxGroup-Boc_tLJ3.mjs";
2
+ import { t as useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect-DXCY5AxR.mjs";
3
+ import { $ as FilterGroup, $t as Input, A as SelectOptgroupProps, At as DialogCloseButtonProps, B as PaginationButtonProps, Bt as DialogProps, C as Spinner, Ct as Dropdown, D as Selectfield, Dt as Popover, E as SkipLinkProps, Et as PopoverTriggerProps, F as Search, Ft as DialogHeader, G as Navbar, Gt as Details, H as PaginationProps, Ht as DetailsSummaryProps, I as SearchProps, It as DialogHeaderProps, J as LogoProps, Jt as ChipProps, K as NavbarProps, Kt as DetailsProps, L as Radio, Lt as DialogContent, M as SelectOptionProps, Mt as DialogTriggerProps, N as Select, Nt as DialogFooter, O as SelectfieldProps, Ot as PopoverProps, P as SelectProps, Pt as DialogFooterProps, Q as FooterProps, Qt as CheckboxProps, R as RadioProps, Rt as DialogContentProps, S as SwitchProps, Sn as AlertProps, St as DropdownButtonProps, T as SkipLink, Tt as PopoverTrigger, U as SubNavbar, Ut as DetailsContent, V as Pagination, Vt as DetailsSummary, W as SubNavbarProps, Wt as DetailsContentProps, X as LinkProps, Xt as CheckboxSubsectionProps, Y as Link, Yt as CheckboxSubsection, Z as Footer, Zt as Checkbox, _n as Badge, _t as DropdownTriggerContext, a as ValidationMessage, an as CardHeader, at as FieldsetDescription, b as TabsProps, bn as AvatarProps, bt as DropdownTriggerProps, c as TextfieldProps, cn as CardContentProps, ct as FieldsetProps, d as TabsPanel, dn as CardActions, dt as FieldAffixes, en as InputProps, et as FilterGroupProps, f as TabsPanelProps, fn as CardActionsProps, ft as FieldAffixesProps, g as TabProps, gn as ButtonProps, gt as FieldProps, h as Tab, hn as Button, ht as Field, i as usePagination, in as CardMediaProps, it as LabelProps, j as SelectOption, jt as DialogTrigger, k as SelectOptgroup, kt as DialogCloseButton, l as Textarea, ln as CardAction, lt as FieldAffix, m as TabsListProps, mn as CardProps, mt as FieldDescriptionProps, n as AlertFooterProps, nn as CardDateProps, nt as FieldsetLegendProps, o as ValidationMessageProps, on as CardHeaderProps, ot as FieldsetDescriptionProps, p as TabsList, pn as Card, pt as FieldDescription, q as Logo, qt as Chip, r as UsePaginationProps, rn as CardMedia, rt as Label, s as Textfield, sn as CardContent, st as Fieldset, t as AlertFooter, tn as CardDate, tt as FieldsetLegend, u as TextareaProps, un as CardActionProps, ut as FieldAffixProps, v as Tabs, vn as BadgeProps, vt as DropdownTriggerContextProps, w as SpinnerProps, wt as DropdownProps, x as Switch, xn as Alert, xt as DropdownButton, y as TabsContext, yn as Avatar, yt as DropdownTrigger, z as PaginationButton, zt as Dialog } from "./alert-footer-D_kCDrhn.mjs";
4
+ import { n as DialogTriggerContext, r as DialogTriggerContextProps, t as Context } from "./dialog-trigger-context-CAC7jh1K.mjs";
5
+ import { n as PopoverTriggerContext, r as PopoverTriggerContextProps } from "./popover-trigger-context-DTh-_AMm.mjs";
6
+ import { n as DropdownItemProps, t as DropdownItem } from "./dropdown-item-aYyDctA9.mjs";
7
+ import { n as DropdownListProps, t as DropdownList } from "./dropdown-list-Dg3yJhKc.mjs";
8
+ import { n as FooterLinksProps, t as FooterLinks } from "./footer-links-BiBVxNWE.mjs";
9
+ import { n as PaginationItemProps, t as PaginationItem } from "./pagination-item-BNyKs6wz.mjs";
10
+ import { n as StickyHeaderProps, t as StickyHeader } from "./sticky-header-CLZPboYg.mjs";
11
+ import { t as useIsElementAboveViewport } from "./useIsElementAboveViewport-DmYCeDwm.mjs";
12
+ import { t as useScrollDirection } from "./useScrollDirection-CepdY5lA.mjs";
13
+ import { n as useMediaQuery, t as UseMediaQueryOptions } from "./useMediaQuery-Cz0DvE8S.mjs";
14
+ import { t as MergeRight } from "./types-CgAV-Uiu.mjs";
15
+ export { Alert, AlertFooter, AlertFooterProps, AlertProps, Avatar, AvatarProps, Badge, BadgeProps, Button, ButtonProps, Card, CardAction, CardActionProps, CardActions, CardActionsProps, CardContent, CardContentProps, CardDate, CardDateProps, CardHeader, CardHeaderProps, CardMedia, CardMediaProps, CardProps, Checkbox, CheckboxProps, CheckboxSubsection, CheckboxSubsectionProps, Chip, ChipProps, Context, Details, DetailsContent, DetailsContentProps, DetailsProps, DetailsSummary, DetailsSummaryProps, Dialog, DialogCloseButton, DialogCloseButtonProps, DialogContent, DialogContentProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogProps, DialogTrigger, DialogTriggerContext, DialogTriggerContextProps, DialogTriggerProps, Dropdown, DropdownButton, DropdownButtonProps, DropdownItem, DropdownItemProps, DropdownList, DropdownListProps, DropdownProps, DropdownTrigger, DropdownTriggerContext, DropdownTriggerContextProps, DropdownTriggerProps, Field, FieldAffix, FieldAffixProps, FieldAffixes, FieldAffixesProps, FieldDescription, FieldDescriptionProps, FieldProps, Fieldset, FieldsetDescription, FieldsetDescriptionProps, FieldsetLegend, FieldsetLegendProps, FieldsetProps, FilterGroup, FilterGroupProps, Footer, FooterLinks, FooterLinksProps, FooterProps, Input, InputProps, Label, LabelProps, Link, LinkProps, Logo, LogoProps, MergeRight, Navbar, NavbarProps, Pagination, PaginationButton, PaginationButtonProps, PaginationItem, PaginationItemProps, PaginationProps, Popover, PopoverProps, PopoverTrigger, PopoverTriggerContext, PopoverTriggerContextProps, PopoverTriggerProps, Radio, RadioProps, Search, SearchProps, Select, SelectOptgroup, SelectOptgroupProps, SelectOption, SelectOptionProps, SelectProps, Selectfield, SelectfieldProps, SkipLink, SkipLinkProps, Spinner, SpinnerProps, StickyHeader, StickyHeaderProps, SubNavbar, SubNavbarProps, Switch, SwitchProps, Tab, TabProps, Tabs, TabsContext, TabsList, TabsListProps, TabsPanel, TabsPanelProps, TabsProps, Textarea, TextareaProps, Textfield, TextfieldProps, UseCheckboxGroupOptions, UseMediaQueryOptions, UsePaginationProps, ValidationMessage, ValidationMessageProps, useCheckboxGroup, useIsElementAboveViewport, useIsomorphicLayoutEffect, useMediaQuery, usePagination, useScrollDirection };