silva-ui 0.0.0-stage → 1.0.1
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/LICENSE +21 -0
- package/README.md +206 -2
- package/dist/library/silva-ui.css +2 -0
- package/dist/library/silva-ui.js +28243 -0
- package/dist/types/core/Theme.d.ts +28 -0
- package/dist/types/core/colors/index.d.ts +9 -0
- package/dist/types/core/colors/radix.d.ts +1396 -0
- package/dist/types/core/create-theme/index.d.ts +1 -0
- package/dist/types/core/sprinkles.css.d.ts +921 -0
- package/dist/types/core/theme/index.css.d.ts +395 -0
- package/dist/types/core/theme/index.d.ts +10 -0
- package/dist/types/core/theme-builder/index.d.ts +34 -0
- package/dist/types/core/theme.css.d.ts +3 -0
- package/dist/types/core/themes/index.d.ts +283 -0
- package/dist/types/core/types.d.ts +16 -0
- package/dist/types/core/utils.d.ts +15 -0
- package/dist/types/display/Avatar.d.ts +16 -0
- package/dist/types/display/Card.d.ts +9 -0
- package/dist/types/display/Image.d.ts +10 -0
- package/dist/types/display/ListItem.d.ts +11 -0
- package/dist/types/display/Loader.d.ts +6 -0
- package/dist/types/display/Spinner.d.ts +7 -0
- package/dist/types/display/avatar.css.d.ts +4 -0
- package/dist/types/display/card.css.d.ts +5 -0
- package/dist/types/display/listitem.css.d.ts +7 -0
- package/dist/types/display/loader.css.d.ts +2 -0
- package/dist/types/display/spinner.css.d.ts +2 -0
- package/dist/types/forms/Button.d.ts +10 -0
- package/dist/types/forms/Checkbox.d.ts +13 -0
- package/dist/types/forms/Field.d.ts +9 -0
- package/dist/types/forms/Form.d.ts +8 -0
- package/dist/types/forms/Input.d.ts +14 -0
- package/dist/types/forms/Label.d.ts +8 -0
- package/dist/types/forms/Progress.d.ts +9 -0
- package/dist/types/forms/RadioGroup.d.ts +20 -0
- package/dist/types/forms/Select.d.ts +12 -0
- package/dist/types/forms/Slider.d.ts +16 -0
- package/dist/types/forms/Switch.d.ts +13 -0
- package/dist/types/forms/TextArea.d.ts +14 -0
- package/dist/types/forms/ToggleGroup.d.ts +14 -0
- package/dist/types/forms/button.css.d.ts +3 -0
- package/dist/types/forms/checkbox.css.d.ts +5 -0
- package/dist/types/forms/field.css.d.ts +3 -0
- package/dist/types/forms/form.css.d.ts +1 -0
- package/dist/types/forms/input.css.d.ts +2 -0
- package/dist/types/forms/label.css.d.ts +3 -0
- package/dist/types/forms/progress.css.d.ts +3 -0
- package/dist/types/forms/radiogroup.css.d.ts +7 -0
- package/dist/types/forms/select.css.d.ts +10 -0
- package/dist/types/forms/slider.css.d.ts +3 -0
- package/dist/types/forms/switch.css.d.ts +6 -0
- package/dist/types/forms/textarea.css.d.ts +2 -0
- package/dist/types/forms/togglegroup.css.d.ts +2 -0
- package/dist/types/index.d.ts +93 -0
- package/dist/types/layout/Box.d.ts +19 -0
- package/dist/types/layout/Separator.d.ts +7 -0
- package/dist/types/layout/XGroup.d.ts +5 -0
- package/dist/types/layout/XStack.d.ts +18 -0
- package/dist/types/layout/YStack.d.ts +18 -0
- package/dist/types/layout/separator.css.d.ts +2 -0
- package/dist/types/layout/stacks.css.d.ts +4 -0
- package/dist/types/layout/xgroup.css.d.ts +1 -0
- package/dist/types/overlays/Accordion.d.ts +22 -0
- package/dist/types/overlays/AlertDialog.d.ts +22 -0
- package/dist/types/overlays/ContextMenu.d.ts +20 -0
- package/dist/types/overlays/Dialog.d.ts +21 -0
- package/dist/types/overlays/Menu.d.ts +20 -0
- package/dist/types/overlays/Popover.d.ts +13 -0
- package/dist/types/overlays/Sheet.d.ts +22 -0
- package/dist/types/overlays/Tabs.d.ts +60 -0
- package/dist/types/overlays/Toast.d.ts +14 -0
- package/dist/types/overlays/Tooltip.d.ts +12 -0
- package/dist/types/overlays/accordion.css.d.ts +10 -0
- package/dist/types/overlays/alertdialog.css.d.ts +18 -0
- package/dist/types/overlays/contextmenu.css.d.ts +14 -0
- package/dist/types/overlays/dialog.css.d.ts +16 -0
- package/dist/types/overlays/menu.css.d.ts +14 -0
- package/dist/types/overlays/popover.css.d.ts +10 -0
- package/dist/types/overlays/sheet.css.d.ts +18 -0
- package/dist/types/overlays/tabs.css.d.ts +4 -0
- package/dist/types/overlays/toast.css.d.ts +14 -0
- package/dist/types/overlays/tooltip.css.d.ts +8 -0
- package/dist/types/typography/Anchor.d.ts +9 -0
- package/dist/types/typography/Heading.d.ts +9 -0
- package/dist/types/typography/Headings.d.ts +15 -0
- package/dist/types/typography/Paragraph.d.ts +4 -0
- package/dist/types/typography/SizableText.d.ts +7 -0
- package/dist/types/typography/Text.d.ts +7 -0
- package/dist/types/typography/anchor.css.d.ts +1 -0
- package/dist/types/typography/heading.css.d.ts +2 -0
- package/dist/types/typography/text.css.d.ts +4 -0
- package/package.json +60 -4
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
export declare const themePalettes: {
|
|
2
|
+
readonly light: readonly ['transparent', string, string, string, string, string, string, string, string, string, string, string, string, 'transparent'];
|
|
3
|
+
readonly dark: readonly ['transparent', string, string, string, string, string, string, string, string, string, string, string, string, 'transparent'];
|
|
4
|
+
};
|
|
5
|
+
export declare const themeTemplates: {
|
|
6
|
+
readonly base: {
|
|
7
|
+
readonly background: 1;
|
|
8
|
+
readonly card: 2;
|
|
9
|
+
readonly subtle: 3;
|
|
10
|
+
readonly border: 5;
|
|
11
|
+
readonly muted: 8;
|
|
12
|
+
readonly secondary: 11;
|
|
13
|
+
};
|
|
14
|
+
readonly surface1: {
|
|
15
|
+
readonly background: 2;
|
|
16
|
+
readonly card: 3;
|
|
17
|
+
readonly subtle: 4;
|
|
18
|
+
readonly border: 6;
|
|
19
|
+
readonly muted: 9;
|
|
20
|
+
readonly secondary: 12;
|
|
21
|
+
};
|
|
22
|
+
readonly surface2: {
|
|
23
|
+
readonly background: 3;
|
|
24
|
+
readonly card: 4;
|
|
25
|
+
readonly subtle: 5;
|
|
26
|
+
readonly border: 7;
|
|
27
|
+
readonly muted: 10;
|
|
28
|
+
readonly secondary: 12;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const lightColors: {
|
|
32
|
+
primary: string;
|
|
33
|
+
primaryHover: string;
|
|
34
|
+
primaryActive: string;
|
|
35
|
+
primaryContrast: string;
|
|
36
|
+
secondary: string;
|
|
37
|
+
background: string;
|
|
38
|
+
card: string;
|
|
39
|
+
subtle: string;
|
|
40
|
+
muted: string;
|
|
41
|
+
border: string;
|
|
42
|
+
ring: string;
|
|
43
|
+
error: string;
|
|
44
|
+
success: string;
|
|
45
|
+
warning: string;
|
|
46
|
+
info: string;
|
|
47
|
+
white: string;
|
|
48
|
+
black: string;
|
|
49
|
+
transparent: string;
|
|
50
|
+
overlay: string;
|
|
51
|
+
destructive: string;
|
|
52
|
+
};
|
|
53
|
+
export declare const darkColors: typeof lightColors;
|
|
54
|
+
export declare const emeraldColors: typeof lightColors;
|
|
55
|
+
export declare const emeraldDarkColors: typeof lightColors;
|
|
56
|
+
export declare const midnightColors: typeof lightColors;
|
|
57
|
+
export declare const themeDefinitions: {
|
|
58
|
+
light: {
|
|
59
|
+
primary: string;
|
|
60
|
+
primaryHover: string;
|
|
61
|
+
primaryActive: string;
|
|
62
|
+
primaryContrast: string;
|
|
63
|
+
secondary: string;
|
|
64
|
+
background: string;
|
|
65
|
+
card: string;
|
|
66
|
+
subtle: string;
|
|
67
|
+
muted: string;
|
|
68
|
+
border: string;
|
|
69
|
+
ring: string;
|
|
70
|
+
error: string;
|
|
71
|
+
success: string;
|
|
72
|
+
warning: string;
|
|
73
|
+
info: string;
|
|
74
|
+
white: string;
|
|
75
|
+
black: string;
|
|
76
|
+
transparent: string;
|
|
77
|
+
overlay: string;
|
|
78
|
+
destructive: string;
|
|
79
|
+
};
|
|
80
|
+
dark: {
|
|
81
|
+
primary: string;
|
|
82
|
+
primaryHover: string;
|
|
83
|
+
primaryActive: string;
|
|
84
|
+
primaryContrast: string;
|
|
85
|
+
secondary: string;
|
|
86
|
+
background: string;
|
|
87
|
+
card: string;
|
|
88
|
+
subtle: string;
|
|
89
|
+
muted: string;
|
|
90
|
+
border: string;
|
|
91
|
+
ring: string;
|
|
92
|
+
error: string;
|
|
93
|
+
success: string;
|
|
94
|
+
warning: string;
|
|
95
|
+
info: string;
|
|
96
|
+
white: string;
|
|
97
|
+
black: string;
|
|
98
|
+
transparent: string;
|
|
99
|
+
overlay: string;
|
|
100
|
+
destructive: string;
|
|
101
|
+
};
|
|
102
|
+
emerald: {
|
|
103
|
+
primary: string;
|
|
104
|
+
primaryHover: string;
|
|
105
|
+
primaryActive: string;
|
|
106
|
+
primaryContrast: string;
|
|
107
|
+
secondary: string;
|
|
108
|
+
background: string;
|
|
109
|
+
card: string;
|
|
110
|
+
subtle: string;
|
|
111
|
+
muted: string;
|
|
112
|
+
border: string;
|
|
113
|
+
ring: string;
|
|
114
|
+
error: string;
|
|
115
|
+
success: string;
|
|
116
|
+
warning: string;
|
|
117
|
+
info: string;
|
|
118
|
+
white: string;
|
|
119
|
+
black: string;
|
|
120
|
+
transparent: string;
|
|
121
|
+
overlay: string;
|
|
122
|
+
destructive: string;
|
|
123
|
+
};
|
|
124
|
+
'emerald-dark': {
|
|
125
|
+
primary: string;
|
|
126
|
+
primaryHover: string;
|
|
127
|
+
primaryActive: string;
|
|
128
|
+
primaryContrast: string;
|
|
129
|
+
secondary: string;
|
|
130
|
+
background: string;
|
|
131
|
+
card: string;
|
|
132
|
+
subtle: string;
|
|
133
|
+
muted: string;
|
|
134
|
+
border: string;
|
|
135
|
+
ring: string;
|
|
136
|
+
error: string;
|
|
137
|
+
success: string;
|
|
138
|
+
warning: string;
|
|
139
|
+
info: string;
|
|
140
|
+
white: string;
|
|
141
|
+
black: string;
|
|
142
|
+
transparent: string;
|
|
143
|
+
overlay: string;
|
|
144
|
+
destructive: string;
|
|
145
|
+
};
|
|
146
|
+
midnight: {
|
|
147
|
+
primary: string;
|
|
148
|
+
primaryHover: string;
|
|
149
|
+
primaryActive: string;
|
|
150
|
+
primaryContrast: string;
|
|
151
|
+
secondary: string;
|
|
152
|
+
background: string;
|
|
153
|
+
card: string;
|
|
154
|
+
subtle: string;
|
|
155
|
+
muted: string;
|
|
156
|
+
border: string;
|
|
157
|
+
ring: string;
|
|
158
|
+
error: string;
|
|
159
|
+
success: string;
|
|
160
|
+
warning: string;
|
|
161
|
+
info: string;
|
|
162
|
+
white: string;
|
|
163
|
+
black: string;
|
|
164
|
+
transparent: string;
|
|
165
|
+
overlay: string;
|
|
166
|
+
destructive: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
export declare const darkThemeNames: Set<string>;
|
|
170
|
+
export declare const nestedThemeDefinitions: Record<string, typeof lightColors>;
|
|
171
|
+
export declare const allThemeDefinitions: {
|
|
172
|
+
light: {
|
|
173
|
+
primary: string;
|
|
174
|
+
primaryHover: string;
|
|
175
|
+
primaryActive: string;
|
|
176
|
+
primaryContrast: string;
|
|
177
|
+
secondary: string;
|
|
178
|
+
background: string;
|
|
179
|
+
card: string;
|
|
180
|
+
subtle: string;
|
|
181
|
+
muted: string;
|
|
182
|
+
border: string;
|
|
183
|
+
ring: string;
|
|
184
|
+
error: string;
|
|
185
|
+
success: string;
|
|
186
|
+
warning: string;
|
|
187
|
+
info: string;
|
|
188
|
+
white: string;
|
|
189
|
+
black: string;
|
|
190
|
+
transparent: string;
|
|
191
|
+
overlay: string;
|
|
192
|
+
destructive: string;
|
|
193
|
+
};
|
|
194
|
+
dark: {
|
|
195
|
+
primary: string;
|
|
196
|
+
primaryHover: string;
|
|
197
|
+
primaryActive: string;
|
|
198
|
+
primaryContrast: string;
|
|
199
|
+
secondary: string;
|
|
200
|
+
background: string;
|
|
201
|
+
card: string;
|
|
202
|
+
subtle: string;
|
|
203
|
+
muted: string;
|
|
204
|
+
border: string;
|
|
205
|
+
ring: string;
|
|
206
|
+
error: string;
|
|
207
|
+
success: string;
|
|
208
|
+
warning: string;
|
|
209
|
+
info: string;
|
|
210
|
+
white: string;
|
|
211
|
+
black: string;
|
|
212
|
+
transparent: string;
|
|
213
|
+
overlay: string;
|
|
214
|
+
destructive: string;
|
|
215
|
+
};
|
|
216
|
+
emerald: {
|
|
217
|
+
primary: string;
|
|
218
|
+
primaryHover: string;
|
|
219
|
+
primaryActive: string;
|
|
220
|
+
primaryContrast: string;
|
|
221
|
+
secondary: string;
|
|
222
|
+
background: string;
|
|
223
|
+
card: string;
|
|
224
|
+
subtle: string;
|
|
225
|
+
muted: string;
|
|
226
|
+
border: string;
|
|
227
|
+
ring: string;
|
|
228
|
+
error: string;
|
|
229
|
+
success: string;
|
|
230
|
+
warning: string;
|
|
231
|
+
info: string;
|
|
232
|
+
white: string;
|
|
233
|
+
black: string;
|
|
234
|
+
transparent: string;
|
|
235
|
+
overlay: string;
|
|
236
|
+
destructive: string;
|
|
237
|
+
};
|
|
238
|
+
'emerald-dark': {
|
|
239
|
+
primary: string;
|
|
240
|
+
primaryHover: string;
|
|
241
|
+
primaryActive: string;
|
|
242
|
+
primaryContrast: string;
|
|
243
|
+
secondary: string;
|
|
244
|
+
background: string;
|
|
245
|
+
card: string;
|
|
246
|
+
subtle: string;
|
|
247
|
+
muted: string;
|
|
248
|
+
border: string;
|
|
249
|
+
ring: string;
|
|
250
|
+
error: string;
|
|
251
|
+
success: string;
|
|
252
|
+
warning: string;
|
|
253
|
+
info: string;
|
|
254
|
+
white: string;
|
|
255
|
+
black: string;
|
|
256
|
+
transparent: string;
|
|
257
|
+
overlay: string;
|
|
258
|
+
destructive: string;
|
|
259
|
+
};
|
|
260
|
+
midnight: {
|
|
261
|
+
primary: string;
|
|
262
|
+
primaryHover: string;
|
|
263
|
+
primaryActive: string;
|
|
264
|
+
primaryContrast: string;
|
|
265
|
+
secondary: string;
|
|
266
|
+
background: string;
|
|
267
|
+
card: string;
|
|
268
|
+
subtle: string;
|
|
269
|
+
muted: string;
|
|
270
|
+
border: string;
|
|
271
|
+
ring: string;
|
|
272
|
+
error: string;
|
|
273
|
+
success: string;
|
|
274
|
+
warning: string;
|
|
275
|
+
info: string;
|
|
276
|
+
white: string;
|
|
277
|
+
black: string;
|
|
278
|
+
transparent: string;
|
|
279
|
+
overlay: string;
|
|
280
|
+
destructive: string;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
export declare const TAMAGUI_EMERALD_PREVIEW_URL = "https://tamagui.dev/theme";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared types for silva-ui components.
|
|
3
|
+
*
|
|
4
|
+
* We keep JSX/framework types minimal and use `children?: any`
|
|
5
|
+
* so the library works with Hono JSX, Preact, or plain string rendering.
|
|
6
|
+
*/
|
|
7
|
+
import type { Sprinkles } from './sprinkles.css';
|
|
8
|
+
/** Props common to every silva-ui primitive. */
|
|
9
|
+
export interface BaseProps extends Sprinkles {
|
|
10
|
+
/** Extra class name(s) to merge after the generated sprinkles class. */
|
|
11
|
+
class?: string;
|
|
12
|
+
children?: any;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}
|
|
15
|
+
/** Standard component size scale. */
|
|
16
|
+
export type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Sprinkles } from './sprinkles.css';
|
|
2
|
+
/**
|
|
3
|
+
* Split a props object into sprinkles props and the remaining "rest" props.
|
|
4
|
+
*
|
|
5
|
+
* This lets components accept both sprinkles tokens *and* arbitrary HTML
|
|
6
|
+
* attributes without manually destructuring every sprinkles key.
|
|
7
|
+
*/
|
|
8
|
+
export declare function splitSprinklesProps<T extends Record<string, unknown>>(props: T): {
|
|
9
|
+
sprinklesProps: Sprinkles;
|
|
10
|
+
rest: Omit<T, keyof Sprinkles>;
|
|
11
|
+
};
|
|
12
|
+
/** Merge a sprinkles class + optional extra classes into a single string. */
|
|
13
|
+
export declare function cls(...classes: (string | undefined | false | null)[]): string;
|
|
14
|
+
/** Generate a sprinkles class string from sprinkles props. */
|
|
15
|
+
export declare function toSprinklesClass(sprinklesProps: Sprinkles): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { BaseProps, ComponentSize } from '../core/types';
|
|
2
|
+
export interface AvatarProps extends BaseProps {
|
|
3
|
+
size?: ComponentSize;
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}
|
|
6
|
+
export declare function Avatar({ size, class: extraClass, children, ...rest }: AvatarProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
7
|
+
export interface AvatarImageProps extends BaseProps {
|
|
8
|
+
src: string;
|
|
9
|
+
alt?: string;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
export declare function AvatarImage({ src, alt, class: extraClass, ...rest }: AvatarImageProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
13
|
+
export interface AvatarFallbackProps extends BaseProps {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
16
|
+
export declare function AvatarFallback({ class: extraClass, children, ...rest }: AvatarFallbackProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { BaseProps } from '../core/types';
|
|
2
|
+
export interface CardProps extends BaseProps {
|
|
3
|
+
bordered?: boolean;
|
|
4
|
+
elevated?: boolean;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
export declare function Card({ bordered, elevated, class: extraClass, children, ...rest }: CardProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
8
|
+
export declare function CardHeader({ class: extraClass, children, ...rest }: BaseProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
9
|
+
export declare function CardFooter({ class: extraClass, children, ...rest }: BaseProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseProps } from '../core/types';
|
|
2
|
+
export interface ImageProps extends BaseProps {
|
|
3
|
+
src: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
width?: any;
|
|
6
|
+
height?: any;
|
|
7
|
+
loading?: 'lazy' | 'eager';
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
export declare function Image({ src, alt, loading, class: extraClass, ...rest }: ImageProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BaseProps, ComponentSize } from '../core/types';
|
|
2
|
+
export interface ListItemProps extends BaseProps {
|
|
3
|
+
title?: any;
|
|
4
|
+
subTitle?: any;
|
|
5
|
+
icon?: any;
|
|
6
|
+
pressable?: boolean;
|
|
7
|
+
size?: 'sm' | 'md' | 'lg' | ComponentSize;
|
|
8
|
+
onClick?: (e: Event) => void;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
export declare function ListItem({ title, subTitle, icon, pressable, size, class: extraClass, children, ...rest }: ListItemProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { BaseProps, ComponentSize } from '../core/types';
|
|
2
|
+
export interface LoaderProps extends BaseProps {
|
|
3
|
+
size?: ComponentSize;
|
|
4
|
+
label?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function Loader({ size, label, class: extraClass, ...rest }: LoaderProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BaseProps, ComponentSize } from '../core/types';
|
|
2
|
+
export interface SpinnerProps extends BaseProps {
|
|
3
|
+
size?: ComponentSize;
|
|
4
|
+
label?: string;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
export declare function Spinner({ size, label, class: extraClass, ...rest }: SpinnerProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const root: string;
|
|
2
|
+
export declare const pressable: string;
|
|
3
|
+
export declare const sizeVariant: Record<"lg" | "md" | "sm", string>;
|
|
4
|
+
export declare const textContainer: string;
|
|
5
|
+
export declare const title: string;
|
|
6
|
+
export declare const subTitle: string;
|
|
7
|
+
export declare const icon: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseProps, ComponentSize } from '../core/types';
|
|
2
|
+
export interface ButtonProps extends BaseProps {
|
|
3
|
+
size?: ComponentSize;
|
|
4
|
+
variant?: 'solid' | 'outline' | 'ghost' | 'link';
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
type?: 'button' | 'submit' | 'reset';
|
|
7
|
+
onClick?: (e: Event) => void;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
export declare function Button({ size, variant, disabled, type, class: extraClass, children, ...rest }: ButtonProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { BaseProps, ComponentSize } from '../core/types';
|
|
2
|
+
export interface CheckboxProps extends BaseProps {
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
defaultChecked?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
name?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
size?: 'sm' | 'md' | 'lg' | ComponentSize;
|
|
10
|
+
onChange?: (e: Event) => void;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
export declare function Checkbox({ checked, defaultChecked, disabled, size, name, value, id, class: extraClass, children, ...rest }: CheckboxProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { BaseProps } from '../core/types';
|
|
2
|
+
export interface FieldProps extends BaseProps {
|
|
3
|
+
error?: string;
|
|
4
|
+
helperText?: string;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
export declare function Field({ error, helperText, class: extraClass, children, ...rest }: FieldProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
8
|
+
export declare function FieldError({ class: extraClass, children, ...rest }: BaseProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
9
|
+
export declare function FieldHelper({ class: extraClass, children, ...rest }: BaseProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BaseProps } from '../core/types';
|
|
2
|
+
export interface FormProps extends BaseProps {
|
|
3
|
+
action?: string;
|
|
4
|
+
method?: string;
|
|
5
|
+
onSubmit?: (e: Event) => void;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export declare function Form({ class: extraClass, children, ...rest }: FormProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BaseProps, ComponentSize } from '../core/types';
|
|
2
|
+
export interface InputProps extends BaseProps {
|
|
3
|
+
size?: 'sm' | 'md' | 'lg' | ComponentSize;
|
|
4
|
+
type?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
value?: string | number;
|
|
7
|
+
defaultValue?: string | number;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
name?: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
14
|
+
export declare function Input({ size, disabled, class: extraClass, ...rest }: InputProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BaseProps, ComponentSize } from '../core/types';
|
|
2
|
+
export interface LabelProps extends BaseProps {
|
|
3
|
+
htmlFor?: string;
|
|
4
|
+
size?: 'sm' | 'md' | 'lg' | ComponentSize;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export declare function Label({ size, required, htmlFor, class: extraClass, children, ...rest }: LabelProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { BaseProps, ComponentSize } from '../core/types';
|
|
2
|
+
export interface ProgressProps extends BaseProps {
|
|
3
|
+
value?: number;
|
|
4
|
+
max?: number;
|
|
5
|
+
size?: 'sm' | 'md' | 'lg' | ComponentSize;
|
|
6
|
+
'aria-label'?: string;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
export declare function Progress({ value, max, size, 'aria-label': ariaLabel, class: extraClass, ...rest }: ProgressProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { BaseProps, ComponentSize } from '../core/types';
|
|
2
|
+
export interface RadioGroupProps extends BaseProps {
|
|
3
|
+
name?: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export declare function RadioGroup({ name, value, defaultValue, class: extraClass, children, ...rest }: RadioGroupProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
9
|
+
export interface RadioGroupItemProps extends BaseProps {
|
|
10
|
+
value: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
checked?: boolean;
|
|
13
|
+
defaultChecked?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
id?: string;
|
|
16
|
+
size?: 'sm' | 'md' | 'lg' | ComponentSize;
|
|
17
|
+
onChange?: (e: Event) => void;
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}
|
|
20
|
+
export declare function RadioGroupItem({ value, name, checked, defaultChecked, disabled, id, size, class: extraClass, children, ...rest }: RadioGroupItemProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BaseProps, ComponentSize } from '../core/types';
|
|
2
|
+
export interface SelectProps extends BaseProps {
|
|
3
|
+
size?: 'sm' | 'md' | 'lg' | ComponentSize;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
name?: string;
|
|
6
|
+
value?: string | number;
|
|
7
|
+
defaultValue?: string | number;
|
|
8
|
+
id?: string;
|
|
9
|
+
onChange?: (e: Event) => void;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
export declare function Select({ size, disabled, class: extraClass, children, value, defaultValue, onChange, name, id, ...rest }: SelectProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { BaseProps, ComponentSize } from '../core/types';
|
|
2
|
+
export interface SliderProps extends BaseProps {
|
|
3
|
+
min?: number;
|
|
4
|
+
max?: number;
|
|
5
|
+
step?: number;
|
|
6
|
+
value?: number;
|
|
7
|
+
defaultValue?: number;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
name?: string;
|
|
10
|
+
id?: string;
|
|
11
|
+
size?: 'sm' | 'md' | 'lg' | ComponentSize;
|
|
12
|
+
onChange?: (e: Event) => void;
|
|
13
|
+
onInput?: (e: Event) => void;
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
16
|
+
export declare function Slider({ min, max, step, value, defaultValue, disabled, size, name, id, class: extraClass, ...rest }: SliderProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { BaseProps, ComponentSize } from '../core/types';
|
|
2
|
+
export interface SwitchProps extends BaseProps {
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
defaultChecked?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
name?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
size?: 'sm' | 'md' | 'lg' | ComponentSize;
|
|
10
|
+
onChange?: (e: Event) => void;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
export declare function Switch({ checked, defaultChecked, disabled, size, name, value, id, class: extraClass, children, ...rest }: SwitchProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BaseProps, ComponentSize } from '../core/types';
|
|
2
|
+
export interface TextAreaProps extends BaseProps {
|
|
3
|
+
size?: 'sm' | 'md' | 'lg' | ComponentSize;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
rows?: number;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
name?: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
14
|
+
export declare function TextArea({ size, disabled, rows, class: extraClass, children, ...rest }: TextAreaProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BaseProps } from '../core/types';
|
|
2
|
+
export interface ToggleGroupProps extends BaseProps {
|
|
3
|
+
type?: 'single' | 'multiple';
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}
|
|
6
|
+
export declare function ToggleGroup({ type, class: extraClass, children, ...rest }: ToggleGroupProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
7
|
+
export interface ToggleGroupItemProps extends BaseProps {
|
|
8
|
+
value: string;
|
|
9
|
+
'data-active'?: boolean | string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
onClick?: (e: Event) => void;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
14
|
+
export declare function ToggleGroupItem({ value, 'data-active': active, disabled, class: extraClass, children, ...rest }: ToggleGroupItemProps): import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const base: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const root: string;
|
|
2
|
+
export declare const item: string;
|
|
3
|
+
export declare const input: string;
|
|
4
|
+
export declare const indicator: string;
|
|
5
|
+
export declare const sizeVariant: Record<"lg" | "md" | "sm", string>;
|
|
6
|
+
export declare const dot: string;
|
|
7
|
+
export declare const dotSizeVariant: Record<"lg" | "md" | "sm", string>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const wrapper: string;
|
|
2
|
+
export declare const native: string;
|
|
3
|
+
export declare const select: string;
|
|
4
|
+
export declare const trigger: string;
|
|
5
|
+
export declare const panel: string;
|
|
6
|
+
export declare const outsideClickLayer: string;
|
|
7
|
+
export declare const option: string;
|
|
8
|
+
export declare const sizeVariant: Record<"lg" | "md" | "sm", string>;
|
|
9
|
+
export declare const triggerSizeVariant: Record<"lg" | "md" | "sm", string>;
|
|
10
|
+
export declare const icon: string;
|