@fuf-stack/pixels 0.39.9 → 0.40.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/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-CUyQwK3t.d.cts → AvatarGroup-2Lmu_V2d.d.cts} +1 -1
- package/dist/{AvatarGroup-BfOtqfJy.d.ts → AvatarGroup-BMKOfE_a.d.ts} +1 -1
- package/dist/CircularProgress/index.cjs +14 -0
- package/dist/CircularProgress/index.cjs.map +1 -0
- package/dist/CircularProgress/index.d.cts +11 -0
- package/dist/CircularProgress/index.d.ts +11 -0
- package/dist/CircularProgress/index.js +14 -0
- package/dist/CircularProgress/index.js.map +1 -0
- package/dist/CircularProgress-DHrnT6wz.d.cts +182 -0
- package/dist/CircularProgress-DHrnT6wz.d.ts +182 -0
- package/dist/Drawer/index.d.cts +2 -2
- package/dist/Drawer/index.d.ts +2 -2
- package/dist/chunk-37WQ3CBA.cjs +98 -0
- package/dist/chunk-37WQ3CBA.cjs.map +1 -0
- package/dist/chunk-M3PL6G7W.js +98 -0
- package/dist/chunk-M3PL6G7W.js.map +1 -0
- package/dist/index.cjs +13 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/package.json +8 -3
- package/dist/{Avatar-ylNJ_-dY.d.cts → Avatar-B8lVnLpp.d.cts} +5 -5
- package/dist/{Avatar-ylNJ_-dY.d.ts → Avatar-B8lVnLpp.d.ts} +5 -5
- package/dist/{Drawer-BnV9qxPA.d.cts → Drawer-DmwcvuKe.d.cts} +5 -5
- package/dist/{Drawer-BnV9qxPA.d.ts → Drawer-DmwcvuKe.d.ts} +5 -5
package/dist/Avatar/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Avatar } from '../Avatar-
|
|
2
|
-
export { a as AvatarProps } from '../Avatar-
|
|
1
|
+
import { A as Avatar } from '../Avatar-B8lVnLpp.cjs';
|
|
2
|
+
export { a as AvatarProps } from '../Avatar-B8lVnLpp.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants/dist/config.js';
|
|
5
5
|
import 'tailwind-variants';
|
package/dist/Avatar/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Avatar } from '../Avatar-
|
|
2
|
-
export { a as AvatarProps } from '../Avatar-
|
|
1
|
+
import { A as Avatar } from '../Avatar-B8lVnLpp.js';
|
|
2
|
+
export { a as AvatarProps } from '../Avatar-B8lVnLpp.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants/dist/config.js';
|
|
5
5
|
import 'tailwind-variants';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as AvatarGroup } from '../AvatarGroup-
|
|
2
|
-
export { a as AvatarGroupProps } from '../AvatarGroup-
|
|
1
|
+
import { A as AvatarGroup } from '../AvatarGroup-2Lmu_V2d.cjs';
|
|
2
|
+
export { a as AvatarGroupProps } from '../AvatarGroup-2Lmu_V2d.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../Avatar-
|
|
5
|
+
import '../Avatar-B8lVnLpp.cjs';
|
|
6
6
|
import 'tailwind-variants/dist/config.js';
|
|
7
7
|
import 'tailwind-variants';
|
|
8
8
|
import '@fuf-stack/pixel-utils';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as AvatarGroup } from '../AvatarGroup-
|
|
2
|
-
export { a as AvatarGroupProps } from '../AvatarGroup-
|
|
1
|
+
import { A as AvatarGroup } from '../AvatarGroup-BMKOfE_a.js';
|
|
2
|
+
export { a as AvatarGroupProps } from '../AvatarGroup-BMKOfE_a.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../Avatar-
|
|
5
|
+
import '../Avatar-B8lVnLpp.js';
|
|
6
6
|
import 'tailwind-variants/dist/config.js';
|
|
7
7
|
import 'tailwind-variants';
|
|
8
8
|
import '@fuf-stack/pixel-utils';
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 };
|
|
@@ -0,0 +1,11 @@
|
|
|
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 };
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,182 @@
|
|
|
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 };
|
|
@@ -0,0 +1,182 @@
|
|
|
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/Drawer/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as Drawer } from '../Drawer-
|
|
2
|
-
export { f as DrawerProps, d as drawerBackdrops, a as drawerPlacements, b as drawerRadii, c as drawerSizes, e as drawerVariants } from '../Drawer-
|
|
1
|
+
import { D as Drawer } from '../Drawer-DmwcvuKe.cjs';
|
|
2
|
+
export { f as DrawerProps, d as drawerBackdrops, a as drawerPlacements, b as drawerRadii, c as drawerSizes, e as drawerVariants } from '../Drawer-DmwcvuKe.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants/dist/config.js';
|
|
5
5
|
import 'tailwind-variants';
|
package/dist/Drawer/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as Drawer } from '../Drawer-
|
|
2
|
-
export { f as DrawerProps, d as drawerBackdrops, a as drawerPlacements, b as drawerRadii, c as drawerSizes, e as drawerVariants } from '../Drawer-
|
|
1
|
+
import { D as Drawer } from '../Drawer-DmwcvuKe.js';
|
|
2
|
+
export { f as DrawerProps, d as drawerBackdrops, a as drawerPlacements, b as drawerRadii, c as drawerSizes, e as drawerVariants } from '../Drawer-DmwcvuKe.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants/dist/config.js';
|
|
5
5
|
import 'tailwind-variants';
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,oCAA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;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"]}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
// src/CircularProgress/CircularProgress.tsx
|
|
2
|
+
import { FaCheck, FaTimes } from "react-icons/fa";
|
|
3
|
+
import { CircularProgress as NextCircularProgress } from "@heroui/progress";
|
|
4
|
+
import { tv, variantsToClassNames } from "@fuf-stack/pixel-utils";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var circularProgressVariants = tv({
|
|
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 = variantsToClassNames(variants, className, "base");
|
|
62
|
+
let color = styleVariant;
|
|
63
|
+
let value = format(percent);
|
|
64
|
+
if (hasError) {
|
|
65
|
+
color = "danger";
|
|
66
|
+
value = /* @__PURE__ */ jsx(FaTimes, { className: "text-danger" });
|
|
67
|
+
} else if (percent >= 100) {
|
|
68
|
+
color = "success";
|
|
69
|
+
value = /* @__PURE__ */ jsx(FaCheck, { className: "text-success" });
|
|
70
|
+
}
|
|
71
|
+
return /* @__PURE__ */ jsx(
|
|
72
|
+
NextCircularProgress,
|
|
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
|
+
export {
|
|
93
|
+
circularProgressVariants,
|
|
94
|
+
circularProgressStyleVariantOptions,
|
|
95
|
+
CircularProgress_default,
|
|
96
|
+
CircularProgress_default2
|
|
97
|
+
};
|
|
98
|
+
//# sourceMappingURL=chunk-M3PL6G7W.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/CircularProgress/CircularProgress.tsx","../src/CircularProgress/index.ts"],"sourcesContent":["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"],"mappings":";AAGA,SAAS,SAAS,eAAe;AAEjC,SAAS,oBAAoB,4BAA4B;AAEzD,SAAS,IAAI,4BAA4B;AA4E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YAAY,WAAW;AAAA,MACvB;AAAA,MACA,gBAAc;AAAA,MACd,aAAa;AAAA,MACb,kBAAgB;AAAA;AAAA,EAClB;AAEJ;AAEA,IAAO,2BAAQ;;;ACzFf,IAAOA,4BAAQ;","names":["CircularProgress_default"]}
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
+
var _chunkEAX5J2I2cjs = require('./chunk-EAX5J2I2.cjs');
|
|
4
|
+
require('./chunk-TX2VP4J7.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
3
7
|
|
|
4
8
|
var _chunkAJCAIA6Hcjs = require('./chunk-AJCAIA6H.cjs');
|
|
5
9
|
|
|
@@ -24,6 +28,11 @@ var _chunkMHZAWSFJcjs = require('./chunk-MHZAWSFJ.cjs');
|
|
|
24
28
|
|
|
25
29
|
|
|
26
30
|
|
|
31
|
+
var _chunk37WQ3CBAcjs = require('./chunk-37WQ3CBA.cjs');
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
27
36
|
|
|
28
37
|
|
|
29
38
|
|
|
@@ -44,10 +53,6 @@ var _chunkXHOAZB2Zcjs = require('./chunk-XHOAZB2Z.cjs');
|
|
|
44
53
|
var _chunkPEUUQMJScjs = require('./chunk-PEUUQMJS.cjs');
|
|
45
54
|
|
|
46
55
|
|
|
47
|
-
var _chunkEAX5J2I2cjs = require('./chunk-EAX5J2I2.cjs');
|
|
48
|
-
require('./chunk-TX2VP4J7.cjs');
|
|
49
|
-
|
|
50
|
-
|
|
51
56
|
|
|
52
57
|
var _chunk2P5WWVQ6cjs = require('./chunk-2P5WWVQ6.cjs');
|
|
53
58
|
|
|
@@ -270,5 +275,8 @@ var ToastProvider_default = ToastProvider;
|
|
|
270
275
|
|
|
271
276
|
|
|
272
277
|
|
|
273
|
-
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
exports.Accordion = _chunk2P5WWVQ6cjs.Accordion_default; exports.Alert = _chunkYVPRFCWIcjs.Alert_default; exports.Avatar = _chunk77J7NZYBcjs.Avatar_default; exports.AvatarGroup = _chunkLIZGYO24cjs.AvatarGroup_default; exports.Badge = _chunkJSANDW3Wcjs.Badge_default; exports.Breadcrumb = _chunkZZOEFQWQcjs.Breadcrumb_default; exports.Button = _chunkHHCDSQ6Ncjs.Button_default; exports.ButtonGroup = _chunkY3RSI2KVcjs.ButtonGroup_default; exports.Card = _chunkMHZAWSFJcjs.Card_default; exports.CircularProgress = _chunk37WQ3CBAcjs.CircularProgress_default; exports.Drawer = _chunk7RVUB6I5cjs.Drawer_default; exports.Json = _chunk374SO74Fcjs.Json_default; exports.Label = _chunkPLJWIGRScjs.Label_default; exports.Menu = _chunkXHOAZB2Zcjs.Menu_default; exports.Modal = _chunkPEUUQMJScjs.Modal_default; exports.Popover = _chunkEAX5J2I2cjs.Popover_default; exports.Table = _chunkAJCAIA6Hcjs.Table_default; exports.Tabs = _chunkJUHSESWBcjs.Tabs_default; exports.ToastProvider = ToastProvider_default; exports.Tooltip = _chunk25AJSW5Ecjs.Tooltip_default; exports.accordionVariants = _chunk2P5WWVQ6cjs.accordionVariants; exports.addToast = addToast; exports.alertVariants = _chunkYVPRFCWIcjs.alertVariants; exports.breadcrumbVariants = _chunkZZOEFQWQcjs.breadcrumbVariants; exports.buttonVariants = _chunkHHCDSQ6Ncjs.buttonVariants; exports.cardVariants = _chunkMHZAWSFJcjs.cardVariants; exports.circularProgressStyleVariantOptions = _chunk37WQ3CBAcjs.circularProgressStyleVariantOptions; exports.circularProgressVariants = _chunk37WQ3CBAcjs.circularProgressVariants; exports.drawerBackdrops = _chunk7RVUB6I5cjs.drawerBackdrops; exports.drawerPlacements = _chunk7RVUB6I5cjs.drawerPlacements; exports.drawerRadii = _chunk7RVUB6I5cjs.drawerRadii; exports.drawerSizes = _chunk7RVUB6I5cjs.drawerSizes; exports.drawerVariants = _chunk7RVUB6I5cjs.drawerVariants; exports.labelVariants = _chunkPLJWIGRScjs.labelVariants; exports.modalVariants = _chunkPEUUQMJScjs.modalVariants; exports.tableVariants = _chunkAJCAIA6Hcjs.tableVariants; exports.tabsVariants = _chunkJUHSESWBcjs.tabsVariants; exports.toastVariants = toastVariants; exports.useDebounce = _chunkMWNBYTRNcjs.useDebounce; exports.useLocalStorage = _chunkMWNBYTRNcjs.useLocalStorage;
|
|
274
282
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/index.cjs","../src/Toast/addToast.tsx","../src/Toast/ToastProvider.tsx"],"names":["heroToastVariants","variantsToClassNames"],"mappings":"AAAA;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACA;AC1EA,sCAA2C;AAC3C,sCAAyC;AAEzC,oDAAyC;AAElC,IAAM,cAAA,EAAgB,4BAAA;AAAG,EAC9B,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,EAAA;AAAA,IAC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A,EAAA,UAAA,CAAY,SAAA;AAAA,IACZ;AAAA,EACF,CAAA;AACA,EAAA,uBACE,6BAAA;AAAA,IAAC,oBAAA;AAAA,IAAA;AAAA,MACC,gBAAA;AAAA,MACA,gBAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA;AAAA,MACA,WAAA;AAAA,MACA,UAAA,EAAY,6CAAA,8CAAA,CAAA,CAAA,EACP,UAAA,CAAA,EADO;AAAA,QAEV,UAAA;AAAA,QACA,KAAA,EAAO,cAAA,EACF,WAAA,GAAA,KAAA,EAAA,KAAA,EAAA,EAAA,UAAA,CAAY,MAAA,EACb,KAAA;AAAA,MACN,CAAA;AAAA,IAAA;AAAA,EACF,CAAA;AAEJ,CAAA;AAEA,IAAO,sBAAA,EAAQ,aAAA;AFkKf;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,w7DAAC","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/index.cjs","sourcesContent":[null,"import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ToastProps as HeroToastProps } from '@heroui/toast';\nimport type { ReactNode } from 'react';\n\nimport { toast as heroToastVariants } from '@heroui/theme';\nimport { addToast as heroAddToast } from '@heroui/toast';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nexport const toastVariants = tv({\n slots: {\n base: '',\n title: '',\n description: '',\n icon: '',\n loadingIcon: '',\n content: '',\n motionDiv: '',\n progressTrack: '',\n progressIndicator: '',\n closeButton: '',\n closeIcon: '',\n },\n variants: {\n // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/toast.ts\n color: {\n info: {},\n ...heroToastVariants.variants.color,\n },\n variant: {\n ...heroToastVariants.variants.variant,\n },\n },\n compoundVariants: [\n ...heroToastVariants.compoundVariants,\n {\n variant: 'solid',\n color: 'info',\n className: {\n base: 'bg-info text-info-foreground',\n title: 'text-info-foreground',\n description: 'text-info-foreground',\n icon: 'text-info-foreground',\n closeIcon: 'border-info-400 bg-info-100',\n closeButton: 'text-info-400 hover:text-info-600',\n progressIndicator: 'bg-info-400',\n },\n },\n {\n color: 'info',\n variant: 'flat',\n className: {\n base: 'dark:bg-info-50/50 bg-info-50 text-info-600',\n title: 'text-info-600',\n description: 'text-info-500',\n icon: 'text-info-600',\n closeIcon: 'border-info-400 bg-info-100',\n closeButton: 'text-info-400 hover:text-info-600',\n progressIndicator: 'bg-info-400',\n },\n },\n\n {\n color: 'info',\n variant: 'bordered',\n className: {\n base: 'border-small border-info text-info-600',\n title: 'text-info-600',\n description: 'text-info-500',\n icon: 'text-info-600',\n closeIcon: 'border-info-400 bg-info-100',\n closeButton: 'text-info-400 hover:text-info-600',\n progressIndicator: 'bg-info-400',\n },\n },\n ],\n});\n\nexport type AddToastVariantProps = TVProps<typeof toastVariants>;\ntype ClassName = TVClassName<typeof toastVariants>;\n\nexport interface ToastProps extends AddToastVariantProps {\n /** CSS class name */\n className?: ClassName;\n /** Icon displayed at the end of the Alert */\n closeIcon?: ReactNode;\n /** Color of the alert */\n color?: AddToastVariantProps['color'];\n /** Content displayed inside the Alert */\n description?: ReactNode;\n /** Content displayed at the end of the Alert */\n endContent?: ReactNode;\n /** Icon displayed at the start of the Alert */\n icon?: ReactNode;\n /** Icon or animation displayed until promise is resolved */\n loadingIcon?: ReactNode;\n /** Callback function called when the toast is closed */\n onClose?: () => void;\n /** Promise based on which the notification will be styled */\n promise?: Promise<void>;\n /** Whether the toast should show a progress bar */\n shouldShowTimeoutProgress?: boolean;\n /** Whether the toast should show a close button */\n showCloseButton?: boolean;\n /** Whether the toast should show an icon */\n showIcon?: boolean;\n /** Time the toast is displayed */\n timeout?: number;\n /** Content displayed at the top of the toast */\n title?: ReactNode;\n /** Variant of the toast */\n variant?: AddToastVariantProps['variant'];\n}\n\n/**\n * addToast function based on [HeroUI Toast](https://www.heroui.com//docs/components/toast)\n */\nexport const addToast = ({\n className = undefined,\n closeIcon = undefined,\n color = 'default',\n description = undefined,\n endContent = undefined,\n icon = undefined,\n loadingIcon = undefined,\n onClose = undefined,\n promise = undefined,\n shouldShowTimeoutProgress = false,\n showCloseButton = true,\n showIcon = true,\n timeout = 5000,\n title = undefined,\n variant = 'bordered',\n}: ToastProps) => {\n const variants = toastVariants({\n color,\n variant,\n });\n const isHeroUIColor = Object.keys(heroToastVariants.variants.color).includes(\n color,\n );\n const classNames = variantsToClassNames(variants, className, 'base');\n heroAddToast({\n classNames,\n closeIcon,\n color: isHeroUIColor ? (color as HeroToastProps['color']) : undefined,\n // TODO: 'data-testid': testId,\n // https://github.com/heroui-inc/heroui/issues/5033\n // @ts-expect-error bug in hero-toast: description should be ReactNode\n description,\n endContent,\n hideCloseButton: !showCloseButton,\n hideIcon: !showIcon,\n icon,\n loadingIcon,\n onClose,\n promise,\n shouldShowTimeoutProgress,\n timeout,\n title,\n variant,\n });\n};\n\nexport default addToast;\n","import type { ToastProps as HeroToastProps } from '@heroui/toast';\nimport type { ToastProps } from './addToast';\n\nimport { toast as heroToastVariants } from '@heroui/theme';\nimport { ToastProvider as HeroToastProvider } from '@heroui/toast';\n\nimport { variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { toastVariants } from './addToast';\n\nexport type ToastProviderToastProps = Omit<\n ToastProps,\n 'description' | 'endContent' | 'title'\n>;\n\nexport interface ToastProviderProps {\n disableAnimation?: boolean;\n maxVisibleToasts?: number;\n placement?:\n | 'bottom-right'\n | 'bottom-left'\n | 'bottom-center'\n | 'top-right'\n | 'top-left'\n | 'top-center';\n\n toastProps?: ToastProviderToastProps;\n toastOffset?: number;\n regionProps?: { classNames?: Record<'base', string> };\n}\n\n/**\n * ToastProvider component based on [HeroUI Toast](https://www.heroui.com//docs/components/toast)\n */\nconst ToastProvider = ({\n disableAnimation = false,\n maxVisibleToasts = 5,\n placement = 'top-center',\n toastProps = undefined,\n toastOffset = 26,\n regionProps = undefined,\n}: ToastProviderProps) => {\n const variants = toastVariants({\n color: toastProps?.color,\n variant: toastProps?.variant,\n });\n const isHeroUIColor = Object.keys(heroToastVariants.variants.color).includes(\n toastProps?.color || '',\n );\n const classNames = variantsToClassNames(\n variants,\n toastProps?.className,\n 'base',\n );\n return (\n <HeroToastProvider\n disableAnimation={disableAnimation}\n maxVisibleToasts={maxVisibleToasts}\n placement={placement}\n regionProps={regionProps}\n toastOffset={toastOffset}\n toastProps={{\n ...toastProps,\n classNames,\n color: isHeroUIColor\n ? (toastProps?.color as HeroToastProps['color'])\n : undefined,\n }}\n />\n );\n};\n\nexport default ToastProvider;\n"]}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/index.cjs","../src/Toast/addToast.tsx","../src/Toast/ToastProvider.tsx"],"names":["heroToastVariants","variantsToClassNames"],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AA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A,UAAA,CAAY,KAAA,EAAA,GAAS;AAAA,EACvB,CAAA;AACA,EAAA,MAAM,WAAA,EAAaC,8CAAAA;AAAA,IACjB,QAAA;AAAA,IACA,WAAA,GAAA,KAAA,EAAA,KAAA,EAAA,EAAA,UAAA,CAAY,SAAA;AAAA,IACZ;AAAA,EACF,CAAA;AACA,EAAA,uBACE,6BAAA;AAAA,IAAC,oBAAA;AAAA,IAAA;AAAA,MACC,gBAAA;AAAA,MACA,gBAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA;AAAA,MACA,WAAA;AAAA,MACA,UAAA,EAAY,6CAAA,8CAAA,CAAA,CAAA,EACP,UAAA,CAAA,EADO;AAAA,QAEV,UAAA;AAAA,QACA,KAAA,EAAO,cAAA,EACF,WAAA,GAAA,KAAA,EAAA,KAAA,EAAA,EAAA,UAAA,CAAY,MAAA,EACb,KAAA;AAAA,MACN,CAAA;AAAA,IAAA;AAAA,EACF,CAAA;AAEJ,CAAA;AAEA,IAAO,sBAAA,EAAQ,aAAA;AFuKf;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,mrEAAC","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/index.cjs","sourcesContent":[null,"import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ToastProps as HeroToastProps } from '@heroui/toast';\nimport type { ReactNode } from 'react';\n\nimport { toast as heroToastVariants } from '@heroui/theme';\nimport { addToast as heroAddToast } from '@heroui/toast';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nexport const toastVariants = tv({\n slots: {\n base: '',\n title: '',\n description: '',\n icon: '',\n loadingIcon: '',\n content: '',\n motionDiv: '',\n progressTrack: '',\n progressIndicator: '',\n closeButton: '',\n closeIcon: '',\n },\n variants: {\n // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/toast.ts\n color: {\n info: {},\n ...heroToastVariants.variants.color,\n },\n variant: {\n ...heroToastVariants.variants.variant,\n },\n },\n compoundVariants: [\n ...heroToastVariants.compoundVariants,\n {\n variant: 'solid',\n color: 'info',\n className: {\n base: 'bg-info text-info-foreground',\n title: 'text-info-foreground',\n description: 'text-info-foreground',\n icon: 'text-info-foreground',\n closeIcon: 'border-info-400 bg-info-100',\n closeButton: 'text-info-400 hover:text-info-600',\n progressIndicator: 'bg-info-400',\n },\n },\n {\n color: 'info',\n variant: 'flat',\n className: {\n base: 'dark:bg-info-50/50 bg-info-50 text-info-600',\n title: 'text-info-600',\n description: 'text-info-500',\n icon: 'text-info-600',\n closeIcon: 'border-info-400 bg-info-100',\n closeButton: 'text-info-400 hover:text-info-600',\n progressIndicator: 'bg-info-400',\n },\n },\n\n {\n color: 'info',\n variant: 'bordered',\n className: {\n base: 'border-small border-info text-info-600',\n title: 'text-info-600',\n description: 'text-info-500',\n icon: 'text-info-600',\n closeIcon: 'border-info-400 bg-info-100',\n closeButton: 'text-info-400 hover:text-info-600',\n progressIndicator: 'bg-info-400',\n },\n },\n ],\n});\n\nexport type AddToastVariantProps = TVProps<typeof toastVariants>;\ntype ClassName = TVClassName<typeof toastVariants>;\n\nexport interface ToastProps extends AddToastVariantProps {\n /** CSS class name */\n className?: ClassName;\n /** Icon displayed at the end of the Alert */\n closeIcon?: ReactNode;\n /** Color of the alert */\n color?: AddToastVariantProps['color'];\n /** Content displayed inside the Alert */\n description?: ReactNode;\n /** Content displayed at the end of the Alert */\n endContent?: ReactNode;\n /** Icon displayed at the start of the Alert */\n icon?: ReactNode;\n /** Icon or animation displayed until promise is resolved */\n loadingIcon?: ReactNode;\n /** Callback function called when the toast is closed */\n onClose?: () => void;\n /** Promise based on which the notification will be styled */\n promise?: Promise<void>;\n /** Whether the toast should show a progress bar */\n shouldShowTimeoutProgress?: boolean;\n /** Whether the toast should show a close button */\n showCloseButton?: boolean;\n /** Whether the toast should show an icon */\n showIcon?: boolean;\n /** Time the toast is displayed */\n timeout?: number;\n /** Content displayed at the top of the toast */\n title?: ReactNode;\n /** Variant of the toast */\n variant?: AddToastVariantProps['variant'];\n}\n\n/**\n * addToast function based on [HeroUI Toast](https://www.heroui.com//docs/components/toast)\n */\nexport const addToast = ({\n className = undefined,\n closeIcon = undefined,\n color = 'default',\n description = undefined,\n endContent = undefined,\n icon = undefined,\n loadingIcon = undefined,\n onClose = undefined,\n promise = undefined,\n shouldShowTimeoutProgress = false,\n showCloseButton = true,\n showIcon = true,\n timeout = 5000,\n title = undefined,\n variant = 'bordered',\n}: ToastProps) => {\n const variants = toastVariants({\n color,\n variant,\n });\n const isHeroUIColor = Object.keys(heroToastVariants.variants.color).includes(\n color,\n );\n const classNames = variantsToClassNames(variants, className, 'base');\n heroAddToast({\n classNames,\n closeIcon,\n color: isHeroUIColor ? (color as HeroToastProps['color']) : undefined,\n // TODO: 'data-testid': testId,\n // https://github.com/heroui-inc/heroui/issues/5033\n // @ts-expect-error bug in hero-toast: description should be ReactNode\n description,\n endContent,\n hideCloseButton: !showCloseButton,\n hideIcon: !showIcon,\n icon,\n loadingIcon,\n onClose,\n promise,\n shouldShowTimeoutProgress,\n timeout,\n title,\n variant,\n });\n};\n\nexport default addToast;\n","import type { ToastProps as HeroToastProps } from '@heroui/toast';\nimport type { ToastProps } from './addToast';\n\nimport { toast as heroToastVariants } from '@heroui/theme';\nimport { ToastProvider as HeroToastProvider } from '@heroui/toast';\n\nimport { variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { toastVariants } from './addToast';\n\nexport type ToastProviderToastProps = Omit<\n ToastProps,\n 'description' | 'endContent' | 'title'\n>;\n\nexport interface ToastProviderProps {\n disableAnimation?: boolean;\n maxVisibleToasts?: number;\n placement?:\n | 'bottom-right'\n | 'bottom-left'\n | 'bottom-center'\n | 'top-right'\n | 'top-left'\n | 'top-center';\n\n toastProps?: ToastProviderToastProps;\n toastOffset?: number;\n regionProps?: { classNames?: Record<'base', string> };\n}\n\n/**\n * ToastProvider component based on [HeroUI Toast](https://www.heroui.com//docs/components/toast)\n */\nconst ToastProvider = ({\n disableAnimation = false,\n maxVisibleToasts = 5,\n placement = 'top-center',\n toastProps = undefined,\n toastOffset = 26,\n regionProps = undefined,\n}: ToastProviderProps) => {\n const variants = toastVariants({\n color: toastProps?.color,\n variant: toastProps?.variant,\n });\n const isHeroUIColor = Object.keys(heroToastVariants.variants.color).includes(\n toastProps?.color || '',\n );\n const classNames = variantsToClassNames(\n variants,\n toastProps?.className,\n 'base',\n );\n return (\n <HeroToastProvider\n disableAnimation={disableAnimation}\n maxVisibleToasts={maxVisibleToasts}\n placement={placement}\n regionProps={regionProps}\n toastOffset={toastOffset}\n toastProps={{\n ...toastProps,\n classNames,\n color: isHeroUIColor\n ? (toastProps?.color as HeroToastProps['color'])\n : undefined,\n }}\n />\n );\n};\n\nexport default ToastProvider;\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
export { A as Accordion, c as AccordionItemProps, b as AccordionProps, a as accordionVariants } from './Accordion-rA715N0Z.cjs';
|
|
2
2
|
export { A as Alert, b as AlertProps, a as alertVariants } from './Alert-DELD9ZWe.cjs';
|
|
3
|
-
export { A as Avatar, a as AvatarProps } from './Avatar-
|
|
4
|
-
export { A as AvatarGroup, a as AvatarGroupProps } from './AvatarGroup-
|
|
3
|
+
export { A as Avatar, a as AvatarProps } from './Avatar-B8lVnLpp.cjs';
|
|
4
|
+
export { A as AvatarGroup, a as AvatarGroupProps } from './AvatarGroup-2Lmu_V2d.cjs';
|
|
5
5
|
export { A as Badge, B as BadgeProps } from './Badge-CvXzljaJ.cjs';
|
|
6
6
|
export { B as Breadcrumb, c as BreadcrumbItemProps, a as BreadcrumbProps, b as breadcrumbVariants } from './Breadcrumb-1cB54eJk.cjs';
|
|
7
7
|
export { B as Button, a as ButtonProps, b as buttonVariants } from './Button-Bm0yKM7X.cjs';
|
|
8
8
|
export { B as ButtonGroup } from './ButtonGroup-CUxpALRo.cjs';
|
|
9
9
|
export { C as Card, a as CardProps, c as cardVariants } from './Card-BdciRqJz.cjs';
|
|
10
|
-
export { D as Drawer, f as DrawerProps, d as drawerBackdrops, a as drawerPlacements, b as drawerRadii, c as drawerSizes, e as drawerVariants } from './Drawer-
|
|
10
|
+
export { D as Drawer, f as DrawerProps, d as drawerBackdrops, a as drawerPlacements, b as drawerRadii, c as drawerSizes, e as drawerVariants } from './Drawer-DmwcvuKe.cjs';
|
|
11
11
|
export { J as Json, a as JsonProps } from './Json-Dny90Wml.cjs';
|
|
12
12
|
export { L as Label, a as LabelProps, l as labelVariants } from './Label-Bp9WZiDB.cjs';
|
|
13
13
|
export { M as Menu, b as MenuItem, a as MenuProps, c as MenuSection } from './Menu-DYi8oagz.cjs';
|
|
14
14
|
export { M as Modal, a as ModalProps, m as modalVariants } from './Modal-DI5ZdS_3.cjs';
|
|
15
15
|
export { _ as Popover, P as PopoverProps } from './Popover-DajWpbPN.cjs';
|
|
16
|
+
export { C as CircularProgress, b as CircularProgressProps, d as CircularProgressStyleVariant, V as CircularProgressVariantProps, a as circularProgressStyleVariantOptions, c as circularProgressVariants } from './CircularProgress-DHrnT6wz.cjs';
|
|
16
17
|
export { T as Table, c as TableColumnProps, a as TableProps, b as TableRowProps, V as VariantProps, t as tableVariants } from './Table-D19f5nrd.cjs';
|
|
17
18
|
export { b as TabProps, T as Tabs, a as TabsProps, t as tabsVariants } from './Tabs-xUYwXMX9.cjs';
|
|
18
19
|
import * as tailwind_variants from 'tailwind-variants';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
export { A as Accordion, c as AccordionItemProps, b as AccordionProps, a as accordionVariants } from './Accordion-rA715N0Z.js';
|
|
2
2
|
export { A as Alert, b as AlertProps, a as alertVariants } from './Alert-DELD9ZWe.js';
|
|
3
|
-
export { A as Avatar, a as AvatarProps } from './Avatar-
|
|
4
|
-
export { A as AvatarGroup, a as AvatarGroupProps } from './AvatarGroup-
|
|
3
|
+
export { A as Avatar, a as AvatarProps } from './Avatar-B8lVnLpp.js';
|
|
4
|
+
export { A as AvatarGroup, a as AvatarGroupProps } from './AvatarGroup-BMKOfE_a.js';
|
|
5
5
|
export { A as Badge, B as BadgeProps } from './Badge-CvXzljaJ.js';
|
|
6
6
|
export { B as Breadcrumb, c as BreadcrumbItemProps, a as BreadcrumbProps, b as breadcrumbVariants } from './Breadcrumb-1cB54eJk.js';
|
|
7
7
|
export { B as Button, a as ButtonProps, b as buttonVariants } from './Button-Bm0yKM7X.js';
|
|
8
8
|
export { B as ButtonGroup } from './ButtonGroup-CUxpALRo.js';
|
|
9
9
|
export { C as Card, a as CardProps, c as cardVariants } from './Card-BdciRqJz.js';
|
|
10
|
-
export { D as Drawer, f as DrawerProps, d as drawerBackdrops, a as drawerPlacements, b as drawerRadii, c as drawerSizes, e as drawerVariants } from './Drawer-
|
|
10
|
+
export { D as Drawer, f as DrawerProps, d as drawerBackdrops, a as drawerPlacements, b as drawerRadii, c as drawerSizes, e as drawerVariants } from './Drawer-DmwcvuKe.js';
|
|
11
11
|
export { J as Json, a as JsonProps } from './Json-Dny90Wml.js';
|
|
12
12
|
export { L as Label, a as LabelProps, l as labelVariants } from './Label-Bp9WZiDB.js';
|
|
13
13
|
export { M as Menu, b as MenuItem, a as MenuProps, c as MenuSection } from './Menu-DYi8oagz.js';
|
|
14
14
|
export { M as Modal, a as ModalProps, m as modalVariants } from './Modal-DI5ZdS_3.js';
|
|
15
15
|
export { _ as Popover, P as PopoverProps } from './Popover-DcZ3qt-u.js';
|
|
16
|
+
export { C as CircularProgress, b as CircularProgressProps, d as CircularProgressStyleVariant, V as CircularProgressVariantProps, a as circularProgressStyleVariantOptions, c as circularProgressVariants } from './CircularProgress-DHrnT6wz.js';
|
|
16
17
|
export { T as Table, c as TableColumnProps, a as TableProps, b as TableRowProps, V as VariantProps, t as tableVariants } from './Table-D19f5nrd.js';
|
|
17
18
|
export { b as TabProps, T as Tabs, a as TabsProps, t as tabsVariants } from './Tabs-xUYwXMX9.js';
|
|
18
19
|
import * as tailwind_variants from 'tailwind-variants';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Popover_default
|
|
3
|
+
} from "./chunk-5TOE75VE.js";
|
|
4
|
+
import "./chunk-EQVC4PJE.js";
|
|
1
5
|
import {
|
|
2
6
|
Table_default,
|
|
3
7
|
tableVariants
|
|
@@ -20,6 +24,11 @@ import {
|
|
|
20
24
|
Card_default,
|
|
21
25
|
cardVariants
|
|
22
26
|
} from "./chunk-ABKT5UKM.js";
|
|
27
|
+
import {
|
|
28
|
+
CircularProgress_default,
|
|
29
|
+
circularProgressStyleVariantOptions,
|
|
30
|
+
circularProgressVariants
|
|
31
|
+
} from "./chunk-M3PL6G7W.js";
|
|
23
32
|
import {
|
|
24
33
|
Drawer_default,
|
|
25
34
|
drawerBackdrops,
|
|
@@ -42,10 +51,6 @@ import {
|
|
|
42
51
|
Modal_default,
|
|
43
52
|
modalVariants
|
|
44
53
|
} from "./chunk-RW4WTSLJ.js";
|
|
45
|
-
import {
|
|
46
|
-
Popover_default
|
|
47
|
-
} from "./chunk-5TOE75VE.js";
|
|
48
|
-
import "./chunk-EQVC4PJE.js";
|
|
49
54
|
import {
|
|
50
55
|
Accordion_default,
|
|
51
56
|
accordionVariants
|
|
@@ -242,6 +247,7 @@ export {
|
|
|
242
247
|
Button_default as Button,
|
|
243
248
|
ButtonGroup_default as ButtonGroup,
|
|
244
249
|
Card_default as Card,
|
|
250
|
+
CircularProgress_default as CircularProgress,
|
|
245
251
|
Drawer_default as Drawer,
|
|
246
252
|
Json_default as Json,
|
|
247
253
|
Label_default as Label,
|
|
@@ -258,6 +264,8 @@ export {
|
|
|
258
264
|
breadcrumbVariants,
|
|
259
265
|
buttonVariants,
|
|
260
266
|
cardVariants,
|
|
267
|
+
circularProgressStyleVariantOptions,
|
|
268
|
+
circularProgressVariants,
|
|
261
269
|
drawerBackdrops,
|
|
262
270
|
drawerPlacements,
|
|
263
271
|
drawerRadii,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Toast/addToast.tsx","../src/Toast/ToastProvider.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ToastProps as HeroToastProps } from '@heroui/toast';\nimport type { ReactNode } from 'react';\n\nimport { toast as heroToastVariants } from '@heroui/theme';\nimport { addToast as heroAddToast } from '@heroui/toast';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nexport const toastVariants = tv({\n slots: {\n base: '',\n title: '',\n description: '',\n icon: '',\n loadingIcon: '',\n content: '',\n motionDiv: '',\n progressTrack: '',\n progressIndicator: '',\n closeButton: '',\n closeIcon: '',\n },\n variants: {\n // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/toast.ts\n color: {\n info: {},\n ...heroToastVariants.variants.color,\n },\n variant: {\n ...heroToastVariants.variants.variant,\n },\n },\n compoundVariants: [\n ...heroToastVariants.compoundVariants,\n {\n variant: 'solid',\n color: 'info',\n className: {\n base: 'bg-info text-info-foreground',\n title: 'text-info-foreground',\n description: 'text-info-foreground',\n icon: 'text-info-foreground',\n closeIcon: 'border-info-400 bg-info-100',\n closeButton: 'text-info-400 hover:text-info-600',\n progressIndicator: 'bg-info-400',\n },\n },\n {\n color: 'info',\n variant: 'flat',\n className: {\n base: 'dark:bg-info-50/50 bg-info-50 text-info-600',\n title: 'text-info-600',\n description: 'text-info-500',\n icon: 'text-info-600',\n closeIcon: 'border-info-400 bg-info-100',\n closeButton: 'text-info-400 hover:text-info-600',\n progressIndicator: 'bg-info-400',\n },\n },\n\n {\n color: 'info',\n variant: 'bordered',\n className: {\n base: 'border-small border-info text-info-600',\n title: 'text-info-600',\n description: 'text-info-500',\n icon: 'text-info-600',\n closeIcon: 'border-info-400 bg-info-100',\n closeButton: 'text-info-400 hover:text-info-600',\n progressIndicator: 'bg-info-400',\n },\n },\n ],\n});\n\nexport type AddToastVariantProps = TVProps<typeof toastVariants>;\ntype ClassName = TVClassName<typeof toastVariants>;\n\nexport interface ToastProps extends AddToastVariantProps {\n /** CSS class name */\n className?: ClassName;\n /** Icon displayed at the end of the Alert */\n closeIcon?: ReactNode;\n /** Color of the alert */\n color?: AddToastVariantProps['color'];\n /** Content displayed inside the Alert */\n description?: ReactNode;\n /** Content displayed at the end of the Alert */\n endContent?: ReactNode;\n /** Icon displayed at the start of the Alert */\n icon?: ReactNode;\n /** Icon or animation displayed until promise is resolved */\n loadingIcon?: ReactNode;\n /** Callback function called when the toast is closed */\n onClose?: () => void;\n /** Promise based on which the notification will be styled */\n promise?: Promise<void>;\n /** Whether the toast should show a progress bar */\n shouldShowTimeoutProgress?: boolean;\n /** Whether the toast should show a close button */\n showCloseButton?: boolean;\n /** Whether the toast should show an icon */\n showIcon?: boolean;\n /** Time the toast is displayed */\n timeout?: number;\n /** Content displayed at the top of the toast */\n title?: ReactNode;\n /** Variant of the toast */\n variant?: AddToastVariantProps['variant'];\n}\n\n/**\n * addToast function based on [HeroUI Toast](https://www.heroui.com//docs/components/toast)\n */\nexport const addToast = ({\n className = undefined,\n closeIcon = undefined,\n color = 'default',\n description = undefined,\n endContent = undefined,\n icon = undefined,\n loadingIcon = undefined,\n onClose = undefined,\n promise = undefined,\n shouldShowTimeoutProgress = false,\n showCloseButton = true,\n showIcon = true,\n timeout = 5000,\n title = undefined,\n variant = 'bordered',\n}: ToastProps) => {\n const variants = toastVariants({\n color,\n variant,\n });\n const isHeroUIColor = Object.keys(heroToastVariants.variants.color).includes(\n color,\n );\n const classNames = variantsToClassNames(variants, className, 'base');\n heroAddToast({\n classNames,\n closeIcon,\n color: isHeroUIColor ? (color as HeroToastProps['color']) : undefined,\n // TODO: 'data-testid': testId,\n // https://github.com/heroui-inc/heroui/issues/5033\n // @ts-expect-error bug in hero-toast: description should be ReactNode\n description,\n endContent,\n hideCloseButton: !showCloseButton,\n hideIcon: !showIcon,\n icon,\n loadingIcon,\n onClose,\n promise,\n shouldShowTimeoutProgress,\n timeout,\n title,\n variant,\n });\n};\n\nexport default addToast;\n","import type { ToastProps as HeroToastProps } from '@heroui/toast';\nimport type { ToastProps } from './addToast';\n\nimport { toast as heroToastVariants } from '@heroui/theme';\nimport { ToastProvider as HeroToastProvider } from '@heroui/toast';\n\nimport { variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { toastVariants } from './addToast';\n\nexport type ToastProviderToastProps = Omit<\n ToastProps,\n 'description' | 'endContent' | 'title'\n>;\n\nexport interface ToastProviderProps {\n disableAnimation?: boolean;\n maxVisibleToasts?: number;\n placement?:\n | 'bottom-right'\n | 'bottom-left'\n | 'bottom-center'\n | 'top-right'\n | 'top-left'\n | 'top-center';\n\n toastProps?: ToastProviderToastProps;\n toastOffset?: number;\n regionProps?: { classNames?: Record<'base', string> };\n}\n\n/**\n * ToastProvider component based on [HeroUI Toast](https://www.heroui.com//docs/components/toast)\n */\nconst ToastProvider = ({\n disableAnimation = false,\n maxVisibleToasts = 5,\n placement = 'top-center',\n toastProps = undefined,\n toastOffset = 26,\n regionProps = undefined,\n}: ToastProviderProps) => {\n const variants = toastVariants({\n color: toastProps?.color,\n variant: toastProps?.variant,\n });\n const isHeroUIColor = Object.keys(heroToastVariants.variants.color).includes(\n toastProps?.color || '',\n );\n const classNames = variantsToClassNames(\n variants,\n toastProps?.className,\n 'base',\n );\n return (\n <HeroToastProvider\n disableAnimation={disableAnimation}\n maxVisibleToasts={maxVisibleToasts}\n placement={placement}\n regionProps={regionProps}\n toastOffset={toastOffset}\n toastProps={{\n ...toastProps,\n classNames,\n color: isHeroUIColor\n ? (toastProps?.color as HeroToastProps['color'])\n : undefined,\n }}\n />\n );\n};\n\nexport default ToastProvider;\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/Toast/addToast.tsx","../src/Toast/ToastProvider.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ToastProps as HeroToastProps } from '@heroui/toast';\nimport type { ReactNode } from 'react';\n\nimport { toast as heroToastVariants } from '@heroui/theme';\nimport { addToast as heroAddToast } from '@heroui/toast';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nexport const toastVariants = tv({\n slots: {\n base: '',\n title: '',\n description: '',\n icon: '',\n loadingIcon: '',\n content: '',\n motionDiv: '',\n progressTrack: '',\n progressIndicator: '',\n closeButton: '',\n closeIcon: '',\n },\n variants: {\n // see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/toast.ts\n color: {\n info: {},\n ...heroToastVariants.variants.color,\n },\n variant: {\n ...heroToastVariants.variants.variant,\n },\n },\n compoundVariants: [\n ...heroToastVariants.compoundVariants,\n {\n variant: 'solid',\n color: 'info',\n className: {\n base: 'bg-info text-info-foreground',\n title: 'text-info-foreground',\n description: 'text-info-foreground',\n icon: 'text-info-foreground',\n closeIcon: 'border-info-400 bg-info-100',\n closeButton: 'text-info-400 hover:text-info-600',\n progressIndicator: 'bg-info-400',\n },\n },\n {\n color: 'info',\n variant: 'flat',\n className: {\n base: 'dark:bg-info-50/50 bg-info-50 text-info-600',\n title: 'text-info-600',\n description: 'text-info-500',\n icon: 'text-info-600',\n closeIcon: 'border-info-400 bg-info-100',\n closeButton: 'text-info-400 hover:text-info-600',\n progressIndicator: 'bg-info-400',\n },\n },\n\n {\n color: 'info',\n variant: 'bordered',\n className: {\n base: 'border-small border-info text-info-600',\n title: 'text-info-600',\n description: 'text-info-500',\n icon: 'text-info-600',\n closeIcon: 'border-info-400 bg-info-100',\n closeButton: 'text-info-400 hover:text-info-600',\n progressIndicator: 'bg-info-400',\n },\n },\n ],\n});\n\nexport type AddToastVariantProps = TVProps<typeof toastVariants>;\ntype ClassName = TVClassName<typeof toastVariants>;\n\nexport interface ToastProps extends AddToastVariantProps {\n /** CSS class name */\n className?: ClassName;\n /** Icon displayed at the end of the Alert */\n closeIcon?: ReactNode;\n /** Color of the alert */\n color?: AddToastVariantProps['color'];\n /** Content displayed inside the Alert */\n description?: ReactNode;\n /** Content displayed at the end of the Alert */\n endContent?: ReactNode;\n /** Icon displayed at the start of the Alert */\n icon?: ReactNode;\n /** Icon or animation displayed until promise is resolved */\n loadingIcon?: ReactNode;\n /** Callback function called when the toast is closed */\n onClose?: () => void;\n /** Promise based on which the notification will be styled */\n promise?: Promise<void>;\n /** Whether the toast should show a progress bar */\n shouldShowTimeoutProgress?: boolean;\n /** Whether the toast should show a close button */\n showCloseButton?: boolean;\n /** Whether the toast should show an icon */\n showIcon?: boolean;\n /** Time the toast is displayed */\n timeout?: number;\n /** Content displayed at the top of the toast */\n title?: ReactNode;\n /** Variant of the toast */\n variant?: AddToastVariantProps['variant'];\n}\n\n/**\n * addToast function based on [HeroUI Toast](https://www.heroui.com//docs/components/toast)\n */\nexport const addToast = ({\n className = undefined,\n closeIcon = undefined,\n color = 'default',\n description = undefined,\n endContent = undefined,\n icon = undefined,\n loadingIcon = undefined,\n onClose = undefined,\n promise = undefined,\n shouldShowTimeoutProgress = false,\n showCloseButton = true,\n showIcon = true,\n timeout = 5000,\n title = undefined,\n variant = 'bordered',\n}: ToastProps) => {\n const variants = toastVariants({\n color,\n variant,\n });\n const isHeroUIColor = Object.keys(heroToastVariants.variants.color).includes(\n color,\n );\n const classNames = variantsToClassNames(variants, className, 'base');\n heroAddToast({\n classNames,\n closeIcon,\n color: isHeroUIColor ? (color as HeroToastProps['color']) : undefined,\n // TODO: 'data-testid': testId,\n // https://github.com/heroui-inc/heroui/issues/5033\n // @ts-expect-error bug in hero-toast: description should be ReactNode\n description,\n endContent,\n hideCloseButton: !showCloseButton,\n hideIcon: !showIcon,\n icon,\n loadingIcon,\n onClose,\n promise,\n shouldShowTimeoutProgress,\n timeout,\n title,\n variant,\n });\n};\n\nexport default addToast;\n","import type { ToastProps as HeroToastProps } from '@heroui/toast';\nimport type { ToastProps } from './addToast';\n\nimport { toast as heroToastVariants } from '@heroui/theme';\nimport { ToastProvider as HeroToastProvider } from '@heroui/toast';\n\nimport { variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { toastVariants } from './addToast';\n\nexport type ToastProviderToastProps = Omit<\n ToastProps,\n 'description' | 'endContent' | 'title'\n>;\n\nexport interface ToastProviderProps {\n disableAnimation?: boolean;\n maxVisibleToasts?: number;\n placement?:\n | 'bottom-right'\n | 'bottom-left'\n | 'bottom-center'\n | 'top-right'\n | 'top-left'\n | 'top-center';\n\n toastProps?: ToastProviderToastProps;\n toastOffset?: number;\n regionProps?: { classNames?: Record<'base', string> };\n}\n\n/**\n * ToastProvider component based on [HeroUI Toast](https://www.heroui.com//docs/components/toast)\n */\nconst ToastProvider = ({\n disableAnimation = false,\n maxVisibleToasts = 5,\n placement = 'top-center',\n toastProps = undefined,\n toastOffset = 26,\n regionProps = undefined,\n}: ToastProviderProps) => {\n const variants = toastVariants({\n color: toastProps?.color,\n variant: toastProps?.variant,\n });\n const isHeroUIColor = Object.keys(heroToastVariants.variants.color).includes(\n toastProps?.color || '',\n );\n const classNames = variantsToClassNames(\n variants,\n toastProps?.className,\n 'base',\n );\n return (\n <HeroToastProvider\n disableAnimation={disableAnimation}\n maxVisibleToasts={maxVisibleToasts}\n placement={placement}\n regionProps={regionProps}\n toastOffset={toastOffset}\n toastProps={{\n ...toastProps,\n classNames,\n color: isHeroUIColor\n ? (toastProps?.color as HeroToastProps['color'])\n : undefined,\n }}\n />\n );\n};\n\nexport default ToastProvider;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,SAAS,SAAS,yBAAyB;AAC3C,SAAS,YAAY,oBAAoB;AAEzC,SAAS,IAAI,4BAA4B;AAElC,IAAM,gBAAgB,GAAG;AAAA,EAC9B,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,MACN;AAAA;AAAA,EACF;AAEJ;AAEA,IAAO,wBAAQ;","names":["heroToastVariants","variantsToClassNames","heroToastVariants","variantsToClassNames"]}
|
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.40.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.cjs",
|
|
8
8
|
"module": "./dist/index.js",
|
|
@@ -59,6 +59,11 @@
|
|
|
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
|
+
},
|
|
62
67
|
"./Drawer": {
|
|
63
68
|
"types": "./dist/Drawer/index.d.ts",
|
|
64
69
|
"import": "./dist/Drawer/index.js",
|
|
@@ -170,7 +175,7 @@
|
|
|
170
175
|
"@heroui/tabs": "2.2.13",
|
|
171
176
|
"@heroui/toast": "2.0.6",
|
|
172
177
|
"@heroui/tooltip": "2.2.13",
|
|
173
|
-
"framer-motion": "12.
|
|
178
|
+
"framer-motion": "12.7.2",
|
|
174
179
|
"next-themes": "0.4.6",
|
|
175
180
|
"react-icons": "5.5.0",
|
|
176
181
|
"@fuf-stack/pixel-utils": "0.5.2"
|
|
@@ -182,9 +187,9 @@
|
|
|
182
187
|
"@uiw/react-json-view": "2.0.0-alpha.30",
|
|
183
188
|
"react": "19.0.0",
|
|
184
189
|
"react-dom": "19.0.0",
|
|
190
|
+
"@repo/storybook-config": "0.0.1",
|
|
185
191
|
"@repo/tailwind-config": "0.0.1",
|
|
186
192
|
"@repo/vite-config": "0.0.1",
|
|
187
|
-
"@repo/storybook-config": "0.0.1",
|
|
188
193
|
"@repo/tsup-config": "0.0.1"
|
|
189
194
|
},
|
|
190
195
|
"scripts": {
|
|
@@ -8,9 +8,9 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
|
|
|
8
8
|
[key: string]: {
|
|
9
9
|
[key: string]: tailwind_variants.ClassValue | {
|
|
10
10
|
base?: tailwind_variants.ClassValue;
|
|
11
|
+
icon?: tailwind_variants.ClassValue;
|
|
11
12
|
img?: tailwind_variants.ClassValue;
|
|
12
13
|
name?: tailwind_variants.ClassValue;
|
|
13
|
-
icon?: tailwind_variants.ClassValue;
|
|
14
14
|
fallback?: tailwind_variants.ClassValue;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
@@ -18,9 +18,9 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
|
|
|
18
18
|
[x: string]: {
|
|
19
19
|
[x: string]: tailwind_variants.ClassValue | {
|
|
20
20
|
base?: tailwind_variants.ClassValue;
|
|
21
|
+
icon?: tailwind_variants.ClassValue;
|
|
21
22
|
img?: tailwind_variants.ClassValue;
|
|
22
23
|
name?: tailwind_variants.ClassValue;
|
|
23
|
-
icon?: tailwind_variants.ClassValue;
|
|
24
24
|
fallback?: tailwind_variants.ClassValue;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -34,9 +34,9 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
|
|
|
34
34
|
[key: string]: {
|
|
35
35
|
[key: string]: tailwind_variants.ClassValue | {
|
|
36
36
|
base?: tailwind_variants.ClassValue;
|
|
37
|
+
icon?: tailwind_variants.ClassValue;
|
|
37
38
|
img?: tailwind_variants.ClassValue;
|
|
38
39
|
name?: tailwind_variants.ClassValue;
|
|
39
|
-
icon?: tailwind_variants.ClassValue;
|
|
40
40
|
fallback?: tailwind_variants.ClassValue;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
@@ -44,9 +44,9 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
|
|
|
44
44
|
[key: string]: {
|
|
45
45
|
[key: string]: tailwind_variants.ClassValue | {
|
|
46
46
|
base?: tailwind_variants.ClassValue;
|
|
47
|
+
icon?: tailwind_variants.ClassValue;
|
|
47
48
|
img?: tailwind_variants.ClassValue;
|
|
48
49
|
name?: tailwind_variants.ClassValue;
|
|
49
|
-
icon?: tailwind_variants.ClassValue;
|
|
50
50
|
fallback?: tailwind_variants.ClassValue;
|
|
51
51
|
};
|
|
52
52
|
};
|
|
@@ -66,9 +66,9 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
|
|
|
66
66
|
[key: string]: {
|
|
67
67
|
[key: string]: tailwind_variants.ClassValue | {
|
|
68
68
|
base?: tailwind_variants.ClassValue;
|
|
69
|
+
icon?: tailwind_variants.ClassValue;
|
|
69
70
|
img?: tailwind_variants.ClassValue;
|
|
70
71
|
name?: tailwind_variants.ClassValue;
|
|
71
|
-
icon?: tailwind_variants.ClassValue;
|
|
72
72
|
fallback?: tailwind_variants.ClassValue;
|
|
73
73
|
};
|
|
74
74
|
};
|
|
@@ -8,9 +8,9 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
|
|
|
8
8
|
[key: string]: {
|
|
9
9
|
[key: string]: tailwind_variants.ClassValue | {
|
|
10
10
|
base?: tailwind_variants.ClassValue;
|
|
11
|
+
icon?: tailwind_variants.ClassValue;
|
|
11
12
|
img?: tailwind_variants.ClassValue;
|
|
12
13
|
name?: tailwind_variants.ClassValue;
|
|
13
|
-
icon?: tailwind_variants.ClassValue;
|
|
14
14
|
fallback?: tailwind_variants.ClassValue;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
@@ -18,9 +18,9 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
|
|
|
18
18
|
[x: string]: {
|
|
19
19
|
[x: string]: tailwind_variants.ClassValue | {
|
|
20
20
|
base?: tailwind_variants.ClassValue;
|
|
21
|
+
icon?: tailwind_variants.ClassValue;
|
|
21
22
|
img?: tailwind_variants.ClassValue;
|
|
22
23
|
name?: tailwind_variants.ClassValue;
|
|
23
|
-
icon?: tailwind_variants.ClassValue;
|
|
24
24
|
fallback?: tailwind_variants.ClassValue;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -34,9 +34,9 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
|
|
|
34
34
|
[key: string]: {
|
|
35
35
|
[key: string]: tailwind_variants.ClassValue | {
|
|
36
36
|
base?: tailwind_variants.ClassValue;
|
|
37
|
+
icon?: tailwind_variants.ClassValue;
|
|
37
38
|
img?: tailwind_variants.ClassValue;
|
|
38
39
|
name?: tailwind_variants.ClassValue;
|
|
39
|
-
icon?: tailwind_variants.ClassValue;
|
|
40
40
|
fallback?: tailwind_variants.ClassValue;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
@@ -44,9 +44,9 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
|
|
|
44
44
|
[key: string]: {
|
|
45
45
|
[key: string]: tailwind_variants.ClassValue | {
|
|
46
46
|
base?: tailwind_variants.ClassValue;
|
|
47
|
+
icon?: tailwind_variants.ClassValue;
|
|
47
48
|
img?: tailwind_variants.ClassValue;
|
|
48
49
|
name?: tailwind_variants.ClassValue;
|
|
49
|
-
icon?: tailwind_variants.ClassValue;
|
|
50
50
|
fallback?: tailwind_variants.ClassValue;
|
|
51
51
|
};
|
|
52
52
|
};
|
|
@@ -66,9 +66,9 @@ declare const avatarVariants: tailwind_variants.TVReturnType<{
|
|
|
66
66
|
[key: string]: {
|
|
67
67
|
[key: string]: tailwind_variants.ClassValue | {
|
|
68
68
|
base?: tailwind_variants.ClassValue;
|
|
69
|
+
icon?: tailwind_variants.ClassValue;
|
|
69
70
|
img?: tailwind_variants.ClassValue;
|
|
70
71
|
name?: tailwind_variants.ClassValue;
|
|
71
|
-
icon?: tailwind_variants.ClassValue;
|
|
72
72
|
fallback?: tailwind_variants.ClassValue;
|
|
73
73
|
};
|
|
74
74
|
};
|
|
@@ -9,11 +9,11 @@ declare const drawerVariants: tailwind_variants.TVReturnType<{
|
|
|
9
9
|
[key: string]: {
|
|
10
10
|
[key: string]: tailwind_variants.ClassValue | {
|
|
11
11
|
base?: tailwind_variants.ClassValue;
|
|
12
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
12
13
|
wrapper?: tailwind_variants.ClassValue;
|
|
13
14
|
body?: tailwind_variants.ClassValue;
|
|
14
15
|
footer?: tailwind_variants.ClassValue;
|
|
15
16
|
header?: tailwind_variants.ClassValue;
|
|
16
|
-
closeButton?: tailwind_variants.ClassValue;
|
|
17
17
|
backdrop?: tailwind_variants.ClassValue;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
@@ -21,11 +21,11 @@ declare const drawerVariants: tailwind_variants.TVReturnType<{
|
|
|
21
21
|
[x: string]: {
|
|
22
22
|
[x: string]: tailwind_variants.ClassValue | {
|
|
23
23
|
base?: tailwind_variants.ClassValue;
|
|
24
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
24
25
|
wrapper?: tailwind_variants.ClassValue;
|
|
25
26
|
body?: tailwind_variants.ClassValue;
|
|
26
27
|
footer?: tailwind_variants.ClassValue;
|
|
27
28
|
header?: tailwind_variants.ClassValue;
|
|
28
|
-
closeButton?: tailwind_variants.ClassValue;
|
|
29
29
|
backdrop?: tailwind_variants.ClassValue;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
@@ -41,11 +41,11 @@ declare const drawerVariants: tailwind_variants.TVReturnType<{
|
|
|
41
41
|
[key: string]: {
|
|
42
42
|
[key: string]: tailwind_variants.ClassValue | {
|
|
43
43
|
base?: tailwind_variants.ClassValue;
|
|
44
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
44
45
|
wrapper?: tailwind_variants.ClassValue;
|
|
45
46
|
body?: tailwind_variants.ClassValue;
|
|
46
47
|
footer?: tailwind_variants.ClassValue;
|
|
47
48
|
header?: tailwind_variants.ClassValue;
|
|
48
|
-
closeButton?: tailwind_variants.ClassValue;
|
|
49
49
|
backdrop?: tailwind_variants.ClassValue;
|
|
50
50
|
};
|
|
51
51
|
};
|
|
@@ -53,11 +53,11 @@ declare const drawerVariants: tailwind_variants.TVReturnType<{
|
|
|
53
53
|
[key: string]: {
|
|
54
54
|
[key: string]: tailwind_variants.ClassValue | {
|
|
55
55
|
base?: tailwind_variants.ClassValue;
|
|
56
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
56
57
|
wrapper?: tailwind_variants.ClassValue;
|
|
57
58
|
body?: tailwind_variants.ClassValue;
|
|
58
59
|
footer?: tailwind_variants.ClassValue;
|
|
59
60
|
header?: tailwind_variants.ClassValue;
|
|
60
|
-
closeButton?: tailwind_variants.ClassValue;
|
|
61
61
|
backdrop?: tailwind_variants.ClassValue;
|
|
62
62
|
};
|
|
63
63
|
};
|
|
@@ -81,11 +81,11 @@ declare const drawerVariants: tailwind_variants.TVReturnType<{
|
|
|
81
81
|
[key: string]: {
|
|
82
82
|
[key: string]: tailwind_variants.ClassValue | {
|
|
83
83
|
base?: tailwind_variants.ClassValue;
|
|
84
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
84
85
|
wrapper?: tailwind_variants.ClassValue;
|
|
85
86
|
body?: tailwind_variants.ClassValue;
|
|
86
87
|
footer?: tailwind_variants.ClassValue;
|
|
87
88
|
header?: tailwind_variants.ClassValue;
|
|
88
|
-
closeButton?: tailwind_variants.ClassValue;
|
|
89
89
|
backdrop?: tailwind_variants.ClassValue;
|
|
90
90
|
};
|
|
91
91
|
};
|
|
@@ -9,11 +9,11 @@ declare const drawerVariants: tailwind_variants.TVReturnType<{
|
|
|
9
9
|
[key: string]: {
|
|
10
10
|
[key: string]: tailwind_variants.ClassValue | {
|
|
11
11
|
base?: tailwind_variants.ClassValue;
|
|
12
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
12
13
|
wrapper?: tailwind_variants.ClassValue;
|
|
13
14
|
body?: tailwind_variants.ClassValue;
|
|
14
15
|
footer?: tailwind_variants.ClassValue;
|
|
15
16
|
header?: tailwind_variants.ClassValue;
|
|
16
|
-
closeButton?: tailwind_variants.ClassValue;
|
|
17
17
|
backdrop?: tailwind_variants.ClassValue;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
@@ -21,11 +21,11 @@ declare const drawerVariants: tailwind_variants.TVReturnType<{
|
|
|
21
21
|
[x: string]: {
|
|
22
22
|
[x: string]: tailwind_variants.ClassValue | {
|
|
23
23
|
base?: tailwind_variants.ClassValue;
|
|
24
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
24
25
|
wrapper?: tailwind_variants.ClassValue;
|
|
25
26
|
body?: tailwind_variants.ClassValue;
|
|
26
27
|
footer?: tailwind_variants.ClassValue;
|
|
27
28
|
header?: tailwind_variants.ClassValue;
|
|
28
|
-
closeButton?: tailwind_variants.ClassValue;
|
|
29
29
|
backdrop?: tailwind_variants.ClassValue;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
@@ -41,11 +41,11 @@ declare const drawerVariants: tailwind_variants.TVReturnType<{
|
|
|
41
41
|
[key: string]: {
|
|
42
42
|
[key: string]: tailwind_variants.ClassValue | {
|
|
43
43
|
base?: tailwind_variants.ClassValue;
|
|
44
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
44
45
|
wrapper?: tailwind_variants.ClassValue;
|
|
45
46
|
body?: tailwind_variants.ClassValue;
|
|
46
47
|
footer?: tailwind_variants.ClassValue;
|
|
47
48
|
header?: tailwind_variants.ClassValue;
|
|
48
|
-
closeButton?: tailwind_variants.ClassValue;
|
|
49
49
|
backdrop?: tailwind_variants.ClassValue;
|
|
50
50
|
};
|
|
51
51
|
};
|
|
@@ -53,11 +53,11 @@ declare const drawerVariants: tailwind_variants.TVReturnType<{
|
|
|
53
53
|
[key: string]: {
|
|
54
54
|
[key: string]: tailwind_variants.ClassValue | {
|
|
55
55
|
base?: tailwind_variants.ClassValue;
|
|
56
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
56
57
|
wrapper?: tailwind_variants.ClassValue;
|
|
57
58
|
body?: tailwind_variants.ClassValue;
|
|
58
59
|
footer?: tailwind_variants.ClassValue;
|
|
59
60
|
header?: tailwind_variants.ClassValue;
|
|
60
|
-
closeButton?: tailwind_variants.ClassValue;
|
|
61
61
|
backdrop?: tailwind_variants.ClassValue;
|
|
62
62
|
};
|
|
63
63
|
};
|
|
@@ -81,11 +81,11 @@ declare const drawerVariants: tailwind_variants.TVReturnType<{
|
|
|
81
81
|
[key: string]: {
|
|
82
82
|
[key: string]: tailwind_variants.ClassValue | {
|
|
83
83
|
base?: tailwind_variants.ClassValue;
|
|
84
|
+
closeButton?: tailwind_variants.ClassValue;
|
|
84
85
|
wrapper?: tailwind_variants.ClassValue;
|
|
85
86
|
body?: tailwind_variants.ClassValue;
|
|
86
87
|
footer?: tailwind_variants.ClassValue;
|
|
87
88
|
header?: tailwind_variants.ClassValue;
|
|
88
|
-
closeButton?: tailwind_variants.ClassValue;
|
|
89
89
|
backdrop?: tailwind_variants.ClassValue;
|
|
90
90
|
};
|
|
91
91
|
};
|