@televet/kibble-ui 4.0.0-beta.84 → 4.0.0-beta.86

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 (288) hide show
  1. package/dist/chunks/{alert.types-ChLcWuel.js → alert.types-DTNR8_C-.js} +2 -2
  2. package/dist/chunks/{alert.types-ChLcWuel.js.map → alert.types-DTNR8_C-.js.map} +1 -1
  3. package/dist/chunks/{alert.types-BuRcGwVs.js → alert.types-QEeDYCAD.js} +3 -3
  4. package/dist/chunks/{alert.types-BuRcGwVs.js.map → alert.types-QEeDYCAD.js.map} +1 -1
  5. package/dist/chunks/{avatar.component-xigxcdOe.js → avatar.component-qXhLVNzG.js} +2 -2
  6. package/dist/chunks/{avatar.component-xigxcdOe.js.map → avatar.component-qXhLVNzG.js.map} +1 -1
  7. package/dist/chunks/{avatar.component-CStlz24o.js → avatar.component-yAhlBo_d.js} +2 -2
  8. package/dist/chunks/{avatar.component-CStlz24o.js.map → avatar.component-yAhlBo_d.js.map} +1 -1
  9. package/dist/chunks/{avatarGroup.component-NNkXQT3H.js → avatarGroup.component-T3cUc5XX.js} +2 -2
  10. package/dist/chunks/{avatarGroup.component-NNkXQT3H.js.map → avatarGroup.component-T3cUc5XX.js.map} +1 -1
  11. package/dist/chunks/{avatarGroup.component-B0lzqxW5.js → avatarGroup.component-bImv23vg.js} +2 -2
  12. package/dist/chunks/{avatarGroup.component-B0lzqxW5.js.map → avatarGroup.component-bImv23vg.js.map} +1 -1
  13. package/dist/chunks/button.component-BpF3MzbZ.js.map +1 -1
  14. package/dist/chunks/button.component-Dd9AfGox.js.map +1 -1
  15. package/dist/chunks/{buttonGroup.component-B_QtRowk.js → buttonGroup.component-0iZj3N28.js} +2 -2
  16. package/dist/chunks/{buttonGroup.component-B_QtRowk.js.map → buttonGroup.component-0iZj3N28.js.map} +1 -1
  17. package/dist/chunks/{buttonGroup.component-VJL0Cunk.js → buttonGroup.component-BuF41rNB.js} +2 -2
  18. package/dist/chunks/{buttonGroup.component-VJL0Cunk.js.map → buttonGroup.component-BuF41rNB.js.map} +1 -1
  19. package/dist/chunks/{characterCounter.component-DbKKr4Cl.js → characterCounter.component-Cvw7D33c.js} +2 -2
  20. package/dist/chunks/{characterCounter.component-DbKKr4Cl.js.map → characterCounter.component-Cvw7D33c.js.map} +1 -1
  21. package/dist/chunks/{characterCounter.component-D4gbtPgf.js → characterCounter.component-DCSJKVZn.js} +2 -2
  22. package/dist/chunks/{characterCounter.component-D4gbtPgf.js.map → characterCounter.component-DCSJKVZn.js.map} +1 -1
  23. package/dist/chunks/checkbox.component-BoaV-gQi.js +2 -0
  24. package/dist/chunks/{checkbox.component-CKLGUOSX.js.map → checkbox.component-BoaV-gQi.js.map} +1 -1
  25. package/dist/chunks/checkbox.component-CT344a1o.js +311 -0
  26. package/dist/chunks/{checkbox.component-DhXTRoeP.js.map → checkbox.component-CT344a1o.js.map} +1 -1
  27. package/dist/chunks/{checkbox.records-4j704fMI.js → checkbox.records-CTlAD-2Q.js} +9 -9
  28. package/dist/chunks/{checkbox.records-4j704fMI.js.map → checkbox.records-CTlAD-2Q.js.map} +1 -1
  29. package/dist/chunks/{checkboxGroup.component-BE3s9USP.js → checkboxGroup.component-CVRj2S5m.js} +3 -3
  30. package/dist/chunks/{checkboxGroup.component-BE3s9USP.js.map → checkboxGroup.component-CVRj2S5m.js.map} +1 -1
  31. package/dist/chunks/{checkboxGroup.component-C7Nn0xjJ.js → checkboxGroup.component-X2cU2KU-.js} +2 -2
  32. package/dist/chunks/{checkboxGroup.component-C7Nn0xjJ.js.map → checkboxGroup.component-X2cU2KU-.js.map} +1 -1
  33. package/dist/chunks/{conversationCard.component-CnMm11fG.js → conversationCard.component-CkmCkM8o.js} +2 -2
  34. package/dist/chunks/{conversationCard.component-CnMm11fG.js.map → conversationCard.component-CkmCkM8o.js.map} +1 -1
  35. package/dist/chunks/{conversationCard.component-CAFi2W7w.js → conversationCard.component-u6I8Phyu.js} +8 -8
  36. package/dist/chunks/{conversationCard.component-CAFi2W7w.js.map → conversationCard.component-u6I8Phyu.js.map} +1 -1
  37. package/dist/chunks/datePicker.component-B_wuoiPP.js +15 -0
  38. package/dist/chunks/datePicker.component-B_wuoiPP.js.map +1 -0
  39. package/dist/chunks/{datePicker.component-CW882xTE.js → datePicker.component-Cger9TA5.js} +536 -586
  40. package/dist/chunks/datePicker.component-Cger9TA5.js.map +1 -0
  41. package/dist/chunks/{heading.component-CoM9gWlU.js → heading.component-Cf58bZa1.js} +2 -2
  42. package/dist/chunks/{heading.component-CoM9gWlU.js.map → heading.component-Cf58bZa1.js.map} +1 -1
  43. package/dist/chunks/{heading.component-B-FrSa28.js → heading.component-DNsKd4Gh.js} +2 -2
  44. package/dist/chunks/{heading.component-B-FrSa28.js.map → heading.component-DNsKd4Gh.js.map} +1 -1
  45. package/dist/chunks/isSymbol-BQN49XhJ.js +67 -0
  46. package/dist/chunks/isSymbol-BQN49XhJ.js.map +1 -0
  47. package/dist/chunks/isSymbol-BdGeV_e0.js +2 -0
  48. package/dist/chunks/isSymbol-BdGeV_e0.js.map +1 -0
  49. package/dist/chunks/link.component-BlCMfkSE.js +2 -0
  50. package/dist/chunks/link.component-BlCMfkSE.js.map +1 -0
  51. package/dist/chunks/link.component-Dk9j8As1.js +60 -0
  52. package/dist/chunks/link.component-Dk9j8As1.js.map +1 -0
  53. package/dist/chunks/{menu.component-DEnxu0vh.js → menu.component-4gKH4f5l.js} +6 -6
  54. package/dist/chunks/{menu.component-DEnxu0vh.js.map → menu.component-4gKH4f5l.js.map} +1 -1
  55. package/dist/chunks/menu.component-C5NwkXGO.js +2 -0
  56. package/dist/chunks/{menu.component-BPtwVqUh.js.map → menu.component-C5NwkXGO.js.map} +1 -1
  57. package/dist/chunks/modal.types-DDwG7coD.js +2 -0
  58. package/dist/chunks/modal.types-DDwG7coD.js.map +1 -0
  59. package/dist/chunks/{modal.types-XDLmSWyz.js → modal.types-DIDn6Pz1.js} +68 -71
  60. package/dist/chunks/modal.types-DIDn6Pz1.js.map +1 -0
  61. package/dist/chunks/pinInput.types-Bv67lyfg.js +161 -0
  62. package/dist/chunks/{pinInput.types-D8CEzrAw.js.map → pinInput.types-Bv67lyfg.js.map} +1 -1
  63. package/dist/chunks/pinInput.types-DbKKHEtF.js +2 -0
  64. package/dist/chunks/{pinInput.types-DSMdiVB_.js.map → pinInput.types-DbKKHEtF.js.map} +1 -1
  65. package/dist/chunks/popover.component-CS8UY9_W.js +2 -0
  66. package/dist/chunks/popover.component-CS8UY9_W.js.map +1 -0
  67. package/dist/chunks/popover.component-D2-w2fSE.js +260 -0
  68. package/dist/chunks/popover.component-D2-w2fSE.js.map +1 -0
  69. package/dist/chunks/radioGroup.component-DlLvSRNH.js +275 -0
  70. package/dist/chunks/radioGroup.component-DlLvSRNH.js.map +1 -0
  71. package/dist/chunks/radioGroup.component-e6LsfYzG.js +2 -0
  72. package/dist/chunks/radioGroup.component-e6LsfYzG.js.map +1 -0
  73. package/dist/chunks/ratingDots.component-B_a_qO9L.js +2 -0
  74. package/dist/chunks/ratingDots.component-B_a_qO9L.js.map +1 -0
  75. package/dist/chunks/ratingDots.component-BzxT-9pH.js +158 -0
  76. package/dist/chunks/ratingDots.component-BzxT-9pH.js.map +1 -0
  77. package/dist/chunks/select.component-CPMIVkRk.js +2 -0
  78. package/dist/chunks/select.component-CPMIVkRk.js.map +1 -0
  79. package/dist/chunks/select.component-DrZOaMq1.js +1087 -0
  80. package/dist/chunks/select.component-DrZOaMq1.js.map +1 -0
  81. package/dist/chunks/{sortableList.component-Bfb0hpZP.js → sortableList.component-DEMqxtiq.js} +2 -2
  82. package/dist/chunks/{sortableList.component-Bfb0hpZP.js.map → sortableList.component-DEMqxtiq.js.map} +1 -1
  83. package/dist/chunks/{sortableList.component-BDk7gDEa.js → sortableList.component-iVWhEIAT.js} +2 -2
  84. package/dist/chunks/{sortableList.component-BDk7gDEa.js.map → sortableList.component-iVWhEIAT.js.map} +1 -1
  85. package/dist/chunks/{spinner.component-kakTjXFe.js → spinner.component-BM2OwxA7.js} +2 -2
  86. package/dist/chunks/{spinner.component-kakTjXFe.js.map → spinner.component-BM2OwxA7.js.map} +1 -1
  87. package/dist/chunks/{spinner.component-BGFAakzz.js → spinner.component-lZds47YM.js} +2 -2
  88. package/dist/chunks/{spinner.component-BGFAakzz.js.map → spinner.component-lZds47YM.js.map} +1 -1
  89. package/dist/chunks/{styledAvatar.types-Bl_YAWyY.js → styledAvatar.types-DaESk8Cq.js} +2 -2
  90. package/dist/chunks/{styledAvatar.types-Bl_YAWyY.js.map → styledAvatar.types-DaESk8Cq.js.map} +1 -1
  91. package/dist/chunks/{styledAvatar.types-DpZkDaUD.js → styledAvatar.types-zeF6AQ1t.js} +2 -2
  92. package/dist/chunks/{styledAvatar.types-DpZkDaUD.js.map → styledAvatar.types-zeF6AQ1t.js.map} +1 -1
  93. package/dist/chunks/switch.component-C4tJUYg9.js +2 -0
  94. package/dist/chunks/{switch.component-BIe8tduL.js.map → switch.component-C4tJUYg9.js.map} +1 -1
  95. package/dist/chunks/switch.component-D93JI_c1.js +167 -0
  96. package/dist/chunks/{switch.component-DmwKAQWj.js.map → switch.component-D93JI_c1.js.map} +1 -1
  97. package/dist/chunks/{tabs.component-B6PT0IQT.js → tabs.component-DUUXdx2e.js} +2 -2
  98. package/dist/chunks/{tabs.component-B6PT0IQT.js.map → tabs.component-DUUXdx2e.js.map} +1 -1
  99. package/dist/chunks/{tabs.component-BSK85MmR.js → tabs.component-caMRtfBi.js} +2 -2
  100. package/dist/chunks/{tabs.component-BSK85MmR.js.map → tabs.component-caMRtfBi.js.map} +1 -1
  101. package/dist/chunks/tag.component-BAH11mPX.js +82 -0
  102. package/dist/chunks/tag.component-BAH11mPX.js.map +1 -0
  103. package/dist/chunks/tag.component-DcEASytC.js +2 -0
  104. package/dist/chunks/tag.component-DcEASytC.js.map +1 -0
  105. package/dist/chunks/{tagBlock.component-plcpLvwr.js → tagBlock.component-CC4azYDm.js} +2 -2
  106. package/dist/chunks/{tagBlock.component-plcpLvwr.js.map → tagBlock.component-CC4azYDm.js.map} +1 -1
  107. package/dist/chunks/{tagBlock.component-EeXuPoQR.js → tagBlock.component-DmNtxTyX.js} +6 -6
  108. package/dist/chunks/{tagBlock.component-EeXuPoQR.js.map → tagBlock.component-DmNtxTyX.js.map} +1 -1
  109. package/dist/chunks/{text.component-DwVoyMgc.js → text.component-C501PJrN.js} +2 -2
  110. package/dist/chunks/{text.component-DwVoyMgc.js.map → text.component-C501PJrN.js.map} +1 -1
  111. package/dist/chunks/{text.component-2XEOQ18v.js → text.component-z4cNuAAI.js} +2 -2
  112. package/dist/chunks/{text.component-2XEOQ18v.js.map → text.component-z4cNuAAI.js.map} +1 -1
  113. package/dist/chunks/textInput.component-BK5TEpr3.js +179 -0
  114. package/dist/chunks/textInput.component-BK5TEpr3.js.map +1 -0
  115. package/dist/chunks/textInput.component-o3OfBL3Y.js +2 -0
  116. package/dist/chunks/textInput.component-o3OfBL3Y.js.map +1 -0
  117. package/dist/chunks/textarea.component-A8ebDcnw.js +97 -0
  118. package/dist/chunks/{textarea.component-CvMV-9vc.js.map → textarea.component-A8ebDcnw.js.map} +1 -1
  119. package/dist/chunks/textarea.component-DDz3lXs_.js +2 -0
  120. package/dist/chunks/{textarea.component-DKeXxrXq.js.map → textarea.component-DDz3lXs_.js.map} +1 -1
  121. package/dist/chunks/{theme.provider-LHTsoFmf.js → theme.provider-CbB3DTaK.js} +746 -736
  122. package/dist/chunks/{theme.provider-LHTsoFmf.js.map → theme.provider-CbB3DTaK.js.map} +1 -1
  123. package/dist/chunks/{theme.provider-B_XmrDx8.js → theme.provider-DHy8ThEw.js} +4 -4
  124. package/dist/chunks/{theme.provider-B_XmrDx8.js.map → theme.provider-DHy8ThEw.js.map} +1 -1
  125. package/dist/chunks/{timePicker.component-Ca6GPa4F.js → timePicker.component-BVCoTSf0.js} +2 -2
  126. package/dist/chunks/{timePicker.component-Ca6GPa4F.js.map → timePicker.component-BVCoTSf0.js.map} +1 -1
  127. package/dist/chunks/{timePicker.component-DvxbKF6R.js → timePicker.component-ZFIT5aB6.js} +3 -3
  128. package/dist/chunks/{timePicker.component-DvxbKF6R.js.map → timePicker.component-ZFIT5aB6.js.map} +1 -1
  129. package/dist/chunks/{timeRange.component-C_rVYeXZ.js → timeRange.component-BSPEZDvW.js} +2 -2
  130. package/dist/chunks/{timeRange.component-C_rVYeXZ.js.map → timeRange.component-BSPEZDvW.js.map} +1 -1
  131. package/dist/chunks/{timeRange.component-nvBL8Y-c.js → timeRange.component-JhMCHzyM.js} +2 -2
  132. package/dist/chunks/{timeRange.component-nvBL8Y-c.js.map → timeRange.component-JhMCHzyM.js.map} +1 -1
  133. package/dist/chunks/{timestamp.component-YL3kdwx3.js → timestamp.component-DAakI_Tt.js} +3 -3
  134. package/dist/chunks/{timestamp.component-YL3kdwx3.js.map → timestamp.component-DAakI_Tt.js.map} +1 -1
  135. package/dist/chunks/{timestamp.component-WaxLNLaH.js → timestamp.component-DNYI2gVi.js} +2 -2
  136. package/dist/chunks/{timestamp.component-WaxLNLaH.js.map → timestamp.component-DNYI2gVi.js.map} +1 -1
  137. package/dist/chunks/{toaster.records-CcwOeMM7.js → toaster.records-BIYC2Ue0.js} +2 -1
  138. package/dist/chunks/{toaster.records-CcwOeMM7.js.map → toaster.records-BIYC2Ue0.js.map} +1 -1
  139. package/dist/chunks/{toaster.records-zJfplz5w.js → toaster.records-CDCJPDWP.js} +2 -2
  140. package/dist/chunks/{toaster.records-zJfplz5w.js.map → toaster.records-CDCJPDWP.js.map} +1 -1
  141. package/dist/chunks/{tooltip.component-C8Z7lI4c.js → tooltip.component-BSomeipc.js} +92 -95
  142. package/dist/chunks/{tooltip.component-C8Z7lI4c.js.map → tooltip.component-BSomeipc.js.map} +1 -1
  143. package/dist/chunks/{tooltip.component-tPcICCNY.js → tooltip.component-CIUcGhxw.js} +2 -2
  144. package/dist/chunks/{tooltip.component-tPcICCNY.js.map → tooltip.component-CIUcGhxw.js.map} +1 -1
  145. package/dist/chunks/{modal.context-EJ67QNzq.js → usePortalContentRef-CTrvBQ7I.js} +2 -2
  146. package/dist/chunks/usePortalContentRef-CTrvBQ7I.js.map +1 -0
  147. package/dist/chunks/{modal.context-DSKLfsJK.js → usePortalContentRef-KaU-iIV0.js} +2 -2
  148. package/dist/chunks/usePortalContentRef-KaU-iIV0.js.map +1 -0
  149. package/dist/chunks/{withFormControl-BcHQTSnc.js → withFormControl-DBaRp5Zy.js} +2 -2
  150. package/dist/chunks/{withFormControl-BcHQTSnc.js.map → withFormControl-DBaRp5Zy.js.map} +1 -1
  151. package/dist/chunks/{withFormControl-mCCJK8wX.js → withFormControl-syyL9lWW.js} +2 -2
  152. package/dist/chunks/{withFormControl-mCCJK8wX.js.map → withFormControl-syyL9lWW.js.map} +1 -1
  153. package/dist/chunks/{withTruncation-DpfcIWal.js → withTruncation-B6vA2g0w.js} +2 -2
  154. package/dist/chunks/{withTruncation-DpfcIWal.js.map → withTruncation-B6vA2g0w.js.map} +1 -1
  155. package/dist/chunks/{withTruncation-elowYDE4.js → withTruncation-C7AAl87b.js} +2 -2
  156. package/dist/chunks/{withTruncation-elowYDE4.js.map → withTruncation-C7AAl87b.js.map} +1 -1
  157. package/dist/cjs/components/Alert/index.cjs +1 -1
  158. package/dist/cjs/components/Avatar/index.cjs +1 -1
  159. package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
  160. package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
  161. package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
  162. package/dist/cjs/components/Checkbox/index.cjs +1 -1
  163. package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
  164. package/dist/cjs/components/ConversationCard/index.cjs +1 -1
  165. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  166. package/dist/cjs/components/Heading/index.cjs +1 -1
  167. package/dist/cjs/components/Link/index.cjs +1 -1
  168. package/dist/cjs/components/Menu/index.cjs +1 -1
  169. package/dist/cjs/components/Modal/index.cjs +1 -1
  170. package/dist/cjs/components/PinInput/index.cjs +1 -1
  171. package/dist/cjs/components/Popover/index.cjs +1 -1
  172. package/dist/cjs/components/RadioGroup/index.cjs +1 -1
  173. package/dist/cjs/components/RatingDots/index.cjs +1 -1
  174. package/dist/cjs/components/Select/index.cjs +1 -1
  175. package/dist/cjs/components/SortableList/index.cjs +1 -1
  176. package/dist/cjs/components/Spinner/index.cjs +1 -1
  177. package/dist/cjs/components/StyledAvatar/index.cjs +1 -1
  178. package/dist/cjs/components/Switch/index.cjs +1 -1
  179. package/dist/cjs/components/Tabs/index.cjs +1 -1
  180. package/dist/cjs/components/Tag/index.cjs +1 -1
  181. package/dist/cjs/components/TagBlock/index.cjs +1 -1
  182. package/dist/cjs/components/Text/index.cjs +1 -1
  183. package/dist/cjs/components/TextInput/index.cjs +1 -1
  184. package/dist/cjs/components/Textarea/index.cjs +1 -1
  185. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  186. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  187. package/dist/cjs/components/Timestamp/index.cjs +1 -1
  188. package/dist/cjs/components/Toast/index.cjs +1 -1
  189. package/dist/cjs/components/Toast/index.cjs.map +1 -1
  190. package/dist/cjs/components/Tooltip/index.cjs +1 -1
  191. package/dist/cjs/components/index.cjs +1 -1
  192. package/dist/cjs/index.cjs +1 -1
  193. package/dist/cjs/theme/index.cjs +1 -1
  194. package/dist/esm/components/Alert/index.js +1 -1
  195. package/dist/esm/components/Avatar/index.js +1 -1
  196. package/dist/esm/components/AvatarGroup/index.js +1 -1
  197. package/dist/esm/components/ButtonGroup/index.js +1 -1
  198. package/dist/esm/components/CharacterCounter/index.js +1 -1
  199. package/dist/esm/components/Checkbox/index.js +1 -1
  200. package/dist/esm/components/CheckboxGroup/index.js +1 -1
  201. package/dist/esm/components/ConversationCard/index.js +1 -1
  202. package/dist/esm/components/DatePicker/index.js +1 -1
  203. package/dist/esm/components/Heading/index.js +1 -1
  204. package/dist/esm/components/Link/index.js +1 -1
  205. package/dist/esm/components/Menu/index.js +1 -1
  206. package/dist/esm/components/Modal/index.js +1 -1
  207. package/dist/esm/components/PinInput/index.js +1 -1
  208. package/dist/esm/components/Popover/index.js +1 -1
  209. package/dist/esm/components/RadioGroup/index.js +1 -1
  210. package/dist/esm/components/RatingDots/index.js +1 -1
  211. package/dist/esm/components/Select/index.js +1 -1
  212. package/dist/esm/components/SortableList/index.js +1 -1
  213. package/dist/esm/components/Spinner/index.js +1 -1
  214. package/dist/esm/components/StyledAvatar/index.js +1 -1
  215. package/dist/esm/components/Switch/index.js +1 -1
  216. package/dist/esm/components/Tabs/index.js +1 -1
  217. package/dist/esm/components/Tag/index.js +1 -1
  218. package/dist/esm/components/TagBlock/index.js +1 -1
  219. package/dist/esm/components/Text/index.js +1 -1
  220. package/dist/esm/components/TextInput/index.js +1 -1
  221. package/dist/esm/components/Textarea/index.js +1 -1
  222. package/dist/esm/components/TimePicker/index.js +1 -1
  223. package/dist/esm/components/TimeRange/index.js +1 -1
  224. package/dist/esm/components/Timestamp/index.js +1 -1
  225. package/dist/esm/components/Toast/index.js +2 -2
  226. package/dist/esm/components/Toast/index.js.map +1 -1
  227. package/dist/esm/components/Tooltip/index.js +1 -1
  228. package/dist/esm/components/index.js +35 -35
  229. package/dist/esm/index.js +33 -33
  230. package/dist/esm/theme/index.js +1 -1
  231. package/dist/types/components/Checkbox/checkbox.component.d.ts +4 -3
  232. package/dist/types/components/PinInput/pinInput.component.d.ts +5 -3
  233. package/dist/types/components/Popover/popover.component.d.ts +1 -1
  234. package/dist/types/components/RadioGroup/components/Radio/radio.component.d.ts +5 -3
  235. package/dist/types/components/RatingDots/ratingDots.component.d.ts +2 -1
  236. package/dist/types/components/Select/select.component.d.ts +6 -4
  237. package/dist/types/components/Select/select.types.d.ts +2 -1
  238. package/dist/types/components/Switch/switch.component.d.ts +3 -2
  239. package/dist/types/components/TextInput/textInput.component.d.ts +4 -4
  240. package/dist/types/components/Textarea/textarea.component.d.ts +3 -3
  241. package/dist/types/hooks/usePortalContentRef.d.ts +6 -0
  242. package/package.json +1 -1
  243. package/dist/chunks/checkbox.component-CKLGUOSX.js +0 -2
  244. package/dist/chunks/checkbox.component-DhXTRoeP.js +0 -310
  245. package/dist/chunks/datePicker.component-CW882xTE.js.map +0 -1
  246. package/dist/chunks/datePicker.component-F6qFk1fF.js +0 -15
  247. package/dist/chunks/datePicker.component-F6qFk1fF.js.map +0 -1
  248. package/dist/chunks/link.component-CCFg-LIe.js +0 -2
  249. package/dist/chunks/link.component-CCFg-LIe.js.map +0 -1
  250. package/dist/chunks/link.component-DprieyUG.js +0 -60
  251. package/dist/chunks/link.component-DprieyUG.js.map +0 -1
  252. package/dist/chunks/menu.component-BPtwVqUh.js +0 -2
  253. package/dist/chunks/modal.context-DSKLfsJK.js.map +0 -1
  254. package/dist/chunks/modal.context-EJ67QNzq.js.map +0 -1
  255. package/dist/chunks/modal.types-Uq7F3jX9.js +0 -2
  256. package/dist/chunks/modal.types-Uq7F3jX9.js.map +0 -1
  257. package/dist/chunks/modal.types-XDLmSWyz.js.map +0 -1
  258. package/dist/chunks/pinInput.types-D8CEzrAw.js +0 -161
  259. package/dist/chunks/pinInput.types-DSMdiVB_.js +0 -2
  260. package/dist/chunks/popover.component-B7FvIYpm.js +0 -262
  261. package/dist/chunks/popover.component-B7FvIYpm.js.map +0 -1
  262. package/dist/chunks/popover.component-xKnAqZx4.js +0 -2
  263. package/dist/chunks/popover.component-xKnAqZx4.js.map +0 -1
  264. package/dist/chunks/radioGroup.component-3KGZ0rr_.js +0 -275
  265. package/dist/chunks/radioGroup.component-3KGZ0rr_.js.map +0 -1
  266. package/dist/chunks/radioGroup.component-DWMMKXA1.js +0 -2
  267. package/dist/chunks/radioGroup.component-DWMMKXA1.js.map +0 -1
  268. package/dist/chunks/ratingDots.component-BAwBMoag.js +0 -2
  269. package/dist/chunks/ratingDots.component-BAwBMoag.js.map +0 -1
  270. package/dist/chunks/ratingDots.component-BTtsR95a.js +0 -158
  271. package/dist/chunks/ratingDots.component-BTtsR95a.js.map +0 -1
  272. package/dist/chunks/select.component-LTpdnqVb.js +0 -391
  273. package/dist/chunks/select.component-LTpdnqVb.js.map +0 -1
  274. package/dist/chunks/select.component-Vl8xEr6A.js +0 -2
  275. package/dist/chunks/select.component-Vl8xEr6A.js.map +0 -1
  276. package/dist/chunks/switch.component-BIe8tduL.js +0 -2
  277. package/dist/chunks/switch.component-DmwKAQWj.js +0 -166
  278. package/dist/chunks/tag.component-C6a6EzZB.js +0 -2
  279. package/dist/chunks/tag.component-C6a6EzZB.js.map +0 -1
  280. package/dist/chunks/tag.component-pexJ0TAT.js +0 -82
  281. package/dist/chunks/tag.component-pexJ0TAT.js.map +0 -1
  282. package/dist/chunks/textInput.component-C9OmzJd9.js +0 -180
  283. package/dist/chunks/textInput.component-C9OmzJd9.js.map +0 -1
  284. package/dist/chunks/textInput.component-rWxcxFXP.js +0 -2
  285. package/dist/chunks/textInput.component-rWxcxFXP.js.map +0 -1
  286. package/dist/chunks/textarea.component-CvMV-9vc.js +0 -98
  287. package/dist/chunks/textarea.component-DKeXxrXq.js +0 -2
  288. package/dist/types/components/Modal/context/modal.context.d.ts +0 -6
@@ -1,12 +1,13 @@
1
- import { default as React, ForwardedRef } from 'react';
1
+ import { default as React } from 'react';
2
2
  import { Checkbox as CCheckbox } from '@chakra-ui/react/checkbox';
3
3
  import { WithFormControlProps } from '../../hocs/withFormControl/withFormControl';
4
4
  import { FormControlSize } from '../../hocs/withFormControl/withFormControl.types';
5
5
  export interface CheckboxProps extends WithFormControlProps, CCheckbox.RootProps {
6
- checkboxRef?: ForwardedRef<HTMLLabelElement>;
6
+ checkboxRef?: React.RefObject<HTMLInputElement | null>;
7
7
  indeterminate?: boolean;
8
+ rootRef?: React.RefObject<HTMLLabelElement | null>;
8
9
  size?: FormControlSize;
9
10
  withCard?: boolean;
10
11
  }
11
- declare const WrappedCheckbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLLabelElement>>;
12
+ declare const WrappedCheckbox: React.FC<CheckboxProps>;
12
13
  export { WrappedCheckbox as Checkbox };
@@ -1,10 +1,12 @@
1
- import { default as React, ForwardedRef } from 'react';
1
+ import { default as React } from 'react';
2
2
  import { PinInput as CPinInput } from '@chakra-ui/react/pin-input';
3
3
  import { WithFormControlProps } from '../../hocs/withFormControl/withFormControl';
4
4
  export interface PinInputProps extends WithFormControlProps, Omit<CPinInput.RootProps, "size"> {
5
5
  count?: number;
6
+ inputRef?: React.RefObject<HTMLInputElement | null>;
6
7
  onContrast?: boolean;
7
- pinInputRef?: ForwardedRef<HTMLDivElement | null>;
8
+ rootRef?: React.RefObject<HTMLDivElement | null>;
9
+ size?: "sm" | "md" | "lg";
8
10
  }
9
- declare const WrappedPinInput: React.ForwardRefExoticComponent<PinInputProps & React.RefAttributes<HTMLDivElement | null>>;
11
+ declare const WrappedPinInput: React.FC<PinInputProps>;
10
12
  export { WrappedPinInput as PinInput };
@@ -25,5 +25,5 @@ interface HoverPopoverProps extends HoverCard.RootProps {
25
25
  trigger?: "hover";
26
26
  }
27
27
  export type PopoverProps = KPopoverProps & (ClickPopoverProps | HoverPopoverProps);
28
- export declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;
28
+ export declare const Popover: ({ allowEscape, anchor, children, contentProps, footerProps, headerProps, disabled, portalled, placement, positioning, size, trigger, variant, ...rest }: PopoverProps) => React.ReactNode;
29
29
  export {};
@@ -1,12 +1,14 @@
1
- import { default as React, ForwardedRef } from 'react';
1
+ import { default as React } from 'react';
2
2
  import { RadioGroup } from '@chakra-ui/react/radio-group';
3
3
  import { FormControlSize } from '../../../../hocs/withFormControl/withFormControl.types';
4
4
  import { WithFormControlProps } from '../../../../hocs/withFormControl/withFormControl';
5
5
  export interface RadioProps extends WithFormControlProps, RadioGroup.ItemProps {
6
6
  checked?: boolean;
7
- radioRef?: ForwardedRef<HTMLDivElement>;
7
+ onContrast?: boolean;
8
+ radioRef?: React.RefObject<HTMLInputElement | null>;
9
+ rootRef?: React.RefObject<HTMLDivElement | null>;
8
10
  size?: FormControlSize;
9
11
  withCard?: boolean;
10
12
  }
11
- declare const WrappedRadio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLDivElement>>;
13
+ declare const WrappedRadio: React.FC<RadioProps>;
12
14
  export { WrappedRadio as Radio };
@@ -9,4 +9,5 @@ export interface RatingDotsProps extends WithFormControlProps {
9
9
  onChange?: (value: number) => void;
10
10
  value?: number;
11
11
  }
12
- export declare const RatingDots: React.FC<RatingDotsProps>;
12
+ declare const WrappedRatingDots: React.FC<RatingDotsProps>;
13
+ export { WrappedRatingDots as RatingDots };
@@ -1,21 +1,23 @@
1
- import { default as React, ForwardedRef } from 'react';
1
+ import { default as React } from 'react';
2
2
  import { Select as CSelect } from '@chakra-ui/react/select';
3
3
  import { WithFormControlProps } from '../../hocs/withFormControl/withFormControl';
4
4
  import { FormControlSize } from '../../hocs/withFormControl/withFormControl.types';
5
5
  import { SelectOption } from './select.types';
6
- export interface SelectProps extends Omit<CSelect.RootProps, "collection" | "multiple">, WithFormControlProps {
6
+ export interface SelectProps extends WithFormControlProps, Omit<CSelect.RootProps, "collection" | "multiple"> {
7
7
  clearable?: boolean;
8
8
  emptyPlaceholder?: string;
9
9
  loading?: boolean;
10
+ onContrast?: boolean;
10
11
  onSearch?: (e: React.ChangeEvent<HTMLInputElement>) => void;
11
12
  options: SelectOption[];
12
13
  placeholder?: string;
13
14
  placeholderElement?: React.ReactNode;
15
+ rootRef?: React.RefObject<HTMLDivElement | null>;
14
16
  searchable?: boolean;
15
17
  searchPlaceholder?: string;
16
- selectRef?: ForwardedRef<HTMLSelectElement>;
18
+ selectRef?: React.RefObject<HTMLSelectElement | null>;
17
19
  shouldTruncateText?: boolean;
18
20
  size?: FormControlSize;
19
21
  }
20
- declare const WrappedSelect: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
22
+ declare const WrappedSelect: React.FC<SelectProps>;
21
23
  export { WrappedSelect as Select };
@@ -1,9 +1,10 @@
1
1
  import { TypographyVariant } from '../../shared/types/typography';
2
2
  export interface SelectOption {
3
3
  disabled?: boolean;
4
- selected?: boolean;
4
+ groupLabel?: string;
5
5
  label: React.ReactNode;
6
6
  leftElement?: React.ReactNode;
7
+ selected?: boolean;
7
8
  value: string;
8
9
  valueText?: string;
9
10
  variant?: TypographyVariant;
@@ -4,8 +4,9 @@ import { WithFormControlProps } from '../../hocs/withFormControl/withFormControl
4
4
  import { FormControlSize } from '../../hocs/withFormControl/withFormControl.types';
5
5
  export interface SwitchProps extends WithFormControlProps, Omit<CSwitch.RootProps, "label" | "onChange"> {
6
6
  indeterminate?: boolean;
7
- switchRef?: ForwardedRef<HTMLLabelElement>;
7
+ rootRef?: ForwardedRef<HTMLLabelElement>;
8
8
  size?: FormControlSize;
9
+ switchRef?: React.RefObject<HTMLInputElement | null>;
9
10
  }
10
- declare const WrappedSwitch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLLabelElement>>;
11
+ declare const WrappedSwitch: React.FC<SwitchProps>;
11
12
  export { WrappedSwitch as Switch };
@@ -1,13 +1,13 @@
1
- import { default as React, ForwardedRef } from 'react';
1
+ import { default as React } from 'react';
2
2
  import { WithFormControlProps } from '../../hocs/withFormControl/withFormControl';
3
3
  import { InputProps as CInputProps } from '@chakra-ui/react/input';
4
4
  import { FormControlSize } from '../../hocs/withFormControl/withFormControl.types';
5
5
  export interface TextInputBaseProps extends WithFormControlProps {
6
6
  charLimit?: number;
7
- inputRef?: ForwardedRef<HTMLInputElement>;
8
- onContrast?: boolean;
7
+ inputRef?: React.RefObject<HTMLInputElement | null>;
9
8
  leftAddon?: React.ReactNode;
10
9
  leftElement?: React.ReactNode;
10
+ onContrast?: boolean;
11
11
  rightAddon?: React.ReactNode;
12
12
  rightElement?: React.ReactNode;
13
13
  size?: FormControlSize;
@@ -22,5 +22,5 @@ export interface ClearableTextInputProps extends TextInputBaseProps {
22
22
  }
23
23
  export type KTextInputProps = DefaultTextInputProps | ClearableTextInputProps;
24
24
  export type TextInputProps = KTextInputProps & CInputProps;
25
- declare const WrappedTextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
25
+ declare const WrappedTextInput: React.FC<TextInputProps>;
26
26
  export { WrappedTextInput as TextInput };
@@ -4,8 +4,8 @@ import { FormControlSize } from '../../hocs/withFormControl/withFormControl.type
4
4
  import { WithFormControlProps } from '../../hocs/withFormControl/withFormControl';
5
5
  export interface TextareaProps extends WithFormControlProps, CTextareaProps {
6
6
  charLimit?: number;
7
- textareaRef?: ForwardedRef<HTMLTextAreaElement>;
7
+ textareaRef?: ForwardedRef<HTMLTextAreaElement | null>;
8
8
  size?: FormControlSize;
9
9
  }
10
- declare const WrappedTextArea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
11
- export { WrappedTextArea as Textarea };
10
+ declare const WrappedTextarea: React.FC<TextareaProps>;
11
+ export { WrappedTextarea as Textarea };
@@ -0,0 +1,6 @@
1
+ interface PortalContextType {
2
+ contentRef: React.RefObject<HTMLDivElement> | null;
3
+ }
4
+ export declare const PortalContext: import('react').Context<PortalContextType | undefined>;
5
+ export declare const usePortalContentRef: () => PortalContextType;
6
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@televet/kibble-ui",
3
3
  "description": "Kibble Design System by Otto",
4
- "version": "4.0.0-beta.84",
4
+ "version": "4.0.0-beta.86",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.cjs",
7
7
  "module": "dist/esm/index.js",
@@ -1,2 +0,0 @@
1
- "use strict";const n=require("./jsx-runtime-BjDatQAs.js"),u=require("react"),$=require("./withFormControl-BcHQTSnc.js"),P=require("./card.component-KNc4HKSh.js"),H=require("./text.component-DwVoyMgc.js"),m=require("./checkbox.records-DI3mqSNf.js"),W=require("./create-slot-recipe-context-IwVIgtBt.js"),f=require("./factory-D6tdBUPG.js"),D=require("./attr-BMs6szZx.js"),T=require("./empty-B5_AO6Pg.js"),Y=require("./use-recipe-DaPWl_pL.js"),i=require("./use-locale-context-D0LByRu9.js"),y=require("./use-field-context-CArmgHPP.js"),b=require("./index-CHIISuTq.js"),B=o=>o&&o.__esModule?o:{default:o},E=B(u),[_,j]=i.createContext({name:"CheckboxContext",hookName:"useCheckboxContext",providerName:"<CheckboxProvider />"}),N=u.forwardRef((o,e)=>{const t=j(),s=b.mergeProps(t.getControlProps(),o);return n.jsxRuntimeExports.jsx(i.ark.div,{...s,ref:e})});N.displayName="CheckboxControl";function U(o){const{value:e,onChange:t,defaultValue:s}=o,[r,a]=u.useState(s),c=e!==void 0,d=c?e:r,x=u.useCallback(h=>(c||a(h),t?.(h)),[c,t]);return[d,x]}function q(o={}){const{defaultValue:e,value:t,onValueChange:s,disabled:r,readOnly:a,name:c,invalid:d}=o,x=!(r||a),h=i.useEvent(s,{sync:!0}),[p,C]=U({value:t,defaultValue:e||[],onChange:h}),k=l=>p.some(R=>String(R)===String(l)),g=l=>{k(l)?O(l):v(l)},v=l=>{x&&(k(l)||C(p.concat(l)))},O=l=>{x&&C(p.filter(R=>String(R)!==String(l)))};return{isChecked:k,value:p,name:c,disabled:!!r,readOnly:!!a,invalid:!!d,setValue:C,addValue:v,toggleValue:g,getItemProps:l=>({checked:l.value!=null?k(l.value):void 0,onCheckedChange(){l.value!=null&&g(l.value)},name:c,disabled:r,readOnly:a,invalid:d})}}const[J,K]=i.createContext({name:"CheckboxGroupContext",hookName:"useCheckboxGroupContext",providerName:"<CheckboxGroupProvider />",strict:!1}),w=u.forwardRef((o,e)=>{const[t,s]=i.createSplitProps()(o,["defaultValue","value","onValueChange","disabled","invalid","readOnly","name"]),r=q(t);return n.jsxRuntimeExports.jsx(J,{value:r,children:n.jsxRuntimeExports.jsx(i.ark.div,{ref:e,role:"group",...s,...m.checkboxAnatomy.build().group.attrs})})});w.displayName="CheckboxGroup";const S=u.forwardRef((o,e)=>{const t=j(),s=b.mergeProps(t.getHiddenInputProps(),o),r=y.useFieldContext();return n.jsxRuntimeExports.jsx(i.ark.input,{"aria-describedby":r?.ariaDescribedby,...s,ref:e})});S.displayName="CheckboxHiddenInput";const V=u.forwardRef((o,e)=>{const t=j(),s=b.mergeProps(t.getLabelProps(),o);return n.jsxRuntimeExports.jsx(i.ark.span,{...s,ref:e})});V.displayName="CheckboxLabel";const Q=(o={})=>{const e=K(),t=y.useFieldContext(),s=u.useMemo(()=>b.mergeProps(o,e?.getItemProps({value:o.value})??{}),[o,e]),r=u.useId(),{getRootNode:a}=i.useEnvironmentContext(),{dir:c}=i.useLocaleContext(),d={id:r,ids:{label:t?.ids.label,hiddenInput:t?.ids.control},dir:c,disabled:t?.disabled,readOnly:t?.readOnly,invalid:t?.invalid,required:t?.required,getRootNode:a,...s},x=i.useMachine(m.machine,d);return m.connect(x,i.normalizeProps)},G=u.forwardRef((o,e)=>{const[t,s]=i.createSplitProps()(o,["checked","defaultChecked","disabled","form","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]),r=Q(t),a=b.mergeProps(r.getRootProps(),s);return n.jsxRuntimeExports.jsx(_,{value:r,children:n.jsxRuntimeExports.jsx(i.ark.label,{...a,ref:e})})});G.displayName="CheckboxRoot";const I=u.forwardRef((o,e)=>{const[{value:t},s]=i.createSplitProps()(o,["value"]),r=b.mergeProps(t.getRootProps(),s);return n.jsxRuntimeExports.jsx(_,{value:t,children:n.jsxRuntimeExports.jsx(i.ark.label,{...r,ref:e})})});I.displayName="CheckboxRootProvider";const X=u.forwardRef(function(e,t){const s=Y.useRecipe({key:"checkmark",recipe:e.recipe}),[r,a]=s.splitVariantProps(e),{checked:c,indeterminate:d,disabled:x,unstyled:h,children:p,...C}=a,k=h?T.EMPTY_STYLES:s(r);return n.jsxRuntimeExports.jsx(f.chakra.svg,{ref:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3px",strokeLinecap:"round",strokeLinejoin:"round","data-state":d?"indeterminate":c?"checked":"unchecked","data-disabled":D.dataAttr(x),css:[k,e.css],...C,children:d?n.jsxRuntimeExports.jsx("path",{d:"M5 12h14"}):c?n.jsxRuntimeExports.jsx("polyline",{points:"20 6 9 17 4 12"}):null})}),{withProvider:L,withContext:A,useStyles:Z}=W.createSlotRecipeContext({key:"checkbox"});L(I,"root",{forwardAsChild:!0});const z=L(G,"root",{forwardAsChild:!0}),ee=A(V,"label",{forwardAsChild:!0}),M=u.forwardRef(function(e,t){const{checked:s,indeterminate:r,...a}=e,c=j(),d=Z();return s&&c.checked?n.jsxRuntimeExports.jsx(f.chakra.svg,{ref:t,asChild:!0,...a,css:[d.indicator,e.css],children:s}):r&&c.indeterminate?n.jsxRuntimeExports.jsx(f.chakra.svg,{ref:t,asChild:!0,...a,css:[d.indicator,e.css],children:r}):n.jsxRuntimeExports.jsx(X,{ref:t,checked:c.checked,indeterminate:c.indeterminate,disabled:c.disabled,unstyled:!0,...a,css:[d.indicator,e.css]})}),te=A(N,"control",{forwardAsChild:!0,defaultProps:{children:n.jsxRuntimeExports.jsx(M,{})}}),oe=f.chakra(w,{base:{display:"flex",flexDirection:"column",gap:"1.5"}},{forwardAsChild:!0}),re=S,se=$.withFormControl(({checkboxRef:o,children:e,indeterminate:t=!1,onContrast:s,size:r="md",withCard:a=!1,...c})=>{const d=s?"onContrast":"default",x=a?({children:h})=>{const p=(m.CheckboxSizeMap[r]+m.CheckboxLabelSpacing[r]+P.CardPaddingMap[r])*4;return n.jsxRuntimeExports.jsx(P.Card,{className:"Checkbox__Card","data-testid":"kibble-checkbox-card",...!c.disabled&&{interactive:!0,active:!!c.checked},onContrast:s,size:r,fullWidth:!0,display:"flex",...typeof h=="string"&&{alignItems:"center"},width:"inherit",pr:`${p}px`,children:h})}:E.default.Fragment;return n.jsxRuntimeExports.jsx(z,{className:"Checkbox","data-testid":"kibble-checkbox",checked:t?"indeterminate":c.checked,ref:o,variant:d,size:r,...c,children:n.jsxRuntimeExports.jsxs(x,{children:[n.jsxRuntimeExports.jsx(re,{className:"Checkbox__Input","data-testid":"kibble-checkbox-input"}),n.jsxRuntimeExports.jsx(te,{className:"Checkbox__Control","data-testid":"kibble-checkbox-control",children:n.jsxRuntimeExports.jsx(M,{className:"Checkbox__Indicator","data-testid":"kibble-checkbox-indicator"})}),!!e&&n.jsxRuntimeExports.jsx(ee,{className:"Checkbox__Label","data-testid":"kibble-checkbox-label",...a&&typeof e!="string"&&{mt:"-4px"},children:typeof e=="string"?n.jsxRuntimeExports.jsx(H.WrappedText,{size:r,lineHeight:"unset",variant:s?"onContrast":"default",children:e}):e})]})})}),F=E.default.forwardRef((o,e)=>n.jsxRuntimeExports.jsx(se,{checkboxRef:e,...o}));F.displayName="Checkbox";exports.CheckboxGroup=oe;exports.WrappedCheckbox=F;exports.useCheckboxGroup=q;
2
- //# sourceMappingURL=checkbox.component-CKLGUOSX.js.map
@@ -1,310 +0,0 @@
1
- import { j as s } from "./jsx-runtime-C5mzlN2N.js";
2
- import j, { forwardRef as h, useState as $, useCallback as E, useMemo as H, useId as q } from "react";
3
- import { w as F } from "./withFormControl-mCCJK8wX.js";
4
- import { C as T, a as D } from "./card.component-DNX41NGG.js";
5
- import { W as Y } from "./text.component-2XEOQ18v.js";
6
- import { c as B, m as U, a as J, C as K, b as Q } from "./checkbox.records-4j704fMI.js";
7
- import { c as X } from "./create-slot-recipe-context-BJmsuxih.js";
8
- import { c as m } from "./factory-Ctbv0Ozn.js";
9
- import { d as Z } from "./attr-sm10PXOd.js";
10
- import { a as z } from "./empty-BU2EAux9.js";
11
- import { u as ee } from "./use-recipe-d63ABaZ3.js";
12
- import { c as N, f as k, o as oe, a as g, i as te, j as re, k as ce, n as se } from "./use-locale-context-BiiNTYMT.js";
13
- import { u as V } from "./use-field-context-Cm3grEyV.js";
14
- import { a1 as C } from "./index-YtNA0Ueo.js";
15
- const [R, f] = N({
16
- name: "CheckboxContext",
17
- hookName: "useCheckboxContext",
18
- providerName: "<CheckboxProvider />"
19
- }), I = h((c, e) => {
20
- const o = f(), r = C(o.getControlProps(), c);
21
- return /* @__PURE__ */ s.jsx(k.div, { ...r, ref: e });
22
- });
23
- I.displayName = "CheckboxControl";
24
- function ae(c) {
25
- const { value: e, onChange: o, defaultValue: r } = c, [t, n] = $(r), a = e !== void 0, i = a ? e : t, l = E(
26
- (u) => (a || n(u), o?.(u)),
27
- [a, o]
28
- );
29
- return [i, l];
30
- }
31
- function ne(c = {}) {
32
- const { defaultValue: e, value: o, onValueChange: r, disabled: t, readOnly: n, name: a, invalid: i } = c, l = !(t || n), u = oe(r, { sync: !0 }), [x, p] = ae({
33
- value: o,
34
- defaultValue: e || [],
35
- onChange: u
36
- }), b = (d) => x.some((v) => String(v) === String(d)), P = (d) => {
37
- b(d) ? W(d) : y(d);
38
- }, y = (d) => {
39
- l && (b(d) || p(x.concat(d)));
40
- }, W = (d) => {
41
- l && p(x.filter((v) => String(v) !== String(d)));
42
- };
43
- return {
44
- isChecked: b,
45
- value: x,
46
- name: a,
47
- disabled: !!t,
48
- readOnly: !!n,
49
- invalid: !!i,
50
- setValue: p,
51
- addValue: y,
52
- toggleValue: P,
53
- getItemProps: (d) => ({
54
- checked: d.value != null ? b(d.value) : void 0,
55
- onCheckedChange() {
56
- d.value != null && P(d.value);
57
- },
58
- name: a,
59
- disabled: t,
60
- readOnly: n,
61
- invalid: i
62
- })
63
- };
64
- }
65
- const [ie, de] = N({
66
- name: "CheckboxGroupContext",
67
- hookName: "useCheckboxGroupContext",
68
- providerName: "<CheckboxGroupProvider />",
69
- strict: !1
70
- }), S = h((c, e) => {
71
- const [o, r] = g()(c, [
72
- "defaultValue",
73
- "value",
74
- "onValueChange",
75
- "disabled",
76
- "invalid",
77
- "readOnly",
78
- "name"
79
- ]), t = ne(o);
80
- return /* @__PURE__ */ s.jsx(ie, { value: t, children: /* @__PURE__ */ s.jsx(k.div, { ref: e, role: "group", ...r, ...B.build().group.attrs }) });
81
- });
82
- S.displayName = "CheckboxGroup";
83
- const _ = h((c, e) => {
84
- const o = f(), r = C(o.getHiddenInputProps(), c), t = V();
85
- return /* @__PURE__ */ s.jsx(k.input, { "aria-describedby": t?.ariaDescribedby, ...r, ref: e });
86
- });
87
- _.displayName = "CheckboxHiddenInput";
88
- const G = h((c, e) => {
89
- const o = f(), r = C(o.getLabelProps(), c);
90
- return /* @__PURE__ */ s.jsx(k.span, { ...r, ref: e });
91
- });
92
- G.displayName = "CheckboxLabel";
93
- const le = (c = {}) => {
94
- const e = de(), o = V(), r = H(() => C(c, e?.getItemProps({ value: c.value }) ?? {}), [c, e]), t = q(), { getRootNode: n } = te(), { dir: a } = re(), i = {
95
- id: t,
96
- ids: {
97
- label: o?.ids.label,
98
- hiddenInput: o?.ids.control
99
- },
100
- dir: a,
101
- disabled: o?.disabled,
102
- readOnly: o?.readOnly,
103
- invalid: o?.invalid,
104
- required: o?.required,
105
- getRootNode: n,
106
- ...r
107
- }, l = ce(U, i);
108
- return J(l, se);
109
- }, w = h((c, e) => {
110
- const [o, r] = g()(c, [
111
- "checked",
112
- "defaultChecked",
113
- "disabled",
114
- "form",
115
- "id",
116
- "ids",
117
- "invalid",
118
- "name",
119
- "onCheckedChange",
120
- "readOnly",
121
- "required",
122
- "value"
123
- ]), t = le(o), n = C(t.getRootProps(), r);
124
- return /* @__PURE__ */ s.jsx(R, { value: t, children: /* @__PURE__ */ s.jsx(k.label, { ...n, ref: e }) });
125
- });
126
- w.displayName = "CheckboxRoot";
127
- const L = h((c, e) => {
128
- const [{ value: o }, r] = g()(c, ["value"]), t = C(o.getRootProps(), r);
129
- return /* @__PURE__ */ s.jsx(R, { value: o, children: /* @__PURE__ */ s.jsx(k.label, { ...t, ref: e }) });
130
- });
131
- L.displayName = "CheckboxRootProvider";
132
- const ue = h(
133
- function(e, o) {
134
- const r = ee({ key: "checkmark", recipe: e.recipe }), [t, n] = r.splitVariantProps(e), { checked: a, indeterminate: i, disabled: l, unstyled: u, children: x, ...p } = n, b = u ? z : r(t);
135
- return /* @__PURE__ */ s.jsx(
136
- m.svg,
137
- {
138
- ref: o,
139
- viewBox: "0 0 24 24",
140
- fill: "none",
141
- stroke: "currentColor",
142
- strokeWidth: "3px",
143
- strokeLinecap: "round",
144
- strokeLinejoin: "round",
145
- "data-state": i ? "indeterminate" : a ? "checked" : "unchecked",
146
- "data-disabled": Z(l),
147
- css: [b, e.css],
148
- ...p,
149
- children: i ? /* @__PURE__ */ s.jsx("path", { d: "M5 12h14" }) : a ? /* @__PURE__ */ s.jsx("polyline", { points: "20 6 9 17 4 12" }) : null
150
- }
151
- );
152
- }
153
- ), {
154
- withProvider: A,
155
- withContext: M,
156
- useStyles: he
157
- } = X({ key: "checkbox" });
158
- A(L, "root", { forwardAsChild: !0 });
159
- const xe = A(
160
- w,
161
- "root",
162
- { forwardAsChild: !0 }
163
- ), be = M(
164
- G,
165
- "label",
166
- { forwardAsChild: !0 }
167
- ), O = h(function(e, o) {
168
- const { checked: r, indeterminate: t, ...n } = e, a = f(), i = he();
169
- return r && a.checked ? /* @__PURE__ */ s.jsx(
170
- m.svg,
171
- {
172
- ref: o,
173
- asChild: !0,
174
- ...n,
175
- css: [i.indicator, e.css],
176
- children: r
177
- }
178
- ) : t && a.indeterminate ? /* @__PURE__ */ s.jsx(
179
- m.svg,
180
- {
181
- ref: o,
182
- asChild: !0,
183
- ...n,
184
- css: [i.indicator, e.css],
185
- children: t
186
- }
187
- ) : /* @__PURE__ */ s.jsx(
188
- ue,
189
- {
190
- ref: o,
191
- checked: a.checked,
192
- indeterminate: a.indeterminate,
193
- disabled: a.disabled,
194
- unstyled: !0,
195
- ...n,
196
- css: [i.indicator, e.css]
197
- }
198
- );
199
- }), ke = M(
200
- I,
201
- "control",
202
- {
203
- forwardAsChild: !0,
204
- defaultProps: { children: /* @__PURE__ */ s.jsx(O, {}) }
205
- }
206
- ), Ae = m(
207
- S,
208
- {
209
- base: {
210
- display: "flex",
211
- flexDirection: "column",
212
- gap: "1.5"
213
- }
214
- },
215
- { forwardAsChild: !0 }
216
- ), Ce = _, pe = F(
217
- ({
218
- checkboxRef: c,
219
- children: e,
220
- indeterminate: o = !1,
221
- onContrast: r,
222
- size: t = "md",
223
- withCard: n = !1,
224
- ...a
225
- }) => {
226
- const i = r ? "onContrast" : "default", l = n ? ({ children: u }) => {
227
- const x = (K[t] + Q[t] + D[t]) * 4;
228
- return /* @__PURE__ */ s.jsx(
229
- T,
230
- {
231
- className: "Checkbox__Card",
232
- "data-testid": "kibble-checkbox-card",
233
- ...!a.disabled && {
234
- interactive: !0,
235
- active: !!a.checked
236
- },
237
- onContrast: r,
238
- size: t,
239
- fullWidth: !0,
240
- display: "flex",
241
- ...typeof u == "string" && { alignItems: "center" },
242
- width: "inherit",
243
- pr: `${x}px`,
244
- children: u
245
- }
246
- );
247
- } : j.Fragment;
248
- return /* @__PURE__ */ s.jsx(
249
- xe,
250
- {
251
- className: "Checkbox",
252
- "data-testid": "kibble-checkbox",
253
- checked: o ? "indeterminate" : a.checked,
254
- ref: c,
255
- variant: i,
256
- size: t,
257
- ...a,
258
- children: /* @__PURE__ */ s.jsxs(l, { children: [
259
- /* @__PURE__ */ s.jsx(
260
- Ce,
261
- {
262
- className: "Checkbox__Input",
263
- "data-testid": "kibble-checkbox-input"
264
- }
265
- ),
266
- /* @__PURE__ */ s.jsx(
267
- ke,
268
- {
269
- className: "Checkbox__Control",
270
- "data-testid": "kibble-checkbox-control",
271
- children: /* @__PURE__ */ s.jsx(
272
- O,
273
- {
274
- className: "Checkbox__Indicator",
275
- "data-testid": "kibble-checkbox-indicator"
276
- }
277
- )
278
- }
279
- ),
280
- !!e && /* @__PURE__ */ s.jsx(
281
- be,
282
- {
283
- className: "Checkbox__Label",
284
- "data-testid": "kibble-checkbox-label",
285
- ...n && typeof e != "string" && { mt: "-4px" },
286
- children: typeof e == "string" ? /* @__PURE__ */ s.jsx(
287
- Y,
288
- {
289
- size: t,
290
- lineHeight: "unset",
291
- variant: r ? "onContrast" : "default",
292
- children: e
293
- }
294
- ) : e
295
- }
296
- )
297
- ] })
298
- }
299
- );
300
- }
301
- ), me = j.forwardRef(
302
- (c, e) => /* @__PURE__ */ s.jsx(pe, { checkboxRef: e, ...c })
303
- );
304
- me.displayName = "Checkbox";
305
- export {
306
- Ae as C,
307
- me as W,
308
- ne as u
309
- };
310
- //# sourceMappingURL=checkbox.component-DhXTRoeP.js.map