@fuf-stack/pixels 0.33.1 → 0.33.2
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/Alert/index.cjs +3 -112
- package/dist/Alert/index.cjs.map +1 -1
- package/dist/Alert/index.d.cts +9 -229
- package/dist/Alert/index.d.ts +9 -229
- package/dist/Alert/index.js +5 -114
- package/dist/Alert/index.js.map +1 -1
- package/dist/Alert-Bz_lJ_YE.d.cts +231 -0
- package/dist/Alert-Bz_lJ_YE.d.ts +231 -0
- 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-BSEjz5ez.d.ts → AvatarGroup-BfOtqfJy.d.ts} +1 -1
- package/dist/{AvatarGroup-J1yR1Smi.d.cts → AvatarGroup-CUyQwK3t.d.cts} +1 -1
- package/dist/Drawer/index.d.cts +2 -2
- package/dist/Drawer/index.d.ts +2 -2
- package/dist/chunk-33S6NRVI.cjs +122 -0
- package/dist/chunk-33S6NRVI.cjs.map +1 -0
- package/dist/chunk-V2WKZH63.js +122 -0
- package/dist/chunk-V2WKZH63.js.map +1 -0
- package/dist/index.cjs +7 -1
- 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 +6 -0
- package/package.json +3 -3
- package/dist/{Avatar-CY2AIMsK.d.cts → Avatar-ylNJ_-dY.d.cts} +5 -5
- package/dist/{Avatar-CY2AIMsK.d.ts → Avatar-ylNJ_-dY.d.ts} +5 -5
- package/dist/{Drawer-CifCcX6s.d.cts → Drawer-BnV9qxPA.d.cts} +5 -5
- package/dist/{Drawer-CifCcX6s.d.ts → Drawer-BnV9qxPA.d.ts} +5 -5
package/dist/Alert/index.js
CHANGED
|
@@ -1,118 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
import { alert as heroAlertVariants } from "@heroui/theme";
|
|
8
|
-
import { tv, variantsToClassNames } from "@fuf-stack/pixel-utils";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
var alertVariants = tv({
|
|
11
|
-
slots: {
|
|
12
|
-
base: "",
|
|
13
|
-
title: "",
|
|
14
|
-
description: "",
|
|
15
|
-
mainWrapper: "",
|
|
16
|
-
closeButton: "",
|
|
17
|
-
iconWrapper: "",
|
|
18
|
-
alertIcon: ""
|
|
19
|
-
},
|
|
20
|
-
variants: {
|
|
21
|
-
// see: https://github.com/heroui-inc/heroui/blob/canary/packages/core/theme/src/components/alert.ts
|
|
22
|
-
color: __spreadValues({
|
|
23
|
-
info: {
|
|
24
|
-
mainWrapper: "text-inherit",
|
|
25
|
-
title: "text-inherit",
|
|
26
|
-
description: "text-inherit"
|
|
27
|
-
}
|
|
28
|
-
}, heroAlertVariants.variants.color),
|
|
29
|
-
variant: __spreadValues({}, heroAlertVariants.variants.variant)
|
|
30
|
-
},
|
|
31
|
-
compoundVariants: [
|
|
32
|
-
...heroAlertVariants.compoundVariants,
|
|
33
|
-
{
|
|
34
|
-
color: "info",
|
|
35
|
-
variant: "solid",
|
|
36
|
-
className: {
|
|
37
|
-
base: "bg-info text-info-foreground",
|
|
38
|
-
alertIcon: "text-info-foreground",
|
|
39
|
-
closeButton: "text-inherit"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
color: "info",
|
|
44
|
-
variant: "flat",
|
|
45
|
-
className: {
|
|
46
|
-
alertIcon: "fill-current",
|
|
47
|
-
base: "dark:bg-info-50/50 bg-info-50 text-info-600",
|
|
48
|
-
closeButton: "text-info-500 data-[hover]:bg-info-200",
|
|
49
|
-
iconWrapper: "border-info-100 bg-info-50 dark:bg-info-100"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
color: "info",
|
|
54
|
-
variant: "faded",
|
|
55
|
-
className: {
|
|
56
|
-
alertIcon: "fill-current",
|
|
57
|
-
base: "dark:bg-info-50/50 border-small border-info-200 bg-info-50 text-info-600 dark:border-info-100",
|
|
58
|
-
closeButton: "text-info-500 data-[hover]:bg-info-200",
|
|
59
|
-
iconWrapper: "border-info-100 bg-info-50 dark:bg-info-100"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
color: "info",
|
|
64
|
-
variant: "bordered",
|
|
65
|
-
className: {
|
|
66
|
-
alertIcon: "fill-current",
|
|
67
|
-
base: "border-small border-info text-info",
|
|
68
|
-
closeButton: "text-info-500 data-[hover]:bg-info-200",
|
|
69
|
-
iconWrapper: "bg-info-100 dark:bg-info-50"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
});
|
|
74
|
-
var Alert = ({
|
|
75
|
-
children = void 0,
|
|
76
|
-
className = void 0,
|
|
77
|
-
color = "primary",
|
|
78
|
-
endContent = void 0,
|
|
79
|
-
icon = void 0,
|
|
80
|
-
isClosable = false,
|
|
81
|
-
onClose = void 0,
|
|
82
|
-
showIcon = true,
|
|
83
|
-
testId = void 0,
|
|
84
|
-
title = void 0,
|
|
85
|
-
variant = "solid"
|
|
86
|
-
}) => {
|
|
87
|
-
const variants = alertVariants({
|
|
88
|
-
color,
|
|
89
|
-
variant
|
|
90
|
-
});
|
|
91
|
-
const isHeroUIColor = Object.keys(heroAlertVariants.variants.color).includes(
|
|
92
|
-
color
|
|
93
|
-
);
|
|
94
|
-
const classNames = variantsToClassNames(variants, className, "base");
|
|
95
|
-
return /* @__PURE__ */ jsx(
|
|
96
|
-
HeroAlert,
|
|
97
|
-
{
|
|
98
|
-
classNames,
|
|
99
|
-
color: isHeroUIColor ? color : void 0,
|
|
100
|
-
"data-testid": testId,
|
|
101
|
-
description: title ? children : void 0,
|
|
102
|
-
endContent,
|
|
103
|
-
hideIcon: !showIcon,
|
|
104
|
-
icon,
|
|
105
|
-
isClosable,
|
|
106
|
-
onClose,
|
|
107
|
-
title: title || children,
|
|
108
|
-
variant
|
|
109
|
-
}
|
|
110
|
-
);
|
|
111
|
-
};
|
|
112
|
-
var Alert_default = Alert;
|
|
113
|
-
|
|
114
|
-
// src/Alert/index.ts
|
|
115
|
-
var Alert_default2 = Alert_default;
|
|
2
|
+
Alert_default,
|
|
3
|
+
Alert_default2,
|
|
4
|
+
alertVariants
|
|
5
|
+
} from "../chunk-V2WKZH63.js";
|
|
6
|
+
import "../chunk-J7N2552D.js";
|
|
116
7
|
export {
|
|
117
8
|
Alert_default as Alert,
|
|
118
9
|
alertVariants,
|
package/dist/Alert/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,231 @@
|
|
|
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 alertVariants: tailwind_variants.TVReturnType<{
|
|
8
|
+
color: {
|
|
9
|
+
default: {};
|
|
10
|
+
primary: {};
|
|
11
|
+
secondary: {};
|
|
12
|
+
success: {};
|
|
13
|
+
warning: {};
|
|
14
|
+
danger: {};
|
|
15
|
+
info: {
|
|
16
|
+
mainWrapper: string;
|
|
17
|
+
title: string;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
variant: {
|
|
22
|
+
solid: {};
|
|
23
|
+
flat: {};
|
|
24
|
+
faded: {
|
|
25
|
+
base: string;
|
|
26
|
+
};
|
|
27
|
+
bordered: {
|
|
28
|
+
base: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
base: string;
|
|
33
|
+
title: string;
|
|
34
|
+
description: string;
|
|
35
|
+
mainWrapper: string;
|
|
36
|
+
closeButton: string;
|
|
37
|
+
iconWrapper: string;
|
|
38
|
+
alertIcon: string;
|
|
39
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
40
|
+
color: {
|
|
41
|
+
default: {};
|
|
42
|
+
primary: {};
|
|
43
|
+
secondary: {};
|
|
44
|
+
success: {};
|
|
45
|
+
warning: {};
|
|
46
|
+
danger: {};
|
|
47
|
+
info: {
|
|
48
|
+
mainWrapper: string;
|
|
49
|
+
title: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
variant: {
|
|
54
|
+
solid: {};
|
|
55
|
+
flat: {};
|
|
56
|
+
faded: {
|
|
57
|
+
base: string;
|
|
58
|
+
};
|
|
59
|
+
bordered: {
|
|
60
|
+
base: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}, {
|
|
64
|
+
color: {
|
|
65
|
+
default: {};
|
|
66
|
+
primary: {};
|
|
67
|
+
secondary: {};
|
|
68
|
+
success: {};
|
|
69
|
+
warning: {};
|
|
70
|
+
danger: {};
|
|
71
|
+
info: {
|
|
72
|
+
mainWrapper: string;
|
|
73
|
+
title: string;
|
|
74
|
+
description: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
variant: {
|
|
78
|
+
solid: {};
|
|
79
|
+
flat: {};
|
|
80
|
+
faded: {
|
|
81
|
+
base: string;
|
|
82
|
+
};
|
|
83
|
+
bordered: {
|
|
84
|
+
base: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}>, {
|
|
88
|
+
color: {
|
|
89
|
+
default: {};
|
|
90
|
+
primary: {};
|
|
91
|
+
secondary: {};
|
|
92
|
+
success: {};
|
|
93
|
+
warning: {};
|
|
94
|
+
danger: {};
|
|
95
|
+
info: {
|
|
96
|
+
mainWrapper: string;
|
|
97
|
+
title: string;
|
|
98
|
+
description: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
variant: {
|
|
102
|
+
solid: {};
|
|
103
|
+
flat: {};
|
|
104
|
+
faded: {
|
|
105
|
+
base: string;
|
|
106
|
+
};
|
|
107
|
+
bordered: {
|
|
108
|
+
base: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
}, {
|
|
112
|
+
base: string;
|
|
113
|
+
title: string;
|
|
114
|
+
description: string;
|
|
115
|
+
mainWrapper: string;
|
|
116
|
+
closeButton: string;
|
|
117
|
+
iconWrapper: string;
|
|
118
|
+
alertIcon: string;
|
|
119
|
+
}, tailwind_variants.TVReturnType<{
|
|
120
|
+
color: {
|
|
121
|
+
default: {};
|
|
122
|
+
primary: {};
|
|
123
|
+
secondary: {};
|
|
124
|
+
success: {};
|
|
125
|
+
warning: {};
|
|
126
|
+
danger: {};
|
|
127
|
+
info: {
|
|
128
|
+
mainWrapper: string;
|
|
129
|
+
title: string;
|
|
130
|
+
description: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
variant: {
|
|
134
|
+
solid: {};
|
|
135
|
+
flat: {};
|
|
136
|
+
faded: {
|
|
137
|
+
base: string;
|
|
138
|
+
};
|
|
139
|
+
bordered: {
|
|
140
|
+
base: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
}, {
|
|
144
|
+
base: string;
|
|
145
|
+
title: string;
|
|
146
|
+
description: string;
|
|
147
|
+
mainWrapper: string;
|
|
148
|
+
closeButton: string;
|
|
149
|
+
iconWrapper: string;
|
|
150
|
+
alertIcon: string;
|
|
151
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
152
|
+
color: {
|
|
153
|
+
default: {};
|
|
154
|
+
primary: {};
|
|
155
|
+
secondary: {};
|
|
156
|
+
success: {};
|
|
157
|
+
warning: {};
|
|
158
|
+
danger: {};
|
|
159
|
+
info: {
|
|
160
|
+
mainWrapper: string;
|
|
161
|
+
title: string;
|
|
162
|
+
description: string;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
variant: {
|
|
166
|
+
solid: {};
|
|
167
|
+
flat: {};
|
|
168
|
+
faded: {
|
|
169
|
+
base: string;
|
|
170
|
+
};
|
|
171
|
+
bordered: {
|
|
172
|
+
base: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
}, {
|
|
176
|
+
color: {
|
|
177
|
+
default: {};
|
|
178
|
+
primary: {};
|
|
179
|
+
secondary: {};
|
|
180
|
+
success: {};
|
|
181
|
+
warning: {};
|
|
182
|
+
danger: {};
|
|
183
|
+
info: {
|
|
184
|
+
mainWrapper: string;
|
|
185
|
+
title: string;
|
|
186
|
+
description: string;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
variant: {
|
|
190
|
+
solid: {};
|
|
191
|
+
flat: {};
|
|
192
|
+
faded: {
|
|
193
|
+
base: string;
|
|
194
|
+
};
|
|
195
|
+
bordered: {
|
|
196
|
+
base: string;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
}>, unknown, unknown, undefined>>;
|
|
200
|
+
type VariantProps = TVProps<typeof alertVariants>;
|
|
201
|
+
type ClassName = TVClassName<typeof alertVariants>;
|
|
202
|
+
interface AlertProps extends VariantProps {
|
|
203
|
+
/** Content displayed inside the Alert if no description is given! */
|
|
204
|
+
children?: ReactNode;
|
|
205
|
+
/** CSS class name */
|
|
206
|
+
className?: ClassName;
|
|
207
|
+
/** Color scheme of the Alert */
|
|
208
|
+
color?: VariantProps['color'];
|
|
209
|
+
/** Content displayed at the end of the Alert */
|
|
210
|
+
endContent?: ReactNode;
|
|
211
|
+
/** Icon displayed at the start of the Alert */
|
|
212
|
+
icon?: ReactNode;
|
|
213
|
+
/** Whether the Alert can be closed */
|
|
214
|
+
isClosable?: boolean;
|
|
215
|
+
/** Callback fired when the close button is clicked */
|
|
216
|
+
onClose?: () => void | undefined;
|
|
217
|
+
/** Whether to show the icon at the start */
|
|
218
|
+
showIcon?: boolean;
|
|
219
|
+
/** HTML data-testid attribute used in e2e tests */
|
|
220
|
+
testId?: string;
|
|
221
|
+
/** Title displayed in the Alert above the content */
|
|
222
|
+
title?: ReactNode;
|
|
223
|
+
/** Style variant of the Alert */
|
|
224
|
+
variant?: VariantProps['variant'];
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Alert component based on [HeroUI Alert](https://www.heroui.com//docs/components/alert)
|
|
228
|
+
*/
|
|
229
|
+
declare const Alert: ({ children, className, color, endContent, icon, isClosable, onClose, showIcon, testId, title, variant, }: AlertProps) => react_jsx_runtime.JSX.Element;
|
|
230
|
+
|
|
231
|
+
export { Alert as A, alertVariants as a, type AlertProps as b };
|
|
@@ -0,0 +1,231 @@
|
|
|
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 alertVariants: tailwind_variants.TVReturnType<{
|
|
8
|
+
color: {
|
|
9
|
+
default: {};
|
|
10
|
+
primary: {};
|
|
11
|
+
secondary: {};
|
|
12
|
+
success: {};
|
|
13
|
+
warning: {};
|
|
14
|
+
danger: {};
|
|
15
|
+
info: {
|
|
16
|
+
mainWrapper: string;
|
|
17
|
+
title: string;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
variant: {
|
|
22
|
+
solid: {};
|
|
23
|
+
flat: {};
|
|
24
|
+
faded: {
|
|
25
|
+
base: string;
|
|
26
|
+
};
|
|
27
|
+
bordered: {
|
|
28
|
+
base: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
base: string;
|
|
33
|
+
title: string;
|
|
34
|
+
description: string;
|
|
35
|
+
mainWrapper: string;
|
|
36
|
+
closeButton: string;
|
|
37
|
+
iconWrapper: string;
|
|
38
|
+
alertIcon: string;
|
|
39
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
40
|
+
color: {
|
|
41
|
+
default: {};
|
|
42
|
+
primary: {};
|
|
43
|
+
secondary: {};
|
|
44
|
+
success: {};
|
|
45
|
+
warning: {};
|
|
46
|
+
danger: {};
|
|
47
|
+
info: {
|
|
48
|
+
mainWrapper: string;
|
|
49
|
+
title: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
variant: {
|
|
54
|
+
solid: {};
|
|
55
|
+
flat: {};
|
|
56
|
+
faded: {
|
|
57
|
+
base: string;
|
|
58
|
+
};
|
|
59
|
+
bordered: {
|
|
60
|
+
base: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}, {
|
|
64
|
+
color: {
|
|
65
|
+
default: {};
|
|
66
|
+
primary: {};
|
|
67
|
+
secondary: {};
|
|
68
|
+
success: {};
|
|
69
|
+
warning: {};
|
|
70
|
+
danger: {};
|
|
71
|
+
info: {
|
|
72
|
+
mainWrapper: string;
|
|
73
|
+
title: string;
|
|
74
|
+
description: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
variant: {
|
|
78
|
+
solid: {};
|
|
79
|
+
flat: {};
|
|
80
|
+
faded: {
|
|
81
|
+
base: string;
|
|
82
|
+
};
|
|
83
|
+
bordered: {
|
|
84
|
+
base: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}>, {
|
|
88
|
+
color: {
|
|
89
|
+
default: {};
|
|
90
|
+
primary: {};
|
|
91
|
+
secondary: {};
|
|
92
|
+
success: {};
|
|
93
|
+
warning: {};
|
|
94
|
+
danger: {};
|
|
95
|
+
info: {
|
|
96
|
+
mainWrapper: string;
|
|
97
|
+
title: string;
|
|
98
|
+
description: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
variant: {
|
|
102
|
+
solid: {};
|
|
103
|
+
flat: {};
|
|
104
|
+
faded: {
|
|
105
|
+
base: string;
|
|
106
|
+
};
|
|
107
|
+
bordered: {
|
|
108
|
+
base: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
}, {
|
|
112
|
+
base: string;
|
|
113
|
+
title: string;
|
|
114
|
+
description: string;
|
|
115
|
+
mainWrapper: string;
|
|
116
|
+
closeButton: string;
|
|
117
|
+
iconWrapper: string;
|
|
118
|
+
alertIcon: string;
|
|
119
|
+
}, tailwind_variants.TVReturnType<{
|
|
120
|
+
color: {
|
|
121
|
+
default: {};
|
|
122
|
+
primary: {};
|
|
123
|
+
secondary: {};
|
|
124
|
+
success: {};
|
|
125
|
+
warning: {};
|
|
126
|
+
danger: {};
|
|
127
|
+
info: {
|
|
128
|
+
mainWrapper: string;
|
|
129
|
+
title: string;
|
|
130
|
+
description: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
variant: {
|
|
134
|
+
solid: {};
|
|
135
|
+
flat: {};
|
|
136
|
+
faded: {
|
|
137
|
+
base: string;
|
|
138
|
+
};
|
|
139
|
+
bordered: {
|
|
140
|
+
base: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
}, {
|
|
144
|
+
base: string;
|
|
145
|
+
title: string;
|
|
146
|
+
description: string;
|
|
147
|
+
mainWrapper: string;
|
|
148
|
+
closeButton: string;
|
|
149
|
+
iconWrapper: string;
|
|
150
|
+
alertIcon: string;
|
|
151
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
152
|
+
color: {
|
|
153
|
+
default: {};
|
|
154
|
+
primary: {};
|
|
155
|
+
secondary: {};
|
|
156
|
+
success: {};
|
|
157
|
+
warning: {};
|
|
158
|
+
danger: {};
|
|
159
|
+
info: {
|
|
160
|
+
mainWrapper: string;
|
|
161
|
+
title: string;
|
|
162
|
+
description: string;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
variant: {
|
|
166
|
+
solid: {};
|
|
167
|
+
flat: {};
|
|
168
|
+
faded: {
|
|
169
|
+
base: string;
|
|
170
|
+
};
|
|
171
|
+
bordered: {
|
|
172
|
+
base: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
}, {
|
|
176
|
+
color: {
|
|
177
|
+
default: {};
|
|
178
|
+
primary: {};
|
|
179
|
+
secondary: {};
|
|
180
|
+
success: {};
|
|
181
|
+
warning: {};
|
|
182
|
+
danger: {};
|
|
183
|
+
info: {
|
|
184
|
+
mainWrapper: string;
|
|
185
|
+
title: string;
|
|
186
|
+
description: string;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
variant: {
|
|
190
|
+
solid: {};
|
|
191
|
+
flat: {};
|
|
192
|
+
faded: {
|
|
193
|
+
base: string;
|
|
194
|
+
};
|
|
195
|
+
bordered: {
|
|
196
|
+
base: string;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
}>, unknown, unknown, undefined>>;
|
|
200
|
+
type VariantProps = TVProps<typeof alertVariants>;
|
|
201
|
+
type ClassName = TVClassName<typeof alertVariants>;
|
|
202
|
+
interface AlertProps extends VariantProps {
|
|
203
|
+
/** Content displayed inside the Alert if no description is given! */
|
|
204
|
+
children?: ReactNode;
|
|
205
|
+
/** CSS class name */
|
|
206
|
+
className?: ClassName;
|
|
207
|
+
/** Color scheme of the Alert */
|
|
208
|
+
color?: VariantProps['color'];
|
|
209
|
+
/** Content displayed at the end of the Alert */
|
|
210
|
+
endContent?: ReactNode;
|
|
211
|
+
/** Icon displayed at the start of the Alert */
|
|
212
|
+
icon?: ReactNode;
|
|
213
|
+
/** Whether the Alert can be closed */
|
|
214
|
+
isClosable?: boolean;
|
|
215
|
+
/** Callback fired when the close button is clicked */
|
|
216
|
+
onClose?: () => void | undefined;
|
|
217
|
+
/** Whether to show the icon at the start */
|
|
218
|
+
showIcon?: boolean;
|
|
219
|
+
/** HTML data-testid attribute used in e2e tests */
|
|
220
|
+
testId?: string;
|
|
221
|
+
/** Title displayed in the Alert above the content */
|
|
222
|
+
title?: ReactNode;
|
|
223
|
+
/** Style variant of the Alert */
|
|
224
|
+
variant?: VariantProps['variant'];
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Alert component based on [HeroUI Alert](https://www.heroui.com//docs/components/alert)
|
|
228
|
+
*/
|
|
229
|
+
declare const Alert: ({ children, className, color, endContent, icon, isClosable, onClose, showIcon, testId, title, variant, }: AlertProps) => react_jsx_runtime.JSX.Element;
|
|
230
|
+
|
|
231
|
+
export { Alert as A, alertVariants as a, type AlertProps as b };
|
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-ylNJ_-dY.cjs';
|
|
2
|
+
export { a as AvatarProps } from '../Avatar-ylNJ_-dY.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-ylNJ_-dY.js';
|
|
2
|
+
export { a as AvatarProps } from '../Avatar-ylNJ_-dY.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-CUyQwK3t.cjs';
|
|
2
|
+
export { a as AvatarGroupProps } from '../AvatarGroup-CUyQwK3t.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../Avatar-
|
|
5
|
+
import '../Avatar-ylNJ_-dY.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-BfOtqfJy.js';
|
|
2
|
+
export { a as AvatarGroupProps } from '../AvatarGroup-BfOtqfJy.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../Avatar-
|
|
5
|
+
import '../Avatar-ylNJ_-dY.js';
|
|
6
6
|
import 'tailwind-variants/dist/config.js';
|
|
7
7
|
import 'tailwind-variants';
|
|
8
8
|
import '@fuf-stack/pixel-utils';
|
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-BnV9qxPA.cjs';
|
|
2
|
+
export { f as DrawerProps, d as drawerBackdrops, a as drawerPlacements, b as drawerRadii, c as drawerSizes, e as drawerVariants } from '../Drawer-BnV9qxPA.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-BnV9qxPA.js';
|
|
2
|
+
export { f as DrawerProps, d as drawerBackdrops, a as drawerPlacements, b as drawerRadii, c as drawerSizes, e as drawerVariants } from '../Drawer-BnV9qxPA.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants/dist/config.js';
|
|
5
5
|
import 'tailwind-variants';
|