@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,74 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type ComboboxPrimitiveSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
3
|
+
export interface ComboboxPrimitiveItem<T = any> {
|
|
4
|
+
value: T;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ComboboxPrimitiveProps<T extends object> {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
onChange?: (option: T | null) => void;
|
|
10
|
+
onSearch?: (value: string) => void;
|
|
11
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
12
|
+
/** Контролируемое значение поля поиска */
|
|
13
|
+
inputValue?: string;
|
|
14
|
+
/** Поведение при выборе: держать меню открытым */
|
|
15
|
+
keepOpenOnSelect?: boolean;
|
|
16
|
+
/** Что делать со значением input при выборе элемента */
|
|
17
|
+
inputValueOnSelect?: 'selectedLabel' | 'clear' | 'preserve';
|
|
18
|
+
/** Что делать со значением input при закрытии меню */
|
|
19
|
+
inputValueOnClose?: 'selectedLabel' | 'clear' | 'preserve';
|
|
20
|
+
/** Кастомная проверка выбранности (для мультиселекта) */
|
|
21
|
+
isItemSelected?: (option: T) => boolean;
|
|
22
|
+
/** Есть ли выбранные значения (для отображения кнопки очистки) */
|
|
23
|
+
hasSelection?: boolean;
|
|
24
|
+
classNames?: {
|
|
25
|
+
scrollArea?: string;
|
|
26
|
+
scrollAreaViewport?: string;
|
|
27
|
+
menu?: string;
|
|
28
|
+
};
|
|
29
|
+
/** Размер селекта поиска */
|
|
30
|
+
size?: ComboboxPrimitiveSize;
|
|
31
|
+
/** Растягивать ли селект на всю ширину */
|
|
32
|
+
fullWidth?: boolean;
|
|
33
|
+
/** Прозрачный фон */
|
|
34
|
+
transparent?: boolean;
|
|
35
|
+
/** Лейбл */
|
|
36
|
+
label?: string;
|
|
37
|
+
/** Ошибка */
|
|
38
|
+
error?: string;
|
|
39
|
+
/** Подпись */
|
|
40
|
+
caption?: string;
|
|
41
|
+
/** Плейсхолдер для поиска */
|
|
42
|
+
placeholder?: string;
|
|
43
|
+
/** Отключен ли селект */
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
/** Тест-ид */
|
|
46
|
+
'data-testid'?: string;
|
|
47
|
+
/** Значение */
|
|
48
|
+
value?: T | null | undefined;
|
|
49
|
+
getLabel?: (value: T) => string;
|
|
50
|
+
loading?: boolean;
|
|
51
|
+
isOpen?: boolean;
|
|
52
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
53
|
+
showErrorMessage?: boolean;
|
|
54
|
+
clearable?: boolean;
|
|
55
|
+
onClear?: () => void;
|
|
56
|
+
}
|
|
57
|
+
export interface ListProps {
|
|
58
|
+
children: React.ReactNode;
|
|
59
|
+
className?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface ItemProps<T = unknown> {
|
|
62
|
+
option: T;
|
|
63
|
+
children: React.ReactNode | ((props: ItemRenderProps) => React.ReactNode);
|
|
64
|
+
className?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface ItemRenderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
67
|
+
isSelected: boolean;
|
|
68
|
+
className?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface ItemViewProps {
|
|
71
|
+
children: React.ReactNode | ((props: ItemRenderProps) => React.ReactNode);
|
|
72
|
+
isSelected: boolean;
|
|
73
|
+
className?: string;
|
|
74
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComboboxPrimitiveSize } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Генерирует CSS классы для элементов списка
|
|
4
|
+
*/
|
|
5
|
+
export declare function getItemClasses(isSelected: boolean, className?: string): string;
|
|
6
|
+
/**
|
|
7
|
+
* Генерирует CSS классы для input элемента
|
|
8
|
+
*/
|
|
9
|
+
export declare function getInputClasses(size: ComboboxPrimitiveSize, fullWidth: boolean, disabled: boolean): string;
|
|
10
|
+
/**
|
|
11
|
+
* Генерирует CSS классы для контейнера
|
|
12
|
+
*/
|
|
13
|
+
export declare function getContainerClasses(size: ComboboxPrimitiveSize, fullWidth: boolean, transparent: boolean, disabled: boolean, hasError: boolean): string;
|
|
14
|
+
/**
|
|
15
|
+
* Генерирует CSS классы для лейбла
|
|
16
|
+
*/
|
|
17
|
+
export declare function getLabelClasses(size: ComboboxPrimitiveSize): string;
|
|
18
|
+
/**
|
|
19
|
+
* Генерирует CSS классы для floating меню
|
|
20
|
+
*/
|
|
21
|
+
export declare function getFloatingMenuClasses(isMounted: boolean, hasItems: boolean): string;
|
|
22
|
+
/**
|
|
23
|
+
* Определяет есть ли ошибка
|
|
24
|
+
*/
|
|
25
|
+
export declare function hasError(error?: string): boolean;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ButtonSize } from './button';
|
|
3
|
+
export type ComboboxSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
4
|
+
export interface ComboboxOption {
|
|
5
|
+
value: string | number;
|
|
6
|
+
label?: React.ReactNode | string;
|
|
7
|
+
}
|
|
8
|
+
export interface ComboboxProps {
|
|
9
|
+
/** Элементы списка */
|
|
10
|
+
options: ComboboxOption[];
|
|
11
|
+
/** Текущее значение */
|
|
12
|
+
value: string | number | null;
|
|
13
|
+
/** Сallback при выборе */
|
|
14
|
+
onChange: (value: string | number) => void;
|
|
15
|
+
/** Размер (как в старом Select) */
|
|
16
|
+
size?: ComboboxSize;
|
|
17
|
+
/** Лейбл над полем */
|
|
18
|
+
label?: string;
|
|
19
|
+
/** Плейсхолдер в поиске */
|
|
20
|
+
searchPlaceholder?: string;
|
|
21
|
+
/** Ошибка */
|
|
22
|
+
error?: string;
|
|
23
|
+
/** Фулл-ширина */
|
|
24
|
+
fullWidth?: boolean;
|
|
25
|
+
/** disabled */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/** размер кнопки */
|
|
28
|
+
sizeButton?: ButtonSize;
|
|
29
|
+
iconSize?: number;
|
|
30
|
+
placeholder?: string;
|
|
31
|
+
dropDownClassName?: string;
|
|
32
|
+
notFoundText?: string;
|
|
33
|
+
}
|
|
34
|
+
export declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
5
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
6
|
+
} & {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
9
|
+
label?: string;
|
|
10
|
+
shouldFilter?: boolean;
|
|
11
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
value?: string;
|
|
14
|
+
onValueChange?: (value: string) => void;
|
|
15
|
+
loop?: boolean;
|
|
16
|
+
disablePointerSelection?: boolean;
|
|
17
|
+
vimBindings?: boolean;
|
|
18
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
20
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
21
|
+
} & {
|
|
22
|
+
asChild?: boolean;
|
|
23
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "onChange" | "value"> & {
|
|
24
|
+
value?: string;
|
|
25
|
+
onValueChange?: (search: string) => void;
|
|
26
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
27
|
+
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
30
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
31
|
+
} & {
|
|
32
|
+
asChild?: boolean;
|
|
33
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
34
|
+
label?: string;
|
|
35
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
39
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
40
|
+
} & {
|
|
41
|
+
asChild?: boolean;
|
|
42
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
44
|
+
children?: React.ReactNode;
|
|
45
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
46
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
47
|
+
} & {
|
|
48
|
+
asChild?: boolean;
|
|
49
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
|
|
50
|
+
heading?: React.ReactNode;
|
|
51
|
+
value?: string;
|
|
52
|
+
forceMount?: boolean;
|
|
53
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
54
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
55
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
56
|
+
} & {
|
|
57
|
+
asChild?: boolean;
|
|
58
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
59
|
+
alwaysRender?: boolean;
|
|
60
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
61
|
+
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
62
|
+
children?: React.ReactNode;
|
|
63
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
64
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
65
|
+
} & {
|
|
66
|
+
asChild?: boolean;
|
|
67
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
onSelect?: (value: string) => void;
|
|
70
|
+
value?: string;
|
|
71
|
+
keywords?: string[];
|
|
72
|
+
forceMount?: boolean;
|
|
73
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
74
|
+
declare function CommandShortcut({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
75
|
+
declare namespace CommandShortcut {
|
|
76
|
+
var displayName: string;
|
|
77
|
+
}
|
|
78
|
+
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, };
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { EmblaCarouselType, EmblaOptionsType } from 'embla-carousel';
|
|
3
|
+
import { default as useEmblaCarousel } from 'embla-carousel-react';
|
|
4
|
+
export interface IndicatorOptions {
|
|
5
|
+
show: boolean;
|
|
6
|
+
position: 'inside' | 'outside';
|
|
7
|
+
align: 'start' | 'center' | 'end' | 'stretch';
|
|
8
|
+
className?: string;
|
|
9
|
+
activeClassName: string;
|
|
10
|
+
inactiveClassName: string;
|
|
11
|
+
}
|
|
12
|
+
export interface UseCarouselOptions extends EmblaOptionsType {
|
|
13
|
+
defaultActive?: number;
|
|
14
|
+
indicators?: Partial<IndicatorOptions>;
|
|
15
|
+
}
|
|
16
|
+
export interface UseCarouselState {
|
|
17
|
+
active: number;
|
|
18
|
+
emblaRef: ReturnType<typeof useEmblaCarousel>[0];
|
|
19
|
+
embla: EmblaCarouselType | undefined;
|
|
20
|
+
indicatorOptions: IndicatorOptions;
|
|
21
|
+
next: () => void;
|
|
22
|
+
prev: () => void;
|
|
23
|
+
scrollTo: (index: number) => void;
|
|
24
|
+
onChange: (index: number) => void;
|
|
25
|
+
canScrollNext: boolean;
|
|
26
|
+
canScrollPrev: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare function useCarousel(options?: UseCarouselOptions): UseCarouselState;
|
|
29
|
+
export declare function useCarouselContext(): UseCarouselState;
|
|
30
|
+
interface CarouselProps {
|
|
31
|
+
children: React.ReactNode;
|
|
32
|
+
className?: string;
|
|
33
|
+
options?: UseCarouselOptions;
|
|
34
|
+
}
|
|
35
|
+
declare function CarouselRoot({ children, className, options }: CarouselProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
interface CarouselItemsProps {
|
|
37
|
+
items: React.ReactNode[];
|
|
38
|
+
className?: string;
|
|
39
|
+
slideClassName?: string;
|
|
40
|
+
}
|
|
41
|
+
declare function CarouselItems({ items, className, slideClassName }: CarouselItemsProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export interface CarouselContentProps {
|
|
43
|
+
items: Array<{
|
|
44
|
+
title?: React.ReactNode;
|
|
45
|
+
text?: React.ReactNode;
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
}>;
|
|
48
|
+
className?: string;
|
|
49
|
+
titleClassName?: string;
|
|
50
|
+
textClassName?: string;
|
|
51
|
+
}
|
|
52
|
+
declare function CarouselContent({ items, className, titleClassName, textClassName, }: CarouselContentProps): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export interface CarouselContentViewProps {
|
|
54
|
+
item: {
|
|
55
|
+
title?: React.ReactNode;
|
|
56
|
+
text?: React.ReactNode;
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
};
|
|
59
|
+
className?: string;
|
|
60
|
+
titleClassName?: string;
|
|
61
|
+
textClassName?: string;
|
|
62
|
+
}
|
|
63
|
+
export declare function CarouselContentView({ item, className, titleClassName, textClassName, }: CarouselContentViewProps): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
export interface CarouselButtonsProps {
|
|
65
|
+
prevButton?: React.ReactNode | ((props: {
|
|
66
|
+
onClick: () => void;
|
|
67
|
+
disabled: boolean;
|
|
68
|
+
}) => React.ReactNode);
|
|
69
|
+
nextButton?: React.ReactNode | ((props: {
|
|
70
|
+
onClick: () => void;
|
|
71
|
+
disabled: boolean;
|
|
72
|
+
}) => React.ReactNode);
|
|
73
|
+
className?: string;
|
|
74
|
+
buttonsPosition?: 'inside' | 'outside';
|
|
75
|
+
buttonsAlign?: 'start' | 'center' | 'end' | 'sides';
|
|
76
|
+
showOnlyOnHover?: boolean;
|
|
77
|
+
hideDisabled?: boolean;
|
|
78
|
+
}
|
|
79
|
+
declare function CarouselButtons({ prevButton, nextButton, className, buttonsPosition, buttonsAlign, showOnlyOnHover, hideDisabled, }: CarouselButtonsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
80
|
+
export interface CarouselButtonsViewProps {
|
|
81
|
+
onPrev: () => void;
|
|
82
|
+
onNext: () => void;
|
|
83
|
+
canScrollPrev: boolean;
|
|
84
|
+
canScrollNext: boolean;
|
|
85
|
+
prevButton?: React.ReactNode | ((props: {
|
|
86
|
+
onClick: () => void;
|
|
87
|
+
disabled: boolean;
|
|
88
|
+
}) => React.ReactNode);
|
|
89
|
+
nextButton?: React.ReactNode | ((props: {
|
|
90
|
+
onClick: () => void;
|
|
91
|
+
disabled: boolean;
|
|
92
|
+
}) => React.ReactNode);
|
|
93
|
+
className?: string;
|
|
94
|
+
buttonsPosition?: 'inside' | 'outside';
|
|
95
|
+
buttonsAlign?: 'start' | 'center' | 'end' | 'sides';
|
|
96
|
+
showOnlyOnHover?: boolean;
|
|
97
|
+
hideDisabled?: boolean;
|
|
98
|
+
}
|
|
99
|
+
export declare function CarouselButtonsView({ onPrev, onNext, canScrollPrev, canScrollNext, prevButton, nextButton, className, buttonsPosition, buttonsAlign, showOnlyOnHover, hideDisabled, }: CarouselButtonsViewProps): import("react/jsx-runtime").JSX.Element | null;
|
|
100
|
+
export interface CarouselDotsViewProps {
|
|
101
|
+
active: number;
|
|
102
|
+
count: number;
|
|
103
|
+
onChange: (index: number) => void;
|
|
104
|
+
show?: boolean;
|
|
105
|
+
position?: 'inside' | 'outside';
|
|
106
|
+
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
107
|
+
className?: string;
|
|
108
|
+
activeClassName?: string;
|
|
109
|
+
inactiveClassName?: string;
|
|
110
|
+
}
|
|
111
|
+
export declare function CarouselDotsView({ active, count, onChange, show, position, align, className, activeClassName, inactiveClassName, }: CarouselDotsViewProps): import("react/jsx-runtime").JSX.Element | null;
|
|
112
|
+
interface CarouselDotsProps {
|
|
113
|
+
className?: string;
|
|
114
|
+
count?: number;
|
|
115
|
+
}
|
|
116
|
+
declare function CarouselDots({ className, count }: CarouselDotsProps): import("react/jsx-runtime").JSX.Element;
|
|
117
|
+
export declare const Carousel: {
|
|
118
|
+
Root: typeof CarouselRoot;
|
|
119
|
+
Items: typeof CarouselItems;
|
|
120
|
+
Dots: typeof CarouselDots;
|
|
121
|
+
DotsView: typeof CarouselDotsView;
|
|
122
|
+
Content: typeof CarouselContent;
|
|
123
|
+
ContentView: typeof CarouselContentView;
|
|
124
|
+
Buttons: typeof CarouselButtons;
|
|
125
|
+
ButtonsView: typeof CarouselButtonsView;
|
|
126
|
+
};
|
|
127
|
+
export interface DefaultHeadlessCarouselProps<T> extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
128
|
+
items: T[];
|
|
129
|
+
renderSlide: (item: T, index: number) => React.ReactNode;
|
|
130
|
+
options?: UseCarouselOptions;
|
|
131
|
+
slideClassName?: string;
|
|
132
|
+
prevButton?: React.ReactNode;
|
|
133
|
+
nextButton?: React.ReactNode;
|
|
134
|
+
buttonsPosition?: 'inside' | 'outside';
|
|
135
|
+
buttonsAlign?: 'start' | 'center' | 'end' | 'sides';
|
|
136
|
+
showButtonsOnlyOnHover?: boolean;
|
|
137
|
+
hideDisabledButtons?: boolean;
|
|
138
|
+
}
|
|
139
|
+
export declare function DefaultCustomizableCarousel<T>({ items, renderSlide, options, className, slideClassName, prevButton, nextButton, buttonsPosition, buttonsAlign, showButtonsOnlyOnHover, hideDisabledButtons, ...divProps }: DefaultHeadlessCarouselProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
140
|
+
interface HeadlessCarouselProps<T> {
|
|
141
|
+
items: T[];
|
|
142
|
+
options?: UseCarouselOptions;
|
|
143
|
+
renderItems: (state: UseCarouselState, items: T[]) => React.ReactNode;
|
|
144
|
+
renderControls?: (state: UseCarouselState, items: T[]) => React.ReactNode;
|
|
145
|
+
className?: string;
|
|
146
|
+
}
|
|
147
|
+
export declare function HeadlessCarousel<T>({ items, options, renderItems, renderControls, className, }: HeadlessCarouselProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
148
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ButtonSize } from './button';
|
|
2
|
+
type DatePickerSize = Exclude<ButtonSize, 'sm'>;
|
|
3
|
+
interface CalendarDateAfter {
|
|
4
|
+
after: Date;
|
|
5
|
+
}
|
|
6
|
+
interface CalendarDateBefore {
|
|
7
|
+
before: Date;
|
|
8
|
+
}
|
|
9
|
+
interface CalendarDateInterval {
|
|
10
|
+
before: Date;
|
|
11
|
+
after: Date;
|
|
12
|
+
}
|
|
13
|
+
interface CalendarDateRange {
|
|
14
|
+
from: Date | undefined;
|
|
15
|
+
to?: Date | undefined;
|
|
16
|
+
}
|
|
17
|
+
interface CalendarDayOfWeek {
|
|
18
|
+
dayOfWeek: number[];
|
|
19
|
+
}
|
|
20
|
+
type CalendarDisabledMatcher = boolean | ((date: Date) => boolean) | Date | Date[] | CalendarDateRange | CalendarDateBefore | CalendarDateAfter | CalendarDateInterval | CalendarDayOfWeek;
|
|
21
|
+
export interface DatePickerProps {
|
|
22
|
+
date?: Date | undefined;
|
|
23
|
+
onSelect?: (date: Date | undefined) => void;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
placeholder?: string;
|
|
26
|
+
className?: string;
|
|
27
|
+
size?: DatePickerSize;
|
|
28
|
+
error?: string;
|
|
29
|
+
caption?: string;
|
|
30
|
+
label?: string;
|
|
31
|
+
showResetButton?: boolean;
|
|
32
|
+
onReset?: () => void;
|
|
33
|
+
disabledDays?: CalendarDisabledMatcher | CalendarDisabledMatcher[];
|
|
34
|
+
'data-testid'?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare function DatePicker({ date, onSelect, disabled, placeholder, className, size, error, caption, label, showResetButton, onReset, disabledDays, 'data-testid': dataTestId, }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const translations: {
|
|
2
|
+
ru: {
|
|
3
|
+
selectPeriod: string;
|
|
4
|
+
reset: string;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
};
|
|
7
|
+
en: {
|
|
8
|
+
selectPeriod: string;
|
|
9
|
+
reset: string;
|
|
10
|
+
placeholder: string;
|
|
11
|
+
};
|
|
12
|
+
uz: {
|
|
13
|
+
selectPeriod: string;
|
|
14
|
+
reset: string;
|
|
15
|
+
placeholder: string;
|
|
16
|
+
};
|
|
17
|
+
tg: {
|
|
18
|
+
selectPeriod: string;
|
|
19
|
+
reset: string;
|
|
20
|
+
placeholder: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DateRange } from 'react-day-picker';
|
|
3
|
+
import { ButtonSize } from './button';
|
|
4
|
+
type DateRangePickerSize = Exclude<ButtonSize, 'sm'>;
|
|
5
|
+
interface CalendarDateAfter {
|
|
6
|
+
after: Date;
|
|
7
|
+
}
|
|
8
|
+
interface CalendarDateBefore {
|
|
9
|
+
before: Date;
|
|
10
|
+
}
|
|
11
|
+
interface CalendarDateInterval {
|
|
12
|
+
before: Date;
|
|
13
|
+
after: Date;
|
|
14
|
+
}
|
|
15
|
+
interface CalendarDateRange {
|
|
16
|
+
from: Date | undefined;
|
|
17
|
+
to?: Date | undefined;
|
|
18
|
+
}
|
|
19
|
+
interface CalendarDayOfWeek {
|
|
20
|
+
dayOfWeek: number[];
|
|
21
|
+
}
|
|
22
|
+
type CalendarDisabledMatcher = boolean | ((date: Date) => boolean) | Date | Date[] | CalendarDateRange | CalendarDateBefore | CalendarDateAfter | CalendarDateInterval | CalendarDayOfWeek;
|
|
23
|
+
export interface DateRangeError {
|
|
24
|
+
from?: string;
|
|
25
|
+
to?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface DateRangePickerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'value' | 'onDateChange'> {
|
|
28
|
+
value?: DateRange;
|
|
29
|
+
size?: DateRangePickerSize;
|
|
30
|
+
onDateChange?: (date: DateRange | undefined) => void;
|
|
31
|
+
placeholder?: {
|
|
32
|
+
from?: string;
|
|
33
|
+
to?: string;
|
|
34
|
+
};
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
error?: string | DateRangeError;
|
|
37
|
+
caption?: string;
|
|
38
|
+
label?: string;
|
|
39
|
+
showResetButton?: boolean;
|
|
40
|
+
onReset?: () => void;
|
|
41
|
+
locale?: 'ru' | 'en' | 'uz' | 'tg';
|
|
42
|
+
'data-testid'?: string;
|
|
43
|
+
disabledDays?: CalendarDisabledMatcher | CalendarDisabledMatcher[];
|
|
44
|
+
}
|
|
45
|
+
export declare function DateRangePicker({ className, value, locale, onDateChange, placeholder, error, caption, label, size, disabled, showResetButton, onReset, disabledDays, 'data-testid': dataTestId, ...props }: DateRangePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DialogPrimitiveContainerProps } from '../dialog-primitive';
|
|
3
|
+
export type DialogStatusImage = 'document-approved' | 'document-sign' | 'documents-refresh' | 'status-error' | 'status-success' | 'status-warning' | 'user-add' | 'user-approved' | 'user-question' | 'wallet';
|
|
4
|
+
export type DialogBaseProps = React.PropsWithChildren<DialogPrimitiveContainerProps & {
|
|
5
|
+
trigger?: React.ReactNode;
|
|
6
|
+
visibleClose?: boolean;
|
|
7
|
+
visibleOverlay?: boolean;
|
|
8
|
+
diableOutsideClick?: boolean;
|
|
9
|
+
hideFooter?: boolean;
|
|
10
|
+
statusImage?: DialogStatusImage;
|
|
11
|
+
classNames?: {
|
|
12
|
+
container?: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
content?: string;
|
|
15
|
+
header?: string;
|
|
16
|
+
close?: string;
|
|
17
|
+
footer?: string;
|
|
18
|
+
overlay?: string;
|
|
19
|
+
};
|
|
20
|
+
baseZIndex?: number;
|
|
21
|
+
onOpenChange?: (open: boolean) => void;
|
|
22
|
+
}>;
|
|
23
|
+
export declare function DialogBase({ classNames, children, trigger, visibleClose, width: initialWidth, visibleOverlay, diableOutsideClick, disableAutoFocus, hideFooter, baseZIndex, statusImage, dataTestId, ...props }: DialogBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare namespace DialogBase {
|
|
25
|
+
var displayName: string;
|
|
26
|
+
var Trigger: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
27
|
+
var Close: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
28
|
+
dataTestId?: string;
|
|
29
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
30
|
+
var Footer: (props: {
|
|
31
|
+
children: React.ReactNode;
|
|
32
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
var Content: (props: {
|
|
34
|
+
children: React.ReactNode;
|
|
35
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
var Title: (props: {
|
|
37
|
+
children: React.ReactNode;
|
|
38
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
var Overlay: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
40
|
+
var Portal: React.FC<import("@radix-ui/react-dialog").DialogPortalProps>;
|
|
41
|
+
var Dialog: React.FC<import("@radix-ui/react-dialog").DialogProps>;
|
|
42
|
+
var Container: React.ForwardRefExoticComponent<DialogPrimitiveContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
var Header: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
44
|
+
shadow?: "bottom" | "none";
|
|
45
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DialogPrimitiveWidth } from '../dialog-primitive';
|
|
3
|
+
import { DialogStatusImage } from './dialog-base';
|
|
4
|
+
interface UseDialogBaseProps {
|
|
5
|
+
isVisibleClose: boolean;
|
|
6
|
+
width: DialogPrimitiveWidth;
|
|
7
|
+
hideFooter: boolean;
|
|
8
|
+
baseZIndex: number;
|
|
9
|
+
statusImage?: DialogStatusImage;
|
|
10
|
+
}
|
|
11
|
+
export interface BaseDialogContextValue {
|
|
12
|
+
contentElement: React.ElementRef<'div'> | null;
|
|
13
|
+
shadowFooter: 'top' | 'none';
|
|
14
|
+
shadowHeader: 'bottom' | 'none';
|
|
15
|
+
hasOverflow: boolean;
|
|
16
|
+
scrollStart: boolean;
|
|
17
|
+
isHideFooter: boolean;
|
|
18
|
+
isHideTitle: boolean;
|
|
19
|
+
isVisibleClose: boolean;
|
|
20
|
+
width: DialogPrimitiveWidth;
|
|
21
|
+
statusImage?: DialogStatusImage;
|
|
22
|
+
hideFooter: (hide: boolean) => void;
|
|
23
|
+
hideTitle: (hide: boolean) => void;
|
|
24
|
+
visibleClose: (visible: boolean) => void;
|
|
25
|
+
setContentElement: (element: React.ElementRef<'div'> | null) => void;
|
|
26
|
+
setWidth: (width: DialogPrimitiveWidth) => void;
|
|
27
|
+
baseZIndex: number;
|
|
28
|
+
overlayZIndex: number;
|
|
29
|
+
containerZIndex: number;
|
|
30
|
+
nextBaseZIndex: number;
|
|
31
|
+
}
|
|
32
|
+
export declare const BaseDialogContext: React.Context<BaseDialogContextValue | null>;
|
|
33
|
+
export interface BaseDialogProviderProps {
|
|
34
|
+
children: React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
export declare function useDialogBaseCtx(): BaseDialogContextValue;
|
|
37
|
+
export declare function useDialogBase(props: UseDialogBaseProps): BaseDialogContextValue;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
|
+
export type DialogPrimitiveWidth = 'sm' | 'md' | 'lg' | 'full';
|
|
4
|
+
export type DialogPrimitivePadding = 'none' | 'md';
|
|
5
|
+
export interface DialogPrimitiveContainerProps {
|
|
6
|
+
open?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
width?: DialogPrimitiveWidth;
|
|
10
|
+
padding?: DialogPrimitivePadding;
|
|
11
|
+
overflow?: boolean;
|
|
12
|
+
disableAutoFocus?: boolean;
|
|
13
|
+
disableOutsideClick?: boolean;
|
|
14
|
+
onOpenChange?: (open: boolean) => void;
|
|
15
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
16
|
+
onInteractOutside?: (event: Event) => void;
|
|
17
|
+
dataTestId?: string;
|
|
18
|
+
style?: React.CSSProperties;
|
|
19
|
+
}
|
|
20
|
+
declare const Dialog: React.FC<RadixDialog.DialogProps>;
|
|
21
|
+
declare const Portal: React.FC<RadixDialog.DialogPortalProps>;
|
|
22
|
+
declare const Trigger: React.ForwardRefExoticComponent<Omit<RadixDialog.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
declare const Overlay: React.ForwardRefExoticComponent<Omit<RadixDialog.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const Container: React.ForwardRefExoticComponent<DialogPrimitiveContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
declare const Content: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
26
|
+
dataTestId?: string;
|
|
27
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
declare const Title: React.ForwardRefExoticComponent<Omit<import('../../typography').TypographyProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
29
|
+
dataTestId?: string;
|
|
30
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
declare const Footer: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
32
|
+
shadow?: "top" | "none";
|
|
33
|
+
dataTestId?: string;
|
|
34
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
declare const Close: React.ForwardRefExoticComponent<Omit<RadixDialog.DialogCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
36
|
+
dataTestId?: string;
|
|
37
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
38
|
+
export { Close, Container, Content, Dialog, Footer, Overlay, Portal, Title, Trigger, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const shadowVariants: (props?: ({
|
|
2
|
+
top?: boolean | null | undefined;
|
|
3
|
+
bottom?: boolean | null | undefined;
|
|
4
|
+
none?: boolean | null | undefined;
|
|
5
|
+
all?: boolean | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|