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,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const spinnerVariants: (props?: ({
|
|
4
|
+
show?: boolean | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
6
|
+
interface SpinnerProps extends VariantProps<typeof spinnerVariants> {
|
|
7
|
+
className?: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
size?: 8 | 12 | 16 | 20 | 24 | 48 | 96;
|
|
10
|
+
}
|
|
11
|
+
declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
12
|
+
export { Spinner, type SpinnerProps, spinnerVariants };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Step {
|
|
2
|
+
title: string;
|
|
3
|
+
}
|
|
4
|
+
interface StepperProps {
|
|
5
|
+
steps: Step[];
|
|
6
|
+
currentStep: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function Stepper({ steps, currentStep, className }: StepperProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Stepper };
|
|
11
|
+
export type { Step, StepperProps };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
4
|
+
type SwitchSize = 'md' | 'lg';
|
|
5
|
+
declare const switchVariants: (props?: ({
|
|
6
|
+
size?: "md" | "lg" | null | undefined;
|
|
7
|
+
isChecked?: boolean | null | undefined;
|
|
8
|
+
isLoading?: boolean | null | undefined;
|
|
9
|
+
isDisabled?: boolean | null | undefined;
|
|
10
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
11
|
+
declare const thumbVariants: (props?: ({
|
|
12
|
+
size?: "md" | "lg" | null | undefined;
|
|
13
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
14
|
+
interface SwitchProps extends Omit<React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>, 'checked' | 'disabled' | 'onCheckedChange'>, VariantProps<typeof switchVariants> {
|
|
15
|
+
label?: string;
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
checked?: boolean;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
size?: SwitchSize;
|
|
20
|
+
'data-testid'?: string;
|
|
21
|
+
onCheckedChange?: (checked: boolean, event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
22
|
+
}
|
|
23
|
+
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
export { Switch, type SwitchProps, type SwitchSize, switchVariants, thumbVariants };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { IconName } from '../icon';
|
|
4
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
5
|
+
declare const tabsTriggerVariants: (props?: ({
|
|
6
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
|
+
variant?: "default" | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
9
|
+
interface TabsTriggerProps extends React.ComponentPropsWithoutRef<'button'>, VariantProps<typeof tabsTriggerVariants> {
|
|
10
|
+
icon?: IconName | React.ReactNode;
|
|
11
|
+
iconPosition?: 'start' | 'end';
|
|
12
|
+
value: string;
|
|
13
|
+
variant?: 'default';
|
|
14
|
+
'data-testid'?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export declare const TabsList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & VariantProps<(props?: ({
|
|
18
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
19
|
+
variant?: "default" | null | undefined;
|
|
20
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export declare const TabsTrigger: React.ForwardRefExoticComponent<TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
22
|
+
export declare const TabsContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
23
|
+
value: string;
|
|
24
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IconName, IconProps } from '../icon';
|
|
3
|
+
declare const tagVariants: (props?: ({
|
|
4
|
+
color?: "default" | "purple" | "cyan" | "blue" | "volcano" | "magenta" | "gold" | "gray" | "green" | "lime" | "orange" | "red" | "geekblue" | null | undefined;
|
|
5
|
+
iconOnly?: boolean | null | undefined;
|
|
6
|
+
iconPosition?: "end" | "start" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
8
|
+
type IconPosition = 'start' | 'end';
|
|
9
|
+
type TagColor = 'default' | 'magenta' | 'blue' | 'cyan' | 'geekblue' | 'gold' | 'green' | 'lime' | 'orange' | 'purple' | 'red' | 'volcano' | 'gray';
|
|
10
|
+
interface TagProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
11
|
+
/** Цвет тега */
|
|
12
|
+
color?: TagColor;
|
|
13
|
+
/** Отключенное состояние */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Использовать только иконку */
|
|
16
|
+
iconOnly?: boolean;
|
|
17
|
+
/** Позиция иконки */
|
|
18
|
+
iconPosition?: IconPosition;
|
|
19
|
+
/** Иконка */
|
|
20
|
+
icon?: IconName;
|
|
21
|
+
/** Пропсы для иконки */
|
|
22
|
+
iconProps?: Omit<IconProps, 'icon'>;
|
|
23
|
+
/** Содержимое тега */
|
|
24
|
+
children?: React.ReactNode;
|
|
25
|
+
'data-testid'?: string;
|
|
26
|
+
}
|
|
27
|
+
declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
export { Tag, type TagColor, type TagProps, tagVariants };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface CustomTextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
+
variant?: 'default' | 'primary' | 'success';
|
|
4
|
+
fullWidth?: boolean;
|
|
5
|
+
label?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
caption?: string;
|
|
8
|
+
autoResize?: boolean;
|
|
9
|
+
maxHeight?: number | string | null;
|
|
10
|
+
showErrorMessage?: boolean;
|
|
11
|
+
'data-testid'?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
size?: 'md' | 'lg';
|
|
14
|
+
value?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const Textarea: React.ForwardRefExoticComponent<CustomTextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
17
|
+
export { Textarea };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface TimePickerProps {
|
|
3
|
+
time?: string | undefined;
|
|
4
|
+
onSelect?: (time: string | undefined) => void;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
size?: 'md' | 'lg';
|
|
9
|
+
error?: string;
|
|
10
|
+
caption?: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
13
|
+
'data-testid'?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function TimePicker({ time, onSelect, disabled, placeholder, className, size, error, caption, label, onBlur, 'data-testid': dataTestId, }: TimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface TimeRange {
|
|
3
|
+
from?: string;
|
|
4
|
+
to?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface TimeRangeError {
|
|
7
|
+
from?: string;
|
|
8
|
+
to?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface TimeRangePickerProps {
|
|
11
|
+
value?: TimeRange;
|
|
12
|
+
onTimeChange?: (timeRange: TimeRange | undefined) => void;
|
|
13
|
+
placeholder?: {
|
|
14
|
+
from?: string;
|
|
15
|
+
to?: string;
|
|
16
|
+
};
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
size?: 'md' | 'lg';
|
|
20
|
+
error?: string | TimeRangeError;
|
|
21
|
+
caption?: string;
|
|
22
|
+
label?: string;
|
|
23
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
24
|
+
'data-testid'?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function TimeRangePicker({ value, onTimeChange, placeholder, disabled, className, size, error, caption, label, onBlur, 'data-testid': dataTestId, }: TimeRangePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TypographyVariant, TypographyWeight } from './typography';
|
|
3
|
+
export interface TimelineItem {
|
|
4
|
+
title: React.ReactNode;
|
|
5
|
+
subtitle?: React.ReactNode;
|
|
6
|
+
additionalText?: React.ReactNode;
|
|
7
|
+
date?: React.ReactNode;
|
|
8
|
+
active?: boolean;
|
|
9
|
+
titleVariant?: TypographyVariant;
|
|
10
|
+
subtitleVariant?: TypographyVariant;
|
|
11
|
+
titleWeight?: TypographyWeight;
|
|
12
|
+
}
|
|
13
|
+
export interface TimelineProps {
|
|
14
|
+
items: TimelineItem[];
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const Timeline: React.FC<TimelineProps>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ToasterProps, ToastT } from 'sonner';
|
|
3
|
+
interface ToastOptions {
|
|
4
|
+
id?: string;
|
|
5
|
+
duration?: number;
|
|
6
|
+
action?: {
|
|
7
|
+
label: string;
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
};
|
|
10
|
+
cancel?: {
|
|
11
|
+
label: string;
|
|
12
|
+
onClick: () => void;
|
|
13
|
+
};
|
|
14
|
+
onDismiss?: (toast: ToastT) => void;
|
|
15
|
+
onAutoClose?: (toast: ToastT) => void;
|
|
16
|
+
className?: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
important?: boolean;
|
|
19
|
+
unstyled?: boolean;
|
|
20
|
+
onExtractError?: (error: unknown) => void;
|
|
21
|
+
defaultMessage?: string;
|
|
22
|
+
}
|
|
23
|
+
declare function createToastFunction(message: string | React.ReactNode, options?: ToastOptions): string | number;
|
|
24
|
+
declare const toast: typeof createToastFunction & {
|
|
25
|
+
success: (message: unknown, options?: ToastOptions) => string | number | (string | number)[];
|
|
26
|
+
error: (message: unknown, options?: ToastOptions) => string | number | (string | number)[];
|
|
27
|
+
info: (message: unknown, options?: ToastOptions) => string | number | (string | number)[];
|
|
28
|
+
warning: (message: unknown, options?: ToastOptions) => string | number | (string | number)[];
|
|
29
|
+
loading: (message: unknown, options?: ToastOptions) => string | number | (string | number)[];
|
|
30
|
+
dismiss: (toastId?: string | number) => void;
|
|
31
|
+
promise<T>(promise: Promise<T>, { loading, success, error, ...options }: {
|
|
32
|
+
loading: string;
|
|
33
|
+
success: string | ((data: T) => string);
|
|
34
|
+
error: string | ((error: Error) => string);
|
|
35
|
+
} & ToastOptions): (string & {
|
|
36
|
+
unwrap: () => Promise<T>;
|
|
37
|
+
}) | (number & {
|
|
38
|
+
unwrap: () => Promise<T>;
|
|
39
|
+
}) | {
|
|
40
|
+
unwrap: () => Promise<T>;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
declare function Toaster({ ...props }: ToasterProps): JSX.Element;
|
|
44
|
+
export { toast, Toaster };
|
|
45
|
+
export type { ToastOptions };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
|
+
type TooltipContentProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>;
|
|
4
|
+
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
5
|
+
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
6
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export { Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type TypographyVariant = 'h0' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p1' | 'p2' | 'p3' | 'p4';
|
|
3
|
+
export type TypographyColor = 'default' | 'muted' | 'primary' | 'secondary' | 'destructive' | 'positive' | 'white';
|
|
4
|
+
export type TypographyWeight = 'normal' | 'medium' | 'bold';
|
|
5
|
+
export interface CopyableConfig {
|
|
6
|
+
text?: string;
|
|
7
|
+
icon?: [React.ReactNode, React.ReactNode];
|
|
8
|
+
onCopy?: () => void;
|
|
9
|
+
duration?: number;
|
|
10
|
+
}
|
|
11
|
+
declare const typographyVariants: (props?: ({
|
|
12
|
+
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h0" | "p1" | "p2" | "p3" | "p4" | null | undefined;
|
|
13
|
+
textColor?: "default" | "white" | "primary" | "muted" | "secondary" | "destructive" | "positive" | null | undefined;
|
|
14
|
+
weight?: "bold" | "medium" | "normal" | null | undefined;
|
|
15
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
16
|
+
export type TypographyElement = React.ElementRef<'div'>;
|
|
17
|
+
interface TypographyProps extends Omit<React.HTMLAttributes<HTMLElement>, 'color'> {
|
|
18
|
+
variant?: TypographyVariant;
|
|
19
|
+
textColor?: TypographyColor;
|
|
20
|
+
weight?: TypographyWeight;
|
|
21
|
+
as?: 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span' | 'div';
|
|
22
|
+
copyable?: boolean | CopyableConfig;
|
|
23
|
+
}
|
|
24
|
+
declare const Typography: React.ForwardRefExoticComponent<TypographyProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
export { Typography, typographyVariants };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface UploadedFile {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
size: number;
|
|
6
|
+
file: File;
|
|
7
|
+
status?: 'success' | 'error';
|
|
8
|
+
error?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UploaderProps {
|
|
11
|
+
/** Принимаемые типы файлов */
|
|
12
|
+
accept?: string;
|
|
13
|
+
/** Множественная загрузка файлов */
|
|
14
|
+
multiple?: boolean;
|
|
15
|
+
/** Максимальный размер файла в байтах */
|
|
16
|
+
maxSize?: number;
|
|
17
|
+
/** Коллбек при загрузке файлов */
|
|
18
|
+
onUpload?: (files: File[]) => void;
|
|
19
|
+
/** Коллбек при удалении файла */
|
|
20
|
+
onDelete?: (fileId: string) => void;
|
|
21
|
+
/** Коллбек при ошибке */
|
|
22
|
+
onError?: (error: string) => void;
|
|
23
|
+
/** Направление flex контейнера */
|
|
24
|
+
direction?: 'row' | 'col';
|
|
25
|
+
/** Выравнивание flex контейнера */
|
|
26
|
+
justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
|
|
27
|
+
/** Выравнивание flex элементов */
|
|
28
|
+
align?: 'start' | 'end' | 'center' | 'baseline' | 'stretch';
|
|
29
|
+
/** Отображение кнопки загрузки */
|
|
30
|
+
isShowButton?: boolean;
|
|
31
|
+
/** Внешний список файлов */
|
|
32
|
+
files?: UploadedFile[];
|
|
33
|
+
/** Прогресс загрузки (0-100) */
|
|
34
|
+
uploadProgress?: number;
|
|
35
|
+
/** Состояние загрузки */
|
|
36
|
+
isUploading?: boolean;
|
|
37
|
+
/** Дополнительный CSS класс */
|
|
38
|
+
classNames?: {
|
|
39
|
+
container?: string;
|
|
40
|
+
dropzone?: string;
|
|
41
|
+
dropzoneContainer?: string;
|
|
42
|
+
dropzoneText?: string;
|
|
43
|
+
};
|
|
44
|
+
/** Текст для drag & drop области */
|
|
45
|
+
dropzoneText?: React.ReactNode;
|
|
46
|
+
/** Текст кнопки */
|
|
47
|
+
buttonText?: string;
|
|
48
|
+
/** Текст ошибки */
|
|
49
|
+
errorText?: string;
|
|
50
|
+
}
|
|
51
|
+
declare const Uploader: React.ForwardRefExoticComponent<UploaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
52
|
+
export { Uploader };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
3
|
+
/**
|
|
4
|
+
* Сравнивает два объекта на поверхностное равенство
|
|
5
|
+
* @param obj1 - первый объект для сравнения
|
|
6
|
+
* @param obj2 - второй объект для сравнения
|
|
7
|
+
* @returns true если объекты равны на поверхностном уровне
|
|
8
|
+
*/
|
|
9
|
+
export declare function shallowEqual<T extends Record<string, any>>(obj1: T | null | undefined, obj2: T | null | undefined): boolean;
|
|
10
|
+
export type AvatarColorVariant = 'purple' | 'cyan' | 'blue' | 'volcano' | 'magenta';
|
|
11
|
+
/**
|
|
12
|
+
* Детерминированный выбор цвета по userId через модуль по количеству вариантов
|
|
13
|
+
*/
|
|
14
|
+
export declare function getAvatarColorByUserId(userId: number | string | null | undefined): AvatarColorVariant;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useDeviceDetector(): 'mobile' | 'desktop';
|
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "konsolpro-custom-ui",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.327",
|
|
5
|
+
"packageManager": "yarn@3.4.1",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"sideEffects": [
|
|
8
|
+
"**/*.css"
|
|
9
|
+
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/types/index.d.ts",
|
|
13
|
+
"import": "./dist/lib/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./styles": "./dist/styles/custom-ui.css",
|
|
16
|
+
"./custom-ui.css": "./dist/styles/custom-ui.css",
|
|
17
|
+
"./variables.css": "./dist/styles/variables.css"
|
|
18
|
+
},
|
|
19
|
+
"main": "./dist/lib/index.js",
|
|
20
|
+
"types": "./dist/types/index.d.ts",
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"src/fonts"
|
|
24
|
+
],
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=20.16.0",
|
|
27
|
+
"yarn": ">=3.4.1"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"dev": "vite",
|
|
31
|
+
"build": "vite build && yarn copy-variables",
|
|
32
|
+
"build:watch": "vite build --watch",
|
|
33
|
+
"build:package": "vite build && yarn copy-variables",
|
|
34
|
+
"lint": "eslint .",
|
|
35
|
+
"lint:fix": "eslint --fix .",
|
|
36
|
+
"preview": "vite preview",
|
|
37
|
+
"storybook": "storybook dev -p 6006",
|
|
38
|
+
"build-storybook": "storybook build",
|
|
39
|
+
"prepublishOnly": "npm run build:package",
|
|
40
|
+
"bump": "npm version patch -m \"React UI Kit version updated to v%s\"",
|
|
41
|
+
"bump:minor": "npm version minor -m \"React UI Kit version updated to v%s\"",
|
|
42
|
+
"bump:major": "npm version major -m \"React UI Kit version updated to v%s\"",
|
|
43
|
+
"bump:beta": "npm version prerelease --preid=beta -m \"React UI Kit beta version updated to v%s\"",
|
|
44
|
+
"test": "jest",
|
|
45
|
+
"test:watch": "jest --watch",
|
|
46
|
+
"prepare": "husky",
|
|
47
|
+
"typecheck": "tsc --noEmit",
|
|
48
|
+
"copy-variables": "node scripts/copy-variables.js"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"react": ">=18",
|
|
52
|
+
"react-dom": ">=18",
|
|
53
|
+
"react-router-dom": "^6.22.0"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@babel/runtime-corejs3": "7.21.5",
|
|
57
|
+
"@floating-ui/react": "^0.27.16",
|
|
58
|
+
"@radix-ui/react-accordion": "^1.2.3",
|
|
59
|
+
"@radix-ui/react-avatar": "^1.1.10",
|
|
60
|
+
"@radix-ui/react-checkbox": "^1.1.4",
|
|
61
|
+
"@radix-ui/react-dialog": "^1.1.14",
|
|
62
|
+
"@radix-ui/react-navigation-menu": "^1.2.6",
|
|
63
|
+
"@radix-ui/react-popover": "^1.1.11",
|
|
64
|
+
"@radix-ui/react-progress": "^1.1.7",
|
|
65
|
+
"@radix-ui/react-radio-group": "^1.2.3",
|
|
66
|
+
"@radix-ui/react-scroll-area": "^1.2.6",
|
|
67
|
+
"@radix-ui/react-select": "^2.1.6",
|
|
68
|
+
"@radix-ui/react-slot": "^1.2.0",
|
|
69
|
+
"@radix-ui/react-switch": "^1.1.3",
|
|
70
|
+
"@radix-ui/react-tabs": "^1.1.12",
|
|
71
|
+
"@radix-ui/react-toggle-group": "^1.1.10",
|
|
72
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
73
|
+
"@tailwindcss/cli": "^4.0.17",
|
|
74
|
+
"@tailwindcss/postcss": "^4.0.11",
|
|
75
|
+
"@tailwindcss/vite": "^4.0.11",
|
|
76
|
+
"@tanstack/react-virtual": "^3.13.12",
|
|
77
|
+
"@types/react-input-mask": "^3.0.6",
|
|
78
|
+
"autoprefixer": "^10.4.17",
|
|
79
|
+
"class-variance-authority": "^0.7.1",
|
|
80
|
+
"clsx": "^2.1.1",
|
|
81
|
+
"cmdk": "^1.1.1",
|
|
82
|
+
"core-js": "^3.30.2",
|
|
83
|
+
"date-fns": "^4.1.0",
|
|
84
|
+
"downshift": "^9.0.10",
|
|
85
|
+
"embla-carousel": "^8.6.0",
|
|
86
|
+
"embla-carousel-react": "^8.6.0",
|
|
87
|
+
"glob": "^11.0.1",
|
|
88
|
+
"postcss": "^8.4.35",
|
|
89
|
+
"react": "^18.2.0",
|
|
90
|
+
"react-day-picker": "8.10.1",
|
|
91
|
+
"react-dom": "^18.2.0",
|
|
92
|
+
"react-input-mask": "^2.0.4",
|
|
93
|
+
"react-phone-number-input": "^3.4.12",
|
|
94
|
+
"react-teleporter": "^3.2.0",
|
|
95
|
+
"regenerator-runtime": "^0.14.1",
|
|
96
|
+
"sonner": "^2.0.5",
|
|
97
|
+
"tailwind-merge": "^3.0.2",
|
|
98
|
+
"tailwindcss": "^4.0.11",
|
|
99
|
+
"tw-animate-css": "^1.3.5"
|
|
100
|
+
},
|
|
101
|
+
"devDependencies": {
|
|
102
|
+
"@antfu/eslint-config": "^4.12.0",
|
|
103
|
+
"@chromatic-com/storybook": "^3.2.4",
|
|
104
|
+
"@eslint/js": "^9.17.0",
|
|
105
|
+
"@storybook/addon-essentials": "^8.5.1",
|
|
106
|
+
"@storybook/addon-interactions": "^8.5.1",
|
|
107
|
+
"@storybook/addon-onboarding": "^8.5.1",
|
|
108
|
+
"@storybook/blocks": "^8.5.1",
|
|
109
|
+
"@storybook/react": "^8.5.1",
|
|
110
|
+
"@storybook/react-vite": "^8.5.1",
|
|
111
|
+
"@storybook/test": "^8.5.1",
|
|
112
|
+
"@testing-library/jest-dom": "latest",
|
|
113
|
+
"@testing-library/react": "^16.3.0",
|
|
114
|
+
"@testing-library/user-event": "^14.6.1",
|
|
115
|
+
"@trivago/prettier-plugin-sort-imports": "^5.2.1",
|
|
116
|
+
"@types/fs-extra": "^11.0.4",
|
|
117
|
+
"@types/identity-obj-proxy": "^3",
|
|
118
|
+
"@types/jest": "^29.5.14",
|
|
119
|
+
"@types/node": "^22.10.10",
|
|
120
|
+
"@types/react": "^18.2.79",
|
|
121
|
+
"@types/react-dom": "^18.2.25",
|
|
122
|
+
"@typescript-eslint/eslint-plugin": "^8.31.0",
|
|
123
|
+
"@typescript-eslint/parser": "^8.31.0",
|
|
124
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
125
|
+
"eslint": "^9.25.1",
|
|
126
|
+
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
127
|
+
"eslint-plugin-storybook": "^0.11.2",
|
|
128
|
+
"fs-extra": "^11.3.0",
|
|
129
|
+
"globals": "^15.14.0",
|
|
130
|
+
"husky": "^9.1.7",
|
|
131
|
+
"identity-obj-proxy": "^3.0.0",
|
|
132
|
+
"jest": "^29.7.0",
|
|
133
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
134
|
+
"lint-staged": "^15.5.1",
|
|
135
|
+
"prettier": "^3.4.2",
|
|
136
|
+
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
137
|
+
"react-router-dom": "^6.22.0",
|
|
138
|
+
"storybook": "^8.5.1",
|
|
139
|
+
"ts-jest": "^29.3.1",
|
|
140
|
+
"typescript": "~5.6.2",
|
|
141
|
+
"url": "^0.11.4",
|
|
142
|
+
"vite": "^6.0.5",
|
|
143
|
+
"vite-plugin-dts": "^4.5.0",
|
|
144
|
+
"vite-plugin-lib-inject-css": "^2.2.1",
|
|
145
|
+
"vite-plugin-svgr": "^4.3.0"
|
|
146
|
+
},
|
|
147
|
+
"resolutions": {
|
|
148
|
+
"esbuild": "npm:esbuild-wasm@latest"
|
|
149
|
+
},
|
|
150
|
+
"exclude": [
|
|
151
|
+
"src/stories",
|
|
152
|
+
"**/*.stories.tsx",
|
|
153
|
+
"**/*.stories.ts"
|
|
154
|
+
],
|
|
155
|
+
"eslintConfig": {
|
|
156
|
+
"extends": [
|
|
157
|
+
"plugin:storybook/recommended"
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
"browserslist": [
|
|
161
|
+
">0.2%",
|
|
162
|
+
"not dead",
|
|
163
|
+
"not op_mini all",
|
|
164
|
+
"android >= 8.0",
|
|
165
|
+
"ios >= 11.0",
|
|
166
|
+
"safari >= 11.0",
|
|
167
|
+
"chrome >= 109",
|
|
168
|
+
"firefox >= 115",
|
|
169
|
+
"edge >= 109"
|
|
170
|
+
]
|
|
171
|
+
}
|