@helloimkostya/konsolpro-custom-ui-mini 0.0.401
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 +116 -0
- package/assets/alfa-BqdpLXjE.png +0 -0
- package/assets/doc-CA2MQk3m.webp +0 -0
- package/assets/document-approved-CkP0p152.webp +0 -0
- package/assets/document-sign-DtWnrhUb.webp +0 -0
- package/assets/documents-refresh-Ct8s1Pc3.webp +0 -0
- package/assets/download-D4NtsTXF.webp +0 -0
- package/assets/empty-box-ByMlwLaV.png +0 -0
- package/assets/headphones-b1FlU-5n.webp +0 -0
- package/assets/magnifying-glass-DnHnztsH.webp +0 -0
- package/assets/mandarin-O1JQvcin.png +0 -0
- package/assets/person-Dnyaeaax.webp +0 -0
- package/assets/plus-XlrU9iHE.webp +0 -0
- package/assets/pocket-DumMTe-y.webp +0 -0
- package/assets/status-error-CVSJeY0m.webp +0 -0
- package/assets/status-success-CQUzL9Lb.webp +0 -0
- package/assets/status-warning-qsHG0-rO.webp +0 -0
- package/assets/tbank-DHDEULnP.png +0 -0
- package/assets/torn-paper-Bxt8F9jg.webp +0 -0
- package/assets/user-add-BchFss_X.webp +0 -0
- package/assets/user-approved-BKiSeYH5.webp +0 -0
- package/assets/user-question-BrqYjUap.webp +0 -0
- package/assets/wallet-B1cH4oVg.webp +0 -0
- package/chunks/account-balance-icon-CKxx1j3X.js +17 -0
- package/chunks/add-circle-icon-D3XpY2oT.js +17 -0
- package/chunks/add-icon-CZXR66VL.js +17 -0
- package/chunks/android-icon-6SCGu50U.js +17 -0
- package/chunks/apple-icon-yya6O1xg.js +17 -0
- package/chunks/arrow-back-icon-C_VwBDNK.js +17 -0
- package/chunks/arrow-back-ios-icon-CB5K_mmJ.js +17 -0
- package/chunks/arrow-down-icon-DFvg75P7.js +17 -0
- package/chunks/arrow-forward-icon-BI4dm_L2.js +17 -0
- package/chunks/arrow-left-icon-8yWT42A8.js +17 -0
- package/chunks/arrow-right-icon-Bnx7GHux.js +17 -0
- package/chunks/arrow-up-icon-DU7VVzN8.js +17 -0
- package/chunks/attach-file-icon-OrT7tthI.js +17 -0
- package/chunks/autorenew-icon-B0bI6Xt-.js +17 -0
- package/chunks/bell-icon-L-Ynt5XK.js +17 -0
- package/chunks/bill-error-icon-q8_KROAY.js +17 -0
- package/chunks/bill-icon-Cw2GE_VB.js +17 -0
- package/chunks/bill-in-progress-icon-BTsO5Mh5.js +17 -0
- package/chunks/bill-warning-icon-3Y-dONd_.js +17 -0
- package/chunks/bills-error-icon-CcDGUJrx.js +17 -0
- package/chunks/bills-icon-BU_adAs0.js +17 -0
- package/chunks/bills-in-progress-icon-RVEtPz7l.js +17 -0
- package/chunks/bills-warning-icon-CNgWvumi.js +17 -0
- package/chunks/block-icon-DGlp9c33.js +17 -0
- package/chunks/bolt-fill-icon-DZjyKq8N.js +17 -0
- package/chunks/bolt-icon-CJsvLlL-.js +17 -0
- package/chunks/book-icon-BdaCKIQB.js +17 -0
- package/chunks/business-center-icon-C5X-e-6I.js +17 -0
- package/chunks/calendar-icon-B1cogiSd.js +17 -0
- package/chunks/call-icon-DslHaQOP.js +17 -0
- package/chunks/cancel-fill-DPYenlCk.js +17 -0
- package/chunks/check-circle-fill-ne1MhahL.js +17 -0
- package/chunks/check-circle-icon-BWhJprgU.js +17 -0
- package/chunks/close-icon-CtbXesC0.js +17 -0
- package/chunks/cookie-DJ-U7h-A.js +17 -0
- package/chunks/copy-icon-BWyncDVB.js +17 -0
- package/chunks/credit-card-icon-DS1ckDU7.js +17 -0
- package/chunks/delete-icon-Bk1ZmhBo.js +17 -0
- package/chunks/document-icon-DcmQhRhY.js +17 -0
- package/chunks/done-icon-BZEAL7mI.js +17 -0
- package/chunks/dont-disturb-o1xt1TeU.js +17 -0
- package/chunks/download-icon-BvWPcT7W.js +17 -0
- package/chunks/edit-icon-_3venQRC.js +17 -0
- package/chunks/error-fill-icon--8j3Zcfq.js +17 -0
- package/chunks/error-icon-CgJ3zr06.js +17 -0
- package/chunks/file-error-icon-630wBy1K.js +17 -0
- package/chunks/file-success-icon-BTk5SYAM.js +17 -0
- package/chunks/filter-icon-D_3_SQsN.js +17 -0
- package/chunks/flag-icon-DmWEp4ya.js +17 -0
- package/chunks/full-screen-exit-icon-BHwq-9P-.js +17 -0
- package/chunks/full-screen-icon-Dpl__xtk.js +17 -0
- package/chunks/group-icon-BfSRHuvp.js +17 -0
- package/chunks/help-icon-BMdlItds.js +17 -0
- package/chunks/home-icon-Mag5Wxqq.js +17 -0
- package/chunks/info-fill-icon-BzE09Xg8.js +17 -0
- package/chunks/info-icon-BcUNe5kE.js +17 -0
- package/chunks/inventory-icon-CFV8amBs.js +17 -0
- package/chunks/link-icon-BUAymb0P.js +17 -0
- package/chunks/list-icon-ChePCGxK.js +17 -0
- package/chunks/location-icon-Bf9Wbg65.js +17 -0
- package/chunks/logout-icon-DN86wp7N.js +17 -0
- package/chunks/mail-icon-DCZPsZFE.js +17 -0
- package/chunks/manage-accounts-icon-BkyuUTj3.js +17 -0
- package/chunks/max-icon-CTdBEAt8.js +17 -0
- package/chunks/menu-icon-DWObHD95.js +17 -0
- package/chunks/more-horiz-icon-CSK7Ackl.js +17 -0
- package/chunks/more-vert-icon-NA1tYTse.js +17 -0
- package/chunks/north-east-icon-Dh7-1BBW.js +17 -0
- package/chunks/open-in-full-icon-DzhRd5Mx.js +17 -0
- package/chunks/open-in-new-icon-A7MgnnyP.js +17 -0
- package/chunks/outgoing-main-icon-BAH2vddG.js +17 -0
- package/chunks/page-info-icon-BiVNFu71.js +17 -0
- package/chunks/pause-circle-icon-Dpio-qM3.js +17 -0
- package/chunks/payment-icon-C-B7L4WP.js +17 -0
- package/chunks/person-add-C-3pZhgM.js +17 -0
- package/chunks/person-icon-Bo5NxPRQ.js +17 -0
- package/chunks/person-search-icon-CwVm_XAL.js +17 -0
- package/chunks/pincode-icon-BA-e4pBH.js +17 -0
- package/chunks/play-icon-Bnj3hsIf.js +17 -0
- package/chunks/progress-activity-icon-YbJGzvxH.js +17 -0
- package/chunks/refresh-icon-ac1oOwX8.js +17 -0
- package/chunks/remove-icon-CTuoG0Vq.js +17 -0
- package/chunks/save-icon-DnF5revo.js +17 -0
- package/chunks/sberid-icon-DgQtjRjD.js +17 -0
- package/chunks/scenario-icon-BcnFsqUA.js +17 -0
- package/chunks/search-icon-CortrXrC.js +17 -0
- package/chunks/segment-icon-Bzm7cziF.js +17 -0
- package/chunks/send-icon-BTztERTu.js +17 -0
- package/chunks/settings-backup-restore-icon-DUrmFxtk.js +17 -0
- package/chunks/settings-icon-D_wgjUsM.js +17 -0
- package/chunks/shield-icon-BwpxkU5E.js +17 -0
- package/chunks/sms-icon-4p-ON5VX.js +17 -0
- package/chunks/statistic-icon-mhqUxTDv.js +17 -0
- package/chunks/support-icon-CBHKGKq8.js +17 -0
- package/chunks/telegramm-icon-C2ZR2jdg.js +17 -0
- package/chunks/thumbs-up-icon-BArjyDfk.js +17 -0
- package/chunks/time-icon-DsWMo47L.js +17 -0
- package/chunks/tinkoffid-icon-DN9XKuNA.js +17 -0
- package/chunks/trending-down-icon-DlHKI37F.js +17 -0
- package/chunks/trending-up-icon-IEwGHi9c.js +17 -0
- package/chunks/unfold-icon-S3J7xXHf.js +17 -0
- package/chunks/upload-icon-CwzthQEL.js +17 -0
- package/chunks/visibility-off-icon-BA_I97Vw.js +17 -0
- package/chunks/visibility-on-icon-C9VmKsvX.js +17 -0
- package/chunks/wallet-icon-D0r9bDRg.js +17 -0
- package/chunks/whats-app-icon-XbrqQF8U.js +17 -0
- package/chunks/work-icon-D7I-74Mk.js +17 -0
- package/chunks/zoom-in-icon-ZWEJANob.js +17 -0
- package/chunks/zoom-out-icon-CeFz3G6V.js +17 -0
- package/lib/index-mini.js +2877 -0
- package/package.json +29 -0
- package/styles/fonts.css +30 -0
- package/styles/konsolpro-custom-ui.css +1 -0
- package/styles/variables.css +305 -0
- package/types/icon/icon.d.ts +10 -0
- package/types/icon/icons.d.ts +112 -0
- package/types/icon/index.d.ts +3 -0
- package/types/icon-banks/icon-banks.d.ts +7 -0
- package/types/icon-banks/icons-banks.d.ts +28 -0
- package/types/icon-banks/index.d.ts +3 -0
- package/types/icon-documents/icon-document.d.ts +9 -0
- package/types/icon-documents/icons-document.d.ts +13 -0
- package/types/icon-documents/index.d.ts +3 -0
- package/types/index-mini.d.ts +15 -0
- package/types/index.d.ts +55 -0
- package/types/ui/accordion.d.ts +13 -0
- package/types/ui/actions-menu.d.ts +40 -0
- package/types/ui/alert.d.ts +16 -0
- package/types/ui/autocomplete.d.ts +23 -0
- package/types/ui/avatar.d.ts +27 -0
- package/types/ui/banner.d.ts +12 -0
- package/types/ui/button.d.ts +38 -0
- package/types/ui/calendar.d.ts +4 -0
- package/types/ui/card.d.ts +38 -0
- package/types/ui/carousel.d.ts +11 -0
- package/types/ui/checkbox.d.ts +27 -0
- package/types/ui/combobox-base/combobox-base.d.ts +10 -0
- package/types/ui/combobox-base/index.d.ts +1 -0
- package/types/ui/combobox-multiselect/combobox-multiselect-context.d.ts +56 -0
- package/types/ui/combobox-multiselect/combobox-multiselect.d.ts +41 -0
- package/types/ui/combobox-multiselect/components/combobox-actions.d.ts +5 -0
- package/types/ui/combobox-multiselect/components/combobox-container.d.ts +5 -0
- package/types/ui/combobox-multiselect/components/combobox-input.d.ts +5 -0
- package/types/ui/combobox-multiselect/components/combobox-item-renderer.d.ts +10 -0
- package/types/ui/combobox-multiselect/components/combobox-menu.d.ts +6 -0
- package/types/ui/combobox-multiselect/components/index.d.ts +5 -0
- package/types/ui/combobox-multiselect/index.d.ts +1 -0
- package/types/ui/combobox-primitive/combobox-primitive-context.d.ts +54 -0
- package/types/ui/combobox-primitive/components/Item.d.ts +3 -0
- package/types/ui/combobox-primitive/components/combobox-actions.d.ts +5 -0
- package/types/ui/combobox-primitive/components/combobox-container.d.ts +5 -0
- package/types/ui/combobox-primitive/components/combobox-input.d.ts +5 -0
- package/types/ui/combobox-primitive/components/combobox-item-renderer.d.ts +10 -0
- package/types/ui/combobox-primitive/components/combobox-menu.d.ts +6 -0
- package/types/ui/combobox-primitive/components/index.d.ts +8 -0
- package/types/ui/combobox-primitive/components/item-view.d.ts +3 -0
- package/types/ui/combobox-primitive/components/list.d.ts +3 -0
- package/types/ui/combobox-primitive/constants.d.ts +47 -0
- package/types/ui/combobox-primitive/hooks.d.ts +8 -0
- package/types/ui/combobox-primitive/index.d.ts +3 -0
- package/types/ui/combobox-primitive/types.d.ts +74 -0
- package/types/ui/combobox-primitive/utils.d.ts +25 -0
- package/types/ui/combobox.d.ts +34 -0
- package/types/ui/command.d.ts +78 -0
- package/types/ui/customizable-carousel.d.ts +148 -0
- package/types/ui/date-picker.d.ts +37 -0
- package/types/ui/date-range-picker/constants.d.ts +22 -0
- package/types/ui/date-range-picker/locales.d.ts +3 -0
- package/types/ui/date-range-picker.d.ts +46 -0
- package/types/ui/dialog/dialog-base/dialog-base.d.ts +46 -0
- package/types/ui/dialog/dialog-base/index.d.ts +3 -0
- package/types/ui/dialog/dialog-base/use-base-dialog.d.ts +38 -0
- package/types/ui/dialog/dialog-primitive/dialog-primitive.d.ts +38 -0
- package/types/ui/dialog/dialog-primitive/index.d.ts +2 -0
- package/types/ui/dialog/index.d.ts +2 -0
- package/types/ui/dialog/utils.d.ts +6 -0
- package/types/ui/divider.d.ts +6 -0
- package/types/ui/dropdown.d.ts +55 -0
- package/types/ui/input-number/index.d.ts +2 -0
- package/types/ui/input-number/input-number.d.ts +43 -0
- package/types/ui/input.d.ts +58 -0
- package/types/ui/link.d.ts +28 -0
- package/types/ui/masked-input.d.ts +12 -0
- package/types/ui/modal.d.ts +26 -0
- package/types/ui/otp-input.d.ts +49 -0
- package/types/ui/pagination/index.d.ts +2 -0
- package/types/ui/pagination/pagination.d.ts +18 -0
- package/types/ui/phone-input/constants.d.ts +18 -0
- package/types/ui/phone-input/locales/ru.json.d.ts +252 -0
- package/types/ui/phone-input/locales/tg.json.d.ts +261 -0
- package/types/ui/phone-input/locales/uz.json.d.ts +261 -0
- package/types/ui/phone-input/phone-input-utils.d.ts +2 -0
- package/types/ui/phone-input/phone-input.d.ts +25 -0
- package/types/ui/phone-input/phone-mask.d.ts +233 -0
- package/types/ui/pointline.d.ts +20 -0
- package/types/ui/popover.d.ts +7 -0
- package/types/ui/progress.d.ts +4 -0
- package/types/ui/radio.d.ts +37 -0
- package/types/ui/schedule-calendar/calendar-day-card.d.ts +9 -0
- package/types/ui/schedule-calendar/constants.d.ts +3 -0
- package/types/ui/schedule-calendar/embla-calendar-card.d.ts +9 -0
- package/types/ui/schedule-calendar/embla-calendar-strip.d.ts +14 -0
- package/types/ui/schedule-calendar/index.d.ts +16 -0
- package/types/ui/schedule-calendar/schedule-calendar-strip.d.ts +36 -0
- package/types/ui/schedule-calendar/schedule-header.d.ts +26 -0
- package/types/ui/schedule-calendar/use-schedule-calendar.d.ts +27 -0
- package/types/ui/schedule-calendar/use-schedule-sync.d.ts +39 -0
- package/types/ui/schedule-calendar/utils.d.ts +12 -0
- package/types/ui/scroll-area.d.ts +9 -0
- package/types/ui/segments.d.ts +44 -0
- package/types/ui/select.d.ts +95 -0
- package/types/ui/spinner.d.ts +12 -0
- package/types/ui/stepper.d.ts +11 -0
- package/types/ui/switch.d.ts +24 -0
- package/types/ui/table/index.d.ts +4 -0
- package/types/ui/table/table-align.d.ts +3 -0
- package/types/ui/table/table-body.d.ts +16 -0
- package/types/ui/table/table-cards-skeleton.d.ts +6 -0
- package/types/ui/table/table-cards.d.ts +16 -0
- package/types/ui/table/table-colgroup.d.ts +5 -0
- package/types/ui/table/table-columns.d.ts +4 -0
- package/types/ui/table/table-empty-state.d.ts +6 -0
- package/types/ui/table/table-header.d.ts +17 -0
- package/types/ui/table/table-internal-types.d.ts +28 -0
- package/types/ui/table/table-settings.d.ts +20 -0
- package/types/ui/table/table-skeleton.d.ts +11 -0
- package/types/ui/table/table-sticky.d.ts +10 -0
- package/types/ui/table/table-types.d.ts +135 -0
- package/types/ui/table/table.d.ts +12 -0
- package/types/ui/table/use-table-scroll-state.d.ts +3 -0
- package/types/ui/table/utils.d.ts +1 -0
- package/types/ui/tabs.d.ts +25 -0
- package/types/ui/tag.d.ts +28 -0
- package/types/ui/textarea.d.ts +17 -0
- package/types/ui/time-picker.d.ts +15 -0
- package/types/ui/time-range-picker.d.ts +26 -0
- package/types/ui/timeline.d.ts +18 -0
- package/types/ui/toaster.d.ts +45 -0
- package/types/ui/tooltip.d.ts +9 -0
- package/types/ui/typography.d.ts +25 -0
- package/types/ui/uploader.d.ts +59 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
export declare const PHONE_MASKS: {
|
|
2
|
+
readonly AC: readonly ["+247-####"];
|
|
3
|
+
readonly AD: readonly ["+376-###-###"];
|
|
4
|
+
readonly AE: readonly ["+\\971-##-###-####", "+\\971-#-###-####"];
|
|
5
|
+
readonly AF: readonly ["+\\93-##-###-####"];
|
|
6
|
+
readonly AG: readonly ["+1 (###) ###-####"];
|
|
7
|
+
readonly AI: readonly ["+1 (###) ###-####"];
|
|
8
|
+
readonly AL: readonly ["+355 (###) ###-###"];
|
|
9
|
+
readonly AM: readonly ["+374-##-###-###"];
|
|
10
|
+
readonly AN: readonly ["+5\\9\\9-###-####", "+5\\9\\9-####-####"];
|
|
11
|
+
readonly AO: readonly ["+244 (###) ###-###"];
|
|
12
|
+
readonly AQ: readonly ["+672-###-###"];
|
|
13
|
+
readonly AR: readonly ["+54 (###) ###-####", "+54 \\9 ### ###-####"];
|
|
14
|
+
readonly AS: readonly ["+1 (684) ###-####"];
|
|
15
|
+
readonly AT: readonly ["+43 (###) ###-#####"];
|
|
16
|
+
readonly AU: readonly ["+61-#-####-####"];
|
|
17
|
+
readonly AW: readonly ["+2\\97-###-####"];
|
|
18
|
+
readonly AZ: readonly ["+\\9\\94-##-###-##-##"];
|
|
19
|
+
readonly BA: readonly ["+387-##-#####", "+387-##-####"];
|
|
20
|
+
readonly BB: readonly ["+1 (###) ###-####"];
|
|
21
|
+
readonly BD: readonly ["+880-##-####-####"];
|
|
22
|
+
readonly BE: readonly ["+32 (###) ###-###"];
|
|
23
|
+
readonly BF: readonly ["+226-##-##-####"];
|
|
24
|
+
readonly BG: readonly ["+35\\9 (###) ###-###"];
|
|
25
|
+
readonly BH: readonly ["+\\973-####-####"];
|
|
26
|
+
readonly BI: readonly ["+257-##-##-####"];
|
|
27
|
+
readonly BJ: readonly ["+22\\9-##-##-####"];
|
|
28
|
+
readonly BM: readonly ["+1 (###) ###-####"];
|
|
29
|
+
readonly BN: readonly ["+673-###-####"];
|
|
30
|
+
readonly BO: readonly ["+5\\91-#-###-####"];
|
|
31
|
+
readonly BR: readonly ["+55 (##) ####-####", "+55 (##) #####-####"];
|
|
32
|
+
readonly BS: readonly ["+1 (###) ###-####"];
|
|
33
|
+
readonly BT: readonly ["+\\975-##-###-###", "+\\975-#-###-###"];
|
|
34
|
+
readonly BW: readonly ["+267-##-###-###"];
|
|
35
|
+
readonly BY: readonly ["+375 (##) ###-##-##"];
|
|
36
|
+
readonly BZ: readonly ["+501-###-####"];
|
|
37
|
+
readonly CA: readonly ["+1 (###) ###-####"];
|
|
38
|
+
readonly CD: readonly ["+243 (###) ###-###"];
|
|
39
|
+
readonly CF: readonly ["+236-##-##-####"];
|
|
40
|
+
readonly CG: readonly ["+242-##-###-####"];
|
|
41
|
+
readonly CH: readonly ["+41-##-###-####"];
|
|
42
|
+
readonly CI: readonly ["+225-##-###-###"];
|
|
43
|
+
readonly CK: readonly ["+682-##-###"];
|
|
44
|
+
readonly CL: readonly ["+56-#-####-####"];
|
|
45
|
+
readonly CM: readonly ["+237-####-####"];
|
|
46
|
+
readonly CN: readonly ["+86 (###) ####-####", "+86 (###) ####-###", "+86-##-#####-#####"];
|
|
47
|
+
readonly CO: readonly ["+57 (###) ###-####"];
|
|
48
|
+
readonly CR: readonly ["+506-####-####"];
|
|
49
|
+
readonly CU: readonly ["+53-#-###-####"];
|
|
50
|
+
readonly CV: readonly ["+238 (###) ##-##"];
|
|
51
|
+
readonly CW: readonly ["+5\\9\\9-###-####"];
|
|
52
|
+
readonly CY: readonly ["+357-##-###-###"];
|
|
53
|
+
readonly CZ: readonly ["+420 (###) ###-###"];
|
|
54
|
+
readonly DE: readonly ["+4\\9 (####) ###-####", "+4\\9 (###) ###-####", "+4\\9 (###) ##-####", "+4\\9 (###) ##-###", "+4\\9 (###) ##-##", "+4\\9-###-###"];
|
|
55
|
+
readonly DJ: readonly ["+253-##-##-##-##"];
|
|
56
|
+
readonly DK: readonly ["+45-##-##-##-##"];
|
|
57
|
+
readonly DM: readonly ["+1 (###) ###-####"];
|
|
58
|
+
readonly DO: readonly ["+1 (###) ###-####"];
|
|
59
|
+
readonly DZ: readonly ["+213-##-###-####"];
|
|
60
|
+
readonly EC: readonly ["+5\\93-##-###-####", "+5\\93-#-###-####"];
|
|
61
|
+
readonly EE: readonly ["+372-####-####", "+372-###-####"];
|
|
62
|
+
readonly EG: readonly ["+20 (###) ###-####"];
|
|
63
|
+
readonly ER: readonly ["+2\\91-#-###-###"];
|
|
64
|
+
readonly ES: readonly ["+34 (###) ###-###"];
|
|
65
|
+
readonly ET: readonly ["+251-##-###-####"];
|
|
66
|
+
readonly FI: readonly ["+358 (###) ###-##-##"];
|
|
67
|
+
readonly FJ: readonly ["+67\\9-##-#####"];
|
|
68
|
+
readonly FK: readonly ["+500-#####"];
|
|
69
|
+
readonly FM: readonly ["+6\\91-###-####"];
|
|
70
|
+
readonly FO: readonly ["+2\\98-###-###"];
|
|
71
|
+
readonly FR: readonly ["+33 (###) ###-###"];
|
|
72
|
+
readonly GA: readonly ["+241-#-##-##-##"];
|
|
73
|
+
readonly GD: readonly ["+1 (473) ###-####"];
|
|
74
|
+
readonly GE: readonly ["+\\9\\95 (###) ###-###"];
|
|
75
|
+
readonly GF: readonly ["+5\\94-#####-####"];
|
|
76
|
+
readonly GH: readonly ["+233 (###) ###-###"];
|
|
77
|
+
readonly GI: readonly ["+350-###-#####"];
|
|
78
|
+
readonly GL: readonly ["+2\\9\\9-##-##-##"];
|
|
79
|
+
readonly GM: readonly ["+220 (###) ##-##"];
|
|
80
|
+
readonly GN: readonly ["+224-##-###-###"];
|
|
81
|
+
readonly GQ: readonly ["+240-##-###-####"];
|
|
82
|
+
readonly GR: readonly ["+30 (###) ###-####"];
|
|
83
|
+
readonly GT: readonly ["+502-#-###-####"];
|
|
84
|
+
readonly GU: readonly ["+1 (671) ###-####"];
|
|
85
|
+
readonly GW: readonly ["+245-#-######"];
|
|
86
|
+
readonly GY: readonly ["+5\\92-###-####"];
|
|
87
|
+
readonly HK: readonly ["+852-####-####"];
|
|
88
|
+
readonly HN: readonly ["+504-####-####"];
|
|
89
|
+
readonly HR: readonly ["+385-##-###-####"];
|
|
90
|
+
readonly HT: readonly ["+50\\9-##-##-####"];
|
|
91
|
+
readonly HU: readonly ["+36 (###) ###-###"];
|
|
92
|
+
readonly ID: readonly ["+62 (###) ###-####", "+62-##-###-##", "+62-##-###-###", "+62-##-###-####", "+62 (###) ###-##-###"];
|
|
93
|
+
readonly IE: readonly ["+353 (###) ###-###"];
|
|
94
|
+
readonly IL: readonly ["+\\972-##-###-####", "+\\972-#-###-####"];
|
|
95
|
+
readonly IN: readonly ["+\\91 (####) ###-###"];
|
|
96
|
+
readonly IO: readonly ["+246-###-####"];
|
|
97
|
+
readonly IQ: readonly ["+\\964 (###) ###-####"];
|
|
98
|
+
readonly IR: readonly ["+\\98 (###) ###-####"];
|
|
99
|
+
readonly IS: readonly ["+354-###-####"];
|
|
100
|
+
readonly IT: readonly ["+3\\9 (###) ####-###"];
|
|
101
|
+
readonly JM: readonly ["+1 (876) ###-####"];
|
|
102
|
+
readonly JO: readonly ["+\\962-#-####-####"];
|
|
103
|
+
readonly JP: readonly ["+81-##-####-####", "+81 (###) ###-###"];
|
|
104
|
+
readonly KE: readonly ["+254-###-######"];
|
|
105
|
+
readonly KG: readonly ["+\\9\\96 (###) ###-###"];
|
|
106
|
+
readonly KH: readonly ["+855-##-###-###"];
|
|
107
|
+
readonly KI: readonly ["+686-##-###"];
|
|
108
|
+
readonly KM: readonly ["+26\\9-##-#####"];
|
|
109
|
+
readonly KN: readonly ["+1 (86\\9) ###-####"];
|
|
110
|
+
readonly KP: readonly ["+850-1\\91-###-####", "+850-##-###-###", "+850-###-####-###", "+850-###-###", "+850-####-####", "+850-####-#############"];
|
|
111
|
+
readonly KR: readonly ["+82-##-####-####"];
|
|
112
|
+
readonly KW: readonly ["+\\965-####-####"];
|
|
113
|
+
readonly KY: readonly ["+1 (345) ###-####"];
|
|
114
|
+
readonly KZ: readonly ["+7 (###) ###-##-##"];
|
|
115
|
+
readonly LA: readonly ["+856 (####) ###-###", "+856-##-###-###"];
|
|
116
|
+
readonly LB: readonly ["+\\961-##-###-###", "+\\961-#-###-###"];
|
|
117
|
+
readonly LC: readonly ["+1 (###) ###-####"];
|
|
118
|
+
readonly LI: readonly ["+423 (###) ###-####"];
|
|
119
|
+
readonly LK: readonly ["+\\94-##-###-####"];
|
|
120
|
+
readonly LR: readonly ["+231-##-###-###"];
|
|
121
|
+
readonly LS: readonly ["+266-#-###-####"];
|
|
122
|
+
readonly LT: readonly ["+370 (###) ##-###"];
|
|
123
|
+
readonly LU: readonly ["+352 (###) ###-###"];
|
|
124
|
+
readonly LV: readonly ["+371-##-###-###"];
|
|
125
|
+
readonly LY: readonly ["+218-##-###-###", "+218-##-###-####"];
|
|
126
|
+
readonly MA: readonly ["+212-##-####-###"];
|
|
127
|
+
readonly MC: readonly ["+377 (###) ###-###", "+377-##-###-###"];
|
|
128
|
+
readonly MD: readonly ["+373-####-####"];
|
|
129
|
+
readonly ME: readonly ["+382-##-###-###"];
|
|
130
|
+
readonly MG: readonly ["+261-##-##-#####"];
|
|
131
|
+
readonly MH: readonly ["+6\\92-###-####"];
|
|
132
|
+
readonly MK: readonly ["+38\\9-##-###-###"];
|
|
133
|
+
readonly ML: readonly ["+223-##-##-####"];
|
|
134
|
+
readonly MM: readonly ["+\\95-##-###-###", "+\\95-#-###-###", "+\\95-###-###"];
|
|
135
|
+
readonly MN: readonly ["+\\976-##-##-####"];
|
|
136
|
+
readonly MO: readonly ["+853-####-####"];
|
|
137
|
+
readonly MP: readonly ["+1 (###) ###-####"];
|
|
138
|
+
readonly MQ: readonly ["+5\\96 (###) ##-##-##"];
|
|
139
|
+
readonly MR: readonly ["+222-##-##-####"];
|
|
140
|
+
readonly MS: readonly ["+1 (###) ###-####"];
|
|
141
|
+
readonly MT: readonly ["+356-####-####"];
|
|
142
|
+
readonly MU: readonly ["+230-###-####"];
|
|
143
|
+
readonly MV: readonly ["+\\960-###-####"];
|
|
144
|
+
readonly MW: readonly ["+265-#-###-###", "+265-#-####-####"];
|
|
145
|
+
readonly MX: readonly ["+52 (###) ###-####", "+52-##-##-####"];
|
|
146
|
+
readonly MY: readonly ["+60-##-###-####", "+60-##-####-####", "+60-#-####-####"];
|
|
147
|
+
readonly MZ: readonly ["+258-##-###-####"];
|
|
148
|
+
readonly NA: readonly ["+264-##-###-####"];
|
|
149
|
+
readonly NC: readonly ["+687-##-####"];
|
|
150
|
+
readonly NE: readonly ["+227-##-##-####"];
|
|
151
|
+
readonly NF: readonly ["+672-3##-###"];
|
|
152
|
+
readonly NG: readonly ["+234 (###) ###-####", "+234-##-###-###", "+234-##-###-##", "+234 (###) ###-####"];
|
|
153
|
+
readonly NI: readonly ["+505-####-####"];
|
|
154
|
+
readonly NL: readonly ["+31-##-###-####"];
|
|
155
|
+
readonly NO: readonly ["+47 (###) ##-###"];
|
|
156
|
+
readonly NP: readonly ["+\\977-##-###-###"];
|
|
157
|
+
readonly NR: readonly ["+674-###-####"];
|
|
158
|
+
readonly NU: readonly ["+683-####"];
|
|
159
|
+
readonly NZ: readonly ["+64 (###) ###-###", "+64-##-###-###", "+64 (###) ###-####"];
|
|
160
|
+
readonly OM: readonly ["+\\968-##-###-###"];
|
|
161
|
+
readonly PA: readonly ["+507-###-####"];
|
|
162
|
+
readonly PE: readonly ["+51 (###) ###-###"];
|
|
163
|
+
readonly PF: readonly ["+68\\9-##-##-##"];
|
|
164
|
+
readonly PG: readonly ["+675 (###) ##-###"];
|
|
165
|
+
readonly PH: readonly ["+63 (###) ###-####"];
|
|
166
|
+
readonly PK: readonly ["+\\92 (###) ###-####"];
|
|
167
|
+
readonly PL: readonly ["+48 (###) ###-###"];
|
|
168
|
+
readonly PS: readonly ["+\\970-##-###-####"];
|
|
169
|
+
readonly PT: readonly ["+351-##-###-####"];
|
|
170
|
+
readonly PW: readonly ["+680-###-####"];
|
|
171
|
+
readonly PY: readonly ["+5\\95 (###) ###-###"];
|
|
172
|
+
readonly QA: readonly ["+\\974-####-####"];
|
|
173
|
+
readonly RE: readonly ["+262-#####-####"];
|
|
174
|
+
readonly RO: readonly ["+40-##-###-####"];
|
|
175
|
+
readonly RS: readonly ["+381-##-###-####"];
|
|
176
|
+
readonly RU: readonly ["+7 (###) ###-##-##"];
|
|
177
|
+
readonly RW: readonly ["+250 (###) ###-###"];
|
|
178
|
+
readonly SA: readonly ["+\\966-#-####-####", "+\\966-#-###-####"];
|
|
179
|
+
readonly SB: readonly ["+677-###-####", "+677-#####"];
|
|
180
|
+
readonly SC: readonly ["+248-#-###-###"];
|
|
181
|
+
readonly SD: readonly ["+24\\9-##-###-####"];
|
|
182
|
+
readonly SE: readonly ["+46-##-###-####"];
|
|
183
|
+
readonly SG: readonly ["+65-####-####"];
|
|
184
|
+
readonly SH: readonly ["+2\\90-####"];
|
|
185
|
+
readonly SI: readonly ["+386-##-###-###"];
|
|
186
|
+
readonly SK: readonly ["+421 (###) ###-###"];
|
|
187
|
+
readonly SL: readonly ["+232-##-######"];
|
|
188
|
+
readonly SM: readonly ["+378-####-######"];
|
|
189
|
+
readonly SN: readonly ["+221-##-###-####"];
|
|
190
|
+
readonly SO: readonly ["+252-##-###-###", "+252-#-###-###", "+252-#-###-###"];
|
|
191
|
+
readonly SR: readonly ["+5\\97-###-####", "+5\\97-###-###"];
|
|
192
|
+
readonly SS: readonly ["+211-##-###-####"];
|
|
193
|
+
readonly ST: readonly ["+23\\9-##-#####"];
|
|
194
|
+
readonly SV: readonly ["+503-##-##-####"];
|
|
195
|
+
readonly SX: readonly ["+1 (721) ###-####"];
|
|
196
|
+
readonly SY: readonly ["+\\963-##-####-###"];
|
|
197
|
+
readonly SZ: readonly ["+268-##-##-####"];
|
|
198
|
+
readonly TC: readonly ["+1 (64\\9) ###-####"];
|
|
199
|
+
readonly TD: readonly ["+235-##-##-##-##"];
|
|
200
|
+
readonly TG: readonly ["+228-##-###-###"];
|
|
201
|
+
readonly TH: readonly ["+66-##-###-####", "+66-##-###-###"];
|
|
202
|
+
readonly TJ: readonly ["+\\9\\92-##-###-####"];
|
|
203
|
+
readonly TK: readonly ["+6\\90-####"];
|
|
204
|
+
readonly TL: readonly ["+670-###-####", "+670-###-#####"];
|
|
205
|
+
readonly TM: readonly ["+\\9\\93-#-###-####"];
|
|
206
|
+
readonly TN: readonly ["+216-##-###-###"];
|
|
207
|
+
readonly TO: readonly ["+676-#####"];
|
|
208
|
+
readonly TR: readonly ["+\\90 (###) ###-####"];
|
|
209
|
+
readonly TT: readonly ["+1 (868) ###-####"];
|
|
210
|
+
readonly TV: readonly ["+688-######", "+688-#####"];
|
|
211
|
+
readonly TW: readonly ["+886-#-####-####", "+886-####-####"];
|
|
212
|
+
readonly TZ: readonly ["+255-##-###-####"];
|
|
213
|
+
readonly UA: readonly ["+380 (##) ###-##-##"];
|
|
214
|
+
readonly UG: readonly ["+256 (###) ###-###"];
|
|
215
|
+
readonly UK: readonly ["+44-##-####-####"];
|
|
216
|
+
readonly US: readonly ["+1 (###) ###-####"];
|
|
217
|
+
readonly UY: readonly ["+5\\98-#-###-##-##"];
|
|
218
|
+
readonly UZ: readonly ["+\\9\\98-##-###-####"];
|
|
219
|
+
readonly VA: readonly ["+3\\9-6-6\\98-#####"];
|
|
220
|
+
readonly VC: readonly ["+1 (###) ###-####"];
|
|
221
|
+
readonly VE: readonly ["+58 (###) ###-####"];
|
|
222
|
+
readonly VG: readonly ["+1 (###) ###-####"];
|
|
223
|
+
readonly VI: readonly ["+1 (###) ###-####"];
|
|
224
|
+
readonly VN: readonly ["+84-##-####-###", "+84 (###) ####-###"];
|
|
225
|
+
readonly VU: readonly ["+678-##-#####", "+678-#####"];
|
|
226
|
+
readonly WF: readonly ["+681-##-####"];
|
|
227
|
+
readonly WS: readonly ["+685-##-####"];
|
|
228
|
+
readonly YE: readonly ["+\\967-###-###-###", "+\\967-#-###-###", "+\\967-##-###-###"];
|
|
229
|
+
readonly ZA: readonly ["+27-##-###-####"];
|
|
230
|
+
readonly ZM: readonly ["+260-##-###-####"];
|
|
231
|
+
readonly ZW: readonly ["+263-#-######"];
|
|
232
|
+
readonly GB: readonly ["+44-##-####-####"];
|
|
233
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Typography } from './typography';
|
|
3
|
+
export interface PointlineItem {
|
|
4
|
+
title: React.ReactNode;
|
|
5
|
+
additional?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface PointlineProps {
|
|
8
|
+
items: PointlineItem[];
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface PointlineTitleProps extends Omit<React.ComponentPropsWithoutRef<typeof Typography>, 'variant' | 'weight'> {
|
|
12
|
+
}
|
|
13
|
+
export interface PointlineAdditionalProps extends Omit<React.ComponentPropsWithoutRef<typeof Typography>, 'textColor'> {
|
|
14
|
+
}
|
|
15
|
+
interface PointlineComponent extends React.FC<PointlineProps> {
|
|
16
|
+
Title: React.FC<PointlineTitleProps>;
|
|
17
|
+
Additional: React.FC<PointlineAdditionalProps>;
|
|
18
|
+
}
|
|
19
|
+
export declare const Pointline: PointlineComponent;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
3
|
+
declare function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { Progress };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
type RadioSize = 'md' | 'lg';
|
|
4
|
+
declare const radioVariants: (props?: ({
|
|
5
|
+
size?: "md" | "lg" | null | undefined;
|
|
6
|
+
isChecked?: boolean | null | undefined;
|
|
7
|
+
dotSize?: "md" | "lg" | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
9
|
+
interface RadioProps extends VariantProps<typeof radioVariants> {
|
|
10
|
+
className?: string;
|
|
11
|
+
label?: React.ReactNode;
|
|
12
|
+
checked?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
size?: RadioSize;
|
|
15
|
+
value: string;
|
|
16
|
+
id?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
onValueChange?: (value: string) => void;
|
|
19
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
20
|
+
onFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
21
|
+
onBlur?: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
22
|
+
'data-testid'?: string;
|
|
23
|
+
}
|
|
24
|
+
declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLButtonElement>>;
|
|
25
|
+
interface RadioGroupProps {
|
|
26
|
+
className?: string;
|
|
27
|
+
label?: React.ReactNode;
|
|
28
|
+
error?: string;
|
|
29
|
+
size?: RadioSize;
|
|
30
|
+
value?: string;
|
|
31
|
+
name?: string;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
onValueChange?: (value: string) => void;
|
|
34
|
+
children?: React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
export { Radio, RadioGroup, type RadioGroupProps, type RadioProps, type RadioSize, radioVariants, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface CalendarDayCardProps {
|
|
3
|
+
date: Date;
|
|
4
|
+
selected: boolean;
|
|
5
|
+
renderBadge?: (date: Date) => React.ReactNode;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const CalendarDayCard: React.FC<CalendarDayCardProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface EmblaCalendarCardProps {
|
|
3
|
+
date: Date;
|
|
4
|
+
selected?: boolean;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
renderBadge?: () => React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const EmblaCalendarCard: React.FC<EmblaCalendarCardProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface EmblaCalendarStripProps {
|
|
3
|
+
dates: Date[];
|
|
4
|
+
selectedDate?: Date;
|
|
5
|
+
onDateSelect?: (date: Date) => void;
|
|
6
|
+
renderBadge?: (date: Date) => React.ReactNode;
|
|
7
|
+
dayClassName?: string;
|
|
8
|
+
classNames?: {
|
|
9
|
+
root?: string;
|
|
10
|
+
content?: string;
|
|
11
|
+
card?: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare const EmblaCalendarStrip: React.FC<EmblaCalendarStripProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { CalendarDayCard } from './calendar-day-card';
|
|
2
|
+
export type { CalendarDayCardProps } from './calendar-day-card';
|
|
3
|
+
export * from './constants';
|
|
4
|
+
export { EmblaCalendarCard } from './embla-calendar-card';
|
|
5
|
+
export type { EmblaCalendarCardProps } from './embla-calendar-card';
|
|
6
|
+
export { EmblaCalendarStrip } from './embla-calendar-strip';
|
|
7
|
+
export type { EmblaCalendarStripProps } from './embla-calendar-strip';
|
|
8
|
+
export { CalendarStrip } from './schedule-calendar-strip';
|
|
9
|
+
export type { CalendarStripProps } from './schedule-calendar-strip';
|
|
10
|
+
export { default as ScheduleHeader } from './schedule-header';
|
|
11
|
+
export type { ScheduleHeaderProps } from './schedule-header';
|
|
12
|
+
export { useScheduleCalendar } from './use-schedule-calendar';
|
|
13
|
+
export type { UseScheduleCalendarParams, UseScheduleCalendarResult } from './use-schedule-calendar';
|
|
14
|
+
export { useScheduleSync } from './use-schedule-sync';
|
|
15
|
+
export type { UseScheduleSyncParams, UseScheduleSyncResult } from './use-schedule-sync';
|
|
16
|
+
export { formatMonthGenitive, formatMonthLong, formatWeekdayShort, getThreeMonthsAround, parseDateString, startOfDay } from './utils';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { UseScheduleCalendarParams } from './use-schedule-calendar';
|
|
3
|
+
export interface CalendarStripProps extends Omit<UseScheduleCalendarParams, 'onChange'> {
|
|
4
|
+
/** Стилистика карточки дня */
|
|
5
|
+
dayClassName?: string;
|
|
6
|
+
/** Рендер бейджа справа-сверху */
|
|
7
|
+
renderBadge?: (date: Date) => React.ReactNode;
|
|
8
|
+
/** Изменение выбранной даты */
|
|
9
|
+
onChange?: (date: Date) => void;
|
|
10
|
+
/** Колбэк для обновления видимых месяцев (для синхронизации с header) */
|
|
11
|
+
onVisibleMonthsChange?: (months: Array<{
|
|
12
|
+
year: number;
|
|
13
|
+
month: number;
|
|
14
|
+
}>) => void;
|
|
15
|
+
/** Показывать ли стрелки на md+ */
|
|
16
|
+
showArrows?: boolean;
|
|
17
|
+
/** Триггер для скролла (при изменении скроллится к первому числу месяца) */
|
|
18
|
+
scrollTrigger?: {
|
|
19
|
+
date: Date;
|
|
20
|
+
timestamp: number;
|
|
21
|
+
mode?: 'monthStart' | 'date';
|
|
22
|
+
};
|
|
23
|
+
/** Колбэк для очистки scrollTrigger после скролла */
|
|
24
|
+
onScrollComplete?: () => void;
|
|
25
|
+
/** Тестовые идентификаторы */
|
|
26
|
+
testIds?: {
|
|
27
|
+
/** data-testid для кнопки скролла влево */
|
|
28
|
+
scrollLeftButton?: string;
|
|
29
|
+
/** data-testid для кнопки скролла вправо */
|
|
30
|
+
scrollRightButton?: string;
|
|
31
|
+
/** data-testid для контейнера календаря */
|
|
32
|
+
calendarStrip?: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export declare const CalendarStrip: React.FC<CalendarStripProps>;
|
|
36
|
+
export default CalendarStrip;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ScheduleHeaderProps {
|
|
3
|
+
/** Текущая выбранная дата */
|
|
4
|
+
anchorDate?: Date;
|
|
5
|
+
/** Колбэк при выборе месяца в дропдауне */
|
|
6
|
+
onChange?: (date: Date) => void;
|
|
7
|
+
/** Колбэк для обновления месяцев (опционально, для синхронизации с CalendarStrip) */
|
|
8
|
+
onMonthsChange?: (months: Array<{
|
|
9
|
+
year: number;
|
|
10
|
+
month: number;
|
|
11
|
+
}>) => void;
|
|
12
|
+
/** Массив месяцев для отображения текущего выбранного месяца (опционально) */
|
|
13
|
+
months?: Array<{
|
|
14
|
+
year: number;
|
|
15
|
+
month: number;
|
|
16
|
+
}>;
|
|
17
|
+
/** CSS класс */
|
|
18
|
+
className?: string;
|
|
19
|
+
/** Тестовые идентификаторы */
|
|
20
|
+
testIds?: {
|
|
21
|
+
/** data-testid для селектора периодов (триггер) */
|
|
22
|
+
periodSelector?: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export declare const ScheduleHeader: React.FC<ScheduleHeaderProps>;
|
|
26
|
+
export default ScheduleHeader;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface ScheduleStripConfig {
|
|
2
|
+
/** Сколько дней слева от центра показывать (deprecated, используй months) */
|
|
3
|
+
daysLeft?: number;
|
|
4
|
+
/** Сколько дней справа от центра показывать (deprecated, используй months) */
|
|
5
|
+
daysRight?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface UseScheduleCalendarParams {
|
|
8
|
+
/** Выбранная дата (управляемая) */
|
|
9
|
+
value?: Date;
|
|
10
|
+
/** Дефолтная дата (неуправляемая) */
|
|
11
|
+
defaultValue?: Date;
|
|
12
|
+
/** Список месяцев для отображения всех дат (если не передан - текущий месяц) */
|
|
13
|
+
months?: Array<{
|
|
14
|
+
year: number;
|
|
15
|
+
month: number;
|
|
16
|
+
}>;
|
|
17
|
+
/** Колбэк изменения даты */
|
|
18
|
+
onChange?: (date: Date) => void;
|
|
19
|
+
/** Конфиг размеров окна (deprecated) */
|
|
20
|
+
config?: ScheduleStripConfig;
|
|
21
|
+
}
|
|
22
|
+
export interface UseScheduleCalendarResult {
|
|
23
|
+
selectedDate: Date;
|
|
24
|
+
days: Date[];
|
|
25
|
+
setSelectedDate: (date: Date) => void;
|
|
26
|
+
}
|
|
27
|
+
export declare function useScheduleCalendar({ value, defaultValue, months: monthsProp, onChange, }: UseScheduleCalendarParams): UseScheduleCalendarResult;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface UseScheduleSyncParams {
|
|
2
|
+
/** Управляемое значение выбранной даты */
|
|
3
|
+
value?: Date;
|
|
4
|
+
/** Дефолтная дата (неуправляемая) */
|
|
5
|
+
defaultValue?: Date;
|
|
6
|
+
/** Колбэк изменения даты */
|
|
7
|
+
onChange?: (date: Date) => void;
|
|
8
|
+
}
|
|
9
|
+
export interface UseScheduleSyncResult {
|
|
10
|
+
/** Текущая выбранная дата */
|
|
11
|
+
selectedDate: Date;
|
|
12
|
+
/** Массив месяцев для отображения в календаре */
|
|
13
|
+
months: Array<{
|
|
14
|
+
year: number;
|
|
15
|
+
month: number;
|
|
16
|
+
}>;
|
|
17
|
+
/** Обработчик изменения даты из CalendarStrip */
|
|
18
|
+
handleDateChange: (date: Date) => void;
|
|
19
|
+
/** Обработчик изменения месяцев из ScheduleHeader */
|
|
20
|
+
handleMonthsChange: (months: Array<{
|
|
21
|
+
year: number;
|
|
22
|
+
month: number;
|
|
23
|
+
}>) => void;
|
|
24
|
+
/** Триггер для скролла к первому числу месяца (для CalendarStrip) */
|
|
25
|
+
scrollTrigger?: {
|
|
26
|
+
date: Date;
|
|
27
|
+
timestamp: number;
|
|
28
|
+
mode?: 'monthStart' | 'date';
|
|
29
|
+
};
|
|
30
|
+
/** Колбэк для очистки scrollTrigger */
|
|
31
|
+
clearScrollTrigger: () => void;
|
|
32
|
+
/** Колбэк для возврата к сегодняшней дате и дефолтному состоянию */
|
|
33
|
+
resetToToday: () => void;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Хук для синхронизации ScheduleHeader и CalendarStrip
|
|
37
|
+
* Управляет всей логикой выбора даты и месяцев
|
|
38
|
+
*/
|
|
39
|
+
export declare function useScheduleSync({ value, defaultValue, onChange, }?: UseScheduleSyncParams): UseScheduleSyncResult;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Утилиты для работы с датами в календаре
|
|
3
|
+
*/
|
|
4
|
+
export declare function formatWeekdayShort(date: Date): string;
|
|
5
|
+
export declare function startOfDay(date: Date): Date;
|
|
6
|
+
export declare function formatMonthLong(date: Date): string;
|
|
7
|
+
export declare function formatMonthGenitive(date: Date): string;
|
|
8
|
+
export declare function parseDateString(dateString: string): Date;
|
|
9
|
+
export declare function getThreeMonthsAround(date: Date): Array<{
|
|
10
|
+
year: number;
|
|
11
|
+
month: number;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
3
|
+
declare function ScrollArea({ className, children, viewPortClassName, relative, asChild, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root> & {
|
|
4
|
+
viewPortClassName?: string;
|
|
5
|
+
relative?: boolean;
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { ScrollArea, ScrollBar };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IconName } from '../icon';
|
|
3
|
+
type SegmentsSize = 'default' | 'lg';
|
|
4
|
+
interface SegmentItemProps extends React.ComponentPropsWithoutRef<'button'> {
|
|
5
|
+
/** Иконка */
|
|
6
|
+
icon?: IconName | React.ReactNode;
|
|
7
|
+
/** Позиция иконки */
|
|
8
|
+
iconPosition?: 'start' | 'end';
|
|
9
|
+
/** Размер элемента */
|
|
10
|
+
size?: SegmentsSize;
|
|
11
|
+
/** Значение сегмента */
|
|
12
|
+
value: string;
|
|
13
|
+
/** Тест-ид */
|
|
14
|
+
'data-testid'?: string;
|
|
15
|
+
}
|
|
16
|
+
interface SingleSegmentProps extends Omit<SegmentItemProps, 'value'> {
|
|
17
|
+
/** Одиночный сегмент (не в группе) */
|
|
18
|
+
single?: true;
|
|
19
|
+
/** Клик по сегменту */
|
|
20
|
+
onClick?: () => void;
|
|
21
|
+
/** Размер элемента */
|
|
22
|
+
size?: SegmentsSize;
|
|
23
|
+
/** Заблокированное состояние */
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/** Активное состояние */
|
|
26
|
+
active?: boolean;
|
|
27
|
+
/** Тест-ид */
|
|
28
|
+
'data-testid'?: string;
|
|
29
|
+
}
|
|
30
|
+
interface SegmentsProps {
|
|
31
|
+
/** Размер компонента */
|
|
32
|
+
size?: SegmentsSize;
|
|
33
|
+
className?: string;
|
|
34
|
+
value?: string;
|
|
35
|
+
defaultValue?: string;
|
|
36
|
+
onValueChange?: (value: string) => void;
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
/** Тест-ид */
|
|
39
|
+
'data-testid'?: string;
|
|
40
|
+
}
|
|
41
|
+
declare const SegmentItem: React.ForwardRefExoticComponent<SegmentItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
42
|
+
declare const Segments: React.ForwardRefExoticComponent<SegmentsProps & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
declare const SingleSegment: React.ForwardRefExoticComponent<SingleSegmentProps & React.RefAttributes<HTMLButtonElement>>;
|
|
44
|
+
export { SegmentItem, Segments, type SegmentsSize, SingleSegment };
|