@commercetools/nimbus 2.0.1-rc1 → 2.0.1-rc3

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 (753) hide show
  1. package/dist/chunks/{Button-CrgZzRm9.es.js → Button-Dx3xzN8n.es.js} +2 -2
  2. package/dist/chunks/{Button-CrgZzRm9.es.js.map → Button-Dx3xzN8n.es.js.map} +1 -1
  3. package/dist/chunks/{DateField-qGypjFaJ.es.js → DateField-DZwn3cIj.es.js} +3 -3
  4. package/dist/chunks/{DateField-qGypjFaJ.es.js.map → DateField-DZwn3cIj.es.js.map} +1 -1
  5. package/dist/chunks/{DatePicker-Dn0LNd7V.es.js → DatePicker-B2Nf_0Sq.es.js} +6 -6
  6. package/dist/chunks/{DatePicker-Dn0LNd7V.es.js.map → DatePicker-B2Nf_0Sq.es.js.map} +1 -1
  7. package/dist/chunks/{Dialog-B2hCMJnM.es.js → Dialog-Qpq4hk89.es.js} +6 -6
  8. package/dist/chunks/{Dialog-B2hCMJnM.es.js.map → Dialog-Qpq4hk89.es.js.map} +1 -1
  9. package/dist/chunks/{Header-B4V0zxSN.es.js → Header-DFcQWjkP.es.js} +3 -3
  10. package/dist/chunks/{Header-B4V0zxSN.es.js.map → Header-DFcQWjkP.es.js.map} +1 -1
  11. package/dist/chunks/{Heading-CfiWDgRZ.es.js → Heading-DFiVmZUR.es.js} +4 -4
  12. package/dist/chunks/{Heading-CfiWDgRZ.es.js.map → Heading-DFiVmZUR.es.js.map} +1 -1
  13. package/dist/chunks/{ListBox-DAcVFwWW.es.js → ListBox-_1Uk-5-7.es.js} +6 -6
  14. package/dist/chunks/{ListBox-DAcVFwWW.es.js.map → ListBox-_1Uk-5-7.es.js.map} +1 -1
  15. package/dist/chunks/{ListKeyboardDelegate-D-k0fIME.es.js → ListKeyboardDelegate-ByRdSpOe.es.js} +2 -2
  16. package/dist/chunks/{ListKeyboardDelegate-D-k0fIME.es.js.map → ListKeyboardDelegate-ByRdSpOe.es.js.map} +1 -1
  17. package/dist/chunks/{Modal-D91zBjIP.es.js → Modal-DZrVgGsJ.es.js} +3 -3
  18. package/dist/chunks/{Modal-D91zBjIP.es.js.map → Modal-DZrVgGsJ.es.js.map} +1 -1
  19. package/dist/chunks/{SelectionManager-2q7N4psD.es.js → SelectionManager-DMLLo5N3.es.js} +3 -3
  20. package/dist/chunks/{SelectionManager-2q7N4psD.es.js.map → SelectionManager-DMLLo5N3.es.js.map} +1 -1
  21. package/dist/chunks/{ToggleButton-Cj9AtHpY.es.js → ToggleButton-881iW8P_.es.js} +2 -2
  22. package/dist/chunks/{ToggleButton-Cj9AtHpY.es.js.map → ToggleButton-881iW8P_.es.js.map} +1 -1
  23. package/dist/chunks/accordion-B2FLWAh5.cjs.js.map +1 -1
  24. package/dist/chunks/{accordion-DSLccfDW.es.js → accordion-CKDnNkVv.es.js} +2 -2
  25. package/dist/chunks/accordion-CKDnNkVv.es.js.map +1 -0
  26. package/dist/chunks/{alert-Cz2mnKir.es.js → alert-lNg0Rz2w.es.js} +2 -2
  27. package/dist/chunks/{alert-Cz2mnKir.es.js.map → alert-lNg0Rz2w.es.js.map} +1 -1
  28. package/dist/chunks/{button-Cnui897Z.es.js → button-IZUJaJku.es.js} +3 -3
  29. package/dist/chunks/{button-Cnui897Z.es.js.map → button-IZUJaJku.es.js.map} +1 -1
  30. package/dist/chunks/calendar-V0KeNCQ3.cjs.js.map +1 -1
  31. package/dist/chunks/{calendar-BTdHdh7y.es.js → calendar-lD6G93R9.es.js} +5 -5
  32. package/dist/chunks/calendar-lD6G93R9.es.js.map +1 -0
  33. package/dist/chunks/{checkbox-Bm4Yqa_0.es.js → checkbox-BB-WJdal.es.js} +3 -3
  34. package/dist/chunks/{checkbox-Bm4Yqa_0.es.js.map → checkbox-BB-WJdal.es.js.map} +1 -1
  35. package/dist/chunks/collapsible-motion-C7M_CLNI.cjs.js.map +1 -1
  36. package/dist/chunks/{collapsible-motion-OOUmjdKw.es.js → collapsible-motion-CSrKjF8X.es.js} +2 -2
  37. package/dist/chunks/collapsible-motion-CSrKjF8X.es.js.map +1 -0
  38. package/dist/chunks/combobox-B5UxZWSX.cjs.js.map +1 -1
  39. package/dist/chunks/{combobox-Ch4VokC9.es.js → combobox-D_7gr3DY.es.js} +13 -13
  40. package/dist/chunks/{combobox-Ch4VokC9.es.js.map → combobox-D_7gr3DY.es.js.map} +1 -1
  41. package/dist/chunks/{data-table-DC369pb3.es.js → data-table-ClMivKY1.es.js} +8 -8
  42. package/dist/chunks/{data-table-DC369pb3.es.js.map → data-table-ClMivKY1.es.js.map} +1 -1
  43. package/dist/chunks/{date-input-KVuRsFzs.es.js → date-input-Cap8-3zj.es.js} +2 -2
  44. package/dist/chunks/{date-input-KVuRsFzs.es.js.map → date-input-Cap8-3zj.es.js.map} +1 -1
  45. package/dist/chunks/{date-picker-C304WfAN.es.js → date-picker-ChZ8H-MT.es.js} +9 -9
  46. package/dist/chunks/{date-picker-C304WfAN.es.js.map → date-picker-ChZ8H-MT.es.js.map} +1 -1
  47. package/dist/chunks/{date-range-picker-CkRgcwfm.es.js → date-range-picker-DGWMdcAN.es.js} +9 -9
  48. package/dist/chunks/{date-range-picker-CkRgcwfm.es.js.map → date-range-picker-DGWMdcAN.es.js.map} +1 -1
  49. package/dist/chunks/{dialog-gTeRW6GK.es.js → dialog-BwtIcIvd.es.js} +2 -2
  50. package/dist/chunks/{dialog-gTeRW6GK.es.js.map → dialog-BwtIcIvd.es.js.map} +1 -1
  51. package/dist/chunks/{dialog.title-B9cEUH8w.es.js → dialog.title-CP_ZeiK4.es.js} +5 -5
  52. package/dist/chunks/{dialog.title-B9cEUH8w.es.js.map → dialog.title-CP_ZeiK4.es.js.map} +1 -1
  53. package/dist/chunks/{draggable-list-BIJ7t5ou.es.js → draggable-list-s43baxoM.es.js} +11 -11
  54. package/dist/chunks/{draggable-list-BIJ7t5ou.es.js.map → draggable-list-s43baxoM.es.js.map} +1 -1
  55. package/dist/chunks/{drawer-DKF34Nfc.es.js → drawer-BJ4qvGnj.es.js} +5 -5
  56. package/dist/chunks/{drawer-DKF34Nfc.es.js.map → drawer-BJ4qvGnj.es.js.map} +1 -1
  57. package/dist/chunks/{form-field-cRZo4WSf.es.js → form-field-BYlpCXdY.es.js} +3 -3
  58. package/dist/chunks/{form-field-cRZo4WSf.es.js.map → form-field-BYlpCXdY.es.js.map} +1 -1
  59. package/dist/chunks/group-BqUFlw5R.cjs.js.map +1 -1
  60. package/dist/chunks/group-CWADf2vF.es.js.map +1 -1
  61. package/dist/chunks/icon-CenxuChf.es.js.map +1 -1
  62. package/dist/chunks/icon-D39U--jA.cjs.js.map +1 -1
  63. package/dist/chunks/{icon-button-9Ni8-hO7.es.js → icon-button-DQS2apw-.es.js} +2 -2
  64. package/dist/chunks/{icon-button-9Ni8-hO7.es.js.map → icon-button-DQS2apw-.es.js.map} +1 -1
  65. package/dist/chunks/{icon-toggle-button-Db8CLmE5.es.js → icon-toggle-button-Bi-9Obfx.es.js} +2 -2
  66. package/dist/chunks/{icon-toggle-button-Db8CLmE5.es.js.map → icon-toggle-button-Bi-9Obfx.es.js.map} +1 -1
  67. package/dist/chunks/kbd-BaeV_DL-.cjs.js.map +1 -1
  68. package/dist/chunks/kbd-CH9rYghB.es.js.map +1 -1
  69. package/dist/chunks/{link-QwdgCWJd.es.js → link-BEhlSTUU.es.js} +3 -3
  70. package/dist/chunks/{link-QwdgCWJd.es.js.map → link-BEhlSTUU.es.js.map} +1 -1
  71. package/dist/chunks/{localized-field-pJSLdod5.es.js → localized-field-D3G0Uy7Z.es.js} +8 -8
  72. package/dist/chunks/{localized-field-pJSLdod5.es.js.map → localized-field-D3G0Uy7Z.es.js.map} +1 -1
  73. package/dist/chunks/{menu-4QTf2m-7.es.js → menu-D-vE6ZpM.es.js} +4 -4
  74. package/dist/chunks/menu-D-vE6ZpM.es.js.map +1 -0
  75. package/dist/chunks/menu-DIepV2KZ.cjs.js.map +1 -1
  76. package/dist/chunks/{money-input-BJpffXRR.es.js → money-input-sk0Slpeu.es.js} +3 -3
  77. package/dist/chunks/{money-input-BJpffXRR.es.js.map → money-input-sk0Slpeu.es.js.map} +1 -1
  78. package/dist/chunks/{nimbus-provider-BfpEKy6w.es.js → nimbus-provider-BHNFDQ0f.es.js} +5 -5
  79. package/dist/chunks/{nimbus-provider-BfpEKy6w.es.js.map → nimbus-provider-BHNFDQ0f.es.js.map} +1 -1
  80. package/dist/chunks/{number-input-DXiwgboS.es.js → number-input-CktMxOdZ.es.js} +2 -2
  81. package/dist/chunks/{number-input-DXiwgboS.es.js.map → number-input-CktMxOdZ.es.js.map} +1 -1
  82. package/dist/chunks/{openLink-DT8XzqFh.es.js → openLink-CY66vjvW.es.js} +3 -3
  83. package/dist/chunks/{openLink-DT8XzqFh.es.js.map → openLink-CY66vjvW.es.js.map} +1 -1
  84. package/dist/chunks/{pagination-Sq1twv0k.es.js → pagination-Bcq69Nv3.es.js} +4 -4
  85. package/dist/chunks/{pagination-Sq1twv0k.es.js.map → pagination-Bcq69Nv3.es.js.map} +1 -1
  86. package/dist/chunks/{password-input-CBhC_e5Z.es.js → password-input-6MO4I-2j.es.js} +2 -2
  87. package/dist/chunks/{password-input-CBhC_e5Z.es.js.map → password-input-6MO4I-2j.es.js.map} +1 -1
  88. package/dist/chunks/popover-CfEq5G5-.cjs.js.map +1 -1
  89. package/dist/chunks/{popover-Cz6TnNt_.es.js → popover-DNaC7CwB.es.js} +2 -2
  90. package/dist/chunks/popover-DNaC7CwB.es.js.map +1 -0
  91. package/dist/chunks/{radio-input-DhqS9ipf.es.js → radio-input-4jw6HUjC.es.js} +2 -2
  92. package/dist/chunks/{radio-input-DhqS9ipf.es.js.map → radio-input-4jw6HUjC.es.js.map} +1 -1
  93. package/dist/chunks/{range-calendar-RBEpLQJb.es.js → range-calendar-DBpl6y5i.es.js} +5 -5
  94. package/dist/chunks/range-calendar-DBpl6y5i.es.js.map +1 -0
  95. package/dist/chunks/range-calendar-_dZfAsdG.cjs.js.map +1 -1
  96. package/dist/chunks/{rich-text-input-CrjP71KM.es.js → rich-text-input-BC8CBVio.es.js} +5 -5
  97. package/dist/chunks/rich-text-input-BC8CBVio.es.js.map +1 -0
  98. package/dist/chunks/rich-text-input-Da5WFZ3l.cjs.js.map +1 -1
  99. package/dist/chunks/{search-input-DCpjVXVS.es.js → search-input-DJy2NHYW.es.js} +3 -3
  100. package/dist/chunks/{search-input-DCpjVXVS.es.js.map → search-input-DJy2NHYW.es.js.map} +1 -1
  101. package/dist/chunks/{select-xlqMXZuO.es.js → select-BmMhTBo-.es.js} +9 -9
  102. package/dist/chunks/{select-xlqMXZuO.es.js.map → select-BmMhTBo-.es.js.map} +1 -1
  103. package/dist/chunks/separator-CvRn_J0r.cjs.js.map +1 -1
  104. package/dist/chunks/separator-DJGUFG-o.es.js.map +1 -1
  105. package/dist/chunks/split-button-BO52sL7h.cjs.js.map +1 -1
  106. package/dist/chunks/{split-button-C5MmKuVW.es.js → split-button-BxyZmuNi.es.js} +4 -4
  107. package/dist/chunks/split-button-BxyZmuNi.es.js.map +1 -0
  108. package/dist/chunks/{switch-B5bEl91n.es.js → switch-01hEhL9A.es.js} +2 -2
  109. package/dist/chunks/switch-01hEhL9A.es.js.map +1 -0
  110. package/dist/chunks/switch-CdLhBEPq.cjs.js.map +1 -1
  111. package/dist/chunks/tabs-CJ0OAUSR.cjs.js.map +1 -1
  112. package/dist/chunks/{tabs-DGzmzlun.es.js → tabs-Dhte-RCe.es.js} +4 -4
  113. package/dist/chunks/{tabs-DGzmzlun.es.js.map → tabs-Dhte-RCe.es.js.map} +1 -1
  114. package/dist/chunks/tag-group-Btt0egzG.cjs.js.map +1 -1
  115. package/dist/chunks/{tag-group-pJFnuRoJ.es.js → tag-group-D2dgXSsV.es.js} +9 -9
  116. package/dist/chunks/{tag-group-pJFnuRoJ.es.js.map → tag-group-D2dgXSsV.es.js.map} +1 -1
  117. package/dist/chunks/{time-input-BUej1BjY.es.js → time-input--a_qv-Jk.es.js} +2 -2
  118. package/dist/chunks/{time-input-BUej1BjY.es.js.map → time-input--a_qv-Jk.es.js.map} +1 -1
  119. package/dist/chunks/{toggle-button-CPzjUSI_.es.js → toggle-button-awb1jBf8.es.js} +2 -2
  120. package/dist/chunks/{toggle-button-CPzjUSI_.es.js.map → toggle-button-awb1jBf8.es.js.map} +1 -1
  121. package/dist/chunks/{toggle-button-group-DOxjowig.es.js → toggle-button-group-Ce7ezOED.es.js} +2 -2
  122. package/dist/chunks/{toggle-button-group-DOxjowig.es.js.map → toggle-button-group-Ce7ezOED.es.js.map} +1 -1
  123. package/dist/chunks/tooltip-BPTOkK7W.cjs.js.map +1 -1
  124. package/dist/chunks/tooltip-sgakxhiy.es.js.map +1 -1
  125. package/dist/chunks/{useButton-DkQVxdIF.es.js → useButton-_sJ3_8ha.es.js} +2 -2
  126. package/dist/chunks/{useButton-DkQVxdIF.es.js.map → useButton-_sJ3_8ha.es.js.map} +1 -1
  127. package/dist/chunks/{useDateFormatter-BkKCXbud.es.js → useDateFormatter-C4zVAL_K.es.js} +2 -2
  128. package/dist/chunks/{useDateFormatter-BkKCXbud.es.js.map → useDateFormatter-C4zVAL_K.es.js.map} +1 -1
  129. package/dist/chunks/{useGridListItem-Cosrmt8g.es.js → useGridListItem--iMluO7K.es.js} +4 -4
  130. package/dist/chunks/{useGridListItem-Cosrmt8g.es.js.map → useGridListItem--iMluO7K.es.js.map} +1 -1
  131. package/dist/chunks/{useListState-CUO8Wibt.es.js → useListState-Cf8n791-.es.js} +2 -2
  132. package/dist/chunks/{useListState-CUO8Wibt.es.js.map → useListState-Cf8n791-.es.js.map} +1 -1
  133. package/dist/chunks/{usePress-Bxb2-xLP.es.js → usePress-Dc6amhnJ.es.js} +2 -2
  134. package/dist/chunks/{usePress-Bxb2-xLP.es.js.map → usePress-Dc6amhnJ.es.js.map} +1 -1
  135. package/dist/chunks/{useSingleSelectListState-CnVWWOJD.es.js → useSingleSelectListState-DLY6K_dU.es.js} +2 -2
  136. package/dist/chunks/{useSingleSelectListState-CnVWWOJD.es.js.map → useSingleSelectListState-DLY6K_dU.es.js.map} +1 -1
  137. package/dist/chunks/{useToggle-CUMQAGyE.es.js → useToggle-CKEhqMIa.es.js} +2 -2
  138. package/dist/chunks/{useToggle-CUMQAGyE.es.js.map → useToggle-CKEhqMIa.es.js.map} +1 -1
  139. package/dist/components/accordion/accordion.d.ts +13 -0
  140. package/dist/components/accordion/accordion.recipe.d.ts +36 -0
  141. package/dist/components/accordion/accordion.slots.d.ts +8 -0
  142. package/dist/components/accordion/accordion.types.d.ts +48 -0
  143. package/dist/components/accordion/components/accordion-content.d.ts +2 -0
  144. package/dist/components/accordion/components/accordion-header.d.ts +2 -0
  145. package/dist/components/accordion/components/accordion-item.d.ts +2 -0
  146. package/dist/components/accordion/components/accordion-root.d.ts +9 -0
  147. package/dist/components/accordion/index.d.ts +2 -0
  148. package/dist/components/accordion.es.js +1 -1
  149. package/dist/components/alert/alert.d.ts +30 -0
  150. package/dist/components/alert/alert.i18n.d.ts +7 -0
  151. package/dist/components/alert/alert.recipe.d.ts +40 -0
  152. package/dist/components/alert/alert.slots.d.ts +16 -0
  153. package/dist/components/alert/alert.types.d.ts +48 -0
  154. package/dist/components/alert/components/alert.actions.d.ts +5 -0
  155. package/dist/components/alert/components/alert.description.d.ts +5 -0
  156. package/dist/components/alert/components/alert.dismiss-button.d.ts +5 -0
  157. package/dist/components/alert/components/alert.root.d.ts +18 -0
  158. package/dist/components/alert/components/alert.title.d.ts +5 -0
  159. package/dist/components/alert/index.d.ts +2 -0
  160. package/dist/components/alert.es.js +1 -1
  161. package/dist/components/avatar/avatar.d.ts +5 -0
  162. package/dist/components/avatar/avatar.recipe.d.ts +19 -0
  163. package/dist/components/avatar/avatar.slots.d.ts +3 -0
  164. package/dist/{avatar.d.ts → components/avatar/avatar.types.d.ts} +42 -63
  165. package/dist/components/avatar/index.d.ts +2 -0
  166. package/dist/components/badge/badge.d.ts +12 -0
  167. package/dist/components/badge/badge.recipe.d.ts +41 -0
  168. package/dist/components/badge/badge.slots.d.ts +3 -0
  169. package/dist/components/badge/badge.types.d.ts +24 -0
  170. package/dist/components/badge/index.d.ts +2 -0
  171. package/dist/{box.d.ts → components/box/box.d.ts} +16 -30
  172. package/dist/components/box/index.d.ts +1 -0
  173. package/dist/components/button/button.d.ts +12 -0
  174. package/dist/components/button/button.recipe.d.ts +107 -0
  175. package/dist/components/button/button.slots.d.ts +11 -0
  176. package/dist/components/button/button.types.d.ts +36 -0
  177. package/dist/components/button/index.d.ts +2 -0
  178. package/dist/components/button.es.js +1 -1
  179. package/dist/components/calendar/calendar.d.ts +10 -0
  180. package/dist/components/calendar/calendar.recipe.d.ts +1 -0
  181. package/dist/components/calendar/calendar.slots.d.ts +11 -0
  182. package/dist/components/calendar/calendar.types.d.ts +16 -0
  183. package/dist/components/calendar/components/calendar.custom-context.d.ts +3 -0
  184. package/dist/components/calendar/components/calendar.grids.d.ts +1 -0
  185. package/dist/components/calendar/components/calendar.header.d.ts +1 -0
  186. package/dist/components/calendar/index.d.ts +2 -0
  187. package/dist/components/calendar.es.js +1 -1
  188. package/dist/components/card/card.d.ts +18 -0
  189. package/dist/components/card/card.recipe.d.ts +52 -0
  190. package/dist/components/card/card.slots.d.ts +12 -0
  191. package/dist/components/card/card.types.d.ts +28 -0
  192. package/dist/components/card/components/card.content.d.ts +5 -0
  193. package/dist/components/card/components/card.header.d.ts +5 -0
  194. package/dist/components/card/components/card.root.d.ts +18 -0
  195. package/dist/components/card/index.d.ts +2 -0
  196. package/dist/components/checkbox/checkbox.d.ts +12 -0
  197. package/dist/components/checkbox/checkbox.recipe.d.ts +27 -0
  198. package/dist/components/checkbox/checkbox.slots.d.ts +5 -0
  199. package/dist/components/checkbox/checkbox.types.d.ts +24 -0
  200. package/dist/components/checkbox/index.d.ts +2 -0
  201. package/dist/components/checkbox.es.js +1 -1
  202. package/dist/components/code/code.d.ts +10 -0
  203. package/dist/components/code/code.recipe.d.ts +48 -0
  204. package/dist/components/code/index.d.ts +1 -0
  205. package/dist/components/collapsible-motion/collapsible-motion.d.ts +10 -0
  206. package/dist/components/collapsible-motion/collapsible-motion.recipe.d.ts +1 -0
  207. package/dist/components/collapsible-motion/collapsible-motion.slots.d.ts +5 -0
  208. package/dist/components/collapsible-motion/collapsible-motion.types.d.ts +59 -0
  209. package/dist/components/collapsible-motion/components/collapsible-motion-content.d.ts +9 -0
  210. package/dist/components/collapsible-motion/components/collapsible-motion-context.d.ts +9 -0
  211. package/dist/components/collapsible-motion/components/collapsible-motion-root.d.ts +8 -0
  212. package/dist/components/collapsible-motion/components/collapsible-motion-trigger.d.ts +10 -0
  213. package/dist/components/collapsible-motion/index.d.ts +2 -0
  214. package/dist/components/collapsible-motion.es.js +1 -1
  215. package/dist/components/combobox/combobox.d.ts +18 -0
  216. package/dist/components/combobox/combobox.recipe.d.ts +96 -0
  217. package/dist/components/combobox/combobox.slots.d.ts +27 -0
  218. package/dist/components/combobox/combobox.types.d.ts +152 -0
  219. package/dist/components/combobox/components/combobox.leading-element.d.ts +11 -0
  220. package/dist/components/combobox/components/combobox.multi-select-button-group.d.ts +2 -0
  221. package/dist/components/combobox/components/combobox.multi-select-root.d.ts +2 -0
  222. package/dist/components/combobox/components/combobox.multi-select-tag-group.d.ts +2 -0
  223. package/dist/components/combobox/components/combobox.option-group.d.ts +6 -0
  224. package/dist/components/combobox/components/combobox.option.d.ts +5 -0
  225. package/dist/components/combobox/components/combobox.options.d.ts +5 -0
  226. package/dist/components/combobox/components/combobox.root.d.ts +12 -0
  227. package/dist/components/combobox/components/combobox.single-select-button-group.d.ts +2 -0
  228. package/dist/components/combobox/components/combobox.single-select-input.d.ts +2 -0
  229. package/dist/components/combobox/components/combobox.single-select-root.d.ts +2 -0
  230. package/dist/components/combobox/index.d.ts +2 -0
  231. package/dist/components/combobox.es.js +1 -1
  232. package/dist/components/components.es.js +1 -1
  233. package/dist/components/data-table/components/data-table.body.d.ts +5 -0
  234. package/dist/components/data-table/components/data-table.cell.d.ts +2 -0
  235. package/dist/components/data-table/components/data-table.column.d.ts +2 -0
  236. package/dist/components/data-table/components/data-table.context.d.ts +3 -0
  237. package/dist/components/data-table/components/data-table.footer.d.ts +11 -0
  238. package/dist/components/data-table/components/data-table.header.d.ts +5 -0
  239. package/dist/components/data-table/components/data-table.root.d.ts +5 -0
  240. package/dist/components/data-table/components/data-table.row.d.ts +5 -0
  241. package/dist/components/data-table/components/data-table.table.d.ts +5 -0
  242. package/dist/components/data-table/data-table.d.ts +52 -0
  243. package/dist/components/data-table/data-table.recipe.d.ts +32 -0
  244. package/dist/components/data-table/data-table.slots.d.ts +21 -0
  245. package/dist/components/data-table/data-table.types.d.ts +154 -0
  246. package/dist/components/data-table/index.d.ts +2 -0
  247. package/dist/components/data-table/test-data.d.ts +58 -0
  248. package/dist/components/data-table/utils/rows.utils.d.ts +4 -0
  249. package/dist/components/data-table.es.js +1 -1
  250. package/dist/components/date-input/date-input.d.ts +12 -0
  251. package/dist/components/date-input/date-input.recipe.d.ts +71 -0
  252. package/dist/components/date-input/date-input.slots.d.ts +18 -0
  253. package/dist/components/date-input/date-input.types.d.ts +20 -0
  254. package/dist/components/date-input/index.d.ts +2 -0
  255. package/dist/components/date-input.es.js +1 -1
  256. package/dist/components/date-picker/components/date-picker.custom-context.d.ts +3 -0
  257. package/dist/components/date-picker/components/date-picker.time-input.d.ts +2 -0
  258. package/dist/components/date-picker/date-picker.d.ts +12 -0
  259. package/dist/components/date-picker/date-picker.i18n.d.ts +33 -0
  260. package/dist/components/date-picker/date-picker.recipe.d.ts +14 -0
  261. package/dist/components/date-picker/date-picker.slots.d.ts +30 -0
  262. package/dist/components/date-picker/date-picker.types.d.ts +43 -0
  263. package/dist/components/date-picker/index.d.ts +2 -0
  264. package/dist/components/date-picker.es.js +1 -1
  265. package/dist/components/date-range-picker/components/date-range-picker.custom-context.d.ts +4 -0
  266. package/dist/components/date-range-picker/components/date-range-picker.time-input.d.ts +2 -0
  267. package/dist/components/date-range-picker/date-range-picker.d.ts +11 -0
  268. package/dist/components/date-range-picker/date-range-picker.recipe.d.ts +34 -0
  269. package/dist/components/date-range-picker/date-range-picker.slots.d.ts +36 -0
  270. package/dist/components/date-range-picker/date-range-picker.types.d.ts +44 -0
  271. package/dist/components/date-range-picker/index.d.ts +2 -0
  272. package/dist/components/date-range-picker.es.js +1 -1
  273. package/dist/components/dialog/components/dialog.body.d.ts +5 -0
  274. package/dist/components/dialog/components/dialog.close-trigger.d.ts +5 -0
  275. package/dist/components/dialog/components/dialog.content.d.ts +5 -0
  276. package/dist/components/dialog/components/dialog.context.d.ts +19 -0
  277. package/dist/components/dialog/components/dialog.footer.d.ts +5 -0
  278. package/dist/components/dialog/components/dialog.header.d.ts +5 -0
  279. package/dist/components/dialog/components/dialog.root.d.ts +5 -0
  280. package/dist/components/dialog/components/dialog.title.d.ts +5 -0
  281. package/dist/components/dialog/components/dialog.trigger.d.ts +5 -0
  282. package/dist/components/dialog/components/index.d.ts +8 -0
  283. package/dist/components/dialog/dialog.d.ts +229 -0
  284. package/dist/components/dialog/dialog.i18n.d.ts +7 -0
  285. package/dist/components/dialog/dialog.recipe.d.ts +54 -0
  286. package/dist/components/dialog/dialog.slots.d.ts +28 -0
  287. package/dist/components/dialog/dialog.types.d.ts +189 -0
  288. package/dist/components/dialog/index.d.ts +2 -0
  289. package/dist/components/dialog.es.js +1 -1
  290. package/dist/components/draggable-list/components/draggable-list.field.d.ts +2 -0
  291. package/dist/components/draggable-list/components/draggable-list.item.d.ts +2 -0
  292. package/dist/components/draggable-list/components/draggable-list.root.d.ts +2 -0
  293. package/dist/components/draggable-list/draggable-list.d.ts +107 -0
  294. package/dist/components/draggable-list/draggable-list.i18n.d.ts +12 -0
  295. package/dist/components/draggable-list/draggable-list.recipe.d.ts +14 -0
  296. package/dist/components/draggable-list/draggable-list.slots.d.ts +6 -0
  297. package/dist/components/draggable-list/draggable-list.types.d.ts +141 -0
  298. package/dist/components/draggable-list/index.d.ts +2 -0
  299. package/dist/components/draggable-list/utils/draggable-list.test-data.d.ts +3 -0
  300. package/dist/components/draggable-list/utils/draggable-list.test-utils.d.ts +1 -0
  301. package/dist/components/draggable-list.es.js +1 -1
  302. package/dist/components/drawer/components/drawer.body.d.ts +5 -0
  303. package/dist/components/drawer/components/drawer.close-trigger.d.ts +5 -0
  304. package/dist/components/drawer/components/drawer.content.d.ts +5 -0
  305. package/dist/components/drawer/components/drawer.context.d.ts +19 -0
  306. package/dist/components/drawer/components/drawer.footer.d.ts +5 -0
  307. package/dist/components/drawer/components/drawer.header.d.ts +5 -0
  308. package/dist/components/drawer/components/drawer.root.d.ts +5 -0
  309. package/dist/components/drawer/components/drawer.title.d.ts +5 -0
  310. package/dist/components/drawer/components/drawer.trigger.d.ts +5 -0
  311. package/dist/components/drawer/components/index.d.ts +8 -0
  312. package/dist/components/drawer/drawer.d.ts +228 -0
  313. package/dist/components/drawer/drawer.i18n.d.ts +7 -0
  314. package/dist/components/drawer/drawer.recipe.d.ts +98 -0
  315. package/dist/components/drawer/drawer.slots.d.ts +21 -0
  316. package/dist/components/drawer/drawer.types.d.ts +175 -0
  317. package/dist/components/drawer/index.d.ts +3 -0
  318. package/dist/components/drawer.es.js +1 -1
  319. package/dist/components/field-errors/field-errors.d.ts +34 -0
  320. package/dist/components/field-errors/field-errors.i18n.d.ts +77 -0
  321. package/dist/components/field-errors/field-errors.recipe.d.ts +1 -0
  322. package/dist/components/field-errors/field-errors.slots.d.ts +6 -0
  323. package/dist/{field-errors.d.ts → components/field-errors/field-errors.types.d.ts} +95 -144
  324. package/dist/components/field-errors/index.d.ts +3 -0
  325. package/dist/components/flex/flex.d.ts +8 -0
  326. package/dist/components/flex/index.d.ts +1 -0
  327. package/dist/components/form-field/components/form-field.context.d.ts +22 -0
  328. package/dist/components/form-field/components/form-field.description.d.ts +2 -0
  329. package/dist/components/form-field/components/form-field.error.d.ts +2 -0
  330. package/dist/components/form-field/components/form-field.info-box.d.ts +9 -0
  331. package/dist/components/form-field/components/form-field.input.d.ts +2 -0
  332. package/dist/components/form-field/components/form-field.label.d.ts +2 -0
  333. package/dist/components/form-field/components/form-field.root.d.ts +9 -0
  334. package/dist/components/form-field/form-field.d.ts +17 -0
  335. package/dist/components/form-field/form-field.recipe.d.ts +49 -0
  336. package/dist/components/form-field/form-field.slots.d.ts +15 -0
  337. package/dist/components/form-field/form-field.types.d.ts +54 -0
  338. package/dist/components/form-field/index.d.ts +2 -0
  339. package/dist/components/form-field.es.js +1 -1
  340. package/dist/components/grid/grid.d.ts +18 -0
  341. package/dist/components/grid/index.d.ts +1 -0
  342. package/dist/components/group/group.d.ts +2 -0
  343. package/dist/components/group/group.recipe.d.ts +5 -0
  344. package/dist/components/group/group.slots.d.ts +8 -0
  345. package/dist/components/group/group.types.d.ts +17 -0
  346. package/dist/components/group/index.d.ts +2 -0
  347. package/dist/{heading.d.ts → components/heading/heading.d.ts} +41 -55
  348. package/dist/components/heading/heading.recipe.d.ts +37 -0
  349. package/dist/components/heading/index.d.ts +1 -0
  350. package/dist/components/icon/icon.d.ts +12 -0
  351. package/dist/components/icon/icon.recipe.d.ts +29 -0
  352. package/dist/components/icon/icon.slots.d.ts +7 -0
  353. package/dist/components/icon/icon.types.d.ts +29 -0
  354. package/dist/components/icon/index.d.ts +2 -0
  355. package/dist/components/icon-button/icon-button.d.ts +12 -0
  356. package/dist/components/icon-button/icon-button.types.d.ts +11 -0
  357. package/dist/components/icon-button/index.d.ts +2 -0
  358. package/dist/components/icon-button.es.js +1 -1
  359. package/dist/components/icon-toggle-button/icon-toggle-button.d.ts +12 -0
  360. package/dist/components/icon-toggle-button/icon-toggle-button.types.d.ts +11 -0
  361. package/dist/components/icon-toggle-button/index.d.ts +2 -0
  362. package/dist/components/icon-toggle-button.es.js +1 -1
  363. package/dist/components/image/image.d.ts +13 -0
  364. package/dist/components/image/index.d.ts +1 -0
  365. package/dist/components/index.d.ts +65 -0
  366. package/dist/components/inline-svg/constants/index.d.ts +1 -0
  367. package/dist/{constants.d.ts → components/inline-svg/constants/sanitization.constants.d.ts} +8 -20
  368. package/dist/components/inline-svg/hooks/index.d.ts +1 -0
  369. package/dist/{hooks.d.ts → components/inline-svg/hooks/use-inline-svg.d.ts} +10 -21
  370. package/dist/components/inline-svg/index.d.ts +2 -0
  371. package/dist/components/inline-svg/inline-svg.d.ts +23 -0
  372. package/dist/components/inline-svg/inline-svg.slots.d.ts +22 -0
  373. package/dist/components/inline-svg/inline-svg.types.d.ts +12 -0
  374. package/dist/components/inline-svg/utils/index.d.ts +1 -0
  375. package/dist/{utils.d.ts → components/inline-svg/utils/sanitize-svg.d.ts} +32 -44
  376. package/dist/components/kbd/index.d.ts +1 -0
  377. package/dist/components/kbd/kbd.d.ts +15 -0
  378. package/dist/components/kbd/kbd.recipe.d.ts +1 -0
  379. package/dist/components/kbd/kbd.slots.d.ts +19 -0
  380. package/dist/components/link/index.d.ts +2 -0
  381. package/dist/components/link/link.d.ts +12 -0
  382. package/dist/components/link/link.recipe.d.ts +28 -0
  383. package/dist/components/link/link.slots.d.ts +8 -0
  384. package/dist/components/link/link.types.d.ts +27 -0
  385. package/dist/components/link.es.js +1 -1
  386. package/dist/components/list/index.d.ts +1 -0
  387. package/dist/components/list/list.d.ts +18 -0
  388. package/dist/components/list/list.recipe.d.ts +38 -0
  389. package/dist/components/loading-spinner/index.d.ts +2 -0
  390. package/dist/components/loading-spinner/loading-spinner.d.ts +12 -0
  391. package/dist/components/loading-spinner/loading-spinner.i18n.d.ts +8 -0
  392. package/dist/components/loading-spinner/loading-spinner.recipe.d.ts +36 -0
  393. package/dist/components/loading-spinner/loading-spinner.slots.d.ts +6 -0
  394. package/dist/components/loading-spinner/loading-spinner.types.d.ts +24 -0
  395. package/dist/components/localized-field/components/localized-field.locale-field.d.ts +2 -0
  396. package/dist/components/localized-field/components/localized-field.root.d.ts +2 -0
  397. package/dist/components/localized-field/index.d.ts +2 -0
  398. package/dist/components/localized-field/localized-field.d.ts +17 -0
  399. package/dist/components/localized-field/localized-field.i18n.d.ts +33 -0
  400. package/dist/components/localized-field/localized-field.recipe.d.ts +22 -0
  401. package/dist/components/localized-field/localized-field.slots.d.ts +19 -0
  402. package/dist/components/localized-field/localized-field.types.d.ts +188 -0
  403. package/dist/components/localized-field/utils/localized-field.story-component.d.ts +39 -0
  404. package/dist/components/localized-field/utils/localized-field.utils.d.ts +34 -0
  405. package/dist/components/localized-field/utils/test-data.d.ts +340 -0
  406. package/dist/components/localized-field/utils/test-utils.d.ts +22 -0
  407. package/dist/components/localized-field.es.js +1 -1
  408. package/dist/components/menu/components/menu.content.d.ts +5 -0
  409. package/dist/components/menu/components/menu.context.d.ts +5 -0
  410. package/dist/components/menu/components/menu.item.d.ts +5 -0
  411. package/dist/components/menu/components/menu.root.d.ts +5 -0
  412. package/dist/components/menu/components/menu.section-context.d.ts +5 -0
  413. package/dist/components/menu/components/menu.section-label.d.ts +8 -0
  414. package/dist/components/menu/components/menu.section.d.ts +5 -0
  415. package/dist/components/menu/components/menu.submenu-trigger.d.ts +5 -0
  416. package/dist/components/menu/components/menu.submenu.d.ts +5 -0
  417. package/dist/components/menu/components/menu.trigger.d.ts +5 -0
  418. package/dist/components/menu/index.d.ts +2 -0
  419. package/dist/components/menu/menu.d.ts +39 -0
  420. package/dist/components/menu/menu.recipe.d.ts +5 -0
  421. package/dist/components/menu/menu.slots.d.ts +10 -0
  422. package/dist/components/menu/menu.types.d.ts +62 -0
  423. package/dist/components/money-input/index.d.ts +2 -0
  424. package/dist/components/money-input/money-input.d.ts +77 -0
  425. package/dist/components/money-input/money-input.i18n.d.ts +18 -0
  426. package/dist/components/money-input/money-input.recipe.d.ts +40 -0
  427. package/dist/components/money-input/money-input.slots.d.ts +8 -0
  428. package/dist/components/money-input/money-input.types.d.ts +102 -0
  429. package/dist/{money-input.d.ts → components/money-input/utils/currencies.d.ts} +666 -879
  430. package/dist/components/money-input/utils/index.d.ts +2 -0
  431. package/dist/components/money-input/utils/parsing-utilities.d.ts +22 -0
  432. package/dist/components/money-input/utils/static-methods.d.ts +6 -0
  433. package/dist/components/money-input.es.js +1 -1
  434. package/dist/components/multiline-text-input/hooks/index.d.ts +1 -0
  435. package/dist/components/multiline-text-input/hooks/use-autogrow.d.ts +16 -0
  436. package/dist/components/multiline-text-input/index.d.ts +2 -0
  437. package/dist/components/multiline-text-input/multiline-text-input.d.ts +12 -0
  438. package/dist/components/multiline-text-input/multiline-text-input.recipe.d.ts +64 -0
  439. package/dist/components/multiline-text-input/multiline-text-input.slots.d.ts +16 -0
  440. package/dist/components/multiline-text-input/multiline-text-input.types.d.ts +42 -0
  441. package/dist/components/nimbus-provider/components/nimbus-provider.color-mode-provider.d.ts +2 -0
  442. package/dist/components/nimbus-provider/index.d.ts +2 -0
  443. package/dist/components/nimbus-provider/nimbus-provider.d.ts +9 -0
  444. package/dist/{nimbus-provider.d.ts → components/nimbus-provider/nimbus-provider.types.d.ts} +92 -119
  445. package/dist/components/nimbus-provider.es.js +1 -1
  446. package/dist/components/number-input/index.d.ts +2 -0
  447. package/dist/components/number-input/number-input.d.ts +11 -0
  448. package/dist/components/number-input/number-input.i18n.d.ts +13 -0
  449. package/dist/components/number-input/number-input.recipe.d.ts +113 -0
  450. package/dist/components/number-input/number-input.slots.d.ts +42 -0
  451. package/dist/components/number-input/number-input.types.d.ts +40 -0
  452. package/dist/components/number-input.es.js +1 -1
  453. package/dist/components/pagination/hooks/use-pagination.d.ts +72 -0
  454. package/dist/components/pagination/index.d.ts +2 -0
  455. package/dist/components/pagination/pagination.d.ts +13 -0
  456. package/dist/{pagination.d.ts → components/pagination/pagination.types.d.ts} +44 -70
  457. package/dist/components/pagination.es.js +1 -1
  458. package/dist/components/password-input/index.d.ts +2 -0
  459. package/dist/components/password-input/password-input.d.ts +12 -0
  460. package/dist/components/password-input/password-input.i18n.d.ts +13 -0
  461. package/dist/components/password-input/password-input.types.d.ts +2 -0
  462. package/dist/components/password-input.es.js +1 -1
  463. package/dist/components/popover/index.d.ts +2 -0
  464. package/dist/components/popover/popover.d.ts +12 -0
  465. package/dist/components/popover/popover.recipe.d.ts +5 -0
  466. package/dist/components/popover/popover.slots.d.ts +4 -0
  467. package/dist/components/popover/popover.types.d.ts +6 -0
  468. package/dist/components/popover.es.js +1 -1
  469. package/dist/components/progress-bar/index.d.ts +2 -0
  470. package/dist/components/progress-bar/progress-bar.d.ts +22 -0
  471. package/dist/components/progress-bar/progress-bar.recipe.d.ts +91 -0
  472. package/dist/components/progress-bar/progress-bar.slots.d.ts +20 -0
  473. package/dist/components/progress-bar/progress-bar.types.d.ts +53 -0
  474. package/dist/components/radio-input/components/radio-input.option.d.ts +5 -0
  475. package/dist/components/radio-input/components/radio-input.root.d.ts +12 -0
  476. package/dist/components/radio-input/index.d.ts +2 -0
  477. package/dist/components/radio-input/radio-input.d.ts +13 -0
  478. package/dist/components/radio-input/radio-input.recipe.d.ts +21 -0
  479. package/dist/components/radio-input/radio-input.slots.d.ts +6 -0
  480. package/dist/components/radio-input/radio-input.types.d.ts +18 -0
  481. package/dist/components/radio-input.es.js +1 -1
  482. package/dist/components/range-calendar/components/range-calendar.custom-context.d.ts +3 -0
  483. package/dist/components/range-calendar/components/range-calendar.grids.d.ts +1 -0
  484. package/dist/components/range-calendar/components/range-calendar.header.d.ts +1 -0
  485. package/dist/components/range-calendar/index.d.ts +2 -0
  486. package/dist/components/range-calendar/range-calendar.d.ts +3 -0
  487. package/dist/components/range-calendar/range-calendar.recipe.d.ts +1 -0
  488. package/dist/components/range-calendar/range-calendar.slots.d.ts +11 -0
  489. package/dist/components/range-calendar/range-calendar.types.d.ts +20 -0
  490. package/dist/components/range-calendar.es.js +1 -1
  491. package/dist/components/rich-text-input/components/formatting-menu.d.ts +4 -0
  492. package/dist/components/rich-text-input/components/rich-text-editor.d.ts +25 -0
  493. package/dist/components/rich-text-input/components/rich-text-toolbar.d.ts +7 -0
  494. package/dist/components/rich-text-input/constants/editor-constants.d.ts +65 -0
  495. package/dist/components/rich-text-input/constants/index.d.ts +2 -0
  496. package/dist/components/rich-text-input/constants/text-styles.d.ts +32 -0
  497. package/dist/components/rich-text-input/hooks/index.d.ts +4 -0
  498. package/dist/components/rich-text-input/hooks/use-formatting-state.d.ts +10 -0
  499. package/dist/components/rich-text-input/hooks/use-keyboard-shortcuts.d.ts +7 -0
  500. package/dist/components/rich-text-input/hooks/use-preserved-selection.d.ts +11 -0
  501. package/dist/components/rich-text-input/hooks/use-toolbar-state.d.ts +15 -0
  502. package/dist/components/rich-text-input/index.d.ts +2 -0
  503. package/dist/components/rich-text-input/rich-text-input.d.ts +8 -0
  504. package/dist/components/rich-text-input/rich-text-input.recipe.d.ts +1 -0
  505. package/dist/components/rich-text-input/rich-text-input.slots.d.ts +5 -0
  506. package/dist/components/rich-text-input/rich-text-input.types.d.ts +54 -0
  507. package/dist/components/rich-text-input/utils/html-serialization.d.ts +4 -0
  508. package/dist/components/rich-text-input/utils/index.d.ts +5 -0
  509. package/dist/components/rich-text-input/utils/is-empty.d.ts +4 -0
  510. package/dist/components/rich-text-input/utils/slate-helpers.d.ts +19 -0
  511. package/dist/components/rich-text-input/utils/text-style-utils.d.ts +33 -0
  512. package/dist/components/rich-text-input/utils/types.d.ts +28 -0
  513. package/dist/components/rich-text-input.es.js +1 -1
  514. package/dist/components/scoped-search-input/index.d.ts +2 -0
  515. package/dist/components/scoped-search-input/scoped-search-input.d.ts +6 -0
  516. package/dist/components/scoped-search-input/scoped-search-input.i18n.d.ts +23 -0
  517. package/dist/components/scoped-search-input/scoped-search-input.recipe.d.ts +6 -0
  518. package/dist/components/scoped-search-input/scoped-search-input.slots.d.ts +6 -0
  519. package/dist/{scoped-search-input.d.ts → components/scoped-search-input/scoped-search-input.types.d.ts} +72 -94
  520. package/dist/components/scoped-search-input/utils/helpers.d.ts +5 -0
  521. package/dist/components/scoped-search-input.es.js +2 -2
  522. package/dist/components/search-input/index.d.ts +2 -0
  523. package/dist/components/search-input/search-input.d.ts +11 -0
  524. package/dist/components/search-input/search-input.i18n.d.ts +8 -0
  525. package/dist/components/search-input/search-input.recipe.d.ts +44 -0
  526. package/dist/components/search-input/search-input.slots.d.ts +12 -0
  527. package/dist/components/search-input/search-input.types.d.ts +28 -0
  528. package/dist/components/search-input.es.js +1 -1
  529. package/dist/components/select/components/select.clear-button.d.ts +4 -0
  530. package/dist/components/select/components/select.option-group.d.ts +7 -0
  531. package/dist/components/select/components/select.option.d.ts +5 -0
  532. package/dist/components/select/components/select.options.d.ts +7 -0
  533. package/dist/components/select/components/select.root.d.ts +12 -0
  534. package/dist/components/select/index.d.ts +2 -0
  535. package/dist/components/select/select.d.ts +135 -0
  536. package/dist/components/select/select.i18n.d.ts +8 -0
  537. package/dist/components/select/select.recipe.d.ts +69 -0
  538. package/dist/components/select/select.slots.d.ts +16 -0
  539. package/dist/components/select/select.types.d.ts +59 -0
  540. package/dist/components/select.es.js +1 -1
  541. package/dist/components/separator/index.d.ts +2 -0
  542. package/dist/components/separator/separator.d.ts +19 -0
  543. package/dist/components/separator/separator.recipe.d.ts +16 -0
  544. package/dist/components/separator/separator.slots.d.ts +3 -0
  545. package/dist/components/separator/separator.types.d.ts +14 -0
  546. package/dist/components/simple-grid/index.d.ts +1 -0
  547. package/dist/components/simple-grid/simple-grid.d.ts +18 -0
  548. package/dist/components/spacer/index.d.ts +2 -0
  549. package/dist/components/spacer/spacer.d.ts +17 -0
  550. package/dist/components/spacer/spacer.types.d.ts +11 -0
  551. package/dist/components/split-button/index.d.ts +2 -0
  552. package/dist/components/split-button/split-button.d.ts +18 -0
  553. package/dist/components/split-button/split-button.recipe.d.ts +21 -0
  554. package/dist/components/split-button/split-button.slots.d.ts +6 -0
  555. package/dist/components/split-button/split-button.types.d.ts +26 -0
  556. package/dist/components/split-button.es.js +1 -1
  557. package/dist/components/stack/index.d.ts +1 -0
  558. package/dist/components/stack/stack.d.ts +16 -0
  559. package/dist/components/switch/index.d.ts +2 -0
  560. package/dist/components/switch/switch.d.ts +12 -0
  561. package/dist/components/switch/switch.recipe.d.ts +32 -0
  562. package/dist/components/switch/switch.slots.d.ts +6 -0
  563. package/dist/components/switch/switch.types.d.ts +19 -0
  564. package/dist/components/switch.es.js +1 -1
  565. package/dist/components/table/index.d.ts +1 -0
  566. package/dist/components/table/table.d.ts +8 -0
  567. package/dist/components/table/table.recipe.d.ts +121 -0
  568. package/dist/components/tabs/components/tabs.list.d.ts +10 -0
  569. package/dist/components/tabs/components/tabs.panel.d.ts +7 -0
  570. package/dist/components/tabs/components/tabs.panels.d.ts +10 -0
  571. package/dist/components/tabs/components/tabs.root.d.ts +12 -0
  572. package/dist/components/tabs/components/tabs.tab.d.ts +10 -0
  573. package/dist/components/tabs/index.d.ts +2 -0
  574. package/dist/components/tabs/tabs.d.ts +31 -0
  575. package/dist/components/tabs/tabs.recipe.d.ts +67 -0
  576. package/dist/components/tabs/tabs.slots.d.ts +58 -0
  577. package/dist/components/tabs/tabs.types.d.ts +112 -0
  578. package/dist/components/tabs.es.js +1 -1
  579. package/dist/components/tag-group/components/tag-group.root.d.ts +9 -0
  580. package/dist/components/tag-group/components/tag-group.tag-list.d.ts +6 -0
  581. package/dist/components/tag-group/components/tag-group.tag.d.ts +2 -0
  582. package/dist/components/tag-group/index.d.ts +2 -0
  583. package/dist/components/tag-group/tag-group.d.ts +14 -0
  584. package/dist/components/tag-group/tag-group.recipe.d.ts +29 -0
  585. package/dist/components/tag-group/tag-group.slots.d.ts +7 -0
  586. package/dist/components/tag-group/tag-group.types.d.ts +27 -0
  587. package/dist/components/tag-group.es.js +1 -1
  588. package/dist/components/text/index.d.ts +1 -0
  589. package/dist/components/text/text.d.ts +16 -0
  590. package/dist/components/text-input/index.d.ts +2 -0
  591. package/dist/components/text-input/text-input.d.ts +12 -0
  592. package/dist/components/text-input/text-input.recipe.d.ts +54 -0
  593. package/dist/components/text-input/text-input.slots.d.ts +13 -0
  594. package/dist/components/text-input/text-input.types.d.ts +39 -0
  595. package/dist/components/time-input/index.d.ts +2 -0
  596. package/dist/components/time-input/time-input.d.ts +10 -0
  597. package/dist/components/time-input/time-input.recipe.d.ts +67 -0
  598. package/dist/components/time-input/time-input.slots.d.ts +24 -0
  599. package/dist/components/time-input/time-input.types.d.ts +21 -0
  600. package/dist/components/time-input.es.js +1 -1
  601. package/dist/components/toggle-button/index.d.ts +2 -0
  602. package/dist/components/toggle-button/toggle-button.d.ts +13 -0
  603. package/dist/components/toggle-button/toggle-button.recipe.d.ts +95 -0
  604. package/dist/components/toggle-button/toggle-button.slots.d.ts +17 -0
  605. package/dist/components/toggle-button/toggle-button.types.d.ts +28 -0
  606. package/dist/components/toggle-button-group/components/toggle-button-group.button.d.ts +2 -0
  607. package/dist/components/toggle-button-group/components/toggle-button-group.root.d.ts +9 -0
  608. package/dist/components/toggle-button-group/index.d.ts +2 -0
  609. package/dist/components/toggle-button-group/toggle-button-group.d.ts +12 -0
  610. package/dist/components/toggle-button-group/toggle-button-group.recipe.d.ts +54 -0
  611. package/dist/components/toggle-button-group/toggle-button-group.slots.d.ts +3 -0
  612. package/dist/components/toggle-button-group/toggle-button-group.types.d.ts +32 -0
  613. package/dist/components/toggle-button-group.es.js +1 -1
  614. package/dist/components/toggle-button.es.js +1 -1
  615. package/dist/components/toolbar/index.d.ts +2 -0
  616. package/dist/components/toolbar/toolbar.d.ts +2 -0
  617. package/dist/components/toolbar/toolbar.recipe.d.ts +34 -0
  618. package/dist/components/toolbar/toolbar.slots.d.ts +11 -0
  619. package/dist/components/toolbar/toolbar.types.d.ts +20 -0
  620. package/dist/components/tooltip/components/tooltip.content.d.ts +21 -0
  621. package/dist/components/tooltip/components/tooltip.root.d.ts +12 -0
  622. package/dist/components/tooltip/index.d.ts +3 -0
  623. package/dist/components/tooltip/make-element-focusable.d.ts +32 -0
  624. package/dist/components/tooltip/tooltip.d.ts +7 -0
  625. package/dist/components/tooltip/tooltip.recipe.d.ts +5 -0
  626. package/dist/components/tooltip/tooltip.slots.d.ts +7 -0
  627. package/dist/components/tooltip/tooltip.types.d.ts +9 -0
  628. package/dist/components/utils/index.d.ts +4 -0
  629. package/dist/components/utils/type-helpers.d.ts +29 -0
  630. package/dist/components/visually-hidden/index.d.ts +1 -0
  631. package/dist/components/visually-hidden/visually-hidden.d.ts +17 -0
  632. package/dist/hooks/index.d.ts +5 -0
  633. package/dist/hooks/use-color-mode/index.d.ts +1 -0
  634. package/dist/hooks/use-color-mode/use-color-mode.d.ts +31 -0
  635. package/dist/hooks/use-color-mode-value/index.d.ts +1 -0
  636. package/dist/hooks/use-color-mode-value/use-color-mode-value.d.ts +10 -0
  637. package/dist/hooks/use-color-scheme/index.d.ts +1 -0
  638. package/dist/hooks/use-color-scheme/use-color-scheme.d.ts +15 -0
  639. package/dist/hooks/use-copy-to-clipboard/index.d.ts +1 -0
  640. package/dist/hooks/use-copy-to-clipboard/use-copy-to-clipboard.d.ts +1 -0
  641. package/dist/hooks/use-hotkeys/index.d.ts +1 -0
  642. package/dist/hooks/use-hotkeys/use-hotkeys.d.ts +1 -0
  643. package/dist/index.cjs +1 -1
  644. package/dist/index.cjs.map +1 -1
  645. package/dist/index.d.ts +4 -313
  646. package/dist/index.es.js +203 -198
  647. package/dist/index.es.js.map +1 -1
  648. package/dist/theme/animation-styles.d.ts +4 -0
  649. package/dist/theme/breakpoints.d.ts +5 -0
  650. package/dist/theme/conditions.d.ts +16 -0
  651. package/dist/theme/global-css.d.ts +1 -0
  652. package/dist/theme/index.d.ts +1 -0
  653. package/dist/theme/keyframes.d.ts +207 -0
  654. package/dist/theme/layer-styles.d.ts +4 -0
  655. package/dist/theme/recipes/index.d.ts +490 -0
  656. package/dist/theme/semantic-tokens/colors.d.ts +12478 -0
  657. package/dist/theme/semantic-tokens/index.d.ts +6262 -0
  658. package/dist/theme/semantic-tokens/radii.d.ts +1 -0
  659. package/dist/theme/semantic-tokens/shadows.d.ts +20 -0
  660. package/dist/theme/slot-recipes/index.d.ts +1489 -0
  661. package/dist/theme/text-styles.d.ts +4 -0
  662. package/dist/theme/tokens/animations.d.ts +14 -0
  663. package/dist/theme/tokens/aspect-ratios.d.ts +20 -0
  664. package/dist/theme/tokens/blurs.d.ts +26 -0
  665. package/dist/theme/tokens/borders.d.ts +14 -0
  666. package/dist/theme/tokens/colors.d.ts +168 -0
  667. package/dist/theme/tokens/cursor.d.ts +26 -0
  668. package/dist/theme/tokens/durations.d.ts +29 -0
  669. package/dist/theme/tokens/easings.d.ts +17 -0
  670. package/dist/theme/tokens/font-sizes.d.ts +44 -0
  671. package/dist/theme/tokens/font-weights.d.ts +29 -0
  672. package/dist/theme/tokens/fonts.d.ts +11 -0
  673. package/dist/theme/tokens/index.d.ts +1642 -0
  674. package/dist/theme/tokens/letter-spacings.d.ts +3 -0
  675. package/dist/theme/tokens/line-heights.d.ts +80 -0
  676. package/dist/theme/tokens/radii.d.ts +29 -0
  677. package/dist/theme/tokens/sizes.d.ts +278 -0
  678. package/dist/theme/tokens/spacing.d.ts +74 -0
  679. package/dist/theme/tokens/z-index.d.ts +41 -0
  680. package/dist/utils/extractStyleProps.d.ts +6 -0
  681. package/dist/utils/index.d.ts +3 -0
  682. package/dist/utils/noop.d.ts +12 -0
  683. package/dist/utils/slot-types.d.ts +22 -0
  684. package/package.json +1 -1
  685. package/dist/accordion.d.ts +0 -135
  686. package/dist/alert.d.ts +0 -172
  687. package/dist/badge.d.ts +0 -52
  688. package/dist/button.d.ts +0 -64
  689. package/dist/calendar.d.ts +0 -50
  690. package/dist/card.d.ts +0 -88
  691. package/dist/checkbox.d.ts +0 -54
  692. package/dist/chunks/accordion-DSLccfDW.es.js.map +0 -1
  693. package/dist/chunks/calendar-BTdHdh7y.es.js.map +0 -1
  694. package/dist/chunks/collapsible-motion-OOUmjdKw.es.js.map +0 -1
  695. package/dist/chunks/menu-4QTf2m-7.es.js.map +0 -1
  696. package/dist/chunks/popover-Cz6TnNt_.es.js.map +0 -1
  697. package/dist/chunks/range-calendar-RBEpLQJb.es.js.map +0 -1
  698. package/dist/chunks/rich-text-input-CrjP71KM.es.js.map +0 -1
  699. package/dist/chunks/split-button-C5MmKuVW.es.js.map +0 -1
  700. package/dist/chunks/switch-B5bEl91n.es.js.map +0 -1
  701. package/dist/code.d.ts +0 -25
  702. package/dist/collapsible-motion.d.ts +0 -125
  703. package/dist/combobox.d.ts +0 -236
  704. package/dist/components.d.ts +0 -299
  705. package/dist/data-table.d.ts +0 -302
  706. package/dist/date-input.d.ts +0 -51
  707. package/dist/date-picker.d.ts +0 -92
  708. package/dist/date-range-picker.d.ts +0 -73
  709. package/dist/dialog.d.ts +0 -499
  710. package/dist/draggable-list.d.ts +0 -331
  711. package/dist/drawer.d.ts +0 -590
  712. package/dist/flex.d.ts +0 -14
  713. package/dist/form-field.d.ts +0 -118
  714. package/dist/grid.d.ts +0 -35
  715. package/dist/group.d.ts +0 -38
  716. package/dist/icon-button.d.ts +0 -75
  717. package/dist/icon-toggle-button.d.ts +0 -67
  718. package/dist/icon.d.ts +0 -58
  719. package/dist/image.d.ts +0 -28
  720. package/dist/inline-svg.d.ts +0 -81
  721. package/dist/kbd.d.ts +0 -29
  722. package/dist/link.d.ts +0 -56
  723. package/dist/list.d.ts +0 -35
  724. package/dist/loading-spinner.d.ts +0 -53
  725. package/dist/localized-field.d.ts +0 -935
  726. package/dist/multiline-text-input.d.ts +0 -73
  727. package/dist/number-input.d.ts +0 -63
  728. package/dist/password-input.d.ts +0 -65
  729. package/dist/popover.d.ts +0 -34
  730. package/dist/progress-bar.d.ts +0 -96
  731. package/dist/radio-input.d.ts +0 -67
  732. package/dist/range-calendar.d.ts +0 -47
  733. package/dist/rich-text-input.d.ts +0 -82
  734. package/dist/search-input.d.ts +0 -56
  735. package/dist/select.d.ts +0 -246
  736. package/dist/separator.d.ts +0 -49
  737. package/dist/setup-jsdom-polyfills.d.ts +0 -10
  738. package/dist/simple-grid.d.ts +0 -35
  739. package/dist/spacer.d.ts +0 -41
  740. package/dist/split-button.d.ts +0 -99
  741. package/dist/stack.d.ts +0 -30
  742. package/dist/switch.d.ts +0 -44
  743. package/dist/table.d.ts +0 -14
  744. package/dist/tabs.d.ts +0 -213
  745. package/dist/tag-group.d.ts +0 -75
  746. package/dist/text-input.d.ts +0 -69
  747. package/dist/text.d.ts +0 -31
  748. package/dist/time-input.d.ts +0 -51
  749. package/dist/toggle-button-group.d.ts +0 -76
  750. package/dist/toggle-button.d.ts +0 -57
  751. package/dist/toolbar.d.ts +0 -40
  752. package/dist/tooltip.d.ts +0 -131
  753. package/dist/visually-hidden.d.ts +0 -31
@@ -2,15 +2,15 @@ import { $ as X, a as M, d as Y, e as j } from "./mergeProps-CzyOU2NE.es.js";
2
2
  import { $ as H } from "./filterDOMProps-BSVCO5jK.es.js";
3
3
  import { a as J, b as Q } from "./useHighlightSelectionDescription-qks4kKs2.es.js";
4
4
  import { $ as Z } from "./useHasTabbableChild-Dq0HGz7B.es.js";
5
- import { $ as _ } from "./Header-B4V0zxSN.es.js";
6
- import { a as ee } from "./openLink-DT8XzqFh.es.js";
5
+ import { $ as _ } from "./Header-DFcQWjkP.es.js";
6
+ import { $ as ee } from "./openLink-CY66vjvW.es.js";
7
7
  import { $ } from "./getScrollParent-BS4bncfK.es.js";
8
8
  import { a as y } from "./scrollIntoView-DTfS0nWq.es.js";
9
9
  import { a as I } from "./FocusScope-BY2fddGq.es.js";
10
10
  import { $ as oe } from "./useFocusVisible-BIPjFmFE.es.js";
11
11
  import { $ as b } from "./focusSafely-BS2OU9MQ.es.js";
12
12
  import { useRef as ne } from "react";
13
- import { g as ie } from "./SelectionManager-2q7N4psD.es.js";
13
+ import { g as ie } from "./SelectionManager-DMLLo5N3.es.js";
14
14
  import { $ as re } from "./context-R4YUlO9Y.es.js";
15
15
  const D = /* @__PURE__ */ new WeakMap();
16
16
  function F(r, e) {
@@ -248,4 +248,4 @@ export {
248
248
  ke as a,
249
249
  F as b
250
250
  };
251
- //# sourceMappingURL=useGridListItem-Cosrmt8g.es.js.map
251
+ //# sourceMappingURL=useGridListItem--iMluO7K.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useGridListItem-Cosrmt8g.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+gridlist@3.14.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/gridlist/dist/utils.mjs","../../../../node_modules/.pnpm/@react-aria+gridlist@3.14.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/gridlist/dist/useGridList.mjs","../../../../node_modules/.pnpm/@react-aria+gridlist@3.14.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/gridlist/dist/useGridListItem.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ const $ce9b18daab526bbd$export$5b9bb410392e3991 = new WeakMap();\nfunction $ce9b18daab526bbd$export$f45c25170b9a99c2(state, key) {\n var _listMap_get;\n let { id: id } = (_listMap_get = $ce9b18daab526bbd$export$5b9bb410392e3991.get(state)) !== null && _listMap_get !== void 0 ? _listMap_get : {};\n if (!id) throw new Error('Unknown list');\n return `${id}-${$ce9b18daab526bbd$export$e0c709538cb8ae18(key)}`;\n}\nfunction $ce9b18daab526bbd$export$e0c709538cb8ae18(key) {\n if (typeof key === 'string') return key.replace(/\\s*/g, '');\n return '' + key;\n}\n\n\nexport {$ce9b18daab526bbd$export$5b9bb410392e3991 as listMap, $ce9b18daab526bbd$export$f45c25170b9a99c2 as getRowId, $ce9b18daab526bbd$export$e0c709538cb8ae18 as normalizeKey};\n//# sourceMappingURL=utils.module.js.map\n","import {listMap as $ce9b18daab526bbd$export$5b9bb410392e3991} from \"./utils.mjs\";\nimport {useId as $lnALe$useId, filterDOMProps as $lnALe$filterDOMProps, mergeProps as $lnALe$mergeProps} from \"@react-aria/utils\";\nimport {useHighlightSelectionDescription as $lnALe$useHighlightSelectionDescription, useGridSelectionAnnouncement as $lnALe$useGridSelectionAnnouncement} from \"@react-aria/grid\";\nimport {useHasTabbableChild as $lnALe$useHasTabbableChild} from \"@react-aria/focus\";\nimport {useSelectableList as $lnALe$useSelectableList} from \"@react-aria/selection\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $f47efb0c3a859cf2$export$664f9155035607eb(props, state, ref) {\n let { isVirtualized: isVirtualized, keyboardDelegate: keyboardDelegate, layoutDelegate: layoutDelegate, onAction: onAction, disallowTypeAhead: disallowTypeAhead, linkBehavior: linkBehavior = 'action', keyboardNavigationBehavior: keyboardNavigationBehavior = 'arrow', escapeKeyBehavior: escapeKeyBehavior = 'clearSelection', shouldSelectOnPressUp: shouldSelectOnPressUp } = props;\n if (!props['aria-label'] && !props['aria-labelledby']) console.warn('An aria-label or aria-labelledby prop is required for accessibility.');\n let { listProps: listProps } = (0, $lnALe$useSelectableList)({\n selectionManager: state.selectionManager,\n collection: state.collection,\n disabledKeys: state.disabledKeys,\n ref: ref,\n keyboardDelegate: keyboardDelegate,\n layoutDelegate: layoutDelegate,\n isVirtualized: isVirtualized,\n selectOnFocus: state.selectionManager.selectionBehavior === 'replace',\n shouldFocusWrap: props.shouldFocusWrap,\n linkBehavior: linkBehavior,\n disallowTypeAhead: disallowTypeAhead,\n autoFocus: props.autoFocus,\n escapeKeyBehavior: escapeKeyBehavior\n });\n let id = (0, $lnALe$useId)(props.id);\n (0, $ce9b18daab526bbd$export$5b9bb410392e3991).set(state, {\n id: id,\n onAction: onAction,\n linkBehavior: linkBehavior,\n keyboardNavigationBehavior: keyboardNavigationBehavior,\n shouldSelectOnPressUp: shouldSelectOnPressUp\n });\n let descriptionProps = (0, $lnALe$useHighlightSelectionDescription)({\n selectionManager: state.selectionManager,\n hasItemActions: !!onAction\n });\n let hasTabbableChild = (0, $lnALe$useHasTabbableChild)(ref, {\n isDisabled: state.collection.size !== 0\n });\n let domProps = (0, $lnALe$filterDOMProps)(props, {\n labelable: true\n });\n let gridProps = (0, $lnALe$mergeProps)(domProps, {\n role: 'grid',\n id: id,\n 'aria-multiselectable': state.selectionManager.selectionMode === 'multiple' ? 'true' : undefined\n }, // If collection is empty, make sure the grid is tabbable unless there is a child tabbable element.\n state.collection.size === 0 ? {\n tabIndex: hasTabbableChild ? -1 : 0\n } : listProps, descriptionProps);\n if (isVirtualized) {\n gridProps['aria-rowcount'] = state.collection.size;\n gridProps['aria-colcount'] = 1;\n }\n (0, $lnALe$useGridSelectionAnnouncement)({}, state);\n return {\n gridProps: gridProps\n };\n}\n\n\nexport {$f47efb0c3a859cf2$export$664f9155035607eb as useGridList};\n//# sourceMappingURL=useGridList.module.js.map\n","import {getRowId as $ce9b18daab526bbd$export$f45c25170b9a99c2, listMap as $ce9b18daab526bbd$export$5b9bb410392e3991} from \"./utils.mjs\";\nimport {useSlotId as $lxFUG$useSlotId, chain as $lxFUG$chain, scrollIntoViewport as $lxFUG$scrollIntoViewport, getScrollParent as $lxFUG$getScrollParent, useSyntheticLinkProps as $lxFUG$useSyntheticLinkProps, mergeProps as $lxFUG$mergeProps} from \"@react-aria/utils\";\nimport {focusSafely as $lxFUG$focusSafely, getFocusableTreeWalker as $lxFUG$getFocusableTreeWalker} from \"@react-aria/focus\";\nimport {useRef as $lxFUG$useRef} from \"react\";\nimport {isFocusVisible as $lxFUG$isFocusVisible} from \"@react-aria/interactions\";\nimport {useSelectableItem as $lxFUG$useSelectableItem} from \"@react-aria/selection\";\nimport {useLocale as $lxFUG$useLocale} from \"@react-aria/i18n\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\nconst $4e8b0456ef72939f$var$EXPANSION_KEYS = {\n 'expand': {\n ltr: 'ArrowRight',\n rtl: 'ArrowLeft'\n },\n 'collapse': {\n ltr: 'ArrowLeft',\n rtl: 'ArrowRight'\n }\n};\nfunction $4e8b0456ef72939f$export$9610e69494fadfd2(props, state, ref) {\n var _node_props, _node_props1;\n // Copied from useGridCell + some modifications to make it not so grid specific\n let { node: node, isVirtualized: isVirtualized } = props;\n // let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/gridlist');\n let { direction: direction } = (0, $lxFUG$useLocale)();\n let { onAction: onAction, linkBehavior: linkBehavior, keyboardNavigationBehavior: keyboardNavigationBehavior, shouldSelectOnPressUp: shouldSelectOnPressUp } = (0, $ce9b18daab526bbd$export$5b9bb410392e3991).get(state);\n let descriptionId = (0, $lxFUG$useSlotId)();\n // We need to track the key of the item at the time it was last focused so that we force\n // focus to go to the item when the DOM node is reused for a different item in a virtualizer.\n let keyWhenFocused = (0, $lxFUG$useRef)(null);\n let focus = ()=>{\n var _ref_current;\n // Don't shift focus to the row if the active element is a element within the row already\n // (e.g. clicking on a row button)\n if (ref.current !== null && (keyWhenFocused.current != null && node.key !== keyWhenFocused.current || !((_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.contains(document.activeElement)))) (0, $lxFUG$focusSafely)(ref.current);\n };\n let treeGridRowProps = {};\n let hasChildRows = props.hasChildItems;\n let hasLink = state.selectionManager.isLink(node.key);\n if (node != null && 'expandedKeys' in state) {\n var _state_collection_getChildren, _state_collection;\n // TODO: ideally node.hasChildNodes would be a way to tell if a row has child nodes, but the row's contents make it so that value is always\n // true...\n let children = (_state_collection_getChildren = (_state_collection = state.collection).getChildren) === null || _state_collection_getChildren === void 0 ? void 0 : _state_collection_getChildren.call(_state_collection, node.key);\n hasChildRows = hasChildRows || [\n ...children !== null && children !== void 0 ? children : []\n ].length > 1;\n if (onAction == null && !hasLink && state.selectionManager.selectionMode === 'none' && hasChildRows) onAction = ()=>state.toggleKey(node.key);\n let isExpanded = hasChildRows ? state.expandedKeys.has(node.key) : undefined;\n let setSize = 1;\n if (node.level > 0 && (node === null || node === void 0 ? void 0 : node.parentKey) != null) {\n let parent = state.collection.getItem(node.parentKey);\n if (parent) {\n var _state_collection_getChildren1, _state_collection1;\n // siblings must exist because our original node exists\n let siblings = (_state_collection_getChildren1 = (_state_collection1 = state.collection).getChildren) === null || _state_collection_getChildren1 === void 0 ? void 0 : _state_collection_getChildren1.call(_state_collection1, parent.key);\n setSize = [\n ...siblings\n ].filter((row)=>row.type === 'item').length;\n }\n } else setSize = [\n ...state.collection\n ].filter((row)=>row.level === 0 && row.type === 'item').length;\n treeGridRowProps = {\n 'aria-expanded': isExpanded,\n 'aria-level': node.level + 1,\n 'aria-posinset': (node === null || node === void 0 ? void 0 : node.index) + 1,\n 'aria-setsize': setSize\n };\n }\n let { itemProps: itemProps, ...itemStates } = (0, $lxFUG$useSelectableItem)({\n selectionManager: state.selectionManager,\n key: node.key,\n ref: ref,\n isVirtualized: isVirtualized,\n shouldSelectOnPressUp: props.shouldSelectOnPressUp || shouldSelectOnPressUp,\n onAction: onAction || ((_node_props = node.props) === null || _node_props === void 0 ? void 0 : _node_props.onAction) ? (0, $lxFUG$chain)((_node_props1 = node.props) === null || _node_props1 === void 0 ? void 0 : _node_props1.onAction, onAction ? ()=>onAction(node.key) : undefined) : undefined,\n focus: focus,\n linkBehavior: linkBehavior\n });\n let onKeyDownCapture = (e)=>{\n if (!e.currentTarget.contains(e.target) || !ref.current || !document.activeElement) return;\n let walker = (0, $lxFUG$getFocusableTreeWalker)(ref.current);\n walker.currentNode = document.activeElement;\n if ('expandedKeys' in state && document.activeElement === ref.current) {\n if (e.key === $4e8b0456ef72939f$var$EXPANSION_KEYS['expand'][direction] && state.selectionManager.focusedKey === node.key && hasChildRows && !state.expandedKeys.has(node.key)) {\n state.toggleKey(node.key);\n e.stopPropagation();\n return;\n } else if (e.key === $4e8b0456ef72939f$var$EXPANSION_KEYS['collapse'][direction] && state.selectionManager.focusedKey === node.key && hasChildRows && state.expandedKeys.has(node.key)) {\n state.toggleKey(node.key);\n e.stopPropagation();\n return;\n }\n }\n switch(e.key){\n case 'ArrowLeft':\n if (keyboardNavigationBehavior === 'arrow') {\n // Find the next focusable element within the row.\n let focusable = direction === 'rtl' ? walker.nextNode() : walker.previousNode();\n if (focusable) {\n e.preventDefault();\n e.stopPropagation();\n (0, $lxFUG$focusSafely)(focusable);\n (0, $lxFUG$scrollIntoViewport)(focusable, {\n containingElement: (0, $lxFUG$getScrollParent)(ref.current)\n });\n } else {\n // If there is no next focusable child, then return focus back to the row\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n (0, $lxFUG$focusSafely)(ref.current);\n (0, $lxFUG$scrollIntoViewport)(ref.current, {\n containingElement: (0, $lxFUG$getScrollParent)(ref.current)\n });\n } else {\n walker.currentNode = ref.current;\n let lastElement = $4e8b0456ef72939f$var$last(walker);\n if (lastElement) {\n (0, $lxFUG$focusSafely)(lastElement);\n (0, $lxFUG$scrollIntoViewport)(lastElement, {\n containingElement: (0, $lxFUG$getScrollParent)(ref.current)\n });\n }\n }\n }\n }\n break;\n case 'ArrowRight':\n if (keyboardNavigationBehavior === 'arrow') {\n let focusable = direction === 'rtl' ? walker.previousNode() : walker.nextNode();\n if (focusable) {\n e.preventDefault();\n e.stopPropagation();\n (0, $lxFUG$focusSafely)(focusable);\n (0, $lxFUG$scrollIntoViewport)(focusable, {\n containingElement: (0, $lxFUG$getScrollParent)(ref.current)\n });\n } else {\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'ltr') {\n (0, $lxFUG$focusSafely)(ref.current);\n (0, $lxFUG$scrollIntoViewport)(ref.current, {\n containingElement: (0, $lxFUG$getScrollParent)(ref.current)\n });\n } else {\n walker.currentNode = ref.current;\n let lastElement = $4e8b0456ef72939f$var$last(walker);\n if (lastElement) {\n (0, $lxFUG$focusSafely)(lastElement);\n (0, $lxFUG$scrollIntoViewport)(lastElement, {\n containingElement: (0, $lxFUG$getScrollParent)(ref.current)\n });\n }\n }\n }\n }\n break;\n case 'ArrowUp':\n case 'ArrowDown':\n // Prevent this event from reaching row children, e.g. menu buttons. We want arrow keys to navigate\n // to the row above/below instead. We need to re-dispatch the event from a higher parent so it still\n // bubbles and gets handled by useSelectableCollection.\n if (!e.altKey && ref.current.contains(e.target)) {\n var _ref_current_parentElement;\n e.stopPropagation();\n e.preventDefault();\n (_ref_current_parentElement = ref.current.parentElement) === null || _ref_current_parentElement === void 0 ? void 0 : _ref_current_parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));\n }\n break;\n }\n };\n let onFocus = (e)=>{\n keyWhenFocused.current = node.key;\n if (e.target !== ref.current) {\n // useSelectableItem only handles setting the focused key when\n // the focused element is the row itself. We also want to\n // set the focused key when a child element receives focus.\n // If focus is currently visible (e.g. the user is navigating with the keyboard),\n // then skip this. We want to restore focus to the previously focused row\n // in that case since the list should act like a single tab stop.\n if (!(0, $lxFUG$isFocusVisible)()) state.selectionManager.setFocusedKey(node.key);\n return;\n }\n };\n let onKeyDown = (e)=>{\n if (!e.currentTarget.contains(e.target) || !ref.current || !document.activeElement) return;\n switch(e.key){\n case 'Tab':\n if (keyboardNavigationBehavior === 'tab') {\n // If there is another focusable element within this item, stop propagation so the tab key\n // is handled by the browser and not by useSelectableCollection (which would take us out of the list).\n let walker = (0, $lxFUG$getFocusableTreeWalker)(ref.current, {\n tabbable: true\n });\n walker.currentNode = document.activeElement;\n let next = e.shiftKey ? walker.previousNode() : walker.nextNode();\n if (next) e.stopPropagation();\n }\n }\n };\n let syntheticLinkProps = (0, $lxFUG$useSyntheticLinkProps)(node.props);\n let linkProps = itemStates.hasAction ? syntheticLinkProps : {};\n // TODO: re-add when we get translations and fix this for iOS VO\n // let rowAnnouncement;\n // if (onAction) {\n // rowAnnouncement = stringFormatter.format('hasActionAnnouncement');\n // } else if (hasLink) {\n // rowAnnouncement = stringFormatter.format('hasLinkAnnouncement', {\n // link: node.props.href\n // });\n // }\n let rowProps = (0, $lxFUG$mergeProps)(itemProps, linkProps, {\n role: 'row',\n onKeyDownCapture: onKeyDownCapture,\n onKeyDown: onKeyDown,\n onFocus: onFocus,\n // 'aria-label': [(node.textValue || undefined), rowAnnouncement].filter(Boolean).join(', '),\n 'aria-label': node.textValue || undefined,\n 'aria-selected': state.selectionManager.canSelectItem(node.key) ? state.selectionManager.isSelected(node.key) : undefined,\n 'aria-disabled': state.selectionManager.isDisabled(node.key) || undefined,\n 'aria-labelledby': descriptionId && node.textValue ? `${(0, $ce9b18daab526bbd$export$f45c25170b9a99c2)(state, node.key)} ${descriptionId}` : undefined,\n id: (0, $ce9b18daab526bbd$export$f45c25170b9a99c2)(state, node.key)\n });\n if (isVirtualized) {\n let { collection: collection } = state;\n let nodes = [\n ...collection\n ];\n // TODO: refactor ListCollection to store an absolute index of a node's position?\n rowProps['aria-rowindex'] = nodes.find((node)=>node.type === 'section') ? [\n ...collection.getKeys()\n ].filter((key)=>{\n var _collection_getItem;\n return ((_collection_getItem = collection.getItem(key)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.type) !== 'section';\n }).findIndex((key)=>key === node.key) + 1 : node.index + 1;\n }\n let gridCellProps = {\n role: 'gridcell',\n 'aria-colindex': 1\n };\n // TODO: should isExpanded and hasChildRows be a item state that gets returned by the hook?\n return {\n rowProps: {\n ...(0, $lxFUG$mergeProps)(rowProps, treeGridRowProps)\n },\n gridCellProps: gridCellProps,\n descriptionProps: {\n id: descriptionId\n },\n ...itemStates\n };\n}\nfunction $4e8b0456ef72939f$var$last(walker) {\n let next = null;\n let last = null;\n do {\n last = walker.lastChild();\n if (last) next = last;\n }while (last);\n return next;\n}\n\n\nexport {$4e8b0456ef72939f$export$9610e69494fadfd2 as useGridListItem};\n//# sourceMappingURL=useGridListItem.module.js.map\n"],"names":["$ce9b18daab526bbd$export$5b9bb410392e3991","$ce9b18daab526bbd$export$f45c25170b9a99c2","state","key","_listMap_get","id","$ce9b18daab526bbd$export$e0c709538cb8ae18","$f47efb0c3a859cf2$export$664f9155035607eb","props","ref","isVirtualized","keyboardDelegate","layoutDelegate","onAction","disallowTypeAhead","linkBehavior","keyboardNavigationBehavior","escapeKeyBehavior","shouldSelectOnPressUp","listProps","$lnALe$useSelectableList","$lnALe$useId","descriptionProps","$lnALe$useHighlightSelectionDescription","hasTabbableChild","$lnALe$useHasTabbableChild","domProps","$lnALe$filterDOMProps","gridProps","$lnALe$mergeProps","$lnALe$useGridSelectionAnnouncement","$4e8b0456ef72939f$var$EXPANSION_KEYS","$4e8b0456ef72939f$export$9610e69494fadfd2","_node_props","_node_props1","node","direction","$lxFUG$useLocale","descriptionId","$lxFUG$useSlotId","keyWhenFocused","$lxFUG$useRef","focus","_ref_current","$lxFUG$focusSafely","treeGridRowProps","hasChildRows","hasLink","_state_collection_getChildren","_state_collection","children","isExpanded","setSize","parent","_state_collection_getChildren1","_state_collection1","row","itemProps","itemStates","$lxFUG$useSelectableItem","$lxFUG$chain","onKeyDownCapture","e","walker","$lxFUG$getFocusableTreeWalker","focusable","$lxFUG$scrollIntoViewport","$lxFUG$getScrollParent","lastElement","$4e8b0456ef72939f$var$last","_ref_current_parentElement","onFocus","$lxFUG$isFocusVisible","onKeyDown","syntheticLinkProps","$lxFUG$useSyntheticLinkProps","linkProps","rowProps","$lxFUG$mergeProps","collection","nodes","_collection_getItem","gridCellProps","next","last"],"mappings":";;;;;;;;;;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eqC;AAAA,IACf,kBAAkB;AAAA,MACd,IAAI5C;AAAA,IAChB;AAAA,IACQ,GAAGoB;AAAA,EACX;AACA;AACA,SAASW,EAA2BN,GAAQ;AACxC,MAAIoB,IAAO,MACPC,IAAO;AACX;AACI,IAAAA,IAAOrB,EAAO,UAAS,GACnBqB,MAAMD,IAAOC;AAAA,SACbA;AACR,SAAOD;AACX;","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"useGridListItem--iMluO7K.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+gridlist@3.14.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/gridlist/dist/utils.mjs","../../../../node_modules/.pnpm/@react-aria+gridlist@3.14.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/gridlist/dist/useGridList.mjs","../../../../node_modules/.pnpm/@react-aria+gridlist@3.14.1_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/gridlist/dist/useGridListItem.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ const $ce9b18daab526bbd$export$5b9bb410392e3991 = new WeakMap();\nfunction $ce9b18daab526bbd$export$f45c25170b9a99c2(state, key) {\n var _listMap_get;\n let { id: id } = (_listMap_get = $ce9b18daab526bbd$export$5b9bb410392e3991.get(state)) !== null && _listMap_get !== void 0 ? _listMap_get : {};\n if (!id) throw new Error('Unknown list');\n return `${id}-${$ce9b18daab526bbd$export$e0c709538cb8ae18(key)}`;\n}\nfunction $ce9b18daab526bbd$export$e0c709538cb8ae18(key) {\n if (typeof key === 'string') return key.replace(/\\s*/g, '');\n return '' + key;\n}\n\n\nexport {$ce9b18daab526bbd$export$5b9bb410392e3991 as listMap, $ce9b18daab526bbd$export$f45c25170b9a99c2 as getRowId, $ce9b18daab526bbd$export$e0c709538cb8ae18 as normalizeKey};\n//# sourceMappingURL=utils.module.js.map\n","import {listMap as $ce9b18daab526bbd$export$5b9bb410392e3991} from \"./utils.mjs\";\nimport {useId as $lnALe$useId, filterDOMProps as $lnALe$filterDOMProps, mergeProps as $lnALe$mergeProps} from \"@react-aria/utils\";\nimport {useHighlightSelectionDescription as $lnALe$useHighlightSelectionDescription, useGridSelectionAnnouncement as $lnALe$useGridSelectionAnnouncement} from \"@react-aria/grid\";\nimport {useHasTabbableChild as $lnALe$useHasTabbableChild} from \"@react-aria/focus\";\nimport {useSelectableList as $lnALe$useSelectableList} from \"@react-aria/selection\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\nfunction $f47efb0c3a859cf2$export$664f9155035607eb(props, state, ref) {\n let { isVirtualized: isVirtualized, keyboardDelegate: keyboardDelegate, layoutDelegate: layoutDelegate, onAction: onAction, disallowTypeAhead: disallowTypeAhead, linkBehavior: linkBehavior = 'action', keyboardNavigationBehavior: keyboardNavigationBehavior = 'arrow', escapeKeyBehavior: escapeKeyBehavior = 'clearSelection', shouldSelectOnPressUp: shouldSelectOnPressUp } = props;\n if (!props['aria-label'] && !props['aria-labelledby']) console.warn('An aria-label or aria-labelledby prop is required for accessibility.');\n let { listProps: listProps } = (0, $lnALe$useSelectableList)({\n selectionManager: state.selectionManager,\n collection: state.collection,\n disabledKeys: state.disabledKeys,\n ref: ref,\n keyboardDelegate: keyboardDelegate,\n layoutDelegate: layoutDelegate,\n isVirtualized: isVirtualized,\n selectOnFocus: state.selectionManager.selectionBehavior === 'replace',\n shouldFocusWrap: props.shouldFocusWrap,\n linkBehavior: linkBehavior,\n disallowTypeAhead: disallowTypeAhead,\n autoFocus: props.autoFocus,\n escapeKeyBehavior: escapeKeyBehavior\n });\n let id = (0, $lnALe$useId)(props.id);\n (0, $ce9b18daab526bbd$export$5b9bb410392e3991).set(state, {\n id: id,\n onAction: onAction,\n linkBehavior: linkBehavior,\n keyboardNavigationBehavior: keyboardNavigationBehavior,\n shouldSelectOnPressUp: shouldSelectOnPressUp\n });\n let descriptionProps = (0, $lnALe$useHighlightSelectionDescription)({\n selectionManager: state.selectionManager,\n hasItemActions: !!onAction\n });\n let hasTabbableChild = (0, $lnALe$useHasTabbableChild)(ref, {\n isDisabled: state.collection.size !== 0\n });\n let domProps = (0, $lnALe$filterDOMProps)(props, {\n labelable: true\n });\n let gridProps = (0, $lnALe$mergeProps)(domProps, {\n role: 'grid',\n id: id,\n 'aria-multiselectable': state.selectionManager.selectionMode === 'multiple' ? 'true' : undefined\n }, // If collection is empty, make sure the grid is tabbable unless there is a child tabbable element.\n state.collection.size === 0 ? {\n tabIndex: hasTabbableChild ? -1 : 0\n } : listProps, descriptionProps);\n if (isVirtualized) {\n gridProps['aria-rowcount'] = state.collection.size;\n gridProps['aria-colcount'] = 1;\n }\n (0, $lnALe$useGridSelectionAnnouncement)({}, state);\n return {\n gridProps: gridProps\n };\n}\n\n\nexport {$f47efb0c3a859cf2$export$664f9155035607eb as useGridList};\n//# sourceMappingURL=useGridList.module.js.map\n","import {getRowId as $ce9b18daab526bbd$export$f45c25170b9a99c2, listMap as $ce9b18daab526bbd$export$5b9bb410392e3991} from \"./utils.mjs\";\nimport {useSlotId as $lxFUG$useSlotId, chain as $lxFUG$chain, scrollIntoViewport as $lxFUG$scrollIntoViewport, getScrollParent as $lxFUG$getScrollParent, useSyntheticLinkProps as $lxFUG$useSyntheticLinkProps, mergeProps as $lxFUG$mergeProps} from \"@react-aria/utils\";\nimport {focusSafely as $lxFUG$focusSafely, getFocusableTreeWalker as $lxFUG$getFocusableTreeWalker} from \"@react-aria/focus\";\nimport {useRef as $lxFUG$useRef} from \"react\";\nimport {isFocusVisible as $lxFUG$isFocusVisible} from \"@react-aria/interactions\";\nimport {useSelectableItem as $lxFUG$useSelectableItem} from \"@react-aria/selection\";\nimport {useLocale as $lxFUG$useLocale} from \"@react-aria/i18n\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\nconst $4e8b0456ef72939f$var$EXPANSION_KEYS = {\n 'expand': {\n ltr: 'ArrowRight',\n rtl: 'ArrowLeft'\n },\n 'collapse': {\n ltr: 'ArrowLeft',\n rtl: 'ArrowRight'\n }\n};\nfunction $4e8b0456ef72939f$export$9610e69494fadfd2(props, state, ref) {\n var _node_props, _node_props1;\n // Copied from useGridCell + some modifications to make it not so grid specific\n let { node: node, isVirtualized: isVirtualized } = props;\n // let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/gridlist');\n let { direction: direction } = (0, $lxFUG$useLocale)();\n let { onAction: onAction, linkBehavior: linkBehavior, keyboardNavigationBehavior: keyboardNavigationBehavior, shouldSelectOnPressUp: shouldSelectOnPressUp } = (0, $ce9b18daab526bbd$export$5b9bb410392e3991).get(state);\n let descriptionId = (0, $lxFUG$useSlotId)();\n // We need to track the key of the item at the time it was last focused so that we force\n // focus to go to the item when the DOM node is reused for a different item in a virtualizer.\n let keyWhenFocused = (0, $lxFUG$useRef)(null);\n let focus = ()=>{\n var _ref_current;\n // Don't shift focus to the row if the active element is a element within the row already\n // (e.g. clicking on a row button)\n if (ref.current !== null && (keyWhenFocused.current != null && node.key !== keyWhenFocused.current || !((_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.contains(document.activeElement)))) (0, $lxFUG$focusSafely)(ref.current);\n };\n let treeGridRowProps = {};\n let hasChildRows = props.hasChildItems;\n let hasLink = state.selectionManager.isLink(node.key);\n if (node != null && 'expandedKeys' in state) {\n var _state_collection_getChildren, _state_collection;\n // TODO: ideally node.hasChildNodes would be a way to tell if a row has child nodes, but the row's contents make it so that value is always\n // true...\n let children = (_state_collection_getChildren = (_state_collection = state.collection).getChildren) === null || _state_collection_getChildren === void 0 ? void 0 : _state_collection_getChildren.call(_state_collection, node.key);\n hasChildRows = hasChildRows || [\n ...children !== null && children !== void 0 ? children : []\n ].length > 1;\n if (onAction == null && !hasLink && state.selectionManager.selectionMode === 'none' && hasChildRows) onAction = ()=>state.toggleKey(node.key);\n let isExpanded = hasChildRows ? state.expandedKeys.has(node.key) : undefined;\n let setSize = 1;\n if (node.level > 0 && (node === null || node === void 0 ? void 0 : node.parentKey) != null) {\n let parent = state.collection.getItem(node.parentKey);\n if (parent) {\n var _state_collection_getChildren1, _state_collection1;\n // siblings must exist because our original node exists\n let siblings = (_state_collection_getChildren1 = (_state_collection1 = state.collection).getChildren) === null || _state_collection_getChildren1 === void 0 ? void 0 : _state_collection_getChildren1.call(_state_collection1, parent.key);\n setSize = [\n ...siblings\n ].filter((row)=>row.type === 'item').length;\n }\n } else setSize = [\n ...state.collection\n ].filter((row)=>row.level === 0 && row.type === 'item').length;\n treeGridRowProps = {\n 'aria-expanded': isExpanded,\n 'aria-level': node.level + 1,\n 'aria-posinset': (node === null || node === void 0 ? void 0 : node.index) + 1,\n 'aria-setsize': setSize\n };\n }\n let { itemProps: itemProps, ...itemStates } = (0, $lxFUG$useSelectableItem)({\n selectionManager: state.selectionManager,\n key: node.key,\n ref: ref,\n isVirtualized: isVirtualized,\n shouldSelectOnPressUp: props.shouldSelectOnPressUp || shouldSelectOnPressUp,\n onAction: onAction || ((_node_props = node.props) === null || _node_props === void 0 ? void 0 : _node_props.onAction) ? (0, $lxFUG$chain)((_node_props1 = node.props) === null || _node_props1 === void 0 ? void 0 : _node_props1.onAction, onAction ? ()=>onAction(node.key) : undefined) : undefined,\n focus: focus,\n linkBehavior: linkBehavior\n });\n let onKeyDownCapture = (e)=>{\n if (!e.currentTarget.contains(e.target) || !ref.current || !document.activeElement) return;\n let walker = (0, $lxFUG$getFocusableTreeWalker)(ref.current);\n walker.currentNode = document.activeElement;\n if ('expandedKeys' in state && document.activeElement === ref.current) {\n if (e.key === $4e8b0456ef72939f$var$EXPANSION_KEYS['expand'][direction] && state.selectionManager.focusedKey === node.key && hasChildRows && !state.expandedKeys.has(node.key)) {\n state.toggleKey(node.key);\n e.stopPropagation();\n return;\n } else if (e.key === $4e8b0456ef72939f$var$EXPANSION_KEYS['collapse'][direction] && state.selectionManager.focusedKey === node.key && hasChildRows && state.expandedKeys.has(node.key)) {\n state.toggleKey(node.key);\n e.stopPropagation();\n return;\n }\n }\n switch(e.key){\n case 'ArrowLeft':\n if (keyboardNavigationBehavior === 'arrow') {\n // Find the next focusable element within the row.\n let focusable = direction === 'rtl' ? walker.nextNode() : walker.previousNode();\n if (focusable) {\n e.preventDefault();\n e.stopPropagation();\n (0, $lxFUG$focusSafely)(focusable);\n (0, $lxFUG$scrollIntoViewport)(focusable, {\n containingElement: (0, $lxFUG$getScrollParent)(ref.current)\n });\n } else {\n // If there is no next focusable child, then return focus back to the row\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n (0, $lxFUG$focusSafely)(ref.current);\n (0, $lxFUG$scrollIntoViewport)(ref.current, {\n containingElement: (0, $lxFUG$getScrollParent)(ref.current)\n });\n } else {\n walker.currentNode = ref.current;\n let lastElement = $4e8b0456ef72939f$var$last(walker);\n if (lastElement) {\n (0, $lxFUG$focusSafely)(lastElement);\n (0, $lxFUG$scrollIntoViewport)(lastElement, {\n containingElement: (0, $lxFUG$getScrollParent)(ref.current)\n });\n }\n }\n }\n }\n break;\n case 'ArrowRight':\n if (keyboardNavigationBehavior === 'arrow') {\n let focusable = direction === 'rtl' ? walker.previousNode() : walker.nextNode();\n if (focusable) {\n e.preventDefault();\n e.stopPropagation();\n (0, $lxFUG$focusSafely)(focusable);\n (0, $lxFUG$scrollIntoViewport)(focusable, {\n containingElement: (0, $lxFUG$getScrollParent)(ref.current)\n });\n } else {\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'ltr') {\n (0, $lxFUG$focusSafely)(ref.current);\n (0, $lxFUG$scrollIntoViewport)(ref.current, {\n containingElement: (0, $lxFUG$getScrollParent)(ref.current)\n });\n } else {\n walker.currentNode = ref.current;\n let lastElement = $4e8b0456ef72939f$var$last(walker);\n if (lastElement) {\n (0, $lxFUG$focusSafely)(lastElement);\n (0, $lxFUG$scrollIntoViewport)(lastElement, {\n containingElement: (0, $lxFUG$getScrollParent)(ref.current)\n });\n }\n }\n }\n }\n break;\n case 'ArrowUp':\n case 'ArrowDown':\n // Prevent this event from reaching row children, e.g. menu buttons. We want arrow keys to navigate\n // to the row above/below instead. We need to re-dispatch the event from a higher parent so it still\n // bubbles and gets handled by useSelectableCollection.\n if (!e.altKey && ref.current.contains(e.target)) {\n var _ref_current_parentElement;\n e.stopPropagation();\n e.preventDefault();\n (_ref_current_parentElement = ref.current.parentElement) === null || _ref_current_parentElement === void 0 ? void 0 : _ref_current_parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));\n }\n break;\n }\n };\n let onFocus = (e)=>{\n keyWhenFocused.current = node.key;\n if (e.target !== ref.current) {\n // useSelectableItem only handles setting the focused key when\n // the focused element is the row itself. We also want to\n // set the focused key when a child element receives focus.\n // If focus is currently visible (e.g. the user is navigating with the keyboard),\n // then skip this. We want to restore focus to the previously focused row\n // in that case since the list should act like a single tab stop.\n if (!(0, $lxFUG$isFocusVisible)()) state.selectionManager.setFocusedKey(node.key);\n return;\n }\n };\n let onKeyDown = (e)=>{\n if (!e.currentTarget.contains(e.target) || !ref.current || !document.activeElement) return;\n switch(e.key){\n case 'Tab':\n if (keyboardNavigationBehavior === 'tab') {\n // If there is another focusable element within this item, stop propagation so the tab key\n // is handled by the browser and not by useSelectableCollection (which would take us out of the list).\n let walker = (0, $lxFUG$getFocusableTreeWalker)(ref.current, {\n tabbable: true\n });\n walker.currentNode = document.activeElement;\n let next = e.shiftKey ? walker.previousNode() : walker.nextNode();\n if (next) e.stopPropagation();\n }\n }\n };\n let syntheticLinkProps = (0, $lxFUG$useSyntheticLinkProps)(node.props);\n let linkProps = itemStates.hasAction ? syntheticLinkProps : {};\n // TODO: re-add when we get translations and fix this for iOS VO\n // let rowAnnouncement;\n // if (onAction) {\n // rowAnnouncement = stringFormatter.format('hasActionAnnouncement');\n // } else if (hasLink) {\n // rowAnnouncement = stringFormatter.format('hasLinkAnnouncement', {\n // link: node.props.href\n // });\n // }\n let rowProps = (0, $lxFUG$mergeProps)(itemProps, linkProps, {\n role: 'row',\n onKeyDownCapture: onKeyDownCapture,\n onKeyDown: onKeyDown,\n onFocus: onFocus,\n // 'aria-label': [(node.textValue || undefined), rowAnnouncement].filter(Boolean).join(', '),\n 'aria-label': node.textValue || undefined,\n 'aria-selected': state.selectionManager.canSelectItem(node.key) ? state.selectionManager.isSelected(node.key) : undefined,\n 'aria-disabled': state.selectionManager.isDisabled(node.key) || undefined,\n 'aria-labelledby': descriptionId && node.textValue ? `${(0, $ce9b18daab526bbd$export$f45c25170b9a99c2)(state, node.key)} ${descriptionId}` : undefined,\n id: (0, $ce9b18daab526bbd$export$f45c25170b9a99c2)(state, node.key)\n });\n if (isVirtualized) {\n let { collection: collection } = state;\n let nodes = [\n ...collection\n ];\n // TODO: refactor ListCollection to store an absolute index of a node's position?\n rowProps['aria-rowindex'] = nodes.find((node)=>node.type === 'section') ? [\n ...collection.getKeys()\n ].filter((key)=>{\n var _collection_getItem;\n return ((_collection_getItem = collection.getItem(key)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.type) !== 'section';\n }).findIndex((key)=>key === node.key) + 1 : node.index + 1;\n }\n let gridCellProps = {\n role: 'gridcell',\n 'aria-colindex': 1\n };\n // TODO: should isExpanded and hasChildRows be a item state that gets returned by the hook?\n return {\n rowProps: {\n ...(0, $lxFUG$mergeProps)(rowProps, treeGridRowProps)\n },\n gridCellProps: gridCellProps,\n descriptionProps: {\n id: descriptionId\n },\n ...itemStates\n };\n}\nfunction $4e8b0456ef72939f$var$last(walker) {\n let next = null;\n let last = null;\n do {\n last = walker.lastChild();\n if (last) next = last;\n }while (last);\n return next;\n}\n\n\nexport {$4e8b0456ef72939f$export$9610e69494fadfd2 as useGridListItem};\n//# sourceMappingURL=useGridListItem.module.js.map\n"],"names":["$ce9b18daab526bbd$export$5b9bb410392e3991","$ce9b18daab526bbd$export$f45c25170b9a99c2","state","key","_listMap_get","id","$ce9b18daab526bbd$export$e0c709538cb8ae18","$f47efb0c3a859cf2$export$664f9155035607eb","props","ref","isVirtualized","keyboardDelegate","layoutDelegate","onAction","disallowTypeAhead","linkBehavior","keyboardNavigationBehavior","escapeKeyBehavior","shouldSelectOnPressUp","listProps","$lnALe$useSelectableList","$lnALe$useId","descriptionProps","$lnALe$useHighlightSelectionDescription","hasTabbableChild","$lnALe$useHasTabbableChild","domProps","$lnALe$filterDOMProps","gridProps","$lnALe$mergeProps","$lnALe$useGridSelectionAnnouncement","$4e8b0456ef72939f$var$EXPANSION_KEYS","$4e8b0456ef72939f$export$9610e69494fadfd2","_node_props","_node_props1","node","direction","$lxFUG$useLocale","descriptionId","$lxFUG$useSlotId","keyWhenFocused","$lxFUG$useRef","focus","_ref_current","$lxFUG$focusSafely","treeGridRowProps","hasChildRows","hasLink","_state_collection_getChildren","_state_collection","children","isExpanded","setSize","parent","_state_collection_getChildren1","_state_collection1","row","itemProps","itemStates","$lxFUG$useSelectableItem","$lxFUG$chain","onKeyDownCapture","e","walker","$lxFUG$getFocusableTreeWalker","focusable","$lxFUG$scrollIntoViewport","$lxFUG$getScrollParent","lastElement","$4e8b0456ef72939f$var$last","_ref_current_parentElement","onFocus","$lxFUG$isFocusVisible","onKeyDown","syntheticLinkProps","$lxFUG$useSyntheticLinkProps","linkProps","rowProps","$lxFUG$mergeProps","collection","nodes","_collection_getItem","gridCellProps","next","last"],"mappings":";;;;;;;;;;;;;;AAUI,MAAMA,IAA4C,oBAAI,QAAO;AACjE,SAASC,EAA0CC,GAAOC,GAAK;AAC3D,MAAIC;AACJ,MAAI,EAAE,IAAIC,OAAQD,IAAeJ,EAA0C,IAAIE,CAAK,OAAO,QAAQE,MAAiB,SAASA,IAAe,CAAA;AAC5I,MAAI,CAACC,EAAI,OAAM,IAAI,MAAM,cAAc;AACvC,SAAO,GAAGA,CAAE,IAAIC,GAA0CH,CAAG,CAAC;AAClE;AACA,SAASG,GAA0CH,GAAK;AACpD,SAAI,OAAOA,KAAQ,WAAiBA,EAAI,QAAQ,QAAQ,EAAE,IACnD,KAAKA;AAChB;ACCA,SAASI,GAA0CC,GAAON,GAAOO,GAAK;AAClE,MAAI,EAAE,eAAeC,GAAe,kBAAkBC,GAAkB,gBAAgBC,GAAgB,UAAUC,GAAU,mBAAmBC,GAAmB,cAAcC,IAAe,UAAU,4BAA4BC,IAA6B,SAAS,mBAAmBC,IAAoB,kBAAkB,uBAAuBC,EAAqB,IAAKV;AACrX,EAAI,CAACA,EAAM,YAAY,KAAK,CAACA,EAAM,iBAAiB,KAAG,QAAQ,KAAK,sEAAsE;AAC1I,MAAI,EAAE,WAAWW,EAAS,IAASC,EAA0B;AAAA,IACzD,kBAAkBlB,EAAM;AAAA,IACxB,YAAYA,EAAM;AAAA,IAClB,cAAcA,EAAM;AAAA,IACpB,KAAKO;AAAA,IACL,kBAAkBE;AAAA,IAClB,gBAAgBC;AAAA,IAChB,e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O,QAAQ8E,MAAwB,SAAS,SAASA,EAAoB,UAAU;AAAA,IAChJ,CAAC,EAAE,UAAU,CAAC9E,MAAMA,MAAQgC,EAAK,GAAG,IAAI,IAAIA,EAAK,QAAQ;AAAA,EAC7D;AACA,MAAI+C,IAAgB;AAAA,IAChB,MAAM;AAAA,IACN,iBAAiB;AAAA,EACzB;AAEI,SAAO;AAAA,IACH,UAAU;AAAA,MACN,GAAOJ,EAAmBD,GAAUhC,CAAgB;AAAA,IAChE;AAAA,IACQ,eAAeqC;AAAA,IACf,kBAAkB;AAAA,MACd,IAAI5C;AAAA,IAChB;AAAA,IACQ,GAAGoB;AAAA,EACX;AACA;AACA,SAASW,EAA2BN,GAAQ;AACxC,MAAIoB,IAAO,MACPC,IAAO;AACX;AACI,IAAAA,IAAOrB,EAAO,UAAS,GACnBqB,MAAMD,IAAOC;AAAA,SACbA;AACR,SAAOD;AACX;","x_google_ignoreList":[0,1,2]}
@@ -1,4 +1,4 @@
1
- import { a as x, b as M, c as m } from "./SelectionManager-2q7N4psD.es.js";
1
+ import { a as x, b as M, c as m } from "./SelectionManager-DMLLo5N3.es.js";
2
2
  import { useMemo as K, useCallback as w, useRef as S, useEffect as z } from "react";
3
3
  class $ {
4
4
  *[Symbol.iterator]() {
@@ -131,4 +131,4 @@ export {
131
131
  T as a,
132
132
  $ as b
133
133
  };
134
- //# sourceMappingURL=useListState-CUO8Wibt.es.js.map
134
+ //# sourceMappingURL=useListState-Cf8n791-.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useListState-CUO8Wibt.es.js","sources":["../../../../node_modules/.pnpm/@react-stately+list@3.13.1_react@19.1.0/node_modules/@react-stately/list/dist/ListCollection.mjs","../../../../node_modules/.pnpm/@react-stately+list@3.13.1_react@19.1.0/node_modules/@react-stately/list/dist/useListState.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ class $a02d57049d202695$export$d085fb9e920b5ca7 {\n *[Symbol.iterator]() {\n yield* this.iterable;\n }\n get size() {\n return this._size;\n }\n getKeys() {\n return this.keyMap.keys();\n }\n getKeyBefore(key) {\n let node = this.keyMap.get(key);\n var _node_prevKey;\n return node ? (_node_prevKey = node.prevKey) !== null && _node_prevKey !== void 0 ? _node_prevKey : null : null;\n }\n getKeyAfter(key) {\n let node = this.keyMap.get(key);\n var _node_nextKey;\n return node ? (_node_nextKey = node.nextKey) !== null && _node_nextKey !== void 0 ? _node_nextKey : null : null;\n }\n getFirstKey() {\n return this.firstKey;\n }\n getLastKey() {\n return this.lastKey;\n }\n getItem(key) {\n var _this_keyMap_get;\n return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;\n }\n at(idx) {\n const keys = [\n ...this.getKeys()\n ];\n return this.getItem(keys[idx]);\n }\n getChildren(key) {\n let node = this.keyMap.get(key);\n return (node === null || node === void 0 ? void 0 : node.childNodes) || [];\n }\n constructor(nodes){\n this.keyMap = new Map();\n this.firstKey = null;\n this.lastKey = null;\n this.iterable = nodes;\n let visit = (node)=>{\n this.keyMap.set(node.key, node);\n if (node.childNodes && node.type === 'section') for (let child of node.childNodes)visit(child);\n };\n for (let node of nodes)visit(node);\n let last = null;\n let index = 0;\n let size = 0;\n for (let [key, node] of this.keyMap){\n if (last) {\n last.nextKey = key;\n node.prevKey = last.key;\n } else {\n this.firstKey = key;\n node.prevKey = undefined;\n }\n if (node.type === 'item') node.index = index++;\n // Only count sections and items when determining size so that\n // loaders and separators in RAC/S2 don't influence the emptyState determination\n if (node.type === 'section' || node.type === 'item') size++;\n last = node;\n // Set nextKey as undefined since this might be the last node\n // If it isn't the last node, last.nextKey will properly set at start of new loop\n last.nextKey = undefined;\n }\n this._size = size;\n var _last_key;\n this.lastKey = (_last_key = last === null || last === void 0 ? void 0 : last.key) !== null && _last_key !== void 0 ? _last_key : null;\n }\n}\n\n\nexport {$a02d57049d202695$export$d085fb9e920b5ca7 as ListCollection};\n//# sourceMappingURL=ListCollection.module.js.map\n","import {ListCollection as $a02d57049d202695$export$d085fb9e920b5ca7} from \"./ListCollection.mjs\";\nimport {useMultipleSelectionState as $d5vlZ$useMultipleSelectionState, SelectionManager as $d5vlZ$SelectionManager} from \"@react-stately/selection\";\nimport {useMemo as $d5vlZ$useMemo, useCallback as $d5vlZ$useCallback, useRef as $d5vlZ$useRef, useEffect as $d5vlZ$useEffect} from \"react\";\nimport {useCollection as $d5vlZ$useCollection} from \"@react-stately/collections\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\nfunction $e72dd72e1c76a225$export$2f645645f7bca764(props) {\n let { filter: filter, layoutDelegate: layoutDelegate } = props;\n let selectionState = (0, $d5vlZ$useMultipleSelectionState)(props);\n let disabledKeys = (0, $d5vlZ$useMemo)(()=>props.disabledKeys ? new Set(props.disabledKeys) : new Set(), [\n props.disabledKeys\n ]);\n let factory = (0, $d5vlZ$useCallback)((nodes)=>filter ? new (0, $a02d57049d202695$export$d085fb9e920b5ca7)(filter(nodes)) : new (0, $a02d57049d202695$export$d085fb9e920b5ca7)(nodes), [\n filter\n ]);\n let context = (0, $d5vlZ$useMemo)(()=>({\n suppressTextValueWarning: props.suppressTextValueWarning\n }), [\n props.suppressTextValueWarning\n ]);\n let collection = (0, $d5vlZ$useCollection)(props, factory, context);\n let selectionManager = (0, $d5vlZ$useMemo)(()=>new (0, $d5vlZ$SelectionManager)(collection, selectionState, {\n layoutDelegate: layoutDelegate\n }), [\n collection,\n selectionState,\n layoutDelegate\n ]);\n $e72dd72e1c76a225$var$useFocusedKeyReset(collection, selectionManager);\n return {\n collection: collection,\n disabledKeys: disabledKeys,\n selectionManager: selectionManager\n };\n}\nfunction $e72dd72e1c76a225$export$ba9d38c0f1bf2b36(state, filterFn) {\n let collection = (0, $d5vlZ$useMemo)(()=>filterFn ? state.collection.filter(filterFn) : state.collection, [\n state.collection,\n filterFn\n ]);\n let selectionManager = state.selectionManager.withCollection(collection);\n $e72dd72e1c76a225$var$useFocusedKeyReset(collection, selectionManager);\n return {\n collection: collection,\n selectionManager: selectionManager,\n disabledKeys: state.disabledKeys\n };\n}\nfunction $e72dd72e1c76a225$var$useFocusedKeyReset(collection, selectionManager) {\n // Reset focused key if that item is deleted from the collection.\n const cachedCollection = (0, $d5vlZ$useRef)(null);\n (0, $d5vlZ$useEffect)(()=>{\n if (selectionManager.focusedKey != null && !collection.getItem(selectionManager.focusedKey) && cachedCollection.current) {\n const startItem = cachedCollection.current.getItem(selectionManager.focusedKey);\n const cachedItemNodes = [\n ...cachedCollection.current.getKeys()\n ].map((key)=>{\n const itemNode = cachedCollection.current.getItem(key);\n return (itemNode === null || itemNode === void 0 ? void 0 : itemNode.type) === 'item' ? itemNode : null;\n }).filter((node)=>node !== null);\n const itemNodes = [\n ...collection.getKeys()\n ].map((key)=>{\n const itemNode = collection.getItem(key);\n return (itemNode === null || itemNode === void 0 ? void 0 : itemNode.type) === 'item' ? itemNode : null;\n }).filter((node)=>node !== null);\n var _cachedItemNodes_length, _itemNodes_length;\n const diff = ((_cachedItemNodes_length = cachedItemNodes === null || cachedItemNodes === void 0 ? void 0 : cachedItemNodes.length) !== null && _cachedItemNodes_length !== void 0 ? _cachedItemNodes_length : 0) - ((_itemNodes_length = itemNodes === null || itemNodes === void 0 ? void 0 : itemNodes.length) !== null && _itemNodes_length !== void 0 ? _itemNodes_length : 0);\n var _startItem_index, _startItem_index1, _itemNodes_length1;\n let index = Math.min(diff > 1 ? Math.max(((_startItem_index = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index !== void 0 ? _startItem_index : 0) - diff + 1, 0) : (_startItem_index1 = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index1 !== void 0 ? _startItem_index1 : 0, ((_itemNodes_length1 = itemNodes === null || itemNodes === void 0 ? void 0 : itemNodes.length) !== null && _itemNodes_length1 !== void 0 ? _itemNodes_length1 : 0) - 1);\n let newNode = null;\n let isReverseSearching = false;\n while(index >= 0){\n if (!selectionManager.isDisabled(itemNodes[index].key)) {\n newNode = itemNodes[index];\n break;\n }\n // Find next, not disabled item.\n if (index < itemNodes.length - 1 && !isReverseSearching) index++;\n else {\n isReverseSearching = true;\n var _startItem_index2, _startItem_index3;\n if (index > ((_startItem_index2 = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index2 !== void 0 ? _startItem_index2 : 0)) index = (_startItem_index3 = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index3 !== void 0 ? _startItem_index3 : 0;\n index--;\n }\n }\n selectionManager.setFocusedKey(newNode ? newNode.key : null);\n }\n cachedCollection.current = collection;\n }, [\n collection,\n selectionManager\n ]);\n}\n\n\nexport {$e72dd72e1c76a225$export$2f645645f7bca764 as useListState, $e72dd72e1c76a225$export$ba9d38c0f1bf2b36 as UNSTABLE_useFilteredListState};\n//# sourceMappingURL=useListState.module.js.map\n"],"names":["$a02d57049d202695$export$d085fb9e920b5ca7","key","node","_node_prevKey","_node_nextKey","_this_keyMap_get","idx","keys","nodes","visit","child","last","index","size","_last_key","$e72dd72e1c76a225$export$2f645645f7bca764","props","filter","layoutDelegate","selectionState","$d5vlZ$useMultipleSelectionState","disabledKeys","$d5vlZ$useMemo","factory","$d5vlZ$useCallback","context","collection","$d5vlZ$useCollection","selectionManager","$d5vlZ$SelectionManager","$e72dd72e1c76a225$var$useFocusedKeyReset","$e72dd72e1c76a225$export$ba9d38c0f1bf2b36","state","filterFn","cachedCollection","$d5vlZ$useRef","$d5vlZ$useEffect","startItem","cachedItemNodes","itemNode","itemNodes","_cachedItemNodes_length","_itemNodes_length","diff","_startItem_index","_startItem_index1","_itemNodes_length1","newNode","isReverseSearching","_startItem_index2","_startItem_index3"],"mappings":";;AAUI,MAAMA,EAA0C;AAAA,EAChD,EAAE,OAAO,QAAQ,IAAI;AACjB,WAAO,KAAK;AAAA,EAChB;AAAA,EACA,IAAI,OAAO;AACP,WAAO,KAAK;AAAA,EAChB;AAAA,EACA,UAAU;AACN,WAAO,KAAK,OAAO,KAAI;AAAA,EAC3B;AAAA,EACA,aAAaC,GAAK;AACd,QAAIC,IAAO,KAAK,OAAO,IAAID,CAAG;AAC9B,QAAIE;AACJ,WAAOD,MAAQC,IAAgBD,EAAK,aAAa,QAAQC,MAAkB,SAASA,IAAuB;AAAA,EAC/G;AAAA,EACA,YAAYF,GAAK;AACb,QAAIC,IAAO,KAAK,OAAO,IAAID,CAAG;AAC9B,QAAIG;AACJ,WAAOF,MAAQE,IAAgBF,EAAK,aAAa,QAAQE,MAAkB,SAASA,IAAuB;AAAA,EAC/G;AAAA,EACA,cAAc;AACV,WAAO,KAAK;AAAA,EAChB;AAAA,EACA,aAAa;AACT,WAAO,KAAK;AAAA,EAChB;AAAA,EACA,QAAQH,GAAK;AACT,QAAII;AACJ,YAAQA,IAAmB,KAAK,OAAO,IAAIJ,CAAG,OAAO,QAAQI,MAAqB,SAASA,IAAmB;AAAA,EAClH;AAAA,EACA,GAAGC,GAAK;AACJ,UAAMC,IAAO;AAAA,MACT,GAAG,KAAK,QAAO;AAAA,IAC3B;AACQ,WAAO,KAAK,QAAQA,EAAKD,CAAG,CAAC;AAAA,EACjC;AAAA,EACA,YAAYL,GAAK;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EAC/B,GAAG;AAAA,IACCA;AAAA,IACAE;AAAA,EACR,CAAK;AACL;","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"useListState-Cf8n791-.es.js","sources":["../../../../node_modules/.pnpm/@react-stately+list@3.13.1_react@19.1.0/node_modules/@react-stately/list/dist/ListCollection.mjs","../../../../node_modules/.pnpm/@react-stately+list@3.13.1_react@19.1.0/node_modules/@react-stately/list/dist/useListState.mjs"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ class $a02d57049d202695$export$d085fb9e920b5ca7 {\n *[Symbol.iterator]() {\n yield* this.iterable;\n }\n get size() {\n return this._size;\n }\n getKeys() {\n return this.keyMap.keys();\n }\n getKeyBefore(key) {\n let node = this.keyMap.get(key);\n var _node_prevKey;\n return node ? (_node_prevKey = node.prevKey) !== null && _node_prevKey !== void 0 ? _node_prevKey : null : null;\n }\n getKeyAfter(key) {\n let node = this.keyMap.get(key);\n var _node_nextKey;\n return node ? (_node_nextKey = node.nextKey) !== null && _node_nextKey !== void 0 ? _node_nextKey : null : null;\n }\n getFirstKey() {\n return this.firstKey;\n }\n getLastKey() {\n return this.lastKey;\n }\n getItem(key) {\n var _this_keyMap_get;\n return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;\n }\n at(idx) {\n const keys = [\n ...this.getKeys()\n ];\n return this.getItem(keys[idx]);\n }\n getChildren(key) {\n let node = this.keyMap.get(key);\n return (node === null || node === void 0 ? void 0 : node.childNodes) || [];\n }\n constructor(nodes){\n this.keyMap = new Map();\n this.firstKey = null;\n this.lastKey = null;\n this.iterable = nodes;\n let visit = (node)=>{\n this.keyMap.set(node.key, node);\n if (node.childNodes && node.type === 'section') for (let child of node.childNodes)visit(child);\n };\n for (let node of nodes)visit(node);\n let last = null;\n let index = 0;\n let size = 0;\n for (let [key, node] of this.keyMap){\n if (last) {\n last.nextKey = key;\n node.prevKey = last.key;\n } else {\n this.firstKey = key;\n node.prevKey = undefined;\n }\n if (node.type === 'item') node.index = index++;\n // Only count sections and items when determining size so that\n // loaders and separators in RAC/S2 don't influence the emptyState determination\n if (node.type === 'section' || node.type === 'item') size++;\n last = node;\n // Set nextKey as undefined since this might be the last node\n // If it isn't the last node, last.nextKey will properly set at start of new loop\n last.nextKey = undefined;\n }\n this._size = size;\n var _last_key;\n this.lastKey = (_last_key = last === null || last === void 0 ? void 0 : last.key) !== null && _last_key !== void 0 ? _last_key : null;\n }\n}\n\n\nexport {$a02d57049d202695$export$d085fb9e920b5ca7 as ListCollection};\n//# sourceMappingURL=ListCollection.module.js.map\n","import {ListCollection as $a02d57049d202695$export$d085fb9e920b5ca7} from \"./ListCollection.mjs\";\nimport {useMultipleSelectionState as $d5vlZ$useMultipleSelectionState, SelectionManager as $d5vlZ$SelectionManager} from \"@react-stately/selection\";\nimport {useMemo as $d5vlZ$useMemo, useCallback as $d5vlZ$useCallback, useRef as $d5vlZ$useRef, useEffect as $d5vlZ$useEffect} from \"react\";\nimport {useCollection as $d5vlZ$useCollection} from \"@react-stately/collections\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\nfunction $e72dd72e1c76a225$export$2f645645f7bca764(props) {\n let { filter: filter, layoutDelegate: layoutDelegate } = props;\n let selectionState = (0, $d5vlZ$useMultipleSelectionState)(props);\n let disabledKeys = (0, $d5vlZ$useMemo)(()=>props.disabledKeys ? new Set(props.disabledKeys) : new Set(), [\n props.disabledKeys\n ]);\n let factory = (0, $d5vlZ$useCallback)((nodes)=>filter ? new (0, $a02d57049d202695$export$d085fb9e920b5ca7)(filter(nodes)) : new (0, $a02d57049d202695$export$d085fb9e920b5ca7)(nodes), [\n filter\n ]);\n let context = (0, $d5vlZ$useMemo)(()=>({\n suppressTextValueWarning: props.suppressTextValueWarning\n }), [\n props.suppressTextValueWarning\n ]);\n let collection = (0, $d5vlZ$useCollection)(props, factory, context);\n let selectionManager = (0, $d5vlZ$useMemo)(()=>new (0, $d5vlZ$SelectionManager)(collection, selectionState, {\n layoutDelegate: layoutDelegate\n }), [\n collection,\n selectionState,\n layoutDelegate\n ]);\n $e72dd72e1c76a225$var$useFocusedKeyReset(collection, selectionManager);\n return {\n collection: collection,\n disabledKeys: disabledKeys,\n selectionManager: selectionManager\n };\n}\nfunction $e72dd72e1c76a225$export$ba9d38c0f1bf2b36(state, filterFn) {\n let collection = (0, $d5vlZ$useMemo)(()=>filterFn ? state.collection.filter(filterFn) : state.collection, [\n state.collection,\n filterFn\n ]);\n let selectionManager = state.selectionManager.withCollection(collection);\n $e72dd72e1c76a225$var$useFocusedKeyReset(collection, selectionManager);\n return {\n collection: collection,\n selectionManager: selectionManager,\n disabledKeys: state.disabledKeys\n };\n}\nfunction $e72dd72e1c76a225$var$useFocusedKeyReset(collection, selectionManager) {\n // Reset focused key if that item is deleted from the collection.\n const cachedCollection = (0, $d5vlZ$useRef)(null);\n (0, $d5vlZ$useEffect)(()=>{\n if (selectionManager.focusedKey != null && !collection.getItem(selectionManager.focusedKey) && cachedCollection.current) {\n const startItem = cachedCollection.current.getItem(selectionManager.focusedKey);\n const cachedItemNodes = [\n ...cachedCollection.current.getKeys()\n ].map((key)=>{\n const itemNode = cachedCollection.current.getItem(key);\n return (itemNode === null || itemNode === void 0 ? void 0 : itemNode.type) === 'item' ? itemNode : null;\n }).filter((node)=>node !== null);\n const itemNodes = [\n ...collection.getKeys()\n ].map((key)=>{\n const itemNode = collection.getItem(key);\n return (itemNode === null || itemNode === void 0 ? void 0 : itemNode.type) === 'item' ? itemNode : null;\n }).filter((node)=>node !== null);\n var _cachedItemNodes_length, _itemNodes_length;\n const diff = ((_cachedItemNodes_length = cachedItemNodes === null || cachedItemNodes === void 0 ? void 0 : cachedItemNodes.length) !== null && _cachedItemNodes_length !== void 0 ? _cachedItemNodes_length : 0) - ((_itemNodes_length = itemNodes === null || itemNodes === void 0 ? void 0 : itemNodes.length) !== null && _itemNodes_length !== void 0 ? _itemNodes_length : 0);\n var _startItem_index, _startItem_index1, _itemNodes_length1;\n let index = Math.min(diff > 1 ? Math.max(((_startItem_index = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index !== void 0 ? _startItem_index : 0) - diff + 1, 0) : (_startItem_index1 = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index1 !== void 0 ? _startItem_index1 : 0, ((_itemNodes_length1 = itemNodes === null || itemNodes === void 0 ? void 0 : itemNodes.length) !== null && _itemNodes_length1 !== void 0 ? _itemNodes_length1 : 0) - 1);\n let newNode = null;\n let isReverseSearching = false;\n while(index >= 0){\n if (!selectionManager.isDisabled(itemNodes[index].key)) {\n newNode = itemNodes[index];\n break;\n }\n // Find next, not disabled item.\n if (index < itemNodes.length - 1 && !isReverseSearching) index++;\n else {\n isReverseSearching = true;\n var _startItem_index2, _startItem_index3;\n if (index > ((_startItem_index2 = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index2 !== void 0 ? _startItem_index2 : 0)) index = (_startItem_index3 = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index3 !== void 0 ? _startItem_index3 : 0;\n index--;\n }\n }\n selectionManager.setFocusedKey(newNode ? newNode.key : null);\n }\n cachedCollection.current = collection;\n }, [\n collection,\n selectionManager\n ]);\n}\n\n\nexport {$e72dd72e1c76a225$export$2f645645f7bca764 as useListState, $e72dd72e1c76a225$export$ba9d38c0f1bf2b36 as UNSTABLE_useFilteredListState};\n//# sourceMappingURL=useListState.module.js.map\n"],"names":["$a02d57049d202695$export$d085fb9e920b5ca7","key","node","_node_prevKey","_node_nextKey","_this_keyMap_get","idx","keys","nodes","visit","child","last","index","size","_last_key","$e72dd72e1c76a225$export$2f645645f7bca764","props","filter","layoutDelegate","selectionState","$d5vlZ$useMultipleSelectionState","disabledKeys","$d5vlZ$useMemo","factory","$d5vlZ$useCallback","context","collection","$d5vlZ$useCollection","selectionManager","$d5vlZ$SelectionManager","$e72dd72e1c76a225$var$useFocusedKeyReset","$e72dd72e1c76a225$export$ba9d38c0f1bf2b36","state","filterFn","cachedCollection","$d5vlZ$useRef","$d5vlZ$useEffect","startItem","cachedItemNodes","itemNode","itemNodes","_cachedItemNodes_length","_itemNodes_length","diff","_startItem_index","_startItem_index1","_itemNodes_length1","newNode","isReverseSearching","_startItem_index2","_startItem_index3"],"mappings":";;AAUI,MAAMA,EAA0C;AAAA,EAChD,EAAE,OAAO,QAAQ,IAAI;AACjB,WAAO,KAAK;AAAA,EAChB;AAAA,EACA,IAAI,OAAO;AACP,WAAO,KAAK;AAAA,EAChB;AAAA,EACA,UAAU;AACN,WAAO,KAAK,OAAO,KAAI;AAAA,EAC3B;AAAA,EACA,aAAaC,GAAK;AACd,QAAIC,IAAO,KAAK,OAAO,IAAID,CAAG;AAC9B,QAAIE;AACJ,WAAOD,MAAQC,IAAgBD,EAAK,aAAa,QAAQC,MAAkB,SAASA,IAAuB;AAAA,EAC/G;AAAA,EACA,YAAYF,GAAK;AACb,QAAIC,IAAO,KAAK,OAAO,IAAID,CAAG;AAC9B,QAAIG;AACJ,WAAOF,MAAQE,IAAgBF,EAAK,aAAa,QAAQE,MAAkB,SAASA,IAAuB;AAAA,EAC/G;AAAA,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AIA,IAAQ4B,EAAU,SAAS,KAAK,CAACQ,EAAoB,CAAApC;AAAA,aACpD;AACD,UAAAoC,IAAqB;AACrB,cAAIC,GAAmBC;AACvB,UAAItC,MAAUqC,IAA0EZ,GAAU,WAAW,QAAQY,MAAsB,SAASA,IAAoB,OAAIrC,KAASsC,IAA0Eb,GAAU,WAAW,QAAQa,MAAsB,SAASA,IAAoB,IAC/UtC;AAAA,QACJ;AAAA,MACJ;AACA,MAAAgB,EAAiB,cAAcmB,IAAUA,EAAQ,MAAM,IAAI;AAAA,IAC/D;AACA,IAAAb,EAAiB,UAAUR;AAAA,EAC/B,GAAG;AAAA,IACCA;AAAA,IACAE;AAAA,EACR,CAAK;AACL;","x_google_ignoreList":[0,1]}
@@ -4,7 +4,7 @@ import { f as ae, b as $e } from "./platform-Z5fvtFmM.es.js";
4
4
  import ye, { useState as Pe, useRef as be, useMemo as he, useEffect as W, useContext as Ee } from "react";
5
5
  import { c as K, a as oe, e as me } from "./mergeProps-CzyOU2NE.es.js";
6
6
  import { $ as Se } from "./focusWithoutScrolling-CDw3JYiq.es.js";
7
- import { e as q } from "./openLink-DT8XzqFh.es.js";
7
+ import { e as q } from "./openLink-CY66vjvW.es.js";
8
8
  import { $ as xe } from "./useGlobalListeners-BOOfV5Wh.es.js";
9
9
  import { $ as ke } from "./useSyncRef-nVBzPD3o.es.js";
10
10
  import { d as Ke, e as J } from "./useFocusVisible-BIPjFmFE.es.js";
@@ -453,4 +453,4 @@ export {
453
453
  Q as b,
454
454
  le as c
455
455
  };
456
- //# sourceMappingURL=usePress-Bxb2-xLP.es.js.map
456
+ //# sourceMappingURL=usePress-Dc6amhnJ.es.js.map