@wealthx/shadcn 1.0.2 → 1.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/.turbo/turbo-build.log +154 -138
- package/CHANGELOG.md +6 -0
- package/README.md +82 -0
- package/dist/chunk-3EQP72AW.mjs +58 -0
- package/dist/chunk-5JGQAAQV.mjs +212 -0
- package/dist/chunk-GLW2UO6O.mjs +212 -0
- package/dist/chunk-RN67642N.mjs +171 -0
- package/dist/chunk-UEL4RD5P.mjs +272 -0
- package/dist/chunk-YBXCIF5Q.mjs +198 -0
- package/dist/components/ui/cashflow-bar-chart.js +596 -0
- package/dist/components/ui/cashflow-bar-chart.mjs +16 -0
- package/dist/components/ui/combobox.js +261 -0
- package/dist/components/ui/combobox.mjs +28 -0
- package/dist/components/ui/data-table.mjs +3 -3
- package/dist/components/ui/expense-bar-chart.js +543 -0
- package/dist/components/ui/expense-bar-chart.mjs +16 -0
- package/dist/components/ui/field.mjs +2 -2
- package/dist/components/ui/income-bar-chart.js +543 -0
- package/dist/components/ui/income-bar-chart.mjs +16 -0
- package/dist/components/ui/transactions-income-expense-bar-chart.js +478 -0
- package/dist/components/ui/transactions-income-expense-bar-chart.mjs +16 -0
- package/dist/index.js +1685 -725
- package/dist/index.mjs +152 -111
- package/dist/styles.css +1 -1
- package/package.json +30 -2
- package/src/components/index.tsx +56 -0
- package/src/components/ui/cashflow-bar-chart.tsx +336 -0
- package/src/components/ui/chart-shared.tsx +100 -0
- package/src/components/ui/combobox.tsx +217 -0
- package/src/components/ui/expense-bar-chart.tsx +278 -0
- package/src/components/ui/income-bar-chart.tsx +278 -0
- package/src/components/ui/transactions-income-expense-bar-chart.tsx +198 -0
- package/src/styles/styles-css.ts +1 -1
- package/tsup.config.ts +5 -0
- package/dist/{chunk-K76E2TQU.mjs → chunk-CJ46PDXE.mjs} +5 -5
- package/dist/{chunk-HUVTPUV2.mjs → chunk-NLLKTU4B.mjs} +3 -3
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
+
var __objRest = (source, exclude) => {
|
|
24
|
+
var target = {};
|
|
25
|
+
for (var prop in source)
|
|
26
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
27
|
+
target[prop] = source[prop];
|
|
28
|
+
if (source != null && __getOwnPropSymbols)
|
|
29
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
30
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
31
|
+
target[prop] = source[prop];
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
};
|
|
35
|
+
var __export = (target, all) => {
|
|
36
|
+
for (var name in all)
|
|
37
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
38
|
+
};
|
|
39
|
+
var __copyProps = (to, from, except, desc) => {
|
|
40
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
41
|
+
for (let key of __getOwnPropNames(from))
|
|
42
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
43
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
44
|
+
}
|
|
45
|
+
return to;
|
|
46
|
+
};
|
|
47
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
48
|
+
|
|
49
|
+
// src/components/ui/combobox.tsx
|
|
50
|
+
var combobox_exports = {};
|
|
51
|
+
__export(combobox_exports, {
|
|
52
|
+
Combobox: () => Combobox,
|
|
53
|
+
ComboboxContent: () => ComboboxContent,
|
|
54
|
+
ComboboxEmpty: () => ComboboxEmpty,
|
|
55
|
+
ComboboxGroup: () => ComboboxGroup,
|
|
56
|
+
ComboboxGroupLabel: () => ComboboxGroupLabel,
|
|
57
|
+
ComboboxInput: () => ComboboxInput,
|
|
58
|
+
ComboboxItem: () => ComboboxItem,
|
|
59
|
+
ComboboxList: () => ComboboxList,
|
|
60
|
+
ComboboxSeparator: () => ComboboxSeparator,
|
|
61
|
+
ComboboxTrigger: () => ComboboxTrigger,
|
|
62
|
+
ComboboxValue: () => ComboboxValue
|
|
63
|
+
});
|
|
64
|
+
module.exports = __toCommonJS(combobox_exports);
|
|
65
|
+
var import_lucide_react = require("lucide-react");
|
|
66
|
+
var import_combobox = require("@base-ui/react/combobox");
|
|
67
|
+
|
|
68
|
+
// src/lib/utils.ts
|
|
69
|
+
var import_clsx = require("clsx");
|
|
70
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
71
|
+
function cn(...inputs) {
|
|
72
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// src/components/ui/combobox.tsx
|
|
76
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
77
|
+
function Combobox(_a) {
|
|
78
|
+
var props = __objRest(_a, []);
|
|
79
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_combobox.Combobox.Root, __spreadValues({ "data-slot": "combobox" }, props));
|
|
80
|
+
}
|
|
81
|
+
function ComboboxTrigger(_a) {
|
|
82
|
+
var _b = _a, {
|
|
83
|
+
className,
|
|
84
|
+
size = "default",
|
|
85
|
+
children
|
|
86
|
+
} = _b, props = __objRest(_b, [
|
|
87
|
+
"className",
|
|
88
|
+
"size",
|
|
89
|
+
"children"
|
|
90
|
+
]);
|
|
91
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
92
|
+
import_combobox.Combobox.Trigger,
|
|
93
|
+
__spreadProps(__spreadValues({
|
|
94
|
+
"data-slot": "combobox-trigger",
|
|
95
|
+
"data-size": size,
|
|
96
|
+
className: cn(
|
|
97
|
+
"flex w-fit items-center justify-between gap-2 border border-input bg-transparent px-3 py-2 text-body-small whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/20 data-[popup-open]:border-primary data-[popup-open]:ring-[3px] data-[popup-open]:ring-primary/20 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=combobox-value]:line-clamp-1 *:data-[slot=combobox-value]:flex *:data-[slot=combobox-value]:items-center *:data-[slot=combobox-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
|
|
98
|
+
className
|
|
99
|
+
)
|
|
100
|
+
}, props), {
|
|
101
|
+
children: [
|
|
102
|
+
children,
|
|
103
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_combobox.Combobox.Icon, { className: "transition-transform duration-200 data-[popup-open]:rotate-180", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ChevronDownIcon, { className: "size-4 opacity-50" }) })
|
|
104
|
+
]
|
|
105
|
+
})
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
function ComboboxValue(_a) {
|
|
109
|
+
var props = __objRest(_a, []);
|
|
110
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_combobox.Combobox.Value, __spreadValues({ "data-slot": "combobox-value" }, props));
|
|
111
|
+
}
|
|
112
|
+
function ComboboxInput(_a) {
|
|
113
|
+
var _b = _a, {
|
|
114
|
+
className
|
|
115
|
+
} = _b, props = __objRest(_b, [
|
|
116
|
+
"className"
|
|
117
|
+
]);
|
|
118
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { "data-slot": "combobox-input-wrapper", className: "flex items-center gap-2 border-b border-border px-3", children: [
|
|
119
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.SearchIcon, { className: "size-4 shrink-0 text-muted-foreground" }),
|
|
120
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
121
|
+
import_combobox.Combobox.Input,
|
|
122
|
+
__spreadValues({
|
|
123
|
+
"data-slot": "combobox-input",
|
|
124
|
+
className: cn(
|
|
125
|
+
"h-9 w-full min-w-0 bg-transparent py-1 text-body-small outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
126
|
+
className
|
|
127
|
+
)
|
|
128
|
+
}, props)
|
|
129
|
+
)
|
|
130
|
+
] });
|
|
131
|
+
}
|
|
132
|
+
function ComboboxContent(_a) {
|
|
133
|
+
var _b = _a, {
|
|
134
|
+
className,
|
|
135
|
+
children
|
|
136
|
+
} = _b, props = __objRest(_b, [
|
|
137
|
+
"className",
|
|
138
|
+
"children"
|
|
139
|
+
]);
|
|
140
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_combobox.Combobox.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_combobox.Combobox.Positioner, { sideOffset: 4, align: "start", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
141
|
+
import_combobox.Combobox.Popup,
|
|
142
|
+
__spreadProps(__spreadValues({
|
|
143
|
+
"data-slot": "combobox-content",
|
|
144
|
+
className: cn(
|
|
145
|
+
"relative z-50 max-h-[var(--available-height)] min-w-[8rem] overflow-hidden border bg-popover text-popover-foreground shadow-md 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-[open]:animate-in data-[open]:fade-in-0 data-[open]:zoom-in-95",
|
|
146
|
+
className
|
|
147
|
+
)
|
|
148
|
+
}, props), {
|
|
149
|
+
children
|
|
150
|
+
})
|
|
151
|
+
) }) });
|
|
152
|
+
}
|
|
153
|
+
function ComboboxList(_a) {
|
|
154
|
+
var _b = _a, {
|
|
155
|
+
className
|
|
156
|
+
} = _b, props = __objRest(_b, [
|
|
157
|
+
"className"
|
|
158
|
+
]);
|
|
159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
160
|
+
import_combobox.Combobox.List,
|
|
161
|
+
__spreadValues({
|
|
162
|
+
"data-slot": "combobox-list",
|
|
163
|
+
className: cn(
|
|
164
|
+
"max-h-[min(var(--available-height),18rem)] overflow-y-auto p-1",
|
|
165
|
+
className
|
|
166
|
+
)
|
|
167
|
+
}, props)
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
function ComboboxItem(_a) {
|
|
171
|
+
var _b = _a, {
|
|
172
|
+
className,
|
|
173
|
+
children
|
|
174
|
+
} = _b, props = __objRest(_b, [
|
|
175
|
+
"className",
|
|
176
|
+
"children"
|
|
177
|
+
]);
|
|
178
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
179
|
+
import_combobox.Combobox.Item,
|
|
180
|
+
__spreadProps(__spreadValues({
|
|
181
|
+
"data-slot": "combobox-item",
|
|
182
|
+
className: cn(
|
|
183
|
+
"relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-body-small outline-hidden select-none data-[highlighted]:bg-primary/5 data-[highlighted]:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
|
|
184
|
+
className
|
|
185
|
+
)
|
|
186
|
+
}, props), {
|
|
187
|
+
children: [
|
|
188
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
189
|
+
"span",
|
|
190
|
+
{
|
|
191
|
+
"data-slot": "combobox-item-indicator",
|
|
192
|
+
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
193
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_combobox.Combobox.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.CheckIcon, { className: "size-4" }) })
|
|
194
|
+
}
|
|
195
|
+
),
|
|
196
|
+
children
|
|
197
|
+
]
|
|
198
|
+
})
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
function ComboboxEmpty(_a) {
|
|
202
|
+
var _b = _a, {
|
|
203
|
+
className
|
|
204
|
+
} = _b, props = __objRest(_b, [
|
|
205
|
+
"className"
|
|
206
|
+
]);
|
|
207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
208
|
+
import_combobox.Combobox.Empty,
|
|
209
|
+
__spreadValues({
|
|
210
|
+
"data-slot": "combobox-empty",
|
|
211
|
+
className: `text-body-small ${cn("py-6 text-center text-muted-foreground empty:hidden", className)}`
|
|
212
|
+
}, props)
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
function ComboboxGroup(_a) {
|
|
216
|
+
var props = __objRest(_a, []);
|
|
217
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_combobox.Combobox.Group, __spreadValues({ "data-slot": "combobox-group" }, props));
|
|
218
|
+
}
|
|
219
|
+
function ComboboxGroupLabel(_a) {
|
|
220
|
+
var _b = _a, {
|
|
221
|
+
className
|
|
222
|
+
} = _b, props = __objRest(_b, [
|
|
223
|
+
"className"
|
|
224
|
+
]);
|
|
225
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
226
|
+
import_combobox.Combobox.GroupLabel,
|
|
227
|
+
__spreadValues({
|
|
228
|
+
"data-slot": "combobox-group-label",
|
|
229
|
+
className: `text-label-small ${cn("px-2 py-1.5 uppercase text-muted-foreground", className)}`
|
|
230
|
+
}, props)
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
function ComboboxSeparator(_a) {
|
|
234
|
+
var _b = _a, {
|
|
235
|
+
className
|
|
236
|
+
} = _b, props = __objRest(_b, [
|
|
237
|
+
"className"
|
|
238
|
+
]);
|
|
239
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
240
|
+
"div",
|
|
241
|
+
__spreadValues({
|
|
242
|
+
role: "separator",
|
|
243
|
+
"data-slot": "combobox-separator",
|
|
244
|
+
className: cn("pointer-events-none -mx-1 my-1 h-px bg-border", className)
|
|
245
|
+
}, props)
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
249
|
+
0 && (module.exports = {
|
|
250
|
+
Combobox,
|
|
251
|
+
ComboboxContent,
|
|
252
|
+
ComboboxEmpty,
|
|
253
|
+
ComboboxGroup,
|
|
254
|
+
ComboboxGroupLabel,
|
|
255
|
+
ComboboxInput,
|
|
256
|
+
ComboboxItem,
|
|
257
|
+
ComboboxList,
|
|
258
|
+
ComboboxSeparator,
|
|
259
|
+
ComboboxTrigger,
|
|
260
|
+
ComboboxValue
|
|
261
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Combobox,
|
|
3
|
+
ComboboxContent,
|
|
4
|
+
ComboboxEmpty,
|
|
5
|
+
ComboboxGroup,
|
|
6
|
+
ComboboxGroupLabel,
|
|
7
|
+
ComboboxInput,
|
|
8
|
+
ComboboxItem,
|
|
9
|
+
ComboboxList,
|
|
10
|
+
ComboboxSeparator,
|
|
11
|
+
ComboboxTrigger,
|
|
12
|
+
ComboboxValue
|
|
13
|
+
} from "../../chunk-YBXCIF5Q.mjs";
|
|
14
|
+
import "../../chunk-V7CNWJT3.mjs";
|
|
15
|
+
import "../../chunk-FWCSY2DS.mjs";
|
|
16
|
+
export {
|
|
17
|
+
Combobox,
|
|
18
|
+
ComboboxContent,
|
|
19
|
+
ComboboxEmpty,
|
|
20
|
+
ComboboxGroup,
|
|
21
|
+
ComboboxGroupLabel,
|
|
22
|
+
ComboboxInput,
|
|
23
|
+
ComboboxItem,
|
|
24
|
+
ComboboxList,
|
|
25
|
+
ComboboxSeparator,
|
|
26
|
+
ComboboxTrigger,
|
|
27
|
+
ComboboxValue
|
|
28
|
+
};
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
DataTableSkeleton,
|
|
7
7
|
DataTableToolbar,
|
|
8
8
|
getSelectionColumn
|
|
9
|
-
} from "../../chunk-
|
|
10
|
-
import "../../chunk-HS7TFG7V.mjs";
|
|
9
|
+
} from "../../chunk-CJ46PDXE.mjs";
|
|
11
10
|
import "../../chunk-BGP2N52Z.mjs";
|
|
12
11
|
import "../../chunk-VZ2NR7L3.mjs";
|
|
13
|
-
import "../../chunk-MJIEMGRD.mjs";
|
|
14
12
|
import "../../chunk-DS2AMHN2.mjs";
|
|
13
|
+
import "../../chunk-MJIEMGRD.mjs";
|
|
14
|
+
import "../../chunk-HS7TFG7V.mjs";
|
|
15
15
|
import "../../chunk-JF4PHPD5.mjs";
|
|
16
16
|
import "../../chunk-4AJ5HWHD.mjs";
|
|
17
17
|
import "../../chunk-DBHJ5KC3.mjs";
|