@sikka/hawa 0.23.7-next → 0.23.8-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.
Files changed (161) hide show
  1. package/dist/Label-fkQ4ebuH.d.mts +12 -0
  2. package/dist/Label-fkQ4ebuH.d.ts +12 -0
  3. package/dist/accordion/index.d.mts +51 -0
  4. package/dist/accordion/index.d.ts +51 -0
  5. package/dist/accordion/index.mjs +98 -21
  6. package/dist/alert/index.d.mts +28 -0
  7. package/dist/alert/index.d.ts +28 -0
  8. package/dist/alert/index.mjs +397 -5
  9. package/dist/appStores/index.d.mts +8 -0
  10. package/dist/appStores/index.d.ts +8 -0
  11. package/dist/avatar/index.d.mts +15 -0
  12. package/dist/avatar/index.d.ts +15 -0
  13. package/dist/backToTop/index.d.mts +15 -0
  14. package/dist/backToTop/index.d.ts +15 -0
  15. package/dist/backToTop/index.mjs +2 -5
  16. package/dist/badge/index.d.mts +13 -0
  17. package/dist/badge/index.d.ts +13 -0
  18. package/dist/breadcrumb/index.d.mts +14 -0
  19. package/dist/breadcrumb/index.d.ts +14 -0
  20. package/dist/button/index.d.mts +16 -0
  21. package/dist/button/index.d.ts +16 -0
  22. package/dist/button/index.mjs +254 -5
  23. package/dist/card/index.d.mts +17 -0
  24. package/dist/card/index.d.ts +17 -0
  25. package/dist/checkbox/index.d.mts +20 -0
  26. package/dist/checkbox/index.d.ts +20 -0
  27. package/dist/chip/index.d.mts +2 -0
  28. package/dist/chip/index.d.ts +2 -0
  29. package/dist/chip/index.mjs +0 -1
  30. package/dist/{chunk-PUQV6URH.mjs → chunk-3N6JJKMN.mjs} +83 -4
  31. package/dist/{chunk-VFP56EVG.mjs → chunk-TNAHW35O.mjs} +35 -1
  32. package/dist/combobox/index.d.mts +31 -0
  33. package/dist/combobox/index.d.ts +31 -0
  34. package/dist/combobox/index.mjs +483 -34
  35. package/dist/command/index.d.mts +48 -0
  36. package/dist/command/index.d.ts +48 -0
  37. package/dist/command/index.mjs +425 -12
  38. package/dist/commonTypes-N7XOVCit.d.mts +5 -0
  39. package/dist/commonTypes-N7XOVCit.d.ts +5 -0
  40. package/dist/commonTypes-PBumfOBg.d.mts +3 -0
  41. package/dist/commonTypes-PBumfOBg.d.ts +3 -0
  42. package/dist/commonTypes-_11epZYh.d.mts +4 -0
  43. package/dist/commonTypes-_11epZYh.d.ts +4 -0
  44. package/dist/commonTypes-eIwARo5g.d.mts +4 -0
  45. package/dist/commonTypes-eIwARo5g.d.ts +4 -0
  46. package/dist/dataTable/index.d.mts +40 -0
  47. package/dist/dataTable/index.d.ts +40 -0
  48. package/dist/dataTable/index.mjs +717 -69
  49. package/dist/dialog/index.d.mts +57 -0
  50. package/dist/dialog/index.d.ts +57 -0
  51. package/dist/dialog/index.mjs +298 -15
  52. package/dist/dropdownMenu/index.d.mts +95 -0
  53. package/dist/dropdownMenu/index.d.ts +95 -0
  54. package/dist/dropdownMenu/index.mjs +0 -1
  55. package/dist/fileDropzone/index.d.mts +37 -0
  56. package/dist/fileDropzone/index.d.ts +37 -0
  57. package/dist/fileDropzone/index.mjs +432 -40
  58. package/dist/index-DUZFcPRO.d.mts +38 -0
  59. package/dist/index-DUZFcPRO.d.ts +38 -0
  60. package/dist/input/index.d.mts +43 -0
  61. package/dist/input/index.d.ts +43 -0
  62. package/dist/input/index.mjs +238 -6
  63. package/dist/label/index.d.mts +12 -0
  64. package/dist/label/index.d.ts +12 -0
  65. package/dist/label/index.mjs +87 -5
  66. package/dist/loading/index.d.mts +15 -0
  67. package/dist/loading/index.d.ts +15 -0
  68. package/dist/loading/index.mjs +179 -3
  69. package/dist/logos/index.d.mts +27 -0
  70. package/dist/logos/index.d.ts +27 -0
  71. package/dist/navigationMenu/index.d.mts +40 -0
  72. package/dist/navigationMenu/index.d.ts +40 -0
  73. package/dist/phoneInput/index.d.mts +23 -0
  74. package/dist/phoneInput/index.d.ts +23 -0
  75. package/dist/phoneInput/index.mjs +272 -14
  76. package/dist/pinInput/index.d.mts +20 -0
  77. package/dist/pinInput/index.d.ts +20 -0
  78. package/dist/popover/index.d.mts +23 -0
  79. package/dist/popover/index.d.ts +23 -0
  80. package/dist/popover/index.mjs +62 -5
  81. package/dist/progress/index.d.mts +6 -0
  82. package/dist/progress/index.d.ts +6 -0
  83. package/dist/radio/index.d.mts +38 -0
  84. package/dist/radio/index.d.ts +38 -0
  85. package/dist/radio/index.mjs +102 -19
  86. package/dist/scrollArea/index.d.mts +11 -0
  87. package/dist/scrollArea/index.d.ts +11 -0
  88. package/dist/select/index.d.mts +50 -0
  89. package/dist/select/index.d.ts +50 -0
  90. package/dist/select/index.mjs +270 -8
  91. package/dist/sheet/index.d.mts +30 -0
  92. package/dist/sheet/index.d.ts +30 -0
  93. package/dist/skeleton/index.d.mts +10 -0
  94. package/dist/skeleton/index.d.ts +10 -0
  95. package/dist/skeleton/index.mjs +29 -4
  96. package/dist/sortButton/index.d.mts +10 -0
  97. package/dist/sortButton/index.d.ts +10 -0
  98. package/dist/sortButton/index.mjs +260 -10
  99. package/dist/splitButton/index.d.mts +24 -0
  100. package/dist/splitButton/index.d.ts +24 -0
  101. package/dist/splitButton/index.mjs +261 -11
  102. package/dist/stopPropagationWrapper/index.d.mts +5 -0
  103. package/dist/stopPropagationWrapper/index.d.ts +5 -0
  104. package/dist/switch/index.d.mts +12 -0
  105. package/dist/switch/index.d.ts +12 -0
  106. package/dist/table/index.d.mts +21 -0
  107. package/dist/table/index.d.ts +21 -0
  108. package/dist/table/index.mjs +112 -10
  109. package/dist/tabs/index.d.mts +15 -0
  110. package/dist/tabs/index.d.ts +15 -0
  111. package/dist/textarea/index.d.mts +16 -0
  112. package/dist/textarea/index.d.ts +16 -0
  113. package/dist/textarea/index.mjs +1 -2
  114. package/dist/tooltip/index.d.mts +27 -0
  115. package/dist/tooltip/index.d.ts +27 -0
  116. package/dist/tooltip/index.mjs +53 -3
  117. package/package.json +4 -7
  118. package/dist/blocks/auth/index.js +0 -4182
  119. package/dist/blocks/auth/index.mjs +0 -1057
  120. package/dist/blocks/feedback/index.js +0 -1531
  121. package/dist/blocks/feedback/index.mjs +0 -493
  122. package/dist/blocks/index.js +0 -8119
  123. package/dist/blocks/index.mjs +0 -2535
  124. package/dist/blocks/misc/index.js +0 -1163
  125. package/dist/blocks/misc/index.mjs +0 -322
  126. package/dist/blocks/pricing/index.js +0 -3320
  127. package/dist/blocks/pricing/index.mjs +0 -2161
  128. package/dist/chunk-2IL2HDEQ.mjs +0 -315
  129. package/dist/chunk-2R2QPJT7.mjs +0 -7519
  130. package/dist/chunk-343SRWR4.mjs +0 -146
  131. package/dist/chunk-3KRJLV55.mjs +0 -135
  132. package/dist/chunk-677VOLD4.mjs +0 -464
  133. package/dist/chunk-6CLNGID2.mjs +0 -0
  134. package/dist/chunk-6QJMQV2X.mjs +0 -0
  135. package/dist/chunk-A25EXELT.mjs +0 -131
  136. package/dist/chunk-AFOVBTLE.mjs +0 -69
  137. package/dist/chunk-B6UCD4GP.mjs +0 -0
  138. package/dist/chunk-F6TKEDDP.mjs +0 -57
  139. package/dist/chunk-FNVYY7ND.mjs +0 -22
  140. package/dist/chunk-FRDYTR55.mjs +0 -151
  141. package/dist/chunk-GDIBR47V.mjs +0 -0
  142. package/dist/chunk-J5NJEHQU.mjs +0 -34
  143. package/dist/chunk-P2O6R3S6.mjs +0 -268
  144. package/dist/chunk-QGKW5R5F.mjs +0 -196
  145. package/dist/chunk-QMV6AK2B.mjs +0 -145
  146. package/dist/chunk-SYB66JGL.mjs +0 -84
  147. package/dist/chunk-TR56G3NM.mjs +0 -2350
  148. package/dist/chunk-UAVBFK53.mjs +0 -346
  149. package/dist/chunk-XPTZGXC7.mjs +0 -124
  150. package/dist/chunk-Z3JCNSB3.mjs +0 -42
  151. package/dist/chunk-Z4M72OD3.mjs +0 -167
  152. package/dist/elements/index.js +0 -7719
  153. package/dist/elements/index.mjs +0 -285
  154. package/dist/hooks/index.js +0 -451
  155. package/dist/hooks/index.mjs +0 -254
  156. package/dist/index.js +0 -11987
  157. package/dist/index.mjs +0 -11760
  158. package/dist/layout/index.js +0 -4373
  159. package/dist/layout/index.mjs +0 -1381
  160. package/dist/types/index.js +0 -18
  161. package/dist/types/index.mjs +0 -0
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+
3
+ type PositionType = "top" | "bottom" | "right" | "left";
4
+
5
+ type LabelProps = {
6
+ hint?: React.ReactNode;
7
+ hintSide?: PositionType;
8
+ htmlFor?: string;
9
+ required?: boolean;
10
+ };
11
+
12
+ export type { LabelProps as L };
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+
3
+ type PositionType = "top" | "bottom" | "right" | "left";
4
+
5
+ type LabelProps = {
6
+ hint?: React.ReactNode;
7
+ hintSide?: PositionType;
8
+ htmlFor?: string;
9
+ required?: boolean;
10
+ };
11
+
12
+ export type { LabelProps as L };
@@ -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 };
@@ -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 React3 from "react";
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 React from "react";
91
+ import * as React2 from "react";
15
92
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
16
- var AccordionContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React.createElement(
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__ */ React.createElement("div", { className: "hawa-bg-background hawa-p-4" }, children)
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 React2 from "react";
108
+ import * as React3 from "react";
32
109
  import * as AccordionPrimitive2 from "@radix-ui/react-accordion";
33
- var AccordionTrigger = React2.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React2.createElement(AccordionPrimitive2.Header, { className: "hawa-flex" }, /* @__PURE__ */ React2.createElement(
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__ */ React2.createElement(
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__ */ React2.createElement("path", { d: "m6 9 6 6 6-6" })
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 = React3.forwardRef(
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__ */ React3.createElement(AccordionPrimitive3.Root, { type: props.type, collapsible: true }, /* @__PURE__ */ React3.createElement(
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__ */ React3.createElement(
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__ */ React3.createElement(
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__ */ React3.createElement(
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__ */ React3.createElement(Chip, { ...item.chip })
190
+ item.chip && /* @__PURE__ */ React4.createElement(Chip, { ...item.chip })
114
191
  )
115
192
  ),
116
- /* @__PURE__ */ React3.createElement(
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 React4 from "react";
213
+ import * as React5 from "react";
137
214
  import * as AccordionPrimitive4 from "@radix-ui/react-accordion";
138
- var AccordionItem = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React4.createElement(AccordionPrimitive4.Item, { ref, className: cn(className), ...props }));
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 };