@deepnoid/ui 0.1.41 → 0.1.43
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 +176 -161
- package/dist/chunk-3YMMVZDL.mjs +1 -0
- package/dist/{chunk-4LOREVB7.mjs → chunk-42LXAL5Y.mjs} +3 -4
- package/dist/{chunk-ECMBAKSJ.mjs → chunk-D7XSWNZ7.mjs} +4 -4
- package/dist/chunk-IET623ED.mjs +106 -0
- package/dist/{chunk-MFRYYZPY.mjs → chunk-KJMJIFPS.mjs} +22 -19
- package/dist/chunk-LTXJKWHO.mjs +107 -0
- package/dist/{chunk-QJJKJYNR.mjs → chunk-NR7MGDUE.mjs} +3 -3
- package/dist/components/breadcrumb/breadcrumb.mjs +3 -3
- package/dist/components/breadcrumb/index.mjs +3 -3
- package/dist/components/button/button.mjs +1 -1
- package/dist/components/button/icon-button.mjs +1 -1
- package/dist/components/button/index.mjs +3 -3
- package/dist/components/charts/areaCharts.d.mts +66 -0
- package/dist/components/charts/areaCharts.d.ts +66 -0
- package/dist/components/charts/areaCharts.js +441 -0
- package/dist/components/charts/areaCharts.mjs +10 -0
- package/dist/components/charts/circularProgress.d.mts +92 -0
- package/dist/components/charts/circularProgress.d.ts +92 -0
- package/dist/components/charts/circularProgress.js +441 -0
- package/dist/components/charts/circularProgress.mjs +11 -0
- package/dist/components/charts/index.d.mts +5 -0
- package/dist/components/charts/index.d.ts +5 -0
- package/dist/components/charts/index.js +543 -0
- package/dist/components/charts/index.mjs +15 -0
- package/dist/components/chip/chip.mjs +1 -1
- package/dist/components/chip/index.mjs +1 -1
- package/dist/components/dateTimePicker/calendar.mjs +1 -1
- package/dist/components/dateTimePicker/dateTimePicker.mjs +7 -7
- package/dist/components/dateTimePicker/index.mjs +7 -7
- package/dist/components/dateTimePicker/timePicker.mjs +4 -4
- package/dist/components/fileUpload/fileUpload.mjs +2 -2
- package/dist/components/fileUpload/index.mjs +2 -2
- package/dist/components/input/index.mjs +1 -1
- package/dist/components/input/input.mjs +1 -1
- package/dist/components/list/index.mjs +5 -5
- package/dist/components/list/listItem.mjs +3 -3
- package/dist/components/modal/index.mjs +2 -2
- package/dist/components/modal/modal.mjs +2 -2
- package/dist/components/pagination/index.mjs +1 -1
- package/dist/components/pagination/pagination.mjs +1 -1
- package/dist/components/select/index.mjs +1 -1
- package/dist/components/select/select.mjs +1 -1
- package/dist/components/table/index.js +24 -22
- package/dist/components/table/index.mjs +6 -6
- package/dist/components/table/table-body.d.mts +1 -2
- package/dist/components/table/table-body.d.ts +1 -2
- package/dist/components/table/table-body.js +22 -19
- package/dist/components/table/table-body.mjs +1 -1
- package/dist/components/table/table.d.mts +0 -1
- package/dist/components/table/table.d.ts +0 -1
- package/dist/components/table/table.js +24 -22
- package/dist/components/table/table.mjs +3 -3
- package/dist/components/toast/index.mjs +1 -1
- package/dist/components/toast/toast.mjs +1 -1
- package/dist/components/toast/use-toast.mjs +1 -1
- package/dist/components/tree/index.mjs +1 -1
- package/dist/components/tree/tree.mjs +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +219 -22
- package/dist/index.mjs +62 -53
- package/package.json +4 -3
- package/dist/{chunk-III2QUWF.mjs → chunk-L2VA3ACH.mjs} +3 -3
- package/dist/{chunk-W45H2ZMW.mjs → chunk-QWIURBUH.mjs} +3 -3
|
@@ -0,0 +1,543 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
10
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
+
};
|
|
12
|
+
var __export = (target, all) => {
|
|
13
|
+
for (var name in all)
|
|
14
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
15
|
+
};
|
|
16
|
+
var __copyProps = (to, from, except, desc) => {
|
|
17
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
+
for (let key of __getOwnPropNames(from))
|
|
19
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
20
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
24
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
30
|
+
mod
|
|
31
|
+
));
|
|
32
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
|
+
|
|
34
|
+
// ../../node_modules/tailwindcss/lib/util/createPlugin.js
|
|
35
|
+
var require_createPlugin = __commonJS({
|
|
36
|
+
"../../node_modules/tailwindcss/lib/util/createPlugin.js"(exports2) {
|
|
37
|
+
"use strict";
|
|
38
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
39
|
+
value: true
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports2, "default", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function() {
|
|
44
|
+
return _default;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
function createPlugin(plugin2, config) {
|
|
48
|
+
return {
|
|
49
|
+
handler: plugin2,
|
|
50
|
+
config
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
createPlugin.withOptions = function(pluginFunction, configFunction = () => ({})) {
|
|
54
|
+
const optionsFunction = function(options) {
|
|
55
|
+
return {
|
|
56
|
+
__options: options,
|
|
57
|
+
handler: pluginFunction(options),
|
|
58
|
+
config: configFunction(options)
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
optionsFunction.__isOptionsFunction = true;
|
|
62
|
+
optionsFunction.__pluginFunction = pluginFunction;
|
|
63
|
+
optionsFunction.__configFunction = configFunction;
|
|
64
|
+
return optionsFunction;
|
|
65
|
+
};
|
|
66
|
+
var _default = createPlugin;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
// ../../node_modules/tailwindcss/lib/public/create-plugin.js
|
|
71
|
+
var require_create_plugin = __commonJS({
|
|
72
|
+
"../../node_modules/tailwindcss/lib/public/create-plugin.js"(exports2) {
|
|
73
|
+
"use strict";
|
|
74
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
75
|
+
value: true
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(exports2, "default", {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function() {
|
|
80
|
+
return _default;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
var _createPlugin = /* @__PURE__ */ _interop_require_default(require_createPlugin());
|
|
84
|
+
function _interop_require_default(obj) {
|
|
85
|
+
return obj && obj.__esModule ? obj : {
|
|
86
|
+
default: obj
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
var _default = _createPlugin.default;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
// ../../node_modules/tailwindcss/plugin.js
|
|
94
|
+
var require_plugin = __commonJS({
|
|
95
|
+
"../../node_modules/tailwindcss/plugin.js"(exports2, module2) {
|
|
96
|
+
"use strict";
|
|
97
|
+
var createPlugin = require_create_plugin();
|
|
98
|
+
module2.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// src/components/charts/index.ts
|
|
103
|
+
var charts_exports = {};
|
|
104
|
+
__export(charts_exports, {
|
|
105
|
+
AreaChart: () => areaCharts_default,
|
|
106
|
+
CircularProgress: () => circularProgress_default
|
|
107
|
+
});
|
|
108
|
+
module.exports = __toCommonJS(charts_exports);
|
|
109
|
+
|
|
110
|
+
// src/components/charts/circularProgress.tsx
|
|
111
|
+
var import_recharts = require("recharts");
|
|
112
|
+
var import_react = require("react");
|
|
113
|
+
|
|
114
|
+
// src/utils/props.ts
|
|
115
|
+
var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
116
|
+
if (!variantKeys) {
|
|
117
|
+
return [props, {}];
|
|
118
|
+
}
|
|
119
|
+
const picked = variantKeys.reduce((acc, key) => {
|
|
120
|
+
if (key in props) {
|
|
121
|
+
return { ...acc, [key]: props[key] };
|
|
122
|
+
} else {
|
|
123
|
+
return acc;
|
|
124
|
+
}
|
|
125
|
+
}, {});
|
|
126
|
+
if (removeVariantProps) {
|
|
127
|
+
const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
|
|
128
|
+
return [omitted, picked];
|
|
129
|
+
} else {
|
|
130
|
+
return [props, picked];
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
// src/utils/tailwind-variants.ts
|
|
135
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
136
|
+
|
|
137
|
+
// ../tailwind-config/src/plugin.ts
|
|
138
|
+
var import_plugin = __toESM(require_plugin());
|
|
139
|
+
|
|
140
|
+
// ../tailwind-config/src/typography/font.ts
|
|
141
|
+
var fontSize = {
|
|
142
|
+
h1: [
|
|
143
|
+
"40px",
|
|
144
|
+
{
|
|
145
|
+
fontWeight: "700"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
h2: [
|
|
149
|
+
"34px",
|
|
150
|
+
{
|
|
151
|
+
fontWeight: "700"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
h3: [
|
|
155
|
+
"28px",
|
|
156
|
+
{
|
|
157
|
+
fontWeight: "700"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
h4: [
|
|
161
|
+
"24px",
|
|
162
|
+
{
|
|
163
|
+
fontWeight: "700"
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
h5: [
|
|
167
|
+
"20px",
|
|
168
|
+
{
|
|
169
|
+
fontWeight: "600"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
sm: [
|
|
173
|
+
"12px",
|
|
174
|
+
{
|
|
175
|
+
lineHeight: "18px",
|
|
176
|
+
fontWeight: "400"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
md: [
|
|
180
|
+
"14px",
|
|
181
|
+
{
|
|
182
|
+
lineHeight: "21px",
|
|
183
|
+
fontWeight: "400"
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
lg: [
|
|
187
|
+
"16px",
|
|
188
|
+
{
|
|
189
|
+
lineHeight: "24px",
|
|
190
|
+
fontWeight: "400"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
xl: [
|
|
194
|
+
"18px",
|
|
195
|
+
{
|
|
196
|
+
lineHeight: "27px",
|
|
197
|
+
fontWeight: "400"
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
// ../tailwind-config/src/animation/slide.ts
|
|
203
|
+
var sliceAnimation = {
|
|
204
|
+
slideInFromTop: "slideInFromTop 0.5s ease-out",
|
|
205
|
+
slideInFromBottom: "slideInFromBottom 0.5s ease-out",
|
|
206
|
+
slideInFromLeft: "slideInFromLeft 0.5s ease-out",
|
|
207
|
+
slideInFromRight: "slideInFromRight 0.5s ease-out",
|
|
208
|
+
slideOutToTop: "slideOutToTop 0.5s ease-in",
|
|
209
|
+
slideOutToBottom: "slideOutToBottom 0.5s ease-in",
|
|
210
|
+
slideOutToLeft: "slideOutToLeft 0.5s ease-in",
|
|
211
|
+
slideOutToRight: "slideOutToRight 0.5s ease-in"
|
|
212
|
+
};
|
|
213
|
+
var sliceKeyframe = {
|
|
214
|
+
slideInFromTop: {
|
|
215
|
+
"0%": {
|
|
216
|
+
transform: "translateY(-10px)",
|
|
217
|
+
opacity: "0"
|
|
218
|
+
},
|
|
219
|
+
"100%": {
|
|
220
|
+
transform: "translateY(0)",
|
|
221
|
+
opacity: "1"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
slideInFromBottom: {
|
|
225
|
+
"0%": {
|
|
226
|
+
transform: "translateY(10px)",
|
|
227
|
+
opacity: "0"
|
|
228
|
+
},
|
|
229
|
+
"100%": {
|
|
230
|
+
transform: "translateY(0)",
|
|
231
|
+
opacity: "1"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
slideInFromLeft: {
|
|
235
|
+
"0%": {
|
|
236
|
+
transform: "translateX(-10px)",
|
|
237
|
+
opacity: "0"
|
|
238
|
+
},
|
|
239
|
+
"100%": {
|
|
240
|
+
transform: "translateX(0)",
|
|
241
|
+
opacity: "1"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
slideInFromRight: {
|
|
245
|
+
"0%": {
|
|
246
|
+
transform: "translateX(10px)",
|
|
247
|
+
opacity: "0"
|
|
248
|
+
},
|
|
249
|
+
"100%": {
|
|
250
|
+
transform: "translateX(0)",
|
|
251
|
+
opacity: "1"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
slideOutToTop: {
|
|
255
|
+
"0%": {
|
|
256
|
+
transform: "translateY(0)",
|
|
257
|
+
opacity: "1"
|
|
258
|
+
},
|
|
259
|
+
"100%": {
|
|
260
|
+
transform: "translateY(-10px)",
|
|
261
|
+
opacity: "0"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
slideOutToBottom: {
|
|
265
|
+
"0%": {
|
|
266
|
+
transform: "translateY(0)",
|
|
267
|
+
opacity: "1"
|
|
268
|
+
},
|
|
269
|
+
"100%": {
|
|
270
|
+
transform: "translateY(10px)",
|
|
271
|
+
opacity: "0"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
slideOutToLeft: {
|
|
275
|
+
"0%": {
|
|
276
|
+
transform: "translateX(0)",
|
|
277
|
+
opacity: "1"
|
|
278
|
+
},
|
|
279
|
+
"100%": {
|
|
280
|
+
transform: "translateX(-10px)",
|
|
281
|
+
opacity: "0"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
slideOutToRight: {
|
|
285
|
+
"0%": {
|
|
286
|
+
transform: "translateX(0)",
|
|
287
|
+
opacity: "1"
|
|
288
|
+
},
|
|
289
|
+
"100%": {
|
|
290
|
+
transform: "translateX(10px)",
|
|
291
|
+
opacity: "0"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
// ../tailwind-config/src/animation/index.ts
|
|
297
|
+
var animation = { ...sliceAnimation };
|
|
298
|
+
var keyframes = { ...sliceKeyframe };
|
|
299
|
+
|
|
300
|
+
// ../tailwind-config/src/shadow/index.ts
|
|
301
|
+
var boxShadow = {
|
|
302
|
+
"border-1": "inner 0 0 0 1px inset",
|
|
303
|
+
"border-2": "inner 0 0 0 2px inset",
|
|
304
|
+
"border-3": "inner 0 0 0 3px inset",
|
|
305
|
+
"border-4": "inner 0 0 0 4px inset",
|
|
306
|
+
"border-5": "inner 0 0 0 5px inset",
|
|
307
|
+
"border-6": "inner 0 0 0 6px inset",
|
|
308
|
+
"border-7": "inner 0 0 0 7px inset",
|
|
309
|
+
"border-8": "inner 0 0 0 8px inset",
|
|
310
|
+
"border-9": "inner 0 0 0 9px inset",
|
|
311
|
+
"border-10": "inner 0 0 0 10px inset",
|
|
312
|
+
inner: "inset 0 4px 8px 0 rgba(36, 39, 44, 0.2)",
|
|
313
|
+
drop: "0 20px 40px 0 rgba(36, 39, 44, 0.2)"
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
// ../tailwind-config/src/border/radius.ts
|
|
317
|
+
var borderRadius = {
|
|
318
|
+
sm: "4px",
|
|
319
|
+
md: "6px",
|
|
320
|
+
lg: "8px",
|
|
321
|
+
xl: "10px",
|
|
322
|
+
none: "0",
|
|
323
|
+
full: "9999px"
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
// ../tailwind-config/src/space/gap.ts
|
|
327
|
+
var gap = {
|
|
328
|
+
sm: "4px",
|
|
329
|
+
md: "6px",
|
|
330
|
+
lg: "8px",
|
|
331
|
+
xl: "10px"
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
// src/utils/tailwind-variants.ts
|
|
335
|
+
function typedKeys(obj) {
|
|
336
|
+
return Object.keys(obj);
|
|
337
|
+
}
|
|
338
|
+
var COMMON_SIZE = ["sm", "md", "lg", "xl"];
|
|
339
|
+
var tv = (0, import_tailwind_variants.createTV)({
|
|
340
|
+
twMergeConfig: {
|
|
341
|
+
classGroups: {
|
|
342
|
+
fontSize: [{ text: [...typedKeys(fontSize)] }],
|
|
343
|
+
borderRadius: [{ rounded: [...typedKeys(borderRadius)] }],
|
|
344
|
+
boxShadow: [{ shadow: [...typedKeys(boxShadow)] }],
|
|
345
|
+
padding: [{ p: [...COMMON_SIZE] }],
|
|
346
|
+
gap: [{ gap: [...typedKeys(gap)] }]
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
|
|
351
|
+
// src/components/charts/circularProgress.tsx
|
|
352
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
353
|
+
var CircularProgress = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
354
|
+
const [props, variantProps] = mapPropsVariants(originalProps, circularProgressStyle.variantKeys);
|
|
355
|
+
const { title, size = 150, color, percentage, unit, classNames } = { ...props, ...variantProps };
|
|
356
|
+
const slots = (0, import_react.useMemo)(() => circularProgressStyle({ ...variantProps }), [variantProps]);
|
|
357
|
+
const data = [
|
|
358
|
+
{
|
|
359
|
+
name: title,
|
|
360
|
+
value: percentage
|
|
361
|
+
}
|
|
362
|
+
];
|
|
363
|
+
const BAR_SIZE = 24;
|
|
364
|
+
const OUTER_RADIUS = 88;
|
|
365
|
+
const INNER_RADIUS = OUTER_RADIUS - BAR_SIZE;
|
|
366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
367
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `relative h-[${size}px] w-[${size}px]`, children: [
|
|
368
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
369
|
+
import_recharts.RadialBarChart,
|
|
370
|
+
{
|
|
371
|
+
width: size,
|
|
372
|
+
height: size,
|
|
373
|
+
innerRadius: INNER_RADIUS,
|
|
374
|
+
outerRadius: OUTER_RADIUS,
|
|
375
|
+
barSize: BAR_SIZE,
|
|
376
|
+
data,
|
|
377
|
+
startAngle: 90,
|
|
378
|
+
endAngle: -270,
|
|
379
|
+
children: [
|
|
380
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
381
|
+
"circle",
|
|
382
|
+
{
|
|
383
|
+
cx: size / 2,
|
|
384
|
+
cy: size / 2,
|
|
385
|
+
r: INNER_RADIUS + BAR_SIZE / 2,
|
|
386
|
+
className: slots.background({ class: classNames == null ? void 0 : classNames.background }),
|
|
387
|
+
fill: "currentColor"
|
|
388
|
+
}
|
|
389
|
+
),
|
|
390
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.PolarAngleAxis, { type: "number", domain: [0, 100], angleAxisId: 0, tick: false }),
|
|
391
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
392
|
+
import_recharts.RadialBar,
|
|
393
|
+
{
|
|
394
|
+
dataKey: "value",
|
|
395
|
+
cornerRadius: 12,
|
|
396
|
+
animationDuration: 1e3,
|
|
397
|
+
className: slots.progress({ class: classNames == null ? void 0 : classNames.progress })
|
|
398
|
+
}
|
|
399
|
+
)
|
|
400
|
+
]
|
|
401
|
+
}
|
|
402
|
+
),
|
|
403
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: slots.text({ class: classNames == null ? void 0 : classNames.text }), children: [
|
|
404
|
+
percentage,
|
|
405
|
+
unit
|
|
406
|
+
] }) })
|
|
407
|
+
] }),
|
|
408
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title })
|
|
409
|
+
] });
|
|
410
|
+
});
|
|
411
|
+
CircularProgress.displayName = "CircularProgress";
|
|
412
|
+
var circularProgress_default = CircularProgress;
|
|
413
|
+
var circularProgressStyle = tv({
|
|
414
|
+
slots: {
|
|
415
|
+
base: ["flex", "flex-col", "items-center", "gap-[20px]"],
|
|
416
|
+
background: [],
|
|
417
|
+
progress: ["transition-all", "duration-1000 ease-out"],
|
|
418
|
+
text: ["text-xl", "font-bold"],
|
|
419
|
+
title: ["text-md", "font-bold", "text-center", "text-body-foreground"]
|
|
420
|
+
},
|
|
421
|
+
variants: {
|
|
422
|
+
color: {
|
|
423
|
+
primary: {
|
|
424
|
+
background: ["fill-primary-soft"],
|
|
425
|
+
progress: ["fill-primary-main"],
|
|
426
|
+
text: ["text-primary-dark"]
|
|
427
|
+
},
|
|
428
|
+
secondary: {
|
|
429
|
+
background: ["fill-secondary-soft"],
|
|
430
|
+
progress: ["fill-secondary-main"],
|
|
431
|
+
text: ["text-secondary-dark"]
|
|
432
|
+
},
|
|
433
|
+
warning: {
|
|
434
|
+
background: ["fill-warning-soft"],
|
|
435
|
+
progress: ["fill-warning-main"],
|
|
436
|
+
text: ["text-warning-dark"]
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
defaultVariants: {
|
|
441
|
+
color: "primary"
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
|
|
445
|
+
// src/components/charts/areaCharts.tsx
|
|
446
|
+
var import_react2 = require("react");
|
|
447
|
+
var import_recharts2 = require("recharts");
|
|
448
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
449
|
+
var AreaChartComponent = (0, import_react2.forwardRef)((originalProps, ref) => {
|
|
450
|
+
var _a, _b;
|
|
451
|
+
const [props, variantProps] = mapPropsVariants(originalProps, areaChartStyle.variantKeys);
|
|
452
|
+
const { areaData, color, classNames } = { ...props, ...variantProps };
|
|
453
|
+
const slots = (0, import_react2.useMemo)(() => areaChartStyle({ ...variantProps }), [variantProps]);
|
|
454
|
+
const colorHex = (_b = (_a = areaChartStyle.variants.color) == null ? void 0 : _a[color || "primary"]) == null ? void 0 : _b._colorValue;
|
|
455
|
+
const CustomDotWithShadow = (props2) => {
|
|
456
|
+
const { cx, cy, fill, stroke } = props2;
|
|
457
|
+
if (cx === void 0 || cy === void 0) return null;
|
|
458
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
|
|
459
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx, cy, r: 8, fill, opacity: 0.2 }),
|
|
460
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx, cy, r: 3.5, fill, stroke, strokeWidth: 2 })
|
|
461
|
+
] });
|
|
462
|
+
};
|
|
463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_recharts2.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
464
|
+
import_recharts2.AreaChart,
|
|
465
|
+
{
|
|
466
|
+
data: areaData,
|
|
467
|
+
margin: {
|
|
468
|
+
top: 20,
|
|
469
|
+
right: 30,
|
|
470
|
+
left: 20,
|
|
471
|
+
bottom: 20
|
|
472
|
+
},
|
|
473
|
+
children: [
|
|
474
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("linearGradient", { id: "colorGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
475
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
|
|
476
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
|
|
477
|
+
] }) }),
|
|
478
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_recharts2.CartesianGrid, { vertical: true, horizontal: false, strokeDasharray: "3 3", className: "stroke-neutral-light" }),
|
|
479
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
480
|
+
import_recharts2.XAxis,
|
|
481
|
+
{
|
|
482
|
+
dataKey: "name",
|
|
483
|
+
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
484
|
+
tickLine: false,
|
|
485
|
+
tick: { fontSize: 12, fontWeight: 700, fill: "text-body-foreground" },
|
|
486
|
+
padding: { left: 35.5, right: 35.5 }
|
|
487
|
+
}
|
|
488
|
+
),
|
|
489
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
490
|
+
import_recharts2.YAxis,
|
|
491
|
+
{
|
|
492
|
+
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
493
|
+
tickLine: false,
|
|
494
|
+
tick: { fontSize: 12, fontWeight: 700, fill: "text-body-foreground" },
|
|
495
|
+
ticks: [0, 20, 40, 60, 80, 100],
|
|
496
|
+
domain: [0, 100]
|
|
497
|
+
}
|
|
498
|
+
),
|
|
499
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
500
|
+
import_recharts2.Area,
|
|
501
|
+
{
|
|
502
|
+
type: "monotone",
|
|
503
|
+
dataKey: "value",
|
|
504
|
+
stroke: colorHex,
|
|
505
|
+
strokeWidth: 2,
|
|
506
|
+
fill: "url(#colorGradient)",
|
|
507
|
+
dot: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
|
|
508
|
+
activeDot: { r: 7, fill: colorHex }
|
|
509
|
+
}
|
|
510
|
+
)
|
|
511
|
+
]
|
|
512
|
+
}
|
|
513
|
+
) }) });
|
|
514
|
+
});
|
|
515
|
+
AreaChartComponent.displayName = "AreaChart";
|
|
516
|
+
var areaCharts_default = AreaChartComponent;
|
|
517
|
+
var areaChartStyle = tv({
|
|
518
|
+
slots: {
|
|
519
|
+
base: [],
|
|
520
|
+
color: [],
|
|
521
|
+
axis: ["text-sm", "font-bold", "text-center", "text-body-foreground"]
|
|
522
|
+
},
|
|
523
|
+
variants: {
|
|
524
|
+
color: {
|
|
525
|
+
primary: {
|
|
526
|
+
color: ["text-primary-main"],
|
|
527
|
+
_colorValue: "#3F9CF2"
|
|
528
|
+
},
|
|
529
|
+
danger: {
|
|
530
|
+
color: ["text-danger-main"],
|
|
531
|
+
_colorValue: "#FF4684"
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
defaultVariants: {
|
|
536
|
+
color: "primary"
|
|
537
|
+
}
|
|
538
|
+
});
|
|
539
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
540
|
+
0 && (module.exports = {
|
|
541
|
+
AreaChart,
|
|
542
|
+
CircularProgress
|
|
543
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../chunk-3YMMVZDL.mjs";
|
|
3
|
+
import {
|
|
4
|
+
areaCharts_default
|
|
5
|
+
} from "../../chunk-IET623ED.mjs";
|
|
6
|
+
import {
|
|
7
|
+
circularProgress_default
|
|
8
|
+
} from "../../chunk-LTXJKWHO.mjs";
|
|
9
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
10
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
11
|
+
import "../../chunk-AC6TWLRT.mjs";
|
|
12
|
+
export {
|
|
13
|
+
areaCharts_default as AreaChart,
|
|
14
|
+
circularProgress_default as CircularProgress
|
|
15
|
+
};
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
} from "../../chunk-Y6XQTWB5.mjs";
|
|
5
5
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
6
6
|
import "../../chunk-2TKEWFGH.mjs";
|
|
7
|
-
import "../../chunk-2SDYFOZL.mjs";
|
|
8
7
|
import "../../chunk-E3G5QXSH.mjs";
|
|
8
|
+
import "../../chunk-2SDYFOZL.mjs";
|
|
9
9
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
10
10
|
import "../../chunk-AC6TWLRT.mjs";
|
|
11
11
|
export {
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
} from "../../chunk-Y6XQTWB5.mjs";
|
|
6
6
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
7
7
|
import "../../chunk-2TKEWFGH.mjs";
|
|
8
|
-
import "../../chunk-2SDYFOZL.mjs";
|
|
9
8
|
import "../../chunk-E3G5QXSH.mjs";
|
|
9
|
+
import "../../chunk-2SDYFOZL.mjs";
|
|
10
10
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
11
11
|
import "../../chunk-AC6TWLRT.mjs";
|
|
12
12
|
export {
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
import "../../chunk-P732YGHO.mjs";
|
|
7
7
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
8
8
|
import "../../chunk-2TKEWFGH.mjs";
|
|
9
|
-
import "../../chunk-2SDYFOZL.mjs";
|
|
10
9
|
import "../../chunk-E3G5QXSH.mjs";
|
|
10
|
+
import "../../chunk-2SDYFOZL.mjs";
|
|
11
11
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
12
12
|
import "../../chunk-AC6TWLRT.mjs";
|
|
13
13
|
export {
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import {
|
|
3
3
|
dateTimePickerStyle,
|
|
4
4
|
dateTimePicker_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-D7XSWNZ7.mjs";
|
|
6
|
+
import "../../chunk-FWJ2ZKH6.mjs";
|
|
6
7
|
import "../../chunk-X6D7C7QZ.mjs";
|
|
7
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-P732YGHO.mjs";
|
|
9
|
+
import "../../chunk-NR7MGDUE.mjs";
|
|
8
10
|
import "../../chunk-7MVEAQ7Z.mjs";
|
|
9
|
-
import "../../chunk-W45H2ZMW.mjs";
|
|
10
11
|
import "../../chunk-UFVQPPPW.mjs";
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-P732YGHO.mjs";
|
|
13
|
-
import "../../chunk-SP3JVQY3.mjs";
|
|
12
|
+
import "../../chunk-QWIURBUH.mjs";
|
|
14
13
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
15
14
|
import "../../chunk-2TKEWFGH.mjs";
|
|
16
|
-
import "../../chunk-2SDYFOZL.mjs";
|
|
17
15
|
import "../../chunk-E3G5QXSH.mjs";
|
|
16
|
+
import "../../chunk-SP3JVQY3.mjs";
|
|
17
|
+
import "../../chunk-2SDYFOZL.mjs";
|
|
18
18
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
19
19
|
import "../../chunk-AC6TWLRT.mjs";
|
|
20
20
|
export {
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import "../../chunk-75HLCORR.mjs";
|
|
3
3
|
import {
|
|
4
4
|
dateTimePicker_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-D7XSWNZ7.mjs";
|
|
6
|
+
import "../../chunk-FWJ2ZKH6.mjs";
|
|
6
7
|
import "../../chunk-X6D7C7QZ.mjs";
|
|
7
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-P732YGHO.mjs";
|
|
9
|
+
import "../../chunk-NR7MGDUE.mjs";
|
|
8
10
|
import "../../chunk-7MVEAQ7Z.mjs";
|
|
9
|
-
import "../../chunk-W45H2ZMW.mjs";
|
|
10
11
|
import "../../chunk-UFVQPPPW.mjs";
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-P732YGHO.mjs";
|
|
13
|
-
import "../../chunk-SP3JVQY3.mjs";
|
|
12
|
+
import "../../chunk-QWIURBUH.mjs";
|
|
14
13
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
15
14
|
import "../../chunk-2TKEWFGH.mjs";
|
|
16
|
-
import "../../chunk-2SDYFOZL.mjs";
|
|
17
15
|
import "../../chunk-E3G5QXSH.mjs";
|
|
16
|
+
import "../../chunk-SP3JVQY3.mjs";
|
|
17
|
+
import "../../chunk-2SDYFOZL.mjs";
|
|
18
18
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
19
19
|
import "../../chunk-AC6TWLRT.mjs";
|
|
20
20
|
export {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
timePicker_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-NR7MGDUE.mjs";
|
|
5
5
|
import "../../chunk-7MVEAQ7Z.mjs";
|
|
6
|
-
import "../../chunk-W45H2ZMW.mjs";
|
|
7
6
|
import "../../chunk-UFVQPPPW.mjs";
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-QWIURBUH.mjs";
|
|
9
8
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
10
9
|
import "../../chunk-2TKEWFGH.mjs";
|
|
11
|
-
import "../../chunk-2SDYFOZL.mjs";
|
|
12
10
|
import "../../chunk-E3G5QXSH.mjs";
|
|
11
|
+
import "../../chunk-SP3JVQY3.mjs";
|
|
12
|
+
import "../../chunk-2SDYFOZL.mjs";
|
|
13
13
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
14
14
|
import "../../chunk-AC6TWLRT.mjs";
|
|
15
15
|
export {
|
|
@@ -13,12 +13,12 @@ import "../../chunk-6K3E5BVO.mjs";
|
|
|
13
13
|
import "../../chunk-6WSACUIB.mjs";
|
|
14
14
|
import "../../chunk-LXHUO6VM.mjs";
|
|
15
15
|
import "../../chunk-6PNKRBUT.mjs";
|
|
16
|
-
import "../../chunk-2PKM7SLZ.mjs";
|
|
17
16
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
18
17
|
import "../../chunk-2TKEWFGH.mjs";
|
|
19
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-2PKM7SLZ.mjs";
|
|
20
19
|
import "../../chunk-27Y6K5NK.mjs";
|
|
21
20
|
import "../../chunk-E3G5QXSH.mjs";
|
|
21
|
+
import "../../chunk-2SDYFOZL.mjs";
|
|
22
22
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
23
23
|
import "../../chunk-AC6TWLRT.mjs";
|
|
24
24
|
export {
|