@pixpilot/shadcn 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 (133) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -0
  3. package/dist/OrContinueWithSeparator-BvOMy_0X.d.ts +11 -0
  4. package/dist/OrContinueWithSeparator-Cs96m5UB.js +28 -0
  5. package/dist/alert-DUygh_xL.d.ts +24 -0
  6. package/dist/alert-DuQQzE0M.js +39 -0
  7. package/dist/alert-dialog-BQBvTsjx.d.ts +48 -0
  8. package/dist/avatar-4_qFkDQq.d.ts +19 -0
  9. package/dist/avatar-DWlyZZC1.js +31 -0
  10. package/dist/badge-BtexTWYL.d.ts +19 -0
  11. package/dist/badge-ChGpGKfr.js +27 -0
  12. package/dist/button-BlGZakU_.d.ts +21 -0
  13. package/dist/button-CoM3CepB.js +46 -0
  14. package/dist/calendar-5J34tX7L.js +107 -0
  15. package/dist/calendar-DK_qW8tK.d.ts +26 -0
  16. package/dist/card-8btbTKaB.d.ts +34 -0
  17. package/dist/card-Bf0-1Hox.js +58 -0
  18. package/dist/checkbox-BfAe26dy.d.ts +11 -0
  19. package/dist/checkbox-ChqHvI5Y.js +23 -0
  20. package/dist/command-BzJMrpFw.js +88 -0
  21. package/dist/command-CTOqnzSx.d.ts +52 -0
  22. package/dist/components/index-DVJl6H4Z.d.ts +30 -0
  23. package/dist/components/index.js +33 -0
  24. package/dist/components/ui/OrContinueWithSeparator-DT1kKIwU.d.ts +2 -0
  25. package/dist/components/ui/OrContinueWithSeparator.js +7 -0
  26. package/dist/components/ui/alert-Dnyd20KB.d.ts +2 -0
  27. package/dist/components/ui/alert-dialog-D6vR-1Jz.d.ts +2 -0
  28. package/dist/components/ui/alert-dialog.js +35 -0
  29. package/dist/components/ui/alert.js +6 -0
  30. package/dist/components/ui/avatar-CBM6Rxkl.d.ts +2 -0
  31. package/dist/components/ui/avatar.js +6 -0
  32. package/dist/components/ui/badge-tZQG9OGU.d.ts +2 -0
  33. package/dist/components/ui/badge.js +6 -0
  34. package/dist/components/ui/button-B1jOU2SH.d.ts +2 -0
  35. package/dist/components/ui/button.js +6 -0
  36. package/dist/components/ui/calendar-CJJGD2Mp.d.ts +2 -0
  37. package/dist/components/ui/calendar.js +7 -0
  38. package/dist/components/ui/card-Dw7UFh1G.d.ts +2 -0
  39. package/dist/components/ui/card.js +6 -0
  40. package/dist/components/ui/checkbox-B4Zt92ES.d.ts +2 -0
  41. package/dist/components/ui/checkbox.js +8 -0
  42. package/dist/components/ui/command-Bo9iT_Mm.d.ts +2 -0
  43. package/dist/components/ui/command.js +9 -0
  44. package/dist/components/ui/dialog-DwFy7VXb.d.ts +2 -0
  45. package/dist/components/ui/dialog.js +6 -0
  46. package/dist/components/ui/dropdown-menu-CUC5b1yi.d.ts +2 -0
  47. package/dist/components/ui/dropdown-menu.js +6 -0
  48. package/dist/components/ui/file-upload-BKYxasJe.d.ts +2 -0
  49. package/dist/components/ui/file-upload.js +8 -0
  50. package/dist/components/ui/form-Ui-fGegs.d.ts +2 -0
  51. package/dist/components/ui/form.js +7 -0
  52. package/dist/components/ui/index-BDJfgHZT.d.ts +30 -0
  53. package/dist/components/ui/index.js +33 -0
  54. package/dist/components/ui/input-O6aZyiJl.d.ts +2 -0
  55. package/dist/components/ui/input.js +6 -0
  56. package/dist/components/ui/label-CiFY9QCm.d.ts +2 -0
  57. package/dist/components/ui/label.js +6 -0
  58. package/dist/components/ui/pagination-CLlEoufd.d.ts +2 -0
  59. package/dist/components/ui/pagination.js +33 -0
  60. package/dist/components/ui/popover-BuE9HJFI.d.ts +2 -0
  61. package/dist/components/ui/popover.js +6 -0
  62. package/dist/components/ui/radio-group-BNV5xVaA.d.ts +2 -0
  63. package/dist/components/ui/radio-group.js +6 -0
  64. package/dist/components/ui/select-BAT_xUS6.d.ts +2 -0
  65. package/dist/components/ui/select.js +8 -0
  66. package/dist/components/ui/separator-rI7QiaxO.d.ts +2 -0
  67. package/dist/components/ui/separator.js +6 -0
  68. package/dist/components/ui/shadcn-io/tags/index-NcbrE1RX.d.ts +2 -0
  69. package/dist/components/ui/shadcn-io/tags/index.js +13 -0
  70. package/dist/components/ui/shadcn-io/tags-input-inline/index-CAYAMlWT.d.ts +2 -0
  71. package/dist/components/ui/shadcn-io/tags-input-inline/index.js +5 -0
  72. package/dist/components/ui/sheet-CPsrps2C.d.ts +2 -0
  73. package/dist/components/ui/sheet.js +6 -0
  74. package/dist/components/ui/slider-DqROXr79.d.ts +2 -0
  75. package/dist/components/ui/slider.js +6 -0
  76. package/dist/components/ui/switch-BF2c_Zn9.d.ts +2 -0
  77. package/dist/components/ui/switch.js +8 -0
  78. package/dist/components/ui/tabs-DRhGRCqD.d.ts +2 -0
  79. package/dist/components/ui/tabs.js +6 -0
  80. package/dist/components/ui/textarea-BoOWHGtB.d.ts +2 -0
  81. package/dist/components/ui/textarea.js +6 -0
  82. package/dist/components/ui/tooltip-BcAxWshO.d.ts +2 -0
  83. package/dist/components/ui/tooltip.js +6 -0
  84. package/dist/dialog-C4wKr521.d.ts +47 -0
  85. package/dist/dialog-CnHQjTPX.js +88 -0
  86. package/dist/dropdown-menu-BytmAQI6.js +125 -0
  87. package/dist/dropdown-menu-CnrLe3nb.d.ts +77 -0
  88. package/dist/file-upload-BEeMesnR.js +907 -0
  89. package/dist/file-upload-BLSfy-1K.d.ts +94 -0
  90. package/dist/form-BSwltNo1.d.ts +45 -0
  91. package/dist/form-BjnyYpgw.js +89 -0
  92. package/dist/index-BSKUD7fA.d.ts +39 -0
  93. package/dist/index-Bpvi7gIc.d.ts +31 -0
  94. package/dist/index-CZUtOTjh.d.ts +1 -0
  95. package/dist/index-CkSrVqpn.d.ts +31 -0
  96. package/dist/index-DwHkYD1A.d.ts +70 -0
  97. package/dist/index.js +33 -0
  98. package/dist/input-CUeyj64L.js +17 -0
  99. package/dist/input-Mvgjlh3F.d.ts +11 -0
  100. package/dist/jsx-runtime-CjFsk39Z.js +274 -0
  101. package/dist/label-CaJMuv7i.d.ts +11 -0
  102. package/dist/label-DGznqsHm.js +17 -0
  103. package/dist/lib/index-ChuxSUKt.d.ts +2 -0
  104. package/dist/lib/index.js +4 -0
  105. package/dist/lib/utils-45Ez8x6p.d.ts +2 -0
  106. package/dist/lib/utils.js +3 -0
  107. package/dist/lib-B_fww26I.js +1 -0
  108. package/dist/popover-CV48KL0e.js +37 -0
  109. package/dist/popover-DpSyC3-j.d.ts +22 -0
  110. package/dist/radio-group-Cfa4brdK.d.ts +15 -0
  111. package/dist/radio-group-jaFHISZ7.js +30 -0
  112. package/dist/select-B3Zt7fRL.d.ts +52 -0
  113. package/dist/select-C96xvMSx.js +99 -0
  114. package/dist/separator-C71XEO3E.js +19 -0
  115. package/dist/separator-Cucb_6O4.d.ts +13 -0
  116. package/dist/sheet-B3Ak6LSw.d.ts +40 -0
  117. package/dist/sheet-BlZGrRNt.js +84 -0
  118. package/dist/slider-CdK5O4pc.js +38 -0
  119. package/dist/slider-D8tCfiZV.d.ts +15 -0
  120. package/dist/src-DQlJgy1h.js +157 -0
  121. package/dist/switch-Bz5Iiy2_.js +21 -0
  122. package/dist/switch-DXaptB6g.d.ts +11 -0
  123. package/dist/tabs-B0X-LEdY.d.ts +23 -0
  124. package/dist/tabs-BjolTUEI.js +38 -0
  125. package/dist/tags-BnJCu0NQ.js +131 -0
  126. package/dist/tags-input-inline-DnEu3Dyw.js +58 -0
  127. package/dist/textarea-09eXlo5q.d.ts +10 -0
  128. package/dist/textarea-BNZyZgAM.js +16 -0
  129. package/dist/tooltip-BQpFgVRJ.d.ts +23 -0
  130. package/dist/tooltip-CuYs-__e.js +38 -0
  131. package/dist/utils-D2WOFi-N.js +10 -0
  132. package/dist/utils-_VBxPjie.d.ts +6 -0
  133. package/package.json +101 -0
@@ -0,0 +1,23 @@
1
+ import * as React from "react";
2
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
3
+ import * as react_jsx_runtime129 from "react/jsx-runtime";
4
+
5
+ //#region src/components/ui/tooltip.d.ts
6
+ declare function TooltipProvider({
7
+ delayDuration,
8
+ ...props
9
+ }: React.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime129.JSX.Element;
10
+ declare function Tooltip({
11
+ ...props
12
+ }: React.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime129.JSX.Element;
13
+ declare function TooltipTrigger({
14
+ ...props
15
+ }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime129.JSX.Element;
16
+ declare function TooltipContent({
17
+ className,
18
+ sideOffset,
19
+ children,
20
+ ...props
21
+ }: React.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime129.JSX.Element;
22
+ //#endregion
23
+ export { TooltipTrigger as i, TooltipContent as n, TooltipProvider as r, Tooltip as t };
@@ -0,0 +1,38 @@
1
+ import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
2
+ import { t as cn } from "./utils-D2WOFi-N.js";
3
+ import "react";
4
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
5
+
6
+ //#region src/components/ui/tooltip.tsx
7
+ var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
8
+ function TooltipProvider({ delayDuration = 0, ...props }) {
9
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipPrimitive.Provider, {
10
+ "data-slot": "tooltip-provider",
11
+ delayDuration,
12
+ ...props
13
+ });
14
+ }
15
+ function Tooltip({ ...props }) {
16
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipPrimitive.Root, {
17
+ "data-slot": "tooltip",
18
+ ...props
19
+ }) });
20
+ }
21
+ function TooltipTrigger({ ...props }) {
22
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipPrimitive.Trigger, {
23
+ "data-slot": "tooltip-trigger",
24
+ ...props
25
+ });
26
+ }
27
+ function TooltipContent({ className, sideOffset = 0, children, ...props }) {
28
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TooltipPrimitive.Content, {
29
+ "data-slot": "tooltip-content",
30
+ sideOffset,
31
+ className: cn("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance", className),
32
+ ...props,
33
+ children: [children, /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipPrimitive.Arrow, { className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })]
34
+ }) });
35
+ }
36
+
37
+ //#endregion
38
+ export { TooltipTrigger as i, TooltipContent as n, TooltipProvider as r, Tooltip as t };
@@ -0,0 +1,10 @@
1
+ import { clsx } from "clsx";
2
+ import { twMerge } from "tailwind-merge";
3
+
4
+ //#region src/lib/utils.ts
5
+ function cn(...inputs) {
6
+ return twMerge(clsx(inputs));
7
+ }
8
+
9
+ //#endregion
10
+ export { cn as t };
@@ -0,0 +1,6 @@
1
+ import { ClassValue } from "clsx";
2
+
3
+ //#region src/lib/utils.d.ts
4
+ declare function cn(...inputs: ClassValue[]): string;
5
+ //#endregion
6
+ export { cn as t };
package/package.json ADDED
@@ -0,0 +1,101 @@
1
+ {
2
+ "name": "@pixpilot/shadcn",
3
+ "type": "module",
4
+ "version": "0.1.0",
5
+ "description": "A collection of reusable UI components built with shadcn/ui and Radix UI primitives.",
6
+ "author": "m.doaie <m.doaie@hotmail.com>",
7
+ "license": "MIT",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/pixpilot/shadcn-components.git",
11
+ "directory": "packages/ui"
12
+ },
13
+ "keywords": [],
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./dist/index.js",
18
+ "require": "./dist/index.cjs"
19
+ }
20
+ },
21
+ "files": [
22
+ "dist"
23
+ ],
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "dependencies": {
28
+ "@diceui/tags-input": "^0.7.2",
29
+ "@hookform/resolvers": "^5.2.2",
30
+ "@pixpilot/hash": "^0.0.0",
31
+ "@radix-ui/react-alert-dialog": "^1.1.15",
32
+ "@radix-ui/react-avatar": "^1.1.11",
33
+ "@radix-ui/react-checkbox": "^1.3.3",
34
+ "@radix-ui/react-dialog": "^1.1.15",
35
+ "@radix-ui/react-direction": "^1.1.1",
36
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
37
+ "@radix-ui/react-form": "^0.1.8",
38
+ "@radix-ui/react-icons": "^1.3.2",
39
+ "@radix-ui/react-label": "^2.1.8",
40
+ "@radix-ui/react-popover": "^1.1.15",
41
+ "@radix-ui/react-radio-group": "^1.3.8",
42
+ "@radix-ui/react-select": "^2.2.6",
43
+ "@radix-ui/react-separator": "^1.1.8",
44
+ "@radix-ui/react-slider": "^1.3.6",
45
+ "@radix-ui/react-slot": "^1.2.4",
46
+ "@radix-ui/react-switch": "^1.2.6",
47
+ "@radix-ui/react-tabs": "^1.1.13",
48
+ "@radix-ui/react-tooltip": "^1.2.8",
49
+ "class-variance-authority": "^0.7.1",
50
+ "clsx": "^2.1.1",
51
+ "cmdk": "^1.1.1",
52
+ "date-fns": "^4.1.0",
53
+ "lucide-react": "0.553.0",
54
+ "react-day-picker": "^9.11.3",
55
+ "react-hook-form": "^8.0.0-alpha.5",
56
+ "tailwind-merge": "^3.4.0",
57
+ "tailwindcss-animate": "^1.0.7",
58
+ "zod": "^4.1.12"
59
+ },
60
+ "devDependencies": {
61
+ "@pixpilot/dev-config": "^3.16.0",
62
+ "@tailwindcss/postcss": "^4.1.17",
63
+ "@testing-library/jest-dom": "^6.9.1",
64
+ "@testing-library/react": "^16.3.0",
65
+ "@types/react": "^19.2.2",
66
+ "autoprefixer": "^10.4.21",
67
+ "eslint": "^9.38.0",
68
+ "jsdom": "^27.2.0",
69
+ "postcss": "^8.5.6",
70
+ "prettier": "^3.6.2",
71
+ "react": "19.2.0",
72
+ "tailwindcss": "^4.1.17",
73
+ "tsdown": "^0.15.8",
74
+ "typescript": "^5.9.3",
75
+ "typescript-eslint": "^8.46.3",
76
+ "@internal/eslint-config": "0.3.0",
77
+ "@internal/prettier-config": "0.0.1",
78
+ "@internal/tsdown-config": "0.1.0",
79
+ "@internal/tsconfig": "0.1.0",
80
+ "@internal/vitest-config": "0.1.0"
81
+ },
82
+ "prettier": "@internal/prettier-config",
83
+ "scripts": {
84
+ "clean": "git clean -xdf .cache .turbo dist",
85
+ "clean:all": "git clean -xdf .cache .turbo dist node_modules",
86
+ "build": "tsdown",
87
+ "build:watch": "tsdown --watch",
88
+ "type-check": "tsc --noEmit",
89
+ "format": "prettier --check . --ignore-path ../../.gitignore --ignore-path ../../.prettierignore",
90
+ "lint": "eslint",
91
+ "lint:fix": "eslint --fix",
92
+ "typecheck": "tsc --noEmit --emitDeclarationOnly false",
93
+ "test": "vitest --run",
94
+ "test:watch": "vitest --watch",
95
+ "test:ui": "vitest --ui",
96
+ "shadcn:add": "npx shadcn@latest add"
97
+ },
98
+ "main": "./dist/index.cjs",
99
+ "module": "./dist/index.js",
100
+ "types": "./dist/index.d.ts"
101
+ }