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