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,392 @@
|
|
|
1
|
+
var Y = Object.defineProperty, Z = Object.defineProperties;
|
|
2
|
+
var D = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var N = Object.getOwnPropertySymbols;
|
|
4
|
+
var X = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var U = (e, s, i) => s in e ? Y(e, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[s] = i, G = (e, s) => {
|
|
6
|
+
for (var i in s || (s = {}))
|
|
7
|
+
X.call(s, i) && U(e, i, s[i]);
|
|
8
|
+
if (N)
|
|
9
|
+
for (var i of N(s))
|
|
10
|
+
q.call(s, i) && U(e, i, s[i]);
|
|
11
|
+
return e;
|
|
12
|
+
}, J = (e, s) => Z(e, D(s));
|
|
13
|
+
var K = (e, s) => {
|
|
14
|
+
var i = {};
|
|
15
|
+
for (var c in e)
|
|
16
|
+
X.call(e, c) && s.indexOf(c) < 0 && (i[c] = e[c]);
|
|
17
|
+
if (e != null && N)
|
|
18
|
+
for (var c of N(e))
|
|
19
|
+
s.indexOf(c) < 0 && q.call(e, c) && (i[c] = e[c]);
|
|
20
|
+
return i;
|
|
21
|
+
};
|
|
22
|
+
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
23
|
+
import y from "react";
|
|
24
|
+
import { X as E, p as rr, w as tr, B as w, r as er, s as or, v as sr, _ as ir } from "../../chunks/uploader-BN38rjbw.js";
|
|
25
|
+
import { Calendar as Q } from "./calendar.js";
|
|
26
|
+
import { P as nr, c as cr, b as dr } from "../../chunks/popover-kFSgc5Lv.js";
|
|
27
|
+
import { Icon as g } from "../icon/icon.js";
|
|
28
|
+
import "../icon-banks/icons-banks.js";
|
|
29
|
+
import "../icon-documents/icons-document.js";
|
|
30
|
+
import { c as l } from "../../chunks/utils-TbLXCoKm.js";
|
|
31
|
+
import "./command.js";
|
|
32
|
+
import "./avatar.js";
|
|
33
|
+
import "./card.js";
|
|
34
|
+
import "./checkbox.js";
|
|
35
|
+
import "../../chunks/combobox-primitive-context-B_ldR_VA.js";
|
|
36
|
+
import "./combobox-primitive/components/combobox-container.js";
|
|
37
|
+
import "./combobox-primitive/components/combobox-input.js";
|
|
38
|
+
import "./combobox-primitive/components/combobox-item-renderer.js";
|
|
39
|
+
import "./combobox-primitive/components/combobox-menu.js";
|
|
40
|
+
import "./combobox-primitive/components/Item.js";
|
|
41
|
+
import "./combobox-primitive/components/item-view.js";
|
|
42
|
+
import "./combobox-primitive/components/list.js";
|
|
43
|
+
import "./customizable-carousel.js";
|
|
44
|
+
import "./dialog/dialog-base/use-base-dialog.js";
|
|
45
|
+
import "./link.js";
|
|
46
|
+
import "./segments.js";
|
|
47
|
+
import "./spinner.js";
|
|
48
|
+
import "./switch.js";
|
|
49
|
+
import "./tabs.js";
|
|
50
|
+
import "./tag.js";
|
|
51
|
+
import "./toaster.js";
|
|
52
|
+
import "../../chunks/tooltip-BxRtZLBR.js";
|
|
53
|
+
import { translations as lr } from "./date-range-picker/constants.js";
|
|
54
|
+
import { tg as ar, uz as mr } from "./date-range-picker/locales.js";
|
|
55
|
+
import { f as M, e as ur } from "../../chunks/format-DoKcg9cH.js";
|
|
56
|
+
import { r as fr } from "../../chunks/ru-CUCVR8Pn.js";
|
|
57
|
+
const xr = (e) => {
|
|
58
|
+
switch (e) {
|
|
59
|
+
case "en":
|
|
60
|
+
return ur;
|
|
61
|
+
case "uz":
|
|
62
|
+
return mr;
|
|
63
|
+
case "tg":
|
|
64
|
+
return ar;
|
|
65
|
+
case "ru":
|
|
66
|
+
default:
|
|
67
|
+
return fr;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
function et(pr) {
|
|
71
|
+
var _ = pr, {
|
|
72
|
+
className: e,
|
|
73
|
+
value: s,
|
|
74
|
+
locale: i = "ru",
|
|
75
|
+
onDateChange: c,
|
|
76
|
+
placeholder: x,
|
|
77
|
+
error: o,
|
|
78
|
+
caption: P,
|
|
79
|
+
label: O,
|
|
80
|
+
size: f = "md",
|
|
81
|
+
disabled: n = !1,
|
|
82
|
+
showResetButton: I = !0,
|
|
83
|
+
onReset: F,
|
|
84
|
+
disabledDays: S,
|
|
85
|
+
"data-testid": A
|
|
86
|
+
} = _, R = K(_, [
|
|
87
|
+
"className",
|
|
88
|
+
"value",
|
|
89
|
+
"locale",
|
|
90
|
+
"onDateChange",
|
|
91
|
+
"placeholder",
|
|
92
|
+
"error",
|
|
93
|
+
"caption",
|
|
94
|
+
"label",
|
|
95
|
+
"size",
|
|
96
|
+
"disabled",
|
|
97
|
+
"showResetButton",
|
|
98
|
+
"onReset",
|
|
99
|
+
"disabledDays",
|
|
100
|
+
"data-testid"
|
|
101
|
+
]);
|
|
102
|
+
const [r, T] = y.useState(s), [u, j] = y.useState(!1), C = ir(), h = lr[i], p = xr(i), v = {
|
|
103
|
+
from: (x == null ? void 0 : x.from) || h.placeholder,
|
|
104
|
+
to: (x == null ? void 0 : x.to) || h.placeholder
|
|
105
|
+
}, V = y.useMemo(() => {
|
|
106
|
+
const a = (b) => typeof b == "string", k = (b) => typeof b == "object" && b !== null;
|
|
107
|
+
return {
|
|
108
|
+
hasAnyError: () => o ? a(o) ? !0 : !!(o.from || o.to) : !1,
|
|
109
|
+
hasFromError: () => a(o) ? !0 : k(o) && !!o.from,
|
|
110
|
+
hasToError: () => a(o) ? !0 : k(o) && !!o.to,
|
|
111
|
+
getErrorText: () => a(o) ? o : k(o) ? o.from && o.to ? `${o.from}, ${o.to}` : o.from || o.to || "" : ""
|
|
112
|
+
};
|
|
113
|
+
}, [o]), { hasAnyError: d, hasFromError: B, hasToError: L, getErrorText: W } = V;
|
|
114
|
+
y.useEffect(() => {
|
|
115
|
+
T(s);
|
|
116
|
+
}, [s]);
|
|
117
|
+
const $ = (a) => {
|
|
118
|
+
T(a), c == null || c(a), a != null && a.from && (a != null && a.to) && C === "mobile" && j(!1);
|
|
119
|
+
}, z = () => {
|
|
120
|
+
T(void 0), c == null || c(void 0), F == null || F();
|
|
121
|
+
}, H = () => {
|
|
122
|
+
switch (f) {
|
|
123
|
+
case "md":
|
|
124
|
+
return "rounded-lg";
|
|
125
|
+
case "lg":
|
|
126
|
+
return "rounded-xl";
|
|
127
|
+
default:
|
|
128
|
+
return "rounded-lg";
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
return /* @__PURE__ */ m("div", J(G({ className: e }, R), { children: [
|
|
132
|
+
O && /* @__PURE__ */ t(
|
|
133
|
+
E,
|
|
134
|
+
{
|
|
135
|
+
variant: "p3",
|
|
136
|
+
weight: "medium",
|
|
137
|
+
className: l("mb-1.5", {
|
|
138
|
+
"text-[14px]": f === "md",
|
|
139
|
+
"text-[16px]": f === "lg"
|
|
140
|
+
}),
|
|
141
|
+
children: O
|
|
142
|
+
}
|
|
143
|
+
),
|
|
144
|
+
C === "mobile" ? /* @__PURE__ */ m(rr, { open: u, onOpenChange: j, children: [
|
|
145
|
+
/* @__PURE__ */ t(tr, { asChild: !0, children: /* @__PURE__ */ t(
|
|
146
|
+
w,
|
|
147
|
+
{
|
|
148
|
+
variant: "dashed",
|
|
149
|
+
disabled: n,
|
|
150
|
+
size: f,
|
|
151
|
+
iconPosition: "end",
|
|
152
|
+
className: l(
|
|
153
|
+
"group border-border font-graphik w-full justify-start border-1 border-solid text-left text-[16px] leading-[22px]",
|
|
154
|
+
H(),
|
|
155
|
+
f === "lg" ? "px-3" : "px-2.5",
|
|
156
|
+
d() ? "hover:text-destructive" : "",
|
|
157
|
+
{
|
|
158
|
+
"shadow-focus border-primary border-1 border-solid": u
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"shadow-error border-destructive border-1 border-solid": d() && u
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"bg-background placeholder:text-muted-foreground disabled:bg-input-disabled-background border-destructive focus:border-destructive enabled:hover:border-destructive": d()
|
|
165
|
+
}
|
|
166
|
+
),
|
|
167
|
+
"data-testid": A,
|
|
168
|
+
children: /* @__PURE__ */ m("div", { className: "flex w-full items-center", children: [
|
|
169
|
+
/* @__PURE__ */ m(
|
|
170
|
+
"div",
|
|
171
|
+
{
|
|
172
|
+
className: l(
|
|
173
|
+
"flex w-full items-center justify-between",
|
|
174
|
+
r ? "text-foreground" : "text-muted-foreground",
|
|
175
|
+
u && !n && "!text-default"
|
|
176
|
+
),
|
|
177
|
+
children: [
|
|
178
|
+
/* @__PURE__ */ t(
|
|
179
|
+
"div",
|
|
180
|
+
{
|
|
181
|
+
className: l(
|
|
182
|
+
"flex-1 text-left",
|
|
183
|
+
B() && "text-destructive"
|
|
184
|
+
),
|
|
185
|
+
children: r != null && r.from ? M(r.from, "dd.MM.yyyy", {
|
|
186
|
+
locale: p
|
|
187
|
+
}) : /* @__PURE__ */ t("span", { className: l(n && "text-muted-foreground"), children: v.from })
|
|
188
|
+
}
|
|
189
|
+
),
|
|
190
|
+
/* @__PURE__ */ t(g, { icon: "ArrowForwardIcon", className: "mx-1.5" }),
|
|
191
|
+
/* @__PURE__ */ t(
|
|
192
|
+
"div",
|
|
193
|
+
{
|
|
194
|
+
className: l(
|
|
195
|
+
"flex-1 text-left",
|
|
196
|
+
L() && "text-destructive"
|
|
197
|
+
),
|
|
198
|
+
children: r != null && r.to ? M(r.to, "dd.MM.yyyy", {
|
|
199
|
+
locale: p
|
|
200
|
+
}) : /* @__PURE__ */ t("span", { className: l(n && "text-muted-foreground"), children: v.to })
|
|
201
|
+
}
|
|
202
|
+
)
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
),
|
|
206
|
+
/* @__PURE__ */ m("div", { className: "ml-2 flex items-center gap-1.5", children: [
|
|
207
|
+
/* @__PURE__ */ t(
|
|
208
|
+
g,
|
|
209
|
+
{
|
|
210
|
+
className: l(
|
|
211
|
+
"group-focus-within:text-foreground text-muted-foreground transition-colors",
|
|
212
|
+
n && "text-muted-foreground",
|
|
213
|
+
u && !n && !d() && "!text-default",
|
|
214
|
+
r && (r.from || r.to) && !n && !d() && "text-default",
|
|
215
|
+
d() && "!group-focus-within:!text-destructive !text-destructive"
|
|
216
|
+
),
|
|
217
|
+
icon: "CalendarIcon",
|
|
218
|
+
size: 16
|
|
219
|
+
}
|
|
220
|
+
),
|
|
221
|
+
d() && /* @__PURE__ */ t(
|
|
222
|
+
g,
|
|
223
|
+
{
|
|
224
|
+
icon: "ErrorFillIcon",
|
|
225
|
+
className: "text-destructive",
|
|
226
|
+
size: 16
|
|
227
|
+
}
|
|
228
|
+
)
|
|
229
|
+
] })
|
|
230
|
+
] })
|
|
231
|
+
}
|
|
232
|
+
) }),
|
|
233
|
+
/* @__PURE__ */ m(er, { className: "w-full", children: [
|
|
234
|
+
/* @__PURE__ */ t(or, { children: /* @__PURE__ */ t(sr, { className: "m-0 mb-5 p-0 text-left", children: /* @__PURE__ */ t(E, { variant: "h2", className: "font-graphik", children: h.selectPeriod }) }) }),
|
|
235
|
+
/* @__PURE__ */ t(
|
|
236
|
+
Q,
|
|
237
|
+
{
|
|
238
|
+
initialFocus: !0,
|
|
239
|
+
mode: "range",
|
|
240
|
+
defaultMonth: r == null ? void 0 : r.from,
|
|
241
|
+
selected: r,
|
|
242
|
+
className: "mt-3",
|
|
243
|
+
onSelect: $,
|
|
244
|
+
numberOfMonths: 1,
|
|
245
|
+
locale: p,
|
|
246
|
+
disabled: S
|
|
247
|
+
}
|
|
248
|
+
),
|
|
249
|
+
I && /* @__PURE__ */ t("div", { className: "flex h-[44px] items-center justify-center", children: /* @__PURE__ */ t(
|
|
250
|
+
w,
|
|
251
|
+
{
|
|
252
|
+
onClick: z,
|
|
253
|
+
variant: "text",
|
|
254
|
+
className: "w-full",
|
|
255
|
+
disabled: !(r != null && r.from) && !(r != null && r.to),
|
|
256
|
+
children: h.reset
|
|
257
|
+
}
|
|
258
|
+
) })
|
|
259
|
+
] })
|
|
260
|
+
] }) : /* @__PURE__ */ m(nr, { open: u, onOpenChange: j, children: [
|
|
261
|
+
/* @__PURE__ */ t(cr, { asChild: !0, children: /* @__PURE__ */ t(
|
|
262
|
+
w,
|
|
263
|
+
{
|
|
264
|
+
variant: "dashed",
|
|
265
|
+
disabled: n,
|
|
266
|
+
size: f,
|
|
267
|
+
iconPosition: "end",
|
|
268
|
+
className: l(
|
|
269
|
+
"group border-border font-graphik w-full justify-start border-1 border-solid text-left text-[16px] leading-[22px]",
|
|
270
|
+
H(),
|
|
271
|
+
f === "lg" ? "px-3" : "px-2.5",
|
|
272
|
+
d() ? "hover:text-destructive" : "",
|
|
273
|
+
{
|
|
274
|
+
"shadow-focus border-primary border-1 border-solid": u
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"shadow-error border-destructive border-1 border-solid": d() && u
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"bg-background placeholder:text-muted-foreground disabled:bg-input-disabled-background border-destructive focus:border-destructive enabled:hover:border-destructive": d()
|
|
281
|
+
}
|
|
282
|
+
),
|
|
283
|
+
"data-testid": A,
|
|
284
|
+
children: /* @__PURE__ */ m("div", { className: "flex w-full items-center", children: [
|
|
285
|
+
/* @__PURE__ */ m(
|
|
286
|
+
"div",
|
|
287
|
+
{
|
|
288
|
+
className: l(
|
|
289
|
+
"flex w-full items-center justify-between",
|
|
290
|
+
r ? "text-foreground" : "text-muted-foreground",
|
|
291
|
+
u && !n && "!text-default"
|
|
292
|
+
),
|
|
293
|
+
children: [
|
|
294
|
+
/* @__PURE__ */ t(
|
|
295
|
+
"div",
|
|
296
|
+
{
|
|
297
|
+
className: l(
|
|
298
|
+
"flex-1 text-left",
|
|
299
|
+
B() && "text-destructive",
|
|
300
|
+
n && "text-muted-foreground"
|
|
301
|
+
),
|
|
302
|
+
children: r != null && r.from ? M(r.from, "dd.MM.yyyy", {
|
|
303
|
+
locale: p
|
|
304
|
+
}) : /* @__PURE__ */ t("span", { className: l(n && "text-muted-foreground"), children: v.from })
|
|
305
|
+
}
|
|
306
|
+
),
|
|
307
|
+
/* @__PURE__ */ t(g, { icon: "ArrowForwardIcon", className: l("mx-1.5", n && "text-muted-foreground") }),
|
|
308
|
+
/* @__PURE__ */ t(
|
|
309
|
+
"div",
|
|
310
|
+
{
|
|
311
|
+
className: l(
|
|
312
|
+
"flex-1 text-left",
|
|
313
|
+
L() && "text-destructive",
|
|
314
|
+
n && "text-muted-foreground"
|
|
315
|
+
),
|
|
316
|
+
children: r != null && r.to ? M(r.to, "dd.MM.yyyy", {
|
|
317
|
+
locale: p
|
|
318
|
+
}) : /* @__PURE__ */ t("span", { className: l(n && "text-muted-foreground"), children: v.to })
|
|
319
|
+
}
|
|
320
|
+
)
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
),
|
|
324
|
+
/* @__PURE__ */ m("div", { className: "ml-2 flex items-center gap-1.5", children: [
|
|
325
|
+
/* @__PURE__ */ t(
|
|
326
|
+
g,
|
|
327
|
+
{
|
|
328
|
+
className: l(
|
|
329
|
+
"group-focus-within:text-foreground text-muted-foreground transition-colors",
|
|
330
|
+
n && "text-muted-foreground",
|
|
331
|
+
u && !n && !d() && "!text-default",
|
|
332
|
+
r && (r.from || r.to) && !n && !d() && "text-default",
|
|
333
|
+
d() && "!group-focus-within:!text-destructive !text-destructive"
|
|
334
|
+
),
|
|
335
|
+
icon: "CalendarIcon",
|
|
336
|
+
size: 16
|
|
337
|
+
}
|
|
338
|
+
),
|
|
339
|
+
d() && /* @__PURE__ */ t(
|
|
340
|
+
g,
|
|
341
|
+
{
|
|
342
|
+
icon: "ErrorFillIcon",
|
|
343
|
+
className: "text-destructive",
|
|
344
|
+
size: 16
|
|
345
|
+
}
|
|
346
|
+
)
|
|
347
|
+
] })
|
|
348
|
+
] })
|
|
349
|
+
}
|
|
350
|
+
) }),
|
|
351
|
+
/* @__PURE__ */ m(
|
|
352
|
+
dr,
|
|
353
|
+
{
|
|
354
|
+
className: "w-screen rounded-xl p-0 shadow-[0_2px_10px_rgba(0,0,0,0.1)] sm:w-auto",
|
|
355
|
+
align: "start",
|
|
356
|
+
sideOffset: 4,
|
|
357
|
+
children: [
|
|
358
|
+
/* @__PURE__ */ t(
|
|
359
|
+
Q,
|
|
360
|
+
{
|
|
361
|
+
initialFocus: !0,
|
|
362
|
+
mode: "range",
|
|
363
|
+
defaultMonth: r == null ? void 0 : r.from,
|
|
364
|
+
selected: r,
|
|
365
|
+
onSelect: $,
|
|
366
|
+
numberOfMonths: 2,
|
|
367
|
+
locale: p,
|
|
368
|
+
disabled: S
|
|
369
|
+
}
|
|
370
|
+
),
|
|
371
|
+
I && /* @__PURE__ */ t("div", { className: "flex h-11 items-center justify-center px-2.5 py-2.5", children: /* @__PURE__ */ t(
|
|
372
|
+
w,
|
|
373
|
+
{
|
|
374
|
+
onClick: z,
|
|
375
|
+
variant: "text",
|
|
376
|
+
size: "sm",
|
|
377
|
+
className: "w-full",
|
|
378
|
+
disabled: !(r != null && r.from) && !(r != null && r.to),
|
|
379
|
+
children: h.reset
|
|
380
|
+
}
|
|
381
|
+
) })
|
|
382
|
+
]
|
|
383
|
+
}
|
|
384
|
+
)
|
|
385
|
+
] }),
|
|
386
|
+
P && !d() && /* @__PURE__ */ t(E, { variant: "p1", className: "mt-1.5", textColor: "secondary", children: P }),
|
|
387
|
+
d() && /* @__PURE__ */ t(E, { variant: "p1", className: "mt-1.5", textColor: "destructive", children: W() })
|
|
388
|
+
] }));
|
|
389
|
+
}
|
|
390
|
+
export {
|
|
391
|
+
et as DateRangePicker
|
|
392
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import e from "react";
|
|
2
|
+
const f = e.createContext(null);
|
|
3
|
+
function O() {
|
|
4
|
+
const t = e.useContext(f);
|
|
5
|
+
if (!t)
|
|
6
|
+
throw new Error(
|
|
7
|
+
"useDialogBaseContext должен использоваться внутри BaseDialogProvider"
|
|
8
|
+
);
|
|
9
|
+
return t;
|
|
10
|
+
}
|
|
11
|
+
function T(t) {
|
|
12
|
+
var a;
|
|
13
|
+
const [s, h] = e.useState(null), [x, v] = e.useState(t.isVisibleClose), [o, w] = e.useState(!1), [n, S] = e.useState(!1), [b, r] = e.useState(t.hideFooter), [C, m] = e.useState(!1), [E, c] = e.useState(t.width), l = e.useContext(f), i = (a = l == null ? void 0 : l.nextBaseZIndex) != null ? a : t.baseZIndex, g = i + 1, B = i + 2, F = i + 3, H = e.useMemo(() => !n && o ? "top" : "none", [n, o]), I = e.useMemo(() => n && o ? "bottom" : "none", [n, o]);
|
|
14
|
+
return e.useEffect(() => {
|
|
15
|
+
c(t.width);
|
|
16
|
+
}, [t.width]), e.useEffect(() => {
|
|
17
|
+
r(t.hideFooter);
|
|
18
|
+
}, [t.hideFooter]), e.useEffect(() => {
|
|
19
|
+
if (s) {
|
|
20
|
+
const d = () => {
|
|
21
|
+
S(s.scrollTop > 0);
|
|
22
|
+
};
|
|
23
|
+
s.addEventListener("scroll", d);
|
|
24
|
+
const u = new ResizeObserver(() => {
|
|
25
|
+
const Z = s.scrollHeight > s.clientHeight;
|
|
26
|
+
w(Z);
|
|
27
|
+
});
|
|
28
|
+
return u.observe(s), () => {
|
|
29
|
+
s.removeEventListener("scroll", d), u.disconnect();
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}, [s]), {
|
|
33
|
+
contentElement: s,
|
|
34
|
+
hasOverflow: o,
|
|
35
|
+
scrollStart: n,
|
|
36
|
+
shadowFooter: H,
|
|
37
|
+
shadowHeader: I,
|
|
38
|
+
isHideFooter: b,
|
|
39
|
+
isHideTitle: C,
|
|
40
|
+
isVisibleClose: x,
|
|
41
|
+
width: E,
|
|
42
|
+
setWidth: c,
|
|
43
|
+
visibleClose: v,
|
|
44
|
+
hideFooter: r,
|
|
45
|
+
hideTitle: m,
|
|
46
|
+
setContentElement: h,
|
|
47
|
+
baseZIndex: i,
|
|
48
|
+
overlayZIndex: g,
|
|
49
|
+
containerZIndex: B,
|
|
50
|
+
nextBaseZIndex: F
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
f as BaseDialogContext,
|
|
55
|
+
T as useDialogBase,
|
|
56
|
+
O as useDialogBaseCtx
|
|
57
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { a0 as m, a1 as p, a2 as l, a3 as n, a4 as g, a5 as C, a6 as T, a7 as f, a8 as v } from "../../../../chunks/uploader-BN38rjbw.js";
|
|
4
|
+
import "../../../../chunks/index-BO6p208a.js";
|
|
5
|
+
import "../../../../chunks/utils-TbLXCoKm.js";
|
|
6
|
+
import "../utils.js";
|
|
7
|
+
export {
|
|
8
|
+
m as Close,
|
|
9
|
+
p as Container,
|
|
10
|
+
l as Content,
|
|
11
|
+
n as Dialog,
|
|
12
|
+
g as Footer,
|
|
13
|
+
C as Overlay,
|
|
14
|
+
T as Portal,
|
|
15
|
+
f as Title,
|
|
16
|
+
v as Trigger
|
|
17
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { c as a } from "../../../chunks/index-BO6p208a.js";
|
|
2
|
+
const o = a([
|
|
3
|
+
"transition-shadow duration-200"
|
|
4
|
+
], {
|
|
5
|
+
variants: {
|
|
6
|
+
top: {
|
|
7
|
+
true: "shadow-md-top",
|
|
8
|
+
false: null
|
|
9
|
+
},
|
|
10
|
+
bottom: {
|
|
11
|
+
true: "shadow-md",
|
|
12
|
+
false: null
|
|
13
|
+
},
|
|
14
|
+
none: {
|
|
15
|
+
true: "shadow-none",
|
|
16
|
+
false: null
|
|
17
|
+
},
|
|
18
|
+
all: {
|
|
19
|
+
true: "shadow-md-all",
|
|
20
|
+
false: null
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
top: !1,
|
|
25
|
+
bottom: !1,
|
|
26
|
+
none: !1,
|
|
27
|
+
all: !1
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
o as shadowVariants
|
|
32
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as i } from "../../chunks/utils-TbLXCoKm.js";
|
|
3
|
+
function c({ className: r }) {
|
|
4
|
+
return /* @__PURE__ */ o("div", { className: i("bg-default-background h-[1px] w-full", r) });
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
c as Divider
|
|
8
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "../../chunks/popover-kFSgc5Lv.js";
|
|
4
|
+
import "../../chunks/utils-TbLXCoKm.js";
|
|
5
|
+
import { e, f as d, g as i, h as m, i as s, j as w } from "../../chunks/uploader-BN38rjbw.js";
|
|
6
|
+
export {
|
|
7
|
+
e as Dropdown,
|
|
8
|
+
d as DropdownContent,
|
|
9
|
+
i as DropdownItem,
|
|
10
|
+
m as DropdownLabel,
|
|
11
|
+
s as DropdownSeparator,
|
|
12
|
+
w as DropdownTrigger
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "../../chunks/utils-TbLXCoKm.js";
|
|
4
|
+
import "../icon/icon.js";
|
|
5
|
+
import { I as s, k as i, l as m, m as I, n as u } from "../../chunks/uploader-BN38rjbw.js";
|
|
6
|
+
export {
|
|
7
|
+
s as Input,
|
|
8
|
+
i as InputLink,
|
|
9
|
+
m as InputPassword,
|
|
10
|
+
I as InputSearch,
|
|
11
|
+
u as InputTitle
|
|
12
|
+
};
|