@commercetools/nimbus 2.0.1-rc3 → 2.0.1

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 (325) hide show
  1. package/dist/chunks/{accordion-CKDnNkVv.es.js → accordion-CrISuCHH.es.js} +2 -2
  2. package/dist/chunks/accordion-CrISuCHH.es.js.map +1 -0
  3. package/dist/chunks/accordion-D7a9HHSH.cjs.js +2 -0
  4. package/dist/chunks/accordion-D7a9HHSH.cjs.js.map +1 -0
  5. package/dist/chunks/calendar-0Tr21POc.cjs.js +2 -0
  6. package/dist/chunks/calendar-0Tr21POc.cjs.js.map +1 -0
  7. package/dist/chunks/{calendar-lD6G93R9.es.js → calendar-okvAi9qK.es.js} +2 -2
  8. package/dist/chunks/calendar-okvAi9qK.es.js.map +1 -0
  9. package/dist/chunks/{checkbox-BB-WJdal.es.js → checkbox-Bp0eyZ6q.es.js} +2 -2
  10. package/dist/chunks/{checkbox-BB-WJdal.es.js.map → checkbox-Bp0eyZ6q.es.js.map} +1 -1
  11. package/dist/chunks/checkbox-QQkdNVJO.cjs.js +2 -0
  12. package/dist/chunks/{checkbox-Dod-yTj4.cjs.js.map → checkbox-QQkdNVJO.cjs.js.map} +1 -1
  13. package/dist/chunks/collapsible-motion-CykDlHn3.cjs.js +2 -0
  14. package/dist/chunks/collapsible-motion-CykDlHn3.cjs.js.map +1 -0
  15. package/dist/chunks/{collapsible-motion-CSrKjF8X.es.js → collapsible-motion-DPqgzRWq.es.js} +2 -2
  16. package/dist/chunks/collapsible-motion-DPqgzRWq.es.js.map +1 -0
  17. package/dist/chunks/combobox-Bntl4sYo.cjs.js +2 -0
  18. package/dist/chunks/{combobox-B5UxZWSX.cjs.js.map → combobox-Bntl4sYo.cjs.js.map} +1 -1
  19. package/dist/chunks/{combobox-D_7gr3DY.es.js → combobox-DYREbkL7.es.js} +2 -2
  20. package/dist/chunks/{combobox-D_7gr3DY.es.js.map → combobox-DYREbkL7.es.js.map} +1 -1
  21. package/dist/chunks/data-table-BhV1DJXJ.cjs.js +2 -0
  22. package/dist/chunks/{data-table-C51WU0Cc.cjs.js.map → data-table-BhV1DJXJ.cjs.js.map} +1 -1
  23. package/dist/chunks/{data-table-ClMivKY1.es.js → data-table-TSza8b10.es.js} +4 -4
  24. package/dist/chunks/{data-table-ClMivKY1.es.js.map → data-table-TSza8b10.es.js.map} +1 -1
  25. package/dist/chunks/date-input-B84sXbjL.cjs.js +2 -0
  26. package/dist/chunks/date-input-B84sXbjL.cjs.js.map +1 -0
  27. package/dist/chunks/{date-input-Cap8-3zj.es.js → date-input-BiOdvpWz.es.js} +2 -2
  28. package/dist/chunks/date-input-BiOdvpWz.es.js.map +1 -0
  29. package/dist/chunks/date-picker-2SDD5gY9.cjs.js +2 -0
  30. package/dist/chunks/{date-picker-CZAoPNsT.cjs.js.map → date-picker-2SDD5gY9.cjs.js.map} +1 -1
  31. package/dist/chunks/{date-picker-ChZ8H-MT.es.js → date-picker-EuMU6RtR.es.js} +5 -5
  32. package/dist/chunks/{date-picker-ChZ8H-MT.es.js.map → date-picker-EuMU6RtR.es.js.map} +1 -1
  33. package/dist/chunks/{date-range-picker-DGWMdcAN.es.js → date-range-picker-CL-QH8BW.es.js} +5 -5
  34. package/dist/chunks/{date-range-picker-DGWMdcAN.es.js.map → date-range-picker-CL-QH8BW.es.js.map} +1 -1
  35. package/dist/chunks/date-range-picker-DmHmhMvU.cjs.js +2 -0
  36. package/dist/chunks/{date-range-picker-iENzosfN.cjs.js.map → date-range-picker-DmHmhMvU.cjs.js.map} +1 -1
  37. package/dist/chunks/{dialog-CKwC3dk3.cjs.js → dialog-BeKbQUsU.cjs.js} +2 -2
  38. package/dist/chunks/{dialog-CKwC3dk3.cjs.js.map → dialog-BeKbQUsU.cjs.js.map} +1 -1
  39. package/dist/chunks/{dialog-BwtIcIvd.es.js → dialog-C9Dn6GoU.es.js} +2 -2
  40. package/dist/chunks/{dialog-BwtIcIvd.es.js.map → dialog-C9Dn6GoU.es.js.map} +1 -1
  41. package/dist/chunks/{dialog.title-CP_ZeiK4.es.js → dialog.title-CfBfNT9q.es.js} +2 -2
  42. package/dist/chunks/dialog.title-CfBfNT9q.es.js.map +1 -0
  43. package/dist/chunks/dialog.title-CynBe3KN.cjs.js +2 -0
  44. package/dist/chunks/dialog.title-CynBe3KN.cjs.js.map +1 -0
  45. package/dist/chunks/{draggable-list-s43baxoM.es.js → draggable-list-3KlajQgQ.es.js} +3 -3
  46. package/dist/chunks/{draggable-list-s43baxoM.es.js.map → draggable-list-3KlajQgQ.es.js.map} +1 -1
  47. package/dist/chunks/{draggable-list-MGvr5-A-.cjs.js → draggable-list-uMR8JUsT.cjs.js} +2 -2
  48. package/dist/chunks/{draggable-list-MGvr5-A-.cjs.js.map → draggable-list-uMR8JUsT.cjs.js.map} +1 -1
  49. package/dist/chunks/{drawer-BJ4qvGnj.es.js → drawer-CT5qAdLo.es.js} +2 -2
  50. package/dist/chunks/drawer-CT5qAdLo.es.js.map +1 -0
  51. package/dist/chunks/drawer-vgDYdzlq.cjs.js +2 -0
  52. package/dist/chunks/drawer-vgDYdzlq.cjs.js.map +1 -0
  53. package/dist/chunks/{extractStyleProps-DYXEhLtq.es.js → extract-style-props-DYXEhLtq.es.js} +1 -1
  54. package/dist/chunks/extract-style-props-DYXEhLtq.es.js.map +1 -0
  55. package/dist/chunks/{extractStyleProps-Dk3fpLyQ.cjs.js → extract-style-props-Dk3fpLyQ.cjs.js} +1 -1
  56. package/dist/chunks/extract-style-props-Dk3fpLyQ.cjs.js.map +1 -0
  57. package/dist/chunks/group-BqUFlw5R.cjs.js.map +1 -1
  58. package/dist/chunks/group-CWADf2vF.es.js.map +1 -1
  59. package/dist/chunks/icon-CenxuChf.es.js.map +1 -1
  60. package/dist/chunks/icon-D39U--jA.cjs.js.map +1 -1
  61. package/dist/chunks/{icon-toggle-button-Bi-9Obfx.es.js → icon-toggle-button-Bt_1Mdus.es.js} +2 -2
  62. package/dist/chunks/{icon-toggle-button-Bi-9Obfx.es.js.map → icon-toggle-button-Bt_1Mdus.es.js.map} +1 -1
  63. package/dist/chunks/{icon-toggle-button-eLrsWehe.cjs.js → icon-toggle-button-Bv-FwWwz.cjs.js} +2 -2
  64. package/dist/chunks/{icon-toggle-button-eLrsWehe.cjs.js.map → icon-toggle-button-Bv-FwWwz.cjs.js.map} +1 -1
  65. package/dist/chunks/kbd-BaeV_DL-.cjs.js.map +1 -1
  66. package/dist/chunks/kbd-CH9rYghB.es.js.map +1 -1
  67. package/dist/chunks/{localized-field-D3G0Uy7Z.es.js → localized-field-Bp4N2Mvl.es.js} +5 -5
  68. package/dist/chunks/{localized-field-D3G0Uy7Z.es.js.map → localized-field-Bp4N2Mvl.es.js.map} +1 -1
  69. package/dist/chunks/{localized-field-C7Vribb2.cjs.js → localized-field-Cmwb6fmQ.cjs.js} +2 -2
  70. package/dist/chunks/{localized-field-C7Vribb2.cjs.js.map → localized-field-Cmwb6fmQ.cjs.js.map} +1 -1
  71. package/dist/chunks/menu-SXtkybBB.cjs.js +2 -0
  72. package/dist/chunks/menu-SXtkybBB.cjs.js.map +1 -0
  73. package/dist/chunks/{menu-D-vE6ZpM.es.js → menu-XKnGXngu.es.js} +2 -2
  74. package/dist/chunks/menu-XKnGXngu.es.js.map +1 -0
  75. package/dist/chunks/{money-input-sk0Slpeu.es.js → money-input-BqYBGLzc.es.js} +4 -4
  76. package/dist/chunks/{money-input-sk0Slpeu.es.js.map → money-input-BqYBGLzc.es.js.map} +1 -1
  77. package/dist/chunks/money-input-Cz8E18lq.cjs.js +2 -0
  78. package/dist/chunks/{money-input-Cu_J86Eu.cjs.js.map → money-input-Cz8E18lq.cjs.js.map} +1 -1
  79. package/dist/chunks/{multiline-text-input-CilSJJaO.es.js → multiline-text-input-AyyHGKY2.es.js} +2 -2
  80. package/dist/chunks/multiline-text-input-AyyHGKY2.es.js.map +1 -0
  81. package/dist/chunks/multiline-text-input-jGidPD3q.cjs.js +2 -0
  82. package/dist/chunks/multiline-text-input-jGidPD3q.cjs.js.map +1 -0
  83. package/dist/chunks/number-input-CynG_F-c.cjs.js +2 -0
  84. package/dist/chunks/{number-input-wMW-o4di.cjs.js.map → number-input-CynG_F-c.cjs.js.map} +1 -1
  85. package/dist/chunks/{number-input-CktMxOdZ.es.js → number-input-rotBI7ui.es.js} +2 -2
  86. package/dist/chunks/{number-input-CktMxOdZ.es.js.map → number-input-rotBI7ui.es.js.map} +1 -1
  87. package/dist/chunks/{pagination-BWdg8s6g.cjs.js → pagination-DdMhz-Ka.cjs.js} +2 -2
  88. package/dist/chunks/{pagination-BWdg8s6g.cjs.js.map → pagination-DdMhz-Ka.cjs.js.map} +1 -1
  89. package/dist/chunks/{pagination-Bcq69Nv3.es.js → pagination-Dqt0f5WQ.es.js} +3 -3
  90. package/dist/chunks/{pagination-Bcq69Nv3.es.js.map → pagination-Dqt0f5WQ.es.js.map} +1 -1
  91. package/dist/chunks/{password-input-6SMjhXSO.cjs.js → password-input-BVHKD6s2.cjs.js} +2 -2
  92. package/dist/chunks/{password-input-6SMjhXSO.cjs.js.map → password-input-BVHKD6s2.cjs.js.map} +1 -1
  93. package/dist/chunks/{password-input-6MO4I-2j.es.js → password-input-DRmX3C3I.es.js} +2 -2
  94. package/dist/chunks/{password-input-6MO4I-2j.es.js.map → password-input-DRmX3C3I.es.js.map} +1 -1
  95. package/dist/chunks/popover-CfEq5G5-.cjs.js.map +1 -1
  96. package/dist/chunks/popover-DNaC7CwB.es.js.map +1 -1
  97. package/dist/chunks/progress-bar-CmQaITmw.cjs.js +2 -0
  98. package/dist/chunks/progress-bar-CmQaITmw.cjs.js.map +1 -0
  99. package/dist/chunks/{progress-bar-DwuOjOcH.es.js → progress-bar-DGFMl3Vg.es.js} +2 -2
  100. package/dist/chunks/progress-bar-DGFMl3Vg.es.js.map +1 -0
  101. package/dist/chunks/radio-input-Cg5MZ21w.cjs.js +2 -0
  102. package/dist/chunks/{radio-input-Dp05SXja.cjs.js.map → radio-input-Cg5MZ21w.cjs.js.map} +1 -1
  103. package/dist/chunks/{radio-input-4jw6HUjC.es.js → radio-input-DPwU5M16.es.js} +2 -2
  104. package/dist/chunks/{radio-input-4jw6HUjC.es.js.map → radio-input-DPwU5M16.es.js.map} +1 -1
  105. package/dist/chunks/{range-calendar-DBpl6y5i.es.js → range-calendar-PUt59Hda.es.js} +2 -2
  106. package/dist/chunks/range-calendar-PUt59Hda.es.js.map +1 -0
  107. package/dist/chunks/range-calendar-lhmomEF_.cjs.js +2 -0
  108. package/dist/chunks/range-calendar-lhmomEF_.cjs.js.map +1 -0
  109. package/dist/chunks/{rich-text-input-BC8CBVio.es.js → rich-text-input-Cm0M04n-.es.js} +6 -6
  110. package/dist/chunks/rich-text-input-Cm0M04n-.es.js.map +1 -0
  111. package/dist/chunks/{rich-text-input-Da5WFZ3l.cjs.js → rich-text-input-DqwZD5Di.cjs.js} +2 -2
  112. package/dist/chunks/rich-text-input-DqwZD5Di.cjs.js.map +1 -0
  113. package/dist/chunks/search-input-BvJKOCVM.cjs.js +2 -0
  114. package/dist/chunks/{search-input-BefkmgPy.cjs.js.map → search-input-BvJKOCVM.cjs.js.map} +1 -1
  115. package/dist/chunks/{search-input-DJy2NHYW.es.js → search-input-C8cD1bnn.es.js} +2 -2
  116. package/dist/chunks/{search-input-DJy2NHYW.es.js.map → search-input-C8cD1bnn.es.js.map} +1 -1
  117. package/dist/chunks/select-DfuSGQSs.cjs.js +2 -0
  118. package/dist/chunks/{select-DMsU6bk9.cjs.js.map → select-DfuSGQSs.cjs.js.map} +1 -1
  119. package/dist/chunks/{select-BmMhTBo-.es.js → select-X1qJU5Yn.es.js} +2 -2
  120. package/dist/chunks/{select-BmMhTBo-.es.js.map → select-X1qJU5Yn.es.js.map} +1 -1
  121. package/dist/chunks/{separator-DJGUFG-o.es.js → separator-BHD3Ztot.es.js} +2 -2
  122. package/dist/chunks/separator-BHD3Ztot.es.js.map +1 -0
  123. package/dist/chunks/separator-FEY8A05K.cjs.js +2 -0
  124. package/dist/chunks/separator-FEY8A05K.cjs.js.map +1 -0
  125. package/dist/chunks/{split-button-BxyZmuNi.es.js → split-button-LENwoBTF.es.js} +2 -2
  126. package/dist/chunks/split-button-LENwoBTF.es.js.map +1 -0
  127. package/dist/chunks/{split-button-BO52sL7h.cjs.js → split-button-go3Ez6Ea.cjs.js} +2 -2
  128. package/dist/chunks/split-button-go3Ez6Ea.cjs.js.map +1 -0
  129. package/dist/chunks/{switch-01hEhL9A.es.js → switch-BDRu376G.es.js} +2 -2
  130. package/dist/chunks/switch-BDRu376G.es.js.map +1 -0
  131. package/dist/chunks/switch-RPIMfaqs.cjs.js +2 -0
  132. package/dist/chunks/switch-RPIMfaqs.cjs.js.map +1 -0
  133. package/dist/chunks/{tabs-Dhte-RCe.es.js → tabs-BtWK-J_p.es.js} +2 -2
  134. package/dist/chunks/{tabs-Dhte-RCe.es.js.map → tabs-BtWK-J_p.es.js.map} +1 -1
  135. package/dist/chunks/tabs-CEB3Dfex.cjs.js +2 -0
  136. package/dist/chunks/{tabs-CJ0OAUSR.cjs.js.map → tabs-CEB3Dfex.cjs.js.map} +1 -1
  137. package/dist/chunks/tag-group-Btt0egzG.cjs.js.map +1 -1
  138. package/dist/chunks/tag-group-D2dgXSsV.es.js.map +1 -1
  139. package/dist/chunks/text-input-CKGfCx6k.cjs.js +2 -0
  140. package/dist/chunks/text-input-CKGfCx6k.cjs.js.map +1 -0
  141. package/dist/chunks/{text-input-CSAODlCw.es.js → text-input-DNorjU50.es.js} +2 -2
  142. package/dist/chunks/text-input-DNorjU50.es.js.map +1 -0
  143. package/dist/chunks/{time-input--a_qv-Jk.es.js → time-input-B6we5H7C.es.js} +2 -2
  144. package/dist/chunks/time-input-B6we5H7C.es.js.map +1 -0
  145. package/dist/chunks/time-input-CweVZv1Q.cjs.js +2 -0
  146. package/dist/chunks/time-input-CweVZv1Q.cjs.js.map +1 -0
  147. package/dist/chunks/toggle-button-CLEgCPGX.cjs.js +2 -0
  148. package/dist/chunks/toggle-button-CLEgCPGX.cjs.js.map +1 -0
  149. package/dist/chunks/{toggle-button-awb1jBf8.es.js → toggle-button-D3M4e72c.es.js} +2 -2
  150. package/dist/chunks/toggle-button-D3M4e72c.es.js.map +1 -0
  151. package/dist/chunks/{toolbar-Dduysqqi.es.js → toolbar-Bn9pAwjU.es.js} +2 -2
  152. package/dist/chunks/toolbar-Bn9pAwjU.es.js.map +1 -0
  153. package/dist/chunks/toolbar-D3Jj83mp.cjs.js +2 -0
  154. package/dist/chunks/{toolbar-DV0l5MqA.cjs.js.map → toolbar-D3Jj83mp.cjs.js.map} +1 -1
  155. package/dist/chunks/tooltip-BPTOkK7W.cjs.js.map +1 -1
  156. package/dist/chunks/tooltip-sgakxhiy.es.js.map +1 -1
  157. package/dist/components/accordion/accordion.slots.d.ts +1 -1
  158. package/dist/components/accordion/accordion.types.d.ts +4 -4
  159. package/dist/components/accordion.cjs +1 -1
  160. package/dist/components/accordion.es.js +1 -1
  161. package/dist/components/calendar/calendar.slots.d.ts +1 -1
  162. package/dist/components/calendar.cjs +1 -1
  163. package/dist/components/calendar.es.js +1 -1
  164. package/dist/components/checkbox.cjs +1 -1
  165. package/dist/components/checkbox.es.js +1 -1
  166. package/dist/components/collapsible-motion/collapsible-motion.slots.d.ts +1 -1
  167. package/dist/components/collapsible-motion.cjs +1 -1
  168. package/dist/components/collapsible-motion.es.js +1 -1
  169. package/dist/components/combobox/combobox.slots.d.ts +1 -1
  170. package/dist/components/combobox.cjs +1 -1
  171. package/dist/components/combobox.es.js +1 -1
  172. package/dist/components/components.cjs +1 -1
  173. package/dist/components/components.es.js +1 -1
  174. package/dist/components/data-table.cjs +1 -1
  175. package/dist/components/data-table.es.js +1 -1
  176. package/dist/components/date-input.cjs +1 -1
  177. package/dist/components/date-input.es.js +1 -1
  178. package/dist/components/date-picker.cjs +1 -1
  179. package/dist/components/date-picker.es.js +1 -1
  180. package/dist/components/date-range-picker.cjs +1 -1
  181. package/dist/components/date-range-picker.es.js +1 -1
  182. package/dist/components/dialog.cjs +1 -1
  183. package/dist/components/dialog.es.js +1 -1
  184. package/dist/components/draggable-list.cjs +1 -1
  185. package/dist/components/draggable-list.es.js +1 -1
  186. package/dist/components/drawer.cjs +1 -1
  187. package/dist/components/drawer.es.js +1 -1
  188. package/dist/components/group/group.slots.d.ts +1 -1
  189. package/dist/components/icon/icon.slots.d.ts +1 -1
  190. package/dist/components/icon-toggle-button.cjs +1 -1
  191. package/dist/components/icon-toggle-button.es.js +1 -1
  192. package/dist/components/kbd/kbd.slots.d.ts +1 -1
  193. package/dist/components/localized-field.cjs +1 -1
  194. package/dist/components/localized-field.es.js +1 -1
  195. package/dist/components/menu/menu.slots.d.ts +1 -1
  196. package/dist/components/money-input.cjs +1 -1
  197. package/dist/components/money-input.es.js +1 -1
  198. package/dist/components/multiline-text-input.cjs +1 -1
  199. package/dist/components/multiline-text-input.es.js +1 -1
  200. package/dist/components/number-input.cjs +1 -1
  201. package/dist/components/number-input.es.js +1 -1
  202. package/dist/components/pagination.cjs +1 -1
  203. package/dist/components/pagination.es.js +1 -1
  204. package/dist/components/password-input.cjs +1 -1
  205. package/dist/components/password-input.es.js +1 -1
  206. package/dist/components/popover/popover.slots.d.ts +1 -1
  207. package/dist/components/progress-bar.cjs +1 -1
  208. package/dist/components/progress-bar.es.js +1 -1
  209. package/dist/components/radio-input.cjs +1 -1
  210. package/dist/components/radio-input.es.js +1 -1
  211. package/dist/components/range-calendar/range-calendar.slots.d.ts +1 -1
  212. package/dist/components/range-calendar.cjs +1 -1
  213. package/dist/components/range-calendar.es.js +1 -1
  214. package/dist/components/rich-text-input/rich-text-input.slots.d.ts +1 -1
  215. package/dist/components/rich-text-input.cjs +1 -1
  216. package/dist/components/rich-text-input.es.js +1 -1
  217. package/dist/components/scoped-search-input.cjs +1 -1
  218. package/dist/components/scoped-search-input.cjs.map +1 -1
  219. package/dist/components/scoped-search-input.es.js +3 -3
  220. package/dist/components/scoped-search-input.es.js.map +1 -1
  221. package/dist/components/search-input.cjs +1 -1
  222. package/dist/components/search-input.es.js +1 -1
  223. package/dist/components/select.cjs +1 -1
  224. package/dist/components/select.es.js +1 -1
  225. package/dist/components/separator/separator.slots.d.ts +1 -1
  226. package/dist/components/separator.cjs +1 -1
  227. package/dist/components/separator.es.js +1 -1
  228. package/dist/components/split-button/split-button.slots.d.ts +1 -1
  229. package/dist/components/split-button.cjs +1 -1
  230. package/dist/components/split-button.es.js +1 -1
  231. package/dist/components/switch/switch.slots.d.ts +1 -1
  232. package/dist/components/switch.cjs +1 -1
  233. package/dist/components/switch.es.js +1 -1
  234. package/dist/components/tabs/tabs.slots.d.ts +1 -1
  235. package/dist/components/tabs.cjs +1 -1
  236. package/dist/components/tabs.es.js +1 -1
  237. package/dist/components/tag-group/tag-group.slots.d.ts +1 -1
  238. package/dist/components/text-input.cjs +1 -1
  239. package/dist/components/text-input.es.js +1 -1
  240. package/dist/components/time-input.cjs +1 -1
  241. package/dist/components/time-input.es.js +1 -1
  242. package/dist/components/toggle-button.cjs +1 -1
  243. package/dist/components/toggle-button.es.js +1 -1
  244. package/dist/components/toolbar.cjs +1 -1
  245. package/dist/components/toolbar.es.js +1 -1
  246. package/dist/components/tooltip/tooltip.slots.d.ts +1 -1
  247. package/dist/components/tooltip/tooltip.types.d.ts +2 -2
  248. package/dist/index.cjs +1 -1
  249. package/dist/index.cjs.map +1 -1
  250. package/dist/index.d.ts +1 -1
  251. package/dist/index.es.js +197 -202
  252. package/dist/index.es.js.map +1 -1
  253. package/dist/type-utils/index.d.ts +2 -0
  254. package/dist/{components/utils/type-helpers.d.ts → type-utils/omit-props.d.ts} +5 -5
  255. package/dist/utils/extract-aria-attributes.d.ts +6 -0
  256. package/dist/utils/index.d.ts +3 -3
  257. package/package.json +5 -5
  258. package/dist/chunks/accordion-B2FLWAh5.cjs.js +0 -2
  259. package/dist/chunks/accordion-B2FLWAh5.cjs.js.map +0 -1
  260. package/dist/chunks/accordion-CKDnNkVv.es.js.map +0 -1
  261. package/dist/chunks/calendar-V0KeNCQ3.cjs.js +0 -2
  262. package/dist/chunks/calendar-V0KeNCQ3.cjs.js.map +0 -1
  263. package/dist/chunks/calendar-lD6G93R9.es.js.map +0 -1
  264. package/dist/chunks/checkbox-Dod-yTj4.cjs.js +0 -2
  265. package/dist/chunks/collapsible-motion-C7M_CLNI.cjs.js +0 -2
  266. package/dist/chunks/collapsible-motion-C7M_CLNI.cjs.js.map +0 -1
  267. package/dist/chunks/collapsible-motion-CSrKjF8X.es.js.map +0 -1
  268. package/dist/chunks/combobox-B5UxZWSX.cjs.js +0 -2
  269. package/dist/chunks/data-table-C51WU0Cc.cjs.js +0 -2
  270. package/dist/chunks/date-input-Cap8-3zj.es.js.map +0 -1
  271. package/dist/chunks/date-input-DvOM0DLT.cjs.js +0 -2
  272. package/dist/chunks/date-input-DvOM0DLT.cjs.js.map +0 -1
  273. package/dist/chunks/date-picker-CZAoPNsT.cjs.js +0 -2
  274. package/dist/chunks/date-range-picker-iENzosfN.cjs.js +0 -2
  275. package/dist/chunks/dialog.title-CP_ZeiK4.es.js.map +0 -1
  276. package/dist/chunks/dialog.title-DOPP47Zy.cjs.js +0 -2
  277. package/dist/chunks/dialog.title-DOPP47Zy.cjs.js.map +0 -1
  278. package/dist/chunks/drawer-BJ4qvGnj.es.js.map +0 -1
  279. package/dist/chunks/drawer-DzW9wBMk.cjs.js +0 -2
  280. package/dist/chunks/drawer-DzW9wBMk.cjs.js.map +0 -1
  281. package/dist/chunks/extractStyleProps-DYXEhLtq.es.js.map +0 -1
  282. package/dist/chunks/extractStyleProps-Dk3fpLyQ.cjs.js.map +0 -1
  283. package/dist/chunks/menu-D-vE6ZpM.es.js.map +0 -1
  284. package/dist/chunks/menu-DIepV2KZ.cjs.js +0 -2
  285. package/dist/chunks/menu-DIepV2KZ.cjs.js.map +0 -1
  286. package/dist/chunks/money-input-Cu_J86Eu.cjs.js +0 -2
  287. package/dist/chunks/multiline-text-input-B9TBDieZ.cjs.js +0 -2
  288. package/dist/chunks/multiline-text-input-B9TBDieZ.cjs.js.map +0 -1
  289. package/dist/chunks/multiline-text-input-CilSJJaO.es.js.map +0 -1
  290. package/dist/chunks/number-input-wMW-o4di.cjs.js +0 -2
  291. package/dist/chunks/progress-bar-Bhp7W6Eo.cjs.js +0 -2
  292. package/dist/chunks/progress-bar-Bhp7W6Eo.cjs.js.map +0 -1
  293. package/dist/chunks/progress-bar-DwuOjOcH.es.js.map +0 -1
  294. package/dist/chunks/radio-input-Dp05SXja.cjs.js +0 -2
  295. package/dist/chunks/range-calendar-DBpl6y5i.es.js.map +0 -1
  296. package/dist/chunks/range-calendar-_dZfAsdG.cjs.js +0 -2
  297. package/dist/chunks/range-calendar-_dZfAsdG.cjs.js.map +0 -1
  298. package/dist/chunks/rich-text-input-BC8CBVio.es.js.map +0 -1
  299. package/dist/chunks/rich-text-input-Da5WFZ3l.cjs.js.map +0 -1
  300. package/dist/chunks/search-input-BefkmgPy.cjs.js +0 -2
  301. package/dist/chunks/select-DMsU6bk9.cjs.js +0 -2
  302. package/dist/chunks/separator-CvRn_J0r.cjs.js +0 -2
  303. package/dist/chunks/separator-CvRn_J0r.cjs.js.map +0 -1
  304. package/dist/chunks/separator-DJGUFG-o.es.js.map +0 -1
  305. package/dist/chunks/split-button-BO52sL7h.cjs.js.map +0 -1
  306. package/dist/chunks/split-button-BxyZmuNi.es.js.map +0 -1
  307. package/dist/chunks/switch-01hEhL9A.es.js.map +0 -1
  308. package/dist/chunks/switch-CdLhBEPq.cjs.js +0 -2
  309. package/dist/chunks/switch-CdLhBEPq.cjs.js.map +0 -1
  310. package/dist/chunks/tabs-CJ0OAUSR.cjs.js +0 -2
  311. package/dist/chunks/text-input-CSAODlCw.es.js.map +0 -1
  312. package/dist/chunks/text-input-DZdkCbdd.cjs.js +0 -2
  313. package/dist/chunks/text-input-DZdkCbdd.cjs.js.map +0 -1
  314. package/dist/chunks/time-input--a_qv-Jk.es.js.map +0 -1
  315. package/dist/chunks/time-input-zXykDANk.cjs.js +0 -2
  316. package/dist/chunks/time-input-zXykDANk.cjs.js.map +0 -1
  317. package/dist/chunks/toggle-button-DxMZsem4.cjs.js +0 -2
  318. package/dist/chunks/toggle-button-DxMZsem4.cjs.js.map +0 -1
  319. package/dist/chunks/toggle-button-awb1jBf8.es.js.map +0 -1
  320. package/dist/chunks/toolbar-DV0l5MqA.cjs.js +0 -2
  321. package/dist/chunks/toolbar-Dduysqqi.es.js.map +0 -1
  322. package/dist/components/utils/index.d.ts +0 -4
  323. /package/dist/{utils → type-utils}/slot-types.d.ts +0 -0
  324. /package/dist/utils/{extractStyleProps.d.ts → extract-style-props.d.ts} +0 -0
  325. /package/dist/utils/{noop.d.ts → no-op.d.ts} +0 -0
@@ -1,2 +0,0 @@
1
- "use strict";const l=require("react/jsx-runtime"),h=require("react"),m=require("@chakra-ui/react"),ie=require("@chakra-ui/react/styled-system"),y=require("./Input-_6sPm9s0.cjs.js"),de=require("./Button-CFZnLKVR.cjs.js"),d=require("./utils-BHdR5Nww.cjs.js"),fe=require("./FieldError-DyGFfqST.cjs.js"),$e=require("./RSPContexts-BdKenzIN.cjs.js"),be=require("./Form-BuOomA4T.cjs.js"),pe=require("./Group-BX1EpD9E.cjs.js"),xe=require("./Label-BgrYyYXn.cjs.js"),ve=require("./Text-BWSfeB9p.cjs.js"),he=require("./Hidden-CNJIJ63M.cjs.js"),Ce=require("./filterDOMProps-WUskt27c.cjs.js"),Pe=require("./useControlledState-D0L6S_5r.cjs.js"),De=require("./mergeProps-BA5Cwf5w.cjs.js"),Be=require("./useLocalizedStringFormatter-sB0mFYtL.cjs.js"),Se=require("./useTextField-0jWzqKW2.cjs.js"),E=require("react-intl"),B=require("@commercetools/nimbus-icons"),me=require("./extractStyleProps-Dk3fpLyQ.cjs.js"),ye=require("./index-CRFg4Mhx.cjs.js"),Ee=require("./useObjectRef-dXOJdONs.cjs.js"),ge=require("./icon-button-vWPrT-bR.cjs.js");var g={};g={"Clear search":"مسح البحث"};var I={};I={"Clear search":"Изчистване на търсене"};var q={};q={"Clear search":"Vymazat hledání"};var R={};R={"Clear search":"Ryd søgning"};var k={};k={"Clear search":"Suche zurücksetzen"};var F={};F={"Clear search":"Απαλοιφή αναζήτησης"};var j={};j={"Clear search":"Clear search"};var A={};A={"Clear search":"Borrar búsqueda"};var V={};V={"Clear search":"Tühjenda otsing"};var z={};z={"Clear search":"Tyhjennä haku"};var M={};M={"Clear search":"Effacer la recherche"};var O={};O={"Clear search":"נקה חיפוש"};var w={};w={"Clear search":"Obriši pretragu"};var T={};T={"Clear search":"Keresés törlése"};var L={};L={"Clear search":"Cancella ricerca"};var K={};K={"Clear search":"検索をクリア"};var N={};N={"Clear search":"검색 지우기"};var _={};_={"Clear search":"Išvalyti iešką"};var U={};U={"Clear search":"Notīrīt meklēšanu"};var G={};G={"Clear search":"Tøm søk"};var H={};H={"Clear search":"Zoekactie wissen"};var W={};W={"Clear search":"Wyczyść zawartość wyszukiwania"};var Z={};Z={"Clear search":"Limpar pesquisa"};var J={};J={"Clear search":"Limpar pesquisa"};var Q={};Q={"Clear search":"Ştergeţi căutarea"};var X={};X={"Clear search":"Очистить поиск"};var Y={};Y={"Clear search":"Vymazať vyhľadávanie"};var ee={};ee={"Clear search":"Počisti iskanje"};var re={};re={"Clear search":"Obriši pretragu"};var ae={};ae={"Clear search":"Rensa sökning"};var te={};te={"Clear search":"Aramayı temizle"};var se={};se={"Clear search":"Очистити пошук"};var ue={};ue={"Clear search":"清除搜索"};var ce={};ce={"Clear search":"清除搜尋條件"};var oe={};oe={"ar-AE":g,"bg-BG":I,"cs-CZ":q,"da-DK":R,"de-DE":k,"el-GR":F,"en-US":j,"es-ES":A,"et-EE":V,"fi-FI":z,"fr-FR":M,"he-IL":O,"hr-HR":w,"hu-HU":T,"it-IT":L,"ja-JP":K,"ko-KR":N,"lt-LT":_,"lv-LV":U,"nb-NO":G,"nl-NL":H,"pl-PL":W,"pt-BR":Z,"pt-PT":J,"ro-RO":Q,"ru-RU":X,"sk-SK":Y,"sl-SI":ee,"sr-SP":re,"sv-SE":ae,"tr-TR":te,"uk-UA":se,"zh-CN":ue,"zh-TW":ce};function Ie(r){return r&&r.__esModule?r.default:r}function qe(r,e,a){let b=Be.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ie(oe),"@react-aria/searchfield"),{isDisabled:c,isReadOnly:u,onSubmit:n,onClear:s,type:p="search"}=r,x=t=>{const $=t.key;$==="Enter"&&(c||u)&&t.preventDefault(),!(c||u)&&($==="Enter"&&n&&(t.preventDefault(),n(e.value)),$==="Escape"&&(e.value===""&&(!a.current||a.current.value==="")?t.continuePropagation():(t.preventDefault(),e.setValue(""),s&&s())))},o=()=>{e.setValue(""),s&&s()},v=()=>{var t;(t=a.current)===null||t===void 0||t.focus()},{labelProps:i,inputProps:C,descriptionProps:P,errorMessageProps:D,...f}=Se.$2d73ec29415bd339$export$712718f7aec83d5({...r,value:e.value,onChange:e.setValue,onKeyDown:u?r.onKeyDown:De.$ff5963eb1fccf552$export$e08e3b67e392101e(x,r.onKeyDown),type:p},a);return{labelProps:i,inputProps:{...C,defaultValue:void 0},clearButtonProps:{"aria-label":b.format("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:c||u,onPress:o,onPressStart:v},descriptionProps:P,errorMessageProps:D,...f}}function Re(r){let[e,a]=Pe.$458b0a5536c1a7cf$export$40bfa8c7b0832715(S(r.value),S(r.defaultValue)||"",r.onChange);return{value:e,setValue:a}}function S(r){if(r!=null)return r.toString()}const ke=h.createContext(null),Fe=he.$f39a9eba43920ace$export$86427a43e3e48ebb(function(e,a){[e,a]=d.$64fa3d84918910a7$export$29f1550f4b0d4415(e,a,ke);let{validationBehavior:b}=d.$64fa3d84918910a7$export$fabf2dc03a41866e(be.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var c,u;let n=(u=(c=e.validationBehavior)!==null&&c!==void 0?c:b)!==null&&u!==void 0?u:"native",s=h.useRef(null);[e,s]=d.$64fa3d84918910a7$export$29f1550f4b0d4415(e,s,$e.$4e85f108e88277b8$export$698f465ec27e93df);let[p,x]=d.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!e["aria-label"]&&!e["aria-labelledby"]),o=Re({...e,validationBehavior:n}),{labelProps:v,inputProps:i,clearButtonProps:C,descriptionProps:P,errorMessageProps:D,...f}=qe({...d.$64fa3d84918910a7$export$ef03459518577ad4(e),label:x,validationBehavior:n},o,s),t=d.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{isEmpty:o.value==="",isDisabled:e.isDisabled||!1,isInvalid:f.isInvalid||!1,state:o},defaultClassName:"react-aria-SearchField"}),$=Ce.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete $.id,h.createElement("div",{...$,...t,ref:a,slot:e.slot||void 0,"data-empty":o.value===""||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":f.isInvalid||void 0},h.createElement(d.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[xe.$01b77f81d0f07f68$export$75b6ee27786ba447,{...v,ref:p}],[y.$3985021b0ad6602f$export$37fb8590cf2c088c,{...i,ref:s}],[de.$d2b4bc8c273e7be6$export$24d547caef80ccd1,C],[ve.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:P,errorMessage:D}}],[pe.$a049562f99e7db0e$export$f9c6924e160136d1,{isInvalid:f.isInvalid,isDisabled:e.isDisabled||!1}],[fe.$ee014567cb39d3f0$export$ff05c3ac10437e03,f]]},t.children))}),{withProvider:je,withContext:le}=m.createSlotRecipeContext({key:"searchInput"}),Ae=je("div","root"),Ve=le("div","leadingElement"),ze=le("input","input"),Me=E.defineMessages({clearInput:{id:"Nimbus.SearchInput.clearInput",description:"aria-label for search input clear button",defaultMessage:"Clear search input"}}),ne=r=>{const{ref:e,...a}=r,b=E.useIntl(),c=ie.useSlotRecipe({recipe:ye.searchInputSlotRecipe}),[u,n]=c.splitVariantProps(a),s=h.useRef(null),p=Ee.$df56164dff5785e2$export$4338b53315abf666(m.mergeRefs(s,e)),[x,o]=me.extractStyleProps(n),v={"data-disabled":r.isDisabled?"true":void 0,"data-invalid":r.isInvalid?"true":"false"};return l.jsx(Fe,{...o,children:({state:i})=>l.jsxs(Ae,{...u,...x,...v,children:[l.jsx(Ve,{children:l.jsx(B.Search,{})}),l.jsx(ze,{asChild:!0,children:l.jsx(y.$3985021b0ad6602f$export$f5b8910cec6cf069,{ref:p})}),l.jsx(ge.IconButton,{slot:"null",size:"2xs",variant:"ghost",tone:"primary","aria-label":b.formatMessage(Me.clearInput),onPress:()=>i.setValue(""),opacity:i.value?1:0,pointerEvents:i.value?"auto":"none",isDisabled:r.isDisabled||r.isReadOnly,children:l.jsx(B.Close,{})})]})})};ne.displayName="SearchInput";exports.SearchInput=ne;
2
- //# sourceMappingURL=search-input-BefkmgPy.cjs.js.map
@@ -1,2 +0,0 @@
1
- "use strict";const c=require("react/jsx-runtime"),l=require("react"),T=require("@chakra-ui/react/styled-system"),_=require("@chakra-ui/react"),L=require("@commercetools/nimbus-icons"),z=require("./Button-CFZnLKVR.cjs.js"),V=require("./Dialog-XGXh4NXU.cjs.js"),M=require("./utils-BHdR5Nww.cjs.js"),ne=require("./FieldError-DyGFfqST.cjs.js"),se=require("./Form-BuOomA4T.cjs.js"),ce=require("./intlStrings-ClBuC6xN.cjs.js"),ee=require("./Label-BgrYyYXn.cjs.js"),j=require("./ListBox-CFvXqaPX.cjs.js"),N=require("./Text-BWSfeB9p.cjs.js"),te=require("./CollectionBuilder-BiEelELF.cjs.js"),de=require("./Hidden-CNJIJ63M.cjs.js"),K=require("./mergeProps-BA5Cwf5w.cjs.js"),G=require("./filterDOMProps-WUskt27c.cjs.js"),le=require("./OverlayArrow-CYjyBtg8.cjs.js"),ue=require("./context-OoV8SSWX.cjs.js"),fe=require("./useLocalizedStringFormatter-sB0mFYtL.cjs.js"),re=require("./useFormValidation-STNSjSmx.cjs.js"),be=require("./useListState-CyKtsfSM.cjs.js"),$e=require("./useControlledState-D0L6S_5r.cjs.js"),pe=require("./useFocusRing-BuJmrp03.cjs.js"),ve=require("./ListKeyboardDelegate-CYRgZzU8.cjs.js"),me=require("./SelectionManager-1rNaWE7D.cjs.js"),xe=require("./useFocusVisible-CN9NILN7.cjs.js"),ye=require("./useCollator-YVJAe1GI.cjs.js"),ge=require("./useField-C_piDZ9g.cjs.js"),he=require("./useFormReset--wPlnEOl.cjs.js"),Se=require("./VisuallyHidden-C1WQXLCm.cjs.js"),oe=require("react-intl"),Pe=require("./icon-button-vWPrT-bR.cjs.js"),qe=require("./index-CRFg4Mhx.cjs.js"),E=require("./extractStyleProps-Dk3fpLyQ.cjs.js"),Re=require("./useObjectRef-dXOJdONs.cjs.js"),A=require("@chakra-ui/react/flex"),Z=require("./box-CWni3A32.cjs.js"),Ce=require("./Header-BmzdY2bW.cjs.js");function Me(e={}){let{locale:t}=ue.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7();return l.useMemo(()=>new Intl.ListFormat(t,e),[t,e])}const H=new WeakMap;function Fe(e,t,o){let{keyboardDelegate:i,isDisabled:r,isRequired:p,name:v,form:a,validationBehavior:d="aria"}=e,b=ye.$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",sensitivity:"base"}),n=l.useMemo(()=>i||new ve.$2a25aae57d74318e$export$a05409b8bb224a5a(t.collection,t.disabledKeys,o,b),[i,t.collection,t.disabledKeys,b,o]),{menuTriggerProps:u,menuProps:m}=V.$168583247155ddda$export$dc9c12ed27dd1b49({isDisabled:r,type:"listbox"},t,o),x=y=>{if(t.selectionManager.selectionMode!=="multiple")switch(y.key){case"ArrowLeft":{var F,D;y.preventDefault();let B=t.selectedKey!=null?(F=n.getKeyAbove)===null||F===void 0?void 0:F.call(n,t.selectedKey):(D=n.getFirstKey)===null||D===void 0?void 0:D.call(n);B&&t.setSelectedKey(B);break}case"ArrowRight":{var w,k;y.preventDefault();let B=t.selectedKey!=null?(w=n.getKeyBelow)===null||w===void 0?void 0:w.call(n,t.selectedKey):(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n);B&&t.setSelectedKey(B);break}}},{typeSelectProps:f}=me.$fb3050f43d946246$export$e32c88dfddc6e1d8({keyboardDelegate:n,selectionManager:t.selectionManager,onTypeSelect(y){t.setSelectedKey(y)}}),{isInvalid:S,validationErrors:q,validationDetails:$}=t.displayValidation,{labelProps:g,fieldProps:P,descriptionProps:s,errorMessageProps:R}=ge.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:S,errorMessage:e.errorMessage||q});f.onKeyDown=f.onKeyDownCapture,delete f.onKeyDownCapture,t.selectionManager.selectionMode==="multiple"&&(f={});let C=G.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0}),h=K.$3ef42575df84b30b$export$9d1611c77c2fe928(f,u,P),O=K.$bdb11010cef70236$export$f680877a34711e37();return H.set(t,{isDisabled:r,isRequired:p,name:v,form:a,validationBehavior:d}),{labelProps:{...g,onClick:()=>{if(!e.isDisabled){var y;(y=o.current)===null||y===void 0||y.focus(),xe.$507fabe10e71c6fb$export$8397ddfc504fdb9a("keyboard")}}},triggerProps:K.$3ef42575df84b30b$export$9d1611c77c2fe928(C,{...h,isDisabled:r,onKeyDown:K.$ff5963eb1fccf552$export$e08e3b67e392101e(h.onKeyDown,x,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[O,h["aria-labelledby"],h["aria-label"]&&!h["aria-labelledby"]?h.id:null].filter(Boolean).join(" "),onFocus(y){t.isFocused||(e.onFocus&&e.onFocus(y),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(y){t.isOpen||(e.onBlur&&e.onBlur(y),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:O},menuProps:{...m,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:y=>{y.currentTarget.contains(y.relatedTarget)||(e.onBlur&&e.onBlur(y),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[P["aria-labelledby"],h["aria-label"]&&!P["aria-labelledby"]?h.id:null].filter(Boolean).join(" ")},descriptionProps:s,errorMessageProps:R,isInvalid:S,validationErrors:q,validationDetails:$,hiddenSelectProps:{isDisabled:r,name:v,label:e.label,state:t,triggerRef:o,form:a}}}function De(e,t,o){let i=H.get(t)||{},{autoComplete:r,name:p=i.name,form:v=i.form,isDisabled:a=i.isDisabled}=e,{validationBehavior:d,isRequired:b}=i,{visuallyHiddenProps:n}=Se.$5c3e21d68f1c4674$export$a966af930f325cab({style:{position:"fixed",top:0,left:0}});he.$99facab73266f662$export$5add1d006293d136(e.selectRef,t.defaultValue,t.setValue),re.$e93e671b31057976$export$b8473d3665f3a75a({validationBehavior:d,focus:()=>{var f;return(f=o.current)===null||f===void 0?void 0:f.focus()}},t,e.selectRef);let u=t.setValue,m=l.useCallback(f=>{f.target.multiple?u(Array.from(f.target.selectedOptions,S=>S.value)):u(f.currentTarget.value)},[u]);var x;return{containerProps:{...n,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:r,disabled:a,multiple:t.selectionManager.selectionMode==="multiple",required:d==="native"&&b,name:p,form:v,value:(x=t.value)!==null&&x!==void 0?x:"",onChange:m,onInput:m}}}function Ie(e){let{state:t,triggerRef:o,label:i,name:r,form:p,isDisabled:v}=e,a=l.useRef(null),d=l.useRef(null),{containerProps:b,selectProps:n}=De({...e,selectRef:t.collection.size<=300?a:d},t,o);if(t.collection.size<=300)return l.createElement("div",{...b,"data-testid":"hidden-select-container"},l.createElement("label",null,i,l.createElement("select",{...n,ref:a},l.createElement("option",null),[...t.collection.getKeys()].map(u=>{let m=t.collection.getItem(u);if(m&&m.type==="item")return l.createElement("option",{key:m.key,value:m.key},m.textValue)}))));if(r){let u=H.get(t)||{},{validationBehavior:m}=u,x=Array.isArray(t.value)?t.value:[t.value];x.length===0&&(x=[null]);let f=x.map((S,q)=>{let $={type:"hidden",autoComplete:n.autoComplete,name:r,form:p,disabled:v,value:S??""};return m==="native"?l.createElement("input",{key:q,...$,ref:q===0?d:null,style:{display:"none"},type:"text",required:q===0?n.required:!1,onChange:()=>{}}):l.createElement("input",{key:q,...$,ref:q===0?d:null})});return l.createElement(l.Fragment,null,f)}return null}function Be(e){let{selectionMode:t="single"}=e,o=le.$fc909762b330b746$export$61c6a8c84e605fb6(e),[i,r]=l.useState(null),p=l.useMemo(()=>{var s;return e.defaultValue!==void 0?e.defaultValue:t==="single"?(s=e.defaultSelectedKey)!==null&&s!==void 0?s:null:[]},[e.defaultValue,e.defaultSelectedKey,t]),v=l.useMemo(()=>e.value!==void 0?e.value:t==="single"?e.selectedKey:void 0,[e.value,e.selectedKey,t]),[a,d]=$e.$458b0a5536c1a7cf$export$40bfa8c7b0832715(v,p,e.onChange),b=t==="single"&&Array.isArray(a)?a[0]:a,n=s=>{if(t==="single"){var R,C;let h=Array.isArray(s)?(C=s[0])!==null&&C!==void 0?C:null:s;d(h),h!==b&&((R=e.onSelectionChange)===null||R===void 0||R.call(e,h))}else{let h=[];Array.isArray(s)?h=s:s!=null&&(h=[s]),d(h)}},u=be.$e72dd72e1c76a225$export$2f645645f7bca764({...e,selectionMode:t,disallowEmptySelection:t==="single",allowDuplicateSelectionEvents:!0,selectedKeys:l.useMemo(()=>Ke(b),[b]),onSelectionChange:s=>{if(s!=="all"){if(t==="single"){var R;let C=(R=s.values().next().value)!==null&&R!==void 0?R:null;n(C),o.close()}else n([...s]);f.commitValidation()}}}),m=u.selectionManager.firstSelectedKey,x=l.useMemo(()=>[...u.selectionManager.selectedKeys].map(s=>u.collection.getItem(s)).filter(s=>s!=null),[u.selectionManager.selectedKeys,u.collection]),f=re.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:Array.isArray(b)&&b.length===0?null:b}),[S,q]=l.useState(!1),[$]=l.useState(b);var g,P;return{...f,...u,...o,value:b,defaultValue:p??$,setValue:n,selectedKey:m,setSelectedKey:n,selectedItem:(g=x[0])!==null&&g!==void 0?g:null,selectedItems:x,defaultSelectedKey:(P=e.defaultSelectedKey)!==null&&P!==void 0?P:e.selectionMode==="single"?$:null,focusStrategy:i,open(s=null){u.collection.size!==0&&(r(s),o.open())},toggle(s=null){u.collection.size!==0&&(r(s),o.toggle())},isFocused:S,setFocused:q}}function Ke(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function Ve(e){return e&&e.__esModule?e.default:e}const W=l.createContext(null),U=l.createContext(null),je=l.forwardRef(function(t,o){[t,o]=M.$64fa3d84918910a7$export$29f1550f4b0d4415(t,o,W);let{children:i,isDisabled:r=!1,isInvalid:p=!1,isRequired:v=!1}=t,a=l.useMemo(()=>typeof i=="function"?i({isOpen:!1,isDisabled:r,isInvalid:p,isRequired:v,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):i,[i,r,p,v]);return l.createElement(te.$e1995378a142960e$export$bf788dd355e3a401,{content:a},d=>l.createElement(Ee,{props:t,collection:d,selectRef:o}))}),Oe=[ee.$01b77f81d0f07f68$export$75b6ee27786ba447,z.$d2b4bc8c273e7be6$export$24d547caef80ccd1,N.$514c0188e459b4c0$export$9afb8bc826b033ea];function Ee({props:e,selectRef:t,collection:o}){let{validationBehavior:i}=M.$64fa3d84918910a7$export$fabf2dc03a41866e(se.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var r,p;let v=(p=(r=e.validationBehavior)!==null&&r!==void 0?r:i)!==null&&p!==void 0?p:"native",a=Be({...e,collection:o,children:void 0,validationBehavior:v}),{isFocusVisible:d,focusProps:b}=pe.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),n=l.useRef(null),[u,m]=M.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:x,triggerProps:f,valueProps:S,menuProps:q,descriptionProps:$,errorMessageProps:g,hiddenSelectProps:P,...s}=Fe({...M.$64fa3d84918910a7$export$ef03459518577ad4(e),label:m,validationBehavior:v},a,n),[R,C]=l.useState(null),h=l.useCallback(()=>{n.current&&C(n.current.offsetWidth+"px")},[n]);le.$9daab02d461809db$export$683480f191c0e3ea({ref:n,onResize:h});let O=l.useMemo(()=>({isOpen:a.isOpen,isFocused:a.isFocused,isFocusVisible:d,isDisabled:e.isDisabled||!1,isInvalid:s.isInvalid||!1,isRequired:e.isRequired||!1}),[a.isOpen,a.isFocused,d,e.isDisabled,s.isInvalid,e.isRequired]),y=M.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:O,defaultClassName:"react-aria-Select"}),F=G.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});delete F.id;let D=l.useRef(null);return l.createElement(M.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[W,e],[U,a],[ae,S],[ee.$01b77f81d0f07f68$export$75b6ee27786ba447,{...x,ref:u,elementType:"span"}],[z.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...f,ref:n,isPressed:a.isOpen,autoFocus:e.autoFocus}],[V.$de32f1b87079253c$export$d2f961adcb0afbe,a],[V.$07b14b47974efb58$export$9b9a0cd73afb7ca4,{trigger:"Select",triggerRef:n,scrollRef:D,placement:"bottom start",style:{"--trigger-width":R},"aria-labelledby":q["aria-labelledby"],clearContexts:Oe}],[j.$eed445e0843c11d0$export$7ff8f37d2d81a48d,{...q,ref:D}],[j.$eed445e0843c11d0$export$7c5906fe4f1f2af2,a],[N.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:$,errorMessage:g}}],[ne.$ee014567cb39d3f0$export$ff05c3ac10437e03,s]]},l.createElement("div",{...K.$3ef42575df84b30b$export$9d1611c77c2fe928(F,y,b),ref:t,slot:e.slot||void 0,"data-focused":a.isFocused||void 0,"data-focus-visible":d||void 0,"data-open":a.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":s.isInvalid||void 0,"data-required":e.isRequired||void 0},y.children,l.createElement(Ie,{...P,autoComplete:e.autoComplete})))}const ae=l.createContext(null),we=de.$f39a9eba43920ace$export$86427a43e3e48ebb(function(t,o){var i;[t,o]=M.$64fa3d84918910a7$export$29f1550f4b0d4415(t,o,ae);let r=l.useContext(U),{placeholder:p}=M.$64fa3d84918910a7$export$fabf2dc03a41866e(W),v=r.selectedItems.map($=>{var g;let P=(g=$.props)===null||g===void 0?void 0:g.children;return typeof P=="function"&&(P=P({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"})),P}),a=Me(),d=l.useMemo(()=>r.selectedItems.map($=>$?.textValue),[r.selectedItems]),b=r.selectionManager.selectionMode,n=l.useMemo(()=>{var $;return b==="single"?($=d[0])!==null&&$!==void 0?$:"":a.format(d)},[b,a,d]),u=l.useMemo(()=>{if(b==="single")return v[0];let $=a.formatToParts(d);if($.length===0)return null;let g=0;return $.map(P=>P.type==="element"?l.createElement(l.Fragment,{key:g},v[g++]):P.value)},[b,a,d,v]),m=fe.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ve(ce.$df39c1238ae2b5f3$exports),"react-aria-components");var x,f;let S=M.$64fa3d84918910a7$export$4d86445c2cf5e3({...t,defaultChildren:(x=u??p)!==null&&x!==void 0?x:m.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:(f=(i=r.selectedItems[0])===null||i===void 0?void 0:i.value)!==null&&f!==void 0?f:null,selectedItems:l.useMemo(()=>r.selectedItems.map($=>{var g;return(g=$.value)!==null&&g!==void 0?g:null}),[r.selectedItems]),selectedText:n,isPlaceholder:r.selectedItems.length===0,state:r}}),q=G.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0});return l.createElement("span",{ref:o,...q,...S,"data-placeholder":r.selectedItems.length===0||void 0},l.createElement(N.$514c0188e459b4c0$export$9afb8bc826b033ea.Provider,{value:void 0},S.children))}),{withProvider:ke,withContext:I}=_.createSlotRecipeContext({key:"select"}),Ae=ke("div","root"),Te=I("div","leadingElement"),Le=I("button","trigger"),ze=I("span","triggerLabel"),Ne=I("div","options"),Ge=I("div","option"),He=I("div","optionGroup"),We=oe.defineMessages({clearSelection:{id:"Nimbus.Select.clearSelection",description:"aria-label for select clear button",defaultMessage:"Clear selection"}}),ie=()=>{const e=l.useContext(U),t=oe.useIntl();if(!e?.selectedKey)return null;const o=()=>{e?.setSelectedKey(null)};return c.jsx(V.$f1ab8c75478c6f73$export$cf75428e0b9ed1ea,{children:c.jsx(Pe.IconButton,{slot:null,pointerEvents:"all",size:"2xs",variant:"ghost","aria-label":t.formatMessage(We.clearSelection),"aria-labelledby":"",onPress:o,children:c.jsx(L.Close,{})})})};ie.displayName="Select.ClearButton";const X=function({ref:t,children:o,leadingElement:i,isLoading:r,isDisabled:p,isClearable:v=!0,...a}){const d=l.useRef(null),b=Re.$df56164dff5785e2$export$4338b53315abf666(_.mergeRefs(d,t)),n=T.useSlotRecipe({recipe:qe.selectSlotRecipe}),[u,m]=n.splitVariantProps(a),[x,f]=E.extractStyleProps(m),S={...f,isDisabled:r||p};return c.jsx(Ae,{asChild:!0,ref:b,...u,...x,children:c.jsxs(je,{...S,children:[c.jsxs(T.chakra.div,{position:"relative",children:[c.jsx(Le,{zIndex:0,asChild:!0,children:c.jsxs(z.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{children:[i&&c.jsx(Te,{asChild:!0,children:i}),c.jsx(ze,{asChild:!0,children:c.jsx(we,{})})]})}),c.jsxs(A.Flex,{position:"absolute",top:"0",bottom:"0",zIndex:1,right:"400",pointerEvents:"none",children:[v&&c.jsx(A.Flex,{width:"600",my:"auto",children:c.jsx(ie,{})}),c.jsx(A.Flex,{my:"auto",w:"600",h:"600",children:c.jsx(Z.Box,{color:"neutral.9",asChild:!0,m:"auto",w:"400",h:"400",children:r?c.jsx(Z.Box,{asChild:!0,animation:"spin",animationDuration:"slowest",children:c.jsx(L.Loop,{})}):c.jsx(L.KeyboardArrowDown,{})})})]})]}),c.jsx(V.$07b14b47974efb58$export$5b6b19405a83ff9d,{children:o})]})})};X.displayName="Select.Root";const J=e=>{const{ref:t,...o}=e,[i,r]=E.extractStyleProps(o);return c.jsx(Ne,{asChild:!0,...i,children:c.jsx(j.$eed445e0843c11d0$export$41f133550aa26f48,{ref:t,...r})})};J.displayName="Select.Options";const Q=e=>{const{ref:t,...o}=e,[i,r]=E.extractStyleProps(o);return c.jsx(Ge,{asChild:!0,...i,children:c.jsx(j.$eed445e0843c11d0$export$a11e76429ed99b4,{ref:t,...r})})};Q.displayName="Select.Option";const Y=e=>{const{ref:t,label:o,items:i,children:r,...p}=e,[v,a]=E.extractStyleProps(p);if(i&&typeof r!="function")throw new Error('SelectOptionGroup: When "items" is provided, "children" must be a function');return c.jsx(T.chakra.section,{...v,asChild:!0,children:c.jsxs(j.$eed445e0843c11d0$export$dca12b0bb56e4fc,{ref:t,...a,children:[c.jsx(He,{asChild:!0,children:c.jsx(Ce.$72a5793c14baf454$export$8b251419efc915eb,{children:o})}),i?c.jsx(te.$e1995378a142960e$export$fb8073518f34e6ec,{items:i,children:d=>typeof r=="function"?r(d):null}):r]})})};Y.displayName="Select.OptionGroup";const Ue={Root:X,Options:J,Option:Q,OptionGroup:Y};exports.Select=Ue;exports.SelectOption=Q;exports.SelectOptionGroup=Y;exports.SelectOptions=J;exports.SelectRoot=X;
2
- //# sourceMappingURL=select-DMsU6bk9.cjs.js.map
@@ -1,2 +0,0 @@
1
- "use strict";const r=require("react/jsx-runtime"),l=require("./Separator-6J1KiDlQ.cjs.js"),t=require("@chakra-ui/react"),x=require("./extractStyleProps-Dk3fpLyQ.cjs.js"),f=require("./index-CRFg4Mhx.cjs.js"),{withContext:P}=t.createRecipeContext({key:"separator"}),S=P("div"),o=({ref:s,orientation:e="horizontal",...a})=>{const c=t.useRecipe({recipe:f.separatorRecipe}),[p,i]=c.splitVariantProps({orientation:e,...a}),[n,u]=x.extractStyleProps({orientation:e,...i});return r.jsx(S,{asChild:!0,...p,...n,children:r.jsx(l.$431f98aba6844401$export$1ff3c3f08ae963c0,{ref:s,...u})})};o.displayName="Separator";exports.Separator=o;
2
- //# sourceMappingURL=separator-CvRn_J0r.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"separator-CvRn_J0r.cjs.js","sources":["../../src/components/separator/separator.slots.tsx","../../src/components/separator/separator.tsx"],"sourcesContent":["import { createRecipeContext } from \"@chakra-ui/react\";\nimport type { SeparatorRootSlotProps } from \"./separator.types\";\nimport type { SlotComponent } from \"@/utils/slot-types\";\n\nconst { withContext } = createRecipeContext({ key: \"separator\" });\n\nexport const SeparatorRoot: SlotComponent<\n HTMLDivElement,\n SeparatorRootSlotProps\n> = withContext<HTMLDivElement, SeparatorRootSlotProps>(\"div\");\n","import { Separator as RaSeparator } from \"react-aria-components\";\nimport { useRecipe } from \"@chakra-ui/react\";\nimport { SeparatorRoot } from \"./separator.slots\";\nimport type { SeparatorProps } from \"./separator.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { separatorRecipe } from \"./separator.recipe\";\n\n/**\n * Separator\n * ============================================================\n * A visual separator that divides content sections\n *\n * Features:\n *\n * - allows forwarding refs to the underlying DOM element\n * - accepts all native html 'HTMLDivElement' attributes (including aria- & data-attributes)\n * - supports 'variants', 'orientation', etc. configured in the recipe\n * - allows overriding styles by using style-props\n * - supports 'asChild' and 'as' to modify the underlying html-element (polymorphic)\n * - built with React Aria for accessibility\n */\n\nexport const Separator = ({\n ref: forwardedRef,\n orientation = \"horizontal\",\n ...props\n}: SeparatorProps) => {\n const recipe = useRecipe({ recipe: separatorRecipe });\n const [recipeProps, variantFreeProps] = recipe.splitVariantProps({\n orientation,\n ...props,\n });\n const [styleProps, functionalProps] = extractStyleProps({\n orientation,\n ...variantFreeProps,\n });\n\n return (\n <SeparatorRoot asChild {...recipeProps} {...styleProps}>\n <RaSeparator ref={forwardedRef} {...functionalProps} />\n </SeparatorRoot>\n );\n};\n\nSeparator.displayName = \"Separator\";\n"],"names":["withContext","createRecipeContext","SeparatorRoot","Separator","forwardedRef","orientation","props","recipe","useRecipe","separatorRecipe","recipeProps","variantFreeProps","styleProps","functionalProps","extractStyleProps","jsx","RaSeparator"],"mappings":"+MAIM,CAAE,YAAAA,CAAA,EAAgBC,EAAAA,oBAAoB,CAAE,IAAK,YAAa,EAEnDC,EAGTF,EAAoD,KAAK,ECahDG,EAAY,CAAC,CACxB,IAAKC,EACL,YAAAC,EAAc,aACd,GAAGC,CACL,IAAsB,CACpB,MAAMC,EAASC,EAAAA,UAAU,CAAE,OAAQC,EAAAA,gBAAiB,EAC9C,CAACC,EAAaC,CAAgB,EAAIJ,EAAO,kBAAkB,CAC/D,YAAAF,EACA,GAAGC,CAAA,CACJ,EACK,CAACM,EAAYC,CAAe,EAAIC,oBAAkB,CACtD,YAAAT,EACA,GAAGM,CAAA,CACJ,EAED,OACEI,EAAAA,IAACb,EAAA,CAAc,QAAO,GAAE,GAAGQ,EAAc,GAAGE,EAC1C,SAAAG,EAAAA,IAACC,EAAAA,0CAAA,CAAY,IAAKZ,EAAe,GAAGS,EAAiB,EACvD,CAEJ,EAEAV,EAAU,YAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"separator-DJGUFG-o.es.js","sources":["../../src/components/separator/separator.slots.tsx","../../src/components/separator/separator.tsx"],"sourcesContent":["import { createRecipeContext } from \"@chakra-ui/react\";\nimport type { SeparatorRootSlotProps } from \"./separator.types\";\nimport type { SlotComponent } from \"@/utils/slot-types\";\n\nconst { withContext } = createRecipeContext({ key: \"separator\" });\n\nexport const SeparatorRoot: SlotComponent<\n HTMLDivElement,\n SeparatorRootSlotProps\n> = withContext<HTMLDivElement, SeparatorRootSlotProps>(\"div\");\n","import { Separator as RaSeparator } from \"react-aria-components\";\nimport { useRecipe } from \"@chakra-ui/react\";\nimport { SeparatorRoot } from \"./separator.slots\";\nimport type { SeparatorProps } from \"./separator.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { separatorRecipe } from \"./separator.recipe\";\n\n/**\n * Separator\n * ============================================================\n * A visual separator that divides content sections\n *\n * Features:\n *\n * - allows forwarding refs to the underlying DOM element\n * - accepts all native html 'HTMLDivElement' attributes (including aria- & data-attributes)\n * - supports 'variants', 'orientation', etc. configured in the recipe\n * - allows overriding styles by using style-props\n * - supports 'asChild' and 'as' to modify the underlying html-element (polymorphic)\n * - built with React Aria for accessibility\n */\n\nexport const Separator = ({\n ref: forwardedRef,\n orientation = \"horizontal\",\n ...props\n}: SeparatorProps) => {\n const recipe = useRecipe({ recipe: separatorRecipe });\n const [recipeProps, variantFreeProps] = recipe.splitVariantProps({\n orientation,\n ...props,\n });\n const [styleProps, functionalProps] = extractStyleProps({\n orientation,\n ...variantFreeProps,\n });\n\n return (\n <SeparatorRoot asChild {...recipeProps} {...styleProps}>\n <RaSeparator ref={forwardedRef} {...functionalProps} />\n </SeparatorRoot>\n );\n};\n\nSeparator.displayName = \"Separator\";\n"],"names":["withContext","createRecipeContext","SeparatorRoot","Separator","forwardedRef","orientation","props","recipe","useRecipe","separatorRecipe","recipeProps","variantFreeProps","styleProps","functionalProps","extractStyleProps","jsx","RaSeparator"],"mappings":";;;;;AAIA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB,EAAE,KAAK,aAAa,GAEnDC,IAGT,gBAAAF,EAAoD,KAAK,GCahDG,IAAY,CAAC;AAAA,EACxB,KAAKC;AAAA,EACL,aAAAC,IAAc;AAAA,EACd,GAAGC;AACL,MAAsB;AACpB,QAAMC,IAASC,EAAU,EAAE,QAAQC,GAAiB,GAC9C,CAACC,GAAaC,CAAgB,IAAIJ,EAAO,kBAAkB;AAAA,IAC/D,aAAAF;AAAA,IACA,GAAGC;AAAA,EAAA,CACJ,GACK,CAACM,GAAYC,CAAe,IAAIC,EAAkB;AAAA,IACtD,aAAAT;AAAA,IACA,GAAGM;AAAA,EAAA,CACJ;AAED,SACE,gBAAAI,EAACb,GAAA,EAAc,SAAO,IAAE,GAAGQ,GAAc,GAAGE,GAC1C,UAAA,gBAAAG,EAACC,GAAA,EAAY,KAAKZ,GAAe,GAAGS,GAAiB,GACvD;AAEJ;AAEAV,EAAU,cAAc;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"split-button-BO52sL7h.cjs.js","sources":["../../src/components/split-button/split-button.slots.tsx","../../src/components/split-button/split-button.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n SplitButtonRootSlotProps,\n SplitButtonButtonGroupSlotProps,\n SplitButtonPrimaryButtonSlotProps,\n SplitButtonTriggerSlotProps,\n} from \"./split-button.types\";\nimport type { SlotComponent } from \"@/utils/slot-types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"splitButton\",\n});\n\n// Root Container\nexport const SplitButtonRootSlot: SlotComponent<\n HTMLDivElement,\n SplitButtonRootSlotProps\n> = withProvider<HTMLDivElement, SplitButtonRootSlotProps>(\"div\", \"root\");\n\n// Button Group Container\nexport const SplitButtonButtonGroupSlot = withContext<\n HTMLDivElement,\n SplitButtonButtonGroupSlotProps\n>(\"div\", \"buttonGroup\");\n\n// Primary Action Button\nexport const SplitButtonPrimaryButtonSlot = withContext<\n HTMLButtonElement,\n SplitButtonPrimaryButtonSlotProps\n>(\"button\", \"primaryButton\");\n\n// Dropdown Trigger Button\nexport const SplitButtonTriggerSlot = withContext<\n HTMLButtonElement,\n SplitButtonTriggerSlotProps\n>(\"button\", \"dropdownTrigger\");\n","import React from \"react\";\nimport { Button } from \"@/components/button\";\nimport { IconButton } from \"@/components/icon-button\";\nimport { Menu } from \"@/components/menu\";\nimport { Icon } from \"@/components/icon\";\nimport type { SplitButtonProps } from \"./split-button.types\";\nimport {\n SplitButtonRootSlot,\n SplitButtonButtonGroupSlot,\n SplitButtonPrimaryButtonSlot,\n SplitButtonTriggerSlot,\n} from \"./split-button.slots\";\nimport { KeyboardArrowDown } from \"@commercetools/nimbus-icons\";\n\n// Re-export types\nexport type * from \"./split-button.types\";\n\n/**\n * # SplitButton\n *\n * A split-button component that combines a primary action button with a dropdown menu.\n *\n * Shows a primary action button + dropdown trigger. The primary button automatically\n * executes the first enabled Menu.Item action, while the dropdown trigger opens a menu\n * with all available options.\n *\n * Use with Menu.Item, Menu.Section, and Separator components for content.\n */\nexport const SplitButton = (props: SplitButtonProps) => {\n const {\n size = \"md\",\n variant = \"solid\",\n tone,\n isDisabled = false,\n \"aria-label\": ariaLabel,\n onAction,\n isOpen,\n defaultOpen,\n onOpenChange,\n icon,\n } = props;\n\n const buttonProps = { size, variant, tone };\n\n /**\n * CORE CONCEPT: In split button mode, we need to populate the primary button\n * with content from a Menu.Item (specified by defaultAction prop).\n *\n * Why this complexity exists:\n * - Users define actions as <Menu.Item id=\"save\">Save Document</Menu.Item>\n * - We need to extract \"Save Document\" text to show on the primary button\n * - Menu.Items can be nested inside Menu.Section components\n * - We need to handle disabled states and fallbacks\n */\n\n // Type guards for safe prop access\n type MenuItemProps = {\n id: string;\n children: React.ReactNode;\n isDisabled?: boolean;\n isCritical?: boolean;\n };\n\n type ComponentWithChildren = {\n children: React.ReactNode;\n };\n\n // Check if element is a Menu.Item with required props\n const isMenuItemWithId = (\n element: React.ReactNode\n ): element is React.ReactElement<MenuItemProps> => {\n if (!React.isValidElement(element) || !element.props) return false;\n const props = element.props as Record<string, unknown>;\n return \"id\" in props && typeof props.id === \"string\";\n };\n\n // Check if element has children prop\n const hasChildren = (\n element: React.ReactNode\n ): element is React.ReactElement<ComponentWithChildren> => {\n if (!React.isValidElement(element) || !element.props) return false;\n const props = element.props as Record<string, unknown>;\n return \"children\" in props;\n };\n\n // All children are menu items\n const menuItems = props.children;\n\n /**\n * Check if there are any actionable (enabled) Menu.Items in the children.\n * This is used to determine if the dropdown trigger should be disabled.\n */\n const hasActionableMenuItems = (children: React.ReactNode): boolean => {\n let hasActionable = false;\n\n React.Children.forEach(children, (child) => {\n if (hasActionable) return;\n\n // Check if this is an enabled Menu.Item\n if (isMenuItemWithId(child) && !child.props.isDisabled) {\n hasActionable = true;\n return;\n }\n\n // Recurse into Menu.Section or any component with children\n if (hasChildren(child)) {\n hasActionable = hasActionableMenuItems(child.props.children);\n }\n });\n\n return hasActionable;\n };\n\n /**\n * Find the primary Menu.Item using the same logic as the original PrimaryActionDropdown.\n * Selects the first enabled Menu.Item, or falls back to the first Menu.Item if all are disabled.\n */\n const findPrimaryMenuItem = () => {\n const allMenuItems: Array<{\n content: React.ReactNode;\n isDisabled: boolean;\n actionId: string | null;\n }> = [];\n\n // Recursively collect all Menu.Items from children (including nested ones)\n const collectMenuItems = (children: React.ReactNode): void => {\n React.Children.forEach(children, (child) => {\n if (isMenuItemWithId(child)) {\n allMenuItems.push({\n content: child.props.children,\n isDisabled: child.props.isDisabled || false,\n actionId: child.props.id,\n });\n }\n\n // Recurse into Menu.Section or any component with children\n if (hasChildren(child)) {\n collectMenuItems(child.props.children);\n }\n });\n };\n\n collectMenuItems(menuItems);\n\n // Find first enabled Menu.Item, or fallback to first Menu.Item\n const primaryMenuItem =\n allMenuItems.find((item) => !item.isDisabled) || allMenuItems[0];\n\n return (\n primaryMenuItem || {\n // TODO: Localize this\n content: \"No actions available\",\n isDisabled: true,\n actionId: null,\n }\n );\n };\n\n // Check if there are any actionable menu items for dropdown functionality\n const hasActionableItems = hasActionableMenuItems(menuItems);\n\n // Get the primary button content using smart selection\n const buttonContent = findPrimaryMenuItem();\n\n const executePrimaryAction = () => {\n if (!buttonContent.isDisabled && buttonContent.actionId && onAction) {\n onAction(buttonContent.actionId);\n }\n };\n\n const isPrimaryDisabled = isDisabled || buttonContent.isDisabled;\n const isDropdownTriggerDisabled = isDisabled || !hasActionableItems;\n\n return (\n <SplitButtonRootSlot variant={variant} data-mode=\"split\">\n <SplitButtonButtonGroupSlot>\n {/* Primary Action Button */}\n <SplitButtonPrimaryButtonSlot asChild>\n <Button\n {...buttonProps}\n isDisabled={isPrimaryDisabled}\n onPress={executePrimaryAction}\n >\n {icon && <Icon>{icon}</Icon>}\n {buttonContent.content}\n </Button>\n </SplitButtonPrimaryButtonSlot>\n\n {/* Menu Trigger and Dropdown */}\n <Menu.Root\n trigger=\"press\"\n isOpen={isOpen}\n defaultOpen={defaultOpen}\n onOpenChange={onOpenChange}\n placement=\"bottom end\"\n selectionMode=\"none\"\n onAction={onAction ? (key) => onAction(String(key)) : undefined}\n >\n <Menu.Trigger asChild>\n <SplitButtonTriggerSlot asChild>\n <IconButton\n {...buttonProps}\n aria-label={ariaLabel}\n isDisabled={isDropdownTriggerDisabled}\n >\n <KeyboardArrowDown />\n </IconButton>\n </SplitButtonTriggerSlot>\n </Menu.Trigger>\n\n <Menu.Content>{menuItems}</Menu.Content>\n </Menu.Root>\n </SplitButtonButtonGroupSlot>\n </SplitButtonRootSlot>\n );\n};\n\nSplitButton.displayName = \"SplitButton\";\n\n// Export for internal use by react-docgen\nexport { SplitButton as _SplitButton };\n"],"names":["withProvider","withContext","createSlotRecipeContext","SplitButtonRootSlot","SplitButtonButtonGroupSlot","SplitButtonPrimaryButtonSlot","SplitButtonTriggerSlot","SplitButton","props","size","variant","tone","isDisabled","ariaLabel","onAction","isOpen","defaultOpen","onOpenChange","icon","buttonProps","isMenuItemWithId","element","React","hasChildren","menuItems","hasActionableMenuItems","children","hasActionable","child","findPrimaryMenuItem","allMenuItems","collectMenuItems","item","hasActionableItems","buttonContent","executePrimaryAction","isPrimaryDisabled","isDropdownTriggerDisabled","jsx","jsxs","Button","Icon","Menu","key","IconButton","KeyboardArrowDown"],"mappings":"qSASM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,aACP,CAAC,EAGYC,EAGTH,EAAuD,MAAO,MAAM,EAG3DI,EAA6BH,EAGxC,MAAO,aAAa,EAGTI,EAA+BJ,EAG1C,SAAU,eAAe,EAGdK,EAAyBL,EAGpC,SAAU,iBAAiB,ECPhBM,EAAeC,GAA4B,CACtD,KAAM,CACJ,KAAAC,EAAO,KACP,QAAAC,EAAU,QACV,KAAAC,EACA,WAAAC,EAAa,GACb,aAAcC,EACd,SAAAC,EACA,OAAAC,EACA,YAAAC,EACA,aAAAC,EAAA,KACAC,CAAA,EACEV,EAEEW,EAAc,CAAE,KAAAV,EAAM,QAAAC,EAAS,KAAAC,CAAA,EA0B/BS,EACJC,GACiD,CACjD,GAAI,CAACC,EAAM,eAAeD,CAAO,GAAK,CAACA,EAAQ,MAAO,MAAO,GAC7D,MAAMb,EAAQa,EAAQ,MACtB,MAAO,OAAQb,GAAS,OAAOA,EAAM,IAAO,QAC9C,EAGMe,EACJF,GAEI,CAACC,EAAM,eAAeD,CAAO,GAAK,CAACA,EAAQ,MAAc,GAEtD,aADOA,EAAQ,MAKlBG,EAAYhB,EAAM,SAMlBiB,EAA0BC,GAAuC,CACrE,IAAIC,EAAgB,GAEpB,OAAAL,EAAM,SAAS,QAAQI,EAAWE,GAAU,CAC1C,GAAI,CAAAD,EAGJ,IAAIP,EAAiBQ,CAAK,GAAK,CAACA,EAAM,MAAM,WAAY,CACtDD,EAAgB,GAChB,MACF,CAGIJ,EAAYK,CAAK,IACnBD,EAAgBF,EAAuBG,EAAM,MAAM,QAAQ,GAE/D,CAAC,EAEMD,CACT,EAMME,EAAsB,IAAM,CAChC,MAAMC,EAID,CAAA,EAGCC,EAAoBL,GAAoC,CAC5DJ,EAAM,SAAS,QAAQI,EAAWE,GAAU,CACtCR,EAAiBQ,CAAK,GACxBE,EAAa,KAAK,CAChB,QAASF,EAAM,MAAM,SACrB,WAAYA,EAAM,MAAM,YAAc,GACtC,SAAUA,EAAM,MAAM,EAAA,CACvB,EAICL,EAAYK,CAAK,GACnBG,EAAiBH,EAAM,MAAM,QAAQ,CAEzC,CAAC,CACH,EAEA,OAAAG,EAAiBP,CAAS,EAIxBM,EAAa,KAAME,GAAS,CAACA,EAAK,UAAU,GAAKF,EAAa,CAAC,GAG5C,CAEjB,QAAS,uBACT,WAAY,GACZ,SAAU,IAAA,CAGhB,EAGMG,EAAqBR,EAAuBD,CAAS,EAGrDU,EAAgBL,EAAA,EAEhBM,EAAuB,IAAM,CAC7B,CAACD,EAAc,YAAcA,EAAc,UAAYpB,GACzDA,EAASoB,EAAc,QAAQ,CAEnC,EAEME,EAAoBxB,GAAcsB,EAAc,WAChDG,EAA4BzB,GAAc,CAACqB,EAEjD,aACG9B,EAAA,CAAoB,QAAAO,EAAkB,YAAU,QAC/C,gBAACN,EAAA,CAEC,SAAA,CAAAkC,EAAAA,IAACjC,EAAA,CAA6B,QAAO,GACnC,SAAAkC,EAAAA,KAACC,EAAAA,OAAA,CACE,GAAGrB,EACJ,WAAYiB,EACZ,QAASD,EAER,SAAA,CAAAjB,GAAQoB,EAAAA,IAACG,EAAAA,MAAM,SAAAvB,CAAA,CAAK,EACpBgB,EAAc,OAAA,CAAA,CAAA,EAEnB,EAGAK,EAAAA,KAACG,EAAAA,KAAK,KAAL,CACC,QAAQ,QACR,OAAA3B,EACA,YAAAC,EACA,aAAAC,EACA,UAAU,aACV,cAAc,OACd,SAAUH,EAAY6B,GAAQ7B,EAAS,OAAO6B,CAAG,CAAC,EAAI,OAEtD,SAAA,CAAAL,EAAAA,IAACI,EAAAA,KAAK,QAAL,CAAa,QAAO,GACnB,SAAAJ,EAAAA,IAAChC,EAAA,CAAuB,QAAO,GAC7B,SAAAgC,EAAAA,IAACM,EAAAA,WAAA,CACE,GAAGzB,EACJ,aAAYN,EACZ,WAAYwB,EAEZ,eAACQ,EAAAA,kBAAA,CAAA,CAAkB,CAAA,CAAA,EAEvB,CAAA,CACF,EAEAP,EAAAA,IAACI,EAAAA,KAAK,QAAL,CAAc,SAAAlB,CAAA,CAAU,CAAA,CAAA,CAAA,CAC3B,CAAA,CACF,CAAA,CACF,CAEJ,EAEAjB,EAAY,YAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"split-button-BxyZmuNi.es.js","sources":["../../src/components/split-button/split-button.slots.tsx","../../src/components/split-button/split-button.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n SplitButtonRootSlotProps,\n SplitButtonButtonGroupSlotProps,\n SplitButtonPrimaryButtonSlotProps,\n SplitButtonTriggerSlotProps,\n} from \"./split-button.types\";\nimport type { SlotComponent } from \"@/utils/slot-types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"splitButton\",\n});\n\n// Root Container\nexport const SplitButtonRootSlot: SlotComponent<\n HTMLDivElement,\n SplitButtonRootSlotProps\n> = withProvider<HTMLDivElement, SplitButtonRootSlotProps>(\"div\", \"root\");\n\n// Button Group Container\nexport const SplitButtonButtonGroupSlot = withContext<\n HTMLDivElement,\n SplitButtonButtonGroupSlotProps\n>(\"div\", \"buttonGroup\");\n\n// Primary Action Button\nexport const SplitButtonPrimaryButtonSlot = withContext<\n HTMLButtonElement,\n SplitButtonPrimaryButtonSlotProps\n>(\"button\", \"primaryButton\");\n\n// Dropdown Trigger Button\nexport const SplitButtonTriggerSlot = withContext<\n HTMLButtonElement,\n SplitButtonTriggerSlotProps\n>(\"button\", \"dropdownTrigger\");\n","import React from \"react\";\nimport { Button } from \"@/components/button\";\nimport { IconButton } from \"@/components/icon-button\";\nimport { Menu } from \"@/components/menu\";\nimport { Icon } from \"@/components/icon\";\nimport type { SplitButtonProps } from \"./split-button.types\";\nimport {\n SplitButtonRootSlot,\n SplitButtonButtonGroupSlot,\n SplitButtonPrimaryButtonSlot,\n SplitButtonTriggerSlot,\n} from \"./split-button.slots\";\nimport { KeyboardArrowDown } from \"@commercetools/nimbus-icons\";\n\n// Re-export types\nexport type * from \"./split-button.types\";\n\n/**\n * # SplitButton\n *\n * A split-button component that combines a primary action button with a dropdown menu.\n *\n * Shows a primary action button + dropdown trigger. The primary button automatically\n * executes the first enabled Menu.Item action, while the dropdown trigger opens a menu\n * with all available options.\n *\n * Use with Menu.Item, Menu.Section, and Separator components for content.\n */\nexport const SplitButton = (props: SplitButtonProps) => {\n const {\n size = \"md\",\n variant = \"solid\",\n tone,\n isDisabled = false,\n \"aria-label\": ariaLabel,\n onAction,\n isOpen,\n defaultOpen,\n onOpenChange,\n icon,\n } = props;\n\n const buttonProps = { size, variant, tone };\n\n /**\n * CORE CONCEPT: In split button mode, we need to populate the primary button\n * with content from a Menu.Item (specified by defaultAction prop).\n *\n * Why this complexity exists:\n * - Users define actions as <Menu.Item id=\"save\">Save Document</Menu.Item>\n * - We need to extract \"Save Document\" text to show on the primary button\n * - Menu.Items can be nested inside Menu.Section components\n * - We need to handle disabled states and fallbacks\n */\n\n // Type guards for safe prop access\n type MenuItemProps = {\n id: string;\n children: React.ReactNode;\n isDisabled?: boolean;\n isCritical?: boolean;\n };\n\n type ComponentWithChildren = {\n children: React.ReactNode;\n };\n\n // Check if element is a Menu.Item with required props\n const isMenuItemWithId = (\n element: React.ReactNode\n ): element is React.ReactElement<MenuItemProps> => {\n if (!React.isValidElement(element) || !element.props) return false;\n const props = element.props as Record<string, unknown>;\n return \"id\" in props && typeof props.id === \"string\";\n };\n\n // Check if element has children prop\n const hasChildren = (\n element: React.ReactNode\n ): element is React.ReactElement<ComponentWithChildren> => {\n if (!React.isValidElement(element) || !element.props) return false;\n const props = element.props as Record<string, unknown>;\n return \"children\" in props;\n };\n\n // All children are menu items\n const menuItems = props.children;\n\n /**\n * Check if there are any actionable (enabled) Menu.Items in the children.\n * This is used to determine if the dropdown trigger should be disabled.\n */\n const hasActionableMenuItems = (children: React.ReactNode): boolean => {\n let hasActionable = false;\n\n React.Children.forEach(children, (child) => {\n if (hasActionable) return;\n\n // Check if this is an enabled Menu.Item\n if (isMenuItemWithId(child) && !child.props.isDisabled) {\n hasActionable = true;\n return;\n }\n\n // Recurse into Menu.Section or any component with children\n if (hasChildren(child)) {\n hasActionable = hasActionableMenuItems(child.props.children);\n }\n });\n\n return hasActionable;\n };\n\n /**\n * Find the primary Menu.Item using the same logic as the original PrimaryActionDropdown.\n * Selects the first enabled Menu.Item, or falls back to the first Menu.Item if all are disabled.\n */\n const findPrimaryMenuItem = () => {\n const allMenuItems: Array<{\n content: React.ReactNode;\n isDisabled: boolean;\n actionId: string | null;\n }> = [];\n\n // Recursively collect all Menu.Items from children (including nested ones)\n const collectMenuItems = (children: React.ReactNode): void => {\n React.Children.forEach(children, (child) => {\n if (isMenuItemWithId(child)) {\n allMenuItems.push({\n content: child.props.children,\n isDisabled: child.props.isDisabled || false,\n actionId: child.props.id,\n });\n }\n\n // Recurse into Menu.Section or any component with children\n if (hasChildren(child)) {\n collectMenuItems(child.props.children);\n }\n });\n };\n\n collectMenuItems(menuItems);\n\n // Find first enabled Menu.Item, or fallback to first Menu.Item\n const primaryMenuItem =\n allMenuItems.find((item) => !item.isDisabled) || allMenuItems[0];\n\n return (\n primaryMenuItem || {\n // TODO: Localize this\n content: \"No actions available\",\n isDisabled: true,\n actionId: null,\n }\n );\n };\n\n // Check if there are any actionable menu items for dropdown functionality\n const hasActionableItems = hasActionableMenuItems(menuItems);\n\n // Get the primary button content using smart selection\n const buttonContent = findPrimaryMenuItem();\n\n const executePrimaryAction = () => {\n if (!buttonContent.isDisabled && buttonContent.actionId && onAction) {\n onAction(buttonContent.actionId);\n }\n };\n\n const isPrimaryDisabled = isDisabled || buttonContent.isDisabled;\n const isDropdownTriggerDisabled = isDisabled || !hasActionableItems;\n\n return (\n <SplitButtonRootSlot variant={variant} data-mode=\"split\">\n <SplitButtonButtonGroupSlot>\n {/* Primary Action Button */}\n <SplitButtonPrimaryButtonSlot asChild>\n <Button\n {...buttonProps}\n isDisabled={isPrimaryDisabled}\n onPress={executePrimaryAction}\n >\n {icon && <Icon>{icon}</Icon>}\n {buttonContent.content}\n </Button>\n </SplitButtonPrimaryButtonSlot>\n\n {/* Menu Trigger and Dropdown */}\n <Menu.Root\n trigger=\"press\"\n isOpen={isOpen}\n defaultOpen={defaultOpen}\n onOpenChange={onOpenChange}\n placement=\"bottom end\"\n selectionMode=\"none\"\n onAction={onAction ? (key) => onAction(String(key)) : undefined}\n >\n <Menu.Trigger asChild>\n <SplitButtonTriggerSlot asChild>\n <IconButton\n {...buttonProps}\n aria-label={ariaLabel}\n isDisabled={isDropdownTriggerDisabled}\n >\n <KeyboardArrowDown />\n </IconButton>\n </SplitButtonTriggerSlot>\n </Menu.Trigger>\n\n <Menu.Content>{menuItems}</Menu.Content>\n </Menu.Root>\n </SplitButtonButtonGroupSlot>\n </SplitButtonRootSlot>\n );\n};\n\nSplitButton.displayName = \"SplitButton\";\n\n// Export for internal use by react-docgen\nexport { SplitButton as _SplitButton };\n"],"names":["withProvider","withContext","createSlotRecipeContext","SplitButtonRootSlot","SplitButtonButtonGroupSlot","SplitButtonPrimaryButtonSlot","SplitButtonTriggerSlot","SplitButton","props","size","variant","tone","isDisabled","ariaLabel","onAction","isOpen","defaultOpen","onOpenChange","icon","buttonProps","isMenuItemWithId","element","React","hasChildren","menuItems","hasActionableMenuItems","children","hasActionable","child","findPrimaryMenuItem","allMenuItems","collectMenuItems","item","hasActionableItems","buttonContent","executePrimaryAction","isPrimaryDisabled","isDropdownTriggerDisabled","jsx","jsxs","Button","Icon","Menu","key","IconButton","KeyboardArrowDown"],"mappings":";;;;;;;;AASA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAGYC,IAGT,gBAAAH,EAAuD,OAAO,MAAM,GAG3DI,IAA6B,gBAAAH,EAGxC,OAAO,aAAa,GAGTI,IAA+B,gBAAAJ,EAG1C,UAAU,eAAe,GAGdK,IAAyB,gBAAAL,EAGpC,UAAU,iBAAiB,GCPhBM,IAAc,CAACC,MAA4B;AACtD,QAAM;AAAA,IACJ,MAAAC,IAAO;AAAA,IACP,SAAAC,IAAU;AAAA,IACV,MAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,cAAcC;AAAA,IACd,UAAAC;AAAA,IACA,QAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,MAAAC;AAAA,EAAA,IACEV,GAEEW,IAAc,EAAE,MAAAV,GAAM,SAAAC,GAAS,MAAAC,EAAA,GA0B/BS,IAAmB,CACvBC,MACiD;AACjD,QAAI,CAACC,EAAM,eAAeD,CAAO,KAAK,CAACA,EAAQ,MAAO,QAAO;AAC7D,UAAMb,IAAQa,EAAQ;AACtB,WAAO,QAAQb,KAAS,OAAOA,EAAM,MAAO;AAAA,EAC9C,GAGMe,IAAc,CAClBF,MAEI,CAACC,EAAM,eAAeD,CAAO,KAAK,CAACA,EAAQ,QAAc,KAEtD,cADOA,EAAQ,OAKlBG,IAAYhB,EAAM,UAMlBiB,IAAyB,CAACC,MAAuC;AACrE,QAAIC,IAAgB;AAEpBL,WAAAA,EAAM,SAAS,QAAQI,GAAU,CAACE,MAAU;AAC1C,UAAI,CAAAD,GAGJ;AAAA,YAAIP,EAAiBQ,CAAK,KAAK,CAACA,EAAM,MAAM,YAAY;AACtD,UAAAD,IAAgB;AAChB;AAAA,QACF;AAGA,QAAIJ,EAAYK,CAAK,MACnBD,IAAgBF,EAAuBG,EAAM,MAAM,QAAQ;AAAA;AAAA,IAE/D,CAAC,GAEMD;AAAA,EACT,GAMME,IAAsB,MAAM;AAChC,UAAMC,IAID,CAAA,GAGCC,IAAmB,CAACL,MAAoC;AAC5DJ,MAAAA,EAAM,SAAS,QAAQI,GAAU,CAACE,MAAU;AAC1C,QAAIR,EAAiBQ,CAAK,KACxBE,EAAa,KAAK;AAAA,UAChB,SAASF,EAAM,MAAM;AAAA,UACrB,YAAYA,EAAM,MAAM,cAAc;AAAA,UACtC,UAAUA,EAAM,MAAM;AAAA,QAAA,CACvB,GAICL,EAAYK,CAAK,KACnBG,EAAiBH,EAAM,MAAM,QAAQ;AAAA,MAEzC,CAAC;AAAA,IACH;AAEA,WAAAG,EAAiBP,CAAS,GAIxBM,EAAa,KAAK,CAACE,MAAS,CAACA,EAAK,UAAU,KAAKF,EAAa,CAAC,KAG5C;AAAA;AAAA,MAEjB,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,UAAU;AAAA,IAAA;AAAA,EAGhB,GAGMG,IAAqBR,EAAuBD,CAAS,GAGrDU,IAAgBL,EAAA,GAEhBM,IAAuB,MAAM;AACjC,IAAI,CAACD,EAAc,cAAcA,EAAc,YAAYpB,KACzDA,EAASoB,EAAc,QAAQ;AAAA,EAEnC,GAEME,IAAoBxB,KAAcsB,EAAc,YAChDG,IAA4BzB,KAAc,CAACqB;AAEjD,2BACG9B,GAAA,EAAoB,SAAAO,GAAkB,aAAU,SAC/C,4BAACN,GAAA,EAEC,UAAA;AAAA,IAAA,gBAAAkC,EAACjC,GAAA,EAA6B,SAAO,IACnC,UAAA,gBAAAkC;AAAA,MAACC;AAAA,MAAA;AAAA,QACE,GAAGrB;AAAA,QACJ,YAAYiB;AAAA,QACZ,SAASD;AAAA,QAER,UAAA;AAAA,UAAAjB,KAAQ,gBAAAoB,EAACG,KAAM,UAAAvB,EAAA,CAAK;AAAA,UACpBgB,EAAc;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA,GAEnB;AAAA,IAGA,gBAAAK;AAAA,MAACG,EAAK;AAAA,MAAL;AAAA,QACC,SAAQ;AAAA,QACR,QAAA3B;AAAA,QACA,aAAAC;AAAA,QACA,cAAAC;AAAA,QACA,WAAU;AAAA,QACV,eAAc;AAAA,QACd,UAAUH,IAAW,CAAC6B,MAAQ7B,EAAS,OAAO6B,CAAG,CAAC,IAAI;AAAA,QAEtD,UAAA;AAAA,UAAA,gBAAAL,EAACI,EAAK,SAAL,EAAa,SAAO,IACnB,UAAA,gBAAAJ,EAAChC,GAAA,EAAuB,SAAO,IAC7B,UAAA,gBAAAgC;AAAA,YAACM;AAAA,YAAA;AAAA,cACE,GAAGzB;AAAA,cACJ,cAAYN;AAAA,cACZ,YAAYwB;AAAA,cAEZ,4BAACQ,GAAA,CAAA,CAAkB;AAAA,YAAA;AAAA,UAAA,GAEvB,EAAA,CACF;AAAA,UAEA,gBAAAP,EAACI,EAAK,SAAL,EAAc,UAAAlB,EAAA,CAAU;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAC3B,EAAA,CACF,EAAA,CACF;AAEJ;AAEAjB,EAAY,cAAc;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"switch-01hEhL9A.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+switch@3.7.8_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","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n SwitchRootSlotProps,\n SwitchLabelSlotProps,\n SwitchTrackSlotProps,\n SwitchThumbSlotProps,\n} from \"./switch.types\";\nimport type { SlotComponent } from \"@/utils/slot-types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"switch\",\n});\n\nexport const SwitchRootSlot: SlotComponent<\n HTMLLabelElement,\n SwitchRootSlotProps\n> = withProvider<HTMLLabelElement, SwitchRootSlotProps>(\"label\", \"root\");\n\nexport const SwitchLabelSlot = withContext<\n HTMLSpanElement,\n SwitchLabelSlotProps\n>(\"span\", \"label\");\n\nexport const SwitchTrackSlot = withContext<\n HTMLSpanElement,\n SwitchTrackSlotProps\n>(\"span\", \"track\");\n\nexport const SwitchThumbSlot = withContext<\n HTMLSpanElement,\n SwitchThumbSlotProps\n>(\"span\", \"thumb\");\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;AClBA,MAAM,EAAE,cAAAE,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAEYC,IAGT,gBAAAH,EAAoD,SAAS,MAAM,GAE1DI,IAAkB,gBAAAH,EAG7B,QAAQ,OAAO,GAEJI,IAAkB,gBAAAJ,EAG7B,QAAQ,OAAO,GAEJK,IAAkB,gBAAAL,EAG7B,QAAQ,OAAO,GCRJM,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 +0,0 @@
1
- "use strict";const t=require("react/jsx-runtime"),$=require("react"),f=require("@chakra-ui/react"),x=require("@chakra-ui/react/styled-system"),R=require("./extractStyleProps-Dk3fpLyQ.cjs.js"),q=require("./index-CRFg4Mhx.cjs.js"),w=require("./useObjectRef-dXOJdONs.cjs.js"),y=require("./mergeProps-BA5Cwf5w.cjs.js"),j=require("./useToggleState-Dl-o05wQ.cjs.js"),m=require("./useToggle-BXaU8bD5.cjs.js"),g=require("./useFocusRing-BuJmrp03.cjs.js"),k=require("./visually-hidden-tTYCAVoQ.cjs.js");function v(s,e,c){let{labelProps:i,inputProps:l,isSelected:o,isPressed:a,isDisabled:n,isReadOnly:d}=m.$d2c8e2b0480f3f34$export$cbe85ee05b554577(s,e,c);return{labelProps:i,inputProps:{...l,role:"switch",checked:o},isSelected:o,isPressed:a,isDisabled:n,isReadOnly:d}}const{withProvider:D,withContext:u}=f.createSlotRecipeContext({key:"switch"}),O=D("label","root"),T=u("span","label"),C=u("span","track"),F=u("span","thumb"),b=({ref:s,...e})=>{const c=$.useRef(null),i=w.$df56164dff5785e2$export$4338b53315abf666(s?f.mergeRefs(c,s):c),l=x.useSlotRecipe({recipe:q.switchSlotRecipe}),[o,a]=l.splitVariantProps(e),[n,d]=R.extractStyleProps(a),p=j.$3017fa7ffdddec74$export$8042c6c013fd5226(e),{inputProps:h}=v(d,p,i),{isFocused:S,focusProps:P}=g.$f7dceffc5ad7768b$export$4e328f61c538687f(),r={"data-selected":p.isSelected,"data-invalid":e.isInvalid,"data-disabled":e.isDisabled,"data-focus":S||void 0};return t.jsxs(O,{"data-slot":"root",...o,...r,...n,children:[t.jsxs(C,{"data-slot":"track",...r,children:[t.jsx(F,{"data-slot":"thumb",...r}),t.jsx(k.VisuallyHidden,{as:"span",children:t.jsx("input",{"data-slot":"input",...y.$3ef42575df84b30b$export$9d1611c77c2fe928(h,P),ref:i})})]}),e.children&&t.jsx(T,{"data-slot":"label",...r,children:e.children})]})};b.displayName="Switch";exports.Switch=b;
2
- //# sourceMappingURL=switch-CdLhBEPq.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"switch-CdLhBEPq.cjs.js","sources":["../../../../node_modules/.pnpm/@react-aria+switch@3.7.8_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","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n SwitchRootSlotProps,\n SwitchLabelSlotProps,\n SwitchTrackSlotProps,\n SwitchThumbSlotProps,\n} from \"./switch.types\";\nimport type { SlotComponent } from \"@/utils/slot-types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"switch\",\n});\n\nexport const SwitchRootSlot: SlotComponent<\n HTMLLabelElement,\n SwitchRootSlotProps\n> = withProvider<HTMLLabelElement, SwitchRootSlotProps>(\"label\", \"root\");\n\nexport const SwitchLabelSlot = withContext<\n HTMLSpanElement,\n SwitchLabelSlotProps\n>(\"span\", \"label\");\n\nexport const SwitchTrackSlot = withContext<\n HTMLSpanElement,\n SwitchTrackSlotProps\n>(\"span\", \"track\");\n\nexport const SwitchThumbSlot = withContext<\n HTMLSpanElement,\n SwitchThumbSlotProps\n>(\"span\", \"thumb\");\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,CClBA,KAAM,CAAE,aAAAE,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,QACP,CAAC,EAEYC,EAGTH,EAAoD,QAAS,MAAM,EAE1DI,EAAkBH,EAG7B,OAAQ,OAAO,EAEJI,EAAkBJ,EAG7B,OAAQ,OAAO,EAEJK,EAAkBL,EAG7B,OAAQ,OAAO,ECRJM,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,2 +0,0 @@
1
- "use strict";const f=require("react/jsx-runtime"),g=require("./SelectionManager-1rNaWE7D.cjs.js"),x=require("./utils-BHdR5Nww.cjs.js"),k=require("./SelectionIndicator-Cp3OYqg6.cjs.js"),m=require("./CollectionBuilder-BiEelELF.cjs.js"),z=require("./Hidden-CNJIJ63M.cjs.js"),h=require("./mergeProps-BA5Cwf5w.cjs.js"),T=require("./filterDOMProps-WUskt27c.cjs.js"),R=require("./useObjectRef-dXOJdONs.cjs.js"),j=require("./inertValue-B3AFhVG4.cjs.js"),s=require("react"),I=require("./useLabels-BsHtLxGl.cjs.js"),B=require("./useHasTabbableChild-Bif_c3Cz.cjs.js"),U=require("./openLink-DkCJYbzq.cjs.js"),W=require("./useFocusable-Dv8K4Git.cjs.js"),G=require("./context-OoV8SSWX.cjs.js"),q=require("./useFocusRing-BuJmrp03.cjs.js"),J=require("./useHover-271zEzph.cjs.js"),Q=require("./useSingleSelectListState-CgOgZMJh.cjs.js"),X=require("@chakra-ui/react"),Y=require("./extractStyleProps-Dk3fpLyQ.cjs.js"),O=new WeakMap;function S(i,e,t){if(!i)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let a=O.get(i);return process.env.NODE_ENV!=="production"&&!a&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${a}-${t}-${e}`}function Z(i,e,t){let{key:a,isDisabled:d,shouldSelectOnPressUp:r}=i,{selectionManager:l,selectedKey:c}=e,o=a===c,n=d||e.isDisabled||e.selectionManager.isDisabled(a),{itemProps:u,isPressed:b}=g.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:l,key:a,ref:t,isDisabled:n,shouldSelectOnPressUp:r,linkBehavior:"selection"}),$=S(e,a,"tab"),v=S(e,a,"tabpanel"),{tabIndex:y}=u,p=e.collection.getItem(a),P=T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(p?.props,{labelable:!0});delete P.id;let V=U.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(p?.props),{focusableProps:A}=W.$f645667febf57a63$export$4c014de7c8940b4c({isDisabled:n},t);return{tabProps:h.$3ef42575df84b30b$export$9d1611c77c2fe928(P,A,V,u,{id:$,"aria-selected":o,"aria-disabled":n||void 0,"aria-controls":o?v:void 0,tabIndex:n?void 0:y,role:"tab"}),isSelected:o,isDisabled:n,isPressed:b}}function _(i,e,t){let a=B.$83013635b024ae3d$export$eac1895992b9f3d6(t)?void 0:0;var d;const r=S(e,(d=i.id)!==null&&d!==void 0?d:e?.selectedKey,"tabpanel"),l=I.$313b98861ee5dd6c$export$d6875122194c7b44({...i,id:r,"aria-labelledby":S(e,e?.selectedKey,"tab")});return{tabPanelProps:h.$3ef42575df84b30b$export$9d1611c77c2fe928(l,{tabIndex:a,role:"tabpanel","aria-describedby":i["aria-describedby"],"aria-details":i["aria-details"]})}}class ee{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,a;return this.disabledKeys.has(e)||!!(!((a=this.collection.getItem(e))===null||a===void 0||(t=a.props)===null||t===void 0)&&t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(t!=null&&this.isDisabled(t));return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(t!=null&&this.isDisabled(t));return t}constructor(e,t,a,d=new Set){this.collection=e,this.flipDirection=t==="rtl"&&a==="horizontal",this.disabledKeys=d,this.tabDirection=a==="horizontal"}}function te(i,e,t){let{orientation:a="horizontal",keyboardActivation:d="automatic"}=i,{collection:r,selectionManager:l,disabledKeys:c}=e,{direction:o}=G.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),n=s.useMemo(()=>new ee(r,o,a,c),[r,c,a,o]),{collectionProps:u}=g.$ae20dd8cbca75726$export$d6daf82dcd84e87c({ref:t,selectionManager:l,keyboardDelegate:n,selectOnFocus:d==="automatic",disallowEmptySelection:!0,scrollRef:t,linkBehavior:"selection"}),b=h.$bdb11010cef70236$export$f680877a34711e37();O.set(e,b);let $=I.$313b98861ee5dd6c$export$d6875122194c7b44({...i,id:b});return{tabListProps:{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(u,$),role:"tablist","aria-orientation":a,tabIndex:void 0}}}function ie(i){var e,t;let a=Q.$a0d645289fe9b86b$export$e7f05e985daf4b5f({...i,onSelectionChange:i.onSelectionChange?o=>{var n;o!=null&&((n=i.onSelectionChange)===null||n===void 0||n.call(i,o))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(t=(e=i.defaultSelectedKey)!==null&&e!==void 0?e:N(i.collection,i.disabledKeys?new Set(i.disabledKeys):new Set))!==null&&t!==void 0?t:void 0}),{selectionManager:d,collection:r,selectedKey:l}=a,c=s.useRef(l);return s.useEffect(()=>{let o=l;i.selectedKey==null&&(d.isEmpty||o==null||!r.getItem(o))&&(o=N(r,a.disabledKeys),o!=null&&d.setSelectedKeys([o])),(o!=null&&d.focusedKey==null||!d.isFocused&&o!==c.current)&&d.setFocusedKey(o),c.current=o}),{...a,isDisabled:i.isDisabled||!1}}function N(i,e){let t=null;if(i){var a,d,r,l;for(t=i.getFirstKey();t!=null&&(e.has(t)||!((d=i.getItem(t))===null||d===void 0||(a=d.props)===null||a===void 0)&&a.isDisabled)&&t!==i.getLastKey();)t=i.getKeyAfter(t);t!=null&&(e.has(t)||!((l=i.getItem(t))===null||l===void 0||(r=l.props)===null||r===void 0)&&r.isDisabled)&&t===i.getLastKey()&&(t=i.getFirstKey())}return t}const D=s.createContext(null),K=s.createContext(null),ae=s.forwardRef(function(e,t){[e,t]=x.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,D);let{children:a,orientation:d="horizontal"}=e;return a=s.useMemo(()=>typeof a=="function"?a({orientation:d,defaultChildren:null}):a,[a,d]),s.createElement(m.$e1995378a142960e$export$bf788dd355e3a401,{content:a},r=>s.createElement(de,{props:e,collection:r,tabsRef:t}))});function de({props:i,tabsRef:e,collection:t}){let{orientation:a="horizontal"}=i,d=ie({...i,collection:t,children:void 0}),{focusProps:r,isFocused:l,isFocusVisible:c}=q.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),o=s.useMemo(()=>({orientation:a,isFocusWithin:l,isFocusVisible:c}),[a,l,c]),n=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,defaultClassName:"react-aria-Tabs",values:o}),u=T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i,{global:!0});return s.createElement("div",{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(u,n,r),ref:e,slot:i.slot||void 0,"data-focused":l||void 0,"data-orientation":a,"data-focus-visible":c||void 0,"data-disabled":d.isDisabled||void 0},s.createElement(x.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[D,i],[K,d]]},n.children))}const re=s.forwardRef(function(e,t){return s.useContext(K)?s.createElement(se,{props:e,forwardedRef:t}):s.createElement(m.$e1995378a142960e$export$fb8073518f34e6ec,e)});function se({props:i,forwardedRef:e}){let t=s.useContext(K),{CollectionRoot:a}=s.useContext(g.$7135fc7d473fd974$export$4feb769f8ddf26c5),{orientation:d="horizontal",keyboardActivation:r="automatic"}=x.$64fa3d84918910a7$export$fabf2dc03a41866e(D),l=R.$df56164dff5785e2$export$4338b53315abf666(e),{tabListProps:c}=te({...i,orientation:d,keyboardActivation:r},t,l),o=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,children:null,defaultClassName:"react-aria-TabList",values:{orientation:d,state:t}}),n=T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i,{global:!0});return delete n.id,s.createElement("div",{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(n,o,c),ref:l,"data-orientation":d||void 0},s.createElement(k.$c8a5a149f625efcf$export$758399f318e6385a,null,s.createElement(a,{collection:t.collection,persistedKeys:g.$7135fc7d473fd974$export$90e00781bc59d8f9(t.selectionManager.focusedKey)})))}class H extends m.$23b9f4fcf0fe224b$export$d68d59712b04d9d1{}H.type="item";const oe=m.$e1995378a142960e$export$18af5c7a9e9b3664(H,(i,e,t)=>{let a=s.useContext(K),d=R.$df56164dff5785e2$export$4338b53315abf666(e),{tabProps:r,isSelected:l,isDisabled:c,isPressed:o}=Z({key:t.key,...i},a,d),{focusProps:n,isFocused:u,isFocusVisible:b}=q.$f7dceffc5ad7768b$export$4e328f61c538687f(),{hoverProps:$,isHovered:v}=J.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:c,onHoverStart:i.onHoverStart,onHoverEnd:i.onHoverEnd,onHoverChange:i.onHoverChange}),y=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,id:void 0,children:t.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:c,isFocused:u,isFocusVisible:b,isPressed:o,isHovered:v}}),p=t.props.href?"a":"div",P=T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i,{global:!0});return delete P.id,delete P.onClick,s.createElement(p,{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(P,y,r,n,$),ref:d,"data-selected":l||void 0,"data-disabled":c||void 0,"data-focused":u||void 0,"data-focus-visible":b||void 0,"data-pressed":o||void 0,"data-hovered":v||void 0},s.createElement(k.$1d5b8b8664671ef2$export$c9549807523555e0.Provider,{value:{isSelected:l}},y.children))}),le=z.$f39a9eba43920ace$export$86427a43e3e48ebb(function(e,t){const a=s.useContext(K);let d=R.$df56164dff5785e2$export$4338b53315abf666(t),{id:r,...l}=e,{tabPanelProps:c}=_(e,a,d),{focusProps:o,isFocused:n,isFocusVisible:u}=q.$f7dceffc5ad7768b$export$4e328f61c538687f(),b=a.selectedKey===e.id,$=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:n,isFocusVisible:u,isInert:j.$cdc5a6778b766db2$export$a9d04c5684123369(!b),state:a}});if(!b&&!e.shouldForceMount)return null;let v=T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(l,{global:!0});delete v.id;let y=b?h.$3ef42575df84b30b$export$9d1611c77c2fe928(v,c,o,$):$;return s.createElement("div",{...y,ref:d,"data-focused":n||void 0,"data-focus-visible":u||void 0,inert:j.$cdc5a6778b766db2$export$a9d04c5684123369(!b||e.inert),"data-inert":b?void 0:"true"},s.createElement(x.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[D,null],[K,null]]},s.createElement(g.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:g.$7135fc7d473fd974$export$a164736487e3f0ae},$.children)))}),{withProvider:ne,withContext:C}=X.createSlotRecipeContext({key:"tabs"}),ce=ne("div","root"),fe=C("div","list"),be=C("button","tab"),ue=C("div","panels"),$e=C("div","panel"),F=({children:i,isDisabled:e,...t})=>f.jsx(be,{asChild:!0,...t,children:f.jsx(oe,{isDisabled:e,children:i})});F.displayName="Tabs.Tab";const E=({tabs:i,children:e,...t})=>{const[a,d]=Y.extractStyleProps(t);if(!i&&!e)throw new Error('Tabs.List: Either provide "tabs" prop or "children" must be provided');return f.jsx(fe,{...a,asChild:!0,children:f.jsx(re,{items:i,...d,children:i?r=>f.jsx(F,{id:r.id,isDisabled:r.isDisabled,children:r.tabLabel},r.id):e})})};E.displayName="Tabs.List";const w=s.forwardRef(({children:i,...e},t)=>{if(!i)throw new Error("Tabs.Panel: children prop is required");return f.jsx($e,{asChild:!0,ref:t,...e,children:f.jsx(le,{children:i})})});w.displayName="Tabs.Panel";const L=({tabs:i,children:e,...t})=>{if(!i&&!e)throw new Error('Tabs.Panels: Either provide "items" prop or "children" must be provided');return f.jsx(ue,{...t,children:i?f.jsx(m.$e1995378a142960e$export$fb8073518f34e6ec,{items:i,children:a=>f.jsx(w,{id:a.id,children:a.panelContent},a.id)}):e})};L.displayName="Tabs.Panels";const M=({children:i,orientation:e="horizontal",disabledKeys:t,placement:a="start",size:d="md",tabs:r,...l})=>f.jsx(ce,{asChild:!0,orientation:e,placement:a,size:d,...l,children:f.jsx(ae,{disabledKeys:t,...r,children:i||f.jsxs(f.Fragment,{children:[f.jsx(E,{tabs:r}),f.jsx(L,{tabs:r})]})})});M.displayName="Tabs.Root";const pe={Root:M,List:E,Tab:F,Panels:L,Panel:w};exports.Tab=F;exports.TabList=E;exports.TabPanel=w;exports.TabPanels=L;exports.Tabs=pe;exports.TabsRoot=M;
2
- //# sourceMappingURL=tabs-CJ0OAUSR.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"text-input-CSAODlCw.es.js","sources":["../../src/components/text-input/text-input.slots.tsx","../../src/components/text-input/text-input.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n TextInputRootSlotProps,\n TextInputLeadingElementSlotProps,\n TextInputInputSlotProps,\n TextInputTrailingElementSlotProps,\n} from \"./text-input.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"textInput\",\n});\n\nexport const TextInputRootSlot = withProvider<\n HTMLDivElement,\n TextInputRootSlotProps\n>(\"div\", \"root\");\n\nexport const TextInputLeadingElementSlot = withContext<\n HTMLDivElement,\n TextInputLeadingElementSlotProps\n>(\"div\", \"leadingElement\");\n\nexport const TextInputInputSlot = withContext<\n HTMLInputElement,\n TextInputInputSlotProps\n>(\"input\", \"input\");\n\nexport const TextInputTrailingElementSlot = withContext<\n HTMLDivElement,\n TextInputTrailingElementSlotProps\n>(\"div\", \"trailingElement\");\n","import { useEffect, useRef } from \"react\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { useObjectRef, useTextField } from \"react-aria\";\nimport { Input } from \"react-aria-components\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { textInputSlotRecipe } from \"./text-input.recipe\";\nimport {\n TextInputRootSlot,\n TextInputLeadingElementSlot,\n TextInputInputSlot,\n TextInputTrailingElementSlot,\n} from \"./text-input.slots\";\nimport type { TextInputProps } from \"./text-input.types\";\n\n/**\n * # TextInput\n *\n * An input component that takes in a text as input\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/textinput}\n */\nexport const TextInput = (props: TextInputProps) => {\n const {\n leadingElement,\n trailingElement,\n ref: forwardedRef,\n ...restProps\n } = props;\n\n const recipe = useSlotRecipe({ recipe: textInputSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(restProps);\n\n const rootRef = useRef<HTMLDivElement>(null);\n const localRef = useRef<HTMLInputElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n const { inputProps } = useTextField(otherProps, ref);\n\n const stateProps = {\n \"data-disabled\": inputProps.disabled ? \"true\" : undefined,\n \"data-invalid\": inputProps[\"aria-invalid\"] ? \"true\" : \"false\",\n };\n\n // Using a useEffect instead of \"onClick\" on the element, to preserve\n // the `onClick` prop for consumers.\n useEffect(() => {\n const handleRootClick = (event: MouseEvent) => {\n // Only focus if the click is inside the root element,\n // not on the input itself, and not on an interactive element\n if (\n rootRef.current &&\n rootRef.current.contains(event.target as Node) &&\n localRef.current &&\n event.target !== localRef.current\n ) {\n localRef.current.focus();\n }\n };\n document.addEventListener(\"click\", handleRootClick);\n return () => {\n document.removeEventListener(\"click\", handleRootClick);\n };\n }, []);\n\n return (\n <TextInputRootSlot\n ref={rootRef}\n className={props?.className as string}\n {...recipeProps}\n {...styleProps}\n {...stateProps}\n >\n {leadingElement && (\n <TextInputLeadingElementSlot>\n {leadingElement}\n </TextInputLeadingElementSlot>\n )}\n <TextInputInputSlot asChild>\n <Input ref={ref} {...inputProps} />\n </TextInputInputSlot>\n {trailingElement && (\n <TextInputTrailingElementSlot>\n {trailingElement}\n </TextInputTrailingElementSlot>\n )}\n </TextInputRootSlot>\n );\n};\n\nTextInput.displayName = \"TextInput\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","TextInputRootSlot","TextInputLeadingElementSlot","TextInputInputSlot","TextInputTrailingElementSlot","TextInput","props","leadingElement","trailingElement","forwardedRef","restProps","recipe","useSlotRecipe","textInputSlotRecipe","recipeProps","remainingProps","rootRef","useRef","localRef","ref","useObjectRef","mergeRefs","styleProps","otherProps","extractStyleProps","inputProps","useTextField","stateProps","useEffect","handleRootClick","event","jsxs","jsx","Input"],"mappings":";;;;;;;;;AAQA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAEYC,IAAoB,gBAAAH,EAG/B,OAAO,MAAM,GAEFI,IAA8B,gBAAAH,EAGzC,OAAO,gBAAgB,GAEZI,IAAqB,gBAAAJ,EAGhC,SAAS,OAAO,GAELK,IAA+B,gBAAAL,EAG1C,OAAO,iBAAiB,GCRbM,IAAY,CAACC,MAA0B;AAClD,QAAM;AAAA,IACJ,gBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,KAAKC;AAAA,IACL,GAAGC;AAAA,EAAA,IACDJ,GAEEK,IAASC,EAAc,EAAE,QAAQC,GAAqB,GACtD,CAACC,GAAaC,CAAc,IAAIJ,EAAO,kBAAkBD,CAAS,GAElEM,IAAUC,EAAuB,IAAI,GACrCC,IAAWD,EAAyB,IAAI,GACxCE,IAAMC,EAAaC,EAAUH,GAAUT,CAAY,CAAC,GAEpD,CAACa,GAAYC,CAAU,IAAIC,EAAkBT,CAAc,GAC3D,EAAE,YAAAU,EAAA,IAAeC,EAAaH,GAAYJ,CAAG,GAE7CQ,IAAa;AAAA,IACjB,iBAAiBF,EAAW,WAAW,SAAS;AAAA,IAChD,gBAAgBA,EAAW,cAAc,IAAI,SAAS;AAAA,EAAA;AAKxD,SAAAG,EAAU,MAAM;AACd,UAAMC,IAAkB,CAACC,MAAsB;AAG7C,MACEd,EAAQ,WACRA,EAAQ,QAAQ,SAASc,EAAM,MAAc,KAC7CZ,EAAS,WACTY,EAAM,WAAWZ,EAAS,WAE1BA,EAAS,QAAQ,MAAA;AAAA,IAErB;AACA,oBAAS,iBAAiB,SAASW,CAAe,GAC3C,MAAM;AACX,eAAS,oBAAoB,SAASA,CAAe;AAAA,IACvD;AAAA,EACF,GAAG,CAAA,CAAE,GAGH,gBAAAE;AAAA,IAAC9B;AAAA,IAAA;AAAA,MACC,KAAKe;AAAA,MACL,WAAWV,GAAO;AAAA,MACjB,GAAGQ;AAAA,MACH,GAAGQ;AAAA,MACH,GAAGK;AAAA,MAEH,UAAA;AAAA,QAAApB,KACC,gBAAAyB,EAAC9B,KACE,UAAAK,EAAA,CACH;AAAA,QAEF,gBAAAyB,EAAC7B,KAAmB,SAAO,IACzB,4BAAC8B,GAAA,EAAM,KAAAd,GAAW,GAAGM,EAAA,CAAY,EAAA,CACnC;AAAA,QACCjB,KACC,gBAAAwB,EAAC5B,GAAA,EACE,UAAAI,EAAA,CACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;AAEAH,EAAU,cAAc;"}
@@ -1,2 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),s=require("react"),p=require("@chakra-ui/react"),q=require("@chakra-ui/react/styled-system"),v=require("./Input-_6sPm9s0.cjs.js"),E=require("./extractStyleProps-Dk3fpLyQ.cjs.js"),T=require("./index-CRFg4Mhx.cjs.js"),$=require("./useObjectRef-dXOJdONs.cjs.js"),b=require("./useTextField-0jWzqKW2.cjs.js"),{withProvider:j,withContext:c}=p.createSlotRecipeContext({key:"textInput"}),y=j("div","root"),k=c("div","leadingElement"),C=c("input","input"),w=c("div","trailingElement"),f=o=>{const{leadingElement:i,trailingElement:l,ref:x,...m}=o,R=q.useSlotRecipe({recipe:T.textInputSlotRecipe}),[I,P]=R.splitVariantProps(m),r=s.useRef(null),t=s.useRef(null),u=$.$df56164dff5785e2$export$4338b53315abf666(p.mergeRefs(t,x)),[g,S]=E.extractStyleProps(P),{inputProps:n}=b.$2d73ec29415bd339$export$712718f7aec83d5(S,u),h={"data-disabled":n.disabled?"true":void 0,"data-invalid":n["aria-invalid"]?"true":"false"};return s.useEffect(()=>{const a=d=>{r.current&&r.current.contains(d.target)&&t.current&&d.target!==t.current&&t.current.focus()};return document.addEventListener("click",a),()=>{document.removeEventListener("click",a)}},[]),e.jsxs(y,{ref:r,className:o?.className,...I,...g,...h,children:[i&&e.jsx(k,{children:i}),e.jsx(C,{asChild:!0,children:e.jsx(v.$3985021b0ad6602f$export$f5b8910cec6cf069,{ref:u,...n})}),l&&e.jsx(w,{children:l})]})};f.displayName="TextInput";exports.TextInput=f;
2
- //# sourceMappingURL=text-input-DZdkCbdd.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"text-input-DZdkCbdd.cjs.js","sources":["../../src/components/text-input/text-input.slots.tsx","../../src/components/text-input/text-input.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n TextInputRootSlotProps,\n TextInputLeadingElementSlotProps,\n TextInputInputSlotProps,\n TextInputTrailingElementSlotProps,\n} from \"./text-input.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"textInput\",\n});\n\nexport const TextInputRootSlot = withProvider<\n HTMLDivElement,\n TextInputRootSlotProps\n>(\"div\", \"root\");\n\nexport const TextInputLeadingElementSlot = withContext<\n HTMLDivElement,\n TextInputLeadingElementSlotProps\n>(\"div\", \"leadingElement\");\n\nexport const TextInputInputSlot = withContext<\n HTMLInputElement,\n TextInputInputSlotProps\n>(\"input\", \"input\");\n\nexport const TextInputTrailingElementSlot = withContext<\n HTMLDivElement,\n TextInputTrailingElementSlotProps\n>(\"div\", \"trailingElement\");\n","import { useEffect, useRef } from \"react\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { useObjectRef, useTextField } from \"react-aria\";\nimport { Input } from \"react-aria-components\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { textInputSlotRecipe } from \"./text-input.recipe\";\nimport {\n TextInputRootSlot,\n TextInputLeadingElementSlot,\n TextInputInputSlot,\n TextInputTrailingElementSlot,\n} from \"./text-input.slots\";\nimport type { TextInputProps } from \"./text-input.types\";\n\n/**\n * # TextInput\n *\n * An input component that takes in a text as input\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/textinput}\n */\nexport const TextInput = (props: TextInputProps) => {\n const {\n leadingElement,\n trailingElement,\n ref: forwardedRef,\n ...restProps\n } = props;\n\n const recipe = useSlotRecipe({ recipe: textInputSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(restProps);\n\n const rootRef = useRef<HTMLDivElement>(null);\n const localRef = useRef<HTMLInputElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n const { inputProps } = useTextField(otherProps, ref);\n\n const stateProps = {\n \"data-disabled\": inputProps.disabled ? \"true\" : undefined,\n \"data-invalid\": inputProps[\"aria-invalid\"] ? \"true\" : \"false\",\n };\n\n // Using a useEffect instead of \"onClick\" on the element, to preserve\n // the `onClick` prop for consumers.\n useEffect(() => {\n const handleRootClick = (event: MouseEvent) => {\n // Only focus if the click is inside the root element,\n // not on the input itself, and not on an interactive element\n if (\n rootRef.current &&\n rootRef.current.contains(event.target as Node) &&\n localRef.current &&\n event.target !== localRef.current\n ) {\n localRef.current.focus();\n }\n };\n document.addEventListener(\"click\", handleRootClick);\n return () => {\n document.removeEventListener(\"click\", handleRootClick);\n };\n }, []);\n\n return (\n <TextInputRootSlot\n ref={rootRef}\n className={props?.className as string}\n {...recipeProps}\n {...styleProps}\n {...stateProps}\n >\n {leadingElement && (\n <TextInputLeadingElementSlot>\n {leadingElement}\n </TextInputLeadingElementSlot>\n )}\n <TextInputInputSlot asChild>\n <Input ref={ref} {...inputProps} />\n </TextInputInputSlot>\n {trailingElement && (\n <TextInputTrailingElementSlot>\n {trailingElement}\n </TextInputTrailingElementSlot>\n )}\n </TextInputRootSlot>\n );\n};\n\nTextInput.displayName = \"TextInput\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","TextInputRootSlot","TextInputLeadingElementSlot","TextInputInputSlot","TextInputTrailingElementSlot","TextInput","props","leadingElement","trailingElement","forwardedRef","restProps","recipe","useSlotRecipe","textInputSlotRecipe","recipeProps","remainingProps","rootRef","useRef","localRef","ref","useObjectRef","mergeRefs","styleProps","otherProps","extractStyleProps","inputProps","useTextField","stateProps","useEffect","handleRootClick","event","jsxs","jsx","Input"],"mappings":"kWAQM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,WACP,CAAC,EAEYC,EAAoBH,EAG/B,MAAO,MAAM,EAEFI,EAA8BH,EAGzC,MAAO,gBAAgB,EAEZI,EAAqBJ,EAGhC,QAAS,OAAO,EAELK,EAA+BL,EAG1C,MAAO,iBAAiB,ECRbM,EAAaC,GAA0B,CAClD,KAAM,CACJ,eAAAC,EACA,gBAAAC,EACA,IAAKC,EACL,GAAGC,CAAA,EACDJ,EAEEK,EAASC,EAAAA,cAAc,CAAE,OAAQC,EAAAA,oBAAqB,EACtD,CAACC,EAAaC,CAAc,EAAIJ,EAAO,kBAAkBD,CAAS,EAElEM,EAAUC,EAAAA,OAAuB,IAAI,EACrCC,EAAWD,EAAAA,OAAyB,IAAI,EACxCE,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUH,EAAUT,CAAY,CAAC,EAEpD,CAACa,EAAYC,CAAU,EAAIC,EAAAA,kBAAkBT,CAAc,EAC3D,CAAE,WAAAU,CAAA,EAAeC,2CAAaH,EAAYJ,CAAG,EAE7CQ,EAAa,CACjB,gBAAiBF,EAAW,SAAW,OAAS,OAChD,eAAgBA,EAAW,cAAc,EAAI,OAAS,OAAA,EAKxDG,OAAAA,EAAAA,UAAU,IAAM,CACd,MAAMC,EAAmBC,GAAsB,CAI3Cd,EAAQ,SACRA,EAAQ,QAAQ,SAASc,EAAM,MAAc,GAC7CZ,EAAS,SACTY,EAAM,SAAWZ,EAAS,SAE1BA,EAAS,QAAQ,MAAA,CAErB,EACA,gBAAS,iBAAiB,QAASW,CAAe,EAC3C,IAAM,CACX,SAAS,oBAAoB,QAASA,CAAe,CACvD,CACF,EAAG,CAAA,CAAE,EAGHE,EAAAA,KAAC9B,EAAA,CACC,IAAKe,EACL,UAAWV,GAAO,UACjB,GAAGQ,EACH,GAAGQ,EACH,GAAGK,EAEH,SAAA,CAAApB,GACCyB,EAAAA,IAAC9B,GACE,SAAAK,CAAA,CACH,EAEFyB,EAAAA,IAAC7B,GAAmB,QAAO,GACzB,eAAC8B,EAAAA,0CAAA,CAAM,IAAAd,EAAW,GAAGM,CAAA,CAAY,CAAA,CACnC,EACCjB,GACCwB,EAAAA,IAAC5B,EAAA,CACE,SAAAI,CAAA,CACH,CAAA,CAAA,CAAA,CAIR,EAEAH,EAAU,YAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"time-input--a_qv-Jk.es.js","sources":["../../src/components/time-input/time-input.slots.tsx","../../src/components/time-input/time-input.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n createSlotRecipeContext,\n} from \"@chakra-ui/react\";\nimport type {\n TimeInputRootSlotProps,\n TimeInputLeadingElementSlotProps,\n TimeInputTrailingElementSlotProps,\n} from \"./time-input.types\";\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"timeInput\",\n});\n\n/**\n * Root component that provides the styling context for the TimeInput component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const TimeInputRootSlot = withProvider<\n HTMLDivElement,\n TimeInputRootSlotProps\n>(\"div\", \"root\");\n\nexport const TimeInputLeadingElementSlot = withContext<\n HTMLDivElement,\n TimeInputLeadingElementSlotProps\n>(\"div\", \"leadingElement\");\n\nexport const TimeInputTrailingElementSlot = withContext<\n HTMLDivElement,\n TimeInputTrailingElementSlotProps\n>(\"div\", \"trailingElement\");\n\n/**\n * Slot component for the TimeField part of the TimeInput.\n */\nexport const TimeInputSegmentGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segmentGroup\");\n\n/**\n * Slot component for the TimeField part of the TimeInput.\n */\nexport const TimeInputSegmentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segment\");\n","import {\n TimeInputRootSlot,\n TimeInputLeadingElementSlot,\n TimeInputTrailingElementSlot,\n TimeInputSegmentGroupSlot,\n TimeInputSegmentSlot,\n} from \"./time-input.slots\";\n\nimport { TimeField, DateInput, DateSegment } from \"react-aria-components\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { timeInputRecipe } from \"./time-input.recipe\";\nimport type { TimeInputProps } from \"./time-input.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n/**\n * TimeInput\n * ============================================================\n * allows entering a time in the currently selected locale\n */\nexport const TimeInput = (props: TimeInputProps) => {\n const recipe = useRecipe({ recipe: timeInputRecipe });\n const { leadingElement, trailingElement, ...rest } = props;\n const [recipeProps, remainingProps] = recipe.splitVariantProps({ ...rest });\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <TimeInputRootSlot asChild {...recipeProps} {...styleProps}>\n <TimeField {...otherProps}>\n {leadingElement && (\n <TimeInputLeadingElementSlot>\n {leadingElement}\n </TimeInputLeadingElementSlot>\n )}\n <TimeInputSegmentGroupSlot asChild>\n <DateInput>\n {(segment) => (\n <TimeInputSegmentSlot asChild>\n <DateSegment segment={segment} />\n </TimeInputSegmentSlot>\n )}\n </DateInput>\n </TimeInputSegmentGroupSlot>\n {trailingElement && (\n <TimeInputTrailingElementSlot>\n {trailingElement}\n </TimeInputTrailingElementSlot>\n )}\n </TimeField>\n </TimeInputRootSlot>\n );\n};\n\nTimeInput.displayName = \"TimeInput\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","TimeInputRootSlot","TimeInputLeadingElementSlot","TimeInputTrailingElementSlot","TimeInputSegmentGroupSlot","TimeInputSegmentSlot","TimeInput","props","recipe","useRecipe","timeInputRecipe","leadingElement","trailingElement","rest","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","jsx","jsxs","TimeField","DateInput","segment","DateSegment"],"mappings":";;;;;;AAWA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAMYC,IAAoB,gBAAAH,EAG/B,OAAO,MAAM,GAEFI,IAA8B,gBAAAH,EAGzC,OAAO,gBAAgB,GAEZI,IAA+B,gBAAAJ,EAG1C,OAAO,iBAAiB,GAKbK,IAA4B,gBAAAL,EAGvC,OAAO,cAAc,GAKVM,IAAuB,gBAAAN,EAGlC,OAAO,SAAS,GC9BLO,IAAY,CAACC,MAA0B;AAClD,QAAMC,IAASC,EAAU,EAAE,QAAQC,GAAiB,GAC9C,EAAE,gBAAAC,GAAgB,iBAAAC,GAAiB,GAAGC,MAASN,GAC/C,CAACO,GAAaC,CAAc,IAAIP,EAAO,kBAAkB,EAAE,GAAGK,GAAM,GACpE,CAACG,GAAYC,CAAU,IAAIC,EAAkBH,CAAc;AAEjE,SACE,gBAAAI,EAAClB,GAAA,EAAkB,SAAO,IAAE,GAAGa,GAAc,GAAGE,GAC9C,UAAA,gBAAAI,EAACC,GAAA,EAAW,GAAGJ,GACZ,UAAA;AAAA,IAAAN,KACC,gBAAAQ,EAACjB,KACE,UAAAS,EAAA,CACH;AAAA,sBAEDP,GAAA,EAA0B,SAAO,IAChC,UAAA,gBAAAe,EAACG,KACE,UAAA,CAACC,MACA,gBAAAJ,EAACd,GAAA,EAAqB,SAAO,IAC3B,UAAA,gBAAAc,EAACK,KAAY,SAAAD,EAAA,CAAkB,GACjC,GAEJ,EAAA,CACF;AAAA,IACCX,KACC,gBAAAO,EAAChB,GAAA,EACE,UAAAS,EAAA,CACH;AAAA,EAAA,EAAA,CAEJ,EAAA,CACF;AAEJ;AAEAN,EAAU,cAAc;"}
@@ -1,2 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),x=require("@chakra-ui/react"),i=require("./DateField-CDTSjqvQ.cjs.js"),h=require("@chakra-ui/react/styled-system"),g=require("./index-CRFg4Mhx.cjs.js"),S=require("./extractStyleProps-Dk3fpLyQ.cjs.js"),{withProvider:I,withContext:t}=x.createSlotRecipeContext({key:"timeInput"}),j=I("div","root"),T=t("div","leadingElement"),$=t("div","trailingElement"),P=t("div","segmentGroup"),b=t("div","segment"),s=o=>{const c=h.useRecipe({recipe:g.timeInputRecipe}),{leadingElement:n,trailingElement:r,...l}=o,[p,d]=c.splitVariantProps({...l}),[u,m]=S.extractStyleProps(d);return e.jsx(j,{asChild:!0,...p,...u,children:e.jsxs(i.$40825cdb76e74f70$export$5eaee2322dd727eb,{...m,children:[n&&e.jsx(T,{children:n}),e.jsx(P,{asChild:!0,children:e.jsx(i.$40825cdb76e74f70$export$7edc06cf1783b30f,{children:a=>e.jsx(b,{asChild:!0,children:e.jsx(i.$40825cdb76e74f70$export$336ab7fa954c4b5f,{segment:a})})})}),r&&e.jsx($,{children:r})]})})};s.displayName="TimeInput";exports.TimeInput=s;
2
- //# sourceMappingURL=time-input-zXykDANk.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"time-input-zXykDANk.cjs.js","sources":["../../src/components/time-input/time-input.slots.tsx","../../src/components/time-input/time-input.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n createSlotRecipeContext,\n} from \"@chakra-ui/react\";\nimport type {\n TimeInputRootSlotProps,\n TimeInputLeadingElementSlotProps,\n TimeInputTrailingElementSlotProps,\n} from \"./time-input.types\";\n\n// Correctly destructure from createSlotRecipeContext based on project examples\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"timeInput\",\n});\n\n/**\n * Root component that provides the styling context for the TimeInput component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const TimeInputRootSlot = withProvider<\n HTMLDivElement,\n TimeInputRootSlotProps\n>(\"div\", \"root\");\n\nexport const TimeInputLeadingElementSlot = withContext<\n HTMLDivElement,\n TimeInputLeadingElementSlotProps\n>(\"div\", \"leadingElement\");\n\nexport const TimeInputTrailingElementSlot = withContext<\n HTMLDivElement,\n TimeInputTrailingElementSlotProps\n>(\"div\", \"trailingElement\");\n\n/**\n * Slot component for the TimeField part of the TimeInput.\n */\nexport const TimeInputSegmentGroupSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segmentGroup\");\n\n/**\n * Slot component for the TimeField part of the TimeInput.\n */\nexport const TimeInputSegmentSlot = withContext<\n HTMLDivElement,\n HTMLChakraProps<\"div\">\n>(\"div\", \"segment\");\n","import {\n TimeInputRootSlot,\n TimeInputLeadingElementSlot,\n TimeInputTrailingElementSlot,\n TimeInputSegmentGroupSlot,\n TimeInputSegmentSlot,\n} from \"./time-input.slots\";\n\nimport { TimeField, DateInput, DateSegment } from \"react-aria-components\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { timeInputRecipe } from \"./time-input.recipe\";\nimport type { TimeInputProps } from \"./time-input.types\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n/**\n * TimeInput\n * ============================================================\n * allows entering a time in the currently selected locale\n */\nexport const TimeInput = (props: TimeInputProps) => {\n const recipe = useRecipe({ recipe: timeInputRecipe });\n const { leadingElement, trailingElement, ...rest } = props;\n const [recipeProps, remainingProps] = recipe.splitVariantProps({ ...rest });\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <TimeInputRootSlot asChild {...recipeProps} {...styleProps}>\n <TimeField {...otherProps}>\n {leadingElement && (\n <TimeInputLeadingElementSlot>\n {leadingElement}\n </TimeInputLeadingElementSlot>\n )}\n <TimeInputSegmentGroupSlot asChild>\n <DateInput>\n {(segment) => (\n <TimeInputSegmentSlot asChild>\n <DateSegment segment={segment} />\n </TimeInputSegmentSlot>\n )}\n </DateInput>\n </TimeInputSegmentGroupSlot>\n {trailingElement && (\n <TimeInputTrailingElementSlot>\n {trailingElement}\n </TimeInputTrailingElementSlot>\n )}\n </TimeField>\n </TimeInputRootSlot>\n );\n};\n\nTimeInput.displayName = \"TimeInput\";\n"],"names":["withProvider","withContext","createSlotRecipeContext","TimeInputRootSlot","TimeInputLeadingElementSlot","TimeInputTrailingElementSlot","TimeInputSegmentGroupSlot","TimeInputSegmentSlot","TimeInput","props","recipe","useRecipe","timeInputRecipe","leadingElement","trailingElement","rest","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","jsx","jsxs","TimeField","DateInput","segment","DateSegment"],"mappings":"2PAWM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,WACP,CAAC,EAMYC,EAAoBH,EAG/B,MAAO,MAAM,EAEFI,EAA8BH,EAGzC,MAAO,gBAAgB,EAEZI,EAA+BJ,EAG1C,MAAO,iBAAiB,EAKbK,EAA4BL,EAGvC,MAAO,cAAc,EAKVM,EAAuBN,EAGlC,MAAO,SAAS,EC9BLO,EAAaC,GAA0B,CAClD,MAAMC,EAASC,EAAAA,UAAU,CAAE,OAAQC,EAAAA,gBAAiB,EAC9C,CAAE,eAAAC,EAAgB,gBAAAC,EAAiB,GAAGC,GAASN,EAC/C,CAACO,EAAaC,CAAc,EAAIP,EAAO,kBAAkB,CAAE,GAAGK,EAAM,EACpE,CAACG,EAAYC,CAAU,EAAIC,EAAAA,kBAAkBH,CAAc,EAEjE,OACEI,EAAAA,IAAClB,EAAA,CAAkB,QAAO,GAAE,GAAGa,EAAc,GAAGE,EAC9C,SAAAI,EAAAA,KAACC,EAAAA,0CAAA,CAAW,GAAGJ,EACZ,SAAA,CAAAN,GACCQ,EAAAA,IAACjB,GACE,SAAAS,CAAA,CACH,QAEDP,EAAA,CAA0B,QAAO,GAChC,SAAAe,EAAAA,IAACG,6CACE,SAACC,GACAJ,EAAAA,IAACd,EAAA,CAAqB,QAAO,GAC3B,SAAAc,EAAAA,IAACK,6CAAY,QAAAD,CAAA,CAAkB,EACjC,EAEJ,CAAA,CACF,EACCX,GACCO,EAAAA,IAAChB,EAAA,CACE,SAAAS,CAAA,CACH,CAAA,CAAA,CAEJ,CAAA,CACF,CAEJ,EAEAN,EAAU,YAAc"}
@@ -1,2 +0,0 @@
1
- "use strict";const r=require("react/jsx-runtime"),l=require("@chakra-ui/react/styled-system"),a=require("./ToggleButton-1I5cetxI.cjs.js"),d=require("./extractStyleProps-Dk3fpLyQ.cjs.js"),p=require("@chakra-ui/react"),g=require("./emotion-is-prop-valid.esm-ux_11lix.cjs.js"),P=require("./index-CRFg4Mhx.cjs.js"),{withContext:y}=p.createRecipeContext({key:"toggleButton"}),x=y("button",{defaultProps:{type:"button"},shouldForwardProp(e,t){const o=!t?.includes(e)&&!P.system.isValidProperty(e);return g.isPropValid(e)&&o&&!e.includes("onPress")}}),s=({ref:e,...t})=>{const o=l.useRecipe({key:"toggleButton"}),[n,i]=o.splitVariantProps(t),[c,u]=d.extractStyleProps(i);return r.jsx(x,{...n,...c,asChild:!0,children:r.jsx(a.$efde0372d7a700fe$export$d2b052e7b4be1756,{ref:e,...u})})};s.displayName="ToggleButton";exports.ToggleButton=s;
2
- //# sourceMappingURL=toggle-button-DxMZsem4.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toggle-button-DxMZsem4.cjs.js","sources":["../../src/components/toggle-button/toggle-button.slots.tsx","../../src/components/toggle-button/toggle-button.tsx"],"sourcesContent":["import { createRecipeContext } from \"@chakra-ui/react\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\nimport { system } from \"@/theme\";\nimport type { ToggleButtonRootSlotProps } from \"./toggle-button.types\";\n\nconst { withContext } = createRecipeContext({\n key: \"toggleButton\",\n});\n\n/**\n * Root component that provides the styling context for the ToggleButton component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const ToggleButtonRoot = withContext<\n HTMLButtonElement,\n ToggleButtonRootSlotProps\n>(\"button\", {\n defaultProps: {\n type: \"button\",\n },\n /** make sure the `onPress` properties won't end up as attribute on the rendered DOM element */\n shouldForwardProp(prop, variantKeys) {\n const chakraSfp =\n !variantKeys?.includes(prop) && !system.isValidProperty(prop);\n return shouldForwardProp(prop) && chakraSfp && !prop.includes(\"onPress\");\n },\n});\n","import { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { ToggleButton as RaToggleButton } from \"react-aria-components\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n\nimport { ToggleButtonRoot } from \"./toggle-button.slots\";\nimport type { ToggleButtonProps } from \"./toggle-button.types\";\n\n/**\n * # ToggleButton\n *\n * A toggleable button component that can be pressed to switch between\n * selected and unselected states.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/togglebutton}\n */\nexport const ToggleButton = ({\n ref: forwardedRef,\n ...props\n}: ToggleButtonProps) => {\n const recipe = useRecipe({ key: \"toggleButton\" });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(props);\n const [styleProps, functionalProps] = extractStyleProps(restRecipeProps);\n\n return (\n <ToggleButtonRoot {...recipeProps} {...styleProps} asChild>\n <RaToggleButton ref={forwardedRef} {...functionalProps} />\n </ToggleButtonRoot>\n );\n};\n\nToggleButton.displayName = \"ToggleButton\";\n"],"names":["withContext","createRecipeContext","ToggleButtonRoot","prop","variantKeys","chakraSfp","system","shouldForwardProp","ToggleButton","forwardedRef","props","recipe","useRecipe","recipeProps","restRecipeProps","styleProps","functionalProps","extractStyleProps","jsx","RaToggleButton"],"mappings":"uTAKM,CAAE,YAAAA,CAAA,EAAgBC,sBAAoB,CAC1C,IAAK,cACP,CAAC,EAMYC,EAAmBF,EAG9B,SAAU,CACV,aAAc,CACZ,KAAM,QAAA,EAGR,kBAAkBG,EAAMC,EAAa,CACnC,MAAMC,EACJ,CAACD,GAAa,SAASD,CAAI,GAAK,CAACG,EAAAA,OAAO,gBAAgBH,CAAI,EAC9D,OAAOI,EAAAA,YAAkBJ,CAAI,GAAKE,GAAa,CAACF,EAAK,SAAS,SAAS,CACzE,CACF,CAAC,ECXYK,EAAe,CAAC,CAC3B,IAAKC,EACL,GAAGC,CACL,IAAyB,CACvB,MAAMC,EAASC,EAAAA,UAAU,CAAE,IAAK,eAAgB,EAC1C,CAACC,EAAaC,CAAe,EAAIH,EAAO,kBAAkBD,CAAK,EAC/D,CAACK,EAAYC,CAAe,EAAIC,EAAAA,kBAAkBH,CAAe,EAEvE,OACEI,EAAAA,IAAChB,EAAA,CAAkB,GAAGW,EAAc,GAAGE,EAAY,QAAO,GACxD,SAAAG,EAAAA,IAACC,EAAAA,0CAAA,CAAe,IAAKV,EAAe,GAAGO,EAAiB,EAC1D,CAEJ,EAEAR,EAAa,YAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"toggle-button-awb1jBf8.es.js","sources":["../../src/components/toggle-button/toggle-button.slots.tsx","../../src/components/toggle-button/toggle-button.tsx"],"sourcesContent":["import { createRecipeContext } from \"@chakra-ui/react\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\nimport { system } from \"@/theme\";\nimport type { ToggleButtonRootSlotProps } from \"./toggle-button.types\";\n\nconst { withContext } = createRecipeContext({\n key: \"toggleButton\",\n});\n\n/**\n * Root component that provides the styling context for the ToggleButton component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const ToggleButtonRoot = withContext<\n HTMLButtonElement,\n ToggleButtonRootSlotProps\n>(\"button\", {\n defaultProps: {\n type: \"button\",\n },\n /** make sure the `onPress` properties won't end up as attribute on the rendered DOM element */\n shouldForwardProp(prop, variantKeys) {\n const chakraSfp =\n !variantKeys?.includes(prop) && !system.isValidProperty(prop);\n return shouldForwardProp(prop) && chakraSfp && !prop.includes(\"onPress\");\n },\n});\n","import { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { ToggleButton as RaToggleButton } from \"react-aria-components\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\n\nimport { ToggleButtonRoot } from \"./toggle-button.slots\";\nimport type { ToggleButtonProps } from \"./toggle-button.types\";\n\n/**\n * # ToggleButton\n *\n * A toggleable button component that can be pressed to switch between\n * selected and unselected states.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/inputs/togglebutton}\n */\nexport const ToggleButton = ({\n ref: forwardedRef,\n ...props\n}: ToggleButtonProps) => {\n const recipe = useRecipe({ key: \"toggleButton\" });\n const [recipeProps, restRecipeProps] = recipe.splitVariantProps(props);\n const [styleProps, functionalProps] = extractStyleProps(restRecipeProps);\n\n return (\n <ToggleButtonRoot {...recipeProps} {...styleProps} asChild>\n <RaToggleButton ref={forwardedRef} {...functionalProps} />\n </ToggleButtonRoot>\n );\n};\n\nToggleButton.displayName = \"ToggleButton\";\n"],"names":["withContext","createRecipeContext","ToggleButtonRoot","prop","variantKeys","chakraSfp","system","shouldForwardProp","ToggleButton","forwardedRef","props","recipe","useRecipe","recipeProps","restRecipeProps","styleProps","functionalProps","extractStyleProps","jsx","RaToggleButton"],"mappings":";;;;;;;AAKA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB;AAAA,EAC1C,KAAK;AACP,CAAC,GAMYC,IAAmB,gBAAAF,EAG9B,UAAU;AAAA,EACV,cAAc;AAAA,IACZ,MAAM;AAAA,EAAA;AAAA;AAAA,EAGR,kBAAkBG,GAAMC,GAAa;AACnC,UAAMC,IACJ,CAACD,GAAa,SAASD,CAAI,KAAK,CAACG,EAAO,gBAAgBH,CAAI;AAC9D,WAAOI,EAAkBJ,CAAI,KAAKE,KAAa,CAACF,EAAK,SAAS,SAAS;AAAA,EACzE;AACF,CAAC,GCXYK,IAAe,CAAC;AAAA,EAC3B,KAAKC;AAAA,EACL,GAAGC;AACL,MAAyB;AACvB,QAAMC,IAASC,EAAU,EAAE,KAAK,gBAAgB,GAC1C,CAACC,GAAaC,CAAe,IAAIH,EAAO,kBAAkBD,CAAK,GAC/D,CAACK,GAAYC,CAAe,IAAIC,EAAkBH,CAAe;AAEvE,SACE,gBAAAI,EAAChB,GAAA,EAAkB,GAAGW,GAAc,GAAGE,GAAY,SAAO,IACxD,UAAA,gBAAAG,EAACC,GAAA,EAAe,KAAKV,GAAe,GAAGO,GAAiB,GAC1D;AAEJ;AAEAR,EAAa,cAAc;"}
@@ -1,2 +0,0 @@
1
- "use strict";const s=require("react/jsx-runtime"),n=require("@chakra-ui/react"),$=require("./extractStyleProps-Dk3fpLyQ.cjs.js"),x=require("./index-CRFg4Mhx.cjs.js"),l=require("./utils-BHdR5Nww.cjs.js"),p=require("./useToolbar-iBRLn7DA.cjs.js"),P=require("./mergeProps-BA5Cwf5w.cjs.js"),h=require("./filterDOMProps-WUskt27c.cjs.js"),c=require("react"),q=c.createContext({}),C=c.forwardRef(function(e,t){[e,t]=l.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,q);let{toolbarProps:a}=p.$2680b1829e803644$export$fa142eb1681c520(e,t),o=l.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{orientation:e.orientation||"horizontal"},defaultClassName:"react-aria-Toolbar"}),r=h.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete r.id,c.createElement("div",{...P.$3ef42575df84b30b$export$9d1611c77c2fe928(r,o,a),ref:t,slot:e.slot||void 0,"data-orientation":e.orientation||"horizontal"},o.children)}),{withContext:m}=n.createRecipeContext({key:"toolbar"}),R=m("div"),y=({ref:i,orientation:e="horizontal",...t})=>{const a=n.useRecipe({recipe:x.toolbarRecipe}),[o,r]=a.splitVariantProps({orientation:e,...t}),[d,u]=$.extractStyleProps(r),f=n.useChakraContext().normalizeValue(e),b=n.useBreakpointValue(f)??"horizontal";return s.jsx(R,{orientation:e,...o,...d,asChild:!0,children:s.jsx(C,{ref:i,orientation:b,...u})})};exports.Toolbar=y;
2
- //# sourceMappingURL=toolbar-DV0l5MqA.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toolbar-Dduysqqi.es.js","sources":["../../../../node_modules/.pnpm/react-aria-components@1.13.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-aria-components/dist/Toolbar.mjs","../../src/components/toolbar/toolbar.slots.tsx","../../src/components/toolbar/toolbar.tsx"],"sourcesContent":["import {useContextProps as $64fa3d84918910a7$export$29f1550f4b0d4415, useRenderProps as $64fa3d84918910a7$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {useToolbar as $8qPHH$useToolbar} from \"@react-aria/toolbar\";\nimport {filterDOMProps as $8qPHH$filterDOMProps, mergeProps as $8qPHH$mergeProps} from \"@react-aria/utils\";\nimport $8qPHH$react, {createContext as $8qPHH$createContext, forwardRef as $8qPHH$forwardRef} from \"react\";\n\n/*\n * Copyright 2023 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\nconst $13c3c67164f4d5be$export$6311e7ab80ef752f = /*#__PURE__*/ (0, $8qPHH$createContext)({});\nconst $13c3c67164f4d5be$export$4c260019440d418f = /*#__PURE__*/ (0, $8qPHH$forwardRef)(function Toolbar(props, ref) {\n [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $13c3c67164f4d5be$export$6311e7ab80ef752f);\n let { toolbarProps: toolbarProps } = (0, $8qPHH$useToolbar)(props, ref);\n let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({\n ...props,\n values: {\n orientation: props.orientation || 'horizontal'\n },\n defaultClassName: 'react-aria-Toolbar'\n });\n let DOMProps = (0, $8qPHH$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.id;\n return /*#__PURE__*/ (0, $8qPHH$react).createElement(\"div\", {\n ...(0, $8qPHH$mergeProps)(DOMProps, renderProps, toolbarProps),\n ref: ref,\n slot: props.slot || undefined,\n \"data-orientation\": props.orientation || 'horizontal'\n }, renderProps.children);\n});\n\n\nexport {$13c3c67164f4d5be$export$6311e7ab80ef752f as ToolbarContext, $13c3c67164f4d5be$export$4c260019440d418f as Toolbar};\n//# sourceMappingURL=Toolbar.module.js.map\n","import { createRecipeContext } from \"@chakra-ui/react\";\nimport type { ToolbarRootSlotProps } from \"./toolbar.types\";\n\nconst { withContext } = createRecipeContext({\n key: \"toolbar\",\n});\n\n/**\n * Slot component that provides the styling context for the Group component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const ToolbarRoot = withContext<HTMLDivElement, ToolbarRootSlotProps>(\n \"div\"\n);\n","import { ToolbarRoot } from \"./toolbar.slots.tsx\";\nimport type { ToolbarComponent, ToolbarProps } from \"./toolbar.types.ts\";\nimport {\n useBreakpointValue,\n useChakraContext,\n useRecipe,\n} from \"@chakra-ui/react\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { toolbarRecipe } from \"./toolbar.recipe.ts\";\nimport { Toolbar as RaToolbar } from \"react-aria-components\";\n\nexport const Toolbar: ToolbarComponent = ({\n ref: forwardedRef,\n orientation = \"horizontal\",\n ...props\n}: ToolbarProps) => {\n const recipe = useRecipe({ recipe: toolbarRecipe });\n const [recipeProps, variantFreeProps] = recipe.splitVariantProps({\n orientation,\n ...props,\n });\n const [styleProps, functionalProps] = extractStyleProps(variantFreeProps);\n\n const sysCtx = useChakraContext();\n\n // The react-aria Toolbar does not support responsive values for the\n // `orientation` prop. We normalize `orientation` to a string\n // (\"horizontal\" or \"vertical\") using `system.normalizeValue` and\n // `useBreakpointValue` to ensure a concrete value is passed.\n\n const normalizedOrientation = sysCtx.normalizeValue(orientation);\n const computedOrientation: \"horizontal\" | \"vertical\" =\n useBreakpointValue(normalizedOrientation) ?? \"horizontal\";\n\n return (\n <ToolbarRoot\n orientation={orientation}\n {...recipeProps}\n {...styleProps}\n asChild\n >\n <RaToolbar\n ref={forwardedRef}\n orientation={computedOrientation}\n {...functionalProps}\n />\n </ToolbarRoot>\n );\n};\n"],"names":["$13c3c67164f4d5be$export$6311e7ab80ef752f","$8qPHH$createContext","$13c3c67164f4d5be$export$4c260019440d418f","$8qPHH$forwardRef","props","ref","$64fa3d84918910a7$export$29f1550f4b0d4415","toolbarProps","$8qPHH$useToolbar","renderProps","$64fa3d84918910a7$export$4d86445c2cf5e3","DOMProps","$8qPHH$filterDOMProps","$8qPHH$react","$8qPHH$mergeProps","withContext","createRecipeContext","ToolbarRoot","Toolbar","forwardedRef","orientation","recipe","useRecipe","toolbarRecipe","recipeProps","variantFreeProps","styleProps","functionalProps","extractStyleProps","normalizedOrientation","useChakraContext","computedOrientation","useBreakpointValue","jsx","RaToolbar"],"mappings":";;;;;;;;;AAmBA,MAAMA,IAA8DC,gBAAAA,EAAsB,EAAE,GACtFC,IAA8DC,gBAAAA,EAAmB,SAAiBC,GAAOC,GAAK;AAChH,GAACD,GAAOC,CAAG,IAAQC,EAA2CF,GAAOC,GAAKL,CAAyC;AACnH,MAAI,EAAE,cAAcO,EAAY,IAASC,EAAmBJ,GAAOC,CAAG,GAClEI,IAAkBC,EAAyC;AAAA,IAC3D,GAAGN;AAAA,IACH,QAAQ;AAAA,MACJ,aAAaA,EAAM,eAAe;AAAA,IAC9C;AAAA,IACQ,kBAAkB;AAAA,EAC1B,CAAK,GACGO,IAAeC,EAAuBR,GAAO;AAAA,IAC7C,QAAQ;AAAA,EAChB,CAAK;AACD,gBAAOO,EAAS,IACSE,gBAAAA,EAAc,cAAc,OAAO;AAAA,IACxD,GAAOC,EAAmBH,GAAUF,GAAaF,CAAY;AAAA,IAC7D,KAAKF;AAAA,IACL,MAAMD,EAAM,QAAQ;AAAA,IACpB,oBAAoBA,EAAM,eAAe;AAAA,EACjD,GAAOK,EAAY,QAAQ;AAC3B,CAAC,GCrCK,EAAE,aAAAM,EAAA,IAAgB,gBAAAC,EAAoB;AAAA,EAC1C,KAAK;AACP,CAAC,GAMYC,IAAc,gBAAAF;AAAA,EACzB;AACF,GCFaG,IAA4B,CAAC;AAAA,EACxC,KAAKC;AAAA,EACL,aAAAC,IAAc;AAAA,EACd,GAAGhB;AACL,MAAoB;AAClB,QAAMiB,IAASC,EAAU,EAAE,QAAQC,GAAe,GAC5C,CAACC,GAAaC,CAAgB,IAAIJ,EAAO,kBAAkB;AAAA,IAC/D,aAAAD;AAAA,IACA,GAAGhB;AAAA,EAAA,CACJ,GACK,CAACsB,GAAYC,CAAe,IAAIC,EAAkBH,CAAgB,GASlEI,IAPSC,EAAA,EAOsB,eAAeV,CAAW,GACzDW,IACJC,EAAmBH,CAAqB,KAAK;AAE/C,SACE,gBAAAI;AAAA,IAAChB;AAAA,IAAA;AAAA,MACC,aAAAG;AAAA,MACC,GAAGI;AAAA,MACH,GAAGE;AAAA,MACJ,SAAO;AAAA,MAEP,UAAA,gBAAAO;AAAA,QAACC;AAAAA,QAAA;AAAA,UACC,KAAKf;AAAA,UACL,aAAaY;AAAA,UACZ,GAAGJ;AAAA,QAAA;AAAA,MAAA;AAAA,IACN;AAAA,EAAA;AAGN;","x_google_ignoreList":[0]}
@@ -1,4 +0,0 @@
1
- /**
2
- * Shared utility types for Nimbus components
3
- */
4
- export type { ExcludePolymorphicFromProps } from './type-helpers';
File without changes
File without changes