@beydesign/storybook 0.0.37 → 0.0.39
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/dist/index.d.ts +10 -32
- package/dist/index.js +10 -43
- package/dist/stories/Agent/AgentCard.d.ts +3 -0
- package/dist/stories/{AgentCard.js → Agent/AgentCard.js} +6 -16
- package/dist/stories/{AgentCard.stories.js → Agent/AgentCard.stories.js} +2 -2
- package/dist/stories/Agent/AgentCardSkeleton.d.ts +2 -0
- package/dist/stories/{SkeletonLoader.js → Agent/AgentCardSkeleton.js} +1 -17
- package/dist/stories/{AgentCardSkeleton.stories.d.ts → Agent/AgentCardSkeleton.stories.d.ts} +1 -1
- package/dist/stories/{AgentCardSkeleton.stories.js → Agent/AgentCardSkeleton.stories.js} +2 -2
- package/dist/stories/Agent/index.d.ts +3 -0
- package/dist/stories/Agent/index.js +3 -0
- package/dist/stories/{types/agent-card.d.ts → Agent/types.d.ts} +22 -5
- package/dist/stories/Buttons/MainButton.d.ts +3 -0
- package/dist/stories/{Button.js → Buttons/MainButton.js} +3 -7
- package/dist/stories/{Button.stories.d.ts → Buttons/MainButton.stories.d.ts} +1 -1
- package/dist/stories/{Button.stories.js → Buttons/MainButton.stories.js} +3 -6
- package/dist/stories/Buttons/ToggleButtonGroup.d.ts +3 -0
- package/dist/stories/{ToggleButtonGroup.js → Buttons/ToggleButtonGroup.js} +3 -7
- package/dist/stories/{ToggleButtonGroup.stories.js → Buttons/ToggleButtonGroup.stories.js} +2 -2
- package/dist/stories/Buttons/index.d.ts +3 -0
- package/dist/stories/Buttons/index.js +3 -0
- package/dist/stories/{types/button.d.ts → Buttons/types.d.ts} +21 -3
- package/dist/stories/{types/button.js → Buttons/types.js} +9 -0
- package/dist/stories/{CreditsCard.d.ts → Credits/CreditsCard.d.ts} +1 -1
- package/dist/stories/{CreditsCard.js → Credits/CreditsCard.js} +3 -5
- package/dist/stories/{CreditsCard.stories.js → Credits/CreditsCard.stories.js} +2 -2
- package/dist/stories/Credits/index.d.ts +2 -0
- package/dist/stories/Credits/index.js +2 -0
- package/dist/stories/{Checkbox.d.ts → Form/Checkbox.d.ts} +1 -1
- package/dist/stories/{Checkbox.js → Form/Checkbox.js} +2 -3
- package/dist/stories/{Checkbox.stories.js → Form/Checkbox.stories.js} +2 -2
- package/dist/stories/Form/TextArea.d.ts +3 -0
- package/dist/stories/Form/TextArea.js +22 -0
- package/dist/stories/Form/TextArea.stories.d.ts +103 -0
- package/dist/stories/Form/TextArea.stories.js +88 -0
- package/dist/stories/Form/TextInput.d.ts +3 -0
- package/dist/stories/Form/TextInput.js +22 -0
- package/dist/stories/Form/TextInput.stories.d.ts +85 -0
- package/dist/stories/Form/TextInput.stories.js +74 -0
- package/dist/stories/Form/Toggle.d.ts +3 -0
- package/dist/stories/{Toggle.js → Form/Toggle.js} +2 -6
- package/dist/stories/{Toggle.stories.js → Form/Toggle.stories.js} +2 -2
- package/dist/stories/Form/index.d.ts +5 -0
- package/dist/stories/Form/index.js +5 -0
- package/dist/stories/Form/types.d.ts +94 -0
- package/dist/stories/{types/toggle.js → Form/types.js} +5 -0
- package/dist/stories/{Colors.js → Foundations/Colors.js} +1 -2
- package/dist/stories/Foundations/index.d.ts +1 -0
- package/dist/stories/Foundations/index.js +1 -0
- package/dist/stories/{Header.d.ts → Navigation/Header.d.ts} +1 -1
- package/dist/stories/{Header.js → Navigation/Header.js} +4 -6
- package/dist/stories/{Header.stories.js → Navigation/Header.stories.js} +2 -2
- package/dist/stories/{NavItem.d.ts → Navigation/NavItem.d.ts} +1 -1
- package/dist/stories/{NavItem.js → Navigation/NavItem.js} +4 -6
- package/dist/stories/{NavItem.stories.js → Navigation/NavItem.stories.js} +2 -2
- package/dist/stories/{Sidebar.d.ts → Navigation/Sidebar.d.ts} +1 -1
- package/dist/stories/{Sidebar.js → Navigation/Sidebar.js} +5 -11
- package/dist/stories/{Sidebar.stories.js → Navigation/Sidebar.stories.js} +2 -3
- package/dist/stories/Navigation/index.d.ts +4 -0
- package/dist/stories/Navigation/index.js +4 -0
- package/dist/stories/{types/sidebar.d.ts → Navigation/types.d.ts} +61 -1
- package/dist/stories/{types/nav-item.js → Navigation/types.js} +5 -0
- package/dist/stories/Typography/Typography.d.ts +3 -0
- package/dist/stories/{Typography.js → Typography/Typography.js} +2 -5
- package/dist/stories/{Typography.stories.js → Typography/Typography.stories.js} +2 -2
- package/dist/stories/Typography/index.d.ts +2 -0
- package/dist/stories/Typography/index.js +2 -0
- package/dist/stories/{types/typography.d.ts → Typography/types.d.ts} +0 -5
- package/dist/stories/UI/Avatar.d.ts +3 -0
- package/dist/stories/{Avatar.js → UI/Avatar.js} +4 -7
- package/dist/stories/{Avatar.stories.js → UI/Avatar.stories.js} +2 -2
- package/dist/stories/{Bagde.d.ts → UI/Badge.d.ts} +1 -1
- package/dist/stories/{Bagde.js → UI/Badge.js} +3 -4
- package/dist/stories/{Badge.stories.d.ts → UI/Badge.stories.d.ts} +1 -1
- package/dist/stories/{Badge.stories.js → UI/Badge.stories.js} +3 -3
- package/dist/stories/UI/HintBubble.d.ts +3 -0
- package/dist/stories/UI/HintBubble.js +28 -0
- package/dist/stories/UI/HintBubble.stories.d.ts +9 -0
- package/dist/stories/UI/HintBubble.stories.js +68 -0
- package/dist/stories/{Logo.d.ts → UI/Logo.d.ts} +1 -1
- package/dist/stories/{Logo.js → UI/Logo.js} +1 -1
- package/dist/stories/UI/Logo.stories.d.ts +11 -0
- package/dist/stories/{Logo.stories.js → UI/Logo.stories.js} +2 -2
- package/dist/stories/UI/Menu.d.ts +3 -0
- package/dist/stories/{Menu.js → UI/Menu.js} +3 -11
- package/dist/stories/UI/Menu.stories.d.ts +6 -0
- package/dist/stories/{Menu.stories.js → UI/Menu.stories.js} +1 -1
- package/dist/stories/UI/ProgressIndicator.d.ts +3 -0
- package/dist/stories/{ProgressIndicator.js → UI/ProgressIndicator.js} +2 -6
- package/dist/stories/{ProgressIndicator.stories.js → UI/ProgressIndicator.stories.js} +2 -2
- package/dist/stories/UI/SkeletonLoader.d.ts +3 -0
- package/dist/stories/UI/SkeletonLoader.js +19 -0
- package/dist/stories/UI/SkeletonLoader.stories.d.ts +8 -0
- package/dist/stories/UI/SkeletonLoader.stories.js +74 -0
- package/dist/stories/UI/index.d.ts +8 -0
- package/dist/stories/UI/index.js +8 -0
- package/dist/stories/UI/types.d.ts +205 -0
- package/dist/stories/UI/types.js +71 -0
- package/dist/utils/common.d.ts +1 -0
- package/dist/utils/common.js +6 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +2 -0
- package/package.json +1 -1
- package/dist/stories/AgentCard.d.ts +0 -4
- package/dist/stories/Avatar.d.ts +0 -4
- package/dist/stories/Button.d.ts +0 -4
- package/dist/stories/Logo.stories.d.ts +0 -39
- package/dist/stories/Menu.d.ts +0 -4
- package/dist/stories/Menu.stories.d.ts +0 -43
- package/dist/stories/ProgressIndicator.d.ts +0 -4
- package/dist/stories/SkeletonLoader.d.ts +0 -47
- package/dist/stories/SkeletonLoader.stories.d.ts +0 -11
- package/dist/stories/SkeletonLoader.stories.js +0 -141
- package/dist/stories/Toggle.d.ts +0 -4
- package/dist/stories/ToggleButtonGroup.d.ts +0 -4
- package/dist/stories/Typography.d.ts +0 -4
- package/dist/stories/types/avatar.d.ts +0 -44
- package/dist/stories/types/avatar.js +0 -28
- package/dist/stories/types/badge.d.ts +0 -49
- package/dist/stories/types/badge.js +0 -25
- package/dist/stories/types/checkbox.d.ts +0 -26
- package/dist/stories/types/checkbox.js +0 -5
- package/dist/stories/types/header.d.ts +0 -25
- package/dist/stories/types/header.js +0 -1
- package/dist/stories/types/logo.d.ts +0 -30
- package/dist/stories/types/logo.js +0 -6
- package/dist/stories/types/menu.d.ts +0 -30
- package/dist/stories/types/menu.js +0 -1
- package/dist/stories/types/nav-item.d.ts +0 -41
- package/dist/stories/types/progress-indicator.d.ts +0 -35
- package/dist/stories/types/progress-indicator.js +0 -8
- package/dist/stories/types/sidebar.js +0 -5
- package/dist/stories/types/toggle-button-group.d.ts +0 -28
- package/dist/stories/types/toggle-button-group.js +0 -9
- package/dist/stories/types/toggle.d.ts +0 -32
- /package/dist/stories/{AgentCard.stories.d.ts → Agent/AgentCard.stories.d.ts} +0 -0
- /package/dist/stories/{types/agent-card.js → Agent/types.js} +0 -0
- /package/dist/stories/{ToggleButtonGroup.stories.d.ts → Buttons/ToggleButtonGroup.stories.d.ts} +0 -0
- /package/dist/stories/{CreditsCard.stories.d.ts → Credits/CreditsCard.stories.d.ts} +0 -0
- /package/dist/stories/{types/credits-card.d.ts → Credits/types.d.ts} +0 -0
- /package/dist/stories/{types/credits-card.js → Credits/types.js} +0 -0
- /package/dist/stories/{Checkbox.stories.d.ts → Form/Checkbox.stories.d.ts} +0 -0
- /package/dist/stories/{Toggle.stories.d.ts → Form/Toggle.stories.d.ts} +0 -0
- /package/dist/stories/{Colors.d.ts → Foundations/Colors.d.ts} +0 -0
- /package/dist/stories/{Colors.stories.d.ts → Foundations/Colors.stories.d.ts} +0 -0
- /package/dist/stories/{Colors.stories.js → Foundations/Colors.stories.js} +0 -0
- /package/dist/stories/{Header.stories.d.ts → Navigation/Header.stories.d.ts} +0 -0
- /package/dist/stories/{NavItem.stories.d.ts → Navigation/NavItem.stories.d.ts} +0 -0
- /package/dist/stories/{Sidebar.stories.d.ts → Navigation/Sidebar.stories.d.ts} +0 -0
- /package/dist/stories/{Typography.stories.d.ts → Typography/Typography.stories.d.ts} +0 -0
- /package/dist/stories/{types/typography.js → Typography/types.js} +0 -0
- /package/dist/stories/{Avatar.stories.d.ts → UI/Avatar.stories.d.ts} +0 -0
- /package/dist/stories/{ProgressIndicator.stories.d.ts → UI/ProgressIndicator.stories.d.ts} +0 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { Theme } from '@mui/material';
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
3
|
+
import { IconName } from '../../utils';
|
|
4
|
+
/**
|
|
5
|
+
* Badge size variants
|
|
6
|
+
*/
|
|
7
|
+
export declare enum BadgeSize {
|
|
8
|
+
lg = "lg",
|
|
9
|
+
md = "md",
|
|
10
|
+
xs = "xs"
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Badge color variants
|
|
14
|
+
*/
|
|
15
|
+
export declare enum BadgeColor {
|
|
16
|
+
Default = "Default",
|
|
17
|
+
Violet = "Violet",
|
|
18
|
+
Lemon = "Lemon",
|
|
19
|
+
Green = "Green",
|
|
20
|
+
Red = "Red",
|
|
21
|
+
Yellow = "Yellow",
|
|
22
|
+
Blue = "Blue",
|
|
23
|
+
Cyan = "Cyan",
|
|
24
|
+
Pink = "Pink",
|
|
25
|
+
DarkTransparent = "DarkTransparent"
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Badge component props
|
|
29
|
+
*/
|
|
30
|
+
export type BadgeProps = {
|
|
31
|
+
/** Size variant of the badge */
|
|
32
|
+
size?: BadgeSize;
|
|
33
|
+
/** Color variant of the badge */
|
|
34
|
+
color?: BadgeColor;
|
|
35
|
+
/** Text content of the badge */
|
|
36
|
+
text: string;
|
|
37
|
+
/** Custom style of the badge */
|
|
38
|
+
style?: SxProps<Theme>;
|
|
39
|
+
/** Whether to show the Icon */
|
|
40
|
+
showIcon?: boolean;
|
|
41
|
+
/** Icon to display in the badge */
|
|
42
|
+
icon?: IconName;
|
|
43
|
+
/** Whether to fill the icon */
|
|
44
|
+
fill?: boolean;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Avatar size variants
|
|
48
|
+
*/
|
|
49
|
+
export declare enum AvatarSize {
|
|
50
|
+
xxl = "xxl",
|
|
51
|
+
xl = "xl",
|
|
52
|
+
lg = "lg",
|
|
53
|
+
md = "md",
|
|
54
|
+
sm = "sm",
|
|
55
|
+
xs = "xs"
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Avatar style variants
|
|
59
|
+
*/
|
|
60
|
+
export declare enum AvatarStyle {
|
|
61
|
+
Placeholder = "Placeholder",
|
|
62
|
+
Picture = "Picture",
|
|
63
|
+
Letters = "Letters"
|
|
64
|
+
}
|
|
65
|
+
export declare const AvatarImage = "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTTAUPUG0r--EDZzf-f9Afj_Jp7N96yIGsWPgCYIkrAS1rCJHIcdm_RCq_me44bJc0dvvY&usqp=CAU";
|
|
66
|
+
/**
|
|
67
|
+
* Avatar component props
|
|
68
|
+
*/
|
|
69
|
+
export type AvatarProps = {
|
|
70
|
+
/** Style variant of the avatar */
|
|
71
|
+
avatarStyle: AvatarStyle;
|
|
72
|
+
/** Text content of the avatar if avatarStyle is Letters */
|
|
73
|
+
text?: string;
|
|
74
|
+
/** Image source of the avatar if avatarStyle is Picture */
|
|
75
|
+
image?: string;
|
|
76
|
+
/** Custom style of the avatar */
|
|
77
|
+
style?: SxProps<Theme>;
|
|
78
|
+
/** Size variant of the avatar */
|
|
79
|
+
size?: AvatarSize;
|
|
80
|
+
/** Visual hierarchy of the avatar */
|
|
81
|
+
border?: boolean;
|
|
82
|
+
};
|
|
83
|
+
export declare enum HintBubbleType {
|
|
84
|
+
Info = "Info",
|
|
85
|
+
Error = "Error"
|
|
86
|
+
}
|
|
87
|
+
export declare enum HintBubbleSize {
|
|
88
|
+
md = "md",
|
|
89
|
+
sm = "sm"
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* HintBubble component props
|
|
93
|
+
*/
|
|
94
|
+
export type HintBubbleProps = {
|
|
95
|
+
/** Type variant of the hint bubble */
|
|
96
|
+
type?: HintBubbleType;
|
|
97
|
+
/** Size variant of the hint bubble */
|
|
98
|
+
size?: HintBubbleSize;
|
|
99
|
+
/** Text of the hint bubble */
|
|
100
|
+
text: string;
|
|
101
|
+
};
|
|
102
|
+
export declare enum LogoVariant {
|
|
103
|
+
Horizontal = "horizontal",
|
|
104
|
+
Vertical = "vertical",
|
|
105
|
+
Icon = "icon"
|
|
106
|
+
}
|
|
107
|
+
export interface LogoProps {
|
|
108
|
+
/**
|
|
109
|
+
* The variant of the logo to display
|
|
110
|
+
*/
|
|
111
|
+
variant?: LogoVariant;
|
|
112
|
+
/**
|
|
113
|
+
* The color to apply to the logo
|
|
114
|
+
* If gradient is provided, this will be ignored
|
|
115
|
+
*/
|
|
116
|
+
color?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Optional gradient value to apply to the logo
|
|
119
|
+
* Example: "linear-gradient(180deg, #3300ff 0%, #d170ff 100%)"
|
|
120
|
+
*/
|
|
121
|
+
gradient?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Optional className for additional styling
|
|
124
|
+
*/
|
|
125
|
+
className?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Optional URL to override the default SVG
|
|
128
|
+
* If provided, this will be used instead of the built-in SVG
|
|
129
|
+
*/
|
|
130
|
+
svgUrl?: string;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Menu item
|
|
134
|
+
*/
|
|
135
|
+
export interface MenuItemProps {
|
|
136
|
+
/** Label */
|
|
137
|
+
label: string;
|
|
138
|
+
/** Icon */
|
|
139
|
+
icon: IconName;
|
|
140
|
+
/** On click */
|
|
141
|
+
onClick: () => void;
|
|
142
|
+
/** Destructive */
|
|
143
|
+
destructive?: boolean;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Menu component props
|
|
147
|
+
*/
|
|
148
|
+
export type MenuProps = {
|
|
149
|
+
/** Icon */
|
|
150
|
+
icon?: IconName;
|
|
151
|
+
/** Items */
|
|
152
|
+
items?: MenuItemProps[];
|
|
153
|
+
/** Style */
|
|
154
|
+
style?: React.CSSProperties;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Progress indicator mode variants
|
|
158
|
+
*/
|
|
159
|
+
export declare enum ProgressIndicatorMode {
|
|
160
|
+
Value = "Value",
|
|
161
|
+
Percentage = "Percentage"
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Progress indicator component props
|
|
165
|
+
*/
|
|
166
|
+
export type ProgressIndicatorProps = {
|
|
167
|
+
/** Mode variant of the progress indicator */
|
|
168
|
+
mode?: ProgressIndicatorMode;
|
|
169
|
+
/** Value of the progress indicator */
|
|
170
|
+
currentValue: number;
|
|
171
|
+
/** Maximum value of the progress indicator */
|
|
172
|
+
maxValue: number;
|
|
173
|
+
/** Fill color of the progress indicator */
|
|
174
|
+
fillColor?: string;
|
|
175
|
+
/** Background color of the progress indicator */
|
|
176
|
+
backgroundColor?: string;
|
|
177
|
+
/** Text of the progress indicator */
|
|
178
|
+
text?: string;
|
|
179
|
+
/** Text color of the progress indicator */
|
|
180
|
+
textColor?: string;
|
|
181
|
+
/** Style of the progress indicator */
|
|
182
|
+
style?: SxProps<Theme>;
|
|
183
|
+
};
|
|
184
|
+
export interface SkeletonLoaderProps {
|
|
185
|
+
/**
|
|
186
|
+
* Width of the skeleton
|
|
187
|
+
*/
|
|
188
|
+
width?: string | number;
|
|
189
|
+
/**
|
|
190
|
+
* Height of the skeleton
|
|
191
|
+
*/
|
|
192
|
+
height?: string | number;
|
|
193
|
+
/**
|
|
194
|
+
* Border radius of the skeleton
|
|
195
|
+
*/
|
|
196
|
+
borderRadius?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Animation duration in seconds
|
|
199
|
+
*/
|
|
200
|
+
animationDuration?: number;
|
|
201
|
+
/**
|
|
202
|
+
* Custom style for the skeleton
|
|
203
|
+
*/
|
|
204
|
+
style?: React.CSSProperties;
|
|
205
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Badge size variants
|
|
3
|
+
*/
|
|
4
|
+
export var BadgeSize;
|
|
5
|
+
(function (BadgeSize) {
|
|
6
|
+
BadgeSize["lg"] = "lg";
|
|
7
|
+
BadgeSize["md"] = "md";
|
|
8
|
+
BadgeSize["xs"] = "xs";
|
|
9
|
+
})(BadgeSize || (BadgeSize = {}));
|
|
10
|
+
/**
|
|
11
|
+
* Badge color variants
|
|
12
|
+
*/
|
|
13
|
+
export var BadgeColor;
|
|
14
|
+
(function (BadgeColor) {
|
|
15
|
+
BadgeColor["Default"] = "Default";
|
|
16
|
+
BadgeColor["Violet"] = "Violet";
|
|
17
|
+
BadgeColor["Lemon"] = "Lemon";
|
|
18
|
+
BadgeColor["Green"] = "Green";
|
|
19
|
+
BadgeColor["Red"] = "Red";
|
|
20
|
+
BadgeColor["Yellow"] = "Yellow";
|
|
21
|
+
BadgeColor["Blue"] = "Blue";
|
|
22
|
+
BadgeColor["Cyan"] = "Cyan";
|
|
23
|
+
BadgeColor["Pink"] = "Pink";
|
|
24
|
+
BadgeColor["DarkTransparent"] = "DarkTransparent";
|
|
25
|
+
})(BadgeColor || (BadgeColor = {}));
|
|
26
|
+
/**
|
|
27
|
+
* Avatar size variants
|
|
28
|
+
*/
|
|
29
|
+
export var AvatarSize;
|
|
30
|
+
(function (AvatarSize) {
|
|
31
|
+
AvatarSize["xxl"] = "xxl";
|
|
32
|
+
AvatarSize["xl"] = "xl";
|
|
33
|
+
AvatarSize["lg"] = "lg";
|
|
34
|
+
AvatarSize["md"] = "md";
|
|
35
|
+
AvatarSize["sm"] = "sm";
|
|
36
|
+
AvatarSize["xs"] = "xs";
|
|
37
|
+
})(AvatarSize || (AvatarSize = {}));
|
|
38
|
+
/**
|
|
39
|
+
* Avatar style variants
|
|
40
|
+
*/
|
|
41
|
+
export var AvatarStyle;
|
|
42
|
+
(function (AvatarStyle) {
|
|
43
|
+
AvatarStyle["Placeholder"] = "Placeholder";
|
|
44
|
+
AvatarStyle["Picture"] = "Picture";
|
|
45
|
+
AvatarStyle["Letters"] = "Letters";
|
|
46
|
+
})(AvatarStyle || (AvatarStyle = {}));
|
|
47
|
+
export const AvatarImage = `https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTTAUPUG0r--EDZzf-f9Afj_Jp7N96yIGsWPgCYIkrAS1rCJHIcdm_RCq_me44bJc0dvvY&usqp=CAU`;
|
|
48
|
+
export var HintBubbleType;
|
|
49
|
+
(function (HintBubbleType) {
|
|
50
|
+
HintBubbleType["Info"] = "Info";
|
|
51
|
+
HintBubbleType["Error"] = "Error";
|
|
52
|
+
})(HintBubbleType || (HintBubbleType = {}));
|
|
53
|
+
export var HintBubbleSize;
|
|
54
|
+
(function (HintBubbleSize) {
|
|
55
|
+
HintBubbleSize["md"] = "md";
|
|
56
|
+
HintBubbleSize["sm"] = "sm";
|
|
57
|
+
})(HintBubbleSize || (HintBubbleSize = {}));
|
|
58
|
+
export var LogoVariant;
|
|
59
|
+
(function (LogoVariant) {
|
|
60
|
+
LogoVariant["Horizontal"] = "horizontal";
|
|
61
|
+
LogoVariant["Vertical"] = "vertical";
|
|
62
|
+
LogoVariant["Icon"] = "icon";
|
|
63
|
+
})(LogoVariant || (LogoVariant = {}));
|
|
64
|
+
/**
|
|
65
|
+
* Progress indicator mode variants
|
|
66
|
+
*/
|
|
67
|
+
export var ProgressIndicatorMode;
|
|
68
|
+
(function (ProgressIndicatorMode) {
|
|
69
|
+
ProgressIndicatorMode["Value"] = "Value";
|
|
70
|
+
ProgressIndicatorMode["Percentage"] = "Percentage";
|
|
71
|
+
})(ProgressIndicatorMode || (ProgressIndicatorMode = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getInitials: (text: string) => string;
|
package/package.json
CHANGED
package/dist/stories/Avatar.d.ts
DELETED
package/dist/stories/Button.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
import { LogoVariant } from './types/logo';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: import("react").FC<import("./types/logo").LogoProps>;
|
|
6
|
-
parameters: {
|
|
7
|
-
layout: string;
|
|
8
|
-
design: {
|
|
9
|
-
type: string;
|
|
10
|
-
url: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
tags: string[];
|
|
14
|
-
argTypes: {
|
|
15
|
-
variant: {
|
|
16
|
-
control: "select";
|
|
17
|
-
options: LogoVariant[];
|
|
18
|
-
};
|
|
19
|
-
color: {
|
|
20
|
-
control: "color";
|
|
21
|
-
};
|
|
22
|
-
gradient: {
|
|
23
|
-
control: "text";
|
|
24
|
-
description: string;
|
|
25
|
-
};
|
|
26
|
-
svgUrl: {
|
|
27
|
-
control: "text";
|
|
28
|
-
description: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export default meta;
|
|
33
|
-
type Story = StoryObj<typeof meta>;
|
|
34
|
-
export declare const Horizontal: Story;
|
|
35
|
-
export declare const Vertical: Story;
|
|
36
|
-
export declare const Icon: Story;
|
|
37
|
-
export declare const CustomColor: Story;
|
|
38
|
-
export declare const WithGradient: Story;
|
|
39
|
-
export declare const ExternalSvg: Story;
|
package/dist/stories/Menu.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: import("react").FC<import("..").MenuProps>;
|
|
5
|
-
parameters: {
|
|
6
|
-
layout: string;
|
|
7
|
-
};
|
|
8
|
-
tags: string[];
|
|
9
|
-
argTypes: {
|
|
10
|
-
icon: {
|
|
11
|
-
control: "select";
|
|
12
|
-
options: string[];
|
|
13
|
-
defaultValue: string;
|
|
14
|
-
description: string;
|
|
15
|
-
table: {
|
|
16
|
-
type: {
|
|
17
|
-
summary: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
items: {
|
|
22
|
-
control: "object";
|
|
23
|
-
description: string;
|
|
24
|
-
table: {
|
|
25
|
-
type: {
|
|
26
|
-
summary: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
style: {
|
|
31
|
-
control: "object";
|
|
32
|
-
description: string;
|
|
33
|
-
table: {
|
|
34
|
-
type: {
|
|
35
|
-
summary: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
export default meta;
|
|
42
|
-
type Story = StoryObj<typeof meta>;
|
|
43
|
-
export declare const Default: Story;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface SkeletonLoaderProps {
|
|
3
|
-
/**
|
|
4
|
-
* Width of the skeleton
|
|
5
|
-
*/
|
|
6
|
-
width?: string | number;
|
|
7
|
-
/**
|
|
8
|
-
* Height of the skeleton
|
|
9
|
-
*/
|
|
10
|
-
height?: string | number;
|
|
11
|
-
/**
|
|
12
|
-
* Border radius of the skeleton
|
|
13
|
-
*/
|
|
14
|
-
borderRadius?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Animation duration in seconds
|
|
17
|
-
*/
|
|
18
|
-
animationDuration?: number;
|
|
19
|
-
/**
|
|
20
|
-
* Custom style for the skeleton
|
|
21
|
-
*/
|
|
22
|
-
style?: React.CSSProperties;
|
|
23
|
-
}
|
|
24
|
-
export declare const SkeletonLoader: React.FC<SkeletonLoaderProps>;
|
|
25
|
-
export interface AgentCardSkeletonProps {
|
|
26
|
-
/**
|
|
27
|
-
* Width of the card
|
|
28
|
-
*/
|
|
29
|
-
width?: string | number;
|
|
30
|
-
/**
|
|
31
|
-
* Show date placeholder
|
|
32
|
-
*/
|
|
33
|
-
showDate?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Show badges placeholder
|
|
36
|
-
*/
|
|
37
|
-
showBadges?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Show description placeholder
|
|
40
|
-
*/
|
|
41
|
-
showDescription?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Custom style for the skeleton
|
|
44
|
-
*/
|
|
45
|
-
style?: React.CSSProperties;
|
|
46
|
-
}
|
|
47
|
-
export declare const AgentCardSkeleton: React.FC<AgentCardSkeletonProps>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { SkeletonLoader, AgentCardSkeleton } from './SkeletonLoader';
|
|
3
|
-
declare const meta: Meta<typeof SkeletonLoader>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof SkeletonLoader>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const CustomAnimation: Story;
|
|
8
|
-
export declare const RoundedSkeleton: Story;
|
|
9
|
-
export declare const agentCardSkeletonMeta: Meta<typeof AgentCardSkeleton>;
|
|
10
|
-
export declare const AgentCardSkeletonStory: StoryObj<typeof AgentCardSkeleton>;
|
|
11
|
-
export declare const AgentCardSkeletonGrid: StoryObj<typeof AgentCardSkeleton>;
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { SkeletonLoader, AgentCardSkeleton } from './SkeletonLoader';
|
|
3
|
-
import { Box } from '@mui/material';
|
|
4
|
-
const meta = {
|
|
5
|
-
title: 'Design System/Components/SkeletonLoader',
|
|
6
|
-
component: SkeletonLoader,
|
|
7
|
-
parameters: {
|
|
8
|
-
layout: 'centered',
|
|
9
|
-
},
|
|
10
|
-
tags: ['autodocs'],
|
|
11
|
-
argTypes: {
|
|
12
|
-
width: {
|
|
13
|
-
control: 'text',
|
|
14
|
-
description: 'Width of the skeleton',
|
|
15
|
-
table: {
|
|
16
|
-
type: { summary: 'string | number' },
|
|
17
|
-
defaultValue: { summary: '100%' },
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
height: {
|
|
21
|
-
control: 'text',
|
|
22
|
-
description: 'Height of the skeleton',
|
|
23
|
-
table: {
|
|
24
|
-
type: { summary: 'string | number' },
|
|
25
|
-
defaultValue: { summary: '100%' },
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
borderRadius: {
|
|
29
|
-
control: 'text',
|
|
30
|
-
description: 'Border radius of the skeleton',
|
|
31
|
-
table: {
|
|
32
|
-
type: { summary: 'string' },
|
|
33
|
-
defaultValue: {
|
|
34
|
-
summary: 'var(--spacing-tokens-size-in-px-spacing-spacing-sm)',
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
animationDuration: {
|
|
39
|
-
control: 'number',
|
|
40
|
-
description: 'Animation duration in seconds',
|
|
41
|
-
table: {
|
|
42
|
-
type: { summary: 'number' },
|
|
43
|
-
defaultValue: { summary: '1.5' },
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
style: {
|
|
47
|
-
control: 'object',
|
|
48
|
-
description: 'Custom style for the skeleton',
|
|
49
|
-
table: {
|
|
50
|
-
type: { summary: 'React.CSSProperties' },
|
|
51
|
-
defaultValue: { summary: 'undefined' },
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
export default meta;
|
|
57
|
-
export const Default = {
|
|
58
|
-
args: {
|
|
59
|
-
width: 200,
|
|
60
|
-
height: 100,
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
export const CustomAnimation = {
|
|
64
|
-
args: {
|
|
65
|
-
width: 200,
|
|
66
|
-
height: 100,
|
|
67
|
-
animationDuration: 3,
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
export const RoundedSkeleton = {
|
|
71
|
-
args: {
|
|
72
|
-
width: 100,
|
|
73
|
-
height: 100,
|
|
74
|
-
borderRadius: '50%',
|
|
75
|
-
},
|
|
76
|
-
};
|
|
77
|
-
// AgentCardSkeleton meta and stories
|
|
78
|
-
export const agentCardSkeletonMeta = {
|
|
79
|
-
title: 'Design System/Components/AgentCardSkeleton',
|
|
80
|
-
component: AgentCardSkeleton,
|
|
81
|
-
parameters: {
|
|
82
|
-
layout: 'centered',
|
|
83
|
-
},
|
|
84
|
-
tags: ['autodocs'],
|
|
85
|
-
argTypes: {
|
|
86
|
-
width: {
|
|
87
|
-
control: 'text',
|
|
88
|
-
description: 'Width of the card',
|
|
89
|
-
table: {
|
|
90
|
-
type: { summary: 'string | number' },
|
|
91
|
-
defaultValue: { summary: '300px' },
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
showDate: {
|
|
95
|
-
control: 'boolean',
|
|
96
|
-
description: 'Show date placeholder',
|
|
97
|
-
table: {
|
|
98
|
-
type: { summary: 'boolean' },
|
|
99
|
-
defaultValue: { summary: 'false' },
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
showBadges: {
|
|
103
|
-
control: 'boolean',
|
|
104
|
-
description: 'Show badges placeholder',
|
|
105
|
-
table: {
|
|
106
|
-
type: { summary: 'boolean' },
|
|
107
|
-
defaultValue: { summary: 'false' },
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
showDescription: {
|
|
111
|
-
control: 'boolean',
|
|
112
|
-
description: 'Show description placeholder',
|
|
113
|
-
table: {
|
|
114
|
-
type: { summary: 'boolean' },
|
|
115
|
-
defaultValue: { summary: 'false' },
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
style: {
|
|
119
|
-
control: 'object',
|
|
120
|
-
description: 'Custom style for the skeleton',
|
|
121
|
-
table: {
|
|
122
|
-
type: { summary: 'React.CSSProperties' },
|
|
123
|
-
defaultValue: { summary: 'undefined' },
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
};
|
|
128
|
-
// AgentCardSkeleton stories
|
|
129
|
-
export const AgentCardSkeletonStory = {
|
|
130
|
-
name: 'Agent Card Skeleton',
|
|
131
|
-
render: (args) => _jsx(AgentCardSkeleton, { ...args }),
|
|
132
|
-
args: {
|
|
133
|
-
showDate: true,
|
|
134
|
-
showBadges: true,
|
|
135
|
-
showDescription: true,
|
|
136
|
-
},
|
|
137
|
-
};
|
|
138
|
-
export const AgentCardSkeletonGrid = {
|
|
139
|
-
name: 'Agent Card Skeleton Grid',
|
|
140
|
-
render: () => (_jsxs(Box, { display: "flex", flexWrap: "wrap", gap: 2, children: [_jsx(AgentCardSkeleton, { showDate: true }), _jsx(AgentCardSkeleton, { showBadges: true }), _jsx(AgentCardSkeleton, { showDescription: true }), _jsx(AgentCardSkeleton, { showDate: true, showBadges: true, showDescription: true })] })),
|
|
141
|
-
};
|
package/dist/stories/Toggle.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { SxProps, Theme } from '@mui/material';
|
|
2
|
-
/**
|
|
3
|
-
* Avatar size variants
|
|
4
|
-
*/
|
|
5
|
-
export declare enum AvatarSize {
|
|
6
|
-
xxl = "xxl",
|
|
7
|
-
xl = "xl",
|
|
8
|
-
lg = "lg",
|
|
9
|
-
md = "md",
|
|
10
|
-
sm = "sm",
|
|
11
|
-
xs = "xs"
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Avatar style variants
|
|
15
|
-
*/
|
|
16
|
-
export declare enum AvatarStyle {
|
|
17
|
-
Placeholder = "Placeholder",
|
|
18
|
-
Picture = "Picture",
|
|
19
|
-
Letters = "Letters"
|
|
20
|
-
}
|
|
21
|
-
export declare const AvatarImage = "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTTAUPUG0r--EDZzf-f9Afj_Jp7N96yIGsWPgCYIkrAS1rCJHIcdm_RCq_me44bJc0dvvY&usqp=CAU";
|
|
22
|
-
export declare const getInitials: (text: string) => string;
|
|
23
|
-
/**
|
|
24
|
-
* Avatar component props
|
|
25
|
-
*/
|
|
26
|
-
export type AvatarProps = {
|
|
27
|
-
/** Style variant of the avatar */
|
|
28
|
-
avatarStyle: AvatarStyle;
|
|
29
|
-
/** Text content of the avatar if avatarStyle is Letters */
|
|
30
|
-
text?: string;
|
|
31
|
-
/** Image source of the avatar if avatarStyle is Picture */
|
|
32
|
-
image?: string;
|
|
33
|
-
/** Custom style of the avatar */
|
|
34
|
-
style?: SxProps<Theme>;
|
|
35
|
-
/** Size variant of the avatar */
|
|
36
|
-
size?: AvatarSize;
|
|
37
|
-
/** Visual hierarchy of the avatar */
|
|
38
|
-
border?: boolean;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Props for the Components wrapper
|
|
42
|
-
*/
|
|
43
|
-
export interface ComponentsProps {
|
|
44
|
-
}
|