@sikka/hawa 0.23.2-next → 0.23.7-next

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/dist/accordion/index.js +30 -2399
  2. package/dist/accordion/index.mjs +19 -461
  3. package/dist/alert/index.mjs +0 -1
  4. package/dist/appStores/index.js +75 -0
  5. package/dist/appStores/index.mjs +38 -0
  6. package/dist/avatar/index.mjs +118 -3
  7. package/dist/backToTop/index.mjs +102 -4
  8. package/dist/badge/index.js +127 -0
  9. package/dist/badge/index.mjs +84 -0
  10. package/dist/blocks/auth/index.js +1173 -3092
  11. package/dist/blocks/auth/index.mjs +16 -10
  12. package/dist/blocks/feedback/index.js +864 -2913
  13. package/dist/blocks/feedback/index.mjs +14 -8
  14. package/dist/blocks/index.js +5714 -5316
  15. package/dist/blocks/index.mjs +390 -45
  16. package/dist/blocks/misc/index.js +634 -2409
  17. package/dist/blocks/misc/index.mjs +14 -8
  18. package/dist/blocks/pricing/index.js +522 -524
  19. package/dist/blocks/pricing/index.mjs +1861 -45
  20. package/dist/breadcrumb/index.js +63 -0
  21. package/dist/breadcrumb/index.mjs +26 -0
  22. package/dist/card/index.mjs +83 -8
  23. package/dist/checkbox/index.mjs +138 -3
  24. package/dist/chip/index.js +129 -0
  25. package/dist/chip/index.mjs +8 -0
  26. package/dist/{chunk-X6PCWJYD.mjs → chunk-2R2QPJT7.mjs} +761 -1104
  27. package/dist/chunk-677VOLD4.mjs +464 -0
  28. package/dist/chunk-72HYR6WB.mjs +88 -0
  29. package/dist/chunk-A25EXELT.mjs +131 -0
  30. package/dist/{chunk-OE27DSIY.mjs → chunk-F6TKEDDP.mjs} +2 -4
  31. package/dist/{chunk-YFC2GSJ6.mjs → chunk-P2O6R3S6.mjs} +66 -5
  32. package/dist/{chunk-GXXX5UB4.mjs → chunk-QGKW5R5F.mjs} +59 -20
  33. package/dist/chunk-TR56G3NM.mjs +2350 -0
  34. package/dist/chunk-UAVBFK53.mjs +346 -0
  35. package/dist/combobox/index.mjs +153 -7
  36. package/dist/dataTable/index.mjs +355 -8
  37. package/dist/elements/index.js +800 -1148
  38. package/dist/elements/index.mjs +1 -11
  39. package/dist/fileDropzone/index.mjs +226 -4
  40. package/dist/index.js +1721 -1721
  41. package/dist/index.mjs +1663 -1663
  42. package/dist/layout/index.js +493 -510
  43. package/dist/layout/index.mjs +1 -1
  44. package/dist/loading/index.mjs +0 -1
  45. package/dist/logos/index.mjs +204 -3
  46. package/dist/navigationMenu/index.mjs +155 -13
  47. package/dist/phoneInput/index.js +2074 -0
  48. package/dist/phoneInput/index.mjs +1776 -0
  49. package/dist/pinInput/index.js +130 -0
  50. package/dist/pinInput/index.mjs +88 -0
  51. package/dist/progress/index.js +71 -0
  52. package/dist/progress/index.mjs +29 -0
  53. package/dist/radio/index.mjs +202 -4
  54. package/dist/scrollArea/index.js +90 -0
  55. package/dist/scrollArea/index.mjs +47 -0
  56. package/dist/select/index.mjs +1 -1
  57. package/dist/sheet/index.mjs +137 -12
  58. package/dist/sortButton/index.mjs +40 -4
  59. package/dist/stopPropagationWrapper/index.js +48 -0
  60. package/dist/stopPropagationWrapper/index.mjs +11 -0
  61. package/dist/switch/index.mjs +79 -3
  62. package/dist/tabs/index.js +1 -1
  63. package/dist/tabs/index.mjs +68 -6
  64. package/dist/textarea/index.mjs +54 -4
  65. package/package.json +2 -2
  66. package/dist/Chip-DJ6ThZc_.d.ts +0 -21
  67. package/dist/Chip-eal8vwDz.d.mts +0 -21
  68. package/dist/accordion/index.d.mts +0 -42
  69. package/dist/accordion/index.d.ts +0 -42
  70. package/dist/alert/index.d.mts +0 -28
  71. package/dist/alert/index.d.ts +0 -28
  72. package/dist/avatar/index.d.mts +0 -15
  73. package/dist/avatar/index.d.ts +0 -15
  74. package/dist/backToTop/index.d.mts +0 -15
  75. package/dist/backToTop/index.d.ts +0 -15
  76. package/dist/button/index.d.mts +0 -16
  77. package/dist/button/index.d.ts +0 -16
  78. package/dist/card/index.d.mts +0 -17
  79. package/dist/card/index.d.ts +0 -17
  80. package/dist/checkbox/index.d.mts +0 -20
  81. package/dist/checkbox/index.d.ts +0 -20
  82. package/dist/chunk-BK5WF7UO.mjs +0 -231
  83. package/dist/chunk-CXWYC6FS.mjs +0 -360
  84. package/dist/chunk-D2USGMDT.mjs +0 -208
  85. package/dist/chunk-DX4SLF2L.mjs +0 -45
  86. package/dist/chunk-ENNSA4VR.mjs +0 -5566
  87. package/dist/chunk-GXSYCLZZ.mjs +0 -158
  88. package/dist/chunk-IQPGAHUR.mjs +0 -107
  89. package/dist/chunk-POT2IP62.mjs +0 -123
  90. package/dist/chunk-TWDZB2VH.mjs +0 -151
  91. package/dist/chunk-VBTYVVA7.mjs +0 -93
  92. package/dist/chunk-VCGW5DIP.mjs +0 -170
  93. package/dist/chunk-X3SMPIA3.mjs +0 -0
  94. package/dist/chunk-XA646BZ2.mjs +0 -143
  95. package/dist/chunk-ZCUUQ5VV.mjs +0 -84
  96. package/dist/combobox/index.d.mts +0 -32
  97. package/dist/combobox/index.d.ts +0 -32
  98. package/dist/command/index.d.mts +0 -48
  99. package/dist/command/index.d.ts +0 -48
  100. package/dist/commonTypes-gbO4hPli.d.mts +0 -7
  101. package/dist/commonTypes-gbO4hPli.d.ts +0 -7
  102. package/dist/dataTable/index.d.mts +0 -39
  103. package/dist/dataTable/index.d.ts +0 -39
  104. package/dist/dialog/index.d.mts +0 -57
  105. package/dist/dialog/index.d.ts +0 -57
  106. package/dist/dropdownMenu/index.d.mts +0 -95
  107. package/dist/dropdownMenu/index.d.ts +0 -95
  108. package/dist/fileDropzone/index.d.mts +0 -37
  109. package/dist/fileDropzone/index.d.ts +0 -37
  110. package/dist/input/index.d.mts +0 -36
  111. package/dist/input/index.d.ts +0 -36
  112. package/dist/label/index.d.mts +0 -12
  113. package/dist/label/index.d.ts +0 -12
  114. package/dist/loading/index.d.mts +0 -15
  115. package/dist/loading/index.d.ts +0 -15
  116. package/dist/logos/index.d.mts +0 -27
  117. package/dist/logos/index.d.ts +0 -27
  118. package/dist/navigationMenu/index.d.mts +0 -39
  119. package/dist/navigationMenu/index.d.ts +0 -39
  120. package/dist/popover/index.d.mts +0 -23
  121. package/dist/popover/index.d.ts +0 -23
  122. package/dist/radio/index.d.mts +0 -28
  123. package/dist/radio/index.d.ts +0 -28
  124. package/dist/select/index.d.mts +0 -43
  125. package/dist/select/index.d.ts +0 -43
  126. package/dist/sheet/index.d.mts +0 -30
  127. package/dist/sheet/index.d.ts +0 -30
  128. package/dist/skeleton/index.d.mts +0 -10
  129. package/dist/skeleton/index.d.ts +0 -10
  130. package/dist/sortButton/index.d.mts +0 -10
  131. package/dist/sortButton/index.d.ts +0 -10
  132. package/dist/splitButton/index.d.mts +0 -15
  133. package/dist/splitButton/index.d.ts +0 -15
  134. package/dist/switch/index.d.mts +0 -12
  135. package/dist/switch/index.d.ts +0 -12
  136. package/dist/table/index.d.mts +0 -21
  137. package/dist/table/index.d.ts +0 -21
  138. package/dist/tabs/index.d.mts +0 -16
  139. package/dist/tabs/index.d.ts +0 -16
  140. package/dist/textarea/index.d.mts +0 -17
  141. package/dist/textarea/index.d.ts +0 -17
  142. package/dist/tooltip/index.d.mts +0 -26
  143. package/dist/tooltip/index.d.ts +0 -26
  144. /package/dist/{chunk-A7OPD7H7.mjs → chunk-B6UCD4GP.mjs} +0 -0
  145. /package/dist/{chunk-O2ALK7UE.mjs → chunk-Z4M72OD3.mjs} +0 -0
@@ -42,10 +42,11 @@ __export(misc_exports, {
42
42
  module.exports = __toCommonJS(misc_exports);
43
43
 
44
44
  // components/blocks/misc/LegalTexts.tsx
45
- var import_react41 = __toESM(require("react"));
45
+ var import_react2 = __toESM(require("react"));
46
46
 
47
- // components/elements/card/Card.tsx
47
+ // components/elements/scrollArea/ScrollArea.tsx
48
48
  var React = __toESM(require("react"));
49
+ var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
49
50
 
50
51
  // components/util.ts
51
52
  var import_clsx = require("clsx");
@@ -54,88 +55,223 @@ function cn(...inputs) {
54
55
  return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
55
56
  }
56
57
 
57
- // components/elements/card/Card.tsx
58
- var Card = React.forwardRef(
59
- ({ className, variant = "default", clickable = false, ...props }, ref) => {
60
- let variantStyles = {
61
- default: cn(
62
- "hawa-rounded-lg hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
63
- clickable && "hawa-cursor-pointer hawa-transition-all hover:hawa-drop-shadow-md dark:hover:dark-shadow"
64
- ),
65
- neoBrutalism: cn(
66
- "neo-brutalism",
67
- // "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]",
68
- 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"
69
- )
70
- };
71
- return /* @__PURE__ */ React.createElement(
72
- "div",
73
- {
74
- ref,
75
- className: cn(className, variantStyles[variant]),
76
- ...props
77
- }
78
- );
79
- }
80
- );
81
- var CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
82
- "div",
58
+ // components/elements/scrollArea/ScrollArea.tsx
59
+ var ScrollArea = React.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React.createElement(
60
+ ScrollAreaPrimitive.Root,
83
61
  {
84
62
  ref,
85
- className: cn(
86
- "hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
87
- className
88
- ),
63
+ className: cn("hawa-relative hawa-overflow-hidden", className),
89
64
  ...props
90
- }
65
+ },
66
+ /* @__PURE__ */ React.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
67
+ /* @__PURE__ */ React.createElement(ScrollBar, { orientation }),
68
+ /* @__PURE__ */ React.createElement(ScrollAreaPrimitive.Corner, null)
91
69
  ));
92
- var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
93
- "h3",
70
+ ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
71
+ var ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React.createElement(
72
+ ScrollAreaPrimitive.ScrollAreaScrollbar,
94
73
  {
95
74
  ref,
96
- className: cn("hawa-text-2xl hawa-font-semibold ", className),
75
+ orientation,
76
+ className: cn(
77
+ "hawa-flex hawa-touch-none hawa-select-none hawa-transition-colors",
78
+ orientation === "vertical" && "hawa-h-full hawa-w-2.5 hawa-border-l hawa-border-l-transparent hawa-p-[1px]",
79
+ orientation === "horizontal" && "hawa-h-2.5 hawa-border-t hawa-border-t-transparent hawa-p-[1px]",
80
+ className
81
+ ),
97
82
  ...props
98
- }
83
+ },
84
+ /* @__PURE__ */ React.createElement(
85
+ ScrollAreaPrimitive.ScrollAreaThumb,
86
+ {
87
+ className: cn(
88
+ "hawa-relative hawa-rounded-full hawa-bg-border",
89
+ orientation === "vertical" && "hawa-flex-1"
90
+ )
91
+ }
92
+ )
99
93
  ));
100
- var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
101
- "p",
94
+ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
95
+
96
+ // components/elements/tabs/Tabs.tsx
97
+ var React3 = __toESM(require("react"));
98
+ var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
99
+
100
+ // components/elements/chip/Chip.tsx
101
+ var import_react = __toESM(require("react"));
102
+ var Chip = import_react.default.forwardRef(
103
+ ({
104
+ label,
105
+ size = "normal",
106
+ icon,
107
+ color,
108
+ radius = "inherit",
109
+ dotType,
110
+ ...rest
111
+ }, ref) => {
112
+ 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 ";
113
+ let radiusStyles = {
114
+ inherit: " hawa-rounded",
115
+ full: "hawa-rounded-full",
116
+ none: "hawa-rounded-none"
117
+ };
118
+ let sizeStyles = {
119
+ small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
120
+ normal: "hawa-h-fit hawa-text-xs",
121
+ large: "hawa-text-base"
122
+ };
123
+ let dotStyles = {
124
+ small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
125
+ normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
126
+ large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
127
+ };
128
+ let dotTypeStyles = {
129
+ available: "hawa-bg-green-500",
130
+ unavailable: "hawa-bg-red-500"
131
+ };
132
+ let colorStyles = {
133
+ green: "hawa-bg-green-100 hawa-text-green-500 dark:hawa-bg-green-400 dark:hawa-text-green-800",
134
+ blue: "hawa-bg-blue-100 hawa-text-blue-500 dark:hawa-bg-blue-400 dark:hawa-text-blue-100",
135
+ red: "hawa-bg-red-100 hawa-text-red-500 dark:hawa-bg-red-400 dark:hawa-text-red-100",
136
+ yellow: "hawa-bg-yellow-100 hawa-text-yellow-600 dark:hawa-bg-yellow-400 dark:hawa-text-yellow-800",
137
+ orange: "hawa-bg-orange-100 hawa-text-orange-500 dark:hawa-bg-orange-400 dark:hawa-text-orange-100",
138
+ purple: "hawa-bg-purple-100 hawa-text-purple-500 dark:hawa-bg-purple-400 dark:hawa-text-purple-100",
139
+ cyan: "hawa-bg-cyan-100 hawa-text-cyan-800 dark:hawa-bg-cyan-400 dark:hawa-text-cyan-800",
140
+ hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-500 hawa-via-red-500 hawa-to-yellow-500 ",
141
+ oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
142
+ };
143
+ if (label) {
144
+ return /* @__PURE__ */ import_react.default.createElement(
145
+ "span",
146
+ {
147
+ ...rest,
148
+ ref,
149
+ className: cn(
150
+ defaultStyles,
151
+ sizeStyles[size],
152
+ radiusStyles[radius],
153
+ color ? colorStyles[color] : "hawa-border hawa-bg-none"
154
+ )
155
+ },
156
+ dotType && /* @__PURE__ */ import_react.default.createElement(
157
+ "span",
158
+ {
159
+ className: cn(dotStyles[size], dotTypeStyles[dotType])
160
+ }
161
+ ),
162
+ icon && icon,
163
+ label
164
+ );
165
+ } else {
166
+ return /* @__PURE__ */ import_react.default.createElement(
167
+ "span",
168
+ {
169
+ ...rest,
170
+ ref,
171
+ className: cn(
172
+ "hawa-h-2 hawa-w-2 hawa-rounded-full",
173
+ color ? colorStyles[color] : "hawa-border hawa-bg-none"
174
+ )
175
+ }
176
+ );
177
+ }
178
+ }
179
+ );
180
+
181
+ // components/elements/tabs/Tabs.tsx
182
+ var TabsContext = React3.createContext({ orientation: "vertical" });
183
+ var Tabs = React3.forwardRef(({ className, orientation, ...props }, ref) => /* @__PURE__ */ React3.createElement(
184
+ TabsPrimitive.Root,
102
185
  {
103
186
  ref,
104
- className: cn("hawa-text-sm hawa-text-muted-foreground", className),
187
+ className: cn(
188
+ "hawa-flex hawa-gap-2",
189
+ orientation === "vertical" ? "hawa-flex-row" : "hawa-flex-col",
190
+ className
191
+ ),
105
192
  ...props
106
- }
193
+ },
194
+ /* @__PURE__ */ React3.createElement(TabsContext.Provider, { value: { orientation } }, props.children)
107
195
  ));
108
- var CardContent = React.forwardRef(
109
- ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React.createElement(
110
- "div",
196
+ Tabs.displayName = TabsPrimitive.Root.displayName;
197
+ var TabsList = React3.forwardRef(({ className, ...props }, ref) => {
198
+ const { orientation } = React3.useContext(TabsContext);
199
+ return /* @__PURE__ */ React3.createElement(
200
+ TabsPrimitive.List,
111
201
  {
112
202
  ref,
113
203
  className: cn(
114
- noPadding ? "hawa-p-0" : "hawa-p-6",
115
- headless ? "hawa-pt-6" : "hawa-pt-0",
204
+ "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",
205
+ orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
116
206
  className
117
207
  ),
118
208
  ...props
119
209
  }
120
- )
121
- );
122
- var CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
123
- "div",
210
+ );
211
+ });
212
+ TabsList.displayName = TabsPrimitive.List.displayName;
213
+ var TabsTrigger = React3.forwardRef(({ className, chipProps, ...props }, ref) => {
214
+ return /* @__PURE__ */ React3.createElement(
215
+ TabsPrimitive.Trigger,
216
+ {
217
+ ref,
218
+ className: cn(
219
+ "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",
220
+ className
221
+ ),
222
+ ...props
223
+ },
224
+ props.children,
225
+ chipProps && /* @__PURE__ */ React3.createElement(Chip, { ...chipProps })
226
+ );
227
+ });
228
+ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
229
+ var TabsContent = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
230
+ TabsPrimitive.Content,
124
231
  {
125
232
  ref,
126
- className: cn("hawa-flex hawa-items-center hawa-p-6 hawa-pt-0", className),
233
+ className: cn(
234
+ "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",
235
+ className
236
+ ),
127
237
  ...props
128
238
  }
129
239
  ));
130
- CardDescription.displayName = "CardDescription";
131
- CardContent.displayName = "CardContent";
132
- CardHeader.displayName = "CardHeader";
133
- CardFooter.displayName = "CardFooter";
134
- CardTitle.displayName = "CardTitle";
135
- Card.displayName = "Card";
240
+ TabsContent.displayName = TabsPrimitive.Content.displayName;
241
+
242
+ // components/blocks/misc/LegalTexts.tsx
243
+ var LegalTexts = ({ tabs, ...props }) => {
244
+ return /* @__PURE__ */ import_react2.default.createElement(
245
+ Tabs,
246
+ {
247
+ value: props.activeTab,
248
+ onValueChange: props.handleTabChange,
249
+ defaultValue: props.defaultTab || tabs[0].value,
250
+ dir: props.direction
251
+ },
252
+ /* @__PURE__ */ import_react2.default.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ import_react2.default.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
253
+ tabs.map((tab, index) => /* @__PURE__ */ import_react2.default.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ import_react2.default.createElement(
254
+ ScrollArea,
255
+ {
256
+ className: cn(
257
+ "hawa-rounded hawa-border hawa-bg-muted hawa-p-4",
258
+ props.scrollAreaClassName
259
+ )
260
+ },
261
+ tab.content
262
+ )))
263
+ );
264
+ };
265
+
266
+ // components/blocks/misc/EmptyState.tsx
267
+ var import_react4 = __toESM(require("react"));
268
+
269
+ // components/elements/button/Button.tsx
270
+ var React6 = __toESM(require("react"));
271
+ var import_class_variance_authority = require("class-variance-authority");
136
272
 
137
273
  // components/elements/loading/Loading.tsx
138
- var import_react = __toESM(require("react"));
274
+ var import_react3 = __toESM(require("react"));
139
275
  var Loading = ({
140
276
  design = "spinner",
141
277
  size = "sm",
@@ -157,12 +293,12 @@ var Loading = ({
157
293
  };
158
294
  switch (design.split("-")[0]) {
159
295
  case "dots":
160
- return /* @__PURE__ */ import_react.default.createElement(
296
+ return /* @__PURE__ */ import_react3.default.createElement(
161
297
  "div",
162
298
  {
163
299
  className: cn("hawa-flex hawa-flex-row hawa-gap-2", props.className)
164
300
  },
165
- /* @__PURE__ */ import_react.default.createElement(
301
+ /* @__PURE__ */ import_react3.default.createElement(
166
302
  "div",
167
303
  {
168
304
  className: cn(
@@ -173,7 +309,7 @@ var Loading = ({
173
309
  )
174
310
  }
175
311
  ),
176
- /* @__PURE__ */ import_react.default.createElement(
312
+ /* @__PURE__ */ import_react3.default.createElement(
177
313
  "div",
178
314
  {
179
315
  className: cn(
@@ -184,7 +320,7 @@ var Loading = ({
184
320
  )
185
321
  }
186
322
  ),
187
- /* @__PURE__ */ import_react.default.createElement(
323
+ /* @__PURE__ */ import_react3.default.createElement(
188
324
  "div",
189
325
  {
190
326
  className: cn(
@@ -197,7 +333,7 @@ var Loading = ({
197
333
  )
198
334
  );
199
335
  case "square":
200
- return /* @__PURE__ */ import_react.default.createElement(
336
+ return /* @__PURE__ */ import_react3.default.createElement(
201
337
  "svg",
202
338
  {
203
339
  className: cn("squircle-container", sizeStyles[size]),
@@ -205,7 +341,7 @@ var Loading = ({
205
341
  height: "35",
206
342
  width: "35"
207
343
  },
208
- /* @__PURE__ */ import_react.default.createElement(
344
+ /* @__PURE__ */ import_react3.default.createElement(
209
345
  "rect",
210
346
  {
211
347
  className: "squircle-track",
@@ -217,7 +353,7 @@ var Loading = ({
217
353
  height: "32.5"
218
354
  }
219
355
  ),
220
- /* @__PURE__ */ import_react.default.createElement(
356
+ /* @__PURE__ */ import_react3.default.createElement(
221
357
  "rect",
222
358
  {
223
359
  className: "square-car",
@@ -232,7 +368,7 @@ var Loading = ({
232
368
  )
233
369
  );
234
370
  case "squircle":
235
- return /* @__PURE__ */ import_react.default.createElement(
371
+ return /* @__PURE__ */ import_react3.default.createElement(
236
372
  "svg",
237
373
  {
238
374
  className: cn("squircle-container", sizeStyles[size]),
@@ -243,7 +379,7 @@ var Loading = ({
243
379
  width: "37",
244
380
  preserveAspectRatio: "xMidYMid meet"
245
381
  },
246
- /* @__PURE__ */ import_react.default.createElement(
382
+ /* @__PURE__ */ import_react3.default.createElement(
247
383
  "path",
248
384
  {
249
385
  className: "squircle-track",
@@ -253,7 +389,7 @@ var Loading = ({
253
389
  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"
254
390
  }
255
391
  ),
256
- /* @__PURE__ */ import_react.default.createElement(
392
+ /* @__PURE__ */ import_react3.default.createElement(
257
393
  "path",
258
394
  {
259
395
  className: "squircle-car",
@@ -265,11 +401,11 @@ var Loading = ({
265
401
  )
266
402
  );
267
403
  case "progress":
268
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "progress-loading" });
404
+ return /* @__PURE__ */ import_react3.default.createElement("div", { className: "progress-loading" });
269
405
  case "orbit":
270
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "orbit-container" });
406
+ return /* @__PURE__ */ import_react3.default.createElement("div", { className: "orbit-container" });
271
407
  default:
272
- return /* @__PURE__ */ import_react.default.createElement(
408
+ return /* @__PURE__ */ import_react3.default.createElement(
273
409
  "svg",
274
410
  {
275
411
  className: cn("circle-container", sizeStyles[size]),
@@ -277,7 +413,7 @@ var Loading = ({
277
413
  height: "40",
278
414
  width: "40"
279
415
  },
280
- /* @__PURE__ */ import_react.default.createElement(
416
+ /* @__PURE__ */ import_react3.default.createElement(
281
417
  "circle",
282
418
  {
283
419
  className: cn("circle-track", {
@@ -292,7 +428,7 @@ var Loading = ({
292
428
  fill: "none"
293
429
  }
294
430
  ),
295
- /* @__PURE__ */ import_react.default.createElement(
431
+ /* @__PURE__ */ import_react3.default.createElement(
296
432
  "circle",
297
433
  {
298
434
  className: cn("circle-car", {
@@ -311,2395 +447,433 @@ var Loading = ({
311
447
  }
312
448
  };
313
449
 
314
- // components/elements/tooltip/Tooltip.tsx
315
- var import_react2 = __toESM(require("react"));
316
- var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
317
- var TooltipContent = import_react2.default.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ import_react2.default.createElement(
318
- TooltipPrimitive.Content,
450
+ // components/elements/button/Button.tsx
451
+ var buttonVariants = (0, import_class_variance_authority.cva)(
452
+ "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",
319
453
  {
320
- ref,
321
- sideOffset,
322
- className: cn(
323
- "hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-text-popover-foreground hawa-shadow-md hawa-animate-in hawa-fade-in-0 hawa-zoom-in-95 data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=closed]:hawa-zoom-out-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",
324
- className
325
- ),
326
- ...props
327
- }
328
- ));
329
- TooltipContent.displayName = TooltipPrimitive.Content.displayName;
330
- var TooltipArrow = import_react2.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ import_react2.default.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
331
- TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
332
- var Tooltip = ({
333
- side,
334
- open,
335
- content,
336
- children,
337
- defaultOpen,
338
- onOpenChange,
339
- triggerProps,
340
- contentProps,
341
- providerProps,
342
- delayDuration = 300,
343
- ...props
344
- }) => {
345
- return /* @__PURE__ */ import_react2.default.createElement(
346
- TooltipPrimitive.TooltipProvider,
347
- {
348
- delayDuration,
349
- ...providerProps
454
+ variants: {
455
+ variant: {
456
+ default: "hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary/90",
457
+ light: "hawa-bg-primary/20 hawa-text-primary hover:hawa-bg-primary/40",
458
+ destructive: "hawa-bg-destructive hawa-text-destructive-foreground hover:hawa-bg-destructive/90",
459
+ outline: "hawa-border hawa-border-input hawa-bg-transparent hover:hawa-bg-accent hover:hawa-text-accent-foreground",
460
+ secondary: "hawa-bg-secondary hawa-text-secondary-foreground hover:hawa-bg-secondary/80",
461
+ ghost: "hover:hawa-bg-accent hover:hawa-text-accent-foreground",
462
+ link: "hawa-text-primary hawa-underline-offset-4 hover:hawa-underline",
463
+ combobox: "hawa-bg-background hawa-border",
464
+ neoBrutalism: "neo-brutalism"
465
+ // "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",
466
+ },
467
+ size: {
468
+ default: "hawa-h-10 hawa-px-4 hawa-py-2",
469
+ heightless: "hawa-px-4 hawa-py-4",
470
+ xs: "hawa-h-fit hawa-min-h-[25px] hawa-py-1 hawa-text-[10px] hawa-px-2 ",
471
+ sm: "hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3",
472
+ lg: "hawa-h-11 hawa-rounded-md hawa-px-8",
473
+ xl: "hawa-h-14 hawa-rounded-md hawa-px-10",
474
+ icon: "hawa-h-10 hawa-w-10",
475
+ smallIcon: "hawa-h-7 hawa-w-7"
476
+ }
350
477
  },
351
- /* @__PURE__ */ import_react2.default.createElement(
352
- TooltipPrimitive.Root,
478
+ defaultVariants: {
479
+ variant: "default",
480
+ size: "default"
481
+ }
482
+ }
483
+ );
484
+ var Button = React6.forwardRef(
485
+ ({
486
+ className,
487
+ variant,
488
+ size,
489
+ asChild = false,
490
+ centered = true,
491
+ isLoading,
492
+ children,
493
+ ...props
494
+ }, ref) => {
495
+ const Comp = "button";
496
+ const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
497
+ return /* @__PURE__ */ React6.createElement(
498
+ Comp,
353
499
  {
354
- open,
355
- defaultOpen,
356
- onOpenChange,
500
+ className: cn(
501
+ buttonVariants({ variant, size, className }),
502
+ centered && "hawa-justify-center"
503
+ ),
504
+ ref,
357
505
  ...props
358
506
  },
359
- /* @__PURE__ */ import_react2.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
360
- /* @__PURE__ */ import_react2.default.createElement(TooltipContent, { side, align: "center", ...contentProps }, content)
361
- )
362
- );
363
- };
507
+ isLoading ? /* @__PURE__ */ React6.createElement(
508
+ Loading,
509
+ {
510
+ design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
511
+ themeMode: variant === "outline" ? "light" : "dark",
512
+ color: loadingColor,
513
+ size: size === "sm" || size === "xs" ? "xs" : "button"
514
+ }
515
+ ) : children
516
+ );
517
+ }
518
+ );
519
+ Button.displayName = "Button";
364
520
 
365
- // components/elements/skeleton/Skeleton.tsx
366
- var import_react3 = __toESM(require("react"));
367
- function Skeleton({
368
- className,
369
- content,
370
- animation = "pulse",
371
- ...props
372
- }) {
373
- const animationStyles = {
374
- none: "hawa-rounded hawa-bg-muted",
375
- pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
376
- 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"
377
- };
378
- return /* @__PURE__ */ import_react3.default.createElement(
379
- "div",
380
- {
381
- className: cn(
382
- animationStyles[animation],
383
- content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
384
- className
521
+ // components/elements/card/Card.tsx
522
+ var React7 = __toESM(require("react"));
523
+ var Card = React7.forwardRef(
524
+ ({ className, variant = "default", clickable = false, ...props }, ref) => {
525
+ let variantStyles = {
526
+ default: cn(
527
+ "hawa-rounded-lg hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
528
+ clickable && "hawa-cursor-pointer hawa-transition-all hover:hawa-drop-shadow-md dark:hover:dark-shadow"
385
529
  ),
386
- ...props
387
- },
388
- content && content
389
- );
390
- }
391
-
392
- // components/elements/dropdownMenu/DropdownMenu.tsx
393
- var React5 = __toESM(require("react"));
394
- var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
395
- var DropdownMenuSubTrigger = React5.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React5.createElement(
396
- DropdownMenuPrimitive.SubTrigger,
530
+ neoBrutalism: cn(
531
+ "neo-brutalism",
532
+ // "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]",
533
+ 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"
534
+ )
535
+ };
536
+ return /* @__PURE__ */ React7.createElement(
537
+ "div",
538
+ {
539
+ ref,
540
+ className: cn(className, variantStyles[variant]),
541
+ ...props
542
+ }
543
+ );
544
+ }
545
+ );
546
+ var CardHeader = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
547
+ "div",
397
548
  {
398
549
  ref,
399
550
  className: cn(
400
- "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",
401
- inset && "hawa-pl-8",
551
+ "hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
402
552
  className
403
553
  ),
404
554
  ...props
405
- },
406
- /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
407
- " ",
408
- /* @__PURE__ */ React5.createElement(
409
- "svg",
410
- {
411
- "aria-label": "Chevron Right Icon",
412
- stroke: "currentColor",
413
- fill: "currentColor",
414
- strokeWidth: "0",
415
- viewBox: "0 0 16 16",
416
- height: "1em",
417
- width: "1em",
418
- className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
419
- },
420
- /* @__PURE__ */ React5.createElement(
421
- "path",
422
- {
423
- fillRule: "evenodd",
424
- 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"
425
- }
426
- )
427
- )
555
+ }
428
556
  ));
429
- DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
430
- var DropdownMenuSubContent = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
431
- DropdownMenuPrimitive.SubContent,
557
+ var CardTitle = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
558
+ "h3",
432
559
  {
433
560
  ref,
434
- className: cn(
435
- "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",
436
- className
437
- ),
561
+ className: cn("hawa-text-2xl hawa-font-semibold ", className),
438
562
  ...props
439
563
  }
440
564
  ));
441
- DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
442
- var DropdownMenuContent = React5.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React5.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React5.createElement(
443
- DropdownMenuPrimitive.Content,
565
+ var CardDescription = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
566
+ "p",
444
567
  {
445
568
  ref,
446
- sideOffset,
447
- className: cn(
448
- "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",
449
- className
450
- ),
569
+ className: cn("hawa-text-sm hawa-text-muted-foreground", className),
451
570
  ...props
452
571
  }
453
- )));
454
- DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
455
- var DropdownMenuItem = React5.forwardRef(({ className, inset, badged, slug, ...props }, ref) => {
456
- return /* @__PURE__ */ React5.createElement("a", { href: slug }, /* @__PURE__ */ React5.createElement(
457
- DropdownMenuPrimitive.Item,
572
+ ));
573
+ var CardContent = React7.forwardRef(
574
+ ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
575
+ "div",
458
576
  {
459
- disabled: props.disabled,
460
577
  ref,
461
578
  className: cn(
462
- "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",
463
- inset && "hawa-pl-8",
464
- props.end && Array.isArray(props.children) && props.children[1] && "hawa-gap-6",
579
+ noPadding ? "hawa-p-0" : "hawa-p-6",
580
+ headless ? "hawa-pt-6" : "hawa-pt-0",
465
581
  className
466
582
  ),
467
583
  ...props
468
- },
469
- /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
470
- props.end && props.end,
471
- !props.end && props.shortcut && /* @__PURE__ */ React5.createElement(DropdownMenuShortcut, null, props.shortcut),
472
- !props.end && badged && /* @__PURE__ */ React5.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
473
- ));
474
- });
475
- DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
476
- var DropdownMenuCheckboxItem = React5.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React5.createElement(
477
- DropdownMenuPrimitive.CheckboxItem,
584
+ }
585
+ )
586
+ );
587
+ var CardFooter = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React7.createElement(
588
+ "div",
478
589
  {
479
590
  ref,
480
- className: cn(
481
- "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",
482
- className
483
- ),
484
- checked,
591
+ className: cn("hawa-flex hawa-items-center hawa-p-6 hawa-pt-0", className),
485
592
  ...props
486
- },
487
- /* @__PURE__ */ React5.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__ */ React5.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React5.createElement(
593
+ }
594
+ ));
595
+ CardDescription.displayName = "CardDescription";
596
+ CardContent.displayName = "CardContent";
597
+ CardHeader.displayName = "CardHeader";
598
+ CardFooter.displayName = "CardFooter";
599
+ CardTitle.displayName = "CardTitle";
600
+ Card.displayName = "Card";
601
+
602
+ // components/blocks/misc/EmptyState.tsx
603
+ var EmptyState = ({ texts, onActionClick }) => {
604
+ return /* @__PURE__ */ import_react4.default.createElement(Card, null, /* @__PURE__ */ import_react4.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center " }, /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ import_react4.default.createElement(
488
605
  "svg",
489
606
  {
490
- "aria-label": "Check Mark",
491
607
  stroke: "currentColor",
492
608
  fill: "currentColor",
493
609
  strokeWidth: "0",
494
610
  viewBox: "0 0 512 512",
495
- height: "0.60em",
496
- width: "0.60em"
611
+ height: "0.35em",
612
+ width: "0.35em"
497
613
  },
498
- /* @__PURE__ */ React5.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" })
499
- ), " ")),
500
- children
501
- ));
502
- DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
503
- var DropdownMenuRadioItem = React5.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React5.createElement(
504
- DropdownMenuPrimitive.RadioItem,
505
- {
506
- ref,
507
- className: cn(
508
- "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",
509
- className
510
- ),
511
- ...props
512
- },
513
- /* @__PURE__ */ React5.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__ */ React5.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React5.createElement(
514
- "svg",
614
+ /* @__PURE__ */ import_react4.default.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" })
615
+ )), /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.youreCaughtUp) || "You're all caught up"))), /* @__PURE__ */ import_react4.default.createElement(CardFooter, null, /* @__PURE__ */ import_react4.default.createElement(Button, { className: "hawa-w-full", onClick: () => onActionClick() }, (texts == null ? void 0 : texts.actionText) || "Go Home")));
616
+ };
617
+
618
+ // components/blocks/misc/Testimonial.tsx
619
+ var import_react5 = __toESM(require("react"));
620
+ var Testimonial = () => {
621
+ return /* @__PURE__ */ import_react5.default.createElement(Card, null, /* @__PURE__ */ import_react5.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react5.default.createElement("div", null, /* @__PURE__ */ import_react5.default.createElement("p", { className: "mb-4 max-w-sm" }, "The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless.")), /* @__PURE__ */ import_react5.default.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ import_react5.default.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ import_react5.default.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ import_react5.default.createElement(
622
+ "path",
515
623
  {
516
- xmlns: "http://www.w3.org/2000/svg",
517
- width: "24",
518
- "aria-label": "Circle",
519
- height: "24",
520
- viewBox: "0 0 24 24",
521
- fill: "none",
522
- stroke: "currentColor",
523
- strokeWidth: "2",
524
- strokeLinecap: "round",
525
- strokeLinejoin: "round",
526
- className: "hawa-h-2 hawa-w-2 hawa-fill-current"
527
- },
528
- /* @__PURE__ */ React5.createElement("circle", { cx: "12", cy: "12", r: "10" })
529
- ))),
530
- children
531
- ));
532
- DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
533
- var DropdownMenuLabel = React5.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React5.createElement(
534
- DropdownMenuPrimitive.Label,
624
+ d: "M14.1412 22.4427L17.5803 16.5199C17.7671 16.1981 18.1112 16 18.4834 16H20.8581C21.653 16 22.1565 16.8528 21.7725 17.5488L19.3042 22.0225C19.2202 22.1747 19.1762 22.3458 19.1762 22.5196C19.1762 23.0879 19.6369 23.5486 20.2052 23.5486H21.5827C22.1594 23.5486 22.627 24.0162 22.627 24.5929V31.347C22.627 31.9237 22.1594 32.3913 21.5827 32.3913H15.0443C14.4676 32.3913 14 31.9237 14 31.347V22.9671C14 22.7829 14.0487 22.602 14.1412 22.4427Z",
625
+ fill: "#FFFFFF"
626
+ }
627
+ ), /* @__PURE__ */ import_react5.default.createElement(
628
+ "path",
629
+ {
630
+ d: "M25.356 22.4427L28.7951 16.5199C28.982 16.1981 29.326 16 29.6982 16H32.0729C32.8679 16 33.3713 16.8528 32.9873 17.5488L30.5191 22.0225C30.4351 22.1747 30.391 22.3458 30.391 22.5196C30.391 23.0879 30.8518 23.5486 31.4201 23.5486H32.7975C33.3743 23.5486 33.8418 24.0162 33.8418 24.5929V31.347C33.8418 31.9237 33.3743 32.3913 32.7975 32.3913H26.2592C25.6824 32.3913 25.2148 31.9237 25.2148 31.347V22.9671C25.2148 22.7829 25.2636 22.602 25.356 22.4427Z",
631
+ fill: "#FFFFFF"
632
+ }
633
+ )), /* @__PURE__ */ import_react5.default.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ import_react5.default.createElement("div", null, /* @__PURE__ */ import_react5.default.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ import_react5.default.createElement("div", null, " Chief Information Security Officer")))));
634
+ };
635
+
636
+ // components/blocks/misc/LeadGenerator.tsx
637
+ var import_react9 = __toESM(require("react"));
638
+ var import_react_hook_form = require("react-hook-form");
639
+
640
+ // components/elements/input/Input.tsx
641
+ var import_react8 = __toESM(require("react"));
642
+
643
+ // components/elements/label/Label.tsx
644
+ var React11 = __toESM(require("react"));
645
+
646
+ // components/elements/tooltip/Tooltip.tsx
647
+ var import_react6 = __toESM(require("react"));
648
+ var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
649
+ var TooltipContent = import_react6.default.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ import_react6.default.createElement(
650
+ TooltipPrimitive.Content,
535
651
  {
536
652
  ref,
653
+ sideOffset,
537
654
  className: cn(
538
- "hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-font-semibold",
539
- inset && "hawa-pl-8",
655
+ "hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-text-popover-foreground hawa-shadow-md hawa-animate-in hawa-fade-in-0 hawa-zoom-in-95 data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=closed]:hawa-zoom-out-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",
540
656
  className
541
657
  ),
542
658
  ...props
543
659
  }
544
660
  ));
545
- DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
546
- var DropdownMenuSeparator = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(
547
- DropdownMenuPrimitive.Separator,
548
- {
549
- ref,
550
- className: cn("hawa--mx-1 hawa-my-1 hawa-h-px hawa-bg-muted", className),
551
- ...props
552
- }
553
- ));
554
- DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
555
- var DropdownMenuShortcut = ({
556
- className,
661
+ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
662
+ var TooltipArrow = import_react6.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ import_react6.default.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
663
+ TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
664
+ var Tooltip = ({
665
+ side,
666
+ open,
667
+ content,
668
+ children,
669
+ defaultOpen,
670
+ onOpenChange,
671
+ triggerProps,
672
+ contentProps,
673
+ providerProps,
674
+ delayDuration = 300,
557
675
  ...props
558
676
  }) => {
559
- return /* @__PURE__ */ React5.createElement(
560
- "span",
677
+ return /* @__PURE__ */ import_react6.default.createElement(
678
+ TooltipPrimitive.TooltipProvider,
561
679
  {
562
- className: cn(
563
- "hawa-text-xs hawa-tracking-widest hawa-opacity-60",
564
- className
565
- ),
566
- ...props
567
- }
680
+ delayDuration,
681
+ ...providerProps
682
+ },
683
+ /* @__PURE__ */ import_react6.default.createElement(
684
+ TooltipPrimitive.Root,
685
+ {
686
+ open,
687
+ defaultOpen,
688
+ onOpenChange,
689
+ ...props
690
+ },
691
+ /* @__PURE__ */ import_react6.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
692
+ /* @__PURE__ */ import_react6.default.createElement(TooltipContent, { side, align: "center", ...contentProps }, content)
693
+ )
568
694
  );
569
695
  };
570
- DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
571
-
572
- // components/elements/accordion/Accordion.tsx
573
- var React8 = __toESM(require("react"));
574
- var AccordionPrimitive3 = __toESM(require("@radix-ui/react-accordion"));
575
696
 
576
- // components/elements/accordion/AccordionContent.tsx
577
- var React6 = __toESM(require("react"));
578
- var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
579
- var AccordionContent = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React6.createElement(
580
- AccordionPrimitive.Content,
697
+ // components/elements/label/Label.tsx
698
+ var Label = React11.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React11.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React11.createElement(
699
+ "label",
581
700
  {
582
701
  ref,
583
- className: !props.unstyled ? cn(
584
- "hawa-overflow-hidden hawa-text-sm hawa-transition-all data-[state=closed]:hawa-animate-accordion-up data-[state=open]:hawa-animate-accordion-down",
702
+ className: cn(
703
+ "hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70",
585
704
  className
586
- ) : className,
587
- ...props
588
- },
589
- /* @__PURE__ */ React6.createElement("div", { className: "hawa-bg-background hawa-p-4" }, children)
590
- ));
591
- AccordionContent.displayName = AccordionPrimitive.Content.displayName;
592
-
593
- // components/elements/accordion/AccordionTrigger.tsx
594
- var React7 = __toESM(require("react"));
595
- var AccordionPrimitive2 = __toESM(require("@radix-ui/react-accordion"));
596
- var AccordionTrigger = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React7.createElement(AccordionPrimitive2.Header, { className: "hawa-flex" }, /* @__PURE__ */ React7.createElement(
597
- AccordionPrimitive2.Trigger,
598
- {
599
- ref,
600
- className: !props.unstyled ? cn(
601
- "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",
602
- props.disabled ? "hawa-bg-muted/30 hawa-text-muted-foreground/50" : "hover:hawa-bg-muted",
603
- className
604
- ) : className,
605
- ...props
606
- },
607
- children,
608
- !props.hideArrow && /* @__PURE__ */ React7.createElement(
609
- "svg",
610
- {
611
- xmlns: "http://www.w3.org/2000/svg",
612
- width: "24",
613
- height: "24",
614
- viewBox: "0 0 24 24",
615
- fill: "none",
616
- stroke: "currentColor",
617
- strokeWidth: "2",
618
- strokeLinecap: "round",
619
- strokeLinejoin: "round",
620
- className: "hawa-icon hawa-shrink-0 hawa-transition-transform hawa-duration-200"
621
- },
622
- /* @__PURE__ */ React7.createElement("path", { d: "m6 9 6 6 6-6" })
623
- )
624
- )));
625
- AccordionTrigger.displayName = AccordionPrimitive2.Trigger.displayName;
626
-
627
- // components/elements/accordion/Accordion.tsx
628
- var Accordion = React8.forwardRef(
629
- ({
630
- items,
631
- design = "default",
632
- itemClassNames,
633
- triggerclassNames,
634
- contentclassNames,
635
- className,
636
- ...props
637
- }, ref) => /* @__PURE__ */ React8.createElement(AccordionPrimitive3.Root, { type: props.type, collapsible: true }, /* @__PURE__ */ React8.createElement(
638
- "div",
639
- {
640
- className: cn("hawa-flex hawa-flex-col", {
641
- "hawa-gap-4": design === "separated",
642
- "hawa-gap-0": design === "default"
643
- })
644
- },
645
- items.map((item, index) => /* @__PURE__ */ React8.createElement(
646
- AccordionPrimitive3.Item,
647
- {
648
- disabled: item.disabled || false,
649
- className: cn(itemClassNames, "hawa-rounded"),
650
- key: index,
651
- value: `item-${index}`
652
- },
653
- /* @__PURE__ */ React8.createElement(
654
- AccordionTrigger,
655
- {
656
- disabled: item.disabled || false,
657
- className: cn(
658
- "hawa-transition-all",
659
- design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-b-none" : {
660
- "hawa-rounded-t": index === 0,
661
- "data-[state=closed]:hawa-rounded-b": index === items.length - 1
662
- },
663
- triggerclassNames
664
- )
665
- },
666
- /* @__PURE__ */ React8.createElement(
667
- "span",
668
- {
669
- className: cn(
670
- "hawa-flex hawa-flex-row",
671
- item.chip && "hawa-gap-2"
672
- )
673
- },
674
- item.trigger,
675
- " ",
676
- item.chip && /* @__PURE__ */ React8.createElement(Chip, { ...item.chip })
677
- )
678
- ),
679
- /* @__PURE__ */ React8.createElement(
680
- AccordionContent,
681
- {
682
- "aria-disabled": item.disabled || false,
683
- className: cn(
684
- "hawa-border hawa-transition-all",
685
- design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-t-none" : {
686
- "data-[state=open]:hawa-rounded-b": index === items.length - 1
687
- },
688
- contentclassNames
689
- )
690
- },
691
- item.content
692
- )
693
- ))
694
- ))
695
- );
696
- Accordion.displayName = "Accordion";
697
-
698
- // components/elements/accordion/AccordionItem.tsx
699
- var React9 = __toESM(require("react"));
700
- var AccordionPrimitive4 = __toESM(require("@radix-ui/react-accordion"));
701
- var AccordionItem = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(AccordionPrimitive4.Item, { ref, className: cn(className), ...props }));
702
- AccordionItem.displayName = "AccordionItem";
703
-
704
- // components/elements/accordion/AccordionRoot.tsx
705
- var AccordionPrimitive5 = __toESM(require("@radix-ui/react-accordion"));
706
-
707
- // components/elements/logos/Logos.tsx
708
- var import_react4 = __toESM(require("react"));
709
-
710
- // components/elements/navigationMenu/NavigationMenu.tsx
711
- var React11 = __toESM(require("react"));
712
- var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"));
713
- var import_class_variance_authority = require("class-variance-authority");
714
- var navigationMenuTriggerStyle = (0, import_class_variance_authority.cva)(
715
- "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 "
716
- );
717
- var NavigationMenuRoot = React11.forwardRef(({ className, children, viewportClassNames, ...props }, ref) => /* @__PURE__ */ React11.createElement(
718
- NavigationMenuPrimitive.Root,
719
- {
720
- ref,
721
- className: cn(
722
- "hawa-relative hawa-z-10 hawa-flex hawa-flex-1 hawa-items-center hawa-justify-center",
723
- // "hawa-max-w-max",
724
- className
725
- ),
726
- ...props
727
- },
728
- children,
729
- /* @__PURE__ */ React11.createElement(NavigationMenuViewport, { className: viewportClassNames })
730
- ));
731
- var NavigationMenuList = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
732
- NavigationMenuPrimitive.List,
733
- {
734
- ref,
735
- className: cn(
736
- "hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-gap-1",
737
- className
738
- ),
739
- ...props
740
- }
741
- ));
742
- var NavigationMenuTrigger = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React11.createElement(
743
- NavigationMenuPrimitive.Trigger,
744
- {
745
- ref,
746
- className: cn(navigationMenuTriggerStyle(), "hawa-group", className),
705
+ ),
747
706
  ...props
748
707
  },
749
708
  children,
750
- /* @__PURE__ */ React11.createElement(
751
- "svg",
752
- {
753
- "aria-label": "Chevron Icon",
754
- xmlns: "http://www.w3.org/2000/svg",
755
- width: "24",
756
- height: "24",
757
- viewBox: "0 0 24 24",
758
- fill: "none",
759
- stroke: "currentColor",
760
- strokeWidth: "2",
761
- strokeLinecap: "round",
762
- strokeLinejoin: "round",
763
- "aria-hidden": "true",
764
- className: "hawa-icon hawa-relative hawa-top-[1px] hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
765
- },
766
- /* @__PURE__ */ React11.createElement("path", { d: "m6 9 6 6 6-6" })
767
- )
768
- ));
769
- var NavigationMenuContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
770
- NavigationMenuPrimitive.Content,
771
- {
772
- ref,
773
- className: cn(
774
- "hawa-absolute hawa-left-0 hawa-top-0 hawa-w-full hawa-rounded ",
775
- // "md:hawa-absolute md:hawa-w-auto hawa-left-0 hawa-top-0 ",
776
- // animation
777
- "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",
778
- className
779
- ),
780
- ...props
781
- }
782
- ));
783
- var NavigationMenuViewport = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
784
- "div",
785
- {
786
- className: cn(
787
- "hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center"
788
- )
789
- },
790
- /* @__PURE__ */ React11.createElement(
791
- NavigationMenuPrimitive.Viewport,
792
- {
793
- className: cn(
794
- "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 ",
795
- // hawa-h-[var(--radix-navigation-menu-viewport-height)]
796
- // "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
797
- className
798
- ),
799
- style: {
800
- height: "calc(var(--radix-navigation-menu-viewport-height) + 1px)"
801
- },
802
- ref,
803
- ...props
804
- }
805
- )
806
- ));
807
- var NavigationMenuIndicator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
808
- NavigationMenuPrimitive.Indicator,
709
+ required && /* @__PURE__ */ React11.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
710
+ ), hint && /* @__PURE__ */ React11.createElement(Tooltip, { content: hint, side: hintSide }, /* @__PURE__ */ React11.createElement(
711
+ "svg",
809
712
  {
810
- ref,
811
- className: cn(
812
- "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",
813
- className
814
- ),
815
- ...props
713
+ xmlns: "http://www.w3.org/2000/svg",
714
+ className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
715
+ viewBox: "0 0 24 24",
716
+ fill: "none",
717
+ stroke: "currentColor",
718
+ strokeWidth: "2",
719
+ strokeLinecap: "round",
720
+ strokeLinejoin: "round"
816
721
  },
817
- /* @__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" })
818
- ));
819
- NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
820
- NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
821
- NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
822
- NavigationMenuRoot.displayName = NavigationMenuPrimitive.Root.displayName;
823
- NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
824
- NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
722
+ /* @__PURE__ */ React11.createElement("circle", { cx: "12", cy: "12", r: "10" }),
723
+ /* @__PURE__ */ React11.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
724
+ /* @__PURE__ */ React11.createElement("path", { d: "M12 17h.01" })
725
+ ))));
726
+ Label.displayName = "Label";
825
727
 
826
- // components/elements/sheet/Sheet.tsx
827
- var React12 = __toESM(require("react"));
828
- var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"));
829
- var import_class_variance_authority2 = require("class-variance-authority");
830
- var SheetPortal = SheetPrimitive.Portal;
831
- var SheetOverlay = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
832
- SheetPrimitive.Overlay,
833
- {
834
- className: cn(
835
- "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",
836
- className
837
- ),
838
- ...props,
839
- ref
840
- }
841
- ));
842
- var sheetVariants = (0, import_class_variance_authority2.cva)(
843
- "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",
844
- {
845
- variants: {
846
- side: {
847
- 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",
848
- 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",
849
- 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",
850
- 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"
851
- }
852
- },
853
- defaultVariants: {
854
- side: "right"
855
- }
856
- }
857
- );
858
- var SheetContent = React12.forwardRef(
859
- ({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React12.createElement(SheetPortal, null, /* @__PURE__ */ React12.createElement(SheetOverlay, null), /* @__PURE__ */ React12.createElement(
860
- SheetPrimitive.Content,
861
- {
862
- ref,
863
- className: cn(sheetVariants({ side }), className),
864
- onPointerDownOutside: (e) => {
865
- if (persist) {
866
- e.preventDefault();
867
- }
868
- },
869
- ...props
870
- },
871
- children,
872
- !hideCloseButton && /* @__PURE__ */ React12.createElement(
873
- SheetPrimitive.Close,
874
- {
875
- className: cn(
876
- "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",
877
- {
878
- "hawa-right-4 hawa-top-4": side === "left" || side === "bottom",
879
- "hawa-left-4 hawa-top-4": side === "right",
880
- "hawa-bottom-4 hawa-right-4": side === "top"
881
- }
882
- )
883
- },
884
- /* @__PURE__ */ React12.createElement(
885
- "svg",
886
- {
887
- "aria-label": "Close Icon",
888
- "aria-hidden": "true",
889
- className: "hawa-h-5 hawa-w-5",
890
- fill: "currentColor",
891
- viewBox: "0 0 20 20"
892
- },
893
- /* @__PURE__ */ React12.createElement(
894
- "path",
895
- {
896
- fillRule: "evenodd",
897
- 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",
898
- clipRule: "evenodd"
899
- }
900
- )
901
- ),
902
- /* @__PURE__ */ React12.createElement("span", { className: "hawa-sr-only" }, "Close")
903
- )
904
- ))
905
- );
906
- var SheetHeader = ({
907
- className,
908
- ...props
909
- }) => /* @__PURE__ */ React12.createElement(
910
- "div",
911
- {
912
- className: cn(
913
- "hawa-flex hawa-flex-col hawa-space-y-2 hawa-text-center sm:hawa-text-left",
914
- className
915
- ),
916
- ...props
917
- }
918
- );
919
- var SheetFooter = ({
728
+ // components/elements/skeleton/Skeleton.tsx
729
+ var import_react7 = __toESM(require("react"));
730
+ function Skeleton({
920
731
  className,
732
+ content,
733
+ animation = "pulse",
921
734
  ...props
922
- }) => /* @__PURE__ */ React12.createElement(
923
- "div",
924
- {
925
- className: cn(
926
- "hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end sm:hawa-space-x-2",
927
- className
928
- ),
929
- ...props
930
- }
931
- );
932
- var SheetTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
933
- SheetPrimitive.Title,
934
- {
935
- ref,
936
- className: cn(
937
- "hawa-text-lg hawa-font-semibold hawa-text-foreground",
938
- className
939
- ),
940
- ...props
941
- }
942
- ));
943
- var SheetDescription = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
944
- SheetPrimitive.Description,
945
- {
946
- ref,
947
- className: cn("hawa-text-sm hawa-text-muted-foreground", className),
948
- ...props
949
- }
950
- ));
951
- SheetDescription.displayName = SheetPrimitive.Description.displayName;
952
- SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
953
- SheetContent.displayName = SheetPrimitive.Content.displayName;
954
- SheetHeader.displayName = "SheetHeader";
955
- SheetFooter.displayName = "SheetFooter";
956
- SheetTitle.displayName = SheetPrimitive.Title.displayName;
957
-
958
- // components/elements/dialog/Dialog.tsx
959
- var React13 = __toESM(require("react"));
960
- var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
961
- var DialogPortal = ({ ...props }) => /* @__PURE__ */ React13.createElement(DialogPrimitive.Portal, { ...props });
962
- var DialogOverlay = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
963
- DialogPrimitive.Overlay,
964
- {
965
- ref,
966
- className: cn(
967
- "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",
968
- className
969
- ),
970
- ...props
971
- }
972
- ));
973
- var DialogContent = React13.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React13.createElement(DialogPortal, null, /* @__PURE__ */ React13.createElement(DialogOverlay, null), /* @__PURE__ */ React13.createElement(
974
- DialogPrimitive.Content,
975
- {
976
- onPointerDownOutside: (e) => {
977
- if (persist) {
978
- e.preventDefault();
979
- }
980
- },
981
- ref,
982
- className: cn(
983
- "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",
984
- className
985
- ),
986
- ...props
987
- },
988
- children,
989
- !hideCloseButton && /* @__PURE__ */ React13.createElement(
990
- DialogPrimitive.Close,
991
- {
992
- className: cn(
993
- "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",
994
- props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
995
- )
996
- },
997
- /* @__PURE__ */ React13.createElement(
998
- "svg",
999
- {
1000
- "aria-label": "Close Icon",
1001
- "aria-hidden": "true",
1002
- className: "hawa-h-5 hawa-w-5",
1003
- fill: "currentColor",
1004
- viewBox: "0 0 20 20"
1005
- },
1006
- /* @__PURE__ */ React13.createElement(
1007
- "path",
1008
- {
1009
- fillRule: "evenodd",
1010
- 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",
1011
- clipRule: "evenodd"
1012
- }
1013
- )
1014
- ),
1015
- /* @__PURE__ */ React13.createElement("span", { className: "hawa-sr-only" }, "Close")
1016
- )
1017
- )));
1018
- var DialogCarouselContent = React13.forwardRef(
1019
- ({
1020
- className,
1021
- children,
1022
- onPrev,
1023
- persist,
1024
- hideCloseButton,
1025
- hidePrevButton,
1026
- ...props
1027
- }, ref) => /* @__PURE__ */ React13.createElement(DialogPortal, null, /* @__PURE__ */ React13.createElement(DialogOverlay, null), /* @__PURE__ */ React13.createElement(
1028
- DialogPrimitive.Content,
1029
- {
1030
- onPointerDownOutside: (e) => {
1031
- if (persist) {
1032
- e.preventDefault();
1033
- }
1034
- },
1035
- ref,
1036
- className: cn(
1037
- "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",
1038
- className
1039
- ),
1040
- ...props
1041
- },
1042
- children,
1043
- /* @__PURE__ */ React13.createElement(
1044
- "div",
1045
- {
1046
- className: cn(
1047
- "hawa-absolute hawa-top-0 hawa-flex hawa-w-full hawa-flex-row hawa-p-4",
1048
- onPrev ? "hawa-justify-between" : "hawa-justify-end"
1049
- )
1050
- },
1051
- hidePrevButton ? /* @__PURE__ */ React13.createElement("div", null) : /* @__PURE__ */ React13.createElement(
1052
- "div",
1053
- {
1054
- onClick: onPrev,
1055
- className: cn(
1056
- "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",
1057
- props.dir === "rtl" && "hawa-rotate-180"
1058
- )
1059
- },
1060
- /* @__PURE__ */ React13.createElement(
1061
- "svg",
1062
- {
1063
- xmlns: "http://www.w3.org/2000/svg",
1064
- width: "24",
1065
- height: "24",
1066
- viewBox: "0 0 24 24",
1067
- fill: "none",
1068
- className: "hawa-h-6 hawa-w-6",
1069
- stroke: "currentColor",
1070
- strokeWidth: "2",
1071
- strokeLinecap: "round",
1072
- strokeLinejoin: "round"
1073
- },
1074
- /* @__PURE__ */ React13.createElement("path", { d: "m15 18-6-6 6-6" })
1075
- )
1076
- ),
1077
- !hideCloseButton && /* @__PURE__ */ React13.createElement(
1078
- DialogPrimitive.Close,
1079
- {
1080
- className: cn(
1081
- "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 ",
1082
- props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
1083
- )
1084
- },
1085
- /* @__PURE__ */ React13.createElement(
1086
- "svg",
1087
- {
1088
- "aria-label": "Close Icon",
1089
- "aria-hidden": "true",
1090
- className: "hawa-h-6 hawa-w-6",
1091
- fill: "currentColor",
1092
- viewBox: "0 0 20 20"
1093
- },
1094
- /* @__PURE__ */ React13.createElement(
1095
- "path",
1096
- {
1097
- fillRule: "evenodd",
1098
- 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",
1099
- clipRule: "evenodd"
1100
- }
1101
- )
1102
- ),
1103
- /* @__PURE__ */ React13.createElement("span", { className: "hawa-sr-only" }, "Close")
1104
- )
1105
- )
1106
- ))
1107
- );
1108
- var DialogHeader = ({
1109
- className,
1110
- ...props
1111
- }) => /* @__PURE__ */ React13.createElement(
1112
- "div",
1113
- {
1114
- className: cn(
1115
- "hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-text-center sm:hawa-text-left",
1116
- className
1117
- ),
1118
- ...props
1119
- }
1120
- );
1121
- var DialogTitle = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
1122
- DialogPrimitive.Title,
1123
- {
1124
- ref,
1125
- className: cn(
1126
- "hawa-text-start hawa-text-lg hawa-font-semibold hawa-leading-none hawa-tracking-tight",
1127
- className
1128
- ),
1129
- ...props
1130
- }
1131
- ));
1132
- var DialogDescription = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
1133
- DialogPrimitive.Description,
1134
- {
1135
- ref,
1136
- className: cn(
1137
- "hawa-text-start hawa-text-sm hawa-text-muted-foreground",
1138
- className
1139
- ),
1140
- ...props
1141
- }
1142
- ));
1143
- var DialogFooter = ({
1144
- className,
1145
- ...props
1146
- }) => /* @__PURE__ */ React13.createElement(
1147
- "div",
1148
- {
1149
- className: cn(
1150
- "hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end sm:hawa-gap-2",
1151
- className
1152
- ),
1153
- ...props
1154
- }
1155
- );
1156
- var DialogCarousel = ({
1157
- stepsApi,
1158
- stepsRef,
1159
- children,
1160
- direction
1161
- }) => {
1162
- React13.useEffect(() => {
1163
- if (stepsApi) {
1164
- stepsApi.reInit();
1165
- }
1166
- }, [stepsApi, children]);
1167
- return /* @__PURE__ */ React13.createElement("div", { className: "hawa-overflow-hidden" }, /* @__PURE__ */ React13.createElement("div", { ref: stepsRef, dir: direction }, /* @__PURE__ */ React13.createElement(
1168
- "div",
1169
- {
1170
- className: "hawa-flex",
1171
- style: {
1172
- transition: "height 0.2s"
1173
- }
1174
- },
1175
- React13.Children.map(children, (child, index) => /* @__PURE__ */ React13.createElement(
1176
- "div",
1177
- {
1178
- className: cn(
1179
- "hawa-flex hawa-h-fit hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
1180
- ),
1181
- key: index
1182
- },
1183
- child
1184
- ))
1185
- )));
1186
- };
1187
- var DialogSteps = ({
1188
- currentStep,
1189
- visibleStepRef,
1190
- children
1191
- }) => {
1192
- const [dialogHeight, setDialogHeight] = React13.useState(null);
1193
- React13.useEffect(() => {
1194
- if (visibleStepRef.current) {
1195
- setDialogHeight(visibleStepRef.current.offsetHeight);
1196
- console.log("height is ", visibleStepRef.current.offsetHeight);
1197
- }
1198
- }, [currentStep, visibleStepRef]);
1199
- return /* @__PURE__ */ React13.createElement(
1200
- "div",
1201
- {
1202
- className: "hawa-relative hawa-overflow-clip",
1203
- style: {
1204
- height: dialogHeight || "fit-content",
1205
- transition: "height 0.2s"
1206
- }
1207
- },
1208
- React13.Children.map(children, (child, index) => /* @__PURE__ */ React13.createElement(
1209
- "div",
1210
- {
1211
- ref: currentStep === `step-${index + 1}` ? visibleStepRef : null,
1212
- className: cn(
1213
- currentStep === `step-${index + 1}` ? "hawa-visible hawa-block" : "hawa-invisible hawa-hidden"
1214
- )
1215
- },
1216
- child
1217
- ))
1218
- );
1219
- };
1220
- var DialogStep = ({
1221
- id,
1222
- children,
1223
- className,
1224
- stepRef
1225
- }) => {
1226
- return /* @__PURE__ */ React13.createElement(
1227
- "div",
1228
- {
1229
- id,
1230
- ref: stepRef,
1231
- className: cn("hawa-w-full hawa-px-1", className)
1232
- },
1233
- children
1234
- );
1235
- };
1236
- var DialogBody = ({ children, className }) => {
1237
- return /* @__PURE__ */ React13.createElement("div", { className: cn("hawa-py-6", className) }, children);
1238
- };
1239
- DialogBody.displayName = "DialogBody";
1240
- DialogStep.displayName = "DialogStep";
1241
- DialogSteps.displayName = "DialogSteps";
1242
- DialogCarousel.displayName = "DialogCarousel";
1243
- DialogCarouselContent.displayName = "DialogCarouselContent";
1244
- DialogHeader.displayName = "DialogHeader";
1245
- DialogFooter.displayName = "DialogFooter";
1246
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
1247
- DialogPortal.displayName = DialogPrimitive.Portal.displayName;
1248
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
1249
- DialogContent.displayName = DialogPrimitive.Content.displayName;
1250
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
1251
-
1252
- // components/elements/alert/Alert.tsx
1253
- var import_react5 = __toESM(require("react"));
1254
-
1255
- // components/elements/button/Button.tsx
1256
- var React14 = __toESM(require("react"));
1257
- var import_class_variance_authority3 = require("class-variance-authority");
1258
- var buttonVariants = (0, import_class_variance_authority3.cva)(
1259
- "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",
1260
- {
1261
- variants: {
1262
- variant: {
1263
- default: "hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary/90",
1264
- light: "hawa-bg-primary/20 hawa-text-primary hover:hawa-bg-primary/40",
1265
- destructive: "hawa-bg-destructive hawa-text-destructive-foreground hover:hawa-bg-destructive/90",
1266
- outline: "hawa-border hawa-border-input hawa-bg-transparent hover:hawa-bg-accent hover:hawa-text-accent-foreground",
1267
- secondary: "hawa-bg-secondary hawa-text-secondary-foreground hover:hawa-bg-secondary/80",
1268
- ghost: "hover:hawa-bg-accent hover:hawa-text-accent-foreground",
1269
- link: "hawa-text-primary hawa-underline-offset-4 hover:hawa-underline",
1270
- combobox: "hawa-bg-background hawa-border",
1271
- neoBrutalism: "neo-brutalism"
1272
- // "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",
1273
- },
1274
- size: {
1275
- default: "hawa-h-10 hawa-px-4 hawa-py-2",
1276
- heightless: "hawa-px-4 hawa-py-4",
1277
- xs: "hawa-h-fit hawa-min-h-[25px] hawa-py-1 hawa-text-[10px] hawa-px-2 ",
1278
- sm: "hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3",
1279
- lg: "hawa-h-11 hawa-rounded-md hawa-px-8",
1280
- xl: "hawa-h-14 hawa-rounded-md hawa-px-10",
1281
- icon: "hawa-h-10 hawa-w-10",
1282
- smallIcon: "hawa-h-7 hawa-w-7"
1283
- }
1284
- },
1285
- defaultVariants: {
1286
- variant: "default",
1287
- size: "default"
1288
- }
1289
- }
1290
- );
1291
- var Button = React14.forwardRef(
1292
- ({
1293
- className,
1294
- variant,
1295
- size,
1296
- asChild = false,
1297
- centered = true,
1298
- isLoading,
1299
- children,
1300
- ...props
1301
- }, ref) => {
1302
- const Comp = "button";
1303
- const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
1304
- return /* @__PURE__ */ React14.createElement(
1305
- Comp,
1306
- {
1307
- className: cn(
1308
- buttonVariants({ variant, size, className }),
1309
- centered && "hawa-justify-center"
1310
- ),
1311
- ref,
1312
- ...props
1313
- },
1314
- isLoading ? /* @__PURE__ */ React14.createElement(
1315
- Loading,
1316
- {
1317
- design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
1318
- themeMode: variant === "outline" ? "light" : "dark",
1319
- color: loadingColor,
1320
- size: size === "sm" || size === "xs" ? "xs" : "button"
1321
- }
1322
- ) : children
1323
- );
1324
- }
1325
- );
1326
- Button.displayName = "Button";
1327
-
1328
- // components/elements/avatar/Avatar.tsx
1329
- var import_react7 = __toESM(require("react"));
1330
-
1331
- // components/elements/FileUploader.tsx
1332
- var import_react6 = __toESM(require("react"));
1333
-
1334
- // components/elements/dataTable/DataTable.tsx
1335
- var React21 = __toESM(require("react"));
1336
- var import_react_table = require("@tanstack/react-table");
1337
-
1338
- // components/elements/input/Input.tsx
1339
- var import_react8 = __toESM(require("react"));
1340
-
1341
- // components/elements/label/Label.tsx
1342
- var React18 = __toESM(require("react"));
1343
- var Label2 = React18.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React18.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React18.createElement(
1344
- "label",
1345
- {
1346
- ref,
1347
- className: cn(
1348
- "hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70",
1349
- className
1350
- ),
1351
- ...props
1352
- },
1353
- children,
1354
- required && /* @__PURE__ */ React18.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
1355
- ), hint && /* @__PURE__ */ React18.createElement(Tooltip, { content: hint, side: hintSide }, /* @__PURE__ */ React18.createElement(
1356
- "svg",
1357
- {
1358
- xmlns: "http://www.w3.org/2000/svg",
1359
- className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
1360
- viewBox: "0 0 24 24",
1361
- fill: "none",
1362
- stroke: "currentColor",
1363
- strokeWidth: "2",
1364
- strokeLinecap: "round",
1365
- strokeLinejoin: "round"
1366
- },
1367
- /* @__PURE__ */ React18.createElement("circle", { cx: "12", cy: "12", r: "10" }),
1368
- /* @__PURE__ */ React18.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
1369
- /* @__PURE__ */ React18.createElement("path", { d: "M12 17h.01" })
1370
- ))));
1371
- Label2.displayName = "Label";
1372
-
1373
- // components/elements/input/Input.tsx
1374
- var Input = (0, import_react8.forwardRef)(
1375
- ({
1376
- margin = "none",
1377
- width = "full",
1378
- preview = false,
1379
- forceHideHelperText = false,
1380
- labelProps,
1381
- placeholder,
1382
- showCount,
1383
- inputProps,
1384
- countPosition = "bottom",
1385
- ...props
1386
- }, ref) => {
1387
- var _a;
1388
- let marginStyles = {
1389
- none: "hawa-mb-0",
1390
- normal: "hawa-mb-3",
1391
- large: "hawa-mb-5"
1392
- };
1393
- let widthStyles = {
1394
- small: "hawa-w-full hawa-max-w-2xs",
1395
- normal: "hawa-w-1/2",
1396
- full: "hawa-w-full",
1397
- auto: ""
1398
- };
1399
- let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
1400
- let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
1401
- return /* @__PURE__ */ import_react8.default.createElement(
1402
- "div",
1403
- {
1404
- className: cn(
1405
- defaultStyle,
1406
- marginStyles[margin],
1407
- widthStyles[width],
1408
- props.containerClassName,
1409
- "hawa-w-full hawa-gap-2"
1410
- )
1411
- },
1412
- props.label && /* @__PURE__ */ import_react8.default.createElement(Label2, { ...labelProps }, props.label),
1413
- props.isLoading ? /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react8.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react8.default.createElement(
1414
- "div",
1415
- {
1416
- className: cn(
1417
- "hawa-absolute hawa-top-[22px] hawa-h-[0.8px] hawa-w-full hawa-bg-gray-200 hawa-transition-all dark:hawa-bg-gray-800",
1418
- preview ? "hawa-opacity-100" : "hawa-opacity-0"
1419
- )
1420
- }
1421
- ), /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ import_react8.default.createElement(
1422
- "div",
1423
- {
1424
- className: cn(
1425
- "hawa-absolute hawa-end-3 hawa-top-1/2 hawa--translate-y-1/2",
1426
- (_a = props.endIconProps) == null ? void 0 : _a.className
1427
- )
1428
- },
1429
- props.endIcon
1430
- ), /* @__PURE__ */ import_react8.default.createElement(
1431
- "input",
1432
- {
1433
- required: true,
1434
- dir: props.dir,
1435
- type: props.type,
1436
- value: props.value,
1437
- onChange: props.onChange,
1438
- autoComplete: props.autoComplete,
1439
- defaultValue: props.defaultValue,
1440
- placeholder,
1441
- disabled: props.disabled || preview,
1442
- style: { height: 40 },
1443
- ...inputProps,
1444
- className: cn(
1445
- defaultInputStyle,
1446
- " 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",
1447
- {
1448
- "hawa-pe-9": props.endIcon,
1449
- "hawa-ps-9": props.startIcon,
1450
- "hawa-pe-[60px]": countPosition === "center"
1451
- },
1452
- preview && "hawa-border-transparent hawa-bg-transparent hawa-px-0",
1453
- inputProps == null ? void 0 : inputProps.className
1454
- )
1455
- }
1456
- )), !forceHideHelperText && /* @__PURE__ */ import_react8.default.createElement(
1457
- "p",
1458
- {
1459
- className: cn(
1460
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
1461
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
1462
- )
1463
- },
1464
- props.helperText
1465
- ), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react8.default.createElement(
1466
- "div",
1467
- {
1468
- className: cn(
1469
- "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",
1470
- props.helperText ? "hawa-border hawa-p-1" : "hawa-border-none hawa-p-0"
1471
- )
1472
- },
1473
- props.helperText
1474
- ), showCount && /* @__PURE__ */ import_react8.default.createElement(
1475
- "div",
1476
- {
1477
- className: cn(
1478
- "hawa-absolute hawa-translate-y-1/2 hawa-text-start hawa-text-xs hawa-transition-all",
1479
- {
1480
- "hawa-end-0 hawa-top-[62px]": countPosition === "bottom",
1481
- "hawa-bottom-[62px] hawa-end-0": countPosition === "top",
1482
- "hawa-end-2": countPosition === "center"
1483
- }
1484
- )
1485
- },
1486
- props.value ? String(props.value).length : 0,
1487
- "/",
1488
- props.maxLength
1489
- )))
1490
- );
1491
- }
1492
- );
1493
-
1494
- // components/elements/table/Table.tsx
1495
- var React20 = __toESM(require("react"));
1496
- var Table = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React20.createElement(
1497
- "table",
1498
- {
1499
- ref,
1500
- className: cn("hawa-w-full hawa-caption-bottom hawa-text-sm", className),
1501
- ...props
1502
- }
1503
- )));
1504
- Table.displayName = "Table";
1505
- var TableHeader = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
1506
- "thead",
1507
- {
1508
- ref,
1509
- className: cn("[&_tr]:hawa-border-b", "hawa-bg-muted/50", className),
1510
- ...props
1511
- }
1512
- ));
1513
- TableHeader.displayName = "TableHeader";
1514
- var TableHead = React20.forwardRef(
1515
- ({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */ React20.createElement(
1516
- "th",
1517
- {
1518
- ref,
1519
- className: cn(
1520
- "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",
1521
- dir === "rtl" ? "[&:not(:last-child)]:hawa-border-l" : "[&:not(:last-child)]:hawa-border-r",
1522
- condensed ? "hawa-h-8" : "hawa-h-12",
1523
- clickable ? "hawa-px-1" : "hawa-px-4",
1524
- //First and last columns
1525
- clickable ? " [&:not(:last-child)&:not(:first-child)]:hawa-p-1" : "hawa-px-4",
1526
- //Columns in between
1527
- className
1528
- ),
1529
- ...props
1530
- }
1531
- )
1532
- );
1533
- TableHead.displayName = "TableHead";
1534
- var TableBody = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement("tbody", { ref, className: cn("hawa-border-none", className), ...props }));
1535
- TableBody.displayName = "TableBody";
1536
- var TableFooter = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
1537
- "tfoot",
1538
- {
1539
- ref,
1540
- className: cn(
1541
- "hawa-bg-primary hawa-font-medium hawa-text-primary-foreground",
1542
- className
1543
- ),
1544
- ...props
1545
- }
1546
- ));
1547
- TableFooter.displayName = "TableFooter";
1548
- var TableRow = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
1549
- "tr",
1550
- {
1551
- ref,
1552
- className: cn(
1553
- "hawa-bg-background hawa-transition-colors data-[state=selected]:hawa-bg-muted",
1554
- "[&:not(:last-child)&:not(:first-child)]:hawa-border-y",
1555
- "[&:not(:last-child)]:hawa-border-b",
1556
- className
1557
- ),
1558
- ...props
1559
- }
1560
- ));
1561
- TableRow.displayName = "TableRow";
1562
- var TableCell = React20.forwardRef(
1563
- ({ className, enablePadding = true, padding = "default", ...props }, ref) => {
1564
- let paddingStyles = {
1565
- condensed: "hawa-p-0 hawa-px-4",
1566
- default: "hawa-p-4",
1567
- noPadding: "hawa-p-0"
1568
- };
1569
- return /* @__PURE__ */ React20.createElement(
1570
- "td",
1571
- {
1572
- ref,
1573
- className: cn(
1574
- paddingStyles[padding],
1575
- // "border-x",
1576
- // enablePadding ? "hawa-p-4" : "hawa-p-0",
1577
- // props.disablePadding ? "hawa-p-0" : "hawa-p-4",
1578
- // props.condensed ? "hawa-p-0 hawa-px-4" : "hawa-p-4",
1579
- "hawa-align-middle [&:has([role=checkbox])]:hawa-pr-0 ",
1580
- "[&:not(:last-child)&:not(:first-child)]:hawa-border-x",
1581
- // "[&:not(:last-child)]:hawa-border-r",
1582
- props.dir === "rtl" ? "[&:not(:last-child)]:hawa-border-l" : "[&:not(:last-child)]:hawa-border-r",
1583
- className
1584
- ),
1585
- ...props
1586
- }
1587
- );
1588
- }
1589
- );
1590
- TableCell.displayName = "TableCell";
1591
- var TableCaption = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
1592
- "caption",
1593
- {
1594
- ref,
1595
- className: cn(
1596
- "hawa-mt-4 hawa-text-sm hawa-text-muted-foreground",
1597
- className
1598
- ),
1599
- ...props
1600
- }
1601
- ));
1602
- TableCaption.displayName = "TableCaption";
1603
-
1604
- // components/elements/backToTop/BackToTop.tsx
1605
- var import_react9 = __toESM(require("react"));
1606
-
1607
- // components/elements/radio/Radio.tsx
1608
- var import_react10 = __toESM(require("react"));
1609
-
1610
- // components/elements/combobox/Combobox.tsx
1611
- var React26 = __toESM(require("react"));
1612
- var PopoverPrimitive2 = __toESM(require("@radix-ui/react-popover"));
1613
-
1614
- // components/elements/command/Command.tsx
1615
- var React24 = __toESM(require("react"));
1616
- var import_cmdk = require("cmdk");
1617
- var Command = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React24.createElement(
1618
- import_cmdk.Command,
1619
- {
1620
- ref,
1621
- className: cn(
1622
- "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground",
1623
- className
1624
- ),
1625
- ...props
1626
- }
1627
- ));
1628
- Command.displayName = import_cmdk.Command.displayName;
1629
- var CommandInput = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React24.createElement(
1630
- "div",
1631
- {
1632
- className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
1633
- "cmdk-input-wrapper": ""
1634
- },
1635
- /* @__PURE__ */ React24.createElement(
1636
- "svg",
1637
- {
1638
- "aria-label": "Search Icon",
1639
- xmlns: "http://www.w3.org/2000/svg",
1640
- width: "24",
1641
- height: "24",
1642
- viewBox: "0 0 24 24",
1643
- fill: "none",
1644
- stroke: "currentColor",
1645
- strokeWidth: "2",
1646
- strokeLinecap: "round",
1647
- strokeLinejoin: "round",
1648
- className: "hawa-icon hawa-mr-2 hawa-shrink-0 hawa-opacity-50"
1649
- },
1650
- /* @__PURE__ */ React24.createElement("circle", { cx: "11", cy: "11", r: "8" }),
1651
- /* @__PURE__ */ React24.createElement("path", { d: "m21 21-4.3-4.3" })
1652
- ),
1653
- /* @__PURE__ */ React24.createElement(
1654
- import_cmdk.Command.Input,
1655
- {
1656
- ref,
1657
- className: cn(
1658
- "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",
1659
- className
1660
- ),
1661
- ...props
1662
- }
1663
- )
1664
- ));
1665
- CommandInput.displayName = import_cmdk.Command.Input.displayName;
1666
- var CommandList = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React24.createElement(
1667
- import_cmdk.Command.List,
1668
- {
1669
- ref,
1670
- className: cn(
1671
- "hawa-max-h-[300px] hawa-overflow-y-auto hawa-overflow-x-hidden",
1672
- className
1673
- ),
1674
- ...props
1675
- }
1676
- ));
1677
- CommandList.displayName = import_cmdk.Command.List.displayName;
1678
- var CommandEmpty = React24.forwardRef((props, ref) => /* @__PURE__ */ React24.createElement(
1679
- import_cmdk.Command.Empty,
1680
- {
1681
- ref,
1682
- className: "hawa-py-6 hawa-text-center hawa-text-sm",
1683
- ...props
1684
- }
1685
- ));
1686
- CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
1687
- var CommandGroup = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React24.createElement(
1688
- import_cmdk.Command.Group,
1689
- {
1690
- ref,
1691
- className: cn(
1692
- "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",
1693
- className
1694
- ),
1695
- ...props
1696
- }
1697
- ));
1698
- CommandGroup.displayName = import_cmdk.Command.Group.displayName;
1699
- var CommandSeparator = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React24.createElement(
1700
- import_cmdk.Command.Separator,
1701
- {
1702
- ref,
1703
- className: cn("hawa--mx-1 hawa-h-px hawa-bg-border", className),
1704
- ...props
1705
- }
1706
- ));
1707
- CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
1708
- var CommandItem = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React24.createElement(
1709
- import_cmdk.Command.Item,
1710
- {
1711
- ref,
1712
- className: cn(
1713
- "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",
1714
- className
1715
- ),
1716
- ...props
1717
- }
1718
- ));
1719
- CommandItem.displayName = import_cmdk.Command.Item.displayName;
1720
- var CommandShortcut = ({
1721
- className,
1722
- ...props
1723
- }) => {
1724
- return /* @__PURE__ */ React24.createElement(
1725
- "span",
1726
- {
1727
- className: cn(
1728
- "hawa-ml-auto hawa-text-xs hawa-tracking-widest hawa-text-muted-foreground",
1729
- className
1730
- ),
1731
- ...props
1732
- }
1733
- );
1734
- };
1735
- CommandShortcut.displayName = "CommandShortcut";
1736
-
1737
- // components/elements/popover/Popover.tsx
1738
- var React25 = __toESM(require("react"));
1739
- var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
1740
- var PopoverContent = React25.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React25.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React25.createElement(
1741
- PopoverPrimitive.Content,
1742
- {
1743
- ref,
1744
- align,
1745
- sideOffset,
1746
- className: cn(
1747
- "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",
1748
- className
1749
- ),
1750
- ...props
1751
- }
1752
- )));
1753
- PopoverContent.displayName = PopoverPrimitive.Content.displayName;
1754
- var PopoverTrigger = PopoverPrimitive.Trigger;
1755
-
1756
- // components/elements/combobox/Combobox.tsx
1757
- var Combobox = React26.forwardRef(
1758
- ({
1759
- labelKey = "label",
1760
- valueKey = "value",
1761
- defaultValue = "",
1762
- popoverClassName,
1763
- labelProps,
1764
- data,
1765
- ...props
1766
- }, ref) => {
1767
- var _a, _b, _c;
1768
- const [open, setOpen] = React26.useState(false);
1769
- const [value, setValue] = React26.useState(defaultValue);
1770
- function getProperty(obj, key) {
1771
- return obj[key];
1772
- }
1773
- const handleOpenChange = (open2) => {
1774
- if (!(props.isLoading || props.preview)) {
1775
- setOpen(open2);
1776
- }
1777
- };
1778
- return /* @__PURE__ */ React26.createElement(
1779
- "div",
1780
- {
1781
- className: cn(
1782
- "hawa-relative hawa-flex hawa-h-fit hawa-flex-col hawa-gap-2",
1783
- props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
1784
- )
1785
- },
1786
- props.label && /* @__PURE__ */ React26.createElement(Label2, { ...labelProps }, props.label),
1787
- /* @__PURE__ */ React26.createElement(PopoverPrimitive2.Root, { open, onOpenChange: handleOpenChange }, /* @__PURE__ */ React26.createElement(PopoverTrigger, { asChild: true }, props.isLoading ? /* @__PURE__ */ React26.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React26.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React26.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-gap-2 " }, /* @__PURE__ */ React26.createElement(
1788
- "div",
1789
- {
1790
- className: cn(
1791
- "hawa-absolute hawa-top-[22px] hawa-h-[0.8px] hawa-w-full hawa-bg-gray-200 hawa-transition-all dark:hawa-bg-gray-800",
1792
- props.preview ? "hawa-opacity-100" : "hawa-opacity-0"
1793
- )
1794
- }
1795
- ), /* @__PURE__ */ React26.createElement(
1796
- "button",
1797
- {
1798
- role: "combobox",
1799
- "aria-expanded": open,
1800
- className: cn(
1801
- "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-text-primary 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",
1802
- props.preview ? "hawa-cursor-default hawa-rounded-none hawa-border-transparent hawa-px-0" : "hawa-bg-background hawa-px-3 "
1803
- )
1804
- },
1805
- value ? getProperty(
1806
- data.find((item) => item[valueKey] === value) || {},
1807
- labelKey
1808
- ) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || "...",
1809
- /* @__PURE__ */ React26.createElement(
1810
- "svg",
1811
- {
1812
- xmlns: "http://www.w3.org/2000/svg",
1813
- className: cn(
1814
- "hawa-icon hawa-transition-all",
1815
- !props.preview ? "hawa-visible hawa-opacity-100" : "hawa-invisible hawa-opacity-0"
1816
- ),
1817
- "aria-label": "Chevron down icon",
1818
- viewBox: "0 0 24 24",
1819
- fill: "none",
1820
- stroke: "currentColor",
1821
- strokeWidth: "2",
1822
- strokeLinecap: "round",
1823
- strokeLinejoin: "round"
1824
- },
1825
- /* @__PURE__ */ React26.createElement("path", { d: "m6 9 6 6 6-6" })
1826
- )
1827
- ), /* @__PURE__ */ React26.createElement(
1828
- "p",
1829
- {
1830
- className: cn(
1831
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
1832
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
1833
- )
1834
- },
1835
- props.helperText
1836
- ))), /* @__PURE__ */ React26.createElement(
1837
- PopoverContent,
1838
- {
1839
- className: cn("popover-w-parent", props.helperText && "-hawa-mt-4")
1840
- },
1841
- /* @__PURE__ */ React26.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React26.createElement(
1842
- CommandInput,
1843
- {
1844
- placeholder: ((_b = props.texts) == null ? void 0 : _b.searchPlaceholder) || "Search"
1845
- }
1846
- ), /* @__PURE__ */ React26.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."), /* @__PURE__ */ React26.createElement(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-auto" }, data.map((item, i) => /* @__PURE__ */ React26.createElement(
1847
- CommandItem,
1848
- {
1849
- key: i,
1850
- onSelect: () => {
1851
- const newValue = getProperty(item, valueKey);
1852
- setValue(newValue === value ? "" : newValue);
1853
- if (props.onChange) {
1854
- props.onChange(
1855
- newValue === value ? "" : newValue
1856
- );
1857
- }
1858
- setOpen(false);
1859
- }
1860
- },
1861
- /* @__PURE__ */ React26.createElement(
1862
- "svg",
1863
- {
1864
- "aria-label": "Check Icon",
1865
- xmlns: "http://www.w3.org/2000/svg",
1866
- width: "24",
1867
- height: "24",
1868
- viewBox: "0 0 24 24",
1869
- fill: "none",
1870
- stroke: "currentColor",
1871
- strokeWidth: "2",
1872
- strokeLinecap: "round",
1873
- strokeLinejoin: "round",
1874
- className: cn(
1875
- "hawa-icon hawa-mr-2",
1876
- value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
1877
- )
1878
- },
1879
- /* @__PURE__ */ React26.createElement("polyline", { points: "20 6 9 17 4 12" })
1880
- ),
1881
- getProperty(item, labelKey)
1882
- ))))
1883
- ))
1884
- );
1885
- }
1886
- );
1887
-
1888
- // components/elements/textarea/Textarea.tsx
1889
- var React27 = __toESM(require("react"));
1890
- var Textarea = React27.forwardRef(
1891
- ({
1892
- className,
1893
- labelProps,
1894
- showCount,
1895
- forceHideHelperText,
1896
- textareaProps,
1897
- countPosition = "bottom",
1898
- ...props
1899
- }, ref) => {
1900
- return /* @__PURE__ */ React27.createElement("div", { className: "hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React27.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React27.createElement(
1901
- "textarea",
1902
- {
1903
- className: cn(
1904
- "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",
1905
- className
1906
- ),
1907
- ref,
1908
- ...textareaProps
1909
- }
1910
- ), /* @__PURE__ */ React27.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React27.createElement(
1911
- "p",
1912
- {
1913
- className: cn(
1914
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
1915
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
1916
- )
1917
- },
1918
- props.helperText
1919
- ), showCount && /* @__PURE__ */ React27.createElement(
1920
- "div",
1921
- {
1922
- className: cn(
1923
- " hawa-text-start hawa-text-xs hawa-transition-all ",
1924
- {
1925
- "hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
1926
- }
1927
- )
1928
- },
1929
- (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
1930
- "/",
1931
- textareaProps == null ? void 0 : textareaProps.maxLength
1932
- )));
1933
- }
1934
- );
1935
- Textarea.displayName = "Textarea";
1936
-
1937
- // components/elements/fileDropzone/FileDropzone.tsx
1938
- var import_react11 = __toESM(require("react"));
1939
- var import_react_dropzone = require("react-dropzone");
1940
- var import_clsx2 = __toESM(require("clsx"));
1941
-
1942
- // components/elements/sortButton/SortButton.tsx
1943
- var import_react12 = __toESM(require("react"));
1944
-
1945
- // components/elements/tabs/Tabs.tsx
1946
- var React31 = __toESM(require("react"));
1947
- var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
1948
-
1949
- // components/elements/Chip.tsx
1950
- var import_react13 = __toESM(require("react"));
1951
- var Chip = import_react13.default.forwardRef(
1952
- ({
1953
- label,
1954
- size = "normal",
1955
- icon,
1956
- color,
1957
- radius = "inherit",
1958
- dotType,
1959
- ...rest
1960
- }, ref) => {
1961
- 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 ";
1962
- let radiusStyles = {
1963
- inherit: " hawa-rounded",
1964
- full: "hawa-rounded-full",
1965
- none: "hawa-rounded-none"
1966
- };
1967
- let sizeStyles = {
1968
- small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
1969
- normal: "hawa-h-fit hawa-text-xs",
1970
- large: "hawa-text-base"
1971
- };
1972
- let dotStyles = {
1973
- small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
1974
- normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
1975
- large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
1976
- };
1977
- let dotTypeStyles = {
1978
- available: "hawa-bg-green-500",
1979
- unavailable: "hawa-bg-red-500"
1980
- };
1981
- let colorStyles = {
1982
- green: "hawa-bg-green-100 hawa-text-green-500 dark:hawa-bg-green-400 dark:hawa-text-green-800",
1983
- blue: "hawa-bg-blue-100 hawa-text-blue-500 dark:hawa-bg-blue-400 dark:hawa-text-blue-100",
1984
- red: "hawa-bg-red-100 hawa-text-red-500 dark:hawa-bg-red-400 dark:hawa-text-red-100",
1985
- yellow: "hawa-bg-yellow-100 hawa-text-yellow-600 dark:hawa-bg-yellow-400 dark:hawa-text-yellow-800",
1986
- orange: "hawa-bg-orange-100 hawa-text-orange-500 dark:hawa-bg-orange-400 dark:hawa-text-orange-100",
1987
- purple: "hawa-bg-purple-100 hawa-text-purple-500 dark:hawa-bg-purple-400 dark:hawa-text-purple-100",
1988
- cyan: "hawa-bg-cyan-100 hawa-text-cyan-800 dark:hawa-bg-cyan-400 dark:hawa-text-cyan-800",
1989
- hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-500 hawa-via-red-500 hawa-to-yellow-500 ",
1990
- oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
1991
- };
1992
- if (label) {
1993
- return /* @__PURE__ */ import_react13.default.createElement(
1994
- "span",
1995
- {
1996
- ...rest,
1997
- ref,
1998
- className: cn(
1999
- defaultStyles,
2000
- sizeStyles[size],
2001
- radiusStyles[radius],
2002
- color ? colorStyles[color] : "hawa-border hawa-bg-none"
2003
- )
2004
- },
2005
- dotType && /* @__PURE__ */ import_react13.default.createElement(
2006
- "span",
2007
- {
2008
- className: cn(dotStyles[size], dotTypeStyles[dotType])
2009
- }
2010
- ),
2011
- icon && icon,
2012
- label
2013
- );
2014
- } else {
2015
- return /* @__PURE__ */ import_react13.default.createElement(
2016
- "span",
2017
- {
2018
- ...rest,
2019
- ref,
2020
- className: cn(
2021
- "hawa-h-2 hawa-w-2 hawa-rounded-full",
2022
- color ? colorStyles[color] : "hawa-border hawa-bg-none"
2023
- )
2024
- }
2025
- );
2026
- }
2027
- }
2028
- );
2029
-
2030
- // components/elements/tabs/Tabs.tsx
2031
- var TabsContext = React31.createContext({ orientation: "vertical" });
2032
- var Tabs = React31.forwardRef(({ className, orientation, ...props }, ref) => /* @__PURE__ */ React31.createElement(
2033
- TabsPrimitive.Root,
2034
- {
2035
- ref,
2036
- className: cn(
2037
- "hawa-flex hawa-gap-2",
2038
- orientation === "vertical" ? "hawa-flex-row" : "hawa-flex-col",
2039
- className
2040
- ),
2041
- ...props
2042
- },
2043
- /* @__PURE__ */ React31.createElement(TabsContext.Provider, { value: { orientation } }, props.children)
2044
- ));
2045
- Tabs.displayName = TabsPrimitive.Root.displayName;
2046
- var TabsList = React31.forwardRef(({ className, ...props }, ref) => {
2047
- const { orientation } = React31.useContext(TabsContext);
2048
- return /* @__PURE__ */ React31.createElement(
2049
- TabsPrimitive.List,
2050
- {
2051
- ref,
2052
- className: cn(
2053
- "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",
2054
- orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
2055
- className
2056
- ),
2057
- ...props
2058
- }
2059
- );
2060
- });
2061
- TabsList.displayName = TabsPrimitive.List.displayName;
2062
- var TabsTrigger = React31.forwardRef(({ className, chipProps, ...props }, ref) => {
2063
- return /* @__PURE__ */ React31.createElement(
2064
- TabsPrimitive.Trigger,
2065
- {
2066
- ref,
2067
- className: cn(
2068
- "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",
2069
- className
2070
- ),
2071
- ...props
2072
- },
2073
- props.children,
2074
- chipProps && /* @__PURE__ */ React31.createElement(Chip, { ...chipProps })
2075
- );
2076
- });
2077
- TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
2078
- var TabsContent = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React31.createElement(
2079
- TabsPrimitive.Content,
2080
- {
2081
- ref,
2082
- className: cn(
2083
- "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",
2084
- className
2085
- ),
2086
- ...props
2087
- }
2088
- ));
2089
- TabsContent.displayName = TabsPrimitive.Content.displayName;
2090
-
2091
- // components/elements/select/Select.tsx
2092
- var import_react14 = __toESM(require("react"));
2093
- var import_react_select = __toESM(require("react-select"));
2094
- var import_creatable = __toESM(require("react-select/creatable"));
2095
- var import_clsx3 = __toESM(require("clsx"));
2096
-
2097
- // components/elements/switch/Switch.tsx
2098
- var React33 = __toESM(require("react"));
2099
- var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
2100
- var Switch = React33.forwardRef(
2101
- ({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
2102
- const [parentDirection, setParentDirection] = React33.useState(
2103
- null
2104
- );
2105
- const parentRef = React33.useRef(null);
2106
- React33.useEffect(() => {
2107
- var _a;
2108
- const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
2109
- if (parentNode) {
2110
- const dir = window.getComputedStyle(parentNode).direction;
2111
- setParentDirection(dir);
2112
- }
2113
- });
2114
- const rootSize = {
2115
- default: "hawa-h-[25px] hawa-w-[42px]",
2116
- sm: "hawa-h-[20px] hawa-w-[37px]",
2117
- lg: "hawa-h-[30px] hawa-w-[47px]"
2118
- };
2119
- const thumbSize = {
2120
- default: "hawa-h-[21px] hawa-w-[21px]",
2121
- sm: "hawa-h-[16px] hawa-w-[16px]",
2122
- lg: "hawa-h-[26px] hawa-w-[26px]"
2123
- };
2124
- const rootRoundednessStyles = {
2125
- none: "hawa-rounded-none",
2126
- full: "hawa-rounded-full",
2127
- inherit: "hawa-rounded"
2128
- };
2129
- const thumbRoundednessStyles = {
2130
- none: "hawa-rounded-none",
2131
- full: "hawa-rounded-full",
2132
- inherit: "hawa-rounded-inner"
2133
- };
2134
- return /* @__PURE__ */ React33.createElement(
2135
- "div",
2136
- {
2137
- className: "hawa-flex hawa-flex-row hawa-items-center",
2138
- ref: parentRef
2139
- },
2140
- /* @__PURE__ */ React33.createElement(
2141
- SwitchPrimitives.Root,
2142
- {
2143
- className: cn(
2144
- "data-[state=unchecked]:hawa-bg-primary/20",
2145
- "data-[state=checked]:hawa-bg-primary",
2146
- "hawa-relative hawa-cursor-pointer hawa-rounded hawa-outline-none",
2147
- rootRoundednessStyles[roundedness],
2148
- className,
2149
- rootSize[size]
2150
- ),
2151
- ...props,
2152
- ref
2153
- },
2154
- /* @__PURE__ */ React33.createElement(
2155
- SwitchPrimitives.Thumb,
2156
- {
2157
- className: cn(
2158
- thumbSize[size],
2159
- "hawa-block hawa-rounded hawa-transition-transform hawa-duration-100 hawa-will-change-transform",
2160
- "data-[state=checked]:hawa-bg-primary-foreground",
2161
- "hawa-bg-white dark:hawa-bg-background",
2162
- thumbRoundednessStyles[roundedness],
2163
- 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]"
2164
- )
2165
- }
2166
- )
2167
- ),
2168
- label && /* @__PURE__ */ React33.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
2169
- );
2170
- }
2171
- );
2172
- Switch.displayName = SwitchPrimitives.Root.displayName;
2173
-
2174
- // components/elements/checkbox/Checkbox.tsx
2175
- var React34 = __toESM(require("react"));
2176
- var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
2177
- var CheckboxElement = React34.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
2178
- let checkboxRadius = {
2179
- none: "hawa-rounded-none",
2180
- inherit: "hawa-rounded-sm",
2181
- full: "hawa-rounded-full"
2182
- };
2183
- let checkboxSizes = {
2184
- xs: "hawa-w-3 hawa-h-3",
2185
- sm: "hawa-w-6 hawa-h-6",
2186
- default: "hawa-icon",
2187
- md: "hawa-w-8 hawa-h-8",
2188
- lg: "hawa-w-10 hawa-h-10",
2189
- xl: "hawa-w-12 hawa-h-12"
2190
- };
2191
- let checkboxIndicatorSizes = {
2192
- xs: "0.5em",
2193
- default: "0.60em",
2194
- sm: "0.75em",
2195
- md: "0.875em",
2196
- lg: "1em",
2197
- xl: "1.25em"
2198
- };
2199
- return /* @__PURE__ */ React34.createElement(
2200
- CheckboxPrimitive.Root,
2201
- {
2202
- ref,
2203
- className: cn(
2204
- "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",
2205
- checkboxSizes[size],
2206
- checkboxRadius[radius],
2207
- className
2208
- ),
2209
- ...props
2210
- },
2211
- /* @__PURE__ */ React34.createElement(
2212
- CheckboxPrimitive.Indicator,
2213
- {
2214
- className: cn(
2215
- "hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
2216
- )
2217
- },
2218
- /* @__PURE__ */ React34.createElement(
2219
- "svg",
2220
- {
2221
- "aria-label": "Check Mark",
2222
- stroke: "currentColor",
2223
- fill: "currentColor",
2224
- strokeWidth: "0",
2225
- viewBox: "0 0 512 512",
2226
- height: checkboxIndicatorSizes[size],
2227
- width: checkboxIndicatorSizes[size]
2228
- },
2229
- /* @__PURE__ */ React34.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" })
2230
- ),
2231
- " "
2232
- )
2233
- );
2234
- });
2235
- CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
2236
-
2237
- // components/elements/cards/ActionCard.tsx
2238
- var import_react15 = __toESM(require("react"));
2239
-
2240
- // components/elements/cards/AdCard.tsx
2241
- var import_react16 = __toESM(require("react"));
2242
-
2243
- // components/elements/cards/PricingCard.tsx
2244
- var import_react17 = __toESM(require("react"));
2245
-
2246
- // components/elements/cards/ItemCard.tsx
2247
- var import_react18 = __toESM(require("react"));
2248
-
2249
- // components/elements/cards/LandingCard.tsx
2250
- var import_react19 = __toESM(require("react"));
2251
-
2252
- // components/elements/PinInput.tsx
2253
- var import_react20 = __toESM(require("react"));
2254
-
2255
- // components/elements/PhoneInput.tsx
2256
- var import_react21 = __toESM(require("react"));
2257
-
2258
- // components/elements/Progress.tsx
2259
- var React42 = __toESM(require("react"));
2260
- var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
2261
- var Progress = React42.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React42.createElement(
2262
- ProgressPrimitive.Root,
2263
- {
2264
- ref,
2265
- className: cn(
2266
- "hawa-relative hawa-h-4 hawa-w-full hawa-overflow-hidden hawa-rounded hawa-bg-secondary",
2267
- className
2268
- ),
2269
- ...props
2270
- },
2271
- /* @__PURE__ */ React42.createElement(
2272
- ProgressPrimitive.Indicator,
2273
- {
2274
- className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
2275
- style: { transform: `translateX(-${100 - (value || 0)}%)` }
2276
- }
2277
- )
2278
- ));
2279
- Progress.displayName = ProgressPrimitive.Root.displayName;
2280
-
2281
- // components/elements/ProgressCircle.tsx
2282
- var import_react22 = __toESM(require("react"));
2283
- var size2config = {
2284
- xs: {
2285
- radius: 15,
2286
- strokeWidth: 3
2287
- },
2288
- sm: {
2289
- radius: 19,
2290
- strokeWidth: 4
2291
- },
2292
- md: {
2293
- radius: 32,
2294
- strokeWidth: 6
2295
- },
2296
- lg: {
2297
- radius: 52,
2298
- strokeWidth: 8
2299
- },
2300
- xl: {
2301
- radius: 80,
2302
- strokeWidth: 10
2303
- }
2304
- };
2305
- function getLimitedValue(input) {
2306
- if (input === void 0) {
2307
- return 0;
2308
- } else if (input > 100) {
2309
- return 100;
2310
- } else {
2311
- return input;
2312
- }
2313
- }
2314
- var ProgressCircle = import_react22.default.forwardRef((props, ref) => {
2315
- const {
2316
- value: inputValue,
2317
- size = "md",
2318
- className,
2319
- showAnimation = true,
2320
- color,
2321
- tooltip,
2322
- radius: inputRadius,
2323
- strokeWidth: inputStrokeWidth,
2324
- children,
2325
- ...other
2326
- } = props;
2327
- const value = getLimitedValue(inputValue);
2328
- const radius = inputRadius != null ? inputRadius : size2config[size].radius;
2329
- const strokeWidth = inputStrokeWidth != null ? inputStrokeWidth : size2config[size].strokeWidth;
2330
- const normalizedRadius = radius - strokeWidth / 2;
2331
- const circumference = normalizedRadius * 2 * Math.PI;
2332
- const strokeDashoffset = value / 100 * circumference;
2333
- const offset = circumference - strokeDashoffset;
2334
- return /* @__PURE__ */ import_react22.default.createElement(import_react22.default.Fragment, null, /* @__PURE__ */ import_react22.default.createElement(
2335
- "div",
2336
- {
2337
- ref,
2338
- className: cn(
2339
- "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
2340
- className
2341
- )
2342
- },
2343
- /* @__PURE__ */ import_react22.default.createElement(
2344
- "svg",
2345
- {
2346
- width: radius * 2,
2347
- height: radius * 2,
2348
- viewBox: `0 0 ${radius * 2} ${radius * 2}`,
2349
- className: "hawa-rotate-180 hawa-transform"
2350
- },
2351
- /* @__PURE__ */ import_react22.default.createElement(
2352
- "circle",
2353
- {
2354
- r: normalizedRadius,
2355
- cx: radius,
2356
- cy: radius,
2357
- strokeWidth,
2358
- fill: "transparent",
2359
- stroke: "",
2360
- strokeLinecap: "round",
2361
- className: cn(
2362
- "hawa-transition-colors hawa-ease-linear",
2363
- " hawa-stroke-primary/20"
2364
- )
2365
- }
2366
- ),
2367
- value > 0 ? /* @__PURE__ */ import_react22.default.createElement(
2368
- "circle",
2369
- {
2370
- r: normalizedRadius,
2371
- cx: radius,
2372
- cy: radius,
2373
- strokeWidth,
2374
- strokeDasharray: circumference + " " + circumference,
2375
- strokeDashoffset: offset,
2376
- fill: "transparent",
2377
- stroke: "",
2378
- strokeLinecap: "round",
2379
- className: cn(
2380
- "hawa-transition-colors hawa-ease-linear",
2381
- "hawa-stroke-primary",
2382
- showAnimation ? "hawa-transition-all hawa-duration-300 hawa-ease-in-out" : ""
2383
- )
2384
- }
2385
- ) : null
2386
- ),
2387
- /* @__PURE__ */ import_react22.default.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
2388
- ));
2389
- });
2390
- ProgressCircle.displayName = "ProgressCircle";
2391
-
2392
- // components/elements/Pagination.tsx
2393
- var import_react23 = __toESM(require("react"));
2394
- var import_react_headless_pagination = require("react-headless-pagination");
2395
-
2396
- // components/elements/PasswordInput.tsx
2397
- var import_react27 = __toESM(require("react"));
2398
-
2399
- // components/icons/Emojis.tsx
2400
- var import_react24 = __toESM(require("react"));
2401
-
2402
- // components/icons/InputIcons.tsx
2403
- var import_react25 = __toESM(require("react"));
2404
-
2405
- // components/icons/CommonIcons.tsx
2406
- var import_react26 = __toESM(require("react"));
2407
-
2408
- // components/elements/Slider.tsx
2409
- var React49 = __toESM(require("react"));
2410
- var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
2411
- var Slider = React49.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React49.createElement(
2412
- SliderPrimitive.Root,
2413
- {
2414
- ref,
2415
- className: cn(
2416
- "hawa-relative hawa-flex hawa-w-full hawa-touch-none hawa-select-none hawa-items-center",
2417
- className
2418
- ),
2419
- ...props
2420
- },
2421
- /* @__PURE__ */ React49.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__ */ React49.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
2422
- /* @__PURE__ */ React49.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" })
2423
- ));
2424
- Slider.displayName = SliderPrimitive.Root.displayName;
2425
-
2426
- // components/elements/SimpleTable.tsx
2427
- var React50 = __toESM(require("react"));
2428
- var import_react_table2 = require("@tanstack/react-table");
2429
-
2430
- // components/elements/Separator.tsx
2431
- var React51 = __toESM(require("react"));
2432
-
2433
- // components/elements/ScrollArea.tsx
2434
- var React52 = __toESM(require("react"));
2435
- var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
2436
- var ScrollArea = React52.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
2437
- ScrollAreaPrimitive.Root,
2438
- {
2439
- ref,
2440
- className: cn("hawa-relative hawa-overflow-hidden", className),
2441
- ...props
2442
- },
2443
- /* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
2444
- /* @__PURE__ */ React52.createElement(ScrollBar, { orientation }),
2445
- /* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Corner, null)
2446
- ));
2447
- ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
2448
- var ScrollBar = React52.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
2449
- ScrollAreaPrimitive.ScrollAreaScrollbar,
2450
- {
2451
- ref,
2452
- orientation,
2453
- className: cn(
2454
- "hawa-flex hawa-touch-none hawa-select-none hawa-transition-colors",
2455
- orientation === "vertical" && "hawa-h-full hawa-w-2.5 hawa-border-l hawa-border-l-transparent hawa-p-[1px]",
2456
- orientation === "horizontal" && "hawa-h-2.5 hawa-border-t hawa-border-t-transparent hawa-p-[1px]",
2457
- className
2458
- ),
2459
- ...props
2460
- },
2461
- /* @__PURE__ */ React52.createElement(
2462
- ScrollAreaPrimitive.ScrollAreaThumb,
2463
- {
2464
- className: cn(
2465
- "hawa-relative hawa-rounded-full hawa-bg-border",
2466
- orientation === "vertical" && "hawa-flex-1"
2467
- )
2468
- }
2469
- )
2470
- ));
2471
- ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
2472
-
2473
- // components/elements/ScrollIndicator.tsx
2474
- var import_react28 = __toESM(require("react"));
2475
-
2476
- // components/elements/StopPropagationWrapper.tsx
2477
- var import_react29 = __toESM(require("react"));
2478
-
2479
- // components/elements/ColorPicker.tsx
2480
- var import_react30 = __toESM(require("react"));
2481
-
2482
- // components/elements/CodeBlock.tsx
2483
- var import_react32 = __toESM(require("react"));
2484
- var import_prism_react_renderer = require("prism-react-renderer");
2485
-
2486
- // components/hooks/useClipboard.ts
2487
- var import_react31 = require("react");
2488
-
2489
- // components/elements/Carousel.tsx
2490
- var import_react33 = __toESM(require("react"));
2491
- var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
2492
-
2493
- // components/elements/Count.tsx
2494
- var import_react34 = __toESM(require("react"));
2495
-
2496
- // components/elements/Toast.tsx
2497
- var React59 = __toESM(require("react"));
2498
- var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
2499
- var import_class_variance_authority4 = require("class-variance-authority");
2500
- var toastVariants = (0, import_class_variance_authority4.cva)(
2501
- "hawa-group hawa-z-[900] hawa-pointer-events-auto hawa-relative hawa-flex hawa-w-full hawa-items-center hawa-justify-between hawa-space-x-4 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",
2502
- {
2503
- variants: {
2504
- variant: {
2505
- default: "hawa-border hawa-bg-background hawa-text-foreground",
2506
- destructive: "hawa-destructive hawa-group hawa-border-destructive hawa-bg-destructive hawa-text-destructive-foreground"
2507
- },
2508
- severity: {
2509
- info: "hawa-info hawa-group hawa-text-info-foreground hawa-bg-info",
2510
- warning: "hawa-warning hawa-group hawa-text-warning-foreground hawa-bg-warning",
2511
- error: "hawa-error hawa-group hawa-border-error hawa-bg-error hawa-text-white",
2512
- success: "hawa-success hawa-group hawa-text-success-foreground hawa-bg-success",
2513
- none: ""
2514
- }
2515
- },
2516
- defaultVariants: {
2517
- variant: "default"
2518
- }
2519
- }
2520
- );
2521
- var ToastViewport = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React59.createElement(
2522
- ToastPrimitives.Viewport,
2523
- {
2524
- ref,
2525
- className: cn(
2526
- "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]",
2527
- className
2528
- ),
2529
- ...props
2530
- }
2531
- ));
2532
- ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
2533
- var Toast = React59.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
2534
- return /* @__PURE__ */ React59.createElement(
2535
- ToastPrimitives.Root,
2536
- {
2537
- ref,
2538
- className: cn(
2539
- toastVariants({ variant, severity }),
2540
- className,
2541
- direction === "rtl" ? "hawa-p-6 hawa-pl-0 hawa-pr-10 data-[state=closed]:hawa-slide-out-to-left-full" : "hawa-p-6 hawa-pr-8 data-[state=closed]:hawa-slide-out-to-right-full"
2542
- ),
2543
- dir: direction,
2544
- ...props
2545
- }
2546
- );
2547
- });
2548
- Toast.displayName = ToastPrimitives.Root.displayName;
2549
- var ToastAction = React59.forwardRef(({ className, ...props }, ref) => {
2550
- return /* @__PURE__ */ React59.createElement(
2551
- ToastPrimitives.Action,
735
+ }) {
736
+ const animationStyles = {
737
+ none: "hawa-rounded hawa-bg-muted",
738
+ pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
739
+ 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"
740
+ };
741
+ return /* @__PURE__ */ import_react7.default.createElement(
742
+ "div",
2552
743
  {
2553
- ref,
2554
744
  className: cn(
2555
- "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",
2556
- "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",
2557
- "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",
2558
- "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",
2559
- "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",
745
+ animationStyles[animation],
746
+ content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
2560
747
  className
2561
748
  ),
2562
749
  ...props
2563
- }
2564
- );
2565
- });
2566
- ToastAction.displayName = ToastPrimitives.Action.displayName;
2567
- var ToastClose = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React59.createElement(
2568
- ToastPrimitives.Close,
2569
- {
2570
- ref,
2571
- className: cn(
2572
- "hawa-absolute hawa-right-2 hawa-top-2 hawa-rounded-md hawa-p-1 hawa-text-foreground/50 hawa-opacity-0 hawa-transition-opacity hover:hawa-text-foreground focus:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 group-hover:hawa-opacity-100 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",
2573
- className
2574
- ),
2575
- "toast-close": "",
2576
- ...props
2577
- },
2578
- /* @__PURE__ */ React59.createElement(
2579
- "svg",
2580
- {
2581
- "aria-label": "Close Icon",
2582
- "aria-hidden": "true",
2583
- className: "hawa-icon",
2584
- fill: "currentColor",
2585
- viewBox: "0 0 20 20"
2586
750
  },
2587
- /* @__PURE__ */ React59.createElement(
2588
- "path",
2589
- {
2590
- fillRule: "evenodd",
2591
- 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",
2592
- clipRule: "evenodd"
2593
- }
2594
- )
2595
- )
2596
- ));
2597
- ToastClose.displayName = ToastPrimitives.Close.displayName;
2598
- var ToastTitle = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React59.createElement(
2599
- ToastPrimitives.Title,
2600
- {
2601
- ref,
2602
- className: cn(
2603
- "hawa-select-text hawa-text-sm hawa-font-semibold",
2604
- className
2605
- ),
2606
- ...props
2607
- }
2608
- ));
2609
- ToastTitle.displayName = ToastPrimitives.Title.displayName;
2610
- var ToastDescription = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React59.createElement(
2611
- ToastPrimitives.Description,
2612
- {
2613
- ref,
2614
- className: cn("hawa-select-text hawa-text-sm hawa-opacity-90", className),
2615
- ...props
2616
- }
2617
- ));
2618
- ToastDescription.displayName = ToastPrimitives.Description.displayName;
2619
-
2620
- // components/elements/Toaster.tsx
2621
- var import_react35 = __toESM(require("react"));
2622
-
2623
- // components/hooks/useToast.ts
2624
- var React60 = __toESM(require("react"));
2625
-
2626
- // components/elements/Breadcrumb.tsx
2627
- var import_react36 = __toESM(require("react"));
2628
-
2629
- // components/elements/Badge.tsx
2630
- var import_react37 = __toESM(require("react"));
2631
-
2632
- // components/elements/AppStores.tsx
2633
- var import_react38 = __toESM(require("react"));
2634
-
2635
- // components/elements/DestroyableCard.tsx
2636
- var import_react39 = __toESM(require("react"));
2637
-
2638
- // components/elements/InterfaceSettings.tsx
2639
- var import_react40 = __toESM(require("react"));
751
+ content && content
752
+ );
753
+ }
2640
754
 
2641
- // components/blocks/misc/LegalTexts.tsx
2642
- var LegalTexts = ({ tabs, ...props }) => {
2643
- return /* @__PURE__ */ import_react41.default.createElement(
2644
- Tabs,
2645
- {
2646
- value: props.activeTab,
2647
- onValueChange: props.handleTabChange,
2648
- defaultValue: props.defaultTab || tabs[0].value,
2649
- dir: props.direction
2650
- },
2651
- /* @__PURE__ */ import_react41.default.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ import_react41.default.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
2652
- tabs.map((tab, index) => /* @__PURE__ */ import_react41.default.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ import_react41.default.createElement(
2653
- ScrollArea,
755
+ // components/elements/input/Input.tsx
756
+ var Input = (0, import_react8.forwardRef)(
757
+ ({
758
+ margin = "none",
759
+ width = "full",
760
+ preview = false,
761
+ forceHideHelperText = false,
762
+ labelProps,
763
+ placeholder,
764
+ showCount,
765
+ inputProps,
766
+ countPosition = "bottom",
767
+ ...props
768
+ }, ref) => {
769
+ var _a;
770
+ let marginStyles = {
771
+ none: "hawa-mb-0",
772
+ normal: "hawa-mb-3",
773
+ large: "hawa-mb-5"
774
+ };
775
+ let widthStyles = {
776
+ small: "hawa-w-full hawa-max-w-2xs",
777
+ normal: "hawa-w-1/2",
778
+ full: "hawa-w-full",
779
+ auto: ""
780
+ };
781
+ let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
782
+ let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
783
+ return /* @__PURE__ */ import_react8.default.createElement(
784
+ "div",
2654
785
  {
2655
786
  className: cn(
2656
- "hawa-rounded hawa-border hawa-bg-muted hawa-p-4",
2657
- props.scrollAreaClassName
787
+ defaultStyle,
788
+ marginStyles[margin],
789
+ widthStyles[width],
790
+ props.containerClassName,
791
+ "hawa-w-full hawa-gap-2"
2658
792
  )
2659
793
  },
2660
- tab.content
2661
- )))
2662
- );
2663
- };
2664
-
2665
- // components/blocks/misc/EmptyState.tsx
2666
- var import_react42 = __toESM(require("react"));
2667
- var EmptyState = ({ texts, onActionClick }) => {
2668
- return /* @__PURE__ */ import_react42.default.createElement(Card, null, /* @__PURE__ */ import_react42.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react42.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center " }, /* @__PURE__ */ import_react42.default.createElement("div", { className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ import_react42.default.createElement(
2669
- "svg",
2670
- {
2671
- stroke: "currentColor",
2672
- fill: "currentColor",
2673
- strokeWidth: "0",
2674
- viewBox: "0 0 512 512",
2675
- height: "0.35em",
2676
- width: "0.35em"
2677
- },
2678
- /* @__PURE__ */ import_react42.default.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" })
2679
- )), /* @__PURE__ */ import_react42.default.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.youreCaughtUp) || "You're all caught up"))), /* @__PURE__ */ import_react42.default.createElement(CardFooter, null, /* @__PURE__ */ import_react42.default.createElement(Button, { className: "hawa-w-full", onClick: () => onActionClick() }, (texts == null ? void 0 : texts.actionText) || "Go Home")));
2680
- };
2681
-
2682
- // components/blocks/misc/Testimonial.tsx
2683
- var import_react43 = __toESM(require("react"));
2684
- var Testimonial = () => {
2685
- return /* @__PURE__ */ import_react43.default.createElement(Card, null, /* @__PURE__ */ import_react43.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react43.default.createElement("div", null, /* @__PURE__ */ import_react43.default.createElement("p", { className: "mb-4 max-w-sm" }, "The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless.")), /* @__PURE__ */ import_react43.default.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ import_react43.default.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ import_react43.default.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ import_react43.default.createElement(
2686
- "path",
2687
- {
2688
- d: "M14.1412 22.4427L17.5803 16.5199C17.7671 16.1981 18.1112 16 18.4834 16H20.8581C21.653 16 22.1565 16.8528 21.7725 17.5488L19.3042 22.0225C19.2202 22.1747 19.1762 22.3458 19.1762 22.5196C19.1762 23.0879 19.6369 23.5486 20.2052 23.5486H21.5827C22.1594 23.5486 22.627 24.0162 22.627 24.5929V31.347C22.627 31.9237 22.1594 32.3913 21.5827 32.3913H15.0443C14.4676 32.3913 14 31.9237 14 31.347V22.9671C14 22.7829 14.0487 22.602 14.1412 22.4427Z",
2689
- fill: "#FFFFFF"
2690
- }
2691
- ), /* @__PURE__ */ import_react43.default.createElement(
2692
- "path",
2693
- {
2694
- d: "M25.356 22.4427L28.7951 16.5199C28.982 16.1981 29.326 16 29.6982 16H32.0729C32.8679 16 33.3713 16.8528 32.9873 17.5488L30.5191 22.0225C30.4351 22.1747 30.391 22.3458 30.391 22.5196C30.391 23.0879 30.8518 23.5486 31.4201 23.5486H32.7975C33.3743 23.5486 33.8418 24.0162 33.8418 24.5929V31.347C33.8418 31.9237 33.3743 32.3913 32.7975 32.3913H26.2592C25.6824 32.3913 25.2148 31.9237 25.2148 31.347V22.9671C25.2148 22.7829 25.2636 22.602 25.356 22.4427Z",
2695
- fill: "#FFFFFF"
2696
- }
2697
- )), /* @__PURE__ */ import_react43.default.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ import_react43.default.createElement("div", null, /* @__PURE__ */ import_react43.default.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ import_react43.default.createElement("div", null, " Chief Information Security Officer")))));
2698
- };
794
+ props.label && /* @__PURE__ */ import_react8.default.createElement(Label, { ...labelProps }, props.label),
795
+ props.isLoading ? /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react8.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react8.default.createElement(
796
+ "div",
797
+ {
798
+ className: cn(
799
+ "hawa-absolute hawa-top-[22px] hawa-h-[0.8px] hawa-w-full hawa-bg-gray-200 hawa-transition-all dark:hawa-bg-gray-800",
800
+ preview ? "hawa-opacity-100" : "hawa-opacity-0"
801
+ )
802
+ }
803
+ ), /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ import_react8.default.createElement(
804
+ "div",
805
+ {
806
+ className: cn(
807
+ "hawa-absolute hawa-end-3 hawa-top-1/2 hawa--translate-y-1/2",
808
+ (_a = props.endIconProps) == null ? void 0 : _a.className
809
+ )
810
+ },
811
+ props.endIcon
812
+ ), /* @__PURE__ */ import_react8.default.createElement(
813
+ "input",
814
+ {
815
+ required: true,
816
+ dir: props.dir,
817
+ type: props.type,
818
+ value: props.value,
819
+ onChange: props.onChange,
820
+ autoComplete: props.autoComplete,
821
+ defaultValue: props.defaultValue,
822
+ placeholder,
823
+ disabled: props.disabled || preview,
824
+ style: { height: 40 },
825
+ ...inputProps,
826
+ className: cn(
827
+ defaultInputStyle,
828
+ " 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",
829
+ {
830
+ "hawa-pe-9": props.endIcon,
831
+ "hawa-ps-9": props.startIcon,
832
+ "hawa-pe-[60px]": countPosition === "center"
833
+ },
834
+ preview && "hawa-border-transparent hawa-bg-transparent hawa-px-0",
835
+ inputProps == null ? void 0 : inputProps.className
836
+ )
837
+ }
838
+ )), !forceHideHelperText && /* @__PURE__ */ import_react8.default.createElement(
839
+ "p",
840
+ {
841
+ className: cn(
842
+ "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
843
+ props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
844
+ )
845
+ },
846
+ props.helperText
847
+ ), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react8.default.createElement(
848
+ "div",
849
+ {
850
+ className: cn(
851
+ "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",
852
+ props.helperText ? "hawa-border hawa-p-1" : "hawa-border-none hawa-p-0"
853
+ )
854
+ },
855
+ props.helperText
856
+ ), showCount && /* @__PURE__ */ import_react8.default.createElement(
857
+ "div",
858
+ {
859
+ className: cn(
860
+ "hawa-absolute hawa-translate-y-1/2 hawa-text-start hawa-text-xs hawa-transition-all",
861
+ {
862
+ "hawa-end-0 hawa-top-[62px]": countPosition === "bottom",
863
+ "hawa-bottom-[62px] hawa-end-0": countPosition === "top",
864
+ "hawa-end-2": countPosition === "center"
865
+ }
866
+ )
867
+ },
868
+ props.value ? String(props.value).length : 0,
869
+ "/",
870
+ props.maxLength
871
+ )))
872
+ );
873
+ }
874
+ );
2699
875
 
2700
876
  // components/blocks/misc/LeadGenerator.tsx
2701
- var import_react44 = __toESM(require("react"));
2702
- var import_react_hook_form = require("react-hook-form");
2703
877
  var LeadGenerator = ({ texts, submitHandler }) => {
2704
878
  var _a;
2705
879
  const { handleSubmit, control, formState } = (0, import_react_hook_form.useForm)();
@@ -2710,14 +884,14 @@ var LeadGenerator = ({ texts, submitHandler }) => {
2710
884
  console.log("handleNewsletterSub props was not provided");
2711
885
  }
2712
886
  };
2713
- return /* @__PURE__ */ import_react44.default.createElement(Card, null, /* @__PURE__ */ import_react44.default.createElement(CardHeader, null, /* @__PURE__ */ import_react44.default.createElement(CardTitle, null, texts == null ? void 0 : texts.title), /* @__PURE__ */ import_react44.default.createElement(CardDescription, null, texts == null ? void 0 : texts.subtitle)), /* @__PURE__ */ import_react44.default.createElement(CardContent, null, /* @__PURE__ */ import_react44.default.createElement(
887
+ return /* @__PURE__ */ import_react9.default.createElement(Card, null, /* @__PURE__ */ import_react9.default.createElement(CardHeader, null, /* @__PURE__ */ import_react9.default.createElement(CardTitle, null, texts == null ? void 0 : texts.title), /* @__PURE__ */ import_react9.default.createElement(CardDescription, null, texts == null ? void 0 : texts.subtitle)), /* @__PURE__ */ import_react9.default.createElement(CardContent, null, /* @__PURE__ */ import_react9.default.createElement(
2714
888
  "form",
2715
889
  {
2716
890
  noValidate: true,
2717
891
  className: "hawa-flex hawa-flex-row hawa-gap-2",
2718
892
  onSubmit: handleSubmit(onSubmit)
2719
893
  },
2720
- /* @__PURE__ */ import_react44.default.createElement(
894
+ /* @__PURE__ */ import_react9.default.createElement(
2721
895
  import_react_hook_form.Controller,
2722
896
  {
2723
897
  name: "email",
@@ -2730,27 +904,27 @@ var LeadGenerator = ({ texts, submitHandler }) => {
2730
904
  }
2731
905
  },
2732
906
  defaultValue: "",
2733
- render: ({ field }) => /* @__PURE__ */ import_react44.default.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
907
+ render: ({ field }) => /* @__PURE__ */ import_react9.default.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
2734
908
  }
2735
909
  ),
2736
- /* @__PURE__ */ import_react44.default.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
910
+ /* @__PURE__ */ import_react9.default.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
2737
911
  )));
2738
912
  };
2739
913
 
2740
914
  // components/blocks/misc/Announcement.tsx
2741
- var import_react45 = __toESM(require("react"));
915
+ var import_react10 = __toESM(require("react"));
2742
916
  var Announcement = ({
2743
917
  onActionClick,
2744
918
  ...props
2745
919
  }) => {
2746
- return /* @__PURE__ */ import_react45.default.createElement(Card, null, /* @__PURE__ */ import_react45.default.createElement(
920
+ return /* @__PURE__ */ import_react10.default.createElement(Card, null, /* @__PURE__ */ import_react10.default.createElement(
2747
921
  CardContent,
2748
922
  {
2749
923
  headless: true,
2750
924
  className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
2751
925
  },
2752
- /* @__PURE__ */ import_react45.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center " }, /* @__PURE__ */ import_react45.default.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ import_react45.default.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
2753
- /* @__PURE__ */ import_react45.default.createElement(
926
+ /* @__PURE__ */ import_react10.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center " }, /* @__PURE__ */ import_react10.default.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ import_react10.default.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
927
+ /* @__PURE__ */ import_react10.default.createElement(
2754
928
  Button,
2755
929
  {
2756
930
  onClick: () => onActionClick(),
@@ -2762,15 +936,15 @@ var Announcement = ({
2762
936
  };
2763
937
 
2764
938
  // components/blocks/misc/NotFound.tsx
2765
- var import_react46 = __toESM(require("react"));
939
+ var import_react11 = __toESM(require("react"));
2766
940
  var NotFound = ({ texts }) => {
2767
- return /* @__PURE__ */ import_react46.default.createElement(Card, null, /* @__PURE__ */ import_react46.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react46.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white" }, /* @__PURE__ */ import_react46.default.createElement("div", { className: "hawa-text-center hawa-text-6xl hawa-font-bold " }, "404"), /* @__PURE__ */ import_react46.default.createElement("div", { className: "hawa-m-2 hawa-text-center hawa-text-xl hawa-font-bold " }, (texts == null ? void 0 : texts.pageNotFound) || "Page Not Found"), /* @__PURE__ */ import_react46.default.createElement("div", { className: "hawa-mb-4 hawa-text-center" }, (texts == null ? void 0 : texts.ifLost) || /* @__PURE__ */ import_react46.default.createElement(import_react46.default.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ import_react46.default.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ import_react46.default.createElement(Button, { className: "hawa-w-full" }, (texts == null ? void 0 : texts.home) || "Home"))));
941
+ return /* @__PURE__ */ import_react11.default.createElement(Card, null, /* @__PURE__ */ import_react11.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white" }, /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-text-center hawa-text-6xl hawa-font-bold " }, "404"), /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-m-2 hawa-text-center hawa-text-xl hawa-font-bold " }, (texts == null ? void 0 : texts.pageNotFound) || "Page Not Found"), /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-mb-4 hawa-text-center" }, (texts == null ? void 0 : texts.ifLost) || /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ import_react11.default.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ import_react11.default.createElement(Button, { className: "hawa-w-full" }, (texts == null ? void 0 : texts.home) || "Home"))));
2768
942
  };
2769
943
 
2770
944
  // components/blocks/misc/NoPermission.tsx
2771
- var import_react47 = __toESM(require("react"));
945
+ var import_react12 = __toESM(require("react"));
2772
946
  var NoPermission = ({ texts }) => {
2773
- return /* @__PURE__ */ import_react47.default.createElement(Card, null, /* @__PURE__ */ import_react47.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ import_react47.default.createElement(
947
+ return /* @__PURE__ */ import_react12.default.createElement(Card, null, /* @__PURE__ */ import_react12.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ import_react12.default.createElement(
2774
948
  "svg",
2775
949
  {
2776
950
  stroke: "currentColor",
@@ -2780,15 +954,66 @@ var NoPermission = ({ texts }) => {
2780
954
  height: "0.35em",
2781
955
  width: "0.35em"
2782
956
  },
2783
- /* @__PURE__ */ import_react47.default.createElement("path", { d: "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z" })
2784
- )), /* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.title) || "You don't have permission"), /* @__PURE__ */ import_react47.default.createElement("div", null, (texts == null ? void 0 : texts.subtitle) || "If you think this is a problem please contact your administrator or our customer support"))));
957
+ /* @__PURE__ */ import_react12.default.createElement("path", { d: "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z" })
958
+ )), /* @__PURE__ */ import_react12.default.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.title) || "You don't have permission"), /* @__PURE__ */ import_react12.default.createElement("div", null, (texts == null ? void 0 : texts.subtitle) || "If you think this is a problem please contact your administrator or our customer support"))));
2785
959
  };
2786
960
 
2787
961
  // components/blocks/misc/ContactForm.tsx
2788
- var import_react48 = __toESM(require("react"));
962
+ var import_react13 = __toESM(require("react"));
2789
963
  var import_react_hook_form2 = require("react-hook-form");
2790
964
  var import_zod = require("@hookform/resolvers/zod");
2791
965
  var z = __toESM(require("zod"));
966
+
967
+ // components/elements/textarea/Textarea.tsx
968
+ var React18 = __toESM(require("react"));
969
+ var Textarea = React18.forwardRef(
970
+ ({
971
+ className,
972
+ labelProps,
973
+ showCount,
974
+ forceHideHelperText,
975
+ textareaProps,
976
+ countPosition = "bottom",
977
+ ...props
978
+ }, ref) => {
979
+ return /* @__PURE__ */ React18.createElement("div", { className: "hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React18.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ React18.createElement(
980
+ "textarea",
981
+ {
982
+ className: cn(
983
+ "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",
984
+ className
985
+ ),
986
+ ref,
987
+ ...textareaProps
988
+ }
989
+ ), /* @__PURE__ */ React18.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React18.createElement(
990
+ "p",
991
+ {
992
+ className: cn(
993
+ "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
994
+ props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
995
+ )
996
+ },
997
+ props.helperText
998
+ ), showCount && /* @__PURE__ */ React18.createElement(
999
+ "div",
1000
+ {
1001
+ className: cn(
1002
+ " hawa-text-start hawa-text-xs hawa-transition-all ",
1003
+ {
1004
+ "hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
1005
+ }
1006
+ )
1007
+ },
1008
+ (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
1009
+ "/",
1010
+ textareaProps == null ? void 0 : textareaProps.maxLength
1011
+ )));
1012
+ }
1013
+ );
1014
+ Textarea.displayName = "Textarea";
1015
+
1016
+ // components/blocks/misc/ContactForm.tsx
2792
1017
  var ContactForm = ({
2793
1018
  cardless,
2794
1019
  size = "default",
@@ -2828,7 +1053,7 @@ var ContactForm = ({
2828
1053
  sm: "hawa-max-w-sm",
2829
1054
  default: "hawa-w-full"
2830
1055
  };
2831
- return /* @__PURE__ */ import_react48.default.createElement(
1056
+ return /* @__PURE__ */ import_react13.default.createElement(
2832
1057
  Card,
2833
1058
  {
2834
1059
  className: cn(
@@ -2838,7 +1063,7 @@ var ContactForm = ({
2838
1063
  ),
2839
1064
  style: cardless ? { boxShadow: "none" } : void 0
2840
1065
  },
2841
- /* @__PURE__ */ import_react48.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react48.default.createElement(
1066
+ /* @__PURE__ */ import_react13.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react13.default.createElement(
2842
1067
  "form",
2843
1068
  {
2844
1069
  noValidate: true,
@@ -2847,7 +1072,7 @@ var ContactForm = ({
2847
1072
  id: formId,
2848
1073
  autoComplete: formAutoComplete
2849
1074
  },
2850
- /* @__PURE__ */ import_react48.default.createElement(
1075
+ /* @__PURE__ */ import_react13.default.createElement(
2851
1076
  "div",
2852
1077
  {
2853
1078
  className: cn(
@@ -2858,14 +1083,14 @@ var ContactForm = ({
2858
1083
  }
2859
1084
  )
2860
1085
  },
2861
- /* @__PURE__ */ import_react48.default.createElement(
1086
+ /* @__PURE__ */ import_react13.default.createElement(
2862
1087
  import_react_hook_form2.Controller,
2863
1088
  {
2864
1089
  control,
2865
1090
  name: "name",
2866
1091
  render: ({ field }) => {
2867
1092
  var _a2;
2868
- return /* @__PURE__ */ import_react48.default.createElement(
1093
+ return /* @__PURE__ */ import_react13.default.createElement(
2869
1094
  Input,
2870
1095
  {
2871
1096
  label: texts == null ? void 0 : texts.name.label,
@@ -2878,14 +1103,14 @@ var ContactForm = ({
2878
1103
  }
2879
1104
  }
2880
1105
  ),
2881
- /* @__PURE__ */ import_react48.default.createElement(
1106
+ /* @__PURE__ */ import_react13.default.createElement(
2882
1107
  import_react_hook_form2.Controller,
2883
1108
  {
2884
1109
  control,
2885
1110
  name: "email",
2886
1111
  render: ({ field }) => {
2887
1112
  var _a2;
2888
- return /* @__PURE__ */ import_react48.default.createElement(
1113
+ return /* @__PURE__ */ import_react13.default.createElement(
2889
1114
  Input,
2890
1115
  {
2891
1116
  label: texts == null ? void 0 : texts.email.label,
@@ -2899,14 +1124,14 @@ var ContactForm = ({
2899
1124
  }
2900
1125
  )
2901
1126
  ),
2902
- /* @__PURE__ */ import_react48.default.createElement(
1127
+ /* @__PURE__ */ import_react13.default.createElement(
2903
1128
  import_react_hook_form2.Controller,
2904
1129
  {
2905
1130
  control,
2906
1131
  name: "message",
2907
1132
  render: ({ field }) => {
2908
1133
  var _a2;
2909
- return /* @__PURE__ */ import_react48.default.createElement(
1134
+ return /* @__PURE__ */ import_react13.default.createElement(
2910
1135
  Textarea,
2911
1136
  {
2912
1137
  label: texts == null ? void 0 : texts.message.label,
@@ -2921,7 +1146,7 @@ var ContactForm = ({
2921
1146
  }
2922
1147
  }
2923
1148
  ),
2924
- /* @__PURE__ */ import_react48.default.createElement(Button, { type: "submit", className: "hawa-w-full" }, (texts == null ? void 0 : texts.submit) || "Submit")
1149
+ /* @__PURE__ */ import_react13.default.createElement(Button, { type: "submit", className: "hawa-w-full" }, (texts == null ? void 0 : texts.submit) || "Submit")
2925
1150
  ))
2926
1151
  );
2927
1152
  };