@televet/kibble-ui 4.0.0-beta.108 → 4.0.0-beta.11

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 (1164) hide show
  1. package/README.md +0 -40
  2. package/dist/chunks/alert.types-Bnf8isvq.js +2 -0
  3. package/dist/chunks/alert.types-Bnf8isvq.js.map +1 -0
  4. package/dist/chunks/alert.types-kskv5PHB.js +170 -0
  5. package/dist/chunks/alert.types-kskv5PHB.js.map +1 -0
  6. package/dist/chunks/avatar.component-Coq-0l7p.js +2 -0
  7. package/dist/chunks/avatar.component-Coq-0l7p.js.map +1 -0
  8. package/dist/chunks/avatar.component-DzvE2D-d.js +307 -0
  9. package/dist/chunks/avatar.component-DzvE2D-d.js.map +1 -0
  10. package/dist/chunks/avatar.types-Bmt5Uhfb.js.map +1 -1
  11. package/dist/chunks/avatar.types-LQ1Bn8a3.js +13 -0
  12. package/dist/chunks/avatar.types-LQ1Bn8a3.js.map +1 -0
  13. package/dist/chunks/avatarGroup.component-D-U0aMDv.js +71 -0
  14. package/dist/chunks/avatarGroup.component-D-U0aMDv.js.map +1 -0
  15. package/dist/chunks/avatarGroup.component-DES1ekL9.js +2 -0
  16. package/dist/chunks/avatarGroup.component-DES1ekL9.js.map +1 -0
  17. package/dist/chunks/{button.component-Br9jCpBx.js → button.component-BiW8RE1U.js} +10 -10
  18. package/dist/chunks/button.component-BiW8RE1U.js.map +1 -0
  19. package/dist/chunks/button.component-Dufh_y5v.js +2 -0
  20. package/dist/chunks/button.component-Dufh_y5v.js.map +1 -0
  21. package/dist/chunks/{button.types-BKXZNvN1.js → button.types-CujqF5RD.js} +7 -9
  22. package/dist/chunks/button.types-CujqF5RD.js.map +1 -0
  23. package/dist/chunks/{button.types-Bl1awbi0.js → button.types-DsLMGraz.js} +2 -2
  24. package/dist/chunks/button.types-DsLMGraz.js.map +1 -0
  25. package/dist/chunks/buttonGroup.component-DcCHtB7Q.js +67 -0
  26. package/dist/chunks/buttonGroup.component-DcCHtB7Q.js.map +1 -0
  27. package/dist/chunks/buttonGroup.component-sM0NngWF.js +2 -0
  28. package/dist/chunks/buttonGroup.component-sM0NngWF.js.map +1 -0
  29. package/dist/chunks/card.component-HX-4Y0j7.js +51 -0
  30. package/dist/chunks/card.component-HX-4Y0j7.js.map +1 -0
  31. package/dist/chunks/card.component-ZIoJIWVV.js +2 -0
  32. package/dist/chunks/card.component-ZIoJIWVV.js.map +1 -0
  33. package/dist/chunks/{theme.provider-CeFyVJrz.js → chakra-BqBkjpvZ.js} +11308 -10645
  34. package/dist/chunks/chakra-BqBkjpvZ.js.map +1 -0
  35. package/dist/chunks/chakra-DmF8Cxqs.js +5 -0
  36. package/dist/chunks/chakra-DmF8Cxqs.js.map +1 -0
  37. package/dist/chunks/characterCounter.component-BXxyn_IB.js +2 -0
  38. package/dist/chunks/characterCounter.component-BXxyn_IB.js.map +1 -0
  39. package/dist/chunks/characterCounter.component-DhiMcztY.js +108 -0
  40. package/dist/chunks/characterCounter.component-DhiMcztY.js.map +1 -0
  41. package/dist/chunks/checkbox.component-DQVpdkqO.js +2 -0
  42. package/dist/chunks/checkbox.component-DQVpdkqO.js.map +1 -0
  43. package/dist/chunks/checkbox.component-DgyH37fL.js +90 -0
  44. package/dist/chunks/checkbox.component-DgyH37fL.js.map +1 -0
  45. package/dist/chunks/checkbox.records-DJfdKuOe.js +2 -0
  46. package/dist/chunks/checkbox.records-DJfdKuOe.js.map +1 -0
  47. package/dist/chunks/checkbox.records-JWbKQ684.js +14 -0
  48. package/dist/chunks/checkbox.records-JWbKQ684.js.map +1 -0
  49. package/dist/chunks/checkboxGroup.component-C8cndZPg.js +51 -0
  50. package/dist/chunks/checkboxGroup.component-C8cndZPg.js.map +1 -0
  51. package/dist/chunks/checkboxGroup.component-CcjCexJ4.js +2 -0
  52. package/dist/chunks/checkboxGroup.component-CcjCexJ4.js.map +1 -0
  53. package/dist/chunks/conversationCard.component-CcWQpwrW.js +2 -0
  54. package/dist/chunks/conversationCard.component-CcWQpwrW.js.map +1 -0
  55. package/dist/chunks/{conversationCard.component-aCCQmc5q.js → conversationCard.component-DKIHpfpL.js} +173 -120
  56. package/dist/chunks/conversationCard.component-DKIHpfpL.js.map +1 -0
  57. package/dist/chunks/date-1NFv48Qu.js +3598 -0
  58. package/dist/chunks/date-1NFv48Qu.js.map +1 -0
  59. package/dist/chunks/date-Du64Exix.js +15 -0
  60. package/dist/chunks/date-Du64Exix.js.map +1 -0
  61. package/dist/chunks/datePicker.component-BthgWsMj.js +2 -0
  62. package/dist/chunks/datePicker.component-BthgWsMj.js.map +1 -0
  63. package/dist/chunks/datePicker.component-Q_KcgvIw.js +749 -0
  64. package/dist/chunks/datePicker.component-Q_KcgvIw.js.map +1 -0
  65. package/dist/chunks/dnd-4IMP_kRN.js +6 -0
  66. package/dist/chunks/dnd-4IMP_kRN.js.map +1 -0
  67. package/dist/chunks/{sortableList.component-ygB3YKGn.js → dnd-DDR6viHX.js} +887 -978
  68. package/dist/chunks/dnd-DDR6viHX.js.map +1 -0
  69. package/dist/chunks/heading.component-B8niLTxz.js +10 -0
  70. package/dist/chunks/heading.component-B8niLTxz.js.map +1 -0
  71. package/dist/chunks/heading.component-CExbjSBi.js +2 -0
  72. package/dist/chunks/heading.component-CExbjSBi.js.map +1 -0
  73. package/dist/chunks/icon.component-B-BWWGO3.js +42 -0
  74. package/dist/chunks/icon.component-B-BWWGO3.js.map +1 -0
  75. package/dist/chunks/icon.component-Bmtf4XKw.js +2 -0
  76. package/dist/chunks/icon.component-Bmtf4XKw.js.map +1 -0
  77. package/dist/chunks/icon.types-2obj_NKG.js.map +1 -1
  78. package/dist/chunks/icon.types-DLbVfMjG.js.map +1 -1
  79. package/dist/chunks/link.component-COhBuuX3.js +58 -0
  80. package/dist/chunks/link.component-COhBuuX3.js.map +1 -0
  81. package/dist/chunks/link.component-DZnXQz1W.js +2 -0
  82. package/dist/chunks/link.component-DZnXQz1W.js.map +1 -0
  83. package/dist/chunks/menu.component-BEj878EN.js +2 -0
  84. package/dist/chunks/menu.component-BEj878EN.js.map +1 -0
  85. package/dist/chunks/menu.component-CR9SH_jk.js +390 -0
  86. package/dist/chunks/menu.component-CR9SH_jk.js.map +1 -0
  87. package/dist/chunks/modal.types-ChWBgALC.js +146 -0
  88. package/dist/chunks/modal.types-ChWBgALC.js.map +1 -0
  89. package/dist/chunks/modal.types-CofEmV4v.js +2 -0
  90. package/dist/chunks/modal.types-CofEmV4v.js.map +1 -0
  91. package/dist/chunks/notificationCounter.component-BH6anjzq.js +2 -0
  92. package/dist/chunks/notificationCounter.component-BH6anjzq.js.map +1 -0
  93. package/dist/chunks/{notificationCounter.component-BzhAKrKR.js → notificationCounter.component-CSuqzMTF.js} +15 -10
  94. package/dist/chunks/notificationCounter.component-CSuqzMTF.js.map +1 -0
  95. package/dist/chunks/popover.component-C1e_jTLD.js +2 -0
  96. package/dist/chunks/popover.component-C1e_jTLD.js.map +1 -0
  97. package/dist/chunks/popover.component-CzYfOF7z.js +221 -0
  98. package/dist/chunks/popover.component-CzYfOF7z.js.map +1 -0
  99. package/dist/chunks/popover.recipe-DnCuZJd3.js +123 -0
  100. package/dist/chunks/popover.recipe-DnCuZJd3.js.map +1 -0
  101. package/dist/chunks/popover.recipe-Pfz3evii.js +2 -0
  102. package/dist/chunks/popover.recipe-Pfz3evii.js.map +1 -0
  103. package/dist/chunks/popover.types-BF2KRf_I.js.map +1 -1
  104. package/dist/chunks/popover.types-C-V7Diw4.js +12 -0
  105. package/dist/chunks/popover.types-C-V7Diw4.js.map +1 -0
  106. package/dist/chunks/radio.records-BxCn4oUd.js +2 -0
  107. package/dist/chunks/radio.records-BxCn4oUd.js.map +1 -0
  108. package/dist/chunks/radio.records-Cc3kP4Vn.js +14 -0
  109. package/dist/chunks/radio.records-Cc3kP4Vn.js.map +1 -0
  110. package/dist/chunks/radioGroup.component-B1ZdhI8z.js +2 -0
  111. package/dist/chunks/radioGroup.component-B1ZdhI8z.js.map +1 -0
  112. package/dist/chunks/radioGroup.component-CsmHziwM.js +151 -0
  113. package/dist/chunks/radioGroup.component-CsmHziwM.js.map +1 -0
  114. package/dist/chunks/ratingDots.component-DFHojz_X.js +155 -0
  115. package/dist/chunks/ratingDots.component-DFHojz_X.js.map +1 -0
  116. package/dist/chunks/ratingDots.component-HugaFu0D.js +2 -0
  117. package/dist/chunks/ratingDots.component-HugaFu0D.js.map +1 -0
  118. package/dist/chunks/select.component-HI7aJx11.js +129 -0
  119. package/dist/chunks/select.component-HI7aJx11.js.map +1 -0
  120. package/dist/chunks/select.component-h5lPMmWB.js +2 -0
  121. package/dist/chunks/select.component-h5lPMmWB.js.map +1 -0
  122. package/dist/chunks/sortableList.component-B2hSRuex.js +2 -0
  123. package/dist/chunks/sortableList.component-B2hSRuex.js.map +1 -0
  124. package/dist/chunks/sortableList.component-DAIHsGEA.js +145 -0
  125. package/dist/chunks/sortableList.component-DAIHsGEA.js.map +1 -0
  126. package/dist/chunks/spinner.component-CUuidnSK.js +2 -0
  127. package/dist/chunks/spinner.component-CUuidnSK.js.map +1 -0
  128. package/dist/chunks/{spinner.component-gmb3jWCv.js → spinner.component-D5tkelNc.js} +19 -21
  129. package/dist/chunks/spinner.component-D5tkelNc.js.map +1 -0
  130. package/dist/chunks/spinner.types-BCLN5-H2.js.map +1 -1
  131. package/dist/chunks/spinner.types-g7cTFJkb.js.map +1 -1
  132. package/dist/chunks/styledAvatar.types-Cj3j5vXC.js +2 -0
  133. package/dist/chunks/styledAvatar.types-Cj3j5vXC.js.map +1 -0
  134. package/dist/chunks/{styledAvatar.types-BlkNvQyA.js → styledAvatar.types-DbSO8s7o.js} +19 -6
  135. package/dist/chunks/styledAvatar.types-DbSO8s7o.js.map +1 -0
  136. package/dist/chunks/switch.component-B1fXLRiO.js +53 -0
  137. package/dist/chunks/switch.component-B1fXLRiO.js.map +1 -0
  138. package/dist/chunks/switch.component-PH9nS7eN.js +2 -0
  139. package/dist/chunks/switch.component-PH9nS7eN.js.map +1 -0
  140. package/dist/chunks/tabs.component-6iPTLCx6.js +2 -0
  141. package/dist/chunks/tabs.component-6iPTLCx6.js.map +1 -0
  142. package/dist/chunks/tabs.component-DaUZITBw.js +87 -0
  143. package/dist/chunks/tabs.component-DaUZITBw.js.map +1 -0
  144. package/dist/chunks/tag.component-A__B03TA.js +66 -0
  145. package/dist/chunks/tag.component-A__B03TA.js.map +1 -0
  146. package/dist/chunks/tag.component-BjOfy3Bw.js +2 -0
  147. package/dist/chunks/tag.component-BjOfy3Bw.js.map +1 -0
  148. package/dist/chunks/tag.types-B-pzEt1I.js.map +1 -1
  149. package/dist/chunks/tag.types-BnDFgTvb.js.map +1 -1
  150. package/dist/chunks/tagBlock.component-Bx_hcjU4.js +2 -0
  151. package/dist/chunks/tagBlock.component-Bx_hcjU4.js.map +1 -0
  152. package/dist/chunks/{tagBlock.component-c3i2tk5Y.js → tagBlock.component-Ch60_R7X.js} +36 -20
  153. package/dist/chunks/tagBlock.component-Ch60_R7X.js.map +1 -0
  154. package/dist/chunks/text.component-CBa_saMP.js +2 -0
  155. package/dist/chunks/text.component-CBa_saMP.js.map +1 -0
  156. package/dist/chunks/text.component-XYjOAc2s.js +10 -0
  157. package/dist/chunks/text.component-XYjOAc2s.js.map +1 -0
  158. package/dist/chunks/textInput.component-CdPvTnhj.js +2 -0
  159. package/dist/chunks/textInput.component-CdPvTnhj.js.map +1 -0
  160. package/dist/chunks/textInput.component-LjDvSnBy.js +98 -0
  161. package/dist/chunks/textInput.component-LjDvSnBy.js.map +1 -0
  162. package/dist/chunks/textarea.component-C7l9zJKx.js +51 -0
  163. package/dist/chunks/textarea.component-C7l9zJKx.js.map +1 -0
  164. package/dist/chunks/textarea.component-CKEdjCAq.js +2 -0
  165. package/dist/chunks/textarea.component-CKEdjCAq.js.map +1 -0
  166. package/dist/chunks/timePicker.component-BLYPjS1u.js +2 -0
  167. package/dist/chunks/timePicker.component-BLYPjS1u.js.map +1 -0
  168. package/dist/chunks/timePicker.component-DFT36RN_.js +246 -0
  169. package/dist/chunks/timePicker.component-DFT36RN_.js.map +1 -0
  170. package/dist/chunks/timeRange.component-CzJjkQzN.js +2 -0
  171. package/dist/chunks/timeRange.component-CzJjkQzN.js.map +1 -0
  172. package/dist/chunks/timeRange.component-KETq7cDb.js +17 -0
  173. package/dist/chunks/timeRange.component-KETq7cDb.js.map +1 -0
  174. package/dist/chunks/timestamp.component-CuqY4euh.js +2 -0
  175. package/dist/chunks/timestamp.component-CuqY4euh.js.map +1 -0
  176. package/dist/chunks/timestamp.component-D764INLm.js +37 -0
  177. package/dist/chunks/timestamp.component-D764INLm.js.map +1 -0
  178. package/dist/chunks/tooltip.component-C3v2m2T2.js +70 -0
  179. package/dist/chunks/tooltip.component-C3v2m2T2.js.map +1 -0
  180. package/dist/chunks/tooltip.component-qWFa28S5.js +2 -0
  181. package/dist/chunks/tooltip.component-qWFa28S5.js.map +1 -0
  182. package/dist/chunks/typography-Cqrokog3.js.map +1 -1
  183. package/dist/chunks/typography-CtiaGoJG.js.map +1 -1
  184. package/dist/chunks/typography.records-BPYXVuvi.js +2 -0
  185. package/dist/chunks/typography.records-BPYXVuvi.js.map +1 -0
  186. package/dist/chunks/typography.records-CG4wIBxE.js +24 -0
  187. package/dist/chunks/typography.records-CG4wIBxE.js.map +1 -0
  188. package/dist/chunks/useIconTextSizeMap-BK-pUrQv.js.map +1 -1
  189. package/dist/chunks/useIconTextSizeMap-BXmABb54.js.map +1 -1
  190. package/dist/chunks/vendor-BBfll6i3.js +11757 -0
  191. package/dist/chunks/vendor-BBfll6i3.js.map +1 -0
  192. package/dist/chunks/vendor-D-x6W6ez.js +57 -0
  193. package/dist/chunks/vendor-D-x6W6ez.js.map +1 -0
  194. package/dist/chunks/withFormControl-C7uVEpxe.js +2 -0
  195. package/dist/chunks/withFormControl-C7uVEpxe.js.map +1 -0
  196. package/dist/chunks/withFormControl-DSNvvAPD.js +149 -0
  197. package/dist/chunks/withFormControl-DSNvvAPD.js.map +1 -0
  198. package/dist/chunks/withTruncation-BskZBBVs.js +2 -0
  199. package/dist/chunks/withTruncation-BskZBBVs.js.map +1 -0
  200. package/dist/chunks/{withTruncation-Do7RgFZB.js → withTruncation-C2xFKhgB.js} +28 -21
  201. package/dist/chunks/withTruncation-C2xFKhgB.js.map +1 -0
  202. package/dist/cjs/components/Alert/index.cjs +1 -1
  203. package/dist/cjs/components/Avatar/index.cjs +1 -1
  204. package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
  205. package/dist/cjs/components/Button/index.cjs +1 -1
  206. package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
  207. package/dist/cjs/components/Card/index.cjs +1 -1
  208. package/dist/cjs/components/Card/index.cjs.map +1 -1
  209. package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
  210. package/dist/cjs/components/Checkbox/index.cjs +1 -1
  211. package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
  212. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  213. package/dist/cjs/components/Heading/index.cjs +1 -1
  214. package/dist/cjs/components/Icon/generated/index.cjs +1 -1
  215. package/dist/cjs/components/Icon/generated/index.cjs.map +1 -1
  216. package/dist/cjs/components/Icon/index.cjs +1 -1
  217. package/dist/cjs/components/Link/index.cjs +1 -1
  218. package/dist/cjs/components/Menu/index.cjs +1 -1
  219. package/dist/cjs/components/Modal/index.cjs +1 -1
  220. package/dist/cjs/components/NotificationCounter/index.cjs +1 -1
  221. package/dist/cjs/components/NotificationCounter/index.cjs.map +1 -1
  222. package/dist/cjs/components/Picture/index.cjs +1 -1
  223. package/dist/cjs/components/Picture/index.cjs.map +1 -1
  224. package/dist/cjs/components/Popover/index.cjs +1 -1
  225. package/dist/cjs/components/RadioGroup/index.cjs +1 -1
  226. package/dist/cjs/components/RatingDots/index.cjs +1 -1
  227. package/dist/cjs/components/Select/index.cjs +1 -1
  228. package/dist/cjs/components/SortableList/index.cjs +1 -1
  229. package/dist/cjs/components/Spinner/index.cjs +1 -1
  230. package/dist/cjs/components/Swatch/index.cjs +1 -1
  231. package/dist/cjs/components/Swatch/index.cjs.map +1 -1
  232. package/dist/cjs/components/Switch/index.cjs +1 -1
  233. package/dist/cjs/components/Tabs/index.cjs +1 -1
  234. package/dist/cjs/components/Tag/index.cjs +1 -1
  235. package/dist/cjs/components/Text/index.cjs +1 -1
  236. package/dist/cjs/components/TextInput/index.cjs +1 -1
  237. package/dist/cjs/components/Textarea/index.cjs +1 -1
  238. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  239. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  240. package/dist/cjs/components/Tooltip/index.cjs +1 -1
  241. package/dist/cjs/components/index.cjs +1 -1
  242. package/dist/cjs/hocs/index.cjs +1 -1
  243. package/dist/cjs/hocs/index.cjs.map +1 -1
  244. package/dist/cjs/hooks/index.cjs +1 -1
  245. package/dist/cjs/hooks/index.cjs.map +1 -1
  246. package/dist/cjs/index.cjs +1 -1
  247. package/dist/cjs/{components → patterns}/ConversationCard/index.cjs +1 -1
  248. package/dist/cjs/{components → patterns}/StyledAvatar/index.cjs +1 -1
  249. package/dist/cjs/{components → patterns}/TagBlock/index.cjs +1 -1
  250. package/dist/cjs/{components → patterns}/Timestamp/index.cjs +1 -1
  251. package/dist/cjs/patterns/index.cjs +2 -0
  252. package/dist/cjs/shared/types/index.cjs +1 -1
  253. package/dist/cjs/shared/types/index.cjs.map +1 -1
  254. package/dist/cjs/theme/index.cjs +23 -1
  255. package/dist/cjs/theme/index.cjs.map +1 -1
  256. package/dist/cjs/theme/semanticTokens/index.cjs.map +1 -1
  257. package/dist/cjs/theme/tokens/colors/index.cjs.map +1 -1
  258. package/dist/esm/components/Alert/index.js +1 -1
  259. package/dist/esm/components/Avatar/index.js +2 -2
  260. package/dist/esm/components/AvatarGroup/index.js +1 -1
  261. package/dist/esm/components/Button/index.js +2 -2
  262. package/dist/esm/components/ButtonGroup/index.js +1 -1
  263. package/dist/esm/components/Card/index.js +4 -4
  264. package/dist/esm/components/Card/index.js.map +1 -1
  265. package/dist/esm/components/CharacterCounter/index.js +1 -1
  266. package/dist/esm/components/Checkbox/index.js +1 -1
  267. package/dist/esm/components/CheckboxGroup/index.js +1 -1
  268. package/dist/esm/components/DatePicker/index.js +1 -1
  269. package/dist/esm/components/Heading/index.js +1 -1
  270. package/dist/esm/components/Icon/generated/index.js +1632 -401
  271. package/dist/esm/components/Icon/generated/index.js.map +1 -1
  272. package/dist/esm/components/Icon/index.js +1 -1
  273. package/dist/esm/components/Link/index.js +1 -1
  274. package/dist/esm/components/Menu/index.js +1 -1
  275. package/dist/esm/components/Modal/index.js +1 -1
  276. package/dist/esm/components/NotificationCounter/index.js +9 -4
  277. package/dist/esm/components/NotificationCounter/index.js.map +1 -1
  278. package/dist/esm/components/Picture/index.js +16 -1
  279. package/dist/esm/components/Picture/index.js.map +1 -1
  280. package/dist/esm/components/Popover/index.js +2 -2
  281. package/dist/esm/components/RadioGroup/index.js +1 -1
  282. package/dist/esm/components/RatingDots/index.js +1 -1
  283. package/dist/esm/components/Select/index.js +1 -1
  284. package/dist/esm/components/SortableList/index.js +1 -1
  285. package/dist/esm/components/Spinner/index.js +1 -1
  286. package/dist/esm/components/Swatch/index.js +62 -3
  287. package/dist/esm/components/Swatch/index.js.map +1 -1
  288. package/dist/esm/components/Switch/index.js +1 -1
  289. package/dist/esm/components/Tabs/index.js +1 -1
  290. package/dist/esm/components/Tag/index.js +1 -1
  291. package/dist/esm/components/Text/index.js +1 -1
  292. package/dist/esm/components/TextInput/index.js +1 -1
  293. package/dist/esm/components/Textarea/index.js +1 -1
  294. package/dist/esm/components/TimePicker/index.js +1 -1
  295. package/dist/esm/components/TimeRange/index.js +1 -1
  296. package/dist/esm/components/Tooltip/index.js +1 -1
  297. package/dist/esm/components/index.js +94 -118
  298. package/dist/esm/components/index.js.map +1 -1
  299. package/dist/esm/hocs/index.js +35 -4
  300. package/dist/esm/hocs/index.js.map +1 -1
  301. package/dist/esm/hooks/index.js +17 -8
  302. package/dist/esm/hooks/index.js.map +1 -1
  303. package/dist/esm/index.js +100 -143
  304. package/dist/esm/index.js.map +1 -1
  305. package/dist/esm/{components → patterns}/ConversationCard/index.js +1 -1
  306. package/dist/esm/{components → patterns}/StyledAvatar/index.js +1 -1
  307. package/dist/esm/{components → patterns}/TagBlock/index.js +1 -1
  308. package/dist/esm/patterns/Timestamp/index.js +5 -0
  309. package/dist/esm/patterns/index.js +13 -0
  310. package/dist/esm/patterns/index.js.map +1 -0
  311. package/dist/esm/shared/types/index.js +15 -6
  312. package/dist/esm/shared/types/index.js.map +1 -1
  313. package/dist/esm/theme/index.js +2607 -4
  314. package/dist/esm/theme/index.js.map +1 -1
  315. package/dist/esm/theme/semanticTokens/index.js.map +1 -1
  316. package/dist/esm/theme/tokens/colors/index.js.map +1 -1
  317. package/dist/types/components/Alert/alert.component.d.ts +13 -5
  318. package/dist/types/components/Alert/alert.recipe.d.ts +1 -1
  319. package/dist/types/components/Alert/alert.records.d.ts +5 -0
  320. package/dist/types/components/Alert/components/AlertButton/alertButton.component.d.ts +1 -1
  321. package/dist/types/components/Alert.d.ts +2 -0
  322. package/dist/types/components/Avatar/avatar.recipe.d.ts +2 -2
  323. package/dist/types/components/Avatar/components/AvatarBadge/avatarBadge.component.d.ts +1 -1
  324. package/dist/types/components/Avatar/components/AvatarBadge/avatarBadge.types.d.ts +1 -1
  325. package/dist/types/components/Avatar.d.ts +2 -0
  326. package/dist/types/components/AvatarGroup.d.ts +2 -0
  327. package/dist/types/components/Button/button.component.d.ts +3 -2
  328. package/dist/types/components/Button/button.recipe.d.ts +1 -1
  329. package/dist/types/components/Button/button.types.d.ts +2 -2
  330. package/dist/types/components/Button.d.ts +2 -0
  331. package/dist/types/components/ButtonGroup/buttonGroup.types.d.ts +1 -1
  332. package/dist/types/components/ButtonGroup.d.ts +2 -0
  333. package/dist/types/components/Card/card.component.d.ts +1 -1
  334. package/dist/types/components/Card.d.ts +2 -0
  335. package/dist/types/components/CharacterCounter.d.ts +2 -0
  336. package/dist/types/components/Checkbox/checkbox.component.d.ts +3 -4
  337. package/dist/types/components/Checkbox/checkbox.recipe.d.ts +1 -1
  338. package/dist/types/components/Checkbox.d.ts +2 -0
  339. package/dist/types/components/CheckboxGroup/checkboxGroup.component.d.ts +1 -1
  340. package/dist/types/components/CheckboxGroup.d.ts +2 -0
  341. package/dist/types/components/DatePicker/components/DatePickerDay/datePickerCalendarDay.component.d.ts +1 -1
  342. package/dist/types/components/DatePicker/components/DatePickerDay/datePickerCalendarDay.recipe.d.ts +1 -1
  343. package/dist/types/components/DatePicker/components/DatePickerDay/datePickerCalendarDay.types.d.ts +1 -1
  344. package/dist/types/components/DatePicker/components/DatePickerInput/datePickerInput.component.d.ts +2 -2
  345. package/dist/types/components/DatePicker/components/DatePickerMonth/datePickerCalendarMonth.component.d.ts +1 -1
  346. package/dist/types/components/DatePicker/context/datePicker.context.d.ts +1 -1
  347. package/dist/types/components/DatePicker/datePicker.component.d.ts +1 -1
  348. package/dist/types/components/DatePicker/datePicker.types.d.ts +3 -3
  349. package/dist/types/components/DatePicker.d.ts +2 -0
  350. package/dist/types/components/Heading/heading.component.d.ts +2 -1
  351. package/dist/types/components/Heading/heading.types.d.ts +1 -1
  352. package/dist/types/components/Heading.d.ts +2 -0
  353. package/dist/types/components/Icon/generated/AlertCircle.d.ts +1 -1
  354. package/dist/types/components/Icon/generated/AnimalBird.d.ts +1 -1
  355. package/dist/types/components/Icon/generated/AnimalCat.d.ts +1 -1
  356. package/dist/types/components/Icon/generated/AnimalCow.d.ts +1 -1
  357. package/dist/types/components/Icon/generated/AnimalDog.d.ts +1 -1
  358. package/dist/types/components/Icon/generated/AnimalHorse.d.ts +1 -1
  359. package/dist/types/components/Icon/generated/AnimalMouse.d.ts +1 -1
  360. package/dist/types/components/Icon/generated/AnimalPig.d.ts +1 -1
  361. package/dist/types/components/Icon/generated/AnimalSnake.d.ts +1 -1
  362. package/dist/types/components/Icon/generated/Archive.d.ts +1 -1
  363. package/dist/types/components/Icon/generated/ArrowCircle.d.ts +1 -1
  364. package/dist/types/components/Icon/generated/ArrowDown.d.ts +1 -1
  365. package/dist/types/components/Icon/generated/ArrowDownRight.d.ts +1 -1
  366. package/dist/types/components/Icon/generated/ArrowLeft.d.ts +1 -1
  367. package/dist/types/components/Icon/generated/ArrowRight.d.ts +1 -1
  368. package/dist/types/components/Icon/generated/ArrowUp.d.ts +1 -1
  369. package/dist/types/components/Icon/generated/ArrowsIn.d.ts +1 -1
  370. package/dist/types/components/Icon/generated/ArrowsOut.d.ts +1 -1
  371. package/dist/types/components/Icon/generated/Article.d.ts +1 -1
  372. package/dist/types/components/Icon/generated/Award.d.ts +1 -1
  373. package/dist/types/components/Icon/generated/Bank.d.ts +1 -1
  374. package/dist/types/components/Icon/generated/Bell.d.ts +1 -1
  375. package/dist/types/components/Icon/generated/BellCancel.d.ts +1 -1
  376. package/dist/types/components/Icon/generated/Bone.d.ts +1 -1
  377. package/dist/types/components/Icon/generated/Bookmark.d.ts +1 -1
  378. package/dist/types/components/Icon/generated/BulkSelect.d.ts +1 -1
  379. package/dist/types/components/Icon/generated/Buttons.d.ts +1 -1
  380. package/dist/types/components/Icon/generated/CalendarCheck.d.ts +1 -1
  381. package/dist/types/components/Icon/generated/CalendarDate.d.ts +1 -1
  382. package/dist/types/components/Icon/generated/CalendarInfo.d.ts +1 -1
  383. package/dist/types/components/Icon/generated/CalendarPen.d.ts +1 -1
  384. package/dist/types/components/Icon/generated/CalendarPlus.d.ts +1 -1
  385. package/dist/types/components/Icon/generated/Camera.d.ts +1 -1
  386. package/dist/types/components/Icon/generated/CameraOff.d.ts +1 -1
  387. package/dist/types/components/Icon/generated/Cancel.d.ts +1 -1
  388. package/dist/types/components/Icon/generated/CaretDown.d.ts +1 -1
  389. package/dist/types/components/Icon/generated/CaretUp.d.ts +1 -1
  390. package/dist/types/components/Icon/generated/Cellphone.d.ts +1 -1
  391. package/dist/types/components/Icon/generated/CellphoneCancel.d.ts +1 -1
  392. package/dist/types/components/Icon/generated/ChainLink.d.ts +1 -1
  393. package/dist/types/components/Icon/generated/ChatBubble.d.ts +1 -1
  394. package/dist/types/components/Icon/generated/Checkmark.d.ts +1 -1
  395. package/dist/types/components/Icon/generated/CheckmarkBox.d.ts +1 -1
  396. package/dist/types/components/Icon/generated/CheckmarkCircle.d.ts +1 -1
  397. package/dist/types/components/Icon/generated/ChevronDown.d.ts +1 -1
  398. package/dist/types/components/Icon/generated/ChevronLeft.d.ts +1 -1
  399. package/dist/types/components/Icon/generated/ChevronRight.d.ts +1 -1
  400. package/dist/types/components/Icon/generated/ChevronUp.d.ts +1 -1
  401. package/dist/types/components/Icon/generated/Clinic.d.ts +1 -1
  402. package/dist/types/components/Icon/generated/Clock.d.ts +1 -1
  403. package/dist/types/components/Icon/generated/Close.d.ts +1 -1
  404. package/dist/types/components/Icon/generated/CloseCircle.d.ts +1 -1
  405. package/dist/types/components/Icon/generated/CloseCircleSolid.d.ts +1 -1
  406. package/dist/types/components/Icon/generated/Code.d.ts +1 -1
  407. package/dist/types/components/Icon/generated/CreditCard.d.ts +1 -1
  408. package/dist/types/components/Icon/generated/CreditCardLogoAmex.d.ts +1 -1
  409. package/dist/types/components/Icon/generated/CreditCardLogoDiners.d.ts +1 -1
  410. package/dist/types/components/Icon/generated/CreditCardLogoDiscover.d.ts +1 -1
  411. package/dist/types/components/Icon/generated/CreditCardLogoGeneric.d.ts +1 -1
  412. package/dist/types/components/Icon/generated/CreditCardLogoJcb.d.ts +1 -1
  413. package/dist/types/components/Icon/generated/CreditCardLogoMastercard.d.ts +1 -1
  414. package/dist/types/components/Icon/generated/CreditCardLogoUnionpay.d.ts +1 -1
  415. package/dist/types/components/Icon/generated/CreditCardLogoVisa.d.ts +1 -1
  416. package/dist/types/components/Icon/generated/Cut.d.ts +1 -1
  417. package/dist/types/components/Icon/generated/Dollar.d.ts +1 -1
  418. package/dist/types/components/Icon/generated/DollarCircle.d.ts +1 -1
  419. package/dist/types/components/Icon/generated/DotsHorizontal.d.ts +1 -1
  420. package/dist/types/components/Icon/generated/DotsVertical.d.ts +1 -1
  421. package/dist/types/components/Icon/generated/DoubleArrowCircle.d.ts +1 -1
  422. package/dist/types/components/Icon/generated/Download.d.ts +1 -1
  423. package/dist/types/components/Icon/generated/EmailSend.d.ts +1 -1
  424. package/dist/types/components/Icon/generated/Envelope.d.ts +1 -1
  425. package/dist/types/components/Icon/generated/EnvelopeCancel.d.ts +1 -1
  426. package/dist/types/components/Icon/generated/ExternalLink.d.ts +1 -1
  427. package/dist/types/components/Icon/generated/EyeOpen.d.ts +1 -1
  428. package/dist/types/components/Icon/generated/EyeSlash.d.ts +1 -1
  429. package/dist/types/components/Icon/generated/Eyedropper.d.ts +1 -1
  430. package/dist/types/components/Icon/generated/FileHealth.d.ts +1 -1
  431. package/dist/types/components/Icon/generated/Filter.d.ts +1 -1
  432. package/dist/types/components/Icon/generated/Form.d.ts +1 -1
  433. package/dist/types/components/Icon/generated/Gear.d.ts +1 -1
  434. package/dist/types/components/Icon/generated/Gif.d.ts +1 -1
  435. package/dist/types/components/Icon/generated/Grid.d.ts +1 -1
  436. package/dist/types/components/Icon/generated/Hashtag.d.ts +1 -1
  437. package/dist/types/components/Icon/generated/Health.d.ts +1 -1
  438. package/dist/types/components/Icon/generated/Heart.d.ts +1 -1
  439. package/dist/types/components/Icon/generated/HeartSolid.d.ts +1 -1
  440. package/dist/types/components/Icon/generated/House.d.ts +1 -1
  441. package/dist/types/components/Icon/generated/Image.d.ts +1 -1
  442. package/dist/types/components/Icon/generated/InfoCircle.d.ts +1 -1
  443. package/dist/types/components/Icon/generated/Input.d.ts +1 -1
  444. package/dist/types/components/Icon/generated/Invoice.d.ts +1 -1
  445. package/dist/types/components/Icon/generated/KanbanBoard.d.ts +1 -1
  446. package/dist/types/components/Icon/generated/List.d.ts +1 -1
  447. package/dist/types/components/Icon/generated/Liveagent.d.ts +1 -1
  448. package/dist/types/components/Icon/generated/Loader.d.ts +1 -1
  449. package/dist/types/components/Icon/generated/LocationMarker.d.ts +1 -1
  450. package/dist/types/components/Icon/generated/Lock.d.ts +1 -1
  451. package/dist/types/components/Icon/generated/Logo.d.ts +1 -1
  452. package/dist/types/components/Icon/generated/Loudspeaker.d.ts +1 -1
  453. package/dist/types/components/Icon/generated/Magic.d.ts +1 -1
  454. package/dist/types/components/Icon/generated/MagnifyingGlass.d.ts +1 -1
  455. package/dist/types/components/Icon/generated/Mailbox.d.ts +1 -1
  456. package/dist/types/components/Icon/generated/Menu.d.ts +1 -1
  457. package/dist/types/components/Icon/generated/Message.d.ts +1 -1
  458. package/dist/types/components/Icon/generated/MessageDetail.d.ts +1 -1
  459. package/dist/types/components/Icon/generated/MessageWarning.d.ts +1 -1
  460. package/dist/types/components/Icon/generated/Messages.d.ts +1 -1
  461. package/dist/types/components/Icon/generated/Microphone.d.ts +1 -1
  462. package/dist/types/components/Icon/generated/MicrophoneMute.d.ts +1 -1
  463. package/dist/types/components/Icon/generated/Minus.d.ts +1 -1
  464. package/dist/types/components/Icon/generated/MoveDown.d.ts +1 -1
  465. package/dist/types/components/Icon/generated/MoveLeft.d.ts +1 -1
  466. package/dist/types/components/Icon/generated/MoveRight.d.ts +1 -1
  467. package/dist/types/components/Icon/generated/MoveUp.d.ts +1 -1
  468. package/dist/types/components/Icon/generated/Notification.d.ts +1 -1
  469. package/dist/types/components/Icon/generated/Package.d.ts +1 -1
  470. package/dist/types/components/Icon/generated/Paperclip.d.ts +1 -1
  471. package/dist/types/components/Icon/generated/Pause.d.ts +1 -1
  472. package/dist/types/components/Icon/generated/Paw.d.ts +1 -1
  473. package/dist/types/components/Icon/generated/Pen.d.ts +1 -1
  474. package/dist/types/components/Icon/generated/PenSquare.d.ts +1 -1
  475. package/dist/types/components/Icon/generated/Person.d.ts +1 -1
  476. package/dist/types/components/Icon/generated/PersonAdd.d.ts +1 -1
  477. package/dist/types/components/Icon/generated/PersonCircle.d.ts +1 -1
  478. package/dist/types/components/Icon/generated/Phone.d.ts +1 -1
  479. package/dist/types/components/Icon/generated/PhoneButtons.d.ts +1 -1
  480. package/dist/types/components/Icon/generated/PhoneCancel.d.ts +1 -1
  481. package/dist/types/components/Icon/generated/Pill.d.ts +1 -1
  482. package/dist/types/components/Icon/generated/Pin.d.ts +1 -1
  483. package/dist/types/components/Icon/generated/PinCancel.d.ts +1 -1
  484. package/dist/types/components/Icon/generated/Play.d.ts +1 -1
  485. package/dist/types/components/Icon/generated/Plus.d.ts +1 -1
  486. package/dist/types/components/Icon/generated/Popup.d.ts +1 -1
  487. package/dist/types/components/Icon/generated/Printer.d.ts +1 -1
  488. package/dist/types/components/Icon/generated/QuestionMark.d.ts +1 -1
  489. package/dist/types/components/Icon/generated/QuestionMarkCircle.d.ts +1 -1
  490. package/dist/types/components/Icon/generated/QuestionMarkCircleSolid.d.ts +1 -1
  491. package/dist/types/components/Icon/generated/Record.d.ts +1 -1
  492. package/dist/types/components/Icon/generated/Report.d.ts +1 -1
  493. package/dist/types/components/Icon/generated/Ribbon.d.ts +1 -1
  494. package/dist/types/components/Icon/generated/Robot.d.ts +1 -1
  495. package/dist/types/components/Icon/generated/Send.d.ts +1 -1
  496. package/dist/types/components/Icon/generated/Sliders.d.ts +1 -1
  497. package/dist/types/components/Icon/generated/SmileyFace.d.ts +1 -1
  498. package/dist/types/components/Icon/generated/Sort.d.ts +1 -1
  499. package/dist/types/components/Icon/generated/Star.d.ts +1 -1
  500. package/dist/types/components/Icon/generated/StarCircle.d.ts +1 -1
  501. package/dist/types/components/Icon/generated/StarSolid.d.ts +1 -1
  502. package/dist/types/components/Icon/generated/Stop.d.ts +1 -1
  503. package/dist/types/components/Icon/generated/StopRecording.d.ts +1 -1
  504. package/dist/types/components/Icon/generated/Support.d.ts +1 -1
  505. package/dist/types/components/Icon/generated/Table.d.ts +1 -1
  506. package/dist/types/components/Icon/generated/Tag.d.ts +1 -1
  507. package/dist/types/components/Icon/generated/Target.d.ts +1 -1
  508. package/dist/types/components/Icon/generated/TargetSolid.d.ts +1 -1
  509. package/dist/types/components/Icon/generated/TaskList.d.ts +1 -1
  510. package/dist/types/components/Icon/generated/Team.d.ts +1 -1
  511. package/dist/types/components/Icon/generated/ThumbsDown.d.ts +1 -1
  512. package/dist/types/components/Icon/generated/ThumbsUp.d.ts +1 -1
  513. package/dist/types/components/Icon/generated/Transfer.d.ts +1 -1
  514. package/dist/types/components/Icon/generated/Trashcan.d.ts +1 -1
  515. package/dist/types/components/Icon/generated/TwoSquares.d.ts +1 -1
  516. package/dist/types/components/Icon/generated/Upload.d.ts +1 -1
  517. package/dist/types/components/Icon/generated/VideoCamera.d.ts +1 -1
  518. package/dist/types/components/Icon/generated/WarningSign.d.ts +1 -1
  519. package/dist/types/components/Icon/generated/Website.d.ts +1 -1
  520. package/dist/types/components/Icon/generated/Wrench.d.ts +1 -1
  521. package/dist/types/components/Icon/generated/index.d.ts +1 -1
  522. package/dist/types/components/Icon/generated.d.ts +2 -0
  523. package/dist/types/components/Icon/icon.component.d.ts +3 -2
  524. package/dist/types/components/Icon.d.ts +2 -0
  525. package/dist/types/components/Link/components/LinkIcon/linkIcon.component.d.ts +3 -3
  526. package/dist/types/components/Link.d.ts +2 -0
  527. package/dist/types/components/Menu/components/MenuButton/menuButton.components.d.ts +1 -1
  528. package/dist/types/components/Menu/components/MenuItem/menuItem.component.d.ts +7 -8
  529. package/dist/types/components/Menu/components/MenuToggleButtons/menuToggleButtons.d.ts +1 -1
  530. package/dist/types/components/Menu/menu.component.d.ts +2 -2
  531. package/dist/types/components/Menu.d.ts +2 -0
  532. package/dist/types/components/Modal/modal.recipe.d.ts +1 -1
  533. package/dist/types/components/Modal.d.ts +2 -0
  534. package/dist/types/components/NotificationCounter.d.ts +2 -0
  535. package/dist/types/components/Picture.d.ts +2 -0
  536. package/dist/types/components/Popover/popover.component.d.ts +4 -4
  537. package/dist/types/components/Popover/popover.recipe.d.ts +1 -1
  538. package/dist/types/components/Popover.d.ts +2 -0
  539. package/dist/types/components/RadioGroup/components/Radio/radio.component.d.ts +3 -5
  540. package/dist/types/components/RadioGroup/index.d.ts +0 -1
  541. package/dist/types/components/RadioGroup/radioGroup.component.d.ts +4 -4
  542. package/dist/types/components/RadioGroup/radioGroup.recipe.d.ts +1 -1
  543. package/dist/types/components/RadioGroup.d.ts +2 -0
  544. package/dist/types/components/RatingDots/components/RatingDot/ratingDot.component.d.ts +1 -1
  545. package/dist/types/components/RatingDots/components/RatingDot/ratingDot.recipe.d.ts +1 -1
  546. package/dist/types/components/RatingDots/ratingDots.component.d.ts +1 -2
  547. package/dist/types/components/RatingDots.d.ts +2 -0
  548. package/dist/types/components/Select/select.component.d.ts +4 -9
  549. package/dist/types/components/Select/select.types.d.ts +1 -2
  550. package/dist/types/components/Select.d.ts +2 -0
  551. package/dist/types/components/SortableList/components/SortableListItem/sortableListItem.component.d.ts +1 -1
  552. package/dist/types/components/SortableList/index.d.ts +0 -1
  553. package/dist/types/components/SortableList/sortableList.component.d.ts +2 -2
  554. package/dist/types/components/SortableList.d.ts +2 -0
  555. package/dist/types/components/Spinner/spinner.component.d.ts +1 -1
  556. package/dist/types/components/Spinner/spinner.recipe.d.ts +1 -1
  557. package/dist/types/components/Spinner.d.ts +2 -0
  558. package/dist/types/components/Swatch/swatch.component.d.ts +1 -1
  559. package/dist/types/components/Swatch.d.ts +2 -0
  560. package/dist/types/components/Switch/switch.component.d.ts +4 -5
  561. package/dist/types/components/Switch/switch.recipe.d.ts +2 -2
  562. package/dist/types/components/Switch.d.ts +2 -0
  563. package/dist/types/components/Tabs/components/Tab/tab.component.d.ts +1 -1
  564. package/dist/types/components/Tabs/tabs.component.d.ts +1 -1
  565. package/dist/types/components/Tabs/tabs.recipe.d.ts +1 -1
  566. package/dist/types/components/Tabs.d.ts +2 -0
  567. package/dist/types/components/Tag/tag.component.d.ts +3 -3
  568. package/dist/types/components/Tag/tag.recipe.d.ts +1 -1
  569. package/dist/types/components/Tag.d.ts +2 -0
  570. package/dist/types/components/Text/text.component.d.ts +2 -1
  571. package/dist/types/components/Text/text.recipe.d.ts +1 -0
  572. package/dist/types/components/Text/text.types.d.ts +1 -1
  573. package/dist/types/components/Text.d.ts +2 -0
  574. package/dist/types/components/TextInput/textInput.component.d.ts +4 -4
  575. package/dist/types/components/TextInput.d.ts +2 -0
  576. package/dist/types/components/Textarea/textarea.component.d.ts +4 -4
  577. package/dist/types/components/Textarea.d.ts +2 -0
  578. package/dist/types/components/TimePicker/components/TimeList/timeList.component.d.ts +1 -1
  579. package/dist/types/components/TimePicker/components/TimeOption/timeOption.component.d.ts +2 -2
  580. package/dist/types/components/TimePicker/timePicker.component.d.ts +1 -1
  581. package/dist/types/components/TimePicker/timePicker.recipe.d.ts +1 -1
  582. package/dist/types/components/TimePicker.d.ts +2 -0
  583. package/dist/types/components/TimeRange.d.ts +2 -0
  584. package/dist/types/components/Tooltip/tooltip.component.d.ts +2 -4
  585. package/dist/types/components/Tooltip.d.ts +2 -0
  586. package/dist/types/components/index.d.ts +1 -9
  587. package/dist/types/components.d.ts +2 -0
  588. package/dist/types/hocs/withDarkMode/index.d.ts +2 -1
  589. package/dist/types/hocs/withFormControl/withFormControl.d.ts +1 -2
  590. package/dist/types/hocs/withFormControl/withFormControl.types.d.ts +1 -1
  591. package/dist/types/hocs/withLightMode/index.d.ts +2 -1
  592. package/dist/types/hocs/withTruncation.d.ts +1 -1
  593. package/dist/types/hocs.d.ts +2 -0
  594. package/dist/types/hooks/index.d.ts +0 -2
  595. package/dist/types/hooks/useColorMode/index.d.ts +2 -4
  596. package/dist/types/hooks.d.ts +2 -0
  597. package/dist/types/index.d.ts +0 -2
  598. package/dist/types/{components → patterns}/ConversationCard/components/ConversationCardButtons/conversationCardButtons.component.d.ts +1 -1
  599. package/dist/types/{components → patterns}/ConversationCard/components/ConversationCardContent/conversationCardContent.component.d.ts +2 -2
  600. package/dist/types/{components → patterns}/ConversationCard/components/ConversationCardFooter/conversationCardFooter.component.d.ts +3 -3
  601. package/dist/types/{components → patterns}/ConversationCard/components/ConversationCardTags/conversationCardTags.component.d.ts +2 -2
  602. package/dist/types/{components → patterns}/ConversationCard/conversationCard.component.d.ts +1 -1
  603. package/dist/types/patterns/ConversationCard.d.ts +2 -0
  604. package/dist/types/{components → patterns}/StyledAvatar/styledAvatar.component.d.ts +1 -1
  605. package/dist/types/patterns/StyledAvatar.d.ts +2 -0
  606. package/dist/types/{components → patterns}/TagBlock/tagBlock.component.d.ts +1 -1
  607. package/dist/types/patterns/TagBlock.d.ts +2 -0
  608. package/dist/types/{components → patterns}/Timestamp/timestamp.component.d.ts +2 -2
  609. package/dist/types/patterns/Timestamp.d.ts +2 -0
  610. package/dist/types/patterns/index.d.ts +4 -0
  611. package/dist/types/patterns.d.ts +2 -0
  612. package/dist/types/shared/types/theme.d.ts +1 -2
  613. package/dist/types/shared/types.d.ts +2 -0
  614. package/dist/types/shared/utils/sizes.d.ts +1 -1
  615. package/dist/types/theme/index.d.ts +1 -2
  616. package/dist/types/theme/providers/theme.provider.d.ts +3 -4
  617. package/dist/types/theme/semanticTokens/semanticTokens.config.d.ts +1 -5
  618. package/dist/types/theme/semanticTokens/semanticTokens.records.d.ts +2 -10
  619. package/dist/types/theme/semanticTokens/semanticTokens.types.d.ts +2 -2
  620. package/dist/types/theme/semanticTokens/utils/getSemanticColorToken.d.ts +2 -2
  621. package/dist/types/theme/semanticTokens.d.ts +2 -0
  622. package/dist/types/theme/theme.config.d.ts +0 -1
  623. package/dist/types/theme/tokens/blurs/blurs.types.d.ts +1 -1
  624. package/dist/types/theme/tokens/blurs.d.ts +2 -0
  625. package/dist/types/theme/tokens/borders/borders.types.d.ts +2 -2
  626. package/dist/types/theme/tokens/borders.d.ts +2 -0
  627. package/dist/types/theme/tokens/colors/colors.types.d.ts +2 -2
  628. package/dist/types/theme/tokens/colors.d.ts +2 -0
  629. package/dist/types/theme/tokens/shadows/shadows.config.d.ts +3 -3
  630. package/dist/types/theme/tokens/shadows/shadows.types.d.ts +2 -2
  631. package/dist/types/theme/tokens/shadows.d.ts +2 -0
  632. package/dist/types/theme/tokens/sizes/sizes.config.d.ts +2 -16
  633. package/dist/types/theme/tokens/sizes/sizes.types.d.ts +2 -2
  634. package/dist/types/theme/tokens/sizes.d.ts +2 -0
  635. package/dist/types/theme/tokens/spacing/spacing.config.d.ts +3 -3
  636. package/dist/types/theme/tokens/spacing/spacing.types.d.ts +1 -1
  637. package/dist/types/theme/tokens/spacing.d.ts +2 -0
  638. package/dist/types/theme/tokens/transitions/transitions.config.d.ts +2 -2
  639. package/dist/types/theme/tokens/transitions/transitions.types.d.ts +2 -2
  640. package/dist/types/theme/tokens/transitions.d.ts +2 -0
  641. package/dist/types/theme/tokens/typography/typography.config.d.ts +71 -26
  642. package/dist/types/theme/tokens/typography/typography.types.d.ts +5 -5
  643. package/dist/types/theme/tokens/typography.d.ts +2 -0
  644. package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +10 -10
  645. package/dist/types/theme/tokens/zIndices/zIndices.types.d.ts +1 -1
  646. package/dist/types/theme/tokens/zIndices.d.ts +2 -0
  647. package/dist/types/theme/tokens.d.ts +2 -0
  648. package/dist/types/theme.d.ts +2 -0
  649. package/package.json +56 -65
  650. package/dist/chunks/IconLogo-C4aZqkn1.js +0 -2
  651. package/dist/chunks/IconLogo-C4aZqkn1.js.map +0 -1
  652. package/dist/chunks/IconLogo-UpYiHEKq.js +0 -50
  653. package/dist/chunks/IconLogo-UpYiHEKq.js.map +0 -1
  654. package/dist/chunks/alert.types-BGRyfYMy.js +0 -139
  655. package/dist/chunks/alert.types-BGRyfYMy.js.map +0 -1
  656. package/dist/chunks/alert.types-BVJZGZh-.js +0 -2
  657. package/dist/chunks/alert.types-BVJZGZh-.js.map +0 -1
  658. package/dist/chunks/attr-BMs6szZx.js +0 -2
  659. package/dist/chunks/attr-BMs6szZx.js.map +0 -1
  660. package/dist/chunks/attr-sm10PXOd.js +0 -5
  661. package/dist/chunks/attr-sm10PXOd.js.map +0 -1
  662. package/dist/chunks/avatar.component-77NanIaH.js +0 -394
  663. package/dist/chunks/avatar.component-77NanIaH.js.map +0 -1
  664. package/dist/chunks/avatar.component-Dv96XFOF.js +0 -2
  665. package/dist/chunks/avatar.component-Dv96XFOF.js.map +0 -1
  666. package/dist/chunks/avatar.types-C6dZZjdi.js +0 -6
  667. package/dist/chunks/avatar.types-C6dZZjdi.js.map +0 -1
  668. package/dist/chunks/avatarGroup.component-CfSBCJKG.js +0 -2
  669. package/dist/chunks/avatarGroup.component-CfSBCJKG.js.map +0 -1
  670. package/dist/chunks/avatarGroup.component-dNR80_Br.js +0 -67
  671. package/dist/chunks/avatarGroup.component-dNR80_Br.js.map +0 -1
  672. package/dist/chunks/box-Baq7UBls.js +0 -2
  673. package/dist/chunks/box-Baq7UBls.js.map +0 -1
  674. package/dist/chunks/box-Ck9I7FYv.js +0 -7
  675. package/dist/chunks/box-Ck9I7FYv.js.map +0 -1
  676. package/dist/chunks/button.component-Br9jCpBx.js.map +0 -1
  677. package/dist/chunks/button.component-CsJxgblU.js +0 -2
  678. package/dist/chunks/button.component-CsJxgblU.js.map +0 -1
  679. package/dist/chunks/button.types-BKXZNvN1.js.map +0 -1
  680. package/dist/chunks/button.types-Bl1awbi0.js.map +0 -1
  681. package/dist/chunks/buttonGroup.component-BTvvN-mr.js +0 -68
  682. package/dist/chunks/buttonGroup.component-BTvvN-mr.js.map +0 -1
  683. package/dist/chunks/buttonGroup.component-Bnd3WutZ.js +0 -2
  684. package/dist/chunks/buttonGroup.component-Bnd3WutZ.js.map +0 -1
  685. package/dist/chunks/card.component-DNX41NGG.js +0 -59
  686. package/dist/chunks/card.component-DNX41NGG.js.map +0 -1
  687. package/dist/chunks/card.component-KNc4HKSh.js +0 -2
  688. package/dist/chunks/card.component-KNc4HKSh.js.map +0 -1
  689. package/dist/chunks/card.types-Cixp7ouC.js +0 -5
  690. package/dist/chunks/card.types-Cixp7ouC.js.map +0 -1
  691. package/dist/chunks/card.types-MvkQTTZF.js +0 -2
  692. package/dist/chunks/card.types-MvkQTTZF.js.map +0 -1
  693. package/dist/chunks/characterCounter.component-DElJ1iFK.js +0 -84
  694. package/dist/chunks/characterCounter.component-DElJ1iFK.js.map +0 -1
  695. package/dist/chunks/characterCounter.component-DXmly18j.js +0 -2
  696. package/dist/chunks/characterCounter.component-DXmly18j.js.map +0 -1
  697. package/dist/chunks/checkbox.component-CyWf-jhq.js +0 -281
  698. package/dist/chunks/checkbox.component-CyWf-jhq.js.map +0 -1
  699. package/dist/chunks/checkbox.component-DCO3f8IY.js +0 -2
  700. package/dist/chunks/checkbox.component-DCO3f8IY.js.map +0 -1
  701. package/dist/chunks/checkbox.records-DI3mqSNf.js +0 -2
  702. package/dist/chunks/checkbox.records-DI3mqSNf.js.map +0 -1
  703. package/dist/chunks/checkbox.records-Ds6SvFdm.js +0 -266
  704. package/dist/chunks/checkbox.records-Ds6SvFdm.js.map +0 -1
  705. package/dist/chunks/checkboxGroup.component-Cu6qUJOk.js +0 -52
  706. package/dist/chunks/checkboxGroup.component-Cu6qUJOk.js.map +0 -1
  707. package/dist/chunks/checkboxGroup.component-Dwn2XO_5.js +0 -2
  708. package/dist/chunks/checkboxGroup.component-Dwn2XO_5.js.map +0 -1
  709. package/dist/chunks/config-BFcXpdZo.js +0 -2
  710. package/dist/chunks/config-BFcXpdZo.js.map +0 -1
  711. package/dist/chunks/config-DlTdf-Yt.js +0 -57
  712. package/dist/chunks/config-DlTdf-Yt.js.map +0 -1
  713. package/dist/chunks/conversationCard.component-ZJ5eqIWf.js +0 -2
  714. package/dist/chunks/conversationCard.component-ZJ5eqIWf.js.map +0 -1
  715. package/dist/chunks/conversationCard.component-aCCQmc5q.js.map +0 -1
  716. package/dist/chunks/create-recipe-context-D7FewUR4.js +0 -62
  717. package/dist/chunks/create-recipe-context-D7FewUR4.js.map +0 -1
  718. package/dist/chunks/create-recipe-context-sESms8Eo.js +0 -2
  719. package/dist/chunks/create-recipe-context-sESms8Eo.js.map +0 -1
  720. package/dist/chunks/create-slot-recipe-context-BJmsuxih.js +0 -97
  721. package/dist/chunks/create-slot-recipe-context-BJmsuxih.js.map +0 -1
  722. package/dist/chunks/create-slot-recipe-context-IwVIgtBt.js +0 -2
  723. package/dist/chunks/create-slot-recipe-context-IwVIgtBt.js.map +0 -1
  724. package/dist/chunks/datePicker.component-DCtuIpuZ.js +0 -15
  725. package/dist/chunks/datePicker.component-DCtuIpuZ.js.map +0 -1
  726. package/dist/chunks/datePicker.component-DPTXomfM.js +0 -3019
  727. package/dist/chunks/datePicker.component-DPTXomfM.js.map +0 -1
  728. package/dist/chunks/dialog-trigger-Crrp0YGG.js +0 -78
  729. package/dist/chunks/dialog-trigger-Crrp0YGG.js.map +0 -1
  730. package/dist/chunks/dialog-trigger-MkOQUjzu.js +0 -2
  731. package/dist/chunks/dialog-trigger-MkOQUjzu.js.map +0 -1
  732. package/dist/chunks/divider.types-0j5qRXed.js +0 -47
  733. package/dist/chunks/divider.types-0j5qRXed.js.map +0 -1
  734. package/dist/chunks/divider.types-CK5oFy-i.js +0 -2
  735. package/dist/chunks/divider.types-CK5oFy-i.js.map +0 -1
  736. package/dist/chunks/empty-B5_AO6Pg.js +0 -2
  737. package/dist/chunks/empty-B5_AO6Pg.js.map +0 -1
  738. package/dist/chunks/empty-BU2EAux9.js +0 -8
  739. package/dist/chunks/empty-BU2EAux9.js.map +0 -1
  740. package/dist/chunks/factory-Ctbv0Ozn.js +0 -500
  741. package/dist/chunks/factory-Ctbv0Ozn.js.map +0 -1
  742. package/dist/chunks/factory-D6tdBUPG.js +0 -3
  743. package/dist/chunks/factory-D6tdBUPG.js.map +0 -1
  744. package/dist/chunks/flex-D14H6HbP.js +0 -2
  745. package/dist/chunks/flex-D14H6HbP.js.map +0 -1
  746. package/dist/chunks/flex-smlF8uQG.js +0 -40
  747. package/dist/chunks/flex-smlF8uQG.js.map +0 -1
  748. package/dist/chunks/float-DYLtz2A6.js +0 -64
  749. package/dist/chunks/float-DYLtz2A6.js.map +0 -1
  750. package/dist/chunks/float-OQXnYWBw.js +0 -2
  751. package/dist/chunks/float-OQXnYWBw.js.map +0 -1
  752. package/dist/chunks/format-BRt-TIiQ.js +0 -2
  753. package/dist/chunks/format-BRt-TIiQ.js.map +0 -1
  754. package/dist/chunks/format-DgHM6wFr.js +0 -1275
  755. package/dist/chunks/format-DgHM6wFr.js.map +0 -1
  756. package/dist/chunks/grid-item-BV4dwEBP.js +0 -90
  757. package/dist/chunks/grid-item-BV4dwEBP.js.map +0 -1
  758. package/dist/chunks/grid-item-CR-sXrjU.js +0 -2
  759. package/dist/chunks/grid-item-CR-sXrjU.js.map +0 -1
  760. package/dist/chunks/group-Cv7AQw1b.js +0 -2
  761. package/dist/chunks/group-Cv7AQw1b.js.map +0 -1
  762. package/dist/chunks/group-DPCVolOl.js +0 -139
  763. package/dist/chunks/group-DPCVolOl.js.map +0 -1
  764. package/dist/chunks/h-stack-Bjx9hlJo.js +0 -2
  765. package/dist/chunks/h-stack-Bjx9hlJo.js.map +0 -1
  766. package/dist/chunks/h-stack-Ce6JSBK2.js +0 -12
  767. package/dist/chunks/h-stack-Ce6JSBK2.js.map +0 -1
  768. package/dist/chunks/heading.component-BMvc5kM8.js +0 -2
  769. package/dist/chunks/heading.component-BMvc5kM8.js.map +0 -1
  770. package/dist/chunks/heading.component-CSbfsm3W.js +0 -12
  771. package/dist/chunks/heading.component-CSbfsm3W.js.map +0 -1
  772. package/dist/chunks/icon-button-DTZOklQ9.js +0 -119
  773. package/dist/chunks/icon-button-DTZOklQ9.js.map +0 -1
  774. package/dist/chunks/icon-button-DtjZ-SdQ.js +0 -2
  775. package/dist/chunks/icon-button-DtjZ-SdQ.js.map +0 -1
  776. package/dist/chunks/icon.component-B6R8-DRk.js +0 -2
  777. package/dist/chunks/icon.component-B6R8-DRk.js.map +0 -1
  778. package/dist/chunks/icon.component-S_qFWBRf.js +0 -32
  779. package/dist/chunks/icon.component-S_qFWBRf.js.map +0 -1
  780. package/dist/chunks/icons-BXxdrBrf.js +0 -216
  781. package/dist/chunks/icons-BXxdrBrf.js.map +0 -1
  782. package/dist/chunks/icons-CTpAjbC-.js +0 -2
  783. package/dist/chunks/icons-CTpAjbC-.js.map +0 -1
  784. package/dist/chunks/index-B3d3tRic.js +0 -290
  785. package/dist/chunks/index-B3d3tRic.js.map +0 -1
  786. package/dist/chunks/index-BBxAd1xM.js +0 -1195
  787. package/dist/chunks/index-BBxAd1xM.js.map +0 -1
  788. package/dist/chunks/index-BODNpj2d.js +0 -141
  789. package/dist/chunks/index-BODNpj2d.js.map +0 -1
  790. package/dist/chunks/index-BR7peqZO.js +0 -2
  791. package/dist/chunks/index-BR7peqZO.js.map +0 -1
  792. package/dist/chunks/index-BRBNqTA7.js +0 -1189
  793. package/dist/chunks/index-BRBNqTA7.js.map +0 -1
  794. package/dist/chunks/index-BpQwMKfa.js +0 -389
  795. package/dist/chunks/index-BpQwMKfa.js.map +0 -1
  796. package/dist/chunks/index-C-m6RNXT.js +0 -257
  797. package/dist/chunks/index-C-m6RNXT.js.map +0 -1
  798. package/dist/chunks/index-CHIISuTq.js +0 -3
  799. package/dist/chunks/index-CHIISuTq.js.map +0 -1
  800. package/dist/chunks/index-CS8X6LiC.js +0 -2
  801. package/dist/chunks/index-CS8X6LiC.js.map +0 -1
  802. package/dist/chunks/index-CX3yrbBD.js +0 -444
  803. package/dist/chunks/index-CX3yrbBD.js.map +0 -1
  804. package/dist/chunks/index-CYHDITxm.js +0 -7859
  805. package/dist/chunks/index-CYHDITxm.js.map +0 -1
  806. package/dist/chunks/index-Cd-5e4RS.js +0 -70
  807. package/dist/chunks/index-Cd-5e4RS.js.map +0 -1
  808. package/dist/chunks/index-ClcMgyeA.js +0 -10
  809. package/dist/chunks/index-ClcMgyeA.js.map +0 -1
  810. package/dist/chunks/index-CtXUprYH.js +0 -2
  811. package/dist/chunks/index-CtXUprYH.js.map +0 -1
  812. package/dist/chunks/index-DAWHN3cH.js +0 -86
  813. package/dist/chunks/index-DAWHN3cH.js.map +0 -1
  814. package/dist/chunks/index-DBk0LkcO.js +0 -2
  815. package/dist/chunks/index-DBk0LkcO.js.map +0 -1
  816. package/dist/chunks/index-DD49WSSW.js +0 -2
  817. package/dist/chunks/index-DD49WSSW.js.map +0 -1
  818. package/dist/chunks/index-DOXzraja.js +0 -2
  819. package/dist/chunks/index-DOXzraja.js.map +0 -1
  820. package/dist/chunks/index-DSedXH1s.js +0 -2
  821. package/dist/chunks/index-DSedXH1s.js.map +0 -1
  822. package/dist/chunks/index-DbTEJc-K.js +0 -2
  823. package/dist/chunks/index-DbTEJc-K.js.map +0 -1
  824. package/dist/chunks/index-DowO8Ued.js +0 -2
  825. package/dist/chunks/index-DowO8Ued.js.map +0 -1
  826. package/dist/chunks/index-QTIBH1Or.js +0 -2
  827. package/dist/chunks/index-QTIBH1Or.js.map +0 -1
  828. package/dist/chunks/index-Ztgrae6O.js +0 -1328
  829. package/dist/chunks/index-Ztgrae6O.js.map +0 -1
  830. package/dist/chunks/index-mndLieJA.js +0 -375
  831. package/dist/chunks/index-mndLieJA.js.map +0 -1
  832. package/dist/chunks/isSymbol-BQN49XhJ.js +0 -67
  833. package/dist/chunks/isSymbol-BQN49XhJ.js.map +0 -1
  834. package/dist/chunks/isSymbol-BdGeV_e0.js +0 -2
  835. package/dist/chunks/isSymbol-BdGeV_e0.js.map +0 -1
  836. package/dist/chunks/jsx-runtime-BjDatQAs.js +0 -23
  837. package/dist/chunks/jsx-runtime-BjDatQAs.js.map +0 -1
  838. package/dist/chunks/jsx-runtime-C5mzlN2N.js +0 -285
  839. package/dist/chunks/jsx-runtime-C5mzlN2N.js.map +0 -1
  840. package/dist/chunks/link.component--UJiv0xU.js +0 -36
  841. package/dist/chunks/link.component--UJiv0xU.js.map +0 -1
  842. package/dist/chunks/link.component-BCY_f6zw.js +0 -2
  843. package/dist/chunks/link.component-BCY_f6zw.js.map +0 -1
  844. package/dist/chunks/list-C_LmDoyW.js +0 -2
  845. package/dist/chunks/list-C_LmDoyW.js.map +0 -1
  846. package/dist/chunks/list-DqH5ttQG.js +0 -20
  847. package/dist/chunks/list-DqH5ttQG.js.map +0 -1
  848. package/dist/chunks/logo.types-BbSodfBq.js +0 -76
  849. package/dist/chunks/logo.types-BbSodfBq.js.map +0 -1
  850. package/dist/chunks/logo.types-CA_5hGAi.js +0 -2
  851. package/dist/chunks/logo.types-CA_5hGAi.js.map +0 -1
  852. package/dist/chunks/menu.component-DSFy9WEh.js +0 -599
  853. package/dist/chunks/menu.component-DSFy9WEh.js.map +0 -1
  854. package/dist/chunks/menu.component-MeUyoUF9.js +0 -2
  855. package/dist/chunks/menu.component-MeUyoUF9.js.map +0 -1
  856. package/dist/chunks/modal.types-CTQpaACU.js +0 -2
  857. package/dist/chunks/modal.types-CTQpaACU.js.map +0 -1
  858. package/dist/chunks/modal.types-KqIduO4D.js +0 -139
  859. package/dist/chunks/modal.types-KqIduO4D.js.map +0 -1
  860. package/dist/chunks/notificationCounter.component-BhZcuBmr.js +0 -2
  861. package/dist/chunks/notificationCounter.component-BhZcuBmr.js.map +0 -1
  862. package/dist/chunks/notificationCounter.component-BzhAKrKR.js.map +0 -1
  863. package/dist/chunks/notificationCounter.types-B_-siNfi.js +0 -2
  864. package/dist/chunks/notificationCounter.types-B_-siNfi.js.map +0 -1
  865. package/dist/chunks/notificationCounter.types-Dm4PSN2Y.js +0 -6
  866. package/dist/chunks/notificationCounter.types-Dm4PSN2Y.js.map +0 -1
  867. package/dist/chunks/omit-C-j4TrF5.js +0 -10
  868. package/dist/chunks/omit-C-j4TrF5.js.map +0 -1
  869. package/dist/chunks/omit-DqNeoZ8h.js +0 -2
  870. package/dist/chunks/omit-DqNeoZ8h.js.map +0 -1
  871. package/dist/chunks/picture.component-C2C2r_BU.js +0 -2
  872. package/dist/chunks/picture.component-C2C2r_BU.js.map +0 -1
  873. package/dist/chunks/picture.component-DECGd77u.js +0 -22
  874. package/dist/chunks/picture.component-DECGd77u.js.map +0 -1
  875. package/dist/chunks/pinInput.types-CnU27QDl.js +0 -2
  876. package/dist/chunks/pinInput.types-CnU27QDl.js.map +0 -1
  877. package/dist/chunks/pinInput.types-DbRKvqia.js +0 -145
  878. package/dist/chunks/pinInput.types-DbRKvqia.js.map +0 -1
  879. package/dist/chunks/popover-root-provider-C2iwUZJn.js +0 -2
  880. package/dist/chunks/popover-root-provider-C2iwUZJn.js.map +0 -1
  881. package/dist/chunks/popover-root-provider-R2bRQ-xz.js +0 -43
  882. package/dist/chunks/popover-root-provider-R2bRQ-xz.js.map +0 -1
  883. package/dist/chunks/popover.component-5a-hEW2o.js +0 -196
  884. package/dist/chunks/popover.component-5a-hEW2o.js.map +0 -1
  885. package/dist/chunks/popover.component-B1NHpxuL.js +0 -2
  886. package/dist/chunks/popover.component-B1NHpxuL.js.map +0 -1
  887. package/dist/chunks/popover.recipe-CQYAiRTB.js +0 -2
  888. package/dist/chunks/popover.recipe-CQYAiRTB.js.map +0 -1
  889. package/dist/chunks/popover.recipe-DDKba5kq.js +0 -241
  890. package/dist/chunks/popover.recipe-DDKba5kq.js.map +0 -1
  891. package/dist/chunks/popover.types-D1O-Ehsz.js +0 -7
  892. package/dist/chunks/popover.types-D1O-Ehsz.js.map +0 -1
  893. package/dist/chunks/provider-ClCAdPxy.js +0 -47
  894. package/dist/chunks/provider-ClCAdPxy.js.map +0 -1
  895. package/dist/chunks/provider-NDo8kOkE.js +0 -2
  896. package/dist/chunks/provider-NDo8kOkE.js.map +0 -1
  897. package/dist/chunks/radio.records-j0JOqaJ4.js +0 -2
  898. package/dist/chunks/radio.records-j0JOqaJ4.js.map +0 -1
  899. package/dist/chunks/radio.records-muLWVHhG.js +0 -382
  900. package/dist/chunks/radio.records-muLWVHhG.js.map +0 -1
  901. package/dist/chunks/radioGroup.component-BiLIdd0l.js +0 -2
  902. package/dist/chunks/radioGroup.component-BiLIdd0l.js.map +0 -1
  903. package/dist/chunks/radioGroup.component-CeIyZmZs.js +0 -254
  904. package/dist/chunks/radioGroup.component-CeIyZmZs.js.map +0 -1
  905. package/dist/chunks/ratingDots.component-BAtcU4JC.js +0 -2
  906. package/dist/chunks/ratingDots.component-BAtcU4JC.js.map +0 -1
  907. package/dist/chunks/ratingDots.component-bcnQi8kP.js +0 -138
  908. package/dist/chunks/ratingDots.component-bcnQi8kP.js.map +0 -1
  909. package/dist/chunks/render-strategy-C_zp9LNQ.js +0 -2
  910. package/dist/chunks/render-strategy-C_zp9LNQ.js.map +0 -1
  911. package/dist/chunks/render-strategy-D5Z6LZ1V.js +0 -12
  912. package/dist/chunks/render-strategy-D5Z6LZ1V.js.map +0 -1
  913. package/dist/chunks/select.component-29vEA8EQ.js +0 -2
  914. package/dist/chunks/select.component-29vEA8EQ.js.map +0 -1
  915. package/dist/chunks/select.component-8Rapwb67.js +0 -1054
  916. package/dist/chunks/select.component-8Rapwb67.js.map +0 -1
  917. package/dist/chunks/sortableList.component-CPYA3KKy.js +0 -6
  918. package/dist/chunks/sortableList.component-CPYA3KKy.js.map +0 -1
  919. package/dist/chunks/sortableList.component-ygB3YKGn.js.map +0 -1
  920. package/dist/chunks/spinner-BWqSIW6m.js +0 -8
  921. package/dist/chunks/spinner-BWqSIW6m.js.map +0 -1
  922. package/dist/chunks/spinner-BnpL14kK.js +0 -2
  923. package/dist/chunks/spinner-BnpL14kK.js.map +0 -1
  924. package/dist/chunks/spinner.component-CzOv8dIY.js +0 -2
  925. package/dist/chunks/spinner.component-CzOv8dIY.js.map +0 -1
  926. package/dist/chunks/spinner.component-gmb3jWCv.js.map +0 -1
  927. package/dist/chunks/stack-BKu3hWEQ.js +0 -2
  928. package/dist/chunks/stack-BKu3hWEQ.js.map +0 -1
  929. package/dist/chunks/stack-Dnuh5Zgf.js +0 -85
  930. package/dist/chunks/stack-Dnuh5Zgf.js.map +0 -1
  931. package/dist/chunks/styledAvatar.types-9huVpPvU.js +0 -2
  932. package/dist/chunks/styledAvatar.types-9huVpPvU.js.map +0 -1
  933. package/dist/chunks/styledAvatar.types-BlkNvQyA.js.map +0 -1
  934. package/dist/chunks/swatch.types-CtRInwzo.js +0 -67
  935. package/dist/chunks/swatch.types-CtRInwzo.js.map +0 -1
  936. package/dist/chunks/swatch.types-qncm_zG6.js +0 -2
  937. package/dist/chunks/swatch.types-qncm_zG6.js.map +0 -1
  938. package/dist/chunks/switch.component-BBep786n.js +0 -154
  939. package/dist/chunks/switch.component-BBep786n.js.map +0 -1
  940. package/dist/chunks/switch.component-DghHmo1Q.js +0 -2
  941. package/dist/chunks/switch.component-DghHmo1Q.js.map +0 -1
  942. package/dist/chunks/tabs.component-CjU_OQuN.js +0 -614
  943. package/dist/chunks/tabs.component-CjU_OQuN.js.map +0 -1
  944. package/dist/chunks/tabs.component-Cnvn_Y5x.js +0 -2
  945. package/dist/chunks/tabs.component-Cnvn_Y5x.js.map +0 -1
  946. package/dist/chunks/tag.component-BAH11mPX.js +0 -82
  947. package/dist/chunks/tag.component-BAH11mPX.js.map +0 -1
  948. package/dist/chunks/tag.component-DcEASytC.js +0 -2
  949. package/dist/chunks/tag.component-DcEASytC.js.map +0 -1
  950. package/dist/chunks/tagBlock.component-B6jDh_wi.js +0 -2
  951. package/dist/chunks/tagBlock.component-B6jDh_wi.js.map +0 -1
  952. package/dist/chunks/tagBlock.component-c3i2tk5Y.js.map +0 -1
  953. package/dist/chunks/text.component-BMna3XOy.js +0 -12
  954. package/dist/chunks/text.component-BMna3XOy.js.map +0 -1
  955. package/dist/chunks/text.component-waIIFgwB.js +0 -2
  956. package/dist/chunks/text.component-waIIFgwB.js.map +0 -1
  957. package/dist/chunks/textInput.component-DcGfaX6z.js +0 -169
  958. package/dist/chunks/textInput.component-DcGfaX6z.js.map +0 -1
  959. package/dist/chunks/textInput.component-Dg0NjMGd.js +0 -2
  960. package/dist/chunks/textInput.component-Dg0NjMGd.js.map +0 -1
  961. package/dist/chunks/textarea.component-8QwVGgBC.js +0 -79
  962. package/dist/chunks/textarea.component-8QwVGgBC.js.map +0 -1
  963. package/dist/chunks/textarea.component-DQAMtD62.js +0 -2
  964. package/dist/chunks/textarea.component-DQAMtD62.js.map +0 -1
  965. package/dist/chunks/theme-BFbOz0Jj.js +0 -2
  966. package/dist/chunks/theme-BFbOz0Jj.js.map +0 -1
  967. package/dist/chunks/theme-BOK659O0.js +0 -5
  968. package/dist/chunks/theme-BOK659O0.js.map +0 -1
  969. package/dist/chunks/theme.provider-CeFyVJrz.js.map +0 -1
  970. package/dist/chunks/theme.provider-DXEnAExc.js +0 -24
  971. package/dist/chunks/theme.provider-DXEnAExc.js.map +0 -1
  972. package/dist/chunks/timePicker.component-CbfNMKHg.js +0 -2
  973. package/dist/chunks/timePicker.component-CbfNMKHg.js.map +0 -1
  974. package/dist/chunks/timePicker.component-CqCqsj0-.js +0 -209
  975. package/dist/chunks/timePicker.component-CqCqsj0-.js.map +0 -1
  976. package/dist/chunks/timeRange.component-CL5z9FRa.js +0 -2
  977. package/dist/chunks/timeRange.component-CL5z9FRa.js.map +0 -1
  978. package/dist/chunks/timeRange.component-DUI4EL7X.js +0 -18
  979. package/dist/chunks/timeRange.component-DUI4EL7X.js.map +0 -1
  980. package/dist/chunks/timestamp.component-B1UUyLk6.js +0 -2
  981. package/dist/chunks/timestamp.component-B1UUyLk6.js.map +0 -1
  982. package/dist/chunks/timestamp.component-BQmg8ejt.js +0 -51
  983. package/dist/chunks/timestamp.component-BQmg8ejt.js.map +0 -1
  984. package/dist/chunks/toaster.records-CDCJPDWP.js +0 -2
  985. package/dist/chunks/toaster.records-CDCJPDWP.js.map +0 -1
  986. package/dist/chunks/toaster.records-DcadVT_W.js +0 -822
  987. package/dist/chunks/toaster.records-DcadVT_W.js.map +0 -1
  988. package/dist/chunks/tooltip.component-BBcfv22j.js +0 -492
  989. package/dist/chunks/tooltip.component-BBcfv22j.js.map +0 -1
  990. package/dist/chunks/tooltip.component-BlX3B2Di.js +0 -2
  991. package/dist/chunks/tooltip.component-BlX3B2Di.js.map +0 -1
  992. package/dist/chunks/typography.records-CSy2LmDd.js +0 -2
  993. package/dist/chunks/typography.records-CSy2LmDd.js.map +0 -1
  994. package/dist/chunks/typography.records-DDZuRT8J.js +0 -66
  995. package/dist/chunks/typography.records-DDZuRT8J.js.map +0 -1
  996. package/dist/chunks/use-breakpoint-MQ7agQJe.js +0 -72
  997. package/dist/chunks/use-breakpoint-MQ7agQJe.js.map +0 -1
  998. package/dist/chunks/use-breakpoint-uBg4-8yY.js +0 -2
  999. package/dist/chunks/use-breakpoint-uBg4-8yY.js.map +0 -1
  1000. package/dist/chunks/use-field-context-BZaIHuSQ.js +0 -12
  1001. package/dist/chunks/use-field-context-BZaIHuSQ.js.map +0 -1
  1002. package/dist/chunks/use-field-context-CArmgHPP.js +0 -2
  1003. package/dist/chunks/use-field-context-CArmgHPP.js.map +0 -1
  1004. package/dist/chunks/use-locale-context-BNU4MHrO.js +0 -2301
  1005. package/dist/chunks/use-locale-context-BNU4MHrO.js.map +0 -1
  1006. package/dist/chunks/use-locale-context-D0LByRu9.js +0 -22
  1007. package/dist/chunks/use-locale-context-D0LByRu9.js.map +0 -1
  1008. package/dist/chunks/use-recipe-DaPWl_pL.js +0 -2
  1009. package/dist/chunks/use-recipe-DaPWl_pL.js.map +0 -1
  1010. package/dist/chunks/use-recipe-d63ABaZ3.js +0 -13
  1011. package/dist/chunks/use-recipe-d63ABaZ3.js.map +0 -1
  1012. package/dist/chunks/use-slot-recipe-8liupslO.js +0 -2
  1013. package/dist/chunks/use-slot-recipe-8liupslO.js.map +0 -1
  1014. package/dist/chunks/use-slot-recipe-DhtQ1j_5.js +0 -13
  1015. package/dist/chunks/use-slot-recipe-DhtQ1j_5.js.map +0 -1
  1016. package/dist/chunks/usePortalContentRef-CTrvBQ7I.js +0 -2
  1017. package/dist/chunks/usePortalContentRef-CTrvBQ7I.js.map +0 -1
  1018. package/dist/chunks/usePortalContentRef-DO_jc4W9.js +0 -10
  1019. package/dist/chunks/usePortalContentRef-DO_jc4W9.js.map +0 -1
  1020. package/dist/chunks/v-stack-BZT7R_9f.js +0 -12
  1021. package/dist/chunks/v-stack-BZT7R_9f.js.map +0 -1
  1022. package/dist/chunks/v-stack-DxjgpeJ0.js +0 -2
  1023. package/dist/chunks/v-stack-DxjgpeJ0.js.map +0 -1
  1024. package/dist/chunks/walk-object-BrTExCqQ.js +0 -2
  1025. package/dist/chunks/walk-object-BrTExCqQ.js.map +0 -1
  1026. package/dist/chunks/walk-object-_CL3Bkm9.js +0 -28
  1027. package/dist/chunks/walk-object-_CL3Bkm9.js.map +0 -1
  1028. package/dist/chunks/withDarkMode-B9LErG-p.js +0 -2
  1029. package/dist/chunks/withDarkMode-B9LErG-p.js.map +0 -1
  1030. package/dist/chunks/withDarkMode-BE00aGRV.js +0 -21
  1031. package/dist/chunks/withDarkMode-BE00aGRV.js.map +0 -1
  1032. package/dist/chunks/withFormControl-CdasHiz1.js +0 -352
  1033. package/dist/chunks/withFormControl-CdasHiz1.js.map +0 -1
  1034. package/dist/chunks/withFormControl-ClG2Nbcf.js +0 -2
  1035. package/dist/chunks/withFormControl-ClG2Nbcf.js.map +0 -1
  1036. package/dist/chunks/withLightMode-UfFl5ry6.js +0 -20
  1037. package/dist/chunks/withLightMode-UfFl5ry6.js.map +0 -1
  1038. package/dist/chunks/withLightMode-fys9Cbqw.js +0 -2
  1039. package/dist/chunks/withLightMode-fys9Cbqw.js.map +0 -1
  1040. package/dist/chunks/withTruncation-BY4-q1lB.js +0 -2
  1041. package/dist/chunks/withTruncation-BY4-q1lB.js.map +0 -1
  1042. package/dist/chunks/withTruncation-Do7RgFZB.js.map +0 -1
  1043. package/dist/chunks/wrap-B8tBNeBY.js +0 -45
  1044. package/dist/chunks/wrap-B8tBNeBY.js.map +0 -1
  1045. package/dist/chunks/wrap-CNn1kyJX.js +0 -2
  1046. package/dist/chunks/wrap-CNn1kyJX.js.map +0 -1
  1047. package/dist/cjs/chakra/index.cjs +0 -2
  1048. package/dist/cjs/chakra/index.cjs.map +0 -1
  1049. package/dist/cjs/cli/generate-theme-types.cjs +0 -6
  1050. package/dist/cjs/cli/generate-theme-types.cjs.map +0 -1
  1051. package/dist/cjs/cli/postinstall.cjs +0 -3
  1052. package/dist/cjs/cli/postinstall.cjs.map +0 -1
  1053. package/dist/cjs/components/Divider/index.cjs +0 -2
  1054. package/dist/cjs/components/Logo/generated/index.cjs +0 -2
  1055. package/dist/cjs/components/Logo/index.cjs +0 -2
  1056. package/dist/cjs/components/PinInput/index.cjs +0 -2
  1057. package/dist/cjs/components/StyledAvatar/index.cjs.map +0 -1
  1058. package/dist/cjs/components/TagBlock/index.cjs.map +0 -1
  1059. package/dist/cjs/components/Timestamp/index.cjs.map +0 -1
  1060. package/dist/cjs/components/Toast/index.cjs +0 -2
  1061. package/dist/cjs/components/Toast/index.cjs.map +0 -1
  1062. package/dist/cjs/hocs/withDarkMode/index.cjs +0 -2
  1063. package/dist/cjs/hocs/withDarkMode/index.cjs.map +0 -1
  1064. package/dist/cjs/hocs/withLightMode/index.cjs +0 -2
  1065. package/dist/cjs/hocs/withLightMode/index.cjs.map +0 -1
  1066. package/dist/cjs/hooks/useBreakpoint/index.cjs +0 -2
  1067. package/dist/cjs/hooks/useBreakpoint/index.cjs.map +0 -1
  1068. package/dist/cjs/hooks/useColorMode/index.cjs +0 -2
  1069. package/dist/cjs/hooks/useColorMode/index.cjs.map +0 -1
  1070. package/dist/cjs/hooks/useColorModeValue/index.cjs +0 -2
  1071. package/dist/cjs/hooks/useColorModeValue/index.cjs.map +0 -1
  1072. package/dist/cjs/hooks/useDeviceType/index.cjs +0 -2
  1073. package/dist/cjs/hooks/useDeviceType/index.cjs.map +0 -1
  1074. package/dist/cjs/shared/index.cjs +0 -2
  1075. package/dist/cjs/shared/index.cjs.map +0 -1
  1076. package/dist/cjs/shared/records/index.cjs +0 -2
  1077. package/dist/cjs/shared/records/index.cjs.map +0 -1
  1078. package/dist/esm/chakra/index.js +0 -3231
  1079. package/dist/esm/chakra/index.js.map +0 -1
  1080. package/dist/esm/cli/generate-theme-types.js +0 -22
  1081. package/dist/esm/cli/generate-theme-types.js.map +0 -1
  1082. package/dist/esm/cli/postinstall.js +0 -19
  1083. package/dist/esm/cli/postinstall.js.map +0 -1
  1084. package/dist/esm/components/Divider/index.js +0 -8
  1085. package/dist/esm/components/Logo/generated/index.js +0 -6
  1086. package/dist/esm/components/Logo/index.js +0 -7
  1087. package/dist/esm/components/PinInput/index.js +0 -6
  1088. package/dist/esm/components/PinInput/index.js.map +0 -1
  1089. package/dist/esm/components/StyledAvatar/index.js.map +0 -1
  1090. package/dist/esm/components/TagBlock/index.js.map +0 -1
  1091. package/dist/esm/components/Timestamp/index.js +0 -5
  1092. package/dist/esm/components/Timestamp/index.js.map +0 -1
  1093. package/dist/esm/components/Toast/index.js +0 -59
  1094. package/dist/esm/components/Toast/index.js.map +0 -1
  1095. package/dist/esm/hocs/withDarkMode/index.js +0 -5
  1096. package/dist/esm/hocs/withDarkMode/index.js.map +0 -1
  1097. package/dist/esm/hocs/withLightMode/index.js +0 -5
  1098. package/dist/esm/hocs/withLightMode/index.js.map +0 -1
  1099. package/dist/esm/hooks/useBreakpoint/index.js +0 -12
  1100. package/dist/esm/hooks/useBreakpoint/index.js.map +0 -1
  1101. package/dist/esm/hooks/useColorMode/index.js +0 -19
  1102. package/dist/esm/hooks/useColorMode/index.js.map +0 -1
  1103. package/dist/esm/hooks/useColorModeValue/index.js +0 -9
  1104. package/dist/esm/hooks/useColorModeValue/index.js.map +0 -1
  1105. package/dist/esm/hooks/useDeviceType/index.js +0 -12
  1106. package/dist/esm/hooks/useDeviceType/index.js.map +0 -1
  1107. package/dist/esm/shared/index.js +0 -11
  1108. package/dist/esm/shared/index.js.map +0 -1
  1109. package/dist/esm/shared/records/index.js +0 -18
  1110. package/dist/esm/shared/records/index.js.map +0 -1
  1111. package/dist/types/chakra/index.d.ts +0 -52
  1112. package/dist/types/cli/generate-theme-types.d.ts +0 -2
  1113. package/dist/types/cli/postinstall.d.ts +0 -2
  1114. package/dist/types/components/Divider/divider.component.d.ts +0 -4
  1115. package/dist/types/components/Divider/divider.types.d.ts +0 -6
  1116. package/dist/types/components/Divider/index.d.ts +0 -2
  1117. package/dist/types/components/Icon/generated/AiMicrophone.d.ts +0 -10
  1118. package/dist/types/components/Logo/generated/FullLogo.d.ts +0 -10
  1119. package/dist/types/components/Logo/generated/IconLogo.d.ts +0 -10
  1120. package/dist/types/components/Logo/generated/index.d.ts +0 -4
  1121. package/dist/types/components/Logo/index.d.ts +0 -2
  1122. package/dist/types/components/Logo/logo.component.d.ts +0 -10
  1123. package/dist/types/components/Logo/logo.recipe.d.ts +0 -9
  1124. package/dist/types/components/Logo/logo.types.d.ts +0 -4
  1125. package/dist/types/components/PinInput/index.d.ts +0 -2
  1126. package/dist/types/components/PinInput/pinInput.component.d.ts +0 -12
  1127. package/dist/types/components/PinInput/pinInput.recipe.d.ts +0 -21
  1128. package/dist/types/components/PinInput/pinInput.records.d.ts +0 -1
  1129. package/dist/types/components/PinInput/pinInput.types.d.ts +0 -2
  1130. package/dist/types/components/Toast/components/ToastAction/toastAction.component.d.ts +0 -12
  1131. package/dist/types/components/Toast/components/Toaster/toaster.component.d.ts +0 -7
  1132. package/dist/types/components/Toast/components/Toaster/toaster.records.d.ts +0 -11
  1133. package/dist/types/components/Toast/components/Toaster/toaster.types.d.ts +0 -12
  1134. package/dist/types/components/Toast/index.d.ts +0 -2
  1135. package/dist/types/components/Toast/toast.component.d.ts +0 -14
  1136. package/dist/types/components/Toast/toast.recipe.d.ts +0 -21
  1137. package/dist/types/components/Toast/toast.types.d.ts +0 -19
  1138. package/dist/types/components/Toast/useToast.d.ts +0 -3
  1139. package/dist/types/components/Tooltip/tooltip.recipe.d.ts +0 -1
  1140. package/dist/types/hocs/withDarkMode/withDarkMode.d.ts +0 -2
  1141. package/dist/types/hocs/withLightMode/withLightMode.d.ts +0 -2
  1142. package/dist/types/hooks/useBreakpoint/index.d.ts +0 -1
  1143. package/dist/types/hooks/useDeviceType/index.d.ts +0 -3
  1144. package/dist/types/hooks/usePortalContentRef.d.ts +0 -6
  1145. package/dist/types/shared/index.d.ts +0 -1
  1146. package/dist/types/shared/records/index.d.ts +0 -1
  1147. package/dist/types/shared/records/status.d.ts +0 -5
  1148. /package/dist/cjs/{components → patterns}/ConversationCard/index.cjs.map +0 -0
  1149. /package/dist/cjs/{components/Divider → patterns/StyledAvatar}/index.cjs.map +0 -0
  1150. /package/dist/cjs/{components/Logo/generated → patterns/TagBlock}/index.cjs.map +0 -0
  1151. /package/dist/cjs/{components/Logo → patterns/Timestamp}/index.cjs.map +0 -0
  1152. /package/dist/cjs/{components/PinInput → patterns}/index.cjs.map +0 -0
  1153. /package/dist/esm/{components → patterns}/ConversationCard/index.js.map +0 -0
  1154. /package/dist/esm/{components/Divider → patterns/StyledAvatar}/index.js.map +0 -0
  1155. /package/dist/esm/{components/Logo/generated → patterns/TagBlock}/index.js.map +0 -0
  1156. /package/dist/esm/{components/Logo → patterns/Timestamp}/index.js.map +0 -0
  1157. /package/dist/types/{components → patterns}/ConversationCard/components/ConversationCardAvatarGroup/conversationCardAvatarGroup.component.d.ts +0 -0
  1158. /package/dist/types/{components → patterns}/ConversationCard/components/ConversationCardHeader/conversationCardHeader.component.d.ts +0 -0
  1159. /package/dist/types/{components → patterns}/ConversationCard/index.d.ts +0 -0
  1160. /package/dist/types/{components → patterns}/StyledAvatar/index.d.ts +0 -0
  1161. /package/dist/types/{components → patterns}/StyledAvatar/styledAvatar.types.d.ts +0 -0
  1162. /package/dist/types/{components → patterns}/TagBlock/index.d.ts +0 -0
  1163. /package/dist/types/{components → patterns}/TagBlock/tagBlock.types.d.ts +0 -0
  1164. /package/dist/types/{components → patterns}/Timestamp/index.d.ts +0 -0
@@ -1,2 +0,0 @@
1
- "use strict";const n=require("./index-CHIISuTq.js");var g=new WeakMap,w=new WeakMap,x={},I=0,E=e=>e&&(e.host||E(e.parentNode)),A=(e,i)=>i.map(o=>{if(e.contains(o))return o;const t=E(o);return t&&e.contains(t)?t:(console.error("[zag-js > ariaHidden] target",o,"in not contained inside",e,". Doing nothing"),null)}).filter(o=>!!o),C=e=>e.localName==="next-route-announcer"||e.localName==="script"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),P=(e,i)=>{const{parentNode:o,markerName:t,controlAttribute:s}=i,r=A(o,Array.isArray(e)?e:[e]);x[t]||(x[t]=new WeakMap);const a=x[t],d=[],h=new Set,c=new Set(r),l=u=>{!u||h.has(u)||(h.add(u),l(u.parentNode))};r.forEach(l);const p=u=>{!u||c.has(u)||Array.prototype.forEach.call(u.children,b=>{if(h.has(b))p(b);else try{if(C(b))return;const F=b.getAttribute(s)==="true",y=(g.get(b)||0)+1,T=(a.get(b)||0)+1;g.set(b,y),a.set(b,T),d.push(b),y===1&&F&&w.set(b,!0),T===1&&b.setAttribute(t,""),F||b.setAttribute(s,"true")}catch(v){console.error("[zag-js > ariaHidden] cannot operate on ",b,v)}})};return p(o),h.clear(),I++,()=>{d.forEach(u=>{const b=g.get(u)-1,v=a.get(u)-1;g.set(u,b),a.set(u,v),b||(w.has(u)||u.removeAttribute(s),w.delete(u)),v||u.removeAttribute(t)}),I--,I||(g=new WeakMap,g=new WeakMap,w=new WeakMap,x={})}},G=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,R=(e,i=G(e),o="data-aria-hidden")=>{if(i)return P(e,{parentNode:i,markerName:o,controlAttribute:"aria-hidden"})},B=e=>{const i=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(i)};function S(e,i={}){const{defer:o=!0}=i,t=o?B:r=>r(),s=[];return s.push(t(()=>{const a=(typeof e=="function"?e():e).filter(Boolean);a.length!==0&&s.push(R(a))})),()=>{s.forEach(r=>r?.())}}var K=Object.defineProperty,M=(e,i,o)=>i in e?K(e,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[i]=o,f=(e,i,o)=>M(e,typeof i!="symbol"?i+"":i,o),k={activateTrap(e,i){if(e.length>0){const t=e[e.length-1];t!==i&&t.pause()}const o=e.indexOf(i);o===-1||e.splice(o,1),e.push(i)},deactivateTrap(e,i){const o=e.indexOf(i);o!==-1&&e.splice(o,1),e.length>0&&e[e.length-1].unpause()}},L=[],_=class{constructor(e,i){f(this,"trapStack"),f(this,"config"),f(this,"doc"),f(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),f(this,"listenerCleanups",[]),f(this,"handleFocus",t=>{const s=n.getEventTarget(t),r=this.findContainerIndex(s,t)>=0;if(r||n.isDocument(s))r&&(this.state.mostRecentlyFocusedNode=s);else{t.stopImmediatePropagation();let a,d=!0;if(this.state.mostRecentlyFocusedNode)if(n.getTabIndex(this.state.mostRecentlyFocusedNode)>0){const h=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[h];if(c.length>0){const l=c.findIndex(p=>p===this.state.mostRecentlyFocusedNode);l>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?l+1<c.length&&(a=c[l+1],d=!1):l-1>=0&&(a=c[l-1],d=!1))}}else this.state.containerGroups.some(h=>h.tabbableNodes.some(c=>n.getTabIndex(c)>0))||(d=!1);else d=!1;d&&(a=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),a?this.tryFocus(a):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),f(this,"handlePointerDown",t=>{const s=n.getEventTarget(t);if(!(this.findContainerIndex(s,t)>=0)){if(m(this.config.clickOutsideDeactivates,t)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}m(this.config.allowOutsideClick,t)||t.preventDefault()}}),f(this,"handleClick",t=>{const s=n.getEventTarget(t);this.findContainerIndex(s,t)>=0||m(this.config.clickOutsideDeactivates,t)||m(this.config.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())}),f(this,"handleTabKey",t=>{if(this.config.isKeyForward(t)||this.config.isKeyBackward(t)){this.state.recentNavEvent=t;const s=this.config.isKeyBackward(t),r=this.findNextNavNode({event:t,isBackward:s});if(!r)return;N(t)&&t.preventDefault(),this.tryFocus(r)}}),f(this,"handleEscapeKey",t=>{W(t)&&m(this.config.escapeDeactivates,t)!==!1&&(t.preventDefault(),this.deactivate())}),f(this,"_mutationObserver"),f(this,"setupMutationObserver",()=>{const t=this.doc.defaultView||window;this._mutationObserver=new t.MutationObserver(s=>{s.some(a=>Array.from(a.removedNodes).some(h=>h===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),f(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(t=>{this._mutationObserver?.observe(t,{subtree:!0,childList:!0})})}),f(this,"getInitialFocusNode",()=>{let t=this.getNodeForOption("initialFocus",{hasFallback:!0});if(t===!1)return!1;if(t===void 0||t&&!n.isFocusable(t))if(this.findContainerIndex(this.doc.activeElement)>=0)t=this.doc.activeElement;else{const s=this.state.tabbableGroups[0];t=s&&s.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else t===null&&(t=this.getNodeForOption("fallbackFocus"));if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t.isConnected||(t=this.getNodeForOption("fallbackFocus")),t}),f(this,"tryFocus",t=>{if(t!==!1&&t!==n.getActiveElement(this.doc)){if(!t||!t.focus){this.tryFocus(this.getInitialFocusNode());return}t.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=t,$(t)&&t.select()}}),f(this,"deactivate",t=>{if(!this.state.active)return this;const s={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...t};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),k.deactivateTrap(this.trapStack,this);const r=this.getOption(s,"onDeactivate"),a=this.getOption(s,"onPostDeactivate"),d=this.getOption(s,"checkCanReturnFocus"),h=this.getOption(s,"returnFocus","returnFocusOnDeactivate");r?.();const c=()=>{D(()=>{if(h){const l=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(l)}a?.()})};if(h&&d){const l=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return d(l).then(c,c),this}return c(),this}),f(this,"pause",t=>{if(this.state.paused||!this.state.active)return this;const s=this.getOption(t,"onPause"),r=this.getOption(t,"onPostPause");return this.state.paused=!0,s?.(),this.removeListeners(),this.updateObservedNodes(),r?.(),this}),f(this,"unpause",t=>{if(!this.state.paused||!this.state.active)return this;const s=this.getOption(t,"onUnpause"),r=this.getOption(t,"onPostUnpause");return this.state.paused=!1,s?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r?.(),this}),f(this,"updateContainerElements",t=>(this.state.containers=Array.isArray(t)?t.filter(Boolean):[t].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),f(this,"getReturnFocusNode",t=>{const s=this.getNodeForOption("setReturnFocus",{params:[t]});return s||(s===!1?!1:t)}),f(this,"getOption",(t,s,r)=>t&&t[s]!==void 0?t[s]:this.config[r||s]),f(this,"getNodeForOption",(t,{hasFallback:s=!1,params:r=[]}={})=>{let a=this.config[t];if(typeof a=="function"&&(a=a(...r)),a===!0&&(a=void 0),!a){if(a===void 0||a===!1)return a;throw new Error(`\`${t}\` was specified but was not a node, or did not return a node`)}let d=a;if(typeof a=="string"){try{d=this.doc.querySelector(a)}catch(h){throw new Error(`\`${t}\` appears to be an invalid selector; error="${h.message}"`)}if(!d&&!s)throw new Error(`\`${t}\` as selector refers to no known node`)}return d}),f(this,"findNextNavNode",t=>{const{event:s,isBackward:r=!1}=t,a=t.target||n.getEventTarget(s);this.updateTabbableNodes();let d=null;if(this.state.tabbableGroups.length>0){const h=this.findContainerIndex(a,s),c=h>=0?this.state.containerGroups[h]:void 0;if(h<0)r?d=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:d=this.state.tabbableGroups[0].firstTabbableNode;else if(r){let l=this.state.tabbableGroups.findIndex(({firstTabbableNode:p})=>a===p);if(l<0&&(c?.container===a||n.isFocusable(a)&&!n.isTabbable(a)&&!c?.nextTabbableNode(a,!1))&&(l=h),l>=0){const p=l===0?this.state.tabbableGroups.length-1:l-1,u=this.state.tabbableGroups[p];d=n.getTabIndex(a)>=0?u.lastTabbableNode:u.lastDomTabbableNode}else N(s)||(d=c?.nextTabbableNode(a,!1))}else{let l=this.state.tabbableGroups.findIndex(({lastTabbableNode:p})=>a===p);if(l<0&&(c?.container===a||n.isFocusable(a)&&!n.isTabbable(a)&&!c?.nextTabbableNode(a))&&(l=h),l>=0){const p=l===this.state.tabbableGroups.length-1?0:l+1,u=this.state.tabbableGroups[p];d=n.getTabIndex(a)>=0?u.firstTabbableNode:u.firstDomTabbableNode}else N(s)||(d=c?.nextTabbableNode(a))}}else d=this.getNodeForOption("fallbackFocus");return d}),this.trapStack=i.trapStack||L;const o={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(t){return N(t)&&!t.shiftKey},isKeyBackward(t){return N(t)&&t.shiftKey},...i};this.doc=o.document||n.getDocument(Array.isArray(e)?e[0]:e),this.config=o,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,i){const o=typeof i?.composedPath=="function"?i.composedPath():void 0;return this.state.containerGroups.findIndex(({container:t,tabbableNodes:s})=>t.contains(e)||o?.includes(t)||s.find(r=>r===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const i=n.getTabbables(e),o=n.getFocusables(e),t=i.length>0?i[0]:void 0,s=i.length>0?i[i.length-1]:void 0,r=o.find(c=>n.isTabbable(c)),a=o.slice().reverse().find(c=>n.isTabbable(c)),d=!!i.find(c=>n.getTabIndex(c)>0);function h(c,l=!0){const p=i.indexOf(c);return p<0?l?o.slice(o.indexOf(c)+1).find(u=>n.isTabbable(u)):o.slice(0,o.indexOf(c)).reverse().find(u=>n.isTabbable(u)):i[p+(l?1:-1)]}return{container:e,tabbableNodes:i,focusableNodes:o,posTabIndexesFound:d,firstTabbableNode:t,lastTabbableNode:s,firstDomTabbableNode:r,lastDomTabbableNode:a,nextTabbableNode:h}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return k.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?D(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(n.addDomEvent(this.doc,"focusin",this.handleFocus,!0),n.addDomEvent(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),n.addDomEvent(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),n.addDomEvent(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),n.addDomEvent(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),n.addDomEvent(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const i=this.getOption(e,"onActivate"),o=this.getOption(e,"onPostActivate"),t=this.getOption(e,"checkCanFocusTrap");t||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,i?.();const s=()=>{t&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),o?.()};return t?(t(this.state.containers.concat()).then(s,s),this):(s(),this)}},N=e=>e.key==="Tab",m=(e,...i)=>typeof e=="function"?e(...i):e,W=e=>!e.isComposing&&e.key==="Escape",D=e=>setTimeout(e,0),$=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function V(e,i={}){let o;const t=n.raf(()=>{const s=typeof e=="function"?e():e;if(s){o=new _(s,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:s,...i,document:n.getDocument(s)});try{o.activate()}catch{}}});return function(){o?.deactivate(),t()}}var O="data-scroll-lock";function H(e){const i=e.getBoundingClientRect().left;return Math.round(i)+e.scrollLeft?"paddingLeft":"paddingRight"}function U(e){const i=e??document,o=i.defaultView??window,{documentElement:t,body:s}=i;if(s.hasAttribute(O))return;s.setAttribute(O,"");const a=o.innerWidth-t.clientWidth,d=()=>n.setStyleProperty(t,"--scrollbar-width",`${a}px`),h=H(t),c=()=>n.setStyle(s,{overflow:"hidden",[h]:`${a}px`}),l=()=>{const{scrollX:u,scrollY:b,visualViewport:v}=o,F=v?.offsetLeft??0,y=v?.offsetTop??0,T=n.setStyle(s,{position:"fixed",overflow:"hidden",top:`${-(b-Math.floor(y))}px`,left:`${-(u-Math.floor(F))}px`,right:"0",[h]:`${a}px`});return()=>{T?.(),o.scrollTo({left:u,top:b,behavior:"instant"})}},p=[d(),n.isIos()?l():c()];return()=>{p.forEach(u=>u?.()),s.removeAttribute(O)}}exports.ariaHidden=S;exports.preventBodyScroll=U;exports.trapFocus=V;
2
- //# sourceMappingURL=index-CtXUprYH.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-CtXUprYH.js","sources":["../../node_modules/@zag-js/aria-hidden/dist/index.mjs","../../node_modules/@zag-js/focus-trap/dist/index.mjs","../../node_modules/@zag-js/remove-scroll/dist/index.mjs"],"sourcesContent":["// src/walk-tree-outside.ts\nvar counterMap = /* @__PURE__ */ new WeakMap();\nvar uncontrolledNodes = /* @__PURE__ */ new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = (node) => node && (node.host || unwrapHost(node.parentNode));\nvar correctTargets = (parent, targets) => targets.map((target) => {\n if (parent.contains(target)) return target;\n const correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error(\"[zag-js > ariaHidden] target\", target, \"in not contained inside\", parent, \". Doing nothing\");\n return null;\n}).filter((x) => Boolean(x));\nvar isIgnoredNode = (node) => {\n if (node.localName === \"next-route-announcer\") return true;\n if (node.localName === \"script\") return true;\n if (node.hasAttribute(\"aria-live\")) return true;\n return node.matches(\"[data-live-announcer]\");\n};\nvar walkTreeOutside = (originalTarget, props) => {\n const { parentNode, markerName, controlAttribute} = props;\n const targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n markerMap[markerName] || (markerMap[markerName] = /* @__PURE__ */ new WeakMap());\n const markerCounter = markerMap[markerName];\n const hiddenNodes = [];\n const elementsToKeep = /* @__PURE__ */ new Set();\n const elementsToStop = new Set(targets);\n const keep = (el) => {\n if (!el || elementsToKeep.has(el)) return;\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n const deep = (parent) => {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, (node) => {\n if (elementsToKeep.has(node)) {\n deep(node);\n } else {\n try {\n if (isIgnoredNode(node)) return;\n const attr = node.getAttribute(controlAttribute);\n const alreadyHidden = attr === \"true\" ;\n const counterValue = (counterMap.get(node) || 0) + 1;\n const markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, \"\");\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, \"true\" );\n }\n } catch (e) {\n console.error(\"[zag-js > ariaHidden] cannot operate on \", node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return () => {\n hiddenNodes.forEach((node) => {\n const counterValue = counterMap.get(node) - 1;\n const markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n counterMap = /* @__PURE__ */ new WeakMap();\n counterMap = /* @__PURE__ */ new WeakMap();\n uncontrolledNodes = /* @__PURE__ */ new WeakMap();\n markerMap = {};\n }\n };\n};\n\n// src/aria-hidden.ts\nvar getParentNode = (originalTarget) => {\n const target = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return target.ownerDocument.body;\n};\nvar hideOthers = (originalTarget, parentNode = getParentNode(originalTarget), markerName = \"data-aria-hidden\") => {\n if (!parentNode) return;\n return walkTreeOutside(originalTarget, {\n parentNode,\n markerName,\n controlAttribute: \"aria-hidden\"});\n};\n\n// src/index.ts\nvar raf = (fn) => {\n const frameId = requestAnimationFrame(() => fn());\n return () => cancelAnimationFrame(frameId);\n};\nfunction ariaHidden(targetsOrFn, options = {}) {\n const { defer = true } = options;\n const func = defer ? raf : (v) => v();\n const cleanups = [];\n cleanups.push(\n func(() => {\n const targets = typeof targetsOrFn === \"function\" ? targetsOrFn() : targetsOrFn;\n const elements = targets.filter(Boolean);\n if (elements.length === 0) return;\n cleanups.push(hideOthers(elements));\n })\n );\n return () => {\n cleanups.forEach((fn) => fn?.());\n };\n}\n\nexport { ariaHidden };\n","import { getDocument, getTabbables, getFocusables, isTabbable, getTabIndex, addDomEvent, raf, getEventTarget, isDocument, isFocusable, getActiveElement } from '@zag-js/dom-query';\n\nvar __defProp = Object.defineProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\nvar activeFocusTraps = {\n activateTrap(trapStack, trap) {\n if (trapStack.length > 0) {\n const activeTrap = trapStack[trapStack.length - 1];\n if (activeTrap !== trap) {\n activeTrap.pause();\n }\n }\n const trapIndex = trapStack.indexOf(trap);\n if (trapIndex === -1) {\n trapStack.push(trap);\n } else {\n trapStack.splice(trapIndex, 1);\n trapStack.push(trap);\n }\n },\n deactivateTrap(trapStack, trap) {\n const trapIndex = trapStack.indexOf(trap);\n if (trapIndex !== -1) {\n trapStack.splice(trapIndex, 1);\n }\n if (trapStack.length > 0) {\n trapStack[trapStack.length - 1].unpause();\n }\n }\n};\nvar sharedTrapStack = [];\nvar FocusTrap = class {\n constructor(elements, options) {\n __publicField(this, \"trapStack\");\n __publicField(this, \"config\");\n __publicField(this, \"doc\");\n __publicField(this, \"state\", {\n containers: [],\n containerGroups: [],\n tabbableGroups: [],\n nodeFocusedBeforeActivation: null,\n mostRecentlyFocusedNode: null,\n active: false,\n paused: false,\n delayInitialFocusTimer: void 0,\n recentNavEvent: void 0\n });\n __publicField(this, \"listenerCleanups\", []);\n __publicField(this, \"handleFocus\", (event) => {\n const target = getEventTarget(event);\n const targetContained = this.findContainerIndex(target, event) >= 0;\n if (targetContained || isDocument(target)) {\n if (targetContained) {\n this.state.mostRecentlyFocusedNode = target;\n }\n } else {\n event.stopImmediatePropagation();\n let nextNode;\n let navAcrossContainers = true;\n if (this.state.mostRecentlyFocusedNode) {\n if (getTabIndex(this.state.mostRecentlyFocusedNode) > 0) {\n const mruContainerIdx = this.findContainerIndex(this.state.mostRecentlyFocusedNode);\n const { tabbableNodes } = this.state.containerGroups[mruContainerIdx];\n if (tabbableNodes.length > 0) {\n const mruTabIdx = tabbableNodes.findIndex((node) => node === this.state.mostRecentlyFocusedNode);\n if (mruTabIdx >= 0) {\n if (this.config.isKeyForward(this.state.recentNavEvent)) {\n if (mruTabIdx + 1 < tabbableNodes.length) {\n nextNode = tabbableNodes[mruTabIdx + 1];\n navAcrossContainers = false;\n }\n } else {\n if (mruTabIdx - 1 >= 0) {\n nextNode = tabbableNodes[mruTabIdx - 1];\n navAcrossContainers = false;\n }\n }\n }\n }\n } else {\n if (!this.state.containerGroups.some((g) => g.tabbableNodes.some((n) => getTabIndex(n) > 0))) {\n navAcrossContainers = false;\n }\n }\n } else {\n navAcrossContainers = false;\n }\n if (navAcrossContainers) {\n nextNode = this.findNextNavNode({\n // move FROM the MRU node, not event-related node (which will be the node that is\n // outside the trap causing the focus escape we're trying to fix)\n target: this.state.mostRecentlyFocusedNode,\n isBackward: this.config.isKeyBackward(this.state.recentNavEvent)\n });\n }\n if (nextNode) {\n this.tryFocus(nextNode);\n } else {\n this.tryFocus(this.state.mostRecentlyFocusedNode || this.getInitialFocusNode());\n }\n }\n this.state.recentNavEvent = void 0;\n });\n __publicField(this, \"handlePointerDown\", (event) => {\n const target = getEventTarget(event);\n if (this.findContainerIndex(target, event) >= 0) {\n return;\n }\n if (valueOrHandler(this.config.clickOutsideDeactivates, event)) {\n this.deactivate({ returnFocus: this.config.returnFocusOnDeactivate });\n return;\n }\n if (valueOrHandler(this.config.allowOutsideClick, event)) {\n return;\n }\n event.preventDefault();\n });\n __publicField(this, \"handleClick\", (event) => {\n const target = getEventTarget(event);\n if (this.findContainerIndex(target, event) >= 0) {\n return;\n }\n if (valueOrHandler(this.config.clickOutsideDeactivates, event)) {\n return;\n }\n if (valueOrHandler(this.config.allowOutsideClick, event)) {\n return;\n }\n event.preventDefault();\n event.stopImmediatePropagation();\n });\n __publicField(this, \"handleTabKey\", (event) => {\n if (this.config.isKeyForward(event) || this.config.isKeyBackward(event)) {\n this.state.recentNavEvent = event;\n const isBackward = this.config.isKeyBackward(event);\n const destinationNode = this.findNextNavNode({ event, isBackward });\n if (!destinationNode) return;\n if (isTabEvent(event)) {\n event.preventDefault();\n }\n this.tryFocus(destinationNode);\n }\n });\n __publicField(this, \"handleEscapeKey\", (event) => {\n if (isEscapeEvent(event) && valueOrHandler(this.config.escapeDeactivates, event) !== false) {\n event.preventDefault();\n this.deactivate();\n }\n });\n __publicField(this, \"_mutationObserver\");\n __publicField(this, \"setupMutationObserver\", () => {\n const win = this.doc.defaultView || window;\n this._mutationObserver = new win.MutationObserver((mutations) => {\n const isFocusedNodeRemoved = mutations.some((mutation) => {\n const removedNodes = Array.from(mutation.removedNodes);\n return removedNodes.some((node) => node === this.state.mostRecentlyFocusedNode);\n });\n if (isFocusedNodeRemoved) {\n this.tryFocus(this.getInitialFocusNode());\n }\n });\n });\n __publicField(this, \"updateObservedNodes\", () => {\n this._mutationObserver?.disconnect();\n if (this.state.active && !this.state.paused) {\n this.state.containers.map((container) => {\n this._mutationObserver?.observe(container, { subtree: true, childList: true });\n });\n }\n });\n __publicField(this, \"getInitialFocusNode\", () => {\n let node = this.getNodeForOption(\"initialFocus\", { hasFallback: true });\n if (node === false) {\n return false;\n }\n if (node === void 0 || node && !isFocusable(node)) {\n if (this.findContainerIndex(this.doc.activeElement) >= 0) {\n node = this.doc.activeElement;\n } else {\n const firstTabbableGroup = this.state.tabbableGroups[0];\n const firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;\n node = firstTabbableNode || this.getNodeForOption(\"fallbackFocus\");\n }\n } else if (node === null) {\n node = this.getNodeForOption(\"fallbackFocus\");\n }\n if (!node) {\n throw new Error(\"Your focus-trap needs to have at least one focusable element\");\n }\n if (!node.isConnected) {\n node = this.getNodeForOption(\"fallbackFocus\");\n }\n return node;\n });\n __publicField(this, \"tryFocus\", (node) => {\n if (node === false) return;\n if (node === getActiveElement(this.doc)) return;\n if (!node || !node.focus) {\n this.tryFocus(this.getInitialFocusNode());\n return;\n }\n node.focus({ preventScroll: !!this.config.preventScroll });\n this.state.mostRecentlyFocusedNode = node;\n if (isSelectableInput(node)) {\n node.select();\n }\n });\n __publicField(this, \"deactivate\", (deactivateOptions) => {\n if (!this.state.active) return this;\n const options = {\n onDeactivate: this.config.onDeactivate,\n onPostDeactivate: this.config.onPostDeactivate,\n checkCanReturnFocus: this.config.checkCanReturnFocus,\n ...deactivateOptions\n };\n clearTimeout(this.state.delayInitialFocusTimer);\n this.state.delayInitialFocusTimer = void 0;\n this.removeListeners();\n this.state.active = false;\n this.state.paused = false;\n this.updateObservedNodes();\n activeFocusTraps.deactivateTrap(this.trapStack, this);\n const onDeactivate = this.getOption(options, \"onDeactivate\");\n const onPostDeactivate = this.getOption(options, \"onPostDeactivate\");\n const checkCanReturnFocus = this.getOption(options, \"checkCanReturnFocus\");\n const returnFocus = this.getOption(options, \"returnFocus\", \"returnFocusOnDeactivate\");\n onDeactivate?.();\n const finishDeactivation = () => {\n delay(() => {\n if (returnFocus) {\n const returnFocusNode = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);\n this.tryFocus(returnFocusNode);\n }\n onPostDeactivate?.();\n });\n };\n if (returnFocus && checkCanReturnFocus) {\n const returnFocusNode = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);\n checkCanReturnFocus(returnFocusNode).then(finishDeactivation, finishDeactivation);\n return this;\n }\n finishDeactivation();\n return this;\n });\n __publicField(this, \"pause\", (pauseOptions) => {\n if (this.state.paused || !this.state.active) {\n return this;\n }\n const onPause = this.getOption(pauseOptions, \"onPause\");\n const onPostPause = this.getOption(pauseOptions, \"onPostPause\");\n this.state.paused = true;\n onPause?.();\n this.removeListeners();\n this.updateObservedNodes();\n onPostPause?.();\n return this;\n });\n __publicField(this, \"unpause\", (unpauseOptions) => {\n if (!this.state.paused || !this.state.active) {\n return this;\n }\n const onUnpause = this.getOption(unpauseOptions, \"onUnpause\");\n const onPostUnpause = this.getOption(unpauseOptions, \"onPostUnpause\");\n this.state.paused = false;\n onUnpause?.();\n this.updateTabbableNodes();\n this.addListeners();\n this.updateObservedNodes();\n onPostUnpause?.();\n return this;\n });\n __publicField(this, \"updateContainerElements\", (containerElements) => {\n this.state.containers = Array.isArray(containerElements) ? containerElements.filter(Boolean) : [containerElements].filter(Boolean);\n if (this.state.active) {\n this.updateTabbableNodes();\n }\n this.updateObservedNodes();\n return this;\n });\n __publicField(this, \"getReturnFocusNode\", (previousActiveElement) => {\n const node = this.getNodeForOption(\"setReturnFocus\", {\n params: [previousActiveElement]\n });\n return node ? node : node === false ? false : previousActiveElement;\n });\n __publicField(this, \"getOption\", (configOverrideOptions, optionName, configOptionName) => {\n return configOverrideOptions && configOverrideOptions[optionName] !== void 0 ? configOverrideOptions[optionName] : (\n // @ts-expect-error\n this.config[configOptionName || optionName]\n );\n });\n __publicField(this, \"getNodeForOption\", (optionName, { hasFallback = false, params = [] } = {}) => {\n let optionValue = this.config[optionName];\n if (typeof optionValue === \"function\") optionValue = optionValue(...params);\n if (optionValue === true) optionValue = void 0;\n if (!optionValue) {\n if (optionValue === void 0 || optionValue === false) {\n return optionValue;\n }\n throw new Error(`\\`${optionName}\\` was specified but was not a node, or did not return a node`);\n }\n let node = optionValue;\n if (typeof optionValue === \"string\") {\n try {\n node = this.doc.querySelector(optionValue);\n } catch (err) {\n throw new Error(`\\`${optionName}\\` appears to be an invalid selector; error=\"${err.message}\"`);\n }\n if (!node) {\n if (!hasFallback) {\n throw new Error(`\\`${optionName}\\` as selector refers to no known node`);\n }\n }\n }\n return node;\n });\n __publicField(this, \"findNextNavNode\", (opts) => {\n const { event, isBackward = false } = opts;\n const target = opts.target || getEventTarget(event);\n this.updateTabbableNodes();\n let destinationNode = null;\n if (this.state.tabbableGroups.length > 0) {\n const containerIndex = this.findContainerIndex(target, event);\n const containerGroup = containerIndex >= 0 ? this.state.containerGroups[containerIndex] : void 0;\n if (containerIndex < 0) {\n if (isBackward) {\n destinationNode = this.state.tabbableGroups[this.state.tabbableGroups.length - 1].lastTabbableNode;\n } else {\n destinationNode = this.state.tabbableGroups[0].firstTabbableNode;\n }\n } else if (isBackward) {\n let startOfGroupIndex = this.state.tabbableGroups.findIndex(\n ({ firstTabbableNode }) => target === firstTabbableNode\n );\n if (startOfGroupIndex < 0 && (containerGroup?.container === target || isFocusable(target) && !isTabbable(target) && !containerGroup?.nextTabbableNode(target, false))) {\n startOfGroupIndex = containerIndex;\n }\n if (startOfGroupIndex >= 0) {\n const destinationGroupIndex = startOfGroupIndex === 0 ? this.state.tabbableGroups.length - 1 : startOfGroupIndex - 1;\n const destinationGroup = this.state.tabbableGroups[destinationGroupIndex];\n destinationNode = getTabIndex(target) >= 0 ? destinationGroup.lastTabbableNode : destinationGroup.lastDomTabbableNode;\n } else if (!isTabEvent(event)) {\n destinationNode = containerGroup?.nextTabbableNode(target, false);\n }\n } else {\n let lastOfGroupIndex = this.state.tabbableGroups.findIndex(\n ({ lastTabbableNode }) => target === lastTabbableNode\n );\n if (lastOfGroupIndex < 0 && (containerGroup?.container === target || isFocusable(target) && !isTabbable(target) && !containerGroup?.nextTabbableNode(target))) {\n lastOfGroupIndex = containerIndex;\n }\n if (lastOfGroupIndex >= 0) {\n const destinationGroupIndex = lastOfGroupIndex === this.state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;\n const destinationGroup = this.state.tabbableGroups[destinationGroupIndex];\n destinationNode = getTabIndex(target) >= 0 ? destinationGroup.firstTabbableNode : destinationGroup.firstDomTabbableNode;\n } else if (!isTabEvent(event)) {\n destinationNode = containerGroup?.nextTabbableNode(target);\n }\n }\n } else {\n destinationNode = this.getNodeForOption(\"fallbackFocus\");\n }\n return destinationNode;\n });\n this.trapStack = options.trapStack || sharedTrapStack;\n const config = {\n returnFocusOnDeactivate: true,\n escapeDeactivates: true,\n delayInitialFocus: true,\n isKeyForward(e) {\n return isTabEvent(e) && !e.shiftKey;\n },\n isKeyBackward(e) {\n return isTabEvent(e) && e.shiftKey;\n },\n ...options\n };\n this.doc = config.document || getDocument(Array.isArray(elements) ? elements[0] : elements);\n this.config = config;\n this.updateContainerElements(elements);\n this.setupMutationObserver();\n }\n get active() {\n return this.state.active;\n }\n get paused() {\n return this.state.paused;\n }\n findContainerIndex(element, event) {\n const composedPath = typeof event?.composedPath === \"function\" ? event.composedPath() : void 0;\n return this.state.containerGroups.findIndex(\n ({ container, tabbableNodes }) => container.contains(element) || composedPath?.includes(container) || tabbableNodes.find((node) => node === element)\n );\n }\n updateTabbableNodes() {\n this.state.containerGroups = this.state.containers.map((container) => {\n const tabbableNodes = getTabbables(container);\n const focusableNodes = getFocusables(container);\n const firstTabbableNode = tabbableNodes.length > 0 ? tabbableNodes[0] : void 0;\n const lastTabbableNode = tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : void 0;\n const firstDomTabbableNode = focusableNodes.find((node) => isTabbable(node));\n const lastDomTabbableNode = focusableNodes.slice().reverse().find((node) => isTabbable(node));\n const posTabIndexesFound = !!tabbableNodes.find((node) => getTabIndex(node) > 0);\n function nextTabbableNode(node, forward = true) {\n const nodeIdx = tabbableNodes.indexOf(node);\n if (nodeIdx < 0) {\n if (forward) {\n return focusableNodes.slice(focusableNodes.indexOf(node) + 1).find((el) => isTabbable(el));\n }\n return focusableNodes.slice(0, focusableNodes.indexOf(node)).reverse().find((el) => isTabbable(el));\n }\n return tabbableNodes[nodeIdx + (forward ? 1 : -1)];\n }\n return {\n container,\n tabbableNodes,\n focusableNodes,\n posTabIndexesFound,\n firstTabbableNode,\n lastTabbableNode,\n firstDomTabbableNode,\n lastDomTabbableNode,\n nextTabbableNode\n };\n });\n this.state.tabbableGroups = this.state.containerGroups.filter((group) => group.tabbableNodes.length > 0);\n if (this.state.tabbableGroups.length <= 0 && !this.getNodeForOption(\"fallbackFocus\")) {\n throw new Error(\n \"Your focus-trap must have at least one container with at least one tabbable node in it at all times\"\n );\n }\n if (this.state.containerGroups.find((g) => g.posTabIndexesFound) && this.state.containerGroups.length > 1) {\n throw new Error(\n \"At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.\"\n );\n }\n }\n addListeners() {\n if (!this.state.active) return;\n activeFocusTraps.activateTrap(this.trapStack, this);\n this.state.delayInitialFocusTimer = this.config.delayInitialFocus ? delay(() => {\n this.tryFocus(this.getInitialFocusNode());\n }) : this.tryFocus(this.getInitialFocusNode());\n this.listenerCleanups.push(\n addDomEvent(this.doc, \"focusin\", this.handleFocus, true),\n addDomEvent(this.doc, \"mousedown\", this.handlePointerDown, { capture: true, passive: false }),\n addDomEvent(this.doc, \"touchstart\", this.handlePointerDown, { capture: true, passive: false }),\n addDomEvent(this.doc, \"click\", this.handleClick, { capture: true, passive: false }),\n addDomEvent(this.doc, \"keydown\", this.handleTabKey, { capture: true, passive: false }),\n addDomEvent(this.doc, \"keydown\", this.handleEscapeKey)\n );\n return this;\n }\n removeListeners() {\n if (!this.state.active) return;\n this.listenerCleanups.forEach((cleanup) => cleanup());\n this.listenerCleanups = [];\n return this;\n }\n activate(activateOptions) {\n if (this.state.active) {\n return this;\n }\n const onActivate = this.getOption(activateOptions, \"onActivate\");\n const onPostActivate = this.getOption(activateOptions, \"onPostActivate\");\n const checkCanFocusTrap = this.getOption(activateOptions, \"checkCanFocusTrap\");\n if (!checkCanFocusTrap) {\n this.updateTabbableNodes();\n }\n this.state.active = true;\n this.state.paused = false;\n this.state.nodeFocusedBeforeActivation = this.doc.activeElement || null;\n onActivate?.();\n const finishActivation = () => {\n if (checkCanFocusTrap) {\n this.updateTabbableNodes();\n }\n this.addListeners();\n this.updateObservedNodes();\n onPostActivate?.();\n };\n if (checkCanFocusTrap) {\n checkCanFocusTrap(this.state.containers.concat()).then(finishActivation, finishActivation);\n return this;\n }\n finishActivation();\n return this;\n }\n};\nvar isTabEvent = (event) => event.key === \"Tab\";\nvar valueOrHandler = (value, ...params) => typeof value === \"function\" ? value(...params) : value;\nvar isEscapeEvent = (event) => !event.isComposing && event.key === \"Escape\";\nvar delay = (fn) => setTimeout(fn, 0);\nvar isSelectableInput = (node) => node.localName === \"input\" && \"select\" in node && typeof node.select === \"function\";\n\n// src/index.ts\nfunction trapFocus(el, options = {}) {\n let trap;\n const cleanup = raf(() => {\n const contentEl = typeof el === \"function\" ? el() : el;\n if (!contentEl) return;\n trap = new FocusTrap(contentEl, {\n escapeDeactivates: false,\n allowOutsideClick: true,\n preventScroll: true,\n returnFocusOnDeactivate: true,\n delayInitialFocus: false,\n fallbackFocus: contentEl,\n ...options,\n document: getDocument(contentEl)\n });\n try {\n trap.activate();\n } catch {\n }\n });\n return function destroy() {\n trap?.deactivate();\n cleanup();\n };\n}\n\nexport { FocusTrap, trapFocus };\n","import { setStyleProperty, setStyle, isIos } from '@zag-js/dom-query';\n\n// src/index.ts\nvar LOCK_CLASSNAME = \"data-scroll-lock\";\nfunction getPaddingProperty(documentElement) {\n const documentLeft = documentElement.getBoundingClientRect().left;\n const scrollbarX = Math.round(documentLeft) + documentElement.scrollLeft;\n return scrollbarX ? \"paddingLeft\" : \"paddingRight\";\n}\nfunction preventBodyScroll(_document) {\n const doc = _document ?? document;\n const win = doc.defaultView ?? window;\n const { documentElement, body } = doc;\n const locked = body.hasAttribute(LOCK_CLASSNAME);\n if (locked) return;\n body.setAttribute(LOCK_CLASSNAME, \"\");\n const scrollbarWidth = win.innerWidth - documentElement.clientWidth;\n const setScrollbarWidthProperty = () => setStyleProperty(documentElement, \"--scrollbar-width\", `${scrollbarWidth}px`);\n const paddingProperty = getPaddingProperty(documentElement);\n const setBodyStyle = () => setStyle(body, {\n overflow: \"hidden\",\n [paddingProperty]: `${scrollbarWidth}px`\n });\n const setBodyStyleIOS = () => {\n const { scrollX, scrollY, visualViewport } = win;\n const offsetLeft = visualViewport?.offsetLeft ?? 0;\n const offsetTop = visualViewport?.offsetTop ?? 0;\n const restoreStyle = setStyle(body, {\n position: \"fixed\",\n overflow: \"hidden\",\n top: `${-(scrollY - Math.floor(offsetTop))}px`,\n left: `${-(scrollX - Math.floor(offsetLeft))}px`,\n right: \"0\",\n [paddingProperty]: `${scrollbarWidth}px`\n });\n return () => {\n restoreStyle?.();\n win.scrollTo({ left: scrollX, top: scrollY, behavior: \"instant\" });\n };\n };\n const cleanups = [setScrollbarWidthProperty(), isIos() ? setBodyStyleIOS() : setBodyStyle()];\n return () => {\n cleanups.forEach((fn) => fn?.());\n body.removeAttribute(LOCK_CLASSNAME);\n };\n}\n\nexport { preventBodyScroll };\n"],"names":["counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","isIgnoredNode","walkTreeOutside","originalTarget","props","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","alreadyHidden","counterValue","markerValue","e","getParentNode","hideOthers","raf","fn","frameId","ariaHidden","targetsOrFn","options","defer","func","v","cleanups","elements","__defProp","__defNormalProp","obj","key","value","__publicField","activeFocusTraps","trapStack","trap","activeTrap","trapIndex","sharedTrapStack","FocusTrap","event","getEventTarget","targetContained","isDocument","nextNode","navAcrossContainers","getTabIndex","mruContainerIdx","tabbableNodes","mruTabIdx","g","n","valueOrHandler","isBackward","destinationNode","isTabEvent","isEscapeEvent","win","mutations","mutation","container","isFocusable","firstTabbableGroup","getActiveElement","isSelectableInput","deactivateOptions","onDeactivate","onPostDeactivate","checkCanReturnFocus","returnFocus","finishDeactivation","delay","returnFocusNode","pauseOptions","onPause","onPostPause","unpauseOptions","onUnpause","onPostUnpause","containerElements","previousActiveElement","configOverrideOptions","optionName","configOptionName","hasFallback","params","optionValue","err","opts","containerIndex","containerGroup","startOfGroupIndex","firstTabbableNode","isTabbable","destinationGroupIndex","destinationGroup","lastOfGroupIndex","lastTabbableNode","config","getDocument","element","composedPath","getTabbables","focusableNodes","getFocusables","firstDomTabbableNode","lastDomTabbableNode","posTabIndexesFound","nextTabbableNode","forward","nodeIdx","group","addDomEvent","cleanup","activateOptions","onActivate","onPostActivate","checkCanFocusTrap","finishActivation","trapFocus","contentEl","LOCK_CLASSNAME","getPaddingProperty","documentElement","documentLeft","preventBodyScroll","_document","doc","body","scrollbarWidth","setScrollbarWidthProperty","setStyleProperty","paddingProperty","setBodyStyle","setStyle","setBodyStyleIOS","scrollX","scrollY","visualViewport","offsetLeft","offsetTop","restoreStyle","isIos"],"mappings":"oDACA,IAA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,WAAa,EACzCG,EAAeP,EAAQ,SAACN,EAAM,CAClC,SAAU,QACV,SAAU,SACV,IAAK,GAAG,EAAES,EAAU,KAAK,MAAMG,CAAS,EAAE,KAC1C,KAAM,GAAG,EAAEJ,EAAU,KAAK,MAAMG,CAAU,EAAE,KAC5C,MAAO,IACP,CAACP,CAAe,EAAG,GAAGH,CAAc,IAC1C,CAAK,EACD,MAAO,IAAM,CACXY,IAAgB,EAChBpF,EAAI,SAAS,CAAE,KAAM+E,EAAS,IAAKC,EAAS,SAAU,UAAW,CAClE,CACF,EACKhH,EAAW,CAACyG,EAA2B,EAAEY,EAAK,MAAA,EAAKP,EAAe,EAAKF,GAAc,EAC3F,MAAO,IAAM,CACX5G,EAAS,QAASR,GAAOA,IAAE,CAAI,EAC/B+G,EAAK,gBAAgBP,CAAc,CACpC,CACH","x_google_ignoreList":[0,1,2]}
@@ -1,86 +0,0 @@
1
- import * as t from "react";
2
- var K = (e, i, a, u, m, l, d, h) => {
3
- let c = document.documentElement, v = ["light", "dark"];
4
- function f(r) {
5
- (Array.isArray(e) ? e : [e]).forEach((y) => {
6
- let S = y === "class", k = S && l ? m.map((b) => l[b] || b) : m;
7
- S ? (c.classList.remove(...k), c.classList.add(l && l[r] ? l[r] : r)) : c.setAttribute(y, r);
8
- }), C(r);
9
- }
10
- function C(r) {
11
- h && v.includes(r) && (c.style.colorScheme = r);
12
- }
13
- function s() {
14
- return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
15
- }
16
- if (u) f(u);
17
- else try {
18
- let r = localStorage.getItem(i) || a, y = d && r === "system" ? s() : r;
19
- f(y);
20
- } catch {
21
- }
22
- }, I = ["light", "dark"], P = "(prefers-color-scheme: dark)", N = typeof window > "u", A = t.createContext(void 0), V = { setTheme: (e) => {
23
- }, themes: [] }, $ = () => {
24
- var e;
25
- return (e = t.useContext(A)) != null ? e : V;
26
- }, j = (e) => t.useContext(A) ? t.createElement(t.Fragment, null, e.children) : t.createElement(_, { ...e }), W = ["light", "dark"], _ = ({ forcedTheme: e, disableTransitionOnChange: i = !1, enableSystem: a = !0, enableColorScheme: u = !0, storageKey: m = "theme", themes: l = W, defaultTheme: d = a ? "system" : "light", attribute: h = "data-theme", value: c, children: v, nonce: f, scriptProps: C }) => {
27
- let [s, r] = t.useState(() => J(m, d)), [y, S] = t.useState(() => s === "system" ? L() : s), k = c ? Object.values(c) : l, b = t.useCallback((n) => {
28
- let o = n;
29
- if (!o) return;
30
- n === "system" && a && (o = L());
31
- let g = c ? c[o] : o, x = i ? R(f) : null, w = document.documentElement, M = (p) => {
32
- p === "class" ? (w.classList.remove(...k), g && w.classList.add(g)) : p.startsWith("data-") && (g ? w.setAttribute(p, g) : w.removeAttribute(p));
33
- };
34
- if (Array.isArray(h) ? h.forEach(M) : M(h), u) {
35
- let p = I.includes(d) ? d : null, H = I.includes(o) ? o : p;
36
- w.style.colorScheme = H;
37
- }
38
- x?.();
39
- }, [f]), E = t.useCallback((n) => {
40
- let o = typeof n == "function" ? n(s) : n;
41
- r(o);
42
- try {
43
- localStorage.setItem(m, o);
44
- } catch {
45
- }
46
- }, [s]), T = t.useCallback((n) => {
47
- let o = L(n);
48
- S(o), s === "system" && a && !e && b("system");
49
- }, [s, e]);
50
- t.useEffect(() => {
51
- let n = window.matchMedia(P);
52
- return n.addListener(T), T(n), () => n.removeListener(T);
53
- }, [T]), t.useEffect(() => {
54
- let n = (o) => {
55
- o.key === m && (o.newValue ? r(o.newValue) : E(d));
56
- };
57
- return window.addEventListener("storage", n), () => window.removeEventListener("storage", n);
58
- }, [E]), t.useEffect(() => {
59
- b(e ?? s);
60
- }, [e, s]);
61
- let O = t.useMemo(() => ({ theme: s, setTheme: E, forcedTheme: e, resolvedTheme: s === "system" ? y : s, themes: a ? [...l, "system"] : l, systemTheme: a ? y : void 0 }), [s, E, e, y, a, l]);
62
- return t.createElement(A.Provider, { value: O }, t.createElement(z, { forcedTheme: e, storageKey: m, attribute: h, enableSystem: a, enableColorScheme: u, defaultTheme: d, value: c, themes: l, nonce: f, scriptProps: C }), v);
63
- }, z = t.memo(({ forcedTheme: e, storageKey: i, attribute: a, enableSystem: u, enableColorScheme: m, defaultTheme: l, value: d, themes: h, nonce: c, scriptProps: v }) => {
64
- let f = JSON.stringify([a, i, l, e, h, d, u, m]).slice(1, -1);
65
- return t.createElement("script", { ...v, suppressHydrationWarning: !0, nonce: typeof window > "u" ? c : "", dangerouslySetInnerHTML: { __html: `(${K.toString()})(${f})` } });
66
- }), J = (e, i) => {
67
- if (N) return;
68
- let a;
69
- try {
70
- a = localStorage.getItem(e) || void 0;
71
- } catch {
72
- }
73
- return a || i;
74
- }, R = (e) => {
75
- let i = document.createElement("style");
76
- return e && i.setAttribute("nonce", e), i.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")), document.head.appendChild(i), () => {
77
- window.getComputedStyle(document.body), setTimeout(() => {
78
- document.head.removeChild(i);
79
- }, 1);
80
- };
81
- }, L = (e) => (e || (e = window.matchMedia(P)), e.matches ? "dark" : "light");
82
- export {
83
- j as J,
84
- $ as z
85
- };
86
- //# sourceMappingURL=index-DAWHN3cH.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-DAWHN3cH.js","sources":["../../node_modules/next-themes/dist/index.mjs"],"sourcesContent":["\"use client\";import*as t from\"react\";var M=(e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=[\"light\",\"dark\"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y===\"class\",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n===\"system\"?c():n;p(y)}catch(n){}};var b=[\"light\",\"dark\"],I=\"(prefers-color-scheme: dark)\",O=typeof window==\"undefined\",x=t.createContext(void 0),U={setTheme:e=>{},themes:[]},z=()=>{var e;return(e=t.useContext(x))!=null?e:U},J=e=>t.useContext(x)?t.createElement(t.Fragment,null,e.children):t.createElement(V,{...e}),N=[\"light\",\"dark\"],V=({forcedTheme:e,disableTransitionOnChange:i=!1,enableSystem:s=!0,enableColorScheme:u=!0,storageKey:m=\"theme\",themes:a=N,defaultTheme:l=s?\"system\":\"light\",attribute:h=\"data-theme\",value:d,children:w,nonce:p,scriptProps:R})=>{let[c,n]=t.useState(()=>H(m,l)),[T,y]=t.useState(()=>c===\"system\"?E():c),k=d?Object.values(d):a,S=t.useCallback(o=>{let r=o;if(!r)return;o===\"system\"&&s&&(r=E());let v=d?d[r]:r,C=i?W(p):null,P=document.documentElement,L=g=>{g===\"class\"?(P.classList.remove(...k),v&&P.classList.add(v)):g.startsWith(\"data-\")&&(v?P.setAttribute(g,v):P.removeAttribute(g))};if(Array.isArray(h)?h.forEach(L):L(h),u){let g=b.includes(l)?l:null,D=b.includes(r)?r:g;P.style.colorScheme=D}C==null||C()},[p]),f=t.useCallback(o=>{let r=typeof o==\"function\"?o(c):o;n(r);try{localStorage.setItem(m,r)}catch(v){}},[c]),A=t.useCallback(o=>{let r=E(o);y(r),c===\"system\"&&s&&!e&&S(\"system\")},[c,e]);t.useEffect(()=>{let o=window.matchMedia(I);return o.addListener(A),A(o),()=>o.removeListener(A)},[A]),t.useEffect(()=>{let o=r=>{r.key===m&&(r.newValue?n(r.newValue):f(l))};return window.addEventListener(\"storage\",o),()=>window.removeEventListener(\"storage\",o)},[f]),t.useEffect(()=>{S(e!=null?e:c)},[e,c]);let Q=t.useMemo(()=>({theme:c,setTheme:f,forcedTheme:e,resolvedTheme:c===\"system\"?T:c,themes:s?[...a,\"system\"]:a,systemTheme:s?T:void 0}),[c,f,e,T,s,a]);return t.createElement(x.Provider,{value:Q},t.createElement(_,{forcedTheme:e,storageKey:m,attribute:h,enableSystem:s,enableColorScheme:u,defaultTheme:l,value:d,themes:a,nonce:p,scriptProps:R}),w)},_=t.memo(({forcedTheme:e,storageKey:i,attribute:s,enableSystem:u,enableColorScheme:m,defaultTheme:a,value:l,themes:h,nonce:d,scriptProps:w})=>{let p=JSON.stringify([s,i,a,e,h,l,u,m]).slice(1,-1);return t.createElement(\"script\",{...w,suppressHydrationWarning:!0,nonce:typeof window==\"undefined\"?d:\"\",dangerouslySetInnerHTML:{__html:`(${M.toString()})(${p})`}})}),H=(e,i)=>{if(O)return;let s;try{s=localStorage.getItem(e)||void 0}catch(u){}return s||i},W=e=>{let i=document.createElement(\"style\");return e&&i.setAttribute(\"nonce\",e),i.appendChild(document.createTextNode(\"*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}\")),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(i)},1)}},E=e=>(e||(e=window.matchMedia(I)),e.matches?\"dark\":\"light\");export{J as ThemeProvider,z as useTheme};\n"],"names":["M","s","a","l","d","w","p","n","k","S","f","R","c","b","I","O","x","t","U","z","J","V","N","H","T","y","E","o","r","v","C","W","P","L","g","D","A","Q","_"],"mappings":";AAAqC,IAAIA,IAAE,CAAC,GAAE,GAAEC,GAAE,GAAE,GAAEC,GAAEC,GAAE,MAAI;AAAC,MAAIC,IAAE,SAAS,iBAAgBC,IAAE,CAAC,SAAQ,MAAM;AAAE,WAASC,EAAEC,GAAE;AAAC,KAAC,MAAM,QAAQ,CAAC,IAAE,IAAE,CAAC,CAAC,GAAG,QAAQ,OAAG;AAAC,UAAIC,IAAE,MAAI,SAAQC,IAAED,KAAGN,IAAE,EAAE,IAAI,CAAAQ,MAAGR,EAAEQ,CAAC,KAAGA,CAAC,IAAE;AAAE,MAAAF,KAAGJ,EAAE,UAAU,OAAO,GAAGK,CAAC,GAAEL,EAAE,UAAU,IAAIF,KAAGA,EAAEK,CAAC,IAAE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E,YAAW,GAAE,WAAUhB,GAAE,cAAa,GAAE,mBAAkB,GAAE,cAAaC,GAAE,OAAMC,GAAE,QAAO,GAAE,OAAMC,GAAE,aAAYC,EAAC,MAAI;AAAC,MAAIC,IAAE,KAAK,UAAU,CAACL,GAAE,GAAEC,GAAE,GAAE,GAAEC,GAAE,GAAE,CAAC,CAAC,EAAE,MAAM,GAAE,EAAE;AAAE,SAAOc,EAAE,cAAc,UAAS,EAAC,GAAGZ,GAAE,0BAAyB,IAAG,OAAM,OAAO,SAAQ,MAAYD,IAAE,IAAG,yBAAwB,EAAC,QAAO,IAAIJ,EAAE,UAAU,KAAKM,CAAC,IAAG,EAAC,CAAC;AAAC,CAAC,GAAEiB,IAAE,CAAC,GAAE,MAAI;AAAC,MAAGR,EAAE;AAAO,MAAId;AAAE,MAAG;AAAC,IAAAA,IAAE,aAAa,QAAQ,CAAC,KAAG;AAAA,EAAM,QAAS;AAAA,EAAE;AAAA,SAAOA,KAAG;AAAC,GAAE8B,IAAE,OAAG;AAAC,MAAI,IAAE,SAAS,cAAc,OAAO;AAAE,SAAO,KAAG,EAAE,aAAa,SAAQ,CAAC,GAAE,EAAE,YAAY,SAAS,eAAe,6KAA6K,CAAC,GAAE,SAAS,KAAK,YAAY,CAAC,GAAE,MAAI;AAAC,WAAO,iBAAiB,SAAS,IAAI,GAAE,WAAW,MAAI;AAAC,eAAS,KAAK,YAAY,CAAC;AAAA,IAAC,GAAE,CAAC;AAAA,EAAC;AAAC,GAAEL,IAAE,QAAI,MAAI,IAAE,OAAO,WAAWZ,CAAC,IAAG,EAAE,UAAQ,SAAO;","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";const d=require("./index-CHIISuTq.js"),p=require("./index-DbTEJc-K.js"),y=require("./use-locale-context-D0LByRu9.js");var b=d.createAnatomy("switch").parts("root","label","control","thumb"),h=b.build(),T=e=>e.ids?.root??`switch:${e.id}`,v=e=>e.ids?.label??`switch:${e.id}:label`,V=e=>e.ids?.thumb??`switch:${e.id}:thumb`,I=e=>e.ids?.control??`switch:${e.id}:control`,f=e=>e.ids?.hiddenInput??`switch:${e.id}:input`,P=e=>e.getById(T(e)),n=e=>e.getById(f(e));function S(e,t){const{context:a,send:s,prop:r,scope:i}=e,o=r("disabled"),k=r("readOnly"),l=!!a.get("checked"),g=!o&&a.get("focused"),m=!o&&a.get("focusVisible"),u={"data-active":d.dataAttr(a.get("active")),"data-focus":d.dataAttr(g),"data-focus-visible":d.dataAttr(m),"data-readonly":d.dataAttr(k),"data-hover":d.dataAttr(a.get("hovered")),"data-disabled":d.dataAttr(o),"data-state":l?"checked":"unchecked","data-invalid":d.dataAttr(r("invalid"))};return{checked:l,disabled:o,focused:g,setChecked(c){s({type:"CHECKED.SET",checked:c,isTrusted:!1})},toggleChecked(){s({type:"CHECKED.TOGGLE",checked:l,isTrusted:!1})},getRootProps(){return t.label({...h.root.attrs,...u,dir:r("dir"),id:T(i),htmlFor:f(i),onPointerMove(){o||s({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){o||s({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(c){if(o)return;d.getEventTarget(c)===n(i)&&c.stopPropagation(),d.isSafari()&&n(i)?.focus()}})},getLabelProps(){return t.element({...h.label.attrs,...u,dir:r("dir"),id:v(i)})},getThumbProps(){return t.element({...h.thumb.attrs,...u,dir:r("dir"),id:V(i),"aria-hidden":!0})},getControlProps(){return t.element({...h.control.attrs,...u,dir:r("dir"),id:I(i),"aria-hidden":!0})},getHiddenInputProps(){return t.input({id:f(i),type:"checkbox",required:r("required"),defaultChecked:l,disabled:o,"aria-labelledby":v(i),"aria-invalid":r("invalid"),name:r("name"),form:r("form"),value:r("value"),style:d.visuallyHiddenStyle,onFocus(){const c=p.isFocusVisible();s({type:"CONTEXT.SET",context:{focused:!0,focusVisible:c}})},onBlur(){s({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(c){if(k){c.preventDefault();return}const C=c.currentTarget.checked;s({type:"CHECKED.SET",checked:C,isTrusted:!0})}})}}}var{not:E}=d.createGuards(),D=d.createMachine({props({props:e}){return{defaultChecked:!1,label:"switch",value:"on",...e}},initialState(){return"ready"},context({prop:e,bindable:t}){return{checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(a){e("onCheckedChange")?.({checked:a})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}},computed:{isDisabled:({context:e,prop:t})=>t("disabled")||e.get("fieldsetDisabled")},watch({track:e,prop:t,context:a,action:s}){e([()=>t("disabled")],()=>{s(["removeFocusIfNeeded"])}),e([()=>a.get("checked")],()=>{s(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:E("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:E("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({computed:e,scope:t,context:a}){if(!e("isDisabled"))return d.trackPress({pointerNode:P(t),keyboardNode:n(t),isValidKey:s=>s.key===" ",onPress:()=>a.set("active",!1),onPressStart:()=>a.set("active",!0),onPressEnd:()=>a.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("isDisabled"))return p.trackFocusVisible({root:t.getRootNode()})},trackFormControlState({context:e,send:t,scope:a}){return d.trackFormControl(n(a),{onFieldsetDisabledChange(s){e.set("fieldsetDisabled",s)},onFormReset(){const s=e.initial("checked");t({type:"CHECKED.SET",checked:!!s,src:"form-reset"})}})}},actions:{setContext({context:e,event:t}){for(const a in t.context)e.set(a,t.context[a])},syncInputElement({context:e,scope:t}){const a=n(t);a&&d.setElementChecked(a,!!e.get("checked"))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.set("focused",!1)},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e}){e.set("checked",!e.get("checked"))},dispatchChangeEvent({context:e,scope:t}){const a=n(t);d.dispatchInputCheckedEvent(a,{checked:e.get("checked")})}}}});y.createProps()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);exports.anatomy=b;exports.connect=S;exports.machine=D;
2
- //# sourceMappingURL=index-DBk0LkcO.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-DBk0LkcO.js","sources":["../../node_modules/@zag-js/switch/dist/index.mjs"],"sourcesContent":["import { createAnatomy } from '@zag-js/anatomy';\nimport { dispatchInputCheckedEvent, setElementChecked, trackFormControl, trackPress, dataAttr, visuallyHiddenStyle, getEventTarget, isSafari } from '@zag-js/dom-query';\nimport { trackFocusVisible, isFocusVisible } from '@zag-js/focus-visible';\nimport { createGuards, createMachine } from '@zag-js/core';\nimport { createProps } from '@zag-js/types';\nimport { createSplitProps } from '@zag-js/utils';\n\n// src/switch.anatomy.ts\nvar anatomy = createAnatomy(\"switch\").parts(\"root\", \"label\", \"control\", \"thumb\");\nvar parts = anatomy.build();\n\n// src/switch.dom.ts\nvar getRootId = (ctx) => ctx.ids?.root ?? `switch:${ctx.id}`;\nvar getLabelId = (ctx) => ctx.ids?.label ?? `switch:${ctx.id}:label`;\nvar getThumbId = (ctx) => ctx.ids?.thumb ?? `switch:${ctx.id}:thumb`;\nvar getControlId = (ctx) => ctx.ids?.control ?? `switch:${ctx.id}:control`;\nvar getHiddenInputId = (ctx) => ctx.ids?.hiddenInput ?? `switch:${ctx.id}:input`;\nvar getRootEl = (ctx) => ctx.getById(getRootId(ctx));\nvar getHiddenInputEl = (ctx) => ctx.getById(getHiddenInputId(ctx));\n\n// src/switch.connect.ts\nfunction connect(service, normalize) {\n const { context, send, prop, scope } = service;\n const disabled = prop(\"disabled\");\n const readOnly = prop(\"readOnly\");\n const checked = !!context.get(\"checked\");\n const focused = !disabled && context.get(\"focused\");\n const focusVisible = !disabled && context.get(\"focusVisible\");\n const dataAttrs = {\n \"data-active\": dataAttr(context.get(\"active\")),\n \"data-focus\": dataAttr(focused),\n \"data-focus-visible\": dataAttr(focusVisible),\n \"data-readonly\": dataAttr(readOnly),\n \"data-hover\": dataAttr(context.get(\"hovered\")),\n \"data-disabled\": dataAttr(disabled),\n \"data-state\": checked ? \"checked\" : \"unchecked\",\n \"data-invalid\": dataAttr(prop(\"invalid\"))\n };\n return {\n checked,\n disabled,\n focused,\n setChecked(checked2) {\n send({ type: \"CHECKED.SET\", checked: checked2, isTrusted: false });\n },\n toggleChecked() {\n send({ type: \"CHECKED.TOGGLE\", checked, isTrusted: false });\n },\n getRootProps() {\n return normalize.label({\n ...parts.root.attrs,\n ...dataAttrs,\n dir: prop(\"dir\"),\n id: getRootId(scope),\n htmlFor: getHiddenInputId(scope),\n onPointerMove() {\n if (disabled) return;\n send({ type: \"CONTEXT.SET\", context: { hovered: true } });\n },\n onPointerLeave() {\n if (disabled) return;\n send({ type: \"CONTEXT.SET\", context: { hovered: false } });\n },\n onClick(event) {\n if (disabled) return;\n const target = getEventTarget(event);\n if (target === getHiddenInputEl(scope)) {\n event.stopPropagation();\n }\n if (isSafari()) {\n getHiddenInputEl(scope)?.focus();\n }\n }\n });\n },\n getLabelProps() {\n return normalize.element({\n ...parts.label.attrs,\n ...dataAttrs,\n dir: prop(\"dir\"),\n id: getLabelId(scope)\n });\n },\n getThumbProps() {\n return normalize.element({\n ...parts.thumb.attrs,\n ...dataAttrs,\n dir: prop(\"dir\"),\n id: getThumbId(scope),\n \"aria-hidden\": true\n });\n },\n getControlProps() {\n return normalize.element({\n ...parts.control.attrs,\n ...dataAttrs,\n dir: prop(\"dir\"),\n id: getControlId(scope),\n \"aria-hidden\": true\n });\n },\n getHiddenInputProps() {\n return normalize.input({\n id: getHiddenInputId(scope),\n type: \"checkbox\",\n required: prop(\"required\"),\n defaultChecked: checked,\n disabled,\n \"aria-labelledby\": getLabelId(scope),\n \"aria-invalid\": prop(\"invalid\"),\n name: prop(\"name\"),\n form: prop(\"form\"),\n value: prop(\"value\"),\n style: visuallyHiddenStyle,\n onFocus() {\n const focusVisible2 = isFocusVisible();\n send({ type: \"CONTEXT.SET\", context: { focused: true, focusVisible: focusVisible2 } });\n },\n onBlur() {\n send({ type: \"CONTEXT.SET\", context: { focused: false, focusVisible: false } });\n },\n onClick(event) {\n if (readOnly) {\n event.preventDefault();\n return;\n }\n const checked2 = event.currentTarget.checked;\n send({ type: \"CHECKED.SET\", checked: checked2, isTrusted: true });\n }\n });\n }\n };\n}\nvar { not } = createGuards();\nvar machine = createMachine({\n props({ props: props2 }) {\n return {\n defaultChecked: false,\n label: \"switch\",\n value: \"on\",\n ...props2\n };\n },\n initialState() {\n return \"ready\";\n },\n context({ prop, bindable }) {\n return {\n checked: bindable(() => ({\n defaultValue: prop(\"defaultChecked\"),\n value: prop(\"checked\"),\n onChange(value) {\n prop(\"onCheckedChange\")?.({ checked: value });\n }\n })),\n fieldsetDisabled: bindable(() => ({\n defaultValue: false\n })),\n focusVisible: bindable(() => ({\n defaultValue: false\n })),\n active: bindable(() => ({\n defaultValue: false\n })),\n focused: bindable(() => ({\n defaultValue: false\n })),\n hovered: bindable(() => ({\n defaultValue: false\n }))\n };\n },\n computed: {\n isDisabled: ({ context, prop }) => prop(\"disabled\") || context.get(\"fieldsetDisabled\")\n },\n watch({ track, prop, context, action }) {\n track([() => prop(\"disabled\")], () => {\n action([\"removeFocusIfNeeded\"]);\n });\n track([() => context.get(\"checked\")], () => {\n action([\"syncInputElement\"]);\n });\n },\n effects: [\"trackFormControlState\", \"trackPressEvent\", \"trackFocusVisible\"],\n on: {\n \"CHECKED.TOGGLE\": [\n {\n guard: not(\"isTrusted\"),\n actions: [\"toggleChecked\", \"dispatchChangeEvent\"]\n },\n {\n actions: [\"toggleChecked\"]\n }\n ],\n \"CHECKED.SET\": [\n {\n guard: not(\"isTrusted\"),\n actions: [\"setChecked\", \"dispatchChangeEvent\"]\n },\n {\n actions: [\"setChecked\"]\n }\n ],\n \"CONTEXT.SET\": {\n actions: [\"setContext\"]\n }\n },\n states: {\n ready: {}\n },\n implementations: {\n guards: {\n isTrusted: ({ event }) => !!event.isTrusted\n },\n effects: {\n trackPressEvent({ computed, scope, context }) {\n if (computed(\"isDisabled\")) return;\n return trackPress({\n pointerNode: getRootEl(scope),\n keyboardNode: getHiddenInputEl(scope),\n isValidKey: (event) => event.key === \" \",\n onPress: () => context.set(\"active\", false),\n onPressStart: () => context.set(\"active\", true),\n onPressEnd: () => context.set(\"active\", false)\n });\n },\n trackFocusVisible({ computed, scope }) {\n if (computed(\"isDisabled\")) return;\n return trackFocusVisible({ root: scope.getRootNode() });\n },\n trackFormControlState({ context, send, scope }) {\n return trackFormControl(getHiddenInputEl(scope), {\n onFieldsetDisabledChange(disabled) {\n context.set(\"fieldsetDisabled\", disabled);\n },\n onFormReset() {\n const checked = context.initial(\"checked\");\n send({ type: \"CHECKED.SET\", checked: !!checked, src: \"form-reset\" });\n }\n });\n }\n },\n actions: {\n setContext({ context, event }) {\n for (const key in event.context) {\n context.set(key, event.context[key]);\n }\n },\n syncInputElement({ context, scope }) {\n const inputEl = getHiddenInputEl(scope);\n if (!inputEl) return;\n setElementChecked(inputEl, !!context.get(\"checked\"));\n },\n removeFocusIfNeeded({ context, prop }) {\n if (prop(\"disabled\")) {\n context.set(\"focused\", false);\n }\n },\n setChecked({ context, event }) {\n context.set(\"checked\", event.checked);\n },\n toggleChecked({ context }) {\n context.set(\"checked\", !context.get(\"checked\"));\n },\n dispatchChangeEvent({ context, scope }) {\n const inputEl = getHiddenInputEl(scope);\n dispatchInputCheckedEvent(inputEl, { checked: context.get(\"checked\") });\n }\n }\n }\n});\nvar props = createProps()([\n \"checked\",\n \"defaultChecked\",\n \"dir\",\n \"disabled\",\n \"form\",\n \"getRootNode\",\n \"id\",\n \"ids\",\n \"invalid\",\n \"label\",\n \"name\",\n \"onCheckedChange\",\n \"readOnly\",\n \"required\",\n \"value\"\n]);\nvar splitProps = createSplitProps(props);\n\nexport { anatomy, connect, machine, props, splitProps };\n"],"names":["anatomy","createAnatomy","parts","getRootId","ctx","getLabelId","getThumbId","getControlId","getHiddenInputId","getRootEl","getHiddenInputEl","connect","service","normalize","context","send","prop","scope","disabled","readOnly","checked","focused","focusVisible","dataAttrs","dataAttr","checked2","event","getEventTarget","isSafari","visuallyHiddenStyle","focusVisible2","isFocusVisible","not","createGuards","machine","createMachine","props2","bindable","value","track","action","computed","trackPress","trackFocusVisible","trackFormControl","key","inputEl","setElementChecked","dispatchInputCheckedEvent","createProps"],"mappings":"mIAQG,IAACA,EAAUC,EAAa,cAAC,QAAQ,EAAE,MAAM,OAAQ,QAAS,UAAW,OAAO,EAC3EC,EAAQF,EAAQ,MAAO,EAGvBG,EAAaC,GAAQA,EAAI,KAAK,MAAQ,UAAUA,EAAI,EAAE,GACtDC,EAAcD,GAAQA,EAAI,KAAK,OAAS,UAAUA,EAAI,EAAE,SACxDE,EAAcF,GAAQA,EAAI,KAAK,OAAS,UAAUA,EAAI,EAAE,SACxDG,EAAgBH,GAAQA,EAAI,KAAK,SAAW,UAAUA,EAAI,EAAE,WAC5DI,EAAoBJ,GAAQA,EAAI,KAAK,aAAe,UAAUA,EAAI,EAAE,SACpEK,EAAaL,GAAQA,EAAI,QAAQD,EAAUC,CAAG,CAAC,EAC/CM,EAAoBN,GAAQA,EAAI,QAAQI,EAAiBJ,CAAG,CAAC,EAGjE,SAASO,EAAQC,EAASC,EAAW,CACnC,KAAM,CAAE,QAAAC,EAAS,KAAAC,EAAM,KAAAC,EAAM,MAAAC,CAAO,EAAGL,EACjCM,EAAWF,EAAK,UAAU,EAC1BG,EAAWH,EAAK,UAAU,EAC1BI,EAAU,CAAC,CAACN,EAAQ,IAAI,SAAS,EACjCO,EAAU,CAACH,GAAYJ,EAAQ,IAAI,S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ACD,EAAS,CAAC,CAAChC,EAAQ,IAAI,SAAS,CAAC,CACpD,EACD,oBAAoB,CAAE,QAAAA,EAAS,KAAAE,GAAQ,CACjCA,EAAK,UAAU,GACjBF,EAAQ,IAAI,UAAW,EAAK,CAE/B,EACD,WAAW,CAAE,QAAAA,EAAS,MAAAY,GAAS,CAC7BZ,EAAQ,IAAI,UAAWY,EAAM,OAAO,CACrC,EACD,cAAc,CAAE,QAAAZ,GAAW,CACzBA,EAAQ,IAAI,UAAW,CAACA,EAAQ,IAAI,SAAS,CAAC,CAC/C,EACD,oBAAoB,CAAE,QAAAA,EAAS,MAAAG,GAAS,CACtC,MAAM6B,EAAUpC,EAAiBO,CAAK,EACtC+B,EAAyB,0BAACF,EAAS,CAAE,QAAShC,EAAQ,IAAI,SAAS,EAAG,CAC9E,CACA,CACA,CACA,CAAC,EACWmC,EAAAA,cAAc,CACxB,UACA,iBACA,MACA,WACA,OACA,cACA,KACA,MACA,UACA,QACA,OACA,kBACA,WACA,WACA,OACF,CAAC","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";const I=require("react");function z(e){if(e&&e.__esModule)return e;const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const m=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,m.get?m:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=z(I);var N=(e,n,t,m,u,c,d,h)=>{let i=document.documentElement,b=["light","dark"];function f(o){(Array.isArray(e)?e:[e]).forEach(y=>{let S=y==="class",C=S&&c?u.map(g=>c[g]||g):u;S?(i.classList.remove(...C),i.classList.add(c&&c[o]?c[o]:o)):i.setAttribute(y,o)}),k(o)}function k(o){h&&b.includes(o)&&(i.style.colorScheme=o)}function l(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(m)f(m);else try{let o=localStorage.getItem(n)||t,y=d&&o==="system"?l():o;f(y)}catch{}},_=["light","dark"],P="(prefers-color-scheme: dark)",H=typeof window>"u",A=r.createContext(void 0),J={setTheme:e=>{},themes:[]},K=()=>{var e;return(e=r.useContext(A))!=null?e:J},R=e=>r.useContext(A)?r.createElement(r.Fragment,null,e.children):r.createElement(W,{...e}),V=["light","dark"],W=({forcedTheme:e,disableTransitionOnChange:n=!1,enableSystem:t=!0,enableColorScheme:m=!0,storageKey:u="theme",themes:c=V,defaultTheme:d=t?"system":"light",attribute:h="data-theme",value:i,children:b,nonce:f,scriptProps:k})=>{let[l,o]=r.useState(()=>$(u,d)),[y,S]=r.useState(()=>l==="system"?L():l),C=i?Object.values(i):c,g=r.useCallback(a=>{let s=a;if(!s)return;a==="system"&&t&&(s=L());let v=i?i[s]:s,O=n?q(f):null,w=document.documentElement,M=p=>{p==="class"?(w.classList.remove(...C),v&&w.classList.add(v)):p.startsWith("data-")&&(v?w.setAttribute(p,v):w.removeAttribute(p))};if(Array.isArray(h)?h.forEach(M):M(h),m){let p=_.includes(d)?d:null,x=_.includes(s)?s:p;w.style.colorScheme=x}O?.()},[f]),T=r.useCallback(a=>{let s=typeof a=="function"?a(l):a;o(s);try{localStorage.setItem(u,s)}catch{}},[l]),E=r.useCallback(a=>{let s=L(a);S(s),l==="system"&&t&&!e&&g("system")},[l,e]);r.useEffect(()=>{let a=window.matchMedia(P);return a.addListener(E),E(a),()=>a.removeListener(E)},[E]),r.useEffect(()=>{let a=s=>{s.key===u&&(s.newValue?o(s.newValue):T(d))};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)},[T]),r.useEffect(()=>{g(e??l)},[e,l]);let j=r.useMemo(()=>({theme:l,setTheme:T,forcedTheme:e,resolvedTheme:l==="system"?y:l,themes:t?[...c,"system"]:c,systemTheme:t?y:void 0}),[l,T,e,y,t,c]);return r.createElement(A.Provider,{value:j},r.createElement(D,{forcedTheme:e,storageKey:u,attribute:h,enableSystem:t,enableColorScheme:m,defaultTheme:d,value:i,themes:c,nonce:f,scriptProps:k}),b)},D=r.memo(({forcedTheme:e,storageKey:n,attribute:t,enableSystem:m,enableColorScheme:u,defaultTheme:c,value:d,themes:h,nonce:i,scriptProps:b})=>{let f=JSON.stringify([t,n,c,e,h,d,m,u]).slice(1,-1);return r.createElement("script",{...b,suppressHydrationWarning:!0,nonce:typeof window>"u"?i:"",dangerouslySetInnerHTML:{__html:`(${N.toString()})(${f})`}})}),$=(e,n)=>{if(H)return;let t;try{t=localStorage.getItem(e)||void 0}catch{}return t||n},q=e=>{let n=document.createElement("style");return e&&n.setAttribute("nonce",e),n.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(n)},1)}},L=e=>(e||(e=window.matchMedia(P)),e.matches?"dark":"light");exports.J=R;exports.z=K;
2
- //# sourceMappingURL=index-DD49WSSW.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-DD49WSSW.js","sources":["../../node_modules/next-themes/dist/index.mjs"],"sourcesContent":["\"use client\";import*as t from\"react\";var M=(e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=[\"light\",\"dark\"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y===\"class\",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n===\"system\"?c():n;p(y)}catch(n){}};var b=[\"light\",\"dark\"],I=\"(prefers-color-scheme: dark)\",O=typeof window==\"undefined\",x=t.createContext(void 0),U={setTheme:e=>{},themes:[]},z=()=>{var e;return(e=t.useContext(x))!=null?e:U},J=e=>t.useContext(x)?t.createElement(t.Fragment,null,e.children):t.createElement(V,{...e}),N=[\"light\",\"dark\"],V=({forcedTheme:e,disableTransitionOnChange:i=!1,enableSystem:s=!0,enableColorScheme:u=!0,storageKey:m=\"theme\",themes:a=N,defaultTheme:l=s?\"system\":\"light\",attribute:h=\"data-theme\",value:d,children:w,nonce:p,scriptProps:R})=>{let[c,n]=t.useState(()=>H(m,l)),[T,y]=t.useState(()=>c===\"system\"?E():c),k=d?Object.values(d):a,S=t.useCallback(o=>{let r=o;if(!r)return;o===\"system\"&&s&&(r=E());let v=d?d[r]:r,C=i?W(p):null,P=document.documentElement,L=g=>{g===\"class\"?(P.classList.remove(...k),v&&P.classList.add(v)):g.startsWith(\"data-\")&&(v?P.setAttribute(g,v):P.removeAttribute(g))};if(Array.isArray(h)?h.forEach(L):L(h),u){let g=b.includes(l)?l:null,D=b.includes(r)?r:g;P.style.colorScheme=D}C==null||C()},[p]),f=t.useCallback(o=>{let r=typeof o==\"function\"?o(c):o;n(r);try{localStorage.setItem(m,r)}catch(v){}},[c]),A=t.useCallback(o=>{let r=E(o);y(r),c===\"system\"&&s&&!e&&S(\"system\")},[c,e]);t.useEffect(()=>{let o=window.matchMedia(I);return o.addListener(A),A(o),()=>o.removeListener(A)},[A]),t.useEffect(()=>{let o=r=>{r.key===m&&(r.newValue?n(r.newValue):f(l))};return window.addEventListener(\"storage\",o),()=>window.removeEventListener(\"storage\",o)},[f]),t.useEffect(()=>{S(e!=null?e:c)},[e,c]);let Q=t.useMemo(()=>({theme:c,setTheme:f,forcedTheme:e,resolvedTheme:c===\"system\"?T:c,themes:s?[...a,\"system\"]:a,systemTheme:s?T:void 0}),[c,f,e,T,s,a]);return t.createElement(x.Provider,{value:Q},t.createElement(_,{forcedTheme:e,storageKey:m,attribute:h,enableSystem:s,enableColorScheme:u,defaultTheme:l,value:d,themes:a,nonce:p,scriptProps:R}),w)},_=t.memo(({forcedTheme:e,storageKey:i,attribute:s,enableSystem:u,enableColorScheme:m,defaultTheme:a,value:l,themes:h,nonce:d,scriptProps:w})=>{let p=JSON.stringify([s,i,a,e,h,l,u,m]).slice(1,-1);return t.createElement(\"script\",{...w,suppressHydrationWarning:!0,nonce:typeof window==\"undefined\"?d:\"\",dangerouslySetInnerHTML:{__html:`(${M.toString()})(${p})`}})}),H=(e,i)=>{if(O)return;let s;try{s=localStorage.getItem(e)||void 0}catch(u){}return s||i},W=e=>{let i=document.createElement(\"style\");return e&&i.setAttribute(\"nonce\",e),i.appendChild(document.createTextNode(\"*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}\")),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(i)},1)}},E=e=>(e||(e=window.matchMedia(I)),e.matches?\"dark\":\"light\");export{J as ThemeProvider,z as useTheme};\n"],"names":["M","i","s","u","m","a","l","d","w","p","n","k","S","f","R","c","b","I","O","x","t","U","z","J","V","N","H","T","y","E","o","r","C","W","P","L","g","D","A","Q","_"],"mappings":"4VAAqC,IAAIA,EAAE,CAAC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAE,IAAI,CAAC,IAAIC,EAAE,SAAS,gBAAgBC,EAAE,CAAC,QAAQ,MAAM,EAAE,SAASC,EAAEC,EAAE,EAAE,MAAM,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,QAAQ,GAAG,CAAC,IAAIC,EAAE,IAAI,QAAQC,EAAED,GAAGN,EAAED,EAAE,IAAIS,GAAGR,EAAEQ,CAAC,GAAGA,CAAC,EAAET,EAAEO,GAAGJ,EAAE,UAAU,OAAO,GAAGK,CAAC,EAAEL,EAAE,UAAU,IAAIF,GAAGA,EAAEK,CAAC,EAAEL,EAAEK,CAAC,EAAEA,CAAC,GAAGH,EAAE,aAAa,EAAEG,CAAC,CAAC,CAAC,EAAEI,EAAEJ,CAAC,CAAC,CAAC,SAASI,EAAEJ,EAAE,CAAC,GAAGF,EAAE,SAASE,CAAC,IAAIH,EAAE,MAAM,YAAY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wBAAwB,CAAC,OAAO,IAAIP,EAAE,UAAU,KAAKS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAEiB,EAAE,CAAC,EAAEzB,IAAI,CAAC,GAAGiB,EAAE,OAAO,IAAIhB,EAAE,GAAG,CAACA,EAAE,aAAa,QAAQ,CAAC,GAAG,MAAM,MAAS,CAAE,CAAA,OAAOA,GAAGD,CAAC,EAAEgC,EAAE,GAAG,CAAC,IAAIhC,EAAE,SAAS,cAAc,OAAO,EAAE,OAAO,GAAGA,EAAE,aAAa,QAAQ,CAAC,EAAEA,EAAE,YAAY,SAAS,eAAe,6KAA6K,CAAC,EAAE,SAAS,KAAK,YAAYA,CAAC,EAAE,IAAI,CAAC,OAAO,iBAAiB,SAAS,IAAI,EAAE,WAAW,IAAI,CAAC,SAAS,KAAK,YAAYA,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE4B,EAAE,IAAI,IAAI,EAAE,OAAO,WAAWZ,CAAC,GAAG,EAAE,QAAQ,OAAO","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";const i=require("./index-CHIISuTq.js"),v=require("./use-locale-context-D0LByRu9.js");var g=i.createAnatomy("avatar").parts("root","image","fallback"),s=g.build(),l=e=>e.ids?.root??`avatar:${e.id}`,m=e=>e.ids?.image??`avatar:${e.id}:image`,p=e=>e.ids?.fallback??`avatar:${e.id}:fallback`,h=e=>e.getById(l(e)),c=e=>e.getById(m(e));function k(e,t){const{state:r,send:a,prop:d,scope:n}=e,o=r.matches("loaded");return{loaded:o,setSrc(u){c(n)?.setAttribute("src",u)},setLoaded(){a({type:"img.loaded",src:"api"})},setError(){a({type:"img.error",src:"api"})},getRootProps(){return t.element({...s.root.attrs,dir:d("dir"),id:l(n)})},getImageProps(){return t.img({...s.image.attrs,hidden:!o,dir:d("dir"),id:m(n),"data-state":o?"visible":"hidden",onLoad(){a({type:"img.loaded",src:"element"})},onError(){a({type:"img.error",src:"element"})}})},getFallbackProps(){return t.element({...s.fallback.attrs,dir:d("dir"),id:p(n),hidden:o,"data-state":o?"hidden":"visible"})}}}var b=i.createMachine({initialState(){return"loading"},effects:["trackImageRemoval","trackSrcChange"],on:{"src.change":{target:"loading"},"img.unmount":{target:"error"}},states:{loading:{entry:["checkImageStatus"],on:{"img.loaded":{target:"loaded",actions:["invokeOnLoad"]},"img.error":{target:"error",actions:["invokeOnError"]}}},error:{on:{"img.loaded":{target:"loaded",actions:["invokeOnLoad"]}}},loaded:{on:{"img.error":{target:"error",actions:["invokeOnError"]}}}},implementations:{actions:{invokeOnLoad({prop:e}){e("onStatusChange")?.({status:"loaded"})},invokeOnError({prop:e}){e("onStatusChange")?.({status:"error"})},checkImageStatus({send:e,scope:t}){const r=c(t);if(!r?.complete)return;const a=y(r)?"img.loaded":"img.error";e({type:a,src:"ssr"})}},effects:{trackImageRemoval({send:e,scope:t}){const r=h(t);return i.observeChildren(r,{callback(a){Array.from(a[0].removedNodes).find(o=>o.nodeType===Node.ELEMENT_NODE&&o.matches("[data-scope=avatar][data-part=image]"))&&e({type:"img.unmount"})}})},trackSrcChange({send:e,scope:t}){const r=c(t);return i.observeAttributes(r,{attributes:["src","srcset"],callback(){e({type:"src.change"})}})}}}});function y(e){return e.complete&&e.naturalWidth!==0&&e.naturalHeight!==0}v.createProps()(["dir","id","ids","onStatusChange","getRootNode"]);exports.anatomy=g;exports.connect=k;exports.machine=b;
2
- //# sourceMappingURL=index-DOXzraja.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-DOXzraja.js","sources":["../../node_modules/@zag-js/avatar/dist/index.mjs"],"sourcesContent":["import { createAnatomy } from '@zag-js/anatomy';\nimport { observeAttributes, observeChildren } from '@zag-js/dom-query';\nimport { createMachine } from '@zag-js/core';\nimport { createProps } from '@zag-js/types';\nimport { createSplitProps } from '@zag-js/utils';\n\n// src/avatar.anatomy.ts\nvar anatomy = createAnatomy(\"avatar\").parts(\"root\", \"image\", \"fallback\");\nvar parts = anatomy.build();\n\n// src/avatar.dom.ts\nvar getRootId = (ctx) => ctx.ids?.root ?? `avatar:${ctx.id}`;\nvar getImageId = (ctx) => ctx.ids?.image ?? `avatar:${ctx.id}:image`;\nvar getFallbackId = (ctx) => ctx.ids?.fallback ?? `avatar:${ctx.id}:fallback`;\nvar getRootEl = (ctx) => ctx.getById(getRootId(ctx));\nvar getImageEl = (ctx) => ctx.getById(getImageId(ctx));\n\n// src/avatar.connect.ts\nfunction connect(service, normalize) {\n const { state, send, prop, scope } = service;\n const loaded = state.matches(\"loaded\");\n return {\n loaded,\n setSrc(src) {\n const img = getImageEl(scope);\n img?.setAttribute(\"src\", src);\n },\n setLoaded() {\n send({ type: \"img.loaded\", src: \"api\" });\n },\n setError() {\n send({ type: \"img.error\", src: \"api\" });\n },\n getRootProps() {\n return normalize.element({\n ...parts.root.attrs,\n dir: prop(\"dir\"),\n id: getRootId(scope)\n });\n },\n getImageProps() {\n return normalize.img({\n ...parts.image.attrs,\n hidden: !loaded,\n dir: prop(\"dir\"),\n id: getImageId(scope),\n \"data-state\": loaded ? \"visible\" : \"hidden\",\n onLoad() {\n send({ type: \"img.loaded\", src: \"element\" });\n },\n onError() {\n send({ type: \"img.error\", src: \"element\" });\n }\n });\n },\n getFallbackProps() {\n return normalize.element({\n ...parts.fallback.attrs,\n dir: prop(\"dir\"),\n id: getFallbackId(scope),\n hidden: loaded,\n \"data-state\": loaded ? \"hidden\" : \"visible\"\n });\n }\n };\n}\nvar machine = createMachine({\n initialState() {\n return \"loading\";\n },\n effects: [\"trackImageRemoval\", \"trackSrcChange\"],\n on: {\n \"src.change\": {\n target: \"loading\"\n },\n \"img.unmount\": {\n target: \"error\"\n }\n },\n states: {\n loading: {\n entry: [\"checkImageStatus\"],\n on: {\n \"img.loaded\": {\n target: \"loaded\",\n actions: [\"invokeOnLoad\"]\n },\n \"img.error\": {\n target: \"error\",\n actions: [\"invokeOnError\"]\n }\n }\n },\n error: {\n on: {\n \"img.loaded\": {\n target: \"loaded\",\n actions: [\"invokeOnLoad\"]\n }\n }\n },\n loaded: {\n on: {\n \"img.error\": {\n target: \"error\",\n actions: [\"invokeOnError\"]\n }\n }\n }\n },\n implementations: {\n actions: {\n invokeOnLoad({ prop }) {\n prop(\"onStatusChange\")?.({ status: \"loaded\" });\n },\n invokeOnError({ prop }) {\n prop(\"onStatusChange\")?.({ status: \"error\" });\n },\n checkImageStatus({ send, scope }) {\n const imageEl = getImageEl(scope);\n if (!imageEl?.complete) return;\n const type = hasLoaded(imageEl) ? \"img.loaded\" : \"img.error\";\n send({ type, src: \"ssr\" });\n }\n },\n effects: {\n trackImageRemoval({ send, scope }) {\n const rootEl = getRootEl(scope);\n return observeChildren(rootEl, {\n callback(records) {\n const removedNodes = Array.from(records[0].removedNodes);\n const removed = removedNodes.find(\n (node) => node.nodeType === Node.ELEMENT_NODE && node.matches(\"[data-scope=avatar][data-part=image]\")\n );\n if (removed) {\n send({ type: \"img.unmount\" });\n }\n }\n });\n },\n trackSrcChange({ send, scope }) {\n const imageEl = getImageEl(scope);\n return observeAttributes(imageEl, {\n attributes: [\"src\", \"srcset\"],\n callback() {\n send({ type: \"src.change\" });\n }\n });\n }\n }\n }\n});\nfunction hasLoaded(image) {\n return image.complete && image.naturalWidth !== 0 && image.naturalHeight !== 0;\n}\nvar props = createProps()([\"dir\", \"id\", \"ids\", \"onStatusChange\", \"getRootNode\"]);\nvar splitProps = createSplitProps(props);\n\nexport { anatomy, connect, machine, props, splitProps };\n"],"names":["anatomy","createAnatomy","parts","getRootId","ctx","getImageId","getFallbackId","getRootEl","getImageEl","connect","service","normalize","state","send","prop","scope","loaded","src","machine","createMachine","imageEl","type","hasLoaded","rootEl","observeChildren","records","node","observeAttributes","image","createProps"],"mappings":"kGAOG,IAACA,EAAUC,EAAa,cAAC,QAAQ,EAAE,MAAM,OAAQ,QAAS,UAAU,EACnEC,EAAQF,EAAQ,MAAO,EAGvBG,EAAaC,GAAQA,EAAI,KAAK,MAAQ,UAAUA,EAAI,EAAE,GACtDC,E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AS,CACF,EACD,eAAe,CAAE,KAAAA,EAAM,MAAAE,GAAS,CAC9B,MAAMK,EAAUZ,EAAWO,CAAK,EAChC,OAAOY,EAAAA,kBAAkBP,EAAS,CAChC,WAAY,CAAC,MAAO,QAAQ,EAC5B,UAAW,CACTP,EAAK,CAAE,KAAM,aAAc,CACvC,CACA,CAAS,CACT,CACA,CACA,CACA,CAAC,EACD,SAASS,EAAUM,EAAO,CACxB,OAAOA,EAAM,UAAYA,EAAM,eAAiB,GAAKA,EAAM,gBAAkB,CAC/E,CACYC,EAAAA,YAAa,EAAC,CAAC,MAAO,KAAM,MAAO,iBAAkB,aAAa,CAAC","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";const s=require("./index-CHIISuTq.js"),f=require("./use-locale-context-D0LByRu9.js");var S=(e,t)=>({x:e,y:t});function z(e){const{x:t,y:r,width:n,height:o}=e,c=t+n/2,a=r+o/2;return{x:t,y:r,width:n,height:o,minX:t,minY:r,maxX:t+n,maxY:r+o,midX:c,midY:a,center:S(c,a)}}function ee(e){const t=S(e.minX,e.minY),r=S(e.maxX,e.minY),n=S(e.maxX,e.maxY),o=S(e.minX,e.maxY);return{top:t,right:r,bottom:n,left:o}}function te(e,t){const r=z(e),{top:n,right:o,left:c,bottom:a}=ee(r),[g]=t.split("-");return{top:[c,n,o,a],right:[n,o,a,c],bottom:[n,c,a,o],left:[o,n,c,a]}[g]}function ne(e,t){const{x:r,y:n}=t;let o=!1;for(let c=0,a=e.length-1;c<e.length;a=c++){const g=e[c].x,d=e[c].y,P=e[a].x,A=e[a].y;d>n!=A>n&&r<(P-g)*(n-d)/(A-d)+g&&(o=!o)}return o}var q=s.createAnatomy("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem"),p=q.build(),D=e=>e.ids?.trigger??`menu:${e.id}:trigger`,j=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,N=e=>e.ids?.content??`menu:${e.id}:content`,ie=e=>e.ids?.arrow??`menu:${e.id}:arrow`,J=e=>e.ids?.positioner??`menu:${e.id}:popper`,re=(e,t)=>e.ids?.group?.(t)??`menu:${e.id}:group:${t}`,k=(e,t)=>`${e.id}/${t}`,C=e=>e?.dataset.value??null,X=(e,t)=>e.ids?.groupLabel?.(t)??`menu:${e.id}:group-label:${t}`,y=e=>e.getById(N(e)),K=e=>e.getById(J(e)),M=e=>e.getById(D(e)),Q=(e,t)=>t?e.getById(k(e,t)):null,Y=e=>e.getById(j(e)),L=e=>{const r=`[role^="menuitem"][data-ownedby=${CSS.escape(N(e))}]:not([data-disabled])`;return s.queryAll(y(e),r)},oe=e=>s.first(L(e)),ae=e=>s.last(L(e)),U=(e,t)=>t?e.id===t||e.dataset.value===t:!1,se=(e,t)=>{const r=L(e),n=r.findIndex(o=>U(o,t.value));return s.next(r,n,{loop:t.loop??t.loopFocus})},le=(e,t)=>{const r=L(e),n=r.findIndex(o=>U(o,t.value));return s.prev(r,n,{loop:t.loop??t.loopFocus})},ge=(e,t)=>{const r=L(e),n=r.find(o=>U(o,t.value));return s.getByTypeahead(r,{state:t.typeaheadState,key:t.key,activeId:n?.id??null})},_=e=>s.isHTMLElement(e)&&(e.dataset.disabled===""||e.hasAttribute("disabled")),ce=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("aria-controls"),F="menu:select";function ue(e,t){if(!e)return;const r=s.getWindow(e),n=new r.CustomEvent(F,{detail:{value:t}});e.dispatchEvent(n)}function de(e,t){const{context:r,send:n,state:o,computed:c,prop:a,scope:g}=e,d=o.hasTag("open"),P=c("isSubmenu"),A=c("isTypingAhead"),x=a("composite"),W=r.get("currentPlacement"),Z=r.get("anchorPoint"),R=r.get("highlightedValue"),H=f.getPlacementStyles({...a("positioning"),placement:Z?"bottom":W});function w(i){return{id:k(g,i.value),disabled:!!i.disabled,highlighted:R===i.value}}function B(i){const l=i.valueText??i.value;return{...i,id:i.value,valueText:l}}function b(i){return{...w(B(i)),checked:!!i.checked}}function G(i){const{closeOnSelect:l,valueText:m,value:T}=i,O=w(i),I=k(g,T);return t.element({...p.item.attrs,id:I,role:"menuitem","aria-disabled":s.ariaAttr(O.disabled),"data-disabled":s.dataAttr(O.disabled),"data-ownedby":N(g),"data-highlighted":s.dataAttr(O.highlighted),"data-value":T,"data-valuetext":m,onDragStart(u){u.currentTarget.matches("a[href]")&&u.preventDefault()},onPointerMove(u){if(O.disabled||u.pointerType!=="mouse")return;const h=u.currentTarget;O.highlighted||n({type:"ITEM_POINTERMOVE",id:I,target:h,closeOnSelect:l})},onPointerLeave(u){if(O.disabled||u.pointerType!=="mouse"||!e.event.previous()?.type.includes("POINTER"))return;const V=u.currentTarget;n({type:"ITEM_POINTERLEAVE",id:I,target:V,closeOnSelect:l})},onPointerDown(u){if(O.disabled)return;const h=u.currentTarget;n({type:"ITEM_POINTERDOWN",target:h,id:I,closeOnSelect:l})},onClick(u){if(s.isDownloadingEvent(u)||s.isOpeningInNewTab(u)||O.disabled)return;const h=u.currentTarget;n({type:"ITEM_CLICK",target:h,id:I,closeOnSelect:l})}})}return{highlightedValue:R,open:d,setOpen(i){o.hasTag("open")!==i&&n({type:i?"OPEN":"CLOSE"})},setHighlightedValue(i){n({type:"HIGHLIGHTED.SET",value:i})},setParent(i){n({type:"PARENT.SET",value:i,id:i.prop("id")})},setChild(i){n({type:"CHILD.SET",value:i,id:i.prop("id")})},reposition(i={}){n({type:"POSITIONING.SET",options:i})},addItemListener(i){const l=g.getById(i.id);if(!l)return;const m=()=>i.onSelect?.();return l.addEventListener(F,m),()=>l.removeEventListener(F,m)},getContextTriggerProps(){return t.element({...p.contextTrigger.attrs,dir:a("dir"),id:j(g),onPointerDown(i){if(i.pointerType==="mouse")return;const l=s.getEventPoint(i);n({type:"CONTEXT_MENU_START",point:l})},onPointerCancel(i){i.pointerType!=="mouse"&&n({type:"CONTEXT_MENU_CANCEL"})},onPointerMove(i){i.pointerType!=="mouse"&&n({type:"CONTEXT_MENU_CANCEL"})},onPointerUp(i){i.pointerType!=="mouse"&&n({type:"CONTEXT_MENU_CANCEL"})},onContextMenu(i){const l=s.getEventPoint(i);n({type:"CONTEXT_MENU",point:l}),i.preventDefault()},style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}})},getTriggerItemProps(i){const l=i.getTriggerProps();return s.mergeProps(G({value:l.id}),l)},getTriggerProps(){return t.button({...P?p.triggerItem.attrs:p.trigger.attrs,"data-placement":r.get("currentPlacement"),type:"button",dir:a("dir"),id:D(g),"data-uid":a("id"),"aria-haspopup":x?"menu":"dialog","aria-controls":N(g),"aria-expanded":d||void 0,"data-state":d?"open":"closed",onPointerMove(i){if(i.pointerType!=="mouse"||_(i.currentTarget)||!P)return;const m=s.getEventPoint(i);n({type:"TRIGGER_POINTERMOVE",target:i.currentTarget,point:m})},onPointerLeave(i){if(_(i.currentTarget)||i.pointerType!=="mouse"||!P)return;const l=s.getEventPoint(i);n({type:"TRIGGER_POINTERLEAVE",target:i.currentTarget,point:l})},onPointerDown(i){_(i.currentTarget)||s.isContextMenuEvent(i)||i.preventDefault()},onClick(i){i.defaultPrevented||_(i.currentTarget)||n({type:"TRIGGER_CLICK",target:i.currentTarget})},onBlur(){n({type:"TRIGGER_BLUR"})},onFocus(){n({type:"TRIGGER_FOCUS"})},onKeyDown(i){if(i.defaultPrevented)return;const l={ArrowDown(){n({type:"ARROW_DOWN"})},ArrowUp(){n({type:"ARROW_UP"})},Enter(){n({type:"ARROW_DOWN",src:"enter"})},Space(){n({type:"ARROW_DOWN",src:"space"})}},m=s.getEventKey(i,{orientation:"vertical",dir:a("dir")}),T=l[m];T&&(i.preventDefault(),T(i))}})},getIndicatorProps(){return t.element({...p.indicator.attrs,dir:a("dir"),"data-state":d?"open":"closed"})},getPositionerProps(){return t.element({...p.positioner.attrs,dir:a("dir"),id:J(g),style:H.floating})},getArrowProps(){return t.element({id:ie(g),...p.arrow.attrs,dir:a("dir"),style:H.arrow})},getArrowTipProps(){return t.element({...p.arrowTip.attrs,dir:a("dir"),style:H.arrowTip})},getContentProps(){return t.element({...p.content.attrs,id:N(g),"aria-label":a("aria-label"),hidden:!d,"data-state":d?"open":"closed",role:x?"menu":"dialog",tabIndex:0,dir:a("dir"),"aria-activedescendant":c("highlightedId")||void 0,"aria-labelledby":D(g),"data-placement":W,onPointerEnter(i){i.pointerType==="mouse"&&n({type:"MENU_POINTERENTER"})},onKeyDown(i){if(i.defaultPrevented||!s.isSelfTarget(i))return;const l=s.getEventTarget(i);if(!(l?.closest("[role=menu]")===i.currentTarget||l===i.currentTarget))return;if(i.key==="Tab"&&!s.isValidTabEvent(i)){i.preventDefault();return}const T=Q(g,R),O={ArrowDown(){n({type:"ARROW_DOWN"})},ArrowUp(){n({type:"ARROW_UP"})},ArrowLeft(){n({type:"ARROW_LEFT"})},ArrowRight(){n({type:"ARROW_RIGHT"})},Enter(){n({type:"ENTER"}),R!=null&&s.isAnchorElement(T)&&a("navigate")?.({value:R,node:T,href:T.href})},Space(h){A?n({type:"TYPEAHEAD",key:h.key}):O.Enter?.(h)},Home(){n({type:"HOME"})},End(){n({type:"END"})}},I=s.getEventKey(i,{dir:a("dir")}),u=O[I];if(u){u(i),i.stopPropagation(),i.preventDefault();return}a("typeahead")&&s.isPrintableKey(i)&&(s.isModifierKey(i)||s.isEditableElement(l)||(n({type:"TYPEAHEAD",key:i.key}),i.preventDefault()))}})},getSeparatorProps(){return t.element({...p.separator.attrs,role:"separator",dir:a("dir"),"aria-orientation":"horizontal"})},getItemState:w,getItemProps:G,getOptionItemState:b,getOptionItemProps(i){const{type:l,disabled:m,onCheckedChange:T,closeOnSelect:O}=i,I=B(i),u=b(i);return{...G(I),...t.element({"data-type":l,...p.item.attrs,dir:a("dir"),"data-value":I.value,role:`menuitem${l}`,"aria-checked":!!u.checked,"data-state":u.checked?"checked":"unchecked",onClick(h){if(m||s.isDownloadingEvent(h)||s.isOpeningInNewTab(h))return;const V=h.currentTarget;n({type:"ITEM_CLICK",target:V,option:I,closeOnSelect:O}),T?.(!u.checked)}})}},getItemIndicatorProps(i){const l=b(i);return t.element({...p.itemIndicator.attrs,dir:a("dir"),"data-disabled":s.dataAttr(l.disabled),"data-highlighted":s.dataAttr(l.highlighted),"data-state":l.checked?"checked":"unchecked",hidden:!l.checked})},getItemTextProps(i){const l=b(i);return t.element({...p.itemText.attrs,dir:a("dir"),"data-disabled":s.dataAttr(l.disabled),"data-highlighted":s.dataAttr(l.highlighted),"data-state":l.checked?"checked":"unchecked"})},getItemGroupLabelProps(i){return t.element({...p.itemGroupLabel.attrs,id:X(g,i.htmlFor),dir:a("dir")})},getItemGroupProps(i){return t.element({id:re(g,i.id),...p.itemGroup.attrs,dir:a("dir"),"aria-labelledby":X(g,i.id),role:"group"})}}}var{not:E,and:v,or:he}=s.createGuards(),pe=s.createMachine({props({props:e}){return{closeOnSelect:!0,typeahead:!0,composite:!0,loopFocus:!1,navigate(t){s.clickIfLink(t.node)},...e,positioning:{placement:"bottom-start",gutter:8,...e.positioning}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"idle"},context({bindable:e,prop:t}){return{suspendPointer:e(()=>({defaultValue:!1})),highlightedValue:e(()=>({defaultValue:t("defaultHighlightedValue")||null,value:t("highlightedValue"),onChange(r){t("onHighlightChange")?.({highlightedValue:r})}})),lastHighlightedValue:e(()=>({defaultValue:null})),currentPlacement:e(()=>({defaultValue:void 0})),intentPolygon:e(()=>({defaultValue:null})),anchorPoint:e(()=>({defaultValue:null,hash(r){return`x: ${r?.x}, y: ${r?.y}`}}))}},refs(){return{parent:null,children:{},typeaheadState:{...s.getByTypeahead.defaultOptions},positioningOverride:{}}},computed:{isSubmenu:({refs:e})=>e.get("parent")!=null,isRtl:({prop:e})=>e("dir")==="rtl",isTypingAhead:({refs:e})=>e.get("typeaheadState").keysSoFar!=="",highlightedId:({context:e,scope:t,refs:r})=>Ee(r.get("children"),e.get("highlightedValue"),t)},watch({track:e,action:t,context:r,computed:n,prop:o}){e([()=>n("isSubmenu")],()=>{t(["setSubmenuPlacement"])}),e([()=>r.hash("anchorPoint")],()=>{t(["reposition"])}),e([()=>o("open")],()=>{t(["toggleVisibility"])})},on:{"PARENT.SET":{actions:["setParentMenu"]},"CHILD.SET":{actions:["setChildMenu"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],OPEN_AUTOFOCUS:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightFirstItem","invokeOnOpen"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"HIGHLIGHTED.RESTORE":{actions:["restoreHighlightedItem"]},"HIGHLIGHTED.SET":{actions:["setHighlightedItem"]}},states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},CONTEXT_MENU_START:{target:"opening:contextmenu",actions:["setAnchorPoint"]},CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TRIGGER_FOCUS:{guard:E("isSubmenu"),target:"closed"},TRIGGER_POINTERMOVE:{guard:"isSubmenu",target:"opening"}}},"opening:contextmenu":{tags:["closed"],effects:["waitForLongPress"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},CONTEXT_MENU_CANCEL:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"LONG_PRESS.OPEN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}},opening:{tags:["closed"],effects:["waitForOpenDelay"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},BLUR:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_POINTERLEAVE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"DELAY.OPEN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}},closing:{tags:["open"],effects:["trackPointerMove","trackInteractOutside","waitForCloseDelay"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]},MENU_POINTERENTER:{target:"open",actions:["clearIntentPolygon"]},POINTER_MOVED_AWAY_FROM_SUBMENU:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]}],"DELAY.CLOSE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem","invokeOnClose"]}]}},closed:{tags:["closed"],entry:["clearHighlightedItem","focusTrigger","resumePointer"],on:{"CONTROLLED.OPEN":[{guard:he("isOpenAutoFocusEvent","isArrowDownEvent"),target:"open",actions:["highlightFirstItem"]},{guard:"isArrowUpEvent",target:"open",actions:["highlightLastItem"]},{target:"open"}],CONTEXT_MENU_START:{target:"opening:contextmenu",actions:["setAnchorPoint"]},CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",target:"opening"},TRIGGER_BLUR:{target:"idle"},ARROW_DOWN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightFirstItem","invokeOnOpen"]}],ARROW_UP:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightLastItem","invokeOnOpen"]}]}},open:{tags:["open"],effects:["trackInteractOutside","trackPositioning","scrollToHighlightedItem"],entry:["focusMenu","resumePointer"],on:{"CONTROLLED.CLOSE":[{target:"closed",guard:"isArrowLeftEvent",actions:["focusParentMenu"]},{target:"closed"}],TRIGGER_CLICK:[{guard:v(E("isTriggerItem"),"isOpenControlled"),actions:["invokeOnClose"]},{guard:E("isTriggerItem"),target:"closed",actions:["invokeOnClose"]}],CONTEXT_MENU:{actions:["setAnchorPoint","focusMenu"]},ARROW_UP:{actions:["highlightPrevItem","focusMenu"]},ARROW_DOWN:{actions:["highlightNextItem","focusMenu"]},ARROW_LEFT:[{guard:v("isSubmenu","isOpenControlled"),actions:["invokeOnClose"]},{guard:"isSubmenu",target:"closed",actions:["focusParentMenu","invokeOnClose"]}],HOME:{actions:["highlightFirstItem","focusMenu"]},END:{actions:["highlightLastItem","focusMenu"]},ARROW_RIGHT:{guard:"isTriggerItemHighlighted",actions:["openSubmenu"]},ENTER:[{guard:"isTriggerItemHighlighted",actions:["openSubmenu"]},{actions:["clickHighlightedItem"]}],ITEM_POINTERMOVE:[{guard:E("isPointerSuspended"),actions:["setHighlightedItem","focusMenu"]},{actions:["setLastHighlightedItem"]}],ITEM_POINTERLEAVE:{guard:v(E("isPointerSuspended"),E("isTriggerItem")),actions:["clearHighlightedItem"]},ITEM_CLICK:[{guard:v(E("isTriggerItemHighlighted"),E("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:v(E("isTriggerItemHighlighted"),E("isHighlightedItemEditable"),"closeOnSelect"),target:"closed",actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:v(E("isTriggerItemHighlighted"),E("isHighlightedItemEditable")),actions:["invokeOnSelect","setOptionState"]},{actions:["setHighlightedItem"]}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",actions:["setIntentPolygon"]},TRIGGER_POINTERLEAVE:{target:"closing"},ITEM_POINTERDOWN:{actions:["setHighlightedItem"]},TYPEAHEAD:{actions:["highlightMatchedItem"]},FOCUS_MENU:{actions:["focusMenu"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{closeOnSelect:({prop:e,event:t})=>!!(t?.closeOnSelect??e("closeOnSelect")),isTriggerItem:({event:e})=>ce(e.target),isTriggerItemHighlighted:({event:e,scope:t,computed:r})=>!!(e.target??t.getById(r("highlightedId")))?.hasAttribute("aria-controls"),isSubmenu:({computed:e})=>e("isSubmenu"),isPointerSuspended:({context:e})=>e.get("suspendPointer"),isHighlightedItemEditable:({scope:e,computed:t})=>s.isEditableElement(e.getById(t("highlightedId"))),isOpenControlled:({prop:e})=>e("open")!==void 0,isArrowLeftEvent:({event:e})=>e.previousEvent?.type==="ARROW_LEFT",isArrowUpEvent:({event:e})=>e.previousEvent?.type==="ARROW_UP",isArrowDownEvent:({event:e})=>e.previousEvent?.type==="ARROW_DOWN",isOpenAutoFocusEvent:({event:e})=>e.previousEvent?.type==="OPEN_AUTOFOCUS"},effects:{waitForOpenDelay({send:e}){const t=setTimeout(()=>{e({type:"DELAY.OPEN"})},100);return()=>clearTimeout(t)},waitForCloseDelay({send:e}){const t=setTimeout(()=>{e({type:"DELAY.CLOSE"})},300);return()=>clearTimeout(t)},waitForLongPress({send:e}){const t=setTimeout(()=>{e({type:"LONG_PRESS.OPEN"})},700);return()=>clearTimeout(t)},trackPositioning({context:e,prop:t,scope:r,refs:n}){if(Y(r))return;const o={...t("positioning"),...n.get("positioningOverride")};e.set("currentPlacement",o.placement);const c=()=>K(r);return f.getPlacement(M(r),c,{...o,defer:!0,onComplete(a){e.set("currentPlacement",a.placement)}})},trackInteractOutside({refs:e,scope:t,prop:r,computed:n,send:o}){const c=()=>y(t);let a=!0;return s.trackDismissableElement(c,{defer:!0,exclude:[M(t)],onInteractOutside:r("onInteractOutside"),onFocusOutside:r("onFocusOutside"),onEscapeKeyDown(g){r("onEscapeKeyDown")?.(g),n("isSubmenu")&&g.preventDefault(),$({parent:e.get("parent")})},onPointerDownOutside(g){const d=s.getEventTarget(g.detail.originalEvent);if(s.contains(Y(t),d)&&g.detail.contextmenu){g.preventDefault();return}a=!g.detail.focusable,r("onPointerDownOutside")?.(g)},onDismiss(){o({type:"CLOSE",src:"interact-outside",restoreFocus:a})}})},trackPointerMove({context:e,scope:t,send:r,refs:n,flush:o}){const c=n.get("parent");o(()=>{c.context.set("suspendPointer",!0)});const a=t.getDoc();return s.addDomEvent(a,"pointermove",g=>{Oe(e.get("intentPolygon"),{x:g.clientX,y:g.clientY})||(r({type:"POINTER_MOVED_AWAY_FROM_SUBMENU"}),c.context.set("suspendPointer",!1))})},scrollToHighlightedItem({event:e,scope:t,computed:r}){const n=()=>{if(e.type.startsWith("ITEM_POINTER"))return;const c=t.getById(r("highlightedId")),a=y(t);s.scrollIntoView(c,{rootEl:a,block:"nearest"})};s.raf(()=>n());const o=()=>y(t);return s.observeAttributes(o,{defer:!0,attributes:["aria-activedescendant"],callback:n})}},actions:{setAnchorPoint({context:e,event:t}){e.set("anchorPoint",t.point)},setSubmenuPlacement({computed:e,refs:t}){if(!e("isSubmenu"))return;const r=e("isRtl")?"left-start":"right-start";t.set("positioningOverride",{placement:r,gutter:0})},reposition({context:e,scope:t,prop:r,event:n,refs:o}){const c=()=>K(t),a=e.get("anchorPoint"),g=a?()=>({width:0,height:0,...a}):void 0,d={...r("positioning"),...o.get("positioningOverride")};f.getPlacement(M(t),c,{...d,defer:!0,getAnchorRect:g,...n.options??{},listeners:!1,onComplete(P){e.set("currentPlacement",P.placement)}})},setOptionState({event:e}){if(!e.option)return;const{checked:t,onCheckedChange:r,type:n}=e.option;n==="radio"?r?.(!0):n==="checkbox"&&r?.(!t)},clickHighlightedItem({scope:e,computed:t}){const r=e.getById(t("highlightedId"));!r||r.dataset.disabled||queueMicrotask(()=>r.click())},setIntentPolygon({context:e,scope:t,event:r}){const n=y(t),o=e.get("currentPlacement");if(!n||!o)return;const c=n.getBoundingClientRect(),a=te(c,o);if(!a)return;const d=f.getPlacementSide(o)==="right"?-5:5;e.set("intentPolygon",[{...r.point,x:r.point.x+d},...a])},clearIntentPolygon({context:e}){e.set("intentPolygon",null)},resumePointer({refs:e,flush:t}){const r=e.get("parent");r&&t(()=>{r.context.set("suspendPointer",!1)})},setHighlightedItem({context:e,event:t}){const r=t.value||C(t.target);e.set("highlightedValue",r)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},focusMenu({scope:e}){s.raf(()=>{const t=y(e);s.getInitialFocus({root:t,enabled:!s.contains(t,e.getActiveElement()),filter(n){return!n.role?.startsWith("menuitem")}})?.focus({preventScroll:!0})})},highlightFirstItem({context:e,scope:t}){(y(t)?queueMicrotask:s.raf)(()=>{const n=oe(t);n&&e.set("highlightedValue",C(n))})},highlightLastItem({context:e,scope:t}){(y(t)?queueMicrotask:s.raf)(()=>{const n=ae(t);n&&e.set("highlightedValue",C(n))})},highlightNextItem({context:e,scope:t,event:r,prop:n}){const o=se(t,{loop:r.loop,value:e.get("highlightedValue"),loopFocus:n("loopFocus")});e.set("highlightedValue",C(o))},highlightPrevItem({context:e,scope:t,event:r,prop:n}){const o=le(t,{loop:r.loop,value:e.get("highlightedValue"),loopFocus:n("loopFocus")});e.set("highlightedValue",C(o))},invokeOnSelect({context:e,prop:t,scope:r}){const n=e.get("highlightedValue");if(n==null)return;const o=Q(r,n);ue(o,n),t("onSelect")?.({value:n})},focusTrigger({scope:e,context:t,event:r,computed:n}){n("isSubmenu")||t.get("anchorPoint")||r.restoreFocus===!1||queueMicrotask(()=>M(e)?.focus({preventScroll:!0}))},highlightMatchedItem({scope:e,context:t,event:r,refs:n}){const o=ge(e,{key:r.key,value:t.get("highlightedValue"),typeaheadState:n.get("typeaheadState")});o&&t.set("highlightedValue",C(o))},setParentMenu({refs:e,event:t}){e.set("parent",t.value)},setChildMenu({refs:e,event:t}){const r=e.get("children");r[t.id]=t.value,e.set("children",r)},closeRootMenu({refs:e}){$({parent:e.get("parent")})},openSubmenu({refs:e,scope:t,computed:r}){const o=t.getById(r("highlightedId"))?.getAttribute("data-uid"),c=e.get("children");(o?c[o]:null)?.send({type:"OPEN_AUTOFOCUS"})},focusParentMenu({refs:e}){e.get("parent")?.send({type:"FOCUS_MENU"})},setLastHighlightedItem({context:e,event:t}){e.set("lastHighlightedValue",C(t.target))},restoreHighlightedItem({context:e}){e.get("lastHighlightedValue")&&(e.set("highlightedValue",e.get("lastHighlightedValue")),e.set("lastHighlightedValue",null))},restoreParentHighlightedItem({refs:e}){e.get("parent")?.send({type:"HIGHLIGHTED.RESTORE"})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},toggleVisibility({prop:e,event:t,send:r}){r({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})}}}});function $(e){let t=e.parent;for(;t&&t.computed("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function Oe(e,t){return e?ne(e,t):!1}function Ee(e,t,r){const n=Object.keys(e).length>0;if(!t)return null;if(!n)return k(r,t);for(const o in e){const c=e[o],a=D(c.scope);if(a===t)return a}return k(r,t)}f.createProps()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]);f.createProps()(["closeOnSelect","disabled","value","valueText"]);f.createProps()(["htmlFor"]);f.createProps()(["id"]);f.createProps()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);exports.anatomy=q;exports.connect=de;exports.machine=pe;
2
- //# sourceMappingURL=index-DSedXH1s.js.map