@baolq/ui 0.1.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.
Files changed (103) hide show
  1. package/README.md +295 -0
  2. package/dist/components/baole-ui/accordion.d.ts +7 -0
  3. package/dist/components/baole-ui/affix.d.ts +11 -0
  4. package/dist/components/baole-ui/alert-dialog.d.ts +20 -0
  5. package/dist/components/baole-ui/alert.d.ts +15 -0
  6. package/dist/components/baole-ui/anchor.d.ts +17 -0
  7. package/dist/components/baole-ui/aspect-ratio.d.ts +4 -0
  8. package/dist/components/baole-ui/auto-complete.d.ts +17 -0
  9. package/dist/components/baole-ui/avatar.d.ts +13 -0
  10. package/dist/components/baole-ui/back-top.d.ts +9 -0
  11. package/dist/components/baole-ui/badge.d.ts +14 -0
  12. package/dist/components/baole-ui/breadcrumb.d.ts +19 -0
  13. package/dist/components/baole-ui/button.d.ts +15 -0
  14. package/dist/components/baole-ui/calendar.d.ts +8 -0
  15. package/dist/components/baole-ui/card.d.ts +19 -0
  16. package/dist/components/baole-ui/carousel.d.ts +18 -0
  17. package/dist/components/baole-ui/cascader.d.ts +19 -0
  18. package/dist/components/baole-ui/chart.d.ts +59 -0
  19. package/dist/components/baole-ui/checkbox.d.ts +8 -0
  20. package/dist/components/baole-ui/chip.d.ts +13 -0
  21. package/dist/components/baole-ui/code.d.ts +7 -0
  22. package/dist/components/baole-ui/collapsible.d.ts +6 -0
  23. package/dist/components/baole-ui/color-picker.d.ts +11 -0
  24. package/dist/components/baole-ui/command.d.ts +82 -0
  25. package/dist/components/baole-ui/container.d.ts +9 -0
  26. package/dist/components/baole-ui/context-menu.d.ts +27 -0
  27. package/dist/components/baole-ui/date-picker.d.ts +10 -0
  28. package/dist/components/baole-ui/date-range-picker.d.ts +11 -0
  29. package/dist/components/baole-ui/descriptions.d.ts +16 -0
  30. package/dist/components/baole-ui/dialog.d.ts +19 -0
  31. package/dist/components/baole-ui/divider.d.ts +8 -0
  32. package/dist/components/baole-ui/drawer.d.ts +17 -0
  33. package/dist/components/baole-ui/dropdown-menu.d.ts +27 -0
  34. package/dist/components/baole-ui/empty-state.d.ts +9 -0
  35. package/dist/components/baole-ui/float-button.d.ts +23 -0
  36. package/dist/components/baole-ui/form.d.ts +21 -0
  37. package/dist/components/baole-ui/grid.d.ts +16 -0
  38. package/dist/components/baole-ui/hover-card.d.ts +6 -0
  39. package/dist/components/baole-ui/image.d.ts +9 -0
  40. package/dist/components/baole-ui/index.d.ts +123 -0
  41. package/dist/components/baole-ui/input-number.d.ts +16 -0
  42. package/dist/components/baole-ui/input-otp.d.ts +34 -0
  43. package/dist/components/baole-ui/input.d.ts +21 -0
  44. package/dist/components/baole-ui/kbd.d.ts +9 -0
  45. package/dist/components/baole-ui/label.d.ts +11 -0
  46. package/dist/components/baole-ui/layout.d.ts +11 -0
  47. package/dist/components/baole-ui/list.d.ts +20 -0
  48. package/dist/components/baole-ui/mentions.d.ts +20 -0
  49. package/dist/components/baole-ui/menubar.d.ts +28 -0
  50. package/dist/components/baole-ui/message.d.ts +21 -0
  51. package/dist/components/baole-ui/modal.d.ts +15 -0
  52. package/dist/components/baole-ui/navigation-menu.d.ts +12 -0
  53. package/dist/components/baole-ui/notification.d.ts +16 -0
  54. package/dist/components/baole-ui/pagination.d.ts +28 -0
  55. package/dist/components/baole-ui/popover.d.ts +7 -0
  56. package/dist/components/baole-ui/progress.d.ts +9 -0
  57. package/dist/components/baole-ui/qrcode.d.ts +18 -0
  58. package/dist/components/baole-ui/radio-group.d.ts +9 -0
  59. package/dist/components/baole-ui/rating.d.ts +13 -0
  60. package/dist/components/baole-ui/resizable.d.ts +23 -0
  61. package/dist/components/baole-ui/result.d.ts +11 -0
  62. package/dist/components/baole-ui/scroll-area.d.ts +5 -0
  63. package/dist/components/baole-ui/segmented.d.ts +19 -0
  64. package/dist/components/baole-ui/select.d.ts +13 -0
  65. package/dist/components/baole-ui/separator.d.ts +8 -0
  66. package/dist/components/baole-ui/sheet.d.ts +22 -0
  67. package/dist/components/baole-ui/sidebar.d.ts +23 -0
  68. package/dist/components/baole-ui/skeleton.d.ts +10 -0
  69. package/dist/components/baole-ui/slider.d.ts +8 -0
  70. package/dist/components/baole-ui/space.d.ts +13 -0
  71. package/dist/components/baole-ui/spinner.d.ts +10 -0
  72. package/dist/components/baole-ui/stack.d.ts +13 -0
  73. package/dist/components/baole-ui/statistic.d.ts +13 -0
  74. package/dist/components/baole-ui/stepper.d.ts +15 -0
  75. package/dist/components/baole-ui/steps.d.ts +21 -0
  76. package/dist/components/baole-ui/switch.d.ts +8 -0
  77. package/dist/components/baole-ui/table.d.ts +10 -0
  78. package/dist/components/baole-ui/tabs.d.ts +7 -0
  79. package/dist/components/baole-ui/tag.d.ts +12 -0
  80. package/dist/components/baole-ui/textarea.d.ts +9 -0
  81. package/dist/components/baole-ui/theme-provider.d.ts +14 -0
  82. package/dist/components/baole-ui/time-picker.d.ts +15 -0
  83. package/dist/components/baole-ui/timeline.d.ts +15 -0
  84. package/dist/components/baole-ui/toaster.d.ts +4 -0
  85. package/dist/components/baole-ui/toggle-group.d.ts +12 -0
  86. package/dist/components/baole-ui/toggle.d.ts +11 -0
  87. package/dist/components/baole-ui/tooltip.d.ts +7 -0
  88. package/dist/components/baole-ui/tour.d.ts +19 -0
  89. package/dist/components/baole-ui/transfer.d.ts +19 -0
  90. package/dist/components/baole-ui/tree-select.d.ts +20 -0
  91. package/dist/components/baole-ui/tree.d.ts +21 -0
  92. package/dist/components/baole-ui/typography.d.ts +20 -0
  93. package/dist/components/baole-ui/upload.d.ts +26 -0
  94. package/dist/components/baole-ui/utils.d.ts +1 -0
  95. package/dist/components/baole-ui/watermark.d.ts +21 -0
  96. package/dist/index.cjs +7 -0
  97. package/dist/index.cjs.map +1 -0
  98. package/dist/index.d.ts +2 -0
  99. package/dist/index.js +10747 -0
  100. package/dist/index.js.map +1 -0
  101. package/dist/style.css +1 -0
  102. package/package.json +264 -0
  103. package/tailwind-preset.ts +105 -0
package/README.md ADDED
@@ -0,0 +1,295 @@
1
+ # @baolq/ui — React Component Library
2
+
3
+ > A rich, dark-gradient React component library for the baole.space ecosystem
4
+
5
+ <div align="center">
6
+
7
+ ![Version](https://img.shields.io/badge/version-0.1.0-purple)
8
+ ![React](https://img.shields.io/badge/React-19+-blue)
9
+ ![TypeScript](https://img.shields.io/badge/TypeScript-5+-blue)
10
+ ![Tailwind](https://img.shields.io/badge/Tailwind-v4-cyan)
11
+ ![License](https://img.shields.io/badge/license-MIT-green)
12
+
13
+ </div>
14
+
15
+ ---
16
+
17
+ ## ✨ Features
18
+
19
+ - 🎨 **45+ Components** — Comprehensive library with Ant Design-level prop richness
20
+ - 🌙 **Dark-First Design** — Optimized for dark mode with gradient accents
21
+ - 🔮 **Glassmorphism** — Frosted glass surfaces with backdrop blur
22
+ - ⚡ **Fully Typed** — TypeScript strict mode, zero `any` types
23
+ - 🎯 **Radix UI Primitives** — Accessible components built on Radix
24
+ - 🎭 **CVA Variants** — Flexible styling with class-variance-authority
25
+ - 🎪 **Motion Ready** — Animation support via motion/react
26
+ - 📦 **Tree-shakeable** — Only import what you need
27
+
28
+ ---
29
+
30
+ ## 🚀 Quick Start
31
+
32
+ ### Installation
33
+
34
+ ```bash
35
+ npm install @baolq/ui lucide-react
36
+ # or
37
+ pnpm add @baolq/ui lucide-react
38
+ # or
39
+ yarn add @baolq/ui lucide-react
40
+ ```
41
+
42
+ ### Setup
43
+
44
+ Import the stylesheet in your app entry point:
45
+
46
+ ```tsx
47
+ // src/main.tsx or src/app/App.tsx
48
+ import '@baolq/ui/style.css'
49
+ ```
50
+
51
+ ### Usage
52
+
53
+ ```tsx
54
+ import { Button, Card, CardHeader, CardTitle, CardContent, Input } from '@baolq/ui'
55
+ import { Plus } from 'lucide-react'
56
+
57
+ function App() {
58
+ return (
59
+ <Card variant="glass">
60
+ <CardHeader>
61
+ <CardTitle>Welcome to @baolq/ui</CardTitle>
62
+ </CardHeader>
63
+ <CardContent className="space-y-4">
64
+ <Input placeholder="Enter your name" />
65
+ <Button variant="gradient" leftIcon={<Plus size={16} />}>
66
+ Get Started
67
+ </Button>
68
+ </CardContent>
69
+ </Card>
70
+ )
71
+ }
72
+ ```
73
+
74
+ ---
75
+
76
+ ## 📚 Documentation
77
+
78
+ Comprehensive guidelines are available in the `/guidelines/baole-ui/` directory:
79
+
80
+ ### Getting Started
81
+
82
+ 1. **[Guidelines.md](./guidelines/baole-ui/Guidelines.md)** — Master index and AI workflow
83
+ 2. **[overview-components.md](./guidelines/baole-ui/overview-components.md)** — Complete component reference
84
+ 3. **[overview-icons.md](./guidelines/baole-ui/overview-icons.md)** — Icon system documentation
85
+
86
+ ### Design Tokens
87
+
88
+ - **[colors.md](./guidelines/baole-ui/design-tokens/colors.md)** — Color system and usage
89
+ - **typography.md** — Font scales and text patterns *(coming soon)*
90
+ - **spacing.md** — Layout and spacing conventions *(coming soon)*
91
+
92
+ ### Component Guides
93
+
94
+ Detailed documentation for each component:
95
+
96
+ - **[button.md](./guidelines/baole-ui/components/button.md)** — Button variants, sizes, and states
97
+ - **[card.md](./guidelines/baole-ui/components/card.md)** — Card compositions and patterns
98
+ - **[input.md](./guidelines/baole-ui/components/input.md)** — Form inputs with validation *(coming soon)*
99
+ - ...and 40+ more component guides
100
+
101
+ ---
102
+
103
+ ## 🎨 Component Categories
104
+
105
+ ### Inputs & Forms
106
+ Button, Input, Textarea, Select, Checkbox, RadioGroup, Switch, Slider, Form, Label, Toggle, ToggleGroup, InputOTP
107
+
108
+ ### Overlays
109
+ Dialog, AlertDialog, Drawer, Sheet, Popover, HoverCard, Tooltip, DropdownMenu, ContextMenu
110
+
111
+ ### Feedback
112
+ Alert, Toast (Sonner), Progress, Skeleton
113
+
114
+ ### Navigation
115
+ Tabs, Breadcrumb, NavigationMenu, Menubar, Pagination, Sidebar
116
+
117
+ ### Data Display
118
+ Table, Accordion, Collapsible, Calendar, Carousel, Chart, Command
119
+
120
+ ### Layout
121
+ Card, Separator, AspectRatio, ScrollArea, Resizable
122
+
123
+ ### Utility
124
+ Avatar, Badge
125
+
126
+ ---
127
+
128
+ ## 🎯 Design Philosophy
129
+
130
+ @baolq/ui embodies the creative energy of a developer, photographer, and gamer:
131
+
132
+ ### Visual Language
133
+
134
+ - **Dark backgrounds** — Base: `#0f0c29` with gradient overlays
135
+ - **Glassmorphism** — Frosted glass surfaces with `backdrop-blur`
136
+ - **Gradient accents** — Purple → Fuchsia → Pink spectrum
137
+ - **Subtle glows** — Color-matched shadows for depth
138
+ - **White text** — High contrast on dark backgrounds
139
+ - **Minimal borders** — `rgba(255,255,255,0.1)` barely-visible dividers
140
+
141
+ ### Philosophy Quote
142
+
143
+ > _"In code we trust, in games we clutch, in photos we overexpose (+0.3 EV)"_
144
+ > — Bao LE, baked into every pixel of this component library
145
+
146
+ ---
147
+
148
+ ## 🛠️ Tech Stack
149
+
150
+ | Technology | Version | Purpose |
151
+ |------------|---------|---------|
152
+ | **React** | 19+ | UI framework |
153
+ | **TypeScript** | 5+ | Type safety (strict mode) |
154
+ | **Tailwind CSS** | v4 | Utility-first styling |
155
+ | **Radix UI** | Latest | Accessible primitives |
156
+ | **CVA** | Latest | Variant management |
157
+ | **Lucide React** | Latest | Icon system |
158
+ | **Motion** | Latest | Animations (optional) |
159
+ | **react-hook-form** | Latest | Form handling |
160
+ | **sonner** | Latest | Toast notifications |
161
+
162
+ ---
163
+
164
+ ## 📦 Project Structure
165
+
166
+ ```
167
+ @baolq/ui/
168
+ ├── src/
169
+ │ ├── components/
170
+ │ │ ├── button.tsx
171
+ │ │ ├── card.tsx
172
+ │ │ ├── input.tsx
173
+ │ │ └── ... (45+ components)
174
+ │ ├── lib/
175
+ │ │ └── utils.ts # cn() helper
176
+ │ ├── hooks/
177
+ │ │ ├── use-mobile.ts
178
+ │ │ └── ...
179
+ │ ├── tokens/
180
+ │ │ └── index.css # Design tokens
181
+ │ ├── index.ts # Barrel export
182
+ │ └── index.css # Tailwind + utilities
183
+ ├── guidelines/
184
+ │ ├── Guidelines.md # Master documentation
185
+ │ ├── overview-components.md
186
+ │ ├── overview-icons.md
187
+ │ ├── design-tokens/
188
+ │ │ ├── colors.md
189
+ │ │ ├── typography.md
190
+ │ │ └── spacing.md
191
+ │ └── components/
192
+ │ ├── button.md
193
+ │ ├── card.md
194
+ │ └── ... (29+ guides)
195
+ ├── showcase/ # Demo application
196
+ ├── tailwind-preset.ts # Tailwind preset export
197
+ └── README.md
198
+ ```
199
+
200
+ ---
201
+
202
+ ## 🎮 Showcase
203
+
204
+ Run the showcase app to see all components in action:
205
+
206
+ ```bash
207
+ cd showcase
208
+ npm install
209
+ npm run dev
210
+ ```
211
+
212
+ Visit `http://localhost:5173` to explore:
213
+
214
+ - All 45+ components with live examples
215
+ - Multiple variants and states
216
+ - Interactive demos
217
+ - Code snippets
218
+
219
+ ---
220
+
221
+ ## 🤝 Contributing
222
+
223
+ Contributions are welcome! Please read the [Guidelines.md](./guidelines/baole-ui/Guidelines.md) first.
224
+
225
+ ### Development Setup
226
+
227
+ ```bash
228
+ # Clone the repository
229
+ git clone https://github.com/unique01082/baole-ui.git
230
+
231
+ # Install dependencies
232
+ npm install
233
+
234
+ # Build the library
235
+ npm run build
236
+
237
+ # Run showcase
238
+ cd showcase
239
+ npm install
240
+ npm run dev
241
+ ```
242
+
243
+ ---
244
+
245
+ ## 📄 License
246
+
247
+ MIT © Bao LE
248
+
249
+ ---
250
+
251
+ ## 🔗 Links
252
+
253
+ - **GitHub**: https://github.com/unique01082/baole-ui
254
+ - **Portfolio**: https://baole.space
255
+ - **NPM**: *(coming soon)*
256
+ - **Storybook**: *(coming soon)*
257
+
258
+ ---
259
+
260
+ ## 🙏 Acknowledgments
261
+
262
+ Built with inspiration from:
263
+
264
+ - **shadcn/ui** — Component architecture and patterns
265
+ - **Ant Design** — Prop richness and completeness
266
+ - **Radix UI** — Accessible primitives
267
+ - **Tailwind CSS** — Utility-first styling philosophy
268
+
269
+ ---
270
+
271
+ ## 📊 Component Checklist
272
+
273
+ **Implemented (Core):**
274
+ - ✅ Button (7 variants, 6 sizes, loading, icons)
275
+ - ✅ Card (4 variants, hoverable, composable)
276
+ - ✅ Badge (8 variants, removable, dots)
277
+ - ✅ Input (validation, icons, clearable)
278
+ - ✅ Separator (gradient, labels)
279
+ - ✅ Skeleton (animated, variants)
280
+
281
+ **In Progress:**
282
+ - 🚧 Dialog, Sheet, Drawer
283
+ - 🚧 Select, Checkbox, RadioGroup
284
+ - 🚧 Tabs, Accordion, Table
285
+ - 🚧 Form (react-hook-form integration)
286
+ - 🚧 Toast (Sonner wrapper)
287
+ - 🚧 And 35+ more...
288
+
289
+ ---
290
+
291
+ <div align="center">
292
+
293
+ **Made with 💜 for the baole.space ecosystem**
294
+
295
+ </div>
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
3
+ declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
4
+ declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ export interface AffixProps {
3
+ offsetTop?: number;
4
+ offsetBottom?: number;
5
+ target?: () => HTMLElement | Window;
6
+ onChange?: (affixed: boolean) => void;
7
+ className?: string;
8
+ children: React.ReactNode;
9
+ }
10
+ declare const Affix: React.ForwardRefExoticComponent<AffixProps & React.RefAttributes<HTMLDivElement>>;
11
+ export { Affix };
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
3
+ declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
4
+ declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
6
+ declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const AlertDialogHeader: {
9
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
10
+ displayName: string;
11
+ };
12
+ declare const AlertDialogFooter: {
13
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
17
+ declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
18
+ declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
19
+ declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
20
+ export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
@@ -0,0 +1,15 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const alertVariants: (props?: ({
4
+ variant?: "success" | "default" | "warning" | "info" | "error" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ export interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
7
+ title?: string;
8
+ icon?: React.ReactNode;
9
+ dismissible?: boolean;
10
+ onDismiss?: () => void;
11
+ }
12
+ declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
13
+ declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
14
+ declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
15
+ export { Alert, AlertTitle, AlertDescription };
@@ -0,0 +1,17 @@
1
+ import * as React from "react";
2
+ export interface AnchorLink {
3
+ key: string;
4
+ href: string;
5
+ title: string;
6
+ children?: AnchorLink[];
7
+ }
8
+ export interface AnchorProps {
9
+ links: AnchorLink[];
10
+ activeLink?: string;
11
+ onChange?: (currentActiveLink: string) => void;
12
+ offsetTop?: number;
13
+ targetOffset?: number;
14
+ className?: string;
15
+ }
16
+ declare const Anchor: React.ForwardRefExoticComponent<AnchorProps & React.RefAttributes<HTMLDivElement>>;
17
+ export { Anchor };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
3
+ declare const AspectRatio: React.ForwardRefExoticComponent<AspectRatioPrimitive.AspectRatioProps & React.RefAttributes<HTMLDivElement>>;
4
+ export { AspectRatio };
@@ -0,0 +1,17 @@
1
+ import * as React from "react";
2
+ export interface AutoCompleteOption {
3
+ value: string;
4
+ label: string;
5
+ }
6
+ export interface AutoCompleteProps {
7
+ options: AutoCompleteOption[];
8
+ value?: string;
9
+ defaultValue?: string;
10
+ onChange?: (value: string) => void;
11
+ onSelect?: (value: string, option: AutoCompleteOption) => void;
12
+ placeholder?: string;
13
+ disabled?: boolean;
14
+ className?: string;
15
+ }
16
+ declare const AutoComplete: React.ForwardRefExoticComponent<AutoCompleteProps & React.RefAttributes<HTMLInputElement>>;
17
+ export { AutoComplete };
@@ -0,0 +1,13 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ import * as AvatarPrimitive from "@radix-ui/react-avatar";
4
+ declare const avatarVariants: (props?: ({
5
+ size?: "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export interface AvatarProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof avatarVariants> {
8
+ src?: string;
9
+ alt?: string;
10
+ fallback?: string;
11
+ }
12
+ declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
13
+ export { Avatar };
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ export interface BackTopProps {
3
+ visibilityHeight?: number;
4
+ target?: () => HTMLElement | Window;
5
+ onClick?: () => void;
6
+ className?: string;
7
+ }
8
+ declare const BackTop: React.ForwardRefExoticComponent<BackTopProps & React.RefAttributes<HTMLDivElement>>;
9
+ export { BackTop };
@@ -0,0 +1,14 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const badgeVariants: (props?: ({
4
+ variant?: "gradient" | "outline" | "destructive" | "success" | "secondary" | "default" | "warning" | "info" | null | undefined;
5
+ size?: "sm" | "md" | "lg" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
8
+ dot?: boolean;
9
+ removable?: boolean;
10
+ onRemove?: () => void;
11
+ asChild?: boolean;
12
+ }
13
+ declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
14
+ export { Badge, badgeVariants };
@@ -0,0 +1,19 @@
1
+ import * as React from "react";
2
+ declare const Breadcrumb: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
3
+ separator?: React.ReactNode;
4
+ } & React.RefAttributes<HTMLElement>>;
5
+ declare const BreadcrumbList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
6
+ declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
7
+ declare const BreadcrumbLink: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
8
+ asChild?: boolean;
9
+ } & React.RefAttributes<HTMLAnchorElement>>;
10
+ declare const BreadcrumbPage: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
11
+ declare const BreadcrumbSeparator: {
12
+ ({ children, className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
13
+ displayName: string;
14
+ };
15
+ declare const BreadcrumbEllipsis: {
16
+ ({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
17
+ displayName: string;
18
+ };
19
+ export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
@@ -0,0 +1,15 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "gradient" | "outline" | "ghost" | "destructive" | "success" | "secondary" | "link" | null | undefined;
5
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | "icon" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
+ asChild?: boolean;
9
+ loading?: boolean;
10
+ leftIcon?: React.ReactNode;
11
+ rightIcon?: React.ReactNode;
12
+ fullWidth?: boolean;
13
+ }
14
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
15
+ export { Button, buttonVariants };
@@ -0,0 +1,8 @@
1
+ import { DayPicker } from 'react-day-picker';
2
+ import * as React from "react";
3
+ export type CalendarProps = React.ComponentProps<typeof DayPicker>;
4
+ declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
5
+ declare namespace Calendar {
6
+ var displayName: string;
7
+ }
8
+ export { Calendar };
@@ -0,0 +1,19 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const cardVariants: (props?: ({
4
+ variant?: "gradient" | "glass" | "solid" | "outlined" | null | undefined;
5
+ padding?: "sm" | "md" | "lg" | "none" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
8
+ hoverable?: boolean;
9
+ bordered?: boolean;
10
+ accentColor?: string;
11
+ }
12
+ declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
13
+ declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
14
+ declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
15
+ declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
16
+ declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
17
+ declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
18
+ declare const CardAction: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
19
+ export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, CardAction, };
@@ -0,0 +1,18 @@
1
+ import { default as useEmblaCarousel, UseEmblaCarouselType } from 'embla-carousel-react';
2
+ import * as React from "react";
3
+ type CarouselApi = UseEmblaCarouselType[1];
4
+ type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
5
+ type CarouselOptions = UseCarouselParameters[0];
6
+ type CarouselPlugin = UseCarouselParameters[1];
7
+ type CarouselProps = {
8
+ opts?: CarouselOptions;
9
+ plugins?: CarouselPlugin;
10
+ orientation?: "horizontal" | "vertical";
11
+ setApi?: (api: CarouselApi) => void;
12
+ };
13
+ declare const Carousel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & CarouselProps & React.RefAttributes<HTMLDivElement>>;
14
+ declare const CarouselContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
15
+ declare const CarouselItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
16
+ declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<import('./button').ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
17
+ declare const CarouselNext: React.ForwardRefExoticComponent<Omit<import('./button').ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
18
+ export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
@@ -0,0 +1,19 @@
1
+ import * as React from "react";
2
+ export interface CascaderOption {
3
+ value: string;
4
+ label: string;
5
+ children?: CascaderOption[];
6
+ disabled?: boolean;
7
+ }
8
+ export interface CascaderProps {
9
+ options: CascaderOption[];
10
+ value?: string[];
11
+ defaultValue?: string[];
12
+ onChange?: (value: string[], selectedOptions: CascaderOption[]) => void;
13
+ placeholder?: string;
14
+ disabled?: boolean;
15
+ changeOnSelect?: boolean;
16
+ className?: string;
17
+ }
18
+ declare const Cascader: React.ForwardRefExoticComponent<CascaderProps & React.RefAttributes<HTMLDivElement>>;
19
+ export { Cascader };
@@ -0,0 +1,59 @@
1
+ import { TooltipProps } from 'recharts';
2
+ import * as React from "react";
3
+ declare const CustomTooltip: React.FC<TooltipProps<any, any>>;
4
+ export interface LineChartProps {
5
+ data: any[];
6
+ xKey: string;
7
+ lines: {
8
+ dataKey: string;
9
+ name?: string;
10
+ color?: string;
11
+ strokeWidth?: number;
12
+ }[];
13
+ height?: number;
14
+ showGrid?: boolean;
15
+ showLegend?: boolean;
16
+ className?: string;
17
+ }
18
+ export declare const LineChart: React.FC<LineChartProps>;
19
+ export interface BarChartProps {
20
+ data: any[];
21
+ xKey: string;
22
+ bars: {
23
+ dataKey: string;
24
+ name?: string;
25
+ color?: string;
26
+ }[];
27
+ height?: number;
28
+ showGrid?: boolean;
29
+ showLegend?: boolean;
30
+ className?: string;
31
+ }
32
+ export declare const BarChart: React.FC<BarChartProps>;
33
+ export interface AreaChartProps {
34
+ data: any[];
35
+ xKey: string;
36
+ areas: {
37
+ dataKey: string;
38
+ name?: string;
39
+ color?: string;
40
+ }[];
41
+ height?: number;
42
+ showGrid?: boolean;
43
+ showLegend?: boolean;
44
+ className?: string;
45
+ }
46
+ export declare const AreaChart: React.FC<AreaChartProps>;
47
+ export interface PieChartProps {
48
+ data: {
49
+ name: string;
50
+ value: number;
51
+ color?: string;
52
+ }[];
53
+ height?: number;
54
+ innerRadius?: number;
55
+ showLegend?: boolean;
56
+ className?: string;
57
+ }
58
+ export declare const PieChart: React.FC<PieChartProps>;
59
+ export { CustomTooltip as ChartTooltip };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
3
+ export interface CheckboxProps extends Omit<React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, "asChild"> {
4
+ label?: string;
5
+ description?: string;
6
+ }
7
+ declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
8
+ export { Checkbox };
@@ -0,0 +1,13 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const chipVariants: (props?: ({
4
+ variant?: "gradient" | "default" | "solid" | null | undefined;
5
+ clickable?: boolean | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export interface ChipProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof chipVariants> {
8
+ leftIcon?: React.ReactNode;
9
+ rightIcon?: React.ReactNode;
10
+ onRemove?: () => void;
11
+ }
12
+ declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLDivElement>>;
13
+ export { Chip, chipVariants };
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ export interface CodeProps extends React.HTMLAttributes<HTMLElement> {
3
+ block?: boolean;
4
+ language?: string;
5
+ }
6
+ declare const Code: React.ForwardRefExoticComponent<CodeProps & React.RefAttributes<HTMLElement>>;
7
+ export { Code };
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
3
+ declare const Collapsible: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
4
+ declare const CollapsibleTrigger: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const CollapsibleContent: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>>;
6
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent };
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ export interface ColorPickerProps {
3
+ value?: string;
4
+ onChange?: (color: string) => void;
5
+ presetColors?: string[];
6
+ showInput?: boolean;
7
+ disabled?: boolean;
8
+ className?: string;
9
+ }
10
+ declare const ColorPicker: React.ForwardRefExoticComponent<ColorPickerProps & React.RefAttributes<HTMLDivElement>>;
11
+ export { ColorPicker };