@fuf-stack/pixels 0.39.9 → 0.41.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/dist/Button/index.cjs +2 -2
- package/dist/Button/index.js +1 -1
- package/dist/Json/index.cjs +3 -3
- package/dist/Json/index.js +2 -2
- package/dist/Progress/index.cjs +5 -82
- package/dist/Progress/index.cjs.map +1 -1
- package/dist/Progress/index.d.cts +9 -222
- package/dist/Progress/index.d.ts +9 -222
- package/dist/Progress/index.js +5 -82
- package/dist/Progress/index.js.map +1 -1
- package/dist/Progress-7yXUVioO.d.cts +228 -0
- package/dist/Progress-7yXUVioO.d.ts +228 -0
- package/dist/ProgressCircular/index.cjs +12 -0
- package/dist/ProgressCircular/index.cjs.map +1 -0
- package/dist/ProgressCircular/index.d.cts +11 -0
- package/dist/ProgressCircular/index.d.ts +11 -0
- package/dist/ProgressCircular/index.js +12 -0
- package/dist/ProgressCircular/index.js.map +1 -0
- package/dist/ProgressCircular-U4kPZ1T1.d.cts +414 -0
- package/dist/ProgressCircular-U4kPZ1T1.d.ts +414 -0
- package/dist/{chunk-HHCDSQ6N.cjs → chunk-FLPLJTAC.cjs} +2 -2
- package/dist/{chunk-HHCDSQ6N.cjs.map → chunk-FLPLJTAC.cjs.map} +1 -1
- package/dist/chunk-GJQTAEHH.js +113 -0
- package/dist/chunk-GJQTAEHH.js.map +1 -0
- package/dist/{chunk-374SO74F.cjs → chunk-J63YGHTG.cjs} +3 -3
- package/dist/{chunk-374SO74F.cjs.map → chunk-J63YGHTG.cjs.map} +1 -1
- package/dist/{chunk-Q5DUSUCZ.js → chunk-MAKWBTTW.js} +2 -2
- package/dist/{chunk-Q5DUSUCZ.js.map → chunk-MAKWBTTW.js.map} +1 -1
- package/dist/chunk-RV7YPQXI.js +95 -0
- package/dist/chunk-RV7YPQXI.js.map +1 -0
- package/dist/chunk-VGXW3PSF.cjs +95 -0
- package/dist/chunk-VGXW3PSF.cjs.map +1 -0
- package/dist/{chunk-L3DEBOPG.js → chunk-VRPX6QUG.js} +2 -2
- package/dist/chunk-WCRVH4DS.cjs +113 -0
- package/dist/chunk-WCRVH4DS.cjs.map +1 -0
- package/dist/index.cjs +16 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +15 -5
- package/dist/index.js.map +1 -1
- package/package.json +30 -25
- /package/dist/{chunk-L3DEBOPG.js.map → chunk-VRPX6QUG.js.map} +0 -0
package/dist/Button/index.cjs
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkFLPLJTACcjs = require('../chunk-FLPLJTAC.cjs');
|
|
6
6
|
require('../chunk-D4TLDLEX.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.Button =
|
|
11
|
+
exports.Button = _chunkFLPLJTACcjs.Button_default; exports.buttonVariants = _chunkFLPLJTACcjs.buttonVariants; exports.default = _chunkFLPLJTACcjs.Button_default2;
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Button/index.js
CHANGED
package/dist/Json/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
4
|
+
var _chunkJ63YGHTGcjs = require('../chunk-J63YGHTG.cjs');
|
|
5
|
+
require('../chunk-FLPLJTAC.cjs');
|
|
6
6
|
require('../chunk-D4TLDLEX.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.Json =
|
|
10
|
+
exports.Json = _chunkJ63YGHTGcjs.Json_default; exports.default = _chunkJ63YGHTGcjs.Json_default2;
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Json/index.js
CHANGED
package/dist/Progress/index.cjs
CHANGED
|
@@ -1,89 +1,12 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
// src/Progress/Progress.tsx
|
|
4
|
-
var _progress = require('@heroui/progress');
|
|
5
|
-
var _pixelutils = require('@fuf-stack/pixel-utils');
|
|
6
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
7
|
-
var progressVariants = _pixelutils.tv.call(void 0, {
|
|
8
|
-
slots: {
|
|
9
|
-
base: "",
|
|
10
|
-
// wrapper around the whole component
|
|
11
|
-
indicator: "",
|
|
12
|
-
// indicator of the progress (finished part)
|
|
13
|
-
label: "",
|
|
14
|
-
// label at the top left of the progress bar
|
|
15
|
-
labelWrapper: "",
|
|
16
|
-
// wrapper around progress label and label span
|
|
17
|
-
track: "",
|
|
18
|
-
// track of the progress (not finished part)
|
|
19
|
-
value: ""
|
|
20
|
-
// span around the progress value
|
|
21
|
-
},
|
|
22
|
-
variants: {
|
|
23
|
-
// see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/progress.ts
|
|
24
|
-
color: {
|
|
25
|
-
danger: {
|
|
26
|
-
indicator: "bg-danger"
|
|
27
|
-
},
|
|
28
|
-
default: {
|
|
29
|
-
indicator: "bg-default-400"
|
|
30
|
-
},
|
|
31
|
-
info: {
|
|
32
|
-
indicator: "bg-info"
|
|
33
|
-
},
|
|
34
|
-
primary: {
|
|
35
|
-
indicator: "bg-primary"
|
|
36
|
-
},
|
|
37
|
-
secondary: {
|
|
38
|
-
indicator: "bg-secondary"
|
|
39
|
-
},
|
|
40
|
-
success: {
|
|
41
|
-
indicator: "bg-success"
|
|
42
|
-
},
|
|
43
|
-
warning: {
|
|
44
|
-
indicator: "bg-warning"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
var defaultFormat = (percent) => `${percent}%`;
|
|
50
|
-
var Progress = ({
|
|
51
|
-
className = void 0,
|
|
52
|
-
color = "primary",
|
|
53
|
-
format = defaultFormat,
|
|
54
|
-
label = void 0,
|
|
55
|
-
percent,
|
|
56
|
-
showValueLabel = true,
|
|
57
|
-
size = "md",
|
|
58
|
-
successOnComplete = false,
|
|
59
|
-
testId = void 0
|
|
60
|
-
}) => {
|
|
61
|
-
const processedColor = successOnComplete && percent >= 100 ? "success" : color;
|
|
62
|
-
const variants = progressVariants({ color: processedColor });
|
|
63
|
-
const classNames = _pixelutils.variantsToClassNames.call(void 0, variants, className, "base");
|
|
64
|
-
const value = format(percent);
|
|
65
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
66
|
-
_progress.Progress,
|
|
67
|
-
{
|
|
68
|
-
"aria-label": "Loading...",
|
|
69
|
-
classNames,
|
|
70
|
-
"data-testid": testId,
|
|
71
|
-
formatOptions: void 0,
|
|
72
|
-
label,
|
|
73
|
-
showValueLabel,
|
|
74
|
-
size,
|
|
75
|
-
value: percent || 0,
|
|
76
|
-
valueLabel: !!percent && value
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
|
-
};
|
|
80
|
-
var Progress_default = Progress;
|
|
81
3
|
|
|
82
|
-
// src/Progress/index.ts
|
|
83
|
-
var Progress_default2 = Progress_default;
|
|
84
4
|
|
|
5
|
+
var _chunkVGXW3PSFcjs = require('../chunk-VGXW3PSF.cjs');
|
|
6
|
+
require('../chunk-D4TLDLEX.cjs');
|
|
85
7
|
|
|
86
8
|
|
|
87
9
|
|
|
88
|
-
|
|
10
|
+
|
|
11
|
+
exports.Progress = _chunkVGXW3PSFcjs.Progress_default; exports.default = _chunkVGXW3PSFcjs.Progress_default2; exports.progressVariants = _chunkVGXW3PSFcjs.progressVariants;
|
|
89
12
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/Progress/index.cjs"
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/Progress/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACF,4KAAC","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/Progress/index.cjs"}
|
|
@@ -1,224 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { P as Progress } from '../Progress-7yXUVioO.cjs';
|
|
2
|
+
export { a as ProgressProps, p as progressVariants } from '../Progress-7yXUVioO.cjs';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'tailwind-variants';
|
|
5
|
+
import 'tailwind-variants/dist/config.js';
|
|
6
|
+
import '@fuf-stack/pixel-utils';
|
|
7
|
+
import 'react';
|
|
6
8
|
|
|
7
|
-
declare const progressVariants: tailwind_variants.TVReturnType<{
|
|
8
|
-
color: {
|
|
9
|
-
danger: {
|
|
10
|
-
indicator: string;
|
|
11
|
-
};
|
|
12
|
-
default: {
|
|
13
|
-
indicator: string;
|
|
14
|
-
};
|
|
15
|
-
info: {
|
|
16
|
-
indicator: string;
|
|
17
|
-
};
|
|
18
|
-
primary: {
|
|
19
|
-
indicator: string;
|
|
20
|
-
};
|
|
21
|
-
secondary: {
|
|
22
|
-
indicator: string;
|
|
23
|
-
};
|
|
24
|
-
success: {
|
|
25
|
-
indicator: string;
|
|
26
|
-
};
|
|
27
|
-
warning: {
|
|
28
|
-
indicator: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
}, {
|
|
32
|
-
base: string;
|
|
33
|
-
indicator: string;
|
|
34
|
-
label: string;
|
|
35
|
-
labelWrapper: string;
|
|
36
|
-
track: string;
|
|
37
|
-
value: string;
|
|
38
|
-
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
39
|
-
color: {
|
|
40
|
-
danger: {
|
|
41
|
-
indicator: string;
|
|
42
|
-
};
|
|
43
|
-
default: {
|
|
44
|
-
indicator: string;
|
|
45
|
-
};
|
|
46
|
-
info: {
|
|
47
|
-
indicator: string;
|
|
48
|
-
};
|
|
49
|
-
primary: {
|
|
50
|
-
indicator: string;
|
|
51
|
-
};
|
|
52
|
-
secondary: {
|
|
53
|
-
indicator: string;
|
|
54
|
-
};
|
|
55
|
-
success: {
|
|
56
|
-
indicator: string;
|
|
57
|
-
};
|
|
58
|
-
warning: {
|
|
59
|
-
indicator: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
}, {
|
|
63
|
-
color: {
|
|
64
|
-
danger: {
|
|
65
|
-
indicator: string;
|
|
66
|
-
};
|
|
67
|
-
default: {
|
|
68
|
-
indicator: string;
|
|
69
|
-
};
|
|
70
|
-
info: {
|
|
71
|
-
indicator: string;
|
|
72
|
-
};
|
|
73
|
-
primary: {
|
|
74
|
-
indicator: string;
|
|
75
|
-
};
|
|
76
|
-
secondary: {
|
|
77
|
-
indicator: string;
|
|
78
|
-
};
|
|
79
|
-
success: {
|
|
80
|
-
indicator: string;
|
|
81
|
-
};
|
|
82
|
-
warning: {
|
|
83
|
-
indicator: string;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
}>, {
|
|
87
|
-
color: {
|
|
88
|
-
danger: {
|
|
89
|
-
indicator: string;
|
|
90
|
-
};
|
|
91
|
-
default: {
|
|
92
|
-
indicator: string;
|
|
93
|
-
};
|
|
94
|
-
info: {
|
|
95
|
-
indicator: string;
|
|
96
|
-
};
|
|
97
|
-
primary: {
|
|
98
|
-
indicator: string;
|
|
99
|
-
};
|
|
100
|
-
secondary: {
|
|
101
|
-
indicator: string;
|
|
102
|
-
};
|
|
103
|
-
success: {
|
|
104
|
-
indicator: string;
|
|
105
|
-
};
|
|
106
|
-
warning: {
|
|
107
|
-
indicator: string;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
}, {
|
|
111
|
-
base: string;
|
|
112
|
-
indicator: string;
|
|
113
|
-
label: string;
|
|
114
|
-
labelWrapper: string;
|
|
115
|
-
track: string;
|
|
116
|
-
value: string;
|
|
117
|
-
}, tailwind_variants.TVReturnType<{
|
|
118
|
-
color: {
|
|
119
|
-
danger: {
|
|
120
|
-
indicator: string;
|
|
121
|
-
};
|
|
122
|
-
default: {
|
|
123
|
-
indicator: string;
|
|
124
|
-
};
|
|
125
|
-
info: {
|
|
126
|
-
indicator: string;
|
|
127
|
-
};
|
|
128
|
-
primary: {
|
|
129
|
-
indicator: string;
|
|
130
|
-
};
|
|
131
|
-
secondary: {
|
|
132
|
-
indicator: string;
|
|
133
|
-
};
|
|
134
|
-
success: {
|
|
135
|
-
indicator: string;
|
|
136
|
-
};
|
|
137
|
-
warning: {
|
|
138
|
-
indicator: string;
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
}, {
|
|
142
|
-
base: string;
|
|
143
|
-
indicator: string;
|
|
144
|
-
label: string;
|
|
145
|
-
labelWrapper: string;
|
|
146
|
-
track: string;
|
|
147
|
-
value: string;
|
|
148
|
-
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
149
|
-
color: {
|
|
150
|
-
danger: {
|
|
151
|
-
indicator: string;
|
|
152
|
-
};
|
|
153
|
-
default: {
|
|
154
|
-
indicator: string;
|
|
155
|
-
};
|
|
156
|
-
info: {
|
|
157
|
-
indicator: string;
|
|
158
|
-
};
|
|
159
|
-
primary: {
|
|
160
|
-
indicator: string;
|
|
161
|
-
};
|
|
162
|
-
secondary: {
|
|
163
|
-
indicator: string;
|
|
164
|
-
};
|
|
165
|
-
success: {
|
|
166
|
-
indicator: string;
|
|
167
|
-
};
|
|
168
|
-
warning: {
|
|
169
|
-
indicator: string;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
}, {
|
|
173
|
-
color: {
|
|
174
|
-
danger: {
|
|
175
|
-
indicator: string;
|
|
176
|
-
};
|
|
177
|
-
default: {
|
|
178
|
-
indicator: string;
|
|
179
|
-
};
|
|
180
|
-
info: {
|
|
181
|
-
indicator: string;
|
|
182
|
-
};
|
|
183
|
-
primary: {
|
|
184
|
-
indicator: string;
|
|
185
|
-
};
|
|
186
|
-
secondary: {
|
|
187
|
-
indicator: string;
|
|
188
|
-
};
|
|
189
|
-
success: {
|
|
190
|
-
indicator: string;
|
|
191
|
-
};
|
|
192
|
-
warning: {
|
|
193
|
-
indicator: string;
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
}>, unknown, unknown, undefined>>;
|
|
197
|
-
type VariantProps = TVProps<typeof progressVariants>;
|
|
198
|
-
type ClassName = TVClassName<typeof progressVariants>;
|
|
199
|
-
interface ProgressProps extends VariantProps {
|
|
200
|
-
/** CSS class name */
|
|
201
|
-
className?: ClassName;
|
|
202
|
-
/** color of the progress bar */
|
|
203
|
-
color?: VariantProps['color'];
|
|
204
|
-
/** function to format the progress value */
|
|
205
|
-
format?: (percent: number) => ReactNode;
|
|
206
|
-
/** label of the progress bar */
|
|
207
|
-
label?: ReactNode;
|
|
208
|
-
/** percentage/progress of the progress bar */
|
|
209
|
-
percent: number;
|
|
210
|
-
/** whether to show the value label */
|
|
211
|
-
showValueLabel?: boolean;
|
|
212
|
-
/** size of the progress bar */
|
|
213
|
-
size?: 'sm' | 'md' | 'lg';
|
|
214
|
-
/** whether to show success color on complete */
|
|
215
|
-
successOnComplete?: boolean;
|
|
216
|
-
/** HTML data-testid attribute used in e2e tests */
|
|
217
|
-
testId?: string;
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* Progress component based on [HeroUI Progress](https://www.heroui.com//docs/components/progress)
|
|
221
|
-
*/
|
|
222
|
-
declare const Progress: ({ className, color, format, label, percent, showValueLabel, size, successOnComplete, testId, }: ProgressProps) => react_jsx_runtime.JSX.Element;
|
|
223
9
|
|
|
224
|
-
|
|
10
|
+
|
|
11
|
+
export { Progress, Progress as default };
|
package/dist/Progress/index.d.ts
CHANGED
|
@@ -1,224 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { P as Progress } from '../Progress-7yXUVioO.js';
|
|
2
|
+
export { a as ProgressProps, p as progressVariants } from '../Progress-7yXUVioO.js';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'tailwind-variants';
|
|
5
|
+
import 'tailwind-variants/dist/config.js';
|
|
6
|
+
import '@fuf-stack/pixel-utils';
|
|
7
|
+
import 'react';
|
|
6
8
|
|
|
7
|
-
declare const progressVariants: tailwind_variants.TVReturnType<{
|
|
8
|
-
color: {
|
|
9
|
-
danger: {
|
|
10
|
-
indicator: string;
|
|
11
|
-
};
|
|
12
|
-
default: {
|
|
13
|
-
indicator: string;
|
|
14
|
-
};
|
|
15
|
-
info: {
|
|
16
|
-
indicator: string;
|
|
17
|
-
};
|
|
18
|
-
primary: {
|
|
19
|
-
indicator: string;
|
|
20
|
-
};
|
|
21
|
-
secondary: {
|
|
22
|
-
indicator: string;
|
|
23
|
-
};
|
|
24
|
-
success: {
|
|
25
|
-
indicator: string;
|
|
26
|
-
};
|
|
27
|
-
warning: {
|
|
28
|
-
indicator: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
}, {
|
|
32
|
-
base: string;
|
|
33
|
-
indicator: string;
|
|
34
|
-
label: string;
|
|
35
|
-
labelWrapper: string;
|
|
36
|
-
track: string;
|
|
37
|
-
value: string;
|
|
38
|
-
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
39
|
-
color: {
|
|
40
|
-
danger: {
|
|
41
|
-
indicator: string;
|
|
42
|
-
};
|
|
43
|
-
default: {
|
|
44
|
-
indicator: string;
|
|
45
|
-
};
|
|
46
|
-
info: {
|
|
47
|
-
indicator: string;
|
|
48
|
-
};
|
|
49
|
-
primary: {
|
|
50
|
-
indicator: string;
|
|
51
|
-
};
|
|
52
|
-
secondary: {
|
|
53
|
-
indicator: string;
|
|
54
|
-
};
|
|
55
|
-
success: {
|
|
56
|
-
indicator: string;
|
|
57
|
-
};
|
|
58
|
-
warning: {
|
|
59
|
-
indicator: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
}, {
|
|
63
|
-
color: {
|
|
64
|
-
danger: {
|
|
65
|
-
indicator: string;
|
|
66
|
-
};
|
|
67
|
-
default: {
|
|
68
|
-
indicator: string;
|
|
69
|
-
};
|
|
70
|
-
info: {
|
|
71
|
-
indicator: string;
|
|
72
|
-
};
|
|
73
|
-
primary: {
|
|
74
|
-
indicator: string;
|
|
75
|
-
};
|
|
76
|
-
secondary: {
|
|
77
|
-
indicator: string;
|
|
78
|
-
};
|
|
79
|
-
success: {
|
|
80
|
-
indicator: string;
|
|
81
|
-
};
|
|
82
|
-
warning: {
|
|
83
|
-
indicator: string;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
}>, {
|
|
87
|
-
color: {
|
|
88
|
-
danger: {
|
|
89
|
-
indicator: string;
|
|
90
|
-
};
|
|
91
|
-
default: {
|
|
92
|
-
indicator: string;
|
|
93
|
-
};
|
|
94
|
-
info: {
|
|
95
|
-
indicator: string;
|
|
96
|
-
};
|
|
97
|
-
primary: {
|
|
98
|
-
indicator: string;
|
|
99
|
-
};
|
|
100
|
-
secondary: {
|
|
101
|
-
indicator: string;
|
|
102
|
-
};
|
|
103
|
-
success: {
|
|
104
|
-
indicator: string;
|
|
105
|
-
};
|
|
106
|
-
warning: {
|
|
107
|
-
indicator: string;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
}, {
|
|
111
|
-
base: string;
|
|
112
|
-
indicator: string;
|
|
113
|
-
label: string;
|
|
114
|
-
labelWrapper: string;
|
|
115
|
-
track: string;
|
|
116
|
-
value: string;
|
|
117
|
-
}, tailwind_variants.TVReturnType<{
|
|
118
|
-
color: {
|
|
119
|
-
danger: {
|
|
120
|
-
indicator: string;
|
|
121
|
-
};
|
|
122
|
-
default: {
|
|
123
|
-
indicator: string;
|
|
124
|
-
};
|
|
125
|
-
info: {
|
|
126
|
-
indicator: string;
|
|
127
|
-
};
|
|
128
|
-
primary: {
|
|
129
|
-
indicator: string;
|
|
130
|
-
};
|
|
131
|
-
secondary: {
|
|
132
|
-
indicator: string;
|
|
133
|
-
};
|
|
134
|
-
success: {
|
|
135
|
-
indicator: string;
|
|
136
|
-
};
|
|
137
|
-
warning: {
|
|
138
|
-
indicator: string;
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
}, {
|
|
142
|
-
base: string;
|
|
143
|
-
indicator: string;
|
|
144
|
-
label: string;
|
|
145
|
-
labelWrapper: string;
|
|
146
|
-
track: string;
|
|
147
|
-
value: string;
|
|
148
|
-
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
149
|
-
color: {
|
|
150
|
-
danger: {
|
|
151
|
-
indicator: string;
|
|
152
|
-
};
|
|
153
|
-
default: {
|
|
154
|
-
indicator: string;
|
|
155
|
-
};
|
|
156
|
-
info: {
|
|
157
|
-
indicator: string;
|
|
158
|
-
};
|
|
159
|
-
primary: {
|
|
160
|
-
indicator: string;
|
|
161
|
-
};
|
|
162
|
-
secondary: {
|
|
163
|
-
indicator: string;
|
|
164
|
-
};
|
|
165
|
-
success: {
|
|
166
|
-
indicator: string;
|
|
167
|
-
};
|
|
168
|
-
warning: {
|
|
169
|
-
indicator: string;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
}, {
|
|
173
|
-
color: {
|
|
174
|
-
danger: {
|
|
175
|
-
indicator: string;
|
|
176
|
-
};
|
|
177
|
-
default: {
|
|
178
|
-
indicator: string;
|
|
179
|
-
};
|
|
180
|
-
info: {
|
|
181
|
-
indicator: string;
|
|
182
|
-
};
|
|
183
|
-
primary: {
|
|
184
|
-
indicator: string;
|
|
185
|
-
};
|
|
186
|
-
secondary: {
|
|
187
|
-
indicator: string;
|
|
188
|
-
};
|
|
189
|
-
success: {
|
|
190
|
-
indicator: string;
|
|
191
|
-
};
|
|
192
|
-
warning: {
|
|
193
|
-
indicator: string;
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
}>, unknown, unknown, undefined>>;
|
|
197
|
-
type VariantProps = TVProps<typeof progressVariants>;
|
|
198
|
-
type ClassName = TVClassName<typeof progressVariants>;
|
|
199
|
-
interface ProgressProps extends VariantProps {
|
|
200
|
-
/** CSS class name */
|
|
201
|
-
className?: ClassName;
|
|
202
|
-
/** color of the progress bar */
|
|
203
|
-
color?: VariantProps['color'];
|
|
204
|
-
/** function to format the progress value */
|
|
205
|
-
format?: (percent: number) => ReactNode;
|
|
206
|
-
/** label of the progress bar */
|
|
207
|
-
label?: ReactNode;
|
|
208
|
-
/** percentage/progress of the progress bar */
|
|
209
|
-
percent: number;
|
|
210
|
-
/** whether to show the value label */
|
|
211
|
-
showValueLabel?: boolean;
|
|
212
|
-
/** size of the progress bar */
|
|
213
|
-
size?: 'sm' | 'md' | 'lg';
|
|
214
|
-
/** whether to show success color on complete */
|
|
215
|
-
successOnComplete?: boolean;
|
|
216
|
-
/** HTML data-testid attribute used in e2e tests */
|
|
217
|
-
testId?: string;
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* Progress component based on [HeroUI Progress](https://www.heroui.com//docs/components/progress)
|
|
221
|
-
*/
|
|
222
|
-
declare const Progress: ({ className, color, format, label, percent, showValueLabel, size, successOnComplete, testId, }: ProgressProps) => react_jsx_runtime.JSX.Element;
|
|
223
9
|
|
|
224
|
-
|
|
10
|
+
|
|
11
|
+
export { Progress, Progress as default };
|