konsolpro-custom-ui 0.0.327

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 (369) hide show
  1. package/README.md +146 -0
  2. package/dist/chunks/accept-icon-X_bMUe5T.js +17 -0
  3. package/dist/chunks/account-balance-icon-CKxx1j3X.js +17 -0
  4. package/dist/chunks/add-circle-icon-D3XpY2oT.js +17 -0
  5. package/dist/chunks/add-icon-CZXR66VL.js +17 -0
  6. package/dist/chunks/alfa-icon-Cx0WqCux.js +17 -0
  7. package/dist/chunks/android-icon-6SCGu50U.js +17 -0
  8. package/dist/chunks/apple-icon-yya6O1xg.js +17 -0
  9. package/dist/chunks/arrow-back-icon-C_VwBDNK.js +17 -0
  10. package/dist/chunks/arrow-back-ios-icon-CB5K_mmJ.js +17 -0
  11. package/dist/chunks/arrow-down-icon-DFvg75P7.js +17 -0
  12. package/dist/chunks/arrow-forward-icon-BI4dm_L2.js +17 -0
  13. package/dist/chunks/arrow-left-icon-8yWT42A8.js +17 -0
  14. package/dist/chunks/arrow-right-icon-Bnx7GHux.js +17 -0
  15. package/dist/chunks/arrow-up-icon-DU7VVzN8.js +17 -0
  16. package/dist/chunks/attach-file-icon-OrT7tthI.js +17 -0
  17. package/dist/chunks/autorenew-icon-B0bI6Xt-.js +17 -0
  18. package/dist/chunks/baltiyskiy-icon-CXAJY9LH.js +17 -0
  19. package/dist/chunks/bill-error-icon-q8_KROAY.js +17 -0
  20. package/dist/chunks/bill-icon-Cw2GE_VB.js +17 -0
  21. package/dist/chunks/bill-in-progress-icon-BTsO5Mh5.js +17 -0
  22. package/dist/chunks/bill-warning-icon-3Y-dONd_.js +17 -0
  23. package/dist/chunks/bills-error-icon-CcDGUJrx.js +17 -0
  24. package/dist/chunks/bills-icon-BU_adAs0.js +17 -0
  25. package/dist/chunks/bills-in-progress-icon-RVEtPz7l.js +17 -0
  26. package/dist/chunks/bills-warning-icon-CNgWvumi.js +17 -0
  27. package/dist/chunks/block-icon-DGlp9c33.js +17 -0
  28. package/dist/chunks/bolt-fill-icon-DZjyKq8N.js +17 -0
  29. package/dist/chunks/bolt-icon-CJsvLlL-.js +17 -0
  30. package/dist/chunks/book-icon-BdaCKIQB.js +17 -0
  31. package/dist/chunks/business-center-icon-C5X-e-6I.js +17 -0
  32. package/dist/chunks/calendar-icon-B1cogiSd.js +17 -0
  33. package/dist/chunks/call-icon-DslHaQOP.js +17 -0
  34. package/dist/chunks/cancel-fill-DPYenlCk.js +17 -0
  35. package/dist/chunks/check-circle-fill-ne1MhahL.js +17 -0
  36. package/dist/chunks/check-circle-icon-BWhJprgU.js +17 -0
  37. package/dist/chunks/close-icon-CtbXesC0.js +17 -0
  38. package/dist/chunks/clsx-OuTLNxxd.js +16 -0
  39. package/dist/chunks/combobox-primitive-context-B_ldR_VA.js +4030 -0
  40. package/dist/chunks/cookie-DJ-U7h-A.js +17 -0
  41. package/dist/chunks/copy-icon-BWyncDVB.js +17 -0
  42. package/dist/chunks/credit-card-icon-DS1ckDU7.js +17 -0
  43. package/dist/chunks/delete-icon-Bk1ZmhBo.js +17 -0
  44. package/dist/chunks/document-icon-DcmQhRhY.js +17 -0
  45. package/dist/chunks/done-icon-BZEAL7mI.js +17 -0
  46. package/dist/chunks/download-icon-BvWPcT7W.js +17 -0
  47. package/dist/chunks/edit-icon-_3venQRC.js +17 -0
  48. package/dist/chunks/embla-carousel-react.esm-ZaRSnfTq.js +1252 -0
  49. package/dist/chunks/error-fill-icon--8j3Zcfq.js +17 -0
  50. package/dist/chunks/error-icon-BJWk5B-s.js +17 -0
  51. package/dist/chunks/error-icon-CgJ3zr06.js +17 -0
  52. package/dist/chunks/europa-icon-DbElF2Uc.js +17 -0
  53. package/dist/chunks/failed-icon-YP2jq4UN.js +17 -0
  54. package/dist/chunks/file-error-icon-630wBy1K.js +17 -0
  55. package/dist/chunks/file-success-icon-BTk5SYAM.js +17 -0
  56. package/dist/chunks/filter-icon-D_3_SQsN.js +17 -0
  57. package/dist/chunks/flag-icon-DmWEp4ya.js +17 -0
  58. package/dist/chunks/format-DoKcg9cH.js +1223 -0
  59. package/dist/chunks/full-screen-exit-icon-BHwq-9P-.js +17 -0
  60. package/dist/chunks/full-screen-icon-Dpl__xtk.js +17 -0
  61. package/dist/chunks/gazprom-icon-CRfKLTvP.js +17 -0
  62. package/dist/chunks/group-icon-BfSRHuvp.js +17 -0
  63. package/dist/chunks/help-icon-BMdlItds.js +17 -0
  64. package/dist/chunks/home-icon-Dc6LzbVw.js +17 -0
  65. package/dist/chunks/home-icon-Mag5Wxqq.js +17 -0
  66. package/dist/chunks/index-1Er1dKQf.js +13 -0
  67. package/dist/chunks/index-BJD1rYeT.js +57 -0
  68. package/dist/chunks/index-BO6p208a.js +48 -0
  69. package/dist/chunks/index-BZPx6jYI.js +8 -0
  70. package/dist/chunks/index-BxWD79NI.js +517 -0
  71. package/dist/chunks/index-ByaXH_ih.js +10 -0
  72. package/dist/chunks/index-CHDs-SiB.js +27 -0
  73. package/dist/chunks/index-CN5JEZ5H.js +79 -0
  74. package/dist/chunks/index-Ctjv6tIJ.js +1381 -0
  75. package/dist/chunks/index-DLcqcWxM.js +29 -0
  76. package/dist/chunks/index-DLeNytVF.js +9 -0
  77. package/dist/chunks/index-DYfkNB0n.js +54 -0
  78. package/dist/chunks/index-DuekHEmj.js +6 -0
  79. package/dist/chunks/index-DwYXX2sM.js +13 -0
  80. package/dist/chunks/index-E4d_Gd-w.js +91 -0
  81. package/dist/chunks/index-I8P2QgPV.js +258 -0
  82. package/dist/chunks/index-NPrw3_0K.js +14 -0
  83. package/dist/chunks/index-PsqJG3fE.js +75 -0
  84. package/dist/chunks/info-fill-icon-BzE09Xg8.js +17 -0
  85. package/dist/chunks/info-icon-BcUNe5kE.js +17 -0
  86. package/dist/chunks/inventory-icon-CFV8amBs.js +17 -0
  87. package/dist/chunks/link-icon-BUAymb0P.js +17 -0
  88. package/dist/chunks/list-icon-ChePCGxK.js +17 -0
  89. package/dist/chunks/location-icon-Bf9Wbg65.js +17 -0
  90. package/dist/chunks/logout-icon-DN86wp7N.js +17 -0
  91. package/dist/chunks/mail-icon-DCZPsZFE.js +17 -0
  92. package/dist/chunks/manage-accounts-icon-BkyuUTj3.js +17 -0
  93. package/dist/chunks/menu-icon-DWObHD95.js +17 -0
  94. package/dist/chunks/mkb-icon-CEkVt-7P.js +17 -0
  95. package/dist/chunks/more-horiz-icon-CSK7Ackl.js +17 -0
  96. package/dist/chunks/more-vert-icon-NA1tYTse.js +17 -0
  97. package/dist/chunks/mts-icon-Bq4YDYEy.js +17 -0
  98. package/dist/chunks/normal-icon-CYvIFN5j.js +17 -0
  99. package/dist/chunks/north-east-icon-Dh7-1BBW.js +17 -0
  100. package/dist/chunks/open-in-full-icon-DzhRd5Mx.js +17 -0
  101. package/dist/chunks/open-in-new-icon-A7MgnnyP.js +17 -0
  102. package/dist/chunks/otkritie-icon-yGwVocEY.js +17 -0
  103. package/dist/chunks/otp-icon-BQQXMe3b.js +17 -0
  104. package/dist/chunks/outgoing-main-icon-BAH2vddG.js +17 -0
  105. package/dist/chunks/page-info-icon-BiVNFu71.js +17 -0
  106. package/dist/chunks/passport-main-DNL65kJJ.js +17 -0
  107. package/dist/chunks/passport-registration-BGywpRar.js +17 -0
  108. package/dist/chunks/passport-selfie-Dsqd0uOf.js +17 -0
  109. package/dist/chunks/payment-icon-C-B7L4WP.js +17 -0
  110. package/dist/chunks/person-add-C-3pZhgM.js +17 -0
  111. package/dist/chunks/person-icon-Bo5NxPRQ.js +17 -0
  112. package/dist/chunks/person-search-icon-CwVm_XAL.js +17 -0
  113. package/dist/chunks/pincode-icon-BA-e4pBH.js +17 -0
  114. package/dist/chunks/play-icon-Bnj3hsIf.js +17 -0
  115. package/dist/chunks/popover-kFSgc5Lv.js +748 -0
  116. package/dist/chunks/progress-activity-icon-YbJGzvxH.js +17 -0
  117. package/dist/chunks/psb-icon-CxKzLVG5.js +17 -0
  118. package/dist/chunks/qiwi-icon-B795Q_fW.js +17 -0
  119. package/dist/chunks/raiffeisen-icon-CgcBX8eY.js +17 -0
  120. package/dist/chunks/refresh-icon-ac1oOwX8.js +17 -0
  121. package/dist/chunks/remove-icon-CTuoG0Vq.js +17 -0
  122. package/dist/chunks/ru-CUCVR8Pn.js +661 -0
  123. package/dist/chunks/russian-standart-icon-CI8j1Do6.js +17 -0
  124. package/dist/chunks/saint-petersburg-icon-DbffjI2W.js +17 -0
  125. package/dist/chunks/save-icon-DnF5revo.js +17 -0
  126. package/dist/chunks/sber-icon-b7d9_o7J.js +17 -0
  127. package/dist/chunks/sberid-icon-DgQtjRjD.js +17 -0
  128. package/dist/chunks/scenario-icon-BcnFsqUA.js +17 -0
  129. package/dist/chunks/scroll-area-TRRhxrjX.js +629 -0
  130. package/dist/chunks/search-icon-CortrXrC.js +17 -0
  131. package/dist/chunks/segment-icon-Bzm7cziF.js +17 -0
  132. package/dist/chunks/send-icon-BTztERTu.js +17 -0
  133. package/dist/chunks/settings-icon-D_wgjUsM.js +17 -0
  134. package/dist/chunks/shield-icon-BwpxkU5E.js +17 -0
  135. package/dist/chunks/signed-icon-DTQlKmWU.js +17 -0
  136. package/dist/chunks/skb-icon-BgDQolTL.js +17 -0
  137. package/dist/chunks/sms-icon-4p-ON5VX.js +17 -0
  138. package/dist/chunks/support-icon-CBHKGKq8.js +17 -0
  139. package/dist/chunks/tbank-icon-ByKW0pBb.js +17 -0
  140. package/dist/chunks/telegramm-icon-C2ZR2jdg.js +17 -0
  141. package/dist/chunks/thumbs-up-icon-BArjyDfk.js +17 -0
  142. package/dist/chunks/time-icon-DsWMo47L.js +17 -0
  143. package/dist/chunks/tinkoffid-icon-C6lsspZk.js +19 -0
  144. package/dist/chunks/tochka-icon-CoQ_r9Lz.js +17 -0
  145. package/dist/chunks/tooltip-BxRtZLBR.js +836 -0
  146. package/dist/chunks/trending-down-icon-DlHKI37F.js +17 -0
  147. package/dist/chunks/trending-up-icon-IEwGHi9c.js +17 -0
  148. package/dist/chunks/trust-icon-DcfUVGZ_.js +17 -0
  149. package/dist/chunks/tslib.es6-fInlAbov.js +27 -0
  150. package/dist/chunks/unfold-icon-S3J7xXHf.js +17 -0
  151. package/dist/chunks/uni-icon-gK006vr0.js +17 -0
  152. package/dist/chunks/upload-icon-CwzthQEL.js +17 -0
  153. package/dist/chunks/uploader-BN38rjbw.js +28387 -0
  154. package/dist/chunks/uralsib-icon-C-ZbdvlL.js +17 -0
  155. package/dist/chunks/uralskiy-icon-Djqv-ZYN.js +17 -0
  156. package/dist/chunks/utils-TbLXCoKm.js +2752 -0
  157. package/dist/chunks/visibility-off-icon-BA_I97Vw.js +17 -0
  158. package/dist/chunks/visibility-on-icon-C9VmKsvX.js +17 -0
  159. package/dist/chunks/vozrozhdenie-icon-CCMRNn95.js +17 -0
  160. package/dist/chunks/vtb-icon-BtfO1_Gx.js +17 -0
  161. package/dist/chunks/waiting-icon-lpQJA4wB.js +17 -0
  162. package/dist/chunks/wallet-icon-D0r9bDRg.js +17 -0
  163. package/dist/chunks/warning-icon-BmlgMY27.js +17 -0
  164. package/dist/chunks/work-icon-D7I-74Mk.js +17 -0
  165. package/dist/chunks/yandex-icon-CepqpI49.js +17 -0
  166. package/dist/chunks/zoom-in-icon-ZWEJANob.js +17 -0
  167. package/dist/chunks/zoom-out-icon-CeFz3G6V.js +17 -0
  168. package/dist/fonts/CoFoSansMono-Regular.otf +0 -0
  169. package/dist/fonts/Graphik-Bold.otf +0 -0
  170. package/dist/fonts/Graphik-Medium.otf +0 -0
  171. package/dist/fonts/Graphik-Regular.otf +0 -0
  172. package/dist/lib/icon/icon.js +38 -0
  173. package/dist/lib/icon/icons.js +353 -0
  174. package/dist/lib/icon/index.js +4 -0
  175. package/dist/lib/icon-banks/icon-banks.js +21 -0
  176. package/dist/lib/icon-banks/icons-banks.js +106 -0
  177. package/dist/lib/icon-banks/index.js +4 -0
  178. package/dist/lib/icon-documents/icon-document.js +26 -0
  179. package/dist/lib/icon-documents/icons-document.js +57 -0
  180. package/dist/lib/icon-documents/index.js +4 -0
  181. package/dist/lib/index.js +192 -0
  182. package/dist/lib/ui/accordion.js +474 -0
  183. package/dist/lib/ui/alert.js +8 -0
  184. package/dist/lib/ui/autocomplete.js +110 -0
  185. package/dist/lib/ui/avatar.js +333 -0
  186. package/dist/lib/ui/button.js +37 -0
  187. package/dist/lib/ui/calendar.js +121 -0
  188. package/dist/lib/ui/card.js +121 -0
  189. package/dist/lib/ui/carousel.js +55 -0
  190. package/dist/lib/ui/checkbox.js +363 -0
  191. package/dist/lib/ui/combobox-base/combobox-base.js +16 -0
  192. package/dist/lib/ui/combobox-base/index.js +4 -0
  193. package/dist/lib/ui/combobox-primitive/combobox-primitive-context.js +7 -0
  194. package/dist/lib/ui/combobox-primitive/components/Item.js +9 -0
  195. package/dist/lib/ui/combobox-primitive/components/combobox-actions.js +35 -0
  196. package/dist/lib/ui/combobox-primitive/components/combobox-container.js +59 -0
  197. package/dist/lib/ui/combobox-primitive/components/combobox-input.js +52 -0
  198. package/dist/lib/ui/combobox-primitive/components/combobox-item-renderer.js +101 -0
  199. package/dist/lib/ui/combobox-primitive/components/combobox-menu.js +56 -0
  200. package/dist/lib/ui/combobox-primitive/components/index.js +18 -0
  201. package/dist/lib/ui/combobox-primitive/components/item-view.js +53 -0
  202. package/dist/lib/ui/combobox-primitive/components/list.js +9 -0
  203. package/dist/lib/ui/combobox-primitive/constants.js +129 -0
  204. package/dist/lib/ui/combobox-primitive/hooks.js +31 -0
  205. package/dist/lib/ui/combobox-primitive/index.js +21 -0
  206. package/dist/lib/ui/combobox-primitive/types.js +1 -0
  207. package/dist/lib/ui/combobox-primitive/utils.js +60 -0
  208. package/dist/lib/ui/combobox.js +9 -0
  209. package/dist/lib/ui/command.js +1016 -0
  210. package/dist/lib/ui/customizable-carousel.js +431 -0
  211. package/dist/lib/ui/date-picker.js +288 -0
  212. package/dist/lib/ui/date-range-picker/constants.js +25 -0
  213. package/dist/lib/ui/date-range-picker/locales.js +116 -0
  214. package/dist/lib/ui/date-range-picker.js +392 -0
  215. package/dist/lib/ui/dialog/dialog-base/dialog-base.js +9 -0
  216. package/dist/lib/ui/dialog/dialog-base/index.js +6 -0
  217. package/dist/lib/ui/dialog/dialog-base/use-base-dialog.js +57 -0
  218. package/dist/lib/ui/dialog/dialog-primitive/dialog-primitive.js +17 -0
  219. package/dist/lib/ui/dialog/dialog-primitive/index.js +4 -0
  220. package/dist/lib/ui/dialog/index.js +7 -0
  221. package/dist/lib/ui/dialog/utils.js +32 -0
  222. package/dist/lib/ui/divider.js +8 -0
  223. package/dist/lib/ui/dropdown.js +13 -0
  224. package/dist/lib/ui/input-number/index.js +4 -0
  225. package/dist/lib/ui/input-number/input-number.js +6 -0
  226. package/dist/lib/ui/input.js +12 -0
  227. package/dist/lib/ui/link.js +167 -0
  228. package/dist/lib/ui/masked-input.js +6 -0
  229. package/dist/lib/ui/modal.js +41 -0
  230. package/dist/lib/ui/otp-input.js +8 -0
  231. package/dist/lib/ui/phone-input/constants.js +21 -0
  232. package/dist/lib/ui/phone-input/locales/ru.json.js +277 -0
  233. package/dist/lib/ui/phone-input/locales/tg.json.js +263 -0
  234. package/dist/lib/ui/phone-input/locales/uz.json.js +263 -0
  235. package/dist/lib/ui/phone-input/phone-input-utils.js +15 -0
  236. package/dist/lib/ui/phone-input/phone-input.js +20 -0
  237. package/dist/lib/ui/phone-input/phone-mask.js +261 -0
  238. package/dist/lib/ui/popover.js +10 -0
  239. package/dist/lib/ui/progress.js +140 -0
  240. package/dist/lib/ui/radio.js +10 -0
  241. package/dist/lib/ui/schedule-calendar/calendar-day-card.js +37 -0
  242. package/dist/lib/ui/schedule-calendar/constants.js +6 -0
  243. package/dist/lib/ui/schedule-calendar/embla-calendar-card.js +46 -0
  244. package/dist/lib/ui/schedule-calendar/embla-calendar-strip.js +52 -0
  245. package/dist/lib/ui/schedule-calendar/index.js +27 -0
  246. package/dist/lib/ui/schedule-calendar/schedule-calendar-strip.js +163 -0
  247. package/dist/lib/ui/schedule-calendar/schedule-header.js +66 -0
  248. package/dist/lib/ui/schedule-calendar/use-schedule-calendar.js +44 -0
  249. package/dist/lib/ui/schedule-calendar/use-schedule-sync.js +45 -0
  250. package/dist/lib/ui/schedule-calendar/utils.js +49 -0
  251. package/dist/lib/ui/scroll-area.js +7 -0
  252. package/dist/lib/ui/segments.js +376 -0
  253. package/dist/lib/ui/select.js +18 -0
  254. package/dist/lib/ui/spinner.js +57 -0
  255. package/dist/lib/ui/stepper.js +70 -0
  256. package/dist/lib/ui/switch.js +281 -0
  257. package/dist/lib/ui/tabs.js +301 -0
  258. package/dist/lib/ui/tag.js +113 -0
  259. package/dist/lib/ui/textarea.js +8 -0
  260. package/dist/lib/ui/time-picker.js +130 -0
  261. package/dist/lib/ui/time-range-picker.js +198 -0
  262. package/dist/lib/ui/timeline.js +36 -0
  263. package/dist/lib/ui/toaster.js +1002 -0
  264. package/dist/lib/ui/tooltip.js +10 -0
  265. package/dist/lib/ui/typography.js +36 -0
  266. package/dist/lib/ui/uploader.js +10 -0
  267. package/dist/styles/konsolpro-custom-ui.css +1 -0
  268. package/dist/styles/variables.css +279 -0
  269. package/dist/types/components/icon/icon.d.ts +10 -0
  270. package/dist/types/components/icon/icons.d.ts +105 -0
  271. package/dist/types/components/icon/index.d.ts +3 -0
  272. package/dist/types/components/icon-banks/icon-banks.d.ts +7 -0
  273. package/dist/types/components/icon-banks/icons-banks.d.ts +28 -0
  274. package/dist/types/components/icon-banks/index.d.ts +3 -0
  275. package/dist/types/components/icon-documents/icon-document.d.ts +9 -0
  276. package/dist/types/components/icon-documents/icons-document.d.ts +13 -0
  277. package/dist/types/components/icon-documents/index.d.ts +3 -0
  278. package/dist/types/components/index.d.ts +49 -0
  279. package/dist/types/components/ui/accordion.d.ts +13 -0
  280. package/dist/types/components/ui/alert.d.ts +16 -0
  281. package/dist/types/components/ui/autocomplete.d.ts +23 -0
  282. package/dist/types/components/ui/avatar.d.ts +27 -0
  283. package/dist/types/components/ui/button.d.ts +35 -0
  284. package/dist/types/components/ui/calendar.d.ts +4 -0
  285. package/dist/types/components/ui/card.d.ts +38 -0
  286. package/dist/types/components/ui/carousel.d.ts +11 -0
  287. package/dist/types/components/ui/checkbox.d.ts +26 -0
  288. package/dist/types/components/ui/combobox-base/combobox-base.d.ts +10 -0
  289. package/dist/types/components/ui/combobox-base/index.d.ts +1 -0
  290. package/dist/types/components/ui/combobox-primitive/combobox-primitive-context.d.ts +54 -0
  291. package/dist/types/components/ui/combobox-primitive/components/Item.d.ts +3 -0
  292. package/dist/types/components/ui/combobox-primitive/components/combobox-actions.d.ts +5 -0
  293. package/dist/types/components/ui/combobox-primitive/components/combobox-container.d.ts +5 -0
  294. package/dist/types/components/ui/combobox-primitive/components/combobox-input.d.ts +5 -0
  295. package/dist/types/components/ui/combobox-primitive/components/combobox-item-renderer.d.ts +10 -0
  296. package/dist/types/components/ui/combobox-primitive/components/combobox-menu.d.ts +6 -0
  297. package/dist/types/components/ui/combobox-primitive/components/index.d.ts +8 -0
  298. package/dist/types/components/ui/combobox-primitive/components/item-view.d.ts +3 -0
  299. package/dist/types/components/ui/combobox-primitive/components/list.d.ts +3 -0
  300. package/dist/types/components/ui/combobox-primitive/constants.d.ts +47 -0
  301. package/dist/types/components/ui/combobox-primitive/hooks.d.ts +8 -0
  302. package/dist/types/components/ui/combobox-primitive/index.d.ts +3 -0
  303. package/dist/types/components/ui/combobox-primitive/types.d.ts +62 -0
  304. package/dist/types/components/ui/combobox-primitive/utils.d.ts +25 -0
  305. package/dist/types/components/ui/combobox.d.ts +34 -0
  306. package/dist/types/components/ui/command.d.ts +78 -0
  307. package/dist/types/components/ui/customizable-carousel.d.ts +148 -0
  308. package/dist/types/components/ui/date-picker.d.ts +37 -0
  309. package/dist/types/components/ui/date-range-picker/constants.d.ts +22 -0
  310. package/dist/types/components/ui/date-range-picker/locales.d.ts +3 -0
  311. package/dist/types/components/ui/date-range-picker.d.ts +46 -0
  312. package/dist/types/components/ui/dialog/dialog-base/dialog-base.d.ts +41 -0
  313. package/dist/types/components/ui/dialog/dialog-base/index.d.ts +3 -0
  314. package/dist/types/components/ui/dialog/dialog-base/use-base-dialog.d.ts +35 -0
  315. package/dist/types/components/ui/dialog/dialog-primitive/dialog-primitive.d.ts +36 -0
  316. package/dist/types/components/ui/dialog/dialog-primitive/index.d.ts +2 -0
  317. package/dist/types/components/ui/dialog/index.d.ts +2 -0
  318. package/dist/types/components/ui/dialog/utils.d.ts +6 -0
  319. package/dist/types/components/ui/divider.d.ts +6 -0
  320. package/dist/types/components/ui/dropdown.d.ts +53 -0
  321. package/dist/types/components/ui/input-number/index.d.ts +2 -0
  322. package/dist/types/components/ui/input-number/input-number.d.ts +43 -0
  323. package/dist/types/components/ui/input.d.ts +58 -0
  324. package/dist/types/components/ui/link.d.ts +28 -0
  325. package/dist/types/components/ui/masked-input.d.ts +12 -0
  326. package/dist/types/components/ui/modal.d.ts +26 -0
  327. package/dist/types/components/ui/otp-input.d.ts +49 -0
  328. package/dist/types/components/ui/phone-input/constants.d.ts +18 -0
  329. package/dist/types/components/ui/phone-input/locales/ru.json.d.ts +252 -0
  330. package/dist/types/components/ui/phone-input/locales/tg.json.d.ts +261 -0
  331. package/dist/types/components/ui/phone-input/locales/uz.json.d.ts +261 -0
  332. package/dist/types/components/ui/phone-input/phone-input-utils.d.ts +2 -0
  333. package/dist/types/components/ui/phone-input/phone-input.d.ts +24 -0
  334. package/dist/types/components/ui/phone-input/phone-mask.d.ts +233 -0
  335. package/dist/types/components/ui/popover.d.ts +7 -0
  336. package/dist/types/components/ui/progress.d.ts +4 -0
  337. package/dist/types/components/ui/radio.d.ts +37 -0
  338. package/dist/types/components/ui/schedule-calendar/calendar-day-card.d.ts +9 -0
  339. package/dist/types/components/ui/schedule-calendar/constants.d.ts +3 -0
  340. package/dist/types/components/ui/schedule-calendar/embla-calendar-card.d.ts +9 -0
  341. package/dist/types/components/ui/schedule-calendar/embla-calendar-strip.d.ts +14 -0
  342. package/dist/types/components/ui/schedule-calendar/index.d.ts +16 -0
  343. package/dist/types/components/ui/schedule-calendar/schedule-calendar-strip.d.ts +36 -0
  344. package/dist/types/components/ui/schedule-calendar/schedule-header.d.ts +26 -0
  345. package/dist/types/components/ui/schedule-calendar/use-schedule-calendar.d.ts +27 -0
  346. package/dist/types/components/ui/schedule-calendar/use-schedule-sync.d.ts +39 -0
  347. package/dist/types/components/ui/schedule-calendar/utils.d.ts +12 -0
  348. package/dist/types/components/ui/scroll-area.d.ts +9 -0
  349. package/dist/types/components/ui/segments.d.ts +44 -0
  350. package/dist/types/components/ui/select.d.ts +95 -0
  351. package/dist/types/components/ui/spinner.d.ts +12 -0
  352. package/dist/types/components/ui/stepper.d.ts +11 -0
  353. package/dist/types/components/ui/switch.d.ts +24 -0
  354. package/dist/types/components/ui/tabs.d.ts +25 -0
  355. package/dist/types/components/ui/tag.d.ts +28 -0
  356. package/dist/types/components/ui/textarea.d.ts +17 -0
  357. package/dist/types/components/ui/time-picker.d.ts +15 -0
  358. package/dist/types/components/ui/time-range-picker.d.ts +26 -0
  359. package/dist/types/components/ui/timeline.d.ts +17 -0
  360. package/dist/types/components/ui/toaster.d.ts +45 -0
  361. package/dist/types/components/ui/tooltip.d.ts +8 -0
  362. package/dist/types/components/ui/typography.d.ts +25 -0
  363. package/dist/types/components/ui/uploader.d.ts +52 -0
  364. package/dist/types/index.d.ts +1 -0
  365. package/dist/types/lib/utils.d.ts +14 -0
  366. package/dist/types/main.d.ts +0 -0
  367. package/dist/types/utils/use-device-detector.d.ts +1 -0
  368. package/dist/vite.svg +1 -0
  369. package/package.json +171 -0
@@ -0,0 +1,748 @@
1
+ var ft = Object.defineProperty, pt = Object.defineProperties;
2
+ var vt = Object.getOwnPropertyDescriptors;
3
+ var V = Object.getOwnPropertySymbols;
4
+ var me = Object.prototype.hasOwnProperty, he = Object.prototype.propertyIsEnumerable;
5
+ var ve = (e, o, t) => o in e ? ft(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, d = (e, o) => {
6
+ for (var t in o || (o = {}))
7
+ me.call(o, t) && ve(e, t, o[t]);
8
+ if (V)
9
+ for (var t of V(o))
10
+ he.call(o, t) && ve(e, t, o[t]);
11
+ return e;
12
+ }, m = (e, o) => pt(e, vt(o));
13
+ var R = (e, o) => {
14
+ var t = {};
15
+ for (var r in e)
16
+ me.call(e, r) && o.indexOf(r) < 0 && (t[r] = e[r]);
17
+ if (e != null && V)
18
+ for (var r of V(e))
19
+ o.indexOf(r) < 0 && he.call(e, r) && (t[r] = e[r]);
20
+ return t;
21
+ };
22
+ import { jsx as f } from "react/jsx-runtime";
23
+ import * as c from "react";
24
+ import mt from "react";
25
+ import { c as _ } from "./index-DLeNytVF.js";
26
+ import { u as T } from "./index-DLcqcWxM.js";
27
+ import { c as Ae } from "./index-E4d_Gd-w.js";
28
+ import { P as D, d as ht } from "./index-BJD1rYeT.js";
29
+ import { u as W } from "./index-DwYXX2sM.js";
30
+ import { u as Pt } from "./index-NPrw3_0K.js";
31
+ import { h as gt, R as Et, u as yt } from "./index-BxWD79NI.js";
32
+ import { u as Ct } from "./index-1Er1dKQf.js";
33
+ import { u as bt, o as wt, s as At, f as Ot, a as Rt, b as xt, h as Nt, l as St, c as _t, R as Ft, P as Tt } from "./index-Ctjv6tIJ.js";
34
+ import { u as Pe } from "./index-DuekHEmj.js";
35
+ import { u as Dt } from "./index-CHDs-SiB.js";
36
+ import { P as Oe } from "./index-PsqJG3fE.js";
37
+ import { c as Lt } from "./index-CN5JEZ5H.js";
38
+ import { u as It } from "./index-DYfkNB0n.js";
39
+ import { c as Mt } from "./utils-TbLXCoKm.js";
40
+ var kt = "DismissableLayer", J = "dismissableLayer.update", $t = "dismissableLayer.pointerDownOutside", Ut = "dismissableLayer.focusOutside", ge, Re = c.createContext({
41
+ layers: /* @__PURE__ */ new Set(),
42
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
43
+ branches: /* @__PURE__ */ new Set()
44
+ }), xe = c.forwardRef(
45
+ (e, o) => {
46
+ var k;
47
+ const K = e, {
48
+ disableOutsidePointerEvents: t = !1,
49
+ onEscapeKeyDown: r,
50
+ onPointerDownOutside: n,
51
+ onFocusOutside: s,
52
+ onInteractOutside: i,
53
+ onDismiss: a
54
+ } = K, l = R(K, [
55
+ "disableOutsidePointerEvents",
56
+ "onEscapeKeyDown",
57
+ "onPointerDownOutside",
58
+ "onFocusOutside",
59
+ "onInteractOutside",
60
+ "onDismiss"
61
+ ]), u = c.useContext(Re), [p, C] = c.useState(null), h = (k = p == null ? void 0 : p.ownerDocument) != null ? k : globalThis == null ? void 0 : globalThis.document, [, E] = c.useState({}), b = T(o, (g) => C(g)), w = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), A = w.indexOf(v), P = p ? w.indexOf(p) : -1, x = u.layersWithOutsidePointerEventsDisabled.size > 0, y = P >= A, O = Bt((g) => {
62
+ const L = g.target, $ = [...u.branches].some((U) => U.contains(L));
63
+ !y || $ || (n == null || n(g), i == null || i(g), g.defaultPrevented || a == null || a());
64
+ }, h), N = Kt((g) => {
65
+ const L = g.target;
66
+ [...u.branches].some((U) => U.contains(L)) || (s == null || s(g), i == null || i(g), g.defaultPrevented || a == null || a());
67
+ }, h);
68
+ return Pt((g) => {
69
+ P === u.layers.size - 1 && (r == null || r(g), !g.defaultPrevented && a && (g.preventDefault(), a()));
70
+ }, h), c.useEffect(() => {
71
+ if (p)
72
+ return t && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (ge = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(p)), u.layers.add(p), Ee(), () => {
73
+ t && u.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = ge);
74
+ };
75
+ }, [p, h, t, u]), c.useEffect(() => () => {
76
+ p && (u.layers.delete(p), u.layersWithOutsidePointerEventsDisabled.delete(p), Ee());
77
+ }, [p, u]), c.useEffect(() => {
78
+ const g = () => E({});
79
+ return document.addEventListener(J, g), () => document.removeEventListener(J, g);
80
+ }, []), /* @__PURE__ */ f(
81
+ D.div,
82
+ m(d({}, l), {
83
+ ref: b,
84
+ style: d({
85
+ pointerEvents: x ? y ? "auto" : "none" : void 0
86
+ }, e.style),
87
+ onFocusCapture: _(e.onFocusCapture, N.onFocusCapture),
88
+ onBlurCapture: _(e.onBlurCapture, N.onBlurCapture),
89
+ onPointerDownCapture: _(
90
+ e.onPointerDownCapture,
91
+ O.onPointerDownCapture
92
+ )
93
+ })
94
+ );
95
+ }
96
+ );
97
+ xe.displayName = kt;
98
+ var Ht = "DismissableLayerBranch", Wt = c.forwardRef((e, o) => {
99
+ const t = c.useContext(Re), r = c.useRef(null), n = T(o, r);
100
+ return c.useEffect(() => {
101
+ const s = r.current;
102
+ if (s)
103
+ return t.branches.add(s), () => {
104
+ t.branches.delete(s);
105
+ };
106
+ }, [t.branches]), /* @__PURE__ */ f(D.div, m(d({}, e), { ref: n }));
107
+ });
108
+ Wt.displayName = Ht;
109
+ function Bt(e, o = globalThis == null ? void 0 : globalThis.document) {
110
+ const t = W(e), r = c.useRef(!1), n = c.useRef(() => {
111
+ });
112
+ return c.useEffect(() => {
113
+ const s = (a) => {
114
+ if (a.target && !r.current) {
115
+ let l = function() {
116
+ Ne(
117
+ $t,
118
+ t,
119
+ u,
120
+ { discrete: !0 }
121
+ );
122
+ };
123
+ const u = { originalEvent: a };
124
+ a.pointerType === "touch" ? (o.removeEventListener("click", n.current), n.current = l, o.addEventListener("click", n.current, { once: !0 })) : l();
125
+ } else
126
+ o.removeEventListener("click", n.current);
127
+ r.current = !1;
128
+ }, i = window.setTimeout(() => {
129
+ o.addEventListener("pointerdown", s);
130
+ }, 0);
131
+ return () => {
132
+ window.clearTimeout(i), o.removeEventListener("pointerdown", s), o.removeEventListener("click", n.current);
133
+ };
134
+ }, [o, t]), {
135
+ // ensures we check React component tree (not just DOM tree)
136
+ onPointerDownCapture: () => r.current = !0
137
+ };
138
+ }
139
+ function Kt(e, o = globalThis == null ? void 0 : globalThis.document) {
140
+ const t = W(e), r = c.useRef(!1);
141
+ return c.useEffect(() => {
142
+ const n = (s) => {
143
+ s.target && !r.current && Ne(Ut, t, { originalEvent: s }, {
144
+ discrete: !1
145
+ });
146
+ };
147
+ return o.addEventListener("focusin", n), () => o.removeEventListener("focusin", n);
148
+ }, [o, t]), {
149
+ onFocusCapture: () => r.current = !0,
150
+ onBlurCapture: () => r.current = !1
151
+ };
152
+ }
153
+ function Ee() {
154
+ const e = new CustomEvent(J);
155
+ document.dispatchEvent(e);
156
+ }
157
+ function Ne(e, o, t, { discrete: r }) {
158
+ const n = t.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: t });
159
+ o && n.addEventListener(e, o, { once: !0 }), r ? ht(n, s) : n.dispatchEvent(s);
160
+ }
161
+ var j = "focusScope.autoFocusOnMount", q = "focusScope.autoFocusOnUnmount", ye = { bubbles: !1, cancelable: !0 }, zt = "FocusScope", Se = c.forwardRef((e, o) => {
162
+ const w = e, {
163
+ loop: t = !1,
164
+ trapped: r = !1,
165
+ onMountAutoFocus: n,
166
+ onUnmountAutoFocus: s
167
+ } = w, i = R(w, [
168
+ "loop",
169
+ "trapped",
170
+ "onMountAutoFocus",
171
+ "onUnmountAutoFocus"
172
+ ]), [a, l] = c.useState(null), u = W(n), p = W(s), C = c.useRef(null), h = T(o, (v) => l(v)), E = c.useRef({
173
+ paused: !1,
174
+ pause() {
175
+ this.paused = !0;
176
+ },
177
+ resume() {
178
+ this.paused = !1;
179
+ }
180
+ }).current;
181
+ c.useEffect(() => {
182
+ if (r) {
183
+ let v = function(y) {
184
+ if (E.paused || !a) return;
185
+ const O = y.target;
186
+ a.contains(O) ? C.current = O : S(C.current, { select: !0 });
187
+ }, A = function(y) {
188
+ if (E.paused || !a) return;
189
+ const O = y.relatedTarget;
190
+ O !== null && (a.contains(O) || S(C.current, { select: !0 }));
191
+ }, P = function(y) {
192
+ if (document.activeElement === document.body)
193
+ for (const N of y)
194
+ N.removedNodes.length > 0 && S(a);
195
+ };
196
+ document.addEventListener("focusin", v), document.addEventListener("focusout", A);
197
+ const x = new MutationObserver(P);
198
+ return a && x.observe(a, { childList: !0, subtree: !0 }), () => {
199
+ document.removeEventListener("focusin", v), document.removeEventListener("focusout", A), x.disconnect();
200
+ };
201
+ }
202
+ }, [r, a, E.paused]), c.useEffect(() => {
203
+ if (a) {
204
+ be.add(E);
205
+ const v = document.activeElement;
206
+ if (!a.contains(v)) {
207
+ const P = new CustomEvent(j, ye);
208
+ a.addEventListener(j, u), a.dispatchEvent(P), P.defaultPrevented || (Yt(jt(_e(a)), { select: !0 }), document.activeElement === v && S(a));
209
+ }
210
+ return () => {
211
+ a.removeEventListener(j, u), setTimeout(() => {
212
+ const P = new CustomEvent(q, ye);
213
+ a.addEventListener(q, p), a.dispatchEvent(P), P.defaultPrevented || S(v != null ? v : document.body, { select: !0 }), a.removeEventListener(q, p), be.remove(E);
214
+ }, 0);
215
+ };
216
+ }
217
+ }, [a, u, p, E]);
218
+ const b = c.useCallback(
219
+ (v) => {
220
+ if (!t && !r || E.paused) return;
221
+ const A = v.key === "Tab" && !v.altKey && !v.ctrlKey && !v.metaKey, P = document.activeElement;
222
+ if (A && P) {
223
+ const x = v.currentTarget, [y, O] = Xt(x);
224
+ y && O ? !v.shiftKey && P === O ? (v.preventDefault(), t && S(y, { select: !0 })) : v.shiftKey && P === y && (v.preventDefault(), t && S(O, { select: !0 })) : P === x && v.preventDefault();
225
+ }
226
+ },
227
+ [t, r, E.paused]
228
+ );
229
+ return /* @__PURE__ */ f(D.div, m(d({ tabIndex: -1 }, i), { ref: h, onKeyDown: b }));
230
+ });
231
+ Se.displayName = zt;
232
+ function Yt(e, { select: o = !1 } = {}) {
233
+ const t = document.activeElement;
234
+ for (const r of e)
235
+ if (S(r, { select: o }), document.activeElement !== t) return;
236
+ }
237
+ function Xt(e) {
238
+ const o = _e(e), t = Ce(o, e), r = Ce(o.reverse(), e);
239
+ return [t, r];
240
+ }
241
+ function _e(e) {
242
+ const o = [], t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
243
+ acceptNode: (r) => {
244
+ const n = r.tagName === "INPUT" && r.type === "hidden";
245
+ return r.disabled || r.hidden || n ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
246
+ }
247
+ });
248
+ for (; t.nextNode(); ) o.push(t.currentNode);
249
+ return o;
250
+ }
251
+ function Ce(e, o) {
252
+ for (const t of e)
253
+ if (!Gt(t, { upTo: o })) return t;
254
+ }
255
+ function Gt(e, { upTo: o }) {
256
+ if (getComputedStyle(e).visibility === "hidden") return !0;
257
+ for (; e; ) {
258
+ if (o !== void 0 && e === o) return !1;
259
+ if (getComputedStyle(e).display === "none") return !0;
260
+ e = e.parentElement;
261
+ }
262
+ return !1;
263
+ }
264
+ function Vt(e) {
265
+ return e instanceof HTMLInputElement && "select" in e;
266
+ }
267
+ function S(e, { select: o = !1 } = {}) {
268
+ if (e && e.focus) {
269
+ const t = document.activeElement;
270
+ e.focus({ preventScroll: !0 }), e !== t && Vt(e) && o && e.select();
271
+ }
272
+ }
273
+ var be = Zt();
274
+ function Zt() {
275
+ let e = [];
276
+ return {
277
+ add(o) {
278
+ const t = e[0];
279
+ o !== t && (t == null || t.pause()), e = we(e, o), e.unshift(o);
280
+ },
281
+ remove(o) {
282
+ var t;
283
+ e = we(e, o), (t = e[0]) == null || t.resume();
284
+ }
285
+ };
286
+ }
287
+ function we(e, o) {
288
+ const t = [...e], r = t.indexOf(o);
289
+ return r !== -1 && t.splice(r, 1), t;
290
+ }
291
+ function jt(e) {
292
+ return e.filter((o) => o.tagName !== "A");
293
+ }
294
+ var Q = "Popper", [Fe, Te] = Ae(Q), [qt, De] = Fe(Q), Le = (e) => {
295
+ const { __scopePopper: o, children: t } = e, [r, n] = c.useState(null);
296
+ return /* @__PURE__ */ f(qt, { scope: o, anchor: r, onAnchorChange: n, children: t });
297
+ };
298
+ Le.displayName = Q;
299
+ var Ie = "PopperAnchor", Me = c.forwardRef(
300
+ (e, o) => {
301
+ const l = e, { __scopePopper: t, virtualRef: r } = l, n = R(l, ["__scopePopper", "virtualRef"]), s = De(Ie, t), i = c.useRef(null), a = T(o, i);
302
+ return c.useEffect(() => {
303
+ s.onAnchorChange((r == null ? void 0 : r.current) || i.current);
304
+ }), r ? null : /* @__PURE__ */ f(D.div, m(d({}, n), { ref: a }));
305
+ }
306
+ );
307
+ Me.displayName = Ie;
308
+ var ee = "PopperContent", [Jt, Qt] = Fe(ee), ke = c.forwardRef(
309
+ (e, o) => {
310
+ var se, ae, ie, ce, ue, de, le, fe;
311
+ const ne = e, {
312
+ __scopePopper: t,
313
+ side: r = "bottom",
314
+ sideOffset: n = 0,
315
+ align: s = "center",
316
+ alignOffset: i = 0,
317
+ arrowPadding: a = 0,
318
+ avoidCollisions: l = !0,
319
+ collisionBoundary: u = [],
320
+ collisionPadding: p = 0,
321
+ sticky: C = "partial",
322
+ hideWhenDetached: h = !1,
323
+ updatePositionStrategy: E = "optimized",
324
+ onPlaced: b
325
+ } = ne, w = R(ne, [
326
+ "__scopePopper",
327
+ "side",
328
+ "sideOffset",
329
+ "align",
330
+ "alignOffset",
331
+ "arrowPadding",
332
+ "avoidCollisions",
333
+ "collisionBoundary",
334
+ "collisionPadding",
335
+ "sticky",
336
+ "hideWhenDetached",
337
+ "updatePositionStrategy",
338
+ "onPlaced"
339
+ ]), v = De(ee, t), [A, P] = c.useState(null), x = T(o, (H) => P(H)), [y, O] = c.useState(null), N = Dt(y), K = (se = N == null ? void 0 : N.width) != null ? se : 0, k = (ae = N == null ? void 0 : N.height) != null ? ae : 0, g = r + (s !== "center" ? "-" + s : ""), L = typeof p == "number" ? p : d({ top: 0, right: 0, bottom: 0, left: 0 }, p), $ = Array.isArray(u) ? u : [u], U = $.length > 0, z = {
340
+ padding: L,
341
+ boundary: $.filter(to),
342
+ // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
343
+ altBoundary: U
344
+ }, { refs: et, floatingStyles: oe, placement: tt, isPositioned: Y, middlewareData: I } = bt({
345
+ // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
346
+ strategy: "fixed",
347
+ placement: g,
348
+ whileElementsMounted: (...H) => _t(...H, {
349
+ animationFrame: E === "always"
350
+ }),
351
+ elements: {
352
+ reference: v.anchor
353
+ },
354
+ middleware: [
355
+ wt({ mainAxis: n + k, alignmentAxis: i }),
356
+ l && At(d({
357
+ mainAxis: !0,
358
+ crossAxis: !1,
359
+ limiter: C === "partial" ? St() : void 0
360
+ }, z)),
361
+ l && Ot(d({}, z)),
362
+ Rt(m(d({}, z), {
363
+ apply: ({ elements: H, rects: pe, availableWidth: ct, availableHeight: ut }) => {
364
+ const { width: dt, height: lt } = pe.reference, G = H.floating.style;
365
+ G.setProperty("--radix-popper-available-width", `${ct}px`), G.setProperty("--radix-popper-available-height", `${ut}px`), G.setProperty("--radix-popper-anchor-width", `${dt}px`), G.setProperty("--radix-popper-anchor-height", `${lt}px`);
366
+ }
367
+ })),
368
+ y && xt({ element: y, padding: a }),
369
+ oo({ arrowWidth: K, arrowHeight: k }),
370
+ h && Nt(d({ strategy: "referenceHidden" }, z))
371
+ ]
372
+ }), [re, ot] = He(tt), X = W(b);
373
+ Pe(() => {
374
+ Y && (X == null || X());
375
+ }, [Y, X]);
376
+ const rt = (ie = I.arrow) == null ? void 0 : ie.x, nt = (ce = I.arrow) == null ? void 0 : ce.y, st = ((ue = I.arrow) == null ? void 0 : ue.centerOffset) !== 0, [at, it] = c.useState();
377
+ return Pe(() => {
378
+ A && it(window.getComputedStyle(A).zIndex);
379
+ }, [A]), /* @__PURE__ */ f(
380
+ "div",
381
+ {
382
+ ref: et.setFloating,
383
+ "data-radix-popper-content-wrapper": "",
384
+ style: d(m(d({}, oe), {
385
+ transform: Y ? oe.transform : "translate(0, -200%)",
386
+ // keep off the page when measuring
387
+ minWidth: "max-content",
388
+ zIndex: at,
389
+ "--radix-popper-transform-origin": [
390
+ (de = I.transformOrigin) == null ? void 0 : de.x,
391
+ (le = I.transformOrigin) == null ? void 0 : le.y
392
+ ].join(" ")
393
+ }), ((fe = I.hide) == null ? void 0 : fe.referenceHidden) && {
394
+ visibility: "hidden",
395
+ pointerEvents: "none"
396
+ }),
397
+ dir: e.dir,
398
+ children: /* @__PURE__ */ f(
399
+ Jt,
400
+ {
401
+ scope: t,
402
+ placedSide: re,
403
+ onArrowChange: O,
404
+ arrowX: rt,
405
+ arrowY: nt,
406
+ shouldHideArrow: st,
407
+ children: /* @__PURE__ */ f(
408
+ D.div,
409
+ m(d({
410
+ "data-side": re,
411
+ "data-align": ot
412
+ }, w), {
413
+ ref: x,
414
+ style: m(d({}, w.style), {
415
+ // if the PopperContent hasn't been placed yet (not all measurements done)
416
+ // we prevent animations so that users's animation don't kick in too early referring wrong sides
417
+ animation: Y ? void 0 : "none"
418
+ })
419
+ })
420
+ )
421
+ }
422
+ )
423
+ }
424
+ );
425
+ }
426
+ );
427
+ ke.displayName = ee;
428
+ var $e = "PopperArrow", eo = {
429
+ top: "bottom",
430
+ right: "left",
431
+ bottom: "top",
432
+ left: "right"
433
+ }, Ue = c.forwardRef(function(o, t) {
434
+ const a = o, { __scopePopper: r } = a, n = R(a, ["__scopePopper"]), s = Qt($e, r), i = eo[s.placedSide];
435
+ return (
436
+ // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
437
+ // doesn't report size as we'd expect on SVG elements.
438
+ // it reports their bounding box which is effectively the largest path inside the SVG.
439
+ /* @__PURE__ */ f(
440
+ "span",
441
+ {
442
+ ref: s.onArrowChange,
443
+ style: {
444
+ position: "absolute",
445
+ left: s.arrowX,
446
+ top: s.arrowY,
447
+ [i]: 0,
448
+ transformOrigin: {
449
+ top: "",
450
+ right: "0 0",
451
+ bottom: "center 0",
452
+ left: "100% 0"
453
+ }[s.placedSide],
454
+ transform: {
455
+ top: "translateY(100%)",
456
+ right: "translateY(50%) rotate(90deg) translateX(-50%)",
457
+ bottom: "rotate(180deg)",
458
+ left: "translateY(50%) rotate(-90deg) translateX(50%)"
459
+ }[s.placedSide],
460
+ visibility: s.shouldHideArrow ? "hidden" : void 0
461
+ },
462
+ children: /* @__PURE__ */ f(
463
+ Ft,
464
+ m(d({}, n), {
465
+ ref: t,
466
+ style: m(d({}, n.style), {
467
+ // ensures the element can be measured correctly (mostly for if SVG)
468
+ display: "block"
469
+ })
470
+ })
471
+ )
472
+ }
473
+ )
474
+ );
475
+ });
476
+ Ue.displayName = $e;
477
+ function to(e) {
478
+ return e !== null;
479
+ }
480
+ var oo = (e) => ({
481
+ name: "transformOrigin",
482
+ options: e,
483
+ fn(o) {
484
+ var v, A, P, x, y;
485
+ const { placement: t, rects: r, middlewareData: n } = o, i = ((v = n.arrow) == null ? void 0 : v.centerOffset) !== 0, a = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [u, p] = He(t), C = { start: "0%", center: "50%", end: "100%" }[p], h = ((P = (A = n.arrow) == null ? void 0 : A.x) != null ? P : 0) + a / 2, E = ((y = (x = n.arrow) == null ? void 0 : x.y) != null ? y : 0) + l / 2;
486
+ let b = "", w = "";
487
+ return u === "bottom" ? (b = i ? C : `${h}px`, w = `${-l}px`) : u === "top" ? (b = i ? C : `${h}px`, w = `${r.floating.height + l}px`) : u === "right" ? (b = `${-l}px`, w = i ? C : `${E}px`) : u === "left" && (b = `${r.floating.width + l}px`, w = i ? C : `${E}px`), { data: { x: b, y: w } };
488
+ }
489
+ });
490
+ function He(e) {
491
+ const [o, t = "center"] = e.split("-");
492
+ return [o, t];
493
+ }
494
+ var ro = Le, We = Me, no = ke, so = Ue, Z = "Popover", [Be, Uo] = Ae(Z, [
495
+ Te
496
+ ]), B = Te(), [ao, F] = Be(Z), Ke = (e) => {
497
+ const {
498
+ __scopePopover: o,
499
+ children: t,
500
+ open: r,
501
+ defaultOpen: n,
502
+ onOpenChange: s,
503
+ modal: i = !1
504
+ } = e, a = B(o), l = c.useRef(null), [u, p] = c.useState(!1), [C, h] = It({
505
+ prop: r,
506
+ defaultProp: n != null ? n : !1,
507
+ onChange: s,
508
+ caller: Z
509
+ });
510
+ return /* @__PURE__ */ f(ro, m(d({}, a), { children: /* @__PURE__ */ f(
511
+ ao,
512
+ {
513
+ scope: o,
514
+ contentId: Ct(),
515
+ triggerRef: l,
516
+ open: C,
517
+ onOpenChange: h,
518
+ onOpenToggle: c.useCallback(() => h((E) => !E), [h]),
519
+ hasCustomAnchor: u,
520
+ onCustomAnchorAdd: c.useCallback(() => p(!0), []),
521
+ onCustomAnchorRemove: c.useCallback(() => p(!1), []),
522
+ modal: i,
523
+ children: t
524
+ }
525
+ ) }));
526
+ };
527
+ Ke.displayName = Z;
528
+ var ze = "PopoverAnchor", Ye = c.forwardRef(
529
+ (e, o) => {
530
+ const l = e, { __scopePopover: t } = l, r = R(l, ["__scopePopover"]), n = F(ze, t), s = B(t), { onCustomAnchorAdd: i, onCustomAnchorRemove: a } = n;
531
+ return c.useEffect(() => (i(), () => a()), [i, a]), /* @__PURE__ */ f(We, m(d(d({}, s), r), { ref: o }));
532
+ }
533
+ );
534
+ Ye.displayName = ze;
535
+ var Xe = "PopoverTrigger", Ge = c.forwardRef(
536
+ (e, o) => {
537
+ const l = e, { __scopePopover: t } = l, r = R(l, ["__scopePopover"]), n = F(Xe, t), s = B(t), i = T(o, n.triggerRef), a = /* @__PURE__ */ f(
538
+ D.button,
539
+ m(d({
540
+ type: "button",
541
+ "aria-haspopup": "dialog",
542
+ "aria-expanded": n.open,
543
+ "aria-controls": n.contentId,
544
+ "data-state": Je(n.open)
545
+ }, r), {
546
+ ref: i,
547
+ onClick: _(e.onClick, n.onOpenToggle)
548
+ })
549
+ );
550
+ return n.hasCustomAnchor ? a : /* @__PURE__ */ f(We, m(d({ asChild: !0 }, s), { children: a }));
551
+ }
552
+ );
553
+ Ge.displayName = Xe;
554
+ var te = "PopoverPortal", [io, co] = Be(te, {
555
+ forceMount: void 0
556
+ }), Ve = (e) => {
557
+ const { __scopePopover: o, forceMount: t, children: r, container: n } = e, s = F(te, o);
558
+ return /* @__PURE__ */ f(io, { scope: o, forceMount: t, children: /* @__PURE__ */ f(Oe, { present: t || s.open, children: /* @__PURE__ */ f(Tt, { asChild: !0, container: n, children: r }) }) });
559
+ };
560
+ Ve.displayName = te;
561
+ var M = "PopoverContent", Ze = c.forwardRef(
562
+ (e, o) => {
563
+ const t = co(M, e.__scopePopover), i = e, { forceMount: r = t.forceMount } = i, n = R(i, ["forceMount"]), s = F(M, e.__scopePopover);
564
+ return /* @__PURE__ */ f(Oe, { present: r || s.open, children: s.modal ? /* @__PURE__ */ f(lo, m(d({}, n), { ref: o })) : /* @__PURE__ */ f(fo, m(d({}, n), { ref: o })) });
565
+ }
566
+ );
567
+ Ze.displayName = M;
568
+ var uo = Lt("PopoverContent.RemoveScroll"), lo = c.forwardRef(
569
+ (e, o) => {
570
+ const t = F(M, e.__scopePopover), r = c.useRef(null), n = T(o, r), s = c.useRef(!1);
571
+ return c.useEffect(() => {
572
+ const i = r.current;
573
+ if (i) return gt(i);
574
+ }, []), /* @__PURE__ */ f(Et, { as: uo, allowPinchZoom: !0, children: /* @__PURE__ */ f(
575
+ je,
576
+ m(d({}, e), {
577
+ ref: n,
578
+ trapFocus: t.open,
579
+ disableOutsidePointerEvents: !0,
580
+ onCloseAutoFocus: _(e.onCloseAutoFocus, (i) => {
581
+ var a;
582
+ i.preventDefault(), s.current || (a = t.triggerRef.current) == null || a.focus();
583
+ }),
584
+ onPointerDownOutside: _(
585
+ e.onPointerDownOutside,
586
+ (i) => {
587
+ const a = i.detail.originalEvent, l = a.button === 0 && a.ctrlKey === !0, u = a.button === 2 || l;
588
+ s.current = u;
589
+ },
590
+ { checkForDefaultPrevented: !1 }
591
+ ),
592
+ onFocusOutside: _(
593
+ e.onFocusOutside,
594
+ (i) => i.preventDefault(),
595
+ { checkForDefaultPrevented: !1 }
596
+ )
597
+ })
598
+ ) });
599
+ }
600
+ ), fo = c.forwardRef(
601
+ (e, o) => {
602
+ const t = F(M, e.__scopePopover), r = c.useRef(!1), n = c.useRef(!1);
603
+ return /* @__PURE__ */ f(
604
+ je,
605
+ m(d({}, e), {
606
+ ref: o,
607
+ trapFocus: !1,
608
+ disableOutsidePointerEvents: !1,
609
+ onCloseAutoFocus: (s) => {
610
+ var i, a;
611
+ (i = e.onCloseAutoFocus) == null || i.call(e, s), s.defaultPrevented || (r.current || (a = t.triggerRef.current) == null || a.focus(), s.preventDefault()), r.current = !1, n.current = !1;
612
+ },
613
+ onInteractOutside: (s) => {
614
+ var l, u;
615
+ (l = e.onInteractOutside) == null || l.call(e, s), s.defaultPrevented || (r.current = !0, s.detail.originalEvent.type === "pointerdown" && (n.current = !0));
616
+ const i = s.target;
617
+ ((u = t.triggerRef.current) == null ? void 0 : u.contains(i)) && s.preventDefault(), s.detail.originalEvent.type === "focusin" && n.current && s.preventDefault();
618
+ }
619
+ })
620
+ );
621
+ }
622
+ ), je = c.forwardRef(
623
+ (e, o) => {
624
+ const b = e, {
625
+ __scopePopover: t,
626
+ trapFocus: r,
627
+ onOpenAutoFocus: n,
628
+ onCloseAutoFocus: s,
629
+ disableOutsidePointerEvents: i,
630
+ onEscapeKeyDown: a,
631
+ onPointerDownOutside: l,
632
+ onFocusOutside: u,
633
+ onInteractOutside: p
634
+ } = b, C = R(b, [
635
+ "__scopePopover",
636
+ "trapFocus",
637
+ "onOpenAutoFocus",
638
+ "onCloseAutoFocus",
639
+ "disableOutsidePointerEvents",
640
+ "onEscapeKeyDown",
641
+ "onPointerDownOutside",
642
+ "onFocusOutside",
643
+ "onInteractOutside"
644
+ ]), h = F(M, t), E = B(t);
645
+ return yt(), /* @__PURE__ */ f(
646
+ Se,
647
+ {
648
+ asChild: !0,
649
+ loop: !0,
650
+ trapped: r,
651
+ onMountAutoFocus: n,
652
+ onUnmountAutoFocus: s,
653
+ children: /* @__PURE__ */ f(
654
+ xe,
655
+ {
656
+ asChild: !0,
657
+ disableOutsidePointerEvents: i,
658
+ onInteractOutside: p,
659
+ onEscapeKeyDown: a,
660
+ onPointerDownOutside: l,
661
+ onFocusOutside: u,
662
+ onDismiss: () => h.onOpenChange(!1),
663
+ children: /* @__PURE__ */ f(
664
+ no,
665
+ m(d(d({
666
+ "data-state": Je(h.open),
667
+ role: "dialog",
668
+ id: h.contentId
669
+ }, E), C), {
670
+ ref: o,
671
+ style: m(d({}, C.style), {
672
+ "--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
673
+ "--radix-popover-content-available-width": "var(--radix-popper-available-width)",
674
+ "--radix-popover-content-available-height": "var(--radix-popper-available-height)",
675
+ "--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
676
+ "--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
677
+ })
678
+ })
679
+ )
680
+ }
681
+ )
682
+ }
683
+ );
684
+ }
685
+ ), qe = "PopoverClose", po = c.forwardRef(
686
+ (e, o) => {
687
+ const s = e, { __scopePopover: t } = s, r = R(s, ["__scopePopover"]), n = F(qe, t);
688
+ return /* @__PURE__ */ f(
689
+ D.button,
690
+ m(d({
691
+ type: "button"
692
+ }, r), {
693
+ ref: o,
694
+ onClick: _(e.onClick, () => n.onOpenChange(!1))
695
+ })
696
+ );
697
+ }
698
+ );
699
+ po.displayName = qe;
700
+ var vo = "PopoverArrow", mo = c.forwardRef(
701
+ (e, o) => {
702
+ const s = e, { __scopePopover: t } = s, r = R(s, ["__scopePopover"]), n = B(t);
703
+ return /* @__PURE__ */ f(so, m(d(d({}, n), r), { ref: o }));
704
+ }
705
+ );
706
+ mo.displayName = vo;
707
+ function Je(e) {
708
+ return e ? "open" : "closed";
709
+ }
710
+ var ho = Ke, Po = Ye, go = Ge, Eo = Ve, Qe = Ze;
711
+ const Ho = ho, Wo = go, yo = mt.forwardRef((s, n) => {
712
+ var i = s, { className: e, align: o = "center", sideOffset: t = 4 } = i, r = R(i, ["className", "align", "sideOffset"]);
713
+ return /* @__PURE__ */ f(Eo, { children: /* @__PURE__ */ f(
714
+ Qe,
715
+ d({
716
+ ref: n,
717
+ align: o,
718
+ sideOffset: t,
719
+ className: Mt(
720
+ // TODO: remove z-1050 after fixing the issue with the popover being on top of the modal
721
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-1050 w-72 rounded-md border-0 p-4 shadow-md outline-none",
722
+ e
723
+ )
724
+ }, r)
725
+ ) });
726
+ });
727
+ yo.displayName = Qe.displayName;
728
+ function Bo(o) {
729
+ var e = R(o, []);
730
+ return /* @__PURE__ */ f(Po, d({ "data-slot": "popover-anchor" }, e));
731
+ }
732
+ export {
733
+ We as A,
734
+ Qe as C,
735
+ xe as D,
736
+ Se as F,
737
+ Ho as P,
738
+ ho as R,
739
+ go as T,
740
+ Bo as a,
741
+ yo as b,
742
+ Wo as c,
743
+ Eo as d,
744
+ Te as e,
745
+ ro as f,
746
+ no as g,
747
+ so as h
748
+ };