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,517 @@
|
|
|
1
|
+
import * as c from "react";
|
|
2
|
+
import { useState as oe } from "react";
|
|
3
|
+
import { _ as E, a as U, b as ce } from "./tslib.es6-fInlAbov.js";
|
|
4
|
+
var Y = 0;
|
|
5
|
+
function Qe() {
|
|
6
|
+
c.useEffect(() => {
|
|
7
|
+
var t, r;
|
|
8
|
+
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
9
|
+
return document.body.insertAdjacentElement("afterbegin", (t = e[0]) != null ? t : G()), document.body.insertAdjacentElement("beforeend", (r = e[1]) != null ? r : G()), Y++, () => {
|
|
10
|
+
Y === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((n) => n.remove()), Y--;
|
|
11
|
+
};
|
|
12
|
+
}, []);
|
|
13
|
+
}
|
|
14
|
+
function G() {
|
|
15
|
+
const e = document.createElement("span");
|
|
16
|
+
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
17
|
+
}
|
|
18
|
+
var I = "right-scroll-bar-position", D = "width-before-scroll-bar", ie = "with-scroll-bars-hidden", ue = "--removed-body-scroll-bar-size";
|
|
19
|
+
function V(e, t) {
|
|
20
|
+
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
21
|
+
}
|
|
22
|
+
function le(e, t) {
|
|
23
|
+
var r = oe(function() {
|
|
24
|
+
return {
|
|
25
|
+
// value
|
|
26
|
+
value: e,
|
|
27
|
+
// last callback
|
|
28
|
+
callback: t,
|
|
29
|
+
// "memoized" public interface
|
|
30
|
+
facade: {
|
|
31
|
+
get current() {
|
|
32
|
+
return r.value;
|
|
33
|
+
},
|
|
34
|
+
set current(n) {
|
|
35
|
+
var i = r.value;
|
|
36
|
+
i !== n && (r.value = n, r.callback(n, i));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
})[0];
|
|
41
|
+
return r.callback = t, r.facade;
|
|
42
|
+
}
|
|
43
|
+
var se = typeof window != "undefined" ? c.useLayoutEffect : c.useEffect, Z = /* @__PURE__ */ new WeakMap();
|
|
44
|
+
function fe(e, t) {
|
|
45
|
+
var r = le(null, function(n) {
|
|
46
|
+
return e.forEach(function(i) {
|
|
47
|
+
return V(i, n);
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
return se(function() {
|
|
51
|
+
var n = Z.get(r);
|
|
52
|
+
if (n) {
|
|
53
|
+
var i = new Set(n), u = new Set(e), l = r.current;
|
|
54
|
+
i.forEach(function(a) {
|
|
55
|
+
u.has(a) || V(a, null);
|
|
56
|
+
}), u.forEach(function(a) {
|
|
57
|
+
i.has(a) || V(a, l);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
Z.set(r, e);
|
|
61
|
+
}, [e]), r;
|
|
62
|
+
}
|
|
63
|
+
function de(e) {
|
|
64
|
+
return e;
|
|
65
|
+
}
|
|
66
|
+
function ve(e, t) {
|
|
67
|
+
t === void 0 && (t = de);
|
|
68
|
+
var r = [], n = !1, i = {
|
|
69
|
+
read: function() {
|
|
70
|
+
if (n)
|
|
71
|
+
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
72
|
+
return r.length ? r[r.length - 1] : e;
|
|
73
|
+
},
|
|
74
|
+
useMedium: function(u) {
|
|
75
|
+
var l = t(u, n);
|
|
76
|
+
return r.push(l), function() {
|
|
77
|
+
r = r.filter(function(a) {
|
|
78
|
+
return a !== l;
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
},
|
|
82
|
+
assignSyncMedium: function(u) {
|
|
83
|
+
for (n = !0; r.length; ) {
|
|
84
|
+
var l = r;
|
|
85
|
+
r = [], l.forEach(u);
|
|
86
|
+
}
|
|
87
|
+
r = {
|
|
88
|
+
push: function(a) {
|
|
89
|
+
return u(a);
|
|
90
|
+
},
|
|
91
|
+
filter: function() {
|
|
92
|
+
return r;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
},
|
|
96
|
+
assignMedium: function(u) {
|
|
97
|
+
n = !0;
|
|
98
|
+
var l = [];
|
|
99
|
+
if (r.length) {
|
|
100
|
+
var a = r;
|
|
101
|
+
r = [], a.forEach(u), l = r;
|
|
102
|
+
}
|
|
103
|
+
var y = function() {
|
|
104
|
+
var v = l;
|
|
105
|
+
l = [], v.forEach(u);
|
|
106
|
+
}, m = function() {
|
|
107
|
+
return Promise.resolve().then(y);
|
|
108
|
+
};
|
|
109
|
+
m(), r = {
|
|
110
|
+
push: function(v) {
|
|
111
|
+
l.push(v), m();
|
|
112
|
+
},
|
|
113
|
+
filter: function(v) {
|
|
114
|
+
return l = l.filter(v), r;
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
return i;
|
|
120
|
+
}
|
|
121
|
+
function he(e) {
|
|
122
|
+
e === void 0 && (e = {});
|
|
123
|
+
var t = ve(null);
|
|
124
|
+
return t.options = E({ async: !0, ssr: !1 }, e), t;
|
|
125
|
+
}
|
|
126
|
+
var $ = function(e) {
|
|
127
|
+
var t = e.sideCar, r = U(e, ["sideCar"]);
|
|
128
|
+
if (!t)
|
|
129
|
+
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
130
|
+
var n = t.read();
|
|
131
|
+
if (!n)
|
|
132
|
+
throw new Error("Sidecar medium not found");
|
|
133
|
+
return c.createElement(n, E({}, r));
|
|
134
|
+
};
|
|
135
|
+
$.isSideCarExport = !0;
|
|
136
|
+
function me(e, t) {
|
|
137
|
+
return e.useMedium(t), $;
|
|
138
|
+
}
|
|
139
|
+
var J = he(), F = function() {
|
|
140
|
+
}, X = c.forwardRef(function(e, t) {
|
|
141
|
+
var r = c.useRef(null), n = c.useState({
|
|
142
|
+
onScrollCapture: F,
|
|
143
|
+
onWheelCapture: F,
|
|
144
|
+
onTouchMoveCapture: F
|
|
145
|
+
}), i = n[0], u = n[1], l = e.forwardProps, a = e.children, y = e.className, m = e.removeScrollBar, v = e.enabled, f = e.shards, d = e.sideCar, p = e.noIsolation, b = e.inert, o = e.allowPinchZoom, s = e.as, g = s === void 0 ? "div" : s, w = e.gapMode, S = U(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = d, h = fe([r, t]), k = E(E({}, S), i);
|
|
146
|
+
return c.createElement(
|
|
147
|
+
c.Fragment,
|
|
148
|
+
null,
|
|
149
|
+
v && c.createElement(C, { sideCar: J, removeScrollBar: m, shards: f, noIsolation: p, inert: b, setCallbacks: u, allowPinchZoom: !!o, lockRef: r, gapMode: w }),
|
|
150
|
+
l ? c.cloneElement(c.Children.only(a), E(E({}, k), { ref: h })) : c.createElement(g, E({}, k, { className: y, ref: h }), a)
|
|
151
|
+
);
|
|
152
|
+
});
|
|
153
|
+
X.defaultProps = {
|
|
154
|
+
enabled: !0,
|
|
155
|
+
removeScrollBar: !0,
|
|
156
|
+
inert: !1
|
|
157
|
+
};
|
|
158
|
+
X.classNames = {
|
|
159
|
+
fullWidth: D,
|
|
160
|
+
zeroRight: I
|
|
161
|
+
};
|
|
162
|
+
var ge = function() {
|
|
163
|
+
if (typeof __webpack_nonce__ != "undefined")
|
|
164
|
+
return __webpack_nonce__;
|
|
165
|
+
};
|
|
166
|
+
function ye() {
|
|
167
|
+
if (!document)
|
|
168
|
+
return null;
|
|
169
|
+
var e = document.createElement("style");
|
|
170
|
+
e.type = "text/css";
|
|
171
|
+
var t = ge();
|
|
172
|
+
return t && e.setAttribute("nonce", t), e;
|
|
173
|
+
}
|
|
174
|
+
function pe(e, t) {
|
|
175
|
+
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
176
|
+
}
|
|
177
|
+
function Se(e) {
|
|
178
|
+
var t = document.head || document.getElementsByTagName("head")[0];
|
|
179
|
+
t.appendChild(e);
|
|
180
|
+
}
|
|
181
|
+
var be = function() {
|
|
182
|
+
var e = 0, t = null;
|
|
183
|
+
return {
|
|
184
|
+
add: function(r) {
|
|
185
|
+
e == 0 && (t = ye()) && (pe(t, r), Se(t)), e++;
|
|
186
|
+
},
|
|
187
|
+
remove: function() {
|
|
188
|
+
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
}, we = function() {
|
|
192
|
+
var e = be();
|
|
193
|
+
return function(t, r) {
|
|
194
|
+
c.useEffect(function() {
|
|
195
|
+
return e.add(t), function() {
|
|
196
|
+
e.remove();
|
|
197
|
+
};
|
|
198
|
+
}, [t && r]);
|
|
199
|
+
};
|
|
200
|
+
}, ee = function() {
|
|
201
|
+
var e = we(), t = function(r) {
|
|
202
|
+
var n = r.styles, i = r.dynamic;
|
|
203
|
+
return e(n, i), null;
|
|
204
|
+
};
|
|
205
|
+
return t;
|
|
206
|
+
}, Ce = {
|
|
207
|
+
left: 0,
|
|
208
|
+
top: 0,
|
|
209
|
+
right: 0,
|
|
210
|
+
gap: 0
|
|
211
|
+
}, H = function(e) {
|
|
212
|
+
return parseInt(e || "", 10) || 0;
|
|
213
|
+
}, Ee = function(e) {
|
|
214
|
+
var t = window.getComputedStyle(document.body), r = t[e === "padding" ? "paddingLeft" : "marginLeft"], n = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
215
|
+
return [H(r), H(n), H(i)];
|
|
216
|
+
}, ke = function(e) {
|
|
217
|
+
if (e === void 0 && (e = "margin"), typeof window == "undefined")
|
|
218
|
+
return Ce;
|
|
219
|
+
var t = Ee(e), r = document.documentElement.clientWidth, n = window.innerWidth;
|
|
220
|
+
return {
|
|
221
|
+
left: t[0],
|
|
222
|
+
top: t[1],
|
|
223
|
+
right: t[2],
|
|
224
|
+
gap: Math.max(0, n - r + t[2] - t[0])
|
|
225
|
+
};
|
|
226
|
+
}, Re = ee(), P = "data-scroll-locked", Ae = function(e, t, r, n) {
|
|
227
|
+
var i = e.left, u = e.top, l = e.right, a = e.gap;
|
|
228
|
+
return r === void 0 && (r = "margin"), `
|
|
229
|
+
.`.concat(ie, ` {
|
|
230
|
+
overflow: hidden `).concat(n, `;
|
|
231
|
+
padding-right: `).concat(a, "px ").concat(n, `;
|
|
232
|
+
}
|
|
233
|
+
body[`).concat(P, `] {
|
|
234
|
+
overflow: hidden `).concat(n, `;
|
|
235
|
+
overscroll-behavior: contain;
|
|
236
|
+
`).concat([
|
|
237
|
+
t && "position: relative ".concat(n, ";"),
|
|
238
|
+
r === "margin" && `
|
|
239
|
+
padding-left: `.concat(i, `px;
|
|
240
|
+
padding-top: `).concat(u, `px;
|
|
241
|
+
padding-right: `).concat(l, `px;
|
|
242
|
+
margin-left:0;
|
|
243
|
+
margin-top:0;
|
|
244
|
+
margin-right: `).concat(a, "px ").concat(n, `;
|
|
245
|
+
`),
|
|
246
|
+
r === "padding" && "padding-right: ".concat(a, "px ").concat(n, ";")
|
|
247
|
+
].filter(Boolean).join(""), `
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.`).concat(I, ` {
|
|
251
|
+
right: `).concat(a, "px ").concat(n, `;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.`).concat(D, ` {
|
|
255
|
+
margin-right: `).concat(a, "px ").concat(n, `;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.`).concat(I, " .").concat(I, ` {
|
|
259
|
+
right: 0 `).concat(n, `;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.`).concat(D, " .").concat(D, ` {
|
|
263
|
+
margin-right: 0 `).concat(n, `;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
body[`).concat(P, `] {
|
|
267
|
+
`).concat(ue, ": ").concat(a, `px;
|
|
268
|
+
}
|
|
269
|
+
`);
|
|
270
|
+
}, q = function() {
|
|
271
|
+
var e = parseInt(document.body.getAttribute(P) || "0", 10);
|
|
272
|
+
return isFinite(e) ? e : 0;
|
|
273
|
+
}, Me = function() {
|
|
274
|
+
c.useEffect(function() {
|
|
275
|
+
return document.body.setAttribute(P, (q() + 1).toString()), function() {
|
|
276
|
+
var e = q() - 1;
|
|
277
|
+
e <= 0 ? document.body.removeAttribute(P) : document.body.setAttribute(P, e.toString());
|
|
278
|
+
};
|
|
279
|
+
}, []);
|
|
280
|
+
}, Pe = function(e) {
|
|
281
|
+
var t = e.noRelative, r = e.noImportant, n = e.gapMode, i = n === void 0 ? "margin" : n;
|
|
282
|
+
Me();
|
|
283
|
+
var u = c.useMemo(function() {
|
|
284
|
+
return ke(i);
|
|
285
|
+
}, [i]);
|
|
286
|
+
return c.createElement(Re, { styles: Ae(u, !t, i, r ? "" : "!important") });
|
|
287
|
+
}, j = !1;
|
|
288
|
+
if (typeof window != "undefined")
|
|
289
|
+
try {
|
|
290
|
+
var B = Object.defineProperty({}, "passive", {
|
|
291
|
+
get: function() {
|
|
292
|
+
return j = !0, !0;
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
window.addEventListener("test", B, B), window.removeEventListener("test", B, B);
|
|
296
|
+
} catch (e) {
|
|
297
|
+
j = !1;
|
|
298
|
+
}
|
|
299
|
+
var R = j ? { passive: !1 } : !1, xe = function(e) {
|
|
300
|
+
return e.tagName === "TEXTAREA";
|
|
301
|
+
}, te = function(e, t) {
|
|
302
|
+
if (!(e instanceof Element))
|
|
303
|
+
return !1;
|
|
304
|
+
var r = window.getComputedStyle(e);
|
|
305
|
+
return (
|
|
306
|
+
// not-not-scrollable
|
|
307
|
+
r[t] !== "hidden" && // contains scroll inside self
|
|
308
|
+
!(r.overflowY === r.overflowX && !xe(e) && r[t] === "visible")
|
|
309
|
+
);
|
|
310
|
+
}, We = function(e) {
|
|
311
|
+
return te(e, "overflowY");
|
|
312
|
+
}, Be = function(e) {
|
|
313
|
+
return te(e, "overflowX");
|
|
314
|
+
}, Q = function(e, t) {
|
|
315
|
+
var r = t.ownerDocument, n = t;
|
|
316
|
+
do {
|
|
317
|
+
typeof ShadowRoot != "undefined" && n instanceof ShadowRoot && (n = n.host);
|
|
318
|
+
var i = re(e, n);
|
|
319
|
+
if (i) {
|
|
320
|
+
var u = ne(e, n), l = u[1], a = u[2];
|
|
321
|
+
if (l > a)
|
|
322
|
+
return !0;
|
|
323
|
+
}
|
|
324
|
+
n = n.parentNode;
|
|
325
|
+
} while (n && n !== r.body);
|
|
326
|
+
return !1;
|
|
327
|
+
}, Le = function(e) {
|
|
328
|
+
var t = e.scrollTop, r = e.scrollHeight, n = e.clientHeight;
|
|
329
|
+
return [
|
|
330
|
+
t,
|
|
331
|
+
r,
|
|
332
|
+
n
|
|
333
|
+
];
|
|
334
|
+
}, Te = function(e) {
|
|
335
|
+
var t = e.scrollLeft, r = e.scrollWidth, n = e.clientWidth;
|
|
336
|
+
return [
|
|
337
|
+
t,
|
|
338
|
+
r,
|
|
339
|
+
n
|
|
340
|
+
];
|
|
341
|
+
}, re = function(e, t) {
|
|
342
|
+
return e === "v" ? We(t) : Be(t);
|
|
343
|
+
}, ne = function(e, t) {
|
|
344
|
+
return e === "v" ? Le(t) : Te(t);
|
|
345
|
+
}, Ne = function(e, t) {
|
|
346
|
+
return e === "h" && t === "rtl" ? -1 : 1;
|
|
347
|
+
}, Ie = function(e, t, r, n, i) {
|
|
348
|
+
var u = Ne(e, window.getComputedStyle(t).direction), l = u * n, a = r.target, y = t.contains(a), m = !1, v = l > 0, f = 0, d = 0;
|
|
349
|
+
do {
|
|
350
|
+
var p = ne(e, a), b = p[0], o = p[1], s = p[2], g = o - s - u * b;
|
|
351
|
+
(b || g) && re(e, a) && (f += g, d += b), a instanceof ShadowRoot ? a = a.host : a = a.parentNode;
|
|
352
|
+
} while (
|
|
353
|
+
// portaled content
|
|
354
|
+
!y && a !== document.body || // self content
|
|
355
|
+
y && (t.contains(a) || t === a)
|
|
356
|
+
);
|
|
357
|
+
return (v && Math.abs(f) < 1 || !v && Math.abs(d) < 1) && (m = !0), m;
|
|
358
|
+
}, L = function(e) {
|
|
359
|
+
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
360
|
+
}, _ = function(e) {
|
|
361
|
+
return [e.deltaX, e.deltaY];
|
|
362
|
+
}, K = function(e) {
|
|
363
|
+
return e && "current" in e ? e.current : e;
|
|
364
|
+
}, De = function(e, t) {
|
|
365
|
+
return e[0] === t[0] && e[1] === t[1];
|
|
366
|
+
}, Xe = function(e) {
|
|
367
|
+
return `
|
|
368
|
+
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
369
|
+
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
370
|
+
`);
|
|
371
|
+
}, Ye = 0, A = [];
|
|
372
|
+
function Ve(e) {
|
|
373
|
+
var t = c.useRef([]), r = c.useRef([0, 0]), n = c.useRef(), i = c.useState(Ye++)[0], u = c.useState(ee)[0], l = c.useRef(e);
|
|
374
|
+
c.useEffect(function() {
|
|
375
|
+
l.current = e;
|
|
376
|
+
}, [e]), c.useEffect(function() {
|
|
377
|
+
if (e.inert) {
|
|
378
|
+
document.body.classList.add("block-interactivity-".concat(i));
|
|
379
|
+
var o = ce([e.lockRef.current], (e.shards || []).map(K), !0).filter(Boolean);
|
|
380
|
+
return o.forEach(function(s) {
|
|
381
|
+
return s.classList.add("allow-interactivity-".concat(i));
|
|
382
|
+
}), function() {
|
|
383
|
+
document.body.classList.remove("block-interactivity-".concat(i)), o.forEach(function(s) {
|
|
384
|
+
return s.classList.remove("allow-interactivity-".concat(i));
|
|
385
|
+
});
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
}, [e.inert, e.lockRef.current, e.shards]);
|
|
389
|
+
var a = c.useCallback(function(o, s) {
|
|
390
|
+
if ("touches" in o && o.touches.length === 2 || o.type === "wheel" && o.ctrlKey)
|
|
391
|
+
return !l.current.allowPinchZoom;
|
|
392
|
+
var g = L(o), w = r.current, S = "deltaX" in o ? o.deltaX : w[0] - g[0], C = "deltaY" in o ? o.deltaY : w[1] - g[1], h, k = o.target, x = Math.abs(S) > Math.abs(C) ? "h" : "v";
|
|
393
|
+
if ("touches" in o && x === "h" && k.type === "range")
|
|
394
|
+
return !1;
|
|
395
|
+
var W = Q(x, k);
|
|
396
|
+
if (!W)
|
|
397
|
+
return !0;
|
|
398
|
+
if (W ? h = x : (h = x === "v" ? "h" : "v", W = Q(x, k)), !W)
|
|
399
|
+
return !1;
|
|
400
|
+
if (!n.current && "changedTouches" in o && (S || C) && (n.current = h), !h)
|
|
401
|
+
return !0;
|
|
402
|
+
var z = n.current || h;
|
|
403
|
+
return Ie(z, s, o, z === "h" ? S : C);
|
|
404
|
+
}, []), y = c.useCallback(function(o) {
|
|
405
|
+
var s = o;
|
|
406
|
+
if (!(!A.length || A[A.length - 1] !== u)) {
|
|
407
|
+
var g = "deltaY" in s ? _(s) : L(s), w = t.current.filter(function(h) {
|
|
408
|
+
return h.name === s.type && (h.target === s.target || s.target === h.shadowParent) && De(h.delta, g);
|
|
409
|
+
})[0];
|
|
410
|
+
if (w && w.should) {
|
|
411
|
+
s.cancelable && s.preventDefault();
|
|
412
|
+
return;
|
|
413
|
+
}
|
|
414
|
+
if (!w) {
|
|
415
|
+
var S = (l.current.shards || []).map(K).filter(Boolean).filter(function(h) {
|
|
416
|
+
return h.contains(s.target);
|
|
417
|
+
}), C = S.length > 0 ? a(s, S[0]) : !l.current.noIsolation;
|
|
418
|
+
C && s.cancelable && s.preventDefault();
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}, []), m = c.useCallback(function(o, s, g, w) {
|
|
422
|
+
var S = { name: o, delta: s, target: g, should: w, shadowParent: Fe(g) };
|
|
423
|
+
t.current.push(S), setTimeout(function() {
|
|
424
|
+
t.current = t.current.filter(function(C) {
|
|
425
|
+
return C !== S;
|
|
426
|
+
});
|
|
427
|
+
}, 1);
|
|
428
|
+
}, []), v = c.useCallback(function(o) {
|
|
429
|
+
r.current = L(o), n.current = void 0;
|
|
430
|
+
}, []), f = c.useCallback(function(o) {
|
|
431
|
+
m(o.type, _(o), o.target, a(o, e.lockRef.current));
|
|
432
|
+
}, []), d = c.useCallback(function(o) {
|
|
433
|
+
m(o.type, L(o), o.target, a(o, e.lockRef.current));
|
|
434
|
+
}, []);
|
|
435
|
+
c.useEffect(function() {
|
|
436
|
+
return A.push(u), e.setCallbacks({
|
|
437
|
+
onScrollCapture: f,
|
|
438
|
+
onWheelCapture: f,
|
|
439
|
+
onTouchMoveCapture: d
|
|
440
|
+
}), document.addEventListener("wheel", y, R), document.addEventListener("touchmove", y, R), document.addEventListener("touchstart", v, R), function() {
|
|
441
|
+
A = A.filter(function(o) {
|
|
442
|
+
return o !== u;
|
|
443
|
+
}), document.removeEventListener("wheel", y, R), document.removeEventListener("touchmove", y, R), document.removeEventListener("touchstart", v, R);
|
|
444
|
+
};
|
|
445
|
+
}, []);
|
|
446
|
+
var p = e.removeScrollBar, b = e.inert;
|
|
447
|
+
return c.createElement(
|
|
448
|
+
c.Fragment,
|
|
449
|
+
null,
|
|
450
|
+
b ? c.createElement(u, { styles: Xe(i) }) : null,
|
|
451
|
+
p ? c.createElement(Pe, { gapMode: e.gapMode }) : null
|
|
452
|
+
);
|
|
453
|
+
}
|
|
454
|
+
function Fe(e) {
|
|
455
|
+
for (var t = null; e !== null; )
|
|
456
|
+
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
457
|
+
return t;
|
|
458
|
+
}
|
|
459
|
+
const He = me(J, Ve);
|
|
460
|
+
var Oe = c.forwardRef(function(e, t) {
|
|
461
|
+
return c.createElement(X, E({}, e, { ref: t, sideCar: He }));
|
|
462
|
+
});
|
|
463
|
+
Oe.classNames = X.classNames;
|
|
464
|
+
var je = function(e) {
|
|
465
|
+
if (typeof document == "undefined")
|
|
466
|
+
return null;
|
|
467
|
+
var t = Array.isArray(e) ? e[0] : e;
|
|
468
|
+
return t.ownerDocument.body;
|
|
469
|
+
}, M = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), N = {}, O = 0, ae = function(e) {
|
|
470
|
+
return e && (e.host || ae(e.parentNode));
|
|
471
|
+
}, ze = function(e, t) {
|
|
472
|
+
return t.map(function(r) {
|
|
473
|
+
if (e.contains(r))
|
|
474
|
+
return r;
|
|
475
|
+
var n = ae(r);
|
|
476
|
+
return n && e.contains(n) ? n : (console.error("aria-hidden", r, "in not contained inside", e, ". Doing nothing"), null);
|
|
477
|
+
}).filter(function(r) {
|
|
478
|
+
return !!r;
|
|
479
|
+
});
|
|
480
|
+
}, Ge = function(e, t, r, n) {
|
|
481
|
+
var i = ze(t, Array.isArray(e) ? e : [e]);
|
|
482
|
+
N[r] || (N[r] = /* @__PURE__ */ new WeakMap());
|
|
483
|
+
var u = N[r], l = [], a = /* @__PURE__ */ new Set(), y = new Set(i), m = function(f) {
|
|
484
|
+
!f || a.has(f) || (a.add(f), m(f.parentNode));
|
|
485
|
+
};
|
|
486
|
+
i.forEach(m);
|
|
487
|
+
var v = function(f) {
|
|
488
|
+
!f || y.has(f) || Array.prototype.forEach.call(f.children, function(d) {
|
|
489
|
+
if (a.has(d))
|
|
490
|
+
v(d);
|
|
491
|
+
else
|
|
492
|
+
try {
|
|
493
|
+
var p = d.getAttribute(n), b = p !== null && p !== "false", o = (M.get(d) || 0) + 1, s = (u.get(d) || 0) + 1;
|
|
494
|
+
M.set(d, o), u.set(d, s), l.push(d), o === 1 && b && T.set(d, !0), s === 1 && d.setAttribute(r, "true"), b || d.setAttribute(n, "true");
|
|
495
|
+
} catch (g) {
|
|
496
|
+
console.error("aria-hidden: cannot operate on ", d, g);
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
};
|
|
500
|
+
return v(t), a.clear(), O++, function() {
|
|
501
|
+
l.forEach(function(f) {
|
|
502
|
+
var d = M.get(f) - 1, p = u.get(f) - 1;
|
|
503
|
+
M.set(f, d), u.set(f, p), d || (T.has(f) || f.removeAttribute(n), T.delete(f)), p || f.removeAttribute(r);
|
|
504
|
+
}), O--, O || (M = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), N = {});
|
|
505
|
+
};
|
|
506
|
+
}, _e = function(e, t, r) {
|
|
507
|
+
r === void 0 && (r = "data-aria-hidden");
|
|
508
|
+
var n = Array.from(Array.isArray(e) ? e : [e]), i = je(e);
|
|
509
|
+
return i ? (n.push.apply(n, Array.from(i.querySelectorAll("[aria-live]"))), Ge(n, i, r, "aria-hidden")) : function() {
|
|
510
|
+
return null;
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
export {
|
|
514
|
+
Oe as R,
|
|
515
|
+
_e as h,
|
|
516
|
+
Qe as u
|
|
517
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as h from "react";
|
|
2
|
+
import { u as z } from "./index-DuekHEmj.js";
|
|
3
|
+
function n(r) {
|
|
4
|
+
const [d, e] = h.useState(void 0);
|
|
5
|
+
return z(() => {
|
|
6
|
+
if (r) {
|
|
7
|
+
e({ width: r.offsetWidth, height: r.offsetHeight });
|
|
8
|
+
const f = new ResizeObserver((i) => {
|
|
9
|
+
if (!Array.isArray(i) || !i.length)
|
|
10
|
+
return;
|
|
11
|
+
const b = i[0];
|
|
12
|
+
let o, t;
|
|
13
|
+
if ("borderBoxSize" in b) {
|
|
14
|
+
const s = b.borderBoxSize, u = Array.isArray(s) ? s[0] : s;
|
|
15
|
+
o = u.inlineSize, t = u.blockSize;
|
|
16
|
+
} else
|
|
17
|
+
o = r.offsetWidth, t = r.offsetHeight;
|
|
18
|
+
e({ width: o, height: t });
|
|
19
|
+
});
|
|
20
|
+
return f.observe(r, { box: "border-box" }), () => f.unobserve(r);
|
|
21
|
+
} else
|
|
22
|
+
e(void 0);
|
|
23
|
+
}, [r]), d;
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
n as u
|
|
27
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
var _ = Object.defineProperty, x = Object.defineProperties;
|
|
2
|
+
var I = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var u = Object.getOwnPropertySymbols;
|
|
4
|
+
var C = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var E = (e, t, r) => t in e ? _(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, c = (e, t) => {
|
|
6
|
+
for (var r in t || (t = {}))
|
|
7
|
+
C.call(t, r) && E(e, r, t[r]);
|
|
8
|
+
if (u)
|
|
9
|
+
for (var r of u(t))
|
|
10
|
+
b.call(t, r) && E(e, r, t[r]);
|
|
11
|
+
return e;
|
|
12
|
+
}, d = (e, t) => x(e, I(t));
|
|
13
|
+
var m = (e, t) => {
|
|
14
|
+
var r = {};
|
|
15
|
+
for (var n in e)
|
|
16
|
+
C.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
17
|
+
if (e != null && u)
|
|
18
|
+
for (var n of u(e))
|
|
19
|
+
t.indexOf(n) < 0 && b.call(e, n) && (r[n] = e[n]);
|
|
20
|
+
return r;
|
|
21
|
+
};
|
|
22
|
+
import * as l from "react";
|
|
23
|
+
import { c as V } from "./index-DLcqcWxM.js";
|
|
24
|
+
import { jsx as y, Fragment as N } from "react/jsx-runtime";
|
|
25
|
+
// @__NO_SIDE_EFFECTS__
|
|
26
|
+
function O(e) {
|
|
27
|
+
const t = /* @__PURE__ */ P(e), r = l.forwardRef((n, o) => {
|
|
28
|
+
const S = n, { children: i } = S, f = m(S, ["children"]), s = l.Children.toArray(i), a = s.find(W);
|
|
29
|
+
if (a) {
|
|
30
|
+
const p = a.props.children, h = s.map((g) => g === a ? l.Children.count(p) > 1 ? l.Children.only(null) : l.isValidElement(p) ? p.props.children : null : g);
|
|
31
|
+
return /* @__PURE__ */ y(t, d(c({}, f), { ref: o, children: l.isValidElement(p) ? l.cloneElement(p, void 0, h) : null }));
|
|
32
|
+
}
|
|
33
|
+
return /* @__PURE__ */ y(t, d(c({}, f), { ref: o, children: i }));
|
|
34
|
+
});
|
|
35
|
+
return r.displayName = `${e}.Slot`, r;
|
|
36
|
+
}
|
|
37
|
+
var F = /* @__PURE__ */ O("Slot");
|
|
38
|
+
// @__NO_SIDE_EFFECTS__
|
|
39
|
+
function P(e) {
|
|
40
|
+
const t = l.forwardRef((r, n) => {
|
|
41
|
+
const f = r, { children: o } = f, i = m(f, ["children"]);
|
|
42
|
+
if (l.isValidElement(o)) {
|
|
43
|
+
const s = v(o), a = j(i, o.props);
|
|
44
|
+
return o.type !== l.Fragment && (a.ref = n ? V(n, s) : s), l.cloneElement(o, a);
|
|
45
|
+
}
|
|
46
|
+
return l.Children.count(o) > 1 ? l.Children.only(null) : null;
|
|
47
|
+
});
|
|
48
|
+
return t.displayName = `${e}.SlotClone`, t;
|
|
49
|
+
}
|
|
50
|
+
var R = Symbol("radix.slottable");
|
|
51
|
+
// @__NO_SIDE_EFFECTS__
|
|
52
|
+
function T(e) {
|
|
53
|
+
const t = ({ children: r }) => /* @__PURE__ */ y(N, { children: r });
|
|
54
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = R, t;
|
|
55
|
+
}
|
|
56
|
+
function W(e) {
|
|
57
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === R;
|
|
58
|
+
}
|
|
59
|
+
function j(e, t) {
|
|
60
|
+
const r = c({}, t);
|
|
61
|
+
for (const n in t) {
|
|
62
|
+
const o = e[n], i = t[n];
|
|
63
|
+
/^on[A-Z]/.test(n) ? o && i ? r[n] = (...s) => {
|
|
64
|
+
const a = i(...s);
|
|
65
|
+
return o(...s), a;
|
|
66
|
+
} : o && (r[n] = o) : n === "style" ? r[n] = c(c({}, o), i) : n === "className" && (r[n] = [o, i].filter(Boolean).join(" "));
|
|
67
|
+
}
|
|
68
|
+
return c(c({}, e), r);
|
|
69
|
+
}
|
|
70
|
+
function v(e) {
|
|
71
|
+
var n, o;
|
|
72
|
+
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
73
|
+
return r ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
F as S,
|
|
77
|
+
T as a,
|
|
78
|
+
O as c
|
|
79
|
+
};
|