@fuf-stack/pixels 0.40.0 → 0.41.1
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/Avatar/index.d.cts +2 -2
- package/dist/Avatar/index.d.ts +2 -2
- package/dist/AvatarGroup/index.d.cts +3 -3
- package/dist/AvatarGroup/index.d.ts +3 -3
- package/dist/{AvatarGroup-BMKOfE_a.d.ts → AvatarGroup-BfOtqfJy.d.ts} +1 -1
- package/dist/{AvatarGroup-2Lmu_V2d.d.cts → AvatarGroup-CUyQwK3t.d.cts} +1 -1
- package/dist/Button/index.cjs +2 -2
- package/dist/Button/index.js +1 -1
- package/dist/Drawer/index.d.cts +2 -2
- package/dist/Drawer/index.d.ts +2 -2
- 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-U4kPZ1T1.d.cts +414 -0
- package/dist/ProgressCircular-U4kPZ1T1.d.ts +414 -0
- package/dist/Toast/index.cjs +14 -0
- package/dist/Toast/index.cjs.map +1 -0
- package/dist/Toast/index.d.cts +11 -0
- package/dist/Toast/index.d.ts +11 -0
- package/dist/Toast/index.js +14 -0
- package/dist/Toast/index.js.map +1 -0
- package/dist/ToastProvider-CL1v-bkE.d.cts +295 -0
- package/dist/ToastProvider-CL1v-bkE.d.ts +295 -0
- package/dist/chunk-5XFAJUE5.cjs +170 -0
- package/dist/chunk-5XFAJUE5.cjs.map +1 -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-KSAL4SBX.js +170 -0
- package/dist/chunk-KSAL4SBX.js.map +1 -0
- 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 +19 -170
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -299
- package/dist/index.d.ts +11 -299
- package/dist/index.js +23 -174
- package/dist/index.js.map +1 -1
- package/package.json +32 -27
- package/dist/CircularProgress/index.cjs +0 -14
- package/dist/CircularProgress/index.cjs.map +0 -1
- package/dist/CircularProgress/index.d.cts +0 -11
- package/dist/CircularProgress/index.d.ts +0 -11
- package/dist/CircularProgress/index.js +0 -14
- package/dist/CircularProgress-DHrnT6wz.d.cts +0 -182
- package/dist/CircularProgress-DHrnT6wz.d.ts +0 -182
- package/dist/chunk-37WQ3CBA.cjs +0 -98
- package/dist/chunk-37WQ3CBA.cjs.map +0 -1
- package/dist/chunk-M3PL6G7W.js +0 -98
- package/dist/chunk-M3PL6G7W.js.map +0 -1
- package/dist/{Avatar-B8lVnLpp.d.cts → Avatar-ylNJ_-dY.d.cts} +5 -5
- package/dist/{Avatar-B8lVnLpp.d.ts → Avatar-ylNJ_-dY.d.ts} +5 -5
- package/dist/{Drawer-DmwcvuKe.d.cts → Drawer-BnV9qxPA.d.cts} +5 -5
- package/dist/{Drawer-DmwcvuKe.d.ts → Drawer-BnV9qxPA.d.ts} +5 -5
- /package/dist/{CircularProgress → ProgressCircular}/index.js.map +0 -0
- /package/dist/{chunk-L3DEBOPG.js.map → chunk-VRPX6QUG.js.map} +0 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@fuf-stack/pixels",
|
|
3
3
|
"description": "fuf core react component library",
|
|
4
4
|
"author": "Hannes Tiede",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.41.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.cjs",
|
|
8
8
|
"module": "./dist/index.js",
|
|
@@ -59,11 +59,6 @@
|
|
|
59
59
|
"import": "./dist/Card/index.js",
|
|
60
60
|
"require": "./dist/Card/index.cjs"
|
|
61
61
|
},
|
|
62
|
-
"./CircularProgress": {
|
|
63
|
-
"types": "./dist/CircularProgress/index.d.ts",
|
|
64
|
-
"import": "./dist/CircularProgress/index.js",
|
|
65
|
-
"require": "./dist/CircularProgress/index.cjs"
|
|
66
|
-
},
|
|
67
62
|
"./Drawer": {
|
|
68
63
|
"types": "./dist/Drawer/index.d.ts",
|
|
69
64
|
"import": "./dist/Drawer/index.js",
|
|
@@ -108,6 +103,11 @@
|
|
|
108
103
|
"import": "./dist/Progress/index.js",
|
|
109
104
|
"require": "./dist/Progress/index.cjs"
|
|
110
105
|
},
|
|
106
|
+
"./ProgressCircular": {
|
|
107
|
+
"types": "./dist/ProgressCircular/index.d.ts",
|
|
108
|
+
"import": "./dist/ProgressCircular/index.js",
|
|
109
|
+
"require": "./dist/ProgressCircular/index.cjs"
|
|
110
|
+
},
|
|
111
111
|
"./ScrollShadow": {
|
|
112
112
|
"types": "./dist/ScrollShadow/index.d.ts",
|
|
113
113
|
"import": "./dist/ScrollShadow/index.js",
|
|
@@ -123,6 +123,11 @@
|
|
|
123
123
|
"import": "./dist/Tabs/index.js",
|
|
124
124
|
"require": "./dist/Tabs/index.cjs"
|
|
125
125
|
},
|
|
126
|
+
"./Toast": {
|
|
127
|
+
"types": "./dist/Toast/index.d.ts",
|
|
128
|
+
"import": "./dist/Toast/index.js",
|
|
129
|
+
"require": "./dist/Toast/index.cjs"
|
|
130
|
+
},
|
|
126
131
|
"./Tooltip": {
|
|
127
132
|
"types": "./dist/Tooltip/index.d.ts",
|
|
128
133
|
"import": "./dist/Tooltip/index.js",
|
|
@@ -154,31 +159,31 @@
|
|
|
154
159
|
"react-dom": ">=18"
|
|
155
160
|
},
|
|
156
161
|
"dependencies": {
|
|
157
|
-
"@heroui/alert": "2.2.
|
|
158
|
-
"@heroui/avatar": "2.2.
|
|
159
|
-
"@heroui/accordion": "2.2.
|
|
162
|
+
"@heroui/alert": "2.2.17",
|
|
163
|
+
"@heroui/avatar": "2.2.13",
|
|
164
|
+
"@heroui/accordion": "2.2.14",
|
|
160
165
|
"@heroui/badge": "2.2.10",
|
|
161
|
-
"@heroui/breadcrumbs": "2.2.
|
|
162
|
-
"@heroui/button": "2.2.
|
|
163
|
-
"@heroui/card": "2.2.
|
|
164
|
-
"@heroui/chip": "2.2.
|
|
166
|
+
"@heroui/breadcrumbs": "2.2.13",
|
|
167
|
+
"@heroui/button": "2.2.17",
|
|
168
|
+
"@heroui/card": "2.2.16",
|
|
169
|
+
"@heroui/chip": "2.2.13",
|
|
165
170
|
"@heroui/divider": "2.2.11",
|
|
166
|
-
"@heroui/drawer": "2.2.
|
|
167
|
-
"@heroui/dropdown": "2.3.
|
|
168
|
-
"@heroui/modal": "2.2.
|
|
169
|
-
"@heroui/popover": "2.3.
|
|
170
|
-
"@heroui/progress": "2.2.
|
|
171
|
-
"@heroui/scroll-shadow": "2.3.
|
|
172
|
-
"@heroui/system": "2.4.
|
|
173
|
-
"@heroui/table": "2.2.
|
|
174
|
-
"@heroui/theme": "2.4.
|
|
175
|
-
"@heroui/tabs": "2.2.
|
|
176
|
-
"@heroui/toast": "2.0.
|
|
177
|
-
"@heroui/tooltip": "2.2.
|
|
178
|
-
"framer-motion": "12.7.
|
|
171
|
+
"@heroui/drawer": "2.2.14",
|
|
172
|
+
"@heroui/dropdown": "2.3.17",
|
|
173
|
+
"@heroui/modal": "2.2.14",
|
|
174
|
+
"@heroui/popover": "2.3.17",
|
|
175
|
+
"@heroui/progress": "2.2.13",
|
|
176
|
+
"@heroui/scroll-shadow": "2.3.11",
|
|
177
|
+
"@heroui/system": "2.4.13",
|
|
178
|
+
"@heroui/table": "2.2.16",
|
|
179
|
+
"@heroui/theme": "2.4.13",
|
|
180
|
+
"@heroui/tabs": "2.2.14",
|
|
181
|
+
"@heroui/toast": "2.0.7",
|
|
182
|
+
"@heroui/tooltip": "2.2.14",
|
|
183
|
+
"framer-motion": "12.7.3",
|
|
179
184
|
"next-themes": "0.4.6",
|
|
180
185
|
"react-icons": "5.5.0",
|
|
181
|
-
"@fuf-stack/pixel-utils": "0.5.
|
|
186
|
+
"@fuf-stack/pixel-utils": "0.5.3"
|
|
182
187
|
},
|
|
183
188
|
"devDependencies": {
|
|
184
189
|
"@types/debug": "4.1.12",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunk37WQ3CBAcjs = require('../chunk-37WQ3CBA.cjs');
|
|
7
|
-
require('../chunk-D4TLDLEX.cjs');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
exports.CircularProgress = _chunk37WQ3CBAcjs.CircularProgress_default; exports.circularProgressStyleVariantOptions = _chunk37WQ3CBAcjs.circularProgressStyleVariantOptions; exports.circularProgressVariants = _chunk37WQ3CBAcjs.circularProgressVariants; exports.default = _chunk37WQ3CBAcjs.CircularProgress_default2;
|
|
14
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/CircularProgress/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACF,yTAAC","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/CircularProgress/index.cjs"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { C as CircularProgress } from '../CircularProgress-DHrnT6wz.cjs';
|
|
2
|
-
export { b as CircularProgressProps, d as CircularProgressStyleVariant, V as CircularProgressVariantProps, a as circularProgressStyleVariantOptions, c as circularProgressVariants } from '../CircularProgress-DHrnT6wz.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 { CircularProgress, CircularProgress as default };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { C as CircularProgress } from '../CircularProgress-DHrnT6wz.js';
|
|
2
|
-
export { b as CircularProgressProps, d as CircularProgressStyleVariant, V as CircularProgressVariantProps, a as circularProgressStyleVariantOptions, c as circularProgressVariants } from '../CircularProgress-DHrnT6wz.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 { CircularProgress, CircularProgress as default };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CircularProgress_default,
|
|
3
|
-
CircularProgress_default2,
|
|
4
|
-
circularProgressStyleVariantOptions,
|
|
5
|
-
circularProgressVariants
|
|
6
|
-
} from "../chunk-M3PL6G7W.js";
|
|
7
|
-
import "../chunk-J7N2552D.js";
|
|
8
|
-
export {
|
|
9
|
-
CircularProgress_default as CircularProgress,
|
|
10
|
-
circularProgressStyleVariantOptions,
|
|
11
|
-
circularProgressVariants,
|
|
12
|
-
CircularProgress_default2 as default
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,182 +0,0 @@
|
|
|
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 circularProgressVariants: tailwind_variants.TVReturnType<{
|
|
8
|
-
size: {
|
|
9
|
-
xs: {
|
|
10
|
-
value: string;
|
|
11
|
-
svg: string;
|
|
12
|
-
};
|
|
13
|
-
sm: {
|
|
14
|
-
value: string;
|
|
15
|
-
svg: string;
|
|
16
|
-
};
|
|
17
|
-
md: {
|
|
18
|
-
svg: string;
|
|
19
|
-
value: string;
|
|
20
|
-
};
|
|
21
|
-
lg: {
|
|
22
|
-
svg: string;
|
|
23
|
-
value: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
}, {
|
|
27
|
-
base: string;
|
|
28
|
-
svgWrapper: string;
|
|
29
|
-
svg: string;
|
|
30
|
-
track: string;
|
|
31
|
-
indicator: string;
|
|
32
|
-
value: string;
|
|
33
|
-
label: string;
|
|
34
|
-
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
35
|
-
size: {
|
|
36
|
-
xs: {
|
|
37
|
-
value: string;
|
|
38
|
-
svg: string;
|
|
39
|
-
};
|
|
40
|
-
sm: {
|
|
41
|
-
value: string;
|
|
42
|
-
svg: string;
|
|
43
|
-
};
|
|
44
|
-
md: {
|
|
45
|
-
svg: string;
|
|
46
|
-
value: string;
|
|
47
|
-
};
|
|
48
|
-
lg: {
|
|
49
|
-
svg: string;
|
|
50
|
-
value: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
}, {
|
|
54
|
-
size: {
|
|
55
|
-
xs: {
|
|
56
|
-
value: string;
|
|
57
|
-
svg: string;
|
|
58
|
-
};
|
|
59
|
-
sm: {
|
|
60
|
-
value: string;
|
|
61
|
-
svg: string;
|
|
62
|
-
};
|
|
63
|
-
md: {
|
|
64
|
-
svg: string;
|
|
65
|
-
value: string;
|
|
66
|
-
};
|
|
67
|
-
lg: {
|
|
68
|
-
svg: string;
|
|
69
|
-
value: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
}>, {
|
|
73
|
-
size: {
|
|
74
|
-
xs: {
|
|
75
|
-
value: string;
|
|
76
|
-
svg: string;
|
|
77
|
-
};
|
|
78
|
-
sm: {
|
|
79
|
-
value: string;
|
|
80
|
-
svg: string;
|
|
81
|
-
};
|
|
82
|
-
md: {
|
|
83
|
-
svg: string;
|
|
84
|
-
value: string;
|
|
85
|
-
};
|
|
86
|
-
lg: {
|
|
87
|
-
svg: string;
|
|
88
|
-
value: string;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
}, {
|
|
92
|
-
base: string;
|
|
93
|
-
svgWrapper: string;
|
|
94
|
-
svg: string;
|
|
95
|
-
track: string;
|
|
96
|
-
indicator: string;
|
|
97
|
-
value: string;
|
|
98
|
-
label: string;
|
|
99
|
-
}, tailwind_variants.TVReturnType<{
|
|
100
|
-
size: {
|
|
101
|
-
xs: {
|
|
102
|
-
value: string;
|
|
103
|
-
svg: string;
|
|
104
|
-
};
|
|
105
|
-
sm: {
|
|
106
|
-
value: string;
|
|
107
|
-
svg: string;
|
|
108
|
-
};
|
|
109
|
-
md: {
|
|
110
|
-
svg: string;
|
|
111
|
-
value: string;
|
|
112
|
-
};
|
|
113
|
-
lg: {
|
|
114
|
-
svg: string;
|
|
115
|
-
value: string;
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
}, {
|
|
119
|
-
base: string;
|
|
120
|
-
svgWrapper: string;
|
|
121
|
-
svg: string;
|
|
122
|
-
track: string;
|
|
123
|
-
indicator: string;
|
|
124
|
-
value: string;
|
|
125
|
-
label: string;
|
|
126
|
-
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
127
|
-
size: {
|
|
128
|
-
xs: {
|
|
129
|
-
value: string;
|
|
130
|
-
svg: string;
|
|
131
|
-
};
|
|
132
|
-
sm: {
|
|
133
|
-
value: string;
|
|
134
|
-
svg: string;
|
|
135
|
-
};
|
|
136
|
-
md: {
|
|
137
|
-
svg: string;
|
|
138
|
-
value: string;
|
|
139
|
-
};
|
|
140
|
-
lg: {
|
|
141
|
-
svg: string;
|
|
142
|
-
value: string;
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
}, {
|
|
146
|
-
size: {
|
|
147
|
-
xs: {
|
|
148
|
-
value: string;
|
|
149
|
-
svg: string;
|
|
150
|
-
};
|
|
151
|
-
sm: {
|
|
152
|
-
value: string;
|
|
153
|
-
svg: string;
|
|
154
|
-
};
|
|
155
|
-
md: {
|
|
156
|
-
svg: string;
|
|
157
|
-
value: string;
|
|
158
|
-
};
|
|
159
|
-
lg: {
|
|
160
|
-
svg: string;
|
|
161
|
-
value: string;
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
}>, unknown, unknown, undefined>>;
|
|
165
|
-
type VariantProps = TVProps<typeof circularProgressVariants>;
|
|
166
|
-
type ClassName = TVClassName<typeof circularProgressVariants>;
|
|
167
|
-
declare const circularProgressStyleVariantOptions: readonly ["default", "warning", "danger", "success", "primary"];
|
|
168
|
-
type CircularProgressStyleVariant = (typeof circularProgressStyleVariantOptions)[number];
|
|
169
|
-
interface CircularProgressProps extends VariantProps {
|
|
170
|
-
className?: ClassName;
|
|
171
|
-
format?: (percent?: number) => ReactNode;
|
|
172
|
-
hasError?: boolean;
|
|
173
|
-
size?: VariantProps['size'];
|
|
174
|
-
styleVariant?: CircularProgressStyleVariant;
|
|
175
|
-
percent: number;
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* CircularProgress component based on [HeroUI CircularProgress](https://www.heroui.com/docs/components/circular-progress)
|
|
179
|
-
*/
|
|
180
|
-
declare const CircularProgress: ({ className, format, hasError, styleVariant, size, percent, }: CircularProgressProps) => react_jsx_runtime.JSX.Element;
|
|
181
|
-
|
|
182
|
-
export { CircularProgress as C, type VariantProps as V, circularProgressStyleVariantOptions as a, type CircularProgressProps as b, circularProgressVariants as c, type CircularProgressStyleVariant as d };
|
|
@@ -1,182 +0,0 @@
|
|
|
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 circularProgressVariants: tailwind_variants.TVReturnType<{
|
|
8
|
-
size: {
|
|
9
|
-
xs: {
|
|
10
|
-
value: string;
|
|
11
|
-
svg: string;
|
|
12
|
-
};
|
|
13
|
-
sm: {
|
|
14
|
-
value: string;
|
|
15
|
-
svg: string;
|
|
16
|
-
};
|
|
17
|
-
md: {
|
|
18
|
-
svg: string;
|
|
19
|
-
value: string;
|
|
20
|
-
};
|
|
21
|
-
lg: {
|
|
22
|
-
svg: string;
|
|
23
|
-
value: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
}, {
|
|
27
|
-
base: string;
|
|
28
|
-
svgWrapper: string;
|
|
29
|
-
svg: string;
|
|
30
|
-
track: string;
|
|
31
|
-
indicator: string;
|
|
32
|
-
value: string;
|
|
33
|
-
label: string;
|
|
34
|
-
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
35
|
-
size: {
|
|
36
|
-
xs: {
|
|
37
|
-
value: string;
|
|
38
|
-
svg: string;
|
|
39
|
-
};
|
|
40
|
-
sm: {
|
|
41
|
-
value: string;
|
|
42
|
-
svg: string;
|
|
43
|
-
};
|
|
44
|
-
md: {
|
|
45
|
-
svg: string;
|
|
46
|
-
value: string;
|
|
47
|
-
};
|
|
48
|
-
lg: {
|
|
49
|
-
svg: string;
|
|
50
|
-
value: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
}, {
|
|
54
|
-
size: {
|
|
55
|
-
xs: {
|
|
56
|
-
value: string;
|
|
57
|
-
svg: string;
|
|
58
|
-
};
|
|
59
|
-
sm: {
|
|
60
|
-
value: string;
|
|
61
|
-
svg: string;
|
|
62
|
-
};
|
|
63
|
-
md: {
|
|
64
|
-
svg: string;
|
|
65
|
-
value: string;
|
|
66
|
-
};
|
|
67
|
-
lg: {
|
|
68
|
-
svg: string;
|
|
69
|
-
value: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
}>, {
|
|
73
|
-
size: {
|
|
74
|
-
xs: {
|
|
75
|
-
value: string;
|
|
76
|
-
svg: string;
|
|
77
|
-
};
|
|
78
|
-
sm: {
|
|
79
|
-
value: string;
|
|
80
|
-
svg: string;
|
|
81
|
-
};
|
|
82
|
-
md: {
|
|
83
|
-
svg: string;
|
|
84
|
-
value: string;
|
|
85
|
-
};
|
|
86
|
-
lg: {
|
|
87
|
-
svg: string;
|
|
88
|
-
value: string;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
}, {
|
|
92
|
-
base: string;
|
|
93
|
-
svgWrapper: string;
|
|
94
|
-
svg: string;
|
|
95
|
-
track: string;
|
|
96
|
-
indicator: string;
|
|
97
|
-
value: string;
|
|
98
|
-
label: string;
|
|
99
|
-
}, tailwind_variants.TVReturnType<{
|
|
100
|
-
size: {
|
|
101
|
-
xs: {
|
|
102
|
-
value: string;
|
|
103
|
-
svg: string;
|
|
104
|
-
};
|
|
105
|
-
sm: {
|
|
106
|
-
value: string;
|
|
107
|
-
svg: string;
|
|
108
|
-
};
|
|
109
|
-
md: {
|
|
110
|
-
svg: string;
|
|
111
|
-
value: string;
|
|
112
|
-
};
|
|
113
|
-
lg: {
|
|
114
|
-
svg: string;
|
|
115
|
-
value: string;
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
}, {
|
|
119
|
-
base: string;
|
|
120
|
-
svgWrapper: string;
|
|
121
|
-
svg: string;
|
|
122
|
-
track: string;
|
|
123
|
-
indicator: string;
|
|
124
|
-
value: string;
|
|
125
|
-
label: string;
|
|
126
|
-
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
127
|
-
size: {
|
|
128
|
-
xs: {
|
|
129
|
-
value: string;
|
|
130
|
-
svg: string;
|
|
131
|
-
};
|
|
132
|
-
sm: {
|
|
133
|
-
value: string;
|
|
134
|
-
svg: string;
|
|
135
|
-
};
|
|
136
|
-
md: {
|
|
137
|
-
svg: string;
|
|
138
|
-
value: string;
|
|
139
|
-
};
|
|
140
|
-
lg: {
|
|
141
|
-
svg: string;
|
|
142
|
-
value: string;
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
}, {
|
|
146
|
-
size: {
|
|
147
|
-
xs: {
|
|
148
|
-
value: string;
|
|
149
|
-
svg: string;
|
|
150
|
-
};
|
|
151
|
-
sm: {
|
|
152
|
-
value: string;
|
|
153
|
-
svg: string;
|
|
154
|
-
};
|
|
155
|
-
md: {
|
|
156
|
-
svg: string;
|
|
157
|
-
value: string;
|
|
158
|
-
};
|
|
159
|
-
lg: {
|
|
160
|
-
svg: string;
|
|
161
|
-
value: string;
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
}>, unknown, unknown, undefined>>;
|
|
165
|
-
type VariantProps = TVProps<typeof circularProgressVariants>;
|
|
166
|
-
type ClassName = TVClassName<typeof circularProgressVariants>;
|
|
167
|
-
declare const circularProgressStyleVariantOptions: readonly ["default", "warning", "danger", "success", "primary"];
|
|
168
|
-
type CircularProgressStyleVariant = (typeof circularProgressStyleVariantOptions)[number];
|
|
169
|
-
interface CircularProgressProps extends VariantProps {
|
|
170
|
-
className?: ClassName;
|
|
171
|
-
format?: (percent?: number) => ReactNode;
|
|
172
|
-
hasError?: boolean;
|
|
173
|
-
size?: VariantProps['size'];
|
|
174
|
-
styleVariant?: CircularProgressStyleVariant;
|
|
175
|
-
percent: number;
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* CircularProgress component based on [HeroUI CircularProgress](https://www.heroui.com/docs/components/circular-progress)
|
|
179
|
-
*/
|
|
180
|
-
declare const CircularProgress: ({ className, format, hasError, styleVariant, size, percent, }: CircularProgressProps) => react_jsx_runtime.JSX.Element;
|
|
181
|
-
|
|
182
|
-
export { CircularProgress as C, type VariantProps as V, circularProgressStyleVariantOptions as a, type CircularProgressProps as b, circularProgressVariants as c, type CircularProgressStyleVariant as d };
|
package/dist/chunk-37WQ3CBA.cjs
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/CircularProgress/CircularProgress.tsx
|
|
2
|
-
var _fa = require('react-icons/fa');
|
|
3
|
-
var _progress = require('@heroui/progress');
|
|
4
|
-
var _pixelutils = require('@fuf-stack/pixel-utils');
|
|
5
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
6
|
-
var circularProgressVariants = _pixelutils.tv.call(void 0, {
|
|
7
|
-
slots: {
|
|
8
|
-
base: "",
|
|
9
|
-
// wrapper around the whole component
|
|
10
|
-
svgWrapper: "",
|
|
11
|
-
// wrapper around progress svg and value span
|
|
12
|
-
svg: "",
|
|
13
|
-
// wrapper for the circle
|
|
14
|
-
track: "stroke-default-50",
|
|
15
|
-
// track of the circle (not finished part)
|
|
16
|
-
indicator: "",
|
|
17
|
-
// indicator of the circle (finished part)
|
|
18
|
-
value: "",
|
|
19
|
-
// outer span next to the svg
|
|
20
|
-
label: ""
|
|
21
|
-
// label next to the svgWrapper
|
|
22
|
-
},
|
|
23
|
-
variants: {
|
|
24
|
-
size: {
|
|
25
|
-
xs: {
|
|
26
|
-
value: "text-xs",
|
|
27
|
-
svg: "h-10 w-10"
|
|
28
|
-
},
|
|
29
|
-
sm: {
|
|
30
|
-
value: "text-sm",
|
|
31
|
-
svg: "h-12 w-12"
|
|
32
|
-
},
|
|
33
|
-
md: {
|
|
34
|
-
svg: "h-14 w-14",
|
|
35
|
-
value: "text-md"
|
|
36
|
-
},
|
|
37
|
-
lg: {
|
|
38
|
-
svg: "h-16 w-16",
|
|
39
|
-
value: "text-lg"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
var circularProgressStyleVariantOptions = [
|
|
45
|
-
"default",
|
|
46
|
-
"warning",
|
|
47
|
-
"danger",
|
|
48
|
-
"success",
|
|
49
|
-
"primary"
|
|
50
|
-
];
|
|
51
|
-
var defaultFormat = (percent) => `${percent}%`;
|
|
52
|
-
var CircularProgress = ({
|
|
53
|
-
className = void 0,
|
|
54
|
-
format = defaultFormat,
|
|
55
|
-
hasError = false,
|
|
56
|
-
styleVariant = "primary",
|
|
57
|
-
size = "sm",
|
|
58
|
-
percent
|
|
59
|
-
}) => {
|
|
60
|
-
const variants = circularProgressVariants({ size });
|
|
61
|
-
const classNames = _pixelutils.variantsToClassNames.call(void 0, variants, className, "base");
|
|
62
|
-
let color = styleVariant;
|
|
63
|
-
let value = format(percent);
|
|
64
|
-
if (hasError) {
|
|
65
|
-
color = "danger";
|
|
66
|
-
value = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _fa.FaTimes, { className: "text-danger" });
|
|
67
|
-
} else if (percent >= 100) {
|
|
68
|
-
color = "success";
|
|
69
|
-
value = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _fa.FaCheck, { className: "text-success" });
|
|
70
|
-
}
|
|
71
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
72
|
-
_progress.CircularProgress,
|
|
73
|
-
{
|
|
74
|
-
classNames,
|
|
75
|
-
"aria-label": "Loading...",
|
|
76
|
-
formatOptions: void 0,
|
|
77
|
-
size: "sm",
|
|
78
|
-
value: percent || 0,
|
|
79
|
-
valueLabel: percent && value,
|
|
80
|
-
color,
|
|
81
|
-
showValueLabel: true,
|
|
82
|
-
strokeWidth: 2,
|
|
83
|
-
disableAnimation: true
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
};
|
|
87
|
-
var CircularProgress_default = CircularProgress;
|
|
88
|
-
|
|
89
|
-
// src/CircularProgress/index.ts
|
|
90
|
-
var CircularProgress_default2 = CircularProgress_default;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
exports.circularProgressVariants = circularProgressVariants; exports.circularProgressStyleVariantOptions = circularProgressStyleVariantOptions; exports.CircularProgress_default = CircularProgress_default; exports.CircularProgress_default2 = CircularProgress_default2;
|
|
98
|
-
//# sourceMappingURL=chunk-37WQ3CBA.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-37WQ3CBA.cjs","../src/CircularProgress/CircularProgress.tsx","../src/CircularProgress/index.ts"],"names":[],"mappings":"AAAA;ACGA,oCAAiC;AAEjC,4CAAyD;AAEzD,oDAAyC;AA4E7B,+CAAA;AA1EL,IAAM,yBAAA,EAA2B,4BAAA;AAAG,EACzC,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,EAAA;AAAA;AAAA,IACN,UAAA,EAAY,EAAA;AAAA;AAAA,IACZ,GAAA,EAAK,EAAA;AAAA;AAAA,IACL,KAAA,EAAO,mBAAA;AAAA;AAAA,IACP,SAAA,EAAW,EAAA;AAAA;AAAA,IACX,KAAA,EAAO,EAAA;AAAA;AAAA,IACP,KAAA,EAAO;AAAA;AAAA,EACT,CAAA;AAAA,EACA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA,MACJ,EAAA,EAAI;AAAA,QACF,KAAA,EAAO,SAAA;AAAA,QACP,GAAA,EAAK;AAAA,MACP,CAAA;AAAA,MACA,EAAA,EAAI;AAAA,QACF,KAAA,EAAO,SAAA;AAAA,QACP,GAAA,EAAK;AAAA,MACP,CAAA;AAAA,MACA,EAAA,EAAI;AAAA,QACF,GAAA,EAAK,WAAA;AAAA,QACL,KAAA,EAAO;AAAA,MACT,CAAA;AAAA,MACA,EAAA,EAAI;AAAA,QACF,GAAA,EAAK,WAAA;AAAA,QACL,KAAA,EAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AACF,CAAC,CAAA;AAKM,IAAM,oCAAA,EAAsC;AAAA,EACjD,SAAA;AAAA,EACA,SAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA;AACF,CAAA;AAaA,IAAM,cAAA,EAAgB,CAAC,OAAA,EAAA,GAAqB,CAAA,EAAA;AAKlB;AACZ,EAAA;AACH,EAAA;AACE,EAAA;AACI,EAAA;AACR,EAAA;AACP,EAAA;AAC2B;AACV,EAAA;AACE,EAAA;AACP,EAAA;AACc,EAAA;AAEZ,EAAA;AACJ,IAAA;AACC,IAAA;AACgB,EAAA;AACjB,IAAA;AACC,IAAA;AACX,EAAA;AAGE,EAAA;AAAC,IAAA;AAAA,IAAA;AACC,MAAA;AACW,MAAA;AACI,MAAA;AACV,MAAA;AACa,MAAA;AACK,MAAA;AACvB,MAAA;AACc,MAAA;AACD,MAAA;AACG,MAAA;AAAA,IAAA;AAClB,EAAA;AAEJ;AAEe;ADlBmB;AACA;AExEnB;AF0EmB;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/chunk-37WQ3CBA.cjs","sourcesContent":[null,"import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport { FaCheck, FaTimes } from 'react-icons/fa';\n\nimport { CircularProgress as NextCircularProgress } from '@heroui/progress';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nexport const circularProgressVariants = tv({\n slots: {\n base: '', // wrapper around the whole component\n svgWrapper: '', // wrapper around progress svg and value span\n svg: '', // wrapper for the circle\n track: 'stroke-default-50', // track of the circle (not finished part)\n indicator: '', // indicator of the circle (finished part)\n value: '', // outer span next to the svg\n label: '', // label next to the svgWrapper\n },\n variants: {\n size: {\n xs: {\n value: 'text-xs',\n svg: 'h-10 w-10',\n },\n sm: {\n value: 'text-sm',\n svg: 'h-12 w-12',\n },\n md: {\n svg: 'h-14 w-14',\n value: 'text-md',\n },\n lg: {\n svg: 'h-16 w-16',\n value: 'text-lg',\n },\n },\n },\n});\n\nexport type VariantProps = TVProps<typeof circularProgressVariants>;\ntype ClassName = TVClassName<typeof circularProgressVariants>;\n\nexport const circularProgressStyleVariantOptions = [\n 'default',\n 'warning',\n 'danger',\n 'success',\n 'primary',\n] as const;\nexport type CircularProgressStyleVariant =\n (typeof circularProgressStyleVariantOptions)[number];\n\nexport interface CircularProgressProps extends VariantProps {\n className?: ClassName;\n format?: (percent?: number) => ReactNode;\n hasError?: boolean;\n size?: VariantProps['size'];\n styleVariant?: CircularProgressStyleVariant;\n percent: number;\n}\n\nconst defaultFormat = (percent?: number) => `${percent}%`;\n\n/**\n * CircularProgress component based on [HeroUI CircularProgress](https://www.heroui.com/docs/components/circular-progress)\n */\nconst CircularProgress = ({\n className = undefined,\n format = defaultFormat,\n hasError = false,\n styleVariant = 'primary',\n size = 'sm',\n percent,\n}: CircularProgressProps) => {\n const variants = circularProgressVariants({ size });\n const classNames = variantsToClassNames(variants, className, 'base');\n let color = styleVariant;\n let value = format(percent);\n\n if (hasError) {\n color = 'danger';\n value = <FaTimes className=\"text-danger\" />;\n } else if (percent >= 100) {\n color = 'success';\n value = <FaCheck className=\"text-success\" />;\n }\n\n return (\n <NextCircularProgress\n classNames={classNames}\n aria-label=\"Loading...\"\n formatOptions={undefined}\n size=\"sm\"\n value={percent || 0}\n valueLabel={percent && value}\n color={color}\n showValueLabel\n strokeWidth={2}\n disableAnimation\n />\n );\n};\n\nexport default CircularProgress;\n","import CircularProgress, {\n circularProgressStyleVariantOptions,\n circularProgressVariants,\n} from './CircularProgress';\n\nexport type {\n CircularProgressProps,\n VariantProps as CircularProgressVariantProps,\n CircularProgressStyleVariant,\n} from './CircularProgress';\n\nexport {\n CircularProgress,\n circularProgressVariants,\n circularProgressStyleVariantOptions,\n};\nexport default CircularProgress;\n"]}
|