test-stpr-ui-kit 0.6.12 → 0.6.13

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 (89) hide show
  1. package/dist/test-stpr-ui-kit.es.d.ts +826 -1
  2. package/dist/test-stpr-ui-kit.js +10 -9
  3. package/dist/test-stpr-ui-kit.umd.cjs +5 -5
  4. package/package.json +2 -2
  5. package/dist/lib/components/Accordion/Accordion.d.ts +0 -3
  6. package/dist/lib/components/Accordion/index.d.ts +0 -2
  7. package/dist/lib/components/ApplyButtons/ApplyButtons.d.ts +0 -3
  8. package/dist/lib/components/ApplyButtons/index.d.ts +0 -2
  9. package/dist/lib/components/AuthProtected/AuthProtected.d.ts +0 -3
  10. package/dist/lib/components/AuthProtected/index.d.ts +0 -2
  11. package/dist/lib/components/BaseTooltip/BaseTooltip.d.ts +0 -2
  12. package/dist/lib/components/BaseTooltip/index.d.ts +0 -2
  13. package/dist/lib/components/Breadcrumb/Breadcrumb.d.ts +0 -3
  14. package/dist/lib/components/Breadcrumb/index.d.ts +0 -2
  15. package/dist/lib/components/Button/Button.d.ts +0 -3
  16. package/dist/lib/components/Button/index.d.ts +0 -2
  17. package/dist/lib/components/Checkbox/Checkbox.d.ts +0 -3
  18. package/dist/lib/components/Checkbox/index.d.ts +0 -2
  19. package/dist/lib/components/Confirm/Confirm.d.ts +0 -3
  20. package/dist/lib/components/Confirm/index.d.ts +0 -2
  21. package/dist/lib/components/ContextMenu/ContextMenu.d.ts +0 -3
  22. package/dist/lib/components/ContextMenu/index.d.ts +0 -2
  23. package/dist/lib/components/DatePicker/DatePicker.d.ts +0 -3
  24. package/dist/lib/components/DatePicker/index.d.ts +0 -2
  25. package/dist/lib/components/DatePickerInput/DatePickerInput.d.ts +0 -2
  26. package/dist/lib/components/DatePickerInput/index.d.ts +0 -2
  27. package/dist/lib/components/DefaultDropzone/DefaultDropzone.d.ts +0 -3
  28. package/dist/lib/components/DefaultDropzone/hooks/useDefaultDropzone.d.ts +0 -1
  29. package/dist/lib/components/DefaultDropzone/index.d.ts +0 -2
  30. package/dist/lib/components/Dropdown/Dropdown.d.ts +0 -3
  31. package/dist/lib/components/Dropdown/index.d.ts +0 -2
  32. package/dist/lib/components/EllipsisTextWithTooltip/EllipsisTextWithTooltip.d.ts +0 -3
  33. package/dist/lib/components/EllipsisTextWithTooltip/index.d.ts +0 -2
  34. package/dist/lib/components/EllipsisTextWithTooltip/utils/index.d.ts +0 -2
  35. package/dist/lib/components/Form/Form.d.ts +0 -3
  36. package/dist/lib/components/Form/index.d.ts +0 -2
  37. package/dist/lib/components/Icons/Icon.d.ts +0 -40
  38. package/dist/lib/components/Icons/index.d.ts +0 -3
  39. package/dist/lib/components/Icons/types/index.d.ts +0 -44
  40. package/dist/lib/components/Input/Input.d.ts +0 -2
  41. package/dist/lib/components/Input/index.d.ts +0 -2
  42. package/dist/lib/components/Label/Label.d.ts +0 -3
  43. package/dist/lib/components/Label/index.d.ts +0 -2
  44. package/dist/lib/components/Layer/Layer.d.ts +0 -3
  45. package/dist/lib/components/Layer/index.d.ts +0 -2
  46. package/dist/lib/components/MediaContextProvider/MediaContextProvider.d.ts +0 -3
  47. package/dist/lib/components/MediaContextProvider/constants/index.d.ts +0 -3
  48. package/dist/lib/components/MediaContextProvider/hooks/index.d.ts +0 -7
  49. package/dist/lib/components/MediaContextProvider/index.d.ts +0 -4
  50. package/dist/lib/components/Modal/Modal.d.ts +0 -3
  51. package/dist/lib/components/Modal/hooks/index.d.ts +0 -17
  52. package/dist/lib/components/Modal/index.d.ts +0 -3
  53. package/dist/lib/components/Portal/Potral.d.ts +0 -3
  54. package/dist/lib/components/Portal/index.d.ts +0 -2
  55. package/dist/lib/components/ProgressWrapper/ProgressWrapper.d.ts +0 -3
  56. package/dist/lib/components/ProgressWrapper/constants/index.d.ts +0 -1
  57. package/dist/lib/components/ProgressWrapper/hooks/index.d.ts +0 -4
  58. package/dist/lib/components/ProgressWrapper/index.d.ts +0 -3
  59. package/dist/lib/components/Select/Select.d.ts +0 -3
  60. package/dist/lib/components/Select/constants/index.d.ts +0 -3
  61. package/dist/lib/components/Select/hooks/useSelect.d.ts +0 -28
  62. package/dist/lib/components/Select/index.d.ts +0 -2
  63. package/dist/lib/components/Skeleton/Skeleton.d.ts +0 -3
  64. package/dist/lib/components/Skeleton/index.d.ts +0 -2
  65. package/dist/lib/components/Spinner/Spinner.d.ts +0 -3
  66. package/dist/lib/components/Spinner/index.d.ts +0 -2
  67. package/dist/lib/components/Table/Table.d.ts +0 -1
  68. package/dist/lib/components/Table/hooks/index.d.ts +0 -12
  69. package/dist/lib/components/Table/index.d.ts +0 -3
  70. package/dist/lib/components/Table/utils/index.d.ts +0 -2
  71. package/dist/lib/components/Tabs/Tabs.d.ts +0 -3
  72. package/dist/lib/components/Tabs/index.d.ts +0 -2
  73. package/dist/lib/components/Text/Text.d.ts +0 -2
  74. package/dist/lib/components/Text/index.d.ts +0 -2
  75. package/dist/lib/components/TextWithLabel/TextWithLabel.d.ts +0 -3
  76. package/dist/lib/components/TextWithLabel/index.d.ts +0 -2
  77. package/dist/lib/components/Textarea/Textarea.d.ts +0 -2
  78. package/dist/lib/components/Textarea/index.d.ts +0 -2
  79. package/dist/lib/components/Tooltip/Tooltip.d.ts +0 -4
  80. package/dist/lib/components/Tooltip/index.d.ts +0 -3
  81. package/dist/lib/components/Tooltip/types/index.d.ts +0 -34
  82. package/dist/lib/components/UploadFiles/UploadFiles.d.ts +0 -3
  83. package/dist/lib/components/UploadFiles/index.d.ts +0 -2
  84. package/dist/lib/components/UploadFiles/types/index.d.ts +0 -33
  85. package/dist/lib/components/UploadFiles/utils/index.d.ts +0 -12
  86. package/dist/lib/components/ViewImageModal/ViewImageModal.d.ts +0 -3
  87. package/dist/lib/components/ViewImageModal/index.d.ts +0 -2
  88. package/dist/lib/test-stpr-ui-kit.d.ts +0 -46
  89. package/dist/lib/vite-env.d.ts +0 -2
@@ -1 +1,826 @@
1
- export * from './lib/test-stpr-ui-kit'
1
+ import { Accept } from 'react-dropzone';
2
+ import { CSSProperties } from 'react';
3
+ import { default as default_2 } from 'react';
4
+ import { Dispatch } from 'react';
5
+ import { DropEvent } from 'react-dropzone';
6
+ import { DropzoneState } from 'react-dropzone';
7
+ import { FileRejection } from 'react-dropzone';
8
+ import { ForwardedRef } from 'react';
9
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
10
+ import { PropsWithChildren } from 'react';
11
+ import { ReactNode } from 'react';
12
+
13
+ export declare const Accordion: default_2.FC<AccordionProps>;
14
+
15
+ declare interface AccordionProps extends default_2.PropsWithChildren {
16
+ name?: string;
17
+ onOpen?: (open: boolean) => void;
18
+ defaultOpen?: boolean;
19
+ isHiddenExpandIcon?: boolean;
20
+ noBorder?: boolean;
21
+ noPadding?: boolean;
22
+ classNameRoot?: string;
23
+ classNameHeader?: string;
24
+ classNameTitle?: string;
25
+ classNameIcon?: string;
26
+ classNameChildrenWrapper?: string;
27
+ expandIconName?: EIconName;
28
+ level?: TAccordionLevel;
29
+ infoTooltipText?: string;
30
+ tooltipPosition?: ETooltipPosition;
31
+ classNameBaseTooltipRoot?: string;
32
+ }
33
+
34
+ export declare const ApplyButtons: default_2.FC<ApplyButtonsProps>;
35
+
36
+ declare interface ApplyButtonsProps {
37
+ applyButtonsMobileDirection?: TApplyButtonsMobileDirection;
38
+ applyButtonsAlign?: TApplyButtonsAlign;
39
+ cancelBtnContent?: string;
40
+ classNameRoot?: string;
41
+ cancelBtnClassName?: string;
42
+ submitBtnClassName?: string;
43
+ cancelBtnVariant?: TButtonVariant;
44
+ cancelBtnIconName?: EIconName;
45
+ submitBtnIconName?: EIconName;
46
+ submitBtnContent?: string;
47
+ submitBtnVariant?: TButtonVariant;
48
+ cancelBtnDisabled?: boolean;
49
+ formId?: string;
50
+ disabled?: boolean;
51
+ loading?: boolean;
52
+ onClose?: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
53
+ submit?: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
54
+ }
55
+
56
+ export declare const AuthProtected: default_2.FC<AuthProtectedProps>;
57
+
58
+ declare interface AuthProtectedProps {
59
+ children: default_2.ReactNode;
60
+ isNeedAuthorized: boolean;
61
+ onClickAuthorization?: () => void;
62
+ unauthorizedMessage?: string;
63
+ authButtonText?: string;
64
+ confirmSize?: TModalSize;
65
+ zIndex?: number;
66
+ }
67
+
68
+ export declare const BaseTooltip: default_2.ForwardRefExoticComponent<BaseTooltipProps & default_2.RefAttributes<HTMLDivElement>>;
69
+
70
+ declare interface BaseTooltipProps {
71
+ text?: string | ReactNode;
72
+ noPadding?: boolean;
73
+ classNameRoot?: string;
74
+ classNameContentRoot?: string;
75
+ style?: default_2.CSSProperties;
76
+ }
77
+
78
+ export declare const Breadcrumb: default_2.FC<BreadcrumbProps>;
79
+
80
+ declare interface BreadcrumbProps {
81
+ classNameRoot?: string;
82
+ classNameListRoot?: string;
83
+ crumbsList: TCrumbItem[];
84
+ }
85
+
86
+ export declare const Button: default_2.FC<ButtonProps>;
87
+
88
+ declare interface ButtonProps extends default_2.PropsWithChildren {
89
+ color?: TButtonColor;
90
+ variant?: TButtonVariant;
91
+ style?: CSSProperties;
92
+ onClick?: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
93
+ disabled?: boolean;
94
+ type?: TButtonType;
95
+ form?: string;
96
+ isFullWidth?: boolean;
97
+ noPadding?: boolean;
98
+ isOnlyIcon?: boolean;
99
+ loading?: boolean;
100
+ iconName?: EIconName;
101
+ icon?: ReactNode;
102
+ classNameRoot?: string;
103
+ classNameTextRoot?: string;
104
+ classNameIconContainerRoot?: string;
105
+ iconRotate?: number;
106
+ iconPosition?: TButtonIconPosition;
107
+ }
108
+
109
+ export declare const Checkbox: default_2.FC<CheckboxProps>;
110
+
111
+ declare interface CheckboxProps {
112
+ size?: TCheckboxSize;
113
+ checked?: boolean;
114
+ disabled?: boolean;
115
+ onChange: TOnChangeCheckbox;
116
+ name: string;
117
+ label?: string;
118
+ error?: string;
119
+ value?: string;
120
+ required?: boolean;
121
+ tooltipPosition?: ETooltipPosition;
122
+ infoTooltipText?: string;
123
+ onMouseEnter?: (event: default_2.MouseEvent<HTMLDivElement>) => void;
124
+ classNameRoot?: string;
125
+ classNameError?: string;
126
+ }
127
+
128
+ export declare const Confirm: default_2.FC<ConfirmProps>;
129
+
130
+ declare interface ConfirmProps extends Omit<ApplyButtonsProps, "classNameRoot">, Omit<ModalProps, "footer" | "children" | "style"> {
131
+ classNameApplyButtonsRoot?: string;
132
+ disabledConfirm?: boolean;
133
+ loadingConfirm?: boolean;
134
+ }
135
+
136
+ export declare const ContextMenu: default_2.FC<ContextMenuProps>;
137
+
138
+ declare interface ContextMenuProps {
139
+ classNameRoot?: string;
140
+ options: Array<TContextMenuOption> | [];
141
+ onClickItem?: (option: TContextMenuOption) => void;
142
+ }
143
+
144
+ export declare const DatePicker: default_2.FC<IDatePickerProps>;
145
+
146
+ export declare const DatePickerInput: default_2.ForwardRefExoticComponent<IDatePickerInputProps & default_2.RefAttributes<HTMLInputElement>>;
147
+
148
+ export declare const DefaultDropzone: default_2.FC<DefaultDropzoneProps>;
149
+
150
+ declare interface DefaultDropzoneProps {
151
+ getRootProps: DropzoneState["getRootProps"];
152
+ getInputProps: DropzoneState["getInputProps"];
153
+ disabled?: boolean;
154
+ name: string;
155
+ children?: default_2.ReactNode;
156
+ }
157
+
158
+ export declare const Dropdown: default_2.FC<DropdownProps>;
159
+
160
+ declare interface DropdownProps {
161
+ labelText?: string;
162
+ listName?: string;
163
+ classNameRoot?: string;
164
+ dropdownList: TDropdownListItem[];
165
+ dropdownPosition?: ETooltipPosition;
166
+ }
167
+
168
+ export declare enum EIconName {
169
+ ChevronDown = "chevronDown",
170
+ Info = "info",
171
+ Plus = "plus",
172
+ SelectChevronDown = "selectChevronDown",
173
+ Upload = "upload",
174
+ Trash = "trash",
175
+ Check = "check",
176
+ Copy = "copy",
177
+ Close = "close",
178
+ PlusSquare = "plusSquare",
179
+ PlusCircle = "plusCircle",
180
+ WarningColor = "warningColor",
181
+ Dots = "dots",
182
+ HistoryClock = "historyClock",
183
+ Minus = "minus",
184
+ TerminalSquare = "terminalSquare",
185
+ File = "file",
186
+ FileNotFilled = "fileNotFilled",
187
+ InfoError = "infoError",
188
+ Save = "save",
189
+ Refresh = "refresh",
190
+ RefreshDouble = "refreshDouble",
191
+ Logout = "logout",
192
+ Edit = "edit",
193
+ Download = "download",
194
+ AddUser = "addUser",
195
+ AddFile = "addFile",
196
+ Calendar = "calendar",
197
+ ArrowBottom = "arrowBottom",
198
+ UserRight = "userRight",
199
+ Search = "search",
200
+ Update = "update",
201
+ Filter = "filter",
202
+ Folder = "folder",
203
+ LayersThree = "layersThree",
204
+ LinkAngled = "linkAngled"
205
+ }
206
+
207
+ export declare const EllipsisTextWithTooltip: default_2.FC<EllipsisTextWithTooltipProps>;
208
+
209
+ declare interface EllipsisTextWithTooltipProps extends Omit<TextProps, "children" | "isEllipsis" | "ref"> {
210
+ text?: string | ReactNode;
211
+ classNameRoot?: string;
212
+ defaultTooltipPosition?: ETooltipPosition;
213
+ classNameBaseTooltipContentRoot?: string;
214
+ classNameTooltipRoot?: string;
215
+ classNameBaseTooltipRoot?: string;
216
+ isWithFixedEnd?: boolean;
217
+ isInheritFontStyles?: boolean;
218
+ }
219
+
220
+ export declare enum ETooltipPosition {
221
+ Top = "top",
222
+ TopLeft = "top-left",
223
+ TopRight = "top-right",
224
+ Bottom = "bottom",
225
+ BottomLeft = "bottom-left",
226
+ BottomRight = "bottom-right",
227
+ Left = "left",
228
+ LeftTop = "left-top",
229
+ LeftBottom = "left-bottom",
230
+ Right = "right",
231
+ RightTop = "right-top",
232
+ RightBottom = "right-bottom"
233
+ }
234
+
235
+ export declare const Form: default_2.FC<FormProps>;
236
+
237
+ declare interface FormProps extends default_2.PropsWithChildren {
238
+ size?: TFormSize;
239
+ withSeparator?: boolean;
240
+ classNameRoot?: string;
241
+ addMargin?: boolean;
242
+ fullWidth?: boolean;
243
+ onSubmit?: () => void;
244
+ id?: string;
245
+ name?: string;
246
+ noValidate?: boolean;
247
+ }
248
+
249
+ export declare const Icon: default_2.FC<IconProps>;
250
+
251
+ declare interface IconProps extends default_2.SVGProps<SVGSVGElement> {
252
+ name: EIconName;
253
+ rotate?: number;
254
+ }
255
+
256
+ export declare interface IDatePickerInputProps {
257
+ value?: string;
258
+ name?: string;
259
+ onChange?: TOnChangeDatePickerInput;
260
+ dateFormatMask?: string | (string | RegExp)[];
261
+ variant?: TDatePickerInputVariant;
262
+ disabled?: boolean;
263
+ error?: string;
264
+ placeholderText?: string;
265
+ onClick?: (event: default_2.MouseEvent<HTMLDivElement, MouseEvent>) => void;
266
+ onMouseDownInput?: (event: default_2.MouseEvent<HTMLDivElement, MouseEvent>) => void;
267
+ readOnlyInput?: boolean;
268
+ isVisibleCalendarIcon?: boolean;
269
+ required?: boolean;
270
+ isVisibleErrorText?: boolean;
271
+ isVisibleLabelText?: boolean;
272
+ label?: string;
273
+ infoTooltipText?: string;
274
+ tooltipPosition?: ETooltipPosition;
275
+ classNameRoot?: string;
276
+ classNameLabel?: string;
277
+ classNameError?: string;
278
+ classNameBaseTooltipRoot?: string;
279
+ onMouseEnter?: (event: default_2.MouseEvent<HTMLDivElement, MouseEvent>) => void;
280
+ }
281
+
282
+ declare interface IDatePickerProps extends Omit<IDatePickerInputProps, "classNameRoot" | "onClick" | "value" | "onChange" | "dateFormatMask" | "isVisibleErrorText" | "isVisibleLabelText" | "isVisibleCalendarIcon" | "onMouseEnter"> {
283
+ dateFormatMask?: string | (string | RegExp)[];
284
+ dateFormat?: string;
285
+ value?: string;
286
+ onChange?: TOnChangeDatePicker;
287
+ selected: Date | null;
288
+ minDate?: Date;
289
+ maxDate?: Date;
290
+ isRelative?: boolean;
291
+ required?: boolean;
292
+ isClearable?: boolean;
293
+ closeOnScroll?: boolean;
294
+ shouldCloseOnSelect?: boolean;
295
+ enablePortal?: boolean;
296
+ label?: string;
297
+ infoTooltipText?: string;
298
+ tooltipPosition?: ETooltipPosition;
299
+ onCalendarOpen?: () => void;
300
+ onCalendarClose?: () => void;
301
+ onMouseEnter?: (event: default_2.MouseEvent<HTMLDivElement, MouseEvent>) => void;
302
+ classNameRoot?: string;
303
+ classNameDatePickerInputRoot?: string;
304
+ classNameLabel?: string;
305
+ classNameBaseTooltipRoot?: string;
306
+ classNamePortalRoot?: string;
307
+ }
308
+
309
+ export declare interface IInputProps {
310
+ name: string;
311
+ variant?: TInputVariant;
312
+ onChange?: TOnChangeInput;
313
+ onBlur?: TOnBlurInput;
314
+ value?: string;
315
+ error?: string;
316
+ isAbsolutePositionError?: boolean;
317
+ isClearable?: boolean;
318
+ pattern?: RegExp | string;
319
+ onMouseEnter?: () => void;
320
+ label?: string;
321
+ infoTooltipText?: string;
322
+ tooltipPosition?: ETooltipPosition;
323
+ disabled?: boolean;
324
+ required?: boolean;
325
+ isVisibleDefaultTitle?: boolean;
326
+ placeholder?: string;
327
+ classNameError?: string;
328
+ classNameLabel?: string;
329
+ classNameRoot?: string;
330
+ classNameBaseTooltipRoot?: string;
331
+ ref?: ForwardedRef<HTMLInputElement>;
332
+ mask?: string | (string | RegExp)[];
333
+ alwaysShowMask?: boolean;
334
+ maskChar?: string;
335
+ }
336
+
337
+ declare interface IMediaContext {
338
+ device: {
339
+ isDesktop: boolean;
340
+ isTablet: boolean;
341
+ isMobile: boolean;
342
+ };
343
+ }
344
+
345
+ export declare const InfoTooltip: default_2.FC<InfoTooltipProps>;
346
+
347
+ declare type InfoTooltipProps = Omit<TooltipProps, "trigger">;
348
+
349
+ export declare const Input: default_2.ForwardRefExoticComponent<Omit<IInputProps, "ref"> & default_2.RefAttributes<HTMLInputElement>>;
350
+
351
+ export declare interface ISelectProps {
352
+ options: TSelectOption[];
353
+ isAbsolutePositionError?: boolean;
354
+ placeholder?: string;
355
+ variant?: TSelectVariant;
356
+ value?: string | null | number;
357
+ name: string;
358
+ onChange?: TOnChangeSelect;
359
+ onBlur?: TOnBlurSelect;
360
+ onMouseEnter?: () => void;
361
+ error?: string;
362
+ label?: string;
363
+ infoTooltipText?: string;
364
+ tooltipPosition?: ETooltipPosition;
365
+ disabled?: boolean;
366
+ required?: boolean;
367
+ maxHeightList?: number;
368
+ isVisibleDefaultTitle?: boolean;
369
+ isScrollableList?: boolean;
370
+ classNameRoot?: string;
371
+ classNameError?: string;
372
+ classNameLabel?: string;
373
+ classNameBaseTooltipRoot?: string;
374
+ isSearchable?: boolean;
375
+ searchPlaceholder?: string;
376
+ }
377
+
378
+ declare interface IUseTableActionsProps<T> {
379
+ onEdit?: (data: T) => void;
380
+ onDelete?: (key: string) => void;
381
+ onRowClick?: (data: T) => void;
382
+ onCustomAction?: (action: TClickOnCellAction<T>) => void;
383
+ }
384
+
385
+ export declare const Label: default_2.FC<LabelProps>;
386
+
387
+ declare interface LabelProps {
388
+ required?: boolean;
389
+ label?: string;
390
+ infoTooltipText?: string;
391
+ tooltipPosition?: ETooltipPosition;
392
+ classNameRoot?: string;
393
+ classNameBaseTooltipRoot?: string;
394
+ }
395
+
396
+ export declare const Layer: default_2.FC<LayerProps>;
397
+
398
+ declare interface LayerProps {
399
+ children: default_2.ReactNode;
400
+ zIndex?: number;
401
+ isHiddenModal?: boolean;
402
+ classNameRoot?: string;
403
+ }
404
+
405
+ export declare const MediaContext: default_2.Context<IMediaContext>;
406
+
407
+ export declare const MediaContextProvider: default_2.FC<MediaContextProviderProps>;
408
+
409
+ declare interface MediaContextProviderProps extends default_2.PropsWithChildren {
410
+ breakpoints?: TBreakpoints;
411
+ }
412
+
413
+ export declare const Modal: default_2.FC<ModalProps>;
414
+
415
+ declare interface ModalProps extends default_2.PropsWithChildren {
416
+ zIndex?: number;
417
+ size?: TModalSize;
418
+ modalVerticalAlign?: TModalVerticalAlign;
419
+ textAlign?: TTextAlign;
420
+ isHiddenModal?: boolean;
421
+ isVisibleCloseButton?: boolean;
422
+ classNameRoot?: string;
423
+ classNameHeaderRoot?: string;
424
+ classNameSubHeaderRoot?: string;
425
+ classNameFooterRoot?: string;
426
+ classNameLayerRoot?: string;
427
+ header: string | ReactNode;
428
+ footer?: ReactNode;
429
+ style?: CSSProperties;
430
+ subHeader?: ReactNode;
431
+ onClose?: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
432
+ disabled?: boolean;
433
+ loading?: boolean;
434
+ }
435
+
436
+ export declare const Portal: default_2.FC<PortalProps>;
437
+
438
+ declare interface PortalProps extends default_2.PropsWithChildren {
439
+ node?: Element | DocumentFragment | null;
440
+ classNameRoot?: string;
441
+ }
442
+
443
+ export declare const ProgressWrapper: default_2.FC<ProgressWrapperProps>;
444
+
445
+ export declare interface ProgressWrapperProps extends PropsWithChildren {
446
+ value: number;
447
+ classNameRoot?: string;
448
+ classNameProgressBadgeRoot?: string;
449
+ duration?: number;
450
+ doneValue?: number;
451
+ animationVariant?: TProgressWrapperAnimationVariant;
452
+ onSuccessLoaded?: () => void;
453
+ }
454
+
455
+ export declare const Select: default_2.FC<ISelectProps>;
456
+
457
+ export declare const Skeleton: default_2.FC<SkeletonProps>;
458
+
459
+ declare interface SkeletonProps {
460
+ startColor?: string;
461
+ endColor?: string;
462
+ width?: number | string;
463
+ height?: number | string;
464
+ circle?: boolean;
465
+ classNameRoot?: string;
466
+ style?: default_2.CSSProperties;
467
+ }
468
+
469
+ export declare const Spinner: default_2.FC<SpinnerProps>;
470
+
471
+ declare interface SpinnerProps {
472
+ size?: SpinnerSize;
473
+ color?: string;
474
+ classNameRoot?: string;
475
+ /** Текст под спиннером; в конце отображаются четыре точки с волновой анимацией */
476
+ loadingText?: string;
477
+ classNameSpinnerTextLine?: string;
478
+ }
479
+
480
+ declare type SpinnerSize = "sm" | "md" | "lg" | "xl";
481
+
482
+ export declare const Table: <TData extends object>(props: TableProps<TData>) => JSX_2.Element;
483
+
484
+ export declare interface TableProps<TData extends object = Record<string, unknown>> {
485
+ data: TData[];
486
+ columns: TColumn<TData>[];
487
+ dispatch?: Dispatch<TClickOnCellAction<TData>>;
488
+ classNameRoot?: string;
489
+ classNameTableRoot?: string;
490
+ classNameTdContentRoot?: string;
491
+ renderCellContent?: (row: TData, col: TColumn<TData>) => ReactNode;
492
+ styleVariant?: TTableStyleVariant;
493
+ noData?: {
494
+ isVisibleHeader?: boolean;
495
+ noDataText?: string;
496
+ };
497
+ loading?: boolean;
498
+ hasError?: boolean;
499
+ errorText?: string;
500
+ }
501
+
502
+ export declare const Tabs: default_2.FC<TabsProps>;
503
+
504
+ declare interface TabsProps {
505
+ size?: "md" | "lg";
506
+ panes: TPaneItem[];
507
+ isSeparated?: boolean;
508
+ variant?: TTabsVariant;
509
+ classNameRoot?: string;
510
+ classNameTabElementRoot?: string;
511
+ classNameBaseTooltipRoot?: string;
512
+ }
513
+
514
+ declare type TAccordionLevel = 1 | 2;
515
+
516
+ declare type TApplyButtonsAlign = "left" | "center" | "right";
517
+
518
+ declare type TApplyButtonsMobileDirection = "row" | "column" | "column-reverse";
519
+
520
+ declare type TBreakpoints = {
521
+ desktop: {
522
+ minWidth: number;
523
+ };
524
+ tablet: {
525
+ minWidth: number;
526
+ maxWidth: number;
527
+ };
528
+ mobile: {
529
+ maxWidth: number;
530
+ };
531
+ };
532
+
533
+ declare type TButtonColor = "blue" | "white";
534
+
535
+ declare type TButtonIconPosition = "start" | "end";
536
+
537
+ declare type TButtonType = "submit" | "reset" | "button";
538
+
539
+ export declare type TButtonVariant = "primary" | "secondary" | "link";
540
+
541
+ declare type TCheckboxSize = "md" | "lg";
542
+
543
+ export declare type TClickOnCellAction<TData> = {
544
+ clickOn: string;
545
+ rowData: TData;
546
+ };
547
+
548
+ export declare type TColumn<TData> = {
549
+ key: keyof TData | TDefaultColumnKey;
550
+ title: string;
551
+ isVisible?: boolean;
552
+ isClickable?: boolean;
553
+ isSortable?: boolean;
554
+ isDisabled?: boolean;
555
+ width?: number;
556
+ renderCell?: (row: TData, col: TColumn<TData>) => ReactNode;
557
+ sortBy?: keyof TData;
558
+ };
559
+
560
+ export declare type TContextMenuOption = {
561
+ key?: string;
562
+ value?: string;
563
+ label?: string;
564
+ iconName?: EIconName;
565
+ };
566
+
567
+ export declare type TCrumbItem = {
568
+ text: string;
569
+ onClick?: () => void;
570
+ active?: boolean;
571
+ visible?: boolean;
572
+ };
573
+
574
+ declare type TDatePickerInputVariant = "outlined" | "filled";
575
+
576
+ declare type TDefaultColumnKey = "controls" | "deleteControl" | "editControl";
577
+
578
+ declare type TDropdownListItem = {
579
+ name: string;
580
+ onClick?: () => void;
581
+ description?: string;
582
+ textCenter?: boolean;
583
+ };
584
+
585
+ declare const Text_2: default_2.ForwardRefExoticComponent<Omit<TextProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
586
+ export { Text_2 as Text }
587
+
588
+ export declare const Textarea: default_2.ForwardRefExoticComponent<Omit<TextareaProps, "ref"> & default_2.RefAttributes<HTMLTextAreaElement>>;
589
+
590
+ declare interface TextareaProps {
591
+ name: string;
592
+ variant?: TTextareaVariant;
593
+ onChange: TOnChangeTextarea;
594
+ value?: string;
595
+ error?: string;
596
+ isAbsolutePositionError?: boolean;
597
+ onMouseEnter?: () => void;
598
+ label?: string;
599
+ infoTooltipText?: string;
600
+ tooltipPosition?: ETooltipPosition;
601
+ disabled?: boolean;
602
+ required?: boolean;
603
+ autoSize?: boolean;
604
+ isVisibleDefaultTitle?: boolean;
605
+ fluidHeight?: boolean;
606
+ placeholder?: string;
607
+ classNameError?: string;
608
+ classNameLabel?: string;
609
+ classNameRoot?: string;
610
+ classNameBaseTooltipRoot?: string;
611
+ ref?: ForwardedRef<HTMLTextAreaElement>;
612
+ resize?: TTextareaResize;
613
+ rows?: number;
614
+ maxRows?: number;
615
+ cols?: number;
616
+ maxLength?: number;
617
+ minLength?: number;
618
+ readOnly?: boolean;
619
+ autoFocus?: boolean;
620
+ autoComplete?: string;
621
+ spellCheck?: boolean;
622
+ wrap?: TTextareaWrap;
623
+ onBlur?: (event: default_2.FocusEvent<HTMLTextAreaElement>) => void;
624
+ onFocus?: (event: default_2.FocusEvent<HTMLTextAreaElement>) => void;
625
+ }
626
+
627
+ declare interface TextProps {
628
+ children?: string | ReactNode;
629
+ color?: string;
630
+ title?: string;
631
+ classNameRoot?: string;
632
+ style?: default_2.CSSProperties;
633
+ onClick?: (e: default_2.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
634
+ isEllipsis?: boolean;
635
+ isCursorPointer?: boolean;
636
+ isCursorPointerByOnClick?: boolean;
637
+ type?: TTextType;
638
+ ref?: ForwardedRef<HTMLDivElement>;
639
+ }
640
+
641
+ export declare const TextWithLabel: default_2.FC<TextWithLabelProps>;
642
+
643
+ declare interface TextWithLabelProps extends TextProps, Omit<LabelProps, "classNameRoot"> {
644
+ classNameLabelRoot?: string;
645
+ classNameWrapperRoot?: string;
646
+ }
647
+
648
+ declare type TFormSize = "md" | "lg";
649
+
650
+ declare type TImageDimensionsPx = {
651
+ width: number;
652
+ height: number;
653
+ };
654
+
655
+ declare type TInputVariant = "outlined" | "filled";
656
+
657
+ declare type TModalSize = "md" | "lg";
658
+
659
+ declare type TModalVerticalAlign = "center" | "top";
660
+
661
+ export declare type TOnBlurInput = (event: default_2.FocusEvent<HTMLInputElement>, data: {
662
+ name: string;
663
+ value: string | null;
664
+ }) => void;
665
+
666
+ export declare type TOnBlurSelect = (data: {
667
+ value: string | null | number;
668
+ name: string;
669
+ }) => void;
670
+
671
+ export declare type TOnChangeCheckbox = (event: default_2.ChangeEvent<HTMLInputElement>, data: {
672
+ name: string;
673
+ value?: string;
674
+ checked: boolean;
675
+ }) => void;
676
+
677
+ export declare type TOnChangeDatePicker = (data: {
678
+ name: string;
679
+ value: Date | null;
680
+ }, event?: default_2.ChangeEvent<HTMLInputElement>) => void;
681
+
682
+ export declare type TOnChangeDatePickerInput = (event: default_2.ChangeEvent<HTMLInputElement>, data: {
683
+ name: string;
684
+ value: string | null;
685
+ }) => void;
686
+
687
+ export declare type TOnChangeInput = (event: default_2.ChangeEvent<HTMLInputElement>, data: {
688
+ name: string;
689
+ value: string | null;
690
+ }) => void;
691
+
692
+ export declare type TOnChangeSelect = (event: default_2.MouseEvent<HTMLDivElement>, data: {
693
+ value: string | null | number;
694
+ name: string;
695
+ }) => void;
696
+
697
+ export declare type TOnChangeTextarea = (event: default_2.ChangeEvent<HTMLTextAreaElement>, data: {
698
+ name: string;
699
+ value: string | null;
700
+ }) => void;
701
+
702
+ export declare const Tooltip: default_2.FC<TooltipProps>;
703
+
704
+ declare interface TooltipProps extends Omit<BaseTooltipProps, "classNameRoot" | "classNameContentRoot"> {
705
+ hover?: boolean;
706
+ isToggleClick?: boolean;
707
+ isVisibleTooltip?: boolean;
708
+ position?: ETooltipPosition;
709
+ /** When true, disables position recalculation — only the passed `position` is used. */
710
+ lockPosition?: boolean;
711
+ trigger?: default_2.ReactNode;
712
+ triggerAction?: () => void;
713
+ actionOnClose?: () => void;
714
+ classNameTooltip?: string;
715
+ classNameBaseTooltipRoot?: string;
716
+ classNameBaseTooltipContentRoot?: string;
717
+ isStopPropagationClickOnTrigger?: boolean;
718
+ styleTooltip?: default_2.CSSProperties;
719
+ triggerTooltipGap?: number;
720
+ }
721
+
722
+ export declare type TPaneItem = {
723
+ name: string;
724
+ key?: string;
725
+ active?: boolean;
726
+ onClick?: (event: default_2.MouseEvent<HTMLDivElement>) => void;
727
+ infoTooltipText?: string;
728
+ };
729
+
730
+ declare type TProgressWrapperAnimationVariant = "pulse" | "backgroundProgress";
731
+
732
+ export declare type TSelectOption = {
733
+ value: string | null | number;
734
+ label: string;
735
+ key?: string;
736
+ };
737
+
738
+ declare type TSelectVariant = "outlined" | "filled";
739
+
740
+ declare type TTableStyleVariant = "default" | "znp";
741
+
742
+ declare type TTabsVariant = "filled" | "contained" | "outlined";
743
+
744
+ declare type TTextAlign = "center" | "left" | "right";
745
+
746
+ declare type TTextareaResize = "none" | "both" | "horizontal" | "vertical";
747
+
748
+ declare type TTextareaVariant = "outlined" | "filled";
749
+
750
+ declare type TTextareaWrap = "hard" | "soft" | "off";
751
+
752
+ declare type TTextType = "h1" | "h3" | "p1" | "p2" | "description" | "link";
753
+
754
+ declare type TUseAnimatedValueProps = {
755
+ targetValue: number;
756
+ doneValue: number;
757
+ duration?: number;
758
+ onSuccessLoaded?: () => void;
759
+ };
760
+
761
+ export declare const UploadFiles: default_2.FC<UploadFilesProps>;
762
+
763
+ declare interface UploadFilesProps {
764
+ placeholder?: string;
765
+ variant?: "input" | "dropzone";
766
+ name: string;
767
+ onDropFiles: <T extends File>(acceptedFiles: T[], name: string, fileRejections?: FileRejection[], event?: DropEvent) => void;
768
+ label?: string;
769
+ required?: boolean;
770
+ accept?: Accept;
771
+ disabled?: boolean;
772
+ multiple?: boolean;
773
+ files: File[];
774
+ infoTooltipText?: string;
775
+ tooltipPosition?: ETooltipPosition;
776
+ classNameRoot?: string;
777
+ classNameLabel?: string;
778
+ loading?: boolean;
779
+ error?: string;
780
+ classNameBaseInfoTooltipRoot?: string;
781
+ maxSizeMb?: number;
782
+ requiredImageDimensionsPx?: TImageDimensionsPx;
783
+ }
784
+
785
+ export declare const useAnimatedValue: (props: TUseAnimatedValueProps) => {
786
+ animatedValue: number;
787
+ isLoading: boolean;
788
+ };
789
+
790
+ export declare const useModal: (params?: UseModalParams) => {
791
+ isOpen: boolean;
792
+ modalData: {
793
+ [name: string]: any;
794
+ } | null;
795
+ onOpenModal: (modalData: {
796
+ [name: string]: boolean | NonNullable<unknown>;
797
+ }, isKeepRest?: boolean) => void;
798
+ onCloseModal: (_event?: default_2.MouseEvent<HTMLButtonElement>, closeData?: {
799
+ [name: string]: boolean | NonNullable<unknown>;
800
+ }) => void;
801
+ };
802
+
803
+ declare interface UseModalParams {
804
+ initialValue?: never;
805
+ }
806
+
807
+ export declare const useTableActions: <T extends {
808
+ key?: string | number;
809
+ id?: string | number;
810
+ }>({ onEdit, onDelete, onRowClick, onCustomAction, }?: IUseTableActionsProps<T>) => (action: TClickOnCellAction<T>) => void;
811
+
812
+ export declare const ViewImageModal: default_2.FC<ViewImageModalProps>;
813
+
814
+ declare interface ViewImageModalProps {
815
+ src: string;
816
+ fallbackSrc?: string;
817
+ zIndex?: number;
818
+ classNameRoot?: string;
819
+ classNameImageRoot?: string;
820
+ showLoader?: boolean;
821
+ onError?: (event: default_2.SyntheticEvent<HTMLImageElement, Event>) => void;
822
+ onLoad?: (event: default_2.SyntheticEvent<HTMLImageElement, Event>) => void;
823
+ onClose: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
824
+ }
825
+
826
+ export { }