@televet/kibble-ui 4.0.0-beta.53 → 4.0.0-beta.55

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 (421) hide show
  1. package/dist/chunks/alert.component-Bc5Q2Zh3.js +2 -0
  2. package/dist/chunks/{alert.component-CjjsneE_.js.map → alert.component-Bc5Q2Zh3.js.map} +1 -1
  3. package/dist/chunks/{alert.component-g3HPaEm9.js → alert.component-DqAkJHln.js} +41 -40
  4. package/dist/chunks/{alert.component-g3HPaEm9.js.map → alert.component-DqAkJHln.js.map} +1 -1
  5. package/dist/chunks/{avatar.component-C0lDpuBh.js → avatar.component-Bey9eGEz.js} +2 -2
  6. package/dist/chunks/{avatar.component-C0lDpuBh.js.map → avatar.component-Bey9eGEz.js.map} +1 -1
  7. package/dist/chunks/{avatar.component-oOJ66hzm.js → avatar.component-DOnkegH0.js} +12 -12
  8. package/dist/chunks/{avatar.component-oOJ66hzm.js.map → avatar.component-DOnkegH0.js.map} +1 -1
  9. package/dist/chunks/{avatarGroup.component-Cr2dLGn7.js → avatarGroup.component-3E9DTZtZ.js} +2 -2
  10. package/dist/chunks/{avatarGroup.component-Cr2dLGn7.js.map → avatarGroup.component-3E9DTZtZ.js.map} +1 -1
  11. package/dist/chunks/{avatarGroup.component-BOzKnzZu.js → avatarGroup.component-Dbn1XdYP.js} +2 -2
  12. package/dist/chunks/{avatarGroup.component-BOzKnzZu.js.map → avatarGroup.component-Dbn1XdYP.js.map} +1 -1
  13. package/dist/chunks/box-Baq7UBls.js +2 -0
  14. package/dist/chunks/{box-ca2FvcWF.js.map → box-Baq7UBls.js.map} +1 -1
  15. package/dist/chunks/box-Ck9I7FYv.js +7 -0
  16. package/dist/chunks/{box-y05hq0PT.js.map → box-Ck9I7FYv.js.map} +1 -1
  17. package/dist/chunks/{button.component-BWlRjD5a.js → button.component-BpF3MzbZ.js} +3 -3
  18. package/dist/chunks/{button.component-BWlRjD5a.js.map → button.component-BpF3MzbZ.js.map} +1 -1
  19. package/dist/chunks/{button.component-ytAmAAJg.js → button.component-Dd9AfGox.js} +2 -2
  20. package/dist/chunks/{button.component-ytAmAAJg.js.map → button.component-Dd9AfGox.js.map} +1 -1
  21. package/dist/chunks/{buttonGroup.component-D6hiZw3h.js → buttonGroup.component-C2W4MMv4.js} +6 -6
  22. package/dist/chunks/{buttonGroup.component-D6hiZw3h.js.map → buttonGroup.component-C2W4MMv4.js.map} +1 -1
  23. package/dist/chunks/{buttonGroup.component-DfFsqukz.js → buttonGroup.component-CnEizBsv.js} +2 -2
  24. package/dist/chunks/{buttonGroup.component-DfFsqukz.js.map → buttonGroup.component-CnEizBsv.js.map} +1 -1
  25. package/dist/chunks/{card.component-6TV04UQT.js → card.component-DNX41NGG.js} +2 -2
  26. package/dist/chunks/{card.component-6TV04UQT.js.map → card.component-DNX41NGG.js.map} +1 -1
  27. package/dist/chunks/{card.component-nehAyK91.js → card.component-KNc4HKSh.js} +2 -2
  28. package/dist/chunks/{card.component-nehAyK91.js.map → card.component-KNc4HKSh.js.map} +1 -1
  29. package/dist/chunks/{characterCounter.component-BFw6saPi.js → characterCounter.component-BvInq6l9.js} +5 -5
  30. package/dist/chunks/{characterCounter.component-BFw6saPi.js.map → characterCounter.component-BvInq6l9.js.map} +1 -1
  31. package/dist/chunks/{characterCounter.component-L802Ir9b.js → characterCounter.component-C0vesYZZ.js} +2 -2
  32. package/dist/chunks/{characterCounter.component-L802Ir9b.js.map → characterCounter.component-C0vesYZZ.js.map} +1 -1
  33. package/dist/chunks/{checkbox.component-n9iftNxn.js → checkbox.component-DYA78sZl.js} +2 -2
  34. package/dist/chunks/{checkbox.component-n9iftNxn.js.map → checkbox.component-DYA78sZl.js.map} +1 -1
  35. package/dist/chunks/{checkbox.component-D08XXKS7.js → checkbox.component-DdLHk4d4.js} +8 -8
  36. package/dist/chunks/{checkbox.component-D08XXKS7.js.map → checkbox.component-DdLHk4d4.js.map} +1 -1
  37. package/dist/chunks/{checkbox.records-CYYbBUNp.js → checkbox.records-D1LMhkz8.js} +2 -2
  38. package/dist/chunks/{checkbox.records-CYYbBUNp.js.map → checkbox.records-D1LMhkz8.js.map} +1 -1
  39. package/dist/chunks/{checkbox.records-7WQ70CZr.js → checkbox.records-OHIzM4GW.js} +2 -2
  40. package/dist/chunks/{checkbox.records-7WQ70CZr.js.map → checkbox.records-OHIzM4GW.js.map} +1 -1
  41. package/dist/chunks/{checkboxGroup.component-BNmruJSQ.js → checkboxGroup.component-2PigUztT.js} +2 -2
  42. package/dist/chunks/{checkboxGroup.component-BNmruJSQ.js.map → checkboxGroup.component-2PigUztT.js.map} +1 -1
  43. package/dist/chunks/{checkboxGroup.component-BG4HiBZ6.js → checkboxGroup.component-LBd8mPN-.js} +4 -4
  44. package/dist/chunks/{checkboxGroup.component-BG4HiBZ6.js.map → checkboxGroup.component-LBd8mPN-.js.map} +1 -1
  45. package/dist/chunks/{config-SdQux5od.js → config-BFcXpdZo.js} +2 -2
  46. package/dist/chunks/{config-SdQux5od.js.map → config-BFcXpdZo.js.map} +1 -1
  47. package/dist/chunks/{config-C4FE-eBu.js → config-DlTdf-Yt.js} +2 -2
  48. package/dist/chunks/{config-C4FE-eBu.js.map → config-DlTdf-Yt.js.map} +1 -1
  49. package/dist/chunks/{conversationCard.component-D1Vy47Vk.js → conversationCard.component-BCq_VUZs.js} +17 -17
  50. package/dist/chunks/{conversationCard.component-D1Vy47Vk.js.map → conversationCard.component-BCq_VUZs.js.map} +1 -1
  51. package/dist/chunks/{conversationCard.component-Df4ix8on.js → conversationCard.component-DWgn822x.js} +2 -2
  52. package/dist/chunks/{conversationCard.component-Df4ix8on.js.map → conversationCard.component-DWgn822x.js.map} +1 -1
  53. package/dist/chunks/{create-recipe-context-BcvaE0iS.js → create-recipe-context-D7FewUR4.js} +14 -13
  54. package/dist/chunks/{create-recipe-context-BcvaE0iS.js.map → create-recipe-context-D7FewUR4.js.map} +1 -1
  55. package/dist/chunks/create-recipe-context-sESms8Eo.js +2 -0
  56. package/dist/chunks/{create-recipe-context-DdRyhQQD.js.map → create-recipe-context-sESms8Eo.js.map} +1 -1
  57. package/dist/chunks/{create-slot-recipe-context-DJkLYvCT.js → create-slot-recipe-context-BJmsuxih.js} +7 -6
  58. package/dist/chunks/{create-slot-recipe-context-DJkLYvCT.js.map → create-slot-recipe-context-BJmsuxih.js.map} +1 -1
  59. package/dist/chunks/create-slot-recipe-context-IwVIgtBt.js +2 -0
  60. package/dist/chunks/{create-slot-recipe-context-D-pJ8fgs.js.map → create-slot-recipe-context-IwVIgtBt.js.map} +1 -1
  61. package/dist/chunks/{datePicker.component-5O0KYOVp.js → datePicker.component-CERTTfTK.js} +2 -2
  62. package/dist/chunks/{datePicker.component-5O0KYOVp.js.map → datePicker.component-CERTTfTK.js.map} +1 -1
  63. package/dist/chunks/{datePicker.component-B46GCyva.js → datePicker.component-Ccd4mU-j.js} +13 -13
  64. package/dist/chunks/{datePicker.component-B46GCyva.js.map → datePicker.component-Ccd4mU-j.js.map} +1 -1
  65. package/dist/chunks/dialog-trigger-B5NK0lr-.js +2 -0
  66. package/dist/chunks/dialog-trigger-B5NK0lr-.js.map +1 -0
  67. package/dist/chunks/dialog-trigger-zqGa_wOO.js +78 -0
  68. package/dist/chunks/dialog-trigger-zqGa_wOO.js.map +1 -0
  69. package/dist/chunks/{divider.types-BHqfjZmx.js → divider.types-0j5qRXed.js} +12 -12
  70. package/dist/chunks/{divider.types-BHqfjZmx.js.map → divider.types-0j5qRXed.js.map} +1 -1
  71. package/dist/chunks/{divider.types-luokl8-p.js → divider.types-CK5oFy-i.js} +2 -2
  72. package/dist/chunks/{divider.types-luokl8-p.js.map → divider.types-CK5oFy-i.js.map} +1 -1
  73. package/dist/chunks/{factory-gZxMesut.js → factory-Ctbv0Ozn.js} +200 -240
  74. package/dist/chunks/factory-Ctbv0Ozn.js.map +1 -0
  75. package/dist/chunks/factory-D6tdBUPG.js +3 -0
  76. package/dist/chunks/factory-D6tdBUPG.js.map +1 -0
  77. package/dist/chunks/{flex-DKWxn8hO.js → flex-D14H6HbP.js} +2 -2
  78. package/dist/chunks/{flex-DKWxn8hO.js.map → flex-D14H6HbP.js.map} +1 -1
  79. package/dist/chunks/{flex-C2d2LH-K.js → flex-smlF8uQG.js} +2 -2
  80. package/dist/chunks/{flex-C2d2LH-K.js.map → flex-smlF8uQG.js.map} +1 -1
  81. package/dist/chunks/{float-BHAFWRjM.js → float-DYLtz2A6.js} +3 -3
  82. package/dist/chunks/{float-BHAFWRjM.js.map → float-DYLtz2A6.js.map} +1 -1
  83. package/dist/chunks/{float-0e5piZno.js → float-OQXnYWBw.js} +2 -2
  84. package/dist/chunks/{float-0e5piZno.js.map → float-OQXnYWBw.js.map} +1 -1
  85. package/dist/chunks/{grid-item-B2mOwD2y.js → grid-item-BV4dwEBP.js} +11 -11
  86. package/dist/chunks/{grid-item-B2mOwD2y.js.map → grid-item-BV4dwEBP.js.map} +1 -1
  87. package/dist/chunks/{grid-item-MqIW494P.js → grid-item-CR-sXrjU.js} +2 -2
  88. package/dist/chunks/{grid-item-MqIW494P.js.map → grid-item-CR-sXrjU.js.map} +1 -1
  89. package/dist/chunks/{group-aY0Z9jNw.js → group-Cv7AQw1b.js} +2 -2
  90. package/dist/chunks/{group-aY0Z9jNw.js.map → group-Cv7AQw1b.js.map} +1 -1
  91. package/dist/chunks/{group-CjQBwfVM.js → group-DPCVolOl.js} +2 -2
  92. package/dist/chunks/{group-CjQBwfVM.js.map → group-DPCVolOl.js.map} +1 -1
  93. package/dist/chunks/{h-stack-DxezNoY3.js → h-stack-Bjx9hlJo.js} +2 -2
  94. package/dist/chunks/{h-stack-DxezNoY3.js.map → h-stack-Bjx9hlJo.js.map} +1 -1
  95. package/dist/chunks/{h-stack-iIc7vTB3.js → h-stack-Ce6JSBK2.js} +2 -2
  96. package/dist/chunks/{h-stack-iIc7vTB3.js.map → h-stack-Ce6JSBK2.js.map} +1 -1
  97. package/dist/chunks/{heading.component-CgsSnBVo.js → heading.component-CLeOcO2N.js} +2 -2
  98. package/dist/chunks/{heading.component-CgsSnBVo.js.map → heading.component-CLeOcO2N.js.map} +1 -1
  99. package/dist/chunks/{heading.component-CVm2LGDL.js → heading.component-CiQwnul1.js} +3 -3
  100. package/dist/chunks/{heading.component-CVm2LGDL.js.map → heading.component-CiQwnul1.js.map} +1 -1
  101. package/dist/chunks/{icon-button-g512TBA9.js → icon-button-DTZOklQ9.js} +8 -8
  102. package/dist/chunks/{icon-button-g512TBA9.js.map → icon-button-DTZOklQ9.js.map} +1 -1
  103. package/dist/chunks/{icon-button-B8so0CZl.js → icon-button-DtjZ-SdQ.js} +2 -2
  104. package/dist/chunks/{icon-button-B8so0CZl.js.map → icon-button-DtjZ-SdQ.js.map} +1 -1
  105. package/dist/chunks/{icon.component-4aaCABoX.js → icon.component-C0e0UGBw.js} +2 -2
  106. package/dist/chunks/{icon.component-4aaCABoX.js.map → icon.component-C0e0UGBw.js.map} +1 -1
  107. package/dist/chunks/{icon.component-BmcWaysM.js → icon.component-DGNCL1Yc.js} +2 -2
  108. package/dist/chunks/{icon.component-BmcWaysM.js.map → icon.component-DGNCL1Yc.js.map} +1 -1
  109. package/dist/chunks/{icons-grAfs3Oz.js → icons-BXxdrBrf.js} +2 -2
  110. package/dist/chunks/{icons-grAfs3Oz.js.map → icons-BXxdrBrf.js.map} +1 -1
  111. package/dist/chunks/{icons-BVYVhH49.js → icons-CTpAjbC-.js} +2 -2
  112. package/dist/chunks/{icons-BVYVhH49.js.map → icons-CTpAjbC-.js.map} +1 -1
  113. package/dist/chunks/{index-DMVlKSP7.js → index-BknUKotT.js} +2 -2
  114. package/dist/chunks/{index-DMVlKSP7.js.map → index-BknUKotT.js.map} +1 -1
  115. package/dist/chunks/{index-BE2MBRYo.js → index-DiQj_gRL.js} +2 -2
  116. package/dist/chunks/{index-BE2MBRYo.js.map → index-DiQj_gRL.js.map} +1 -1
  117. package/dist/chunks/{index-DKKJDbpe.js → index-iDSTnIkn.js} +2 -2
  118. package/dist/chunks/{index-DKKJDbpe.js.map → index-iDSTnIkn.js.map} +1 -1
  119. package/dist/chunks/{index-lIficens.js → index-iyefwwxw.js} +2 -2
  120. package/dist/chunks/{index-lIficens.js.map → index-iyefwwxw.js.map} +1 -1
  121. package/dist/chunks/{link.component-CRVhyVdO.js → link.component-AOLL1fZ9.js} +2 -2
  122. package/dist/chunks/{link.component-CRVhyVdO.js.map → link.component-AOLL1fZ9.js.map} +1 -1
  123. package/dist/chunks/{link.component-B8MuH7tM.js → link.component-DYI2y_wL.js} +5 -5
  124. package/dist/chunks/{link.component-B8MuH7tM.js.map → link.component-DYI2y_wL.js.map} +1 -1
  125. package/dist/chunks/{list-AqGKvtMl.js → list-C_LmDoyW.js} +2 -2
  126. package/dist/chunks/{list-AqGKvtMl.js.map → list-C_LmDoyW.js.map} +1 -1
  127. package/dist/chunks/{list-0-1dh2ih.js → list-DqH5ttQG.js} +2 -2
  128. package/dist/chunks/{list-0-1dh2ih.js.map → list-DqH5ttQG.js.map} +1 -1
  129. package/dist/chunks/{logo.types-B_zly1v-.js → logo.types-By8TqyNf.js} +4 -4
  130. package/dist/chunks/{logo.types-B_zly1v-.js.map → logo.types-By8TqyNf.js.map} +1 -1
  131. package/dist/chunks/{logo.types-Ddn7cI2i.js → logo.types-CA_5hGAi.js} +2 -2
  132. package/dist/chunks/{logo.types-Ddn7cI2i.js.map → logo.types-CA_5hGAi.js.map} +1 -1
  133. package/dist/chunks/{menu.component-Dmj51ect.js → menu.component-4wPFXexb.js} +2 -2
  134. package/dist/chunks/{menu.component-Dmj51ect.js.map → menu.component-4wPFXexb.js.map} +1 -1
  135. package/dist/chunks/{menu.component-BKyUQEqg.js → menu.component-ElWVN9lO.js} +12 -12
  136. package/dist/chunks/{menu.component-BKyUQEqg.js.map → menu.component-ElWVN9lO.js.map} +1 -1
  137. package/dist/chunks/modal.types-BZCHlFMn.js +2 -0
  138. package/dist/chunks/{modal.types-DJwWi7cT.js.map → modal.types-BZCHlFMn.js.map} +1 -1
  139. package/dist/chunks/{modal.types-3KGURq43.js → modal.types-Bcv2N1UR.js} +19 -18
  140. package/dist/chunks/{modal.types-3KGURq43.js.map → modal.types-Bcv2N1UR.js.map} +1 -1
  141. package/dist/chunks/{notificationCounter.component-CG5067PO.js → notificationCounter.component-Bei8mHSZ.js} +5 -5
  142. package/dist/chunks/{notificationCounter.component-CG5067PO.js.map → notificationCounter.component-Bei8mHSZ.js.map} +1 -1
  143. package/dist/chunks/{notificationCounter.component-Bm528kQ-.js → notificationCounter.component-BhZcuBmr.js} +2 -2
  144. package/dist/chunks/{notificationCounter.component-Bm528kQ-.js.map → notificationCounter.component-BhZcuBmr.js.map} +1 -1
  145. package/dist/chunks/{picture.component-C9l8Zjob.js → picture.component-C2C2r_BU.js} +2 -2
  146. package/dist/chunks/{picture.component-C9l8Zjob.js.map → picture.component-C2C2r_BU.js.map} +1 -1
  147. package/dist/chunks/{picture.component-a4DWuwBK.js → picture.component-DKbaaL64.js} +4 -4
  148. package/dist/chunks/{picture.component-a4DWuwBK.js.map → picture.component-DKbaaL64.js.map} +1 -1
  149. package/dist/chunks/{pinInput.types-DGq4AUsB.js → pinInput.types-Ctkn-Puw.js} +2 -2
  150. package/dist/chunks/{pinInput.types-DGq4AUsB.js.map → pinInput.types-Ctkn-Puw.js.map} +1 -1
  151. package/dist/chunks/{pinInput.types-Dz0csZHn.js → pinInput.types-jBzp2igG.js} +3 -3
  152. package/dist/chunks/{pinInput.types-Dz0csZHn.js.map → pinInput.types-jBzp2igG.js.map} +1 -1
  153. package/dist/chunks/{popover-DPQD-D5F.js → popover-80QH8HEJ.js} +2 -2
  154. package/dist/chunks/{popover-DPQD-D5F.js.map → popover-80QH8HEJ.js.map} +1 -1
  155. package/dist/chunks/{popover-BBhgGw0a.js → popover-CBG09o62.js} +2 -2
  156. package/dist/chunks/{popover-BBhgGw0a.js.map → popover-CBG09o62.js.map} +1 -1
  157. package/dist/chunks/{popover.component-DU-JJabq.js → popover.component-Dwj3ddYg.js} +2 -2
  158. package/dist/chunks/{popover.component-DU-JJabq.js.map → popover.component-Dwj3ddYg.js.map} +1 -1
  159. package/dist/chunks/{popover.component-D-UQ63DB.js → popover.component-VBqJX08o.js} +11 -11
  160. package/dist/chunks/{popover.component-D-UQ63DB.js.map → popover.component-VBqJX08o.js.map} +1 -1
  161. package/dist/chunks/{popover.recipe-BVdiJdJk.js → popover.recipe-ByAaERef.js} +2 -2
  162. package/dist/chunks/{popover.recipe-BVdiJdJk.js.map → popover.recipe-ByAaERef.js.map} +1 -1
  163. package/dist/chunks/{popover.recipe-De-l73ge.js → popover.recipe-CMQQRMnL.js} +2 -2
  164. package/dist/chunks/{popover.recipe-De-l73ge.js.map → popover.recipe-CMQQRMnL.js.map} +1 -1
  165. package/dist/chunks/provider-ClCAdPxy.js +47 -0
  166. package/dist/chunks/provider-ClCAdPxy.js.map +1 -0
  167. package/dist/chunks/provider-NDo8kOkE.js +2 -0
  168. package/dist/chunks/provider-NDo8kOkE.js.map +1 -0
  169. package/dist/chunks/{radio.records-CnQniSEw.js → radio.records-BdsYTodR.js} +2 -2
  170. package/dist/chunks/{radio.records-CnQniSEw.js.map → radio.records-BdsYTodR.js.map} +1 -1
  171. package/dist/chunks/{radio.records-EtuVQX6z.js → radio.records-womB95yd.js} +2 -2
  172. package/dist/chunks/{radio.records-EtuVQX6z.js.map → radio.records-womB95yd.js.map} +1 -1
  173. package/dist/chunks/{radioGroup.component-C5jL69Gv.js → radioGroup.component-C4oaXqHB.js} +2 -2
  174. package/dist/chunks/{radioGroup.component-C5jL69Gv.js.map → radioGroup.component-C4oaXqHB.js.map} +1 -1
  175. package/dist/chunks/{radioGroup.component-6BSsgoWn.js → radioGroup.component-IZh0kIjr.js} +10 -10
  176. package/dist/chunks/{radioGroup.component-6BSsgoWn.js.map → radioGroup.component-IZh0kIjr.js.map} +1 -1
  177. package/dist/chunks/{ratingDots.component-BV7FvAtk.js → ratingDots.component-DjKouMW1.js} +2 -2
  178. package/dist/chunks/{ratingDots.component-BV7FvAtk.js.map → ratingDots.component-DjKouMW1.js.map} +1 -1
  179. package/dist/chunks/{ratingDots.component-bRNtQP9O.js → ratingDots.component-r9gH0dKx.js} +7 -7
  180. package/dist/chunks/{ratingDots.component-bRNtQP9O.js.map → ratingDots.component-r9gH0dKx.js.map} +1 -1
  181. package/dist/chunks/{select.component-BA3X-v2U.js → select.component-BrjOFscy.js} +12 -12
  182. package/dist/chunks/{select.component-BA3X-v2U.js.map → select.component-BrjOFscy.js.map} +1 -1
  183. package/dist/chunks/{select.component-BsxkV8Vw.js → select.component-R601dNhQ.js} +2 -2
  184. package/dist/chunks/{select.component-BsxkV8Vw.js.map → select.component-R601dNhQ.js.map} +1 -1
  185. package/dist/chunks/{sortableList.component-BEc4_tAM.js → sortableList.component-CJHX5n0e.js} +5 -5
  186. package/dist/chunks/{sortableList.component-BEc4_tAM.js.map → sortableList.component-CJHX5n0e.js.map} +1 -1
  187. package/dist/chunks/{sortableList.component-Engs9U32.js → sortableList.component-sQ3GVQbq.js} +2 -2
  188. package/dist/chunks/{sortableList.component-Engs9U32.js.map → sortableList.component-sQ3GVQbq.js.map} +1 -1
  189. package/dist/chunks/spinner-BWqSIW6m.js +8 -0
  190. package/dist/chunks/{spinner-CQnM6sI5.js.map → spinner-BWqSIW6m.js.map} +1 -1
  191. package/dist/chunks/spinner-BnpL14kK.js +2 -0
  192. package/dist/chunks/{spinner-No4bac8-.js.map → spinner-BnpL14kK.js.map} +1 -1
  193. package/dist/chunks/{spinner.component-DNrNcGw9.js → spinner.component-DDmJQo-4.js} +6 -6
  194. package/dist/chunks/{spinner.component-DNrNcGw9.js.map → spinner.component-DDmJQo-4.js.map} +1 -1
  195. package/dist/chunks/{spinner.component-BuNeiOw3.js → spinner.component-Dxi4tX3s.js} +2 -2
  196. package/dist/chunks/{spinner.component-BuNeiOw3.js.map → spinner.component-Dxi4tX3s.js.map} +1 -1
  197. package/dist/chunks/{stack-CtSNpuJq.js → stack-BKu3hWEQ.js} +2 -2
  198. package/dist/chunks/{stack-CtSNpuJq.js.map → stack-BKu3hWEQ.js.map} +1 -1
  199. package/dist/chunks/{stack-B6Qs7bq9.js → stack-Dnuh5Zgf.js} +6 -6
  200. package/dist/chunks/{stack-B6Qs7bq9.js.map → stack-Dnuh5Zgf.js.map} +1 -1
  201. package/dist/chunks/{styledAvatar.types-BT8cujaA.js → styledAvatar.types-BCZZbY0b.js} +2 -2
  202. package/dist/chunks/{styledAvatar.types-BT8cujaA.js.map → styledAvatar.types-BCZZbY0b.js.map} +1 -1
  203. package/dist/chunks/{styledAvatar.types-DgeupAct.js → styledAvatar.types-CHV5SPNV.js} +2 -2
  204. package/dist/chunks/{styledAvatar.types-DgeupAct.js.map → styledAvatar.types-CHV5SPNV.js.map} +1 -1
  205. package/dist/chunks/{swatch.types-DUBu3p9m.js → swatch.types-DbgA3RWc.js} +4 -4
  206. package/dist/chunks/{swatch.types-DUBu3p9m.js.map → swatch.types-DbgA3RWc.js.map} +1 -1
  207. package/dist/chunks/{swatch.types-CeCazVD3.js → swatch.types-DiX-4lpJ.js} +2 -2
  208. package/dist/chunks/{swatch.types-CeCazVD3.js.map → swatch.types-DiX-4lpJ.js.map} +1 -1
  209. package/dist/chunks/{switch.component-Cn4tMUnr.js → switch.component-BSnXfzgM.js} +2 -2
  210. package/dist/chunks/{switch.component-Cn4tMUnr.js.map → switch.component-BSnXfzgM.js.map} +1 -1
  211. package/dist/chunks/{switch.component-c8nXep47.js → switch.component-BrN-Q326.js} +5 -5
  212. package/dist/chunks/{switch.component-c8nXep47.js.map → switch.component-BrN-Q326.js.map} +1 -1
  213. package/dist/chunks/{tabs.component-BuknlGMy.js → tabs.component-DJVuSIQB.js} +5 -5
  214. package/dist/chunks/{tabs.component-BuknlGMy.js.map → tabs.component-DJVuSIQB.js.map} +1 -1
  215. package/dist/chunks/{tabs.component-Cy7BLGXM.js → tabs.component-DT6yw0gy.js} +2 -2
  216. package/dist/chunks/{tabs.component-Cy7BLGXM.js.map → tabs.component-DT6yw0gy.js.map} +1 -1
  217. package/dist/chunks/{tag.component-C5MszzTM.js → tag.component-C6a6EzZB.js} +2 -2
  218. package/dist/chunks/{tag.component-C5MszzTM.js.map → tag.component-C6a6EzZB.js.map} +1 -1
  219. package/dist/chunks/{tag.component-D_8Wr2wv.js → tag.component-pexJ0TAT.js} +3 -3
  220. package/dist/chunks/{tag.component-D_8Wr2wv.js.map → tag.component-pexJ0TAT.js.map} +1 -1
  221. package/dist/chunks/{tagBlock.component-CGimtUPd.js → tagBlock.component-BeL5LeyB.js} +2 -2
  222. package/dist/chunks/{tagBlock.component-CGimtUPd.js.map → tagBlock.component-BeL5LeyB.js.map} +1 -1
  223. package/dist/chunks/{tagBlock.component-DzjXSEHc.js → tagBlock.component-HNOTrL3-.js} +10 -10
  224. package/dist/chunks/{tagBlock.component-DzjXSEHc.js.map → tagBlock.component-HNOTrL3-.js.map} +1 -1
  225. package/dist/chunks/{text.component-ByshUroO.js → text.component-jWLhtW1b.js} +3 -3
  226. package/dist/chunks/{text.component-ByshUroO.js.map → text.component-jWLhtW1b.js.map} +1 -1
  227. package/dist/chunks/{text.component-Dcx3RoTp.js → text.component-o4fQGr3R.js} +2 -2
  228. package/dist/chunks/{text.component-Dcx3RoTp.js.map → text.component-o4fQGr3R.js.map} +1 -1
  229. package/dist/chunks/{textInput.component-kvKxz33p.js → textInput.component-Bvz0qu0P.js} +9 -9
  230. package/dist/chunks/{textInput.component-kvKxz33p.js.map → textInput.component-Bvz0qu0P.js.map} +1 -1
  231. package/dist/chunks/{textInput.component-z9E8kUsZ.js → textInput.component-dRyfBxwu.js} +2 -2
  232. package/dist/chunks/{textInput.component-z9E8kUsZ.js.map → textInput.component-dRyfBxwu.js.map} +1 -1
  233. package/dist/chunks/{textarea.component-oH0HkBbz.js → textarea.component-6CbblHBa.js} +5 -5
  234. package/dist/chunks/{textarea.component-oH0HkBbz.js.map → textarea.component-6CbblHBa.js.map} +1 -1
  235. package/dist/chunks/{textarea.component-BFDGgi4k.js → textarea.component-Pa-vcE1j.js} +2 -2
  236. package/dist/chunks/{textarea.component-BFDGgi4k.js.map → textarea.component-Pa-vcE1j.js.map} +1 -1
  237. package/dist/chunks/{theme.provider-BrR7a4Qv.js → theme.provider-BOSisg4Q.js} +4 -4
  238. package/dist/chunks/{theme.provider-BrR7a4Qv.js.map → theme.provider-BOSisg4Q.js.map} +1 -1
  239. package/dist/chunks/{theme.provider-_AjaCLru.js → theme.provider-CTwg1nyE.js} +416 -414
  240. package/dist/chunks/{theme.provider-_AjaCLru.js.map → theme.provider-CTwg1nyE.js.map} +1 -1
  241. package/dist/chunks/{timePicker.component-C2XDU_7Q.js → timePicker.component-Ca8g1HyX.js} +2 -2
  242. package/dist/chunks/{timePicker.component-C2XDU_7Q.js.map → timePicker.component-Ca8g1HyX.js.map} +1 -1
  243. package/dist/chunks/{timePicker.component-Bkqufqi7.js → timePicker.component-DNRuAQe-.js} +8 -8
  244. package/dist/chunks/{timePicker.component-Bkqufqi7.js.map → timePicker.component-DNRuAQe-.js.map} +1 -1
  245. package/dist/chunks/{timeRange.component-cT8BwcXk.js → timeRange.component-BghuaAd1.js} +4 -4
  246. package/dist/chunks/{timeRange.component-cT8BwcXk.js.map → timeRange.component-BghuaAd1.js.map} +1 -1
  247. package/dist/chunks/{timeRange.component-Dh4kFTxD.js → timeRange.component-BxrDtPw1.js} +2 -2
  248. package/dist/chunks/{timeRange.component-Dh4kFTxD.js.map → timeRange.component-BxrDtPw1.js.map} +1 -1
  249. package/dist/chunks/{timestamp.component-6Yax0uEP.js → timestamp.component-BAa7hqPS.js} +2 -2
  250. package/dist/chunks/{timestamp.component-6Yax0uEP.js.map → timestamp.component-BAa7hqPS.js.map} +1 -1
  251. package/dist/chunks/{timestamp.component-CA-gdN9e.js → timestamp.component-DGaIagFe.js} +3 -3
  252. package/dist/chunks/{timestamp.component-CA-gdN9e.js.map → timestamp.component-DGaIagFe.js.map} +1 -1
  253. package/dist/chunks/{tooltip.component-B0iqN7WJ.js → tooltip.component-CKJuZ0Rn.js} +2 -2
  254. package/dist/chunks/{tooltip.component-B0iqN7WJ.js.map → tooltip.component-CKJuZ0Rn.js.map} +1 -1
  255. package/dist/chunks/{tooltip.component-C7RpuMiK.js → tooltip.component-eHfK03hC.js} +2 -2
  256. package/dist/chunks/{tooltip.component-C7RpuMiK.js.map → tooltip.component-eHfK03hC.js.map} +1 -1
  257. package/dist/chunks/use-breakpoint-MQ7agQJe.js +72 -0
  258. package/dist/chunks/use-breakpoint-MQ7agQJe.js.map +1 -0
  259. package/dist/chunks/use-breakpoint-uBg4-8yY.js +2 -0
  260. package/dist/chunks/use-breakpoint-uBg4-8yY.js.map +1 -0
  261. package/dist/chunks/use-recipe-DaPWl_pL.js +2 -0
  262. package/dist/chunks/{use-recipe-N0abcau6.js.map → use-recipe-DaPWl_pL.js.map} +1 -1
  263. package/dist/chunks/{use-recipe-B7BYguEn.js → use-recipe-d63ABaZ3.js} +2 -2
  264. package/dist/chunks/{use-recipe-B7BYguEn.js.map → use-recipe-d63ABaZ3.js.map} +1 -1
  265. package/dist/chunks/use-slot-recipe-8liupslO.js +2 -0
  266. package/dist/chunks/{use-slot-recipe-CVO1rwGV.js.map → use-slot-recipe-8liupslO.js.map} +1 -1
  267. package/dist/chunks/{use-slot-recipe-BVIotsqX.js → use-slot-recipe-DhtQ1j_5.js} +2 -2
  268. package/dist/chunks/{use-slot-recipe-BVIotsqX.js.map → use-slot-recipe-DhtQ1j_5.js.map} +1 -1
  269. package/dist/chunks/{v-stack-IBysx2n3.js → v-stack-BZT7R_9f.js} +2 -2
  270. package/dist/chunks/{v-stack-IBysx2n3.js.map → v-stack-BZT7R_9f.js.map} +1 -1
  271. package/dist/chunks/{v-stack-Cx_7x3kH.js → v-stack-DxjgpeJ0.js} +2 -2
  272. package/dist/chunks/{v-stack-Cx_7x3kH.js.map → v-stack-DxjgpeJ0.js.map} +1 -1
  273. package/dist/chunks/{walk-object-CzGJH0qy.js → walk-object-BrTExCqQ.js} +2 -2
  274. package/dist/chunks/{walk-object-CzGJH0qy.js.map → walk-object-BrTExCqQ.js.map} +1 -1
  275. package/dist/chunks/{walk-object-DY6qf1jj.js → walk-object-_CL3Bkm9.js} +2 -2
  276. package/dist/chunks/{walk-object-DY6qf1jj.js.map → walk-object-_CL3Bkm9.js.map} +1 -1
  277. package/dist/chunks/{withFormControl-DoOQ6oLs.js → withFormControl-D_7tHPMA.js} +2 -2
  278. package/dist/chunks/{withFormControl-DoOQ6oLs.js.map → withFormControl-D_7tHPMA.js.map} +1 -1
  279. package/dist/chunks/{withFormControl-YhSGmDSm.js → withFormControl-zDta9oR9.js} +7 -7
  280. package/dist/chunks/{withFormControl-YhSGmDSm.js.map → withFormControl-zDta9oR9.js.map} +1 -1
  281. package/dist/chunks/{withTruncation-C3gfaeh3.js → withTruncation-CMx6bVyO.js} +3 -3
  282. package/dist/chunks/{withTruncation-C3gfaeh3.js.map → withTruncation-CMx6bVyO.js.map} +1 -1
  283. package/dist/chunks/{withTruncation-D0DUT56h.js → withTruncation-CgKg5He7.js} +2 -2
  284. package/dist/chunks/{withTruncation-D0DUT56h.js.map → withTruncation-CgKg5He7.js.map} +1 -1
  285. package/dist/chunks/{wrap-DrLrXdlw.js → wrap-B8tBNeBY.js} +3 -3
  286. package/dist/chunks/{wrap-DrLrXdlw.js.map → wrap-B8tBNeBY.js.map} +1 -1
  287. package/dist/chunks/{wrap-Bm3JnXyR.js → wrap-CNn1kyJX.js} +2 -2
  288. package/dist/chunks/{wrap-Bm3JnXyR.js.map → wrap-CNn1kyJX.js.map} +1 -1
  289. package/dist/cjs/chakra/index.cjs +1 -1
  290. package/dist/cjs/chakra/index.cjs.map +1 -1
  291. package/dist/cjs/components/Alert/index.cjs +1 -1
  292. package/dist/cjs/components/Avatar/index.cjs +1 -1
  293. package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
  294. package/dist/cjs/components/Button/index.cjs +1 -1
  295. package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
  296. package/dist/cjs/components/Card/index.cjs +1 -1
  297. package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
  298. package/dist/cjs/components/Checkbox/index.cjs +1 -1
  299. package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
  300. package/dist/cjs/components/ConversationCard/index.cjs +1 -1
  301. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  302. package/dist/cjs/components/Divider/index.cjs +1 -1
  303. package/dist/cjs/components/Heading/index.cjs +1 -1
  304. package/dist/cjs/components/Icon/generated/index.cjs +1 -1
  305. package/dist/cjs/components/Icon/generated/index.cjs.map +1 -1
  306. package/dist/cjs/components/Icon/index.cjs +1 -1
  307. package/dist/cjs/components/Link/index.cjs +1 -1
  308. package/dist/cjs/components/Logo/index.cjs +1 -1
  309. package/dist/cjs/components/Menu/index.cjs +1 -1
  310. package/dist/cjs/components/Modal/index.cjs +1 -1
  311. package/dist/cjs/components/NotificationCounter/index.cjs +1 -1
  312. package/dist/cjs/components/Picture/index.cjs +1 -1
  313. package/dist/cjs/components/PinInput/index.cjs +1 -1
  314. package/dist/cjs/components/Popover/index.cjs +1 -1
  315. package/dist/cjs/components/RadioGroup/index.cjs +1 -1
  316. package/dist/cjs/components/RatingDots/index.cjs +1 -1
  317. package/dist/cjs/components/Select/index.cjs +1 -1
  318. package/dist/cjs/components/SortableList/index.cjs +1 -1
  319. package/dist/cjs/components/Spinner/index.cjs +1 -1
  320. package/dist/cjs/components/StyledAvatar/index.cjs +1 -1
  321. package/dist/cjs/components/Swatch/index.cjs +1 -1
  322. package/dist/cjs/components/Switch/index.cjs +1 -1
  323. package/dist/cjs/components/Tabs/index.cjs +1 -1
  324. package/dist/cjs/components/Tag/index.cjs +1 -1
  325. package/dist/cjs/components/TagBlock/index.cjs +1 -1
  326. package/dist/cjs/components/Text/index.cjs +1 -1
  327. package/dist/cjs/components/TextInput/index.cjs +1 -1
  328. package/dist/cjs/components/Textarea/index.cjs +1 -1
  329. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  330. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  331. package/dist/cjs/components/Timestamp/index.cjs +1 -1
  332. package/dist/cjs/components/Tooltip/index.cjs +1 -1
  333. package/dist/cjs/components/index.cjs +1 -1
  334. package/dist/cjs/hocs/index.cjs +1 -1
  335. package/dist/cjs/hooks/index.cjs +1 -1
  336. package/dist/cjs/hooks/useBreakpoint/index.cjs +2 -0
  337. package/dist/cjs/hooks/useBreakpoint/index.cjs.map +1 -0
  338. package/dist/cjs/hooks/useDeviceType/index.cjs +2 -0
  339. package/dist/cjs/hooks/useDeviceType/index.cjs.map +1 -0
  340. package/dist/cjs/index.cjs +1 -1
  341. package/dist/cjs/theme/index.cjs +1 -1
  342. package/dist/esm/chakra/index.js +129 -128
  343. package/dist/esm/chakra/index.js.map +1 -1
  344. package/dist/esm/components/Alert/index.js +1 -1
  345. package/dist/esm/components/Avatar/index.js +1 -1
  346. package/dist/esm/components/AvatarGroup/index.js +1 -1
  347. package/dist/esm/components/Button/index.js +1 -1
  348. package/dist/esm/components/ButtonGroup/index.js +1 -1
  349. package/dist/esm/components/Card/index.js +1 -1
  350. package/dist/esm/components/CharacterCounter/index.js +1 -1
  351. package/dist/esm/components/Checkbox/index.js +1 -1
  352. package/dist/esm/components/CheckboxGroup/index.js +1 -1
  353. package/dist/esm/components/ConversationCard/index.js +1 -1
  354. package/dist/esm/components/DatePicker/index.js +1 -1
  355. package/dist/esm/components/Divider/index.js +1 -1
  356. package/dist/esm/components/Heading/index.js +1 -1
  357. package/dist/esm/components/Icon/generated/index.js +372 -337
  358. package/dist/esm/components/Icon/generated/index.js.map +1 -1
  359. package/dist/esm/components/Icon/index.js +1 -1
  360. package/dist/esm/components/Link/index.js +1 -1
  361. package/dist/esm/components/Logo/index.js +1 -1
  362. package/dist/esm/components/Menu/index.js +1 -1
  363. package/dist/esm/components/Modal/index.js +1 -1
  364. package/dist/esm/components/NotificationCounter/index.js +1 -1
  365. package/dist/esm/components/Picture/index.js +1 -1
  366. package/dist/esm/components/PinInput/index.js +1 -1
  367. package/dist/esm/components/Popover/index.js +1 -1
  368. package/dist/esm/components/RadioGroup/index.js +1 -1
  369. package/dist/esm/components/RatingDots/index.js +1 -1
  370. package/dist/esm/components/Select/index.js +1 -1
  371. package/dist/esm/components/SortableList/index.js +1 -1
  372. package/dist/esm/components/Spinner/index.js +1 -1
  373. package/dist/esm/components/StyledAvatar/index.js +1 -1
  374. package/dist/esm/components/Swatch/index.js +1 -1
  375. package/dist/esm/components/Switch/index.js +1 -1
  376. package/dist/esm/components/Tabs/index.js +1 -1
  377. package/dist/esm/components/Tag/index.js +1 -1
  378. package/dist/esm/components/TagBlock/index.js +1 -1
  379. package/dist/esm/components/Text/index.js +1 -1
  380. package/dist/esm/components/TextInput/index.js +1 -1
  381. package/dist/esm/components/Textarea/index.js +1 -1
  382. package/dist/esm/components/TimePicker/index.js +1 -1
  383. package/dist/esm/components/TimeRange/index.js +1 -1
  384. package/dist/esm/components/Timestamp/index.js +1 -1
  385. package/dist/esm/components/Tooltip/index.js +1 -1
  386. package/dist/esm/components/index.js +40 -40
  387. package/dist/esm/hocs/index.js +1 -1
  388. package/dist/esm/hooks/index.js +7 -3
  389. package/dist/esm/hooks/index.js.map +1 -1
  390. package/dist/esm/hooks/useBreakpoint/index.js +12 -0
  391. package/dist/esm/hooks/useBreakpoint/index.js.map +1 -0
  392. package/dist/esm/hooks/useDeviceType/index.js +12 -0
  393. package/dist/esm/hooks/useDeviceType/index.js.map +1 -0
  394. package/dist/esm/index.js +91 -87
  395. package/dist/esm/index.js.map +1 -1
  396. package/dist/esm/theme/index.js +1 -1
  397. package/dist/types/chakra/index.d.ts +1 -1
  398. package/dist/types/components/Icon/generated/AiMicrophone.d.ts +10 -0
  399. package/dist/types/components/Icon/generated/index.d.ts +1 -1
  400. package/dist/types/components/SortableList/index.d.ts +1 -0
  401. package/dist/types/hooks/index.d.ts +2 -0
  402. package/dist/types/hooks/useBreakpoint/index.d.ts +1 -0
  403. package/dist/types/hooks/useDeviceType/index.d.ts +3 -0
  404. package/package.json +1 -1
  405. package/dist/chunks/alert.component-CjjsneE_.js +0 -2
  406. package/dist/chunks/box-ca2FvcWF.js +0 -2
  407. package/dist/chunks/box-y05hq0PT.js +0 -7
  408. package/dist/chunks/create-recipe-context-DdRyhQQD.js +0 -2
  409. package/dist/chunks/create-slot-recipe-context-D-pJ8fgs.js +0 -2
  410. package/dist/chunks/dialog-trigger-C86J6PDS.js +0 -2
  411. package/dist/chunks/dialog-trigger-C86J6PDS.js.map +0 -1
  412. package/dist/chunks/dialog-trigger-CKEZLJZ6.js +0 -147
  413. package/dist/chunks/dialog-trigger-CKEZLJZ6.js.map +0 -1
  414. package/dist/chunks/factory-CkTX_WOU.js +0 -3
  415. package/dist/chunks/factory-CkTX_WOU.js.map +0 -1
  416. package/dist/chunks/factory-gZxMesut.js.map +0 -1
  417. package/dist/chunks/modal.types-DJwWi7cT.js +0 -2
  418. package/dist/chunks/spinner-CQnM6sI5.js +0 -8
  419. package/dist/chunks/spinner-No4bac8-.js +0 -2
  420. package/dist/chunks/use-recipe-N0abcau6.js +0 -2
  421. package/dist/chunks/use-slot-recipe-CVO1rwGV.js +0 -2
@@ -0,0 +1,8 @@
1
+ import { c as e } from "./create-recipe-context-D7FewUR4.js";
2
+ const { withContext: t } = e({
3
+ key: "spinner"
4
+ }), o = t("span");
5
+ export {
6
+ o as S
7
+ };
8
+ //# sourceMappingURL=spinner-BWqSIW6m.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"spinner-CQnM6sI5.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/spinner/spinner.js"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"spinner\"\n});\nconst Spinner = withContext(\"span\");\nconst SpinnerPropsProvider = PropsProvider;\n\nexport { Spinner, SpinnerPropsProvider };\n"],"names":["withContext","createRecipeContext","Spinner"],"mappings":";AAIA,MAAM,EAAE,aAAAA,EAA2B,IAAIC,EAAoB;AAAA,EACzD,KAAK;AACP,CAAC,GACKC,IAAUF,EAAY,MAAM;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"spinner-BWqSIW6m.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/spinner/spinner.js"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"spinner\"\n});\nconst Spinner = withContext(\"span\");\nconst SpinnerPropsProvider = PropsProvider;\n\nexport { Spinner, SpinnerPropsProvider };\n"],"names":["withContext","createRecipeContext","Spinner"],"mappings":";AAIA,MAAM,EAAE,aAAAA,EAA2B,IAAIC,EAAoB;AAAA,EACzD,KAAK;AACP,CAAC,GACKC,IAAUF,EAAY,MAAM;","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./create-recipe-context-sESms8Eo.js"),{withContext:t}=e.createRecipeContext({key:"spinner"}),n=t("span");exports.Spinner=n;
2
+ //# sourceMappingURL=spinner-BnpL14kK.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"spinner-No4bac8-.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/spinner/spinner.js"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"spinner\"\n});\nconst Spinner = withContext(\"span\");\nconst SpinnerPropsProvider = PropsProvider;\n\nexport { Spinner, SpinnerPropsProvider };\n"],"names":["withContext","createRecipeContext","Spinner"],"mappings":"oEAIM,CAAE,YAAAA,CAA2B,EAAIC,sBAAoB,CACzD,IAAK,SACP,CAAC,EACKC,EAAUF,EAAY,MAAM","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"spinner-BnpL14kK.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/spinner/spinner.js"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"spinner\"\n});\nconst Spinner = withContext(\"span\");\nconst SpinnerPropsProvider = PropsProvider;\n\nexport { Spinner, SpinnerPropsProvider };\n"],"names":["withContext","createRecipeContext","Spinner"],"mappings":"oEAIM,CAAE,YAAAA,CAA2B,EAAIC,sBAAoB,CACzD,IAAK,SACP,CAAC,EACKC,EAAUF,EAAY,MAAM","x_google_ignoreList":[0]}
@@ -1,10 +1,10 @@
1
1
  import { j as t } from "./jsx-runtime-C5mzlN2N.js";
2
- import { W as c } from "./text.component-ByshUroO.js";
2
+ import { W as c } from "./text.component-jWLhtW1b.js";
3
3
  import { t as n } from "./typography-Cqrokog3.js";
4
- import { a as d } from "./config-C4FE-eBu.js";
5
- import { u as b } from "./use-slot-recipe-BVIotsqX.js";
6
- import { V as m } from "./v-stack-IBysx2n3.js";
7
- import { S as f } from "./spinner-CQnM6sI5.js";
4
+ import { a as d } from "./config-DlTdf-Yt.js";
5
+ import { u as b } from "./use-slot-recipe-DhtQ1j_5.js";
6
+ import { V as m } from "./v-stack-BZT7R_9f.js";
7
+ import { S as f } from "./spinner-BWqSIW6m.js";
8
8
  const S = ["root", "spinner", "label"], u = {
9
9
  xs: {
10
10
  spinner: {
@@ -177,4 +177,4 @@ const S = ["root", "spinner", "label"], u = {
177
177
  export {
178
178
  V as S
179
179
  };
180
- //# sourceMappingURL=spinner.component-DNrNcGw9.js.map
180
+ //# sourceMappingURL=spinner.component-DDmJQo-4.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"spinner.component-DNrNcGw9.js","sources":["../../src/components/Spinner/spinner.recipe.ts","../../src/components/Spinner/spinner.component.tsx"],"sourcesContent":["import {\n defineSlotRecipe,\n SystemStyleObject,\n} from \"@chakra-ui/react/styled-system\";\nimport { SpinnerSize } from \"./spinner.types\";\nimport { TypographyVariant } from \"shared/types\";\nimport { typographyVariantStyles } from \"../../shared/records/typography\";\n\nconst spinnerSlots = [\"root\", \"spinner\", \"label\"] as const;\ntype SpinnerSlot = (typeof spinnerSlots)[number];\ntype SpinnerSlotStyles = {\n [key in SpinnerSlot]?: SystemStyleObject;\n};\n\nconst spinnerSizeStyles: Record<SpinnerSize, SpinnerSlotStyles> = {\n xs: {\n spinner: {\n h: 3,\n w: 3,\n },\n label: {\n fontSize: \"xs\",\n },\n },\n sm: {\n spinner: {\n h: 4,\n w: 4,\n },\n label: {\n fontSize: \"sm\",\n },\n },\n md: {\n spinner: {\n h: 6,\n w: 6,\n \"--spinner-size\": 6,\n },\n label: {\n fontSize: \"md\",\n },\n },\n lg: {\n spinner: {\n h: 8,\n w: 8,\n },\n label: {\n fontSize: \"lg\",\n },\n },\n xl: {\n spinner: {\n h: 12,\n w: 12,\n },\n label: {\n fontSize: \"xl\",\n },\n },\n};\n\nconst spinnerVariantStyles: Record<TypographyVariant, SpinnerSlotStyles> = {\n accent: {\n spinner: typographyVariantStyles.accent,\n },\n accentSubtle: {\n spinner: typographyVariantStyles.accentSubtle,\n },\n brand: {\n spinner: typographyVariantStyles.brand,\n },\n brandOnContrast: {\n spinner: typographyVariantStyles.brandOnContrast,\n },\n danger: {\n spinner: typographyVariantStyles.danger,\n },\n dangerOnContrast: {\n spinner: typographyVariantStyles.dangerOnContrast,\n },\n default: {\n spinner: typographyVariantStyles.default,\n },\n info: {\n spinner: typographyVariantStyles.info,\n },\n interactive: {\n spinner: typographyVariantStyles.interactive,\n },\n interactiveOnContrast: {\n spinner: typographyVariantStyles.interactiveOnContrast,\n },\n onContrast: {\n spinner: typographyVariantStyles.onContrast,\n },\n placeholder: {\n spinner: typographyVariantStyles.placeholder,\n },\n placeholderOnContrast: {\n spinner: typographyVariantStyles.placeholderOnContrast,\n },\n subtle: {\n spinner: typographyVariantStyles.subtle,\n },\n subtleOnContrast: {\n spinner: typographyVariantStyles.subtleOnContrast,\n },\n success: {\n spinner: typographyVariantStyles.success,\n },\n warning: {\n spinner: typographyVariantStyles.warning,\n },\n};\n\nexport const spinnerRecipe = defineSlotRecipe({\n slots: spinnerSlots,\n base: {\n root: {\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n },\n variants: {\n variant: spinnerVariantStyles,\n size: spinnerSizeStyles,\n fullScreen: {\n true: {\n root: {\n h: \"100%\",\n left: 0,\n top: 0,\n position: \"absolute\",\n w: \"100%\",\n zIndex: \"tooltipExtra\",\n },\n },\n false: {\n root: {\n h: \"max-content\",\n w: \"max-content\",\n },\n },\n },\n },\n defaultVariants: {\n fullScreen: false,\n size: \"md\",\n variant: \"brand\",\n },\n});\n","import React from \"react\";\nimport { Spinner as CSpinner } from \"@chakra-ui/react/spinner\";\nimport { VStack } from \"@chakra-ui/react/stack\";\nimport { SpinnerSize } from \"./spinner.types\";\nimport { Text, TextProps } from \"components/Text/text.component\";\nimport { TypographyVariant } from \"shared/types\";\nimport { useSlotRecipe } from \"@chakra-ui/react\";\nimport { spinnerRecipe } from \"./spinner.recipe\";\nimport { SemanticBackgroundColorToken } from \"theme/semanticTokens\";\n\nexport interface SpinnerProps {\n backdropColor?: SemanticBackgroundColorToken;\n fullScreen?: boolean;\n label?: string;\n labelProps?: Omit<TextProps, \"chilren\">;\n showLabel?: boolean;\n size?: SpinnerSize;\n variant?: TypographyVariant;\n}\n\nexport const Spinner = ({\n backdropColor = \"background.alpha.pressed\",\n fullScreen = false,\n label = \"Loading...\",\n labelProps,\n showLabel = false,\n size = \"md\",\n variant = \"accent\",\n}: SpinnerProps): React.JSX.Element => {\n const recipe = useSlotRecipe({ recipe: spinnerRecipe });\n const styles = recipe({ variant, size, fullScreen });\n\n return (\n <VStack\n className=\"Spinner\"\n data-testid=\"kibble-spinner\"\n css={styles.root}\n {...(fullScreen && { bg: backdropColor })}\n >\n <CSpinner css={styles.spinner} />\n {showLabel && (\n <Text\n as=\"p\"\n className=\"Spinner__Label\"\n data-testid=\"kibble-spinner-label\"\n variant=\"subtle\"\n css={styles.label}\n {...labelProps}\n >\n {label}\n </Text>\n )}\n </VStack>\n );\n};\n"],"names":["spinnerSlots","spinnerSizeStyles","spinnerVariantStyles","typographyVariantStyles","spinnerRecipe","defineSlotRecipe","Spinner","backdropColor","fullScreen","label","labelProps","showLabel","size","variant","styles","useSlotRecipe","jsxs","VStack","jsx","CSpinner","Text"],"mappings":";;;;;;;AAQA,MAAMA,IAAe,CAAC,QAAQ,WAAW,OAAO,GAM1CC,IAA4D;AAAA,EAChE,IAAI;AAAA,IACF,SAAS;AAAA,MACP,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,OAAO;AAAA,MACL,UAAU;AAAA,IAAA;AAAA,EAEd;AAAA,EACA,IAAI;AAAA,IACF,SAAS;AAAA,MACP,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,OAAO;AAAA,MACL,UAAU;AAAA,IAAA;AAAA,EAEd;AAAA,EACA,IAAI;AAAA,IACF,SAAS;AAAA,MACP,GAAG;AAAA,MACH,GAAG;AAAA,MACH,kBAAkB;AAAA,IACpB;AAAA,IACA,OAAO;AAAA,MACL,UAAU;AAAA,IAAA;AAAA,EAEd;AAAA,EACA,IAAI;AAAA,IACF,SAAS;AAAA,MACP,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,OAAO;AAAA,MACL,UAAU;AAAA,IAAA;AAAA,EAEd;AAAA,EACA,IAAI;AAAA,IACF,SAAS;AAAA,MACP,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,OAAO;AAAA,MACL,UAAU;AAAA,IAAA;AAAA,EACZ;AAEJ,GAEMC,IAAqE;AAAA,EACzE,QAAQ;AAAA,IACN,SAASC,EAAwB;AAAA,EACnC;AAAA,EACA,cAAc;AAAA,IACZ,SAASA,EAAwB;AAAA,EACnC;AAAA,EACA,OAAO;AAAA,IACL,SAASA,EAAwB;AAAA,EACnC;AAAA,EACA,iBAAiB;AAAA,IACf,SAASA,EAAwB;AAAA,EACnC;AAAA,EACA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A,IACZ,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEb,CAAC,GCpIYK,IAAU,CAAC;AAAA,EACtB,eAAAC,IAAgB;AAAA,EAChB,YAAAC,IAAa;AAAA,EACb,OAAAC,IAAQ;AAAA,EACR,YAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,MAAAC,IAAO;AAAA,EACP,SAAAC,IAAU;AACZ,MAAuC;AAErC,QAAMC,IADSC,EAAc,EAAE,QAAQX,GAAe,EAChC,EAAE,SAAAS,GAAS,MAAAD,GAAM,YAAAJ,GAAY;AAGjD,SAAAQ,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,KAAKH,EAAO;AAAA,MACX,GAAIN,KAAc,EAAE,IAAID,EAAc;AAAA,MAEvC,UAAA;AAAA,QAACW,gBAAAA,EAAAA,IAAAC,GAAA,EAAS,KAAKL,EAAO,QAAS,CAAA;AAAA,QAC9BH,KACCO,gBAAAA,EAAA;AAAA,UAACE;AAAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH,WAAU;AAAA,YACV,eAAY;AAAA,YACZ,SAAQ;AAAA,YACR,KAAKN,EAAO;AAAA,YACX,GAAGJ;AAAA,YAEH,UAAAD;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAEJ;AAEJ;"}
1
+ {"version":3,"file":"spinner.component-DDmJQo-4.js","sources":["../../src/components/Spinner/spinner.recipe.ts","../../src/components/Spinner/spinner.component.tsx"],"sourcesContent":["import {\n defineSlotRecipe,\n SystemStyleObject,\n} from \"@chakra-ui/react/styled-system\";\nimport { SpinnerSize } from \"./spinner.types\";\nimport { TypographyVariant } from \"shared/types\";\nimport { typographyVariantStyles } from \"../../shared/records/typography\";\n\nconst spinnerSlots = [\"root\", \"spinner\", \"label\"] as const;\ntype SpinnerSlot = (typeof spinnerSlots)[number];\ntype SpinnerSlotStyles = {\n [key in SpinnerSlot]?: SystemStyleObject;\n};\n\nconst spinnerSizeStyles: Record<SpinnerSize, SpinnerSlotStyles> = {\n xs: {\n spinner: {\n h: 3,\n w: 3,\n },\n label: {\n fontSize: \"xs\",\n },\n },\n sm: {\n spinner: {\n h: 4,\n w: 4,\n },\n label: {\n fontSize: \"sm\",\n },\n },\n md: {\n spinner: {\n h: 6,\n w: 6,\n \"--spinner-size\": 6,\n },\n label: {\n fontSize: \"md\",\n },\n },\n lg: {\n spinner: {\n h: 8,\n w: 8,\n },\n label: {\n fontSize: \"lg\",\n },\n },\n xl: {\n spinner: {\n h: 12,\n w: 12,\n },\n label: {\n fontSize: \"xl\",\n },\n },\n};\n\nconst spinnerVariantStyles: Record<TypographyVariant, SpinnerSlotStyles> = {\n accent: {\n spinner: typographyVariantStyles.accent,\n },\n accentSubtle: {\n spinner: typographyVariantStyles.accentSubtle,\n },\n brand: {\n spinner: typographyVariantStyles.brand,\n },\n brandOnContrast: {\n spinner: typographyVariantStyles.brandOnContrast,\n },\n danger: {\n spinner: typographyVariantStyles.danger,\n },\n dangerOnContrast: {\n spinner: typographyVariantStyles.dangerOnContrast,\n },\n default: {\n spinner: typographyVariantStyles.default,\n },\n info: {\n spinner: typographyVariantStyles.info,\n },\n interactive: {\n spinner: typographyVariantStyles.interactive,\n },\n interactiveOnContrast: {\n spinner: typographyVariantStyles.interactiveOnContrast,\n },\n onContrast: {\n spinner: typographyVariantStyles.onContrast,\n },\n placeholder: {\n spinner: typographyVariantStyles.placeholder,\n },\n placeholderOnContrast: {\n spinner: typographyVariantStyles.placeholderOnContrast,\n },\n subtle: {\n spinner: typographyVariantStyles.subtle,\n },\n subtleOnContrast: {\n spinner: typographyVariantStyles.subtleOnContrast,\n },\n success: {\n spinner: typographyVariantStyles.success,\n },\n warning: {\n spinner: typographyVariantStyles.warning,\n },\n};\n\nexport const spinnerRecipe = defineSlotRecipe({\n slots: spinnerSlots,\n base: {\n root: {\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n },\n variants: {\n variant: spinnerVariantStyles,\n size: spinnerSizeStyles,\n fullScreen: {\n true: {\n root: {\n h: \"100%\",\n left: 0,\n top: 0,\n position: \"absolute\",\n w: \"100%\",\n zIndex: \"tooltipExtra\",\n },\n },\n false: {\n root: {\n h: \"max-content\",\n w: \"max-content\",\n },\n },\n },\n },\n defaultVariants: {\n fullScreen: false,\n size: \"md\",\n variant: \"brand\",\n },\n});\n","import React from \"react\";\nimport { Spinner as CSpinner } from \"@chakra-ui/react/spinner\";\nimport { VStack } from \"@chakra-ui/react/stack\";\nimport { SpinnerSize } from \"./spinner.types\";\nimport { Text, TextProps } from \"components/Text/text.component\";\nimport { TypographyVariant } from \"shared/types\";\nimport { useSlotRecipe } from \"@chakra-ui/react\";\nimport { spinnerRecipe } from \"./spinner.recipe\";\nimport { SemanticBackgroundColorToken } from \"theme/semanticTokens\";\n\nexport interface SpinnerProps {\n backdropColor?: SemanticBackgroundColorToken;\n fullScreen?: boolean;\n label?: string;\n labelProps?: Omit<TextProps, \"chilren\">;\n showLabel?: boolean;\n size?: SpinnerSize;\n variant?: TypographyVariant;\n}\n\nexport const Spinner = ({\n backdropColor = \"background.alpha.pressed\",\n fullScreen = false,\n label = \"Loading...\",\n labelProps,\n showLabel = false,\n size = \"md\",\n variant = \"accent\",\n}: SpinnerProps): React.JSX.Element => {\n const recipe = useSlotRecipe({ recipe: spinnerRecipe });\n const styles = recipe({ variant, size, fullScreen });\n\n return (\n <VStack\n className=\"Spinner\"\n data-testid=\"kibble-spinner\"\n css={styles.root}\n {...(fullScreen && { bg: backdropColor })}\n >\n <CSpinner css={styles.spinner} />\n {showLabel && (\n <Text\n as=\"p\"\n className=\"Spinner__Label\"\n data-testid=\"kibble-spinner-label\"\n variant=\"subtle\"\n css={styles.label}\n {...labelProps}\n >\n {label}\n </Text>\n )}\n </VStack>\n );\n};\n"],"names":["spinnerSlots","spinnerSizeStyles","spinnerVariantStyles","typographyVariantStyles","spinnerRecipe","defineSlotRecipe","Spinner","backdropColor","fullScreen","label","labelProps","showLabel","size","variant","styles","useSlotRecipe","jsxs","VStack","jsx","CSpinner","Text"],"mappings":";;;;;;;AAQA,MAAMA,IAAe,CAAC,QAAQ,WAAW,OAAO,GAM1CC,IAA4D;AAAA,EAChE,IAAI;AAAA,IACF,SAAS;AAAA,MACP,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,OAAO;AAAA,MACL,UAAU;AAAA,IAAA;AAAA,EAEd;AAAA,EACA,IAAI;AAAA,IACF,SAAS;AAAA,MACP,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,OAAO;AAAA,MACL,UAAU;AAAA,IAAA;AAAA,EAEd;AAAA,EACA,IAAI;AAAA,IACF,SAAS;AAAA,MACP,GAAG;AAAA,MACH,GAAG;AAAA,MACH,kBAAkB;AAAA,IACpB;AAAA,IACA,OAAO;AAAA,MACL,UAAU;AAAA,IAAA;AAAA,EAEd;AAAA,EACA,IAAI;AAAA,IACF,SAAS;AAAA,MACP,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,OAAO;AAAA,MACL,UAAU;AAAA,IAAA;AAAA,EAEd;AAAA,EACA,IAAI;AAAA,IACF,SAAS;AAAA,MACP,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,OAAO;AAAA,MACL,UAAU;AAAA,IAAA;AAAA,EACZ;AAEJ,GAEMC,IAAqE;AAAA,EACzE,QAAQ;AAAA,IACN,SAASC,EAAwB;AAAA,EACnC;AAAA,EACA,cAAc;AAAA,IACZ,SAASA,EAAwB;AAAA,EACnC;AAAA,EACA,OAAO;AAAA,IACL,SAASA,EAAwB;AAAA,EACnC;AAAA,EACA,iBAAiB;AAAA,IACf,SAASA,EAAwB;AAAA,EACnC;AAAA,EACA,QAAQ;AAAA,IACN,SAASA,EAAwB;AAAA,EACnC;AAAA,EACA,kBAAkB;AAAA,IAChB,SAASA,EAAwB;AAAA,EACnC;AAAA,EACA,SAAS;AAAA,IACP,SAASA,E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b,OAAAC,IAAQ;AAAA,EACR,YAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,MAAAC,IAAO;AAAA,EACP,SAAAC,IAAU;AACZ,MAAuC;AAErC,QAAMC,IADSC,EAAc,EAAE,QAAQX,GAAe,EAChC,EAAE,SAAAS,GAAS,MAAAD,GAAM,YAAAJ,GAAY;AAGjD,SAAAQ,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,KAAKH,EAAO;AAAA,MACX,GAAIN,KAAc,EAAE,IAAID,EAAc;AAAA,MAEvC,UAAA;AAAA,QAACW,gBAAAA,EAAAA,IAAAC,GAAA,EAAS,KAAKL,EAAO,QAAS,CAAA;AAAA,QAC9BH,KACCO,gBAAAA,EAAA;AAAA,UAACE;AAAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH,WAAU;AAAA,YACV,eAAY;AAAA,YACZ,SAAQ;AAAA,YACR,KAAKN,EAAO;AAAA,YACX,GAAGJ;AAAA,YAEH,UAAAD;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAEJ;AAEJ;"}
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./jsx-runtime-BjDatQAs.js"),c=require("./text.component-Dcx3RoTp.js"),n=require("./typography-CtiaGoJG.js"),y=require("./config-SdQux5od.js"),S=require("./use-slot-recipe-CVO1rwGV.js"),d=require("./v-stack-Cx_7x3kH.js"),h=require("./spinner-No4bac8-.js"),u=["root","spinner","label"],g={xs:{spinner:{h:3,w:3},label:{fontSize:"xs"}},sm:{spinner:{h:4,w:4},label:{fontSize:"sm"}},md:{spinner:{h:6,w:6,"--spinner-size":6},label:{fontSize:"md"}},lg:{spinner:{h:8,w:8},label:{fontSize:"lg"}},xl:{spinner:{h:12,w:12},label:{fontSize:"xl"}}},b={accent:{spinner:n.typographyVariantStyles.accent},accentSubtle:{spinner:n.typographyVariantStyles.accentSubtle},brand:{spinner:n.typographyVariantStyles.brand},brandOnContrast:{spinner:n.typographyVariantStyles.brandOnContrast},danger:{spinner:n.typographyVariantStyles.danger},dangerOnContrast:{spinner:n.typographyVariantStyles.dangerOnContrast},default:{spinner:n.typographyVariantStyles.default},info:{spinner:n.typographyVariantStyles.info},interactive:{spinner:n.typographyVariantStyles.interactive},interactiveOnContrast:{spinner:n.typographyVariantStyles.interactiveOnContrast},onContrast:{spinner:n.typographyVariantStyles.onContrast},placeholder:{spinner:n.typographyVariantStyles.placeholder},placeholderOnContrast:{spinner:n.typographyVariantStyles.placeholderOnContrast},subtle:{spinner:n.typographyVariantStyles.subtle},subtleOnContrast:{spinner:n.typographyVariantStyles.subtleOnContrast},success:{spinner:n.typographyVariantStyles.success},warning:{spinner:n.typographyVariantStyles.warning}},x=y.defineSlotRecipe({slots:u,base:{root:{alignItems:"center",justifyContent:"center"}},variants:{variant:b,size:g,fullScreen:{true:{root:{h:"100%",left:0,top:0,position:"absolute",w:"100%",zIndex:"tooltipExtra"}},false:{root:{h:"max-content",w:"max-content"}}}},defaultVariants:{fullScreen:!1,size:"md",variant:"brand"}}),V=({backdropColor:s="background.alpha.pressed",fullScreen:r=!1,label:a="Loading...",labelProps:i,showLabel:p=!1,size:o="md",variant:l="accent"})=>{const e=S.useSlotRecipe({recipe:x})({variant:l,size:o,fullScreen:r});return t.jsxRuntimeExports.jsxs(d.VStack,{className:"Spinner","data-testid":"kibble-spinner",css:e.root,...r&&{bg:s},children:[t.jsxRuntimeExports.jsx(h.Spinner,{css:e.spinner}),p&&t.jsxRuntimeExports.jsx(c.WrappedText,{as:"p",className:"Spinner__Label","data-testid":"kibble-spinner-label",variant:"subtle",css:e.label,...i,children:a})]})};exports.Spinner=V;
2
- //# sourceMappingURL=spinner.component-BuNeiOw3.js.map
1
+ "use strict";const t=require("./jsx-runtime-BjDatQAs.js"),c=require("./text.component-o4fQGr3R.js"),n=require("./typography-CtiaGoJG.js"),y=require("./config-BFcXpdZo.js"),S=require("./use-slot-recipe-8liupslO.js"),d=require("./v-stack-DxjgpeJ0.js"),h=require("./spinner-BnpL14kK.js"),u=["root","spinner","label"],g={xs:{spinner:{h:3,w:3},label:{fontSize:"xs"}},sm:{spinner:{h:4,w:4},label:{fontSize:"sm"}},md:{spinner:{h:6,w:6,"--spinner-size":6},label:{fontSize:"md"}},lg:{spinner:{h:8,w:8},label:{fontSize:"lg"}},xl:{spinner:{h:12,w:12},label:{fontSize:"xl"}}},b={accent:{spinner:n.typographyVariantStyles.accent},accentSubtle:{spinner:n.typographyVariantStyles.accentSubtle},brand:{spinner:n.typographyVariantStyles.brand},brandOnContrast:{spinner:n.typographyVariantStyles.brandOnContrast},danger:{spinner:n.typographyVariantStyles.danger},dangerOnContrast:{spinner:n.typographyVariantStyles.dangerOnContrast},default:{spinner:n.typographyVariantStyles.default},info:{spinner:n.typographyVariantStyles.info},interactive:{spinner:n.typographyVariantStyles.interactive},interactiveOnContrast:{spinner:n.typographyVariantStyles.interactiveOnContrast},onContrast:{spinner:n.typographyVariantStyles.onContrast},placeholder:{spinner:n.typographyVariantStyles.placeholder},placeholderOnContrast:{spinner:n.typographyVariantStyles.placeholderOnContrast},subtle:{spinner:n.typographyVariantStyles.subtle},subtleOnContrast:{spinner:n.typographyVariantStyles.subtleOnContrast},success:{spinner:n.typographyVariantStyles.success},warning:{spinner:n.typographyVariantStyles.warning}},x=y.defineSlotRecipe({slots:u,base:{root:{alignItems:"center",justifyContent:"center"}},variants:{variant:b,size:g,fullScreen:{true:{root:{h:"100%",left:0,top:0,position:"absolute",w:"100%",zIndex:"tooltipExtra"}},false:{root:{h:"max-content",w:"max-content"}}}},defaultVariants:{fullScreen:!1,size:"md",variant:"brand"}}),V=({backdropColor:s="background.alpha.pressed",fullScreen:r=!1,label:a="Loading...",labelProps:i,showLabel:p=!1,size:o="md",variant:l="accent"})=>{const e=S.useSlotRecipe({recipe:x})({variant:l,size:o,fullScreen:r});return t.jsxRuntimeExports.jsxs(d.VStack,{className:"Spinner","data-testid":"kibble-spinner",css:e.root,...r&&{bg:s},children:[t.jsxRuntimeExports.jsx(h.Spinner,{css:e.spinner}),p&&t.jsxRuntimeExports.jsx(c.WrappedText,{as:"p",className:"Spinner__Label","data-testid":"kibble-spinner-label",variant:"subtle",css:e.label,...i,children:a})]})};exports.Spinner=V;
2
+ //# sourceMappingURL=spinner.component-Dxi4tX3s.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"spinner.component-BuNeiOw3.js","sources":["../../src/components/Spinner/spinner.recipe.ts","../../src/components/Spinner/spinner.component.tsx"],"sourcesContent":["import {\n defineSlotRecipe,\n SystemStyleObject,\n} from \"@chakra-ui/react/styled-system\";\nimport { SpinnerSize } from \"./spinner.types\";\nimport { TypographyVariant } from \"shared/types\";\nimport { typographyVariantStyles } from \"../../shared/records/typography\";\n\nconst spinnerSlots = [\"root\", \"spinner\", \"label\"] as const;\ntype SpinnerSlot = (typeof spinnerSlots)[number];\ntype SpinnerSlotStyles = {\n [key in SpinnerSlot]?: SystemStyleObject;\n};\n\nconst spinnerSizeStyles: Record<SpinnerSize, SpinnerSlotStyles> = {\n xs: {\n spinner: {\n h: 3,\n w: 3,\n },\n label: {\n fontSize: \"xs\",\n },\n },\n sm: {\n spinner: {\n h: 4,\n w: 4,\n },\n label: {\n fontSize: \"sm\",\n },\n },\n md: {\n spinner: {\n h: 6,\n w: 6,\n \"--spinner-size\": 6,\n },\n label: {\n fontSize: \"md\",\n },\n },\n lg: {\n spinner: {\n h: 8,\n w: 8,\n },\n label: {\n fontSize: \"lg\",\n },\n },\n xl: {\n spinner: {\n h: 12,\n w: 12,\n },\n label: {\n fontSize: \"xl\",\n },\n },\n};\n\nconst spinnerVariantStyles: Record<TypographyVariant, SpinnerSlotStyles> = {\n accent: {\n spinner: typographyVariantStyles.accent,\n },\n accentSubtle: {\n spinner: typographyVariantStyles.accentSubtle,\n },\n brand: {\n spinner: typographyVariantStyles.brand,\n },\n brandOnContrast: {\n spinner: typographyVariantStyles.brandOnContrast,\n },\n danger: {\n spinner: typographyVariantStyles.danger,\n },\n dangerOnContrast: {\n spinner: typographyVariantStyles.dangerOnContrast,\n },\n default: {\n spinner: typographyVariantStyles.default,\n },\n info: {\n spinner: typographyVariantStyles.info,\n },\n interactive: {\n spinner: typographyVariantStyles.interactive,\n },\n interactiveOnContrast: {\n spinner: typographyVariantStyles.interactiveOnContrast,\n },\n onContrast: {\n spinner: typographyVariantStyles.onContrast,\n },\n placeholder: {\n spinner: typographyVariantStyles.placeholder,\n },\n placeholderOnContrast: {\n spinner: typographyVariantStyles.placeholderOnContrast,\n },\n subtle: {\n spinner: typographyVariantStyles.subtle,\n },\n subtleOnContrast: {\n spinner: typographyVariantStyles.subtleOnContrast,\n },\n success: {\n spinner: typographyVariantStyles.success,\n },\n warning: {\n spinner: typographyVariantStyles.warning,\n },\n};\n\nexport const spinnerRecipe = defineSlotRecipe({\n slots: spinnerSlots,\n base: {\n root: {\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n },\n variants: {\n variant: spinnerVariantStyles,\n size: spinnerSizeStyles,\n fullScreen: {\n true: {\n root: {\n h: \"100%\",\n left: 0,\n top: 0,\n position: \"absolute\",\n w: \"100%\",\n zIndex: \"tooltipExtra\",\n },\n },\n false: {\n root: {\n h: \"max-content\",\n w: \"max-content\",\n },\n },\n },\n },\n defaultVariants: {\n fullScreen: false,\n size: \"md\",\n variant: \"brand\",\n },\n});\n","import React from \"react\";\nimport { Spinner as CSpinner } from \"@chakra-ui/react/spinner\";\nimport { VStack } from \"@chakra-ui/react/stack\";\nimport { SpinnerSize } from \"./spinner.types\";\nimport { Text, TextProps } from \"components/Text/text.component\";\nimport { TypographyVariant } from \"shared/types\";\nimport { useSlotRecipe } from \"@chakra-ui/react\";\nimport { spinnerRecipe } from \"./spinner.recipe\";\nimport { SemanticBackgroundColorToken } from \"theme/semanticTokens\";\n\nexport interface SpinnerProps {\n backdropColor?: SemanticBackgroundColorToken;\n fullScreen?: boolean;\n label?: string;\n labelProps?: Omit<TextProps, \"chilren\">;\n showLabel?: boolean;\n size?: SpinnerSize;\n variant?: TypographyVariant;\n}\n\nexport const Spinner = ({\n backdropColor = \"background.alpha.pressed\",\n fullScreen = false,\n label = \"Loading...\",\n labelProps,\n showLabel = false,\n size = \"md\",\n variant = \"accent\",\n}: SpinnerProps): React.JSX.Element => {\n const recipe = useSlotRecipe({ recipe: spinnerRecipe });\n const styles = recipe({ variant, size, fullScreen });\n\n return (\n <VStack\n className=\"Spinner\"\n data-testid=\"kibble-spinner\"\n css={styles.root}\n {...(fullScreen && { bg: backdropColor })}\n >\n <CSpinner css={styles.spinner} />\n {showLabel && (\n <Text\n as=\"p\"\n className=\"Spinner__Label\"\n data-testid=\"kibble-spinner-label\"\n variant=\"subtle\"\n css={styles.label}\n {...labelProps}\n >\n {label}\n </Text>\n )}\n </VStack>\n );\n};\n"],"names":["spinnerSlots","spinnerSizeStyles","spinnerVariantStyles","typographyVariantStyles","spinnerRecipe","defineSlotRecipe","Spinner","backdropColor","fullScreen","label","labelProps","showLabel","size","variant","styles","useSlotRecipe","jsxs","VStack","jsx","CSpinner","Text"],"mappings":"6RAQMA,EAAe,CAAC,OAAQ,UAAW,OAAO,EAM1CC,EAA4D,CAChE,GAAI,CACF,QAAS,CACP,EAAG,EACH,EAAG,CACL,EACA,MAAO,CACL,SAAU,IAAA,CAEd,EACA,GAAI,CACF,QAAS,CACP,EAAG,EACH,EAAG,CACL,EACA,MAAO,CACL,SAAU,IAAA,CAEd,EACA,GAAI,CACF,QAAS,CACP,EAAG,EACH,EAAG,EACH,iBAAkB,CACpB,EACA,MAAO,CACL,SAAU,IAAA,CAEd,EACA,GAAI,CACF,QAAS,CACP,EAAG,EACH,EAAG,CACL,EACA,MAAO,CACL,SAAU,IAAA,CAEd,EACA,GAAI,CACF,QAAS,CACP,EAAG,GACH,EAAG,EACL,EACA,MAAO,CACL,SAAU,IAAA,CACZ,CAEJ,EAEMC,EAAqE,CACzE,OAAQ,CACN,QAASC,EAAAA,wBAAwB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ACZ,KAAAC,EAAO,KACP,QAAAC,EAAU,QACZ,IAAuC,CAErC,MAAMC,EADSC,EAAA,cAAc,CAAE,OAAQX,EAAe,EAChC,CAAE,QAAAS,EAAS,KAAAD,EAAM,WAAAJ,EAAY,EAGjD,OAAAQ,EAAA,kBAAA,KAACC,EAAA,OAAA,CACC,UAAU,UACV,cAAY,iBACZ,IAAKH,EAAO,KACX,GAAIN,GAAc,CAAE,GAAID,CAAc,EAEvC,SAAA,CAACW,EAAAA,kBAAAA,IAAAC,EAAAA,QAAA,CAAS,IAAKL,EAAO,OAAS,CAAA,EAC9BH,GACCO,EAAA,kBAAA,IAACE,EAAA,YAAA,CACC,GAAG,IACH,UAAU,iBACV,cAAY,uBACZ,QAAQ,SACR,IAAKN,EAAO,MACX,GAAGJ,EAEH,SAAAD,CAAA,CAAA,CACH,CAAA,CAEJ,CAEJ"}
1
+ {"version":3,"file":"spinner.component-Dxi4tX3s.js","sources":["../../src/components/Spinner/spinner.recipe.ts","../../src/components/Spinner/spinner.component.tsx"],"sourcesContent":["import {\n defineSlotRecipe,\n SystemStyleObject,\n} from \"@chakra-ui/react/styled-system\";\nimport { SpinnerSize } from \"./spinner.types\";\nimport { TypographyVariant } from \"shared/types\";\nimport { typographyVariantStyles } from \"../../shared/records/typography\";\n\nconst spinnerSlots = [\"root\", \"spinner\", \"label\"] as const;\ntype SpinnerSlot = (typeof spinnerSlots)[number];\ntype SpinnerSlotStyles = {\n [key in SpinnerSlot]?: SystemStyleObject;\n};\n\nconst spinnerSizeStyles: Record<SpinnerSize, SpinnerSlotStyles> = {\n xs: {\n spinner: {\n h: 3,\n w: 3,\n },\n label: {\n fontSize: \"xs\",\n },\n },\n sm: {\n spinner: {\n h: 4,\n w: 4,\n },\n label: {\n fontSize: \"sm\",\n },\n },\n md: {\n spinner: {\n h: 6,\n w: 6,\n \"--spinner-size\": 6,\n },\n label: {\n fontSize: \"md\",\n },\n },\n lg: {\n spinner: {\n h: 8,\n w: 8,\n },\n label: {\n fontSize: \"lg\",\n },\n },\n xl: {\n spinner: {\n h: 12,\n w: 12,\n },\n label: {\n fontSize: \"xl\",\n },\n },\n};\n\nconst spinnerVariantStyles: Record<TypographyVariant, SpinnerSlotStyles> = {\n accent: {\n spinner: typographyVariantStyles.accent,\n },\n accentSubtle: {\n spinner: typographyVariantStyles.accentSubtle,\n },\n brand: {\n spinner: typographyVariantStyles.brand,\n },\n brandOnContrast: {\n spinner: typographyVariantStyles.brandOnContrast,\n },\n danger: {\n spinner: typographyVariantStyles.danger,\n },\n dangerOnContrast: {\n spinner: typographyVariantStyles.dangerOnContrast,\n },\n default: {\n spinner: typographyVariantStyles.default,\n },\n info: {\n spinner: typographyVariantStyles.info,\n },\n interactive: {\n spinner: typographyVariantStyles.interactive,\n },\n interactiveOnContrast: {\n spinner: typographyVariantStyles.interactiveOnContrast,\n },\n onContrast: {\n spinner: typographyVariantStyles.onContrast,\n },\n placeholder: {\n spinner: typographyVariantStyles.placeholder,\n },\n placeholderOnContrast: {\n spinner: typographyVariantStyles.placeholderOnContrast,\n },\n subtle: {\n spinner: typographyVariantStyles.subtle,\n },\n subtleOnContrast: {\n spinner: typographyVariantStyles.subtleOnContrast,\n },\n success: {\n spinner: typographyVariantStyles.success,\n },\n warning: {\n spinner: typographyVariantStyles.warning,\n },\n};\n\nexport const spinnerRecipe = defineSlotRecipe({\n slots: spinnerSlots,\n base: {\n root: {\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n },\n variants: {\n variant: spinnerVariantStyles,\n size: spinnerSizeStyles,\n fullScreen: {\n true: {\n root: {\n h: \"100%\",\n left: 0,\n top: 0,\n position: \"absolute\",\n w: \"100%\",\n zIndex: \"tooltipExtra\",\n },\n },\n false: {\n root: {\n h: \"max-content\",\n w: \"max-content\",\n },\n },\n },\n },\n defaultVariants: {\n fullScreen: false,\n size: \"md\",\n variant: \"brand\",\n },\n});\n","import React from \"react\";\nimport { Spinner as CSpinner } from \"@chakra-ui/react/spinner\";\nimport { VStack } from \"@chakra-ui/react/stack\";\nimport { SpinnerSize } from \"./spinner.types\";\nimport { Text, TextProps } from \"components/Text/text.component\";\nimport { TypographyVariant } from \"shared/types\";\nimport { useSlotRecipe } from \"@chakra-ui/react\";\nimport { spinnerRecipe } from \"./spinner.recipe\";\nimport { SemanticBackgroundColorToken } from \"theme/semanticTokens\";\n\nexport interface SpinnerProps {\n backdropColor?: SemanticBackgroundColorToken;\n fullScreen?: boolean;\n label?: string;\n labelProps?: Omit<TextProps, \"chilren\">;\n showLabel?: boolean;\n size?: SpinnerSize;\n variant?: TypographyVariant;\n}\n\nexport const Spinner = ({\n backdropColor = \"background.alpha.pressed\",\n fullScreen = false,\n label = \"Loading...\",\n labelProps,\n showLabel = false,\n size = \"md\",\n variant = \"accent\",\n}: SpinnerProps): React.JSX.Element => {\n const recipe = useSlotRecipe({ recipe: spinnerRecipe });\n const styles = recipe({ variant, size, fullScreen });\n\n return (\n <VStack\n className=\"Spinner\"\n data-testid=\"kibble-spinner\"\n css={styles.root}\n {...(fullScreen && { bg: backdropColor })}\n >\n <CSpinner css={styles.spinner} />\n {showLabel && (\n <Text\n as=\"p\"\n className=\"Spinner__Label\"\n data-testid=\"kibble-spinner-label\"\n variant=\"subtle\"\n css={styles.label}\n {...labelProps}\n >\n {label}\n </Text>\n )}\n </VStack>\n );\n};\n"],"names":["spinnerSlots","spinnerSizeStyles","spinnerVariantStyles","typographyVariantStyles","spinnerRecipe","defineSlotRecipe","Spinner","backdropColor","fullScreen","label","labelProps","showLabel","size","variant","styles","useSlotRecipe","jsxs","VStack","jsx","CSpinner","Text"],"mappings":"6RAQMA,EAAe,CAAC,OAAQ,UAAW,OAAO,EAM1CC,EAA4D,CAChE,GAAI,CACF,QAAS,CACP,EAAG,EACH,EAAG,CACL,EACA,MAAO,CACL,SAAU,IAAA,CAEd,EACA,GAAI,CACF,QAAS,CACP,EAAG,EACH,EAAG,CACL,EACA,MAAO,CACL,SAAU,IAAA,CAEd,EACA,GAAI,CACF,QAAS,C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IAAK,EACL,SAAU,WACV,EAAG,OACH,OAAQ,cAAA,CAEZ,EACA,MAAO,CACL,KAAM,CACJ,EAAG,cACH,EAAG,aAAA,CACL,CACF,CAEJ,EACA,gBAAiB,CACf,WAAY,GACZ,KAAM,KACN,QAAS,OAAA,CAEb,CAAC,ECpIYK,EAAU,CAAC,CACtB,cAAAC,EAAgB,2BAChB,WAAAC,EAAa,GACb,MAAAC,EAAQ,aACR,WAAAC,EACA,UAAAC,EAAY,GACZ,KAAAC,EAAO,KACP,QAAAC,EAAU,QACZ,IAAuC,CAErC,MAAMC,EADSC,EAAA,cAAc,CAAE,OAAQX,EAAe,EAChC,CAAE,QAAAS,EAAS,KAAAD,EAAM,WAAAJ,EAAY,EAGjD,OAAAQ,EAAA,kBAAA,KAACC,EAAA,OAAA,CACC,UAAU,UACV,cAAY,iBACZ,IAAKH,EAAO,KACX,GAAIN,GAAc,CAAE,GAAID,CAAc,EAEvC,SAAA,CAACW,EAAAA,kBAAAA,IAAAC,EAAAA,QAAA,CAAS,IAAKL,EAAO,OAAS,CAAA,EAC9BH,GACCO,EAAA,kBAAA,IAACE,EAAA,YAAA,CACC,GAAG,IACH,UAAU,iBACV,cAAY,uBACZ,QAAQ,SACR,IAAKN,EAAO,MACX,GAAGJ,EAEH,SAAAD,CAAA,CAAA,CACH,CAAA,CAEJ,CAEJ"}
@@ -1,2 +1,2 @@
1
- "use strict";const m=require("./jsx-runtime-BjDatQAs.js"),e=require("react"),p=require("./factory-CkTX_WOU.js"),j=require("./walk-object-CzGJH0qy.js");function W(i){const{gap:r,direction:o}=i,t={column:{marginY:r,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:r,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:r,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:r,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":j.mapObject(o,s=>t[s])}}function w(i){return e.Children.toArray(i).filter(r=>e.isValidElement(r))}const I=e.forwardRef(function(r,o){const{direction:t="column",align:s,justify:g,gap:a="0.5rem",wrap:f,children:c,separator:n,className:h,...x}=r,d=e.useMemo(()=>W({gap:a,direction:t}),[a,t]),y=e.useMemo(()=>n?w(c).map((l,u,b)=>{const k=typeof l.key<"u"?l.key:u,S=e.cloneElement(n,{css:[d,n.props.css]});return m.jsxRuntimeExports.jsxs(e.Fragment,{children:[l,u===b.length-1?null:S]},k)}):c,[c,n,d]);return m.jsxRuntimeExports.jsx(p.chakra.div,{ref:o,display:"flex",alignItems:s,justifyContent:g,flexDirection:t,flexWrap:f,gap:n?void 0:a,className:p.cx("chakra-stack",h),...x,children:y})});exports.Stack=I;
2
- //# sourceMappingURL=stack-CtSNpuJq.js.map
1
+ "use strict";const m=require("./jsx-runtime-BjDatQAs.js"),e=require("react"),p=require("./factory-D6tdBUPG.js"),j=require("./walk-object-BrTExCqQ.js");function W(i){const{gap:r,direction:o}=i,t={column:{marginY:r,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:r,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:r,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:r,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":j.mapObject(o,s=>t[s])}}function w(i){return e.Children.toArray(i).filter(r=>e.isValidElement(r))}const I=e.forwardRef(function(r,o){const{direction:t="column",align:s,justify:g,gap:a="0.5rem",wrap:f,children:c,separator:n,className:h,...x}=r,d=e.useMemo(()=>W({gap:a,direction:t}),[a,t]),y=e.useMemo(()=>n?w(c).map((l,u,b)=>{const k=typeof l.key<"u"?l.key:u,S=e.cloneElement(n,{css:[d,n.props.css]});return m.jsxRuntimeExports.jsxs(e.Fragment,{children:[l,u===b.length-1?null:S]},k)}):c,[c,n,d]);return m.jsxRuntimeExports.jsx(p.chakra.div,{ref:o,display:"flex",alignItems:s,justifyContent:g,flexDirection:t,flexWrap:f,gap:n?void 0:a,className:p.cx("chakra-stack",h),...x,children:y})});exports.Stack=I;
2
+ //# sourceMappingURL=stack-BKu3hWEQ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stack-CtSNpuJq.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/stack/get-separator-style.js","../../node_modules/@chakra-ui/react/dist/esm/components/stack/stack.js"],"sourcesContent":["\"use strict\";\nimport { mapObject } from '../../utils/walk-object.js';\n\nfunction getSeparatorStyles(options) {\n const { gap, direction } = options;\n const styles = {\n column: {\n marginY: gap,\n marginX: 0,\n borderInlineStartWidth: 0,\n borderTopWidth: \"1px\"\n },\n \"column-reverse\": {\n marginY: gap,\n marginX: 0,\n borderInlineStartWidth: 0,\n borderTopWidth: \"1px\"\n },\n row: {\n marginX: gap,\n marginY: 0,\n borderInlineStartWidth: \"1px\",\n borderTopWidth: 0\n },\n \"row-reverse\": {\n marginX: gap,\n marginY: 0,\n borderInlineStartWidth: \"1px\",\n borderTopWidth: 0\n }\n };\n return {\n \"&\": mapObject(direction, (value) => styles[value])\n };\n}\n\nexport { getSeparatorStyles };\n","\"use strict\";\n\"use client\";\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, useMemo, cloneElement, Fragment, Children, isValidElement } from 'react';\nimport { cx } from '../../utils/cx.js';\nimport { chakra } from '../../styled-system/factory.js';\nimport { getSeparatorStyles } from './get-separator-style.js';\n\nfunction getValidChildren(children) {\n return Children.toArray(children).filter(\n (child) => isValidElement(child)\n );\n}\nconst Stack = forwardRef(\n function Stack2(props, ref) {\n const {\n direction = \"column\",\n align,\n justify,\n gap = \"0.5rem\",\n wrap,\n children,\n separator,\n className,\n ...rest\n } = props;\n const separatorStyle = useMemo(\n () => getSeparatorStyles({ gap, direction }),\n [gap, direction]\n );\n const clones = useMemo(() => {\n if (!separator) return children;\n return getValidChildren(children).map((child, index, arr) => {\n const key = typeof child.key !== \"undefined\" ? child.key : index;\n const sep = cloneElement(separator, {\n css: [separatorStyle, separator.props.css]\n });\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n child,\n index === arr.length - 1 ? null : sep\n ] }, key);\n });\n }, [children, separator, separatorStyle]);\n return /* @__PURE__ */ jsx(\n chakra.div,\n {\n ref,\n display: \"flex\",\n alignItems: align,\n justifyContent: justify,\n flexDirection: direction,\n flexWrap: wrap,\n gap: separator ? void 0 : gap,\n className: cx(\"chakra-stack\", className),\n ...rest,\n children: clones\n }\n );\n }\n);\n\nexport { Stack };\n"],"names":["getSeparatorStyles","options","gap","direction","styles","mapObject","value","getValidChildren","children","Children","child","isValidElement","Stack","forwardRef","props","ref","align","justify","wrap","separator","className","rest","separatorStyle","useMemo","clones","index","arr","key","sep","cloneElement","jsxs","Fragment","jsx","chakra","cx"],"mappings":"uJAGA,SAASA,EAAmBC,EAAS,CACnC,KAAM,CAAE,IAAAC,EAAK,UAAAC,CAAS,EAAKF,EACrBG,EAAS,CACb,OAAQ,CACN,QAASF,EACT,QAAS,EACT,uBAAwB,EACxB,eAAgB,KACjB,EACD,iBAAkB,CAChB,QAASA,EACT,QAAS,EACT,uBAAwB,EACxB,eAAgB,KACjB,EACD,IAAK,CACH,QAASA,EACT,QAAS,EACT,uBAAwB,MACxB,eAAgB,CACjB,EACD,cAAe,CACb,QAASA,EACT,QAAS,EACT,uBAAwB,MACxB,eAAgB,CACtB,CACG,EACD,MAAO,CACL,IAAKG,EAAS,UAACF,EAAYG,GAAUF,EAAOE,CAAK,CAAC,CACnD,CACH,CC1BA,SAASC,EAAiBC,EAAU,CAClC,OAAOC,WAAS,QAAQD,CAAQ,EAAE,OAC/BE,GAAUC,EAAAA,eAAeD,CAAK,CAChC,CACH,CACK,MAACE,EAAQC,EAAU,WACtB,SAAgBC,EAAOC,EAAK,CAC1B,KAAM,CACJ,UAAAZ,EAAY,SACZ,MAAAa,EACA,QAAAC,EACA,IAAAf,EAAM,SACN,KAAAgB,EACA,SAAAV,EACA,UAAAW,EACA,UAAAC,EACA,GAAGC,CACT,EAAQP,EACEQ,EAAiBC,EAAO,QAC5B,IAAMvB,EAAmB,CAAE,IAAAE,EAAK,UAAAC,EAAW,EAC3C,CAACD,EAAKC,CAAS,CAChB,EACKqB,EAASD,EAAAA,QAAQ,IAChBJ,EACEZ,EAAiBC,CAAQ,EAAE,IAAI,CAACE,EAAOe,EAAOC,IAAQ,CAC3D,MAAMC,EAAM,OAAOjB,EAAM,IAAQ,IAAcA,EAAM,IAAMe,EACrDG,EAAMC,EAAY,aAACV,EAAW,CAClC,IAAK,CAACG,EAAgBH,EAAU,MAAM,GAAG,CACnD,CAAS,EACD,OAAuBW,EAAI,kBAAA,KAACC,WAAU,CAAE,SAAU,CAChDrB,EACAe,IAAUC,EAAI,OAAS,EAAI,KAAOE,CACnC,CAAA,EAAID,CAAG,CAChB,CAAO,EAVsBnB,EAWtB,CAACA,EAAUW,EAAWG,CAAc,CAAC,EACxC,OAAuBU,EAAG,kBAAA,IACxBC,EAAAA,OAAO,IACP,CACE,IAAAlB,EACA,QAAS,OACT,WAAYC,EACZ,eAAgBC,EAChB,cAAed,EACf,SAAUe,EACV,IAAKC,EAAY,OAASjB,EAC1B,UAAWgC,EAAAA,GAAG,eAAgBd,CAAS,EACvC,GAAGC,EACH,SAAUG,CAClB,CACK,CACL,CACA","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"stack-BKu3hWEQ.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/stack/get-separator-style.js","../../node_modules/@chakra-ui/react/dist/esm/components/stack/stack.js"],"sourcesContent":["\"use strict\";\nimport { mapObject } from '../../utils/walk-object.js';\n\nfunction getSeparatorStyles(options) {\n const { gap, direction } = options;\n const styles = {\n column: {\n marginY: gap,\n marginX: 0,\n borderInlineStartWidth: 0,\n borderTopWidth: \"1px\"\n },\n \"column-reverse\": {\n marginY: gap,\n marginX: 0,\n borderInlineStartWidth: 0,\n borderTopWidth: \"1px\"\n },\n row: {\n marginX: gap,\n marginY: 0,\n borderInlineStartWidth: \"1px\",\n borderTopWidth: 0\n },\n \"row-reverse\": {\n marginX: gap,\n marginY: 0,\n borderInlineStartWidth: \"1px\",\n borderTopWidth: 0\n }\n };\n return {\n \"&\": mapObject(direction, (value) => styles[value])\n };\n}\n\nexport { getSeparatorStyles };\n","\"use strict\";\n\"use client\";\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, useMemo, cloneElement, Fragment, Children, isValidElement } from 'react';\nimport { cx } from '../../utils/cx.js';\nimport { chakra } from '../../styled-system/factory.js';\nimport { getSeparatorStyles } from './get-separator-style.js';\n\nfunction getValidChildren(children) {\n return Children.toArray(children).filter(\n (child) => isValidElement(child)\n );\n}\nconst Stack = forwardRef(\n function Stack2(props, ref) {\n const {\n direction = \"column\",\n align,\n justify,\n gap = \"0.5rem\",\n wrap,\n children,\n separator,\n className,\n ...rest\n } = props;\n const separatorStyle = useMemo(\n () => getSeparatorStyles({ gap, direction }),\n [gap, direction]\n );\n const clones = useMemo(() => {\n if (!separator) return children;\n return getValidChildren(children).map((child, index, arr) => {\n const key = typeof child.key !== \"undefined\" ? child.key : index;\n const sep = cloneElement(separator, {\n css: [separatorStyle, separator.props.css]\n });\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n child,\n index === arr.length - 1 ? null : sep\n ] }, key);\n });\n }, [children, separator, separatorStyle]);\n return /* @__PURE__ */ jsx(\n chakra.div,\n {\n ref,\n display: \"flex\",\n alignItems: align,\n justifyContent: justify,\n flexDirection: direction,\n flexWrap: wrap,\n gap: separator ? void 0 : gap,\n className: cx(\"chakra-stack\", className),\n ...rest,\n children: clones\n }\n );\n }\n);\n\nexport { Stack };\n"],"names":["getSeparatorStyles","options","gap","direction","styles","mapObject","value","getValidChildren","children","Children","child","isValidElement","Stack","forwardRef","props","ref","align","justify","wrap","separator","className","rest","separatorStyle","useMemo","clones","index","arr","key","sep","cloneElement","jsxs","Fragment","jsx","chakra","cx"],"mappings":"uJAGA,SAASA,EAAmBC,EAAS,CACnC,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B,CAACA,EAAUW,EAAWG,CAAc,CAAC,EACxC,OAAuBU,EAAG,kBAAA,IACxBC,EAAAA,OAAO,IACP,CACE,IAAAlB,EACA,QAAS,OACT,WAAYC,EACZ,eAAgBC,EAChB,cAAed,EACf,SAAUe,EACV,IAAKC,EAAY,OAASjB,EAC1B,UAAWgC,EAAAA,GAAG,eAAgBd,CAAS,EACvC,GAAGC,EACH,SAAUG,CAClB,CACK,CACL,CACA","x_google_ignoreList":[0,1]}
@@ -1,7 +1,7 @@
1
1
  import { j as p } from "./jsx-runtime-C5mzlN2N.js";
2
2
  import { forwardRef as W, useMemo as d, cloneElement as k, Fragment as j, Children as I, isValidElement as v } from "react";
3
- import { c as w, b as T } from "./factory-gZxMesut.js";
4
- import { m as X } from "./walk-object-DY6qf1jj.js";
3
+ import { c as w, a as T } from "./factory-Ctbv0Ozn.js";
4
+ import { m as X } from "./walk-object-_CL3Bkm9.js";
5
5
  function Y(n) {
6
6
  const { gap: r, direction: o } = n, e = {
7
7
  column: {
@@ -54,13 +54,13 @@ const A = W(
54
54
  () => Y({ gap: i, direction: e }),
55
55
  [i, e]
56
56
  ), x = d(() => t ? C(s).map((c, m, y) => {
57
- const b = typeof c.key < "u" ? c.key : m, S = k(t, {
57
+ const S = typeof c.key < "u" ? c.key : m, b = k(t, {
58
58
  css: [l, t.props.css]
59
59
  });
60
60
  return /* @__PURE__ */ p.jsxs(j, { children: [
61
61
  c,
62
- m === y.length - 1 ? null : S
63
- ] }, b);
62
+ m === y.length - 1 ? null : b
63
+ ] }, S);
64
64
  }) : s, [s, t, l]);
65
65
  return /* @__PURE__ */ p.jsx(
66
66
  w.div,
@@ -82,4 +82,4 @@ const A = W(
82
82
  export {
83
83
  A as S
84
84
  };
85
- //# sourceMappingURL=stack-B6Qs7bq9.js.map
85
+ //# sourceMappingURL=stack-Dnuh5Zgf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stack-B6Qs7bq9.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/stack/get-separator-style.js","../../node_modules/@chakra-ui/react/dist/esm/components/stack/stack.js"],"sourcesContent":["\"use strict\";\nimport { mapObject } from '../../utils/walk-object.js';\n\nfunction getSeparatorStyles(options) {\n const { gap, direction } = options;\n const styles = {\n column: {\n marginY: gap,\n marginX: 0,\n borderInlineStartWidth: 0,\n borderTopWidth: \"1px\"\n },\n \"column-reverse\": {\n marginY: gap,\n marginX: 0,\n borderInlineStartWidth: 0,\n borderTopWidth: \"1px\"\n },\n row: {\n marginX: gap,\n marginY: 0,\n borderInlineStartWidth: \"1px\",\n borderTopWidth: 0\n },\n \"row-reverse\": {\n marginX: gap,\n marginY: 0,\n borderInlineStartWidth: \"1px\",\n borderTopWidth: 0\n }\n };\n return {\n \"&\": mapObject(direction, (value) => styles[value])\n };\n}\n\nexport { getSeparatorStyles };\n","\"use strict\";\n\"use client\";\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, useMemo, cloneElement, Fragment, Children, isValidElement } from 'react';\nimport { cx } from '../../utils/cx.js';\nimport { chakra } from '../../styled-system/factory.js';\nimport { getSeparatorStyles } from './get-separator-style.js';\n\nfunction getValidChildren(children) {\n return Children.toArray(children).filter(\n (child) => isValidElement(child)\n );\n}\nconst Stack = forwardRef(\n function Stack2(props, ref) {\n const {\n direction = \"column\",\n align,\n justify,\n gap = \"0.5rem\",\n wrap,\n children,\n separator,\n className,\n ...rest\n } = props;\n const separatorStyle = useMemo(\n () => getSeparatorStyles({ gap, direction }),\n [gap, direction]\n );\n const clones = useMemo(() => {\n if (!separator) return children;\n return getValidChildren(children).map((child, index, arr) => {\n const key = typeof child.key !== \"undefined\" ? child.key : index;\n const sep = cloneElement(separator, {\n css: [separatorStyle, separator.props.css]\n });\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n child,\n index === arr.length - 1 ? null : sep\n ] }, key);\n });\n }, [children, separator, separatorStyle]);\n return /* @__PURE__ */ jsx(\n chakra.div,\n {\n ref,\n display: \"flex\",\n alignItems: align,\n justifyContent: justify,\n flexDirection: direction,\n flexWrap: wrap,\n gap: separator ? void 0 : gap,\n className: cx(\"chakra-stack\", className),\n ...rest,\n children: clones\n }\n );\n }\n);\n\nexport { Stack };\n"],"names":["getSeparatorStyles","options","gap","direction","styles","mapObject","value","getValidChildren","children","Children","child","isValidElement","Stack","forwardRef","props","ref","align","justify","wrap","separator","className","rest","separatorStyle","useMemo","clones","index","arr","key","sep","cloneElement","jsxs","Fragment","jsx","chakra","cx"],"mappings":";;;;AAGA,SAASA,EAAmBC,GAAS;AACnC,QAAM,EAAE,KAAAC,GAAK,WAAAC,EAAS,IAAKF,GACrBG,IAAS;AAAA,IACb,QAAQ;AAAA,MACN,SAASF;AAAA,MACT,SAAS;AAAA,MACT,wBAAwB;AAAA,MACxB,gBAAgB;AAAA,IACjB;AAAA,IACD,kBAAkB;AAAA,MAChB,SAASA;AAAA,MACT,SAAS;AAAA,MACT,wBAAwB;AAAA,MACxB,gBAAgB;AAAA,IACjB;AAAA,IACD,KAAK;AAAA,MACH,SAASA;AAAA,MACT,SAAS;AAAA,MACT,wBAAwB;AAAA,MACxB,gBAAgB;AAAA,IACjB;AAAA,IACD,eAAe;AAAA,MACb,SAASA;AAAA,MACT,SAAS;AAAA,MACT,wBAAwB;AAAA,MACxB,gBAAgB;AAAA,IACtB;AAAA,EACG;AACD,SAAO;AAAA,IACL,KAAKG,EAAUF,GAAW,CAACG,MAAUF,EAAOE,CAAK,CAAC;AAAA,EACnD;AACH;AC1BA,SAASC,EAAiBC,GAAU;AAClC,SAAOC,EAAS,QAAQD,CAAQ,EAAE;AAAA,IAChC,CAACE,MAAUC,EAAeD,CAAK;AAAA,EAChC;AACH;AACK,MAACE,IAAQC;AAAA,EACZ,SAAgBC,GAAOC,GAAK;AAC1B,UAAM;AAAA,MACJ,WAAAZ,IAAY;AAAA,MACZ,OAAAa;AAAA,MACA,SAAAC;AAAA,MACA,KAAAf,IAAM;AAAA,MACN,MAAAgB;AAAA,MACA,UAAAV;AAAA,MACA,WAAAW;AAAA,MACA,WAAAC;AAAA,MACA,GAAGC;AAAA,IACT,IAAQP,GACEQ,IAAiBC;AAAA,MACrB,MAAMvB,EAAmB,EAAE,KAAAE,GAAK,WAAAC,GAAW;AAAA,MAC3C,CAACD,GAAKC,CAAS;AAAA,IAChB,GACKqB,IAASD,EAAQ,MAChBJ,IACEZ,EAAiBC,CAAQ,EAAE,IAAI,CAACE,GAAOe,GAAOC,MAAQ;AAC3D,YAAMC,IAAM,OAAOjB,EAAM,MAAQ,MAAcA,EAAM,MAAMe,GACrDG,IAAMC,EAAaV,GAAW;AAAA,QAClC,KAAK,CAACG,GAAgBH,EAAU,MAAM,GAAG;AAAA,MACnD,CAAS;AACD,aAAuBW,gBAAAA,EAAI,KAACC,GAAU,EAAE,UAAU;AAAA,QAChDrB;AAAA,QACAe,MAAUC,EAAI,SAAS,IAAI,OAAOE;AAAA,MACnC,EAAA,GAAID,CAAG;AAAA,IAChB,CAAO,IAVsBnB,GAWtB,CAACA,GAAUW,GAAWG,CAAc,CAAC;AACxC,WAAuBU,gBAAAA,EAAG;AAAA,MACxBC,EAAO;AAAA,MACP;AAAA,QACE,KAAAlB;AAAA,QACA,SAAS;AAAA,QACT,YAAYC;AAAA,QACZ,gBAAgBC;AAAA,QAChB,eAAed;AAAA,QACf,UAAUe;AAAA,QACV,KAAKC,IAAY,SAASjB;AAAA,QAC1B,WAAWgC,EAAG,gBAAgBd,CAAS;AAAA,QACvC,GAAGC;AAAA,QACH,UAAUG;AAAA,MAClB;AAAA,IACK;AAAA,EACL;AACA;","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"stack-Dnuh5Zgf.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/stack/get-separator-style.js","../../node_modules/@chakra-ui/react/dist/esm/components/stack/stack.js"],"sourcesContent":["\"use strict\";\nimport { mapObject } from '../../utils/walk-object.js';\n\nfunction getSeparatorStyles(options) {\n const { gap, direction } = options;\n const styles = {\n column: {\n marginY: gap,\n marginX: 0,\n borderInlineStartWidth: 0,\n borderTopWidth: \"1px\"\n },\n \"column-reverse\": {\n marginY: gap,\n marginX: 0,\n borderInlineStartWidth: 0,\n borderTopWidth: \"1px\"\n },\n row: {\n marginX: gap,\n marginY: 0,\n borderInlineStartWidth: \"1px\",\n borderTopWidth: 0\n },\n \"row-reverse\": {\n marginX: gap,\n marginY: 0,\n borderInlineStartWidth: \"1px\",\n borderTopWidth: 0\n }\n };\n return {\n \"&\": mapObject(direction, (value) => styles[value])\n };\n}\n\nexport { getSeparatorStyles };\n","\"use strict\";\n\"use client\";\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, useMemo, cloneElement, Fragment, Children, isValidElement } from 'react';\nimport { cx } from '../../utils/cx.js';\nimport { chakra } from '../../styled-system/factory.js';\nimport { getSeparatorStyles } from './get-separator-style.js';\n\nfunction getValidChildren(children) {\n return Children.toArray(children).filter(\n (child) => isValidElement(child)\n );\n}\nconst Stack = forwardRef(\n function Stack2(props, ref) {\n const {\n direction = \"column\",\n align,\n justify,\n gap = \"0.5rem\",\n wrap,\n children,\n separator,\n className,\n ...rest\n } = props;\n const separatorStyle = useMemo(\n () => getSeparatorStyles({ gap, direction }),\n [gap, direction]\n );\n const clones = useMemo(() => {\n if (!separator) return children;\n return getValidChildren(children).map((child, index, arr) => {\n const key = typeof child.key !== \"undefined\" ? child.key : index;\n const sep = cloneElement(separator, {\n css: [separatorStyle, separator.props.css]\n });\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n child,\n index === arr.length - 1 ? null : sep\n ] }, key);\n });\n }, [children, separator, separatorStyle]);\n return /* @__PURE__ */ jsx(\n chakra.div,\n {\n ref,\n display: \"flex\",\n alignItems: align,\n justifyContent: justify,\n flexDirection: direction,\n flexWrap: wrap,\n gap: separator ? void 0 : gap,\n className: cx(\"chakra-stack\", className),\n ...rest,\n children: clones\n }\n );\n }\n);\n\nexport { Stack };\n"],"names":["getSeparatorStyles","options","gap","direction","styles","mapObject","value","getValidChildren","children","Children","child","isValidElement","Stack","forwardRef","props","ref","align","justify","wrap","separator","className","rest","separatorStyle","useMemo","clones","index","arr","key","sep","cloneElement","jsxs","Fragment","jsx","chakra","cx"],"mappings":";;;;AAGA,SAASA,EAAmBC,GAAS;AACnC,QAAM,EAAE,KAAAC,GAAK,WAAAC,EAAS,IAAKF,GACrBG,IAAS;AAAA,IACb,QAAQ;AAAA,MACN,SAASF;AAAA,MACT,SAAS;AAAA,MACT,wBAAwB;AAAA,MACxB,gBAAgB;AAAA,IACjB;AAAA,IACD,kBAAkB;AAAA,MAChB,SAASA;AAAA,MACT,SAAS;AAAA,MACT,wBAAwB;AAAA,MACxB,gBAAgB;AAAA,IACjB;AAAA,IACD,KAAK;AAAA,MACH,SAASA;AAAA,MACT,SAAS;AAAA,MACT,wBAAwB;AAAA,MACxB,gBAAgB;AAAA,IACjB;AAAA,IACD,eAAe;AAAA,MACb,SAASA;AAAA,MACT,SAAS;AAAA,MACT,wBAAwB;AAAA,MACxB,gBAAgB;AAAA,IACtB;AAAA,EACG;AACD,SAAO;AAAA,IACL,KAAKG,EAAUF,GAAW,CAACG,MAAUF,EAAOE,CAAK,CAAC;AAAA,EACnD;AACH;AC1BA,SAASC,EAAiBC,GAAU;AAClC,SAAOC,EAAS,QAAQD,CAAQ,EAAE;AAAA,IAChC,CAACE,MAAUC,EAAeD,CAAK;AAAA,EAChC;AACH;AACK,MAACE,IAAQC;AAAA,EACZ,SAAgBC,GAAOC,GAAK;AAC1B,UAAM;AAAA,MACJ,WAAAZ,IAAY;AAAA,MACZ,OAAAa;AAAA,MACA,SAAAC;AAAA,MACA,KAAAf,IAAM;AAAA,MACN,MAAAgB;AAAA,MACA,UAAAV;AAAA,MACA,WAAAW;AAAA,MACA,WAAAC;AAAA,MACA,GAAGC;AAAA,IACT,IAAQP,GACEQ,IAAiBC;AAAA,MACrB,MAAMvB,EAAmB,EAAE,KAAAE,GAAK,WAAAC,GAAW;AAAA,MAC3C,CAACD,GAAKC,CAAS;AAAA,IAChB,GACKqB,IAASD,EAAQ,MAChBJ,IACEZ,EAAiBC,CAAQ,EAAE,IAAI,CAACE,GAAOe,GAAOC,MAAQ;AAC3D,YAAMC,IAAM,OAAOjB,EAAM,MAAQ,MAAcA,EAAM,MAAMe,GACrDG,IAAMC,EAAaV,GAAW;AAAA,QAClC,KAAK,CAACG,GAAgBH,EAAU,MAAM,GAAG;AAAA,MACnD,CAAS;AACD,aAAuBW,gBAAAA,EAAI,KAACC,GAAU,EAAE,UAAU;AAAA,QAChDrB;AAAA,QACAe,MAAUC,EAAI,SAAS,IAAI,OAAOE;AAAA,MACnC,EAAA,GAAID,CAAG;AAAA,IAChB,CAAO,IAVsBnB,GAWtB,CAACA,GAAUW,GAAWG,CAAc,CAAC;AACxC,WAAuBU,gBAAAA,EAAG;AAAA,MACxBC,EAAO;AAAA,MACP;AAAA,QACE,KAAAlB;AAAA,QACA,SAAS;AAAA,QACT,YAAYC;AAAA,QACZ,gBAAgBC;AAAA,QAChB,eAAed;AAAA,QACf,UAAUe;AAAA,QACV,KAAKC,IAAY,SAASjB;AAAA,QAC1B,WAAWgC,EAAG,gBAAgBd,CAAS;AAAA,QACvC,GAAGC;AAAA,QACH,UAAUG;AAAA,MAClB;AAAA,IACK;AAAA,EACL;AACA;","x_google_ignoreList":[0,1]}
@@ -1,2 +1,2 @@
1
- "use strict";const c=require("./jsx-runtime-BjDatQAs.js"),p=require("./avatar.component-C0lDpuBh.js"),m=({type:l="Client",...e})=>{const{name:o,tooltipProps:t={placement:"top",...e.tooltipProps},onClick:s}=e,n={variant:"outlineYellow",tooltipProps:{...t,label:t?.label||`${o} (Test Client)`}},r={iconName:"cellphone",tooltipProps:{...t,label:t?.label||`Text messages sent from ${o||"unknown number"}`}},i={Automated:{iconName:"robot",backgroundColor:"background.primary",hideBorder:!0,color:"text.contrast",size:"sm",showTooltip:!1,cursor:"default"},Client:{},Clinic:{variant:"outlineAccent",name:o||"Sys"},SMS:r,TestClient:n};return c.jsxRuntimeExports.jsx(p.Avatar,{className:"StyledAvatar","data-testid":`kibble-styled-avatar-${l}`,onClick:a=>{a.stopPropagation(),s&&s(a)},...e,...i[l]})},u=["Client","SMS","TestClient","Automated","Clinic"];exports.StyledAvatar=m;exports.styledAvatarTypes=u;
2
- //# sourceMappingURL=styledAvatar.types-BT8cujaA.js.map
1
+ "use strict";const c=require("./jsx-runtime-BjDatQAs.js"),p=require("./avatar.component-Bey9eGEz.js"),m=({type:l="Client",...e})=>{const{name:o,tooltipProps:t={placement:"top",...e.tooltipProps},onClick:s}=e,n={variant:"outlineYellow",tooltipProps:{...t,label:t?.label||`${o} (Test Client)`}},r={iconName:"cellphone",tooltipProps:{...t,label:t?.label||`Text messages sent from ${o||"unknown number"}`}},i={Automated:{iconName:"robot",backgroundColor:"background.primary",hideBorder:!0,color:"text.contrast",size:"sm",showTooltip:!1,cursor:"default"},Client:{},Clinic:{variant:"outlineAccent",name:o||"Sys"},SMS:r,TestClient:n};return c.jsxRuntimeExports.jsx(p.Avatar,{className:"StyledAvatar","data-testid":`kibble-styled-avatar-${l}`,onClick:a=>{a.stopPropagation(),s&&s(a)},...e,...i[l]})},u=["Client","SMS","TestClient","Automated","Clinic"];exports.StyledAvatar=m;exports.styledAvatarTypes=u;
2
+ //# sourceMappingURL=styledAvatar.types-BCZZbY0b.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styledAvatar.types-BT8cujaA.js","sources":["../../src/components/StyledAvatar/styledAvatar.component.tsx","../../src/components/StyledAvatar/styledAvatar.types.ts"],"sourcesContent":["import React from \"react\";\nimport { Avatar, AvatarProps } from \"components/Avatar/avatar.component\";\nimport { StyledAvatarType } from \"./styledAvatar.types\";\n\nexport interface StyledAvatarProps extends AvatarProps {\n type?: StyledAvatarType;\n}\n\nexport const StyledAvatar = ({\n type = \"Client\",\n ...rest\n}: StyledAvatarProps): React.JSX.Element => {\n const {\n name,\n tooltipProps = { placement: \"top\", ...rest.tooltipProps },\n onClick,\n } = rest;\n\n const testClientStyleProps: Partial<AvatarProps> = {\n variant: \"outlineYellow\",\n tooltipProps: {\n ...tooltipProps,\n label: tooltipProps?.label || `${name} (Test Client)`,\n },\n };\n\n const smsStyleProps: Partial<AvatarProps> = {\n iconName: \"cellphone\",\n tooltipProps: {\n ...tooltipProps,\n label:\n tooltipProps?.label ||\n `Text messages sent from ${name || \"unknown number\"}`,\n },\n };\n\n const automatedStyleProps: Partial<AvatarProps> = {\n iconName: \"robot\",\n backgroundColor: \"background.primary\",\n hideBorder: true,\n color: \"text.contrast\",\n size: \"sm\",\n showTooltip: false,\n cursor: \"default\",\n };\n\n const clinicStyleProps: Partial<AvatarProps> = {\n variant: \"outlineAccent\",\n name: name || \"Sys\",\n };\n\n const styleProps: Record<StyledAvatarType, Partial<AvatarProps>> = {\n Automated: automatedStyleProps,\n Client: {},\n Clinic: clinicStyleProps,\n SMS: smsStyleProps,\n TestClient: testClientStyleProps,\n };\n\n return (\n <Avatar\n className=\"StyledAvatar\"\n data-testid={`kibble-styled-avatar-${type}`}\n onClick={(e): void => {\n e.stopPropagation();\n if (onClick) {\n onClick(e);\n }\n }}\n {...rest}\n {...styleProps[type]}\n />\n );\n};\n","export const styledAvatarTypes = [\n \"Client\",\n \"SMS\",\n \"TestClient\",\n \"Automated\",\n \"Clinic\",\n] as const;\nexport type StyledAvatarType = (typeof styledAvatarTypes)[number];\n"],"names":["StyledAvatar","type","rest","name","tooltipProps","onClick","testClientStyleProps","smsStyleProps","styleProps","jsx","Avatar","e","styledAvatarTypes"],"mappings":"sGAQaA,EAAe,CAAC,CAC3B,KAAAC,EAAO,SACP,GAAGC,CACL,IAA4C,CACpC,KAAA,CACJ,KAAAC,EACA,aAAAC,EAAe,CAAE,UAAW,MAAO,GAAGF,EAAK,YAAa,EACxD,QAAAG,CAAA,EACEH,EAEEI,EAA6C,CACjD,QAAS,gBACT,aAAc,CACZ,GAAGF,EACH,MAAOA,GAAc,OAAS,GAAGD,CAAI,gBAAA,CAEzC,EAEMI,EAAsC,CAC1C,SAAU,YACV,aAAc,CACZ,GAAGH,EACH,MACEA,GAAc,OACd,2BAA2BD,GAAQ,gBAAgB,EAAA,CAEzD,EAiBMK,EAA6D,CACjE,UAhBgD,CAChD,SAAU,QACV,gBAAiB,qBACjB,WAAY,GACZ,MAAO,gBACP,KAAM,KACN,YAAa,GACb,OAAQ,SACV,EASE,OAAQ,CAAC,EACT,OAR6C,CAC7C,QAAS,gBACT,KAAML,GAAQ,KAChB,EAME,IAAKI,EACL,WAAYD,CACd,EAGE,OAAAG,EAAA,kBAAA,IAACC,EAAA,OAAA,CACC,UAAU,eACV,cAAa,wBAAwBT,CAAI,GACzC,QAAUU,GAAY,CACpBA,EAAE,gBAAgB,EACdN,GACFA,EAAQM,CAAC,CAEb,EACC,GAAGT,EACH,GAAGM,EAAWP,CAAI,CAAA,CACrB,CAEJ,ECzEaW,EAAoB,CAC/B,SACA,MACA,aACA,YACA,QACF"}
1
+ {"version":3,"file":"styledAvatar.types-BCZZbY0b.js","sources":["../../src/components/StyledAvatar/styledAvatar.component.tsx","../../src/components/StyledAvatar/styledAvatar.types.ts"],"sourcesContent":["import React from \"react\";\nimport { Avatar, AvatarProps } from \"components/Avatar/avatar.component\";\nimport { StyledAvatarType } from \"./styledAvatar.types\";\n\nexport interface StyledAvatarProps extends AvatarProps {\n type?: StyledAvatarType;\n}\n\nexport const StyledAvatar = ({\n type = \"Client\",\n ...rest\n}: StyledAvatarProps): React.JSX.Element => {\n const {\n name,\n tooltipProps = { placement: \"top\", ...rest.tooltipProps },\n onClick,\n } = rest;\n\n const testClientStyleProps: Partial<AvatarProps> = {\n variant: \"outlineYellow\",\n tooltipProps: {\n ...tooltipProps,\n label: tooltipProps?.label || `${name} (Test Client)`,\n },\n };\n\n const smsStyleProps: Partial<AvatarProps> = {\n iconName: \"cellphone\",\n tooltipProps: {\n ...tooltipProps,\n label:\n tooltipProps?.label ||\n `Text messages sent from ${name || \"unknown number\"}`,\n },\n };\n\n const automatedStyleProps: Partial<AvatarProps> = {\n iconName: \"robot\",\n backgroundColor: \"background.primary\",\n hideBorder: true,\n color: \"text.contrast\",\n size: \"sm\",\n showTooltip: false,\n cursor: \"default\",\n };\n\n const clinicStyleProps: Partial<AvatarProps> = {\n variant: \"outlineAccent\",\n name: name || \"Sys\",\n };\n\n const styleProps: Record<StyledAvatarType, Partial<AvatarProps>> = {\n Automated: automatedStyleProps,\n Client: {},\n Clinic: clinicStyleProps,\n SMS: smsStyleProps,\n TestClient: testClientStyleProps,\n };\n\n return (\n <Avatar\n className=\"StyledAvatar\"\n data-testid={`kibble-styled-avatar-${type}`}\n onClick={(e): void => {\n e.stopPropagation();\n if (onClick) {\n onClick(e);\n }\n }}\n {...rest}\n {...styleProps[type]}\n />\n );\n};\n","export const styledAvatarTypes = [\n \"Client\",\n \"SMS\",\n \"TestClient\",\n \"Automated\",\n \"Clinic\",\n] as const;\nexport type StyledAvatarType = (typeof styledAvatarTypes)[number];\n"],"names":["StyledAvatar","type","rest","name","tooltipProps","onClick","testClientStyleProps","smsStyleProps","styleProps","jsx","Avatar","e","styledAvatarTypes"],"mappings":"sGAQaA,EAAe,CAAC,CAC3B,KAAAC,EAAO,SACP,GAAGC,CACL,IAA4C,CACpC,KAAA,CACJ,KAAAC,EACA,aAAAC,EAAe,CAAE,UAAW,MAAO,GAAGF,EAAK,YAAa,EACxD,QAAAG,CAAA,EACEH,EAEEI,EAA6C,CACjD,QAAS,gBACT,aAAc,CACZ,GAAGF,EACH,MAAOA,GAAc,OAAS,GAAGD,CAAI,gBAAA,CAEzC,EAEMI,EAAsC,CAC1C,SAAU,YACV,aAAc,CACZ,GAAGH,EACH,MACEA,GAAc,OACd,2BAA2BD,GAAQ,gBAAgB,EAAA,CAEzD,EAiBMK,EAA6D,CACjE,UAhBgD,CAChD,SAAU,QACV,gBAAiB,qBACjB,WAAY,GACZ,MAAO,gBACP,KAAM,KACN,YAAa,GACb,OAAQ,SACV,EASE,OAAQ,CAAC,EACT,OAR6C,CAC7C,QAAS,gBACT,KAAML,GAAQ,KAChB,EAME,IAAKI,EACL,WAAYD,CACd,EAGE,OAAAG,EAAA,kBAAA,IAACC,EAAA,OAAA,CACC,UAAU,eACV,cAAa,wBAAwBT,CAAI,GACzC,QAAUU,GAAY,CACpBA,EAAE,gBAAgB,EACdN,GACFA,EAAQM,CAAC,CAEb,EACC,GAAGT,EACH,GAAGM,EAAWP,CAAI,CAAA,CACrB,CAEJ,ECzEaW,EAAoB,CAC/B,SACA,MACA,aACA,YACA,QACF"}
@@ -1,5 +1,5 @@
1
1
  import { j as c } from "./jsx-runtime-C5mzlN2N.js";
2
- import { A as p } from "./avatar.component-oOJ66hzm.js";
2
+ import { A as p } from "./avatar.component-DOnkegH0.js";
3
3
  const y = ({
4
4
  type: l = "Client",
5
5
  ...o
@@ -61,4 +61,4 @@ export {
61
61
  y as S,
62
62
  C as s
63
63
  };
64
- //# sourceMappingURL=styledAvatar.types-DgeupAct.js.map
64
+ //# sourceMappingURL=styledAvatar.types-CHV5SPNV.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styledAvatar.types-DgeupAct.js","sources":["../../src/components/StyledAvatar/styledAvatar.component.tsx","../../src/components/StyledAvatar/styledAvatar.types.ts"],"sourcesContent":["import React from \"react\";\nimport { Avatar, AvatarProps } from \"components/Avatar/avatar.component\";\nimport { StyledAvatarType } from \"./styledAvatar.types\";\n\nexport interface StyledAvatarProps extends AvatarProps {\n type?: StyledAvatarType;\n}\n\nexport const StyledAvatar = ({\n type = \"Client\",\n ...rest\n}: StyledAvatarProps): React.JSX.Element => {\n const {\n name,\n tooltipProps = { placement: \"top\", ...rest.tooltipProps },\n onClick,\n } = rest;\n\n const testClientStyleProps: Partial<AvatarProps> = {\n variant: \"outlineYellow\",\n tooltipProps: {\n ...tooltipProps,\n label: tooltipProps?.label || `${name} (Test Client)`,\n },\n };\n\n const smsStyleProps: Partial<AvatarProps> = {\n iconName: \"cellphone\",\n tooltipProps: {\n ...tooltipProps,\n label:\n tooltipProps?.label ||\n `Text messages sent from ${name || \"unknown number\"}`,\n },\n };\n\n const automatedStyleProps: Partial<AvatarProps> = {\n iconName: \"robot\",\n backgroundColor: \"background.primary\",\n hideBorder: true,\n color: \"text.contrast\",\n size: \"sm\",\n showTooltip: false,\n cursor: \"default\",\n };\n\n const clinicStyleProps: Partial<AvatarProps> = {\n variant: \"outlineAccent\",\n name: name || \"Sys\",\n };\n\n const styleProps: Record<StyledAvatarType, Partial<AvatarProps>> = {\n Automated: automatedStyleProps,\n Client: {},\n Clinic: clinicStyleProps,\n SMS: smsStyleProps,\n TestClient: testClientStyleProps,\n };\n\n return (\n <Avatar\n className=\"StyledAvatar\"\n data-testid={`kibble-styled-avatar-${type}`}\n onClick={(e): void => {\n e.stopPropagation();\n if (onClick) {\n onClick(e);\n }\n }}\n {...rest}\n {...styleProps[type]}\n />\n );\n};\n","export const styledAvatarTypes = [\n \"Client\",\n \"SMS\",\n \"TestClient\",\n \"Automated\",\n \"Clinic\",\n] as const;\nexport type StyledAvatarType = (typeof styledAvatarTypes)[number];\n"],"names":["StyledAvatar","type","rest","name","tooltipProps","onClick","testClientStyleProps","smsStyleProps","styleProps","jsx","Avatar","e","styledAvatarTypes"],"mappings":";;AAQO,MAAMA,IAAe,CAAC;AAAA,EAC3B,MAAAC,IAAO;AAAA,EACP,GAAGC;AACL,MAA4C;AACpC,QAAA;AAAA,IACJ,MAAAC;AAAA,IACA,cAAAC,IAAe,EAAE,WAAW,OAAO,GAAGF,EAAK,aAAa;AAAA,IACxD,SAAAG;AAAA,EAAA,IACEH,GAEEI,IAA6C;AAAA,IACjD,SAAS;AAAA,IACT,cAAc;AAAA,MACZ,GAAGF;AAAA,MACH,OAAOA,GAAc,SAAS,GAAGD,CAAI;AAAA,IAAA;AAAA,EAEzC,GAEMI,IAAsC;AAAA,IAC1C,UAAU;AAAA,IACV,cAAc;AAAA,MACZ,GAAGH;AAAA,MACH,OACEA,GAAc,SACd,2BAA2BD,KAAQ,gBAAgB;AAAA,IAAA;AAAA,EAEzD,GAiBMK,IAA6D;AAAA,IACjE,WAhBgD;AAAA,MAChD,UAAU;AAAA,MACV,iBAAiB;AAAA,MACjB,YAAY;AAAA,MACZ,OAAO;AAAA,MACP,MAAM;AAAA,MACN,aAAa;AAAA,MACb,QAAQ;AAAA,IACV;AAAA,IASE,QAAQ,CAAC;AAAA,IACT,QAR6C;AAAA,MAC7C,SAAS;AAAA,MACT,MAAML,KAAQ;AAAA,IAChB;AAAA,IAME,KAAKI;AAAA,IACL,YAAYD;AAAA,EACd;AAGE,SAAAG,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,eAAa,wBAAwBT,CAAI;AAAA,MACzC,SAAS,CAACU,MAAY;AACpB,QAAAA,EAAE,gBAAgB,GACdN,KACFA,EAAQM,CAAC;AAAA,MAEb;AAAA,MACC,GAAGT;AAAA,MACH,GAAGM,EAAWP,CAAI;AAAA,IAAA;AAAA,EACrB;AAEJ,GCzEaW,IAAoB;AAAA,EAC/B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;"}
1
+ {"version":3,"file":"styledAvatar.types-CHV5SPNV.js","sources":["../../src/components/StyledAvatar/styledAvatar.component.tsx","../../src/components/StyledAvatar/styledAvatar.types.ts"],"sourcesContent":["import React from \"react\";\nimport { Avatar, AvatarProps } from \"components/Avatar/avatar.component\";\nimport { StyledAvatarType } from \"./styledAvatar.types\";\n\nexport interface StyledAvatarProps extends AvatarProps {\n type?: StyledAvatarType;\n}\n\nexport const StyledAvatar = ({\n type = \"Client\",\n ...rest\n}: StyledAvatarProps): React.JSX.Element => {\n const {\n name,\n tooltipProps = { placement: \"top\", ...rest.tooltipProps },\n onClick,\n } = rest;\n\n const testClientStyleProps: Partial<AvatarProps> = {\n variant: \"outlineYellow\",\n tooltipProps: {\n ...tooltipProps,\n label: tooltipProps?.label || `${name} (Test Client)`,\n },\n };\n\n const smsStyleProps: Partial<AvatarProps> = {\n iconName: \"cellphone\",\n tooltipProps: {\n ...tooltipProps,\n label:\n tooltipProps?.label ||\n `Text messages sent from ${name || \"unknown number\"}`,\n },\n };\n\n const automatedStyleProps: Partial<AvatarProps> = {\n iconName: \"robot\",\n backgroundColor: \"background.primary\",\n hideBorder: true,\n color: \"text.contrast\",\n size: \"sm\",\n showTooltip: false,\n cursor: \"default\",\n };\n\n const clinicStyleProps: Partial<AvatarProps> = {\n variant: \"outlineAccent\",\n name: name || \"Sys\",\n };\n\n const styleProps: Record<StyledAvatarType, Partial<AvatarProps>> = {\n Automated: automatedStyleProps,\n Client: {},\n Clinic: clinicStyleProps,\n SMS: smsStyleProps,\n TestClient: testClientStyleProps,\n };\n\n return (\n <Avatar\n className=\"StyledAvatar\"\n data-testid={`kibble-styled-avatar-${type}`}\n onClick={(e): void => {\n e.stopPropagation();\n if (onClick) {\n onClick(e);\n }\n }}\n {...rest}\n {...styleProps[type]}\n />\n );\n};\n","export const styledAvatarTypes = [\n \"Client\",\n \"SMS\",\n \"TestClient\",\n \"Automated\",\n \"Clinic\",\n] as const;\nexport type StyledAvatarType = (typeof styledAvatarTypes)[number];\n"],"names":["StyledAvatar","type","rest","name","tooltipProps","onClick","testClientStyleProps","smsStyleProps","styleProps","jsx","Avatar","e","styledAvatarTypes"],"mappings":";;AAQO,MAAMA,IAAe,CAAC;AAAA,EAC3B,MAAAC,IAAO;AAAA,EACP,GAAGC;AACL,MAA4C;AACpC,QAAA;AAAA,IACJ,MAAAC;AAAA,IACA,cAAAC,IAAe,EAAE,WAAW,OAAO,GAAGF,EAAK,aAAa;AAAA,IACxD,SAAAG;AAAA,EAAA,IACEH,GAEEI,IAA6C;AAAA,IACjD,SAAS;AAAA,IACT,cAAc;AAAA,MACZ,GAAGF;AAAA,MACH,OAAOA,GAAc,SAAS,GAAGD,CAAI;AAAA,IAAA;AAAA,EAEzC,GAEMI,IAAsC;AAAA,IAC1C,UAAU;AAAA,IACV,cAAc;AAAA,MACZ,GAAGH;AAAA,MACH,OACEA,GAAc,SACd,2BAA2BD,KAAQ,gBAAgB;AAAA,IAAA;AAAA,EAEzD,GAiBMK,IAA6D;AAAA,IACjE,WAhBgD;AAAA,MAChD,UAAU;AAAA,MACV,iBAAiB;AAAA,MACjB,YAAY;AAAA,MACZ,OAAO;AAAA,MACP,MAAM;AAAA,MACN,aAAa;AAAA,MACb,QAAQ;AAAA,IACV;AAAA,IASE,QAAQ,CAAC;AAAA,IACT,QAR6C;AAAA,MAC7C,SAAS;AAAA,MACT,MAAML,KAAQ;AAAA,IAChB;AAAA,IAME,KAAKI;AAAA,IACL,YAAYD;AAAA,EACd;AAGE,SAAAG,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,eAAa,wBAAwBT,CAAI;AAAA,MACzC,SAAS,CAACU,MAAY;AACpB,QAAAA,EAAE,gBAAgB,GACdN,KACFA,EAAQM,CAAC;AAAA,MAEb;AAAA,MACC,GAAGT;AAAA,MACH,GAAGM,EAAWP,CAAI;AAAA,IAAA;AAAA,EACrB;AAEJ,GCzEaW,IAAoB;AAAA,EAC/B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;"}
@@ -1,7 +1,7 @@
1
1
  import { j as d } from "./jsx-runtime-C5mzlN2N.js";
2
- import { b as x } from "./config-C4FE-eBu.js";
3
- import { u as c } from "./use-recipe-B7BYguEn.js";
4
- import { B as h } from "./box-y05hq0PT.js";
2
+ import { b as x } from "./config-DlTdf-Yt.js";
3
+ import { u as c } from "./use-recipe-d63ABaZ3.js";
4
+ import { B as h } from "./box-Ck9I7FYv.js";
5
5
  const m = {
6
6
  xs: {
7
7
  borderRadius: "xs",
@@ -64,4 +64,4 @@ export {
64
64
  g as S,
65
65
  f as s
66
66
  };
67
- //# sourceMappingURL=swatch.types-DUBu3p9m.js.map
67
+ //# sourceMappingURL=swatch.types-DbgA3RWc.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"swatch.types-DUBu3p9m.js","sources":["../../src/components/Swatch/swatch.recipe.ts","../../src/components/Swatch/swatch.component.tsx","../../src/components/Swatch/swatch.types.ts"],"sourcesContent":["import {\n defineRecipe,\n SystemStyleObject,\n} from \"@chakra-ui/react/styled-system\";\nimport { SwatchSize } from \"./swatch.types\";\n\nconst swatchSizeStyles: Record<SwatchSize, SystemStyleObject> = {\n xs: {\n borderRadius: \"xs\",\n height: \"14px\",\n width: \"14px\",\n },\n sm: {\n borderRadius: \"3px\",\n height: \"16px\",\n width: \"16px\",\n },\n md: {\n borderRadius: \"4px\",\n height: \"20px\",\n width: \"20px\",\n },\n lg: {\n borderRadius: \"5px\",\n height: \"24px\",\n width: \"24px\",\n },\n xl: {\n borderRadius: \"sm\",\n height: \"32px\",\n width: \"32px\",\n },\n};\n\nexport const swatchRecipe = defineRecipe({\n base: {\n display: \"inline-block\",\n border: \"1px\",\n },\n variants: {\n size: swatchSizeStyles,\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n","import React from \"react\";\nimport { Box, BoxProps } from \"@chakra-ui/react/box\";\nimport { SwatchSize } from \"./swatch.types\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { swatchRecipe } from \"./swatch.recipe\";\n\nexport interface BaseSwatchProps {\n size?: SwatchSize;\n}\n\nexport type SwatchProps = BaseSwatchProps & Omit<BoxProps, \"children\">;\n\nexport const Swatch = ({\n size = \"md\",\n color,\n backgroundColor,\n bgColor,\n borderColor,\n ...rest\n}: SwatchProps): React.JSX.Element => {\n const recipe = useRecipe({ recipe: swatchRecipe });\n const styles = recipe({ size });\n const _swatchColor = bgColor || backgroundColor || color || \"transparent\";\n\n return (\n <Box\n className=\"Swatch\"\n data-testid=\"kibble-swatch\"\n css={styles}\n bg={_swatchColor}\n borderColor={borderColor || _swatchColor}\n {...rest}\n />\n );\n};\n","export const swatchSizes = [\"xs\", \"sm\", \"md\", \"lg\", \"xl\"] as const;\nexport type SwatchSize = (typeof swatchSizes)[number];\n"],"names":["swatchSizeStyles","swatchRecipe","defineRecipe","Swatch","size","color","backgroundColor","bgColor","borderColor","rest","styles","useRecipe","_swatchColor","jsx","Box","swatchSizes"],"mappings":";;;;AAMA,MAAMA,IAA0D;AAAA,EAC9D,IAAI;AAAA,IACF,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,IAAI;AAAA,IACF,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,IAAI;AAAA,IACF,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,IAAI;AAAA,IACF,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,IAAI;AAAA,IACF,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,OAAO;AAAA,EAAA;AAEX,GAEaC,IAAeC,EAAa;AAAA,EACvC,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,QAAQ;AAAA,EACV;AAAA,EACA,UAAU;AAAA,IACR,MAAMF;AAAA,EACR;AAAA,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,EAAA;AAEV,CAAC,GCjCYG,IAAS,CAAC;AAAA,EACrB,MAAAC,IAAO;AAAA,EACP,OAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,SAAAC;AAAA,EACA,aAAAC;AAAA,EACA,GAAGC;AACL,MAAsC;AAEpC,QAAMC,IADSC,EAAU,EAAE,QAAQV,GAAc,EAC3B,EAAE,MAAAG,GAAM,GACxBQ,IAAeL,KAAWD,KAAmBD,KAAS;AAG1D,SAAAQ,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,KAAKJ;AAAA,MACL,IAAIE;AAAA,MACJ,aAAaJ,KAAeI;AAAA,MAC3B,GAAGH;AAAA,IAAA;AAAA,EACN;AAEJ,GClCaM,IAAc,CAAC,MAAM,MAAM,MAAM,MAAM,IAAI;"}
1
+ {"version":3,"file":"swatch.types-DbgA3RWc.js","sources":["../../src/components/Swatch/swatch.recipe.ts","../../src/components/Swatch/swatch.component.tsx","../../src/components/Swatch/swatch.types.ts"],"sourcesContent":["import {\n defineRecipe,\n SystemStyleObject,\n} from \"@chakra-ui/react/styled-system\";\nimport { SwatchSize } from \"./swatch.types\";\n\nconst swatchSizeStyles: Record<SwatchSize, SystemStyleObject> = {\n xs: {\n borderRadius: \"xs\",\n height: \"14px\",\n width: \"14px\",\n },\n sm: {\n borderRadius: \"3px\",\n height: \"16px\",\n width: \"16px\",\n },\n md: {\n borderRadius: \"4px\",\n height: \"20px\",\n width: \"20px\",\n },\n lg: {\n borderRadius: \"5px\",\n height: \"24px\",\n width: \"24px\",\n },\n xl: {\n borderRadius: \"sm\",\n height: \"32px\",\n width: \"32px\",\n },\n};\n\nexport const swatchRecipe = defineRecipe({\n base: {\n display: \"inline-block\",\n border: \"1px\",\n },\n variants: {\n size: swatchSizeStyles,\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n","import React from \"react\";\nimport { Box, BoxProps } from \"@chakra-ui/react/box\";\nimport { SwatchSize } from \"./swatch.types\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { swatchRecipe } from \"./swatch.recipe\";\n\nexport interface BaseSwatchProps {\n size?: SwatchSize;\n}\n\nexport type SwatchProps = BaseSwatchProps & Omit<BoxProps, \"children\">;\n\nexport const Swatch = ({\n size = \"md\",\n color,\n backgroundColor,\n bgColor,\n borderColor,\n ...rest\n}: SwatchProps): React.JSX.Element => {\n const recipe = useRecipe({ recipe: swatchRecipe });\n const styles = recipe({ size });\n const _swatchColor = bgColor || backgroundColor || color || \"transparent\";\n\n return (\n <Box\n className=\"Swatch\"\n data-testid=\"kibble-swatch\"\n css={styles}\n bg={_swatchColor}\n borderColor={borderColor || _swatchColor}\n {...rest}\n />\n );\n};\n","export const swatchSizes = [\"xs\", \"sm\", \"md\", \"lg\", \"xl\"] as const;\nexport type SwatchSize = (typeof swatchSizes)[number];\n"],"names":["swatchSizeStyles","swatchRecipe","defineRecipe","Swatch","size","color","backgroundColor","bgColor","borderColor","rest","styles","useRecipe","_swatchColor","jsx","Box","swatchSizes"],"mappings":";;;;AAMA,MAAMA,IAA0D;AAAA,EAC9D,IAAI;AAAA,IACF,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,IAAI;AAAA,IACF,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,IAAI;AAAA,IACF,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,IAAI;AAAA,IACF,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,IAAI;AAAA,IACF,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,OAAO;AAAA,EAAA;AAEX,GAEaC,IAAeC,EAAa;AAAA,EACvC,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,QAAQ;AAAA,EACV;AAAA,EACA,UAAU;AAAA,IACR,MAAMF;AAAA,EACR;AAAA,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,EAAA;AAEV,CAAC,GCjCYG,IAAS,CAAC;AAAA,EACrB,MAAAC,IAAO;AAAA,EACP,OAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,SAAAC;AAAA,EACA,aAAAC;AAAA,EACA,GAAGC;AACL,MAAsC;AAEpC,QAAMC,IADSC,EAAU,EAAE,QAAQV,GAAc,EAC3B,EAAE,MAAAG,GAAM,GACxBQ,IAAeL,KAAWD,KAAmBD,KAAS;AAG1D,SAAAQ,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,KAAKJ;AAAA,MACL,IAAIE;AAAA,MACJ,aAAaJ,KAAeI;AAAA,MAC3B,GAAGH;AAAA,IAAA;AAAA,EACN;AAEJ,GClCaM,IAAc,CAAC,MAAM,MAAM,MAAM,MAAM,IAAI;"}
@@ -1,2 +1,2 @@
1
- "use strict";const d=require("./jsx-runtime-BjDatQAs.js"),x=require("./config-SdQux5od.js"),h=require("./use-recipe-N0abcau6.js"),p=require("./box-ca2FvcWF.js"),n={xs:{borderRadius:"xs",height:"14px",width:"14px"},sm:{borderRadius:"3px",height:"16px",width:"16px"},md:{borderRadius:"4px",height:"20px",width:"20px"},lg:{borderRadius:"5px",height:"24px",width:"24px"},xl:{borderRadius:"sm",height:"32px",width:"32px"}},u=x.defineRecipe({base:{display:"inline-block",border:"1px"},variants:{size:n},defaultVariants:{size:"md"}}),l=({size:s="md",color:t,backgroundColor:i,bgColor:r,borderColor:c,...a})=>{const o=h.useRecipe({recipe:u})({size:s}),e=r||i||t||"transparent";return d.jsxRuntimeExports.jsx(p.Box,{className:"Swatch","data-testid":"kibble-swatch",css:o,bg:e,borderColor:c||e,...a})},w=["xs","sm","md","lg","xl"];exports.Swatch=l;exports.swatchSizes=w;
2
- //# sourceMappingURL=swatch.types-CeCazVD3.js.map
1
+ "use strict";const d=require("./jsx-runtime-BjDatQAs.js"),x=require("./config-BFcXpdZo.js"),h=require("./use-recipe-DaPWl_pL.js"),p=require("./box-Baq7UBls.js"),n={xs:{borderRadius:"xs",height:"14px",width:"14px"},sm:{borderRadius:"3px",height:"16px",width:"16px"},md:{borderRadius:"4px",height:"20px",width:"20px"},lg:{borderRadius:"5px",height:"24px",width:"24px"},xl:{borderRadius:"sm",height:"32px",width:"32px"}},u=x.defineRecipe({base:{display:"inline-block",border:"1px"},variants:{size:n},defaultVariants:{size:"md"}}),l=({size:s="md",color:t,backgroundColor:i,bgColor:r,borderColor:c,...a})=>{const o=h.useRecipe({recipe:u})({size:s}),e=r||i||t||"transparent";return d.jsxRuntimeExports.jsx(p.Box,{className:"Swatch","data-testid":"kibble-swatch",css:o,bg:e,borderColor:c||e,...a})},w=["xs","sm","md","lg","xl"];exports.Swatch=l;exports.swatchSizes=w;
2
+ //# sourceMappingURL=swatch.types-DiX-4lpJ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"swatch.types-CeCazVD3.js","sources":["../../src/components/Swatch/swatch.recipe.ts","../../src/components/Swatch/swatch.component.tsx","../../src/components/Swatch/swatch.types.ts"],"sourcesContent":["import {\n defineRecipe,\n SystemStyleObject,\n} from \"@chakra-ui/react/styled-system\";\nimport { SwatchSize } from \"./swatch.types\";\n\nconst swatchSizeStyles: Record<SwatchSize, SystemStyleObject> = {\n xs: {\n borderRadius: \"xs\",\n height: \"14px\",\n width: \"14px\",\n },\n sm: {\n borderRadius: \"3px\",\n height: \"16px\",\n width: \"16px\",\n },\n md: {\n borderRadius: \"4px\",\n height: \"20px\",\n width: \"20px\",\n },\n lg: {\n borderRadius: \"5px\",\n height: \"24px\",\n width: \"24px\",\n },\n xl: {\n borderRadius: \"sm\",\n height: \"32px\",\n width: \"32px\",\n },\n};\n\nexport const swatchRecipe = defineRecipe({\n base: {\n display: \"inline-block\",\n border: \"1px\",\n },\n variants: {\n size: swatchSizeStyles,\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n","import React from \"react\";\nimport { Box, BoxProps } from \"@chakra-ui/react/box\";\nimport { SwatchSize } from \"./swatch.types\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { swatchRecipe } from \"./swatch.recipe\";\n\nexport interface BaseSwatchProps {\n size?: SwatchSize;\n}\n\nexport type SwatchProps = BaseSwatchProps & Omit<BoxProps, \"children\">;\n\nexport const Swatch = ({\n size = \"md\",\n color,\n backgroundColor,\n bgColor,\n borderColor,\n ...rest\n}: SwatchProps): React.JSX.Element => {\n const recipe = useRecipe({ recipe: swatchRecipe });\n const styles = recipe({ size });\n const _swatchColor = bgColor || backgroundColor || color || \"transparent\";\n\n return (\n <Box\n className=\"Swatch\"\n data-testid=\"kibble-swatch\"\n css={styles}\n bg={_swatchColor}\n borderColor={borderColor || _swatchColor}\n {...rest}\n />\n );\n};\n","export const swatchSizes = [\"xs\", \"sm\", \"md\", \"lg\", \"xl\"] as const;\nexport type SwatchSize = (typeof swatchSizes)[number];\n"],"names":["swatchSizeStyles","swatchRecipe","defineRecipe","Swatch","size","color","backgroundColor","bgColor","borderColor","rest","styles","useRecipe","_swatchColor","jsx","Box","swatchSizes"],"mappings":"iKAMMA,EAA0D,CAC9D,GAAI,CACF,aAAc,KACd,OAAQ,OACR,MAAO,MACT,EACA,GAAI,CACF,aAAc,MACd,OAAQ,OACR,MAAO,MACT,EACA,GAAI,CACF,aAAc,MACd,OAAQ,OACR,MAAO,MACT,EACA,GAAI,CACF,aAAc,MACd,OAAQ,OACR,MAAO,MACT,EACA,GAAI,CACF,aAAc,KACd,OAAQ,OACR,MAAO,MAAA,CAEX,EAEaC,EAAeC,EAAAA,aAAa,CACvC,KAAM,CACJ,QAAS,eACT,OAAQ,KACV,EACA,SAAU,CACR,KAAMF,CACR,EACA,gBAAiB,CACf,KAAM,IAAA,CAEV,CAAC,ECjCYG,EAAS,CAAC,CACrB,KAAAC,EAAO,KACP,MAAAC,EACA,gBAAAC,EACA,QAAAC,EACA,YAAAC,EACA,GAAGC,CACL,IAAsC,CAEpC,MAAMC,EADSC,EAAA,UAAU,CAAE,OAAQV,EAAc,EAC3B,CAAE,KAAAG,EAAM,EACxBQ,EAAeL,GAAWD,GAAmBD,GAAS,cAG1D,OAAAQ,EAAA,kBAAA,IAACC,EAAA,IAAA,CACC,UAAU,SACV,cAAY,gBACZ,IAAKJ,EACL,GAAIE,EACJ,YAAaJ,GAAeI,EAC3B,GAAGH,CAAA,CACN,CAEJ,EClCaM,EAAc,CAAC,KAAM,KAAM,KAAM,KAAM,IAAI"}
1
+ {"version":3,"file":"swatch.types-DiX-4lpJ.js","sources":["../../src/components/Swatch/swatch.recipe.ts","../../src/components/Swatch/swatch.component.tsx","../../src/components/Swatch/swatch.types.ts"],"sourcesContent":["import {\n defineRecipe,\n SystemStyleObject,\n} from \"@chakra-ui/react/styled-system\";\nimport { SwatchSize } from \"./swatch.types\";\n\nconst swatchSizeStyles: Record<SwatchSize, SystemStyleObject> = {\n xs: {\n borderRadius: \"xs\",\n height: \"14px\",\n width: \"14px\",\n },\n sm: {\n borderRadius: \"3px\",\n height: \"16px\",\n width: \"16px\",\n },\n md: {\n borderRadius: \"4px\",\n height: \"20px\",\n width: \"20px\",\n },\n lg: {\n borderRadius: \"5px\",\n height: \"24px\",\n width: \"24px\",\n },\n xl: {\n borderRadius: \"sm\",\n height: \"32px\",\n width: \"32px\",\n },\n};\n\nexport const swatchRecipe = defineRecipe({\n base: {\n display: \"inline-block\",\n border: \"1px\",\n },\n variants: {\n size: swatchSizeStyles,\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n","import React from \"react\";\nimport { Box, BoxProps } from \"@chakra-ui/react/box\";\nimport { SwatchSize } from \"./swatch.types\";\nimport { useRecipe } from \"@chakra-ui/react/styled-system\";\nimport { swatchRecipe } from \"./swatch.recipe\";\n\nexport interface BaseSwatchProps {\n size?: SwatchSize;\n}\n\nexport type SwatchProps = BaseSwatchProps & Omit<BoxProps, \"children\">;\n\nexport const Swatch = ({\n size = \"md\",\n color,\n backgroundColor,\n bgColor,\n borderColor,\n ...rest\n}: SwatchProps): React.JSX.Element => {\n const recipe = useRecipe({ recipe: swatchRecipe });\n const styles = recipe({ size });\n const _swatchColor = bgColor || backgroundColor || color || \"transparent\";\n\n return (\n <Box\n className=\"Swatch\"\n data-testid=\"kibble-swatch\"\n css={styles}\n bg={_swatchColor}\n borderColor={borderColor || _swatchColor}\n {...rest}\n />\n );\n};\n","export const swatchSizes = [\"xs\", \"sm\", \"md\", \"lg\", \"xl\"] as const;\nexport type SwatchSize = (typeof swatchSizes)[number];\n"],"names":["swatchSizeStyles","swatchRecipe","defineRecipe","Swatch","size","color","backgroundColor","bgColor","borderColor","rest","styles","useRecipe","_swatchColor","jsx","Box","swatchSizes"],"mappings":"iKAMMA,EAA0D,CAC9D,GAAI,CACF,aAAc,KACd,OAAQ,OACR,MAAO,MACT,EACA,GAAI,CACF,aAAc,MACd,OAAQ,OACR,MAAO,MACT,EACA,GAAI,CACF,aAAc,MACd,OAAQ,OACR,MAAO,MACT,EACA,GAAI,CACF,aAAc,MACd,OAAQ,OACR,MAAO,MACT,EACA,GAAI,CACF,aAAc,KACd,OAAQ,OACR,MAAO,MAAA,CAEX,EAEaC,EAAeC,EAAAA,aAAa,CACvC,KAAM,CACJ,QAAS,eACT,OAAQ,KACV,EACA,SAAU,CACR,KAAMF,CACR,EACA,gBAAiB,CACf,KAAM,IAAA,CAEV,CAAC,ECjCYG,EAAS,CAAC,CACrB,KAAAC,EAAO,KACP,MAAAC,EACA,gBAAAC,EACA,QAAAC,EACA,YAAAC,EACA,GAAGC,CACL,IAAsC,CAEpC,MAAMC,EADSC,EAAA,UAAU,CAAE,OAAQV,EAAc,EAC3B,CAAE,KAAAG,EAAM,EACxBQ,EAAeL,GAAWD,GAAmBD,GAAS,cAG1D,OAAAQ,EAAA,kBAAA,IAACC,EAAA,IAAA,CACC,UAAU,SACV,cAAY,gBACZ,IAAKJ,EACL,GAAIE,EACJ,YAAaJ,GAAeI,EAC3B,GAAGH,CAAA,CACN,CAEJ,EClCaM,EAAc,CAAC,KAAM,KAAM,KAAM,KAAM,IAAI"}
@@ -1,2 +1,2 @@
1
- "use strict";const i=require("./jsx-runtime-BjDatQAs.js"),c=require("react"),y=require("./withFormControl-DoOQ6oLs.js"),w=require("./attr-BMs6szZx.js"),E=require("./create-slot-recipe-context-D-pJ8fgs.js"),m=require("./factory-CkTX_WOU.js"),n=require("./use-locale-context-BdqHZ8L8.js"),f=require("./use-field-context--wBJQY1R.js"),l=require("./index-CZ42b9rT.js"),x=require("./index-DKKJDbpe.js"),q=t=>t&&t.__esModule?t:{default:t},N=q(c),[R,u]=n.createContext({name:"SwitchContext",hookName:"useSwitchContext",providerName:"<SwitchProvider />"}),S=c.forwardRef((t,e)=>{const r=u(),s=l.mergeProps(r.getControlProps(),t);return i.jsxRuntimeExports.jsx(n.ark.span,{...s,ref:e})});S.displayName="SwitchControl";const j=c.forwardRef((t,e)=>{const r=u(),s=l.mergeProps(r.getHiddenInputProps(),t),o=f.useFieldContext();return i.jsxRuntimeExports.jsx(n.ark.input,{"aria-describedby":o?.ariaDescribedby,...s,ref:e})});j.displayName="SwitchHiddenInput";const C=c.forwardRef((t,e)=>{const r=u(),s=l.mergeProps(r.getLabelProps(),t);return i.jsxRuntimeExports.jsx(n.ark.span,{...s,ref:e})});C.displayName="SwitchLabel";const I=t=>{const e=c.useId(),{getRootNode:r}=n.useEnvironmentContext(),{dir:s}=n.useLocaleContext(),o=f.useFieldContext(),a={id:e,ids:{label:o?.ids.label,hiddenInput:o?.ids.control},dir:s,disabled:o?.disabled,readOnly:o?.readOnly,invalid:o?.invalid,required:o?.required,getRootNode:r,...t},d=n.useMachine(x.machine,a);return x.connect(d,n.normalizeProps)},b=c.forwardRef((t,e)=>{const[r,s]=n.createSplitProps()(t,["checked","defaultChecked","disabled","form","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]),o=I(r),a=l.mergeProps(o.getRootProps(),s);return i.jsxRuntimeExports.jsx(R,{value:o,children:i.jsxRuntimeExports.jsx(n.ark.label,{...a,ref:e})})});b.displayName="SwitchRoot";const P=c.forwardRef((t,e)=>{const[{value:r},s]=n.createSplitProps()(t,["value"]),o=l.mergeProps(r.getRootProps(),s);return i.jsxRuntimeExports.jsx(R,{value:r,children:i.jsxRuntimeExports.jsx(n.ark.label,{...o,ref:e})})});P.displayName="SwitchRootProvider";const k=c.forwardRef((t,e)=>{const r=u(),s=l.mergeProps(r.getThumbProps(),t);return i.jsxRuntimeExports.jsx(n.ark.span,{...s,ref:e})});k.displayName="SwitchThumb";const{withProvider:g,withContext:p,useStyles:_}=E.createSlotRecipeContext({key:"switch"});g(P,"root",{forwardAsChild:!0});const A=g(b,"root",{forwardAsChild:!0}),L=p(C,"label",{forwardAsChild:!0}),$=p(k,"thumb",{forwardAsChild:!0}),F=p(S,"control",{forwardAsChild:!0,defaultProps:{children:i.jsxRuntimeExports.jsx($,{})}});c.forwardRef(function(e,r){const s=u(),o=_(),{fallback:a,children:d,...h}=e;return i.jsxRuntimeExports.jsx(m.chakra.span,{ref:r,"data-checked":w.dataAttr(s.checked),...h,css:[o.indicator,e.css],children:s.checked?d:a})});c.forwardRef(function(e,r){const s=u(),{fallback:o,children:a,...d}=e;return i.jsxRuntimeExports.jsx(m.chakra.span,{ref:r,"data-checked":w.dataAttr(s.checked),...d,children:s.checked?a:o})});const T=j,H=y.withFormControl(({children:t,indeterminate:e=!1,onContrast:r,label:s,size:o="md",switchRef:a,...d})=>{const h=c.useMemo(()=>e?r?"indeterminateOnContrast":"indeterminate":r?"onContrast":"default",[e,r]);return i.jsxRuntimeExports.jsxs(A,{className:"Switch","data-testid":"kibble-switch",ref:a,size:o,variant:h,...d,children:[i.jsxRuntimeExports.jsx(T,{className:"Switch_Input","data-testid":"kibble-switch-input"}),i.jsxRuntimeExports.jsx(F,{className:"Switch_Control","data-testid":"kibble-switch-control"}),!!t&&i.jsxRuntimeExports.jsx(L,{children:t})]})}),v=N.default.forwardRef((t,e)=>i.jsxRuntimeExports.jsx(H,{switchRef:e,...t}));v.displayName="Switch";exports.WrappedSwitch=v;
2
- //# sourceMappingURL=switch.component-Cn4tMUnr.js.map
1
+ "use strict";const i=require("./jsx-runtime-BjDatQAs.js"),c=require("react"),y=require("./withFormControl-D_7tHPMA.js"),w=require("./attr-BMs6szZx.js"),E=require("./create-slot-recipe-context-IwVIgtBt.js"),m=require("./factory-D6tdBUPG.js"),n=require("./use-locale-context-BdqHZ8L8.js"),f=require("./use-field-context--wBJQY1R.js"),l=require("./index-CZ42b9rT.js"),x=require("./index-iDSTnIkn.js"),q=t=>t&&t.__esModule?t:{default:t},N=q(c),[R,u]=n.createContext({name:"SwitchContext",hookName:"useSwitchContext",providerName:"<SwitchProvider />"}),S=c.forwardRef((t,e)=>{const r=u(),s=l.mergeProps(r.getControlProps(),t);return i.jsxRuntimeExports.jsx(n.ark.span,{...s,ref:e})});S.displayName="SwitchControl";const j=c.forwardRef((t,e)=>{const r=u(),s=l.mergeProps(r.getHiddenInputProps(),t),o=f.useFieldContext();return i.jsxRuntimeExports.jsx(n.ark.input,{"aria-describedby":o?.ariaDescribedby,...s,ref:e})});j.displayName="SwitchHiddenInput";const C=c.forwardRef((t,e)=>{const r=u(),s=l.mergeProps(r.getLabelProps(),t);return i.jsxRuntimeExports.jsx(n.ark.span,{...s,ref:e})});C.displayName="SwitchLabel";const I=t=>{const e=c.useId(),{getRootNode:r}=n.useEnvironmentContext(),{dir:s}=n.useLocaleContext(),o=f.useFieldContext(),a={id:e,ids:{label:o?.ids.label,hiddenInput:o?.ids.control},dir:s,disabled:o?.disabled,readOnly:o?.readOnly,invalid:o?.invalid,required:o?.required,getRootNode:r,...t},d=n.useMachine(x.machine,a);return x.connect(d,n.normalizeProps)},b=c.forwardRef((t,e)=>{const[r,s]=n.createSplitProps()(t,["checked","defaultChecked","disabled","form","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]),o=I(r),a=l.mergeProps(o.getRootProps(),s);return i.jsxRuntimeExports.jsx(R,{value:o,children:i.jsxRuntimeExports.jsx(n.ark.label,{...a,ref:e})})});b.displayName="SwitchRoot";const P=c.forwardRef((t,e)=>{const[{value:r},s]=n.createSplitProps()(t,["value"]),o=l.mergeProps(r.getRootProps(),s);return i.jsxRuntimeExports.jsx(R,{value:r,children:i.jsxRuntimeExports.jsx(n.ark.label,{...o,ref:e})})});P.displayName="SwitchRootProvider";const k=c.forwardRef((t,e)=>{const r=u(),s=l.mergeProps(r.getThumbProps(),t);return i.jsxRuntimeExports.jsx(n.ark.span,{...s,ref:e})});k.displayName="SwitchThumb";const{withProvider:g,withContext:p,useStyles:_}=E.createSlotRecipeContext({key:"switch"});g(P,"root",{forwardAsChild:!0});const A=g(b,"root",{forwardAsChild:!0}),L=p(C,"label",{forwardAsChild:!0}),$=p(k,"thumb",{forwardAsChild:!0}),F=p(S,"control",{forwardAsChild:!0,defaultProps:{children:i.jsxRuntimeExports.jsx($,{})}});c.forwardRef(function(e,r){const s=u(),o=_(),{fallback:a,children:d,...h}=e;return i.jsxRuntimeExports.jsx(m.chakra.span,{ref:r,"data-checked":w.dataAttr(s.checked),...h,css:[o.indicator,e.css],children:s.checked?d:a})});c.forwardRef(function(e,r){const s=u(),{fallback:o,children:a,...d}=e;return i.jsxRuntimeExports.jsx(m.chakra.span,{ref:r,"data-checked":w.dataAttr(s.checked),...d,children:s.checked?a:o})});const T=j,H=y.withFormControl(({children:t,indeterminate:e=!1,onContrast:r,label:s,size:o="md",switchRef:a,...d})=>{const h=c.useMemo(()=>e?r?"indeterminateOnContrast":"indeterminate":r?"onContrast":"default",[e,r]);return i.jsxRuntimeExports.jsxs(A,{className:"Switch","data-testid":"kibble-switch",ref:a,size:o,variant:h,...d,children:[i.jsxRuntimeExports.jsx(T,{className:"Switch_Input","data-testid":"kibble-switch-input"}),i.jsxRuntimeExports.jsx(F,{className:"Switch_Control","data-testid":"kibble-switch-control"}),!!t&&i.jsxRuntimeExports.jsx(L,{children:t})]})}),v=N.default.forwardRef((t,e)=>i.jsxRuntimeExports.jsx(H,{switchRef:e,...t}));v.displayName="Switch";exports.WrappedSwitch=v;
2
+ //# sourceMappingURL=switch.component-BSnXfzgM.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"switch.component-Cn4tMUnr.js","sources":["../../node_modules/@ark-ui/react/dist/components/switch/use-switch-context.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-control.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-hidden-input.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-label.js","../../node_modules/@ark-ui/react/dist/components/switch/use-switch.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-root.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-root-provider.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-thumb.js","../../node_modules/@chakra-ui/react/dist/esm/components/switch/switch.js","../../src/components/Switch/switch.component.tsx"],"sourcesContent":["'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [SwitchProvider, useSwitchContext] = createContext({\n name: \"SwitchContext\",\n hookName: \"useSwitchContext\",\n providerName: \"<SwitchProvider />\"\n});\n\nexport { SwitchProvider, useSwitchContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchControl = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getControlProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nSwitchControl.displayName = \"SwitchControl\";\n\nexport { SwitchControl };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from '../field/use-field-context.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchHiddenInput = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getHiddenInputProps(), props);\n const field = useFieldContext();\n return /* @__PURE__ */ jsx(ark.input, { \"aria-describedby\": field?.ariaDescribedby, ...mergedProps, ref });\n});\nSwitchHiddenInput.displayName = \"SwitchHiddenInput\";\n\nexport { SwitchHiddenInput };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchLabel = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getLabelProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nSwitchLabel.displayName = \"SwitchLabel\";\n\nexport { SwitchLabel };\n","'use client';\nimport { useMachine, normalizeProps } from '@zag-js/react';\nimport * as zagSwitch from '@zag-js/switch';\nimport { useId } from 'react';\nimport { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';\nimport { useLocaleContext } from '../../providers/locale/use-locale-context.js';\nimport { useFieldContext } from '../field/use-field-context.js';\n\nconst useSwitch = (props) => {\n const id = useId();\n const { getRootNode } = useEnvironmentContext();\n const { dir } = useLocaleContext();\n const field = useFieldContext();\n const machineProps = {\n id,\n ids: {\n label: field?.ids.label,\n hiddenInput: field?.ids.control\n },\n dir,\n disabled: field?.disabled,\n readOnly: field?.readOnly,\n invalid: field?.invalid,\n required: field?.required,\n getRootNode,\n ...props\n };\n const service = useMachine(zagSwitch.machine, machineProps);\n return zagSwitch.connect(service, normalizeProps);\n};\n\nexport { useSwitch };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { useSwitch } from './use-switch.js';\nimport { SwitchProvider } from './use-switch-context.js';\n\nconst SwitchRoot = forwardRef((props, ref) => {\n const [switchProps, localProps] = createSplitProps()(props, [\n \"checked\",\n \"defaultChecked\",\n \"disabled\",\n \"form\",\n \"id\",\n \"ids\",\n \"invalid\",\n \"label\",\n \"name\",\n \"onCheckedChange\",\n \"readOnly\",\n \"required\",\n \"value\"\n ]);\n const switchContext = useSwitch(switchProps);\n const mergedProps = mergeProps(switchContext.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(SwitchProvider, { value: switchContext, children: /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref }) });\n});\nSwitchRoot.displayName = \"SwitchRoot\";\n\nexport { SwitchRoot };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { SwitchProvider } from './use-switch-context.js';\n\nconst SwitchRootProvider = forwardRef((props, ref) => {\n const [{ value: api }, localProps] = createSplitProps()(props, [\"value\"]);\n const mergedProps = mergeProps(api.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(SwitchProvider, { value: api, children: /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref }) });\n});\nSwitchRootProvider.displayName = \"SwitchRootProvider\";\n\nexport { SwitchRootProvider };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchThumb = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getThumbProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nSwitchThumb.displayName = \"SwitchThumb\";\n\nexport { SwitchThumb };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { Switch, useSwitchContext } from '@ark-ui/react/switch';\nimport { forwardRef } from 'react';\nimport { dataAttr } from '../../utils/attr.js';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\n\nconst {\n withProvider,\n withContext,\n useStyles: useSwitchStyles,\n PropsProvider\n} = createSlotRecipeContext({ key: \"switch\" });\nconst SwitchRootProvider = withProvider(Switch.RootProvider, \"root\", { forwardAsChild: true });\nconst SwitchRoot = withProvider(\n Switch.Root,\n \"root\",\n { forwardAsChild: true }\n);\nconst SwitchPropsProvider = PropsProvider;\nconst SwitchLabel = withContext(\n Switch.Label,\n \"label\",\n { forwardAsChild: true }\n);\nconst SwitchThumb = withContext(\n Switch.Thumb,\n \"thumb\",\n { forwardAsChild: true }\n);\nconst SwitchControl = withContext(\n Switch.Control,\n \"control\",\n {\n forwardAsChild: true,\n defaultProps: { children: /* @__PURE__ */ jsx(SwitchThumb, {}) }\n }\n);\nconst SwitchIndicator = forwardRef(function SwitchIndicator2(props, ref) {\n const api = useSwitchContext();\n const styles = useSwitchStyles();\n const { fallback, children, ...rest } = props;\n return /* @__PURE__ */ jsx(\n chakra.span,\n {\n ref,\n \"data-checked\": dataAttr(api.checked),\n ...rest,\n css: [styles.indicator, props.css],\n children: api.checked ? children : fallback\n }\n );\n});\nconst SwitchThumbIndicator = forwardRef(function SwitchThumbIndicator2(props, ref) {\n const api = useSwitchContext();\n const { fallback, children, ...rest } = props;\n return /* @__PURE__ */ jsx(chakra.span, { ref, \"data-checked\": dataAttr(api.checked), ...rest, children: api.checked ? children : fallback });\n});\nconst SwitchContext = Switch.Context;\nconst SwitchHiddenInput = Switch.HiddenInput;\n\nexport { SwitchContext, SwitchControl, SwitchHiddenInput, SwitchIndicator, SwitchLabel, SwitchPropsProvider, SwitchRoot, SwitchRootProvider, SwitchThumb, SwitchThumbIndicator, useSwitchStyles };\n","import React, { ForwardedRef, useMemo } from \"react\";\nimport { Switch as CSwitch } from \"@chakra-ui/react/switch\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\n\nexport interface SwitchProps\n extends WithFormControlProps,\n Omit<CSwitch.RootProps, \"label\" | \"onChange\"> {\n indeterminate?: boolean;\n switchRef?: ForwardedRef<HTMLLabelElement>;\n size?: FormControlSize;\n}\n\nconst Switch = withFormControl(\n ({\n children,\n indeterminate = false,\n onContrast,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n label,\n size = \"md\",\n switchRef,\n ...rest\n }: SwitchProps): React.JSX.Element => {\n const _computedVariant = useMemo(() => {\n if (indeterminate) {\n return onContrast ? \"indeterminateOnContrast\" : \"indeterminate\";\n } else {\n return onContrast ? \"onContrast\" : \"default\";\n }\n }, [indeterminate, onContrast]);\n\n return (\n <CSwitch.Root\n className=\"Switch\"\n data-testid=\"kibble-switch\"\n ref={switchRef}\n size={size}\n variant={_computedVariant}\n {...rest}\n >\n <CSwitch.HiddenInput\n className=\"Switch_Input\"\n data-testid=\"kibble-switch-input\"\n />\n <CSwitch.Control\n className=\"Switch_Control\"\n data-testid=\"kibble-switch-control\"\n />\n {!!children && <CSwitch.Label>{children}</CSwitch.Label>}\n </CSwitch.Root>\n );\n },\n);\n\nconst WrappedSwitch = React.forwardRef(\n (props: SwitchProps, ref: ForwardedRef<HTMLLabelElement>) => (\n <Switch switchRef={ref} {...props} />\n ),\n);\n\nWrappedSwitch.displayName = \"Switch\";\n\nexport { WrappedSwitch as Switch };\n"],"names":["SwitchProvider","useSwitchContext","createContext","SwitchControl","forwardRef","props","ref","switchContext","mergedProps","mergeProps","jsx","ark","SwitchHiddenInput","field","useFieldContext","SwitchLabel","useSwitch","id","useId","getRootNode","useEnvironmentContext","dir","useLocaleContext","machineProps","service","useMachine","zagSwitch.machine","zagSwitch.connect","normalizeProps","SwitchRoot","switchProps","localProps","createSplitProps","SwitchRootProvider","api","SwitchThumb","withProvider","withContext","useSwitchStyles","createSlotRecipeContext","Switch.RootProvider","Switch.Root","Switch.Label","Switch.Thumb","Switch.Control","styles","fallback","children","rest","chakra","dataAttr","Switch.HiddenInput","Switch","withFormControl","indeterminate","onContrast","label","size","switchRef","_computedVariant","useMemo","jsxs","CSwitch.Root","CSwitch.HiddenInput","CSwitch.Control","CSwitch.Label","WrappedSwitch","React"],"mappings":"wbAGM,CAACA,EAAgBC,CAAgB,EAAIC,gBAAc,CACvD,KAAM,gBACN,SAAU,mBACV,aAAc,oBAChB,CAAC,ECAKC,EAAgBC,EAAU,WAAC,CAACC,EAAOC,IAAQ,CAC/C,MAAMC,EAAgBN,EAAkB,EAClCO,EAAcC,EAAU,WAACF,EAAc,gBAAe,EAAIF,CAAK,EACrE,OAAuBK,EAAAA,kBAAAA,IAAIC,EAAAA,IAAI,KAAM,CAAE,GAAGH,EAAa,IAAAF,EAAK,CAC9D,CAAC,EACDH,EAAc,YAAc,gBCJ5B,MAAMS,EAAoBR,EAAU,WAAC,CAACC,EAAOC,IAAQ,CACnD,MAAMC,EAAgB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IAACqD,EAAA,CACC,UAAU,eACV,cAAY,qBAAA,CACd,EACArD,EAAA,kBAAA,IAACsD,EAAA,CACC,UAAU,iBACV,cAAY,uBAAA,CACd,EACC,CAAC,CAACjB,2BAAakB,EAAA,CAAe,SAAAlB,CAAS,CAAA,CAAA,CAAA,CAC1C,CAAA,CAGN,EAEMmB,EAAgBC,EAAM,QAAA,WAC1B,CAAC9D,EAAoBC,IACnBI,wBAAC0C,GAAO,UAAW9C,EAAM,GAAGD,CAAO,CAAA,CAEvC,EAEA6D,EAAc,YAAc","x_google_ignoreList":[0,1,2,3,4,5,6,7,8]}
1
+ {"version":3,"file":"switch.component-BSnXfzgM.js","sources":["../../node_modules/@ark-ui/react/dist/components/switch/use-switch-context.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-control.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-hidden-input.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-label.js","../../node_modules/@ark-ui/react/dist/components/switch/use-switch.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-root.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-root-provider.js","../../node_modules/@ark-ui/react/dist/components/switch/switch-thumb.js","../../node_modules/@chakra-ui/react/dist/esm/components/switch/switch.js","../../src/components/Switch/switch.component.tsx"],"sourcesContent":["'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [SwitchProvider, useSwitchContext] = createContext({\n name: \"SwitchContext\",\n hookName: \"useSwitchContext\",\n providerName: \"<SwitchProvider />\"\n});\n\nexport { SwitchProvider, useSwitchContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchControl = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getControlProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nSwitchControl.displayName = \"SwitchControl\";\n\nexport { SwitchControl };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from '../field/use-field-context.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchHiddenInput = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getHiddenInputProps(), props);\n const field = useFieldContext();\n return /* @__PURE__ */ jsx(ark.input, { \"aria-describedby\": field?.ariaDescribedby, ...mergedProps, ref });\n});\nSwitchHiddenInput.displayName = \"SwitchHiddenInput\";\n\nexport { SwitchHiddenInput };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchLabel = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getLabelProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nSwitchLabel.displayName = \"SwitchLabel\";\n\nexport { SwitchLabel };\n","'use client';\nimport { useMachine, normalizeProps } from '@zag-js/react';\nimport * as zagSwitch from '@zag-js/switch';\nimport { useId } from 'react';\nimport { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';\nimport { useLocaleContext } from '../../providers/locale/use-locale-context.js';\nimport { useFieldContext } from '../field/use-field-context.js';\n\nconst useSwitch = (props) => {\n const id = useId();\n const { getRootNode } = useEnvironmentContext();\n const { dir } = useLocaleContext();\n const field = useFieldContext();\n const machineProps = {\n id,\n ids: {\n label: field?.ids.label,\n hiddenInput: field?.ids.control\n },\n dir,\n disabled: field?.disabled,\n readOnly: field?.readOnly,\n invalid: field?.invalid,\n required: field?.required,\n getRootNode,\n ...props\n };\n const service = useMachine(zagSwitch.machine, machineProps);\n return zagSwitch.connect(service, normalizeProps);\n};\n\nexport { useSwitch };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { useSwitch } from './use-switch.js';\nimport { SwitchProvider } from './use-switch-context.js';\n\nconst SwitchRoot = forwardRef((props, ref) => {\n const [switchProps, localProps] = createSplitProps()(props, [\n \"checked\",\n \"defaultChecked\",\n \"disabled\",\n \"form\",\n \"id\",\n \"ids\",\n \"invalid\",\n \"label\",\n \"name\",\n \"onCheckedChange\",\n \"readOnly\",\n \"required\",\n \"value\"\n ]);\n const switchContext = useSwitch(switchProps);\n const mergedProps = mergeProps(switchContext.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(SwitchProvider, { value: switchContext, children: /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref }) });\n});\nSwitchRoot.displayName = \"SwitchRoot\";\n\nexport { SwitchRoot };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { SwitchProvider } from './use-switch-context.js';\n\nconst SwitchRootProvider = forwardRef((props, ref) => {\n const [{ value: api }, localProps] = createSplitProps()(props, [\"value\"]);\n const mergedProps = mergeProps(api.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(SwitchProvider, { value: api, children: /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref }) });\n});\nSwitchRootProvider.displayName = \"SwitchRootProvider\";\n\nexport { SwitchRootProvider };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useSwitchContext } from './use-switch-context.js';\n\nconst SwitchThumb = forwardRef((props, ref) => {\n const switchContext = useSwitchContext();\n const mergedProps = mergeProps(switchContext.getThumbProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nSwitchThumb.displayName = \"SwitchThumb\";\n\nexport { SwitchThumb };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { Switch, useSwitchContext } from '@ark-ui/react/switch';\nimport { forwardRef } from 'react';\nimport { dataAttr } from '../../utils/attr.js';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\n\nconst {\n withProvider,\n withContext,\n useStyles: useSwitchStyles,\n PropsProvider\n} = createSlotRecipeContext({ key: \"switch\" });\nconst SwitchRootProvider = withProvider(Switch.RootProvider, \"root\", { forwardAsChild: true });\nconst SwitchRoot = withProvider(\n Switch.Root,\n \"root\",\n { forwardAsChild: true }\n);\nconst SwitchPropsProvider = PropsProvider;\nconst SwitchLabel = withContext(\n Switch.Label,\n \"label\",\n { forwardAsChild: true }\n);\nconst SwitchThumb = withContext(\n Switch.Thumb,\n \"thumb\",\n { forwardAsChild: true }\n);\nconst SwitchControl = withContext(\n Switch.Control,\n \"control\",\n {\n forwardAsChild: true,\n defaultProps: { children: /* @__PURE__ */ jsx(SwitchThumb, {}) }\n }\n);\nconst SwitchIndicator = forwardRef(function SwitchIndicator2(props, ref) {\n const api = useSwitchContext();\n const styles = useSwitchStyles();\n const { fallback, children, ...rest } = props;\n return /* @__PURE__ */ jsx(\n chakra.span,\n {\n ref,\n \"data-checked\": dataAttr(api.checked),\n ...rest,\n css: [styles.indicator, props.css],\n children: api.checked ? children : fallback\n }\n );\n});\nconst SwitchThumbIndicator = forwardRef(function SwitchThumbIndicator2(props, ref) {\n const api = useSwitchContext();\n const { fallback, children, ...rest } = props;\n return /* @__PURE__ */ jsx(chakra.span, { ref, \"data-checked\": dataAttr(api.checked), ...rest, children: api.checked ? children : fallback });\n});\nconst SwitchContext = Switch.Context;\nconst SwitchHiddenInput = Switch.HiddenInput;\n\nexport { SwitchContext, SwitchControl, SwitchHiddenInput, SwitchIndicator, SwitchLabel, SwitchPropsProvider, SwitchRoot, SwitchRootProvider, SwitchThumb, SwitchThumbIndicator, useSwitchStyles };\n","import React, { ForwardedRef, useMemo } from \"react\";\nimport { Switch as CSwitch } from \"@chakra-ui/react/switch\";\nimport {\n withFormControl,\n WithFormControlProps,\n} from \"hocs/withFormControl/withFormControl\";\nimport { FormControlSize } from \"hocs/withFormControl/withFormControl.types\";\n\nexport interface SwitchProps\n extends WithFormControlProps,\n Omit<CSwitch.RootProps, \"label\" | \"onChange\"> {\n indeterminate?: boolean;\n switchRef?: ForwardedRef<HTMLLabelElement>;\n size?: FormControlSize;\n}\n\nconst Switch = withFormControl(\n ({\n children,\n indeterminate = false,\n onContrast,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n label,\n size = \"md\",\n switchRef,\n ...rest\n }: SwitchProps): React.JSX.Element => {\n const _computedVariant = useMemo(() => {\n if (indeterminate) {\n return onContrast ? \"indeterminateOnContrast\" : \"indeterminate\";\n } else {\n return onContrast ? \"onContrast\" : \"default\";\n }\n }, [indeterminate, onContrast]);\n\n return (\n <CSwitch.Root\n className=\"Switch\"\n data-testid=\"kibble-switch\"\n ref={switchRef}\n size={size}\n variant={_computedVariant}\n {...rest}\n >\n <CSwitch.HiddenInput\n className=\"Switch_Input\"\n data-testid=\"kibble-switch-input\"\n />\n <CSwitch.Control\n className=\"Switch_Control\"\n data-testid=\"kibble-switch-control\"\n />\n {!!children && <CSwitch.Label>{children}</CSwitch.Label>}\n </CSwitch.Root>\n );\n },\n);\n\nconst WrappedSwitch = React.forwardRef(\n (props: SwitchProps, ref: ForwardedRef<HTMLLabelElement>) => (\n <Switch switchRef={ref} {...props} />\n ),\n);\n\nWrappedSwitch.displayName = \"Switch\";\n\nexport { WrappedSwitch as Switch };\n"],"names":["SwitchProvider","useSwitchContext","createContext","SwitchControl","forwardRef","props","ref","switchContext","mergedProps","mergeProps","jsx","ark","SwitchHiddenInput","field","useFieldContext","SwitchLabel","useSwitch","id","useId","getRootNode","useEnvironmentContext","dir","useLocaleContext","machineProps","service","useMachine","zagSwitch.machine","zagSwitch.connect","normalizeProps","SwitchRoot","switchProps","localProps","createSplitProps","SwitchRootProvider","api","SwitchThumb","withProvider","withContext","useSwitchStyles","createSlotRecipeContext","Switch.RootProvider","Switch.Root","Switch.Label","Switch.Thumb","Switch.Control","styles","fallback","children","rest","chakra","dataAttr","Switch.HiddenInput","Switch","withFormControl","indeterminate","onContrast","label","size","switchRef","_computedVariant","useMemo","jsxs","CSwitch.Root","CSwitch.HiddenInput","CSwitch.Control","CSwitch.Label","WrappedSwitch","React"],"mappings":"wbAGM,CAACA,EAAgBC,CAAgB,EAAIC,gBAAc,CACvD,KAAM,gBACN,SAAU,mBACV,aAAc,oBAChB,CAAC,ECAKC,EAAgBC,EAAU,WAAC,CAACC,EAAOC,IAAQ,CAC/C,MAAMC,EAAgBN,EAAkB,EAClCO,EAAcC,EAAU,WAACF,EAAc,gBAAe,EAAIF,CAAK,EACrE,OAAuBK,EAAAA,kBAAAA,IAAIC,EAAAA,IAAI,KAAM,CAAE,GAAGH,EAAa,IAAAF,EAAK,CAC9D,CAAC,EACDH,EAAc,YAAc,gBCJ5B,MAAMS,EAAoBR,EAAU,WAAC,CAACC,EAAOC,IAAQ,CACnD,MAAMC,EAAgBN,EAAkB,EAClCO,EAAcC,EAAU,WAACF,EAAc,oBAAmB,EAAIF,CAAK,EACnEQ,EAAQC,EAAAA,gBAAiB,EAC/B,OAAuBJ,EAAG,kBAAA,IAACC,MAAI,MAAO,CAAE,mBAAoBE,GAAO,gBAAiB,GAAGL,EAAa,IAAAF,EAAK,CAC3G,CAAC,EACDM,EAAkB,YAAc,oBCPhC,MAAMG,EAAcX,EAAU,WAAC,CAACC,EAAOC,IAAQ,CAC7C,MAAMC,EAAgBN,EAAkB,EAClCO,EAAcC,EAAU,WAACF,EAAc,cAAa,EAAIF,CAAK,EACnE,OAAuBK,EAAAA,kBAAAA,IAAIC,EAAAA,IAAI,KAAM,CAAE,GAAG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";
2
2
  import g, { forwardRef as n, useId as R, useMemo as N } from "react";
3
- import { w as I } from "./withFormControl-YhSGmDSm.js";
3
+ import { w as I } from "./withFormControl-zDta9oR9.js";
4
4
  import { d as u } from "./attr-sm10PXOd.js";
5
- import { c as A } from "./create-slot-recipe-context-DJkLYvCT.js";
6
- import { c as w } from "./factory-gZxMesut.js";
5
+ import { c as A } from "./create-slot-recipe-context-BJmsuxih.js";
6
+ import { c as w } from "./factory-Ctbv0Ozn.js";
7
7
  import { a as L, f as d, i as T, j as _, k as $, n as H, b as S } from "./use-locale-context-BnlMA8su.js";
8
8
  import { u as f } from "./use-field-context-Bxg2bkx0.js";
9
9
  import { Y as l } from "./index-B8d8Hi2Q.js";
10
- import { m as O, c as q } from "./index-BE2MBRYo.js";
10
+ import { m as O, c as q } from "./index-DiQj_gRL.js";
11
11
  const [b, h] = L({
12
12
  name: "SwitchContext",
13
13
  hookName: "useSwitchContext",
@@ -163,4 +163,4 @@ B.displayName = "Switch";
163
163
  export {
164
164
  B as W
165
165
  };
166
- //# sourceMappingURL=switch.component-c8nXep47.js.map
166
+ //# sourceMappingURL=switch.component-BrN-Q326.js.map