ic-ai-component-v0 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/README.md +1 -0
- package/dist/index.cjs +259 -0
- package/dist/index.d.cts +32 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +213 -0
- package/dist/styles.css +108 -0
- package/package.json +70 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# ai-components-v0
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/index.ts
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
|
+
Button: () => Button,
|
|
34
|
+
Card: () => Card,
|
|
35
|
+
CardContent: () => CardContent,
|
|
36
|
+
CardDescription: () => CardDescription,
|
|
37
|
+
CardFooter: () => CardFooter,
|
|
38
|
+
CardHeader: () => CardHeader,
|
|
39
|
+
CardTitle: () => CardTitle,
|
|
40
|
+
Input: () => Input,
|
|
41
|
+
buttonVariants: () => buttonVariants,
|
|
42
|
+
cn: () => cn
|
|
43
|
+
});
|
|
44
|
+
module.exports = __toCommonJS(index_exports);
|
|
45
|
+
|
|
46
|
+
// src/components/ui/button.tsx
|
|
47
|
+
var React = __toESM(require("react"), 1);
|
|
48
|
+
var import_react_slot = require("@radix-ui/react-slot");
|
|
49
|
+
var import_class_variance_authority = require("class-variance-authority");
|
|
50
|
+
|
|
51
|
+
// src/lib/utils.ts
|
|
52
|
+
var import_clsx = require("clsx");
|
|
53
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
54
|
+
function cn(...inputs) {
|
|
55
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// src/components/ui/button.tsx
|
|
59
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
60
|
+
var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
61
|
+
"inline-flex items-center justify-center gap-1 whitespace-nowrap font-medium transition-all focus-visible:outline-none disabled:pointer-events-none",
|
|
62
|
+
{
|
|
63
|
+
variants: {
|
|
64
|
+
variant: {
|
|
65
|
+
primary: "",
|
|
66
|
+
neutral: "",
|
|
67
|
+
error: ""
|
|
68
|
+
},
|
|
69
|
+
fill: {
|
|
70
|
+
filled: "",
|
|
71
|
+
stroke: "border bg-white",
|
|
72
|
+
lighter: "",
|
|
73
|
+
ghost: "bg-transparent"
|
|
74
|
+
},
|
|
75
|
+
size: {
|
|
76
|
+
md: "h-10 rounded-[10px] px-2.5 text-sm leading-5 tracking-[-0.6px] [&_svg]:size-5",
|
|
77
|
+
sm: "h-9 rounded-lg px-2 text-sm leading-5 tracking-[-0.6px] [&_svg]:size-5",
|
|
78
|
+
xs: "h-8 rounded-lg px-1.5 text-sm leading-5 tracking-[-0.6px] [&_svg]:size-5",
|
|
79
|
+
"2xs": "h-7 rounded-lg px-1 text-xs leading-4 tracking-[-0.5px] [&_svg]:size-4"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
compoundVariants: [
|
|
83
|
+
// ── Filled ──
|
|
84
|
+
{
|
|
85
|
+
variant: "primary",
|
|
86
|
+
fill: "filled",
|
|
87
|
+
className: "bg-btn-primary text-white hover:bg-btn-primary-hover focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-primary-alpha)] disabled:bg-btn-disabled-bg disabled:text-btn-disabled-text"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
variant: "neutral",
|
|
91
|
+
fill: "filled",
|
|
92
|
+
className: "bg-btn-neutral text-white hover:bg-btn-neutral-hover focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-neutral-alpha)] disabled:bg-btn-disabled-bg disabled:text-btn-disabled-text"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
variant: "error",
|
|
96
|
+
fill: "filled",
|
|
97
|
+
className: "bg-btn-error text-white hover:bg-btn-error-hover focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-error-alpha)] disabled:bg-btn-disabled-bg disabled:text-btn-disabled-text"
|
|
98
|
+
},
|
|
99
|
+
// ── Stroke ──
|
|
100
|
+
{
|
|
101
|
+
variant: "primary",
|
|
102
|
+
fill: "stroke",
|
|
103
|
+
className: "border-btn-primary text-btn-primary hover:bg-btn-primary-alpha focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-primary-alpha)] disabled:border-btn-disabled-text disabled:text-btn-disabled-text disabled:bg-white"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
variant: "neutral",
|
|
107
|
+
fill: "stroke",
|
|
108
|
+
className: "border-btn-stroke-neutral text-btn-neutral-text hover:bg-btn-lighter-neutral-bg focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-neutral-alpha)] disabled:border-btn-disabled-text disabled:text-btn-disabled-text disabled:bg-white"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
variant: "error",
|
|
112
|
+
fill: "stroke",
|
|
113
|
+
className: "border-btn-error text-btn-error hover:bg-btn-error-alpha focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-error-alpha)] disabled:border-btn-disabled-text disabled:text-btn-disabled-text disabled:bg-white"
|
|
114
|
+
},
|
|
115
|
+
// ── Lighter ──
|
|
116
|
+
{
|
|
117
|
+
variant: "primary",
|
|
118
|
+
fill: "lighter",
|
|
119
|
+
className: "bg-btn-primary-alpha text-btn-primary hover:bg-btn-primary/20 focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-primary-alpha)] disabled:bg-btn-disabled-bg disabled:text-btn-disabled-text"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
variant: "neutral",
|
|
123
|
+
fill: "lighter",
|
|
124
|
+
className: "bg-btn-lighter-neutral-bg text-btn-neutral-text hover:bg-btn-neutral-alpha focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-neutral-alpha)] disabled:bg-btn-disabled-bg disabled:text-btn-disabled-text"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
variant: "error",
|
|
128
|
+
fill: "lighter",
|
|
129
|
+
className: "bg-btn-error-alpha text-btn-error hover:bg-btn-error/20 focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-error-alpha)] disabled:bg-btn-disabled-bg disabled:text-btn-disabled-text"
|
|
130
|
+
},
|
|
131
|
+
// ── Ghost ──
|
|
132
|
+
{
|
|
133
|
+
variant: "primary",
|
|
134
|
+
fill: "ghost",
|
|
135
|
+
className: "text-btn-primary hover:bg-btn-primary-alpha focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-primary-alpha)] disabled:text-btn-disabled-text"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
variant: "neutral",
|
|
139
|
+
fill: "ghost",
|
|
140
|
+
className: "text-btn-neutral-ghost-text hover:bg-btn-lighter-neutral-bg focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-neutral-alpha)] disabled:text-btn-disabled-text"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
variant: "error",
|
|
144
|
+
fill: "ghost",
|
|
145
|
+
className: "text-btn-error hover:bg-btn-error-alpha focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-error-alpha)] disabled:text-btn-disabled-text"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
defaultVariants: {
|
|
149
|
+
variant: "primary",
|
|
150
|
+
fill: "filled",
|
|
151
|
+
size: "md"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
var iconOnlySizeMap = {
|
|
156
|
+
md: "size-10 px-0",
|
|
157
|
+
sm: "size-9 px-0",
|
|
158
|
+
xs: "size-8 px-0",
|
|
159
|
+
"2xs": "size-7 px-0"
|
|
160
|
+
};
|
|
161
|
+
var Button = React.forwardRef(
|
|
162
|
+
({
|
|
163
|
+
className,
|
|
164
|
+
variant = "primary",
|
|
165
|
+
fill = "filled",
|
|
166
|
+
size = "md",
|
|
167
|
+
asChild = false,
|
|
168
|
+
leftIcon,
|
|
169
|
+
rightIcon,
|
|
170
|
+
iconOnly = false,
|
|
171
|
+
children,
|
|
172
|
+
...props
|
|
173
|
+
}, ref) => {
|
|
174
|
+
const Comp = asChild ? import_react_slot.Slot : "button";
|
|
175
|
+
const classes = cn(
|
|
176
|
+
buttonVariants({ variant, fill, size }),
|
|
177
|
+
iconOnly && iconOnlySizeMap[size ?? "md"],
|
|
178
|
+
className
|
|
179
|
+
);
|
|
180
|
+
if (asChild) {
|
|
181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, { className: classes, ref, ...props, children });
|
|
182
|
+
}
|
|
183
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Comp, { className: classes, ref, ...props, children: [
|
|
184
|
+
leftIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "shrink-0", children: leftIcon }),
|
|
185
|
+
iconOnly ? children : children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "px-1", children }),
|
|
186
|
+
rightIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "shrink-0", children: rightIcon })
|
|
187
|
+
] });
|
|
188
|
+
}
|
|
189
|
+
);
|
|
190
|
+
Button.displayName = "Button";
|
|
191
|
+
|
|
192
|
+
// src/components/ui/card.tsx
|
|
193
|
+
var React2 = __toESM(require("react"), 1);
|
|
194
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
195
|
+
var Card = React2.forwardRef(
|
|
196
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
197
|
+
"div",
|
|
198
|
+
{
|
|
199
|
+
ref,
|
|
200
|
+
className: cn("rounded-lg border border-border bg-card text-card-foreground shadow-sm", className),
|
|
201
|
+
...props
|
|
202
|
+
}
|
|
203
|
+
)
|
|
204
|
+
);
|
|
205
|
+
Card.displayName = "Card";
|
|
206
|
+
var CardHeader = React2.forwardRef(
|
|
207
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
|
|
208
|
+
);
|
|
209
|
+
CardHeader.displayName = "CardHeader";
|
|
210
|
+
var CardTitle = React2.forwardRef(
|
|
211
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { ref, className: cn("text-2xl font-semibold leading-none tracking-tight", className), ...props })
|
|
212
|
+
);
|
|
213
|
+
CardTitle.displayName = "CardTitle";
|
|
214
|
+
var CardDescription = React2.forwardRef(
|
|
215
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
|
|
216
|
+
);
|
|
217
|
+
CardDescription.displayName = "CardDescription";
|
|
218
|
+
var CardContent = React2.forwardRef(
|
|
219
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { ref, className: cn("p-6 pt-0", className), ...props })
|
|
220
|
+
);
|
|
221
|
+
CardContent.displayName = "CardContent";
|
|
222
|
+
var CardFooter = React2.forwardRef(
|
|
223
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
|
|
224
|
+
);
|
|
225
|
+
CardFooter.displayName = "CardFooter";
|
|
226
|
+
|
|
227
|
+
// src/components/ui/input.tsx
|
|
228
|
+
var React3 = __toESM(require("react"), 1);
|
|
229
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
230
|
+
var Input = React3.forwardRef(
|
|
231
|
+
({ className, type, ...props }, ref) => {
|
|
232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
233
|
+
"input",
|
|
234
|
+
{
|
|
235
|
+
type,
|
|
236
|
+
className: cn(
|
|
237
|
+
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
238
|
+
className
|
|
239
|
+
),
|
|
240
|
+
ref,
|
|
241
|
+
...props
|
|
242
|
+
}
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
);
|
|
246
|
+
Input.displayName = "Input";
|
|
247
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
248
|
+
0 && (module.exports = {
|
|
249
|
+
Button,
|
|
250
|
+
Card,
|
|
251
|
+
CardContent,
|
|
252
|
+
CardDescription,
|
|
253
|
+
CardFooter,
|
|
254
|
+
CardHeader,
|
|
255
|
+
CardTitle,
|
|
256
|
+
Input,
|
|
257
|
+
buttonVariants,
|
|
258
|
+
cn
|
|
259
|
+
});
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
declare const buttonVariants: (props?: ({
|
|
7
|
+
variant?: "primary" | "neutral" | "error" | null | undefined;
|
|
8
|
+
fill?: "filled" | "stroke" | "lighter" | "ghost" | null | undefined;
|
|
9
|
+
size?: "md" | "sm" | "xs" | "2xs" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
12
|
+
asChild?: boolean;
|
|
13
|
+
leftIcon?: React.ReactNode;
|
|
14
|
+
rightIcon?: React.ReactNode;
|
|
15
|
+
iconOnly?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
|
|
19
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
|
|
26
|
+
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
27
|
+
}
|
|
28
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
29
|
+
|
|
30
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
31
|
+
|
|
32
|
+
export { Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Input, type InputProps, buttonVariants, cn };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
declare const buttonVariants: (props?: ({
|
|
7
|
+
variant?: "primary" | "neutral" | "error" | null | undefined;
|
|
8
|
+
fill?: "filled" | "stroke" | "lighter" | "ghost" | null | undefined;
|
|
9
|
+
size?: "md" | "sm" | "xs" | "2xs" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
12
|
+
asChild?: boolean;
|
|
13
|
+
leftIcon?: React.ReactNode;
|
|
14
|
+
rightIcon?: React.ReactNode;
|
|
15
|
+
iconOnly?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
|
|
19
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
|
|
26
|
+
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
27
|
+
}
|
|
28
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
29
|
+
|
|
30
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
31
|
+
|
|
32
|
+
export { Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Input, type InputProps, buttonVariants, cn };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
// src/components/ui/button.tsx
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
|
|
6
|
+
// src/lib/utils.ts
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
|
+
import { twMerge } from "tailwind-merge";
|
|
9
|
+
function cn(...inputs) {
|
|
10
|
+
return twMerge(clsx(inputs));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// src/components/ui/button.tsx
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
var buttonVariants = cva(
|
|
16
|
+
"inline-flex items-center justify-center gap-1 whitespace-nowrap font-medium transition-all focus-visible:outline-none disabled:pointer-events-none",
|
|
17
|
+
{
|
|
18
|
+
variants: {
|
|
19
|
+
variant: {
|
|
20
|
+
primary: "",
|
|
21
|
+
neutral: "",
|
|
22
|
+
error: ""
|
|
23
|
+
},
|
|
24
|
+
fill: {
|
|
25
|
+
filled: "",
|
|
26
|
+
stroke: "border bg-white",
|
|
27
|
+
lighter: "",
|
|
28
|
+
ghost: "bg-transparent"
|
|
29
|
+
},
|
|
30
|
+
size: {
|
|
31
|
+
md: "h-10 rounded-[10px] px-2.5 text-sm leading-5 tracking-[-0.6px] [&_svg]:size-5",
|
|
32
|
+
sm: "h-9 rounded-lg px-2 text-sm leading-5 tracking-[-0.6px] [&_svg]:size-5",
|
|
33
|
+
xs: "h-8 rounded-lg px-1.5 text-sm leading-5 tracking-[-0.6px] [&_svg]:size-5",
|
|
34
|
+
"2xs": "h-7 rounded-lg px-1 text-xs leading-4 tracking-[-0.5px] [&_svg]:size-4"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
compoundVariants: [
|
|
38
|
+
// ── Filled ──
|
|
39
|
+
{
|
|
40
|
+
variant: "primary",
|
|
41
|
+
fill: "filled",
|
|
42
|
+
className: "bg-btn-primary text-white hover:bg-btn-primary-hover focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-primary-alpha)] disabled:bg-btn-disabled-bg disabled:text-btn-disabled-text"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
variant: "neutral",
|
|
46
|
+
fill: "filled",
|
|
47
|
+
className: "bg-btn-neutral text-white hover:bg-btn-neutral-hover focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-neutral-alpha)] disabled:bg-btn-disabled-bg disabled:text-btn-disabled-text"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
variant: "error",
|
|
51
|
+
fill: "filled",
|
|
52
|
+
className: "bg-btn-error text-white hover:bg-btn-error-hover focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-error-alpha)] disabled:bg-btn-disabled-bg disabled:text-btn-disabled-text"
|
|
53
|
+
},
|
|
54
|
+
// ── Stroke ──
|
|
55
|
+
{
|
|
56
|
+
variant: "primary",
|
|
57
|
+
fill: "stroke",
|
|
58
|
+
className: "border-btn-primary text-btn-primary hover:bg-btn-primary-alpha focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-primary-alpha)] disabled:border-btn-disabled-text disabled:text-btn-disabled-text disabled:bg-white"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
variant: "neutral",
|
|
62
|
+
fill: "stroke",
|
|
63
|
+
className: "border-btn-stroke-neutral text-btn-neutral-text hover:bg-btn-lighter-neutral-bg focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-neutral-alpha)] disabled:border-btn-disabled-text disabled:text-btn-disabled-text disabled:bg-white"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
variant: "error",
|
|
67
|
+
fill: "stroke",
|
|
68
|
+
className: "border-btn-error text-btn-error hover:bg-btn-error-alpha focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-error-alpha)] disabled:border-btn-disabled-text disabled:text-btn-disabled-text disabled:bg-white"
|
|
69
|
+
},
|
|
70
|
+
// ── Lighter ──
|
|
71
|
+
{
|
|
72
|
+
variant: "primary",
|
|
73
|
+
fill: "lighter",
|
|
74
|
+
className: "bg-btn-primary-alpha text-btn-primary hover:bg-btn-primary/20 focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-primary-alpha)] disabled:bg-btn-disabled-bg disabled:text-btn-disabled-text"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
variant: "neutral",
|
|
78
|
+
fill: "lighter",
|
|
79
|
+
className: "bg-btn-lighter-neutral-bg text-btn-neutral-text hover:bg-btn-neutral-alpha focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-neutral-alpha)] disabled:bg-btn-disabled-bg disabled:text-btn-disabled-text"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
variant: "error",
|
|
83
|
+
fill: "lighter",
|
|
84
|
+
className: "bg-btn-error-alpha text-btn-error hover:bg-btn-error/20 focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-error-alpha)] disabled:bg-btn-disabled-bg disabled:text-btn-disabled-text"
|
|
85
|
+
},
|
|
86
|
+
// ── Ghost ──
|
|
87
|
+
{
|
|
88
|
+
variant: "primary",
|
|
89
|
+
fill: "ghost",
|
|
90
|
+
className: "text-btn-primary hover:bg-btn-primary-alpha focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-primary-alpha)] disabled:text-btn-disabled-text"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
variant: "neutral",
|
|
94
|
+
fill: "ghost",
|
|
95
|
+
className: "text-btn-neutral-ghost-text hover:bg-btn-lighter-neutral-bg focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-neutral-alpha)] disabled:text-btn-disabled-text"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
variant: "error",
|
|
99
|
+
fill: "ghost",
|
|
100
|
+
className: "text-btn-error hover:bg-btn-error-alpha focus-visible:shadow-[0_0_0_2px_#fff,0_0_0_4px_var(--ic-btn-error-alpha)] disabled:text-btn-disabled-text"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
defaultVariants: {
|
|
104
|
+
variant: "primary",
|
|
105
|
+
fill: "filled",
|
|
106
|
+
size: "md"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
var iconOnlySizeMap = {
|
|
111
|
+
md: "size-10 px-0",
|
|
112
|
+
sm: "size-9 px-0",
|
|
113
|
+
xs: "size-8 px-0",
|
|
114
|
+
"2xs": "size-7 px-0"
|
|
115
|
+
};
|
|
116
|
+
var Button = React.forwardRef(
|
|
117
|
+
({
|
|
118
|
+
className,
|
|
119
|
+
variant = "primary",
|
|
120
|
+
fill = "filled",
|
|
121
|
+
size = "md",
|
|
122
|
+
asChild = false,
|
|
123
|
+
leftIcon,
|
|
124
|
+
rightIcon,
|
|
125
|
+
iconOnly = false,
|
|
126
|
+
children,
|
|
127
|
+
...props
|
|
128
|
+
}, ref) => {
|
|
129
|
+
const Comp = asChild ? Slot : "button";
|
|
130
|
+
const classes = cn(
|
|
131
|
+
buttonVariants({ variant, fill, size }),
|
|
132
|
+
iconOnly && iconOnlySizeMap[size ?? "md"],
|
|
133
|
+
className
|
|
134
|
+
);
|
|
135
|
+
if (asChild) {
|
|
136
|
+
return /* @__PURE__ */ jsx(Comp, { className: classes, ref, ...props, children });
|
|
137
|
+
}
|
|
138
|
+
return /* @__PURE__ */ jsxs(Comp, { className: classes, ref, ...props, children: [
|
|
139
|
+
leftIcon && /* @__PURE__ */ jsx("span", { className: "shrink-0", children: leftIcon }),
|
|
140
|
+
iconOnly ? children : children && /* @__PURE__ */ jsx("span", { className: "px-1", children }),
|
|
141
|
+
rightIcon && /* @__PURE__ */ jsx("span", { className: "shrink-0", children: rightIcon })
|
|
142
|
+
] });
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
Button.displayName = "Button";
|
|
146
|
+
|
|
147
|
+
// src/components/ui/card.tsx
|
|
148
|
+
import * as React2 from "react";
|
|
149
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
150
|
+
var Card = React2.forwardRef(
|
|
151
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx2(
|
|
152
|
+
"div",
|
|
153
|
+
{
|
|
154
|
+
ref,
|
|
155
|
+
className: cn("rounded-lg border border-border bg-card text-card-foreground shadow-sm", className),
|
|
156
|
+
...props
|
|
157
|
+
}
|
|
158
|
+
)
|
|
159
|
+
);
|
|
160
|
+
Card.displayName = "Card";
|
|
161
|
+
var CardHeader = React2.forwardRef(
|
|
162
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx2("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
|
|
163
|
+
);
|
|
164
|
+
CardHeader.displayName = "CardHeader";
|
|
165
|
+
var CardTitle = React2.forwardRef(
|
|
166
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx2("div", { ref, className: cn("text-2xl font-semibold leading-none tracking-tight", className), ...props })
|
|
167
|
+
);
|
|
168
|
+
CardTitle.displayName = "CardTitle";
|
|
169
|
+
var CardDescription = React2.forwardRef(
|
|
170
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx2("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
|
|
171
|
+
);
|
|
172
|
+
CardDescription.displayName = "CardDescription";
|
|
173
|
+
var CardContent = React2.forwardRef(
|
|
174
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx2("div", { ref, className: cn("p-6 pt-0", className), ...props })
|
|
175
|
+
);
|
|
176
|
+
CardContent.displayName = "CardContent";
|
|
177
|
+
var CardFooter = React2.forwardRef(
|
|
178
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx2("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
|
|
179
|
+
);
|
|
180
|
+
CardFooter.displayName = "CardFooter";
|
|
181
|
+
|
|
182
|
+
// src/components/ui/input.tsx
|
|
183
|
+
import * as React3 from "react";
|
|
184
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
185
|
+
var Input = React3.forwardRef(
|
|
186
|
+
({ className, type, ...props }, ref) => {
|
|
187
|
+
return /* @__PURE__ */ jsx3(
|
|
188
|
+
"input",
|
|
189
|
+
{
|
|
190
|
+
type,
|
|
191
|
+
className: cn(
|
|
192
|
+
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
193
|
+
className
|
|
194
|
+
),
|
|
195
|
+
ref,
|
|
196
|
+
...props
|
|
197
|
+
}
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
);
|
|
201
|
+
Input.displayName = "Input";
|
|
202
|
+
export {
|
|
203
|
+
Button,
|
|
204
|
+
Card,
|
|
205
|
+
CardContent,
|
|
206
|
+
CardDescription,
|
|
207
|
+
CardFooter,
|
|
208
|
+
CardHeader,
|
|
209
|
+
CardTitle,
|
|
210
|
+
Input,
|
|
211
|
+
buttonVariants,
|
|
212
|
+
cn
|
|
213
|
+
};
|
package/dist/styles.css
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
|
|
3
|
+
/* ============================================================
|
|
4
|
+
* Theme tokens
|
|
5
|
+
* Naming convention: --ic-{semantic-role}
|
|
6
|
+
* ============================================================ */
|
|
7
|
+
|
|
8
|
+
@theme inline {
|
|
9
|
+
--color-background: var(--ic-background);
|
|
10
|
+
--color-foreground: var(--ic-foreground);
|
|
11
|
+
--color-primary: var(--ic-primary);
|
|
12
|
+
--color-primary-foreground: var(--ic-primary-foreground);
|
|
13
|
+
--color-secondary: var(--ic-secondary);
|
|
14
|
+
--color-secondary-foreground: var(--ic-secondary-foreground);
|
|
15
|
+
--color-muted: var(--ic-muted);
|
|
16
|
+
--color-muted-foreground: var(--ic-muted-foreground);
|
|
17
|
+
--color-accent: var(--ic-accent);
|
|
18
|
+
--color-accent-foreground: var(--ic-accent-foreground);
|
|
19
|
+
--color-destructive: var(--ic-destructive);
|
|
20
|
+
--color-destructive-foreground: var(--ic-destructive-foreground);
|
|
21
|
+
--color-border: var(--ic-border);
|
|
22
|
+
--color-input: var(--ic-input);
|
|
23
|
+
--color-ring: var(--ic-ring);
|
|
24
|
+
--color-card: var(--ic-card);
|
|
25
|
+
--color-card-foreground: var(--ic-card-foreground);
|
|
26
|
+
--radius-sm: calc(var(--ic-radius) - 4px);
|
|
27
|
+
--radius-md: calc(var(--ic-radius) - 2px);
|
|
28
|
+
--radius-lg: var(--ic-radius);
|
|
29
|
+
--radius-xl: calc(var(--ic-radius) + 4px);
|
|
30
|
+
|
|
31
|
+
/* Button tokens */
|
|
32
|
+
--color-btn-primary: var(--ic-btn-primary);
|
|
33
|
+
--color-btn-primary-hover: var(--ic-btn-primary-hover);
|
|
34
|
+
--color-btn-error: var(--ic-btn-error);
|
|
35
|
+
--color-btn-error-hover: var(--ic-btn-error-hover);
|
|
36
|
+
--color-btn-neutral: var(--ic-btn-neutral);
|
|
37
|
+
--color-btn-neutral-hover: var(--ic-btn-neutral-hover);
|
|
38
|
+
--color-btn-neutral-text: var(--ic-btn-neutral-text);
|
|
39
|
+
--color-btn-neutral-ghost-text: var(--ic-btn-neutral-ghost-text);
|
|
40
|
+
--color-btn-neutral-ghost-icon: var(--ic-btn-neutral-ghost-icon);
|
|
41
|
+
--color-btn-disabled-text: var(--ic-btn-disabled-text);
|
|
42
|
+
--color-btn-disabled-bg: var(--ic-btn-disabled-bg);
|
|
43
|
+
--color-btn-stroke-neutral: var(--ic-btn-stroke-neutral);
|
|
44
|
+
--color-btn-lighter-neutral-bg: var(--ic-btn-lighter-neutral-bg);
|
|
45
|
+
--color-btn-primary-alpha: var(--ic-btn-primary-alpha);
|
|
46
|
+
--color-btn-error-alpha: var(--ic-btn-error-alpha);
|
|
47
|
+
--color-btn-neutral-alpha: var(--ic-btn-neutral-alpha);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:root {
|
|
51
|
+
--ic-background: oklch(1 0 0);
|
|
52
|
+
--ic-foreground: oklch(0.145 0 0);
|
|
53
|
+
--ic-primary: oklch(0.205 0 0);
|
|
54
|
+
--ic-primary-foreground: oklch(0.985 0 0);
|
|
55
|
+
--ic-secondary: oklch(0.97 0 0);
|
|
56
|
+
--ic-secondary-foreground: oklch(0.205 0 0);
|
|
57
|
+
--ic-muted: oklch(0.97 0 0);
|
|
58
|
+
--ic-muted-foreground: oklch(0.556 0 0);
|
|
59
|
+
--ic-accent: oklch(0.97 0 0);
|
|
60
|
+
--ic-accent-foreground: oklch(0.205 0 0);
|
|
61
|
+
--ic-destructive: oklch(0.577 0.245 27.325);
|
|
62
|
+
--ic-destructive-foreground: oklch(0.577 0.245 27.325);
|
|
63
|
+
--ic-border: oklch(0.922 0 0);
|
|
64
|
+
--ic-input: oklch(0.922 0 0);
|
|
65
|
+
--ic-ring: oklch(0.708 0 0);
|
|
66
|
+
--ic-card: oklch(1 0 0);
|
|
67
|
+
--ic-card-foreground: oklch(0.145 0 0);
|
|
68
|
+
--ic-radius: 0.625rem;
|
|
69
|
+
|
|
70
|
+
/* Button tokens */
|
|
71
|
+
--ic-btn-primary: #ff6a00;
|
|
72
|
+
--ic-btn-primary-hover: #bf3e00;
|
|
73
|
+
--ic-btn-error: #fb3748;
|
|
74
|
+
--ic-btn-error-hover: #d02533;
|
|
75
|
+
--ic-btn-neutral: #262626;
|
|
76
|
+
--ic-btn-neutral-hover: #171717;
|
|
77
|
+
--ic-btn-neutral-text: #171717;
|
|
78
|
+
--ic-btn-neutral-ghost-text: #7b7b7b;
|
|
79
|
+
--ic-btn-neutral-ghost-icon: #5c5c5c;
|
|
80
|
+
--ic-btn-disabled-text: #d1d1d1;
|
|
81
|
+
--ic-btn-disabled-bg: #f7f7f7;
|
|
82
|
+
--ic-btn-stroke-neutral: #ebebeb;
|
|
83
|
+
--ic-btn-lighter-neutral-bg: #f7f7f7;
|
|
84
|
+
--ic-btn-primary-alpha: rgba(255, 106, 0, 0.1);
|
|
85
|
+
--ic-btn-error-alpha: rgba(251, 55, 72, 0.1);
|
|
86
|
+
--ic-btn-neutral-alpha: rgba(153, 160, 174, 0.16);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.dark {
|
|
90
|
+
--ic-background: oklch(0.145 0 0);
|
|
91
|
+
--ic-foreground: oklch(0.985 0 0);
|
|
92
|
+
--ic-primary: oklch(0.985 0 0);
|
|
93
|
+
--ic-primary-foreground: oklch(0.205 0 0);
|
|
94
|
+
--ic-secondary: oklch(0.269 0 0);
|
|
95
|
+
--ic-secondary-foreground: oklch(0.985 0 0);
|
|
96
|
+
--ic-muted: oklch(0.269 0 0);
|
|
97
|
+
--ic-muted-foreground: oklch(0.708 0 0);
|
|
98
|
+
--ic-accent: oklch(0.269 0 0);
|
|
99
|
+
--ic-accent-foreground: oklch(0.985 0 0);
|
|
100
|
+
--ic-destructive: oklch(0.396 0.141 25.723);
|
|
101
|
+
--ic-destructive-foreground: oklch(0.637 0.237 25.331);
|
|
102
|
+
--ic-border: oklch(0.269 0 0);
|
|
103
|
+
--ic-input: oklch(0.269 0 0);
|
|
104
|
+
--ic-ring: oklch(0.439 0 0);
|
|
105
|
+
--ic-card: oklch(0.205 0 0);
|
|
106
|
+
--ic-card-foreground: oklch(0.985 0 0);
|
|
107
|
+
--ic-radius: 0.625rem;
|
|
108
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ic-ai-component-v0",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "React component library built with shadcn/ui + Tailwind CSS v4",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./dist/index.d.cts",
|
|
17
|
+
"default": "./dist/index.cjs"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"./styles.css": "./dist/styles.css"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"sideEffects": false,
|
|
26
|
+
"scripts": {
|
|
27
|
+
"dev": "vite",
|
|
28
|
+
"build": "tsup",
|
|
29
|
+
"check": "tsc --noEmit",
|
|
30
|
+
"test": "vitest run",
|
|
31
|
+
"test:watch": "vitest",
|
|
32
|
+
"clean": "rm -rf dist",
|
|
33
|
+
"prepublishOnly": "pnpm run clean && pnpm run build"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
37
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
38
|
+
"tailwindcss": "^4.0.0"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
42
|
+
"class-variance-authority": "^0.7.1",
|
|
43
|
+
"clsx": "^2.1.1",
|
|
44
|
+
"tailwind-merge": "^3.3.0"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@figma/code-connect": "^1.4.2",
|
|
48
|
+
"@tailwindcss/vite": "^4.1.3",
|
|
49
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
50
|
+
"@testing-library/react": "^16.3.0",
|
|
51
|
+
"@types/react": "^19.1.2",
|
|
52
|
+
"@types/react-dom": "^19.1.2",
|
|
53
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
54
|
+
"jsdom": "^26.1.0",
|
|
55
|
+
"react": "^19.1.0",
|
|
56
|
+
"react-dom": "^19.1.0",
|
|
57
|
+
"tailwindcss": "^4.1.3",
|
|
58
|
+
"tsup": "^8.5.1",
|
|
59
|
+
"typescript": "^5.8.3",
|
|
60
|
+
"vite": "^6.3.2",
|
|
61
|
+
"vitest": "^3.1.1"
|
|
62
|
+
},
|
|
63
|
+
"pnpm": {
|
|
64
|
+
"onlyBuiltDependencies": [
|
|
65
|
+
"esbuild"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"packageManager": "pnpm@10.33.0",
|
|
69
|
+
"license": "MIT"
|
|
70
|
+
}
|