@esmate/shadcn 0.0.5 → 1.0.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 +230 -0
  2. package/package.json +18 -9
  3. package/dist/hooks/use-mobile.d.ts +0 -1
  4. package/dist/hooks/use-mobile.js +0 -16
  5. package/dist/hooks/use-zod-form.d.ts +0 -8
  6. package/dist/hooks/use-zod-form.js +0 -10
  7. package/dist/lib/hook-form/react.d.ts +0 -1
  8. package/dist/lib/hook-form/react.js +0 -1
  9. package/dist/lib/hook-form/resolvers.d.ts +0 -1
  10. package/dist/lib/hook-form/resolvers.js +0 -1
  11. package/dist/lib/utils.d.ts +0 -2
  12. package/dist/lib/utils.js +0 -6
  13. package/dist/lib/zod.d.ts +0 -1
  14. package/dist/lib/zod.js +0 -1
  15. package/dist/styles/minimal.css +0 -1
  16. package/dist/styles/new-york.css +0 -122
  17. package/dist/ui/accordion.d.ts +0 -7
  18. package/dist/ui/accordion.js +0 -39
  19. package/dist/ui/alert-dialog.d.ts +0 -14
  20. package/dist/ui/alert-dialog.js +0 -80
  21. package/dist/ui/alert.d.ts +0 -9
  22. package/dist/ui/alert.js +0 -39
  23. package/dist/ui/aspect-ratio.js +0 -9
  24. package/dist/ui/avatar.d.ts +0 -6
  25. package/dist/ui/avatar.js +0 -26
  26. package/dist/ui/badge.d.ts +0 -9
  27. package/dist/ui/badge.js +0 -28
  28. package/dist/ui/breadcrumb.d.ts +0 -11
  29. package/dist/ui/breadcrumb.js +0 -66
  30. package/dist/ui/button.d.ts +0 -10
  31. package/dist/ui/button.js +0 -39
  32. package/dist/ui/calendar.d.ts +0 -4
  33. package/dist/ui/calendar.js +0 -53
  34. package/dist/ui/card.d.ts +0 -9
  35. package/dist/ui/card.js +0 -52
  36. package/dist/ui/carousel.d.ts +0 -19
  37. package/dist/ui/carousel.js +0 -135
  38. package/dist/ui/chart.d.ts +0 -40
  39. package/dist/ui/chart.js +0 -138
  40. package/dist/ui/checkbox.d.ts +0 -4
  41. package/dist/ui/checkbox.js +0 -18
  42. package/dist/ui/collapsible.js +0 -21
  43. package/dist/ui/command.d.ts +0 -16
  44. package/dist/ui/command.js +0 -77
  45. package/dist/ui/context-menu.d.ts +0 -25
  46. package/dist/ui/context-menu.js +0 -120
  47. package/dist/ui/dialog.d.ts +0 -13
  48. package/dist/ui/dialog.js +0 -78
  49. package/dist/ui/drawer.d.ts +0 -13
  50. package/dist/ui/drawer.js +0 -75
  51. package/dist/ui/dropdown-menu.d.ts +0 -25
  52. package/dist/ui/dropdown-menu.js +0 -121
  53. package/dist/ui/form.js +0 -86
  54. package/dist/ui/hover-card.d.ts +0 -6
  55. package/dist/ui/hover-card.js +0 -28
  56. package/dist/ui/input-otp.d.ts +0 -11
  57. package/dist/ui/input-otp.js +0 -42
  58. package/dist/ui/input.d.ts +0 -3
  59. package/dist/ui/input.js +0 -11
  60. package/dist/ui/label.d.ts +0 -4
  61. package/dist/ui/label.js +0 -12
  62. package/dist/ui/menubar.d.ts +0 -26
  63. package/dist/ui/menubar.js +0 -131
  64. package/dist/ui/navigation-menu.d.ts +0 -14
  65. package/dist/ui/navigation-menu.js +0 -71
  66. package/dist/ui/pagination.d.ts +0 -13
  67. package/dist/ui/pagination.js +0 -71
  68. package/dist/ui/popover.d.ts +0 -7
  69. package/dist/ui/popover.js +0 -32
  70. package/dist/ui/progress.d.ts +0 -4
  71. package/dist/ui/progress.js +0 -18
  72. package/dist/ui/radio-group.d.ts +0 -5
  73. package/dist/ui/radio-group.js +0 -25
  74. package/dist/ui/resizable.d.ts +0 -8
  75. package/dist/ui/resizable.js +0 -30
  76. package/dist/ui/scroll-area.d.ts +0 -5
  77. package/dist/ui/scroll-area.js +0 -26
  78. package/dist/ui/select.d.ts +0 -15
  79. package/dist/ui/select.js +0 -89
  80. package/dist/ui/separator.d.ts +0 -4
  81. package/dist/ui/separator.js +0 -14
  82. package/dist/ui/sheet.d.ts +0 -13
  83. package/dist/ui/sheet.js +0 -78
  84. package/dist/ui/sidebar.d.ts +0 -60
  85. package/dist/ui/sidebar.js +0 -368
  86. package/dist/ui/skeleton.js +0 -9
  87. package/dist/ui/slider.d.ts +0 -4
  88. package/dist/ui/slider.js +0 -37
  89. package/dist/ui/sonner.js +0 -17
  90. package/dist/ui/switch.d.ts +0 -4
  91. package/dist/ui/switch.js +0 -15
  92. package/dist/ui/table.d.ts +0 -10
  93. package/dist/ui/table.js +0 -63
  94. package/dist/ui/tabs.d.ts +0 -7
  95. package/dist/ui/tabs.js +0 -33
  96. package/dist/ui/textarea.d.ts +0 -3
  97. package/dist/ui/textarea.js +0 -10
  98. package/dist/ui/toggle-group.d.ts +0 -7
  99. package/dist/ui/toggle-group.js +0 -37
  100. package/dist/ui/toggle.d.ts +0 -9
  101. package/dist/ui/toggle.js +0 -34
  102. package/dist/ui/tooltip.d.ts +0 -7
  103. package/dist/ui/tooltip.js +0 -34
package/README.md CHANGED
@@ -1 +1,231 @@
1
1
  # @esmate/shadcn
2
+
3
+ Supercharge your UI development with Shadcn—components, hooks, and styles all in one package.
4
+
5
+ - **Zero config pain**: Works out of the box with Tailwind.
6
+ - **Pre-styled**: Comes with `base.css`, `new-york.css`, etc.
7
+ - **Complete UI**: Composable components, no boilerplate needed.
8
+ - **Smart hooks**: Built-in logic that saves you time.
9
+
10
+ ## Installation
11
+
12
+ Install the package that includes `shadcn@2.x.x`:
13
+
14
+ ```sh
15
+ npm install @esmate/shadcn tailwindcss
16
+ ```
17
+
18
+ or
19
+
20
+ ```sh
21
+ pnpm install @esmate/shadcn tailwindcss
22
+ ```
23
+
24
+ Import a style in your `./src/global.css`:
25
+
26
+ ```css
27
+ @import "tailwindcss";
28
+
29
+ @source "../node_modules/@esmate/shadcn";
30
+ @import "@esmate/shadcn/styles/new-york.css";
31
+ ```
32
+
33
+ Start using components:
34
+
35
+ ```tsx
36
+ import { Button } from "@esmate/shadcn/ui/button";
37
+
38
+ // ...use <Button> in your app!
39
+ ```
40
+
41
+ ## Usage
42
+
43
+ ### UI Components
44
+
45
+ All Shadcn [UI components](https://ui.shadcn.com/docs/components/) are available via `@esmate/shadcn/ui/*` imports.
46
+
47
+ ```typescript
48
+ import { Button } from "@esmate/shadcn/ui/button";
49
+
50
+ import { Card, CardContent } from "@esmate/shadcn/ui/card";
51
+ ```
52
+
53
+ ### Hooks
54
+
55
+ All Shadcn hooks are available via `@esmate/shadcn/hooks/*` imports.
56
+
57
+ ```typescript
58
+ import { useIsMobile } from "@esmate/shadcn/hooks/use-mobile";
59
+ ```
60
+
61
+ `@esmate/shadcn/hooks/*` also includes custom hooks, such as React Hook Form integrated with Zod support, like this:
62
+
63
+ ```typescript
64
+ import { z } from "@esmate/shadcn/zod";
65
+ import { useZodForm } from "@esmate/shadcn/hooks/use-zod-form";
66
+
67
+ const FormSchema = z.object({
68
+ email: z.string().email("Invalid email address"),
69
+ password: z.string().min(6, "Password must be at least 6 characters"),
70
+ });
71
+
72
+ export function SignIn() {
73
+ const form = useZodForm({
74
+ schema: FormSchema,
75
+ defaultValues: {
76
+ email: "",
77
+ password: "",
78
+ },
79
+ });
80
+
81
+ const onSubmit = form.handleSubmit(async ({ email, password }) => {
82
+ console.log({ email, password });
83
+ });
84
+
85
+ return (
86
+ <div>
87
+ <form onSubmit={onSubmit}>
88
+ <input type="email" {...form.register("email")} />
89
+ <input type="password" {...form.register("password")} />
90
+ <button type="submit">Sign In</button>
91
+ </form>
92
+ </div>
93
+ );
94
+ }
95
+ ```
96
+
97
+ ### Styles
98
+
99
+ All Shadcn default styles are available via `@esmate/shadcn/styles/*` imports.
100
+
101
+ ```css
102
+ @import "@esmate/shadcn/styles/new-york.css";
103
+ ```
104
+
105
+ If you want to create your own styles, the package includes a base style that's ready for customization.
106
+
107
+ ```css
108
+ @import "@esmate/shadcn/styles/base.css";
109
+
110
+ @custom-variant dark (&:is(.dark *));
111
+
112
+ :root {
113
+ --radius: 0.5rem;
114
+ --background: oklch(1 0 0);
115
+ --foreground: oklch(0.141 0.005 285.823);
116
+ --card: oklch(1 0 0);
117
+ --card-foreground: oklch(0.141 0.005 285.823);
118
+ --popover: oklch(1 0 0);
119
+ --popover-foreground: oklch(0.141 0.005 285.823);
120
+ --primary: oklch(0.645 0.246 16.439);
121
+ --primary-foreground: oklch(0.969 0.015 12.422);
122
+ --secondary: oklch(0.967 0.001 286.375);
123
+ --secondary-foreground: oklch(0.21 0.006 285.885);
124
+ --muted: oklch(0.967 0.001 286.375);
125
+ --muted-foreground: oklch(0.552 0.016 285.938);
126
+ --accent: oklch(0.967 0.001 286.375);
127
+ --accent-foreground: oklch(0.21 0.006 285.885);
128
+ --destructive: oklch(0.577 0.245 27.325);
129
+ --border: oklch(0.92 0.004 286.32);
130
+ --input: oklch(0.92 0.004 286.32);
131
+ --ring: oklch(0.645 0.246 16.439);
132
+ --chart-1: oklch(0.646 0.222 41.116);
133
+ --chart-2: oklch(0.6 0.118 184.704);
134
+ --chart-3: oklch(0.398 0.07 227.392);
135
+ --chart-4: oklch(0.828 0.189 84.429);
136
+ --chart-5: oklch(0.769 0.188 70.08);
137
+ --sidebar: oklch(0.985 0 0);
138
+ --sidebar-foreground: oklch(0.141 0.005 285.823);
139
+ --sidebar-primary: oklch(0.645 0.246 16.439);
140
+ --sidebar-primary-foreground: oklch(0.969 0.015 12.422);
141
+ --sidebar-accent: oklch(0.967 0.001 286.375);
142
+ --sidebar-accent-foreground: oklch(0.21 0.006 285.885);
143
+ --sidebar-border: oklch(0.92 0.004 286.32);
144
+ --sidebar-ring: oklch(0.645 0.246 16.439);
145
+ }
146
+
147
+ .dark {
148
+ --background: oklch(0.141 0.005 285.823);
149
+ --foreground: oklch(0.985 0 0);
150
+ --card: oklch(0.21 0.006 285.885);
151
+ --card-foreground: oklch(0.985 0 0);
152
+ --popover: oklch(0.21 0.006 285.885);
153
+ --popover-foreground: oklch(0.985 0 0);
154
+ --primary: oklch(0.645 0.246 16.439);
155
+ --primary-foreground: oklch(0.969 0.015 12.422);
156
+ --secondary: oklch(0.274 0.006 286.033);
157
+ --secondary-foreground: oklch(0.985 0 0);
158
+ --muted: oklch(0.274 0.006 286.033);
159
+ --muted-foreground: oklch(0.705 0.015 286.067);
160
+ --accent: oklch(0.274 0.006 286.033);
161
+ --accent-foreground: oklch(0.985 0 0);
162
+ --destructive: oklch(0.704 0.191 22.216);
163
+ --border: oklch(1 0 0 / 10%);
164
+ --input: oklch(1 0 0 / 15%);
165
+ --ring: oklch(0.645 0.246 16.439);
166
+ --chart-1: oklch(0.488 0.243 264.376);
167
+ --chart-2: oklch(0.696 0.17 162.48);
168
+ --chart-3: oklch(0.769 0.188 70.08);
169
+ --chart-4: oklch(0.627 0.265 303.9);
170
+ --chart-5: oklch(0.645 0.246 16.439);
171
+ --sidebar: oklch(0.21 0.006 285.885);
172
+ --sidebar-foreground: oklch(0.985 0 0);
173
+ --sidebar-primary: oklch(0.645 0.246 16.439);
174
+ --sidebar-primary-foreground: oklch(0.969 0.015 12.422);
175
+ --sidebar-accent: oklch(0.274 0.006 286.033);
176
+ --sidebar-accent-foreground: oklch(0.985 0 0);
177
+ --sidebar-border: oklch(1 0 0 / 10%);
178
+ --sidebar-ring: oklch(0.645 0.246 16.439);
179
+ }
180
+
181
+ @theme inline {
182
+ --color-background: var(--background);
183
+ --color-foreground: var(--foreground);
184
+ --color-card: var(--card);
185
+ --color-card-foreground: var(--card-foreground);
186
+ --color-popover: var(--popover);
187
+ --color-popover-foreground: var(--popover-foreground);
188
+ --color-primary: var(--primary);
189
+ --color-primary-foreground: var(--primary-foreground);
190
+ --color-secondary: var(--secondary);
191
+ --color-secondary-foreground: var(--secondary-foreground);
192
+ --color-muted: var(--muted);
193
+ --color-muted-foreground: var(--muted-foreground);
194
+ --color-accent: var(--accent);
195
+ --color-accent-foreground: var(--accent-foreground);
196
+ --color-destructive: var(--destructive);
197
+ --color-destructive-foreground: var(--destructive-foreground);
198
+ --color-border: var(--border);
199
+ --color-input: var(--input);
200
+ --color-ring: var(--ring);
201
+ --color-chart-1: var(--chart-1);
202
+ --color-chart-2: var(--chart-2);
203
+ --color-chart-3: var(--chart-3);
204
+ --color-chart-4: var(--chart-4);
205
+ --color-chart-5: var(--chart-5);
206
+ --radius-sm: calc(var(--radius) - 4px);
207
+ --radius-md: calc(var(--radius) - 2px);
208
+ --radius-lg: var(--radius);
209
+ --radius-xl: calc(var(--radius) + 4px);
210
+ --color-sidebar: var(--sidebar);
211
+ --color-sidebar-foreground: var(--sidebar-foreground);
212
+ --color-sidebar-primary: var(--sidebar-primary);
213
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
214
+ --color-sidebar-accent: var(--sidebar-accent);
215
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
216
+ --color-sidebar-border: var(--sidebar-border);
217
+ --color-sidebar-ring: var(--sidebar-ring);
218
+ }
219
+
220
+ @layer base {
221
+ * {
222
+ @apply border-border outline-ring/50;
223
+ }
224
+ body {
225
+ @apply bg-background text-foreground;
226
+ }
227
+ }
228
+ ```
229
+
230
+ To create themes, check out [Shadcn Themes](https://ui.shadcn.com/themes) or [Tweakcn Themes](https://tweakcn.com/) for
231
+ easy theme generation.
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@esmate/shadcn",
3
- "version": "0.0.5",
3
+ "description": "Shadcn components, hooks, and styles in one package.",
4
+ "version": "1.0.0",
4
5
  "license": "MIT",
5
6
  "type": "module",
6
7
  "repository": {
@@ -24,11 +25,6 @@
24
25
  "types": "./dist/lib/*.d.ts"
25
26
  }
26
27
  },
27
- "scripts": {
28
- "build": "rslib build",
29
- "dev": "rslib build --watch",
30
- "shadcn": "tsx shadcn.ts"
31
- },
32
28
  "dependencies": {
33
29
  "@hookform/resolvers": "^5.0.1",
34
30
  "@radix-ui/react-accordion": "^1.2.11",
@@ -87,7 +83,20 @@
87
83
  "files": [
88
84
  "dist"
89
85
  ],
90
- "publishConfig": {
91
- "access": "public"
86
+ "keywords": [
87
+ "esmate",
88
+ "shadcn",
89
+ "components",
90
+ "hooks",
91
+ "styles",
92
+ "ui",
93
+ "react",
94
+ "tailwindcss",
95
+ "typescript"
96
+ ],
97
+ "scripts": {
98
+ "build": "rslib build",
99
+ "dev": "rslib build --watch",
100
+ "shadcn": "tsx shadcn.ts"
92
101
  }
93
- }
102
+ }
@@ -1 +0,0 @@
1
- export declare function useIsMobile(): boolean;
@@ -1,16 +0,0 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
2
- const MOBILE_BREAKPOINT = 768;
3
- function useIsMobile() {
4
- const [isMobile, setIsMobile] = __WEBPACK_EXTERNAL_MODULE_react__.useState(void 0);
5
- __WEBPACK_EXTERNAL_MODULE_react__.useEffect(()=>{
6
- const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
7
- const onChange = ()=>{
8
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
9
- };
10
- mql.addEventListener("change", onChange);
11
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
12
- return ()=>mql.removeEventListener("change", onChange);
13
- }, []);
14
- return !!isMobile;
15
- }
16
- export { useIsMobile };
@@ -1,8 +0,0 @@
1
- import { type UseFormProps } from "react-hook-form";
2
- import z, { ZodSchema } from "zod";
3
- export type ZodFormValues<S extends ZodSchema> = z.infer<S>;
4
- interface Props<S extends ZodSchema> extends Omit<UseFormProps<ZodFormValues<S>>, "resolver"> {
5
- schema: S;
6
- }
7
- export declare function useZodForm<S extends ZodSchema>(props: Props<S>): import("react-hook-form").UseFormReturn<ZodFormValues<S>, any, ZodFormValues<S>>;
8
- export {};
@@ -1,10 +0,0 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE_react_hook_form_05a66946__ from "react-hook-form";
2
- import * as __WEBPACK_EXTERNAL_MODULE__hookform_resolvers_zod_9ebfe08b__ from "@hookform/resolvers/zod";
3
- function useZodForm(props) {
4
- const form = (0, __WEBPACK_EXTERNAL_MODULE_react_hook_form_05a66946__.useForm)({
5
- ...props,
6
- resolver: (0, __WEBPACK_EXTERNAL_MODULE__hookform_resolvers_zod_9ebfe08b__.zodResolver)(props.schema)
7
- });
8
- return form;
9
- }
10
- export { useZodForm };
@@ -1 +0,0 @@
1
- export * from "react-hook-form";
@@ -1 +0,0 @@
1
- export * from "react-hook-form";
@@ -1 +0,0 @@
1
- export * from "@hookform/resolvers";
@@ -1 +0,0 @@
1
- export * from "@hookform/resolvers";
@@ -1,2 +0,0 @@
1
- import { type ClassValue } from "clsx";
2
- export declare function cn(...inputs: ClassValue[]): string;
package/dist/lib/utils.js DELETED
@@ -1,6 +0,0 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE_clsx__ from "clsx";
2
- import * as __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__ from "tailwind-merge";
3
- function cn(...inputs) {
4
- return (0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)((0, __WEBPACK_EXTERNAL_MODULE_clsx__.clsx)(inputs));
5
- }
6
- export { cn };
package/dist/lib/zod.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from "zod";
package/dist/lib/zod.js DELETED
@@ -1 +0,0 @@
1
- export * from "zod";
@@ -1 +0,0 @@
1
- @import "tw-animate-css";
@@ -1,122 +0,0 @@
1
- @import "./minimal.css";
2
-
3
- @custom-variant dark (&:is(.dark *));
4
-
5
- :root {
6
- --background: oklch(1 0 0);
7
- --foreground: oklch(0.145 0 0);
8
- --card: oklch(1 0 0);
9
- --card-foreground: oklch(0.145 0 0);
10
- --popover: oklch(1 0 0);
11
- --popover-foreground: oklch(0.145 0 0);
12
- --primary: oklch(0.205 0 0);
13
- --primary-foreground: oklch(0.985 0 0);
14
- --secondary: oklch(0.97 0 0);
15
- --secondary-foreground: oklch(0.205 0 0);
16
- --muted: oklch(0.97 0 0);
17
- --muted-foreground: oklch(0.556 0 0);
18
- --accent: oklch(0.97 0 0);
19
- --accent-foreground: oklch(0.205 0 0);
20
- --destructive: oklch(0.577 0.245 27.325);
21
- --destructive-foreground: oklch(0.577 0.245 27.325);
22
- --border: oklch(0.922 0 0);
23
- --input: oklch(0.922 0 0);
24
- --ring: oklch(0.708 0 0);
25
- --chart-1: oklch(0.646 0.222 41.116);
26
- --chart-2: oklch(0.6 0.118 184.704);
27
- --chart-3: oklch(0.398 0.07 227.392);
28
- --chart-4: oklch(0.828 0.189 84.429);
29
- --chart-5: oklch(0.769 0.188 70.08);
30
- --radius: 0.625rem;
31
- --sidebar: oklch(0.985 0 0);
32
- --sidebar-foreground: oklch(0.145 0 0);
33
- --sidebar-primary: oklch(0.205 0 0);
34
- --sidebar-primary-foreground: oklch(0.985 0 0);
35
- --sidebar-accent: oklch(0.97 0 0);
36
- --sidebar-accent-foreground: oklch(0.205 0 0);
37
- --sidebar-border: oklch(0.922 0 0);
38
- --sidebar-ring: oklch(0.708 0 0);
39
- }
40
-
41
- .dark {
42
- --background: oklch(0.145 0 0);
43
- --foreground: oklch(0.985 0 0);
44
- --card: oklch(0.145 0 0);
45
- --card-foreground: oklch(0.985 0 0);
46
- --popover: oklch(0.145 0 0);
47
- --popover-foreground: oklch(0.985 0 0);
48
- --primary: oklch(0.985 0 0);
49
- --primary-foreground: oklch(0.205 0 0);
50
- --secondary: oklch(0.269 0 0);
51
- --secondary-foreground: oklch(0.985 0 0);
52
- --muted: oklch(0.269 0 0);
53
- --muted-foreground: oklch(0.708 0 0);
54
- --accent: oklch(0.269 0 0);
55
- --accent-foreground: oklch(0.985 0 0);
56
- --destructive: oklch(0.396 0.141 25.723);
57
- --destructive-foreground: oklch(0.637 0.237 25.331);
58
- --border: oklch(0.269 0 0);
59
- --input: oklch(0.269 0 0);
60
- --ring: oklch(0.439 0 0);
61
- --chart-1: oklch(0.488 0.243 264.376);
62
- --chart-2: oklch(0.696 0.17 162.48);
63
- --chart-3: oklch(0.769 0.188 70.08);
64
- --chart-4: oklch(0.627 0.265 303.9);
65
- --chart-5: oklch(0.645 0.246 16.439);
66
- --sidebar: oklch(0.205 0 0);
67
- --sidebar-foreground: oklch(0.985 0 0);
68
- --sidebar-primary: oklch(0.488 0.243 264.376);
69
- --sidebar-primary-foreground: oklch(0.985 0 0);
70
- --sidebar-accent: oklch(0.269 0 0);
71
- --sidebar-accent-foreground: oklch(0.985 0 0);
72
- --sidebar-border: oklch(0.269 0 0);
73
- --sidebar-ring: oklch(0.439 0 0);
74
- }
75
-
76
- @theme inline {
77
- --color-background: var(--background);
78
- --color-foreground: var(--foreground);
79
- --color-card: var(--card);
80
- --color-card-foreground: var(--card-foreground);
81
- --color-popover: var(--popover);
82
- --color-popover-foreground: var(--popover-foreground);
83
- --color-primary: var(--primary);
84
- --color-primary-foreground: var(--primary-foreground);
85
- --color-secondary: var(--secondary);
86
- --color-secondary-foreground: var(--secondary-foreground);
87
- --color-muted: var(--muted);
88
- --color-muted-foreground: var(--muted-foreground);
89
- --color-accent: var(--accent);
90
- --color-accent-foreground: var(--accent-foreground);
91
- --color-destructive: var(--destructive);
92
- --color-destructive-foreground: var(--destructive-foreground);
93
- --color-border: var(--border);
94
- --color-input: var(--input);
95
- --color-ring: var(--ring);
96
- --color-chart-1: var(--chart-1);
97
- --color-chart-2: var(--chart-2);
98
- --color-chart-3: var(--chart-3);
99
- --color-chart-4: var(--chart-4);
100
- --color-chart-5: var(--chart-5);
101
- --radius-sm: calc(var(--radius) - 4px);
102
- --radius-md: calc(var(--radius) - 2px);
103
- --radius-lg: var(--radius);
104
- --radius-xl: calc(var(--radius) + 4px);
105
- --color-sidebar: var(--sidebar);
106
- --color-sidebar-foreground: var(--sidebar-foreground);
107
- --color-sidebar-primary: var(--sidebar-primary);
108
- --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
109
- --color-sidebar-accent: var(--sidebar-accent);
110
- --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
111
- --color-sidebar-border: var(--sidebar-border);
112
- --color-sidebar-ring: var(--sidebar-ring);
113
- }
114
-
115
- @layer base {
116
- * {
117
- @apply border-border outline-ring/50;
118
- }
119
- body {
120
- @apply bg-background text-foreground;
121
- }
122
- }
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- import * as AccordionPrimitive from "@radix-ui/react-accordion";
3
- declare function Accordion({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>): JSX.Element;
4
- declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): JSX.Element;
5
- declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): JSX.Element;
6
- declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): JSX.Element;
7
- export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -1,39 +0,0 @@
1
- "use client"
2
- import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
3
- import * as __WEBPACK_EXTERNAL_MODULE__radix_ui_react_accordion_496f1025__ from "@radix-ui/react-accordion";
4
- import * as __WEBPACK_EXTERNAL_MODULE_lucide_react_f128bbbb__ from "lucide-react";
5
- import * as __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__ from "../lib/utils.js";
6
- function Accordion({ ...props }) {
7
- return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__radix_ui_react_accordion_496f1025__.Root, {
8
- "data-slot": "accordion",
9
- ...props
10
- });
11
- }
12
- function AccordionItem({ className, ...props }) {
13
- return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__radix_ui_react_accordion_496f1025__.Item, {
14
- "data-slot": "accordion-item",
15
- className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("border-b last:border-b-0", className),
16
- ...props
17
- });
18
- }
19
- function AccordionTrigger({ className, children, ...props }) {
20
- return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__radix_ui_react_accordion_496f1025__.Header, {
21
- className: "flex"
22
- }, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__radix_ui_react_accordion_496f1025__.Trigger, {
23
- "data-slot": "accordion-trigger",
24
- className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180", className),
25
- ...props
26
- }, children, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE_lucide_react_f128bbbb__.ChevronDownIcon, {
27
- className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"
28
- })));
29
- }
30
- function AccordionContent({ className, children, ...props }) {
31
- return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__radix_ui_react_accordion_496f1025__.Content, {
32
- "data-slot": "accordion-content",
33
- className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
34
- ...props
35
- }, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("div", {
36
- className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("pt-0 pb-4", className)
37
- }, children));
38
- }
39
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
@@ -1,14 +0,0 @@
1
- import * as React from "react";
2
- import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
3
- declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): JSX.Element;
4
- declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): JSX.Element;
5
- declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): JSX.Element;
6
- declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): JSX.Element;
7
- declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): JSX.Element;
8
- declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
9
- declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
10
- declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): JSX.Element;
11
- declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): JSX.Element;
12
- declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): JSX.Element;
13
- declare function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): JSX.Element;
14
- export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
@@ -1,80 +0,0 @@
1
- "use client"
2
- import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
3
- import * as __WEBPACK_EXTERNAL_MODULE__radix_ui_react_alert_dialog_c2bcbc55__ from "@radix-ui/react-alert-dialog";
4
- import * as __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__ from "../lib/utils.js";
5
- import * as __WEBPACK_EXTERNAL_MODULE__button_js_821b8d9d__ from "./button.js";
6
- function AlertDialog({ ...props }) {
7
- return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__radix_ui_react_alert_dialog_c2bcbc55__.Root, {
8
- "data-slot": "alert-dialog",
9
- ...props
10
- });
11
- }
12
- function AlertDialogTrigger({ ...props }) {
13
- return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__radix_ui_react_alert_dialog_c2bcbc55__.Trigger, {
14
- "data-slot": "alert-dialog-trigger",
15
- ...props
16
- });
17
- }
18
- function AlertDialogPortal({ ...props }) {
19
- return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__radix_ui_react_alert_dialog_c2bcbc55__.Portal, {
20
- "data-slot": "alert-dialog-portal",
21
- ...props
22
- });
23
- }
24
- function AlertDialogOverlay({ className, ...props }) {
25
- return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__radix_ui_react_alert_dialog_c2bcbc55__.Overlay, {
26
- "data-slot": "alert-dialog-overlay",
27
- className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className),
28
- ...props
29
- });
30
- }
31
- function AlertDialogContent({ className, ...props }) {
32
- return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(AlertDialogPortal, null, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(AlertDialogOverlay, null), /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__radix_ui_react_alert_dialog_c2bcbc55__.Content, {
33
- "data-slot": "alert-dialog-content",
34
- className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", className),
35
- ...props
36
- }));
37
- }
38
- function AlertDialogHeader({ className, ...props }) {
39
- return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("div", {
40
- "data-slot": "alert-dialog-header",
41
- className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("flex flex-col gap-2 text-center sm:text-left", className),
42
- ...props
43
- });
44
- }
45
- function AlertDialogFooter({ className, ...props }) {
46
- return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("div", {
47
- "data-slot": "alert-dialog-footer",
48
- className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
49
- ...props
50
- });
51
- }
52
- function AlertDialogTitle({ className, ...props }) {
53
- return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__radix_ui_react_alert_dialog_c2bcbc55__.Title, {
54
- "data-slot": "alert-dialog-title",
55
- className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("text-lg font-semibold", className),
56
- ...props
57
- });
58
- }
59
- function AlertDialogDescription({ className, ...props }) {
60
- return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__radix_ui_react_alert_dialog_c2bcbc55__.Description, {
61
- "data-slot": "alert-dialog-description",
62
- className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("text-muted-foreground text-sm", className),
63
- ...props
64
- });
65
- }
66
- function AlertDialogAction({ className, ...props }) {
67
- return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__radix_ui_react_alert_dialog_c2bcbc55__.Action, {
68
- className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)((0, __WEBPACK_EXTERNAL_MODULE__button_js_821b8d9d__.buttonVariants)(), className),
69
- ...props
70
- });
71
- }
72
- function AlertDialogCancel({ className, ...props }) {
73
- return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__radix_ui_react_alert_dialog_c2bcbc55__.Cancel, {
74
- className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)((0, __WEBPACK_EXTERNAL_MODULE__button_js_821b8d9d__.buttonVariants)({
75
- variant: "outline"
76
- }), className),
77
- ...props
78
- });
79
- }
80
- export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
@@ -1,9 +0,0 @@
1
- import * as React from "react";
2
- import { type VariantProps } from "class-variance-authority";
3
- declare const alertVariants: (props?: ({
4
- variant?: "default" | "destructive" | null | undefined;
5
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
- declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): JSX.Element;
7
- declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
8
- declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
9
- export { Alert, AlertTitle, AlertDescription };