@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.
Files changed (264) hide show
  1. package/README.md +116 -0
  2. package/assets/alfa-BqdpLXjE.png +0 -0
  3. package/assets/doc-CA2MQk3m.webp +0 -0
  4. package/assets/document-approved-CkP0p152.webp +0 -0
  5. package/assets/document-sign-DtWnrhUb.webp +0 -0
  6. package/assets/documents-refresh-Ct8s1Pc3.webp +0 -0
  7. package/assets/download-D4NtsTXF.webp +0 -0
  8. package/assets/empty-box-ByMlwLaV.png +0 -0
  9. package/assets/headphones-b1FlU-5n.webp +0 -0
  10. package/assets/magnifying-glass-DnHnztsH.webp +0 -0
  11. package/assets/mandarin-O1JQvcin.png +0 -0
  12. package/assets/person-Dnyaeaax.webp +0 -0
  13. package/assets/plus-XlrU9iHE.webp +0 -0
  14. package/assets/pocket-DumMTe-y.webp +0 -0
  15. package/assets/status-error-CVSJeY0m.webp +0 -0
  16. package/assets/status-success-CQUzL9Lb.webp +0 -0
  17. package/assets/status-warning-qsHG0-rO.webp +0 -0
  18. package/assets/tbank-DHDEULnP.png +0 -0
  19. package/assets/torn-paper-Bxt8F9jg.webp +0 -0
  20. package/assets/user-add-BchFss_X.webp +0 -0
  21. package/assets/user-approved-BKiSeYH5.webp +0 -0
  22. package/assets/user-question-BrqYjUap.webp +0 -0
  23. package/assets/wallet-B1cH4oVg.webp +0 -0
  24. package/chunks/account-balance-icon-CKxx1j3X.js +17 -0
  25. package/chunks/add-circle-icon-D3XpY2oT.js +17 -0
  26. package/chunks/add-icon-CZXR66VL.js +17 -0
  27. package/chunks/android-icon-6SCGu50U.js +17 -0
  28. package/chunks/apple-icon-yya6O1xg.js +17 -0
  29. package/chunks/arrow-back-icon-C_VwBDNK.js +17 -0
  30. package/chunks/arrow-back-ios-icon-CB5K_mmJ.js +17 -0
  31. package/chunks/arrow-down-icon-DFvg75P7.js +17 -0
  32. package/chunks/arrow-forward-icon-BI4dm_L2.js +17 -0
  33. package/chunks/arrow-left-icon-8yWT42A8.js +17 -0
  34. package/chunks/arrow-right-icon-Bnx7GHux.js +17 -0
  35. package/chunks/arrow-up-icon-DU7VVzN8.js +17 -0
  36. package/chunks/attach-file-icon-OrT7tthI.js +17 -0
  37. package/chunks/autorenew-icon-B0bI6Xt-.js +17 -0
  38. package/chunks/bell-icon-L-Ynt5XK.js +17 -0
  39. package/chunks/bill-error-icon-q8_KROAY.js +17 -0
  40. package/chunks/bill-icon-Cw2GE_VB.js +17 -0
  41. package/chunks/bill-in-progress-icon-BTsO5Mh5.js +17 -0
  42. package/chunks/bill-warning-icon-3Y-dONd_.js +17 -0
  43. package/chunks/bills-error-icon-CcDGUJrx.js +17 -0
  44. package/chunks/bills-icon-BU_adAs0.js +17 -0
  45. package/chunks/bills-in-progress-icon-RVEtPz7l.js +17 -0
  46. package/chunks/bills-warning-icon-CNgWvumi.js +17 -0
  47. package/chunks/block-icon-DGlp9c33.js +17 -0
  48. package/chunks/bolt-fill-icon-DZjyKq8N.js +17 -0
  49. package/chunks/bolt-icon-CJsvLlL-.js +17 -0
  50. package/chunks/book-icon-BdaCKIQB.js +17 -0
  51. package/chunks/business-center-icon-C5X-e-6I.js +17 -0
  52. package/chunks/calendar-icon-B1cogiSd.js +17 -0
  53. package/chunks/call-icon-DslHaQOP.js +17 -0
  54. package/chunks/cancel-fill-DPYenlCk.js +17 -0
  55. package/chunks/check-circle-fill-ne1MhahL.js +17 -0
  56. package/chunks/check-circle-icon-BWhJprgU.js +17 -0
  57. package/chunks/close-icon-CtbXesC0.js +17 -0
  58. package/chunks/cookie-DJ-U7h-A.js +17 -0
  59. package/chunks/copy-icon-BWyncDVB.js +17 -0
  60. package/chunks/credit-card-icon-DS1ckDU7.js +17 -0
  61. package/chunks/delete-icon-Bk1ZmhBo.js +17 -0
  62. package/chunks/document-icon-DcmQhRhY.js +17 -0
  63. package/chunks/done-icon-BZEAL7mI.js +17 -0
  64. package/chunks/dont-disturb-o1xt1TeU.js +17 -0
  65. package/chunks/download-icon-BvWPcT7W.js +17 -0
  66. package/chunks/edit-icon-_3venQRC.js +17 -0
  67. package/chunks/error-fill-icon--8j3Zcfq.js +17 -0
  68. package/chunks/error-icon-CgJ3zr06.js +17 -0
  69. package/chunks/file-error-icon-630wBy1K.js +17 -0
  70. package/chunks/file-success-icon-BTk5SYAM.js +17 -0
  71. package/chunks/filter-icon-D_3_SQsN.js +17 -0
  72. package/chunks/flag-icon-DmWEp4ya.js +17 -0
  73. package/chunks/full-screen-exit-icon-BHwq-9P-.js +17 -0
  74. package/chunks/full-screen-icon-Dpl__xtk.js +17 -0
  75. package/chunks/group-icon-BfSRHuvp.js +17 -0
  76. package/chunks/help-icon-BMdlItds.js +17 -0
  77. package/chunks/home-icon-Mag5Wxqq.js +17 -0
  78. package/chunks/info-fill-icon-BzE09Xg8.js +17 -0
  79. package/chunks/info-icon-BcUNe5kE.js +17 -0
  80. package/chunks/inventory-icon-CFV8amBs.js +17 -0
  81. package/chunks/link-icon-BUAymb0P.js +17 -0
  82. package/chunks/list-icon-ChePCGxK.js +17 -0
  83. package/chunks/location-icon-Bf9Wbg65.js +17 -0
  84. package/chunks/logout-icon-DN86wp7N.js +17 -0
  85. package/chunks/mail-icon-DCZPsZFE.js +17 -0
  86. package/chunks/manage-accounts-icon-BkyuUTj3.js +17 -0
  87. package/chunks/max-icon-CTdBEAt8.js +17 -0
  88. package/chunks/menu-icon-DWObHD95.js +17 -0
  89. package/chunks/more-horiz-icon-CSK7Ackl.js +17 -0
  90. package/chunks/more-vert-icon-NA1tYTse.js +17 -0
  91. package/chunks/north-east-icon-Dh7-1BBW.js +17 -0
  92. package/chunks/open-in-full-icon-DzhRd5Mx.js +17 -0
  93. package/chunks/open-in-new-icon-A7MgnnyP.js +17 -0
  94. package/chunks/outgoing-main-icon-BAH2vddG.js +17 -0
  95. package/chunks/page-info-icon-BiVNFu71.js +17 -0
  96. package/chunks/pause-circle-icon-Dpio-qM3.js +17 -0
  97. package/chunks/payment-icon-C-B7L4WP.js +17 -0
  98. package/chunks/person-add-C-3pZhgM.js +17 -0
  99. package/chunks/person-icon-Bo5NxPRQ.js +17 -0
  100. package/chunks/person-search-icon-CwVm_XAL.js +17 -0
  101. package/chunks/pincode-icon-BA-e4pBH.js +17 -0
  102. package/chunks/play-icon-Bnj3hsIf.js +17 -0
  103. package/chunks/progress-activity-icon-YbJGzvxH.js +17 -0
  104. package/chunks/refresh-icon-ac1oOwX8.js +17 -0
  105. package/chunks/remove-icon-CTuoG0Vq.js +17 -0
  106. package/chunks/save-icon-DnF5revo.js +17 -0
  107. package/chunks/sberid-icon-DgQtjRjD.js +17 -0
  108. package/chunks/scenario-icon-BcnFsqUA.js +17 -0
  109. package/chunks/search-icon-CortrXrC.js +17 -0
  110. package/chunks/segment-icon-Bzm7cziF.js +17 -0
  111. package/chunks/send-icon-BTztERTu.js +17 -0
  112. package/chunks/settings-backup-restore-icon-DUrmFxtk.js +17 -0
  113. package/chunks/settings-icon-D_wgjUsM.js +17 -0
  114. package/chunks/shield-icon-BwpxkU5E.js +17 -0
  115. package/chunks/sms-icon-4p-ON5VX.js +17 -0
  116. package/chunks/statistic-icon-mhqUxTDv.js +17 -0
  117. package/chunks/support-icon-CBHKGKq8.js +17 -0
  118. package/chunks/telegramm-icon-C2ZR2jdg.js +17 -0
  119. package/chunks/thumbs-up-icon-BArjyDfk.js +17 -0
  120. package/chunks/time-icon-DsWMo47L.js +17 -0
  121. package/chunks/tinkoffid-icon-DN9XKuNA.js +17 -0
  122. package/chunks/trending-down-icon-DlHKI37F.js +17 -0
  123. package/chunks/trending-up-icon-IEwGHi9c.js +17 -0
  124. package/chunks/unfold-icon-S3J7xXHf.js +17 -0
  125. package/chunks/upload-icon-CwzthQEL.js +17 -0
  126. package/chunks/visibility-off-icon-BA_I97Vw.js +17 -0
  127. package/chunks/visibility-on-icon-C9VmKsvX.js +17 -0
  128. package/chunks/wallet-icon-D0r9bDRg.js +17 -0
  129. package/chunks/whats-app-icon-XbrqQF8U.js +17 -0
  130. package/chunks/work-icon-D7I-74Mk.js +17 -0
  131. package/chunks/zoom-in-icon-ZWEJANob.js +17 -0
  132. package/chunks/zoom-out-icon-CeFz3G6V.js +17 -0
  133. package/lib/index-mini.js +2877 -0
  134. package/package.json +29 -0
  135. package/styles/fonts.css +30 -0
  136. package/styles/konsolpro-custom-ui.css +1 -0
  137. package/styles/variables.css +305 -0
  138. package/types/icon/icon.d.ts +10 -0
  139. package/types/icon/icons.d.ts +112 -0
  140. package/types/icon/index.d.ts +3 -0
  141. package/types/icon-banks/icon-banks.d.ts +7 -0
  142. package/types/icon-banks/icons-banks.d.ts +28 -0
  143. package/types/icon-banks/index.d.ts +3 -0
  144. package/types/icon-documents/icon-document.d.ts +9 -0
  145. package/types/icon-documents/icons-document.d.ts +13 -0
  146. package/types/icon-documents/index.d.ts +3 -0
  147. package/types/index-mini.d.ts +15 -0
  148. package/types/index.d.ts +55 -0
  149. package/types/ui/accordion.d.ts +13 -0
  150. package/types/ui/actions-menu.d.ts +40 -0
  151. package/types/ui/alert.d.ts +16 -0
  152. package/types/ui/autocomplete.d.ts +23 -0
  153. package/types/ui/avatar.d.ts +27 -0
  154. package/types/ui/banner.d.ts +12 -0
  155. package/types/ui/button.d.ts +38 -0
  156. package/types/ui/calendar.d.ts +4 -0
  157. package/types/ui/card.d.ts +38 -0
  158. package/types/ui/carousel.d.ts +11 -0
  159. package/types/ui/checkbox.d.ts +27 -0
  160. package/types/ui/combobox-base/combobox-base.d.ts +10 -0
  161. package/types/ui/combobox-base/index.d.ts +1 -0
  162. package/types/ui/combobox-multiselect/combobox-multiselect-context.d.ts +56 -0
  163. package/types/ui/combobox-multiselect/combobox-multiselect.d.ts +41 -0
  164. package/types/ui/combobox-multiselect/components/combobox-actions.d.ts +5 -0
  165. package/types/ui/combobox-multiselect/components/combobox-container.d.ts +5 -0
  166. package/types/ui/combobox-multiselect/components/combobox-input.d.ts +5 -0
  167. package/types/ui/combobox-multiselect/components/combobox-item-renderer.d.ts +10 -0
  168. package/types/ui/combobox-multiselect/components/combobox-menu.d.ts +6 -0
  169. package/types/ui/combobox-multiselect/components/index.d.ts +5 -0
  170. package/types/ui/combobox-multiselect/index.d.ts +1 -0
  171. package/types/ui/combobox-primitive/combobox-primitive-context.d.ts +54 -0
  172. package/types/ui/combobox-primitive/components/Item.d.ts +3 -0
  173. package/types/ui/combobox-primitive/components/combobox-actions.d.ts +5 -0
  174. package/types/ui/combobox-primitive/components/combobox-container.d.ts +5 -0
  175. package/types/ui/combobox-primitive/components/combobox-input.d.ts +5 -0
  176. package/types/ui/combobox-primitive/components/combobox-item-renderer.d.ts +10 -0
  177. package/types/ui/combobox-primitive/components/combobox-menu.d.ts +6 -0
  178. package/types/ui/combobox-primitive/components/index.d.ts +8 -0
  179. package/types/ui/combobox-primitive/components/item-view.d.ts +3 -0
  180. package/types/ui/combobox-primitive/components/list.d.ts +3 -0
  181. package/types/ui/combobox-primitive/constants.d.ts +47 -0
  182. package/types/ui/combobox-primitive/hooks.d.ts +8 -0
  183. package/types/ui/combobox-primitive/index.d.ts +3 -0
  184. package/types/ui/combobox-primitive/types.d.ts +74 -0
  185. package/types/ui/combobox-primitive/utils.d.ts +25 -0
  186. package/types/ui/combobox.d.ts +34 -0
  187. package/types/ui/command.d.ts +78 -0
  188. package/types/ui/customizable-carousel.d.ts +148 -0
  189. package/types/ui/date-picker.d.ts +37 -0
  190. package/types/ui/date-range-picker/constants.d.ts +22 -0
  191. package/types/ui/date-range-picker/locales.d.ts +3 -0
  192. package/types/ui/date-range-picker.d.ts +46 -0
  193. package/types/ui/dialog/dialog-base/dialog-base.d.ts +46 -0
  194. package/types/ui/dialog/dialog-base/index.d.ts +3 -0
  195. package/types/ui/dialog/dialog-base/use-base-dialog.d.ts +38 -0
  196. package/types/ui/dialog/dialog-primitive/dialog-primitive.d.ts +38 -0
  197. package/types/ui/dialog/dialog-primitive/index.d.ts +2 -0
  198. package/types/ui/dialog/index.d.ts +2 -0
  199. package/types/ui/dialog/utils.d.ts +6 -0
  200. package/types/ui/divider.d.ts +6 -0
  201. package/types/ui/dropdown.d.ts +55 -0
  202. package/types/ui/input-number/index.d.ts +2 -0
  203. package/types/ui/input-number/input-number.d.ts +43 -0
  204. package/types/ui/input.d.ts +58 -0
  205. package/types/ui/link.d.ts +28 -0
  206. package/types/ui/masked-input.d.ts +12 -0
  207. package/types/ui/modal.d.ts +26 -0
  208. package/types/ui/otp-input.d.ts +49 -0
  209. package/types/ui/pagination/index.d.ts +2 -0
  210. package/types/ui/pagination/pagination.d.ts +18 -0
  211. package/types/ui/phone-input/constants.d.ts +18 -0
  212. package/types/ui/phone-input/locales/ru.json.d.ts +252 -0
  213. package/types/ui/phone-input/locales/tg.json.d.ts +261 -0
  214. package/types/ui/phone-input/locales/uz.json.d.ts +261 -0
  215. package/types/ui/phone-input/phone-input-utils.d.ts +2 -0
  216. package/types/ui/phone-input/phone-input.d.ts +25 -0
  217. package/types/ui/phone-input/phone-mask.d.ts +233 -0
  218. package/types/ui/pointline.d.ts +20 -0
  219. package/types/ui/popover.d.ts +7 -0
  220. package/types/ui/progress.d.ts +4 -0
  221. package/types/ui/radio.d.ts +37 -0
  222. package/types/ui/schedule-calendar/calendar-day-card.d.ts +9 -0
  223. package/types/ui/schedule-calendar/constants.d.ts +3 -0
  224. package/types/ui/schedule-calendar/embla-calendar-card.d.ts +9 -0
  225. package/types/ui/schedule-calendar/embla-calendar-strip.d.ts +14 -0
  226. package/types/ui/schedule-calendar/index.d.ts +16 -0
  227. package/types/ui/schedule-calendar/schedule-calendar-strip.d.ts +36 -0
  228. package/types/ui/schedule-calendar/schedule-header.d.ts +26 -0
  229. package/types/ui/schedule-calendar/use-schedule-calendar.d.ts +27 -0
  230. package/types/ui/schedule-calendar/use-schedule-sync.d.ts +39 -0
  231. package/types/ui/schedule-calendar/utils.d.ts +12 -0
  232. package/types/ui/scroll-area.d.ts +9 -0
  233. package/types/ui/segments.d.ts +44 -0
  234. package/types/ui/select.d.ts +95 -0
  235. package/types/ui/spinner.d.ts +12 -0
  236. package/types/ui/stepper.d.ts +11 -0
  237. package/types/ui/switch.d.ts +24 -0
  238. package/types/ui/table/index.d.ts +4 -0
  239. package/types/ui/table/table-align.d.ts +3 -0
  240. package/types/ui/table/table-body.d.ts +16 -0
  241. package/types/ui/table/table-cards-skeleton.d.ts +6 -0
  242. package/types/ui/table/table-cards.d.ts +16 -0
  243. package/types/ui/table/table-colgroup.d.ts +5 -0
  244. package/types/ui/table/table-columns.d.ts +4 -0
  245. package/types/ui/table/table-empty-state.d.ts +6 -0
  246. package/types/ui/table/table-header.d.ts +17 -0
  247. package/types/ui/table/table-internal-types.d.ts +28 -0
  248. package/types/ui/table/table-settings.d.ts +20 -0
  249. package/types/ui/table/table-skeleton.d.ts +11 -0
  250. package/types/ui/table/table-sticky.d.ts +10 -0
  251. package/types/ui/table/table-types.d.ts +135 -0
  252. package/types/ui/table/table.d.ts +12 -0
  253. package/types/ui/table/use-table-scroll-state.d.ts +3 -0
  254. package/types/ui/table/utils.d.ts +1 -0
  255. package/types/ui/tabs.d.ts +25 -0
  256. package/types/ui/tag.d.ts +28 -0
  257. package/types/ui/textarea.d.ts +17 -0
  258. package/types/ui/time-picker.d.ts +15 -0
  259. package/types/ui/time-range-picker.d.ts +26 -0
  260. package/types/ui/timeline.d.ts +18 -0
  261. package/types/ui/toaster.d.ts +45 -0
  262. package/types/ui/tooltip.d.ts +9 -0
  263. package/types/ui/typography.d.ts +25 -0
  264. package/types/ui/uploader.d.ts +59 -0
@@ -0,0 +1,55 @@
1
+ import { default as React } from 'react';
2
+ type DropdownContentAlign = 'start' | 'center' | 'end';
3
+ type DropdownContentSide = 'top' | 'right' | 'bottom' | 'left';
4
+ interface DropdownProps {
5
+ /** Автоматически закрывать после клика на элемент */
6
+ closeOnItemClick?: boolean;
7
+ /** Выбранное значение */
8
+ value?: string;
9
+ /** Колбек при изменении значения */
10
+ onValueChange?: (value: string) => void;
11
+ /** Управление открытым состоянием (controlled mode) */
12
+ open?: boolean;
13
+ /** Колбек для изменения открытого состояния */
14
+ onOpenChange?: (open: boolean) => void;
15
+ /** Начальное открытое состояние (uncontrolled mode) */
16
+ defaultOpen?: boolean;
17
+ /** Дочерние элементы */
18
+ children?: React.ReactNode;
19
+ }
20
+ interface DropdownTriggerProps extends React.ComponentPropsWithoutRef<'button'> {
21
+ asChild?: boolean;
22
+ }
23
+ interface DropdownContentProps extends React.ComponentPropsWithoutRef<'div'> {
24
+ /** Выравнивание контента относительно триггера */
25
+ align?: DropdownContentAlign;
26
+ /** Сторона расположения относительно триггера */
27
+ side?: DropdownContentSide;
28
+ /** Минимальная ширина в px */
29
+ minWidth?: number;
30
+ /** Максимальная высота в px (при превышении — скролл) */
31
+ maxHeight?: number;
32
+ /** Отступ от триггера */
33
+ sideOffset?: number;
34
+ }
35
+ interface DropdownItemProps extends React.HTMLAttributes<HTMLDivElement> {
36
+ /** Отключить элемент */
37
+ disabled?: boolean;
38
+ /** Элемент как child */
39
+ asChild?: boolean;
40
+ /** Значение элемента */
41
+ value?: string;
42
+ /** Деструктивное действие */
43
+ danger?: boolean;
44
+ }
45
+ interface DropdownLabelProps extends React.HTMLAttributes<HTMLDivElement> {
46
+ }
47
+ interface DropdownSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
48
+ }
49
+ declare const Dropdown: React.ForwardRefExoticComponent<DropdownProps & React.RefAttributes<HTMLDivElement>>;
50
+ declare const DropdownTrigger: React.ForwardRefExoticComponent<DropdownTriggerProps & React.RefAttributes<HTMLButtonElement>>;
51
+ declare const DropdownContent: React.ForwardRefExoticComponent<DropdownContentProps & React.RefAttributes<HTMLDivElement>>;
52
+ declare const DropdownItem: React.ForwardRefExoticComponent<DropdownItemProps & React.RefAttributes<HTMLDivElement>>;
53
+ declare const DropdownLabel: React.ForwardRefExoticComponent<DropdownLabelProps & React.RefAttributes<HTMLDivElement>>;
54
+ declare const DropdownSeparator: React.ForwardRefExoticComponent<DropdownSeparatorProps & React.RefAttributes<HTMLDivElement>>;
55
+ export { Dropdown, DropdownContent, type DropdownContentProps, DropdownItem, type DropdownItemProps, DropdownLabel, type DropdownLabelProps, type DropdownProps, DropdownSeparator, type DropdownSeparatorProps, DropdownTrigger, type DropdownTriggerProps, };
@@ -0,0 +1,2 @@
1
+ export { InputNumber } from './input-number';
2
+ export type { InputNumberProps } from './input-number';
@@ -0,0 +1,43 @@
1
+ import { default as React } from 'react';
2
+ import { InputProps } from '../input';
3
+ export type InputNumberProps = Omit<InputProps, 'type' | 'value' | 'onChange'> & {
4
+ /** Значение числа */
5
+ value?: number | string;
6
+ /** Обработчик изменения значения */
7
+ onChange?: (value: number | string) => void;
8
+ /** Количество цифр после запятой (по умолчанию неограниченно) */
9
+ decimalPlaces?: number;
10
+ /** Разделитель для десятичной части ('comma' | 'dot') */
11
+ separator?: 'comma' | 'dot';
12
+ /** Функция трансформации значения перед отображением */
13
+ transformer?: (value: string) => string;
14
+ /** Минимальное значение */
15
+ min?: number;
16
+ /** Максимальное значение */
17
+ max?: number;
18
+ /** Разрешить отрицательные числа */
19
+ allowNegative?: boolean;
20
+ /** Разрешить пустое значение */
21
+ allowEmpty?: boolean;
22
+ };
23
+ declare const InputNumber: React.ForwardRefExoticComponent<Omit<InputProps, "type" | "onChange" | "value"> & {
24
+ /** Значение числа */
25
+ value?: number | string;
26
+ /** Обработчик изменения значения */
27
+ onChange?: (value: number | string) => void;
28
+ /** Количество цифр после запятой (по умолчанию неограниченно) */
29
+ decimalPlaces?: number;
30
+ /** Разделитель для десятичной части ('comma' | 'dot') */
31
+ separator?: "comma" | "dot";
32
+ /** Функция трансформации значения перед отображением */
33
+ transformer?: (value: string) => string;
34
+ /** Минимальное значение */
35
+ min?: number;
36
+ /** Максимальное значение */
37
+ max?: number;
38
+ /** Разрешить отрицательные числа */
39
+ allowNegative?: boolean;
40
+ /** Разрешить пустое значение */
41
+ allowEmpty?: boolean;
42
+ } & React.RefAttributes<HTMLInputElement>>;
43
+ export { InputNumber };
@@ -0,0 +1,58 @@
1
+ import { default as React } from 'react';
2
+ import { IconName } from '../icon';
3
+ export type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> & {
4
+ size?: 'md' | 'lg';
5
+ iconPosition?: 'left' | 'right';
6
+ fullWidthContainer?: boolean;
7
+ fullWidth?: boolean;
8
+ label?: string;
9
+ error?: string;
10
+ caption?: string;
11
+ containerClassName?: string;
12
+ iconName?: IconName;
13
+ icon?: React.ReactNode;
14
+ inlineSelect?: React.ReactNode;
15
+ prefixContainer?: React.ReactNode;
16
+ autoFocus?: boolean;
17
+ suffix?: React.ReactNode;
18
+ showErrorMessage?: boolean;
19
+ onClear?: () => void;
20
+ /** Тест-ид */
21
+ 'data-testid'?: string;
22
+ };
23
+ declare const Input: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & {
24
+ size?: "md" | "lg";
25
+ iconPosition?: "left" | "right";
26
+ fullWidthContainer?: boolean;
27
+ fullWidth?: boolean;
28
+ label?: string;
29
+ error?: string;
30
+ caption?: string;
31
+ containerClassName?: string;
32
+ iconName?: IconName;
33
+ icon?: React.ReactNode;
34
+ inlineSelect?: React.ReactNode;
35
+ prefixContainer?: React.ReactNode;
36
+ autoFocus?: boolean;
37
+ suffix?: React.ReactNode;
38
+ showErrorMessage?: boolean;
39
+ onClear?: () => void;
40
+ /** Тест-ид */
41
+ 'data-testid'?: string;
42
+ } & React.RefAttributes<HTMLInputElement>>;
43
+ declare const InputPassword: React.ForwardRefExoticComponent<Omit<InputProps, "type" | "size"> & {
44
+ size?: "md" | "lg";
45
+ } & React.RefAttributes<HTMLInputElement>>;
46
+ declare const InputSearch: React.ForwardRefExoticComponent<Omit<InputProps, "type" | "icon" | "iconPosition"> & {
47
+ type?: "button" | "border";
48
+ onSearch?: (value: string) => void;
49
+ phoneInputSearch?: boolean;
50
+ } & React.RefAttributes<HTMLInputElement>>;
51
+ declare const InputTitle: React.ForwardRefExoticComponent<Omit<InputProps, "type" | "icon" | "size" | "iconPosition"> & {
52
+ size?: "md" | "lg";
53
+ title?: string;
54
+ } & React.RefAttributes<HTMLInputElement>>;
55
+ declare const InputLink: React.ForwardRefExoticComponent<Omit<InputProps, "type" | "icon" | "iconPosition" | "prefixContainer"> & {
56
+ size?: "md" | "lg";
57
+ } & React.RefAttributes<HTMLInputElement>>;
58
+ export { Input, InputLink, InputPassword, InputSearch, InputTitle };
@@ -0,0 +1,28 @@
1
+ import { default as React } from 'react';
2
+ import { IconProps } from '../icon/icon';
3
+ import { IconName } from '../icon/icons';
4
+ export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
5
+ href?: string;
6
+ className?: string;
7
+ children?: React.ReactNode;
8
+ target?: string;
9
+ onClick?: React.MouseEventHandler<HTMLAnchorElement>;
10
+ onKeyDown?: React.KeyboardEventHandler<HTMLAnchorElement>;
11
+ /** Отключить ссылку */
12
+ disabled?: boolean;
13
+ 'data-cy'?: string;
14
+ /** Использовать дочерний компонент как корневой элемент */
15
+ asChild?: boolean;
16
+ /** Тест-ид */
17
+ 'data-testid'?: string;
18
+ /** Иконка из набора `custom-ui` */
19
+ icon?: IconName;
20
+ /** Позиция иконки относительно текста */
21
+ iconPosition?: 'left' | 'right';
22
+ /** Размер иконки */
23
+ iconSize?: IconProps['size'];
24
+ /** Доп. классы для иконки */
25
+ iconClassName?: string;
26
+ }
27
+ declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
28
+ export { Link };
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { InputProps } from './input';
3
+ export interface MaskedInputProps extends Omit<InputProps, 'onChange'> {
4
+ mask: string;
5
+ maskChar?: string | null;
6
+ alwaysShowMask?: boolean;
7
+ maskPlaceholder?: string;
8
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
9
+ currentCountry?: unknown;
10
+ }
11
+ declare const MaskedInput: React.ForwardRefExoticComponent<MaskedInputProps & React.RefAttributes<HTMLInputElement>>;
12
+ export { MaskedInput };
@@ -0,0 +1,26 @@
1
+ import { default as React } from 'react';
2
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
3
+ type ModalWidth = 'sm' | 'md' | 'lg';
4
+ /**
5
+ * @deprecated используйте Dialog из ui/dialog
6
+ */
7
+ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
8
+ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
9
+ declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
10
+ declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
11
+ declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
13
+ showClose?: boolean;
14
+ footer?: React.ReactNode;
15
+ classNameFooter?: string;
16
+ disabledPadding?: boolean;
17
+ fullScreen?: boolean;
18
+ hideOverlay?: boolean;
19
+ width?: ModalWidth;
20
+ } & React.RefAttributes<HTMLDivElement>>;
21
+ declare function DialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
22
+ declare namespace DialogHeader {
23
+ var displayName: string;
24
+ }
25
+ declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
26
+ export { Dialog, DialogClose, DialogContent, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
@@ -0,0 +1,49 @@
1
+ export interface OTPInput {
2
+ length?: number;
3
+ title?: string;
4
+ fnGetCode?: () => void;
5
+ onChange?: (value: string) => void;
6
+ onComplete?: (value: string) => void;
7
+ isDisabled?: boolean;
8
+ loading?: boolean;
9
+ enableClearOnComplete?: boolean;
10
+ masked?: boolean;
11
+ hasError?: boolean;
12
+ errorMessage?: string;
13
+ 'data-testid'?: string;
14
+ 'data-cy'?: string;
15
+ smsTexts?: {
16
+ resend: string;
17
+ sms: string;
18
+ };
19
+ timer?: number;
20
+ }
21
+ type AndroidInputEvent = React.FormEvent<HTMLInputElement> & {
22
+ nativeEvent: {
23
+ data: string | null;
24
+ inputType: string;
25
+ };
26
+ };
27
+ export interface SingleOtpInput {
28
+ className?: string;
29
+ hasErrored?: boolean;
30
+ isDisabled?: boolean;
31
+ loading?: boolean;
32
+ onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
33
+ onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void;
34
+ onInput: (e: AndroidInputEvent) => void;
35
+ onPaste: (e: React.ClipboardEvent<HTMLInputElement>) => void;
36
+ onFocus: (e: React.FocusEvent<HTMLInputElement>) => void;
37
+ onBlur: () => void;
38
+ value?: string;
39
+ 'data-testid'?: string;
40
+ 'data-cy'?: string;
41
+ index: number;
42
+ focus: boolean;
43
+ masked?: boolean;
44
+ }
45
+ export interface OtpInputHandle {
46
+ focusInput: (index: number) => void;
47
+ }
48
+ declare const OtpInput: import('react').ForwardRefExoticComponent<OTPInput & import('react').RefAttributes<OtpInputHandle>>;
49
+ export { OtpInput };
@@ -0,0 +1,2 @@
1
+ export { Pagination } from './pagination';
2
+ export type { PaginationLocale, PaginationProps } from './pagination';
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export interface PaginationLocale {
3
+ jump_to?: string;
4
+ page?: string;
5
+ items_per_page?: string;
6
+ }
7
+ export interface PaginationProps {
8
+ current: number;
9
+ total: number;
10
+ pageSize?: number;
11
+ onChange: (page: number, pageSize?: number) => void;
12
+ className?: string;
13
+ disabled?: boolean;
14
+ hideOnSinglePage?: boolean;
15
+ showQuickJumper?: boolean;
16
+ locale?: PaginationLocale;
17
+ }
18
+ export declare const Pagination: React.FC<PaginationProps>;
@@ -0,0 +1,18 @@
1
+ export declare const translations: {
2
+ ru: {
3
+ searchCountry: string;
4
+ notFound: string;
5
+ };
6
+ en: {
7
+ searchCountry: string;
8
+ notFound: string;
9
+ };
10
+ uz: {
11
+ searchCountry: string;
12
+ notFound: string;
13
+ };
14
+ tg: {
15
+ searchCountry: string;
16
+ notFound: string;
17
+ };
18
+ };
@@ -0,0 +1,252 @@
1
+ declare const _default: {
2
+ BY: string;
3
+ country: string;
4
+ AC: string;
5
+ AD: string;
6
+ AE: string;
7
+ AF: string;
8
+ AG: string;
9
+ AI: string;
10
+ AL: string;
11
+ AM: string;
12
+ AO: string;
13
+ AR: string;
14
+ AS: string;
15
+ AT: string;
16
+ AU: string;
17
+ AW: string;
18
+ AX: string;
19
+ AZ: string;
20
+ BA: string;
21
+ BB: string;
22
+ BD: string;
23
+ BE: string;
24
+ BF: string;
25
+ BG: string;
26
+ BH: string;
27
+ BI: string;
28
+ BJ: string;
29
+ BL: string;
30
+ BM: string;
31
+ BN: string;
32
+ BO: string;
33
+ BQ: string;
34
+ BR: string;
35
+ BS: string;
36
+ BT: string;
37
+ BW: string;
38
+ BZ: string;
39
+ CA: string;
40
+ CC: string;
41
+ CD: string;
42
+ CF: string;
43
+ CG: string;
44
+ CH: string;
45
+ CI: string;
46
+ CK: string;
47
+ CL: string;
48
+ CM: string;
49
+ CN: string;
50
+ CO: string;
51
+ CR: string;
52
+ CU: string;
53
+ CV: string;
54
+ CW: string;
55
+ CX: string;
56
+ CY: string;
57
+ CZ: string;
58
+ DE: string;
59
+ DJ: string;
60
+ DK: string;
61
+ DM: string;
62
+ DO: string;
63
+ DZ: string;
64
+ EC: string;
65
+ EE: string;
66
+ EG: string;
67
+ EH: string;
68
+ ER: string;
69
+ ES: string;
70
+ ET: string;
71
+ FI: string;
72
+ FJ: string;
73
+ FK: string;
74
+ FM: string;
75
+ FO: string;
76
+ FR: string;
77
+ GA: string;
78
+ GB: string;
79
+ GD: string;
80
+ GE: string;
81
+ GF: string;
82
+ GG: string;
83
+ GH: string;
84
+ GI: string;
85
+ GL: string;
86
+ GM: string;
87
+ GN: string;
88
+ GP: string;
89
+ GQ: string;
90
+ GR: string;
91
+ GT: string;
92
+ GU: string;
93
+ GW: string;
94
+ GY: string;
95
+ HK: string;
96
+ HN: string;
97
+ HR: string;
98
+ HT: string;
99
+ HU: string;
100
+ ID: string;
101
+ IE: string;
102
+ IL: string;
103
+ IM: string;
104
+ IN: string;
105
+ IO: string;
106
+ IQ: string;
107
+ IR: string;
108
+ IS: string;
109
+ IT: string;
110
+ JE: string;
111
+ JM: string;
112
+ JO: string;
113
+ JP: string;
114
+ KE: string;
115
+ KG: string;
116
+ KH: string;
117
+ KI: string;
118
+ KM: string;
119
+ KN: string;
120
+ KP: string;
121
+ KR: string;
122
+ KW: string;
123
+ KY: string;
124
+ KZ: string;
125
+ LA: string;
126
+ LB: string;
127
+ LC: string;
128
+ LI: string;
129
+ LK: string;
130
+ LR: string;
131
+ LS: string;
132
+ LT: string;
133
+ LU: string;
134
+ LV: string;
135
+ LY: string;
136
+ MA: string;
137
+ MC: string;
138
+ MD: string;
139
+ ME: string;
140
+ MF: string;
141
+ MG: string;
142
+ MH: string;
143
+ MK: string;
144
+ ML: string;
145
+ MM: string;
146
+ MN: string;
147
+ MO: string;
148
+ MP: string;
149
+ MQ: string;
150
+ MR: string;
151
+ MS: string;
152
+ MT: string;
153
+ MU: string;
154
+ MV: string;
155
+ MW: string;
156
+ MX: string;
157
+ MY: string;
158
+ MZ: string;
159
+ NA: string;
160
+ NC: string;
161
+ NE: string;
162
+ NF: string;
163
+ NG: string;
164
+ NI: string;
165
+ NL: string;
166
+ NO: string;
167
+ NP: string;
168
+ NR: string;
169
+ NU: string;
170
+ NZ: string;
171
+ OM: string;
172
+ PA: string;
173
+ PE: string;
174
+ PF: string;
175
+ PG: string;
176
+ PH: string;
177
+ PK: string;
178
+ PL: string;
179
+ PM: string;
180
+ PR: string;
181
+ PS: string;
182
+ PT: string;
183
+ PW: string;
184
+ PY: string;
185
+ QA: string;
186
+ RE: string;
187
+ RO: string;
188
+ RS: string;
189
+ RU: string;
190
+ RW: string;
191
+ SA: string;
192
+ SB: string;
193
+ SC: string;
194
+ SD: string;
195
+ SE: string;
196
+ SG: string;
197
+ SH: string;
198
+ SI: string;
199
+ SJ: string;
200
+ SK: string;
201
+ SL: string;
202
+ SM: string;
203
+ SN: string;
204
+ SO: string;
205
+ SR: string;
206
+ SS: string;
207
+ ST: string;
208
+ SV: string;
209
+ SX: string;
210
+ SY: string;
211
+ SZ: string;
212
+ TA: string;
213
+ TC: string;
214
+ TD: string;
215
+ TG: string;
216
+ TH: string;
217
+ TJ: string;
218
+ TK: string;
219
+ TL: string;
220
+ TM: string;
221
+ TN: string;
222
+ TO: string;
223
+ TR: string;
224
+ TT: string;
225
+ TV: string;
226
+ TW: string;
227
+ TZ: string;
228
+ UA: string;
229
+ UG: string;
230
+ US: string;
231
+ UY: string;
232
+ UZ: string;
233
+ VA: string;
234
+ VC: string;
235
+ VE: string;
236
+ VG: string;
237
+ VI: string;
238
+ VN: string;
239
+ VU: string;
240
+ WF: string;
241
+ WS: string;
242
+ XK: string;
243
+ YE: string;
244
+ YT: string;
245
+ ZA: string;
246
+ ZM: string;
247
+ ZW: string;
248
+ ZZ: string;
249
+ ext: string;
250
+ phone: string;
251
+ };
252
+ export default _default;