@persona/design-system 0.1.6 → 0.1.7

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 (597) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/{Action-DSg3yZck.d.mts → Action-DkNqzc2X.d.mts} +3 -3
  3. package/dist/{Action-uduFOh2m.d.cts → Action-z1rV4qON.d.cts} +3 -3
  4. package/dist/Action.d.cts +1 -1
  5. package/dist/Action.d.mts +1 -1
  6. package/dist/Attribute.d.mts +3 -3
  7. package/dist/{Badge-CvdUyXSH.cjs → Badge-DAGPU4-e.cjs} +1 -4
  8. package/dist/{Badge-CvdUyXSH.cjs.map → Badge-DAGPU4-e.cjs.map} +1 -1
  9. package/dist/{Badge-pq6B-3ue.mjs → Badge-DRn_r6is.mjs} +1 -4
  10. package/dist/{Badge-pq6B-3ue.mjs.map → Badge-DRn_r6is.mjs.map} +1 -1
  11. package/dist/Breadcrumb-BOxfam3E.d.cts +31 -0
  12. package/dist/Breadcrumb-On7pOpgt.d.mts +31 -0
  13. package/dist/Breadcrumb.d.cts +2 -0
  14. package/dist/Breadcrumb.d.mts +2 -0
  15. package/dist/Breadcrumbs.d.cts +20 -0
  16. package/dist/Breadcrumbs.d.mts +20 -0
  17. package/dist/{Button-DcTUxRNI.d.mts → Button-DXsYU5qU.d.mts} +2 -2
  18. package/dist/Button.d.mts +1 -1
  19. package/dist/CalendarBase.d.mts +1 -1
  20. package/dist/{Card-CrQL0hXm.d.cts → Card-DnmrsQWi.d.cts} +2 -2
  21. package/dist/{Card-YzGS3nQI.d.mts → Card-IOBCsfke.d.mts} +3 -3
  22. package/dist/Card.d.cts +1 -1
  23. package/dist/Card.d.mts +1 -1
  24. package/dist/Card2.d.cts +1 -1
  25. package/dist/Card2.d.mts +1 -1
  26. package/dist/{Checkbox-UWdk4pqb.mjs → Checkbox-BghGF-iW.mjs} +2 -2
  27. package/dist/{Checkbox-UWdk4pqb.mjs.map → Checkbox-BghGF-iW.mjs.map} +1 -1
  28. package/dist/{Checkbox-BmjK0Wac.d.cts → Checkbox-DfI0Xp3y.d.cts} +1 -1
  29. package/dist/{Checkbox-B83WfsOZ.cjs → Checkbox-DhxpxzGp.cjs} +2 -2
  30. package/dist/{Checkbox-B83WfsOZ.cjs.map → Checkbox-DhxpxzGp.cjs.map} +1 -1
  31. package/dist/{Checkbox-Bc2kzl9q.d.mts → Checkbox-MUC37dLY.d.mts} +1 -1
  32. package/dist/Checkbox.d.cts +1 -1
  33. package/dist/Checkbox.d.mts +1 -1
  34. package/dist/CheckboxGroupField.d.cts +1 -1
  35. package/dist/CheckboxGroupField.d.mts +1 -1
  36. package/dist/{Combobox-R3_NDBi3.cjs → Combobox-4Bi9-N1p.cjs} +12 -7
  37. package/dist/Combobox-4Bi9-N1p.cjs.map +1 -0
  38. package/dist/{Combobox-Dx1u-L1A.d.cts → Combobox-5rAFq_52.d.cts} +3 -3
  39. package/dist/{Combobox-DtD1XXaf.d.mts → Combobox-Bedo_GIj.d.mts} +3 -3
  40. package/dist/{Combobox-I44W5oX0.mjs → Combobox-CeKMrlxy.mjs} +12 -7
  41. package/dist/Combobox-CeKMrlxy.mjs.map +1 -0
  42. package/dist/Combobox.d.cts +2 -2
  43. package/dist/Combobox.d.mts +2 -2
  44. package/dist/{ComboboxBase-d98GJD-k.d.cts → ComboboxBase-BoR9DVwe.d.cts} +6 -5
  45. package/dist/{ComboboxBase-sRVxlTJw.d.mts → ComboboxBase-DGZUdsQa.d.mts} +8 -7
  46. package/dist/ComboboxBase.d.cts +1 -1
  47. package/dist/ComboboxBase.d.mts +1 -1
  48. package/dist/{ComboboxMultiSelect-CRHf5TI-.d.cts → ComboboxMultiSelect-CnI6sFAF.d.cts} +2 -2
  49. package/dist/{ComboboxMultiSelect-CdLQDBMN.d.mts → ComboboxMultiSelect-DMWPiBrE.d.mts} +2 -2
  50. package/dist/ComboboxMultiSelect.d.cts +1 -1
  51. package/dist/ComboboxMultiSelect.d.mts +1 -1
  52. package/dist/{ComboboxSingleSelect-CxiQ2o6t.d.mts → ComboboxSingleSelect-CcppU_hq.d.mts} +4 -4
  53. package/dist/{ComboboxSingleSelect-DvK8QioK.d.cts → ComboboxSingleSelect-Japejm0g.d.cts} +4 -4
  54. package/dist/ComboboxSingleSelect.d.cts +1 -1
  55. package/dist/ComboboxSingleSelect.d.mts +1 -1
  56. package/dist/{CompactBar-k-rhZ5Z-.d.mts → CompactBar-2cpJD7qg.d.mts} +3 -3
  57. package/dist/{CompactBar-ODUl2Q6G.d.cts → CompactBar-DTsGo1zU.d.cts} +3 -3
  58. package/dist/CompactBar.d.cts +1 -1
  59. package/dist/CompactBar.d.mts +1 -1
  60. package/dist/{ConfigFormGroup-_yCksmZo.mjs → ConfigFormGroup-DISUwz5j.mjs} +2 -2
  61. package/dist/{ConfigFormGroup-_yCksmZo.mjs.map → ConfigFormGroup-DISUwz5j.mjs.map} +1 -1
  62. package/dist/{ConfigFormGroup-BhO9nm3P.cjs → ConfigFormGroup-DVRhkS2L.cjs} +2 -2
  63. package/dist/{ConfigFormGroup-BhO9nm3P.cjs.map → ConfigFormGroup-DVRhkS2L.cjs.map} +1 -1
  64. package/dist/{ControlBar-oT-I2y6E.d.cts → ControlBar-BGmXymCB.d.cts} +2 -2
  65. package/dist/{ControlBar-9m-DNImB.d.mts → ControlBar-DXyl1gjc.d.mts} +2 -2
  66. package/dist/ControlBar.d.cts +1 -1
  67. package/dist/ControlBar.d.mts +1 -1
  68. package/dist/DataTable.d.cts +3 -3
  69. package/dist/DataTable.d.mts +3 -3
  70. package/dist/DateField.d.cts +1 -1
  71. package/dist/DateField.d.mts +1 -1
  72. package/dist/DatePicker.d.cts +1 -1
  73. package/dist/DatePicker.d.mts +1 -1
  74. package/dist/DateRangePicker.d.cts +6 -1
  75. package/dist/DateRangePicker.d.mts +6 -1
  76. package/dist/{DropdownButton-BS1QfVX_.mjs → DropdownButton-B397h6ka.mjs} +2 -2
  77. package/dist/{DropdownButton-BS1QfVX_.mjs.map → DropdownButton-B397h6ka.mjs.map} +1 -1
  78. package/dist/{DropdownButton-Dpiy5v-R.cjs → DropdownButton-Du6dwZVL.cjs} +2 -2
  79. package/dist/{DropdownButton-Dpiy5v-R.cjs.map → DropdownButton-Du6dwZVL.cjs.map} +1 -1
  80. package/dist/DropdownButton.d.cts +1 -1
  81. package/dist/DropdownButton.d.mts +2 -2
  82. package/dist/{DropdownMenu-COkpUmIO.d.mts → DropdownMenu-5qIgQ14A.d.mts} +2 -2
  83. package/dist/{DropdownMenu-CeqZAxjs.cjs → DropdownMenu-CfJxgWN5.cjs} +2 -2
  84. package/dist/{DropdownMenu-CeqZAxjs.cjs.map → DropdownMenu-CfJxgWN5.cjs.map} +1 -1
  85. package/dist/{DropdownMenu-D1E1jpZu.d.cts → DropdownMenu-FIYz6oAo.d.cts} +2 -2
  86. package/dist/{DropdownMenu-cN_AnKAT.mjs → DropdownMenu-cnkoGc7C.mjs} +2 -2
  87. package/dist/{DropdownMenu-cN_AnKAT.mjs.map → DropdownMenu-cnkoGc7C.mjs.map} +1 -1
  88. package/dist/DropdownMenu.d.cts +1 -1
  89. package/dist/DropdownMenu.d.mts +1 -1
  90. package/dist/{ErrorProps-DBw1_Z0a.d.mts → ErrorProps-BosuK6zJ.d.cts} +1 -1
  91. package/dist/{ErrorProps-DLdVsYlk.d.cts → ErrorProps-iEj4BIVA.d.mts} +1 -1
  92. package/dist/ErrorProps.d.cts +1 -1
  93. package/dist/ErrorProps.d.mts +1 -1
  94. package/dist/{FormControl-fK4HA_yF.mjs → FormControl-ArDcvmir.mjs} +3 -3
  95. package/dist/{FormControl-fK4HA_yF.mjs.map → FormControl-ArDcvmir.mjs.map} +1 -1
  96. package/dist/{FormControl-OqBTbSwv.d.cts → FormControl-BrsML00L.d.cts} +2 -2
  97. package/dist/{FormControl-DjxkL5Ft.cjs → FormControl-Czt95h2L.cjs} +3 -3
  98. package/dist/{FormControl-DjxkL5Ft.cjs.map → FormControl-Czt95h2L.cjs.map} +1 -1
  99. package/dist/{FormControl-vfFzrYhv.d.mts → FormControl-DnsC4vTX.d.mts} +2 -2
  100. package/dist/FormControl.d.cts +1 -1
  101. package/dist/FormControl.d.mts +1 -1
  102. package/dist/FormControlLabel.d.mts +1 -1
  103. package/dist/{FormField-24UPuoL6.d.mts → FormField-BddCs6P0.d.mts} +2 -2
  104. package/dist/{FormField-Cqwi_PyR.d.cts → FormField-DoSXvnJ3.d.cts} +2 -2
  105. package/dist/FormField.d.cts +1 -1
  106. package/dist/FormField.d.mts +1 -1
  107. package/dist/{Header-WNGlG541.d.mts → Header-B-Us54dR.d.mts} +1 -1
  108. package/dist/{Header-D8oDtnIL.d.cts → Header-CkZvzbzL.d.cts} +1 -1
  109. package/dist/Header.d.cts +1 -1
  110. package/dist/Header.d.mts +1 -1
  111. package/dist/{HelperTooltip-oXdyk2At.d.cts → HelperTooltip-C1CYMpJP.d.cts} +2 -2
  112. package/dist/{HelperTooltip-Bd5pQLqL.d.mts → HelperTooltip-CofPKyZh.d.mts} +2 -2
  113. package/dist/HelperTooltip.d.cts +1 -1
  114. package/dist/HelperTooltip.d.mts +1 -1
  115. package/dist/{HoverCopyableField-DyW2iZuo.cjs → HoverCopyableField-B_WNB7Qp.cjs} +8 -8
  116. package/dist/HoverCopyableField-B_WNB7Qp.cjs.map +1 -0
  117. package/dist/{HoverCopyableField-DBkYvwii.mjs → HoverCopyableField-DR575ayC.mjs} +4 -4
  118. package/dist/HoverCopyableField-DR575ayC.mjs.map +1 -0
  119. package/dist/{IconButton-DggxojBH.d.mts → IconButton-Dnnlf9uO.d.mts} +2 -2
  120. package/dist/IconButton.d.mts +1 -1
  121. package/dist/ImageTile.d.cts +1 -1
  122. package/dist/ImageTile.d.mts +1 -1
  123. package/dist/InlineCombobox.d.mts +5 -2
  124. package/dist/InlineInput.d.mts +4 -1
  125. package/dist/{Input-DW7oacjc.d.mts → Input-4KeYlOWM.d.mts} +4 -4
  126. package/dist/{Input-DQS-BEym.cjs → Input-BDLUq-pK.cjs} +2 -2
  127. package/dist/{Input-DQS-BEym.cjs.map → Input-BDLUq-pK.cjs.map} +1 -1
  128. package/dist/{Input-XppkvfUf.d.cts → Input-CEcTvtX2.d.cts} +2 -2
  129. package/dist/{Input-Bl7633Ux.mjs → Input-PWfwMSJ7.mjs} +2 -2
  130. package/dist/{Input-Bl7633Ux.mjs.map → Input-PWfwMSJ7.mjs.map} +1 -1
  131. package/dist/Input.d.cts +1 -1
  132. package/dist/Input.d.mts +1 -1
  133. package/dist/{InputProps-DQpb2_E3.d.mts → InputProps-CTLG2Tr0.d.mts} +2 -2
  134. package/dist/{InputProps-7rEMxBED.d.cts → InputProps-DNlik5IZ.d.cts} +2 -2
  135. package/dist/InputProps.d.cts +1 -1
  136. package/dist/InputProps.d.mts +1 -1
  137. package/dist/{ListBox-B4uoo_PT.cjs → ListBox-BCscLcYL.cjs} +7 -7
  138. package/dist/ListBox-BCscLcYL.cjs.map +1 -0
  139. package/dist/{ListBox-B7sbubm5.mjs → ListBox-CDNOJmvz.mjs} +7 -7
  140. package/dist/{ListBox-B4uoo_PT.cjs.map → ListBox-CDNOJmvz.mjs.map} +1 -1
  141. package/dist/{ListBox-CVvKa5sc.d.mts → ListBox-DZIAlPbc.d.mts} +3 -3
  142. package/dist/{ListBox-DeVmbXeC.d.cts → ListBox-WyZvseo5.d.cts} +2 -2
  143. package/dist/ListBox.d.cts +1 -1
  144. package/dist/ListBox.d.mts +1 -1
  145. package/dist/ListBoxField.d.cts +2 -2
  146. package/dist/ListBoxField.d.mts +2 -2
  147. package/dist/{LoadingShimmer-b430vgof.mjs → LoadingShimmer-Bu6KtQ06.mjs} +1 -1
  148. package/dist/{LoadingShimmer-b430vgof.mjs.map → LoadingShimmer-Bu6KtQ06.mjs.map} +1 -1
  149. package/dist/{LoadingShimmer-uG2UzYQd.cjs → LoadingShimmer-CUjbAqGd.cjs} +1 -1
  150. package/dist/{LoadingShimmer-uG2UzYQd.cjs.map → LoadingShimmer-CUjbAqGd.cjs.map} +1 -1
  151. package/dist/LoadingShimmer.d.mts +1 -1
  152. package/dist/MaskedInput.d.cts +2 -2
  153. package/dist/MaskedInput.d.mts +1 -1
  154. package/dist/{Menu-CSgCXX0k.d.mts → Menu-BJ5c7HGD.d.mts} +2 -2
  155. package/dist/{Menu-C_NOsHAm.d.cts → Menu-BKMxOXkj.d.cts} +3 -3
  156. package/dist/{Menu-BLbEcodU.cjs → Menu-BXic-30n.cjs} +1 -1
  157. package/dist/{Menu-BLbEcodU.cjs.map → Menu-BXic-30n.cjs.map} +1 -1
  158. package/dist/{Menu-BbSyWxFD.mjs → Menu-CVuFAxl2.mjs} +1 -1
  159. package/dist/{Menu-BbSyWxFD.mjs.map → Menu-CVuFAxl2.mjs.map} +1 -1
  160. package/dist/Menu.d.cts +1 -1
  161. package/dist/Menu.d.mts +1 -1
  162. package/dist/Modal.d.cts +10 -5
  163. package/dist/Modal.d.mts +11 -6
  164. package/dist/{PageSelector-mn6q4SKY.d.mts → PageSelector-CMoV-cHa.d.mts} +3 -3
  165. package/dist/{PageSelector-COqR1tdA.d.cts → PageSelector-DoROR_Uh.d.cts} +3 -3
  166. package/dist/PageSelector.d.cts +1 -1
  167. package/dist/PageSelector.d.mts +1 -1
  168. package/dist/{Pagination-CeoHVtYD.d.cts → Pagination-B97xQ-Wk.d.cts} +2 -2
  169. package/dist/{Pagination-F8ofIWnG.mjs → Pagination-Cj08JRG9.mjs} +4 -3
  170. package/dist/{Pagination-F8ofIWnG.mjs.map → Pagination-Cj08JRG9.mjs.map} +1 -1
  171. package/dist/{Pagination-DEZFb552.cjs → Pagination-D4IVVj3S.cjs} +4 -3
  172. package/dist/Pagination-D4IVVj3S.cjs.map +1 -0
  173. package/dist/{Pagination-BUjpYIwq.d.mts → Pagination-QWNK_hH7.d.mts} +2 -2
  174. package/dist/Pagination.d.cts +1 -1
  175. package/dist/Pagination.d.mts +1 -1
  176. package/dist/{Pii-B_gBVAak.mjs → Pii-Bxh6_R4T.mjs} +1 -1
  177. package/dist/{Pii-B_gBVAak.mjs.map → Pii-Bxh6_R4T.mjs.map} +1 -1
  178. package/dist/{Pii--c8IxKI0.cjs → Pii-D-Ry7L0t.cjs} +1 -1
  179. package/dist/{Pii--c8IxKI0.cjs.map → Pii-D-Ry7L0t.cjs.map} +1 -1
  180. package/dist/{Popover-jHZICnQt.cjs → Popover-BAv7BujW.cjs} +1 -1
  181. package/dist/{Popover-jHZICnQt.cjs.map → Popover-BAv7BujW.cjs.map} +1 -1
  182. package/dist/{Popover-D4_aqKlm.mjs → Popover-D0QY5f-J.mjs} +1 -1
  183. package/dist/{Popover-D4_aqKlm.mjs.map → Popover-D0QY5f-J.mjs.map} +1 -1
  184. package/dist/{PseudoClassProps--MiDp2l2.d.mts → PseudoClassProps-ySXCGUEQ.d.mts} +1 -1
  185. package/dist/PseudoClassProps.d.mts +1 -1
  186. package/dist/{Radio-DnnJl87b.mjs → Radio-C9DevagH.mjs} +2 -2
  187. package/dist/{Radio-DnnJl87b.mjs.map → Radio-C9DevagH.mjs.map} +1 -1
  188. package/dist/{Radio-BN9FLRHy.cjs → Radio-nw846eRv.cjs} +2 -2
  189. package/dist/{Radio-BN9FLRHy.cjs.map → Radio-nw846eRv.cjs.map} +1 -1
  190. package/dist/{RadioGroup-BDHhFlmy.mjs → RadioGroup-B3hRbIWF.mjs} +2 -2
  191. package/dist/{RadioGroup-BDHhFlmy.mjs.map → RadioGroup-B3hRbIWF.mjs.map} +1 -1
  192. package/dist/{RadioGroup-BDO3pTgP.d.cts → RadioGroup-D_H1B7JV.d.cts} +1 -1
  193. package/dist/{RadioGroup-D28hdlhz.cjs → RadioGroup-DmGVJCgT.cjs} +2 -2
  194. package/dist/{RadioGroup-D28hdlhz.cjs.map → RadioGroup-DmGVJCgT.cjs.map} +1 -1
  195. package/dist/{RadioGroup-DfhvXpi3.d.mts → RadioGroup-nhMXEbCx.d.mts} +1 -1
  196. package/dist/RadioGroup.d.cts +1 -1
  197. package/dist/RadioGroup.d.mts +1 -1
  198. package/dist/{SearchInput-B6d2Qyzb.d.cts → SearchInput-CAHYPQVX.d.cts} +2 -2
  199. package/dist/{SearchInput-2lsv5_R6.d.mts → SearchInput-s6qGC2WZ.d.mts} +2 -2
  200. package/dist/SearchInput.d.cts +1 -1
  201. package/dist/SearchInput.d.mts +1 -1
  202. package/dist/Section.d.mts +1 -1
  203. package/dist/{SectionHeading-BLDimf5d.d.mts → SectionHeading-CDBQ4m9E.d.mts} +2 -2
  204. package/dist/{SectionHeading-DZyfNPn0.d.cts → SectionHeading-D-L4uPoX.d.cts} +2 -2
  205. package/dist/SectionHeading.d.cts +1 -1
  206. package/dist/SectionHeading.d.mts +1 -1
  207. package/dist/{SegmentedControl-pRkMcMXe.mjs → SegmentedControl-B1ZLgu61.mjs} +2 -2
  208. package/dist/{SegmentedControl-pRkMcMXe.mjs.map → SegmentedControl-B1ZLgu61.mjs.map} +1 -1
  209. package/dist/{SegmentedControl-1QD2zH3l.d.mts → SegmentedControl-BYuXohIp.d.cts} +1 -1
  210. package/dist/{SegmentedControl-C51htGBp.d.cts → SegmentedControl-CE845gnm.d.mts} +1 -1
  211. package/dist/{SegmentedControl-DTkFgjac.cjs → SegmentedControl-CIJz0oxY.cjs} +2 -2
  212. package/dist/{SegmentedControl-DTkFgjac.cjs.map → SegmentedControl-CIJz0oxY.cjs.map} +1 -1
  213. package/dist/SegmentedControl.d.cts +1 -1
  214. package/dist/SegmentedControl.d.mts +1 -1
  215. package/dist/{Select-BysJW9mH.d.mts → Select-BMEwCfbv.d.mts} +3 -3
  216. package/dist/{Select-Fg2z5J-p.mjs → Select-ByTgXOlU.mjs} +4 -4
  217. package/dist/{Select-Fg2z5J-p.mjs.map → Select-ByTgXOlU.mjs.map} +1 -1
  218. package/dist/{Select-CowngLd7.cjs → Select-C65bfYeT.cjs} +4 -4
  219. package/dist/{Select-CowngLd7.cjs.map → Select-C65bfYeT.cjs.map} +1 -1
  220. package/dist/{Select-XN23Ui_j.d.cts → Select-NcaURrGZ.d.cts} +3 -3
  221. package/dist/Select.d.cts +1 -1
  222. package/dist/Select.d.mts +1 -1
  223. package/dist/{Spinner-DaSlM4kU.cjs → Spinner-B6bx70yR.cjs} +1 -1
  224. package/dist/{Spinner-DaSlM4kU.cjs.map → Spinner-B6bx70yR.cjs.map} +1 -1
  225. package/dist/{Spinner-D9-u_5zS.mjs → Spinner-BEPF42RW.mjs} +1 -1
  226. package/dist/{Spinner-D9-u_5zS.mjs.map → Spinner-BEPF42RW.mjs.map} +1 -1
  227. package/dist/{Stack-B5VYkPBe.d.cts → Stack-D979gYU9.d.cts} +1 -1
  228. package/dist/{Stack-Du7tLSPC.d.mts → Stack-UMhJ6F_3.d.mts} +1 -1
  229. package/dist/Stack.d.cts +1 -1
  230. package/dist/Stack.d.mts +1 -1
  231. package/dist/{Sticker-XfyoDEod.d.mts → Sticker-DjF9VJQB.d.mts} +4 -4
  232. package/dist/{Sticker-D9HjFQ6e.d.cts → Sticker-N8XZnv7M.d.cts} +3 -3
  233. package/dist/Sticker.d.cts +1 -1
  234. package/dist/Sticker.d.mts +1 -1
  235. package/dist/Tab.d.mts +1 -1
  236. package/dist/{TabBar-D8WCGYd5.cjs → TabBar-BpHMYvNb.cjs} +4 -2
  237. package/dist/TabBar-BpHMYvNb.cjs.map +1 -0
  238. package/dist/{TabBar-CAv10XAF.mjs → TabBar-ByusqAXF.mjs} +4 -2
  239. package/dist/TabBar-ByusqAXF.mjs.map +1 -0
  240. package/dist/TabBarIconButton.d.mts +1 -1
  241. package/dist/{Table-B3FJsvXP.cjs → Table-C9rjUVpn.cjs} +2 -2
  242. package/dist/{Table-B3FJsvXP.cjs.map → Table-C9rjUVpn.cjs.map} +1 -1
  243. package/dist/{Table-CGtyWI6V.mjs → Table-CNs8p8hL.mjs} +2 -2
  244. package/dist/{Table-CGtyWI6V.mjs.map → Table-CNs8p8hL.mjs.map} +1 -1
  245. package/dist/{Table-D4SMuVIR.d.cts → Table-D3nyiZt0.d.mts} +1 -1
  246. package/dist/{Table-C8D4lpSa.d.mts → Table-DJZtluW3.d.cts} +1 -1
  247. package/dist/Table.d.cts +1 -1
  248. package/dist/Table.d.mts +1 -1
  249. package/dist/{TableBody-0cd50RuX.d.mts → TableBody-BFPF07n4.d.cts} +1 -1
  250. package/dist/{TableBody-BLmn5h3y.d.cts → TableBody-DpRjZgzU.d.mts} +1 -1
  251. package/dist/TableBody.d.cts +1 -1
  252. package/dist/TableBody.d.mts +1 -1
  253. package/dist/{TableBox-CPCWzwSl.mjs → TableBox-DIJffyts.mjs} +227 -59
  254. package/dist/TableBox-DIJffyts.mjs.map +1 -0
  255. package/dist/{TableBox-D_B9atn2.cjs → TableBox-DO-yToJk.cjs} +226 -58
  256. package/dist/TableBox-DO-yToJk.cjs.map +1 -0
  257. package/dist/TableBox.d.cts +2 -2
  258. package/dist/TableBox.d.mts +2 -2
  259. package/dist/{TableBoxCell-CEvOcGYa.d.mts → TableBoxCell-D1bjYv7b.d.mts} +27 -10
  260. package/dist/{TableBoxCell-DJz423uN.d.cts → TableBoxCell-DOQ8PnAT.d.cts} +27 -10
  261. package/dist/TableBoxCell.d.cts +1 -1
  262. package/dist/TableBoxCell.d.mts +1 -1
  263. package/dist/TableBoxField.d.cts +20 -5
  264. package/dist/TableBoxField.d.mts +19 -5
  265. package/dist/{TableBoxRow-CZwVgei6.d.cts → TableBoxRow-BUK5RjRA.d.cts} +12 -3
  266. package/dist/{TableBoxRow-LyHvITwZ.d.mts → TableBoxRow-CTR14HJF.d.mts} +12 -3
  267. package/dist/TableBoxRow.d.cts +1 -1
  268. package/dist/TableBoxRow.d.mts +1 -1
  269. package/dist/{TableBoxRowActions-C8SAxrYG.d.mts → TableBoxRowActions-BoMt5d0b.d.mts} +2 -2
  270. package/dist/{TableBoxRowActions-VDAOxNDG.d.cts → TableBoxRowActions-CKgUEH38.d.cts} +2 -2
  271. package/dist/TableBoxRowActions.d.cts +1 -1
  272. package/dist/TableBoxRowActions.d.mts +1 -1
  273. package/dist/TableBoxRowContext.d.mts +5 -3
  274. package/dist/TableCell.d.cts +1 -1
  275. package/dist/TableCell.d.mts +1 -1
  276. package/dist/{TableControls-B4gpAvl7.d.mts → TableControls-BZyiqk9V.d.mts} +3 -3
  277. package/dist/{TableControls-BG0OKwjj.d.cts → TableControls-Bkd3jhC1.d.cts} +3 -3
  278. package/dist/{TableControls-B2ZsNlr6.mjs → TableControls-BkdSeQvt.mjs} +8 -8
  279. package/dist/{TableControls-B2ZsNlr6.mjs.map → TableControls-BkdSeQvt.mjs.map} +1 -1
  280. package/dist/{TableControls-B7QEAzru.cjs → TableControls-DcbnNqeK.cjs} +8 -8
  281. package/dist/{TableControls-B7QEAzru.cjs.map → TableControls-DcbnNqeK.cjs.map} +1 -1
  282. package/dist/TableControls.d.cts +1 -1
  283. package/dist/TableControls.d.mts +1 -1
  284. package/dist/{TableControlsContext-NdzzGevw.d.mts → TableControlsContext-CleTWT7z.d.mts} +2 -2
  285. package/dist/{TableControlsContext-CanIAaLW.d.cts → TableControlsContext-D6XpuRVw.d.cts} +2 -2
  286. package/dist/TableControlsContext.d.cts +1 -1
  287. package/dist/TableControlsContext.d.mts +1 -1
  288. package/dist/{TableHead-CuHNOeCj.d.mts → TableHead-CTsZNRJm.d.cts} +1 -1
  289. package/dist/{TableHead-roexW17v.d.cts → TableHead-wl78HqPT.d.mts} +1 -1
  290. package/dist/TableHead.d.cts +1 -1
  291. package/dist/TableHead.d.mts +1 -1
  292. package/dist/{TableHeaderCell-Cflho9R2.d.mts → TableHeaderCell-B2yiOw4w.d.mts} +1 -1
  293. package/dist/{TableHeaderCell-BTGuqVXy.d.cts → TableHeaderCell-UoY92mzR.d.cts} +1 -1
  294. package/dist/TableHeaderCell.d.cts +1 -1
  295. package/dist/TableHeaderCell.d.mts +1 -1
  296. package/dist/{TableLayout-BvVsuUVb.d.cts → TableLayout-GyRS-Awa.d.cts} +1 -1
  297. package/dist/{TableLayout-D9BGrjRs.d.mts → TableLayout-_TWUnffx.d.mts} +1 -1
  298. package/dist/TableLayout.d.cts +1 -1
  299. package/dist/TableLayout.d.mts +1 -1
  300. package/dist/{TableRow-BfGJSGZH.d.cts → TableRow-BVzduO4G.d.cts} +1 -1
  301. package/dist/{TableRow-CjQmDmfx.d.mts → TableRow-C-faHbkL.d.mts} +2 -2
  302. package/dist/TableRow.d.cts +1 -1
  303. package/dist/TableRow.d.mts +1 -1
  304. package/dist/TableTH.d.cts +1 -1
  305. package/dist/TableTH.d.mts +1 -1
  306. package/dist/{TableViewConfigurationDropdown-DMeFkVUa.d.mts → TableViewConfigurationDropdown-D2TM2wCv.d.mts} +2 -2
  307. package/dist/{TableViewConfigurationDropdown-BaQ1IsYM.d.cts → TableViewConfigurationDropdown-u3-prEHJ.d.cts} +2 -2
  308. package/dist/TableViewConfigurationDropdown.d.cts +1 -1
  309. package/dist/TableViewConfigurationDropdown.d.mts +1 -1
  310. package/dist/{Text-CPd0r0w2.d.mts → Text-D3FXEnG6.d.mts} +3 -3
  311. package/dist/Text.d.mts +1 -1
  312. package/dist/{TextArea-CJJlw3rV.mjs → TextArea-DIPeBLkr.mjs} +2 -2
  313. package/dist/{TextArea-CJJlw3rV.mjs.map → TextArea-DIPeBLkr.mjs.map} +1 -1
  314. package/dist/{TextArea-p3oek3Zq.cjs → TextArea-DVHi0K7M.cjs} +2 -2
  315. package/dist/{TextArea-p3oek3Zq.cjs.map → TextArea-DVHi0K7M.cjs.map} +1 -1
  316. package/dist/{TextArea-Dl9_Zizx.d.cts → TextArea-KpDoXg-5.d.cts} +2 -2
  317. package/dist/{TextArea-J1MD_8rK.d.mts → TextArea-weASn4Hq.d.mts} +2 -2
  318. package/dist/TextArea.d.cts +1 -1
  319. package/dist/TextArea.d.mts +1 -1
  320. package/dist/{TextUnderlineTooltip-D8GFsk5C.d.mts → TextUnderlineTooltip-Cep5cgEQ.d.mts} +2 -2
  321. package/dist/{TextUnderlineTooltip-BDMs4iXn.d.cts → TextUnderlineTooltip-cSMjZOuB.d.cts} +2 -2
  322. package/dist/TextUnderlineTooltip.d.cts +1 -1
  323. package/dist/TextUnderlineTooltip.d.mts +1 -1
  324. package/dist/Tile.d.cts +1 -1
  325. package/dist/Tile.d.mts +1 -1
  326. package/dist/Toast.d.cts +1 -1
  327. package/dist/Toast.d.mts +1 -1
  328. package/dist/{Toggle-CY67yh4T.d.mts → Toggle-BQCOJZjZ.d.mts} +1 -1
  329. package/dist/{Toggle-7o-n5vF6.cjs → Toggle-CTtrhzsV.cjs} +2 -2
  330. package/dist/{Toggle-7o-n5vF6.cjs.map → Toggle-CTtrhzsV.cjs.map} +1 -1
  331. package/dist/{Toggle-Dw4hisXm.d.cts → Toggle-CYQE1Nk_.d.cts} +1 -1
  332. package/dist/{Toggle-DOo0cLmI.mjs → Toggle-CfjUQlcK.mjs} +2 -2
  333. package/dist/{Toggle-DOo0cLmI.mjs.map → Toggle-CfjUQlcK.mjs.map} +1 -1
  334. package/dist/Toggle.d.cts +1 -1
  335. package/dist/Toggle.d.mts +1 -1
  336. package/dist/{Tooltip-CE1oH6Iz.d.cts → Tooltip-BhGRP9QA.d.cts} +2 -2
  337. package/dist/{Tooltip-DtWJO_kU.d.mts → Tooltip-DRgufW3i.d.mts} +2 -2
  338. package/dist/Tooltip.d.cts +1 -1
  339. package/dist/Tooltip.d.mts +1 -1
  340. package/dist/{TruncatedText-BBoWmFii.d.mts → TruncatedText-Cy8NpHzm.d.mts} +1 -1
  341. package/dist/{TruncatedText-DMpR-yaJ.d.cts → TruncatedText-D8f3AiBL.d.cts} +1 -1
  342. package/dist/components/Attribute/index.cjs +2 -2
  343. package/dist/components/Attribute/index.mjs +4 -4
  344. package/dist/components/Attribute/index.mjs.map +1 -1
  345. package/dist/components/Badge/index.cjs +1 -1
  346. package/dist/components/Badge/index.mjs +1 -1
  347. package/dist/components/Breadcrumbs/index.cjs +275 -0
  348. package/dist/components/Breadcrumbs/index.cjs.map +1 -0
  349. package/dist/components/Breadcrumbs/index.d.cts +2 -0
  350. package/dist/components/Breadcrumbs/index.d.mts +2 -0
  351. package/dist/components/Breadcrumbs/index.mjs +268 -0
  352. package/dist/components/Breadcrumbs/index.mjs.map +1 -0
  353. package/dist/components/Button/index.d.mts +2 -2
  354. package/dist/components/ButtonGroup/index.cjs +1 -1
  355. package/dist/components/ButtonGroup/index.mjs +1 -1
  356. package/dist/components/Card/index.d.cts +2 -2
  357. package/dist/components/Card/index.d.mts +2 -2
  358. package/dist/components/CardV2/index.cjs +6 -23
  359. package/dist/components/CardV2/index.cjs.map +1 -1
  360. package/dist/components/CardV2/index.d.cts +1 -1
  361. package/dist/components/CardV2/index.d.mts +1 -1
  362. package/dist/components/CardV2/index.mjs +4 -21
  363. package/dist/components/CardV2/index.mjs.map +1 -1
  364. package/dist/components/Checkbox/index.cjs +1 -1
  365. package/dist/components/Checkbox/index.d.cts +1 -1
  366. package/dist/components/Checkbox/index.d.mts +1 -1
  367. package/dist/components/Checkbox/index.mjs +1 -1
  368. package/dist/components/Combobox/index.cjs +1 -1
  369. package/dist/components/Combobox/index.d.cts +2 -2
  370. package/dist/components/Combobox/index.d.mts +2 -2
  371. package/dist/components/Combobox/index.mjs +1 -1
  372. package/dist/components/ConfigFormGroup/index.cjs +2 -2
  373. package/dist/components/ConfigFormGroup/index.mjs +2 -2
  374. package/dist/components/DataTable/TableControls/index.cjs +1 -1
  375. package/dist/components/DataTable/TableControls/index.d.cts +5 -5
  376. package/dist/components/DataTable/TableControls/index.d.mts +5 -5
  377. package/dist/components/DataTable/TableControls/index.mjs +1 -1
  378. package/dist/components/DataTable/index.cjs +8 -9
  379. package/dist/components/DataTable/index.cjs.map +1 -1
  380. package/dist/components/DataTable/index.mjs +8 -9
  381. package/dist/components/DataTable/index.mjs.map +1 -1
  382. package/dist/components/DataTable/types.d.cts +2 -2
  383. package/dist/components/DataTable/types.d.mts +2 -2
  384. package/dist/components/DatePicker/index.cjs +54 -23
  385. package/dist/components/DatePicker/index.cjs.map +1 -1
  386. package/dist/components/DatePicker/index.mjs +54 -23
  387. package/dist/components/DatePicker/index.mjs.map +1 -1
  388. package/dist/components/DropdownButton/index.cjs +1 -1
  389. package/dist/components/DropdownButton/index.mjs +1 -1
  390. package/dist/components/DropdownMenu/index.cjs +1 -1
  391. package/dist/components/DropdownMenu/index.d.cts +1 -1
  392. package/dist/components/DropdownMenu/index.d.mts +1 -1
  393. package/dist/components/DropdownMenu/index.mjs +1 -1
  394. package/dist/components/FormControl/index.cjs +2 -2
  395. package/dist/components/FormControl/index.d.cts +2 -2
  396. package/dist/components/FormControl/index.d.mts +2 -2
  397. package/dist/components/FormControl/index.mjs +2 -2
  398. package/dist/components/FormField/index.cjs +44 -26
  399. package/dist/components/FormField/index.cjs.map +1 -1
  400. package/dist/components/FormField/index.d.cts +3 -3
  401. package/dist/components/FormField/index.d.mts +3 -3
  402. package/dist/components/FormField/index.mjs +45 -27
  403. package/dist/components/FormField/index.mjs.map +1 -1
  404. package/dist/components/HoverCopyableField/index.cjs +1 -1
  405. package/dist/components/HoverCopyableField/index.mjs +1 -1
  406. package/dist/components/ImageTile/index.cjs +3 -3
  407. package/dist/components/ImageTile/index.mjs +3 -3
  408. package/dist/components/Input/index.cjs +1 -1
  409. package/dist/components/Input/index.d.cts +1 -1
  410. package/dist/components/Input/index.d.mts +1 -1
  411. package/dist/components/Input/index.mjs +1 -1
  412. package/dist/components/ListBox/index.cjs +1 -1
  413. package/dist/components/ListBox/index.d.cts +1 -1
  414. package/dist/components/ListBox/index.d.mts +1 -1
  415. package/dist/components/ListBox/index.mjs +1 -1
  416. package/dist/components/LoadingShimmer/index.cjs +1 -1
  417. package/dist/components/LoadingShimmer/index.mjs +1 -1
  418. package/dist/components/MaskedInput/index.cjs +1 -1
  419. package/dist/components/MaskedInput/index.mjs +1 -1
  420. package/dist/components/Menu/index.cjs +1 -1
  421. package/dist/components/Menu/index.d.cts +1 -1
  422. package/dist/components/Menu/index.d.mts +1 -1
  423. package/dist/components/Menu/index.mjs +1 -1
  424. package/dist/components/Modal/index.cjs +7 -3
  425. package/dist/components/Modal/index.cjs.map +1 -1
  426. package/dist/components/Modal/index.d.cts +2 -2
  427. package/dist/components/Modal/index.d.mts +2 -2
  428. package/dist/components/Modal/index.mjs +7 -3
  429. package/dist/components/Modal/index.mjs.map +1 -1
  430. package/dist/components/Pagination/index.cjs +1 -1
  431. package/dist/components/Pagination/index.d.cts +3 -3
  432. package/dist/components/Pagination/index.d.mts +3 -3
  433. package/dist/components/Pagination/index.mjs +1 -1
  434. package/dist/components/Pii/index.cjs +1 -1
  435. package/dist/components/Pii/index.mjs +1 -1
  436. package/dist/components/Popover/index.cjs +1 -1
  437. package/dist/components/Popover/index.mjs +1 -1
  438. package/dist/components/Radio/index.cjs +1 -1
  439. package/dist/components/Radio/index.mjs +1 -1
  440. package/dist/components/RadioGroup/index.cjs +1 -1
  441. package/dist/components/RadioGroup/index.d.cts +1 -1
  442. package/dist/components/RadioGroup/index.d.mts +1 -1
  443. package/dist/components/RadioGroup/index.mjs +1 -1
  444. package/dist/components/SegmentedControl/index.cjs +1 -1
  445. package/dist/components/SegmentedControl/index.d.cts +1 -1
  446. package/dist/components/SegmentedControl/index.d.mts +1 -1
  447. package/dist/components/SegmentedControl/index.mjs +1 -1
  448. package/dist/components/Select/index.cjs +1 -1
  449. package/dist/components/Select/index.d.cts +1 -1
  450. package/dist/components/Select/index.d.mts +1 -1
  451. package/dist/components/Select/index.mjs +1 -1
  452. package/dist/components/Spinner/index.cjs +1 -1
  453. package/dist/components/Spinner/index.mjs +1 -1
  454. package/dist/components/Stack/index.d.cts +1 -1
  455. package/dist/components/Stack/index.d.mts +1 -1
  456. package/dist/components/Sticker/index.d.cts +1 -1
  457. package/dist/components/Sticker/index.d.mts +1 -1
  458. package/dist/components/TabBar/index.cjs +1 -1
  459. package/dist/components/TabBar/index.mjs +1 -1
  460. package/dist/components/Table/index.cjs +1 -1
  461. package/dist/components/Table/index.d.cts +7 -7
  462. package/dist/components/Table/index.d.mts +7 -7
  463. package/dist/components/Table/index.mjs +1 -1
  464. package/dist/components/TableBox/index.cjs +1 -1
  465. package/dist/components/TableBox/index.d.cts +2 -2
  466. package/dist/components/TableBox/index.d.mts +2 -2
  467. package/dist/components/TableBox/index.mjs +1 -1
  468. package/dist/components/Text/index.d.mts +1 -1
  469. package/dist/components/TextArea/index.cjs +1 -1
  470. package/dist/components/TextArea/index.d.cts +1 -1
  471. package/dist/components/TextArea/index.d.mts +1 -1
  472. package/dist/components/TextArea/index.mjs +1 -1
  473. package/dist/components/Toggle/index.cjs +1 -1
  474. package/dist/components/Toggle/index.d.cts +1 -1
  475. package/dist/components/Toggle/index.d.mts +1 -1
  476. package/dist/components/Toggle/index.mjs +1 -1
  477. package/dist/components/Tooltip/index.d.cts +3 -3
  478. package/dist/components/Tooltip/index.d.mts +3 -3
  479. package/dist/{constants-D5CkrHza.d.cts → constants-DVwPpTt5.d.mts} +1 -1
  480. package/dist/{constants-CnkpDWTv.d.mts → constants-kwVsjw8O.d.cts} +1 -1
  481. package/dist/constants.d.cts +1 -1
  482. package/dist/constants.d.mts +1 -1
  483. package/dist/helpers.d.cts +1 -1
  484. package/dist/helpers.d.mts +1 -1
  485. package/dist/{index-BwWgmaXZ.d.mts → index-BPnJP0jZ.d.mts} +3 -3
  486. package/dist/{index-Bp3vEph6.d.cts → index-_tQRydn9.d.cts} +3 -3
  487. package/dist/index.d.cts +1 -1
  488. package/dist/index.d.mts +1 -1
  489. package/dist/index2.d.cts +1 -1
  490. package/dist/index2.d.mts +1 -1
  491. package/dist/{input-Bm_anD8X.d.cts → input-BkzqXwn7.d.cts} +2 -2
  492. package/dist/{input-FEaQ66an.d.mts → input-DrG6mA0V.d.mts} +3 -3
  493. package/dist/inputFields.d.cts +10 -10
  494. package/dist/inputFields.d.mts +10 -10
  495. package/dist/intersperse-Gxwgpbk8.cjs +26 -0
  496. package/dist/intersperse-Gxwgpbk8.cjs.map +1 -0
  497. package/dist/intersperse-yd3oMrQl.mjs +21 -0
  498. package/dist/intersperse-yd3oMrQl.mjs.map +1 -0
  499. package/dist/lib/PDSProvider.d.mts +1 -1
  500. package/dist/lib/TruncatedText.d.cts +1 -1
  501. package/dist/lib/TruncatedText.d.mts +1 -1
  502. package/dist/lib/TruncatedTextWithTooltip.d.cts +1 -1
  503. package/dist/lib/TruncatedTextWithTooltip.d.mts +1 -1
  504. package/dist/lib/message.d.cts +1 -1
  505. package/dist/lib/message.d.mts +1 -1
  506. package/dist/lib/pseudoClass.d.mts +1 -1
  507. package/dist/{message-SITKO6JZ.d.mts → message-BfJ87aIU.d.mts} +1 -1
  508. package/dist/{message-CWEGi3Xg.d.cts → message-C2286H-r.d.cts} +1 -1
  509. package/dist/mixins/focus.d.mts +1 -1
  510. package/dist/mixins/hoverable.d.mts +2 -2
  511. package/dist/mixins/input.d.cts +1 -1
  512. package/dist/mixins/input.d.mts +1 -1
  513. package/dist/mixins/menuItem.d.mts +2 -2
  514. package/dist/mixins/text.d.mts +1 -1
  515. package/dist/{text-BEKhEWTa.d.mts → text-CtoDqqAO.d.mts} +1 -1
  516. package/dist/{theme-q9fNLtcA.d.mts → theme-Bx2sn3Lt.d.mts} +1 -1
  517. package/dist/theme.d.mts +1 -1
  518. package/dist/{types-BG21GgBe.d.cts → types-B34lbI2k.d.mts} +1 -1
  519. package/dist/{types-ChCqSD9N.d.mts → types-C_AUGurs.d.cts} +1 -1
  520. package/dist/{types-CmnKGG5I.d.cts → types-CuCT-YnX.d.cts} +1 -1
  521. package/dist/{types-DMjr-u_o.d.mts → types-DTak9UTv.d.mts} +1 -1
  522. package/dist/types.d.cts +1 -1
  523. package/dist/types.d.mts +1 -1
  524. package/dist/types2.d.cts +1 -1
  525. package/dist/types2.d.mts +1 -1
  526. package/dist/useColumnWidthLock.d.mts +2 -2
  527. package/dist/useDelayedInlineEditError.d.mts +12 -0
  528. package/dist/{useFormField-BpYf3CAW.cjs → useFormField-B98dmreO.cjs} +2 -2
  529. package/dist/{useFormField-BpYf3CAW.cjs.map → useFormField-B98dmreO.cjs.map} +1 -1
  530. package/dist/{useFormField-DLGEZ1kD.d.cts → useFormField-BE0rTBF1.d.mts} +2 -2
  531. package/dist/{useFormField-CVmt-ti2.d.mts → useFormField-CaIdE7JQ.d.cts} +2 -2
  532. package/dist/{useFormField-D0RTrPld.mjs → useFormField-eftOPiXj.mjs} +2 -2
  533. package/dist/{useFormField-D0RTrPld.mjs.map → useFormField-eftOPiXj.mjs.map} +1 -1
  534. package/dist/useFormField.d.cts +1 -1
  535. package/dist/useFormField.d.mts +1 -1
  536. package/dist/{useFormGroup-DQJdKaL9.cjs → useFormGroup-BE7v9eAj.cjs} +1 -1
  537. package/dist/{useFormGroup-DQJdKaL9.cjs.map → useFormGroup-BE7v9eAj.cjs.map} +1 -1
  538. package/dist/{useFormGroup-z0epBxXn.mjs → useFormGroup-BMukAMAd.mjs} +1 -1
  539. package/dist/{useFormGroup-z0epBxXn.mjs.map → useFormGroup-BMukAMAd.mjs.map} +1 -1
  540. package/dist/{useTableBoxDragAndDrop-DXqy_AMP.d.mts → useTableBoxDragAndDrop--QBq2FQh.d.cts} +1 -1
  541. package/dist/{useTableBoxDragAndDrop-hrESBhKb.d.cts → useTableBoxDragAndDrop-BTtv9PEt.d.mts} +1 -1
  542. package/dist/useTableBoxDragAndDrop.d.cts +1 -1
  543. package/dist/useTableBoxDragAndDrop.d.mts +1 -1
  544. package/dist/useTruncation.d.mts +1 -1
  545. package/dist/{utilities-C8Jf-xpi.d.cts → utilities-DqO6Sh94.d.cts} +1 -1
  546. package/dist/{utilities-DT-Hh45R.d.mts → utilities-SMbDe8oK.d.mts} +1 -1
  547. package/dist/utilities.d.cts +1 -1
  548. package/dist/utilities.d.mts +1 -1
  549. package/dist/variables/spacing.cjs +1 -1
  550. package/dist/variables/spacing.cjs.map +1 -1
  551. package/dist/variables/spacing.d.cts +1 -1
  552. package/dist/variables/spacing.d.mts +1 -1
  553. package/dist/variables/spacing.mjs +1 -1
  554. package/dist/variables/spacing.mjs.map +1 -1
  555. package/package.json +11 -2
  556. package/dist/Combobox-I44W5oX0.mjs.map +0 -1
  557. package/dist/Combobox-R3_NDBi3.cjs.map +0 -1
  558. package/dist/HoverCopyableField-DBkYvwii.mjs.map +0 -1
  559. package/dist/HoverCopyableField-DyW2iZuo.cjs.map +0 -1
  560. package/dist/ListBox-B7sbubm5.mjs.map +0 -1
  561. package/dist/Pagination-DEZFb552.cjs.map +0 -1
  562. package/dist/TabBar-CAv10XAF.mjs.map +0 -1
  563. package/dist/TabBar-D8WCGYd5.cjs.map +0 -1
  564. package/dist/TableBox-CPCWzwSl.mjs.map +0 -1
  565. package/dist/TableBox-D_B9atn2.cjs.map +0 -1
  566. /package/dist/{index-1-AkepUA.d.mts → index-B2KLYYkM.d.cts} +0 -0
  567. /package/dist/{index-BIAn8oQh.d.cts → index-B5cbLMbC2.d.cts} +0 -0
  568. /package/dist/{index-BlwcRiXv.d.cts → index-BCsiC0tv.d.cts} +0 -0
  569. /package/dist/{index-C4zERU4O.d.cts → index-BPiqSRRl.d.mts} +0 -0
  570. /package/dist/{index-CDAfh8Ew.d.cts → index-BR1oNnaF.d.cts} +0 -0
  571. /package/dist/{index-CIABef8t.d.mts → index-BTImeehL2.d.mts} +0 -0
  572. /package/dist/{index-CMuRFTR3.d.mts → index-C0NRIDsj2.d.cts} +0 -0
  573. /package/dist/{index-CP2eJYlK.d.mts → index-C3kE54DD.d.mts} +0 -0
  574. /package/dist/{index-CTBW75wG2.d.cts → index-C8k_zgEm.d.cts} +0 -0
  575. /package/dist/{index-CiBIKhMu.d.cts → index-CEqOS-7M.d.mts} +0 -0
  576. /package/dist/{index-Cii4Qb1X.d.mts → index-CROz1VSV.d.mts} +0 -0
  577. /package/dist/{index-CspKFJM1.d.cts → index-CWt1yJ75.d.cts} +0 -0
  578. /package/dist/{index-CswGToRr2.d.mts → index-CmCelmEL.d.cts} +0 -0
  579. /package/dist/{index-D4ELpJXS.d.cts → index-CmUzJ4E-2.d.cts} +0 -0
  580. /package/dist/{index-D6CnpA_r.d.cts → index-CsuikFeJ.d.mts} +0 -0
  581. /package/dist/{index-D9XihFV1.d.mts → index-CtCMUyZA.d.cts} +0 -0
  582. /package/dist/{index-DBQaKYAL2.d.cts → index-Cz6N-KeS.d.cts} +0 -0
  583. /package/dist/{index-DFKoAoY2.d.cts → index-D-BciAtf.d.cts} +0 -0
  584. /package/dist/{index-DLoAMD9J.d.cts → index-D2HUTZ-d.d.cts} +0 -0
  585. /package/dist/{index-DWfPppPU.d.mts → index-D5tSVhTd.d.mts} +0 -0
  586. /package/dist/{index-DZlqSwCF.d.mts → index-DeEmP3Jc.d.cts} +0 -0
  587. /package/dist/{index-Dflz2i1X.d.mts → index-DeVKzGce.d.mts} +0 -0
  588. /package/dist/{index-Dpmi5zcN.d.cts → index-DrZ2Dh-H.d.cts} +0 -0
  589. /package/dist/{index-DwBYcw1r.d.cts → index-DxSM7VXJ.d.cts} +0 -0
  590. /package/dist/{index-PWQavSPf.d.mts → index-FtE8MXJ_.d.mts} +0 -0
  591. /package/dist/{index-VmEFGBxN.d.cts → index-JuxZj_Qp2.d.mts} +0 -0
  592. /package/dist/{index-_1bfRgi2.d.cts → index-NKYLt_R9.d.mts} +0 -0
  593. /package/dist/{index-dC-i2r_u.d.cts → index-Oio5ygqN.d.mts} +0 -0
  594. /package/dist/{index-e6k85DKM.d.mts → index-VWno75SQ.d.mts} +0 -0
  595. /package/dist/{index-kDNN3kX_2.d.mts → index-_wQ5ClJU.d.cts} +0 -0
  596. /package/dist/{index-qCd8f7Um.d.cts → index-lQ_hGQ08.d.cts} +0 -0
  597. /package/dist/{index-uTS5iDq_.d.cts → index-zO0Ly4bS.d.cts} +0 -0
@@ -1,4 +1,4 @@
1
- import { t as OmniSearchProps } from "./SearchInput-B6d2Qyzb.cjs";
1
+ import { t as OmniSearchProps } from "./SearchInput-CAHYPQVX.cjs";
2
2
  import { FC } from "react";
3
3
 
4
4
  //#region components/DataTable/TableControls/ControlBar.d.ts
@@ -148,4 +148,4 @@ interface ControlBarProps extends EventHandlers {
148
148
  declare const ControlBar: FC<ControlBarProps>;
149
149
  //#endregion
150
150
  export { ControlBarProps as n, ControlBar as t };
151
- //# sourceMappingURL=ControlBar-oT-I2y6E.d.cts.map
151
+ //# sourceMappingURL=ControlBar-BGmXymCB.d.cts.map
@@ -1,4 +1,4 @@
1
- import { t as OmniSearchProps } from "./SearchInput-2lsv5_R6.mjs";
1
+ import { t as OmniSearchProps } from "./SearchInput-s6qGC2WZ.mjs";
2
2
  import { FC } from "react";
3
3
 
4
4
  //#region components/DataTable/TableControls/ControlBar.d.ts
@@ -148,4 +148,4 @@ interface ControlBarProps extends EventHandlers {
148
148
  declare const ControlBar: FC<ControlBarProps>;
149
149
  //#endregion
150
150
  export { ControlBarProps as n, ControlBar as t };
151
- //# sourceMappingURL=ControlBar-9m-DNImB.d.mts.map
151
+ //# sourceMappingURL=ControlBar-DXyl1gjc.d.mts.map
@@ -1,2 +1,2 @@
1
- import { n as ControlBarProps, t as ControlBar } from "./ControlBar-oT-I2y6E.cjs";
1
+ import { n as ControlBarProps, t as ControlBar } from "./ControlBar-BGmXymCB.cjs";
2
2
  export { ControlBarProps, ControlBar as default };
@@ -1,2 +1,2 @@
1
- import { n as ControlBarProps, t as ControlBar } from "./ControlBar-9m-DNImB.mjs";
1
+ import { n as ControlBarProps, t as ControlBar } from "./ControlBar-DXyl1gjc.mjs";
2
2
  export { ControlBarProps, ControlBar as default };
@@ -1,6 +1,6 @@
1
- import { t as AttributeColumn } from "./types-BG21GgBe.cjs";
2
- import { n as TableControlsProps, t as TableControls } from "./TableControls-BG0OKwjj.cjs";
3
- import { t as Pagination } from "./Pagination-CeoHVtYD.cjs";
1
+ import { t as AttributeColumn } from "./types-C_AUGurs.cjs";
2
+ import { n as TableControlsProps, t as TableControls } from "./TableControls-Bkd3jhC1.cjs";
3
+ import { t as Pagination } from "./Pagination-B97xQ-Wk.cjs";
4
4
  import { BulkAction, DataTableColumnFormat, DataTableColumns, RowAction, SortProps } from "./components/DataTable/types.cjs";
5
5
  import { RenderFormatFn } from "./useTableColumns.cjs";
6
6
  import { ComponentProps } from "react";
@@ -1,6 +1,6 @@
1
- import { t as AttributeColumn } from "./types-ChCqSD9N.mjs";
2
- import { n as TableControlsProps, t as TableControls } from "./TableControls-B4gpAvl7.mjs";
3
- import { t as Pagination } from "./Pagination-BUjpYIwq.mjs";
1
+ import { t as AttributeColumn } from "./types-B34lbI2k.mjs";
2
+ import { n as TableControlsProps, t as TableControls } from "./TableControls-BZyiqk9V.mjs";
3
+ import { t as Pagination } from "./Pagination-QWNK_hH7.mjs";
4
4
  import { BulkAction, DataTableColumnFormat, DataTableColumns, RowAction, SortProps } from "./components/DataTable/types.mjs";
5
5
  import { RenderFormatFn } from "./useTableColumns.mjs";
6
6
  import * as _$styled_components0 from "styled-components";
@@ -1,4 +1,4 @@
1
- import { n as InputSizes } from "./input-Bm_anD8X.cjs";
1
+ import { n as InputSizes } from "./input-BkzqXwn7.cjs";
2
2
  import * as _$react from "react";
3
3
  import { DateValue } from "@internationalized/date";
4
4
  import { AriaDateFieldProps } from "@react-aria/datepicker";
@@ -1,4 +1,4 @@
1
- import { n as InputSizes } from "./input-FEaQ66an.mjs";
1
+ import { n as InputSizes } from "./input-DrG6mA0V.mjs";
2
2
  import * as _$react from "react";
3
3
  import { DateValue } from "@internationalized/date";
4
4
  import { AriaDateFieldProps } from "@react-aria/datepicker";
@@ -1,4 +1,4 @@
1
- import { n as InputSizes } from "./input-Bm_anD8X.cjs";
1
+ import { n as InputSizes } from "./input-BkzqXwn7.cjs";
2
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime.js";
3
3
  import { DateValue } from "@internationalized/date";
4
4
  import { DatePickerProps as DatePickerProps$1 } from "@react-types/datepicker";
@@ -1,4 +1,4 @@
1
- import { n as InputSizes } from "./input-FEaQ66an.mjs";
1
+ import { n as InputSizes } from "./input-DrG6mA0V.mjs";
2
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
3
  import { DateValue } from "@internationalized/date";
4
4
  import { DatePickerProps as DatePickerProps$1 } from "@react-types/datepicker";
@@ -1,4 +1,4 @@
1
- import { n as InputSizes } from "./input-Bm_anD8X.cjs";
1
+ import { n as InputSizes } from "./input-BkzqXwn7.cjs";
2
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime.js";
3
3
  import { DateValue } from "@internationalized/date";
4
4
  import { DateRangePickerProps as DateRangePickerProps$1 } from "@react-types/datepicker";
@@ -34,12 +34,17 @@ interface DateRangePickerProps extends DateRangePickerProps$1<DateValue>, AriaLa
34
34
  * z-index of the calendar popover
35
35
  */
36
36
  calendarZIndex?: number;
37
+ /**
38
+ * Element that should contain the calendar portal.
39
+ */
40
+ portalContainer?: HTMLElement | null;
37
41
  }
38
42
  declare const DateRangePicker: ({
39
43
  granularity,
40
44
  hideTimeZone,
41
45
  className,
42
46
  calendarZIndex,
47
+ portalContainer,
43
48
  ...props
44
49
  }: DateRangePickerProps) => _$react_jsx_runtime0.JSX.Element;
45
50
  //#endregion
@@ -1,4 +1,4 @@
1
- import { n as InputSizes } from "./input-FEaQ66an.mjs";
1
+ import { n as InputSizes } from "./input-DrG6mA0V.mjs";
2
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
3
  import { DateTime } from "luxon";
4
4
  import { DateValue } from "@internationalized/date";
@@ -34,12 +34,17 @@ interface DateRangePickerProps extends DateRangePickerProps$1<DateValue>, AriaLa
34
34
  * z-index of the calendar popover
35
35
  */
36
36
  calendarZIndex?: number;
37
+ /**
38
+ * Element that should contain the calendar portal.
39
+ */
40
+ portalContainer?: HTMLElement | null;
37
41
  }
38
42
  declare const DateRangePicker: ({
39
43
  granularity,
40
44
  hideTimeZone,
41
45
  className,
42
46
  calendarZIndex,
47
+ portalContainer,
43
48
  ...props
44
49
  }: DateRangePickerProps) => _$react_jsx_runtime0.JSX.Element;
45
50
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { n as Button } from "./IconButton-DC4rh6ow.mjs";
2
- import { n as DropdownMenu_default } from "./DropdownMenu-cN_AnKAT.mjs";
2
+ import { n as DropdownMenu_default } from "./DropdownMenu-cnkoGc7C.mjs";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { CaretDownIcon } from "@persona/icons";
5
5
  //#region components/DropdownButton/DropdownButton.tsx
@@ -23,4 +23,4 @@ const DropdownButton = ({ children, menuItems, menuProps, side, ...props }) => {
23
23
  //#endregion
24
24
  export { DropdownButton as t };
25
25
 
26
- //# sourceMappingURL=DropdownButton-BS1QfVX_.mjs.map
26
+ //# sourceMappingURL=DropdownButton-B397h6ka.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownButton-BS1QfVX_.mjs","names":["DropdownMenu"],"sources":["../components/DropdownButton/DropdownButton.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\n\nimport { CaretDownIcon } from '@persona/icons';\nimport Button, { type ButtonProps } from 'design-system/components/Button';\nimport DropdownMenu, {\n type DropdownMenuProps,\n} from 'design-system/components/DropdownMenu/DropdownMenu';\n\nexport interface DropdownButtonProps extends ButtonProps {\n /**\n * Use `DropdownMenu.Item` components to render the menu items.\n */\n menuItems: ReactNode;\n /**\n * Additional props will be spread to the inner `<DropdownMenu>` component.\n */\n menuProps?: Partial<Omit<DropdownMenuProps, 'trigger'>>;\n /**\n * The side of the dropdown menu.\n */\n side?: DropdownMenuProps['side'];\n}\n\n/**\n * A button that opens a dropdown menu.\n */\nexport const DropdownButton: FC<DropdownButtonProps> = ({\n children,\n menuItems,\n menuProps,\n side,\n ...props\n}) => {\n return (\n <DropdownMenu\n trigger={\n <Button variant='basic' width='auto' suffixIcon={<CaretDownIcon />} {...props}>\n {children}\n </Button>\n }\n side={side}\n {...menuProps}\n >\n {menuItems}\n </DropdownMenu>\n );\n};\n\nexport default DropdownButton;\n"],"mappings":";;;;;;;;AA0BA,MAAa,kBAA2C,EACtD,UACA,WACA,WACA,MACA,GAAG,YACC;AACJ,QACE,oBAACA,sBAAD;EACE,SACE,oBAAC,QAAD;GAAQ,SAAQ;GAAQ,OAAM;GAAO,YAAY,oBAAC,eAAD,EAAiB,CAAA;GAAE,GAAI;GACrE;GACM,CAAA;EAEL;EACN,GAAI;YAEH;EACY,CAAA"}
1
+ {"version":3,"file":"DropdownButton-B397h6ka.mjs","names":["DropdownMenu"],"sources":["../components/DropdownButton/DropdownButton.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\n\nimport { CaretDownIcon } from '@persona/icons';\nimport Button, { type ButtonProps } from 'design-system/components/Button';\nimport DropdownMenu, {\n type DropdownMenuProps,\n} from 'design-system/components/DropdownMenu/DropdownMenu';\n\nexport interface DropdownButtonProps extends ButtonProps {\n /**\n * Use `DropdownMenu.Item` components to render the menu items.\n */\n menuItems: ReactNode;\n /**\n * Additional props will be spread to the inner `<DropdownMenu>` component.\n */\n menuProps?: Partial<Omit<DropdownMenuProps, 'trigger'>>;\n /**\n * The side of the dropdown menu.\n */\n side?: DropdownMenuProps['side'];\n}\n\n/**\n * A button that opens a dropdown menu.\n */\nexport const DropdownButton: FC<DropdownButtonProps> = ({\n children,\n menuItems,\n menuProps,\n side,\n ...props\n}) => {\n return (\n <DropdownMenu\n trigger={\n <Button variant='basic' width='auto' suffixIcon={<CaretDownIcon />} {...props}>\n {children}\n </Button>\n }\n side={side}\n {...menuProps}\n >\n {menuItems}\n </DropdownMenu>\n );\n};\n\nexport default DropdownButton;\n"],"mappings":";;;;;;;;AA0BA,MAAa,kBAA2C,EACtD,UACA,WACA,WACA,MACA,GAAG,YACC;AACJ,QACE,oBAACA,sBAAD;EACE,SACE,oBAAC,QAAD;GAAQ,SAAQ;GAAQ,OAAM;GAAO,YAAY,oBAAC,eAAD,EAAiB,CAAA;GAAE,GAAI;GACrE;GACM,CAAA;EAEL;EACN,GAAI;YAEH;EACY,CAAA"}
@@ -1,6 +1,6 @@
1
1
  require("./chunk-CKQMccvm.cjs");
2
2
  const require_IconButton = require("./IconButton-DNy7g5zh.cjs");
3
- const require_DropdownMenu = require("./DropdownMenu-CeqZAxjs.cjs");
3
+ const require_DropdownMenu = require("./DropdownMenu-CfJxgWN5.cjs");
4
4
  let react_jsx_runtime = require("react/jsx-runtime");
5
5
  let _persona_icons = require("@persona/icons");
6
6
  //#region components/DropdownButton/DropdownButton.tsx
@@ -29,4 +29,4 @@ Object.defineProperty(exports, "DropdownButton", {
29
29
  }
30
30
  });
31
31
 
32
- //# sourceMappingURL=DropdownButton-Dpiy5v-R.cjs.map
32
+ //# sourceMappingURL=DropdownButton-Du6dwZVL.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownButton-Dpiy5v-R.cjs","names":["DropdownMenu","Button","CaretDownIcon"],"sources":["../components/DropdownButton/DropdownButton.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\n\nimport { CaretDownIcon } from '@persona/icons';\nimport Button, { type ButtonProps } from 'design-system/components/Button';\nimport DropdownMenu, {\n type DropdownMenuProps,\n} from 'design-system/components/DropdownMenu/DropdownMenu';\n\nexport interface DropdownButtonProps extends ButtonProps {\n /**\n * Use `DropdownMenu.Item` components to render the menu items.\n */\n menuItems: ReactNode;\n /**\n * Additional props will be spread to the inner `<DropdownMenu>` component.\n */\n menuProps?: Partial<Omit<DropdownMenuProps, 'trigger'>>;\n /**\n * The side of the dropdown menu.\n */\n side?: DropdownMenuProps['side'];\n}\n\n/**\n * A button that opens a dropdown menu.\n */\nexport const DropdownButton: FC<DropdownButtonProps> = ({\n children,\n menuItems,\n menuProps,\n side,\n ...props\n}) => {\n return (\n <DropdownMenu\n trigger={\n <Button variant='basic' width='auto' suffixIcon={<CaretDownIcon />} {...props}>\n {children}\n </Button>\n }\n side={side}\n {...menuProps}\n >\n {menuItems}\n </DropdownMenu>\n );\n};\n\nexport default DropdownButton;\n"],"mappings":";;;;;;;;;AA0BA,MAAa,kBAA2C,EACtD,UACA,WACA,WACA,MACA,GAAG,YACC;AACJ,QACE,iBAAA,GAAA,kBAAA,KAACA,qBAAAA,sBAAD;EACE,SACE,iBAAA,GAAA,kBAAA,KAACC,mBAAAA,QAAD;GAAQ,SAAQ;GAAQ,OAAM;GAAO,YAAY,iBAAA,GAAA,kBAAA,KAACC,eAAAA,eAAD,EAAiB,CAAA;GAAE,GAAI;GACrE;GACM,CAAA;EAEL;EACN,GAAI;YAEH;EACY,CAAA"}
1
+ {"version":3,"file":"DropdownButton-Du6dwZVL.cjs","names":["DropdownMenu","Button","CaretDownIcon"],"sources":["../components/DropdownButton/DropdownButton.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\n\nimport { CaretDownIcon } from '@persona/icons';\nimport Button, { type ButtonProps } from 'design-system/components/Button';\nimport DropdownMenu, {\n type DropdownMenuProps,\n} from 'design-system/components/DropdownMenu/DropdownMenu';\n\nexport interface DropdownButtonProps extends ButtonProps {\n /**\n * Use `DropdownMenu.Item` components to render the menu items.\n */\n menuItems: ReactNode;\n /**\n * Additional props will be spread to the inner `<DropdownMenu>` component.\n */\n menuProps?: Partial<Omit<DropdownMenuProps, 'trigger'>>;\n /**\n * The side of the dropdown menu.\n */\n side?: DropdownMenuProps['side'];\n}\n\n/**\n * A button that opens a dropdown menu.\n */\nexport const DropdownButton: FC<DropdownButtonProps> = ({\n children,\n menuItems,\n menuProps,\n side,\n ...props\n}) => {\n return (\n <DropdownMenu\n trigger={\n <Button variant='basic' width='auto' suffixIcon={<CaretDownIcon />} {...props}>\n {children}\n </Button>\n }\n side={side}\n {...menuProps}\n >\n {menuItems}\n </DropdownMenu>\n );\n};\n\nexport default DropdownButton;\n"],"mappings":";;;;;;;;;AA0BA,MAAa,kBAA2C,EACtD,UACA,WACA,WACA,MACA,GAAG,YACC;AACJ,QACE,iBAAA,GAAA,kBAAA,KAACA,qBAAAA,sBAAD;EACE,SACE,iBAAA,GAAA,kBAAA,KAACC,mBAAAA,QAAD;GAAQ,SAAQ;GAAQ,OAAM;GAAO,YAAY,iBAAA,GAAA,kBAAA,KAACC,eAAAA,eAAD,EAAiB,CAAA;GAAE,GAAI;GACrE;GACM,CAAA;EAEL;EACN,GAAI;YAEH;EACY,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { r as ButtonProps } from "./Button-C_3p5Xfi.cjs";
2
- import { n as DropdownMenuProps } from "./DropdownMenu-D1E1jpZu.cjs";
2
+ import { n as DropdownMenuProps } from "./DropdownMenu-FIYz6oAo.cjs";
3
3
  import { FC, ReactNode } from "react";
4
4
 
5
5
  //#region components/DropdownButton/DropdownButton.d.ts
@@ -1,5 +1,5 @@
1
- import { r as ButtonProps } from "./Button-DcTUxRNI.mjs";
2
- import { n as DropdownMenuProps } from "./DropdownMenu-COkpUmIO.mjs";
1
+ import { r as ButtonProps } from "./Button-DXsYU5qU.mjs";
2
+ import { n as DropdownMenuProps } from "./DropdownMenu-5qIgQ14A.mjs";
3
3
  import { FC, ReactNode } from "react";
4
4
 
5
5
  //#region components/DropdownButton/DropdownButton.d.ts
@@ -1,4 +1,4 @@
1
- import { l as MenuItemProps, s as MenuHeadingProps } from "./Menu-CSgCXX0k.mjs";
1
+ import { l as MenuItemProps, s as MenuHeadingProps } from "./Menu-BJ5c7HGD.mjs";
2
2
  import * as _$styled_components0 from "styled-components";
3
3
  import { ComponentPropsWithRef, ComponentPropsWithoutRef, ElementType, FC, FunctionComponentElement } from "react";
4
4
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
@@ -72,4 +72,4 @@ declare const _default: (({
72
72
  };
73
73
  //#endregion
74
74
  export { DropdownMenuProps as n, _default as r, DropdownMenu as t };
75
- //# sourceMappingURL=DropdownMenu-COkpUmIO.d.mts.map
75
+ //# sourceMappingURL=DropdownMenu-5qIgQ14A.d.mts.map
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require("./chunk-CKQMccvm.cjs");
2
2
  require("./variables/spacing.cjs");
3
3
  const require_lib_zindex = require("./lib/zindex.cjs");
4
- const require_Menu = require("./Menu-BLbEcodU.cjs");
4
+ const require_Menu = require("./Menu-BXic-30n.cjs");
5
5
  let styled_components = require("styled-components");
6
6
  styled_components = require_chunk.__toESM(styled_components);
7
7
  let react = require("react");
@@ -71,4 +71,4 @@ Object.defineProperty(exports, "DropdownMenu_default", {
71
71
  }
72
72
  });
73
73
 
74
- //# sourceMappingURL=DropdownMenu-CeqZAxjs.cjs.map
74
+ //# sourceMappingURL=DropdownMenu-CfJxgWN5.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenu-CeqZAxjs.cjs","names":["Primitive","Z_INDICES","Children","Menu","MenuItem","MenuHeading","MenuDivider"],"sources":["../components/DropdownMenu/DropdownMenu.tsx"],"sourcesContent":["import * as Primitive from '@radix-ui/react-dropdown-menu';\nimport type { Property } from 'csstype';\nimport {\n Children,\n type ComponentPropsWithoutRef,\n type ComponentPropsWithRef,\n type ElementType,\n type FC,\n forwardRef,\n type FunctionComponentElement,\n type Ref,\n} from 'react';\nimport styled from 'styled-components';\n\nimport Menu, {\n MenuDivider,\n MenuHeading,\n MenuItem,\n type MenuItemProps,\n} from 'design-system/components/Menu/Menu';\nimport { Z_INDICES } from 'design-system/lib/zindex';\nimport { BASE } from 'design-system/variables/spacing';\n\nconst DropdownMenuContent = styled(Primitive.Content)<{ $zIndex?: Property.ZIndex }>`\n z-index: ${({ $zIndex }) => $zIndex || Z_INDICES.tooltip};\n`;\n\nexport interface DropdownMenuProps\n extends Primitive.DropdownMenuProps, Pick<Primitive.DropdownMenuContentProps, 'side' | 'align'> {\n id?: string;\n className?: string;\n\n trigger: FunctionComponentElement<any>;\n\n /**\n * Props passed to internal DropdownMenu.Content component.\n */\n contentProps?: Primitive.DropdownMenuContentProps;\n\n /**\n * Props passed to internal DropdownMenu.Trigger component.\n */\n triggerProps?: Primitive.DropdownMenuTriggerProps;\n\n /**\n * Props passed to internal DropdownMenu.Portal component.\n */\n portalProps?: Primitive.DropdownMenuPortalProps;\n\n /**\n * Whether or not to wrap menu with DropdownMenu.Portal component.\n */\n portal?: boolean;\n\n /**\n * Whether or not clicks render menu items.\n */\n disabled?: boolean;\n\n zIndex?: Property.ZIndex;\n}\n\nexport const DropdownMenu = ({\n trigger,\n children,\n side,\n align = 'end',\n contentProps,\n triggerProps,\n portalProps,\n className,\n portal = false, // Default to false for old behavior\n modal = false,\n disabled = false,\n zIndex,\n ...props\n}: DropdownMenuProps) => {\n if (Children.count(children) === 0) {\n return null;\n }\n\n const content = disabled ? null : (\n <DropdownMenuContent\n sideOffset={BASE}\n collisionPadding={BASE}\n align={align}\n side={side}\n $zIndex={zIndex}\n {...contentProps}\n >\n <Menu className={className} doNotSetRole>\n {children}\n </Menu>\n </DropdownMenuContent>\n );\n\n return (\n <Primitive.Root modal={modal} {...props}>\n <Primitive.Trigger asChild {...triggerProps}>\n {trigger}\n </Primitive.Trigger>\n\n {portal ? <Primitive.Portal {...portalProps}>{content}</Primitive.Portal> : content}\n </Primitive.Root>\n );\n};\n\ninterface DropdownMenuItemProps<T extends ElementType = 'div'>\n extends MenuItemProps<T>, Omit<Primitive.DropdownMenuItemProps, 'asChild' | 'children'> {}\n\ninterface DropdownMenuItemType<T extends ElementType = 'div'> extends FC<\n DropdownMenuItemProps<T> & ComponentPropsWithRef<T>\n> {\n <T extends ElementType = 'div'>(\n props: DropdownMenuItemProps<T> & ComponentPropsWithoutRef<T>,\n ): ReturnType<FC<DropdownMenuItemProps<T> & ComponentPropsWithoutRef<T>>>;\n}\n\n/* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\nconst DropdownMenuItem: DropdownMenuItemType = forwardRef(function DropdownMenuItem(\n { children, disabled, ...props },\n ref: Ref<HTMLDivElement>,\n) {\n return (\n <Primitive.Item asChild disabled={disabled} {...props}>\n <MenuItem disabled={disabled} ref={ref}>\n {children}\n </MenuItem>\n </Primitive.Item>\n );\n});\n\nexport default Object.assign(DropdownMenu, {\n Item: DropdownMenuItem,\n Heading: MenuHeading,\n Divider: MenuDivider,\n});\n"],"mappings":";;;;;;;;;;;AAuBA,MAAM,sBAAsB,CAAA,GAAA,kBAAA,SAAOA,8BAAU,QAAQ;cACvC,EAAE,cAAc,WAAWC,mBAAAA,UAAU,QAAQ;;AAsC3D,MAAa,gBAAgB,EAC3B,SACA,UACA,MACA,QAAQ,OACR,cACA,cACA,aACA,WACA,SAAS,OACT,QAAQ,OACR,WAAW,OACX,QACA,GAAG,YACoB;AACvB,KAAIC,MAAAA,SAAS,MAAM,SAAS,KAAK,EAC/B,QAAO;CAGT,MAAM,UAAU,WAAW,OACzB,iBAAA,GAAA,kBAAA,KAAC,qBAAD;EACE,YAAA;EACA,kBAAA;EACO;EACD;EACN,SAAS;EACT,GAAI;YAEJ,iBAAA,GAAA,kBAAA,KAACC,aAAAA,MAAD;GAAiB;GAAW,cAAA;GACzB;GACI,CAAA;EACa,CAAA;AAGxB,QACE,iBAAA,GAAA,kBAAA,MAACH,8BAAU,MAAX;EAAuB;EAAO,GAAI;YAAlC,CACE,iBAAA,GAAA,kBAAA,KAACA,8BAAU,SAAX;GAAmB,SAAA;GAAQ,GAAI;aAC5B;GACiB,CAAA,EAEnB,SAAS,iBAAA,GAAA,kBAAA,KAACA,8BAAU,QAAX;GAAkB,GAAI;aAAc;GAA2B,CAAA,GAAG,QAC7D;;;AAgBrB,MAAM,oBAAA,GAAA,MAAA,YAAoD,SAAS,iBACjE,EAAE,UAAU,UAAU,GAAG,SACzB,KACA;AACA,QACE,iBAAA,GAAA,kBAAA,KAACA,8BAAU,MAAX;EAAgB,SAAA;EAAkB;EAAU,GAAI;YAC9C,iBAAA,GAAA,kBAAA,KAACI,aAAAA,UAAD;GAAoB;GAAe;GAChC;GACQ,CAAA;EACI,CAAA;EAEnB;AAEF,IAAA,uBAAe,OAAO,OAAO,cAAc;CACzC,MAAM;CACN,SAASC,aAAAA;CACT,SAASC,aAAAA;CACV,CAAC"}
1
+ {"version":3,"file":"DropdownMenu-CfJxgWN5.cjs","names":["Primitive","Z_INDICES","Children","Menu","MenuItem","MenuHeading","MenuDivider"],"sources":["../components/DropdownMenu/DropdownMenu.tsx"],"sourcesContent":["import * as Primitive from '@radix-ui/react-dropdown-menu';\nimport type { Property } from 'csstype';\nimport {\n Children,\n type ComponentPropsWithoutRef,\n type ComponentPropsWithRef,\n type ElementType,\n type FC,\n forwardRef,\n type FunctionComponentElement,\n type Ref,\n} from 'react';\nimport styled from 'styled-components';\n\nimport Menu, {\n MenuDivider,\n MenuHeading,\n MenuItem,\n type MenuItemProps,\n} from 'design-system/components/Menu/Menu';\nimport { Z_INDICES } from 'design-system/lib/zindex';\nimport { BASE } from 'design-system/variables/spacing';\n\nconst DropdownMenuContent = styled(Primitive.Content)<{ $zIndex?: Property.ZIndex }>`\n z-index: ${({ $zIndex }) => $zIndex || Z_INDICES.tooltip};\n`;\n\nexport interface DropdownMenuProps\n extends Primitive.DropdownMenuProps, Pick<Primitive.DropdownMenuContentProps, 'side' | 'align'> {\n id?: string;\n className?: string;\n\n trigger: FunctionComponentElement<any>;\n\n /**\n * Props passed to internal DropdownMenu.Content component.\n */\n contentProps?: Primitive.DropdownMenuContentProps;\n\n /**\n * Props passed to internal DropdownMenu.Trigger component.\n */\n triggerProps?: Primitive.DropdownMenuTriggerProps;\n\n /**\n * Props passed to internal DropdownMenu.Portal component.\n */\n portalProps?: Primitive.DropdownMenuPortalProps;\n\n /**\n * Whether or not to wrap menu with DropdownMenu.Portal component.\n */\n portal?: boolean;\n\n /**\n * Whether or not clicks render menu items.\n */\n disabled?: boolean;\n\n zIndex?: Property.ZIndex;\n}\n\nexport const DropdownMenu = ({\n trigger,\n children,\n side,\n align = 'end',\n contentProps,\n triggerProps,\n portalProps,\n className,\n portal = false, // Default to false for old behavior\n modal = false,\n disabled = false,\n zIndex,\n ...props\n}: DropdownMenuProps) => {\n if (Children.count(children) === 0) {\n return null;\n }\n\n const content = disabled ? null : (\n <DropdownMenuContent\n sideOffset={BASE}\n collisionPadding={BASE}\n align={align}\n side={side}\n $zIndex={zIndex}\n {...contentProps}\n >\n <Menu className={className} doNotSetRole>\n {children}\n </Menu>\n </DropdownMenuContent>\n );\n\n return (\n <Primitive.Root modal={modal} {...props}>\n <Primitive.Trigger asChild {...triggerProps}>\n {trigger}\n </Primitive.Trigger>\n\n {portal ? <Primitive.Portal {...portalProps}>{content}</Primitive.Portal> : content}\n </Primitive.Root>\n );\n};\n\ninterface DropdownMenuItemProps<T extends ElementType = 'div'>\n extends MenuItemProps<T>, Omit<Primitive.DropdownMenuItemProps, 'asChild' | 'children'> {}\n\ninterface DropdownMenuItemType<T extends ElementType = 'div'> extends FC<\n DropdownMenuItemProps<T> & ComponentPropsWithRef<T>\n> {\n <T extends ElementType = 'div'>(\n props: DropdownMenuItemProps<T> & ComponentPropsWithoutRef<T>,\n ): ReturnType<FC<DropdownMenuItemProps<T> & ComponentPropsWithoutRef<T>>>;\n}\n\n/* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\nconst DropdownMenuItem: DropdownMenuItemType = forwardRef(function DropdownMenuItem(\n { children, disabled, ...props },\n ref: Ref<HTMLDivElement>,\n) {\n return (\n <Primitive.Item asChild disabled={disabled} {...props}>\n <MenuItem disabled={disabled} ref={ref}>\n {children}\n </MenuItem>\n </Primitive.Item>\n );\n});\n\nexport default Object.assign(DropdownMenu, {\n Item: DropdownMenuItem,\n Heading: MenuHeading,\n Divider: MenuDivider,\n});\n"],"mappings":";;;;;;;;;;;AAuBA,MAAM,sBAAsB,CAAA,GAAA,kBAAA,SAAOA,8BAAU,QAAQ;cACvC,EAAE,cAAc,WAAWC,mBAAAA,UAAU,QAAQ;;AAsC3D,MAAa,gBAAgB,EAC3B,SACA,UACA,MACA,QAAQ,OACR,cACA,cACA,aACA,WACA,SAAS,OACT,QAAQ,OACR,WAAW,OACX,QACA,GAAG,YACoB;AACvB,KAAIC,MAAAA,SAAS,MAAM,SAAS,KAAK,EAC/B,QAAO;CAGT,MAAM,UAAU,WAAW,OACzB,iBAAA,GAAA,kBAAA,KAAC,qBAAD;EACE,YAAA;EACA,kBAAA;EACO;EACD;EACN,SAAS;EACT,GAAI;YAEJ,iBAAA,GAAA,kBAAA,KAACC,aAAAA,MAAD;GAAiB;GAAW,cAAA;GACzB;GACI,CAAA;EACa,CAAA;AAGxB,QACE,iBAAA,GAAA,kBAAA,MAACH,8BAAU,MAAX;EAAuB;EAAO,GAAI;YAAlC,CACE,iBAAA,GAAA,kBAAA,KAACA,8BAAU,SAAX;GAAmB,SAAA;GAAQ,GAAI;aAC5B;GACiB,CAAA,EAEnB,SAAS,iBAAA,GAAA,kBAAA,KAACA,8BAAU,QAAX;GAAkB,GAAI;aAAc;GAA2B,CAAA,GAAG,QAC7D;;;AAgBrB,MAAM,oBAAA,GAAA,MAAA,YAAoD,SAAS,iBACjE,EAAE,UAAU,UAAU,GAAG,SACzB,KACA;AACA,QACE,iBAAA,GAAA,kBAAA,KAACA,8BAAU,MAAX;EAAgB,SAAA;EAAkB;EAAU,GAAI;YAC9C,iBAAA,GAAA,kBAAA,KAACI,aAAAA,UAAD;GAAoB;GAAe;GAChC;GACQ,CAAA;EACI,CAAA;EAEnB;AAEF,IAAA,uBAAe,OAAO,OAAO,cAAc;CACzC,MAAM;CACN,SAASC,aAAAA;CACT,SAASC,aAAAA;CACV,CAAC"}
@@ -1,4 +1,4 @@
1
- import { l as MenuItemProps, s as MenuHeadingProps } from "./Menu-C_NOsHAm.cjs";
1
+ import { l as MenuItemProps, s as MenuHeadingProps } from "./Menu-BKMxOXkj.cjs";
2
2
  import { ComponentPropsWithRef, ComponentPropsWithoutRef, ElementType, FC, FunctionComponentElement } from "react";
3
3
  import * as _$styled_components0 from "styled-components";
4
4
  import * as _$react_jsx_runtime0 from "react/jsx-runtime.js";
@@ -72,4 +72,4 @@ declare const _default: (({
72
72
  };
73
73
  //#endregion
74
74
  export { DropdownMenuProps as n, _default as r, DropdownMenu as t };
75
- //# sourceMappingURL=DropdownMenu-D1E1jpZu.d.cts.map
75
+ //# sourceMappingURL=DropdownMenu-FIYz6oAo.d.cts.map
@@ -1,6 +1,6 @@
1
1
  import "./variables/spacing.mjs";
2
2
  import { Z_INDICES } from "./lib/zindex.mjs";
3
- import { a as MenuDivider, i as Menu, o as MenuHeading, s as MenuItem } from "./Menu-BbSyWxFD.mjs";
3
+ import { a as MenuDivider, i as Menu, o as MenuHeading, s as MenuItem } from "./Menu-CVuFAxl2.mjs";
4
4
  import styled from "styled-components";
5
5
  import { Children, forwardRef } from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -57,4 +57,4 @@ var DropdownMenu_default = Object.assign(DropdownMenu, {
57
57
  //#endregion
58
58
  export { DropdownMenu_default as n, DropdownMenu as t };
59
59
 
60
- //# sourceMappingURL=DropdownMenu-cN_AnKAT.mjs.map
60
+ //# sourceMappingURL=DropdownMenu-cnkoGc7C.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenu-cN_AnKAT.mjs","names":[],"sources":["../components/DropdownMenu/DropdownMenu.tsx"],"sourcesContent":["import * as Primitive from '@radix-ui/react-dropdown-menu';\nimport type { Property } from 'csstype';\nimport {\n Children,\n type ComponentPropsWithoutRef,\n type ComponentPropsWithRef,\n type ElementType,\n type FC,\n forwardRef,\n type FunctionComponentElement,\n type Ref,\n} from 'react';\nimport styled from 'styled-components';\n\nimport Menu, {\n MenuDivider,\n MenuHeading,\n MenuItem,\n type MenuItemProps,\n} from 'design-system/components/Menu/Menu';\nimport { Z_INDICES } from 'design-system/lib/zindex';\nimport { BASE } from 'design-system/variables/spacing';\n\nconst DropdownMenuContent = styled(Primitive.Content)<{ $zIndex?: Property.ZIndex }>`\n z-index: ${({ $zIndex }) => $zIndex || Z_INDICES.tooltip};\n`;\n\nexport interface DropdownMenuProps\n extends Primitive.DropdownMenuProps, Pick<Primitive.DropdownMenuContentProps, 'side' | 'align'> {\n id?: string;\n className?: string;\n\n trigger: FunctionComponentElement<any>;\n\n /**\n * Props passed to internal DropdownMenu.Content component.\n */\n contentProps?: Primitive.DropdownMenuContentProps;\n\n /**\n * Props passed to internal DropdownMenu.Trigger component.\n */\n triggerProps?: Primitive.DropdownMenuTriggerProps;\n\n /**\n * Props passed to internal DropdownMenu.Portal component.\n */\n portalProps?: Primitive.DropdownMenuPortalProps;\n\n /**\n * Whether or not to wrap menu with DropdownMenu.Portal component.\n */\n portal?: boolean;\n\n /**\n * Whether or not clicks render menu items.\n */\n disabled?: boolean;\n\n zIndex?: Property.ZIndex;\n}\n\nexport const DropdownMenu = ({\n trigger,\n children,\n side,\n align = 'end',\n contentProps,\n triggerProps,\n portalProps,\n className,\n portal = false, // Default to false for old behavior\n modal = false,\n disabled = false,\n zIndex,\n ...props\n}: DropdownMenuProps) => {\n if (Children.count(children) === 0) {\n return null;\n }\n\n const content = disabled ? null : (\n <DropdownMenuContent\n sideOffset={BASE}\n collisionPadding={BASE}\n align={align}\n side={side}\n $zIndex={zIndex}\n {...contentProps}\n >\n <Menu className={className} doNotSetRole>\n {children}\n </Menu>\n </DropdownMenuContent>\n );\n\n return (\n <Primitive.Root modal={modal} {...props}>\n <Primitive.Trigger asChild {...triggerProps}>\n {trigger}\n </Primitive.Trigger>\n\n {portal ? <Primitive.Portal {...portalProps}>{content}</Primitive.Portal> : content}\n </Primitive.Root>\n );\n};\n\ninterface DropdownMenuItemProps<T extends ElementType = 'div'>\n extends MenuItemProps<T>, Omit<Primitive.DropdownMenuItemProps, 'asChild' | 'children'> {}\n\ninterface DropdownMenuItemType<T extends ElementType = 'div'> extends FC<\n DropdownMenuItemProps<T> & ComponentPropsWithRef<T>\n> {\n <T extends ElementType = 'div'>(\n props: DropdownMenuItemProps<T> & ComponentPropsWithoutRef<T>,\n ): ReturnType<FC<DropdownMenuItemProps<T> & ComponentPropsWithoutRef<T>>>;\n}\n\n/* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\nconst DropdownMenuItem: DropdownMenuItemType = forwardRef(function DropdownMenuItem(\n { children, disabled, ...props },\n ref: Ref<HTMLDivElement>,\n) {\n return (\n <Primitive.Item asChild disabled={disabled} {...props}>\n <MenuItem disabled={disabled} ref={ref}>\n {children}\n </MenuItem>\n </Primitive.Item>\n );\n});\n\nexport default Object.assign(DropdownMenu, {\n Item: DropdownMenuItem,\n Heading: MenuHeading,\n Divider: MenuDivider,\n});\n"],"mappings":";;;;;;;;AAuBA,MAAM,sBAAsB,OAAO,UAAU,QAAQ;cACvC,EAAE,cAAc,WAAW,UAAU,QAAQ;;AAsC3D,MAAa,gBAAgB,EAC3B,SACA,UACA,MACA,QAAQ,OACR,cACA,cACA,aACA,WACA,SAAS,OACT,QAAQ,OACR,WAAW,OACX,QACA,GAAG,YACoB;AACvB,KAAI,SAAS,MAAM,SAAS,KAAK,EAC/B,QAAO;CAGT,MAAM,UAAU,WAAW,OACzB,oBAAC,qBAAD;EACE,YAAA;EACA,kBAAA;EACO;EACD;EACN,SAAS;EACT,GAAI;YAEJ,oBAAC,MAAD;GAAiB;GAAW,cAAA;GACzB;GACI,CAAA;EACa,CAAA;AAGxB,QACE,qBAAC,UAAU,MAAX;EAAuB;EAAO,GAAI;YAAlC,CACE,oBAAC,UAAU,SAAX;GAAmB,SAAA;GAAQ,GAAI;aAC5B;GACiB,CAAA,EAEnB,SAAS,oBAAC,UAAU,QAAX;GAAkB,GAAI;aAAc;GAA2B,CAAA,GAAG,QAC7D;;;AAgBrB,MAAM,mBAAyC,WAAW,SAAS,iBACjE,EAAE,UAAU,UAAU,GAAG,SACzB,KACA;AACA,QACE,oBAAC,UAAU,MAAX;EAAgB,SAAA;EAAkB;EAAU,GAAI;YAC9C,oBAAC,UAAD;GAAoB;GAAe;GAChC;GACQ,CAAA;EACI,CAAA;EAEnB;AAEF,IAAA,uBAAe,OAAO,OAAO,cAAc;CACzC,MAAM;CACN,SAAS;CACT,SAAS;CACV,CAAC"}
1
+ {"version":3,"file":"DropdownMenu-cnkoGc7C.mjs","names":[],"sources":["../components/DropdownMenu/DropdownMenu.tsx"],"sourcesContent":["import * as Primitive from '@radix-ui/react-dropdown-menu';\nimport type { Property } from 'csstype';\nimport {\n Children,\n type ComponentPropsWithoutRef,\n type ComponentPropsWithRef,\n type ElementType,\n type FC,\n forwardRef,\n type FunctionComponentElement,\n type Ref,\n} from 'react';\nimport styled from 'styled-components';\n\nimport Menu, {\n MenuDivider,\n MenuHeading,\n MenuItem,\n type MenuItemProps,\n} from 'design-system/components/Menu/Menu';\nimport { Z_INDICES } from 'design-system/lib/zindex';\nimport { BASE } from 'design-system/variables/spacing';\n\nconst DropdownMenuContent = styled(Primitive.Content)<{ $zIndex?: Property.ZIndex }>`\n z-index: ${({ $zIndex }) => $zIndex || Z_INDICES.tooltip};\n`;\n\nexport interface DropdownMenuProps\n extends Primitive.DropdownMenuProps, Pick<Primitive.DropdownMenuContentProps, 'side' | 'align'> {\n id?: string;\n className?: string;\n\n trigger: FunctionComponentElement<any>;\n\n /**\n * Props passed to internal DropdownMenu.Content component.\n */\n contentProps?: Primitive.DropdownMenuContentProps;\n\n /**\n * Props passed to internal DropdownMenu.Trigger component.\n */\n triggerProps?: Primitive.DropdownMenuTriggerProps;\n\n /**\n * Props passed to internal DropdownMenu.Portal component.\n */\n portalProps?: Primitive.DropdownMenuPortalProps;\n\n /**\n * Whether or not to wrap menu with DropdownMenu.Portal component.\n */\n portal?: boolean;\n\n /**\n * Whether or not clicks render menu items.\n */\n disabled?: boolean;\n\n zIndex?: Property.ZIndex;\n}\n\nexport const DropdownMenu = ({\n trigger,\n children,\n side,\n align = 'end',\n contentProps,\n triggerProps,\n portalProps,\n className,\n portal = false, // Default to false for old behavior\n modal = false,\n disabled = false,\n zIndex,\n ...props\n}: DropdownMenuProps) => {\n if (Children.count(children) === 0) {\n return null;\n }\n\n const content = disabled ? null : (\n <DropdownMenuContent\n sideOffset={BASE}\n collisionPadding={BASE}\n align={align}\n side={side}\n $zIndex={zIndex}\n {...contentProps}\n >\n <Menu className={className} doNotSetRole>\n {children}\n </Menu>\n </DropdownMenuContent>\n );\n\n return (\n <Primitive.Root modal={modal} {...props}>\n <Primitive.Trigger asChild {...triggerProps}>\n {trigger}\n </Primitive.Trigger>\n\n {portal ? <Primitive.Portal {...portalProps}>{content}</Primitive.Portal> : content}\n </Primitive.Root>\n );\n};\n\ninterface DropdownMenuItemProps<T extends ElementType = 'div'>\n extends MenuItemProps<T>, Omit<Primitive.DropdownMenuItemProps, 'asChild' | 'children'> {}\n\ninterface DropdownMenuItemType<T extends ElementType = 'div'> extends FC<\n DropdownMenuItemProps<T> & ComponentPropsWithRef<T>\n> {\n <T extends ElementType = 'div'>(\n props: DropdownMenuItemProps<T> & ComponentPropsWithoutRef<T>,\n ): ReturnType<FC<DropdownMenuItemProps<T> & ComponentPropsWithoutRef<T>>>;\n}\n\n/* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\nconst DropdownMenuItem: DropdownMenuItemType = forwardRef(function DropdownMenuItem(\n { children, disabled, ...props },\n ref: Ref<HTMLDivElement>,\n) {\n return (\n <Primitive.Item asChild disabled={disabled} {...props}>\n <MenuItem disabled={disabled} ref={ref}>\n {children}\n </MenuItem>\n </Primitive.Item>\n );\n});\n\nexport default Object.assign(DropdownMenu, {\n Item: DropdownMenuItem,\n Heading: MenuHeading,\n Divider: MenuDivider,\n});\n"],"mappings":";;;;;;;;AAuBA,MAAM,sBAAsB,OAAO,UAAU,QAAQ;cACvC,EAAE,cAAc,WAAW,UAAU,QAAQ;;AAsC3D,MAAa,gBAAgB,EAC3B,SACA,UACA,MACA,QAAQ,OACR,cACA,cACA,aACA,WACA,SAAS,OACT,QAAQ,OACR,WAAW,OACX,QACA,GAAG,YACoB;AACvB,KAAI,SAAS,MAAM,SAAS,KAAK,EAC/B,QAAO;CAGT,MAAM,UAAU,WAAW,OACzB,oBAAC,qBAAD;EACE,YAAA;EACA,kBAAA;EACO;EACD;EACN,SAAS;EACT,GAAI;YAEJ,oBAAC,MAAD;GAAiB;GAAW,cAAA;GACzB;GACI,CAAA;EACa,CAAA;AAGxB,QACE,qBAAC,UAAU,MAAX;EAAuB;EAAO,GAAI;YAAlC,CACE,oBAAC,UAAU,SAAX;GAAmB,SAAA;GAAQ,GAAI;aAC5B;GACiB,CAAA,EAEnB,SAAS,oBAAC,UAAU,QAAX;GAAkB,GAAI;aAAc;GAA2B,CAAA,GAAG,QAC7D;;;AAgBrB,MAAM,mBAAyC,WAAW,SAAS,iBACjE,EAAE,UAAU,UAAU,GAAG,SACzB,KACA;AACA,QACE,oBAAC,UAAU,MAAX;EAAgB,SAAA;EAAkB;EAAU,GAAI;YAC9C,oBAAC,UAAD;GAAoB;GAAe;GAChC;GACQ,CAAA;EACI,CAAA;EAEnB;AAEF,IAAA,uBAAe,OAAO,OAAO,cAAc;CACzC,MAAM;CACN,SAAS;CACT,SAAS;CACV,CAAC"}
@@ -1,2 +1,2 @@
1
- import { n as DropdownMenuProps, r as _default, t as DropdownMenu } from "./DropdownMenu-D1E1jpZu.cjs";
1
+ import { n as DropdownMenuProps, r as _default, t as DropdownMenu } from "./DropdownMenu-FIYz6oAo.cjs";
2
2
  export { DropdownMenu, DropdownMenuProps, _default as default };
@@ -1,2 +1,2 @@
1
- import { n as DropdownMenuProps, r as _default, t as DropdownMenu } from "./DropdownMenu-COkpUmIO.mjs";
1
+ import { n as DropdownMenuProps, r as _default, t as DropdownMenu } from "./DropdownMenu-5qIgQ14A.mjs";
2
2
  export { DropdownMenu, DropdownMenuProps, _default as default };
@@ -5,4 +5,4 @@ interface ErrorProps {
5
5
  }
6
6
  //#endregion
7
7
  export { ErrorProps as t };
8
- //# sourceMappingURL=ErrorProps-DBw1_Z0a.d.mts.map
8
+ //# sourceMappingURL=ErrorProps-BosuK6zJ.d.cts.map
@@ -5,4 +5,4 @@ interface ErrorProps {
5
5
  }
6
6
  //#endregion
7
7
  export { ErrorProps as t };
8
- //# sourceMappingURL=ErrorProps-DLdVsYlk.d.cts.map
8
+ //# sourceMappingURL=ErrorProps-iEj4BIVA.d.mts.map
@@ -1,2 +1,2 @@
1
- import { t as ErrorProps } from "./ErrorProps-DLdVsYlk.cjs";
1
+ import { t as ErrorProps } from "./ErrorProps-BosuK6zJ.cjs";
2
2
  export = ErrorProps;
@@ -1,2 +1,2 @@
1
- import { t as ErrorProps } from "./ErrorProps-DBw1_Z0a.mjs";
1
+ import { t as ErrorProps } from "./ErrorProps-iEj4BIVA.mjs";
2
2
  export { ErrorProps as default };
@@ -1,6 +1,6 @@
1
1
  import { a as Tooltip, n as TextWithDashedUnderline } from "./Tooltip-CDvOu1UN.mjs";
2
- import { n as useFormGroup } from "./useFormGroup-z0epBxXn.mjs";
3
- import { n as useFormField, t as FormControlContext } from "./useFormField-D0RTrPld.mjs";
2
+ import { n as useFormGroup } from "./useFormGroup-BMukAMAd.mjs";
3
+ import { n as useFormField, t as FormControlContext } from "./useFormField-eftOPiXj.mjs";
4
4
  import { Color, Spacing, Typography } from "@persona/design-tokens";
5
5
  import styled, { css } from "styled-components";
6
6
  import { Children, forwardRef, isValidElement, useMemo } from "react";
@@ -165,4 +165,4 @@ const FormControl = forwardRef(function FormControl({ children, hasError, hasWar
165
165
  //#endregion
166
166
  export { FormLabel as a, FormInputContainer as i, ErrorText as n, HelperText as o, FormControl as r, WarningText as s, Container as t };
167
167
 
168
- //# sourceMappingURL=FormControl-fK4HA_yF.mjs.map
168
+ //# sourceMappingURL=FormControl-ArDcvmir.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormControl-fK4HA_yF.mjs","names":[],"sources":["../components/FormControl/FormControl.tsx"],"sourcesContent":["import { Root } from '@radix-ui/react-label';\nimport uniqueId from 'lodash/fp/uniqueId';\nimport {\n Children,\n type ComponentPropsWithoutRef,\n forwardRef,\n isValidElement,\n type ReactNode,\n useMemo,\n} from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Color, Spacing, Typography } from '@persona/design-tokens';\nimport useFormGroup from 'design-system/components/ConfigFormGroup/useFormGroup';\nimport useFormField, {\n FormControlContext,\n type FormControlContextProps,\n} from 'design-system/components/FormControl/useFormField';\nimport Tooltip, { TextWithDashedUnderline } from 'design-system/components/Tooltip';\nimport type ErrorProps from 'design-system/types/ErrorProps';\n\ntype LabelSizes = 'md' | 'sm';\n\ninterface StyledLabelProps {\n $size?: LabelSizes;\n}\n\nconst LabelBase = styled(Root)<StyledLabelProps>`\n ${({ $size }) => {\n switch ($size) {\n default:\n case 'md':\n return css`\n ${Typography.TextMedium};\n `;\n case 'sm':\n return css`\n ${Typography.TextSmall};\n `;\n }\n }}\n\n color: ${({ theme }) => theme.color.text.primary};\n`;\n\nexport interface FormLabelProps extends ComponentPropsWithoutRef<typeof Root> {\n tooltip?: ReactNode;\n size?: LabelSizes;\n side?: 'top' | 'right' | 'bottom' | 'left';\n labelTooltipZIndex?: number;\n}\n\nexport const FormLabel = ({\n tooltip,\n side,\n size,\n children,\n labelTooltipZIndex,\n ...props\n}: FormLabelProps) => {\n const field = useFormField({ labelId: props.id });\n const formGroup = useFormGroup();\n const labelProps = {\n id: field.labelId,\n htmlFor: field.inputId,\n ...props,\n };\n\n // Use labelTooltipZIndex from props, then from form group context\n const effectivelabelTooltipZIndex = labelTooltipZIndex ?? formGroup.labelTooltipZIndex;\n\n if (tooltip) {\n return (\n <Tooltip\n size={size}\n trigger={\n <LabelBase {...labelProps} $size={size}>\n <TextWithDashedUnderline>{children}</TextWithDashedUnderline>\n </LabelBase>\n }\n side={side}\n {...(effectivelabelTooltipZIndex != null && { zIndex: effectivelabelTooltipZIndex })}\n >\n {tooltip}\n </Tooltip>\n );\n }\n\n return (\n <LabelBase {...labelProps} $size={size}>\n {children}\n </LabelBase>\n );\n};\n\n/**\n * Used to target an input field within a FormControl.\n */\nexport const FormInputContainer = styled.div``;\n\nconst HelperTextBase = styled.div<ErrorProps>`\n ${Typography.TextSmall};\n line-height: 1;\n color: ${({ theme, hasWarning, hasError }) =>\n hasError\n ? theme.color.variants.danger.default\n : hasWarning\n ? Color.CoreOrange900\n : theme.color.text.secondary};\n`;\n\ninterface HelperTextProps extends ComponentPropsWithoutRef<'div'>, ErrorProps {}\n\nexport const HelperText = forwardRef<HTMLDivElement, HelperTextProps>(\n function HelperText(props, ref) {\n const field = useFormField({ helperTextId: props.id });\n return (\n <HelperTextBase\n hasError={field.hasError}\n hasWarning={field.hasWarning}\n id={field.helperTextId}\n ref={ref}\n {...props}\n />\n );\n },\n);\n\nexport const ErrorText = forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<'div'>>(\n function ErrorText(props, ref) {\n const field = useFormField({ errorTextId: props.id });\n return <HelperTextBase hasError id={field.errorTextId} ref={ref} {...props} />;\n },\n);\n\nexport const WarningText = forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<'div'>>(\n function WarningText(props, ref) {\n const field = useFormField({ warningTextId: props.id });\n return <HelperTextBase hasWarning id={field.warningTextId} ref={ref} {...props} />;\n },\n);\n\nexport const Container = styled.div<{\n $configField?: boolean;\n $hasRightActions?: boolean;\n $configFieldInputWidth?: string;\n}>`\n display: flex;\n ${({ $configField, $hasRightActions, $configFieldInputWidth }) =>\n $configField\n ? $hasRightActions\n ? css`\n flex-direction: column;\n `\n : css`\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n gap: ${Spacing[4]};\n min-width: 288px;\n\n > ${FormInputContainer} {\n display: flex;\n flex-direction: row-reverse;\n width: ${$configFieldInputWidth ?? '50%'};\n min-width: 180px;\n }\n\n &:has(textarea) {\n flex-direction: column;\n align-items: flex-start;\n gap: ${Spacing[1]};\n\n > ${FormInputContainer} {\n width: 100%;\n }\n }\n `\n : css`\n flex-direction: column;\n margin-bottom: ${Spacing[3]};\n `}\n\n > *:not(:first-child) {\n margin-top: ${({ $configField, $hasRightActions }) =>\n $hasRightActions ? Spacing[1] : $configField ? Spacing[0] : Spacing[2]};\n }\n\n > ${HelperTextBase} {\n margin-top: ${Spacing[1]};\n }\n`;\n\nexport interface FormControlBaseProps extends ErrorProps {\n inputId?: string;\n disabled?: boolean;\n /**\n * Whether to render the form field as a config field.\n * This will remove the label and helper text.\n */\n configField?: boolean;\n /**\n * Whether the form field has right actions.\n */\n hasRightActions?: boolean;\n /**\n * Override the width of the form input container when `configField` is true.\n * Accepts any valid CSS width value (e.g. `'33%'`, `'66.67%'`).\n * Defaults to `'50%'`.\n */\n configFieldInputWidth?: string;\n}\n\nexport interface FormControlProps extends ComponentPropsWithoutRef<'div'>, FormControlBaseProps {}\n\nexport const FormControl = forwardRef<HTMLDivElement, FormControlProps>(function FormControl(\n {\n children,\n hasError,\n hasWarning,\n inputId,\n disabled,\n configField,\n hasRightActions,\n configFieldInputWidth,\n ...props\n }: FormControlProps,\n ref,\n) {\n const generatedId = useMemo(() => uniqueId('pds_form_control__'), []);\n\n const initFormField: FormControlContextProps = {\n hasError,\n hasWarning,\n disabled,\n inputId: inputId ?? generatedId,\n configField,\n };\n\n Children.map(children, (child: ReactNode) => {\n if (isValidElement(child)) {\n switch (child.type) {\n case FormLabel: {\n initFormField.labelId = child.props.id ?? `${initFormField.inputId}-label`;\n break;\n }\n case HelperText: {\n initFormField.helperTextId = child.props.id ?? `${initFormField.inputId}-help-text`;\n break;\n }\n case ErrorText: {\n initFormField.errorTextId = child.props.id ?? `${initFormField.inputId}-error-text`;\n break;\n }\n case WarningText: {\n initFormField.warningTextId = child.props.id ?? `${initFormField.inputId}-warning-text`;\n break;\n }\n }\n }\n });\n\n const field = useFormField(initFormField);\n\n return (\n <FormControlContext.Provider value={field}>\n <Container\n ref={ref}\n $configField={field.configField}\n $hasRightActions={hasRightActions}\n $configFieldInputWidth={configFieldInputWidth}\n {...props}\n >\n {children}\n </Container>\n </FormControlContext.Provider>\n );\n});\n\nexport default FormControl;\n"],"mappings":"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"}
1
+ {"version":3,"file":"FormControl-ArDcvmir.mjs","names":[],"sources":["../components/FormControl/FormControl.tsx"],"sourcesContent":["import { Root } from '@radix-ui/react-label';\nimport uniqueId from 'lodash/fp/uniqueId';\nimport {\n Children,\n type ComponentPropsWithoutRef,\n forwardRef,\n isValidElement,\n type ReactNode,\n useMemo,\n} from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Color, Spacing, Typography } from '@persona/design-tokens';\nimport useFormGroup from 'design-system/components/ConfigFormGroup/useFormGroup';\nimport useFormField, {\n FormControlContext,\n type FormControlContextProps,\n} from 'design-system/components/FormControl/useFormField';\nimport Tooltip, { TextWithDashedUnderline } from 'design-system/components/Tooltip';\nimport type ErrorProps from 'design-system/types/ErrorProps';\n\ntype LabelSizes = 'md' | 'sm';\n\ninterface StyledLabelProps {\n $size?: LabelSizes;\n}\n\nconst LabelBase = styled(Root)<StyledLabelProps>`\n ${({ $size }) => {\n switch ($size) {\n default:\n case 'md':\n return css`\n ${Typography.TextMedium};\n `;\n case 'sm':\n return css`\n ${Typography.TextSmall};\n `;\n }\n }}\n\n color: ${({ theme }) => theme.color.text.primary};\n`;\n\nexport interface FormLabelProps extends ComponentPropsWithoutRef<typeof Root> {\n tooltip?: ReactNode;\n size?: LabelSizes;\n side?: 'top' | 'right' | 'bottom' | 'left';\n labelTooltipZIndex?: number;\n}\n\nexport const FormLabel = ({\n tooltip,\n side,\n size,\n children,\n labelTooltipZIndex,\n ...props\n}: FormLabelProps) => {\n const field = useFormField({ labelId: props.id });\n const formGroup = useFormGroup();\n const labelProps = {\n id: field.labelId,\n htmlFor: field.inputId,\n ...props,\n };\n\n // Use labelTooltipZIndex from props, then from form group context\n const effectivelabelTooltipZIndex = labelTooltipZIndex ?? formGroup.labelTooltipZIndex;\n\n if (tooltip) {\n return (\n <Tooltip\n size={size}\n trigger={\n <LabelBase {...labelProps} $size={size}>\n <TextWithDashedUnderline>{children}</TextWithDashedUnderline>\n </LabelBase>\n }\n side={side}\n {...(effectivelabelTooltipZIndex != null && { zIndex: effectivelabelTooltipZIndex })}\n >\n {tooltip}\n </Tooltip>\n );\n }\n\n return (\n <LabelBase {...labelProps} $size={size}>\n {children}\n </LabelBase>\n );\n};\n\n/**\n * Used to target an input field within a FormControl.\n */\nexport const FormInputContainer = styled.div``;\n\nconst HelperTextBase = styled.div<ErrorProps>`\n ${Typography.TextSmall};\n line-height: 1;\n color: ${({ theme, hasWarning, hasError }) =>\n hasError\n ? theme.color.variants.danger.default\n : hasWarning\n ? Color.CoreOrange900\n : theme.color.text.secondary};\n`;\n\ninterface HelperTextProps extends ComponentPropsWithoutRef<'div'>, ErrorProps {}\n\nexport const HelperText = forwardRef<HTMLDivElement, HelperTextProps>(\n function HelperText(props, ref) {\n const field = useFormField({ helperTextId: props.id });\n return (\n <HelperTextBase\n hasError={field.hasError}\n hasWarning={field.hasWarning}\n id={field.helperTextId}\n ref={ref}\n {...props}\n />\n );\n },\n);\n\nexport const ErrorText = forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<'div'>>(\n function ErrorText(props, ref) {\n const field = useFormField({ errorTextId: props.id });\n return <HelperTextBase hasError id={field.errorTextId} ref={ref} {...props} />;\n },\n);\n\nexport const WarningText = forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<'div'>>(\n function WarningText(props, ref) {\n const field = useFormField({ warningTextId: props.id });\n return <HelperTextBase hasWarning id={field.warningTextId} ref={ref} {...props} />;\n },\n);\n\nexport const Container = styled.div<{\n $configField?: boolean;\n $hasRightActions?: boolean;\n $configFieldInputWidth?: string;\n}>`\n display: flex;\n ${({ $configField, $hasRightActions, $configFieldInputWidth }) =>\n $configField\n ? $hasRightActions\n ? css`\n flex-direction: column;\n `\n : css`\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n gap: ${Spacing[4]};\n min-width: 288px;\n\n > ${FormInputContainer} {\n display: flex;\n flex-direction: row-reverse;\n width: ${$configFieldInputWidth ?? '50%'};\n min-width: 180px;\n }\n\n &:has(textarea) {\n flex-direction: column;\n align-items: flex-start;\n gap: ${Spacing[1]};\n\n > ${FormInputContainer} {\n width: 100%;\n }\n }\n `\n : css`\n flex-direction: column;\n margin-bottom: ${Spacing[3]};\n `}\n\n > *:not(:first-child) {\n margin-top: ${({ $configField, $hasRightActions }) =>\n $hasRightActions ? Spacing[1] : $configField ? Spacing[0] : Spacing[2]};\n }\n\n > ${HelperTextBase} {\n margin-top: ${Spacing[1]};\n }\n`;\n\nexport interface FormControlBaseProps extends ErrorProps {\n inputId?: string;\n disabled?: boolean;\n /**\n * Whether to render the form field as a config field.\n * This will remove the label and helper text.\n */\n configField?: boolean;\n /**\n * Whether the form field has right actions.\n */\n hasRightActions?: boolean;\n /**\n * Override the width of the form input container when `configField` is true.\n * Accepts any valid CSS width value (e.g. `'33%'`, `'66.67%'`).\n * Defaults to `'50%'`.\n */\n configFieldInputWidth?: string;\n}\n\nexport interface FormControlProps extends ComponentPropsWithoutRef<'div'>, FormControlBaseProps {}\n\nexport const FormControl = forwardRef<HTMLDivElement, FormControlProps>(function FormControl(\n {\n children,\n hasError,\n hasWarning,\n inputId,\n disabled,\n configField,\n hasRightActions,\n configFieldInputWidth,\n ...props\n }: FormControlProps,\n ref,\n) {\n const generatedId = useMemo(() => uniqueId('pds_form_control__'), []);\n\n const initFormField: FormControlContextProps = {\n hasError,\n hasWarning,\n disabled,\n inputId: inputId ?? generatedId,\n configField,\n };\n\n Children.map(children, (child: ReactNode) => {\n if (isValidElement(child)) {\n switch (child.type) {\n case FormLabel: {\n initFormField.labelId = child.props.id ?? `${initFormField.inputId}-label`;\n break;\n }\n case HelperText: {\n initFormField.helperTextId = child.props.id ?? `${initFormField.inputId}-help-text`;\n break;\n }\n case ErrorText: {\n initFormField.errorTextId = child.props.id ?? `${initFormField.inputId}-error-text`;\n break;\n }\n case WarningText: {\n initFormField.warningTextId = child.props.id ?? `${initFormField.inputId}-warning-text`;\n break;\n }\n }\n }\n });\n\n const field = useFormField(initFormField);\n\n return (\n <FormControlContext.Provider value={field}>\n <Container\n ref={ref}\n $configField={field.configField}\n $hasRightActions={hasRightActions}\n $configFieldInputWidth={configFieldInputWidth}\n {...props}\n >\n {children}\n </Container>\n </FormControlContext.Provider>\n );\n});\n\nexport default FormControl;\n"],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- import { t as ErrorProps } from "./ErrorProps-DLdVsYlk.cjs";
1
+ import { t as ErrorProps } from "./ErrorProps-BosuK6zJ.cjs";
2
2
  import * as _$react from "react";
3
3
  import { ComponentPropsWithoutRef, ReactNode } from "react";
4
4
  import * as _$styled_components0 from "styled-components";
@@ -57,4 +57,4 @@ interface FormControlProps extends ComponentPropsWithoutRef<'div'>, FormControlB
57
57
  declare const FormControl: _$react.ForwardRefExoticComponent<FormControlProps & _$react.RefAttributes<HTMLDivElement>>;
58
58
  //#endregion
59
59
  export { FormControlProps as a, FormLabelProps as c, FormControlBaseProps as i, HelperText as l, ErrorText as n, FormInputContainer as o, FormControl as r, FormLabel as s, Container as t, WarningText as u };
60
- //# sourceMappingURL=FormControl-OqBTbSwv.d.cts.map
60
+ //# sourceMappingURL=FormControl-BrsML00L.d.cts.map
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require("./chunk-CKQMccvm.cjs");
2
2
  const require_Tooltip = require("./Tooltip-vylydKVv.cjs");
3
- const require_useFormGroup = require("./useFormGroup-DQJdKaL9.cjs");
4
- const require_useFormField = require("./useFormField-BpYf3CAW.cjs");
3
+ const require_useFormGroup = require("./useFormGroup-BE7v9eAj.cjs");
4
+ const require_useFormField = require("./useFormField-B98dmreO.cjs");
5
5
  let _persona_design_tokens = require("@persona/design-tokens");
6
6
  let styled_components = require("styled-components");
7
7
  styled_components = require_chunk.__toESM(styled_components);
@@ -209,4 +209,4 @@ Object.defineProperty(exports, "WarningText", {
209
209
  }
210
210
  });
211
211
 
212
- //# sourceMappingURL=FormControl-DjxkL5Ft.cjs.map
212
+ //# sourceMappingURL=FormControl-Czt95h2L.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormControl-DjxkL5Ft.cjs","names":["Root","Typography","useFormField","useFormGroup","Tooltip","TextWithDashedUnderline","Color","Spacing","FormControlContext"],"sources":["../components/FormControl/FormControl.tsx"],"sourcesContent":["import { Root } from '@radix-ui/react-label';\nimport uniqueId from 'lodash/fp/uniqueId';\nimport {\n Children,\n type ComponentPropsWithoutRef,\n forwardRef,\n isValidElement,\n type ReactNode,\n useMemo,\n} from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Color, Spacing, Typography } from '@persona/design-tokens';\nimport useFormGroup from 'design-system/components/ConfigFormGroup/useFormGroup';\nimport useFormField, {\n FormControlContext,\n type FormControlContextProps,\n} from 'design-system/components/FormControl/useFormField';\nimport Tooltip, { TextWithDashedUnderline } from 'design-system/components/Tooltip';\nimport type ErrorProps from 'design-system/types/ErrorProps';\n\ntype LabelSizes = 'md' | 'sm';\n\ninterface StyledLabelProps {\n $size?: LabelSizes;\n}\n\nconst LabelBase = styled(Root)<StyledLabelProps>`\n ${({ $size }) => {\n switch ($size) {\n default:\n case 'md':\n return css`\n ${Typography.TextMedium};\n `;\n case 'sm':\n return css`\n ${Typography.TextSmall};\n `;\n }\n }}\n\n color: ${({ theme }) => theme.color.text.primary};\n`;\n\nexport interface FormLabelProps extends ComponentPropsWithoutRef<typeof Root> {\n tooltip?: ReactNode;\n size?: LabelSizes;\n side?: 'top' | 'right' | 'bottom' | 'left';\n labelTooltipZIndex?: number;\n}\n\nexport const FormLabel = ({\n tooltip,\n side,\n size,\n children,\n labelTooltipZIndex,\n ...props\n}: FormLabelProps) => {\n const field = useFormField({ labelId: props.id });\n const formGroup = useFormGroup();\n const labelProps = {\n id: field.labelId,\n htmlFor: field.inputId,\n ...props,\n };\n\n // Use labelTooltipZIndex from props, then from form group context\n const effectivelabelTooltipZIndex = labelTooltipZIndex ?? formGroup.labelTooltipZIndex;\n\n if (tooltip) {\n return (\n <Tooltip\n size={size}\n trigger={\n <LabelBase {...labelProps} $size={size}>\n <TextWithDashedUnderline>{children}</TextWithDashedUnderline>\n </LabelBase>\n }\n side={side}\n {...(effectivelabelTooltipZIndex != null && { zIndex: effectivelabelTooltipZIndex })}\n >\n {tooltip}\n </Tooltip>\n );\n }\n\n return (\n <LabelBase {...labelProps} $size={size}>\n {children}\n </LabelBase>\n );\n};\n\n/**\n * Used to target an input field within a FormControl.\n */\nexport const FormInputContainer = styled.div``;\n\nconst HelperTextBase = styled.div<ErrorProps>`\n ${Typography.TextSmall};\n line-height: 1;\n color: ${({ theme, hasWarning, hasError }) =>\n hasError\n ? theme.color.variants.danger.default\n : hasWarning\n ? Color.CoreOrange900\n : theme.color.text.secondary};\n`;\n\ninterface HelperTextProps extends ComponentPropsWithoutRef<'div'>, ErrorProps {}\n\nexport const HelperText = forwardRef<HTMLDivElement, HelperTextProps>(\n function HelperText(props, ref) {\n const field = useFormField({ helperTextId: props.id });\n return (\n <HelperTextBase\n hasError={field.hasError}\n hasWarning={field.hasWarning}\n id={field.helperTextId}\n ref={ref}\n {...props}\n />\n );\n },\n);\n\nexport const ErrorText = forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<'div'>>(\n function ErrorText(props, ref) {\n const field = useFormField({ errorTextId: props.id });\n return <HelperTextBase hasError id={field.errorTextId} ref={ref} {...props} />;\n },\n);\n\nexport const WarningText = forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<'div'>>(\n function WarningText(props, ref) {\n const field = useFormField({ warningTextId: props.id });\n return <HelperTextBase hasWarning id={field.warningTextId} ref={ref} {...props} />;\n },\n);\n\nexport const Container = styled.div<{\n $configField?: boolean;\n $hasRightActions?: boolean;\n $configFieldInputWidth?: string;\n}>`\n display: flex;\n ${({ $configField, $hasRightActions, $configFieldInputWidth }) =>\n $configField\n ? $hasRightActions\n ? css`\n flex-direction: column;\n `\n : css`\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n gap: ${Spacing[4]};\n min-width: 288px;\n\n > ${FormInputContainer} {\n display: flex;\n flex-direction: row-reverse;\n width: ${$configFieldInputWidth ?? '50%'};\n min-width: 180px;\n }\n\n &:has(textarea) {\n flex-direction: column;\n align-items: flex-start;\n gap: ${Spacing[1]};\n\n > ${FormInputContainer} {\n width: 100%;\n }\n }\n `\n : css`\n flex-direction: column;\n margin-bottom: ${Spacing[3]};\n `}\n\n > *:not(:first-child) {\n margin-top: ${({ $configField, $hasRightActions }) =>\n $hasRightActions ? Spacing[1] : $configField ? Spacing[0] : Spacing[2]};\n }\n\n > ${HelperTextBase} {\n margin-top: ${Spacing[1]};\n }\n`;\n\nexport interface FormControlBaseProps extends ErrorProps {\n inputId?: string;\n disabled?: boolean;\n /**\n * Whether to render the form field as a config field.\n * This will remove the label and helper text.\n */\n configField?: boolean;\n /**\n * Whether the form field has right actions.\n */\n hasRightActions?: boolean;\n /**\n * Override the width of the form input container when `configField` is true.\n * Accepts any valid CSS width value (e.g. `'33%'`, `'66.67%'`).\n * Defaults to `'50%'`.\n */\n configFieldInputWidth?: string;\n}\n\nexport interface FormControlProps extends ComponentPropsWithoutRef<'div'>, FormControlBaseProps {}\n\nexport const FormControl = forwardRef<HTMLDivElement, FormControlProps>(function FormControl(\n {\n children,\n hasError,\n hasWarning,\n inputId,\n disabled,\n configField,\n hasRightActions,\n configFieldInputWidth,\n ...props\n }: FormControlProps,\n ref,\n) {\n const generatedId = useMemo(() => uniqueId('pds_form_control__'), []);\n\n const initFormField: FormControlContextProps = {\n hasError,\n hasWarning,\n disabled,\n inputId: inputId ?? generatedId,\n configField,\n };\n\n Children.map(children, (child: ReactNode) => {\n if (isValidElement(child)) {\n switch (child.type) {\n case FormLabel: {\n initFormField.labelId = child.props.id ?? `${initFormField.inputId}-label`;\n break;\n }\n case HelperText: {\n initFormField.helperTextId = child.props.id ?? `${initFormField.inputId}-help-text`;\n break;\n }\n case ErrorText: {\n initFormField.errorTextId = child.props.id ?? `${initFormField.inputId}-error-text`;\n break;\n }\n case WarningText: {\n initFormField.warningTextId = child.props.id ?? `${initFormField.inputId}-warning-text`;\n break;\n }\n }\n }\n });\n\n const field = useFormField(initFormField);\n\n return (\n <FormControlContext.Provider value={field}>\n <Container\n ref={ref}\n $configField={field.configField}\n $hasRightActions={hasRightActions}\n $configFieldInputWidth={configFieldInputWidth}\n {...props}\n >\n {children}\n </Container>\n </FormControlContext.Provider>\n );\n});\n\nexport default FormControl;\n"],"mappings":"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"}
1
+ {"version":3,"file":"FormControl-Czt95h2L.cjs","names":["Root","Typography","useFormField","useFormGroup","Tooltip","TextWithDashedUnderline","Color","Spacing","FormControlContext"],"sources":["../components/FormControl/FormControl.tsx"],"sourcesContent":["import { Root } from '@radix-ui/react-label';\nimport uniqueId from 'lodash/fp/uniqueId';\nimport {\n Children,\n type ComponentPropsWithoutRef,\n forwardRef,\n isValidElement,\n type ReactNode,\n useMemo,\n} from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Color, Spacing, Typography } from '@persona/design-tokens';\nimport useFormGroup from 'design-system/components/ConfigFormGroup/useFormGroup';\nimport useFormField, {\n FormControlContext,\n type FormControlContextProps,\n} from 'design-system/components/FormControl/useFormField';\nimport Tooltip, { TextWithDashedUnderline } from 'design-system/components/Tooltip';\nimport type ErrorProps from 'design-system/types/ErrorProps';\n\ntype LabelSizes = 'md' | 'sm';\n\ninterface StyledLabelProps {\n $size?: LabelSizes;\n}\n\nconst LabelBase = styled(Root)<StyledLabelProps>`\n ${({ $size }) => {\n switch ($size) {\n default:\n case 'md':\n return css`\n ${Typography.TextMedium};\n `;\n case 'sm':\n return css`\n ${Typography.TextSmall};\n `;\n }\n }}\n\n color: ${({ theme }) => theme.color.text.primary};\n`;\n\nexport interface FormLabelProps extends ComponentPropsWithoutRef<typeof Root> {\n tooltip?: ReactNode;\n size?: LabelSizes;\n side?: 'top' | 'right' | 'bottom' | 'left';\n labelTooltipZIndex?: number;\n}\n\nexport const FormLabel = ({\n tooltip,\n side,\n size,\n children,\n labelTooltipZIndex,\n ...props\n}: FormLabelProps) => {\n const field = useFormField({ labelId: props.id });\n const formGroup = useFormGroup();\n const labelProps = {\n id: field.labelId,\n htmlFor: field.inputId,\n ...props,\n };\n\n // Use labelTooltipZIndex from props, then from form group context\n const effectivelabelTooltipZIndex = labelTooltipZIndex ?? formGroup.labelTooltipZIndex;\n\n if (tooltip) {\n return (\n <Tooltip\n size={size}\n trigger={\n <LabelBase {...labelProps} $size={size}>\n <TextWithDashedUnderline>{children}</TextWithDashedUnderline>\n </LabelBase>\n }\n side={side}\n {...(effectivelabelTooltipZIndex != null && { zIndex: effectivelabelTooltipZIndex })}\n >\n {tooltip}\n </Tooltip>\n );\n }\n\n return (\n <LabelBase {...labelProps} $size={size}>\n {children}\n </LabelBase>\n );\n};\n\n/**\n * Used to target an input field within a FormControl.\n */\nexport const FormInputContainer = styled.div``;\n\nconst HelperTextBase = styled.div<ErrorProps>`\n ${Typography.TextSmall};\n line-height: 1;\n color: ${({ theme, hasWarning, hasError }) =>\n hasError\n ? theme.color.variants.danger.default\n : hasWarning\n ? Color.CoreOrange900\n : theme.color.text.secondary};\n`;\n\ninterface HelperTextProps extends ComponentPropsWithoutRef<'div'>, ErrorProps {}\n\nexport const HelperText = forwardRef<HTMLDivElement, HelperTextProps>(\n function HelperText(props, ref) {\n const field = useFormField({ helperTextId: props.id });\n return (\n <HelperTextBase\n hasError={field.hasError}\n hasWarning={field.hasWarning}\n id={field.helperTextId}\n ref={ref}\n {...props}\n />\n );\n },\n);\n\nexport const ErrorText = forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<'div'>>(\n function ErrorText(props, ref) {\n const field = useFormField({ errorTextId: props.id });\n return <HelperTextBase hasError id={field.errorTextId} ref={ref} {...props} />;\n },\n);\n\nexport const WarningText = forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<'div'>>(\n function WarningText(props, ref) {\n const field = useFormField({ warningTextId: props.id });\n return <HelperTextBase hasWarning id={field.warningTextId} ref={ref} {...props} />;\n },\n);\n\nexport const Container = styled.div<{\n $configField?: boolean;\n $hasRightActions?: boolean;\n $configFieldInputWidth?: string;\n}>`\n display: flex;\n ${({ $configField, $hasRightActions, $configFieldInputWidth }) =>\n $configField\n ? $hasRightActions\n ? css`\n flex-direction: column;\n `\n : css`\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n gap: ${Spacing[4]};\n min-width: 288px;\n\n > ${FormInputContainer} {\n display: flex;\n flex-direction: row-reverse;\n width: ${$configFieldInputWidth ?? '50%'};\n min-width: 180px;\n }\n\n &:has(textarea) {\n flex-direction: column;\n align-items: flex-start;\n gap: ${Spacing[1]};\n\n > ${FormInputContainer} {\n width: 100%;\n }\n }\n `\n : css`\n flex-direction: column;\n margin-bottom: ${Spacing[3]};\n `}\n\n > *:not(:first-child) {\n margin-top: ${({ $configField, $hasRightActions }) =>\n $hasRightActions ? Spacing[1] : $configField ? Spacing[0] : Spacing[2]};\n }\n\n > ${HelperTextBase} {\n margin-top: ${Spacing[1]};\n }\n`;\n\nexport interface FormControlBaseProps extends ErrorProps {\n inputId?: string;\n disabled?: boolean;\n /**\n * Whether to render the form field as a config field.\n * This will remove the label and helper text.\n */\n configField?: boolean;\n /**\n * Whether the form field has right actions.\n */\n hasRightActions?: boolean;\n /**\n * Override the width of the form input container when `configField` is true.\n * Accepts any valid CSS width value (e.g. `'33%'`, `'66.67%'`).\n * Defaults to `'50%'`.\n */\n configFieldInputWidth?: string;\n}\n\nexport interface FormControlProps extends ComponentPropsWithoutRef<'div'>, FormControlBaseProps {}\n\nexport const FormControl = forwardRef<HTMLDivElement, FormControlProps>(function FormControl(\n {\n children,\n hasError,\n hasWarning,\n inputId,\n disabled,\n configField,\n hasRightActions,\n configFieldInputWidth,\n ...props\n }: FormControlProps,\n ref,\n) {\n const generatedId = useMemo(() => uniqueId('pds_form_control__'), []);\n\n const initFormField: FormControlContextProps = {\n hasError,\n hasWarning,\n disabled,\n inputId: inputId ?? generatedId,\n configField,\n };\n\n Children.map(children, (child: ReactNode) => {\n if (isValidElement(child)) {\n switch (child.type) {\n case FormLabel: {\n initFormField.labelId = child.props.id ?? `${initFormField.inputId}-label`;\n break;\n }\n case HelperText: {\n initFormField.helperTextId = child.props.id ?? `${initFormField.inputId}-help-text`;\n break;\n }\n case ErrorText: {\n initFormField.errorTextId = child.props.id ?? `${initFormField.inputId}-error-text`;\n break;\n }\n case WarningText: {\n initFormField.warningTextId = child.props.id ?? `${initFormField.inputId}-warning-text`;\n break;\n }\n }\n }\n });\n\n const field = useFormField(initFormField);\n\n return (\n <FormControlContext.Provider value={field}>\n <Container\n ref={ref}\n $configField={field.configField}\n $hasRightActions={hasRightActions}\n $configFieldInputWidth={configFieldInputWidth}\n {...props}\n >\n {children}\n </Container>\n </FormControlContext.Provider>\n );\n});\n\nexport default FormControl;\n"],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- import { t as ErrorProps } from "./ErrorProps-DBw1_Z0a.mjs";
1
+ import { t as ErrorProps } from "./ErrorProps-iEj4BIVA.mjs";
2
2
  import * as _$styled_components0 from "styled-components";
3
3
  import * as _$react from "react";
4
4
  import { ComponentPropsWithoutRef, ReactNode } from "react";
@@ -57,4 +57,4 @@ interface FormControlProps extends ComponentPropsWithoutRef<'div'>, FormControlB
57
57
  declare const FormControl: _$react.ForwardRefExoticComponent<FormControlProps & _$react.RefAttributes<HTMLDivElement>>;
58
58
  //#endregion
59
59
  export { FormControlProps as a, FormLabelProps as c, FormControlBaseProps as i, HelperText as l, ErrorText as n, FormInputContainer as o, FormControl as r, FormLabel as s, Container as t, WarningText as u };
60
- //# sourceMappingURL=FormControl-vfFzrYhv.d.mts.map
60
+ //# sourceMappingURL=FormControl-DnsC4vTX.d.mts.map
@@ -1,2 +1,2 @@
1
- import { a as FormControlProps, c as FormLabelProps, i as FormControlBaseProps, l as HelperText, n as ErrorText, o as FormInputContainer, r as FormControl, s as FormLabel, t as Container, u as WarningText } from "./FormControl-OqBTbSwv.cjs";
1
+ import { a as FormControlProps, c as FormLabelProps, i as FormControlBaseProps, l as HelperText, n as ErrorText, o as FormInputContainer, r as FormControl, s as FormLabel, t as Container, u as WarningText } from "./FormControl-BrsML00L.cjs";
2
2
  export { Container, ErrorText, FormControl, FormControl as default, FormControlBaseProps, FormControlProps, FormInputContainer, FormLabel, FormLabelProps, HelperText, WarningText };
@@ -1,2 +1,2 @@
1
- import { a as FormControlProps, c as FormLabelProps, i as FormControlBaseProps, l as HelperText, n as ErrorText, o as FormInputContainer, r as FormControl, s as FormLabel, t as Container, u as WarningText } from "./FormControl-vfFzrYhv.mjs";
1
+ import { a as FormControlProps, c as FormLabelProps, i as FormControlBaseProps, l as HelperText, n as ErrorText, o as FormInputContainer, r as FormControl, s as FormLabel, t as Container, u as WarningText } from "./FormControl-DnsC4vTX.mjs";
2
2
  export { Container, ErrorText, FormControl, FormControl as default, FormControlBaseProps, FormControlProps, FormInputContainer, FormLabel, FormLabelProps, HelperText, WarningText };
@@ -1,4 +1,4 @@
1
- import { c as ParagraphProps, o as LabelProps, u as SpanProps } from "./Text-CPd0r0w2.mjs";
1
+ import { c as ParagraphProps, o as LabelProps, u as SpanProps } from "./Text-D3FXEnG6.mjs";
2
2
  import * as _$styled_components0 from "styled-components";
3
3
  import * as _$react from "react";
4
4
 
@@ -1,4 +1,4 @@
1
- import { a as FormControlProps, l as HelperText, n as ErrorText, s as FormLabel, u as WarningText } from "./FormControl-vfFzrYhv.mjs";
1
+ import { a as FormControlProps, l as HelperText, n as ErrorText, s as FormLabel, u as WarningText } from "./FormControl-DnsC4vTX.mjs";
2
2
  import * as _$react from "react";
3
3
  import { ComponentPropsWithRef, ReactElement, ReactNode } from "react";
4
4
 
@@ -66,4 +66,4 @@ interface FormFieldProps extends Omit<FormControlProps, 'children'>, FormFieldBa
66
66
  declare const FormField: _$react.ForwardRefExoticComponent<FormFieldProps & _$react.RefAttributes<HTMLDivElement>>;
67
67
  //#endregion
68
68
  export { FormFieldBaseProps as n, FormFieldProps as r, FormField as t };
69
- //# sourceMappingURL=FormField-24UPuoL6.d.mts.map
69
+ //# sourceMappingURL=FormField-BddCs6P0.d.mts.map
@@ -1,4 +1,4 @@
1
- import { a as FormControlProps, l as HelperText, n as ErrorText, s as FormLabel, u as WarningText } from "./FormControl-OqBTbSwv.cjs";
1
+ import { a as FormControlProps, l as HelperText, n as ErrorText, s as FormLabel, u as WarningText } from "./FormControl-BrsML00L.cjs";
2
2
  import * as _$react from "react";
3
3
  import { ComponentPropsWithRef, ReactElement, ReactNode } from "react";
4
4
 
@@ -66,4 +66,4 @@ interface FormFieldProps extends Omit<FormControlProps, 'children'>, FormFieldBa
66
66
  declare const FormField: _$react.ForwardRefExoticComponent<FormFieldProps & _$react.RefAttributes<HTMLDivElement>>;
67
67
  //#endregion
68
68
  export { FormFieldBaseProps as n, FormFieldProps as r, FormField as t };
69
- //# sourceMappingURL=FormField-Cqwi_PyR.d.cts.map
69
+ //# sourceMappingURL=FormField-DoSXvnJ3.d.cts.map
@@ -1,2 +1,2 @@
1
- import { n as FormFieldBaseProps, r as FormFieldProps, t as FormField } from "./FormField-Cqwi_PyR.cjs";
1
+ import { n as FormFieldBaseProps, r as FormFieldProps, t as FormField } from "./FormField-DoSXvnJ3.cjs";
2
2
  export { FormField, FormField as default, FormFieldBaseProps, FormFieldProps };
@@ -1,2 +1,2 @@
1
- import { n as FormFieldBaseProps, r as FormFieldProps, t as FormField } from "./FormField-24UPuoL6.mjs";
1
+ import { n as FormFieldBaseProps, r as FormFieldProps, t as FormField } from "./FormField-BddCs6P0.mjs";
2
2
  export { FormField, FormField as default, FormFieldBaseProps, FormFieldProps };
@@ -32,4 +32,4 @@ declare const Root: ({
32
32
  }: HeaderProps & ComponentPropsWithoutRef<"div">) => _$react_jsx_runtime0.JSX.Element;
33
33
  //#endregion
34
34
  export { Root as a, HeaderProps as i, Header as n, Title as o, HeaderContainer as r, TitleContainer as s, ActionsContainer as t };
35
- //# sourceMappingURL=Header-WNGlG541.d.mts.map
35
+ //# sourceMappingURL=Header-B-Us54dR.d.mts.map
@@ -32,4 +32,4 @@ declare const Root: ({
32
32
  }: HeaderProps & ComponentPropsWithoutRef<"div">) => _$react_jsx_runtime0.JSX.Element;
33
33
  //#endregion
34
34
  export { Root as a, HeaderProps as i, Header as n, Title as o, HeaderContainer as r, TitleContainer as s, ActionsContainer as t };
35
- //# sourceMappingURL=Header-D8oDtnIL.d.cts.map
35
+ //# sourceMappingURL=Header-CkZvzbzL.d.cts.map