@nextui-org/theme 0.0.0-dev-v2-20230331012031 → 0.0.0-dev-v2-20230331020226
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/dist/chunk-MBTUS5SO.mjs +97 -0
- package/dist/components/circular-progress.d.ts +162 -0
- package/dist/components/circular-progress.js +121 -0
- package/dist/components/circular-progress.mjs +6 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +96 -0
- package/dist/components/index.mjs +34 -30
- package/dist/components/progress.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +99 -3
- package/dist/index.mjs +34 -30
- package/package.json +1 -1
- /package/dist/{chunk-FWB233VZ.mjs → chunk-YMVSDHED.mjs} +0 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// src/components/circular-progress.ts
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
var circularProgress = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
base: "flex flex-col justify-center gap-1 max-w-fit items-center",
|
|
6
|
+
label: "",
|
|
7
|
+
svgWrapper: "relative block",
|
|
8
|
+
svg: "z-0 relative overflow-hidden",
|
|
9
|
+
circle: "h-full stroke-current",
|
|
10
|
+
value: "absolute font-semibold top-0 left-0 w-full h-full flex items-center justify-center"
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
color: {
|
|
14
|
+
neutral: {
|
|
15
|
+
svg: "text-neutral-400"
|
|
16
|
+
},
|
|
17
|
+
primary: {
|
|
18
|
+
svg: "text-primary"
|
|
19
|
+
},
|
|
20
|
+
secondary: {
|
|
21
|
+
svg: "text-secondary"
|
|
22
|
+
},
|
|
23
|
+
success: {
|
|
24
|
+
svg: "text-success"
|
|
25
|
+
},
|
|
26
|
+
warning: {
|
|
27
|
+
svg: "text-warning"
|
|
28
|
+
},
|
|
29
|
+
danger: {
|
|
30
|
+
svg: "text-danger"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
size: {
|
|
34
|
+
xs: {
|
|
35
|
+
svg: "w-6 h-6",
|
|
36
|
+
label: "text-xs",
|
|
37
|
+
value: "text-[0.4rem]"
|
|
38
|
+
},
|
|
39
|
+
sm: {
|
|
40
|
+
svg: "w-8 h-8",
|
|
41
|
+
label: "text-sm",
|
|
42
|
+
value: "text-[0.5rem]"
|
|
43
|
+
},
|
|
44
|
+
md: {
|
|
45
|
+
svg: "w-10 h-10",
|
|
46
|
+
label: "text-sm",
|
|
47
|
+
value: "text-[0.6rem]"
|
|
48
|
+
},
|
|
49
|
+
lg: {
|
|
50
|
+
svg: "w-12 h-12",
|
|
51
|
+
label: "text-base",
|
|
52
|
+
value: "text-xs"
|
|
53
|
+
},
|
|
54
|
+
xl: {
|
|
55
|
+
svg: "w-14 h-14",
|
|
56
|
+
label: "text-lg",
|
|
57
|
+
value: "text-xs"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
isIndeterminate: {
|
|
61
|
+
true: {
|
|
62
|
+
svg: "animate-spinner-ease-spin"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
isDisabled: {
|
|
66
|
+
true: {
|
|
67
|
+
base: "opacity-50 cursor-not-allowed"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
disableAnimation: {
|
|
71
|
+
true: {},
|
|
72
|
+
false: {
|
|
73
|
+
circle: "transition-all !duration-500"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
defaultVariants: {
|
|
78
|
+
color: "primary",
|
|
79
|
+
size: "md",
|
|
80
|
+
isIndeterminate: false,
|
|
81
|
+
isDisabled: false,
|
|
82
|
+
disableAnimation: false
|
|
83
|
+
},
|
|
84
|
+
compoundVariants: [
|
|
85
|
+
{
|
|
86
|
+
disableAnimation: true,
|
|
87
|
+
isIndeterminate: false,
|
|
88
|
+
class: {
|
|
89
|
+
svg: "!transition-none motion-reduce:transition-none"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
export {
|
|
96
|
+
circularProgress
|
|
97
|
+
};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* CircularProgress **Tailwind Variants** component
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```js
|
|
10
|
+
* const {base, svgWrapper, svg, circle, value, label} = circularProgress({...})
|
|
11
|
+
*
|
|
12
|
+
* <div className={base()} aria-label="progress" role="progressbar" aria-valuenow={value} aria-valuemin={min} aria-valuemax={max}>
|
|
13
|
+
* <div className={svgWrapper()}>
|
|
14
|
+
* <svg className={svg()}>
|
|
15
|
+
* <circle className={circle()} style={{width: `${value}%`}} />
|
|
16
|
+
* </svg>
|
|
17
|
+
* <span className={value()}>{value}</span>
|
|
18
|
+
* </div>
|
|
19
|
+
* <span className={label()}>{label}</span>
|
|
20
|
+
* </div>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare const circularProgress: tailwind_variants.TVReturnType<{
|
|
24
|
+
color: {
|
|
25
|
+
neutral: {
|
|
26
|
+
svg: string;
|
|
27
|
+
};
|
|
28
|
+
primary: {
|
|
29
|
+
svg: string;
|
|
30
|
+
};
|
|
31
|
+
secondary: {
|
|
32
|
+
svg: string;
|
|
33
|
+
};
|
|
34
|
+
success: {
|
|
35
|
+
svg: string;
|
|
36
|
+
};
|
|
37
|
+
warning: {
|
|
38
|
+
svg: string;
|
|
39
|
+
};
|
|
40
|
+
danger: {
|
|
41
|
+
svg: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
size: {
|
|
45
|
+
xs: {
|
|
46
|
+
svg: string;
|
|
47
|
+
label: string;
|
|
48
|
+
value: string;
|
|
49
|
+
};
|
|
50
|
+
sm: {
|
|
51
|
+
svg: string;
|
|
52
|
+
label: string;
|
|
53
|
+
value: string;
|
|
54
|
+
};
|
|
55
|
+
md: {
|
|
56
|
+
svg: string;
|
|
57
|
+
label: string;
|
|
58
|
+
value: string;
|
|
59
|
+
};
|
|
60
|
+
lg: {
|
|
61
|
+
svg: string;
|
|
62
|
+
label: string;
|
|
63
|
+
value: string;
|
|
64
|
+
};
|
|
65
|
+
xl: {
|
|
66
|
+
svg: string;
|
|
67
|
+
label: string;
|
|
68
|
+
value: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
isIndeterminate: {
|
|
72
|
+
true: {
|
|
73
|
+
svg: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
isDisabled: {
|
|
77
|
+
true: {
|
|
78
|
+
base: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
disableAnimation: {
|
|
82
|
+
true: {};
|
|
83
|
+
false: {
|
|
84
|
+
circle: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}, unknown, {
|
|
88
|
+
base: string;
|
|
89
|
+
label: string;
|
|
90
|
+
svgWrapper: string;
|
|
91
|
+
svg: string;
|
|
92
|
+
circle: string;
|
|
93
|
+
value: string;
|
|
94
|
+
}, undefined, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
95
|
+
color: {
|
|
96
|
+
neutral: {
|
|
97
|
+
svg: string;
|
|
98
|
+
};
|
|
99
|
+
primary: {
|
|
100
|
+
svg: string;
|
|
101
|
+
};
|
|
102
|
+
secondary: {
|
|
103
|
+
svg: string;
|
|
104
|
+
};
|
|
105
|
+
success: {
|
|
106
|
+
svg: string;
|
|
107
|
+
};
|
|
108
|
+
warning: {
|
|
109
|
+
svg: string;
|
|
110
|
+
};
|
|
111
|
+
danger: {
|
|
112
|
+
svg: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
size: {
|
|
116
|
+
xs: {
|
|
117
|
+
svg: string;
|
|
118
|
+
label: string;
|
|
119
|
+
value: string;
|
|
120
|
+
};
|
|
121
|
+
sm: {
|
|
122
|
+
svg: string;
|
|
123
|
+
label: string;
|
|
124
|
+
value: string;
|
|
125
|
+
};
|
|
126
|
+
md: {
|
|
127
|
+
svg: string;
|
|
128
|
+
label: string;
|
|
129
|
+
value: string;
|
|
130
|
+
};
|
|
131
|
+
lg: {
|
|
132
|
+
svg: string;
|
|
133
|
+
label: string;
|
|
134
|
+
value: string;
|
|
135
|
+
};
|
|
136
|
+
xl: {
|
|
137
|
+
svg: string;
|
|
138
|
+
label: string;
|
|
139
|
+
value: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
isIndeterminate: {
|
|
143
|
+
true: {
|
|
144
|
+
svg: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
isDisabled: {
|
|
148
|
+
true: {
|
|
149
|
+
base: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
disableAnimation: {
|
|
153
|
+
true: {};
|
|
154
|
+
false: {
|
|
155
|
+
circle: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
}, unknown>>;
|
|
159
|
+
type CircularProgressVariantProps = VariantProps<typeof circularProgress>;
|
|
160
|
+
type CircularProgressSlots = keyof ReturnType<typeof circularProgress>;
|
|
161
|
+
|
|
162
|
+
export { CircularProgressSlots, CircularProgressVariantProps, circularProgress };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/components/circular-progress.ts
|
|
21
|
+
var circular_progress_exports = {};
|
|
22
|
+
__export(circular_progress_exports, {
|
|
23
|
+
circularProgress: () => circularProgress
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(circular_progress_exports);
|
|
26
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
27
|
+
var circularProgress = (0, import_tailwind_variants.tv)({
|
|
28
|
+
slots: {
|
|
29
|
+
base: "flex flex-col justify-center gap-1 max-w-fit items-center",
|
|
30
|
+
label: "",
|
|
31
|
+
svgWrapper: "relative block",
|
|
32
|
+
svg: "z-0 relative overflow-hidden",
|
|
33
|
+
circle: "h-full stroke-current",
|
|
34
|
+
value: "absolute font-semibold top-0 left-0 w-full h-full flex items-center justify-center"
|
|
35
|
+
},
|
|
36
|
+
variants: {
|
|
37
|
+
color: {
|
|
38
|
+
neutral: {
|
|
39
|
+
svg: "text-neutral-400"
|
|
40
|
+
},
|
|
41
|
+
primary: {
|
|
42
|
+
svg: "text-primary"
|
|
43
|
+
},
|
|
44
|
+
secondary: {
|
|
45
|
+
svg: "text-secondary"
|
|
46
|
+
},
|
|
47
|
+
success: {
|
|
48
|
+
svg: "text-success"
|
|
49
|
+
},
|
|
50
|
+
warning: {
|
|
51
|
+
svg: "text-warning"
|
|
52
|
+
},
|
|
53
|
+
danger: {
|
|
54
|
+
svg: "text-danger"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
size: {
|
|
58
|
+
xs: {
|
|
59
|
+
svg: "w-6 h-6",
|
|
60
|
+
label: "text-xs",
|
|
61
|
+
value: "text-[0.4rem]"
|
|
62
|
+
},
|
|
63
|
+
sm: {
|
|
64
|
+
svg: "w-8 h-8",
|
|
65
|
+
label: "text-sm",
|
|
66
|
+
value: "text-[0.5rem]"
|
|
67
|
+
},
|
|
68
|
+
md: {
|
|
69
|
+
svg: "w-10 h-10",
|
|
70
|
+
label: "text-sm",
|
|
71
|
+
value: "text-[0.6rem]"
|
|
72
|
+
},
|
|
73
|
+
lg: {
|
|
74
|
+
svg: "w-12 h-12",
|
|
75
|
+
label: "text-base",
|
|
76
|
+
value: "text-xs"
|
|
77
|
+
},
|
|
78
|
+
xl: {
|
|
79
|
+
svg: "w-14 h-14",
|
|
80
|
+
label: "text-lg",
|
|
81
|
+
value: "text-xs"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
isIndeterminate: {
|
|
85
|
+
true: {
|
|
86
|
+
svg: "animate-spinner-ease-spin"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
isDisabled: {
|
|
90
|
+
true: {
|
|
91
|
+
base: "opacity-50 cursor-not-allowed"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
disableAnimation: {
|
|
95
|
+
true: {},
|
|
96
|
+
false: {
|
|
97
|
+
circle: "transition-all !duration-500"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
defaultVariants: {
|
|
102
|
+
color: "primary",
|
|
103
|
+
size: "md",
|
|
104
|
+
isIndeterminate: false,
|
|
105
|
+
isDisabled: false,
|
|
106
|
+
disableAnimation: false
|
|
107
|
+
},
|
|
108
|
+
compoundVariants: [
|
|
109
|
+
{
|
|
110
|
+
disableAnimation: true,
|
|
111
|
+
isIndeterminate: false,
|
|
112
|
+
class: {
|
|
113
|
+
svg: "!transition-none motion-reduce:transition-none"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
});
|
|
118
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
119
|
+
0 && (module.exports = {
|
|
120
|
+
circularProgress
|
|
121
|
+
});
|
|
@@ -21,5 +21,6 @@ export { ToggleSlots, ToggleVariantProps, toggle } from './toggle.js';
|
|
|
21
21
|
export { AccordionItemSlots, AccordionItemVariantProps, accordionItem } from './accordion-item.js';
|
|
22
22
|
export { AccordionGroupVariantProps, accordion } from './accordion.js';
|
|
23
23
|
export { ProgressSlots, ProgressVariantProps, progress } from './progress.js';
|
|
24
|
+
export { CircularProgressSlots, CircularProgressVariantProps, circularProgress } from './circular-progress.js';
|
|
24
25
|
import 'tailwind-variants';
|
|
25
26
|
import 'tailwind-variants/dist/config';
|
package/dist/components/index.js
CHANGED
|
@@ -31,6 +31,7 @@ __export(components_exports, {
|
|
|
31
31
|
checkbox: () => checkbox,
|
|
32
32
|
checkboxGroup: () => checkboxGroup,
|
|
33
33
|
chip: () => chip,
|
|
34
|
+
circularProgress: () => circularProgress,
|
|
34
35
|
code: () => code,
|
|
35
36
|
drip: () => drip,
|
|
36
37
|
link: () => link,
|
|
@@ -3564,6 +3565,100 @@ var progress = (0, import_tailwind_variants23.tv)(
|
|
|
3564
3565
|
twMerge: false
|
|
3565
3566
|
}
|
|
3566
3567
|
);
|
|
3568
|
+
|
|
3569
|
+
// src/components/circular-progress.ts
|
|
3570
|
+
var import_tailwind_variants24 = require("tailwind-variants");
|
|
3571
|
+
var circularProgress = (0, import_tailwind_variants24.tv)({
|
|
3572
|
+
slots: {
|
|
3573
|
+
base: "flex flex-col justify-center gap-1 max-w-fit items-center",
|
|
3574
|
+
label: "",
|
|
3575
|
+
svgWrapper: "relative block",
|
|
3576
|
+
svg: "z-0 relative overflow-hidden",
|
|
3577
|
+
circle: "h-full stroke-current",
|
|
3578
|
+
value: "absolute font-semibold top-0 left-0 w-full h-full flex items-center justify-center"
|
|
3579
|
+
},
|
|
3580
|
+
variants: {
|
|
3581
|
+
color: {
|
|
3582
|
+
neutral: {
|
|
3583
|
+
svg: "text-neutral-400"
|
|
3584
|
+
},
|
|
3585
|
+
primary: {
|
|
3586
|
+
svg: "text-primary"
|
|
3587
|
+
},
|
|
3588
|
+
secondary: {
|
|
3589
|
+
svg: "text-secondary"
|
|
3590
|
+
},
|
|
3591
|
+
success: {
|
|
3592
|
+
svg: "text-success"
|
|
3593
|
+
},
|
|
3594
|
+
warning: {
|
|
3595
|
+
svg: "text-warning"
|
|
3596
|
+
},
|
|
3597
|
+
danger: {
|
|
3598
|
+
svg: "text-danger"
|
|
3599
|
+
}
|
|
3600
|
+
},
|
|
3601
|
+
size: {
|
|
3602
|
+
xs: {
|
|
3603
|
+
svg: "w-6 h-6",
|
|
3604
|
+
label: "text-xs",
|
|
3605
|
+
value: "text-[0.4rem]"
|
|
3606
|
+
},
|
|
3607
|
+
sm: {
|
|
3608
|
+
svg: "w-8 h-8",
|
|
3609
|
+
label: "text-sm",
|
|
3610
|
+
value: "text-[0.5rem]"
|
|
3611
|
+
},
|
|
3612
|
+
md: {
|
|
3613
|
+
svg: "w-10 h-10",
|
|
3614
|
+
label: "text-sm",
|
|
3615
|
+
value: "text-[0.6rem]"
|
|
3616
|
+
},
|
|
3617
|
+
lg: {
|
|
3618
|
+
svg: "w-12 h-12",
|
|
3619
|
+
label: "text-base",
|
|
3620
|
+
value: "text-xs"
|
|
3621
|
+
},
|
|
3622
|
+
xl: {
|
|
3623
|
+
svg: "w-14 h-14",
|
|
3624
|
+
label: "text-lg",
|
|
3625
|
+
value: "text-xs"
|
|
3626
|
+
}
|
|
3627
|
+
},
|
|
3628
|
+
isIndeterminate: {
|
|
3629
|
+
true: {
|
|
3630
|
+
svg: "animate-spinner-ease-spin"
|
|
3631
|
+
}
|
|
3632
|
+
},
|
|
3633
|
+
isDisabled: {
|
|
3634
|
+
true: {
|
|
3635
|
+
base: "opacity-50 cursor-not-allowed"
|
|
3636
|
+
}
|
|
3637
|
+
},
|
|
3638
|
+
disableAnimation: {
|
|
3639
|
+
true: {},
|
|
3640
|
+
false: {
|
|
3641
|
+
circle: "transition-all !duration-500"
|
|
3642
|
+
}
|
|
3643
|
+
}
|
|
3644
|
+
},
|
|
3645
|
+
defaultVariants: {
|
|
3646
|
+
color: "primary",
|
|
3647
|
+
size: "md",
|
|
3648
|
+
isIndeterminate: false,
|
|
3649
|
+
isDisabled: false,
|
|
3650
|
+
disableAnimation: false
|
|
3651
|
+
},
|
|
3652
|
+
compoundVariants: [
|
|
3653
|
+
{
|
|
3654
|
+
disableAnimation: true,
|
|
3655
|
+
isIndeterminate: false,
|
|
3656
|
+
class: {
|
|
3657
|
+
svg: "!transition-none motion-reduce:transition-none"
|
|
3658
|
+
}
|
|
3659
|
+
}
|
|
3660
|
+
]
|
|
3661
|
+
});
|
|
3567
3662
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3568
3663
|
0 && (module.exports = {
|
|
3569
3664
|
accordion,
|
|
@@ -3577,6 +3672,7 @@ var progress = (0, import_tailwind_variants23.tv)(
|
|
|
3577
3672
|
checkbox,
|
|
3578
3673
|
checkboxGroup,
|
|
3579
3674
|
chip,
|
|
3675
|
+
circularProgress,
|
|
3580
3676
|
code,
|
|
3581
3677
|
drip,
|
|
3582
3678
|
link,
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-YMVSDHED.mjs";
|
|
2
|
+
import {
|
|
3
|
+
user
|
|
4
|
+
} from "../chunk-FS36US4S.mjs";
|
|
5
|
+
import {
|
|
6
|
+
pagination
|
|
7
|
+
} from "../chunk-7BYRB2YS.mjs";
|
|
8
|
+
import {
|
|
9
|
+
progress
|
|
10
|
+
} from "../chunk-U7DGA3S5.mjs";
|
|
11
|
+
import {
|
|
12
|
+
radioGroup
|
|
13
|
+
} from "../chunk-HHWXPWYN.mjs";
|
|
14
|
+
import {
|
|
15
|
+
radio
|
|
16
|
+
} from "../chunk-Y37XC5QN.mjs";
|
|
2
17
|
import {
|
|
3
18
|
snippet
|
|
4
19
|
} from "../chunk-QMP2FDFR.mjs";
|
|
@@ -12,8 +27,17 @@ import {
|
|
|
12
27
|
tooltip
|
|
13
28
|
} from "../chunk-QIC7EALL.mjs";
|
|
14
29
|
import {
|
|
15
|
-
|
|
16
|
-
} from "../chunk-
|
|
30
|
+
checkboxGroup
|
|
31
|
+
} from "../chunk-U77YMEWM.mjs";
|
|
32
|
+
import {
|
|
33
|
+
checkbox
|
|
34
|
+
} from "../chunk-NJQP2VWT.mjs";
|
|
35
|
+
import {
|
|
36
|
+
chip
|
|
37
|
+
} from "../chunk-TV7EJNXI.mjs";
|
|
38
|
+
import {
|
|
39
|
+
circularProgress
|
|
40
|
+
} from "../chunk-MBTUS5SO.mjs";
|
|
17
41
|
import {
|
|
18
42
|
code
|
|
19
43
|
} from "../chunk-B5S7HT6N.mjs";
|
|
@@ -24,17 +48,14 @@ import {
|
|
|
24
48
|
link
|
|
25
49
|
} from "../chunk-5OE5CWK6.mjs";
|
|
26
50
|
import {
|
|
27
|
-
|
|
28
|
-
} from "../chunk-
|
|
29
|
-
import {
|
|
30
|
-
progress
|
|
31
|
-
} from "../chunk-U7DGA3S5.mjs";
|
|
51
|
+
accordionItem
|
|
52
|
+
} from "../chunk-RD42SVXB.mjs";
|
|
32
53
|
import {
|
|
33
|
-
|
|
34
|
-
} from "../chunk-
|
|
54
|
+
accordion
|
|
55
|
+
} from "../chunk-YYBLBQIV.mjs";
|
|
35
56
|
import {
|
|
36
|
-
|
|
37
|
-
} from "../chunk-
|
|
57
|
+
avatarGroup
|
|
58
|
+
} from "../chunk-MLH3XSY7.mjs";
|
|
38
59
|
import {
|
|
39
60
|
avatar
|
|
40
61
|
} from "../chunk-D4TJV7NY.mjs";
|
|
@@ -50,27 +71,9 @@ import {
|
|
|
50
71
|
import {
|
|
51
72
|
card
|
|
52
73
|
} from "../chunk-HESJI33K.mjs";
|
|
53
|
-
import {
|
|
54
|
-
checkboxGroup
|
|
55
|
-
} from "../chunk-U77YMEWM.mjs";
|
|
56
|
-
import {
|
|
57
|
-
checkbox
|
|
58
|
-
} from "../chunk-NJQP2VWT.mjs";
|
|
59
|
-
import {
|
|
60
|
-
chip
|
|
61
|
-
} from "../chunk-TV7EJNXI.mjs";
|
|
62
|
-
import {
|
|
63
|
-
accordionItem
|
|
64
|
-
} from "../chunk-RD42SVXB.mjs";
|
|
65
74
|
import "../chunk-CMYR6AOY.mjs";
|
|
66
75
|
import "../chunk-K7LK7NCE.mjs";
|
|
67
76
|
import "../chunk-LGGZKBOO.mjs";
|
|
68
|
-
import {
|
|
69
|
-
accordion
|
|
70
|
-
} from "../chunk-YYBLBQIV.mjs";
|
|
71
|
-
import {
|
|
72
|
-
avatarGroup
|
|
73
|
-
} from "../chunk-MLH3XSY7.mjs";
|
|
74
77
|
import "../chunk-IJCHUO4J.mjs";
|
|
75
78
|
export {
|
|
76
79
|
accordion,
|
|
@@ -84,6 +87,7 @@ export {
|
|
|
84
87
|
checkbox,
|
|
85
88
|
checkboxGroup,
|
|
86
89
|
chip,
|
|
90
|
+
circularProgress,
|
|
87
91
|
code,
|
|
88
92
|
drip,
|
|
89
93
|
link,
|
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export { ToggleSlots, ToggleVariantProps, toggle } from './components/toggle.js'
|
|
|
21
21
|
export { AccordionItemSlots, AccordionItemVariantProps, accordionItem } from './components/accordion-item.js';
|
|
22
22
|
export { AccordionGroupVariantProps, accordion } from './components/accordion.js';
|
|
23
23
|
export { ProgressSlots, ProgressVariantProps, progress } from './components/progress.js';
|
|
24
|
+
export { CircularProgressSlots, CircularProgressVariantProps, circularProgress } from './components/circular-progress.js';
|
|
24
25
|
export { absoluteFullClasses, baseStyles, focusVisibleClasses, ringClasses, translateCenterClasses } from './utils/styles.js';
|
|
25
26
|
export { SlotsToClasses } from './utils/types.js';
|
|
26
27
|
export { colorVariants } from './utils/variants.js';
|
package/dist/index.js
CHANGED
|
@@ -39,6 +39,7 @@ __export(src_exports, {
|
|
|
39
39
|
checkbox: () => checkbox,
|
|
40
40
|
checkboxGroup: () => checkboxGroup,
|
|
41
41
|
chip: () => chip,
|
|
42
|
+
circularProgress: () => circularProgress,
|
|
42
43
|
cn: () => cn,
|
|
43
44
|
code: () => code,
|
|
44
45
|
colorVariants: () => colorVariants,
|
|
@@ -59,7 +60,7 @@ __export(src_exports, {
|
|
|
59
60
|
toggle: () => toggle,
|
|
60
61
|
tooltip: () => tooltip,
|
|
61
62
|
translateCenterClasses: () => translateCenterClasses,
|
|
62
|
-
tv: () =>
|
|
63
|
+
tv: () => import_tailwind_variants26.tv,
|
|
63
64
|
user: () => user
|
|
64
65
|
});
|
|
65
66
|
module.exports = __toCommonJS(src_exports);
|
|
@@ -3588,6 +3589,100 @@ var progress = (0, import_tailwind_variants23.tv)(
|
|
|
3588
3589
|
}
|
|
3589
3590
|
);
|
|
3590
3591
|
|
|
3592
|
+
// src/components/circular-progress.ts
|
|
3593
|
+
var import_tailwind_variants24 = require("tailwind-variants");
|
|
3594
|
+
var circularProgress = (0, import_tailwind_variants24.tv)({
|
|
3595
|
+
slots: {
|
|
3596
|
+
base: "flex flex-col justify-center gap-1 max-w-fit items-center",
|
|
3597
|
+
label: "",
|
|
3598
|
+
svgWrapper: "relative block",
|
|
3599
|
+
svg: "z-0 relative overflow-hidden",
|
|
3600
|
+
circle: "h-full stroke-current",
|
|
3601
|
+
value: "absolute font-semibold top-0 left-0 w-full h-full flex items-center justify-center"
|
|
3602
|
+
},
|
|
3603
|
+
variants: {
|
|
3604
|
+
color: {
|
|
3605
|
+
neutral: {
|
|
3606
|
+
svg: "text-neutral-400"
|
|
3607
|
+
},
|
|
3608
|
+
primary: {
|
|
3609
|
+
svg: "text-primary"
|
|
3610
|
+
},
|
|
3611
|
+
secondary: {
|
|
3612
|
+
svg: "text-secondary"
|
|
3613
|
+
},
|
|
3614
|
+
success: {
|
|
3615
|
+
svg: "text-success"
|
|
3616
|
+
},
|
|
3617
|
+
warning: {
|
|
3618
|
+
svg: "text-warning"
|
|
3619
|
+
},
|
|
3620
|
+
danger: {
|
|
3621
|
+
svg: "text-danger"
|
|
3622
|
+
}
|
|
3623
|
+
},
|
|
3624
|
+
size: {
|
|
3625
|
+
xs: {
|
|
3626
|
+
svg: "w-6 h-6",
|
|
3627
|
+
label: "text-xs",
|
|
3628
|
+
value: "text-[0.4rem]"
|
|
3629
|
+
},
|
|
3630
|
+
sm: {
|
|
3631
|
+
svg: "w-8 h-8",
|
|
3632
|
+
label: "text-sm",
|
|
3633
|
+
value: "text-[0.5rem]"
|
|
3634
|
+
},
|
|
3635
|
+
md: {
|
|
3636
|
+
svg: "w-10 h-10",
|
|
3637
|
+
label: "text-sm",
|
|
3638
|
+
value: "text-[0.6rem]"
|
|
3639
|
+
},
|
|
3640
|
+
lg: {
|
|
3641
|
+
svg: "w-12 h-12",
|
|
3642
|
+
label: "text-base",
|
|
3643
|
+
value: "text-xs"
|
|
3644
|
+
},
|
|
3645
|
+
xl: {
|
|
3646
|
+
svg: "w-14 h-14",
|
|
3647
|
+
label: "text-lg",
|
|
3648
|
+
value: "text-xs"
|
|
3649
|
+
}
|
|
3650
|
+
},
|
|
3651
|
+
isIndeterminate: {
|
|
3652
|
+
true: {
|
|
3653
|
+
svg: "animate-spinner-ease-spin"
|
|
3654
|
+
}
|
|
3655
|
+
},
|
|
3656
|
+
isDisabled: {
|
|
3657
|
+
true: {
|
|
3658
|
+
base: "opacity-50 cursor-not-allowed"
|
|
3659
|
+
}
|
|
3660
|
+
},
|
|
3661
|
+
disableAnimation: {
|
|
3662
|
+
true: {},
|
|
3663
|
+
false: {
|
|
3664
|
+
circle: "transition-all !duration-500"
|
|
3665
|
+
}
|
|
3666
|
+
}
|
|
3667
|
+
},
|
|
3668
|
+
defaultVariants: {
|
|
3669
|
+
color: "primary",
|
|
3670
|
+
size: "md",
|
|
3671
|
+
isIndeterminate: false,
|
|
3672
|
+
isDisabled: false,
|
|
3673
|
+
disableAnimation: false
|
|
3674
|
+
},
|
|
3675
|
+
compoundVariants: [
|
|
3676
|
+
{
|
|
3677
|
+
disableAnimation: true,
|
|
3678
|
+
isIndeterminate: false,
|
|
3679
|
+
class: {
|
|
3680
|
+
svg: "!transition-none motion-reduce:transition-none"
|
|
3681
|
+
}
|
|
3682
|
+
}
|
|
3683
|
+
]
|
|
3684
|
+
});
|
|
3685
|
+
|
|
3591
3686
|
// src/colors/blue.ts
|
|
3592
3687
|
var blue = {
|
|
3593
3688
|
50: "#e6f1fe",
|
|
@@ -4139,9 +4234,9 @@ var nextui = (config = {}) => {
|
|
|
4139
4234
|
};
|
|
4140
4235
|
|
|
4141
4236
|
// src/index.ts
|
|
4142
|
-
var import_tailwind_variants24 = require("tailwind-variants");
|
|
4143
4237
|
var import_tailwind_variants25 = require("tailwind-variants");
|
|
4144
|
-
var
|
|
4238
|
+
var import_tailwind_variants26 = require("tailwind-variants");
|
|
4239
|
+
var cn = (...classes) => (0, import_tailwind_variants25.cn)(classes)();
|
|
4145
4240
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4146
4241
|
0 && (module.exports = {
|
|
4147
4242
|
absoluteFullClasses,
|
|
@@ -4157,6 +4252,7 @@ var cn = (...classes) => (0, import_tailwind_variants24.cn)(classes)();
|
|
|
4157
4252
|
checkbox,
|
|
4158
4253
|
checkboxGroup,
|
|
4159
4254
|
chip,
|
|
4255
|
+
circularProgress,
|
|
4160
4256
|
cn,
|
|
4161
4257
|
code,
|
|
4162
4258
|
colorVariants,
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-YMVSDHED.mjs";
|
|
2
|
+
import {
|
|
3
|
+
user
|
|
4
|
+
} from "./chunk-FS36US4S.mjs";
|
|
5
|
+
import {
|
|
6
|
+
pagination
|
|
7
|
+
} from "./chunk-7BYRB2YS.mjs";
|
|
8
|
+
import {
|
|
9
|
+
progress
|
|
10
|
+
} from "./chunk-U7DGA3S5.mjs";
|
|
11
|
+
import {
|
|
12
|
+
radioGroup
|
|
13
|
+
} from "./chunk-HHWXPWYN.mjs";
|
|
14
|
+
import {
|
|
15
|
+
radio
|
|
16
|
+
} from "./chunk-Y37XC5QN.mjs";
|
|
2
17
|
import {
|
|
3
18
|
snippet
|
|
4
19
|
} from "./chunk-QMP2FDFR.mjs";
|
|
@@ -12,8 +27,17 @@ import {
|
|
|
12
27
|
tooltip
|
|
13
28
|
} from "./chunk-QIC7EALL.mjs";
|
|
14
29
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
30
|
+
checkboxGroup
|
|
31
|
+
} from "./chunk-U77YMEWM.mjs";
|
|
32
|
+
import {
|
|
33
|
+
checkbox
|
|
34
|
+
} from "./chunk-NJQP2VWT.mjs";
|
|
35
|
+
import {
|
|
36
|
+
chip
|
|
37
|
+
} from "./chunk-TV7EJNXI.mjs";
|
|
38
|
+
import {
|
|
39
|
+
circularProgress
|
|
40
|
+
} from "./chunk-MBTUS5SO.mjs";
|
|
17
41
|
import {
|
|
18
42
|
code
|
|
19
43
|
} from "./chunk-B5S7HT6N.mjs";
|
|
@@ -24,17 +48,14 @@ import {
|
|
|
24
48
|
link
|
|
25
49
|
} from "./chunk-5OE5CWK6.mjs";
|
|
26
50
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import {
|
|
30
|
-
progress
|
|
31
|
-
} from "./chunk-U7DGA3S5.mjs";
|
|
51
|
+
accordionItem
|
|
52
|
+
} from "./chunk-RD42SVXB.mjs";
|
|
32
53
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
54
|
+
accordion
|
|
55
|
+
} from "./chunk-YYBLBQIV.mjs";
|
|
35
56
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
57
|
+
avatarGroup
|
|
58
|
+
} from "./chunk-MLH3XSY7.mjs";
|
|
38
59
|
import {
|
|
39
60
|
avatar
|
|
40
61
|
} from "./chunk-D4TJV7NY.mjs";
|
|
@@ -50,29 +71,11 @@ import {
|
|
|
50
71
|
import {
|
|
51
72
|
card
|
|
52
73
|
} from "./chunk-HESJI33K.mjs";
|
|
53
|
-
import {
|
|
54
|
-
checkboxGroup
|
|
55
|
-
} from "./chunk-U77YMEWM.mjs";
|
|
56
|
-
import {
|
|
57
|
-
checkbox
|
|
58
|
-
} from "./chunk-NJQP2VWT.mjs";
|
|
59
|
-
import {
|
|
60
|
-
chip
|
|
61
|
-
} from "./chunk-TV7EJNXI.mjs";
|
|
62
|
-
import {
|
|
63
|
-
accordionItem
|
|
64
|
-
} from "./chunk-RD42SVXB.mjs";
|
|
65
74
|
import "./chunk-CMYR6AOY.mjs";
|
|
66
75
|
import "./chunk-K7LK7NCE.mjs";
|
|
67
76
|
import {
|
|
68
77
|
colorVariants
|
|
69
78
|
} from "./chunk-LGGZKBOO.mjs";
|
|
70
|
-
import {
|
|
71
|
-
accordion
|
|
72
|
-
} from "./chunk-YYBLBQIV.mjs";
|
|
73
|
-
import {
|
|
74
|
-
avatarGroup
|
|
75
|
-
} from "./chunk-MLH3XSY7.mjs";
|
|
76
79
|
import {
|
|
77
80
|
nextui
|
|
78
81
|
} from "./chunk-QIIQBTQR.mjs";
|
|
@@ -123,6 +126,7 @@ export {
|
|
|
123
126
|
checkbox,
|
|
124
127
|
checkboxGroup,
|
|
125
128
|
chip,
|
|
129
|
+
circularProgress,
|
|
126
130
|
cn,
|
|
127
131
|
code,
|
|
128
132
|
colorVariants,
|
package/package.json
CHANGED
|
File without changes
|