@sikka/hawa 0.24.4-next → 0.24.6-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/index.d.mts +1 -2
- package/dist/accordion/index.d.ts +1 -2
- package/dist/accordion/index.mjs +219 -7
- package/dist/alert/index.d.mts +1 -1
- package/dist/alert/index.d.ts +1 -1
- package/dist/appLayout/index.d.mts +126 -0
- package/dist/appLayout/index.d.ts +126 -0
- package/dist/appLayout/index.js +1325 -0
- package/dist/appLayout/index.mjs +1285 -0
- package/dist/appMenubar/index.d.mts +33 -0
- package/dist/appMenubar/index.d.ts +33 -0
- package/dist/appMenubar/index.js +281 -0
- package/dist/appMenubar/index.mjs +224 -0
- package/dist/appTabs/index.d.mts +18 -0
- package/dist/appTabs/index.d.ts +18 -0
- package/dist/appTabs/index.js +92 -0
- package/dist/appTabs/index.mjs +50 -0
- package/dist/appTopbar/index.d.mts +44 -0
- package/dist/appTopbar/index.d.ts +44 -0
- package/dist/appTopbar/index.js +483 -0
- package/dist/appTopbar/index.mjs +441 -0
- package/dist/avatar/index.d.mts +5 -4
- package/dist/avatar/index.d.ts +5 -4
- package/dist/backToTop/index.mjs +353 -3
- package/dist/badge/index.d.mts +2 -2
- package/dist/badge/index.d.ts +2 -2
- package/dist/blocks/index.js +4 -3
- package/dist/blocks/index.mjs +4 -3
- package/dist/checkbox/index.d.mts +1 -2
- package/dist/checkbox/index.d.ts +1 -2
- package/dist/chip/index.d.mts +36 -2
- package/dist/chip/index.d.ts +36 -2
- package/dist/chip/index.mjs +83 -3
- package/dist/chunk-62GI5F2P.mjs +442 -0
- package/dist/chunk-7NCNPRCL.mjs +120 -0
- package/dist/{chunk-TNAHW35O.mjs → chunk-C2UYTGUD.mjs} +8 -4
- package/dist/{chunk-26FHSPJI.mjs → chunk-DGWAHQRX.mjs} +1 -101
- package/dist/chunk-LRLLDOQZ.mjs +178 -0
- package/dist/chunk-ND4BWUKH.mjs +34 -0
- package/dist/codeBlock/index.mjs +684 -310
- package/dist/colorPicker/index.d.mts +2 -1
- package/dist/colorPicker/index.d.ts +2 -1
- package/dist/colorPicker/index.mjs +2 -167
- package/dist/combobox/index.d.mts +9 -1
- package/dist/combobox/index.d.ts +9 -1
- package/dist/combobox/index.mjs +61 -393
- package/dist/command/index.mjs +10 -425
- package/dist/commonTypes-3J1E3b61.d.mts +6 -0
- package/dist/commonTypes-3J1E3b61.d.ts +6 -0
- package/dist/commonTypes-GhKAraJw.d.mts +4 -0
- package/dist/commonTypes-GhKAraJw.d.ts +4 -0
- package/dist/commonTypes-LrR8QrYP.d.mts +5 -0
- package/dist/commonTypes-LrR8QrYP.d.ts +5 -0
- package/dist/commonTypes-WPhcN3Vr.d.mts +5 -0
- package/dist/commonTypes-WPhcN3Vr.d.ts +5 -0
- package/dist/commonTypes-ko_NGEoT.d.mts +3 -0
- package/dist/commonTypes-ko_NGEoT.d.ts +3 -0
- package/dist/copyrights/index.d.mts +17 -0
- package/dist/copyrights/index.d.ts +17 -0
- package/dist/copyrights/index.js +45 -0
- package/dist/copyrights/index.mjs +8 -0
- package/dist/count/index.d.mts +11 -0
- package/dist/count/index.d.ts +11 -0
- package/dist/count/index.js +45 -0
- package/dist/count/index.mjs +8 -0
- package/dist/dataTable/index.d.mts +1 -1
- package/dist/dataTable/index.d.ts +1 -1
- package/dist/destroyableCard/index.d.mts +1 -1
- package/dist/destroyableCard/index.d.ts +1 -1
- package/dist/dialog/index.d.mts +1 -1
- package/dist/dialog/index.d.ts +1 -1
- package/dist/docsLayout/index.d.mts +37 -0
- package/dist/docsLayout/index.d.ts +37 -0
- package/dist/docsLayout/index.js +926 -0
- package/dist/docsLayout/index.mjs +886 -0
- package/dist/docsSidebar/index.d.mts +11 -0
- package/dist/docsSidebar/index.d.ts +11 -0
- package/dist/docsSidebar/index.js +111 -0
- package/dist/docsSidebar/index.mjs +69 -0
- package/dist/index.css +9 -3
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +54 -44
- package/dist/index.mjs +54 -44
- package/dist/input/index.d.mts +2 -9
- package/dist/input/index.d.ts +2 -9
- package/dist/input/index.mjs +14 -98
- package/dist/interfaceSettings/index.d.mts +1 -1
- package/dist/interfaceSettings/index.d.ts +1 -1
- package/dist/interfaceSettings/index.mjs +24 -110
- package/dist/label/index.d.mts +1 -1
- package/dist/label/index.d.ts +1 -1
- package/dist/label/index.mjs +2 -87
- package/dist/layout/index.d.mts +1 -0
- package/dist/layout/index.d.ts +1 -0
- package/dist/layout/index.js +53 -44
- package/dist/layout/index.mjs +50 -41
- package/dist/navbar/index.d.mts +17 -0
- package/dist/navbar/index.d.ts +17 -0
- package/dist/navbar/index.js +166 -0
- package/dist/navbar/index.mjs +126 -0
- package/dist/pagination/index.d.mts +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/passwordInput/index.mjs +27 -137
- package/dist/phoneInput/index.mjs +19 -129
- package/dist/radio/index.d.mts +1 -4
- package/dist/radio/index.d.ts +1 -4
- package/dist/scrollArea/index.d.mts +1 -1
- package/dist/scrollArea/index.d.ts +1 -1
- package/dist/select/index.d.mts +1 -1
- package/dist/select/index.d.ts +1 -1
- package/dist/separator/index.d.mts +1 -1
- package/dist/separator/index.d.ts +1 -1
- package/dist/sidebar/index.d.mts +48 -0
- package/dist/sidebar/index.d.ts +48 -0
- package/dist/sidebar/index.js +341 -0
- package/dist/sidebar/index.mjs +298 -0
- package/dist/simpleTable/index.d.mts +4 -3
- package/dist/simpleTable/index.d.ts +4 -3
- package/dist/simpleTable/index.mjs +21 -45
- package/dist/skeleton/index.d.mts +3 -3
- package/dist/skeleton/index.d.ts +3 -3
- package/dist/skeleton/index.mjs +3 -29
- package/dist/sortButton/index.mjs +9 -260
- package/dist/splitButton/index.d.mts +4 -3
- package/dist/splitButton/index.d.ts +4 -3
- package/dist/splitButton/index.mjs +10 -259
- package/dist/stats/index.d.mts +19 -0
- package/dist/stats/index.d.ts +19 -0
- package/dist/stats/index.js +191 -0
- package/dist/stats/index.mjs +154 -0
- package/dist/stopPropagationWrapper/index.d.mts +2 -2
- package/dist/stopPropagationWrapper/index.d.ts +2 -2
- package/dist/switch/index.d.mts +2 -1
- package/dist/switch/index.d.ts +2 -1
- package/dist/tabs/index.d.mts +19 -1
- package/dist/tabs/index.d.ts +19 -1
- package/dist/tabs/index.mjs +94 -14
- package/dist/textarea/index.d.mts +8 -1
- package/dist/textarea/index.d.ts +8 -1
- package/dist/textarea/index.mjs +92 -8
- package/dist/toast/index.d.mts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/Label-fkQ4ebuH.d.mts +0 -12
- package/dist/Label-fkQ4ebuH.d.ts +0 -12
- package/dist/chunk-72HYR6WB.mjs +0 -88
- package/dist/chunk-JYSC6GKM.mjs +0 -229
- package/dist/commonTypes-3k5cNB1s.d.mts +0 -4
- package/dist/commonTypes-3k5cNB1s.d.ts +0 -4
- package/dist/commonTypes-N7XOVCit.d.mts +0 -5
- package/dist/commonTypes-N7XOVCit.d.ts +0 -5
- package/dist/index-DUZFcPRO.d.mts +0 -38
- package/dist/index-DUZFcPRO.d.ts +0 -38
package/dist/codeBlock/index.mjs
CHANGED
@@ -1,15 +1,11 @@
|
|
1
1
|
import {
|
2
|
-
|
3
|
-
|
4
|
-
import {
|
5
|
-
Button
|
6
|
-
} from "../chunk-26FHSPJI.mjs";
|
7
|
-
import {
|
2
|
+
Label,
|
3
|
+
Tooltip,
|
8
4
|
cn
|
9
|
-
} from "../chunk-
|
5
|
+
} from "../chunk-LRLLDOQZ.mjs";
|
10
6
|
|
11
7
|
// components/elements/codeBlock/CodeBlock.tsx
|
12
|
-
import
|
8
|
+
import React58, { useState as useState19 } from "react";
|
13
9
|
import { Highlight, themes } from "prism-react-renderer";
|
14
10
|
|
15
11
|
// components/elements/card/Card.tsx
|
@@ -93,55 +89,181 @@ CardFooter.displayName = "CardFooter";
|
|
93
89
|
CardTitle.displayName = "CardTitle";
|
94
90
|
Card.displayName = "Card";
|
95
91
|
|
96
|
-
// components/elements/
|
92
|
+
// components/elements/loading/Loading.tsx
|
97
93
|
import React2 from "react";
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
sideOffset,
|
104
|
-
className: cn(
|
105
|
-
"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",
|
106
|
-
className
|
107
|
-
),
|
108
|
-
...props
|
109
|
-
}
|
110
|
-
));
|
111
|
-
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
112
|
-
var TooltipArrow = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
|
113
|
-
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
114
|
-
var Tooltip = ({
|
115
|
-
side,
|
116
|
-
open,
|
117
|
-
content,
|
118
|
-
children,
|
119
|
-
defaultOpen,
|
120
|
-
onOpenChange,
|
121
|
-
triggerProps,
|
122
|
-
contentProps,
|
123
|
-
providerProps,
|
124
|
-
delayDuration = 300,
|
94
|
+
var Loading = ({
|
95
|
+
design = "spinner",
|
96
|
+
size = "sm",
|
97
|
+
themeMode = "light",
|
98
|
+
color,
|
125
99
|
...props
|
126
100
|
}) => {
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
/* @__PURE__ */ React2.createElement(
|
142
|
-
|
143
|
-
|
144
|
-
|
101
|
+
let sizeStyles2 = {
|
102
|
+
button: "hawa-h-4 hawa-w-4",
|
103
|
+
xs: "hawa-h-1 hawa-w-1",
|
104
|
+
sm: "hawa-h-6 hawa-w-6",
|
105
|
+
normal: "hawa-h-8 hawa-w-8",
|
106
|
+
lg: "hawa-h-14 hawa-w-14",
|
107
|
+
xl: "hawa-h-24 hawa-w-24"
|
108
|
+
};
|
109
|
+
let animationStyles = {
|
110
|
+
pulse: "hawa-animate-in hawa-fade-in hawa-duration-1000",
|
111
|
+
bounce: "hawa-animate-bounce"
|
112
|
+
};
|
113
|
+
switch (design.split("-")[0]) {
|
114
|
+
case "dots":
|
115
|
+
return /* @__PURE__ */ React2.createElement(
|
116
|
+
"div",
|
117
|
+
{
|
118
|
+
className: cn("hawa-flex hawa-flex-row hawa-gap-2", props.className)
|
119
|
+
},
|
120
|
+
/* @__PURE__ */ React2.createElement(
|
121
|
+
"div",
|
122
|
+
{
|
123
|
+
className: cn(
|
124
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
|
125
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles2[size],
|
126
|
+
animationStyles[design.split("-")[1]],
|
127
|
+
color ? color : "hawa-bg-primary"
|
128
|
+
)
|
129
|
+
}
|
130
|
+
),
|
131
|
+
/* @__PURE__ */ React2.createElement(
|
132
|
+
"div",
|
133
|
+
{
|
134
|
+
className: cn(
|
135
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
|
136
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles2[size],
|
137
|
+
animationStyles[design.split("-")[1]],
|
138
|
+
color ? color : "hawa-bg-primary"
|
139
|
+
)
|
140
|
+
}
|
141
|
+
),
|
142
|
+
/* @__PURE__ */ React2.createElement(
|
143
|
+
"div",
|
144
|
+
{
|
145
|
+
className: cn(
|
146
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
|
147
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles2[size],
|
148
|
+
animationStyles[design.split("-")[1]],
|
149
|
+
color ? color : "hawa-bg-primary"
|
150
|
+
)
|
151
|
+
}
|
152
|
+
)
|
153
|
+
);
|
154
|
+
case "square":
|
155
|
+
return /* @__PURE__ */ React2.createElement(
|
156
|
+
"svg",
|
157
|
+
{
|
158
|
+
className: cn("squircle-container", sizeStyles2[size]),
|
159
|
+
viewBox: "0 0 35 35",
|
160
|
+
height: "35",
|
161
|
+
width: "35"
|
162
|
+
},
|
163
|
+
/* @__PURE__ */ React2.createElement(
|
164
|
+
"rect",
|
165
|
+
{
|
166
|
+
className: "squircle-track",
|
167
|
+
x: "2.5",
|
168
|
+
y: "2.5",
|
169
|
+
fill: "none",
|
170
|
+
strokeWidth: "5px",
|
171
|
+
width: "32.5",
|
172
|
+
height: "32.5"
|
173
|
+
}
|
174
|
+
),
|
175
|
+
/* @__PURE__ */ React2.createElement(
|
176
|
+
"rect",
|
177
|
+
{
|
178
|
+
className: "square-car",
|
179
|
+
x: "2.5",
|
180
|
+
y: "2.5",
|
181
|
+
fill: "none",
|
182
|
+
strokeWidth: "5px",
|
183
|
+
width: "32.5",
|
184
|
+
height: "32.5",
|
185
|
+
pathLength: "100"
|
186
|
+
}
|
187
|
+
)
|
188
|
+
);
|
189
|
+
case "squircle":
|
190
|
+
return /* @__PURE__ */ React2.createElement(
|
191
|
+
"svg",
|
192
|
+
{
|
193
|
+
className: cn("squircle-container", sizeStyles2[size]),
|
194
|
+
x: "0px",
|
195
|
+
y: "0px",
|
196
|
+
viewBox: "0 0 37 37",
|
197
|
+
height: "37",
|
198
|
+
width: "37",
|
199
|
+
preserveAspectRatio: "xMidYMid meet"
|
200
|
+
},
|
201
|
+
/* @__PURE__ */ React2.createElement(
|
202
|
+
"path",
|
203
|
+
{
|
204
|
+
className: "squircle-track",
|
205
|
+
fill: "none",
|
206
|
+
strokeWidth: "5",
|
207
|
+
pathLength: "100",
|
208
|
+
d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
|
209
|
+
}
|
210
|
+
),
|
211
|
+
/* @__PURE__ */ React2.createElement(
|
212
|
+
"path",
|
213
|
+
{
|
214
|
+
className: "squircle-car",
|
215
|
+
fill: "none",
|
216
|
+
strokeWidth: "5",
|
217
|
+
pathLength: "100",
|
218
|
+
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"
|
219
|
+
}
|
220
|
+
)
|
221
|
+
);
|
222
|
+
case "progress":
|
223
|
+
return /* @__PURE__ */ React2.createElement("div", { className: "progress-loading" });
|
224
|
+
case "orbit":
|
225
|
+
return /* @__PURE__ */ React2.createElement("div", { className: "orbit-container" });
|
226
|
+
default:
|
227
|
+
return /* @__PURE__ */ React2.createElement(
|
228
|
+
"svg",
|
229
|
+
{
|
230
|
+
className: cn("circle-container", sizeStyles2[size]),
|
231
|
+
viewBox: "0 0 40 40",
|
232
|
+
height: "40",
|
233
|
+
width: "40"
|
234
|
+
},
|
235
|
+
/* @__PURE__ */ React2.createElement(
|
236
|
+
"circle",
|
237
|
+
{
|
238
|
+
className: cn("circle-track", {
|
239
|
+
"hawa-stroke-primary-foreground": themeMode === "dark",
|
240
|
+
"hawa-stroke-primary": themeMode === "light"
|
241
|
+
}),
|
242
|
+
cx: "20",
|
243
|
+
cy: "20",
|
244
|
+
r: "17.5",
|
245
|
+
pathLength: "100",
|
246
|
+
strokeWidth: "5px",
|
247
|
+
fill: "none"
|
248
|
+
}
|
249
|
+
),
|
250
|
+
/* @__PURE__ */ React2.createElement(
|
251
|
+
"circle",
|
252
|
+
{
|
253
|
+
className: cn("circle-car", {
|
254
|
+
"hawa-stroke-primary-foreground": themeMode === "dark",
|
255
|
+
"hawa-stroke-primary": themeMode === "light"
|
256
|
+
}),
|
257
|
+
cx: "20",
|
258
|
+
cy: "20",
|
259
|
+
r: "17.5",
|
260
|
+
pathLength: "100",
|
261
|
+
strokeWidth: "5px",
|
262
|
+
fill: "none"
|
263
|
+
}
|
264
|
+
)
|
265
|
+
);
|
266
|
+
}
|
145
267
|
};
|
146
268
|
|
147
269
|
// components/elements/skeleton/Skeleton.tsx
|
@@ -351,17 +473,233 @@ var DropdownMenuShortcut = ({
|
|
351
473
|
};
|
352
474
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
353
475
|
|
354
|
-
// components/elements/
|
476
|
+
// components/elements/accordion/Accordion.tsx
|
477
|
+
import * as React8 from "react";
|
478
|
+
import * as AccordionPrimitive3 from "@radix-ui/react-accordion";
|
479
|
+
|
480
|
+
// components/elements/chip/Chip.tsx
|
355
481
|
import React5 from "react";
|
482
|
+
var Chip = React5.forwardRef(
|
483
|
+
({
|
484
|
+
label,
|
485
|
+
size = "normal",
|
486
|
+
icon,
|
487
|
+
color,
|
488
|
+
radius = "inherit",
|
489
|
+
dotType,
|
490
|
+
...rest
|
491
|
+
}, ref) => {
|
492
|
+
let defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-px-2.5 hawa-py-1 hawa-font-bold ";
|
493
|
+
let radiusStyles = {
|
494
|
+
inherit: " hawa-rounded",
|
495
|
+
full: "hawa-rounded-full",
|
496
|
+
none: "hawa-rounded-none"
|
497
|
+
};
|
498
|
+
let sizeStyles2 = {
|
499
|
+
small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
|
500
|
+
normal: "hawa-h-fit hawa-text-xs",
|
501
|
+
large: "hawa-text-base"
|
502
|
+
};
|
503
|
+
let dotStyles = {
|
504
|
+
small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
|
505
|
+
normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
|
506
|
+
large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
|
507
|
+
};
|
508
|
+
let dotTypeStyles = {
|
509
|
+
available: "hawa-bg-green-500",
|
510
|
+
unavailable: "hawa-bg-red-500"
|
511
|
+
};
|
512
|
+
let colorStyles = {
|
513
|
+
green: "hawa-bg-green-100 hawa-text-green-500 dark:hawa-bg-green-400 dark:hawa-text-green-800",
|
514
|
+
blue: "hawa-bg-blue-100 hawa-text-blue-500 dark:hawa-bg-blue-400 dark:hawa-text-blue-100",
|
515
|
+
red: "hawa-bg-red-100 hawa-text-red-500 dark:hawa-bg-red-400 dark:hawa-text-red-100",
|
516
|
+
yellow: "hawa-bg-yellow-100 hawa-text-yellow-600 dark:hawa-bg-yellow-400 dark:hawa-text-yellow-800",
|
517
|
+
orange: "hawa-bg-orange-100 hawa-text-orange-500 dark:hawa-bg-orange-400 dark:hawa-text-orange-100",
|
518
|
+
purple: "hawa-bg-purple-100 hawa-text-purple-500 dark:hawa-bg-purple-400 dark:hawa-text-purple-100",
|
519
|
+
cyan: "hawa-bg-cyan-100 hawa-text-cyan-800 dark:hawa-bg-cyan-400 dark:hawa-text-cyan-800",
|
520
|
+
hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-500 hawa-via-red-500 hawa-to-yellow-500 ",
|
521
|
+
oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
|
522
|
+
};
|
523
|
+
if (label) {
|
524
|
+
return /* @__PURE__ */ React5.createElement(
|
525
|
+
"span",
|
526
|
+
{
|
527
|
+
...rest,
|
528
|
+
ref,
|
529
|
+
className: cn(
|
530
|
+
defaultStyles,
|
531
|
+
sizeStyles2[size],
|
532
|
+
radiusStyles[radius],
|
533
|
+
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
534
|
+
)
|
535
|
+
},
|
536
|
+
dotType && /* @__PURE__ */ React5.createElement(
|
537
|
+
"span",
|
538
|
+
{
|
539
|
+
className: cn(dotStyles[size], dotTypeStyles[dotType])
|
540
|
+
}
|
541
|
+
),
|
542
|
+
icon && icon,
|
543
|
+
label
|
544
|
+
);
|
545
|
+
} else {
|
546
|
+
return /* @__PURE__ */ React5.createElement(
|
547
|
+
"span",
|
548
|
+
{
|
549
|
+
...rest,
|
550
|
+
ref,
|
551
|
+
className: cn(
|
552
|
+
"hawa-h-2 hawa-w-2 hawa-rounded-full",
|
553
|
+
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
554
|
+
)
|
555
|
+
}
|
556
|
+
);
|
557
|
+
}
|
558
|
+
}
|
559
|
+
);
|
356
560
|
|
357
|
-
// components/elements/
|
561
|
+
// components/elements/accordion/AccordionContent.tsx
|
358
562
|
import * as React6 from "react";
|
563
|
+
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
564
|
+
var AccordionContent = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React6.createElement(
|
565
|
+
AccordionPrimitive.Content,
|
566
|
+
{
|
567
|
+
ref,
|
568
|
+
className: !props.unstyled ? cn(
|
569
|
+
"hawa-overflow-hidden hawa-text-sm hawa-transition-all data-[state=closed]:hawa-animate-accordion-up data-[state=open]:hawa-animate-accordion-down",
|
570
|
+
className
|
571
|
+
) : className,
|
572
|
+
...props
|
573
|
+
},
|
574
|
+
/* @__PURE__ */ React6.createElement("div", { className: "hawa-bg-background hawa-p-4" }, children)
|
575
|
+
));
|
576
|
+
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
577
|
+
|
578
|
+
// components/elements/accordion/AccordionTrigger.tsx
|
579
|
+
import * as React7 from "react";
|
580
|
+
import * as AccordionPrimitive2 from "@radix-ui/react-accordion";
|
581
|
+
var AccordionTrigger = React7.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React7.createElement(AccordionPrimitive2.Header, { className: "hawa-flex" }, /* @__PURE__ */ React7.createElement(
|
582
|
+
AccordionPrimitive2.Trigger,
|
583
|
+
{
|
584
|
+
ref,
|
585
|
+
className: !props.unstyled ? cn(
|
586
|
+
"hawa-flex hawa-flex-1 hawa-items-center hawa-justify-between hawa-bg-muted/50 hawa-p-4 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa-rotate-180",
|
587
|
+
props.disabled ? "hawa-bg-muted/30 hawa-text-muted-foreground/50" : "hover:hawa-bg-muted",
|
588
|
+
className
|
589
|
+
) : className,
|
590
|
+
...props
|
591
|
+
},
|
592
|
+
children,
|
593
|
+
!props.hideArrow && /* @__PURE__ */ React7.createElement(
|
594
|
+
"svg",
|
595
|
+
{
|
596
|
+
xmlns: "http://www.w3.org/2000/svg",
|
597
|
+
width: "24",
|
598
|
+
height: "24",
|
599
|
+
viewBox: "0 0 24 24",
|
600
|
+
fill: "none",
|
601
|
+
stroke: "currentColor",
|
602
|
+
strokeWidth: "2",
|
603
|
+
strokeLinecap: "round",
|
604
|
+
strokeLinejoin: "round",
|
605
|
+
className: "hawa-icon hawa-shrink-0 hawa-transition-transform hawa-duration-200"
|
606
|
+
},
|
607
|
+
/* @__PURE__ */ React7.createElement("path", { d: "m6 9 6 6 6-6" })
|
608
|
+
)
|
609
|
+
)));
|
610
|
+
AccordionTrigger.displayName = AccordionPrimitive2.Trigger.displayName;
|
611
|
+
|
612
|
+
// components/elements/accordion/Accordion.tsx
|
613
|
+
var Accordion = React8.forwardRef(
|
614
|
+
({
|
615
|
+
items,
|
616
|
+
design = "default",
|
617
|
+
itemClassNames,
|
618
|
+
triggerclassNames,
|
619
|
+
contentclassNames,
|
620
|
+
className,
|
621
|
+
...props
|
622
|
+
}, ref) => /* @__PURE__ */ React8.createElement(AccordionPrimitive3.Root, { type: props.type, collapsible: true }, /* @__PURE__ */ React8.createElement(
|
623
|
+
"div",
|
624
|
+
{
|
625
|
+
className: cn("hawa-flex hawa-flex-col", {
|
626
|
+
"hawa-gap-4": design === "separated",
|
627
|
+
"hawa-gap-0": design === "default"
|
628
|
+
})
|
629
|
+
},
|
630
|
+
items.map((item, index) => /* @__PURE__ */ React8.createElement(
|
631
|
+
AccordionPrimitive3.Item,
|
632
|
+
{
|
633
|
+
disabled: item.disabled || false,
|
634
|
+
className: cn(itemClassNames, "hawa-rounded"),
|
635
|
+
key: index,
|
636
|
+
value: `item-${index}`
|
637
|
+
},
|
638
|
+
/* @__PURE__ */ React8.createElement(
|
639
|
+
AccordionTrigger,
|
640
|
+
{
|
641
|
+
disabled: item.disabled || false,
|
642
|
+
className: cn(
|
643
|
+
"hawa-transition-all",
|
644
|
+
design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-b-none" : {
|
645
|
+
"hawa-rounded-t": index === 0,
|
646
|
+
"data-[state=closed]:hawa-rounded-b": index === items.length - 1
|
647
|
+
},
|
648
|
+
triggerclassNames
|
649
|
+
)
|
650
|
+
},
|
651
|
+
/* @__PURE__ */ React8.createElement(
|
652
|
+
"span",
|
653
|
+
{
|
654
|
+
className: cn(
|
655
|
+
"hawa-flex hawa-flex-row",
|
656
|
+
item.chip && "hawa-gap-2"
|
657
|
+
)
|
658
|
+
},
|
659
|
+
item.trigger,
|
660
|
+
" ",
|
661
|
+
item.chip && /* @__PURE__ */ React8.createElement(Chip, { ...item.chip })
|
662
|
+
)
|
663
|
+
),
|
664
|
+
/* @__PURE__ */ React8.createElement(
|
665
|
+
AccordionContent,
|
666
|
+
{
|
667
|
+
"aria-disabled": item.disabled || false,
|
668
|
+
className: cn(
|
669
|
+
"hawa-border hawa-transition-all",
|
670
|
+
design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-t-none" : {
|
671
|
+
"data-[state=open]:hawa-rounded-b": index === items.length - 1
|
672
|
+
},
|
673
|
+
contentclassNames
|
674
|
+
)
|
675
|
+
},
|
676
|
+
item.content
|
677
|
+
)
|
678
|
+
))
|
679
|
+
))
|
680
|
+
);
|
681
|
+
Accordion.displayName = "Accordion";
|
682
|
+
|
683
|
+
// components/elements/accordion/AccordionItem.tsx
|
684
|
+
import * as React9 from "react";
|
685
|
+
import * as AccordionPrimitive4 from "@radix-ui/react-accordion";
|
686
|
+
var AccordionItem = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(AccordionPrimitive4.Item, { ref, className: cn(className), ...props }));
|
687
|
+
AccordionItem.displayName = "AccordionItem";
|
688
|
+
|
689
|
+
// components/elements/accordion/AccordionRoot.tsx
|
690
|
+
import * as AccordionPrimitive5 from "@radix-ui/react-accordion";
|
691
|
+
|
692
|
+
// components/elements/logos/Logos.tsx
|
693
|
+
import React10 from "react";
|
694
|
+
|
695
|
+
// components/elements/navigationMenu/NavigationMenu.tsx
|
696
|
+
import * as React11 from "react";
|
359
697
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
360
698
|
import { cva } from "class-variance-authority";
|
361
699
|
var navigationMenuTriggerStyle = cva(
|
362
700
|
"hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 "
|
363
701
|
);
|
364
|
-
var NavigationMenuRoot =
|
702
|
+
var NavigationMenuRoot = React11.forwardRef(({ className, children, viewportClassNames, ...props }, ref) => /* @__PURE__ */ React11.createElement(
|
365
703
|
NavigationMenuPrimitive.Root,
|
366
704
|
{
|
367
705
|
ref,
|
@@ -373,9 +711,9 @@ var NavigationMenuRoot = React6.forwardRef(({ className, children, viewportClass
|
|
373
711
|
...props
|
374
712
|
},
|
375
713
|
children,
|
376
|
-
/* @__PURE__ */
|
714
|
+
/* @__PURE__ */ React11.createElement(NavigationMenuViewport, { className: viewportClassNames })
|
377
715
|
));
|
378
|
-
var NavigationMenuList =
|
716
|
+
var NavigationMenuList = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
|
379
717
|
NavigationMenuPrimitive.List,
|
380
718
|
{
|
381
719
|
ref,
|
@@ -386,7 +724,7 @@ var NavigationMenuList = React6.forwardRef(({ className, ...props }, ref) => /*
|
|
386
724
|
...props
|
387
725
|
}
|
388
726
|
));
|
389
|
-
var NavigationMenuTrigger =
|
727
|
+
var NavigationMenuTrigger = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React11.createElement(
|
390
728
|
NavigationMenuPrimitive.Trigger,
|
391
729
|
{
|
392
730
|
ref,
|
@@ -394,7 +732,7 @@ var NavigationMenuTrigger = React6.forwardRef(({ className, children, ...props }
|
|
394
732
|
...props
|
395
733
|
},
|
396
734
|
children,
|
397
|
-
/* @__PURE__ */
|
735
|
+
/* @__PURE__ */ React11.createElement(
|
398
736
|
"svg",
|
399
737
|
{
|
400
738
|
"aria-label": "Chevron Icon",
|
@@ -410,10 +748,10 @@ var NavigationMenuTrigger = React6.forwardRef(({ className, children, ...props }
|
|
410
748
|
"aria-hidden": "true",
|
411
749
|
className: "hawa-icon hawa-relative hawa-top-[1px] hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
412
750
|
},
|
413
|
-
/* @__PURE__ */
|
751
|
+
/* @__PURE__ */ React11.createElement("path", { d: "m6 9 6 6 6-6" })
|
414
752
|
)
|
415
753
|
));
|
416
|
-
var NavigationMenuContent =
|
754
|
+
var NavigationMenuContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
|
417
755
|
NavigationMenuPrimitive.Content,
|
418
756
|
{
|
419
757
|
ref,
|
@@ -427,14 +765,14 @@ var NavigationMenuContent = React6.forwardRef(({ className, ...props }, ref) =>
|
|
427
765
|
...props
|
428
766
|
}
|
429
767
|
));
|
430
|
-
var NavigationMenuViewport =
|
768
|
+
var NavigationMenuViewport = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
|
431
769
|
"div",
|
432
770
|
{
|
433
771
|
className: cn(
|
434
772
|
"hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center"
|
435
773
|
)
|
436
774
|
},
|
437
|
-
/* @__PURE__ */
|
775
|
+
/* @__PURE__ */ React11.createElement(
|
438
776
|
NavigationMenuPrimitive.Viewport,
|
439
777
|
{
|
440
778
|
className: cn(
|
@@ -451,7 +789,7 @@ var NavigationMenuViewport = React6.forwardRef(({ className, ...props }, ref) =>
|
|
451
789
|
}
|
452
790
|
)
|
453
791
|
));
|
454
|
-
var NavigationMenuIndicator =
|
792
|
+
var NavigationMenuIndicator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
|
455
793
|
NavigationMenuPrimitive.Indicator,
|
456
794
|
{
|
457
795
|
ref,
|
@@ -461,7 +799,7 @@ var NavigationMenuIndicator = React6.forwardRef(({ className, ...props }, ref) =
|
|
461
799
|
),
|
462
800
|
...props
|
463
801
|
},
|
464
|
-
/* @__PURE__ */
|
802
|
+
/* @__PURE__ */ React11.createElement("div", { className: "hawa-relative hawa-top-[60%] hawa-h-2 hawa-w-2 hawa-rotate-45 hawa-rounded-tl-sm hawa-bg-border hawa-shadow-md" })
|
465
803
|
));
|
466
804
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
467
805
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
@@ -471,11 +809,11 @@ NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayN
|
|
471
809
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
472
810
|
|
473
811
|
// components/elements/sheet/Sheet.tsx
|
474
|
-
import * as
|
812
|
+
import * as React12 from "react";
|
475
813
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
476
814
|
import { cva as cva2 } from "class-variance-authority";
|
477
815
|
var SheetPortal = SheetPrimitive.Portal;
|
478
|
-
var SheetOverlay =
|
816
|
+
var SheetOverlay = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
479
817
|
SheetPrimitive.Overlay,
|
480
818
|
{
|
481
819
|
className: cn(
|
@@ -502,8 +840,8 @@ var sheetVariants = cva2(
|
|
502
840
|
}
|
503
841
|
}
|
504
842
|
);
|
505
|
-
var SheetContent =
|
506
|
-
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */
|
843
|
+
var SheetContent = React12.forwardRef(
|
844
|
+
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React12.createElement(SheetPortal, null, /* @__PURE__ */ React12.createElement(SheetOverlay, null), /* @__PURE__ */ React12.createElement(
|
507
845
|
SheetPrimitive.Content,
|
508
846
|
{
|
509
847
|
ref,
|
@@ -516,7 +854,7 @@ var SheetContent = React7.forwardRef(
|
|
516
854
|
...props
|
517
855
|
},
|
518
856
|
children,
|
519
|
-
!hideCloseButton && /* @__PURE__ */
|
857
|
+
!hideCloseButton && /* @__PURE__ */ React12.createElement(
|
520
858
|
SheetPrimitive.Close,
|
521
859
|
{
|
522
860
|
className: cn(
|
@@ -528,7 +866,7 @@ var SheetContent = React7.forwardRef(
|
|
528
866
|
}
|
529
867
|
)
|
530
868
|
},
|
531
|
-
/* @__PURE__ */
|
869
|
+
/* @__PURE__ */ React12.createElement(
|
532
870
|
"svg",
|
533
871
|
{
|
534
872
|
"aria-label": "Close Icon",
|
@@ -537,7 +875,7 @@ var SheetContent = React7.forwardRef(
|
|
537
875
|
fill: "currentColor",
|
538
876
|
viewBox: "0 0 20 20"
|
539
877
|
},
|
540
|
-
/* @__PURE__ */
|
878
|
+
/* @__PURE__ */ React12.createElement(
|
541
879
|
"path",
|
542
880
|
{
|
543
881
|
fillRule: "evenodd",
|
@@ -546,14 +884,14 @@ var SheetContent = React7.forwardRef(
|
|
546
884
|
}
|
547
885
|
)
|
548
886
|
),
|
549
|
-
/* @__PURE__ */
|
887
|
+
/* @__PURE__ */ React12.createElement("span", { className: "hawa-sr-only" }, "Close")
|
550
888
|
)
|
551
889
|
))
|
552
890
|
);
|
553
891
|
var SheetHeader = ({
|
554
892
|
className,
|
555
893
|
...props
|
556
|
-
}) => /* @__PURE__ */
|
894
|
+
}) => /* @__PURE__ */ React12.createElement(
|
557
895
|
"div",
|
558
896
|
{
|
559
897
|
className: cn(
|
@@ -566,7 +904,7 @@ var SheetHeader = ({
|
|
566
904
|
var SheetFooter = ({
|
567
905
|
className,
|
568
906
|
...props
|
569
|
-
}) => /* @__PURE__ */
|
907
|
+
}) => /* @__PURE__ */ React12.createElement(
|
570
908
|
"div",
|
571
909
|
{
|
572
910
|
className: cn(
|
@@ -576,7 +914,7 @@ var SheetFooter = ({
|
|
576
914
|
...props
|
577
915
|
}
|
578
916
|
);
|
579
|
-
var SheetTitle =
|
917
|
+
var SheetTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
580
918
|
SheetPrimitive.Title,
|
581
919
|
{
|
582
920
|
ref,
|
@@ -587,7 +925,7 @@ var SheetTitle = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
587
925
|
...props
|
588
926
|
}
|
589
927
|
));
|
590
|
-
var SheetDescription =
|
928
|
+
var SheetDescription = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
591
929
|
SheetPrimitive.Description,
|
592
930
|
{
|
593
931
|
ref,
|
@@ -603,10 +941,10 @@ SheetFooter.displayName = "SheetFooter";
|
|
603
941
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
604
942
|
|
605
943
|
// components/elements/dialog/Dialog.tsx
|
606
|
-
import * as
|
944
|
+
import * as React13 from "react";
|
607
945
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
608
|
-
var DialogPortal = ({ ...props }) => /* @__PURE__ */
|
609
|
-
var DialogOverlay =
|
946
|
+
var DialogPortal = ({ ...props }) => /* @__PURE__ */ React13.createElement(DialogPrimitive.Portal, { ...props });
|
947
|
+
var DialogOverlay = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
610
948
|
DialogPrimitive.Overlay,
|
611
949
|
{
|
612
950
|
ref,
|
@@ -617,7 +955,7 @@ var DialogOverlay = React8.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
617
955
|
...props
|
618
956
|
}
|
619
957
|
));
|
620
|
-
var DialogContent =
|
958
|
+
var DialogContent = React13.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React13.createElement(DialogPortal, null, /* @__PURE__ */ React13.createElement(DialogOverlay, null), /* @__PURE__ */ React13.createElement(
|
621
959
|
DialogPrimitive.Content,
|
622
960
|
{
|
623
961
|
onPointerDownOutside: (e) => {
|
@@ -633,7 +971,7 @@ var DialogContent = React8.forwardRef(({ className, children, persist, hideClose
|
|
633
971
|
...props
|
634
972
|
},
|
635
973
|
children,
|
636
|
-
!hideCloseButton && /* @__PURE__ */
|
974
|
+
!hideCloseButton && /* @__PURE__ */ React13.createElement(
|
637
975
|
DialogPrimitive.Close,
|
638
976
|
{
|
639
977
|
className: cn(
|
@@ -641,7 +979,7 @@ var DialogContent = React8.forwardRef(({ className, children, persist, hideClose
|
|
641
979
|
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
642
980
|
)
|
643
981
|
},
|
644
|
-
/* @__PURE__ */
|
982
|
+
/* @__PURE__ */ React13.createElement(
|
645
983
|
"svg",
|
646
984
|
{
|
647
985
|
"aria-label": "Close Icon",
|
@@ -650,7 +988,7 @@ var DialogContent = React8.forwardRef(({ className, children, persist, hideClose
|
|
650
988
|
fill: "currentColor",
|
651
989
|
viewBox: "0 0 20 20"
|
652
990
|
},
|
653
|
-
/* @__PURE__ */
|
991
|
+
/* @__PURE__ */ React13.createElement(
|
654
992
|
"path",
|
655
993
|
{
|
656
994
|
fillRule: "evenodd",
|
@@ -659,10 +997,10 @@ var DialogContent = React8.forwardRef(({ className, children, persist, hideClose
|
|
659
997
|
}
|
660
998
|
)
|
661
999
|
),
|
662
|
-
/* @__PURE__ */
|
1000
|
+
/* @__PURE__ */ React13.createElement("span", { className: "hawa-sr-only" }, "Close")
|
663
1001
|
)
|
664
1002
|
)));
|
665
|
-
var DialogCarouselContent =
|
1003
|
+
var DialogCarouselContent = React13.forwardRef(
|
666
1004
|
({
|
667
1005
|
className,
|
668
1006
|
children,
|
@@ -671,7 +1009,7 @@ var DialogCarouselContent = React8.forwardRef(
|
|
671
1009
|
hideCloseButton,
|
672
1010
|
hidePrevButton,
|
673
1011
|
...props
|
674
|
-
}, ref) => /* @__PURE__ */
|
1012
|
+
}, ref) => /* @__PURE__ */ React13.createElement(DialogPortal, null, /* @__PURE__ */ React13.createElement(DialogOverlay, null), /* @__PURE__ */ React13.createElement(
|
675
1013
|
DialogPrimitive.Content,
|
676
1014
|
{
|
677
1015
|
onPointerDownOutside: (e) => {
|
@@ -687,7 +1025,7 @@ var DialogCarouselContent = React8.forwardRef(
|
|
687
1025
|
...props
|
688
1026
|
},
|
689
1027
|
children,
|
690
|
-
/* @__PURE__ */
|
1028
|
+
/* @__PURE__ */ React13.createElement(
|
691
1029
|
"div",
|
692
1030
|
{
|
693
1031
|
className: cn(
|
@@ -695,7 +1033,7 @@ var DialogCarouselContent = React8.forwardRef(
|
|
695
1033
|
onPrev ? "hawa-justify-between" : "hawa-justify-end"
|
696
1034
|
)
|
697
1035
|
},
|
698
|
-
hidePrevButton ? /* @__PURE__ */
|
1036
|
+
hidePrevButton ? /* @__PURE__ */ React13.createElement("div", null) : /* @__PURE__ */ React13.createElement(
|
699
1037
|
"div",
|
700
1038
|
{
|
701
1039
|
onClick: onPrev,
|
@@ -704,7 +1042,7 @@ var DialogCarouselContent = React8.forwardRef(
|
|
704
1042
|
props.dir === "rtl" && "hawa-rotate-180"
|
705
1043
|
)
|
706
1044
|
},
|
707
|
-
/* @__PURE__ */
|
1045
|
+
/* @__PURE__ */ React13.createElement(
|
708
1046
|
"svg",
|
709
1047
|
{
|
710
1048
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -718,10 +1056,10 @@ var DialogCarouselContent = React8.forwardRef(
|
|
718
1056
|
strokeLinecap: "round",
|
719
1057
|
strokeLinejoin: "round"
|
720
1058
|
},
|
721
|
-
/* @__PURE__ */
|
1059
|
+
/* @__PURE__ */ React13.createElement("path", { d: "m15 18-6-6 6-6" })
|
722
1060
|
)
|
723
1061
|
),
|
724
|
-
!hideCloseButton && /* @__PURE__ */
|
1062
|
+
!hideCloseButton && /* @__PURE__ */ React13.createElement(
|
725
1063
|
DialogPrimitive.Close,
|
726
1064
|
{
|
727
1065
|
className: cn(
|
@@ -729,7 +1067,7 @@ var DialogCarouselContent = React8.forwardRef(
|
|
729
1067
|
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
730
1068
|
)
|
731
1069
|
},
|
732
|
-
/* @__PURE__ */
|
1070
|
+
/* @__PURE__ */ React13.createElement(
|
733
1071
|
"svg",
|
734
1072
|
{
|
735
1073
|
"aria-label": "Close Icon",
|
@@ -738,7 +1076,7 @@ var DialogCarouselContent = React8.forwardRef(
|
|
738
1076
|
fill: "currentColor",
|
739
1077
|
viewBox: "0 0 20 20"
|
740
1078
|
},
|
741
|
-
/* @__PURE__ */
|
1079
|
+
/* @__PURE__ */ React13.createElement(
|
742
1080
|
"path",
|
743
1081
|
{
|
744
1082
|
fillRule: "evenodd",
|
@@ -747,7 +1085,7 @@ var DialogCarouselContent = React8.forwardRef(
|
|
747
1085
|
}
|
748
1086
|
)
|
749
1087
|
),
|
750
|
-
/* @__PURE__ */
|
1088
|
+
/* @__PURE__ */ React13.createElement("span", { className: "hawa-sr-only" }, "Close")
|
751
1089
|
)
|
752
1090
|
)
|
753
1091
|
))
|
@@ -755,7 +1093,7 @@ var DialogCarouselContent = React8.forwardRef(
|
|
755
1093
|
var DialogHeader = ({
|
756
1094
|
className,
|
757
1095
|
...props
|
758
|
-
}) => /* @__PURE__ */
|
1096
|
+
}) => /* @__PURE__ */ React13.createElement(
|
759
1097
|
"div",
|
760
1098
|
{
|
761
1099
|
className: cn(
|
@@ -765,7 +1103,7 @@ var DialogHeader = ({
|
|
765
1103
|
...props
|
766
1104
|
}
|
767
1105
|
);
|
768
|
-
var DialogTitle =
|
1106
|
+
var DialogTitle = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
769
1107
|
DialogPrimitive.Title,
|
770
1108
|
{
|
771
1109
|
ref,
|
@@ -776,7 +1114,7 @@ var DialogTitle = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
776
1114
|
...props
|
777
1115
|
}
|
778
1116
|
));
|
779
|
-
var DialogDescription =
|
1117
|
+
var DialogDescription = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
780
1118
|
DialogPrimitive.Description,
|
781
1119
|
{
|
782
1120
|
ref,
|
@@ -790,7 +1128,7 @@ var DialogDescription = React8.forwardRef(({ className, ...props }, ref) => /* @
|
|
790
1128
|
var DialogFooter = ({
|
791
1129
|
className,
|
792
1130
|
...props
|
793
|
-
}) => /* @__PURE__ */
|
1131
|
+
}) => /* @__PURE__ */ React13.createElement(
|
794
1132
|
"div",
|
795
1133
|
{
|
796
1134
|
className: cn(
|
@@ -806,12 +1144,12 @@ var DialogCarousel = ({
|
|
806
1144
|
children,
|
807
1145
|
direction
|
808
1146
|
}) => {
|
809
|
-
|
1147
|
+
React13.useEffect(() => {
|
810
1148
|
if (stepsApi) {
|
811
1149
|
stepsApi.reInit();
|
812
1150
|
}
|
813
1151
|
}, [stepsApi, children]);
|
814
|
-
return /* @__PURE__ */
|
1152
|
+
return /* @__PURE__ */ React13.createElement("div", { className: "hawa-overflow-hidden" }, /* @__PURE__ */ React13.createElement("div", { ref: stepsRef, dir: direction }, /* @__PURE__ */ React13.createElement(
|
815
1153
|
"div",
|
816
1154
|
{
|
817
1155
|
className: "hawa-flex",
|
@@ -819,7 +1157,7 @@ var DialogCarousel = ({
|
|
819
1157
|
transition: "height 0.2s"
|
820
1158
|
}
|
821
1159
|
},
|
822
|
-
|
1160
|
+
React13.Children.map(children, (child, index) => /* @__PURE__ */ React13.createElement(
|
823
1161
|
"div",
|
824
1162
|
{
|
825
1163
|
className: cn(
|
@@ -836,14 +1174,14 @@ var DialogSteps = ({
|
|
836
1174
|
visibleStepRef,
|
837
1175
|
children
|
838
1176
|
}) => {
|
839
|
-
const [dialogHeight, setDialogHeight] =
|
840
|
-
|
1177
|
+
const [dialogHeight, setDialogHeight] = React13.useState(null);
|
1178
|
+
React13.useEffect(() => {
|
841
1179
|
if (visibleStepRef.current) {
|
842
1180
|
setDialogHeight(visibleStepRef.current.offsetHeight);
|
843
1181
|
console.log("height is ", visibleStepRef.current.offsetHeight);
|
844
1182
|
}
|
845
1183
|
}, [currentStep, visibleStepRef]);
|
846
|
-
return /* @__PURE__ */
|
1184
|
+
return /* @__PURE__ */ React13.createElement(
|
847
1185
|
"div",
|
848
1186
|
{
|
849
1187
|
className: "hawa-relative hawa-overflow-clip",
|
@@ -852,7 +1190,7 @@ var DialogSteps = ({
|
|
852
1190
|
transition: "height 0.2s"
|
853
1191
|
}
|
854
1192
|
},
|
855
|
-
|
1193
|
+
React13.Children.map(children, (child, index) => /* @__PURE__ */ React13.createElement(
|
856
1194
|
"div",
|
857
1195
|
{
|
858
1196
|
ref: currentStep === `step-${index + 1}` ? visibleStepRef : null,
|
@@ -870,7 +1208,7 @@ var DialogStep = ({
|
|
870
1208
|
className,
|
871
1209
|
stepRef
|
872
1210
|
}) => {
|
873
|
-
return /* @__PURE__ */
|
1211
|
+
return /* @__PURE__ */ React13.createElement(
|
874
1212
|
"div",
|
875
1213
|
{
|
876
1214
|
id,
|
@@ -881,7 +1219,7 @@ var DialogStep = ({
|
|
881
1219
|
);
|
882
1220
|
};
|
883
1221
|
var DialogBody = ({ children, className }) => {
|
884
|
-
return /* @__PURE__ */
|
1222
|
+
return /* @__PURE__ */ React13.createElement("div", { className: cn("hawa-py-6", className) }, children);
|
885
1223
|
};
|
886
1224
|
DialogBody.displayName = "DialogBody";
|
887
1225
|
DialogStep.displayName = "DialogStep";
|
@@ -897,16 +1235,89 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
897
1235
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
898
1236
|
|
899
1237
|
// components/elements/alert/Alert.tsx
|
900
|
-
import
|
1238
|
+
import React15, { useRef, useState as useState2, useEffect as useEffect2 } from "react";
|
1239
|
+
|
1240
|
+
// components/elements/button/Button.tsx
|
1241
|
+
import * as React14 from "react";
|
1242
|
+
import { cva as cva3 } from "class-variance-authority";
|
1243
|
+
var buttonVariants = cva3(
|
1244
|
+
"hawa-inline-flex hawa-items-center hawa-select-none hawa-rounded-md hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
|
1245
|
+
{
|
1246
|
+
variants: {
|
1247
|
+
variant: {
|
1248
|
+
default: "hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary/90",
|
1249
|
+
light: "hawa-bg-primary/20 hawa-text-primary hover:hawa-bg-primary/40",
|
1250
|
+
destructive: "hawa-bg-destructive hawa-text-destructive-foreground hover:hawa-bg-destructive/90",
|
1251
|
+
outline: "hawa-border hawa-border-input hawa-bg-transparent hover:hawa-bg-accent hover:hawa-text-accent-foreground",
|
1252
|
+
secondary: "hawa-bg-secondary hawa-text-secondary-foreground hover:hawa-bg-secondary/80",
|
1253
|
+
ghost: "hover:hawa-bg-accent hover:hawa-text-accent-foreground",
|
1254
|
+
link: "hawa-text-primary hawa-underline-offset-4 hover:hawa-underline",
|
1255
|
+
combobox: "hawa-bg-background hawa-border",
|
1256
|
+
neoBrutalism: "neo-brutalism"
|
1257
|
+
// "hawa-cursor-pointer hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active shadow-color-primary active:shadow-color-primary-active",
|
1258
|
+
},
|
1259
|
+
size: {
|
1260
|
+
default: "hawa-h-10 hawa-px-4 hawa-py-2",
|
1261
|
+
heightless: "hawa-px-4 hawa-py-4",
|
1262
|
+
xs: "hawa-h-fit hawa-min-h-[25px] hawa-py-1 hawa-text-[10px] hawa-px-2 ",
|
1263
|
+
sm: "hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3",
|
1264
|
+
lg: "hawa-h-11 hawa-rounded-md hawa-px-8",
|
1265
|
+
xl: "hawa-h-14 hawa-rounded-md hawa-px-10",
|
1266
|
+
icon: "hawa-h-10 hawa-w-10",
|
1267
|
+
smallIcon: "hawa-h-7 hawa-w-7"
|
1268
|
+
}
|
1269
|
+
},
|
1270
|
+
defaultVariants: {
|
1271
|
+
variant: "default",
|
1272
|
+
size: "default"
|
1273
|
+
}
|
1274
|
+
}
|
1275
|
+
);
|
1276
|
+
var Button = React14.forwardRef(
|
1277
|
+
({
|
1278
|
+
className,
|
1279
|
+
variant,
|
1280
|
+
size,
|
1281
|
+
asChild = false,
|
1282
|
+
centered = true,
|
1283
|
+
isLoading,
|
1284
|
+
children,
|
1285
|
+
...props
|
1286
|
+
}, ref) => {
|
1287
|
+
const Comp = "button";
|
1288
|
+
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
1289
|
+
return /* @__PURE__ */ React14.createElement(
|
1290
|
+
Comp,
|
1291
|
+
{
|
1292
|
+
className: cn(
|
1293
|
+
buttonVariants({ variant, size, className }),
|
1294
|
+
centered && "hawa-justify-center"
|
1295
|
+
),
|
1296
|
+
ref,
|
1297
|
+
...props
|
1298
|
+
},
|
1299
|
+
isLoading ? /* @__PURE__ */ React14.createElement(
|
1300
|
+
Loading,
|
1301
|
+
{
|
1302
|
+
design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
|
1303
|
+
themeMode: variant === "outline" ? "light" : "dark",
|
1304
|
+
color: loadingColor,
|
1305
|
+
size: size === "sm" || size === "xs" ? "xs" : "button"
|
1306
|
+
}
|
1307
|
+
) : children
|
1308
|
+
);
|
1309
|
+
}
|
1310
|
+
);
|
1311
|
+
Button.displayName = "Button";
|
901
1312
|
|
902
1313
|
// components/elements/avatar/Avatar.tsx
|
903
|
-
import
|
1314
|
+
import React17 from "react";
|
904
1315
|
|
905
1316
|
// components/elements/fileUploader/FileUploader.tsx
|
906
|
-
import
|
1317
|
+
import React16, { useRef as useRef2 } from "react";
|
907
1318
|
|
908
1319
|
// components/elements/dataTable/DataTable.tsx
|
909
|
-
import * as
|
1320
|
+
import * as React20 from "react";
|
910
1321
|
import {
|
911
1322
|
flexRender,
|
912
1323
|
getCoreRowModel,
|
@@ -918,42 +1329,8 @@ import {
|
|
918
1329
|
} from "@tanstack/react-table";
|
919
1330
|
|
920
1331
|
// components/elements/input/Input.tsx
|
921
|
-
import
|
922
|
-
|
923
|
-
// components/elements/label/Label.tsx
|
924
|
-
import * as React12 from "react";
|
925
|
-
var Label2 = React12.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React12.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React12.createElement(
|
926
|
-
"label",
|
927
|
-
{
|
928
|
-
ref,
|
929
|
-
className: cn(
|
930
|
-
"hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70",
|
931
|
-
className
|
932
|
-
),
|
933
|
-
...props
|
934
|
-
},
|
935
|
-
children,
|
936
|
-
required && /* @__PURE__ */ React12.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
|
937
|
-
), hint && /* @__PURE__ */ React12.createElement(Tooltip, { content: hint, side: hintSide }, /* @__PURE__ */ React12.createElement(
|
938
|
-
"svg",
|
939
|
-
{
|
940
|
-
xmlns: "http://www.w3.org/2000/svg",
|
941
|
-
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
942
|
-
viewBox: "0 0 24 24",
|
943
|
-
fill: "none",
|
944
|
-
stroke: "currentColor",
|
945
|
-
strokeWidth: "2",
|
946
|
-
strokeLinecap: "round",
|
947
|
-
strokeLinejoin: "round"
|
948
|
-
},
|
949
|
-
/* @__PURE__ */ React12.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
950
|
-
/* @__PURE__ */ React12.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
951
|
-
/* @__PURE__ */ React12.createElement("path", { d: "M12 17h.01" })
|
952
|
-
))));
|
953
|
-
Label2.displayName = "Label";
|
954
|
-
|
955
|
-
// components/elements/input/Input.tsx
|
956
|
-
var Input = forwardRef7(
|
1332
|
+
import React18, { forwardRef as forwardRef11 } from "react";
|
1333
|
+
var Input = forwardRef11(
|
957
1334
|
({
|
958
1335
|
margin = "none",
|
959
1336
|
width = "full",
|
@@ -980,7 +1357,7 @@ var Input = forwardRef7(
|
|
980
1357
|
};
|
981
1358
|
let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
|
982
1359
|
let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
|
983
|
-
return /* @__PURE__ */
|
1360
|
+
return /* @__PURE__ */ React18.createElement(
|
984
1361
|
"div",
|
985
1362
|
{
|
986
1363
|
className: cn(
|
@@ -991,8 +1368,8 @@ var Input = forwardRef7(
|
|
991
1368
|
"hawa-w-full hawa-gap-2"
|
992
1369
|
)
|
993
1370
|
},
|
994
|
-
props.label && /* @__PURE__ */
|
995
|
-
props.isLoading ? /* @__PURE__ */
|
1371
|
+
props.label && /* @__PURE__ */ React18.createElement(Label, { ...labelProps }, props.label),
|
1372
|
+
props.isLoading ? /* @__PURE__ */ React18.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React18.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React18.createElement(React18.Fragment, null, !props.hideSeparator && /* @__PURE__ */ React18.createElement(
|
996
1373
|
"div",
|
997
1374
|
{
|
998
1375
|
className: cn(
|
@@ -1000,7 +1377,7 @@ var Input = forwardRef7(
|
|
1000
1377
|
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
1001
1378
|
)
|
1002
1379
|
}
|
1003
|
-
), /* @__PURE__ */
|
1380
|
+
), /* @__PURE__ */ React18.createElement(React18.Fragment, null, /* @__PURE__ */ React18.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ React18.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ React18.createElement(
|
1004
1381
|
"div",
|
1005
1382
|
{
|
1006
1383
|
className: cn(
|
@@ -1009,7 +1386,7 @@ var Input = forwardRef7(
|
|
1009
1386
|
)
|
1010
1387
|
},
|
1011
1388
|
props.endIcon
|
1012
|
-
), /* @__PURE__ */
|
1389
|
+
), /* @__PURE__ */ React18.createElement(
|
1013
1390
|
"input",
|
1014
1391
|
{
|
1015
1392
|
required: true,
|
@@ -1035,7 +1412,7 @@ var Input = forwardRef7(
|
|
1035
1412
|
inputProps == null ? void 0 : inputProps.className
|
1036
1413
|
)
|
1037
1414
|
}
|
1038
|
-
)), !forceHideHelperText && /* @__PURE__ */
|
1415
|
+
)), !forceHideHelperText && /* @__PURE__ */ React18.createElement(
|
1039
1416
|
"p",
|
1040
1417
|
{
|
1041
1418
|
className: cn(
|
@@ -1044,7 +1421,7 @@ var Input = forwardRef7(
|
|
1044
1421
|
)
|
1045
1422
|
},
|
1046
1423
|
props.helperText
|
1047
|
-
), !props.disabled && forceHideHelperText && /* @__PURE__ */
|
1424
|
+
), !props.disabled && forceHideHelperText && /* @__PURE__ */ React18.createElement(
|
1048
1425
|
"div",
|
1049
1426
|
{
|
1050
1427
|
className: cn(
|
@@ -1053,7 +1430,7 @@ var Input = forwardRef7(
|
|
1053
1430
|
)
|
1054
1431
|
},
|
1055
1432
|
props.helperText
|
1056
|
-
), showCount && /* @__PURE__ */
|
1433
|
+
), showCount && /* @__PURE__ */ React18.createElement(
|
1057
1434
|
"div",
|
1058
1435
|
{
|
1059
1436
|
className: cn(
|
@@ -1074,8 +1451,8 @@ var Input = forwardRef7(
|
|
1074
1451
|
);
|
1075
1452
|
|
1076
1453
|
// components/elements/table/Table.tsx
|
1077
|
-
import * as
|
1078
|
-
var Table =
|
1454
|
+
import * as React19 from "react";
|
1455
|
+
var Table = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React19.createElement(
|
1079
1456
|
"table",
|
1080
1457
|
{
|
1081
1458
|
ref,
|
@@ -1084,7 +1461,7 @@ var Table = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
1084
1461
|
}
|
1085
1462
|
)));
|
1086
1463
|
Table.displayName = "Table";
|
1087
|
-
var TableHeader =
|
1464
|
+
var TableHeader = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
|
1088
1465
|
"thead",
|
1089
1466
|
{
|
1090
1467
|
ref,
|
@@ -1093,8 +1470,8 @@ var TableHeader = React14.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
1093
1470
|
}
|
1094
1471
|
));
|
1095
1472
|
TableHeader.displayName = "TableHeader";
|
1096
|
-
var TableHead =
|
1097
|
-
({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */
|
1473
|
+
var TableHead = React19.forwardRef(
|
1474
|
+
({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */ React19.createElement(
|
1098
1475
|
"th",
|
1099
1476
|
{
|
1100
1477
|
ref,
|
@@ -1113,9 +1490,9 @@ var TableHead = React14.forwardRef(
|
|
1113
1490
|
)
|
1114
1491
|
);
|
1115
1492
|
TableHead.displayName = "TableHead";
|
1116
|
-
var TableBody =
|
1493
|
+
var TableBody = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement("tbody", { ref, className: cn("hawa-border-none", className), ...props }));
|
1117
1494
|
TableBody.displayName = "TableBody";
|
1118
|
-
var TableFooter =
|
1495
|
+
var TableFooter = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
|
1119
1496
|
"tfoot",
|
1120
1497
|
{
|
1121
1498
|
ref,
|
@@ -1127,7 +1504,7 @@ var TableFooter = React14.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
1127
1504
|
}
|
1128
1505
|
));
|
1129
1506
|
TableFooter.displayName = "TableFooter";
|
1130
|
-
var TableRow =
|
1507
|
+
var TableRow = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
|
1131
1508
|
"tr",
|
1132
1509
|
{
|
1133
1510
|
ref,
|
@@ -1141,14 +1518,14 @@ var TableRow = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
1141
1518
|
}
|
1142
1519
|
));
|
1143
1520
|
TableRow.displayName = "TableRow";
|
1144
|
-
var TableCell =
|
1521
|
+
var TableCell = React19.forwardRef(
|
1145
1522
|
({ className, enablePadding = true, padding = "default", ...props }, ref) => {
|
1146
1523
|
let paddingStyles = {
|
1147
1524
|
condensed: "hawa-p-0 hawa-px-4",
|
1148
1525
|
default: "hawa-p-4",
|
1149
1526
|
noPadding: "hawa-p-0"
|
1150
1527
|
};
|
1151
|
-
return /* @__PURE__ */
|
1528
|
+
return /* @__PURE__ */ React19.createElement(
|
1152
1529
|
"td",
|
1153
1530
|
{
|
1154
1531
|
ref,
|
@@ -1170,7 +1547,7 @@ var TableCell = React14.forwardRef(
|
|
1170
1547
|
}
|
1171
1548
|
);
|
1172
1549
|
TableCell.displayName = "TableCell";
|
1173
|
-
var TableCaption =
|
1550
|
+
var TableCaption = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
|
1174
1551
|
"caption",
|
1175
1552
|
{
|
1176
1553
|
ref,
|
@@ -1183,17 +1560,20 @@ var TableCaption = React14.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
1183
1560
|
));
|
1184
1561
|
TableCaption.displayName = "TableCaption";
|
1185
1562
|
|
1563
|
+
// components/elements/backToTop/BackToTop.tsx
|
1564
|
+
import React21, { useState as useState4, useEffect as useEffect3, useRef as useRef3 } from "react";
|
1565
|
+
|
1186
1566
|
// components/elements/radio/Radio.tsx
|
1187
|
-
import
|
1567
|
+
import React22, { useState as useState5, useRef as useRef4, useEffect as useEffect4 } from "react";
|
1188
1568
|
|
1189
1569
|
// components/elements/combobox/Combobox.tsx
|
1190
|
-
import * as
|
1570
|
+
import * as React25 from "react";
|
1191
1571
|
import * as PopoverPrimitive2 from "@radix-ui/react-popover";
|
1192
1572
|
|
1193
1573
|
// components/elements/command/Command.tsx
|
1194
|
-
import * as
|
1574
|
+
import * as React23 from "react";
|
1195
1575
|
import { Command as CommandPrimitive } from "cmdk";
|
1196
|
-
var Command =
|
1576
|
+
var Command = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
|
1197
1577
|
CommandPrimitive,
|
1198
1578
|
{
|
1199
1579
|
ref,
|
@@ -1205,13 +1585,13 @@ var Command = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
1205
1585
|
}
|
1206
1586
|
));
|
1207
1587
|
Command.displayName = CommandPrimitive.displayName;
|
1208
|
-
var CommandInput =
|
1588
|
+
var CommandInput = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
|
1209
1589
|
"div",
|
1210
1590
|
{
|
1211
1591
|
className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
|
1212
1592
|
"cmdk-input-wrapper": ""
|
1213
1593
|
},
|
1214
|
-
/* @__PURE__ */
|
1594
|
+
/* @__PURE__ */ React23.createElement(
|
1215
1595
|
"svg",
|
1216
1596
|
{
|
1217
1597
|
"aria-label": "Search Icon",
|
@@ -1226,10 +1606,10 @@ var CommandInput = React17.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
1226
1606
|
strokeLinejoin: "round",
|
1227
1607
|
className: "hawa-icon hawa-mr-2 hawa-shrink-0 hawa-opacity-50"
|
1228
1608
|
},
|
1229
|
-
/* @__PURE__ */
|
1230
|
-
/* @__PURE__ */
|
1609
|
+
/* @__PURE__ */ React23.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
1610
|
+
/* @__PURE__ */ React23.createElement("path", { d: "m21 21-4.3-4.3" })
|
1231
1611
|
),
|
1232
|
-
/* @__PURE__ */
|
1612
|
+
/* @__PURE__ */ React23.createElement(
|
1233
1613
|
CommandPrimitive.Input,
|
1234
1614
|
{
|
1235
1615
|
ref,
|
@@ -1242,7 +1622,7 @@ var CommandInput = React17.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
1242
1622
|
)
|
1243
1623
|
));
|
1244
1624
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
1245
|
-
var CommandList =
|
1625
|
+
var CommandList = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
|
1246
1626
|
CommandPrimitive.List,
|
1247
1627
|
{
|
1248
1628
|
ref,
|
@@ -1254,7 +1634,7 @@ var CommandList = React17.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
1254
1634
|
}
|
1255
1635
|
));
|
1256
1636
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
1257
|
-
var CommandEmpty =
|
1637
|
+
var CommandEmpty = React23.forwardRef((props, ref) => /* @__PURE__ */ React23.createElement(
|
1258
1638
|
CommandPrimitive.Empty,
|
1259
1639
|
{
|
1260
1640
|
ref,
|
@@ -1263,7 +1643,7 @@ var CommandEmpty = React17.forwardRef((props, ref) => /* @__PURE__ */ React17.cr
|
|
1263
1643
|
}
|
1264
1644
|
));
|
1265
1645
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
1266
|
-
var CommandGroup =
|
1646
|
+
var CommandGroup = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
|
1267
1647
|
CommandPrimitive.Group,
|
1268
1648
|
{
|
1269
1649
|
ref,
|
@@ -1275,7 +1655,7 @@ var CommandGroup = React17.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
1275
1655
|
}
|
1276
1656
|
));
|
1277
1657
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
1278
|
-
var CommandSeparator =
|
1658
|
+
var CommandSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
|
1279
1659
|
CommandPrimitive.Separator,
|
1280
1660
|
{
|
1281
1661
|
ref,
|
@@ -1284,7 +1664,7 @@ var CommandSeparator = React17.forwardRef(({ className, ...props }, ref) => /* @
|
|
1284
1664
|
}
|
1285
1665
|
));
|
1286
1666
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
1287
|
-
var CommandItem =
|
1667
|
+
var CommandItem = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
|
1288
1668
|
CommandPrimitive.Item,
|
1289
1669
|
{
|
1290
1670
|
ref,
|
@@ -1300,7 +1680,7 @@ var CommandShortcut = ({
|
|
1300
1680
|
className,
|
1301
1681
|
...props
|
1302
1682
|
}) => {
|
1303
|
-
return /* @__PURE__ */
|
1683
|
+
return /* @__PURE__ */ React23.createElement(
|
1304
1684
|
"span",
|
1305
1685
|
{
|
1306
1686
|
className: cn(
|
@@ -1314,9 +1694,9 @@ var CommandShortcut = ({
|
|
1314
1694
|
CommandShortcut.displayName = "CommandShortcut";
|
1315
1695
|
|
1316
1696
|
// components/elements/popover/Popover.tsx
|
1317
|
-
import * as
|
1697
|
+
import * as React24 from "react";
|
1318
1698
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
1319
|
-
var PopoverContent =
|
1699
|
+
var PopoverContent = React24.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React24.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React24.createElement(
|
1320
1700
|
PopoverPrimitive.Content,
|
1321
1701
|
{
|
1322
1702
|
ref,
|
@@ -1333,7 +1713,7 @@ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1333
1713
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
1334
1714
|
|
1335
1715
|
// components/elements/combobox/Combobox.tsx
|
1336
|
-
var Combobox =
|
1716
|
+
var Combobox = React25.forwardRef(
|
1337
1717
|
({
|
1338
1718
|
labelKey = "label",
|
1339
1719
|
valueKey = "value",
|
@@ -1344,8 +1724,8 @@ var Combobox = React19.forwardRef(
|
|
1344
1724
|
...props
|
1345
1725
|
}, ref) => {
|
1346
1726
|
var _a, _b, _c;
|
1347
|
-
const [open, setOpen] =
|
1348
|
-
const [value, setValue] =
|
1727
|
+
const [open, setOpen] = React25.useState(false);
|
1728
|
+
const [value, setValue] = React25.useState(defaultValue);
|
1349
1729
|
function getProperty(obj, key) {
|
1350
1730
|
return obj[key];
|
1351
1731
|
}
|
@@ -1354,7 +1734,7 @@ var Combobox = React19.forwardRef(
|
|
1354
1734
|
setOpen(open2);
|
1355
1735
|
}
|
1356
1736
|
};
|
1357
|
-
return /* @__PURE__ */
|
1737
|
+
return /* @__PURE__ */ React25.createElement(
|
1358
1738
|
"div",
|
1359
1739
|
{
|
1360
1740
|
className: cn(
|
@@ -1362,8 +1742,8 @@ var Combobox = React19.forwardRef(
|
|
1362
1742
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
1363
1743
|
)
|
1364
1744
|
},
|
1365
|
-
props.label && /* @__PURE__ */
|
1366
|
-
/* @__PURE__ */
|
1745
|
+
props.label && /* @__PURE__ */ React25.createElement(Label, { ...labelProps }, props.label),
|
1746
|
+
/* @__PURE__ */ React25.createElement(PopoverPrimitive2.Root, { open, onOpenChange: handleOpenChange }, /* @__PURE__ */ React25.createElement(PopoverTrigger, { asChild: true }, props.isLoading ? /* @__PURE__ */ React25.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React25.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React25.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-gap-2 " }, /* @__PURE__ */ React25.createElement(
|
1367
1747
|
"div",
|
1368
1748
|
{
|
1369
1749
|
className: cn(
|
@@ -1371,7 +1751,7 @@ var Combobox = React19.forwardRef(
|
|
1371
1751
|
props.preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
1372
1752
|
)
|
1373
1753
|
}
|
1374
|
-
), /* @__PURE__ */
|
1754
|
+
), /* @__PURE__ */ React25.createElement(
|
1375
1755
|
"button",
|
1376
1756
|
{
|
1377
1757
|
role: "combobox",
|
@@ -1386,7 +1766,7 @@ var Combobox = React19.forwardRef(
|
|
1386
1766
|
data.find((item) => item[valueKey] === value) || {},
|
1387
1767
|
labelKey
|
1388
1768
|
) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
|
1389
|
-
/* @__PURE__ */
|
1769
|
+
/* @__PURE__ */ React25.createElement(
|
1390
1770
|
"svg",
|
1391
1771
|
{
|
1392
1772
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1402,9 +1782,9 @@ var Combobox = React19.forwardRef(
|
|
1402
1782
|
strokeLinecap: "round",
|
1403
1783
|
strokeLinejoin: "round"
|
1404
1784
|
},
|
1405
|
-
/* @__PURE__ */
|
1785
|
+
/* @__PURE__ */ React25.createElement("path", { d: "m6 9 6 6 6-6" })
|
1406
1786
|
)
|
1407
|
-
), /* @__PURE__ */
|
1787
|
+
), /* @__PURE__ */ React25.createElement(
|
1408
1788
|
"p",
|
1409
1789
|
{
|
1410
1790
|
className: cn(
|
@@ -1413,18 +1793,18 @@ var Combobox = React19.forwardRef(
|
|
1413
1793
|
)
|
1414
1794
|
},
|
1415
1795
|
props.helperText
|
1416
|
-
))), /* @__PURE__ */
|
1796
|
+
))), /* @__PURE__ */ React25.createElement(
|
1417
1797
|
PopoverContent,
|
1418
1798
|
{
|
1419
1799
|
sideOffset: 0,
|
1420
1800
|
className: cn("popover-w-parent", props.helperText && "-hawa-mt-4")
|
1421
1801
|
},
|
1422
|
-
/* @__PURE__ */
|
1802
|
+
/* @__PURE__ */ React25.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React25.createElement(
|
1423
1803
|
CommandInput,
|
1424
1804
|
{
|
1425
1805
|
placeholder: ((_b = props.texts) == null ? void 0 : _b.searchPlaceholder) || "Search"
|
1426
1806
|
}
|
1427
|
-
), /* @__PURE__ */
|
1807
|
+
), /* @__PURE__ */ React25.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."), /* @__PURE__ */ React25.createElement(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-auto" }, data.map((item, i) => /* @__PURE__ */ React25.createElement(
|
1428
1808
|
CommandItem,
|
1429
1809
|
{
|
1430
1810
|
key: i,
|
@@ -1439,7 +1819,7 @@ var Combobox = React19.forwardRef(
|
|
1439
1819
|
setOpen(false);
|
1440
1820
|
}
|
1441
1821
|
},
|
1442
|
-
/* @__PURE__ */
|
1822
|
+
/* @__PURE__ */ React25.createElement(
|
1443
1823
|
"svg",
|
1444
1824
|
{
|
1445
1825
|
"aria-label": "Check Icon",
|
@@ -1457,7 +1837,7 @@ var Combobox = React19.forwardRef(
|
|
1457
1837
|
value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
|
1458
1838
|
)
|
1459
1839
|
},
|
1460
|
-
/* @__PURE__ */
|
1840
|
+
/* @__PURE__ */ React25.createElement("polyline", { points: "20 6 9 17 4 12" })
|
1461
1841
|
),
|
1462
1842
|
getProperty(item, labelKey)
|
1463
1843
|
))))
|
@@ -1467,8 +1847,8 @@ var Combobox = React19.forwardRef(
|
|
1467
1847
|
);
|
1468
1848
|
|
1469
1849
|
// components/elements/textarea/Textarea.tsx
|
1470
|
-
import * as
|
1471
|
-
var Textarea =
|
1850
|
+
import * as React26 from "react";
|
1851
|
+
var Textarea = React26.forwardRef(
|
1472
1852
|
({
|
1473
1853
|
className,
|
1474
1854
|
labelProps,
|
@@ -1478,7 +1858,7 @@ var Textarea = React20.forwardRef(
|
|
1478
1858
|
countPosition = "bottom",
|
1479
1859
|
...props
|
1480
1860
|
}, ref) => {
|
1481
|
-
return /* @__PURE__ */
|
1861
|
+
return /* @__PURE__ */ React26.createElement("div", { className: "hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React26.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ React26.createElement(
|
1482
1862
|
"textarea",
|
1483
1863
|
{
|
1484
1864
|
className: cn(
|
@@ -1488,7 +1868,7 @@ var Textarea = React20.forwardRef(
|
|
1488
1868
|
ref,
|
1489
1869
|
...textareaProps
|
1490
1870
|
}
|
1491
|
-
), /* @__PURE__ */
|
1871
|
+
), /* @__PURE__ */ React26.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React26.createElement(
|
1492
1872
|
"p",
|
1493
1873
|
{
|
1494
1874
|
className: cn(
|
@@ -1497,7 +1877,7 @@ var Textarea = React20.forwardRef(
|
|
1497
1877
|
)
|
1498
1878
|
},
|
1499
1879
|
props.helperText
|
1500
|
-
), showCount && /* @__PURE__ */
|
1880
|
+
), showCount && /* @__PURE__ */ React26.createElement(
|
1501
1881
|
"div",
|
1502
1882
|
{
|
1503
1883
|
className: cn(
|
@@ -1516,18 +1896,18 @@ var Textarea = React20.forwardRef(
|
|
1516
1896
|
Textarea.displayName = "Textarea";
|
1517
1897
|
|
1518
1898
|
// components/elements/fileDropzone/FileDropzone.tsx
|
1519
|
-
import
|
1899
|
+
import React27, { useEffect as useEffect5, useState as useState7 } from "react";
|
1520
1900
|
import { useDropzone } from "react-dropzone";
|
1521
1901
|
import clsx from "clsx";
|
1522
1902
|
|
1523
1903
|
// components/elements/sortButton/SortButton.tsx
|
1524
|
-
import
|
1904
|
+
import React28 from "react";
|
1525
1905
|
|
1526
1906
|
// components/elements/tabs/Tabs.tsx
|
1527
|
-
import * as
|
1907
|
+
import * as React29 from "react";
|
1528
1908
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
1529
|
-
var TabsContext =
|
1530
|
-
var Tabs =
|
1909
|
+
var TabsContext = React29.createContext({ orientation: "vertical" });
|
1910
|
+
var Tabs = React29.forwardRef(({ className, orientation, ...props }, ref) => /* @__PURE__ */ React29.createElement(
|
1531
1911
|
TabsPrimitive.Root,
|
1532
1912
|
{
|
1533
1913
|
ref,
|
@@ -1538,12 +1918,12 @@ var Tabs = React23.forwardRef(({ className, orientation, ...props }, ref) => /*
|
|
1538
1918
|
),
|
1539
1919
|
...props
|
1540
1920
|
},
|
1541
|
-
/* @__PURE__ */
|
1921
|
+
/* @__PURE__ */ React29.createElement(TabsContext.Provider, { value: { orientation } }, props.children)
|
1542
1922
|
));
|
1543
1923
|
Tabs.displayName = TabsPrimitive.Root.displayName;
|
1544
|
-
var TabsList =
|
1545
|
-
const { orientation } =
|
1546
|
-
return /* @__PURE__ */
|
1924
|
+
var TabsList = React29.forwardRef(({ className, ...props }, ref) => {
|
1925
|
+
const { orientation } = React29.useContext(TabsContext);
|
1926
|
+
return /* @__PURE__ */ React29.createElement(
|
1547
1927
|
TabsPrimitive.List,
|
1548
1928
|
{
|
1549
1929
|
ref,
|
@@ -1557,8 +1937,8 @@ var TabsList = React23.forwardRef(({ className, ...props }, ref) => {
|
|
1557
1937
|
);
|
1558
1938
|
});
|
1559
1939
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
1560
|
-
var TabsTrigger =
|
1561
|
-
return /* @__PURE__ */
|
1940
|
+
var TabsTrigger = React29.forwardRef(({ className, chipProps, ...props }, ref) => {
|
1941
|
+
return /* @__PURE__ */ React29.createElement(
|
1562
1942
|
TabsPrimitive.Trigger,
|
1563
1943
|
{
|
1564
1944
|
ref,
|
@@ -1569,11 +1949,11 @@ var TabsTrigger = React23.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
1569
1949
|
...props
|
1570
1950
|
},
|
1571
1951
|
props.children,
|
1572
|
-
chipProps && /* @__PURE__ */
|
1952
|
+
chipProps && /* @__PURE__ */ React29.createElement(Chip, { ...chipProps })
|
1573
1953
|
);
|
1574
1954
|
});
|
1575
1955
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
1576
|
-
var TabsContent =
|
1956
|
+
var TabsContent = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React29.createElement(
|
1577
1957
|
TabsPrimitive.Content,
|
1578
1958
|
{
|
1579
1959
|
ref,
|
@@ -1587,21 +1967,21 @@ var TabsContent = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
1587
1967
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
1588
1968
|
|
1589
1969
|
// components/elements/select/Select.tsx
|
1590
|
-
import
|
1970
|
+
import React30 from "react";
|
1591
1971
|
import ReactSelect from "react-select";
|
1592
1972
|
import CreatableSelect from "react-select/creatable";
|
1593
1973
|
import clsx2 from "clsx";
|
1594
1974
|
|
1595
1975
|
// components/elements/switch/Switch.tsx
|
1596
|
-
import * as
|
1976
|
+
import * as React31 from "react";
|
1597
1977
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
1598
|
-
var Switch =
|
1978
|
+
var Switch = React31.forwardRef(
|
1599
1979
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
1600
|
-
const [parentDirection, setParentDirection] =
|
1980
|
+
const [parentDirection, setParentDirection] = React31.useState(
|
1601
1981
|
null
|
1602
1982
|
);
|
1603
|
-
const parentRef =
|
1604
|
-
|
1983
|
+
const parentRef = React31.useRef(null);
|
1984
|
+
React31.useEffect(() => {
|
1605
1985
|
var _a;
|
1606
1986
|
const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
|
1607
1987
|
if (parentNode) {
|
@@ -1629,13 +2009,13 @@ var Switch = React25.forwardRef(
|
|
1629
2009
|
full: "hawa-rounded-full",
|
1630
2010
|
inherit: "hawa-rounded-inner"
|
1631
2011
|
};
|
1632
|
-
return /* @__PURE__ */
|
2012
|
+
return /* @__PURE__ */ React31.createElement(
|
1633
2013
|
"div",
|
1634
2014
|
{
|
1635
2015
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
1636
2016
|
ref: parentRef
|
1637
2017
|
},
|
1638
|
-
/* @__PURE__ */
|
2018
|
+
/* @__PURE__ */ React31.createElement(
|
1639
2019
|
SwitchPrimitives.Root,
|
1640
2020
|
{
|
1641
2021
|
className: cn(
|
@@ -1649,7 +2029,7 @@ var Switch = React25.forwardRef(
|
|
1649
2029
|
...props,
|
1650
2030
|
ref
|
1651
2031
|
},
|
1652
|
-
/* @__PURE__ */
|
2032
|
+
/* @__PURE__ */ React31.createElement(
|
1653
2033
|
SwitchPrimitives.Thumb,
|
1654
2034
|
{
|
1655
2035
|
className: cn(
|
@@ -1663,16 +2043,16 @@ var Switch = React25.forwardRef(
|
|
1663
2043
|
}
|
1664
2044
|
)
|
1665
2045
|
),
|
1666
|
-
label && /* @__PURE__ */
|
2046
|
+
label && /* @__PURE__ */ React31.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
|
1667
2047
|
);
|
1668
2048
|
}
|
1669
2049
|
);
|
1670
2050
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
1671
2051
|
|
1672
2052
|
// components/elements/checkbox/Checkbox.tsx
|
1673
|
-
import * as
|
2053
|
+
import * as React32 from "react";
|
1674
2054
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
1675
|
-
var CheckboxElement =
|
2055
|
+
var CheckboxElement = React32.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
1676
2056
|
let checkboxRadius = {
|
1677
2057
|
none: "hawa-rounded-none",
|
1678
2058
|
inherit: "hawa-rounded-sm",
|
@@ -1694,7 +2074,7 @@ var CheckboxElement = React26.forwardRef(({ radius = "inherit", size = "default"
|
|
1694
2074
|
lg: "1em",
|
1695
2075
|
xl: "1.25em"
|
1696
2076
|
};
|
1697
|
-
return /* @__PURE__ */
|
2077
|
+
return /* @__PURE__ */ React32.createElement(
|
1698
2078
|
CheckboxPrimitive.Root,
|
1699
2079
|
{
|
1700
2080
|
ref,
|
@@ -1706,14 +2086,14 @@ var CheckboxElement = React26.forwardRef(({ radius = "inherit", size = "default"
|
|
1706
2086
|
),
|
1707
2087
|
...props
|
1708
2088
|
},
|
1709
|
-
/* @__PURE__ */
|
2089
|
+
/* @__PURE__ */ React32.createElement(
|
1710
2090
|
CheckboxPrimitive.Indicator,
|
1711
2091
|
{
|
1712
2092
|
className: cn(
|
1713
2093
|
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
1714
2094
|
)
|
1715
2095
|
},
|
1716
|
-
/* @__PURE__ */
|
2096
|
+
/* @__PURE__ */ React32.createElement(
|
1717
2097
|
"svg",
|
1718
2098
|
{
|
1719
2099
|
"aria-label": "Check Mark",
|
@@ -1724,7 +2104,7 @@ var CheckboxElement = React26.forwardRef(({ radius = "inherit", size = "default"
|
|
1724
2104
|
height: checkboxIndicatorSizes[size],
|
1725
2105
|
width: checkboxIndicatorSizes[size]
|
1726
2106
|
},
|
1727
|
-
/* @__PURE__ */
|
2107
|
+
/* @__PURE__ */ React32.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
1728
2108
|
),
|
1729
2109
|
" "
|
1730
2110
|
)
|
@@ -1733,9 +2113,9 @@ var CheckboxElement = React26.forwardRef(({ radius = "inherit", size = "default"
|
|
1733
2113
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
1734
2114
|
|
1735
2115
|
// components/elements/progress/Progress.tsx
|
1736
|
-
import * as
|
2116
|
+
import * as React33 from "react";
|
1737
2117
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
1738
|
-
var Progress =
|
2118
|
+
var Progress = React33.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React33.createElement(
|
1739
2119
|
ProgressPrimitive.Root,
|
1740
2120
|
{
|
1741
2121
|
ref,
|
@@ -1745,7 +2125,7 @@ var Progress = React27.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
1745
2125
|
),
|
1746
2126
|
...props
|
1747
2127
|
},
|
1748
|
-
/* @__PURE__ */
|
2128
|
+
/* @__PURE__ */ React33.createElement(
|
1749
2129
|
ProgressPrimitive.Indicator,
|
1750
2130
|
{
|
1751
2131
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
@@ -1756,39 +2136,39 @@ var Progress = React27.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
1756
2136
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
1757
2137
|
|
1758
2138
|
// components/elements/breadcrumb/Breadcrumb.tsx
|
1759
|
-
import
|
2139
|
+
import React34 from "react";
|
1760
2140
|
|
1761
2141
|
// components/elements/appStores/AppStores.tsx
|
1762
|
-
import
|
2142
|
+
import React35 from "react";
|
1763
2143
|
|
1764
2144
|
// components/elements/badge/Badge.tsx
|
1765
|
-
import
|
2145
|
+
import React36, { useEffect as useEffect7, useState as useState9, useRef as useRef6 } from "react";
|
1766
2146
|
|
1767
2147
|
// components/elements/phoneInput/PhoneInput.tsx
|
1768
|
-
import
|
2148
|
+
import React37, { useState as useState10, useRef as useRef7, useEffect as useEffect8 } from "react";
|
1769
2149
|
|
1770
2150
|
// components/elements/pinInput/PinInput.tsx
|
1771
|
-
import
|
2151
|
+
import React38, { useEffect as useEffect9, useState as useState11 } from "react";
|
1772
2152
|
|
1773
2153
|
// components/elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
1774
|
-
import
|
2154
|
+
import React39 from "react";
|
1775
2155
|
|
1776
2156
|
// components/elements/scrollArea/ScrollArea.tsx
|
1777
|
-
import * as
|
2157
|
+
import * as React40 from "react";
|
1778
2158
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
1779
|
-
var ScrollArea =
|
2159
|
+
var ScrollArea = React40.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React40.createElement(
|
1780
2160
|
ScrollAreaPrimitive.Root,
|
1781
2161
|
{
|
1782
2162
|
ref,
|
1783
2163
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
1784
2164
|
...props
|
1785
2165
|
},
|
1786
|
-
/* @__PURE__ */
|
1787
|
-
/* @__PURE__ */
|
1788
|
-
/* @__PURE__ */
|
2166
|
+
/* @__PURE__ */ React40.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
2167
|
+
/* @__PURE__ */ React40.createElement(ScrollBar, { orientation }),
|
2168
|
+
/* @__PURE__ */ React40.createElement(ScrollAreaPrimitive.Corner, null)
|
1789
2169
|
));
|
1790
2170
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
1791
|
-
var ScrollBar =
|
2171
|
+
var ScrollBar = React40.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React40.createElement(
|
1792
2172
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
1793
2173
|
{
|
1794
2174
|
ref,
|
@@ -1801,7 +2181,7 @@ var ScrollBar = React34.forwardRef(({ className, orientation = "vertical", ...pr
|
|
1801
2181
|
),
|
1802
2182
|
...props
|
1803
2183
|
},
|
1804
|
-
/* @__PURE__ */
|
2184
|
+
/* @__PURE__ */ React40.createElement(
|
1805
2185
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
1806
2186
|
{
|
1807
2187
|
className: cn(
|
@@ -1813,14 +2193,8 @@ var ScrollBar = React34.forwardRef(({ className, orientation = "vertical", ...pr
|
|
1813
2193
|
));
|
1814
2194
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
1815
2195
|
|
1816
|
-
// components/elements/colorPicker/ColorPicker.tsx
|
1817
|
-
import React35, {
|
1818
|
-
useState as useState11,
|
1819
|
-
useEffect as useEffect9
|
1820
|
-
} from "react";
|
1821
|
-
|
1822
2196
|
// components/elements/progressCircle/ProgressCircle.tsx
|
1823
|
-
import
|
2197
|
+
import React41 from "react";
|
1824
2198
|
var size2config = {
|
1825
2199
|
xs: {
|
1826
2200
|
radius: 15,
|
@@ -1852,7 +2226,7 @@ function getLimitedValue(input) {
|
|
1852
2226
|
return input;
|
1853
2227
|
}
|
1854
2228
|
}
|
1855
|
-
var ProgressCircle =
|
2229
|
+
var ProgressCircle = React41.forwardRef((props, ref) => {
|
1856
2230
|
const {
|
1857
2231
|
value: inputValue,
|
1858
2232
|
size = "md",
|
@@ -1872,7 +2246,7 @@ var ProgressCircle = React36.forwardRef((props, ref) => {
|
|
1872
2246
|
const circumference = normalizedRadius * 2 * Math.PI;
|
1873
2247
|
const strokeDashoffset = value / 100 * circumference;
|
1874
2248
|
const offset = circumference - strokeDashoffset;
|
1875
|
-
return /* @__PURE__ */
|
2249
|
+
return /* @__PURE__ */ React41.createElement(React41.Fragment, null, /* @__PURE__ */ React41.createElement(
|
1876
2250
|
"div",
|
1877
2251
|
{
|
1878
2252
|
ref,
|
@@ -1881,7 +2255,7 @@ var ProgressCircle = React36.forwardRef((props, ref) => {
|
|
1881
2255
|
className
|
1882
2256
|
)
|
1883
2257
|
},
|
1884
|
-
/* @__PURE__ */
|
2258
|
+
/* @__PURE__ */ React41.createElement(
|
1885
2259
|
"svg",
|
1886
2260
|
{
|
1887
2261
|
width: radius * 2,
|
@@ -1889,7 +2263,7 @@ var ProgressCircle = React36.forwardRef((props, ref) => {
|
|
1889
2263
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
1890
2264
|
className: "hawa-rotate-180 hawa-transform"
|
1891
2265
|
},
|
1892
|
-
/* @__PURE__ */
|
2266
|
+
/* @__PURE__ */ React41.createElement(
|
1893
2267
|
"circle",
|
1894
2268
|
{
|
1895
2269
|
r: normalizedRadius,
|
@@ -1905,7 +2279,7 @@ var ProgressCircle = React36.forwardRef((props, ref) => {
|
|
1905
2279
|
)
|
1906
2280
|
}
|
1907
2281
|
),
|
1908
|
-
value > 0 ? /* @__PURE__ */
|
2282
|
+
value > 0 ? /* @__PURE__ */ React41.createElement(
|
1909
2283
|
"circle",
|
1910
2284
|
{
|
1911
2285
|
r: normalizedRadius,
|
@@ -1925,31 +2299,31 @@ var ProgressCircle = React36.forwardRef((props, ref) => {
|
|
1925
2299
|
}
|
1926
2300
|
) : null
|
1927
2301
|
),
|
1928
|
-
/* @__PURE__ */
|
2302
|
+
/* @__PURE__ */ React41.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
1929
2303
|
));
|
1930
2304
|
});
|
1931
2305
|
ProgressCircle.displayName = "ProgressCircle";
|
1932
2306
|
|
1933
2307
|
// components/elements/pagination/Pagination.tsx
|
1934
|
-
import
|
2308
|
+
import React42 from "react";
|
1935
2309
|
import { Pagination as PaginationPrimitive } from "react-headless-pagination";
|
1936
2310
|
|
1937
2311
|
// components/elements/passwordInput/PasswordInput.tsx
|
1938
|
-
import
|
2312
|
+
import React46, { useEffect as useEffect10, useState as useState12 } from "react";
|
1939
2313
|
|
1940
2314
|
// components/icons/Emojis.tsx
|
1941
|
-
import
|
2315
|
+
import React43 from "react";
|
1942
2316
|
|
1943
2317
|
// components/icons/InputIcons.tsx
|
1944
|
-
import
|
2318
|
+
import React44 from "react";
|
1945
2319
|
|
1946
2320
|
// components/icons/CommonIcons.tsx
|
1947
|
-
import
|
2321
|
+
import React45 from "react";
|
1948
2322
|
|
1949
2323
|
// components/elements/slider/Slider.tsx
|
1950
|
-
import * as
|
2324
|
+
import * as React47 from "react";
|
1951
2325
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
1952
|
-
var Slider =
|
2326
|
+
var Slider = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React47.createElement(
|
1953
2327
|
SliderPrimitive.Root,
|
1954
2328
|
{
|
1955
2329
|
ref,
|
@@ -1959,13 +2333,13 @@ var Slider = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
1959
2333
|
),
|
1960
2334
|
...props
|
1961
2335
|
},
|
1962
|
-
/* @__PURE__ */
|
1963
|
-
/* @__PURE__ */
|
2336
|
+
/* @__PURE__ */ React47.createElement(SliderPrimitive.Track, { className: "hawa-relative hawa-h-2 hawa-w-full hawa-grow hawa-overflow-hidden hawa-rounded-full hawa-border hawa-bg-background" }, /* @__PURE__ */ React47.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
|
2337
|
+
/* @__PURE__ */ React47.createElement(SliderPrimitive.Thumb, { className: "hawa-block hawa-h-5 hawa-w-5 hawa-rounded-full hawa-border-2 hawa-border-primary hawa-bg-background hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50" })
|
1964
2338
|
));
|
1965
2339
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
1966
2340
|
|
1967
2341
|
// components/elements/simpleTable/SimpleTable.tsx
|
1968
|
-
import * as
|
2342
|
+
import * as React48 from "react";
|
1969
2343
|
import {
|
1970
2344
|
flexRender as flexRender2,
|
1971
2345
|
getCoreRowModel as getCoreRowModel2,
|
@@ -1973,23 +2347,23 @@ import {
|
|
1973
2347
|
} from "@tanstack/react-table";
|
1974
2348
|
|
1975
2349
|
// components/elements/separator/Separator.tsx
|
1976
|
-
import * as
|
2350
|
+
import * as React49 from "react";
|
1977
2351
|
|
1978
2352
|
// components/elements/scrollIndicator/ScrollIndicator.tsx
|
1979
|
-
import
|
2353
|
+
import React50, { useState as useState13, useEffect as useEffect11 } from "react";
|
1980
2354
|
|
1981
2355
|
// components/elements/carousel/Carousel.tsx
|
1982
|
-
import
|
2356
|
+
import React51, { useEffect as useEffect12, useState as useState14 } from "react";
|
1983
2357
|
import useEmblaCarousel from "embla-carousel-react";
|
1984
2358
|
|
1985
2359
|
// components/elements/count/Count.tsx
|
1986
|
-
import
|
2360
|
+
import React52 from "react";
|
1987
2361
|
|
1988
2362
|
// components/elements/toast/Toast.tsx
|
1989
|
-
import * as
|
2363
|
+
import * as React53 from "react";
|
1990
2364
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
1991
|
-
import { cva as
|
1992
|
-
var toastVariants =
|
2365
|
+
import { cva as cva4 } from "class-variance-authority";
|
2366
|
+
var toastVariants = cva4(
|
1993
2367
|
"hawa-group hawa-z-[900] hawa-pointer-events-auto hawa-relative hawa-flex hawa-w-full hawa-items-center hawa-justify-between hawa-overflow-hidden hawa-rounded-md hawa-border hawa-shadow-lg hawa-transition-all data-[swipe=cancel]:hawa-translate-x-0 data-[swipe=end]:hawa-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:hawa-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:hawa-transition-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[swipe=end]:hawa-animate-out data-[state=closed]:hawa-fade-out-80 data-[state=open]:hawa-slide-in-from-top-full data-[state=open]:sm:hawa-slide-in-from-bottom-full",
|
1994
2368
|
{
|
1995
2369
|
variants: {
|
@@ -2013,7 +2387,7 @@ var sizeStyles = {
|
|
2013
2387
|
// Update this based on the desired padding for rtl
|
2014
2388
|
sm: "hawa-text-xs"
|
2015
2389
|
};
|
2016
|
-
var ToastViewport =
|
2390
|
+
var ToastViewport = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React53.createElement(
|
2017
2391
|
ToastPrimitives.Viewport,
|
2018
2392
|
{
|
2019
2393
|
ref,
|
@@ -2025,8 +2399,8 @@ var ToastViewport = React48.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
2025
2399
|
}
|
2026
2400
|
));
|
2027
2401
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
2028
|
-
var Toast =
|
2029
|
-
return /* @__PURE__ */
|
2402
|
+
var Toast = React53.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
2403
|
+
return /* @__PURE__ */ React53.createElement(
|
2030
2404
|
ToastPrimitives.Root,
|
2031
2405
|
{
|
2032
2406
|
ref,
|
@@ -2041,8 +2415,8 @@ var Toast = React48.forwardRef(({ className, variant, severity = "none", directi
|
|
2041
2415
|
);
|
2042
2416
|
});
|
2043
2417
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
2044
|
-
var ToastAction =
|
2045
|
-
return /* @__PURE__ */
|
2418
|
+
var ToastAction = React53.forwardRef(({ className, ...props }, ref) => {
|
2419
|
+
return /* @__PURE__ */ React53.createElement(
|
2046
2420
|
ToastPrimitives.Action,
|
2047
2421
|
{
|
2048
2422
|
ref,
|
@@ -2060,7 +2434,7 @@ var ToastAction = React48.forwardRef(({ className, ...props }, ref) => {
|
|
2060
2434
|
);
|
2061
2435
|
});
|
2062
2436
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
2063
|
-
var ToastClose =
|
2437
|
+
var ToastClose = React53.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React53.createElement(
|
2064
2438
|
ToastPrimitives.Close,
|
2065
2439
|
{
|
2066
2440
|
ref,
|
@@ -2074,7 +2448,7 @@ var ToastClose = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
2074
2448
|
"toast-close": "",
|
2075
2449
|
...props
|
2076
2450
|
},
|
2077
|
-
/* @__PURE__ */
|
2451
|
+
/* @__PURE__ */ React53.createElement(
|
2078
2452
|
"svg",
|
2079
2453
|
{
|
2080
2454
|
"aria-label": "Close Icon",
|
@@ -2083,7 +2457,7 @@ var ToastClose = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
2083
2457
|
fill: "currentColor",
|
2084
2458
|
viewBox: "0 0 20 20"
|
2085
2459
|
},
|
2086
|
-
/* @__PURE__ */
|
2460
|
+
/* @__PURE__ */ React53.createElement(
|
2087
2461
|
"path",
|
2088
2462
|
{
|
2089
2463
|
fillRule: "evenodd",
|
@@ -2094,7 +2468,7 @@ var ToastClose = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
2094
2468
|
)
|
2095
2469
|
));
|
2096
2470
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
2097
|
-
var ToastTitle =
|
2471
|
+
var ToastTitle = React53.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React53.createElement(
|
2098
2472
|
ToastPrimitives.Title,
|
2099
2473
|
{
|
2100
2474
|
ref,
|
@@ -2107,7 +2481,7 @@ var ToastTitle = React48.forwardRef(({ className, size = "default", ...props },
|
|
2107
2481
|
}
|
2108
2482
|
));
|
2109
2483
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
2110
|
-
var ToastDescription =
|
2484
|
+
var ToastDescription = React53.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React53.createElement(
|
2111
2485
|
ToastPrimitives.Description,
|
2112
2486
|
{
|
2113
2487
|
ref,
|
@@ -2122,16 +2496,16 @@ var ToastDescription = React48.forwardRef(({ className, size = "default", ...pro
|
|
2122
2496
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
2123
2497
|
|
2124
2498
|
// components/elements/toaster/Toaster.tsx
|
2125
|
-
import
|
2499
|
+
import React55 from "react";
|
2126
2500
|
|
2127
2501
|
// components/hooks/useToast.ts
|
2128
|
-
import * as
|
2502
|
+
import * as React54 from "react";
|
2129
2503
|
|
2130
2504
|
// components/elements/destroyableCard/DestroyableCard.tsx
|
2131
|
-
import
|
2505
|
+
import React56, { useRef as useRef8, useState as useState16 } from "react";
|
2132
2506
|
|
2133
2507
|
// components/elements/interfaceSettings/InterfaceSettings.tsx
|
2134
|
-
import
|
2508
|
+
import React57, { useState as useState17 } from "react";
|
2135
2509
|
|
2136
2510
|
// components/hooks/useClipboard.ts
|
2137
2511
|
import { useState as useState18 } from "react";
|
@@ -2180,7 +2554,7 @@ var CodeBlock = ({
|
|
2180
2554
|
sm: "hawa-w-full hawa-max-w-sm",
|
2181
2555
|
xs: "hawa-w-full hawa-max-w-xs"
|
2182
2556
|
};
|
2183
|
-
return /* @__PURE__ */
|
2557
|
+
return /* @__PURE__ */ React58.createElement(
|
2184
2558
|
"div",
|
2185
2559
|
{
|
2186
2560
|
className: cn(
|
@@ -2189,7 +2563,7 @@ var CodeBlock = ({
|
|
2189
2563
|
className
|
2190
2564
|
)
|
2191
2565
|
},
|
2192
|
-
fileName && /* @__PURE__ */
|
2566
|
+
fileName && /* @__PURE__ */ React58.createElement(
|
2193
2567
|
"div",
|
2194
2568
|
{
|
2195
2569
|
className: cn(
|
@@ -2197,7 +2571,7 @@ var CodeBlock = ({
|
|
2197
2571
|
fileName && tabs ? "hawa-bg-gray-300 dark:hawa-bg-muted/50" : "hawa-bg-gray-200"
|
2198
2572
|
)
|
2199
2573
|
},
|
2200
|
-
/* @__PURE__ */
|
2574
|
+
/* @__PURE__ */ React58.createElement(
|
2201
2575
|
"div",
|
2202
2576
|
{
|
2203
2577
|
className: cn(
|
@@ -2207,7 +2581,7 @@ var CodeBlock = ({
|
|
2207
2581
|
fileName
|
2208
2582
|
)
|
2209
2583
|
),
|
2210
|
-
tabs && /* @__PURE__ */
|
2584
|
+
tabs && /* @__PURE__ */ React58.createElement(
|
2211
2585
|
"div",
|
2212
2586
|
{
|
2213
2587
|
className: cn(
|
@@ -2215,7 +2589,7 @@ var CodeBlock = ({
|
|
2215
2589
|
tabs && fileName && "hawa-rounded-t-none"
|
2216
2590
|
)
|
2217
2591
|
},
|
2218
|
-
tabs.map((tab, i) => /* @__PURE__ */
|
2592
|
+
tabs.map((tab, i) => /* @__PURE__ */ React58.createElement(
|
2219
2593
|
"div",
|
2220
2594
|
{
|
2221
2595
|
key: i,
|
@@ -2223,7 +2597,7 @@ var CodeBlock = ({
|
|
2223
2597
|
selectedTab === i ? " hawa-border-b-2 hawa-border-primary" : "hawa-bg-transparent"
|
2224
2598
|
)
|
2225
2599
|
},
|
2226
|
-
/* @__PURE__ */
|
2600
|
+
/* @__PURE__ */ React58.createElement(
|
2227
2601
|
"div",
|
2228
2602
|
{
|
2229
2603
|
onClick: () => setSelectedTab(i),
|
@@ -2235,7 +2609,7 @@ var CodeBlock = ({
|
|
2235
2609
|
)
|
2236
2610
|
))
|
2237
2611
|
),
|
2238
|
-
/* @__PURE__ */
|
2612
|
+
/* @__PURE__ */ React58.createElement(
|
2239
2613
|
"div",
|
2240
2614
|
{
|
2241
2615
|
className: cn(
|
@@ -2243,26 +2617,26 @@ var CodeBlock = ({
|
|
2243
2617
|
tabs || fileName ? "hawa-rounded-b hawa-rounded-t-none" : "hawa-rounded"
|
2244
2618
|
)
|
2245
2619
|
},
|
2246
|
-
/* @__PURE__ */
|
2620
|
+
/* @__PURE__ */ React58.createElement(
|
2247
2621
|
Highlight,
|
2248
2622
|
{
|
2249
2623
|
theme,
|
2250
2624
|
code: tabs ? tabs[selectedTab].code : code || "",
|
2251
2625
|
language
|
2252
2626
|
},
|
2253
|
-
({ className: className2, style, tokens, getLineProps, getTokenProps }) => /* @__PURE__ */
|
2627
|
+
({ className: className2, style, tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ React58.createElement("pre", { className: "hawa-min-h-[37.75px] hawa-w-full hawa-overflow-auto hawa-p-4 hawa-font-mono hawa-text-foreground" }, tokens.map((line, i) => /* @__PURE__ */ React58.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ React58.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ React58.createElement("span", { key, ...getTokenProps({ token }) })))))
|
2254
2628
|
),
|
2255
|
-
/* @__PURE__ */
|
2629
|
+
/* @__PURE__ */ React58.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-p-2" }, /* @__PURE__ */ React58.createElement(
|
2256
2630
|
Tooltip,
|
2257
2631
|
{
|
2258
2632
|
open: clipboard.copied,
|
2259
2633
|
side: "left",
|
2260
|
-
content: /* @__PURE__ */
|
2634
|
+
content: /* @__PURE__ */ React58.createElement("div", null, "Copied!"),
|
2261
2635
|
triggerProps: {
|
2262
2636
|
asChild: true
|
2263
2637
|
}
|
2264
2638
|
},
|
2265
|
-
/* @__PURE__ */
|
2639
|
+
/* @__PURE__ */ React58.createElement(
|
2266
2640
|
Button,
|
2267
2641
|
{
|
2268
2642
|
size: "icon",
|
@@ -2270,7 +2644,7 @@ var CodeBlock = ({
|
|
2270
2644
|
variant: "outline",
|
2271
2645
|
className: "hawa-text-foreground hawa-opacity-50 sm:hawa-opacity-100"
|
2272
2646
|
},
|
2273
|
-
/* @__PURE__ */
|
2647
|
+
/* @__PURE__ */ React58.createElement(
|
2274
2648
|
"svg",
|
2275
2649
|
{
|
2276
2650
|
"aria-label": "Copy Icon",
|
@@ -2283,8 +2657,8 @@ var CodeBlock = ({
|
|
2283
2657
|
height: "1em",
|
2284
2658
|
width: "1em"
|
2285
2659
|
},
|
2286
|
-
/* @__PURE__ */
|
2287
|
-
/* @__PURE__ */
|
2660
|
+
/* @__PURE__ */ React58.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
2661
|
+
/* @__PURE__ */ React58.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
2288
2662
|
)
|
2289
2663
|
)
|
2290
2664
|
))
|