@jameskyeong/uix 0.1.6
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/dist/cli/index.js +121 -0
- package/dist/cli/prompts.js +122 -0
- package/dist/cli/themes/blacksun.css +44 -0
- package/dist/cli/themes/emerald.css +44 -0
- package/dist/cli/themes/jsk.css +44 -0
- package/dist/cli/themes.js +33 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +267 -0
- package/dist/index.js +868 -0
- package/dist/styles.css +396 -0
- package/package.json +105 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
+
import { HTMLAttributes } from 'react';
|
|
4
|
+
import { HTMLMotionProps } from 'motion/react';
|
|
5
|
+
import { JSX } from 'react/jsx-runtime';
|
|
6
|
+
import { ReactNode } from 'react';
|
|
7
|
+
import { ReactPortal } from 'react';
|
|
8
|
+
import { RefAttributes } from 'react';
|
|
9
|
+
|
|
10
|
+
export declare const Badge: ForwardRefExoticComponent<BadgeProps & RefAttributes<HTMLSpanElement>>;
|
|
11
|
+
|
|
12
|
+
export declare interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
13
|
+
variant?: 'default' | 'secondary' | 'outline';
|
|
14
|
+
size?: 'sm' | 'md';
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export declare const Button: ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
|
|
19
|
+
export declare interface ButtonProps extends HTMLMotionProps<'button'> {
|
|
20
|
+
variant?: 'filled' | 'outline' | 'ghost';
|
|
21
|
+
color?: 'prime' | 'sub1' | 'sub2';
|
|
22
|
+
size?: 'sm' | 'md' | 'lg';
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export declare const Card: ForwardRefExoticComponent<Omit<CardProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
26
|
+
|
|
27
|
+
export declare const CardContent: ForwardRefExoticComponent<CardContentProps & RefAttributes<HTMLDivElement>>;
|
|
28
|
+
|
|
29
|
+
export declare interface CardContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
30
|
+
children: ReactNode;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export declare const CardDescription: ForwardRefExoticComponent<CardDescriptionProps & RefAttributes<HTMLParagraphElement>>;
|
|
34
|
+
|
|
35
|
+
export declare interface CardDescriptionProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
36
|
+
children: ReactNode;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export declare const CardHeader: ForwardRefExoticComponent<CardHeaderProps & RefAttributes<HTMLDivElement>>;
|
|
40
|
+
|
|
41
|
+
export declare interface CardHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
42
|
+
children: ReactNode;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export declare interface CardProps extends HTMLMotionProps<'div'> {
|
|
46
|
+
children: ReactNode;
|
|
47
|
+
hover?: boolean;
|
|
48
|
+
accentColor?: 'prime' | 'sub1' | 'sub2' | 'none';
|
|
49
|
+
accentPosition?: 'top' | 'left' | 'none';
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export declare const CardTitle: ForwardRefExoticComponent<CardTitleProps & RefAttributes<HTMLHeadingElement>>;
|
|
53
|
+
|
|
54
|
+
export declare interface CardTitleProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
55
|
+
children: ReactNode;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
59
|
+
|
|
60
|
+
export declare const CodeBlock: ForwardRefExoticComponent<CodeBlockProps & RefAttributes<HTMLDivElement>>;
|
|
61
|
+
|
|
62
|
+
export declare interface CodeBlockProps extends HTMLAttributes<HTMLDivElement> {
|
|
63
|
+
code: string;
|
|
64
|
+
language?: string;
|
|
65
|
+
showLineNumbers?: boolean;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export declare function ColorSwipeText({ children, className, color, gradient, delay, charDelay, }: ColorSwipeTextProps): JSX.Element;
|
|
69
|
+
|
|
70
|
+
export declare interface ColorSwipeTextProps {
|
|
71
|
+
children: string;
|
|
72
|
+
className?: string;
|
|
73
|
+
color?: 'prime' | 'sub1' | 'sub2';
|
|
74
|
+
gradient?: boolean;
|
|
75
|
+
delay?: number;
|
|
76
|
+
charDelay?: number;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export declare function Dropdown({ children, open: controlledOpen, onOpenChange, className, ...props }: DropdownProps): JSX.Element;
|
|
80
|
+
|
|
81
|
+
export declare function DropdownContent({ children, className, align }: DropdownContentProps): ReactPortal | null;
|
|
82
|
+
|
|
83
|
+
export declare interface DropdownContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
84
|
+
children: ReactNode;
|
|
85
|
+
align?: 'start' | 'center' | 'end';
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export declare function DropdownItem({ children, className, disabled, onClick, ...props }: DropdownItemProps): JSX.Element;
|
|
89
|
+
|
|
90
|
+
export declare interface DropdownItemProps extends HTMLAttributes<HTMLButtonElement> {
|
|
91
|
+
children: ReactNode;
|
|
92
|
+
disabled?: boolean;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export declare interface DropdownProps extends HTMLAttributes<HTMLDivElement> {
|
|
96
|
+
children: ReactNode;
|
|
97
|
+
open?: boolean;
|
|
98
|
+
onOpenChange?: (open: boolean) => void;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export declare function DropdownSeparator({ className, ...props }: DropdownSeparatorProps): JSX.Element;
|
|
102
|
+
|
|
103
|
+
export declare interface DropdownSeparatorProps extends HTMLAttributes<HTMLHRElement> {
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export declare function DropdownTrigger({ children, className, onClick, ...props }: DropdownTriggerProps): JSX.Element;
|
|
107
|
+
|
|
108
|
+
export declare interface DropdownTriggerProps extends HTMLAttributes<HTMLButtonElement> {
|
|
109
|
+
children: ReactNode;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export declare const ScrollArea: ForwardRefExoticComponent<ScrollAreaProps & RefAttributes<HTMLDivElement>>;
|
|
113
|
+
|
|
114
|
+
export declare interface ScrollAreaProps extends HTMLAttributes<HTMLDivElement> {
|
|
115
|
+
orientation?: 'vertical' | 'horizontal' | 'both';
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export declare function ScrollToTop({ threshold, className }: ScrollToTopProps): JSX.Element;
|
|
119
|
+
|
|
120
|
+
export declare interface ScrollToTopProps {
|
|
121
|
+
threshold?: number;
|
|
122
|
+
className?: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export declare const Section: ForwardRefExoticComponent<SectionProps & RefAttributes<HTMLElement>>;
|
|
126
|
+
|
|
127
|
+
export declare interface SectionProps extends HTMLAttributes<HTMLElement> {
|
|
128
|
+
children: ReactNode;
|
|
129
|
+
variant?: 'default' | 'secondary' | 'accent';
|
|
130
|
+
container?: boolean;
|
|
131
|
+
animate?: boolean;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export declare const SectionTitle: ForwardRefExoticComponent<SectionTitleProps & RefAttributes<HTMLHeadingElement>>;
|
|
135
|
+
|
|
136
|
+
export declare interface SectionTitleProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
137
|
+
children: ReactNode;
|
|
138
|
+
subtitle?: string;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export declare const Sheet: {
|
|
142
|
+
({ open, onOpenChange, children }: SheetProps): JSX.Element;
|
|
143
|
+
displayName: string;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
export declare const SheetContent: ForwardRefExoticComponent<SheetContentProps & RefAttributes<HTMLDivElement>>;
|
|
147
|
+
|
|
148
|
+
export declare interface SheetContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
149
|
+
side?: 'left' | 'right';
|
|
150
|
+
children: ReactNode;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export declare const SheetHeader: ForwardRefExoticComponent<SheetHeaderProps & RefAttributes<HTMLDivElement>>;
|
|
154
|
+
|
|
155
|
+
export declare interface SheetHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
156
|
+
children: ReactNode;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export declare interface SheetProps {
|
|
160
|
+
open: boolean;
|
|
161
|
+
onOpenChange: (open: boolean) => void;
|
|
162
|
+
children: ReactNode;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export declare const SheetTitle: ForwardRefExoticComponent<SheetTitleProps & RefAttributes<HTMLHeadingElement>>;
|
|
166
|
+
|
|
167
|
+
export declare interface SheetTitleProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
168
|
+
children: ReactNode;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export declare const Sidebar: ForwardRefExoticComponent<SidebarProps & RefAttributes<HTMLElement>>;
|
|
172
|
+
|
|
173
|
+
export declare const SidebarContent: ForwardRefExoticComponent<SidebarContentProps & RefAttributes<HTMLDivElement>>;
|
|
174
|
+
|
|
175
|
+
export declare interface SidebarContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
176
|
+
children: ReactNode;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export declare const SidebarGroup: ForwardRefExoticComponent<SidebarGroupProps & RefAttributes<HTMLDivElement>>;
|
|
180
|
+
|
|
181
|
+
export declare const SidebarGroupLabel: ForwardRefExoticComponent<SidebarGroupLabelProps & RefAttributes<HTMLDivElement>>;
|
|
182
|
+
|
|
183
|
+
export declare interface SidebarGroupLabelProps extends HTMLAttributes<HTMLDivElement> {
|
|
184
|
+
children: ReactNode;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export declare interface SidebarGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
188
|
+
children: ReactNode;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export declare const SidebarHeader: ForwardRefExoticComponent<SidebarHeaderProps & RefAttributes<HTMLDivElement>>;
|
|
192
|
+
|
|
193
|
+
export declare interface SidebarHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
194
|
+
children: ReactNode;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export declare const SidebarMenu: ForwardRefExoticComponent<SidebarMenuProps & RefAttributes<HTMLUListElement>>;
|
|
198
|
+
|
|
199
|
+
export declare const SidebarMenuButton: ForwardRefExoticComponent<SidebarMenuButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
200
|
+
|
|
201
|
+
export declare interface SidebarMenuButtonProps extends HTMLAttributes<HTMLButtonElement> {
|
|
202
|
+
isActive?: boolean;
|
|
203
|
+
children: ReactNode;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export declare const SidebarMenuItem: ForwardRefExoticComponent<SidebarMenuItemProps & RefAttributes<HTMLLIElement>>;
|
|
207
|
+
|
|
208
|
+
export declare interface SidebarMenuItemProps extends HTMLAttributes<HTMLLIElement> {
|
|
209
|
+
children: ReactNode;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export declare interface SidebarMenuProps extends HTMLAttributes<HTMLUListElement> {
|
|
213
|
+
children: ReactNode;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export declare interface SidebarProps extends HTMLAttributes<HTMLElement> {
|
|
217
|
+
children: ReactNode;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export declare const Surface: ForwardRefExoticComponent<SurfaceProps & RefAttributes<HTMLDivElement>>;
|
|
221
|
+
|
|
222
|
+
export declare interface SurfaceProps extends HTMLAttributes<HTMLDivElement> {
|
|
223
|
+
children?: ReactNode;
|
|
224
|
+
variant?: 'default' | 'subtle' | 'strong';
|
|
225
|
+
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export declare const Tabs: ForwardRefExoticComponent<TabsProps & RefAttributes<HTMLDivElement>>;
|
|
229
|
+
|
|
230
|
+
export declare const TabsContent: ForwardRefExoticComponent<TabsContentProps & RefAttributes<HTMLDivElement>>;
|
|
231
|
+
|
|
232
|
+
export declare interface TabsContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
233
|
+
value: string;
|
|
234
|
+
children: ReactNode;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export declare interface TabsContextValue {
|
|
238
|
+
activeTab: string;
|
|
239
|
+
setActiveTab: (value: string) => void;
|
|
240
|
+
tabsId: string;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export declare const TabsList: ForwardRefExoticComponent<TabsListProps & RefAttributes<HTMLDivElement>>;
|
|
244
|
+
|
|
245
|
+
export declare interface TabsListProps extends HTMLAttributes<HTMLDivElement> {
|
|
246
|
+
children: ReactNode;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export declare const TabsPanels: ForwardRefExoticComponent<TabsPanelsProps & RefAttributes<HTMLDivElement>>;
|
|
250
|
+
|
|
251
|
+
export declare interface TabsPanelsProps extends HTMLAttributes<HTMLDivElement> {
|
|
252
|
+
children: ReactNode;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export declare interface TabsProps extends HTMLAttributes<HTMLDivElement> {
|
|
256
|
+
defaultValue: string;
|
|
257
|
+
children: ReactNode;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export declare const TabsTrigger: ForwardRefExoticComponent<TabsTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
261
|
+
|
|
262
|
+
export declare interface TabsTriggerProps extends HTMLAttributes<HTMLButtonElement> {
|
|
263
|
+
value: string;
|
|
264
|
+
children: ReactNode;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export { }
|