@wealthx/shadcn 0.0.1 → 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/.turbo/turbo-build.log +160 -0
- package/CHANGELOG.md +13 -0
- package/CHANGES.md +345 -0
- package/dist/chunk-2WZVSBAY.mjs +232 -0
- package/dist/chunk-2Y7YJKPE.mjs +47 -0
- package/dist/chunk-3U7SD3MS.mjs +55 -0
- package/dist/chunk-3VQNJ235.mjs +114 -0
- package/dist/chunk-55CEW76V.mjs +35 -0
- package/dist/chunk-6AFMNC42.mjs +146 -0
- package/dist/chunk-6OJF6XRN.mjs +117 -0
- package/dist/chunk-7LDIMXGM.mjs +181 -0
- package/dist/chunk-AMJ23O53.mjs +122 -0
- package/dist/chunk-BBJBJSXQ.mjs +44 -0
- package/dist/chunk-BGP2N52Z.mjs +126 -0
- package/dist/chunk-BMFN37JH.mjs +41 -0
- package/dist/chunk-CGOKTPXU.mjs +79 -0
- package/dist/chunk-CZ3BW5GL.mjs +81 -0
- package/dist/chunk-DBHJ5KC3.mjs +55 -0
- package/dist/chunk-DDPA2XXS.mjs +97 -0
- package/dist/chunk-DS2AMHN2.mjs +30 -0
- package/dist/chunk-E3K6O4FZ.mjs +57 -0
- package/dist/chunk-FWCSY2DS.mjs +37 -0
- package/dist/chunk-GPRJQ24C.mjs +28 -0
- package/dist/chunk-HS7TFG7V.mjs +24 -0
- package/dist/chunk-HUVTPUV2.mjs +256 -0
- package/dist/chunk-IAOOZCUY.mjs +90 -0
- package/dist/chunk-JF4PHPD5.mjs +111 -0
- package/dist/chunk-JU2RUWHF.mjs +123 -0
- package/dist/chunk-KKHTJNMM.mjs +86 -0
- package/dist/chunk-MJIEMGRD.mjs +266 -0
- package/dist/chunk-MKFL5MNH.mjs +372 -0
- package/dist/chunk-MQ72DIBH.mjs +105 -0
- package/dist/chunk-NGYG2EA6.mjs +148 -0
- package/dist/chunk-NWZ46DJL.mjs +213 -0
- package/dist/chunk-OXQQNQZI.mjs +75 -0
- package/dist/chunk-PMKODV6M.mjs +161 -0
- package/dist/chunk-QOJ2DQD6.mjs +57 -0
- package/dist/chunk-RL772EH7.mjs +126 -0
- package/dist/chunk-SLWCCURD.mjs +99 -0
- package/dist/chunk-V7CNWJT3.mjs +10 -0
- package/dist/chunk-VG6UF6UT.mjs +68 -0
- package/dist/chunk-VYMHBV6D.mjs +123 -0
- package/dist/chunk-VZ2NR7L3.mjs +195 -0
- package/dist/chunk-YN5SYTOO.mjs +117 -0
- package/dist/chunk-Z3MK2KKZ.mjs +83 -0
- package/dist/chunk-ZN2QKLF6.mjs +187 -0
- package/dist/chunk-ZZV5JVNW.mjs +34 -0
- package/dist/components/ui/accordion.js +142 -0
- package/dist/components/ui/accordion.mjs +14 -0
- package/dist/components/ui/alert-dialog.js +413 -0
- package/dist/components/ui/alert-dialog.mjs +34 -0
- package/dist/components/ui/alert.js +134 -0
- package/dist/components/ui/alert.mjs +12 -0
- package/dist/components/ui/avatar.js +173 -0
- package/dist/components/ui/avatar.mjs +18 -0
- package/dist/components/ui/badge.js +163 -0
- package/dist/components/ui/badge.mjs +11 -0
- package/dist/components/ui/button.js +198 -0
- package/dist/components/ui/button.mjs +11 -0
- package/dist/components/ui/calendar.js +408 -0
- package/dist/components/ui/calendar.mjs +12 -0
- package/dist/components/ui/card.js +156 -0
- package/dist/components/ui/card.mjs +20 -0
- package/dist/components/ui/checkbox.js +166 -0
- package/dist/components/ui/checkbox.mjs +11 -0
- package/dist/components/ui/chip.js +199 -0
- package/dist/components/ui/chip.mjs +10 -0
- package/dist/components/ui/data-table.js +925 -0
- package/dist/components/ui/data-table.mjs +29 -0
- package/dist/components/ui/date-picker.js +561 -0
- package/dist/components/ui/date-picker.mjs +15 -0
- package/dist/components/ui/dialog.js +378 -0
- package/dist/components/ui/dialog.mjs +30 -0
- package/dist/components/ui/drawer.js +213 -0
- package/dist/components/ui/drawer.mjs +28 -0
- package/dist/components/ui/dropdown-menu.js +338 -0
- package/dist/components/ui/dropdown-menu.mjs +38 -0
- package/dist/components/ui/empty.js +173 -0
- package/dist/components/ui/empty.mjs +18 -0
- package/dist/components/ui/field.js +359 -0
- package/dist/components/ui/field.mjs +28 -0
- package/dist/components/ui/input-group.js +406 -0
- package/dist/components/ui/input-group.mjs +22 -0
- package/dist/components/ui/input-otp.js +149 -0
- package/dist/components/ui/input-otp.mjs +14 -0
- package/dist/components/ui/input.js +81 -0
- package/dist/components/ui/input.mjs +8 -0
- package/dist/components/ui/label.js +85 -0
- package/dist/components/ui/label.mjs +8 -0
- package/dist/components/ui/pagination.js +333 -0
- package/dist/components/ui/pagination.mjs +22 -0
- package/dist/components/ui/popover.js +167 -0
- package/dist/components/ui/popover.mjs +22 -0
- package/dist/components/ui/progress.js +97 -0
- package/dist/components/ui/progress.mjs +8 -0
- package/dist/components/ui/radio-group.js +178 -0
- package/dist/components/ui/radio-group.mjs +12 -0
- package/dist/components/ui/select.js +262 -0
- package/dist/components/ui/select.mjs +28 -0
- package/dist/components/ui/separator.js +86 -0
- package/dist/components/ui/separator.mjs +8 -0
- package/dist/components/ui/sheet.js +227 -0
- package/dist/components/ui/sheet.mjs +26 -0
- package/dist/components/ui/skeleton.js +75 -0
- package/dist/components/ui/skeleton.mjs +8 -0
- package/dist/components/ui/sonner.js +86 -0
- package/dist/components/ui/sonner.mjs +7 -0
- package/dist/components/ui/spinner.js +93 -0
- package/dist/components/ui/spinner.mjs +10 -0
- package/dist/components/ui/switch.js +178 -0
- package/dist/components/ui/switch.mjs +11 -0
- package/dist/components/ui/table.js +184 -0
- package/dist/components/ui/table.mjs +22 -0
- package/dist/components/ui/tabs.js +181 -0
- package/dist/components/ui/tabs.mjs +16 -0
- package/dist/components/ui/textarea.js +79 -0
- package/dist/components/ui/textarea.mjs +8 -0
- package/dist/components/ui/toggle-group.js +184 -0
- package/dist/components/ui/toggle-group.mjs +12 -0
- package/dist/components/ui/toggle.js +108 -0
- package/dist/components/ui/toggle.mjs +11 -0
- package/dist/components/ui/tooltip.js +140 -0
- package/dist/components/ui/tooltip.mjs +16 -0
- package/dist/index.js +4409 -0
- package/dist/index.mjs +462 -0
- package/dist/lib/colors.js +84 -0
- package/dist/lib/colors.mjs +13 -0
- package/dist/lib/theme-provider.js +150 -0
- package/dist/lib/theme-provider.mjs +13 -0
- package/dist/lib/typography.js +157 -0
- package/dist/lib/typography.mjs +25 -0
- package/dist/lib/utils.js +34 -0
- package/dist/lib/utils.mjs +7 -0
- package/dist/styles.css +2 -0
- package/package.json +228 -11
- package/scripts/build-css.ts +15 -9
- package/src/components/index.tsx +443 -0
- package/src/components/ui/accordion.tsx +99 -0
- package/src/components/ui/alert-dialog.tsx +239 -0
- package/src/components/ui/alert.tsx +81 -0
- package/src/components/ui/avatar.tsx +130 -0
- package/src/components/ui/badge.tsx +57 -0
- package/src/components/ui/button.tsx +69 -37
- package/src/components/ui/calendar.tsx +252 -0
- package/src/components/ui/card.tsx +106 -0
- package/src/components/ui/checkbox.tsx +111 -0
- package/src/components/ui/chip.tsx +65 -0
- package/src/components/ui/data-table.tsx +490 -0
- package/src/components/ui/date-picker.tsx +133 -0
- package/src/components/ui/dialog.tsx +195 -0
- package/src/components/ui/drawer.tsx +169 -0
- package/src/components/ui/dropdown-menu.tsx +315 -0
- package/src/components/ui/empty.tsx +128 -0
- package/src/components/ui/field.tsx +273 -0
- package/src/components/ui/input-group.tsx +190 -0
- package/src/components/ui/input-otp.tsx +90 -0
- package/src/components/ui/input.tsx +28 -0
- package/src/components/ui/label.tsx +24 -0
- package/src/components/ui/pagination.tsx +148 -0
- package/src/components/ui/popover.tsx +112 -0
- package/src/components/ui/progress.tsx +40 -0
- package/src/components/ui/radio-group.tsx +129 -0
- package/src/components/ui/select.tsx +201 -0
- package/src/components/ui/separator.tsx +26 -0
- package/src/components/ui/sheet.tsx +182 -0
- package/src/components/ui/skeleton.tsx +22 -0
- package/src/components/ui/sonner.tsx +48 -0
- package/src/components/ui/spinner.tsx +41 -0
- package/src/components/ui/switch.tsx +126 -0
- package/src/components/ui/table.tsx +143 -0
- package/src/components/ui/tabs.tsx +119 -0
- package/src/components/ui/textarea.tsx +28 -0
- package/src/components/ui/toggle-group.tsx +94 -0
- package/src/components/ui/toggle.tsx +59 -0
- package/src/components/ui/tooltip.tsx +80 -0
- package/src/index.ts +15 -3
- package/src/lib/colors.ts +74 -0
- package/src/lib/slot.tsx +68 -0
- package/src/lib/theme-provider.tsx +134 -0
- package/src/lib/typography.ts +153 -0
- package/src/lib/utils.ts +1 -1
- package/src/styles/globals.css +377 -107
- package/src/styles/styles-css.ts +1 -1
- package/tsup.config.ts +48 -2
- package/src/provider/ShadcnProvider.tsx +0 -89
- package/src/provider/index.ts +0 -2
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
var __export = (target, all) => {
|
|
33
|
+
for (var name in all)
|
|
34
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
35
|
+
};
|
|
36
|
+
var __copyProps = (to, from, except, desc) => {
|
|
37
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
38
|
+
for (let key of __getOwnPropNames(from))
|
|
39
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
40
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
41
|
+
}
|
|
42
|
+
return to;
|
|
43
|
+
};
|
|
44
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
45
|
+
|
|
46
|
+
// src/components/ui/label.tsx
|
|
47
|
+
var label_exports = {};
|
|
48
|
+
__export(label_exports, {
|
|
49
|
+
Label: () => Label
|
|
50
|
+
});
|
|
51
|
+
module.exports = __toCommonJS(label_exports);
|
|
52
|
+
|
|
53
|
+
// src/lib/utils.ts
|
|
54
|
+
var import_clsx = require("clsx");
|
|
55
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
56
|
+
function cn(...inputs) {
|
|
57
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// src/components/ui/label.tsx
|
|
61
|
+
var import_jsx_runtime = (
|
|
62
|
+
// eslint-disable-next-line jsx-a11y/label-has-associated-control -- htmlFor is passed by the consumer
|
|
63
|
+
require("react/jsx-runtime")
|
|
64
|
+
);
|
|
65
|
+
function Label(_a) {
|
|
66
|
+
var _b = _a, {
|
|
67
|
+
className
|
|
68
|
+
} = _b, props = __objRest(_b, [
|
|
69
|
+
"className"
|
|
70
|
+
]);
|
|
71
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
72
|
+
"label",
|
|
73
|
+
__spreadValues({
|
|
74
|
+
className: cn(
|
|
75
|
+
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
76
|
+
className
|
|
77
|
+
),
|
|
78
|
+
"data-slot": "label"
|
|
79
|
+
}, props)
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
83
|
+
0 && (module.exports = {
|
|
84
|
+
Label
|
|
85
|
+
});
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
37
|
+
var __export = (target, all) => {
|
|
38
|
+
for (var name in all)
|
|
39
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
40
|
+
};
|
|
41
|
+
var __copyProps = (to, from, except, desc) => {
|
|
42
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
43
|
+
for (let key of __getOwnPropNames(from))
|
|
44
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
45
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
46
|
+
}
|
|
47
|
+
return to;
|
|
48
|
+
};
|
|
49
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
50
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
51
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
52
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
53
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
54
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
55
|
+
mod
|
|
56
|
+
));
|
|
57
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
|
+
|
|
59
|
+
// src/components/ui/pagination.tsx
|
|
60
|
+
var pagination_exports = {};
|
|
61
|
+
__export(pagination_exports, {
|
|
62
|
+
Pagination: () => Pagination,
|
|
63
|
+
PaginationContent: () => PaginationContent,
|
|
64
|
+
PaginationEllipsis: () => PaginationEllipsis,
|
|
65
|
+
PaginationItem: () => PaginationItem,
|
|
66
|
+
PaginationLink: () => PaginationLink,
|
|
67
|
+
PaginationNext: () => PaginationNext,
|
|
68
|
+
PaginationPrevious: () => PaginationPrevious
|
|
69
|
+
});
|
|
70
|
+
module.exports = __toCommonJS(pagination_exports);
|
|
71
|
+
var import_lucide_react2 = require("lucide-react");
|
|
72
|
+
|
|
73
|
+
// src/lib/utils.ts
|
|
74
|
+
var import_clsx = require("clsx");
|
|
75
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
76
|
+
function cn(...inputs) {
|
|
77
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// src/components/ui/button.tsx
|
|
81
|
+
var import_react = require("react");
|
|
82
|
+
var import_class_variance_authority = require("class-variance-authority");
|
|
83
|
+
var import_lucide_react = require("lucide-react");
|
|
84
|
+
|
|
85
|
+
// src/lib/slot.tsx
|
|
86
|
+
var React = __toESM(require("react"));
|
|
87
|
+
function mergeRefs(...refs) {
|
|
88
|
+
return (value) => {
|
|
89
|
+
for (const ref of refs) {
|
|
90
|
+
if (typeof ref === "function") ref(value);
|
|
91
|
+
else if (ref !== null)
|
|
92
|
+
ref.current = value;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
var Slot = React.forwardRef(
|
|
97
|
+
(_a, forwardedRef) => {
|
|
98
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
99
|
+
const child = React.Children.only(children);
|
|
100
|
+
if (!React.isValidElement(child)) return null;
|
|
101
|
+
const childProps = child.props;
|
|
102
|
+
const merged = __spreadValues({}, props);
|
|
103
|
+
for (const key of Object.keys(childProps)) {
|
|
104
|
+
if (key === "className") {
|
|
105
|
+
merged.className = [props.className, childProps.className].filter(Boolean).join(" ");
|
|
106
|
+
} else if (key === "style") {
|
|
107
|
+
merged.style = __spreadValues(__spreadValues({}, props.style), childProps.style);
|
|
108
|
+
} else if (key.startsWith("on") && typeof childProps[key] === "function") {
|
|
109
|
+
const parentHandler = props[key];
|
|
110
|
+
if (typeof parentHandler === "function") {
|
|
111
|
+
merged[key] = (...args) => {
|
|
112
|
+
childProps[key](...args);
|
|
113
|
+
parentHandler(...args);
|
|
114
|
+
};
|
|
115
|
+
} else {
|
|
116
|
+
merged[key] = childProps[key];
|
|
117
|
+
}
|
|
118
|
+
} else {
|
|
119
|
+
merged[key] = childProps[key];
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
const childRef = child.ref;
|
|
123
|
+
merged.ref = forwardedRef ? mergeRefs(forwardedRef, childRef) : childRef;
|
|
124
|
+
return React.cloneElement(
|
|
125
|
+
child,
|
|
126
|
+
merged
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
);
|
|
130
|
+
Slot.displayName = "Slot";
|
|
131
|
+
|
|
132
|
+
// src/components/ui/button.tsx
|
|
133
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
134
|
+
var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
135
|
+
"inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 font-sans text-sm font-medium whitespace-nowrap transition-all active:scale-[0.98] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
136
|
+
{
|
|
137
|
+
variants: {
|
|
138
|
+
variant: {
|
|
139
|
+
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
140
|
+
secondary: "bg-brand-secondary text-brand-secondary-foreground shadow-xs hover:bg-brand-secondary/80 focus-visible:ring-brand-secondary/30",
|
|
141
|
+
destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",
|
|
142
|
+
outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
143
|
+
"outline-primary": "border border-primary text-foreground bg-transparent shadow-xs hover:bg-primary/5 focus-visible:ring-primary/50",
|
|
144
|
+
"outline-secondary": "border border-brand-secondary text-brand-secondary bg-transparent shadow-xs hover:bg-brand-secondary/10 focus-visible:ring-brand-secondary/30",
|
|
145
|
+
ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs dark:hover:bg-accent/50",
|
|
146
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
147
|
+
},
|
|
148
|
+
size: {
|
|
149
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
150
|
+
xs: "h-6 gap-1 px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
151
|
+
sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
152
|
+
lg: "h-10 px-6 has-[>svg]:px-4",
|
|
153
|
+
icon: "size-9",
|
|
154
|
+
"icon-xs": "size-6 [&_svg:not([class*='size-'])]:size-3",
|
|
155
|
+
"icon-sm": "size-8",
|
|
156
|
+
"icon-lg": "size-10"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
defaultVariants: {
|
|
160
|
+
variant: "default",
|
|
161
|
+
size: "default"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
);
|
|
165
|
+
var Button = (0, import_react.forwardRef)(function Button2(_a, ref) {
|
|
166
|
+
var _b = _a, {
|
|
167
|
+
className,
|
|
168
|
+
variant,
|
|
169
|
+
size,
|
|
170
|
+
asChild = false,
|
|
171
|
+
loading = false,
|
|
172
|
+
disabled,
|
|
173
|
+
children
|
|
174
|
+
} = _b, props = __objRest(_b, [
|
|
175
|
+
"className",
|
|
176
|
+
"variant",
|
|
177
|
+
"size",
|
|
178
|
+
"asChild",
|
|
179
|
+
"loading",
|
|
180
|
+
"disabled",
|
|
181
|
+
"children"
|
|
182
|
+
]);
|
|
183
|
+
const Comp = asChild ? Slot : "button";
|
|
184
|
+
const isIconOnly = size === "icon" || size === "icon-xs" || size === "icon-sm" || size === "icon-lg";
|
|
185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
186
|
+
Comp,
|
|
187
|
+
__spreadProps(__spreadValues({
|
|
188
|
+
className: cn(buttonVariants({ variant, size, className })),
|
|
189
|
+
"data-size": size,
|
|
190
|
+
"data-slot": "button",
|
|
191
|
+
"data-variant": variant,
|
|
192
|
+
disabled: loading || disabled,
|
|
193
|
+
ref
|
|
194
|
+
}, props), {
|
|
195
|
+
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
196
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Loader2, { "aria-hidden": "true", className: "animate-spin" }),
|
|
197
|
+
!isIconOnly && children
|
|
198
|
+
] }) : children
|
|
199
|
+
})
|
|
200
|
+
);
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
// src/components/ui/pagination.tsx
|
|
204
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
205
|
+
function Pagination(_a) {
|
|
206
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
208
|
+
"nav",
|
|
209
|
+
__spreadValues({
|
|
210
|
+
"aria-label": "pagination",
|
|
211
|
+
className: cn("mx-auto flex w-full justify-center", className),
|
|
212
|
+
"data-slot": "pagination",
|
|
213
|
+
role: "navigation"
|
|
214
|
+
}, props)
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
function PaginationContent(_a) {
|
|
218
|
+
var _b = _a, {
|
|
219
|
+
className
|
|
220
|
+
} = _b, props = __objRest(_b, [
|
|
221
|
+
"className"
|
|
222
|
+
]);
|
|
223
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
224
|
+
"ul",
|
|
225
|
+
__spreadValues({
|
|
226
|
+
className: cn("flex flex-row items-center gap-1", className),
|
|
227
|
+
"data-slot": "pagination-content"
|
|
228
|
+
}, props)
|
|
229
|
+
);
|
|
230
|
+
}
|
|
231
|
+
function PaginationItem(_a) {
|
|
232
|
+
var props = __objRest(_a, []);
|
|
233
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("li", __spreadValues({ "data-slot": "pagination-item" }, props));
|
|
234
|
+
}
|
|
235
|
+
function PaginationLink(_a) {
|
|
236
|
+
var _b = _a, {
|
|
237
|
+
className,
|
|
238
|
+
isActive,
|
|
239
|
+
size = "icon"
|
|
240
|
+
} = _b, props = __objRest(_b, [
|
|
241
|
+
"className",
|
|
242
|
+
"isActive",
|
|
243
|
+
"size"
|
|
244
|
+
]);
|
|
245
|
+
return (
|
|
246
|
+
// eslint-disable-next-line jsx-a11y/anchor-has-content -- children passed via props spread
|
|
247
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
248
|
+
"a",
|
|
249
|
+
__spreadValues({
|
|
250
|
+
"aria-current": isActive ? "page" : void 0,
|
|
251
|
+
className: cn(
|
|
252
|
+
buttonVariants({
|
|
253
|
+
variant: isActive ? "outline" : "ghost",
|
|
254
|
+
size
|
|
255
|
+
}),
|
|
256
|
+
className
|
|
257
|
+
),
|
|
258
|
+
"data-active": isActive,
|
|
259
|
+
"data-slot": "pagination-link"
|
|
260
|
+
}, props)
|
|
261
|
+
)
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
function PaginationPrevious(_a) {
|
|
265
|
+
var _b = _a, {
|
|
266
|
+
className
|
|
267
|
+
} = _b, props = __objRest(_b, [
|
|
268
|
+
"className"
|
|
269
|
+
]);
|
|
270
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
271
|
+
PaginationLink,
|
|
272
|
+
__spreadProps(__spreadValues({
|
|
273
|
+
"aria-label": "Go to previous page",
|
|
274
|
+
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
275
|
+
size: "default"
|
|
276
|
+
}, props), {
|
|
277
|
+
children: [
|
|
278
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react2.ChevronLeftIcon, {}),
|
|
279
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "hidden sm:block", children: "Previous" })
|
|
280
|
+
]
|
|
281
|
+
})
|
|
282
|
+
);
|
|
283
|
+
}
|
|
284
|
+
function PaginationNext(_a) {
|
|
285
|
+
var _b = _a, {
|
|
286
|
+
className
|
|
287
|
+
} = _b, props = __objRest(_b, [
|
|
288
|
+
"className"
|
|
289
|
+
]);
|
|
290
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
291
|
+
PaginationLink,
|
|
292
|
+
__spreadProps(__spreadValues({
|
|
293
|
+
"aria-label": "Go to next page",
|
|
294
|
+
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
295
|
+
size: "default"
|
|
296
|
+
}, props), {
|
|
297
|
+
children: [
|
|
298
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "hidden sm:block", children: "Next" }),
|
|
299
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react2.ChevronRightIcon, {})
|
|
300
|
+
]
|
|
301
|
+
})
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
function PaginationEllipsis(_a) {
|
|
305
|
+
var _b = _a, {
|
|
306
|
+
className
|
|
307
|
+
} = _b, props = __objRest(_b, [
|
|
308
|
+
"className"
|
|
309
|
+
]);
|
|
310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
311
|
+
"span",
|
|
312
|
+
__spreadProps(__spreadValues({
|
|
313
|
+
"aria-hidden": true,
|
|
314
|
+
className: cn("flex size-9 items-center justify-center", className),
|
|
315
|
+
"data-slot": "pagination-ellipsis"
|
|
316
|
+
}, props), {
|
|
317
|
+
children: [
|
|
318
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react2.MoreHorizontalIcon, { className: "size-4" }),
|
|
319
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "sr-only", children: "More pages" })
|
|
320
|
+
]
|
|
321
|
+
})
|
|
322
|
+
);
|
|
323
|
+
}
|
|
324
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
325
|
+
0 && (module.exports = {
|
|
326
|
+
Pagination,
|
|
327
|
+
PaginationContent,
|
|
328
|
+
PaginationEllipsis,
|
|
329
|
+
PaginationItem,
|
|
330
|
+
PaginationLink,
|
|
331
|
+
PaginationNext,
|
|
332
|
+
PaginationPrevious
|
|
333
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Pagination,
|
|
3
|
+
PaginationContent,
|
|
4
|
+
PaginationEllipsis,
|
|
5
|
+
PaginationItem,
|
|
6
|
+
PaginationLink,
|
|
7
|
+
PaginationNext,
|
|
8
|
+
PaginationPrevious
|
|
9
|
+
} from "../../chunk-NGYG2EA6.mjs";
|
|
10
|
+
import "../../chunk-IAOOZCUY.mjs";
|
|
11
|
+
import "../../chunk-DBHJ5KC3.mjs";
|
|
12
|
+
import "../../chunk-V7CNWJT3.mjs";
|
|
13
|
+
import "../../chunk-FWCSY2DS.mjs";
|
|
14
|
+
export {
|
|
15
|
+
Pagination,
|
|
16
|
+
PaginationContent,
|
|
17
|
+
PaginationEllipsis,
|
|
18
|
+
PaginationItem,
|
|
19
|
+
PaginationLink,
|
|
20
|
+
PaginationNext,
|
|
21
|
+
PaginationPrevious
|
|
22
|
+
};
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
var __export = (target, all) => {
|
|
33
|
+
for (var name in all)
|
|
34
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
35
|
+
};
|
|
36
|
+
var __copyProps = (to, from, except, desc) => {
|
|
37
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
38
|
+
for (let key of __getOwnPropNames(from))
|
|
39
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
40
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
41
|
+
}
|
|
42
|
+
return to;
|
|
43
|
+
};
|
|
44
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
45
|
+
|
|
46
|
+
// src/components/ui/popover.tsx
|
|
47
|
+
var popover_exports = {};
|
|
48
|
+
__export(popover_exports, {
|
|
49
|
+
Popover: () => Popover,
|
|
50
|
+
PopoverAnchor: () => PopoverAnchor,
|
|
51
|
+
PopoverContent: () => PopoverContent,
|
|
52
|
+
PopoverDescription: () => PopoverDescription,
|
|
53
|
+
PopoverHeader: () => PopoverHeader,
|
|
54
|
+
PopoverTitle: () => PopoverTitle,
|
|
55
|
+
PopoverTrigger: () => PopoverTrigger
|
|
56
|
+
});
|
|
57
|
+
module.exports = __toCommonJS(popover_exports);
|
|
58
|
+
var import_popover = require("@base-ui/react/popover");
|
|
59
|
+
|
|
60
|
+
// src/lib/utils.ts
|
|
61
|
+
var import_clsx = require("clsx");
|
|
62
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
63
|
+
function cn(...inputs) {
|
|
64
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// src/lib/theme-provider.tsx
|
|
68
|
+
var import_react = require("react");
|
|
69
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
70
|
+
var ThemeVarsContext = (0, import_react.createContext)({});
|
|
71
|
+
function useThemeVars() {
|
|
72
|
+
return (0, import_react.useContext)(ThemeVarsContext);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// src/components/ui/popover.tsx
|
|
76
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
77
|
+
function Popover(_a) {
|
|
78
|
+
var props = __objRest(_a, []);
|
|
79
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_popover.Popover.Root, __spreadValues({ "data-slot": "popover" }, props));
|
|
80
|
+
}
|
|
81
|
+
function PopoverTrigger(_a) {
|
|
82
|
+
var props = __objRest(_a, []);
|
|
83
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_popover.Popover.Trigger, __spreadValues({ "data-slot": "popover-trigger" }, props));
|
|
84
|
+
}
|
|
85
|
+
function PopoverContent(_a) {
|
|
86
|
+
var _b = _a, {
|
|
87
|
+
className,
|
|
88
|
+
align = "center",
|
|
89
|
+
sideOffset = 4,
|
|
90
|
+
style
|
|
91
|
+
} = _b, props = __objRest(_b, [
|
|
92
|
+
"className",
|
|
93
|
+
"align",
|
|
94
|
+
"sideOffset",
|
|
95
|
+
"style"
|
|
96
|
+
]);
|
|
97
|
+
const themeVars = useThemeVars();
|
|
98
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
99
|
+
import_popover.Popover.Positioner,
|
|
100
|
+
{
|
|
101
|
+
align,
|
|
102
|
+
sideOffset,
|
|
103
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
104
|
+
import_popover.Popover.Popup,
|
|
105
|
+
__spreadValues({
|
|
106
|
+
className: cn(
|
|
107
|
+
"z-50 w-72 border border-border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
|
|
108
|
+
className
|
|
109
|
+
),
|
|
110
|
+
"data-slot": "popover-content",
|
|
111
|
+
style: __spreadValues(__spreadValues({}, themeVars), style)
|
|
112
|
+
}, props)
|
|
113
|
+
)
|
|
114
|
+
}
|
|
115
|
+
) });
|
|
116
|
+
}
|
|
117
|
+
function PopoverAnchor(_a) {
|
|
118
|
+
var props = __objRest(_a, []);
|
|
119
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", __spreadValues({ "data-slot": "popover-anchor" }, props));
|
|
120
|
+
}
|
|
121
|
+
function PopoverHeader(_a) {
|
|
122
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
123
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
124
|
+
"div",
|
|
125
|
+
__spreadValues({
|
|
126
|
+
className: cn("flex flex-col gap-1 text-sm", className),
|
|
127
|
+
"data-slot": "popover-header"
|
|
128
|
+
}, props)
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
function PopoverTitle(_a) {
|
|
132
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
133
|
+
return (
|
|
134
|
+
// eslint-disable-next-line jsx-a11y/heading-has-content -- children passed via props spread
|
|
135
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
136
|
+
"h2",
|
|
137
|
+
__spreadValues({
|
|
138
|
+
className: cn("font-medium", className),
|
|
139
|
+
"data-slot": "popover-title"
|
|
140
|
+
}, props)
|
|
141
|
+
)
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
function PopoverDescription(_a) {
|
|
145
|
+
var _b = _a, {
|
|
146
|
+
className
|
|
147
|
+
} = _b, props = __objRest(_b, [
|
|
148
|
+
"className"
|
|
149
|
+
]);
|
|
150
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
151
|
+
"p",
|
|
152
|
+
__spreadValues({
|
|
153
|
+
className: cn("text-muted-foreground", className),
|
|
154
|
+
"data-slot": "popover-description"
|
|
155
|
+
}, props)
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
159
|
+
0 && (module.exports = {
|
|
160
|
+
Popover,
|
|
161
|
+
PopoverAnchor,
|
|
162
|
+
PopoverContent,
|
|
163
|
+
PopoverDescription,
|
|
164
|
+
PopoverHeader,
|
|
165
|
+
PopoverTitle,
|
|
166
|
+
PopoverTrigger
|
|
167
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Popover,
|
|
3
|
+
PopoverAnchor,
|
|
4
|
+
PopoverContent,
|
|
5
|
+
PopoverDescription,
|
|
6
|
+
PopoverHeader,
|
|
7
|
+
PopoverTitle,
|
|
8
|
+
PopoverTrigger
|
|
9
|
+
} from "../../chunk-MQ72DIBH.mjs";
|
|
10
|
+
import "../../chunk-OXQQNQZI.mjs";
|
|
11
|
+
import "../../chunk-QOJ2DQD6.mjs";
|
|
12
|
+
import "../../chunk-V7CNWJT3.mjs";
|
|
13
|
+
import "../../chunk-FWCSY2DS.mjs";
|
|
14
|
+
export {
|
|
15
|
+
Popover,
|
|
16
|
+
PopoverAnchor,
|
|
17
|
+
PopoverContent,
|
|
18
|
+
PopoverDescription,
|
|
19
|
+
PopoverHeader,
|
|
20
|
+
PopoverTitle,
|
|
21
|
+
PopoverTrigger
|
|
22
|
+
};
|