@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
@@ -330,16 +330,7 @@ var import_tailwind_variants = require("tailwind-variants");
|
|
330
330
|
// elements/chip/Chip.tsx
|
331
331
|
var import_react20 = __toESM(require("react"));
|
332
332
|
var Chip = import_react20.default.forwardRef(
|
333
|
-
({
|
334
|
-
label,
|
335
|
-
size = "normal",
|
336
|
-
icon,
|
337
|
-
color,
|
338
|
-
radius = "inherit",
|
339
|
-
dot,
|
340
|
-
dotStatus = "none",
|
341
|
-
...rest
|
342
|
-
}, ref) => {
|
333
|
+
({ label, size = "normal", icon, color, radius = "inherit", dot, dotStatus = "none", ...rest }, ref) => {
|
343
334
|
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 ";
|
344
335
|
let radiusStyles = {
|
345
336
|
inherit: " hawa-rounded",
|
@@ -386,12 +377,7 @@ var Chip = import_react20.default.forwardRef(
|
|
386
377
|
rest.className
|
387
378
|
)
|
388
379
|
},
|
389
|
-
dot && /* @__PURE__ */ import_react20.default.createElement(
|
390
|
-
"span",
|
391
|
-
{
|
392
|
-
className: cn(dotStyles[size], dotStatusStyles[dotStatus])
|
393
|
-
}
|
394
|
-
),
|
380
|
+
dot && /* @__PURE__ */ import_react20.default.createElement("span", { className: cn(dotStyles[size], dotStatusStyles[dotStatus]) }),
|
395
381
|
icon && icon,
|
396
382
|
label
|
397
383
|
);
|
@@ -486,83 +472,75 @@ var Tabs = React11.forwardRef(
|
|
486
472
|
/* @__PURE__ */ React11.createElement(TabsContext.Provider, { value: { orientation, variant, scrollable } }, props.children)
|
487
473
|
)
|
488
474
|
);
|
489
|
-
var TabsList = React11.forwardRef(
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
ref,
|
497
|
-
className: cn(
|
498
|
-
tabsListVariant({ variant, orientation }),
|
499
|
-
"hawa-flex-row hawa-flex-nowrap",
|
500
|
-
className
|
501
|
-
),
|
502
|
-
...props
|
503
|
-
}
|
504
|
-
));
|
505
|
-
} else {
|
506
|
-
return /* @__PURE__ */ React11.createElement(
|
507
|
-
TabsPrimitive.List,
|
508
|
-
{
|
509
|
-
ref,
|
510
|
-
className: cn(
|
511
|
-
tabsListVariant({ variant, orientation }),
|
512
|
-
orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
|
513
|
-
"hawa-flex-wrap",
|
514
|
-
className
|
515
|
-
),
|
516
|
-
...props
|
517
|
-
}
|
518
|
-
);
|
519
|
-
}
|
520
|
-
});
|
521
|
-
var TabsTrigger = React11.forwardRef(
|
522
|
-
({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
|
523
|
-
const { orientation, variant } = React11.useContext(TabsContext);
|
524
|
-
if (withPopover) {
|
525
|
-
return /* @__PURE__ */ React11.createElement(Popover.Root, { open: props.showPopover }, /* @__PURE__ */ React11.createElement(Popover.Anchor, { asChild: true }, /* @__PURE__ */ React11.createElement(
|
526
|
-
TabsPrimitive.Trigger,
|
475
|
+
var TabsList = React11.forwardRef(
|
476
|
+
({ className, classNames, ...props }, ref) => {
|
477
|
+
const { orientation, variant, scrollable } = React11.useContext(TabsContext);
|
478
|
+
const { width } = useViewportSize();
|
479
|
+
if (scrollable && width < 768 && orientation === "horizontal") {
|
480
|
+
return /* @__PURE__ */ React11.createElement(ScrollArea, { orientation: "horizontal", className: classNames == null ? void 0 : classNames.scrollArea }, /* @__PURE__ */ React11.createElement(
|
481
|
+
TabsPrimitive.List,
|
527
482
|
{
|
483
|
+
ref,
|
528
484
|
className: cn(
|
529
|
-
|
530
|
-
"hawa-
|
485
|
+
tabsListVariant({ variant, orientation }),
|
486
|
+
"hawa-flex-row hawa-flex-nowrap",
|
531
487
|
className
|
532
488
|
),
|
533
489
|
...props
|
534
|
-
}
|
535
|
-
props.children,
|
536
|
-
chipProps && /* @__PURE__ */ React11.createElement(Chip, { ...chipProps })
|
537
|
-
)), /* @__PURE__ */ React11.createElement(
|
538
|
-
Popover.Content,
|
539
|
-
{
|
540
|
-
onClick: onPopoverClick,
|
541
|
-
asChild: true,
|
542
|
-
className: cn(
|
543
|
-
"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",
|
544
|
-
"hawa-arrow-default-top hawa-mt-2"
|
545
|
-
)
|
546
|
-
},
|
547
|
-
/* @__PURE__ */ React11.createElement("div", { className: "hawa-p-2" }, " ", props.popoverContent)
|
490
|
+
}
|
548
491
|
));
|
549
492
|
} else {
|
550
493
|
return /* @__PURE__ */ React11.createElement(
|
551
|
-
TabsPrimitive.
|
494
|
+
TabsPrimitive.List,
|
552
495
|
{
|
496
|
+
ref,
|
553
497
|
className: cn(
|
554
|
-
|
555
|
-
"hawa-
|
498
|
+
tabsListVariant({ variant, orientation }),
|
499
|
+
orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
|
500
|
+
"hawa-flex-wrap",
|
556
501
|
className
|
557
502
|
),
|
558
503
|
...props
|
559
|
-
}
|
560
|
-
props.children,
|
561
|
-
chipProps && /* @__PURE__ */ React11.createElement(Chip, { ...chipProps })
|
504
|
+
}
|
562
505
|
);
|
563
506
|
}
|
564
507
|
}
|
565
508
|
);
|
509
|
+
var TabsTrigger = React11.forwardRef(({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
|
510
|
+
const { orientation, variant } = React11.useContext(TabsContext);
|
511
|
+
if (withPopover) {
|
512
|
+
return /* @__PURE__ */ React11.createElement(Popover.Root, { open: props.showPopover }, /* @__PURE__ */ React11.createElement(Popover.Anchor, { asChild: true }, /* @__PURE__ */ React11.createElement(
|
513
|
+
TabsPrimitive.Trigger,
|
514
|
+
{
|
515
|
+
className: cn(tabsTriggerVariant({ variant, orientation }), "hawa-relative", className),
|
516
|
+
...props
|
517
|
+
},
|
518
|
+
props.children,
|
519
|
+
chipProps && /* @__PURE__ */ React11.createElement(Chip, { ...chipProps })
|
520
|
+
)), /* @__PURE__ */ React11.createElement(
|
521
|
+
Popover.Content,
|
522
|
+
{
|
523
|
+
onClick: onPopoverClick,
|
524
|
+
asChild: true,
|
525
|
+
className: cn(
|
526
|
+
"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",
|
527
|
+
"hawa-arrow-default-top hawa-mt-2"
|
528
|
+
)
|
529
|
+
},
|
530
|
+
/* @__PURE__ */ React11.createElement("div", { className: "hawa-p-2" }, " ", props.popoverContent)
|
531
|
+
));
|
532
|
+
} else {
|
533
|
+
return /* @__PURE__ */ React11.createElement(
|
534
|
+
TabsPrimitive.Trigger,
|
535
|
+
{
|
536
|
+
className: cn(tabsTriggerVariant({ variant, orientation }), "hawa-relative", className),
|
537
|
+
...props
|
538
|
+
},
|
539
|
+
props.children,
|
540
|
+
chipProps && /* @__PURE__ */ React11.createElement(Chip, { ...chipProps })
|
541
|
+
);
|
542
|
+
}
|
543
|
+
});
|
566
544
|
var TabsContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
|
567
545
|
TabsPrimitive.Content,
|
568
546
|
{
|
@@ -612,9 +590,7 @@ var import_class_variance_authority = require("class-variance-authority");
|
|
612
590
|
|
613
591
|
// elements/helperText/HelperText.tsx
|
614
592
|
var import_react22 = __toESM(require("react"));
|
615
|
-
var HelperText = ({
|
616
|
-
helperText
|
617
|
-
}) => /* @__PURE__ */ import_react22.default.createElement(
|
593
|
+
var HelperText = ({ helperText }) => /* @__PURE__ */ import_react22.default.createElement(
|
618
594
|
"p",
|
619
595
|
{
|
620
596
|
className: cn(
|
@@ -665,38 +641,31 @@ var Tooltip = ({
|
|
665
641
|
delayDuration = 300,
|
666
642
|
...props
|
667
643
|
}) => {
|
668
|
-
return /* @__PURE__ */ import_react23.default.createElement(
|
669
|
-
TooltipPrimitive.
|
644
|
+
return /* @__PURE__ */ import_react23.default.createElement(TooltipPrimitive.TooltipProvider, { delayDuration, ...providerProps }, /* @__PURE__ */ import_react23.default.createElement(
|
645
|
+
TooltipPrimitive.Root,
|
670
646
|
{
|
671
|
-
|
672
|
-
|
647
|
+
open: !disabled && open,
|
648
|
+
defaultOpen,
|
649
|
+
onOpenChange,
|
650
|
+
...props
|
673
651
|
},
|
652
|
+
/* @__PURE__ */ import_react23.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
674
653
|
/* @__PURE__ */ import_react23.default.createElement(
|
675
|
-
|
654
|
+
TooltipContent,
|
676
655
|
{
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
...
|
656
|
+
size,
|
657
|
+
side,
|
658
|
+
align: "center",
|
659
|
+
...contentProps,
|
660
|
+
style: {
|
661
|
+
...contentProps == null ? void 0 : contentProps.style,
|
662
|
+
maxWidth: "var(--radix-tooltip-content-available-width)",
|
663
|
+
maxHeight: "var(--radix-tooltip-content-available-height)"
|
664
|
+
}
|
681
665
|
},
|
682
|
-
|
683
|
-
/* @__PURE__ */ import_react23.default.createElement(
|
684
|
-
TooltipContent,
|
685
|
-
{
|
686
|
-
size,
|
687
|
-
side,
|
688
|
-
align: "center",
|
689
|
-
...contentProps,
|
690
|
-
style: {
|
691
|
-
...contentProps == null ? void 0 : contentProps.style,
|
692
|
-
maxWidth: "var(--radix-tooltip-content-available-width)",
|
693
|
-
maxHeight: "var(--radix-tooltip-content-available-height)"
|
694
|
-
}
|
695
|
-
},
|
696
|
-
content
|
697
|
-
)
|
666
|
+
content
|
698
667
|
)
|
699
|
-
);
|
668
|
+
));
|
700
669
|
};
|
701
670
|
|
702
671
|
// elements/label/Label.tsx
|
@@ -773,57 +742,42 @@ var Loading = ({
|
|
773
742
|
};
|
774
743
|
switch (design.split("-")[0]) {
|
775
744
|
case "dots":
|
776
|
-
return /* @__PURE__ */ import_react24.default.createElement(
|
745
|
+
return /* @__PURE__ */ import_react24.default.createElement("div", { className: cn("hawa-flex hawa-flex-row hawa-gap-2", classNames == null ? void 0 : classNames.container) }, /* @__PURE__ */ import_react24.default.createElement(
|
777
746
|
"div",
|
778
747
|
{
|
779
748
|
className: cn(
|
780
|
-
"hawa-
|
781
|
-
|
749
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
|
750
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
751
|
+
animationStyles[design.split("-")[1]],
|
752
|
+
color ? color : "hawa-bg-primary"
|
782
753
|
)
|
783
|
-
}
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
),
|
806
|
-
/* @__PURE__ */ import_react24.default.createElement(
|
807
|
-
"div",
|
808
|
-
{
|
809
|
-
className: cn(
|
810
|
-
"hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
|
811
|
-
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
812
|
-
animationStyles[design.split("-")[1]],
|
813
|
-
color ? color : "hawa-bg-primary"
|
814
|
-
)
|
815
|
-
}
|
816
|
-
)
|
817
|
-
);
|
754
|
+
}
|
755
|
+
), /* @__PURE__ */ import_react24.default.createElement(
|
756
|
+
"div",
|
757
|
+
{
|
758
|
+
className: cn(
|
759
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
|
760
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
761
|
+
animationStyles[design.split("-")[1]],
|
762
|
+
color ? color : "hawa-bg-primary"
|
763
|
+
)
|
764
|
+
}
|
765
|
+
), /* @__PURE__ */ import_react24.default.createElement(
|
766
|
+
"div",
|
767
|
+
{
|
768
|
+
className: cn(
|
769
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
|
770
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
771
|
+
animationStyles[design.split("-")[1]],
|
772
|
+
color ? color : "hawa-bg-primary"
|
773
|
+
)
|
774
|
+
}
|
775
|
+
));
|
818
776
|
case "square":
|
819
777
|
return /* @__PURE__ */ import_react24.default.createElement(
|
820
778
|
"svg",
|
821
779
|
{
|
822
|
-
className: cn(
|
823
|
-
"squircle-container",
|
824
|
-
sizeStyles[size],
|
825
|
-
classNames == null ? void 0 : classNames.container
|
826
|
-
),
|
780
|
+
className: cn("squircle-container", sizeStyles[size], classNames == null ? void 0 : classNames.container),
|
827
781
|
viewBox: "0 0 35 35",
|
828
782
|
height: "35",
|
829
783
|
width: "35"
|
@@ -864,11 +818,7 @@ var Loading = ({
|
|
864
818
|
height: "37",
|
865
819
|
width: "37",
|
866
820
|
preserveAspectRatio: "xMidYMid meet",
|
867
|
-
className: cn(
|
868
|
-
"squircle-container",
|
869
|
-
sizeStyles[size],
|
870
|
-
classNames == null ? void 0 : classNames.container
|
871
|
-
)
|
821
|
+
className: cn("squircle-container", sizeStyles[size], classNames == null ? void 0 : classNames.container)
|
872
822
|
},
|
873
823
|
/* @__PURE__ */ import_react24.default.createElement(
|
874
824
|
"path",
|
@@ -911,11 +861,7 @@ var Loading = ({
|
|
911
861
|
viewBox: "0 0 40 40",
|
912
862
|
height: "40",
|
913
863
|
width: "40",
|
914
|
-
className: cn(
|
915
|
-
"circle-container",
|
916
|
-
sizeStyles[size],
|
917
|
-
classNames == null ? void 0 : classNames.container
|
918
|
-
)
|
864
|
+
className: cn("circle-container", sizeStyles[size], classNames == null ? void 0 : classNames.container)
|
919
865
|
},
|
920
866
|
/* @__PURE__ */ import_react24.default.createElement(
|
921
867
|
"circle",
|
@@ -1057,13 +1003,7 @@ Button.displayName = "Button";
|
|
1057
1003
|
// elements/card/Card.tsx
|
1058
1004
|
var React18 = __toESM(require("react"));
|
1059
1005
|
var Card = React18.forwardRef(
|
1060
|
-
({
|
1061
|
-
className,
|
1062
|
-
variant = "default",
|
1063
|
-
clickable = false,
|
1064
|
-
asContainer = false,
|
1065
|
-
...props
|
1066
|
-
}, ref) => {
|
1006
|
+
({ className, variant = "default", clickable = false, asContainer = false, ...props }, ref) => {
|
1067
1007
|
let variantStyles = {
|
1068
1008
|
default: cn(
|
1069
1009
|
"hawa-rounded hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
|
@@ -1075,14 +1015,7 @@ var Card = React18.forwardRef(
|
|
1075
1015
|
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"
|
1076
1016
|
)
|
1077
1017
|
};
|
1078
|
-
return /* @__PURE__ */ React18.createElement(
|
1079
|
-
"div",
|
1080
|
-
{
|
1081
|
-
ref,
|
1082
|
-
className: cn(!asContainer && variantStyles[variant], className),
|
1083
|
-
...props
|
1084
|
-
}
|
1085
|
-
);
|
1018
|
+
return /* @__PURE__ */ React18.createElement("div", { ref, className: cn(!asContainer && variantStyles[variant], className), ...props });
|
1086
1019
|
}
|
1087
1020
|
);
|
1088
1021
|
var CardHeader = React18.forwardRef(
|
@@ -1090,30 +1023,15 @@ var CardHeader = React18.forwardRef(
|
|
1090
1023
|
"div",
|
1091
1024
|
{
|
1092
1025
|
ref,
|
1093
|
-
className: cn(
|
1094
|
-
"hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
|
1095
|
-
className
|
1096
|
-
),
|
1026
|
+
className: cn("hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6", className),
|
1097
1027
|
...props
|
1098
1028
|
}
|
1099
1029
|
), props.actions && /* @__PURE__ */ React18.createElement("div", { className: "hawa-p-6" }, props.actions))
|
1100
1030
|
);
|
1101
|
-
var CardTitle = React18.forwardRef(
|
1102
|
-
"h3",
|
1103
|
-
|
1104
|
-
|
1105
|
-
className: cn("hawa-text-2xl hawa-font-semibold", className),
|
1106
|
-
...props
|
1107
|
-
}
|
1108
|
-
));
|
1109
|
-
var CardDescription = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React18.createElement(
|
1110
|
-
"p",
|
1111
|
-
{
|
1112
|
-
ref,
|
1113
|
-
className: cn("hawa-text-sm hawa-text-muted-foreground", className),
|
1114
|
-
...props
|
1115
|
-
}
|
1116
|
-
));
|
1031
|
+
var CardTitle = React18.forwardRef(
|
1032
|
+
({ className, ...props }, ref) => /* @__PURE__ */ React18.createElement("h3", { ref, className: cn("hawa-text-2xl hawa-font-semibold", className), ...props })
|
1033
|
+
);
|
1034
|
+
var CardDescription = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React18.createElement("p", { ref, className: cn("hawa-text-sm hawa-text-muted-foreground", className), ...props }));
|
1117
1035
|
var CardContent = React18.forwardRef(
|
1118
1036
|
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React18.createElement(
|
1119
1037
|
"div",
|
@@ -1440,10 +1358,7 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
1440
1358
|
|
1441
1359
|
// blocks/misc/Announcement.tsx
|
1442
1360
|
var import_react30 = __toESM(require("react"));
|
1443
|
-
var Announcement = ({
|
1444
|
-
onActionClick,
|
1445
|
-
...props
|
1446
|
-
}) => {
|
1361
|
+
var Announcement = ({ onActionClick, ...props }) => {
|
1447
1362
|
return /* @__PURE__ */ import_react30.default.createElement(Card, null, /* @__PURE__ */ import_react30.default.createElement(
|
1448
1363
|
CardContent,
|
1449
1364
|
{
|
@@ -1451,14 +1366,7 @@ var Announcement = ({
|
|
1451
1366
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
1452
1367
|
},
|
1453
1368
|
/* @__PURE__ */ import_react30.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center" }, /* @__PURE__ */ import_react30.default.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ import_react30.default.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
|
1454
|
-
/* @__PURE__ */ import_react30.default.createElement(
|
1455
|
-
Button,
|
1456
|
-
{
|
1457
|
-
onClick: () => onActionClick(),
|
1458
|
-
className: "hawa-whitespace-nowrap"
|
1459
|
-
},
|
1460
|
-
props.actionText
|
1461
|
-
)
|
1369
|
+
/* @__PURE__ */ import_react30.default.createElement(Button, { onClick: () => onActionClick(), className: "hawa-whitespace-nowrap" }, props.actionText)
|
1462
1370
|
));
|
1463
1371
|
};
|
1464
1372
|
|
@@ -1686,15 +1594,7 @@ var Textarea = React28.forwardRef(
|
|
1686
1594
|
className
|
1687
1595
|
)
|
1688
1596
|
},
|
1689
|
-
/* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React28.createElement(Label, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React28.createElement(
|
1690
|
-
"div",
|
1691
|
-
{
|
1692
|
-
className: "hawa-text-start hawa-text-xs hawa-transition-all hawa-leading-none"
|
1693
|
-
},
|
1694
|
-
(textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
|
1695
|
-
"/",
|
1696
|
-
textareaProps == null ? void 0 : textareaProps.maxLength
|
1697
|
-
)),
|
1597
|
+
/* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.label && /* @__PURE__ */ React28.createElement(Label, { ...labelProps }, props.label), showCount && countPosition === "top" && /* @__PURE__ */ React28.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)),
|
1698
1598
|
isLoading ? /* @__PURE__ */ React28.createElement(Skeleton, { style: { height: 40 } }) : /* @__PURE__ */ React28.createElement(
|
1699
1599
|
"textarea",
|
1700
1600
|
{
|
@@ -1727,25 +1627,22 @@ var ContactForm = ({
|
|
1727
1627
|
}) => {
|
1728
1628
|
var _a, _b, _c, _d, _e;
|
1729
1629
|
const customFieldsSchema = z.object({
|
1730
|
-
...customFields == null ? void 0 : customFields.reduce(
|
1731
|
-
(
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
1743
|
-
|
1744
|
-
|
1745
|
-
|
1746
|
-
},
|
1747
|
-
{}
|
1748
|
-
)
|
1630
|
+
...customFields == null ? void 0 : customFields.reduce((acc, curr) => {
|
1631
|
+
switch (curr.type) {
|
1632
|
+
case "text":
|
1633
|
+
acc[curr.name] = z.string().optional().default("");
|
1634
|
+
break;
|
1635
|
+
case "number":
|
1636
|
+
acc[curr.name] = z.string().optional().default("");
|
1637
|
+
break;
|
1638
|
+
case "select":
|
1639
|
+
acc[curr.name] = z.string().optional().default("");
|
1640
|
+
break;
|
1641
|
+
default:
|
1642
|
+
break;
|
1643
|
+
}
|
1644
|
+
return acc;
|
1645
|
+
}, {})
|
1749
1646
|
});
|
1750
1647
|
const contactFormSchema = z.object({
|
1751
1648
|
name: z.string({ required_error: (texts == null ? void 0 : texts.name.required) || "Name is required" }).min(1, (texts == null ? void 0 : texts.name.required) || "Name is required").default(""),
|
@@ -1815,13 +1712,10 @@ var ContactForm = ({
|
|
1815
1712
|
/* @__PURE__ */ import_react34.default.createElement(
|
1816
1713
|
"div",
|
1817
1714
|
{
|
1818
|
-
className: cn(
|
1819
|
-
"hawa-flex
|
1820
|
-
|
1821
|
-
|
1822
|
-
"hawa-flex-col": size === "sm"
|
1823
|
-
}
|
1824
|
-
)
|
1715
|
+
className: cn("hawa-flex hawa-items-start hawa-justify-start hawa-gap-2", {
|
1716
|
+
"hawa-flex-row": size === "default",
|
1717
|
+
"hawa-flex-col": size === "sm"
|
1718
|
+
})
|
1825
1719
|
},
|
1826
1720
|
/* @__PURE__ */ import_react34.default.createElement(
|
1827
1721
|
import_react_hook_form2.Controller,
|
@@ -1919,9 +1813,7 @@ var ContactForm = ({
|
|
1919
1813
|
placeholder: texts == null ? void 0 : texts.message.placeholder,
|
1920
1814
|
className: "hawa-min-h-20",
|
1921
1815
|
...field,
|
1922
|
-
onKeyDown: getHotkeyHandler([
|
1923
|
-
["mod+enter", () => SubmitForm(getValues())]
|
1924
|
-
])
|
1816
|
+
onKeyDown: getHotkeyHandler([["mod+enter", () => SubmitForm(getValues())]])
|
1925
1817
|
},
|
1926
1818
|
classNames: { textarea: "hawa-min-h-40 hawa-h-full" },
|
1927
1819
|
helperText: (_a2 = errors.message) == null ? void 0 : _a2.message
|
@@ -1930,14 +1822,7 @@ var ContactForm = ({
|
|
1930
1822
|
}
|
1931
1823
|
}
|
1932
1824
|
),
|
1933
|
-
/* @__PURE__ */ import_react34.default.createElement(
|
1934
|
-
Button,
|
1935
|
-
{
|
1936
|
-
type: "submit",
|
1937
|
-
className: cn("hawa-w-full", classNames == null ? void 0 : classNames.submitButton)
|
1938
|
-
},
|
1939
|
-
(texts == null ? void 0 : texts.submit) || "Submit"
|
1940
|
-
)
|
1825
|
+
/* @__PURE__ */ import_react34.default.createElement(Button, { type: "submit", className: cn("hawa-w-full", classNames == null ? void 0 : classNames.submitButton) }, (texts == null ? void 0 : texts.submit) || "Submit")
|
1941
1826
|
))
|
1942
1827
|
);
|
1943
1828
|
};
|