@esmate/shadcn 1.0.1 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/README.md +21 -2
  2. package/dist/lib/class-variance-authority.d.ts +1 -0
  3. package/dist/lib/class-variance-authority.js +1 -0
  4. package/dist/lib/clsx.d.ts +2 -0
  5. package/dist/lib/clsx.js +4 -0
  6. package/dist/lib/cmdk.d.ts +1 -0
  7. package/dist/lib/cmdk.js +1 -0
  8. package/dist/lib/date-fns.d.ts +1 -0
  9. package/dist/lib/date-fns.js +1 -0
  10. package/dist/lib/embla-carousel-react.d.ts +2 -0
  11. package/dist/lib/embla-carousel-react.js +4 -0
  12. package/dist/lib/hookform__resolvers.d.ts +1 -0
  13. package/dist/lib/hookform__resolvers.js +1 -0
  14. package/dist/lib/input-otp.d.ts +1 -0
  15. package/dist/lib/input-otp.js +1 -0
  16. package/dist/lib/lucide-react.d.ts +2 -0
  17. package/dist/lib/lucide-react.js +4 -0
  18. package/dist/lib/next-themes.d.ts +1 -0
  19. package/dist/lib/next-themes.js +1 -0
  20. package/dist/lib/radix-ui__react-accordion.d.ts +1 -0
  21. package/dist/lib/radix-ui__react-accordion.js +1 -0
  22. package/dist/lib/radix-ui__react-alert-dialog.d.ts +1 -0
  23. package/dist/lib/radix-ui__react-alert-dialog.js +1 -0
  24. package/dist/lib/radix-ui__react-aspect-ratio.d.ts +1 -0
  25. package/dist/lib/radix-ui__react-aspect-ratio.js +1 -0
  26. package/dist/lib/radix-ui__react-avatar.d.ts +1 -0
  27. package/dist/lib/radix-ui__react-avatar.js +1 -0
  28. package/dist/lib/radix-ui__react-checkbox.d.ts +1 -0
  29. package/dist/lib/radix-ui__react-checkbox.js +1 -0
  30. package/dist/lib/radix-ui__react-collapsible.d.ts +1 -0
  31. package/dist/lib/radix-ui__react-collapsible.js +1 -0
  32. package/dist/lib/radix-ui__react-context-menu.d.ts +1 -0
  33. package/dist/lib/radix-ui__react-context-menu.js +1 -0
  34. package/dist/lib/radix-ui__react-dialog.d.ts +1 -0
  35. package/dist/lib/radix-ui__react-dialog.js +1 -0
  36. package/dist/lib/radix-ui__react-dropdown-menu.d.ts +1 -0
  37. package/dist/lib/radix-ui__react-dropdown-menu.js +1 -0
  38. package/dist/lib/radix-ui__react-hover-card.d.ts +1 -0
  39. package/dist/lib/radix-ui__react-hover-card.js +1 -0
  40. package/dist/lib/radix-ui__react-label.d.ts +1 -0
  41. package/dist/lib/radix-ui__react-label.js +1 -0
  42. package/dist/lib/radix-ui__react-menubar.d.ts +1 -0
  43. package/dist/lib/radix-ui__react-menubar.js +1 -0
  44. package/dist/lib/radix-ui__react-navigation-menu.d.ts +1 -0
  45. package/dist/lib/radix-ui__react-navigation-menu.js +1 -0
  46. package/dist/lib/radix-ui__react-popover.d.ts +1 -0
  47. package/dist/lib/radix-ui__react-popover.js +1 -0
  48. package/dist/lib/radix-ui__react-progress.d.ts +1 -0
  49. package/dist/lib/radix-ui__react-progress.js +1 -0
  50. package/dist/lib/radix-ui__react-radio-group.d.ts +1 -0
  51. package/dist/lib/radix-ui__react-radio-group.js +1 -0
  52. package/dist/lib/radix-ui__react-scroll-area.d.ts +1 -0
  53. package/dist/lib/radix-ui__react-scroll-area.js +1 -0
  54. package/dist/lib/radix-ui__react-select.d.ts +1 -0
  55. package/dist/lib/radix-ui__react-select.js +1 -0
  56. package/dist/lib/radix-ui__react-separator.d.ts +1 -0
  57. package/dist/lib/radix-ui__react-separator.js +1 -0
  58. package/dist/lib/radix-ui__react-slider.d.ts +1 -0
  59. package/dist/lib/radix-ui__react-slider.js +1 -0
  60. package/dist/lib/radix-ui__react-slot.d.ts +1 -0
  61. package/dist/lib/radix-ui__react-slot.js +1 -0
  62. package/dist/lib/radix-ui__react-switch.d.ts +1 -0
  63. package/dist/lib/radix-ui__react-switch.js +1 -0
  64. package/dist/lib/radix-ui__react-tabs.d.ts +1 -0
  65. package/dist/lib/radix-ui__react-tabs.js +1 -0
  66. package/dist/lib/radix-ui__react-toggle-group.d.ts +1 -0
  67. package/dist/lib/radix-ui__react-toggle-group.js +1 -0
  68. package/dist/lib/radix-ui__react-toggle.d.ts +1 -0
  69. package/dist/lib/radix-ui__react-toggle.js +1 -0
  70. package/dist/lib/radix-ui__react-tooltip.d.ts +1 -0
  71. package/dist/lib/radix-ui__react-tooltip.js +1 -0
  72. package/dist/lib/react-day-picker.d.ts +2 -0
  73. package/dist/lib/react-day-picker.js +4 -0
  74. package/dist/lib/react-hook-form.d.ts +1 -0
  75. package/dist/lib/react-hook-form.js +1 -0
  76. package/dist/lib/react-resizable-panels.d.ts +1 -0
  77. package/dist/lib/react-resizable-panels.js +1 -0
  78. package/dist/lib/recharts.d.ts +1 -0
  79. package/dist/lib/recharts.js +1 -0
  80. package/dist/lib/sonner.d.ts +1 -0
  81. package/dist/lib/sonner.js +1 -0
  82. package/dist/lib/tailwind-merge.d.ts +1 -0
  83. package/dist/lib/tailwind-merge.js +1 -0
  84. package/dist/lib/vaul.d.ts +1 -0
  85. package/dist/lib/vaul.js +1 -0
  86. package/dist/lib/zod.d.ts +1 -0
  87. package/dist/lib/zod.js +3 -0
  88. package/package.json +12 -8
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 { useForm } from "@esmate/shadcn/react-hook-form";
246
+ import { zodResolver } from "@esmate/shadcn/hookform__resolvers";
247
+ import { z } from "@esmate/shadcn/zod";
248
+
249
+ // You can check src/lib or dist/lib to find more modules
250
+ ```
@@ -0,0 +1 @@
1
+ export * from "class-variance-authority";
@@ -0,0 +1 @@
1
+ export * from "class-variance-authority";
@@ -0,0 +1,2 @@
1
+ export * from "clsx";
2
+ export { default } from "clsx";
@@ -0,0 +1,4 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_clsx__ from "clsx";
2
+ export * from "clsx";
3
+ var __webpack_exports__default = __WEBPACK_EXTERNAL_MODULE_clsx__["default"];
4
+ export { __webpack_exports__default as default };
@@ -0,0 +1 @@
1
+ export * from "cmdk";
@@ -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,2 @@
1
+ export * from "embla-carousel-react";
2
+ export { default } from "embla-carousel-react";
@@ -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,2 @@
1
+ export * from "lucide-react";
2
+ export { default } from "lucide-react";
@@ -0,0 +1,4 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_lucide_react_f128bbbb__ from "lucide-react";
2
+ export * from "lucide-react";
3
+ var __webpack_exports__default = __WEBPACK_EXTERNAL_MODULE_lucide_react_f128bbbb__["default"];
4
+ export { __webpack_exports__default as default };
@@ -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,2 @@
1
+ export * from "react-day-picker";
2
+ export { default } from "react-day-picker";
@@ -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 @@
1
+ export * from "vaul";
@@ -0,0 +1 @@
1
+ export * from "vaul";
package/dist/lib/zod.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from "zod";
2
+ export { default } from "zod";
package/dist/lib/zod.js CHANGED
@@ -1 +1,4 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_zod__ from "zod";
1
2
  export * from "zod";
3
+ var __webpack_exports__default = __WEBPACK_EXTERNAL_MODULE_zod__["default"];
4
+ export { __webpack_exports__default as default };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@esmate/shadcn",
3
3
  "description": "Shadcn components, hooks, and styles in one package.",
4
- "version": "1.0.1",
4
+ "version": "1.1.1",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "repository": {
@@ -13,6 +13,10 @@
13
13
  "import": "./dist/ui/*.js",
14
14
  "types": "./dist/ui/*.d.ts"
15
15
  },
16
+ "./components/*": {
17
+ "import": "./dist/ui/*.js",
18
+ "types": "./dist/components/*.d.ts"
19
+ },
16
20
  "./hooks/*": {
17
21
  "import": "./dist/hooks/*.js",
18
22
  "types": "./dist/hooks/*.d.ts"
@@ -25,11 +29,6 @@
25
29
  "types": "./dist/lib/*.d.ts"
26
30
  }
27
31
  },
28
- "scripts": {
29
- "build": "rslib build",
30
- "dev": "rslib build --watch",
31
- "shadcn": "tsx shadcn.ts"
32
- },
33
32
  "dependencies": {
34
33
  "@hookform/resolvers": "^5.0.1",
35
34
  "@radix-ui/react-accordion": "^1.2.11",
@@ -98,5 +97,10 @@
98
97
  "react",
99
98
  "tailwindcss",
100
99
  "typescript"
101
- ]
102
- }
100
+ ],
101
+ "scripts": {
102
+ "build": "rslib build",
103
+ "dev": "rslib build --watch",
104
+ "shadcn": "tsx shadcn.ts"
105
+ }
106
+ }