@sikka/hawa 0.48.1-next → 0.49.0-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.js +3 -28
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs +3 -28
- package/dist/accordion/index.mjs.map +1 -1
- package/dist/alert/index.js +53 -98
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs +53 -98
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.d.mts +2 -0
- package/dist/appLayout/index.d.ts +2 -0
- package/dist/appLayout/index.js +263 -409
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +263 -409
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appMenubar/index.js +15 -20
- package/dist/appMenubar/index.js.map +1 -1
- package/dist/appMenubar/index.mjs +15 -20
- package/dist/appMenubar/index.mjs.map +1 -1
- package/dist/appTabs/index.js +28 -37
- package/dist/appTabs/index.js.map +1 -1
- package/dist/appTabs/index.mjs +28 -37
- package/dist/appTabs/index.mjs.map +1 -1
- package/dist/appTopbar/index.js +125 -173
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs +125 -173
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/avatar/index.js.map +1 -1
- package/dist/avatar/index.mjs.map +1 -1
- package/dist/backToTop/index.js +50 -82
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs +50 -82
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/badge/index.d.mts +1 -1
- package/dist/badge/index.d.ts +1 -1
- package/dist/badge/index.js +2 -18
- package/dist/badge/index.js.map +1 -1
- package/dist/badge/index.mjs +2 -18
- package/dist/badge/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +202 -468
- package/dist/blocks/auth/index.mjs +96 -280
- package/dist/blocks/feedback/index.js +214 -375
- package/dist/blocks/feedback/index.mjs +12 -25
- package/dist/blocks/index.js +604 -1122
- package/dist/blocks/index.mjs +132 -291
- package/dist/blocks/misc/index.js +136 -251
- package/dist/blocks/misc/index.mjs +29 -54
- package/dist/blocks/pricing/index.js +220 -397
- package/dist/blocks/pricing/index.mjs +63 -134
- package/dist/breadcrumb/index.js +1 -5
- package/dist/breadcrumb/index.js.map +1 -1
- package/dist/breadcrumb/index.mjs +1 -5
- package/dist/breadcrumb/index.mjs.map +1 -1
- package/dist/button/index.js +50 -82
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +50 -82
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.js +50 -82
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs +50 -82
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/card/index.js +7 -35
- package/dist/card/index.js.map +1 -1
- package/dist/card/index.mjs +7 -35
- package/dist/card/index.mjs.map +1 -1
- package/dist/carousel/index.js +15 -27
- package/dist/carousel/index.js.map +1 -1
- package/dist/carousel/index.mjs +15 -27
- package/dist/carousel/index.mjs.map +1 -1
- package/dist/checkbox/index.js +2 -13
- package/dist/checkbox/index.js.map +1 -1
- package/dist/checkbox/index.mjs +2 -13
- package/dist/checkbox/index.mjs.map +1 -1
- package/dist/chip/index.js +2 -16
- package/dist/chip/index.js.map +1 -1
- package/dist/chip/index.mjs +2 -16
- package/dist/chip/index.mjs.map +1 -1
- package/dist/{chunk-WUMDFBEK.mjs → chunk-3CHFVHTW.mjs} +43 -54
- package/dist/{chunk-2LUXOXAL.mjs → chunk-5SQBJRWE.mjs} +3 -9
- package/dist/{chunk-C2UOOH4X.mjs → chunk-B53SP2WZ.mjs} +3 -17
- package/dist/chunk-GHGWQVTM.mjs +150 -0
- package/dist/{chunk-5S5DR7KF.mjs → chunk-I23ONEDJ.mjs} +2 -10
- package/dist/{chunk-JFWD2ICY.mjs → chunk-JT7R3L5O.mjs} +54 -62
- package/dist/{chunk-6SJUUJOV.mjs → chunk-KDGJZPWK.mjs} +295 -574
- package/dist/{chunk-AWJSHOYU.mjs → chunk-KSJGXQTE.mjs} +1 -1
- package/dist/{chunk-NMW4GM4G.mjs → chunk-SE2JMXYG.mjs} +104 -144
- package/dist/{chunk-GBLWUEYN.mjs → chunk-ULRL4WI6.mjs} +176 -256
- package/dist/{chunk-IFWYR5W2.mjs → chunk-VUELRPUL.mjs} +57 -117
- package/dist/{chunk-WL7C2A5D.mjs → chunk-WQR4XZGL.mjs} +8 -15
- package/dist/codeBlock/index.js +50 -82
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +50 -82
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/colorPicker/index.js +21 -33
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs +22 -37
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/combobox/index.d.mts +1 -1
- package/dist/combobox/index.d.ts +1 -1
- package/dist/combobox/index.js +141 -223
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +141 -223
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.d.mts +1 -1
- package/dist/command/index.d.ts +1 -1
- package/dist/command/index.js +129 -212
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +129 -212
- package/dist/command/index.mjs.map +1 -1
- package/dist/dataTable/index.js +254 -394
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +254 -394
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.js +64 -105
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +64 -105
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/destroyableCard/index.js +8 -39
- package/dist/destroyableCard/index.js.map +1 -1
- package/dist/destroyableCard/index.mjs +8 -39
- package/dist/destroyableCard/index.mjs.map +1 -1
- package/dist/dialog/index.js +70 -122
- package/dist/dialog/index.js.map +1 -1
- package/dist/dialog/index.mjs +70 -122
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/docsLayout/index.js +169 -358
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +169 -358
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/docsSidebar/index.js +9 -16
- package/dist/docsSidebar/index.js.map +1 -1
- package/dist/docsSidebar/index.mjs +9 -16
- package/dist/docsSidebar/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.js +124 -164
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +124 -164
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +3 -3
- package/dist/elements/index.d.ts +3 -3
- package/dist/elements/index.js +841 -1505
- package/dist/elements/index.mjs +381 -718
- package/dist/fileDropzone/index.js +60 -159
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +60 -159
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/glow/index.js +4 -16
- package/dist/glow/index.js.map +1 -1
- package/dist/glow/index.mjs +4 -16
- package/dist/glow/index.mjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -5
- package/dist/hooks/index.d.ts +1 -5
- package/dist/hooks/index.js +11 -24
- package/dist/hooks/index.mjs +2 -2
- package/dist/{index-B0aJcA6d.d.ts → index-BgNycocQ.d.mts} +2 -2
- package/dist/{index-B0aJcA6d.d.mts → index-BgNycocQ.d.ts} +2 -2
- package/dist/index.css +1 -2
- package/dist/index.d.mts +6 -8
- package/dist/index.d.ts +6 -8
- package/dist/index.js +1194 -2170
- package/dist/index.mjs +1195 -2174
- package/dist/input/index.js +20 -29
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +20 -29
- package/dist/input/index.mjs.map +1 -1
- package/dist/interfaceSettings/index.js +122 -163
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +122 -163
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/label/index.js +19 -26
- package/dist/label/index.js.map +1 -1
- package/dist/label/index.mjs +19 -26
- package/dist/label/index.mjs.map +1 -1
- package/dist/layout/index.d.mts +2 -0
- package/dist/layout/index.d.ts +2 -0
- package/dist/layout/index.js +434 -790
- package/dist/layout/index.mjs +143 -243
- package/dist/loading/index.js +30 -53
- package/dist/loading/index.js.map +1 -1
- package/dist/loading/index.mjs +30 -53
- package/dist/loading/index.mjs.map +1 -1
- package/dist/logos/index.js +66 -191
- package/dist/logos/index.js.map +1 -1
- package/dist/logos/index.mjs +66 -191
- package/dist/logos/index.mjs.map +1 -1
- package/dist/navbar/index.js +1 -4
- package/dist/navbar/index.js.map +1 -1
- package/dist/navbar/index.mjs +1 -4
- package/dist/navbar/index.mjs.map +1 -1
- package/dist/navigationMenu/index.js +14 -22
- package/dist/navigationMenu/index.js.map +1 -1
- package/dist/navigationMenu/index.mjs +14 -22
- package/dist/navigationMenu/index.mjs.map +1 -1
- package/dist/pagination/index.js +1 -5
- package/dist/pagination/index.js.map +1 -1
- package/dist/pagination/index.mjs +1 -5
- package/dist/pagination/index.mjs.map +1 -1
- package/dist/passwordInput/index.js +36 -65
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +36 -65
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js +20 -29
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +20 -29
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/pinInput/index.js +14 -16
- package/dist/pinInput/index.js.map +1 -1
- package/dist/pinInput/index.mjs +14 -16
- package/dist/pinInput/index.mjs.map +1 -1
- package/dist/popover/index.js +14 -24
- package/dist/popover/index.js.map +1 -1
- package/dist/popover/index.mjs +14 -24
- package/dist/popover/index.mjs.map +1 -1
- package/dist/progress/index.js +19 -26
- package/dist/progress/index.js.map +1 -1
- package/dist/progress/index.mjs +19 -26
- package/dist/progress/index.mjs.map +1 -1
- package/dist/progressCircle/index.js +67 -71
- package/dist/progressCircle/index.js.map +1 -1
- package/dist/progressCircle/index.mjs +67 -71
- package/dist/progressCircle/index.mjs.map +1 -1
- package/dist/radio/index.js +122 -163
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +122 -163
- package/dist/radio/index.mjs.map +1 -1
- package/dist/scrollArea/index.js.map +1 -1
- package/dist/scrollArea/index.mjs.map +1 -1
- package/dist/scrollIndicator/index.js +1 -4
- package/dist/scrollIndicator/index.js.map +1 -1
- package/dist/scrollIndicator/index.mjs +1 -4
- package/dist/scrollIndicator/index.mjs.map +1 -1
- package/dist/select/index.js +20 -29
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +20 -29
- package/dist/select/index.mjs.map +1 -1
- package/dist/separator/index.js.map +1 -1
- package/dist/separator/index.mjs.map +1 -1
- package/dist/sheet/index.js +42 -53
- package/dist/sheet/index.js.map +1 -1
- package/dist/sheet/index.mjs +42 -53
- package/dist/sheet/index.mjs.map +1 -1
- package/dist/sidebar/index.js +66 -133
- package/dist/sidebar/index.js.map +1 -1
- package/dist/sidebar/index.mjs +66 -133
- package/dist/sidebar/index.mjs.map +1 -1
- package/dist/signature/index.js +19 -26
- package/dist/signature/index.js.map +1 -1
- package/dist/signature/index.mjs +19 -26
- package/dist/signature/index.mjs.map +1 -1
- package/dist/simpleTable/index.js +50 -81
- package/dist/simpleTable/index.js.map +1 -1
- package/dist/simpleTable/index.mjs +50 -81
- package/dist/simpleTable/index.mjs.map +1 -1
- package/dist/skeleton/index.js.map +1 -1
- package/dist/skeleton/index.mjs.map +1 -1
- package/dist/slider/index.js.map +1 -1
- package/dist/slider/index.mjs.map +1 -1
- package/dist/sonner/index.js.map +1 -1
- package/dist/sonner/index.mjs.map +1 -1
- package/dist/sortButton/index.js +50 -82
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs +50 -82
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.js +214 -294
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +214 -294
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/stats/index.js +7 -35
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs +7 -35
- package/dist/stats/index.mjs.map +1 -1
- package/dist/switch/index.js +24 -34
- package/dist/switch/index.js.map +1 -1
- package/dist/switch/index.mjs +24 -34
- package/dist/switch/index.mjs.map +1 -1
- package/dist/table/index.js +27 -29
- package/dist/table/index.js.map +1 -1
- package/dist/table/index.mjs +27 -29
- package/dist/table/index.mjs.map +1 -1
- package/dist/tabs/index.js +54 -76
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +54 -76
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/textarea/index.js +21 -38
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs +21 -38
- package/dist/textarea/index.mjs.map +1 -1
- package/dist/toast/index.js +2 -10
- package/dist/toast/index.js.map +1 -1
- package/dist/toast/index.mjs +2 -10
- package/dist/toast/index.mjs.map +1 -1
- package/dist/toaster/index.js +3 -16
- package/dist/toaster/index.js.map +1 -1
- package/dist/toaster/index.mjs +3 -16
- package/dist/toaster/index.mjs.map +1 -1
- package/dist/tooltip/index.js +19 -26
- package/dist/tooltip/index.js.map +1 -1
- package/dist/tooltip/index.mjs +19 -26
- package/dist/tooltip/index.mjs.map +1 -1
- package/package.json +12 -12
- package/dist/chunk-JP2N5WKD.mjs +0 -190
package/dist/elements/index.js
CHANGED
@@ -214,13 +214,7 @@ var calculateLuminance = (color) => {
|
|
214
214
|
|
215
215
|
// elements/card/Card.tsx
|
216
216
|
var Card = React.forwardRef(
|
217
|
-
({
|
218
|
-
className,
|
219
|
-
variant = "default",
|
220
|
-
clickable = false,
|
221
|
-
asContainer = false,
|
222
|
-
...props
|
223
|
-
}, ref) => {
|
217
|
+
({ className, variant = "default", clickable = false, asContainer = false, ...props }, ref) => {
|
224
218
|
let variantStyles = {
|
225
219
|
default: cn(
|
226
220
|
"hawa-rounded hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
|
@@ -232,14 +226,7 @@ var Card = React.forwardRef(
|
|
232
226
|
clickable && "hawa-cursor-pointer active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"
|
233
227
|
)
|
234
228
|
};
|
235
|
-
return /* @__PURE__ */ React.createElement(
|
236
|
-
"div",
|
237
|
-
{
|
238
|
-
ref,
|
239
|
-
className: cn(!asContainer && variantStyles[variant], className),
|
240
|
-
...props
|
241
|
-
}
|
242
|
-
);
|
229
|
+
return /* @__PURE__ */ React.createElement("div", { ref, className: cn(!asContainer && variantStyles[variant], className), ...props });
|
243
230
|
}
|
244
231
|
);
|
245
232
|
var CardHeader = React.forwardRef(
|
@@ -247,30 +234,15 @@ var CardHeader = React.forwardRef(
|
|
247
234
|
"div",
|
248
235
|
{
|
249
236
|
ref,
|
250
|
-
className: cn(
|
251
|
-
"hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
|
252
|
-
className
|
253
|
-
),
|
237
|
+
className: cn("hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6", className),
|
254
238
|
...props
|
255
239
|
}
|
256
240
|
), props.actions && /* @__PURE__ */ React.createElement("div", { className: "hawa-p-6" }, props.actions))
|
257
241
|
);
|
258
|
-
var CardTitle = React.forwardRef(
|
259
|
-
"h3",
|
260
|
-
|
261
|
-
|
262
|
-
className: cn("hawa-text-2xl hawa-font-semibold", className),
|
263
|
-
...props
|
264
|
-
}
|
265
|
-
));
|
266
|
-
var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
267
|
-
"p",
|
268
|
-
{
|
269
|
-
ref,
|
270
|
-
className: cn("hawa-text-sm hawa-text-muted-foreground", className),
|
271
|
-
...props
|
272
|
-
}
|
273
|
-
));
|
242
|
+
var CardTitle = React.forwardRef(
|
243
|
+
({ className, ...props }, ref) => /* @__PURE__ */ React.createElement("h3", { ref, className: cn("hawa-text-2xl hawa-font-semibold", className), ...props })
|
244
|
+
);
|
245
|
+
var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement("p", { ref, className: cn("hawa-text-sm hawa-text-muted-foreground", className), ...props }));
|
274
246
|
var CardContent = React.forwardRef(
|
275
247
|
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
276
248
|
"div",
|
@@ -336,57 +308,42 @@ var Loading = ({
|
|
336
308
|
};
|
337
309
|
switch (design.split("-")[0]) {
|
338
310
|
case "dots":
|
339
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
311
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: cn("hawa-flex hawa-flex-row hawa-gap-2", classNames == null ? void 0 : classNames.container) }, /* @__PURE__ */ import_react.default.createElement(
|
340
312
|
"div",
|
341
313
|
{
|
342
314
|
className: cn(
|
343
|
-
"hawa-
|
344
|
-
|
315
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
|
316
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles2[size],
|
317
|
+
animationStyles[design.split("-")[1]],
|
318
|
+
color ? color : "hawa-bg-primary"
|
345
319
|
)
|
346
|
-
}
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
),
|
369
|
-
/* @__PURE__ */ import_react.default.createElement(
|
370
|
-
"div",
|
371
|
-
{
|
372
|
-
className: cn(
|
373
|
-
"hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
|
374
|
-
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles2[size],
|
375
|
-
animationStyles[design.split("-")[1]],
|
376
|
-
color ? color : "hawa-bg-primary"
|
377
|
-
)
|
378
|
-
}
|
379
|
-
)
|
380
|
-
);
|
320
|
+
}
|
321
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
322
|
+
"div",
|
323
|
+
{
|
324
|
+
className: cn(
|
325
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
|
326
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles2[size],
|
327
|
+
animationStyles[design.split("-")[1]],
|
328
|
+
color ? color : "hawa-bg-primary"
|
329
|
+
)
|
330
|
+
}
|
331
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
332
|
+
"div",
|
333
|
+
{
|
334
|
+
className: cn(
|
335
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
|
336
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles2[size],
|
337
|
+
animationStyles[design.split("-")[1]],
|
338
|
+
color ? color : "hawa-bg-primary"
|
339
|
+
)
|
340
|
+
}
|
341
|
+
));
|
381
342
|
case "square":
|
382
343
|
return /* @__PURE__ */ import_react.default.createElement(
|
383
344
|
"svg",
|
384
345
|
{
|
385
|
-
className: cn(
|
386
|
-
"squircle-container",
|
387
|
-
sizeStyles2[size],
|
388
|
-
classNames == null ? void 0 : classNames.container
|
389
|
-
),
|
346
|
+
className: cn("squircle-container", sizeStyles2[size], classNames == null ? void 0 : classNames.container),
|
390
347
|
viewBox: "0 0 35 35",
|
391
348
|
height: "35",
|
392
349
|
width: "35"
|
@@ -427,11 +384,7 @@ var Loading = ({
|
|
427
384
|
height: "37",
|
428
385
|
width: "37",
|
429
386
|
preserveAspectRatio: "xMidYMid meet",
|
430
|
-
className: cn(
|
431
|
-
"squircle-container",
|
432
|
-
sizeStyles2[size],
|
433
|
-
classNames == null ? void 0 : classNames.container
|
434
|
-
)
|
387
|
+
className: cn("squircle-container", sizeStyles2[size], classNames == null ? void 0 : classNames.container)
|
435
388
|
},
|
436
389
|
/* @__PURE__ */ import_react.default.createElement(
|
437
390
|
"path",
|
@@ -474,11 +427,7 @@ var Loading = ({
|
|
474
427
|
viewBox: "0 0 40 40",
|
475
428
|
height: "40",
|
476
429
|
width: "40",
|
477
|
-
className: cn(
|
478
|
-
"circle-container",
|
479
|
-
sizeStyles2[size],
|
480
|
-
classNames == null ? void 0 : classNames.container
|
481
|
-
)
|
430
|
+
className: cn("circle-container", sizeStyles2[size], classNames == null ? void 0 : classNames.container)
|
482
431
|
},
|
483
432
|
/* @__PURE__ */ import_react.default.createElement(
|
484
433
|
"circle",
|
@@ -559,38 +508,31 @@ var Tooltip = ({
|
|
559
508
|
delayDuration = 300,
|
560
509
|
...props
|
561
510
|
}) => {
|
562
|
-
return /* @__PURE__ */ import_react2.default.createElement(
|
563
|
-
TooltipPrimitive.
|
511
|
+
return /* @__PURE__ */ import_react2.default.createElement(TooltipPrimitive.TooltipProvider, { delayDuration, ...providerProps }, /* @__PURE__ */ import_react2.default.createElement(
|
512
|
+
TooltipPrimitive.Root,
|
564
513
|
{
|
565
|
-
|
566
|
-
|
514
|
+
open: !disabled && open,
|
515
|
+
defaultOpen,
|
516
|
+
onOpenChange,
|
517
|
+
...props
|
567
518
|
},
|
519
|
+
/* @__PURE__ */ import_react2.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
568
520
|
/* @__PURE__ */ import_react2.default.createElement(
|
569
|
-
|
521
|
+
TooltipContent,
|
570
522
|
{
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
...
|
523
|
+
size,
|
524
|
+
side,
|
525
|
+
align: "center",
|
526
|
+
...contentProps,
|
527
|
+
style: {
|
528
|
+
...contentProps == null ? void 0 : contentProps.style,
|
529
|
+
maxWidth: "var(--radix-tooltip-content-available-width)",
|
530
|
+
maxHeight: "var(--radix-tooltip-content-available-height)"
|
531
|
+
}
|
575
532
|
},
|
576
|
-
|
577
|
-
/* @__PURE__ */ import_react2.default.createElement(
|
578
|
-
TooltipContent,
|
579
|
-
{
|
580
|
-
size,
|
581
|
-
side,
|
582
|
-
align: "center",
|
583
|
-
...contentProps,
|
584
|
-
style: {
|
585
|
-
...contentProps == null ? void 0 : contentProps.style,
|
586
|
-
maxWidth: "var(--radix-tooltip-content-available-width)",
|
587
|
-
maxHeight: "var(--radix-tooltip-content-available-height)"
|
588
|
-
}
|
589
|
-
},
|
590
|
-
content
|
591
|
-
)
|
533
|
+
content
|
592
534
|
)
|
593
|
-
);
|
535
|
+
));
|
594
536
|
};
|
595
537
|
|
596
538
|
// elements/skeleton/Skeleton.tsx
|
@@ -803,17 +745,11 @@ var DropdownMenuSeparator = React5.forwardRef(({ className, ...props }, ref) =>
|
|
803
745
|
}
|
804
746
|
));
|
805
747
|
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
806
|
-
var DropdownMenuShortcut = ({
|
807
|
-
className,
|
808
|
-
...props
|
809
|
-
}) => {
|
748
|
+
var DropdownMenuShortcut = ({ className, ...props }) => {
|
810
749
|
return /* @__PURE__ */ React5.createElement(
|
811
750
|
"span",
|
812
751
|
{
|
813
|
-
className: cn(
|
814
|
-
"hawa-text-xs hawa-tracking-widest hawa-opacity-60",
|
815
|
-
className
|
816
|
-
),
|
752
|
+
className: cn("hawa-text-xs hawa-tracking-widest hawa-opacity-60", className),
|
817
753
|
...props
|
818
754
|
}
|
819
755
|
);
|
@@ -850,178 +786,144 @@ var DropdownMenu = ({
|
|
850
786
|
default: "hawa-px-2 hawa-py-3 ",
|
851
787
|
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
852
788
|
};
|
853
|
-
let [values, setValues] = React5.useState(
|
854
|
-
|
855
|
-
|
856
|
-
return /* @__PURE__ */ React5.createElement(
|
857
|
-
DropdownMenuRoot,
|
789
|
+
let [values, setValues] = React5.useState(items.map((item) => item.currentOption));
|
790
|
+
return /* @__PURE__ */ React5.createElement(DropdownMenuRoot, { onOpenChange, open, modal: false, dir: direction }, /* @__PURE__ */ React5.createElement(
|
791
|
+
DropdownMenuTrigger,
|
858
792
|
{
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
dir: direction
|
793
|
+
asChild: true,
|
794
|
+
className: cn(classNames == null ? void 0 : classNames.trigger, triggerClassname),
|
795
|
+
...triggerProps
|
863
796
|
},
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
className: cn(
|
881
|
-
className,
|
882
|
-
classNames == null ? void 0 : classNames.content,
|
883
|
-
widthStyles[width],
|
884
|
-
"hawa-flex hawa-flex-col hawa-gap-1 hawa-overflow-y-auto"
|
885
|
-
),
|
886
|
-
style: {
|
887
|
-
maxHeight: "var(--radix-dropdown-menu-content-available-height)"
|
888
|
-
},
|
889
|
-
...contentProps
|
797
|
+
trigger
|
798
|
+
), /* @__PURE__ */ React5.createElement(import_react4.Portal, null, /* @__PURE__ */ React5.createElement(
|
799
|
+
DropdownMenuContent,
|
800
|
+
{
|
801
|
+
side,
|
802
|
+
sideOffset,
|
803
|
+
align,
|
804
|
+
alignOffset,
|
805
|
+
className: cn(
|
806
|
+
className,
|
807
|
+
classNames == null ? void 0 : classNames.content,
|
808
|
+
widthStyles[width],
|
809
|
+
"hawa-flex hawa-flex-col hawa-gap-1 hawa-overflow-y-auto"
|
810
|
+
),
|
811
|
+
style: {
|
812
|
+
maxHeight: "var(--radix-dropdown-menu-content-available-height)"
|
890
813
|
},
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
}
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
item.label && item.label
|
915
|
-
), /* @__PURE__ */ React5.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React5.createElement(
|
916
|
-
DropdownMenuRadioGroup,
|
917
|
-
{
|
918
|
-
value: values[index],
|
919
|
-
onValueChange: (e) => {
|
920
|
-
let newValues = [...values];
|
921
|
-
newValues[index] = e;
|
922
|
-
setValues(newValues);
|
923
|
-
console.log("changing to ", e);
|
924
|
-
if (item.onOptionChange) {
|
925
|
-
item.onOptionChange(e);
|
926
|
-
}
|
814
|
+
...contentProps
|
815
|
+
},
|
816
|
+
header && header,
|
817
|
+
items && items.map((item, index) => {
|
818
|
+
var _a;
|
819
|
+
const ItemLinkComponent = item.slug ? LinkComponent : "a";
|
820
|
+
if (item.itemType === "separator") {
|
821
|
+
return /* @__PURE__ */ React5.createElement(DropdownMenuSeparator, { key: index, className: classNames == null ? void 0 : classNames.separator });
|
822
|
+
} else if (item.itemType === "label") {
|
823
|
+
return /* @__PURE__ */ React5.createElement(DropdownMenuLabel, { key: index }, item.label);
|
824
|
+
} else if (item.itemType === "radio") {
|
825
|
+
let dd = item.currentOption;
|
826
|
+
return /* @__PURE__ */ React5.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React5.createElement(DropdownMenuSubTrigger, { dir: direction, className: cn(sizeStyles2[size]) }, item.icon && item.icon, item.label && item.label), /* @__PURE__ */ React5.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React5.createElement(
|
827
|
+
DropdownMenuRadioGroup,
|
828
|
+
{
|
829
|
+
value: values[index],
|
830
|
+
onValueChange: (e) => {
|
831
|
+
let newValues = [...values];
|
832
|
+
newValues[index] = e;
|
833
|
+
setValues(newValues);
|
834
|
+
console.log("changing to ", e);
|
835
|
+
if (item.onOptionChange) {
|
836
|
+
item.onOptionChange(e);
|
927
837
|
}
|
928
|
-
}
|
929
|
-
|
930
|
-
)))
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
className: cn(sizeStyles2[size])
|
939
|
-
},
|
940
|
-
item.icon && item.icon,
|
941
|
-
item.label && item.label
|
942
|
-
), /* @__PURE__ */ React5.createElement(import_react4.Portal, null, /* @__PURE__ */ React5.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
943
|
-
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
944
|
-
return /* @__PURE__ */ React5.createElement(
|
945
|
-
DropdownMenuItem,
|
946
|
-
{
|
947
|
-
key: subIndex,
|
948
|
-
LinkComponent: SubitemLinkComponent,
|
949
|
-
slug: subitem.slug,
|
950
|
-
disabled: subitem.disabled,
|
951
|
-
className: cn(
|
952
|
-
sizeStyles2[size],
|
953
|
-
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent"
|
954
|
-
),
|
955
|
-
onMouseDown: (event) => {
|
956
|
-
if (event.button === 1 || event.button === 0 && event.ctrlKey) {
|
957
|
-
event.preventDefault();
|
958
|
-
if (subitem.onMiddleClick) {
|
959
|
-
subitem.onMiddleClick(item.value);
|
960
|
-
}
|
961
|
-
}
|
962
|
-
},
|
963
|
-
onSelect: () => {
|
964
|
-
subitem.action && subitem.action();
|
965
|
-
if (onItemSelect) {
|
966
|
-
onItemSelect(subitem.value);
|
967
|
-
}
|
968
|
-
}
|
969
|
-
},
|
970
|
-
subitem.icon && subitem.icon,
|
971
|
-
subitem.label && subitem.label
|
972
|
-
);
|
973
|
-
})))) : /* @__PURE__ */ React5.createElement(
|
838
|
+
}
|
839
|
+
},
|
840
|
+
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React5.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
|
841
|
+
)));
|
842
|
+
} else if (item.itemType === "custom") {
|
843
|
+
return /* @__PURE__ */ React5.createElement("div", { key: index }, item.content);
|
844
|
+
} else {
|
845
|
+
return item.subitems ? /* @__PURE__ */ React5.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React5.createElement(DropdownMenuSubTrigger, { dir: direction, className: cn(sizeStyles2[size]) }, item.icon && item.icon, item.label && item.label), /* @__PURE__ */ React5.createElement(import_react4.Portal, null, /* @__PURE__ */ React5.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
846
|
+
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
847
|
+
return /* @__PURE__ */ React5.createElement(
|
974
848
|
DropdownMenuItem,
|
975
849
|
{
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
disabled:
|
850
|
+
key: subIndex,
|
851
|
+
LinkComponent: SubitemLinkComponent,
|
852
|
+
slug: subitem.slug,
|
853
|
+
disabled: subitem.disabled,
|
854
|
+
className: cn(
|
855
|
+
sizeStyles2[size],
|
856
|
+
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent"
|
857
|
+
),
|
980
858
|
onMouseDown: (event) => {
|
981
859
|
if (event.button === 1 || event.button === 0 && event.ctrlKey) {
|
982
860
|
event.preventDefault();
|
983
|
-
if (
|
984
|
-
|
861
|
+
if (subitem.onMiddleClick) {
|
862
|
+
subitem.onMiddleClick(item.value);
|
985
863
|
}
|
986
864
|
}
|
987
865
|
},
|
988
|
-
|
989
|
-
|
990
|
-
|
866
|
+
onSelect: () => {
|
867
|
+
subitem.action && subitem.action();
|
868
|
+
if (onItemSelect) {
|
869
|
+
onItemSelect(subitem.value);
|
991
870
|
}
|
992
|
-
}
|
993
|
-
|
994
|
-
|
995
|
-
|
871
|
+
}
|
872
|
+
},
|
873
|
+
subitem.icon && subitem.icon,
|
874
|
+
subitem.label && subitem.label
|
875
|
+
);
|
876
|
+
})))) : /* @__PURE__ */ React5.createElement(
|
877
|
+
DropdownMenuItem,
|
878
|
+
{
|
879
|
+
LinkComponent: ItemLinkComponent,
|
880
|
+
slug: item.slug,
|
881
|
+
key: index,
|
882
|
+
disabled: item.disabled,
|
883
|
+
onMouseDown: (event) => {
|
884
|
+
if (event.button === 1 || event.button === 0 && event.ctrlKey) {
|
885
|
+
event.preventDefault();
|
886
|
+
if (item.onMiddleClick) {
|
887
|
+
item.onMiddleClick(item.value);
|
996
888
|
}
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
889
|
+
}
|
890
|
+
},
|
891
|
+
onClick: (event) => {
|
892
|
+
if (item.onClick) {
|
893
|
+
item.onClick(item.value);
|
894
|
+
}
|
895
|
+
},
|
896
|
+
onSelect: (e) => {
|
897
|
+
if (item.presist) {
|
898
|
+
e.preventDefault();
|
899
|
+
}
|
900
|
+
if (item.action) {
|
901
|
+
item.action();
|
902
|
+
if (onItemSelect) {
|
903
|
+
onItemSelect(item.value);
|
1006
904
|
}
|
1007
|
-
}
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
sizeStyles2[size],
|
1013
|
-
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent",
|
1014
|
-
item.presist && "focus:hawa-bg-transparent",
|
1015
|
-
classNames == null ? void 0 : classNames.item
|
1016
|
-
)
|
905
|
+
} else {
|
906
|
+
if (onItemSelect) {
|
907
|
+
onItemSelect(item.value);
|
908
|
+
}
|
909
|
+
}
|
1017
910
|
},
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
911
|
+
end: item.end,
|
912
|
+
shortcut: item.shortcut,
|
913
|
+
badged: item.badged,
|
914
|
+
className: cn(
|
915
|
+
sizeStyles2[size],
|
916
|
+
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent",
|
917
|
+
item.presist && "focus:hawa-bg-transparent",
|
918
|
+
classNames == null ? void 0 : classNames.item
|
919
|
+
)
|
920
|
+
},
|
921
|
+
item.icon && item.icon,
|
922
|
+
item.label && item.label
|
923
|
+
);
|
924
|
+
}
|
925
|
+
})
|
926
|
+
)));
|
1025
927
|
};
|
1026
928
|
var DropdownMenuRadio = (props) => {
|
1027
929
|
const ariaLabel = props.label ? `${props.label} radio group` : void 0;
|
@@ -1064,16 +966,7 @@ var AccordionPrimitive3 = __toESM(require("@radix-ui/react-accordion"));
|
|
1064
966
|
// elements/chip/Chip.tsx
|
1065
967
|
var import_react5 = __toESM(require("react"));
|
1066
968
|
var Chip = import_react5.default.forwardRef(
|
1067
|
-
({
|
1068
|
-
label,
|
1069
|
-
size = "normal",
|
1070
|
-
icon,
|
1071
|
-
color,
|
1072
|
-
radius = "inherit",
|
1073
|
-
dot,
|
1074
|
-
dotStatus = "none",
|
1075
|
-
...rest
|
1076
|
-
}, ref) => {
|
969
|
+
({ label, size = "normal", icon, color, radius = "inherit", dot, dotStatus = "none", ...rest }, ref) => {
|
1077
970
|
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 ";
|
1078
971
|
let radiusStyles = {
|
1079
972
|
inherit: " hawa-rounded",
|
@@ -1120,12 +1013,7 @@ var Chip = import_react5.default.forwardRef(
|
|
1120
1013
|
rest.className
|
1121
1014
|
)
|
1122
1015
|
},
|
1123
|
-
dot && /* @__PURE__ */ import_react5.default.createElement(
|
1124
|
-
"span",
|
1125
|
-
{
|
1126
|
-
className: cn(dotStyles[size], dotStatusStyles[dotStatus])
|
1127
|
-
}
|
1128
|
-
),
|
1016
|
+
dot && /* @__PURE__ */ import_react5.default.createElement("span", { className: cn(dotStyles[size], dotStatusStyles[dotStatus]) }),
|
1129
1017
|
icon && icon,
|
1130
1018
|
label
|
1131
1019
|
);
|
@@ -1235,18 +1123,7 @@ var Accordion = React9.forwardRef(
|
|
1235
1123
|
triggerclassNames
|
1236
1124
|
)
|
1237
1125
|
},
|
1238
|
-
/* @__PURE__ */ React9.createElement(
|
1239
|
-
"span",
|
1240
|
-
{
|
1241
|
-
className: cn(
|
1242
|
-
"hawa-flex hawa-flex-row",
|
1243
|
-
item.chip && "hawa-gap-2"
|
1244
|
-
)
|
1245
|
-
},
|
1246
|
-
item.trigger,
|
1247
|
-
" ",
|
1248
|
-
item.chip && /* @__PURE__ */ React9.createElement(Chip, { ...item.chip })
|
1249
|
-
)
|
1126
|
+
/* @__PURE__ */ React9.createElement("span", { className: cn("hawa-flex hawa-flex-row", item.chip && "hawa-gap-2") }, item.trigger, " ", item.chip && /* @__PURE__ */ React9.createElement(Chip, { ...item.chip }))
|
1250
1127
|
),
|
1251
1128
|
/* @__PURE__ */ React9.createElement(
|
1252
1129
|
AccordionContent,
|
@@ -1428,22 +1305,13 @@ var Logos = {
|
|
1428
1305
|
}
|
1429
1306
|
)
|
1430
1307
|
),
|
1431
|
-
hawa: (props) => /* @__PURE__ */ import_react6.default.createElement(
|
1432
|
-
"
|
1308
|
+
hawa: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlSpace: "preserve", viewBox: "0 0 765 765", ...props }, /* @__PURE__ */ import_react6.default.createElement(
|
1309
|
+
"path",
|
1433
1310
|
{
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
},
|
1439
|
-
/* @__PURE__ */ import_react6.default.createElement(
|
1440
|
-
"path",
|
1441
|
-
{
|
1442
|
-
d: "M382.5 0C171.6 0 0 171.6 0 382.5V765h382.5C593.4 765 765 593.4 765 382.5S593.4 0 382.5 0zM281.6 305.7c98 0 177.7 79.7 177.7 177.7 0 98-79.7 177.7-177.7 177.7s-177.7-79.7-177.7-177.7c0-98 79.7-177.7 177.7-177.7zm246 314.5c23.2-41.6 35.6-88.7 35.6-136.7 0-155.3-126.3-281.6-281.6-281.6-48 0-95.1 12.4-136.8 35.6C194.9 156 285 104 382.5 104c153.6 0 278.6 125 278.6 278.6 0 97.3-52 187.5-133.5 237.6z",
|
1443
|
-
fill: "currentColor"
|
1444
|
-
}
|
1445
|
-
)
|
1446
|
-
),
|
1311
|
+
d: "M382.5 0C171.6 0 0 171.6 0 382.5V765h382.5C593.4 765 765 593.4 765 382.5S593.4 0 382.5 0zM281.6 305.7c98 0 177.7 79.7 177.7 177.7 0 98-79.7 177.7-177.7 177.7s-177.7-79.7-177.7-177.7c0-98 79.7-177.7 177.7-177.7zm246 314.5c23.2-41.6 35.6-88.7 35.6-136.7 0-155.3-126.3-281.6-281.6-281.6-48 0-95.1 12.4-136.8 35.6C194.9 156 285 104 382.5 104c153.6 0 278.6 125 278.6 278.6 0 97.3-52 187.5-133.5 237.6z",
|
1312
|
+
fill: "currentColor"
|
1313
|
+
}
|
1314
|
+
)),
|
1447
1315
|
sikka: (props) => /* @__PURE__ */ import_react6.default.createElement(
|
1448
1316
|
"svg",
|
1449
1317
|
{
|
@@ -1512,101 +1380,42 @@ var Logos = {
|
|
1512
1380
|
d: "M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"
|
1513
1381
|
}
|
1514
1382
|
)),
|
1515
|
-
instagram: (props) => /* @__PURE__ */ import_react6.default.createElement(
|
1516
|
-
|
1383
|
+
instagram: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 16 16", ...props }, /* @__PURE__ */ import_react6.default.createElement("path", { d: "M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z" })),
|
1384
|
+
telegram: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ import_react6.default.createElement("title", null, "Telegram"), /* @__PURE__ */ import_react6.default.createElement(
|
1385
|
+
"path",
|
1517
1386
|
{
|
1518
|
-
xmlns: "http://www.w3.org/2000/svg",
|
1519
1387
|
fill: "currentColor",
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1525
|
-
telegram: (props) => /* @__PURE__ */ import_react6.default.createElement(
|
1526
|
-
"svg",
|
1388
|
+
d: "M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"
|
1389
|
+
}
|
1390
|
+
)),
|
1391
|
+
youtube: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ import_react6.default.createElement("title", null, "YouTube"), /* @__PURE__ */ import_react6.default.createElement(
|
1392
|
+
"path",
|
1527
1393
|
{
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
/* @__PURE__ */ import_react6.default.createElement(
|
1535
|
-
"path",
|
1536
|
-
{
|
1537
|
-
fill: "currentColor",
|
1538
|
-
d: "M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"
|
1539
|
-
}
|
1540
|
-
)
|
1541
|
-
),
|
1542
|
-
youtube: (props) => /* @__PURE__ */ import_react6.default.createElement(
|
1543
|
-
"svg",
|
1394
|
+
fill: "currentColor",
|
1395
|
+
d: "M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"
|
1396
|
+
}
|
1397
|
+
)),
|
1398
|
+
tiktok: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ import_react6.default.createElement("title", null, "TikTok"), /* @__PURE__ */ import_react6.default.createElement(
|
1399
|
+
"path",
|
1544
1400
|
{
|
1545
|
-
|
1546
|
-
|
1547
|
-
|
1548
|
-
|
1549
|
-
|
1550
|
-
|
1551
|
-
/* @__PURE__ */ import_react6.default.createElement(
|
1552
|
-
"path",
|
1553
|
-
{
|
1554
|
-
fill: "currentColor",
|
1555
|
-
d: "M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"
|
1556
|
-
}
|
1557
|
-
)
|
1558
|
-
),
|
1559
|
-
tiktok: (props) => /* @__PURE__ */ import_react6.default.createElement(
|
1560
|
-
"svg",
|
1561
|
-
{
|
1562
|
-
role: "img",
|
1563
|
-
viewBox: "0 0 24 24",
|
1564
|
-
xmlns: "http://www.w3.org/2000/svg",
|
1565
|
-
...props
|
1566
|
-
},
|
1567
|
-
/* @__PURE__ */ import_react6.default.createElement("title", null, "TikTok"),
|
1568
|
-
/* @__PURE__ */ import_react6.default.createElement(
|
1569
|
-
"path",
|
1570
|
-
{
|
1571
|
-
fill: "currentColor",
|
1572
|
-
d: "M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"
|
1573
|
-
}
|
1574
|
-
)
|
1575
|
-
),
|
1576
|
-
linkedin: (props) => /* @__PURE__ */ import_react6.default.createElement(
|
1577
|
-
"svg",
|
1401
|
+
fill: "currentColor",
|
1402
|
+
d: "M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"
|
1403
|
+
}
|
1404
|
+
)),
|
1405
|
+
linkedin: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ import_react6.default.createElement("title", null, "LinkedIn"), /* @__PURE__ */ import_react6.default.createElement(
|
1406
|
+
"path",
|
1578
1407
|
{
|
1579
|
-
|
1580
|
-
|
1581
|
-
|
1582
|
-
|
1583
|
-
|
1584
|
-
|
1585
|
-
/* @__PURE__ */ import_react6.default.createElement(
|
1586
|
-
"path",
|
1587
|
-
{
|
1588
|
-
fill: "currentColor",
|
1589
|
-
d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"
|
1590
|
-
}
|
1591
|
-
)
|
1592
|
-
),
|
1593
|
-
behance: (props) => /* @__PURE__ */ import_react6.default.createElement(
|
1594
|
-
"svg",
|
1408
|
+
fill: "currentColor",
|
1409
|
+
d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"
|
1410
|
+
}
|
1411
|
+
)),
|
1412
|
+
behance: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ import_react6.default.createElement("title", null, "Behance"), /* @__PURE__ */ import_react6.default.createElement(
|
1413
|
+
"path",
|
1595
1414
|
{
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1600
|
-
},
|
1601
|
-
/* @__PURE__ */ import_react6.default.createElement("title", null, "Behance"),
|
1602
|
-
/* @__PURE__ */ import_react6.default.createElement(
|
1603
|
-
"path",
|
1604
|
-
{
|
1605
|
-
fill: "currentColor",
|
1606
|
-
d: "M16.969 16.927a2.561 2.561 0 0 0 1.901.677 2.501 2.501 0 0 0 1.531-.475c.362-.235.636-.584.779-.99h2.585a5.091 5.091 0 0 1-1.9 2.896 5.292 5.292 0 0 1-3.091.88 5.839 5.839 0 0 1-2.284-.433 4.871 4.871 0 0 1-1.723-1.211 5.657 5.657 0 0 1-1.08-1.874 7.057 7.057 0 0 1-.383-2.393c-.005-.8.129-1.595.396-2.349a5.313 5.313 0 0 1 5.088-3.604 4.87 4.87 0 0 1 2.376.563c.661.362 1.231.87 1.668 1.485a6.2 6.2 0 0 1 .943 2.133c.194.821.263 1.666.205 2.508h-7.699c-.063.79.184 1.574.688 2.187ZM6.947 4.084a8.065 8.065 0 0 1 1.928.198 4.29 4.29 0 0 1 1.49.638c.418.303.748.711.958 1.182.241.579.357 1.203.341 1.83a3.506 3.506 0 0 1-.506 1.961 3.726 3.726 0 0 1-1.503 1.287 3.588 3.588 0 0 1 2.027 1.437c.464.747.697 1.615.67 2.494a4.593 4.593 0 0 1-.423 2.032 3.945 3.945 0 0 1-1.163 1.413 5.114 5.114 0 0 1-1.683.807 7.135 7.135 0 0 1-1.928.259H0V4.084h6.947Zm-.235 12.9c.308.004.616-.029.916-.099a2.18 2.18 0 0 0 .766-.332c.228-.158.411-.371.534-.619.142-.317.208-.663.191-1.009a2.08 2.08 0 0 0-.642-1.715 2.618 2.618 0 0 0-1.696-.505h-3.54v4.279h3.471Zm13.635-5.967a2.13 2.13 0 0 0-1.654-.619 2.336 2.336 0 0 0-1.163.259 2.474 2.474 0 0 0-.738.62 2.359 2.359 0 0 0-.396.792c-.074.239-.12.485-.137.734h4.769a3.239 3.239 0 0 0-.679-1.785l-.002-.001Zm-13.813-.648a2.254 2.254 0 0 0 1.423-.433c.399-.355.607-.88.56-1.413a1.916 1.916 0 0 0-.178-.891 1.298 1.298 0 0 0-.495-.533 1.851 1.851 0 0 0-.711-.274 3.966 3.966 0 0 0-.835-.073H3.241v3.631h3.293v-.014ZM21.62 5.122h-5.976v1.527h5.976V5.122Z"
|
1607
|
-
}
|
1608
|
-
)
|
1609
|
-
),
|
1415
|
+
fill: "currentColor",
|
1416
|
+
d: "M16.969 16.927a2.561 2.561 0 0 0 1.901.677 2.501 2.501 0 0 0 1.531-.475c.362-.235.636-.584.779-.99h2.585a5.091 5.091 0 0 1-1.9 2.896 5.292 5.292 0 0 1-3.091.88 5.839 5.839 0 0 1-2.284-.433 4.871 4.871 0 0 1-1.723-1.211 5.657 5.657 0 0 1-1.08-1.874 7.057 7.057 0 0 1-.383-2.393c-.005-.8.129-1.595.396-2.349a5.313 5.313 0 0 1 5.088-3.604 4.87 4.87 0 0 1 2.376.563c.661.362 1.231.87 1.668 1.485a6.2 6.2 0 0 1 .943 2.133c.194.821.263 1.666.205 2.508h-7.699c-.063.79.184 1.574.688 2.187ZM6.947 4.084a8.065 8.065 0 0 1 1.928.198 4.29 4.29 0 0 1 1.49.638c.418.303.748.711.958 1.182.241.579.357 1.203.341 1.83a3.506 3.506 0 0 1-.506 1.961 3.726 3.726 0 0 1-1.503 1.287 3.588 3.588 0 0 1 2.027 1.437c.464.747.697 1.615.67 2.494a4.593 4.593 0 0 1-.423 2.032 3.945 3.945 0 0 1-1.163 1.413 5.114 5.114 0 0 1-1.683.807 7.135 7.135 0 0 1-1.928.259H0V4.084h6.947Zm-.235 12.9c.308.004.616-.029.916-.099a2.18 2.18 0 0 0 .766-.332c.228-.158.411-.371.534-.619.142-.317.208-.663.191-1.009a2.08 2.08 0 0 0-.642-1.715 2.618 2.618 0 0 0-1.696-.505h-3.54v4.279h3.471Zm13.635-5.967a2.13 2.13 0 0 0-1.654-.619 2.336 2.336 0 0 0-1.163.259 2.474 2.474 0 0 0-.738.62 2.359 2.359 0 0 0-.396.792c-.074.239-.12.485-.137.734h4.769a3.239 3.239 0 0 0-.679-1.785l-.002-.001Zm-13.813-.648a2.254 2.254 0 0 0 1.423-.433c.399-.355.607-.88.56-1.413a1.916 1.916 0 0 0-.178-.891 1.298 1.298 0 0 0-.495-.533 1.851 1.851 0 0 0-.711-.274 3.966 3.966 0 0 0-.835-.073H3.241v3.631h3.293v-.014ZM21.62 5.122h-5.976v1.527h5.976V5.122Z"
|
1417
|
+
}
|
1418
|
+
)),
|
1610
1419
|
microsoft: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...props }, /* @__PURE__ */ import_react6.default.createElement(
|
1611
1420
|
"path",
|
1612
1421
|
{
|
@@ -1614,21 +1423,13 @@ var Logos = {
|
|
1614
1423
|
d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"
|
1615
1424
|
}
|
1616
1425
|
)),
|
1617
|
-
github: (props) => /* @__PURE__ */ import_react6.default.createElement(
|
1618
|
-
"
|
1426
|
+
github: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 438.549 438.549", ...props }, /* @__PURE__ */ import_react6.default.createElement(
|
1427
|
+
"path",
|
1619
1428
|
{
|
1620
|
-
|
1621
|
-
|
1622
|
-
|
1623
|
-
|
1624
|
-
/* @__PURE__ */ import_react6.default.createElement(
|
1625
|
-
"path",
|
1626
|
-
{
|
1627
|
-
fill: "currentColor",
|
1628
|
-
d: "M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"
|
1629
|
-
}
|
1630
|
-
)
|
1631
|
-
),
|
1429
|
+
fill: "currentColor",
|
1430
|
+
d: "M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"
|
1431
|
+
}
|
1432
|
+
)),
|
1632
1433
|
radix: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { viewBox: "0 0 25 25", fill: "none", ...props }, /* @__PURE__ */ import_react6.default.createElement(
|
1633
1434
|
"path",
|
1634
1435
|
{
|
@@ -1685,23 +1486,13 @@ var Logos = {
|
|
1685
1486
|
d: "M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
|
1686
1487
|
}
|
1687
1488
|
)),
|
1688
|
-
googleplay: (props) => /* @__PURE__ */ import_react6.default.createElement(
|
1689
|
-
"
|
1489
|
+
googleplay: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ import_react6.default.createElement("title", null, "Google Play"), /* @__PURE__ */ import_react6.default.createElement(
|
1490
|
+
"path",
|
1690
1491
|
{
|
1691
|
-
|
1692
|
-
|
1693
|
-
|
1694
|
-
|
1695
|
-
},
|
1696
|
-
/* @__PURE__ */ import_react6.default.createElement("title", null, "Google Play"),
|
1697
|
-
/* @__PURE__ */ import_react6.default.createElement(
|
1698
|
-
"path",
|
1699
|
-
{
|
1700
|
-
fill: "currentColor",
|
1701
|
-
d: "M22.018 13.298l-3.919 2.218-3.515-3.493 3.543-3.521 3.891 2.202a1.49 1.49 0 0 1 0 2.594zM1.337.924a1.486 1.486 0 0 0-.112.568v21.017c0 .217.045.419.124.6l11.155-11.087L1.337.924zm12.207 10.065l3.258-3.238L3.45.195a1.466 1.466 0 0 0-.946-.179l11.04 10.973zm0 2.067l-11 10.933c.298.036.612-.016.906-.183l13.324-7.54-3.23-3.21z"
|
1702
|
-
}
|
1703
|
-
)
|
1704
|
-
),
|
1492
|
+
fill: "currentColor",
|
1493
|
+
d: "M22.018 13.298l-3.919 2.218-3.515-3.493 3.543-3.521 3.891 2.202a1.49 1.49 0 0 1 0 2.594zM1.337.924a1.486 1.486 0 0 0-.112.568v21.017c0 .217.045.419.124.6l11.155-11.087L1.337.924zm12.207 10.065l3.258-3.238L3.45.195a1.466 1.466 0 0 0-.946-.179l11.04 10.973zm0 2.067l-11 10.933c.298.036.612-.016.906-.183l13.324-7.54-3.23-3.21z"
|
1494
|
+
}
|
1495
|
+
)),
|
1705
1496
|
apple: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react6.default.createElement(
|
1706
1497
|
"path",
|
1707
1498
|
{
|
@@ -1709,23 +1500,13 @@ var Logos = {
|
|
1709
1500
|
fill: "currentColor"
|
1710
1501
|
}
|
1711
1502
|
)),
|
1712
|
-
applestore: (props) => /* @__PURE__ */ import_react6.default.createElement(
|
1713
|
-
"
|
1503
|
+
applestore: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ import_react6.default.createElement("title", null, "App Store"), /* @__PURE__ */ import_react6.default.createElement(
|
1504
|
+
"path",
|
1714
1505
|
{
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1719
|
-
},
|
1720
|
-
/* @__PURE__ */ import_react6.default.createElement("title", null, "App Store"),
|
1721
|
-
/* @__PURE__ */ import_react6.default.createElement(
|
1722
|
-
"path",
|
1723
|
-
{
|
1724
|
-
fill: "currentColor",
|
1725
|
-
d: "M8.8086 14.9194l6.1107-11.0368c.0837-.1513.1682-.302.2437-.4584.0685-.142.1267-.2854.1646-.4403.0803-.3259.0588-.6656-.066-.9767-.1238-.3095-.3417-.5678-.6201-.7355a1.4175 1.4175 0 0 0-.921-.1924c-.3207.043-.6135.1935-.8443.4288-.1094.1118-.1996.2361-.2832.369-.092.1463-.175.2979-.259.4492l-.3864.6979-.3865-.6979c-.0837-.1515-.1667-.303-.2587-.4492-.0837-.1329-.1739-.2572-.2835-.369-.2305-.2353-.5233-.3857-.844-.429a1.4181 1.4181 0 0 0-.921.1926c-.2784.1677-.4964.426-.6203.7355-.1246.311-.1461.6508-.066.9767.038.155.0962.2984.1648.4403.0753.1564.1598.307.2437.4584l1.248 2.2543-4.8625 8.7825H2.0295c-.1676 0-.3351-.0007-.5026.0092-.1522.009-.3004.0284-.448.0714-.3108.0906-.5822.2798-.7783.548-.195.2665-.3006.5929-.3006.9279 0 .3352.1057.6612.3006.9277.196.2683.4675.4575.7782.548.1477.043.296.0623.4481.0715.1675.01.335.009.5026.009h13.0974c.0171-.0357.059-.1294.1-.2697.415-1.4151-.6156-2.843-2.0347-2.843zM3.113 18.5418l-.7922 1.5008c-.0818.1553-.1644.31-.2384.4705-.067.1458-.124.293-.1611.452-.0785.3346-.0576.6834.0645 1.0029.1212.3175.3346.583.607.7549.2727.172.5891.2416.9013.1975.3139-.044.6005-.1986.8263-.4402.1072-.1148.1954-.2424.2772-.3787.0902-.1503.1714-.3059.2535-.4612L6 19.4636c-.0896-.149-.9473-1.4704-2.887-.9218m20.5861-3.0056a1.4707 1.4707 0 0 0-.779-.5407c-.1476-.0425-.2961-.0616-.4483-.0705-.1678-.0099-.3352-.0091-.503-.0091H18.648l-4.3891-7.817c-.6655.7005-.9632 1.485-1.0773 2.1976-.1655 1.0333.0367 2.0934.546 3.0004l5.2741 9.3933c.084.1494.167.299.2591.4435.0837.131.1739.2537.2836.364.231.2323.5238.3809.8449.4232.3192.0424.643-.0244.9217-.1899.2784-.1653.4968-.4204.621-.7257.1246-.3072.146-.6425.0658-.9641-.0381-.1529-.0962-.2945-.165-.4346-.0753-.1543-.1598-.303-.2438-.4524l-1.216-2.1662h1.596c.1677 0 .3351.0009.5029-.009.1522-.009.3007-.028.4483-.0705a1.4707 1.4707 0 0 0 .779-.5407A1.5386 1.5386 0 0 0 24 16.452a1.539 1.539 0 0 0-.3009-.9158Z"
|
1726
|
-
}
|
1727
|
-
)
|
1728
|
-
),
|
1506
|
+
fill: "currentColor",
|
1507
|
+
d: "M8.8086 14.9194l6.1107-11.0368c.0837-.1513.1682-.302.2437-.4584.0685-.142.1267-.2854.1646-.4403.0803-.3259.0588-.6656-.066-.9767-.1238-.3095-.3417-.5678-.6201-.7355a1.4175 1.4175 0 0 0-.921-.1924c-.3207.043-.6135.1935-.8443.4288-.1094.1118-.1996.2361-.2832.369-.092.1463-.175.2979-.259.4492l-.3864.6979-.3865-.6979c-.0837-.1515-.1667-.303-.2587-.4492-.0837-.1329-.1739-.2572-.2835-.369-.2305-.2353-.5233-.3857-.844-.429a1.4181 1.4181 0 0 0-.921.1926c-.2784.1677-.4964.426-.6203.7355-.1246.311-.1461.6508-.066.9767.038.155.0962.2984.1648.4403.0753.1564.1598.307.2437.4584l1.248 2.2543-4.8625 8.7825H2.0295c-.1676 0-.3351-.0007-.5026.0092-.1522.009-.3004.0284-.448.0714-.3108.0906-.5822.2798-.7783.548-.195.2665-.3006.5929-.3006.9279 0 .3352.1057.6612.3006.9277.196.2683.4675.4575.7782.548.1477.043.296.0623.4481.0715.1675.01.335.009.5026.009h13.0974c.0171-.0357.059-.1294.1-.2697.415-1.4151-.6156-2.843-2.0347-2.843zM3.113 18.5418l-.7922 1.5008c-.0818.1553-.1644.31-.2384.4705-.067.1458-.124.293-.1611.452-.0785.3346-.0576.6834.0645 1.0029.1212.3175.3346.583.607.7549.2727.172.5891.2416.9013.1975.3139-.044.6005-.1986.8263-.4402.1072-.1148.1954-.2424.2772-.3787.0902-.1503.1714-.3059.2535-.4612L6 19.4636c-.0896-.149-.9473-1.4704-2.887-.9218m20.5861-3.0056a1.4707 1.4707 0 0 0-.779-.5407c-.1476-.0425-.2961-.0616-.4483-.0705-.1678-.0099-.3352-.0091-.503-.0091H18.648l-4.3891-7.817c-.6655.7005-.9632 1.485-1.0773 2.1976-.1655 1.0333.0367 2.0934.546 3.0004l5.2741 9.3933c.084.1494.167.299.2591.4435.0837.131.1739.2537.2836.364.231.2323.5238.3809.8449.4232.3192.0424.643-.0244.9217-.1899.2784-.1653.4968-.4204.621-.7257.1246-.3072.146-.6425.0658-.9641-.0381-.1529-.0962-.2945-.165-.4346-.0753-.1543-.1598-.303-.2438-.4524l-1.216-2.1662h1.596c.1677 0 .3351.0009.5029-.009.1522-.009.3007-.028.4483-.0705a1.4707 1.4707 0 0 0 .779-.5407A1.5386 1.5386 0 0 0 24 16.452a1.539 1.539 0 0 0-.3009-.9158Z"
|
1508
|
+
}
|
1509
|
+
)),
|
1729
1510
|
paypal: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react6.default.createElement(
|
1730
1511
|
"path",
|
1731
1512
|
{
|
@@ -1749,50 +1530,21 @@ var Logos = {
|
|
1749
1530
|
},
|
1750
1531
|
/* @__PURE__ */ import_react6.default.createElement("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
1751
1532
|
),
|
1752
|
-
whatsapp: (props) => /* @__PURE__ */ import_react6.default.createElement(
|
1753
|
-
|
1533
|
+
whatsapp: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", ...props }, /* @__PURE__ */ import_react6.default.createElement("path", { d: "M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z" })),
|
1534
|
+
visa: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ import_react6.default.createElement("title", null, "Visa"), /* @__PURE__ */ import_react6.default.createElement(
|
1535
|
+
"path",
|
1754
1536
|
{
|
1755
|
-
xmlns: "http://www.w3.org/2000/svg",
|
1756
|
-
viewBox: "0 0 24 24",
|
1757
1537
|
fill: "currentColor",
|
1758
|
-
|
1759
|
-
}
|
1760
|
-
|
1761
|
-
),
|
1762
|
-
|
1763
|
-
"svg",
|
1764
|
-
{
|
1765
|
-
role: "img",
|
1766
|
-
viewBox: "0 0 24 24",
|
1767
|
-
xmlns: "http://www.w3.org/2000/svg",
|
1768
|
-
...props
|
1769
|
-
},
|
1770
|
-
/* @__PURE__ */ import_react6.default.createElement("title", null, "Visa"),
|
1771
|
-
/* @__PURE__ */ import_react6.default.createElement(
|
1772
|
-
"path",
|
1773
|
-
{
|
1774
|
-
fill: "currentColor",
|
1775
|
-
d: "M9.112 8.262L5.97 15.758H3.92L2.374 9.775c-.094-.368-.175-.503-.461-.658C1.447 8.864.677 8.627 0 8.479l.046-.217h3.3a.904.904 0 01.894.764l.817 4.338 2.018-5.102zm8.033 5.049c.008-1.979-2.736-2.088-2.717-2.972.006-.269.262-.555.822-.628a3.66 3.66 0 011.913.336l.34-1.59a5.207 5.207 0 00-1.814-.333c-1.917 0-3.266 1.02-3.278 2.479-.012 1.079.963 1.68 1.698 2.04.756.367 1.01.603 1.006.931-.005.504-.602.725-1.16.734-.975.015-1.54-.263-1.992-.473l-.351 1.642c.453.208 1.289.39 2.156.398 2.037 0 3.37-1.006 3.377-2.564m5.061 2.447H24l-1.565-7.496h-1.656a.883.883 0 00-.826.55l-2.909 6.946h2.036l.405-1.12h2.488zm-2.163-2.656l1.02-2.815.588 2.815zm-8.16-4.84l-1.603 7.496H8.34l1.605-7.496z"
|
1776
|
-
}
|
1777
|
-
)
|
1778
|
-
),
|
1779
|
-
mastercard: (props) => /* @__PURE__ */ import_react6.default.createElement(
|
1780
|
-
"svg",
|
1538
|
+
d: "M9.112 8.262L5.97 15.758H3.92L2.374 9.775c-.094-.368-.175-.503-.461-.658C1.447 8.864.677 8.627 0 8.479l.046-.217h3.3a.904.904 0 01.894.764l.817 4.338 2.018-5.102zm8.033 5.049c.008-1.979-2.736-2.088-2.717-2.972.006-.269.262-.555.822-.628a3.66 3.66 0 011.913.336l.34-1.59a5.207 5.207 0 00-1.814-.333c-1.917 0-3.266 1.02-3.278 2.479-.012 1.079.963 1.68 1.698 2.04.756.367 1.01.603 1.006.931-.005.504-.602.725-1.16.734-.975.015-1.54-.263-1.992-.473l-.351 1.642c.453.208 1.289.39 2.156.398 2.037 0 3.37-1.006 3.377-2.564m5.061 2.447H24l-1.565-7.496h-1.656a.883.883 0 00-.826.55l-2.909 6.946h2.036l.405-1.12h2.488zm-2.163-2.656l1.02-2.815.588 2.815zm-8.16-4.84l-1.603 7.496H8.34l1.605-7.496z"
|
1539
|
+
}
|
1540
|
+
)),
|
1541
|
+
mastercard: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ import_react6.default.createElement("title", null, "MasterCard"), /* @__PURE__ */ import_react6.default.createElement(
|
1542
|
+
"path",
|
1781
1543
|
{
|
1782
|
-
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
},
|
1787
|
-
/* @__PURE__ */ import_react6.default.createElement("title", null, "MasterCard"),
|
1788
|
-
/* @__PURE__ */ import_react6.default.createElement(
|
1789
|
-
"path",
|
1790
|
-
{
|
1791
|
-
fill: "currentColor",
|
1792
|
-
d: "M11.343 18.031c.058.049.12.098.181.146-1.177.783-2.59 1.238-4.107 1.238C3.32 19.416 0 16.096 0 12c0-4.095 3.32-7.416 7.416-7.416 1.518 0 2.931.456 4.105 1.238-.06.051-.12.098-.165.15C9.6 7.489 8.595 9.688 8.595 12c0 2.311 1.001 4.51 2.748 6.031zm5.241-13.447c-1.52 0-2.931.456-4.105 1.238.06.051.12.098.165.15C14.4 7.489 15.405 9.688 15.405 12c0 2.31-1.001 4.507-2.748 6.031-.058.049-.12.098-.181.146 1.177.783 2.588 1.238 4.107 1.238C20.68 19.416 24 16.096 24 12c0-4.094-3.32-7.416-7.416-7.416zM12 6.174c-.096.075-.189.15-.28.231C10.156 7.764 9.169 9.765 9.169 12c0 2.236.987 4.236 2.551 5.595.09.08.185.158.28.232.096-.074.189-.152.28-.232 1.563-1.359 2.551-3.359 2.551-5.595 0-2.235-.987-4.236-2.551-5.595-.09-.08-.184-.156-.28-.231z"
|
1793
|
-
}
|
1794
|
-
)
|
1795
|
-
)
|
1544
|
+
fill: "currentColor",
|
1545
|
+
d: "M11.343 18.031c.058.049.12.098.181.146-1.177.783-2.59 1.238-4.107 1.238C3.32 19.416 0 16.096 0 12c0-4.095 3.32-7.416 7.416-7.416 1.518 0 2.931.456 4.105 1.238-.06.051-.12.098-.165.15C9.6 7.489 8.595 9.688 8.595 12c0 2.311 1.001 4.51 2.748 6.031zm5.241-13.447c-1.52 0-2.931.456-4.105 1.238.06.051.12.098.165.15C14.4 7.489 15.405 9.688 15.405 12c0 2.31-1.001 4.507-2.748 6.031-.058.049-.12.098-.181.146 1.177.783 2.588 1.238 4.107 1.238C20.68 19.416 24 16.096 24 12c0-4.094-3.32-7.416-7.416-7.416zM12 6.174c-.096.075-.189.15-.28.231C10.156 7.764 9.169 9.765 9.169 12c0 2.236.987 4.236 2.551 5.595.09.08.185.158.28.232.096-.074.189-.152.28-.232 1.563-1.359 2.551-3.359 2.551-5.595 0-2.235-.987-4.236-2.551-5.595-.09-.08-.184-.156-.28-.231z"
|
1546
|
+
}
|
1547
|
+
))
|
1796
1548
|
};
|
1797
1549
|
|
1798
1550
|
// elements/navigationMenu/NavigationMenu.tsx
|
@@ -1869,30 +1621,22 @@ var NavigationMenuContent = React12.forwardRef(({ className, ...props }, ref) =>
|
|
1869
1621
|
}
|
1870
1622
|
));
|
1871
1623
|
var StandardNavigationMenuItem = ({ icon, title, subtitle, ...linkProps }) => /* @__PURE__ */ React12.createElement(NavigationMenuLink, { ...linkProps }, /* @__PURE__ */ React12.createElement("div", { className: "hawa-flex hawa-max-w-md hawa-cursor-pointer hawa-flex-row hawa-items-center hawa-gap-4 hawa-rounded-inner hawa-p-4 hawa-py-2 hawa-transition-all hover:hawa-bg-muted" }, icon && icon, /* @__PURE__ */ React12.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React12.createElement("h1", { className: "hawa-text-xl hawa-font-bold" }, title), /* @__PURE__ */ React12.createElement("p", { className: "hawa-text-sm" }, subtitle))));
|
1872
|
-
var NavigationMenuViewport = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
1873
|
-
|
1624
|
+
var NavigationMenuViewport = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement("div", { className: cn("hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center") }, /* @__PURE__ */ React12.createElement(
|
1625
|
+
NavigationMenuPrimitive.Viewport,
|
1874
1626
|
{
|
1875
1627
|
className: cn(
|
1876
|
-
"hawa-
|
1877
|
-
|
1878
|
-
|
1879
|
-
|
1880
|
-
|
1881
|
-
{
|
1882
|
-
|
1883
|
-
|
1884
|
-
|
1885
|
-
|
1886
|
-
|
1887
|
-
|
1888
|
-
style: {
|
1889
|
-
height: "calc(var(--radix-navigation-menu-viewport-height) + 1px)"
|
1890
|
-
},
|
1891
|
-
ref,
|
1892
|
-
...props
|
1893
|
-
}
|
1894
|
-
)
|
1895
|
-
));
|
1628
|
+
"hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90",
|
1629
|
+
// hawa-h-[var(--radix-navigation-menu-viewport-height)]
|
1630
|
+
// "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
|
1631
|
+
className
|
1632
|
+
),
|
1633
|
+
style: {
|
1634
|
+
height: "calc(var(--radix-navigation-menu-viewport-height) + 1px)"
|
1635
|
+
},
|
1636
|
+
ref,
|
1637
|
+
...props
|
1638
|
+
}
|
1639
|
+
)));
|
1896
1640
|
var NavigationMenuIndicator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
1897
1641
|
NavigationMenuPrimitive.Indicator,
|
1898
1642
|
{
|
@@ -1983,58 +1727,53 @@ var sheetVariants = (0, import_class_variance_authority2.cva)(
|
|
1983
1727
|
}
|
1984
1728
|
}
|
1985
1729
|
);
|
1986
|
-
var SheetContent = React13.forwardRef(
|
1987
|
-
|
1988
|
-
|
1730
|
+
var SheetContent = React13.forwardRef(({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React13.createElement(SheetPortal, null, /* @__PURE__ */ React13.createElement(SheetOverlay, null), /* @__PURE__ */ React13.createElement(
|
1731
|
+
SheetPrimitive.Content,
|
1732
|
+
{
|
1733
|
+
ref,
|
1734
|
+
className: cn(sheetVariants({ side }), className),
|
1735
|
+
onPointerDownOutside: (e) => {
|
1736
|
+
if (persist) {
|
1737
|
+
e.preventDefault();
|
1738
|
+
}
|
1739
|
+
},
|
1740
|
+
...props
|
1741
|
+
},
|
1742
|
+
children,
|
1743
|
+
!hideCloseButton && /* @__PURE__ */ React13.createElement(
|
1744
|
+
SheetPrimitive.Close,
|
1989
1745
|
{
|
1990
|
-
|
1991
|
-
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1746
|
+
className: cn(
|
1747
|
+
"hawa-absolute hawa-rounded-sm hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-secondary",
|
1748
|
+
{
|
1749
|
+
"hawa-right-4 hawa-top-4": side === "left" || side === "bottom",
|
1750
|
+
"hawa-left-4 hawa-top-4": side === "right",
|
1751
|
+
"hawa-bottom-4 hawa-right-4": side === "top"
|
1995
1752
|
}
|
1996
|
-
|
1997
|
-
...props
|
1753
|
+
)
|
1998
1754
|
},
|
1999
|
-
|
2000
|
-
|
2001
|
-
SheetPrimitive.Close,
|
1755
|
+
/* @__PURE__ */ React13.createElement(
|
1756
|
+
"svg",
|
2002
1757
|
{
|
2003
|
-
|
2004
|
-
|
2005
|
-
|
2006
|
-
|
2007
|
-
|
2008
|
-
"hawa-bottom-4 hawa-right-4": side === "top"
|
2009
|
-
}
|
2010
|
-
)
|
1758
|
+
"aria-label": "Close Icon",
|
1759
|
+
"aria-hidden": "true",
|
1760
|
+
className: "hawa-h-5 hawa-w-5",
|
1761
|
+
fill: "currentColor",
|
1762
|
+
viewBox: "0 0 20 20"
|
2011
1763
|
},
|
2012
1764
|
/* @__PURE__ */ React13.createElement(
|
2013
|
-
"
|
1765
|
+
"path",
|
2014
1766
|
{
|
2015
|
-
|
2016
|
-
"
|
2017
|
-
|
2018
|
-
|
2019
|
-
|
2020
|
-
|
2021
|
-
|
2022
|
-
|
2023
|
-
|
2024
|
-
|
2025
|
-
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
2026
|
-
clipRule: "evenodd"
|
2027
|
-
}
|
2028
|
-
)
|
2029
|
-
),
|
2030
|
-
/* @__PURE__ */ React13.createElement("span", { className: "hawa-sr-only" }, "Close")
|
2031
|
-
)
|
2032
|
-
))
|
2033
|
-
);
|
2034
|
-
var SheetHeader = ({
|
2035
|
-
className,
|
2036
|
-
...props
|
2037
|
-
}) => /* @__PURE__ */ React13.createElement(
|
1767
|
+
fillRule: "evenodd",
|
1768
|
+
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
1769
|
+
clipRule: "evenodd"
|
1770
|
+
}
|
1771
|
+
)
|
1772
|
+
),
|
1773
|
+
/* @__PURE__ */ React13.createElement("span", { className: "hawa-sr-only" }, "Close")
|
1774
|
+
)
|
1775
|
+
)));
|
1776
|
+
var SheetHeader = ({ className, ...props }) => /* @__PURE__ */ React13.createElement(
|
2038
1777
|
"div",
|
2039
1778
|
{
|
2040
1779
|
className: cn(
|
@@ -2044,10 +1783,7 @@ var SheetHeader = ({
|
|
2044
1783
|
...props
|
2045
1784
|
}
|
2046
1785
|
);
|
2047
|
-
var SheetFooter = ({
|
2048
|
-
className,
|
2049
|
-
...props
|
2050
|
-
}) => /* @__PURE__ */ React13.createElement(
|
1786
|
+
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ React13.createElement(
|
2051
1787
|
"div",
|
2052
1788
|
{
|
2053
1789
|
className: cn(
|
@@ -2061,10 +1797,7 @@ var SheetTitle = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
2061
1797
|
SheetPrimitive.Title,
|
2062
1798
|
{
|
2063
1799
|
ref,
|
2064
|
-
className: cn(
|
2065
|
-
"hawa-text-lg hawa-font-semibold hawa-text-foreground",
|
2066
|
-
className
|
2067
|
-
),
|
1800
|
+
className: cn("hawa-text-lg hawa-font-semibold hawa-text-foreground", className),
|
2068
1801
|
...props
|
2069
1802
|
}
|
2070
1803
|
));
|
@@ -2101,23 +1834,7 @@ var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
2101
1834
|
}
|
2102
1835
|
));
|
2103
1836
|
var DialogContent = React14.forwardRef(
|
2104
|
-
({
|
2105
|
-
ids,
|
2106
|
-
className,
|
2107
|
-
classNames,
|
2108
|
-
children,
|
2109
|
-
persist,
|
2110
|
-
hideCloseButton,
|
2111
|
-
overlayProps,
|
2112
|
-
...props
|
2113
|
-
}, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React14.createElement(
|
2114
|
-
DialogOverlay,
|
2115
|
-
{
|
2116
|
-
className: classNames == null ? void 0 : classNames.overlay,
|
2117
|
-
id: ids == null ? void 0 : ids.overlay,
|
2118
|
-
...overlayProps
|
2119
|
-
}
|
2120
|
-
), /* @__PURE__ */ React14.createElement(
|
1837
|
+
({ ids, className, classNames, children, persist, hideCloseButton, overlayProps, ...props }, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React14.createElement(DialogOverlay, { className: classNames == null ? void 0 : classNames.overlay, id: ids == null ? void 0 : ids.overlay, ...overlayProps }), /* @__PURE__ */ React14.createElement(
|
2121
1838
|
DialogPrimitive.Content,
|
2122
1839
|
{
|
2123
1840
|
onPointerDownOutside: (e) => {
|
@@ -2166,100 +1883,87 @@ var DialogContent = React14.forwardRef(
|
|
2166
1883
|
)
|
2167
1884
|
))
|
2168
1885
|
);
|
2169
|
-
var DialogCarouselContent = React14.forwardRef(
|
2170
|
-
|
2171
|
-
|
2172
|
-
|
2173
|
-
|
2174
|
-
|
2175
|
-
|
2176
|
-
|
1886
|
+
var DialogCarouselContent = React14.forwardRef(({ className, children, onPrev, persist, hideCloseButton, hidePrevButton, ...props }, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, null, /* @__PURE__ */ React14.createElement(DialogOverlay, null), /* @__PURE__ */ React14.createElement(
|
1887
|
+
DialogPrimitive.Content,
|
1888
|
+
{
|
1889
|
+
onPointerDownOutside: (e) => {
|
1890
|
+
if (persist) {
|
1891
|
+
e.preventDefault();
|
1892
|
+
}
|
1893
|
+
},
|
1894
|
+
ref,
|
1895
|
+
className: cn(
|
1896
|
+
"hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-pt-14 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] sm:hawa-rounded md:hawa-w-full",
|
1897
|
+
className
|
1898
|
+
),
|
2177
1899
|
...props
|
2178
|
-
},
|
2179
|
-
|
1900
|
+
},
|
1901
|
+
children,
|
1902
|
+
/* @__PURE__ */ React14.createElement(
|
1903
|
+
"div",
|
2180
1904
|
{
|
2181
|
-
onPointerDownOutside: (e) => {
|
2182
|
-
if (persist) {
|
2183
|
-
e.preventDefault();
|
2184
|
-
}
|
2185
|
-
},
|
2186
|
-
ref,
|
2187
1905
|
className: cn(
|
2188
|
-
"hawa-
|
2189
|
-
|
2190
|
-
)
|
2191
|
-
...props
|
1906
|
+
"hawa-absolute hawa-top-0 hawa-flex hawa-w-full hawa-flex-row hawa-p-4",
|
1907
|
+
onPrev ? "hawa-justify-between" : "hawa-justify-end"
|
1908
|
+
)
|
2192
1909
|
},
|
2193
|
-
|
2194
|
-
/* @__PURE__ */ React14.createElement(
|
1910
|
+
hidePrevButton ? /* @__PURE__ */ React14.createElement("div", null) : /* @__PURE__ */ React14.createElement(
|
2195
1911
|
"div",
|
2196
1912
|
{
|
1913
|
+
onClick: onPrev,
|
2197
1914
|
className: cn(
|
2198
|
-
"hawa-
|
2199
|
-
|
1915
|
+
"hawa-end-0 hawa-cursor-pointer hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
|
1916
|
+
props.dir === "rtl" && "hawa-rotate-180"
|
2200
1917
|
)
|
2201
1918
|
},
|
2202
|
-
|
2203
|
-
"
|
1919
|
+
/* @__PURE__ */ React14.createElement(
|
1920
|
+
"svg",
|
2204
1921
|
{
|
2205
|
-
|
2206
|
-
|
2207
|
-
|
2208
|
-
|
2209
|
-
|
1922
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1923
|
+
width: "24",
|
1924
|
+
height: "24",
|
1925
|
+
viewBox: "0 0 24 24",
|
1926
|
+
fill: "none",
|
1927
|
+
className: "hawa-h-6 hawa-w-6",
|
1928
|
+
stroke: "currentColor",
|
1929
|
+
strokeWidth: "2",
|
1930
|
+
strokeLinecap: "round",
|
1931
|
+
strokeLinejoin: "round"
|
2210
1932
|
},
|
2211
|
-
/* @__PURE__ */ React14.createElement(
|
2212
|
-
|
2213
|
-
|
2214
|
-
|
2215
|
-
|
2216
|
-
|
2217
|
-
|
2218
|
-
|
2219
|
-
|
2220
|
-
stroke: "currentColor",
|
2221
|
-
strokeWidth: "2",
|
2222
|
-
strokeLinecap: "round",
|
2223
|
-
strokeLinejoin: "round"
|
2224
|
-
},
|
2225
|
-
/* @__PURE__ */ React14.createElement("path", { d: "m15 18-6-6 6-6" })
|
1933
|
+
/* @__PURE__ */ React14.createElement("path", { d: "m15 18-6-6 6-6" })
|
1934
|
+
)
|
1935
|
+
),
|
1936
|
+
!hideCloseButton && /* @__PURE__ */ React14.createElement(
|
1937
|
+
DialogPrimitive.Close,
|
1938
|
+
{
|
1939
|
+
className: cn(
|
1940
|
+
"hawa-end-0 hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
|
1941
|
+
props.dir === "rtl" ? "hawa-left-4" : "hawa-right-4"
|
2226
1942
|
)
|
2227
|
-
|
2228
|
-
|
2229
|
-
|
1943
|
+
},
|
1944
|
+
/* @__PURE__ */ React14.createElement(
|
1945
|
+
"svg",
|
2230
1946
|
{
|
2231
|
-
|
2232
|
-
|
2233
|
-
|
2234
|
-
|
1947
|
+
"aria-label": "Close Icon",
|
1948
|
+
"aria-hidden": "true",
|
1949
|
+
className: "hawa-h-6 hawa-w-6",
|
1950
|
+
fill: "currentColor",
|
1951
|
+
viewBox: "0 0 20 20"
|
2235
1952
|
},
|
2236
1953
|
/* @__PURE__ */ React14.createElement(
|
2237
|
-
"
|
1954
|
+
"path",
|
2238
1955
|
{
|
2239
|
-
|
2240
|
-
"
|
2241
|
-
|
2242
|
-
|
2243
|
-
|
2244
|
-
|
2245
|
-
|
2246
|
-
|
2247
|
-
|
2248
|
-
|
2249
|
-
|
2250
|
-
clipRule: "evenodd"
|
2251
|
-
}
|
2252
|
-
)
|
2253
|
-
),
|
2254
|
-
/* @__PURE__ */ React14.createElement("span", { className: "hawa-sr-only" }, "Close")
|
2255
|
-
)
|
2256
|
-
)
|
2257
|
-
))
|
2258
|
-
);
|
2259
|
-
var DialogHeader = ({
|
2260
|
-
className,
|
2261
|
-
...props
|
2262
|
-
}) => /* @__PURE__ */ React14.createElement(
|
1956
|
+
fillRule: "evenodd",
|
1957
|
+
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
1958
|
+
clipRule: "evenodd"
|
1959
|
+
}
|
1960
|
+
)
|
1961
|
+
),
|
1962
|
+
/* @__PURE__ */ React14.createElement("span", { className: "hawa-sr-only" }, "Close")
|
1963
|
+
)
|
1964
|
+
)
|
1965
|
+
)));
|
1966
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ React14.createElement(
|
2263
1967
|
"div",
|
2264
1968
|
{
|
2265
1969
|
className: cn(
|
@@ -2284,17 +1988,11 @@ var DialogDescription = React14.forwardRef(({ className, ...props }, ref) => /*
|
|
2284
1988
|
DialogPrimitive.Description,
|
2285
1989
|
{
|
2286
1990
|
ref,
|
2287
|
-
className: cn(
|
2288
|
-
"hawa-text-start hawa-text-sm hawa-text-muted-foreground",
|
2289
|
-
className
|
2290
|
-
),
|
1991
|
+
className: cn("hawa-text-start hawa-text-sm hawa-text-muted-foreground", className),
|
2291
1992
|
...props
|
2292
1993
|
}
|
2293
1994
|
));
|
2294
|
-
var DialogFooter = ({
|
2295
|
-
className,
|
2296
|
-
...props
|
2297
|
-
}) => /* @__PURE__ */ React14.createElement(
|
1995
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ React14.createElement(
|
2298
1996
|
"div",
|
2299
1997
|
{
|
2300
1998
|
className: cn(
|
@@ -2335,11 +2033,7 @@ var DialogCarousel = ({
|
|
2335
2033
|
))
|
2336
2034
|
)));
|
2337
2035
|
};
|
2338
|
-
var DialogSteps = ({
|
2339
|
-
currentStep,
|
2340
|
-
visibleStepRef,
|
2341
|
-
children
|
2342
|
-
}) => {
|
2036
|
+
var DialogSteps = ({ currentStep, visibleStepRef, children }) => {
|
2343
2037
|
const [dialogHeight, setDialogHeight] = React14.useState(null);
|
2344
2038
|
React14.useEffect(() => {
|
2345
2039
|
if (visibleStepRef.current) {
|
@@ -2368,21 +2062,8 @@ var DialogSteps = ({
|
|
2368
2062
|
))
|
2369
2063
|
);
|
2370
2064
|
};
|
2371
|
-
var DialogStep = ({
|
2372
|
-
id,
|
2373
|
-
children,
|
2374
|
-
className,
|
2375
|
-
stepRef
|
2376
|
-
}) => {
|
2377
|
-
return /* @__PURE__ */ React14.createElement(
|
2378
|
-
"div",
|
2379
|
-
{
|
2380
|
-
id,
|
2381
|
-
ref: stepRef,
|
2382
|
-
className: cn("hawa-w-full hawa-px-1", className)
|
2383
|
-
},
|
2384
|
-
children
|
2385
|
-
);
|
2065
|
+
var DialogStep = ({ id, children, className, stepRef }) => {
|
2066
|
+
return /* @__PURE__ */ React14.createElement("div", { id, ref: stepRef, className: cn("hawa-w-full hawa-px-1", className) }, children);
|
2386
2067
|
};
|
2387
2068
|
var DialogBody = ({ children, className }) => {
|
2388
2069
|
return /* @__PURE__ */ React14.createElement("div", { className: cn("hawa-py-6", className) }, children);
|
@@ -2409,9 +2090,7 @@ var import_class_variance_authority3 = require("class-variance-authority");
|
|
2409
2090
|
|
2410
2091
|
// elements/helperText/HelperText.tsx
|
2411
2092
|
var import_react7 = __toESM(require("react"));
|
2412
|
-
var HelperText = ({
|
2413
|
-
helperText
|
2414
|
-
}) => /* @__PURE__ */ import_react7.default.createElement(
|
2093
|
+
var HelperText = ({ helperText }) => /* @__PURE__ */ import_react7.default.createElement(
|
2415
2094
|
"p",
|
2416
2095
|
{
|
2417
2096
|
className: cn(
|
@@ -2652,20 +2331,9 @@ var Alert = ({
|
|
2652
2331
|
), props.actions && /* @__PURE__ */ import_react8.default.createElement(
|
2653
2332
|
"div",
|
2654
2333
|
{
|
2655
|
-
className: cn(
|
2656
|
-
"hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2",
|
2657
|
-
classNames == null ? void 0 : classNames.actions
|
2658
|
-
)
|
2334
|
+
className: cn("hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2", classNames == null ? void 0 : classNames.actions)
|
2659
2335
|
},
|
2660
|
-
props.actions.map((act, index) => /* @__PURE__ */ import_react8.default.createElement(
|
2661
|
-
Button,
|
2662
|
-
{
|
2663
|
-
key: index,
|
2664
|
-
variant: act.variant,
|
2665
|
-
onClick: act.onClick()
|
2666
|
-
},
|
2667
|
-
act.label
|
2668
|
-
))
|
2336
|
+
props.actions.map((act, index) => /* @__PURE__ */ import_react8.default.createElement(Button, { key: index, variant: act.variant, onClick: act.onClick() }, act.label))
|
2669
2337
|
))),
|
2670
2338
|
!props.persistent && /* @__PURE__ */ import_react8.default.createElement(
|
2671
2339
|
"button",
|
@@ -2687,9 +2355,7 @@ var Alert = ({
|
|
2687
2355
|
setClosed(true);
|
2688
2356
|
setTimeout(() => {
|
2689
2357
|
if (alertRef == null ? void 0 : alertRef.current) {
|
2690
|
-
alertRef == null ? void 0 : alertRef.current.removeChild(
|
2691
|
-
alertRef == null ? void 0 : alertRef.current.children[0]
|
2692
|
-
);
|
2358
|
+
alertRef == null ? void 0 : alertRef.current.removeChild(alertRef == null ? void 0 : alertRef.current.children[0]);
|
2693
2359
|
}
|
2694
2360
|
}, 200);
|
2695
2361
|
}
|
@@ -2868,16 +2534,7 @@ var Checkbox = ({
|
|
2868
2534
|
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
2869
2535
|
)
|
2870
2536
|
},
|
2871
|
-
/* @__PURE__ */ React21.createElement(
|
2872
|
-
CheckboxElement,
|
2873
|
-
{
|
2874
|
-
...props,
|
2875
|
-
size,
|
2876
|
-
radius,
|
2877
|
-
disabled,
|
2878
|
-
id
|
2879
|
-
}
|
2880
|
-
),
|
2537
|
+
/* @__PURE__ */ React21.createElement(CheckboxElement, { ...props, size, radius, disabled, id }),
|
2881
2538
|
(label || helperText) && /* @__PURE__ */ React21.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React21.createElement(
|
2882
2539
|
"label",
|
2883
2540
|
{
|
@@ -2952,9 +2609,7 @@ var CheckboxElement = React21.forwardRef(({ radius = "inherit", size = "default"
|
|
2952
2609
|
/* @__PURE__ */ React21.createElement(
|
2953
2610
|
CheckboxPrimitive.Indicator,
|
2954
2611
|
{
|
2955
|
-
className: cn(
|
2956
|
-
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
2957
|
-
)
|
2612
|
+
className: cn("hawa-flex hawa-items-center hawa-justify-center hawa-text-current")
|
2958
2613
|
},
|
2959
2614
|
/* @__PURE__ */ React21.createElement(
|
2960
2615
|
"svg",
|
@@ -3149,14 +2804,16 @@ var Input = (0, import_react11.forwardRef)(
|
|
3149
2804
|
|
3150
2805
|
// elements/table/Table.tsx
|
3151
2806
|
var React23 = __toESM(require("react"));
|
3152
|
-
var Table = React23.forwardRef(
|
3153
|
-
"
|
3154
|
-
|
3155
|
-
|
3156
|
-
|
3157
|
-
|
3158
|
-
|
3159
|
-
|
2807
|
+
var Table = React23.forwardRef(
|
2808
|
+
({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React23.createElement(
|
2809
|
+
"table",
|
2810
|
+
{
|
2811
|
+
ref,
|
2812
|
+
className: cn("hawa-w-full hawa-caption-bottom hawa-text-sm", className),
|
2813
|
+
...props
|
2814
|
+
}
|
2815
|
+
))
|
2816
|
+
);
|
3160
2817
|
var TableHeader = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
|
3161
2818
|
"thead",
|
3162
2819
|
{
|
@@ -3189,26 +2846,25 @@ var TableFooter = React23.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
3189
2846
|
"tfoot",
|
3190
2847
|
{
|
3191
2848
|
ref,
|
3192
|
-
className: cn(
|
3193
|
-
"hawa-bg-primary hawa-font-medium hawa-text-primary-foreground",
|
3194
|
-
className
|
3195
|
-
),
|
3196
|
-
...props
|
3197
|
-
}
|
3198
|
-
));
|
3199
|
-
var TableRow = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
|
3200
|
-
"tr",
|
3201
|
-
{
|
3202
|
-
ref,
|
3203
|
-
className: cn(
|
3204
|
-
"hawa-bg-background hawa-transition-colors data-[state=selected]:hawa-bg-muted",
|
3205
|
-
"[&:not(:last-child)&:not(:first-child)]:hawa-border-y",
|
3206
|
-
"[&:not(:last-child)]:hawa-border-b",
|
3207
|
-
className
|
3208
|
-
),
|
2849
|
+
className: cn("hawa-bg-primary hawa-font-medium hawa-text-primary-foreground", className),
|
3209
2850
|
...props
|
3210
2851
|
}
|
3211
2852
|
));
|
2853
|
+
var TableRow = React23.forwardRef(
|
2854
|
+
({ className, ...props }, ref) => /* @__PURE__ */ React23.createElement(
|
2855
|
+
"tr",
|
2856
|
+
{
|
2857
|
+
ref,
|
2858
|
+
className: cn(
|
2859
|
+
"hawa-bg-background hawa-transition-colors data-[state=selected]:hawa-bg-muted",
|
2860
|
+
"[&:not(:last-child)&:not(:first-child)]:hawa-border-y",
|
2861
|
+
"[&:not(:last-child)]:hawa-border-b",
|
2862
|
+
className
|
2863
|
+
),
|
2864
|
+
...props
|
2865
|
+
}
|
2866
|
+
)
|
2867
|
+
);
|
3212
2868
|
var TableCell = React23.forwardRef(
|
3213
2869
|
({ className, enablePadding = true, padding = "default", ...props }, ref) => {
|
3214
2870
|
let paddingStyles = {
|
@@ -3241,10 +2897,7 @@ var TableCaption = React23.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
3241
2897
|
"caption",
|
3242
2898
|
{
|
3243
2899
|
ref,
|
3244
|
-
className: cn(
|
3245
|
-
"hawa-mt-4 hawa-text-sm hawa-text-muted-foreground",
|
3246
|
-
className
|
3247
|
-
),
|
2900
|
+
className: cn("hawa-mt-4 hawa-text-sm hawa-text-muted-foreground", className),
|
3248
2901
|
...props
|
3249
2902
|
}
|
3250
2903
|
));
|
@@ -3276,9 +2929,7 @@ var DataTable = ({
|
|
3276
2929
|
const [sorting, setSorting] = React24.useState(
|
3277
2930
|
props.defaultSort ? [{ id: props.defaultSort, desc: false }] : []
|
3278
2931
|
);
|
3279
|
-
const [columnFilters, setColumnFilters] = React24.useState(
|
3280
|
-
[]
|
3281
|
-
);
|
2932
|
+
const [columnFilters, setColumnFilters] = React24.useState([]);
|
3282
2933
|
const [globalFilter, setGlobalFilter] = React24.useState("");
|
3283
2934
|
const [expanded, setExpanded] = React24.useState({});
|
3284
2935
|
const [columnVisibility, setColumnVisibility] = React24.useState(() => {
|
@@ -3420,52 +3071,38 @@ var DataTable = ({
|
|
3420
3071
|
)
|
3421
3072
|
) : null
|
3422
3073
|
}
|
3423
|
-
), enableHideColumns && /* @__PURE__ */ React24.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React24.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React24.createElement(
|
3424
|
-
|
3074
|
+
), enableHideColumns && /* @__PURE__ */ React24.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React24.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React24.createElement(Button, { variant: "outline", className: "hawa-flex hawa-flex-row hawa-gap-2" }, ((_d = props.texts) == null ? void 0 : _d.columns) || "Columns", /* @__PURE__ */ React24.createElement(
|
3075
|
+
"svg",
|
3425
3076
|
{
|
3426
|
-
|
3427
|
-
|
3077
|
+
width: "15",
|
3078
|
+
height: "15",
|
3079
|
+
viewBox: "0 0 15 15",
|
3080
|
+
fill: "none",
|
3081
|
+
xmlns: "http://www.w3.org/2000/svg"
|
3428
3082
|
},
|
3429
|
-
((_d = props.texts) == null ? void 0 : _d.columns) || "Columns",
|
3430
3083
|
/* @__PURE__ */ React24.createElement(
|
3431
|
-
"
|
3084
|
+
"path",
|
3432
3085
|
{
|
3433
|
-
|
3434
|
-
|
3435
|
-
|
3436
|
-
|
3437
|
-
|
3438
|
-
},
|
3439
|
-
/* @__PURE__ */ React24.createElement(
|
3440
|
-
"path",
|
3441
|
-
{
|
3442
|
-
d: "M5.5 3C4.67157 3 4 3.67157 4 4.5C4 5.32843 4.67157 6 5.5 6C6.32843 6 7 5.32843 7 4.5C7 3.67157 6.32843 3 5.5 3ZM3 5C3.01671 5 3.03323 4.99918 3.04952 4.99758C3.28022 6.1399 4.28967 7 5.5 7C6.71033 7 7.71978 6.1399 7.95048 4.99758C7.96677 4.99918 7.98329 5 8 5H13.5C13.7761 5 14 4.77614 14 4.5C14 4.22386 13.7761 4 13.5 4H8C7.98329 4 7.96677 4.00082 7.95048 4.00242C7.71978 2.86009 6.71033 2 5.5 2C4.28967 2 3.28022 2.86009 3.04952 4.00242C3.03323 4.00082 3.01671 4 3 4H1.5C1.22386 4 1 4.22386 1 4.5C1 4.77614 1.22386 5 1.5 5H3ZM11.9505 10.9976C11.7198 12.1399 10.7103 13 9.5 13C8.28967 13 7.28022 12.1399 7.04952 10.9976C7.03323 10.9992 7.01671 11 7 11H1.5C1.22386 11 1 10.7761 1 10.5C1 10.2239 1.22386 10 1.5 10H7C7.01671 10 7.03323 10.0008 7.04952 10.0024C7.28022 8.8601 8.28967 8 9.5 8C10.7103 8 11.7198 8.8601 11.9505 10.0024C11.9668 10.0008 11.9833 10 12 10H13.5C13.7761 10 14 10.2239 14 10.5C14 10.7761 13.7761 11 13.5 11H12C11.9833 11 11.9668 10.9992 11.9505 10.9976ZM8 10.5C8 9.67157 8.67157 9 9.5 9C10.3284 9 11 9.67157 11 10.5C11 11.3284 10.3284 12 9.5 12C8.67157 12 8 11.3284 8 10.5Z",
|
3443
|
-
fill: "currentColor",
|
3444
|
-
"fill-rule": "evenodd",
|
3445
|
-
"clip-rule": "evenodd"
|
3446
|
-
}
|
3447
|
-
)
|
3086
|
+
d: "M5.5 3C4.67157 3 4 3.67157 4 4.5C4 5.32843 4.67157 6 5.5 6C6.32843 6 7 5.32843 7 4.5C7 3.67157 6.32843 3 5.5 3ZM3 5C3.01671 5 3.03323 4.99918 3.04952 4.99758C3.28022 6.1399 4.28967 7 5.5 7C6.71033 7 7.71978 6.1399 7.95048 4.99758C7.96677 4.99918 7.98329 5 8 5H13.5C13.7761 5 14 4.77614 14 4.5C14 4.22386 13.7761 4 13.5 4H8C7.98329 4 7.96677 4.00082 7.95048 4.00242C7.71978 2.86009 6.71033 2 5.5 2C4.28967 2 3.28022 2.86009 3.04952 4.00242C3.03323 4.00082 3.01671 4 3 4H1.5C1.22386 4 1 4.22386 1 4.5C1 4.77614 1.22386 5 1.5 5H3ZM11.9505 10.9976C11.7198 12.1399 10.7103 13 9.5 13C8.28967 13 7.28022 12.1399 7.04952 10.9976C7.03323 10.9992 7.01671 11 7 11H1.5C1.22386 11 1 10.7761 1 10.5C1 10.2239 1.22386 10 1.5 10H7C7.01671 10 7.03323 10.0008 7.04952 10.0024C7.28022 8.8601 8.28967 8 9.5 8C10.7103 8 11.7198 8.8601 11.9505 10.0024C11.9668 10.0008 11.9833 10 12 10H13.5C13.7761 10 14 10.2239 14 10.5C14 10.7761 13.7761 11 13.5 11H12C11.9833 11 11.9668 10.9992 11.9505 10.9976ZM8 10.5C8 9.67157 8.67157 9 9.5 9C10.3284 9 11 9.67157 11 10.5C11 11.3284 10.3284 12 9.5 12C8.67157 12 8 11.3284 8 10.5Z",
|
3087
|
+
fill: "currentColor",
|
3088
|
+
fillRule: "evenodd",
|
3089
|
+
clipRule: "evenodd"
|
3090
|
+
}
|
3448
3091
|
)
|
3449
|
-
)), /* @__PURE__ */ React24.createElement(
|
3450
|
-
|
3451
|
-
|
3452
|
-
|
3453
|
-
|
3454
|
-
|
3455
|
-
|
3456
|
-
|
3457
|
-
|
3458
|
-
|
3459
|
-
|
3460
|
-
|
3461
|
-
|
3462
|
-
|
3463
|
-
translateFn ? translateFn(
|
3464
|
-
((_a2 = column.columnDef.meta) == null ? void 0 : _a2.i18nKey) ? (_b2 = column.columnDef.meta) == null ? void 0 : _b2.i18nKey : column.id
|
3465
|
-
) : column.id
|
3466
|
-
);
|
3467
|
-
})
|
3468
|
-
))), enableFiltering && ((_e = props.filters) == null ? void 0 : _e.length) && /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex-row hawa-gap-2 hawa-flex" }, (_f = props.filters) == null ? void 0 : _f.map((filter) => {
|
3092
|
+
))), /* @__PURE__ */ React24.createElement(DropdownMenuContent, { align: props.direction === "rtl" ? "start" : "end" }, table.getAllColumns().filter((column) => column.getCanHide()).map((column) => {
|
3093
|
+
var _a2, _b2;
|
3094
|
+
return /* @__PURE__ */ React24.createElement(
|
3095
|
+
DropdownMenuCheckboxItem,
|
3096
|
+
{
|
3097
|
+
key: column.id,
|
3098
|
+
checked: column.getIsVisible(),
|
3099
|
+
onCheckedChange: (value) => column.toggleVisibility(!!value)
|
3100
|
+
},
|
3101
|
+
translateFn ? translateFn(
|
3102
|
+
((_a2 = column.columnDef.meta) == null ? void 0 : _a2.i18nKey) ? (_b2 = column.columnDef.meta) == null ? void 0 : _b2.i18nKey : column.id
|
3103
|
+
) : column.id
|
3104
|
+
);
|
3105
|
+
})))), enableFiltering && ((_e = props.filters) == null ? void 0 : _e.length) && /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex-row hawa-gap-2 hawa-flex" }, (_f = props.filters) == null ? void 0 : _f.map((filter) => {
|
3469
3106
|
return /* @__PURE__ */ React24.createElement(
|
3470
3107
|
Button,
|
3471
3108
|
{
|
@@ -3515,45 +3152,25 @@ var DataTable = ({
|
|
3515
3152
|
width: `${header.column.columnDef.size}px !important`
|
3516
3153
|
}
|
3517
3154
|
},
|
3518
|
-
header.isPlaceholder ? null : (0, import_react_table.flexRender)(
|
3519
|
-
header.column.columnDef.header,
|
3520
|
-
header.getContext()
|
3521
|
-
)
|
3155
|
+
header.isPlaceholder ? null : (0, import_react_table.flexRender)(header.column.columnDef.header, header.getContext())
|
3522
3156
|
);
|
3523
|
-
})))), /* @__PURE__ */ React24.createElement(TableBody, null, ((_g = table.getRowModel().rows) == null ? void 0 : _g.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React24.createElement(
|
3524
|
-
|
3525
|
-
|
3526
|
-
|
3527
|
-
|
3528
|
-
|
3529
|
-
|
3530
|
-
|
3531
|
-
|
3532
|
-
|
3533
|
-
|
3534
|
-
key: cell.id,
|
3535
|
-
dir: props.direction,
|
3536
|
-
style: {
|
3537
|
-
maxWidth: `${cell.column.columnDef.maxSize}px !important`,
|
3538
|
-
minWidth: `${cell.column.columnDef.minSize}px !important`,
|
3539
|
-
width: `${cell.column.columnDef.size}px !important`
|
3540
|
-
},
|
3541
|
-
padding: props.condensed ? "condensed" : (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.padding
|
3157
|
+
})))), /* @__PURE__ */ React24.createElement(TableBody, null, ((_g = table.getRowModel().rows) == null ? void 0 : _g.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React24.createElement(TableRow, { key: row.id, "data-state": row.getIsSelected() && "selected" }, row.getVisibleCells().map((cell) => {
|
3158
|
+
var _a2;
|
3159
|
+
return /* @__PURE__ */ React24.createElement(
|
3160
|
+
TableCell,
|
3161
|
+
{
|
3162
|
+
key: cell.id,
|
3163
|
+
dir: props.direction,
|
3164
|
+
style: {
|
3165
|
+
maxWidth: `${cell.column.columnDef.maxSize}px !important`,
|
3166
|
+
minWidth: `${cell.column.columnDef.minSize}px !important`,
|
3167
|
+
width: `${cell.column.columnDef.size}px !important`
|
3542
3168
|
},
|
3543
|
-
(0
|
3544
|
-
|
3545
|
-
|
3546
|
-
|
3547
|
-
|
3548
|
-
})
|
3549
|
-
)) : /* @__PURE__ */ React24.createElement(TableRow, null, /* @__PURE__ */ React24.createElement(
|
3550
|
-
TableCell,
|
3551
|
-
{
|
3552
|
-
colSpan: columns.length,
|
3553
|
-
className: "hawa-h-24 hawa-text-center"
|
3554
|
-
},
|
3555
|
-
(_h = props.texts) == null ? void 0 : _h.noData
|
3556
|
-
))))),
|
3169
|
+
padding: props.condensed ? "condensed" : (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.padding
|
3170
|
+
},
|
3171
|
+
(0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext())
|
3172
|
+
);
|
3173
|
+
}))) : /* @__PURE__ */ React24.createElement(TableRow, null, /* @__PURE__ */ React24.createElement(TableCell, { colSpan: columns.length, className: "hawa-h-24 hawa-text-center" }, (_h = props.texts) == null ? void 0 : _h.noData))))),
|
3557
3174
|
/* @__PURE__ */ React24.createElement(
|
3558
3175
|
"div",
|
3559
3176
|
{
|
@@ -3563,16 +3180,7 @@ var DataTable = ({
|
|
3563
3180
|
)
|
3564
3181
|
},
|
3565
3182
|
!props.showCount && /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm hawa-text-muted-foreground" }),
|
3566
|
-
props.showCount || table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount ? /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-gap-4" }, /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-items-center hawa-justify-between" }, props.showCount && /* @__PURE__ */ React24.createElement(
|
3567
|
-
"div",
|
3568
|
-
{
|
3569
|
-
className: "hawa-text-muted-foreground hawa-text-sm",
|
3570
|
-
dir: props.direction
|
3571
|
-
},
|
3572
|
-
/* @__PURE__ */ React24.createElement("span", null, (_i = props.texts) == null ? void 0 : _i.total),
|
3573
|
-
" ",
|
3574
|
-
/* @__PURE__ */ React24.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
|
3575
|
-
), props.showCount && table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React24.createElement("div", { className: "hawa-w-[0.5px] hawa-mx-2 hawa-bg-red-500 hawa-h-full" }), table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React24.createElement(
|
3183
|
+
props.showCount || table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount ? /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-gap-4" }, /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-flex-row hawa-h-auto hawa-items-center hawa-justify-between" }, props.showCount && /* @__PURE__ */ React24.createElement("div", { className: "hawa-text-muted-foreground hawa-text-sm", dir: props.direction }, /* @__PURE__ */ React24.createElement("span", null, (_i = props.texts) == null ? void 0 : _i.total), " ", /* @__PURE__ */ React24.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())), props.showCount && table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React24.createElement("div", { className: "hawa-w-[0.5px] hawa-mx-2 hawa-bg-red-500 hawa-h-full" }), table.getFilteredSelectedRowModel().rows.length > 0 && props.showSelectionCount && /* @__PURE__ */ React24.createElement(
|
3576
3184
|
"div",
|
3577
3185
|
{
|
3578
3186
|
className: "hawa-text-muted-foreground hawa-text-sm",
|
@@ -3593,9 +3201,7 @@ var DataTable = ({
|
|
3593
3201
|
direction: props.direction,
|
3594
3202
|
items: (props.bulkActions || []).map((action) => ({
|
3595
3203
|
...action,
|
3596
|
-
action: () => action.action(
|
3597
|
-
table.getFilteredSelectedRowModel().rows
|
3598
|
-
)
|
3204
|
+
action: () => action.action(table.getFilteredSelectedRowModel().rows)
|
3599
3205
|
})),
|
3600
3206
|
trigger: /* @__PURE__ */ React24.createElement(Button, { size: "xs" }, ((_l = props.texts) == null ? void 0 : _l.bulkAction) || "Bulk Action")
|
3601
3207
|
}
|
@@ -3649,9 +3255,7 @@ var DataTable = ({
|
|
3649
3255
|
size: "smallIcon",
|
3650
3256
|
onClick: () => table.setPageIndex(0),
|
3651
3257
|
disabled: !table.getCanPreviousPage(),
|
3652
|
-
className: cn(
|
3653
|
-
props.direction === "rtl" && "hawa-rotate-180"
|
3654
|
-
)
|
3258
|
+
className: cn(props.direction === "rtl" && "hawa-rotate-180")
|
3655
3259
|
},
|
3656
3260
|
/* @__PURE__ */ React24.createElement(
|
3657
3261
|
"svg",
|
@@ -3677,9 +3281,7 @@ var DataTable = ({
|
|
3677
3281
|
size: "smallIcon",
|
3678
3282
|
onClick: () => table.previousPage(),
|
3679
3283
|
disabled: !table.getCanPreviousPage(),
|
3680
|
-
className: cn(
|
3681
|
-
props.direction === "rtl" && "hawa-rotate-180"
|
3682
|
-
)
|
3284
|
+
className: cn(props.direction === "rtl" && "hawa-rotate-180")
|
3683
3285
|
},
|
3684
3286
|
/* @__PURE__ */ React24.createElement(
|
3685
3287
|
"svg",
|
@@ -3705,9 +3307,7 @@ var DataTable = ({
|
|
3705
3307
|
size: "smallIcon",
|
3706
3308
|
onClick: () => table.nextPage(),
|
3707
3309
|
disabled: !table.getCanNextPage(),
|
3708
|
-
className: cn(
|
3709
|
-
props.direction === "ltr" && "hawa-rotate-180"
|
3710
|
-
)
|
3310
|
+
className: cn(props.direction === "ltr" && "hawa-rotate-180")
|
3711
3311
|
},
|
3712
3312
|
/* @__PURE__ */ React24.createElement(
|
3713
3313
|
"svg",
|
@@ -3733,9 +3333,7 @@ var DataTable = ({
|
|
3733
3333
|
size: "smallIcon",
|
3734
3334
|
onClick: () => table.setPageIndex(table.getPageCount() - 1),
|
3735
3335
|
disabled: !table.getCanNextPage(),
|
3736
|
-
className: cn(
|
3737
|
-
props.direction === "ltr" && "hawa-rotate-180"
|
3738
|
-
)
|
3336
|
+
className: cn(props.direction === "ltr" && "hawa-rotate-180")
|
3739
3337
|
},
|
3740
3338
|
/* @__PURE__ */ React24.createElement(
|
3741
3339
|
"svg",
|
@@ -3858,21 +3456,19 @@ var import_react_tabs = require("@radix-ui/react-tabs");
|
|
3858
3456
|
// elements/popover/Popover.tsx
|
3859
3457
|
var React26 = __toESM(require("react"));
|
3860
3458
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
3861
|
-
var PopoverContent = React26.forwardRef(
|
3862
|
-
|
3863
|
-
|
3864
|
-
|
3865
|
-
|
3866
|
-
|
3867
|
-
|
3868
|
-
|
3869
|
-
|
3870
|
-
|
3871
|
-
|
3872
|
-
|
3873
|
-
|
3874
|
-
))
|
3875
|
-
);
|
3459
|
+
var PopoverContent = React26.forwardRef(({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React26.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React26.createElement(
|
3460
|
+
PopoverPrimitive.Content,
|
3461
|
+
{
|
3462
|
+
ref,
|
3463
|
+
align,
|
3464
|
+
sideOffset,
|
3465
|
+
className: cn(
|
3466
|
+
"dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
3467
|
+
className
|
3468
|
+
),
|
3469
|
+
...props
|
3470
|
+
}
|
3471
|
+
)));
|
3876
3472
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
3877
3473
|
var Popover = ({
|
3878
3474
|
trigger,
|
@@ -3892,15 +3488,7 @@ var Popover = ({
|
|
3892
3488
|
trigger: "var(--radix-popover-trigger-width)",
|
3893
3489
|
default: "auto"
|
3894
3490
|
};
|
3895
|
-
return /* @__PURE__ */ React26.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React26.createElement(
|
3896
|
-
PopoverPrimitive.Trigger,
|
3897
|
-
{
|
3898
|
-
className: "hawa-w-full",
|
3899
|
-
disabled: disableTrigger,
|
3900
|
-
...triggerProps
|
3901
|
-
},
|
3902
|
-
trigger
|
3903
|
-
), /* @__PURE__ */ React26.createElement(
|
3491
|
+
return /* @__PURE__ */ React26.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React26.createElement(PopoverPrimitive.Trigger, { className: "hawa-w-full", disabled: disableTrigger, ...triggerProps }, trigger), /* @__PURE__ */ React26.createElement(
|
3904
3492
|
PopoverContent,
|
3905
3493
|
{
|
3906
3494
|
side,
|
@@ -3955,12 +3543,8 @@ var Radio = (0, import_react13.forwardRef)(
|
|
3955
3543
|
default: "hawa-max-w-fit",
|
3956
3544
|
full: "hawa-w-full"
|
3957
3545
|
};
|
3958
|
-
const [parentDirection, setParentDirection] = import_react13.default.useState(
|
3959
|
-
|
3960
|
-
);
|
3961
|
-
const [selectedOption, setSelectedOption] = (0, import_react13.useState)(
|
3962
|
-
props.defaultValue || props.value
|
3963
|
-
);
|
3546
|
+
const [parentDirection, setParentDirection] = import_react13.default.useState(null);
|
3547
|
+
const [selectedOption, setSelectedOption] = (0, import_react13.useState)(props.defaultValue || props.value);
|
3964
3548
|
const [openTooltip, setOpenTooltip] = (0, import_react13.useState)(null);
|
3965
3549
|
const parentRef = (0, import_react13.useRef)(null);
|
3966
3550
|
(0, import_react13.useEffect)(() => {
|
@@ -3989,89 +3573,78 @@ var Radio = (0, import_react13.forwardRef)(
|
|
3989
3573
|
];
|
3990
3574
|
switch (design) {
|
3991
3575
|
case "tabs":
|
3992
|
-
return /* @__PURE__ */ import_react13.default.createElement(
|
3993
|
-
|
3576
|
+
return /* @__PURE__ */ import_react13.default.createElement("div", { className: cn("hawa-gap-2 hawa-flex hawa-flex-col", containerClassNames == null ? void 0 : containerClassNames.tabs) }, props.label && /* @__PURE__ */ import_react13.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react13.default.createElement(import_react_tabs.Tabs, null, /* @__PURE__ */ import_react13.default.createElement(
|
3577
|
+
import_react_tabs.TabsList,
|
3994
3578
|
{
|
3579
|
+
role: "tablist",
|
3580
|
+
ref: parentRef,
|
3995
3581
|
className: cn(
|
3996
|
-
"hawa-
|
3997
|
-
|
3582
|
+
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
3583
|
+
"hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium hawa-h-[40px]",
|
3584
|
+
orientationStyle[orientation],
|
3585
|
+
widthStyle[width],
|
3586
|
+
tabsContainerClassName,
|
3587
|
+
props.direction === "rtl" ? "hawa-flex-row-reverse" : ""
|
3998
3588
|
)
|
3999
3589
|
},
|
4000
|
-
props.
|
4001
|
-
|
4002
|
-
|
4003
|
-
|
4004
|
-
|
4005
|
-
|
4006
|
-
|
4007
|
-
|
4008
|
-
|
4009
|
-
|
4010
|
-
widthStyle[width],
|
4011
|
-
tabsContainerClassName,
|
4012
|
-
props.direction === "rtl" ? "hawa-flex-row-reverse" : ""
|
4013
|
-
)
|
4014
|
-
},
|
4015
|
-
(_b = props.options) == null ? void 0 : _b.map((opt, o) => {
|
4016
|
-
return opt.tooltip ? /* @__PURE__ */ import_react13.default.createElement(
|
4017
|
-
PopoverRoot,
|
3590
|
+
(_b = props.options) == null ? void 0 : _b.map((opt, o) => {
|
3591
|
+
return opt.tooltip ? /* @__PURE__ */ import_react13.default.createElement(
|
3592
|
+
PopoverRoot,
|
3593
|
+
{
|
3594
|
+
key: o,
|
3595
|
+
open: o === openTooltip,
|
3596
|
+
onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
|
3597
|
+
},
|
3598
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
3599
|
+
PopoverTrigger,
|
4018
3600
|
{
|
4019
|
-
|
4020
|
-
|
4021
|
-
|
3601
|
+
onMouseEnter: () => setOpenTooltip(o),
|
3602
|
+
onMouseLeave: () => setOpenTooltip(null),
|
3603
|
+
asChild: true
|
4022
3604
|
},
|
4023
3605
|
/* @__PURE__ */ import_react13.default.createElement(
|
4024
|
-
|
3606
|
+
import_react_tabs.TabsTrigger,
|
4025
3607
|
{
|
4026
|
-
|
4027
|
-
|
4028
|
-
|
4029
|
-
|
4030
|
-
|
4031
|
-
|
4032
|
-
|
4033
|
-
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
4034
|
-
value: opt.value,
|
4035
|
-
role: "tab",
|
4036
|
-
tabIndex: 0,
|
4037
|
-
onClick: () => {
|
4038
|
-
if (props.disabled || opt.disabled) return;
|
4039
|
-
handleChange(opt);
|
4040
|
-
},
|
4041
|
-
className: cn(
|
4042
|
-
...radio_option_tabs_styling,
|
4043
|
-
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
4044
|
-
)
|
3608
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
3609
|
+
value: opt.value,
|
3610
|
+
role: "tab",
|
3611
|
+
tabIndex: 0,
|
3612
|
+
onClick: () => {
|
3613
|
+
if (props.disabled || opt.disabled) return;
|
3614
|
+
handleChange(opt);
|
4045
3615
|
},
|
4046
|
-
|
4047
|
-
|
4048
|
-
|
4049
|
-
|
4050
|
-
/* @__PURE__ */ import_react13.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
4051
|
-
) : /* @__PURE__ */ import_react13.default.createElement(
|
4052
|
-
import_react_tabs.TabsTrigger,
|
4053
|
-
{
|
4054
|
-
key: o,
|
4055
|
-
role: "tab",
|
4056
|
-
tabIndex: 0,
|
4057
|
-
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
4058
|
-
onClick: () => {
|
4059
|
-
if (props.disabled || opt.disabled) return;
|
4060
|
-
handleChange(opt);
|
3616
|
+
className: cn(
|
3617
|
+
...radio_option_tabs_styling,
|
3618
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
3619
|
+
)
|
4061
3620
|
},
|
4062
|
-
|
4063
|
-
|
4064
|
-
|
4065
|
-
|
4066
|
-
|
3621
|
+
opt.icon && opt.icon,
|
3622
|
+
opt.label
|
3623
|
+
)
|
3624
|
+
),
|
3625
|
+
/* @__PURE__ */ import_react13.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
3626
|
+
) : /* @__PURE__ */ import_react13.default.createElement(
|
3627
|
+
import_react_tabs.TabsTrigger,
|
3628
|
+
{
|
3629
|
+
key: o,
|
3630
|
+
role: "tab",
|
3631
|
+
tabIndex: 0,
|
3632
|
+
"aria-current": selectedOption === opt.value ? "page" : void 0,
|
3633
|
+
onClick: () => {
|
3634
|
+
if (props.disabled || opt.disabled) return;
|
3635
|
+
handleChange(opt);
|
4067
3636
|
},
|
4068
|
-
|
4069
|
-
|
4070
|
-
|
4071
|
-
|
4072
|
-
|
4073
|
-
|
4074
|
-
|
3637
|
+
className: cn(
|
3638
|
+
...radio_option_tabs_styling,
|
3639
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
3640
|
+
),
|
3641
|
+
value: opt.value
|
3642
|
+
},
|
3643
|
+
opt.icon && opt.icon,
|
3644
|
+
opt.label
|
3645
|
+
);
|
3646
|
+
})
|
3647
|
+
)), !forceHideHelperText && /* @__PURE__ */ import_react13.default.createElement(HelperText, { helperText: props.helperText }));
|
4075
3648
|
case "bordered":
|
4076
3649
|
return /* @__PURE__ */ import_react13.default.createElement(
|
4077
3650
|
"div",
|
@@ -4119,11 +3692,7 @@ var Radio = (0, import_react13.forwardRef)(
|
|
4119
3692
|
return /* @__PURE__ */ import_react13.default.createElement(
|
4120
3693
|
"ul",
|
4121
3694
|
{
|
4122
|
-
className: cn(
|
4123
|
-
orientationStyle[orientation],
|
4124
|
-
"hawa-gap-4",
|
4125
|
-
containerClassNames == null ? void 0 : containerClassNames.cards
|
4126
|
-
)
|
3695
|
+
className: cn(orientationStyle[orientation], "hawa-gap-4", containerClassNames == null ? void 0 : containerClassNames.cards)
|
4127
3696
|
},
|
4128
3697
|
(_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react13.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react13.default.createElement(
|
4129
3698
|
"input",
|
@@ -4149,49 +3718,38 @@ var Radio = (0, import_react13.forwardRef)(
|
|
4149
3718
|
)))
|
4150
3719
|
);
|
4151
3720
|
default:
|
4152
|
-
return /* @__PURE__ */ import_react13.default.createElement(
|
3721
|
+
return /* @__PURE__ */ import_react13.default.createElement("div", { className: cn("hawa-flex hawa-flex-col hawa-gap-2", containerClassNames == null ? void 0 : containerClassNames.default) }, props.label && /* @__PURE__ */ import_react13.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react13.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react13.default.createElement(
|
4153
3722
|
"div",
|
4154
3723
|
{
|
4155
3724
|
className: cn(
|
4156
|
-
"hawa-flex hawa-
|
4157
|
-
|
4158
|
-
)
|
3725
|
+
"radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
|
3726
|
+
props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
|
3727
|
+
),
|
3728
|
+
key: i + 1
|
4159
3729
|
},
|
4160
|
-
|
4161
|
-
|
4162
|
-
|
3730
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
3731
|
+
"input",
|
3732
|
+
{
|
3733
|
+
disabled: opt.disabled,
|
3734
|
+
id: opt.value.toString(),
|
3735
|
+
type: "radio",
|
3736
|
+
value: opt.value,
|
3737
|
+
name,
|
3738
|
+
onChange: () => handleChange(opt)
|
3739
|
+
}
|
3740
|
+
),
|
3741
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
3742
|
+
"label",
|
4163
3743
|
{
|
3744
|
+
htmlFor: opt.value.toString(),
|
4164
3745
|
className: cn(
|
4165
|
-
"
|
4166
|
-
|
4167
|
-
)
|
4168
|
-
key: i + 1
|
3746
|
+
"hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
3747
|
+
opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
|
3748
|
+
)
|
4169
3749
|
},
|
4170
|
-
|
4171
|
-
|
4172
|
-
|
4173
|
-
disabled: opt.disabled,
|
4174
|
-
id: opt.value.toString(),
|
4175
|
-
type: "radio",
|
4176
|
-
value: opt.value,
|
4177
|
-
name,
|
4178
|
-
onChange: () => handleChange(opt)
|
4179
|
-
}
|
4180
|
-
),
|
4181
|
-
/* @__PURE__ */ import_react13.default.createElement(
|
4182
|
-
"label",
|
4183
|
-
{
|
4184
|
-
htmlFor: opt.value.toString(),
|
4185
|
-
className: cn(
|
4186
|
-
"hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
4187
|
-
opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
|
4188
|
-
)
|
4189
|
-
},
|
4190
|
-
opt.label
|
4191
|
-
)
|
4192
|
-
))),
|
4193
|
-
/* @__PURE__ */ import_react13.default.createElement(HelperText, { helperText: props.helperText })
|
4194
|
-
);
|
3750
|
+
opt.label
|
3751
|
+
)
|
3752
|
+
))), /* @__PURE__ */ import_react13.default.createElement(HelperText, { helperText: props.helperText }));
|
4195
3753
|
}
|
4196
3754
|
}
|
4197
3755
|
);
|
@@ -4204,66 +3762,57 @@ var PopoverPrimitive2 = __toESM(require("@radix-ui/react-popover"));
|
|
4204
3762
|
var React28 = __toESM(require("react"));
|
4205
3763
|
var import_react_dialog = require("@radix-ui/react-dialog");
|
4206
3764
|
var import_cmdk = require("cmdk");
|
4207
|
-
var Command = React28.forwardRef(
|
4208
|
-
|
4209
|
-
|
4210
|
-
ref,
|
4211
|
-
className: cn(
|
4212
|
-
"hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground",
|
4213
|
-
className
|
4214
|
-
),
|
4215
|
-
...props
|
4216
|
-
}
|
4217
|
-
));
|
4218
|
-
var CommandDialog = ({ children, ...props }) => {
|
4219
|
-
return /* @__PURE__ */ React28.createElement(import_react_dialog.Dialog, { ...props }, /* @__PURE__ */ React28.createElement(DialogContent, { className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg" }, /* @__PURE__ */ React28.createElement(Command, { className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5" }, children)));
|
4220
|
-
};
|
4221
|
-
var CommandInput = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement(
|
4222
|
-
"div",
|
4223
|
-
{
|
4224
|
-
className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
|
4225
|
-
"cmdk-input-wrapper": ""
|
4226
|
-
},
|
4227
|
-
/* @__PURE__ */ React28.createElement(
|
4228
|
-
"svg",
|
4229
|
-
{
|
4230
|
-
"aria-label": "Search Icon",
|
4231
|
-
xmlns: "http://www.w3.org/2000/svg",
|
4232
|
-
width: "24",
|
4233
|
-
height: "24",
|
4234
|
-
viewBox: "0 0 24 24",
|
4235
|
-
fill: "none",
|
4236
|
-
stroke: "currentColor",
|
4237
|
-
strokeWidth: "2",
|
4238
|
-
strokeLinecap: "round",
|
4239
|
-
strokeLinejoin: "round",
|
4240
|
-
className: "hawa-icon hawa-me-2 hawa-shrink-0 hawa-opacity-50"
|
4241
|
-
},
|
4242
|
-
/* @__PURE__ */ React28.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
4243
|
-
/* @__PURE__ */ React28.createElement("path", { d: "m21 21-4.3-4.3" })
|
4244
|
-
),
|
4245
|
-
/* @__PURE__ */ React28.createElement(
|
4246
|
-
import_cmdk.Command.Input,
|
3765
|
+
var Command = React28.forwardRef(
|
3766
|
+
({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement(
|
3767
|
+
import_cmdk.Command,
|
4247
3768
|
{
|
4248
3769
|
ref,
|
4249
3770
|
className: cn(
|
4250
|
-
"hawa-flex hawa-h-
|
3771
|
+
"hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground",
|
4251
3772
|
className
|
4252
3773
|
),
|
4253
3774
|
...props
|
4254
3775
|
}
|
4255
3776
|
)
|
4256
|
-
)
|
4257
|
-
var
|
4258
|
-
|
3777
|
+
);
|
3778
|
+
var CommandDialog = ({ children, ...props }) => {
|
3779
|
+
return /* @__PURE__ */ React28.createElement(import_react_dialog.Dialog, { ...props }, /* @__PURE__ */ React28.createElement(DialogContent, { className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg" }, /* @__PURE__ */ React28.createElement(Command, { className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5" }, children)));
|
3780
|
+
};
|
3781
|
+
var CommandInput = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3", "cmdk-input-wrapper": "" }, /* @__PURE__ */ React28.createElement(
|
3782
|
+
"svg",
|
3783
|
+
{
|
3784
|
+
"aria-label": "Search Icon",
|
3785
|
+
xmlns: "http://www.w3.org/2000/svg",
|
3786
|
+
width: "24",
|
3787
|
+
height: "24",
|
3788
|
+
viewBox: "0 0 24 24",
|
3789
|
+
fill: "none",
|
3790
|
+
stroke: "currentColor",
|
3791
|
+
strokeWidth: "2",
|
3792
|
+
strokeLinecap: "round",
|
3793
|
+
strokeLinejoin: "round",
|
3794
|
+
className: "hawa-icon hawa-me-2 hawa-shrink-0 hawa-opacity-50"
|
3795
|
+
},
|
3796
|
+
/* @__PURE__ */ React28.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
3797
|
+
/* @__PURE__ */ React28.createElement("path", { d: "m21 21-4.3-4.3" })
|
3798
|
+
), /* @__PURE__ */ React28.createElement(
|
3799
|
+
import_cmdk.Command.Input,
|
4259
3800
|
{
|
4260
3801
|
ref,
|
4261
3802
|
className: cn(
|
4262
|
-
"hawa-
|
3803
|
+
"hawa-flex hawa-h-11 hawa-w-full hawa-rounded-md hawa-bg-transparent hawa-py-3 hawa-text-sm hawa-outline-none placeholder:hawa-text-muted-foreground disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
|
4263
3804
|
className
|
4264
3805
|
),
|
4265
3806
|
...props
|
4266
3807
|
}
|
3808
|
+
)));
|
3809
|
+
var CommandList = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement(
|
3810
|
+
import_cmdk.Command.List,
|
3811
|
+
{
|
3812
|
+
ref,
|
3813
|
+
className: cn("hawa-max-h-[300px] hawa-overflow-y-auto hawa-overflow-x-hidden", className),
|
3814
|
+
...props
|
3815
|
+
}
|
4267
3816
|
));
|
4268
3817
|
var CommandEmpty = React28.forwardRef((props, ref) => /* @__PURE__ */ React28.createElement(
|
4269
3818
|
import_cmdk.Command.Empty,
|
@@ -4319,52 +3868,30 @@ var CommandShortcut = ({
|
|
4319
3868
|
}
|
4320
3869
|
);
|
4321
3870
|
};
|
4322
|
-
var FullCommand = ({
|
4323
|
-
items,
|
4324
|
-
|
4325
|
-
|
4326
|
-
|
4327
|
-
|
4328
|
-
|
4329
|
-
|
4330
|
-
|
4331
|
-
|
4332
|
-
|
4333
|
-
|
4334
|
-
|
4335
|
-
|
4336
|
-
|
4337
|
-
|
4338
|
-
|
4339
|
-
)
|
4340
|
-
|
4341
|
-
|
4342
|
-
|
4343
|
-
|
4344
|
-
CommandItem,
|
4345
|
-
{
|
4346
|
-
key: subIndex,
|
4347
|
-
onSelect: () => {
|
4348
|
-
if (onActionClick) onActionClick();
|
4349
|
-
subItem.action();
|
4350
|
-
}
|
4351
|
-
},
|
4352
|
-
/* @__PURE__ */ React28.createElement(subItem.icon, { className: "hawa-icon hawa-me-2" }),
|
4353
|
-
/* @__PURE__ */ React28.createElement("span", null, subItem.label),
|
4354
|
-
subItem.shortcut && /* @__PURE__ */ React28.createElement(CommandShortcut, null, subItem.shortcut)
|
4355
|
-
)));
|
4356
|
-
} else if (item.type === "separator") {
|
4357
|
-
return /* @__PURE__ */ React28.createElement(CommandSeparator, { key: index });
|
4358
|
-
}
|
4359
|
-
return null;
|
4360
|
-
}))
|
4361
|
-
);
|
3871
|
+
var FullCommand = ({ items, direction = "ltr", texts, onActionClick }) => {
|
3872
|
+
return /* @__PURE__ */ React28.createElement(Command, { dir: direction, className: "hawa-rounded-lg hawa-border hawa-shadow-md !hawa-h-full" }, /* @__PURE__ */ React28.createElement(CommandInput, { placeholder: (texts == null ? void 0 : texts.searchPlaceholder) || "Type a command or search..." }), /* @__PURE__ */ React28.createElement(CommandList, null, /* @__PURE__ */ React28.createElement(CommandEmpty, null, (texts == null ? void 0 : texts.emptyText) || "No results found."), items.map((item, index) => {
|
3873
|
+
var _a;
|
3874
|
+
if (item.type === "group") {
|
3875
|
+
return /* @__PURE__ */ React28.createElement(CommandGroup, { heading: item.heading, key: index }, (_a = item.items) == null ? void 0 : _a.map((subItem, subIndex) => /* @__PURE__ */ React28.createElement(
|
3876
|
+
CommandItem,
|
3877
|
+
{
|
3878
|
+
key: subIndex,
|
3879
|
+
onSelect: () => {
|
3880
|
+
if (onActionClick) onActionClick();
|
3881
|
+
subItem.action();
|
3882
|
+
}
|
3883
|
+
},
|
3884
|
+
/* @__PURE__ */ React28.createElement(subItem.icon, { className: "hawa-icon hawa-me-2" }),
|
3885
|
+
/* @__PURE__ */ React28.createElement("span", null, subItem.label),
|
3886
|
+
subItem.shortcut && /* @__PURE__ */ React28.createElement(CommandShortcut, null, subItem.shortcut)
|
3887
|
+
)));
|
3888
|
+
} else if (item.type === "separator") {
|
3889
|
+
return /* @__PURE__ */ React28.createElement(CommandSeparator, { key: index });
|
3890
|
+
}
|
3891
|
+
return null;
|
3892
|
+
})));
|
4362
3893
|
};
|
4363
|
-
var AppCommand = ({
|
4364
|
-
commandProps,
|
4365
|
-
dialogProps,
|
4366
|
-
onActionClick
|
4367
|
-
}) => {
|
3894
|
+
var AppCommand = ({ commandProps, dialogProps, onActionClick }) => {
|
4368
3895
|
return /* @__PURE__ */ React28.createElement(import_react_dialog.Dialog, { ...dialogProps }, /* @__PURE__ */ React28.createElement(
|
4369
3896
|
DialogContent,
|
4370
3897
|
{
|
@@ -4410,9 +3937,7 @@ var Combobox = React29.forwardRef(
|
|
4410
3937
|
setOpen(open2);
|
4411
3938
|
}
|
4412
3939
|
};
|
4413
|
-
const selectedItem = data.find(
|
4414
|
-
(item) => getProperty(item, valueKey) === value
|
4415
|
-
);
|
3940
|
+
const selectedItem = data.find((item) => getProperty(item, valueKey) === value);
|
4416
3941
|
return /* @__PURE__ */ React29.createElement(
|
4417
3942
|
"div",
|
4418
3943
|
{
|
@@ -4473,8 +3998,7 @@ var Combobox = React29.forwardRef(
|
|
4473
3998
|
Command,
|
4474
3999
|
{
|
4475
4000
|
filter: (value2, search) => {
|
4476
|
-
if (value2.toLowerCase().includes(search.toLowerCase()))
|
4477
|
-
return 1;
|
4001
|
+
if (value2.toLowerCase().includes(search.toLowerCase())) return 1;
|
4478
4002
|
return 0;
|
4479
4003
|
}
|
4480
4004
|
},
|
@@ -4490,10 +4014,7 @@ var Combobox = React29.forwardRef(
|
|
4490
4014
|
/* @__PURE__ */ React29.createElement(CommandList, null, /* @__PURE__ */ React29.createElement(
|
4491
4015
|
CommandGroup,
|
4492
4016
|
{
|
4493
|
-
className: cn(
|
4494
|
-
"hawa-max-h-[200px]",
|
4495
|
-
data.length > 0 && "hawa-overflow-y-auto"
|
4496
|
-
)
|
4017
|
+
className: cn("hawa-max-h-[200px]", data.length > 0 && "hawa-overflow-y-auto")
|
4497
4018
|
},
|
4498
4019
|
data.map((item, i) => /* @__PURE__ */ React29.createElement(
|
4499
4020
|
CommandItem,
|
@@ -4501,13 +4022,9 @@ var Combobox = React29.forwardRef(
|
|
4501
4022
|
key: i,
|
4502
4023
|
onSelect: () => {
|
4503
4024
|
const newValue = getProperty(item, valueKey);
|
4504
|
-
setValue(
|
4505
|
-
newValue === value ? "" : newValue
|
4506
|
-
);
|
4025
|
+
setValue(newValue === value ? "" : newValue);
|
4507
4026
|
if (props.onChange) {
|
4508
|
-
props.onChange(
|
4509
|
-
newValue === value ? "" : newValue
|
4510
|
-
);
|
4027
|
+
props.onChange(newValue === value ? "" : newValue);
|
4511
4028
|
}
|
4512
4029
|
setOpen(false);
|
4513
4030
|
}
|
@@ -4565,15 +4082,7 @@ var Textarea = React30.forwardRef(
|
|
4565
4082
|
className
|
4566
4083
|
)
|
4567
4084
|
},
|
4568
|
-
/* @__PURE__ */ React30.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React30.createElement(Label2, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React30.createElement(
|
4569
|
-
"div",
|
4570
|
-
{
|
4571
|
-
className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none"
|
4572
|
-
},
|
4573
|
-
(textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
|
4574
|
-
"/",
|
4575
|
-
textareaProps == null ? void 0 : textareaProps.maxLength
|
4576
|
-
)),
|
4085
|
+
/* @__PURE__ */ React30.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React30.createElement(Label2, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React30.createElement("div", { className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none" }, (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0, "/", textareaProps == null ? void 0 : textareaProps.maxLength)),
|
4577
4086
|
isLoading ? /* @__PURE__ */ React30.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React30.createElement(
|
4578
4087
|
"textarea",
|
4579
4088
|
{
|
@@ -4616,13 +4125,7 @@ var FileDropzone = ({
|
|
4616
4125
|
var _a, _b, _c, _d, _e, _f;
|
4617
4126
|
const [cmp, setCmp] = (0, import_react14.useState)(0);
|
4618
4127
|
const [max, setMax] = (0, import_react14.useState)(0);
|
4619
|
-
const {
|
4620
|
-
getRootProps,
|
4621
|
-
getInputProps,
|
4622
|
-
fileRejections,
|
4623
|
-
acceptedFiles,
|
4624
|
-
isDragActive
|
4625
|
-
} = (0, import_react_dropzone.useDropzone)({
|
4128
|
+
const { getRootProps, getInputProps, fileRejections, acceptedFiles, isDragActive } = (0, import_react_dropzone.useDropzone)({
|
4626
4129
|
multiple: true,
|
4627
4130
|
accept,
|
4628
4131
|
maxSize,
|
@@ -4662,53 +4165,19 @@ var FileDropzone = ({
|
|
4662
4165
|
const k = 1024;
|
4663
4166
|
const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
4664
4167
|
const i = Math.floor(Math.log(maxSize) / Math.log(1024));
|
4665
|
-
setMax(
|
4666
|
-
parseFloat((maxSize / Math.pow(1024, i)).toFixed(2)) + " " + sizes[i]
|
4667
|
-
);
|
4168
|
+
setMax(parseFloat((maxSize / Math.pow(1024, i)).toFixed(2)) + " " + sizes[i]);
|
4668
4169
|
}
|
4669
4170
|
}, [maxSize]);
|
4670
4171
|
const errs = fileRejections.map((rej, i) => {
|
4671
4172
|
switch (rej.errors[0].code) {
|
4672
4173
|
case "file-too-large":
|
4673
|
-
return /* @__PURE__ */ import_react14.default.createElement(
|
4674
|
-
Alert,
|
4675
|
-
{
|
4676
|
-
key: i,
|
4677
|
-
text: rej.file.name,
|
4678
|
-
title: texts.fileTooLarge,
|
4679
|
-
severity: "error"
|
4680
|
-
}
|
4681
|
-
);
|
4174
|
+
return /* @__PURE__ */ import_react14.default.createElement(Alert, { key: i, text: rej.file.name, title: texts.fileTooLarge, severity: "error" });
|
4682
4175
|
case "too-many-files":
|
4683
|
-
return /* @__PURE__ */ import_react14.default.createElement(
|
4684
|
-
Alert,
|
4685
|
-
{
|
4686
|
-
key: i,
|
4687
|
-
text: rej.file.name,
|
4688
|
-
title: texts.tooManyFiles,
|
4689
|
-
severity: "error"
|
4690
|
-
}
|
4691
|
-
);
|
4176
|
+
return /* @__PURE__ */ import_react14.default.createElement(Alert, { key: i, text: rej.file.name, title: texts.tooManyFiles, severity: "error" });
|
4692
4177
|
case "file-invalid-type":
|
4693
|
-
return /* @__PURE__ */ import_react14.default.createElement(
|
4694
|
-
Alert,
|
4695
|
-
{
|
4696
|
-
key: i,
|
4697
|
-
text: rej.file.name,
|
4698
|
-
title: texts.invalidFileType,
|
4699
|
-
severity: "error"
|
4700
|
-
}
|
4701
|
-
);
|
4178
|
+
return /* @__PURE__ */ import_react14.default.createElement(Alert, { key: i, text: rej.file.name, title: texts.invalidFileType, severity: "error" });
|
4702
4179
|
default:
|
4703
|
-
return /* @__PURE__ */ import_react14.default.createElement(
|
4704
|
-
Alert,
|
4705
|
-
{
|
4706
|
-
key: i,
|
4707
|
-
text: rej.file.name,
|
4708
|
-
title: rej.errors[0].code,
|
4709
|
-
severity: "error"
|
4710
|
-
}
|
4711
|
-
);
|
4180
|
+
return /* @__PURE__ */ import_react14.default.createElement(Alert, { key: i, text: rej.file.name, title: rej.errors[0].code, severity: "error" });
|
4712
4181
|
}
|
4713
4182
|
});
|
4714
4183
|
const thumbs = files == null ? void 0 : files.map((file, index) => /* @__PURE__ */ import_react14.default.createElement("div", { className: "hawa-relative hawa-rounded", key: index }, /* @__PURE__ */ import_react14.default.createElement(
|
@@ -4795,21 +4264,7 @@ var FileDropzone = ({
|
|
4795
4264
|
acceptedFiles.length > 0 && /* @__PURE__ */ import_react14.default.createElement("div", { className: "hawa-flex hawa-justify-center hawa-rounded-lg hawa-p-2" }, /* @__PURE__ */ import_react14.default.createElement(Button, { onClick: clearAllFiles }, "Clear All")),
|
4796
4265
|
acceptedFiles.length > 0 && thumbs && showPreview ? /* @__PURE__ */ import_react14.default.createElement("aside", { className: "hawa-flex hawa-flex-row hawa-flex-wrap hawa-justify-center hawa-gap-2 hawa-rounded-lg hawa-p-2" }, thumbs) : null,
|
4797
4266
|
/* @__PURE__ */ import_react14.default.createElement("div", { className: "px-4" }, ((_b = (_a = fileRejections[0]) == null ? void 0 : _a.errors[0]) == null ? void 0 : _b.code) && errs)
|
4798
|
-
), disclaimer && /* @__PURE__ */ import_react14.default.createElement("div", { className: "hawa-mt-2 hawa-text-sm hawa-text-muted-foreground/50" }, (_c = texts.disclaimer) != null ? _c : "By uploading a file you agree to our", " ", /* @__PURE__ */ import_react14.default.createElement(
|
4799
|
-
"a",
|
4800
|
-
{
|
4801
|
-
href: termsLink,
|
4802
|
-
className: "clickable-link hawa-text-muted-foreground/50"
|
4803
|
-
},
|
4804
|
-
(_d = texts.terms) != null ? _d : "Terms"
|
4805
|
-
), " ", (_e = texts.and) != null ? _e : "and", " ", /* @__PURE__ */ import_react14.default.createElement(
|
4806
|
-
"a",
|
4807
|
-
{
|
4808
|
-
href: privacyLink,
|
4809
|
-
className: "clickable-link hawa-text-muted-foreground/50"
|
4810
|
-
},
|
4811
|
-
(_f = texts.privacyPolicy) != null ? _f : "Privacy Policy"
|
4812
|
-
)));
|
4267
|
+
), disclaimer && /* @__PURE__ */ import_react14.default.createElement("div", { className: "hawa-mt-2 hawa-text-sm hawa-text-muted-foreground/50" }, (_c = texts.disclaimer) != null ? _c : "By uploading a file you agree to our", " ", /* @__PURE__ */ import_react14.default.createElement("a", { href: termsLink, className: "clickable-link hawa-text-muted-foreground/50" }, (_d = texts.terms) != null ? _d : "Terms"), " ", (_e = texts.and) != null ? _e : "and", " ", /* @__PURE__ */ import_react14.default.createElement("a", { href: privacyLink, className: "clickable-link hawa-text-muted-foreground/50" }, (_f = texts.privacyPolicy) != null ? _f : "Privacy Policy")));
|
4813
4268
|
};
|
4814
4269
|
|
4815
4270
|
// elements/sortButton/SortButton.tsx
|
@@ -5162,83 +4617,75 @@ var Tabs2 = React42.forwardRef(
|
|
5162
4617
|
/* @__PURE__ */ React42.createElement(TabsContext.Provider, { value: { orientation, variant, scrollable } }, props.children)
|
5163
4618
|
)
|
5164
4619
|
);
|
5165
|
-
var TabsList2 = React42.forwardRef(
|
5166
|
-
|
5167
|
-
|
5168
|
-
|
5169
|
-
|
5170
|
-
|
5171
|
-
|
5172
|
-
ref,
|
5173
|
-
className: cn(
|
5174
|
-
tabsListVariant({ variant, orientation }),
|
5175
|
-
"hawa-flex-row hawa-flex-nowrap",
|
5176
|
-
className
|
5177
|
-
),
|
5178
|
-
...props
|
5179
|
-
}
|
5180
|
-
));
|
5181
|
-
} else {
|
5182
|
-
return /* @__PURE__ */ React42.createElement(
|
5183
|
-
TabsPrimitive.List,
|
5184
|
-
{
|
5185
|
-
ref,
|
5186
|
-
className: cn(
|
5187
|
-
tabsListVariant({ variant, orientation }),
|
5188
|
-
orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
|
5189
|
-
"hawa-flex-wrap",
|
5190
|
-
className
|
5191
|
-
),
|
5192
|
-
...props
|
5193
|
-
}
|
5194
|
-
);
|
5195
|
-
}
|
5196
|
-
});
|
5197
|
-
var TabsTrigger2 = React42.forwardRef(
|
5198
|
-
({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
|
5199
|
-
const { orientation, variant } = React42.useContext(TabsContext);
|
5200
|
-
if (withPopover) {
|
5201
|
-
return /* @__PURE__ */ React42.createElement(Popover2.Root, { open: props.showPopover }, /* @__PURE__ */ React42.createElement(Popover2.Anchor, { asChild: true }, /* @__PURE__ */ React42.createElement(
|
5202
|
-
TabsPrimitive.Trigger,
|
4620
|
+
var TabsList2 = React42.forwardRef(
|
4621
|
+
({ className, classNames, ...props }, ref) => {
|
4622
|
+
const { orientation, variant, scrollable } = React42.useContext(TabsContext);
|
4623
|
+
const { width } = useViewportSize();
|
4624
|
+
if (scrollable && width < 768 && orientation === "horizontal") {
|
4625
|
+
return /* @__PURE__ */ React42.createElement(ScrollArea, { orientation: "horizontal", className: classNames == null ? void 0 : classNames.scrollArea }, /* @__PURE__ */ React42.createElement(
|
4626
|
+
TabsPrimitive.List,
|
5203
4627
|
{
|
4628
|
+
ref,
|
5204
4629
|
className: cn(
|
5205
|
-
|
5206
|
-
"hawa-
|
4630
|
+
tabsListVariant({ variant, orientation }),
|
4631
|
+
"hawa-flex-row hawa-flex-nowrap",
|
5207
4632
|
className
|
5208
4633
|
),
|
5209
4634
|
...props
|
5210
|
-
}
|
5211
|
-
props.children,
|
5212
|
-
chipProps && /* @__PURE__ */ React42.createElement(Chip, { ...chipProps })
|
5213
|
-
)), /* @__PURE__ */ React42.createElement(
|
5214
|
-
Popover2.Content,
|
5215
|
-
{
|
5216
|
-
onClick: onPopoverClick,
|
5217
|
-
asChild: true,
|
5218
|
-
className: cn(
|
5219
|
-
"dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
5220
|
-
"hawa-arrow-default-top hawa-mt-2"
|
5221
|
-
)
|
5222
|
-
},
|
5223
|
-
/* @__PURE__ */ React42.createElement("div", { className: "hawa-p-2" }, " ", props.popoverContent)
|
4635
|
+
}
|
5224
4636
|
));
|
5225
4637
|
} else {
|
5226
4638
|
return /* @__PURE__ */ React42.createElement(
|
5227
|
-
TabsPrimitive.
|
4639
|
+
TabsPrimitive.List,
|
5228
4640
|
{
|
4641
|
+
ref,
|
5229
4642
|
className: cn(
|
5230
|
-
|
5231
|
-
"hawa-
|
4643
|
+
tabsListVariant({ variant, orientation }),
|
4644
|
+
orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
|
4645
|
+
"hawa-flex-wrap",
|
5232
4646
|
className
|
5233
4647
|
),
|
5234
4648
|
...props
|
5235
|
-
}
|
5236
|
-
props.children,
|
5237
|
-
chipProps && /* @__PURE__ */ React42.createElement(Chip, { ...chipProps })
|
4649
|
+
}
|
5238
4650
|
);
|
5239
4651
|
}
|
5240
4652
|
}
|
5241
4653
|
);
|
4654
|
+
var TabsTrigger2 = React42.forwardRef(({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
|
4655
|
+
const { orientation, variant } = React42.useContext(TabsContext);
|
4656
|
+
if (withPopover) {
|
4657
|
+
return /* @__PURE__ */ React42.createElement(Popover2.Root, { open: props.showPopover }, /* @__PURE__ */ React42.createElement(Popover2.Anchor, { asChild: true }, /* @__PURE__ */ React42.createElement(
|
4658
|
+
TabsPrimitive.Trigger,
|
4659
|
+
{
|
4660
|
+
className: cn(tabsTriggerVariant({ variant, orientation }), "hawa-relative", className),
|
4661
|
+
...props
|
4662
|
+
},
|
4663
|
+
props.children,
|
4664
|
+
chipProps && /* @__PURE__ */ React42.createElement(Chip, { ...chipProps })
|
4665
|
+
)), /* @__PURE__ */ React42.createElement(
|
4666
|
+
Popover2.Content,
|
4667
|
+
{
|
4668
|
+
onClick: onPopoverClick,
|
4669
|
+
asChild: true,
|
4670
|
+
className: cn(
|
4671
|
+
"dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
4672
|
+
"hawa-arrow-default-top hawa-mt-2"
|
4673
|
+
)
|
4674
|
+
},
|
4675
|
+
/* @__PURE__ */ React42.createElement("div", { className: "hawa-p-2" }, " ", props.popoverContent)
|
4676
|
+
));
|
4677
|
+
} else {
|
4678
|
+
return /* @__PURE__ */ React42.createElement(
|
4679
|
+
TabsPrimitive.Trigger,
|
4680
|
+
{
|
4681
|
+
className: cn(tabsTriggerVariant({ variant, orientation }), "hawa-relative", className),
|
4682
|
+
...props
|
4683
|
+
},
|
4684
|
+
props.children,
|
4685
|
+
chipProps && /* @__PURE__ */ React42.createElement(Chip, { ...chipProps })
|
4686
|
+
);
|
4687
|
+
}
|
4688
|
+
});
|
5242
4689
|
var TabsContent = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React42.createElement(
|
5243
4690
|
TabsPrimitive.Content,
|
5244
4691
|
{
|
@@ -5432,9 +4879,7 @@ var React44 = __toESM(require("react"));
|
|
5432
4879
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
5433
4880
|
var Switch = React44.forwardRef(
|
5434
4881
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
5435
|
-
const [parentDirection, setParentDirection] = React44.useState(
|
5436
|
-
null
|
5437
|
-
);
|
4882
|
+
const [parentDirection, setParentDirection] = React44.useState(null);
|
5438
4883
|
const parentRef = React44.useRef(null);
|
5439
4884
|
React44.useEffect(() => {
|
5440
4885
|
var _a;
|
@@ -5464,42 +4909,34 @@ var Switch = React44.forwardRef(
|
|
5464
4909
|
full: "hawa-rounded-full",
|
5465
4910
|
inherit: "hawa-rounded-inner"
|
5466
4911
|
};
|
5467
|
-
return /* @__PURE__ */ React44.createElement(
|
5468
|
-
|
4912
|
+
return /* @__PURE__ */ React44.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center", ref: parentRef }, /* @__PURE__ */ React44.createElement(
|
4913
|
+
SwitchPrimitives.Root,
|
5469
4914
|
{
|
5470
|
-
className:
|
5471
|
-
|
4915
|
+
className: cn(
|
4916
|
+
"data-[state=unchecked]:hawa-bg-primary/20",
|
4917
|
+
"data-[state=checked]:hawa-bg-primary",
|
4918
|
+
"hawa-relative hawa-cursor-pointer hawa-rounded hawa-outline-none",
|
4919
|
+
rootRoundednessStyles[roundedness],
|
4920
|
+
className,
|
4921
|
+
rootSize[size]
|
4922
|
+
),
|
4923
|
+
...props,
|
4924
|
+
ref
|
5472
4925
|
},
|
5473
4926
|
/* @__PURE__ */ React44.createElement(
|
5474
|
-
SwitchPrimitives.
|
4927
|
+
SwitchPrimitives.Thumb,
|
5475
4928
|
{
|
5476
4929
|
className: cn(
|
5477
|
-
|
5478
|
-
"
|
5479
|
-
"
|
5480
|
-
|
5481
|
-
|
5482
|
-
|
5483
|
-
)
|
5484
|
-
|
5485
|
-
|
5486
|
-
|
5487
|
-
/* @__PURE__ */ React44.createElement(
|
5488
|
-
SwitchPrimitives.Thumb,
|
5489
|
-
{
|
5490
|
-
className: cn(
|
5491
|
-
thumbSize[size],
|
5492
|
-
"hawa-block hawa-rounded hawa-transition-transform hawa-duration-100 hawa-will-change-transform",
|
5493
|
-
"data-[state=checked]:hawa-bg-primary-foreground",
|
5494
|
-
"hawa-bg-white dark:hawa-bg-background",
|
5495
|
-
thumbRoundednessStyles[roundedness],
|
5496
|
-
parentDirection === "rtl" ? "hawa--translate-x-0.5 data-[state=checked]:hawa--translate-x-[19px]" : "hawa-translate-x-0.5 data-[state=checked]:hawa-translate-x-[19px]"
|
5497
|
-
)
|
5498
|
-
}
|
5499
|
-
)
|
5500
|
-
),
|
5501
|
-
label && /* @__PURE__ */ React44.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
|
5502
|
-
);
|
4930
|
+
thumbSize[size],
|
4931
|
+
"hawa-block hawa-rounded hawa-transition-transform hawa-duration-100 hawa-will-change-transform",
|
4932
|
+
"data-[state=checked]:hawa-bg-primary-foreground",
|
4933
|
+
"hawa-bg-white dark:hawa-bg-background",
|
4934
|
+
thumbRoundednessStyles[roundedness],
|
4935
|
+
parentDirection === "rtl" ? "hawa--translate-x-0.5 data-[state=checked]:hawa--translate-x-[19px]" : "hawa-translate-x-0.5 data-[state=checked]:hawa-translate-x-[19px]"
|
4936
|
+
)
|
4937
|
+
}
|
4938
|
+
)
|
4939
|
+
), label && /* @__PURE__ */ React44.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label));
|
5503
4940
|
}
|
5504
4941
|
);
|
5505
4942
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
@@ -5529,11 +4966,7 @@ Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
5529
4966
|
|
5530
4967
|
// elements/breadcrumb/Breadcrumb.tsx
|
5531
4968
|
var import_react36 = __toESM(require("react"));
|
5532
|
-
var Breadcrumb = ({
|
5533
|
-
breadcrumbLinks,
|
5534
|
-
separator = ">",
|
5535
|
-
size = "normal"
|
5536
|
-
}) => {
|
4969
|
+
var Breadcrumb = ({ breadcrumbLinks, separator = ">", size = "normal" }) => {
|
5537
4970
|
const textStyles = {
|
5538
4971
|
normal: "",
|
5539
4972
|
small: "hawa-text-sm",
|
@@ -5658,25 +5091,9 @@ var Badge = ({
|
|
5658
5091
|
size === "large" && text && text
|
5659
5092
|
));
|
5660
5093
|
};
|
5661
|
-
var BadgedComponent = ({
|
5662
|
-
children,
|
5663
|
-
className,
|
5664
|
-
hideBadge,
|
5665
|
-
position,
|
5666
|
-
size,
|
5667
|
-
text
|
5668
|
-
}) => {
|
5094
|
+
var BadgedComponent = ({ children, className, hideBadge, position, size, text }) => {
|
5669
5095
|
const ref = (0, import_react38.useRef)(null);
|
5670
|
-
return /* @__PURE__ */ import_react38.default.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ import_react38.default.createElement(
|
5671
|
-
Badge,
|
5672
|
-
{
|
5673
|
-
size,
|
5674
|
-
text,
|
5675
|
-
position,
|
5676
|
-
anchor: ref,
|
5677
|
-
className: "hawa-z-10"
|
5678
|
-
}
|
5679
|
-
), children);
|
5096
|
+
return /* @__PURE__ */ import_react38.default.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ import_react38.default.createElement(Badge, { size, text, position, anchor: ref, className: "hawa-z-10" }), children);
|
5680
5097
|
};
|
5681
5098
|
|
5682
5099
|
// elements/phoneInput/PhoneInput.tsx
|
@@ -7439,19 +6856,19 @@ var PhoneInput = ({
|
|
7439
6856
|
var React50 = __toESM(require("react"));
|
7440
6857
|
var import_input_otp = require("input-otp");
|
7441
6858
|
|
7442
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
6859
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7443
6860
|
var import_react41 = require("react");
|
7444
6861
|
|
7445
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
6862
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
7446
6863
|
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
7447
6864
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
7448
6865
|
return Boolean(className) && array.indexOf(className) === index;
|
7449
6866
|
}).join(" ");
|
7450
6867
|
|
7451
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
6868
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7452
6869
|
var import_react40 = require("react");
|
7453
6870
|
|
7454
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
6871
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
7455
6872
|
var defaultAttributes = {
|
7456
6873
|
xmlns: "http://www.w3.org/2000/svg",
|
7457
6874
|
width: 24,
|
@@ -7464,7 +6881,7 @@ var defaultAttributes = {
|
|
7464
6881
|
strokeLinejoin: "round"
|
7465
6882
|
};
|
7466
6883
|
|
7467
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
6884
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7468
6885
|
var Icon = (0, import_react40.forwardRef)(
|
7469
6886
|
({
|
7470
6887
|
color = "currentColor",
|
@@ -7496,7 +6913,7 @@ var Icon = (0, import_react40.forwardRef)(
|
|
7496
6913
|
}
|
7497
6914
|
);
|
7498
6915
|
|
7499
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
6916
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7500
6917
|
var createLucideIcon = (iconName, iconNode) => {
|
7501
6918
|
const Component = (0, import_react41.forwardRef)(
|
7502
6919
|
({ className, ...props }, ref) => (0, import_react41.createElement)(Icon, {
|
@@ -7510,7 +6927,7 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
7510
6927
|
return Component;
|
7511
6928
|
};
|
7512
6929
|
|
7513
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
6930
|
+
// ../../node_modules/.pnpm/lucide-react@0.435.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
7514
6931
|
var Dot = createLucideIcon("Dot", [
|
7515
6932
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
7516
6933
|
]);
|
@@ -7624,10 +7041,7 @@ var ColorPicker = ({
|
|
7624
7041
|
props.handleChange(e);
|
7625
7042
|
}
|
7626
7043
|
},
|
7627
|
-
className: cn(
|
7628
|
-
"hawa-mt-0 hawa-h-[38px] hawa-opacity-0",
|
7629
|
-
props.colorPickerClassNames
|
7630
|
-
),
|
7044
|
+
className: cn("hawa-mt-0 hawa-h-[38px] hawa-opacity-0", props.colorPickerClassNames),
|
7631
7045
|
...colorPickerProps
|
7632
7046
|
}
|
7633
7047
|
)
|
@@ -7671,92 +7085,84 @@ function getLimitedValue(input) {
|
|
7671
7085
|
return input;
|
7672
7086
|
}
|
7673
7087
|
}
|
7674
|
-
var ProgressCircle = import_react44.default.forwardRef(
|
7675
|
-
|
7676
|
-
|
7677
|
-
|
7678
|
-
|
7679
|
-
|
7680
|
-
|
7681
|
-
|
7682
|
-
|
7683
|
-
|
7684
|
-
|
7685
|
-
|
7686
|
-
|
7687
|
-
|
7688
|
-
|
7689
|
-
|
7690
|
-
|
7691
|
-
|
7692
|
-
|
7693
|
-
|
7694
|
-
|
7695
|
-
|
7696
|
-
|
7697
|
-
ref,
|
7698
|
-
className: cn(
|
7699
|
-
"hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
|
7700
|
-
className
|
7701
|
-
)
|
7702
|
-
},
|
7703
|
-
/* @__PURE__ */ import_react44.default.createElement(
|
7704
|
-
"svg",
|
7088
|
+
var ProgressCircle = import_react44.default.forwardRef(
|
7089
|
+
(props, ref) => {
|
7090
|
+
const {
|
7091
|
+
value: inputValue,
|
7092
|
+
size = "md",
|
7093
|
+
className,
|
7094
|
+
showAnimation = true,
|
7095
|
+
color,
|
7096
|
+
tooltip,
|
7097
|
+
radius: inputRadius,
|
7098
|
+
strokeWidth: inputStrokeWidth,
|
7099
|
+
children,
|
7100
|
+
...other
|
7101
|
+
} = props;
|
7102
|
+
const value = getLimitedValue(inputValue);
|
7103
|
+
const radius = inputRadius != null ? inputRadius : size2config[size].radius;
|
7104
|
+
const strokeWidth = inputStrokeWidth != null ? inputStrokeWidth : size2config[size].strokeWidth;
|
7105
|
+
const normalizedRadius = radius - strokeWidth / 2;
|
7106
|
+
const circumference = normalizedRadius * 2 * Math.PI;
|
7107
|
+
const strokeDashoffset = value / 100 * circumference;
|
7108
|
+
const offset = circumference - strokeDashoffset;
|
7109
|
+
return /* @__PURE__ */ import_react44.default.createElement(import_react44.default.Fragment, null, /* @__PURE__ */ import_react44.default.createElement(
|
7110
|
+
"div",
|
7705
7111
|
{
|
7706
|
-
|
7707
|
-
|
7708
|
-
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
7709
|
-
className: "hawa-rotate-180 hawa-transform"
|
7112
|
+
ref,
|
7113
|
+
className: cn("hawa-flex hawa-flex-col hawa-items-center hawa-justify-center", className)
|
7710
7114
|
},
|
7711
7115
|
/* @__PURE__ */ import_react44.default.createElement(
|
7712
|
-
"
|
7116
|
+
"svg",
|
7713
7117
|
{
|
7714
|
-
|
7715
|
-
|
7716
|
-
|
7717
|
-
|
7718
|
-
|
7719
|
-
|
7720
|
-
|
7721
|
-
|
7722
|
-
|
7723
|
-
|
7724
|
-
|
7725
|
-
|
7118
|
+
width: radius * 2,
|
7119
|
+
height: radius * 2,
|
7120
|
+
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
7121
|
+
className: "hawa-rotate-180 hawa-transform"
|
7122
|
+
},
|
7123
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7124
|
+
"circle",
|
7125
|
+
{
|
7126
|
+
r: normalizedRadius,
|
7127
|
+
cx: radius,
|
7128
|
+
cy: radius,
|
7129
|
+
strokeWidth,
|
7130
|
+
fill: "transparent",
|
7131
|
+
stroke: "",
|
7132
|
+
strokeLinecap: "round",
|
7133
|
+
className: cn("hawa-transition-colors hawa-ease-linear", "hawa-stroke-primary/20")
|
7134
|
+
}
|
7135
|
+
),
|
7136
|
+
value > 0 ? /* @__PURE__ */ import_react44.default.createElement(
|
7137
|
+
"circle",
|
7138
|
+
{
|
7139
|
+
r: normalizedRadius,
|
7140
|
+
cx: radius,
|
7141
|
+
cy: radius,
|
7142
|
+
strokeWidth,
|
7143
|
+
strokeDasharray: circumference + " " + circumference,
|
7144
|
+
strokeDashoffset: offset,
|
7145
|
+
fill: "transparent",
|
7146
|
+
stroke: "",
|
7147
|
+
strokeLinecap: "round",
|
7148
|
+
className: cn(
|
7149
|
+
"hawa-transition-colors hawa-ease-linear",
|
7150
|
+
"hawa-stroke-primary",
|
7151
|
+
showAnimation ? "hawa-transition-all hawa-duration-300 hawa-ease-in-out" : ""
|
7152
|
+
)
|
7153
|
+
}
|
7154
|
+
) : null
|
7726
7155
|
),
|
7727
|
-
|
7728
|
-
|
7729
|
-
|
7730
|
-
|
7731
|
-
cx: radius,
|
7732
|
-
cy: radius,
|
7733
|
-
strokeWidth,
|
7734
|
-
strokeDasharray: circumference + " " + circumference,
|
7735
|
-
strokeDashoffset: offset,
|
7736
|
-
fill: "transparent",
|
7737
|
-
stroke: "",
|
7738
|
-
strokeLinecap: "round",
|
7739
|
-
className: cn(
|
7740
|
-
"hawa-transition-colors hawa-ease-linear",
|
7741
|
-
"hawa-stroke-primary",
|
7742
|
-
showAnimation ? "hawa-transition-all hawa-duration-300 hawa-ease-in-out" : ""
|
7743
|
-
)
|
7744
|
-
}
|
7745
|
-
) : null
|
7746
|
-
),
|
7747
|
-
/* @__PURE__ */ import_react44.default.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
7748
|
-
));
|
7749
|
-
});
|
7156
|
+
/* @__PURE__ */ import_react44.default.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
7157
|
+
));
|
7158
|
+
}
|
7159
|
+
);
|
7750
7160
|
ProgressCircle.displayName = "ProgressCircle";
|
7751
7161
|
|
7752
7162
|
// elements/pagination/Pagination.tsx
|
7753
7163
|
var import_react45 = __toESM(require("react"));
|
7754
7164
|
var import_react_headless_pagination = require("react-headless-pagination");
|
7755
|
-
var Pagination = ({
|
7756
|
-
direction,
|
7757
|
-
totalPages,
|
7758
|
-
currentPage
|
7759
|
-
}) => {
|
7165
|
+
var Pagination = ({ direction, totalPages, currentPage }) => {
|
7760
7166
|
const [page, setPage] = import_react45.default.useState(currentPage || 0);
|
7761
7167
|
const handlePageChange = (page2) => {
|
7762
7168
|
setPage(page2);
|
@@ -7951,14 +7357,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7951
7357
|
|
7952
7358
|
// elements/passwordInput/PasswordInput.tsx
|
7953
7359
|
var PasswordStrengthIndicator = ({ strength }) => {
|
7954
|
-
const strengthLevels = [
|
7955
|
-
"none",
|
7956
|
-
"very-weak",
|
7957
|
-
"weak",
|
7958
|
-
"medium",
|
7959
|
-
"strong",
|
7960
|
-
"very-strong"
|
7961
|
-
];
|
7360
|
+
const strengthLevels = ["none", "very-weak", "weak", "medium", "strong", "very-strong"];
|
7962
7361
|
const strengthColors = {
|
7963
7362
|
none: "hawa-bg-red-700",
|
7964
7363
|
"very-weak": "hawa-bg-red-600",
|
@@ -7984,10 +7383,7 @@ var PasswordStrengthIndicator = ({ strength }) => {
|
|
7984
7383
|
}
|
7985
7384
|
));
|
7986
7385
|
};
|
7987
|
-
var PasswordInput = ({
|
7988
|
-
hidePopover,
|
7989
|
-
...props
|
7990
|
-
}) => {
|
7386
|
+
var PasswordInput = ({ hidePopover, ...props }) => {
|
7991
7387
|
const [inputValue, setInputValue] = (0, import_react49.useState)("");
|
7992
7388
|
const [isInputFocused, setIsInputFocused] = (0, import_react49.useState)(false);
|
7993
7389
|
const [currentStr, setCurrentStr] = (0, import_react49.useState)(0);
|
@@ -8111,63 +7507,34 @@ var SimpleTable = ({
|
|
8111
7507
|
columns,
|
8112
7508
|
getCoreRowModel: (0, import_react_table2.getCoreRowModel)()
|
8113
7509
|
});
|
8114
|
-
return /* @__PURE__ */ React60.createElement(
|
8115
|
-
|
8116
|
-
|
8117
|
-
className: cn(
|
8118
|
-
"hawa-flex hawa-w-full hawa-flex-col hawa-gap-4",
|
8119
|
-
classNames
|
8120
|
-
)
|
8121
|
-
},
|
8122
|
-
props.isLoading ? /* @__PURE__ */ React60.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React60.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React60.createElement(Table, null, !headerless && table.getAllColumns().length > 0 && /* @__PURE__ */ React60.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React60.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
8123
|
-
return /* @__PURE__ */ React60.createElement(
|
8124
|
-
TableHead,
|
8125
|
-
{
|
8126
|
-
condensed: props.condensed,
|
8127
|
-
dir: props.direction,
|
8128
|
-
key: header.id,
|
8129
|
-
style: {
|
8130
|
-
maxWidth: header.column.columnDef.maxSize
|
8131
|
-
}
|
8132
|
-
},
|
8133
|
-
header.isPlaceholder ? null : (0, import_react_table2.flexRender)(
|
8134
|
-
header.column.columnDef.header,
|
8135
|
-
header.getContext()
|
8136
|
-
)
|
8137
|
-
);
|
8138
|
-
})))), /* @__PURE__ */ React60.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React60.createElement(
|
8139
|
-
TableRow,
|
7510
|
+
return /* @__PURE__ */ React60.createElement("div", { className: cn("hawa-flex hawa-w-full hawa-flex-col hawa-gap-4", classNames) }, props.isLoading ? /* @__PURE__ */ React60.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React60.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React60.createElement(Table, null, !headerless && table.getAllColumns().length > 0 && /* @__PURE__ */ React60.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React60.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
7511
|
+
return /* @__PURE__ */ React60.createElement(
|
7512
|
+
TableHead,
|
8140
7513
|
{
|
8141
|
-
|
8142
|
-
|
7514
|
+
condensed: props.condensed,
|
7515
|
+
dir: props.direction,
|
7516
|
+
key: header.id,
|
7517
|
+
style: {
|
7518
|
+
maxWidth: header.column.columnDef.maxSize
|
7519
|
+
}
|
8143
7520
|
},
|
8144
|
-
|
8145
|
-
|
8146
|
-
|
8147
|
-
|
8148
|
-
|
8149
|
-
dir: props.direction,
|
8150
|
-
padding: props.condensed ? "condensed" : (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.padding,
|
8151
|
-
style: {
|
8152
|
-
maxWidth: cell.column.columnDef.maxSize
|
8153
|
-
},
|
8154
|
-
key: cell.id
|
8155
|
-
},
|
8156
|
-
(0, import_react_table2.flexRender)(
|
8157
|
-
cell.column.columnDef.cell,
|
8158
|
-
cell.getContext()
|
8159
|
-
)
|
8160
|
-
);
|
8161
|
-
})
|
8162
|
-
)) : /* @__PURE__ */ React60.createElement(TableRow, null, /* @__PURE__ */ React60.createElement(
|
7521
|
+
header.isPlaceholder ? null : (0, import_react_table2.flexRender)(header.column.columnDef.header, header.getContext())
|
7522
|
+
);
|
7523
|
+
})))), /* @__PURE__ */ React60.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React60.createElement(TableRow, { key: row.id, "data-state": row.getIsSelected() && "selected" }, row.getVisibleCells().map((cell) => {
|
7524
|
+
var _a2;
|
7525
|
+
return /* @__PURE__ */ React60.createElement(
|
8163
7526
|
TableCell,
|
8164
7527
|
{
|
8165
|
-
|
8166
|
-
|
7528
|
+
dir: props.direction,
|
7529
|
+
padding: props.condensed ? "condensed" : (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.padding,
|
7530
|
+
style: {
|
7531
|
+
maxWidth: cell.column.columnDef.maxSize
|
7532
|
+
},
|
7533
|
+
key: cell.id
|
8167
7534
|
},
|
8168
|
-
(
|
8169
|
-
)
|
8170
|
-
);
|
7535
|
+
(0, import_react_table2.flexRender)(cell.column.columnDef.cell, cell.getContext())
|
7536
|
+
);
|
7537
|
+
}))) : /* @__PURE__ */ React60.createElement(TableRow, null, /* @__PURE__ */ React60.createElement(TableCell, { colSpan: columns.length, className: "hawa-h-24 hawa-text-center" }, (_b = props.texts) == null ? void 0 : _b.noData)), props.extra))));
|
8171
7538
|
};
|
8172
7539
|
|
8173
7540
|
// elements/separator/Separator.tsx
|
@@ -8190,10 +7557,7 @@ var Separator2 = ({
|
|
8190
7557
|
|
8191
7558
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
8192
7559
|
var import_react50 = __toESM(require("react"));
|
8193
|
-
var ScrollIndicator = ({
|
8194
|
-
anchor,
|
8195
|
-
inContainer = false
|
8196
|
-
}) => {
|
7560
|
+
var ScrollIndicator = ({ anchor, inContainer = false }) => {
|
8197
7561
|
const [scrollPercentage, setScrollPercentage] = (0, import_react50.useState)(0);
|
8198
7562
|
const onScroll = () => {
|
8199
7563
|
const scrollElement = anchor.current;
|
@@ -8455,34 +7819,22 @@ var Carousel = ({
|
|
8455
7819
|
}
|
8456
7820
|
));
|
8457
7821
|
};
|
8458
|
-
var Dots = ({
|
8459
|
-
onDotClick,
|
8460
|
-
itemsLength,
|
8461
|
-
selectedIndex,
|
8462
|
-
direction
|
8463
|
-
}) => {
|
7822
|
+
var Dots = ({ onDotClick, itemsLength, selectedIndex, direction }) => {
|
8464
7823
|
const arr = new Array(itemsLength).fill(0);
|
8465
|
-
return /* @__PURE__ */ import_react52.default.createElement(
|
8466
|
-
|
8467
|
-
|
8468
|
-
|
8469
|
-
|
8470
|
-
|
8471
|
-
|
8472
|
-
|
8473
|
-
|
8474
|
-
|
8475
|
-
|
8476
|
-
|
8477
|
-
|
8478
|
-
|
8479
|
-
"hawa-h-2 hawa-rounded-full hawa-bg-primary hawa-transition-all hawa-duration-300 hover:hawa-cursor-pointer",
|
8480
|
-
!selected ? "hawa-w-2 hawa-opacity-50" : "hawa-w-6 hawa-opacity-100"
|
8481
|
-
)
|
8482
|
-
}
|
8483
|
-
);
|
8484
|
-
})
|
8485
|
-
);
|
7824
|
+
return /* @__PURE__ */ import_react52.default.createElement("div", { dir: direction, className: "hawa-z-50 hawa-my-2 hawa-flex hawa-justify-center hawa-gap-1" }, arr.map((_, index) => {
|
7825
|
+
const selected = index === selectedIndex;
|
7826
|
+
return /* @__PURE__ */ import_react52.default.createElement(
|
7827
|
+
"div",
|
7828
|
+
{
|
7829
|
+
key: index,
|
7830
|
+
onClick: () => onDotClick(index),
|
7831
|
+
className: cn(
|
7832
|
+
"hawa-h-2 hawa-rounded-full hawa-bg-primary hawa-transition-all hawa-duration-300 hover:hawa-cursor-pointer",
|
7833
|
+
!selected ? "hawa-w-2 hawa-opacity-50" : "hawa-w-6 hawa-opacity-100"
|
7834
|
+
)
|
7835
|
+
}
|
7836
|
+
);
|
7837
|
+
}));
|
8486
7838
|
};
|
8487
7839
|
var CarouselControls = (props) => {
|
8488
7840
|
return /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2" }, /* @__PURE__ */ import_react52.default.createElement(
|
@@ -8652,11 +8004,7 @@ var ToastTitle = React66.forwardRef(({ className, size = "default", ...props },
|
|
8652
8004
|
ToastPrimitives.Title,
|
8653
8005
|
{
|
8654
8006
|
ref,
|
8655
|
-
className: cn(
|
8656
|
-
"hawa-select-text hawa-text-sm hawa-font-semibold",
|
8657
|
-
sizeStyles[size],
|
8658
|
-
className
|
8659
|
-
),
|
8007
|
+
className: cn("hawa-select-text hawa-text-sm hawa-font-semibold", sizeStyles[size], className),
|
8660
8008
|
...props
|
8661
8009
|
}
|
8662
8010
|
));
|
@@ -8665,11 +8013,7 @@ var ToastDescription = React66.forwardRef(({ className, size = "default", ...pro
|
|
8665
8013
|
ToastPrimitives.Description,
|
8666
8014
|
{
|
8667
8015
|
ref,
|
8668
|
-
className: cn(
|
8669
|
-
"hawa-select-text hawa-opacity-90",
|
8670
|
-
sizeStyles[size],
|
8671
|
-
className
|
8672
|
-
),
|
8016
|
+
className: cn("hawa-select-text hawa-opacity-90", sizeStyles[size], className),
|
8673
8017
|
...props
|
8674
8018
|
}
|
8675
8019
|
));
|
@@ -8710,12 +8054,7 @@ function Toaster(props) {
|
|
8710
8054
|
action && /* @__PURE__ */ import_react54.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-justify-center" }, action)
|
8711
8055
|
)
|
8712
8056
|
));
|
8713
|
-
}), /* @__PURE__ */ import_react54.default.createElement(
|
8714
|
-
ToastViewport,
|
8715
|
-
{
|
8716
|
-
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
8717
|
-
}
|
8718
|
-
));
|
8057
|
+
}), /* @__PURE__ */ import_react54.default.createElement(ToastViewport, { className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0") }));
|
8719
8058
|
}
|
8720
8059
|
|
8721
8060
|
// elements/destroyableCard/DestroyableCard.tsx
|
@@ -8735,10 +8074,7 @@ var DestroyableCard = ({
|
|
8735
8074
|
return /* @__PURE__ */ import_react55.default.createElement(
|
8736
8075
|
"div",
|
8737
8076
|
{
|
8738
|
-
className: cn(
|
8739
|
-
"hawa-transition-all",
|
8740
|
-
closed ? "hawa-opacity-0" : "hawa-opacity-100"
|
8741
|
-
),
|
8077
|
+
className: cn("hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100"),
|
8742
8078
|
ref: popUpRef
|
8743
8079
|
},
|
8744
8080
|
/* @__PURE__ */ import_react55.default.createElement(
|
@@ -9046,7 +8382,7 @@ var PhoneMockup = ({
|
|
9046
8382
|
|
9047
8383
|
lucide-react/dist/esm/shared/src/utils.js:
|
9048
8384
|
(**
|
9049
|
-
* @license lucide-react v0.
|
8385
|
+
* @license lucide-react v0.435.0 - ISC
|
9050
8386
|
*
|
9051
8387
|
* This source code is licensed under the ISC license.
|
9052
8388
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -9054,7 +8390,7 @@ lucide-react/dist/esm/shared/src/utils.js:
|
|
9054
8390
|
|
9055
8391
|
lucide-react/dist/esm/defaultAttributes.js:
|
9056
8392
|
(**
|
9057
|
-
* @license lucide-react v0.
|
8393
|
+
* @license lucide-react v0.435.0 - ISC
|
9058
8394
|
*
|
9059
8395
|
* This source code is licensed under the ISC license.
|
9060
8396
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -9062,7 +8398,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
9062
8398
|
|
9063
8399
|
lucide-react/dist/esm/Icon.js:
|
9064
8400
|
(**
|
9065
|
-
* @license lucide-react v0.
|
8401
|
+
* @license lucide-react v0.435.0 - ISC
|
9066
8402
|
*
|
9067
8403
|
* This source code is licensed under the ISC license.
|
9068
8404
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -9070,7 +8406,7 @@ lucide-react/dist/esm/Icon.js:
|
|
9070
8406
|
|
9071
8407
|
lucide-react/dist/esm/createLucideIcon.js:
|
9072
8408
|
(**
|
9073
|
-
* @license lucide-react v0.
|
8409
|
+
* @license lucide-react v0.435.0 - ISC
|
9074
8410
|
*
|
9075
8411
|
* This source code is licensed under the ISC license.
|
9076
8412
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -9078,7 +8414,7 @@ lucide-react/dist/esm/createLucideIcon.js:
|
|
9078
8414
|
|
9079
8415
|
lucide-react/dist/esm/icons/dot.js:
|
9080
8416
|
(**
|
9081
|
-
* @license lucide-react v0.
|
8417
|
+
* @license lucide-react v0.435.0 - ISC
|
9082
8418
|
*
|
9083
8419
|
* This source code is licensed under the ISC license.
|
9084
8420
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -9086,7 +8422,7 @@ lucide-react/dist/esm/icons/dot.js:
|
|
9086
8422
|
|
9087
8423
|
lucide-react/dist/esm/lucide-react.js:
|
9088
8424
|
(**
|
9089
|
-
* @license lucide-react v0.
|
8425
|
+
* @license lucide-react v0.435.0 - ISC
|
9090
8426
|
*
|
9091
8427
|
* This source code is licensed under the ISC license.
|
9092
8428
|
* See the LICENSE file in the root directory of this source tree.
|