aha-components 1.7.12 → 1.8.2
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.
- package/README.md +10 -0
- package/dist/Avatar.esm.js +2 -0
- package/dist/Avatar.esm.js.map +1 -0
- package/dist/Avatar.js +2 -0
- package/dist/Avatar.js.map +1 -0
- package/dist/Badge.esm.js +2 -0
- package/dist/Badge.esm.js.map +1 -0
- package/dist/Badge.js +2 -0
- package/dist/Badge.js.map +1 -0
- package/dist/Checkbox.esm.js +1 -1
- package/dist/Checkbox.esm.js.map +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/Checkbox.js.map +1 -1
- package/dist/Input.esm.js +1 -1
- package/dist/Input.esm.js.map +1 -1
- package/dist/Input.js +1 -1
- package/dist/Input.js.map +1 -1
- package/dist/Pagination.esm.js +1 -1
- package/dist/Pagination.esm.js.map +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/Pagination.js.map +1 -1
- package/dist/Radio.esm.js +1 -1
- package/dist/Radio.esm.js.map +1 -1
- package/dist/Radio.js +1 -1
- package/dist/Radio.js.map +1 -1
- package/dist/Table.esm.js +1 -1
- package/dist/Table.esm.js.map +1 -1
- package/dist/Table.js +1 -1
- package/dist/Table.js.map +1 -1
- package/dist/Tag.esm.js +1 -1
- package/dist/Tag.esm.js.map +1 -1
- package/dist/Tag.js +1 -1
- package/dist/Tag.js.map +1 -1
- package/dist/Textarea.esm.js +1 -1
- package/dist/Textarea.esm.js.map +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/Textarea.js.map +1 -1
- package/dist/components/Avatar/Avatar.stories.d.ts +12 -0
- package/dist/components/Avatar/index.d.ts +42 -0
- package/dist/components/Badge/Badge.stories.d.ts +15 -0
- package/dist/components/Badge/index.d.ts +71 -0
- package/dist/components/Checkbox/Checkbox.stories 2.d.ts +12 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +5 -4
- package/dist/components/Checkbox/index 2.d.ts +12 -0
- package/dist/components/Checkbox/index.d.ts +6 -0
- package/dist/components/DatePicker/DatePicker.stories 2.d.ts +25 -0
- package/dist/components/DatePicker/index 2.d.ts +96 -0
- package/dist/components/Drawer/Drawer.stories 2.d.ts +9 -0
- package/dist/components/Drawer/index 2.d.ts +58 -0
- package/dist/components/Form/Form.stories 2.d.ts +15 -0
- package/dist/components/Form/FormContext 2.d.ts +41 -0
- package/dist/components/Form/FormItem 2.d.ts +58 -0
- package/dist/components/Form/index 2.d.ts +85 -0
- package/dist/components/Input/Input.stories 2.d.ts +16 -0
- package/dist/components/Input/Input.stories.d.ts +7 -4
- package/dist/components/Input/InputGroup.d.ts +25 -0
- package/dist/components/Input/InputTags.d.ts +17 -0
- package/dist/components/Input/index 2.d.ts +41 -0
- package/dist/components/Input/index.d.ts +7 -18
- package/dist/components/Loading/Loading.stories 2.d.ts +11 -0
- package/dist/components/Loading/index 2.d.ts +10 -0
- package/dist/components/MenuList/MenuList.stories 2.d.ts +17 -0
- package/dist/components/MenuList/MenuList.test 2.d.ts +1 -0
- package/dist/components/MenuList/index 2.d.ts +85 -0
- package/dist/components/Pagination/Pagination.stories 2.d.ts +16 -0
- package/dist/components/Pagination/index 2.d.ts +27 -0
- package/dist/components/Popover/Popover.stories 2.d.ts +11 -0
- package/dist/components/Popover/index 2.d.ts +31 -0
- package/dist/components/Progress/Progress.stories 2.d.ts +18 -0
- package/dist/components/Progress/Progress.test 2.d.ts +1 -0
- package/dist/components/Progress/index 2.d.ts +33 -0
- package/dist/components/Radio/Radio.stories 2.d.ts +10 -0
- package/dist/components/Radio/Radio.stories.d.ts +6 -4
- package/dist/components/Radio/index 2.d.ts +13 -0
- package/dist/components/Radio/index.d.ts +6 -0
- package/dist/components/Select/Select.stories 2.d.ts +17 -0
- package/dist/components/Select/index 2.d.ts +74 -0
- package/dist/components/Switch/Switch.stories 2.d.ts +14 -0
- package/dist/components/Switch/index 2.d.ts +27 -0
- package/dist/components/Tab/Tab.stories 2.d.ts +19 -0
- package/dist/components/Tab/index 2.d.ts +26 -0
- package/dist/components/Table/Table.stories 2.d.ts +21 -0
- package/dist/components/Table/index 2.d.ts +167 -0
- package/dist/components/Tag/Tag.stories.d.ts +5 -8
- package/dist/components/Tag/index.d.ts +24 -2
- package/dist/components/Textarea/Textarea.stories 2.d.ts +15 -0
- package/dist/components/Textarea/Textarea.stories.d.ts +3 -6
- package/dist/components/Textarea/TextareaTags.d.ts +8 -0
- package/dist/components/Textarea/index 2.d.ts +38 -0
- package/dist/components/Textarea/index.d.ts +6 -17
- package/dist/components/Tooltip/Tooltip.stories 2.d.ts +20 -0
- package/dist/components/Tooltip/index 2.d.ts +35 -0
- package/dist/design-tokens/theme.css +26 -0
- package/dist/design-tokens/theme.tailwind4.css +26 -0
- package/dist/icons/index 2.d.ts +33 -0
- package/dist/index.css +4810 -1
- package/dist/index.d.ts +195 -39
- package/dist/index.esm.css +4810 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/stories/DesignTokens.stories 2.d.ts +5 -0
- package/dist/theme/Theme.stories 2.d.ts +10 -0
- package/dist/theme/ThemeContext 2.d.ts +11 -0
- package/dist/theme/utils 2.d.ts +10 -0
- package/dist/theme.css +26 -0
- package/dist/tokens.d.ts +30 -0
- package/package.json +1 -1
- package/dist/AlertComponent.esm.js +0 -2
- package/dist/AlertComponent.esm.js.map +0 -1
- package/dist/AlertComponent.js +0 -2
- package/dist/AlertComponent.js.map +0 -1
- package/dist/Card.esm.js +0 -2
- package/dist/Card.esm.js.map +0 -1
- package/dist/Card.js +0 -2
- package/dist/Card.js.map +0 -1
- package/dist/TestComponent.esm.js +0 -2
- package/dist/TestComponent.esm.js.map +0 -1
- package/dist/TestComponent.js +0 -2
- package/dist/TestComponent.js.map +0 -1
- package/dist/Toast.css +0 -1
- package/dist/Toast.esm.css +0 -1
- package/dist/components/AlertComponent/index.d.ts +0 -9
- package/dist/components/Card/index.d.ts +0 -10
- package/dist/components/TestComponent/index.d.ts +0 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode, MouseEventHandler, FC } from 'react';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -87,15 +87,31 @@ declare const ToastProvider: React.FC<{
|
|
|
87
87
|
|
|
88
88
|
type TagColor = 'Green' | 'Red' | 'Orange' | 'Cyan' | 'Violet' | 'Pink' | 'Gray' | 'Yellow' | 'Blue' | string;
|
|
89
89
|
type TagVariant = 'light' | 'fill';
|
|
90
|
-
|
|
90
|
+
/** sm/md/lg are the canonical sizes; large/small are legacy aliases */
|
|
91
|
+
type TagSize = 'sm' | 'md' | 'lg' | 'large' | 'small';
|
|
92
|
+
/** Leading icon variant */
|
|
93
|
+
type TagIconType = 'none' | 'dot' | 'avatar' | 'icon';
|
|
94
|
+
/** Right-side action */
|
|
95
|
+
type TagAction = 'none' | 'x-close' | 'count';
|
|
96
|
+
/** @deprecated Use iconType instead */
|
|
91
97
|
type IconPosition = 'leading' | 'after' | 'none';
|
|
92
98
|
interface TagProps {
|
|
93
99
|
children: React.ReactNode;
|
|
94
|
-
color
|
|
100
|
+
color?: TagColor;
|
|
95
101
|
variant?: TagVariant;
|
|
96
102
|
size?: TagSize;
|
|
97
103
|
stroke?: boolean;
|
|
104
|
+
iconType?: TagIconType;
|
|
98
105
|
icon?: React.ReactElement;
|
|
106
|
+
avatarSrc?: string;
|
|
107
|
+
dotColor?: string;
|
|
108
|
+
action?: TagAction;
|
|
109
|
+
count?: number;
|
|
110
|
+
onClose?: () => void;
|
|
111
|
+
checkbox?: boolean;
|
|
112
|
+
checked?: boolean;
|
|
113
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
114
|
+
/** @deprecated use iconType='icon' */
|
|
99
115
|
iconPosition?: IconPosition;
|
|
100
116
|
className?: string;
|
|
101
117
|
onClick?: () => void;
|
|
@@ -298,6 +314,12 @@ interface CheckboxProps {
|
|
|
298
314
|
className?: string;
|
|
299
315
|
style?: React.CSSProperties;
|
|
300
316
|
children?: React.ReactNode;
|
|
317
|
+
/** sm = 16px, md = 20px */
|
|
318
|
+
size?: 'sm' | 'md';
|
|
319
|
+
/** Secondary description rendered below the label */
|
|
320
|
+
hint?: React.ReactNode;
|
|
321
|
+
/** Force focused appearance (useful for Storybook demos) */
|
|
322
|
+
isFocused?: boolean;
|
|
301
323
|
}
|
|
302
324
|
declare const Checkbox: React.FC<CheckboxProps>;
|
|
303
325
|
|
|
@@ -310,6 +332,12 @@ interface RadioProps {
|
|
|
310
332
|
children?: React.ReactNode;
|
|
311
333
|
value?: any;
|
|
312
334
|
name?: string;
|
|
335
|
+
/** sm = 16px, md = 20px */
|
|
336
|
+
size?: 'sm' | 'md';
|
|
337
|
+
/** Secondary description rendered below the label */
|
|
338
|
+
hint?: React.ReactNode;
|
|
339
|
+
/** Force focused appearance (useful for Storybook demos) */
|
|
340
|
+
isFocused?: boolean;
|
|
313
341
|
}
|
|
314
342
|
declare const Radio: React.FC<RadioProps>;
|
|
315
343
|
|
|
@@ -370,46 +398,77 @@ interface ProgressProps {
|
|
|
370
398
|
}
|
|
371
399
|
declare const Progress: React.FC<ProgressProps>;
|
|
372
400
|
|
|
401
|
+
interface InputGroupProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'suffix'> {
|
|
402
|
+
size?: 'small' | 'mediumSmall' | 'medium' | 'large';
|
|
403
|
+
error?: boolean;
|
|
404
|
+
readOnly?: boolean;
|
|
405
|
+
disabled?: boolean;
|
|
406
|
+
prefix?: React.ReactNode;
|
|
407
|
+
suffix?: React.ReactNode;
|
|
408
|
+
/** Text addon on the left (e.g. "https://") — auto-styled with correct padding */
|
|
409
|
+
leadingText?: React.ReactNode;
|
|
410
|
+
/** Text addon on the right (e.g. "USD") — auto-styled with correct padding */
|
|
411
|
+
trailingText?: React.ReactNode;
|
|
412
|
+
/** Raw ReactNode on the left (dropdown, icon button, etc.) — no padding added */
|
|
413
|
+
leadingAddon?: React.ReactNode;
|
|
414
|
+
/** Raw ReactNode on the right (button, select, etc.) — no padding added */
|
|
415
|
+
trailingAddon?: React.ReactNode;
|
|
416
|
+
onPressEnter?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
417
|
+
className?: string;
|
|
418
|
+
style?: React.CSSProperties;
|
|
419
|
+
label?: string;
|
|
420
|
+
required?: boolean;
|
|
421
|
+
hintText?: string;
|
|
422
|
+
}
|
|
423
|
+
declare const InputGroup: React.ForwardRefExoticComponent<InputGroupProps & React.RefAttributes<HTMLInputElement>>;
|
|
424
|
+
|
|
425
|
+
interface InputTagsProps {
|
|
426
|
+
value?: string[];
|
|
427
|
+
defaultValue?: string[];
|
|
428
|
+
onChange?: (tags: string[]) => void;
|
|
429
|
+
placeholder?: string;
|
|
430
|
+
disabled?: boolean;
|
|
431
|
+
error?: boolean;
|
|
432
|
+
size?: 'small' | 'mediumSmall' | 'medium' | 'large';
|
|
433
|
+
className?: string;
|
|
434
|
+
style?: React.CSSProperties;
|
|
435
|
+
label?: string;
|
|
436
|
+
required?: boolean;
|
|
437
|
+
hintText?: string;
|
|
438
|
+
}
|
|
439
|
+
declare const InputTags: React.FC<InputTagsProps>;
|
|
440
|
+
|
|
373
441
|
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'suffix'> {
|
|
374
|
-
/** 输入框大小 */
|
|
375
442
|
size?: 'small' | 'mediumSmall' | 'medium' | 'large';
|
|
376
|
-
/** 是否禁用 */
|
|
377
443
|
disabled?: boolean;
|
|
378
|
-
/** 是否显示错误状态 */
|
|
379
444
|
error?: boolean;
|
|
380
|
-
/** 是否只读 */
|
|
381
445
|
readOnly?: boolean;
|
|
382
|
-
/** 输入框前缀图标 */
|
|
383
446
|
prefix?: React.ReactNode;
|
|
384
|
-
/** 输入框后缀图标 */
|
|
385
447
|
suffix?: React.ReactNode;
|
|
386
|
-
/** 允许清除 */
|
|
387
448
|
allowClear?: boolean;
|
|
388
|
-
/** 清除回调 */
|
|
389
449
|
onClear?: () => void;
|
|
390
|
-
/** 自定义类名 */
|
|
391
450
|
className?: string;
|
|
392
|
-
/** 自定义样式 */
|
|
393
451
|
style?: React.CSSProperties;
|
|
394
|
-
/** 输入框类型 */
|
|
395
452
|
type?: string;
|
|
396
|
-
/** 占位符 */
|
|
397
453
|
placeholder?: string;
|
|
398
|
-
/** 值 */
|
|
399
454
|
value?: string;
|
|
400
|
-
/** 默认值 */
|
|
401
455
|
defaultValue?: string;
|
|
402
|
-
/** 变化回调 */
|
|
403
456
|
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
404
|
-
/** 聚焦回调 */
|
|
405
457
|
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
406
|
-
/** 失焦回调 */
|
|
407
458
|
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
408
|
-
/** 按下回车回调 */
|
|
409
459
|
onPressEnter?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
460
|
+
label?: string;
|
|
461
|
+
required?: boolean;
|
|
462
|
+
hintText?: string;
|
|
410
463
|
}
|
|
411
464
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
412
465
|
|
|
466
|
+
interface TextareaTagsProps extends Omit<InputTagsProps, 'size'> {
|
|
467
|
+
minHeight?: number;
|
|
468
|
+
helpIcon?: React.ReactNode;
|
|
469
|
+
}
|
|
470
|
+
declare const TextareaTags: React.FC<TextareaTagsProps>;
|
|
471
|
+
|
|
413
472
|
interface LinkifyOptions {
|
|
414
473
|
validate?: (url: string) => boolean;
|
|
415
474
|
className?: string;
|
|
@@ -418,43 +477,30 @@ interface LinkifyOptions {
|
|
|
418
477
|
allowedTlds?: string[];
|
|
419
478
|
}
|
|
420
479
|
interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> {
|
|
421
|
-
/** 是否禁用 */
|
|
422
480
|
disabled?: boolean;
|
|
423
|
-
/** 是否显示错误状态 */
|
|
424
481
|
error?: boolean;
|
|
425
|
-
/** 是否只读 */
|
|
426
482
|
readOnly?: boolean;
|
|
427
|
-
/** 是否显示字符计数 */
|
|
428
483
|
showCount?: boolean;
|
|
429
|
-
/** 最大字符数 */
|
|
430
484
|
maxLength?: number;
|
|
431
|
-
/** 自定义类名 */
|
|
432
485
|
className?: string;
|
|
433
|
-
/** 自定义样式 */
|
|
434
486
|
style?: React.CSSProperties;
|
|
435
|
-
/** 占位符 */
|
|
436
487
|
placeholder?: string;
|
|
437
|
-
/** 值 */
|
|
438
488
|
value?: string;
|
|
439
|
-
/** 默认值 */
|
|
440
489
|
defaultValue?: string;
|
|
441
|
-
/** 行数 */
|
|
442
490
|
rows?: number;
|
|
443
|
-
/** 是否自动调整高度 */
|
|
444
491
|
autoSize?: boolean | {
|
|
445
492
|
minRows?: number;
|
|
446
493
|
maxRows?: number;
|
|
447
494
|
};
|
|
448
|
-
/** 变化回调 */
|
|
449
495
|
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
450
|
-
/** 聚焦回调 */
|
|
451
496
|
onFocus?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
452
|
-
/** 失焦回调 */
|
|
453
497
|
onBlur?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
454
|
-
/** 是否启用实时链接识别 */
|
|
455
498
|
linkify?: boolean;
|
|
456
|
-
/** 链接识别配置 */
|
|
457
499
|
linkifyOptions?: LinkifyOptions;
|
|
500
|
+
label?: string;
|
|
501
|
+
required?: boolean;
|
|
502
|
+
hintText?: string;
|
|
503
|
+
helpIcon?: React.ReactNode;
|
|
458
504
|
}
|
|
459
505
|
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
460
506
|
|
|
@@ -997,6 +1043,116 @@ interface LoadingProps {
|
|
|
997
1043
|
}
|
|
998
1044
|
declare const Loading: React.FC<LoadingProps>;
|
|
999
1045
|
|
|
1046
|
+
type BadgeColor = 'gray' | 'brand' | 'error' | 'warning' | 'success' | 'grayBlue' | 'blueLight' | 'blue' | 'indigo' | 'purple' | 'pink' | 'orange';
|
|
1047
|
+
type BadgeVariant = 'pill' | 'badge' | 'modern';
|
|
1048
|
+
type BadgeSize = 'sm' | 'md' | 'lg';
|
|
1049
|
+
type BadgeIconComponent = React.FC<{
|
|
1050
|
+
style?: React.CSSProperties;
|
|
1051
|
+
className?: string;
|
|
1052
|
+
}>;
|
|
1053
|
+
interface BadgeProps {
|
|
1054
|
+
variant?: BadgeVariant;
|
|
1055
|
+
size?: BadgeSize;
|
|
1056
|
+
color?: BadgeColor;
|
|
1057
|
+
children: ReactNode;
|
|
1058
|
+
style?: React.CSSProperties;
|
|
1059
|
+
className?: string;
|
|
1060
|
+
}
|
|
1061
|
+
declare const Badge: React.FC<BadgeProps>;
|
|
1062
|
+
interface BadgeWithDotProps {
|
|
1063
|
+
variant?: BadgeVariant;
|
|
1064
|
+
size?: BadgeSize;
|
|
1065
|
+
color?: BadgeColor;
|
|
1066
|
+
children: ReactNode;
|
|
1067
|
+
style?: React.CSSProperties;
|
|
1068
|
+
className?: string;
|
|
1069
|
+
}
|
|
1070
|
+
declare const BadgeWithDot: React.FC<BadgeWithDotProps>;
|
|
1071
|
+
interface BadgeWithIconProps {
|
|
1072
|
+
variant?: BadgeVariant;
|
|
1073
|
+
size?: BadgeSize;
|
|
1074
|
+
color?: BadgeColor;
|
|
1075
|
+
iconLeading?: BadgeIconComponent;
|
|
1076
|
+
iconTrailing?: BadgeIconComponent;
|
|
1077
|
+
children: ReactNode;
|
|
1078
|
+
style?: React.CSSProperties;
|
|
1079
|
+
className?: string;
|
|
1080
|
+
}
|
|
1081
|
+
declare const BadgeWithIcon: React.FC<BadgeWithIconProps>;
|
|
1082
|
+
interface BadgeWithButtonProps {
|
|
1083
|
+
variant?: BadgeVariant;
|
|
1084
|
+
size?: BadgeSize;
|
|
1085
|
+
color?: BadgeColor;
|
|
1086
|
+
icon?: BadgeIconComponent;
|
|
1087
|
+
children: ReactNode;
|
|
1088
|
+
buttonLabel?: string;
|
|
1089
|
+
onButtonClick?: MouseEventHandler<HTMLButtonElement>;
|
|
1090
|
+
style?: React.CSSProperties;
|
|
1091
|
+
className?: string;
|
|
1092
|
+
}
|
|
1093
|
+
declare const BadgeWithButton: React.FC<BadgeWithButtonProps>;
|
|
1094
|
+
interface BadgeIconProps {
|
|
1095
|
+
variant?: BadgeVariant;
|
|
1096
|
+
size?: BadgeSize;
|
|
1097
|
+
color?: BadgeColor;
|
|
1098
|
+
icon: BadgeIconComponent;
|
|
1099
|
+
style?: React.CSSProperties;
|
|
1100
|
+
className?: string;
|
|
1101
|
+
}
|
|
1102
|
+
declare const BadgeIcon: React.FC<BadgeIconProps>;
|
|
1103
|
+
interface BadgeWithImageProps {
|
|
1104
|
+
variant?: Exclude<BadgeVariant, 'modern'>;
|
|
1105
|
+
size?: BadgeSize;
|
|
1106
|
+
color?: BadgeColor;
|
|
1107
|
+
imgSrc: string;
|
|
1108
|
+
imgAlt?: string;
|
|
1109
|
+
children: ReactNode;
|
|
1110
|
+
style?: React.CSSProperties;
|
|
1111
|
+
className?: string;
|
|
1112
|
+
}
|
|
1113
|
+
declare const BadgeWithImage: React.FC<BadgeWithImageProps>;
|
|
1114
|
+
|
|
1115
|
+
type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
1116
|
+
interface AvatarProps {
|
|
1117
|
+
size?: AvatarSize;
|
|
1118
|
+
src?: string | null;
|
|
1119
|
+
alt?: string;
|
|
1120
|
+
/** Two-letter initials displayed when no image is provided */
|
|
1121
|
+
initials?: string;
|
|
1122
|
+
/** Custom icon component displayed as placeholder */
|
|
1123
|
+
placeholderIcon?: FC<{
|
|
1124
|
+
style?: React.CSSProperties;
|
|
1125
|
+
}>;
|
|
1126
|
+
/** Online/offline status indicator dot */
|
|
1127
|
+
status?: 'online' | 'offline';
|
|
1128
|
+
/** Company logo badge displayed bottom-right */
|
|
1129
|
+
companyIcon?: {
|
|
1130
|
+
src: string;
|
|
1131
|
+
alt?: string;
|
|
1132
|
+
};
|
|
1133
|
+
/** Blue verified checkmark badge */
|
|
1134
|
+
verified?: boolean;
|
|
1135
|
+
style?: React.CSSProperties;
|
|
1136
|
+
className?: string;
|
|
1137
|
+
}
|
|
1138
|
+
interface AvatarLabelGroupProps {
|
|
1139
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
1140
|
+
name: string;
|
|
1141
|
+
supportingText?: string;
|
|
1142
|
+
avatarSrc?: string | null;
|
|
1143
|
+
avatarInitials?: string;
|
|
1144
|
+
status?: 'online' | 'offline';
|
|
1145
|
+
companyIcon?: {
|
|
1146
|
+
src: string;
|
|
1147
|
+
alt?: string;
|
|
1148
|
+
};
|
|
1149
|
+
verified?: boolean;
|
|
1150
|
+
style?: React.CSSProperties;
|
|
1151
|
+
className?: string;
|
|
1152
|
+
}
|
|
1153
|
+
declare const Avatar: React.FC<AvatarProps>;
|
|
1154
|
+
declare const AvatarLabelGroup: React.FC<AvatarLabelGroupProps>;
|
|
1155
|
+
|
|
1000
1156
|
interface ThemeConfig {
|
|
1001
1157
|
primaryColor?: string;
|
|
1002
1158
|
}
|
|
@@ -1016,4 +1172,4 @@ declare const MinusIcon: React.FC<{
|
|
|
1016
1172
|
style?: React.CSSProperties;
|
|
1017
1173
|
}>;
|
|
1018
1174
|
|
|
1019
|
-
export { Alert, AlertProps, Button, ButtonProps, CheckIcon, Checkbox, CheckboxProps, ColumnType, DatePicker, DatePickerProps, DateRange, Drawer, DrawerPlacement, DrawerProps, FormWithItem as Form, FormInstance, FormItemProps, FormProps, Input, InputProps, Loading, LoadingProps, MenuGroupType, MenuItemType, MenuList, MenuListProps, MinusIcon, Pagination, PaginationProps, Popover, PopoverPlacement, PopoverProps, PopoverTrigger, Progress, ProgressProps, ProgressStatus, ProgressType, Radio, RadioProps, Select, SelectOption, SelectProps, SortOrder, SorterResult, Switch, SwitchProps, Tab, TabItem, TabLayout, TabProps, TabVariant, Table, TableCurrentDataSource, TableLayout, TableProps, TableRowSelection, TableSize, Tag, TagProps, Textarea, TextareaProps, ThemeConfig, ThemeProvider, ThemeProviderProps, Toast, ToastPosition, ToastProps, ToastProvider, ToastType, Tooltip, TooltipPosition, TooltipProps, UserProfileType, clearAllToasts, closeToast, debugToast, toast, toastError, toastInfo, toastQuestion, toastSuccess, useTheme };
|
|
1175
|
+
export { Alert, AlertProps, Avatar, AvatarLabelGroup, AvatarLabelGroupProps, AvatarProps, AvatarSize, Badge, BadgeColor, BadgeIcon, BadgeIconComponent, BadgeIconProps, BadgeProps, BadgeSize, BadgeVariant, BadgeWithButton, BadgeWithButtonProps, BadgeWithDot, BadgeWithDotProps, BadgeWithIcon, BadgeWithIconProps, BadgeWithImage, BadgeWithImageProps, Button, ButtonProps, CheckIcon, Checkbox, CheckboxProps, ColumnType, DatePicker, DatePickerProps, DateRange, Drawer, DrawerPlacement, DrawerProps, FormWithItem as Form, FormInstance, FormItemProps, FormProps, Input, InputGroup, InputGroupProps, InputProps, InputTags, InputTagsProps, Loading, LoadingProps, MenuGroupType, MenuItemType, MenuList, MenuListProps, MinusIcon, Pagination, PaginationProps, Popover, PopoverPlacement, PopoverProps, PopoverTrigger, Progress, ProgressProps, ProgressStatus, ProgressType, Radio, RadioProps, Select, SelectOption, SelectProps, SortOrder, SorterResult, Switch, SwitchProps, Tab, TabItem, TabLayout, TabProps, TabVariant, Table, TableCurrentDataSource, TableLayout, TableProps, TableRowSelection, TableSize, Tag, TagProps, Textarea, TextareaProps, TextareaTags, TextareaTagsProps, ThemeConfig, ThemeProvider, ThemeProviderProps, Toast, ToastPosition, ToastProps, ToastProvider, ToastType, Tooltip, TooltipPosition, TooltipProps, UserProfileType, clearAllToasts, closeToast, debugToast, toast, toastError, toastInfo, toastQuestion, toastSuccess, useTheme };
|