@khanhminh/design-system-ui-kit 1.0.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 +118 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/index.cjs +459 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +457 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.js +459 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/package.json +81 -0
package/README.md
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# React Vite Template
|
|
2
|
+
|
|
3
|
+
A minimal, extendable starter template for modern React apps using Vite + TypeScript + Tailwind. Clone this repository when you want a fast project scaffold with sensible defaults (linting, formatting, Husky hooks, and useful dev scripts).
|
|
4
|
+
|
|
5
|
+
## Why use this template
|
|
6
|
+
|
|
7
|
+
- Fast dev server with Vite
|
|
8
|
+
- TypeScript configured and ready
|
|
9
|
+
- Tailwind CSS integrated
|
|
10
|
+
- ESLint + Prettier opinionated setup
|
|
11
|
+
- Husky + lint-staged for pre-commit formatting
|
|
12
|
+
- Small, focused file structure so you can start building immediately
|
|
13
|
+
|
|
14
|
+
## What's included
|
|
15
|
+
|
|
16
|
+
- Vite (dev, build, preview)
|
|
17
|
+
- React 18+ with TypeScript
|
|
18
|
+
- Tailwind CSS + PostCSS
|
|
19
|
+
- ESLint + Prettier + Tailwind plugin
|
|
20
|
+
- Husky + lint-staged pre-commit hooks
|
|
21
|
+
- Opinionated folder layout: `src/` with a minimal app entry
|
|
22
|
+
|
|
23
|
+
## Quickstart
|
|
24
|
+
|
|
25
|
+
1. Clone this template and enter the folder
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
git clone https://github.com/KhanhMinh1392/react-vite-template.git my-app
|
|
29
|
+
cd my-app
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
2. Install dependencies
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm install
|
|
36
|
+
# or
|
|
37
|
+
pnpm install
|
|
38
|
+
# or
|
|
39
|
+
yarn install
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
3. Run the dev server
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npm run dev
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
4. Build for production
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npm run build
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
5. Preview the production build locally
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
npm run preview
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Available scripts
|
|
61
|
+
|
|
62
|
+
The `package.json` includes the following useful scripts:
|
|
63
|
+
|
|
64
|
+
- `dev` - Start Vite dev server
|
|
65
|
+
- `build` - Type-check and build production assets
|
|
66
|
+
- `preview` - Preview the production build locally
|
|
67
|
+
- `lint` - Run ESLint across the project
|
|
68
|
+
|
|
69
|
+
Adjust or add scripts to suit your workflow.
|
|
70
|
+
|
|
71
|
+
## Project structure
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
.
|
|
75
|
+
├─ public/ # static assets served as-is
|
|
76
|
+
├─ src/ # application source
|
|
77
|
+
│ ├─ assets/ # images and static media
|
|
78
|
+
│ ├─ components/ # React components
|
|
79
|
+
│ ├─ lib/ # small helper libraries
|
|
80
|
+
│ ├─ App.tsx
|
|
81
|
+
│ ├─ main.tsx
|
|
82
|
+
│ └─ index.css
|
|
83
|
+
├─ package.json
|
|
84
|
+
├─ tsconfig.json
|
|
85
|
+
└─ vite.config.ts
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Customizing the template
|
|
89
|
+
|
|
90
|
+
- Rename the `name` field in `package.json`.
|
|
91
|
+
- Remove or adapt Husky / lint-staged if you don't want pre-commit hooks.
|
|
92
|
+
- Update ESLint / Prettier rules to match your team's preferences.
|
|
93
|
+
|
|
94
|
+
## Recommended editor setup
|
|
95
|
+
|
|
96
|
+
- VS Code with these extensions:
|
|
97
|
+
- ESLint
|
|
98
|
+
- Prettier - Code formatter
|
|
99
|
+
- Tailwind CSS IntelliSense
|
|
100
|
+
|
|
101
|
+
## Contribution
|
|
102
|
+
|
|
103
|
+
This repo is intended as a personal template. If you want to suggest changes, open an issue or a PR against the original template repository.
|
|
104
|
+
|
|
105
|
+
## License
|
|
106
|
+
|
|
107
|
+
Choose a license for your project after cloning (e.g., MIT). This template does not impose a specific license.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
If you'd like, I can also:
|
|
112
|
+
|
|
113
|
+
- add a short CONTRIBUTING.md
|
|
114
|
+
- add a LICENSE file (MIT by default)
|
|
115
|
+
- wire up GitHub Actions for CI (lint + build)
|
|
116
|
+
|
|
117
|
+
If you want any of those, tell me which and I'll add them.
|
|
118
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
5
|
+
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Button, buttonVariants };
|
|
11
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,QAAA,MAAM,cAAc;;;8EA8BnB,CAAC;AAEF,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,OAAmB,EACnB,IAAgB,EAChB,OAAe,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAC/B,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,2CAYF;AAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var require$$0 = require('react');
|
|
4
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
5
|
+
var radixUi = require('radix-ui');
|
|
6
|
+
var clsx = require('clsx');
|
|
7
|
+
var tailwindMerge = require('tailwind-merge');
|
|
8
|
+
|
|
9
|
+
var jsxRuntime = {exports: {}};
|
|
10
|
+
|
|
11
|
+
var reactJsxRuntime_production = {};
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @license React
|
|
15
|
+
* react-jsx-runtime.production.js
|
|
16
|
+
*
|
|
17
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the MIT license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
var hasRequiredReactJsxRuntime_production;
|
|
24
|
+
|
|
25
|
+
function requireReactJsxRuntime_production () {
|
|
26
|
+
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
27
|
+
hasRequiredReactJsxRuntime_production = 1;
|
|
28
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
29
|
+
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
30
|
+
function jsxProd(type, config, maybeKey) {
|
|
31
|
+
var key = null;
|
|
32
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
33
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
34
|
+
if ("key" in config) {
|
|
35
|
+
maybeKey = {};
|
|
36
|
+
for (var propName in config)
|
|
37
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
38
|
+
} else maybeKey = config;
|
|
39
|
+
config = maybeKey.ref;
|
|
40
|
+
return {
|
|
41
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
42
|
+
type: type,
|
|
43
|
+
key: key,
|
|
44
|
+
ref: void 0 !== config ? config : null,
|
|
45
|
+
props: maybeKey
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
49
|
+
reactJsxRuntime_production.jsx = jsxProd;
|
|
50
|
+
reactJsxRuntime_production.jsxs = jsxProd;
|
|
51
|
+
return reactJsxRuntime_production;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
var reactJsxRuntime_development = {};
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @license React
|
|
58
|
+
* react-jsx-runtime.development.js
|
|
59
|
+
*
|
|
60
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the MIT license found in the
|
|
63
|
+
* LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
var hasRequiredReactJsxRuntime_development;
|
|
67
|
+
|
|
68
|
+
function requireReactJsxRuntime_development () {
|
|
69
|
+
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
70
|
+
hasRequiredReactJsxRuntime_development = 1;
|
|
71
|
+
"production" !== process.env.NODE_ENV &&
|
|
72
|
+
(function () {
|
|
73
|
+
function getComponentNameFromType(type) {
|
|
74
|
+
if (null == type) return null;
|
|
75
|
+
if ("function" === typeof type)
|
|
76
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE
|
|
77
|
+
? null
|
|
78
|
+
: type.displayName || type.name || null;
|
|
79
|
+
if ("string" === typeof type) return type;
|
|
80
|
+
switch (type) {
|
|
81
|
+
case REACT_FRAGMENT_TYPE:
|
|
82
|
+
return "Fragment";
|
|
83
|
+
case REACT_PROFILER_TYPE:
|
|
84
|
+
return "Profiler";
|
|
85
|
+
case REACT_STRICT_MODE_TYPE:
|
|
86
|
+
return "StrictMode";
|
|
87
|
+
case REACT_SUSPENSE_TYPE:
|
|
88
|
+
return "Suspense";
|
|
89
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
90
|
+
return "SuspenseList";
|
|
91
|
+
case REACT_ACTIVITY_TYPE:
|
|
92
|
+
return "Activity";
|
|
93
|
+
}
|
|
94
|
+
if ("object" === typeof type)
|
|
95
|
+
switch (
|
|
96
|
+
("number" === typeof type.tag &&
|
|
97
|
+
console.error(
|
|
98
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
99
|
+
),
|
|
100
|
+
type.$$typeof)
|
|
101
|
+
) {
|
|
102
|
+
case REACT_PORTAL_TYPE:
|
|
103
|
+
return "Portal";
|
|
104
|
+
case REACT_CONTEXT_TYPE:
|
|
105
|
+
return type.displayName || "Context";
|
|
106
|
+
case REACT_CONSUMER_TYPE:
|
|
107
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
108
|
+
case REACT_FORWARD_REF_TYPE:
|
|
109
|
+
var innerType = type.render;
|
|
110
|
+
type = type.displayName;
|
|
111
|
+
type ||
|
|
112
|
+
((type = innerType.displayName || innerType.name || ""),
|
|
113
|
+
(type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
|
|
114
|
+
return type;
|
|
115
|
+
case REACT_MEMO_TYPE:
|
|
116
|
+
return (
|
|
117
|
+
(innerType = type.displayName || null),
|
|
118
|
+
null !== innerType
|
|
119
|
+
? innerType
|
|
120
|
+
: getComponentNameFromType(type.type) || "Memo"
|
|
121
|
+
);
|
|
122
|
+
case REACT_LAZY_TYPE:
|
|
123
|
+
innerType = type._payload;
|
|
124
|
+
type = type._init;
|
|
125
|
+
try {
|
|
126
|
+
return getComponentNameFromType(type(innerType));
|
|
127
|
+
} catch (x) {}
|
|
128
|
+
}
|
|
129
|
+
return null;
|
|
130
|
+
}
|
|
131
|
+
function testStringCoercion(value) {
|
|
132
|
+
return "" + value;
|
|
133
|
+
}
|
|
134
|
+
function checkKeyStringCoercion(value) {
|
|
135
|
+
try {
|
|
136
|
+
testStringCoercion(value);
|
|
137
|
+
var JSCompiler_inline_result = !1;
|
|
138
|
+
} catch (e) {
|
|
139
|
+
JSCompiler_inline_result = !0;
|
|
140
|
+
}
|
|
141
|
+
if (JSCompiler_inline_result) {
|
|
142
|
+
JSCompiler_inline_result = console;
|
|
143
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
144
|
+
var JSCompiler_inline_result$jscomp$0 =
|
|
145
|
+
("function" === typeof Symbol &&
|
|
146
|
+
Symbol.toStringTag &&
|
|
147
|
+
value[Symbol.toStringTag]) ||
|
|
148
|
+
value.constructor.name ||
|
|
149
|
+
"Object";
|
|
150
|
+
JSCompiler_temp_const.call(
|
|
151
|
+
JSCompiler_inline_result,
|
|
152
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
153
|
+
JSCompiler_inline_result$jscomp$0
|
|
154
|
+
);
|
|
155
|
+
return testStringCoercion(value);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
function getTaskName(type) {
|
|
159
|
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
160
|
+
if (
|
|
161
|
+
"object" === typeof type &&
|
|
162
|
+
null !== type &&
|
|
163
|
+
type.$$typeof === REACT_LAZY_TYPE
|
|
164
|
+
)
|
|
165
|
+
return "<...>";
|
|
166
|
+
try {
|
|
167
|
+
var name = getComponentNameFromType(type);
|
|
168
|
+
return name ? "<" + name + ">" : "<...>";
|
|
169
|
+
} catch (x) {
|
|
170
|
+
return "<...>";
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
function getOwner() {
|
|
174
|
+
var dispatcher = ReactSharedInternals.A;
|
|
175
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
176
|
+
}
|
|
177
|
+
function UnknownOwner() {
|
|
178
|
+
return Error("react-stack-top-frame");
|
|
179
|
+
}
|
|
180
|
+
function hasValidKey(config) {
|
|
181
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
182
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
183
|
+
if (getter && getter.isReactWarning) return !1;
|
|
184
|
+
}
|
|
185
|
+
return void 0 !== config.key;
|
|
186
|
+
}
|
|
187
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
188
|
+
function warnAboutAccessingKey() {
|
|
189
|
+
specialPropKeyWarningShown ||
|
|
190
|
+
((specialPropKeyWarningShown = !0),
|
|
191
|
+
console.error(
|
|
192
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
193
|
+
displayName
|
|
194
|
+
));
|
|
195
|
+
}
|
|
196
|
+
warnAboutAccessingKey.isReactWarning = !0;
|
|
197
|
+
Object.defineProperty(props, "key", {
|
|
198
|
+
get: warnAboutAccessingKey,
|
|
199
|
+
configurable: !0
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
203
|
+
var componentName = getComponentNameFromType(this.type);
|
|
204
|
+
didWarnAboutElementRef[componentName] ||
|
|
205
|
+
((didWarnAboutElementRef[componentName] = !0),
|
|
206
|
+
console.error(
|
|
207
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
208
|
+
));
|
|
209
|
+
componentName = this.props.ref;
|
|
210
|
+
return void 0 !== componentName ? componentName : null;
|
|
211
|
+
}
|
|
212
|
+
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
213
|
+
var refProp = props.ref;
|
|
214
|
+
type = {
|
|
215
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
216
|
+
type: type,
|
|
217
|
+
key: key,
|
|
218
|
+
props: props,
|
|
219
|
+
_owner: owner
|
|
220
|
+
};
|
|
221
|
+
null !== (void 0 !== refProp ? refProp : null)
|
|
222
|
+
? Object.defineProperty(type, "ref", {
|
|
223
|
+
enumerable: !1,
|
|
224
|
+
get: elementRefGetterWithDeprecationWarning
|
|
225
|
+
})
|
|
226
|
+
: Object.defineProperty(type, "ref", { enumerable: !1, value: null });
|
|
227
|
+
type._store = {};
|
|
228
|
+
Object.defineProperty(type._store, "validated", {
|
|
229
|
+
configurable: !1,
|
|
230
|
+
enumerable: !1,
|
|
231
|
+
writable: !0,
|
|
232
|
+
value: 0
|
|
233
|
+
});
|
|
234
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
235
|
+
configurable: !1,
|
|
236
|
+
enumerable: !1,
|
|
237
|
+
writable: !0,
|
|
238
|
+
value: null
|
|
239
|
+
});
|
|
240
|
+
Object.defineProperty(type, "_debugStack", {
|
|
241
|
+
configurable: !1,
|
|
242
|
+
enumerable: !1,
|
|
243
|
+
writable: !0,
|
|
244
|
+
value: debugStack
|
|
245
|
+
});
|
|
246
|
+
Object.defineProperty(type, "_debugTask", {
|
|
247
|
+
configurable: !1,
|
|
248
|
+
enumerable: !1,
|
|
249
|
+
writable: !0,
|
|
250
|
+
value: debugTask
|
|
251
|
+
});
|
|
252
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
253
|
+
return type;
|
|
254
|
+
}
|
|
255
|
+
function jsxDEVImpl(
|
|
256
|
+
type,
|
|
257
|
+
config,
|
|
258
|
+
maybeKey,
|
|
259
|
+
isStaticChildren,
|
|
260
|
+
debugStack,
|
|
261
|
+
debugTask
|
|
262
|
+
) {
|
|
263
|
+
var children = config.children;
|
|
264
|
+
if (void 0 !== children)
|
|
265
|
+
if (isStaticChildren)
|
|
266
|
+
if (isArrayImpl(children)) {
|
|
267
|
+
for (
|
|
268
|
+
isStaticChildren = 0;
|
|
269
|
+
isStaticChildren < children.length;
|
|
270
|
+
isStaticChildren++
|
|
271
|
+
)
|
|
272
|
+
validateChildKeys(children[isStaticChildren]);
|
|
273
|
+
Object.freeze && Object.freeze(children);
|
|
274
|
+
} else
|
|
275
|
+
console.error(
|
|
276
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
277
|
+
);
|
|
278
|
+
else validateChildKeys(children);
|
|
279
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
280
|
+
children = getComponentNameFromType(type);
|
|
281
|
+
var keys = Object.keys(config).filter(function (k) {
|
|
282
|
+
return "key" !== k;
|
|
283
|
+
});
|
|
284
|
+
isStaticChildren =
|
|
285
|
+
0 < keys.length
|
|
286
|
+
? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
|
|
287
|
+
: "{key: someKey}";
|
|
288
|
+
didWarnAboutKeySpread[children + isStaticChildren] ||
|
|
289
|
+
((keys =
|
|
290
|
+
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
|
|
291
|
+
console.error(
|
|
292
|
+
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
|
293
|
+
isStaticChildren,
|
|
294
|
+
children,
|
|
295
|
+
keys,
|
|
296
|
+
children
|
|
297
|
+
),
|
|
298
|
+
(didWarnAboutKeySpread[children + isStaticChildren] = !0));
|
|
299
|
+
}
|
|
300
|
+
children = null;
|
|
301
|
+
void 0 !== maybeKey &&
|
|
302
|
+
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
|
303
|
+
hasValidKey(config) &&
|
|
304
|
+
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
|
305
|
+
if ("key" in config) {
|
|
306
|
+
maybeKey = {};
|
|
307
|
+
for (var propName in config)
|
|
308
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
309
|
+
} else maybeKey = config;
|
|
310
|
+
children &&
|
|
311
|
+
defineKeyPropWarningGetter(
|
|
312
|
+
maybeKey,
|
|
313
|
+
"function" === typeof type
|
|
314
|
+
? type.displayName || type.name || "Unknown"
|
|
315
|
+
: type
|
|
316
|
+
);
|
|
317
|
+
return ReactElement(
|
|
318
|
+
type,
|
|
319
|
+
children,
|
|
320
|
+
maybeKey,
|
|
321
|
+
getOwner(),
|
|
322
|
+
debugStack,
|
|
323
|
+
debugTask
|
|
324
|
+
);
|
|
325
|
+
}
|
|
326
|
+
function validateChildKeys(node) {
|
|
327
|
+
isValidElement(node)
|
|
328
|
+
? node._store && (node._store.validated = 1)
|
|
329
|
+
: "object" === typeof node &&
|
|
330
|
+
null !== node &&
|
|
331
|
+
node.$$typeof === REACT_LAZY_TYPE &&
|
|
332
|
+
("fulfilled" === node._payload.status
|
|
333
|
+
? isValidElement(node._payload.value) &&
|
|
334
|
+
node._payload.value._store &&
|
|
335
|
+
(node._payload.value._store.validated = 1)
|
|
336
|
+
: node._store && (node._store.validated = 1));
|
|
337
|
+
}
|
|
338
|
+
function isValidElement(object) {
|
|
339
|
+
return (
|
|
340
|
+
"object" === typeof object &&
|
|
341
|
+
null !== object &&
|
|
342
|
+
object.$$typeof === REACT_ELEMENT_TYPE
|
|
343
|
+
);
|
|
344
|
+
}
|
|
345
|
+
var React = require$$0,
|
|
346
|
+
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
347
|
+
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
348
|
+
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
349
|
+
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
350
|
+
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
351
|
+
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
352
|
+
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
353
|
+
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
354
|
+
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
355
|
+
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
|
356
|
+
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
357
|
+
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
358
|
+
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
359
|
+
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
360
|
+
ReactSharedInternals =
|
|
361
|
+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
362
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
363
|
+
isArrayImpl = Array.isArray,
|
|
364
|
+
createTask = console.createTask
|
|
365
|
+
? console.createTask
|
|
366
|
+
: function () {
|
|
367
|
+
return null;
|
|
368
|
+
};
|
|
369
|
+
React = {
|
|
370
|
+
react_stack_bottom_frame: function (callStackForError) {
|
|
371
|
+
return callStackForError();
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
var specialPropKeyWarningShown;
|
|
375
|
+
var didWarnAboutElementRef = {};
|
|
376
|
+
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
|
|
377
|
+
React,
|
|
378
|
+
UnknownOwner
|
|
379
|
+
)();
|
|
380
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
381
|
+
var didWarnAboutKeySpread = {};
|
|
382
|
+
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
383
|
+
reactJsxRuntime_development.jsx = function (type, config, maybeKey) {
|
|
384
|
+
var trackActualOwner =
|
|
385
|
+
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
386
|
+
return jsxDEVImpl(
|
|
387
|
+
type,
|
|
388
|
+
config,
|
|
389
|
+
maybeKey,
|
|
390
|
+
!1,
|
|
391
|
+
trackActualOwner
|
|
392
|
+
? Error("react-stack-top-frame")
|
|
393
|
+
: unknownOwnerDebugStack,
|
|
394
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
395
|
+
);
|
|
396
|
+
};
|
|
397
|
+
reactJsxRuntime_development.jsxs = function (type, config, maybeKey) {
|
|
398
|
+
var trackActualOwner =
|
|
399
|
+
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
400
|
+
return jsxDEVImpl(
|
|
401
|
+
type,
|
|
402
|
+
config,
|
|
403
|
+
maybeKey,
|
|
404
|
+
!0,
|
|
405
|
+
trackActualOwner
|
|
406
|
+
? Error("react-stack-top-frame")
|
|
407
|
+
: unknownOwnerDebugStack,
|
|
408
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
409
|
+
);
|
|
410
|
+
};
|
|
411
|
+
})();
|
|
412
|
+
return reactJsxRuntime_development;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
if (process.env.NODE_ENV === 'production') {
|
|
416
|
+
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
417
|
+
} else {
|
|
418
|
+
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
var jsxRuntimeExports = jsxRuntime.exports;
|
|
422
|
+
|
|
423
|
+
function cn(...inputs) {
|
|
424
|
+
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
const buttonVariants = classVarianceAuthority.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
|
|
428
|
+
variants: {
|
|
429
|
+
variant: {
|
|
430
|
+
default: 'bg-primary text-primary-foreground hover:bg-primary/90',
|
|
431
|
+
destructive: 'bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',
|
|
432
|
+
outline: 'border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50',
|
|
433
|
+
secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
|
434
|
+
ghost: 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',
|
|
435
|
+
link: 'text-primary underline-offset-4 hover:underline',
|
|
436
|
+
},
|
|
437
|
+
size: {
|
|
438
|
+
default: 'h-9 px-4 py-2 has-[>svg]:px-3',
|
|
439
|
+
xs: "h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
440
|
+
sm: 'h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5',
|
|
441
|
+
lg: 'h-10 rounded-md px-6 has-[>svg]:px-4',
|
|
442
|
+
icon: 'size-9',
|
|
443
|
+
'icon-xs': "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3",
|
|
444
|
+
'icon-sm': 'size-8',
|
|
445
|
+
'icon-lg': 'size-10',
|
|
446
|
+
},
|
|
447
|
+
},
|
|
448
|
+
defaultVariants: {
|
|
449
|
+
variant: 'default',
|
|
450
|
+
size: 'default',
|
|
451
|
+
},
|
|
452
|
+
});
|
|
453
|
+
function Button({ className, variant = 'default', size = 'default', asChild = false, ...props }) {
|
|
454
|
+
const Comp = asChild ? radixUi.Slot.Root : 'button';
|
|
455
|
+
return (jsxRuntimeExports.jsx(Comp, { className: cn(buttonVariants({ variant, size, className })), "data-size": size, "data-slot": "button", "data-variant": variant, ...props }));
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
exports.Button = Button;
|
|
459
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../node_modules/react/cjs/react-jsx-runtime.production.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../src/lib/utils.ts","../src/components/ui/button.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n maybeKey,\n getOwner(),\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Slot } from 'radix-ui';\n\nimport { cn } from '@/lib/utils';\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n destructive:\n 'bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',\n outline:\n 'border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n ghost: 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',\n link: 'text-primary underline-offset-4 hover:underline',\n },\n size: {\n default: 'h-9 px-4 py-2 has-[>svg]:px-3',\n xs: \"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3\",\n sm: 'h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5',\n lg: 'h-10 rounded-md px-6 has-[>svg]:px-4',\n icon: 'size-9',\n 'icon-xs': \"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3\",\n 'icon-sm': 'size-8',\n 'icon-lg': 'size-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\nfunction Button({\n className,\n variant = 'default',\n size = 'default',\n asChild = false,\n ...props\n}: React.ComponentProps<'button'> &\n VariantProps<typeof buttonVariants> & {\n asChild?: boolean;\n }) {\n const Comp = asChild ? Slot.Root : 'button';\n\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n data-size={size}\n data-slot=\"button\"\n data-variant={variant}\n {...props}\n />\n );\n}\n\nexport { Button, buttonVariants };\n"],"names":["jsxRuntimeModule","require$$0","require$$1","twMerge","clsx","cva","Slot","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,CAAA,IAAI,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC;AACjE,GAAE,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC;AACpD,CAAA,SAAS,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE;GACvC,IAAI,GAAG,GAAG,IAAI;GACd,KAAK,CAAC,KAAK,QAAQ,KAAK,GAAG,GAAG,EAAE,GAAG,QAAQ,CAAC;AAC9C,GAAE,KAAK,CAAC,KAAK,MAAM,CAAC,GAAG,KAAK,GAAG,GAAG,EAAE,GAAG,MAAM,CAAC,GAAG,CAAC;AAClD,GAAE,IAAI,KAAK,IAAI,MAAM,EAAE;KACnB,QAAQ,GAAG,EAAE;AACjB,KAAI,KAAK,IAAI,QAAQ,IAAI,MAAM;AAC/B,OAAM,KAAK,KAAK,QAAQ,KAAK,QAAQ,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IAChE,MAAM,QAAQ,GAAG,MAAM;AAC1B,GAAE,MAAM,GAAG,QAAQ,CAAC,GAAG;AACvB,GAAE,OAAO;KACL,QAAQ,EAAE,kBAAkB;KAC5B,IAAI,EAAE,IAAI;KACV,GAAG,EAAE,GAAG;KACR,GAAG,EAAE,KAAK,CAAC,KAAK,MAAM,GAAG,MAAM,GAAG,IAAI;AAC1C,KAAI,KAAK,EAAE;IACR;AACH;AACA,CAAA,0BAAA,CAAA,QAAgB,GAAG,mBAAmB;AAC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Q;AACnB,YAAA,SAAS,EAAE,SAAS;AACrB,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,IAAI,EAAE,SAAS;AAChB,KAAA;AACF,CAAA,CACF;AAED,SAAS,MAAM,CAAC,EACd,SAAS,EACT,OAAO,GAAG,SAAS,EACnB,IAAI,GAAG,SAAS,EAChB,OAAO,GAAG,KAAK,EACf,GAAG,KAAK,EAIP,EAAA;AACD,IAAA,MAAM,IAAI,GAAG,OAAO,GAAGC,YAAI,CAAC,IAAI,GAAG,QAAQ;AAE3C,IAAA,QACEC,qBAAA,CAAC,IAAI,EAAA,EACH,SAAS,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,EAAA,WAAA,EAChD,IAAI,EAAA,WAAA,EACL,QAAQ,EAAA,cAAA,EACJ,OAAO,EAAA,GACjB,KAAK,EAAA,CACT;AAEN;;;;","x_google_ignoreList":[0,1,2]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAC"}
|