@sikka/hawa 0.26.19-next → 0.26.20

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 (188) hide show
  1. package/dist/accordion/index.js +10 -12
  2. package/dist/accordion/index.mjs +8 -8
  3. package/dist/alert/index.js +8 -7
  4. package/dist/alert/index.mjs +7 -6
  5. package/dist/appLayout/index.js +13 -12
  6. package/dist/appLayout/index.mjs +12 -11
  7. package/dist/appMenubar/index.js +4 -4
  8. package/dist/appMenubar/index.mjs +2 -2
  9. package/dist/appStores/index.js +2 -2
  10. package/dist/appStores/index.mjs +1 -1
  11. package/dist/appTabs/index.js +4 -4
  12. package/dist/appTabs/index.mjs +2 -2
  13. package/dist/appTopbar/index.js +6 -6
  14. package/dist/appTopbar/index.mjs +4 -4
  15. package/dist/avatar/index.js +5 -5
  16. package/dist/avatar/index.mjs +4 -4
  17. package/dist/backToTop/index.js +8 -7
  18. package/dist/backToTop/index.mjs +7 -6
  19. package/dist/badge/index.js +4 -4
  20. package/dist/badge/index.mjs +2 -2
  21. package/dist/blocks/auth/index.js +38 -37
  22. package/dist/blocks/auth/index.mjs +24 -24
  23. package/dist/blocks/feedback/index.js +27 -26
  24. package/dist/blocks/feedback/index.mjs +11 -11
  25. package/dist/blocks/index.js +77 -76
  26. package/dist/blocks/index.mjs +34 -34
  27. package/dist/blocks/misc/index.js +31 -30
  28. package/dist/blocks/misc/index.mjs +14 -14
  29. package/dist/blocks/pricing/index.js +123 -122
  30. package/dist/blocks/pricing/index.mjs +18 -18
  31. package/dist/breadcrumb/index.js +2 -2
  32. package/dist/breadcrumb/index.mjs +1 -1
  33. package/dist/button/index.js +6 -5
  34. package/dist/button/index.mjs +5 -4
  35. package/dist/card/index.js +4 -4
  36. package/dist/card/index.mjs +2 -2
  37. package/dist/carousel/index.d.mts +1 -1
  38. package/dist/carousel/index.d.ts +1 -1
  39. package/dist/carousel/index.js +9 -18
  40. package/dist/carousel/index.mjs +7 -16
  41. package/dist/checkbox/index.js +4 -4
  42. package/dist/checkbox/index.mjs +2 -2
  43. package/dist/chip/index.js +4 -4
  44. package/dist/chip/index.mjs +2 -2
  45. package/dist/{chunk-343SRWR4.mjs → chunk-3GBITBPL.mjs} +2 -2
  46. package/dist/{chunk-TTKRRN7S.mjs → chunk-4IOG44R3.mjs} +2 -2
  47. package/dist/{chunk-3N6JJKMN.mjs → chunk-65TG6EVD.mjs} +5 -4
  48. package/dist/{chunk-LT3VHLAG.mjs → chunk-APZM24KK.mjs} +2 -2
  49. package/dist/{chunk-FYH74ZRQ.mjs → chunk-AREFDTXK.mjs} +9 -8
  50. package/dist/{chunk-FNVYY7ND.mjs → chunk-D22AALLE.mjs} +1 -1
  51. package/dist/{chunk-OD5WIQGQ.mjs → chunk-FDKCMEMD.mjs} +2 -2
  52. package/dist/{chunk-KNHT2UBG.mjs → chunk-KMCIHW76.mjs} +2 -2
  53. package/dist/{chunk-M2ZS3EDT.mjs → chunk-OAXF3RCQ.mjs} +2 -2
  54. package/dist/chunk-OTGCLEKC.mjs +62 -0
  55. package/dist/{chunk-OE23TTPS.mjs → chunk-POIP5U4M.mjs} +3 -3
  56. package/dist/{chunk-EYUG3GRC.mjs → chunk-SJ2Z6ZOG.mjs} +4 -4
  57. package/dist/{chunk-WRZFWCOQ.mjs → chunk-TGZRVRLP.mjs} +4 -4
  58. package/dist/{chunk-TE3BKEXL.mjs → chunk-TWNGV3RE.mjs} +1 -1
  59. package/dist/{chunk-ATUSR6VI.mjs → chunk-U3TZWNDZ.mjs} +4 -4
  60. package/dist/{chunk-W77KCP35.mjs → chunk-VQQ6MUX5.mjs} +2 -2
  61. package/dist/{chunk-SUS6O2PO.mjs → chunk-WPSUV4AD.mjs} +21 -21
  62. package/dist/{chunk-3KMBSNM3.mjs → chunk-Z5SL5QTQ.mjs} +11 -10
  63. package/dist/{chunk-ZCZ3WARS.mjs → chunk-ZS3FB3PO.mjs} +1 -1
  64. package/dist/codeBlock/index.js +153 -2454
  65. package/dist/codeBlock/index.mjs +129 -2393
  66. package/dist/collapsible/index.js +2 -2
  67. package/dist/collapsible/index.mjs +1 -1
  68. package/dist/colorPicker/index.js +7 -7
  69. package/dist/colorPicker/index.mjs +126 -2
  70. package/dist/combobox/index.js +193 -193
  71. package/dist/combobox/index.mjs +8 -8
  72. package/dist/command/index.js +5 -5
  73. package/dist/command/index.mjs +1 -1
  74. package/dist/copyrights/index.js +2 -2
  75. package/dist/copyrights/index.mjs +1 -1
  76. package/dist/count/index.js +2 -2
  77. package/dist/count/index.mjs +1 -1
  78. package/dist/dataTable/index.js +16 -15
  79. package/dist/dataTable/index.mjs +15 -14
  80. package/dist/destroyableCard/index.js +6 -8
  81. package/dist/destroyableCard/index.mjs +4 -4
  82. package/dist/dialog/index.js +4 -4
  83. package/dist/dialog/index.mjs +2 -2
  84. package/dist/docsLayout/index.js +12 -11
  85. package/dist/docsLayout/index.mjs +11 -10
  86. package/dist/docsSidebar/index.js +4 -4
  87. package/dist/docsSidebar/index.mjs +2 -2
  88. package/dist/dropdownMenu/index.js +4 -4
  89. package/dist/dropdownMenu/index.mjs +2 -2
  90. package/dist/elements/index.d.mts +1 -1
  91. package/dist/elements/index.d.ts +1 -1
  92. package/dist/elements/index.js +155 -163
  93. package/dist/elements/index.mjs +47 -56
  94. package/dist/fileDropzone/index.js +10 -9
  95. package/dist/fileDropzone/index.mjs +9 -8
  96. package/dist/fileUploader/index.js +2 -2
  97. package/dist/fileUploader/index.mjs +1 -1
  98. package/dist/glow/index.js +2 -2
  99. package/dist/glow/index.mjs +1 -1
  100. package/dist/hooks/index.d.mts +7 -7
  101. package/dist/hooks/index.d.ts +7 -7
  102. package/dist/hooks/index.js +16 -16
  103. package/dist/hooks/index.mjs +14 -14
  104. package/dist/index.css +0 -465
  105. package/dist/index.d.mts +8 -8
  106. package/dist/index.d.ts +8 -8
  107. package/dist/index.js +213 -221
  108. package/dist/index.mjs +212 -220
  109. package/dist/input/index.js +8 -8
  110. package/dist/input/index.mjs +4 -4
  111. package/dist/interfaceSettings/index.js +9 -9
  112. package/dist/interfaceSettings/index.mjs +4 -4
  113. package/dist/label/index.js +5 -5
  114. package/dist/label/index.mjs +4 -4
  115. package/dist/layout/index.d.mts +1 -1
  116. package/dist/layout/index.d.ts +1 -1
  117. package/dist/layout/index.js +31 -30
  118. package/dist/layout/index.mjs +16 -16
  119. package/dist/loading/index.js +4 -4
  120. package/dist/loading/index.mjs +2 -2
  121. package/dist/logos/index.js +2 -2
  122. package/dist/logos/index.mjs +1 -1
  123. package/dist/navbar/index.js +5 -5
  124. package/dist/navbar/index.mjs +4 -4
  125. package/dist/navigationMenu/index.js +4 -4
  126. package/dist/navigationMenu/index.mjs +2 -2
  127. package/dist/pagination/index.js +4 -4
  128. package/dist/pagination/index.mjs +2 -2
  129. package/dist/passwordInput/index.js +15 -15
  130. package/dist/passwordInput/index.mjs +13 -13
  131. package/dist/phoneInput/index.js +11 -11
  132. package/dist/phoneInput/index.mjs +10 -10
  133. package/dist/pinInput/index.js +4 -4
  134. package/dist/pinInput/index.mjs +2 -2
  135. package/dist/popover/index.js +4 -4
  136. package/dist/popover/index.mjs +2 -2
  137. package/dist/progress/index.js +4 -4
  138. package/dist/progress/index.mjs +2 -2
  139. package/dist/progressCircle/index.js +4 -4
  140. package/dist/progressCircle/index.mjs +2 -2
  141. package/dist/radio/index.js +7 -7
  142. package/dist/radio/index.mjs +6 -6
  143. package/dist/scrollArea/index.js +4 -4
  144. package/dist/scrollArea/index.mjs +2 -2
  145. package/dist/scrollIndicator/index.js +2 -2
  146. package/dist/scrollIndicator/index.mjs +1 -1
  147. package/dist/select/index.js +8 -8
  148. package/dist/select/index.mjs +7 -7
  149. package/dist/separator/index.js +4 -4
  150. package/dist/separator/index.mjs +2 -2
  151. package/dist/sheet/index.js +4 -4
  152. package/dist/sheet/index.mjs +2 -2
  153. package/dist/sidebar/index.js +6 -6
  154. package/dist/sidebar/index.mjs +4 -4
  155. package/dist/signature/index.js +8 -8
  156. package/dist/signature/index.mjs +6 -6
  157. package/dist/simpleTable/index.js +6 -6
  158. package/dist/simpleTable/index.mjs +5 -5
  159. package/dist/skeleton/index.js +4 -4
  160. package/dist/skeleton/index.mjs +2 -2
  161. package/dist/slider/index.js +4 -4
  162. package/dist/slider/index.mjs +2 -2
  163. package/dist/sortButton/index.js +8 -7
  164. package/dist/sortButton/index.mjs +2 -2
  165. package/dist/splitButton/index.js +9 -8
  166. package/dist/splitButton/index.mjs +4 -4
  167. package/dist/stats/index.js +7 -7
  168. package/dist/stats/index.mjs +6 -6
  169. package/dist/stopPropagationWrapper/index.js +2 -2
  170. package/dist/stopPropagationWrapper/index.mjs +1 -1
  171. package/dist/switch/index.js +4 -4
  172. package/dist/switch/index.mjs +2 -2
  173. package/dist/table/index.js +4 -4
  174. package/dist/table/index.mjs +2 -2
  175. package/dist/tabs/index.js +5 -5
  176. package/dist/tabs/index.mjs +4 -4
  177. package/dist/textarea/index.js +7 -7
  178. package/dist/textarea/index.mjs +6 -6
  179. package/dist/toast/index.js +4 -4
  180. package/dist/toast/index.mjs +2 -2
  181. package/dist/toaster/index.js +6 -6
  182. package/dist/toaster/index.mjs +5 -5
  183. package/dist/tooltip/index.js +4 -4
  184. package/dist/tooltip/index.mjs +3 -3
  185. package/dist/types/index.js +1 -1
  186. package/package.json +16 -42
  187. package/README.md +0 -107
  188. package/dist/chunk-S36W2LDN.mjs +0 -189
@@ -1,96 +1,44 @@
1
1
  import {
2
- Label,
3
2
  Tooltip,
4
3
  cn
5
- } from "../chunk-S36W2LDN.mjs";
4
+ } from "../chunk-OTGCLEKC.mjs";
6
5
 
7
- // components/elements/codeBlock/CodeBlock.tsx
8
- import React58, { useState as useState19 } from "react";
6
+ // elements/codeBlock/CodeBlock.tsx
7
+ import React3, { useState as useState2 } from "react";
9
8
  import { Highlight, themes } from "prism-react-renderer";
10
9
 
11
- // components/elements/card/Card.tsx
12
- import * as React from "react";
13
- var Card = React.forwardRef(
14
- ({ className, variant = "default", clickable = false, ...props }, ref) => {
15
- let variantStyles = {
16
- default: cn(
17
- "hawa-rounded-lg hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
18
- clickable && "hawa-cursor-pointer hawa-transition-all hover:hawa-drop-shadow-md dark:hover:dark-shadow"
19
- ),
20
- neoBrutalism: cn(
21
- "neo-brutalism",
22
- // "hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] transition-all uppercase font-mono dark:bg-black font-bold py-2 px-4 rounded border-2 border-primary shadow-color-primary transition-[transform_50ms, box-shadow_50ms]",
23
- clickable && "hawa-cursor-pointer active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"
24
- )
25
- };
26
- return /* @__PURE__ */ React.createElement(
27
- "div",
28
- {
29
- ref,
30
- className: cn(className, variantStyles[variant]),
31
- ...props
32
- }
33
- );
34
- }
35
- );
36
- var CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
37
- "div",
38
- {
39
- ref,
40
- className: cn(
41
- "hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
42
- className
43
- ),
44
- ...props
45
- }
46
- ));
47
- var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
48
- "h3",
49
- {
50
- ref,
51
- className: cn("hawa-text-2xl hawa-font-semibold ", className),
52
- ...props
53
- }
54
- ));
55
- var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
56
- "p",
57
- {
58
- ref,
59
- className: cn("hawa-text-sm hawa-text-muted-foreground", className),
60
- ...props
61
- }
62
- ));
63
- var CardContent = React.forwardRef(
64
- ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React.createElement(
65
- "div",
66
- {
67
- ref,
68
- className: cn(
69
- noPadding ? "hawa-p-0" : "hawa-p-6",
70
- headless ? "hawa-pt-6" : "hawa-pt-0",
71
- className
72
- ),
73
- ...props
10
+ // hooks/useClipboard.ts
11
+ import { useState } from "react";
12
+ function useClipboard({ timeout = 2e3 } = {}) {
13
+ const [error, setError] = useState(null);
14
+ const [copied, setCopied] = useState(false);
15
+ const [copyTimeout, setCopyTimeout] = useState(null);
16
+ const handleCopyResult = (value) => {
17
+ clearTimeout(copyTimeout);
18
+ setCopyTimeout(setTimeout(() => setCopied(false), timeout));
19
+ setCopied(value);
20
+ };
21
+ const copy = (valueToCopy) => {
22
+ if ("clipboard" in navigator) {
23
+ navigator.clipboard.writeText(valueToCopy).then(() => handleCopyResult(true)).catch((err) => setError(err));
24
+ } else {
25
+ setError(new Error("useClipboard: navigator.clipboard is not supported"));
74
26
  }
75
- )
76
- );
77
- var CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
78
- "div",
79
- {
80
- ref,
81
- className: cn("hawa-flex hawa-items-center hawa-p-6 hawa-pt-0", className),
82
- ...props
83
- }
84
- ));
85
- CardDescription.displayName = "CardDescription";
86
- CardContent.displayName = "CardContent";
87
- CardHeader.displayName = "CardHeader";
88
- CardFooter.displayName = "CardFooter";
89
- CardTitle.displayName = "CardTitle";
90
- Card.displayName = "Card";
27
+ };
28
+ const reset = () => {
29
+ setCopied(false);
30
+ setError(null);
31
+ clearTimeout(copyTimeout);
32
+ };
33
+ return { copy, reset, error, copied };
34
+ }
91
35
 
92
- // components/elements/loading/Loading.tsx
93
- import React2 from "react";
36
+ // elements/button/Button.tsx
37
+ import * as React2 from "react";
38
+ import { cva } from "class-variance-authority";
39
+
40
+ // elements/loading/Loading.tsx
41
+ import React from "react";
94
42
  var Loading = ({
95
43
  design = "spinner",
96
44
  size = "sm",
@@ -98,7 +46,7 @@ var Loading = ({
98
46
  color,
99
47
  ...props
100
48
  }) => {
101
- let sizeStyles2 = {
49
+ let sizeStyles = {
102
50
  button: "hawa-h-4 hawa-w-4",
103
51
  xs: "hawa-h-1 hawa-w-1",
104
52
  sm: "hawa-h-6 hawa-w-6",
@@ -112,39 +60,39 @@ var Loading = ({
112
60
  };
113
61
  switch (design.split("-")[0]) {
114
62
  case "dots":
115
- return /* @__PURE__ */ React2.createElement(
63
+ return /* @__PURE__ */ React.createElement(
116
64
  "div",
117
65
  {
118
66
  className: cn("hawa-flex hawa-flex-row hawa-gap-2", props.className)
119
67
  },
120
- /* @__PURE__ */ React2.createElement(
68
+ /* @__PURE__ */ React.createElement(
121
69
  "div",
122
70
  {
123
71
  className: cn(
124
72
  "hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
125
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles2[size],
73
+ size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
126
74
  animationStyles[design.split("-")[1]],
127
75
  color ? color : "hawa-bg-primary"
128
76
  )
129
77
  }
130
78
  ),
131
- /* @__PURE__ */ React2.createElement(
79
+ /* @__PURE__ */ React.createElement(
132
80
  "div",
133
81
  {
134
82
  className: cn(
135
83
  "hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
136
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles2[size],
84
+ size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
137
85
  animationStyles[design.split("-")[1]],
138
86
  color ? color : "hawa-bg-primary"
139
87
  )
140
88
  }
141
89
  ),
142
- /* @__PURE__ */ React2.createElement(
90
+ /* @__PURE__ */ React.createElement(
143
91
  "div",
144
92
  {
145
93
  className: cn(
146
94
  "hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
147
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles2[size],
95
+ size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
148
96
  animationStyles[design.split("-")[1]],
149
97
  color ? color : "hawa-bg-primary"
150
98
  )
@@ -152,15 +100,15 @@ var Loading = ({
152
100
  )
153
101
  );
154
102
  case "square":
155
- return /* @__PURE__ */ React2.createElement(
103
+ return /* @__PURE__ */ React.createElement(
156
104
  "svg",
157
105
  {
158
- className: cn("squircle-container", sizeStyles2[size]),
106
+ className: cn("squircle-container", sizeStyles[size]),
159
107
  viewBox: "0 0 35 35",
160
108
  height: "35",
161
109
  width: "35"
162
110
  },
163
- /* @__PURE__ */ React2.createElement(
111
+ /* @__PURE__ */ React.createElement(
164
112
  "rect",
165
113
  {
166
114
  className: "squircle-track",
@@ -172,7 +120,7 @@ var Loading = ({
172
120
  height: "32.5"
173
121
  }
174
122
  ),
175
- /* @__PURE__ */ React2.createElement(
123
+ /* @__PURE__ */ React.createElement(
176
124
  "rect",
177
125
  {
178
126
  className: "square-car",
@@ -187,10 +135,10 @@ var Loading = ({
187
135
  )
188
136
  );
189
137
  case "squircle":
190
- return /* @__PURE__ */ React2.createElement(
138
+ return /* @__PURE__ */ React.createElement(
191
139
  "svg",
192
140
  {
193
- className: cn("squircle-container", sizeStyles2[size]),
141
+ className: cn("squircle-container", sizeStyles[size]),
194
142
  x: "0px",
195
143
  y: "0px",
196
144
  viewBox: "0 0 37 37",
@@ -198,7 +146,7 @@ var Loading = ({
198
146
  width: "37",
199
147
  preserveAspectRatio: "xMidYMid meet"
200
148
  },
201
- /* @__PURE__ */ React2.createElement(
149
+ /* @__PURE__ */ React.createElement(
202
150
  "path",
203
151
  {
204
152
  className: "squircle-track",
@@ -208,7 +156,7 @@ var Loading = ({
208
156
  d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
209
157
  }
210
158
  ),
211
- /* @__PURE__ */ React2.createElement(
159
+ /* @__PURE__ */ React.createElement(
212
160
  "path",
213
161
  {
214
162
  className: "squircle-car",
@@ -220,19 +168,19 @@ var Loading = ({
220
168
  )
221
169
  );
222
170
  case "progress":
223
- return /* @__PURE__ */ React2.createElement("div", { className: "progress-loading" });
171
+ return /* @__PURE__ */ React.createElement("div", { className: "progress-loading" });
224
172
  case "orbit":
225
- return /* @__PURE__ */ React2.createElement("div", { className: "orbit-container" });
173
+ return /* @__PURE__ */ React.createElement("div", { className: "orbit-container" });
226
174
  default:
227
- return /* @__PURE__ */ React2.createElement(
175
+ return /* @__PURE__ */ React.createElement(
228
176
  "svg",
229
177
  {
230
- className: cn("circle-container", sizeStyles2[size]),
178
+ className: cn("circle-container", sizeStyles[size]),
231
179
  viewBox: "0 0 40 40",
232
180
  height: "40",
233
181
  width: "40"
234
182
  },
235
- /* @__PURE__ */ React2.createElement(
183
+ /* @__PURE__ */ React.createElement(
236
184
  "circle",
237
185
  {
238
186
  className: cn("circle-track", {
@@ -247,7 +195,7 @@ var Loading = ({
247
195
  fill: "none"
248
196
  }
249
197
  ),
250
- /* @__PURE__ */ React2.createElement(
198
+ /* @__PURE__ */ React.createElement(
251
199
  "circle",
252
200
  {
253
201
  className: cn("circle-car", {
@@ -266,2291 +214,79 @@ var Loading = ({
266
214
  }
267
215
  };
268
216
 
269
- // components/elements/skeleton/Skeleton.tsx
270
- import React3 from "react";
271
- function Skeleton({
272
- className,
273
- content,
274
- animation = "pulse",
275
- ...props
276
- }) {
277
- const animationStyles = {
278
- none: "hawa-rounded hawa-bg-muted",
279
- pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
280
- shimmer: "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10"
281
- };
282
- return /* @__PURE__ */ React3.createElement(
283
- "div",
284
- {
285
- className: cn(
286
- animationStyles[animation],
287
- content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
288
- className
289
- ),
290
- ...props
291
- },
292
- content && content
293
- );
294
- }
295
-
296
- // components/elements/dropdownMenu/DropdownMenu.tsx
297
- import * as React4 from "react";
298
- import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
299
- var DropdownMenuSubTrigger = React4.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React4.createElement(
300
- DropdownMenuPrimitive.SubTrigger,
217
+ // elements/button/Button.tsx
218
+ var buttonVariants = cva(
219
+ "hawa-inline-flex hawa-items-center hawa-select-none hawa-rounded-md hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
301
220
  {
302
- ref,
303
- className: cn(
304
- "hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-sm hawa-text-sm hawa-outline-none focus:hawa-bg-accent data-[state=open]:hawa-bg-accent",
305
- inset && "hawa-pl-8",
306
- className
307
- ),
308
- ...props
309
- },
310
- /* @__PURE__ */ React4.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
311
- " ",
312
- /* @__PURE__ */ React4.createElement(
313
- "svg",
314
- {
315
- "aria-label": "Chevron Right Icon",
316
- stroke: "currentColor",
317
- fill: "currentColor",
318
- strokeWidth: "0",
319
- viewBox: "0 0 16 16",
320
- height: "1em",
321
- width: "1em",
322
- className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
323
- },
324
- /* @__PURE__ */ React4.createElement(
325
- "path",
326
- {
327
- fillRule: "evenodd",
328
- d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
221
+ variants: {
222
+ variant: {
223
+ default: "hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary/90",
224
+ light: "hawa-bg-primary/20 hawa-text-primary hover:hawa-bg-primary/40",
225
+ destructive: "hawa-bg-destructive hawa-text-destructive-foreground hover:hawa-bg-destructive/90",
226
+ outline: "hawa-border hawa-border-input hawa-bg-transparent hover:hawa-bg-accent hover:hawa-text-accent-foreground",
227
+ secondary: "hawa-bg-secondary hawa-text-secondary-foreground hover:hawa-bg-secondary/80",
228
+ ghost: "hover:hawa-bg-accent hover:hawa-text-accent-foreground",
229
+ link: "hawa-text-primary hawa-underline-offset-4 hover:hawa-underline",
230
+ combobox: "hawa-bg-background hawa-border",
231
+ neoBrutalism: "neo-brutalism"
232
+ // "hawa-cursor-pointer hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active shadow-color-primary active:shadow-color-primary-active",
233
+ },
234
+ size: {
235
+ default: "hawa-h-10 hawa-px-4 hawa-py-2",
236
+ heightless: "hawa-px-4 hawa-py-4",
237
+ xs: "hawa-h-fit hawa-min-h-[25px] hawa-py-1 hawa-text-[10px] hawa-px-2 ",
238
+ sm: "hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3",
239
+ lg: "hawa-h-11 hawa-rounded-md hawa-px-8",
240
+ xl: "hawa-h-14 hawa-rounded-md hawa-px-10",
241
+ icon: "hawa-h-10 hawa-w-10",
242
+ smallIcon: "hawa-h-7 hawa-w-7"
329
243
  }
330
- )
331
- )
332
- ));
333
- DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
334
- var DropdownMenuSubContent = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React4.createElement(
335
- DropdownMenuPrimitive.SubContent,
336
- {
337
- ref,
338
- className: cn(
339
- "hawa-z-50 hawa-min-w-[8rem] hawa-gap-1 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
340
- className
341
- ),
342
- ...props
343
- }
344
- ));
345
- DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
346
- var DropdownMenuContent = React4.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React4.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React4.createElement(
347
- DropdownMenuPrimitive.Content,
348
- {
349
- ref,
350
- sideOffset,
351
- className: cn(
352
- "hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground hawa-shadow-md data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
353
- className
354
- ),
355
- ...props
356
- }
357
- )));
358
- DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
359
- var DropdownMenuItem = React4.forwardRef(({ className, inset, badged, slug, ...props }, ref) => {
360
- return /* @__PURE__ */ React4.createElement("a", { href: slug }, /* @__PURE__ */ React4.createElement(
361
- DropdownMenuPrimitive.Item,
362
- {
363
- disabled: props.disabled,
364
- ref,
365
- className: cn(
366
- "hawa-relative hawa-flex hawa-cursor-pointer hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-sm hawa-text-sm hawa-outline-none hawa-transition-colors focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
367
- inset && "hawa-pl-8",
368
- props.end && Array.isArray(props.children) && props.children[1] && "hawa-gap-6",
369
- className
370
- ),
371
- ...props
372
- },
373
- /* @__PURE__ */ React4.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
374
- props.end && props.end,
375
- !props.end && props.shortcut && /* @__PURE__ */ React4.createElement(DropdownMenuShortcut, null, props.shortcut),
376
- !props.end && badged && /* @__PURE__ */ React4.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
377
- ));
378
- });
379
- DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
380
- var DropdownMenuCheckboxItem = React4.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React4.createElement(
381
- DropdownMenuPrimitive.CheckboxItem,
382
- {
383
- ref,
384
- className: cn(
385
- "hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-py-1.5 hawa-pl-8 hawa-pr-2 hawa-text-sm hawa-outline-none hawa-transition-colors focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
386
- className
387
- ),
388
- checked,
389
- ...props
390
- },
391
- /* @__PURE__ */ React4.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React4.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React4.createElement(
392
- "svg",
393
- {
394
- "aria-label": "Check Mark",
395
- stroke: "currentColor",
396
- fill: "currentColor",
397
- strokeWidth: "0",
398
- viewBox: "0 0 512 512",
399
- height: "0.60em",
400
- width: "0.60em"
401
- },
402
- /* @__PURE__ */ React4.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
403
- ), " ")),
404
- children
405
- ));
406
- DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
407
- var DropdownMenuRadioItem = React4.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React4.createElement(
408
- DropdownMenuPrimitive.RadioItem,
409
- {
410
- ref,
411
- className: cn(
412
- "hawa-relative hawa-flex hawa-cursor-pointer hawa-select-none hawa-items-center hawa-rounded-sm hawa-py-1.5 hawa-pl-8 hawa-pr-2 hawa-text-sm hawa-outline-none hawa-transition-colors focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
413
- className
414
- ),
415
- ...props
416
- },
417
- /* @__PURE__ */ React4.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React4.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React4.createElement(
418
- "svg",
419
- {
420
- xmlns: "http://www.w3.org/2000/svg",
421
- width: "24",
422
- "aria-label": "Circle",
423
- height: "24",
424
- viewBox: "0 0 24 24",
425
- fill: "none",
426
- stroke: "currentColor",
427
- strokeWidth: "2",
428
- strokeLinecap: "round",
429
- strokeLinejoin: "round",
430
- className: "hawa-h-2 hawa-w-2 hawa-fill-current"
431
244
  },
432
- /* @__PURE__ */ React4.createElement("circle", { cx: "12", cy: "12", r: "10" })
433
- ))),
434
- children
435
- ));
436
- DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
437
- var DropdownMenuLabel = React4.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React4.createElement(
438
- DropdownMenuPrimitive.Label,
439
- {
440
- ref,
441
- className: cn(
442
- "hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-font-semibold",
443
- inset && "hawa-pl-8",
444
- className
445
- ),
446
- ...props
447
- }
448
- ));
449
- DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
450
- var DropdownMenuSeparator = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React4.createElement(
451
- DropdownMenuPrimitive.Separator,
452
- {
453
- ref,
454
- className: cn("hawa--mx-1 hawa-my-1 hawa-h-px hawa-bg-muted", className),
455
- ...props
456
- }
457
- ));
458
- DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
459
- var DropdownMenuShortcut = ({
460
- className,
461
- ...props
462
- }) => {
463
- return /* @__PURE__ */ React4.createElement(
464
- "span",
465
- {
466
- className: cn(
467
- "hawa-text-xs hawa-tracking-widest hawa-opacity-60",
468
- className
469
- ),
470
- ...props
471
- }
472
- );
473
- };
474
- DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
475
-
476
- // components/elements/accordion/Accordion.tsx
477
- import * as React8 from "react";
478
- import * as AccordionPrimitive3 from "@radix-ui/react-accordion";
479
-
480
- // components/elements/chip/Chip.tsx
481
- import React5 from "react";
482
- var Chip = React5.forwardRef(
483
- ({
484
- label,
485
- size = "normal",
486
- icon,
487
- color,
488
- radius = "inherit",
489
- dotType,
490
- ...rest
491
- }, ref) => {
492
- 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 ";
493
- let radiusStyles = {
494
- inherit: " hawa-rounded",
495
- full: "hawa-rounded-full",
496
- none: "hawa-rounded-none"
497
- };
498
- let sizeStyles2 = {
499
- small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
500
- normal: "hawa-h-fit hawa-text-xs",
501
- large: "hawa-text-base"
502
- };
503
- let dotStyles = {
504
- small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
505
- normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
506
- large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
507
- };
508
- let dotTypeStyles = {
509
- available: "hawa-bg-green-500",
510
- unavailable: "hawa-bg-red-500"
511
- };
512
- let colorStyles = {
513
- green: "hawa-bg-green-100 hawa-text-green-500 dark:hawa-bg-green-400 dark:hawa-text-green-800",
514
- blue: "hawa-bg-blue-100 hawa-text-blue-500 dark:hawa-bg-blue-400 dark:hawa-text-blue-100",
515
- red: "hawa-bg-red-100 hawa-text-red-500 dark:hawa-bg-red-400 dark:hawa-text-red-100",
516
- yellow: "hawa-bg-yellow-100 hawa-text-yellow-600 dark:hawa-bg-yellow-400 dark:hawa-text-yellow-800",
517
- orange: "hawa-bg-orange-100 hawa-text-orange-500 dark:hawa-bg-orange-400 dark:hawa-text-orange-100",
518
- purple: "hawa-bg-purple-100 hawa-text-purple-500 dark:hawa-bg-purple-400 dark:hawa-text-purple-100",
519
- cyan: "hawa-bg-cyan-100 hawa-text-cyan-800 dark:hawa-bg-cyan-400 dark:hawa-text-cyan-800",
520
- hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-500 hawa-via-red-500 hawa-to-yellow-500 ",
521
- oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
522
- };
523
- if (label) {
524
- return /* @__PURE__ */ React5.createElement(
525
- "span",
526
- {
527
- ...rest,
528
- ref,
529
- className: cn(
530
- defaultStyles,
531
- sizeStyles2[size],
532
- radiusStyles[radius],
533
- color ? colorStyles[color] : "hawa-border hawa-bg-none"
534
- )
535
- },
536
- dotType && /* @__PURE__ */ React5.createElement(
537
- "span",
538
- {
539
- className: cn(dotStyles[size], dotTypeStyles[dotType])
540
- }
541
- ),
542
- icon && icon,
543
- label
544
- );
545
- } else {
546
- return /* @__PURE__ */ React5.createElement(
547
- "span",
548
- {
549
- ...rest,
550
- ref,
551
- className: cn(
552
- "hawa-h-2 hawa-w-2 hawa-rounded-full",
553
- color ? colorStyles[color] : "hawa-border hawa-bg-none"
554
- )
555
- }
556
- );
245
+ defaultVariants: {
246
+ variant: "default",
247
+ size: "default"
557
248
  }
558
249
  }
559
250
  );
560
-
561
- // components/elements/accordion/AccordionContent.tsx
562
- import * as React6 from "react";
563
- import * as AccordionPrimitive from "@radix-ui/react-accordion";
564
- var AccordionContent = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React6.createElement(
565
- AccordionPrimitive.Content,
566
- {
567
- ref,
568
- className: !props.unstyled ? cn(
569
- "hawa-overflow-hidden hawa-text-sm hawa-transition-all data-[state=closed]:hawa-animate-accordion-up data-[state=open]:hawa-animate-accordion-down",
570
- className
571
- ) : className,
572
- ...props
573
- },
574
- /* @__PURE__ */ React6.createElement("div", { className: "hawa-bg-background hawa-p-4" }, children)
575
- ));
576
- AccordionContent.displayName = AccordionPrimitive.Content.displayName;
577
-
578
- // components/elements/accordion/AccordionTrigger.tsx
579
- import * as React7 from "react";
580
- import * as AccordionPrimitive2 from "@radix-ui/react-accordion";
581
- var AccordionTrigger = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React7.createElement(AccordionPrimitive2.Header, { className: "hawa-flex" }, /* @__PURE__ */ React7.createElement(
582
- AccordionPrimitive2.Trigger,
583
- {
584
- ref,
585
- className: !props.unstyled ? cn(
586
- "hawa-flex hawa-flex-1 hawa-items-center hawa-justify-between hawa-bg-muted/50 hawa-p-4 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa-rotate-180",
587
- props.disabled ? "hawa-bg-muted/30 hawa-text-muted-foreground/50" : "hover:hawa-bg-muted",
588
- className
589
- ) : className,
590
- ...props
591
- },
592
- children,
593
- !props.hideArrow && /* @__PURE__ */ React7.createElement(
594
- "svg",
595
- {
596
- xmlns: "http://www.w3.org/2000/svg",
597
- width: "24",
598
- height: "24",
599
- viewBox: "0 0 24 24",
600
- fill: "none",
601
- stroke: "currentColor",
602
- strokeWidth: "2",
603
- strokeLinecap: "round",
604
- strokeLinejoin: "round",
605
- className: "hawa-icon hawa-shrink-0 hawa-transition-transform hawa-duration-200"
606
- },
607
- /* @__PURE__ */ React7.createElement("path", { d: "m6 9 6 6 6-6" })
608
- )
609
- )));
610
- AccordionTrigger.displayName = AccordionPrimitive2.Trigger.displayName;
611
-
612
- // components/elements/accordion/Accordion.tsx
613
- var Accordion = React8.forwardRef(
251
+ var Button = React2.forwardRef(
614
252
  ({
615
- items,
616
- design = "default",
617
- itemClassNames,
618
- triggerclassNames,
619
- contentclassNames,
620
253
  className,
254
+ variant,
255
+ size,
256
+ asChild = false,
257
+ centered = true,
258
+ isLoading,
259
+ children,
621
260
  ...props
622
- }, ref) => /* @__PURE__ */ React8.createElement(AccordionPrimitive3.Root, { type: props.type, collapsible: true }, /* @__PURE__ */ React8.createElement(
623
- "div",
624
- {
625
- className: cn("hawa-flex hawa-flex-col", {
626
- "hawa-gap-4": design === "separated",
627
- "hawa-gap-0": design === "default"
628
- })
629
- },
630
- items.map((item, index) => /* @__PURE__ */ React8.createElement(
631
- AccordionPrimitive3.Item,
261
+ }, ref) => {
262
+ const Comp = "button";
263
+ const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
264
+ return /* @__PURE__ */ React2.createElement(
265
+ Comp,
632
266
  {
633
- disabled: item.disabled || false,
634
- className: cn(itemClassNames, "hawa-rounded"),
635
- key: index,
636
- value: `item-${index}`
267
+ className: cn(
268
+ buttonVariants({ variant, size, className }),
269
+ centered && "hawa-justify-center"
270
+ // "hawa-bg-red-500"
271
+ ),
272
+ ref,
273
+ ...props
637
274
  },
638
- /* @__PURE__ */ React8.createElement(
639
- AccordionTrigger,
640
- {
641
- disabled: item.disabled || false,
642
- className: cn(
643
- "hawa-transition-all",
644
- design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-b-none" : {
645
- "hawa-rounded-t": index === 0,
646
- "data-[state=closed]:hawa-rounded-b": index === items.length - 1
647
- },
648
- triggerclassNames
649
- )
650
- },
651
- /* @__PURE__ */ React8.createElement(
652
- "span",
653
- {
654
- className: cn(
655
- "hawa-flex hawa-flex-row",
656
- item.chip && "hawa-gap-2"
657
- )
658
- },
659
- item.trigger,
660
- " ",
661
- item.chip && /* @__PURE__ */ React8.createElement(Chip, { ...item.chip })
662
- )
663
- ),
664
- /* @__PURE__ */ React8.createElement(
665
- AccordionContent,
275
+ isLoading ? /* @__PURE__ */ React2.createElement(
276
+ Loading,
666
277
  {
667
- "aria-disabled": item.disabled || false,
668
- className: cn(
669
- "hawa-border hawa-transition-all",
670
- design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-t-none" : {
671
- "data-[state=open]:hawa-rounded-b": index === items.length - 1
672
- },
673
- contentclassNames
674
- )
675
- },
676
- item.content
677
- )
678
- ))
679
- ))
680
- );
681
- Accordion.displayName = "Accordion";
682
-
683
- // components/elements/accordion/AccordionItem.tsx
684
- import * as React9 from "react";
685
- import * as AccordionPrimitive4 from "@radix-ui/react-accordion";
686
- var AccordionItem = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(AccordionPrimitive4.Item, { ref, className: cn(className), ...props }));
687
- AccordionItem.displayName = "AccordionItem";
688
-
689
- // components/elements/accordion/AccordionRoot.tsx
690
- import * as AccordionPrimitive5 from "@radix-ui/react-accordion";
691
-
692
- // components/elements/logos/Logos.tsx
693
- import React10 from "react";
694
-
695
- // components/elements/navigationMenu/NavigationMenu.tsx
696
- import * as React11 from "react";
697
- import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
698
- import { cva } from "class-variance-authority";
699
- var navigationMenuTriggerStyle = cva(
700
- "hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 "
701
- );
702
- var NavigationMenuRoot = React11.forwardRef(({ className, children, viewportClassNames, ...props }, ref) => /* @__PURE__ */ React11.createElement(
703
- NavigationMenuPrimitive.Root,
704
- {
705
- ref,
706
- className: cn(
707
- "hawa-relative hawa-z-10 hawa-flex hawa-flex-1 hawa-items-center hawa-justify-center",
708
- // "hawa-max-w-max",
709
- className
710
- ),
711
- ...props
712
- },
713
- children,
714
- /* @__PURE__ */ React11.createElement(NavigationMenuViewport, { className: viewportClassNames })
715
- ));
716
- var NavigationMenuList = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
717
- NavigationMenuPrimitive.List,
718
- {
719
- ref,
720
- className: cn(
721
- "hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-gap-1",
722
- className
723
- ),
724
- ...props
725
- }
726
- ));
727
- var NavigationMenuTrigger = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React11.createElement(
728
- NavigationMenuPrimitive.Trigger,
729
- {
730
- ref,
731
- className: cn(navigationMenuTriggerStyle(), "hawa-group", className),
732
- ...props
733
- },
734
- children,
735
- /* @__PURE__ */ React11.createElement(
736
- "svg",
737
- {
738
- "aria-label": "Chevron Icon",
739
- xmlns: "http://www.w3.org/2000/svg",
740
- width: "24",
741
- height: "24",
742
- viewBox: "0 0 24 24",
743
- fill: "none",
744
- stroke: "currentColor",
745
- strokeWidth: "2",
746
- strokeLinecap: "round",
747
- strokeLinejoin: "round",
748
- "aria-hidden": "true",
749
- className: "hawa-icon hawa-relative hawa-top-[1px] hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
750
- },
751
- /* @__PURE__ */ React11.createElement("path", { d: "m6 9 6 6 6-6" })
752
- )
753
- ));
754
- var NavigationMenuContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
755
- NavigationMenuPrimitive.Content,
756
- {
757
- ref,
758
- className: cn(
759
- "hawa-absolute hawa-left-0 hawa-top-0 hawa-w-full hawa-rounded ",
760
- // "md:hawa-absolute md:hawa-w-auto hawa-left-0 hawa-top-0 ",
761
- // animation
762
- "data-[motion^=from-]:hawa-animate-in data-[motion^=to-]:hawa-animate-out data-[motion^=from-]:hawa-fade-in data-[motion^=to-]:hawa-fade-out data-[motion=from-end]:hawa-slide-in-from-right-52 data-[motion=from-start]:hawa-slide-in-from-left-52 data-[motion=to-end]:hawa-slide-out-to-right-52 data-[motion=to-start]:hawa-slide-out-to-left-52",
763
- className
764
- ),
765
- ...props
766
- }
767
- ));
768
- var NavigationMenuViewport = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
769
- "div",
770
- {
771
- className: cn(
772
- "hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center"
773
- )
774
- },
775
- /* @__PURE__ */ React11.createElement(
776
- NavigationMenuPrimitive.Viewport,
777
- {
778
- className: cn(
779
- "hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90 ",
780
- // hawa-h-[var(--radix-navigation-menu-viewport-height)]
781
- // "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
782
- className
783
- ),
784
- style: {
785
- height: "calc(var(--radix-navigation-menu-viewport-height) + 1px)"
786
- },
787
- ref,
788
- ...props
789
- }
790
- )
791
- ));
792
- var NavigationMenuIndicator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
793
- NavigationMenuPrimitive.Indicator,
794
- {
795
- ref,
796
- className: cn(
797
- "hawa-top-full hawa-z-[1] hawa-flex hawa-h-1.5 hawa-items-end hawa-justify-center hawa-overflow-hidden data-[state=visible]:hawa-animate-in data-[state=hidden]:hawa-animate-out data-[state=hidden]:hawa-fade-out data-[state=visible]:hawa-fade-in",
798
- className
799
- ),
800
- ...props
801
- },
802
- /* @__PURE__ */ React11.createElement("div", { className: "hawa-relative hawa-top-[60%] hawa-h-2 hawa-w-2 hawa-rotate-45 hawa-rounded-tl-sm hawa-bg-border hawa-shadow-md" })
803
- ));
804
- NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
805
- NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
806
- NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
807
- NavigationMenuRoot.displayName = NavigationMenuPrimitive.Root.displayName;
808
- NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
809
- NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
810
-
811
- // components/elements/sheet/Sheet.tsx
812
- import * as React12 from "react";
813
- import * as SheetPrimitive from "@radix-ui/react-dialog";
814
- import { cva as cva2 } from "class-variance-authority";
815
- var SheetPortal = SheetPrimitive.Portal;
816
- var SheetOverlay = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
817
- SheetPrimitive.Overlay,
818
- {
819
- className: cn(
820
- "hawa-fixed hawa-inset-0 hawa-z-50 hawa-bg-background/80 hawa-backdrop-blur-sm data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0",
821
- className
822
- ),
823
- ...props,
824
- ref
825
- }
826
- ));
827
- var sheetVariants = cva2(
828
- "hawa-fixed hawa-z-50 hawa-gap-4 hawa-bg-background hawa-p-2 hawa-shadow-lg hawa-transition hawa-ease-in-out data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-duration-300 data-[state=open]:hawa-duration-300",
829
- {
830
- variants: {
831
- side: {
832
- top: "hawa-inset-x-0 hawa-top-0 hawa-border-b data-[state=closed]:hawa-slide-out-to-top data-[state=open]:hawa-slide-in-from-top",
833
- bottom: "hawa-inset-x-0 hawa-bottom-0 hawa-border-t data-[state=closed]:hawa-slide-out-to-bottom data-[state=open]:hawa-slide-in-from-bottom",
834
- left: "hawa-inset-y-0 hawa-left-0 hawa-h-full hawa-w-3/4 hawa-border-r data-[state=closed]:hawa-slide-out-to-left data-[state=open]:hawa-slide-in-from-left sm:hawa-max-w-sm",
835
- right: "hawa-inset-y-0 hawa-right-0 hawa-h-full hawa-w-3/4 hawa-border-l data-[state=closed]:hawa-slide-out-to-right data-[state=open]:hawa-slide-in-from-right sm:hawa-max-w-sm"
836
- }
837
- },
838
- defaultVariants: {
839
- side: "right"
840
- }
278
+ design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
279
+ themeMode: variant === "outline" ? "light" : "dark",
280
+ color: loadingColor,
281
+ size: size === "sm" || size === "xs" ? "xs" : "button"
282
+ }
283
+ ) : children
284
+ );
841
285
  }
842
286
  );
843
- var SheetContent = React12.forwardRef(
844
- ({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React12.createElement(SheetPortal, null, /* @__PURE__ */ React12.createElement(SheetOverlay, null), /* @__PURE__ */ React12.createElement(
845
- SheetPrimitive.Content,
846
- {
847
- ref,
848
- className: cn(sheetVariants({ side }), className),
849
- onPointerDownOutside: (e) => {
850
- if (persist) {
851
- e.preventDefault();
852
- }
853
- },
854
- ...props
855
- },
856
- children,
857
- !hideCloseButton && /* @__PURE__ */ React12.createElement(
858
- SheetPrimitive.Close,
859
- {
860
- className: cn(
861
- "hawa-absolute hawa-rounded-sm hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-secondary",
862
- {
863
- "hawa-right-4 hawa-top-4": side === "left" || side === "bottom",
864
- "hawa-left-4 hawa-top-4": side === "right",
865
- "hawa-bottom-4 hawa-right-4": side === "top"
866
- }
867
- )
868
- },
869
- /* @__PURE__ */ React12.createElement(
870
- "svg",
871
- {
872
- "aria-label": "Close Icon",
873
- "aria-hidden": "true",
874
- className: "hawa-h-5 hawa-w-5",
875
- fill: "currentColor",
876
- viewBox: "0 0 20 20"
877
- },
878
- /* @__PURE__ */ React12.createElement(
879
- "path",
880
- {
881
- fillRule: "evenodd",
882
- d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
883
- clipRule: "evenodd"
884
- }
885
- )
886
- ),
887
- /* @__PURE__ */ React12.createElement("span", { className: "hawa-sr-only" }, "Close")
888
- )
889
- ))
890
- );
891
- var SheetHeader = ({
892
- className,
893
- ...props
894
- }) => /* @__PURE__ */ React12.createElement(
895
- "div",
896
- {
897
- className: cn(
898
- "hawa-flex hawa-flex-col hawa-space-y-2 hawa-text-center sm:hawa-text-left",
899
- className
900
- ),
901
- ...props
902
- }
903
- );
904
- var SheetFooter = ({
905
- className,
906
- ...props
907
- }) => /* @__PURE__ */ React12.createElement(
908
- "div",
909
- {
910
- className: cn(
911
- "hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end sm:hawa-space-x-2",
912
- className
913
- ),
914
- ...props
915
- }
916
- );
917
- var SheetTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
918
- SheetPrimitive.Title,
919
- {
920
- ref,
921
- className: cn(
922
- "hawa-text-lg hawa-font-semibold hawa-text-foreground",
923
- className
924
- ),
925
- ...props
926
- }
927
- ));
928
- var SheetDescription = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
929
- SheetPrimitive.Description,
930
- {
931
- ref,
932
- className: cn("hawa-text-sm hawa-text-muted-foreground", className),
933
- ...props
934
- }
935
- ));
936
- SheetDescription.displayName = SheetPrimitive.Description.displayName;
937
- SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
938
- SheetContent.displayName = SheetPrimitive.Content.displayName;
939
- SheetHeader.displayName = "SheetHeader";
940
- SheetFooter.displayName = "SheetFooter";
941
- SheetTitle.displayName = SheetPrimitive.Title.displayName;
942
-
943
- // components/elements/dialog/Dialog.tsx
944
- import * as React13 from "react";
945
- import * as DialogPrimitive from "@radix-ui/react-dialog";
946
- var DialogPortal = ({ ...props }) => /* @__PURE__ */ React13.createElement(DialogPrimitive.Portal, { ...props });
947
- var DialogOverlay = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
948
- DialogPrimitive.Overlay,
949
- {
950
- ref,
951
- className: cn(
952
- "hawa-fixed hawa-inset-0 hawa-z-50 hawa-bg-background/80 hawa-backdrop-blur-sm data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0",
953
- className
954
- ),
955
- ...props
956
- }
957
- ));
958
- var DialogContent = React13.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React13.createElement(DialogPortal, null, /* @__PURE__ */ React13.createElement(DialogOverlay, null), /* @__PURE__ */ React13.createElement(
959
- DialogPrimitive.Content,
960
- {
961
- onPointerDownOutside: (e) => {
962
- if (persist) {
963
- e.preventDefault();
964
- }
965
- },
966
- ref,
967
- className: cn(
968
- "hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] sm:hawa-rounded md:hawa-w-full",
969
- className
970
- ),
971
- ...props
972
- },
973
- children,
974
- !hideCloseButton && /* @__PURE__ */ React13.createElement(
975
- DialogPrimitive.Close,
976
- {
977
- className: cn(
978
- "hawa-absolute hawa-top-4 hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
979
- props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
980
- )
981
- },
982
- /* @__PURE__ */ React13.createElement(
983
- "svg",
984
- {
985
- "aria-label": "Close Icon",
986
- "aria-hidden": "true",
987
- className: "hawa-h-5 hawa-w-5",
988
- fill: "currentColor",
989
- viewBox: "0 0 20 20"
990
- },
991
- /* @__PURE__ */ React13.createElement(
992
- "path",
993
- {
994
- fillRule: "evenodd",
995
- d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
996
- clipRule: "evenodd"
997
- }
998
- )
999
- ),
1000
- /* @__PURE__ */ React13.createElement("span", { className: "hawa-sr-only" }, "Close")
1001
- )
1002
- )));
1003
- var DialogCarouselContent = React13.forwardRef(
1004
- ({
1005
- className,
1006
- children,
1007
- onPrev,
1008
- persist,
1009
- hideCloseButton,
1010
- hidePrevButton,
1011
- ...props
1012
- }, ref) => /* @__PURE__ */ React13.createElement(DialogPortal, null, /* @__PURE__ */ React13.createElement(DialogOverlay, null), /* @__PURE__ */ React13.createElement(
1013
- DialogPrimitive.Content,
1014
- {
1015
- onPointerDownOutside: (e) => {
1016
- if (persist) {
1017
- e.preventDefault();
1018
- }
1019
- },
1020
- ref,
1021
- className: cn(
1022
- "hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-pt-14 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] sm:hawa-rounded md:hawa-w-full",
1023
- className
1024
- ),
1025
- ...props
1026
- },
1027
- children,
1028
- /* @__PURE__ */ React13.createElement(
1029
- "div",
1030
- {
1031
- className: cn(
1032
- "hawa-absolute hawa-top-0 hawa-flex hawa-w-full hawa-flex-row hawa-p-4",
1033
- onPrev ? "hawa-justify-between" : "hawa-justify-end"
1034
- )
1035
- },
1036
- hidePrevButton ? /* @__PURE__ */ React13.createElement("div", null) : /* @__PURE__ */ React13.createElement(
1037
- "div",
1038
- {
1039
- onClick: onPrev,
1040
- className: cn(
1041
- "hawa-end-0 hawa-cursor-pointer hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
1042
- props.dir === "rtl" && "hawa-rotate-180"
1043
- )
1044
- },
1045
- /* @__PURE__ */ React13.createElement(
1046
- "svg",
1047
- {
1048
- xmlns: "http://www.w3.org/2000/svg",
1049
- width: "24",
1050
- height: "24",
1051
- viewBox: "0 0 24 24",
1052
- fill: "none",
1053
- className: "hawa-h-6 hawa-w-6",
1054
- stroke: "currentColor",
1055
- strokeWidth: "2",
1056
- strokeLinecap: "round",
1057
- strokeLinejoin: "round"
1058
- },
1059
- /* @__PURE__ */ React13.createElement("path", { d: "m15 18-6-6 6-6" })
1060
- )
1061
- ),
1062
- !hideCloseButton && /* @__PURE__ */ React13.createElement(
1063
- DialogPrimitive.Close,
1064
- {
1065
- className: cn(
1066
- "hawa-end-0 hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground ",
1067
- props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
1068
- )
1069
- },
1070
- /* @__PURE__ */ React13.createElement(
1071
- "svg",
1072
- {
1073
- "aria-label": "Close Icon",
1074
- "aria-hidden": "true",
1075
- className: "hawa-h-6 hawa-w-6",
1076
- fill: "currentColor",
1077
- viewBox: "0 0 20 20"
1078
- },
1079
- /* @__PURE__ */ React13.createElement(
1080
- "path",
1081
- {
1082
- fillRule: "evenodd",
1083
- d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
1084
- clipRule: "evenodd"
1085
- }
1086
- )
1087
- ),
1088
- /* @__PURE__ */ React13.createElement("span", { className: "hawa-sr-only" }, "Close")
1089
- )
1090
- )
1091
- ))
1092
- );
1093
- var DialogHeader = ({
1094
- className,
1095
- ...props
1096
- }) => /* @__PURE__ */ React13.createElement(
1097
- "div",
1098
- {
1099
- className: cn(
1100
- "hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-text-center sm:hawa-text-left",
1101
- className
1102
- ),
1103
- ...props
1104
- }
1105
- );
1106
- var DialogTitle = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
1107
- DialogPrimitive.Title,
1108
- {
1109
- ref,
1110
- className: cn(
1111
- "hawa-text-start hawa-text-lg hawa-font-semibold hawa-leading-none hawa-tracking-tight",
1112
- className
1113
- ),
1114
- ...props
1115
- }
1116
- ));
1117
- var DialogDescription = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
1118
- DialogPrimitive.Description,
1119
- {
1120
- ref,
1121
- className: cn(
1122
- "hawa-text-start hawa-text-sm hawa-text-muted-foreground",
1123
- className
1124
- ),
1125
- ...props
1126
- }
1127
- ));
1128
- var DialogFooter = ({
1129
- className,
1130
- ...props
1131
- }) => /* @__PURE__ */ React13.createElement(
1132
- "div",
1133
- {
1134
- className: cn(
1135
- "hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end sm:hawa-gap-2",
1136
- className
1137
- ),
1138
- ...props
1139
- }
1140
- );
1141
- var DialogCarousel = ({
1142
- stepsApi,
1143
- stepsRef,
1144
- children,
1145
- direction
1146
- }) => {
1147
- React13.useEffect(() => {
1148
- if (stepsApi) {
1149
- stepsApi.reInit();
1150
- }
1151
- }, [stepsApi, children]);
1152
- return /* @__PURE__ */ React13.createElement("div", { className: "hawa-overflow-hidden" }, /* @__PURE__ */ React13.createElement("div", { ref: stepsRef, dir: direction }, /* @__PURE__ */ React13.createElement(
1153
- "div",
1154
- {
1155
- className: "hawa-flex",
1156
- style: {
1157
- transition: "height 0.2s"
1158
- }
1159
- },
1160
- React13.Children.map(children, (child, index) => /* @__PURE__ */ React13.createElement(
1161
- "div",
1162
- {
1163
- className: cn(
1164
- "hawa-flex hawa-h-fit hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
1165
- ),
1166
- key: index
1167
- },
1168
- child
1169
- ))
1170
- )));
1171
- };
1172
- var DialogSteps = ({
1173
- currentStep,
1174
- visibleStepRef,
1175
- children
1176
- }) => {
1177
- const [dialogHeight, setDialogHeight] = React13.useState(null);
1178
- React13.useEffect(() => {
1179
- if (visibleStepRef.current) {
1180
- setDialogHeight(visibleStepRef.current.offsetHeight);
1181
- console.log("height is ", visibleStepRef.current.offsetHeight);
1182
- }
1183
- }, [currentStep, visibleStepRef]);
1184
- return /* @__PURE__ */ React13.createElement(
1185
- "div",
1186
- {
1187
- className: "hawa-relative hawa-overflow-clip",
1188
- style: {
1189
- height: dialogHeight || "fit-content",
1190
- transition: "height 0.2s"
1191
- }
1192
- },
1193
- React13.Children.map(children, (child, index) => /* @__PURE__ */ React13.createElement(
1194
- "div",
1195
- {
1196
- ref: currentStep === `step-${index + 1}` ? visibleStepRef : null,
1197
- className: cn(
1198
- currentStep === `step-${index + 1}` ? "hawa-visible hawa-block" : "hawa-invisible hawa-hidden"
1199
- )
1200
- },
1201
- child
1202
- ))
1203
- );
1204
- };
1205
- var DialogStep = ({
1206
- id,
1207
- children,
1208
- className,
1209
- stepRef
1210
- }) => {
1211
- return /* @__PURE__ */ React13.createElement(
1212
- "div",
1213
- {
1214
- id,
1215
- ref: stepRef,
1216
- className: cn("hawa-w-full hawa-px-1", className)
1217
- },
1218
- children
1219
- );
1220
- };
1221
- var DialogBody = ({ children, className }) => {
1222
- return /* @__PURE__ */ React13.createElement("div", { className: cn("hawa-py-6", className) }, children);
1223
- };
1224
- DialogBody.displayName = "DialogBody";
1225
- DialogStep.displayName = "DialogStep";
1226
- DialogSteps.displayName = "DialogSteps";
1227
- DialogCarousel.displayName = "DialogCarousel";
1228
- DialogCarouselContent.displayName = "DialogCarouselContent";
1229
- DialogHeader.displayName = "DialogHeader";
1230
- DialogFooter.displayName = "DialogFooter";
1231
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
1232
- DialogPortal.displayName = DialogPrimitive.Portal.displayName;
1233
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
1234
- DialogContent.displayName = DialogPrimitive.Content.displayName;
1235
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
1236
-
1237
- // components/elements/alert/Alert.tsx
1238
- import React15, { useRef, useState as useState2, useEffect as useEffect2 } from "react";
1239
-
1240
- // components/elements/button/Button.tsx
1241
- import * as React14 from "react";
1242
- import { cva as cva3 } from "class-variance-authority";
1243
- var buttonVariants = cva3(
1244
- "hawa-inline-flex hawa-items-center hawa-select-none hawa-rounded-md hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
1245
- {
1246
- variants: {
1247
- variant: {
1248
- default: "hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary/90",
1249
- light: "hawa-bg-primary/20 hawa-text-primary hover:hawa-bg-primary/40",
1250
- destructive: "hawa-bg-destructive hawa-text-destructive-foreground hover:hawa-bg-destructive/90",
1251
- outline: "hawa-border hawa-border-input hawa-bg-transparent hover:hawa-bg-accent hover:hawa-text-accent-foreground",
1252
- secondary: "hawa-bg-secondary hawa-text-secondary-foreground hover:hawa-bg-secondary/80",
1253
- ghost: "hover:hawa-bg-accent hover:hawa-text-accent-foreground",
1254
- link: "hawa-text-primary hawa-underline-offset-4 hover:hawa-underline",
1255
- combobox: "hawa-bg-background hawa-border",
1256
- neoBrutalism: "neo-brutalism"
1257
- // "hawa-cursor-pointer hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active shadow-color-primary active:shadow-color-primary-active",
1258
- },
1259
- size: {
1260
- default: "hawa-h-10 hawa-px-4 hawa-py-2",
1261
- heightless: "hawa-px-4 hawa-py-4",
1262
- xs: "hawa-h-fit hawa-min-h-[25px] hawa-py-1 hawa-text-[10px] hawa-px-2 ",
1263
- sm: "hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3",
1264
- lg: "hawa-h-11 hawa-rounded-md hawa-px-8",
1265
- xl: "hawa-h-14 hawa-rounded-md hawa-px-10",
1266
- icon: "hawa-h-10 hawa-w-10",
1267
- smallIcon: "hawa-h-7 hawa-w-7"
1268
- }
1269
- },
1270
- defaultVariants: {
1271
- variant: "default",
1272
- size: "default"
1273
- }
1274
- }
1275
- );
1276
- var Button = React14.forwardRef(
1277
- ({
1278
- className,
1279
- variant,
1280
- size,
1281
- asChild = false,
1282
- centered = true,
1283
- isLoading,
1284
- children,
1285
- ...props
1286
- }, ref) => {
1287
- const Comp = "button";
1288
- const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
1289
- return /* @__PURE__ */ React14.createElement(
1290
- Comp,
1291
- {
1292
- className: cn(
1293
- buttonVariants({ variant, size, className }),
1294
- centered && "hawa-justify-center"
1295
- ),
1296
- ref,
1297
- ...props
1298
- },
1299
- isLoading ? /* @__PURE__ */ React14.createElement(
1300
- Loading,
1301
- {
1302
- design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
1303
- themeMode: variant === "outline" ? "light" : "dark",
1304
- color: loadingColor,
1305
- size: size === "sm" || size === "xs" ? "xs" : "button"
1306
- }
1307
- ) : children
1308
- );
1309
- }
1310
- );
1311
- Button.displayName = "Button";
1312
-
1313
- // components/elements/avatar/Avatar.tsx
1314
- import React17 from "react";
1315
-
1316
- // components/elements/fileUploader/FileUploader.tsx
1317
- import React16, { useRef as useRef2 } from "react";
1318
-
1319
- // components/elements/dataTable/DataTable.tsx
1320
- import * as React20 from "react";
1321
- import {
1322
- flexRender,
1323
- getCoreRowModel,
1324
- getFilteredRowModel,
1325
- getPaginationRowModel,
1326
- getExpandedRowModel,
1327
- getSortedRowModel,
1328
- useReactTable
1329
- } from "@tanstack/react-table";
1330
-
1331
- // components/elements/input/Input.tsx
1332
- import React18, { forwardRef as forwardRef11 } from "react";
1333
- var Input = forwardRef11(
1334
- ({
1335
- margin = "none",
1336
- width = "full",
1337
- preview = false,
1338
- forceHideHelperText = false,
1339
- labelProps,
1340
- placeholder,
1341
- showCount,
1342
- inputProps,
1343
- countPosition = "bottom",
1344
- ...props
1345
- }, ref) => {
1346
- var _a;
1347
- let marginStyles = {
1348
- none: "hawa-mb-0",
1349
- normal: "hawa-mb-3",
1350
- large: "hawa-mb-5"
1351
- };
1352
- let widthStyles = {
1353
- small: "hawa-w-full hawa-max-w-2xs",
1354
- normal: "hawa-w-1/2",
1355
- full: "hawa-w-full",
1356
- auto: ""
1357
- };
1358
- let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
1359
- let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
1360
- return /* @__PURE__ */ React18.createElement(
1361
- "div",
1362
- {
1363
- className: cn(
1364
- defaultStyle,
1365
- marginStyles[margin],
1366
- widthStyles[width],
1367
- props.containerClassName,
1368
- "hawa-w-full hawa-gap-2"
1369
- )
1370
- },
1371
- props.label && /* @__PURE__ */ React18.createElement(Label, { ...labelProps }, props.label),
1372
- props.isLoading ? /* @__PURE__ */ React18.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React18.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React18.createElement(React18.Fragment, null, !props.hideSeparator && /* @__PURE__ */ React18.createElement(
1373
- "div",
1374
- {
1375
- className: cn(
1376
- "hawa-absolute hawa-top-[22px] hawa-h-[0.8px] hawa-w-full hawa-bg-gray-200 hawa-transition-all dark:hawa-bg-gray-800",
1377
- preview ? "hawa-opacity-100" : "hawa-opacity-0"
1378
- )
1379
- }
1380
- ), /* @__PURE__ */ React18.createElement(React18.Fragment, null, /* @__PURE__ */ React18.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ React18.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ React18.createElement(
1381
- "div",
1382
- {
1383
- className: cn(
1384
- "hawa-absolute hawa-end-3 hawa-top-1/2 hawa--translate-y-1/2",
1385
- (_a = props.endIconProps) == null ? void 0 : _a.className
1386
- )
1387
- },
1388
- props.endIcon
1389
- ), /* @__PURE__ */ React18.createElement(
1390
- "input",
1391
- {
1392
- required: true,
1393
- dir: props.dir,
1394
- type: props.type,
1395
- value: props.value,
1396
- onChange: props.onChange,
1397
- autoComplete: props.autoComplete,
1398
- defaultValue: props.defaultValue,
1399
- placeholder,
1400
- disabled: props.disabled || preview,
1401
- style: { height: 40 },
1402
- ...inputProps,
1403
- className: cn(
1404
- defaultInputStyle,
1405
- " focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 dark:hawa-text-white",
1406
- {
1407
- "hawa-pe-9": props.endIcon,
1408
- "hawa-ps-9": props.startIcon,
1409
- "hawa-pe-[60px]": countPosition === "center"
1410
- },
1411
- preview && "hawa-border-transparent hawa-bg-transparent hawa-px-0",
1412
- inputProps == null ? void 0 : inputProps.className
1413
- )
1414
- }
1415
- )), !forceHideHelperText && /* @__PURE__ */ React18.createElement(
1416
- "p",
1417
- {
1418
- className: cn(
1419
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
1420
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
1421
- )
1422
- },
1423
- props.helperText
1424
- ), !props.disabled && forceHideHelperText && /* @__PURE__ */ React18.createElement(
1425
- "div",
1426
- {
1427
- className: cn(
1428
- "hawa-absolute hawa-end-0 hawa-top-[47px] hawa-z-20 hawa-translate-y-1/2 hawa-rounded hawa-bg-background hawa-text-start hawa-text-xs hawa-text-helper-color hawa-drop-shadow-md hawa-transition-all",
1429
- props.helperText ? "hawa-border hawa-p-1" : "hawa-border-none hawa-p-0"
1430
- )
1431
- },
1432
- props.helperText
1433
- ), showCount && /* @__PURE__ */ React18.createElement(
1434
- "div",
1435
- {
1436
- className: cn(
1437
- "hawa-absolute hawa-translate-y-1/2 hawa-text-start hawa-text-xs hawa-transition-all",
1438
- {
1439
- "hawa-end-0 hawa-top-[62px]": countPosition === "bottom",
1440
- "hawa-bottom-[62px] hawa-end-0": countPosition === "top",
1441
- "hawa-end-2": countPosition === "center"
1442
- }
1443
- )
1444
- },
1445
- props.value ? String(props.value).length : 0,
1446
- "/",
1447
- props.maxLength
1448
- )))
1449
- );
1450
- }
1451
- );
1452
-
1453
- // components/elements/table/Table.tsx
1454
- import * as React19 from "react";
1455
- var Table = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React19.createElement(
1456
- "table",
1457
- {
1458
- ref,
1459
- className: cn("hawa-w-full hawa-caption-bottom hawa-text-sm", className),
1460
- ...props
1461
- }
1462
- )));
1463
- Table.displayName = "Table";
1464
- var TableHeader = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
1465
- "thead",
1466
- {
1467
- ref,
1468
- className: cn("[&_tr]:hawa-border-b", "hawa-bg-muted/50", className),
1469
- ...props
1470
- }
1471
- ));
1472
- TableHeader.displayName = "TableHeader";
1473
- var TableHead = React19.forwardRef(
1474
- ({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */ React19.createElement(
1475
- "th",
1476
- {
1477
- ref,
1478
- className: cn(
1479
- "hawa-bg-muted/60 hawa-text-start hawa-align-middle hawa-font-medium hawa-text-muted-foreground dark:hawa-bg-muted/40 [&:has([role=checkbox])]:hawa-pr-0 [&:not(:last-child)&:not(:first-child)]:hawa-border-x",
1480
- dir === "rtl" ? "[&:not(:last-child)]:hawa-border-l" : "[&:not(:last-child)]:hawa-border-r",
1481
- condensed ? "hawa-h-8" : "hawa-h-12",
1482
- clickable ? "hawa-px-1" : "hawa-px-4",
1483
- //First and last columns
1484
- clickable ? " [&:not(:last-child)&:not(:first-child)]:hawa-p-1" : "hawa-px-4",
1485
- //Columns in between
1486
- className
1487
- ),
1488
- ...props
1489
- }
1490
- )
1491
- );
1492
- TableHead.displayName = "TableHead";
1493
- var TableBody = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement("tbody", { ref, className: cn("hawa-border-none", className), ...props }));
1494
- TableBody.displayName = "TableBody";
1495
- var TableFooter = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
1496
- "tfoot",
1497
- {
1498
- ref,
1499
- className: cn(
1500
- "hawa-bg-primary hawa-font-medium hawa-text-primary-foreground",
1501
- className
1502
- ),
1503
- ...props
1504
- }
1505
- ));
1506
- TableFooter.displayName = "TableFooter";
1507
- var TableRow = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
1508
- "tr",
1509
- {
1510
- ref,
1511
- className: cn(
1512
- "hawa-bg-background hawa-transition-colors data-[state=selected]:hawa-bg-muted",
1513
- "[&:not(:last-child)&:not(:first-child)]:hawa-border-y",
1514
- "[&:not(:last-child)]:hawa-border-b",
1515
- className
1516
- ),
1517
- ...props
1518
- }
1519
- ));
1520
- TableRow.displayName = "TableRow";
1521
- var TableCell = React19.forwardRef(
1522
- ({ className, enablePadding = true, padding = "default", ...props }, ref) => {
1523
- let paddingStyles = {
1524
- condensed: "hawa-p-0 hawa-px-4",
1525
- default: "hawa-p-4",
1526
- noPadding: "hawa-p-0"
1527
- };
1528
- return /* @__PURE__ */ React19.createElement(
1529
- "td",
1530
- {
1531
- ref,
1532
- className: cn(
1533
- paddingStyles[padding],
1534
- // "border-x",
1535
- // enablePadding ? "hawa-p-4" : "hawa-p-0",
1536
- // props.disablePadding ? "hawa-p-0" : "hawa-p-4",
1537
- // props.condensed ? "hawa-p-0 hawa-px-4" : "hawa-p-4",
1538
- "hawa-align-middle [&:has([role=checkbox])]:hawa-pr-0 ",
1539
- "[&:not(:last-child)&:not(:first-child)]:hawa-border-x",
1540
- // "[&:not(:last-child)]:hawa-border-r",
1541
- props.dir === "rtl" ? "[&:not(:last-child)]:hawa-border-l" : "[&:not(:last-child)]:hawa-border-r",
1542
- className
1543
- ),
1544
- ...props
1545
- }
1546
- );
1547
- }
1548
- );
1549
- TableCell.displayName = "TableCell";
1550
- var TableCaption = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
1551
- "caption",
1552
- {
1553
- ref,
1554
- className: cn(
1555
- "hawa-mt-4 hawa-text-sm hawa-text-muted-foreground",
1556
- className
1557
- ),
1558
- ...props
1559
- }
1560
- ));
1561
- TableCaption.displayName = "TableCaption";
1562
-
1563
- // components/elements/backToTop/BackToTop.tsx
1564
- import React21, { useState as useState4, useEffect as useEffect3, useRef as useRef3 } from "react";
1565
-
1566
- // components/elements/radio/Radio.tsx
1567
- import React22, { useState as useState5, useRef as useRef4, useEffect as useEffect4 } from "react";
1568
-
1569
- // components/elements/combobox/Combobox.tsx
1570
- import * as React25 from "react";
1571
- import * as PopoverPrimitive2 from "@radix-ui/react-popover";
1572
-
1573
- // components/elements/command/Command.tsx
1574
- import * as React23 from "react";
1575
- import { Command as CommandPrimitive } from "cmdk";
1576
- var Command = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
1577
- CommandPrimitive,
1578
- {
1579
- ref,
1580
- className: cn(
1581
- "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground",
1582
- className
1583
- ),
1584
- ...props
1585
- }
1586
- ));
1587
- Command.displayName = CommandPrimitive.displayName;
1588
- var CommandInput = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
1589
- "div",
1590
- {
1591
- className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
1592
- "cmdk-input-wrapper": ""
1593
- },
1594
- /* @__PURE__ */ React23.createElement(
1595
- "svg",
1596
- {
1597
- "aria-label": "Search Icon",
1598
- xmlns: "http://www.w3.org/2000/svg",
1599
- width: "24",
1600
- height: "24",
1601
- viewBox: "0 0 24 24",
1602
- fill: "none",
1603
- stroke: "currentColor",
1604
- strokeWidth: "2",
1605
- strokeLinecap: "round",
1606
- strokeLinejoin: "round",
1607
- className: "hawa-icon hawa-me-2 hawa-shrink-0 hawa-opacity-50"
1608
- },
1609
- /* @__PURE__ */ React23.createElement("circle", { cx: "11", cy: "11", r: "8" }),
1610
- /* @__PURE__ */ React23.createElement("path", { d: "m21 21-4.3-4.3" })
1611
- ),
1612
- /* @__PURE__ */ React23.createElement(
1613
- CommandPrimitive.Input,
1614
- {
1615
- ref,
1616
- className: cn(
1617
- "hawa-flex hawa-h-11 hawa-w-full hawa-rounded-md hawa-bg-transparent hawa-py-3 hawa-text-sm hawa-outline-none placeholder:hawa-text-muted-foreground disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
1618
- className
1619
- ),
1620
- ...props
1621
- }
1622
- )
1623
- ));
1624
- CommandInput.displayName = CommandPrimitive.Input.displayName;
1625
- var CommandList = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
1626
- CommandPrimitive.List,
1627
- {
1628
- ref,
1629
- className: cn(
1630
- "hawa-max-h-[300px] hawa-overflow-y-auto hawa-overflow-x-hidden",
1631
- className
1632
- ),
1633
- ...props
1634
- }
1635
- ));
1636
- CommandList.displayName = CommandPrimitive.List.displayName;
1637
- var CommandEmpty = React23.forwardRef((props, ref) => /* @__PURE__ */ React23.createElement(
1638
- CommandPrimitive.Empty,
1639
- {
1640
- ref,
1641
- className: "hawa-py-6 hawa-text-center hawa-text-sm",
1642
- ...props
1643
- }
1644
- ));
1645
- CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
1646
- var CommandGroup = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
1647
- CommandPrimitive.Group,
1648
- {
1649
- ref,
1650
- className: cn(
1651
- "hawa-overflow-hidden hawa-p-1 hawa-text-foreground [&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-py-1.5 [&_[cmdk-group-heading]]:hawa-text-xs [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground",
1652
- className
1653
- ),
1654
- ...props
1655
- }
1656
- ));
1657
- CommandGroup.displayName = CommandPrimitive.Group.displayName;
1658
- var CommandSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
1659
- CommandPrimitive.Separator,
1660
- {
1661
- ref,
1662
- className: cn("hawa--mx-1 hawa-h-px hawa-bg-border", className),
1663
- ...props
1664
- }
1665
- ));
1666
- CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
1667
- var CommandItem = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
1668
- CommandPrimitive.Item,
1669
- {
1670
- ref,
1671
- className: cn(
1672
- "hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none aria-selected:hawa-bg-accent aria-selected:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
1673
- className
1674
- ),
1675
- ...props
1676
- }
1677
- ));
1678
- CommandItem.displayName = CommandPrimitive.Item.displayName;
1679
- var CommandShortcut = ({
1680
- className,
1681
- ...props
1682
- }) => {
1683
- return /* @__PURE__ */ React23.createElement(
1684
- "span",
1685
- {
1686
- className: cn(
1687
- "hawa-ml-auto hawa-text-xs hawa-tracking-widest hawa-text-muted-foreground",
1688
- className
1689
- ),
1690
- ...props
1691
- }
1692
- );
1693
- };
1694
- CommandShortcut.displayName = "CommandShortcut";
1695
-
1696
- // components/elements/popover/Popover.tsx
1697
- import * as React24 from "react";
1698
- import * as PopoverPrimitive from "@radix-ui/react-popover";
1699
- var PopoverContent = React24.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React24.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React24.createElement(
1700
- PopoverPrimitive.Content,
1701
- {
1702
- ref,
1703
- align,
1704
- sideOffset,
1705
- className: cn(
1706
- "dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
1707
- className
1708
- ),
1709
- ...props
1710
- }
1711
- )));
1712
- PopoverContent.displayName = PopoverPrimitive.Content.displayName;
1713
- var PopoverTrigger = PopoverPrimitive.Trigger;
1714
-
1715
- // components/elements/combobox/Combobox.tsx
1716
- var Combobox = React25.forwardRef(
1717
- ({
1718
- labelKey = "label",
1719
- valueKey = "value",
1720
- defaultValue = "",
1721
- popoverClassName,
1722
- direction,
1723
- labelProps,
1724
- data,
1725
- ...props
1726
- }, ref) => {
1727
- var _a, _b, _c;
1728
- const [open, setOpen] = React25.useState(false);
1729
- const [value, setValue] = React25.useState(defaultValue);
1730
- function getProperty(obj, key) {
1731
- return obj[key];
1732
- }
1733
- const handleOpenChange = (open2) => {
1734
- if (!(props.isLoading || props.preview)) {
1735
- setOpen(open2);
1736
- }
1737
- };
1738
- return /* @__PURE__ */ React25.createElement(
1739
- "div",
1740
- {
1741
- className: cn(
1742
- "hawa-relative hawa-flex hawa-h-fit hawa-flex-col hawa-gap-2",
1743
- props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
1744
- )
1745
- },
1746
- props.label && /* @__PURE__ */ React25.createElement(Label, { ...labelProps }, props.label),
1747
- /* @__PURE__ */ React25.createElement(PopoverPrimitive2.Root, { open, onOpenChange: handleOpenChange }, /* @__PURE__ */ React25.createElement(PopoverTrigger, { asChild: true }, props.isLoading ? /* @__PURE__ */ React25.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React25.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React25.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-gap-2 " }, /* @__PURE__ */ React25.createElement(
1748
- "div",
1749
- {
1750
- className: cn(
1751
- "hawa-absolute hawa-top-[22px] hawa-h-[0.8px] hawa-w-full hawa-bg-gray-200 hawa-transition-all dark:hawa-bg-gray-800",
1752
- props.preview ? "hawa-opacity-100" : "hawa-opacity-0"
1753
- )
1754
- }
1755
- ), /* @__PURE__ */ React25.createElement(
1756
- "button",
1757
- {
1758
- role: "combobox",
1759
- type: "button",
1760
- "aria-expanded": open,
1761
- className: cn(
1762
- "hawa-inline-flex hawa-h-10 hawa-w-full hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-md hawa-border hawa-py-2 hawa-text-sm hawa-font-normal hawa-ring-offset-background hawa-transition-all focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
1763
- props.preview ? "hawa-cursor-default hawa-rounded-none hawa-border-transparent hawa-px-0" : "hawa-bg-background hawa-px-3 "
1764
- )
1765
- },
1766
- value ? getProperty(
1767
- data.find((item) => item[valueKey] === value) || {},
1768
- labelKey
1769
- ) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
1770
- /* @__PURE__ */ React25.createElement(
1771
- "svg",
1772
- {
1773
- xmlns: "http://www.w3.org/2000/svg",
1774
- className: cn(
1775
- "hawa-icon hawa-transition-all",
1776
- !props.preview ? "hawa-visible hawa-opacity-100" : "hawa-invisible hawa-opacity-0"
1777
- ),
1778
- "aria-label": "Chevron down icon",
1779
- viewBox: "0 0 24 24",
1780
- fill: "none",
1781
- stroke: "currentColor",
1782
- strokeWidth: "2",
1783
- strokeLinecap: "round",
1784
- strokeLinejoin: "round"
1785
- },
1786
- /* @__PURE__ */ React25.createElement("path", { d: "m6 9 6 6 6-6" })
1787
- )
1788
- ), /* @__PURE__ */ React25.createElement(
1789
- "p",
1790
- {
1791
- className: cn(
1792
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
1793
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
1794
- )
1795
- },
1796
- props.helperText
1797
- ))), /* @__PURE__ */ React25.createElement(
1798
- PopoverContent,
1799
- {
1800
- sideOffset: 0,
1801
- className: cn("popover-w-parent", props.helperText && "-hawa-mt-4"),
1802
- dir: direction
1803
- },
1804
- /* @__PURE__ */ React25.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React25.createElement(
1805
- CommandInput,
1806
- {
1807
- dir: direction,
1808
- placeholder: ((_b = props.texts) == null ? void 0 : _b.searchPlaceholder) || "Search"
1809
- }
1810
- ), /* @__PURE__ */ React25.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."), /* @__PURE__ */ React25.createElement(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-auto" }, data.map((item, i) => /* @__PURE__ */ React25.createElement(
1811
- CommandItem,
1812
- {
1813
- key: i,
1814
- onSelect: () => {
1815
- const newValue = getProperty(item, valueKey);
1816
- setValue(newValue === value ? "" : newValue);
1817
- if (props.onChange) {
1818
- props.onChange(
1819
- newValue === value ? "" : newValue
1820
- );
1821
- }
1822
- setOpen(false);
1823
- }
1824
- },
1825
- /* @__PURE__ */ React25.createElement(
1826
- "svg",
1827
- {
1828
- "aria-label": "Check Icon",
1829
- xmlns: "http://www.w3.org/2000/svg",
1830
- width: "24",
1831
- height: "24",
1832
- viewBox: "0 0 24 24",
1833
- fill: "none",
1834
- stroke: "currentColor",
1835
- strokeWidth: "2",
1836
- strokeLinecap: "round",
1837
- strokeLinejoin: "round",
1838
- className: cn(
1839
- "hawa-icon",
1840
- value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
1841
- ),
1842
- style: { marginInlineEnd: "0.5rem" }
1843
- },
1844
- /* @__PURE__ */ React25.createElement("polyline", { points: "20 6 9 17 4 12" })
1845
- ),
1846
- getProperty(item, labelKey)
1847
- ))))
1848
- ))
1849
- );
1850
- }
1851
- );
1852
-
1853
- // components/elements/textarea/Textarea.tsx
1854
- import * as React26 from "react";
1855
- var Textarea = React26.forwardRef(
1856
- ({
1857
- className,
1858
- classNames,
1859
- labelProps,
1860
- showCount,
1861
- forceHideHelperText,
1862
- textareaProps,
1863
- countPosition = "bottom",
1864
- ...props
1865
- }, ref) => {
1866
- return /* @__PURE__ */ React26.createElement(
1867
- "div",
1868
- {
1869
- className: cn(
1870
- "textarea-main hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col",
1871
- !forceHideHelperText && "hawa-gap-2",
1872
- className
1873
- )
1874
- },
1875
- props.label && /* @__PURE__ */ React26.createElement(Label, { ...labelProps }, props.label),
1876
- /* @__PURE__ */ React26.createElement(
1877
- "textarea",
1878
- {
1879
- className: cn(
1880
- "hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
1881
- classNames == null ? void 0 : classNames.textarea
1882
- ),
1883
- ref,
1884
- ...textareaProps
1885
- }
1886
- ),
1887
- /* @__PURE__ */ React26.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React26.createElement(
1888
- "p",
1889
- {
1890
- className: cn(
1891
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
1892
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
1893
- )
1894
- },
1895
- props.helperText
1896
- ), showCount && /* @__PURE__ */ React26.createElement(
1897
- "div",
1898
- {
1899
- className: cn(
1900
- "hawa-text-start hawa-text-xs hawa-transition-all",
1901
- {
1902
- "hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
1903
- }
1904
- )
1905
- },
1906
- (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
1907
- "/",
1908
- textareaProps == null ? void 0 : textareaProps.maxLength
1909
- ))
1910
- );
1911
- }
1912
- );
1913
- Textarea.displayName = "Textarea";
1914
-
1915
- // components/elements/fileDropzone/FileDropzone.tsx
1916
- import React27, { useEffect as useEffect5, useState as useState7 } from "react";
1917
- import { useDropzone } from "react-dropzone";
1918
- import clsx from "clsx";
1919
-
1920
- // components/elements/sortButton/SortButton.tsx
1921
- import React28 from "react";
1922
-
1923
- // components/elements/tabs/Tabs.tsx
1924
- import * as React29 from "react";
1925
- import * as TabsPrimitive from "@radix-ui/react-tabs";
1926
- var TabsContext = React29.createContext({ orientation: "vertical" });
1927
- var Tabs = React29.forwardRef(({ className, orientation, ...props }, ref) => /* @__PURE__ */ React29.createElement(
1928
- TabsPrimitive.Root,
1929
- {
1930
- ref,
1931
- className: cn(
1932
- "hawa-flex hawa-gap-2",
1933
- orientation === "vertical" ? "hawa-flex-row" : "hawa-flex-col",
1934
- className
1935
- ),
1936
- ...props
1937
- },
1938
- /* @__PURE__ */ React29.createElement(TabsContext.Provider, { value: { orientation } }, props.children)
1939
- ));
1940
- Tabs.displayName = TabsPrimitive.Root.displayName;
1941
- var TabsList = React29.forwardRef(({ className, ...props }, ref) => {
1942
- const { orientation } = React29.useContext(TabsContext);
1943
- return /* @__PURE__ */ React29.createElement(
1944
- TabsPrimitive.List,
1945
- {
1946
- ref,
1947
- className: cn(
1948
- "hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-border hawa-bg-muted hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10",
1949
- orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
1950
- className
1951
- ),
1952
- ...props
1953
- }
1954
- );
1955
- });
1956
- TabsList.displayName = TabsPrimitive.List.displayName;
1957
- var TabsTrigger = React29.forwardRef(({ className, chipProps, ...props }, ref) => {
1958
- return /* @__PURE__ */ React29.createElement(
1959
- TabsPrimitive.Trigger,
1960
- {
1961
- ref,
1962
- className: cn(
1963
- "hawa-inline-flex hawa-w-full hawa-flex-1 hawa-select-none hawa-items-center hawa-justify-center hawa-gap-2 hawa-whitespace-nowrap hawa-rounded hawa-border hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-all focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[state=active]:hawa-bg-primary data-[state=active]:hawa-text-primary-foreground data-[state=active]:hawa-shadow-sm dark:hawa-border-primary/10",
1964
- className
1965
- ),
1966
- ...props
1967
- },
1968
- props.children,
1969
- chipProps && /* @__PURE__ */ React29.createElement(Chip, { ...chipProps })
1970
- );
1971
- });
1972
- TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
1973
- var TabsContent = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React29.createElement(
1974
- TabsPrimitive.Content,
1975
- {
1976
- ref,
1977
- className: cn(
1978
- "hawa-ring-offset-hawa-background hawa-w-full focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2",
1979
- className
1980
- ),
1981
- ...props
1982
- }
1983
- ));
1984
- TabsContent.displayName = TabsPrimitive.Content.displayName;
1985
-
1986
- // components/elements/select/Select.tsx
1987
- import React30 from "react";
1988
- import ReactSelect from "react-select";
1989
- import CreatableSelect from "react-select/creatable";
1990
- import clsx2 from "clsx";
1991
-
1992
- // components/elements/switch/Switch.tsx
1993
- import * as React31 from "react";
1994
- import * as SwitchPrimitives from "@radix-ui/react-switch";
1995
- var Switch = React31.forwardRef(
1996
- ({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
1997
- const [parentDirection, setParentDirection] = React31.useState(
1998
- null
1999
- );
2000
- const parentRef = React31.useRef(null);
2001
- React31.useEffect(() => {
2002
- var _a;
2003
- const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
2004
- if (parentNode) {
2005
- const dir = window.getComputedStyle(parentNode).direction;
2006
- setParentDirection(dir);
2007
- }
2008
- });
2009
- const rootSize = {
2010
- default: "hawa-h-[25px] hawa-w-[42px]",
2011
- sm: "hawa-h-[20px] hawa-w-[37px]",
2012
- lg: "hawa-h-[30px] hawa-w-[47px]"
2013
- };
2014
- const thumbSize = {
2015
- default: "hawa-h-[21px] hawa-w-[21px]",
2016
- sm: "hawa-h-[16px] hawa-w-[16px]",
2017
- lg: "hawa-h-[26px] hawa-w-[26px]"
2018
- };
2019
- const rootRoundednessStyles = {
2020
- none: "hawa-rounded-none",
2021
- full: "hawa-rounded-full",
2022
- inherit: "hawa-rounded"
2023
- };
2024
- const thumbRoundednessStyles = {
2025
- none: "hawa-rounded-none",
2026
- full: "hawa-rounded-full",
2027
- inherit: "hawa-rounded-inner"
2028
- };
2029
- return /* @__PURE__ */ React31.createElement(
2030
- "div",
2031
- {
2032
- className: "hawa-flex hawa-flex-row hawa-items-center",
2033
- ref: parentRef
2034
- },
2035
- /* @__PURE__ */ React31.createElement(
2036
- SwitchPrimitives.Root,
2037
- {
2038
- className: cn(
2039
- "data-[state=unchecked]:hawa-bg-primary/20",
2040
- "data-[state=checked]:hawa-bg-primary",
2041
- "hawa-relative hawa-cursor-pointer hawa-rounded hawa-outline-none",
2042
- rootRoundednessStyles[roundedness],
2043
- className,
2044
- rootSize[size]
2045
- ),
2046
- ...props,
2047
- ref
2048
- },
2049
- /* @__PURE__ */ React31.createElement(
2050
- SwitchPrimitives.Thumb,
2051
- {
2052
- className: cn(
2053
- thumbSize[size],
2054
- "hawa-block hawa-rounded hawa-transition-transform hawa-duration-100 hawa-will-change-transform",
2055
- "data-[state=checked]:hawa-bg-primary-foreground",
2056
- "hawa-bg-white dark:hawa-bg-background",
2057
- thumbRoundednessStyles[roundedness],
2058
- parentDirection === "rtl" ? "hawa--translate-x-0.5 data-[state=checked]:hawa--translate-x-[19px]" : "hawa-translate-x-0.5 data-[state=checked]:hawa-translate-x-[19px]"
2059
- )
2060
- }
2061
- )
2062
- ),
2063
- label && /* @__PURE__ */ React31.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
2064
- );
2065
- }
2066
- );
2067
- Switch.displayName = SwitchPrimitives.Root.displayName;
2068
-
2069
- // components/elements/checkbox/Checkbox.tsx
2070
- import * as React32 from "react";
2071
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
2072
- var CheckboxElement = React32.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
2073
- let checkboxRadius = {
2074
- none: "hawa-rounded-none",
2075
- inherit: "hawa-rounded-sm",
2076
- full: "hawa-rounded-full"
2077
- };
2078
- let checkboxSizes = {
2079
- xs: "hawa-w-3 hawa-h-3",
2080
- sm: "hawa-w-6 hawa-h-6",
2081
- default: "hawa-icon",
2082
- md: "hawa-w-8 hawa-h-8",
2083
- lg: "hawa-w-10 hawa-h-10",
2084
- xl: "hawa-w-12 hawa-h-12"
2085
- };
2086
- let checkboxIndicatorSizes = {
2087
- xs: "0.5em",
2088
- default: "0.60em",
2089
- sm: "0.75em",
2090
- md: "0.875em",
2091
- lg: "1em",
2092
- xl: "1.25em"
2093
- };
2094
- return /* @__PURE__ */ React32.createElement(
2095
- CheckboxPrimitive.Root,
2096
- {
2097
- ref,
2098
- className: cn(
2099
- "hawa-peer hawa-shrink-0 hawa-border hawa-border-primary hawa-ring-offset-background focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50 data-[state=checked]:hawa-bg-primary data-[state=checked]:hawa-text-primary-foreground",
2100
- checkboxSizes[size],
2101
- checkboxRadius[radius],
2102
- className
2103
- ),
2104
- ...props
2105
- },
2106
- /* @__PURE__ */ React32.createElement(
2107
- CheckboxPrimitive.Indicator,
2108
- {
2109
- className: cn(
2110
- "hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
2111
- )
2112
- },
2113
- /* @__PURE__ */ React32.createElement(
2114
- "svg",
2115
- {
2116
- "aria-label": "Check Mark",
2117
- stroke: "currentColor",
2118
- fill: "currentColor",
2119
- strokeWidth: "0",
2120
- viewBox: "0 0 512 512",
2121
- height: checkboxIndicatorSizes[size],
2122
- width: checkboxIndicatorSizes[size]
2123
- },
2124
- /* @__PURE__ */ React32.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
2125
- ),
2126
- " "
2127
- )
2128
- );
2129
- });
2130
- CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
2131
-
2132
- // components/elements/progress/Progress.tsx
2133
- import * as React33 from "react";
2134
- import * as ProgressPrimitive from "@radix-ui/react-progress";
2135
- var Progress = React33.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React33.createElement(
2136
- ProgressPrimitive.Root,
2137
- {
2138
- ref,
2139
- className: cn(
2140
- "hawa-relative hawa-h-4 hawa-w-full hawa-overflow-hidden hawa-rounded hawa-bg-secondary",
2141
- className
2142
- ),
2143
- ...props
2144
- },
2145
- /* @__PURE__ */ React33.createElement(
2146
- ProgressPrimitive.Indicator,
2147
- {
2148
- className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
2149
- style: { transform: `translateX(-${100 - (value || 0)}%)` }
2150
- }
2151
- )
2152
- ));
2153
- Progress.displayName = ProgressPrimitive.Root.displayName;
2154
-
2155
- // components/elements/breadcrumb/Breadcrumb.tsx
2156
- import React34 from "react";
2157
-
2158
- // components/elements/appStores/AppStores.tsx
2159
- import React35 from "react";
2160
-
2161
- // components/elements/badge/Badge.tsx
2162
- import React36, { useEffect as useEffect7, useState as useState9, useRef as useRef6 } from "react";
2163
-
2164
- // components/elements/phoneInput/PhoneInput.tsx
2165
- import React37, { useState as useState10, useRef as useRef7, useEffect as useEffect8 } from "react";
2166
-
2167
- // components/elements/pinInput/PinInput.tsx
2168
- import React38, { useEffect as useEffect9, useState as useState11 } from "react";
2169
-
2170
- // components/elements/stopPropagationWrapper/StopPropagationWrapper.tsx
2171
- import React39 from "react";
2172
-
2173
- // components/elements/scrollArea/ScrollArea.tsx
2174
- import * as React40 from "react";
2175
- import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
2176
- var ScrollArea = React40.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React40.createElement(
2177
- ScrollAreaPrimitive.Root,
2178
- {
2179
- ref,
2180
- className: cn("hawa-relative hawa-overflow-hidden", className),
2181
- ...props
2182
- },
2183
- /* @__PURE__ */ React40.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
2184
- /* @__PURE__ */ React40.createElement(ScrollBar, { orientation }),
2185
- /* @__PURE__ */ React40.createElement(ScrollAreaPrimitive.Corner, null)
2186
- ));
2187
- ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
2188
- var ScrollBar = React40.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React40.createElement(
2189
- ScrollAreaPrimitive.ScrollAreaScrollbar,
2190
- {
2191
- ref,
2192
- orientation,
2193
- className: cn(
2194
- "hawa-flex hawa-touch-none hawa-select-none hawa-transition-colors",
2195
- orientation === "vertical" && "hawa-h-full hawa-w-2.5 hawa-border-l hawa-border-l-transparent hawa-p-[1px]",
2196
- orientation === "horizontal" && "hawa-h-2.5 hawa-border-t hawa-border-t-transparent hawa-p-[1px]",
2197
- className
2198
- ),
2199
- ...props
2200
- },
2201
- /* @__PURE__ */ React40.createElement(
2202
- ScrollAreaPrimitive.ScrollAreaThumb,
2203
- {
2204
- className: cn(
2205
- "hawa-relative hawa-rounded-full hawa-bg-border",
2206
- orientation === "vertical" && "hawa-flex-1"
2207
- )
2208
- }
2209
- )
2210
- ));
2211
- ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
2212
-
2213
- // components/elements/progressCircle/ProgressCircle.tsx
2214
- import React41 from "react";
2215
- var size2config = {
2216
- xs: {
2217
- radius: 15,
2218
- strokeWidth: 3
2219
- },
2220
- sm: {
2221
- radius: 19,
2222
- strokeWidth: 4
2223
- },
2224
- md: {
2225
- radius: 32,
2226
- strokeWidth: 6
2227
- },
2228
- lg: {
2229
- radius: 52,
2230
- strokeWidth: 8
2231
- },
2232
- xl: {
2233
- radius: 80,
2234
- strokeWidth: 10
2235
- }
2236
- };
2237
- function getLimitedValue(input) {
2238
- if (input === void 0) {
2239
- return 0;
2240
- } else if (input > 100) {
2241
- return 100;
2242
- } else {
2243
- return input;
2244
- }
2245
- }
2246
- var ProgressCircle = React41.forwardRef((props, ref) => {
2247
- const {
2248
- value: inputValue,
2249
- size = "md",
2250
- className,
2251
- showAnimation = true,
2252
- color,
2253
- tooltip,
2254
- radius: inputRadius,
2255
- strokeWidth: inputStrokeWidth,
2256
- children,
2257
- ...other
2258
- } = props;
2259
- const value = getLimitedValue(inputValue);
2260
- const radius = inputRadius != null ? inputRadius : size2config[size].radius;
2261
- const strokeWidth = inputStrokeWidth != null ? inputStrokeWidth : size2config[size].strokeWidth;
2262
- const normalizedRadius = radius - strokeWidth / 2;
2263
- const circumference = normalizedRadius * 2 * Math.PI;
2264
- const strokeDashoffset = value / 100 * circumference;
2265
- const offset = circumference - strokeDashoffset;
2266
- return /* @__PURE__ */ React41.createElement(React41.Fragment, null, /* @__PURE__ */ React41.createElement(
2267
- "div",
2268
- {
2269
- ref,
2270
- className: cn(
2271
- "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
2272
- className
2273
- )
2274
- },
2275
- /* @__PURE__ */ React41.createElement(
2276
- "svg",
2277
- {
2278
- width: radius * 2,
2279
- height: radius * 2,
2280
- viewBox: `0 0 ${radius * 2} ${radius * 2}`,
2281
- className: "hawa-rotate-180 hawa-transform"
2282
- },
2283
- /* @__PURE__ */ React41.createElement(
2284
- "circle",
2285
- {
2286
- r: normalizedRadius,
2287
- cx: radius,
2288
- cy: radius,
2289
- strokeWidth,
2290
- fill: "transparent",
2291
- stroke: "",
2292
- strokeLinecap: "round",
2293
- className: cn(
2294
- "hawa-transition-colors hawa-ease-linear",
2295
- " hawa-stroke-primary/20"
2296
- )
2297
- }
2298
- ),
2299
- value > 0 ? /* @__PURE__ */ React41.createElement(
2300
- "circle",
2301
- {
2302
- r: normalizedRadius,
2303
- cx: radius,
2304
- cy: radius,
2305
- strokeWidth,
2306
- strokeDasharray: circumference + " " + circumference,
2307
- strokeDashoffset: offset,
2308
- fill: "transparent",
2309
- stroke: "",
2310
- strokeLinecap: "round",
2311
- className: cn(
2312
- "hawa-transition-colors hawa-ease-linear",
2313
- "hawa-stroke-primary",
2314
- showAnimation ? "hawa-transition-all hawa-duration-300 hawa-ease-in-out" : ""
2315
- )
2316
- }
2317
- ) : null
2318
- ),
2319
- /* @__PURE__ */ React41.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
2320
- ));
2321
- });
2322
- ProgressCircle.displayName = "ProgressCircle";
2323
-
2324
- // components/elements/pagination/Pagination.tsx
2325
- import React42 from "react";
2326
- import { Pagination as PaginationPrimitive } from "react-headless-pagination";
2327
-
2328
- // components/elements/passwordInput/PasswordInput.tsx
2329
- import React46, { useEffect as useEffect10, useState as useState12 } from "react";
2330
-
2331
- // components/icons/Emojis.tsx
2332
- import React43 from "react";
2333
-
2334
- // components/icons/InputIcons.tsx
2335
- import React44 from "react";
2336
-
2337
- // components/icons/CommonIcons.tsx
2338
- import React45 from "react";
2339
-
2340
- // components/elements/slider/Slider.tsx
2341
- import * as React47 from "react";
2342
- import * as SliderPrimitive from "@radix-ui/react-slider";
2343
- var Slider = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React47.createElement(
2344
- SliderPrimitive.Root,
2345
- {
2346
- ref,
2347
- className: cn(
2348
- "hawa-relative hawa-flex hawa-w-full hawa-touch-none hawa-select-none hawa-items-center",
2349
- className
2350
- ),
2351
- ...props
2352
- },
2353
- /* @__PURE__ */ React47.createElement(SliderPrimitive.Track, { className: "hawa-relative hawa-h-2 hawa-w-full hawa-grow hawa-overflow-hidden hawa-rounded-full hawa-border hawa-bg-background" }, /* @__PURE__ */ React47.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
2354
- /* @__PURE__ */ React47.createElement(SliderPrimitive.Thumb, { className: "hawa-block hawa-h-5 hawa-w-5 hawa-rounded-full hawa-border-2 hawa-border-primary hawa-bg-background hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50" })
2355
- ));
2356
- Slider.displayName = SliderPrimitive.Root.displayName;
2357
-
2358
- // components/elements/simpleTable/SimpleTable.tsx
2359
- import * as React48 from "react";
2360
- import {
2361
- flexRender as flexRender2,
2362
- getCoreRowModel as getCoreRowModel2,
2363
- useReactTable as useReactTable2
2364
- } from "@tanstack/react-table";
2365
-
2366
- // components/elements/separator/Separator.tsx
2367
- import * as React49 from "react";
2368
-
2369
- // components/elements/scrollIndicator/ScrollIndicator.tsx
2370
- import React50, { useState as useState13, useEffect as useEffect11 } from "react";
2371
-
2372
- // components/elements/carousel/Carousel.tsx
2373
- import React51, { useEffect as useEffect12, useState as useState14 } from "react";
2374
- import useEmblaCarousel from "embla-carousel-react";
2375
-
2376
- // components/elements/count/Count.tsx
2377
- import React52 from "react";
2378
-
2379
- // components/elements/toast/Toast.tsx
2380
- import * as React53 from "react";
2381
- import * as ToastPrimitives from "@radix-ui/react-toast";
2382
- import { cva as cva4 } from "class-variance-authority";
2383
- var toastVariants = cva4(
2384
- "hawa-group hawa-z-[900] hawa-pointer-events-auto hawa-relative hawa-flex hawa-w-full hawa-items-center hawa-justify-between hawa-overflow-hidden hawa-rounded-md hawa-border hawa-shadow-lg hawa-transition-all data-[swipe=cancel]:hawa-translate-x-0 data-[swipe=end]:hawa-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:hawa-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:hawa-transition-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[swipe=end]:hawa-animate-out data-[state=closed]:hawa-fade-out-80 data-[state=open]:hawa-slide-in-from-top-full data-[state=open]:sm:hawa-slide-in-from-bottom-full",
2385
- {
2386
- variants: {
2387
- variant: {
2388
- default: "hawa-border hawa-bg-background hawa-text-foreground",
2389
- destructive: "hawa-destructive hawa-group hawa-border-destructive hawa-bg-destructive hawa-text-destructive-foreground"
2390
- },
2391
- severity: {
2392
- info: "hawa-info hawa-group hawa-text-info-foreground hawa-bg-info",
2393
- warning: "hawa-warning hawa-group hawa-text-warning-foreground hawa-bg-warning",
2394
- error: "hawa-error hawa-group hawa-border-error hawa-bg-error hawa-text-white",
2395
- success: "hawa-success hawa-group hawa-text-success-foreground hawa-bg-success",
2396
- none: ""
2397
- }
2398
- },
2399
- defaultVariants: { variant: "default" }
2400
- }
2401
- );
2402
- var sizeStyles = {
2403
- default: "hawa-text-sm",
2404
- // Update this based on the desired padding for rtl
2405
- sm: "hawa-text-xs"
2406
- };
2407
- var ToastViewport = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React53.createElement(
2408
- ToastPrimitives.Viewport,
2409
- {
2410
- ref,
2411
- className: cn(
2412
- "hawa-fixed hawa-top-0 hawa-z-[100] hawa-flex hawa-max-h-screen hawa-w-full hawa-flex-col-reverse hawa-p-4 sm:hawa-bottom-0 sm:hawa-right-0 sm:hawa-top-auto sm:hawa-flex-col md:hawa-max-w-[420px]",
2413
- className
2414
- ),
2415
- ...props
2416
- }
2417
- ));
2418
- ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
2419
- var Toast = React53.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
2420
- return /* @__PURE__ */ React53.createElement(
2421
- ToastPrimitives.Root,
2422
- {
2423
- ref,
2424
- className: cn(
2425
- toastVariants({ variant, severity }),
2426
- className,
2427
- direction === "rtl" ? "data-[state=closed]:hawa-slide-out-to-left-full" : "data-[state=closed]:hawa-slide-out-to-right-full"
2428
- ),
2429
- dir: direction,
2430
- ...props
2431
- }
2432
- );
2433
- });
2434
- Toast.displayName = ToastPrimitives.Root.displayName;
2435
- var ToastAction = React53.forwardRef(({ className, ...props }, ref) => {
2436
- return /* @__PURE__ */ React53.createElement(
2437
- ToastPrimitives.Action,
2438
- {
2439
- ref,
2440
- className: cn(
2441
- "hawa-inline-flex hawa-h-8 hawa-shrink-0 hawa-items-center hawa-justify-center hawa-rounded-md hawa-border hawa-bg-transparent hawa-px-3 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors hover:hawa-bg-secondary hover:hawa-text-secondary-foreground focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
2442
- "group-[.info]:hawa-border-muted/40 group-[.info]:hover:hawa-border-info/30 group-[.info]:hover:hawa-bg-info group-[.info]:hover:hawa-text-info-foreground group-[.info]:focus:hawa-ring-info",
2443
- "group-[.error]:hawa-border-muted/40 group-[.error]:hover:hawa-border-error/30 group-[.error]:hover:hawa-bg-error group-[.error]:hover:hawa-text-error-foreground group-[.error]:focus:hawa-ring-error",
2444
- "group-[.success]:hawa-border-muted/40 group-[.success]:hover:hawa-border-success/30 group-[.success]:hover:hawa-bg-success group-[.success]:hover:hawa-text-success-foreground group-[.success]:focus:hawa-ring-success",
2445
- "group-[.warning]:hawa-border-muted/40 group-[.warning]:hover:hawa-border-warning/30 group-[.warning]:hover:hawa-bg-warning group-[.warning]:hover:hawa-text-warning-foreground group-[.warning]:focus:hawa-ring-warning",
2446
- "hawa-whitespace-nowrap",
2447
- className
2448
- ),
2449
- ...props
2450
- }
2451
- );
2452
- });
2453
- ToastAction.displayName = ToastPrimitives.Action.displayName;
2454
- var ToastClose = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React53.createElement(
2455
- ToastPrimitives.Close,
2456
- {
2457
- ref,
2458
- className: cn(
2459
- // "hawa-absolute hawa-start-2 hawa-top-2",
2460
- // "group-hover:hawa-opacity-100",
2461
- "hawa-opacity-100",
2462
- "hawa-rounded-md hawa-p-1 hawa-text-foreground/50 hawa-transition-opacity hover:hawa-text-foreground focus:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 group-[.destructive]:hawa-text-red-300 group-[.destructive]:hover:hawa-text-red-50 group-[.destructive]:focus:hawa-ring-red-400 group-[.destructive]:focus:hawa-ring-offset-red-600",
2463
- className
2464
- ),
2465
- "toast-close": "",
2466
- ...props
2467
- },
2468
- /* @__PURE__ */ React53.createElement(
2469
- "svg",
2470
- {
2471
- "aria-label": "Close Icon",
2472
- "aria-hidden": "true",
2473
- className: "hawa-icon",
2474
- fill: "currentColor",
2475
- viewBox: "0 0 20 20"
2476
- },
2477
- /* @__PURE__ */ React53.createElement(
2478
- "path",
2479
- {
2480
- fillRule: "evenodd",
2481
- d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
2482
- clipRule: "evenodd"
2483
- }
2484
- )
2485
- )
2486
- ));
2487
- ToastClose.displayName = ToastPrimitives.Close.displayName;
2488
- var ToastTitle = React53.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React53.createElement(
2489
- ToastPrimitives.Title,
2490
- {
2491
- ref,
2492
- className: cn(
2493
- "hawa-select-text hawa-text-sm hawa-font-semibold",
2494
- sizeStyles[size],
2495
- className
2496
- ),
2497
- ...props
2498
- }
2499
- ));
2500
- ToastTitle.displayName = ToastPrimitives.Title.displayName;
2501
- var ToastDescription = React53.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React53.createElement(
2502
- ToastPrimitives.Description,
2503
- {
2504
- ref,
2505
- className: cn(
2506
- "hawa-select-text hawa-opacity-90",
2507
- sizeStyles[size],
2508
- className
2509
- ),
2510
- ...props
2511
- }
2512
- ));
2513
- ToastDescription.displayName = ToastPrimitives.Description.displayName;
2514
-
2515
- // components/elements/toaster/Toaster.tsx
2516
- import React55 from "react";
2517
-
2518
- // components/hooks/useToast.ts
2519
- import * as React54 from "react";
2520
-
2521
- // components/elements/destroyableCard/DestroyableCard.tsx
2522
- import React56, { useRef as useRef8, useState as useState16 } from "react";
2523
-
2524
- // components/elements/interfaceSettings/InterfaceSettings.tsx
2525
- import React57, { useState as useState17 } from "react";
2526
-
2527
- // components/hooks/useClipboard.ts
2528
- import { useState as useState18 } from "react";
2529
- function useClipboard({ timeout = 2e3 } = {}) {
2530
- const [error, setError] = useState18(null);
2531
- const [copied, setCopied] = useState18(false);
2532
- const [copyTimeout, setCopyTimeout] = useState18(null);
2533
- const handleCopyResult = (value) => {
2534
- clearTimeout(copyTimeout);
2535
- setCopyTimeout(setTimeout(() => setCopied(false), timeout));
2536
- setCopied(value);
2537
- };
2538
- const copy = (valueToCopy) => {
2539
- if ("clipboard" in navigator) {
2540
- navigator.clipboard.writeText(valueToCopy).then(() => handleCopyResult(true)).catch((err) => setError(err));
2541
- } else {
2542
- setError(new Error("useClipboard: navigator.clipboard is not supported"));
2543
- }
2544
- };
2545
- const reset = () => {
2546
- setCopied(false);
2547
- setError(null);
2548
- clearTimeout(copyTimeout);
2549
- };
2550
- return { copy, reset, error, copied };
2551
- }
287
+ Button.displayName = "Button";
2552
288
 
2553
- // components/elements/codeBlock/CodeBlock.tsx
289
+ // elements/codeBlock/CodeBlock.tsx
2554
290
  var CodeBlock = ({
2555
291
  tabs,
2556
292
  code,
@@ -2562,7 +298,7 @@ var CodeBlock = ({
2562
298
  ...props
2563
299
  }) => {
2564
300
  const clipboard = useClipboard();
2565
- const [selectedTab, setSelectedTab] = useState19(0);
301
+ const [selectedTab, setSelectedTab] = useState2(0);
2566
302
  const isDarkMode = props.forcedDarkMode || document.body.classList.contains("dark");
2567
303
  const theme = isDarkMode ? themes.vsDark : themes.vsLight;
2568
304
  let widthStyles = {
@@ -2571,7 +307,7 @@ var CodeBlock = ({
2571
307
  sm: "hawa-w-full hawa-max-w-sm",
2572
308
  xs: "hawa-w-full hawa-max-w-xs"
2573
309
  };
2574
- return /* @__PURE__ */ React58.createElement(
310
+ return /* @__PURE__ */ React3.createElement(
2575
311
  "div",
2576
312
  {
2577
313
  className: cn(
@@ -2580,7 +316,7 @@ var CodeBlock = ({
2580
316
  className
2581
317
  )
2582
318
  },
2583
- fileName && /* @__PURE__ */ React58.createElement(
319
+ fileName && /* @__PURE__ */ React3.createElement(
2584
320
  "div",
2585
321
  {
2586
322
  className: cn(
@@ -2588,7 +324,7 @@ var CodeBlock = ({
2588
324
  fileName && tabs ? "hawa-bg-gray-300 dark:hawa-bg-muted/50" : "hawa-bg-gray-200"
2589
325
  )
2590
326
  },
2591
- /* @__PURE__ */ React58.createElement(
327
+ /* @__PURE__ */ React3.createElement(
2592
328
  "div",
2593
329
  {
2594
330
  className: cn(
@@ -2598,7 +334,7 @@ var CodeBlock = ({
2598
334
  fileName
2599
335
  )
2600
336
  ),
2601
- tabs && /* @__PURE__ */ React58.createElement(
337
+ tabs && /* @__PURE__ */ React3.createElement(
2602
338
  "div",
2603
339
  {
2604
340
  className: cn(
@@ -2606,7 +342,7 @@ var CodeBlock = ({
2606
342
  tabs && fileName && "hawa-rounded-t-none"
2607
343
  )
2608
344
  },
2609
- tabs.map((tab, i) => /* @__PURE__ */ React58.createElement(
345
+ tabs.map((tab, i) => /* @__PURE__ */ React3.createElement(
2610
346
  "div",
2611
347
  {
2612
348
  key: i,
@@ -2614,7 +350,7 @@ var CodeBlock = ({
2614
350
  selectedTab === i ? " hawa-border-b-2 hawa-border-primary" : "hawa-bg-transparent"
2615
351
  )
2616
352
  },
2617
- /* @__PURE__ */ React58.createElement(
353
+ /* @__PURE__ */ React3.createElement(
2618
354
  "div",
2619
355
  {
2620
356
  onClick: () => setSelectedTab(i),
@@ -2626,7 +362,7 @@ var CodeBlock = ({
2626
362
  )
2627
363
  ))
2628
364
  ),
2629
- /* @__PURE__ */ React58.createElement(
365
+ /* @__PURE__ */ React3.createElement(
2630
366
  "div",
2631
367
  {
2632
368
  className: cn(
@@ -2634,26 +370,26 @@ var CodeBlock = ({
2634
370
  tabs || fileName ? "hawa-rounded-b hawa-rounded-t-none" : "hawa-rounded"
2635
371
  )
2636
372
  },
2637
- /* @__PURE__ */ React58.createElement(
373
+ /* @__PURE__ */ React3.createElement(
2638
374
  Highlight,
2639
375
  {
2640
376
  theme,
2641
377
  code: tabs ? tabs[selectedTab].code : code || "",
2642
378
  language
2643
379
  },
2644
- ({ className: className2, style, tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ React58.createElement("pre", { className: "hawa-min-h-[37.75px] hawa-w-full hawa-overflow-auto hawa-p-4 hawa-font-mono hawa-text-foreground" }, tokens.map((line, i) => /* @__PURE__ */ React58.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ React58.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ React58.createElement("span", { key, ...getTokenProps({ token }) })))))
380
+ ({ className: className2, style, tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ React3.createElement("pre", { className: "hawa-min-h-[37.75px] hawa-w-full hawa-overflow-auto hawa-p-4 hawa-font-mono hawa-text-foreground" }, tokens.map((line, i) => /* @__PURE__ */ React3.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ React3.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ React3.createElement("span", { key, ...getTokenProps({ token }) })))))
2645
381
  ),
2646
- /* @__PURE__ */ React58.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-p-2" }, /* @__PURE__ */ React58.createElement(
382
+ /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-p-2" }, /* @__PURE__ */ React3.createElement(
2647
383
  Tooltip,
2648
384
  {
2649
385
  open: clipboard.copied,
2650
386
  side: "left",
2651
- content: /* @__PURE__ */ React58.createElement("div", null, "Copied!"),
387
+ content: /* @__PURE__ */ React3.createElement("div", null, "Copied!"),
2652
388
  triggerProps: {
2653
389
  asChild: true
2654
390
  }
2655
391
  },
2656
- /* @__PURE__ */ React58.createElement(
392
+ /* @__PURE__ */ React3.createElement(
2657
393
  Button,
2658
394
  {
2659
395
  size: "icon",
@@ -2661,7 +397,7 @@ var CodeBlock = ({
2661
397
  variant: "outline",
2662
398
  className: "hawa-text-foreground hawa-opacity-50 sm:hawa-opacity-100"
2663
399
  },
2664
- /* @__PURE__ */ React58.createElement(
400
+ /* @__PURE__ */ React3.createElement(
2665
401
  "svg",
2666
402
  {
2667
403
  "aria-label": "Copy Icon",
@@ -2674,8 +410,8 @@ var CodeBlock = ({
2674
410
  height: "1em",
2675
411
  width: "1em"
2676
412
  },
2677
- /* @__PURE__ */ React58.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
2678
- /* @__PURE__ */ React58.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
413
+ /* @__PURE__ */ React3.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
414
+ /* @__PURE__ */ React3.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
2679
415
  )
2680
416
  )
2681
417
  ))