@sikka/hawa 0.23.7-next → 0.23.9-next
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/Label-fkQ4ebuH.d.mts +12 -0
- package/dist/Label-fkQ4ebuH.d.ts +12 -0
- package/dist/accordion/index.d.mts +51 -0
- package/dist/accordion/index.d.ts +51 -0
- package/dist/accordion/index.mjs +98 -21
- package/dist/alert/index.d.mts +28 -0
- package/dist/alert/index.d.ts +28 -0
- package/dist/alert/index.mjs +397 -5
- package/dist/appStores/index.d.mts +8 -0
- package/dist/appStores/index.d.ts +8 -0
- package/dist/avatar/index.d.mts +15 -0
- package/dist/avatar/index.d.ts +15 -0
- package/dist/backToTop/index.d.mts +15 -0
- package/dist/backToTop/index.d.ts +15 -0
- package/dist/backToTop/index.mjs +2 -5
- package/dist/badge/index.d.mts +13 -0
- package/dist/badge/index.d.ts +13 -0
- package/dist/blocks/auth/index.d.mts +202 -0
- package/dist/blocks/auth/index.d.ts +202 -0
- package/dist/blocks/auth/index.mjs +3 -3
- package/dist/blocks/feedback/index.d.mts +74 -0
- package/dist/blocks/feedback/index.d.ts +74 -0
- package/dist/blocks/feedback/index.mjs +3 -3
- package/dist/blocks/misc/index.d.mts +90 -0
- package/dist/blocks/misc/index.d.ts +90 -0
- package/dist/blocks/pricing/index.d.mts +93 -0
- package/dist/blocks/pricing/index.d.ts +93 -0
- package/dist/blocks/pricing/index.mjs +6 -6
- package/dist/breadcrumb/index.d.mts +14 -0
- package/dist/breadcrumb/index.d.ts +14 -0
- package/dist/button/index.d.mts +16 -0
- package/dist/button/index.d.ts +16 -0
- package/dist/button/index.mjs +254 -5
- package/dist/card/index.d.mts +17 -0
- package/dist/card/index.d.ts +17 -0
- package/dist/checkbox/index.d.mts +20 -0
- package/dist/checkbox/index.d.ts +20 -0
- package/dist/chip/index.d.mts +2 -0
- package/dist/chip/index.d.ts +2 -0
- package/dist/chip/index.mjs +0 -1
- package/dist/{chunk-PUQV6URH.mjs → chunk-3N6JJKMN.mjs} +83 -4
- package/dist/{chunk-VFP56EVG.mjs → chunk-TNAHW35O.mjs} +35 -1
- package/dist/combobox/index.d.mts +31 -0
- package/dist/combobox/index.d.ts +31 -0
- package/dist/combobox/index.mjs +483 -34
- package/dist/command/index.d.mts +48 -0
- package/dist/command/index.d.ts +48 -0
- package/dist/command/index.mjs +425 -12
- package/dist/commonTypes-MxCJyrHv.d.mts +8 -0
- package/dist/commonTypes-MxCJyrHv.d.ts +8 -0
- package/dist/commonTypes-N7XOVCit.d.mts +5 -0
- package/dist/commonTypes-N7XOVCit.d.ts +5 -0
- package/dist/commonTypes-PBumfOBg.d.mts +3 -0
- package/dist/commonTypes-PBumfOBg.d.ts +3 -0
- package/dist/commonTypes-_11epZYh.d.mts +4 -0
- package/dist/commonTypes-_11epZYh.d.ts +4 -0
- package/dist/commonTypes-eIwARo5g.d.mts +4 -0
- package/dist/commonTypes-eIwARo5g.d.ts +4 -0
- package/dist/dataTable/index.d.mts +40 -0
- package/dist/dataTable/index.d.ts +40 -0
- package/dist/dataTable/index.mjs +717 -69
- package/dist/dialog/index.d.mts +57 -0
- package/dist/dialog/index.d.ts +57 -0
- package/dist/dialog/index.mjs +298 -15
- package/dist/dropdownMenu/index.d.mts +95 -0
- package/dist/dropdownMenu/index.d.ts +95 -0
- package/dist/dropdownMenu/index.mjs +0 -1
- package/dist/fileDropzone/index.d.mts +37 -0
- package/dist/fileDropzone/index.d.ts +37 -0
- package/dist/fileDropzone/index.mjs +432 -40
- package/dist/index-DUZFcPRO.d.mts +38 -0
- package/dist/index-DUZFcPRO.d.ts +38 -0
- package/dist/input/index.d.mts +43 -0
- package/dist/input/index.d.ts +43 -0
- package/dist/input/index.mjs +238 -6
- package/dist/label/index.d.mts +12 -0
- package/dist/label/index.d.ts +12 -0
- package/dist/label/index.mjs +87 -5
- package/dist/loading/index.d.mts +15 -0
- package/dist/loading/index.d.ts +15 -0
- package/dist/loading/index.mjs +179 -3
- package/dist/logos/index.d.mts +27 -0
- package/dist/logos/index.d.ts +27 -0
- package/dist/navigationMenu/index.d.mts +40 -0
- package/dist/navigationMenu/index.d.ts +40 -0
- package/dist/phoneInput/index.d.mts +23 -0
- package/dist/phoneInput/index.d.ts +23 -0
- package/dist/phoneInput/index.mjs +272 -14
- package/dist/pinInput/index.d.mts +20 -0
- package/dist/pinInput/index.d.ts +20 -0
- package/dist/popover/index.d.mts +23 -0
- package/dist/popover/index.d.ts +23 -0
- package/dist/popover/index.mjs +62 -5
- package/dist/progress/index.d.mts +6 -0
- package/dist/progress/index.d.ts +6 -0
- package/dist/radio/index.d.mts +38 -0
- package/dist/radio/index.d.ts +38 -0
- package/dist/radio/index.mjs +102 -19
- package/dist/scrollArea/index.d.mts +11 -0
- package/dist/scrollArea/index.d.ts +11 -0
- package/dist/select/index.d.mts +50 -0
- package/dist/select/index.d.ts +50 -0
- package/dist/select/index.mjs +270 -8
- package/dist/sheet/index.d.mts +30 -0
- package/dist/sheet/index.d.ts +30 -0
- package/dist/skeleton/index.d.mts +10 -0
- package/dist/skeleton/index.d.ts +10 -0
- package/dist/skeleton/index.mjs +29 -4
- package/dist/sortButton/index.d.mts +10 -0
- package/dist/sortButton/index.d.ts +10 -0
- package/dist/sortButton/index.mjs +260 -10
- package/dist/splitButton/index.d.mts +24 -0
- package/dist/splitButton/index.d.ts +24 -0
- package/dist/splitButton/index.mjs +261 -11
- package/dist/stopPropagationWrapper/index.d.mts +5 -0
- package/dist/stopPropagationWrapper/index.d.ts +5 -0
- package/dist/switch/index.d.mts +12 -0
- package/dist/switch/index.d.ts +12 -0
- package/dist/table/index.d.mts +21 -0
- package/dist/table/index.d.ts +21 -0
- package/dist/table/index.mjs +112 -10
- package/dist/tabs/index.d.mts +15 -0
- package/dist/tabs/index.d.ts +15 -0
- package/dist/textTypes-559CaoOV.d.mts +88 -0
- package/dist/textTypes-559CaoOV.d.ts +88 -0
- package/dist/textarea/index.d.mts +16 -0
- package/dist/textarea/index.d.ts +16 -0
- package/dist/textarea/index.mjs +1 -2
- package/dist/tooltip/index.d.mts +27 -0
- package/dist/tooltip/index.d.ts +27 -0
- package/dist/tooltip/index.mjs +53 -3
- package/package.json +4 -7
- package/dist/blocks/index.js +0 -8119
- package/dist/blocks/index.mjs +0 -2535
- package/dist/chunk-2IL2HDEQ.mjs +0 -315
- package/dist/chunk-2R2QPJT7.mjs +0 -7519
- package/dist/chunk-343SRWR4.mjs +0 -146
- package/dist/chunk-3KRJLV55.mjs +0 -135
- package/dist/chunk-6CLNGID2.mjs +0 -0
- package/dist/chunk-6QJMQV2X.mjs +0 -0
- package/dist/chunk-AFOVBTLE.mjs +0 -69
- package/dist/chunk-B6UCD4GP.mjs +0 -0
- package/dist/chunk-FNVYY7ND.mjs +0 -22
- package/dist/chunk-FRDYTR55.mjs +0 -151
- package/dist/chunk-GDIBR47V.mjs +0 -0
- package/dist/chunk-J5NJEHQU.mjs +0 -34
- package/dist/chunk-QMV6AK2B.mjs +0 -145
- package/dist/chunk-SYB66JGL.mjs +0 -84
- package/dist/chunk-XPTZGXC7.mjs +0 -124
- package/dist/chunk-Z3JCNSB3.mjs +0 -42
- package/dist/chunk-Z4M72OD3.mjs +0 -167
- package/dist/elements/index.js +0 -7719
- package/dist/elements/index.mjs +0 -285
- package/dist/hooks/index.js +0 -451
- package/dist/hooks/index.mjs +0 -254
- package/dist/index.js +0 -11987
- package/dist/index.mjs +0 -11760
- package/dist/layout/index.js +0 -4373
- package/dist/layout/index.mjs +0 -1381
- package/dist/types/index.js +0 -18
- package/dist/types/index.mjs +0 -0
@@ -0,0 +1,51 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import React__default from 'react';
|
3
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
4
|
+
import { R as RadiusType } from '../commonTypes-PBumfOBg.mjs';
|
5
|
+
|
6
|
+
type ChipColors = "green" | "blue" | "red" | "yellow" | "orange" | "purple" | "cyan" | "hyper" | "oceanic";
|
7
|
+
type ChipTypes = React__default.HTMLAttributes<HTMLSpanElement> & {
|
8
|
+
/** The text inside the chip */
|
9
|
+
label: string;
|
10
|
+
/** The small icon before the chip label */
|
11
|
+
icon?: JSX.Element;
|
12
|
+
/** The color of the chip, must be a tailwind color */
|
13
|
+
color?: ChipColors;
|
14
|
+
/** The size of the chip */
|
15
|
+
size?: "small" | "normal" | "large";
|
16
|
+
/** Enable/Disable the dot before the label of the chip */
|
17
|
+
dot?: boolean;
|
18
|
+
/** Red/Green dot next to the label of the chip indicating online/offline or available/unavailable */
|
19
|
+
dotType?: "available" | "unavailable";
|
20
|
+
radius?: RadiusType;
|
21
|
+
};
|
22
|
+
|
23
|
+
type AccordionItemProps = {
|
24
|
+
trigger: string;
|
25
|
+
content: string;
|
26
|
+
disabled?: boolean;
|
27
|
+
chip?: ChipTypes;
|
28
|
+
};
|
29
|
+
type AccordionProps = {
|
30
|
+
items: AccordionItemProps[];
|
31
|
+
itemClassNames?: string;
|
32
|
+
triggerclassNames?: string;
|
33
|
+
contentclassNames?: string;
|
34
|
+
design?: "default" | "separated";
|
35
|
+
} & React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;
|
36
|
+
declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
|
37
|
+
|
38
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
39
|
+
|
40
|
+
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
41
|
+
unstyled?: boolean | undefined;
|
42
|
+
hideArrow?: boolean | undefined;
|
43
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
44
|
+
|
45
|
+
declare const AccordionRoot: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
46
|
+
|
47
|
+
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
48
|
+
unstyled?: boolean | undefined;
|
49
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
50
|
+
|
51
|
+
export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger };
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import React__default from 'react';
|
3
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
4
|
+
import { R as RadiusType } from '../commonTypes-PBumfOBg.js';
|
5
|
+
|
6
|
+
type ChipColors = "green" | "blue" | "red" | "yellow" | "orange" | "purple" | "cyan" | "hyper" | "oceanic";
|
7
|
+
type ChipTypes = React__default.HTMLAttributes<HTMLSpanElement> & {
|
8
|
+
/** The text inside the chip */
|
9
|
+
label: string;
|
10
|
+
/** The small icon before the chip label */
|
11
|
+
icon?: JSX.Element;
|
12
|
+
/** The color of the chip, must be a tailwind color */
|
13
|
+
color?: ChipColors;
|
14
|
+
/** The size of the chip */
|
15
|
+
size?: "small" | "normal" | "large";
|
16
|
+
/** Enable/Disable the dot before the label of the chip */
|
17
|
+
dot?: boolean;
|
18
|
+
/** Red/Green dot next to the label of the chip indicating online/offline or available/unavailable */
|
19
|
+
dotType?: "available" | "unavailable";
|
20
|
+
radius?: RadiusType;
|
21
|
+
};
|
22
|
+
|
23
|
+
type AccordionItemProps = {
|
24
|
+
trigger: string;
|
25
|
+
content: string;
|
26
|
+
disabled?: boolean;
|
27
|
+
chip?: ChipTypes;
|
28
|
+
};
|
29
|
+
type AccordionProps = {
|
30
|
+
items: AccordionItemProps[];
|
31
|
+
itemClassNames?: string;
|
32
|
+
triggerclassNames?: string;
|
33
|
+
contentclassNames?: string;
|
34
|
+
design?: "default" | "separated";
|
35
|
+
} & React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;
|
36
|
+
declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
|
37
|
+
|
38
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
39
|
+
|
40
|
+
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
41
|
+
unstyled?: boolean | undefined;
|
42
|
+
hideArrow?: boolean | undefined;
|
43
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
44
|
+
|
45
|
+
declare const AccordionRoot: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
46
|
+
|
47
|
+
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
48
|
+
unstyled?: boolean | undefined;
|
49
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
50
|
+
|
51
|
+
export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger };
|
package/dist/accordion/index.mjs
CHANGED
@@ -1,19 +1,96 @@
|
|
1
|
-
import "../chunk-B6UCD4GP.mjs";
|
2
|
-
import {
|
3
|
-
Chip
|
4
|
-
} from "../chunk-72HYR6WB.mjs";
|
5
1
|
import {
|
6
2
|
cn
|
7
3
|
} from "../chunk-TE3BKEXL.mjs";
|
8
4
|
|
9
5
|
// components/elements/accordion/Accordion.tsx
|
10
|
-
import * as
|
6
|
+
import * as React4 from "react";
|
11
7
|
import * as AccordionPrimitive3 from "@radix-ui/react-accordion";
|
12
8
|
|
9
|
+
// components/elements/chip/Chip.tsx
|
10
|
+
import React from "react";
|
11
|
+
var Chip = React.forwardRef(
|
12
|
+
({
|
13
|
+
label,
|
14
|
+
size = "normal",
|
15
|
+
icon,
|
16
|
+
color,
|
17
|
+
radius = "inherit",
|
18
|
+
dotType,
|
19
|
+
...rest
|
20
|
+
}, ref) => {
|
21
|
+
let defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-px-2.5 hawa-py-1 hawa-font-bold ";
|
22
|
+
let radiusStyles = {
|
23
|
+
inherit: " hawa-rounded",
|
24
|
+
full: "hawa-rounded-full",
|
25
|
+
none: "hawa-rounded-none"
|
26
|
+
};
|
27
|
+
let sizeStyles = {
|
28
|
+
small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
|
29
|
+
normal: "hawa-h-fit hawa-text-xs",
|
30
|
+
large: "hawa-text-base"
|
31
|
+
};
|
32
|
+
let dotStyles = {
|
33
|
+
small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
|
34
|
+
normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
|
35
|
+
large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
|
36
|
+
};
|
37
|
+
let dotTypeStyles = {
|
38
|
+
available: "hawa-bg-green-500",
|
39
|
+
unavailable: "hawa-bg-red-500"
|
40
|
+
};
|
41
|
+
let colorStyles = {
|
42
|
+
green: "hawa-bg-green-100 hawa-text-green-500 dark:hawa-bg-green-400 dark:hawa-text-green-800",
|
43
|
+
blue: "hawa-bg-blue-100 hawa-text-blue-500 dark:hawa-bg-blue-400 dark:hawa-text-blue-100",
|
44
|
+
red: "hawa-bg-red-100 hawa-text-red-500 dark:hawa-bg-red-400 dark:hawa-text-red-100",
|
45
|
+
yellow: "hawa-bg-yellow-100 hawa-text-yellow-600 dark:hawa-bg-yellow-400 dark:hawa-text-yellow-800",
|
46
|
+
orange: "hawa-bg-orange-100 hawa-text-orange-500 dark:hawa-bg-orange-400 dark:hawa-text-orange-100",
|
47
|
+
purple: "hawa-bg-purple-100 hawa-text-purple-500 dark:hawa-bg-purple-400 dark:hawa-text-purple-100",
|
48
|
+
cyan: "hawa-bg-cyan-100 hawa-text-cyan-800 dark:hawa-bg-cyan-400 dark:hawa-text-cyan-800",
|
49
|
+
hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-500 hawa-via-red-500 hawa-to-yellow-500 ",
|
50
|
+
oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
|
51
|
+
};
|
52
|
+
if (label) {
|
53
|
+
return /* @__PURE__ */ React.createElement(
|
54
|
+
"span",
|
55
|
+
{
|
56
|
+
...rest,
|
57
|
+
ref,
|
58
|
+
className: cn(
|
59
|
+
defaultStyles,
|
60
|
+
sizeStyles[size],
|
61
|
+
radiusStyles[radius],
|
62
|
+
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
63
|
+
)
|
64
|
+
},
|
65
|
+
dotType && /* @__PURE__ */ React.createElement(
|
66
|
+
"span",
|
67
|
+
{
|
68
|
+
className: cn(dotStyles[size], dotTypeStyles[dotType])
|
69
|
+
}
|
70
|
+
),
|
71
|
+
icon && icon,
|
72
|
+
label
|
73
|
+
);
|
74
|
+
} else {
|
75
|
+
return /* @__PURE__ */ React.createElement(
|
76
|
+
"span",
|
77
|
+
{
|
78
|
+
...rest,
|
79
|
+
ref,
|
80
|
+
className: cn(
|
81
|
+
"hawa-h-2 hawa-w-2 hawa-rounded-full",
|
82
|
+
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
83
|
+
)
|
84
|
+
}
|
85
|
+
);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
);
|
89
|
+
|
13
90
|
// components/elements/accordion/AccordionContent.tsx
|
14
|
-
import * as
|
91
|
+
import * as React2 from "react";
|
15
92
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
16
|
-
var AccordionContent =
|
93
|
+
var AccordionContent = React2.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
17
94
|
AccordionPrimitive.Content,
|
18
95
|
{
|
19
96
|
ref,
|
@@ -23,14 +100,14 @@ var AccordionContent = React.forwardRef(({ className, children, ...props }, ref)
|
|
23
100
|
) : className,
|
24
101
|
...props
|
25
102
|
},
|
26
|
-
/* @__PURE__ */
|
103
|
+
/* @__PURE__ */ React2.createElement("div", { className: "hawa-bg-background hawa-p-4" }, children)
|
27
104
|
));
|
28
105
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
29
106
|
|
30
107
|
// components/elements/accordion/AccordionTrigger.tsx
|
31
|
-
import * as
|
108
|
+
import * as React3 from "react";
|
32
109
|
import * as AccordionPrimitive2 from "@radix-ui/react-accordion";
|
33
|
-
var AccordionTrigger =
|
110
|
+
var AccordionTrigger = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React3.createElement(AccordionPrimitive2.Header, { className: "hawa-flex" }, /* @__PURE__ */ React3.createElement(
|
34
111
|
AccordionPrimitive2.Trigger,
|
35
112
|
{
|
36
113
|
ref,
|
@@ -42,7 +119,7 @@ var AccordionTrigger = React2.forwardRef(({ className, children, ...props }, ref
|
|
42
119
|
...props
|
43
120
|
},
|
44
121
|
children,
|
45
|
-
!props.hideArrow && /* @__PURE__ */
|
122
|
+
!props.hideArrow && /* @__PURE__ */ React3.createElement(
|
46
123
|
"svg",
|
47
124
|
{
|
48
125
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -56,13 +133,13 @@ var AccordionTrigger = React2.forwardRef(({ className, children, ...props }, ref
|
|
56
133
|
strokeLinejoin: "round",
|
57
134
|
className: "hawa-icon hawa-shrink-0 hawa-transition-transform hawa-duration-200"
|
58
135
|
},
|
59
|
-
/* @__PURE__ */
|
136
|
+
/* @__PURE__ */ React3.createElement("path", { d: "m6 9 6 6 6-6" })
|
60
137
|
)
|
61
138
|
)));
|
62
139
|
AccordionTrigger.displayName = AccordionPrimitive2.Trigger.displayName;
|
63
140
|
|
64
141
|
// components/elements/accordion/Accordion.tsx
|
65
|
-
var Accordion =
|
142
|
+
var Accordion = React4.forwardRef(
|
66
143
|
({
|
67
144
|
items,
|
68
145
|
design = "default",
|
@@ -71,7 +148,7 @@ var Accordion = React3.forwardRef(
|
|
71
148
|
contentclassNames,
|
72
149
|
className,
|
73
150
|
...props
|
74
|
-
}, ref) => /* @__PURE__ */
|
151
|
+
}, ref) => /* @__PURE__ */ React4.createElement(AccordionPrimitive3.Root, { type: props.type, collapsible: true }, /* @__PURE__ */ React4.createElement(
|
75
152
|
"div",
|
76
153
|
{
|
77
154
|
className: cn("hawa-flex hawa-flex-col", {
|
@@ -79,7 +156,7 @@ var Accordion = React3.forwardRef(
|
|
79
156
|
"hawa-gap-0": design === "default"
|
80
157
|
})
|
81
158
|
},
|
82
|
-
items.map((item, index) => /* @__PURE__ */
|
159
|
+
items.map((item, index) => /* @__PURE__ */ React4.createElement(
|
83
160
|
AccordionPrimitive3.Item,
|
84
161
|
{
|
85
162
|
disabled: item.disabled || false,
|
@@ -87,7 +164,7 @@ var Accordion = React3.forwardRef(
|
|
87
164
|
key: index,
|
88
165
|
value: `item-${index}`
|
89
166
|
},
|
90
|
-
/* @__PURE__ */
|
167
|
+
/* @__PURE__ */ React4.createElement(
|
91
168
|
AccordionTrigger,
|
92
169
|
{
|
93
170
|
disabled: item.disabled || false,
|
@@ -100,7 +177,7 @@ var Accordion = React3.forwardRef(
|
|
100
177
|
triggerclassNames
|
101
178
|
)
|
102
179
|
},
|
103
|
-
/* @__PURE__ */
|
180
|
+
/* @__PURE__ */ React4.createElement(
|
104
181
|
"span",
|
105
182
|
{
|
106
183
|
className: cn(
|
@@ -110,10 +187,10 @@ var Accordion = React3.forwardRef(
|
|
110
187
|
},
|
111
188
|
item.trigger,
|
112
189
|
" ",
|
113
|
-
item.chip && /* @__PURE__ */
|
190
|
+
item.chip && /* @__PURE__ */ React4.createElement(Chip, { ...item.chip })
|
114
191
|
)
|
115
192
|
),
|
116
|
-
/* @__PURE__ */
|
193
|
+
/* @__PURE__ */ React4.createElement(
|
117
194
|
AccordionContent,
|
118
195
|
{
|
119
196
|
"aria-disabled": item.disabled || false,
|
@@ -133,9 +210,9 @@ var Accordion = React3.forwardRef(
|
|
133
210
|
Accordion.displayName = "Accordion";
|
134
211
|
|
135
212
|
// components/elements/accordion/AccordionItem.tsx
|
136
|
-
import * as
|
213
|
+
import * as React5 from "react";
|
137
214
|
import * as AccordionPrimitive4 from "@radix-ui/react-accordion";
|
138
|
-
var AccordionItem =
|
215
|
+
var AccordionItem = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(AccordionPrimitive4.Item, { ref, className: cn(className), ...props }));
|
139
216
|
AccordionItem.displayName = "AccordionItem";
|
140
217
|
|
141
218
|
// components/elements/accordion/AccordionRoot.tsx
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
import { S as SeverityType, D as DirectionType } from '../commonTypes-N7XOVCit.mjs';
|
3
|
+
|
4
|
+
type AlertTypes = {
|
5
|
+
severity?: SeverityType | "hyper" | "oceanic";
|
6
|
+
/** The title of the alert placed above the text of the alert. Can be used alone */
|
7
|
+
title?: any;
|
8
|
+
/** The text of the alert placed below the title of the alert. Can be used alone */
|
9
|
+
text: any;
|
10
|
+
/** The duration for the alert to stay on the screen */
|
11
|
+
duration?: number;
|
12
|
+
variant?: "normal" | "solid" | "top-accent" | "left-accent" | "right-accent" | "bottom-accent";
|
13
|
+
direction?: DirectionType;
|
14
|
+
actions?: [
|
15
|
+
{
|
16
|
+
label: string;
|
17
|
+
onClick: any;
|
18
|
+
variant: "outline" | "link" | "default" | "destructive" | "secondary" | "ghost";
|
19
|
+
}
|
20
|
+
];
|
21
|
+
persistent?: boolean;
|
22
|
+
icon?: any;
|
23
|
+
className?: any;
|
24
|
+
onAlertClosed?: any;
|
25
|
+
};
|
26
|
+
declare const Alert: React__default.FunctionComponent<AlertTypes>;
|
27
|
+
|
28
|
+
export { Alert };
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
import { S as SeverityType, D as DirectionType } from '../commonTypes-N7XOVCit.js';
|
3
|
+
|
4
|
+
type AlertTypes = {
|
5
|
+
severity?: SeverityType | "hyper" | "oceanic";
|
6
|
+
/** The title of the alert placed above the text of the alert. Can be used alone */
|
7
|
+
title?: any;
|
8
|
+
/** The text of the alert placed below the title of the alert. Can be used alone */
|
9
|
+
text: any;
|
10
|
+
/** The duration for the alert to stay on the screen */
|
11
|
+
duration?: number;
|
12
|
+
variant?: "normal" | "solid" | "top-accent" | "left-accent" | "right-accent" | "bottom-accent";
|
13
|
+
direction?: DirectionType;
|
14
|
+
actions?: [
|
15
|
+
{
|
16
|
+
label: string;
|
17
|
+
onClick: any;
|
18
|
+
variant: "outline" | "link" | "default" | "destructive" | "secondary" | "ghost";
|
19
|
+
}
|
20
|
+
];
|
21
|
+
persistent?: boolean;
|
22
|
+
icon?: any;
|
23
|
+
className?: any;
|
24
|
+
onAlertClosed?: any;
|
25
|
+
};
|
26
|
+
declare const Alert: React__default.FunctionComponent<AlertTypes>;
|
27
|
+
|
28
|
+
export { Alert };
|