@fuf-stack/pixels 0.33.0 → 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/Button/index.cjs +2 -4
- package/dist/Button/index.cjs.map +1 -1
- package/dist/Button/index.d.cts +2 -3
- package/dist/Button/index.d.ts +2 -3
- package/dist/Button/index.js +1 -3
- package/dist/{ButtonGroup-DyAm7NZs.d.cts → Button-BGekDPvO.d.cts} +1 -8
- package/dist/{ButtonGroup-DyAm7NZs.d.ts → Button-BGekDPvO.d.ts} +1 -8
- package/dist/ButtonGroup/index.cjs +10 -0
- package/dist/ButtonGroup/index.cjs.map +1 -0
- package/dist/ButtonGroup/index.d.cts +7 -0
- package/dist/ButtonGroup/index.d.ts +7 -0
- package/dist/ButtonGroup/index.js +10 -0
- package/dist/ButtonGroup/index.js.map +1 -0
- package/dist/ButtonGroup-CUxpALRo.d.cts +9 -0
- package/dist/ButtonGroup-CUxpALRo.d.ts +9 -0
- package/dist/Drawer/index.d.cts +2 -2
- package/dist/Drawer/index.d.ts +2 -2
- package/dist/Json/index.cjs +3 -3
- package/dist/Json/index.js +2 -2
- package/dist/chunk-33S6NRVI.cjs +122 -0
- package/dist/chunk-33S6NRVI.cjs.map +1 -0
- package/dist/{chunk-TAVTNSQG.cjs → chunk-4X43AGXE.cjs} +2 -8
- package/dist/chunk-4X43AGXE.cjs.map +1 -0
- package/dist/chunk-FNQ7VO32.js +13 -0
- package/dist/chunk-FNQ7VO32.js.map +1 -0
- package/dist/{chunk-ERK2LYGJ.js → chunk-HL5BEHIS.js} +1 -7
- package/dist/chunk-HL5BEHIS.js.map +1 -0
- package/dist/{chunk-U46SDLRH.cjs → chunk-LBJ3YG36.cjs} +66 -66
- package/dist/chunk-LBJ3YG36.cjs.map +1 -0
- package/dist/{chunk-XNKV2DN7.js → chunk-OPDWDH3W.js} +65 -65
- package/dist/chunk-OPDWDH3W.js.map +1 -0
- package/dist/chunk-V2WKZH63.js +122 -0
- package/dist/chunk-V2WKZH63.js.map +1 -0
- package/dist/chunk-Y3RSI2KV.cjs +13 -0
- package/dist/chunk-Y3RSI2KV.cjs.map +1 -0
- package/dist/index.cjs +15 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +15 -7
- package/package.json +30 -25
- package/dist/chunk-ERK2LYGJ.js.map +0 -1
- package/dist/chunk-TAVTNSQG.cjs.map +0 -1
- package/dist/chunk-U46SDLRH.cjs.map +0 -1
- package/dist/chunk-XNKV2DN7.js.map +0 -1
- 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.cjs
CHANGED
|
@@ -1,121 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var _chunkD4TLDLEXcjs = require('../chunk-D4TLDLEX.cjs');
|
|
4
3
|
|
|
5
|
-
// src/Alert/Alert.tsx
|
|
6
|
-
var _alert = require('@heroui/alert');
|
|
7
|
-
var _theme = require('@heroui/theme');
|
|
8
|
-
var _pixelutils = require('@fuf-stack/pixel-utils');
|
|
9
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
10
|
-
var alertVariants = _pixelutils.tv.call(void 0, {
|
|
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: _chunkD4TLDLEXcjs.__spreadValues.call(void 0, {
|
|
23
|
-
info: {
|
|
24
|
-
mainWrapper: "text-inherit",
|
|
25
|
-
title: "text-inherit",
|
|
26
|
-
description: "text-inherit"
|
|
27
|
-
}
|
|
28
|
-
}, _theme.alert.variants.color),
|
|
29
|
-
variant: _chunkD4TLDLEXcjs.__spreadValues.call(void 0, {}, _theme.alert.variants.variant)
|
|
30
|
-
},
|
|
31
|
-
compoundVariants: [
|
|
32
|
-
..._theme.alert.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(_theme.alert.variants.color).includes(
|
|
92
|
-
color
|
|
93
|
-
);
|
|
94
|
-
const classNames = _pixelutils.variantsToClassNames.call(void 0, variants, className, "base");
|
|
95
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
96
|
-
_alert.Alert,
|
|
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
4
|
|
|
114
|
-
|
|
115
|
-
|
|
5
|
+
var _chunk33S6NRVIcjs = require('../chunk-33S6NRVI.cjs');
|
|
6
|
+
require('../chunk-D4TLDLEX.cjs');
|
|
116
7
|
|
|
117
8
|
|
|
118
9
|
|
|
119
10
|
|
|
120
|
-
exports.Alert = Alert_default; exports.alertVariants = alertVariants; exports.default = Alert_default2;
|
|
11
|
+
exports.Alert = _chunk33S6NRVIcjs.Alert_default; exports.alertVariants = _chunk33S6NRVIcjs.alertVariants; exports.default = _chunk33S6NRVIcjs.Alert_default2;
|
|
121
12
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Alert/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/Alert/index.cjs"
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/Alert/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACF,6JAAC","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/Alert/index.cjs"}
|
package/dist/Alert/index.d.cts
CHANGED
|
@@ -1,231 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { A as Alert } from '../Alert-Bz_lJ_YE.cjs';
|
|
2
|
+
export { b as AlertProps, a as alertVariants } from '../Alert-Bz_lJ_YE.cjs';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'tailwind-variants';
|
|
5
|
+
import 'tailwind-variants/dist/config.js';
|
|
6
|
+
import '@fuf-stack/pixel-utils';
|
|
7
|
+
import 'react';
|
|
6
8
|
|
|
7
|
-
declare const 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
9
|
|
|
231
|
-
|
|
10
|
+
|
|
11
|
+
export { Alert, Alert as default };
|
package/dist/Alert/index.d.ts
CHANGED
|
@@ -1,231 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { A as Alert } from '../Alert-Bz_lJ_YE.js';
|
|
2
|
+
export { b as AlertProps, a as alertVariants } from '../Alert-Bz_lJ_YE.js';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'tailwind-variants';
|
|
5
|
+
import 'tailwind-variants/dist/config.js';
|
|
6
|
+
import '@fuf-stack/pixel-utils';
|
|
7
|
+
import 'react';
|
|
6
8
|
|
|
7
|
-
declare const 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
9
|
|
|
231
|
-
|
|
10
|
+
|
|
11
|
+
export { Alert, Alert as default };
|