@bi-digital/react 0.0.0-experimental-b8ff5ba → 0.0.0-experimental-37bf70d

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 (458) hide show
  1. package/dist/{alert-Cwq1S4RD.js → alert-C6PxDwHt.js} +6 -6
  2. package/dist/alert-C6PxDwHt.js.map +1 -0
  3. package/dist/{alert-footer-DL4rCThp.js → alert-footer-DfjvFlBv.js} +2 -3
  4. package/dist/{alert-footer-DL4rCThp.js.map → alert-footer-DfjvFlBv.js.map} +1 -1
  5. package/dist/{alert-footer-CCkV8PI1.d.ts → alert-footer-Dwltql72.d.ts} +168 -71
  6. package/dist/avatar-6Q2xwviO.js.map +1 -1
  7. package/dist/{badge-D9OVAKG8.js → badge-tKh0f84O.js} +2 -3
  8. package/dist/{badge-D9OVAKG8.js.map → badge-tKh0f84O.js.map} +1 -1
  9. package/dist/{button-fhd-JARc.js → button-BzU7DrNe.js} +2 -3
  10. package/dist/{button-fhd-JARc.js.map → button-BzU7DrNe.js.map} +1 -1
  11. package/dist/{card-action-D8M3_IVq.js → card-action-DiyQo6bH.js} +3 -4
  12. package/dist/{card-action-D8M3_IVq.js.map → card-action-DiyQo6bH.js.map} +1 -1
  13. package/dist/card-actions-CIsnmxsm.js.map +1 -1
  14. package/dist/{card-content-DkEHp8mv.js → card-content-BUc3uxiV.js} +2 -3
  15. package/dist/{card-content-DkEHp8mv.js.map → card-content-BUc3uxiV.js.map} +1 -1
  16. package/dist/card-date-Bd87BGDE.js.map +1 -1
  17. package/dist/card-header-D-RMd4xS.js.map +1 -1
  18. package/dist/card-media-DhU2_Ueq.js.map +1 -1
  19. package/dist/{card-QAnFhTk6.js → card-xvRovR7u.js} +2 -3
  20. package/dist/{card-QAnFhTk6.js.map → card-xvRovR7u.js.map} +1 -1
  21. package/dist/{checkbox-ZR1Z2PCF.js → checkbox-D04YsX0C.js} +4 -4
  22. package/dist/{checkbox-ZR1Z2PCF.js.map → checkbox-D04YsX0C.js.map} +1 -1
  23. package/dist/checkbox-subsection-BPe5aj-W.js.map +1 -1
  24. package/dist/{chip-b9xUiF7_.js → chip-BXBQ6E1H.js} +2 -3
  25. package/dist/{chip-b9xUiF7_.js.map → chip-BXBQ6E1H.js.map} +1 -1
  26. package/dist/components/alert/alert-footer.d.ts +17 -17
  27. package/dist/components/alert/alert-footer.js +1 -1
  28. package/dist/components/alert/alert.d.ts +17 -17
  29. package/dist/components/alert/alert.js +1 -1
  30. package/dist/components/alert/index.d.ts +17 -17
  31. package/dist/components/alert/index.js +2 -2
  32. package/dist/components/avatar/avatar.d.ts +17 -17
  33. package/dist/components/avatar/index.d.ts +17 -17
  34. package/dist/components/badge/badge.d.ts +17 -17
  35. package/dist/components/badge/badge.js +1 -1
  36. package/dist/components/badge/index.d.ts +17 -17
  37. package/dist/components/badge/index.js +1 -1
  38. package/dist/components/button/button.d.ts +17 -17
  39. package/dist/components/button/button.js +1 -1
  40. package/dist/components/button/index.d.ts +17 -17
  41. package/dist/components/button/index.js +1 -1
  42. package/dist/components/card/card-action.d.ts +17 -17
  43. package/dist/components/card/card-action.js +2 -2
  44. package/dist/components/card/card-actions.d.ts +17 -17
  45. package/dist/components/card/card-content.d.ts +17 -17
  46. package/dist/components/card/card-content.js +1 -1
  47. package/dist/components/card/card-date.d.ts +17 -17
  48. package/dist/components/card/card-header.d.ts +17 -17
  49. package/dist/components/card/card-media.d.ts +17 -17
  50. package/dist/components/card/card.d.ts +17 -17
  51. package/dist/components/card/card.js +1 -1
  52. package/dist/components/card/index.d.ts +17 -17
  53. package/dist/components/card/index.js +4 -4
  54. package/dist/components/checkbox/checkbox-subsection.d.ts +17 -17
  55. package/dist/components/checkbox/checkbox.d.ts +17 -17
  56. package/dist/components/checkbox/checkbox.js +5 -5
  57. package/dist/components/checkbox/index.d.ts +17 -17
  58. package/dist/components/checkbox/index.js +5 -5
  59. package/dist/components/chip/chip.d.ts +17 -17
  60. package/dist/components/chip/chip.js +1 -1
  61. package/dist/components/chip/index.d.ts +17 -17
  62. package/dist/components/chip/index.js +1 -1
  63. package/dist/components/details/details-content.d.ts +18 -0
  64. package/dist/components/details/details-content.js +3 -0
  65. package/dist/components/details/details-summary.d.ts +18 -0
  66. package/dist/components/details/details-summary.js +3 -0
  67. package/dist/components/details/details.d.ts +18 -0
  68. package/dist/components/details/details.js +3 -0
  69. package/dist/components/details/index.d.ts +18 -0
  70. package/dist/components/details/index.js +6 -0
  71. package/dist/components/dialog/dialog-close-button.d.ts +17 -17
  72. package/dist/components/dialog/dialog-close-button.js +2 -2
  73. package/dist/components/dialog/dialog-content.d.ts +17 -17
  74. package/dist/components/dialog/dialog-content.js +1 -1
  75. package/dist/components/dialog/dialog-footer.d.ts +17 -17
  76. package/dist/components/dialog/dialog-footer.js +1 -1
  77. package/dist/components/dialog/dialog-header.d.ts +17 -17
  78. package/dist/components/dialog/dialog-header.js +1 -1
  79. package/dist/components/dialog/dialog-trigger-context.d.ts +1 -1
  80. package/dist/components/dialog/dialog-trigger-context.js +1 -1
  81. package/dist/components/dialog/dialog-trigger.d.ts +17 -17
  82. package/dist/components/dialog/dialog-trigger.js +3 -3
  83. package/dist/components/dialog/dialog.d.ts +17 -17
  84. package/dist/components/dialog/dialog.js +2 -2
  85. package/dist/components/dialog/index.d.ts +17 -17
  86. package/dist/components/dialog/index.js +9 -9
  87. package/dist/components/drawer/drawer-close-button.d.ts +17 -17
  88. package/dist/components/drawer/drawer-close-button.js +10 -10
  89. package/dist/components/drawer/drawer-content.d.ts +17 -17
  90. package/dist/components/drawer/drawer-content.js +10 -10
  91. package/dist/components/drawer/drawer-footer.d.ts +17 -17
  92. package/dist/components/drawer/drawer-footer.js +10 -10
  93. package/dist/components/drawer/drawer-header.d.ts +17 -17
  94. package/dist/components/drawer/drawer-header.js +10 -10
  95. package/dist/components/drawer/drawer-trigger-context.d.ts +1 -1
  96. package/dist/components/drawer/drawer-trigger-context.js +10 -10
  97. package/dist/components/drawer/drawer-trigger.d.ts +17 -17
  98. package/dist/components/drawer/drawer-trigger.js +10 -10
  99. package/dist/components/drawer/drawer.d.ts +17 -17
  100. package/dist/components/drawer/drawer.js +10 -10
  101. package/dist/components/drawer/index.d.ts +17 -17
  102. package/dist/components/drawer/index.js +17 -17
  103. package/dist/components/dropdown/dropdown-button.d.ts +17 -17
  104. package/dist/components/dropdown/dropdown-button.js +2 -2
  105. package/dist/components/dropdown/dropdown-item.d.ts +1 -1
  106. package/dist/components/dropdown/dropdown-item.js +1 -1
  107. package/dist/components/dropdown/dropdown-list.d.ts +1 -1
  108. package/dist/components/dropdown/dropdown-list.js +1 -1
  109. package/dist/components/dropdown/dropdown-trigger-context.d.ts +17 -17
  110. package/dist/components/dropdown/dropdown-trigger-context.js +6 -6
  111. package/dist/components/dropdown/dropdown-trigger.d.ts +17 -17
  112. package/dist/components/dropdown/dropdown-trigger.js +6 -6
  113. package/dist/components/dropdown/dropdown.d.ts +17 -17
  114. package/dist/components/dropdown/dropdown.js +6 -6
  115. package/dist/components/dropdown/index.d.ts +17 -17
  116. package/dist/components/dropdown/index.js +12 -12
  117. package/dist/components/field/field-affix.d.ts +17 -17
  118. package/dist/components/field/field-affix.js +1 -1
  119. package/dist/components/field/field-description.d.ts +17 -17
  120. package/dist/components/field/field-description.js +1 -1
  121. package/dist/components/field/field.d.ts +17 -17
  122. package/dist/components/field/field.js +1 -1
  123. package/dist/components/field/index.d.ts +17 -17
  124. package/dist/components/field/index.js +3 -3
  125. package/dist/components/fieldset/fieldset-description.d.ts +17 -17
  126. package/dist/components/fieldset/fieldset-description.js +1 -1
  127. package/dist/components/fieldset/fieldset-legend.d.ts +17 -17
  128. package/dist/components/fieldset/fieldset-legend.js +2 -2
  129. package/dist/components/fieldset/fieldset.d.ts +17 -17
  130. package/dist/components/fieldset/fieldset.js +1 -1
  131. package/dist/components/fieldset/index.d.ts +17 -17
  132. package/dist/components/fieldset/index.js +5 -5
  133. package/dist/components/filter-group/filter-group.d.ts +17 -17
  134. package/dist/components/filter-group/filter-group.js +1 -1
  135. package/dist/components/filter-group/index.d.ts +17 -17
  136. package/dist/components/filter-group/index.js +2 -2
  137. package/dist/components/footer/footer-links.d.ts +1 -1
  138. package/dist/components/footer/footer-links.js +1 -1
  139. package/dist/components/footer/footer.d.ts +17 -17
  140. package/dist/components/footer/footer.js +2 -2
  141. package/dist/components/footer/index.d.ts +17 -17
  142. package/dist/components/footer/index.js +4 -4
  143. package/dist/components/index.d.ts +18 -18
  144. package/dist/components/index.js +98 -94
  145. package/dist/components/input/index.d.ts +17 -17
  146. package/dist/components/input/input.d.ts +17 -17
  147. package/dist/components/label/index.d.ts +17 -17
  148. package/dist/components/label/index.js +1 -1
  149. package/dist/components/label/label.d.ts +17 -17
  150. package/dist/components/label/label.js +1 -1
  151. package/dist/components/link/index.d.ts +17 -17
  152. package/dist/components/link/index.js +2 -2
  153. package/dist/components/link/link.d.ts +17 -17
  154. package/dist/components/link/link.js +1 -1
  155. package/dist/components/logo/index.d.ts +17 -17
  156. package/dist/components/logo/index.js +2 -2
  157. package/dist/components/logo/logo.d.ts +17 -17
  158. package/dist/components/logo/logo.js +1 -1
  159. package/dist/components/navbar/index.d.ts +17 -17
  160. package/dist/components/navbar/index.js +12 -12
  161. package/dist/components/navbar/navbar.d.ts +17 -17
  162. package/dist/components/navbar/navbar.js +3 -3
  163. package/dist/components/navbar/sub-navbar.d.ts +17 -17
  164. package/dist/components/navbar/sub-navbar.js +8 -8
  165. package/dist/components/pagination/index.d.ts +17 -17
  166. package/dist/components/pagination/index.js +5 -5
  167. package/dist/components/pagination/pagination-button.d.ts +17 -17
  168. package/dist/components/pagination/pagination-button.js +2 -2
  169. package/dist/components/pagination/pagination-item.d.ts +1 -1
  170. package/dist/components/pagination/pagination-item.js +1 -1
  171. package/dist/components/pagination/pagination.d.ts +17 -17
  172. package/dist/components/pagination/pagination.js +1 -1
  173. package/dist/components/popover/index.d.ts +17 -17
  174. package/dist/components/popover/index.js +5 -5
  175. package/dist/components/popover/popover-trigger-context.d.ts +1 -1
  176. package/dist/components/popover/popover-trigger-context.js +1 -1
  177. package/dist/components/popover/popover-trigger.d.ts +17 -17
  178. package/dist/components/popover/popover-trigger.js +3 -3
  179. package/dist/components/popover/popover.d.ts +17 -17
  180. package/dist/components/popover/popover.js +2 -2
  181. package/dist/components/radio/index.d.ts +17 -17
  182. package/dist/components/radio/index.js +6 -6
  183. package/dist/components/radio/radio.d.ts +17 -17
  184. package/dist/components/radio/radio.js +5 -5
  185. package/dist/components/search/index.d.ts +17 -17
  186. package/dist/components/search/index.js +6 -6
  187. package/dist/components/search/search.d.ts +17 -17
  188. package/dist/components/search/search.js +5 -5
  189. package/dist/components/select/index.d.ts +17 -17
  190. package/dist/components/select/index.js +4 -4
  191. package/dist/components/select/select-optgroup.d.ts +17 -17
  192. package/dist/components/select/select-optgroup.js +1 -1
  193. package/dist/components/select/select-option.d.ts +17 -17
  194. package/dist/components/select/select-option.js +1 -1
  195. package/dist/components/select/select.d.ts +17 -17
  196. package/dist/components/select/select.js +1 -1
  197. package/dist/components/selectfield/index.d.ts +17 -17
  198. package/dist/components/selectfield/index.js +12 -12
  199. package/dist/components/selectfield/selectfield.d.ts +17 -17
  200. package/dist/components/selectfield/selectfield.js +11 -11
  201. package/dist/components/skip-link/index.d.ts +17 -17
  202. package/dist/components/skip-link/index.js +2 -2
  203. package/dist/components/skip-link/skip-link.d.ts +17 -17
  204. package/dist/components/skip-link/skip-link.js +1 -1
  205. package/dist/components/spinner/index.d.ts +17 -17
  206. package/dist/components/spinner/spinner.d.ts +17 -17
  207. package/dist/components/sticky-header/index.d.ts +2 -2
  208. package/dist/components/sticky-header/index.js +2 -2
  209. package/dist/components/sticky-header/sticky-header.d.ts +1 -1
  210. package/dist/components/sticky-header/sticky-header.js +1 -1
  211. package/dist/components/tabs/index.d.ts +17 -17
  212. package/dist/components/tabs/index.js +6 -6
  213. package/dist/components/tabs/tab.d.ts +17 -17
  214. package/dist/components/tabs/tab.js +2 -2
  215. package/dist/components/tabs/tabs-list.d.ts +17 -17
  216. package/dist/components/tabs/tabs-list.js +1 -1
  217. package/dist/components/tabs/tabs-panel.d.ts +17 -17
  218. package/dist/components/tabs/tabs-panel.js +1 -1
  219. package/dist/components/tabs/tabs.d.ts +17 -17
  220. package/dist/components/tabs/tabs.js +1 -1
  221. package/dist/components/textarea/index.d.ts +17 -17
  222. package/dist/components/textarea/index.js +2 -2
  223. package/dist/components/textarea/textarea.d.ts +17 -17
  224. package/dist/components/textarea/textarea.js +1 -1
  225. package/dist/components/textfield/index.d.ts +17 -17
  226. package/dist/components/textfield/index.js +10 -10
  227. package/dist/components/textfield/textfield.d.ts +17 -17
  228. package/dist/components/textfield/textfield.js +9 -9
  229. package/dist/components/validation-message/index.d.ts +17 -17
  230. package/dist/components/validation-message/index.js +2 -2
  231. package/dist/components/validation-message/validation-message.d.ts +17 -17
  232. package/dist/components/validation-message/validation-message.js +1 -1
  233. package/dist/details-D8uz-ejF.js +39 -0
  234. package/dist/details-D8uz-ejF.js.map +1 -0
  235. package/dist/details-content-DyBjPa-n.js +22 -0
  236. package/dist/details-content-DyBjPa-n.js.map +1 -0
  237. package/dist/details-summary-DcMRpjT9.js +22 -0
  238. package/dist/details-summary-DcMRpjT9.js.map +1 -0
  239. package/dist/{dialog-DzGRZgbP.js → dialog-BKmFcPdL.js} +3 -4
  240. package/dist/dialog-BKmFcPdL.js.map +1 -0
  241. package/dist/{dialog-close-button-B4zf0hvt.js → dialog-close-button-BlnF2w7h.js} +4 -4
  242. package/dist/dialog-close-button-BlnF2w7h.js.map +1 -0
  243. package/dist/{dialog-content-R35XpbSj.js → dialog-content-CCRtpkxJ.js} +2 -3
  244. package/dist/{dialog-content-R35XpbSj.js.map → dialog-content-CCRtpkxJ.js.map} +1 -1
  245. package/dist/{dialog-footer-AoiCz_Uj.js → dialog-footer-BtOrrpKZ.js} +2 -3
  246. package/dist/{dialog-footer-AoiCz_Uj.js.map → dialog-footer-BtOrrpKZ.js.map} +1 -1
  247. package/dist/{dialog-header-Bbq9DcHX.js → dialog-header-BCDHRQHP.js} +2 -3
  248. package/dist/{dialog-header-Bbq9DcHX.js.map → dialog-header-BCDHRQHP.js.map} +1 -1
  249. package/dist/{dialog-trigger-DinHpkua.js → dialog-trigger-Ccn2CTPM.js} +3 -3
  250. package/dist/{dialog-trigger-DinHpkua.js.map → dialog-trigger-Ccn2CTPM.js.map} +1 -1
  251. package/dist/{dialog-trigger-context-51mA5fz3.js → dialog-trigger-context-B41wR-bM.js} +1 -1
  252. package/dist/{dialog-trigger-context-51mA5fz3.js.map → dialog-trigger-context-B41wR-bM.js.map} +1 -1
  253. package/dist/{dialog-trigger-context-ClG9UVsz.d.ts → dialog-trigger-context-B_MK_dPS.d.ts} +3 -3
  254. package/dist/{drawer-close-button-DigcuqLc.js → drawer-close-button-BRLWTL88.js} +2 -2
  255. package/dist/{drawer-close-button-DigcuqLc.js.map → drawer-close-button-BRLWTL88.js.map} +1 -1
  256. package/dist/{drawer-content-CFc-rxBo.js → drawer-content-CCLmuHnA.js} +2 -2
  257. package/dist/{drawer-content-CFc-rxBo.js.map → drawer-content-CCLmuHnA.js.map} +1 -1
  258. package/dist/{drawer-CZ05Lizo.js → drawer-d5Uiow6D.js} +2 -2
  259. package/dist/{drawer-CZ05Lizo.js.map → drawer-d5Uiow6D.js.map} +1 -1
  260. package/dist/{drawer-footer-CfHjfvEg.js → drawer-footer-Dcv1LfaG.js} +2 -2
  261. package/dist/{drawer-footer-CfHjfvEg.js.map → drawer-footer-Dcv1LfaG.js.map} +1 -1
  262. package/dist/{drawer-header-DK4XoaaW.js → drawer-header-CcO0S9oA.js} +2 -2
  263. package/dist/{drawer-header-DK4XoaaW.js.map → drawer-header-CcO0S9oA.js.map} +1 -1
  264. package/dist/{drawer-trigger-Do9Htx5M.js → drawer-trigger-bgJGCoDO.js} +2 -2
  265. package/dist/{drawer-trigger-Do9Htx5M.js.map → drawer-trigger-bgJGCoDO.js.map} +1 -1
  266. package/dist/{drawer-trigger-context-CNBRwj7l.d.ts → drawer-trigger-context-CtKVp90I.d.ts} +3 -3
  267. package/dist/{drawer-trigger-context-BUWPPdas.js → drawer-trigger-context-DHYdt3sB.js} +2 -2
  268. package/dist/{drawer-trigger-context-BUWPPdas.js.map → drawer-trigger-context-DHYdt3sB.js.map} +1 -1
  269. package/dist/{dropdown-Fzf2CeX4.js → dropdown-DKqrO1uv.js} +2 -2
  270. package/dist/{dropdown-Fzf2CeX4.js.map → dropdown-DKqrO1uv.js.map} +1 -1
  271. package/dist/{dropdown-button-FQqIwqdp.js → dropdown-button-B4-z264p.js} +2 -2
  272. package/dist/{dropdown-button-FQqIwqdp.js.map → dropdown-button-B4-z264p.js.map} +1 -1
  273. package/dist/{dropdown-item-CGg_2cV1.d.ts → dropdown-item-B7Z0CA1w.d.ts} +3 -3
  274. package/dist/{dropdown-item-DQQXQC4J.js → dropdown-item-BnnEFIq3.js} +1 -1
  275. package/dist/{dropdown-item-DQQXQC4J.js.map → dropdown-item-BnnEFIq3.js.map} +1 -1
  276. package/dist/{dropdown-list-DB1mST67.js → dropdown-list-BWW85rXi.js} +1 -1
  277. package/dist/{dropdown-list-DB1mST67.js.map → dropdown-list-BWW85rXi.js.map} +1 -1
  278. package/dist/{dropdown-list-D8szW6_q.d.ts → dropdown-list-mT0TnFtP.d.ts} +3 -3
  279. package/dist/{dropdown-b7acNLZb.js → dropdown-nbL-onyj.js} +2 -2
  280. package/dist/{dropdown-b7acNLZb.js.map → dropdown-nbL-onyj.js.map} +1 -1
  281. package/dist/{dropdown-trigger-Fwrigwtg.js → dropdown-trigger-D-1jExjx.js} +2 -2
  282. package/dist/{dropdown-trigger-Fwrigwtg.js.map → dropdown-trigger-D-1jExjx.js.map} +1 -1
  283. package/dist/{dropdown-trigger-context-BCcyoZEx.js → dropdown-trigger-context-BkqjqjhG.js} +2 -2
  284. package/dist/{dropdown-trigger-context-BCcyoZEx.js.map → dropdown-trigger-context-BkqjqjhG.js.map} +1 -1
  285. package/dist/{field-DFMMLG-d.js → field-Dul9LBgF.js} +2 -3
  286. package/dist/{field-DFMMLG-d.js.map → field-Dul9LBgF.js.map} +1 -1
  287. package/dist/{field-affix-npc6m7XL.js → field-affix-C5w3NK4H.js} +3 -5
  288. package/dist/{field-affix-npc6m7XL.js.map → field-affix-C5w3NK4H.js.map} +1 -1
  289. package/dist/{field-description-Dhm1VA08.js → field-description-Yya33j8H.js} +2 -3
  290. package/dist/{field-description-Dhm1VA08.js.map → field-description-Yya33j8H.js.map} +1 -1
  291. package/dist/{fieldset-Bpu4CRKG.js → fieldset-DGB7cvdz.js} +1 -1
  292. package/dist/{fieldset-Bpu4CRKG.js.map → fieldset-DGB7cvdz.js.map} +1 -1
  293. package/dist/{fieldset-description-DiHvcLh-.js → fieldset-description-DTGln20C.js} +2 -3
  294. package/dist/{fieldset-description-DiHvcLh-.js.map → fieldset-description-DTGln20C.js.map} +1 -1
  295. package/dist/{fieldset-legend-CR4srn2-.js → fieldset-legend-CfDR8p_J.js} +2 -2
  296. package/dist/{fieldset-legend-CR4srn2-.js.map → fieldset-legend-CfDR8p_J.js.map} +1 -1
  297. package/dist/{filter-group-DMSPaCQt.js → filter-group-WL9CsWUn.js} +3 -3
  298. package/dist/filter-group-WL9CsWUn.js.map +1 -0
  299. package/dist/{footer-CU7LdbPO.js → footer-DBpJeaE7.js} +7 -7
  300. package/dist/footer-DBpJeaE7.js.map +1 -0
  301. package/dist/{footer-links-DlrXiXOi.d.ts → footer-links-BTi7KUF7.d.ts} +3 -3
  302. package/dist/{footer-links-BIUrxu38.js → footer-links-Dz1UwVuf.js} +1 -1
  303. package/dist/{footer-links-BIUrxu38.js.map → footer-links-Dz1UwVuf.js.map} +1 -1
  304. package/dist/{index-DH_DbgNa.d.ts → index-BIb0BPml.d.ts} +1 -1
  305. package/dist/{index-ByVDkQOU.d.ts → index-C5pwIX2T.d.ts} +1 -1
  306. package/dist/{index-CG8drCYo.d.ts → index-CjCYMKtV.d.ts} +1 -1
  307. package/dist/index-Cyx9R6nl.d.ts +1 -0
  308. package/dist/input-Dr7BnTyd.js.map +1 -1
  309. package/dist/{label-DUzvAx-T.js → label-DG_ojO9g.js} +2 -3
  310. package/dist/{label-DUzvAx-T.js.map → label-DG_ojO9g.js.map} +1 -1
  311. package/dist/{link-BqDeZAJF.js → link-BFwfumUp.js} +2 -3
  312. package/dist/{link-BqDeZAJF.js.map → link-BFwfumUp.js.map} +1 -1
  313. package/dist/{logo-QKrYvRFP.js → logo-cfY7Ilvc.js} +1 -1
  314. package/dist/{logo-QKrYvRFP.js.map → logo-cfY7Ilvc.js.map} +1 -1
  315. package/dist/main.d.ts +18 -18
  316. package/dist/main.js +99 -95
  317. package/dist/{navbar-Dxv7GQO0.js → navbar-DJJMercW.js} +2 -2
  318. package/dist/{navbar-Dxv7GQO0.js.map → navbar-DJJMercW.js.map} +1 -1
  319. package/dist/{pagination-DH6vZYMO.js → pagination-DudKyNfl.js} +1 -1
  320. package/dist/{pagination-DH6vZYMO.js.map → pagination-DudKyNfl.js.map} +1 -1
  321. package/dist/{pagination-button-CMSNwkeT.js → pagination-button-CU4PzuxK.js} +2 -2
  322. package/dist/{pagination-button-CMSNwkeT.js.map → pagination-button-CU4PzuxK.js.map} +1 -1
  323. package/dist/{pagination-item-CMV8GBbx.d.ts → pagination-item-Bgn3B8ka.d.ts} +3 -3
  324. package/dist/{pagination-item-DzskmZxf.js → pagination-item-DNfDsZWn.js} +2 -3
  325. package/dist/{pagination-item-DzskmZxf.js.map → pagination-item-DNfDsZWn.js.map} +1 -1
  326. package/dist/{popover-DOMLkRA5.js → popover-CxA8qDdU.js} +1 -1
  327. package/dist/popover-CxA8qDdU.js.map +1 -0
  328. package/dist/{popover-DmA4qMtu.js → popover-MrMPbttR.js} +4 -6
  329. package/dist/popover-MrMPbttR.js.map +1 -0
  330. package/dist/{popover-trigger-Chi8uvRM.js → popover-trigger-D5_RrlH1.js} +3 -3
  331. package/dist/{popover-trigger-Chi8uvRM.js.map → popover-trigger-D5_RrlH1.js.map} +1 -1
  332. package/dist/{popover-trigger-context-CyMKQtlR.d.ts → popover-trigger-context-87n9O2Z1.d.ts} +3 -3
  333. package/dist/{popover-trigger-context-Cre9Mczn.js → popover-trigger-context-D7nOI0FT.js} +1 -1
  334. package/dist/{popover-trigger-context-Cre9Mczn.js.map → popover-trigger-context-D7nOI0FT.js.map} +1 -1
  335. package/dist/{radio-DAC5mhl3.js → radio-Cl85eVpp.js} +4 -4
  336. package/dist/{radio-DAC5mhl3.js.map → radio-Cl85eVpp.js.map} +1 -1
  337. package/dist/{search-DwL2xIaj.js → search-CiUvi72_.js} +7 -7
  338. package/dist/search-CiUvi72_.js.map +1 -0
  339. package/dist/{select-R87VdG5U.js → select-DbN5Q14j.js} +1 -1
  340. package/dist/{select-R87VdG5U.js.map → select-DbN5Q14j.js.map} +1 -1
  341. package/dist/{select-optgroup-jowSQvbc.js → select-optgroup-aG5VGPAT.js} +2 -3
  342. package/dist/{select-optgroup-jowSQvbc.js.map → select-optgroup-aG5VGPAT.js.map} +1 -1
  343. package/dist/{select-option-WAhhr82L.js → select-option-CN9x5ATv.js} +2 -3
  344. package/dist/{select-option-WAhhr82L.js.map → select-option-CN9x5ATv.js.map} +1 -1
  345. package/dist/{selectfield-C1wWqK0O.js → selectfield-D_WUpp9p.js} +6 -6
  346. package/dist/{selectfield-C1wWqK0O.js.map → selectfield-D_WUpp9p.js.map} +1 -1
  347. package/dist/{skip-link-CbdX4Taw.js → skip-link-BSrs8rA0.js} +2 -3
  348. package/dist/{skip-link-CbdX4Taw.js.map → skip-link-BSrs8rA0.js.map} +1 -1
  349. package/dist/spinner-Ch5bEQBR.js.map +1 -1
  350. package/dist/{sticky-header-gE5HX2ug.js → sticky-header-C54KyN7F.js} +2 -3
  351. package/dist/{sticky-header-gE5HX2ug.js.map → sticky-header-C54KyN7F.js.map} +1 -1
  352. package/dist/{sticky-header-BMeHtK7e.d.ts → sticky-header-CtdlkwlN.d.ts} +3 -3
  353. package/dist/{sub-navbar-DkxQv0WJ.js → sub-navbar-CtpYH9CP.js} +3 -3
  354. package/dist/{sub-navbar-DkxQv0WJ.js.map → sub-navbar-CtpYH9CP.js.map} +1 -1
  355. package/dist/{sub-navbar-BdJ9EKsU.js → sub-navbar-hkklQKBv.js} +7 -9
  356. package/dist/sub-navbar-hkklQKBv.js.map +1 -0
  357. package/dist/{tab-BvSndQZ_.js → tab-B2DlXQYE.js} +2 -2
  358. package/dist/{tab-BvSndQZ_.js.map → tab-B2DlXQYE.js.map} +1 -1
  359. package/dist/{tabs-C70z_5SJ.js → tabs-Cet8jr_P.js} +1 -1
  360. package/dist/{tabs-C70z_5SJ.js.map → tabs-Cet8jr_P.js.map} +1 -1
  361. package/dist/{tabs-list-npvK06bl.js → tabs-list-BdcW4pqj.js} +1 -1
  362. package/dist/{tabs-list-npvK06bl.js.map → tabs-list-BdcW4pqj.js.map} +1 -1
  363. package/dist/{tabs-panel-L8HovooI.js → tabs-panel-DLVzDmVt.js} +1 -1
  364. package/dist/{tabs-panel-L8HovooI.js.map → tabs-panel-DLVzDmVt.js.map} +1 -1
  365. package/dist/{textarea-B1fAOfkt.js → textarea-B-aCRt3J.js} +1 -1
  366. package/dist/{textarea-B1fAOfkt.js.map → textarea-B-aCRt3J.js.map} +1 -1
  367. package/dist/{textfield-Dt_vYPpu.js → textfield-D4YyrSZI.js} +7 -7
  368. package/dist/{textfield-Dt_vYPpu.js.map → textfield-D4YyrSZI.js.map} +1 -1
  369. package/dist/{types-CtaqzrVi.d.ts → types-DC_g3L-J.d.ts} +1 -1
  370. package/dist/{types-Bga-EYiy.d.ts → types-LBHl14PF.d.ts} +1 -1
  371. package/dist/types.d.ts +1 -1
  372. package/dist/{useCheckboxGroup-BDH3ewt8.js → useCheckboxGroup-CZ7NF3kT.js} +1 -1
  373. package/dist/useCheckboxGroup-CZ7NF3kT.js.map +1 -0
  374. package/dist/{useCheckboxGroup-D61FVz37.d.ts → useCheckboxGroup-nxlcj9XV.d.ts} +1 -1
  375. package/dist/{useIsElementAboveViewport-lmdnXDdc.js → useIsElementAboveViewport-DESvUblG.js} +1 -1
  376. package/dist/useIsElementAboveViewport-DESvUblG.js.map +1 -0
  377. package/dist/{useIsElementAboveViewport-C3qzTbfj.d.ts → useIsElementAboveViewport-DHjLWtIr.d.ts} +1 -1
  378. package/dist/{useIsomorphicLayoutEffect-odKYwQAV.js → useIsomorphicLayoutEffect-ChcL7oKz.js} +1 -1
  379. package/dist/{useIsomorphicLayoutEffect-odKYwQAV.js.map → useIsomorphicLayoutEffect-ChcL7oKz.js.map} +1 -1
  380. package/dist/{useIsomorphicLayoutEffect-DYtMRdO-.d.ts → useIsomorphicLayoutEffect-xBMCbFbr.d.ts} +1 -1
  381. package/dist/{useMediaQuery-DYDgFKom.d.ts → useMediaQuery-Bg5u2Z9G.d.ts} +1 -1
  382. package/dist/{useMediaQuery-ICPWsO_p.js → useMediaQuery-DS4pcarq.js} +2 -2
  383. package/dist/useMediaQuery-DS4pcarq.js.map +1 -0
  384. package/dist/useMergeRefs-DC710CHX.js.map +1 -1
  385. package/dist/{usePagination-DQR72JNE.js → usePagination-BEplBMLC.js} +1 -1
  386. package/dist/usePagination-BEplBMLC.js.map +1 -0
  387. package/dist/{useScrollDirection-BmllObvZ.d.ts → useScrollDirection-D0LV5RmP.d.ts} +1 -1
  388. package/dist/{useScrollDirection-C2EmQi0U.js → useScrollDirection-DKn8fE9-.js} +1 -1
  389. package/dist/{useScrollDirection-C2EmQi0U.js.map → useScrollDirection-DKn8fE9-.js.map} +1 -1
  390. package/dist/utilities/hooks/index.d.ts +17 -17
  391. package/dist/utilities/hooks/index.js +7 -7
  392. package/dist/utilities/hooks/useCheckboxGroup/useCheckboxGroup.d.ts +1 -1
  393. package/dist/utilities/hooks/useCheckboxGroup/useCheckboxGroup.js +1 -1
  394. package/dist/utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.d.ts +1 -1
  395. package/dist/utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.js +1 -1
  396. package/dist/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +1 -1
  397. package/dist/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  398. package/dist/utilities/hooks/useMediaQuery/useMediaQuery.d.ts +1 -1
  399. package/dist/utilities/hooks/useMediaQuery/useMediaQuery.js +2 -2
  400. package/dist/utilities/hooks/usePagination/usePagination.d.ts +17 -17
  401. package/dist/utilities/hooks/usePagination/usePagination.js +1 -1
  402. package/dist/utilities/hooks/useScrollDirection/useScrollDirection.d.ts +1 -1
  403. package/dist/utilities/hooks/useScrollDirection/useScrollDirection.js +1 -1
  404. package/dist/utilities/index.d.ts +17 -17
  405. package/dist/utilities/index.js +8 -8
  406. package/dist/utilities/types.d.ts +1 -1
  407. package/dist/validation-message-Dj11BwTl.js +1 -0
  408. package/dist/{validation-message-BAGjCQy3.js → validation-message-pl1_2HbT.js} +4 -5
  409. package/dist/validation-message-pl1_2HbT.js.map +1 -0
  410. package/dist/vanilla/dropdown/index.d.ts +1 -1
  411. package/dist/vanilla/dropdown/index.js +2 -2
  412. package/dist/vanilla/index.d.ts +3 -3
  413. package/dist/vanilla/index.js +3 -3
  414. package/dist/vanilla/popover/index.d.ts +1 -1
  415. package/dist/vanilla/popover/index.js +1 -1
  416. package/dist/vanilla/sub-navbar/index.d.ts +1 -1
  417. package/dist/vanilla/sub-navbar/index.js +1 -1
  418. package/dist/vite-env.d.ts +1 -2
  419. package/package.json +24 -13
  420. package/dist/alert-Cwq1S4RD.js.map +0 -1
  421. package/dist/dialog-DzGRZgbP.js.map +0 -1
  422. package/dist/dialog-close-button-B4zf0hvt.js.map +0 -1
  423. package/dist/filter-group-DMSPaCQt.js.map +0 -1
  424. package/dist/footer-CU7LdbPO.js.map +0 -1
  425. package/dist/index-Cv0onxlx.d.ts +0 -1
  426. package/dist/popover-DOMLkRA5.js.map +0 -1
  427. package/dist/popover-DmA4qMtu.js.map +0 -1
  428. package/dist/search-DwL2xIaj.js.map +0 -1
  429. package/dist/sub-navbar-BdJ9EKsU.js.map +0 -1
  430. package/dist/useCheckboxGroup-BDH3ewt8.js.map +0 -1
  431. package/dist/useIsElementAboveViewport-lmdnXDdc.js.map +0 -1
  432. package/dist/useMediaQuery-ICPWsO_p.js.map +0 -1
  433. package/dist/usePagination-DQR72JNE.js.map +0 -1
  434. package/dist/validation-message-BAGjCQy3.js.map +0 -1
  435. /package/dist/{components-CouSGV6e.js → components-D2VZuBrK.js} +0 -0
  436. /package/dist/{dialog-CbLuKrFn.js → details-B_F8rXWh.js} +0 -0
  437. /package/dist/{drawer-CpPzCsLG.js → dialog-m15tNO2O.js} +0 -0
  438. /package/dist/{dropdown-DHACQ2Vu.js → drawer-6n_eq15R.js} +0 -0
  439. /package/dist/{fieldset-CKQ2RG9n.js → dropdown-B88s2XAv.js} +0 -0
  440. /package/dist/{filter-group-DfuKXzU3.js → fieldset-ByZDMcNs.js} +0 -0
  441. /package/dist/{footer-C8UL4KnN.js → filter-group-CvD-w5Xg.js} +0 -0
  442. /package/dist/{hooks-DLlERz_p.js → footer-B51ywWXT.js} +0 -0
  443. /package/dist/{link-BtBX-WfP.js → hooks-BStARsE3.js} +0 -0
  444. /package/dist/{logo-Bj2kMgOD.js → link-QJsXjipD.js} +0 -0
  445. /package/dist/{navbar-CQKFBrJr.js → logo-fuYZqZ1-.js} +0 -0
  446. /package/dist/{pagination-COuMArW_.js → navbar-CnaWOxB3.js} +0 -0
  447. /package/dist/{popover-B1YgrDNf.js → pagination-B-t2iH17.js} +0 -0
  448. /package/dist/{radio-rO-tWKD5.js → popover-CuHhhE_D.js} +0 -0
  449. /package/dist/{search-Djix7Xme.js → radio-Bx9cQiSW.js} +0 -0
  450. /package/dist/{select-DcvVj8YT.js → search-uOCYqlgj.js} +0 -0
  451. /package/dist/{selectfield-DtSsNu0C.js → select-BUxlj2ug.js} +0 -0
  452. /package/dist/{skip-link-DHDiOrN_.js → selectfield-gCbIv57s.js} +0 -0
  453. /package/dist/{sticky-header-DKlpc3Eq.js → skip-link-C91Ibx05.js} +0 -0
  454. /package/dist/{tabs-CRLePQH9.js → sticky-header-B0fchRlV.js} +0 -0
  455. /package/dist/{textarea-cP6IV0Lb.js → tabs-C0rMearl.js} +0 -0
  456. /package/dist/{textfield-s5xGjX-B.js → textarea-CzSm4-iX.js} +0 -0
  457. /package/dist/{utilities-DanMK0XE.js → textfield-BjQNezK7.js} +0 -0
  458. /package/dist/{validation-message-DHR3NN8N.js → utilities-CPmeERR2.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"radio-DAC5mhl3.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,QAAQ,CAAC,EACpB,MACA,OACA,aACA,OACA,WACA,OACA,WACA,KACA,IACA,oBAAoB,oBACpB,GAAG,OACQ,KAAK;CAChB,MAAM,gBAAgB,OAAO;CAE7B,MAAM,kBAAkB,CAAC,cAAc,gBAAgB,IAAI,mBAAoB,EAAC,KAAK,IAAI,CAAC,MAAM,IAAI;AAEpG,4BACG;EAAiB;EAAW,aAAW;EAAa;EAAkB;EAAW;iCAC/E;uBACE;IACC,MAAK;IACD;IACC;IACL,gBAAc,SAAS;IACvB,oBAAkB;IACZ;IACN,GAAI;KACJ;GACD,6BACE;IAAM,QAAO;IAAS,SAAS;IAAI;kCACjC,oBAAM,QAAa;KACd;GAET,mCAGE;IAAiB,eAAY;IAAO,IAAI;cACtC;KACgB;MAEf;GACF;AAEX"}
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,9 +1,9 @@
1
- import { Button } from "./button-fhd-JARc.js";
2
- import { Field } from "./field-DFMMLG-d.js";
3
- import { FieldAffix, FieldAffixes } from "./field-affix-npc6m7XL.js";
1
+ import { Button } from "./button-BzU7DrNe.js";
2
+ import { Field } from "./field-Dul9LBgF.js";
3
+ import { FieldAffix, FieldAffixes } from "./field-affix-C5w3NK4H.js";
4
4
  import { Input } from "./input-Dr7BnTyd.js";
5
5
  import clsx from "clsx/lite";
6
- import { BiIconCrossSmall, BiIconMagnefyingGlass } from "@bi-digital/icons-react";
6
+ import { CrossSmallIcon, MagnefyingGlassIcon } from "@bi-digital/icons";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
8
 
9
9
  //#region src/components/search/search.tsx
@@ -28,7 +28,7 @@ const Search = ({ className, onSubmit, onReset, clearAriaLabel = "Clear", size =
28
28
  onSubmit: handleSubmit,
29
29
  onReset: handleReset,
30
30
  children: /* @__PURE__ */ jsxs(FieldAffixes, { children: [
31
- /* @__PURE__ */ jsx(FieldAffix, { children: /* @__PURE__ */ jsx(BiIconMagnefyingGlass, { size }) }),
31
+ /* @__PURE__ */ jsx(FieldAffix, { children: /* @__PURE__ */ jsx(MagnefyingGlassIcon, { size }) }),
32
32
  /* @__PURE__ */ jsx(Input, {
33
33
  type: "text",
34
34
  ref,
@@ -45,7 +45,7 @@ const Search = ({ className, onSubmit, onReset, clearAriaLabel = "Clear", size =
45
45
  dark,
46
46
  variant: "text",
47
47
  type: "reset",
48
- children: /* @__PURE__ */ jsx(BiIconCrossSmall, {
48
+ children: /* @__PURE__ */ jsx(CrossSmallIcon, {
49
49
  size,
50
50
  "aria-hidden": "true"
51
51
  })
@@ -58,4 +58,4 @@ const Search = ({ className, onSubmit, onReset, clearAriaLabel = "Clear", size =
58
58
 
59
59
  //#endregion
60
60
  export { Search };
61
- //# sourceMappingURL=search-DwL2xIaj.js.map
61
+ //# sourceMappingURL=search-CiUvi72_.js.map
@@ -0,0 +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"}
@@ -23,4 +23,4 @@ const Select = ({ className, dark, onKeyDown, onMouseDown, size, ref,...props })
23
23
 
24
24
  //#endregion
25
25
  export { Select };
26
- //# sourceMappingURL=select-R87VdG5U.js.map
26
+ //# sourceMappingURL=select-DbN5Q14j.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"select-R87VdG5U.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,SAAS,CAAC,EAAE,WAAW,MAAM,WAAW,aAAa,MAAM,IAAK,GAAG,OAAoB,KAAK;AACvG,4BACG;EACC,WAAW,KAAK,YAAY,UAAU;EACtC,aAAW;EACX,aAAW;EACN;EACL,WAAW,CAAC,UAAU;AACpB,OAAI,MAAM,QAAQ,MAAO;AACzB,OAAI,MAAM,UAAU,MAAM,gBAAgB;GAC1C,YAAY,MAAM;EACnB;EACD,aAAa,CAAC,UAAU;AACtB,OAAI,MAAM,UAAU,MAAM,gBAAgB;GAC1C,cAAc,MAAM;EACrB;EACD,GAAI;GACJ;AAEL"}
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"}
@@ -3,8 +3,7 @@ import { jsx } from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/select/select-optgroup.tsx
5
5
  const SelectOptgroup = ({ asChild, ref,...props }) => {
6
- const Component = asChild ? Slot : "optgroup";
7
- return /* @__PURE__ */ jsx(Component, {
6
+ return /* @__PURE__ */ jsx(asChild ? Slot : "optgroup", {
8
7
  ...props,
9
8
  ref
10
9
  });
@@ -12,4 +11,4 @@ const SelectOptgroup = ({ asChild, ref,...props }) => {
12
11
 
13
12
  //#endregion
14
13
  export { SelectOptgroup };
15
- //# sourceMappingURL=select-optgroup-jowSQvbc.js.map
14
+ //# sourceMappingURL=select-optgroup-aG5VGPAT.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"select-optgroup-jowSQvbc.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,iBAAiB,CAAC,EAAE,SAAS,IAAK,GAAG,OAA4B,KAAK;CACjF,MAAM,YAAY,UAAU,OAAO;AACnC,4BAAQ;EAAU,GAAI;EAAY;GAAO;AAC1C"}
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"}
@@ -3,8 +3,7 @@ import { jsx } from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/select/select-option.tsx
5
5
  const SelectOption = ({ asChild, ref,...props }) => {
6
- const Component = asChild ? Slot : "option";
7
- return /* @__PURE__ */ jsx(Component, {
6
+ return /* @__PURE__ */ jsx(asChild ? Slot : "option", {
8
7
  ...props,
9
8
  ref
10
9
  });
@@ -12,4 +11,4 @@ const SelectOption = ({ asChild, ref,...props }) => {
12
11
 
13
12
  //#endregion
14
13
  export { SelectOption };
15
- //# sourceMappingURL=select-option-WAhhr82L.js.map
14
+ //# sourceMappingURL=select-option-CN9x5ATv.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"select-option-WAhhr82L.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,eAAe,CAAC,EAAE,SAAS,IAAK,GAAG,OAA0B,KAAK;CAC7E,MAAM,YAAY,UAAU,OAAO;AACnC,4BAAQ;EAAU,GAAI;EAAY;GAAO;AAC1C"}
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,8 +1,8 @@
1
- import { Field } from "./field-DFMMLG-d.js";
2
- import { FieldDescription } from "./field-description-Dhm1VA08.js";
3
- import { Label } from "./label-DUzvAx-T.js";
4
- import { Select } from "./select-R87VdG5U.js";
5
- import { ValidationMessage } from "./validation-message-BAGjCQy3.js";
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";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { useId } from "react";
8
8
 
@@ -50,4 +50,4 @@ const Selectfield = ({ children, dark, label, description, error, style, classNa
50
50
 
51
51
  //#endregion
52
52
  export { Selectfield };
53
- //# sourceMappingURL=selectfield-C1wWqK0O.js.map
53
+ //# sourceMappingURL=selectfield-D_WUpp9p.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"selectfield-C1wWqK0O.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,cAAc,CAAC,EAC1B,UACA,MACA,OACA,aACA,OACA,OACA,WACA,WACA,KACA,IAAI,QACJ,oBAAoB,oBACpB,GAAG,OACc,KAAK;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;CAAoB,EAAC,KAAK,IAAI,CAAC,MAAM,IAAI;AACzG,6BACG;EAAiB;EAAW,aAAW;EAAa;EAAkB;;GACpE,6BAAU;IAAM,SAAS;cAAK;KAAc;GAC5C,mCAAgB;IAAiB,IAAI;cAAgB;KAA+B;uBACpF;IACK;IACC;IACC;IACN,gBAAc,QAAQ,MAAM,IAAI;IAChC,oBAAkB;IAClB,GAAI;IAEH;KACM;GACR,CAAC,CAAC,6BAAU;IAAkB,IAAI;cAAe;KAA0B;;GACtE;AAEX"}
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"}
@@ -4,8 +4,7 @@ import { jsx } from "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/skip-link/skip-link.tsx
6
6
  const SkipLink = ({ asChild, children, className, dark,...props }) => {
7
- const Component = asChild ? Slot : "a";
8
- return /* @__PURE__ */ jsx(Component, {
7
+ return /* @__PURE__ */ jsx(asChild ? Slot : "a", {
9
8
  className: clsx("bi-skip-link", className),
10
9
  "data-dark": dark,
11
10
  ...props,
@@ -15,4 +14,4 @@ const SkipLink = ({ asChild, children, className, dark,...props }) => {
15
14
 
16
15
  //#endregion
17
16
  export { SkipLink };
18
- //# sourceMappingURL=skip-link-CbdX4Taw.js.map
17
+ //# sourceMappingURL=skip-link-BSrs8rA0.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"skip-link-CbdX4Taw.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,WAAW,CAAC,EAAE,SAAS,UAAU,WAAW,KAAM,GAAG,OAAsB,KAAK;CAC3F,MAAM,YAAY,UAAU,OAAO;AACnC,4BACG;EAAU,WAAW,KAAK,gBAAgB,UAAU;EAAE,aAAW;EAAM,GAAI;EACzE;GACS;AAEf"}
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 +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,UAAU,CAAC,EAAE,QAAQ,WAAW,MAAM,WAAW,IAAK,GAAG,OAAqB,KAAK;AAC9F,4BAAQ;EAAK,WAAW,KAAK,cAAc,UAAU;EAAE,aAAW;EAAM,cAAY;EAAY;EAAK,GAAI;GAAS;AACnH"}
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"}
@@ -9,8 +9,7 @@ import { jsx } from "react/jsx-runtime";
9
9
  * Make sure that the children passed to this component appends className and not overrides it.
10
10
  */
11
11
  const StickyHeader = ({ children }) => {
12
- const Component = Slot;
13
- return /* @__PURE__ */ jsx(Component, {
12
+ return /* @__PURE__ */ jsx(Slot, {
14
13
  className: "bi-sticky-header",
15
14
  children
16
15
  });
@@ -18,4 +17,4 @@ const StickyHeader = ({ children }) => {
18
17
 
19
18
  //#endregion
20
19
  export { StickyHeader };
21
- //# sourceMappingURL=sticky-header-gE5HX2ug.js.map
20
+ //# sourceMappingURL=sticky-header-C54KyN7F.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sticky-header-gE5HX2ug.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,eAAe,CAAC,EAAE,UAA6B,KAAK;CAC/D,MAAM,YAAY;AAClB,4BAAQ;EAAU,WAAU;EAAoB;GAAqB;AACtE"}
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,4 +1,4 @@
1
- import * as react_jsx_runtime64 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_runtime64.JSX.Element;
16
+ }: StickyHeaderProps) => react_jsx_runtime66.JSX.Element;
17
17
  //#endregion
18
18
  export { StickyHeader, StickyHeaderProps };
19
- //# sourceMappingURL=sticky-header-BMeHtK7e.d.ts.map
19
+ //# sourceMappingURL=sticky-header-CtdlkwlN.d.ts.map
@@ -1,5 +1,5 @@
1
- import { useIsElementAboveViewport } from "./useIsElementAboveViewport-lmdnXDdc.js";
2
- import { useScrollDirection } from "./useScrollDirection-C2EmQi0U.js";
1
+ import { useIsElementAboveViewport } from "./useIsElementAboveViewport-DESvUblG.js";
2
+ import { useScrollDirection } from "./useScrollDirection-DKn8fE9-.js";
3
3
  import clsx from "clsx/lite";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { useRef } from "react";
@@ -25,4 +25,4 @@ const SubNavbar = ({ dark = false, children, className, ref,...props }) => {
25
25
 
26
26
  //#endregion
27
27
  export { SubNavbar };
28
- //# sourceMappingURL=sub-navbar-DkxQv0WJ.js.map
28
+ //# sourceMappingURL=sub-navbar-CtpYH9CP.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sub-navbar-DkxQv0WJ.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,YAAY,CAAC,EAAE,OAAO,OAAO,UAAU,WAAW,IAAK,GAAG,OAAuB,KAAK;CACjG,MAAM,aAAa,OAAuB,KAAK;CAC/C,MAAM,QAAQ,0BAA0B,WAAW;CACnD,MAAM,kBAAkB,oBAAoB;AAE5C,6BACG;EAAI,WAAU;iCACZ,SAAI,KAAK,aAAc,sBACvB;GACC,WAAW,KAAK,iBAAiB,UAAU;GAC3C,cAAY;GACZ,mBAAiB,QAAQ,kBAAkB;GAC3C,aAAW;GACX,GAAI;GACC;GAEJ;IACG;GACF;AAET"}
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"}
@@ -5,10 +5,10 @@
5
5
  * exceeds a 5px threshold to prevent sensitivity to minor scroll jitter.
6
6
  */
7
7
  var ScrollDirectionTracker = class {
8
- scrollDirection = null;
9
- lastScrollY = window.pageYOffset;
10
- callbacks = /* @__PURE__ */ new Set();
11
8
  constructor() {
9
+ this.scrollDirection = null;
10
+ this.lastScrollY = window.pageYOffset;
11
+ this.callbacks = /* @__PURE__ */ new Set();
12
12
  this.updateScrollDirection = this.updateScrollDirection.bind(this);
13
13
  window.addEventListener("scroll", this.updateScrollDirection);
14
14
  }
@@ -37,11 +37,10 @@ var ScrollDirectionTracker = class {
37
37
  * Detects when an element is scrolled past and is no longer in the viewport.
38
38
  */
39
39
  var ElementAboveViewportTracker = class {
40
- isAboveViewport = false;
41
- observer;
42
- callbacks = /* @__PURE__ */ new Set();
43
40
  constructor(element) {
44
41
  this.element = element;
42
+ this.isAboveViewport = false;
43
+ this.callbacks = /* @__PURE__ */ new Set();
45
44
  this.observer = new IntersectionObserver(([entry]) => {
46
45
  const newIsAbove = entry.boundingClientRect.y < 0;
47
46
  if (newIsAbove !== this.isAboveViewport) {
@@ -100,8 +99,7 @@ const initSubNavbar = ({ selector = ".bi-sub-navbar" } = {}) => {
100
99
  } else navbar.removeAttribute("data-scroll-dir");
101
100
  });
102
101
  const unsubscribeScroll = scrollTracker.subscribe((direction) => {
103
- const isFixed = navbar.getAttribute("data-fixed") === "true";
104
- if (isFixed && direction) navbar.setAttribute("data-scroll-dir", direction);
102
+ if (navbar.getAttribute("data-fixed") === "true" && direction) navbar.setAttribute("data-scroll-dir", direction);
105
103
  });
106
104
  cleanupFunctions.push(() => {
107
105
  unsubscribeViewport();
@@ -117,4 +115,4 @@ const initSubNavbar = ({ selector = ".bi-sub-navbar" } = {}) => {
117
115
 
118
116
  //#endregion
119
117
  export { initSubNavbar };
120
- //# sourceMappingURL=sub-navbar-BdJ9EKsU.js.map
118
+ //# sourceMappingURL=sub-navbar-hkklQKBv.js.map
@@ -0,0 +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,4 +1,4 @@
1
- import { Button } from "./button-fhd-JARc.js";
1
+ import { Button } from "./button-BzU7DrNe.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";
@@ -24,4 +24,4 @@ const Tab = ({ className, value, disabled, children, asChild, dark, ref,...props
24
24
 
25
25
  //#endregion
26
26
  export { Tab };
27
- //# sourceMappingURL=tab-BvSndQZ_.js.map
27
+ //# sourceMappingURL=tab-B2DlXQYE.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tab-BvSndQZ_.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,MAAM,CAAC,EAAE,WAAW,OAAO,UAAU,UAAU,SAAS,MAAM,IAAK,GAAG,OAAiB,KAAK;AACvG,4BACG;EAAe;EAAiB;EAAU;gCACxC;GACM;GACL,SAAQ;GACR,WAAW,KAAK,gBAAgB,UAAU;GAChC;GACD;GACH;GACN,GAAI;GAEH;IACM;GACD;AAEb"}
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"}
@@ -21,4 +21,4 @@ const Tabs = ({ activationMode = "automatic", orientation = "horizontal", defaul
21
21
 
22
22
  //#endregion
23
23
  export { Tabs };
24
- //# sourceMappingURL=tabs-C70z_5SJ.js.map
24
+ //# sourceMappingURL=tabs-Cet8jr_P.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tabs-C70z_5SJ.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,OAAO,CAAC,EACnB,iBAAiB,aACjB,cAAc,cACd,cACA,OACA,UACA,UACA,WACA,SACA,MACA,IACA,GAAG,OACO,KAAK;AACf,4BACG;EACC,WAAW,KAAK,WAAW,UAAU;EACrB;EACH;EACC;EACP;EACP,eAAe;EACN;EACT,aAAW;EACN;EACL,GAAI;EAEH;GACI;AAEV"}
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"}
@@ -17,4 +17,4 @@ const TabsList = ({ className, loop = true, children, asChild, dark, ref,...prop
17
17
 
18
18
  //#endregion
19
19
  export { TabsList };
20
- //# sourceMappingURL=tabs-list-npvK06bl.js.map
20
+ //# sourceMappingURL=tabs-list-BdcW4pqj.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tabs-list-npvK06bl.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,WAAW,CAAC,EAAE,WAAW,OAAO,MAAM,UAAU,SAAS,MAAM,IAAK,GAAG,OAAsB,KAAK;AAC7G,4BACG;EACC,WAAW,KAAK,iBAAiB,UAAU;EACrC;EACG;EACT,aAAW;EACN;EACL,GAAI;EAEH;GACI;AAEV"}
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"}
@@ -18,4 +18,4 @@ const TabsPanel = ({ className, value, forceMount, children, asChild, dark, ref,
18
18
 
19
19
  //#endregion
20
20
  export { TabsPanel };
21
- //# sourceMappingURL=tabs-panel-L8HovooI.js.map
21
+ //# sourceMappingURL=tabs-panel-DLVzDmVt.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tabs-panel-L8HovooI.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,YAAY,CAAC,EAAE,WAAW,OAAO,YAAY,UAAU,SAAS,MAAM,IAAK,GAAG,OAAuB,KAAK;AACrH,4BACG;EACC,WAAW,KAAK,kBAAkB,UAAU;EACrC;EACP,YAAY,cAAc;EACjB;EACT,aAAW;EACN;EACL,GAAI;EAEH;GACO;AAEb"}
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"}
@@ -14,4 +14,4 @@ const Textarea = ({ className, dark, size, ref,...props }) => {
14
14
 
15
15
  //#endregion
16
16
  export { Textarea };
17
- //# sourceMappingURL=textarea-B1fAOfkt.js.map
17
+ //# sourceMappingURL=textarea-B-aCRt3J.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textarea-B1fAOfkt.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,WAAW,CAAC,EAAE,WAAW,MAAM,MAAM,IAAK,GAAG,OAAsB,KAAK;AACnF,4BAAQ;EAAS,WAAW,KAAK,YAAY,UAAU;EAAE,aAAW;EAAM,aAAW;EAAW;EAAK,GAAI;GAAS;AACnH"}
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,10 +1,10 @@
1
- import { Field } from "./field-DFMMLG-d.js";
2
- import { FieldDescription } from "./field-description-Dhm1VA08.js";
3
- import { FieldAffix, FieldAffixes } from "./field-affix-npc6m7XL.js";
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
4
  import { Input } from "./input-Dr7BnTyd.js";
5
- import { Label } from "./label-DUzvAx-T.js";
6
- import { ValidationMessage } from "./validation-message-BAGjCQy3.js";
7
- import { Textarea } from "./textarea-B1fAOfkt.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";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
  import { useId } from "react";
10
10
 
@@ -62,4 +62,4 @@ const Textfield = ({ dark, label, description, error, multiline, prefix, suffix,
62
62
 
63
63
  //#endregion
64
64
  export { Textfield };
65
- //# sourceMappingURL=textfield-Dt_vYPpu.js.map
65
+ //# sourceMappingURL=textfield-D4YyrSZI.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textfield-Dt_vYPpu.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,YAAY,CAAC,EACxB,MACA,OACA,aACA,OACA,WACA,QACA,QACA,OACA,WACA,WACA,KACA,IAAI,QACJ,oBAAoB,oBACpB,GAAG,OACY,KAAK;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;CAAoB,EAAC,KAAK,IAAI,CAAC,MAAM,IAAI;AACzG,6BACG;EAAiB;EAAW,aAAW;EAAa;EAAkB;;GACpE,6BAAU;IAAM,SAAS;cAAK;KAAc;GAC5C,mCAAgB;IAAiB,IAAI;cAAgB;KAA+B;wBACpF;IACE,8BAAW,wBAAY,SAAoB;IAC3C,gCACE;KACK;KACC;KACL,gBAAc,QAAQ,MAAM,IAAI;KAChC,oBAAkB;KACZ;KACN,GAAK;MACL,uBAED;KACK;KACC;KACL,gBAAc,QAAQ,MAAM,IAAI;KAChC,oBAAkB;KACZ;KACN,GAAK;MACL;IAEH,8BAAW,wBAAY,SAAoB;OAC/B;GACd,CAAC,CAAC,6BAAU;IAAkB,IAAI;cAAe;KAA0B;;GACtE;AAEX"}
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"}
@@ -6,4 +6,4 @@
6
6
  type MergeRight<T1, T2> = Omit<T1, keyof T2> & T2;
7
7
  //#endregion
8
8
  export { MergeRight };
9
- //# sourceMappingURL=types-CtaqzrVi.d.ts.map
9
+ //# sourceMappingURL=types-DC_g3L-J.d.ts.map
@@ -31,4 +31,4 @@ type LabelRequiredProps = {
31
31
  };
32
32
  //#endregion
33
33
  export { AsChildProps, DefaultProps, LabelRequiredProps };
34
- //# sourceMappingURL=types-Bga-EYiy.d.ts.map
34
+ //# sourceMappingURL=types-LBHl14PF.d.ts.map
package/dist/types.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { AsChildProps, DefaultProps, LabelRequiredProps } from "./types-Bga-EYiy.js";
1
+ import { AsChildProps, DefaultProps, LabelRequiredProps } from "./types-LBHl14PF.js";
2
2
  export { AsChildProps, DefaultProps, LabelRequiredProps };
@@ -15,4 +15,4 @@ const useCheckboxGroup = ({ options, updateOptions }) => {
15
15
 
16
16
  //#endregion
17
17
  export { useCheckboxGroup };
18
- //# sourceMappingURL=useCheckboxGroup-BDH3ewt8.js.map
18
+ //# sourceMappingURL=useCheckboxGroup-CZ7NF3kT.js.map
@@ -0,0 +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"}
@@ -19,4 +19,4 @@ declare const useCheckboxGroup: ({
19
19
  }: UseCheckboxGroupOptions) => UseCheckboxGroupReturn;
20
20
  //#endregion
21
21
  export { UseCheckboxGroupOptions, UseCheckboxGroupReturn, useCheckboxGroup };
22
- //# sourceMappingURL=useCheckboxGroup-D61FVz37.d.ts.map
22
+ //# sourceMappingURL=useCheckboxGroup-nxlcj9XV.d.ts.map
@@ -17,4 +17,4 @@ const useIsElementAboveViewport = (elementRef) => {
17
17
 
18
18
  //#endregion
19
19
  export { useIsElementAboveViewport };
20
- //# sourceMappingURL=useIsElementAboveViewport-lmdnXDdc.js.map
20
+ //# sourceMappingURL=useIsElementAboveViewport-DESvUblG.js.map
@@ -0,0 +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"}
@@ -5,4 +5,4 @@ import { RefObject } from "react";
5
5
  declare const useIsElementAboveViewport: (elementRef: RefObject<HTMLElement | null>) => boolean;
6
6
  //#endregion
7
7
  export { useIsElementAboveViewport };
8
- //# sourceMappingURL=useIsElementAboveViewport-C3qzTbfj.d.ts.map
8
+ //# sourceMappingURL=useIsElementAboveViewport-DHjLWtIr.d.ts.map
@@ -5,4 +5,4 @@ const useIsomorphicLayoutEffect = typeof window !== "undefined" ? useLayoutEffec
5
5
 
6
6
  //#endregion
7
7
  export { useIsomorphicLayoutEffect };
8
- //# sourceMappingURL=useIsomorphicLayoutEffect-odKYwQAV.js.map
8
+ //# sourceMappingURL=useIsomorphicLayoutEffect-ChcL7oKz.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIsomorphicLayoutEffect-odKYwQAV.js","names":[],"sources":["../src/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.ts"],"sourcesContent":["// https://usehooks-ts.com/react-hook/use-isomorphic-layout-effect\n\nimport { useEffect, useLayoutEffect } from 'react';\n\nexport const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;\n"],"mappings":";;;AAIA,MAAa,4BAA4B,OAAO,WAAW,cAAc,kBAAkB"}
1
+ {"version":3,"file":"useIsomorphicLayoutEffect-ChcL7oKz.js","names":[],"sources":["../src/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.ts"],"sourcesContent":["// https://usehooks-ts.com/react-hook/use-isomorphic-layout-effect\n\nimport { useEffect, useLayoutEffect } from 'react';\n\nexport const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;\n"],"mappings":";;;AAIA,MAAa,4BAA4B,OAAO,WAAW,cAAc,kBAAkB"}
@@ -4,4 +4,4 @@ import { useLayoutEffect } from "react";
4
4
  declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
5
5
  //#endregion
6
6
  export { useIsomorphicLayoutEffect };
7
- //# sourceMappingURL=useIsomorphicLayoutEffect-DYtMRdO-.d.ts.map
7
+ //# sourceMappingURL=useIsomorphicLayoutEffect-xBMCbFbr.d.ts.map
@@ -29,4 +29,4 @@ declare function useMediaQuery(query: string, {
29
29
  }?: UseMediaQueryOptions): boolean;
30
30
  //#endregion
31
31
  export { UseMediaQueryOptions, useMediaQuery };
32
- //# sourceMappingURL=useMediaQuery-DYDgFKom.d.ts.map
32
+ //# sourceMappingURL=useMediaQuery-Bg5u2Z9G.d.ts.map