@esmate/shadcn 1.0.0 → 1.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.
- package/README.md +21 -2
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.js +16 -0
- package/dist/hooks/use-zod-form.d.ts +8 -0
- package/dist/hooks/use-zod-form.js +10 -0
- package/dist/lib/class-variance-authority.d.ts +1 -0
- package/dist/lib/class-variance-authority.js +1 -0
- package/dist/lib/clsx.d.ts +2 -0
- package/dist/lib/clsx.js +4 -0
- package/dist/lib/cmdk.d.ts +1 -0
- package/dist/lib/cmdk.js +1 -0
- package/dist/lib/date-fns.d.ts +1 -0
- package/dist/lib/date-fns.js +1 -0
- package/dist/lib/embla-carousel-react.d.ts +2 -0
- package/dist/lib/embla-carousel-react.js +4 -0
- package/dist/lib/hookform__resolvers.d.ts +1 -0
- package/dist/lib/hookform__resolvers.js +1 -0
- package/dist/lib/input-otp.d.ts +1 -0
- package/dist/lib/input-otp.js +1 -0
- package/dist/lib/lucide-react.d.ts +2 -0
- package/dist/lib/lucide-react.js +4 -0
- package/dist/lib/next-themes.d.ts +1 -0
- package/dist/lib/next-themes.js +1 -0
- package/dist/lib/radix-ui__react-accordion.d.ts +1 -0
- package/dist/lib/radix-ui__react-accordion.js +1 -0
- package/dist/lib/radix-ui__react-alert-dialog.d.ts +1 -0
- package/dist/lib/radix-ui__react-alert-dialog.js +1 -0
- package/dist/lib/radix-ui__react-aspect-ratio.d.ts +1 -0
- package/dist/lib/radix-ui__react-aspect-ratio.js +1 -0
- package/dist/lib/radix-ui__react-avatar.d.ts +1 -0
- package/dist/lib/radix-ui__react-avatar.js +1 -0
- package/dist/lib/radix-ui__react-checkbox.d.ts +1 -0
- package/dist/lib/radix-ui__react-checkbox.js +1 -0
- package/dist/lib/radix-ui__react-collapsible.d.ts +1 -0
- package/dist/lib/radix-ui__react-collapsible.js +1 -0
- package/dist/lib/radix-ui__react-context-menu.d.ts +1 -0
- package/dist/lib/radix-ui__react-context-menu.js +1 -0
- package/dist/lib/radix-ui__react-dialog.d.ts +1 -0
- package/dist/lib/radix-ui__react-dialog.js +1 -0
- package/dist/lib/radix-ui__react-dropdown-menu.d.ts +1 -0
- package/dist/lib/radix-ui__react-dropdown-menu.js +1 -0
- package/dist/lib/radix-ui__react-hover-card.d.ts +1 -0
- package/dist/lib/radix-ui__react-hover-card.js +1 -0
- package/dist/lib/radix-ui__react-label.d.ts +1 -0
- package/dist/lib/radix-ui__react-label.js +1 -0
- package/dist/lib/radix-ui__react-menubar.d.ts +1 -0
- package/dist/lib/radix-ui__react-menubar.js +1 -0
- package/dist/lib/radix-ui__react-navigation-menu.d.ts +1 -0
- package/dist/lib/radix-ui__react-navigation-menu.js +1 -0
- package/dist/lib/radix-ui__react-popover.d.ts +1 -0
- package/dist/lib/radix-ui__react-popover.js +1 -0
- package/dist/lib/radix-ui__react-progress.d.ts +1 -0
- package/dist/lib/radix-ui__react-progress.js +1 -0
- package/dist/lib/radix-ui__react-radio-group.d.ts +1 -0
- package/dist/lib/radix-ui__react-radio-group.js +1 -0
- package/dist/lib/radix-ui__react-scroll-area.d.ts +1 -0
- package/dist/lib/radix-ui__react-scroll-area.js +1 -0
- package/dist/lib/radix-ui__react-select.d.ts +1 -0
- package/dist/lib/radix-ui__react-select.js +1 -0
- package/dist/lib/radix-ui__react-separator.d.ts +1 -0
- package/dist/lib/radix-ui__react-separator.js +1 -0
- package/dist/lib/radix-ui__react-slider.d.ts +1 -0
- package/dist/lib/radix-ui__react-slider.js +1 -0
- package/dist/lib/radix-ui__react-slot.d.ts +1 -0
- package/dist/lib/radix-ui__react-slot.js +1 -0
- package/dist/lib/radix-ui__react-switch.d.ts +1 -0
- package/dist/lib/radix-ui__react-switch.js +1 -0
- package/dist/lib/radix-ui__react-tabs.d.ts +1 -0
- package/dist/lib/radix-ui__react-tabs.js +1 -0
- package/dist/lib/radix-ui__react-toggle-group.d.ts +1 -0
- package/dist/lib/radix-ui__react-toggle-group.js +1 -0
- package/dist/lib/radix-ui__react-toggle.d.ts +1 -0
- package/dist/lib/radix-ui__react-toggle.js +1 -0
- package/dist/lib/radix-ui__react-tooltip.d.ts +1 -0
- package/dist/lib/radix-ui__react-tooltip.js +1 -0
- package/dist/lib/react-day-picker.d.ts +2 -0
- package/dist/lib/react-day-picker.js +4 -0
- package/dist/lib/react-hook-form.d.ts +1 -0
- package/dist/lib/react-hook-form.js +1 -0
- package/dist/lib/react-resizable-panels.d.ts +1 -0
- package/dist/lib/react-resizable-panels.js +1 -0
- package/dist/lib/recharts.d.ts +1 -0
- package/dist/lib/recharts.js +1 -0
- package/dist/lib/sonner.d.ts +1 -0
- package/dist/lib/sonner.js +1 -0
- package/dist/lib/tailwind-merge.d.ts +1 -0
- package/dist/lib/tailwind-merge.js +1 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.js +6 -0
- package/dist/lib/vaul.d.ts +1 -0
- package/dist/lib/vaul.js +1 -0
- package/dist/lib/zod.d.ts +2 -0
- package/dist/lib/zod.js +4 -0
- package/dist/styles/base.css +1 -0
- package/dist/styles/new-york.css +123 -0
- package/dist/ui/accordion.d.ts +7 -0
- package/dist/ui/accordion.js +39 -0
- package/dist/ui/alert-dialog.d.ts +14 -0
- package/dist/ui/alert-dialog.js +80 -0
- package/dist/ui/alert.d.ts +9 -0
- package/dist/ui/alert.js +39 -0
- package/dist/ui/aspect-ratio.d.ts +3 -0
- package/dist/ui/aspect-ratio.js +9 -0
- package/dist/ui/avatar.d.ts +6 -0
- package/dist/ui/avatar.js +26 -0
- package/dist/ui/badge.d.ts +9 -0
- package/dist/ui/badge.js +28 -0
- package/dist/ui/breadcrumb.d.ts +11 -0
- package/dist/ui/breadcrumb.js +66 -0
- package/dist/ui/button.d.ts +10 -0
- package/dist/ui/button.js +39 -0
- package/dist/ui/calendar.d.ts +4 -0
- package/dist/ui/calendar.js +53 -0
- package/dist/ui/card.d.ts +9 -0
- package/dist/ui/card.js +52 -0
- package/dist/ui/carousel.d.ts +19 -0
- package/dist/ui/carousel.js +135 -0
- package/dist/ui/chart.d.ts +40 -0
- package/dist/ui/chart.js +138 -0
- package/dist/ui/checkbox.d.ts +4 -0
- package/dist/ui/checkbox.js +18 -0
- package/dist/ui/collapsible.d.ts +5 -0
- package/dist/ui/collapsible.js +21 -0
- package/dist/ui/command.d.ts +16 -0
- package/dist/ui/command.js +77 -0
- package/dist/ui/context-menu.d.ts +25 -0
- package/dist/ui/context-menu.js +120 -0
- package/dist/ui/dialog.d.ts +13 -0
- package/dist/ui/dialog.js +78 -0
- package/dist/ui/drawer.d.ts +13 -0
- package/dist/ui/drawer.js +75 -0
- package/dist/ui/dropdown-menu.d.ts +25 -0
- package/dist/ui/dropdown-menu.js +121 -0
- package/dist/ui/form.d.ts +24 -0
- package/dist/ui/form.js +86 -0
- package/dist/ui/hover-card.d.ts +6 -0
- package/dist/ui/hover-card.js +28 -0
- package/dist/ui/input-otp.d.ts +11 -0
- package/dist/ui/input-otp.js +42 -0
- package/dist/ui/input.d.ts +3 -0
- package/dist/ui/input.js +11 -0
- package/dist/ui/label.d.ts +4 -0
- package/dist/ui/label.js +12 -0
- package/dist/ui/menubar.d.ts +26 -0
- package/dist/ui/menubar.js +131 -0
- package/dist/ui/navigation-menu.d.ts +14 -0
- package/dist/ui/navigation-menu.js +71 -0
- package/dist/ui/pagination.d.ts +13 -0
- package/dist/ui/pagination.js +71 -0
- package/dist/ui/popover.d.ts +7 -0
- package/dist/ui/popover.js +32 -0
- package/dist/ui/progress.d.ts +4 -0
- package/dist/ui/progress.js +18 -0
- package/dist/ui/radio-group.d.ts +5 -0
- package/dist/ui/radio-group.js +25 -0
- package/dist/ui/resizable.d.ts +8 -0
- package/dist/ui/resizable.js +30 -0
- package/dist/ui/scroll-area.d.ts +5 -0
- package/dist/ui/scroll-area.js +26 -0
- package/dist/ui/select.d.ts +15 -0
- package/dist/ui/select.js +89 -0
- package/dist/ui/separator.d.ts +4 -0
- package/dist/ui/separator.js +14 -0
- package/dist/ui/sheet.d.ts +13 -0
- package/dist/ui/sheet.js +78 -0
- package/dist/ui/sidebar.d.ts +69 -0
- package/dist/ui/sidebar.js +368 -0
- package/dist/ui/skeleton.d.ts +2 -0
- package/dist/ui/skeleton.js +9 -0
- package/dist/ui/slider.d.ts +4 -0
- package/dist/ui/slider.js +37 -0
- package/dist/ui/sonner.d.ts +3 -0
- package/dist/ui/sonner.js +17 -0
- package/dist/ui/switch.d.ts +4 -0
- package/dist/ui/switch.js +15 -0
- package/dist/ui/table.d.ts +10 -0
- package/dist/ui/table.js +63 -0
- package/dist/ui/tabs.d.ts +7 -0
- package/dist/ui/tabs.js +33 -0
- package/dist/ui/textarea.d.ts +3 -0
- package/dist/ui/textarea.js +10 -0
- package/dist/ui/toggle-group.d.ts +7 -0
- package/dist/ui/toggle-group.js +37 -0
- package/dist/ui/toggle.d.ts +9 -0
- package/dist/ui/toggle.js +34 -0
- package/dist/ui/tooltip.d.ts +7 -0
- package/dist/ui/tooltip.js +34 -0
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -34,8 +34,6 @@ Start using components:
|
|
|
34
34
|
|
|
35
35
|
```tsx
|
|
36
36
|
import { Button } from "@esmate/shadcn/ui/button";
|
|
37
|
-
|
|
38
|
-
// ...use <Button> in your app!
|
|
39
37
|
```
|
|
40
38
|
|
|
41
39
|
## Usage
|
|
@@ -50,6 +48,14 @@ import { Button } from "@esmate/shadcn/ui/button";
|
|
|
50
48
|
import { Card, CardContent } from "@esmate/shadcn/ui/card";
|
|
51
49
|
```
|
|
52
50
|
|
|
51
|
+
### Utils
|
|
52
|
+
|
|
53
|
+
All Shadcn utils are available via `@esmate/shadcn/utils` imports.
|
|
54
|
+
|
|
55
|
+
```typescript
|
|
56
|
+
import { cn } from "@esmate/shadcn/utils";
|
|
57
|
+
```
|
|
58
|
+
|
|
53
59
|
### Hooks
|
|
54
60
|
|
|
55
61
|
All Shadcn hooks are available via `@esmate/shadcn/hooks/*` imports.
|
|
@@ -229,3 +235,16 @@ If you want to create your own styles, the package includes a base style that's
|
|
|
229
235
|
|
|
230
236
|
To create themes, check out [Shadcn Themes](https://ui.shadcn.com/themes) or [Tweakcn Themes](https://tweakcn.com/) for
|
|
231
237
|
easy theme generation.
|
|
238
|
+
|
|
239
|
+
### Exports
|
|
240
|
+
|
|
241
|
+
Shadcn comes with many dependencies, which can be complicated to manage and use in a project. That's why I created this
|
|
242
|
+
package: to bundle them all together. To make them reusable and avoid reinstalling them, I re-export them for you.
|
|
243
|
+
|
|
244
|
+
```typescript
|
|
245
|
+
import { z } from "@esmate/shadcn/zod";
|
|
246
|
+
import { useForm } from "@esmate/shadcn/react-hook-form";
|
|
247
|
+
import { useForm } from "@esmate/shadcn/hookform__resolvers";
|
|
248
|
+
|
|
249
|
+
// You can check src/lib or dist/lib to find more modules
|
|
250
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useIsMobile(): boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 };
|
|
@@ -0,0 +1,8 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,10 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "class-variance-authority";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "class-variance-authority";
|
package/dist/lib/clsx.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "cmdk";
|
package/dist/lib/cmdk.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "cmdk";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "date-fns";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "date-fns";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_embla_carousel_react_7f67003b__ from "embla-carousel-react";
|
|
2
|
+
export * from "embla-carousel-react";
|
|
3
|
+
var __webpack_exports__default = __WEBPACK_EXTERNAL_MODULE_embla_carousel_react_7f67003b__["default"];
|
|
4
|
+
export { __webpack_exports__default as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@hookform/resolvers";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@hookform/resolvers";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "input-otp";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "input-otp";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "next-themes";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "next-themes";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-accordion";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-accordion";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-alert-dialog";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-alert-dialog";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-aspect-ratio";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-aspect-ratio";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-avatar";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-avatar";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-checkbox";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-checkbox";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-collapsible";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-collapsible";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-context-menu";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-context-menu";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-dialog";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-dialog";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-dropdown-menu";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-dropdown-menu";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-hover-card";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-hover-card";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-label";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-label";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-menubar";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-menubar";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-navigation-menu";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-navigation-menu";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-popover";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-popover";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-progress";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-progress";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-radio-group";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-radio-group";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-scroll-area";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-scroll-area";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-select";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-select";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-separator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-separator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-slider";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-slider";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-slot";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-slot";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-switch";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-switch";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-tabs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-tabs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-toggle-group";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-toggle-group";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-toggle";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-toggle";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-tooltip";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@radix-ui/react-tooltip";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_day_picker_7bc423fd__ from "react-day-picker";
|
|
2
|
+
export * from "react-day-picker";
|
|
3
|
+
var __webpack_exports__default = __WEBPACK_EXTERNAL_MODULE_react_day_picker_7bc423fd__["default"];
|
|
4
|
+
export { __webpack_exports__default as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "react-hook-form";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "react-hook-form";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "react-resizable-panels";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "react-resizable-panels";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "recharts";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "recharts";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "sonner";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "sonner";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "tailwind-merge";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "tailwind-merge";
|
|
@@ -0,0 +1,6 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "vaul";
|
package/dist/lib/vaul.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "vaul";
|
package/dist/lib/zod.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "tw-animate-css";
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
@import "./base.css";
|
|
2
|
+
@import "tw-animate-css";
|
|
3
|
+
|
|
4
|
+
@custom-variant dark (&:is(.dark *));
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
--background: oklch(1 0 0);
|
|
8
|
+
--foreground: oklch(0.145 0 0);
|
|
9
|
+
--card: oklch(1 0 0);
|
|
10
|
+
--card-foreground: oklch(0.145 0 0);
|
|
11
|
+
--popover: oklch(1 0 0);
|
|
12
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
13
|
+
--primary: oklch(0.205 0 0);
|
|
14
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
15
|
+
--secondary: oklch(0.97 0 0);
|
|
16
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
17
|
+
--muted: oklch(0.97 0 0);
|
|
18
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
19
|
+
--accent: oklch(0.97 0 0);
|
|
20
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
21
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
22
|
+
--destructive-foreground: oklch(0.577 0.245 27.325);
|
|
23
|
+
--border: oklch(0.922 0 0);
|
|
24
|
+
--input: oklch(0.922 0 0);
|
|
25
|
+
--ring: oklch(0.708 0 0);
|
|
26
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
27
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
28
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
29
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
30
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
31
|
+
--radius: 0.625rem;
|
|
32
|
+
--sidebar: oklch(0.985 0 0);
|
|
33
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
34
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
35
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
36
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
37
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
38
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
39
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.dark {
|
|
43
|
+
--background: oklch(0.145 0 0);
|
|
44
|
+
--foreground: oklch(0.985 0 0);
|
|
45
|
+
--card: oklch(0.145 0 0);
|
|
46
|
+
--card-foreground: oklch(0.985 0 0);
|
|
47
|
+
--popover: oklch(0.145 0 0);
|
|
48
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
49
|
+
--primary: oklch(0.985 0 0);
|
|
50
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
51
|
+
--secondary: oklch(0.269 0 0);
|
|
52
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
53
|
+
--muted: oklch(0.269 0 0);
|
|
54
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
55
|
+
--accent: oklch(0.269 0 0);
|
|
56
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
57
|
+
--destructive: oklch(0.396 0.141 25.723);
|
|
58
|
+
--destructive-foreground: oklch(0.637 0.237 25.331);
|
|
59
|
+
--border: oklch(0.269 0 0);
|
|
60
|
+
--input: oklch(0.269 0 0);
|
|
61
|
+
--ring: oklch(0.439 0 0);
|
|
62
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
63
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
64
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
65
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
66
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
67
|
+
--sidebar: oklch(0.205 0 0);
|
|
68
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
69
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
70
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
71
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
72
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
73
|
+
--sidebar-border: oklch(0.269 0 0);
|
|
74
|
+
--sidebar-ring: oklch(0.439 0 0);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@theme inline {
|
|
78
|
+
--color-background: var(--background);
|
|
79
|
+
--color-foreground: var(--foreground);
|
|
80
|
+
--color-card: var(--card);
|
|
81
|
+
--color-card-foreground: var(--card-foreground);
|
|
82
|
+
--color-popover: var(--popover);
|
|
83
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
84
|
+
--color-primary: var(--primary);
|
|
85
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
86
|
+
--color-secondary: var(--secondary);
|
|
87
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
88
|
+
--color-muted: var(--muted);
|
|
89
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
90
|
+
--color-accent: var(--accent);
|
|
91
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
92
|
+
--color-destructive: var(--destructive);
|
|
93
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
94
|
+
--color-border: var(--border);
|
|
95
|
+
--color-input: var(--input);
|
|
96
|
+
--color-ring: var(--ring);
|
|
97
|
+
--color-chart-1: var(--chart-1);
|
|
98
|
+
--color-chart-2: var(--chart-2);
|
|
99
|
+
--color-chart-3: var(--chart-3);
|
|
100
|
+
--color-chart-4: var(--chart-4);
|
|
101
|
+
--color-chart-5: var(--chart-5);
|
|
102
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
103
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
104
|
+
--radius-lg: var(--radius);
|
|
105
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
106
|
+
--color-sidebar: var(--sidebar);
|
|
107
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
108
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
109
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
110
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
111
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
112
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
113
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@layer base {
|
|
117
|
+
* {
|
|
118
|
+
@apply border-border outline-ring/50;
|
|
119
|
+
}
|
|
120
|
+
body {
|
|
121
|
+
@apply bg-background text-foreground;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -0,0 +1,39 @@
|
|
|
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 };
|
|
@@ -0,0 +1,14 @@
|
|
|
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>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|