@povio/ui 5.0.0-rc.9 → 6.0.0-rc.10

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 (644) hide show
  1. package/MIGRATION.md +673 -0
  2. package/README.md +206 -55
  3. package/dist/{Accordion-BzwO4_ml.js → Accordion-ORBin0EZ.js} +13 -119
  4. package/dist/{Alert-DfiJbKH0.d.ts → Alert-D4X7OWiv.d.ts} +3 -3
  5. package/dist/{AlertDialog-OWTbR4km.d.ts → AlertDialog-DklLDjmw.d.ts} +3 -3
  6. package/dist/Autocomplete-BgFz3kuR.d.ts +23 -0
  7. package/dist/Autocomplete-CsJAU233.js +145 -0
  8. package/dist/Autocomplete.bound-CGC8m4dK.js +28 -0
  9. package/dist/Autocomplete.bound-CpHZZ3C9.d.ts +9 -0
  10. package/dist/{Badge-CBNpj823.d.ts → Badge-Db1ndK67.d.ts} +2 -2
  11. package/dist/{BadgeButton-Ccgt3oGO.d.ts → BadgeButton-BPhWDAnc.d.ts} +2 -2
  12. package/dist/{BottomSheet-DbQuzfAB.d.ts → BottomSheet-BZmDJBR-.d.ts} +1 -1
  13. package/dist/{BottomSheet-BXLE3161.js → BottomSheet-CGipksM_.js} +12 -86
  14. package/dist/{BottomSheet.lazy-D9LCEo7s.d.ts → BottomSheet.lazy-CuJMUeJP.d.ts} +1 -1
  15. package/dist/{Breadcrumbs-CUV6CU8Q.d.ts → Breadcrumbs-CcB0oOF8.d.ts} +1 -1
  16. package/dist/{Breadcrumbs-FF8hMfXd.js → Breadcrumbs-a1-q_he0.js} +20 -17
  17. package/dist/Button-0SswSdDg.d.ts +13 -0
  18. package/dist/Button-BaODzvZd.js +16 -0
  19. package/dist/{Button-D6KlWSFL.js → Button-C1YB5dOw.js} +3 -3
  20. package/dist/ButtonBase-CZuEy3Pk.d.ts +32 -0
  21. package/dist/ButtonBase-s-VV7oCa.js +87 -0
  22. package/dist/{ButtonContent-c7lJayVQ.js → ButtonContent-Dztbuz3q.js} +5 -14
  23. package/dist/{Calendar-BTjajO6i.js → Calendar-Cr6B7SDx.js} +29 -181
  24. package/dist/Calendar.lazy-MJisXRJK.js +131 -0
  25. package/dist/{CheckContent-D7sZPmzx.js → CheckContent-BKLnTPZr.js} +2 -2
  26. package/dist/{Checkbox-CV1ILXXO.js → Checkbox-Bjsbx-wK.js} +21 -38
  27. package/dist/{Checkbox-DVTWaMKa.d.ts → Checkbox-w2j5hLOQ.d.ts} +9 -8
  28. package/dist/Checkbox.bound-D2nBglJz.js +33 -0
  29. package/dist/Checkbox.bound-DD_RCjVm.d.ts +9 -0
  30. package/dist/CheckboxCheckmark-DWsYVZuu.js +25 -0
  31. package/dist/CheckboxGroup-B3O3IUiu.js +141 -0
  32. package/dist/CheckboxGroup-BYI15Y09.d.ts +30 -0
  33. package/dist/CheckboxGroup.bound-DY0HKGSh.js +32 -0
  34. package/dist/CheckboxGroup.bound-QiJ-P0KR.d.ts +9 -0
  35. package/dist/ComboBox-ChsdI0lt.js +212 -0
  36. package/dist/{DatePicker-DOLL7mkc.js → DatePicker-D-YXdY2z.js} +47 -54
  37. package/dist/{DatePicker-8xSs_jNd.d.ts → DatePicker-QzfQf21b.d.ts} +21 -10
  38. package/dist/DatePicker.bound-DoCAqhM4.d.ts +9 -0
  39. package/dist/DatePicker.bound-a-6NJTgy.js +36 -0
  40. package/dist/{DatePickerInput-BLBcySA2.js → DatePickerInput-2CZtsxdK.js} +66 -301
  41. package/dist/{DatePickerInput-D81ZJ3fT.d.ts → DatePickerInput-vLlL5ATh.d.ts} +3 -3
  42. package/dist/{DateRangePicker-Bfq-yDm7.d.ts → DateRangePicker-3pPW0ZBV.d.ts} +30 -10
  43. package/dist/{DateRangePicker-BF-1CztH.js → DateRangePicker-tuM8Qyvp.js} +80 -330
  44. package/dist/DateRangePicker.bound-B5SKOkVM.js +35 -0
  45. package/dist/DateRangePicker.bound-vFyFw4wA.d.ts +9 -0
  46. package/dist/{DateTimePicker-Cj0qvJUz.js → DateTimePicker-8BVP2qeR.js} +47 -48
  47. package/dist/{DateTimePicker-D4lHyf6P.d.ts → DateTimePicker-BTRIUagV.d.ts} +21 -11
  48. package/dist/DateTimePicker.bound-C3y8TqPk.js +32 -0
  49. package/dist/DateTimePicker.bound-X4DTyQ1b.d.ts +9 -0
  50. package/dist/{Dialog-9manOgMA.js → Dialog-Bn43feu0.js} +13 -10
  51. package/dist/{Dialog-CKLkS00H.js → Dialog-C9H9_BmK.js} +53 -29
  52. package/dist/Dialog-CO9xljD3.d.ts +21 -0
  53. package/dist/Disclosure-BRSkMbZQ.js +109 -0
  54. package/dist/{DropdownMenu-5jmtgLXd.js → DropdownMenu-DS0RaEfH.js} +13 -31
  55. package/dist/DropdownMenu-D_9z9ond.d.ts +25 -0
  56. package/dist/{DropdownMenuDesktop-Cl9gZVq0.js → DropdownMenuDesktop-DGPIfex-.js} +7 -28
  57. package/dist/{FileInput-C4CE5kuP.d.ts → FileInput-BEaECoBS.d.ts} +26 -22
  58. package/dist/{FileInput-Br5DQaGQ.js → FileInput-DNCKhAq-.js} +36 -49
  59. package/dist/FileInput.bound-D2HuuqSb.d.ts +8 -0
  60. package/dist/FileInput.bound-DCSair97.js +30 -0
  61. package/dist/{FileTrigger-Cthk5_Wp.js → FileTrigger-DlryDp2T.js} +6 -6
  62. package/dist/FileUpload-BUTSqHVk.d.ts +11 -0
  63. package/dist/{FileUpload--7ub3EZO.js → FileUpload-CQFCrvCI.js} +279 -249
  64. package/dist/FileUpload.bound-BwetBdi7.js +30 -0
  65. package/dist/FileUpload.bound-CGQXb4iT.d.ts +16 -0
  66. package/dist/{FileUploadContainer-042ztsaL.d.ts → FileUploadContainer-Dzg5aXXZ.d.ts} +1 -1
  67. package/dist/{Form-DlQcyN1f.js → Form-CqF1SaVw.js} +2 -2
  68. package/dist/{FormField-Byiehm9y.d.ts → FormField-DGyCDxOp.d.ts} +7 -2
  69. package/dist/FormField-dduTMkNH.js +142 -0
  70. package/dist/{FormFieldError-DeOHHLo2.js → FormFieldError-DTT5TUQ1.js} +3 -14
  71. package/dist/{FormFieldHeaderTooltip-BV2Ju4oB.js → FormFieldHeaderTooltip-Dt-g40Tc.js} +4 -4
  72. package/dist/FormLayout-CBYgWvwW.d.ts +47 -0
  73. package/dist/{Heading-nI1_VOaE.js → Heading-D4XFYv__.js} +2 -2
  74. package/dist/IconButton-shH_9wcl.d.ts +25 -0
  75. package/dist/{IconSlot-DSK7qNxc.js → IconSlot-CqNuZl0E.js} +4 -4
  76. package/dist/{iconSlot.cva-CnpFzAOR.d.ts → IconSlot-DcEDPaNb.d.ts} +3 -10
  77. package/dist/{InlineTooltipWrapper-BpApaGXV.js → InlineTooltipWrapper-CKTiFpZn.js} +3 -3
  78. package/dist/{Input-BsbLZDtC.js → Input-BG0Xjw5X.js} +2 -2
  79. package/dist/Input-BIuNQb5u.js +245 -0
  80. package/dist/{Input-DOanwj3l.d.ts → Input-CTp_9mS9.d.ts} +13 -9
  81. package/dist/Input.bound-B9a62ylL.d.ts +9 -0
  82. package/dist/Input.bound-QpE3qJqT.js +31 -0
  83. package/dist/{InputContent-CXuP1ghQ.d.ts → InputContent-BCNkN4Fx.d.ts} +5 -5
  84. package/dist/InputContent-C5JlwN5b.js +102 -0
  85. package/dist/{Label-B2-B-uFY.js → Label-BGvF9vWx.js} +2 -2
  86. package/dist/{Link-FupWOW1f.js → Link-Chux-Clm.js} +2 -2
  87. package/dist/{Link-Ow9H7kNv.d.ts → Link-PvYB_M-j.d.ts} +5 -3
  88. package/dist/{ListBox-CL8Ar4Q_.js → ListBox-DhR5kojP.js} +10 -11
  89. package/dist/{MenuItem-DHyqOqln.d.ts → MenuItem-U3-pu1j5.d.ts} +1 -1
  90. package/dist/{Modal-w60dVQcb.js → Modal-DcLWF9cB.js} +58 -20
  91. package/dist/NumberField-CpkLBjIM.js +249 -0
  92. package/dist/{NumberField-Cb9Gf6QJ.d.ts → NumberField-WXebfxjK.d.ts} +13 -9
  93. package/dist/NumberField.bound-BbZLqewF.js +32 -0
  94. package/dist/NumberField.bound-Dy0A5iVc.d.ts +9 -0
  95. package/dist/{NumberFormatter-CLDS_LRZ.js → NumberFormatter-DYarfm5F.js} +2 -36
  96. package/dist/{NumberRangeInput-B8-LHfg3.js → NumberRangeInput-47xOaSXq.js} +28 -55
  97. package/dist/{NumberRangeInput-BfbJQqzn.d.ts → NumberRangeInput-BCKQaGpy.d.ts} +13 -8
  98. package/dist/NumberRangeInput.bound-B21y7xkb.js +32 -0
  99. package/dist/NumberRangeInput.bound-BNXxIQ0b.d.ts +9 -0
  100. package/dist/{OverlayArrow-D8z7cCsw.js → OverlayArrow-DF0jMwul.js} +2 -2
  101. package/dist/PageHeader-BwzxymWY.d.ts +58 -0
  102. package/dist/{Pagination-CwQu5Py8.d.ts → Pagination-BCGUVYOF.d.ts} +1 -1
  103. package/dist/PaginationList-BTmrmOGl.js +220 -0
  104. package/dist/{PaginationList-DMRUGtf8.d.ts → PaginationList-CvlSkJGn.d.ts} +1 -1
  105. package/dist/PasswordInput-EhQjYyJS.d.ts +11 -0
  106. package/dist/{PasswordInput-CLwFUgl0.d.ts → PasswordInput.bound-CK5GwKL4.d.ts} +5 -6
  107. package/dist/PasswordInput.bound-DVkRv16z.js +23 -0
  108. package/dist/{Popover-BTHPteIh.d.ts → Popover-D_t1XDPA.d.ts} +2 -2
  109. package/dist/{Progress-CjWOR38H.d.ts → Progress-Ckfpi_-M.d.ts} +4 -4
  110. package/dist/{Progress-B3mY9rIP.js → Progress-RiEGGxNG.js} +4 -29
  111. package/dist/RadioGroup-6e-Z6jW8.d.ts +26 -0
  112. package/dist/{RadioGroup-DOw3PRoX.js → RadioGroup-IL4Y8XHO.js} +18 -120
  113. package/dist/RadioGroup.bound-BFWSq-on.js +32 -0
  114. package/dist/RadioGroup.bound-w3SZqSkH.d.ts +9 -0
  115. package/dist/RangeCalendar-CAWTz3pq.js +288 -0
  116. package/dist/{RichTextEditor-D4yN7Wj7.js → RichTextEditor-16feWcDW.js} +57 -365
  117. package/dist/RichTextEditor-DHhuBeT6.d.ts +28 -0
  118. package/dist/{SelectBase-Omiq2D3M.d.ts → Select-C34ENdjq.d.ts} +34 -11
  119. package/dist/{staticSelect.utils-uHa8f_c6.js → Select-CSdr0OcD.js} +343 -635
  120. package/dist/Select.bound-D-Wl7nLz.js +34 -0
  121. package/dist/Select.bound-qOihchei.d.ts +17 -0
  122. package/dist/SelectListBox-DeiPWhOP.js +390 -0
  123. package/dist/SelectionIndicator-C3hniBa2.js +18 -0
  124. package/dist/SharedElementTransition-CZ2bE7yo.js +96 -0
  125. package/dist/SidebarWorkspaces-DDHJAdNH.d.ts +132 -0
  126. package/dist/SidebarWorkspaces-DJknAfS9.js +1298 -0
  127. package/dist/{Slider-CzEmKYBF.js → Slider-DCsCCPFx.js} +18 -42
  128. package/dist/{Slider-EYlGCLWe.d.ts → Slider-DRg8zKRM.d.ts} +9 -8
  129. package/dist/Slider.bound-CByTXPTr.js +31 -0
  130. package/dist/Slider.bound-CaEF19um.d.ts +9 -0
  131. package/dist/{Spinner-DbXeDOa2.d.ts → Spinner-Cvy_6zgD.d.ts} +5 -5
  132. package/dist/{Spinner-BeVTUzzx.js → Spinner-DqjP06T1.js} +29 -41
  133. package/dist/{SplitButton-D9ngY1rJ.d.ts → SplitButton-V1f2NWfh.d.ts} +3 -3
  134. package/dist/{Stepper-Cp5vbL5g.js → Stepper-Dyhxp0Tl.js} +14 -13
  135. package/dist/{Stepper-TATlHZhQ.d.ts → Stepper-k91x_m-E.d.ts} +18 -18
  136. package/dist/{Switch-CqnGEdeD.js → Switch-BfpSMMpv.js} +10 -59
  137. package/dist/Switch-ELVPkPx0.d.ts +24 -0
  138. package/dist/Switch.bound-DeEdVvZV.d.ts +9 -0
  139. package/dist/Switch.bound-Dv0cHsMM.js +33 -0
  140. package/dist/TableRowDetails-D8HFTghI.d.ts +109 -0
  141. package/dist/TabsFilters-CvYxvrud.js +223 -0
  142. package/dist/TabsFilters-DePddjCk.d.ts +30 -0
  143. package/dist/Tag-B2_ZiSE-.d.ts +44 -0
  144. package/dist/{Text-D2MPZ3sY.js → Text-D72yc4S6.js} +1 -1
  145. package/dist/{TextArea-D8WkKsGn.js → TextArea-ciY0kt-D.js} +33 -35
  146. package/dist/{TextArea-l_keyLK7.d.ts → TextArea-iqUeB2QY.d.ts} +11 -9
  147. package/dist/TextArea.bound-BJHyCogp.d.ts +9 -0
  148. package/dist/TextArea.bound-DQ_ULvue.js +28 -0
  149. package/dist/TextArea.cva-ENXI55ec.js +5 -0
  150. package/dist/{TimePicker-C4taAOFQ.js → TimePicker-BKRPMduC.js} +65 -55
  151. package/dist/TimePicker-BZ1ocsBX.d.ts +45 -0
  152. package/dist/TimePicker.bound-8DmjMXuE.d.ts +9 -0
  153. package/dist/TimePicker.bound-PtJTz6s3.js +32 -0
  154. package/dist/{datePickerValue.utils-DCgoSrP3.js → TimePickerForm-itDjoV7V.js} +23 -19
  155. package/dist/{Toast-ruXqONDA.d.ts → Toast-D9pdadZ4.d.ts} +1 -1
  156. package/dist/{ToastContainer-qgpzMFD4.js → ToastContainer-Dd0LPykL.js} +5 -5
  157. package/dist/ToggleButton-HUZ8ij6i.d.ts +17 -0
  158. package/dist/{ToggleButton-BW1ensey.js → ToggleButton-P1z1pxzT.js} +5 -5
  159. package/dist/ToggleGroup-CrDoeLN0.js +333 -0
  160. package/dist/ToggleGroup-DvjnSinl.d.ts +42 -0
  161. package/dist/ToggleGroup.bound-B03ISHQ8.d.ts +9 -0
  162. package/dist/ToggleGroup.bound-DCnYwmBt.js +67 -0
  163. package/dist/Tooltip-B8DTURLQ.d.ts +16 -0
  164. package/dist/{Tooltip-CpG1nz7Y.js → Tooltip-DRB6lo0U.js} +10 -11
  165. package/dist/{TooltipWrapper-3jyN0Wss.js → TooltipWrapper-BvGO_LUx.js} +21 -10
  166. package/dist/{Typography-LU4z2pR1.js → Typography-DCLnPa3P.js} +2 -2
  167. package/dist/{Typography-XljT9s02.d.ts → Typography-DJojwiXV.d.ts} +2 -2
  168. package/dist/{accordion.cva-CL1bVscW.js → accordion.cva-DwxY-k1e.js} +17 -25
  169. package/dist/{badgeButton.cva-B2bgCQP6.d.ts → badgeButton.cva-CBFIhr1S.d.ts} +8 -8
  170. package/dist/badgeButton.cva-t5PQOH4M.js +138 -0
  171. package/dist/{breadcrumbs.cva-7zzdDhVR.js → breadcrumbs.cva-CnBIZUB3.js} +9 -9
  172. package/dist/{button.cva-C7kEhgoA.d.ts → button.cva-C8LGtNJ3.d.ts} +21 -16
  173. package/dist/button.cva-Ciga0rdG.js +267 -0
  174. package/dist/{buttonContent.cva-DPIlROA9.d.ts → buttonContent.cva-BapnODby.d.ts} +2 -2
  175. package/dist/{checkbox.cva-t1Ox50hy.d.ts → checkbox.cva-CCh_UlrC.d.ts} +6 -6
  176. package/dist/checkbox.cva-aLJS7v4z.js +128 -0
  177. package/dist/components/accordion.js +1 -1
  178. package/dist/components/alert-dialog.d.ts +1 -1
  179. package/dist/components/alert-dialog.js +102 -100
  180. package/dist/components/alert.d.ts +1 -1
  181. package/dist/components/alert.js +116 -1
  182. package/dist/components/autocomplete.d.ts +2 -2
  183. package/dist/components/autocomplete.js +1 -134
  184. package/dist/components/badge-button.d.ts +1 -1
  185. package/dist/components/badge-button.js +6 -6
  186. package/dist/components/badge.d.ts +1 -1
  187. package/dist/components/badge.js +10 -10
  188. package/dist/components/bottom-sheet-header.d.ts +16 -0
  189. package/dist/components/bottom-sheet-header.js +80 -0
  190. package/dist/components/bottom-sheet.d.ts +2 -2
  191. package/dist/components/bottom-sheet.js +3 -3
  192. package/dist/components/breadcrumb/react-aria.js +1 -1
  193. package/dist/components/breadcrumbs.d.ts +1 -1
  194. package/dist/components/breadcrumbs.js +1 -1
  195. package/dist/components/button-group.d.ts +12 -0
  196. package/dist/components/button-group.js +46 -0
  197. package/dist/components/button.d.ts +2 -2
  198. package/dist/components/button.js +1 -1
  199. package/dist/components/checkbox-group.d.ts +2 -2
  200. package/dist/components/checkbox-group.js +1 -163
  201. package/dist/components/checkbox.d.ts +2 -2
  202. package/dist/components/checkbox.js +2 -2
  203. package/dist/components/combo-box/react-aria.js +1 -1
  204. package/dist/components/date-picker/react-aria.js +1 -1
  205. package/dist/components/date-picker.d.ts +2 -2
  206. package/dist/components/date-picker.js +1 -1
  207. package/dist/components/date-range-picker/react-aria.js +1 -1
  208. package/dist/components/date-range-picker.d.ts +2 -2
  209. package/dist/components/date-range-picker.js +1 -1
  210. package/dist/components/date-time-picker.d.ts +2 -2
  211. package/dist/components/date-time-picker.js +1 -1
  212. package/dist/components/dialog-trigger/react-aria.js +1 -1
  213. package/dist/components/dialog.d.ts +1 -1
  214. package/dist/components/dialog.js +1 -1
  215. package/dist/components/drawer.js +4 -4
  216. package/dist/components/dropdown-menu.d.ts +2 -2
  217. package/dist/components/dropdown-menu.js +2 -2
  218. package/dist/components/file-input.d.ts +2 -2
  219. package/dist/components/file-input.js +1 -1
  220. package/dist/components/file-upload-container.d.ts +2 -2
  221. package/dist/components/file-upload-container.js +1 -1
  222. package/dist/components/file-upload.d.ts +3 -3
  223. package/dist/components/file-upload.js +1 -1
  224. package/dist/components/form-field.d.ts +1 -1
  225. package/dist/components/form-field.js +1 -1
  226. package/dist/components/form-layout.d.ts +2 -0
  227. package/dist/components/form-layout.js +80 -0
  228. package/dist/components/icon-button.d.ts +1 -1
  229. package/dist/components/icon-button.js +17 -15
  230. package/dist/components/icon-slot.d.ts +2 -1
  231. package/dist/components/icon-slot.js +1 -1
  232. package/dist/components/input-frame.d.ts +94 -0
  233. package/dist/{useStaticInputHandoff-NeZVnci-.js → components/input-frame.js} +82 -116
  234. package/dist/components/input.d.ts +2 -2
  235. package/dist/components/input.js +1 -241
  236. package/dist/components/link.d.ts +1 -1
  237. package/dist/components/link.js +4 -4
  238. package/dist/components/menu-trigger/react-aria.js +1 -1
  239. package/dist/components/modal/react-aria.js +1 -1
  240. package/dist/components/modal-overlay/react-aria.js +1 -1
  241. package/dist/components/number-field.d.ts +2 -2
  242. package/dist/components/number-field.js +1 -245
  243. package/dist/components/number-range-input.d.ts +2 -2
  244. package/dist/components/number-range-input.js +1 -1
  245. package/dist/components/page-header.d.ts +2 -0
  246. package/dist/components/page-header.js +205 -0
  247. package/dist/components/pagination-list.d.ts +1 -1
  248. package/dist/components/pagination-list.js +1 -1
  249. package/dist/components/pagination.d.ts +1 -1
  250. package/dist/components/pagination.js +14 -10
  251. package/dist/components/password-input.d.ts +2 -2
  252. package/dist/components/password-input.js +22 -1
  253. package/dist/components/popover/react-aria.js +1 -1
  254. package/dist/components/popover.d.ts +1 -1
  255. package/dist/components/popover.js +40 -32
  256. package/dist/components/progress.d.ts +1 -1
  257. package/dist/components/progress.js +1 -1
  258. package/dist/components/radio-group.d.ts +2 -2
  259. package/dist/components/radio-group.js +1 -1
  260. package/dist/components/select/react-aria.js +1 -1
  261. package/dist/components/select.d.ts +2 -3
  262. package/dist/components/select.js +1 -1
  263. package/dist/components/sidebar.d.ts +2 -0
  264. package/dist/components/sidebar.js +2 -0
  265. package/dist/components/slider.d.ts +2 -2
  266. package/dist/components/slider.js +1 -1
  267. package/dist/components/spinner.d.ts +1 -1
  268. package/dist/components/spinner.js +1 -1
  269. package/dist/components/split-button.d.ts +1 -1
  270. package/dist/components/split-button.js +3 -3
  271. package/dist/components/stepper.d.ts +1 -1
  272. package/dist/components/stepper.js +1 -1
  273. package/dist/components/style-definitions.d.ts +3 -0
  274. package/dist/components/style-definitions.js +122 -0
  275. package/dist/components/submenu-trigger/react-aria.js +1 -1
  276. package/dist/components/switch.d.ts +2 -2
  277. package/dist/components/switch.js +1 -1
  278. package/dist/components/tabs-filters.d.ts +2 -0
  279. package/dist/components/tabs-filters.js +2 -0
  280. package/dist/components/tag.d.ts +1 -1
  281. package/dist/components/tag.js +93 -1
  282. package/dist/components/text-area.d.ts +2 -2
  283. package/dist/components/text-area.js +1 -1
  284. package/dist/components/time-picker.d.ts +2 -2
  285. package/dist/components/time-picker.js +1 -1
  286. package/dist/components/toast.d.ts +2 -2
  287. package/dist/components/toast.js +2 -2
  288. package/dist/components/toggle-button.d.ts +1 -1
  289. package/dist/components/toggle-button.js +17 -30
  290. package/dist/components/toggle-group.d.ts +2 -3
  291. package/dist/components/toggle-group.js +1 -1
  292. package/dist/components/tooltip-ellipsis.js +2 -2
  293. package/dist/components/tooltip.d.ts +1 -1
  294. package/dist/components/tooltip.js +1 -1
  295. package/dist/components/typography.d.ts +2 -2
  296. package/dist/components/typography.js +1 -1
  297. package/dist/components/use-toast.d.ts +1 -1
  298. package/dist/components/use-toast.js +2 -2
  299. package/dist/config/component-configuration.d.ts +30 -0
  300. package/dist/config/component-configuration.js +69 -0
  301. package/dist/config/confirmation.d.ts +1 -1
  302. package/dist/config/confirmation.js +1 -1
  303. package/dist/config/link-context.d.ts +2 -2
  304. package/dist/config/link-context.js +1 -1
  305. package/dist/config/resources.d.ts +1 -1
  306. package/dist/config/resources.js +1 -1
  307. package/dist/config/theme-context.js +1 -1
  308. package/dist/config/ui-config.d.ts +2 -2
  309. package/dist/config/ui-config.js +1 -1
  310. package/dist/config/ui-overrides.d.ts +1 -1
  311. package/dist/config/ui-overrides.js +1 -1
  312. package/dist/config/ui-router.js +1 -1
  313. package/dist/{confirmation.context-BuzgCfYl.js → confirmation.context-CByUxDcn.js} +2 -2
  314. package/dist/{confirmation.context-BOeEVczb.d.ts → confirmation.context-C_GDRn3a.d.ts} +1 -1
  315. package/dist/{datePickerInput.cva-Cd7UUN61.js → datePickerInput.cva-Du0Zn04v.js} +2 -2
  316. package/dist/datePickerValue.utils-CkmPaD6I.js +4 -0
  317. package/dist/{dialog.cva-COhDZaVl.js → dialog.cva-BIpz6HcA.js} +7 -7
  318. package/dist/{dist-CAdwxJbe.js → dist-DEZzXa0W.js} +54 -1
  319. package/dist/{dom.utils-D1AopHx9.js → dom.utils-BPooTXtC.js} +2 -2
  320. package/dist/dropdownMenu.cva-DwSOcbmR.js +31 -0
  321. package/dist/{fileUpload.cva-ujmStxB1.js → fileUpload.cva-BYzXGc9C.js} +11 -11
  322. package/dist/{fileUpload.types-n5FxK_F-.d.ts → fileUpload.types-C-ke21yY.d.ts} +17 -17
  323. package/dist/form.binding-DOR5gIQf.js +49 -0
  324. package/dist/form.types-C8P4sznq.d.ts +22 -0
  325. package/dist/formFieldError.cva-BB6Ghqwq.js +14 -0
  326. package/dist/formFieldHelper.cva-DRmSyRZN.js +14 -0
  327. package/dist/formLayout.context--CN08Mtb.js +14 -0
  328. package/dist/hooks/use-async-list.d.ts +2 -0
  329. package/dist/hooks/use-async-list.js +2 -0
  330. package/dist/hooks/use-filters.js +1 -1
  331. package/dist/hooks/use-local-storage.js +1 -1
  332. package/dist/{i18n-CX2EjhJI.js → i18n-D1FWVTPi.js} +24 -4
  333. package/dist/{i18n-CX1vFM9r.d.ts → i18n-DE45mOCM.d.ts} +24 -0
  334. package/dist/iconSlot.cva-CLB5Tlsr.d.ts +9 -0
  335. package/dist/icons.d.ts +2 -1
  336. package/dist/icons.js +3 -3
  337. package/dist/import-C14g8ng0.js +251 -0
  338. package/dist/index.d.ts +100 -91
  339. package/dist/index.js +100 -94
  340. package/dist/{input.cva-BsHgYa-L.d.ts → input.cva-BjuHsDGy.d.ts} +11 -11
  341. package/dist/input.cva-DZii82eS.js +185 -0
  342. package/dist/inputLayout-KdAtunGk.js +5 -0
  343. package/dist/{intlStrings-chfsan9H.js → intlStrings-Cu1YN1tA.js} +35 -35
  344. package/dist/isEqual-LFw0W5rU.js +97 -0
  345. package/dist/label.cva-DTfT6FrX.js +85 -0
  346. package/dist/{link.context-D5qyz9Rf.d.ts → link.context-BCHn7NSy.d.ts} +1 -1
  347. package/dist/link.cva-C24YVAsJ.js +16 -0
  348. package/dist/{numberStatic.utils-BX50PSee.js → numberStatic.utils-BIyZuILs.js} +5 -5
  349. package/dist/outline.clsx-DGGQQRkM.js +6 -0
  350. package/dist/popover.cva-DAbfSma6.js +5 -0
  351. package/dist/progress.cva-CsGaGVJ-.js +28 -0
  352. package/dist/{radio.cva-DN9VQ3Kb.d.ts → radio.cva-D7M1hqLe.d.ts} +9 -5
  353. package/dist/radio.cva-DistaZtZ.js +96 -0
  354. package/dist/rich-text-editor.d.ts +2 -2
  355. package/dist/rich-text-editor.js +1 -1
  356. package/dist/{routing.utils-UTQonIhB.js → routing.utils-DfxEt0_Y.js} +5 -0
  357. package/dist/selectDesktop.cva-DStkOdwm.js +14 -0
  358. package/dist/selectItem.cva-B6vxey2R.js +27 -0
  359. package/dist/{staticDateTimeSegments-DtU63_dw.js → staticDateTimeSegments-bPuA-a2Y.js} +61 -57
  360. package/dist/status.cva-CYgi3Htz.js +130 -0
  361. package/dist/stepper.cva-Cecphqeo.js +104 -0
  362. package/dist/style-definitions-Dx6aFDiR.d.ts +1038 -0
  363. package/dist/styles/editor.css +9 -9
  364. package/dist/styles/input.d.ts +1 -1
  365. package/dist/styles/outline.js +1 -1
  366. package/dist/switch.cva-BT0kGRIk.js +24 -0
  367. package/dist/switch.cva-r6vcS25Q.d.ts +16 -0
  368. package/dist/table.cva-DkcsOmZG.js +147 -0
  369. package/dist/tag.cva-ExMNsTN-.js +24 -0
  370. package/dist/tanstack/autocomplete.d.ts +3 -2
  371. package/dist/tanstack/autocomplete.js +1 -1
  372. package/dist/tanstack/checkbox-group.d.ts +3 -2
  373. package/dist/tanstack/checkbox-group.js +1 -1
  374. package/dist/tanstack/checkbox.d.ts +3 -2
  375. package/dist/tanstack/checkbox.js +2 -2
  376. package/dist/tanstack/date-picker.d.ts +3 -2
  377. package/dist/tanstack/date-picker.js +1 -1
  378. package/dist/tanstack/date-range-picker.d.ts +3 -2
  379. package/dist/tanstack/date-range-picker.js +1 -1
  380. package/dist/tanstack/date-time-picker.d.ts +3 -2
  381. package/dist/tanstack/date-time-picker.js +1 -1
  382. package/dist/tanstack/file-input.d.ts +3 -2
  383. package/dist/tanstack/file-input.js +1 -1
  384. package/dist/tanstack/file-upload.d.ts +4 -3
  385. package/dist/tanstack/file-upload.js +1 -1
  386. package/dist/tanstack/form.d.ts +3 -3
  387. package/dist/tanstack/form.js +3 -3
  388. package/dist/tanstack/input.d.ts +3 -2
  389. package/dist/tanstack/input.js +1 -1
  390. package/dist/tanstack/number-field.d.ts +3 -2
  391. package/dist/tanstack/number-field.js +1 -1
  392. package/dist/tanstack/number-range-input.d.ts +3 -2
  393. package/dist/tanstack/number-range-input.js +1 -1
  394. package/dist/tanstack/password-input.d.ts +1 -1
  395. package/dist/tanstack/password-input.js +1 -1
  396. package/dist/tanstack/radio-group.d.ts +3 -2
  397. package/dist/tanstack/radio-group.js +1 -1
  398. package/dist/tanstack/rich-text-editor.d.ts +9 -2
  399. package/dist/tanstack/rich-text-editor.js +27 -1
  400. package/dist/tanstack/select.d.ts +3 -2
  401. package/dist/tanstack/select.js +1 -1
  402. package/dist/tanstack/slider.d.ts +3 -2
  403. package/dist/tanstack/slider.js +1 -1
  404. package/dist/tanstack/switch.d.ts +3 -2
  405. package/dist/tanstack/switch.js +1 -1
  406. package/dist/tanstack/table.d.ts +3 -2
  407. package/dist/tanstack/table.js +2 -3
  408. package/dist/tanstack/text-area.d.ts +3 -2
  409. package/dist/tanstack/text-area.js +1 -1
  410. package/dist/tanstack/time-picker.d.ts +3 -2
  411. package/dist/tanstack/time-picker.js +1 -1
  412. package/dist/tanstack/toggle-group.d.ts +3 -3
  413. package/dist/tanstack/toggle-group.js +1 -1
  414. package/dist/{queries.utils-CmbhAoHU.js → tanstack-Bgdv0qU1.js} +2 -1
  415. package/dist/tanstack-zusJduSB.d.ts +568 -0
  416. package/dist/tanstack.d.ts +84 -78
  417. package/dist/tanstack.js +100 -92
  418. package/dist/{theme.context-B3wQDJ-i.js → theme.context--VEyStJB.js} +2 -2
  419. package/dist/{toast.cva-By5lvAfr.d.ts → toast.cva-AmLw6Cf5.d.ts} +10 -10
  420. package/dist/{toast.cva-C_L_RffH.js → toast.cva-B6NXTwbZ.js} +22 -38
  421. package/dist/{toast.runtime-cxex9e4E.js → toast.runtime-Drd2IJ_j.js} +1 -2
  422. package/dist/toggleGroup.cva-CJ-3Ps7j.js +35 -0
  423. package/dist/toggleGroup.cva-DA4U21gn.d.ts +26 -0
  424. package/dist/{tooltip.cva-BIzlOXHH.js → tooltip.cva-BEyxvcG2.js} +11 -11
  425. package/dist/{tooltipWrapper.cva-BBQ4ic3D.js → tooltipWrapper.cva-t4NQ9zz9.js} +1 -1
  426. package/dist/tw-ui-plugin.js +5 -1
  427. package/dist/typography.cva-BCHlTHdM.d.ts +36 -0
  428. package/dist/typography.cva-CHsHX_Wp.js +31 -0
  429. package/dist/uiConfig.context-3DN9w6oU.js +180 -0
  430. package/dist/{uiConfig.context-DeBX2beU.d.ts → uiConfig.context-BnCORTNm.d.ts} +25 -20
  431. package/dist/{uiOverrides.context-DEp139He.d.ts → uiOverrides.context-DHHzLSnq.d.ts} +67 -6
  432. package/dist/useAsyncList-Ct74ve3i.js +445 -0
  433. package/dist/useAsyncList-Cu-Y8If2.d.ts +9 -0
  434. package/dist/{useBreakpoint-DQoMN-BG.js → useBreakpoint-CJ3mx7UF.js} +6 -6
  435. package/dist/{useControlledState-CzXkZCX8.js → useControlledState-CuU1VIh1.js} +2 -2
  436. package/dist/useFieldAccessibility-eZIMECmG.js +19 -0
  437. package/dist/{useFilters-XNH27Md2.js → useFilters-DMi94RZK.js} +3 -3
  438. package/dist/{form.binding-CG1RPv6o.js → useForm-Cb7KWLds.js} +80 -43
  439. package/dist/{form.binding-DVJ5F0JE.d.ts → useForm-I6z23FXf.d.ts} +15 -15
  440. package/dist/useFormAutosave-BBLm3Ujo.d.ts +34 -0
  441. package/dist/useFormAutosave-BPGlChiY.js +216 -0
  442. package/dist/useScrollableListBox-oYKqU3Hp.js +47 -0
  443. package/dist/useStaticInputHandoff-BN0fOerH.js +76 -0
  444. package/dist/useTableColumnConfig-D5NxR1Co.js +2060 -0
  445. package/dist/useTableNav-H5DrogZU.d.ts +215 -0
  446. package/dist/{useToast-yreVCUer.d.ts → useToast-DsA8CVoY.d.ts} +1 -1
  447. package/dist/{utils-Czcqspm7.js → utils-BkLF-JA3.js} +1 -1
  448. package/package.json +86 -236
  449. package/.rulesync/rules/ui-buttons-and-content.md +0 -56
  450. package/.rulesync/rules/ui-inputs-and-forms.md +0 -62
  451. package/.rulesync/rules/ui-overlays-navigation-and-styling.md +0 -49
  452. package/.rulesync/rules/ui-overview.md +0 -33
  453. package/dist/Alert-CnvEb1D_.js +0 -244
  454. package/dist/AppCanvasPage--RG31Yyv.js +0 -2421
  455. package/dist/AppCanvasPage-BIFYeEeS.d.ts +0 -80
  456. package/dist/Autocomplete-BwNHp8fy.d.ts +0 -15
  457. package/dist/Button-C5rv4Cr2.js +0 -506
  458. package/dist/Button-D-4qb0IR.d.ts +0 -42
  459. package/dist/CheckboxCheckmark-CpC3wlMs.js +0 -178
  460. package/dist/CheckboxGroup-DGF12cmB.d.ts +0 -28
  461. package/dist/ComponentGallery-C6exitZN.js +0 -3513
  462. package/dist/Dialog-CW93T9X1.d.ts +0 -56
  463. package/dist/DropdownMenu-JNpYT4-3.d.ts +0 -62
  464. package/dist/FileUpload-CR7bZxV1.d.ts +0 -7
  465. package/dist/Form-DbEWnCKc.d.ts +0 -49
  466. package/dist/FormField-B99dLt8o.js +0 -212
  467. package/dist/IconButton-D4thBurp.d.ts +0 -16
  468. package/dist/InlineIconButton-BeJCjl-q.d.ts +0 -15
  469. package/dist/InputItem-CIxbTxZu.js +0 -63
  470. package/dist/Inputs-DJSKiaWY.js +0 -17
  471. package/dist/Inputs-O84btFJL.d.ts +0 -13
  472. package/dist/PaginationList-DtvuP63b.js +0 -220
  473. package/dist/PasswordInput-DYwUZ4-k.js +0 -78
  474. package/dist/QuerySelect-BGxb6Y0K.d.ts +0 -24
  475. package/dist/RadioGroup-CZg2kIMk.d.ts +0 -24
  476. package/dist/RichTextEditor-YxuRUlI7.d.ts +0 -26
  477. package/dist/Select-UR0ec2Ux.js +0 -154
  478. package/dist/Select-pHbyJdZJ.d.ts +0 -15
  479. package/dist/SelectionIndicator-JblvLKCu.js +0 -5
  480. package/dist/SharedElementTransition-Da1c_cOO.js +0 -12
  481. package/dist/Switch-s_EPn0Jz.d.ts +0 -22
  482. package/dist/Table-BN2_J_Ne.js +0 -636
  483. package/dist/Tag-AHfV_XSf.d.ts +0 -44
  484. package/dist/Tag-DPg5sL1Z.js +0 -146
  485. package/dist/TextButton-XUhV_1s0.d.ts +0 -15
  486. package/dist/TimePicker-B1POvGWs.d.ts +0 -33
  487. package/dist/Toast-DtG3pA61.js +0 -53
  488. package/dist/ToggleButton-7aP8Jb11.d.ts +0 -11
  489. package/dist/ToggleGroup-CRFDIPGZ.d.ts +0 -7
  490. package/dist/ToggleGroup-DOk27fgI.js +0 -346
  491. package/dist/Tooltip-DHv6vAqW.d.ts +0 -57
  492. package/dist/UIConfigurator-BwLRfe-a.js +0 -6704
  493. package/dist/autocomplete-DeERHN8W.d.ts +0 -16
  494. package/dist/badgeButton.cva-CvN4CTx5.js +0 -300
  495. package/dist/check-DYMBkp_Z.js +0 -20
  496. package/dist/checkbox-DxIPDTK5.d.ts +0 -9
  497. package/dist/checkbox-group-B3BOVshI.d.ts +0 -9
  498. package/dist/chevron-down-B4Pr8bD3.js +0 -20
  499. package/dist/chevron-left-Dgo_b9wJ.js +0 -20
  500. package/dist/chevron-right-3nKJR5Bb.js +0 -20
  501. package/dist/chevron-up-D_Gqpb5M.js +0 -20
  502. package/dist/chevrons-right-DJPPn2fD.js +0 -44
  503. package/dist/components/inline-icon-button.d.ts +0 -2
  504. package/dist/components/inline-icon-button.js +0 -40
  505. package/dist/components/query-autocomplete.d.ts +0 -8
  506. package/dist/components/query-autocomplete.js +0 -134
  507. package/dist/components/query-select.d.ts +0 -2
  508. package/dist/components/query-select.js +0 -147
  509. package/dist/components/text-button.d.ts +0 -2
  510. package/dist/components/text-button.js +0 -35
  511. package/dist/config/app-canvas-tanstack.d.ts +0 -23
  512. package/dist/config/app-canvas-tanstack.js +0 -62
  513. package/dist/config/app-canvas.d.ts +0 -12
  514. package/dist/config/app-canvas.js +0 -2
  515. package/dist/config/ui-configurator-theme.d.ts +0 -2
  516. package/dist/config/ui-configurator-theme.js +0 -2
  517. package/dist/config/ui-configurator-vite.d.ts +0 -10
  518. package/dist/config/ui-configurator-vite.js +0 -174
  519. package/dist/config/ui-configurator.d.ts +0 -15
  520. package/dist/config/ui-configurator.js +0 -3
  521. package/dist/configuration.context-f_FSPWhQ.d.ts +0 -926
  522. package/dist/createLucideIcon-LcezOE4z.js +0 -240
  523. package/dist/date-picker-DnxDmlOW.d.ts +0 -9
  524. package/dist/date-range-picker-DHDOSvHN.d.ts +0 -9
  525. package/dist/date-time-picker-UkTa0OJ8.d.ts +0 -9
  526. package/dist/date.transforms-DLg-eFcE.js +0 -15
  527. package/dist/dropdownMenu.cva-DvEmX0bs.js +0 -34
  528. package/dist/dynamicInputs-ByVMnx4Z.d.ts +0 -772
  529. package/dist/dynamicInputs-CRMWIpHA.js +0 -194
  530. package/dist/dynamicInputs-m_DQu5q0.js +0 -214
  531. package/dist/fieldAdapter-C4sDFC8f.d.ts +0 -9
  532. package/dist/fieldAdapter-DjYls12j.js +0 -63
  533. package/dist/file-input-DkbkdI7l.d.ts +0 -9
  534. package/dist/file-upload-CTsPhxJk.d.ts +0 -10
  535. package/dist/form.types-CecYaerF.d.ts +0 -13
  536. package/dist/form.types-ZNGbcqJS.d.ts +0 -13
  537. package/dist/info-iUmX3uDk.js +0 -32
  538. package/dist/input-CdQNCPgH.d.ts +0 -8
  539. package/dist/input.cva-DJA8ovm_.js +0 -208
  540. package/dist/link.cva-DMTHZiJG.js +0 -12
  541. package/dist/number-field-CUDbenNV.d.ts +0 -8
  542. package/dist/number-range-input-DZGrcvjL.d.ts +0 -8
  543. package/dist/outline.clsx-50W_vNDl.js +0 -6
  544. package/dist/password-input-fYN20cQO.d.ts +0 -8
  545. package/dist/popover.cva-Bhud1wnp.js +0 -5
  546. package/dist/query-autocomplete-CfuQeiYG.d.ts +0 -14
  547. package/dist/query-select-CuT_sE6a.d.ts +0 -15
  548. package/dist/queryAutocomplete.types-tl3r6iaY.d.ts +0 -27
  549. package/dist/radio-group-B3ccPf0p.d.ts +0 -9
  550. package/dist/rhf/autocomplete.d.ts +0 -3
  551. package/dist/rhf/autocomplete.js +0 -8
  552. package/dist/rhf/checkbox-group.d.ts +0 -3
  553. package/dist/rhf/checkbox-group.js +0 -8
  554. package/dist/rhf/checkbox.d.ts +0 -3
  555. package/dist/rhf/checkbox.js +0 -8
  556. package/dist/rhf/date-picker.d.ts +0 -3
  557. package/dist/rhf/date-picker.js +0 -9
  558. package/dist/rhf/date-range-picker.d.ts +0 -3
  559. package/dist/rhf/date-range-picker.js +0 -9
  560. package/dist/rhf/date-time-picker.d.ts +0 -3
  561. package/dist/rhf/date-time-picker.js +0 -9
  562. package/dist/rhf/file-input.d.ts +0 -3
  563. package/dist/rhf/file-input.js +0 -6
  564. package/dist/rhf/file-upload.d.ts +0 -3
  565. package/dist/rhf/file-upload.js +0 -6
  566. package/dist/rhf/input.d.ts +0 -3
  567. package/dist/rhf/input.js +0 -6
  568. package/dist/rhf/inputs.d.ts +0 -4
  569. package/dist/rhf/inputs.js +0 -2
  570. package/dist/rhf/number-field.d.ts +0 -3
  571. package/dist/rhf/number-field.js +0 -6
  572. package/dist/rhf/number-range-input.d.ts +0 -3
  573. package/dist/rhf/number-range-input.js +0 -6
  574. package/dist/rhf/password-input.d.ts +0 -3
  575. package/dist/rhf/password-input.js +0 -6
  576. package/dist/rhf/query-autocomplete.d.ts +0 -2
  577. package/dist/rhf/query-autocomplete.js +0 -8
  578. package/dist/rhf/query-select.d.ts +0 -2
  579. package/dist/rhf/query-select.js +0 -8
  580. package/dist/rhf/radio-group.d.ts +0 -3
  581. package/dist/rhf/radio-group.js +0 -8
  582. package/dist/rhf/rich-text-editor.d.ts +0 -3
  583. package/dist/rhf/rich-text-editor.js +0 -6
  584. package/dist/rhf/select.d.ts +0 -3
  585. package/dist/rhf/select.js +0 -8
  586. package/dist/rhf/slider.d.ts +0 -3
  587. package/dist/rhf/slider.js +0 -6
  588. package/dist/rhf/switch.d.ts +0 -3
  589. package/dist/rhf/switch.js +0 -8
  590. package/dist/rhf/text-area.d.ts +0 -3
  591. package/dist/rhf/text-area.js +0 -6
  592. package/dist/rhf/time-picker.d.ts +0 -3
  593. package/dist/rhf/time-picker.js +0 -9
  594. package/dist/rhf/toggle-group.d.ts +0 -3
  595. package/dist/rhf/toggle-group.js +0 -6
  596. package/dist/rhf-t348TCCL.js +0 -256
  597. package/dist/rhf.d.ts +0 -106
  598. package/dist/rhf.js +0 -112
  599. package/dist/rich-text-editor-B-Onl7T8.d.ts +0 -8
  600. package/dist/select-B4a52eWW.d.ts +0 -16
  601. package/dist/selectDesktop.cva-CHAMxhfO.js +0 -69
  602. package/dist/slider-dNj9jruO.d.ts +0 -8
  603. package/dist/stepper.cva-CZ0Kj-s7.js +0 -116
  604. package/dist/style-merge.util-zLimKwt6.d.ts +0 -40
  605. package/dist/styles/app-canvas.css +0 -740
  606. package/dist/styles/color-utilities.css +0 -20
  607. package/dist/styles/configurator.css +0 -3280
  608. package/dist/switch-C--iWnY8.d.ts +0 -9
  609. package/dist/switch.cva-CWNzmdRc.d.ts +0 -16
  610. package/dist/table.cva-D5oQ-QvA.js +0 -101
  611. package/dist/tanstack/inputs.d.ts +0 -5
  612. package/dist/tanstack/inputs.js +0 -3
  613. package/dist/tanstack/query-autocomplete.d.ts +0 -2
  614. package/dist/tanstack/query-autocomplete.js +0 -2
  615. package/dist/tanstack/query-select.d.ts +0 -2
  616. package/dist/tanstack/query-select.js +0 -2
  617. package/dist/text-area-DQAtpOQp.d.ts +0 -8
  618. package/dist/theme-model-DtYPxNvH.js +0 -406
  619. package/dist/theme-model-T1zIdBg8.d.ts +0 -12
  620. package/dist/time-picker-DoGfbil6.d.ts +0 -9
  621. package/dist/toggle-group-C1nMDOwz.d.ts +0 -9
  622. package/dist/toggleGroup.cva-MbpaEBg1.js +0 -35
  623. package/dist/toggleGroup.types-Bp43zbSQ.d.ts +0 -59
  624. package/dist/typography.cva-D1JOEYl-.d.ts +0 -36
  625. package/dist/typography.cva-iD15k56p.js +0 -51
  626. package/dist/uiConfig.context-BS3r_kTS.js +0 -381
  627. package/dist/underline-66hmELxa.js +0 -81
  628. package/dist/upload-CXU83BJ4.js +0 -30
  629. package/dist/useFieldAccessibility-ScC6Mtd5.js +0 -102
  630. package/dist/useFormAutosave-DfuP7drj.js +0 -198
  631. package/dist/useQueryAutocomplete-CraXvRm_.js +0 -152
  632. package/dist/useTableColumnConfig-Di0_w80v.js +0 -892
  633. package/dist/useTableNav-Ckj5PBRk.d.ts +0 -292
  634. package/dist/x-B6vfz8Ps.js +0 -23
  635. package/dist/zod.utils-DrrPDT9v.js +0 -24
  636. package/rulesync.jsonc +0 -11
  637. package/scripts/generate-rules.mjs +0 -34
  638. package/src/configurator/README.md +0 -77
  639. package/dist/{import-BE0r63d8.js → import-D_3dPATF.js} +2 -2
  640. package/dist/{link.context-J7aQtMOr.js → link.context-TPjDtjw3.js} +1 -1
  641. package/dist/{router.context-B4FvsTim.js → router.context-MckTbHw9.js} +1 -1
  642. package/dist/{uiOverrides.context-BTCH9y5a.js → uiOverrides.context-DNEQlTx0.js} +1 -1
  643. package/dist/{useIntersectionObserver-DYfHnGGU.js → useIntersectionObserver-DFAhTsV0.js} +1 -1
  644. package/dist/{useLocalStorage-PlcaJ1tP.js → useLocalStorage-CctQvyqD.js} +1 -1
@@ -1 +1 @@
1
- import{mergeProps as e}from"react-aria/mergeProps";import{mergeRefs as t}from"react-aria/mergeRefs";import n,{createContext as r,forwardRef as i,useContext as a,useMemo as o,useRef as s}from"react";import{useLayoutEffect as c}from"react-aria/private/utils/useLayoutEffect";import{useObjectRef as l}from"react-aria/useObjectRef";import{filterDOMProps as u}from"react-aria/filterDOMProps";import"react-aria/private/collections/Hidden";import"react-aria/useId";import{Overlay as d}from"react-aria/Overlay";import{useOverlayTriggerState as f}from"react-stately/useOverlayTriggerState";import{useEnterAnimation as p,useExitAnimation as m}from"react-aria/private/utils/animation";import"react-stately/useMenuTriggerState";import"react-aria/private/interactions/PressResponder";import"react-aria/useDialog";import"react-aria/useOverlayTrigger";import{useModalOverlay as h}from"react-aria/useModalOverlay";import{isScrollable as g}from"react-aria/private/utils/isScrollable";import{useIsSSR as _}from"react-aria/SSRProvider";import{useViewportSize as v}from"react-aria/private/utils/useViewportSize";const y=Symbol(`default`);function b({values:e,children:t}){for(let[r,i]of e)t=n.createElement(r.Provider,{value:i},t);return t}function x(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:s,values:c,render:l}=e;return o(()=>{let e,o,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,o=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:a}):r??a,{className:e??i,style:o||s?{...s,...o}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,a,s,c,l])}function S(e,t){let n=a(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||y;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function C(n,r,i){let{ref:a,...s}=S(i,n.slot)||{},c=l(o(()=>t(r,a),[r,a])),u=e(s,n);return`style`in s&&s.style&&`style`in n&&n.style&&(u.style=typeof s.style==`function`||typeof n.style==`function`?e=>{let t=typeof s.style==`function`?s.style(e):s.style,r={...e.defaultStyle,...t},i=typeof n.style==`function`?n.style({...e,defaultStyle:r}):n.style;return{...r,...i}}:{...s.style,...n.style}),[u,c]}function w(e,r,i){let{render:a,...l}=r,u=s(null),d=o(()=>t(i,u),[i,u]);c(()=>{},[e,a]);let f={...l,ref:d};return a?a(f,void 0):n.createElement(e,f)}const T={},E=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=T[t];return n||(n=i(w.bind(null,t)),T[t]=n),n}}),D=r(null),O=r(null),k=r(null);function A(e,t){[e,t]=C(e,t,O);let r=a(D),i=f(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,c=l(t),u=s(null),d=m(c,o.isOpen),p=m(u,o.isOpen),h=d||p||e.isExiting||!1,g=_();return!o.isOpen&&!h||g?null:n.createElement(M,{...e,state:o,isExiting:h,overlayRef:c,modalRef:u})}const j=i(A);function M({UNSTABLE_portalContainer:t,...r}){let i=r.modalRef,{state:a}=r,{modalProps:o,underlayProps:s}=h(r,a,i),c=p(r.overlayRef)||r.isEntering||!1,l=x({...r,defaultClassName:`react-aria-ModalOverlay`,values:{isEntering:c,isExiting:r.isExiting,state:a}}),f=v(),m,_;if(typeof document<`u`){let e=g(document.body)?document.body:document.scrollingElement||document.documentElement,t=e.getBoundingClientRect().width%1,n=e.getBoundingClientRect().height%1;m=e.scrollWidth-t,_=e.scrollHeight-n}let y={...l.style,"--visual-viewport-width":f.width+`px`,"--visual-viewport-height":f.height+`px`,"--page-width":m===void 0?void 0:m+`px`,"--page-height":_===void 0?void 0:_+`px`};return n.createElement(d,{isExiting:r.isExiting,portalContainer:t},n.createElement(E.div,{...e(u(r,{global:!0}),s),...l,style:y,ref:r.overlayRef,"data-entering":c||void 0,"data-exiting":r.isExiting||void 0},n.createElement(b,{values:[[k,{modalProps:o,modalRef:i,isExiting:r.isExiting,isDismissable:r.isDismissable}],[D,a]]},l.children)))}export{j as ModalOverlay};
1
+ import{mergeProps as e}from"react-aria/mergeProps";import{mergeRefs as t}from"react-aria/mergeRefs";import n,{createContext as r,forwardRef as i,useContext as a,useMemo as o,useRef as s,useState as c}from"react";import{useLayoutEffect as l}from"react-aria/private/utils/useLayoutEffect";import{useObjectRef as u}from"react-aria/useObjectRef";import{filterDOMProps as d}from"react-aria/filterDOMProps";import"react-aria/private/collections/Hidden";import"react-aria/useId";import{Overlay as f}from"react-aria/Overlay";import{useOverlayTriggerState as p}from"react-stately/useOverlayTriggerState";import{runAfterKeyboard as m}from"react-aria/private/utils/runAfterKeyboard";import{useEnterAnimation as h,useExitAnimation as g}from"react-aria/private/utils/animation";import"react-stately/useMenuTriggerState";import"react-aria/private/interactions/PressResponder";import"react-aria/useDialog";import"react-aria/useOverlayTrigger";import{useModalOverlay as _}from"react-aria/useModalOverlay";import{isScrollable as v}from"react-aria/private/utils/isScrollable";import{useIsSSR as y}from"react-aria/SSRProvider";import{useViewportSize as b}from"react-aria/private/utils/useViewportSize";const x=Symbol(`default`);function S({values:e,children:t}){for(let[r,i]of e)t=n.createElement(r.Provider,{value:i},t);return t}function C(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:s,values:c,render:l}=e;return o(()=>{let e,o,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,o=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:a}):r??a,{className:e??i,style:o||s?{...s,...o}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,a,s,c,l])}function w(e,t){let n=a(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||x;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function T(n,r,i){let{ref:a,...s}=w(i,n.slot)||{},c=u(o(()=>t(r,a),[r,a])),l=e(s,n);return`style`in s&&s.style&&`style`in n&&n.style&&(l.style=typeof s.style==`function`||typeof n.style==`function`?e=>{let t=typeof s.style==`function`?s.style(e):s.style,r={...e.defaultStyle,...t},i=typeof n.style==`function`?n.style({...e,defaultStyle:r}):n.style;return{...r,...i}}:{...s.style,...n.style}),[l,c]}function E(e,r,i){let{render:a,...c}=r,u=s(null),d=o(()=>t(i,u),[i,u]);l(()=>{},[e,a]);let f={...c,ref:d};return a?a(f,void 0):n.createElement(e,f)}const D={},O=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=D[t];return n||(n=i(E.bind(null,t)),D[t]=n),n}}),k=r(null),A=r(null),j=r(null),M=r(null);function N(e,t){[e,t]=T(e,t,j);let r=a(A),i=p(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,c=u(t),l=s(null),d=g(c,o.isOpen,e.onExit),f=s(null),m=g(l,o.isOpen,e=>f.current?.(e)),h=d||m||e.isExiting||!1,_=y();return!o.isOpen&&!h||_?null:n.createElement(F,{...e,state:o,isExiting:h,overlayRef:c,modalRef:l,onExitRef:f})}const P=i(N);function F({UNSTABLE_portalContainer:t,UNSTABLE_deferUntilEntered:r,...i}){let o=i.modalRef,{state:s}=i,[u,p]=c(!1),g=h(i.overlayRef,u,i.onEnter)||i.isEntering||!1,y=!!r&&(!u||g),{modalProps:x,underlayProps:w}=_({...i,isEntering:y},s,o),T=a(k),E=r?I(T,{isEntering:y}):T,D=C({...i,defaultClassName:`react-aria-ModalOverlay`,values:{isEntering:g,isExiting:i.isExiting,state:s}}),j=b(),N,P;if(typeof document<`u`){let e=v(document.body)?document.body:document.scrollingElement||document.documentElement,t=e.getBoundingClientRect().width%1,n=e.getBoundingClientRect().height%1;N=e.scrollWidth-t,P=e.scrollHeight-n}let F={...D.style,"--visual-viewport-width":j.width+`px`,"--visual-viewport-height":j.height+`px`,"--page-width":N===void 0?void 0:N+`px`,"--page-height":P===void 0?void 0:P+`px`};return l(()=>m(()=>p(!0)),[]),n.createElement(f,{isExiting:i.isExiting,portalContainer:t},n.createElement(O.div,{...e(d(i,{global:!0}),w),...D,style:F,ref:i.overlayRef,"data-entering":g||void 0,"data-exiting":i.isExiting||void 0},n.createElement(S,{values:[[M,{modalProps:x,modalRef:o,isExiting:i.isExiting,onExitRef:i.onExitRef,isOpen:u,isDismissable:i.isDismissable}],[A,s],[k,E]]},D.children)))}function I(e,t){if(e&&`slots`in e&&e.slots){let n={};for(let r in e.slots)n[r]={...e.slots[r],...t};return{...e,slots:n}}return{...e,...t}}export{P as ModalOverlay};
@@ -1,2 +1,2 @@
1
- import { i as NumberFieldProps, n as NumberField, r as NumberFieldComponent, t as ControlledNumberFieldProps } from "../NumberField-Cb9Gf6QJ.js";
2
- export { ControlledNumberFieldProps, NumberField, NumberFieldComponent, NumberFieldProps };
1
+ import { i as NumberFieldProps, n as NumberFieldComponent, r as NumberFieldInner, t as NumberField } from "../NumberField-WXebfxjK.js";
2
+ export { NumberField, NumberFieldComponent, type NumberFieldInner, type NumberFieldProps };
@@ -1,246 +1,2 @@
1
- import { t as UIConfig } from "../uiConfig.context-BS3r_kTS.js";
2
- import { t as clsx } from "../clsx-CnD0nOiA.js";
3
- import { t as UIOverrides } from "../uiOverrides.context-BTCH9y5a.js";
4
- import { n as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "../Input-BsbLZDtC.js";
5
- import { a as $a3be900807531178$re_export$useLocale } from "../exports-BNrTn8Tj.js";
6
- import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "../import-BE0r63d8.js";
7
- import { t as FieldController } from "../form.binding-CG1RPv6o.js";
8
- import { t as FormField } from "../FormField-B99dLt8o.js";
9
- import { t as inputBaseDefinition } from "../input.cva-DJA8ovm_.js";
10
- import { t as TooltipWrapper } from "../TooltipWrapper-3jyN0Wss.js";
11
- import { n as InputContent, t as useFieldAccessibility } from "../useFieldAccessibility-ScC6Mtd5.js";
12
- import { i as InputFrame, n as useStaticInputHandoff } from "../useStaticInputHandoff-NeZVnci-.js";
13
- import { n as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c, t as getStaticNumberDisplayValue } from "../numberStatic.utils-BX50PSee.js";
14
- import { t as IntlUtils } from "../intl.utils-zwAFoZ0U.js";
15
- import { memo, useCallback, useEffect, useRef, useState } from "react";
16
- import { jsx } from "react/jsx-runtime";
17
- import { useNumberField } from "react-aria";
18
- import { useFocusVisible } from "@react-aria/interactions";
19
- //#region src/components/inputs/Input/NumberField/NumberField.tsx
20
- const NumberFieldBase = (props) => {
21
- "use no memo";
22
- const ui = UIConfig.useConfig();
23
- const inputBaseCva = UIOverrides.useCva("input.baseCva", inputBaseDefinition);
24
- const hasControlledValue = "value" in props;
25
- const inputRef = useRef(null);
26
- const { ref, inputClassName, label, tooltipText, helperText, isRequired, required, rightContent, isDisabled, disabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, errorMessage, className, unit, isLoading, action, leadingIcon, trailingIcon, value, onChange, onBlur, formatOptions: formatOptionsProp, variant: variantProp, as: asProp, layout: layoutProp, size: sizeProp, hideLabel: hideLabelProp, isClearable: isClearableProp, isClearableIfDisabled, autoFocusOnMount, ...rest } = props;
27
- const formatOptions = formatOptionsProp ?? ui.numberField.formatOptions;
28
- const variant = variantProp ?? ui.input.variant;
29
- const as = layoutProp ?? asProp ?? ui.input.as;
30
- const resolvedIsDisabled = isDisabled ?? disabled;
31
- const resolvedIsRequired = isRequired ?? required;
32
- const resolvedError = errorMessage ?? error;
33
- const size = sizeProp ?? ui.input.size;
34
- const hideLabel = hideLabelProp ?? ui.input.hideLabel;
35
- const isClearable = isClearableProp ?? ui.input.isClearable;
36
- const numberFieldRef = useRef(null);
37
- const { isFocusVisible } = useFocusVisible();
38
- const { locale } = $a3be900807531178$re_export$useLocale();
39
- const numberProps = {
40
- ...rest,
41
- value: hasControlledValue ? value ?? NaN : void 0,
42
- label,
43
- isDisabled: resolvedIsDisabled,
44
- isInvalid: !!resolvedError,
45
- isRequired: resolvedIsRequired,
46
- onChange: (nextValue) => onChange?.(Number.isNaN(nextValue) ? null : nextValue),
47
- onBlur: (e) => onBlur?.({ target: e.target }),
48
- locale,
49
- formatOptions
50
- };
51
- const state = $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c(numberProps);
52
- const { labelProps, inputProps } = useNumberField(numberProps, state, numberFieldRef);
53
- const { describedBy, errorMessageId, helperTextId } = useFieldAccessibility({
54
- describedBy: inputProps["aria-describedby"],
55
- error,
56
- helperText
57
- });
58
- useEffect(() => {
59
- if (!autoFocusOnMount || resolvedIsDisabled) return;
60
- requestAnimationFrame(() => inputRef.current?.focus());
61
- }, [autoFocusOnMount, resolvedIsDisabled]);
62
- const formFieldProps = {
63
- errorMessageId,
64
- error: resolvedError,
65
- label,
66
- tooltipText,
67
- helperText,
68
- helperTextId,
69
- isRequired: resolvedIsRequired,
70
- rightContent,
71
- isHeaderHidden: isHeaderHidden || as === "inline" || as === "filter" || as === "floating",
72
- hideLabel,
73
- isDisabled: resolvedIsDisabled,
74
- headerClassName,
75
- errorClassName
76
- };
77
- const handleInputBlur = useCallback((e) => {
78
- const target = numberFieldRef.current ?? e?.target;
79
- onBlur?.({ target });
80
- }, [onBlur]);
81
- const inputContentProps = {
82
- unit,
83
- isLoading,
84
- isDisabled: resolvedIsDisabled,
85
- action,
86
- leadingIcon,
87
- trailingIcon,
88
- isClearable,
89
- isClearableIfDisabled,
90
- onChange: (nextValue) => {
91
- if (nextValue === "") state.setInputValue("");
92
- onChange?.(nextValue === "" ? null : Number(nextValue));
93
- },
94
- value: state.inputValue,
95
- onBlur: handleInputBlur
96
- };
97
- const headerProps = {
98
- label,
99
- tooltipText,
100
- helperText,
101
- isRequired: resolvedIsRequired,
102
- rightContent,
103
- isHeaderHidden: hideLabel || isHeaderHidden,
104
- isDisabled: resolvedIsDisabled,
105
- className: headerClassName,
106
- labelProps
107
- };
108
- const dataIsDisabled = resolvedIsDisabled || void 0;
109
- return /* @__PURE__ */ jsx(TooltipWrapper, {
110
- as,
111
- error: resolvedError,
112
- triggerTabIndex: as === "inline" ? -1 : void 0,
113
- children: /* @__PURE__ */ jsx(FormField, {
114
- ...formFieldProps,
115
- as,
116
- labelProps,
117
- className: clsx("group w-full", className),
118
- tabIndex: as === "inline" ? -1 : void 0,
119
- children: /* @__PURE__ */ jsx("div", {
120
- className: clsx("relative flex cursor-text has-disabled:cursor-default", inputBaseCva({
121
- variant,
122
- as,
123
- ...rest
124
- }), inputClassName),
125
- onClick: () => inputRef.current?.focus(),
126
- "data-is-empty": value === null || value === void 0 || void 0,
127
- "data-is-required": resolvedIsRequired || void 0,
128
- "data-is-disabled": dataIsDisabled,
129
- children: /* @__PURE__ */ jsx(InputContent, {
130
- ...inputContentProps,
131
- headerProps,
132
- as,
133
- size,
134
- children: /* @__PURE__ */ jsx($41fb335299a4a39e$export$f5b8910cec6cf069, {
135
- ...inputProps,
136
- "aria-describedby": describedBy,
137
- "aria-errormessage": errorMessageId,
138
- ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, inputRef, numberFieldRef),
139
- "data-is-dirty": isDirty || void 0,
140
- "data-is-required": resolvedIsRequired || void 0,
141
- "data-is-empty": state.inputValue === "" || state.inputValue === void 0 || state.inputValue === null || void 0,
142
- "data-is-filled": !("" + value === "" || value === null || value === void 0) || void 0,
143
- "data-is-disabled": dataIsDisabled,
144
- placeholder: as === "floating" ? "\xA0" : inputProps.placeholder,
145
- className: "w-full bg-transparent outline-none",
146
- onFocus: (e) => {
147
- inputProps.onFocus?.(e);
148
- if (isFocusVisible) e.target.select();
149
- }
150
- })
151
- })
152
- })
153
- })
154
- });
155
- };
156
- const NumberFieldInner = ({ renderStaticInput, isFormControlDisabled, ...props }) => {
157
- "use no memo";
158
- const ui = UIConfig.useConfig();
159
- const { locale } = $a3be900807531178$re_export$useLocale();
160
- const [renderInput, setRenderInput] = useState(!(renderStaticInput ?? ui.renderStaticInput));
161
- const inputRef = useRef(null);
162
- const { renderRealInput, replayStaticInputChange } = useStaticInputHandoff({
163
- inputRef,
164
- renderInput,
165
- setRenderInput
166
- });
167
- if (!renderInput) {
168
- const staticValue = props.value ?? props.defaultValue;
169
- const formatOptions = props.formatOptions ?? ui.numberField.formatOptions;
170
- const displayValue = getStaticNumberDisplayValue(staticValue, IntlUtils.getNumberFormatter(locale, formatOptions)) ?? "";
171
- const hasValue = displayValue !== "";
172
- const as = props.as ?? ui.input.as;
173
- let isDisabled = !!props.isDisabled;
174
- if (isFormControlDisabled) isDisabled = true;
175
- const dataAttributes = {
176
- dataIsEmpty: !hasValue,
177
- dataIsFilled: hasValue,
178
- dataIsDirty: props.isDirty,
179
- dataIsRequired: props.isRequired,
180
- dataIsDisabled: isDisabled,
181
- dataDisabled: isDisabled,
182
- dataInvalid: !!props.error,
183
- dataHasSelection: hasValue
184
- };
185
- return /* @__PURE__ */ jsx(InputFrame, {
186
- ...props,
187
- isDisabled,
188
- className: clsx("group w-full", as === "inline" && "h-full", props.className),
189
- dataAttributes,
190
- onStaticInteract: renderRealInput,
191
- inputClassName: props.inputClassName,
192
- contentClassName: clsx(as === "inline" && "h-full", "pr-0!"),
193
- trailingClassName: "py-0! pl-0!",
194
- wrapContentAndTrailing: true,
195
- reserveTrailingContent: true,
196
- children: (dataAttributeProps) => /* @__PURE__ */ jsx("input", {
197
- type: "text",
198
- ref: inputRef,
199
- disabled: isDisabled,
200
- inputMode: "numeric",
201
- tabIndex: -1,
202
- value: displayValue,
203
- placeholder: as === "floating" ? "" : props.placeholder,
204
- className: "w-full bg-transparent outline-none",
205
- onChange: (event) => replayStaticInputChange(event.target.value),
206
- ...dataAttributeProps,
207
- "data-rac": true
208
- })
209
- });
210
- }
211
- return /* @__PURE__ */ jsx(NumberFieldBase, {
212
- ...props,
213
- ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(props.ref, inputRef)
214
- });
215
- };
216
- /** @internal Exported for production render benchmarks. */
217
- const NumberFieldComponent = ({ renderStaticInput, ...props }) => {
218
- "use no memo";
219
- if ("field" in props && props.field) {
220
- const { field, ref, ...innerProps } = props;
221
- const controlWithOptions = field.form;
222
- return /* @__PURE__ */ jsx(FieldController, {
223
- control: field.form,
224
- name: field.name,
225
- render: ({ field, fieldState: { error, isDirty } }) => /* @__PURE__ */ jsx(NumberFieldInner, {
226
- ...innerProps,
227
- ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, field.ref),
228
- value: field.value,
229
- onChange: field.onChange,
230
- onBlur: field.onBlur,
231
- isDirty,
232
- isDisabled: field.disabled || props.isDisabled,
233
- isFormControlDisabled: !!controlWithOptions._options?.disabled,
234
- error: props.error ?? error?.message,
235
- renderStaticInput
236
- })
237
- });
238
- }
239
- return /* @__PURE__ */ jsx(NumberFieldInner, {
240
- ...props,
241
- renderStaticInput
242
- });
243
- };
244
- const NumberField = memo(NumberFieldComponent);
245
- //#endregion
1
+ import { n as NumberFieldComponent, t as NumberField } from "../NumberField-CpkLBjIM.js";
246
2
  export { NumberField, NumberFieldComponent };
@@ -1,2 +1,2 @@
1
- import { i as NumberRangeValue, n as NumberRangeInput, r as NumberRangeInputProps, t as ControlledNumberRangeInputProps } from "../NumberRangeInput-BfbJQqzn.js";
2
- export { ControlledNumberRangeInputProps, NumberRangeInput, NumberRangeInputProps, type NumberRangeValue };
1
+ import { a as NumberRangeValue, i as NumberRangeInputProps, n as NumberRangeInputComponent, r as NumberRangeInputInner, t as NumberRangeInput } from "../NumberRangeInput-BCKQaGpy.js";
2
+ export { NumberRangeInput, type NumberRangeInputComponent, type NumberRangeInputInner, type NumberRangeInputProps, type NumberRangeValue };
@@ -1,2 +1,2 @@
1
- import { t as NumberRangeInput } from "../NumberRangeInput-B8-LHfg3.js";
1
+ import { t as NumberRangeInput } from "../NumberRangeInput-47xOaSXq.js";
2
2
  export { NumberRangeInput };
@@ -0,0 +1,2 @@
1
+ import { a as PageHeaderDetailsProps, c as PageHeaderSummaryProps, i as PageHeaderDetails, n as PageHeaderBackLink, o as PageHeaderProps, r as PageHeaderDetail, s as PageHeaderSummary, t as PageHeader } from "../PageHeader-BwzxymWY.js";
2
+ export { PageHeader, PageHeaderBackLink, PageHeaderDetail, PageHeaderDetails, PageHeaderDetailsProps, PageHeaderProps, PageHeaderSummary, PageHeaderSummaryProps };
@@ -0,0 +1,205 @@
1
+ import { t as clsx } from "../clsx-CnD0nOiA.js";
2
+ import { t as Breadcrumbs } from "../Breadcrumbs-a1-q_he0.js";
3
+ import { t as Typography } from "../Typography-DCLnPa3P.js";
4
+ import { Link as Link$1 } from "./link.js";
5
+ import { ChevronLeft } from "lucide-react";
6
+ import { c } from "react/compiler-runtime";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ //#region src/components/navigation/PageHeader/PageHeader.tsx
9
+ const PageHeaderBack = (t0) => {
10
+ const $ = c(4);
11
+ const { label, link } = t0;
12
+ let t1;
13
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
14
+ t1 = /* @__PURE__ */ jsx(ChevronLeft, {
15
+ "aria-hidden": true,
16
+ className: "size-icons-size shrink-0"
17
+ });
18
+ $[0] = t1;
19
+ } else t1 = $[0];
20
+ let t2;
21
+ if ($[1] !== label || $[2] !== link) {
22
+ t2 = /* @__PURE__ */ jsxs(Link$1, {
23
+ ...link,
24
+ variant: "subtle",
25
+ className: "inline-flex w-fit items-center gap-breadcrumbs-gap-icon-to-text font-sans font-medium text-xs",
26
+ children: [t1, label]
27
+ });
28
+ $[1] = label;
29
+ $[2] = link;
30
+ $[3] = t2;
31
+ } else t2 = $[3];
32
+ return t2;
33
+ };
34
+ /**
35
+ * The top of a page: breadcrumbs or a back link, the title with its status, actions on the right (primary action
36
+ * last), then the page's details. Below 640px of the header's own width the actions move under the title.
37
+ */
38
+ const PageHeader = (t0) => {
39
+ const $ = c(26);
40
+ const { title, status, breadcrumbs, backLink, actions, primaryAction, divider: t1, className, children } = t0;
41
+ const divider = t1 === void 0 ? true : t1;
42
+ let t2;
43
+ if ($[0] !== className) {
44
+ t2 = clsx("@container", className);
45
+ $[0] = className;
46
+ $[1] = t2;
47
+ } else t2 = $[1];
48
+ const t3 = divider && "border-b border-b-border";
49
+ let t4;
50
+ if ($[2] !== t3) {
51
+ t4 = clsx("flex flex-col gap-4 pt-3 pb-5", t3);
52
+ $[2] = t3;
53
+ $[3] = t4;
54
+ } else t4 = $[3];
55
+ let t5;
56
+ if ($[4] !== backLink || $[5] !== breadcrumbs) {
57
+ t5 = backLink ? /* @__PURE__ */ jsx(PageHeaderBack, { ...backLink }) : breadcrumbs && /* @__PURE__ */ jsx(Breadcrumbs, { items: breadcrumbs });
58
+ $[4] = backLink;
59
+ $[5] = breadcrumbs;
60
+ $[6] = t5;
61
+ } else t5 = $[6];
62
+ let t6;
63
+ if ($[7] !== title) {
64
+ t6 = /* @__PURE__ */ jsx(Typography, {
65
+ as: "h1",
66
+ size: "h1",
67
+ className: "min-w-0 truncate font-semibold text-card-foreground",
68
+ children: title
69
+ });
70
+ $[7] = title;
71
+ $[8] = t6;
72
+ } else t6 = $[8];
73
+ let t7;
74
+ if ($[9] !== status || $[10] !== t6) {
75
+ t7 = /* @__PURE__ */ jsxs("div", {
76
+ className: "flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1.5",
77
+ children: [t6, status]
78
+ });
79
+ $[9] = status;
80
+ $[10] = t6;
81
+ $[11] = t7;
82
+ } else t7 = $[11];
83
+ let t8;
84
+ if ($[12] !== actions || $[13] !== primaryAction) {
85
+ t8 = (actions || primaryAction) && /* @__PURE__ */ jsxs("div", {
86
+ className: "flex shrink-0 flex-wrap items-center gap-2",
87
+ children: [actions, primaryAction]
88
+ });
89
+ $[12] = actions;
90
+ $[13] = primaryAction;
91
+ $[14] = t8;
92
+ } else t8 = $[14];
93
+ let t9;
94
+ if ($[15] !== t7 || $[16] !== t8) {
95
+ t9 = /* @__PURE__ */ jsxs("div", {
96
+ className: "flex flex-col gap-3 @min-[640px]:flex-row @min-[640px]:items-center @min-[640px]:justify-between",
97
+ children: [t7, t8]
98
+ });
99
+ $[15] = t7;
100
+ $[16] = t8;
101
+ $[17] = t9;
102
+ } else t9 = $[17];
103
+ let t10;
104
+ if ($[18] !== children || $[19] !== t4 || $[20] !== t5 || $[21] !== t9) {
105
+ t10 = /* @__PURE__ */ jsxs("header", {
106
+ className: t4,
107
+ children: [
108
+ t5,
109
+ t9,
110
+ children
111
+ ]
112
+ });
113
+ $[18] = children;
114
+ $[19] = t4;
115
+ $[20] = t5;
116
+ $[21] = t9;
117
+ $[22] = t10;
118
+ } else t10 = $[22];
119
+ let t11;
120
+ if ($[23] !== t10 || $[24] !== t2) {
121
+ t11 = /* @__PURE__ */ jsx("div", {
122
+ className: t2,
123
+ children: t10
124
+ });
125
+ $[23] = t10;
126
+ $[24] = t2;
127
+ $[25] = t11;
128
+ } else t11 = $[25];
129
+ return t11;
130
+ };
131
+ /**
132
+ * Page details that can be shaped like a table, as label–value rows. Labels sit in a column beside their values;
133
+ * below 640px of the header's width each label moves above its value.
134
+ */
135
+ const PageHeaderDetails = (t0) => {
136
+ const $ = c(7);
137
+ const { items, className } = t0;
138
+ let t1;
139
+ if ($[0] !== className) {
140
+ t1 = clsx("m-0 flex flex-col gap-3 @min-[640px]:gap-2", className);
141
+ $[0] = className;
142
+ $[1] = t1;
143
+ } else t1 = $[1];
144
+ let t2;
145
+ if ($[2] !== items) {
146
+ t2 = items.map(_temp);
147
+ $[2] = items;
148
+ $[3] = t2;
149
+ } else t2 = $[3];
150
+ let t3;
151
+ if ($[4] !== t1 || $[5] !== t2) {
152
+ t3 = /* @__PURE__ */ jsx("dl", {
153
+ className: t1,
154
+ children: t2
155
+ });
156
+ $[4] = t1;
157
+ $[5] = t2;
158
+ $[6] = t3;
159
+ } else t3 = $[6];
160
+ return t3;
161
+ };
162
+ /** A short paragraph describing the page, kept to about 66 characters a line (`ch` is a digit's width, so 50ch). */
163
+ const PageHeaderSummary = (t0) => {
164
+ const $ = c(5);
165
+ const { className, children } = t0;
166
+ let t1;
167
+ if ($[0] !== className) {
168
+ t1 = clsx("m-0 max-w-[50ch] text-pretty text-card-foreground", className);
169
+ $[0] = className;
170
+ $[1] = t1;
171
+ } else t1 = $[1];
172
+ let t2;
173
+ if ($[2] !== children || $[3] !== t1) {
174
+ t2 = /* @__PURE__ */ jsx(Typography, {
175
+ size: "body",
176
+ className: t1,
177
+ children
178
+ });
179
+ $[2] = children;
180
+ $[3] = t1;
181
+ $[4] = t2;
182
+ } else t2 = $[4];
183
+ return t2;
184
+ };
185
+ function _temp(item) {
186
+ return /* @__PURE__ */ jsxs("div", {
187
+ className: "grid gap-0.5 @min-[640px]:grid-cols-[10rem_1fr] @min-[640px]:gap-0",
188
+ children: [/* @__PURE__ */ jsx(Typography, {
189
+ as: "dt",
190
+ size: "body",
191
+ className: "text-foreground @max-[639px]:text-xs",
192
+ children: item.label
193
+ }), /* @__PURE__ */ jsxs(Typography, {
194
+ as: "dd",
195
+ size: "body",
196
+ className: "m-0 text-card-foreground",
197
+ children: [item.value, item.meta != null && item.meta !== false && /* @__PURE__ */ jsxs("span", {
198
+ className: "text-foreground",
199
+ children: [" · ", item.meta]
200
+ })]
201
+ })]
202
+ }, item.label);
203
+ }
204
+ //#endregion
205
+ export { PageHeader, PageHeaderDetails, PageHeaderSummary };
@@ -1,2 +1,2 @@
1
- import { n as PaginationListProps, t as PaginationList } from "../PaginationList-DMRUGtf8.js";
1
+ import { n as PaginationListProps, t as PaginationList } from "../PaginationList-CvlSkJGn.js";
2
2
  export { PaginationList, PaginationListProps };
@@ -1,2 +1,2 @@
1
- import { t as PaginationList } from "../PaginationList-DtvuP63b.js";
1
+ import { t as PaginationList } from "../PaginationList-BTmrmOGl.js";
2
2
  export { PaginationList };
@@ -1,2 +1,2 @@
1
- import { n as PaginationProps, t as Pagination } from "../Pagination-CwQu5Py8.js";
1
+ import { n as PaginationProps, t as Pagination } from "../Pagination-BCGUVYOF.js";
2
2
  export { Pagination, PaginationProps };
@@ -1,8 +1,8 @@
1
1
  import { t as clsx } from "../clsx-CnD0nOiA.js";
2
- import { t as Typography } from "../Typography-LU4z2pR1.js";
3
- import "../i18n-CX2EjhJI.js";
4
- import { NumberField } from "./number-field.js";
5
- import { t as PaginationList } from "../PaginationList-DtvuP63b.js";
2
+ import { t as Typography } from "../Typography-DCLnPa3P.js";
3
+ import "../i18n-D1FWVTPi.js";
4
+ import { t as NumberField } from "../NumberField-CpkLBjIM.js";
5
+ import { t as PaginationList } from "../PaginationList-BTmrmOGl.js";
6
6
  import { c } from "react/compiler-runtime";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import { useTranslation } from "react-i18next";
@@ -10,8 +10,8 @@ import { useTranslation } from "react-i18next";
10
10
  const Pagination = (t0) => {
11
11
  const $ = c(35);
12
12
  const { size: t1, variant: t2, color: t3, page, totalItems, totalPages, pageSize, hideText: t4, hideFirstLast: t5, hidePrevNext: t6, hideNumbers: t7, className, onPageChange, onPageSizeChange } = t0;
13
- const size = t1 === void 0 ? "s" : t1;
14
- const variant = t2 === void 0 ? "subtle" : t2;
13
+ const size = t1 === void 0 ? "default" : t1;
14
+ const variant = t2 === void 0 ? "ghost" : t2;
15
15
  const color = t3 === void 0 ? "secondary" : t3;
16
16
  const hideText = t4 === void 0 ? true : t4;
17
17
  const hideFirstLast = t5 === void 0 ? true : t5;
@@ -20,7 +20,7 @@ const Pagination = (t0) => {
20
20
  const { t } = useTranslation("ui");
21
21
  let t8;
22
22
  if ($[0] !== className) {
23
- t8 = clsx("flex items-center gap-2", className);
23
+ t8 = clsx("flex flex-wrap items-center gap-2", className);
24
24
  $[0] = className;
25
25
  $[1] = t8;
26
26
  } else t8 = $[1];
@@ -61,9 +61,9 @@ const Pagination = (t0) => {
61
61
  let t11;
62
62
  if ($[17] !== t10) {
63
63
  t11 = /* @__PURE__ */ jsx(Typography, {
64
- size: "small",
64
+ size: "body",
65
65
  as: "span",
66
- className: "whitespace-nowrap text-surface-default-card-foreground",
66
+ className: "whitespace-nowrap font-medium text-foreground",
67
67
  children: t10
68
68
  });
69
69
  $[17] = t10;
@@ -71,7 +71,9 @@ const Pagination = (t0) => {
71
71
  } else t11 = $[18];
72
72
  let t12;
73
73
  if ($[19] !== onPageSizeChange) {
74
- t12 = (value) => onPageSizeChange?.(Number(value));
74
+ t12 = (value) => {
75
+ if (value !== null && Number.isSafeInteger(value) && value > 0) onPageSizeChange?.(value);
76
+ };
75
77
  $[19] = onPageSizeChange;
76
78
  $[20] = t12;
77
79
  } else t12 = $[20];
@@ -88,6 +90,8 @@ const Pagination = (t0) => {
88
90
  className: "w-20 shrink-0",
89
91
  children: /* @__PURE__ */ jsx(NumberField, {
90
92
  value: pageSize,
93
+ minValue: 1,
94
+ step: 1,
91
95
  onChange: t12,
92
96
  label: t13,
93
97
  hideLabel: true,
@@ -1,2 +1,2 @@
1
- import { n as PasswordInput, r as PasswordInputProps, t as ControlledPasswordInputProps } from "../PasswordInput-CLwFUgl0.js";
2
- export { ControlledPasswordInputProps, PasswordInput, PasswordInputProps };
1
+ import { n as PasswordInputProps, t as PasswordInput } from "../PasswordInput-EhQjYyJS.js";
2
+ export { PasswordInput, type PasswordInputProps };
@@ -1,2 +1,23 @@
1
- import { t as PasswordInput } from "../PasswordInput-DYwUZ4-k.js";
1
+ import "../i18n-D1FWVTPi.js";
2
+ import { t as Input } from "../Input-BIuNQb5u.js";
3
+ import { Eye, EyeOff } from "lucide-react";
4
+ import { memo, useState } from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { useTranslation } from "react-i18next";
7
+ //#region src/components/inputs/Input/PasswordInput/PasswordInput.tsx
8
+ const PasswordInputComponent = (props) => {
9
+ const { t } = useTranslation("ui");
10
+ const [isRevealed, setIsRevealed] = useState(false);
11
+ return /* @__PURE__ */ jsx(Input, {
12
+ ...props,
13
+ type: isRevealed ? "text" : "password",
14
+ action: {
15
+ icon: isRevealed ? Eye : EyeOff,
16
+ altText: t(($) => isRevealed ? $.ui.password.hide : $.ui.password.reveal),
17
+ onClick: () => setIsRevealed(!isRevealed)
18
+ }
19
+ });
20
+ };
21
+ const PasswordInput = memo(PasswordInputComponent);
22
+ //#endregion
2
23
  export { PasswordInput };
@@ -1 +1 @@
1
- import{mergeProps as e}from"react-aria/mergeProps";import{mergeRefs as t}from"react-aria/mergeRefs";import n,{createContext as r,forwardRef as i,useCallback as a,useContext as o,useEffect as s,useMemo as c,useRef as l,useState as u}from"react";import{useLayoutEffect as d}from"react-aria/private/utils/useLayoutEffect";import{useObjectRef as f}from"react-aria/useObjectRef";import{filterDOMProps as p}from"react-aria/filterDOMProps";import{useIsHidden as m}from"react-aria/private/collections/Hidden";import"react-aria/useId";import{useLocale as h}from"react-aria/I18nProvider";import{usePopover as g}from"react-aria/usePopover";import{DismissButton as _,Overlay as v}from"react-aria/Overlay";import{focusSafely as y}from"react-aria/private/interactions/focusSafely";import{getInteractionModality as b}from"react-aria/private/interactions/useFocusVisible";import{isFocusWithin as x}from"react-aria/private/utils/shadowdom/DOMFunctions";import{useOverlayTriggerState as S}from"react-stately/useOverlayTriggerState";import{useEnterAnimation as C,useExitAnimation as w}from"react-aria/private/utils/animation";import{useResizeObserver as T}from"react-aria/private/utils/useResizeObserver";import"react-stately/useMenuTriggerState";import"react-aria/private/interactions/PressResponder";import"react-aria/useDialog";import"react-aria/useOverlayTrigger";const E=Symbol(`default`);function D(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s,render:l}=e;return c(()=>{let e,c,u;return e=typeof t==`function`?t({...s,defaultClassName:i}):t,c=typeof n==`function`?n({...s,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...s,defaultChildren:a}):r??a,{className:e??i,style:c||o?{...o,...c}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,s):void 0}},[t,n,r,i,a,o,s,l])}function O(e,t){let n=o(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||E;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function k(n,r,i){let{ref:a,...o}=O(i,n.slot)||{},s=f(c(()=>t(r,a),[r,a])),l=e(o,n);return`style`in o&&o.style&&`style`in n&&n.style&&(l.style=typeof o.style==`function`||typeof n.style==`function`?e=>{let t=typeof o.style==`function`?o.style(e):o.style,r={...e.defaultStyle,...t},i=typeof n.style==`function`?n.style({...e,defaultStyle:r}):n.style;return{...r,...i}}:{...o.style,...n.style}),[l,s]}function A(e,r,i){let{render:a,...o}=r,s=l(null),u=c(()=>t(i,s),[i,s]);d(()=>{},[e,a]);let f={...o,ref:u};return a?a(f,void 0):n.createElement(e,f)}const j={},M=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=j[t];return n||(n=i(A.bind(null,t)),j[t]=n),n}}),N=r({placement:`bottom`}),P=r(null),F=r(null),I=i(function(e,t){[e,t]=k(e,t,P);let r=o(R),i=S(e),a=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,s=w(t,a.isOpen),c=e.isExiting||!e.shouldSkipAnimation&&s||!1,l=m(),{direction:u}=h();if(l){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),n.createElement(n.Fragment,null,t)}return a&&!a.isOpen&&!c?null:n.createElement(L,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:c,dir:u})});function L({state:t,isExiting:r,UNSTABLE_portalContainer:i,clearContexts:f,...m}){let h=l(null),S=l(null),w=o(F),E=w&&m.trigger===`SubmenuTrigger`,{popoverProps:O,underlayProps:k,arrowProps:A,placement:j,triggerAnchorPoint:P}=g({...m,offset:m.offset??8,arrowRef:h,groupRef:E?w:S},t),I=m.popoverRef,L=C(I,!!j),R=m.isEntering||!m.shouldSkipAnimation&&L||!1,z=D({...m,defaultClassName:`react-aria-Popover`,values:{trigger:m.trigger||null,placement:j,isEntering:R,isExiting:r}}),B=!m.isNonModal||m.trigger===`SubmenuTrigger`||m.trigger===`PreviewTrigger`,[V,H]=u(m.trigger===`PreviewTrigger`);d(()=>{I.current&&H(B&&!I.current.querySelector(`[role=dialog]`))},[I,B]),s(()=>{V&&m.trigger!==`PreviewTrigger`&&(m.trigger!==`SubmenuTrigger`||b()!==`pointer`)&&I.current&&!x(I.current)&&y(I.current)},[V,I,m.trigger]);let U=c(()=>{let e=z.children;if(f)for(let t of f)e=n.createElement(t.Provider,{value:null},e);return e},[z.children,f]),[W,G]=u(null),K=a(()=>{m.triggerRef.current&&G(m.triggerRef.current.getBoundingClientRect().width+`px`)},[m.triggerRef]);d(K,[K]),T({ref:z.style?.[`--trigger-width`]?void 0:m.triggerRef,onResize:K});let q={...O.style,"--trigger-anchor-point":P?`${P.x}px ${P.y}px`:void 0,...z.style,"--trigger-width":z.style?.[`--trigger-width`]||W},J=n.createElement(M.div,{...e(p(m,{global:!0}),O),...z,id:V?m.id:void 0,role:V?`dialog`:void 0,tabIndex:V?-1:void 0,"aria-label":m[`aria-label`],"aria-labelledby":m[`aria-labelledby`],ref:I,slot:m.slot||void 0,style:q,dir:m.dir,"data-trigger":m.trigger,"data-placement":j,"data-entering":R||void 0,"data-exiting":r||void 0},!m.isNonModal&&n.createElement(_,{onDismiss:t.close}),n.createElement(N.Provider,{value:{...A,placement:j,ref:h}},U),n.createElement(_,{onDismiss:t.close}));return E?n.createElement(v,{...m,shouldContainFocus:V&&m.trigger!==`PreviewTrigger`,isExiting:r,portalContainer:i??w?.current??void 0},J):n.createElement(v,{...m,shouldContainFocus:V&&m.trigger!==`PreviewTrigger`,isExiting:r,portalContainer:i},!m.isNonModal&&t.isOpen&&n.createElement(`div`,{"data-testid":`underlay`,...k,style:{position:`fixed`,inset:0}}),n.createElement(`div`,{ref:S,style:{display:`contents`}},n.createElement(F.Provider,{value:S},J)))}const R=r(null);export{I as Popover};
1
+ import{mergeProps as e}from"react-aria/mergeProps";import{mergeRefs as t}from"react-aria/mergeRefs";import n,{createContext as r,forwardRef as i,useCallback as a,useContext as o,useEffect as s,useMemo as c,useRef as l,useState as u}from"react";import{useLayoutEffect as d}from"react-aria/private/utils/useLayoutEffect";import{useObjectRef as f}from"react-aria/useObjectRef";import{filterDOMProps as p}from"react-aria/filterDOMProps";import{useIsHidden as m}from"react-aria/private/collections/Hidden";import"react-aria/useId";import{useLocale as h}from"react-aria/I18nProvider";import{usePopover as g}from"react-aria/usePopover";import{DismissButton as _,Overlay as v}from"react-aria/Overlay";import{focusSafely as y}from"react-aria/private/interactions/focusSafely";import{getInteractionModality as b}from"react-aria/private/interactions/useFocusVisible";import{isFocusWithin as x}from"react-aria/private/utils/shadowdom/DOMFunctions";import{useOverlayTriggerState as S}from"react-stately/useOverlayTriggerState";import{runAfterKeyboard as C}from"react-aria/private/utils/runAfterKeyboard";import{useEnterAnimation as w,useExitAnimation as T}from"react-aria/private/utils/animation";import{useResizeObserver as E}from"react-aria/private/utils/useResizeObserver";import"react-stately/useMenuTriggerState";import"react-aria/private/interactions/PressResponder";import"react-aria/useDialog";import"react-aria/useOverlayTrigger";const D=Symbol(`default`);function O(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s,render:l}=e;return c(()=>{let e,c,u;return e=typeof t==`function`?t({...s,defaultClassName:i}):t,c=typeof n==`function`?n({...s,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...s,defaultChildren:a}):r??a,{className:e??i,style:c||o?{...o,...c}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,s):void 0}},[t,n,r,i,a,o,s,l])}function k(e,t){let n=o(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||D;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function A(n,r,i){let{ref:a,...o}=k(i,n.slot)||{},s=f(c(()=>t(r,a),[r,a])),l=e(o,n);return`style`in o&&o.style&&`style`in n&&n.style&&(l.style=typeof o.style==`function`||typeof n.style==`function`?e=>{let t=typeof o.style==`function`?o.style(e):o.style,r={...e.defaultStyle,...t},i=typeof n.style==`function`?n.style({...e,defaultStyle:r}):n.style;return{...r,...i}}:{...o.style,...n.style}),[l,s]}function j(e,r,i){let{render:a,...o}=r,s=l(null),u=c(()=>t(i,s),[i,s]);d(()=>{},[e,a]);let f={...o,ref:u};return a?a(f,void 0):n.createElement(e,f)}const M={},N=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=M[t];return n||(n=i(j.bind(null,t)),M[t]=n),n}}),P=r({placement:`bottom`}),F=r(null),I=r(null),L=i(function(e,t){[e,t]=A(e,t,F);let r=o(z),i=S(e),a=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,s=T(t,a.isOpen),c=e.isExiting||!e.shouldSkipAnimation&&s||!1,l=m(),{direction:u}=h();if(l){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),n.createElement(n.Fragment,null,t)}return a&&!a.isOpen&&!c?null:n.createElement(R,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:c,dir:u})});function R({state:t,isExiting:r,UNSTABLE_portalContainer:i,clearContexts:f,...m}){let h=l(null),S=l(null),T=o(I),D=T&&m.trigger===`SubmenuTrigger`,[k,A]=u(!1),{popoverProps:j,underlayProps:M,arrowProps:L,placement:R,triggerAnchorPoint:z}=g({...m,offset:m.offset??8,arrowRef:h,groupRef:D?T:S},t),B=m.popoverRef,V=w(B,!!R&&k),H=m.isEntering||!m.shouldSkipAnimation&&V||!1,U=O({...m,defaultClassName:`react-aria-Popover`,values:{trigger:m.trigger||null,placement:R,isEntering:H,isExiting:r}}),W=!m.isNonModal||m.trigger===`SubmenuTrigger`||m.trigger===`PreviewTrigger`,[G,K]=u(m.trigger===`PreviewTrigger`);d(()=>{B.current&&K(W&&!B.current.querySelector(`[role=dialog]`))},[B,W]),s(()=>{G&&m.trigger!==`PreviewTrigger`&&(m.trigger!==`SubmenuTrigger`||b()!==`pointer`)&&B.current&&!x(B.current)&&y(B.current)},[G,B,m.trigger]);let q=c(()=>{let e=U.children;for(let t of[F,...f??[]])e=n.createElement(t.Provider,{value:null},e);return e},[U.children,f]),[J,Y]=u(null),X=a(()=>{m.triggerRef.current&&Y(m.triggerRef.current.getBoundingClientRect().width+`px`)},[m.triggerRef]);d(X,[X]),E({ref:U.style?.[`--trigger-width`]?void 0:m.triggerRef,onResize:X});let Z={...j.style,"--trigger-anchor-point":z?`${z.x}px ${z.y}px`:void 0,...U.style,"--trigger-width":U.style?.[`--trigger-width`]||J};d(()=>C(()=>A(!0)),[]);let Q=n.createElement(N.div,{...e(p(m,{global:!0}),j),...U,id:G?m.id:void 0,role:G?`dialog`:void 0,tabIndex:G?-1:void 0,"aria-label":m[`aria-label`],"aria-labelledby":m[`aria-labelledby`],ref:B,slot:m.slot||void 0,style:Z,dir:m.dir,"data-trigger":m.trigger,"data-placement":R,"data-entering":H||void 0,"data-exiting":r||void 0},!m.isNonModal&&n.createElement(_,{onDismiss:t.close}),n.createElement(P.Provider,{value:{...L,placement:R,ref:h}},q),n.createElement(_,{onDismiss:t.close}));return D?n.createElement(v,{...m,shouldContainFocus:G&&m.trigger!==`PreviewTrigger`,isExiting:r,portalContainer:i??T?.current??void 0},Q):n.createElement(v,{...m,shouldContainFocus:G&&m.trigger!==`PreviewTrigger`,isExiting:r,portalContainer:i},!m.isNonModal&&t.isOpen&&n.createElement(`div`,{"data-testid":`underlay`,...M,style:{position:`fixed`,inset:0}}),n.createElement(`div`,{ref:S,style:{display:`contents`}},n.createElement(I.Provider,{value:S},Q)))}const z=r(null);export{L as Popover};
@@ -1,2 +1,2 @@
1
- import { n as PopoverProps, t as Popover } from "../Popover-BTHPteIh.js";
1
+ import { n as PopoverProps, t as Popover } from "../Popover-D_t1XDPA.js";
2
2
  export { Popover, PopoverProps };