@flipova/foundation 1.13.0 → 1.14.0
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/CHANGELOG.md +6 -0
- package/dist/createTheme-DQeX3s0I.d.mts +78 -0
- package/dist/createTheme-Y4jfz4-u.d.ts +78 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +57 -57
- package/dist/index.mjs +1 -1
- package/dist/theme/index.d.mts +4 -78
- package/dist/theme/index.d.ts +4 -78
- package/dist/web/index.d.mts +316 -0
- package/dist/web/index.d.ts +316 -0
- package/dist/web/index.js +1500 -0
- package/dist/web/index.js.map +1 -0
- package/dist/web/index.mjs +1396 -0
- package/dist/web/index.mjs.map +1 -0
- package/package.json +19 -12
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SpacingToken, RadiusToken } from '../tokens/index.mjs';
|
|
3
|
+
export { Breakpoint, ColorToken, DurationToken, EasingToken, FontSizeToken, FontWeightToken, LetterSpacingToken, LineHeightToken, OpacityToken, ShadowToken, ZIndexToken, breakpoints, colors, motion, opacity, radii, shadows, spacing, typography, zIndex } from '../tokens/index.mjs';
|
|
4
|
+
export { T as ThemeProvider, c as createTheme, u as useTheme } from '../createTheme-DQeX3s0I.mjs';
|
|
5
|
+
export { C as ColorScheme, a as CustomThemeMode, T as ThemeGradients, b as ThemeMode, d as ThemeRegistry } from '../index-CuaJA3gM.mjs';
|
|
6
|
+
|
|
7
|
+
interface WebBoxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
padding?: SpacingToken | number | string;
|
|
9
|
+
p?: SpacingToken | number | string;
|
|
10
|
+
paddingTop?: SpacingToken | number | string;
|
|
11
|
+
pt?: SpacingToken | number | string;
|
|
12
|
+
paddingBottom?: SpacingToken | number | string;
|
|
13
|
+
pb?: SpacingToken | number | string;
|
|
14
|
+
paddingLeft?: SpacingToken | number | string;
|
|
15
|
+
pl?: SpacingToken | number | string;
|
|
16
|
+
paddingRight?: SpacingToken | number | string;
|
|
17
|
+
pr?: SpacingToken | number | string;
|
|
18
|
+
paddingHorizontal?: SpacingToken | number | string;
|
|
19
|
+
px?: SpacingToken | number | string;
|
|
20
|
+
paddingVertical?: SpacingToken | number | string;
|
|
21
|
+
py?: SpacingToken | number | string;
|
|
22
|
+
margin?: SpacingToken | number | string;
|
|
23
|
+
m?: SpacingToken | number | string;
|
|
24
|
+
marginTop?: SpacingToken | number | string;
|
|
25
|
+
mt?: SpacingToken | number | string;
|
|
26
|
+
marginBottom?: SpacingToken | number | string;
|
|
27
|
+
mb?: SpacingToken | number | string;
|
|
28
|
+
borderRadius?: RadiusToken | number | string;
|
|
29
|
+
bg?: string;
|
|
30
|
+
backgroundColor?: string;
|
|
31
|
+
borderWidth?: number | string;
|
|
32
|
+
borderColor?: string;
|
|
33
|
+
flex?: number | string;
|
|
34
|
+
width?: number | string;
|
|
35
|
+
height?: number | string;
|
|
36
|
+
maxWidth?: number | string;
|
|
37
|
+
maxHeight?: number | string;
|
|
38
|
+
display?: string;
|
|
39
|
+
position?: 'relative' | 'absolute' | 'fixed' | 'sticky';
|
|
40
|
+
style?: React.CSSProperties;
|
|
41
|
+
children?: React.ReactNode;
|
|
42
|
+
}
|
|
43
|
+
declare const Box: React.ForwardRefExoticComponent<WebBoxProps & React.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
|
|
45
|
+
interface WebStackProps extends WebBoxProps {
|
|
46
|
+
gap?: SpacingToken | number | string;
|
|
47
|
+
align?: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
48
|
+
justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
49
|
+
}
|
|
50
|
+
declare const Stack: React.FC<WebStackProps>;
|
|
51
|
+
|
|
52
|
+
interface WebInlineProps extends WebBoxProps {
|
|
53
|
+
gap?: SpacingToken | number | string;
|
|
54
|
+
align?: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
55
|
+
justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
56
|
+
wrap?: boolean;
|
|
57
|
+
}
|
|
58
|
+
declare const Inline: React.FC<WebInlineProps>;
|
|
59
|
+
|
|
60
|
+
declare const Center: React.FC<WebBoxProps>;
|
|
61
|
+
|
|
62
|
+
interface WebScrollProps extends WebBoxProps {
|
|
63
|
+
direction?: 'vertical' | 'horizontal' | 'both';
|
|
64
|
+
hideScrollbar?: boolean;
|
|
65
|
+
}
|
|
66
|
+
declare const Scroll: React.FC<WebScrollProps>;
|
|
67
|
+
|
|
68
|
+
interface WebDividerProps {
|
|
69
|
+
orientation?: 'horizontal' | 'vertical';
|
|
70
|
+
color?: string;
|
|
71
|
+
size?: number | string;
|
|
72
|
+
style?: React.CSSProperties;
|
|
73
|
+
}
|
|
74
|
+
declare const Divider: React.FC<WebDividerProps>;
|
|
75
|
+
|
|
76
|
+
interface WebButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
77
|
+
label?: string;
|
|
78
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive';
|
|
79
|
+
size?: 'sm' | 'md' | 'lg';
|
|
80
|
+
loading?: boolean;
|
|
81
|
+
disabled?: boolean;
|
|
82
|
+
fullWidth?: boolean;
|
|
83
|
+
leftIcon?: React.ReactNode;
|
|
84
|
+
rightIcon?: React.ReactNode;
|
|
85
|
+
children?: React.ReactNode;
|
|
86
|
+
}
|
|
87
|
+
declare const Button: React.FC<WebButtonProps>;
|
|
88
|
+
|
|
89
|
+
interface WebTextProps extends React.HTMLAttributes<HTMLElement> {
|
|
90
|
+
variant?: 'heading' | 'subheading' | 'body' | 'caption' | 'code' | 'label';
|
|
91
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
92
|
+
weight?: 'light' | 'regular' | 'medium' | 'semibold' | 'bold';
|
|
93
|
+
color?: 'primary' | 'secondary' | 'muted' | 'error' | 'success' | string;
|
|
94
|
+
align?: 'left' | 'center' | 'right' | 'justify';
|
|
95
|
+
as?: React.ElementType;
|
|
96
|
+
children?: React.ReactNode;
|
|
97
|
+
}
|
|
98
|
+
declare const Text: React.FC<WebTextProps>;
|
|
99
|
+
|
|
100
|
+
interface WebCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
101
|
+
padding?: SpacingToken | number | string;
|
|
102
|
+
borderRadius?: RadiusToken | number | string;
|
|
103
|
+
bordered?: boolean;
|
|
104
|
+
elevation?: 'none' | 'sm' | 'md' | 'lg';
|
|
105
|
+
children?: React.ReactNode;
|
|
106
|
+
}
|
|
107
|
+
declare const Card: React.FC<WebCardProps>;
|
|
108
|
+
|
|
109
|
+
interface WebBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
110
|
+
label?: string;
|
|
111
|
+
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'outline';
|
|
112
|
+
size?: 'sm' | 'md';
|
|
113
|
+
children?: React.ReactNode;
|
|
114
|
+
}
|
|
115
|
+
declare const Badge: React.FC<WebBadgeProps>;
|
|
116
|
+
|
|
117
|
+
interface WebAvatarProps {
|
|
118
|
+
src?: string;
|
|
119
|
+
name?: string;
|
|
120
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
121
|
+
shape?: 'circle' | 'square';
|
|
122
|
+
style?: React.CSSProperties;
|
|
123
|
+
}
|
|
124
|
+
declare const Avatar: React.FC<WebAvatarProps>;
|
|
125
|
+
|
|
126
|
+
interface WebTextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
127
|
+
label?: string;
|
|
128
|
+
error?: string;
|
|
129
|
+
helperText?: string;
|
|
130
|
+
leftIcon?: React.ReactNode;
|
|
131
|
+
rightIcon?: React.ReactNode;
|
|
132
|
+
containerStyle?: React.CSSProperties;
|
|
133
|
+
}
|
|
134
|
+
declare const TextInput: React.FC<WebTextInputProps>;
|
|
135
|
+
|
|
136
|
+
interface WebTextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
137
|
+
label?: string;
|
|
138
|
+
error?: string;
|
|
139
|
+
helperText?: string;
|
|
140
|
+
containerStyle?: React.CSSProperties;
|
|
141
|
+
}
|
|
142
|
+
declare const TextArea: React.FC<WebTextAreaProps>;
|
|
143
|
+
|
|
144
|
+
interface SelectOption {
|
|
145
|
+
label: string;
|
|
146
|
+
value: string;
|
|
147
|
+
}
|
|
148
|
+
interface WebSelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
|
|
149
|
+
label?: string;
|
|
150
|
+
options?: SelectOption[];
|
|
151
|
+
error?: string;
|
|
152
|
+
containerStyle?: React.CSSProperties;
|
|
153
|
+
}
|
|
154
|
+
declare const Select: React.FC<WebSelectProps>;
|
|
155
|
+
|
|
156
|
+
interface WebCheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
157
|
+
label?: string;
|
|
158
|
+
checked?: boolean;
|
|
159
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
160
|
+
}
|
|
161
|
+
declare const Checkbox: React.FC<WebCheckboxProps>;
|
|
162
|
+
|
|
163
|
+
interface WebSwitchProps {
|
|
164
|
+
checked?: boolean;
|
|
165
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
166
|
+
disabled?: boolean;
|
|
167
|
+
label?: string;
|
|
168
|
+
style?: React.CSSProperties;
|
|
169
|
+
}
|
|
170
|
+
declare const Switch: React.FC<WebSwitchProps>;
|
|
171
|
+
|
|
172
|
+
interface WebSpinnerProps {
|
|
173
|
+
size?: 'sm' | 'md' | 'lg' | number;
|
|
174
|
+
color?: string;
|
|
175
|
+
style?: React.CSSProperties;
|
|
176
|
+
}
|
|
177
|
+
declare const Spinner: React.FC<WebSpinnerProps>;
|
|
178
|
+
|
|
179
|
+
interface WebIconProps {
|
|
180
|
+
name: string;
|
|
181
|
+
size?: number | string;
|
|
182
|
+
color?: string;
|
|
183
|
+
className?: string;
|
|
184
|
+
style?: React.CSSProperties;
|
|
185
|
+
}
|
|
186
|
+
declare const Icon: React.FC<WebIconProps>;
|
|
187
|
+
|
|
188
|
+
interface WebIconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
189
|
+
name: string;
|
|
190
|
+
size?: 'sm' | 'md' | 'lg';
|
|
191
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'outline';
|
|
192
|
+
disabled?: boolean;
|
|
193
|
+
}
|
|
194
|
+
declare const IconButton: React.FC<WebIconButtonProps>;
|
|
195
|
+
|
|
196
|
+
interface TabItem {
|
|
197
|
+
id: string;
|
|
198
|
+
label: string;
|
|
199
|
+
icon?: React.ReactNode;
|
|
200
|
+
}
|
|
201
|
+
interface WebTabsProps {
|
|
202
|
+
items: TabItem[];
|
|
203
|
+
activeId: string;
|
|
204
|
+
onChange: (id: string) => void;
|
|
205
|
+
style?: React.CSSProperties;
|
|
206
|
+
}
|
|
207
|
+
declare const Tabs: React.FC<WebTabsProps>;
|
|
208
|
+
|
|
209
|
+
interface WebProgressBarProps {
|
|
210
|
+
progress: number;
|
|
211
|
+
color?: string;
|
|
212
|
+
height?: number;
|
|
213
|
+
style?: React.CSSProperties;
|
|
214
|
+
}
|
|
215
|
+
declare const ProgressBar: React.FC<WebProgressBarProps>;
|
|
216
|
+
|
|
217
|
+
interface WebAccordionProps {
|
|
218
|
+
title: string;
|
|
219
|
+
defaultOpen?: boolean;
|
|
220
|
+
children: React.ReactNode;
|
|
221
|
+
style?: React.CSSProperties;
|
|
222
|
+
}
|
|
223
|
+
declare const Accordion: React.FC<WebAccordionProps>;
|
|
224
|
+
|
|
225
|
+
interface WebChipProps {
|
|
226
|
+
label: string;
|
|
227
|
+
onDismiss?: () => void;
|
|
228
|
+
onClick?: () => void;
|
|
229
|
+
style?: React.CSSProperties;
|
|
230
|
+
}
|
|
231
|
+
declare const Chip: React.FC<WebChipProps>;
|
|
232
|
+
|
|
233
|
+
declare const Separator: React.FC<WebDividerProps>;
|
|
234
|
+
|
|
235
|
+
interface WebImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
236
|
+
aspectRatio?: number;
|
|
237
|
+
borderRadius?: number | string;
|
|
238
|
+
}
|
|
239
|
+
declare const Image: React.FC<WebImageProps>;
|
|
240
|
+
|
|
241
|
+
interface WebVideoProps extends React.VideoHTMLAttributes<HTMLVideoElement> {
|
|
242
|
+
src: string;
|
|
243
|
+
poster?: string;
|
|
244
|
+
borderRadius?: number | string;
|
|
245
|
+
}
|
|
246
|
+
declare const Video: React.FC<WebVideoProps>;
|
|
247
|
+
|
|
248
|
+
interface WebRootLayoutProps {
|
|
249
|
+
children?: React.ReactNode;
|
|
250
|
+
style?: React.CSSProperties;
|
|
251
|
+
}
|
|
252
|
+
declare const RootLayout: React.FC<WebRootLayoutProps>;
|
|
253
|
+
|
|
254
|
+
interface WebAuthLayoutProps {
|
|
255
|
+
title?: string;
|
|
256
|
+
subtitle?: string;
|
|
257
|
+
logo?: React.ReactNode;
|
|
258
|
+
children?: React.ReactNode;
|
|
259
|
+
style?: React.CSSProperties;
|
|
260
|
+
}
|
|
261
|
+
declare const AuthLayout: React.FC<WebAuthLayoutProps>;
|
|
262
|
+
|
|
263
|
+
interface WebDashboardLayoutProps {
|
|
264
|
+
sidebar?: React.ReactNode;
|
|
265
|
+
header?: React.ReactNode;
|
|
266
|
+
children?: React.ReactNode;
|
|
267
|
+
sidebarWidth?: number | string;
|
|
268
|
+
headerHeight?: number | string;
|
|
269
|
+
style?: React.CSSProperties;
|
|
270
|
+
}
|
|
271
|
+
declare const DashboardLayout: React.FC<WebDashboardLayoutProps>;
|
|
272
|
+
|
|
273
|
+
interface WebSidebarLayoutProps {
|
|
274
|
+
sidebar: React.ReactNode;
|
|
275
|
+
sidebarPosition?: 'left' | 'right';
|
|
276
|
+
width?: number | string;
|
|
277
|
+
children: React.ReactNode;
|
|
278
|
+
style?: React.CSSProperties;
|
|
279
|
+
}
|
|
280
|
+
declare const SidebarLayout: React.FC<WebSidebarLayoutProps>;
|
|
281
|
+
|
|
282
|
+
interface WebHeaderContentLayoutProps {
|
|
283
|
+
header: React.ReactNode;
|
|
284
|
+
children: React.ReactNode;
|
|
285
|
+
headerHeight?: number | string;
|
|
286
|
+
style?: React.CSSProperties;
|
|
287
|
+
}
|
|
288
|
+
declare const HeaderContentLayout: React.FC<WebHeaderContentLayoutProps>;
|
|
289
|
+
|
|
290
|
+
interface WebCenteredLayoutProps {
|
|
291
|
+
maxWidth?: number | string;
|
|
292
|
+
children: React.ReactNode;
|
|
293
|
+
style?: React.CSSProperties;
|
|
294
|
+
}
|
|
295
|
+
declare const CenteredLayout: React.FC<WebCenteredLayoutProps>;
|
|
296
|
+
|
|
297
|
+
interface WebGridLayoutProps {
|
|
298
|
+
columns?: number | string;
|
|
299
|
+
gap?: number | string;
|
|
300
|
+
children: React.ReactNode;
|
|
301
|
+
style?: React.CSSProperties;
|
|
302
|
+
}
|
|
303
|
+
declare const GridLayout: React.FC<WebGridLayoutProps>;
|
|
304
|
+
|
|
305
|
+
interface WebFlexLayoutProps {
|
|
306
|
+
direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
307
|
+
align?: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
308
|
+
justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
309
|
+
gap?: number | string;
|
|
310
|
+
wrap?: boolean;
|
|
311
|
+
children: React.ReactNode;
|
|
312
|
+
style?: React.CSSProperties;
|
|
313
|
+
}
|
|
314
|
+
declare const FlexLayout: React.FC<WebFlexLayoutProps>;
|
|
315
|
+
|
|
316
|
+
export { Accordion, AuthLayout, Avatar, Badge, Box, Button, Card, Center, CenteredLayout, Checkbox, Chip, DashboardLayout, Divider, FlexLayout, GridLayout, HeaderContentLayout, Icon, IconButton, Image, Inline, ProgressBar, RadiusToken, RootLayout, Scroll, Select, type SelectOption, Separator, SidebarLayout, SpacingToken, Spinner, Stack, Switch, type TabItem, Tabs, Text, TextArea, TextInput, Video, type WebAccordionProps, type WebAuthLayoutProps, type WebAvatarProps, type WebBadgeProps, type WebBoxProps, type WebButtonProps, type WebCardProps, type WebCenteredLayoutProps, type WebCheckboxProps, type WebChipProps, type WebDashboardLayoutProps, type WebDividerProps, type WebFlexLayoutProps, type WebGridLayoutProps, type WebHeaderContentLayoutProps, type WebIconButtonProps, type WebIconProps, type WebImageProps, type WebInlineProps, type WebProgressBarProps, type WebRootLayoutProps, type WebScrollProps, type WebSelectProps, type WebSidebarLayoutProps, type WebSpinnerProps, type WebStackProps, type WebSwitchProps, type WebTabsProps, type WebTextAreaProps, type WebTextInputProps, type WebTextProps, type WebVideoProps };
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SpacingToken, RadiusToken } from '../tokens/index.js';
|
|
3
|
+
export { Breakpoint, ColorToken, DurationToken, EasingToken, FontSizeToken, FontWeightToken, LetterSpacingToken, LineHeightToken, OpacityToken, ShadowToken, ZIndexToken, breakpoints, colors, motion, opacity, radii, shadows, spacing, typography, zIndex } from '../tokens/index.js';
|
|
4
|
+
export { T as ThemeProvider, c as createTheme, u as useTheme } from '../createTheme-Y4jfz4-u.js';
|
|
5
|
+
export { C as ColorScheme, a as CustomThemeMode, T as ThemeGradients, b as ThemeMode, d as ThemeRegistry } from '../index-CuaJA3gM.js';
|
|
6
|
+
|
|
7
|
+
interface WebBoxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
padding?: SpacingToken | number | string;
|
|
9
|
+
p?: SpacingToken | number | string;
|
|
10
|
+
paddingTop?: SpacingToken | number | string;
|
|
11
|
+
pt?: SpacingToken | number | string;
|
|
12
|
+
paddingBottom?: SpacingToken | number | string;
|
|
13
|
+
pb?: SpacingToken | number | string;
|
|
14
|
+
paddingLeft?: SpacingToken | number | string;
|
|
15
|
+
pl?: SpacingToken | number | string;
|
|
16
|
+
paddingRight?: SpacingToken | number | string;
|
|
17
|
+
pr?: SpacingToken | number | string;
|
|
18
|
+
paddingHorizontal?: SpacingToken | number | string;
|
|
19
|
+
px?: SpacingToken | number | string;
|
|
20
|
+
paddingVertical?: SpacingToken | number | string;
|
|
21
|
+
py?: SpacingToken | number | string;
|
|
22
|
+
margin?: SpacingToken | number | string;
|
|
23
|
+
m?: SpacingToken | number | string;
|
|
24
|
+
marginTop?: SpacingToken | number | string;
|
|
25
|
+
mt?: SpacingToken | number | string;
|
|
26
|
+
marginBottom?: SpacingToken | number | string;
|
|
27
|
+
mb?: SpacingToken | number | string;
|
|
28
|
+
borderRadius?: RadiusToken | number | string;
|
|
29
|
+
bg?: string;
|
|
30
|
+
backgroundColor?: string;
|
|
31
|
+
borderWidth?: number | string;
|
|
32
|
+
borderColor?: string;
|
|
33
|
+
flex?: number | string;
|
|
34
|
+
width?: number | string;
|
|
35
|
+
height?: number | string;
|
|
36
|
+
maxWidth?: number | string;
|
|
37
|
+
maxHeight?: number | string;
|
|
38
|
+
display?: string;
|
|
39
|
+
position?: 'relative' | 'absolute' | 'fixed' | 'sticky';
|
|
40
|
+
style?: React.CSSProperties;
|
|
41
|
+
children?: React.ReactNode;
|
|
42
|
+
}
|
|
43
|
+
declare const Box: React.ForwardRefExoticComponent<WebBoxProps & React.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
|
|
45
|
+
interface WebStackProps extends WebBoxProps {
|
|
46
|
+
gap?: SpacingToken | number | string;
|
|
47
|
+
align?: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
48
|
+
justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
49
|
+
}
|
|
50
|
+
declare const Stack: React.FC<WebStackProps>;
|
|
51
|
+
|
|
52
|
+
interface WebInlineProps extends WebBoxProps {
|
|
53
|
+
gap?: SpacingToken | number | string;
|
|
54
|
+
align?: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
55
|
+
justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
56
|
+
wrap?: boolean;
|
|
57
|
+
}
|
|
58
|
+
declare const Inline: React.FC<WebInlineProps>;
|
|
59
|
+
|
|
60
|
+
declare const Center: React.FC<WebBoxProps>;
|
|
61
|
+
|
|
62
|
+
interface WebScrollProps extends WebBoxProps {
|
|
63
|
+
direction?: 'vertical' | 'horizontal' | 'both';
|
|
64
|
+
hideScrollbar?: boolean;
|
|
65
|
+
}
|
|
66
|
+
declare const Scroll: React.FC<WebScrollProps>;
|
|
67
|
+
|
|
68
|
+
interface WebDividerProps {
|
|
69
|
+
orientation?: 'horizontal' | 'vertical';
|
|
70
|
+
color?: string;
|
|
71
|
+
size?: number | string;
|
|
72
|
+
style?: React.CSSProperties;
|
|
73
|
+
}
|
|
74
|
+
declare const Divider: React.FC<WebDividerProps>;
|
|
75
|
+
|
|
76
|
+
interface WebButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
77
|
+
label?: string;
|
|
78
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive';
|
|
79
|
+
size?: 'sm' | 'md' | 'lg';
|
|
80
|
+
loading?: boolean;
|
|
81
|
+
disabled?: boolean;
|
|
82
|
+
fullWidth?: boolean;
|
|
83
|
+
leftIcon?: React.ReactNode;
|
|
84
|
+
rightIcon?: React.ReactNode;
|
|
85
|
+
children?: React.ReactNode;
|
|
86
|
+
}
|
|
87
|
+
declare const Button: React.FC<WebButtonProps>;
|
|
88
|
+
|
|
89
|
+
interface WebTextProps extends React.HTMLAttributes<HTMLElement> {
|
|
90
|
+
variant?: 'heading' | 'subheading' | 'body' | 'caption' | 'code' | 'label';
|
|
91
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
92
|
+
weight?: 'light' | 'regular' | 'medium' | 'semibold' | 'bold';
|
|
93
|
+
color?: 'primary' | 'secondary' | 'muted' | 'error' | 'success' | string;
|
|
94
|
+
align?: 'left' | 'center' | 'right' | 'justify';
|
|
95
|
+
as?: React.ElementType;
|
|
96
|
+
children?: React.ReactNode;
|
|
97
|
+
}
|
|
98
|
+
declare const Text: React.FC<WebTextProps>;
|
|
99
|
+
|
|
100
|
+
interface WebCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
101
|
+
padding?: SpacingToken | number | string;
|
|
102
|
+
borderRadius?: RadiusToken | number | string;
|
|
103
|
+
bordered?: boolean;
|
|
104
|
+
elevation?: 'none' | 'sm' | 'md' | 'lg';
|
|
105
|
+
children?: React.ReactNode;
|
|
106
|
+
}
|
|
107
|
+
declare const Card: React.FC<WebCardProps>;
|
|
108
|
+
|
|
109
|
+
interface WebBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
110
|
+
label?: string;
|
|
111
|
+
variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'outline';
|
|
112
|
+
size?: 'sm' | 'md';
|
|
113
|
+
children?: React.ReactNode;
|
|
114
|
+
}
|
|
115
|
+
declare const Badge: React.FC<WebBadgeProps>;
|
|
116
|
+
|
|
117
|
+
interface WebAvatarProps {
|
|
118
|
+
src?: string;
|
|
119
|
+
name?: string;
|
|
120
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
121
|
+
shape?: 'circle' | 'square';
|
|
122
|
+
style?: React.CSSProperties;
|
|
123
|
+
}
|
|
124
|
+
declare const Avatar: React.FC<WebAvatarProps>;
|
|
125
|
+
|
|
126
|
+
interface WebTextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
127
|
+
label?: string;
|
|
128
|
+
error?: string;
|
|
129
|
+
helperText?: string;
|
|
130
|
+
leftIcon?: React.ReactNode;
|
|
131
|
+
rightIcon?: React.ReactNode;
|
|
132
|
+
containerStyle?: React.CSSProperties;
|
|
133
|
+
}
|
|
134
|
+
declare const TextInput: React.FC<WebTextInputProps>;
|
|
135
|
+
|
|
136
|
+
interface WebTextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
137
|
+
label?: string;
|
|
138
|
+
error?: string;
|
|
139
|
+
helperText?: string;
|
|
140
|
+
containerStyle?: React.CSSProperties;
|
|
141
|
+
}
|
|
142
|
+
declare const TextArea: React.FC<WebTextAreaProps>;
|
|
143
|
+
|
|
144
|
+
interface SelectOption {
|
|
145
|
+
label: string;
|
|
146
|
+
value: string;
|
|
147
|
+
}
|
|
148
|
+
interface WebSelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
|
|
149
|
+
label?: string;
|
|
150
|
+
options?: SelectOption[];
|
|
151
|
+
error?: string;
|
|
152
|
+
containerStyle?: React.CSSProperties;
|
|
153
|
+
}
|
|
154
|
+
declare const Select: React.FC<WebSelectProps>;
|
|
155
|
+
|
|
156
|
+
interface WebCheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
157
|
+
label?: string;
|
|
158
|
+
checked?: boolean;
|
|
159
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
160
|
+
}
|
|
161
|
+
declare const Checkbox: React.FC<WebCheckboxProps>;
|
|
162
|
+
|
|
163
|
+
interface WebSwitchProps {
|
|
164
|
+
checked?: boolean;
|
|
165
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
166
|
+
disabled?: boolean;
|
|
167
|
+
label?: string;
|
|
168
|
+
style?: React.CSSProperties;
|
|
169
|
+
}
|
|
170
|
+
declare const Switch: React.FC<WebSwitchProps>;
|
|
171
|
+
|
|
172
|
+
interface WebSpinnerProps {
|
|
173
|
+
size?: 'sm' | 'md' | 'lg' | number;
|
|
174
|
+
color?: string;
|
|
175
|
+
style?: React.CSSProperties;
|
|
176
|
+
}
|
|
177
|
+
declare const Spinner: React.FC<WebSpinnerProps>;
|
|
178
|
+
|
|
179
|
+
interface WebIconProps {
|
|
180
|
+
name: string;
|
|
181
|
+
size?: number | string;
|
|
182
|
+
color?: string;
|
|
183
|
+
className?: string;
|
|
184
|
+
style?: React.CSSProperties;
|
|
185
|
+
}
|
|
186
|
+
declare const Icon: React.FC<WebIconProps>;
|
|
187
|
+
|
|
188
|
+
interface WebIconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
189
|
+
name: string;
|
|
190
|
+
size?: 'sm' | 'md' | 'lg';
|
|
191
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'outline';
|
|
192
|
+
disabled?: boolean;
|
|
193
|
+
}
|
|
194
|
+
declare const IconButton: React.FC<WebIconButtonProps>;
|
|
195
|
+
|
|
196
|
+
interface TabItem {
|
|
197
|
+
id: string;
|
|
198
|
+
label: string;
|
|
199
|
+
icon?: React.ReactNode;
|
|
200
|
+
}
|
|
201
|
+
interface WebTabsProps {
|
|
202
|
+
items: TabItem[];
|
|
203
|
+
activeId: string;
|
|
204
|
+
onChange: (id: string) => void;
|
|
205
|
+
style?: React.CSSProperties;
|
|
206
|
+
}
|
|
207
|
+
declare const Tabs: React.FC<WebTabsProps>;
|
|
208
|
+
|
|
209
|
+
interface WebProgressBarProps {
|
|
210
|
+
progress: number;
|
|
211
|
+
color?: string;
|
|
212
|
+
height?: number;
|
|
213
|
+
style?: React.CSSProperties;
|
|
214
|
+
}
|
|
215
|
+
declare const ProgressBar: React.FC<WebProgressBarProps>;
|
|
216
|
+
|
|
217
|
+
interface WebAccordionProps {
|
|
218
|
+
title: string;
|
|
219
|
+
defaultOpen?: boolean;
|
|
220
|
+
children: React.ReactNode;
|
|
221
|
+
style?: React.CSSProperties;
|
|
222
|
+
}
|
|
223
|
+
declare const Accordion: React.FC<WebAccordionProps>;
|
|
224
|
+
|
|
225
|
+
interface WebChipProps {
|
|
226
|
+
label: string;
|
|
227
|
+
onDismiss?: () => void;
|
|
228
|
+
onClick?: () => void;
|
|
229
|
+
style?: React.CSSProperties;
|
|
230
|
+
}
|
|
231
|
+
declare const Chip: React.FC<WebChipProps>;
|
|
232
|
+
|
|
233
|
+
declare const Separator: React.FC<WebDividerProps>;
|
|
234
|
+
|
|
235
|
+
interface WebImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
236
|
+
aspectRatio?: number;
|
|
237
|
+
borderRadius?: number | string;
|
|
238
|
+
}
|
|
239
|
+
declare const Image: React.FC<WebImageProps>;
|
|
240
|
+
|
|
241
|
+
interface WebVideoProps extends React.VideoHTMLAttributes<HTMLVideoElement> {
|
|
242
|
+
src: string;
|
|
243
|
+
poster?: string;
|
|
244
|
+
borderRadius?: number | string;
|
|
245
|
+
}
|
|
246
|
+
declare const Video: React.FC<WebVideoProps>;
|
|
247
|
+
|
|
248
|
+
interface WebRootLayoutProps {
|
|
249
|
+
children?: React.ReactNode;
|
|
250
|
+
style?: React.CSSProperties;
|
|
251
|
+
}
|
|
252
|
+
declare const RootLayout: React.FC<WebRootLayoutProps>;
|
|
253
|
+
|
|
254
|
+
interface WebAuthLayoutProps {
|
|
255
|
+
title?: string;
|
|
256
|
+
subtitle?: string;
|
|
257
|
+
logo?: React.ReactNode;
|
|
258
|
+
children?: React.ReactNode;
|
|
259
|
+
style?: React.CSSProperties;
|
|
260
|
+
}
|
|
261
|
+
declare const AuthLayout: React.FC<WebAuthLayoutProps>;
|
|
262
|
+
|
|
263
|
+
interface WebDashboardLayoutProps {
|
|
264
|
+
sidebar?: React.ReactNode;
|
|
265
|
+
header?: React.ReactNode;
|
|
266
|
+
children?: React.ReactNode;
|
|
267
|
+
sidebarWidth?: number | string;
|
|
268
|
+
headerHeight?: number | string;
|
|
269
|
+
style?: React.CSSProperties;
|
|
270
|
+
}
|
|
271
|
+
declare const DashboardLayout: React.FC<WebDashboardLayoutProps>;
|
|
272
|
+
|
|
273
|
+
interface WebSidebarLayoutProps {
|
|
274
|
+
sidebar: React.ReactNode;
|
|
275
|
+
sidebarPosition?: 'left' | 'right';
|
|
276
|
+
width?: number | string;
|
|
277
|
+
children: React.ReactNode;
|
|
278
|
+
style?: React.CSSProperties;
|
|
279
|
+
}
|
|
280
|
+
declare const SidebarLayout: React.FC<WebSidebarLayoutProps>;
|
|
281
|
+
|
|
282
|
+
interface WebHeaderContentLayoutProps {
|
|
283
|
+
header: React.ReactNode;
|
|
284
|
+
children: React.ReactNode;
|
|
285
|
+
headerHeight?: number | string;
|
|
286
|
+
style?: React.CSSProperties;
|
|
287
|
+
}
|
|
288
|
+
declare const HeaderContentLayout: React.FC<WebHeaderContentLayoutProps>;
|
|
289
|
+
|
|
290
|
+
interface WebCenteredLayoutProps {
|
|
291
|
+
maxWidth?: number | string;
|
|
292
|
+
children: React.ReactNode;
|
|
293
|
+
style?: React.CSSProperties;
|
|
294
|
+
}
|
|
295
|
+
declare const CenteredLayout: React.FC<WebCenteredLayoutProps>;
|
|
296
|
+
|
|
297
|
+
interface WebGridLayoutProps {
|
|
298
|
+
columns?: number | string;
|
|
299
|
+
gap?: number | string;
|
|
300
|
+
children: React.ReactNode;
|
|
301
|
+
style?: React.CSSProperties;
|
|
302
|
+
}
|
|
303
|
+
declare const GridLayout: React.FC<WebGridLayoutProps>;
|
|
304
|
+
|
|
305
|
+
interface WebFlexLayoutProps {
|
|
306
|
+
direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
307
|
+
align?: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
308
|
+
justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
309
|
+
gap?: number | string;
|
|
310
|
+
wrap?: boolean;
|
|
311
|
+
children: React.ReactNode;
|
|
312
|
+
style?: React.CSSProperties;
|
|
313
|
+
}
|
|
314
|
+
declare const FlexLayout: React.FC<WebFlexLayoutProps>;
|
|
315
|
+
|
|
316
|
+
export { Accordion, AuthLayout, Avatar, Badge, Box, Button, Card, Center, CenteredLayout, Checkbox, Chip, DashboardLayout, Divider, FlexLayout, GridLayout, HeaderContentLayout, Icon, IconButton, Image, Inline, ProgressBar, RadiusToken, RootLayout, Scroll, Select, type SelectOption, Separator, SidebarLayout, SpacingToken, Spinner, Stack, Switch, type TabItem, Tabs, Text, TextArea, TextInput, Video, type WebAccordionProps, type WebAuthLayoutProps, type WebAvatarProps, type WebBadgeProps, type WebBoxProps, type WebButtonProps, type WebCardProps, type WebCenteredLayoutProps, type WebCheckboxProps, type WebChipProps, type WebDashboardLayoutProps, type WebDividerProps, type WebFlexLayoutProps, type WebGridLayoutProps, type WebHeaderContentLayoutProps, type WebIconButtonProps, type WebIconProps, type WebImageProps, type WebInlineProps, type WebProgressBarProps, type WebRootLayoutProps, type WebScrollProps, type WebSelectProps, type WebSidebarLayoutProps, type WebSpinnerProps, type WebStackProps, type WebSwitchProps, type WebTabsProps, type WebTextAreaProps, type WebTextInputProps, type WebTextProps, type WebVideoProps };
|