@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.
Files changed (65) hide show
  1. package/.turbo/turbo-build.log +176 -161
  2. package/dist/chunk-3YMMVZDL.mjs +1 -0
  3. package/dist/{chunk-4LOREVB7.mjs → chunk-42LXAL5Y.mjs} +3 -4
  4. package/dist/{chunk-ECMBAKSJ.mjs → chunk-D7XSWNZ7.mjs} +4 -4
  5. package/dist/chunk-IET623ED.mjs +106 -0
  6. package/dist/{chunk-MFRYYZPY.mjs → chunk-KJMJIFPS.mjs} +22 -19
  7. package/dist/chunk-LTXJKWHO.mjs +107 -0
  8. package/dist/{chunk-QJJKJYNR.mjs → chunk-NR7MGDUE.mjs} +3 -3
  9. package/dist/components/breadcrumb/breadcrumb.mjs +3 -3
  10. package/dist/components/breadcrumb/index.mjs +3 -3
  11. package/dist/components/button/button.mjs +1 -1
  12. package/dist/components/button/icon-button.mjs +1 -1
  13. package/dist/components/button/index.mjs +3 -3
  14. package/dist/components/charts/areaCharts.d.mts +66 -0
  15. package/dist/components/charts/areaCharts.d.ts +66 -0
  16. package/dist/components/charts/areaCharts.js +441 -0
  17. package/dist/components/charts/areaCharts.mjs +10 -0
  18. package/dist/components/charts/circularProgress.d.mts +92 -0
  19. package/dist/components/charts/circularProgress.d.ts +92 -0
  20. package/dist/components/charts/circularProgress.js +441 -0
  21. package/dist/components/charts/circularProgress.mjs +11 -0
  22. package/dist/components/charts/index.d.mts +5 -0
  23. package/dist/components/charts/index.d.ts +5 -0
  24. package/dist/components/charts/index.js +543 -0
  25. package/dist/components/charts/index.mjs +15 -0
  26. package/dist/components/chip/chip.mjs +1 -1
  27. package/dist/components/chip/index.mjs +1 -1
  28. package/dist/components/dateTimePicker/calendar.mjs +1 -1
  29. package/dist/components/dateTimePicker/dateTimePicker.mjs +7 -7
  30. package/dist/components/dateTimePicker/index.mjs +7 -7
  31. package/dist/components/dateTimePicker/timePicker.mjs +4 -4
  32. package/dist/components/fileUpload/fileUpload.mjs +2 -2
  33. package/dist/components/fileUpload/index.mjs +2 -2
  34. package/dist/components/input/index.mjs +1 -1
  35. package/dist/components/input/input.mjs +1 -1
  36. package/dist/components/list/index.mjs +5 -5
  37. package/dist/components/list/listItem.mjs +3 -3
  38. package/dist/components/modal/index.mjs +2 -2
  39. package/dist/components/modal/modal.mjs +2 -2
  40. package/dist/components/pagination/index.mjs +1 -1
  41. package/dist/components/pagination/pagination.mjs +1 -1
  42. package/dist/components/select/index.mjs +1 -1
  43. package/dist/components/select/select.mjs +1 -1
  44. package/dist/components/table/index.js +24 -22
  45. package/dist/components/table/index.mjs +6 -6
  46. package/dist/components/table/table-body.d.mts +1 -2
  47. package/dist/components/table/table-body.d.ts +1 -2
  48. package/dist/components/table/table-body.js +22 -19
  49. package/dist/components/table/table-body.mjs +1 -1
  50. package/dist/components/table/table.d.mts +0 -1
  51. package/dist/components/table/table.d.ts +0 -1
  52. package/dist/components/table/table.js +24 -22
  53. package/dist/components/table/table.mjs +3 -3
  54. package/dist/components/toast/index.mjs +1 -1
  55. package/dist/components/toast/toast.mjs +1 -1
  56. package/dist/components/toast/use-toast.mjs +1 -1
  57. package/dist/components/tree/index.mjs +1 -1
  58. package/dist/components/tree/tree.mjs +1 -1
  59. package/dist/index.d.mts +2 -0
  60. package/dist/index.d.ts +2 -0
  61. package/dist/index.js +219 -22
  62. package/dist/index.mjs +62 -53
  63. package/package.json +4 -3
  64. package/dist/{chunk-III2QUWF.mjs → chunk-L2VA3ACH.mjs} +3 -3
  65. package/dist/{chunk-W45H2ZMW.mjs → chunk-QWIURBUH.mjs} +3 -3
@@ -0,0 +1,441 @@
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/areaCharts.tsx
103
+ var areaCharts_exports = {};
104
+ __export(areaCharts_exports, {
105
+ default: () => areaCharts_default
106
+ });
107
+ module.exports = __toCommonJS(areaCharts_exports);
108
+ var import_react = require("react");
109
+
110
+ // src/utils/tailwind-variants.ts
111
+ var import_tailwind_variants = require("tailwind-variants");
112
+
113
+ // ../tailwind-config/src/plugin.ts
114
+ var import_plugin = __toESM(require_plugin());
115
+
116
+ // ../tailwind-config/src/typography/font.ts
117
+ var fontSize = {
118
+ h1: [
119
+ "40px",
120
+ {
121
+ fontWeight: "700"
122
+ }
123
+ ],
124
+ h2: [
125
+ "34px",
126
+ {
127
+ fontWeight: "700"
128
+ }
129
+ ],
130
+ h3: [
131
+ "28px",
132
+ {
133
+ fontWeight: "700"
134
+ }
135
+ ],
136
+ h4: [
137
+ "24px",
138
+ {
139
+ fontWeight: "700"
140
+ }
141
+ ],
142
+ h5: [
143
+ "20px",
144
+ {
145
+ fontWeight: "600"
146
+ }
147
+ ],
148
+ sm: [
149
+ "12px",
150
+ {
151
+ lineHeight: "18px",
152
+ fontWeight: "400"
153
+ }
154
+ ],
155
+ md: [
156
+ "14px",
157
+ {
158
+ lineHeight: "21px",
159
+ fontWeight: "400"
160
+ }
161
+ ],
162
+ lg: [
163
+ "16px",
164
+ {
165
+ lineHeight: "24px",
166
+ fontWeight: "400"
167
+ }
168
+ ],
169
+ xl: [
170
+ "18px",
171
+ {
172
+ lineHeight: "27px",
173
+ fontWeight: "400"
174
+ }
175
+ ]
176
+ };
177
+
178
+ // ../tailwind-config/src/animation/slide.ts
179
+ var sliceAnimation = {
180
+ slideInFromTop: "slideInFromTop 0.5s ease-out",
181
+ slideInFromBottom: "slideInFromBottom 0.5s ease-out",
182
+ slideInFromLeft: "slideInFromLeft 0.5s ease-out",
183
+ slideInFromRight: "slideInFromRight 0.5s ease-out",
184
+ slideOutToTop: "slideOutToTop 0.5s ease-in",
185
+ slideOutToBottom: "slideOutToBottom 0.5s ease-in",
186
+ slideOutToLeft: "slideOutToLeft 0.5s ease-in",
187
+ slideOutToRight: "slideOutToRight 0.5s ease-in"
188
+ };
189
+ var sliceKeyframe = {
190
+ slideInFromTop: {
191
+ "0%": {
192
+ transform: "translateY(-10px)",
193
+ opacity: "0"
194
+ },
195
+ "100%": {
196
+ transform: "translateY(0)",
197
+ opacity: "1"
198
+ }
199
+ },
200
+ slideInFromBottom: {
201
+ "0%": {
202
+ transform: "translateY(10px)",
203
+ opacity: "0"
204
+ },
205
+ "100%": {
206
+ transform: "translateY(0)",
207
+ opacity: "1"
208
+ }
209
+ },
210
+ slideInFromLeft: {
211
+ "0%": {
212
+ transform: "translateX(-10px)",
213
+ opacity: "0"
214
+ },
215
+ "100%": {
216
+ transform: "translateX(0)",
217
+ opacity: "1"
218
+ }
219
+ },
220
+ slideInFromRight: {
221
+ "0%": {
222
+ transform: "translateX(10px)",
223
+ opacity: "0"
224
+ },
225
+ "100%": {
226
+ transform: "translateX(0)",
227
+ opacity: "1"
228
+ }
229
+ },
230
+ slideOutToTop: {
231
+ "0%": {
232
+ transform: "translateY(0)",
233
+ opacity: "1"
234
+ },
235
+ "100%": {
236
+ transform: "translateY(-10px)",
237
+ opacity: "0"
238
+ }
239
+ },
240
+ slideOutToBottom: {
241
+ "0%": {
242
+ transform: "translateY(0)",
243
+ opacity: "1"
244
+ },
245
+ "100%": {
246
+ transform: "translateY(10px)",
247
+ opacity: "0"
248
+ }
249
+ },
250
+ slideOutToLeft: {
251
+ "0%": {
252
+ transform: "translateX(0)",
253
+ opacity: "1"
254
+ },
255
+ "100%": {
256
+ transform: "translateX(-10px)",
257
+ opacity: "0"
258
+ }
259
+ },
260
+ slideOutToRight: {
261
+ "0%": {
262
+ transform: "translateX(0)",
263
+ opacity: "1"
264
+ },
265
+ "100%": {
266
+ transform: "translateX(10px)",
267
+ opacity: "0"
268
+ }
269
+ }
270
+ };
271
+
272
+ // ../tailwind-config/src/animation/index.ts
273
+ var animation = { ...sliceAnimation };
274
+ var keyframes = { ...sliceKeyframe };
275
+
276
+ // ../tailwind-config/src/shadow/index.ts
277
+ var boxShadow = {
278
+ "border-1": "inner 0 0 0 1px inset",
279
+ "border-2": "inner 0 0 0 2px inset",
280
+ "border-3": "inner 0 0 0 3px inset",
281
+ "border-4": "inner 0 0 0 4px inset",
282
+ "border-5": "inner 0 0 0 5px inset",
283
+ "border-6": "inner 0 0 0 6px inset",
284
+ "border-7": "inner 0 0 0 7px inset",
285
+ "border-8": "inner 0 0 0 8px inset",
286
+ "border-9": "inner 0 0 0 9px inset",
287
+ "border-10": "inner 0 0 0 10px inset",
288
+ inner: "inset 0 4px 8px 0 rgba(36, 39, 44, 0.2)",
289
+ drop: "0 20px 40px 0 rgba(36, 39, 44, 0.2)"
290
+ };
291
+
292
+ // ../tailwind-config/src/border/radius.ts
293
+ var borderRadius = {
294
+ sm: "4px",
295
+ md: "6px",
296
+ lg: "8px",
297
+ xl: "10px",
298
+ none: "0",
299
+ full: "9999px"
300
+ };
301
+
302
+ // ../tailwind-config/src/space/gap.ts
303
+ var gap = {
304
+ sm: "4px",
305
+ md: "6px",
306
+ lg: "8px",
307
+ xl: "10px"
308
+ };
309
+
310
+ // src/utils/tailwind-variants.ts
311
+ function typedKeys(obj) {
312
+ return Object.keys(obj);
313
+ }
314
+ var COMMON_SIZE = ["sm", "md", "lg", "xl"];
315
+ var tv = (0, import_tailwind_variants.createTV)({
316
+ twMergeConfig: {
317
+ classGroups: {
318
+ fontSize: [{ text: [...typedKeys(fontSize)] }],
319
+ borderRadius: [{ rounded: [...typedKeys(borderRadius)] }],
320
+ boxShadow: [{ shadow: [...typedKeys(boxShadow)] }],
321
+ padding: [{ p: [...COMMON_SIZE] }],
322
+ gap: [{ gap: [...typedKeys(gap)] }]
323
+ }
324
+ }
325
+ });
326
+
327
+ // src/components/charts/areaCharts.tsx
328
+ var import_recharts = require("recharts");
329
+
330
+ // src/utils/props.ts
331
+ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
332
+ if (!variantKeys) {
333
+ return [props, {}];
334
+ }
335
+ const picked = variantKeys.reduce((acc, key) => {
336
+ if (key in props) {
337
+ return { ...acc, [key]: props[key] };
338
+ } else {
339
+ return acc;
340
+ }
341
+ }, {});
342
+ if (removeVariantProps) {
343
+ const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
344
+ return [omitted, picked];
345
+ } else {
346
+ return [props, picked];
347
+ }
348
+ };
349
+
350
+ // src/components/charts/areaCharts.tsx
351
+ var import_jsx_runtime = require("react/jsx-runtime");
352
+ var AreaChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
353
+ var _a, _b;
354
+ const [props, variantProps] = mapPropsVariants(originalProps, areaChartStyle.variantKeys);
355
+ const { areaData, color, classNames } = { ...props, ...variantProps };
356
+ const slots = (0, import_react.useMemo)(() => areaChartStyle({ ...variantProps }), [variantProps]);
357
+ const colorHex = (_b = (_a = areaChartStyle.variants.color) == null ? void 0 : _a[color || "primary"]) == null ? void 0 : _b._colorValue;
358
+ const CustomDotWithShadow = (props2) => {
359
+ const { cx, cy, fill, stroke } = props2;
360
+ if (cx === void 0 || cy === void 0) return null;
361
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
362
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx, cy, r: 8, fill, opacity: 0.2 }),
363
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx, cy, r: 3.5, fill, stroke, strokeWidth: 2 })
364
+ ] });
365
+ };
366
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
367
+ import_recharts.AreaChart,
368
+ {
369
+ data: areaData,
370
+ margin: {
371
+ top: 20,
372
+ right: 30,
373
+ left: 20,
374
+ bottom: 20
375
+ },
376
+ children: [
377
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: "colorGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
378
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
379
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
380
+ ] }) }),
381
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.CartesianGrid, { vertical: true, horizontal: false, strokeDasharray: "3 3", className: "stroke-neutral-light" }),
382
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
383
+ import_recharts.XAxis,
384
+ {
385
+ dataKey: "name",
386
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
387
+ tickLine: false,
388
+ tick: { fontSize: 12, fontWeight: 700, fill: "text-body-foreground" },
389
+ padding: { left: 35.5, right: 35.5 }
390
+ }
391
+ ),
392
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
393
+ import_recharts.YAxis,
394
+ {
395
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
396
+ tickLine: false,
397
+ tick: { fontSize: 12, fontWeight: 700, fill: "text-body-foreground" },
398
+ ticks: [0, 20, 40, 60, 80, 100],
399
+ domain: [0, 100]
400
+ }
401
+ ),
402
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
403
+ import_recharts.Area,
404
+ {
405
+ type: "monotone",
406
+ dataKey: "value",
407
+ stroke: colorHex,
408
+ strokeWidth: 2,
409
+ fill: "url(#colorGradient)",
410
+ dot: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
411
+ activeDot: { r: 7, fill: colorHex }
412
+ }
413
+ )
414
+ ]
415
+ }
416
+ ) }) });
417
+ });
418
+ AreaChartComponent.displayName = "AreaChart";
419
+ var areaCharts_default = AreaChartComponent;
420
+ var areaChartStyle = tv({
421
+ slots: {
422
+ base: [],
423
+ color: [],
424
+ axis: ["text-sm", "font-bold", "text-center", "text-body-foreground"]
425
+ },
426
+ variants: {
427
+ color: {
428
+ primary: {
429
+ color: ["text-primary-main"],
430
+ _colorValue: "#3F9CF2"
431
+ },
432
+ danger: {
433
+ color: ["text-danger-main"],
434
+ _colorValue: "#FF4684"
435
+ }
436
+ }
437
+ },
438
+ defaultVariants: {
439
+ color: "primary"
440
+ }
441
+ });
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import {
3
+ areaCharts_default
4
+ } from "../../chunk-IET623ED.mjs";
5
+ import "../../chunk-E3G5QXSH.mjs";
6
+ import "../../chunk-4ZJFD3L3.mjs";
7
+ import "../../chunk-AC6TWLRT.mjs";
8
+ export {
9
+ areaCharts_default as default
10
+ };
@@ -0,0 +1,92 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import * as react from 'react';
4
+ import { SlotsToClasses } from '../../utils/types.mjs';
5
+
6
+ type Props = {
7
+ percentage: number;
8
+ unit?: string;
9
+ title?: string;
10
+ size?: number;
11
+ classNames?: SlotsToClasses<CircularProgressSlots>;
12
+ };
13
+ type CircularProgressProps = Props & CircularProgressVariantProps;
14
+ declare const CircularProgress: react.ForwardRefExoticComponent<Props & CircularProgressVariantProps & react.RefAttributes<HTMLDivElement>>;
15
+
16
+ declare const circularProgressStyle: tailwind_variants.TVReturnType<{
17
+ color: {
18
+ primary: {
19
+ background: string[];
20
+ progress: string[];
21
+ text: string[];
22
+ };
23
+ secondary: {
24
+ background: string[];
25
+ progress: string[];
26
+ text: string[];
27
+ };
28
+ warning: {
29
+ background: string[];
30
+ progress: string[];
31
+ text: string[];
32
+ };
33
+ };
34
+ }, {
35
+ base: string[];
36
+ background: never[];
37
+ progress: string[];
38
+ text: string[];
39
+ title: string[];
40
+ }, undefined, {
41
+ color: {
42
+ primary: {
43
+ background: string[];
44
+ progress: string[];
45
+ text: string[];
46
+ };
47
+ secondary: {
48
+ background: string[];
49
+ progress: string[];
50
+ text: string[];
51
+ };
52
+ warning: {
53
+ background: string[];
54
+ progress: string[];
55
+ text: string[];
56
+ };
57
+ };
58
+ }, {
59
+ base: string[];
60
+ background: never[];
61
+ progress: string[];
62
+ text: string[];
63
+ title: string[];
64
+ }, tailwind_variants.TVReturnType<{
65
+ color: {
66
+ primary: {
67
+ background: string[];
68
+ progress: string[];
69
+ text: string[];
70
+ };
71
+ secondary: {
72
+ background: string[];
73
+ progress: string[];
74
+ text: string[];
75
+ };
76
+ warning: {
77
+ background: string[];
78
+ progress: string[];
79
+ text: string[];
80
+ };
81
+ };
82
+ }, {
83
+ base: string[];
84
+ background: never[];
85
+ progress: string[];
86
+ text: string[];
87
+ title: string[];
88
+ }, undefined, unknown, unknown, undefined>>;
89
+ type CircularProgressVariantProps = VariantProps<typeof circularProgressStyle>;
90
+ type CircularProgressSlots = keyof ReturnType<typeof circularProgressStyle>;
91
+
92
+ export { type CircularProgressProps, CircularProgress as default };
@@ -0,0 +1,92 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import * as react from 'react';
4
+ import { SlotsToClasses } from '../../utils/types.js';
5
+
6
+ type Props = {
7
+ percentage: number;
8
+ unit?: string;
9
+ title?: string;
10
+ size?: number;
11
+ classNames?: SlotsToClasses<CircularProgressSlots>;
12
+ };
13
+ type CircularProgressProps = Props & CircularProgressVariantProps;
14
+ declare const CircularProgress: react.ForwardRefExoticComponent<Props & CircularProgressVariantProps & react.RefAttributes<HTMLDivElement>>;
15
+
16
+ declare const circularProgressStyle: tailwind_variants.TVReturnType<{
17
+ color: {
18
+ primary: {
19
+ background: string[];
20
+ progress: string[];
21
+ text: string[];
22
+ };
23
+ secondary: {
24
+ background: string[];
25
+ progress: string[];
26
+ text: string[];
27
+ };
28
+ warning: {
29
+ background: string[];
30
+ progress: string[];
31
+ text: string[];
32
+ };
33
+ };
34
+ }, {
35
+ base: string[];
36
+ background: never[];
37
+ progress: string[];
38
+ text: string[];
39
+ title: string[];
40
+ }, undefined, {
41
+ color: {
42
+ primary: {
43
+ background: string[];
44
+ progress: string[];
45
+ text: string[];
46
+ };
47
+ secondary: {
48
+ background: string[];
49
+ progress: string[];
50
+ text: string[];
51
+ };
52
+ warning: {
53
+ background: string[];
54
+ progress: string[];
55
+ text: string[];
56
+ };
57
+ };
58
+ }, {
59
+ base: string[];
60
+ background: never[];
61
+ progress: string[];
62
+ text: string[];
63
+ title: string[];
64
+ }, tailwind_variants.TVReturnType<{
65
+ color: {
66
+ primary: {
67
+ background: string[];
68
+ progress: string[];
69
+ text: string[];
70
+ };
71
+ secondary: {
72
+ background: string[];
73
+ progress: string[];
74
+ text: string[];
75
+ };
76
+ warning: {
77
+ background: string[];
78
+ progress: string[];
79
+ text: string[];
80
+ };
81
+ };
82
+ }, {
83
+ base: string[];
84
+ background: never[];
85
+ progress: string[];
86
+ text: string[];
87
+ title: string[];
88
+ }, undefined, unknown, unknown, undefined>>;
89
+ type CircularProgressVariantProps = VariantProps<typeof circularProgressStyle>;
90
+ type CircularProgressSlots = keyof ReturnType<typeof circularProgressStyle>;
91
+
92
+ export { type CircularProgressProps, CircularProgress as default };