@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/Progress/index.js
CHANGED
|
@@ -1,86 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Progress_default,
|
|
3
|
+
Progress_default2,
|
|
4
|
+
progressVariants
|
|
5
|
+
} from "../chunk-RV7YPQXI.js";
|
|
1
6
|
import "../chunk-J7N2552D.js";
|
|
2
|
-
|
|
3
|
-
// src/Progress/Progress.tsx
|
|
4
|
-
import { Progress as HeroProgress } from "@heroui/progress";
|
|
5
|
-
import { tv, variantsToClassNames } from "@fuf-stack/pixel-utils";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
var progressVariants = tv({
|
|
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 = variantsToClassNames(variants, className, "base");
|
|
64
|
-
const value = format(percent);
|
|
65
|
-
return /* @__PURE__ */ jsx(
|
|
66
|
-
HeroProgress,
|
|
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
|
-
|
|
82
|
-
// src/Progress/index.ts
|
|
83
|
-
var Progress_default2 = Progress_default;
|
|
84
7
|
export {
|
|
85
8
|
Progress_default as Progress,
|
|
86
9
|
Progress_default2 as default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
4
|
+
import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
|
|
5
|
+
import { ReactNode } from 'react';
|
|
6
|
+
|
|
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
|
+
/** sets HTML aria-label attribute */
|
|
201
|
+
ariaLabel?: string;
|
|
202
|
+
/** CSS class name */
|
|
203
|
+
className?: ClassName;
|
|
204
|
+
/** color of the progress bar */
|
|
205
|
+
color?: VariantProps['color'];
|
|
206
|
+
/** disables all animations */
|
|
207
|
+
disableAnimation?: boolean;
|
|
208
|
+
/** function to format the progress value */
|
|
209
|
+
format?: (percent: number) => ReactNode;
|
|
210
|
+
/** shows indeterminate progress animation */
|
|
211
|
+
indeterminate?: boolean;
|
|
212
|
+
/** label of the progress bar */
|
|
213
|
+
label?: ReactNode;
|
|
214
|
+
/** percentage / progress of the progress bar */
|
|
215
|
+
percent: number;
|
|
216
|
+
/** whether to show the value label */
|
|
217
|
+
showValueLabel?: boolean;
|
|
218
|
+
/** size of the progress bar */
|
|
219
|
+
size?: 'sm' | 'md' | 'lg';
|
|
220
|
+
/** HTML data-testid attribute used in e2e tests */
|
|
221
|
+
testId?: string;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Progress component based on [HeroUI Progress](https://www.heroui.com//docs/components/progress)
|
|
225
|
+
*/
|
|
226
|
+
declare const Progress: ({ ariaLabel, className, color, disableAnimation, format, indeterminate, label, percent, showValueLabel, size, testId, }: ProgressProps) => react_jsx_runtime.JSX.Element;
|
|
227
|
+
|
|
228
|
+
export { Progress as P, type ProgressProps as a, progressVariants as p };
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
4
|
+
import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
|
|
5
|
+
import { ReactNode } from 'react';
|
|
6
|
+
|
|
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
|
+
/** sets HTML aria-label attribute */
|
|
201
|
+
ariaLabel?: string;
|
|
202
|
+
/** CSS class name */
|
|
203
|
+
className?: ClassName;
|
|
204
|
+
/** color of the progress bar */
|
|
205
|
+
color?: VariantProps['color'];
|
|
206
|
+
/** disables all animations */
|
|
207
|
+
disableAnimation?: boolean;
|
|
208
|
+
/** function to format the progress value */
|
|
209
|
+
format?: (percent: number) => ReactNode;
|
|
210
|
+
/** shows indeterminate progress animation */
|
|
211
|
+
indeterminate?: boolean;
|
|
212
|
+
/** label of the progress bar */
|
|
213
|
+
label?: ReactNode;
|
|
214
|
+
/** percentage / progress of the progress bar */
|
|
215
|
+
percent: number;
|
|
216
|
+
/** whether to show the value label */
|
|
217
|
+
showValueLabel?: boolean;
|
|
218
|
+
/** size of the progress bar */
|
|
219
|
+
size?: 'sm' | 'md' | 'lg';
|
|
220
|
+
/** HTML data-testid attribute used in e2e tests */
|
|
221
|
+
testId?: string;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Progress component based on [HeroUI Progress](https://www.heroui.com//docs/components/progress)
|
|
225
|
+
*/
|
|
226
|
+
declare const Progress: ({ ariaLabel, className, color, disableAnimation, format, indeterminate, label, percent, showValueLabel, size, testId, }: ProgressProps) => react_jsx_runtime.JSX.Element;
|
|
227
|
+
|
|
228
|
+
export { Progress as P, type ProgressProps as a, progressVariants as p };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkWCRVH4DScjs = require('../chunk-WCRVH4DS.cjs');
|
|
6
|
+
require('../chunk-D4TLDLEX.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.ProgressCircular = _chunkWCRVH4DScjs.ProgressCircular_default; exports.default = _chunkWCRVH4DScjs.ProgressCircular_default2; exports.progressCircularVariants = _chunkWCRVH4DScjs.progressCircularVariants;
|
|
12
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/ProgressCircular/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACF,oNAAC","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/ProgressCircular/index.cjs"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { P as ProgressCircular } from '../ProgressCircular-U4kPZ1T1.cjs';
|
|
2
|
+
export { a as ProgressCircularProps, p as progressCircularVariants } from '../ProgressCircular-U4kPZ1T1.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';
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export { ProgressCircular, ProgressCircular as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { P as ProgressCircular } from '../ProgressCircular-U4kPZ1T1.js';
|
|
2
|
+
export { a as ProgressCircularProps, p as progressCircularVariants } from '../ProgressCircular-U4kPZ1T1.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';
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export { ProgressCircular, ProgressCircular as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ProgressCircular_default,
|
|
3
|
+
ProgressCircular_default2,
|
|
4
|
+
progressCircularVariants
|
|
5
|
+
} from "../chunk-GJQTAEHH.js";
|
|
6
|
+
import "../chunk-J7N2552D.js";
|
|
7
|
+
export {
|
|
8
|
+
ProgressCircular_default as ProgressCircular,
|
|
9
|
+
ProgressCircular_default2 as default,
|
|
10
|
+
progressCircularVariants
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|