@a2v2ai/uikit 0.0.36 → 0.0.37
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/Table/Table.js +2 -2
- package/package.json +33 -33
- package/Dialog/Dialog.d.ts +0 -35
- package/Dialog/Dialog.js +0 -130
- package/tmpclaude-2407-cwd +0 -1
package/Table/Table.js
CHANGED
|
@@ -13,8 +13,8 @@ const TableRow = React.forwardRef(({ className, ...props }, ref) => (_jsx("tr",
|
|
|
13
13
|
TableRow.displayName = "TableRow";
|
|
14
14
|
const TableHead = React.forwardRef(({ className, ...props }, ref) => (_jsx("th", { ref: ref, className: cn("h-10 px-3 text-left align-middle font-normal text-main-900 [&:has([role=checkbox])]:pr-0", className), ...props })));
|
|
15
15
|
TableHead.displayName = "TableHead";
|
|
16
|
-
const TableCell = React.forwardRef(({ className, ...props }, ref) => (_jsx("td", { ref: ref, className: cn("p-3 align-middle text-main-
|
|
16
|
+
const TableCell = React.forwardRef(({ className, ...props }, ref) => (_jsx("td", { ref: ref, className: cn("p-3 align-middle text-main-700 [&:has([role=checkbox])]:pr-0", className), ...props })));
|
|
17
17
|
TableCell.displayName = "TableCell";
|
|
18
|
-
const TableCaption = React.forwardRef(({ className, ...props }, ref) => (_jsx("caption", { ref: ref, className: cn("mt-4 text-sm text-main-
|
|
18
|
+
const TableCaption = React.forwardRef(({ className, ...props }, ref) => (_jsx("caption", { ref: ref, className: cn("mt-4 text-sm text-main-700", className), ...props })));
|
|
19
19
|
TableCaption.displayName = "TableCaption";
|
|
20
20
|
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
package/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@a2v2ai/uikit",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"author": "Arulraj V & abofficial1997@gmail.com",
|
|
6
|
-
"description": "A React UI component library built with shadcn/ui and Tailwind CSS",
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"check:types": "tsc --noEmit",
|
|
10
|
-
"clean": "node -e \"require('fs').rmSync('../dist', { recursive: true, force: true })\"",
|
|
11
|
-
"build": "tsc",
|
|
12
|
-
"postbuild": "cpy ./package.json ../dist/ && cpy ./README.md ../dist/ && cpy ./index.css ../dist/",
|
|
13
|
-
"publish": "npm publish --access public"
|
|
14
|
-
},
|
|
15
|
-
"keywords": [
|
|
16
|
-
"react",
|
|
17
|
-
"ui",
|
|
18
|
-
"components",
|
|
19
|
-
"tailwindcss",
|
|
20
|
-
"shadcn"
|
|
21
|
-
],
|
|
22
|
-
"peerDependencies": {
|
|
23
|
-
"react": "^18.0.0 || ^19.0.0",
|
|
24
|
-
"react-dom": "^18.0.0 || ^19.0.0",
|
|
25
|
-
"tailwindcss": "^4.0.0"
|
|
26
|
-
},
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"cpy-cli": "^6.0.0"
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"typescript": "~5.9.3"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@a2v2ai/uikit",
|
|
3
|
+
"version": "0.0.37",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"author": "Arulraj V & abofficial1997@gmail.com",
|
|
6
|
+
"description": "A React UI component library built with shadcn/ui and Tailwind CSS",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"check:types": "tsc --noEmit",
|
|
10
|
+
"clean": "node -e \"require('fs').rmSync('../dist', { recursive: true, force: true })\"",
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"postbuild": "cpy ./package.json ../dist/ && cpy ./README.md ../dist/ && cpy ./index.css ../dist/",
|
|
13
|
+
"publish": "npm publish --access public"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"react",
|
|
17
|
+
"ui",
|
|
18
|
+
"components",
|
|
19
|
+
"tailwindcss",
|
|
20
|
+
"shadcn"
|
|
21
|
+
],
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
24
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
25
|
+
"tailwindcss": "^4.0.0"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"cpy-cli": "^6.0.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"typescript": "~5.9.3"
|
|
32
|
+
}
|
|
33
|
+
}
|
package/Dialog/Dialog.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
3
|
-
import { type VariantProps } from "class-variance-authority";
|
|
4
|
-
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
5
|
-
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
7
|
-
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
-
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
declare const dialogContentVariants: (props?: ({
|
|
10
|
-
type?: "desktop" | "mobile" | null | undefined;
|
|
11
|
-
scrollable?: boolean | null | undefined;
|
|
12
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
13
|
-
export interface DialogContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof dialogContentVariants> {
|
|
14
|
-
showCloseButton?: boolean;
|
|
15
|
-
closeButtonVariant?: "default" | "icon-button";
|
|
16
|
-
disableOutsideClick?: boolean;
|
|
17
|
-
loading?: boolean;
|
|
18
|
-
}
|
|
19
|
-
declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
declare const dialogHeaderVariants: (props?: ({
|
|
21
|
-
type?: "header" | "close-only" | "icon-button-close" | null | undefined;
|
|
22
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
23
|
-
export interface DialogHeaderProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof dialogHeaderVariants> {
|
|
24
|
-
}
|
|
25
|
-
declare const DialogHeader: React.ForwardRefExoticComponent<DialogHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
-
declare const dialogFooterVariants: (props?: ({
|
|
27
|
-
type?: "buttons-right" | "full-width" | "single-full-width" | null | undefined;
|
|
28
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
29
|
-
export interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof dialogFooterVariants> {
|
|
30
|
-
}
|
|
31
|
-
declare const DialogFooter: React.ForwardRefExoticComponent<DialogFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
-
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
33
|
-
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
34
|
-
declare const DialogBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
-
export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogBody, dialogContentVariants, dialogHeaderVariants, dialogFooterVariants, };
|
package/Dialog/Dialog.js
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.dialogFooterVariants = exports.dialogHeaderVariants = exports.dialogContentVariants = exports.DialogBody = exports.DialogDescription = exports.DialogTitle = exports.DialogFooter = exports.DialogHeader = exports.DialogContent = exports.DialogTrigger = exports.DialogClose = exports.DialogOverlay = exports.DialogPortal = exports.Dialog = void 0;
|
|
37
|
-
const React = __importStar(require("react"));
|
|
38
|
-
const DialogPrimitive = __importStar(require("@radix-ui/react-dialog"));
|
|
39
|
-
const lucide_react_1 = require("lucide-react");
|
|
40
|
-
const class_variance_authority_1 = require("class-variance-authority");
|
|
41
|
-
const Button_1 = require("../Button/Button");
|
|
42
|
-
const utils_1 = require("../lib/utils");
|
|
43
|
-
const Dialog = DialogPrimitive.Root;
|
|
44
|
-
exports.Dialog = Dialog;
|
|
45
|
-
const DialogTrigger = DialogPrimitive.Trigger;
|
|
46
|
-
exports.DialogTrigger = DialogTrigger;
|
|
47
|
-
const DialogPortal = DialogPrimitive.Portal;
|
|
48
|
-
exports.DialogPortal = DialogPortal;
|
|
49
|
-
const DialogClose = DialogPrimitive.Close;
|
|
50
|
-
exports.DialogClose = DialogClose;
|
|
51
|
-
const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => (React.createElement(DialogPrimitive.Overlay, { ref: ref, className: (0, utils_1.cn)("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props })));
|
|
52
|
-
exports.DialogOverlay = DialogOverlay;
|
|
53
|
-
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
54
|
-
const dialogContentVariants = (0, class_variance_authority_1.cva)("fixed z-50 grid gap-4 bg-white border border-grey-200 shadow-lg duration-200 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", {
|
|
55
|
-
variants: {
|
|
56
|
-
type: {
|
|
57
|
-
desktop: "left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] w-full max-w-[640px] rounded-lg",
|
|
58
|
-
mobile: "left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] w-full max-w-[320px] rounded-lg",
|
|
59
|
-
},
|
|
60
|
-
scrollable: {
|
|
61
|
-
true: "max-h-[80vh] overflow-y-auto",
|
|
62
|
-
false: "",
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
defaultVariants: {
|
|
66
|
-
type: "desktop",
|
|
67
|
-
scrollable: false,
|
|
68
|
-
},
|
|
69
|
-
});
|
|
70
|
-
exports.dialogContentVariants = dialogContentVariants;
|
|
71
|
-
const DialogContent = React.forwardRef(({ className, children, type, scrollable, showCloseButton = true, closeButtonVariant = "default", disableOutsideClick = false, loading = false, ...props }, ref) => (React.createElement(DialogPortal, null,
|
|
72
|
-
React.createElement(DialogOverlay, null),
|
|
73
|
-
React.createElement(DialogPrimitive.Content, { ref: ref, className: (0, utils_1.cn)(dialogContentVariants({ type, scrollable, className })), onPointerDownOutside: disableOutsideClick ? (e) => e.preventDefault() : undefined, onEscapeKeyDown: disableOutsideClick ? (e) => e.preventDefault() : undefined, ...props },
|
|
74
|
-
loading && (React.createElement("div", { className: "absolute inset-0 z-10 flex items-center justify-center bg-white/80 rounded-lg" },
|
|
75
|
-
React.createElement(lucide_react_1.Loader2, { className: "size-8 text-main-600 animate-spin" }))),
|
|
76
|
-
children,
|
|
77
|
-
showCloseButton && closeButtonVariant === "default" && !loading && (React.createElement(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:shadow-[0_0_0_3px_#d4d4d4] disabled:pointer-events-none cursor-pointer" },
|
|
78
|
-
React.createElement(lucide_react_1.X, { className: "size-4 text-grey-600" }),
|
|
79
|
-
React.createElement("span", { className: "sr-only" }, "Close"))),
|
|
80
|
-
showCloseButton && closeButtonVariant === "icon-button" && !loading && (React.createElement(DialogPrimitive.Close, { asChild: true },
|
|
81
|
-
React.createElement(Button_1.Button, { variant: "ghost", size: "small", className: "absolute right-2 top-2 size-9 p-0" },
|
|
82
|
-
React.createElement(lucide_react_1.X, { className: "size-4" }),
|
|
83
|
-
React.createElement("span", { className: "sr-only" }, "Close"))))))));
|
|
84
|
-
exports.DialogContent = DialogContent;
|
|
85
|
-
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
86
|
-
const dialogHeaderVariants = (0, class_variance_authority_1.cva)("flex p-4", {
|
|
87
|
-
variants: {
|
|
88
|
-
type: {
|
|
89
|
-
header: "flex-row items-center justify-between",
|
|
90
|
-
"close-only": "flex-col items-end",
|
|
91
|
-
"icon-button-close": "flex-col items-end justify-center pr-0",
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
defaultVariants: {
|
|
95
|
-
type: "header",
|
|
96
|
-
},
|
|
97
|
-
});
|
|
98
|
-
exports.dialogHeaderVariants = dialogHeaderVariants;
|
|
99
|
-
const DialogHeader = React.forwardRef(({ className, type, ...props }, ref) => (React.createElement("div", { ref: ref, className: (0, utils_1.cn)(dialogHeaderVariants({ type, className })), ...props })));
|
|
100
|
-
exports.DialogHeader = DialogHeader;
|
|
101
|
-
DialogHeader.displayName = "DialogHeader";
|
|
102
|
-
const dialogFooterVariants = (0, class_variance_authority_1.cva)("flex gap-2 p-4", {
|
|
103
|
-
variants: {
|
|
104
|
-
type: {
|
|
105
|
-
"buttons-right": "flex-row items-center justify-end",
|
|
106
|
-
"full-width": "flex-row items-start",
|
|
107
|
-
"single-full-width": "flex-row items-start",
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
defaultVariants: {
|
|
111
|
-
type: "buttons-right",
|
|
112
|
-
},
|
|
113
|
-
});
|
|
114
|
-
exports.dialogFooterVariants = dialogFooterVariants;
|
|
115
|
-
const DialogFooter = React.forwardRef(({ className, type, children, ...props }, ref) => (React.createElement("div", { ref: ref, className: (0, utils_1.cn)(dialogFooterVariants({ type, className })), ...props }, type === "full-width" || type === "single-full-width" ? (React.createElement("div", { className: "flex gap-2 w-full" }, React.Children.map(children, (child) => React.isValidElement(child)
|
|
116
|
-
? React.cloneElement(child, {
|
|
117
|
-
className: (0, utils_1.cn)("flex-1", child.props.className),
|
|
118
|
-
})
|
|
119
|
-
: child))) : (children))));
|
|
120
|
-
exports.DialogFooter = DialogFooter;
|
|
121
|
-
DialogFooter.displayName = "DialogFooter";
|
|
122
|
-
const DialogTitle = React.forwardRef(({ className, ...props }, ref) => (React.createElement(DialogPrimitive.Title, { ref: ref, className: (0, utils_1.cn)("text-2xl font-bold leading-[1.2] tracking-tight text-main-950 font-display", className), ...props })));
|
|
123
|
-
exports.DialogTitle = DialogTitle;
|
|
124
|
-
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
125
|
-
const DialogDescription = React.forwardRef(({ className, ...props }, ref) => (React.createElement(DialogPrimitive.Description, { ref: ref, className: (0, utils_1.cn)("text-sm text-grey-600", className), ...props })));
|
|
126
|
-
exports.DialogDescription = DialogDescription;
|
|
127
|
-
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
128
|
-
const DialogBody = React.forwardRef(({ className, ...props }, ref) => (React.createElement("div", { ref: ref, className: (0, utils_1.cn)("flex-1 px-4 py-2", className), ...props })));
|
|
129
|
-
exports.DialogBody = DialogBody;
|
|
130
|
-
DialogBody.displayName = "DialogBody";
|
package/tmpclaude-2407-cwd
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/d/Work/a2v2/a2v2-uikit/dist
|