@bi-digital/react 0.4.1 → 0.5.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 (441) hide show
  1. package/dist/{alert-footer-DfjvFlBv.js → alert-footer-DVFKzVAK.js} +2 -2
  2. package/dist/{alert-footer-DfjvFlBv.js.map → alert-footer-DVFKzVAK.js.map} +1 -1
  3. package/dist/{alert-footer-BfU5zyfJ.d.ts → alert-footer-vCp6ARyQ.d.ts} +77 -77
  4. package/dist/{alert-C6PxDwHt.js → alert-j8SRrlpj.js} +6 -4
  5. package/dist/alert-j8SRrlpj.js.map +1 -0
  6. package/dist/{avatar-6Q2xwviO.js → avatar-Bw8i1F8e.js} +2 -2
  7. package/dist/{avatar-6Q2xwviO.js.map → avatar-Bw8i1F8e.js.map} +1 -1
  8. package/dist/{badge-tKh0f84O.js → badge-5ndS4RT3.js} +2 -2
  9. package/dist/{badge-tKh0f84O.js.map → badge-5ndS4RT3.js.map} +1 -1
  10. package/dist/{button-BzU7DrNe.js → button-CQH17-73.js} +3 -3
  11. package/dist/{button-BzU7DrNe.js.map → button-CQH17-73.js.map} +1 -1
  12. package/dist/{card-xvRovR7u.js → card-CiQlB4lK.js} +2 -2
  13. package/dist/card-CiQlB4lK.js.map +1 -0
  14. package/dist/{card-action-DiyQo6bH.js → card-action-BVBvVnnQ.js} +3 -3
  15. package/dist/{card-action-DiyQo6bH.js.map → card-action-BVBvVnnQ.js.map} +1 -1
  16. package/dist/{card-actions-CIsnmxsm.js → card-actions-C55isVJb.js} +2 -2
  17. package/dist/{card-actions-CIsnmxsm.js.map → card-actions-C55isVJb.js.map} +1 -1
  18. package/dist/{card-content-BUc3uxiV.js → card-content-dawXJGVF.js} +2 -2
  19. package/dist/{card-content-BUc3uxiV.js.map → card-content-dawXJGVF.js.map} +1 -1
  20. package/dist/{card-date-Bd87BGDE.js → card-date-CG7T78Wf.js} +2 -2
  21. package/dist/{card-date-Bd87BGDE.js.map → card-date-CG7T78Wf.js.map} +1 -1
  22. package/dist/{card-header-D-RMd4xS.js → card-header-CDXXgL56.js} +2 -2
  23. package/dist/{card-header-D-RMd4xS.js.map → card-header-CDXXgL56.js.map} +1 -1
  24. package/dist/{card-media-DhU2_Ueq.js → card-media-CzxguYYO.js} +2 -2
  25. package/dist/{card-media-DhU2_Ueq.js.map → card-media-CzxguYYO.js.map} +1 -1
  26. package/dist/{checkbox-D04YsX0C.js → checkbox-BGbrxCYX.js} +7 -7
  27. package/dist/{checkbox-D04YsX0C.js.map → checkbox-BGbrxCYX.js.map} +1 -1
  28. package/dist/{checkbox-subsection-BPe5aj-W.js → checkbox-subsection-qKHfP1Bu.js} +2 -2
  29. package/dist/{checkbox-subsection-BPe5aj-W.js.map → checkbox-subsection-qKHfP1Bu.js.map} +1 -1
  30. package/dist/{chip-BXBQ6E1H.js → chip-DBcmzT0P.js} +2 -2
  31. package/dist/{chip-BXBQ6E1H.js.map → chip-DBcmzT0P.js.map} +1 -1
  32. package/dist/components/alert/alert-footer.d.ts +16 -16
  33. package/dist/components/alert/alert-footer.js +1 -1
  34. package/dist/components/alert/alert.d.ts +16 -16
  35. package/dist/components/alert/alert.js +1 -1
  36. package/dist/components/alert/index.d.ts +16 -16
  37. package/dist/components/alert/index.js +2 -2
  38. package/dist/components/avatar/avatar.d.ts +16 -16
  39. package/dist/components/avatar/avatar.js +1 -1
  40. package/dist/components/avatar/index.d.ts +16 -16
  41. package/dist/components/avatar/index.js +1 -1
  42. package/dist/components/badge/badge.d.ts +16 -16
  43. package/dist/components/badge/badge.js +1 -1
  44. package/dist/components/badge/index.d.ts +16 -16
  45. package/dist/components/badge/index.js +1 -1
  46. package/dist/components/button/button.d.ts +16 -16
  47. package/dist/components/button/button.js +2 -2
  48. package/dist/components/button/index.d.ts +16 -16
  49. package/dist/components/button/index.js +2 -2
  50. package/dist/components/card/card-action.d.ts +16 -16
  51. package/dist/components/card/card-action.js +3 -3
  52. package/dist/components/card/card-actions.d.ts +16 -16
  53. package/dist/components/card/card-actions.js +1 -1
  54. package/dist/components/card/card-content.d.ts +16 -16
  55. package/dist/components/card/card-content.js +1 -1
  56. package/dist/components/card/card-date.d.ts +16 -16
  57. package/dist/components/card/card-date.js +1 -1
  58. package/dist/components/card/card-header.d.ts +16 -16
  59. package/dist/components/card/card-header.js +1 -1
  60. package/dist/components/card/card-media.d.ts +16 -16
  61. package/dist/components/card/card-media.js +1 -1
  62. package/dist/components/card/card.d.ts +16 -16
  63. package/dist/components/card/card.js +1 -1
  64. package/dist/components/card/index.d.ts +16 -16
  65. package/dist/components/card/index.js +9 -9
  66. package/dist/components/checkbox/checkbox-subsection.d.ts +16 -16
  67. package/dist/components/checkbox/checkbox-subsection.js +1 -1
  68. package/dist/components/checkbox/checkbox.d.ts +16 -16
  69. package/dist/components/checkbox/checkbox.js +7 -7
  70. package/dist/components/checkbox/index.d.ts +16 -16
  71. package/dist/components/checkbox/index.js +8 -8
  72. package/dist/components/chip/chip.d.ts +16 -16
  73. package/dist/components/chip/chip.js +1 -1
  74. package/dist/components/chip/index.d.ts +16 -16
  75. package/dist/components/chip/index.js +1 -1
  76. package/dist/components/details/details-content.d.ts +16 -16
  77. package/dist/components/details/details-content.js +1 -1
  78. package/dist/components/details/details-summary.d.ts +16 -16
  79. package/dist/components/details/details-summary.js +1 -1
  80. package/dist/components/details/details.d.ts +16 -16
  81. package/dist/components/details/details.js +1 -1
  82. package/dist/components/details/index.d.ts +16 -16
  83. package/dist/components/details/index.js +3 -3
  84. package/dist/components/dialog/dialog-close-button.d.ts +16 -16
  85. package/dist/components/dialog/dialog-close-button.js +3 -3
  86. package/dist/components/dialog/dialog-content.d.ts +16 -16
  87. package/dist/components/dialog/dialog-content.js +1 -1
  88. package/dist/components/dialog/dialog-footer.d.ts +16 -16
  89. package/dist/components/dialog/dialog-footer.js +1 -1
  90. package/dist/components/dialog/dialog-header.d.ts +16 -16
  91. package/dist/components/dialog/dialog-header.js +1 -1
  92. package/dist/components/dialog/dialog-trigger-context.d.ts +1 -1
  93. package/dist/components/dialog/dialog-trigger-context.js +1 -1
  94. package/dist/components/dialog/dialog-trigger.d.ts +16 -16
  95. package/dist/components/dialog/dialog-trigger.js +4 -4
  96. package/dist/components/dialog/dialog.d.ts +16 -16
  97. package/dist/components/dialog/dialog.js +3 -3
  98. package/dist/components/dialog/index.d.ts +16 -16
  99. package/dist/components/dialog/index.js +10 -10
  100. package/dist/components/drawer/drawer-close-button.d.ts +16 -16
  101. package/dist/components/drawer/drawer-close-button.js +11 -11
  102. package/dist/components/drawer/drawer-content.d.ts +16 -16
  103. package/dist/components/drawer/drawer-content.js +11 -11
  104. package/dist/components/drawer/drawer-footer.d.ts +16 -16
  105. package/dist/components/drawer/drawer-footer.js +11 -11
  106. package/dist/components/drawer/drawer-header.d.ts +16 -16
  107. package/dist/components/drawer/drawer-header.js +11 -11
  108. package/dist/components/drawer/drawer-trigger-context.d.ts +1 -1
  109. package/dist/components/drawer/drawer-trigger-context.js +11 -11
  110. package/dist/components/drawer/drawer-trigger.d.ts +16 -16
  111. package/dist/components/drawer/drawer-trigger.js +11 -11
  112. package/dist/components/drawer/drawer.d.ts +16 -16
  113. package/dist/components/drawer/drawer.js +11 -11
  114. package/dist/components/drawer/index.d.ts +16 -16
  115. package/dist/components/drawer/index.js +17 -17
  116. package/dist/components/dropdown/dropdown-button.d.ts +16 -16
  117. package/dist/components/dropdown/dropdown-button.js +3 -3
  118. package/dist/components/dropdown/dropdown-item.d.ts +1 -1
  119. package/dist/components/dropdown/dropdown-item.js +1 -1
  120. package/dist/components/dropdown/dropdown-list.d.ts +1 -1
  121. package/dist/components/dropdown/dropdown-list.js +1 -1
  122. package/dist/components/dropdown/dropdown-trigger-context.d.ts +16 -16
  123. package/dist/components/dropdown/dropdown-trigger-context.js +7 -7
  124. package/dist/components/dropdown/dropdown-trigger.d.ts +16 -16
  125. package/dist/components/dropdown/dropdown-trigger.js +7 -7
  126. package/dist/components/dropdown/dropdown.d.ts +16 -16
  127. package/dist/components/dropdown/dropdown.js +7 -7
  128. package/dist/components/dropdown/index.d.ts +16 -16
  129. package/dist/components/dropdown/index.js +12 -12
  130. package/dist/components/field/field-affix.d.ts +16 -16
  131. package/dist/components/field/field-affix.js +1 -1
  132. package/dist/components/field/field-description.d.ts +16 -16
  133. package/dist/components/field/field-description.js +1 -1
  134. package/dist/components/field/field.d.ts +16 -16
  135. package/dist/components/field/field.js +1 -1
  136. package/dist/components/field/index.d.ts +16 -16
  137. package/dist/components/field/index.js +3 -3
  138. package/dist/components/fieldset/fieldset-description.d.ts +16 -16
  139. package/dist/components/fieldset/fieldset-description.js +1 -1
  140. package/dist/components/fieldset/fieldset-legend.d.ts +16 -16
  141. package/dist/components/fieldset/fieldset-legend.js +2 -2
  142. package/dist/components/fieldset/fieldset.d.ts +16 -16
  143. package/dist/components/fieldset/fieldset.js +1 -1
  144. package/dist/components/fieldset/index.d.ts +16 -16
  145. package/dist/components/fieldset/index.js +4 -4
  146. package/dist/components/filter-group/filter-group.d.ts +16 -16
  147. package/dist/components/filter-group/filter-group.js +1 -1
  148. package/dist/components/filter-group/index.d.ts +16 -16
  149. package/dist/components/filter-group/index.js +1 -1
  150. package/dist/components/footer/footer-links.d.ts +1 -1
  151. package/dist/components/footer/footer-links.js +1 -1
  152. package/dist/components/footer/footer.d.ts +16 -16
  153. package/dist/components/footer/footer.js +3 -3
  154. package/dist/components/footer/index.d.ts +16 -16
  155. package/dist/components/footer/index.js +4 -4
  156. package/dist/components/index.d.ts +16 -16
  157. package/dist/components/index.js +82 -82
  158. package/dist/components/input/index.d.ts +16 -16
  159. package/dist/components/input/index.js +1 -1
  160. package/dist/components/input/input.d.ts +16 -16
  161. package/dist/components/input/input.js +1 -1
  162. package/dist/components/label/index.d.ts +16 -16
  163. package/dist/components/label/index.js +1 -1
  164. package/dist/components/label/label.d.ts +16 -16
  165. package/dist/components/label/label.js +1 -1
  166. package/dist/components/link/index.d.ts +16 -16
  167. package/dist/components/link/index.js +1 -1
  168. package/dist/components/link/link.d.ts +16 -16
  169. package/dist/components/link/link.js +1 -1
  170. package/dist/components/logo/index.d.ts +16 -16
  171. package/dist/components/logo/index.js +1 -1
  172. package/dist/components/logo/logo.d.ts +16 -16
  173. package/dist/components/logo/logo.js +1 -1
  174. package/dist/components/navbar/index.d.ts +16 -16
  175. package/dist/components/navbar/index.js +9 -9
  176. package/dist/components/navbar/navbar.d.ts +16 -16
  177. package/dist/components/navbar/navbar.js +2 -2
  178. package/dist/components/navbar/sub-navbar.d.ts +16 -16
  179. package/dist/components/navbar/sub-navbar.js +7 -7
  180. package/dist/components/pagination/index.d.ts +16 -16
  181. package/dist/components/pagination/index.js +5 -5
  182. package/dist/components/pagination/pagination-button.d.ts +16 -16
  183. package/dist/components/pagination/pagination-button.js +3 -3
  184. package/dist/components/pagination/pagination-item.d.ts +1 -1
  185. package/dist/components/pagination/pagination-item.js +1 -1
  186. package/dist/components/pagination/pagination.d.ts +16 -16
  187. package/dist/components/pagination/pagination.js +1 -1
  188. package/dist/components/popover/index.d.ts +16 -16
  189. package/dist/components/popover/index.js +6 -6
  190. package/dist/components/popover/popover-trigger-context.d.ts +1 -1
  191. package/dist/components/popover/popover-trigger-context.js +1 -1
  192. package/dist/components/popover/popover-trigger.d.ts +16 -16
  193. package/dist/components/popover/popover-trigger.js +4 -4
  194. package/dist/components/popover/popover.d.ts +16 -16
  195. package/dist/components/popover/popover.js +3 -3
  196. package/dist/components/radio/index.d.ts +16 -16
  197. package/dist/components/radio/index.js +6 -6
  198. package/dist/components/radio/radio.d.ts +16 -16
  199. package/dist/components/radio/radio.js +6 -6
  200. package/dist/components/search/index.d.ts +16 -16
  201. package/dist/components/search/index.js +7 -7
  202. package/dist/components/search/search.d.ts +16 -16
  203. package/dist/components/search/search.js +7 -7
  204. package/dist/components/select/index.d.ts +16 -16
  205. package/dist/components/select/index.js +3 -3
  206. package/dist/components/select/select-optgroup.d.ts +16 -16
  207. package/dist/components/select/select-optgroup.js +1 -1
  208. package/dist/components/select/select-option.d.ts +16 -16
  209. package/dist/components/select/select-option.js +1 -1
  210. package/dist/components/select/select.d.ts +16 -16
  211. package/dist/components/select/select.js +1 -1
  212. package/dist/components/selectfield/index.d.ts +16 -16
  213. package/dist/components/selectfield/index.js +9 -9
  214. package/dist/components/selectfield/selectfield.d.ts +16 -16
  215. package/dist/components/selectfield/selectfield.js +9 -9
  216. package/dist/components/skip-link/index.d.ts +16 -16
  217. package/dist/components/skip-link/index.js +1 -1
  218. package/dist/components/skip-link/skip-link.d.ts +16 -16
  219. package/dist/components/skip-link/skip-link.js +1 -1
  220. package/dist/components/spinner/index.d.ts +16 -16
  221. package/dist/components/spinner/index.js +1 -1
  222. package/dist/components/spinner/spinner.d.ts +16 -16
  223. package/dist/components/spinner/spinner.js +1 -1
  224. package/dist/components/sticky-header/index.d.ts +1 -1
  225. package/dist/components/sticky-header/index.js +1 -1
  226. package/dist/components/sticky-header/sticky-header.d.ts +1 -1
  227. package/dist/components/sticky-header/sticky-header.js +1 -1
  228. package/dist/components/tabs/index.d.ts +16 -16
  229. package/dist/components/tabs/index.js +6 -6
  230. package/dist/components/tabs/tab.d.ts +16 -16
  231. package/dist/components/tabs/tab.js +3 -3
  232. package/dist/components/tabs/tabs-list.d.ts +16 -16
  233. package/dist/components/tabs/tabs-list.js +1 -1
  234. package/dist/components/tabs/tabs-panel.d.ts +16 -16
  235. package/dist/components/tabs/tabs-panel.js +1 -1
  236. package/dist/components/tabs/tabs.d.ts +16 -16
  237. package/dist/components/tabs/tabs.js +1 -1
  238. package/dist/components/textarea/index.d.ts +16 -16
  239. package/dist/components/textarea/index.js +1 -1
  240. package/dist/components/textarea/textarea.d.ts +16 -16
  241. package/dist/components/textarea/textarea.js +1 -1
  242. package/dist/components/textfield/index.d.ts +16 -16
  243. package/dist/components/textfield/index.js +8 -8
  244. package/dist/components/textfield/textfield.d.ts +16 -16
  245. package/dist/components/textfield/textfield.js +8 -8
  246. package/dist/components/validation-message/index.d.ts +16 -16
  247. package/dist/components/validation-message/index.js +1 -1
  248. package/dist/components/validation-message/validation-message.d.ts +16 -16
  249. package/dist/components/validation-message/validation-message.js +1 -1
  250. package/dist/{details-D8uz-ejF.js → details-CyZ8AhqZ.js} +2 -2
  251. package/dist/{details-D8uz-ejF.js.map → details-CyZ8AhqZ.js.map} +1 -1
  252. package/dist/{details-content-DyBjPa-n.js → details-content-CEonXv4Z.js} +2 -2
  253. package/dist/{details-content-DyBjPa-n.js.map → details-content-CEonXv4Z.js.map} +1 -1
  254. package/dist/{details-summary-DcMRpjT9.js → details-summary-2aWDkUtC.js} +2 -2
  255. package/dist/{details-summary-DcMRpjT9.js.map → details-summary-2aWDkUtC.js.map} +1 -1
  256. package/dist/{dialog-BKmFcPdL.js → dialog-BWFdCEFl.js} +4 -4
  257. package/dist/{dialog-BKmFcPdL.js.map → dialog-BWFdCEFl.js.map} +1 -1
  258. package/dist/{dialog-close-button-BlnF2w7h.js → dialog-close-button-Bsts19rr.js} +3 -3
  259. package/dist/{dialog-close-button-BlnF2w7h.js.map → dialog-close-button-Bsts19rr.js.map} +1 -1
  260. package/dist/{dialog-content-CCRtpkxJ.js → dialog-content-DYnW9MKV.js} +2 -2
  261. package/dist/{dialog-content-CCRtpkxJ.js.map → dialog-content-DYnW9MKV.js.map} +1 -1
  262. package/dist/{dialog-footer-BtOrrpKZ.js → dialog-footer-BBrXYflD.js} +2 -2
  263. package/dist/{dialog-footer-BtOrrpKZ.js.map → dialog-footer-BBrXYflD.js.map} +1 -1
  264. package/dist/{dialog-header-BCDHRQHP.js → dialog-header-DANjKaQ1.js} +2 -2
  265. package/dist/{dialog-header-BCDHRQHP.js.map → dialog-header-DANjKaQ1.js.map} +1 -1
  266. package/dist/{dialog-trigger-Ccn2CTPM.js → dialog-trigger-BVJ1MQG-.js} +4 -4
  267. package/dist/{dialog-trigger-Ccn2CTPM.js.map → dialog-trigger-BVJ1MQG-.js.map} +1 -1
  268. package/dist/{dialog-trigger-context-B_MK_dPS.d.ts → dialog-trigger-context-CqcFlKiZ.d.ts} +4 -4
  269. package/dist/{dialog-trigger-context-B41wR-bM.js → dialog-trigger-context-DN-LPvAt.js} +2 -2
  270. package/dist/{dialog-trigger-context-B41wR-bM.js.map → dialog-trigger-context-DN-LPvAt.js.map} +1 -1
  271. package/dist/{drawer-d5Uiow6D.js → drawer-Bz-q2S6-.js} +3 -3
  272. package/dist/{drawer-d5Uiow6D.js.map → drawer-Bz-q2S6-.js.map} +1 -1
  273. package/dist/{drawer-close-button-BRLWTL88.js → drawer-close-button-DHlSno0p.js} +3 -3
  274. package/dist/{drawer-close-button-BRLWTL88.js.map → drawer-close-button-DHlSno0p.js.map} +1 -1
  275. package/dist/{drawer-content-CCLmuHnA.js → drawer-content-B1YtFru4.js} +3 -3
  276. package/dist/{drawer-content-CCLmuHnA.js.map → drawer-content-B1YtFru4.js.map} +1 -1
  277. package/dist/{drawer-footer-Dcv1LfaG.js → drawer-footer-CBbYG1Bh.js} +3 -3
  278. package/dist/{drawer-footer-Dcv1LfaG.js.map → drawer-footer-CBbYG1Bh.js.map} +1 -1
  279. package/dist/{drawer-header-CcO0S9oA.js → drawer-header-g1bCz993.js} +3 -3
  280. package/dist/{drawer-header-CcO0S9oA.js.map → drawer-header-g1bCz993.js.map} +1 -1
  281. package/dist/drawer-trigger-context-BGpQEYl4.d.ts +13 -0
  282. package/dist/{drawer-trigger-context-DHYdt3sB.js → drawer-trigger-context-BHO7eD_d.js} +3 -3
  283. package/dist/{drawer-trigger-context-DHYdt3sB.js.map → drawer-trigger-context-BHO7eD_d.js.map} +1 -1
  284. package/dist/{drawer-trigger-bgJGCoDO.js → drawer-trigger-eU97jGAp.js} +3 -3
  285. package/dist/{drawer-trigger-bgJGCoDO.js.map → drawer-trigger-eU97jGAp.js.map} +1 -1
  286. package/dist/{dropdown-nbL-onyj.js → dropdown-CCg6rzQY.js} +3 -3
  287. package/dist/{dropdown-nbL-onyj.js.map → dropdown-CCg6rzQY.js.map} +1 -1
  288. package/dist/{dropdown-DKqrO1uv.js → dropdown-CQQXWYLO.js} +3 -3
  289. package/dist/{dropdown-DKqrO1uv.js.map → dropdown-CQQXWYLO.js.map} +1 -1
  290. package/dist/{dropdown-button-B4-z264p.js → dropdown-button-DX3q2jNw.js} +3 -3
  291. package/dist/{dropdown-button-B4-z264p.js.map → dropdown-button-DX3q2jNw.js.map} +1 -1
  292. package/dist/{dropdown-item-BnnEFIq3.js → dropdown-item-BgSLViTx.js} +2 -2
  293. package/dist/{dropdown-item-BnnEFIq3.js.map → dropdown-item-BgSLViTx.js.map} +1 -1
  294. package/dist/{dropdown-item-B7Z0CA1w.d.ts → dropdown-item-BxIXaDzp.d.ts} +4 -4
  295. package/dist/{dropdown-list-mT0TnFtP.d.ts → dropdown-list-BIcdCeXr.d.ts} +4 -4
  296. package/dist/{dropdown-list-BWW85rXi.js → dropdown-list-BapVSbIu.js} +2 -2
  297. package/dist/{dropdown-list-BWW85rXi.js.map → dropdown-list-BapVSbIu.js.map} +1 -1
  298. package/dist/{dropdown-trigger-D-1jExjx.js → dropdown-trigger-CtlZlfs8.js} +3 -3
  299. package/dist/{dropdown-trigger-D-1jExjx.js.map → dropdown-trigger-CtlZlfs8.js.map} +1 -1
  300. package/dist/{dropdown-trigger-context-BkqjqjhG.js → dropdown-trigger-context-B2TLcM8I.js} +3 -3
  301. package/dist/{dropdown-trigger-context-BkqjqjhG.js.map → dropdown-trigger-context-B2TLcM8I.js.map} +1 -1
  302. package/dist/{field-Dul9LBgF.js → field-D1Jkd3WD.js} +2 -2
  303. package/dist/{field-Dul9LBgF.js.map → field-D1Jkd3WD.js.map} +1 -1
  304. package/dist/{field-affix-C5w3NK4H.js → field-affix-BXjFnItQ.js} +2 -2
  305. package/dist/{field-affix-C5w3NK4H.js.map → field-affix-BXjFnItQ.js.map} +1 -1
  306. package/dist/{field-description-Yya33j8H.js → field-description-BRSERQAP.js} +2 -2
  307. package/dist/{field-description-Yya33j8H.js.map → field-description-BRSERQAP.js.map} +1 -1
  308. package/dist/{fieldset-DGB7cvdz.js → fieldset-CZSI5wwc.js} +2 -2
  309. package/dist/{fieldset-DGB7cvdz.js.map → fieldset-CZSI5wwc.js.map} +1 -1
  310. package/dist/{fieldset-description-DTGln20C.js → fieldset-description-D4N_ed4q.js} +2 -2
  311. package/dist/{fieldset-description-DTGln20C.js.map → fieldset-description-D4N_ed4q.js.map} +1 -1
  312. package/dist/{fieldset-legend-CfDR8p_J.js → fieldset-legend-CDlElVZc.js} +3 -3
  313. package/dist/{fieldset-legend-CfDR8p_J.js.map → fieldset-legend-CDlElVZc.js.map} +1 -1
  314. package/dist/{filter-group-WL9CsWUn.js → filter-group-DSd-1ZhQ.js} +2 -2
  315. package/dist/{filter-group-WL9CsWUn.js.map → filter-group-DSd-1ZhQ.js.map} +1 -1
  316. package/dist/{footer-DBpJeaE7.js → footer-CSPsXNCC.js} +3 -3
  317. package/dist/{footer-DBpJeaE7.js.map → footer-CSPsXNCC.js.map} +1 -1
  318. package/dist/{footer-links-Dz1UwVuf.js → footer-links-C3LEaC7-.js} +2 -2
  319. package/dist/{footer-links-Dz1UwVuf.js.map → footer-links-C3LEaC7-.js.map} +1 -1
  320. package/dist/{footer-links-DwC8DIcq.d.ts → footer-links-C5WrGyTb.d.ts} +4 -4
  321. package/dist/{index-BIb0BPml.d.ts → index-6rZNUbuV.d.ts} +2 -2
  322. package/dist/{index-C5pwIX2T.d.ts → index-Bj4eygmJ.d.ts} +2 -2
  323. package/dist/{index-CjCYMKtV.d.ts → index-DN58K_UQ.d.ts} +2 -2
  324. package/dist/{input-Dr7BnTyd.js → input-CgF0i1u8.js} +2 -2
  325. package/dist/{input-Dr7BnTyd.js.map → input-CgF0i1u8.js.map} +1 -1
  326. package/dist/{label-DG_ojO9g.js → label-BaMh8Ijy.js} +2 -2
  327. package/dist/{label-DG_ojO9g.js.map → label-BaMh8Ijy.js.map} +1 -1
  328. package/dist/{link-BFwfumUp.js → link-BGv3Ab1J.js} +2 -2
  329. package/dist/{link-BFwfumUp.js.map → link-BGv3Ab1J.js.map} +1 -1
  330. package/dist/{logo-cfY7Ilvc.js → logo-CvGg-HzA.js} +2 -2
  331. package/dist/{logo-cfY7Ilvc.js.map → logo-CvGg-HzA.js.map} +1 -1
  332. package/dist/main.d.ts +16 -16
  333. package/dist/main.js +82 -82
  334. package/dist/{navbar-DJJMercW.js → navbar-CtfPHCkA.js} +3 -3
  335. package/dist/{navbar-DJJMercW.js.map → navbar-CtfPHCkA.js.map} +1 -1
  336. package/dist/{pagination-DudKyNfl.js → pagination-BdN5oqdC.js} +2 -2
  337. package/dist/{pagination-DudKyNfl.js.map → pagination-BdN5oqdC.js.map} +1 -1
  338. package/dist/{pagination-button-CU4PzuxK.js → pagination-button-CWEt4eCa.js} +3 -3
  339. package/dist/{pagination-button-CU4PzuxK.js.map → pagination-button-CWEt4eCa.js.map} +1 -1
  340. package/dist/{pagination-item-DNfDsZWn.js → pagination-item-BZlQhuGc.js} +2 -2
  341. package/dist/{pagination-item-DNfDsZWn.js.map → pagination-item-BZlQhuGc.js.map} +1 -1
  342. package/dist/{pagination-item-C_IbouJc.d.ts → pagination-item-C5Jm0qFy.d.ts} +4 -4
  343. package/dist/{popover-MrMPbttR.js → popover-CtlyOt4q.js} +4 -4
  344. package/dist/popover-CtlyOt4q.js.map +1 -0
  345. package/dist/{popover-trigger-D5_RrlH1.js → popover-trigger-C1LAt9Yt.js} +11 -13
  346. package/dist/{popover-trigger-D5_RrlH1.js.map → popover-trigger-C1LAt9Yt.js.map} +1 -1
  347. package/dist/{popover-trigger-context-D98Drt62.d.ts → popover-trigger-context-DTdlFdLb.d.ts} +4 -4
  348. package/dist/{popover-trigger-context-D7nOI0FT.js → popover-trigger-context-kIEYqgwe.js} +3 -4
  349. package/dist/{popover-trigger-context-D7nOI0FT.js.map → popover-trigger-context-kIEYqgwe.js.map} +1 -1
  350. package/dist/{popover-CxA8qDdU.js → popover-zflFe06m.js} +2 -2
  351. package/dist/{popover-CxA8qDdU.js.map → popover-zflFe06m.js.map} +1 -1
  352. package/dist/{radio-Cl85eVpp.js → radio-BP_5V-3R.js} +6 -6
  353. package/dist/{radio-Cl85eVpp.js.map → radio-BP_5V-3R.js.map} +1 -1
  354. package/dist/{search-CiUvi72_.js → search-CysJwqFg.js} +7 -10
  355. package/dist/{search-CiUvi72_.js.map → search-CysJwqFg.js.map} +1 -1
  356. package/dist/{select-DbN5Q14j.js → select-Ox4VdWk6.js} +2 -2
  357. package/dist/{select-DbN5Q14j.js.map → select-Ox4VdWk6.js.map} +1 -1
  358. package/dist/{select-optgroup-aG5VGPAT.js → select-optgroup-B8brZp4y.js} +2 -2
  359. package/dist/{select-optgroup-aG5VGPAT.js.map → select-optgroup-B8brZp4y.js.map} +1 -1
  360. package/dist/{select-option-CN9x5ATv.js → select-option-CbCLGRii.js} +2 -2
  361. package/dist/{select-option-CN9x5ATv.js.map → select-option-CbCLGRii.js.map} +1 -1
  362. package/dist/{selectfield-D_WUpp9p.js → selectfield-CBvjyhPz.js} +7 -7
  363. package/dist/{selectfield-D_WUpp9p.js.map → selectfield-CBvjyhPz.js.map} +1 -1
  364. package/dist/{skip-link-BSrs8rA0.js → skip-link-BaakuBla.js} +2 -2
  365. package/dist/{skip-link-BSrs8rA0.js.map → skip-link-BaakuBla.js.map} +1 -1
  366. package/dist/{spinner-Ch5bEQBR.js → spinner-DtNSUyLJ.js} +2 -2
  367. package/dist/{spinner-Ch5bEQBR.js.map → spinner-DtNSUyLJ.js.map} +1 -1
  368. package/dist/{sticky-header-BTIgrhPe.d.ts → sticky-header-DQlgWbz7.d.ts} +4 -4
  369. package/dist/{sticky-header-C54KyN7F.js → sticky-header-ZTuj7Xom.js} +2 -2
  370. package/dist/{sticky-header-C54KyN7F.js.map → sticky-header-ZTuj7Xom.js.map} +1 -1
  371. package/dist/{sub-navbar-hkklQKBv.js → sub-navbar-CmsQCLew.js} +2 -2
  372. package/dist/{sub-navbar-hkklQKBv.js.map → sub-navbar-CmsQCLew.js.map} +1 -1
  373. package/dist/{sub-navbar-CtpYH9CP.js → sub-navbar-kmlhvP1h.js} +4 -4
  374. package/dist/{sub-navbar-CtpYH9CP.js.map → sub-navbar-kmlhvP1h.js.map} +1 -1
  375. package/dist/{tab-B2DlXQYE.js → tab-CnZLTAGU.js} +3 -3
  376. package/dist/{tab-B2DlXQYE.js.map → tab-CnZLTAGU.js.map} +1 -1
  377. package/dist/{tabs-Cet8jr_P.js → tabs-Bx0mdBSQ.js} +2 -2
  378. package/dist/{tabs-Cet8jr_P.js.map → tabs-Bx0mdBSQ.js.map} +1 -1
  379. package/dist/{tabs-list-BdcW4pqj.js → tabs-list-CH1-bFE-.js} +2 -2
  380. package/dist/{tabs-list-BdcW4pqj.js.map → tabs-list-CH1-bFE-.js.map} +1 -1
  381. package/dist/{tabs-panel-DLVzDmVt.js → tabs-panel-otK5exaT.js} +2 -2
  382. package/dist/{tabs-panel-DLVzDmVt.js.map → tabs-panel-otK5exaT.js.map} +1 -1
  383. package/dist/{textarea-B-aCRt3J.js → textarea-vPcZF4zT.js} +2 -2
  384. package/dist/{textarea-B-aCRt3J.js.map → textarea-vPcZF4zT.js.map} +1 -1
  385. package/dist/{textfield-D4YyrSZI.js → textfield-B5A1V9cg.js} +9 -9
  386. package/dist/{textfield-D4YyrSZI.js.map → textfield-B5A1V9cg.js.map} +1 -1
  387. package/dist/{types-DC_g3L-J.d.ts → types-BRcQPIRw.d.ts} +2 -2
  388. package/dist/{types-LBHl14PF.d.ts → types-yUMPmMvf.d.ts} +2 -2
  389. package/dist/types.d.ts +1 -1
  390. package/dist/{useCheckboxGroup-nxlcj9XV.d.ts → useCheckboxGroup-BrrIH1cE.d.ts} +2 -2
  391. package/dist/{useCheckboxGroup-CZ7NF3kT.js → useCheckboxGroup-o3qjoN6C.js} +3 -4
  392. package/dist/{useCheckboxGroup-CZ7NF3kT.js.map → useCheckboxGroup-o3qjoN6C.js.map} +1 -1
  393. package/dist/{useIsElementAboveViewport-DESvUblG.js → useIsElementAboveViewport-DADUKz5a.js} +2 -2
  394. package/dist/{useIsElementAboveViewport-DESvUblG.js.map → useIsElementAboveViewport-DADUKz5a.js.map} +1 -1
  395. package/dist/{useIsElementAboveViewport-DHjLWtIr.d.ts → useIsElementAboveViewport-Dicc167e.d.ts} +2 -2
  396. package/dist/{useIsomorphicLayoutEffect-ChcL7oKz.js → useIsomorphicLayoutEffect-BQ9PB6qU.js} +2 -2
  397. package/dist/{useIsomorphicLayoutEffect-ChcL7oKz.js.map → useIsomorphicLayoutEffect-BQ9PB6qU.js.map} +1 -1
  398. package/dist/{useIsomorphicLayoutEffect-xBMCbFbr.d.ts → useIsomorphicLayoutEffect-CsNaN4tt.d.ts} +2 -2
  399. package/dist/{useMediaQuery-DS4pcarq.js → useMediaQuery-B9WBQVN-.js} +3 -3
  400. package/dist/{useMediaQuery-DS4pcarq.js.map → useMediaQuery-B9WBQVN-.js.map} +1 -1
  401. package/dist/{useMediaQuery-Bg5u2Z9G.d.ts → useMediaQuery-BaGh_Of7.d.ts} +2 -2
  402. package/dist/{useMergeRefs-DC710CHX.js → useMergeRefs-DCP96xru.js} +2 -2
  403. package/dist/{useMergeRefs-DC710CHX.js.map → useMergeRefs-DCP96xru.js.map} +1 -1
  404. package/dist/{usePagination-BEplBMLC.js → usePagination-CTgHpuVh.js} +2 -2
  405. package/dist/{usePagination-BEplBMLC.js.map → usePagination-CTgHpuVh.js.map} +1 -1
  406. package/dist/{useScrollDirection-D0LV5RmP.d.ts → useScrollDirection-BSCugbOI.d.ts} +2 -2
  407. package/dist/{useScrollDirection-DKn8fE9-.js → useScrollDirection-WoyT9n1K.js} +2 -2
  408. package/dist/{useScrollDirection-DKn8fE9-.js.map → useScrollDirection-WoyT9n1K.js.map} +1 -1
  409. package/dist/utilities/hooks/index.d.ts +16 -16
  410. package/dist/utilities/hooks/index.js +6 -6
  411. package/dist/utilities/hooks/useCheckboxGroup/useCheckboxGroup.d.ts +1 -1
  412. package/dist/utilities/hooks/useCheckboxGroup/useCheckboxGroup.js +1 -1
  413. package/dist/utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.d.ts +1 -1
  414. package/dist/utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.js +1 -1
  415. package/dist/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +1 -1
  416. package/dist/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  417. package/dist/utilities/hooks/useMediaQuery/useMediaQuery.d.ts +1 -1
  418. package/dist/utilities/hooks/useMediaQuery/useMediaQuery.js +2 -2
  419. package/dist/utilities/hooks/useMergeRefs/useMergeRefs.js +1 -1
  420. package/dist/utilities/hooks/usePagination/usePagination.d.ts +16 -16
  421. package/dist/utilities/hooks/usePagination/usePagination.js +1 -1
  422. package/dist/utilities/hooks/useScrollDirection/useScrollDirection.d.ts +1 -1
  423. package/dist/utilities/hooks/useScrollDirection/useScrollDirection.js +1 -1
  424. package/dist/utilities/index.d.ts +16 -16
  425. package/dist/utilities/index.js +6 -6
  426. package/dist/utilities/types.d.ts +1 -1
  427. package/dist/{validation-message-pl1_2HbT.js → validation-message-B9BkpQYe.js} +2 -2
  428. package/dist/{validation-message-pl1_2HbT.js.map → validation-message-B9BkpQYe.js.map} +1 -1
  429. package/dist/vanilla/dropdown/index.d.ts +1 -1
  430. package/dist/vanilla/dropdown/index.js +2 -2
  431. package/dist/vanilla/index.d.ts +3 -3
  432. package/dist/vanilla/index.js +3 -3
  433. package/dist/vanilla/popover/index.d.ts +1 -1
  434. package/dist/vanilla/popover/index.js +1 -1
  435. package/dist/vanilla/sub-navbar/index.d.ts +1 -1
  436. package/dist/vanilla/sub-navbar/index.js +1 -1
  437. package/package.json +13 -15
  438. package/dist/alert-C6PxDwHt.js.map +0 -1
  439. package/dist/card-xvRovR7u.js.map +0 -1
  440. package/dist/drawer-trigger-context-CtKVp90I.d.ts +0 -13
  441. package/dist/popover-MrMPbttR.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import { Field } from "./field-Dul9LBgF.js";
2
- import { FieldDescription } from "./field-description-Yya33j8H.js";
3
- import { Input } from "./input-Dr7BnTyd.js";
4
- import { Label } from "./label-DG_ojO9g.js";
1
+ import { t as Field } from "./field-D1Jkd3WD.js";
2
+ import { t as FieldDescription } from "./field-description-BRSERQAP.js";
3
+ import { t as Input } from "./input-CgF0i1u8.js";
4
+ import { t as Label } from "./label-BaMh8Ijy.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { useId } from "react";
7
7
 
@@ -41,5 +41,5 @@ const Radio = ({ dark, label, description, error, fullwidth, style, className, r
41
41
  };
42
42
 
43
43
  //#endregion
44
- export { Radio };
45
- //# sourceMappingURL=radio-Cl85eVpp.js.map
44
+ export { Radio as t };
45
+ //# sourceMappingURL=radio-BP_5V-3R.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-Cl85eVpp.js","names":[],"sources":["../src/components/radio/radio.tsx"],"sourcesContent":["import { useId, type ReactNode, type Ref } from 'react';\n\nimport type { LabelRequiredProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { Field, FieldDescription } from '../field';\nimport { Input, type InputProps } from '../input';\nimport { Label } from '../label';\n\nexport type RadioProps = MergeRight<\n LabelRequiredProps & Omit<InputProps, 'type' | 'role' | 'size'>,\n {\n /** Label */\n label?: ReactNode;\n /** Description */\n description?: ReactNode;\n /** Add error indication to the radio. */\n error?: boolean;\n /** If true, the radio will take up the full width of the container, and not just \"fit-content\" which is default */\n fullwidth?: boolean;\n ref?: Ref<HTMLInputElement>;\n }\n>;\n\nexport const Radio = ({\n dark,\n label,\n description,\n error,\n fullwidth,\n style,\n className,\n ref,\n id,\n 'aria-describedby': ariaDescribedByProp,\n ...props\n}: RadioProps) => {\n const descriptionId = useId();\n\n const ariaDescribedBy = [description ? descriptionId : '', ariaDescribedByProp].join(' ').trim() || undefined;\n\n return (\n <Field className={className} data-dark={dark} style={style} fullwidth={fullwidth} asChild>\n <label>\n <Input\n type='radio'\n id={id}\n ref={ref}\n aria-invalid={error || undefined}\n aria-describedby={ariaDescribedBy}\n dark={dark}\n {...props}\n />\n {label && (\n <Label weight='medium' htmlFor={id} asChild>\n <span>{label}</span>\n </Label>\n )}\n {description && (\n // Aria-hidden is used to prevent screen readers from reading the description twice:\n // once as part of the label and once from being connected through aria-describedby.\n <FieldDescription aria-hidden='true' id={descriptionId}>\n {description}\n </FieldDescription>\n )}\n </label>\n </Field>\n );\n};\n"],"mappings":";;;;;;;;AAuBA,MAAa,SAAS,EACpB,MACA,OACA,aACA,OACA,WACA,OACA,WACA,KACA,IACA,oBAAoB,oBACpB,GAAG,YACa;CAChB,MAAM,gBAAgB,OAAO;CAE7B,MAAM,kBAAkB,CAAC,cAAc,gBAAgB,IAAI,oBAAoB,CAAC,KAAK,IAAI,CAAC,MAAM,IAAI;AAEpG,QACE,oBAAC;EAAiB;EAAW,aAAW;EAAa;EAAkB;EAAW;YAChF,qBAAC;GACC,oBAAC;IACC,MAAK;IACD;IACC;IACL,gBAAc,SAAS;IACvB,oBAAkB;IACZ;IACN,GAAI;KACJ;GACD,SACC,oBAAC;IAAM,QAAO;IAAS,SAAS;IAAI;cAClC,oBAAC,oBAAM,QAAa;KACd;GAET,eAGC,oBAAC;IAAiB,eAAY;IAAO,IAAI;cACtC;KACgB;MAEf;GACF"}
1
+ {"version":3,"file":"radio-BP_5V-3R.js","names":[],"sources":["../src/components/radio/radio.tsx"],"sourcesContent":["import { useId, type ReactNode, type Ref } from 'react';\n\nimport type { LabelRequiredProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { Field, FieldDescription } from '../field';\nimport { Input, type InputProps } from '../input';\nimport { Label } from '../label';\n\nexport type RadioProps = MergeRight<\n LabelRequiredProps & Omit<InputProps, 'type' | 'role' | 'size'>,\n {\n /** Label */\n label?: ReactNode;\n /** Description */\n description?: ReactNode;\n /** Add error indication to the radio. */\n error?: boolean;\n /** If true, the radio will take up the full width of the container, and not just \"fit-content\" which is default */\n fullwidth?: boolean;\n ref?: Ref<HTMLInputElement>;\n }\n>;\n\nexport const Radio = ({\n dark,\n label,\n description,\n error,\n fullwidth,\n style,\n className,\n ref,\n id,\n 'aria-describedby': ariaDescribedByProp,\n ...props\n}: RadioProps) => {\n const descriptionId = useId();\n\n const ariaDescribedBy = [description ? descriptionId : '', ariaDescribedByProp].join(' ').trim() || undefined;\n\n return (\n <Field className={className} data-dark={dark} style={style} fullwidth={fullwidth} asChild>\n <label>\n <Input\n type='radio'\n id={id}\n ref={ref}\n aria-invalid={error || undefined}\n aria-describedby={ariaDescribedBy}\n dark={dark}\n {...props}\n />\n {label && (\n <Label weight='medium' htmlFor={id} asChild>\n <span>{label}</span>\n </Label>\n )}\n {description && (\n // Aria-hidden is used to prevent screen readers from reading the description twice:\n // once as part of the label and once from being connected through aria-describedby.\n <FieldDescription aria-hidden='true' id={descriptionId}>\n {description}\n </FieldDescription>\n )}\n </label>\n </Field>\n );\n};\n"],"mappings":";;;;;;;;AAuBA,MAAa,SAAS,EACpB,MACA,OACA,aACA,OACA,WACA,OACA,WACA,KACA,IACA,oBAAoB,oBACpB,GAAG,YACa;CAChB,MAAM,gBAAgB,OAAO;CAE7B,MAAM,kBAAkB,CAAC,cAAc,gBAAgB,IAAI,oBAAoB,CAAC,KAAK,IAAI,CAAC,MAAM,IAAI;AAEpG,QACE,oBAAC;EAAiB;EAAW,aAAW;EAAa;EAAkB;EAAW;YAChF,qBAAC;GACC,oBAAC;IACC,MAAK;IACD;IACC;IACL,gBAAc,SAAS;IACvB,oBAAkB;IACZ;IACN,GAAI;KACJ;GACD,SACC,oBAAC;IAAM,QAAO;IAAS,SAAS;IAAI;cAClC,oBAAC,oBAAM,QAAa;KACd;GAET,eAGC,oBAAC;IAAiB,eAAY;IAAO,IAAI;cACtC;KACgB;MAEf;GACF"}
@@ -1,7 +1,7 @@
1
- import { Button } from "./button-BzU7DrNe.js";
2
- import { Field } from "./field-Dul9LBgF.js";
3
- import { FieldAffix, FieldAffixes } from "./field-affix-C5w3NK4H.js";
4
- import { Input } from "./input-Dr7BnTyd.js";
1
+ import { t as Button } from "./button-CQH17-73.js";
2
+ import { t as Field } from "./field-D1Jkd3WD.js";
3
+ import { n as FieldAffixes, t as FieldAffix } from "./field-affix-BXjFnItQ.js";
4
+ import { t as Input } from "./input-CgF0i1u8.js";
5
5
  import clsx from "clsx/lite";
6
6
  import { CrossSmallIcon, MagnefyingGlassIcon } from "@bi-digital/icons";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -10,10 +10,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
10
10
  const Search = ({ className, onSubmit, onReset, clearAriaLabel = "Clear", size = "medium", ref, dark, style, fullwidth,...props }) => {
11
11
  const handleSubmit = (e) => {
12
12
  e.preventDefault();
13
- if (onSubmit) {
14
- const input = e.currentTarget.querySelector("input");
15
- onSubmit(input?.value || "");
16
- }
13
+ if (onSubmit) onSubmit(e.currentTarget.querySelector("input")?.value || "");
17
14
  };
18
15
  const handleReset = () => {
19
16
  if (onReset) onReset("");
@@ -57,5 +54,5 @@ const Search = ({ className, onSubmit, onReset, clearAriaLabel = "Clear", size =
57
54
  };
58
55
 
59
56
  //#endregion
60
- export { Search };
61
- //# sourceMappingURL=search-CiUvi72_.js.map
57
+ export { Search as t };
58
+ //# sourceMappingURL=search-CysJwqFg.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-CiUvi72_.js","names":[],"sources":["../src/components/search/search.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport { Field, FieldAffixes, FieldAffix } from '../field';\nimport { Input, type InputProps } from '../input';\nimport { CrossSmallIcon, MagnefyingGlassIcon } from '@bi-digital/icons';\nimport type { MergeRight } from '../../utilities';\nimport { Button } from '../button';\n\nexport type SearchProps = MergeRight<\n Omit<InputProps, 'type' | 'size'>,\n {\n /**\n * Size of the search.\n * @default 'medium'\n */\n size?: 'medium' | 'large';\n /** Called when the user presses enter. You can use this to for example navigate on submit. */\n onSubmit?: (value: string) => void;\n /** Called when the user resets the search input. */\n onReset?: (value: string) => void;\n /**\n * Aria-label for the clear button.\n * @defaultValue 'Clear'\n */\n clearAriaLabel?: string;\n /** If true, the selectfield will take up the full available width */\n fullwidth?: boolean;\n }\n>;\n\nexport const Search = ({\n className,\n onSubmit,\n onReset,\n clearAriaLabel = 'Clear',\n size = 'medium',\n ref,\n dark,\n style,\n fullwidth,\n ...props\n}: SearchProps) => {\n const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {\n e.preventDefault();\n if (onSubmit) {\n const input = e.currentTarget.querySelector('input');\n onSubmit(input?.value || '');\n }\n };\n const handleReset = () => {\n if (onReset) {\n onReset('');\n }\n };\n return (\n <Field className={clsx('bi-search', className)} data-dark={dark} style={style} fullwidth={fullwidth} asChild>\n <form onSubmit={handleSubmit} onReset={handleReset}>\n <FieldAffixes>\n <FieldAffix>\n <MagnefyingGlassIcon size={size} />\n </FieldAffix>\n <Input type='text' ref={ref} size={size} dark={dark} {...props} />\n <FieldAffix aria-hidden='false'>\n <Button aria-label={clearAriaLabel} icon size={size} dark={dark} variant='text' type='reset'>\n <CrossSmallIcon size={size} aria-hidden='true' />\n </Button>\n </FieldAffix>\n </FieldAffixes>\n </form>\n </Field>\n );\n};\n"],"mappings":";;;;;;;;;AA6BA,MAAa,UAAU,EACrB,WACA,UACA,SACA,iBAAiB,SACjB,OAAO,UACP,KACA,MACA,OACA,UACA,GAAG,YACc;CACjB,MAAM,gBAAgB,MAAwC;AAC5D,IAAE,gBAAgB;AAClB,MAAI,UAAU;GACZ,MAAM,QAAQ,EAAE,cAAc,cAAc,QAAQ;AACpD,YAAS,OAAO,SAAS,GAAG;;;CAGhC,MAAM,oBAAoB;AACxB,MAAI,QACF,SAAQ,GAAG;;AAGf,QACE,oBAAC;EAAM,WAAW,KAAK,aAAa,UAAU;EAAE,aAAW;EAAa;EAAkB;EAAW;YACnG,oBAAC;GAAK,UAAU;GAAc,SAAS;aACrC,qBAAC;IACC,oBAAC,wBACC,oBAAC,uBAA0B,OAAQ,GACxB;IACb,oBAAC;KAAM,MAAK;KAAY;KAAW;KAAY;KAAM,GAAI;MAAS;IAClE,oBAAC;KAAW,eAAY;eACtB,oBAAC;MAAO,cAAY;MAAgB;MAAW;MAAY;MAAM,SAAQ;MAAO,MAAK;gBACnF,oBAAC;OAAqB;OAAM,eAAY;QAAS;OAC1C;MACE;OACA;IACV;GACD"}
1
+ {"version":3,"file":"search-CysJwqFg.js","names":[],"sources":["../src/components/search/search.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport { Field, FieldAffixes, FieldAffix } from '../field';\nimport { Input, type InputProps } from '../input';\nimport { CrossSmallIcon, MagnefyingGlassIcon } from '@bi-digital/icons';\nimport type { MergeRight } from '../../utilities';\nimport { Button } from '../button';\n\nexport type SearchProps = MergeRight<\n Omit<InputProps, 'type' | 'size'>,\n {\n /**\n * Size of the search.\n * @default 'medium'\n */\n size?: 'medium' | 'large';\n /** Called when the user presses enter. You can use this to for example navigate on submit. */\n onSubmit?: (value: string) => void;\n /** Called when the user resets the search input. */\n onReset?: (value: string) => void;\n /**\n * Aria-label for the clear button.\n * @defaultValue 'Clear'\n */\n clearAriaLabel?: string;\n /** If true, the selectfield will take up the full available width */\n fullwidth?: boolean;\n }\n>;\n\nexport const Search = ({\n className,\n onSubmit,\n onReset,\n clearAriaLabel = 'Clear',\n size = 'medium',\n ref,\n dark,\n style,\n fullwidth,\n ...props\n}: SearchProps) => {\n const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {\n e.preventDefault();\n if (onSubmit) {\n const input = e.currentTarget.querySelector('input');\n onSubmit(input?.value || '');\n }\n };\n const handleReset = () => {\n if (onReset) {\n onReset('');\n }\n };\n return (\n <Field className={clsx('bi-search', className)} data-dark={dark} style={style} fullwidth={fullwidth} asChild>\n <form onSubmit={handleSubmit} onReset={handleReset}>\n <FieldAffixes>\n <FieldAffix>\n <MagnefyingGlassIcon size={size} />\n </FieldAffix>\n <Input type='text' ref={ref} size={size} dark={dark} {...props} />\n <FieldAffix aria-hidden='false'>\n <Button aria-label={clearAriaLabel} icon size={size} dark={dark} variant='text' type='reset'>\n <CrossSmallIcon size={size} aria-hidden='true' />\n </Button>\n </FieldAffix>\n </FieldAffixes>\n </form>\n </Field>\n );\n};\n"],"mappings":";;;;;;;;;AA6BA,MAAa,UAAU,EACrB,WACA,UACA,SACA,iBAAiB,SACjB,OAAO,UACP,KACA,MACA,OACA,UACA,GAAG,YACc;CACjB,MAAM,gBAAgB,MAAwC;AAC5D,IAAE,gBAAgB;AAClB,MAAI,SAEF,UADc,EAAE,cAAc,cAAc,QAAQ,EACpC,SAAS,GAAG;;CAGhC,MAAM,oBAAoB;AACxB,MAAI,QACF,SAAQ,GAAG;;AAGf,QACE,oBAAC;EAAM,WAAW,KAAK,aAAa,UAAU;EAAE,aAAW;EAAa;EAAkB;EAAW;YACnG,oBAAC;GAAK,UAAU;GAAc,SAAS;aACrC,qBAAC;IACC,oBAAC,wBACC,oBAAC,uBAA0B,OAAQ,GACxB;IACb,oBAAC;KAAM,MAAK;KAAY;KAAW;KAAY;KAAM,GAAI;MAAS;IAClE,oBAAC;KAAW,eAAY;eACtB,oBAAC;MAAO,cAAY;MAAgB;MAAW;MAAY;MAAM,SAAQ;MAAO,MAAK;gBACnF,oBAAC;OAAqB;OAAM,eAAY;QAAS;OAC1C;MACE;OACA;IACV;GACD"}
@@ -22,5 +22,5 @@ const Select = ({ className, dark, onKeyDown, onMouseDown, size, ref,...props })
22
22
  };
23
23
 
24
24
  //#endregion
25
- export { Select };
26
- //# sourceMappingURL=select-DbN5Q14j.js.map
25
+ export { Select as t };
26
+ //# sourceMappingURL=select-Ox4VdWk6.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"select-DbN5Q14j.js","names":[],"sources":["../src/components/select/select.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { Ref, SelectHTMLAttributes } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { DefaultProps } from '../../types';\n\nexport type SelectProps = MergeRight<\n DefaultProps & Omit<SelectHTMLAttributes<HTMLSelectElement>, 'multiple' | 'size'>,\n {\n /**\n * Size of the select.\n * @default 'medium'\n */\n size?: 'medium' | 'large';\n /** Mark the select as readOnly */\n readOnly?: boolean;\n ref?: Ref<HTMLSelectElement>;\n }\n>;\n\nexport const Select = ({ className, dark, onKeyDown, onMouseDown, size, ref, ...props }: SelectProps) => {\n return (\n <select\n className={clsx('bi-input', className)}\n data-dark={dark}\n data-size={size}\n ref={ref}\n onKeyDown={(event) => {\n if (event.key === 'Tab') return;\n if (props.readOnly) event.preventDefault(); // Make readOnly work for select\n onKeyDown?.(event);\n }}\n onMouseDown={(event) => {\n if (props.readOnly) event.preventDefault(); // Make readOnly work for select\n onMouseDown?.(event);\n }}\n {...props}\n />\n );\n};\n"],"mappings":";;;;AAmBA,MAAa,UAAU,EAAE,WAAW,MAAM,WAAW,aAAa,MAAM,IAAK,GAAG,YAAyB;AACvG,QACE,oBAAC;EACC,WAAW,KAAK,YAAY,UAAU;EACtC,aAAW;EACX,aAAW;EACN;EACL,YAAY,UAAU;AACpB,OAAI,MAAM,QAAQ,MAAO;AACzB,OAAI,MAAM,SAAU,OAAM,gBAAgB;AAC1C,eAAY,MAAM;;EAEpB,cAAc,UAAU;AACtB,OAAI,MAAM,SAAU,OAAM,gBAAgB;AAC1C,iBAAc,MAAM;;EAEtB,GAAI;GACJ"}
1
+ {"version":3,"file":"select-Ox4VdWk6.js","names":[],"sources":["../src/components/select/select.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { Ref, SelectHTMLAttributes } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { DefaultProps } from '../../types';\n\nexport type SelectProps = MergeRight<\n DefaultProps & Omit<SelectHTMLAttributes<HTMLSelectElement>, 'multiple' | 'size'>,\n {\n /**\n * Size of the select.\n * @default 'medium'\n */\n size?: 'medium' | 'large';\n /** Mark the select as readOnly */\n readOnly?: boolean;\n ref?: Ref<HTMLSelectElement>;\n }\n>;\n\nexport const Select = ({ className, dark, onKeyDown, onMouseDown, size, ref, ...props }: SelectProps) => {\n return (\n <select\n className={clsx('bi-input', className)}\n data-dark={dark}\n data-size={size}\n ref={ref}\n onKeyDown={(event) => {\n if (event.key === 'Tab') return;\n if (props.readOnly) event.preventDefault(); // Make readOnly work for select\n onKeyDown?.(event);\n }}\n onMouseDown={(event) => {\n if (props.readOnly) event.preventDefault(); // Make readOnly work for select\n onMouseDown?.(event);\n }}\n {...props}\n />\n );\n};\n"],"mappings":";;;;AAmBA,MAAa,UAAU,EAAE,WAAW,MAAM,WAAW,aAAa,MAAM,IAAK,GAAG,YAAyB;AACvG,QACE,oBAAC;EACC,WAAW,KAAK,YAAY,UAAU;EACtC,aAAW;EACX,aAAW;EACN;EACL,YAAY,UAAU;AACpB,OAAI,MAAM,QAAQ,MAAO;AACzB,OAAI,MAAM,SAAU,OAAM,gBAAgB;AAC1C,eAAY,MAAM;;EAEpB,cAAc,UAAU;AACtB,OAAI,MAAM,SAAU,OAAM,gBAAgB;AAC1C,iBAAc,MAAM;;EAEtB,GAAI;GACJ"}
@@ -10,5 +10,5 @@ const SelectOptgroup = ({ asChild, ref,...props }) => {
10
10
  };
11
11
 
12
12
  //#endregion
13
- export { SelectOptgroup };
14
- //# sourceMappingURL=select-optgroup-aG5VGPAT.js.map
13
+ export { SelectOptgroup as t };
14
+ //# sourceMappingURL=select-optgroup-B8brZp4y.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"select-optgroup-aG5VGPAT.js","names":[],"sources":["../src/components/select/select-optgroup.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport type { OptgroupHTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { AsChildProps } from '../../types';\n\nexport type SelectOptgroupProps = MergeRight<\n AsChildProps & OptgroupHTMLAttributes<HTMLOptGroupElement>,\n {\n ref?: Ref<HTMLOptGroupElement>;\n }\n>;\n\nexport const SelectOptgroup = ({ asChild, ref, ...props }: SelectOptgroupProps) => {\n const Component = asChild ? Slot : 'optgroup';\n return <Component {...props} ref={ref} />;\n};\n"],"mappings":";;;;AAYA,MAAa,kBAAkB,EAAE,SAAS,IAAK,GAAG,YAAiC;AAEjF,QAAO,oBADW,UAAU,OAAO;EACjB,GAAI;EAAY;GAAO"}
1
+ {"version":3,"file":"select-optgroup-B8brZp4y.js","names":[],"sources":["../src/components/select/select-optgroup.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport type { OptgroupHTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { AsChildProps } from '../../types';\n\nexport type SelectOptgroupProps = MergeRight<\n AsChildProps & OptgroupHTMLAttributes<HTMLOptGroupElement>,\n {\n ref?: Ref<HTMLOptGroupElement>;\n }\n>;\n\nexport const SelectOptgroup = ({ asChild, ref, ...props }: SelectOptgroupProps) => {\n const Component = asChild ? Slot : 'optgroup';\n return <Component {...props} ref={ref} />;\n};\n"],"mappings":";;;;AAYA,MAAa,kBAAkB,EAAE,SAAS,IAAK,GAAG,YAAiC;AAEjF,QAAO,oBADW,UAAU,OAAO;EACjB,GAAI;EAAY;GAAO"}
@@ -10,5 +10,5 @@ const SelectOption = ({ asChild, ref,...props }) => {
10
10
  };
11
11
 
12
12
  //#endregion
13
- export { SelectOption };
14
- //# sourceMappingURL=select-option-CN9x5ATv.js.map
13
+ export { SelectOption as t };
14
+ //# sourceMappingURL=select-option-CbCLGRii.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"select-option-CN9x5ATv.js","names":[],"sources":["../src/components/select/select-option.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport type { OptionHTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { AsChildProps } from '../../types';\n\nexport type SelectOptionProps = MergeRight<\n AsChildProps & OptionHTMLAttributes<HTMLOptionElement>,\n {\n ref?: Ref<HTMLOptionElement>;\n }\n>;\n\nexport const SelectOption = ({ asChild, ref, ...props }: SelectOptionProps) => {\n const Component = asChild ? Slot : 'option';\n return <Component {...props} ref={ref} />;\n};\n"],"mappings":";;;;AAYA,MAAa,gBAAgB,EAAE,SAAS,IAAK,GAAG,YAA+B;AAE7E,QAAO,oBADW,UAAU,OAAO;EACjB,GAAI;EAAY;GAAO"}
1
+ {"version":3,"file":"select-option-CbCLGRii.js","names":[],"sources":["../src/components/select/select-option.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport type { OptionHTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { AsChildProps } from '../../types';\n\nexport type SelectOptionProps = MergeRight<\n AsChildProps & OptionHTMLAttributes<HTMLOptionElement>,\n {\n ref?: Ref<HTMLOptionElement>;\n }\n>;\n\nexport const SelectOption = ({ asChild, ref, ...props }: SelectOptionProps) => {\n const Component = asChild ? Slot : 'option';\n return <Component {...props} ref={ref} />;\n};\n"],"mappings":";;;;AAYA,MAAa,gBAAgB,EAAE,SAAS,IAAK,GAAG,YAA+B;AAE7E,QAAO,oBADW,UAAU,OAAO;EACjB,GAAI;EAAY;GAAO"}
@@ -1,8 +1,8 @@
1
- import { Field } from "./field-Dul9LBgF.js";
2
- import { FieldDescription } from "./field-description-Yya33j8H.js";
3
- import { Label } from "./label-DG_ojO9g.js";
4
- import { Select } from "./select-DbN5Q14j.js";
5
- import { ValidationMessage } from "./validation-message-pl1_2HbT.js";
1
+ import { t as Field } from "./field-D1Jkd3WD.js";
2
+ import { t as FieldDescription } from "./field-description-BRSERQAP.js";
3
+ import { t as Label } from "./label-BaMh8Ijy.js";
4
+ import { t as Select } from "./select-Ox4VdWk6.js";
5
+ import { t as ValidationMessage } from "./validation-message-B9BkpQYe.js";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { useId } from "react";
8
8
 
@@ -49,5 +49,5 @@ const Selectfield = ({ children, dark, label, description, error, style, classNa
49
49
  };
50
50
 
51
51
  //#endregion
52
- export { Selectfield };
53
- //# sourceMappingURL=selectfield-D_WUpp9p.js.map
52
+ export { Selectfield as t };
53
+ //# sourceMappingURL=selectfield-CBvjyhPz.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"selectfield-D_WUpp9p.js","names":[],"sources":["../src/components/selectfield/selectfield.tsx"],"sourcesContent":["import { useId, type ReactNode } from 'react';\n\nimport type { LabelRequiredProps } from '../../types';\nimport { Field, FieldDescription } from '../field';\nimport { Label } from '../label';\nimport { Select, type SelectProps } from '../select';\nimport { ValidationMessage } from '../validation-message';\nimport { MergeRight } from '../../utilities';\n\nexport type SelectfieldProps = MergeRight<\n LabelRequiredProps & SelectProps,\n {\n /** Description */\n description?: ReactNode;\n /** Error message for field */\n error?: ReactNode;\n /** If true, the selectfield will take up the full available width */\n fullwidth?: boolean;\n }\n>;\n\nexport const Selectfield = ({\n children,\n dark,\n label,\n description,\n error,\n style,\n className,\n fullwidth,\n ref,\n id: idProp,\n 'aria-describedby': ariaDescribedByProp,\n ...props\n}: SelectfieldProps) => {\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 <Select\n id={id}\n ref={ref}\n dark={dark}\n aria-invalid={Boolean(error) || undefined}\n aria-describedby={ariaDescribedBy}\n {...props}\n >\n {children}\n </Select>\n {!!error && <ValidationMessage id={validationId}>{error}</ValidationMessage>}\n </Field>\n );\n};\n"],"mappings":";;;;;;;;;AAqBA,MAAa,eAAe,EAC1B,UACA,MACA,OACA,aACA,OACA,OACA,WACA,WACA,KACA,IAAI,QACJ,oBAAoB,oBACpB,GAAG,YACmB;CACtB,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;AACzG,QACE,qBAAC;EAAiB;EAAW,aAAW;EAAa;EAAkB;;GACpE,SAAS,oBAAC;IAAM,SAAS;cAAK;KAAc;GAC5C,eAAe,oBAAC;IAAiB,IAAI;cAAgB;KAA+B;GACrF,oBAAC;IACK;IACC;IACC;IACN,gBAAc,QAAQ,MAAM,IAAI;IAChC,oBAAkB;IAClB,GAAI;IAEH;KACM;GACR,CAAC,CAAC,SAAS,oBAAC;IAAkB,IAAI;cAAe;KAA0B;;GACtE"}
1
+ {"version":3,"file":"selectfield-CBvjyhPz.js","names":[],"sources":["../src/components/selectfield/selectfield.tsx"],"sourcesContent":["import { useId, type ReactNode } from 'react';\n\nimport type { LabelRequiredProps } from '../../types';\nimport { Field, FieldDescription } from '../field';\nimport { Label } from '../label';\nimport { Select, type SelectProps } from '../select';\nimport { ValidationMessage } from '../validation-message';\nimport { MergeRight } from '../../utilities';\n\nexport type SelectfieldProps = MergeRight<\n LabelRequiredProps & SelectProps,\n {\n /** Description */\n description?: ReactNode;\n /** Error message for field */\n error?: ReactNode;\n /** If true, the selectfield will take up the full available width */\n fullwidth?: boolean;\n }\n>;\n\nexport const Selectfield = ({\n children,\n dark,\n label,\n description,\n error,\n style,\n className,\n fullwidth,\n ref,\n id: idProp,\n 'aria-describedby': ariaDescribedByProp,\n ...props\n}: SelectfieldProps) => {\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 <Select\n id={id}\n ref={ref}\n dark={dark}\n aria-invalid={Boolean(error) || undefined}\n aria-describedby={ariaDescribedBy}\n {...props}\n >\n {children}\n </Select>\n {!!error && <ValidationMessage id={validationId}>{error}</ValidationMessage>}\n </Field>\n );\n};\n"],"mappings":";;;;;;;;;AAqBA,MAAa,eAAe,EAC1B,UACA,MACA,OACA,aACA,OACA,OACA,WACA,WACA,KACA,IAAI,QACJ,oBAAoB,oBACpB,GAAG,YACmB;CACtB,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;AACzG,QACE,qBAAC;EAAiB;EAAW,aAAW;EAAa;EAAkB;;GACpE,SAAS,oBAAC;IAAM,SAAS;cAAK;KAAc;GAC5C,eAAe,oBAAC;IAAiB,IAAI;cAAgB;KAA+B;GACrF,oBAAC;IACK;IACC;IACC;IACN,gBAAc,QAAQ,MAAM,IAAI;IAChC,oBAAkB;IAClB,GAAI;IAEH;KACM;GACR,CAAC,CAAC,SAAS,oBAAC;IAAkB,IAAI;cAAe;KAA0B;;GACtE"}
@@ -13,5 +13,5 @@ const SkipLink = ({ asChild, children, className, dark,...props }) => {
13
13
  };
14
14
 
15
15
  //#endregion
16
- export { SkipLink };
17
- //# sourceMappingURL=skip-link-BSrs8rA0.js.map
16
+ export { SkipLink as t };
17
+ //# sourceMappingURL=skip-link-BaakuBla.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"skip-link-BSrs8rA0.js","names":[],"sources":["../src/components/skip-link/skip-link.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport { Slot } from '@radix-ui/react-slot';\nimport type { MergeRight } from '../../utilities';\nimport type { AsChildProps, DefaultProps } from '../../types';\nimport type { AnchorHTMLAttributes, Ref } from 'react';\n\nexport type SkipLinkProps = MergeRight<\n DefaultProps & AsChildProps & AnchorHTMLAttributes<HTMLAnchorElement>,\n {\n ref?: Ref<HTMLAnchorElement>;\n }\n>;\n\nexport const SkipLink = ({ asChild, children, className, dark, ...props }: SkipLinkProps) => {\n const Component = asChild ? Slot : 'a';\n return (\n <Component className={clsx('bi-skip-link', className)} data-dark={dark} {...props}>\n {children}\n </Component>\n );\n};\n"],"mappings":";;;;;AAaA,MAAa,YAAY,EAAE,SAAS,UAAU,WAAW,KAAM,GAAG,YAA2B;AAE3F,QACE,oBAFgB,UAAU,OAAO;EAEtB,WAAW,KAAK,gBAAgB,UAAU;EAAE,aAAW;EAAM,GAAI;EACzE;GACS"}
1
+ {"version":3,"file":"skip-link-BaakuBla.js","names":[],"sources":["../src/components/skip-link/skip-link.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport { Slot } from '@radix-ui/react-slot';\nimport type { MergeRight } from '../../utilities';\nimport type { AsChildProps, DefaultProps } from '../../types';\nimport type { AnchorHTMLAttributes, Ref } from 'react';\n\nexport type SkipLinkProps = MergeRight<\n DefaultProps & AsChildProps & AnchorHTMLAttributes<HTMLAnchorElement>,\n {\n ref?: Ref<HTMLAnchorElement>;\n }\n>;\n\nexport const SkipLink = ({ asChild, children, className, dark, ...props }: SkipLinkProps) => {\n const Component = asChild ? Slot : 'a';\n return (\n <Component className={clsx('bi-skip-link', className)} data-dark={dark} {...props}>\n {children}\n </Component>\n );\n};\n"],"mappings":";;;;;AAaA,MAAa,YAAY,EAAE,SAAS,UAAU,WAAW,KAAM,GAAG,YAA2B;AAE3F,QACE,oBAFgB,UAAU,OAAO;EAEtB,WAAW,KAAK,gBAAgB,UAAU;EAAE,aAAW;EAAM,GAAI;EACzE;GACS"}
@@ -13,5 +13,5 @@ const Spinner = ({ color = "inherit", size, className, ref,...props }) => {
13
13
  };
14
14
 
15
15
  //#endregion
16
- export { Spinner };
17
- //# sourceMappingURL=spinner-Ch5bEQBR.js.map
16
+ export { Spinner as t };
17
+ //# sourceMappingURL=spinner-DtNSUyLJ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"spinner-Ch5bEQBR.js","names":[],"sources":["../src/components/spinner/spinner.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { DefaultProps } from '../../types';\n\nexport type SpinnerProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLSpanElement>,\n {\n /**\n * The color of the spinner.\n * @default 'inherit'\n */\n color?: 'inherit' | 'black';\n /**\n * The size of the spinner.\n * It sets the font-size as the width and height is `1em`. If not set, the spinner will inherit the font size of its parent.\n */\n size?: 'small' | 'medium' | 'large' | 'xl' | '2xl';\n ref?: Ref<HTMLSpanElement>;\n }\n>;\n\nexport const Spinner = ({ color = 'inherit', size, className, ref, ...props }: SpinnerProps) => {\n return <span className={clsx('bi-spinner', className)} data-size={size} data-color={color} ref={ref} {...props} />;\n};\n"],"mappings":";;;;AAsBA,MAAa,WAAW,EAAE,QAAQ,WAAW,MAAM,WAAW,IAAK,GAAG,YAA0B;AAC9F,QAAO,oBAAC;EAAK,WAAW,KAAK,cAAc,UAAU;EAAE,aAAW;EAAM,cAAY;EAAY;EAAK,GAAI;GAAS"}
1
+ {"version":3,"file":"spinner-DtNSUyLJ.js","names":[],"sources":["../src/components/spinner/spinner.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { DefaultProps } from '../../types';\n\nexport type SpinnerProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLSpanElement>,\n {\n /**\n * The color of the spinner.\n * @default 'inherit'\n */\n color?: 'inherit' | 'black';\n /**\n * The size of the spinner.\n * It sets the font-size as the width and height is `1em`. If not set, the spinner will inherit the font size of its parent.\n */\n size?: 'small' | 'medium' | 'large' | 'xl' | '2xl';\n ref?: Ref<HTMLSpanElement>;\n }\n>;\n\nexport const Spinner = ({ color = 'inherit', size, className, ref, ...props }: SpinnerProps) => {\n return <span className={clsx('bi-spinner', className)} data-size={size} data-color={color} ref={ref} {...props} />;\n};\n"],"mappings":";;;;AAsBA,MAAa,WAAW,EAAE,QAAQ,WAAW,MAAM,WAAW,IAAK,GAAG,YAA0B;AAC9F,QAAO,oBAAC;EAAK,WAAW,KAAK,cAAc,UAAU;EAAE,aAAW;EAAM,cAAY;EAAY;EAAK,GAAI;GAAS"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime67 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime66 from "react/jsx-runtime";
2
2
  import { ReactNode } from "react";
3
3
 
4
4
  //#region src/components/sticky-header/sticky-header.d.ts
@@ -13,7 +13,7 @@ type StickyHeaderProps = {
13
13
  */
14
14
  declare const StickyHeader: ({
15
15
  children
16
- }: StickyHeaderProps) => react_jsx_runtime67.JSX.Element;
16
+ }: StickyHeaderProps) => react_jsx_runtime66.JSX.Element;
17
17
  //#endregion
18
- export { StickyHeader, StickyHeaderProps };
19
- //# sourceMappingURL=sticky-header-BTIgrhPe.d.ts.map
18
+ export { StickyHeaderProps as n, StickyHeader as t };
19
+ //# sourceMappingURL=sticky-header-DQlgWbz7.d.ts.map
@@ -16,5 +16,5 @@ const StickyHeader = ({ children }) => {
16
16
  };
17
17
 
18
18
  //#endregion
19
- export { StickyHeader };
20
- //# sourceMappingURL=sticky-header-C54KyN7F.js.map
19
+ export { StickyHeader as t };
20
+ //# sourceMappingURL=sticky-header-ZTuj7Xom.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sticky-header-C54KyN7F.js","names":[],"sources":["../src/components/sticky-header/sticky-header.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport type { ReactNode } from 'react';\n\nexport type StickyHeaderProps = {\n children: ReactNode;\n};\n\n/**\n * Make a sticky header that will stay at the top of the viewport when scrolling.\n * It handles different distance to the top based on sub-navbar, navbar and other factors.\n * This element is a Slot which simply adds the correct CSS styles to the children.\n * Make sure that the children passed to this component appends className and not overrides it.\n */\nexport const StickyHeader = ({ children }: StickyHeaderProps) => {\n const Component = Slot;\n return <Component className='bi-sticky-header'>{children}</Component>;\n};\n"],"mappings":";;;;;;;;;;AAaA,MAAa,gBAAgB,EAAE,eAAkC;AAE/D,QAAO,oBADW;EACA,WAAU;EAAoB;GAAqB"}
1
+ {"version":3,"file":"sticky-header-ZTuj7Xom.js","names":[],"sources":["../src/components/sticky-header/sticky-header.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport type { ReactNode } from 'react';\n\nexport type StickyHeaderProps = {\n children: ReactNode;\n};\n\n/**\n * Make a sticky header that will stay at the top of the viewport when scrolling.\n * It handles different distance to the top based on sub-navbar, navbar and other factors.\n * This element is a Slot which simply adds the correct CSS styles to the children.\n * Make sure that the children passed to this component appends className and not overrides it.\n */\nexport const StickyHeader = ({ children }: StickyHeaderProps) => {\n const Component = Slot;\n return <Component className='bi-sticky-header'>{children}</Component>;\n};\n"],"mappings":";;;;;;;;;;AAaA,MAAa,gBAAgB,EAAE,eAAkC;AAE/D,QAAO,oBADW;EACA,WAAU;EAAoB;GAAqB"}
@@ -114,5 +114,5 @@ const initSubNavbar = ({ selector = ".bi-sub-navbar" } = {}) => {
114
114
  };
115
115
 
116
116
  //#endregion
117
- export { initSubNavbar };
118
- //# sourceMappingURL=sub-navbar-hkklQKBv.js.map
117
+ export { initSubNavbar as t };
118
+ //# sourceMappingURL=sub-navbar-CmsQCLew.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sub-navbar-hkklQKBv.js","names":["element: HTMLElement","cleanupFunctions: (() => void)[]"],"sources":["../src/vanilla/sub-navbar/index.ts"],"sourcesContent":["/**\n * Detects the vertical scroll direction of the page.\n * Returns 'up' | 'down' | null. The direction is only updated if the scroll distance\n * exceeds a 5px threshold to prevent sensitivity to minor scroll jitter.\n */\nclass ScrollDirectionTracker {\n private scrollDirection: 'up' | 'down' | null = null;\n private lastScrollY = window.pageYOffset;\n private callbacks = new Set<(direction: 'up' | 'down' | null) => void>();\n\n constructor() {\n this.updateScrollDirection = this.updateScrollDirection.bind(this);\n window.addEventListener('scroll', this.updateScrollDirection);\n }\n\n private updateScrollDirection() {\n const scrollY = window.pageYOffset;\n const direction = scrollY > this.lastScrollY ? 'down' : 'up';\n\n if (direction !== this.scrollDirection && (scrollY - this.lastScrollY > 5 || scrollY - this.lastScrollY < -5)) {\n this.scrollDirection = direction;\n this.callbacks.forEach((callback) => callback(this.scrollDirection));\n }\n\n this.lastScrollY = scrollY > 0 ? scrollY : 0;\n }\n\n subscribe(callback: (direction: 'up' | 'down' | null) => void) {\n this.callbacks.add(callback);\n return () => this.callbacks.delete(callback);\n }\n\n destroy() {\n window.removeEventListener('scroll', this.updateScrollDirection);\n this.callbacks.clear();\n }\n\n getCurrentDirection() {\n return this.scrollDirection;\n }\n}\n\n/**\n * Detects when an element is scrolled past and is no longer in the viewport.\n */\nclass ElementAboveViewportTracker {\n private isAboveViewport = false;\n private observer: IntersectionObserver;\n private callbacks = new Set<(isAbove: boolean) => void>();\n\n constructor(private element: HTMLElement) {\n this.observer = new IntersectionObserver(\n ([entry]) => {\n const newIsAbove = entry.boundingClientRect.y < 0;\n if (newIsAbove !== this.isAboveViewport) {\n this.isAboveViewport = newIsAbove;\n this.callbacks.forEach((callback) => callback(this.isAboveViewport));\n }\n },\n { threshold: [0] },\n );\n\n this.observer.observe(this.element);\n }\n\n subscribe(callback: (isAbove: boolean) => void) {\n this.callbacks.add(callback);\n return () => this.callbacks.delete(callback);\n }\n\n destroy() {\n this.observer.disconnect();\n this.callbacks.clear();\n }\n\n getIsAboveViewport() {\n return this.isAboveViewport;\n }\n}\n\nexport type InitSubNavbarOptions = {\n /**\n * Custom selector to find sub-navbars.\n * @default '.bi-sub-navbar'\n */\n selector?: string;\n};\n\n/**\n * Initializes all sub-navbars on the page to handle scroll-based behavior.\n * This includes:\n * - Setting data-fixed attribute when the navbar is scrolled past\n * - Setting data-scroll-dir attribute based on scroll direction when fixed\n *\n * @param options Configuration options\n * @returns Cleanup function to remove all event listeners and observers\n */\nexport const initSubNavbar = ({ selector = '.bi-sub-navbar' }: InitSubNavbarOptions = {}) => {\n const subNavbars = document.querySelectorAll<HTMLElement>(selector);\n\n if (subNavbars.length === 0) {\n console.warn(`No elements found with selector: ${selector}`);\n return () => {};\n }\n\n const scrollTracker = new ScrollDirectionTracker();\n const cleanupFunctions: (() => void)[] = [];\n\n subNavbars.forEach((navbar) => {\n const wrapper = navbar.closest('.bi-sub-navbar--wrapper') as HTMLElement;\n if (!wrapper) {\n console.warn('Sub-navbar must be wrapped in an element with class \"bi-sub-navbar--wrapper\"');\n return;\n }\n\n // Find or create the reference element (empty div) that acts as the scroll trigger\n let referenceElement = wrapper.querySelector<HTMLElement>('div:first-child');\n if (!referenceElement || referenceElement === navbar) {\n referenceElement = document.createElement('div');\n wrapper.insertBefore(referenceElement, navbar);\n }\n\n const viewportTracker = new ElementAboveViewportTracker(referenceElement);\n\n // Subscribe to viewport changes\n const unsubscribeViewport = viewportTracker.subscribe((isAbove) => {\n navbar.setAttribute('data-fixed', String(isAbove));\n\n // Only set scroll direction when fixed\n if (isAbove) {\n const currentDirection = scrollTracker.getCurrentDirection();\n if (currentDirection) {\n navbar.setAttribute('data-scroll-dir', currentDirection);\n }\n } else {\n navbar.removeAttribute('data-scroll-dir');\n }\n });\n\n // Subscribe to scroll direction changes\n const unsubscribeScroll = scrollTracker.subscribe((direction) => {\n const isFixed = navbar.getAttribute('data-fixed') === 'true';\n if (isFixed && direction) {\n navbar.setAttribute('data-scroll-dir', direction);\n }\n });\n\n cleanupFunctions.push(() => {\n unsubscribeViewport();\n unsubscribeScroll();\n viewportTracker.destroy();\n });\n });\n\n // Return cleanup function\n return () => {\n cleanupFunctions.forEach((cleanup) => cleanup());\n scrollTracker.destroy();\n };\n};\n"],"mappings":";;;;;;AAKA,IAAM,yBAAN,MAA6B;CAK3B,cAAc;yBAJkC;qBAC1B,OAAO;mCACT,IAAI,KAAgD;AAGtE,OAAK,wBAAwB,KAAK,sBAAsB,KAAK,KAAK;AAClE,SAAO,iBAAiB,UAAU,KAAK,sBAAsB;;CAG/D,AAAQ,wBAAwB;EAC9B,MAAM,UAAU,OAAO;EACvB,MAAM,YAAY,UAAU,KAAK,cAAc,SAAS;AAExD,MAAI,cAAc,KAAK,oBAAoB,UAAU,KAAK,cAAc,KAAK,UAAU,KAAK,cAAc,KAAK;AAC7G,QAAK,kBAAkB;AACvB,QAAK,UAAU,SAAS,aAAa,SAAS,KAAK,gBAAgB,CAAC;;AAGtE,OAAK,cAAc,UAAU,IAAI,UAAU;;CAG7C,UAAU,UAAqD;AAC7D,OAAK,UAAU,IAAI,SAAS;AAC5B,eAAa,KAAK,UAAU,OAAO,SAAS;;CAG9C,UAAU;AACR,SAAO,oBAAoB,UAAU,KAAK,sBAAsB;AAChE,OAAK,UAAU,OAAO;;CAGxB,sBAAsB;AACpB,SAAO,KAAK;;;;;;AAOhB,IAAM,8BAAN,MAAkC;CAKhC,YAAY,AAAQA,SAAsB;EAAtB;yBAJM;mCAEN,IAAI,KAAiC;AAGvD,OAAK,WAAW,IAAI,sBACjB,CAAC,WAAW;GACX,MAAM,aAAa,MAAM,mBAAmB,IAAI;AAChD,OAAI,eAAe,KAAK,iBAAiB;AACvC,SAAK,kBAAkB;AACvB,SAAK,UAAU,SAAS,aAAa,SAAS,KAAK,gBAAgB,CAAC;;KAGxE,EAAE,WAAW,CAAC,EAAE,EAAE,CACnB;AAED,OAAK,SAAS,QAAQ,KAAK,QAAQ;;CAGrC,UAAU,UAAsC;AAC9C,OAAK,UAAU,IAAI,SAAS;AAC5B,eAAa,KAAK,UAAU,OAAO,SAAS;;CAG9C,UAAU;AACR,OAAK,SAAS,YAAY;AAC1B,OAAK,UAAU,OAAO;;CAGxB,qBAAqB;AACnB,SAAO,KAAK;;;;;;;;;;;;AAqBhB,MAAa,iBAAiB,EAAE,WAAW,qBAA2C,EAAE,KAAK;CAC3F,MAAM,aAAa,SAAS,iBAA8B,SAAS;AAEnE,KAAI,WAAW,WAAW,GAAG;AAC3B,UAAQ,KAAK,oCAAoC,WAAW;AAC5D,eAAa;;CAGf,MAAM,gBAAgB,IAAI,wBAAwB;CAClD,MAAMC,mBAAmC,EAAE;AAE3C,YAAW,SAAS,WAAW;EAC7B,MAAM,UAAU,OAAO,QAAQ,0BAA0B;AACzD,MAAI,CAAC,SAAS;AACZ,WAAQ,KAAK,iFAA+E;AAC5F;;EAIF,IAAI,mBAAmB,QAAQ,cAA2B,kBAAkB;AAC5E,MAAI,CAAC,oBAAoB,qBAAqB,QAAQ;AACpD,sBAAmB,SAAS,cAAc,MAAM;AAChD,WAAQ,aAAa,kBAAkB,OAAO;;EAGhD,MAAM,kBAAkB,IAAI,4BAA4B,iBAAiB;EAGzE,MAAM,sBAAsB,gBAAgB,WAAW,YAAY;AACjE,UAAO,aAAa,cAAc,OAAO,QAAQ,CAAC;AAGlD,OAAI,SAAS;IACX,MAAM,mBAAmB,cAAc,qBAAqB;AAC5D,QAAI,iBACF,QAAO,aAAa,mBAAmB,iBAAiB;SAG1D,QAAO,gBAAgB,kBAAkB;IAE3C;EAGF,MAAM,oBAAoB,cAAc,WAAW,cAAc;AAE/D,OADgB,OAAO,aAAa,aAAa,KAAK,UACvC,UACb,QAAO,aAAa,mBAAmB,UAAU;IAEnD;AAEF,mBAAiB,WAAW;AAC1B,wBAAqB;AACrB,sBAAmB;AACnB,mBAAgB,SAAS;IACzB;GACF;AAGF,cAAa;AACX,mBAAiB,SAAS,YAAY,SAAS,CAAC;AAChD,gBAAc,SAAS"}
1
+ {"version":3,"file":"sub-navbar-CmsQCLew.js","names":["element: HTMLElement","cleanupFunctions: (() => void)[]"],"sources":["../src/vanilla/sub-navbar/index.ts"],"sourcesContent":["/**\n * Detects the vertical scroll direction of the page.\n * Returns 'up' | 'down' | null. The direction is only updated if the scroll distance\n * exceeds a 5px threshold to prevent sensitivity to minor scroll jitter.\n */\nclass ScrollDirectionTracker {\n private scrollDirection: 'up' | 'down' | null = null;\n private lastScrollY = window.pageYOffset;\n private callbacks = new Set<(direction: 'up' | 'down' | null) => void>();\n\n constructor() {\n this.updateScrollDirection = this.updateScrollDirection.bind(this);\n window.addEventListener('scroll', this.updateScrollDirection);\n }\n\n private updateScrollDirection() {\n const scrollY = window.pageYOffset;\n const direction = scrollY > this.lastScrollY ? 'down' : 'up';\n\n if (direction !== this.scrollDirection && (scrollY - this.lastScrollY > 5 || scrollY - this.lastScrollY < -5)) {\n this.scrollDirection = direction;\n this.callbacks.forEach((callback) => callback(this.scrollDirection));\n }\n\n this.lastScrollY = scrollY > 0 ? scrollY : 0;\n }\n\n subscribe(callback: (direction: 'up' | 'down' | null) => void) {\n this.callbacks.add(callback);\n return () => this.callbacks.delete(callback);\n }\n\n destroy() {\n window.removeEventListener('scroll', this.updateScrollDirection);\n this.callbacks.clear();\n }\n\n getCurrentDirection() {\n return this.scrollDirection;\n }\n}\n\n/**\n * Detects when an element is scrolled past and is no longer in the viewport.\n */\nclass ElementAboveViewportTracker {\n private isAboveViewport = false;\n private observer: IntersectionObserver;\n private callbacks = new Set<(isAbove: boolean) => void>();\n\n constructor(private element: HTMLElement) {\n this.observer = new IntersectionObserver(\n ([entry]) => {\n const newIsAbove = entry.boundingClientRect.y < 0;\n if (newIsAbove !== this.isAboveViewport) {\n this.isAboveViewport = newIsAbove;\n this.callbacks.forEach((callback) => callback(this.isAboveViewport));\n }\n },\n { threshold: [0] },\n );\n\n this.observer.observe(this.element);\n }\n\n subscribe(callback: (isAbove: boolean) => void) {\n this.callbacks.add(callback);\n return () => this.callbacks.delete(callback);\n }\n\n destroy() {\n this.observer.disconnect();\n this.callbacks.clear();\n }\n\n getIsAboveViewport() {\n return this.isAboveViewport;\n }\n}\n\nexport type InitSubNavbarOptions = {\n /**\n * Custom selector to find sub-navbars.\n * @default '.bi-sub-navbar'\n */\n selector?: string;\n};\n\n/**\n * Initializes all sub-navbars on the page to handle scroll-based behavior.\n * This includes:\n * - Setting data-fixed attribute when the navbar is scrolled past\n * - Setting data-scroll-dir attribute based on scroll direction when fixed\n *\n * @param options Configuration options\n * @returns Cleanup function to remove all event listeners and observers\n */\nexport const initSubNavbar = ({ selector = '.bi-sub-navbar' }: InitSubNavbarOptions = {}) => {\n const subNavbars = document.querySelectorAll<HTMLElement>(selector);\n\n if (subNavbars.length === 0) {\n console.warn(`No elements found with selector: ${selector}`);\n return () => {};\n }\n\n const scrollTracker = new ScrollDirectionTracker();\n const cleanupFunctions: (() => void)[] = [];\n\n subNavbars.forEach((navbar) => {\n const wrapper = navbar.closest('.bi-sub-navbar--wrapper') as HTMLElement;\n if (!wrapper) {\n console.warn('Sub-navbar must be wrapped in an element with class \"bi-sub-navbar--wrapper\"');\n return;\n }\n\n // Find or create the reference element (empty div) that acts as the scroll trigger\n let referenceElement = wrapper.querySelector<HTMLElement>('div:first-child');\n if (!referenceElement || referenceElement === navbar) {\n referenceElement = document.createElement('div');\n wrapper.insertBefore(referenceElement, navbar);\n }\n\n const viewportTracker = new ElementAboveViewportTracker(referenceElement);\n\n // Subscribe to viewport changes\n const unsubscribeViewport = viewportTracker.subscribe((isAbove) => {\n navbar.setAttribute('data-fixed', String(isAbove));\n\n // Only set scroll direction when fixed\n if (isAbove) {\n const currentDirection = scrollTracker.getCurrentDirection();\n if (currentDirection) {\n navbar.setAttribute('data-scroll-dir', currentDirection);\n }\n } else {\n navbar.removeAttribute('data-scroll-dir');\n }\n });\n\n // Subscribe to scroll direction changes\n const unsubscribeScroll = scrollTracker.subscribe((direction) => {\n const isFixed = navbar.getAttribute('data-fixed') === 'true';\n if (isFixed && direction) {\n navbar.setAttribute('data-scroll-dir', direction);\n }\n });\n\n cleanupFunctions.push(() => {\n unsubscribeViewport();\n unsubscribeScroll();\n viewportTracker.destroy();\n });\n });\n\n // Return cleanup function\n return () => {\n cleanupFunctions.forEach((cleanup) => cleanup());\n scrollTracker.destroy();\n };\n};\n"],"mappings":";;;;;;AAKA,IAAM,yBAAN,MAA6B;CAK3B,cAAc;yBAJkC;qBAC1B,OAAO;mCACT,IAAI,KAAgD;AAGtE,OAAK,wBAAwB,KAAK,sBAAsB,KAAK,KAAK;AAClE,SAAO,iBAAiB,UAAU,KAAK,sBAAsB;;CAG/D,AAAQ,wBAAwB;EAC9B,MAAM,UAAU,OAAO;EACvB,MAAM,YAAY,UAAU,KAAK,cAAc,SAAS;AAExD,MAAI,cAAc,KAAK,oBAAoB,UAAU,KAAK,cAAc,KAAK,UAAU,KAAK,cAAc,KAAK;AAC7G,QAAK,kBAAkB;AACvB,QAAK,UAAU,SAAS,aAAa,SAAS,KAAK,gBAAgB,CAAC;;AAGtE,OAAK,cAAc,UAAU,IAAI,UAAU;;CAG7C,UAAU,UAAqD;AAC7D,OAAK,UAAU,IAAI,SAAS;AAC5B,eAAa,KAAK,UAAU,OAAO,SAAS;;CAG9C,UAAU;AACR,SAAO,oBAAoB,UAAU,KAAK,sBAAsB;AAChE,OAAK,UAAU,OAAO;;CAGxB,sBAAsB;AACpB,SAAO,KAAK;;;;;;AAOhB,IAAM,8BAAN,MAAkC;CAKhC,YAAY,AAAQA,SAAsB;EAAtB;yBAJM;mCAEN,IAAI,KAAiC;AAGvD,OAAK,WAAW,IAAI,sBACjB,CAAC,WAAW;GACX,MAAM,aAAa,MAAM,mBAAmB,IAAI;AAChD,OAAI,eAAe,KAAK,iBAAiB;AACvC,SAAK,kBAAkB;AACvB,SAAK,UAAU,SAAS,aAAa,SAAS,KAAK,gBAAgB,CAAC;;KAGxE,EAAE,WAAW,CAAC,EAAE,EAAE,CACnB;AAED,OAAK,SAAS,QAAQ,KAAK,QAAQ;;CAGrC,UAAU,UAAsC;AAC9C,OAAK,UAAU,IAAI,SAAS;AAC5B,eAAa,KAAK,UAAU,OAAO,SAAS;;CAG9C,UAAU;AACR,OAAK,SAAS,YAAY;AAC1B,OAAK,UAAU,OAAO;;CAGxB,qBAAqB;AACnB,SAAO,KAAK;;;;;;;;;;;;AAqBhB,MAAa,iBAAiB,EAAE,WAAW,qBAA2C,EAAE,KAAK;CAC3F,MAAM,aAAa,SAAS,iBAA8B,SAAS;AAEnE,KAAI,WAAW,WAAW,GAAG;AAC3B,UAAQ,KAAK,oCAAoC,WAAW;AAC5D,eAAa;;CAGf,MAAM,gBAAgB,IAAI,wBAAwB;CAClD,MAAMC,mBAAmC,EAAE;AAE3C,YAAW,SAAS,WAAW;EAC7B,MAAM,UAAU,OAAO,QAAQ,0BAA0B;AACzD,MAAI,CAAC,SAAS;AACZ,WAAQ,KAAK,iFAA+E;AAC5F;;EAIF,IAAI,mBAAmB,QAAQ,cAA2B,kBAAkB;AAC5E,MAAI,CAAC,oBAAoB,qBAAqB,QAAQ;AACpD,sBAAmB,SAAS,cAAc,MAAM;AAChD,WAAQ,aAAa,kBAAkB,OAAO;;EAGhD,MAAM,kBAAkB,IAAI,4BAA4B,iBAAiB;EAGzE,MAAM,sBAAsB,gBAAgB,WAAW,YAAY;AACjE,UAAO,aAAa,cAAc,OAAO,QAAQ,CAAC;AAGlD,OAAI,SAAS;IACX,MAAM,mBAAmB,cAAc,qBAAqB;AAC5D,QAAI,iBACF,QAAO,aAAa,mBAAmB,iBAAiB;SAG1D,QAAO,gBAAgB,kBAAkB;IAE3C;EAGF,MAAM,oBAAoB,cAAc,WAAW,cAAc;AAE/D,OADgB,OAAO,aAAa,aAAa,KAAK,UACvC,UACb,QAAO,aAAa,mBAAmB,UAAU;IAEnD;AAEF,mBAAiB,WAAW;AAC1B,wBAAqB;AACrB,sBAAmB;AACnB,mBAAgB,SAAS;IACzB;GACF;AAGF,cAAa;AACX,mBAAiB,SAAS,YAAY,SAAS,CAAC;AAChD,gBAAc,SAAS"}
@@ -1,5 +1,5 @@
1
- import { useIsElementAboveViewport } from "./useIsElementAboveViewport-DESvUblG.js";
2
- import { useScrollDirection } from "./useScrollDirection-DKn8fE9-.js";
1
+ import { t as useIsElementAboveViewport } from "./useIsElementAboveViewport-DADUKz5a.js";
2
+ import { t as useScrollDirection } from "./useScrollDirection-WoyT9n1K.js";
3
3
  import clsx from "clsx/lite";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { useRef } from "react";
@@ -24,5 +24,5 @@ const SubNavbar = ({ dark = false, children, className, ref,...props }) => {
24
24
  };
25
25
 
26
26
  //#endregion
27
- export { SubNavbar };
28
- //# sourceMappingURL=sub-navbar-CtpYH9CP.js.map
27
+ export { SubNavbar as t };
28
+ //# sourceMappingURL=sub-navbar-kmlhvP1h.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sub-navbar-CtpYH9CP.js","names":[],"sources":["../src/components/navbar/sub-navbar.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport { useRef, type HTMLAttributes, type Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { DefaultProps } from '../../types';\nimport { useIsElementAboveViewport, useScrollDirection } from '../../utilities/hooks';\n\nexport type SubNavbarProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLDivElement>,\n {\n ref?: Ref<HTMLElement>;\n }\n>;\n\nexport const SubNavbar = ({ dark = false, children, className, ref, ...props }: SubNavbarProps) => {\n const elementRef = useRef<HTMLDivElement>(null);\n const fixed = useIsElementAboveViewport(elementRef);\n const scrollDirection = useScrollDirection();\n\n return (\n <div className='bi-sub-navbar--wrapper'>\n <div ref={elementRef} />\n <nav\n className={clsx('bi-sub-navbar', className)}\n data-fixed={fixed}\n data-scroll-dir={fixed ? scrollDirection : undefined}\n data-dark={dark}\n {...props}\n ref={ref}\n >\n {children}\n </nav>\n </div>\n );\n};\n"],"mappings":";;;;;;;AAaA,MAAa,aAAa,EAAE,OAAO,OAAO,UAAU,WAAW,IAAK,GAAG,YAA4B;CACjG,MAAM,aAAa,OAAuB,KAAK;CAC/C,MAAM,QAAQ,0BAA0B,WAAW;CACnD,MAAM,kBAAkB,oBAAoB;AAE5C,QACE,qBAAC;EAAI,WAAU;aACb,oBAAC,SAAI,KAAK,aAAc,EACxB,oBAAC;GACC,WAAW,KAAK,iBAAiB,UAAU;GAC3C,cAAY;GACZ,mBAAiB,QAAQ,kBAAkB;GAC3C,aAAW;GACX,GAAI;GACC;GAEJ;IACG;GACF"}
1
+ {"version":3,"file":"sub-navbar-kmlhvP1h.js","names":[],"sources":["../src/components/navbar/sub-navbar.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport { useRef, type HTMLAttributes, type Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { DefaultProps } from '../../types';\nimport { useIsElementAboveViewport, useScrollDirection } from '../../utilities/hooks';\n\nexport type SubNavbarProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLDivElement>,\n {\n ref?: Ref<HTMLElement>;\n }\n>;\n\nexport const SubNavbar = ({ dark = false, children, className, ref, ...props }: SubNavbarProps) => {\n const elementRef = useRef<HTMLDivElement>(null);\n const fixed = useIsElementAboveViewport(elementRef);\n const scrollDirection = useScrollDirection();\n\n return (\n <div className='bi-sub-navbar--wrapper'>\n <div ref={elementRef} />\n <nav\n className={clsx('bi-sub-navbar', className)}\n data-fixed={fixed}\n data-scroll-dir={fixed ? scrollDirection : undefined}\n data-dark={dark}\n {...props}\n ref={ref}\n >\n {children}\n </nav>\n </div>\n );\n};\n"],"mappings":";;;;;;;AAaA,MAAa,aAAa,EAAE,OAAO,OAAO,UAAU,WAAW,IAAK,GAAG,YAA4B;CACjG,MAAM,aAAa,OAAuB,KAAK;CAC/C,MAAM,QAAQ,0BAA0B,WAAW;CACnD,MAAM,kBAAkB,oBAAoB;AAE5C,QACE,qBAAC;EAAI,WAAU;aACb,oBAAC,SAAI,KAAK,aAAc,EACxB,oBAAC;GACC,WAAW,KAAK,iBAAiB,UAAU;GAC3C,cAAY;GACZ,mBAAiB,QAAQ,kBAAkB;GAC3C,aAAW;GACX,GAAI;GACC;GAEJ;IACG;GACF"}
@@ -1,4 +1,4 @@
1
- import { Button } from "./button-BzU7DrNe.js";
1
+ import { t as Button } from "./button-CQH17-73.js";
2
2
  import clsx from "clsx/lite";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { Trigger } from "@radix-ui/react-tabs";
@@ -23,5 +23,5 @@ const Tab = ({ className, value, disabled, children, asChild, dark, ref,...props
23
23
  };
24
24
 
25
25
  //#endregion
26
- export { Tab };
27
- //# sourceMappingURL=tab-B2DlXQYE.js.map
26
+ export { Tab as t };
27
+ //# sourceMappingURL=tab-CnZLTAGU.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tab-B2DlXQYE.js","names":[],"sources":["../src/components/tabs/tab.tsx"],"sourcesContent":["import type { MergeRight } from '../../utilities';\nimport { Trigger } from '@radix-ui/react-tabs';\nimport clsx from 'clsx/lite';\nimport { Button, ButtonProps } from '../button';\n\nexport type TabProps = MergeRight<\n Omit<ButtonProps, 'variant' | 'type'>,\n {\n /** A unique value that associates the trigger with a content. */\n value: string;\n /**\n * When true, prevents the user from interacting with the tab.\n * @default false\n */\n disabled?: boolean;\n }\n>;\n\nexport const Tab = ({ className, value, disabled, children, asChild, dark, ref, ...props }: TabProps) => {\n return (\n <Trigger value={value} disabled={disabled} asChild>\n <Button\n ref={ref}\n variant='text'\n className={clsx('bi-tabs--tab', className)}\n disabled={disabled}\n asChild={asChild}\n dark={dark}\n {...props}\n >\n {children}\n </Button>\n </Trigger>\n );\n};\n"],"mappings":";;;;;;AAkBA,MAAa,OAAO,EAAE,WAAW,OAAO,UAAU,UAAU,SAAS,MAAM,IAAK,GAAG,YAAsB;AACvG,QACE,oBAAC;EAAe;EAAiB;EAAU;YACzC,oBAAC;GACM;GACL,SAAQ;GACR,WAAW,KAAK,gBAAgB,UAAU;GAChC;GACD;GACH;GACN,GAAI;GAEH;IACM;GACD"}
1
+ {"version":3,"file":"tab-CnZLTAGU.js","names":[],"sources":["../src/components/tabs/tab.tsx"],"sourcesContent":["import type { MergeRight } from '../../utilities';\nimport { Trigger } from '@radix-ui/react-tabs';\nimport clsx from 'clsx/lite';\nimport { Button, ButtonProps } from '../button';\n\nexport type TabProps = MergeRight<\n Omit<ButtonProps, 'variant' | 'type'>,\n {\n /** A unique value that associates the trigger with a content. */\n value: string;\n /**\n * When true, prevents the user from interacting with the tab.\n * @default false\n */\n disabled?: boolean;\n }\n>;\n\nexport const Tab = ({ className, value, disabled, children, asChild, dark, ref, ...props }: TabProps) => {\n return (\n <Trigger value={value} disabled={disabled} asChild>\n <Button\n ref={ref}\n variant='text'\n className={clsx('bi-tabs--tab', className)}\n disabled={disabled}\n asChild={asChild}\n dark={dark}\n {...props}\n >\n {children}\n </Button>\n </Trigger>\n );\n};\n"],"mappings":";;;;;;AAkBA,MAAa,OAAO,EAAE,WAAW,OAAO,UAAU,UAAU,SAAS,MAAM,IAAK,GAAG,YAAsB;AACvG,QACE,oBAAC;EAAe;EAAiB;EAAU;YACzC,oBAAC;GACM;GACL,SAAQ;GACR,WAAW,KAAK,gBAAgB,UAAU;GAChC;GACD;GACH;GACN,GAAI;GAEH;IACM;GACD"}
@@ -20,5 +20,5 @@ const Tabs = ({ activationMode = "automatic", orientation = "horizontal", defaul
20
20
  };
21
21
 
22
22
  //#endregion
23
- export { Tabs };
24
- //# sourceMappingURL=tabs-Cet8jr_P.js.map
23
+ export { Tabs as t };
24
+ //# sourceMappingURL=tabs-Bx0mdBSQ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tabs-Cet8jr_P.js","names":[],"sources":["../src/components/tabs/tabs.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { Root } from '@radix-ui/react-tabs';\nimport clsx from 'clsx/lite';\n\nexport type TabsProps = MergeRight<\n DefaultProps & Omit<HTMLAttributes<HTMLDivElement>, 'dir'>,\n {\n /**\n * When `automatic`, tabs are activated when receiving focus. When `manual`, tabs are activated when clicked.\n * @default 'automatic'\n */\n activationMode?: 'manual' | 'automatic';\n /**\n * The orientation of the component.\n * @default 'horizontal'\n */\n orientation?: 'horizontal' | 'vertical';\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 /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n * @default false\n */\n asChild?: boolean;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const Tabs = ({\n activationMode = 'automatic',\n orientation = 'horizontal',\n defaultValue,\n value,\n onChange,\n children,\n className,\n asChild,\n dark,\n ref,\n ...props\n}: TabsProps) => {\n return (\n <Root\n className={clsx('bi-tabs', className)}\n activationMode={activationMode}\n orientation={orientation}\n defaultValue={defaultValue}\n value={value}\n onValueChange={onChange}\n asChild={asChild}\n data-dark={dark}\n ref={ref}\n {...props}\n >\n {children}\n </Root>\n );\n};\n"],"mappings":";;;;;AAkCA,MAAa,QAAQ,EACnB,iBAAiB,aACjB,cAAc,cACd,cACA,OACA,UACA,UACA,WACA,SACA,MACA,IACA,GAAG,YACY;AACf,QACE,oBAAC;EACC,WAAW,KAAK,WAAW,UAAU;EACrB;EACH;EACC;EACP;EACP,eAAe;EACN;EACT,aAAW;EACN;EACL,GAAI;EAEH;GACI"}
1
+ {"version":3,"file":"tabs-Bx0mdBSQ.js","names":[],"sources":["../src/components/tabs/tabs.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { Root } from '@radix-ui/react-tabs';\nimport clsx from 'clsx/lite';\n\nexport type TabsProps = MergeRight<\n DefaultProps & Omit<HTMLAttributes<HTMLDivElement>, 'dir'>,\n {\n /**\n * When `automatic`, tabs are activated when receiving focus. When `manual`, tabs are activated when clicked.\n * @default 'automatic'\n */\n activationMode?: 'manual' | 'automatic';\n /**\n * The orientation of the component.\n * @default 'horizontal'\n */\n orientation?: 'horizontal' | 'vertical';\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 /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n * @default false\n */\n asChild?: boolean;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const Tabs = ({\n activationMode = 'automatic',\n orientation = 'horizontal',\n defaultValue,\n value,\n onChange,\n children,\n className,\n asChild,\n dark,\n ref,\n ...props\n}: TabsProps) => {\n return (\n <Root\n className={clsx('bi-tabs', className)}\n activationMode={activationMode}\n orientation={orientation}\n defaultValue={defaultValue}\n value={value}\n onValueChange={onChange}\n asChild={asChild}\n data-dark={dark}\n ref={ref}\n {...props}\n >\n {children}\n </Root>\n );\n};\n"],"mappings":";;;;;AAkCA,MAAa,QAAQ,EACnB,iBAAiB,aACjB,cAAc,cACd,cACA,OACA,UACA,UACA,WACA,SACA,MACA,IACA,GAAG,YACY;AACf,QACE,oBAAC;EACC,WAAW,KAAK,WAAW,UAAU;EACrB;EACH;EACC;EACP;EACP,eAAe;EACN;EACT,aAAW;EACN;EACL,GAAI;EAEH;GACI"}
@@ -16,5 +16,5 @@ const TabsList = ({ className, loop = true, children, asChild, dark, ref,...prop
16
16
  };
17
17
 
18
18
  //#endregion
19
- export { TabsList };
20
- //# sourceMappingURL=tabs-list-BdcW4pqj.js.map
19
+ export { TabsList as t };
20
+ //# sourceMappingURL=tabs-list-CH1-bFE-.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tabs-list-BdcW4pqj.js","names":[],"sources":["../src/components/tabs/tabs-list.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { List } from '@radix-ui/react-tabs';\nimport clsx from 'clsx/lite';\n\nexport type TabsListProps = MergeRight<\n DefaultProps & Omit<HTMLAttributes<HTMLDivElement>, 'dir'>,\n {\n /**\n * When `true`, keyboard navigation will loop from last tab to first, and vice versa.\n * @default true\n */\n loop?: boolean;\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n * @default false\n */\n asChild?: boolean;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const TabsList = ({ className, loop = true, children, asChild, dark, ref, ...props }: TabsListProps) => {\n return (\n <List\n className={clsx('bi-tabs--list', className)}\n loop={loop}\n asChild={asChild}\n data-dark={dark}\n ref={ref}\n {...props}\n >\n {children}\n </List>\n );\n};\n"],"mappings":";;;;;AAuBA,MAAa,YAAY,EAAE,WAAW,OAAO,MAAM,UAAU,SAAS,MAAM,IAAK,GAAG,YAA2B;AAC7G,QACE,oBAAC;EACC,WAAW,KAAK,iBAAiB,UAAU;EACrC;EACG;EACT,aAAW;EACN;EACL,GAAI;EAEH;GACI"}
1
+ {"version":3,"file":"tabs-list-CH1-bFE-.js","names":[],"sources":["../src/components/tabs/tabs-list.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { List } from '@radix-ui/react-tabs';\nimport clsx from 'clsx/lite';\n\nexport type TabsListProps = MergeRight<\n DefaultProps & Omit<HTMLAttributes<HTMLDivElement>, 'dir'>,\n {\n /**\n * When `true`, keyboard navigation will loop from last tab to first, and vice versa.\n * @default true\n */\n loop?: boolean;\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n * @default false\n */\n asChild?: boolean;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const TabsList = ({ className, loop = true, children, asChild, dark, ref, ...props }: TabsListProps) => {\n return (\n <List\n className={clsx('bi-tabs--list', className)}\n loop={loop}\n asChild={asChild}\n data-dark={dark}\n ref={ref}\n {...props}\n >\n {children}\n </List>\n );\n};\n"],"mappings":";;;;;AAuBA,MAAa,YAAY,EAAE,WAAW,OAAO,MAAM,UAAU,SAAS,MAAM,IAAK,GAAG,YAA2B;AAC7G,QACE,oBAAC;EACC,WAAW,KAAK,iBAAiB,UAAU;EACrC;EACG;EACT,aAAW;EACN;EACL,GAAI;EAEH;GACI"}
@@ -17,5 +17,5 @@ const TabsPanel = ({ className, value, forceMount, children, asChild, dark, ref,
17
17
  };
18
18
 
19
19
  //#endregion
20
- export { TabsPanel };
21
- //# sourceMappingURL=tabs-panel-DLVzDmVt.js.map
20
+ export { TabsPanel as t };
21
+ //# sourceMappingURL=tabs-panel-otK5exaT.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tabs-panel-DLVzDmVt.js","names":[],"sources":["../src/components/tabs/tabs-panel.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { Content } from '@radix-ui/react-tabs';\nimport clsx from 'clsx/lite';\n\nexport type TabsPanelProps = MergeRight<\n DefaultProps & Omit<HTMLAttributes<HTMLDivElement>, 'dir'>,\n {\n /** A unique value that associates the content with a trigger. */\n value: string;\n /** Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries. */\n forceMount?: boolean;\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n * @default false\n */\n asChild?: boolean;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const TabsPanel = ({ className, value, forceMount, children, asChild, dark, ref, ...props }: TabsPanelProps) => {\n return (\n <Content\n className={clsx('bi-tabs--panel', className)}\n value={value}\n forceMount={forceMount || undefined}\n asChild={asChild}\n data-dark={dark}\n ref={ref}\n {...props}\n >\n {children}\n </Content>\n );\n};\n"],"mappings":";;;;;AAsBA,MAAa,aAAa,EAAE,WAAW,OAAO,YAAY,UAAU,SAAS,MAAM,IAAK,GAAG,YAA4B;AACrH,QACE,oBAAC;EACC,WAAW,KAAK,kBAAkB,UAAU;EACrC;EACP,YAAY,cAAc;EACjB;EACT,aAAW;EACN;EACL,GAAI;EAEH;GACO"}
1
+ {"version":3,"file":"tabs-panel-otK5exaT.js","names":[],"sources":["../src/components/tabs/tabs-panel.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { Content } from '@radix-ui/react-tabs';\nimport clsx from 'clsx/lite';\n\nexport type TabsPanelProps = MergeRight<\n DefaultProps & Omit<HTMLAttributes<HTMLDivElement>, 'dir'>,\n {\n /** A unique value that associates the content with a trigger. */\n value: string;\n /** Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries. */\n forceMount?: boolean;\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n * @default false\n */\n asChild?: boolean;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const TabsPanel = ({ className, value, forceMount, children, asChild, dark, ref, ...props }: TabsPanelProps) => {\n return (\n <Content\n className={clsx('bi-tabs--panel', className)}\n value={value}\n forceMount={forceMount || undefined}\n asChild={asChild}\n data-dark={dark}\n ref={ref}\n {...props}\n >\n {children}\n </Content>\n );\n};\n"],"mappings":";;;;;AAsBA,MAAa,aAAa,EAAE,WAAW,OAAO,YAAY,UAAU,SAAS,MAAM,IAAK,GAAG,YAA4B;AACrH,QACE,oBAAC;EACC,WAAW,KAAK,kBAAkB,UAAU;EACrC;EACP,YAAY,cAAc;EACjB;EACT,aAAW;EACN;EACL,GAAI;EAEH;GACO"}
@@ -13,5 +13,5 @@ const Textarea = ({ className, dark, size, ref,...props }) => {
13
13
  };
14
14
 
15
15
  //#endregion
16
- export { Textarea };
17
- //# sourceMappingURL=textarea-B-aCRt3J.js.map
16
+ export { Textarea as t };
17
+ //# sourceMappingURL=textarea-vPcZF4zT.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textarea-B-aCRt3J.js","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,IAAK,GAAG,YAA2B;AACnF,QAAO,oBAAC;EAAS,WAAW,KAAK,YAAY,UAAU;EAAE,aAAW;EAAM,aAAW;EAAW;EAAK,GAAI;GAAS"}
1
+ {"version":3,"file":"textarea-vPcZF4zT.js","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,IAAK,GAAG,YAA2B;AACnF,QAAO,oBAAC;EAAS,WAAW,KAAK,YAAY,UAAU;EAAE,aAAW;EAAM,aAAW;EAAW;EAAK,GAAI;GAAS"}
@@ -1,10 +1,10 @@
1
- import { Field } from "./field-Dul9LBgF.js";
2
- import { FieldDescription } from "./field-description-Yya33j8H.js";
3
- import { FieldAffix, FieldAffixes } from "./field-affix-C5w3NK4H.js";
4
- import { Input } from "./input-Dr7BnTyd.js";
5
- import { Label } from "./label-DG_ojO9g.js";
6
- import { ValidationMessage } from "./validation-message-pl1_2HbT.js";
7
- import { Textarea } from "./textarea-B-aCRt3J.js";
1
+ import { t as Field } from "./field-D1Jkd3WD.js";
2
+ import { t as FieldDescription } from "./field-description-BRSERQAP.js";
3
+ import { n as FieldAffixes, t as FieldAffix } from "./field-affix-BXjFnItQ.js";
4
+ import { t as Input } from "./input-CgF0i1u8.js";
5
+ import { t as Label } from "./label-BaMh8Ijy.js";
6
+ import { t as ValidationMessage } from "./validation-message-B9BkpQYe.js";
7
+ import { t as Textarea } from "./textarea-vPcZF4zT.js";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
  import { useId } from "react";
10
10
 
@@ -61,5 +61,5 @@ const Textfield = ({ dark, label, description, error, multiline, prefix, suffix,
61
61
  };
62
62
 
63
63
  //#endregion
64
- export { Textfield };
65
- //# sourceMappingURL=textfield-D4YyrSZI.js.map
64
+ export { Textfield as t };
65
+ //# sourceMappingURL=textfield-B5A1V9cg.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textfield-D4YyrSZI.js","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 &\n // 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":";;;;;;;;;;;AAgDA,MAAa,aAAa,EACxB,MACA,OACA,aACA,OACA,WACA,QACA,QACA,OACA,WACA,WACA,KACA,IAAI,QACJ,oBAAoB,oBACpB,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;AACzG,QACE,qBAAC;EAAiB;EAAW,aAAW;EAAa;EAAkB;;GACpE,SAAS,oBAAC;IAAM,SAAS;cAAK;KAAc;GAC5C,eAAe,oBAAC;IAAiB,IAAI;cAAgB;KAA+B;GACrF,qBAAC;IACE,UAAU,oBAAC,wBAAY,SAAoB;IAC3C,YACC,oBAAC;KACK;KACC;KACL,gBAAc,QAAQ,MAAM,IAAI;KAChC,oBAAkB;KACZ;KACN,GAAK;MACL,GAEF,oBAAC;KACK;KACC;KACL,gBAAc,QAAQ,MAAM,IAAI;KAChC,oBAAkB;KACZ;KACN,GAAK;MACL;IAEH,UAAU,oBAAC,wBAAY,SAAoB;OAC/B;GACd,CAAC,CAAC,SAAS,oBAAC;IAAkB,IAAI;cAAe;KAA0B;;GACtE"}
1
+ {"version":3,"file":"textfield-B5A1V9cg.js","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 &\n // 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":";;;;;;;;;;;AAgDA,MAAa,aAAa,EACxB,MACA,OACA,aACA,OACA,WACA,QACA,QACA,OACA,WACA,WACA,KACA,IAAI,QACJ,oBAAoB,oBACpB,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;AACzG,QACE,qBAAC;EAAiB;EAAW,aAAW;EAAa;EAAkB;;GACpE,SAAS,oBAAC;IAAM,SAAS;cAAK;KAAc;GAC5C,eAAe,oBAAC;IAAiB,IAAI;cAAgB;KAA+B;GACrF,qBAAC;IACE,UAAU,oBAAC,wBAAY,SAAoB;IAC3C,YACC,oBAAC;KACK;KACC;KACL,gBAAc,QAAQ,MAAM,IAAI;KAChC,oBAAkB;KACZ;KACN,GAAK;MACL,GAEF,oBAAC;KACK;KACC;KACL,gBAAc,QAAQ,MAAM,IAAI;KAChC,oBAAkB;KACZ;KACN,GAAK;MACL;IAEH,UAAU,oBAAC,wBAAY,SAAoB;OAC/B;GACd,CAAC,CAAC,SAAS,oBAAC;IAAkB,IAAI;cAAe;KAA0B;;GACtE"}
@@ -5,5 +5,5 @@
5
5
  */
6
6
  type MergeRight<T1, T2> = Omit<T1, keyof T2> & T2;
7
7
  //#endregion
8
- export { MergeRight };
9
- //# sourceMappingURL=types-DC_g3L-J.d.ts.map
8
+ export { MergeRight as t };
9
+ //# sourceMappingURL=types-BRcQPIRw.d.ts.map
@@ -30,5 +30,5 @@ type LabelRequiredProps = {
30
30
  label?: never;
31
31
  };
32
32
  //#endregion
33
- export { AsChildProps, DefaultProps, LabelRequiredProps };
34
- //# sourceMappingURL=types-LBHl14PF.d.ts.map
33
+ export { DefaultProps as n, LabelRequiredProps as r, AsChildProps as t };
34
+ //# sourceMappingURL=types-yUMPmMvf.d.ts.map
package/dist/types.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { AsChildProps, DefaultProps, LabelRequiredProps } from "./types-LBHl14PF.js";
1
+ import { n as DefaultProps, r as LabelRequiredProps, t as AsChildProps } from "./types-yUMPmMvf.js";
2
2
  export { AsChildProps, DefaultProps, LabelRequiredProps };
@@ -18,5 +18,5 @@ declare const useCheckboxGroup: ({
18
18
  updateOptions
19
19
  }: UseCheckboxGroupOptions) => UseCheckboxGroupReturn;
20
20
  //#endregion
21
- export { UseCheckboxGroupOptions, UseCheckboxGroupReturn, useCheckboxGroup };
22
- //# sourceMappingURL=useCheckboxGroup-nxlcj9XV.d.ts.map
21
+ export { UseCheckboxGroupReturn as n, useCheckboxGroup as r, UseCheckboxGroupOptions as t };
22
+ //# sourceMappingURL=useCheckboxGroup-BrrIH1cE.d.ts.map
@@ -3,8 +3,7 @@ const useCheckboxGroup = ({ options, updateOptions }) => {
3
3
  const checked = options.every((option) => option);
4
4
  const indeterminate = options.some((option) => option) && !checked;
5
5
  const onChange = (e) => {
6
- const newChecked = e.target.indeterminate ? true : e.target.checked;
7
- updateOptions(newChecked);
6
+ updateOptions(e.target.indeterminate ? true : e.target.checked);
8
7
  };
9
8
  return { checkboxGroupProps: {
10
9
  checked,
@@ -14,5 +13,5 @@ const useCheckboxGroup = ({ options, updateOptions }) => {
14
13
  };
15
14
 
16
15
  //#endregion
17
- export { useCheckboxGroup };
18
- //# sourceMappingURL=useCheckboxGroup-CZ7NF3kT.js.map
16
+ export { useCheckboxGroup as t };
17
+ //# sourceMappingURL=useCheckboxGroup-o3qjoN6C.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCheckboxGroup-CZ7NF3kT.js","names":[],"sources":["../src/utilities/hooks/useCheckboxGroup/useCheckboxGroup.tsx"],"sourcesContent":["import type { ChangeEvent } from 'react';\n\nexport type UseCheckboxGroupOptions = {\n options: boolean[];\n updateOptions: (checked: boolean) => void;\n};\n\nexport type UseCheckboxGroupReturn = {\n /** Spread this on the \"parent\" checkbox */\n checkboxGroupProps: {\n checked: boolean;\n indeterminate: boolean;\n onChange: (e: ChangeEvent<HTMLInputElement>) => void;\n };\n};\n\nexport const useCheckboxGroup = ({ options, updateOptions }: UseCheckboxGroupOptions): UseCheckboxGroupReturn => {\n const checked = options.every((option) => option);\n const indeterminate = options.some((option) => option) && !checked;\n\n const onChange = (e: ChangeEvent<HTMLInputElement>) => {\n const newChecked = e.target.indeterminate ? true : e.target.checked;\n updateOptions(newChecked);\n };\n\n return {\n checkboxGroupProps: {\n checked,\n indeterminate,\n onChange,\n },\n };\n};\n"],"mappings":";AAgBA,MAAa,oBAAoB,EAAE,SAAS,oBAAqE;CAC/G,MAAM,UAAU,QAAQ,OAAO,WAAW,OAAO;CACjD,MAAM,gBAAgB,QAAQ,MAAM,WAAW,OAAO,IAAI,CAAC;CAE3D,MAAM,YAAY,MAAqC;EACrD,MAAM,aAAa,EAAE,OAAO,gBAAgB,OAAO,EAAE,OAAO;AAC5D,gBAAc,WAAW;;AAG3B,QAAO,EACL,oBAAoB;EAClB;EACA;EACA;EACD,EACF"}
1
+ {"version":3,"file":"useCheckboxGroup-o3qjoN6C.js","names":[],"sources":["../src/utilities/hooks/useCheckboxGroup/useCheckboxGroup.tsx"],"sourcesContent":["import type { ChangeEvent } from 'react';\n\nexport type UseCheckboxGroupOptions = {\n options: boolean[];\n updateOptions: (checked: boolean) => void;\n};\n\nexport type UseCheckboxGroupReturn = {\n /** Spread this on the \"parent\" checkbox */\n checkboxGroupProps: {\n checked: boolean;\n indeterminate: boolean;\n onChange: (e: ChangeEvent<HTMLInputElement>) => void;\n };\n};\n\nexport const useCheckboxGroup = ({ options, updateOptions }: UseCheckboxGroupOptions): UseCheckboxGroupReturn => {\n const checked = options.every((option) => option);\n const indeterminate = options.some((option) => option) && !checked;\n\n const onChange = (e: ChangeEvent<HTMLInputElement>) => {\n const newChecked = e.target.indeterminate ? true : e.target.checked;\n updateOptions(newChecked);\n };\n\n return {\n checkboxGroupProps: {\n checked,\n indeterminate,\n onChange,\n },\n };\n};\n"],"mappings":";AAgBA,MAAa,oBAAoB,EAAE,SAAS,oBAAqE;CAC/G,MAAM,UAAU,QAAQ,OAAO,WAAW,OAAO;CACjD,MAAM,gBAAgB,QAAQ,MAAM,WAAW,OAAO,IAAI,CAAC;CAE3D,MAAM,YAAY,MAAqC;AAErD,gBADmB,EAAE,OAAO,gBAAgB,OAAO,EAAE,OAAO,QACnC;;AAG3B,QAAO,EACL,oBAAoB;EAClB;EACA;EACA;EACD,EACF"}
@@ -16,5 +16,5 @@ const useIsElementAboveViewport = (elementRef) => {
16
16
  };
17
17
 
18
18
  //#endregion
19
- export { useIsElementAboveViewport };
20
- //# sourceMappingURL=useIsElementAboveViewport-DESvUblG.js.map
19
+ export { useIsElementAboveViewport as t };
20
+ //# sourceMappingURL=useIsElementAboveViewport-DADUKz5a.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIsElementAboveViewport-DESvUblG.js","names":[],"sources":["../src/utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.tsx"],"sourcesContent":["import { useEffect, useState, type RefObject } from 'react';\n\n/** Detects when an element's is scrolled past and is no longer in the viewport. */\nexport const useIsElementAboveViewport = (elementRef: RefObject<HTMLElement | null>): boolean => {\n const [isAboveViewport, setIsPast] = useState(false);\n\n useEffect(() => {\n const observer = new IntersectionObserver(([entry]) => setIsPast(entry.boundingClientRect.y < 0), {\n threshold: [0],\n });\n const currentRef = elementRef.current;\n if (currentRef) observer.observe(currentRef);\n return () => {\n if (currentRef) observer.unobserve(currentRef);\n };\n }, [elementRef]);\n return isAboveViewport;\n};\n"],"mappings":";;;;AAGA,MAAa,6BAA6B,eAAuD;CAC/F,MAAM,CAAC,iBAAiB,aAAa,SAAS,MAAM;AAEpD,iBAAgB;EACd,MAAM,WAAW,IAAI,sBAAsB,CAAC,WAAW,UAAU,MAAM,mBAAmB,IAAI,EAAE,EAAE,EAChG,WAAW,CAAC,EAAE,EACf,CAAC;EACF,MAAM,aAAa,WAAW;AAC9B,MAAI,WAAY,UAAS,QAAQ,WAAW;AAC5C,eAAa;AACX,OAAI,WAAY,UAAS,UAAU,WAAW;;IAE/C,CAAC,WAAW,CAAC;AAChB,QAAO"}
1
+ {"version":3,"file":"useIsElementAboveViewport-DADUKz5a.js","names":[],"sources":["../src/utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.tsx"],"sourcesContent":["import { useEffect, useState, type RefObject } from 'react';\n\n/** Detects when an element's is scrolled past and is no longer in the viewport. */\nexport const useIsElementAboveViewport = (elementRef: RefObject<HTMLElement | null>): boolean => {\n const [isAboveViewport, setIsPast] = useState(false);\n\n useEffect(() => {\n const observer = new IntersectionObserver(([entry]) => setIsPast(entry.boundingClientRect.y < 0), {\n threshold: [0],\n });\n const currentRef = elementRef.current;\n if (currentRef) observer.observe(currentRef);\n return () => {\n if (currentRef) observer.unobserve(currentRef);\n };\n }, [elementRef]);\n return isAboveViewport;\n};\n"],"mappings":";;;;AAGA,MAAa,6BAA6B,eAAuD;CAC/F,MAAM,CAAC,iBAAiB,aAAa,SAAS,MAAM;AAEpD,iBAAgB;EACd,MAAM,WAAW,IAAI,sBAAsB,CAAC,WAAW,UAAU,MAAM,mBAAmB,IAAI,EAAE,EAAE,EAChG,WAAW,CAAC,EAAE,EACf,CAAC;EACF,MAAM,aAAa,WAAW;AAC9B,MAAI,WAAY,UAAS,QAAQ,WAAW;AAC5C,eAAa;AACX,OAAI,WAAY,UAAS,UAAU,WAAW;;IAE/C,CAAC,WAAW,CAAC;AAChB,QAAO"}
@@ -4,5 +4,5 @@ import { RefObject } from "react";
4
4
  /** Detects when an element's is scrolled past and is no longer in the viewport. */
5
5
  declare const useIsElementAboveViewport: (elementRef: RefObject<HTMLElement | null>) => boolean;
6
6
  //#endregion
7
- export { useIsElementAboveViewport };
8
- //# sourceMappingURL=useIsElementAboveViewport-DHjLWtIr.d.ts.map
7
+ export { useIsElementAboveViewport as t };
8
+ //# sourceMappingURL=useIsElementAboveViewport-Dicc167e.d.ts.map