tcce-design-system 0.1.21 → 0.1.23
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,24 +1,35 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes } from 'react';
|
|
2
2
|
import { ButtonHTMLAttributes } from 'react';
|
|
3
|
+
import { ChangeEvent } from 'react';
|
|
4
|
+
import { ClipboardEvent as ClipboardEvent_2 } from 'react';
|
|
3
5
|
import { Component } from 'react';
|
|
4
6
|
import { Context } from 'react';
|
|
7
|
+
import { CSSProperties } from 'react';
|
|
5
8
|
import { default as default_2 } from 'react';
|
|
6
9
|
import { DetailedHTMLProps } from 'react';
|
|
10
|
+
import { Dispatch } from 'react';
|
|
7
11
|
import { FastOmit } from 'styled-components';
|
|
8
12
|
import { ForwardRefComponent } from 'motion/react';
|
|
9
13
|
import { ForwardRefExoticComponent } from 'react';
|
|
10
14
|
import { HTMLAttributeAnchorTarget } from 'react';
|
|
11
15
|
import { HTMLAttributes } from 'react';
|
|
12
16
|
import { HTMLMotionProps } from 'motion/react';
|
|
17
|
+
import { InputHTMLAttributes } from 'react';
|
|
13
18
|
import { IStyledComponentBase } from 'styled-components/dist/types';
|
|
14
19
|
import { JSX } from 'react/jsx-runtime';
|
|
20
|
+
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
|
21
|
+
import { LabelHTMLAttributes } from 'react';
|
|
15
22
|
import { MouseEventHandler } from 'react';
|
|
16
23
|
import { PropsWithChildren } from 'react';
|
|
17
24
|
import { ReactNode } from 'react';
|
|
18
25
|
import { RefAttributes } from 'react';
|
|
26
|
+
import { RefObject } from 'react';
|
|
19
27
|
import { RemixiconComponentType } from '@remixicon/react';
|
|
20
28
|
import { RuleSet } from 'styled-components';
|
|
29
|
+
import { SelectHTMLAttributes } from 'react';
|
|
30
|
+
import { SetStateAction } from 'react';
|
|
21
31
|
import { Substitute } from 'styled-components/dist/types';
|
|
32
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
22
33
|
import { toast } from 'sonner';
|
|
23
34
|
import { ToasterProps } from 'sonner';
|
|
24
35
|
|
|
@@ -44,7 +55,7 @@ $open: boolean;
|
|
|
44
55
|
* @param param0 - Props for the Badge component.
|
|
45
56
|
* @returns The Badge component.
|
|
46
57
|
*/
|
|
47
|
-
export declare const Badge:
|
|
58
|
+
export declare const Badge: ({ children, variant, size, color, leftIcon, rightIcon, iconColor, iconSize, ...props }: BadgeProps) => JSX.Element;
|
|
48
59
|
|
|
49
60
|
/**
|
|
50
61
|
* Props for the Badge component.
|
|
@@ -56,7 +67,7 @@ export declare const Badge: default_2.FC<BadgeProps>;
|
|
|
56
67
|
* @param iconColor - Color of the icons. Default is 'currentColor'.
|
|
57
68
|
* @param iconSize - Size of the icons. Default is 'sm'.
|
|
58
69
|
*/
|
|
59
|
-
declare interface BadgeProps extends
|
|
70
|
+
declare interface BadgeProps extends HTMLAttributes<HTMLSpanElement>, WithIconsProps {
|
|
60
71
|
variant?: BadgeVariant;
|
|
61
72
|
size?: BadgeSize;
|
|
62
73
|
color?: string;
|
|
@@ -83,7 +94,7 @@ export declare const baseContentTableStyles: RuleSet<object>;
|
|
|
83
94
|
|
|
84
95
|
export declare const baseFieldStyles: RuleSet<object>;
|
|
85
96
|
|
|
86
|
-
export declare interface BaseFormFieldProps extends Omit<
|
|
97
|
+
export declare interface BaseFormFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
87
98
|
size?: FormFieldSize;
|
|
88
99
|
hasError?: boolean;
|
|
89
100
|
disabled?: boolean;
|
|
@@ -99,13 +110,32 @@ export declare interface BaseInputProps extends Omit<BaseFormFieldProps, 'type'>
|
|
|
99
110
|
|
|
100
111
|
export declare const baseInputStyles: RuleSet<object>;
|
|
101
112
|
|
|
102
|
-
export declare interface BaseLabelProps extends
|
|
113
|
+
export declare interface BaseLabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
103
114
|
size?: LabelSize;
|
|
104
115
|
disabled?: boolean;
|
|
105
116
|
required?: boolean;
|
|
106
117
|
className?: string;
|
|
107
118
|
}
|
|
108
119
|
|
|
120
|
+
/**
|
|
121
|
+
* Base props for the Spinner component.
|
|
122
|
+
* @interface BaseSpinnerProps
|
|
123
|
+
* @property {Size} [size] - Size of the spinner.
|
|
124
|
+
* @property {ColorKey} [color] - Color variant of the spinner.
|
|
125
|
+
* @property {boolean} [centered] - Whether to center the spinner in a container.
|
|
126
|
+
* @property {string} [message] - Optional message to display with the spinner.
|
|
127
|
+
* @property {string} [title] - Optional title for accessibility.
|
|
128
|
+
* @property {Variant} [variant] - Animation variant of the spinner.
|
|
129
|
+
*/
|
|
130
|
+
export declare interface BaseSpinnerProps {
|
|
131
|
+
size?: Size;
|
|
132
|
+
color?: ColorKey;
|
|
133
|
+
centered?: boolean;
|
|
134
|
+
message?: string;
|
|
135
|
+
title?: string;
|
|
136
|
+
variant?: Variant;
|
|
137
|
+
}
|
|
138
|
+
|
|
109
139
|
export declare const baseTableCellsSizes: {
|
|
110
140
|
sm: RuleSet<object>;
|
|
111
141
|
md: RuleSet<object>;
|
|
@@ -127,9 +157,9 @@ export declare const bodyTextStyles: {
|
|
|
127
157
|
|
|
128
158
|
export declare const BrandLogo: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
129
159
|
|
|
130
|
-
export declare const Button:
|
|
160
|
+
export declare const Button: ({ children, variant, size, isLoading, disabled, leftIcon, rightIcon, iconSize, iconColor, ...props }: ButtonProps) => JSX.Element;
|
|
131
161
|
|
|
132
|
-
declare interface ButtonProps extends
|
|
162
|
+
declare interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, WithIconsProps {
|
|
133
163
|
variant?: ButtonVariant;
|
|
134
164
|
size?: ButtonSize;
|
|
135
165
|
isLoading?: boolean;
|
|
@@ -137,49 +167,52 @@ declare interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonEleme
|
|
|
137
167
|
|
|
138
168
|
declare type ButtonSize = 'sm' | 'md' | 'lg';
|
|
139
169
|
|
|
140
|
-
export declare const ButtonSpinner: default_2.FC<{
|
|
141
|
-
color?: ColorKey;
|
|
142
|
-
variant?: Variant;
|
|
143
|
-
}>;
|
|
144
|
-
|
|
145
170
|
declare type ButtonVariant = 'primary' | 'secondary' | 'cancel' | 'outline';
|
|
146
171
|
|
|
147
|
-
export declare const Card:
|
|
172
|
+
export declare const Card: ({ variant, size, disabled, onClick, children, ...props }: CardProps) => JSX.Element;
|
|
173
|
+
|
|
174
|
+
export declare const CardBody: ({ children, showDivider, ...props }: CardBodyProps) => JSX.Element;
|
|
148
175
|
|
|
149
|
-
|
|
176
|
+
declare interface CardBodyProps extends HTMLAttributes<HTMLDivElement> {
|
|
177
|
+
showDivider?: boolean;
|
|
178
|
+
}
|
|
150
179
|
|
|
151
|
-
export declare const CardFooter:
|
|
180
|
+
export declare const CardFooter: ({ children, ...props }: HTMLAttributes<HTMLDivElement>) => JSX.Element;
|
|
152
181
|
|
|
153
|
-
export declare const CardHeader:
|
|
182
|
+
export declare const CardHeader: ({ children, showDivider, ...props }: CardHeaderProps) => JSX.Element;
|
|
154
183
|
|
|
155
|
-
|
|
184
|
+
declare interface CardHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
185
|
+
showDivider?: boolean;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export declare interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
156
189
|
variant?: CardVariant;
|
|
157
190
|
size?: CardSize;
|
|
158
191
|
disabled?: boolean;
|
|
159
192
|
}
|
|
160
193
|
|
|
161
|
-
declare type CardSize = 'sm' | 'md' | 'lg';
|
|
194
|
+
export declare type CardSize = 'sm' | 'md' | 'lg';
|
|
162
195
|
|
|
163
|
-
declare type CardVariant = 'elevated' | 'flat' | 'info';
|
|
196
|
+
export declare type CardVariant = 'elevated' | 'flat' | 'info';
|
|
164
197
|
|
|
165
198
|
export declare const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLInputElement>>;
|
|
166
199
|
|
|
167
|
-
export declare const CheckboxInput:
|
|
200
|
+
export declare const CheckboxInput: ForwardRefExoticComponent<CheckboxInputProps & RefAttributes<HTMLInputElement>>;
|
|
168
201
|
|
|
169
|
-
declare interface CheckboxInputProps extends Omit<
|
|
202
|
+
declare interface CheckboxInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
170
203
|
size?: FormFieldSize;
|
|
171
204
|
hasError?: boolean;
|
|
172
205
|
indeterminate?: boolean;
|
|
173
206
|
checkboxClassName?: string;
|
|
174
207
|
}
|
|
175
208
|
|
|
176
|
-
export declare const CheckboxLabel:
|
|
209
|
+
export declare const CheckboxLabel: ({ children, size, disabled, htmlFor, onLabelClick, className, onClick, ...props }: CheckboxLabelProps) => JSX.Element;
|
|
177
210
|
|
|
178
211
|
declare interface CheckboxLabelProps extends BaseLabelProps {
|
|
179
212
|
onLabelClick?: () => void;
|
|
180
213
|
}
|
|
181
214
|
|
|
182
|
-
export declare interface CheckboxProps extends Omit<
|
|
215
|
+
export declare interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
183
216
|
size?: FormFieldSize;
|
|
184
217
|
label?: string;
|
|
185
218
|
hasError?: boolean;
|
|
@@ -200,7 +233,7 @@ export declare interface CheckboxSpecificProps {
|
|
|
200
233
|
*/
|
|
201
234
|
export declare const CloseOpenButton: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
202
235
|
|
|
203
|
-
declare type ColorKey = 'primary' | 'orange' | 'white' | 'gray';
|
|
236
|
+
export declare type ColorKey = 'primary' | 'orange' | 'white' | 'gray';
|
|
204
237
|
|
|
205
238
|
declare type ColorKey_2 = 'primary' | 'orange' | 'white' | 'gray';
|
|
206
239
|
|
|
@@ -234,36 +267,79 @@ export declare const createInputRefs: (length: number) => InputRef[];
|
|
|
234
267
|
*/
|
|
235
268
|
export declare function deleteCookie(name: string): void;
|
|
236
269
|
|
|
237
|
-
|
|
270
|
+
/**
|
|
271
|
+
* Dialog component for displaying modal dialogs.
|
|
272
|
+
* @params props - DialogProps
|
|
273
|
+
* @return JSX.Element
|
|
274
|
+
*/
|
|
275
|
+
export declare const Dialog: ({ isOpen, onClose, children, className, closeOnBackdropClick, showCloseButton, size, fullScreen, closeOnEsc, ariaLabel, ariaLabelledBy, ariaDescribedBy, }: DialogProps) => JSX.Element;
|
|
238
276
|
|
|
239
|
-
|
|
277
|
+
/**
|
|
278
|
+
* DialogBody component for displaying the main content of a dialog.
|
|
279
|
+
* @params props - DialogBodyProps
|
|
280
|
+
* @return JSX.Element
|
|
281
|
+
*/
|
|
282
|
+
export declare const DialogBody: ({ children, padded, showTopDivider, showBottomDivider, className, ...props }: DialogBodyProps) => JSX.Element;
|
|
240
283
|
|
|
241
|
-
|
|
284
|
+
/**
|
|
285
|
+
* Props for the DialogBody component.
|
|
286
|
+
* @param padded: Whether to apply padding to the body content.
|
|
287
|
+
* @param showTopDivider: Whether to show a divider at the top of the body.
|
|
288
|
+
* @param showBottomDivider: Whether to show a divider at the bottom of the body.
|
|
289
|
+
*/
|
|
290
|
+
export declare interface DialogBodyProps extends HTMLAttributes<HTMLDivElement> {
|
|
242
291
|
padded?: boolean;
|
|
243
292
|
showTopDivider?: boolean;
|
|
244
293
|
showBottomDivider?: boolean;
|
|
245
294
|
}
|
|
246
295
|
|
|
247
|
-
|
|
296
|
+
/**
|
|
297
|
+
* DialogFooter component for displaying footer content in a dialog.
|
|
298
|
+
* @params props - DialogFooterProps
|
|
299
|
+
* @return JSX.Element
|
|
300
|
+
*/
|
|
301
|
+
export declare const DialogFooter: ({ align, showDivider, gap, sticky, children, className, ...props }: DialogFooterProps) => JSX.Element;
|
|
248
302
|
|
|
249
|
-
|
|
303
|
+
/**
|
|
304
|
+
* Props for the DialogFooter component.
|
|
305
|
+
* @param align: Alignment of the footer content.
|
|
306
|
+
* @param showDivider: Whether to show a divider at the top of the footer.
|
|
307
|
+
* @param gap: Gap between footer items in pixels.
|
|
308
|
+
* @param sticky: Whether the footer should be sticky at the bottom.
|
|
309
|
+
*/
|
|
310
|
+
export declare interface DialogFooterProps extends HTMLAttributes<HTMLDivElement> {
|
|
250
311
|
align?: 'start' | 'center' | 'end' | 'space-between';
|
|
251
312
|
showDivider?: boolean;
|
|
252
313
|
gap?: number;
|
|
253
314
|
sticky?: boolean;
|
|
254
315
|
}
|
|
255
316
|
|
|
256
|
-
export declare const DialogHeader:
|
|
317
|
+
export declare const DialogHeader: ({ showDivider, variant, children, className, ...props }: DialogHeaderProps) => JSX.Element;
|
|
257
318
|
|
|
258
|
-
declare interface DialogHeaderProps extends
|
|
319
|
+
export declare interface DialogHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
259
320
|
showDivider?: boolean;
|
|
260
321
|
variant?: 'default' | 'compact';
|
|
261
322
|
}
|
|
262
323
|
|
|
263
|
-
|
|
324
|
+
/**
|
|
325
|
+
* 'Props for the Dialog component.
|
|
326
|
+
* @param isOpen: Whether the dialog is open.
|
|
327
|
+
* @param onClose: Callback function to close the dialog.
|
|
328
|
+
* @param children: Content of the dialog.
|
|
329
|
+
* @param className: Optional additional class name for styling.
|
|
330
|
+
* @param closeOnBackdropClick: Whether clicking the backdrop closes the dialog.
|
|
331
|
+
* @param showCloseButton: Whether to show a close button in the dialog.
|
|
332
|
+
* @param size: Size of the dialog ('sm', 'md', 'lg').
|
|
333
|
+
* @param fullScreen: Whether the dialog should be full screen.
|
|
334
|
+
* @param closeOnEsc: Whether pressing the Escape key closes the dialog.
|
|
335
|
+
* @param ariaLabel: ARIA label for accessibility.
|
|
336
|
+
* @param ariaLabelledBy: ID of the element that labels the dialog for accessibility.
|
|
337
|
+
* @param ariaDescribedBy: ID of the element that describes the dialog for accessibility.
|
|
338
|
+
*/
|
|
339
|
+
export declare interface DialogProps {
|
|
264
340
|
isOpen: boolean;
|
|
265
341
|
onClose: () => void;
|
|
266
|
-
children:
|
|
342
|
+
children: ReactNode;
|
|
267
343
|
className?: string;
|
|
268
344
|
closeOnBackdropClick?: boolean;
|
|
269
345
|
showCloseButton?: boolean;
|
|
@@ -282,7 +358,7 @@ export declare const disabledStyles: RuleSet<object>;
|
|
|
282
358
|
* @param param0 - Props for the Divider component.
|
|
283
359
|
* @returns The Divider component.
|
|
284
360
|
*/
|
|
285
|
-
export declare const Divider:
|
|
361
|
+
export declare const Divider: ({ orientation, color, length, thickness, className, }: DividerProps) => JSX.Element;
|
|
286
362
|
|
|
287
363
|
/**
|
|
288
364
|
* Divider component to separate content either horizontally or vertically.
|
|
@@ -300,9 +376,9 @@ export declare interface DividerProps {
|
|
|
300
376
|
className?: string;
|
|
301
377
|
}
|
|
302
378
|
|
|
303
|
-
export declare const ErrorMessage:
|
|
379
|
+
export declare const ErrorMessage: ({ children, className, size, ...props }: ErrorMessageProps) => JSX.Element;
|
|
304
380
|
|
|
305
|
-
declare interface ErrorMessageProps extends
|
|
381
|
+
declare interface ErrorMessageProps extends HTMLAttributes<HTMLDivElement> {
|
|
306
382
|
size?: ErrorMessageSize;
|
|
307
383
|
className?: string;
|
|
308
384
|
}
|
|
@@ -343,6 +419,8 @@ export declare interface FieldConfig {
|
|
|
343
419
|
messageErrorClassName?: string;
|
|
344
420
|
}
|
|
345
421
|
|
|
422
|
+
declare type FieldType = 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'date' | 'datetime-local' | 'time' | 'search' | 'textarea' | 'select' | 'checkbox' | 'radio' | 'pin';
|
|
423
|
+
|
|
346
424
|
/**
|
|
347
425
|
*
|
|
348
426
|
* @param files - Array of files to display
|
|
@@ -350,7 +428,7 @@ export declare interface FieldConfig {
|
|
|
350
428
|
* @param disabled - Whether the component is disabled
|
|
351
429
|
* @returns FileList component
|
|
352
430
|
*/
|
|
353
|
-
declare const FileList_2:
|
|
431
|
+
declare const FileList_2: ({ files, onRemove, disabled }: FileListProps) => JSX.Element | null;
|
|
354
432
|
export { FileList_2 as FileList }
|
|
355
433
|
|
|
356
434
|
/**
|
|
@@ -370,9 +448,9 @@ declare interface FileListProps {
|
|
|
370
448
|
* Controlled mode: Provide `value` prop and handle `onChange`
|
|
371
449
|
* Uncontrolled mode: Optionally provide `defaultValue` for initial files
|
|
372
450
|
*/
|
|
373
|
-
export declare const FileUpload:
|
|
451
|
+
export declare const FileUpload: ({ variant, multiple, maxFileSize, accept, helperText, value, defaultValue, onChange, onError, onFileRemove, disabled, hasError, errorMessage, className, dropZoneContainerClassName, size, }: FileUploadProps) => JSX.Element;
|
|
374
452
|
|
|
375
|
-
export declare interface FileUploadProps extends Omit<
|
|
453
|
+
export declare interface FileUploadProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange' | 'value' | 'defaultValue' | 'onError'> {
|
|
376
454
|
variant?: FileUploadVariant;
|
|
377
455
|
size?: FormFieldSize;
|
|
378
456
|
multiple?: boolean;
|
|
@@ -395,13 +473,13 @@ export declare type FileUploadVariant = 'default' | 'compact';
|
|
|
395
473
|
|
|
396
474
|
export declare const flushedStyles: RuleSet<object>;
|
|
397
475
|
|
|
398
|
-
export declare const FormField:
|
|
476
|
+
export declare const FormField: ({ id, name, label, type, size, placeholder, disabled, required, options, checkboxLabel, radioName, pinLength, pinType, rows, className, inputClassName, labelClassName, messageErrorClassName, leftIcon, rightIcon, iconSize, iconColor, onOptionSelect, onRadioChange, onPinComplete, onChange, ...props }: FormFieldComponentProps) => JSX.Element;
|
|
399
477
|
|
|
400
478
|
export declare interface FormFieldComponentProps extends WithIconsProps {
|
|
401
479
|
id?: string | number;
|
|
402
480
|
name: string;
|
|
403
481
|
label?: string;
|
|
404
|
-
type?:
|
|
482
|
+
type?: FieldType;
|
|
405
483
|
size?: FormFieldSize;
|
|
406
484
|
placeholder?: string;
|
|
407
485
|
disabled?: boolean;
|
|
@@ -410,19 +488,19 @@ export declare interface FormFieldComponentProps extends WithIconsProps {
|
|
|
410
488
|
value: string | number;
|
|
411
489
|
label: string;
|
|
412
490
|
}>;
|
|
413
|
-
checkboxValue?: boolean;
|
|
414
491
|
checkboxLabel?: string;
|
|
415
492
|
radioName?: string;
|
|
416
493
|
pinLength?: number;
|
|
417
494
|
pinType?: 'text' | 'number';
|
|
495
|
+
rows?: number;
|
|
418
496
|
className?: string;
|
|
419
497
|
inputClassName?: string;
|
|
420
498
|
labelClassName?: string;
|
|
421
499
|
messageErrorClassName?: string;
|
|
422
500
|
onOptionSelect?: (option: SelectOption) => void;
|
|
423
|
-
onRadioChange?: (event:
|
|
501
|
+
onRadioChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
424
502
|
onPinComplete?: (value: string) => void;
|
|
425
|
-
onChange?: (event:
|
|
503
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
426
504
|
[key: string]: any;
|
|
427
505
|
}
|
|
428
506
|
|
|
@@ -437,11 +515,26 @@ export declare type FormFieldSize = 'sm' | 'md' | 'lg';
|
|
|
437
515
|
|
|
438
516
|
export declare type FormFieldState = 'default' | 'hover' | 'focus' | 'error' | 'disabled';
|
|
439
517
|
|
|
440
|
-
|
|
518
|
+
/**
|
|
519
|
+
* FullScreenSpinner Component
|
|
520
|
+
* Renders a full-screen spinner with an optional message.
|
|
521
|
+
* @param {FullScreenSpinnerProps} props - Props for the FullScreenSpinner component see in Spinner.types.ts .
|
|
522
|
+
* @returns JSX.Element The rendered FullScreenSpinner component.
|
|
523
|
+
*/
|
|
524
|
+
export declare const FullScreenSpinner: ({ message, color, variant, }: FullScreenSpinnerProps) => JSX.Element;
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Props for the FullScreenSpinner component.
|
|
528
|
+
* @interface FullScreenSpinnerProps
|
|
529
|
+
* @property {string} [message] - Optional message to display with the spinner.
|
|
530
|
+
* @property {ColorKey} [color] - Color variant of the spinner.
|
|
531
|
+
* @property {Variant} [variant] - Animation variant of the spinner.
|
|
532
|
+
*/
|
|
533
|
+
export declare interface FullScreenSpinnerProps {
|
|
441
534
|
message?: string;
|
|
442
535
|
color?: ColorKey;
|
|
443
536
|
variant?: Variant;
|
|
444
|
-
}
|
|
537
|
+
}
|
|
445
538
|
|
|
446
539
|
/**
|
|
447
540
|
* Retrieves the value of a cookie by name
|
|
@@ -487,7 +580,7 @@ export declare const getPropsForInputType: (type: string | null | undefined, bas
|
|
|
487
580
|
* />
|
|
488
581
|
* ```
|
|
489
582
|
*/
|
|
490
|
-
export declare const handleDigitChange: (e:
|
|
583
|
+
export declare const handleDigitChange: (e: ChangeEvent<HTMLInputElement>, index: number, digits: string[], setDigits: SetDigits, inputRefs: InputRefs, length: number, type?: "text" | "number", onChange?: (value: string) => void, onComplete?: (value: string) => void) => void;
|
|
491
584
|
|
|
492
585
|
/**
|
|
493
586
|
* Handles keyboard navigation in verification code input fields.
|
|
@@ -511,7 +604,7 @@ export declare const handleDigitChange: (e: default_2.ChangeEvent<HTMLInputEleme
|
|
|
511
604
|
* />
|
|
512
605
|
* ```
|
|
513
606
|
*/
|
|
514
|
-
export declare const handleKeyDown: (e:
|
|
607
|
+
export declare const handleKeyDown: (e: KeyboardEvent_2<HTMLInputElement>, index: number, digits: string[], inputRefs: InputRefs, setDigits: SetDigits, onChange?: (value: string) => void) => void;
|
|
515
608
|
|
|
516
609
|
/**
|
|
517
610
|
* Handles paste operations for verification code input fields.
|
|
@@ -547,7 +640,7 @@ export declare const handleKeyDown: (e: default_2.KeyboardEvent<HTMLInputElement
|
|
|
547
640
|
* />
|
|
548
641
|
* ```
|
|
549
642
|
*/
|
|
550
|
-
export declare const handlePaste: (e:
|
|
643
|
+
export declare const handlePaste: (e: ClipboardEvent_2<HTMLInputElement>, index: number, digits: string[], setDigits: SetDigits, inputRefs: InputRefs, length: number, type?: "text" | "number", onChange?: (value: string) => void, onComplete?: (value: string) => void) => void;
|
|
551
644
|
|
|
552
645
|
/**
|
|
553
646
|
* Tipo helper para determinar si un componente tiene iconos
|
|
@@ -575,9 +668,12 @@ export declare const hasPermission: (userRoles?: string[], permissions?: string[
|
|
|
575
668
|
* Displays notifications, user profile, and optional children.
|
|
576
669
|
*
|
|
577
670
|
* @param {HeaderProps} props - Header component props.
|
|
578
|
-
* @returns
|
|
671
|
+
* @returns JSX.Element The rendered header.
|
|
579
672
|
*/
|
|
580
|
-
export declare const Header:
|
|
673
|
+
export declare const Header: {
|
|
674
|
+
({ user, hasNotifications, notificationCount, onNotificationClick, onUserProfileClick, onLogout, userMenuItems, children, }: HeaderProps): JSX.Element;
|
|
675
|
+
displayName: string;
|
|
676
|
+
};
|
|
581
677
|
|
|
582
678
|
/**
|
|
583
679
|
* Props for the Header component.
|
|
@@ -590,7 +686,7 @@ export declare const Header: default_2.FC<HeaderProps>;
|
|
|
590
686
|
* @param userMenuItems: Additional menu items for the user dropdown.
|
|
591
687
|
* @param children: Any additional elements to render in the left section.
|
|
592
688
|
*/
|
|
593
|
-
declare interface HeaderProps {
|
|
689
|
+
export declare interface HeaderProps {
|
|
594
690
|
user?: User;
|
|
595
691
|
hasNotifications?: boolean;
|
|
596
692
|
notificationCount?: number;
|
|
@@ -598,7 +694,7 @@ declare interface HeaderProps {
|
|
|
598
694
|
onUserProfileClick?: () => void;
|
|
599
695
|
onLogout?: () => void;
|
|
600
696
|
userMenuItems?: UserMenuItem[];
|
|
601
|
-
children?:
|
|
697
|
+
children?: ReactNode;
|
|
602
698
|
}
|
|
603
699
|
|
|
604
700
|
export declare const HeadingBold: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
|
|
@@ -631,10 +727,10 @@ export declare const headingRegularStyles: {
|
|
|
631
727
|
16: RuleSet<object>;
|
|
632
728
|
};
|
|
633
729
|
|
|
634
|
-
export declare const Icon:
|
|
730
|
+
export declare const Icon: ({ component: Component, size, color, className, iconProps, }: IconProps) => JSX.Element;
|
|
635
731
|
|
|
636
732
|
declare interface IconProps {
|
|
637
|
-
component:
|
|
733
|
+
component: ReactNode | RemixiconComponentType;
|
|
638
734
|
size?: IconSizes | string | number;
|
|
639
735
|
color?: string;
|
|
640
736
|
className?: string;
|
|
@@ -650,7 +746,7 @@ export declare const IconWrapperStyles: RuleSet<object>;
|
|
|
650
746
|
* @param param0 - Props for the InfoLabel component.
|
|
651
747
|
* @returns The InfoLabel component.
|
|
652
748
|
*/
|
|
653
|
-
export declare const InfoLabel:
|
|
749
|
+
export declare const InfoLabel: ({ children, size, color, className, style }: InfoLabelProps) => JSX.Element;
|
|
654
750
|
|
|
655
751
|
/**
|
|
656
752
|
* Props for the InfoLabel component
|
|
@@ -664,8 +760,8 @@ export declare interface InfoLabelProps {
|
|
|
664
760
|
size?: keyof typeof bodyTextStyles;
|
|
665
761
|
color?: string;
|
|
666
762
|
className?: string;
|
|
667
|
-
style?:
|
|
668
|
-
children:
|
|
763
|
+
style?: CSSProperties;
|
|
764
|
+
children: ReactNode;
|
|
669
765
|
}
|
|
670
766
|
|
|
671
767
|
/**
|
|
@@ -681,7 +777,7 @@ export declare interface InputComponentProps {
|
|
|
681
777
|
size: FormFieldSize;
|
|
682
778
|
placeholder?: string;
|
|
683
779
|
type?: string;
|
|
684
|
-
onChange?: (event:
|
|
780
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
685
781
|
[key: string]: any;
|
|
686
782
|
}
|
|
687
783
|
|
|
@@ -699,9 +795,9 @@ export declare interface InputComponentProps {
|
|
|
699
795
|
*
|
|
700
796
|
* Used by: PinInputGroup component for PIN/verification code workflows
|
|
701
797
|
*/
|
|
702
|
-
export declare type InputRef =
|
|
798
|
+
export declare type InputRef = RefObject<HTMLInputElement | null>;
|
|
703
799
|
|
|
704
|
-
export declare type InputRefs =
|
|
800
|
+
export declare type InputRefs = RefObject<HTMLInputElement | null>[];
|
|
705
801
|
|
|
706
802
|
/**
|
|
707
803
|
* Interfaz específica para componentes de input que necesitan iconos
|
|
@@ -717,7 +813,7 @@ export declare interface InputWithIconsProps extends WithIconsProps {
|
|
|
717
813
|
*/
|
|
718
814
|
export declare const isAllowedInputType: (t: string) => t is AllowedInputType;
|
|
719
815
|
|
|
720
|
-
export declare const Label:
|
|
816
|
+
export declare const Label: ({ children, htmlFor, className, required, disabled, size, ...props }: BaseLabelProps) => JSX.Element;
|
|
721
817
|
|
|
722
818
|
export declare type LabelSize = 'sm' | 'md' | 'lg';
|
|
723
819
|
|
|
@@ -726,7 +822,24 @@ export declare type LabelSize = 'sm' | 'md' | 'lg';
|
|
|
726
822
|
* Wraps the layout in a SidebarProvider context.
|
|
727
823
|
* @param props - Layout properties
|
|
728
824
|
*/
|
|
729
|
-
export declare const Layout:
|
|
825
|
+
export declare const Layout: (props: LayoutProps) => JSX.Element;
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* LayoutMainContent component for the layout.
|
|
829
|
+
* Provides the main content area with responsive spacing and scrolling.
|
|
830
|
+
*/
|
|
831
|
+
export declare const LayoutMainContent: {
|
|
832
|
+
({ children, className }: LayoutMainContentProps): JSX.Element;
|
|
833
|
+
displayName: string;
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Props for the LayoutMainContent component.
|
|
838
|
+
*/
|
|
839
|
+
export declare interface LayoutMainContentProps {
|
|
840
|
+
children: ReactNode;
|
|
841
|
+
className?: string;
|
|
842
|
+
}
|
|
730
843
|
|
|
731
844
|
/**
|
|
732
845
|
* Props for the Layout component.
|
|
@@ -742,7 +855,7 @@ export declare const Layout: default_2.FC<LayoutProps>;
|
|
|
742
855
|
* @contentClassName - Optional class name for main content area.
|
|
743
856
|
*/
|
|
744
857
|
export declare interface LayoutProps extends SidebarProps {
|
|
745
|
-
children:
|
|
858
|
+
children: ReactNode;
|
|
746
859
|
user?: User;
|
|
747
860
|
hasNotifications?: boolean;
|
|
748
861
|
notificationCount?: number;
|
|
@@ -761,7 +874,7 @@ export declare interface LayoutProps extends SidebarProps {
|
|
|
761
874
|
* @param ref - Ref to the anchor element
|
|
762
875
|
* @return JSX.Element
|
|
763
876
|
*/
|
|
764
|
-
export declare const Link:
|
|
877
|
+
export declare const Link: ForwardRefExoticComponent<LinkProps & RefAttributes<HTMLAnchorElement>>;
|
|
765
878
|
|
|
766
879
|
/**
|
|
767
880
|
* CSS styles applied when the Link is disabled.
|
|
@@ -847,7 +960,7 @@ export declare const Nav: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps
|
|
|
847
960
|
export declare interface NavigationItem {
|
|
848
961
|
id: string;
|
|
849
962
|
label: string;
|
|
850
|
-
icon?:
|
|
963
|
+
icon?: ReactNode | RemixiconComponentType;
|
|
851
964
|
iconSize?: IconSizes | string | number;
|
|
852
965
|
iconColor?: string;
|
|
853
966
|
href?: string;
|
|
@@ -873,6 +986,24 @@ export declare const normalizeSelectOptions: (options: Array<{
|
|
|
873
986
|
label: string;
|
|
874
987
|
}> | SelectOption[]) => SelectOption[];
|
|
875
988
|
|
|
989
|
+
/**
|
|
990
|
+
* NotificationButton component with badge and count display.
|
|
991
|
+
* Handles notification state and provides accessible interaction.
|
|
992
|
+
*/
|
|
993
|
+
export declare const NotificationButton: {
|
|
994
|
+
({ hasNotifications, notificationCount, onNotificationClick, }: NotificationButtonProps): JSX.Element;
|
|
995
|
+
displayName: string;
|
|
996
|
+
};
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* Props for the NotificationButton component.
|
|
1000
|
+
*/
|
|
1001
|
+
export declare interface NotificationButtonProps {
|
|
1002
|
+
hasNotifications?: boolean;
|
|
1003
|
+
notificationCount?: number;
|
|
1004
|
+
onNotificationClick?: () => void;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
876
1007
|
/**
|
|
877
1008
|
* Overlay component for mobile sidebar.
|
|
878
1009
|
*/
|
|
@@ -898,7 +1029,7 @@ export declare const overlayAnimation: {
|
|
|
898
1029
|
};
|
|
899
1030
|
};
|
|
900
1031
|
|
|
901
|
-
export declare const PasswordInput:
|
|
1032
|
+
export declare const PasswordInput: ({ size, leftIcon, iconSize, iconColor, placeholder, hasError, disabled, className, ...props }: PasswordInputProps) => JSX.Element;
|
|
902
1033
|
|
|
903
1034
|
export declare interface PasswordInputProps extends BaseFormFieldProps, Omit<WithIconsProps, 'rightIcon'> {
|
|
904
1035
|
}
|
|
@@ -907,7 +1038,10 @@ export declare type Permission = string;
|
|
|
907
1038
|
|
|
908
1039
|
export declare const PinInput: ForwardRefExoticComponent<PinInputProps & RefAttributes<HTMLInputElement>>;
|
|
909
1040
|
|
|
910
|
-
export declare const PinInputGroup:
|
|
1041
|
+
export declare const PinInputGroup: {
|
|
1042
|
+
({ length, size, variant, hasError, type, onChange, onComplete, className, pinInputClassName, }: PinInputGroupProps): JSX.Element;
|
|
1043
|
+
displayName: string;
|
|
1044
|
+
};
|
|
911
1045
|
|
|
912
1046
|
export declare interface PinInputGroupProps {
|
|
913
1047
|
length?: number;
|
|
@@ -933,17 +1067,20 @@ export declare interface PinSpecificProps {
|
|
|
933
1067
|
|
|
934
1068
|
export declare const RadioInput: ForwardRefExoticComponent<RadioInputProps & RefAttributes<HTMLInputElement>>;
|
|
935
1069
|
|
|
936
|
-
export declare const RadioInputDot:
|
|
1070
|
+
export declare const RadioInputDot: ForwardRefExoticComponent<RadioInputDotProps & RefAttributes<HTMLInputElement>>;
|
|
937
1071
|
|
|
938
|
-
declare interface RadioInputDotProps extends Omit<
|
|
1072
|
+
declare interface RadioInputDotProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
|
|
939
1073
|
size?: FormFieldSize;
|
|
940
1074
|
hasError?: boolean;
|
|
941
1075
|
dotClassName?: string;
|
|
942
1076
|
}
|
|
943
1077
|
|
|
944
|
-
export declare const RadioInputLabel:
|
|
1078
|
+
export declare const RadioInputLabel: {
|
|
1079
|
+
({ children, htmlFor, className, disabled, size, ...props }: BaseLabelProps): JSX.Element;
|
|
1080
|
+
displayName: string;
|
|
1081
|
+
};
|
|
945
1082
|
|
|
946
|
-
export declare interface RadioInputProps extends Omit<
|
|
1083
|
+
export declare interface RadioInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
|
|
947
1084
|
size?: FormFieldSize;
|
|
948
1085
|
label?: string;
|
|
949
1086
|
hasError?: boolean;
|
|
@@ -957,10 +1094,10 @@ export declare interface RadioSpecificProps {
|
|
|
957
1094
|
label: string;
|
|
958
1095
|
}>;
|
|
959
1096
|
radioName?: string;
|
|
960
|
-
onRadioChange?: (event:
|
|
1097
|
+
onRadioChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
961
1098
|
}
|
|
962
1099
|
|
|
963
|
-
export declare const SearchInput:
|
|
1100
|
+
export declare const SearchInput: ({ size, leftIcon, rightIcon, iconSize, iconColor, placeholder, onSearch, className, ...props }: SearchInputProps) => JSX.Element;
|
|
964
1101
|
|
|
965
1102
|
export declare interface SearchInputProps extends BaseInputProps {
|
|
966
1103
|
size?: FormFieldSize;
|
|
@@ -973,15 +1110,30 @@ export declare interface SearchSpecificProps {
|
|
|
973
1110
|
onSearch?: (value: string) => void;
|
|
974
1111
|
}
|
|
975
1112
|
|
|
976
|
-
|
|
1113
|
+
/**
|
|
1114
|
+
* SectionSpinner Component
|
|
1115
|
+
* Renders a spinner suitable for section loading states with an optional message.
|
|
1116
|
+
* @param {SectionSpinnerProps} props - Props for the SectionSpinner component see in Spinner.types.ts .
|
|
1117
|
+
* @returns JSX.Element The rendered SectionSpinner component.
|
|
1118
|
+
*/
|
|
1119
|
+
export declare const SectionSpinner: ({ message, color, variant, }: SectionSpinnerProps) => JSX.Element;
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* Props for the SectionSpinner component
|
|
1123
|
+
* @interface SectionSpinnerProps
|
|
1124
|
+
* @property {string} [message] - Optional message to display with the spinner.
|
|
1125
|
+
* @property {ColorKey} [color] - Color variant of the spinner.
|
|
1126
|
+
* @property {Variant} [variant] - Animation variant of the spinner.
|
|
1127
|
+
*/
|
|
1128
|
+
export declare interface SectionSpinnerProps {
|
|
977
1129
|
message?: string;
|
|
978
1130
|
color?: ColorKey;
|
|
979
1131
|
variant?: Variant;
|
|
980
|
-
}
|
|
1132
|
+
}
|
|
981
1133
|
|
|
982
|
-
export declare const SelectInput:
|
|
1134
|
+
export declare const SelectInput: ForwardRefExoticComponent<SelectInputProps & RefAttributes<HTMLButtonElement>>;
|
|
983
1135
|
|
|
984
|
-
export declare interface SelectInputProps extends Omit<
|
|
1136
|
+
export declare interface SelectInputProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
|
|
985
1137
|
size?: FormFieldSize;
|
|
986
1138
|
hasError?: boolean;
|
|
987
1139
|
disabled?: boolean;
|
|
@@ -1016,7 +1168,7 @@ export declare interface SelectSpecificProps {
|
|
|
1016
1168
|
*/
|
|
1017
1169
|
export declare function setCookie(name: string, value: string, days?: number): void;
|
|
1018
1170
|
|
|
1019
|
-
export declare type SetDigits =
|
|
1171
|
+
export declare type SetDigits = Dispatch<SetStateAction<string[]>>;
|
|
1020
1172
|
|
|
1021
1173
|
/**
|
|
1022
1174
|
* Sidebar component for navigation.
|
|
@@ -1026,7 +1178,10 @@ export declare type SetDigits = default_2.Dispatch<default_2.SetStateAction<stri
|
|
|
1026
1178
|
* @param logoImgExpanded - Logo when sidebar is expanded.
|
|
1027
1179
|
* @param logoImgCollapsed - Logo when sidebar is collapsed.
|
|
1028
1180
|
*/
|
|
1029
|
-
export declare const Sidebar:
|
|
1181
|
+
export declare const Sidebar: {
|
|
1182
|
+
({ navigationConfig, userRoles, activePath, logoImgExpanded, logoImgCollapsed, onNavigate, }: SidebarProps): JSX.Element;
|
|
1183
|
+
displayName: string;
|
|
1184
|
+
};
|
|
1030
1185
|
|
|
1031
1186
|
export declare const SidebarContext: Context<SidebarContextValue | undefined>;
|
|
1032
1187
|
|
|
@@ -1066,14 +1221,24 @@ export declare interface SidebarProps {
|
|
|
1066
1221
|
navigationConfig: NavigationItem[];
|
|
1067
1222
|
userRoles?: string[];
|
|
1068
1223
|
activePath?: string;
|
|
1069
|
-
logoImgExpanded?:
|
|
1070
|
-
logoImgCollapsed?:
|
|
1224
|
+
logoImgExpanded?: ReactNode;
|
|
1225
|
+
logoImgCollapsed?: ReactNode;
|
|
1071
1226
|
onNavigate?: (href: string) => void;
|
|
1072
1227
|
}
|
|
1073
1228
|
|
|
1074
1229
|
export declare const SidebarProvider: ({ children }: PropsWithChildren) => JSX.Element;
|
|
1075
1230
|
|
|
1076
|
-
|
|
1231
|
+
/**
|
|
1232
|
+
* Size options for the Spinner component.
|
|
1233
|
+
* typedef {('sm' | 'md' | 'lg' | 'xl')} Size
|
|
1234
|
+
*
|
|
1235
|
+
* Color key options for the Spinner component.
|
|
1236
|
+
* typedef {('primary' | 'orange' | 'white' | 'gray')} ColorKey
|
|
1237
|
+
*
|
|
1238
|
+
* Animation variant options for the Spinner component.
|
|
1239
|
+
* typedef {('rotate' | 'sweep')} Variant
|
|
1240
|
+
*/
|
|
1241
|
+
export declare type Size = 'sm' | 'md' | 'lg' | 'xl';
|
|
1077
1242
|
|
|
1078
1243
|
export declare const sizeStyles: {
|
|
1079
1244
|
sm: RuleSet<object>;
|
|
@@ -1203,16 +1368,13 @@ export declare interface SortState {
|
|
|
1203
1368
|
direction: SortDirection;
|
|
1204
1369
|
}
|
|
1205
1370
|
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
title?: string;
|
|
1214
|
-
variant?: Variant;
|
|
1215
|
-
}
|
|
1371
|
+
/**
|
|
1372
|
+
* Spinner Component
|
|
1373
|
+
* Renders a customizable spinner with optional message and centering.
|
|
1374
|
+
* @param {BaseSpinnerProps} props - Props for the Spinner component see in Spinner.types.ts .
|
|
1375
|
+
* @returns JSX.Element The rendered Spinner component.
|
|
1376
|
+
*/
|
|
1377
|
+
export declare const Spinner: ({ size, color, centered, message, title, variant, }: BaseSpinnerProps) => JSX.Element;
|
|
1216
1378
|
|
|
1217
1379
|
/**
|
|
1218
1380
|
* Represents a single step in the Stepper.
|
|
@@ -1220,14 +1382,14 @@ declare interface SpinnerProps {
|
|
|
1220
1382
|
export declare interface Step {
|
|
1221
1383
|
id: string | number;
|
|
1222
1384
|
label?: string;
|
|
1223
|
-
content?:
|
|
1385
|
+
content?: ReactNode | string;
|
|
1224
1386
|
}
|
|
1225
1387
|
|
|
1226
1388
|
/**
|
|
1227
1389
|
* Stepper component for displaying multi-step navigation UI.
|
|
1228
1390
|
* Simple and functional with hover labels.
|
|
1229
1391
|
*/
|
|
1230
|
-
export declare const Stepper:
|
|
1392
|
+
export declare const Stepper: ({ steps, currentStep, orientation, size, onStepClick, className, }: StepperProps) => JSX.Element;
|
|
1231
1393
|
|
|
1232
1394
|
/**
|
|
1233
1395
|
* Orientation options for the Stepper component.
|
|
@@ -1395,7 +1557,7 @@ export declare const tableVariants: {
|
|
|
1395
1557
|
striped: RuleSet<object>;
|
|
1396
1558
|
};
|
|
1397
1559
|
|
|
1398
|
-
export declare const TermsAndConditions:
|
|
1560
|
+
export declare const TermsAndConditions: ({ isOpen, onAccept, onCancel, title, subtitle, content, bodyFooter, confirmationLabel, acceptLabel, cancelLabel, size, fullScreen, showCloseButton, closeOnBackdropClick, containerClassName, headerClassName, bodyClassName, footerClassName, initiallyConfirmed, onConfirmChange, }: TermsAndConditionsProps) => JSX.Element;
|
|
1399
1561
|
|
|
1400
1562
|
export declare interface TermsAndConditionsProps {
|
|
1401
1563
|
isOpen: boolean;
|
|
@@ -1403,8 +1565,8 @@ export declare interface TermsAndConditionsProps {
|
|
|
1403
1565
|
onCancel: () => void;
|
|
1404
1566
|
title: string;
|
|
1405
1567
|
subtitle?: string;
|
|
1406
|
-
content:
|
|
1407
|
-
bodyFooter?:
|
|
1568
|
+
content: ReactNode;
|
|
1569
|
+
bodyFooter?: ReactNode;
|
|
1408
1570
|
confirmationLabel?: string;
|
|
1409
1571
|
acceptLabel?: string;
|
|
1410
1572
|
cancelLabel?: string;
|
|
@@ -1428,7 +1590,7 @@ export { Text_2 as Text }
|
|
|
1428
1590
|
|
|
1429
1591
|
export declare const TextAreaInput: ForwardRefExoticComponent<TextAreaInputProps & RefAttributes<HTMLTextAreaElement>>;
|
|
1430
1592
|
|
|
1431
|
-
export declare interface TextAreaInputProps extends Omit<
|
|
1593
|
+
export declare interface TextAreaInputProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> {
|
|
1432
1594
|
size?: FormFieldSize;
|
|
1433
1595
|
hasError?: boolean;
|
|
1434
1596
|
disabled?: boolean;
|
|
@@ -1458,6 +1620,17 @@ declare type ToastProviderProps = ToasterProps & {
|
|
|
1458
1620
|
spinnerColor?: ColorKey_2;
|
|
1459
1621
|
};
|
|
1460
1622
|
|
|
1623
|
+
/**
|
|
1624
|
+
* Custom hook to handle notification logic and state.
|
|
1625
|
+
* Returns computed values for notification display.
|
|
1626
|
+
*/
|
|
1627
|
+
export declare const useNotifications: ({ hasNotifications, notificationCount, }: Pick<NotificationButtonProps, "hasNotifications" | "notificationCount">) => {
|
|
1628
|
+
effectiveHasNotifications: boolean;
|
|
1629
|
+
displayCount: number | undefined;
|
|
1630
|
+
badgeLabel: string;
|
|
1631
|
+
bellAriaLabel: string;
|
|
1632
|
+
};
|
|
1633
|
+
|
|
1461
1634
|
/**
|
|
1462
1635
|
* User interface for the UserProfile component
|
|
1463
1636
|
*/
|
|
@@ -1469,15 +1642,44 @@ export declare interface User {
|
|
|
1469
1642
|
|
|
1470
1643
|
/**
|
|
1471
1644
|
* User menu item configuration
|
|
1472
|
-
|
|
1473
|
-
|
|
1645
|
+
* Defines a single item in the user profile dropdown menu.
|
|
1646
|
+
* @param id Unique identifier for the menu item
|
|
1647
|
+
* @param label Display text for the menu item
|
|
1648
|
+
* @param icon Icon component to display next to the label
|
|
1649
|
+
* @param onClick Function to call when the item is clicked
|
|
1650
|
+
* @param variant Optional styling variant ('default' or 'danger')
|
|
1651
|
+
*/
|
|
1652
|
+
export declare interface UserMenuItem {
|
|
1474
1653
|
id: string;
|
|
1475
1654
|
label: string;
|
|
1476
|
-
icon:
|
|
1655
|
+
icon: ReactNode | RemixiconComponentType;
|
|
1477
1656
|
onClick: () => void;
|
|
1478
1657
|
variant?: 'default' | 'danger';
|
|
1479
1658
|
}
|
|
1480
1659
|
|
|
1660
|
+
/**
|
|
1661
|
+
* UserProfile component with dropdown menu functionality.
|
|
1662
|
+
* Displays user avatar, name, role, and provides a dropdown menu with configurable actions.
|
|
1663
|
+
*/
|
|
1664
|
+
export declare const UserProfile: {
|
|
1665
|
+
({ user, onProfileClick, onLogout, menuItems, }: UserProfileProps): JSX.Element;
|
|
1666
|
+
displayName: string;
|
|
1667
|
+
};
|
|
1668
|
+
|
|
1669
|
+
/**
|
|
1670
|
+
* Props for the UserProfile component.
|
|
1671
|
+
* @param user The user object containing name and role information
|
|
1672
|
+
* @param onProfileClick Optional function to call when profile is clicked
|
|
1673
|
+
* @param onLogout Optional function to call when logout is selected
|
|
1674
|
+
* @param menuItems Optional array of custom menu items to display
|
|
1675
|
+
*/
|
|
1676
|
+
export declare interface UserProfileProps {
|
|
1677
|
+
user: User;
|
|
1678
|
+
onProfileClick?: () => void;
|
|
1679
|
+
onLogout?: () => void;
|
|
1680
|
+
menuItems?: UserMenuItem[];
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1481
1683
|
export declare const useSidebar: () => SidebarContextValue;
|
|
1482
1684
|
|
|
1483
1685
|
/**
|
|
@@ -1490,15 +1692,15 @@ export declare const useSidebar: () => SidebarContextValue;
|
|
|
1490
1692
|
*/
|
|
1491
1693
|
export declare const validateCode: (code: string, length: number, type?: "text" | "number") => boolean;
|
|
1492
1694
|
|
|
1493
|
-
declare type Variant = 'rotate' | 'sweep';
|
|
1695
|
+
export declare type Variant = 'rotate' | 'sweep';
|
|
1494
1696
|
|
|
1495
1697
|
/**
|
|
1496
1698
|
* Interfaz base para componentes que soportan iconos a la izquierda y derecha
|
|
1497
1699
|
* Puede ser extendida por cualquier componente que necesite funcionalidad de iconos
|
|
1498
1700
|
*/
|
|
1499
1701
|
export declare interface WithIconsProps {
|
|
1500
|
-
leftIcon?:
|
|
1501
|
-
rightIcon?:
|
|
1702
|
+
leftIcon?: ReactNode | RemixiconComponentType;
|
|
1703
|
+
rightIcon?: ReactNode | RemixiconComponentType;
|
|
1502
1704
|
iconSize?: IconSizes | string | number;
|
|
1503
1705
|
iconColor?: string;
|
|
1504
1706
|
}
|