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,163 @@
|
|
|
1
|
+
var P = Object.defineProperty, j = Object.defineProperties;
|
|
2
|
+
var K = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var p = Object.getOwnPropertySymbols;
|
|
4
|
+
var O = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var w = (e, t, n) => t in e ? P(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, B = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
O.call(t, n) && w(e, n, t[n]);
|
|
8
|
+
if (p)
|
|
9
|
+
for (var n of p(t))
|
|
10
|
+
R.call(t, n) && w(e, n, t[n]);
|
|
11
|
+
return e;
|
|
12
|
+
}, N = (e, t) => j(e, K(t));
|
|
13
|
+
var k = (e, t) => {
|
|
14
|
+
var n = {};
|
|
15
|
+
for (var a in e)
|
|
16
|
+
O.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
|
|
17
|
+
if (e != null && p)
|
|
18
|
+
for (var a of p(e))
|
|
19
|
+
t.indexOf(a) < 0 && R.call(e, a) && (n[a] = e[a]);
|
|
20
|
+
return n;
|
|
21
|
+
};
|
|
22
|
+
import { jsxs as H, jsx as x } from "react/jsx-runtime";
|
|
23
|
+
import { useRef as C, useCallback as E, useEffect as T } from "react";
|
|
24
|
+
import { B as F } from "../../../chunks/uploader-BN38rjbw.js";
|
|
25
|
+
import { CalendarDayCard as V } from "./calendar-day-card.js";
|
|
26
|
+
import { CARD_WIDTH as d, SCROLL_WEEK_SIZE as Y, MOBILE_BREAKPOINT as Z } from "./constants.js";
|
|
27
|
+
import { useScheduleCalendar as q } from "./use-schedule-calendar.js";
|
|
28
|
+
import { startOfDay as M } from "./utils.js";
|
|
29
|
+
const ne = (G) => {
|
|
30
|
+
var L = G, {
|
|
31
|
+
onChange: e,
|
|
32
|
+
dayClassName: t,
|
|
33
|
+
renderBadge: n,
|
|
34
|
+
showArrows: a = !0,
|
|
35
|
+
onVisibleMonthsChange: z,
|
|
36
|
+
scrollTrigger: u,
|
|
37
|
+
onScrollComplete: D,
|
|
38
|
+
testIds: f
|
|
39
|
+
} = L, W = k(L, [
|
|
40
|
+
"onChange",
|
|
41
|
+
"dayClassName",
|
|
42
|
+
"renderBadge",
|
|
43
|
+
"showArrows",
|
|
44
|
+
"onVisibleMonthsChange",
|
|
45
|
+
"scrollTrigger",
|
|
46
|
+
"onScrollComplete",
|
|
47
|
+
"testIds"
|
|
48
|
+
]);
|
|
49
|
+
const { days: o, selectedDate: S, setSelectedDate: A } = q(N(B({}, W), {
|
|
50
|
+
onChange: e
|
|
51
|
+
})), i = C(null), b = E((r) => {
|
|
52
|
+
const c = i.current;
|
|
53
|
+
if (c) {
|
|
54
|
+
const m = Y * d;
|
|
55
|
+
c.scrollBy({ left: r > 0 ? m : -546, behavior: "smooth" });
|
|
56
|
+
}
|
|
57
|
+
}, []), _ = (r) => r.getTime() === S.getTime(), v = E((r, c = !1) => {
|
|
58
|
+
if (i.current && o.length > 0) {
|
|
59
|
+
const m = o.findIndex((s) => s.getTime() === M(r).getTime());
|
|
60
|
+
if (m !== -1) {
|
|
61
|
+
const s = i.current.offsetWidth, h = window.innerWidth < Z ? m * d : m * d - s / 2 + d / 2;
|
|
62
|
+
c ? i.current.scrollTo({ left: Math.max(0, h), behavior: "smooth" }) : i.current.scrollLeft = Math.max(0, h);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}, [o]);
|
|
66
|
+
T(() => {
|
|
67
|
+
if (o.length > 0) {
|
|
68
|
+
const r = M(/* @__PURE__ */ new Date());
|
|
69
|
+
v(r);
|
|
70
|
+
}
|
|
71
|
+
}, []), T(() => {
|
|
72
|
+
if (u && o.length > 0 && i.current) {
|
|
73
|
+
const r = setTimeout(() => {
|
|
74
|
+
var c;
|
|
75
|
+
if (u.mode === "date")
|
|
76
|
+
v(u.date, !0);
|
|
77
|
+
else {
|
|
78
|
+
const m = M(new Date(
|
|
79
|
+
u.date.getFullYear(),
|
|
80
|
+
u.date.getMonth(),
|
|
81
|
+
1
|
|
82
|
+
)), s = o.findIndex((l) => l.getTime() === m.getTime());
|
|
83
|
+
if (s !== -1) {
|
|
84
|
+
const l = s * d;
|
|
85
|
+
(c = i.current) == null || c.scrollTo({ left: Math.max(0, l), behavior: "smooth" });
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
setTimeout(() => {
|
|
89
|
+
D == null || D();
|
|
90
|
+
}, 500);
|
|
91
|
+
}, 50);
|
|
92
|
+
return () => clearTimeout(r);
|
|
93
|
+
}
|
|
94
|
+
}, [u, o, D, v]);
|
|
95
|
+
const g = C([]);
|
|
96
|
+
return T(() => {
|
|
97
|
+
if (i.current && o.length > 0 && g.current.length > 0) {
|
|
98
|
+
const c = g.current[0], m = o[0], s = o.findIndex((l) => l.getTime() === c.getTime());
|
|
99
|
+
if (s > 0)
|
|
100
|
+
i.current.scrollLeft += s * d;
|
|
101
|
+
else if (s === -1) {
|
|
102
|
+
const l = c.getTime(), h = m.getTime();
|
|
103
|
+
if (h < l) {
|
|
104
|
+
const y = Math.round((l - h) / 864e5);
|
|
105
|
+
i.current.scrollLeft += y * d;
|
|
106
|
+
} else {
|
|
107
|
+
const y = Math.round((h - l) / 864e5);
|
|
108
|
+
i.current.scrollLeft = Math.max(0, i.current.scrollLeft - y * d);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
g.current = [...o];
|
|
113
|
+
}, [o]), /* @__PURE__ */ H("div", { className: "flex items-center gap-2.5", children: [
|
|
114
|
+
a && /* @__PURE__ */ x(
|
|
115
|
+
F,
|
|
116
|
+
{
|
|
117
|
+
icon: "ArrowLeftIcon",
|
|
118
|
+
variant: "text",
|
|
119
|
+
iconOnly: !0,
|
|
120
|
+
onClick: () => b(-1),
|
|
121
|
+
className: "hidden shrink-0 md:flex",
|
|
122
|
+
"data-testid": f == null ? void 0 : f.scrollLeftButton
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
/* @__PURE__ */ x(
|
|
126
|
+
"div",
|
|
127
|
+
{
|
|
128
|
+
className: "overflow-x-auto md:overflow-x-hidden md:rounded-xl -mx-4 md:mx-0",
|
|
129
|
+
ref: i,
|
|
130
|
+
style: {
|
|
131
|
+
scrollbarWidth: "none",
|
|
132
|
+
msOverflowStyle: "none"
|
|
133
|
+
},
|
|
134
|
+
children: /* @__PURE__ */ x("div", { className: "flex gap-2 pb-1 px-4 md:px-4", "data-testid": f == null ? void 0 : f.calendarStrip, children: o.map((r) => /* @__PURE__ */ x(
|
|
135
|
+
V,
|
|
136
|
+
{
|
|
137
|
+
date: r,
|
|
138
|
+
selected: _(r),
|
|
139
|
+
onClick: () => A(r),
|
|
140
|
+
renderBadge: n,
|
|
141
|
+
className: t
|
|
142
|
+
},
|
|
143
|
+
r.toISOString()
|
|
144
|
+
)) })
|
|
145
|
+
}
|
|
146
|
+
),
|
|
147
|
+
a && /* @__PURE__ */ x(
|
|
148
|
+
F,
|
|
149
|
+
{
|
|
150
|
+
icon: "ArrowRightIcon",
|
|
151
|
+
variant: "text",
|
|
152
|
+
iconOnly: !0,
|
|
153
|
+
onClick: () => b(1),
|
|
154
|
+
className: "hidden shrink-0 md:flex",
|
|
155
|
+
"data-testid": f == null ? void 0 : f.scrollRightButton
|
|
156
|
+
}
|
|
157
|
+
)
|
|
158
|
+
] });
|
|
159
|
+
};
|
|
160
|
+
export {
|
|
161
|
+
ne as CalendarStrip,
|
|
162
|
+
ne as default
|
|
163
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsxs as D, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as y, useEffect as T, useMemo as d } from "react";
|
|
3
|
+
import { S as _, U as j, V as z, X as F, H, K as L } from "../../../chunks/uploader-BN38rjbw.js";
|
|
4
|
+
import { c as Y } from "../../../chunks/utils-TbLXCoKm.js";
|
|
5
|
+
import { formatMonthLong as f, getThreeMonthsAround as A } from "./utils.js";
|
|
6
|
+
import { a as E, f as K } from "../../../chunks/format-DoKcg9cH.js";
|
|
7
|
+
function S(n) {
|
|
8
|
+
return K(n, "yyyy-MM-dd");
|
|
9
|
+
}
|
|
10
|
+
const C = ({
|
|
11
|
+
anchorDate: n,
|
|
12
|
+
onChange: s,
|
|
13
|
+
onMonthsChange: m,
|
|
14
|
+
months: a,
|
|
15
|
+
className: p,
|
|
16
|
+
testIds: c
|
|
17
|
+
}) => {
|
|
18
|
+
const u = /* @__PURE__ */ new Date(), v = n || u, [l, g] = y(v), [i, M] = y("");
|
|
19
|
+
T(() => {
|
|
20
|
+
n && g(n);
|
|
21
|
+
}, [n]);
|
|
22
|
+
const h = d(() => {
|
|
23
|
+
const e = [];
|
|
24
|
+
for (let t = -12; t <= 12; t++) {
|
|
25
|
+
const r = E(new Date(u.getFullYear(), u.getMonth(), 1), t);
|
|
26
|
+
e.push({ value: S(r), label: f(r), date: r });
|
|
27
|
+
}
|
|
28
|
+
return e;
|
|
29
|
+
}, []), w = d(() => {
|
|
30
|
+
if (i)
|
|
31
|
+
return i;
|
|
32
|
+
const e = new Date(l.getFullYear(), l.getMonth(), 1);
|
|
33
|
+
return S(e);
|
|
34
|
+
}, [l, i]), x = (e) => {
|
|
35
|
+
const t = h.find((b) => b.value === e);
|
|
36
|
+
if (!t)
|
|
37
|
+
return;
|
|
38
|
+
M(e);
|
|
39
|
+
const r = t.date;
|
|
40
|
+
g(r), m && m(A(r)), s == null || s(r);
|
|
41
|
+
}, V = d(() => {
|
|
42
|
+
if (a && a.length > 0) {
|
|
43
|
+
const e = Math.floor(a.length / 2), t = a[e], r = new Date(t.year, t.month, 1);
|
|
44
|
+
return f(r);
|
|
45
|
+
}
|
|
46
|
+
return f(l);
|
|
47
|
+
}, [a, l]);
|
|
48
|
+
return /* @__PURE__ */ D(_, { value: w, onValueChange: x, children: [
|
|
49
|
+
/* @__PURE__ */ o(
|
|
50
|
+
j,
|
|
51
|
+
{
|
|
52
|
+
className: Y("[&_svg]:h-6 [&_svg]:w-6 [&_svg]:text-secondary", p),
|
|
53
|
+
size: "lg",
|
|
54
|
+
transparent: !0,
|
|
55
|
+
inlineSelect: !0,
|
|
56
|
+
"data-testid": c == null ? void 0 : c.periodSelector,
|
|
57
|
+
children: /* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(F, { variant: "h1", weight: "normal", children: V }) })
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ o(H, { size: "lg", children: h.map((e) => /* @__PURE__ */ o(L, { value: e.value, children: e.label }, e.value)) })
|
|
61
|
+
] });
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
C as ScheduleHeader,
|
|
65
|
+
C as default
|
|
66
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { useRef as m, useState as l, useMemo as d, useEffect as S } from "react";
|
|
2
|
+
function c(e) {
|
|
3
|
+
const t = new Date(e);
|
|
4
|
+
return t.setHours(0, 0, 0, 0), t;
|
|
5
|
+
}
|
|
6
|
+
function g(e, t) {
|
|
7
|
+
return new Date(e, t + 1, 0).getDate();
|
|
8
|
+
}
|
|
9
|
+
function h(e) {
|
|
10
|
+
const t = [];
|
|
11
|
+
for (const n of e) {
|
|
12
|
+
const o = g(n.year, n.month);
|
|
13
|
+
for (let r = 1; r <= o; r++)
|
|
14
|
+
t.push(c(new Date(n.year, n.month, r)));
|
|
15
|
+
}
|
|
16
|
+
return t;
|
|
17
|
+
}
|
|
18
|
+
function x({
|
|
19
|
+
value: e,
|
|
20
|
+
defaultValue: t,
|
|
21
|
+
months: n,
|
|
22
|
+
onChange: o
|
|
23
|
+
}) {
|
|
24
|
+
const r = m(c(/* @__PURE__ */ new Date())), y = c(e || t || r.current), [u, a] = l(y), f = d(() => {
|
|
25
|
+
if (n && n.length > 0)
|
|
26
|
+
return n;
|
|
27
|
+
const s = r.current;
|
|
28
|
+
return [{ year: s.getFullYear(), month: s.getMonth() }];
|
|
29
|
+
}, [n]), i = d(() => h(f), [f]);
|
|
30
|
+
return S(() => {
|
|
31
|
+
const s = c(e || t || r.current);
|
|
32
|
+
s.getTime() !== u.getTime() && a(s);
|
|
33
|
+
}, [e, t]), {
|
|
34
|
+
selectedDate: u,
|
|
35
|
+
days: i,
|
|
36
|
+
setSelectedDate: (s) => {
|
|
37
|
+
const D = c(s);
|
|
38
|
+
a(D), o == null || o(D);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
x as useScheduleCalendar
|
|
44
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import R, { useState as n, useEffect as D, useCallback as o } from "react";
|
|
2
|
+
import { getThreeMonthsAround as a } from "./utils.js";
|
|
3
|
+
function J({
|
|
4
|
+
value: r,
|
|
5
|
+
defaultValue: S,
|
|
6
|
+
onChange: e
|
|
7
|
+
} = {}) {
|
|
8
|
+
const c = r || S || /* @__PURE__ */ new Date(), [y, i] = n(c), [d, l] = n(
|
|
9
|
+
() => a(c)
|
|
10
|
+
), [T, f] = n(), u = R.useRef(!1);
|
|
11
|
+
D(() => {
|
|
12
|
+
u.current || (e == null || e(c), u.current = !0);
|
|
13
|
+
}, [e, c]), D(() => {
|
|
14
|
+
r && i(r);
|
|
15
|
+
}, [r]);
|
|
16
|
+
const p = o((t) => {
|
|
17
|
+
i(t);
|
|
18
|
+
const s = a(t);
|
|
19
|
+
JSON.stringify(d) !== JSON.stringify(s) && l(s), e == null || e(t);
|
|
20
|
+
}, [e, d]), M = o((t) => {
|
|
21
|
+
if (l(t), t.length > 0) {
|
|
22
|
+
const s = Math.floor(t.length / 2), m = t[s], O = new Date(m.year, m.month, 1);
|
|
23
|
+
f({ date: O, timestamp: Date.now(), mode: "monthStart" });
|
|
24
|
+
}
|
|
25
|
+
}, []), h = o(() => {
|
|
26
|
+
f(void 0);
|
|
27
|
+
}, []), w = o(() => {
|
|
28
|
+
const t = /* @__PURE__ */ new Date();
|
|
29
|
+
i(t);
|
|
30
|
+
const s = a(t);
|
|
31
|
+
l(s), f({ date: t, timestamp: Date.now(), mode: "date" }), e == null || e(t);
|
|
32
|
+
}, [e]);
|
|
33
|
+
return {
|
|
34
|
+
selectedDate: y,
|
|
35
|
+
months: d,
|
|
36
|
+
handleDateChange: p,
|
|
37
|
+
handleMonthsChange: M,
|
|
38
|
+
scrollTrigger: T,
|
|
39
|
+
clearScrollTrigger: h,
|
|
40
|
+
resetToToday: w
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
J as useScheduleSync
|
|
45
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { f as u, a as o, s } from "../../../chunks/format-DoKcg9cH.js";
|
|
2
|
+
import { r as h } from "../../../chunks/ru-CUCVR8Pn.js";
|
|
3
|
+
function g(t) {
|
|
4
|
+
const n = u(t, "EEEEEE", { locale: h });
|
|
5
|
+
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
6
|
+
}
|
|
7
|
+
function a(t) {
|
|
8
|
+
return s(t);
|
|
9
|
+
}
|
|
10
|
+
function m(t) {
|
|
11
|
+
return u(t, "LLLL yyyy", { locale: h });
|
|
12
|
+
}
|
|
13
|
+
const c = [
|
|
14
|
+
"января",
|
|
15
|
+
"февраля",
|
|
16
|
+
"марта",
|
|
17
|
+
"апреля",
|
|
18
|
+
"мая",
|
|
19
|
+
"июня",
|
|
20
|
+
"июля",
|
|
21
|
+
"августа",
|
|
22
|
+
"сентября",
|
|
23
|
+
"октября",
|
|
24
|
+
"ноября",
|
|
25
|
+
"декабря"
|
|
26
|
+
];
|
|
27
|
+
function M(t) {
|
|
28
|
+
return c[t.getMonth()];
|
|
29
|
+
}
|
|
30
|
+
function i(t) {
|
|
31
|
+
const [n, e, r] = t.split("-").map(Number);
|
|
32
|
+
return new Date(n, e - 1, r);
|
|
33
|
+
}
|
|
34
|
+
function y(t) {
|
|
35
|
+
const n = o(a(new Date(t.getFullYear(), t.getMonth(), 1)), -1), e = a(new Date(t.getFullYear(), t.getMonth(), 1)), r = o(e, 1);
|
|
36
|
+
return [
|
|
37
|
+
{ year: n.getFullYear(), month: n.getMonth() },
|
|
38
|
+
{ year: e.getFullYear(), month: e.getMonth() },
|
|
39
|
+
{ year: r.getFullYear(), month: r.getMonth() }
|
|
40
|
+
];
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
M as formatMonthGenitive,
|
|
44
|
+
m as formatMonthLong,
|
|
45
|
+
g as formatWeekdayShort,
|
|
46
|
+
y as getThreeMonthsAround,
|
|
47
|
+
i as parseDateString,
|
|
48
|
+
a as startOfDay
|
|
49
|
+
};
|