tcce-design-system 0.1.21 → 0.1.22
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
|
+
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;
|
|
148
173
|
|
|
149
|
-
export declare const CardBody:
|
|
174
|
+
export declare const CardBody: ({ children, showDivider, ...props }: CardBodyProps) => JSX.Element;
|
|
150
175
|
|
|
151
|
-
|
|
176
|
+
declare interface CardBodyProps extends HTMLAttributes<HTMLDivElement> {
|
|
177
|
+
showDivider?: boolean;
|
|
178
|
+
}
|
|
179
|
+
|
|
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;
|
|
@@ -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,12 +515,6 @@ export declare type FormFieldSize = 'sm' | 'md' | 'lg';
|
|
|
437
515
|
|
|
438
516
|
export declare type FormFieldState = 'default' | 'hover' | 'focus' | 'error' | 'disabled';
|
|
439
517
|
|
|
440
|
-
export declare const FullScreenSpinner: default_2.FC<{
|
|
441
|
-
message?: string;
|
|
442
|
-
color?: ColorKey;
|
|
443
|
-
variant?: Variant;
|
|
444
|
-
}>;
|
|
445
|
-
|
|
446
518
|
/**
|
|
447
519
|
* Retrieves the value of a cookie by name
|
|
448
520
|
* @param name - The name of the cookie to retrieve
|
|
@@ -487,7 +559,7 @@ export declare const getPropsForInputType: (type: string | null | undefined, bas
|
|
|
487
559
|
* />
|
|
488
560
|
* ```
|
|
489
561
|
*/
|
|
490
|
-
export declare const handleDigitChange: (e:
|
|
562
|
+
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
563
|
|
|
492
564
|
/**
|
|
493
565
|
* Handles keyboard navigation in verification code input fields.
|
|
@@ -511,7 +583,7 @@ export declare const handleDigitChange: (e: default_2.ChangeEvent<HTMLInputEleme
|
|
|
511
583
|
* />
|
|
512
584
|
* ```
|
|
513
585
|
*/
|
|
514
|
-
export declare const handleKeyDown: (e:
|
|
586
|
+
export declare const handleKeyDown: (e: KeyboardEvent_2<HTMLInputElement>, index: number, digits: string[], inputRefs: InputRefs, setDigits: SetDigits, onChange?: (value: string) => void) => void;
|
|
515
587
|
|
|
516
588
|
/**
|
|
517
589
|
* Handles paste operations for verification code input fields.
|
|
@@ -547,7 +619,7 @@ export declare const handleKeyDown: (e: default_2.KeyboardEvent<HTMLInputElement
|
|
|
547
619
|
* />
|
|
548
620
|
* ```
|
|
549
621
|
*/
|
|
550
|
-
export declare const handlePaste: (e:
|
|
622
|
+
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
623
|
|
|
552
624
|
/**
|
|
553
625
|
* Tipo helper para determinar si un componente tiene iconos
|
|
@@ -575,9 +647,12 @@ export declare const hasPermission: (userRoles?: string[], permissions?: string[
|
|
|
575
647
|
* Displays notifications, user profile, and optional children.
|
|
576
648
|
*
|
|
577
649
|
* @param {HeaderProps} props - Header component props.
|
|
578
|
-
* @returns
|
|
650
|
+
* @returns JSX.Element The rendered header.
|
|
579
651
|
*/
|
|
580
|
-
export declare const Header:
|
|
652
|
+
export declare const Header: {
|
|
653
|
+
({ user, hasNotifications, notificationCount, onNotificationClick, onUserProfileClick, onLogout, userMenuItems, children, }: HeaderProps): JSX.Element;
|
|
654
|
+
displayName: string;
|
|
655
|
+
};
|
|
581
656
|
|
|
582
657
|
/**
|
|
583
658
|
* Props for the Header component.
|
|
@@ -590,7 +665,7 @@ export declare const Header: default_2.FC<HeaderProps>;
|
|
|
590
665
|
* @param userMenuItems: Additional menu items for the user dropdown.
|
|
591
666
|
* @param children: Any additional elements to render in the left section.
|
|
592
667
|
*/
|
|
593
|
-
declare interface HeaderProps {
|
|
668
|
+
export declare interface HeaderProps {
|
|
594
669
|
user?: User;
|
|
595
670
|
hasNotifications?: boolean;
|
|
596
671
|
notificationCount?: number;
|
|
@@ -598,7 +673,7 @@ declare interface HeaderProps {
|
|
|
598
673
|
onUserProfileClick?: () => void;
|
|
599
674
|
onLogout?: () => void;
|
|
600
675
|
userMenuItems?: UserMenuItem[];
|
|
601
|
-
children?:
|
|
676
|
+
children?: ReactNode;
|
|
602
677
|
}
|
|
603
678
|
|
|
604
679
|
export declare const HeadingBold: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
|
|
@@ -631,10 +706,10 @@ export declare const headingRegularStyles: {
|
|
|
631
706
|
16: RuleSet<object>;
|
|
632
707
|
};
|
|
633
708
|
|
|
634
|
-
export declare const Icon:
|
|
709
|
+
export declare const Icon: ({ component: Component, size, color, className, iconProps, }: IconProps) => JSX.Element;
|
|
635
710
|
|
|
636
711
|
declare interface IconProps {
|
|
637
|
-
component:
|
|
712
|
+
component: ReactNode | RemixiconComponentType;
|
|
638
713
|
size?: IconSizes | string | number;
|
|
639
714
|
color?: string;
|
|
640
715
|
className?: string;
|
|
@@ -650,7 +725,7 @@ export declare const IconWrapperStyles: RuleSet<object>;
|
|
|
650
725
|
* @param param0 - Props for the InfoLabel component.
|
|
651
726
|
* @returns The InfoLabel component.
|
|
652
727
|
*/
|
|
653
|
-
export declare const InfoLabel:
|
|
728
|
+
export declare const InfoLabel: ({ children, size, color, className, style }: InfoLabelProps) => JSX.Element;
|
|
654
729
|
|
|
655
730
|
/**
|
|
656
731
|
* Props for the InfoLabel component
|
|
@@ -664,8 +739,8 @@ export declare interface InfoLabelProps {
|
|
|
664
739
|
size?: keyof typeof bodyTextStyles;
|
|
665
740
|
color?: string;
|
|
666
741
|
className?: string;
|
|
667
|
-
style?:
|
|
668
|
-
children:
|
|
742
|
+
style?: CSSProperties;
|
|
743
|
+
children: ReactNode;
|
|
669
744
|
}
|
|
670
745
|
|
|
671
746
|
/**
|
|
@@ -681,7 +756,7 @@ export declare interface InputComponentProps {
|
|
|
681
756
|
size: FormFieldSize;
|
|
682
757
|
placeholder?: string;
|
|
683
758
|
type?: string;
|
|
684
|
-
onChange?: (event:
|
|
759
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
685
760
|
[key: string]: any;
|
|
686
761
|
}
|
|
687
762
|
|
|
@@ -699,9 +774,9 @@ export declare interface InputComponentProps {
|
|
|
699
774
|
*
|
|
700
775
|
* Used by: PinInputGroup component for PIN/verification code workflows
|
|
701
776
|
*/
|
|
702
|
-
export declare type InputRef =
|
|
777
|
+
export declare type InputRef = RefObject<HTMLInputElement | null>;
|
|
703
778
|
|
|
704
|
-
export declare type InputRefs =
|
|
779
|
+
export declare type InputRefs = RefObject<HTMLInputElement | null>[];
|
|
705
780
|
|
|
706
781
|
/**
|
|
707
782
|
* Interfaz específica para componentes de input que necesitan iconos
|
|
@@ -717,7 +792,7 @@ export declare interface InputWithIconsProps extends WithIconsProps {
|
|
|
717
792
|
*/
|
|
718
793
|
export declare const isAllowedInputType: (t: string) => t is AllowedInputType;
|
|
719
794
|
|
|
720
|
-
export declare const Label:
|
|
795
|
+
export declare const Label: ({ children, htmlFor, className, required, disabled, size, ...props }: BaseLabelProps) => JSX.Element;
|
|
721
796
|
|
|
722
797
|
export declare type LabelSize = 'sm' | 'md' | 'lg';
|
|
723
798
|
|
|
@@ -726,7 +801,24 @@ export declare type LabelSize = 'sm' | 'md' | 'lg';
|
|
|
726
801
|
* Wraps the layout in a SidebarProvider context.
|
|
727
802
|
* @param props - Layout properties
|
|
728
803
|
*/
|
|
729
|
-
export declare const Layout:
|
|
804
|
+
export declare const Layout: (props: LayoutProps) => JSX.Element;
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* LayoutMainContent component for the layout.
|
|
808
|
+
* Provides the main content area with responsive spacing and scrolling.
|
|
809
|
+
*/
|
|
810
|
+
export declare const LayoutMainContent: {
|
|
811
|
+
({ children, className }: LayoutMainContentProps): JSX.Element;
|
|
812
|
+
displayName: string;
|
|
813
|
+
};
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Props for the LayoutMainContent component.
|
|
817
|
+
*/
|
|
818
|
+
export declare interface LayoutMainContentProps {
|
|
819
|
+
children: ReactNode;
|
|
820
|
+
className?: string;
|
|
821
|
+
}
|
|
730
822
|
|
|
731
823
|
/**
|
|
732
824
|
* Props for the Layout component.
|
|
@@ -742,7 +834,7 @@ export declare const Layout: default_2.FC<LayoutProps>;
|
|
|
742
834
|
* @contentClassName - Optional class name for main content area.
|
|
743
835
|
*/
|
|
744
836
|
export declare interface LayoutProps extends SidebarProps {
|
|
745
|
-
children:
|
|
837
|
+
children: ReactNode;
|
|
746
838
|
user?: User;
|
|
747
839
|
hasNotifications?: boolean;
|
|
748
840
|
notificationCount?: number;
|
|
@@ -761,7 +853,7 @@ export declare interface LayoutProps extends SidebarProps {
|
|
|
761
853
|
* @param ref - Ref to the anchor element
|
|
762
854
|
* @return JSX.Element
|
|
763
855
|
*/
|
|
764
|
-
export declare const Link:
|
|
856
|
+
export declare const Link: ForwardRefExoticComponent<LinkProps & RefAttributes<HTMLAnchorElement>>;
|
|
765
857
|
|
|
766
858
|
/**
|
|
767
859
|
* CSS styles applied when the Link is disabled.
|
|
@@ -847,7 +939,7 @@ export declare const Nav: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps
|
|
|
847
939
|
export declare interface NavigationItem {
|
|
848
940
|
id: string;
|
|
849
941
|
label: string;
|
|
850
|
-
icon?:
|
|
942
|
+
icon?: ReactNode | RemixiconComponentType;
|
|
851
943
|
iconSize?: IconSizes | string | number;
|
|
852
944
|
iconColor?: string;
|
|
853
945
|
href?: string;
|
|
@@ -873,6 +965,24 @@ export declare const normalizeSelectOptions: (options: Array<{
|
|
|
873
965
|
label: string;
|
|
874
966
|
}> | SelectOption[]) => SelectOption[];
|
|
875
967
|
|
|
968
|
+
/**
|
|
969
|
+
* NotificationButton component with badge and count display.
|
|
970
|
+
* Handles notification state and provides accessible interaction.
|
|
971
|
+
*/
|
|
972
|
+
export declare const NotificationButton: {
|
|
973
|
+
({ hasNotifications, notificationCount, onNotificationClick, }: NotificationButtonProps): JSX.Element;
|
|
974
|
+
displayName: string;
|
|
975
|
+
};
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* Props for the NotificationButton component.
|
|
979
|
+
*/
|
|
980
|
+
export declare interface NotificationButtonProps {
|
|
981
|
+
hasNotifications?: boolean;
|
|
982
|
+
notificationCount?: number;
|
|
983
|
+
onNotificationClick?: () => void;
|
|
984
|
+
}
|
|
985
|
+
|
|
876
986
|
/**
|
|
877
987
|
* Overlay component for mobile sidebar.
|
|
878
988
|
*/
|
|
@@ -898,7 +1008,7 @@ export declare const overlayAnimation: {
|
|
|
898
1008
|
};
|
|
899
1009
|
};
|
|
900
1010
|
|
|
901
|
-
export declare const PasswordInput:
|
|
1011
|
+
export declare const PasswordInput: ({ size, leftIcon, iconSize, iconColor, placeholder, hasError, disabled, className, ...props }: PasswordInputProps) => JSX.Element;
|
|
902
1012
|
|
|
903
1013
|
export declare interface PasswordInputProps extends BaseFormFieldProps, Omit<WithIconsProps, 'rightIcon'> {
|
|
904
1014
|
}
|
|
@@ -907,7 +1017,10 @@ export declare type Permission = string;
|
|
|
907
1017
|
|
|
908
1018
|
export declare const PinInput: ForwardRefExoticComponent<PinInputProps & RefAttributes<HTMLInputElement>>;
|
|
909
1019
|
|
|
910
|
-
export declare const PinInputGroup:
|
|
1020
|
+
export declare const PinInputGroup: {
|
|
1021
|
+
({ length, size, variant, hasError, type, onChange, onComplete, className, pinInputClassName, }: PinInputGroupProps): JSX.Element;
|
|
1022
|
+
displayName: string;
|
|
1023
|
+
};
|
|
911
1024
|
|
|
912
1025
|
export declare interface PinInputGroupProps {
|
|
913
1026
|
length?: number;
|
|
@@ -933,17 +1046,20 @@ export declare interface PinSpecificProps {
|
|
|
933
1046
|
|
|
934
1047
|
export declare const RadioInput: ForwardRefExoticComponent<RadioInputProps & RefAttributes<HTMLInputElement>>;
|
|
935
1048
|
|
|
936
|
-
export declare const RadioInputDot:
|
|
1049
|
+
export declare const RadioInputDot: ForwardRefExoticComponent<RadioInputDotProps & RefAttributes<HTMLInputElement>>;
|
|
937
1050
|
|
|
938
|
-
declare interface RadioInputDotProps extends Omit<
|
|
1051
|
+
declare interface RadioInputDotProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
|
|
939
1052
|
size?: FormFieldSize;
|
|
940
1053
|
hasError?: boolean;
|
|
941
1054
|
dotClassName?: string;
|
|
942
1055
|
}
|
|
943
1056
|
|
|
944
|
-
export declare const RadioInputLabel:
|
|
1057
|
+
export declare const RadioInputLabel: {
|
|
1058
|
+
({ children, htmlFor, className, disabled, size, ...props }: BaseLabelProps): JSX.Element;
|
|
1059
|
+
displayName: string;
|
|
1060
|
+
};
|
|
945
1061
|
|
|
946
|
-
export declare interface RadioInputProps extends Omit<
|
|
1062
|
+
export declare interface RadioInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
|
|
947
1063
|
size?: FormFieldSize;
|
|
948
1064
|
label?: string;
|
|
949
1065
|
hasError?: boolean;
|
|
@@ -957,10 +1073,10 @@ export declare interface RadioSpecificProps {
|
|
|
957
1073
|
label: string;
|
|
958
1074
|
}>;
|
|
959
1075
|
radioName?: string;
|
|
960
|
-
onRadioChange?: (event:
|
|
1076
|
+
onRadioChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
961
1077
|
}
|
|
962
1078
|
|
|
963
|
-
export declare const SearchInput:
|
|
1079
|
+
export declare const SearchInput: ({ size, leftIcon, rightIcon, iconSize, iconColor, placeholder, onSearch, className, ...props }: SearchInputProps) => JSX.Element;
|
|
964
1080
|
|
|
965
1081
|
export declare interface SearchInputProps extends BaseInputProps {
|
|
966
1082
|
size?: FormFieldSize;
|
|
@@ -973,15 +1089,9 @@ export declare interface SearchSpecificProps {
|
|
|
973
1089
|
onSearch?: (value: string) => void;
|
|
974
1090
|
}
|
|
975
1091
|
|
|
976
|
-
export declare const
|
|
977
|
-
message?: string;
|
|
978
|
-
color?: ColorKey;
|
|
979
|
-
variant?: Variant;
|
|
980
|
-
}>;
|
|
981
|
-
|
|
982
|
-
export declare const SelectInput: default_2.ForwardRefExoticComponent<SelectInputProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
1092
|
+
export declare const SelectInput: ForwardRefExoticComponent<SelectInputProps & RefAttributes<HTMLButtonElement>>;
|
|
983
1093
|
|
|
984
|
-
export declare interface SelectInputProps extends Omit<
|
|
1094
|
+
export declare interface SelectInputProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
|
|
985
1095
|
size?: FormFieldSize;
|
|
986
1096
|
hasError?: boolean;
|
|
987
1097
|
disabled?: boolean;
|
|
@@ -1016,7 +1126,7 @@ export declare interface SelectSpecificProps {
|
|
|
1016
1126
|
*/
|
|
1017
1127
|
export declare function setCookie(name: string, value: string, days?: number): void;
|
|
1018
1128
|
|
|
1019
|
-
export declare type SetDigits =
|
|
1129
|
+
export declare type SetDigits = Dispatch<SetStateAction<string[]>>;
|
|
1020
1130
|
|
|
1021
1131
|
/**
|
|
1022
1132
|
* Sidebar component for navigation.
|
|
@@ -1026,7 +1136,10 @@ export declare type SetDigits = default_2.Dispatch<default_2.SetStateAction<stri
|
|
|
1026
1136
|
* @param logoImgExpanded - Logo when sidebar is expanded.
|
|
1027
1137
|
* @param logoImgCollapsed - Logo when sidebar is collapsed.
|
|
1028
1138
|
*/
|
|
1029
|
-
export declare const Sidebar:
|
|
1139
|
+
export declare const Sidebar: {
|
|
1140
|
+
({ navigationConfig, userRoles, activePath, logoImgExpanded, logoImgCollapsed, onNavigate, }: SidebarProps): JSX.Element;
|
|
1141
|
+
displayName: string;
|
|
1142
|
+
};
|
|
1030
1143
|
|
|
1031
1144
|
export declare const SidebarContext: Context<SidebarContextValue | undefined>;
|
|
1032
1145
|
|
|
@@ -1066,13 +1179,23 @@ export declare interface SidebarProps {
|
|
|
1066
1179
|
navigationConfig: NavigationItem[];
|
|
1067
1180
|
userRoles?: string[];
|
|
1068
1181
|
activePath?: string;
|
|
1069
|
-
logoImgExpanded?:
|
|
1070
|
-
logoImgCollapsed?:
|
|
1182
|
+
logoImgExpanded?: ReactNode;
|
|
1183
|
+
logoImgCollapsed?: ReactNode;
|
|
1071
1184
|
onNavigate?: (href: string) => void;
|
|
1072
1185
|
}
|
|
1073
1186
|
|
|
1074
1187
|
export declare const SidebarProvider: ({ children }: PropsWithChildren) => JSX.Element;
|
|
1075
1188
|
|
|
1189
|
+
/**
|
|
1190
|
+
* Size options for the Spinner component.
|
|
1191
|
+
* typedef {('sm' | 'md' | 'lg' | 'xl')} Size
|
|
1192
|
+
*
|
|
1193
|
+
* Color key options for the Spinner component.
|
|
1194
|
+
* typedef {('primary' | 'orange' | 'white' | 'gray')} ColorKey
|
|
1195
|
+
*
|
|
1196
|
+
* Animation variant options for the Spinner component.
|
|
1197
|
+
* typedef {('rotate' | 'sweep')} Variant
|
|
1198
|
+
*/
|
|
1076
1199
|
declare type Size = 'sm' | 'md' | 'lg' | 'xl';
|
|
1077
1200
|
|
|
1078
1201
|
export declare const sizeStyles: {
|
|
@@ -1203,16 +1326,13 @@ export declare interface SortState {
|
|
|
1203
1326
|
direction: SortDirection;
|
|
1204
1327
|
}
|
|
1205
1328
|
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
title?: string;
|
|
1214
|
-
variant?: Variant;
|
|
1215
|
-
}
|
|
1329
|
+
/**
|
|
1330
|
+
* Spinner Component
|
|
1331
|
+
* Renders a customizable spinner with optional message and centering.
|
|
1332
|
+
* @param {BaseSpinnerProps} props - Props for the Spinner component see in Spinner.types.ts .
|
|
1333
|
+
* @returns JSX.Element The rendered Spinner component.
|
|
1334
|
+
*/
|
|
1335
|
+
export declare const Spinner: ({ size, color, centered, message, title, variant, }: BaseSpinnerProps) => JSX.Element;
|
|
1216
1336
|
|
|
1217
1337
|
/**
|
|
1218
1338
|
* Represents a single step in the Stepper.
|
|
@@ -1220,14 +1340,14 @@ declare interface SpinnerProps {
|
|
|
1220
1340
|
export declare interface Step {
|
|
1221
1341
|
id: string | number;
|
|
1222
1342
|
label?: string;
|
|
1223
|
-
content?:
|
|
1343
|
+
content?: ReactNode | string;
|
|
1224
1344
|
}
|
|
1225
1345
|
|
|
1226
1346
|
/**
|
|
1227
1347
|
* Stepper component for displaying multi-step navigation UI.
|
|
1228
1348
|
* Simple and functional with hover labels.
|
|
1229
1349
|
*/
|
|
1230
|
-
export declare const Stepper:
|
|
1350
|
+
export declare const Stepper: ({ steps, currentStep, orientation, size, onStepClick, className, }: StepperProps) => JSX.Element;
|
|
1231
1351
|
|
|
1232
1352
|
/**
|
|
1233
1353
|
* Orientation options for the Stepper component.
|
|
@@ -1395,7 +1515,7 @@ export declare const tableVariants: {
|
|
|
1395
1515
|
striped: RuleSet<object>;
|
|
1396
1516
|
};
|
|
1397
1517
|
|
|
1398
|
-
export declare const TermsAndConditions:
|
|
1518
|
+
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
1519
|
|
|
1400
1520
|
export declare interface TermsAndConditionsProps {
|
|
1401
1521
|
isOpen: boolean;
|
|
@@ -1403,8 +1523,8 @@ export declare interface TermsAndConditionsProps {
|
|
|
1403
1523
|
onCancel: () => void;
|
|
1404
1524
|
title: string;
|
|
1405
1525
|
subtitle?: string;
|
|
1406
|
-
content:
|
|
1407
|
-
bodyFooter?:
|
|
1526
|
+
content: ReactNode;
|
|
1527
|
+
bodyFooter?: ReactNode;
|
|
1408
1528
|
confirmationLabel?: string;
|
|
1409
1529
|
acceptLabel?: string;
|
|
1410
1530
|
cancelLabel?: string;
|
|
@@ -1428,7 +1548,7 @@ export { Text_2 as Text }
|
|
|
1428
1548
|
|
|
1429
1549
|
export declare const TextAreaInput: ForwardRefExoticComponent<TextAreaInputProps & RefAttributes<HTMLTextAreaElement>>;
|
|
1430
1550
|
|
|
1431
|
-
export declare interface TextAreaInputProps extends Omit<
|
|
1551
|
+
export declare interface TextAreaInputProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> {
|
|
1432
1552
|
size?: FormFieldSize;
|
|
1433
1553
|
hasError?: boolean;
|
|
1434
1554
|
disabled?: boolean;
|
|
@@ -1458,6 +1578,17 @@ declare type ToastProviderProps = ToasterProps & {
|
|
|
1458
1578
|
spinnerColor?: ColorKey_2;
|
|
1459
1579
|
};
|
|
1460
1580
|
|
|
1581
|
+
/**
|
|
1582
|
+
* Custom hook to handle notification logic and state.
|
|
1583
|
+
* Returns computed values for notification display.
|
|
1584
|
+
*/
|
|
1585
|
+
export declare const useNotifications: ({ hasNotifications, notificationCount, }: Pick<NotificationButtonProps, "hasNotifications" | "notificationCount">) => {
|
|
1586
|
+
effectiveHasNotifications: boolean;
|
|
1587
|
+
displayCount: number | undefined;
|
|
1588
|
+
badgeLabel: string;
|
|
1589
|
+
bellAriaLabel: string;
|
|
1590
|
+
};
|
|
1591
|
+
|
|
1461
1592
|
/**
|
|
1462
1593
|
* User interface for the UserProfile component
|
|
1463
1594
|
*/
|
|
@@ -1469,15 +1600,44 @@ export declare interface User {
|
|
|
1469
1600
|
|
|
1470
1601
|
/**
|
|
1471
1602
|
* User menu item configuration
|
|
1472
|
-
|
|
1473
|
-
|
|
1603
|
+
* Defines a single item in the user profile dropdown menu.
|
|
1604
|
+
* @param id Unique identifier for the menu item
|
|
1605
|
+
* @param label Display text for the menu item
|
|
1606
|
+
* @param icon Icon component to display next to the label
|
|
1607
|
+
* @param onClick Function to call when the item is clicked
|
|
1608
|
+
* @param variant Optional styling variant ('default' or 'danger')
|
|
1609
|
+
*/
|
|
1610
|
+
export declare interface UserMenuItem {
|
|
1474
1611
|
id: string;
|
|
1475
1612
|
label: string;
|
|
1476
|
-
icon:
|
|
1613
|
+
icon: ReactNode | RemixiconComponentType;
|
|
1477
1614
|
onClick: () => void;
|
|
1478
1615
|
variant?: 'default' | 'danger';
|
|
1479
1616
|
}
|
|
1480
1617
|
|
|
1618
|
+
/**
|
|
1619
|
+
* UserProfile component with dropdown menu functionality.
|
|
1620
|
+
* Displays user avatar, name, role, and provides a dropdown menu with configurable actions.
|
|
1621
|
+
*/
|
|
1622
|
+
export declare const UserProfile: {
|
|
1623
|
+
({ user, onProfileClick, onLogout, menuItems, }: UserProfileProps): JSX.Element;
|
|
1624
|
+
displayName: string;
|
|
1625
|
+
};
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* Props for the UserProfile component.
|
|
1629
|
+
* @param user The user object containing name and role information
|
|
1630
|
+
* @param onProfileClick Optional function to call when profile is clicked
|
|
1631
|
+
* @param onLogout Optional function to call when logout is selected
|
|
1632
|
+
* @param menuItems Optional array of custom menu items to display
|
|
1633
|
+
*/
|
|
1634
|
+
export declare interface UserProfileProps {
|
|
1635
|
+
user: User;
|
|
1636
|
+
onProfileClick?: () => void;
|
|
1637
|
+
onLogout?: () => void;
|
|
1638
|
+
menuItems?: UserMenuItem[];
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1481
1641
|
export declare const useSidebar: () => SidebarContextValue;
|
|
1482
1642
|
|
|
1483
1643
|
/**
|
|
@@ -1497,8 +1657,8 @@ declare type Variant = 'rotate' | 'sweep';
|
|
|
1497
1657
|
* Puede ser extendida por cualquier componente que necesite funcionalidad de iconos
|
|
1498
1658
|
*/
|
|
1499
1659
|
export declare interface WithIconsProps {
|
|
1500
|
-
leftIcon?:
|
|
1501
|
-
rightIcon?:
|
|
1660
|
+
leftIcon?: ReactNode | RemixiconComponentType;
|
|
1661
|
+
rightIcon?: ReactNode | RemixiconComponentType;
|
|
1502
1662
|
iconSize?: IconSizes | string | number;
|
|
1503
1663
|
iconColor?: string;
|
|
1504
1664
|
}
|