@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,40 @@
1
+ import { default as React } from 'react';
2
+ import { ButtonSize } from './button';
3
+ import { DropdownItemProps, DropdownLabelProps, DropdownSeparatorProps } from './dropdown';
4
+ type ActionsMenuAlign = 'start' | 'center' | 'end';
5
+ type ActionsMenuSide = 'top' | 'right' | 'bottom' | 'left';
6
+ export type ActionsMenuItemProps = DropdownItemProps;
7
+ export type ActionsMenuSeparatorProps = DropdownSeparatorProps;
8
+ export type ActionsMenuLabelProps = DropdownLabelProps;
9
+ interface ActionsMenuProps {
10
+ /** Дочерние элементы (ActionsMenuItem, ActionsMenuSeparator и т.д.) */
11
+ children: React.ReactNode;
12
+ /** Размер кнопки-триггера */
13
+ size?: ButtonSize;
14
+ /** Отключить меню */
15
+ disabled?: boolean;
16
+ /** Управление открытым состоянием (controlled mode) */
17
+ open?: boolean;
18
+ /** Колбек для изменения открытого состояния */
19
+ onOpenChange?: (open: boolean) => void;
20
+ /** Выравнивание контента относительно триггера */
21
+ align?: ActionsMenuAlign;
22
+ /** Сторона расположения относительно триггера */
23
+ side?: ActionsMenuSide;
24
+ /** Максимальная высота выпадающего списка в px */
25
+ maxHeight?: number;
26
+ /** Минимальная ширина выпадающего списка в px */
27
+ minWidth?: number;
28
+ /** Класс для контента выпадающего списка */
29
+ className?: string;
30
+ /** Класс для кнопки-триггера */
31
+ triggerClassName?: string;
32
+ }
33
+ declare function ActionsMenu({ children, size, disabled, open, onOpenChange, align, side, maxHeight, minWidth, className, triggerClassName, }: ActionsMenuProps): import("react/jsx-runtime").JSX.Element;
34
+ declare namespace ActionsMenu {
35
+ var displayName: string;
36
+ }
37
+ declare const ActionsMenuItem: React.ForwardRefExoticComponent<DropdownItemProps & React.RefAttributes<HTMLDivElement>>;
38
+ declare const ActionsMenuSeparator: React.ForwardRefExoticComponent<DropdownSeparatorProps & React.RefAttributes<HTMLDivElement>>;
39
+ declare const ActionsMenuLabel: React.ForwardRefExoticComponent<DropdownLabelProps & React.RefAttributes<HTMLDivElement>>;
40
+ export { ActionsMenu, ActionsMenuItem, ActionsMenuLabel, type ActionsMenuProps, ActionsMenuSeparator, };
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ export type AlertVariant = 'error' | 'info' | 'success' | 'warning';
3
+ interface AlertProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'children'> {
4
+ variant: AlertVariant;
5
+ title: React.ReactNode;
6
+ description?: React.ReactNode;
7
+ body?: React.ReactNode;
8
+ action?: React.ReactNode;
9
+ fullWidth?: boolean;
10
+ closable?: boolean;
11
+ onClose?: () => void;
12
+ className?: string;
13
+ 'data-testid'?: string;
14
+ }
15
+ export declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
16
+ export {};
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ export interface AutocompleteOption<T = string> {
3
+ label: string;
4
+ value: string;
5
+ data?: T;
6
+ }
7
+ interface AutocompleteProps<T = string> {
8
+ options: AutocompleteOption<T>[];
9
+ value: string;
10
+ onValueChange: (value: string, option?: AutocompleteOption<T>) => void;
11
+ onInputChange?: (text: string) => void;
12
+ placeholder?: string;
13
+ emptyMessage?: string | React.ReactNode;
14
+ className?: string;
15
+ disabled?: boolean;
16
+ renderOption?: (option: AutocompleteOption<T>) => React.ReactNode;
17
+ size?: 'md' | 'lg';
18
+ label?: string;
19
+ caption?: string;
20
+ error?: string;
21
+ }
22
+ export declare function Autocomplete<T = string>({ options, value, onValueChange, placeholder, onInputChange, emptyMessage, className, disabled, label, caption, error, renderOption, size, }: AutocompleteProps<T>): import("react/jsx-runtime").JSX.Element;
23
+ export {};
@@ -0,0 +1,27 @@
1
+ import { AvatarColorVariant } from '../../lib/utils';
2
+ import * as React from 'react';
3
+ type AvatarSize = 'small' | 'default' | 'large' | 'extra';
4
+ type AvatarShape = 'circle' | 'square';
5
+ interface AvatarProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ children?: React.ReactNode;
7
+ 'data-testid'?: string;
8
+ size?: AvatarSize;
9
+ shape?: AvatarShape;
10
+ badge?: boolean;
11
+ }
12
+ interface AvatarImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
13
+ src?: string;
14
+ alt?: string;
15
+ withInsideBorder?: boolean;
16
+ }
17
+ interface AvatarFallbackProps extends React.HTMLAttributes<HTMLSpanElement> {
18
+ children?: React.ReactNode;
19
+ size?: AvatarSize;
20
+ colorVariant?: AvatarColorVariant;
21
+ userId?: number | string;
22
+ autoColor?: boolean;
23
+ }
24
+ declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
25
+ declare const AvatarImage: React.ForwardRefExoticComponent<AvatarImageProps & React.RefAttributes<HTMLImageElement>>;
26
+ declare const AvatarFallback: React.ForwardRefExoticComponent<AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>>;
27
+ export { Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, };
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ export interface BannerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
3
+ color: 'purple' | 'green' | 'gold' | 'red';
4
+ variant?: 'default' | 'inline';
5
+ title: string;
6
+ description?: string | React.ReactNode;
7
+ actions?: React.ReactNode;
8
+ image?: 'doc' | 'download' | 'headphones' | 'magnifying-glass' | 'mandarin' | 'person' | 'plus' | 'pocket' | 'torn-paper' | 'tbank' | 'alfa';
9
+ onClose?: VoidFunction;
10
+ }
11
+ declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HTMLDivElement>>;
12
+ export { Banner };
@@ -0,0 +1,38 @@
1
+ import { default as React } from 'react';
2
+ import { IconName, IconProps } from '../icon';
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "default" | "link" | "text" | "max" | "dashed" | "primary" | "sber" | "tbank" | "telegram" | null | undefined;
5
+ size?: "sm" | "md" | "lg" | "custom" | null | undefined;
6
+ iconOnly?: boolean | null | undefined;
7
+ isActive?: boolean | null | undefined;
8
+ isLoading?: boolean | null | undefined;
9
+ iconPosition?: "end" | "start" | null | undefined;
10
+ } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
11
+ export type ButtonElement = React.ElementRef<'button'>;
12
+ type ButtonVariant = 'primary' | 'default' | 'dashed' | 'text' | 'link' | 'sber' | 'tbank' | 'telegram' | 'max';
13
+ type ButtonSize = 'sm' | 'md' | 'lg' | 'custom';
14
+ type IconPosition = 'start' | 'end';
15
+ type ForceState = 'hover' | 'focus' | 'active';
16
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
17
+ /** Вариант кнопки */
18
+ variant?: ButtonVariant;
19
+ /** Размер кнопки */
20
+ size?: ButtonSize;
21
+ /** Использовать дочерний компонент как корневой элемент */
22
+ asChild?: boolean;
23
+ /** Использовать только иконку */
24
+ iconOnly?: boolean;
25
+ /** Применить стили активного состояния */
26
+ isActive?: boolean;
27
+ /** Позиция иконки */
28
+ iconPosition?: IconPosition;
29
+ /** Иконка (строка или React элемент) */
30
+ icon?: IconName;
31
+ iconProps?: Omit<IconProps, 'icon'>;
32
+ isLoading?: boolean;
33
+ /** Принудительно отобразить визуальное состояние (hover, focus, active) */
34
+ forceState?: ForceState;
35
+ 'data-testid'?: string;
36
+ }
37
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
38
+ export { Button, type ButtonProps, type ButtonSize, type ButtonVariant, buttonVariants, type ForceState, type IconPosition, };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { DayPicker } from 'react-day-picker';
3
+ declare function Calendar({ className, classNames, showOutsideDays, locale, ...props }: React.ComponentProps<typeof DayPicker>): import("react/jsx-runtime").JSX.Element;
4
+ export { Calendar };
@@ -0,0 +1,38 @@
1
+ import { default as React } from 'react';
2
+ export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * Добавляет border к карточке
5
+ */
6
+ bordered?: boolean;
7
+ /**
8
+ * Размер border-radius
9
+ */
10
+ radius?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl';
11
+ /**
12
+ * Вариант цвета карточки
13
+ */
14
+ variant?: 'default' | 'gray' | 'muted';
15
+ /**
16
+ * Размер padding
17
+ */
18
+ padding?: 'none' | '2xxs' | 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
19
+ /**
20
+ * Включает overflow: hidden
21
+ */
22
+ overflow?: boolean;
23
+ /**
24
+ * Направление flex контейнера
25
+ */
26
+ direction?: 'row' | 'col';
27
+ /**
28
+ * Выравнивание по горизонтали
29
+ */
30
+ justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
31
+ /**
32
+ * Выравнивание по вертикали
33
+ */
34
+ align?: 'start' | 'end' | 'center' | 'baseline' | 'stretch';
35
+ children?: React.ReactNode;
36
+ }
37
+ declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
38
+ export { Card };
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { EmblaOptionsType } from 'embla-carousel';
3
+ interface SimpleCarouselProps<T> extends React.HTMLAttributes<HTMLDivElement> {
4
+ items: T[];
5
+ renderSlide: (item: T, index: number) => React.ReactNode;
6
+ options?: EmblaOptionsType;
7
+ className?: string;
8
+ slideClassName?: string;
9
+ }
10
+ export declare function SimpleCarousel<T>({ items, renderSlide, options, className, slideClassName, ...divProps }: SimpleCarouselProps<T>): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,27 @@
1
+ import { ReactElement, default as React } from 'react';
2
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
3
+ declare const checkboxVariants: (props?: ({
4
+ size?: "md" | "lg" | null | undefined;
5
+ state?: "checked" | "unchecked" | "indeterminate" | null | undefined;
6
+ isDisabled?: boolean | null | undefined;
7
+ } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
8
+ declare const indicatorVariants: (props?: ({
9
+ size?: "md" | "lg" | null | undefined;
10
+ } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
11
+ export type CheckboxSize = 'md' | 'lg';
12
+ type CheckboxValue = boolean | 'indeterminate';
13
+ interface CheckboxProps<T extends CheckboxValue> {
14
+ className?: string;
15
+ checkboxClassName?: string;
16
+ size?: CheckboxSize;
17
+ label?: string | ReactElement;
18
+ disabled?: boolean;
19
+ checked?: T;
20
+ id?: string;
21
+ onCheckedChange?: (checked: T) => void;
22
+ 'data-testid'?: string;
23
+ }
24
+ declare const Checkbox: <T extends CheckboxValue = boolean>(props: CheckboxProps<T> & {
25
+ ref?: React.ForwardedRef<React.ElementRef<typeof CheckboxPrimitive.Root>>;
26
+ }) => JSX.Element;
27
+ export { Checkbox, type CheckboxProps, type CheckboxValue, checkboxVariants, indicatorVariants, };
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { ComboboxPrimitiveProps, ListProps } from '../combobox-primitive/types';
3
+ import { Item } from '../combobox-primitive/components';
4
+ interface ComboboxPrimitiveComponent {
5
+ <T extends object>(props: ComboboxPrimitiveProps<T>): React.ReactElement;
6
+ Item: typeof Item;
7
+ List: React.ForwardRefExoticComponent<ListProps & React.RefAttributes<HTMLDivElement>>;
8
+ }
9
+ export declare const ComboboxBase: ComboboxPrimitiveComponent;
10
+ export {};
@@ -0,0 +1 @@
1
+ export { ComboboxBase } from './combobox-base';
@@ -0,0 +1,56 @@
1
+ import { default as React } from 'react';
2
+ import { ComboboxPrimitiveItem, ComboboxPrimitiveProps } from '../combobox-primitive/types';
3
+ import { useFloating, useTransitionStyles } from '@floating-ui/react';
4
+ import { useCombobox } from 'downshift';
5
+ /**
6
+ * Контекст для состояния combobox
7
+ */
8
+ interface ComboboxMultiSelectContextValue<T extends object> {
9
+ getInputProps: ReturnType<typeof useCombobox>['getInputProps'];
10
+ getItemProps: ReturnType<typeof useCombobox>['getItemProps'];
11
+ getMenuProps: ReturnType<typeof useCombobox>['getMenuProps'];
12
+ getToggleButtonProps: ReturnType<typeof useCombobox>['getToggleButtonProps'];
13
+ isOpen?: boolean;
14
+ onOpenChange?: (isOpen: boolean) => void;
15
+ selectedItem: ComboboxPrimitiveItem<T> | null;
16
+ setInputValue: ReturnType<typeof useCombobox>['setInputValue'];
17
+ isItemSelected?: (option: T) => boolean;
18
+ hasSelection?: boolean;
19
+ refs: ReturnType<typeof useFloating>['refs'];
20
+ floatingStyles: ReturnType<typeof useFloating>['floatingStyles'];
21
+ isMounted: boolean;
22
+ transitionStyles: ReturnType<typeof useTransitionStyles>['styles'];
23
+ size: NonNullable<ComboboxPrimitiveProps<T>['size']>;
24
+ fullWidth: NonNullable<ComboboxPrimitiveProps<T>['fullWidth']>;
25
+ transparent: NonNullable<ComboboxPrimitiveProps<T>['transparent']>;
26
+ disabled: NonNullable<ComboboxPrimitiveProps<T>['disabled']>;
27
+ error: ComboboxPrimitiveProps<T>['error'];
28
+ placeholder: NonNullable<ComboboxPrimitiveProps<T>['placeholder']>;
29
+ onBlur: ComboboxPrimitiveProps<T>['onBlur'];
30
+ items: ComboboxPrimitiveItem<T>[];
31
+ loading?: boolean;
32
+ getLabel: (value: T) => string;
33
+ onClear?: () => void;
34
+ clearable?: boolean;
35
+ selectItem: (item: any) => void;
36
+ }
37
+ /**
38
+ * Хук для получения контекста combobox
39
+ */
40
+ export declare function useComboboxMultiSelectContext<T extends object>(): ComboboxMultiSelectContextValue<T>;
41
+ /**
42
+ * Провайдер контекста для combobox
43
+ */
44
+ interface ComboboxMultiSelectProviderProps<T extends object> extends Pick<ComboboxPrimitiveProps<T>, 'size' | 'fullWidth' | 'transparent' | 'disabled' | 'error' | 'placeholder' | 'onChange' | 'onSearch' | 'onBlur' | 'inputValue' | 'keepOpenOnSelect' | 'inputValueOnSelect' | 'inputValueOnClose' | 'isItemSelected' | 'hasSelection'> {
45
+ children: React.ReactNode;
46
+ items: ComboboxPrimitiveItem<T>[];
47
+ value?: T | null | undefined;
48
+ getLabel: (value: T) => string;
49
+ loading?: boolean;
50
+ isOpen?: boolean;
51
+ onOpenChange?: (isOpen: boolean) => void;
52
+ onClear?: () => void;
53
+ clearable?: boolean;
54
+ }
55
+ export declare function ComboboxMultiSelectProvider<T extends object>({ children, items, value: propsValue, onChange, onSearch, onBlur, inputValue, keepOpenOnSelect, inputValueOnSelect, inputValueOnClose, isItemSelected, hasSelection, size, fullWidth, transparent, disabled, error, placeholder, getLabel, loading, isOpen, onOpenChange, onClear, clearable, }: ComboboxMultiSelectProviderProps<T>): import("react/jsx-runtime").JSX.Element;
56
+ export {};
@@ -0,0 +1,41 @@
1
+ import { default as React } from 'react';
2
+ import { ListProps } from '../combobox-primitive/types';
3
+ import { Item } from '../combobox-primitive';
4
+ type KeyGetter<T> = (option: T) => string;
5
+ interface ComboboxMultiSelectProps<T extends object> {
6
+ children: React.ReactNode;
7
+ value?: T[] | undefined;
8
+ onChange?: (value: T[]) => void;
9
+ onSearch?: (value: string) => void;
10
+ onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
11
+ classNames?: {
12
+ scrollArea?: string;
13
+ scrollAreaViewport?: string;
14
+ menu?: string;
15
+ };
16
+ size?: 'xs' | 'sm' | 'md' | 'lg';
17
+ fullWidth?: boolean;
18
+ transparent?: boolean;
19
+ label?: string;
20
+ error?: string;
21
+ caption?: string;
22
+ placeholder?: string;
23
+ disabled?: boolean;
24
+ 'data-testid'?: string;
25
+ getLabel?: (value: T) => string;
26
+ getKey?: KeyGetter<T>;
27
+ loading?: boolean;
28
+ isOpen?: boolean;
29
+ onOpenChange?: (isOpen: boolean) => void;
30
+ showErrorMessage?: boolean;
31
+ clearable?: boolean;
32
+ onClear?: () => void;
33
+ maxTags?: number;
34
+ }
35
+ interface ComboboxMultiSelectComponent {
36
+ <T extends object>(props: ComboboxMultiSelectProps<T>): React.ReactElement;
37
+ Item: typeof Item;
38
+ List: React.ForwardRefExoticComponent<ListProps & React.RefAttributes<HTMLDivElement>>;
39
+ }
40
+ export declare const ComboboxMultiSelect: ComboboxMultiSelectComponent;
41
+ export {};
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ interface ComboboxActionsProps {
3
+ }
4
+ export declare const ComboboxActions: React.FC<ComboboxActionsProps>;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ interface ComboboxContainerProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ }
4
+ export declare const ComboboxContainer: React.ForwardRefExoticComponent<ComboboxContainerProps & React.RefAttributes<HTMLDivElement>>;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ interface ComboboxInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'disabled' | 'placeholder'> {
3
+ }
4
+ export declare const ComboboxInput: React.ForwardRefExoticComponent<ComboboxInputProps & React.RefAttributes<HTMLInputElement>>;
5
+ export {};
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ interface ComboboxItemRendererProps {
3
+ children: React.ReactNode;
4
+ classNames?: {
5
+ scrollAreaViewport?: string;
6
+ scrollArea?: string;
7
+ };
8
+ }
9
+ export declare const ComboboxItemRenderer: <_T>(props: ComboboxItemRendererProps) => React.ReactElement;
10
+ export {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface ComboboxMenuProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ className?: string;
4
+ }
5
+ export declare const ComboboxMenu: React.ForwardRefExoticComponent<ComboboxMenuProps & React.RefAttributes<HTMLDivElement>>;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ export { ComboboxActions } from './combobox-actions';
2
+ export { ComboboxContainer } from './combobox-container';
3
+ export { ComboboxInput } from './combobox-input';
4
+ export { ComboboxItemRenderer } from './combobox-item-renderer';
5
+ export { ComboboxMenu } from './combobox-menu';
@@ -0,0 +1 @@
1
+ export * from './combobox-multiselect';
@@ -0,0 +1,54 @@
1
+ import { default as React } from 'react';
2
+ import { ComboboxPrimitiveItem, ComboboxPrimitiveProps } from './types';
3
+ import { useFloating, useTransitionStyles } from '@floating-ui/react';
4
+ import { useCombobox } from 'downshift';
5
+ /**
6
+ * Контекст для состояния combobox
7
+ */
8
+ interface ComboboxPrimitiveContextValue<T extends object> {
9
+ getInputProps: ReturnType<typeof useCombobox>['getInputProps'];
10
+ getItemProps: ReturnType<typeof useCombobox>['getItemProps'];
11
+ getMenuProps: ReturnType<typeof useCombobox>['getMenuProps'];
12
+ getToggleButtonProps: ReturnType<typeof useCombobox>['getToggleButtonProps'];
13
+ isOpen?: boolean;
14
+ onOpenChange?: (isOpen: boolean) => void;
15
+ selectedItem: ComboboxPrimitiveItem<T> | null;
16
+ setInputValue: ReturnType<typeof useCombobox>['setInputValue'];
17
+ refs: ReturnType<typeof useFloating>['refs'];
18
+ floatingStyles: ReturnType<typeof useFloating>['floatingStyles'];
19
+ isMounted: boolean;
20
+ transitionStyles: ReturnType<typeof useTransitionStyles>['styles'];
21
+ size: NonNullable<ComboboxPrimitiveProps<T>['size']>;
22
+ fullWidth: NonNullable<ComboboxPrimitiveProps<T>['fullWidth']>;
23
+ transparent: NonNullable<ComboboxPrimitiveProps<T>['transparent']>;
24
+ disabled: NonNullable<ComboboxPrimitiveProps<T>['disabled']>;
25
+ error: ComboboxPrimitiveProps<T>['error'];
26
+ placeholder: NonNullable<ComboboxPrimitiveProps<T>['placeholder']>;
27
+ onBlur: ComboboxPrimitiveProps<T>['onBlur'];
28
+ items: ComboboxPrimitiveItem<T>[];
29
+ loading?: boolean;
30
+ getLabel: (value: T) => string;
31
+ onClear?: () => void;
32
+ clearable?: boolean;
33
+ selectItem: (item: any) => void;
34
+ }
35
+ /**
36
+ * Хук для получения контекста combobox
37
+ */
38
+ export declare function useComboboxPrimitiveContext<T extends object>(): ComboboxPrimitiveContextValue<T>;
39
+ /**
40
+ * Провайдер контекста для combobox
41
+ */
42
+ interface ComboboxPrimitiveProviderProps<T extends object> extends Pick<ComboboxPrimitiveProps<T>, 'size' | 'fullWidth' | 'transparent' | 'disabled' | 'error' | 'placeholder' | 'onChange' | 'onSearch' | 'onBlur'> {
43
+ children: React.ReactNode;
44
+ items: ComboboxPrimitiveItem<T>[];
45
+ value?: T | null;
46
+ getLabel: (value: T) => string;
47
+ loading?: boolean;
48
+ isOpen?: boolean;
49
+ onOpenChange?: (isOpen: boolean) => void;
50
+ onClear?: () => void;
51
+ clearable?: boolean;
52
+ }
53
+ export declare function ComboboxPrimitiveProvider<T extends object>({ children, items, value: propsValue, onChange, onSearch, onBlur, size, fullWidth, transparent, disabled, error, placeholder, getLabel, loading, isOpen, onOpenChange, onClear, clearable, }: ComboboxPrimitiveProviderProps<T>): import("react/jsx-runtime").JSX.Element;
54
+ export {};
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { ItemProps } from '../types';
3
+ export declare const Item: React.ForwardRefExoticComponent<ItemProps<unknown> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ interface ComboboxActionsProps {
3
+ }
4
+ export declare const ComboboxActions: React.FC<ComboboxActionsProps>;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ interface ComboboxContainerProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ }
4
+ export declare const ComboboxContainer: React.ForwardRefExoticComponent<ComboboxContainerProps & React.RefAttributes<HTMLDivElement>>;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ interface ComboboxInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'disabled' | 'placeholder'> {
3
+ }
4
+ export declare const ComboboxInput: React.ForwardRefExoticComponent<ComboboxInputProps & React.RefAttributes<HTMLInputElement>>;
5
+ export {};
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ interface ComboboxItemRendererProps {
3
+ children: React.ReactNode;
4
+ classNames?: {
5
+ scrollAreaViewport?: string;
6
+ scrollArea?: string;
7
+ };
8
+ }
9
+ export declare const ComboboxItemRenderer: <_T>(props: ComboboxItemRendererProps) => React.ReactElement;
10
+ export {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface ComboboxMenuProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ className?: string;
4
+ }
5
+ export declare const ComboboxMenu: React.ForwardRefExoticComponent<ComboboxMenuProps & React.RefAttributes<HTMLDivElement>>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ export { ComboboxActions } from './combobox-actions';
2
+ export { ComboboxContainer } from './combobox-container';
3
+ export { ComboboxInput } from './combobox-input';
4
+ export { ComboboxItemRenderer } from './combobox-item-renderer';
5
+ export { ComboboxMenu } from './combobox-menu';
6
+ export { Item } from './Item';
7
+ export { ItemView } from './item-view';
8
+ export { List } from './list';
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { ItemViewProps } from '../types';
3
+ export declare const ItemView: React.ForwardRefExoticComponent<ItemViewProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { ListProps } from '../types';
3
+ export declare const List: React.ForwardRefExoticComponent<ListProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,47 @@
1
+ import { ComboboxPrimitiveSize } from './types';
2
+ export declare const SIZE_CONFIG: {
3
+ readonly xs: {
4
+ readonly height: "h-6";
5
+ readonly fontSize: "text-[12px]";
6
+ readonly iconSize: 12;
7
+ readonly paddingLeft: "pl-1.5";
8
+ readonly paddingRight: "pr-2";
9
+ readonly labelSize: "text-[12px]";
10
+ };
11
+ readonly sm: {
12
+ readonly height: "h-8";
13
+ readonly fontSize: "text-[14px]";
14
+ readonly iconSize: 14;
15
+ readonly paddingLeft: "pl-2";
16
+ readonly paddingRight: "pr-3";
17
+ readonly labelSize: "text-[14px]";
18
+ };
19
+ readonly md: {
20
+ readonly height: "h-8";
21
+ readonly fontSize: "text-[14px]";
22
+ readonly iconSize: 16;
23
+ readonly paddingLeft: "pl-2.5";
24
+ readonly paddingRight: "pr-3";
25
+ readonly labelSize: "text-[14px]";
26
+ };
27
+ readonly lg: {
28
+ readonly height: "h-10 rounded-xl";
29
+ readonly fontSize: "text-[16px]";
30
+ readonly iconSize: 16;
31
+ readonly paddingLeft: "pl-3";
32
+ readonly paddingRight: "pr-3";
33
+ readonly labelSize: "text-[16px]";
34
+ };
35
+ };
36
+ export declare function getIconSize(size: ComboboxPrimitiveSize): number;
37
+ export declare const ITEM_BASE_STYLES: readonly ["font-graphik", "relative", "flex", "w-full", "cursor-pointer", "items-center", "rounded-md", "px-3", "mx-0.5", "transition-colors", "outline-none", "select-none", "p-3"];
38
+ export declare const ITEM_SELECTED_STYLES: readonly ["bg-primary-10", "font-medium", "hover:bg-[#F3E5FF]"];
39
+ export declare const ITEM_HOVER_STYLES: readonly ["hover:bg-muted"];
40
+ export declare const ITEM_HIGHLIGHTED_STYLES: readonly ["data-[highlighted]:bg-primary-10", "data-[highlighted]:font-medium"];
41
+ export declare const INPUT_BASE_STYLES: readonly ["font-graphik", "flex-1", "border-0", "bg-transparent", "py-1.5", "focus:outline-none", "disabled:cursor-not-allowed", "[&::-webkit-inner-spin-button]:appearance-none", "[&::-webkit-outer-spin-button]:appearance-none", "placeholder:text-muted-foreground"];
42
+ export declare const CONTAINER_BASE_STYLES: readonly ["relative", "flex", "items-center", "rounded-lg", "border-1", "border-solid"];
43
+ export declare const CONTAINER_NORMAL_STYLES: readonly ["bg-background", "border-border", "hover:border-hover-input-primary", "focus-within:border-primary", "focus-within:shadow-focus", "data-[state=open]:border-primary", "data-[state=open]:shadow-focus", "disabled:hover:border-border", "disabled:focus-within:border-border", "disabled:focus-within:shadow-none", "disabled:hover:border-none"];
44
+ export declare const CONTAINER_ERROR_STYLES: readonly ["bg-background", "border-destructive", "hover:border-destructive", "focus-within:border-destructive", "focus-within:shadow-error", "data-[state=open]:border-destructive", "data-[state=open]:shadow-error"];
45
+ export declare const CONTAINER_DISABLED_STYLES: readonly ["bg-input-disabled-background", "cursor-not-allowed"];
46
+ export declare const CONTAINER_TRANSPARENT_STYLES: readonly ["border-0", "bg-transparent", "hover:bg-transparent", "focus-within:border-0", "focus-within:shadow-none"];
47
+ export declare const FLOATING_MENU_STYLES: readonly ["bg-popover", "text-popover-foreground", "border-border", "z-[9999]", "max-h-80", "overflow-hidden", "rounded-lg", "border", "shadow-[0_2px_10px_rgba(0,0,0,0.1)]"];
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { ComboboxPrimitiveItem } from './types';
3
+ /**
4
+ * Хук для извлечения элементов из children
5
+ */
6
+ export declare function useComboboxItems<T>(children: React.ReactNode, getLabel: (value: T) => string): {
7
+ items: ComboboxPrimitiveItem<T>[];
8
+ };
@@ -0,0 +1,3 @@
1
+ export { ComboboxPrimitiveProvider, useComboboxPrimitiveContext } from './combobox-primitive-context';
2
+ export { ComboboxActions, ComboboxContainer, ComboboxInput, ComboboxItemRenderer, ComboboxMenu, Item, ItemView, List, } from './components';
3
+ export type { ComboboxPrimitiveItem, ComboboxPrimitiveProps, ComboboxPrimitiveSize, ItemProps, ItemRenderProps, ItemViewProps, ListProps, } from './types';