@commercetools/nimbus 0.0.0-canary-20250919133951 → 0.0.0-canary-20250919142636

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 (213) hide show
  1. package/dist/chunks/{accordion-PyQH8Q_y.cjs.js → accordion-CBQ6gjgE.cjs.js} +2 -2
  2. package/dist/chunks/{accordion-PyQH8Q_y.cjs.js.map → accordion-CBQ6gjgE.cjs.js.map} +1 -1
  3. package/dist/chunks/{accordion-DG3lUgRg.es.js → accordion-Cmj6p4fS.es.js} +2 -2
  4. package/dist/chunks/{accordion-DG3lUgRg.es.js.map → accordion-Cmj6p4fS.es.js.map} +1 -1
  5. package/dist/chunks/{alert-VGuxkbOc.es.js → alert-_J5lxtYC.es.js} +2 -2
  6. package/dist/chunks/{alert-VGuxkbOc.es.js.map → alert-_J5lxtYC.es.js.map} +1 -1
  7. package/dist/chunks/{alert-BhezYOzs.cjs.js → alert-s2jy-eis.cjs.js} +2 -2
  8. package/dist/chunks/{alert-BhezYOzs.cjs.js.map → alert-s2jy-eis.cjs.js.map} +1 -1
  9. package/dist/chunks/{button-BooV4ncX.cjs.js → button-BiXPTcDg.cjs.js} +2 -2
  10. package/dist/chunks/{button-BooV4ncX.cjs.js.map → button-BiXPTcDg.cjs.js.map} +1 -1
  11. package/dist/chunks/{button-rNwSVldt.es.js → button-CcoVCms8.es.js} +2 -2
  12. package/dist/chunks/{button-rNwSVldt.es.js.map → button-CcoVCms8.es.js.map} +1 -1
  13. package/dist/chunks/{calendar-D6NyBain.es.js → calendar-BduNPvcP.es.js} +4 -4
  14. package/dist/chunks/{calendar-D6NyBain.es.js.map → calendar-BduNPvcP.es.js.map} +1 -1
  15. package/dist/chunks/{calendar-Dyy7Fm8f.cjs.js → calendar-DmzjSbnB.cjs.js} +2 -2
  16. package/dist/chunks/{calendar-Dyy7Fm8f.cjs.js.map → calendar-DmzjSbnB.cjs.js.map} +1 -1
  17. package/dist/chunks/{checkbox-DDB06avu.cjs.js → checkbox-BNlWf_ZW.cjs.js} +2 -2
  18. package/dist/chunks/{checkbox-DDB06avu.cjs.js.map → checkbox-BNlWf_ZW.cjs.js.map} +1 -1
  19. package/dist/chunks/{checkbox-CKNIwwcB.es.js → checkbox-nVRGeWGD.es.js} +2 -2
  20. package/dist/chunks/{checkbox-CKNIwwcB.es.js.map → checkbox-nVRGeWGD.es.js.map} +1 -1
  21. package/dist/chunks/{combobox-BUIW3Acv.es.js → combobox-BvcafKEa.es.js} +5 -5
  22. package/dist/chunks/{combobox-BUIW3Acv.es.js.map → combobox-BvcafKEa.es.js.map} +1 -1
  23. package/dist/chunks/{combobox-BNYcRoYl.cjs.js → combobox-CD9N4gcm.cjs.js} +2 -2
  24. package/dist/chunks/{combobox-BNYcRoYl.cjs.js.map → combobox-CD9N4gcm.cjs.js.map} +1 -1
  25. package/dist/chunks/{data-table-fD5FYEWC.cjs.js → data-table-BfC8WPTJ.cjs.js} +2 -2
  26. package/dist/chunks/{data-table-fD5FYEWC.cjs.js.map → data-table-BfC8WPTJ.cjs.js.map} +1 -1
  27. package/dist/chunks/{data-table-WrOybKO-.es.js → data-table-DCXZgjnH.es.js} +74 -55
  28. package/dist/chunks/{data-table-WrOybKO-.es.js.map → data-table-DCXZgjnH.es.js.map} +1 -1
  29. package/dist/chunks/{date-input-lvHqn9hu.es.js → date-input-BAG-TaAM.es.js} +3 -3
  30. package/dist/chunks/{date-input-lvHqn9hu.es.js.map → date-input-BAG-TaAM.es.js.map} +1 -1
  31. package/dist/chunks/{date-input-DaemC1P1.cjs.js → date-input-DF6pHstA.cjs.js} +2 -2
  32. package/dist/chunks/{date-input-DaemC1P1.cjs.js.map → date-input-DF6pHstA.cjs.js.map} +1 -1
  33. package/dist/chunks/{date-picker-Bqf7Y-W-.cjs.js → date-picker-BWAP9E7O.cjs.js} +2 -2
  34. package/dist/chunks/{date-picker-Bqf7Y-W-.cjs.js.map → date-picker-BWAP9E7O.cjs.js.map} +1 -1
  35. package/dist/chunks/{date-picker-BClkWxBN.es.js → date-picker-DVKK_cnm.es.js} +7 -7
  36. package/dist/chunks/{date-picker-BClkWxBN.es.js.map → date-picker-DVKK_cnm.es.js.map} +1 -1
  37. package/dist/chunks/{date-range-picker-DMgDuWt8.es.js → date-range-picker-BROxTGeu.es.js} +7 -7
  38. package/dist/chunks/{date-range-picker-DMgDuWt8.es.js.map → date-range-picker-BROxTGeu.es.js.map} +1 -1
  39. package/dist/chunks/{date-range-picker-DHnuq-hT.cjs.js → date-range-picker-DJKewEE_.cjs.js} +2 -2
  40. package/dist/chunks/{date-range-picker-DHnuq-hT.cjs.js.map → date-range-picker-DJKewEE_.cjs.js.map} +1 -1
  41. package/dist/chunks/{extractStyleProps-tYFaIfUG.es.js → extractStyleProps-BBE3vyqu.es.js} +2 -2
  42. package/dist/chunks/{extractStyleProps-tYFaIfUG.es.js.map → extractStyleProps-BBE3vyqu.es.js.map} +1 -1
  43. package/dist/chunks/{extractStyleProps-CDKV7i5o.cjs.js → extractStyleProps-BrX35Q5X.cjs.js} +2 -2
  44. package/dist/chunks/{extractStyleProps-CDKV7i5o.cjs.js.map → extractStyleProps-BrX35Q5X.cjs.js.map} +1 -1
  45. package/dist/chunks/{form-field-CkKl1C4M.es.js → form-field-BACRQXge.es.js} +2 -2
  46. package/dist/chunks/{form-field-CkKl1C4M.es.js.map → form-field-BACRQXge.es.js.map} +1 -1
  47. package/dist/chunks/{form-field-DMiHuyrx.cjs.js → form-field-BnQmccqZ.cjs.js} +2 -2
  48. package/dist/chunks/{form-field-DMiHuyrx.cjs.js.map → form-field-BnQmccqZ.cjs.js.map} +1 -1
  49. package/dist/chunks/{icon-button-CFLScvMi.cjs.js → icon-button-Cri9Y6st.cjs.js} +2 -2
  50. package/dist/chunks/{icon-button-CFLScvMi.cjs.js.map → icon-button-Cri9Y6st.cjs.js.map} +1 -1
  51. package/dist/chunks/{icon-button-BucXZ7sA.es.js → icon-button-Dbzy90zM.es.js} +2 -2
  52. package/dist/chunks/{icon-button-BucXZ7sA.es.js.map → icon-button-Dbzy90zM.es.js.map} +1 -1
  53. package/dist/chunks/{icon-toggle-button-DJsMgc_N.cjs.js → icon-toggle-button-BrQ7-W9k.cjs.js} +2 -2
  54. package/dist/chunks/{icon-toggle-button-DJsMgc_N.cjs.js.map → icon-toggle-button-BrQ7-W9k.cjs.js.map} +1 -1
  55. package/dist/chunks/{icon-toggle-button-CHJioicU.es.js → icon-toggle-button-C_GGFhZG.es.js} +2 -2
  56. package/dist/chunks/{icon-toggle-button-CHJioicU.es.js.map → icon-toggle-button-C_GGFhZG.es.js.map} +1 -1
  57. package/dist/chunks/{index-QBeUpHcK.cjs.js → index-BRX79jUU.cjs.js} +3 -3
  58. package/dist/chunks/{index-QBeUpHcK.cjs.js.map → index-BRX79jUU.cjs.js.map} +1 -1
  59. package/dist/chunks/{index-B68rhcD_.es.js → index-knmonT53.es.js} +193 -131
  60. package/dist/chunks/index-knmonT53.es.js.map +1 -0
  61. package/dist/chunks/{menu-CQYhHGbS.cjs.js → menu-Cm1kptgz.cjs.js} +2 -2
  62. package/dist/chunks/{menu-CQYhHGbS.cjs.js.map → menu-Cm1kptgz.cjs.js.map} +1 -1
  63. package/dist/chunks/{menu-tco1KyAc.es.js → menu-D7lUE-mD.es.js} +3 -3
  64. package/dist/chunks/{menu-tco1KyAc.es.js.map → menu-D7lUE-mD.es.js.map} +1 -1
  65. package/dist/chunks/{money-input-CdP3v6p6.cjs.js → money-input-CHMrHGxy.cjs.js} +2 -2
  66. package/dist/chunks/{money-input-CdP3v6p6.cjs.js.map → money-input-CHMrHGxy.cjs.js.map} +1 -1
  67. package/dist/chunks/{money-input-Cvmv4t9C.es.js → money-input-jp5qrrBP.es.js} +4 -4
  68. package/dist/chunks/{money-input-Cvmv4t9C.es.js.map → money-input-jp5qrrBP.es.js.map} +1 -1
  69. package/dist/chunks/{multiline-text-input-WCmZjwVI.es.js → multiline-text-input-12OKGr7I.es.js} +2 -2
  70. package/dist/chunks/{multiline-text-input-WCmZjwVI.es.js.map → multiline-text-input-12OKGr7I.es.js.map} +1 -1
  71. package/dist/chunks/{multiline-text-input-XDsu-5Ir.cjs.js → multiline-text-input-kX_5xvwe.cjs.js} +2 -2
  72. package/dist/chunks/{multiline-text-input-XDsu-5Ir.cjs.js.map → multiline-text-input-kX_5xvwe.cjs.js.map} +1 -1
  73. package/dist/chunks/{nimbus-provider-DU9neylH.cjs.js → nimbus-provider-BVQkPZON.cjs.js} +2 -2
  74. package/dist/chunks/{nimbus-provider-DU9neylH.cjs.js.map → nimbus-provider-BVQkPZON.cjs.js.map} +1 -1
  75. package/dist/chunks/{nimbus-provider-DXNGbcxb.es.js → nimbus-provider-DcTIEYkh.es.js} +2 -2
  76. package/dist/chunks/{nimbus-provider-DXNGbcxb.es.js.map → nimbus-provider-DcTIEYkh.es.js.map} +1 -1
  77. package/dist/chunks/{number-input-BscqsXLr.cjs.js → number-input-B2gWendD.cjs.js} +2 -2
  78. package/dist/chunks/{number-input-BscqsXLr.cjs.js.map → number-input-B2gWendD.cjs.js.map} +1 -1
  79. package/dist/chunks/{number-input-A8V9jCrF.es.js → number-input-pkb3ZT1X.es.js} +3 -3
  80. package/dist/chunks/{number-input-A8V9jCrF.es.js.map → number-input-pkb3ZT1X.es.js.map} +1 -1
  81. package/dist/chunks/{pagination-BzLsTY48.cjs.js → pagination-BwyuOmgd.cjs.js} +2 -2
  82. package/dist/chunks/{pagination-BzLsTY48.cjs.js.map → pagination-BwyuOmgd.cjs.js.map} +1 -1
  83. package/dist/chunks/{pagination-BilPyKzE.es.js → pagination-CSJkX5zN.es.js} +4 -4
  84. package/dist/chunks/{pagination-BilPyKzE.es.js.map → pagination-CSJkX5zN.es.js.map} +1 -1
  85. package/dist/chunks/{password-input-1suWZc7f.es.js → password-input-CgiYGDA5.es.js} +3 -3
  86. package/dist/chunks/{password-input-1suWZc7f.es.js.map → password-input-CgiYGDA5.es.js.map} +1 -1
  87. package/dist/chunks/{password-input-BVDnOfvR.cjs.js → password-input-CkWpjkll.cjs.js} +2 -2
  88. package/dist/chunks/{password-input-BVDnOfvR.cjs.js.map → password-input-CkWpjkll.cjs.js.map} +1 -1
  89. package/dist/chunks/{progress-bar-EQdUUcCZ.cjs.js → progress-bar-BldQtelr.cjs.js} +2 -2
  90. package/dist/chunks/{progress-bar-EQdUUcCZ.cjs.js.map → progress-bar-BldQtelr.cjs.js.map} +1 -1
  91. package/dist/chunks/{progress-bar-D2a7ZPWi.es.js → progress-bar-eg2N9OIP.es.js} +2 -2
  92. package/dist/chunks/{progress-bar-D2a7ZPWi.es.js.map → progress-bar-eg2N9OIP.es.js.map} +1 -1
  93. package/dist/chunks/{radio-input-CpWPWVHJ.cjs.js → radio-input-CrUgd0jj.cjs.js} +2 -2
  94. package/dist/chunks/{radio-input-CpWPWVHJ.cjs.js.map → radio-input-CrUgd0jj.cjs.js.map} +1 -1
  95. package/dist/chunks/{radio-input-BgMS0ym1.es.js → radio-input-CwenaQVO.es.js} +3 -3
  96. package/dist/chunks/{radio-input-BgMS0ym1.es.js.map → radio-input-CwenaQVO.es.js.map} +1 -1
  97. package/dist/chunks/{range-calendar-jXa_w-79.cjs.js → range-calendar-DBEjSrpA.cjs.js} +2 -2
  98. package/dist/chunks/{range-calendar-jXa_w-79.cjs.js.map → range-calendar-DBEjSrpA.cjs.js.map} +1 -1
  99. package/dist/chunks/{range-calendar-_nXf-aoR.es.js → range-calendar-Dw_xQfQ4.es.js} +4 -4
  100. package/dist/chunks/{range-calendar-_nXf-aoR.es.js.map → range-calendar-Dw_xQfQ4.es.js.map} +1 -1
  101. package/dist/chunks/{rich-text-input-BaXDjgVB.es.js → rich-text-input-BrsEWszH.es.js} +7 -7
  102. package/dist/chunks/{rich-text-input-BaXDjgVB.es.js.map → rich-text-input-BrsEWszH.es.js.map} +1 -1
  103. package/dist/chunks/{rich-text-input-SCDOBJ2D.cjs.js → rich-text-input-HySXk_vP.cjs.js} +2 -2
  104. package/dist/chunks/{rich-text-input-SCDOBJ2D.cjs.js.map → rich-text-input-HySXk_vP.cjs.js.map} +1 -1
  105. package/dist/chunks/{select-Oi9NKTD2.es.js → select-BmudlOX8.es.js} +4 -4
  106. package/dist/chunks/{select-Oi9NKTD2.es.js.map → select-BmudlOX8.es.js.map} +1 -1
  107. package/dist/chunks/{select-BAV0cdM5.cjs.js → select-OMTgphdR.cjs.js} +2 -2
  108. package/dist/chunks/{select-BAV0cdM5.cjs.js.map → select-OMTgphdR.cjs.js.map} +1 -1
  109. package/dist/chunks/{separator-D3JP7dvE.es.js → separator-0JsNXE3j.es.js} +2 -2
  110. package/dist/chunks/{separator-D3JP7dvE.es.js.map → separator-0JsNXE3j.es.js.map} +1 -1
  111. package/dist/chunks/{separator-BbkhgIID.cjs.js → separator-CTjqv6NW.cjs.js} +2 -2
  112. package/dist/chunks/{separator-BbkhgIID.cjs.js.map → separator-CTjqv6NW.cjs.js.map} +1 -1
  113. package/dist/chunks/{split-button-FG4rSCzg.es.js → split-button-CYeQqQVK.es.js} +5 -5
  114. package/dist/chunks/{split-button-FG4rSCzg.es.js.map → split-button-CYeQqQVK.es.js.map} +1 -1
  115. package/dist/chunks/{split-button-D-3pT-LA.cjs.js → split-button-a39e0rrB.cjs.js} +2 -2
  116. package/dist/chunks/{split-button-D-3pT-LA.cjs.js.map → split-button-a39e0rrB.cjs.js.map} +1 -1
  117. package/dist/chunks/{switch-BjdhpPWV.cjs.js → switch-Bk7Iqwz_.cjs.js} +2 -2
  118. package/dist/chunks/{switch-BjdhpPWV.cjs.js.map → switch-Bk7Iqwz_.cjs.js.map} +1 -1
  119. package/dist/chunks/{switch-BaF0PH5z.es.js → switch-okEs4TPH.es.js} +3 -3
  120. package/dist/chunks/{switch-BaF0PH5z.es.js.map → switch-okEs4TPH.es.js.map} +1 -1
  121. package/dist/chunks/{tag-group-D6_THomO.cjs.js → tag-group-C-z2DfdF.cjs.js} +2 -2
  122. package/dist/chunks/{tag-group-D6_THomO.cjs.js.map → tag-group-C-z2DfdF.cjs.js.map} +1 -1
  123. package/dist/chunks/{tag-group-DNGTTkyq.es.js → tag-group-C_VOeYP0.es.js} +2 -2
  124. package/dist/chunks/{tag-group-DNGTTkyq.es.js.map → tag-group-C_VOeYP0.es.js.map} +1 -1
  125. package/dist/chunks/{text-input-BtBwAmoa.cjs.js → text-input-DVQ80jjQ.cjs.js} +2 -2
  126. package/dist/chunks/{text-input-BtBwAmoa.cjs.js.map → text-input-DVQ80jjQ.cjs.js.map} +1 -1
  127. package/dist/chunks/{text-input-Ciz7DJmU.es.js → text-input-DzbOzqOg.es.js} +3 -3
  128. package/dist/chunks/{text-input-Ciz7DJmU.es.js.map → text-input-DzbOzqOg.es.js.map} +1 -1
  129. package/dist/chunks/{time-input-DhNwJx5a.es.js → time-input-KFT6tdw4.es.js} +2 -2
  130. package/dist/chunks/{time-input-DhNwJx5a.es.js.map → time-input-KFT6tdw4.es.js.map} +1 -1
  131. package/dist/chunks/{time-input-DP2ci38H.cjs.js → time-input-x7u780Z-.cjs.js} +2 -2
  132. package/dist/chunks/{time-input-DP2ci38H.cjs.js.map → time-input-x7u780Z-.cjs.js.map} +1 -1
  133. package/dist/chunks/{toggle-button-B0Vq-yaq.es.js → toggle-button-BCuPLZPT.es.js} +3 -3
  134. package/dist/chunks/{toggle-button-B0Vq-yaq.es.js.map → toggle-button-BCuPLZPT.es.js.map} +1 -1
  135. package/dist/chunks/{toggle-button-D8qdeoHu.cjs.js → toggle-button-DPG7S9xz.cjs.js} +2 -2
  136. package/dist/chunks/{toggle-button-D8qdeoHu.cjs.js.map → toggle-button-DPG7S9xz.cjs.js.map} +1 -1
  137. package/dist/chunks/{toolbar-CtIrOXXC.es.js → toolbar-C0qeMXSc.es.js} +3 -3
  138. package/dist/chunks/{toolbar-CtIrOXXC.es.js.map → toolbar-C0qeMXSc.es.js.map} +1 -1
  139. package/dist/chunks/{toolbar-BfEvyuOt.cjs.js → toolbar-ClFVeKAk.cjs.js} +2 -2
  140. package/dist/chunks/{toolbar-BfEvyuOt.cjs.js.map → toolbar-ClFVeKAk.cjs.js.map} +1 -1
  141. package/dist/components/accordion.cjs +1 -1
  142. package/dist/components/accordion.es.js +1 -1
  143. package/dist/components/alert.cjs +1 -1
  144. package/dist/components/alert.es.js +1 -1
  145. package/dist/components/button.cjs +1 -1
  146. package/dist/components/button.es.js +1 -1
  147. package/dist/components/calendar.cjs +1 -1
  148. package/dist/components/calendar.es.js +1 -1
  149. package/dist/components/checkbox.cjs +1 -1
  150. package/dist/components/checkbox.es.js +1 -1
  151. package/dist/components/combobox.cjs +1 -1
  152. package/dist/components/combobox.es.js +1 -1
  153. package/dist/components/components.cjs +1 -1
  154. package/dist/components/components.es.js +33 -33
  155. package/dist/components/data-table.cjs +1 -1
  156. package/dist/components/data-table.es.js +1 -1
  157. package/dist/components/date-input.cjs +1 -1
  158. package/dist/components/date-input.es.js +1 -1
  159. package/dist/components/date-picker.cjs +1 -1
  160. package/dist/components/date-picker.es.js +1 -1
  161. package/dist/components/date-range-picker.cjs +1 -1
  162. package/dist/components/date-range-picker.es.js +1 -1
  163. package/dist/components/form-field.cjs +1 -1
  164. package/dist/components/form-field.es.js +1 -1
  165. package/dist/components/icon-button.cjs +1 -1
  166. package/dist/components/icon-button.es.js +1 -1
  167. package/dist/components/icon-toggle-button.cjs +1 -1
  168. package/dist/components/icon-toggle-button.es.js +1 -1
  169. package/dist/components/money-input.cjs +1 -1
  170. package/dist/components/money-input.es.js +1 -1
  171. package/dist/components/multiline-text-input.cjs +1 -1
  172. package/dist/components/multiline-text-input.es.js +1 -1
  173. package/dist/components/nimbus-provider.cjs +1 -1
  174. package/dist/components/nimbus-provider.es.js +1 -1
  175. package/dist/components/number-input.cjs +1 -1
  176. package/dist/components/number-input.es.js +1 -1
  177. package/dist/components/pagination.cjs +1 -1
  178. package/dist/components/pagination.es.js +1 -1
  179. package/dist/components/password-input.cjs +1 -1
  180. package/dist/components/password-input.es.js +1 -1
  181. package/dist/components/progress-bar.cjs +1 -1
  182. package/dist/components/progress-bar.es.js +1 -1
  183. package/dist/components/radio-input.cjs +1 -1
  184. package/dist/components/radio-input.es.js +1 -1
  185. package/dist/components/range-calendar.cjs +1 -1
  186. package/dist/components/range-calendar.es.js +1 -1
  187. package/dist/components/rich-text-input.cjs +1 -1
  188. package/dist/components/rich-text-input.es.js +1 -1
  189. package/dist/components/select.cjs +1 -1
  190. package/dist/components/select.es.js +1 -1
  191. package/dist/components/separator.cjs +1 -1
  192. package/dist/components/separator.es.js +1 -1
  193. package/dist/components/split-button.cjs +1 -1
  194. package/dist/components/split-button.es.js +1 -1
  195. package/dist/components/switch.cjs +1 -1
  196. package/dist/components/switch.es.js +1 -1
  197. package/dist/components/tag-group.cjs +1 -1
  198. package/dist/components/tag-group.es.js +1 -1
  199. package/dist/components/text-input.cjs +1 -1
  200. package/dist/components/text-input.es.js +1 -1
  201. package/dist/components/time-input.cjs +1 -1
  202. package/dist/components/time-input.es.js +1 -1
  203. package/dist/components/toggle-button.cjs +1 -1
  204. package/dist/components/toggle-button.es.js +1 -1
  205. package/dist/components/toolbar.cjs +1 -1
  206. package/dist/components/toolbar.es.js +1 -1
  207. package/dist/components.d.ts +1 -1
  208. package/dist/data-table.d.ts +1 -1
  209. package/dist/index.cjs +1 -1
  210. package/dist/index.d.ts +1 -1
  211. package/dist/index.es.js +36 -36
  212. package/package.json +5 -5
  213. package/dist/chunks/index-B68rhcD_.es.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"switch-BjdhpPWV.cjs.js","sources":["../../../../node_modules/.pnpm/@react-aria+switch@3.7.7_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/switch/dist/useSwitch.mjs","../../src/components/switch/switch.slots.tsx","../../src/components/switch/switch.tsx"],"sourcesContent":["import {useToggle as $ifSyJ$useToggle} from \"@react-aria/toggle\";\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 */ \nfunction $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isPressed: isPressed, isDisabled: isDisabled, isReadOnly: isReadOnly } = (0, $ifSyJ$useToggle)(props, state, ref);\n return {\n labelProps: labelProps,\n inputProps: {\n ...inputProps,\n role: 'switch',\n checked: isSelected\n },\n isSelected: isSelected,\n isPressed: isPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly\n };\n}\n\n\nexport {$b418ec0c85c52f27$export$d853f7095ae95f88 as useSwitch};\n//# sourceMappingURL=useSwitch.module.js.map\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { switchSlotRecipe } from \"./switch.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"switch\",\n});\n\nexport interface SwitchRootProps\n extends HTMLChakraProps<\n \"label\",\n RecipeVariantProps<typeof switchSlotRecipe>\n > {}\nexport const SwitchRootSlot = withProvider<HTMLLabelElement, SwitchRootProps>(\n \"label\",\n \"root\"\n);\n\ninterface SwitchLabelProps extends HTMLChakraProps<\"span\"> {}\nexport const SwitchLabelSlot = withContext<HTMLSpanElement, SwitchLabelProps>(\n \"span\",\n \"label\"\n);\n\ninterface SwitchTrackProps extends HTMLChakraProps<\"span\"> {}\nexport const SwitchTrackSlot = withContext<HTMLSpanElement, SwitchTrackProps>(\n \"span\",\n \"track\"\n);\n\ninterface SwitchThumbProps extends HTMLChakraProps<\"span\"> {}\nexport const SwitchThumbSlot = withContext<HTMLSpanElement, SwitchThumbProps>(\n \"span\",\n \"thumb\"\n);\n","import { useRef } from \"react\";\nimport { useToggleState } from \"react-stately\";\nimport { useFocusRing, useSwitch, useObjectRef, mergeProps } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { VisuallyHidden } from \"@/components\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport type { SwitchProps } from \"./switch.types\";\nimport {\n SwitchRootSlot,\n SwitchTrackSlot,\n SwitchThumbSlot,\n SwitchLabelSlot,\n} from \"./switch.slots\";\nimport { switchSlotRecipe } from \"./switch.recipe\";\n\n/**\n * # Switch\n *\n * A clear, visual toggle, allowing users to activate or deactivate a setting quickly.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/switch}\n */\nexport const Switch = ({ ref: externalRef, ...props }: SwitchProps) => {\n const localRef = useRef<HTMLInputElement>(null);\n const ref = useObjectRef(\n externalRef ? mergeRefs(localRef, externalRef) : localRef\n );\n\n const recipe = useSlotRecipe({ recipe: switchSlotRecipe });\n\n const [recipeProps, recipeLessProps] = recipe.splitVariantProps(props);\n const [styleProps, functionalProps] = extractStyleProps(recipeLessProps);\n\n const state = useToggleState(props);\n const { inputProps } = useSwitch(functionalProps, state, ref);\n\n const { isFocused, focusProps } = useFocusRing();\n\n const stateProps = {\n \"data-selected\": state.isSelected,\n \"data-invalid\": props.isInvalid,\n \"data-disabled\": props.isDisabled,\n \"data-focus\": isFocused || undefined,\n };\n return (\n <SwitchRootSlot\n data-slot=\"root\"\n {...recipeProps}\n {...stateProps}\n {...styleProps}\n >\n <SwitchTrackSlot data-slot=\"track\" {...stateProps}>\n <SwitchThumbSlot data-slot=\"thumb\" {...stateProps} />\n <VisuallyHidden as=\"span\">\n <input\n data-slot=\"input\"\n {...mergeProps(inputProps, focusProps)}\n ref={ref}\n />\n </VisuallyHidden>\n </SwitchTrackSlot>\n\n {props.children && (\n <SwitchLabelSlot data-slot=\"label\" {...stateProps}>\n {props.children}\n </SwitchLabelSlot>\n )}\n </SwitchRootSlot>\n );\n};\nSwitch.displayName = \"Switch\";\n"],"names":["$b418ec0c85c52f27$export$d853f7095ae95f88","props","state","ref","labelProps","inputProps","isSelected","isPressed","isDisabled","isReadOnly","$ifSyJ$useToggle","withProvider","withContext","createSlotRecipeContext","SwitchRootSlot","SwitchLabelSlot","SwitchTrackSlot","SwitchThumbSlot","Switch","externalRef","localRef","useRef","useObjectRef","mergeRefs","recipe","useSlotRecipe","switchSlotRecipe","recipeProps","recipeLessProps","styleProps","functionalProps","extractStyleProps","useToggleState","useSwitch","isFocused","focusProps","useFocusRing","stateProps","jsxs","jsx","VisuallyHidden","mergeProps"],"mappings":"6eAaA,SAASA,EAA0CC,EAAOC,EAAOC,EAAK,CAClE,GAAI,CAAE,WAAYC,EAAY,WAAYC,EAAY,WAAYC,EAAY,UAAWC,EAAW,WAAYC,EAAY,WAAYC,CAAU,EAASC,EAAAA,0CAAkBT,EAAOC,EAAOC,CAAG,EAC9L,MAAO,CACH,WAAYC,EACZ,WAAY,CACR,GAAGC,EACH,KAAM,SACN,QAASC,CACrB,EACQ,WAAYA,EACZ,UAAWC,EACX,WAAYC,EACZ,WAAYC,CACpB,CACA,CCnBA,KAAM,CAAE,aAAAE,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,QACP,CAAC,EAOYC,EAAiBH,EAC5B,QACA,MACF,EAGaI,EAAkBH,EAC7B,OACA,OACF,EAGaI,EAAkBJ,EAC7B,OACA,OACF,EAGaK,EAAkBL,EAC7B,OACA,OACF,ECfaM,EAAS,CAAC,CAAE,IAAKC,EAAa,GAAGlB,KAAyB,CACrE,MAAMmB,EAAWC,EAAAA,OAAyB,IAAI,EACxClB,EAAMmB,EAAAA,0CACVH,EAAcI,EAAAA,UAAUH,EAAUD,CAAW,EAAIC,CAAA,EAG7CI,EAASC,EAAAA,cAAc,CAAE,OAAQC,EAAAA,iBAAkB,EAEnD,CAACC,EAAaC,CAAe,EAAIJ,EAAO,kBAAkBvB,CAAK,EAC/D,CAAC4B,EAAYC,CAAe,EAAIC,EAAAA,kBAAkBH,CAAe,EAEjE1B,EAAQ8B,EAAAA,0CAAe/B,CAAK,EAC5B,CAAE,WAAAI,CAAA,EAAe4B,EAAUH,EAAiB5B,EAAOC,CAAG,EAEtD,CAAE,UAAA+B,EAAW,WAAAC,CAAA,EAAeC,4CAAA,EAE5BC,EAAa,CACjB,gBAAiBnC,EAAM,WACvB,eAAgBD,EAAM,UACtB,gBAAiBA,EAAM,WACvB,aAAciC,GAAa,MAAA,EAE7B,OACEI,EAAAA,KAACxB,EAAA,CACC,YAAU,OACT,GAAGa,EACH,GAAGU,EACH,GAAGR,EAEJ,SAAA,CAAAS,EAAAA,KAACtB,EAAA,CAAgB,YAAU,QAAS,GAAGqB,EACrC,SAAA,CAAAE,EAAAA,IAACtB,EAAA,CAAgB,YAAU,QAAS,GAAGoB,CAAA,CAAY,EACnDE,EAAAA,IAACC,EAAAA,eAAA,CAAe,GAAG,OACjB,SAAAD,EAAAA,IAAC,QAAA,CACC,YAAU,QACT,GAAGE,EAAAA,0CAAWpC,EAAY8B,CAAU,EACrC,IAAAhC,CAAA,CAAA,CACF,CACF,CAAA,EACF,EAECF,EAAM,UACLsC,MAACxB,EAAA,CAAgB,YAAU,QAAS,GAAGsB,EACpC,SAAApC,EAAM,QAAA,CACT,CAAA,CAAA,CAAA,CAIR,EACAiB,EAAO,YAAc","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"switch-Bk7Iqwz_.cjs.js","sources":["../../../../node_modules/.pnpm/@react-aria+switch@3.7.7_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/switch/dist/useSwitch.mjs","../../src/components/switch/switch.slots.tsx","../../src/components/switch/switch.tsx"],"sourcesContent":["import {useToggle as $ifSyJ$useToggle} from \"@react-aria/toggle\";\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 */ \nfunction $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isPressed: isPressed, isDisabled: isDisabled, isReadOnly: isReadOnly } = (0, $ifSyJ$useToggle)(props, state, ref);\n return {\n labelProps: labelProps,\n inputProps: {\n ...inputProps,\n role: 'switch',\n checked: isSelected\n },\n isSelected: isSelected,\n isPressed: isPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly\n };\n}\n\n\nexport {$b418ec0c85c52f27$export$d853f7095ae95f88 as useSwitch};\n//# sourceMappingURL=useSwitch.module.js.map\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { switchSlotRecipe } from \"./switch.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"switch\",\n});\n\nexport interface SwitchRootProps\n extends HTMLChakraProps<\n \"label\",\n RecipeVariantProps<typeof switchSlotRecipe>\n > {}\nexport const SwitchRootSlot = withProvider<HTMLLabelElement, SwitchRootProps>(\n \"label\",\n \"root\"\n);\n\ninterface SwitchLabelProps extends HTMLChakraProps<\"span\"> {}\nexport const SwitchLabelSlot = withContext<HTMLSpanElement, SwitchLabelProps>(\n \"span\",\n \"label\"\n);\n\ninterface SwitchTrackProps extends HTMLChakraProps<\"span\"> {}\nexport const SwitchTrackSlot = withContext<HTMLSpanElement, SwitchTrackProps>(\n \"span\",\n \"track\"\n);\n\ninterface SwitchThumbProps extends HTMLChakraProps<\"span\"> {}\nexport const SwitchThumbSlot = withContext<HTMLSpanElement, SwitchThumbProps>(\n \"span\",\n \"thumb\"\n);\n","import { useRef } from \"react\";\nimport { useToggleState } from \"react-stately\";\nimport { useFocusRing, useSwitch, useObjectRef, mergeProps } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { VisuallyHidden } from \"@/components\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport type { SwitchProps } from \"./switch.types\";\nimport {\n SwitchRootSlot,\n SwitchTrackSlot,\n SwitchThumbSlot,\n SwitchLabelSlot,\n} from \"./switch.slots\";\nimport { switchSlotRecipe } from \"./switch.recipe\";\n\n/**\n * # Switch\n *\n * A clear, visual toggle, allowing users to activate or deactivate a setting quickly.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/switch}\n */\nexport const Switch = ({ ref: externalRef, ...props }: SwitchProps) => {\n const localRef = useRef<HTMLInputElement>(null);\n const ref = useObjectRef(\n externalRef ? mergeRefs(localRef, externalRef) : localRef\n );\n\n const recipe = useSlotRecipe({ recipe: switchSlotRecipe });\n\n const [recipeProps, recipeLessProps] = recipe.splitVariantProps(props);\n const [styleProps, functionalProps] = extractStyleProps(recipeLessProps);\n\n const state = useToggleState(props);\n const { inputProps } = useSwitch(functionalProps, state, ref);\n\n const { isFocused, focusProps } = useFocusRing();\n\n const stateProps = {\n \"data-selected\": state.isSelected,\n \"data-invalid\": props.isInvalid,\n \"data-disabled\": props.isDisabled,\n \"data-focus\": isFocused || undefined,\n };\n return (\n <SwitchRootSlot\n data-slot=\"root\"\n {...recipeProps}\n {...stateProps}\n {...styleProps}\n >\n <SwitchTrackSlot data-slot=\"track\" {...stateProps}>\n <SwitchThumbSlot data-slot=\"thumb\" {...stateProps} />\n <VisuallyHidden as=\"span\">\n <input\n data-slot=\"input\"\n {...mergeProps(inputProps, focusProps)}\n ref={ref}\n />\n </VisuallyHidden>\n </SwitchTrackSlot>\n\n {props.children && (\n <SwitchLabelSlot data-slot=\"label\" {...stateProps}>\n {props.children}\n </SwitchLabelSlot>\n )}\n </SwitchRootSlot>\n );\n};\nSwitch.displayName = \"Switch\";\n"],"names":["$b418ec0c85c52f27$export$d853f7095ae95f88","props","state","ref","labelProps","inputProps","isSelected","isPressed","isDisabled","isReadOnly","$ifSyJ$useToggle","withProvider","withContext","createSlotRecipeContext","SwitchRootSlot","SwitchLabelSlot","SwitchTrackSlot","SwitchThumbSlot","Switch","externalRef","localRef","useRef","useObjectRef","mergeRefs","recipe","useSlotRecipe","switchSlotRecipe","recipeProps","recipeLessProps","styleProps","functionalProps","extractStyleProps","useToggleState","useSwitch","isFocused","focusProps","useFocusRing","stateProps","jsxs","jsx","VisuallyHidden","mergeProps"],"mappings":"6eAaA,SAASA,EAA0CC,EAAOC,EAAOC,EAAK,CAClE,GAAI,CAAE,WAAYC,EAAY,WAAYC,EAAY,WAAYC,EAAY,UAAWC,EAAW,WAAYC,EAAY,WAAYC,CAAU,EAASC,EAAAA,0CAAkBT,EAAOC,EAAOC,CAAG,EAC9L,MAAO,CACH,WAAYC,EACZ,WAAY,CACR,GAAGC,EACH,KAAM,SACN,QAASC,CACrB,EACQ,WAAYA,EACZ,UAAWC,EACX,WAAYC,EACZ,WAAYC,CACpB,CACA,CCnBA,KAAM,CAAE,aAAAE,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,QACP,CAAC,EAOYC,EAAiBH,EAC5B,QACA,MACF,EAGaI,EAAkBH,EAC7B,OACA,OACF,EAGaI,EAAkBJ,EAC7B,OACA,OACF,EAGaK,EAAkBL,EAC7B,OACA,OACF,ECfaM,EAAS,CAAC,CAAE,IAAKC,EAAa,GAAGlB,KAAyB,CACrE,MAAMmB,EAAWC,EAAAA,OAAyB,IAAI,EACxClB,EAAMmB,EAAAA,0CACVH,EAAcI,EAAAA,UAAUH,EAAUD,CAAW,EAAIC,CAAA,EAG7CI,EAASC,EAAAA,cAAc,CAAE,OAAQC,EAAAA,iBAAkB,EAEnD,CAACC,EAAaC,CAAe,EAAIJ,EAAO,kBAAkBvB,CAAK,EAC/D,CAAC4B,EAAYC,CAAe,EAAIC,EAAAA,kBAAkBH,CAAe,EAEjE1B,EAAQ8B,EAAAA,0CAAe/B,CAAK,EAC5B,CAAE,WAAAI,CAAA,EAAe4B,EAAUH,EAAiB5B,EAAOC,CAAG,EAEtD,CAAE,UAAA+B,EAAW,WAAAC,CAAA,EAAeC,4CAAA,EAE5BC,EAAa,CACjB,gBAAiBnC,EAAM,WACvB,eAAgBD,EAAM,UACtB,gBAAiBA,EAAM,WACvB,aAAciC,GAAa,MAAA,EAE7B,OACEI,EAAAA,KAACxB,EAAA,CACC,YAAU,OACT,GAAGa,EACH,GAAGU,EACH,GAAGR,EAEJ,SAAA,CAAAS,EAAAA,KAACtB,EAAA,CAAgB,YAAU,QAAS,GAAGqB,EACrC,SAAA,CAAAE,EAAAA,IAACtB,EAAA,CAAgB,YAAU,QAAS,GAAGoB,CAAA,CAAY,EACnDE,EAAAA,IAACC,EAAAA,eAAA,CAAe,GAAG,OACjB,SAAAD,EAAAA,IAAC,QAAA,CACC,YAAU,QACT,GAAGE,EAAAA,0CAAWpC,EAAY8B,CAAU,EACrC,IAAAhC,CAAA,CAAA,CACF,CACF,CAAA,EACF,EAECF,EAAM,UACLsC,MAACxB,EAAA,CAAgB,YAAU,QAAS,GAAGsB,EACpC,SAAApC,EAAM,QAAA,CACT,CAAA,CAAA,CAAA,CAIR,EACAiB,EAAO,YAAc","x_google_ignoreList":[0]}
@@ -3,8 +3,8 @@ import { useRef as u } from "react";
3
3
  import { mergeRefs as P } from "@chakra-ui/react";
4
4
  import { createSlotRecipeContext as S, useSlotRecipe as w } from "@chakra-ui/react/styled-system";
5
5
  import { V as x } from "./visually-hidden-BluyWhUI.es.js";
6
- import { e as R } from "./extractStyleProps-tYFaIfUG.es.js";
7
- import { c as y } from "./index-B68rhcD_.es.js";
6
+ import { e as R } from "./extractStyleProps-BBE3vyqu.es.js";
7
+ import { c as y } from "./index-knmonT53.es.js";
8
8
  import { $ as k } from "./useObjectRef-CaJ5pgjX.es.js";
9
9
  import { $ as v } from "./mergeProps-B_9syxhT.es.js";
10
10
  import { $ as D } from "./useToggleState-Uh0wTgdI.es.js";
@@ -76,4 +76,4 @@ H.displayName = "Switch";
76
76
  export {
77
77
  H as S
78
78
  };
79
- //# sourceMappingURL=switch-BaF0PH5z.es.js.map
79
+ //# sourceMappingURL=switch-okEs4TPH.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"switch-BaF0PH5z.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+switch@3.7.7_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/switch/dist/useSwitch.mjs","../../src/components/switch/switch.slots.tsx","../../src/components/switch/switch.tsx"],"sourcesContent":["import {useToggle as $ifSyJ$useToggle} from \"@react-aria/toggle\";\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 */ \nfunction $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isPressed: isPressed, isDisabled: isDisabled, isReadOnly: isReadOnly } = (0, $ifSyJ$useToggle)(props, state, ref);\n return {\n labelProps: labelProps,\n inputProps: {\n ...inputProps,\n role: 'switch',\n checked: isSelected\n },\n isSelected: isSelected,\n isPressed: isPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly\n };\n}\n\n\nexport {$b418ec0c85c52f27$export$d853f7095ae95f88 as useSwitch};\n//# sourceMappingURL=useSwitch.module.js.map\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { switchSlotRecipe } from \"./switch.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"switch\",\n});\n\nexport interface SwitchRootProps\n extends HTMLChakraProps<\n \"label\",\n RecipeVariantProps<typeof switchSlotRecipe>\n > {}\nexport const SwitchRootSlot = withProvider<HTMLLabelElement, SwitchRootProps>(\n \"label\",\n \"root\"\n);\n\ninterface SwitchLabelProps extends HTMLChakraProps<\"span\"> {}\nexport const SwitchLabelSlot = withContext<HTMLSpanElement, SwitchLabelProps>(\n \"span\",\n \"label\"\n);\n\ninterface SwitchTrackProps extends HTMLChakraProps<\"span\"> {}\nexport const SwitchTrackSlot = withContext<HTMLSpanElement, SwitchTrackProps>(\n \"span\",\n \"track\"\n);\n\ninterface SwitchThumbProps extends HTMLChakraProps<\"span\"> {}\nexport const SwitchThumbSlot = withContext<HTMLSpanElement, SwitchThumbProps>(\n \"span\",\n \"thumb\"\n);\n","import { useRef } from \"react\";\nimport { useToggleState } from \"react-stately\";\nimport { useFocusRing, useSwitch, useObjectRef, mergeProps } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { VisuallyHidden } from \"@/components\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport type { SwitchProps } from \"./switch.types\";\nimport {\n SwitchRootSlot,\n SwitchTrackSlot,\n SwitchThumbSlot,\n SwitchLabelSlot,\n} from \"./switch.slots\";\nimport { switchSlotRecipe } from \"./switch.recipe\";\n\n/**\n * # Switch\n *\n * A clear, visual toggle, allowing users to activate or deactivate a setting quickly.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/switch}\n */\nexport const Switch = ({ ref: externalRef, ...props }: SwitchProps) => {\n const localRef = useRef<HTMLInputElement>(null);\n const ref = useObjectRef(\n externalRef ? mergeRefs(localRef, externalRef) : localRef\n );\n\n const recipe = useSlotRecipe({ recipe: switchSlotRecipe });\n\n const [recipeProps, recipeLessProps] = recipe.splitVariantProps(props);\n const [styleProps, functionalProps] = extractStyleProps(recipeLessProps);\n\n const state = useToggleState(props);\n const { inputProps } = useSwitch(functionalProps, state, ref);\n\n const { isFocused, focusProps } = useFocusRing();\n\n const stateProps = {\n \"data-selected\": state.isSelected,\n \"data-invalid\": props.isInvalid,\n \"data-disabled\": props.isDisabled,\n \"data-focus\": isFocused || undefined,\n };\n return (\n <SwitchRootSlot\n data-slot=\"root\"\n {...recipeProps}\n {...stateProps}\n {...styleProps}\n >\n <SwitchTrackSlot data-slot=\"track\" {...stateProps}>\n <SwitchThumbSlot data-slot=\"thumb\" {...stateProps} />\n <VisuallyHidden as=\"span\">\n <input\n data-slot=\"input\"\n {...mergeProps(inputProps, focusProps)}\n ref={ref}\n />\n </VisuallyHidden>\n </SwitchTrackSlot>\n\n {props.children && (\n <SwitchLabelSlot data-slot=\"label\" {...stateProps}>\n {props.children}\n </SwitchLabelSlot>\n )}\n </SwitchRootSlot>\n );\n};\nSwitch.displayName = \"Switch\";\n"],"names":["$b418ec0c85c52f27$export$d853f7095ae95f88","props","state","ref","labelProps","inputProps","isSelected","isPressed","isDisabled","isReadOnly","$ifSyJ$useToggle","withProvider","withContext","createSlotRecipeContext","SwitchRootSlot","SwitchLabelSlot","SwitchTrackSlot","SwitchThumbSlot","Switch","externalRef","localRef","useRef","useObjectRef","mergeRefs","recipe","useSlotRecipe","switchSlotRecipe","recipeProps","recipeLessProps","styleProps","functionalProps","extractStyleProps","useToggleState","useSwitch","isFocused","focusProps","useFocusRing","stateProps","jsxs","jsx","VisuallyHidden","mergeProps"],"mappings":";;;;;;;;;;;;AAaA,SAASA,EAA0CC,GAAOC,GAAOC,GAAK;AAClE,MAAI,EAAE,YAAYC,GAAY,YAAYC,GAAY,YAAYC,GAAY,WAAWC,GAAW,YAAYC,GAAY,YAAYC,EAAU,IAASC,EAAkBT,GAAOC,GAAOC,CAAG;AAC9L,SAAO;AAAA,IACH,YAAYC;AAAA,IACZ,YAAY;AAAA,MACR,GAAGC;AAAA,MACH,MAAM;AAAA,MACN,SAASC;AAAA,IACrB;AAAA,IACQ,YAAYA;AAAA,IACZ,WAAWC;AAAA,IACX,YAAYC;AAAA,IACZ,YAAYC;AAAA,EACpB;AACA;ACnBA,MAAM,EAAE,cAAAE,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAOYC,IAAiB,gBAAAH;AAAA,EAC5B;AAAA,EACA;AACF,GAGaI,IAAkB,gBAAAH;AAAA,EAC7B;AAAA,EACA;AACF,GAGaI,IAAkB,gBAAAJ;AAAA,EAC7B;AAAA,EACA;AACF,GAGaK,IAAkB,gBAAAL;AAAA,EAC7B;AAAA,EACA;AACF,GCfaM,IAAS,CAAC,EAAE,KAAKC,GAAa,GAAGlB,QAAyB;AACrE,QAAMmB,IAAWC,EAAyB,IAAI,GACxClB,IAAMmB;AAAAA,IACVH,IAAcI,EAAUH,GAAUD,CAAW,IAAIC;AAAA,EAAA,GAG7CI,IAASC,EAAc,EAAE,QAAQC,GAAkB,GAEnD,CAACC,GAAaC,CAAe,IAAIJ,EAAO,kBAAkBvB,CAAK,GAC/D,CAAC4B,GAAYC,CAAe,IAAIC,EAAkBH,CAAe,GAEjE1B,IAAQ8B,EAAe/B,CAAK,GAC5B,EAAE,YAAAI,EAAA,IAAe4B,EAAUH,GAAiB5B,GAAOC,CAAG,GAEtD,EAAE,WAAA+B,GAAW,YAAAC,EAAA,IAAeC,EAAA,GAE5BC,IAAa;AAAA,IACjB,iBAAiBnC,EAAM;AAAA,IACvB,gBAAgBD,EAAM;AAAA,IACtB,iBAAiBA,EAAM;AAAA,IACvB,cAAciC,KAAa;AAAA,EAAA;AAE7B,SACE,gBAAAI;AAAA,IAACxB;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACT,GAAGa;AAAA,MACH,GAAGU;AAAA,MACH,GAAGR;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAS,EAACtB,GAAA,EAAgB,aAAU,SAAS,GAAGqB,GACrC,UAAA;AAAA,UAAA,gBAAAE,EAACtB,GAAA,EAAgB,aAAU,SAAS,GAAGoB,EAAA,CAAY;AAAA,UACnD,gBAAAE,EAACC,GAAA,EAAe,IAAG,QACjB,UAAA,gBAAAD;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,aAAU;AAAA,cACT,GAAGE,EAAWpC,GAAY8B,CAAU;AAAA,cACrC,KAAAhC;AAAA,YAAA;AAAA,UAAA,EACF,CACF;AAAA,QAAA,GACF;AAAA,QAECF,EAAM,YACL,gBAAAsC,EAACxB,GAAA,EAAgB,aAAU,SAAS,GAAGsB,GACpC,UAAApC,EAAM,SAAA,CACT;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;AACAiB,EAAO,cAAc;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"switch-okEs4TPH.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+switch@3.7.7_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@react-aria/switch/dist/useSwitch.mjs","../../src/components/switch/switch.slots.tsx","../../src/components/switch/switch.tsx"],"sourcesContent":["import {useToggle as $ifSyJ$useToggle} from \"@react-aria/toggle\";\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 */ \nfunction $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isPressed: isPressed, isDisabled: isDisabled, isReadOnly: isReadOnly } = (0, $ifSyJ$useToggle)(props, state, ref);\n return {\n labelProps: labelProps,\n inputProps: {\n ...inputProps,\n role: 'switch',\n checked: isSelected\n },\n isSelected: isSelected,\n isPressed: isPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly\n };\n}\n\n\nexport {$b418ec0c85c52f27$export$d853f7095ae95f88 as useSwitch};\n//# sourceMappingURL=useSwitch.module.js.map\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react/styled-system\";\nimport { switchSlotRecipe } from \"./switch.recipe\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"switch\",\n});\n\nexport interface SwitchRootProps\n extends HTMLChakraProps<\n \"label\",\n RecipeVariantProps<typeof switchSlotRecipe>\n > {}\nexport const SwitchRootSlot = withProvider<HTMLLabelElement, SwitchRootProps>(\n \"label\",\n \"root\"\n);\n\ninterface SwitchLabelProps extends HTMLChakraProps<\"span\"> {}\nexport const SwitchLabelSlot = withContext<HTMLSpanElement, SwitchLabelProps>(\n \"span\",\n \"label\"\n);\n\ninterface SwitchTrackProps extends HTMLChakraProps<\"span\"> {}\nexport const SwitchTrackSlot = withContext<HTMLSpanElement, SwitchTrackProps>(\n \"span\",\n \"track\"\n);\n\ninterface SwitchThumbProps extends HTMLChakraProps<\"span\"> {}\nexport const SwitchThumbSlot = withContext<HTMLSpanElement, SwitchThumbProps>(\n \"span\",\n \"thumb\"\n);\n","import { useRef } from \"react\";\nimport { useToggleState } from \"react-stately\";\nimport { useFocusRing, useSwitch, useObjectRef, mergeProps } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { VisuallyHidden } from \"@/components\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport type { SwitchProps } from \"./switch.types\";\nimport {\n SwitchRootSlot,\n SwitchTrackSlot,\n SwitchThumbSlot,\n SwitchLabelSlot,\n} from \"./switch.slots\";\nimport { switchSlotRecipe } from \"./switch.recipe\";\n\n/**\n * # Switch\n *\n * A clear, visual toggle, allowing users to activate or deactivate a setting quickly.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/switch}\n */\nexport const Switch = ({ ref: externalRef, ...props }: SwitchProps) => {\n const localRef = useRef<HTMLInputElement>(null);\n const ref = useObjectRef(\n externalRef ? mergeRefs(localRef, externalRef) : localRef\n );\n\n const recipe = useSlotRecipe({ recipe: switchSlotRecipe });\n\n const [recipeProps, recipeLessProps] = recipe.splitVariantProps(props);\n const [styleProps, functionalProps] = extractStyleProps(recipeLessProps);\n\n const state = useToggleState(props);\n const { inputProps } = useSwitch(functionalProps, state, ref);\n\n const { isFocused, focusProps } = useFocusRing();\n\n const stateProps = {\n \"data-selected\": state.isSelected,\n \"data-invalid\": props.isInvalid,\n \"data-disabled\": props.isDisabled,\n \"data-focus\": isFocused || undefined,\n };\n return (\n <SwitchRootSlot\n data-slot=\"root\"\n {...recipeProps}\n {...stateProps}\n {...styleProps}\n >\n <SwitchTrackSlot data-slot=\"track\" {...stateProps}>\n <SwitchThumbSlot data-slot=\"thumb\" {...stateProps} />\n <VisuallyHidden as=\"span\">\n <input\n data-slot=\"input\"\n {...mergeProps(inputProps, focusProps)}\n ref={ref}\n />\n </VisuallyHidden>\n </SwitchTrackSlot>\n\n {props.children && (\n <SwitchLabelSlot data-slot=\"label\" {...stateProps}>\n {props.children}\n </SwitchLabelSlot>\n )}\n </SwitchRootSlot>\n );\n};\nSwitch.displayName = \"Switch\";\n"],"names":["$b418ec0c85c52f27$export$d853f7095ae95f88","props","state","ref","labelProps","inputProps","isSelected","isPressed","isDisabled","isReadOnly","$ifSyJ$useToggle","withProvider","withContext","createSlotRecipeContext","SwitchRootSlot","SwitchLabelSlot","SwitchTrackSlot","SwitchThumbSlot","Switch","externalRef","localRef","useRef","useObjectRef","mergeRefs","recipe","useSlotRecipe","switchSlotRecipe","recipeProps","recipeLessProps","styleProps","functionalProps","extractStyleProps","useToggleState","useSwitch","isFocused","focusProps","useFocusRing","stateProps","jsxs","jsx","VisuallyHidden","mergeProps"],"mappings":";;;;;;;;;;;;AAaA,SAASA,EAA0CC,GAAOC,GAAOC,GAAK;AAClE,MAAI,EAAE,YAAYC,GAAY,YAAYC,GAAY,YAAYC,GAAY,WAAWC,GAAW,YAAYC,GAAY,YAAYC,EAAU,IAASC,EAAkBT,GAAOC,GAAOC,CAAG;AAC9L,SAAO;AAAA,IACH,YAAYC;AAAA,IACZ,YAAY;AAAA,MACR,GAAGC;AAAA,MACH,MAAM;AAAA,MACN,SAASC;AAAA,IACrB;AAAA,IACQ,YAAYA;AAAA,IACZ,WAAWC;AAAA,IACX,YAAYC;AAAA,IACZ,YAAYC;AAAA,EACpB;AACA;ACnBA,MAAM,EAAE,cAAAE,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAOYC,IAAiB,gBAAAH;AAAA,EAC5B;AAAA,EACA;AACF,GAGaI,IAAkB,gBAAAH;AAAA,EAC7B;AAAA,EACA;AACF,GAGaI,IAAkB,gBAAAJ;AAAA,EAC7B;AAAA,EACA;AACF,GAGaK,IAAkB,gBAAAL;AAAA,EAC7B;AAAA,EACA;AACF,GCfaM,IAAS,CAAC,EAAE,KAAKC,GAAa,GAAGlB,QAAyB;AACrE,QAAMmB,IAAWC,EAAyB,IAAI,GACxClB,IAAMmB;AAAAA,IACVH,IAAcI,EAAUH,GAAUD,CAAW,IAAIC;AAAA,EAAA,GAG7CI,IAASC,EAAc,EAAE,QAAQC,GAAkB,GAEnD,CAACC,GAAaC,CAAe,IAAIJ,EAAO,kBAAkBvB,CAAK,GAC/D,CAAC4B,GAAYC,CAAe,IAAIC,EAAkBH,CAAe,GAEjE1B,IAAQ8B,EAAe/B,CAAK,GAC5B,EAAE,YAAAI,EAAA,IAAe4B,EAAUH,GAAiB5B,GAAOC,CAAG,GAEtD,EAAE,WAAA+B,GAAW,YAAAC,EAAA,IAAeC,EAAA,GAE5BC,IAAa;AAAA,IACjB,iBAAiBnC,EAAM;AAAA,IACvB,gBAAgBD,EAAM;AAAA,IACtB,iBAAiBA,EAAM;AAAA,IACvB,cAAciC,KAAa;AAAA,EAAA;AAE7B,SACE,gBAAAI;AAAA,IAACxB;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACT,GAAGa;AAAA,MACH,GAAGU;AAAA,MACH,GAAGR;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAS,EAACtB,GAAA,EAAgB,aAAU,SAAS,GAAGqB,GACrC,UAAA;AAAA,UAAA,gBAAAE,EAACtB,GAAA,EAAgB,aAAU,SAAS,GAAGoB,EAAA,CAAY;AAAA,UACnD,gBAAAE,EAACC,GAAA,EAAe,IAAG,QACjB,UAAA,gBAAAD;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,aAAU;AAAA,cACT,GAAGE,EAAWpC,GAAY8B,CAAU;AAAA,cACrC,KAAAhC;AAAA,YAAA;AAAA,UAAA,EACF,CACF;AAAA,QAAA,GACF;AAAA,QAECF,EAAM,YACL,gBAAAsC,EAACxB,GAAA,EAAgB,aAAU,SAAS,GAAGsB,GACpC,UAAApC,EAAM,SAAA,CACT;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;AACAiB,EAAO,cAAc;","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const C=require("react/jsx-runtime"),Ge=require("@chakra-ui/react/styled-system"),Ue=require("./Button-BtJHe9xY.cjs.js"),S=require("./SelectionManager-CmUHDDN6.cjs.js"),w=require("./utils-BHdR5Nww.cjs.js"),He=require("./Label-BgrYyYXn.cjs.js"),R=require("./ListBox-BHUS7cW2.cjs.js"),We=require("./Text-BWSfeB9p.cjs.js"),N=require("./Separator-CTkcgvBE.cjs.js"),B=require("./mergeProps-BA5Cwf5w.cjs.js"),K=require("./filterDOMProps-WUskt27c.cjs.js"),Je=require("./useObjectRef-dXOJdONs.cjs.js"),l=require("react"),H=require("./useFocusRing-CzFer4bD.cjs.js"),Qe=require("./useHover-CiP9jMFy.cjs.js"),q=require("./useHighlightSelectionDescription-CpDw-Mgj.cjs.js"),Xe=require("./Header-zz3aj0c7.cjs.js"),Ye=require("./useField-DmqO9k7a.cjs.js"),Ze=require("./useFocusWithin-BDSWp3rw.cjs.js"),W=require("./context-OoV8SSWX.cjs.js"),J=require("./openLink-DkCJYbzq.cjs.js"),y=require("./scrollIntoView-BzIqpHLO.cjs.js"),Q=require("./useFocusVisible-Co0C61s7.cjs.js"),_e=require("./useFocusable-DCgmQxS1.cjs.js"),O=require("./FocusScope-DPn5XtSy.cjs.js"),T=require("./focusSafely-jDMW9aEx.cjs.js"),eo=require("./useLocalizedStringFormatter-sB0mFYtL.cjs.js"),oo=require("@commercetools/nimbus-icons"),to=require("./icon-button-CFLScvMi.cjs.js"),V=new WeakMap;function I(t,e){var o;let{id:a}=(o=V.get(t))!==null&&o!==void 0?o:{};if(!a)throw new Error("Unknown list");return`${a}-${ro(e)}`}function ro(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function ao(t,e,o){let{isVirtualized:a,keyboardDelegate:c,layoutDelegate:r,onAction:n,disallowTypeAhead:d,linkBehavior:s="action",keyboardNavigationBehavior:x="arrow",escapeKeyBehavior:u="clearSelection",shouldSelectOnPressUp:g}=t;!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:f}=Xe.$982254629710d113$export$b95089534ab7c1fd({selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,ref:o,keyboardDelegate:c,layoutDelegate:r,isVirtualized:a,selectOnFocus:e.selectionManager.selectionBehavior==="replace",shouldFocusWrap:t.shouldFocusWrap,linkBehavior:s,disallowTypeAhead:d,autoFocus:t.autoFocus,escapeKeyBehavior:u}),v=B.$bdb11010cef70236$export$f680877a34711e37(t.id);V.set(e,{id:v,onAction:n,linkBehavior:s,keyboardNavigationBehavior:x,shouldSelectOnPressUp:g});let b=q.$5b9b5b5723db6ae1$export$be42ebdab07ae4c2({selectionManager:e.selectionManager,hasItemActions:!!n}),k=q.$83013635b024ae3d$export$eac1895992b9f3d6(o,{isDisabled:e.collection.size!==0}),D=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),P=B.$3ef42575df84b30b$export$9d1611c77c2fe928(D,{role:"grid",id:v,"aria-multiselectable":e.selectionManager.selectionMode==="multiple"?"true":void 0},e.collection.size===0?{tabIndex:k?-1:0}:f,b);return a&&(P["aria-rowcount"]=e.collection.size,P["aria-colcount"]=1),q.$92599c3fd427b763$export$137e594ef3218a10({},e),{gridProps:P}}const G={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function io(t,e,o){var a,c;let{node:r,isVirtualized:n}=t,{direction:d}=W.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{onAction:s,linkBehavior:x,keyboardNavigationBehavior:u,shouldSelectOnPressUp:g}=V.get(e),f=B.$bdb11010cef70236$export$b4cc09c592e8fdb8(),v=l.useRef(null),b=()=>{var i;o.current!==null&&(v.current!=null&&r.key!==v.current||!(!((i=o.current)===null||i===void 0)&&i.contains(document.activeElement)))&&T.$3ad3f6e1647bc98d$export$80f3e147d781571c(o.current)},k={},D=t.hasChildItems,P=e.selectionManager.isLink(r.key);if(r!=null&&"expandedKeys"in e){var L,A;let i=(L=(A=e.collection).getChildren)===null||L===void 0?void 0:L.call(A,r.key);D=D||[...i??[]].length>1,s==null&&!P&&e.selectionManager.selectionMode==="none"&&D&&(s=()=>e.toggleKey(r.key));let p=D?e.expandedKeys.has(r.key):void 0,m=1;if(r.level>0&&r?.parentKey!=null){let $=e.collection.getItem(r.parentKey);if($){var h,F;m=[...(h=(F=e.collection).getChildren)===null||h===void 0?void 0:h.call(F,$.key)].filter(Ie=>Ie.type==="item").length}}else m=[...e.collection].filter($=>$.level===0&&$.type==="item").length;k={"aria-expanded":p,"aria-level":r.level+1,"aria-posinset":r?.index+1,"aria-setsize":m}}let{itemProps:z,...M}=S.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:e.selectionManager,key:r.key,ref:o,isVirtualized:n,shouldSelectOnPressUp:t.shouldSelectOnPressUp||g,onAction:s||!((a=r.props)===null||a===void 0)&&a.onAction?B.$ff5963eb1fccf552$export$e08e3b67e392101e((c=r.props)===null||c===void 0?void 0:c.onAction,s?()=>s(r.key):void 0):void 0,focus:b,linkBehavior:x}),Ne=i=>{if(!i.currentTarget.contains(i.target)||!o.current||!document.activeElement)return;let p=O.$9bf71ea28793e738$export$2d6ec8fc375ceafa(o.current);if(p.currentNode=document.activeElement,"expandedKeys"in e&&document.activeElement===o.current){if(i.key===G.expand[d]&&e.selectionManager.focusedKey===r.key&&D&&!e.expandedKeys.has(r.key)){e.toggleKey(r.key),i.stopPropagation();return}else if(i.key===G.collapse[d]&&e.selectionManager.focusedKey===r.key&&D&&e.expandedKeys.has(r.key)){e.toggleKey(r.key),i.stopPropagation();return}}switch(i.key){case"ArrowLeft":if(u==="arrow"){let $=d==="rtl"?p.nextNode():p.previousNode();if($)i.preventDefault(),i.stopPropagation(),T.$3ad3f6e1647bc98d$export$80f3e147d781571c($),y.$2f04cbc44ee30ce0$export$c826860796309d1b($,{containingElement:y.$62d8ded9296f3872$export$cfa2225e87938781(o.current)});else if(i.preventDefault(),i.stopPropagation(),d==="rtl")T.$3ad3f6e1647bc98d$export$80f3e147d781571c(o.current),y.$2f04cbc44ee30ce0$export$c826860796309d1b(o.current,{containingElement:y.$62d8ded9296f3872$export$cfa2225e87938781(o.current)});else{p.currentNode=o.current;let E=U(p);E&&(T.$3ad3f6e1647bc98d$export$80f3e147d781571c(E),y.$2f04cbc44ee30ce0$export$c826860796309d1b(E,{containingElement:y.$62d8ded9296f3872$export$cfa2225e87938781(o.current)}))}}break;case"ArrowRight":if(u==="arrow"){let $=d==="rtl"?p.previousNode():p.nextNode();if($)i.preventDefault(),i.stopPropagation(),T.$3ad3f6e1647bc98d$export$80f3e147d781571c($),y.$2f04cbc44ee30ce0$export$c826860796309d1b($,{containingElement:y.$62d8ded9296f3872$export$cfa2225e87938781(o.current)});else if(i.preventDefault(),i.stopPropagation(),d==="ltr")T.$3ad3f6e1647bc98d$export$80f3e147d781571c(o.current),y.$2f04cbc44ee30ce0$export$c826860796309d1b(o.current,{containingElement:y.$62d8ded9296f3872$export$cfa2225e87938781(o.current)});else{p.currentNode=o.current;let E=U(p);E&&(T.$3ad3f6e1647bc98d$export$80f3e147d781571c(E),y.$2f04cbc44ee30ce0$export$c826860796309d1b(E,{containingElement:y.$62d8ded9296f3872$export$cfa2225e87938781(o.current)}))}}break;case"ArrowUp":case"ArrowDown":if(!i.altKey&&o.current.contains(i.target)){var m;i.stopPropagation(),i.preventDefault(),(m=o.current.parentElement)===null||m===void 0||m.dispatchEvent(new KeyboardEvent(i.nativeEvent.type,i.nativeEvent))}break}},ze=i=>{if(v.current=r.key,i.target!==o.current){Q.$507fabe10e71c6fb$export$b9b3dfddab17db27()||e.selectionManager.setFocusedKey(r.key);return}},qe=i=>{if(!(!i.currentTarget.contains(i.target)||!o.current||!document.activeElement))switch(i.key){case"Tab":if(u==="tab"){let p=O.$9bf71ea28793e738$export$2d6ec8fc375ceafa(o.current,{tabbable:!0});p.currentNode=document.activeElement,(i.shiftKey?p.previousNode():p.nextNode())&&i.stopPropagation()}}},Ve=J.$ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(r.props),je=M.hasAction?Ve:{},j=B.$3ef42575df84b30b$export$9d1611c77c2fe928(z,je,{role:"row",onKeyDownCapture:Ne,onKeyDown:qe,onFocus:ze,"aria-label":r.textValue||void 0,"aria-selected":e.selectionManager.canSelectItem(r.key)?e.selectionManager.isSelected(r.key):void 0,"aria-disabled":e.selectionManager.isDisabled(r.key)||void 0,"aria-labelledby":f&&r.textValue?`${I(e,r.key)} ${f}`:void 0,id:I(e,r.key)});if(n){let{collection:i}=e,p=[...i];j["aria-rowindex"]=p.find(m=>m.type==="section")?[...i.getKeys()].filter(m=>{var $;return(($=i.getItem(m))===null||$===void 0?void 0:$.type)!=="section"}).findIndex(m=>m===r.key)+1:r.index+1}let Oe={role:"gridcell","aria-colindex":1};return{rowProps:{...B.$3ef42575df84b30b$export$9d1611c77c2fe928(j,k)},gridCellProps:Oe,descriptionProps:{id:f},...M}}function U(t){let e=null,o=null;do o=t.lastChild(),o&&(e=o);while(o);return e}const X=new WeakMap;function no(t,e,o){let{direction:a}=W.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),c=t.keyboardDelegate||new S.$2a25aae57d74318e$export$a05409b8bb224a5a({collection:e.collection,ref:o,orientation:"horizontal",direction:a,disabledKeys:e.disabledKeys,disabledBehavior:e.selectionManager.disabledBehavior}),{labelProps:r,fieldProps:n,descriptionProps:d,errorMessageProps:s}=Ye.$2baaea4c71418dea$export$294aa081a6c6f55d({...t,labelElementType:"span"}),{gridProps:x}=ao({...t,...n,keyboardDelegate:c,shouldFocusWrap:!0,linkBehavior:"override",keyboardNavigationBehavior:"tab"},e,o),[u,g]=l.useState(!1),{focusWithinProps:f}=Ze.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithinChange:g}),v=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t),b=l.useRef(e.collection.size);return l.useEffect(()=>{o.current&&b.current>0&&e.collection.size===0&&u&&o.current.focus(),b.current=e.collection.size},[e.collection.size,u,o]),X.set(e,{onRemove:t.onRemove}),{gridProps:B.$3ef42575df84b30b$export$9d1611c77c2fe928(x,v,{role:e.collection.size?"grid":"group","aria-atomic":!1,"aria-relevant":"additions","aria-live":u?"polite":"off",...f,...n}),labelProps:r,descriptionProps:d,errorMessageProps:s}}var Y={};Y={removeButtonLabel:"إزالة",removeDescription:"اضغط على مفتاح DELETE لإزالة علامة."};var Z={};Z={removeButtonLabel:"Премахване",removeDescription:"Натиснете Delete, за да премахнете маркера."};var _={};_={removeButtonLabel:"Odebrat",removeDescription:"Stisknutím klávesy Delete odeberete značku."};var ee={};ee={removeButtonLabel:"Fjern",removeDescription:"Tryk på Slet for at fjerne tag."};var oe={};oe={removeButtonLabel:"Entfernen",removeDescription:"Auf „Löschen“ drücken, um das Tag zu entfernen."};var te={};te={removeButtonLabel:"Κατάργηση",removeDescription:"Πατήστε Διαγραφή για να καταργήσετε την ετικέτα."};var re={};re={removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"};var ae={};ae={removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."};var ie={};ie={removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."};var ne={};ne={removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."};var le={};le={removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l’étiquette."};var ue={};ue={removeButtonLabel:"הסר",removeDescription:"לחץ על מחק כדי להסיר תג."};var ce={};ce={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."};var de={};de={removeButtonLabel:"Eltávolítás",removeDescription:"Nyomja meg a Delete billentyűt a címke eltávolításához."};var se={};se={removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."};var fe={};fe={removeButtonLabel:"削除",removeDescription:"タグを削除するには、Delete キーを押します。"};var be={};be={removeButtonLabel:"제거",removeDescription:"태그를 제거하려면 Delete 키를 누르십시오."};var pe={};pe={removeButtonLabel:"Pašalinti",removeDescription:"Norėdami pašalinti žymą, paspauskite „Delete“ klavišą."};var $e={};$e={removeButtonLabel:"Noņemt",removeDescription:"Nospiediet Delete [Dzēst], lai noņemtu tagu."};var ve={};ve={removeButtonLabel:"Fjern",removeDescription:"Trykk på Slett for å fjerne taggen."};var xe={};xe={removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."};var me={};me={removeButtonLabel:"Usuń",removeDescription:"Naciśnij Usuń, aby usunąć znacznik."};var ge={};ge={removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."};var ye={};ye={removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."};var De={};De={removeButtonLabel:"Îndepărtaţi",removeDescription:"Apăsați pe Delete (Ștergere) pentru a elimina eticheta."};var Be={};Be={removeButtonLabel:"Удалить",removeDescription:"Нажмите DELETE, чтобы удалить тег."};var Pe={};Pe={removeButtonLabel:"Odstrániť",removeDescription:"Ak chcete odstrániť značku, stlačte kláves Delete."};var he={};he={removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."};var ke={};ke={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obriši da biste uklonili oznaku."};var Ee={};Ee={removeButtonLabel:"Ta bort",removeDescription:"Tryck på Radera för att ta bort taggen."};var Ce={};Ce={removeButtonLabel:"Kaldır",removeDescription:"Etiketi kaldırmak için Sil tuşuna basın."};var we={};we={removeButtonLabel:"Вилучити",removeDescription:"Натисніть Delete, щоб вилучити тег."};var Le={};Le={removeButtonLabel:"删除",removeDescription:"按下“删除”以删除标记。"};var Ae={};Ae={removeButtonLabel:"移除",removeDescription:"按 Delete 鍵以移除標記。"};var Te={};Te={"ar-AE":Y,"bg-BG":Z,"cs-CZ":_,"da-DK":ee,"de-DE":oe,"el-GR":te,"en-US":re,"es-ES":ae,"et-EE":ie,"fi-FI":ne,"fr-FR":le,"he-IL":ue,"hr-HR":ce,"hu-HU":de,"it-IT":se,"ja-JP":fe,"ko-KR":be,"lt-LT":pe,"lv-LV":$e,"nb-NO":ve,"nl-NL":xe,"pl-PL":me,"pt-BR":ge,"pt-PT":ye,"ro-RO":De,"ru-RU":Be,"sk-SK":Pe,"sl-SI":he,"sr-SP":ke,"sv-SE":Ee,"tr-TR":Ce,"uk-UA":we,"zh-CN":Le,"zh-TW":Ae};function lo(t){return t&&t.__esModule?t.default:t}function uo(t,e,o){let{item:a}=t,c=eo.$fca6afa0e843324b$export$f12b703ca79dfbb1(lo(Te),"@react-aria/tag"),r=B.$bdb11010cef70236$export$f680877a34711e37(),{onRemove:n}=X.get(e)||{},{rowProps:d,gridCellProps:s,...x}=io({node:a},e,o),{descriptionProps:u,...g}=x,f=e.disabledKeys.has(a.key)||a.props.isDisabled,v=M=>{if(M.key==="Delete"||M.key==="Backspace"){if(f)return;M.preventDefault(),e.selectionManager.isSelected(a.key)?n?.(new Set(e.selectionManager.selectedKeys)):n?.(new Set([a.key]))}},b=Q.$507fabe10e71c6fb$export$98e20ec92f614cfe();b==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(b="pointer");let k=n&&(b==="keyboard"||b==="virtual")?c.format("removeDescription"):"",D=y.$ef06256079686ba0$export$f8aeda7b10753fa1(k),P=a.key===e.selectionManager.focusedKey,L=e.selectionManager.focusedKey!=null,A=-1;!f&&(P||!L)&&(A=0);let h=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a.props),F=J.$ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(a.props),{focusableProps:z}=_e.$f645667febf57a63$export$4c014de7c8940b4c({isDisabled:f},o);return{removeButtonProps:{"aria-label":c.format("removeButtonLabel"),"aria-labelledby":`${r} ${d.id}`,isDisabled:f,id:r,onPress:()=>n?n(new Set([a.key])):null},rowProps:B.$3ef42575df84b30b$export$9d1611c77c2fe928(z,d,h,F,{tabIndex:A,onKeyDown:n?v:void 0,"aria-describedby":D["aria-describedby"]}),gridCellProps:B.$3ef42575df84b30b$export$9d1611c77c2fe928(s,{"aria-errormessage":t["aria-errormessage"],"aria-label":t["aria-label"]}),...g,allowsRemoving:!!n}}const co=l.createContext(null),Se=l.createContext(null),so=l.forwardRef(function(e,o){return[e,o]=w.$64fa3d84918910a7$export$29f1550f4b0d4415(e,o,co),l.createElement(N.$e1995378a142960e$export$bf788dd355e3a401,{content:e.children},a=>l.createElement(fo,{props:e,forwardedRef:o,collection:a}))});function fo({props:t,forwardedRef:e,collection:o}){let a;[a]=w.$64fa3d84918910a7$export$29f1550f4b0d4415({},null,S.$8e6cc465cc68f603$export$b0d3ecf7112093a7);let{filter:c,...r}=a,{shouldUseVirtualFocus:n,disallowTypeAhead:d,...s}=r||{},x=l.useRef(null),[u,g]=w.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!t["aria-label"]&&!t["aria-labelledby"]),f=R.$e72dd72e1c76a225$export$2f645645f7bca764({...t,children:void 0,collection:o}),v=R.$e72dd72e1c76a225$export$ba9d38c0f1bf2b36(f,c),b=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0}),k=Object.fromEntries(Object.entries(b).map(([F])=>[F,void 0])),{gridProps:D,labelProps:P,descriptionProps:L,errorMessageProps:A}=no({...t,...k,...s,label:g},v,x);var h;return l.createElement("div",{...b,ref:e,slot:t.slot||void 0,className:(h=t.className)!==null&&h!==void 0?h:"react-aria-TagGroup",style:t.style},l.createElement(w.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[He.$01b77f81d0f07f68$export$75b6ee27786ba447,{...P,elementType:"span",ref:u}],[Se,{...D,ref:x}],[R.$eed445e0843c11d0$export$7c5906fe4f1f2af2,v],[We.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:L,errorMessage:A}}]]},t.children))}const bo=l.forwardRef(function(e,o){return l.useContext(R.$eed445e0843c11d0$export$7c5906fe4f1f2af2)?l.createElement(po,{props:e,forwardedRef:o}):l.createElement(N.$e1995378a142960e$export$fb8073518f34e6ec,e)});function po({props:t,forwardedRef:e}){let o=l.useContext(R.$eed445e0843c11d0$export$7c5906fe4f1f2af2),{CollectionRoot:a}=l.useContext(S.$7135fc7d473fd974$export$4feb769f8ddf26c5),[c,r]=w.$64fa3d84918910a7$export$29f1550f4b0d4415({},e,Se),{focusProps:n,isFocused:d,isFocusVisible:s}=H.$f7dceffc5ad7768b$export$4e328f61c538687f(),x={isEmpty:o.collection.size===0,isFocused:d,isFocusVisible:s,state:o},u=w.$64fa3d84918910a7$export$4d86445c2cf5e3({className:t.className,style:t.style,defaultClassName:"react-aria-TagList",values:x}),g=S.$7135fc7d473fd974$export$90e00781bc59d8f9(o.selectionManager.focusedKey),f=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0});return l.createElement("div",{...B.$3ef42575df84b30b$export$9d1611c77c2fe928(f,u,c,n),ref:r,"data-empty":o.collection.size===0||void 0,"data-focused":d||void 0,"data-focus-visible":s||void 0},o.collection.size===0&&t.renderEmptyState?t.renderEmptyState(x):l.createElement(a,{collection:o.collection,persistedKeys:g}))}const $o=N.$e1995378a142960e$export$18af5c7a9e9b3664(N.$23b9f4fcf0fe224b$export$fd11f34e1d07f134,(t,e,o)=>{let a=l.useContext(R.$eed445e0843c11d0$export$7c5906fe4f1f2af2),c=Je.$df56164dff5785e2$export$4338b53315abf666(e),{focusProps:r,isFocusVisible:n}=H.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!1}),{rowProps:d,gridCellProps:s,removeButtonProps:x,...u}=uo({item:o},a,c),{hoverProps:g,isHovered:f}=Qe.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:!u.allowsSelection,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),v=w.$64fa3d84918910a7$export$4d86445c2cf5e3({...t,id:void 0,children:o.rendered,defaultClassName:"react-aria-Tag",values:{...u,isFocusVisible:n,isHovered:f,selectionMode:a.selectionManager.selectionMode,selectionBehavior:a.selectionManager.selectionBehavior}});l.useEffect(()=>{!o.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <Tag> elements with non-plain text children for accessibility.")},[o.textValue]);let b=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0});return delete b.id,delete b.onClick,l.createElement("div",{ref:c,...B.$3ef42575df84b30b$export$9d1611c77c2fe928(b,v,d,r,g),"data-selected":u.isSelected||void 0,"data-disabled":u.isDisabled||void 0,"data-hovered":f||void 0,"data-focused":u.isFocused||void 0,"data-focus-visible":n||void 0,"data-pressed":u.isPressed||void 0,"data-allows-removing":u.allowsRemoving||void 0,"data-selection-mode":a.selectionManager.selectionMode==="none"?void 0:a.selectionManager.selectionMode},l.createElement("div",{...s,style:{display:"contents"}},l.createElement(w.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[Ue.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:{remove:x}}],[S.$7135fc7d473fd974$export$4feb769f8ddf26c5,S.$7135fc7d473fd974$export$a164736487e3f0ae]]},v.children)))}),{withProvider:vo,withContext:Fe}=Ge.createSlotRecipeContext({key:"taggroup"}),xo=vo(so,"root"),mo=t=>{const{ref:e,...o}=t,a=Fe(bo,"tagList");return C.jsx(a,{...o,ref:e})},go=Fe($o,"tag"),Me=({children:t,onRemove:e,selectionMode:o,ref:a,...c})=>(e&&(o==="multiple"||o==="single")&&console.warn('Nimbus TagGroup: when "selectionMode" is "single" or "mutiple", Tags cannot be removed'),C.jsx(xo,{ref:a,onRemove:e,selectionMode:o,...c,children:t}));Me.displayName="TagGroup.Root";const Re=({children:t,ref:e,...o})=>C.jsx(mo,{ref:e,...o,children:t});Re.displayName="TagGroup.TagList";const Ke=({children:t,ref:e,...o})=>{const a=typeof t=="string"?t:void 0;return C.jsx(go,{ref:e,textValue:a,...o,children:({allowsRemoving:c,isSelected:r,selectionMode:n})=>C.jsxs(C.Fragment,{children:[t,c&&n!=="multiple"&&n!=="single"&&C.jsx(to.IconButton,{size:"2xs",variant:r?"solid":"ghost",slot:"remove",tone:r?void 0:"neutral",children:C.jsx(oo.Close,{})})]})})};Ke.displayName="TagGroup.Tag";const yo={Root:Me,TagList:Re,Tag:Ke};exports.TagGroup=yo;
2
- //# sourceMappingURL=tag-group-D6_THomO.cjs.js.map
1
+ "use strict";const C=require("react/jsx-runtime"),Ge=require("@chakra-ui/react/styled-system"),Ue=require("./Button-BtJHe9xY.cjs.js"),S=require("./SelectionManager-CmUHDDN6.cjs.js"),w=require("./utils-BHdR5Nww.cjs.js"),He=require("./Label-BgrYyYXn.cjs.js"),R=require("./ListBox-BHUS7cW2.cjs.js"),We=require("./Text-BWSfeB9p.cjs.js"),N=require("./Separator-CTkcgvBE.cjs.js"),B=require("./mergeProps-BA5Cwf5w.cjs.js"),K=require("./filterDOMProps-WUskt27c.cjs.js"),Je=require("./useObjectRef-dXOJdONs.cjs.js"),l=require("react"),H=require("./useFocusRing-CzFer4bD.cjs.js"),Qe=require("./useHover-CiP9jMFy.cjs.js"),q=require("./useHighlightSelectionDescription-CpDw-Mgj.cjs.js"),Xe=require("./Header-zz3aj0c7.cjs.js"),Ye=require("./useField-DmqO9k7a.cjs.js"),Ze=require("./useFocusWithin-BDSWp3rw.cjs.js"),W=require("./context-OoV8SSWX.cjs.js"),J=require("./openLink-DkCJYbzq.cjs.js"),y=require("./scrollIntoView-BzIqpHLO.cjs.js"),Q=require("./useFocusVisible-Co0C61s7.cjs.js"),_e=require("./useFocusable-DCgmQxS1.cjs.js"),O=require("./FocusScope-DPn5XtSy.cjs.js"),T=require("./focusSafely-jDMW9aEx.cjs.js"),eo=require("./useLocalizedStringFormatter-sB0mFYtL.cjs.js"),oo=require("@commercetools/nimbus-icons"),to=require("./icon-button-Cri9Y6st.cjs.js"),V=new WeakMap;function I(t,e){var o;let{id:a}=(o=V.get(t))!==null&&o!==void 0?o:{};if(!a)throw new Error("Unknown list");return`${a}-${ro(e)}`}function ro(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function ao(t,e,o){let{isVirtualized:a,keyboardDelegate:c,layoutDelegate:r,onAction:n,disallowTypeAhead:d,linkBehavior:s="action",keyboardNavigationBehavior:x="arrow",escapeKeyBehavior:u="clearSelection",shouldSelectOnPressUp:g}=t;!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:f}=Xe.$982254629710d113$export$b95089534ab7c1fd({selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,ref:o,keyboardDelegate:c,layoutDelegate:r,isVirtualized:a,selectOnFocus:e.selectionManager.selectionBehavior==="replace",shouldFocusWrap:t.shouldFocusWrap,linkBehavior:s,disallowTypeAhead:d,autoFocus:t.autoFocus,escapeKeyBehavior:u}),v=B.$bdb11010cef70236$export$f680877a34711e37(t.id);V.set(e,{id:v,onAction:n,linkBehavior:s,keyboardNavigationBehavior:x,shouldSelectOnPressUp:g});let b=q.$5b9b5b5723db6ae1$export$be42ebdab07ae4c2({selectionManager:e.selectionManager,hasItemActions:!!n}),k=q.$83013635b024ae3d$export$eac1895992b9f3d6(o,{isDisabled:e.collection.size!==0}),D=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),P=B.$3ef42575df84b30b$export$9d1611c77c2fe928(D,{role:"grid",id:v,"aria-multiselectable":e.selectionManager.selectionMode==="multiple"?"true":void 0},e.collection.size===0?{tabIndex:k?-1:0}:f,b);return a&&(P["aria-rowcount"]=e.collection.size,P["aria-colcount"]=1),q.$92599c3fd427b763$export$137e594ef3218a10({},e),{gridProps:P}}const G={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function io(t,e,o){var a,c;let{node:r,isVirtualized:n}=t,{direction:d}=W.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{onAction:s,linkBehavior:x,keyboardNavigationBehavior:u,shouldSelectOnPressUp:g}=V.get(e),f=B.$bdb11010cef70236$export$b4cc09c592e8fdb8(),v=l.useRef(null),b=()=>{var i;o.current!==null&&(v.current!=null&&r.key!==v.current||!(!((i=o.current)===null||i===void 0)&&i.contains(document.activeElement)))&&T.$3ad3f6e1647bc98d$export$80f3e147d781571c(o.current)},k={},D=t.hasChildItems,P=e.selectionManager.isLink(r.key);if(r!=null&&"expandedKeys"in e){var L,A;let i=(L=(A=e.collection).getChildren)===null||L===void 0?void 0:L.call(A,r.key);D=D||[...i??[]].length>1,s==null&&!P&&e.selectionManager.selectionMode==="none"&&D&&(s=()=>e.toggleKey(r.key));let p=D?e.expandedKeys.has(r.key):void 0,m=1;if(r.level>0&&r?.parentKey!=null){let $=e.collection.getItem(r.parentKey);if($){var h,F;m=[...(h=(F=e.collection).getChildren)===null||h===void 0?void 0:h.call(F,$.key)].filter(Ie=>Ie.type==="item").length}}else m=[...e.collection].filter($=>$.level===0&&$.type==="item").length;k={"aria-expanded":p,"aria-level":r.level+1,"aria-posinset":r?.index+1,"aria-setsize":m}}let{itemProps:z,...M}=S.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:e.selectionManager,key:r.key,ref:o,isVirtualized:n,shouldSelectOnPressUp:t.shouldSelectOnPressUp||g,onAction:s||!((a=r.props)===null||a===void 0)&&a.onAction?B.$ff5963eb1fccf552$export$e08e3b67e392101e((c=r.props)===null||c===void 0?void 0:c.onAction,s?()=>s(r.key):void 0):void 0,focus:b,linkBehavior:x}),Ne=i=>{if(!i.currentTarget.contains(i.target)||!o.current||!document.activeElement)return;let p=O.$9bf71ea28793e738$export$2d6ec8fc375ceafa(o.current);if(p.currentNode=document.activeElement,"expandedKeys"in e&&document.activeElement===o.current){if(i.key===G.expand[d]&&e.selectionManager.focusedKey===r.key&&D&&!e.expandedKeys.has(r.key)){e.toggleKey(r.key),i.stopPropagation();return}else if(i.key===G.collapse[d]&&e.selectionManager.focusedKey===r.key&&D&&e.expandedKeys.has(r.key)){e.toggleKey(r.key),i.stopPropagation();return}}switch(i.key){case"ArrowLeft":if(u==="arrow"){let $=d==="rtl"?p.nextNode():p.previousNode();if($)i.preventDefault(),i.stopPropagation(),T.$3ad3f6e1647bc98d$export$80f3e147d781571c($),y.$2f04cbc44ee30ce0$export$c826860796309d1b($,{containingElement:y.$62d8ded9296f3872$export$cfa2225e87938781(o.current)});else if(i.preventDefault(),i.stopPropagation(),d==="rtl")T.$3ad3f6e1647bc98d$export$80f3e147d781571c(o.current),y.$2f04cbc44ee30ce0$export$c826860796309d1b(o.current,{containingElement:y.$62d8ded9296f3872$export$cfa2225e87938781(o.current)});else{p.currentNode=o.current;let E=U(p);E&&(T.$3ad3f6e1647bc98d$export$80f3e147d781571c(E),y.$2f04cbc44ee30ce0$export$c826860796309d1b(E,{containingElement:y.$62d8ded9296f3872$export$cfa2225e87938781(o.current)}))}}break;case"ArrowRight":if(u==="arrow"){let $=d==="rtl"?p.previousNode():p.nextNode();if($)i.preventDefault(),i.stopPropagation(),T.$3ad3f6e1647bc98d$export$80f3e147d781571c($),y.$2f04cbc44ee30ce0$export$c826860796309d1b($,{containingElement:y.$62d8ded9296f3872$export$cfa2225e87938781(o.current)});else if(i.preventDefault(),i.stopPropagation(),d==="ltr")T.$3ad3f6e1647bc98d$export$80f3e147d781571c(o.current),y.$2f04cbc44ee30ce0$export$c826860796309d1b(o.current,{containingElement:y.$62d8ded9296f3872$export$cfa2225e87938781(o.current)});else{p.currentNode=o.current;let E=U(p);E&&(T.$3ad3f6e1647bc98d$export$80f3e147d781571c(E),y.$2f04cbc44ee30ce0$export$c826860796309d1b(E,{containingElement:y.$62d8ded9296f3872$export$cfa2225e87938781(o.current)}))}}break;case"ArrowUp":case"ArrowDown":if(!i.altKey&&o.current.contains(i.target)){var m;i.stopPropagation(),i.preventDefault(),(m=o.current.parentElement)===null||m===void 0||m.dispatchEvent(new KeyboardEvent(i.nativeEvent.type,i.nativeEvent))}break}},ze=i=>{if(v.current=r.key,i.target!==o.current){Q.$507fabe10e71c6fb$export$b9b3dfddab17db27()||e.selectionManager.setFocusedKey(r.key);return}},qe=i=>{if(!(!i.currentTarget.contains(i.target)||!o.current||!document.activeElement))switch(i.key){case"Tab":if(u==="tab"){let p=O.$9bf71ea28793e738$export$2d6ec8fc375ceafa(o.current,{tabbable:!0});p.currentNode=document.activeElement,(i.shiftKey?p.previousNode():p.nextNode())&&i.stopPropagation()}}},Ve=J.$ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(r.props),je=M.hasAction?Ve:{},j=B.$3ef42575df84b30b$export$9d1611c77c2fe928(z,je,{role:"row",onKeyDownCapture:Ne,onKeyDown:qe,onFocus:ze,"aria-label":r.textValue||void 0,"aria-selected":e.selectionManager.canSelectItem(r.key)?e.selectionManager.isSelected(r.key):void 0,"aria-disabled":e.selectionManager.isDisabled(r.key)||void 0,"aria-labelledby":f&&r.textValue?`${I(e,r.key)} ${f}`:void 0,id:I(e,r.key)});if(n){let{collection:i}=e,p=[...i];j["aria-rowindex"]=p.find(m=>m.type==="section")?[...i.getKeys()].filter(m=>{var $;return(($=i.getItem(m))===null||$===void 0?void 0:$.type)!=="section"}).findIndex(m=>m===r.key)+1:r.index+1}let Oe={role:"gridcell","aria-colindex":1};return{rowProps:{...B.$3ef42575df84b30b$export$9d1611c77c2fe928(j,k)},gridCellProps:Oe,descriptionProps:{id:f},...M}}function U(t){let e=null,o=null;do o=t.lastChild(),o&&(e=o);while(o);return e}const X=new WeakMap;function no(t,e,o){let{direction:a}=W.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),c=t.keyboardDelegate||new S.$2a25aae57d74318e$export$a05409b8bb224a5a({collection:e.collection,ref:o,orientation:"horizontal",direction:a,disabledKeys:e.disabledKeys,disabledBehavior:e.selectionManager.disabledBehavior}),{labelProps:r,fieldProps:n,descriptionProps:d,errorMessageProps:s}=Ye.$2baaea4c71418dea$export$294aa081a6c6f55d({...t,labelElementType:"span"}),{gridProps:x}=ao({...t,...n,keyboardDelegate:c,shouldFocusWrap:!0,linkBehavior:"override",keyboardNavigationBehavior:"tab"},e,o),[u,g]=l.useState(!1),{focusWithinProps:f}=Ze.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithinChange:g}),v=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t),b=l.useRef(e.collection.size);return l.useEffect(()=>{o.current&&b.current>0&&e.collection.size===0&&u&&o.current.focus(),b.current=e.collection.size},[e.collection.size,u,o]),X.set(e,{onRemove:t.onRemove}),{gridProps:B.$3ef42575df84b30b$export$9d1611c77c2fe928(x,v,{role:e.collection.size?"grid":"group","aria-atomic":!1,"aria-relevant":"additions","aria-live":u?"polite":"off",...f,...n}),labelProps:r,descriptionProps:d,errorMessageProps:s}}var Y={};Y={removeButtonLabel:"إزالة",removeDescription:"اضغط على مفتاح DELETE لإزالة علامة."};var Z={};Z={removeButtonLabel:"Премахване",removeDescription:"Натиснете Delete, за да премахнете маркера."};var _={};_={removeButtonLabel:"Odebrat",removeDescription:"Stisknutím klávesy Delete odeberete značku."};var ee={};ee={removeButtonLabel:"Fjern",removeDescription:"Tryk på Slet for at fjerne tag."};var oe={};oe={removeButtonLabel:"Entfernen",removeDescription:"Auf „Löschen“ drücken, um das Tag zu entfernen."};var te={};te={removeButtonLabel:"Κατάργηση",removeDescription:"Πατήστε Διαγραφή για να καταργήσετε την ετικέτα."};var re={};re={removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"};var ae={};ae={removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."};var ie={};ie={removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."};var ne={};ne={removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."};var le={};le={removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l’étiquette."};var ue={};ue={removeButtonLabel:"הסר",removeDescription:"לחץ על מחק כדי להסיר תג."};var ce={};ce={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."};var de={};de={removeButtonLabel:"Eltávolítás",removeDescription:"Nyomja meg a Delete billentyűt a címke eltávolításához."};var se={};se={removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."};var fe={};fe={removeButtonLabel:"削除",removeDescription:"タグを削除するには、Delete キーを押します。"};var be={};be={removeButtonLabel:"제거",removeDescription:"태그를 제거하려면 Delete 키를 누르십시오."};var pe={};pe={removeButtonLabel:"Pašalinti",removeDescription:"Norėdami pašalinti žymą, paspauskite „Delete“ klavišą."};var $e={};$e={removeButtonLabel:"Noņemt",removeDescription:"Nospiediet Delete [Dzēst], lai noņemtu tagu."};var ve={};ve={removeButtonLabel:"Fjern",removeDescription:"Trykk på Slett for å fjerne taggen."};var xe={};xe={removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."};var me={};me={removeButtonLabel:"Usuń",removeDescription:"Naciśnij Usuń, aby usunąć znacznik."};var ge={};ge={removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."};var ye={};ye={removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."};var De={};De={removeButtonLabel:"Îndepărtaţi",removeDescription:"Apăsați pe Delete (Ștergere) pentru a elimina eticheta."};var Be={};Be={removeButtonLabel:"Удалить",removeDescription:"Нажмите DELETE, чтобы удалить тег."};var Pe={};Pe={removeButtonLabel:"Odstrániť",removeDescription:"Ak chcete odstrániť značku, stlačte kláves Delete."};var he={};he={removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."};var ke={};ke={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obriši da biste uklonili oznaku."};var Ee={};Ee={removeButtonLabel:"Ta bort",removeDescription:"Tryck på Radera för att ta bort taggen."};var Ce={};Ce={removeButtonLabel:"Kaldır",removeDescription:"Etiketi kaldırmak için Sil tuşuna basın."};var we={};we={removeButtonLabel:"Вилучити",removeDescription:"Натисніть Delete, щоб вилучити тег."};var Le={};Le={removeButtonLabel:"删除",removeDescription:"按下“删除”以删除标记。"};var Ae={};Ae={removeButtonLabel:"移除",removeDescription:"按 Delete 鍵以移除標記。"};var Te={};Te={"ar-AE":Y,"bg-BG":Z,"cs-CZ":_,"da-DK":ee,"de-DE":oe,"el-GR":te,"en-US":re,"es-ES":ae,"et-EE":ie,"fi-FI":ne,"fr-FR":le,"he-IL":ue,"hr-HR":ce,"hu-HU":de,"it-IT":se,"ja-JP":fe,"ko-KR":be,"lt-LT":pe,"lv-LV":$e,"nb-NO":ve,"nl-NL":xe,"pl-PL":me,"pt-BR":ge,"pt-PT":ye,"ro-RO":De,"ru-RU":Be,"sk-SK":Pe,"sl-SI":he,"sr-SP":ke,"sv-SE":Ee,"tr-TR":Ce,"uk-UA":we,"zh-CN":Le,"zh-TW":Ae};function lo(t){return t&&t.__esModule?t.default:t}function uo(t,e,o){let{item:a}=t,c=eo.$fca6afa0e843324b$export$f12b703ca79dfbb1(lo(Te),"@react-aria/tag"),r=B.$bdb11010cef70236$export$f680877a34711e37(),{onRemove:n}=X.get(e)||{},{rowProps:d,gridCellProps:s,...x}=io({node:a},e,o),{descriptionProps:u,...g}=x,f=e.disabledKeys.has(a.key)||a.props.isDisabled,v=M=>{if(M.key==="Delete"||M.key==="Backspace"){if(f)return;M.preventDefault(),e.selectionManager.isSelected(a.key)?n?.(new Set(e.selectionManager.selectedKeys)):n?.(new Set([a.key]))}},b=Q.$507fabe10e71c6fb$export$98e20ec92f614cfe();b==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(b="pointer");let k=n&&(b==="keyboard"||b==="virtual")?c.format("removeDescription"):"",D=y.$ef06256079686ba0$export$f8aeda7b10753fa1(k),P=a.key===e.selectionManager.focusedKey,L=e.selectionManager.focusedKey!=null,A=-1;!f&&(P||!L)&&(A=0);let h=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a.props),F=J.$ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(a.props),{focusableProps:z}=_e.$f645667febf57a63$export$4c014de7c8940b4c({isDisabled:f},o);return{removeButtonProps:{"aria-label":c.format("removeButtonLabel"),"aria-labelledby":`${r} ${d.id}`,isDisabled:f,id:r,onPress:()=>n?n(new Set([a.key])):null},rowProps:B.$3ef42575df84b30b$export$9d1611c77c2fe928(z,d,h,F,{tabIndex:A,onKeyDown:n?v:void 0,"aria-describedby":D["aria-describedby"]}),gridCellProps:B.$3ef42575df84b30b$export$9d1611c77c2fe928(s,{"aria-errormessage":t["aria-errormessage"],"aria-label":t["aria-label"]}),...g,allowsRemoving:!!n}}const co=l.createContext(null),Se=l.createContext(null),so=l.forwardRef(function(e,o){return[e,o]=w.$64fa3d84918910a7$export$29f1550f4b0d4415(e,o,co),l.createElement(N.$e1995378a142960e$export$bf788dd355e3a401,{content:e.children},a=>l.createElement(fo,{props:e,forwardedRef:o,collection:a}))});function fo({props:t,forwardedRef:e,collection:o}){let a;[a]=w.$64fa3d84918910a7$export$29f1550f4b0d4415({},null,S.$8e6cc465cc68f603$export$b0d3ecf7112093a7);let{filter:c,...r}=a,{shouldUseVirtualFocus:n,disallowTypeAhead:d,...s}=r||{},x=l.useRef(null),[u,g]=w.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!t["aria-label"]&&!t["aria-labelledby"]),f=R.$e72dd72e1c76a225$export$2f645645f7bca764({...t,children:void 0,collection:o}),v=R.$e72dd72e1c76a225$export$ba9d38c0f1bf2b36(f,c),b=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0}),k=Object.fromEntries(Object.entries(b).map(([F])=>[F,void 0])),{gridProps:D,labelProps:P,descriptionProps:L,errorMessageProps:A}=no({...t,...k,...s,label:g},v,x);var h;return l.createElement("div",{...b,ref:e,slot:t.slot||void 0,className:(h=t.className)!==null&&h!==void 0?h:"react-aria-TagGroup",style:t.style},l.createElement(w.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[He.$01b77f81d0f07f68$export$75b6ee27786ba447,{...P,elementType:"span",ref:u}],[Se,{...D,ref:x}],[R.$eed445e0843c11d0$export$7c5906fe4f1f2af2,v],[We.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:L,errorMessage:A}}]]},t.children))}const bo=l.forwardRef(function(e,o){return l.useContext(R.$eed445e0843c11d0$export$7c5906fe4f1f2af2)?l.createElement(po,{props:e,forwardedRef:o}):l.createElement(N.$e1995378a142960e$export$fb8073518f34e6ec,e)});function po({props:t,forwardedRef:e}){let o=l.useContext(R.$eed445e0843c11d0$export$7c5906fe4f1f2af2),{CollectionRoot:a}=l.useContext(S.$7135fc7d473fd974$export$4feb769f8ddf26c5),[c,r]=w.$64fa3d84918910a7$export$29f1550f4b0d4415({},e,Se),{focusProps:n,isFocused:d,isFocusVisible:s}=H.$f7dceffc5ad7768b$export$4e328f61c538687f(),x={isEmpty:o.collection.size===0,isFocused:d,isFocusVisible:s,state:o},u=w.$64fa3d84918910a7$export$4d86445c2cf5e3({className:t.className,style:t.style,defaultClassName:"react-aria-TagList",values:x}),g=S.$7135fc7d473fd974$export$90e00781bc59d8f9(o.selectionManager.focusedKey),f=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0});return l.createElement("div",{...B.$3ef42575df84b30b$export$9d1611c77c2fe928(f,u,c,n),ref:r,"data-empty":o.collection.size===0||void 0,"data-focused":d||void 0,"data-focus-visible":s||void 0},o.collection.size===0&&t.renderEmptyState?t.renderEmptyState(x):l.createElement(a,{collection:o.collection,persistedKeys:g}))}const $o=N.$e1995378a142960e$export$18af5c7a9e9b3664(N.$23b9f4fcf0fe224b$export$fd11f34e1d07f134,(t,e,o)=>{let a=l.useContext(R.$eed445e0843c11d0$export$7c5906fe4f1f2af2),c=Je.$df56164dff5785e2$export$4338b53315abf666(e),{focusProps:r,isFocusVisible:n}=H.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!1}),{rowProps:d,gridCellProps:s,removeButtonProps:x,...u}=uo({item:o},a,c),{hoverProps:g,isHovered:f}=Qe.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:!u.allowsSelection,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),v=w.$64fa3d84918910a7$export$4d86445c2cf5e3({...t,id:void 0,children:o.rendered,defaultClassName:"react-aria-Tag",values:{...u,isFocusVisible:n,isHovered:f,selectionMode:a.selectionManager.selectionMode,selectionBehavior:a.selectionManager.selectionBehavior}});l.useEffect(()=>{!o.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <Tag> elements with non-plain text children for accessibility.")},[o.textValue]);let b=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0});return delete b.id,delete b.onClick,l.createElement("div",{ref:c,...B.$3ef42575df84b30b$export$9d1611c77c2fe928(b,v,d,r,g),"data-selected":u.isSelected||void 0,"data-disabled":u.isDisabled||void 0,"data-hovered":f||void 0,"data-focused":u.isFocused||void 0,"data-focus-visible":n||void 0,"data-pressed":u.isPressed||void 0,"data-allows-removing":u.allowsRemoving||void 0,"data-selection-mode":a.selectionManager.selectionMode==="none"?void 0:a.selectionManager.selectionMode},l.createElement("div",{...s,style:{display:"contents"}},l.createElement(w.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[Ue.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:{remove:x}}],[S.$7135fc7d473fd974$export$4feb769f8ddf26c5,S.$7135fc7d473fd974$export$a164736487e3f0ae]]},v.children)))}),{withProvider:vo,withContext:Fe}=Ge.createSlotRecipeContext({key:"taggroup"}),xo=vo(so,"root"),mo=t=>{const{ref:e,...o}=t,a=Fe(bo,"tagList");return C.jsx(a,{...o,ref:e})},go=Fe($o,"tag"),Me=({children:t,onRemove:e,selectionMode:o,ref:a,...c})=>(e&&(o==="multiple"||o==="single")&&console.warn('Nimbus TagGroup: when "selectionMode" is "single" or "mutiple", Tags cannot be removed'),C.jsx(xo,{ref:a,onRemove:e,selectionMode:o,...c,children:t}));Me.displayName="TagGroup.Root";const Re=({children:t,ref:e,...o})=>C.jsx(mo,{ref:e,...o,children:t});Re.displayName="TagGroup.TagList";const Ke=({children:t,ref:e,...o})=>{const a=typeof t=="string"?t:void 0;return C.jsx(go,{ref:e,textValue:a,...o,children:({allowsRemoving:c,isSelected:r,selectionMode:n})=>C.jsxs(C.Fragment,{children:[t,c&&n!=="multiple"&&n!=="single"&&C.jsx(to.IconButton,{size:"2xs",variant:r?"solid":"ghost",slot:"remove",tone:r?void 0:"neutral",children:C.jsx(oo.Close,{})})]})})};Ke.displayName="TagGroup.Tag";const yo={Root:Me,TagList:Re,Tag:Ke};exports.TagGroup=yo;
2
+ //# sourceMappingURL=tag-group-C-z2DfdF.cjs.js.map