@commercetools/nimbus 0.0.11 → 0.0.12-rc1

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 (686) hide show
  1. package/dist/accordion.d.ts +9 -2
  2. package/dist/alert.d.ts +9 -7
  3. package/dist/avatar.d.ts +4 -4
  4. package/dist/badge.d.ts +7 -13
  5. package/dist/box.d.ts +8 -1
  6. package/dist/button.d.ts +10 -3
  7. package/dist/calendar.d.ts +9 -2
  8. package/dist/card.d.ts +11 -4
  9. package/dist/checkbox.d.ts +5 -11
  10. package/dist/chunks/{Button-BsN1D5Hi.es.js → Button-BLHXvl6m.es.js} +5 -5
  11. package/dist/chunks/{Button-BsN1D5Hi.es.js.map → Button-BLHXvl6m.es.js.map} +1 -1
  12. package/dist/chunks/{DateField-BozrMa9v.es.js → DateField-Aj6J_Ms0.es.js} +16 -16
  13. package/dist/chunks/{DateField-BozrMa9v.es.js.map → DateField-Aj6J_Ms0.es.js.map} +1 -1
  14. package/dist/chunks/{DatePicker-3TZ8oKaR.es.js → DatePicker-BnQyHiTi.es.js} +15 -15
  15. package/dist/chunks/{DatePicker-3TZ8oKaR.es.js.map → DatePicker-BnQyHiTi.es.js.map} +1 -1
  16. package/dist/chunks/{Dialog-CFERgD91.es.js → Dialog-CTf0VB6B.es.js} +12 -12
  17. package/dist/chunks/{Dialog-CFERgD91.es.js.map → Dialog-CTf0VB6B.es.js.map} +1 -1
  18. package/dist/chunks/{FocusScope-8pBtcv8k.es.js → FocusScope-qJgAziUV.es.js} +3 -3
  19. package/dist/chunks/{FocusScope-8pBtcv8k.es.js.map → FocusScope-qJgAziUV.es.js.map} +1 -1
  20. package/dist/chunks/{Group-Brffs0pl.es.js → Group-nelci54o.es.js} +3 -3
  21. package/dist/chunks/{Group-Brffs0pl.es.js.map → Group-nelci54o.es.js.map} +1 -1
  22. package/dist/chunks/{Heading-D143Kg6E.es.js → Heading-CYQ_Jn6M.es.js} +10 -10
  23. package/dist/chunks/{Heading-D143Kg6E.es.js.map → Heading-CYQ_Jn6M.es.js.map} +1 -1
  24. package/dist/chunks/{Input-Bxs2A5S-.es.js → Input-Cvh_r_c1.es.js} +3 -3
  25. package/dist/chunks/{Input-Bxs2A5S-.es.js.map → Input-Cvh_r_c1.es.js.map} +1 -1
  26. package/dist/chunks/{Label-p7LXqne0.es.js → Label-BhU-HP65.es.js} +2 -2
  27. package/dist/chunks/{Label-p7LXqne0.es.js.map → Label-BhU-HP65.es.js.map} +1 -1
  28. package/dist/chunks/{ListBox-CiN7qgxV.es.js → ListBox-0C7L4Sat.es.js} +6 -6
  29. package/dist/chunks/{ListBox-CiN7qgxV.es.js.map → ListBox-0C7L4Sat.es.js.map} +1 -1
  30. package/dist/chunks/{OverlayArrow-BEiPDprB.es.js → OverlayArrow-C1hn2WBd.es.js} +2 -2
  31. package/dist/chunks/{OverlayArrow-BEiPDprB.es.js.map → OverlayArrow-C1hn2WBd.es.js.map} +1 -1
  32. package/dist/chunks/{ProgressBar-M-wNKpE5.es.js → ProgressBar-DrSArMks.es.js} +4 -4
  33. package/dist/chunks/{ProgressBar-M-wNKpE5.es.js.map → ProgressBar-DrSArMks.es.js.map} +1 -1
  34. package/dist/chunks/{Separator-CBgksjWN.es.js → Separator-ChieGwKF.es.js} +13 -13
  35. package/dist/chunks/{Separator-CBgksjWN.es.js.map → Separator-ChieGwKF.es.js.map} +1 -1
  36. package/dist/chunks/{TextArea-DcFJx08j.es.js → TextArea-BleoN8N2.es.js} +3 -3
  37. package/dist/chunks/{TextArea-DcFJx08j.es.js.map → TextArea-BleoN8N2.es.js.map} +1 -1
  38. package/dist/chunks/ToggleButton-CXa3lkD6.cjs.js +2 -0
  39. package/dist/chunks/ToggleButton-CXa3lkD6.cjs.js.map +1 -0
  40. package/dist/chunks/ToggleButton-CcA_6EjA.es.js +189 -0
  41. package/dist/chunks/ToggleButton-CcA_6EjA.es.js.map +1 -0
  42. package/dist/chunks/{VisuallyHidden-CE-SZFGa.es.js → VisuallyHidden-vVsCehgl.es.js} +2 -2
  43. package/dist/chunks/{VisuallyHidden-CE-SZFGa.es.js.map → VisuallyHidden-vVsCehgl.es.js.map} +1 -1
  44. package/dist/chunks/{accordion-AFXp_v9r.es.js → accordion-4C7hF2JJ.es.js} +22 -20
  45. package/dist/chunks/accordion-4C7hF2JJ.es.js.map +1 -0
  46. package/dist/chunks/accordion-B-0SAOc-.cjs.js +2 -0
  47. package/dist/chunks/accordion-B-0SAOc-.cjs.js.map +1 -0
  48. package/dist/chunks/{alert-DObB3_Vi.es.js → alert-C9I2_j1h.es.js} +26 -25
  49. package/dist/chunks/alert-C9I2_j1h.es.js.map +1 -0
  50. package/dist/chunks/alert-DWA7Mm4i.cjs.js +2 -0
  51. package/dist/chunks/alert-DWA7Mm4i.cjs.js.map +1 -0
  52. package/dist/chunks/{avatar-DgvfEdwK.es.js → avatar-DDCMu1RQ.es.js} +11 -10
  53. package/dist/chunks/avatar-DDCMu1RQ.es.js.map +1 -0
  54. package/dist/chunks/avatar-Dps7PI8I.cjs.js +2 -0
  55. package/dist/chunks/avatar-Dps7PI8I.cjs.js.map +1 -0
  56. package/dist/chunks/avatar.recipe-CQivdbFs.cjs.js +2 -0
  57. package/dist/chunks/avatar.recipe-CQivdbFs.cjs.js.map +1 -0
  58. package/dist/chunks/{avatar.recipe-BSmmqvwQ.es.js → avatar.recipe-CxXQlkH6.es.js} +2 -2
  59. package/dist/chunks/avatar.recipe-CxXQlkH6.es.js.map +1 -0
  60. package/dist/chunks/badge-Do9L64AE.cjs.js +2 -0
  61. package/dist/chunks/badge-Do9L64AE.cjs.js.map +1 -0
  62. package/dist/chunks/{badge-DVDR3-fy.es.js → badge-Iq596jRa.es.js} +9 -7
  63. package/dist/chunks/badge-Iq596jRa.es.js.map +1 -0
  64. package/dist/chunks/box-BOsRGQEm.cjs.js +2 -0
  65. package/dist/chunks/box-BOsRGQEm.cjs.js.map +1 -0
  66. package/dist/chunks/box-Cd4iddEV.es.js +13 -0
  67. package/dist/chunks/box-Cd4iddEV.es.js.map +1 -0
  68. package/dist/chunks/button-CdEn0J7Z.cjs.js +2 -0
  69. package/dist/chunks/button-CdEn0J7Z.cjs.js.map +1 -0
  70. package/dist/chunks/button-CueBxdjn.es.js +57 -0
  71. package/dist/chunks/button-CueBxdjn.es.js.map +1 -0
  72. package/dist/chunks/button.recipe-ClPhJ93N.cjs.js +2 -0
  73. package/dist/chunks/button.recipe-ClPhJ93N.cjs.js.map +1 -0
  74. package/dist/chunks/{button.recipe-DzOS_Bqm.es.js → button.recipe-D9e9Gh9L.es.js} +2 -2
  75. package/dist/chunks/button.recipe-D9e9Gh9L.es.js.map +1 -0
  76. package/dist/chunks/calendar-DssRRpmr.cjs.js +2 -0
  77. package/dist/chunks/calendar-DssRRpmr.cjs.js.map +1 -0
  78. package/dist/chunks/{calendar-BCsFBFkk.es.js → calendar-DwmLJswz.es.js} +22 -20
  79. package/dist/chunks/calendar-DwmLJswz.es.js.map +1 -0
  80. package/dist/chunks/card-BZEVZLCo.cjs.js +2 -0
  81. package/dist/chunks/card-BZEVZLCo.cjs.js.map +1 -0
  82. package/dist/chunks/{card-CS_daMhq.es.js → card-CDFYX3Fk.es.js} +25 -24
  83. package/dist/chunks/card-CDFYX3Fk.es.js.map +1 -0
  84. package/dist/chunks/{checkbox-BFb4vHab.es.js → checkbox-C9AJOro3.es.js} +19 -18
  85. package/dist/chunks/checkbox-C9AJOro3.es.js.map +1 -0
  86. package/dist/chunks/checkbox-Cc2Yab3K.cjs.js +2 -0
  87. package/dist/chunks/checkbox-Cc2Yab3K.cjs.js.map +1 -0
  88. package/dist/chunks/code-7P3tH99x.cjs.js +2 -0
  89. package/dist/chunks/code-7P3tH99x.cjs.js.map +1 -0
  90. package/dist/chunks/code-C44qm68X.es.js +8 -0
  91. package/dist/chunks/code-C44qm68X.es.js.map +1 -0
  92. package/dist/chunks/combobox-BuL7gWCK.cjs.js +2 -0
  93. package/dist/chunks/{combobox-D30xydJw.cjs.js.map → combobox-BuL7gWCK.cjs.js.map} +1 -1
  94. package/dist/chunks/{combobox-wZEZ8t94.es.js → combobox-qAi2j415.es.js} +166 -164
  95. package/dist/chunks/{combobox-wZEZ8t94.es.js.map → combobox-qAi2j415.es.js.map} +1 -1
  96. package/dist/chunks/config-Mt8_uyhI.cjs.js +2 -0
  97. package/dist/chunks/config-Mt8_uyhI.cjs.js.map +1 -0
  98. package/dist/chunks/config-ufbQ08Vi.es.js +6 -0
  99. package/dist/chunks/config-ufbQ08Vi.es.js.map +1 -0
  100. package/dist/chunks/create-recipe-context-BfiKn3k_.cjs.js +2 -0
  101. package/dist/chunks/create-recipe-context-BfiKn3k_.cjs.js.map +1 -0
  102. package/dist/chunks/create-recipe-context-c0qjq1fz.es.js +62 -0
  103. package/dist/chunks/create-recipe-context-c0qjq1fz.es.js.map +1 -0
  104. package/dist/chunks/create-slot-recipe-context-7JMdJHPF.cjs.js +2 -0
  105. package/dist/chunks/create-slot-recipe-context-7JMdJHPF.cjs.js.map +1 -0
  106. package/dist/chunks/create-slot-recipe-context-Cv3lncUO.es.js +104 -0
  107. package/dist/chunks/create-slot-recipe-context-Cv3lncUO.es.js.map +1 -0
  108. package/dist/chunks/date-input-CCTsf1nI.es.js +17 -0
  109. package/dist/chunks/date-input-CCTsf1nI.es.js.map +1 -0
  110. package/dist/chunks/date-input-CmiFb8SU.cjs.js +2 -0
  111. package/dist/chunks/date-input-CmiFb8SU.cjs.js.map +1 -0
  112. package/dist/chunks/{date-picker-CTGHoJdV.es.js → date-picker-BFVj989W.es.js} +56 -52
  113. package/dist/chunks/date-picker-BFVj989W.es.js.map +1 -0
  114. package/dist/chunks/date-picker-BwlDu__G.cjs.js +2 -0
  115. package/dist/chunks/date-picker-BwlDu__G.cjs.js.map +1 -0
  116. package/dist/chunks/date-range-picker-Cx9WSfmc.cjs.js +2 -0
  117. package/dist/chunks/date-range-picker-Cx9WSfmc.cjs.js.map +1 -0
  118. package/dist/chunks/date-range-picker-Cxe6UXcI.es.js +277 -0
  119. package/dist/chunks/date-range-picker-Cxe6UXcI.es.js.map +1 -0
  120. package/dist/chunks/dialog-7iIFtc75.cjs.js +2 -0
  121. package/dist/chunks/dialog-7iIFtc75.cjs.js.map +1 -0
  122. package/dist/chunks/dialog-CbMKp4zh.es.js +1874 -0
  123. package/dist/chunks/dialog-CbMKp4zh.es.js.map +1 -0
  124. package/dist/chunks/{divider-Js2LpOHh.es.js → divider-CEphvk-H.es.js} +7 -5
  125. package/dist/chunks/divider-CEphvk-H.es.js.map +1 -0
  126. package/dist/chunks/divider-CjCxQeVK.cjs.js +2 -0
  127. package/dist/chunks/divider-CjCxQeVK.cjs.js.map +1 -0
  128. package/dist/chunks/empty-B5_AO6Pg.cjs.js +2 -0
  129. package/dist/chunks/empty-B5_AO6Pg.cjs.js.map +1 -0
  130. package/dist/chunks/empty-D7ZFmvo6.es.js +8 -0
  131. package/dist/chunks/empty-D7ZFmvo6.es.js.map +1 -0
  132. package/dist/chunks/extractStyleProps-CRJEfqqS.cjs.js +2 -0
  133. package/dist/chunks/extractStyleProps-CRJEfqqS.cjs.js.map +1 -0
  134. package/dist/chunks/extractStyleProps-KcWE_ep4.es.js +11 -0
  135. package/dist/chunks/extractStyleProps-KcWE_ep4.es.js.map +1 -0
  136. package/dist/chunks/factory-BpGQXckI.es.js +266 -0
  137. package/dist/chunks/factory-BpGQXckI.es.js.map +1 -0
  138. package/dist/chunks/factory-DNbWS0Ob.cjs.js +3 -0
  139. package/dist/chunks/factory-DNbWS0Ob.cjs.js.map +1 -0
  140. package/dist/chunks/flex-DgabwPpo.es.js +40 -0
  141. package/dist/chunks/flex-DgabwPpo.es.js.map +1 -0
  142. package/dist/chunks/flex-DgsstZZT.cjs.js +2 -0
  143. package/dist/chunks/flex-DgsstZZT.cjs.js.map +1 -0
  144. package/dist/chunks/{focusSafely-Cpgkt6WC.es.js → focusSafely-DJGT4IAS.es.js} +2 -2
  145. package/dist/chunks/{focusSafely-Cpgkt6WC.es.js.map → focusSafely-DJGT4IAS.es.js.map} +1 -1
  146. package/dist/chunks/{form-field-kTuQQx9G.cjs.js → form-field-CZ9tkW04.cjs.js} +3 -3
  147. package/dist/chunks/form-field-CZ9tkW04.cjs.js.map +1 -0
  148. package/dist/chunks/{form-field-CmiwMrRv.es.js → form-field-cwuj6464.es.js} +33 -32
  149. package/dist/chunks/form-field-cwuj6464.es.js.map +1 -0
  150. package/dist/chunks/grid-D2EDS3Nw.cjs.js +2 -0
  151. package/dist/chunks/grid-D2EDS3Nw.cjs.js.map +1 -0
  152. package/dist/chunks/grid-item-BHKNxWuU.es.js +75 -0
  153. package/dist/chunks/grid-item-BHKNxWuU.es.js.map +1 -0
  154. package/dist/chunks/grid-item-Bwt35oD8.cjs.js +2 -0
  155. package/dist/chunks/grid-item-Bwt35oD8.cjs.js.map +1 -0
  156. package/dist/chunks/grid-ksgCqjX_.es.js +14 -0
  157. package/dist/chunks/grid-ksgCqjX_.es.js.map +1 -0
  158. package/dist/chunks/heading-C9DC5cG8.es.js +8 -0
  159. package/dist/chunks/heading-C9DC5cG8.es.js.map +1 -0
  160. package/dist/chunks/heading-CbGsyynP.cjs.js +2 -0
  161. package/dist/chunks/heading-CbGsyynP.cjs.js.map +1 -0
  162. package/dist/chunks/{icon-BFNYuilh.es.js → icon-BSGub7AG.es.js} +10 -9
  163. package/dist/chunks/icon-BSGub7AG.es.js.map +1 -0
  164. package/dist/chunks/icon-H-rP9kq5.cjs.js +2 -0
  165. package/dist/chunks/icon-H-rP9kq5.cjs.js.map +1 -0
  166. package/dist/chunks/{icon-button-CPBzhg2C.es.js → icon-button-C7MMcLBN.es.js} +2 -2
  167. package/dist/chunks/icon-button-C7MMcLBN.es.js.map +1 -0
  168. package/dist/chunks/{icon-button-QwpNTUZ8.cjs.js → icon-button-DF2_vh-X.cjs.js} +2 -2
  169. package/dist/chunks/icon-button-DF2_vh-X.cjs.js.map +1 -0
  170. package/dist/chunks/icon-toggle-button-BJBv57G-.es.js +13 -0
  171. package/dist/chunks/icon-toggle-button-BJBv57G-.es.js.map +1 -0
  172. package/dist/chunks/icon-toggle-button-D3QOY_O9.cjs.js +2 -0
  173. package/dist/chunks/icon-toggle-button-D3QOY_O9.cjs.js.map +1 -0
  174. package/dist/chunks/image-B-WEdENT.cjs.js +2 -0
  175. package/dist/chunks/image-B-WEdENT.cjs.js.map +1 -0
  176. package/dist/chunks/image-BVUCjLWP.es.js +22 -0
  177. package/dist/chunks/image-BVUCjLWP.es.js.map +1 -0
  178. package/dist/chunks/image-BwlmPt3P.es.js +8 -0
  179. package/dist/chunks/image-BwlmPt3P.es.js.map +1 -0
  180. package/dist/chunks/image-CIQlu9WX.cjs.js +2 -0
  181. package/dist/chunks/image-CIQlu9WX.cjs.js.map +1 -0
  182. package/dist/chunks/index--oJQaJZy.es.js +3316 -0
  183. package/dist/chunks/index--oJQaJZy.es.js.map +1 -0
  184. package/dist/chunks/index-Ca-OEf5O.cjs.js +4 -0
  185. package/dist/chunks/index-Ca-OEf5O.cjs.js.map +1 -0
  186. package/dist/chunks/kbd-D4NGKYuV.cjs.js +2 -0
  187. package/dist/chunks/kbd-D4NGKYuV.cjs.js.map +1 -0
  188. package/dist/chunks/kbd-r-if98_U.es.js +16 -0
  189. package/dist/chunks/kbd-r-if98_U.es.js.map +1 -0
  190. package/dist/chunks/kbd.recipe-9kxAU5ro.cjs.js +2 -0
  191. package/dist/chunks/kbd.recipe-9kxAU5ro.cjs.js.map +1 -0
  192. package/dist/chunks/{kbd.recipe-BONVaPQN.es.js → kbd.recipe-BTW0MQqx.es.js} +2 -2
  193. package/dist/chunks/kbd.recipe-BTW0MQqx.es.js.map +1 -0
  194. package/dist/chunks/link-BzKZPUDc.cjs.js +2 -0
  195. package/dist/chunks/link-BzKZPUDc.cjs.js.map +1 -0
  196. package/dist/chunks/{link-I24WQHS6.es.js → link-CpCTJrhi.es.js} +9 -8
  197. package/dist/chunks/link-CpCTJrhi.es.js.map +1 -0
  198. package/dist/chunks/{link.recipe-Ba2by0OG.es.js → link.recipe-BRnFQ5bP.es.js} +2 -2
  199. package/dist/chunks/link.recipe-BRnFQ5bP.es.js.map +1 -0
  200. package/dist/chunks/link.recipe-BfCxtKjL.cjs.js +2 -0
  201. package/dist/chunks/link.recipe-BfCxtKjL.cjs.js.map +1 -0
  202. package/dist/chunks/list-BaX7-sRB.cjs.js +2 -0
  203. package/dist/chunks/list-BaX7-sRB.cjs.js.map +1 -0
  204. package/dist/chunks/list-BhODpevn.es.js +23 -0
  205. package/dist/chunks/list-BhODpevn.es.js.map +1 -0
  206. package/dist/chunks/loading-spinner-DJg5GzG_.cjs.js +2 -0
  207. package/dist/chunks/loading-spinner-DJg5GzG_.cjs.js.map +1 -0
  208. package/dist/chunks/{loading-spinner-DwN-yshK.es.js → loading-spinner-DchMqwoe.es.js} +8 -7
  209. package/dist/chunks/loading-spinner-DchMqwoe.es.js.map +1 -0
  210. package/dist/chunks/{make-element-focusable-BRVwOKkK.es.js → make-element-focusable-Ca78aIFw.es.js} +3 -3
  211. package/dist/chunks/{make-element-focusable-BRVwOKkK.es.js.map → make-element-focusable-Ca78aIFw.es.js.map} +1 -1
  212. package/dist/chunks/menu-B3lbUDtQ.cjs.js +2 -0
  213. package/dist/chunks/menu-B3lbUDtQ.cjs.js.map +1 -0
  214. package/dist/chunks/{menu-DcEXCIN3.es.js → menu-Bcxace3m.es.js} +17 -17
  215. package/dist/chunks/menu-Bcxace3m.es.js.map +1 -0
  216. package/dist/chunks/{mergeProps-Bn6EInU5.es.js → mergeProps-C0OSi2w3.es.js} +3 -3
  217. package/dist/chunks/{mergeProps-Bn6EInU5.es.js.map → mergeProps-C0OSi2w3.es.js.map} +1 -1
  218. package/dist/chunks/multiline-text-input-CsC1RnrK.cjs.js +12 -0
  219. package/dist/chunks/multiline-text-input-CsC1RnrK.cjs.js.map +1 -0
  220. package/dist/chunks/{multiline-text-input-Be3sGtOK.es.js → multiline-text-input-mG88SzQO.es.js} +18 -14
  221. package/dist/chunks/multiline-text-input-mG88SzQO.es.js.map +1 -0
  222. package/dist/chunks/namespace-BXD5i_90.cjs.js +2 -0
  223. package/dist/chunks/namespace-BXD5i_90.cjs.js.map +1 -0
  224. package/dist/chunks/namespace-BmDr3F-d.es.js +74 -0
  225. package/dist/chunks/namespace-BmDr3F-d.es.js.map +1 -0
  226. package/dist/chunks/nimbus-provider-DJEIgoZl.cjs.js +2 -0
  227. package/dist/chunks/nimbus-provider-DJEIgoZl.cjs.js.map +1 -0
  228. package/dist/chunks/nimbus-provider-DPlYG_b9.es.js +101 -0
  229. package/dist/chunks/nimbus-provider-DPlYG_b9.es.js.map +1 -0
  230. package/dist/chunks/number-input-BNL4jPo5.cjs.js +2 -0
  231. package/dist/chunks/{number-input-Cvy4MbJv.cjs.js.map → number-input-BNL4jPo5.cjs.js.map} +1 -1
  232. package/dist/chunks/{number-input-B1gQD11A.es.js → number-input-xPBvFtO8.es.js} +19 -18
  233. package/dist/chunks/{number-input-B1gQD11A.es.js.map → number-input-xPBvFtO8.es.js.map} +1 -1
  234. package/dist/chunks/{password-input-D3wUJdjZ.cjs.js → password-input-ClTF8ndK.cjs.js} +2 -2
  235. package/dist/chunks/password-input-ClTF8ndK.cjs.js.map +1 -0
  236. package/dist/chunks/{password-input-B1oZ6y7E.es.js → password-input-SKlXZSjb.es.js} +5 -5
  237. package/dist/chunks/password-input-SKlXZSjb.es.js.map +1 -0
  238. package/dist/chunks/progress-bar-D0NErylg.cjs.js +2 -0
  239. package/dist/chunks/progress-bar-D0NErylg.cjs.js.map +1 -0
  240. package/dist/chunks/{progress-bar-VipTWl4r.es.js → progress-bar-D6DHvllq.es.js} +16 -14
  241. package/dist/chunks/progress-bar-D6DHvllq.es.js.map +1 -0
  242. package/dist/chunks/provider-CUesptNK.cjs.js +16 -0
  243. package/dist/chunks/provider-CUesptNK.cjs.js.map +1 -0
  244. package/dist/chunks/provider-D5u1b72_.es.js +989 -0
  245. package/dist/chunks/provider-D5u1b72_.es.js.map +1 -0
  246. package/dist/chunks/{radio-input-BSrrYcqs.es.js → radio-input-CigGVjie.es.js} +51 -51
  247. package/dist/chunks/{radio-input-BSrrYcqs.es.js.map → radio-input-CigGVjie.es.js.map} +1 -1
  248. package/dist/chunks/radio-input-K6pvxMCL.cjs.js +2 -0
  249. package/dist/chunks/{radio-input-vHNjGqLS.cjs.js.map → radio-input-K6pvxMCL.cjs.js.map} +1 -1
  250. package/dist/chunks/range-calendar-BPSLYP1r.cjs.js +2 -0
  251. package/dist/chunks/range-calendar-BPSLYP1r.cjs.js.map +1 -0
  252. package/dist/chunks/{range-calendar-DEpcpGLw.es.js → range-calendar-CREtOSp1.es.js} +23 -21
  253. package/dist/chunks/range-calendar-CREtOSp1.es.js.map +1 -0
  254. package/dist/chunks/{select-wZ584ENo.es.js → select-C-s_r1_Z.es.js} +68 -66
  255. package/dist/chunks/{select-wZ584ENo.es.js.map → select-C-s_r1_Z.es.js.map} +1 -1
  256. package/dist/chunks/select-Cjftrm7h.cjs.js +2 -0
  257. package/dist/chunks/{select-CMIJ0YjS.cjs.js.map → select-Cjftrm7h.cjs.js.map} +1 -1
  258. package/dist/chunks/simple-grid-BYgtLdTo.cjs.js +2 -0
  259. package/dist/chunks/simple-grid-BYgtLdTo.cjs.js.map +1 -0
  260. package/dist/chunks/simple-grid-QwCuXJDe.es.js +38 -0
  261. package/dist/chunks/simple-grid-QwCuXJDe.es.js.map +1 -0
  262. package/dist/chunks/stack-CFOuBCxS.es.js +89 -0
  263. package/dist/chunks/stack-CFOuBCxS.es.js.map +1 -0
  264. package/dist/chunks/stack-CSKcZxll.cjs.js +2 -0
  265. package/dist/chunks/stack-CSKcZxll.cjs.js.map +1 -0
  266. package/dist/chunks/switch-B3aegNjN.cjs.js +2 -0
  267. package/dist/chunks/switch-B3aegNjN.cjs.js.map +1 -0
  268. package/dist/chunks/{switch-Bxeo0Ktw.es.js → switch-CBphZKZD.es.js} +12 -11
  269. package/dist/chunks/switch-CBphZKZD.es.js.map +1 -0
  270. package/dist/chunks/{tag-group-CWIMWAG_.es.js → tag-group-CZ0CriPC.es.js} +49 -49
  271. package/dist/chunks/{tag-group-CWIMWAG_.es.js.map → tag-group-CZ0CriPC.es.js.map} +1 -1
  272. package/dist/chunks/tag-group-sIFeH1CP.cjs.js +2 -0
  273. package/dist/chunks/{tag-group-IJIXPuLT.cjs.js.map → tag-group-sIFeH1CP.cjs.js.map} +1 -1
  274. package/dist/chunks/text-CcMvqWol.es.js +26 -0
  275. package/dist/chunks/text-CcMvqWol.es.js.map +1 -0
  276. package/dist/chunks/text-input-7wLAgfnj.cjs.js +2 -0
  277. package/dist/chunks/text-input-7wLAgfnj.cjs.js.map +1 -0
  278. package/dist/chunks/text-input-BWQuGlA8.es.js +19 -0
  279. package/dist/chunks/text-input-BWQuGlA8.es.js.map +1 -0
  280. package/dist/chunks/text-tO5nXPfT.cjs.js +2 -0
  281. package/dist/chunks/text-tO5nXPfT.cjs.js.map +1 -0
  282. package/dist/chunks/time-input-7bQqoZ8n.cjs.js +2 -0
  283. package/dist/chunks/time-input-7bQqoZ8n.cjs.js.map +1 -0
  284. package/dist/chunks/{time-input-DeYvqDoa.es.js → time-input-Bdh2yhge.es.js} +12 -9
  285. package/dist/chunks/time-input-Bdh2yhge.es.js.map +1 -0
  286. package/dist/chunks/toggle-button-C-rQJENJ.cjs.js +2 -0
  287. package/dist/chunks/toggle-button-C-rQJENJ.cjs.js.map +1 -0
  288. package/dist/chunks/toggle-button-FiX9ip7L.es.js +30 -0
  289. package/dist/chunks/toggle-button-FiX9ip7L.es.js.map +1 -0
  290. package/dist/chunks/toggle-button-group-Cx9CekN6.es.js +82 -0
  291. package/dist/chunks/toggle-button-group-Cx9CekN6.es.js.map +1 -0
  292. package/dist/chunks/toggle-button-group-Cxx4yqgI.cjs.js +2 -0
  293. package/dist/chunks/toggle-button-group-Cxx4yqgI.cjs.js.map +1 -0
  294. package/dist/chunks/tooltip-CjYTweG9.cjs.js +2 -0
  295. package/dist/chunks/{tooltip-B6mXEaGu.cjs.js.map → tooltip-CjYTweG9.cjs.js.map} +1 -1
  296. package/dist/chunks/{tooltip-CsfjIITA.es.js → tooltip-D5cpNfnp.es.js} +8 -8
  297. package/dist/chunks/{tooltip-CsfjIITA.es.js.map → tooltip-D5cpNfnp.es.js.map} +1 -1
  298. package/dist/chunks/{tooltip.recipe-B9-7OFCi.es.js → tooltip.recipe-DsVUEki2.es.js} +2 -2
  299. package/dist/chunks/tooltip.recipe-DsVUEki2.es.js.map +1 -0
  300. package/dist/chunks/tooltip.recipe-VqGdDqQD.cjs.js +2 -0
  301. package/dist/chunks/tooltip.recipe-VqGdDqQD.cjs.js.map +1 -0
  302. package/dist/chunks/use-recipe-CJAjTxPP.cjs.js +2 -0
  303. package/dist/chunks/use-recipe-CJAjTxPP.cjs.js.map +1 -0
  304. package/dist/chunks/use-recipe-dUXCQYfa.es.js +13 -0
  305. package/dist/chunks/use-recipe-dUXCQYfa.es.js.map +1 -0
  306. package/dist/chunks/{useButton-BGeoUZHr.es.js → useButton-Codl22pH.es.js} +4 -4
  307. package/dist/chunks/{useButton-BGeoUZHr.es.js.map → useButton-Codl22pH.es.js.map} +1 -1
  308. package/dist/chunks/{useDateFormatter-CioL-RTi.es.js → useDateFormatter-zNqeIcSK.es.js} +2 -2
  309. package/dist/chunks/{useDateFormatter-CioL-RTi.es.js.map → useDateFormatter-zNqeIcSK.es.js.map} +1 -1
  310. package/dist/chunks/{useDescription-BQV7vQ1v.es.js → useDescription-CMy9RMYn.es.js} +2 -2
  311. package/dist/chunks/{useDescription-BQV7vQ1v.es.js.map → useDescription-CMy9RMYn.es.js.map} +1 -1
  312. package/dist/chunks/{useEvent-xlhjqVYi.es.js → useEvent-DxQcG2ZD.es.js} +2 -2
  313. package/dist/chunks/{useEvent-xlhjqVYi.es.js.map → useEvent-DxQcG2ZD.es.js.map} +1 -1
  314. package/dist/chunks/{useField-BGOhsACE.es.js → useField-Bj5XOvuD.es.js} +3 -3
  315. package/dist/chunks/{useField-BGOhsACE.es.js.map → useField-Bj5XOvuD.es.js.map} +1 -1
  316. package/dist/chunks/{useFocusable-C_1ABg2H.es.js → useFocusable-BzkEaBA7.es.js} +2 -2
  317. package/dist/chunks/{useFocusable-C_1ABg2H.es.js.map → useFocusable-BzkEaBA7.es.js.map} +1 -1
  318. package/dist/chunks/{useFormReset-CC4XkaS0.es.js → useFormReset-B_4kzDrc.es.js} +2 -2
  319. package/dist/chunks/{useFormReset-CC4XkaS0.es.js.map → useFormReset-B_4kzDrc.es.js.map} +1 -1
  320. package/dist/chunks/{useFormValidation-D4duh8Fb.es.js → useFormValidation-x8TYT3v1.es.js} +2 -2
  321. package/dist/chunks/{useFormValidation-D4duh8Fb.es.js.map → useFormValidation-x8TYT3v1.es.js.map} +1 -1
  322. package/dist/chunks/{useLabel-BuEJIpWS.es.js → useLabel-Dsvi6pv1.es.js} +2 -2
  323. package/dist/chunks/{useLabel-BuEJIpWS.es.js.map → useLabel-Dsvi6pv1.es.js.map} +1 -1
  324. package/dist/chunks/{usePress-Bf0oV30S.es.js → usePress--0XlnE9U.es.js} +2 -2
  325. package/dist/chunks/{usePress-Bf0oV30S.es.js.map → usePress--0XlnE9U.es.js.map} +1 -1
  326. package/dist/chunks/{useProgressBar-C8j_OVKt.es.js → useProgressBar-BcErX3zh.es.js} +3 -3
  327. package/dist/chunks/{useProgressBar-C8j_OVKt.es.js.map → useProgressBar-BcErX3zh.es.js.map} +1 -1
  328. package/dist/chunks/{useSingleSelectListState-Dtne-c12.es.js → useSingleSelectListState-IunZbRoh.es.js} +2 -2
  329. package/dist/chunks/{useSingleSelectListState-Dtne-c12.es.js.map → useSingleSelectListState-IunZbRoh.es.js.map} +1 -1
  330. package/dist/chunks/{useSpinButton-DEhwpuEM.es.js → useSpinButton-_qIyNcRw.es.js} +2 -2
  331. package/dist/chunks/{useSpinButton-DEhwpuEM.es.js.map → useSpinButton-_qIyNcRw.es.js.map} +1 -1
  332. package/dist/chunks/{useTextField-DewF7uv9.es.js → useTextField-DOho5fCG.es.js} +6 -6
  333. package/dist/chunks/{useTextField-DewF7uv9.es.js.map → useTextField-DOho5fCG.es.js.map} +1 -1
  334. package/dist/chunks/{useToggle-BXsvw8Q3.es.js → useToggle-BLG4h8I9.es.js} +5 -5
  335. package/dist/chunks/{useToggle-BXsvw8Q3.es.js.map → useToggle-BLG4h8I9.es.js.map} +1 -1
  336. package/dist/chunks/{utils-CEdpnSRC.es.js → utils-C4ruQppN.es.js} +2 -2
  337. package/dist/chunks/{utils-CEdpnSRC.es.js.map → utils-C4ruQppN.es.js.map} +1 -1
  338. package/dist/chunks/{visually-hidden-CQabqCJt.es.js → visually-hidden-XBx29_tJ.es.js} +2 -2
  339. package/dist/chunks/visually-hidden-XBx29_tJ.es.js.map +1 -0
  340. package/dist/chunks/visually-hidden-YFEW-yS7.cjs.js.map +1 -1
  341. package/dist/chunks/walk-object-BGye4E3_.cjs.js +2 -0
  342. package/dist/chunks/walk-object-BGye4E3_.cjs.js.map +1 -0
  343. package/dist/chunks/walk-object-D9P1kanu.es.js +27 -0
  344. package/dist/chunks/walk-object-D9P1kanu.es.js.map +1 -0
  345. package/dist/code.d.ts +6 -0
  346. package/dist/combobox.d.ts +10 -4
  347. package/dist/components/accordion.cjs +1 -1
  348. package/dist/components/accordion.es.js +1 -1
  349. package/dist/components/alert.cjs +1 -1
  350. package/dist/components/alert.es.js +1 -1
  351. package/dist/components/avatar.cjs +1 -1
  352. package/dist/components/avatar.es.js +1 -1
  353. package/dist/components/badge.cjs +1 -1
  354. package/dist/components/badge.es.js +1 -1
  355. package/dist/components/box.cjs +1 -1
  356. package/dist/components/box.es.js +1 -1
  357. package/dist/components/button.cjs +1 -1
  358. package/dist/components/button.es.js +1 -1
  359. package/dist/components/calendar.cjs +1 -1
  360. package/dist/components/calendar.es.js +1 -1
  361. package/dist/components/card.cjs +1 -1
  362. package/dist/components/card.es.js +1 -1
  363. package/dist/components/checkbox.cjs +1 -1
  364. package/dist/components/checkbox.es.js +1 -1
  365. package/dist/components/code.cjs +1 -1
  366. package/dist/components/code.es.js +1 -1
  367. package/dist/components/combobox.cjs +1 -1
  368. package/dist/components/combobox.es.js +1 -1
  369. package/dist/components/components.cjs +1 -1
  370. package/dist/components/components.es.js +137 -131
  371. package/dist/components/components.es.js.map +1 -1
  372. package/dist/components/date-input.cjs +1 -1
  373. package/dist/components/date-input.es.js +1 -1
  374. package/dist/components/date-picker.cjs +1 -1
  375. package/dist/components/date-picker.es.js +1 -1
  376. package/dist/components/date-range-picker.cjs +1 -1
  377. package/dist/components/date-range-picker.es.js +1 -1
  378. package/dist/components/dialog.cjs +1 -1
  379. package/dist/components/dialog.es.js +1 -1
  380. package/dist/components/divider.cjs +1 -1
  381. package/dist/components/divider.es.js +1 -1
  382. package/dist/components/flex.cjs +1 -1
  383. package/dist/components/flex.es.js +1 -1
  384. package/dist/components/form-field.cjs +1 -1
  385. package/dist/components/form-field.es.js +1 -1
  386. package/dist/components/grid.cjs +1 -1
  387. package/dist/components/grid.es.js +1 -1
  388. package/dist/components/heading.cjs +1 -1
  389. package/dist/components/heading.es.js +2 -2
  390. package/dist/components/icon-button.cjs +1 -1
  391. package/dist/components/icon-button.es.js +1 -1
  392. package/dist/components/icon-toggle-button.cjs +2 -0
  393. package/dist/components/icon-toggle-button.cjs.map +1 -0
  394. package/dist/components/icon-toggle-button.es.js +5 -0
  395. package/dist/components/icon-toggle-button.es.js.map +1 -0
  396. package/dist/components/icon.cjs +1 -1
  397. package/dist/components/icon.es.js +1 -1
  398. package/dist/components/image.cjs +1 -1
  399. package/dist/components/image.es.js +1 -1
  400. package/dist/components/kbd.cjs +1 -1
  401. package/dist/components/kbd.es.js +1 -1
  402. package/dist/components/link.cjs +1 -1
  403. package/dist/components/link.es.js +1 -1
  404. package/dist/components/list.cjs +1 -1
  405. package/dist/components/list.es.js +1 -1
  406. package/dist/components/loading-spinner.cjs +1 -1
  407. package/dist/components/loading-spinner.es.js +1 -1
  408. package/dist/components/multiline-text-input.cjs +1 -1
  409. package/dist/components/multiline-text-input.es.js +1 -1
  410. package/dist/components/nimbus-provider.cjs +1 -1
  411. package/dist/components/nimbus-provider.es.js +1 -1
  412. package/dist/components/number-input.cjs +1 -1
  413. package/dist/components/number-input.es.js +1 -1
  414. package/dist/components/password-input.cjs +1 -1
  415. package/dist/components/password-input.es.js +1 -1
  416. package/dist/components/progress-bar.cjs +1 -1
  417. package/dist/components/progress-bar.es.js +1 -1
  418. package/dist/components/radio-input.cjs +1 -1
  419. package/dist/components/radio-input.es.js +1 -1
  420. package/dist/components/range-calendar.cjs +1 -1
  421. package/dist/components/range-calendar.es.js +1 -1
  422. package/dist/components/select.cjs +1 -1
  423. package/dist/components/select.es.js +1 -1
  424. package/dist/components/simple-grid.cjs +1 -1
  425. package/dist/components/simple-grid.es.js +1 -1
  426. package/dist/components/stack.cjs +1 -1
  427. package/dist/components/stack.es.js +1 -1
  428. package/dist/components/switch.cjs +1 -1
  429. package/dist/components/switch.es.js +1 -1
  430. package/dist/components/table.cjs +1 -1
  431. package/dist/components/table.es.js +2 -2
  432. package/dist/components/tag-group.cjs +1 -1
  433. package/dist/components/tag-group.es.js +1 -1
  434. package/dist/components/text-input.cjs +1 -1
  435. package/dist/components/text-input.es.js +1 -1
  436. package/dist/components/text.cjs +1 -1
  437. package/dist/components/text.es.js +1 -1
  438. package/dist/components/time-input.cjs +1 -1
  439. package/dist/components/time-input.es.js +1 -1
  440. package/dist/components/toggle-button-group.cjs +1 -1
  441. package/dist/components/toggle-button-group.es.js +1 -1
  442. package/dist/components/toggle-button.cjs +2 -0
  443. package/dist/components/toggle-button.cjs.map +1 -0
  444. package/dist/components/toggle-button.es.js +5 -0
  445. package/dist/components/toggle-button.es.js.map +1 -0
  446. package/dist/components/tooltip.cjs +1 -1
  447. package/dist/components/tooltip.es.js +2 -2
  448. package/dist/components/visually-hidden.es.js +1 -1
  449. package/dist/components.d.ts +367 -138
  450. package/dist/date-input.d.ts +9 -7
  451. package/dist/date-picker.d.ts +9 -8
  452. package/dist/date-range-picker.d.ts +4 -4
  453. package/dist/dialog.d.ts +7 -1
  454. package/dist/divider.d.ts +4 -4
  455. package/dist/flex.d.ts +1 -1
  456. package/dist/form-field.d.ts +8 -6
  457. package/dist/grid.d.ts +4 -6
  458. package/dist/heading.d.ts +1 -1
  459. package/dist/icon-button.d.ts +8 -7
  460. package/dist/icon-toggle-button.d.ts +149 -0
  461. package/dist/icon.d.ts +8 -5
  462. package/dist/image.d.ts +5 -3
  463. package/dist/index.cjs +1 -1
  464. package/dist/index.cjs.map +1 -1
  465. package/dist/index.d.ts +367 -138
  466. package/dist/index.es.js +154 -147
  467. package/dist/index.es.js.map +1 -1
  468. package/dist/kbd.d.ts +5 -3
  469. package/dist/link.d.ts +7 -13
  470. package/dist/list.d.ts +6 -1
  471. package/dist/loading-spinner.d.ts +8 -6
  472. package/dist/multiline-text-input.d.ts +6 -12
  473. package/dist/nimbus-provider.d.ts +7 -0
  474. package/dist/number-input.d.ts +6 -13
  475. package/dist/password-input.d.ts +6 -11
  476. package/dist/progress-bar.d.ts +4 -4
  477. package/dist/radio-input.d.ts +10 -3
  478. package/dist/range-calendar.d.ts +2 -2
  479. package/dist/select.d.ts +9 -2
  480. package/dist/simple-grid.d.ts +4 -6
  481. package/dist/stack.d.ts +8 -1
  482. package/dist/switch.d.ts +7 -5
  483. package/dist/table.d.ts +1 -1
  484. package/dist/tag-group.d.ts +3 -3
  485. package/dist/text-input.d.ts +6 -11
  486. package/dist/text.d.ts +5 -3
  487. package/dist/time-input.d.ts +4 -4
  488. package/dist/toggle-button-group.d.ts +10 -3
  489. package/dist/toggle-button.d.ts +144 -0
  490. package/dist/tooltip.d.ts +8 -10
  491. package/dist/visually-hidden.d.ts +7 -0
  492. package/package.json +5 -1
  493. package/dist/chunks/accordion-AFXp_v9r.es.js.map +0 -1
  494. package/dist/chunks/accordion-CnNWyGUM.cjs.js +0 -2
  495. package/dist/chunks/accordion-CnNWyGUM.cjs.js.map +0 -1
  496. package/dist/chunks/alert-CTdQVQEX.cjs.js +0 -2
  497. package/dist/chunks/alert-CTdQVQEX.cjs.js.map +0 -1
  498. package/dist/chunks/alert-DObB3_Vi.es.js.map +0 -1
  499. package/dist/chunks/avatar-BLun8TXk.cjs.js +0 -2
  500. package/dist/chunks/avatar-BLun8TXk.cjs.js.map +0 -1
  501. package/dist/chunks/avatar-DgvfEdwK.es.js.map +0 -1
  502. package/dist/chunks/avatar.recipe-BSmmqvwQ.es.js.map +0 -1
  503. package/dist/chunks/avatar.recipe-aGNBZhVF.cjs.js +0 -2
  504. package/dist/chunks/avatar.recipe-aGNBZhVF.cjs.js.map +0 -1
  505. package/dist/chunks/badge-CFwI3HLf.cjs.js +0 -2
  506. package/dist/chunks/badge-CFwI3HLf.cjs.js.map +0 -1
  507. package/dist/chunks/badge-DVDR3-fy.es.js.map +0 -1
  508. package/dist/chunks/box-DD4jYgS7.es.js +0 -11
  509. package/dist/chunks/box-DD4jYgS7.es.js.map +0 -1
  510. package/dist/chunks/box-FU6tRPFs.cjs.js +0 -2
  511. package/dist/chunks/box-FU6tRPFs.cjs.js.map +0 -1
  512. package/dist/chunks/button-DPZ4gynI.es.js +0 -66
  513. package/dist/chunks/button-DPZ4gynI.es.js.map +0 -1
  514. package/dist/chunks/button-DhrBalPi.cjs.js +0 -2
  515. package/dist/chunks/button-DhrBalPi.cjs.js.map +0 -1
  516. package/dist/chunks/button.recipe-DHk13lGU.cjs.js +0 -2
  517. package/dist/chunks/button.recipe-DHk13lGU.cjs.js.map +0 -1
  518. package/dist/chunks/button.recipe-DzOS_Bqm.es.js.map +0 -1
  519. package/dist/chunks/calendar-BCsFBFkk.es.js.map +0 -1
  520. package/dist/chunks/calendar-BeUwpJo3.cjs.js +0 -2
  521. package/dist/chunks/calendar-BeUwpJo3.cjs.js.map +0 -1
  522. package/dist/chunks/calendar.recipe-B2sMokBn.es.js +0 -101
  523. package/dist/chunks/calendar.recipe-B2sMokBn.es.js.map +0 -1
  524. package/dist/chunks/calendar.recipe-gUaUNltl.cjs.js +0 -2
  525. package/dist/chunks/calendar.recipe-gUaUNltl.cjs.js.map +0 -1
  526. package/dist/chunks/card-CS_daMhq.es.js.map +0 -1
  527. package/dist/chunks/card-svWLl_kS.cjs.js +0 -2
  528. package/dist/chunks/card-svWLl_kS.cjs.js.map +0 -1
  529. package/dist/chunks/checkbox-BFb4vHab.es.js.map +0 -1
  530. package/dist/chunks/checkbox-D0evM4Sv.cjs.js +0 -2
  531. package/dist/chunks/checkbox-D0evM4Sv.cjs.js.map +0 -1
  532. package/dist/chunks/code-CI8aUhmu.es.js +0 -6
  533. package/dist/chunks/code-CI8aUhmu.es.js.map +0 -1
  534. package/dist/chunks/code-Dg4Larbo.cjs.js +0 -2
  535. package/dist/chunks/code-Dg4Larbo.cjs.js.map +0 -1
  536. package/dist/chunks/combobox-D30xydJw.cjs.js +0 -2
  537. package/dist/chunks/combobox.recipe-BKOsv-Im.cjs.js +0 -2
  538. package/dist/chunks/combobox.recipe-BKOsv-Im.cjs.js.map +0 -1
  539. package/dist/chunks/combobox.recipe-BQy3LgVG.es.js +0 -380
  540. package/dist/chunks/combobox.recipe-BQy3LgVG.es.js.map +0 -1
  541. package/dist/chunks/date-input-B3VEJdpa.cjs.js +0 -2
  542. package/dist/chunks/date-input-B3VEJdpa.cjs.js.map +0 -1
  543. package/dist/chunks/date-input-TeYMF5Hb.es.js +0 -16
  544. package/dist/chunks/date-input-TeYMF5Hb.es.js.map +0 -1
  545. package/dist/chunks/date-input.recipe-BTsUgaUQ.es.js +0 -126
  546. package/dist/chunks/date-input.recipe-BTsUgaUQ.es.js.map +0 -1
  547. package/dist/chunks/date-input.recipe-Onzf22sP.cjs.js +0 -2
  548. package/dist/chunks/date-input.recipe-Onzf22sP.cjs.js.map +0 -1
  549. package/dist/chunks/date-picker-BrkP7f-J.cjs.js +0 -2
  550. package/dist/chunks/date-picker-BrkP7f-J.cjs.js.map +0 -1
  551. package/dist/chunks/date-picker-CTGHoJdV.es.js.map +0 -1
  552. package/dist/chunks/date-picker.recipe-5Avb06qp.cjs.js +0 -2
  553. package/dist/chunks/date-picker.recipe-5Avb06qp.cjs.js.map +0 -1
  554. package/dist/chunks/date-picker.recipe-Dy6NmKHA.es.js +0 -82
  555. package/dist/chunks/date-picker.recipe-Dy6NmKHA.es.js.map +0 -1
  556. package/dist/chunks/date-range-picker-BZ7e2THh.cjs.js +0 -2
  557. package/dist/chunks/date-range-picker-BZ7e2THh.cjs.js.map +0 -1
  558. package/dist/chunks/date-range-picker-DYAE8hY-.es.js +0 -273
  559. package/dist/chunks/date-range-picker-DYAE8hY-.es.js.map +0 -1
  560. package/dist/chunks/date-range-picker.recipe-BARriKKl.cjs.js +0 -2
  561. package/dist/chunks/date-range-picker.recipe-BARriKKl.cjs.js.map +0 -1
  562. package/dist/chunks/date-range-picker.recipe-CuI7inaU.es.js +0 -124
  563. package/dist/chunks/date-range-picker.recipe-CuI7inaU.es.js.map +0 -1
  564. package/dist/chunks/dialog-C1HRMUcF.es.js +0 -33
  565. package/dist/chunks/dialog-C1HRMUcF.es.js.map +0 -1
  566. package/dist/chunks/dialog-amEwvIoM.cjs.js +0 -2
  567. package/dist/chunks/dialog-amEwvIoM.cjs.js.map +0 -1
  568. package/dist/chunks/divider-CifCuFCu.cjs.js +0 -2
  569. package/dist/chunks/divider-CifCuFCu.cjs.js.map +0 -1
  570. package/dist/chunks/divider-Js2LpOHh.es.js.map +0 -1
  571. package/dist/chunks/extractStyleProps-CxgBrz3O.es.js +0 -11
  572. package/dist/chunks/extractStyleProps-CxgBrz3O.es.js.map +0 -1
  573. package/dist/chunks/extractStyleProps-lyk7D-zN.cjs.js +0 -2
  574. package/dist/chunks/extractStyleProps-lyk7D-zN.cjs.js.map +0 -1
  575. package/dist/chunks/form-field-CmiwMrRv.es.js.map +0 -1
  576. package/dist/chunks/form-field-kTuQQx9G.cjs.js.map +0 -1
  577. package/dist/chunks/grid-CugcJxRP.es.js +0 -14
  578. package/dist/chunks/grid-CugcJxRP.es.js.map +0 -1
  579. package/dist/chunks/grid-xr2A-OqD.cjs.js +0 -2
  580. package/dist/chunks/grid-xr2A-OqD.cjs.js.map +0 -1
  581. package/dist/chunks/icon-BFNYuilh.es.js.map +0 -1
  582. package/dist/chunks/icon-D50i-dqv.cjs.js +0 -2
  583. package/dist/chunks/icon-D50i-dqv.cjs.js.map +0 -1
  584. package/dist/chunks/icon-button-CPBzhg2C.es.js.map +0 -1
  585. package/dist/chunks/icon-button-QwpNTUZ8.cjs.js.map +0 -1
  586. package/dist/chunks/image-DCirAAnr.cjs.js +0 -2
  587. package/dist/chunks/image-DCirAAnr.cjs.js.map +0 -1
  588. package/dist/chunks/image-rXPA3shk.es.js +0 -8
  589. package/dist/chunks/image-rXPA3shk.es.js.map +0 -1
  590. package/dist/chunks/kbd-Bkhw9E6L.cjs.js +0 -2
  591. package/dist/chunks/kbd-Bkhw9E6L.cjs.js.map +0 -1
  592. package/dist/chunks/kbd-Gxvodc1U.es.js +0 -15
  593. package/dist/chunks/kbd-Gxvodc1U.es.js.map +0 -1
  594. package/dist/chunks/kbd.recipe-BONVaPQN.es.js.map +0 -1
  595. package/dist/chunks/kbd.recipe-UlkJJrC8.cjs.js +0 -2
  596. package/dist/chunks/kbd.recipe-UlkJJrC8.cjs.js.map +0 -1
  597. package/dist/chunks/link-DJmmcif9.cjs.js +0 -2
  598. package/dist/chunks/link-DJmmcif9.cjs.js.map +0 -1
  599. package/dist/chunks/link-I24WQHS6.es.js.map +0 -1
  600. package/dist/chunks/link.recipe-Ba2by0OG.es.js.map +0 -1
  601. package/dist/chunks/link.recipe-CG3leGAx.cjs.js +0 -2
  602. package/dist/chunks/link.recipe-CG3leGAx.cjs.js.map +0 -1
  603. package/dist/chunks/list-8yfreyzi.cjs.js +0 -2
  604. package/dist/chunks/list-8yfreyzi.cjs.js.map +0 -1
  605. package/dist/chunks/list-B21joBrq.es.js +0 -13
  606. package/dist/chunks/list-B21joBrq.es.js.map +0 -1
  607. package/dist/chunks/loading-spinner-BQd4UVQs.cjs.js +0 -2
  608. package/dist/chunks/loading-spinner-BQd4UVQs.cjs.js.map +0 -1
  609. package/dist/chunks/loading-spinner-DwN-yshK.es.js.map +0 -1
  610. package/dist/chunks/menu-BnUXBlRL.cjs.js +0 -2
  611. package/dist/chunks/menu-BnUXBlRL.cjs.js.map +0 -1
  612. package/dist/chunks/menu-DcEXCIN3.es.js.map +0 -1
  613. package/dist/chunks/multiline-text-input-Be3sGtOK.es.js.map +0 -1
  614. package/dist/chunks/multiline-text-input-CzoQb5Ms.cjs.js +0 -12
  615. package/dist/chunks/multiline-text-input-CzoQb5Ms.cjs.js.map +0 -1
  616. package/dist/chunks/nimbus-provider-CDXyYH9f.es.js +0 -1823
  617. package/dist/chunks/nimbus-provider-CDXyYH9f.es.js.map +0 -1
  618. package/dist/chunks/nimbus-provider-zUukT3WE.cjs.js +0 -4
  619. package/dist/chunks/nimbus-provider-zUukT3WE.cjs.js.map +0 -1
  620. package/dist/chunks/number-input-Cvy4MbJv.cjs.js +0 -2
  621. package/dist/chunks/number-input.recipe-2n6A2w0m.cjs.js +0 -2
  622. package/dist/chunks/number-input.recipe-2n6A2w0m.cjs.js.map +0 -1
  623. package/dist/chunks/number-input.recipe-8gbsGnLJ.es.js +0 -209
  624. package/dist/chunks/number-input.recipe-8gbsGnLJ.es.js.map +0 -1
  625. package/dist/chunks/password-input-B1oZ6y7E.es.js.map +0 -1
  626. package/dist/chunks/password-input-D3wUJdjZ.cjs.js.map +0 -1
  627. package/dist/chunks/progress-bar-CbZY1dE1.cjs.js +0 -2
  628. package/dist/chunks/progress-bar-CbZY1dE1.cjs.js.map +0 -1
  629. package/dist/chunks/progress-bar-VipTWl4r.es.js.map +0 -1
  630. package/dist/chunks/radio-input-vHNjGqLS.cjs.js +0 -2
  631. package/dist/chunks/radio-input.recipe-CM9R2ilP.es.js +0 -75
  632. package/dist/chunks/radio-input.recipe-CM9R2ilP.es.js.map +0 -1
  633. package/dist/chunks/radio-input.recipe-DdXB4lqs.cjs.js +0 -2
  634. package/dist/chunks/radio-input.recipe-DdXB4lqs.cjs.js.map +0 -1
  635. package/dist/chunks/range-calendar-CsS-i222.cjs.js +0 -2
  636. package/dist/chunks/range-calendar-CsS-i222.cjs.js.map +0 -1
  637. package/dist/chunks/range-calendar-DEpcpGLw.es.js.map +0 -1
  638. package/dist/chunks/range-calendar.recipe-D7Qn7AJr.es.js +0 -129
  639. package/dist/chunks/range-calendar.recipe-D7Qn7AJr.es.js.map +0 -1
  640. package/dist/chunks/range-calendar.recipe-H7PsZQwO.cjs.js +0 -2
  641. package/dist/chunks/range-calendar.recipe-H7PsZQwO.cjs.js.map +0 -1
  642. package/dist/chunks/select-CMIJ0YjS.cjs.js +0 -2
  643. package/dist/chunks/select.recipe-BIox51h1.cjs.js +0 -2
  644. package/dist/chunks/select.recipe-BIox51h1.cjs.js.map +0 -1
  645. package/dist/chunks/select.recipe-CNH8aWdo.es.js +0 -203
  646. package/dist/chunks/select.recipe-CNH8aWdo.es.js.map +0 -1
  647. package/dist/chunks/simple-grid-CFOP9g2P.es.js +0 -14
  648. package/dist/chunks/simple-grid-CFOP9g2P.es.js.map +0 -1
  649. package/dist/chunks/simple-grid-CHgTayx6.cjs.js +0 -2
  650. package/dist/chunks/simple-grid-CHgTayx6.cjs.js.map +0 -1
  651. package/dist/chunks/stack-__ugxVHD.es.js +0 -11
  652. package/dist/chunks/stack-__ugxVHD.es.js.map +0 -1
  653. package/dist/chunks/stack-wFUhYQQb.cjs.js +0 -2
  654. package/dist/chunks/stack-wFUhYQQb.cjs.js.map +0 -1
  655. package/dist/chunks/switch-BM-A9yVv.cjs.js +0 -2
  656. package/dist/chunks/switch-BM-A9yVv.cjs.js.map +0 -1
  657. package/dist/chunks/switch-Bxeo0Ktw.es.js.map +0 -1
  658. package/dist/chunks/switch.recipe-CWOjEnIy.es.js +0 -100
  659. package/dist/chunks/switch.recipe-CWOjEnIy.es.js.map +0 -1
  660. package/dist/chunks/switch.recipe-DHopLj_g.cjs.js +0 -2
  661. package/dist/chunks/switch.recipe-DHopLj_g.cjs.js.map +0 -1
  662. package/dist/chunks/tag-group-IJIXPuLT.cjs.js +0 -2
  663. package/dist/chunks/text--fhvW47o.cjs.js +0 -2
  664. package/dist/chunks/text--fhvW47o.cjs.js.map +0 -1
  665. package/dist/chunks/text-CFsPSPPs.es.js +0 -24
  666. package/dist/chunks/text-CFsPSPPs.es.js.map +0 -1
  667. package/dist/chunks/text-input--62r8jAx.es.js +0 -17
  668. package/dist/chunks/text-input--62r8jAx.es.js.map +0 -1
  669. package/dist/chunks/text-input-FGkoWybY.cjs.js +0 -2
  670. package/dist/chunks/text-input-FGkoWybY.cjs.js.map +0 -1
  671. package/dist/chunks/text-input.recipe-DxzvFMOB.cjs.js +0 -2
  672. package/dist/chunks/text-input.recipe-DxzvFMOB.cjs.js.map +0 -1
  673. package/dist/chunks/text-input.recipe-KNoUuq-g.es.js +0 -64
  674. package/dist/chunks/text-input.recipe-KNoUuq-g.es.js.map +0 -1
  675. package/dist/chunks/time-input-BH0G5PFd.cjs.js +0 -2
  676. package/dist/chunks/time-input-BH0G5PFd.cjs.js.map +0 -1
  677. package/dist/chunks/time-input-DeYvqDoa.es.js.map +0 -1
  678. package/dist/chunks/toggle-button-group-B5xBRXo1.es.js +0 -263
  679. package/dist/chunks/toggle-button-group-B5xBRXo1.es.js.map +0 -1
  680. package/dist/chunks/toggle-button-group-Cvhe_K50.cjs.js +0 -2
  681. package/dist/chunks/toggle-button-group-Cvhe_K50.cjs.js.map +0 -1
  682. package/dist/chunks/tooltip-B6mXEaGu.cjs.js +0 -2
  683. package/dist/chunks/tooltip.recipe-B9-7OFCi.es.js.map +0 -1
  684. package/dist/chunks/tooltip.recipe-CkNOA8Sg.cjs.js +0 -2
  685. package/dist/chunks/tooltip.recipe-CkNOA8Sg.cjs.js.map +0 -1
  686. package/dist/chunks/visually-hidden-CQabqCJt.es.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"badge-CFwI3HLf.cjs.js","sources":["../../src/components/badge/badge.recipe.tsx","../../src/components/badge/badge.slots.tsx","../../src/components/badge/badge.tsx"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react\";\n\n/**\n * Recipe configuration for the Badge component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const badgeRecipe = defineRecipe({\n className: \"nimbus-badge\",\n\n // Base styles applied to all instances of the component\n base: {\n display: \"inline-flex\",\n alignItems: \"center\",\n borderRadius: \"200\",\n justifyContent: \"center\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\",\n py: \"25\",\n fontWeight: \"500\",\n backgroundColor: \"colorPalette.3\",\n color: \"colorPalette.11\",\n w: \"auto\",\n userSelect: \"none\",\n _icon: {\n flexShrink: \"0\",\n },\n },\n\n // Available variants for customizing the component's appearance\n variants: {\n size: {\n \"2xs\": {\n fontSize: \"300\",\n gap: \"100\",\n h: \"600\",\n lineHeight: \"350\",\n px: \"200\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n },\n xs: {\n fontSize: \"350\",\n gap: \"100\",\n h: \"800\",\n lineHeight: \"400\",\n px: \"300\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n },\n md: {\n fontSize: \"400\",\n gap: \"200\",\n h: \"1000\",\n lineHeight: \"500\",\n px: \"400\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n size: \"md\",\n },\n});\n","import { createRecipeContext } from \"@chakra-ui/react\";\n\nimport { badgeRecipe } from \"./badge.recipe\";\nimport type { BadgeRootProps } from \"./badge.types\";\n\nconst { withContext } = createRecipeContext({ recipe: badgeRecipe });\n\nexport const BadgeRoot = withContext<HTMLSpanElement, BadgeRootProps>(\"span\");\n","import { useRef } from \"react\";\nimport { BadgeRoot } from \"./badge.slots\";\nimport type { BadgeProps } from \"./badge.types\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useObjectRef, mergeProps } from \"react-aria\";\n/**\n * Badge\n * ============================================================\n * badge\n *\n * Features:\n *\n * - allows forwarding refs to the underlying DOM element\n * - accepts all native html 'HTMLSpanElement' attributes (including aria- & data-attributes)\n * - supports 'variants', 'sizes', 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 */\n\nexport const Badge = (props: BadgeProps) => {\n const { ref: forwardedRef, as, children, ...rest } = props;\n\n const localRef = useRef<HTMLSpanElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const elementType = as || \"span\";\n\n return (\n <BadgeRoot as={elementType} {...mergeProps(rest, { ref })}>\n {children}\n </BadgeRoot>\n );\n};\n\nBadge.displayName = \"Badge\";\n"],"names":["badgeRecipe","defineRecipe","withContext","createRecipeContext","BadgeRoot","Badge","props","forwardedRef","as","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","elementType","jsx","mergeProps"],"mappings":"yLAMaA,EAAcC,EAAAA,aAAa,CACtC,UAAW,eAGX,KAAM,CACJ,QAAS,cACT,WAAY,SACZ,aAAc,MACd,eAAgB,SAChB,WAAY,SACZ,cAAe,SACf,GAAI,KACJ,WAAY,MACZ,gBAAiB,iBACjB,MAAO,kBACP,EAAG,OACH,WAAY,OACZ,MAAO,CACL,WAAY,GAAA,CACd,EAIF,SAAU,CACR,KAAM,CACJ,MAAO,CACL,SAAU,MACV,IAAK,MACL,EAAG,MACH,WAAY,MACZ,GAAI,MACJ,MAAO,CACL,MAAO,MACP,OAAQ,KAAA,CACV,EAEF,GAAI,CACF,SAAU,MACV,IAAK,MACL,EAAG,MACH,WAAY,MACZ,GAAI,MACJ,MAAO,CACL,MAAO,MACP,OAAQ,KAAA,CACV,EAEF,GAAI,CACF,SAAU,MACV,IAAK,MACL,EAAG,OACH,WAAY,MACZ,GAAI,MACJ,MAAO,CACL,MAAO,MACP,OAAQ,KAAA,CACV,CACF,CACF,EAIF,gBAAiB,CACf,KAAM,IAAA,CAEV,CAAC,EClEK,CAAE,YAAAC,CAAA,EAAgBC,EAAAA,oBAAoB,CAAE,OAAQH,EAAa,EAEtDI,EAAYF,EAA6C,MAAM,ECY/DG,EAASC,GAAsB,CAC1C,KAAM,CAAE,IAAKC,EAAc,GAAAC,EAAI,SAAAC,EAAU,GAAGC,GAASJ,EAE/CK,EAAWC,EAAAA,OAAwB,IAAI,EACvCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUJ,CAAY,CAAC,EAEpDS,EAAcR,GAAM,OAE1B,OACES,MAACb,EAAA,CAAU,GAAIY,EAAc,GAAGE,4CAAWR,EAAM,CAAE,IAAAG,EAAK,EACrD,SAAAJ,CAAA,CACH,CAEJ,EAEAJ,EAAM,YAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"badge-DVDR3-fy.es.js","sources":["../../src/components/badge/badge.recipe.tsx","../../src/components/badge/badge.slots.tsx","../../src/components/badge/badge.tsx"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react\";\n\n/**\n * Recipe configuration for the Badge component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const badgeRecipe = defineRecipe({\n className: \"nimbus-badge\",\n\n // Base styles applied to all instances of the component\n base: {\n display: \"inline-flex\",\n alignItems: \"center\",\n borderRadius: \"200\",\n justifyContent: \"center\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\",\n py: \"25\",\n fontWeight: \"500\",\n backgroundColor: \"colorPalette.3\",\n color: \"colorPalette.11\",\n w: \"auto\",\n userSelect: \"none\",\n _icon: {\n flexShrink: \"0\",\n },\n },\n\n // Available variants for customizing the component's appearance\n variants: {\n size: {\n \"2xs\": {\n fontSize: \"300\",\n gap: \"100\",\n h: \"600\",\n lineHeight: \"350\",\n px: \"200\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n },\n xs: {\n fontSize: \"350\",\n gap: \"100\",\n h: \"800\",\n lineHeight: \"400\",\n px: \"300\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n },\n md: {\n fontSize: \"400\",\n gap: \"200\",\n h: \"1000\",\n lineHeight: \"500\",\n px: \"400\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n },\n },\n },\n\n // Default variant values when not explicitly specified\n defaultVariants: {\n size: \"md\",\n },\n});\n","import { createRecipeContext } from \"@chakra-ui/react\";\n\nimport { badgeRecipe } from \"./badge.recipe\";\nimport type { BadgeRootProps } from \"./badge.types\";\n\nconst { withContext } = createRecipeContext({ recipe: badgeRecipe });\n\nexport const BadgeRoot = withContext<HTMLSpanElement, BadgeRootProps>(\"span\");\n","import { useRef } from \"react\";\nimport { BadgeRoot } from \"./badge.slots\";\nimport type { BadgeProps } from \"./badge.types\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { useObjectRef, mergeProps } from \"react-aria\";\n/**\n * Badge\n * ============================================================\n * badge\n *\n * Features:\n *\n * - allows forwarding refs to the underlying DOM element\n * - accepts all native html 'HTMLSpanElement' attributes (including aria- & data-attributes)\n * - supports 'variants', 'sizes', 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 */\n\nexport const Badge = (props: BadgeProps) => {\n const { ref: forwardedRef, as, children, ...rest } = props;\n\n const localRef = useRef<HTMLSpanElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const elementType = as || \"span\";\n\n return (\n <BadgeRoot as={elementType} {...mergeProps(rest, { ref })}>\n {children}\n </BadgeRoot>\n );\n};\n\nBadge.displayName = \"Badge\";\n"],"names":["badgeRecipe","defineRecipe","withContext","createRecipeContext","BadgeRoot","Badge","props","forwardedRef","as","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","jsx","mergeProps"],"mappings":";;;;;AAMO,MAAMA,IAAc,gBAAAC,EAAa;AAAA,EACtC,WAAW;AAAA;AAAA,EAGX,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,eAA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,EAAA,CACH;AAEJ;AAEAJ,EAAM,cAAc;"}
@@ -1,11 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { Box as x } from "@chakra-ui/react";
3
- const e = (o) => {
4
- const { ref: r, ...s } = o;
5
- return /* @__PURE__ */ t(x, { ref: r, ...s });
6
- };
7
- e.displayName = "Box";
8
- export {
9
- e as B
10
- };
11
- //# sourceMappingURL=box-DD4jYgS7.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"box-DD4jYgS7.es.js","sources":["../../src/components/box/box.tsx"],"sourcesContent":["import { Box as ChakraBox, type HTMLChakraProps } from \"@chakra-ui/react\";\n\nexport interface BoxProps extends HTMLChakraProps<\"div\"> {\n children?: React.ReactNode;\n ref?: React.Ref<HTMLDivElement>;\n}\n\nexport const Box = (props: BoxProps) => {\n const { ref, ...restProps } = props;\n return <ChakraBox ref={ref} {...restProps} />;\n};\n\nBox.displayName = \"Box\";\n"],"names":["Box","props","ref","restProps","jsx","ChakraBox"],"mappings":";;AAOO,MAAMA,IAAM,CAACC,MAAoB;AACtC,QAAM,EAAE,KAAAC,GAAK,GAAGC,EAAA,IAAcF;AAC9B,SAAO,gBAAAG,EAACC,GAAA,EAAU,KAAAH,GAAW,GAAGC,EAAA,CAAW;AAC7C;AAEAH,EAAI,cAAc;"}
@@ -1,2 +0,0 @@
1
- "use strict";const o=require("react/jsx-runtime"),c=require("@chakra-ui/react"),e=r=>{const{ref:s,...t}=r;return o.jsx(c.Box,{ref:s,...t})};e.displayName="Box";exports.Box=e;
2
- //# sourceMappingURL=box-FU6tRPFs.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"box-FU6tRPFs.cjs.js","sources":["../../src/components/box/box.tsx"],"sourcesContent":["import { Box as ChakraBox, type HTMLChakraProps } from \"@chakra-ui/react\";\n\nexport interface BoxProps extends HTMLChakraProps<\"div\"> {\n children?: React.ReactNode;\n ref?: React.Ref<HTMLDivElement>;\n}\n\nexport const Box = (props: BoxProps) => {\n const { ref, ...restProps } = props;\n return <ChakraBox ref={ref} {...restProps} />;\n};\n\nBox.displayName = \"Box\";\n"],"names":["Box","props","ref","restProps","jsx","ChakraBox"],"mappings":"gFAOaA,EAAOC,GAAoB,CACtC,KAAM,CAAE,IAAAC,EAAK,GAAGC,CAAA,EAAcF,EAC9B,OAAOG,EAAAA,IAACC,EAAAA,IAAA,CAAU,IAAAH,EAAW,GAAGC,CAAA,CAAW,CAC7C,EAEAH,EAAI,YAAc"}
@@ -1,66 +0,0 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { useRef as u } from "react";
3
- import { $ as m } from "./Button-BsN1D5Hi.es.js";
4
- import { $ as f } from "./utils-CEdpnSRC.es.js";
5
- import { createRecipeContext as h, defaultSystem as g, mergeRefs as y } from "@chakra-ui/react";
6
- import { b as k } from "./button.recipe-DzOS_Bqm.es.js";
7
- import { $ as x } from "./useObjectRef-CaJ5pgjX.es.js";
8
- import { $ as b } from "./mergeProps-Bn6EInU5.es.js";
9
- import { $ as v } from "./useButton-BGeoUZHr.es.js";
10
- function P(e) {
11
- var r = /* @__PURE__ */ Object.create(null);
12
- return function(t) {
13
- return r[t] === void 0 && (r[t] = e(t)), r[t];
14
- };
15
- }
16
- var R = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, S = /* @__PURE__ */ P(
17
- function(e) {
18
- return R.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
19
- }
20
- /* Z+1 */
21
- );
22
- const { withContext: C } = /* @__PURE__ */ h({
23
- recipe: k
24
- }), T = /* @__PURE__ */ C(
25
- "button",
26
- {
27
- defaultProps: {
28
- type: "button"
29
- },
30
- /** make sure the `onPress` properties won't end up as attribute on the rendered DOM element */
31
- shouldForwardProp(e, r) {
32
- const t = !r?.includes(e) && !g.isValidProperty(e);
33
- return S(e) && t && !e.includes("onPress");
34
- }
35
- }
36
- ), w = (e) => {
37
- const { ref: r, as: t, asChild: n, children: a, ...s } = e, l = u(null), i = x(y(l, r)), [o] = f(s, i, m), c = t || (n ? "a" : "button"), { buttonProps: d } = v(
38
- {
39
- ...o,
40
- elementType: c
41
- },
42
- i
43
- );
44
- return /* @__PURE__ */ p(
45
- T,
46
- {
47
- ...b(o, d, {
48
- as: t,
49
- asChild: n,
50
- /**
51
- * In case `slot` was null, the `useContextProps` hook already
52
- * processed it at this point, so it's safe to not attach it
53
- * to the DOM element
54
- */
55
- slot: o.slot || void 0
56
- }),
57
- ref: i,
58
- children: a
59
- }
60
- );
61
- };
62
- w.displayName = "Button";
63
- export {
64
- w as B
65
- };
66
- //# sourceMappingURL=button-DPZ4gynI.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"button-DPZ4gynI.es.js","sources":["../../../../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js","../../../../node_modules/.pnpm/@emotion+is-prop-valid@1.3.1/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js","../../src/components/button/button.slots.tsx","../../src/components/button/button.tsx"],"sourcesContent":["function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport { memoize as default };\n","import memoize from '@emotion/memoize';\n\n// eslint-disable-next-line no-undef\nvar reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar isPropValid = /* #__PURE__ */memoize(function (prop) {\n return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n /* o */\n && prop.charCodeAt(1) === 110\n /* n */\n && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport { isPropValid as default };\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n defaultSystem,\n} from \"@chakra-ui/react\";\nimport { buttonRecipe } from \"./button.recipe\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the button element.\n */\ninterface ButtonRecipeProps extends RecipeProps<\"button\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\nexport interface ButtonRootProps\n extends Omit<HTMLChakraProps<\"button\", ButtonRecipeProps>, \"slot\"> {\n // insure that the `ButtonRoot` component doesn't give a type error\n slot?: string | null | undefined;\n}\n\nconst { withContext } = createRecipeContext({\n recipe: buttonRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Button component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const ButtonRoot = withContext<HTMLButtonElement, ButtonRootProps>(\n \"button\",\n {\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) && !defaultSystem.isValidProperty(prop);\n return shouldForwardProp(prop) && chakraSfp && !prop.includes(\"onPress\");\n },\n }\n);\n","import { useRef } from \"react\";\nimport { useButton, useObjectRef, mergeProps } from \"react-aria\";\nimport { ButtonContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { ButtonRoot } from \"./button.slots.tsx\";\nimport type { ButtonProps } from \"./button.types.ts\";\n\nexport const Button = (props: ButtonProps) => {\n const { ref: forwardedRef, as, asChild, children, ...rest } = props;\n\n // create a local ref (because the consumer may not provide a forwardedRef)\n const localRef = useRef<HTMLButtonElement>(null);\n // merge the local ref with a potentially forwarded ref\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Consume context props based on slot (this enables slot-aware behavior)\n const [contextProps] = useContextProps(rest, ref, ButtonContext);\n\n // if asChild is set, for react-aria to add the button-role, the elementType\n // has to be manually set to something else than button\n\n const elementType = as || (asChild ? \"a\" : \"button\") || \"button\";\n\n const { buttonProps } = useButton(\n {\n ...contextProps,\n elementType,\n },\n ref\n );\n\n return (\n <ButtonRoot\n {...mergeProps(contextProps, buttonProps, {\n as,\n asChild,\n /**\n * In case `slot` was null, the `useContextProps` hook already\n * processed it at this point, so it's safe to not attach it\n * to the DOM element\n */\n slot: contextProps.slot || undefined,\n })}\n ref={ref}\n >\n {children}\n </ButtonRoot>\n );\n};\n\n// Manually assign a displayName for debugging purposes\nButton.displayName = \"Button\";\n"],"names":["memoize","fn","cache","arg","reactPropsRegex","isPropValid","prop","withContext","createRecipeContext","buttonRecipe","ButtonRoot","variantKeys","chakraSfp","defaultSystem","shouldForwardProp","Button","props","forwardedRef","as","asChild","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","contextProps","useContextProps","ButtonContext","elementType","buttonProps","useButton","jsx","mergeProps"],"mappings":";;;;;;;;;AAAA,SAASA,EAAQC,GAAI;AACnB,MAAIC,IAAQ,uBAAO,OAAO,IAAI;AAC9B,SAAO,SAAUC,GAAK;AACpB,WAAID,EAAMC,CAAG,MAAM,WAAWD,EAAMC,CAAG,IAAIF,EAAGE,CAAG,IAC1CD,EAAMC,CAAG;AAAA,EAClB;AACF;ACHA,IAAIC,IAAkB,ugIAElBC,IAA6B,gBAAAL;AAAA,EAAQ,SAAUM,GAAM;AACvD,WAAOF,EAAgB,KAAKE,CAAI,KAAKA,EAAK,WAAW,CAAC,MAAM,OAEzDA,EAAK,WAAW,CAAC,MAAM,OAEvBA,EAAK,WAAW,CAAC,IAAI;AAAA,EAC1B;AAAA;AAEA;ACeA,MAAM,EAAE,aAAAC,EAAA,IAAgB,gBAAAC,EAAoB;AAAA,EAC1C,QAAQC;AACV,CAAC,GAMYC,IAAa,gBAAAH;AAAA,EACxB;AAAA,EACA;AAAA,IACE,cAAc;AAAA,MACZ,MAAM;AAAA,IAAA;AAAA;AAAA,IAGR,kBAAkBD,GAAMK,GAAa;AACnC,YAAMC,IACJ,CAACD,GAAa,SAASL,CAAI,KAAK,CAACO,EAAc,gBAAgBP,CAAI;AACrE,aAAOQ,EAAkBR,CAAI,KAAKM,KAAa,CAACN,EAAK,SAAS,SAAS;AAAA,IACzE;AAAA,EAAA;AAEJ,GC1CaS,IAAS,CAACC,MAAuB;AAC5C,QAAM,EAAE,KAAKC,GAAc,IAAAC,GAAI,SAAAC,GAAS,UAAAC,GAAU,GAAGC,MAASL,GAGxDM,IAAWC,EAA0B,IAAI,GAEzCC,IAAMC,EAAaC,EAAUJ,GAAUL,CAAY,CAAC,GAGpD,CAACU,CAAY,IAAIC,EAAgBP,GAAMG,GAAKK,CAAa,GAKzDC,IAAcZ,MAAOC,IAAU,MAAM,WAErC,EAAE,aAAAY,MAAgBC;AAAAA,IACtB;AAAA,MACE,GAAGL;AAAA,MACH,aAAAG;AAAA,IAAA;AAAA,IAEFN;AAAA,EAAA;AAGF,SACE,gBAAAS;AAAA,IAACvB;AAAA,IAAA;AAAA,MACE,GAAGwB,EAAWP,GAAcI,GAAa;AAAA,QACxC,IAAAb;AAAA,QACA,SAAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAMA,MAAMQ,EAAa,QAAQ;AAAA,MAAA,CAC5B;AAAA,MACD,KAAAH;AAAA,MAEC,UAAAJ;AAAA,IAAA;AAAA,EAAA;AAGP;AAGAL,EAAO,cAAc;","x_google_ignoreList":[0,1]}
@@ -1,2 +0,0 @@
1
- "use strict";const f=require("react/jsx-runtime"),m=require("react"),h=require("./Button-BjOgrRmH.cjs.js"),g=require("./utils-sWqo2nmW.cjs.js"),o=require("@chakra-ui/react"),y=require("./button.recipe-DHk13lGU.cjs.js"),k=require("./useObjectRef-4v2MxSjQ.cjs.js"),b=require("./mergeProps-VvQrkhSh.cjs.js"),x=require("./useButton-Bnd1IfAy.cjs.js");function v(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var R=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,P=v(function(e){return R.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const{withContext:S}=o.createRecipeContext({recipe:y.buttonRecipe}),C=S("button",{defaultProps:{type:"button"},shouldForwardProp(e,r){const t=!r?.includes(e)&&!o.defaultSystem.isValidProperty(e);return P(e)&&t&&!e.includes("onPress")}}),s=e=>{const{ref:r,as:t,asChild:a,children:l,...c}=e,d=m.useRef(null),n=k.$df56164dff5785e2$export$4338b53315abf666(o.mergeRefs(d,r)),[i]=g.$64fa3d84918910a7$export$29f1550f4b0d4415(c,n,h.$d2b4bc8c273e7be6$export$24d547caef80ccd1),u=t||(a?"a":"button"),{buttonProps:p}=x.$701a24aa0da5b062$export$ea18c227d4417cc3({...i,elementType:u},n);return f.jsx(C,{...b.$3ef42575df84b30b$export$9d1611c77c2fe928(i,p,{as:t,asChild:a,slot:i.slot||void 0}),ref:n,children:l})};s.displayName="Button";exports.Button=s;
2
- //# sourceMappingURL=button-DhrBalPi.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"button-DhrBalPi.cjs.js","sources":["../../../../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js","../../../../node_modules/.pnpm/@emotion+is-prop-valid@1.3.1/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js","../../src/components/button/button.slots.tsx","../../src/components/button/button.tsx"],"sourcesContent":["function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport { memoize as default };\n","import memoize from '@emotion/memoize';\n\n// eslint-disable-next-line no-undef\nvar reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar isPropValid = /* #__PURE__ */memoize(function (prop) {\n return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n /* o */\n && prop.charCodeAt(1) === 110\n /* n */\n && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport { isPropValid as default };\n","/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n defaultSystem,\n} from \"@chakra-ui/react\";\nimport { buttonRecipe } from \"./button.recipe\";\nimport shouldForwardProp from \"@emotion/is-prop-valid\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the button element.\n */\ninterface ButtonRecipeProps extends RecipeProps<\"button\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\nexport interface ButtonRootProps\n extends Omit<HTMLChakraProps<\"button\", ButtonRecipeProps>, \"slot\"> {\n // insure that the `ButtonRoot` component doesn't give a type error\n slot?: string | null | undefined;\n}\n\nconst { withContext } = createRecipeContext({\n recipe: buttonRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Button component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const ButtonRoot = withContext<HTMLButtonElement, ButtonRootProps>(\n \"button\",\n {\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) && !defaultSystem.isValidProperty(prop);\n return shouldForwardProp(prop) && chakraSfp && !prop.includes(\"onPress\");\n },\n }\n);\n","import { useRef } from \"react\";\nimport { useButton, useObjectRef, mergeProps } from \"react-aria\";\nimport { ButtonContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { ButtonRoot } from \"./button.slots.tsx\";\nimport type { ButtonProps } from \"./button.types.ts\";\n\nexport const Button = (props: ButtonProps) => {\n const { ref: forwardedRef, as, asChild, children, ...rest } = props;\n\n // create a local ref (because the consumer may not provide a forwardedRef)\n const localRef = useRef<HTMLButtonElement>(null);\n // merge the local ref with a potentially forwarded ref\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n // Consume context props based on slot (this enables slot-aware behavior)\n const [contextProps] = useContextProps(rest, ref, ButtonContext);\n\n // if asChild is set, for react-aria to add the button-role, the elementType\n // has to be manually set to something else than button\n\n const elementType = as || (asChild ? \"a\" : \"button\") || \"button\";\n\n const { buttonProps } = useButton(\n {\n ...contextProps,\n elementType,\n },\n ref\n );\n\n return (\n <ButtonRoot\n {...mergeProps(contextProps, buttonProps, {\n as,\n asChild,\n /**\n * In case `slot` was null, the `useContextProps` hook already\n * processed it at this point, so it's safe to not attach it\n * to the DOM element\n */\n slot: contextProps.slot || undefined,\n })}\n ref={ref}\n >\n {children}\n </ButtonRoot>\n );\n};\n\n// Manually assign a displayName for debugging purposes\nButton.displayName = \"Button\";\n"],"names":["memoize","fn","cache","arg","reactPropsRegex","isPropValid","prop","withContext","createRecipeContext","buttonRecipe","ButtonRoot","variantKeys","chakraSfp","defaultSystem","shouldForwardProp","Button","props","forwardedRef","as","asChild","children","rest","localRef","useRef","ref","useObjectRef","mergeRefs","contextProps","useContextProps","ButtonContext","elementType","buttonProps","useButton","jsx","mergeProps"],"mappings":"0VAAA,SAASA,EAAQC,EAAI,CACnB,IAAIC,EAAQ,OAAO,OAAO,IAAI,EAC9B,OAAO,SAAUC,EAAK,CACpB,OAAID,EAAMC,CAAG,IAAM,SAAWD,EAAMC,CAAG,EAAIF,EAAGE,CAAG,GAC1CD,EAAMC,CAAG,CAClB,CACF,CCHA,IAAIC,EAAkB,sgIAElBC,EAA6BL,EAAQ,SAAUM,EAAM,CACvD,OAAOF,EAAgB,KAAKE,CAAI,GAAKA,EAAK,WAAW,CAAC,IAAM,KAEzDA,EAAK,WAAW,CAAC,IAAM,KAEvBA,EAAK,WAAW,CAAC,EAAI,EAC1B,CAEA,ECeA,KAAM,CAAE,YAAAC,CAAA,EAAgBC,sBAAoB,CAC1C,OAAQC,EAAAA,YACV,CAAC,EAMYC,EAAaH,EACxB,SACA,CACE,aAAc,CACZ,KAAM,QAAA,EAGR,kBAAkBD,EAAMK,EAAa,CACnC,MAAMC,EACJ,CAACD,GAAa,SAASL,CAAI,GAAK,CAACO,EAAAA,cAAc,gBAAgBP,CAAI,EACrE,OAAOQ,EAAkBR,CAAI,GAAKM,GAAa,CAACN,EAAK,SAAS,SAAS,CACzE,CAAA,CAEJ,EC1CaS,EAAUC,GAAuB,CAC5C,KAAM,CAAE,IAAKC,EAAc,GAAAC,EAAI,QAAAC,EAAS,SAAAC,EAAU,GAAGC,GAASL,EAGxDM,EAAWC,EAAAA,OAA0B,IAAI,EAEzCC,EAAMC,EAAAA,0CAAaC,EAAAA,UAAUJ,EAAUL,CAAY,CAAC,EAGpD,CAACU,CAAY,EAAIC,EAAAA,0CAAgBP,EAAMG,EAAKK,EAAAA,yCAAa,EAKzDC,EAAcZ,IAAOC,EAAU,IAAM,UAErC,CAAE,YAAAY,GAAgBC,EAAAA,0CACtB,CACE,GAAGL,EACH,YAAAG,CAAA,EAEFN,CAAA,EAGF,OACES,EAAAA,IAACvB,EAAA,CACE,GAAGwB,EAAAA,0CAAWP,EAAcI,EAAa,CACxC,GAAAb,EACA,QAAAC,EAMA,KAAMQ,EAAa,MAAQ,MAAA,CAC5B,EACD,IAAAH,EAEC,SAAAJ,CAAA,CAAA,CAGP,EAGAL,EAAO,YAAc","x_google_ignoreList":[0,1]}
@@ -1,2 +0,0 @@
1
- "use strict";const e=require("@chakra-ui/react"),t=e.defineRecipe({className:"nimbus-button",base:{borderRadius:"200",display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"500",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"600",minW:"600",fontSize:"300",fontWeight:"500",lineHeight:"400",px:"200",gap:"100",_icon:{width:"400",height:"400"}},xs:{h:"800",minW:"800",fontSize:"350",fontWeight:"500",lineHeight:"400",px:"300",gap:"100",_icon:{width:"500",height:"500"}},md:{h:"1000",minW:"1000",fontSize:"400",lineHeight:"500",px:"400",gap:"200",_icon:{width:"600",height:"600"}}},variant:{solid:{bg:"colorPalette.9",color:"colorPalette.contrast",_hover:{bg:"colorPalette.10"},_expanded:{bg:"colorPalette.10"}},subtle:{bg:"colorPalette.3",color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},outline:{borderWidth:"1px",borderColor:"colorPalette.7",color:"colorPalette.11",transitionProperty:"background-color, border-color, color",transitionDuration:"moderate",_hover:{bg:"colorPalette.3",borderColor:"colorPalette.8"},_expanded:{bg:"colorPalette.subtle"}},ghost:{color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},link:{color:"colorPalette.11",_hover:{textDecoration:"underline"}}},tone:{primary:{colorPalette:"primary"},critical:{colorPalette:"critical"},neutral:{colorPalette:"neutral"},info:{colorPalette:"info"}}},defaultVariants:{size:"md",variant:"subtle"}});exports.buttonRecipe=t;
2
- //# sourceMappingURL=button.recipe-DHk13lGU.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"button.recipe-DHk13lGU.cjs.js","sources":["../../src/components/button/button.recipe.ts"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react\";\n\nexport const buttonRecipe = defineRecipe({\n className: \"nimbus-button\",\n base: {\n borderRadius: \"200\",\n display: \"inline-flex\",\n appearance: \"none\",\n alignItems: \"center\",\n justifyContent: \"center\",\n userSelect: \"none\",\n position: \"relative\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\",\n borderWidth: \"1px\",\n borderColor: \"transparent\",\n cursor: \"button\",\n flexShrink: \"0\",\n outline: \"0\",\n lineHeight: \"1.2\",\n isolation: \"isolate\",\n fontWeight: \"500\",\n transitionProperty: \"common\",\n transitionDuration: \"moderate\",\n focusVisibleRing: \"outside\",\n _disabled: {\n layerStyle: \"disabled\",\n },\n _icon: {\n flexShrink: \"0\",\n },\n },\n variants: {\n size: {\n \"2xs\": {\n h: \"600\",\n minW: \"600\",\n fontSize: \"300\",\n fontWeight: \"500\",\n lineHeight: \"400\",\n px: \"200\",\n gap: \"100\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n },\n xs: {\n h: \"800\",\n minW: \"800\",\n fontSize: \"350\",\n fontWeight: \"500\",\n lineHeight: \"400\",\n px: \"300\",\n gap: \"100\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n },\n /* sm: {\n h: \"900\",\n minW: \"900\",\n px: \"350\",\n textStyle: \"sm\",\n gap: \"200\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n }, */\n md: {\n h: \"1000\",\n minW: \"1000\",\n fontSize: \"400\",\n lineHeight: \"500\",\n px: \"400\",\n gap: \"200\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n },\n /* lg: {\n h: \"1100\",\n minW: \"1100\",\n textStyle: \"md\",\n px: \"500\",\n gap: \"300\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n }, */\n /* xl: {\n h: \"1200\",\n minW: \"1200\",\n textStyle: \"md\",\n px: \"500\",\n gap: \"250\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n }, */\n /* \"2xl\": {\n h: \"1600\",\n minW: \"1600\",\n textStyle: \"lg\",\n px: \"700\",\n gap: \"300\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n }, */\n },\n variant: {\n solid: {\n bg: \"colorPalette.9\",\n color: \"colorPalette.contrast\",\n _hover: {\n bg: \"colorPalette.10\",\n },\n _expanded: {\n bg: \"colorPalette.10\",\n },\n },\n subtle: {\n bg: \"colorPalette.3\",\n color: \"colorPalette.11\",\n _hover: {\n bg: \"colorPalette.4\",\n },\n _expanded: {\n bg: \"colorPalette.4\",\n },\n },\n outline: {\n borderWidth: \"1px\",\n borderColor: \"colorPalette.7\",\n color: \"colorPalette.11\",\n transitionProperty: \"background-color, border-color, color\",\n transitionDuration: \"moderate\",\n _hover: {\n bg: \"colorPalette.3\",\n borderColor: \"colorPalette.8\",\n },\n _expanded: {\n bg: \"colorPalette.subtle\",\n },\n },\n ghost: {\n color: \"colorPalette.11\",\n _hover: {\n bg: \"colorPalette.4\",\n },\n _expanded: {\n bg: \"colorPalette.4\",\n },\n },\n link: {\n color: \"colorPalette.11\",\n _hover: {\n textDecoration: \"underline\",\n },\n },\n },\n tone: {\n primary: {\n colorPalette: \"primary\",\n },\n critical: {\n colorPalette: \"critical\",\n },\n neutral: {\n colorPalette: \"neutral\",\n },\n info: {\n colorPalette: \"info\",\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n variant: \"subtle\",\n },\n});\n"],"names":["buttonRecipe","defineRecipe"],"mappings":"iDAEaA,EAAeC,EAAAA,aAAa,CACvC,UAAW,gBACX,KAAM,CACJ,aAAc,MACd,QAAS,cACT,WAAY,OACZ,WAAY,SACZ,eAAgB,SAChB,WAAY,OACZ,SAAU,WACV,WAAY,SACZ,cAAe,SACf,YAAa,MACb,YAAa,cACb,OAAQ,SACR,WAAY,IACZ,QAAS,IACT,WAAY,MACZ,UAAW,UACX,WAAY,MACZ,mBAAoB,SACpB,mBAAoB,WACpB,iBAAkB,UAClB,UAAW,CACT,WAAY,UAAA,EAEd,MAAO,CACL,WAAY,GAAA,CACd,EAEF,SAAU,CACR,KAAM,CACJ,MAAO,CACL,EAAG,MACH,KAAM,MACN,SAAU,MACV,WAAY,MACZ,WAAY,MACZ,GAAI,MACJ,IAAK,MACL,MAAO,CACL,MAAO,MACP,OAAQ,KAAA,CACV,EAEF,GAAI,CACF,EAAG,MACH,KAAM,MACN,SAAU,MACV,WAAY,MACZ,WAAY,MACZ,GAAI,MACJ,IAAK,MACL,MAAO,CACL,MAAO,MACP,OAAQ,KAAA,CACV,EAaF,GAAI,CACF,EAAG,OACH,KAAM,OACN,SAAU,MACV,WAAY,MACZ,GAAI,MACJ,IAAK,MACL,MAAO,CACL,MAAO,MACP,OAAQ,KAAA,CACV,CACF,EAmCF,QAAS,CACP,MAAO,CACL,GAAI,iBACJ,MAAO,wBACP,OAAQ,CACN,GAAI,iBAAA,EAEN,UAAW,CACT,GAAI,iBAAA,CACN,EAEF,OAAQ,CACN,GAAI,iBACJ,MAAO,kBACP,OAAQ,CACN,GAAI,gBAAA,EAEN,UAAW,CACT,GAAI,gBAAA,CACN,EAEF,QAAS,CACP,YAAa,MACb,YAAa,iBACb,MAAO,kBACP,mBAAoB,wCACpB,mBAAoB,WACpB,OAAQ,CACN,GAAI,iBACJ,YAAa,gBAAA,EAEf,UAAW,CACT,GAAI,qBAAA,CACN,EAEF,MAAO,CACL,MAAO,kBACP,OAAQ,CACN,GAAI,gBAAA,EAEN,UAAW,CACT,GAAI,gBAAA,CACN,EAEF,KAAM,CACJ,MAAO,kBACP,OAAQ,CACN,eAAgB,WAAA,CAClB,CACF,EAEF,KAAM,CACJ,QAAS,CACP,aAAc,SAAA,EAEhB,SAAU,CACR,aAAc,UAAA,EAEhB,QAAS,CACP,aAAc,SAAA,EAEhB,KAAM,CACJ,aAAc,MAAA,CAChB,CACF,EAEF,gBAAiB,CACf,KAAM,KACN,QAAS,QAAA,CAEb,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"button.recipe-DzOS_Bqm.es.js","sources":["../../src/components/button/button.recipe.ts"],"sourcesContent":["import { defineRecipe } from \"@chakra-ui/react\";\n\nexport const buttonRecipe = defineRecipe({\n className: \"nimbus-button\",\n base: {\n borderRadius: \"200\",\n display: \"inline-flex\",\n appearance: \"none\",\n alignItems: \"center\",\n justifyContent: \"center\",\n userSelect: \"none\",\n position: \"relative\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\",\n borderWidth: \"1px\",\n borderColor: \"transparent\",\n cursor: \"button\",\n flexShrink: \"0\",\n outline: \"0\",\n lineHeight: \"1.2\",\n isolation: \"isolate\",\n fontWeight: \"500\",\n transitionProperty: \"common\",\n transitionDuration: \"moderate\",\n focusVisibleRing: \"outside\",\n _disabled: {\n layerStyle: \"disabled\",\n },\n _icon: {\n flexShrink: \"0\",\n },\n },\n variants: {\n size: {\n \"2xs\": {\n h: \"600\",\n minW: \"600\",\n fontSize: \"300\",\n fontWeight: \"500\",\n lineHeight: \"400\",\n px: \"200\",\n gap: \"100\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n },\n xs: {\n h: \"800\",\n minW: \"800\",\n fontSize: \"350\",\n fontWeight: \"500\",\n lineHeight: \"400\",\n px: \"300\",\n gap: \"100\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n },\n /* sm: {\n h: \"900\",\n minW: \"900\",\n px: \"350\",\n textStyle: \"sm\",\n gap: \"200\",\n _icon: {\n width: \"400\",\n height: \"400\",\n },\n }, */\n md: {\n h: \"1000\",\n minW: \"1000\",\n fontSize: \"400\",\n lineHeight: \"500\",\n px: \"400\",\n gap: \"200\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n },\n /* lg: {\n h: \"1100\",\n minW: \"1100\",\n textStyle: \"md\",\n px: \"500\",\n gap: \"300\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n }, */\n /* xl: {\n h: \"1200\",\n minW: \"1200\",\n textStyle: \"md\",\n px: \"500\",\n gap: \"250\",\n _icon: {\n width: \"500\",\n height: \"500\",\n },\n }, */\n /* \"2xl\": {\n h: \"1600\",\n minW: \"1600\",\n textStyle: \"lg\",\n px: \"700\",\n gap: \"300\",\n _icon: {\n width: \"600\",\n height: \"600\",\n },\n }, */\n },\n variant: {\n solid: {\n bg: \"colorPalette.9\",\n color: \"colorPalette.contrast\",\n _hover: {\n bg: \"colorPalette.10\",\n },\n _expanded: {\n bg: \"colorPalette.10\",\n },\n },\n subtle: {\n bg: \"colorPalette.3\",\n color: \"colorPalette.11\",\n _hover: {\n bg: \"colorPalette.4\",\n },\n _expanded: {\n bg: \"colorPalette.4\",\n },\n },\n outline: {\n borderWidth: \"1px\",\n borderColor: \"colorPalette.7\",\n color: \"colorPalette.11\",\n transitionProperty: \"background-color, border-color, color\",\n transitionDuration: \"moderate\",\n _hover: {\n bg: \"colorPalette.3\",\n borderColor: \"colorPalette.8\",\n },\n _expanded: {\n bg: \"colorPalette.subtle\",\n },\n },\n ghost: {\n color: \"colorPalette.11\",\n _hover: {\n bg: \"colorPalette.4\",\n },\n _expanded: {\n bg: \"colorPalette.4\",\n },\n },\n link: {\n color: \"colorPalette.11\",\n _hover: {\n textDecoration: \"underline\",\n },\n },\n },\n tone: {\n primary: {\n colorPalette: \"primary\",\n },\n critical: {\n colorPalette: \"critical\",\n },\n neutral: {\n colorPalette: \"neutral\",\n },\n info: {\n colorPalette: \"info\",\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n variant: \"subtle\",\n },\n});\n"],"names":["buttonRecipe","defineRecipe"],"mappings":";AAEO,MAAMA,IAAe,gBAAAC,EAAa;AAAA,EACvC,WAAW;AAAA,EACX,MAAM;AAAA,IACJ,cAAc;AAAA,IACd,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,eAAe;AAAA,IACf,aAAa;AAAA,IACb,aAAa;AAAA,IACb,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,oBAAoB;AAAA,IACpB,oBAAoB;AAAA,IACpB,kBAAkB;AAAA,IAClB,WAAW;AAAA,MACT,YAAY;AAAA,IAAA;AAAA,IAEd,OAAO;AAAA,MACL,YAAY;AAAA,IAAA;AAAA,EACd;AAAA,EAEF,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,GAAG;AAAA,QACH,MAAM;AAAA,QACN,UAAU;AAAA,QACV,YAAY;AA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B;AAAA,QACpB,oBAAoB;AAAA,QACpB,QAAQ;AAAA,UACN,IAAI;AAAA,UACJ,aAAa;AAAA,QAAA;AAAA,QAEf,WAAW;AAAA,UACT,IAAI;AAAA,QAAA;AAAA,MACN;AAAA,MAEF,OAAO;AAAA,QACL,OAAO;AAAA,QACP,QAAQ;AAAA,UACN,IAAI;AAAA,QAAA;AAAA,QAEN,WAAW;AAAA,UACT,IAAI;AAAA,QAAA;AAAA,MACN;AAAA,MAEF,MAAM;AAAA,QACJ,OAAO;AAAA,QACP,QAAQ;AAAA,UACN,gBAAgB;AAAA,QAAA;AAAA,MAClB;AAAA,IACF;AAAA,IAEF,MAAM;AAAA,MACJ,SAAS;AAAA,QACP,cAAc;AAAA,MAAA;AAAA,MAEhB,UAAU;AAAA,QACR,cAAc;AAAA,MAAA;AAAA,MAEhB,SAAS;AAAA,QACP,cAAc;AAAA,MAAA;AAAA,MAEhB,MAAM;AAAA,QACJ,cAAc;AAAA,MAAA;AAAA,IAChB;AAAA,EACF;AAAA,EAEF,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEb,CAAC;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"calendar-BCsFBFkk.es.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport type { CalendarProps } from \"react-aria-components\";\nimport type { DateValue } from \"@internationalized/date\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport interface CalendarRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof calendarSlotRecipe> & CalendarProps<DateValue>\n > {}\nexport const CalendarRootSlot = withProvider<\n HTMLDivElement,\n CalendarRootSlotProps\n>(\"div\", \"root\");\n\nexport interface CalendarHeaderSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport interface CalendarGridsSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport interface CalendarMonthTitleSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport interface CalendarGridSlotProps extends HTMLChakraProps<\"table\"> {}\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport interface CalendarGridHeaderSlotProps extends HTMLChakraProps<\"thead\"> {}\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport interface CalendarHeaderCellSlotProps extends HTMLChakraProps<\"th\"> {}\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport interface CalendarGridBodySlotProps extends HTMLChakraProps<\"tbody\"> {}\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport interface CalendarCellSlotProps extends HTMLChakraProps<\"td\"> {}\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n CalendarContext,\n CalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\n\nimport { Box } from \"@/components\";\n\nimport {\n CalendarCellSlot,\n CalendarGridBodySlot,\n CalendarGridHeaderSlot,\n CalendarGridSlot,\n CalendarGridsSlot,\n CalendarHeaderCellSlot,\n CalendarMonthTitleSlot,\n} from \"../calendar.slots\";\n\nexport const CalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(CalendarContext);\n const calendarState = useContext(CalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <CalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <CalendarMonthTitleSlot>{monthName}</CalendarMonthTitleSlot>\n )}\n <CalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <CalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <CalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </CalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </CalendarGridHeaderSlot>\n <CalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <CalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </CalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </CalendarGridBodySlot>\n </RaCalendarGrid>\n </CalendarGridSlot>\n </Box>\n );\n })}\n </CalendarGridsSlot>\n );\n};\n","import {\n CalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { CalendarHeaderSlot } from \"../calendar.slots\";\n\nexport const CalendarHeader = () => {\n const calendarProps = useSlottedContext(CalendarContext);\n\n // Needed to decide wether to show a single month or a range\n const visibleDurationMonths = calendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <CalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton slot=\"next-year\" size=\"xs\" variant=\"ghost\" tone=\"primary\">\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </CalendarHeaderSlot>\n );\n};\n","import { getLocalTimeZone } from \"@internationalized/date\";\nimport { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n CalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\n\nexport const CalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const { locale } = useLocale();\n const buttonContext = useContext(ButtonContext)!;\n const textContext = useContext(TextContext)!;\n const calendarState = useContext(CalendarStateContext)!;\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n \"next-month\": {\n onPress: () => calendarState.focusNextSection(),\n \"aria-label\": \"Next month\",\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": \"Previous month\",\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": \"Next year\",\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": \"Previous year\",\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import type { CalendarProps } from \"./calendar.types\";\nimport type { DateValue } from \"react-aria\";\n\nimport { Calendar as RaCalendar } from \"react-aria-components\";\n\nimport { CalendarRootSlot } from \"./calendar.slots\";\nimport { CalendarGrids } from \"./components/calendar.grids\";\nimport { CalendarHeader } from \"./components/calendar.header\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport { useRecipe } from \"@chakra-ui/react\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { CalendarCustomContext } from \"./components/calendar.custom-context\";\n\nexport const Calendar = (props: CalendarProps<DateValue>) => {\n const recipe = useRecipe({ recipe: calendarSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <CalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaCalendar {...otherProps}>\n <CalendarCustomContext>\n <CalendarHeader />\n <CalendarGrids />\n </CalendarCustomContext>\n </RaCalendar>\n </CalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CalendarRootSlot","CalendarHeaderSlot","CalendarGridsSlot","CalendarMonthTitleSlot","CalendarGridSlot","CalendarGridHeaderSlot","CalendarHeaderCellSlot","CalendarGridBodySlot","CalendarCellSlot","CalendarGrids","locale","useLocale","context","useSlottedContext","CalendarContext","calendarState","useContext","CalendarStateContext","visibleMonthsCount","todayDate","today","getLocalTimeZone","showMonthTitles","jsx","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","CalendarCustomContext","children","buttonContext","ButtonContext","textContext","TextContext","buttonSlots","monthLabel","monthRangeLabel","yearLabel","textSlots","Provider","Calendar","props","recipe","useRecipe","calendarSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":";;;;;;;;;;;;;;;;;AAUA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAOYC,IAAmB,gBAAAH,EAG9B,OAAO,MAAM,GAGFI,IAAqB,gBAAAH,EAGhC,OAAO,QAAQ,GAGJI,IAAoB,gBAAAJ,EAG/B,OAAO,OAAO,GAGHK,IAAyB,gBAAAL,EAGpC,OAAO,YAAY,GAGRM,IAAmB,gBAAAN,EAG9B,SAAS,MAAM,GAGJO,IAAyB,gBAAAP,EAGpC,SAAS,YAAY,GAGVQ,IAAyB,gBAAAR,EAGpC,MAAM,YAAY,GAGPS,IAAuB,gBAAAT,EAGlC,SAAS,UAAU,GAGRU,IAAmB,gBAAAV,EAG9B,MAAM,UAAU,GC5CLW,KAAgB,MAAM;AACjC,QAAM,EAAE,QAAAC,EAAA,IAAWC,EAAA,GACbC,IAAUC,EAAkBC,CAAe,GAC3CC,IAAgBC,EAAWC,CAAoB,GAC/CC,IAAqBN,GAAS,iBAAiB,UAAU,GACzDO,IAAYC,EAAMC,GAAkB,GACpCC,IAAkBJ,IAAqB;AAE7C,SACE,gBAAAK,EAACrB,GAAA,EACE,UAAA,MAAM,KAAK,EAAE,QAAQgB,EAAA,GAAsB,CAACM,GAAGC,MAAU;AACxD,UAAMC,IAAWX,EAAc,aAAa,MAAM,I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B,IAAA,CAAA,CAAc;AAAA,EAAA,EAAA,CACjB,GACF,GACF;AAEJ;"}
@@ -1,2 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),a=require("./Heading-DiqU5dbv.cjs.js"),p=require("@chakra-ui/react"),u=require("react"),c=require("./useDateFormatter-Byp_7yyY.cjs.js"),m=require("./utils-sWqo2nmW.cjs.js"),S=require("./box-FU6tRPFs.cjs.js"),w=require("./context-DURpz5en.cjs.js"),h=require("./icon-button-QwpNTUZ8.cjs.js"),y=require("./text--fhvW47o.cjs.js"),C=require("./stack-wFUhYQQb.cjs.js"),P=require("./visually-hidden-YFEW-yS7.cjs.js"),$=require("@commercetools/nimbus-icons"),q=require("./calendar.recipe-gUaUNltl.cjs.js"),R=require("./extractStyleProps-lyk7D-zN.cjs.js"),g=require("./Button-BjOgrRmH.cjs.js"),v=require("./Text-BWSfeB9p.cjs.js"),{withProvider:I,withContext:s}=p.createSlotRecipeContext({key:"calendar"}),T=I("div","root"),B=s("div","header"),H=s("div","grids"),A=s("div","monthTitle"),F=s("table","grid"),G=s("thead","gridHeader"),L=s("th","headerCell"),k=s("tbody","gridBody"),M=s("td","bodyCell"),N=()=>{const{locale:d}=w.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),n=m.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$3b805cea1f178355),t=u.useContext(a.$dfd62f934fc76fed$export$9e31dcedda1dadc7),r=n?.visibleDuration?.months||1,o=c.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),i=r>1;return e.jsx(H,{children:Array.from({length:r},(j,l)=>{const b=t.visibleRange.start.add({months:l}),f=new Intl.DateTimeFormat(d,{month:"long"}).format(b.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()));return e.jsxs(S.Box,{width:r==1?"full":"auto",children:[i&&e.jsx(A,{children:f}),e.jsx(F,{asChild:!0,children:e.jsxs(a.$dfd62f934fc76fed$export$5bd780d491cfc46c,{offset:{months:l},weekdayStyle:"short",children:[e.jsx(G,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$22e2d15eaa4d2377,{children:x=>e.jsx(L,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$ad2135cac3a11b3d,{children:x})})})}),e.jsx(k,{asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e11f8ba65d857bff,{children:x=>{const D=x.compare(o)===0;return e.jsx(M,{asChild:!0,"data-today":D,children:e.jsx(a.$dfd62f934fc76fed$export$5d847498420df57b,{date:x})})}})})]})})]},f)})})},z=()=>{const t=(m.$64fa3d84918910a7$export$fabf2dc03a41866e(a.$dfd62f934fc76fed$export$3b805cea1f178355)?.visibleDuration?.months||1)>1;return e.jsx(B,{children:e.jsxs(p.Flex,{children:[e.jsxs(C.Stack,{direction:"row",alignItems:"center",children:[e.jsx(P.VisuallyHidden,{children:e.jsx(a.$5cb03073d3f54797$export$a8a3e93435678ff9,{})}),e.jsx(h.IconButton,{slot:t?"previous":"previous-month",size:"xs",variant:"ghost",tone:"primary",children:e.jsx($.KeyboardArrowLeft,{})}),e.jsx(y.Text,{textStyle:"sm",fontWeight:"500",color:"neutral.11",width:t?"4000":"2000",textAlign:"center","aria-hidden":"true",slot:t?"monthRange":"month"}),e.jsx(h.IconButton,{slot:t?"next":"next-month",size:"xs",variant:"ghost",tone:"primary",children:e.jsx($.KeyboardArrowRight,{})})]}),e.jsx(S.Box,{flexGrow:"1"}),e.jsxs(C.Stack,{direction:"row",alignItems:"center",children:[e.jsx(h.IconButton,{slot:"previous-year",size:"xs",variant:"ghost",tone:"primary",children:e.jsx($.KeyboardArrowLeft,{})}),e.jsx(y.Text,{textStyle:"sm",fontWeight:"500",color:"neutral.11",width:"1400",textAlign:"center","aria-hidden":"true",slot:"year"}),e.jsx(h.IconButton,{slot:"next-year",size:"xs",variant:"ghost",tone:"primary",children:e.jsx($.KeyboardArrowRight,{})})]})]})})},K=({children:d})=>{const{locale:n}=w.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),t=u.useContext(g.$d2b4bc8c273e7be6$export$24d547caef80ccd1),r=u.useContext(v.$514c0188e459b4c0$export$9afb8bc826b033ea),o=u.useContext(a.$dfd62f934fc76fed$export$9e31dcedda1dadc7),i={"next-month":{onPress:()=>o.focusNextSection(),"aria-label":"Next month"},"previous-month":{onPress:()=>o.focusPreviousSection(),"aria-label":"Previous month"},"next-year":{onPress:()=>o.focusNextSection(!0),"aria-label":"Next year"},"previous-year":{onPress:()=>o.focusPreviousSection(!0),"aria-label":"Previous year"}},j=new Intl.DateTimeFormat(n,{month:"long"}).format(o.focusedDate.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),l=[new Intl.DateTimeFormat(n,{month:"long"}).format(o.visibleRange.start.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),new Intl.DateTimeFormat(n,{month:"long"}).format(o.visibleRange.end.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()))].join(" - "),b=new Intl.DateTimeFormat(n,{year:"numeric"}).format(o.focusedDate.toDate(c.$14e0f24ef4ac5c92$export$aa8b41735afcabd2())),f={month:{children:j},monthRange:{children:l},year:{children:b}};return e.jsx(m.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[g.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...t,slots:{...t&&typeof t=="object"&&"slots"in t?t.slots:{},...i}}],[v.$514c0188e459b4c0$export$9afb8bc826b033ea,{...r,slots:{...r&&typeof r=="object"&&"slots"in r?r.slots:{},...f}}]],children:d})},V=d=>{const n=p.useRecipe({recipe:q.calendarSlotRecipe}),[t,r]=n.splitVariantProps(d),[o,i]=R.extractStyleProps(r);return e.jsx(T,{...t,...o,asChild:!0,children:e.jsx(a.$dfd62f934fc76fed$export$e1aef45b828286de,{...i,children:e.jsxs(K,{children:[e.jsx(z,{}),e.jsx(N,{})]})})})};exports.Calendar=V;
2
- //# sourceMappingURL=calendar-BeUwpJo3.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"calendar-BeUwpJo3.cjs.js","sources":["../../src/components/calendar/calendar.slots.tsx","../../src/components/calendar/components/calendar.grids.tsx","../../src/components/calendar/components/calendar.header.tsx","../../src/components/calendar/components/calendar.custom-context.tsx","../../src/components/calendar/calendar.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\nimport {\n createSlotRecipeContext,\n type HTMLChakraProps,\n type RecipeVariantProps,\n} from \"@chakra-ui/react\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport type { CalendarProps } from \"react-aria-components\";\nimport type { DateValue } from \"@internationalized/date\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"calendar\",\n});\n\nexport interface CalendarRootSlotProps\n extends HTMLChakraProps<\n \"div\",\n RecipeVariantProps<typeof calendarSlotRecipe> & CalendarProps<DateValue>\n > {}\nexport const CalendarRootSlot = withProvider<\n HTMLDivElement,\n CalendarRootSlotProps\n>(\"div\", \"root\");\n\nexport interface CalendarHeaderSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarHeaderSlot = withContext<\n HTMLDivElement,\n CalendarHeaderSlotProps\n>(\"div\", \"header\");\n\nexport interface CalendarGridsSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarGridsSlot = withContext<\n HTMLDivElement,\n CalendarGridsSlotProps\n>(\"div\", \"grids\");\n\nexport interface CalendarMonthTitleSlotProps extends HTMLChakraProps<\"div\"> {}\nexport const CalendarMonthTitleSlot = withContext<\n HTMLDivElement,\n CalendarMonthTitleSlotProps\n>(\"div\", \"monthTitle\");\n\nexport interface CalendarGridSlotProps extends HTMLChakraProps<\"table\"> {}\nexport const CalendarGridSlot = withContext<\n HTMLTableElement,\n CalendarGridSlotProps\n>(\"table\", \"grid\");\n\nexport interface CalendarGridHeaderSlotProps extends HTMLChakraProps<\"thead\"> {}\nexport const CalendarGridHeaderSlot = withContext<\n HTMLTableSectionElement,\n CalendarGridHeaderSlotProps\n>(\"thead\", \"gridHeader\");\n\nexport interface CalendarHeaderCellSlotProps extends HTMLChakraProps<\"th\"> {}\nexport const CalendarHeaderCellSlot = withContext<\n HTMLTableCellElement,\n CalendarHeaderCellSlotProps\n>(\"th\", \"headerCell\");\n\nexport interface CalendarGridBodySlotProps extends HTMLChakraProps<\"tbody\"> {}\nexport const CalendarGridBodySlot = withContext<\n HTMLTableSectionElement,\n CalendarGridBodySlotProps\n>(\"tbody\", \"gridBody\");\n\nexport interface CalendarCellSlotProps extends HTMLChakraProps<\"td\"> {}\nexport const CalendarCellSlot = withContext<\n HTMLTableCellElement,\n CalendarCellSlotProps\n>(\"td\", \"bodyCell\");\n","import { useContext } from \"react\";\nimport { today, getLocalTimeZone } from \"@internationalized/date\";\nimport {\n CalendarGrid as RaCalendarGrid,\n CalendarGridBody as RaCalendarGridBody,\n CalendarGridHeader as RaCalendarGridHeader,\n CalendarHeaderCell as RaCalendarHeaderCell,\n CalendarCell as RaCalendarCell,\n useSlottedContext,\n CalendarContext,\n CalendarStateContext,\n useLocale,\n} from \"react-aria-components\";\n\nimport { Box } from \"@/components\";\n\nimport {\n CalendarCellSlot,\n CalendarGridBodySlot,\n CalendarGridHeaderSlot,\n CalendarGridSlot,\n CalendarGridsSlot,\n CalendarHeaderCellSlot,\n CalendarMonthTitleSlot,\n} from \"../calendar.slots\";\n\nexport const CalendarGrids = () => {\n const { locale } = useLocale();\n const context = useSlottedContext(CalendarContext);\n const calendarState = useContext(CalendarStateContext)!;\n const visibleMonthsCount = context?.visibleDuration?.months || 1;\n const todayDate = today(getLocalTimeZone());\n const showMonthTitles = visibleMonthsCount > 1;\n\n return (\n <CalendarGridsSlot>\n {Array.from({ length: visibleMonthsCount }, (_, index) => {\n const gridDate = calendarState.visibleRange.start.add({\n months: index,\n });\n const monthName = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(gridDate.toDate(getLocalTimeZone()));\n\n return (\n <Box\n key={monthName}\n width={visibleMonthsCount == 1 ? \"full\" : \"auto\"}\n >\n {showMonthTitles && (\n <CalendarMonthTitleSlot>{monthName}</CalendarMonthTitleSlot>\n )}\n <CalendarGridSlot asChild>\n <RaCalendarGrid offset={{ months: index }} weekdayStyle=\"short\">\n <CalendarGridHeaderSlot asChild>\n <RaCalendarGridHeader>\n {(day) => (\n <CalendarHeaderCellSlot asChild>\n <RaCalendarHeaderCell>{day}</RaCalendarHeaderCell>\n </CalendarHeaderCellSlot>\n )}\n </RaCalendarGridHeader>\n </CalendarGridHeaderSlot>\n <CalendarGridBodySlot asChild>\n <RaCalendarGridBody>\n {(date) => {\n const isToday = date.compare(todayDate) === 0;\n return (\n <CalendarCellSlot asChild data-today={isToday}>\n <RaCalendarCell date={date} />\n </CalendarCellSlot>\n );\n }}\n </RaCalendarGridBody>\n </CalendarGridBodySlot>\n </RaCalendarGrid>\n </CalendarGridSlot>\n </Box>\n );\n })}\n </CalendarGridsSlot>\n );\n};\n","import {\n CalendarContext,\n Heading,\n useSlottedContext,\n} from \"react-aria-components\";\nimport {\n Box,\n Flex,\n IconButton,\n Stack,\n Text,\n VisuallyHidden,\n} from \"@/components\";\nimport {\n KeyboardArrowLeft,\n KeyboardArrowRight,\n} from \"@commercetools/nimbus-icons\";\nimport { CalendarHeaderSlot } from \"../calendar.slots\";\n\nexport const CalendarHeader = () => {\n const calendarProps = useSlottedContext(CalendarContext);\n\n // Needed to decide wether to show a single month or a range\n const visibleDurationMonths = calendarProps?.visibleDuration?.months || 1;\n const showRangeLabel = visibleDurationMonths > 1;\n\n return (\n <CalendarHeaderSlot>\n <Flex>\n <Stack direction=\"row\" alignItems=\"center\">\n {/** solely for screen readers, if not present, a11y issues are raised */}\n <VisuallyHidden>\n <Heading />\n </VisuallyHidden>\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"previous\" : \"previous-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width={showRangeLabel ? \"4000\" : \"2000\"}\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot={showRangeLabel ? \"monthRange\" : \"month\"}\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot={showRangeLabel ? \"next\" : \"next-month\"}\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n <Box flexGrow=\"1\" />\n <Stack direction=\"row\" alignItems=\"center\">\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton\n slot=\"previous-year\"\n size=\"xs\"\n variant=\"ghost\"\n tone=\"primary\"\n >\n <KeyboardArrowLeft />\n </IconButton>\n <Text\n textStyle=\"sm\"\n fontWeight=\"500\"\n color=\"neutral.11\"\n width=\"1400\"\n textAlign=\"center\"\n aria-hidden=\"true\"\n slot=\"year\"\n />\n {/* @ts-expect-error - custom-context will add aria-label via the \"slot\" prop */}\n <IconButton slot=\"next-year\" size=\"xs\" variant=\"ghost\" tone=\"primary\">\n <KeyboardArrowRight />\n </IconButton>\n </Stack>\n </Flex>\n </CalendarHeaderSlot>\n );\n};\n","import { getLocalTimeZone } from \"@internationalized/date\";\nimport { useContext } from \"react\";\nimport {\n Provider,\n ButtonContext,\n CalendarStateContext,\n TextContext,\n useLocale,\n} from \"react-aria-components\";\n\nexport const CalendarCustomContext = ({\n children,\n}: {\n children: React.ReactNode;\n}) => {\n const { locale } = useLocale();\n const buttonContext = useContext(ButtonContext)!;\n const textContext = useContext(TextContext)!;\n const calendarState = useContext(CalendarStateContext)!;\n\n /**\n * Button slots\n * ================================\n */\n const buttonSlots = {\n \"next-month\": {\n onPress: () => calendarState.focusNextSection(),\n \"aria-label\": \"Next month\",\n },\n \"previous-month\": {\n onPress: () => calendarState.focusPreviousSection(),\n \"aria-label\": \"Previous month\",\n },\n \"next-year\": {\n onPress: () => calendarState.focusNextSection(true),\n \"aria-label\": \"Next year\",\n },\n \"previous-year\": {\n onPress: () => calendarState.focusPreviousSection(true),\n \"aria-label\": \"Previous year\",\n },\n };\n\n /**\n * Text slots\n * ================================\n */\n const monthLabel = new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const monthRangeLabel = [\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.start.toDate(getLocalTimeZone())),\n new Intl.DateTimeFormat(locale, {\n month: \"long\",\n }).format(calendarState.visibleRange.end.toDate(getLocalTimeZone())),\n ].join(\" - \");\n\n const yearLabel = new Intl.DateTimeFormat(locale, {\n year: \"numeric\",\n }).format(calendarState.focusedDate.toDate(getLocalTimeZone()));\n\n const textSlots = {\n month: { children: monthLabel },\n monthRange: { children: monthRangeLabel },\n year: { children: yearLabel },\n };\n\n return (\n <Provider\n values={[\n [\n ButtonContext,\n {\n ...buttonContext,\n slots: {\n ...(buttonContext &&\n typeof buttonContext === \"object\" &&\n \"slots\" in buttonContext\n ? buttonContext.slots\n : {}),\n ...buttonSlots,\n },\n },\n ],\n [\n TextContext,\n {\n ...textContext,\n slots: {\n ...(textContext &&\n typeof textContext === \"object\" &&\n \"slots\" in textContext\n ? textContext.slots\n : {}),\n ...textSlots,\n },\n },\n ],\n ]}\n >\n {children}\n </Provider>\n );\n};\n","import type { CalendarProps } from \"./calendar.types\";\nimport type { DateValue } from \"react-aria\";\n\nimport { Calendar as RaCalendar } from \"react-aria-components\";\n\nimport { CalendarRootSlot } from \"./calendar.slots\";\nimport { CalendarGrids } from \"./components/calendar.grids\";\nimport { CalendarHeader } from \"./components/calendar.header\";\nimport { calendarSlotRecipe } from \"./calendar.recipe\";\nimport { useRecipe } from \"@chakra-ui/react\";\nimport { extractStyleProps } from \"@/utils/extractStyleProps\";\nimport { CalendarCustomContext } from \"./components/calendar.custom-context\";\n\nexport const Calendar = (props: CalendarProps<DateValue>) => {\n const recipe = useRecipe({ recipe: calendarSlotRecipe });\n const [recipeProps, remainingProps] = recipe.splitVariantProps(props);\n const [styleProps, otherProps] = extractStyleProps(remainingProps);\n\n return (\n <CalendarRootSlot {...recipeProps} {...styleProps} asChild>\n <RaCalendar {...otherProps}>\n <CalendarCustomContext>\n <CalendarHeader />\n <CalendarGrids />\n </CalendarCustomContext>\n </RaCalendar>\n </CalendarRootSlot>\n );\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","CalendarRootSlot","CalendarHeaderSlot","CalendarGridsSlot","CalendarMonthTitleSlot","CalendarGridSlot","CalendarGridHeaderSlot","CalendarHeaderCellSlot","CalendarGridBodySlot","CalendarCellSlot","CalendarGrids","locale","useLocale","context","useSlottedContext","CalendarContext","calendarState","useContext","CalendarStateContext","visibleMonthsCount","todayDate","today","getLocalTimeZone","showMonthTitles","jsx","_","index","gridDate","monthName","jsxs","Box","RaCalendarGrid","RaCalendarGridHeader","day","RaCalendarHeaderCell","RaCalendarGridBody","date","isToday","RaCalendarCell","CalendarHeader","showRangeLabel","Flex","Stack","VisuallyHidden","Heading","IconButton","KeyboardArrowLeft","Text","KeyboardArrowRight","CalendarCustomContext","children","buttonContext","ButtonContext","textContext","TextContext","buttonSlots","monthLabel","monthRangeLabel","yearLabel","textSlots","Provider","Calendar","props","recipe","useRecipe","calendarSlotRecipe","recipeProps","remainingProps","styleProps","otherProps","extractStyleProps","RaCalendar"],"mappings":"+pBAUM,CAAE,aAAAA,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,IAAK,UACP,CAAC,EAOYC,EAAmBH,EAG9B,MAAO,MAAM,EAGFI,EAAqBH,EAGhC,MAAO,QAAQ,EAGJI,EAAoBJ,EAG/B,MAAO,OAAO,EAGHK,EAAyBL,EAGpC,MAAO,YAAY,EAGRM,EAAmBN,EAG9B,QAAS,MAAM,EAGJO,EAAyBP,EAGpC,QAAS,YAAY,EAGVQ,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ui/react";
2
- const r = /* @__PURE__ */ e({
3
- slots: [
4
- "root",
5
- "header",
6
- "grids",
7
- "monthTitle",
8
- "grid",
9
- "gridHeader",
10
- "headerCell",
11
- "gridBody",
12
- "bodyCell"
13
- ],
14
- className: "nimbus-calendar",
15
- base: {
16
- // the container element
17
- root: {
18
- display: "inline-block",
19
- maxWidth: "100%"
20
- },
21
- header: {
22
- height: "1200",
23
- p: "200",
24
- mb: "300",
25
- borderBottom: "solid-25",
26
- borderColor: "neutral.3"
27
- },
28
- // the container contianing the month(s) grid(s)
29
- grids: {
30
- display: "flex",
31
- flexWrap: "wrap",
32
- gap: "800",
33
- mx: "200",
34
- maxWidth: "full"
35
- },
36
- // Month title above each grid
37
- monthTitle: {
38
- textAlign: "center",
39
- fontSize: "400",
40
- fontWeight: "600",
41
- color: "neutral.11",
42
- mb: "300",
43
- px: "200"
44
- },
45
- // A single grid (<table>) containing a months days
46
- grid: {
47
- w: "full",
48
- minW: "fit-content",
49
- flex: "1 1 auto"
50
- },
51
- // Weekday Row
52
- gridHeader: {},
53
- // Weekday Item
54
- headerCell: {
55
- p: "200",
56
- pb: "300",
57
- textAlign: "center",
58
- color: "neutral.9",
59
- fontSize: "300",
60
- lineHeight: "350",
61
- fontWeight: "500"
62
- },
63
- gridBody: {},
64
- // Day Item
65
- bodyCell: {
66
- cursor: "pointer",
67
- p: "200",
68
- minW: "1400",
69
- borderRadius: "200",
70
- fontSize: "350",
71
- lineHeight: "500",
72
- fontWeight: "400",
73
- transitionProperty: "all",
74
- transitionDuration: "fastest",
75
- textAlign: "center",
76
- color: "neutral.12",
77
- display: "flex",
78
- alignItems: "center",
79
- justifyContent: "center",
80
- mb: "200",
81
- focusRing: "outside",
82
- "&[aria-disabled=true]": {
83
- layerStyle: "disabled"
84
- },
85
- "&[data-hovered=true]": {
86
- bg: "primary.3"
87
- },
88
- "&[data-today=true]": {
89
- bg: "neutral.3"
90
- },
91
- "&[data-selected=true]": {
92
- bg: "primary.9",
93
- color: "primary.contrast"
94
- }
95
- }
96
- }
97
- });
98
- export {
99
- r as c
100
- };
101
- //# sourceMappingURL=calendar.recipe-B2sMokBn.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"calendar.recipe-B2sMokBn.es.js","sources":["../../src/components/calendar/calendar.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react\";\n\nexport const calendarSlotRecipe = defineSlotRecipe({\n slots: [\n \"root\",\n \"header\",\n \"grids\",\n \"monthTitle\",\n \"grid\",\n \"gridHeader\",\n \"headerCell\",\n \"gridBody\",\n \"bodyCell\",\n ],\n className: \"nimbus-calendar\",\n base: {\n // the container element\n root: {\n display: \"inline-block\",\n maxWidth: \"100%\",\n },\n header: {\n height: \"1200\",\n p: \"200\",\n mb: \"300\",\n borderBottom: \"solid-25\",\n borderColor: \"neutral.3\",\n },\n // the container contianing the month(s) grid(s)\n grids: {\n display: \"flex\",\n flexWrap: \"wrap\",\n gap: \"800\",\n mx: \"200\",\n maxWidth: \"full\",\n },\n // Month title above each grid\n monthTitle: {\n textAlign: \"center\",\n fontSize: \"400\",\n fontWeight: \"600\",\n color: \"neutral.11\",\n mb: \"300\",\n px: \"200\",\n },\n // A single grid (<table>) containing a months days\n grid: {\n w: \"full\",\n minW: \"fit-content\",\n flex: \"1 1 auto\",\n },\n // Weekday Row\n gridHeader: {},\n // Weekday Item\n headerCell: {\n p: \"200\",\n pb: \"300\",\n textAlign: \"center\",\n color: \"neutral.9\",\n fontSize: \"300\",\n lineHeight: \"350\",\n fontWeight: \"500\",\n },\n gridBody: {},\n\n // Day Item\n bodyCell: {\n cursor: \"pointer\",\n p: \"200\",\n minW: \"1400\",\n borderRadius: \"200\",\n fontSize: \"350\",\n lineHeight: \"500\",\n fontWeight: \"400\",\n transitionProperty: \"all\",\n transitionDuration: \"fastest\",\n textAlign: \"center\",\n color: \"neutral.12\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n mb: \"200\",\n focusRing: \"outside\",\n\n \"&[aria-disabled=true]\": {\n layerStyle: \"disabled\",\n },\n\n \"&[data-hovered=true]\": {\n bg: \"primary.3\",\n },\n\n \"&[data-today=true]\": {\n bg: \"neutral.3\",\n },\n\n \"&[data-selected=true]\": {\n bg: \"primary.9\",\n color: \"primary.contrast\",\n },\n },\n },\n});\n"],"names":["calendarSlotRecipe","defineSlotRecipe"],"mappings":";AAEO,MAAMA,IAAqB,gBAAAC,EAAiB;AAAA,EACjD,OAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAAA,EAEF,WAAW;AAAA,EACX,MAAM;AAAA;AAAA,IAEJ,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,UAAU;AAAA,IAAA;AAAA,IAEZ,QAAQ;AAAA,MACN,QAAQ;AAAA,MACR,GAAG;AAAA,MACH,IAAI;AAAA,MACJ,cAAc;AAAA,MACd,aAAa;AAAA,IAAA;AAAA;AAAA,IAGf,OAAO;AAAA,MACL,SAAS;AAAA,MACT,UAAU;AAAA,MACV,KAAK;AAAA,MACL,IAAI;AAAA,MACJ,UAAU;AAAA,IAAA;AAAA;AAAA,IAGZ,YAAY;AAAA,MACV,WAAW;AAAA,MACX,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,OAAO;AAAA,MACP,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA;AAAA;AAAA,IAGN,MAAM;AAAA,MACJ,GAAG;AAAA,MACH,MAAM;AAAA,MACN,MAAM;AAAA,IAAA;AAAA;AAAA,IAGR,YAAY,CAAA;AAAA;AAAA,IAEZ,YAAY;AAAA,MACV,GAAG;AAAA,MACH,IAAI;AAAA,MACJ,WAAW;AAAA,MACX,OAAO;AAAA,MACP,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,YAAY;AAAA,IAAA;AAAA,IAEd,UAAU,CAAA;AAAA;AAAA,IAGV,UAAU;AAAA,MACR,QAAQ;AAAA,MACR,GAAG;AAAA,MACH,MAAM;AAAA,MACN,cAAc;AAAA,MACd,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,oBAAoB;AAAA,MACpB,oBAAoB;AAAA,MACpB,WAAW;AAAA,MACX,OAAO;AAAA,MACP,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,gBAAgB;AAAA,MAChB,IAAI;AAAA,MACJ,WAAW;AAAA,MAEX,yBAAyB;AAAA,QACvB,YAAY;AAAA,MAAA;AAAA,MAGd,wBAAwB;AAAA,QACtB,IAAI;AAAA,MAAA;AAAA,MAGN,sBAAsB;AAAA,QACpB,IAAI;AAAA,MAAA;AAAA,MAGN,yBAAyB;AAAA,QACvB,IAAI;AAAA,QACJ,OAAO;AAAA,MAAA;AAAA,IACT;AAAA,EACF;AAEJ,CAAC;"}
@@ -1,2 +0,0 @@
1
- "use strict";const e=require("@chakra-ui/react"),t=e.defineSlotRecipe({slots:["root","header","grids","monthTitle","grid","gridHeader","headerCell","gridBody","bodyCell"],className:"nimbus-calendar",base:{root:{display:"inline-block",maxWidth:"100%"},header:{height:"1200",p:"200",mb:"300",borderBottom:"solid-25",borderColor:"neutral.3"},grids:{display:"flex",flexWrap:"wrap",gap:"800",mx:"200",maxWidth:"full"},monthTitle:{textAlign:"center",fontSize:"400",fontWeight:"600",color:"neutral.11",mb:"300",px:"200"},grid:{w:"full",minW:"fit-content",flex:"1 1 auto"},gridHeader:{},headerCell:{p:"200",pb:"300",textAlign:"center",color:"neutral.9",fontSize:"300",lineHeight:"350",fontWeight:"500"},gridBody:{},bodyCell:{cursor:"pointer",p:"200",minW:"1400",borderRadius:"200",fontSize:"350",lineHeight:"500",fontWeight:"400",transitionProperty:"all",transitionDuration:"fastest",textAlign:"center",color:"neutral.12",display:"flex",alignItems:"center",justifyContent:"center",mb:"200",focusRing:"outside","&[aria-disabled=true]":{layerStyle:"disabled"},"&[data-hovered=true]":{bg:"primary.3"},"&[data-today=true]":{bg:"neutral.3"},"&[data-selected=true]":{bg:"primary.9",color:"primary.contrast"}}}});exports.calendarSlotRecipe=t;
2
- //# sourceMappingURL=calendar.recipe-gUaUNltl.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"calendar.recipe-gUaUNltl.cjs.js","sources":["../../src/components/calendar/calendar.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react\";\n\nexport const calendarSlotRecipe = defineSlotRecipe({\n slots: [\n \"root\",\n \"header\",\n \"grids\",\n \"monthTitle\",\n \"grid\",\n \"gridHeader\",\n \"headerCell\",\n \"gridBody\",\n \"bodyCell\",\n ],\n className: \"nimbus-calendar\",\n base: {\n // the container element\n root: {\n display: \"inline-block\",\n maxWidth: \"100%\",\n },\n header: {\n height: \"1200\",\n p: \"200\",\n mb: \"300\",\n borderBottom: \"solid-25\",\n borderColor: \"neutral.3\",\n },\n // the container contianing the month(s) grid(s)\n grids: {\n display: \"flex\",\n flexWrap: \"wrap\",\n gap: \"800\",\n mx: \"200\",\n maxWidth: \"full\",\n },\n // Month title above each grid\n monthTitle: {\n textAlign: \"center\",\n fontSize: \"400\",\n fontWeight: \"600\",\n color: \"neutral.11\",\n mb: \"300\",\n px: \"200\",\n },\n // A single grid (<table>) containing a months days\n grid: {\n w: \"full\",\n minW: \"fit-content\",\n flex: \"1 1 auto\",\n },\n // Weekday Row\n gridHeader: {},\n // Weekday Item\n headerCell: {\n p: \"200\",\n pb: \"300\",\n textAlign: \"center\",\n color: \"neutral.9\",\n fontSize: \"300\",\n lineHeight: \"350\",\n fontWeight: \"500\",\n },\n gridBody: {},\n\n // Day Item\n bodyCell: {\n cursor: \"pointer\",\n p: \"200\",\n minW: \"1400\",\n borderRadius: \"200\",\n fontSize: \"350\",\n lineHeight: \"500\",\n fontWeight: \"400\",\n transitionProperty: \"all\",\n transitionDuration: \"fastest\",\n textAlign: \"center\",\n color: \"neutral.12\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n mb: \"200\",\n focusRing: \"outside\",\n\n \"&[aria-disabled=true]\": {\n layerStyle: \"disabled\",\n },\n\n \"&[data-hovered=true]\": {\n bg: \"primary.3\",\n },\n\n \"&[data-today=true]\": {\n bg: \"neutral.3\",\n },\n\n \"&[data-selected=true]\": {\n bg: \"primary.9\",\n color: \"primary.contrast\",\n },\n },\n },\n});\n"],"names":["calendarSlotRecipe","defineSlotRecipe"],"mappings":"iDAEaA,EAAqBC,EAAAA,iBAAiB,CACjD,MAAO,CACL,OACA,SACA,QACA,aACA,OACA,aACA,aACA,WACA,UAAA,EAEF,UAAW,kBACX,KAAM,CAEJ,KAAM,CACJ,QAAS,eACT,SAAU,MAAA,EAEZ,OAAQ,CACN,OAAQ,OACR,EAAG,MACH,GAAI,MACJ,aAAc,WACd,YAAa,WAAA,EAGf,MAAO,CACL,QAAS,OACT,SAAU,OACV,IAAK,MACL,GAAI,MACJ,SAAU,MAAA,EAGZ,WAAY,CACV,UAAW,SACX,SAAU,MACV,WAAY,MACZ,MAAO,aACP,GAAI,MACJ,GAAI,KAAA,EAGN,KAAM,CACJ,EAAG,OACH,KAAM,cACN,KAAM,UAAA,EAGR,WAAY,CAAA,EAEZ,WAAY,CACV,EAAG,MACH,GAAI,MACJ,UAAW,SACX,MAAO,YACP,SAAU,MACV,WAAY,MACZ,WAAY,KAAA,EAEd,SAAU,CAAA,EAGV,SAAU,CACR,OAAQ,UACR,EAAG,MACH,KAAM,OACN,aAAc,MACd,SAAU,MACV,WAAY,MACZ,WAAY,MACZ,mBAAoB,MACpB,mBAAoB,UACpB,UAAW,SACX,MAAO,aACP,QAAS,OACT,WAAY,SACZ,eAAgB,SAChB,GAAI,MACJ,UAAW,UAEX,wBAAyB,CACvB,WAAY,UAAA,EAGd,uBAAwB,CACtB,GAAI,WAAA,EAGN,qBAAsB,CACpB,GAAI,WAAA,EAGN,wBAAyB,CACvB,GAAI,YACJ,MAAO,kBAAA,CACT,CACF,CAEJ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"card-CS_daMhq.es.js","sources":["../../src/components/card/card.recipe.tsx","../../src/components/card/card.slots.tsx","../../src/components/card/components/card.root.tsx","../../src/components/card/components/card.header.tsx","../../src/components/card/components/card.content.tsx","../../src/components/card/card.tsx"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react\";\n\n/**\n * Recipe configuration for the Card component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const cardRecipe = defineSlotRecipe({\n slots: [\"root\", \"header\", \"content\"],\n\n className: \"nimbus-card\",\n\n base: {\n root: {\n colorPalette: \"slate\",\n display: \"inline-flex\",\n alignItems: \"flex-start\",\n borderRadius: \"300\",\n focusVisibleRing: \"outside\",\n },\n },\n\n variants: {\n cardPadding: {\n sm: {\n root: {\n padding: \"200\",\n },\n },\n md: {\n root: {\n padding: \"400\",\n },\n },\n lg: {\n root: {\n padding: \"600\",\n },\n },\n },\n\n borderStyle: {\n none: {},\n outlined: {\n root: {\n border: \"solid-25\",\n borderColor: \"colorPalette.3\",\n },\n },\n },\n elevation: {\n none: {},\n elevated: {\n root: {\n shadow: \"1\",\n },\n },\n },\n backgroundStyle: {\n default: {\n root: {\n backgroundColor: \"colorPalette.contrast\",\n },\n },\n muted: {\n root: {\n backgroundColor: \"colorPalette.2\",\n },\n },\n },\n },\n});\n","import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react\";\n\nimport { cardRecipe } from \"./card.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the div element.\n */\ninterface CardRecipeProps extends RecipeProps<\"div\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\nexport interface CardRootProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\nexport interface CardHeaderProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\nexport interface CardContentProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: cardRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Card component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const CardRoot = withProvider<HTMLDivElement, CardRootProps>(\n \"div\",\n \"root\"\n);\n\nexport const CardHeader = withContext<HTMLDivElement, CardHeaderProps>(\n \"div\",\n \"header\"\n);\nexport const CardContent = withContext<HTMLDivElement, CardContentProps>(\n \"div\",\n \"content\"\n);\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { CardRoot as CardRootSlot } from \"../card.slots\";\nimport type { CardProps } from \"../card.types\";\nimport { Stack } from \"../../stack\";\nimport { mergeProps, useFocusRing } from \"react-aria\";\n\ntype CardContextValue = {\n setHeader: (header: React.ReactNode) => void;\n setContent: (content: React.ReactNode) => void;\n};\n\nexport const CardContext = createContext<CardContextValue | undefined>(\n undefined\n);\n\nexport const CardRoot = ({ children, ref, ...props }: CardProps) => {\n const { isFocused, isFocusVisible, focusProps } = useFocusRing();\n const [headerNode, setHeader] = useState<ReactNode>(null);\n const [contentNode, setContent] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setHeader,\n setContent,\n }),\n [setHeader, setContent]\n );\n\n return (\n <CardContext.Provider value={contextValue}>\n <CardRootSlot\n ref={ref}\n {...mergeProps(props, focusProps)}\n data-focus={isFocused || undefined}\n data-focus-visible={isFocusVisible || undefined}\n tabIndex={0}\n >\n {/* Always render them in this order/layout to protect consumers */}\n <Stack direction=\"column\" gap=\"200\">\n {headerNode}\n {contentNode}\n </Stack>\n\n {/* Render all consumer sub-components, including our own */}\n {children}\n </CardRootSlot>\n </CardContext.Provider>\n );\n};\n\nCardRoot.displayName = \"Card.Root\";\n","import { useContext, useEffect } from \"react\";\nimport {\n CardHeader as CardHeaderSlot,\n type CardHeaderProps,\n} from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\n\nexport const CardHeader = ({ children, ...props }: CardHeaderProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardHeaderSlot {...props}>{children}</CardHeaderSlot>\n );\n // Register it with the parent\n context.setHeader(slotElement);\n\n // On unmount, remove it\n return () => context.setHeader(null);\n }\n }, [children, props]);\n\n return null;\n};\nCardHeader.displayName = \"Card.Header\";\n","import { useContext, useEffect } from \"react\";\nimport {\n CardContent as CardContentSlot,\n type CardContentProps,\n} from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\n\nexport const CardContent = ({ children, ...props }: CardContentProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardContentSlot {...props}>{children}</CardContentSlot>\n );\n // Register it with the parent\n context.setContent(slotElement);\n\n // On unmount, remove it\n return () => context.setContent(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nCardContent.displayName = \"Card.Content\";\n","import { CardRoot } from \"./components/card.root\";\nimport { CardHeader } from \"./components/card.header\";\nimport { CardContent } from \"./components/card.content\";\n\nexport const Card = {\n Root: CardRoot,\n Header: CardHeader,\n Content: CardContent,\n};\n\nexport {\n CardRoot as _CardRoot,\n CardHeader as _CardHeader,\n CardContent as _CardContent,\n};\n"],"names":["cardRecipe","defineSlotRecipe","withProvider","withContext","createSlotRecipeContext","CardRoot","CardHeader","CardContent","CardContext","createContext","children","ref","props","isFocused","isFocusVisible","focusProps","useFocusRing","headerNode","setHeader","useState","contentNode","setContent","contextValue","useMemo","jsx","jsxs","CardRootSlot","mergeProps","Stack","context","useContext","useEffect","slotElement","CardHeaderSlot","CardContentSlot","Card"],"mappings":";;;;;;AAMO,MAAMA,IAAa,gBAAAC,EAAiB;AAAA,EACzC,OAAO,CAAC,QAAQ,UAAU,SAAS;AAAA,EAEnC,WAAW;AAAA,EAEX,MAAM;AAAA,IACJ,MAAM;AAAA,MACJ,cAAc;A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J,gBAAAR,EAACU,GAAA,EAAiB,GAAGtB,GAAQ,UAAAF,GAAS;AAGxC,aAAAmB,EAAQ,WAAWG,CAAW,GAGvB,MAAMH,EAAQ,WAAW,IAAI;AAAA,IACtC;AAAA,EACF,GAAG,CAACnB,GAAUE,CAAK,CAAC,GAEb;AACT;AAEAL,EAAY,cAAc;ACtBnB,MAAM4B,IAAO;AAAA,EAClB,MAAM9B;AAAA,EACN,QAAQC;AAAA,EACR,SAASC;AACX;"}
@@ -1,2 +0,0 @@
1
- "use strict";const s=require("react/jsx-runtime"),t=require("react"),C=require("@chakra-ui/react"),R=require("./stack-wFUhYQQb.cjs.js"),p=require("./useFocusRing-wD8IMPEh.cjs.js"),$=require("./mergeProps-VvQrkhSh.cjs.js"),P=C.defineSlotRecipe({slots:["root","header","content"],className:"nimbus-card",base:{root:{colorPalette:"slate",display:"inline-flex",alignItems:"flex-start",borderRadius:"300",focusVisibleRing:"outside"}},variants:{cardPadding:{sm:{root:{padding:"200"}},md:{root:{padding:"400"}},lg:{root:{padding:"600"}}},borderStyle:{none:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.3"}}},elevation:{none:{},elevated:{root:{shadow:"1"}}},backgroundStyle:{default:{root:{backgroundColor:"colorPalette.contrast"}},muted:{root:{backgroundColor:"colorPalette.2"}}}}}),{withProvider:H,withContext:f}=C.createSlotRecipeContext({recipe:P}),S=H("div","root"),h=f("div","header"),j=f("div","content"),a=t.createContext(void 0),d=({children:o,ref:r,...e})=>{const{isFocused:n,isFocusVisible:x,focusProps:b}=p.$f7dceffc5ad7768b$export$4e328f61c538687f(),[m,l]=t.useState(null),[g,u]=t.useState(null),v=t.useMemo(()=>({setHeader:l,setContent:u}),[l,u]);return s.jsx(a.Provider,{value:v,children:s.jsxs(S,{ref:r,...$.$3ef42575df84b30b$export$9d1611c77c2fe928(e,b),"data-focus":n||void 0,"data-focus-visible":x||void 0,tabIndex:0,children:[s.jsxs(R.Stack,{direction:"column",gap:"200",children:[m,g]}),o]})})};d.displayName="Card.Root";const c=({children:o,...r})=>{const e=t.useContext(a);return t.useEffect(()=>{if(e){const n=s.jsx(h,{...r,children:o});return e.setHeader(n),()=>e.setHeader(null)}},[o,r]),null};c.displayName="Card.Header";const i=({children:o,...r})=>{const e=t.useContext(a);return t.useEffect(()=>{if(e){const n=s.jsx(j,{...r,children:o});return e.setContent(n),()=>e.setContent(null)}},[o,r]),null};i.displayName="Card.Content";const q={Root:d,Header:c,Content:i};exports.Card=q;exports.CardContent=i;exports.CardHeader=c;exports.CardRoot=d;
2
- //# sourceMappingURL=card-svWLl_kS.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"card-svWLl_kS.cjs.js","sources":["../../src/components/card/card.recipe.tsx","../../src/components/card/card.slots.tsx","../../src/components/card/components/card.root.tsx","../../src/components/card/components/card.header.tsx","../../src/components/card/components/card.content.tsx","../../src/components/card/card.tsx"],"sourcesContent":["import { defineSlotRecipe } from \"@chakra-ui/react\";\n\n/**\n * Recipe configuration for the Card component.\n * Defines the styling variants and base styles using Chakra UI's recipe system.\n */\nexport const cardRecipe = defineSlotRecipe({\n slots: [\"root\", \"header\", \"content\"],\n\n className: \"nimbus-card\",\n\n base: {\n root: {\n colorPalette: \"slate\",\n display: \"inline-flex\",\n alignItems: \"flex-start\",\n borderRadius: \"300\",\n focusVisibleRing: \"outside\",\n },\n },\n\n variants: {\n cardPadding: {\n sm: {\n root: {\n padding: \"200\",\n },\n },\n md: {\n root: {\n padding: \"400\",\n },\n },\n lg: {\n root: {\n padding: \"600\",\n },\n },\n },\n\n borderStyle: {\n none: {},\n outlined: {\n root: {\n border: \"solid-25\",\n borderColor: \"colorPalette.3\",\n },\n },\n },\n elevation: {\n none: {},\n elevated: {\n root: {\n shadow: \"1\",\n },\n },\n },\n backgroundStyle: {\n default: {\n root: {\n backgroundColor: \"colorPalette.contrast\",\n },\n },\n muted: {\n root: {\n backgroundColor: \"colorPalette.2\",\n },\n },\n },\n },\n});\n","import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createSlotRecipeContext,\n} from \"@chakra-ui/react\";\n\nimport { cardRecipe } from \"./card.recipe\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the div element.\n */\ninterface CardRecipeProps extends RecipeProps<\"div\">, UnstyledProp {}\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\nexport interface CardRootProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\nexport interface CardHeaderProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\nexport interface CardContentProps\n extends HTMLChakraProps<\"div\", CardRecipeProps> {}\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n recipe: cardRecipe,\n});\n\n/**\n * Root component that provides the styling context for the Card component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const CardRoot = withProvider<HTMLDivElement, CardRootProps>(\n \"div\",\n \"root\"\n);\n\nexport const CardHeader = withContext<HTMLDivElement, CardHeaderProps>(\n \"div\",\n \"header\"\n);\nexport const CardContent = withContext<HTMLDivElement, CardContentProps>(\n \"div\",\n \"content\"\n);\n","import { createContext, useMemo, useState, type ReactNode } from \"react\";\nimport { CardRoot as CardRootSlot } from \"../card.slots\";\nimport type { CardProps } from \"../card.types\";\nimport { Stack } from \"../../stack\";\nimport { mergeProps, useFocusRing } from \"react-aria\";\n\ntype CardContextValue = {\n setHeader: (header: React.ReactNode) => void;\n setContent: (content: React.ReactNode) => void;\n};\n\nexport const CardContext = createContext<CardContextValue | undefined>(\n undefined\n);\n\nexport const CardRoot = ({ children, ref, ...props }: CardProps) => {\n const { isFocused, isFocusVisible, focusProps } = useFocusRing();\n const [headerNode, setHeader] = useState<ReactNode>(null);\n const [contentNode, setContent] = useState<ReactNode>(null);\n\n // Memoize the context value so we don't cause unnecessary re-renders\n const contextValue = useMemo(\n () => ({\n setHeader,\n setContent,\n }),\n [setHeader, setContent]\n );\n\n return (\n <CardContext.Provider value={contextValue}>\n <CardRootSlot\n ref={ref}\n {...mergeProps(props, focusProps)}\n data-focus={isFocused || undefined}\n data-focus-visible={isFocusVisible || undefined}\n tabIndex={0}\n >\n {/* Always render them in this order/layout to protect consumers */}\n <Stack direction=\"column\" gap=\"200\">\n {headerNode}\n {contentNode}\n </Stack>\n\n {/* Render all consumer sub-components, including our own */}\n {children}\n </CardRootSlot>\n </CardContext.Provider>\n );\n};\n\nCardRoot.displayName = \"Card.Root\";\n","import { useContext, useEffect } from \"react\";\nimport {\n CardHeader as CardHeaderSlot,\n type CardHeaderProps,\n} from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\n\nexport const CardHeader = ({ children, ...props }: CardHeaderProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardHeaderSlot {...props}>{children}</CardHeaderSlot>\n );\n // Register it with the parent\n context.setHeader(slotElement);\n\n // On unmount, remove it\n return () => context.setHeader(null);\n }\n }, [children, props]);\n\n return null;\n};\nCardHeader.displayName = \"Card.Header\";\n","import { useContext, useEffect } from \"react\";\nimport {\n CardContent as CardContentSlot,\n type CardContentProps,\n} from \"../card.slots\";\nimport { CardContext } from \"./card.root\";\n\nexport const CardContent = ({ children, ...props }: CardContentProps) => {\n const context = useContext(CardContext);\n\n useEffect(() => {\n if (context) {\n const slotElement = (\n <CardContentSlot {...props}>{children}</CardContentSlot>\n );\n // Register it with the parent\n context.setContent(slotElement);\n\n // On unmount, remove it\n return () => context.setContent(null);\n }\n }, [children, props]);\n\n return null;\n};\n\nCardContent.displayName = \"Card.Content\";\n","import { CardRoot } from \"./components/card.root\";\nimport { CardHeader } from \"./components/card.header\";\nimport { CardContent } from \"./components/card.content\";\n\nexport const Card = {\n Root: CardRoot,\n Header: CardHeader,\n Content: CardContent,\n};\n\nexport {\n CardRoot as _CardRoot,\n CardHeader as _CardHeader,\n CardContent as _CardContent,\n};\n"],"names":["cardRecipe","defineSlotRecipe","withProvider","withContext","createSlotRecipeContext","CardRoot","CardHeader","CardContent","CardContext","createContext","children","ref","props","isFocused","isFocusVisible","focusProps","useFocusRing","headerNode","setHeader","useState","contentNode","setContent","contextValue","useMemo","jsx","jsxs","CardRootSlot","mergeProps","Stack","context","useContext","useEffect","slotElement","CardHeaderSlot","CardContentSlot","Card"],"mappings":"8NAMaA,EAAaC,EAAAA,iBAAiB,CACzC,MAAO,CAAC,OAAQ,SAAU,SAAS,EAEnC,UAAW,cAEX,KAAM,CACJ,KAAM,CACJ,aAAc,QACd,QAAS,cACT,WAAY,aACZ,aAAc,MACd,iBAAkB,SAAA,CACpB,EAGF,SAAU,CACR,YAAa,CACX,GAAI,CACF,KAAM,CACJ,QAAS,KAAA,CACX,EAEF,GAAI,CACF,KAAM,CACJ,QAAS,KAAA,CACX,EAEF,GAAI,CACF,KAAM,CACJ,QAAS,KAAA,CACX,CACF,EAGF,YAAa,CACX,KAAM,CAAA,EACN,SAAU,CACR,KAAM,CACJ,OAAQ,WACR,YAAa,gBAAA,CACf,CACF,EAEF,UAAW,CACT,KAAM,CAAA,EACN,SAAU,CACR,KAAM,CACJ,OAAQ,GAAA,CACV,CACF,EAEF,gBAAiB,CACf,QAAS,CACP,KAAM,CACJ,gBAAiB,uBAAA,CACnB,EAEF,MAAO,CACL,KAAM,CACJ,gBAAiB,gBAAA,CACnB,CACF,CACF,CAEJ,CAAC,ECzCK,CAAE,aAAAC,EAAc,YAAAC,CAAA,EAAgBC,0BAAwB,CAC5D,OAAQJ,CACV,CAAC,EAMYK,EAAWH,EACtB,MACA,MACF,EAEaI,EAAaH,EACxB,MACA,QACF,EACaI,EAAcJ,EACzB,MACA,SACF,ECtCaK,EAAcC,EAAAA,cACzB,MACF,EAEaJ,EAAW,CAAC,CAAE,SAAAK,EAAU,IAAAC,EAAK,GAAGC,KAAuB,CAClE,KAAM,CAAE,UAAAC,EAAW,eAAAC,EAAgB,WAAAC,CAAA,EAAeC,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