@fuf-stack/pixels 0.31.4 → 0.32.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/Accordion/index.cjs +2 -2
- package/dist/Accordion/index.d.cts +3 -3
- package/dist/Accordion/index.d.ts +3 -3
- package/dist/Accordion/index.js +1 -1
- package/dist/{Accordion-CZ0Fqk-P.d.cts → Accordion-rA715N0Z.d.cts} +2 -2
- package/dist/{Accordion-CZ0Fqk-P.d.ts → Accordion-rA715N0Z.d.ts} +2 -2
- package/dist/Alert/index.cjs +121 -0
- package/dist/Alert/index.cjs.map +1 -0
- package/dist/Alert/index.d.cts +231 -0
- package/dist/Alert/index.d.ts +231 -0
- package/dist/Alert/index.js +121 -0
- package/dist/Alert/index.js.map +1 -0
- package/dist/Avatar/index.cjs +2 -2
- package/dist/Avatar/index.d.cts +2 -2
- package/dist/Avatar/index.d.ts +2 -2
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-CbdJWk_J.d.cts → Avatar-CY2AIMsK.d.cts} +1 -1
- package/dist/{Avatar-CbdJWk_J.d.ts → Avatar-CY2AIMsK.d.ts} +1 -1
- package/dist/AvatarGroup/index.cjs +3 -3
- package/dist/AvatarGroup/index.d.cts +3 -3
- package/dist/AvatarGroup/index.d.ts +3 -3
- package/dist/AvatarGroup/index.js +2 -2
- package/dist/{AvatarGroup-BTPgXs_F.d.ts → AvatarGroup-BSEjz5ez.d.ts} +2 -2
- package/dist/{AvatarGroup-DyX3Lj28.d.cts → AvatarGroup-J1yR1Smi.d.cts} +2 -2
- package/dist/Badge/index.cjs +2 -2
- package/dist/Badge/index.d.cts +3 -3
- package/dist/Badge/index.d.ts +3 -3
- package/dist/Badge/index.js +1 -1
- package/dist/{Badge-yzXn5LtZ.d.cts → Badge-CvXzljaJ.d.cts} +2 -2
- package/dist/{Badge-yzXn5LtZ.d.ts → Badge-CvXzljaJ.d.ts} +2 -2
- package/dist/Breadcrumb/index.cjs +2 -2
- package/dist/Breadcrumb/index.d.cts +2 -2
- package/dist/Breadcrumb/index.d.ts +2 -2
- package/dist/Breadcrumb/index.js +1 -1
- package/dist/{Breadcrumb-DHn8XeOY.d.cts → Breadcrumb-1cB54eJk.d.cts} +4 -4
- package/dist/{Breadcrumb-DHn8XeOY.d.ts → Breadcrumb-1cB54eJk.d.ts} +4 -4
- package/dist/Button/index.cjs +2 -2
- package/dist/Button/index.d.cts +4 -4
- package/dist/Button/index.d.ts +4 -4
- package/dist/Button/index.js +1 -1
- package/dist/{ButtonGroup-DIL5WB0f.d.cts → ButtonGroup-g0hk2u-s.d.cts} +6 -6
- package/dist/{ButtonGroup-DIL5WB0f.d.ts → ButtonGroup-g0hk2u-s.d.ts} +6 -6
- package/dist/Card/index.cjs +2 -2
- package/dist/Card/index.d.cts +3 -4
- package/dist/Card/index.d.ts +3 -4
- package/dist/Card/index.js +1 -1
- package/dist/{Card-C8u10Iq0.d.cts → Card-BdciRqJz.d.cts} +4 -6
- package/dist/{Card-C8u10Iq0.d.ts → Card-BdciRqJz.d.ts} +4 -6
- package/dist/Drawer/index.cjs +2 -2
- package/dist/Drawer/index.d.cts +3 -3
- package/dist/Drawer/index.d.ts +3 -3
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-DvEDC3UK.d.cts → Drawer-CifCcX6s.d.cts} +5 -5
- package/dist/{Drawer-DvEDC3UK.d.ts → Drawer-CifCcX6s.d.ts} +5 -5
- package/dist/Json/index.cjs +3 -3
- package/dist/Json/index.js +2 -2
- package/dist/Label/index.cjs +2 -2
- package/dist/Label/index.d.cts +3 -3
- package/dist/Label/index.d.ts +3 -3
- package/dist/Label/index.js +1 -1
- package/dist/{Label--qRYiJs-.d.cts → Label-BH0taC2T.d.cts} +2 -2
- package/dist/{Label--qRYiJs-.d.ts → Label-BH0taC2T.d.ts} +2 -2
- package/dist/Menu/index.cjs +2 -2
- package/dist/Menu/index.d.cts +2 -2
- package/dist/Menu/index.d.ts +2 -2
- package/dist/Menu/index.js +1 -1
- package/dist/{Menu-CG5mVVnv.d.cts → Menu-C7lpY7pY.d.cts} +1 -1
- package/dist/{Menu-CG5mVVnv.d.ts → Menu-C7lpY7pY.d.ts} +1 -1
- package/dist/Modal/index.cjs +2 -2
- package/dist/Modal/index.d.cts +3 -3
- package/dist/Modal/index.d.ts +3 -3
- package/dist/Modal/index.js +1 -1
- package/dist/{Modal-CSOPzGYj.d.cts → Modal-DI5ZdS_3.d.cts} +2 -2
- package/dist/{Modal-CSOPzGYj.d.ts → Modal-DI5ZdS_3.d.ts} +2 -2
- package/dist/Popover/index.cjs +3 -3
- package/dist/Popover/index.d.cts +3 -3
- package/dist/Popover/index.d.ts +3 -3
- package/dist/Popover/index.js +2 -2
- package/dist/{Popover-By7zSUnV.d.cts → Popover-Db9vCWrz.d.cts} +2 -2
- package/dist/{Popover-By7zSUnV.d.ts → Popover-Db9vCWrz.d.ts} +2 -2
- package/dist/Progress/index.cjs +89 -0
- package/dist/Progress/index.cjs.map +1 -0
- package/dist/Progress/index.d.cts +224 -0
- package/dist/Progress/index.d.ts +224 -0
- package/dist/Progress/index.js +89 -0
- package/dist/Progress/index.js.map +1 -0
- package/dist/ScrollShadow/index.cjs +3 -3
- package/dist/ScrollShadow/index.d.cts +1 -1
- package/dist/ScrollShadow/index.d.ts +1 -1
- package/dist/ScrollShadow/index.js +1 -1
- package/dist/Table/index.cjs +2 -3
- package/dist/Table/index.cjs.map +1 -1
- package/dist/Table/index.d.cts +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +3 -4
- package/dist/Table/index.js.map +1 -1
- package/dist/Tabs/index.cjs +2 -2
- package/dist/Tabs/index.d.cts +2 -2
- package/dist/Tabs/index.d.ts +2 -2
- package/dist/Tabs/index.js +1 -1
- package/dist/{Tabs-CfFvBC99.d.cts → Tabs-XIux-c3p.d.cts} +9 -1
- package/dist/{Tabs-CfFvBC99.d.ts → Tabs-XIux-c3p.d.ts} +9 -1
- package/dist/Tooltip/index.cjs +2 -2
- package/dist/Tooltip/index.d.cts +2 -2
- package/dist/Tooltip/index.d.ts +2 -2
- package/dist/Tooltip/index.js +1 -1
- package/dist/{Tooltip-DS3pM5Cq.d.cts → Tooltip-Bsq7nJLh.d.cts} +1 -1
- package/dist/{Tooltip-DS3pM5Cq.d.ts → Tooltip-Bsq7nJLh.d.ts} +1 -1
- package/dist/{chunk-Z5OFNBWI.cjs → chunk-2SQEDOXZ.cjs} +4 -3
- package/dist/chunk-2SQEDOXZ.cjs.map +1 -0
- package/dist/{chunk-3QI2ODV2.js → chunk-2WJJS4CZ.js} +3 -3
- package/dist/chunk-2WJJS4CZ.js.map +1 -0
- package/dist/{chunk-ODLZQXBE.js → chunk-3LEUWIY3.js} +3 -3
- package/dist/chunk-3LEUWIY3.js.map +1 -0
- package/dist/{chunk-LPCCBJ2T.js → chunk-5H2LBLSC.js} +3 -3
- package/dist/chunk-5H2LBLSC.js.map +1 -0
- package/dist/{chunk-7TIFKRWY.cjs → chunk-A4FOULHY.cjs} +2 -2
- package/dist/chunk-A4FOULHY.cjs.map +1 -0
- package/dist/{chunk-2WDAJ6ER.cjs → chunk-AJLLRWSE.cjs} +4 -4
- package/dist/chunk-AJLLRWSE.cjs.map +1 -0
- package/dist/{chunk-HVLEV6BG.cjs → chunk-BURI3HTZ.cjs} +2 -2
- package/dist/chunk-BURI3HTZ.cjs.map +1 -0
- package/dist/{chunk-N6YMP2DX.js → chunk-CWCZM3HS.js} +2 -2
- package/dist/chunk-CWCZM3HS.js.map +1 -0
- package/dist/{chunk-U2JEMXXJ.cjs → chunk-D7KXMNEI.cjs} +2 -2
- package/dist/chunk-D7KXMNEI.cjs.map +1 -0
- package/dist/{chunk-BUWMLU3E.js → chunk-EQVC4PJE.js} +2 -2
- package/dist/chunk-EQVC4PJE.js.map +1 -0
- package/dist/{chunk-CQW46JPO.js → chunk-EVAV23ZV.js} +2 -2
- package/dist/chunk-EVAV23ZV.js.map +1 -0
- package/dist/{chunk-OLKLIWBE.cjs → chunk-FFRBORVV.cjs} +3 -3
- package/dist/{chunk-OLKLIWBE.cjs.map → chunk-FFRBORVV.cjs.map} +1 -1
- package/dist/{chunk-XVCKJE3P.js → chunk-FPU6RJSG.js} +3 -3
- package/dist/chunk-FPU6RJSG.js.map +1 -0
- package/dist/{chunk-33DBA7U2.js → chunk-GA54AM2W.js} +2 -2
- package/dist/chunk-GA54AM2W.js.map +1 -0
- package/dist/{chunk-7XJHVFT3.cjs → chunk-HPLU3CHP.cjs} +5 -5
- package/dist/chunk-HPLU3CHP.cjs.map +1 -0
- package/dist/{chunk-OQIMB45E.js → chunk-ITOA7Q42.js} +2 -2
- package/dist/chunk-ITOA7Q42.js.map +1 -0
- package/dist/{chunk-NVNT4PMS.cjs → chunk-OOFJGGRS.cjs} +3 -3
- package/dist/chunk-OOFJGGRS.cjs.map +1 -0
- package/dist/{chunk-LY45VQ2E.cjs → chunk-ORO34I7X.cjs} +3 -3
- package/dist/chunk-ORO34I7X.cjs.map +1 -0
- package/dist/{chunk-NCSINRHM.js → chunk-QSQ5NCIF.js} +4 -3
- package/dist/chunk-QSQ5NCIF.js.map +1 -0
- package/dist/{chunk-VG5A2YZE.cjs → chunk-T7EAVBXL.cjs} +2 -2
- package/dist/chunk-T7EAVBXL.cjs.map +1 -0
- package/dist/{chunk-7LABJBKF.js → chunk-TCL2PX3F.js} +3 -3
- package/dist/chunk-TCL2PX3F.js.map +1 -0
- package/dist/{chunk-BXPBP3PC.cjs → chunk-TX2VP4J7.cjs} +2 -2
- package/dist/chunk-TX2VP4J7.cjs.map +1 -0
- package/dist/{chunk-LCSYN3DI.js → chunk-UZPVE6UB.js} +2 -2
- package/dist/{chunk-7ZJ6LE2P.cjs → chunk-WSM7WMFP.cjs} +2 -2
- package/dist/chunk-WSM7WMFP.cjs.map +1 -0
- package/dist/{chunk-YTQJ6FZK.cjs → chunk-WV3ZDL4J.cjs} +2 -2
- package/dist/chunk-WV3ZDL4J.cjs.map +1 -0
- package/dist/{chunk-RMA57Q6K.cjs → chunk-XNMTAL3J.cjs} +2 -2
- package/dist/chunk-XNMTAL3J.cjs.map +1 -0
- package/dist/{chunk-ZXGEK67F.cjs → chunk-XTR4NKDP.cjs} +2 -2
- package/dist/chunk-XTR4NKDP.cjs.map +1 -0
- package/dist/chunk-XUF52AKP.js +74 -0
- package/dist/chunk-XUF52AKP.js.map +1 -0
- package/dist/{chunk-QTXKWCDV.js → chunk-Z7QNU4XB.js} +2 -2
- package/dist/chunk-Z7QNU4XB.js.map +1 -0
- package/dist/{chunk-MJE4MLZY.js → chunk-ZKCOHRTR.js} +2 -2
- package/dist/chunk-ZKCOHRTR.js.map +1 -0
- package/dist/chunk-ZXN5DNKQ.cjs +74 -0
- package/dist/chunk-ZXN5DNKQ.cjs.map +1 -0
- package/dist/{chunk-7IGL67EH.js → chunk-ZZC6S7D2.js} +2 -2
- package/dist/chunk-ZZC6S7D2.js.map +1 -0
- package/dist/index.cjs +17 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -22
- package/dist/index.d.ts +22 -22
- package/dist/index.js +19 -19
- package/package.json +36 -24
- package/dist/chunk-2WDAJ6ER.cjs.map +0 -1
- package/dist/chunk-33DBA7U2.js.map +0 -1
- package/dist/chunk-3QI2ODV2.js.map +0 -1
- package/dist/chunk-7IGL67EH.js.map +0 -1
- package/dist/chunk-7LABJBKF.js.map +0 -1
- package/dist/chunk-7TIFKRWY.cjs.map +0 -1
- package/dist/chunk-7XJHVFT3.cjs.map +0 -1
- package/dist/chunk-7ZJ6LE2P.cjs.map +0 -1
- package/dist/chunk-BUWMLU3E.js.map +0 -1
- package/dist/chunk-BXPBP3PC.cjs.map +0 -1
- package/dist/chunk-CQW46JPO.js.map +0 -1
- package/dist/chunk-DDWFDIXA.cjs +0 -72
- package/dist/chunk-DDWFDIXA.cjs.map +0 -1
- package/dist/chunk-HVLEV6BG.cjs.map +0 -1
- package/dist/chunk-LPCCBJ2T.js.map +0 -1
- package/dist/chunk-LY45VQ2E.cjs.map +0 -1
- package/dist/chunk-MJE4MLZY.js.map +0 -1
- package/dist/chunk-N6YMP2DX.js.map +0 -1
- package/dist/chunk-NCSINRHM.js.map +0 -1
- package/dist/chunk-NVNT4PMS.cjs.map +0 -1
- package/dist/chunk-ODLZQXBE.js.map +0 -1
- package/dist/chunk-OQIMB45E.js.map +0 -1
- package/dist/chunk-PRPGAJKZ.js +0 -72
- package/dist/chunk-PRPGAJKZ.js.map +0 -1
- package/dist/chunk-QTXKWCDV.js.map +0 -1
- package/dist/chunk-RMA57Q6K.cjs.map +0 -1
- package/dist/chunk-U2JEMXXJ.cjs.map +0 -1
- package/dist/chunk-VG5A2YZE.cjs.map +0 -1
- package/dist/chunk-XVCKJE3P.js.map +0 -1
- package/dist/chunk-YTQJ6FZK.cjs.map +0 -1
- package/dist/chunk-Z5OFNBWI.cjs.map +0 -1
- package/dist/chunk-ZXGEK67F.cjs.map +0 -1
- /package/dist/{chunk-LCSYN3DI.js.map → chunk-UZPVE6UB.js.map} +0 -0
package/dist/Accordion/index.cjs
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXTR4NKDPcjs = require('../chunk-XTR4NKDP.cjs');
|
|
6
6
|
require('../chunk-D4TLDLEX.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.Accordion =
|
|
11
|
+
exports.Accordion = _chunkXTR4NKDPcjs.Accordion_default; exports.accordionVariants = _chunkXTR4NKDPcjs.accordionVariants; exports.default = _chunkXTR4NKDPcjs.Accordion_default2;
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as Accordion } from '../Accordion-
|
|
2
|
-
export { c as AccordionItemProps, b as AccordionProps, a as accordionVariants } from '../Accordion-
|
|
1
|
+
import { A as Accordion } from '../Accordion-rA715N0Z.cjs';
|
|
2
|
+
export { c as AccordionItemProps, b as AccordionProps, a as accordionVariants } from '../Accordion-rA715N0Z.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants';
|
|
5
5
|
import 'tailwind-variants/dist/config.js';
|
|
6
6
|
import '@fuf-stack/pixel-utils';
|
|
7
|
-
import '@
|
|
7
|
+
import '@heroui/divider';
|
|
8
8
|
import 'react';
|
|
9
9
|
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as Accordion } from '../Accordion-
|
|
2
|
-
export { c as AccordionItemProps, b as AccordionProps, a as accordionVariants } from '../Accordion-
|
|
1
|
+
import { A as Accordion } from '../Accordion-rA715N0Z.js';
|
|
2
|
+
export { c as AccordionItemProps, b as AccordionProps, a as accordionVariants } from '../Accordion-rA715N0Z.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants';
|
|
5
5
|
import 'tailwind-variants/dist/config.js';
|
|
6
6
|
import '@fuf-stack/pixel-utils';
|
|
7
|
-
import '@
|
|
7
|
+
import '@heroui/divider';
|
|
8
8
|
import 'react';
|
|
9
9
|
|
|
10
10
|
|
package/dist/Accordion/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as tailwind_variants from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
4
4
|
import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
|
|
5
|
-
import { DividerProps } from '@
|
|
5
|
+
import { DividerProps } from '@heroui/divider';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
7
7
|
|
|
8
8
|
declare const accordionVariants: tailwind_variants.TVReturnType<{
|
|
@@ -206,7 +206,7 @@ interface AccordionProps extends VariantProps {
|
|
|
206
206
|
variant?: 'light' | 'shadow' | 'bordered' | 'splitted';
|
|
207
207
|
}
|
|
208
208
|
/**
|
|
209
|
-
* Accordion component based on [
|
|
209
|
+
* Accordion component based on [HeroUI Accordion](https://www.heroui.com//docs/components/accordion)
|
|
210
210
|
*/
|
|
211
211
|
declare const Accordion: ({ accordionItems, className: _className, defaultSelectedKeys, disabled, disabledKeys, disallowEmptySelection, dividerProps, indicatorLeft, onSelectionChange, selectedKeys, selectionMode, showDivider, variant, }: AccordionProps) => react_jsx_runtime.JSX.Element;
|
|
212
212
|
|
|
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as tailwind_variants from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
4
4
|
import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
|
|
5
|
-
import { DividerProps } from '@
|
|
5
|
+
import { DividerProps } from '@heroui/divider';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
7
7
|
|
|
8
8
|
declare const accordionVariants: tailwind_variants.TVReturnType<{
|
|
@@ -206,7 +206,7 @@ interface AccordionProps extends VariantProps {
|
|
|
206
206
|
variant?: 'light' | 'shadow' | 'bordered' | 'splitted';
|
|
207
207
|
}
|
|
208
208
|
/**
|
|
209
|
-
* Accordion component based on [
|
|
209
|
+
* Accordion component based on [HeroUI Accordion](https://www.heroui.com//docs/components/accordion)
|
|
210
210
|
*/
|
|
211
211
|
declare const Accordion: ({ accordionItems, className: _className, defaultSelectedKeys, disabled, disabledKeys, disallowEmptySelection, dividerProps, indicatorLeft, onSelectionChange, selectedKeys, selectionMode, showDivider, variant, }: AccordionProps) => react_jsx_runtime.JSX.Element;
|
|
212
212
|
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkD4TLDLEXcjs = require('../chunk-D4TLDLEX.cjs');
|
|
4
|
+
|
|
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.comnextui-orgnextui/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
|
+
|
|
114
|
+
// src/Alert/index.ts
|
|
115
|
+
var Alert_default2 = Alert_default;
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
exports.Alert = Alert_default; exports.alertVariants = alertVariants; exports.default = Alert_default2;
|
|
121
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/pixels/dist/Alert/index.cjs","../../src/Alert/Alert.tsx","../../src/Alert/index.ts"],"names":["Alert_default"],"mappings":"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","file":"/home/runner/work/pixels/pixels/packages/pixels/dist/Alert/index.cjs","sourcesContent":[null,"import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { AlertProps as NextAlertProps } from '@heroui/alert';\nimport type { ReactNode } from 'react';\n\nimport { Alert as NextAlert } from '@heroui/alert';\nimport { alert as nextAlertVariants } from '@heroui/theme';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nexport const alertVariants = tv({\n slots: {\n base: '',\n title: '',\n description: '',\n mainWrapper: '',\n closeButton: '',\n iconWrapper: '',\n alertIcon: '',\n },\n variants: {\n // See: https://github.comnextui-orgnextui/blob/canary/packages/core/theme/src/components/alert.ts\n color: {\n info: {\n mainWrapper: 'text-inherit',\n title: 'text-inherit',\n description: 'text-inherit',\n },\n ...nextAlertVariants.variants.color,\n },\n variant: {\n ...nextAlertVariants.variants.variant,\n },\n },\n compoundVariants: [\n ...nextAlertVariants.compoundVariants,\n {\n color: 'info',\n variant: 'solid',\n className: {\n base: 'bg-info text-info-foreground',\n alertIcon: 'text-info-foreground',\n closeButton: 'text-inherit',\n },\n },\n {\n color: 'info',\n variant: 'flat',\n className: {\n alertIcon: 'fill-current',\n base: 'dark:bg-info-50/50 bg-info-50 text-info-600',\n closeButton: 'text-info-500 data-[hover]:bg-info-200',\n iconWrapper: 'border-info-100 bg-info-50 dark:bg-info-100',\n },\n },\n {\n color: 'info',\n variant: 'faded',\n className: {\n alertIcon: 'fill-current',\n base: 'dark:bg-info-50/50 border-small border-info-200 bg-info-50 text-info-600 dark:border-info-100',\n closeButton: 'text-info-500 data-[hover]:bg-info-200',\n iconWrapper: 'border-info-100 bg-info-50 dark:bg-info-100',\n },\n },\n {\n color: 'info',\n variant: 'bordered',\n className: {\n alertIcon: 'fill-current',\n base: 'border-small border-info text-info',\n closeButton: 'text-info-500 data-[hover]:bg-info-200',\n iconWrapper: 'bg-info-100 dark:bg-info-50',\n },\n },\n ],\n});\n\nexport type VariantProps = TVProps<typeof alertVariants>;\ntype ClassName = TVClassName<typeof alertVariants>;\n\nexport interface AlertProps extends VariantProps {\n /** Content displayed inside the Alert if no description is given! */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** Color scheme of the Alert */\n color?: VariantProps['color'];\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 /** Whether the Alert can be closed */\n isClosable?: boolean;\n /** Callback fired when the close button is clicked */\n onClose?: () => void | undefined;\n /** Whether to show the icon at the start */\n showIcon?: boolean;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Title displayed in the Alert above the content */\n title?: ReactNode;\n /** Style variant of the Alert */\n variant?: VariantProps['variant'];\n}\n\n/**\n * Alert component based on [HeroUI Alert](https://www.heroui.com//docs/components/alert)\n */\nconst Alert = ({\n children = undefined,\n className = undefined,\n color = 'primary',\n endContent = undefined,\n icon = undefined,\n isClosable = false,\n onClose = undefined,\n showIcon = true,\n testId = undefined,\n title = undefined,\n variant = 'solid',\n}: AlertProps) => {\n const variants = alertVariants({\n color,\n variant,\n });\n const isHeroUIColor = Object.keys(nextAlertVariants.variants.color).includes(\n color,\n );\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <NextAlert\n classNames={classNames}\n color={isHeroUIColor ? (color as NextAlertProps['color']) : undefined}\n data-testid={testId}\n description={title ? children : undefined}\n endContent={endContent}\n hideIcon={!showIcon}\n icon={icon}\n isClosable={isClosable}\n onClose={onClose}\n title={(title || children) as string}\n variant={variant}\n />\n );\n};\n\nexport default Alert;\n","import Alert, { alertVariants } from './Alert';\n\nexport type { AlertProps } from './Alert';\n\nexport { Alert, alertVariants };\n\nexport default Alert;\n"]}
|
|
@@ -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, type AlertProps, alertVariants, Alert as default };
|
|
@@ -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, type AlertProps, alertVariants, Alert as default };
|