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,363 @@
|
|
|
1
|
+
var Y = Object.defineProperty, Z = Object.defineProperties;
|
|
2
|
+
var ee = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var P = Object.getOwnPropertySymbols;
|
|
4
|
+
var q = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var j = (e, t, r) => t in e ? Y(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, x = (e, t) => {
|
|
6
|
+
for (var r in t || (t = {}))
|
|
7
|
+
q.call(t, r) && j(e, r, t[r]);
|
|
8
|
+
if (P)
|
|
9
|
+
for (var r of P(t))
|
|
10
|
+
A.call(t, r) && j(e, r, t[r]);
|
|
11
|
+
return e;
|
|
12
|
+
}, g = (e, t) => Z(e, ee(t));
|
|
13
|
+
var w = (e, t) => {
|
|
14
|
+
var r = {};
|
|
15
|
+
for (var o in e)
|
|
16
|
+
q.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
|
|
17
|
+
if (e != null && P)
|
|
18
|
+
for (var o of P(e))
|
|
19
|
+
t.indexOf(o) < 0 && A.call(e, o) && (r[o] = e[o]);
|
|
20
|
+
return r;
|
|
21
|
+
};
|
|
22
|
+
import { jsx as l, jsxs as z, Fragment as re } from "react/jsx-runtime";
|
|
23
|
+
import * as v from "react";
|
|
24
|
+
import B from "react";
|
|
25
|
+
import { u as L } from "../../chunks/index-DLcqcWxM.js";
|
|
26
|
+
import { c as te } from "../../chunks/index-E4d_Gd-w.js";
|
|
27
|
+
import { c as F } from "../../chunks/index-DLeNytVF.js";
|
|
28
|
+
import { u as oe } from "../../chunks/index-DYfkNB0n.js";
|
|
29
|
+
import { u as ne } from "../../chunks/index-BZPx6jYI.js";
|
|
30
|
+
import { u as ae } from "../../chunks/index-CHDs-SiB.js";
|
|
31
|
+
import { P as ce } from "../../chunks/index-PsqJG3fE.js";
|
|
32
|
+
import { P as D } from "../../chunks/index-BJD1rYeT.js";
|
|
33
|
+
import { c as O } from "../../chunks/index-BO6p208a.js";
|
|
34
|
+
import { c as S } from "../../chunks/utils-TbLXCoKm.js";
|
|
35
|
+
import { Icon as se } from "../icon/icon.js";
|
|
36
|
+
var N = "Checkbox", [ie, Se] = te(N), [de, T] = ie(N);
|
|
37
|
+
function le(e) {
|
|
38
|
+
const {
|
|
39
|
+
__scopeCheckbox: t,
|
|
40
|
+
checked: r,
|
|
41
|
+
children: o,
|
|
42
|
+
defaultChecked: a,
|
|
43
|
+
disabled: d,
|
|
44
|
+
form: s,
|
|
45
|
+
name: n,
|
|
46
|
+
onCheckedChange: h,
|
|
47
|
+
required: k,
|
|
48
|
+
value: p = "on",
|
|
49
|
+
// @ts-expect-error
|
|
50
|
+
internal_do_not_use_render: C
|
|
51
|
+
} = e, [f, u] = oe({
|
|
52
|
+
prop: r,
|
|
53
|
+
defaultProp: a != null ? a : !1,
|
|
54
|
+
onChange: h,
|
|
55
|
+
caller: N
|
|
56
|
+
}), [b, R] = v.useState(null), [y, m] = v.useState(null), _ = v.useRef(!1), i = b ? !!s || !!b.closest("form") : (
|
|
57
|
+
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
58
|
+
!0
|
|
59
|
+
), c = {
|
|
60
|
+
checked: f,
|
|
61
|
+
disabled: d,
|
|
62
|
+
setChecked: u,
|
|
63
|
+
control: b,
|
|
64
|
+
setControl: R,
|
|
65
|
+
name: n,
|
|
66
|
+
form: s,
|
|
67
|
+
value: p,
|
|
68
|
+
hasConsumerStoppedPropagationRef: _,
|
|
69
|
+
required: k,
|
|
70
|
+
defaultChecked: I(a) ? !1 : a,
|
|
71
|
+
isFormControl: i,
|
|
72
|
+
bubbleInput: y,
|
|
73
|
+
setBubbleInput: m
|
|
74
|
+
};
|
|
75
|
+
return /* @__PURE__ */ l(
|
|
76
|
+
de,
|
|
77
|
+
g(x({
|
|
78
|
+
scope: t
|
|
79
|
+
}, c), {
|
|
80
|
+
children: ue(C) ? C(c) : o
|
|
81
|
+
})
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
var V = "CheckboxTrigger", H = v.forwardRef(
|
|
85
|
+
(d, a) => {
|
|
86
|
+
var s = d, { __scopeCheckbox: e, onKeyDown: t, onClick: r } = s, o = w(s, ["__scopeCheckbox", "onKeyDown", "onClick"]);
|
|
87
|
+
const {
|
|
88
|
+
control: n,
|
|
89
|
+
value: h,
|
|
90
|
+
disabled: k,
|
|
91
|
+
checked: p,
|
|
92
|
+
required: C,
|
|
93
|
+
setControl: f,
|
|
94
|
+
setChecked: u,
|
|
95
|
+
hasConsumerStoppedPropagationRef: b,
|
|
96
|
+
isFormControl: R,
|
|
97
|
+
bubbleInput: y
|
|
98
|
+
} = T(V, e), m = L(a, f), _ = v.useRef(p);
|
|
99
|
+
return v.useEffect(() => {
|
|
100
|
+
const i = n == null ? void 0 : n.form;
|
|
101
|
+
if (i) {
|
|
102
|
+
const c = () => u(_.current);
|
|
103
|
+
return i.addEventListener("reset", c), () => i.removeEventListener("reset", c);
|
|
104
|
+
}
|
|
105
|
+
}, [n, u]), /* @__PURE__ */ l(
|
|
106
|
+
D.button,
|
|
107
|
+
g(x({
|
|
108
|
+
type: "button",
|
|
109
|
+
role: "checkbox",
|
|
110
|
+
"aria-checked": I(p) ? "mixed" : p,
|
|
111
|
+
"aria-required": C,
|
|
112
|
+
"data-state": J(p),
|
|
113
|
+
"data-disabled": k ? "" : void 0,
|
|
114
|
+
disabled: k,
|
|
115
|
+
value: h
|
|
116
|
+
}, o), {
|
|
117
|
+
ref: m,
|
|
118
|
+
onKeyDown: F(t, (i) => {
|
|
119
|
+
i.key === "Enter" && i.preventDefault();
|
|
120
|
+
}),
|
|
121
|
+
onClick: F(r, (i) => {
|
|
122
|
+
u((c) => I(c) ? !0 : !c), y && R && (b.current = i.isPropagationStopped(), b.current || i.stopPropagation());
|
|
123
|
+
})
|
|
124
|
+
})
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
);
|
|
128
|
+
H.displayName = V;
|
|
129
|
+
var G = v.forwardRef(
|
|
130
|
+
(e, t) => {
|
|
131
|
+
const f = e, {
|
|
132
|
+
__scopeCheckbox: r,
|
|
133
|
+
name: o,
|
|
134
|
+
checked: a,
|
|
135
|
+
defaultChecked: d,
|
|
136
|
+
required: s,
|
|
137
|
+
disabled: n,
|
|
138
|
+
value: h,
|
|
139
|
+
onCheckedChange: k,
|
|
140
|
+
form: p
|
|
141
|
+
} = f, C = w(f, [
|
|
142
|
+
"__scopeCheckbox",
|
|
143
|
+
"name",
|
|
144
|
+
"checked",
|
|
145
|
+
"defaultChecked",
|
|
146
|
+
"required",
|
|
147
|
+
"disabled",
|
|
148
|
+
"value",
|
|
149
|
+
"onCheckedChange",
|
|
150
|
+
"form"
|
|
151
|
+
]);
|
|
152
|
+
return /* @__PURE__ */ l(
|
|
153
|
+
le,
|
|
154
|
+
{
|
|
155
|
+
__scopeCheckbox: r,
|
|
156
|
+
checked: a,
|
|
157
|
+
defaultChecked: d,
|
|
158
|
+
disabled: n,
|
|
159
|
+
required: s,
|
|
160
|
+
onCheckedChange: k,
|
|
161
|
+
name: o,
|
|
162
|
+
form: p,
|
|
163
|
+
value: h,
|
|
164
|
+
internal_do_not_use_render: ({ isFormControl: u }) => /* @__PURE__ */ z(re, { children: [
|
|
165
|
+
/* @__PURE__ */ l(
|
|
166
|
+
H,
|
|
167
|
+
g(x({}, C), {
|
|
168
|
+
ref: t,
|
|
169
|
+
__scopeCheckbox: r
|
|
170
|
+
})
|
|
171
|
+
),
|
|
172
|
+
u && /* @__PURE__ */ l(
|
|
173
|
+
$,
|
|
174
|
+
{
|
|
175
|
+
__scopeCheckbox: r
|
|
176
|
+
}
|
|
177
|
+
)
|
|
178
|
+
] })
|
|
179
|
+
}
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
);
|
|
183
|
+
G.displayName = N;
|
|
184
|
+
var K = "CheckboxIndicator", U = v.forwardRef(
|
|
185
|
+
(e, t) => {
|
|
186
|
+
const s = e, { __scopeCheckbox: r, forceMount: o } = s, a = w(s, ["__scopeCheckbox", "forceMount"]), d = T(K, r);
|
|
187
|
+
return /* @__PURE__ */ l(
|
|
188
|
+
ce,
|
|
189
|
+
{
|
|
190
|
+
present: o || I(d.checked) || d.checked === !0,
|
|
191
|
+
children: /* @__PURE__ */ l(
|
|
192
|
+
D.span,
|
|
193
|
+
g(x({
|
|
194
|
+
"data-state": J(d.checked),
|
|
195
|
+
"data-disabled": d.disabled ? "" : void 0
|
|
196
|
+
}, a), {
|
|
197
|
+
ref: t,
|
|
198
|
+
style: x({ pointerEvents: "none" }, e.style)
|
|
199
|
+
})
|
|
200
|
+
)
|
|
201
|
+
}
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
);
|
|
205
|
+
U.displayName = K;
|
|
206
|
+
var X = "CheckboxBubbleInput", $ = v.forwardRef(
|
|
207
|
+
(o, r) => {
|
|
208
|
+
var a = o, { __scopeCheckbox: e } = a, t = w(a, ["__scopeCheckbox"]);
|
|
209
|
+
const {
|
|
210
|
+
control: d,
|
|
211
|
+
hasConsumerStoppedPropagationRef: s,
|
|
212
|
+
checked: n,
|
|
213
|
+
defaultChecked: h,
|
|
214
|
+
required: k,
|
|
215
|
+
disabled: p,
|
|
216
|
+
name: C,
|
|
217
|
+
value: f,
|
|
218
|
+
form: u,
|
|
219
|
+
bubbleInput: b,
|
|
220
|
+
setBubbleInput: R
|
|
221
|
+
} = T(X, e), y = L(r, R), m = ne(n), _ = ae(d);
|
|
222
|
+
v.useEffect(() => {
|
|
223
|
+
const c = b;
|
|
224
|
+
if (!c) return;
|
|
225
|
+
const E = window.HTMLInputElement.prototype, M = Object.getOwnPropertyDescriptor(
|
|
226
|
+
E,
|
|
227
|
+
"checked"
|
|
228
|
+
).set, Q = !s.current;
|
|
229
|
+
if (m !== n && M) {
|
|
230
|
+
const W = new Event("click", { bubbles: Q });
|
|
231
|
+
c.indeterminate = I(n), M.call(c, I(n) ? !1 : n), c.dispatchEvent(W);
|
|
232
|
+
}
|
|
233
|
+
}, [b, m, n, s]);
|
|
234
|
+
const i = v.useRef(I(n) ? !1 : n);
|
|
235
|
+
return /* @__PURE__ */ l(
|
|
236
|
+
D.input,
|
|
237
|
+
g(x({
|
|
238
|
+
type: "checkbox",
|
|
239
|
+
"aria-hidden": !0,
|
|
240
|
+
defaultChecked: h != null ? h : i.current,
|
|
241
|
+
required: k,
|
|
242
|
+
disabled: p,
|
|
243
|
+
name: C,
|
|
244
|
+
value: f,
|
|
245
|
+
form: u
|
|
246
|
+
}, t), {
|
|
247
|
+
tabIndex: -1,
|
|
248
|
+
ref: y,
|
|
249
|
+
style: g(x(x({}, t.style), _), {
|
|
250
|
+
position: "absolute",
|
|
251
|
+
pointerEvents: "none",
|
|
252
|
+
opacity: 0,
|
|
253
|
+
margin: 0,
|
|
254
|
+
// We transform because the input is absolutely positioned but we have
|
|
255
|
+
// rendered it **after** the button. This pulls it back to sit on top
|
|
256
|
+
// of the button.
|
|
257
|
+
transform: "translateX(-100%)"
|
|
258
|
+
})
|
|
259
|
+
})
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
);
|
|
263
|
+
$.displayName = X;
|
|
264
|
+
function ue(e) {
|
|
265
|
+
return typeof e == "function";
|
|
266
|
+
}
|
|
267
|
+
function I(e) {
|
|
268
|
+
return e === "indeterminate";
|
|
269
|
+
}
|
|
270
|
+
function J(e) {
|
|
271
|
+
return I(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
272
|
+
}
|
|
273
|
+
const pe = O(
|
|
274
|
+
"group peer cursor-pointer border-border focus:border-primary focus:shadow-focus disabled:cursor-not-allowed shrink-0 rounded-sm border focus:outline-none flex items-center justify-center",
|
|
275
|
+
{
|
|
276
|
+
variants: {
|
|
277
|
+
size: {
|
|
278
|
+
md: "h-4 w-4 rounded-sm",
|
|
279
|
+
lg: "h-6 w-6 rounded-md"
|
|
280
|
+
},
|
|
281
|
+
state: {
|
|
282
|
+
checked: "bg-primary border-primary focus:border-primary focus:hover:border-primary-hover hover:bg-primary-hover hover:border-primary-hover disabled:hover:bg-primary disabled:hover:border-primary active:bg-primary-active active:hover:!border-primary-active",
|
|
283
|
+
unchecked: "bg-muted focus:hover:border-primary-hover hover:border-primary-hover disabled:hover:border-border active:hover:!border-primary-active",
|
|
284
|
+
indeterminate: "bg-white border-primary focus:border-primary focus:hover:border-primary-hover hover:border-primary-hover disabled:hover:border-primary active:hover:!border-primary-active"
|
|
285
|
+
},
|
|
286
|
+
isDisabled: {
|
|
287
|
+
true: "opacity-40",
|
|
288
|
+
false: ""
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
defaultVariants: {
|
|
292
|
+
size: "md",
|
|
293
|
+
state: "unchecked",
|
|
294
|
+
isDisabled: !1
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
), me = O(
|
|
298
|
+
"rounded-[2px] bg-primary shrink-0 group-hover:bg-primary-hover group-disabled:group-hover:bg-primary group-active:bg-primary-active",
|
|
299
|
+
{
|
|
300
|
+
variants: {
|
|
301
|
+
size: {
|
|
302
|
+
md: "w-2 h-2",
|
|
303
|
+
lg: "w-3 h-3"
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
);
|
|
308
|
+
function he(e) {
|
|
309
|
+
const {
|
|
310
|
+
className: t,
|
|
311
|
+
size: r = "md",
|
|
312
|
+
label: o,
|
|
313
|
+
disabled: a,
|
|
314
|
+
checked: d,
|
|
315
|
+
id: s,
|
|
316
|
+
onCheckedChange: n,
|
|
317
|
+
ref: h,
|
|
318
|
+
"data-testid": k
|
|
319
|
+
} = e, p = r === "md" ? 16 : 24, C = B.useId(), f = s || C, u = a || !1, [b, R] = B.useState(!1), y = d !== void 0, m = y ? d : b, _ = () => m === !0 ? "checked" : m === "indeterminate" ? "indeterminate" : "unchecked", i = (E) => {
|
|
320
|
+
y && n ? n(E) : y || R(E);
|
|
321
|
+
}, c = /* @__PURE__ */ l(
|
|
322
|
+
G,
|
|
323
|
+
{
|
|
324
|
+
ref: h,
|
|
325
|
+
id: f,
|
|
326
|
+
className: S(
|
|
327
|
+
pe({ size: r, state: _(), isDisabled: u }),
|
|
328
|
+
t
|
|
329
|
+
),
|
|
330
|
+
disabled: u,
|
|
331
|
+
checked: m,
|
|
332
|
+
onCheckedChange: i,
|
|
333
|
+
"data-testid": k,
|
|
334
|
+
children: /* @__PURE__ */ z(U, { className: "flex h-full w-full items-center justify-center", children: [
|
|
335
|
+
m === "indeterminate" && /* @__PURE__ */ l("div", { className: me({ size: r }) }),
|
|
336
|
+
m === !0 && /* @__PURE__ */ l(se, { icon: "DoneIcon", size: p, className: "text-white" })
|
|
337
|
+
] })
|
|
338
|
+
}
|
|
339
|
+
);
|
|
340
|
+
return o ? /* @__PURE__ */ z("div", { className: "items-top flex flex-row space-x-2", children: [
|
|
341
|
+
/* @__PURE__ */ l("div", { className: S(r === "md" && "pt-0.5"), children: c }),
|
|
342
|
+
/* @__PURE__ */ l(
|
|
343
|
+
"label",
|
|
344
|
+
{
|
|
345
|
+
htmlFor: f,
|
|
346
|
+
className: S(
|
|
347
|
+
"font-graphik m-0 cursor-pointer text-[14px] leading-[20px] font-normal",
|
|
348
|
+
u && "cursor-not-allowed opacity-40",
|
|
349
|
+
r === "lg" && "pt-0.5"
|
|
350
|
+
),
|
|
351
|
+
children: o
|
|
352
|
+
}
|
|
353
|
+
)
|
|
354
|
+
] }) : c;
|
|
355
|
+
}
|
|
356
|
+
const ze = B.forwardRef(
|
|
357
|
+
(e, t) => /* @__PURE__ */ l(he, g(x({}, e), { ref: t }))
|
|
358
|
+
);
|
|
359
|
+
export {
|
|
360
|
+
ze as Checkbox,
|
|
361
|
+
pe as checkboxVariants,
|
|
362
|
+
me as indicatorVariants
|
|
363
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "../../../chunks/combobox-primitive-context-B_ldR_VA.js";
|
|
4
|
+
import { a as c } from "../../../chunks/uploader-BN38rjbw.js";
|
|
5
|
+
import "../combobox-primitive/components/combobox-container.js";
|
|
6
|
+
import "../combobox-primitive/components/combobox-input.js";
|
|
7
|
+
import "../combobox-primitive/components/combobox-item-renderer.js";
|
|
8
|
+
import "../combobox-primitive/components/combobox-menu.js";
|
|
9
|
+
import "../combobox-primitive/components/Item.js";
|
|
10
|
+
import "../combobox-primitive/components/item-view.js";
|
|
11
|
+
import "../combobox-primitive/components/list.js";
|
|
12
|
+
import "../combobox-primitive/hooks.js";
|
|
13
|
+
import "../combobox-primitive/utils.js";
|
|
14
|
+
export {
|
|
15
|
+
c as ComboboxBase
|
|
16
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { c as H } from "../../../../chunks/uploader-BN38rjbw.js";
|
|
3
|
+
import "../../../icon/icon.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "../../../icon-banks/icons-banks.js";
|
|
6
|
+
import "../../../icon-documents/icons-document.js";
|
|
7
|
+
import "../../../../chunks/utils-TbLXCoKm.js";
|
|
8
|
+
import "../../command.js";
|
|
9
|
+
import "../../../../chunks/popover-kFSgc5Lv.js";
|
|
10
|
+
import "../../avatar.js";
|
|
11
|
+
import "../../card.js";
|
|
12
|
+
import "../../checkbox.js";
|
|
13
|
+
import "../../../../chunks/combobox-primitive-context-B_ldR_VA.js";
|
|
14
|
+
import "./combobox-container.js";
|
|
15
|
+
import "./combobox-input.js";
|
|
16
|
+
import "./combobox-item-renderer.js";
|
|
17
|
+
import "./combobox-menu.js";
|
|
18
|
+
import "./Item.js";
|
|
19
|
+
import "./item-view.js";
|
|
20
|
+
import "./list.js";
|
|
21
|
+
import "../../customizable-carousel.js";
|
|
22
|
+
import "../../date-range-picker/locales.js";
|
|
23
|
+
import "../../dialog/dialog-base/use-base-dialog.js";
|
|
24
|
+
import "../../link.js";
|
|
25
|
+
import "../../segments.js";
|
|
26
|
+
import "../../spinner.js";
|
|
27
|
+
import "../../switch.js";
|
|
28
|
+
import "../../tabs.js";
|
|
29
|
+
import "../../tag.js";
|
|
30
|
+
import "../../toaster.js";
|
|
31
|
+
import "../../../../chunks/tooltip-BxRtZLBR.js";
|
|
32
|
+
import "../constants.js";
|
|
33
|
+
export {
|
|
34
|
+
H as ComboboxActions
|
|
35
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
var y = Object.defineProperty, N = Object.defineProperties;
|
|
2
|
+
var _ = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var a = Object.getOwnPropertySymbols;
|
|
4
|
+
var f = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var m = (e, r, t) => r in e ? y(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, l = (e, r) => {
|
|
6
|
+
for (var t in r || (r = {}))
|
|
7
|
+
f.call(r, t) && m(e, t, r[t]);
|
|
8
|
+
if (a)
|
|
9
|
+
for (var t of a(r))
|
|
10
|
+
c.call(r, t) && m(e, t, r[t]);
|
|
11
|
+
return e;
|
|
12
|
+
}, p = (e, r) => N(e, _(r));
|
|
13
|
+
var u = (e, r) => {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var o in e)
|
|
16
|
+
f.call(e, o) && r.indexOf(o) < 0 && (t[o] = e[o]);
|
|
17
|
+
if (e != null && a)
|
|
18
|
+
for (var o of a(e))
|
|
19
|
+
r.indexOf(o) < 0 && c.call(e, o) && (t[o] = e[o]);
|
|
20
|
+
return t;
|
|
21
|
+
};
|
|
22
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
23
|
+
import j, { useCallback as k } from "react";
|
|
24
|
+
import { c as w } from "../../../../chunks/utils-TbLXCoKm.js";
|
|
25
|
+
import { u as z } from "../../../../chunks/combobox-primitive-context-B_ldR_VA.js";
|
|
26
|
+
import { getContainerClasses as E, hasError as O } from "../utils.js";
|
|
27
|
+
const P = j.forwardRef(
|
|
28
|
+
(W, o) => {
|
|
29
|
+
var n = W, { children: e, className: r } = n, t = u(n, ["children", "className"]);
|
|
30
|
+
const {
|
|
31
|
+
size: C,
|
|
32
|
+
fullWidth: b,
|
|
33
|
+
transparent: x,
|
|
34
|
+
disabled: d,
|
|
35
|
+
error: R,
|
|
36
|
+
isOpen: h,
|
|
37
|
+
refs: i
|
|
38
|
+
} = z(), v = k((s) => {
|
|
39
|
+
typeof o == "function" ? o(s) : o && (o.current = s), i.reference.current !== s && s !== null && i.setReference(s);
|
|
40
|
+
}, [o, i]);
|
|
41
|
+
return /* @__PURE__ */ g(
|
|
42
|
+
"div",
|
|
43
|
+
p(l({
|
|
44
|
+
ref: v,
|
|
45
|
+
className: w(
|
|
46
|
+
E(C, b, x, d, O(R)),
|
|
47
|
+
r
|
|
48
|
+
),
|
|
49
|
+
"data-state": h ? "open" : "closed"
|
|
50
|
+
}, t), {
|
|
51
|
+
children: e
|
|
52
|
+
})
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
P.displayName = "ComboboxContainer";
|
|
57
|
+
export {
|
|
58
|
+
P as ComboboxContainer
|
|
59
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
var x = Object.defineProperty, C = Object.defineProperties;
|
|
2
|
+
var I = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var s = Object.getOwnPropertySymbols;
|
|
4
|
+
var u = Object.prototype.hasOwnProperty, l = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var i = (o, t, e) => t in o ? x(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, p = (o, t) => {
|
|
6
|
+
for (var e in t || (t = {}))
|
|
7
|
+
u.call(t, e) && i(o, e, t[e]);
|
|
8
|
+
if (s)
|
|
9
|
+
for (var e of s(t))
|
|
10
|
+
l.call(t, e) && i(o, e, t[e]);
|
|
11
|
+
return o;
|
|
12
|
+
}, n = (o, t) => C(o, I(t));
|
|
13
|
+
var f = (o, t) => {
|
|
14
|
+
var e = {};
|
|
15
|
+
for (var r in o)
|
|
16
|
+
u.call(o, r) && t.indexOf(r) < 0 && (e[r] = o[r]);
|
|
17
|
+
if (o != null && s)
|
|
18
|
+
for (var r of s(o))
|
|
19
|
+
t.indexOf(r) < 0 && l.call(o, r) && (e[r] = o[r]);
|
|
20
|
+
return e;
|
|
21
|
+
};
|
|
22
|
+
import { jsx as v } from "react/jsx-runtime";
|
|
23
|
+
import P from "react";
|
|
24
|
+
import { u as g } from "../../../../chunks/combobox-primitive-context-B_ldR_VA.js";
|
|
25
|
+
import { getInputClasses as h } from "../utils.js";
|
|
26
|
+
const N = P.forwardRef(
|
|
27
|
+
(e, t) => {
|
|
28
|
+
var o = f(e, []);
|
|
29
|
+
const {
|
|
30
|
+
size: r,
|
|
31
|
+
fullWidth: b,
|
|
32
|
+
disabled: m,
|
|
33
|
+
placeholder: d,
|
|
34
|
+
getInputProps: c
|
|
35
|
+
} = g(), a = c();
|
|
36
|
+
return /* @__PURE__ */ v(
|
|
37
|
+
"input",
|
|
38
|
+
n(p(p({
|
|
39
|
+
ref: t
|
|
40
|
+
}, a), o), {
|
|
41
|
+
value: a.value || "",
|
|
42
|
+
disabled: m,
|
|
43
|
+
placeholder: d,
|
|
44
|
+
className: h(r, b, m)
|
|
45
|
+
})
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
N.displayName = "ComboboxInput";
|
|
50
|
+
export {
|
|
51
|
+
N as ComboboxInput
|
|
52
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
var _ = Object.defineProperty, A = Object.defineProperties;
|
|
2
|
+
var K = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var h = Object.getOwnPropertySymbols;
|
|
4
|
+
var D = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var g = (e, t, r) => t in e ? _(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, p = (e, t) => {
|
|
6
|
+
for (var r in t || (t = {}))
|
|
7
|
+
D.call(t, r) && g(e, r, t[r]);
|
|
8
|
+
if (h)
|
|
9
|
+
for (var r of h(t))
|
|
10
|
+
L.call(t, r) && g(e, r, t[r]);
|
|
11
|
+
return e;
|
|
12
|
+
}, S = (e, t) => A(e, K(t));
|
|
13
|
+
import { jsx as f, Fragment as M } from "react/jsx-runtime";
|
|
14
|
+
import m from "react";
|
|
15
|
+
import { c as w } from "../../../../chunks/utils-TbLXCoKm.js";
|
|
16
|
+
import { S as O } from "../../../../chunks/scroll-area-TRRhxrjX.js";
|
|
17
|
+
import { u as k } from "../../../../chunks/combobox-primitive-context-B_ldR_VA.js";
|
|
18
|
+
import { ItemView as v } from "./item-view.js";
|
|
19
|
+
function P(e, t) {
|
|
20
|
+
return e && typeof e == "object" && e.displayName === t;
|
|
21
|
+
}
|
|
22
|
+
function s(e) {
|
|
23
|
+
if (e == null)
|
|
24
|
+
return String(e);
|
|
25
|
+
if (typeof e == "object")
|
|
26
|
+
try {
|
|
27
|
+
return JSON.stringify(e);
|
|
28
|
+
} catch (t) {
|
|
29
|
+
return String(e);
|
|
30
|
+
}
|
|
31
|
+
return String(e);
|
|
32
|
+
}
|
|
33
|
+
function F({
|
|
34
|
+
children: e,
|
|
35
|
+
classNames: t
|
|
36
|
+
}) {
|
|
37
|
+
const { items: r, selectedItem: d, getItemProps: a } = k(), u = /* @__PURE__ */ new Map();
|
|
38
|
+
r.forEach((c, n) => {
|
|
39
|
+
const x = s(c.value);
|
|
40
|
+
u.set(x, { item: c, index: n });
|
|
41
|
+
});
|
|
42
|
+
const j = d ? s(d.value) : null, E = ((c) => m.Children.map(c, (n, x) => {
|
|
43
|
+
if (!m.isValidElement(n))
|
|
44
|
+
return n;
|
|
45
|
+
if (P(n.type, "List")) {
|
|
46
|
+
const R = m.Children.map(n.props.children, (i, W) => {
|
|
47
|
+
if (!m.isValidElement(i))
|
|
48
|
+
return i;
|
|
49
|
+
if (P(i.type, "Item"))
|
|
50
|
+
try {
|
|
51
|
+
const o = i.props, l = s(o.option), y = u.get(l);
|
|
52
|
+
if (y) {
|
|
53
|
+
const { item: b, index: I } = y, C = j === l;
|
|
54
|
+
return /* @__PURE__ */ f(
|
|
55
|
+
v,
|
|
56
|
+
S(p({
|
|
57
|
+
isSelected: C,
|
|
58
|
+
className: o.className
|
|
59
|
+
}, a({
|
|
60
|
+
item: b,
|
|
61
|
+
index: I
|
|
62
|
+
})), {
|
|
63
|
+
children: typeof o.children == "function" ? o.children(p({
|
|
64
|
+
isSelected: C,
|
|
65
|
+
className: o.className
|
|
66
|
+
}, a({
|
|
67
|
+
item: b,
|
|
68
|
+
index: I
|
|
69
|
+
}))) : o.children
|
|
70
|
+
}),
|
|
71
|
+
l
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
} catch (o) {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
return i;
|
|
78
|
+
}), V = /* @__PURE__ */ f(
|
|
79
|
+
O,
|
|
80
|
+
{
|
|
81
|
+
className: w("flex max-h-60 flex-col", t == null ? void 0 : t.scrollArea),
|
|
82
|
+
relative: !1,
|
|
83
|
+
viewPortClassName: w("!flex flex-col", t == null ? void 0 : t.scrollAreaViewport),
|
|
84
|
+
asChild: !0,
|
|
85
|
+
children: R
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
return m.cloneElement(n, n.props, V);
|
|
89
|
+
}
|
|
90
|
+
return n;
|
|
91
|
+
}))(e);
|
|
92
|
+
return /* @__PURE__ */ f(M, { children: E });
|
|
93
|
+
}
|
|
94
|
+
const J = F;
|
|
95
|
+
Object.defineProperty(J, "displayName", {
|
|
96
|
+
value: "ComboboxItemRenderer",
|
|
97
|
+
writable: !1
|
|
98
|
+
});
|
|
99
|
+
export {
|
|
100
|
+
J as ComboboxItemRenderer
|
|
101
|
+
};
|