test-stpr-ui-kit 0.0.1 → 0.1.1

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.
@@ -1,13 +1,354 @@
1
+ import { default as CheckIcon } from '../../images/check.svg?react';
2
+ import { default as ChevronDownIcon } from '../../images/chevron-down.svg?react';
3
+ import { default as CloseIcon } from '../../images/close.svg?react';
4
+ import { Context } from 'react';
5
+ import { default as CopyIcon } from '../../images/copy.svg?react';
6
+ import { CSSProperties } from 'react';
1
7
  import { default as default_2 } from 'react';
8
+ import { default as InfoIcon } from '../../images/info.svg?react';
9
+ import { MouseEventHandler } from 'react';
10
+ import { MutableRefObject } from 'react';
11
+ import { default as PlusIcon } from '../../images/plus.svg?react';
12
+ import { default as PlusSquareIcon } from '../../images/plus-square.svg?react';
13
+ import { ReactNode } from 'react';
14
+ import { default as SelectChevronDownIcon } from '../../images/select-chevron-down.svg?react';
15
+ import { default as TrashIcon } from '../../images/trash.svg?react';
16
+ import { default as UploadIcon } from '../../images/upload.svg?react';
17
+
18
+ export declare const Accordion: default_2.FC<AccordionProps>;
19
+
20
+ export declare interface AccordionProps extends default_2.PropsWithChildren {
21
+ name?: string;
22
+ onOpen?: (open: boolean) => void;
23
+ defaultOpen?: boolean;
24
+ isHiddenExpandIcon?: boolean;
25
+ noBorder?: boolean;
26
+ noPadding?: boolean;
27
+ classNameRoot?: string;
28
+ classNameHeader?: string;
29
+ classNameTitle?: string;
30
+ classNameIcon?: string;
31
+ classNameChildrenWrapper?: string;
32
+ }
33
+
34
+ export declare const BaseTooltip: default_2.FC<BaseTooltipProps>;
35
+
36
+ export declare interface BaseTooltipProps {
37
+ position?: ETooltipPosition;
38
+ text?: string | ReactNode;
39
+ noPadding?: boolean;
40
+ classNameRoot?: string;
41
+ }
42
+
43
+ export declare const Button: default_2.FC<ButtonProps>;
44
+
45
+ export declare interface ButtonProps extends default_2.PropsWithChildren {
46
+ color?: TButtonColor;
47
+ variant?: TButtonVariant;
48
+ style?: CSSProperties;
49
+ onClick?: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
50
+ disabled?: boolean;
51
+ type?: TButtonType;
52
+ form?: string;
53
+ isFullWidth?: boolean;
54
+ isOnlyIcon?: boolean;
55
+ iconName?: EIconName;
56
+ classNameRoot?: string;
57
+ }
58
+
59
+ export declare const Checkbox: default_2.FC<CheckboxProps>;
60
+
61
+ export declare interface CheckboxProps {
62
+ checked?: boolean;
63
+ disabled?: boolean;
64
+ onChange: (event: default_2.ChangeEvent<HTMLInputElement>, data: {
65
+ name: string;
66
+ value?: string;
67
+ checked?: boolean;
68
+ }) => void;
69
+ name: string;
70
+ label?: string;
71
+ error?: string;
72
+ value?: string;
73
+ required?: boolean;
74
+ tooltipPosition?: ETooltipPosition;
75
+ infoTooltipText?: string;
76
+ onMouseEnter?: (event: default_2.MouseEvent<HTMLDivElement>) => void;
77
+ classNameRoot?: string;
78
+ classNameError?: string;
79
+ }
80
+
81
+ export { CheckIcon }
82
+
83
+ export { ChevronDownIcon }
84
+
85
+ export { CloseIcon }
86
+
87
+ export { CopyIcon }
88
+
89
+ export declare const Dropdown: default_2.FC<DropdownProps>;
90
+
91
+ export declare interface DropdownProps {
92
+ labelText?: string;
93
+ listName?: string;
94
+ classNameRoot?: string;
95
+ dropdownList: TDropdownListItem[];
96
+ dropdownPosition?: ETooltipPosition;
97
+ }
98
+
99
+ export declare enum EIconName {
100
+ ChevronDown = "chevronDown",
101
+ Info = "info",
102
+ Plus = "plus",
103
+ SelectChevronDown = "selectChevronDown",
104
+ Upload = "upload",
105
+ Trash = "trash",
106
+ Check = "check",
107
+ Copy = "copy",
108
+ Close = "close",
109
+ PlusSquare = "plusSquare"
110
+ }
111
+
112
+ export declare enum ETooltipPosition {
113
+ Top = "top",
114
+ TopLeft = "top-left",
115
+ TopRight = "top-right",
116
+ Bottom = "bottom",
117
+ BottomLeft = "bottom-left",
118
+ BottomRight = "bottom-right",
119
+ Left = "left",
120
+ LeftTop = "left-top",
121
+ LeftBottom = "left-bottom",
122
+ Right = "right",
123
+ RightTop = "right-top",
124
+ RightBottom = "right-bottom"
125
+ }
126
+
127
+ export declare const Form: default_2.FC<FormProps>;
128
+
129
+ export declare interface FormProps extends default_2.PropsWithChildren {
130
+ withSeparator?: boolean;
131
+ classNameRoot?: string;
132
+ addMargin?: boolean;
133
+ fullWidth?: boolean;
134
+ onSubmit?: () => void;
135
+ id?: string;
136
+ name?: string;
137
+ noValidate?: boolean;
138
+ autoComplete?: default_2.AutoFillBase;
139
+ }
140
+
141
+ export declare const Icon: default_2.FC<IconProps>;
142
+
143
+ export declare interface IconProps extends default_2.SVGProps<SVGSVGElement> {
144
+ name: EIconName;
145
+ rotate?: number;
146
+ }
147
+
148
+ export declare interface IMediaContext {
149
+ device: {
150
+ isDesktop: boolean;
151
+ isTablet: boolean;
152
+ isMobile: boolean;
153
+ };
154
+ }
155
+
156
+ export { InfoIcon }
157
+
158
+ export declare const InfoTooltip: default_2.FC<TooltipProps>;
159
+
160
+ export declare const Input: default_2.ForwardRefExoticComponent<InputProps & default_2.RefAttributes<HTMLInputElement>>;
161
+
162
+ export declare interface InputProps {
163
+ name: string;
164
+ onChange: (event: default_2.ChangeEvent<HTMLInputElement>, data: {
165
+ name: string;
166
+ value?: string;
167
+ checked?: boolean;
168
+ }) => void;
169
+ value?: string;
170
+ error?: string;
171
+ isClearable?: boolean;
172
+ pattern?: RegExp | string;
173
+ onMouseEnter?: () => void;
174
+ label?: string;
175
+ infoTooltipText?: string;
176
+ tooltipPosition?: ETooltipPosition;
177
+ disabled?: boolean;
178
+ required?: boolean;
179
+ isVisibleDefaultTitle?: boolean;
180
+ placeholder?: string;
181
+ classNameError?: string;
182
+ classNameLabel?: string;
183
+ classNameRoot?: string;
184
+ }
2
185
 
3
186
  export declare const Label: default_2.FC<LabelProps>;
4
187
 
5
188
  export declare interface LabelProps {
6
189
  required?: boolean;
7
190
  label?: string;
8
- isVisibleTooltip?: boolean;
9
- tooltip?: JSX.Element;
191
+ infoTooltipText?: string;
192
+ tooltipPosition?: ETooltipPosition;
10
193
  classNameRoot?: string;
11
194
  }
12
195
 
196
+ export declare const MediaContext: Context<IMediaContext>;
197
+
198
+ export declare const MediaContextProvider: default_2.FC<MediaContextProviderProps>;
199
+
200
+ export declare interface MediaContextProviderProps extends default_2.PropsWithChildren {
201
+ breakpoints: TBreakpoints;
202
+ }
203
+
204
+ export { PlusIcon }
205
+
206
+ export { PlusSquareIcon }
207
+
208
+ export declare const Select: default_2.FC<SelectProps>;
209
+
210
+ export { SelectChevronDownIcon }
211
+
212
+ export declare type SelectOption = {
213
+ value: string | null;
214
+ label: string;
215
+ };
216
+
217
+ export declare interface SelectProps {
218
+ options: SelectOption[];
219
+ placeholder?: string;
220
+ value?: string;
221
+ name: string;
222
+ onChange: (event: default_2.ChangeEvent<HTMLSelectElement> | default_2.MouseEvent<HTMLDivElement, MouseEvent>, data: {
223
+ value: string | null;
224
+ name: string;
225
+ }) => void;
226
+ onMouseEnter?: () => void;
227
+ error?: string;
228
+ label?: string;
229
+ infoTooltipText?: string;
230
+ tooltipPosition?: ETooltipPosition;
231
+ disabled?: boolean;
232
+ required?: boolean;
233
+ maxHeightList?: number;
234
+ isVisibleDefaultTitle?: boolean;
235
+ classNameRoot?: string;
236
+ classNameError?: string;
237
+ classNameLabel?: string;
238
+ }
239
+
240
+ export declare type SVGComponent = default_2.FC<default_2.SVGProps<SVGSVGElement>>;
241
+
242
+ export declare const Table: default_2.FC<TableProps>;
243
+
244
+ export declare interface TableProps {
245
+ isNotTableOnNotDesktop?: boolean;
246
+ data: TTableRowsData;
247
+ columns: TTableColumnsData;
248
+ classNameRoot?: string;
249
+ }
250
+
251
+ export declare const Tabs: default_2.FC<TabsProps>;
252
+
253
+ export declare interface TabsProps {
254
+ panes: TPaneItem[];
255
+ isSeparated?: boolean;
256
+ classNameRoot?: string;
257
+ }
258
+
259
+ export declare type TBreakpoints = {
260
+ desktop: {
261
+ minWidth: number;
262
+ };
263
+ tablet: {
264
+ minWidth: number;
265
+ maxWidth: number;
266
+ };
267
+ mobile: {
268
+ maxWidth: number;
269
+ };
270
+ };
271
+
272
+ export declare type TButtonColor = "blue" | "white";
273
+
274
+ export declare type TButtonType = "submit" | "reset" | "button";
275
+
276
+ export declare type TButtonVariant = "primary" | "secondary" | "link";
277
+
278
+ export declare type TDropdownListItem = {
279
+ name: string;
280
+ onClick?: () => void;
281
+ description?: string;
282
+ textCenter?: boolean;
283
+ };
284
+
285
+ declare const Text_2: default_2.FC<TextProps>;
286
+ export { Text_2 as Text }
287
+
288
+ export declare interface TextProps {
289
+ children?: string | ReactNode;
290
+ color?: string;
291
+ title?: string;
292
+ classNameRoot?: string;
293
+ style?: default_2.CSSProperties;
294
+ onClick?: MouseEventHandler<HTMLElement>;
295
+ isLink?: boolean;
296
+ isCursorPointer?: boolean;
297
+ isCursorPointerByOnClick?: boolean;
298
+ type?: "h1" | "p1" | "p2";
299
+ }
300
+
301
+ export declare const Tooltip: default_2.FC<TooltipProps>;
302
+
303
+ export declare interface TooltipProps extends BaseTooltipProps {
304
+ hover?: boolean;
305
+ toggleClick?: boolean;
306
+ trigger?: default_2.ReactNode;
307
+ triggerAction?: () => void;
308
+ classNameTriggerTooltip?: string;
309
+ classNameRootBaseTooltip?: string;
310
+ }
311
+
312
+ export declare type TPaneItem = {
313
+ name: string;
314
+ key?: string;
315
+ active?: boolean;
316
+ onClick?: (event: default_2.MouseEvent<HTMLDivElement>) => void;
317
+ infoTooltipText?: string;
318
+ };
319
+
320
+ export { TrashIcon }
321
+
322
+ export declare type TTableColumnsData = TTableColumnsDataItem[];
323
+
324
+ export declare type TTableColumnsDataItem = {
325
+ key: keyof TTableRowsDataItem;
326
+ title: string;
327
+ isBeCopiedValue?: boolean;
328
+ isColorContentsCurlyBrackets?: boolean;
329
+ isVisible?: boolean;
330
+ };
331
+
332
+ export declare type TTableRowsData = TTableRowsDataItem[];
333
+
334
+ export declare type TTableRowsDataItem = {
335
+ name: string;
336
+ description?: string;
337
+ };
338
+
339
+ export { UploadIcon }
340
+
341
+ export declare const useContentHeight: (open: boolean) => {
342
+ contentRef: MutableRefObject<HTMLDivElement | null>;
343
+ height: string;
344
+ };
345
+
346
+ export declare const useMediaContext: (breakpoints: TBreakpoints) => {
347
+ device: {
348
+ isDesktop: boolean;
349
+ isTablet: boolean;
350
+ isMobile: boolean;
351
+ };
352
+ };
353
+
13
354
  export { }