@televet/kibble-ui 5.0.2 → 5.0.4-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/dist/chunks/{alert.types-C_ygg7fh.js → alert.types-BsTOOEB7.js} +3 -3
  2. package/dist/chunks/{alert.types-C_ygg7fh.js.map → alert.types-BsTOOEB7.js.map} +1 -1
  3. package/dist/chunks/{alert.types-BKSqs9qY.js → alert.types-Ch8hn5HY.js} +2 -2
  4. package/dist/chunks/{alert.types-BKSqs9qY.js.map → alert.types-Ch8hn5HY.js.map} +1 -1
  5. package/dist/chunks/{avatar.component-B1HGlwVW.js → avatar.component-Bi0lMCsC.js} +2 -2
  6. package/dist/chunks/{avatar.component-B1HGlwVW.js.map → avatar.component-Bi0lMCsC.js.map} +1 -1
  7. package/dist/chunks/{avatar.component-C-365mx3.js → avatar.component-DUZc5iXT.js} +2 -2
  8. package/dist/chunks/{avatar.component-C-365mx3.js.map → avatar.component-DUZc5iXT.js.map} +1 -1
  9. package/dist/chunks/{avatarGroup.component-CTBfGiSm.js → avatarGroup.component-BdhUT7n5.js} +2 -2
  10. package/dist/chunks/{avatarGroup.component-CTBfGiSm.js.map → avatarGroup.component-BdhUT7n5.js.map} +1 -1
  11. package/dist/chunks/{avatarGroup.component-B-ZOhj7i.js → avatarGroup.component-BwrjkSJn.js} +5 -5
  12. package/dist/chunks/{avatarGroup.component-B-ZOhj7i.js.map → avatarGroup.component-BwrjkSJn.js.map} +1 -1
  13. package/dist/chunks/{buttonGroup.component-DUK2FgFn.js → buttonGroup.component--dqWO06l.js} +2 -2
  14. package/dist/chunks/{buttonGroup.component-DUK2FgFn.js.map → buttonGroup.component--dqWO06l.js.map} +1 -1
  15. package/dist/chunks/{buttonGroup.component-CowJsbr7.js → buttonGroup.component-D1h4aH2G.js} +2 -2
  16. package/dist/chunks/{buttonGroup.component-CowJsbr7.js.map → buttonGroup.component-D1h4aH2G.js.map} +1 -1
  17. package/dist/chunks/{calendar.component-CHIhplfO.js → calendar.component-DxMzZla-.js} +2 -2
  18. package/dist/chunks/{calendar.component-CHIhplfO.js.map → calendar.component-DxMzZla-.js.map} +1 -1
  19. package/dist/chunks/{calendar.component-tOoK1NrU.js → calendar.component-w4rJ7mNI.js} +2 -2
  20. package/dist/chunks/{calendar.component-tOoK1NrU.js.map → calendar.component-w4rJ7mNI.js.map} +1 -1
  21. package/dist/chunks/{characterCounter.component-CKDigkoD.js → characterCounter.component-BRHLt929.js} +2 -2
  22. package/dist/chunks/{characterCounter.component-CKDigkoD.js.map → characterCounter.component-BRHLt929.js.map} +1 -1
  23. package/dist/chunks/{characterCounter.component-Ch3P3GqC.js → characterCounter.component-CoMqt04J.js} +2 -2
  24. package/dist/chunks/{characterCounter.component-Ch3P3GqC.js.map → characterCounter.component-CoMqt04J.js.map} +1 -1
  25. package/dist/chunks/{checkbox.component-DE35wBj-.js → checkbox.component-Be_DWrS9.js} +3 -3
  26. package/dist/chunks/{checkbox.component-DE35wBj-.js.map → checkbox.component-Be_DWrS9.js.map} +1 -1
  27. package/dist/chunks/{checkbox.component-CiA3Z1zR.js → checkbox.component-DkpiUlzn.js} +2 -2
  28. package/dist/chunks/{checkbox.component-CiA3Z1zR.js.map → checkbox.component-DkpiUlzn.js.map} +1 -1
  29. package/dist/chunks/{checkboxGroup.component-CYwGlktu.js → checkboxGroup.component-BtzzLHHB.js} +3 -3
  30. package/dist/chunks/{checkboxGroup.component-CYwGlktu.js.map → checkboxGroup.component-BtzzLHHB.js.map} +1 -1
  31. package/dist/chunks/{checkboxGroup.component-BGBd-roJ.js → checkboxGroup.component-CtCezYeT.js} +2 -2
  32. package/dist/chunks/{checkboxGroup.component-BGBd-roJ.js.map → checkboxGroup.component-CtCezYeT.js.map} +1 -1
  33. package/dist/chunks/{conversationCard.component-BrDGshOG.js → conversationCard.component-8-HSmE3v.js} +2 -2
  34. package/dist/chunks/{conversationCard.component-BrDGshOG.js.map → conversationCard.component-8-HSmE3v.js.map} +1 -1
  35. package/dist/chunks/{conversationCard.component-CMdqD3yN.js → conversationCard.component-FMq9PY8T.js} +8 -8
  36. package/dist/chunks/{conversationCard.component-CMdqD3yN.js.map → conversationCard.component-FMq9PY8T.js.map} +1 -1
  37. package/dist/chunks/{datePicker.component-eHU7IZgC.js → datePicker.component-C7QZhsm6.js} +5 -5
  38. package/dist/chunks/{datePicker.component-eHU7IZgC.js.map → datePicker.component-C7QZhsm6.js.map} +1 -1
  39. package/dist/chunks/{datePicker.component-C6cD1_HR.js → datePicker.component-DVOU1Sss.js} +2 -2
  40. package/dist/chunks/{datePicker.component-C6cD1_HR.js.map → datePicker.component-DVOU1Sss.js.map} +1 -1
  41. package/dist/chunks/{datePicker.provider-BWHE-9FA.js → datePicker.provider-CS1aBg9h.js} +270 -270
  42. package/dist/chunks/{datePicker.provider-BWHE-9FA.js.map → datePicker.provider-CS1aBg9h.js.map} +1 -1
  43. package/dist/chunks/datePicker.provider-D9GNAT1f.js +15 -0
  44. package/dist/chunks/{datePicker.provider-DgarjPPd.js.map → datePicker.provider-D9GNAT1f.js.map} +1 -1
  45. package/dist/chunks/{dateTimePicker.component-Byjxg2lJ.js → dateTimePicker.component-DJcUN8oo.js} +6 -6
  46. package/dist/chunks/{dateTimePicker.component-Byjxg2lJ.js.map → dateTimePicker.component-DJcUN8oo.js.map} +1 -1
  47. package/dist/chunks/{dateTimePicker.component-REz9iX4S.js → dateTimePicker.component-EkAaKua6.js} +2 -2
  48. package/dist/chunks/{dateTimePicker.component-REz9iX4S.js.map → dateTimePicker.component-EkAaKua6.js.map} +1 -1
  49. package/dist/chunks/{heading.component-DMAQO_-m.js → heading.component-DnoZOXdz.js} +2 -2
  50. package/dist/chunks/{heading.component-DMAQO_-m.js.map → heading.component-DnoZOXdz.js.map} +1 -1
  51. package/dist/chunks/{heading.component-7ikcgDco.js → heading.component-PFNpLFT7.js} +2 -2
  52. package/dist/chunks/{heading.component-7ikcgDco.js.map → heading.component-PFNpLFT7.js.map} +1 -1
  53. package/dist/chunks/{menu.component-DwTen8Uv.js → menu.component-BuTY_3mt.js} +201 -197
  54. package/dist/chunks/menu.component-BuTY_3mt.js.map +1 -0
  55. package/dist/chunks/menu.component-D79Ce44I.js +2 -0
  56. package/dist/chunks/menu.component-D79Ce44I.js.map +1 -0
  57. package/dist/chunks/{modal.types-B0rK6xJy.js → modal.types-jE-vPShC.js} +2 -2
  58. package/dist/chunks/{modal.types-B0rK6xJy.js.map → modal.types-jE-vPShC.js.map} +1 -1
  59. package/dist/chunks/{modal.types-74os4Bqi.js → modal.types-y3cRa0HL.js} +2 -2
  60. package/dist/chunks/{modal.types-74os4Bqi.js.map → modal.types-y3cRa0HL.js.map} +1 -1
  61. package/dist/chunks/{notificationCounter.component-BexkISUl.js → notificationCounter.component-BlGSd37B.js} +2 -2
  62. package/dist/chunks/{notificationCounter.component-BexkISUl.js.map → notificationCounter.component-BlGSd37B.js.map} +1 -1
  63. package/dist/chunks/{notificationCounter.component-DJpUXeXm.js → notificationCounter.component-CBwi5vXa.js} +2 -2
  64. package/dist/chunks/{notificationCounter.component-DJpUXeXm.js.map → notificationCounter.component-CBwi5vXa.js.map} +1 -1
  65. package/dist/chunks/{numberInput.component-RCwUUzmH.js → numberInput.component-DIEvX3XV.js} +2 -2
  66. package/dist/chunks/{numberInput.component-RCwUUzmH.js.map → numberInput.component-DIEvX3XV.js.map} +1 -1
  67. package/dist/chunks/{numberInput.component-DIABzNV6.js → numberInput.component-DTvSbkyF.js} +2 -2
  68. package/dist/chunks/{numberInput.component-DIABzNV6.js.map → numberInput.component-DTvSbkyF.js.map} +1 -1
  69. package/dist/chunks/{pinInput.types-CcaAN6P2.js → pinInput.types-B6LSv8Kj.js} +2 -2
  70. package/dist/chunks/{pinInput.types-CcaAN6P2.js.map → pinInput.types-B6LSv8Kj.js.map} +1 -1
  71. package/dist/chunks/{pinInput.types-BCzsoF9r.js → pinInput.types-CM5wUaXi.js} +2 -2
  72. package/dist/chunks/{pinInput.types-BCzsoF9r.js.map → pinInput.types-CM5wUaXi.js.map} +1 -1
  73. package/dist/chunks/{popover.component-DEOUdSu3.js → popover.component-BsiKfJR7.js} +5 -5
  74. package/dist/chunks/{popover.component-DEOUdSu3.js.map → popover.component-BsiKfJR7.js.map} +1 -1
  75. package/dist/chunks/{popover.component-BBp_5m8e.js → popover.component-C0nG3J1J.js} +2 -2
  76. package/dist/chunks/{popover.component-BBp_5m8e.js.map → popover.component-C0nG3J1J.js.map} +1 -1
  77. package/dist/chunks/{popover.recipe-B9bkpDfc.js → popover.recipe-BAl0q_IZ.js} +8 -8
  78. package/dist/chunks/popover.recipe-BAl0q_IZ.js.map +1 -0
  79. package/dist/chunks/popover.recipe-NDvOfG9X.js +2 -0
  80. package/dist/chunks/popover.recipe-NDvOfG9X.js.map +1 -0
  81. package/dist/chunks/{radioGroup.types-DJ68ERdO.js → radioGroup.types-C-JQsOXh.js} +4 -4
  82. package/dist/chunks/{radioGroup.types-DJ68ERdO.js.map → radioGroup.types-C-JQsOXh.js.map} +1 -1
  83. package/dist/chunks/{radioGroup.types-C7A8mLMz.js → radioGroup.types-sigpU7JZ.js} +2 -2
  84. package/dist/chunks/{radioGroup.types-C7A8mLMz.js.map → radioGroup.types-sigpU7JZ.js.map} +1 -1
  85. package/dist/chunks/{rating.component-BsuGbcxP.js → rating.component-23y0uvWf.js} +2 -2
  86. package/dist/chunks/{rating.component-BsuGbcxP.js.map → rating.component-23y0uvWf.js.map} +1 -1
  87. package/dist/chunks/{rating.component-ChzcvUl6.js → rating.component-Btdd7tMX.js} +2 -2
  88. package/dist/chunks/{rating.component-ChzcvUl6.js.map → rating.component-Btdd7tMX.js.map} +1 -1
  89. package/dist/chunks/{ratingDots.component-D9WQGVcj.js → ratingDots.component-CEribcPM.js} +3 -3
  90. package/dist/chunks/{ratingDots.component-D9WQGVcj.js.map → ratingDots.component-CEribcPM.js.map} +1 -1
  91. package/dist/chunks/{ratingDots.component-CVjSZ9JJ.js → ratingDots.component-dfb3E9CK.js} +2 -2
  92. package/dist/chunks/{ratingDots.component-CVjSZ9JJ.js.map → ratingDots.component-dfb3E9CK.js.map} +1 -1
  93. package/dist/chunks/{select.component-B4mAPqzN.js → select.component-BwgvV_Lm.js} +5 -5
  94. package/dist/chunks/{select.component-B4mAPqzN.js.map → select.component-BwgvV_Lm.js.map} +1 -1
  95. package/dist/chunks/{select.component-CCNxMGvb.js → select.component-D4XUEDi4.js} +2 -2
  96. package/dist/chunks/{select.component-CCNxMGvb.js.map → select.component-D4XUEDi4.js.map} +1 -1
  97. package/dist/chunks/{sortableList.component-BlwtnxVj.js → sortableList.component-2yX2pXs7.js} +2 -2
  98. package/dist/chunks/{sortableList.component-BlwtnxVj.js.map → sortableList.component-2yX2pXs7.js.map} +1 -1
  99. package/dist/chunks/{sortableList.component-XfURY7C2.js → sortableList.component-B2XQoMq7.js} +2 -2
  100. package/dist/chunks/{sortableList.component-XfURY7C2.js.map → sortableList.component-B2XQoMq7.js.map} +1 -1
  101. package/dist/chunks/{spinner.component-B3dkvoO9.js → spinner.component-D3s81AJH.js} +2 -2
  102. package/dist/chunks/{spinner.component-B3dkvoO9.js.map → spinner.component-D3s81AJH.js.map} +1 -1
  103. package/dist/chunks/{spinner.component-DuW1_IWM.js → spinner.component-Dq6u4vVL.js} +2 -2
  104. package/dist/chunks/{spinner.component-DuW1_IWM.js.map → spinner.component-Dq6u4vVL.js.map} +1 -1
  105. package/dist/chunks/{styledAvatar.types-cR6PNPxA.js → styledAvatar.types-C9Oi9C2U.js} +2 -2
  106. package/dist/chunks/{styledAvatar.types-cR6PNPxA.js.map → styledAvatar.types-C9Oi9C2U.js.map} +1 -1
  107. package/dist/chunks/{styledAvatar.types-CcP-Vl9c.js → styledAvatar.types-CUweBJqA.js} +2 -2
  108. package/dist/chunks/{styledAvatar.types-CcP-Vl9c.js.map → styledAvatar.types-CUweBJqA.js.map} +1 -1
  109. package/dist/chunks/{switch.component-CgzCLoTB.js → switch.component-gcLbjvkh.js} +2 -2
  110. package/dist/chunks/{switch.component-CgzCLoTB.js.map → switch.component-gcLbjvkh.js.map} +1 -1
  111. package/dist/chunks/{switch.component-CpV7mnhR.js → switch.component-y47DAbCX.js} +2 -2
  112. package/dist/chunks/{switch.component-CpV7mnhR.js.map → switch.component-y47DAbCX.js.map} +1 -1
  113. package/dist/chunks/{tab.types-DwPEP_5N.js → tab.types-BWtosyjE.js} +2 -2
  114. package/dist/chunks/{tab.types-DwPEP_5N.js.map → tab.types-BWtosyjE.js.map} +1 -1
  115. package/dist/chunks/{tab.types-DaJfFBvr.js → tab.types-CO64KNxl.js} +3 -3
  116. package/dist/chunks/{tab.types-DaJfFBvr.js.map → tab.types-CO64KNxl.js.map} +1 -1
  117. package/dist/chunks/{tagBlock.component-Cor6eakc.js → tagBlock.component-CUti4nJM.js} +5 -5
  118. package/dist/chunks/{tagBlock.component-Cor6eakc.js.map → tagBlock.component-CUti4nJM.js.map} +1 -1
  119. package/dist/chunks/{tagBlock.component-BGEvRu81.js → tagBlock.component-DExd13J1.js} +2 -2
  120. package/dist/chunks/{tagBlock.component-BGEvRu81.js.map → tagBlock.component-DExd13J1.js.map} +1 -1
  121. package/dist/chunks/{text.component-CeioUl0G.js → text.component-BDDz5KQP.js} +2 -2
  122. package/dist/chunks/{text.component-CeioUl0G.js.map → text.component-BDDz5KQP.js.map} +1 -1
  123. package/dist/chunks/{text.component-CdTyTFds.js → text.component-IjomJyJY.js} +2 -2
  124. package/dist/chunks/{text.component-CdTyTFds.js.map → text.component-IjomJyJY.js.map} +1 -1
  125. package/dist/chunks/{textInput.component-C1vwy6pL.js → textInput.component-CWbv8giH.js} +2 -2
  126. package/dist/chunks/{textInput.component-C1vwy6pL.js.map → textInput.component-CWbv8giH.js.map} +1 -1
  127. package/dist/chunks/{textInput.component-BC0Hi8R_.js → textInput.component-DAOVnBI-.js} +3 -3
  128. package/dist/chunks/{textInput.component-BC0Hi8R_.js.map → textInput.component-DAOVnBI-.js.map} +1 -1
  129. package/dist/chunks/{textarea.component-D15hA9Jb.js → textarea.component-CMszSf5r.js} +2 -2
  130. package/dist/chunks/{textarea.component-D15hA9Jb.js.map → textarea.component-CMszSf5r.js.map} +1 -1
  131. package/dist/chunks/{textarea.component-axjxiv82.js → textarea.component-DVk49EJX.js} +3 -3
  132. package/dist/chunks/{textarea.component-axjxiv82.js.map → textarea.component-DVk49EJX.js.map} +1 -1
  133. package/dist/chunks/{theme.provider-DFwAy7tr.js → theme.provider-BbKLlnGi.js} +2 -2
  134. package/dist/chunks/{theme.provider-DFwAy7tr.js.map → theme.provider-BbKLlnGi.js.map} +1 -1
  135. package/dist/chunks/{theme.provider-BD7qyu-B.js → theme.provider-Biof0UdB.js} +3 -3
  136. package/dist/chunks/{theme.provider-BD7qyu-B.js.map → theme.provider-Biof0UdB.js.map} +1 -1
  137. package/dist/chunks/{timePicker.component-Cz2XxVL6.js → timePicker.component-B750WQHA.js} +2 -2
  138. package/dist/chunks/{timePicker.component-Cz2XxVL6.js.map → timePicker.component-B750WQHA.js.map} +1 -1
  139. package/dist/chunks/{timePicker.component-u34pHrzr.js → timePicker.component-BOvQHyHv.js} +3 -3
  140. package/dist/chunks/{timePicker.component-u34pHrzr.js.map → timePicker.component-BOvQHyHv.js.map} +1 -1
  141. package/dist/chunks/{timeRange.component-tU_nCTmS.js → timeRange.component-C0f7pM9p.js} +2 -2
  142. package/dist/chunks/{timeRange.component-tU_nCTmS.js.map → timeRange.component-C0f7pM9p.js.map} +1 -1
  143. package/dist/chunks/{timeRange.component-BiA1VWQ8.js → timeRange.component-CdHkxVXb.js} +2 -2
  144. package/dist/chunks/{timeRange.component-BiA1VWQ8.js.map → timeRange.component-CdHkxVXb.js.map} +1 -1
  145. package/dist/chunks/{timestamp.component-DYZHgaas.js → timestamp.component-BfmZPfy5.js} +2 -2
  146. package/dist/chunks/{timestamp.component-DYZHgaas.js.map → timestamp.component-BfmZPfy5.js.map} +1 -1
  147. package/dist/chunks/{timestamp.component-DBmc7D23.js → timestamp.component-IfjfMFXl.js} +3 -3
  148. package/dist/chunks/{timestamp.component-DBmc7D23.js.map → timestamp.component-IfjfMFXl.js.map} +1 -1
  149. package/dist/chunks/tooltip.component-DBw-hAPU.js +2 -0
  150. package/dist/chunks/{tooltip.component-BkFDi5yK.js.map → tooltip.component-DBw-hAPU.js.map} +1 -1
  151. package/dist/chunks/{tooltip.component-C_NS-AoH.js → tooltip.component-DFsQNG1q.js} +62 -58
  152. package/dist/chunks/{tooltip.component-C_NS-AoH.js.map → tooltip.component-DFsQNG1q.js.map} +1 -1
  153. package/dist/chunks/{withFormControl-DePFf9SY.js → withFormControl-B4TNaDf4.js} +2 -2
  154. package/dist/chunks/{withFormControl-DePFf9SY.js.map → withFormControl-B4TNaDf4.js.map} +1 -1
  155. package/dist/chunks/{withFormControl-wZA87Sd4.js → withFormControl-CIZOpk9n.js} +2 -2
  156. package/dist/chunks/{withFormControl-wZA87Sd4.js.map → withFormControl-CIZOpk9n.js.map} +1 -1
  157. package/dist/chunks/{withTruncation-DTCfQ2yk.js → withTruncation-CqDQUSVU.js} +2 -2
  158. package/dist/chunks/{withTruncation-DTCfQ2yk.js.map → withTruncation-CqDQUSVU.js.map} +1 -1
  159. package/dist/chunks/{withTruncation-DE3FFPE7.js → withTruncation-pzYbtqYw.js} +2 -2
  160. package/dist/chunks/{withTruncation-DE3FFPE7.js.map → withTruncation-pzYbtqYw.js.map} +1 -1
  161. package/dist/cjs/components/Alert/index.cjs +1 -1
  162. package/dist/cjs/components/Avatar/index.cjs +1 -1
  163. package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
  164. package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
  165. package/dist/cjs/components/Calendar/index.cjs +1 -1
  166. package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
  167. package/dist/cjs/components/Checkbox/index.cjs +1 -1
  168. package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
  169. package/dist/cjs/components/ConversationCard/index.cjs +1 -1
  170. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  171. package/dist/cjs/components/DateTimePicker/index.cjs +1 -1
  172. package/dist/cjs/components/Heading/index.cjs +1 -1
  173. package/dist/cjs/components/Menu/index.cjs +1 -1
  174. package/dist/cjs/components/Modal/index.cjs +1 -1
  175. package/dist/cjs/components/NotificationCounter/index.cjs +1 -1
  176. package/dist/cjs/components/NumberInput/index.cjs +1 -1
  177. package/dist/cjs/components/PinInput/index.cjs +1 -1
  178. package/dist/cjs/components/Popover/index.cjs +1 -1
  179. package/dist/cjs/components/RadioGroup/index.cjs +1 -1
  180. package/dist/cjs/components/Rating/index.cjs +1 -1
  181. package/dist/cjs/components/RatingDots/index.cjs +1 -1
  182. package/dist/cjs/components/Select/index.cjs +1 -1
  183. package/dist/cjs/components/SortableList/index.cjs +1 -1
  184. package/dist/cjs/components/Spinner/index.cjs +1 -1
  185. package/dist/cjs/components/StyledAvatar/index.cjs +1 -1
  186. package/dist/cjs/components/Switch/index.cjs +1 -1
  187. package/dist/cjs/components/Tabs/index.cjs +1 -1
  188. package/dist/cjs/components/TagBlock/index.cjs +1 -1
  189. package/dist/cjs/components/Text/index.cjs +1 -1
  190. package/dist/cjs/components/TextInput/index.cjs +1 -1
  191. package/dist/cjs/components/Textarea/index.cjs +1 -1
  192. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  193. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  194. package/dist/cjs/components/Timestamp/index.cjs +1 -1
  195. package/dist/cjs/components/Tooltip/index.cjs +1 -1
  196. package/dist/cjs/components/index.cjs +1 -1
  197. package/dist/cjs/index.cjs +1 -1
  198. package/dist/cjs/theme/index.cjs +1 -1
  199. package/dist/esm/components/Alert/index.js +1 -1
  200. package/dist/esm/components/Avatar/index.js +1 -1
  201. package/dist/esm/components/AvatarGroup/index.js +1 -1
  202. package/dist/esm/components/ButtonGroup/index.js +1 -1
  203. package/dist/esm/components/Calendar/index.js +1 -1
  204. package/dist/esm/components/CharacterCounter/index.js +1 -1
  205. package/dist/esm/components/Checkbox/index.js +1 -1
  206. package/dist/esm/components/CheckboxGroup/index.js +1 -1
  207. package/dist/esm/components/ConversationCard/index.js +1 -1
  208. package/dist/esm/components/DatePicker/index.js +2 -2
  209. package/dist/esm/components/DateTimePicker/index.js +1 -1
  210. package/dist/esm/components/Heading/index.js +1 -1
  211. package/dist/esm/components/Menu/index.js +1 -1
  212. package/dist/esm/components/Modal/index.js +1 -1
  213. package/dist/esm/components/NotificationCounter/index.js +1 -1
  214. package/dist/esm/components/NumberInput/index.js +1 -1
  215. package/dist/esm/components/PinInput/index.js +1 -1
  216. package/dist/esm/components/Popover/index.js +1 -1
  217. package/dist/esm/components/RadioGroup/index.js +1 -1
  218. package/dist/esm/components/Rating/index.js +1 -1
  219. package/dist/esm/components/RatingDots/index.js +1 -1
  220. package/dist/esm/components/Select/index.js +1 -1
  221. package/dist/esm/components/SortableList/index.js +1 -1
  222. package/dist/esm/components/Spinner/index.js +1 -1
  223. package/dist/esm/components/StyledAvatar/index.js +1 -1
  224. package/dist/esm/components/Switch/index.js +1 -1
  225. package/dist/esm/components/Tabs/index.js +1 -1
  226. package/dist/esm/components/TagBlock/index.js +1 -1
  227. package/dist/esm/components/Text/index.js +1 -1
  228. package/dist/esm/components/TextInput/index.js +1 -1
  229. package/dist/esm/components/Textarea/index.js +1 -1
  230. package/dist/esm/components/TimePicker/index.js +1 -1
  231. package/dist/esm/components/TimeRange/index.js +1 -1
  232. package/dist/esm/components/Timestamp/index.js +1 -1
  233. package/dist/esm/components/Tooltip/index.js +1 -1
  234. package/dist/esm/components/index.js +36 -36
  235. package/dist/esm/index.js +37 -37
  236. package/dist/esm/theme/index.js +1 -1
  237. package/dist/types/components/Tooltip/tooltip.component.d.ts +2 -0
  238. package/package.json +1 -1
  239. package/dist/chunks/datePicker.provider-DgarjPPd.js +0 -15
  240. package/dist/chunks/menu.component-D4-4xRDj.js +0 -2
  241. package/dist/chunks/menu.component-D4-4xRDj.js.map +0 -1
  242. package/dist/chunks/menu.component-DwTen8Uv.js.map +0 -1
  243. package/dist/chunks/popover.recipe-B9bkpDfc.js.map +0 -1
  244. package/dist/chunks/popover.recipe-Czy8Aeft.js +0 -2
  245. package/dist/chunks/popover.recipe-Czy8Aeft.js.map +0 -1
  246. package/dist/chunks/tooltip.component-BkFDi5yK.js +0 -2
@@ -1,4 +1,4 @@
1
- import { S as t } from "../../../chunks/sortableList.component-XfURY7C2.js";
1
+ import { S as t } from "../../../chunks/sortableList.component-B2XQoMq7.js";
2
2
  export {
3
3
  t as SortableList
4
4
  };
@@ -1,4 +1,4 @@
1
- import { S as s } from "../../../chunks/spinner.component-B3dkvoO9.js";
1
+ import { S as s } from "../../../chunks/spinner.component-D3s81AJH.js";
2
2
  import { s as o } from "../../../chunks/spinner.types-g7cTFJkb.js";
3
3
  export {
4
4
  s as Spinner,
@@ -1,4 +1,4 @@
1
- import { S as t, s as e } from "../../../chunks/styledAvatar.types-cR6PNPxA.js";
1
+ import { S as t, s as e } from "../../../chunks/styledAvatar.types-C9Oi9C2U.js";
2
2
  export {
3
3
  t as StyledAvatar,
4
4
  e as styledAvatarTypes
@@ -1,4 +1,4 @@
1
- import { W as t } from "../../../chunks/switch.component-CpV7mnhR.js";
1
+ import { W as t } from "../../../chunks/switch.component-y47DAbCX.js";
2
2
  export {
3
3
  t as Switch
4
4
  };
@@ -1,4 +1,4 @@
1
- import { T as o, a as t, t as b } from "../../../chunks/tab.types-DaJfFBvr.js";
1
+ import { T as o, a as t, t as b } from "../../../chunks/tab.types-CO64KNxl.js";
2
2
  export {
3
3
  o as Tabs,
4
4
  t as tabIconPositions,
@@ -1,4 +1,4 @@
1
- import { T as o, a as s } from "../../../chunks/tagBlock.component-Cor6eakc.js";
1
+ import { T as o, a as s } from "../../../chunks/tagBlock.component-CUti4nJM.js";
2
2
  export {
3
3
  o as TagBlock,
4
4
  s as TagDisabledState
@@ -1,4 +1,4 @@
1
- import { W as r } from "../../../chunks/text.component-CdTyTFds.js";
1
+ import { W as r } from "../../../chunks/text.component-IjomJyJY.js";
2
2
  export {
3
3
  r as Text
4
4
  };
@@ -1,4 +1,4 @@
1
- import { W as o } from "../../../chunks/textInput.component-BC0Hi8R_.js";
1
+ import { W as o } from "../../../chunks/textInput.component-DAOVnBI-.js";
2
2
  export {
3
3
  o as TextInput
4
4
  };
@@ -1,4 +1,4 @@
1
- import { W as r } from "../../../chunks/textarea.component-axjxiv82.js";
1
+ import { W as r } from "../../../chunks/textarea.component-DVk49EJX.js";
2
2
  export {
3
3
  r as Textarea
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as r, T as m } from "../../../chunks/timePicker.component-u34pHrzr.js";
1
+ import { M as r, T as m } from "../../../chunks/timePicker.component-BOvQHyHv.js";
2
2
  export {
3
3
  r as Meridiem,
4
4
  m as TimePicker
@@ -1,4 +1,4 @@
1
- import { T as m } from "../../../chunks/timeRange.component-BiA1VWQ8.js";
1
+ import { T as m } from "../../../chunks/timeRange.component-CdHkxVXb.js";
2
2
  export {
3
3
  m as TimeRange
4
4
  };
@@ -1,4 +1,4 @@
1
- import { T as e } from "../../../chunks/timestamp.component-DBmc7D23.js";
1
+ import { T as e } from "../../../chunks/timestamp.component-IfjfMFXl.js";
2
2
  export {
3
3
  e as Timestamp
4
4
  };
@@ -1,4 +1,4 @@
1
- import { T as r } from "../../../chunks/tooltip.component-C_NS-AoH.js";
1
+ import { T as r } from "../../../chunks/tooltip.component-DFsQNG1q.js";
2
2
  export {
3
3
  r as Tooltip
4
4
  };
@@ -1,59 +1,59 @@
1
- import { A as r, a as t } from "../../chunks/alert.types-C_ygg7fh.js";
2
- import { A as s } from "../../chunks/avatar.component-C-365mx3.js";
1
+ import { A as r, a as t } from "../../chunks/alert.types-BsTOOEB7.js";
2
+ import { A as s } from "../../chunks/avatar.component-DUZc5iXT.js";
3
3
  import { a as i, b as m } from "../../chunks/avatar.types-C6dZZjdi.js";
4
- import { A as f } from "../../chunks/avatarGroup.component-B-ZOhj7i.js";
4
+ import { A as f } from "../../chunks/avatarGroup.component-BwrjkSJn.js";
5
5
  import { B as c } from "../../chunks/button.component-BO6oee_V.js";
6
6
  import { b as l, d as u, c as T, e as S, a as b } from "../../chunks/button.types-C9PpvmYR.js";
7
- import { B as C } from "../../chunks/buttonGroup.component-DUK2FgFn.js";
8
- import { C as g } from "../../chunks/calendar.component-CHIhplfO.js";
7
+ import { B as C } from "../../chunks/buttonGroup.component--dqWO06l.js";
8
+ import { C as g } from "../../chunks/calendar.component-DxMzZla-.js";
9
9
  import { C as W } from "../../chunks/card.component-B1AznjWF.js";
10
10
  import { c as k } from "../../chunks/card.types-Cixp7ouC.js";
11
- import { C as y } from "../../chunks/characterCounter.component-Ch3P3GqC.js";
12
- import { W as I } from "../../chunks/checkbox.component-DE35wBj-.js";
13
- import { W as h } from "../../chunks/checkboxGroup.component-CYwGlktu.js";
14
- import { C as R } from "../../chunks/conversationCard.component-CMdqD3yN.js";
15
- import { D as w } from "../../chunks/datePicker.component-eHU7IZgC.js";
16
- import { D as N } from "../../chunks/datePicker.provider-BWHE-9FA.js";
17
- import { D as F, a as H, c as j } from "../../chunks/dateTimePicker.component-Byjxg2lJ.js";
11
+ import { C as y } from "../../chunks/characterCounter.component-CoMqt04J.js";
12
+ import { W as I } from "../../chunks/checkbox.component-Be_DWrS9.js";
13
+ import { W as h } from "../../chunks/checkboxGroup.component-BtzzLHHB.js";
14
+ import { C as R } from "../../chunks/conversationCard.component-FMq9PY8T.js";
15
+ import { D as w } from "../../chunks/datePicker.component-C7QZhsm6.js";
16
+ import { D as N } from "../../chunks/datePicker.provider-CS1aBg9h.js";
17
+ import { D as F, a as H, c as j } from "../../chunks/dateTimePicker.component-DJcUN8oo.js";
18
18
  import { D as E } from "../../chunks/divider.component-CFOh4Nw3.js";
19
19
  import { d as K, a as Q, b as U } from "../../chunks/divider.types-6MEkMNbx.js";
20
- import { W as Y } from "../../chunks/heading.component-7ikcgDco.js";
20
+ import { W as Y } from "../../chunks/heading.component-PFNpLFT7.js";
21
21
  import { I as _ } from "../../chunks/icon.component-PV_nHBId.js";
22
22
  import { i as oo } from "../../chunks/icon.types-DLbVfMjG.js";
23
23
  import { L as ro } from "../../chunks/link.component--URNKuK2.js";
24
24
  import { L as eo, l as so } from "../../chunks/logo.types-C5GwpHjM.js";
25
- import { M as io } from "../../chunks/menu.component-DwTen8Uv.js";
26
- import { M as no, c as fo, a as xo, b as co, m as lo } from "../../chunks/modal.types-B0rK6xJy.js";
27
- import { N as To } from "../../chunks/notificationCounter.component-BexkISUl.js";
25
+ import { M as io } from "../../chunks/menu.component-BuTY_3mt.js";
26
+ import { M as no, c as fo, a as xo, b as co, m as lo } from "../../chunks/modal.types-jE-vPShC.js";
27
+ import { N as To } from "../../chunks/notificationCounter.component-BlGSd37B.js";
28
28
  import { n as bo, a as vo } from "../../chunks/notificationCounter.types-Dm4PSN2Y.js";
29
29
  import { P as Po } from "../../chunks/picture.component-DzdHIFN_.js";
30
- import { W as Do, p as Wo } from "../../chunks/pinInput.types-CcaAN6P2.js";
31
- import { P as ko } from "../../chunks/popover.component-DEOUdSu3.js";
30
+ import { W as Do, p as Wo } from "../../chunks/pinInput.types-B6LSv8Kj.js";
31
+ import { P as ko } from "../../chunks/popover.component-BsiKfJR7.js";
32
32
  import { p as yo, b as Bo, a as Io } from "../../chunks/popover.types-CQJj3uOX.js";
33
- import { W as ho, a as Mo, r as Ro } from "../../chunks/radioGroup.types-DJ68ERdO.js";
33
+ import { W as ho, a as Mo, r as Ro } from "../../chunks/radioGroup.types-C-JQsOXh.js";
34
34
  import { R as wo } from "../../chunks/radiomark.component-D_7wT5VA.js";
35
- import { W as No } from "../../chunks/rating.component-ChzcvUl6.js";
36
- import { W as Fo } from "../../chunks/ratingDots.component-D9WQGVcj.js";
37
- import { W as jo } from "../../chunks/select.component-B4mAPqzN.js";
38
- import { S as Eo } from "../../chunks/sortableList.component-XfURY7C2.js";
39
- import { S as Ko } from "../../chunks/spinner.component-B3dkvoO9.js";
35
+ import { W as No } from "../../chunks/rating.component-Btdd7tMX.js";
36
+ import { W as Fo } from "../../chunks/ratingDots.component-CEribcPM.js";
37
+ import { W as jo } from "../../chunks/select.component-BwgvV_Lm.js";
38
+ import { S as Eo } from "../../chunks/sortableList.component-B2XQoMq7.js";
39
+ import { S as Ko } from "../../chunks/spinner.component-D3s81AJH.js";
40
40
  import { s as Uo } from "../../chunks/spinner.types-g7cTFJkb.js";
41
- import { S as Yo, s as Zo } from "../../chunks/styledAvatar.types-cR6PNPxA.js";
41
+ import { S as Yo, s as Zo } from "../../chunks/styledAvatar.types-C9Oi9C2U.js";
42
42
  import { S as $o, s as oa } from "../../chunks/swatch.types-CkrkMi11.js";
43
- import { W as ra } from "../../chunks/switch.component-CpV7mnhR.js";
44
- import { T as ea, a as sa, t as pa } from "../../chunks/tab.types-DaJfFBvr.js";
43
+ import { W as ra } from "../../chunks/switch.component-y47DAbCX.js";
44
+ import { T as ea, a as sa, t as pa } from "../../chunks/tab.types-CO64KNxl.js";
45
45
  import { T as ma } from "../../chunks/tag.component-B7V76XfM.js";
46
46
  import { c as fa, t as xa } from "../../chunks/tag.types-B-pzEt1I.js";
47
- import { T as da, a as la } from "../../chunks/tagBlock.component-Cor6eakc.js";
48
- import { W as Ta } from "../../chunks/text.component-CdTyTFds.js";
49
- import { W as ba } from "../../chunks/textInput.component-BC0Hi8R_.js";
50
- import { W as Ca } from "../../chunks/textarea.component-axjxiv82.js";
51
- import { M as ga, T as Da } from "../../chunks/timePicker.component-u34pHrzr.js";
52
- import { T as za } from "../../chunks/timeRange.component-BiA1VWQ8.js";
53
- import { T as Aa } from "../../chunks/timestamp.component-DBmc7D23.js";
47
+ import { T as da, a as la } from "../../chunks/tagBlock.component-CUti4nJM.js";
48
+ import { W as Ta } from "../../chunks/text.component-IjomJyJY.js";
49
+ import { W as ba } from "../../chunks/textInput.component-DAOVnBI-.js";
50
+ import { W as Ca } from "../../chunks/textarea.component-DVk49EJX.js";
51
+ import { M as ga, T as Da } from "../../chunks/timePicker.component-BOvQHyHv.js";
52
+ import { T as za } from "../../chunks/timeRange.component-CdHkxVXb.js";
53
+ import { T as Aa } from "../../chunks/timestamp.component-IfjfMFXl.js";
54
54
  import { useToast as Ba } from "./Toast/index.js";
55
- import { T as Va } from "../../chunks/tooltip.component-C_NS-AoH.js";
56
- import { W as Ma } from "../../chunks/numberInput.component-RCwUUzmH.js";
55
+ import { T as Va } from "../../chunks/tooltip.component-DFsQNG1q.js";
56
+ import { W as Ma } from "../../chunks/numberInput.component-DIEvX3XV.js";
57
57
  export {
58
58
  r as Alert,
59
59
  s as Avatar,
package/dist/esm/index.js CHANGED
@@ -1,59 +1,59 @@
1
- import { A as a, a as e } from "../chunks/alert.types-C_ygg7fh.js";
2
- import { A as s } from "../chunks/avatar.component-C-365mx3.js";
1
+ import { A as a, a as e } from "../chunks/alert.types-BsTOOEB7.js";
2
+ import { A as s } from "../chunks/avatar.component-DUZc5iXT.js";
3
3
  import { a as i, b as m } from "../chunks/avatar.types-C6dZZjdi.js";
4
- import { A as x } from "../chunks/avatarGroup.component-B-ZOhj7i.js";
4
+ import { A as x } from "../chunks/avatarGroup.component-BwrjkSJn.js";
5
5
  import { B as c } from "../chunks/button.component-BO6oee_V.js";
6
6
  import { b as d, d as u, c as T, e as S, a as b } from "../chunks/button.types-C9PpvmYR.js";
7
- import { B as g } from "../chunks/buttonGroup.component-DUK2FgFn.js";
8
- import { C as D } from "../chunks/calendar.component-CHIhplfO.js";
7
+ import { B as g } from "../chunks/buttonGroup.component--dqWO06l.js";
8
+ import { C as D } from "../chunks/calendar.component-DxMzZla-.js";
9
9
  import { C as h } from "../chunks/card.component-B1AznjWF.js";
10
10
  import { c as y } from "../chunks/card.types-Cixp7ouC.js";
11
- import { C as z } from "../chunks/characterCounter.component-Ch3P3GqC.js";
12
- import { W as V } from "../chunks/checkbox.component-DE35wBj-.js";
13
- import { W as B } from "../chunks/checkboxGroup.component-CYwGlktu.js";
14
- import { C as I } from "../chunks/conversationCard.component-CMdqD3yN.js";
15
- import { D as R } from "../chunks/datePicker.component-eHU7IZgC.js";
16
- import { D as K } from "../chunks/datePicker.provider-BWHE-9FA.js";
17
- import { D as O, a as F, c as H } from "../chunks/dateTimePicker.component-Byjxg2lJ.js";
11
+ import { C as z } from "../chunks/characterCounter.component-CoMqt04J.js";
12
+ import { W as V } from "../chunks/checkbox.component-Be_DWrS9.js";
13
+ import { W as B } from "../chunks/checkboxGroup.component-BtzzLHHB.js";
14
+ import { C as I } from "../chunks/conversationCard.component-FMq9PY8T.js";
15
+ import { D as R } from "../chunks/datePicker.component-C7QZhsm6.js";
16
+ import { D as K } from "../chunks/datePicker.provider-CS1aBg9h.js";
17
+ import { D as O, a as F, c as H } from "../chunks/dateTimePicker.component-DJcUN8oo.js";
18
18
  import { D as q } from "../chunks/divider.component-CFOh4Nw3.js";
19
19
  import { d as J, a as Q, b as U } from "../chunks/divider.types-6MEkMNbx.js";
20
- import { W as Y } from "../chunks/heading.component-7ikcgDco.js";
20
+ import { W as Y } from "../chunks/heading.component-PFNpLFT7.js";
21
21
  import { I as _ } from "../chunks/icon.component-PV_nHBId.js";
22
22
  import { i as oo } from "../chunks/icon.types-DLbVfMjG.js";
23
23
  import { L as ao } from "../chunks/link.component--URNKuK2.js";
24
24
  import { L as to, l as so } from "../chunks/logo.types-C5GwpHjM.js";
25
- import { M as io } from "../chunks/menu.component-DwTen8Uv.js";
26
- import { M as fo, c as xo, a as no, b as co, m as lo } from "../chunks/modal.types-B0rK6xJy.js";
27
- import { N as To } from "../chunks/notificationCounter.component-BexkISUl.js";
25
+ import { M as io } from "../chunks/menu.component-BuTY_3mt.js";
26
+ import { M as fo, c as xo, a as no, b as co, m as lo } from "../chunks/modal.types-jE-vPShC.js";
27
+ import { N as To } from "../chunks/notificationCounter.component-BlGSd37B.js";
28
28
  import { n as bo, a as Co } from "../chunks/notificationCounter.types-Dm4PSN2Y.js";
29
29
  import { P as vo } from "../chunks/picture.component-DzdHIFN_.js";
30
- import { W as Po, p as ho } from "../chunks/pinInput.types-CcaAN6P2.js";
31
- import { P as yo } from "../chunks/popover.component-DEOUdSu3.js";
30
+ import { W as Po, p as ho } from "../chunks/pinInput.types-B6LSv8Kj.js";
31
+ import { P as yo } from "../chunks/popover.component-BsiKfJR7.js";
32
32
  import { p as zo, b as Mo, a as Vo } from "../chunks/popover.types-CQJj3uOX.js";
33
- import { W as Bo, a as wo, r as Io } from "../chunks/radioGroup.types-DJ68ERdO.js";
33
+ import { W as Bo, a as wo, r as Io } from "../chunks/radioGroup.types-C-JQsOXh.js";
34
34
  import { R as Ro } from "../chunks/radiomark.component-D_7wT5VA.js";
35
- import { W as Ko } from "../chunks/rating.component-ChzcvUl6.js";
36
- import { W as Oo } from "../chunks/ratingDots.component-D9WQGVcj.js";
37
- import { W as Ho } from "../chunks/select.component-B4mAPqzN.js";
38
- import { S as qo } from "../chunks/sortableList.component-XfURY7C2.js";
39
- import { S as Jo } from "../chunks/spinner.component-B3dkvoO9.js";
35
+ import { W as Ko } from "../chunks/rating.component-Btdd7tMX.js";
36
+ import { W as Oo } from "../chunks/ratingDots.component-CEribcPM.js";
37
+ import { W as Ho } from "../chunks/select.component-BwgvV_Lm.js";
38
+ import { S as qo } from "../chunks/sortableList.component-B2XQoMq7.js";
39
+ import { S as Jo } from "../chunks/spinner.component-D3s81AJH.js";
40
40
  import { s as Uo } from "../chunks/spinner.types-g7cTFJkb.js";
41
- import { S as Yo, s as Zo } from "../chunks/styledAvatar.types-cR6PNPxA.js";
41
+ import { S as Yo, s as Zo } from "../chunks/styledAvatar.types-C9Oi9C2U.js";
42
42
  import { S as $o, s as or } from "../chunks/swatch.types-CkrkMi11.js";
43
- import { W as ar } from "../chunks/switch.component-CpV7mnhR.js";
44
- import { T as tr, a as sr, t as pr } from "../chunks/tab.types-DaJfFBvr.js";
43
+ import { W as ar } from "../chunks/switch.component-y47DAbCX.js";
44
+ import { T as tr, a as sr, t as pr } from "../chunks/tab.types-CO64KNxl.js";
45
45
  import { T as mr } from "../chunks/tag.component-B7V76XfM.js";
46
46
  import { c as xr, t as nr } from "../chunks/tag.types-B-pzEt1I.js";
47
- import { T as lr, a as dr } from "../chunks/tagBlock.component-Cor6eakc.js";
48
- import { W as Tr } from "../chunks/text.component-CdTyTFds.js";
49
- import { W as br } from "../chunks/textInput.component-BC0Hi8R_.js";
50
- import { W as gr } from "../chunks/textarea.component-axjxiv82.js";
51
- import { M as Dr, T as Pr } from "../chunks/timePicker.component-u34pHrzr.js";
52
- import { T as kr } from "../chunks/timeRange.component-BiA1VWQ8.js";
53
- import { T as Wr } from "../chunks/timestamp.component-DBmc7D23.js";
47
+ import { T as lr, a as dr } from "../chunks/tagBlock.component-CUti4nJM.js";
48
+ import { W as Tr } from "../chunks/text.component-IjomJyJY.js";
49
+ import { W as br } from "../chunks/textInput.component-DAOVnBI-.js";
50
+ import { W as gr } from "../chunks/textarea.component-DVk49EJX.js";
51
+ import { M as Dr, T as Pr } from "../chunks/timePicker.component-BOvQHyHv.js";
52
+ import { T as kr } from "../chunks/timeRange.component-CdHkxVXb.js";
53
+ import { T as Wr } from "../chunks/timestamp.component-IfjfMFXl.js";
54
54
  import { useToast as Mr } from "./components/Toast/index.js";
55
- import { T as Ar } from "../chunks/tooltip.component-C_NS-AoH.js";
56
- import { W as wr } from "../chunks/numberInput.component-RCwUUzmH.js";
55
+ import { T as Ar } from "../chunks/tooltip.component-DFsQNG1q.js";
56
+ import { W as wr } from "../chunks/numberInput.component-DIEvX3XV.js";
57
57
  import { w as Lr } from "../chunks/withDarkMode-C3yba5oU.js";
58
58
  import { w as Gr } from "../chunks/withLightMode-DUdXB3Uy.js";
59
59
  import { useBreakpoint as Nr } from "./hooks/useBreakpoint/index.js";
@@ -62,7 +62,7 @@ import { useColorModeValue as jr } from "./hooks/useColorModeValue/index.js";
62
62
  import { useDeviceType as Er } from "./hooks/useDeviceType/index.js";
63
63
  import { alignments as Qr, flexDirections as Ur, placements as Xr, statuses as Yr, typographyVariants as Zr } from "./shared/types/index.js";
64
64
  import { c as $r } from "../chunks/theme-BOK659O0.js";
65
- import { K as ra, k as aa, s as ea } from "../chunks/theme.provider-BD7qyu-B.js";
65
+ import { K as ra, k as aa, s as ea } from "../chunks/theme.provider-Biof0UdB.js";
66
66
  export {
67
67
  a as Alert,
68
68
  s as Avatar,
@@ -1,4 +1,4 @@
1
- import { K as b, k as i, s as m } from "../../chunks/theme.provider-BD7qyu-B.js";
1
+ import { K as b, k as i, s as m } from "../../chunks/theme.provider-Biof0UdB.js";
2
2
  export {
3
3
  b as KibbleThemeProvider,
4
4
  i as kibbleThemeConfig,
@@ -33,5 +33,7 @@ export interface TooltipProps extends Omit<HoverCard.RootProps, 'children'> {
33
33
  * @default kibble-tooltip
34
34
  */
35
35
  'data-testid'?: string;
36
+ /** Props to customize the trigger of the tooltip. */
37
+ triggerProps?: HoverCard.TriggerProps;
36
38
  }
37
39
  export declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLDivElement>>;
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": "5.0.2",
4
+ "version": "5.0.4-beta.1",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.cjs",
7
7
  "module": "./dist/esm/index.js",
@@ -1,15 +0,0 @@
1
- "use strict";const P=require("./jsx-runtime-BjDatQAs.js"),y=require("react"),He=require("./text.component-CeioUl0G.js"),Ot=require("./index-BQRnVsAg.js"),Ie=require("./button.component-DjdgBXDC.js"),Bt=require("./config-jChwZPSv.js"),B=require("./format-CK7Imh-5.js"),Yt=require("./isToday-BgNkHh5t.js"),Ft=require("./create-slot-recipe-context-HXE1VazG.js"),Oe=require("./grid-item-CH3dbZHL.js"),gt=require("./center-kk61ArhQ.js"),qt=require("./popover-root-provider-CZDbUJ2K.js"),Lt=require("./flex-BOU6tYUd.js"),Ve=require("./menu.component-D4-4xRDj.js"),ue=require("./isSymbol-BdGeV_e0.js"),Ht=require("./h-stack-D4MnHHRc.js"),It=require("./popover-C7aj8Iwj.js");var Me={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Be(e){return function(t){var n=t||{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var Wt={date:Be({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Be({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Be({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},jt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function ye(e){return function(t,n){var r,a=n||{};if((a.context?String(a.context):"standalone")==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=a.width?String(a.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var s=e.defaultWidth,u=a.width?String(a.width):e.defaultWidth;r=e.values[u]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function be(e){return function(t,n){var r=String(t),a=n||{},o=a.width,i=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],s=r.match(i);if(!s)return null;var u,l=s[0],h=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth];return u=Object.prototype.toString.call(h)==="[object Array]"?function(d,g){for(var c=0;c<d.length;c++)if(g(d[c]))return c}(h,function(d){return d.test(l)}):function(d,g){for(var c in d)if(d.hasOwnProperty(c)&&g(d[c]))return c}(h,function(d){return d.test(l)}),u=e.valueCallback?e.valueCallback(u):u,{value:u=a.valueCallback?a.valueCallback(u):u,rest:r.slice(l.length)}}}var ve,wt={code:"en-US",formatDistance:function(e,t,n){var r;return n=n||{},r=typeof Me[e]=="string"?Me[e]:t===1?Me[e].one:Me[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r},formatLong:Wt,formatRelative:function(e,t,n,r){return jt[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ye({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ye({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:ye({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ye({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ye({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(ve={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var n=String(e),r=t||{},a=n.match(ve.matchPattern);if(!a)return null;var o=a[0],i=n.match(ve.parsePattern);if(!i)return null;var s=ve.valueCallback?ve.valueCallback(i[0]):i[0];return{value:s=r.valueCallback?r.valueCallback(s):s,rest:n.slice(o.length)}}),era:be({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:be({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:be({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:be({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function S(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function x(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function p(e){x(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):(typeof e!="string"&&t!=="[object String]"||typeof console>"u"||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function At(e,t){x(2,arguments);var n=p(e).getTime(),r=S(t);return new Date(n+r)}function Dt(e,t){x(2,arguments);var n=S(t);return At(e,-n)}function Qt(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function $e(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function Ke(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}var yt={p:Ke,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),a=r[1],o=r[2];if(!o)return $e(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",$e(a,t)).replace("{{time}}",Ke(o,t))}};function Je(e){return e.getTime()%6e4}function bt(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());return t.setSeconds(0,0),6e4*n+(n>0?(6e4+Je(t))%6e4:Je(t))}var Gt=["D","DD"],_t=["YY","YYYY"];function vt(e){return Gt.indexOf(e)!==-1}function pt(e){return _t.indexOf(e)!==-1}function Se(e){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if(e==="YY")throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if(e==="D")throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if(e==="DD")throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}function ce(e,t){x(1,arguments);var n=t||{},r=n.locale,a=r&&r.options&&r.options.weekStartsOn,o=a==null?0:S(a),i=n.weekStartsOn==null?o:S(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=p(e),u=s.getUTCDay(),l=(u<i?7:0)+u-i;return s.setUTCDate(s.getUTCDate()-l),s.setUTCHours(0,0,0,0),s}function _e(e,t){x(1,arguments);var n=p(e,t),r=n.getUTCFullYear(),a=t||{},o=a.locale,i=o&&o.options&&o.options.firstWeekContainsDate,s=i==null?1:S(i),u=a.firstWeekContainsDate==null?s:S(a.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var l=new Date(0);l.setUTCFullYear(r+1,0,u),l.setUTCHours(0,0,0,0);var h=ce(l,t),d=new Date(0);d.setUTCFullYear(r,0,u),d.setUTCHours(0,0,0,0);var g=ce(d,t);return n.getTime()>=h.getTime()?r+1:n.getTime()>=g.getTime()?r:r-1}function Ye(e,t,n){x(2,arguments);var r=n||{},a=r.locale,o=a&&a.options&&a.options.weekStartsOn,i=o==null?0:S(o),s=r.weekStartsOn==null?i:S(r.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=p(e),l=S(t),h=u.getUTCDay(),d=l%7,g=(d+7)%7,c=(g<s?7:0)+l-h;return u.setUTCDate(u.getUTCDate()+c),u}function ge(e){x(1,arguments);var t=1,n=p(e),r=n.getUTCDay(),a=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-a),n.setUTCHours(0,0,0,0),n}function Tt(e){x(1,arguments);var t=p(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var a=ge(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var i=ge(o);return t.getTime()>=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Xt(e){x(1,arguments);var t=Tt(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=ge(n);return r}function xt(e){x(1,arguments);var t=p(e),n=ge(t).getTime()-Xt(t).getTime();return Math.round(n/6048e5)+1}function zt(e,t){x(1,arguments);var n=t||{},r=n.locale,a=r&&r.options&&r.options.firstWeekContainsDate,o=a==null?1:S(a),i=n.firstWeekContainsDate==null?o:S(n.firstWeekContainsDate),s=_e(e,t),u=new Date(0);u.setUTCFullYear(s,0,i),u.setUTCHours(0,0,0,0);var l=ce(u,t);return l}function kt(e,t){x(1,arguments);var n=p(e),r=ce(n,t).getTime()-zt(n,t).getTime();return Math.round(r/6048e5)+1}var Ze=/^(1[0-2]|0?\d)/,Vt=/^(3[0-1]|[0-2]?\d)/,$t=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,et=/^(5[0-3]|[0-4]?\d)/,Kt=/^(2[0-3]|[0-1]?\d)/,Jt=/^(2[0-4]|[0-1]?\d)/,Zt=/^(1[0-1]|0?\d)/,en=/^(1[0-2]|0?\d)/,tn=/^[0-5]?\d/,nn=/^[0-5]?\d/,rn=/^\d/,an=/^\d{1,2}/,on=/^\d{1,3}/,sn=/^\d{1,4}/,un=/^-?\d+/,cn=/^-?\d/,dn=/^-?\d{1,2}/,ln=/^-?\d{1,3}/,fn=/^-?\d{1,4}/,tt=/^([+-])(\d{2})(\d{2})?|Z/,nt=/^([+-])(\d{2})(\d{2})|Z/,rt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,at=/^([+-])(\d{2}):(\d{2})|Z/,ot=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function U(e,t,n){var r=t.match(e);if(!r)return null;var a=parseInt(r[0],10);return{value:n?n(a):a,rest:t.slice(r[0].length)}}function K(e,t){var n=t.match(e);return n?n[0]==="Z"?{value:0,rest:t.slice(1)}:{value:(n[1]==="+"?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function it(e,t){return U(un,e,t)}function N(e,t,n){switch(e){case 1:return U(rn,t,n);case 2:return U(an,t,n);case 3:return U(on,t,n);case 4:return U(sn,t,n);default:return U(new RegExp("^\\d{1,"+e+"}"),t,n)}}function st(e,t,n){switch(e){case 1:return U(cn,t,n);case 2:return U(dn,t,n);case 3:return U(ln,t,n);case 4:return U(fn,t,n);default:return U(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function Fe(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function ut(e,t){var n,r=t>0,a=r?t:1-t;if(a<=50)n=e||100;else{var o=a+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}var mn=[31,28,31,30,31,30,31,31,30,31,30,31],hn=[31,29,31,30,31,30,31,31,30,31,30,31];function ct(e){return e%400==0||e%4==0&&e%100!=0}var gn={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,r){var a=function(o){return{year:o,isTwoDigitYear:t==="yy"}};switch(t){case"y":return N(4,e,a);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:a});default:return N(t.length,e,a)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var a=e.getUTCFullYear();if(n.isTwoDigitYear){var o=ut(n.year,a);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&t.era!==1?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,r){var a=function(o){return{year:o,isTwoDigitYear:t==="YY"}};switch(t){case"Y":return N(4,e,a);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:a});default:return N(t.length,e,a)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var a=_e(e,r);if(n.isTwoDigitYear){var o=ut(n.year,a);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),ce(e,r)}var i="era"in t&&t.era!==1?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),ce(e,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,r){return st(t==="R"?4:t.length,e)},set:function(e,t,n,r){var a=new Date(0);return a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0),ge(a)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,r){return st(t==="u"?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return N(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return N(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,r){var a=function(o){return o-1};switch(t){case"M":return U(Ze,e,a);case"MM":return N(2,e,a);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:a});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,r){var a=function(o){return o-1};switch(t){case"L":return U(Ze,e,a);case"LL":return N(2,e,a);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:a});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return U(et,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return N(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return ce(function(a,o,i){x(2,arguments);var s=p(a),u=S(o),l=kt(s,i)-u;return s.setUTCDate(s.getUTCDate()-7*l),s}(e,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return U(et,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return N(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return ge(function(a,o){x(2,arguments);var i=p(a),s=S(o),u=xt(i)-s;return i.setUTCDate(i.getUTCDate()-7*u),i}(e,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,parse:function(e,t,n,r){switch(t){case"d":return U(Vt,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return N(t.length,e)}},validate:function(e,t,n){var r=ct(e.getUTCFullYear()),a=e.getUTCMonth();return r?t>=1&&t<=hn[a]:t>=1&&t<=mn[a]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,parse:function(e,t,n,r){switch(t){case"D":case"DD":return U($t,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return N(t.length,e)}},validate:function(e,t,n){return ct(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=Ye(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,r){var a=function(o){var i=7*Math.floor((o-1)/7);return(o+r.weekStartsOn+6)%7+i};switch(t){case"e":case"ee":return N(t.length,e,a);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:a});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=Ye(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,r){var a=function(o){var i=7*Math.floor((o-1)/7);return(o+r.weekStartsOn+6)%7+i};switch(t){case"c":case"cc":return N(t.length,e,a);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:a});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=Ye(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,r){var a=function(o){return o===0?7:o};switch(t){case"i":case"ii":return N(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:a})||n.day(e,{width:"short",context:"formatting",valueCallback:a})||n.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:a})||n.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiii":default:return n.day(e,{width:"wide",context:"formatting",valueCallback:a})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:a})||n.day(e,{width:"short",context:"formatting",valueCallback:a})||n.day(e,{width:"narrow",context:"formatting",valueCallback:a})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return(e=function(a,o){x(2,arguments);var i=S(o);i%7==0&&(i-=7);var s=1,u=p(a),l=u.getUTCDay(),h=i%7,d=(h+7)%7,g=(d<s?7:0)+i-l;return u.setUTCDate(u.getUTCDate()+g),u}(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,n,r){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(Fe(n),0,0,0),e},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(e,t,n,r){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(Fe(n),0,0,0),e},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(e,t,n,r){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(Fe(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return U(en,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return N(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,r){var a=e.getUTCHours()>=12;return a&&n<12?e.setUTCHours(n+12,0,0,0):a||n!==12?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return U(Kt,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return N(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return U(Zt,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return N(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return U(Jt,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return N(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var a=n<=24?n%24:n;return e.setUTCHours(a,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return U(tn,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return N(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return U(nn,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return N(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,r){return N(t.length,e,function(a){return Math.floor(a*Math.pow(10,3-t.length))})},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return K(tt,e);case"XX":return K(nt,e);case"XXXX":return K(rt,e);case"XXXXX":return K(ot,e);case"XXX":default:return K(at,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return K(tt,e);case"xx":return K(nt,e);case"xxxx":return K(rt,e);case"xxxxx":return K(ot,e);case"xxx":default:return K(at,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,r){return it(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,r){return it(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}},wn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yn=/^'([^]*?)'?$/,bn=/''/g,vn=/\S/,pn=/[a-zA-Z]/;function Tn(e,t,n,r){x(3,arguments);var a=String(e),o=String(t),i={},s=i.locale||wt;if(!s.match)throw new RangeError("locale must contain match property");var u=s.options&&s.options.firstWeekContainsDate,l=u==null?1:S(u),h=i.firstWeekContainsDate==null?l:S(i.firstWeekContainsDate);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=s.options&&s.options.weekStartsOn,g=d==null?0:S(d),c=i.weekStartsOn==null?g:S(i.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(o==="")return a===""?p(n):new Date(NaN);var b,k={firstWeekContainsDate:h,weekStartsOn:c,locale:s},D=[{priority:10,set:xn,index:0}],w=o.match(Dn).map(function(I){var z=I[0];return z==="p"||z==="P"?(0,yt[z])(I,s.formatLong,k):I}).join("").match(wn),T=[];for(b=0;b<w.length;b++){var v=w[b];!i.useAdditionalWeekYearTokens&&pt(v)&&Se(v),!i.useAdditionalDayOfYearTokens&&vt(v)&&Se(v);var L=v[0],Y=gn[L];if(Y){var G=Y.incompatibleTokens;if(Array.isArray(G)){for(var E=void 0,O=0;O<T.length;O++){var V=T[O].token;if(G.indexOf(V)!==-1||V===L){E=T[O];break}}if(E)throw new RangeError("The format string mustn't contain `".concat(E.fullToken,"` and `").concat(v,"` at the same time"))}else if(Y.incompatibleTokens==="*"&&T.length)throw new RangeError("The format string mustn't contain `".concat(v,"` and any other token at the same time"));T.push({token:L,fullToken:v});var W=Y.parse(a,v,s.match,k);if(!W)return new Date(NaN);D.push({priority:Y.priority,set:Y.set,validate:Y.validate,value:W.value,index:D.length}),a=W.rest}else{if(L.match(pn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");if(v==="''"?v="'":L==="'"&&(v=kn(v)),a.indexOf(v)!==0)return new Date(NaN);a=a.slice(v.length)}}if(a.length>0&&vn.test(a))return new Date(NaN);var _=D.map(function(I){return I.priority}).sort(function(I,z){return z-I}).filter(function(I,z,De){return De.indexOf(I)===z}).map(function(I){return D.filter(function(z){return z.priority===I}).reverse()}).map(function(I){return I[0]}),X=p(n);if(isNaN(X))return new Date(NaN);var M=Dt(X,bt(X)),H={};for(b=0;b<_.length;b++){var A=_[b];if(A.validate&&!A.validate(M,A.value,k))return new Date(NaN);var Z=A.set(M,H,A.value,k);Z[0]?(M=Z[0],Qt(H,Z[1])):M=Z}return M}function xn(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}function kn(e){return e.match(yn)[1].replace(bn,"'")}function Cn(e){x(1,arguments);var t=p(e);return!isNaN(t)}function C(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Mn=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return C(t==="yy"?r%100:r,t.length)},Sn=function(e,t){var n=e.getUTCMonth();return t==="M"?String(n+1):C(n+1,2)},En=function(e,t){return C(e.getUTCDate(),t.length)},Rn=function(e,t){return C(e.getUTCHours()%12||12,t.length)},Un=function(e,t){return C(e.getUTCHours(),t.length)},Pn=function(e,t){return C(e.getUTCMinutes(),t.length)},Nn=function(e,t){return C(e.getUTCSeconds(),t.length)},On=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return C(Math.floor(r*Math.pow(10,n-3)),t.length)},Bn="midnight",Yn="noon",Fn="morning",qn="afternoon",Ln="evening",Hn="night",In={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){var r=e.getUTCFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return Mn(e,t)},Y:function(e,t,n,r){var a=_e(e,r),o=a>0?a:1-a;return t==="YY"?C(o%100,2):t==="Yo"?n.ordinalNumber(o,{unit:"year"}):C(o,t.length)},R:function(e,t){return C(Tt(e),t.length)},u:function(e,t){return C(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return C(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return C(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return Sn(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return C(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var a=kt(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):C(a,t.length)},I:function(e,t,n){var r=xt(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):C(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):En(e,t)},D:function(e,t,n){var r=function(a){x(1,arguments);var o=p(a),i=o.getTime();o.setUTCMonth(0,1),o.setUTCHours(0,0,0,0);var s=o.getTime(),u=i-s;return Math.floor(u/864e5)+1}(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):C(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return C(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return C(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return C(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,a=e.getUTCHours();switch(r=a===12?Yn:a===0?Bn:a/12>=1?"pm":"am",t){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,a=e.getUTCHours();switch(r=a>=17?Ln:a>=12?qn:a>=4?Fn:Hn,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Rn(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Un(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):C(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):C(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Pn(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Nn(e,t)},S:function(e,t){return On(e,t)},X:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return lt(a);case"XXXX":case"XX":return ie(a);case"XXXXX":case"XXX":default:return ie(a,":")}},x:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return lt(a);case"xxxx":case"xx":return ie(a);case"xxxxx":case"xxx":default:return ie(a,":")}},O:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+dt(a,":");case"OOOO":default:return"GMT"+ie(a,":")}},z:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+dt(a,":");case"zzzz":default:return"GMT"+ie(a,":")}},t:function(e,t,n,r){var a=r._originalDate||e;return C(Math.floor(a.getTime()/1e3),t.length)},T:function(e,t,n,r){return C((r._originalDate||e).getTime(),t.length)}};function dt(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),o=r%60;if(o===0)return n+String(a);var i=t;return n+String(a)+i+C(o,2)}function lt(e,t){return e%60==0?(e>0?"-":"+")+C(Math.abs(e)/60,2):ie(e,t)}function ie(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e);return r+C(Math.floor(a/60),2)+n+C(a%60,2)}var Wn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,An=/^'([^]*?)'?$/,Qn=/''/g,Gn=/[a-zA-Z]/;function we(e,t,n){x(2,arguments);var r=String(t),a={},o=a.locale||wt,i=o.options&&o.options.firstWeekContainsDate,s=i==null?1:S(i),u=a.firstWeekContainsDate==null?s:S(a.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var l=o.options&&o.options.weekStartsOn,h=l==null?0:S(l),d=a.weekStartsOn==null?h:S(a.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var g=p(e);if(!Cn(g))throw new RangeError("Invalid time value");var c=bt(g),b=Dt(g,c),k={firstWeekContainsDate:u,weekStartsOn:d,locale:o,_originalDate:g},D=r.match(jn).map(function(w){var T=w[0];return T==="p"||T==="P"?(0,yt[T])(w,o.formatLong,k):w}).join("").match(Wn).map(function(w){if(w==="''")return"'";var T=w[0];if(T==="'")return _n(w);var v=In[T];if(v)return!a.useAdditionalWeekYearTokens&&pt(w)&&Se(w),!a.useAdditionalDayOfYearTokens&&vt(w)&&Se(w),v(b,w,o.localize,k);if(T.match(Gn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");return w}).join("");return D}function _n(e){return e.match(An)[1].replace(Qn,"'")}/*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */function q(e,t){x(2,arguments);var n=p(e),r=S(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function de(e,t){x(1,arguments);var n=e||{},r=p(n.start),a=p(n.end),o=a.getTime();if(!(r.getTime()<=o))throw new RangeError("Invalid interval");var i=[],s=r;s.setHours(0,0,0,0);var u=1;if(isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=o;)i.push(p(s)),s.setDate(s.getDate()+u),s.setHours(0,0,0,0);return i}function Xn(e,t){x(1,arguments);var n={},r=n.locale,a=r&&r.options&&r.options.weekStartsOn,o=a==null?0:S(a),i=n.weekStartsOn==null?o:S(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=p(e),u=s.getDay(),l=6+(u<i?-7:0)-(u-i);return s.setDate(s.getDate()+l),s.setHours(23,59,59,999),s}function Ct(e){x(1,arguments);var t=p(e);return t.setDate(1),t.setHours(0,0,0,0),t}function zn(e,t){x(1,arguments);var n={},r=n.locale,a=r&&r.options&&r.options.weekStartsOn,o=a==null?0:S(a),i=n.weekStartsOn==null?o:S(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=p(e),u=s.getDay(),l=(u<i?7:0)+u-i;return s.setDate(s.getDate()-l),s.setHours(0,0,0,0),s}function Vn(e){var t=e===void 0?{}:e,n=t.firstDayOfWeek,r=n===void 0?1:n,a=t.weekdayLabelFormat,o=a===void 0?function(s){return we(s,"iiiiii")}:a,i=new Date;return de({start:q(zn(i),r),end:q(Xn(i),r)}).reduce(function(s,u){return s.push(o(u)),s},[])}function $n(e){var t=e.year,n=e.month,r=e.firstDayOfWeek,a=r===void 0?1:r,o=e.dayLabelFormat,i=o===void 0?function(d){return we(d,"dd")}:o,s=new Date(t,n),u=Ct(s),l=function(d){x(1,arguments);var g=p(d),c=g.getDay();return c}(u),h=function(d){x(1,arguments);var g=p(d),c=g.getMonth();return g.setFullYear(g.getFullYear(),c+1,0),g.setHours(23,59,59,999),g}(s);return function(){for(var d=0,g=0,c=arguments.length;g<c;g++)d+=arguments[g].length;var b=Array(d),k=0;for(g=0;g<c;g++)for(var D=arguments[g],w=0,T=D.length;w<T;w++,k++)b[k]=D[w];return b}(Array.from(Array(l>=a?l-a:6-a+l+1).keys()).fill(0),de({start:u,end:h}).map(function(d){return{date:d,dayLabel:i(d)}}))}var Kn=function(e){return we(e,"dd")},Jn=function(e){return we(e,"eeeeee")},Zn=function(e){return we(e,"MMMM yyyy")};function er(e){var t=e.year,n=e.month,r=e.firstDayOfWeek,a=r===void 0?1:r,o=e.dayLabelFormat,i=o===void 0?Kn:o,s=e.weekdayLabelFormat,u=s===void 0?Jn:s,l=e.monthLabelFormat,h=l===void 0?Zn:l;return{days:y.useMemo(function(){return $n({year:t,month:n,firstDayOfWeek:a,dayLabelFormat:i})},[t,n,a,i]),weekdayLabels:y.useMemo(function(){return Vn({firstDayOfWeek:a,weekdayLabelFormat:u})},[a,u]),monthLabel:h(new Date(t,n))}}function ae(e,t){x(2,arguments);var n=p(e),r=p(t);return n.getTime()<r.getTime()}function xe(e,t){x(2,arguments);var n=p(e),r=p(t);return n.getTime()>r.getTime()}function he(e,t){x(2,arguments);var n=t||{},r=p(e).getTime(),a=p(n.start).getTime(),o=p(n.end).getTime();if(!(a<=o))throw new RangeError("Invalid interval");return r>=a&&r<=o}function We(e){x(1,arguments);var t=p(e);return t.setHours(0,0,0,0),t}function $(e,t){x(2,arguments);var n=We(e),r=We(t);return n.getTime()===r.getTime()}function je(e,t){x(2,arguments);var n=p(e),r=S(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var a=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var i=o.getDate();return a>=i?o:(n.setFullYear(o.getFullYear(),o.getMonth(),a),n)}var Mt=function(e,t){return e===void 0&&(e=[]),e.some(function(n){return $(t,n)})};function tr(e,t,n){return!(!t||!n)&&he(e,{start:t,end:n})}function nr(e,t,n){return!!(t&&$(e,t)||n&&$(e,n))}function rr(e,t){return!(!t||!$(e,t))}function ar(e,t){return!(!t||!$(e,t))}function or(e){var t=e.date,n=e.minBookingDate,r=e.maxBookingDate,a=e.isDateBlockedFn,o=e.startDate,i=e.endDate,s=e.minBookingDays,u=s===void 0?1:s,l=e.unavailableDates,h=l===void 0?[]:l,d=n&&new Date(n.getFullYear(),n.getMonth(),n.getDate(),0,0,0),g=r&&new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0);return!!(Mt(h,t)||d&&ae(t,d)||g&&xe(t,g)||o&&!i&&u>1&&he(t,{start:o,end:q(o,u-2)})||a&&a(t))}function ke(e){var t=Ct(e);return{year:function(n){x(1,arguments);var r=p(n),a=r.getFullYear();return a}(t),month:function(n){x(1,arguments);var r=p(n),a=r.getMonth();return a}(t),date:t}}function ir(){return ke(We(Date.now()))}function pe(e,t){var n=t?ke(t):ir(),r=n.date,a=[n];return e>1&&(a=Array.from(Array(e-1).keys()).reduce(function(o){return r=je(o[o.length-1].date,1),o.concat([ke(r)])},a)),a}function fe(e,t,n,r){var a=e[r?n>0?0:e.length-r:n>0?e.length-1:0].date;return Array.from(Array(t).keys()).reduce(function(o){return a=o.length===0?je(a,n):je(a,n>=0?1:-1),n>0?o.concat([ke(a)]):[ke(a)].concat(o)},[])}function sr(e,t,n){return e&&typeof t=="string"?we(e,t):e&&typeof t=="function"?t(e):n}function Te(e){var t=e.startDate,n=e.endDate,r=e.isDateBlocked,a=e.minBookingDays,o=e.exactMinBookingDays,i=e.minBookingDate,s=e.maxBookingDate,u=!i||!ae(t,q(i,-1)),l=!s||!xe(q(t,a-1),s);return!(!t||a!==1||n||r(t))||(t&&a>1&&!n&&!o||t&&a>0&&o&&u&&l||t&&a>0&&o&&!i&&!s?!de({start:t,end:q(t,a-1)}).some(function(h){return r(h)}):!(!t||!n||o)&&!ae(n,q(t,a-1))&&!de({start:t,end:n}).some(function(h){return r(h)}))}function ur(e){var t=e.startDate,n=e.endDate,r=e.focusedInput,a=e.minBookingDate,o=e.maxBookingDate,i=e.onDatesChange,s=e.initialVisibleMonth,u=e.exactMinBookingDays,l=u!==void 0&&u,h=e.minBookingDays,d=h===void 0?1:h,g=e.numberOfMonths,c=g===void 0?2:g,b=e.firstDayOfWeek,k=b===void 0?1:b,D=e.isDateBlocked,w=D===void 0?function(){return!1}:D,T=e.unavailableDates,v=T===void 0?[]:T,L=e.changeActiveMonthOnSelect,Y=L===void 0||L,G=y.useState(function(){return pe(c,t||s||null)}),E=G[0],O=G[1],V=y.useState(null),W=V[0],_=V[1],X=y.useState(t),M=X[0],H=X[1];y.useEffect(function(){return typeof window<"u"&&window.addEventListener&&window.addEventListener("keydown",z),function(){window.removeEventListener&&window.removeEventListener("keydown",z)}});var A=function(m){return Mt(v,m)||w(m)},Z=function(m){H(m),(!M||M&&!$(m,M))&&O(pe(c,m))},I=function(m){return or({date:m,minBookingDate:a,maxBookingDate:o,startDate:t,endDate:n,minBookingDays:d,isDateBlockedFn:A})};function z(m){if((m.key==="ArrowRight"||m.key==="ArrowLeft"||m.key==="ArrowDown"||m.key==="ArrowUp")&&!M){var Q=E[0];Z(Q.date),O(pe(c,Q.date))}}var De=y.useCallback(function(){O(fe(E,c,-1)),H(null)},[E,c]),Ee=y.useCallback(function(){O(fe(E,c,-1,1)),H(null)},[E,c]),Re=y.useCallback(function(){O(fe(E,c,1)),H(null)},[E,c]),Ue=y.useCallback(function(){O(fe(E,c,1,1)),H(null)},[E,c]),Pe=y.useCallback(function(m){O(pe(c,m)),H(null)},[c]),Ce=y.useCallback(function(m){m===void 0&&(m=1),O(fe(E,c,-(12*m-c+1))),H(null)},[E,c]),ee=y.useCallback(function(m){m===void 0&&(m=1),O(fe(E,c,12*m-c+1)),H(null)},[E,c]);return{firstDayOfWeek:k,activeMonths:E,isDateSelected:function(m){return tr(m,t,n)},isDateHovered:function(m){return function(Q){var ne=Q.date,f=Q.startDate,R=Q.endDate,F=Q.isDateBlocked,j=Q.hoveredDate,re=Q.minBookingDays,Ne=Q.exactMinBookingDays;return j&&re>1&&Ne&&he(ne,{start:j,end:q(j,re-1)})?!de({start:j,end:q(j,re-1)}).some(function(oe){return F(oe)}):f&&!R&&j&&he(ne,{start:f,end:q(f,re-1)})&&$(f,j)&&re>1?!de({start:f,end:q(f,re-1)}).some(function(oe){return F(oe)}):!(!f||R||!j||ae(j,f)||!he(ne,{start:f,end:j}))&&!de({start:f,end:j}).some(function(oe){return F(oe)})}({date:m,hoveredDate:W,startDate:t,endDate:n,minBookingDays:d,exactMinBookingDays:l,isDateBlocked:A})},isFirstOrLastSelectedDate:function(m){return nr(m,t,n)},isStartDate:function(m){return rr(m,t)},isEndDate:function(m){return ar(m,n)},isDateBlocked:I,numberOfMonths:c,isDateFocused:function(m){return!!M&&$(m,M)},focusedDate:M,hoveredDate:W,onResetDates:function(){i({startDate:null,endDate:null,focusedInput:"startDate"})},onDateHover:function(m){if(m){if(m){var Q=!I(m)||t&&$(m,t),ne=!a||!ae(m,q(a,-1)),f=!o||!xe(m,o),R=q(m,d-1),F=!a||!ae(R,a),j=!o||!xe(R,o),re=l&&d>1&&ne&&f&&F&&j,Ne=t&&!n&&!l&&ne&&f,oe=!(d>1&&t)||he(m,{start:t,end:q(t,d-2)}),Nt=t&&$(m,t)&&oe;Q&&(re||Ne||Nt)?_(m):W!==null&&_(null)}}else _(null)},onDateSelect:function(m){(r==="endDate"||r==="startDate")&&d>0&&l&&Te({minBookingDays:d,exactMinBookingDays:l,minBookingDate:a,maxBookingDate:o,isDateBlocked:A,startDate:m,endDate:null})?i({startDate:m,endDate:q(m,d-1),focusedInput:null}):(r==="endDate"&&t&&ae(m,t)||r==="startDate"&&n&&xe(m,n))&&!l&&Te({minBookingDays:d,isDateBlocked:A,startDate:m,endDate:null})?i({endDate:null,startDate:m,focusedInput:"endDate"}):r==="startDate"&&!l&&Te({minBookingDays:d,isDateBlocked:A,endDate:n,startDate:m})?i({endDate:n,startDate:m,focusedInput:"endDate"}):r==="startDate"&&!l&&Te({minBookingDays:d,isDateBlocked:A,endDate:null,startDate:m})?i({endDate:null,startDate:m,focusedInput:"endDate"}):r==="endDate"&&t&&!ae(m,t)&&!l&&Te({minBookingDays:d,isDateBlocked:A,startDate:t,endDate:m})&&i({startDate:t,endDate:m,focusedInput:null}),r!=="endDate"&&(!M||M&&!$(m,M))&&Y&&O(pe(c,m))},onDateFocus:Z,goToPreviousMonths:De,goToPreviousMonthsByOneMonth:Ee,goToNextMonths:Re,goToNextMonthsByOneMonth:Ue,goToDate:Pe,goToPreviousYear:Ce,goToNextYear:ee}}function cr(e){var t=e.date,n=e.focusedDate,r=e.isDateSelected,a=e.isDateFocused,o=e.isFirstOrLastSelectedDate,i=e.isDateHovered,s=e.isDateBlocked,u=e.onDateSelect,l=e.onDateFocus,h=e.onDateHover,d=y.useCallback(function(){return u(t)},[t,u]),g=y.useCallback(function(){return h(t)},[t,h]),c=s(t)&&!i(t);return{tabIndex:n===null||a(t)?0:-1,isSelected:r(t),isSelectedStartOrEnd:o(t),isWithinHoverRange:i(t),disabledDate:c,onKeyDown:function(b){b.key==="ArrowRight"?l(q(t,1)):b.key==="ArrowLeft"?l(q(t,-1)):b.key==="ArrowUp"?l(q(t,-7)):b.key==="ArrowDown"&&l(q(t,7))},onClick:c?function(){}:d,onMouseEnter:g}}var Xe=(e=>(e.ShortDate="MM/dd/yyyy",e.LongDate="MMM dd yyyy",e.DayOfWeekDayOfMonth="eeee, MMMM do",e))(Xe||{}),J=(e=>(e.StartDate="startDate",e.EndDate="endDate",e))(J||{});const te=new Date,ze=te.getFullYear(),dr=te.getMonth(),lr=te,St=ze-100,Et=ze+5,Ae=Xe.ShortDate,fr={dateFormat:Ae,endDate:null,focusedInput:null,withDateRange:!1,maxYear:Et,minYear:St,startDate:null,standalone:!1,onClose:()=>{throw new Error("onClose(): boolean not implemented")},setFocusedInput:()=>{throw new Error("setFocusedInput(): boolean not implemented")},clearDates:()=>{throw new Error("clearDates(): boolean not implemented")},onQuickOptionSelect:()=>{throw new Error("onQuickOptionSelect(): boolean not implemented")},onTimeChange:()=>{throw new Error("onTimeChange(): boolean not implemented")},focusedDate:te,firstDayOfWeek:void 0,activeMonths:[],isDateFocused:()=>{throw new Error("isDateFocused(): boolean not implemented")},isDateSelected:()=>{throw new Error("isDateSelected(): boolean not implemented")},isDateHovered:()=>{throw new Error("isDateHovered(): boolean not implemented")},isDateBlocked:()=>{throw new Error("isDateBlocked(): boolean not implemented")},isFirstOrLastSelectedDate:()=>{throw new Error("isFirstOrLastSelectedDate(): boolean not implemented")},onDateFocus:()=>{throw new Error("onDateFocus(): boolean not implemented")},onDateHover:()=>{throw new Error("onDateHover(): boolean not implemented")},onDateSelect:()=>{throw new Error("onDateSelect(): boolean not implemented")},goToPreviousMonths:()=>{throw new Error("goToPreviousMonths(): boolean not implemented")},goToNextMonths:()=>{throw new Error("goToNextMonths(): boolean not implemented")},goToDate:()=>{throw new Error("goToDate(): boolean not implemented")}},Rt=y.createContext(fr),le=()=>y.useContext(Rt),mr=["root"],ft={bg:"background.secondary",borderColor:"border.focus",color:"text.contrast",_hover:{bg:"background.secondary"}},hr={default:{root:{borderColor:"transparent",_hover:{bg:"background.secondaryAlpha.hover"}}},disabled:{root:{bg:"background.subtle",borderColor:"transparent",cursor:"not-allowed",opacity:.4}},inRange:{root:{bg:"background.secondaryAlpha.pressed",borderColor:"transparent",borderRadius:"none",color:"text.info"}},selectedEnd:{root:{borderColor:"border.focus",color:"text.info"}},selectedStart:{root:ft},selectedRange:{root:{...ft,borderRadius:"sm"}}},gr=Bt.defineSlotRecipe({slots:mr,base:{root:{border:"2px",borderRadius:"4px",color:"text.subtle",cursor:"pointer",fontSize:"sm",fontWeight:"normal !important",position:"relative",px:3,py:1,overflow:"hidden"}},variants:{variant:hr,isToday:{true:{root:{color:"text",fontWeight:"semibold"}},false:{}},withDateRange:{true:{},false:{}}},compoundVariants:[{variant:["selectedStart","selectedRange"],isToday:!0,css:{root:{color:"text.contrast"}}},{variant:"inRange",isToday:!0,css:{root:{color:"text.info"}}},{withDateRange:!0,variant:"selectedStart",css:{root:{borderRightRadius:0}}},{withDateRange:!0,variant:"selectedEnd",css:{root:{borderLeftRadius:0}}}],defaultVariants:{}}),me=e=>e==="selectedStart"||e==="selectedEnd"||e==="inRange"||e==="selectedRange",se=({date:e,startDate:t,endDate:n,dateFormat:r,disabledDate:a,isSelected:o,isDateSelected:i,isDateBlocked:s})=>{const u=a||s(e),l=o||i(e);if(u)return"disabled";if(!t||!n)return l?"selectedRange":"default";const h=B.format(e,r),d=B.format(t,r),g=B.format(n,r),c=h===d,b=h===g;return c&&b?"selectedRange":c?"selectedStart":b?"selectedEnd":l&&!c&&!b?"inRange":"default"},wr=({dayLabel:e,date:t,onDaySelected:n,cornerRounding:r,["data-testid"]:a="kibble-datepicker-day"})=>{const o=y.useRef(null),{startDate:i,endDate:s,dateFormat:u,withDateRange:l}=le(),h=y.useMemo(()=>Yt.isToday(t),[t]),{focusedDate:d,isDateFocused:g,isDateSelected:c,isDateHovered:b,isDateBlocked:k,isFirstOrLastSelectedDate:D,onDateSelect:w,onDateFocus:T,onDateHover:v}=le(),{disabledDate:L,isSelected:Y,onClick:G,onKeyDown:E,onMouseEnter:O,tabIndex:V}=cr({date:t,focusedDate:d,isDateFocused:g,isDateSelected:c,isDateHovered:b,isDateBlocked:k,isFirstOrLastSelectedDate:D,onDateFocus:T,onDateSelect:w,onDateHover:v}),W=y.useMemo(()=>({borderTopLeftRadius:r?.roundTopLeft?"sm":"none",borderTopRightRadius:r?.roundTopRight?"sm":"none",borderBottomLeftRadius:r?.roundBottomLeft?"sm":"none",borderBottomRightRadius:r?.roundBottomRight?"sm":"none"}),[r]),_=y.useMemo(()=>se({date:t,startDate:i,endDate:s,dateFormat:u,isDateSelected:c,isDateBlocked:k,disabledDate:L,isSelected:Y}),[t,i,s,u,c,k,L,Y]),M=Ft.useSlotRecipe({recipe:gr})({variant:_,isToday:h,withDateRange:l});if(!e)return P.jsxRuntimeExports.jsx(P.jsxRuntimeExports.Fragment,{});const H=()=>{_!=="disabled"&&(G(),n())};return P.jsxRuntimeExports.jsx(Ie.Button,{className:"DatePicker__Day","data-testid":`${a}-${B.format(t,"MM/dd/yyyy")}`,onClick:H,onKeyDown:E,onMouseEnter:O,tabIndex:V,ref:o,unstyled:!0,css:M.root,...W,children:e})},Dr=e=>{const{startDate:t,endDate:n,dateFormat:r,isDateSelected:a,isDateBlocked:o}=le();return y.useMemo(()=>{const u=[];return e.some(h=>typeof h=="object"&&h!==null&&me(se({date:h.date,startDate:t,endDate:n,dateFormat:r,isDateSelected:a,isDateBlocked:o})))?(e.forEach((h,d)=>{if(typeof h!="object"||h===null){u.push(null);return}const g=se({date:h.date,startDate:t,endDate:n,dateFormat:r,isDateSelected:a,isDateBlocked:o}),c=Math.floor(d/7),b=d%7;if(!me(g)){u.push({roundTopLeft:!1,roundTopRight:!1,roundBottomLeft:!1,roundBottomRight:!1});return}const k=b===0?null:d-1,D=b===6?null:d+1,w=k!==null?e[k]:null,T=w!==null&&typeof w=="object"?se({date:w.date,startDate:t,endDate:n,dateFormat:r,isDateSelected:a,isDateBlocked:o}):"default",v=D!==null?e[D]:null,L=v!==null&&typeof v=="object"?se({date:v.date,startDate:t,endDate:n,dateFormat:r,isDateSelected:a,isDateBlocked:o}):"default",Y=c===0?null:d-7,G=d+7>=e.length?null:d+7,E=Y!==null&&Y>=0?e[Y]:null,O=E!==null&&typeof E=="object"?se({date:E.date,startDate:t,endDate:n,dateFormat:r,isDateSelected:a,isDateBlocked:o}):"default",V=G!==null&&G<e.length?e[G]:null,W=V!==null&&typeof V=="object"?se({date:V.date,startDate:t,endDate:n,dateFormat:r,isDateSelected:a,isDateBlocked:o}):"default",_=b===0||!me(T),X=b===6||!me(L),M=c===0||!me(O),H=G===null||!me(W);u.push({roundTopLeft:M&&_,roundTopRight:M&&X,roundBottomLeft:H&&_,roundBottomRight:H&&X})}),u):e.map(()=>null)},[e,t,n,r,a,o])},yr=({onDaySelected:e,month:t,showMonthLabels:n,["data-testid"]:r="kibble-datepicker-month"})=>{const a=y.useRef(null),{firstDayOfWeek:o,activeMonth:i}=le(),s=y.useMemo(()=>t?.year||i?.year||ze,[t,i]),u=y.useMemo(()=>t?.month!==void 0?t.month:i?.month!==void 0?i.month:dr,[t,i]),{days:l,weekdayLabels:h,monthLabel:d}=er({year:s,month:u,firstDayOfWeek:o}),g=Dr(l);return P.jsxRuntimeExports.jsxs(Ot.Box,{ref:a,className:"DatePicker__Month","data-testid":r,px:3,children:[n&&P.jsxRuntimeExports.jsx(He.WrappedText,{size:"sm",fontWeight:"semibold",textAlign:"center",children:d}),P.jsxRuntimeExports.jsx(Oe.Grid,{templateColumns:"repeat(7, 1fr)",my:2,children:h.map(c=>P.jsxRuntimeExports.jsx(Oe.GridItem,{children:P.jsxRuntimeExports.jsx(gt.Center,{children:P.jsxRuntimeExports.jsx(He.WrappedText,{size:"xs",fontWeight:"semibold",children:c})})},c))}),P.jsxRuntimeExports.jsx(Oe.Grid,{templateColumns:"repeat(7, 1fr)",children:l.map((c,b)=>typeof c=="object"?P.jsxRuntimeExports.jsx(wr,{date:c.date,dayLabel:c.dayLabel,onDaySelected:e,cornerRounding:g[b]},c.date.toString()):P.jsxRuntimeExports.jsx("div",{},b))})]})};function br({showMonthLabels:e,["data-testid"]:t="kibble-datepicker-calendar"}){const{withDateRange:n,activeMonths:r,onClose:a,standalone:o}=le(),{setOpen:i}=qt.usePopoverContext(),s=()=>{n||(o||i(!1),a())};return P.jsxRuntimeExports.jsx(Lt.Flex,{className:"DatePicker__Calendar","data-testid":t,py:2,children:r.map(u=>P.jsxRuntimeExports.jsx(yr,{month:u,onDaySelected:s,showMonthLabels:e},`${u.year}-${u.month}`))})}var vr=Math.ceil,pr=Math.max;function Tr(e,t,n,r){for(var a=-1,o=pr(vr((t-e)/(n||1)),0),i=Array(o);o--;)i[++a]=e,e+=n;return i}function xr(e,t,n){if(!ue.isObject(n))return!1;var r=typeof t;return(r=="number"?ue.isArrayLike(n)&&ue.isIndex(t,n.length):r=="string"&&t in n)?ue.eq(n[t],e):!1}var kr=/\s/;function Cr(e){for(var t=e.length;t--&&kr.test(e.charAt(t)););return t}var Mr=/^\s+/;function Sr(e){return e&&e.slice(0,Cr(e)+1).replace(Mr,"")}var mt=NaN,Er=/^[-+]0x[0-9a-f]+$/i,Rr=/^0b[01]+$/i,Ur=/^0o[0-7]+$/i,Pr=parseInt;function Nr(e){if(typeof e=="number")return e;if(ue.isSymbol(e))return mt;if(ue.isObject(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ue.isObject(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Sr(e);var n=Rr.test(e);return n||Ur.test(e)?Pr(e.slice(2),n?2:8):Er.test(e)?mt:+e}var Or=1/0,Br=17976931348623157e292;function qe(e){if(!e)return e===0?e:0;if(e=Nr(e),e===Or||e===-1/0){var t=e<0?-1:1;return t*Br}return e===e?e:0}function Yr(e){return function(t,n,r){return r&&typeof r!="number"&&xr(t,n,r)&&(n=r=void 0),t=qe(t),n===void 0?(n=t,t=0):n=qe(n),r=r===void 0?t<n?1:-1:qe(r),Tr(t,n,r)}}var Fr=Yr();function qr(e,t){const n=B.toDate(e,t?.in),r=n.getFullYear(),a=n.getMonth(),o=B.constructFrom(n,0);return o.setFullYear(r,a+1,0),o.setHours(0,0,0,0),o.getDate()}function Lr(e,t,n){const r=B.toDate(e,n?.in),a=r.getFullYear(),o=r.getDate(),i=B.constructFrom(e,0);i.setFullYear(a,t,15),i.setHours(0,0,0,0);const s=qr(i);return r.setMonth(t,Math.min(o,s)),r}function ht(e,t,n){let r=B.toDate(e,n?.in);return isNaN(+r)?B.constructFrom(e,NaN):(t.year!=null&&r.setFullYear(t.year),t.month!=null&&(r=Lr(r,t.month)),t.date!=null&&r.setDate(t.date),t.hours!=null&&r.setHours(t.hours),t.minutes!=null&&r.setMinutes(t.minutes),t.seconds!=null&&r.setSeconds(t.seconds),t.milliseconds!=null&&r.setMilliseconds(t.milliseconds),r)}const Le=["January","February","March","April","May","June","July","August","September","October","November","December"];function Hr({triggerProps:e,withTriggers:t=!0,["data-testid"]:n="kibble-datepicker-header"}){const r=y.useRef(null),a=y.useRef(null),{focusedDate:o,activeMonth:i,minYear:s,maxYear:u,goToDate:l,goToNextMonths:h,goToPreviousMonths:d}=le(),g=y.useMemo(()=>Le.map((w,T)=>{const v=T===i?.month;return{label:w,value:String(T),selected:v,...v&&{ref:r}}}),[i?.month]),c=y.useMemo(()=>Fr(s,u+1).map(w=>{const T=String(w),v=w===i?.year;return{label:T,value:T,selected:v,...v&&{ref:a}}}),[i?.year,u,s]),b=({item:w})=>l(ht(o||te,{month:Number(w.value),year:i?.year})),k=({item:w})=>l(ht(o||te,{month:i?.month,year:Number(w.value)})),D=({type:w})=>{setTimeout(()=>{const T=w==="year"?a?.current:r?.current;T&&T.scrollIntoView({block:"center"})})};return P.jsxRuntimeExports.jsxs(Ht.HStack,{className:"DatePicker__Header","data-testid":n,w:"100%",justify:"space-between",py:2,px:3,children:[P.jsxRuntimeExports.jsx(Ie.Button,{iconName:"chevronLeft",onClick:d,variant:"ghostNeutral",size:"sm"}),t?P.jsxRuntimeExports.jsxs(gt.Center,{gap:2,h:"100%",children:[P.jsxRuntimeExports.jsx(Ve.Menu,{"data-testid":`${n}-month-menu`,buttonProps:{variant:"tertiary",...e,text:Le[i?.month||0],size:"sm"},listProps:{menuItems:g,onSelect:b,maxH:250},onOpenChange:({open:w})=>{w&&D({type:"month"})}}),P.jsxRuntimeExports.jsx(Ve.Menu,{"data-testid":`${n}-year-menu`,buttonProps:{variant:"tertiary",...e,text:String(i?.year),size:"sm"},listProps:{menuItems:c,onSelect:k,maxH:250},onOpenChange:({open:w})=>{w&&D({type:"year"})}})]}):P.jsxRuntimeExports.jsxs(He.WrappedText,{fontWeight:"semibold",children:[Le[i?.month||0]," ",i?.year]}),P.jsxRuntimeExports.jsx(Ie.Button,{iconName:"chevronRight",onClick:h,variant:"ghostNeutral",size:"sm"})]})}function Qe(e,t){const n=B.toDate(e,t?.in);return n.setHours(23,59,59,999),n}function Ut(e,t,n){const r=B.toDate(e,n?.in);return isNaN(t)?B.constructFrom(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Pt(e,t,n){const r=B.toDate(e,n?.in);if(isNaN(t))return B.constructFrom(e,NaN);if(!t)return r;const a=r.getDate(),o=B.constructFrom(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const i=o.getDate();return a>=i?o:(r.setFullYear(o.getFullYear(),o.getMonth(),a),r)}function Ir(e,t,n){const{years:r=0,months:a=0,weeks:o=0,days:i=0,hours:s=0,minutes:u=0,seconds:l=0}=t,h=B.toDate(e,n?.in),d=a||r?Pt(h,a+r*12):h,g=i||o?Ut(d,i+o*7):d,c=u+s*60,k=(l+c*60)*1e3;return B.constructFrom(e,+g+k)}function Ge(e,t){return+B.toDate(e)>+B.toDate(t)}const Wr=({children:e,dateFormat:t=Ae,endDate:n,inputProps:r,maxDate:a,maxDaysInRange:o,maxYear:i,minDate:s,minYear:u,numberOfMonths:l=1,onDateChange:h,placement:d="bottom",startDate:g,withDateRange:c,sameWidth:b=!1,standalone:k=!1})=>{const[D,w]=y.useState({startDate:g,endDate:n||g,focusedInput:k?J.StartDate:null}),T=y.useRef(l),v=y.useCallback(f=>{if(o&&f)return Ir(f,{days:o});if(a)return a},[a,o]),L=y.useCallback((f,R)=>{if(!R)return R;const F=v(f);return F&&Ge(R,F)?null:R},[v]),Y=y.useCallback((f,R)=>!f||!R?{startDate:f,endDate:R}:Ge(f,R)?{startDate:f,endDate:Qe(f)}:{startDate:f,endDate:R},[]),G=f=>{if(!f)return;f.endDate||(f.endDate=f.startDate),f.endDate=L(f.startDate,f.endDate),f.startDate=f.startDate?B.startOfDay(f.startDate):f.startDate,f.endDate=f.endDate?Qe(f.endDate):f.endDate;const R=Y(f.startDate,f.endDate);f.startDate=R.startDate,f.endDate=R.endDate,w({...f,focusedInput:f.focusedInput||J.StartDate}),(!c&&h||k&&h)&&h(f)},E=y.useCallback(f=>{w({startDate:f.startDate,endDate:f.endDate||null,focusedInput:null})},[]),O=y.useCallback(({open:f})=>{w({startDate:null,endDate:null,focusedInput:f?J.StartDate:null})},[]),V=y.useCallback(f=>{f&&w(R=>{const F={...R};R.focusedInput===J.EndDate?F.endDate=f:F.startDate=f,F.endDate=L(F.startDate,F.endDate);const j=Y(F.startDate,F.endDate);return F.startDate=j.startDate,F.endDate=j.endDate,F})},[L,Y]),{activeMonths:W,firstDayOfWeek:_,focusedDate:X,goToDate:M,goToNextMonthsByOneMonth:H,goToPreviousMonthsByOneMonth:A,isDateBlocked:Z,isDateFocused:I,isDateHovered:z,isDateSelected:De,isFirstOrLastSelectedDate:Ee,onDateFocus:Re,onDateHover:Ue,onDateSelect:Pe}=ur({endDate:D.endDate,focusedInput:D.focusedInput,initialVisibleMonth:D.startDate||te,maxBookingDate:c&&D.focusedInput===J.StartDate?void 0:v(D.startDate),minBookingDate:s,minBookingDays:1,numberOfMonths:l,onDatesChange:G,startDate:D.startDate,...!c&&{exactMinBookingDays:!0}}),Ce=y.useCallback(f=>{f===J.EndDate&&D.endDate?M(D.endDate):D.startDate&&M(D.startDate)},[M,D.endDate,D.startDate]),ee=y.useCallback(f=>{w(R=>({...R,focusedInput:f})),Ce(f)},[Ce]),m=()=>{r?.disabled||(!D.startDate||!c)&&ee(J.StartDate)},Q=y.useCallback(()=>{ee(null),c&&h&&setTimeout(()=>{h({startDate:D.startDate,endDate:D.endDate})},200)},[c,h,ee,D.endDate,D.startDate]),ne=y.useMemo(()=>W[0],[W]);return y.useEffect(()=>{k&&!D.focusedInput&&ee(J.StartDate)},[k,D.focusedInput,ee]),y.useEffect(()=>{if(T.current!==l){const f=W[0]?.date||X||D.startDate||te;M(f),T.current=l}},[l,W,X,M,D.startDate]),y.useEffect(()=>{w(f=>({...f,startDate:g,endDate:n||g}))},[g,n]),P.jsxRuntimeExports.jsx(Rt.Provider,{value:{activeMonth:ne,activeMonths:W,dateFormat:t||Ae,endDate:D.endDate||null,firstDayOfWeek:_,focusedDate:X||lr,focusedInput:D.focusedInput,goToDate:M,goToNextMonths:H,goToPreviousMonths:A,setFocusedInput:ee,isDateBlocked:Z,isDateFocused:I,isDateHovered:z,withDateRange:c||!1,isDateSelected:De,isFirstOrLastSelectedDate:Ee,maxDate:a,maxYear:i||Et,minDate:s,minYear:u||St,onDateChange:h,onDateFocus:Re,onDateHover:Ue,onDateSelect:Pe,onTimeChange:V,onQuickOptionSelect:E,startDate:D.startDate,onClose:Q,clearDates:O,standalone:k},children:P.jsxRuntimeExports.jsx(It.PopoverRoot,{open:k?!0:void 0,onOpenChange:k?void 0:({open:f})=>{f?m():ee(null)},positioning:{placement:d,sameWidth:b},onExitComplete:k?void 0:()=>{Q()},children:e})})};exports.DateFormats=Xe;exports.DatePickerCalendar=br;exports.DatePickerHeader=Hr;exports.DatePickerProvider=Wr;exports.FocusedInput=J;exports.Ue=sr;exports.addDays=Ut;exports.addMonths=Pt;exports.endOfDay=Qe;exports.isAfter=Ge;exports.today=te;exports.useDatePickerContext=le;exports.xt=Tn;
15
- //# sourceMappingURL=datePicker.provider-DgarjPPd.js.map
@@ -1,2 +0,0 @@
1
- "use strict";const e=require("./jsx-runtime-BjDatQAs.js"),i=require("react"),y=require("./index-BQRnVsAg.js"),H=require("./button.component-DjdgBXDC.js"),ie=require("./icon.component-B1hr5lLa.js"),K=require("./text.component-CeioUl0G.js"),ce=require("./tooltip.component-BkFDi5yK.js"),G=require("./flex-BOU6tYUd.js"),Ue=require("./textInput.component-C1vwy6pL.js"),Xe=require("./spinner.component-DuW1_IWM.js"),Ye=require("./usePortalContentRef-CTrvBQ7I.js"),E=require("./index-Ts8g8jZd.js"),Ze=require("./create-slot-recipe-context-HXE1VazG.js"),et=require("./icons-B6Nwr9di.js"),l=require("./use-locale-context-ym21RUxU.js"),se=require("./index-rSq6Bry6.js"),m=require("./index-CQURjLlA.js"),tt=require("./checkbox.component-CiA3Z1zR.js"),st=t=>t&&t.__esModule?t:{default:t},rt=st(i),[ae,j]=l.createContext({name:"MenuContext",hookName:"useMenuContext",providerName:"<MenuProvider />",strict:!1}),le=i.forwardRef((t,r)=>{const s=j(),o=m.mergeProps(s.getArrowProps(),t);return e.jsxRuntimeExports.jsx(l.ark.div,{...o,ref:r})});le.displayName="MenuArrow";const pe=i.forwardRef((t,r)=>{const s=j(),o=m.mergeProps(s.getArrowTipProps(),t);return e.jsxRuntimeExports.jsx(l.ark.div,{...o,ref:r})});pe.displayName="MenuArrowTip";const[J,ft]=l.createContext({name:"MenuItemContext",hookName:"useMenuItemContext",providerName:"<MenuItemProvider />"}),[Q,xe]=l.createContext({name:"MenuItemPropsContext",hookName:"useMenuItemPropsContext",providerName:"<MenuItemPropsProvider />"}),de=i.forwardRef((t,r)=>{const[s,o]=l.createSplitProps()(t,["checked","closeOnSelect","disabled","onCheckedChange","value","valueText"]),u={...s,type:"checkbox"},p=j(),c=m.mergeProps(p.getOptionItemProps(u),o),a=p.getOptionItemState(u);return e.jsxRuntimeExports.jsx(Q,{value:u,children:e.jsxRuntimeExports.jsx(J,{value:a,children:e.jsxRuntimeExports.jsx(l.ark.div,{...c,ref:r})})})});de.displayName="MenuCheckboxItem";const me=i.forwardRef((t,r)=>{const s=j(),o=E.usePresenceContext(),u=m.mergeProps(s.getContentProps(),o.getPresenceProps(),t);return o.unmounted?null:e.jsxRuntimeExports.jsx(l.ark.div,{...u,ref:l.composeRefs(o.ref,r)})});me.displayName="MenuContent";const je=i.forwardRef((t,r)=>{const s=j(),o=m.mergeProps(s.getContextTriggerProps(),t);return e.jsxRuntimeExports.jsx(l.ark.button,{...o,ref:r})});je.displayName="MenuContextTrigger";const he=i.forwardRef((t,r)=>{const s=j(),o=m.mergeProps(s.getIndicatorProps(),t);return e.jsxRuntimeExports.jsx(l.ark.div,{...o,ref:r})});he.displayName="MenuIndicator";const ge=i.forwardRef((t,r)=>{const[s,o]=l.createSplitProps()(t,["closeOnSelect","disabled","value","valueText","onSelect"]),u=j(),p=m.mergeProps(u.getItemProps(s),o),c=u.getItemState(s);return i.useEffect(()=>u.addItemListener({id:c.id,onSelect:s.onSelect}),[c.id,s.onSelect]),e.jsxRuntimeExports.jsx(Q,{value:s,children:e.jsxRuntimeExports.jsx(J,{value:c,children:e.jsxRuntimeExports.jsx(l.ark.div,{...p,ref:r})})})});ge.displayName="MenuItem";const[fe,Pe]=l.createContext({name:"MenuItemGroupContext",hookName:"useMenuItemGroupContext",providerName:"<MenuItemGroupProvider />"}),Re=i.forwardRef((t,r)=>{const[s,o]=l.createSplitProps()(t,["id"]),u=j(),c={id:i.useId(),...s},a=m.mergeProps(u.getItemGroupProps(c),o);return e.jsxRuntimeExports.jsx(fe,{value:c,children:e.jsxRuntimeExports.jsx(l.ark.div,{...a,ref:r})})});Re.displayName="MenuItemGroup";const Ce=i.forwardRef((t,r)=>{const s=j(),o=Pe(),u=m.mergeProps(s.getItemGroupLabelProps({htmlFor:o.id}),t);return e.jsxRuntimeExports.jsx(l.ark.div,{...u,ref:r})});Ce.displayName="MenuItemGroupLabel";const Me=i.forwardRef((t,r)=>{const s=j(),o=xe(),u=m.mergeProps(s.getItemIndicatorProps(o),t);return e.jsxRuntimeExports.jsx(l.ark.div,{...u,ref:r})});Me.displayName="MenuItemIndicator";const ve=i.forwardRef((t,r)=>{const s=j(),o=xe(),u=m.mergeProps(s.getItemTextProps(o),t);return e.jsxRuntimeExports.jsx(l.ark.div,{...u,ref:r})});ve.displayName="MenuItemText";const Ee=i.forwardRef((t,r)=>{const s=j(),o=m.mergeProps(s.getPositionerProps(),t);return E.usePresenceContext().unmounted?null:e.jsxRuntimeExports.jsx(l.ark.div,{...o,ref:r})});Ee.displayName="MenuPositioner";const Ie=i.forwardRef((t,r)=>{const[s,o]=l.createSplitProps()(t,["closeOnSelect","disabled","value","valueText"]),u=j(),p=Pe(),c={...s,checked:p.value===s.value,type:"radio",onCheckedChange:()=>p.onValueChange?.({value:s.value})},a=m.mergeProps(u.getOptionItemProps(c),o),g=u.getOptionItemState(c);return e.jsxRuntimeExports.jsx(Q,{value:c,children:e.jsxRuntimeExports.jsx(J,{value:g,children:e.jsxRuntimeExports.jsx(l.ark.div,{...a,ref:r})})})});Ie.displayName="MenuRadioItem";const be=i.forwardRef((t,r)=>{const[s,o]=l.createSplitProps()(t,["id","onValueChange","value"]),u=j(),c={id:i.useId(),...s},a=m.mergeProps(u.getItemGroupProps({id:c.id}),o);return e.jsxRuntimeExports.jsx(fe,{value:c,children:e.jsxRuntimeExports.jsx(l.ark.div,{...a,ref:r})})});be.displayName="MenuRadioItemGroup";const ke=t=>{const r=i.useRef(t),s=i.useRef(!1);i.useEffect(()=>{r.current=t}),i.useEffect(()=>{s.current!==!0&&(s.current=!0,r.current())},[])},nt=t=>{const r=i.useId(),{getRootNode:s}=l.useEnvironmentContext(),{dir:o}=l.useLocaleContext(),u={id:r,dir:o,getRootNode:s,...t},p=l.useMachine(se.machine,u);return{api:se.connect(p,l.normalizeProps),service:p}},[Se,we]=l.createContext({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),[Ne,ot]=l.createContext({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),ut=t=>{const[r,s]=E.splitPresenceProps(t),[o,u]=l.createSplitProps()(s,["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]),p=j(),c=we(),{api:a,service:g}=nt(o),S=E.usePresence(m.mergeProps({present:a.open},r));ke(()=>{c&&p&&(p.setChild(g),a.setParent(c))});const w=i.useCallback(()=>p?.getTriggerItemProps(a),[a,p]);return e.jsxRuntimeExports.jsx(Ne,{value:w,children:e.jsxRuntimeExports.jsx(Se,{value:g,children:e.jsxRuntimeExports.jsx(ae,{value:a,children:e.jsxRuntimeExports.jsx(E.PresenceProvider,{value:S,...u})})})})},it=t=>{const r=j(),s=we(),[o,{value:u,children:p}]=E.splitPresenceProps(t),{api:c,service:a}=u,g=E.usePresence(m.mergeProps({present:c.open},o));ke(()=>{s&&r&&(r.setChild(a),c.setParent(s))});const S=i.useCallback(()=>r?.getTriggerItemProps(c),[c,r]);return e.jsxRuntimeExports.jsx(Ne,{value:S,children:e.jsxRuntimeExports.jsx(Se,{value:a,children:e.jsxRuntimeExports.jsx(ae,{value:c,children:e.jsxRuntimeExports.jsx(E.PresenceProvider,{value:g,children:p})})})})},ye=i.forwardRef((t,r)=>{const s=j(),o=m.mergeProps(s.getSeparatorProps(),t);return e.jsxRuntimeExports.jsx(l.ark.hr,{...o,ref:r})});ye.displayName="MenuSeparator";const _e=i.forwardRef((t,r)=>{const s=j(),o=E.usePresenceContext(),u=m.mergeProps({...s.getTriggerProps(),"aria-controls":o.unmounted?void 0:s.getTriggerProps()["aria-controls"]},t);return e.jsxRuntimeExports.jsx(l.ark.button,{...u,ref:r})});_e.displayName="MenuTrigger";const Ae=i.forwardRef((t,r)=>{const s=ot(),o=m.mergeProps(s?.()??{},t);return e.jsxRuntimeExports.jsx(l.ark.div,{...o,ref:r})});Ae.displayName="MenuTriggerItem";const{withRootProvider:Te,withContext:h}=Ze.createSlotRecipeContext({key:"menu"});Te(it);const ct=Te(ut,{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),at=h(_e,"trigger",{forwardAsChild:!0});h(je,"contextTrigger",{forwardAsChild:!0});const lt=h(Ee,"positioner",{forwardAsChild:!0});h(ye,"separator",{forwardAsChild:!0});const pt=h(me,"content",{forwardAsChild:!0}),xt=h(pe,"arrowTip",{forwardAsChild:!0});h(le,"arrow",{forwardAsChild:!0,defaultProps:{children:e.jsxRuntimeExports.jsx(xt,{})}});h(he,"indicator",{forwardAsChild:!0});const dt=h(Re,"itemGroup",{forwardAsChild:!0}),mt=h(Ce,"itemGroupLabel",{forwardAsChild:!0}),re=h(ge,"item",{forwardAsChild:!0}),jt=h(Ae,"item",{forwardAsChild:!0});h(ve,"itemText",{forwardAsChild:!0});h("kbd","itemCommand");h(Me,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:e.jsxRuntimeExports.jsx(et.CheckIcon,{boxSize:"4"})}});h(de,"item",{forwardAsChild:!0});h(be,"itemGroup",{forwardAsChild:!0});h(Ie,"item",{forwardAsChild:!0});const Ge=({hideCaret:t=!1,size:r="md",text:s,textProps:o,variant:u,onClick:p,["data-testid"]:c="kibble-menu-button",...a})=>e.jsxRuntimeExports.jsxs(H.Button,{className:"Menu__Button","data-testid":c,size:r,variant:u,...a,...!s&&t&&{paddingInline:0,paddingBlock:0},onClick:g=>{g.stopPropagation(),p?.(g)},children:[s&&e.jsxRuntimeExports.jsx(K.WrappedText,{className:"Menu__ButtonText","data-testid":`${c}-text`,fontWeight:"semibold",size:r,color:u?"inherit":o?.color||"text.contrast",truncated:!0,...o,children:s}),!t&&e.jsxRuntimeExports.jsx(G.Flex,{className:"Menu__ButtonCaret","data-testid":`${c}-caret`,children:e.jsxRuntimeExports.jsx(ie.Icon,{name:"chevronDown",size:r==="lg"?"sm":"xs"})})]}),ht=({tooltipProps:t,isMenuOpen:r,...s})=>{const[o,u]=i.useState(!1),p=i.useCallback(()=>{r||u(!0)},[r]),c=i.useCallback(()=>{r||u(!1)},[r]);return i.useEffect(()=>{r&&u(!1)},[r]),e.jsxRuntimeExports.jsx(ce.Tooltip,{label:s.text||"",open:o&&!r,...t,children:e.jsxRuntimeExports.jsx(y.Box,{onClick:a=>{a.preventDefault(),a.stopPropagation(),u(!1)},onMouseEnter:p,onMouseLeave:c,children:e.jsxRuntimeExports.jsx(Ge,{...s})})})},gt=({label:t,leftElement:r,onSelect:s,shouldTruncateText:o,type:u="default",variant:p,["data-testid"]:c="kibble-menu-item",...a})=>{const[g,S]=i.useState(!1),w=i.useCallback(()=>{s&&s(a.value)},[s,a.value]);if(u==="submenu"){const{valueText:b,listProps:C,portalled:f=!0,open:I,lazyMount:N=!0,unmountOnExit:M=!0}=a;return e.jsxRuntimeExports.jsx($e,{lazyMount:N,unmountOnExit:M,submenuTrigger:e.jsxRuntimeExports.jsxs(jt,{className:"Menu__Item--Submenu","data-testid":`${c}-submenu`,justifyContent:"space-between","aria-valuetext":b,position:"relative",onClick:()=>{I!==void 0&&s?s(a.value):S(!g)},children:[e.jsxRuntimeExports.jsx(V,{label:t,leftElement:r,shouldTruncateText:o,variant:p}),e.jsxRuntimeExports.jsx(ie.Icon,{name:"chevronRight",size:"sm"})]}),portalled:f,open:I!==void 0?I:g,listProps:C})}if(u==="checkbox"){const{checked:b,value:C,disabled:f,tooltipLabel:I,...N}=a;return e.jsxRuntimeExports.jsxs(re,{className:"Menu__Item--Checkbox","data-testid":`${c}-checkbox`,value:C,closeOnSelect:!1,onSelect:f?void 0:w,gap:3,disabled:f,...N,children:[e.jsxRuntimeExports.jsx(tt.WrappedCheckbox,{checked:!!b,disabled:f,size:"md",fullWidth:!1}),e.jsxRuntimeExports.jsx(V,{label:t,leftElement:r,shouldTruncateText:o,variant:p,tooltipLabel:I})]})}if(u==="default"){const{selected:b=!1,disabled:C,value:f,tooltipLabel:I,...N}=a;return e.jsxRuntimeExports.jsx(re,{className:"Menu__Item--Default","data-testid":`${c}-default`,value:f,onSelect:C?void 0:w,disabled:C,...b&&{bgColor:"background.secondaryAlpha.hover"},...N,children:e.jsxRuntimeExports.jsx(V,{label:t,leftElement:r,shouldTruncateText:o,variant:b?"info":p,tooltipLabel:I})})}return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{})},V=({label:t,leftElement:r,shouldTruncateText:s,variant:o,tooltipLabel:u})=>{const p=e.jsxRuntimeExports.jsxs(G.Flex,{className:"Menu__ItemLabel",alignItems:"center",gap:3,children:[r,typeof t=="string"?e.jsxRuntimeExports.jsx(K.WrappedText,{size:"sm",truncated:s,variant:o,children:t}):t]});return u?e.jsxRuntimeExports.jsx(ce.Tooltip,{label:u,children:p}):p},ne=({groupName:t,hasSelectedItems:r=!1,onToggle:s,["data-testid"]:o="kibble-menu-toggle-buttons"})=>{const u=!!t;return e.jsxRuntimeExports.jsx(y.Box,{className:"Menu__ToggleButtons","data-testid":o,...u&&{textAlign:"right",w:"50%"},children:u?e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:r?e.jsxRuntimeExports.jsx(ue,{hasSelectedItems:r,groupName:t,onToggle:s}):e.jsxRuntimeExports.jsx(oe,{groupName:t,onToggle:s})}):e.jsxRuntimeExports.jsxs(G.Flex,{justifyContent:"space-between",children:[e.jsxRuntimeExports.jsx(oe,{groupName:t,onToggle:s}),e.jsxRuntimeExports.jsx(ue,{hasSelectedItems:r,groupName:t,onToggle:s})]})})},oe=({groupName:t,onToggle:r})=>e.jsxRuntimeExports.jsx(H.Button,{variant:"ghost",size:"xs",onClick:()=>r({groupName:t,clear:!1}),children:"Select All"}),ue=({hasSelectedItems:t,groupName:r,onToggle:s})=>e.jsxRuntimeExports.jsx(H.Button,{variant:"ghostNeutral",iconName:"arrowCircle",size:"xs",disabled:!t,onClick:()=>s({groupName:r,clear:!0}),children:"Clear All"}),$e=({buttonProps:t,listProps:r,positionerProps:s,portalled:o=!1,submenuTrigger:u,lazyMount:p=!0,onOpenChange:c,["data-testid"]:a="kibble-menu",...g})=>{const{contentRef:S}=Ye.usePortalContentRef(),{canSelectAll:w,canSelectGroups:b,emptyState:C="No results found",groupSortOrder:f,loading:I,maxH:N="480px",menuItems:M=[],minW:Oe="240px",onSearch:k,onSelect:L,onSelectAll:U,searchable:q,searchPlaceholder:Be="Search...",shouldTruncateText:Le,...X}=r||{},[qe,Fe]=i.useState(!1),[F,z]=i.useState(""),[$,D]=i.useState(M),Y=i.useMemo(()=>{const n={};return $?.forEach(x=>{const d=x.groupLabel||"default",P=x.type==="checkbox"?"checkbox":"default";n[d]||(n[d]={}),n[d][P]||(n[d][P]=[]),n[d][P].push(x)}),n},[$]),Z=i.useMemo(()=>{const n=Object.entries(Y);return!f||f.length===0?n:n.sort(([x],[d])=>{const P=f.indexOf(x),R=f.indexOf(d);return P!==-1&&R!==-1?P-R:P!==-1?-1:R!==-1?1:0})},[Y,f]),_=i.useMemo(()=>M?.filter(n=>n.type==="checkbox")||[],[M]),W=i.useCallback(n=>_.some(x=>x.value===n&&x.checked),[_]),v=i.useMemo(()=>_.filter(n=>n.checked),[_]),ee=i.useCallback(({groupName:n,clear:x})=>{let d;const P=$.filter(R=>R.type==="checkbox"&&!R.disabled);if(n){const R=P.filter(O=>O.groupLabel===n);d=x?v.filter(O=>O.groupLabel!==n):[...new Set([...v,...R])]}else d=x?[]:P.map(R=>({...R,checked:!0}));console.log("newSelectedItems",d),U?.({allSelectedItems:d})},[U,$,v]),ze=i.useCallback(n=>{if(n.type==="checkbox"){const x=W(n.value)?v.filter(d=>d.value!==n.value):[...v,n];if(n.onSelect){n.onSelect(n.value);return}L?.({item:n,allSelectedItems:x});return}if(n.onSelect){n.onSelect(n.value);return}L?.({item:n,allSelectedItems:[n]})},[L,W,v]),te=i.useCallback((n,x)=>n===""||!n?x:x.filter(d=>!!(typeof d.label=="string"?d.label:d.valueText)?.toLowerCase().includes(n.toLowerCase())),[]),De=i.useCallback(n=>{console.log("e.target.value",n.target.value);const x=n.target.value;console.log("searchInput",x),z(x),k&&k(n)},[k]),We=i.useCallback(()=>{z(""),k&&k({target:{value:""}})},[k]),Ve=i.useCallback(n=>{Fe(n),n||(z(""),D(M)),c&&c({open:n,allSelectedItems:v})},[M,c,v]);return i.useEffect(()=>{D(k?M:te(F,M))},[F,k,te,M]),e.jsxRuntimeExports.jsxs(ct,{lazyMount:p,unmountOnExit:p,onOpenChange:n=>{Ve(n.open)},...g,children:[u||e.jsxRuntimeExports.jsx(at,{asChild:!0,className:"Menu__Trigger","data-testid":`${a}-trigger`,children:t?.showTooltip?e.jsxRuntimeExports.jsx(ht,{isMenuOpen:qe,...t}):e.jsxRuntimeExports.jsx(Ge,{...t})}),e.jsxRuntimeExports.jsx(E.Portal,{disabled:!o,container:S||void 0,children:e.jsxRuntimeExports.jsx(lt,{className:"Menu","data-testid":a,...s,children:e.jsxRuntimeExports.jsxs(pt,{className:"Menu__Content","data-testid":`${a}-content`,maxH:N,minW:Oe,...X,...q&&{pt:"0"},onClick:n=>{n.stopPropagation(),X?.onClick?.(n)},children:[q&&e.jsxRuntimeExports.jsx(y.Box,{className:"Menu__SearchBarContainer","data-testid":`${a}-search-bar-container`,px:3,py:2,position:"sticky",top:0,bg:"background",zIndex:"docked",children:e.jsxRuntimeExports.jsx(Ue.WrappedTextInput,{className:"Menu__SearchBar","data-testid":`${a}-search-bar`,placeholder:Be,onChange:De,size:"sm",value:F,clearable:!0,onClear:We,onKeyDown:n=>{n.code==="Space"&&n.stopPropagation()}})}),w&&e.jsxRuntimeExports.jsx(y.Box,{className:"Menu__CheckboxGroupHeader","data-testid":`${a}-checkbox-group-header`,px:3,mt:q?1:2,children:w&&!!_.length&&e.jsxRuntimeExports.jsx(ne,{onToggle:ee,hasSelectedItems:!!v.length})}),I&&e.jsxRuntimeExports.jsx(G.Flex,{justifyContent:"center",py:5,children:e.jsxRuntimeExports.jsx(Xe.Spinner,{fullScreen:!0})}),e.jsxRuntimeExports.jsx(y.Box,{className:"Menu__List","data-testid":`${a}-list`,children:Z.length?e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:Z.map(([n,x])=>{const d=n==="default",P=Object.keys(x),R=d?rt.default.Fragment:dt,He=x.checkbox?.map(A=>A.value)?.some(A=>v.some(B=>B.value===A&&B.checked));return e.jsxRuntimeExports.jsxs(R,{children:[!d&&e.jsxRuntimeExports.jsx(mt,{children:e.jsxRuntimeExports.jsxs(G.Flex,{alignItems:"center",justifyContent:"space-between",children:[n,b&&P.includes("checkbox")&&e.jsxRuntimeExports.jsx(ne,{groupName:n,onToggle:ee,hasSelectedItems:He})]})}),Object.entries(x).map(([A,B])=>B.map((T,Ke)=>{const{groupLabel:Je,...Qe}=T;return e.jsxRuntimeExports.jsx(gt,{...Qe,shouldTruncateText:Le,...T.type==="checkbox"&&{checked:W(T.value)},"data-testid":`${a}-item-${T.label}`,onSelect:()=>ze(T)},`menu-item-${Je}-${A}-${Ke}`)}))]},n)})}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsx(y.Box,{p:3,children:typeof C=="string"?e.jsxRuntimeExports.jsx(y.Box,{textAlign:"center",children:e.jsxRuntimeExports.jsx(K.WrappedText,{size:"sm",variant:"subtle","data-testid":`${a}-empty-state`,children:C})}):C})})})]})})})]})};exports.Menu=$e;
2
- //# sourceMappingURL=menu.component-D4-4xRDj.js.map