@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.
- package/LICENSE +21 -0
- package/README.md +3 -0
- package/dist/OrContinueWithSeparator-BvOMy_0X.d.ts +11 -0
- package/dist/OrContinueWithSeparator-Cs96m5UB.js +28 -0
- package/dist/alert-DUygh_xL.d.ts +24 -0
- package/dist/alert-DuQQzE0M.js +39 -0
- package/dist/alert-dialog-BQBvTsjx.d.ts +48 -0
- package/dist/avatar-4_qFkDQq.d.ts +19 -0
- package/dist/avatar-DWlyZZC1.js +31 -0
- package/dist/badge-BtexTWYL.d.ts +19 -0
- package/dist/badge-ChGpGKfr.js +27 -0
- package/dist/button-BlGZakU_.d.ts +21 -0
- package/dist/button-CoM3CepB.js +46 -0
- package/dist/calendar-5J34tX7L.js +107 -0
- package/dist/calendar-DK_qW8tK.d.ts +26 -0
- package/dist/card-8btbTKaB.d.ts +34 -0
- package/dist/card-Bf0-1Hox.js +58 -0
- package/dist/checkbox-BfAe26dy.d.ts +11 -0
- package/dist/checkbox-ChqHvI5Y.js +23 -0
- package/dist/command-BzJMrpFw.js +88 -0
- package/dist/command-CTOqnzSx.d.ts +52 -0
- package/dist/components/index-DVJl6H4Z.d.ts +30 -0
- package/dist/components/index.js +33 -0
- package/dist/components/ui/OrContinueWithSeparator-DT1kKIwU.d.ts +2 -0
- package/dist/components/ui/OrContinueWithSeparator.js +7 -0
- package/dist/components/ui/alert-Dnyd20KB.d.ts +2 -0
- package/dist/components/ui/alert-dialog-D6vR-1Jz.d.ts +2 -0
- package/dist/components/ui/alert-dialog.js +35 -0
- package/dist/components/ui/alert.js +6 -0
- package/dist/components/ui/avatar-CBM6Rxkl.d.ts +2 -0
- package/dist/components/ui/avatar.js +6 -0
- package/dist/components/ui/badge-tZQG9OGU.d.ts +2 -0
- package/dist/components/ui/badge.js +6 -0
- package/dist/components/ui/button-B1jOU2SH.d.ts +2 -0
- package/dist/components/ui/button.js +6 -0
- package/dist/components/ui/calendar-CJJGD2Mp.d.ts +2 -0
- package/dist/components/ui/calendar.js +7 -0
- package/dist/components/ui/card-Dw7UFh1G.d.ts +2 -0
- package/dist/components/ui/card.js +6 -0
- package/dist/components/ui/checkbox-B4Zt92ES.d.ts +2 -0
- package/dist/components/ui/checkbox.js +8 -0
- package/dist/components/ui/command-Bo9iT_Mm.d.ts +2 -0
- package/dist/components/ui/command.js +9 -0
- package/dist/components/ui/dialog-DwFy7VXb.d.ts +2 -0
- package/dist/components/ui/dialog.js +6 -0
- package/dist/components/ui/dropdown-menu-CUC5b1yi.d.ts +2 -0
- package/dist/components/ui/dropdown-menu.js +6 -0
- package/dist/components/ui/file-upload-BKYxasJe.d.ts +2 -0
- package/dist/components/ui/file-upload.js +8 -0
- package/dist/components/ui/form-Ui-fGegs.d.ts +2 -0
- package/dist/components/ui/form.js +7 -0
- package/dist/components/ui/index-BDJfgHZT.d.ts +30 -0
- package/dist/components/ui/index.js +33 -0
- package/dist/components/ui/input-O6aZyiJl.d.ts +2 -0
- package/dist/components/ui/input.js +6 -0
- package/dist/components/ui/label-CiFY9QCm.d.ts +2 -0
- package/dist/components/ui/label.js +6 -0
- package/dist/components/ui/pagination-CLlEoufd.d.ts +2 -0
- package/dist/components/ui/pagination.js +33 -0
- package/dist/components/ui/popover-BuE9HJFI.d.ts +2 -0
- package/dist/components/ui/popover.js +6 -0
- package/dist/components/ui/radio-group-BNV5xVaA.d.ts +2 -0
- package/dist/components/ui/radio-group.js +6 -0
- package/dist/components/ui/select-BAT_xUS6.d.ts +2 -0
- package/dist/components/ui/select.js +8 -0
- package/dist/components/ui/separator-rI7QiaxO.d.ts +2 -0
- package/dist/components/ui/separator.js +6 -0
- package/dist/components/ui/shadcn-io/tags/index-NcbrE1RX.d.ts +2 -0
- package/dist/components/ui/shadcn-io/tags/index.js +13 -0
- package/dist/components/ui/shadcn-io/tags-input-inline/index-CAYAMlWT.d.ts +2 -0
- package/dist/components/ui/shadcn-io/tags-input-inline/index.js +5 -0
- package/dist/components/ui/sheet-CPsrps2C.d.ts +2 -0
- package/dist/components/ui/sheet.js +6 -0
- package/dist/components/ui/slider-DqROXr79.d.ts +2 -0
- package/dist/components/ui/slider.js +6 -0
- package/dist/components/ui/switch-BF2c_Zn9.d.ts +2 -0
- package/dist/components/ui/switch.js +8 -0
- package/dist/components/ui/tabs-DRhGRCqD.d.ts +2 -0
- package/dist/components/ui/tabs.js +6 -0
- package/dist/components/ui/textarea-BoOWHGtB.d.ts +2 -0
- package/dist/components/ui/textarea.js +6 -0
- package/dist/components/ui/tooltip-BcAxWshO.d.ts +2 -0
- package/dist/components/ui/tooltip.js +6 -0
- package/dist/dialog-C4wKr521.d.ts +47 -0
- package/dist/dialog-CnHQjTPX.js +88 -0
- package/dist/dropdown-menu-BytmAQI6.js +125 -0
- package/dist/dropdown-menu-CnrLe3nb.d.ts +77 -0
- package/dist/file-upload-BEeMesnR.js +907 -0
- package/dist/file-upload-BLSfy-1K.d.ts +94 -0
- package/dist/form-BSwltNo1.d.ts +45 -0
- package/dist/form-BjnyYpgw.js +89 -0
- package/dist/index-BSKUD7fA.d.ts +39 -0
- package/dist/index-Bpvi7gIc.d.ts +31 -0
- package/dist/index-CZUtOTjh.d.ts +1 -0
- package/dist/index-CkSrVqpn.d.ts +31 -0
- package/dist/index-DwHkYD1A.d.ts +70 -0
- package/dist/index.js +33 -0
- package/dist/input-CUeyj64L.js +17 -0
- package/dist/input-Mvgjlh3F.d.ts +11 -0
- package/dist/jsx-runtime-CjFsk39Z.js +274 -0
- package/dist/label-CaJMuv7i.d.ts +11 -0
- package/dist/label-DGznqsHm.js +17 -0
- package/dist/lib/index-ChuxSUKt.d.ts +2 -0
- package/dist/lib/index.js +4 -0
- package/dist/lib/utils-45Ez8x6p.d.ts +2 -0
- package/dist/lib/utils.js +3 -0
- package/dist/lib-B_fww26I.js +1 -0
- package/dist/popover-CV48KL0e.js +37 -0
- package/dist/popover-DpSyC3-j.d.ts +22 -0
- package/dist/radio-group-Cfa4brdK.d.ts +15 -0
- package/dist/radio-group-jaFHISZ7.js +30 -0
- package/dist/select-B3Zt7fRL.d.ts +52 -0
- package/dist/select-C96xvMSx.js +99 -0
- package/dist/separator-C71XEO3E.js +19 -0
- package/dist/separator-Cucb_6O4.d.ts +13 -0
- package/dist/sheet-B3Ak6LSw.d.ts +40 -0
- package/dist/sheet-BlZGrRNt.js +84 -0
- package/dist/slider-CdK5O4pc.js +38 -0
- package/dist/slider-D8tCfiZV.d.ts +15 -0
- package/dist/src-DQlJgy1h.js +157 -0
- package/dist/switch-Bz5Iiy2_.js +21 -0
- package/dist/switch-DXaptB6g.d.ts +11 -0
- package/dist/tabs-B0X-LEdY.d.ts +23 -0
- package/dist/tabs-BjolTUEI.js +38 -0
- package/dist/tags-BnJCu0NQ.js +131 -0
- package/dist/tags-input-inline-DnEu3Dyw.js +58 -0
- package/dist/textarea-09eXlo5q.d.ts +10 -0
- package/dist/textarea-BNZyZgAM.js +16 -0
- package/dist/tooltip-BQpFgVRJ.d.ts +23 -0
- package/dist/tooltip-CuYs-__e.js +38 -0
- package/dist/utils-D2WOFi-N.js +10 -0
- package/dist/utils-_VBxPjie.d.ts +6 -0
- 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 };
|
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
|
+
}
|