@sikka/hawa 0.14.11-next → 0.14.13-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/index.css +11 -0
- package/dist/index.d.mts +35 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.js +301 -15
- package/dist/index.mjs +558 -292
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4434,7 +4434,7 @@ var Select = ({ labelKey = "label", ...props }) => {
|
|
|
4434
4434
|
children
|
|
4435
4435
|
);
|
|
4436
4436
|
};
|
|
4437
|
-
const
|
|
4437
|
+
const Menu2 = ({
|
|
4438
4438
|
cx,
|
|
4439
4439
|
children,
|
|
4440
4440
|
getStyles,
|
|
@@ -4493,7 +4493,7 @@ var Select = ({ labelKey = "label", ...props }) => {
|
|
|
4493
4493
|
},
|
|
4494
4494
|
unstyled: true,
|
|
4495
4495
|
autoFocus: true,
|
|
4496
|
-
components: props.hideIndicator ? { Option, Menu, IndicatorsContainer: () => null } : { Option, Menu },
|
|
4496
|
+
components: props.hideIndicator ? { Option, Menu: Menu2, IndicatorsContainer: () => null } : { Option, Menu: Menu2 },
|
|
4497
4497
|
onChange: (newValue, action) => props.onChange(newValue, action),
|
|
4498
4498
|
options: props.options,
|
|
4499
4499
|
getOptionLabel: props.getOptionLabel,
|
|
@@ -4528,7 +4528,7 @@ var Select = ({ labelKey = "label", ...props }) => {
|
|
|
4528
4528
|
placeholder: props.placeholder,
|
|
4529
4529
|
onCreateOption: props.handleCreateOption,
|
|
4530
4530
|
onChange: (newValue, action) => props.onChange(newValue, action),
|
|
4531
|
-
components: { Control, Option, Menu },
|
|
4531
|
+
components: { Control, Option, Menu: Menu2 },
|
|
4532
4532
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
|
4533
4533
|
}
|
|
4534
4534
|
),
|
|
@@ -5090,13 +5090,19 @@ var DataTable = ({
|
|
|
5090
5090
|
/* @__PURE__ */ React40.createElement(
|
|
5091
5091
|
"svg",
|
|
5092
5092
|
{
|
|
5093
|
-
"aria-label": "Chevron
|
|
5093
|
+
"aria-label": "Chevron Down Icon",
|
|
5094
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5095
|
+
width: "24",
|
|
5096
|
+
height: "24",
|
|
5097
|
+
viewBox: "0 0 24 24",
|
|
5098
|
+
fill: "none",
|
|
5094
5099
|
stroke: "currentColor",
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5100
|
+
"stroke-width": "2",
|
|
5101
|
+
"stroke-linecap": "round",
|
|
5102
|
+
"stroke-linejoin": "round",
|
|
5103
|
+
className: "hawa-icon hawa-rotate-90"
|
|
5098
5104
|
},
|
|
5099
|
-
/* @__PURE__ */ React40.createElement("path", { d: "
|
|
5105
|
+
/* @__PURE__ */ React40.createElement("path", { d: "m9 18 6-6-6-6" })
|
|
5100
5106
|
)
|
|
5101
5107
|
)), /* @__PURE__ */ React40.createElement(
|
|
5102
5108
|
DropdownMenuContent,
|
|
@@ -7442,8 +7448,211 @@ var AppTopbar = ({ ...props }) => {
|
|
|
7442
7448
|
);
|
|
7443
7449
|
};
|
|
7444
7450
|
|
|
7451
|
+
// components/layout/AppMenubar.tsx
|
|
7452
|
+
import * as React64 from "react";
|
|
7453
|
+
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
7454
|
+
var MenubarMenu = MenubarPrimitive.Menu;
|
|
7455
|
+
var MenubarGroup = MenubarPrimitive.Group;
|
|
7456
|
+
var MenubarPortal = MenubarPrimitive.Portal;
|
|
7457
|
+
var MenubarSub = MenubarPrimitive.Sub;
|
|
7458
|
+
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
7459
|
+
var Menubar = React64.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React64.createElement(
|
|
7460
|
+
MenubarPrimitive.Root,
|
|
7461
|
+
{
|
|
7462
|
+
ref,
|
|
7463
|
+
className: cn(
|
|
7464
|
+
"hawa-flex hawa-h-10 hawa-items-center hawa-space-x-1 hawa-rounded-md hawa-border hawa-bg-background hawa-p-1",
|
|
7465
|
+
className
|
|
7466
|
+
),
|
|
7467
|
+
...props
|
|
7468
|
+
}
|
|
7469
|
+
));
|
|
7470
|
+
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
7471
|
+
var MenubarTrigger = React64.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React64.createElement(
|
|
7472
|
+
MenubarPrimitive.Trigger,
|
|
7473
|
+
{
|
|
7474
|
+
ref,
|
|
7475
|
+
className: cn(
|
|
7476
|
+
"hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-outline-none focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-accent-foreground",
|
|
7477
|
+
className
|
|
7478
|
+
),
|
|
7479
|
+
...props
|
|
7480
|
+
}
|
|
7481
|
+
));
|
|
7482
|
+
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
7483
|
+
var MenubarSubTrigger = React64.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React64.createElement(
|
|
7484
|
+
MenubarPrimitive.SubTrigger,
|
|
7485
|
+
{
|
|
7486
|
+
ref,
|
|
7487
|
+
className: cn(
|
|
7488
|
+
"hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-accent-foreground",
|
|
7489
|
+
inset && "pl-8",
|
|
7490
|
+
className
|
|
7491
|
+
),
|
|
7492
|
+
...props
|
|
7493
|
+
},
|
|
7494
|
+
children,
|
|
7495
|
+
/* @__PURE__ */ React64.createElement(
|
|
7496
|
+
"svg",
|
|
7497
|
+
{
|
|
7498
|
+
"aria-label": "Chevron Right Icon",
|
|
7499
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7500
|
+
width: "24",
|
|
7501
|
+
height: "24",
|
|
7502
|
+
viewBox: "0 0 24 24",
|
|
7503
|
+
fill: "none",
|
|
7504
|
+
stroke: "currentColor",
|
|
7505
|
+
"stroke-width": "2",
|
|
7506
|
+
"stroke-linecap": "round",
|
|
7507
|
+
"stroke-linejoin": "round",
|
|
7508
|
+
className: "hawa-ml-auto hawa-icon"
|
|
7509
|
+
},
|
|
7510
|
+
/* @__PURE__ */ React64.createElement("path", { d: "m9 18 6-6-6-6" })
|
|
7511
|
+
)
|
|
7512
|
+
));
|
|
7513
|
+
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
7514
|
+
var MenubarSubContent = React64.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React64.createElement(
|
|
7515
|
+
MenubarPrimitive.SubContent,
|
|
7516
|
+
{
|
|
7517
|
+
ref,
|
|
7518
|
+
className: cn(
|
|
7519
|
+
"hawa-z-50 hawa-min-w-[8rem] hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground 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",
|
|
7520
|
+
className
|
|
7521
|
+
),
|
|
7522
|
+
...props
|
|
7523
|
+
}
|
|
7524
|
+
));
|
|
7525
|
+
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
7526
|
+
var MenubarContent = React64.forwardRef(
|
|
7527
|
+
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ React64.createElement(MenubarPrimitive.Portal, null, /* @__PURE__ */ React64.createElement(
|
|
7528
|
+
MenubarPrimitive.Content,
|
|
7529
|
+
{
|
|
7530
|
+
ref,
|
|
7531
|
+
align,
|
|
7532
|
+
alignOffset,
|
|
7533
|
+
sideOffset,
|
|
7534
|
+
className: cn(
|
|
7535
|
+
"hawa-z-50 hawa-min-w-[12rem] hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground hawa-shadow-md data-[state=open]:hawa-animate-in data-[state=closed]:hawa-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",
|
|
7536
|
+
className
|
|
7537
|
+
),
|
|
7538
|
+
...props
|
|
7539
|
+
}
|
|
7540
|
+
))
|
|
7541
|
+
);
|
|
7542
|
+
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
7543
|
+
var MenubarItem = React64.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React64.createElement(
|
|
7544
|
+
MenubarPrimitive.Item,
|
|
7545
|
+
{
|
|
7546
|
+
ref,
|
|
7547
|
+
className: cn(
|
|
7548
|
+
"hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
|
|
7549
|
+
inset && "pl-8",
|
|
7550
|
+
className
|
|
7551
|
+
),
|
|
7552
|
+
...props
|
|
7553
|
+
}
|
|
7554
|
+
));
|
|
7555
|
+
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
7556
|
+
var MenubarCheckboxItem = React64.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React64.createElement(
|
|
7557
|
+
MenubarPrimitive.CheckboxItem,
|
|
7558
|
+
{
|
|
7559
|
+
ref,
|
|
7560
|
+
className: cn(
|
|
7561
|
+
"hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-py-1.5 hawa-pl-8 hawa-pr-2 hawa-text-sm hawa-outline-none focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
|
|
7562
|
+
className
|
|
7563
|
+
),
|
|
7564
|
+
checked,
|
|
7565
|
+
...props
|
|
7566
|
+
},
|
|
7567
|
+
/* @__PURE__ */ React64.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React64.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React64.createElement(
|
|
7568
|
+
"svg",
|
|
7569
|
+
{
|
|
7570
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7571
|
+
width: "24",
|
|
7572
|
+
height: "24",
|
|
7573
|
+
viewBox: "0 0 24 24",
|
|
7574
|
+
fill: "none",
|
|
7575
|
+
stroke: "currentColor",
|
|
7576
|
+
"stroke-width": "2",
|
|
7577
|
+
"stroke-linecap": "round",
|
|
7578
|
+
"stroke-linejoin": "round",
|
|
7579
|
+
className: "hawa-icon"
|
|
7580
|
+
},
|
|
7581
|
+
/* @__PURE__ */ React64.createElement("path", { d: "M20 6 9 17l-5-5" })
|
|
7582
|
+
))),
|
|
7583
|
+
children
|
|
7584
|
+
));
|
|
7585
|
+
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
7586
|
+
var MenubarRadioItem = React64.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React64.createElement(
|
|
7587
|
+
MenubarPrimitive.RadioItem,
|
|
7588
|
+
{
|
|
7589
|
+
ref,
|
|
7590
|
+
className: cn(
|
|
7591
|
+
"hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-py-1.5 hawa-pl-8 hawa-pr-2 hawa-text-sm hawa-outline-none focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
|
|
7592
|
+
className
|
|
7593
|
+
),
|
|
7594
|
+
...props
|
|
7595
|
+
},
|
|
7596
|
+
/* @__PURE__ */ React64.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React64.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React64.createElement(
|
|
7597
|
+
"svg",
|
|
7598
|
+
{
|
|
7599
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7600
|
+
width: "24",
|
|
7601
|
+
height: "24",
|
|
7602
|
+
viewBox: "0 0 24 24",
|
|
7603
|
+
fill: "none",
|
|
7604
|
+
stroke: "currentColor",
|
|
7605
|
+
"stroke-width": "2",
|
|
7606
|
+
"stroke-linecap": "round",
|
|
7607
|
+
"stroke-linejoin": "round",
|
|
7608
|
+
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
|
7609
|
+
},
|
|
7610
|
+
/* @__PURE__ */ React64.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
|
7611
|
+
))),
|
|
7612
|
+
children
|
|
7613
|
+
));
|
|
7614
|
+
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
7615
|
+
var MenubarLabel = React64.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React64.createElement(
|
|
7616
|
+
MenubarPrimitive.Label,
|
|
7617
|
+
{
|
|
7618
|
+
ref,
|
|
7619
|
+
className: cn(
|
|
7620
|
+
"hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-font-semibold",
|
|
7621
|
+
inset && "hawa-pl-8",
|
|
7622
|
+
className
|
|
7623
|
+
),
|
|
7624
|
+
...props
|
|
7625
|
+
}
|
|
7626
|
+
));
|
|
7627
|
+
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
7628
|
+
var MenubarSeparator = React64.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React64.createElement(
|
|
7629
|
+
MenubarPrimitive.Separator,
|
|
7630
|
+
{
|
|
7631
|
+
ref,
|
|
7632
|
+
className: cn("hawa--mx-1 hawa-my-1 hawa-h-px hawa-bg-muted", className),
|
|
7633
|
+
...props
|
|
7634
|
+
}
|
|
7635
|
+
));
|
|
7636
|
+
MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
|
|
7637
|
+
var MenubarShortcut = ({
|
|
7638
|
+
className,
|
|
7639
|
+
...props
|
|
7640
|
+
}) => {
|
|
7641
|
+
return /* @__PURE__ */ React64.createElement(
|
|
7642
|
+
"span",
|
|
7643
|
+
{
|
|
7644
|
+
className: cn(
|
|
7645
|
+
"hawa-ml-auto hawa-text-xs hawa-tracking-widest hawa-text-muted-foreground",
|
|
7646
|
+
className
|
|
7647
|
+
),
|
|
7648
|
+
...props
|
|
7649
|
+
}
|
|
7650
|
+
);
|
|
7651
|
+
};
|
|
7652
|
+
MenubarShortcut.displayname = "MenubarShortcut";
|
|
7653
|
+
|
|
7445
7654
|
// components/layout/DocsLayout.tsx
|
|
7446
|
-
import
|
|
7655
|
+
import React67, { useEffect as useEffect19, useRef as useRef10, useState as useState26 } from "react";
|
|
7447
7656
|
|
|
7448
7657
|
// components/hooks/useBreakpoint.ts
|
|
7449
7658
|
import { useState as useState25, useEffect as useEffect18 } from "react";
|
|
@@ -7465,7 +7674,7 @@ var useBreakpoint = () => {
|
|
|
7465
7674
|
};
|
|
7466
7675
|
|
|
7467
7676
|
// components/layout/DocsSidebar.tsx
|
|
7468
|
-
import
|
|
7677
|
+
import React66 from "react";
|
|
7469
7678
|
var DocsSidebar = ({ test, ...props }) => {
|
|
7470
7679
|
const pages = [
|
|
7471
7680
|
"Introduction",
|
|
@@ -7474,11 +7683,11 @@ var DocsSidebar = ({ test, ...props }) => {
|
|
|
7474
7683
|
"API Reference",
|
|
7475
7684
|
"FAQ"
|
|
7476
7685
|
];
|
|
7477
|
-
const [currentPage, setCurrentPage] =
|
|
7686
|
+
const [currentPage, setCurrentPage] = React66.useState(pages[0]);
|
|
7478
7687
|
const handlePageClick = (page) => {
|
|
7479
7688
|
setCurrentPage(page);
|
|
7480
7689
|
};
|
|
7481
|
-
return /* @__PURE__ */
|
|
7690
|
+
return /* @__PURE__ */ React66.createElement("div", { className: "hawa-flex hawa-flex-col hawa-overflow-x-clip" }, pages.map((page, index) => /* @__PURE__ */ React66.createElement(
|
|
7482
7691
|
"a",
|
|
7483
7692
|
{
|
|
7484
7693
|
key: index,
|
|
@@ -7547,7 +7756,7 @@ var DocsLayout = ({
|
|
|
7547
7756
|
};
|
|
7548
7757
|
}, [keepOpen]);
|
|
7549
7758
|
let drawerSizeCondition = drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize];
|
|
7550
|
-
return /* @__PURE__ */
|
|
7759
|
+
return /* @__PURE__ */ React67.createElement("div", { className: "hawa-fixed" }, /* @__PURE__ */ React67.createElement(
|
|
7551
7760
|
"div",
|
|
7552
7761
|
{
|
|
7553
7762
|
className: cn(
|
|
@@ -7555,7 +7764,7 @@ var DocsLayout = ({
|
|
|
7555
7764
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
|
7556
7765
|
)
|
|
7557
7766
|
},
|
|
7558
|
-
size > 600 ? /* @__PURE__ */
|
|
7767
|
+
size > 600 ? /* @__PURE__ */ React67.createElement("div", { onClick: props.onLogoClick, dir: direction }, /* @__PURE__ */ React67.createElement(
|
|
7559
7768
|
"img",
|
|
7560
7769
|
{
|
|
7561
7770
|
className: cn(
|
|
@@ -7566,18 +7775,18 @@ var DocsLayout = ({
|
|
|
7566
7775
|
}
|
|
7567
7776
|
)) : (
|
|
7568
7777
|
// Mobile Drawer Menu Button
|
|
7569
|
-
/* @__PURE__ */
|
|
7778
|
+
/* @__PURE__ */ React67.createElement(
|
|
7570
7779
|
"div",
|
|
7571
7780
|
{
|
|
7572
7781
|
dir: direction,
|
|
7573
7782
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
|
7574
7783
|
},
|
|
7575
|
-
/* @__PURE__ */
|
|
7784
|
+
/* @__PURE__ */ React67.createElement(Sheet, null, /* @__PURE__ */ React67.createElement(SheetTrigger, null, " ", /* @__PURE__ */ React67.createElement(
|
|
7576
7785
|
"div",
|
|
7577
7786
|
{
|
|
7578
7787
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
|
7579
7788
|
},
|
|
7580
|
-
/* @__PURE__ */
|
|
7789
|
+
/* @__PURE__ */ React67.createElement(
|
|
7581
7790
|
"svg",
|
|
7582
7791
|
{
|
|
7583
7792
|
"aria-label": "Menu Icon",
|
|
@@ -7589,7 +7798,7 @@ var DocsLayout = ({
|
|
|
7589
7798
|
height: "1.6em",
|
|
7590
7799
|
width: "1.6em"
|
|
7591
7800
|
},
|
|
7592
|
-
/* @__PURE__ */
|
|
7801
|
+
/* @__PURE__ */ React67.createElement(
|
|
7593
7802
|
"path",
|
|
7594
7803
|
{
|
|
7595
7804
|
fillRule: "evenodd",
|
|
@@ -7598,18 +7807,18 @@ var DocsLayout = ({
|
|
|
7598
7807
|
}
|
|
7599
7808
|
)
|
|
7600
7809
|
)
|
|
7601
|
-
)), /* @__PURE__ */
|
|
7810
|
+
)), /* @__PURE__ */ React67.createElement(
|
|
7602
7811
|
SheetContent,
|
|
7603
7812
|
{
|
|
7604
7813
|
side: isRTL ? "right" : "left",
|
|
7605
7814
|
className: "hawa-pt-10"
|
|
7606
7815
|
},
|
|
7607
7816
|
" ",
|
|
7608
|
-
/* @__PURE__ */
|
|
7817
|
+
/* @__PURE__ */ React67.createElement(DocsSidebar, null)
|
|
7609
7818
|
))
|
|
7610
7819
|
)
|
|
7611
7820
|
),
|
|
7612
|
-
/* @__PURE__ */
|
|
7821
|
+
/* @__PURE__ */ React67.createElement(
|
|
7613
7822
|
"div",
|
|
7614
7823
|
{
|
|
7615
7824
|
className: cn(
|
|
@@ -7617,9 +7826,9 @@ var DocsLayout = ({
|
|
|
7617
7826
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
|
7618
7827
|
)
|
|
7619
7828
|
},
|
|
7620
|
-
/* @__PURE__ */
|
|
7829
|
+
/* @__PURE__ */ React67.createElement(Button, { variant: "ghost", size: "smallIcon" }, /* @__PURE__ */ React67.createElement(Logos.github, { className: "hawa-icon" }))
|
|
7621
7830
|
)
|
|
7622
|
-
), /* @__PURE__ */
|
|
7831
|
+
), /* @__PURE__ */ React67.createElement(
|
|
7623
7832
|
"div",
|
|
7624
7833
|
{
|
|
7625
7834
|
className: cn(
|
|
@@ -7643,8 +7852,8 @@ var DocsLayout = ({
|
|
|
7643
7852
|
},
|
|
7644
7853
|
ref
|
|
7645
7854
|
},
|
|
7646
|
-
/* @__PURE__ */
|
|
7647
|
-
), /* @__PURE__ */
|
|
7855
|
+
/* @__PURE__ */ React67.createElement(DocsSidebar, null)
|
|
7856
|
+
), /* @__PURE__ */ React67.createElement("div", null, "overlay sidebar"), /* @__PURE__ */ React67.createElement(
|
|
7648
7857
|
"div",
|
|
7649
7858
|
{
|
|
7650
7859
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all ",
|
|
@@ -7667,84 +7876,84 @@ var DocsLayout = ({
|
|
|
7667
7876
|
};
|
|
7668
7877
|
|
|
7669
7878
|
// components/blocks/auth/LoginForm.tsx
|
|
7670
|
-
import
|
|
7879
|
+
import React70, { useState as useState27 } from "react";
|
|
7671
7880
|
import { Controller, useForm } from "react-hook-form";
|
|
7672
7881
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
7673
7882
|
import { parsePhoneNumber } from "libphonenumber-js";
|
|
7674
7883
|
import * as z from "zod";
|
|
7675
7884
|
|
|
7676
7885
|
// components/blocks/auth/AuthButtons.tsx
|
|
7677
|
-
import
|
|
7886
|
+
import React68 from "react";
|
|
7678
7887
|
var AuthButtons = (props) => {
|
|
7679
|
-
return /* @__PURE__ */
|
|
7888
|
+
return /* @__PURE__ */ React68.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, props.viaGoogle && /* @__PURE__ */ React68.createElement(
|
|
7680
7889
|
Button,
|
|
7681
7890
|
{
|
|
7682
7891
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7683
7892
|
variant: "outline",
|
|
7684
7893
|
onClick: props.handleGoogle
|
|
7685
7894
|
},
|
|
7686
|
-
/* @__PURE__ */
|
|
7895
|
+
/* @__PURE__ */ React68.createElement(Logos.google, { className: "hawa-icon" }),
|
|
7687
7896
|
props.texts?.continueWithGoogle ?? "Continue With Google"
|
|
7688
|
-
), props.viaGithub && /* @__PURE__ */
|
|
7897
|
+
), props.viaGithub && /* @__PURE__ */ React68.createElement(
|
|
7689
7898
|
Button,
|
|
7690
7899
|
{
|
|
7691
7900
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7692
7901
|
variant: "outline",
|
|
7693
7902
|
onClick: props.handleGithub
|
|
7694
7903
|
},
|
|
7695
|
-
/* @__PURE__ */
|
|
7904
|
+
/* @__PURE__ */ React68.createElement(Logos.github, { className: "hawa-icon" }),
|
|
7696
7905
|
props.texts?.continueWithGithub ?? "Continue With Github"
|
|
7697
|
-
), props.viaTwitter && /* @__PURE__ */
|
|
7906
|
+
), props.viaTwitter && /* @__PURE__ */ React68.createElement(
|
|
7698
7907
|
Button,
|
|
7699
7908
|
{
|
|
7700
7909
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7701
7910
|
variant: "outline",
|
|
7702
7911
|
onClick: props.handleTwitter
|
|
7703
7912
|
},
|
|
7704
|
-
/* @__PURE__ */
|
|
7913
|
+
/* @__PURE__ */ React68.createElement(Logos.twitter, { className: "hawa-icon" }),
|
|
7705
7914
|
props.texts?.continueWithTwitter ?? "Continue With Twitter"
|
|
7706
|
-
), props.viaApple && /* @__PURE__ */
|
|
7915
|
+
), props.viaApple && /* @__PURE__ */ React68.createElement(
|
|
7707
7916
|
Button,
|
|
7708
7917
|
{
|
|
7709
7918
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7710
7919
|
variant: "outline",
|
|
7711
7920
|
onClick: props.handleApple
|
|
7712
7921
|
},
|
|
7713
|
-
/* @__PURE__ */
|
|
7922
|
+
/* @__PURE__ */ React68.createElement(Logos.apple, { className: "hawa-icon" }),
|
|
7714
7923
|
props.texts?.continueWithApple ?? "Continue With Apple"
|
|
7715
|
-
), props.viaMicrosoft && /* @__PURE__ */
|
|
7924
|
+
), props.viaMicrosoft && /* @__PURE__ */ React68.createElement(
|
|
7716
7925
|
Button,
|
|
7717
7926
|
{
|
|
7718
7927
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7719
7928
|
variant: "outline",
|
|
7720
7929
|
onClick: props.handleMicrosoft
|
|
7721
7930
|
},
|
|
7722
|
-
/* @__PURE__ */
|
|
7931
|
+
/* @__PURE__ */ React68.createElement(Logos.microsoft, { className: "hawa-icon" }),
|
|
7723
7932
|
props.texts?.continueWithMicrosoft ?? "Continue With Microsoft"
|
|
7724
|
-
), props.viaEmail && /* @__PURE__ */
|
|
7933
|
+
), props.viaEmail && /* @__PURE__ */ React68.createElement(
|
|
7725
7934
|
Button,
|
|
7726
7935
|
{
|
|
7727
7936
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7728
7937
|
variant: "outline",
|
|
7729
7938
|
onClick: props.handleEmail
|
|
7730
7939
|
},
|
|
7731
|
-
/* @__PURE__ */
|
|
7940
|
+
/* @__PURE__ */ React68.createElement(Logos.mail, { className: "hawa-icon" }),
|
|
7732
7941
|
props.texts?.continueWithEmail ?? "Continue With Email"
|
|
7733
|
-
), props.viaPhone && /* @__PURE__ */
|
|
7942
|
+
), props.viaPhone && /* @__PURE__ */ React68.createElement(
|
|
7734
7943
|
Button,
|
|
7735
7944
|
{
|
|
7736
7945
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7737
7946
|
variant: "outline",
|
|
7738
7947
|
onClick: props.handlePhone
|
|
7739
7948
|
},
|
|
7740
|
-
/* @__PURE__ */
|
|
7949
|
+
/* @__PURE__ */ React68.createElement(Logos.phone, { className: "hawa-icon" }),
|
|
7741
7950
|
props.texts?.continueWithPhone ?? "Continue With Phone"
|
|
7742
7951
|
));
|
|
7743
7952
|
};
|
|
7744
7953
|
|
|
7745
7954
|
// components/icons/index.tsx
|
|
7746
|
-
import
|
|
7747
|
-
var EyeIcon = (props) => /* @__PURE__ */
|
|
7955
|
+
import React69 from "react";
|
|
7956
|
+
var EyeIcon = (props) => /* @__PURE__ */ React69.createElement("div", { className: props.classNames }, /* @__PURE__ */ React69.createElement(
|
|
7748
7957
|
"svg",
|
|
7749
7958
|
{
|
|
7750
7959
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7757,10 +7966,10 @@ var EyeIcon = (props) => /* @__PURE__ */ React68.createElement("div", { classNam
|
|
|
7757
7966
|
"stroke-linecap": "round",
|
|
7758
7967
|
"stroke-linejoin": "round"
|
|
7759
7968
|
},
|
|
7760
|
-
/* @__PURE__ */
|
|
7761
|
-
/* @__PURE__ */
|
|
7969
|
+
/* @__PURE__ */ React69.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
|
7970
|
+
/* @__PURE__ */ React69.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
|
7762
7971
|
));
|
|
7763
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */
|
|
7972
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ React69.createElement("div", { className: props.classNames }, /* @__PURE__ */ React69.createElement(
|
|
7764
7973
|
"svg",
|
|
7765
7974
|
{
|
|
7766
7975
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7773,10 +7982,10 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ React68.createElement("div", { cl
|
|
|
7773
7982
|
"stroke-linecap": "round",
|
|
7774
7983
|
"stroke-linejoin": "round"
|
|
7775
7984
|
},
|
|
7776
|
-
/* @__PURE__ */
|
|
7777
|
-
/* @__PURE__ */
|
|
7778
|
-
/* @__PURE__ */
|
|
7779
|
-
/* @__PURE__ */
|
|
7985
|
+
/* @__PURE__ */ React69.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
|
7986
|
+
/* @__PURE__ */ React69.createElement("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
|
|
7987
|
+
/* @__PURE__ */ React69.createElement("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
|
|
7988
|
+
/* @__PURE__ */ React69.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
|
7780
7989
|
));
|
|
7781
7990
|
|
|
7782
7991
|
// components/blocks/auth/LoginForm.tsx
|
|
@@ -7836,12 +8045,12 @@ var LoginForm = ({
|
|
|
7836
8045
|
const renderFields = () => {
|
|
7837
8046
|
switch (loginType) {
|
|
7838
8047
|
case "email":
|
|
7839
|
-
return /* @__PURE__ */
|
|
8048
|
+
return /* @__PURE__ */ React70.createElement(React70.Fragment, null, /* @__PURE__ */ React70.createElement(
|
|
7840
8049
|
Controller,
|
|
7841
8050
|
{
|
|
7842
8051
|
control,
|
|
7843
8052
|
name: "email",
|
|
7844
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8053
|
+
render: ({ field }) => /* @__PURE__ */ React70.createElement(
|
|
7845
8054
|
Input,
|
|
7846
8055
|
{
|
|
7847
8056
|
width: "full",
|
|
@@ -7853,25 +8062,25 @@ var LoginForm = ({
|
|
|
7853
8062
|
}
|
|
7854
8063
|
)
|
|
7855
8064
|
}
|
|
7856
|
-
), /* @__PURE__ */
|
|
8065
|
+
), /* @__PURE__ */ React70.createElement("div", null, /* @__PURE__ */ React70.createElement(
|
|
7857
8066
|
Controller,
|
|
7858
8067
|
{
|
|
7859
8068
|
control,
|
|
7860
8069
|
name: "password",
|
|
7861
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8070
|
+
render: ({ field }) => /* @__PURE__ */ React70.createElement(
|
|
7862
8071
|
Input,
|
|
7863
8072
|
{
|
|
7864
8073
|
width: "full",
|
|
7865
8074
|
autoComplete: "current-password",
|
|
7866
8075
|
type: passwordVisible ? "text" : "password",
|
|
7867
8076
|
label: texts?.password?.label || "Password",
|
|
7868
|
-
iconInside: /* @__PURE__ */
|
|
8077
|
+
iconInside: /* @__PURE__ */ React70.createElement(
|
|
7869
8078
|
"div",
|
|
7870
8079
|
{
|
|
7871
8080
|
className: "hawa-cursor-pointer",
|
|
7872
8081
|
onClick: () => setPasswordVisible(!passwordVisible)
|
|
7873
8082
|
},
|
|
7874
|
-
passwordVisible ? /* @__PURE__ */
|
|
8083
|
+
passwordVisible ? /* @__PURE__ */ React70.createElement(EyeIcon, { classNames: "hawa-text-gray-500" }) : /* @__PURE__ */ React70.createElement(HiddenEyeIcon, { classNames: "hawa-text-gray-500" })
|
|
7875
8084
|
),
|
|
7876
8085
|
placeholder: texts?.password?.placeholder || "Enter your password",
|
|
7877
8086
|
helperText: formState.errors.password?.message,
|
|
@@ -7879,7 +8088,7 @@ var LoginForm = ({
|
|
|
7879
8088
|
}
|
|
7880
8089
|
)
|
|
7881
8090
|
}
|
|
7882
|
-
), !props.withoutResetPassword && /* @__PURE__ */
|
|
8091
|
+
), !props.withoutResetPassword && /* @__PURE__ */ React70.createElement(
|
|
7883
8092
|
"div",
|
|
7884
8093
|
{
|
|
7885
8094
|
onClick: props.onForgotPassword,
|
|
@@ -7888,13 +8097,13 @@ var LoginForm = ({
|
|
|
7888
8097
|
texts?.forgotPassword || "Forgot Password?"
|
|
7889
8098
|
)));
|
|
7890
8099
|
case "username":
|
|
7891
|
-
return /* @__PURE__ */
|
|
8100
|
+
return /* @__PURE__ */ React70.createElement(React70.Fragment, null, /* @__PURE__ */ React70.createElement(
|
|
7892
8101
|
Controller,
|
|
7893
8102
|
{
|
|
7894
8103
|
control,
|
|
7895
8104
|
name: "username",
|
|
7896
8105
|
render: ({ field }) => {
|
|
7897
|
-
return /* @__PURE__ */
|
|
8106
|
+
return /* @__PURE__ */ React70.createElement(
|
|
7898
8107
|
Input,
|
|
7899
8108
|
{
|
|
7900
8109
|
width: "full",
|
|
@@ -7907,25 +8116,25 @@ var LoginForm = ({
|
|
|
7907
8116
|
);
|
|
7908
8117
|
}
|
|
7909
8118
|
}
|
|
7910
|
-
), /* @__PURE__ */
|
|
8119
|
+
), /* @__PURE__ */ React70.createElement("div", null, /* @__PURE__ */ React70.createElement(
|
|
7911
8120
|
Controller,
|
|
7912
8121
|
{
|
|
7913
8122
|
control,
|
|
7914
8123
|
name: "password",
|
|
7915
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8124
|
+
render: ({ field }) => /* @__PURE__ */ React70.createElement(
|
|
7916
8125
|
Input,
|
|
7917
8126
|
{
|
|
7918
8127
|
width: "full",
|
|
7919
8128
|
autoComplete: "current-password",
|
|
7920
8129
|
type: passwordVisible ? "text" : "password",
|
|
7921
8130
|
label: texts?.password?.label,
|
|
7922
|
-
iconInside: /* @__PURE__ */
|
|
8131
|
+
iconInside: /* @__PURE__ */ React70.createElement(
|
|
7923
8132
|
"div",
|
|
7924
8133
|
{
|
|
7925
8134
|
className: "hawa-cursor-pointer",
|
|
7926
8135
|
onClick: () => setPasswordVisible(!passwordVisible)
|
|
7927
8136
|
},
|
|
7928
|
-
passwordVisible ? /* @__PURE__ */
|
|
8137
|
+
passwordVisible ? /* @__PURE__ */ React70.createElement(EyeIcon, { classNames: "hawa-text-gray-500" }) : /* @__PURE__ */ React70.createElement(HiddenEyeIcon, { classNames: "hawa-text-gray-500" })
|
|
7929
8138
|
),
|
|
7930
8139
|
placeholder: texts?.password?.placeholder || "Enter your password",
|
|
7931
8140
|
helperText: formState.errors.password?.message,
|
|
@@ -7933,7 +8142,7 @@ var LoginForm = ({
|
|
|
7933
8142
|
}
|
|
7934
8143
|
)
|
|
7935
8144
|
}
|
|
7936
|
-
), !props.withoutResetPassword && /* @__PURE__ */
|
|
8145
|
+
), !props.withoutResetPassword && /* @__PURE__ */ React70.createElement(
|
|
7937
8146
|
"div",
|
|
7938
8147
|
{
|
|
7939
8148
|
onClick: props.onForgotPassword,
|
|
@@ -7942,12 +8151,12 @@ var LoginForm = ({
|
|
|
7942
8151
|
texts?.forgotPassword || "Forgot Password?"
|
|
7943
8152
|
)));
|
|
7944
8153
|
case "phone":
|
|
7945
|
-
return /* @__PURE__ */
|
|
8154
|
+
return /* @__PURE__ */ React70.createElement(React70.Fragment, null, /* @__PURE__ */ React70.createElement(
|
|
7946
8155
|
Controller,
|
|
7947
8156
|
{
|
|
7948
8157
|
control,
|
|
7949
8158
|
name: "phone",
|
|
7950
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8159
|
+
render: ({ field }) => /* @__PURE__ */ React70.createElement(
|
|
7951
8160
|
PhoneInput,
|
|
7952
8161
|
{
|
|
7953
8162
|
label: texts?.phone?.label,
|
|
@@ -7959,12 +8168,12 @@ var LoginForm = ({
|
|
|
7959
8168
|
}
|
|
7960
8169
|
));
|
|
7961
8170
|
case "link":
|
|
7962
|
-
return /* @__PURE__ */
|
|
8171
|
+
return /* @__PURE__ */ React70.createElement(React70.Fragment, null, /* @__PURE__ */ React70.createElement(
|
|
7963
8172
|
Controller,
|
|
7964
8173
|
{
|
|
7965
8174
|
control,
|
|
7966
8175
|
name: "email",
|
|
7967
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8176
|
+
render: ({ field }) => /* @__PURE__ */ React70.createElement(
|
|
7968
8177
|
Input,
|
|
7969
8178
|
{
|
|
7970
8179
|
width: "full",
|
|
@@ -7981,14 +8190,14 @@ var LoginForm = ({
|
|
|
7981
8190
|
break;
|
|
7982
8191
|
}
|
|
7983
8192
|
};
|
|
7984
|
-
return /* @__PURE__ */
|
|
8193
|
+
return /* @__PURE__ */ React70.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React70.createElement(Card, { dir: props.direction }, /* @__PURE__ */ React70.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ React70.createElement(
|
|
7985
8194
|
Alert,
|
|
7986
8195
|
{
|
|
7987
8196
|
title: props.errorTitle,
|
|
7988
8197
|
text: props.errorText,
|
|
7989
8198
|
severity: "error"
|
|
7990
8199
|
}
|
|
7991
|
-
), /* @__PURE__ */
|
|
8200
|
+
), /* @__PURE__ */ React70.createElement(
|
|
7992
8201
|
"form",
|
|
7993
8202
|
{
|
|
7994
8203
|
noValidate: true,
|
|
@@ -8002,7 +8211,7 @@ var LoginForm = ({
|
|
|
8002
8211
|
})
|
|
8003
8212
|
},
|
|
8004
8213
|
renderFields(),
|
|
8005
|
-
/* @__PURE__ */
|
|
8214
|
+
/* @__PURE__ */ React70.createElement(
|
|
8006
8215
|
Button,
|
|
8007
8216
|
{
|
|
8008
8217
|
className: "hawa-mt-0 hawa-w-full",
|
|
@@ -8012,7 +8221,7 @@ var LoginForm = ({
|
|
|
8012
8221
|
texts?.loginText || "Login"
|
|
8013
8222
|
),
|
|
8014
8223
|
props.additionalButtons,
|
|
8015
|
-
props.allowRegister && /* @__PURE__ */
|
|
8224
|
+
props.allowRegister && /* @__PURE__ */ React70.createElement("div", { className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal hawa-select-none dark:hawa-text-gray-300" }, texts?.newUserText || "New user?", " ", /* @__PURE__ */ React70.createElement(
|
|
8016
8225
|
"span",
|
|
8017
8226
|
{
|
|
8018
8227
|
onClick: props.onRouteToRegister,
|
|
@@ -8020,14 +8229,14 @@ var LoginForm = ({
|
|
|
8020
8229
|
},
|
|
8021
8230
|
texts?.createAccount || "Create Account"
|
|
8022
8231
|
))
|
|
8023
|
-
)), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
|
8232
|
+
)), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React70.createElement(
|
|
8024
8233
|
CardFooter,
|
|
8025
8234
|
{
|
|
8026
8235
|
className: cn(
|
|
8027
8236
|
props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
|
|
8028
8237
|
)
|
|
8029
8238
|
},
|
|
8030
|
-
/* @__PURE__ */
|
|
8239
|
+
/* @__PURE__ */ React70.createElement(
|
|
8031
8240
|
AuthButtons,
|
|
8032
8241
|
{
|
|
8033
8242
|
texts: thirdPartyAuthTexts,
|
|
@@ -8039,7 +8248,7 @@ var LoginForm = ({
|
|
|
8039
8248
|
handleTwitter: props.onTwitterLogin
|
|
8040
8249
|
}
|
|
8041
8250
|
)
|
|
8042
|
-
) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */
|
|
8251
|
+
) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ React70.createElement(
|
|
8043
8252
|
InterfaceSettings,
|
|
8044
8253
|
{
|
|
8045
8254
|
currentColorMode: props.currentColorMode,
|
|
@@ -8051,7 +8260,7 @@ var LoginForm = ({
|
|
|
8051
8260
|
};
|
|
8052
8261
|
|
|
8053
8262
|
// components/blocks/auth/RegisterForm.tsx
|
|
8054
|
-
import
|
|
8263
|
+
import React71, { useState as useState28 } from "react";
|
|
8055
8264
|
import { Controller as Controller2, FormProvider, useForm as useForm2 } from "react-hook-form";
|
|
8056
8265
|
import { zodResolver as zodResolver2 } from "@hookform/resolvers/zod";
|
|
8057
8266
|
import * as z2 from "zod";
|
|
@@ -8106,14 +8315,14 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
8106
8315
|
const { handleSubmit, control, formState } = useForm2({
|
|
8107
8316
|
resolver: zodResolver2(formSchema)
|
|
8108
8317
|
});
|
|
8109
|
-
return /* @__PURE__ */
|
|
8318
|
+
return /* @__PURE__ */ React71.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React71.createElement(Card, { dir: props.direction }, /* @__PURE__ */ React71.createElement(CardContent, { headless: true }, /* @__PURE__ */ React71.createElement("div", null, props.showError && /* @__PURE__ */ React71.createElement(
|
|
8110
8319
|
Alert,
|
|
8111
8320
|
{
|
|
8112
8321
|
title: props.errorTitle,
|
|
8113
8322
|
text: props.errorText,
|
|
8114
8323
|
severity: "error"
|
|
8115
8324
|
}
|
|
8116
|
-
), /* @__PURE__ */
|
|
8325
|
+
), /* @__PURE__ */ React71.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React71.createElement(
|
|
8117
8326
|
"form",
|
|
8118
8327
|
{
|
|
8119
8328
|
noValidate: true,
|
|
@@ -8128,15 +8337,15 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
8128
8337
|
}),
|
|
8129
8338
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
8130
8339
|
},
|
|
8131
|
-
/* @__PURE__ */
|
|
8340
|
+
/* @__PURE__ */ React71.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, props.registerFields.map((fld, i) => {
|
|
8132
8341
|
if (fld === "fullname") {
|
|
8133
|
-
return /* @__PURE__ */
|
|
8342
|
+
return /* @__PURE__ */ React71.createElement(
|
|
8134
8343
|
Controller2,
|
|
8135
8344
|
{
|
|
8136
8345
|
key: i,
|
|
8137
8346
|
control,
|
|
8138
8347
|
name: "fullName",
|
|
8139
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8348
|
+
render: ({ field }) => /* @__PURE__ */ React71.createElement(
|
|
8140
8349
|
Input,
|
|
8141
8350
|
{
|
|
8142
8351
|
width: "full",
|
|
@@ -8150,13 +8359,13 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
8150
8359
|
);
|
|
8151
8360
|
}
|
|
8152
8361
|
if (fld === "email") {
|
|
8153
|
-
return /* @__PURE__ */
|
|
8362
|
+
return /* @__PURE__ */ React71.createElement(
|
|
8154
8363
|
Controller2,
|
|
8155
8364
|
{
|
|
8156
8365
|
key: i,
|
|
8157
8366
|
control,
|
|
8158
8367
|
name: "email",
|
|
8159
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8368
|
+
render: ({ field }) => /* @__PURE__ */ React71.createElement(
|
|
8160
8369
|
Input,
|
|
8161
8370
|
{
|
|
8162
8371
|
width: "full",
|
|
@@ -8171,13 +8380,13 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
8171
8380
|
);
|
|
8172
8381
|
}
|
|
8173
8382
|
if (fld === "username") {
|
|
8174
|
-
return /* @__PURE__ */
|
|
8383
|
+
return /* @__PURE__ */ React71.createElement(
|
|
8175
8384
|
Controller2,
|
|
8176
8385
|
{
|
|
8177
8386
|
key: i,
|
|
8178
8387
|
control,
|
|
8179
8388
|
name: "username",
|
|
8180
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8389
|
+
render: ({ field }) => /* @__PURE__ */ React71.createElement(
|
|
8181
8390
|
Input,
|
|
8182
8391
|
{
|
|
8183
8392
|
width: "full",
|
|
@@ -8192,23 +8401,23 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
8192
8401
|
);
|
|
8193
8402
|
}
|
|
8194
8403
|
})),
|
|
8195
|
-
/* @__PURE__ */
|
|
8404
|
+
/* @__PURE__ */ React71.createElement(
|
|
8196
8405
|
Controller2,
|
|
8197
8406
|
{
|
|
8198
8407
|
control,
|
|
8199
8408
|
name: "password",
|
|
8200
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8409
|
+
render: ({ field }) => /* @__PURE__ */ React71.createElement(
|
|
8201
8410
|
Input,
|
|
8202
8411
|
{
|
|
8203
8412
|
width: "full",
|
|
8204
8413
|
type: passwordVisible ? "text" : "password",
|
|
8205
|
-
iconInside: /* @__PURE__ */
|
|
8414
|
+
iconInside: /* @__PURE__ */ React71.createElement(
|
|
8206
8415
|
"div",
|
|
8207
8416
|
{
|
|
8208
8417
|
className: "hawa-cursor-pointer",
|
|
8209
8418
|
onClick: () => setPasswordVisible(!passwordVisible)
|
|
8210
8419
|
},
|
|
8211
|
-
passwordVisible ? /* @__PURE__ */
|
|
8420
|
+
passwordVisible ? /* @__PURE__ */ React71.createElement(EyeIcon, { classNames: "hawa-text-gray-500" }) : /* @__PURE__ */ React71.createElement(HiddenEyeIcon, { classNames: "hawa-text-gray-500" }),
|
|
8212
8421
|
" "
|
|
8213
8422
|
),
|
|
8214
8423
|
autoComplete: "new-password",
|
|
@@ -8220,12 +8429,12 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
8220
8429
|
)
|
|
8221
8430
|
}
|
|
8222
8431
|
),
|
|
8223
|
-
/* @__PURE__ */
|
|
8432
|
+
/* @__PURE__ */ React71.createElement(
|
|
8224
8433
|
Controller2,
|
|
8225
8434
|
{
|
|
8226
8435
|
control,
|
|
8227
8436
|
name: "confirm_password",
|
|
8228
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8437
|
+
render: ({ field }) => /* @__PURE__ */ React71.createElement(
|
|
8229
8438
|
Input,
|
|
8230
8439
|
{
|
|
8231
8440
|
width: "full",
|
|
@@ -8240,12 +8449,12 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
8240
8449
|
}
|
|
8241
8450
|
),
|
|
8242
8451
|
props.additionalInputs,
|
|
8243
|
-
props.showRefCode && /* @__PURE__ */
|
|
8452
|
+
props.showRefCode && /* @__PURE__ */ React71.createElement(
|
|
8244
8453
|
Controller2,
|
|
8245
8454
|
{
|
|
8246
8455
|
control,
|
|
8247
8456
|
name: "refCode",
|
|
8248
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8457
|
+
render: ({ field }) => /* @__PURE__ */ React71.createElement(
|
|
8249
8458
|
Input,
|
|
8250
8459
|
{
|
|
8251
8460
|
width: "full",
|
|
@@ -8257,12 +8466,12 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
8257
8466
|
)
|
|
8258
8467
|
}
|
|
8259
8468
|
),
|
|
8260
|
-
props.showUserSource && /* @__PURE__ */
|
|
8469
|
+
props.showUserSource && /* @__PURE__ */ React71.createElement(
|
|
8261
8470
|
Controller2,
|
|
8262
8471
|
{
|
|
8263
8472
|
control,
|
|
8264
8473
|
name: "reference",
|
|
8265
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8474
|
+
render: ({ field }) => /* @__PURE__ */ React71.createElement(
|
|
8266
8475
|
Select,
|
|
8267
8476
|
{
|
|
8268
8477
|
label: texts?.userReference.label || "How did you learn about us?",
|
|
@@ -8279,18 +8488,18 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
8279
8488
|
)
|
|
8280
8489
|
}
|
|
8281
8490
|
),
|
|
8282
|
-
/* @__PURE__ */
|
|
8491
|
+
/* @__PURE__ */ React71.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-3" }, props.showTermsOption && /* @__PURE__ */ React71.createElement(
|
|
8283
8492
|
Controller2,
|
|
8284
8493
|
{
|
|
8285
8494
|
control,
|
|
8286
8495
|
name: "terms_accepted",
|
|
8287
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8496
|
+
render: ({ field }) => /* @__PURE__ */ React71.createElement(
|
|
8288
8497
|
Checkbox,
|
|
8289
8498
|
{
|
|
8290
8499
|
id: "terms_accepted",
|
|
8291
8500
|
helperText: formState.errors.terms_accepted?.message?.toString(),
|
|
8292
8501
|
onCheckedChange: (e) => field.onChange(e),
|
|
8293
|
-
label: /* @__PURE__ */
|
|
8502
|
+
label: /* @__PURE__ */ React71.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5" }, /* @__PURE__ */ React71.createElement("span", null, texts?.iAcceptText), " ", /* @__PURE__ */ React71.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React71.createElement(
|
|
8294
8503
|
"a",
|
|
8295
8504
|
{
|
|
8296
8505
|
onClick: props.onRouteToTOS,
|
|
@@ -8301,12 +8510,12 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
8301
8510
|
}
|
|
8302
8511
|
)
|
|
8303
8512
|
}
|
|
8304
|
-
), props.showNewsletterOption && /* @__PURE__ */
|
|
8513
|
+
), props.showNewsletterOption && /* @__PURE__ */ React71.createElement(
|
|
8305
8514
|
Controller2,
|
|
8306
8515
|
{
|
|
8307
8516
|
control,
|
|
8308
8517
|
name: "newsletter_accepted",
|
|
8309
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8518
|
+
render: ({ field }) => /* @__PURE__ */ React71.createElement(
|
|
8310
8519
|
Checkbox,
|
|
8311
8520
|
{
|
|
8312
8521
|
id: "newsletter_accepted",
|
|
@@ -8316,7 +8525,7 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
8316
8525
|
)
|
|
8317
8526
|
}
|
|
8318
8527
|
)),
|
|
8319
|
-
/* @__PURE__ */
|
|
8528
|
+
/* @__PURE__ */ React71.createElement(
|
|
8320
8529
|
Button,
|
|
8321
8530
|
{
|
|
8322
8531
|
isLoading: props.isLoading,
|
|
@@ -8325,14 +8534,14 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
8325
8534
|
texts?.registerText
|
|
8326
8535
|
),
|
|
8327
8536
|
props.additionalButtons
|
|
8328
|
-
)), /* @__PURE__ */
|
|
8537
|
+
)), /* @__PURE__ */ React71.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-1 hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-white" }, /* @__PURE__ */ React71.createElement("span", null, texts?.existingUserText), /* @__PURE__ */ React71.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, texts?.loginText || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React71.createElement(
|
|
8329
8538
|
CardFooter,
|
|
8330
8539
|
{
|
|
8331
8540
|
className: cn(
|
|
8332
8541
|
props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
|
|
8333
8542
|
)
|
|
8334
8543
|
},
|
|
8335
|
-
/* @__PURE__ */
|
|
8544
|
+
/* @__PURE__ */ React71.createElement(
|
|
8336
8545
|
AuthButtons,
|
|
8337
8546
|
{
|
|
8338
8547
|
texts: thirdPartyAuthTexts,
|
|
@@ -8344,7 +8553,7 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
8344
8553
|
handleTwitter: props.onTwitterRegister
|
|
8345
8554
|
}
|
|
8346
8555
|
)
|
|
8347
|
-
) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */
|
|
8556
|
+
) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ React71.createElement(
|
|
8348
8557
|
InterfaceSettings,
|
|
8349
8558
|
{
|
|
8350
8559
|
currentColorMode: props.currentColorMode,
|
|
@@ -8356,7 +8565,7 @@ var RegisterForm = ({ texts, ...props }) => {
|
|
|
8356
8565
|
};
|
|
8357
8566
|
|
|
8358
8567
|
// components/blocks/auth/AppLanding.tsx
|
|
8359
|
-
import
|
|
8568
|
+
import React72 from "react";
|
|
8360
8569
|
var AppLanding = ({ texts, ...props }) => {
|
|
8361
8570
|
const thirdPartyAuthTexts = {
|
|
8362
8571
|
continueWithGoogle: texts?.continueWithGoogle,
|
|
@@ -8367,7 +8576,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
|
8367
8576
|
continueWithEmail: texts?.continueWithEmail,
|
|
8368
8577
|
continueWithPhone: texts?.continueWithPhone
|
|
8369
8578
|
};
|
|
8370
|
-
return /* @__PURE__ */
|
|
8579
|
+
return /* @__PURE__ */ React72.createElement("div", { dir: props.direction }, /* @__PURE__ */ React72.createElement(Card, null, /* @__PURE__ */ React72.createElement(CardContent, { headless: true, className: "hawa-flex hawa-flex-col hawa-gap-6" }, /* @__PURE__ */ React72.createElement(
|
|
8371
8580
|
AuthButtons,
|
|
8372
8581
|
{
|
|
8373
8582
|
texts: thirdPartyAuthTexts,
|
|
@@ -8387,14 +8596,14 @@ var AppLanding = ({ texts, ...props }) => {
|
|
|
8387
8596
|
handlePhone: props.handlePhone
|
|
8388
8597
|
}
|
|
8389
8598
|
), !props.withoutSignUp && //TODO: change to "register"
|
|
8390
|
-
/* @__PURE__ */
|
|
8599
|
+
/* @__PURE__ */ React72.createElement("div", { className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300" }, texts?.newUserText, " ", /* @__PURE__ */ React72.createElement(
|
|
8391
8600
|
"span",
|
|
8392
8601
|
{
|
|
8393
8602
|
onClick: props.handleRouteToRegister,
|
|
8394
8603
|
className: "clickable-link"
|
|
8395
8604
|
},
|
|
8396
8605
|
texts?.createAccount
|
|
8397
|
-
)))), /* @__PURE__ */
|
|
8606
|
+
)))), /* @__PURE__ */ React72.createElement("div", { className: "hawa-mt-4 hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ React72.createElement(
|
|
8398
8607
|
Radio,
|
|
8399
8608
|
{
|
|
8400
8609
|
onChangeTab: props.handleLanguage,
|
|
@@ -8404,7 +8613,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
|
8404
8613
|
{ value: "en", label: "English" }
|
|
8405
8614
|
]
|
|
8406
8615
|
}
|
|
8407
|
-
), /* @__PURE__ */
|
|
8616
|
+
), /* @__PURE__ */ React72.createElement(
|
|
8408
8617
|
Radio,
|
|
8409
8618
|
{
|
|
8410
8619
|
onChangeTab: props.handleColorMode,
|
|
@@ -8412,7 +8621,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
|
8412
8621
|
options: [
|
|
8413
8622
|
{
|
|
8414
8623
|
value: "light",
|
|
8415
|
-
label: /* @__PURE__ */
|
|
8624
|
+
label: /* @__PURE__ */ React72.createElement(
|
|
8416
8625
|
"svg",
|
|
8417
8626
|
{
|
|
8418
8627
|
width: "15",
|
|
@@ -8422,7 +8631,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
|
8422
8631
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8423
8632
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
|
8424
8633
|
},
|
|
8425
|
-
/* @__PURE__ */
|
|
8634
|
+
/* @__PURE__ */ React72.createElement(
|
|
8426
8635
|
"path",
|
|
8427
8636
|
{
|
|
8428
8637
|
d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
|
|
@@ -8435,7 +8644,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
|
8435
8644
|
},
|
|
8436
8645
|
{
|
|
8437
8646
|
value: "dark",
|
|
8438
|
-
label: /* @__PURE__ */
|
|
8647
|
+
label: /* @__PURE__ */ React72.createElement(
|
|
8439
8648
|
"svg",
|
|
8440
8649
|
{
|
|
8441
8650
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8449,7 +8658,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
|
8449
8658
|
strokeLinejoin: "round",
|
|
8450
8659
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
|
8451
8660
|
},
|
|
8452
|
-
/* @__PURE__ */
|
|
8661
|
+
/* @__PURE__ */ React72.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
|
8453
8662
|
)
|
|
8454
8663
|
}
|
|
8455
8664
|
]
|
|
@@ -8458,9 +8667,9 @@ var AppLanding = ({ texts, ...props }) => {
|
|
|
8458
8667
|
};
|
|
8459
8668
|
|
|
8460
8669
|
// components/blocks/auth/CheckEmail.tsx
|
|
8461
|
-
import
|
|
8670
|
+
import React73 from "react";
|
|
8462
8671
|
var CheckEmail = ({ texts, handleResend }) => {
|
|
8463
|
-
return /* @__PURE__ */
|
|
8672
|
+
return /* @__PURE__ */ React73.createElement(Card, null, /* @__PURE__ */ React73.createElement(CardContent, { headless: true }, /* @__PURE__ */ React73.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ React73.createElement("div", { className: "hawa-flex hawa-h-16 hawa-w-16 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ React73.createElement(
|
|
8464
8673
|
"svg",
|
|
8465
8674
|
{
|
|
8466
8675
|
stroke: "currentColor",
|
|
@@ -8473,13 +8682,13 @@ var CheckEmail = ({ texts, handleResend }) => {
|
|
|
8473
8682
|
width: "0.5em",
|
|
8474
8683
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8475
8684
|
},
|
|
8476
|
-
/* @__PURE__ */
|
|
8477
|
-
/* @__PURE__ */
|
|
8478
|
-
)), /* @__PURE__ */
|
|
8685
|
+
/* @__PURE__ */ React73.createElement("path", { d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" }),
|
|
8686
|
+
/* @__PURE__ */ React73.createElement("polyline", { points: "22,6 12,13 2,6" })
|
|
8687
|
+
)), /* @__PURE__ */ React73.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, texts?.checkEmail || "Check your Email"), /* @__PURE__ */ React73.createElement("div", { className: "hawa-text-sm" }, texts?.pleaseVerify || "Thank you for signing up! To complete your registration, we've sent a verification email to the address you provided. Please check your inbox and follow the instructions in the email to activate your account."))), /* @__PURE__ */ React73.createElement(CardFooter, { className: "hawa-flex hawa-flex-col hawa-justify-center " }, /* @__PURE__ */ React73.createElement("span", { className: "clickable-link hawa-text-sm", onClick: handleResend }, texts?.resendEmail || "Resend Email")));
|
|
8479
8688
|
};
|
|
8480
8689
|
|
|
8481
8690
|
// components/blocks/auth/NewPassword.tsx
|
|
8482
|
-
import
|
|
8691
|
+
import React74, { useState as useState29 } from "react";
|
|
8483
8692
|
import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
|
|
8484
8693
|
import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
|
|
8485
8694
|
import * as z3 from "zod";
|
|
@@ -8497,7 +8706,7 @@ var NewPasswordForm = ({ texts, ...props }) => {
|
|
|
8497
8706
|
resolver: zodResolver3(formSchema)
|
|
8498
8707
|
});
|
|
8499
8708
|
const [matchError, setMatchError] = useState29(false);
|
|
8500
|
-
return /* @__PURE__ */
|
|
8709
|
+
return /* @__PURE__ */ React74.createElement(Card, { dir: props.direction }, matchError && /* @__PURE__ */ React74.createElement(Alert, { text: texts?.confirm?.dontMatch, severity: "error" }), props.passwordChanged ? /* @__PURE__ */ React74.createElement(CardContent, { headless: true }, /* @__PURE__ */ React74.createElement("div", { className: "hawa-text-center" }, texts?.passwordChanged)) : /* @__PURE__ */ React74.createElement(
|
|
8501
8710
|
"form",
|
|
8502
8711
|
{
|
|
8503
8712
|
noValidate: true,
|
|
@@ -8511,19 +8720,19 @@ var NewPasswordForm = ({ texts, ...props }) => {
|
|
|
8511
8720
|
}
|
|
8512
8721
|
})
|
|
8513
8722
|
},
|
|
8514
|
-
!props.headless && /* @__PURE__ */
|
|
8515
|
-
/* @__PURE__ */
|
|
8723
|
+
!props.headless && /* @__PURE__ */ React74.createElement(CardHeader, null, /* @__PURE__ */ React74.createElement(CardTitle, null, "Create Password"), /* @__PURE__ */ React74.createElement(CardDescription, null, "Set a new password for your account")),
|
|
8724
|
+
/* @__PURE__ */ React74.createElement(
|
|
8516
8725
|
CardContent,
|
|
8517
8726
|
{
|
|
8518
8727
|
headless: props.headless,
|
|
8519
8728
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
8520
8729
|
},
|
|
8521
|
-
/* @__PURE__ */
|
|
8730
|
+
/* @__PURE__ */ React74.createElement(
|
|
8522
8731
|
Controller3,
|
|
8523
8732
|
{
|
|
8524
8733
|
control,
|
|
8525
8734
|
name: "password",
|
|
8526
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8735
|
+
render: ({ field }) => /* @__PURE__ */ React74.createElement(
|
|
8527
8736
|
Input,
|
|
8528
8737
|
{
|
|
8529
8738
|
width: "full",
|
|
@@ -8537,12 +8746,12 @@ var NewPasswordForm = ({ texts, ...props }) => {
|
|
|
8537
8746
|
)
|
|
8538
8747
|
}
|
|
8539
8748
|
),
|
|
8540
|
-
/* @__PURE__ */
|
|
8749
|
+
/* @__PURE__ */ React74.createElement(
|
|
8541
8750
|
Controller3,
|
|
8542
8751
|
{
|
|
8543
8752
|
control,
|
|
8544
8753
|
name: "confirm_password",
|
|
8545
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8754
|
+
render: ({ field }) => /* @__PURE__ */ React74.createElement(
|
|
8546
8755
|
Input,
|
|
8547
8756
|
{
|
|
8548
8757
|
width: "full",
|
|
@@ -8557,7 +8766,7 @@ var NewPasswordForm = ({ texts, ...props }) => {
|
|
|
8557
8766
|
}
|
|
8558
8767
|
)
|
|
8559
8768
|
),
|
|
8560
|
-
/* @__PURE__ */
|
|
8769
|
+
/* @__PURE__ */ React74.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React74.createElement(Button, { className: "hawa-w-full", type: "submit" }, texts?.updatePassword), props.allowRegister && /* @__PURE__ */ React74.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, texts?.dontHaveAccount ?? "Don't have an account? ", /* @__PURE__ */ React74.createElement(
|
|
8561
8770
|
"span",
|
|
8562
8771
|
{
|
|
8563
8772
|
className: "clickable-link",
|
|
@@ -8569,7 +8778,7 @@ var NewPasswordForm = ({ texts, ...props }) => {
|
|
|
8569
8778
|
};
|
|
8570
8779
|
|
|
8571
8780
|
// components/blocks/auth/ResetPassword.tsx
|
|
8572
|
-
import
|
|
8781
|
+
import React75 from "react";
|
|
8573
8782
|
import { Controller as Controller4, useForm as useForm4 } from "react-hook-form";
|
|
8574
8783
|
import { zodResolver as zodResolver4 } from "@hookform/resolvers/zod";
|
|
8575
8784
|
import * as z4 from "zod";
|
|
@@ -8580,7 +8789,7 @@ var ResetPasswordForm = (props) => {
|
|
|
8580
8789
|
const { handleSubmit, control, formState } = useForm4({
|
|
8581
8790
|
resolver: zodResolver4(formSchema)
|
|
8582
8791
|
});
|
|
8583
|
-
return /* @__PURE__ */
|
|
8792
|
+
return /* @__PURE__ */ React75.createElement(Card, { dir: props.direction }, !props.sent ? /* @__PURE__ */ React75.createElement(React75.Fragment, null, !props.headless && /* @__PURE__ */ React75.createElement(CardHeader, null, /* @__PURE__ */ React75.createElement(CardTitle, null, " ", props.texts?.headTitle || "Reset Password"), /* @__PURE__ */ React75.createElement(CardDescription, null, props.texts?.headDescription || "Enter your email to reset your account password")), /* @__PURE__ */ React75.createElement(
|
|
8584
8793
|
"form",
|
|
8585
8794
|
{
|
|
8586
8795
|
noValidate: true,
|
|
@@ -8592,12 +8801,12 @@ var ResetPasswordForm = (props) => {
|
|
|
8592
8801
|
}
|
|
8593
8802
|
})
|
|
8594
8803
|
},
|
|
8595
|
-
/* @__PURE__ */
|
|
8804
|
+
/* @__PURE__ */ React75.createElement(CardContent, { headless: props.headless }, /* @__PURE__ */ React75.createElement(
|
|
8596
8805
|
Controller4,
|
|
8597
8806
|
{
|
|
8598
8807
|
control,
|
|
8599
8808
|
name: "email",
|
|
8600
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8809
|
+
render: ({ field }) => /* @__PURE__ */ React75.createElement(
|
|
8601
8810
|
Input,
|
|
8602
8811
|
{
|
|
8603
8812
|
width: "full",
|
|
@@ -8609,7 +8818,7 @@ var ResetPasswordForm = (props) => {
|
|
|
8609
8818
|
)
|
|
8610
8819
|
}
|
|
8611
8820
|
)),
|
|
8612
|
-
/* @__PURE__ */
|
|
8821
|
+
/* @__PURE__ */ React75.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React75.createElement(Button, { type: "submit", className: "hawa-w-full" }, props.texts?.resetPassword), props.allowRegister && /* @__PURE__ */ React75.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, props.texts?.dontHaveAccount ?? "Don't have an account? ", /* @__PURE__ */ React75.createElement(
|
|
8613
8822
|
"span",
|
|
8614
8823
|
{
|
|
8615
8824
|
className: "clickable-link",
|
|
@@ -8617,11 +8826,11 @@ var ResetPasswordForm = (props) => {
|
|
|
8617
8826
|
},
|
|
8618
8827
|
props.texts?.registerText ?? "Register"
|
|
8619
8828
|
)))
|
|
8620
|
-
)) : /* @__PURE__ */
|
|
8829
|
+
)) : /* @__PURE__ */ React75.createElement(CardContent, { headless: true }, /* @__PURE__ */ React75.createElement("div", { className: "hawa-text-center" }, props.texts?.emailSentText)));
|
|
8621
8830
|
};
|
|
8622
8831
|
|
|
8623
8832
|
// components/blocks/auth/CodeConfirmation.tsx
|
|
8624
|
-
import
|
|
8833
|
+
import React76, { useEffect as useEffect20, useState as useState30 } from "react";
|
|
8625
8834
|
import { Controller as Controller5, useForm as useForm5 } from "react-hook-form";
|
|
8626
8835
|
import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
|
|
8627
8836
|
import * as z5 from "zod";
|
|
@@ -8632,14 +8841,45 @@ var CodeConfirmation = (props) => {
|
|
|
8632
8841
|
const { handleSubmit, control, formState, setValue } = useForm5({
|
|
8633
8842
|
resolver: zodResolver5(formSchema)
|
|
8634
8843
|
});
|
|
8635
|
-
|
|
8844
|
+
const [resendTimer, setResendTimer] = useState30(null);
|
|
8845
|
+
const [remainingTime, setRemainingTime] = useState30(0);
|
|
8846
|
+
const [showResendTimer, setShowResendTimer] = useState30(false);
|
|
8847
|
+
const startResendTimer = () => {
|
|
8848
|
+
if (resendTimer !== null) {
|
|
8849
|
+
clearInterval(resendTimer);
|
|
8850
|
+
setResendTimer(null);
|
|
8851
|
+
}
|
|
8852
|
+
const timerDuration = 60;
|
|
8853
|
+
setRemainingTime(timerDuration);
|
|
8854
|
+
setShowResendTimer(true);
|
|
8855
|
+
const newTimer = window.setInterval(() => {
|
|
8856
|
+
setRemainingTime((prevTime) => {
|
|
8857
|
+
if (prevTime > 0) {
|
|
8858
|
+
return prevTime - 1;
|
|
8859
|
+
} else {
|
|
8860
|
+
clearInterval(newTimer);
|
|
8861
|
+
setShowResendTimer(false);
|
|
8862
|
+
return 0;
|
|
8863
|
+
}
|
|
8864
|
+
});
|
|
8865
|
+
}, 1e3);
|
|
8866
|
+
setResendTimer(newTimer);
|
|
8867
|
+
};
|
|
8868
|
+
useEffect20(() => {
|
|
8869
|
+
return () => {
|
|
8870
|
+
if (resendTimer !== null) {
|
|
8871
|
+
clearInterval(resendTimer);
|
|
8872
|
+
}
|
|
8873
|
+
};
|
|
8874
|
+
}, []);
|
|
8875
|
+
return /* @__PURE__ */ React76.createElement(Card, null, /* @__PURE__ */ React76.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ React76.createElement(
|
|
8636
8876
|
Alert,
|
|
8637
8877
|
{
|
|
8638
8878
|
title: props.errorTitle,
|
|
8639
8879
|
text: props.errorText,
|
|
8640
8880
|
severity: "error"
|
|
8641
8881
|
}
|
|
8642
|
-
), /* @__PURE__ */
|
|
8882
|
+
), /* @__PURE__ */ React76.createElement("div", { className: "hawa-mb-4 dark:hawa-text-white" }, /* @__PURE__ */ React76.createElement("div", { className: "hawa-text-lg hawa-font-bold" }, props.texts?.checkYourPhone || "Please check your phone"), /* @__PURE__ */ React76.createElement("div", { className: "hawa-text-muted-foreground" }, /* @__PURE__ */ React76.createElement("span", null, props.texts?.weSentCode || "We've sent a code to "), /* @__PURE__ */ React76.createElement("span", null, props.phoneNumber)), " "), /* @__PURE__ */ React76.createElement(
|
|
8643
8883
|
"form",
|
|
8644
8884
|
{
|
|
8645
8885
|
noValidate: true,
|
|
@@ -8653,12 +8893,12 @@ var CodeConfirmation = (props) => {
|
|
|
8653
8893
|
}
|
|
8654
8894
|
})
|
|
8655
8895
|
},
|
|
8656
|
-
/* @__PURE__ */
|
|
8896
|
+
/* @__PURE__ */ React76.createElement(
|
|
8657
8897
|
Controller5,
|
|
8658
8898
|
{
|
|
8659
8899
|
control,
|
|
8660
8900
|
name: "otp_code",
|
|
8661
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8901
|
+
render: ({ field }) => /* @__PURE__ */ React76.createElement(
|
|
8662
8902
|
PinInput,
|
|
8663
8903
|
{
|
|
8664
8904
|
width: "full",
|
|
@@ -8669,13 +8909,23 @@ var CodeConfirmation = (props) => {
|
|
|
8669
8909
|
)
|
|
8670
8910
|
}
|
|
8671
8911
|
),
|
|
8672
|
-
/* @__PURE__ */
|
|
8673
|
-
|
|
8912
|
+
showResendTimer ? /* @__PURE__ */ React76.createElement("div", { className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground" }, props.texts?.resendCodeTimer, " ", /* @__PURE__ */ React76.createElement("strong", null, remainingTime), " ", props.texts?.seconds) : /* @__PURE__ */ React76.createElement("div", { className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground" }, /* @__PURE__ */ React76.createElement("span", null, props.texts?.didntGetCode ?? "Didn't get the code?"), " ", /* @__PURE__ */ React76.createElement(
|
|
8913
|
+
"span",
|
|
8914
|
+
{
|
|
8915
|
+
className: "clickable-link",
|
|
8916
|
+
onClick: () => {
|
|
8917
|
+
startResendTimer();
|
|
8918
|
+
props.handleResend();
|
|
8919
|
+
}
|
|
8920
|
+
},
|
|
8921
|
+
props.texts?.resendCode || "Click to resend"
|
|
8922
|
+
)),
|
|
8923
|
+
/* @__PURE__ */ React76.createElement("div", { className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2" }, /* @__PURE__ */ React76.createElement(Button, { variant: "secondary" }, props.texts?.cancel || "Cancel"), /* @__PURE__ */ React76.createElement(Button, { isLoading: props.confirmLoading }, props.texts?.confirm || "Confirm"))
|
|
8674
8924
|
)));
|
|
8675
8925
|
};
|
|
8676
8926
|
|
|
8677
8927
|
// components/blocks/feedback/UserReferralSource.tsx
|
|
8678
|
-
import
|
|
8928
|
+
import React77, { useRef as useRef11, useState as useState31 } from "react";
|
|
8679
8929
|
import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
|
|
8680
8930
|
import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
|
|
8681
8931
|
import * as z6 from "zod";
|
|
@@ -8684,7 +8934,7 @@ var UserReferralSource = ({
|
|
|
8684
8934
|
options = [],
|
|
8685
8935
|
...props
|
|
8686
8936
|
}) => {
|
|
8687
|
-
const [closed, setClosed] =
|
|
8937
|
+
const [closed, setClosed] = useState31(false);
|
|
8688
8938
|
const popUpRef = useRef11(null);
|
|
8689
8939
|
const formSchema = z6.object({
|
|
8690
8940
|
source: z6.string({ required_error: props.texts?.pleaseSelectOption }),
|
|
@@ -8697,7 +8947,7 @@ var UserReferralSource = ({
|
|
|
8697
8947
|
"bottom-right": "hawa-right-4",
|
|
8698
8948
|
"bottom-left": "hawa-left-4"
|
|
8699
8949
|
};
|
|
8700
|
-
return /* @__PURE__ */
|
|
8950
|
+
return /* @__PURE__ */ React77.createElement(
|
|
8701
8951
|
"div",
|
|
8702
8952
|
{
|
|
8703
8953
|
className: cn(
|
|
@@ -8706,7 +8956,7 @@ var UserReferralSource = ({
|
|
|
8706
8956
|
),
|
|
8707
8957
|
ref: popUpRef
|
|
8708
8958
|
},
|
|
8709
|
-
/* @__PURE__ */
|
|
8959
|
+
/* @__PURE__ */ React77.createElement(
|
|
8710
8960
|
Card,
|
|
8711
8961
|
{
|
|
8712
8962
|
className: cn(
|
|
@@ -8715,7 +8965,7 @@ var UserReferralSource = ({
|
|
|
8715
8965
|
),
|
|
8716
8966
|
dir: props.direction
|
|
8717
8967
|
},
|
|
8718
|
-
/* @__PURE__ */
|
|
8968
|
+
/* @__PURE__ */ React77.createElement(
|
|
8719
8969
|
"button",
|
|
8720
8970
|
{
|
|
8721
8971
|
type: "button",
|
|
@@ -8734,7 +8984,7 @@ var UserReferralSource = ({
|
|
|
8734
8984
|
}, 200);
|
|
8735
8985
|
}
|
|
8736
8986
|
},
|
|
8737
|
-
/* @__PURE__ */
|
|
8987
|
+
/* @__PURE__ */ React77.createElement(
|
|
8738
8988
|
"svg",
|
|
8739
8989
|
{
|
|
8740
8990
|
"aria-hidden": "true",
|
|
@@ -8742,7 +8992,7 @@ var UserReferralSource = ({
|
|
|
8742
8992
|
fill: "currentColor",
|
|
8743
8993
|
viewBox: "0 0 20 20"
|
|
8744
8994
|
},
|
|
8745
|
-
/* @__PURE__ */
|
|
8995
|
+
/* @__PURE__ */ React77.createElement(
|
|
8746
8996
|
"path",
|
|
8747
8997
|
{
|
|
8748
8998
|
fillRule: "evenodd",
|
|
@@ -8752,7 +9002,7 @@ var UserReferralSource = ({
|
|
|
8752
9002
|
)
|
|
8753
9003
|
)
|
|
8754
9004
|
),
|
|
8755
|
-
/* @__PURE__ */
|
|
9005
|
+
/* @__PURE__ */ React77.createElement(CardContent, { headless: true }, /* @__PURE__ */ React77.createElement(
|
|
8756
9006
|
"form",
|
|
8757
9007
|
{
|
|
8758
9008
|
noValidate: true,
|
|
@@ -8763,7 +9013,7 @@ var UserReferralSource = ({
|
|
|
8763
9013
|
console.log("onSubmitForm was not provided");
|
|
8764
9014
|
})
|
|
8765
9015
|
},
|
|
8766
|
-
/* @__PURE__ */
|
|
9016
|
+
/* @__PURE__ */ React77.createElement(
|
|
8767
9017
|
"div",
|
|
8768
9018
|
{
|
|
8769
9019
|
className: cn(
|
|
@@ -8771,13 +9021,13 @@ var UserReferralSource = ({
|
|
|
8771
9021
|
closed ? "hawa-opacity-0" : "hawa-opacity-100"
|
|
8772
9022
|
)
|
|
8773
9023
|
},
|
|
8774
|
-
/* @__PURE__ */
|
|
8775
|
-
/* @__PURE__ */
|
|
9024
|
+
/* @__PURE__ */ React77.createElement("div", { className: "hawa-mt-4 hawa-font-bold" }, props.question),
|
|
9025
|
+
/* @__PURE__ */ React77.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded " }, /* @__PURE__ */ React77.createElement(
|
|
8776
9026
|
Controller6,
|
|
8777
9027
|
{
|
|
8778
9028
|
control,
|
|
8779
9029
|
name: "source",
|
|
8780
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9030
|
+
render: ({ field }) => /* @__PURE__ */ React77.createElement(
|
|
8781
9031
|
Radio,
|
|
8782
9032
|
{
|
|
8783
9033
|
direction: props.direction,
|
|
@@ -8790,12 +9040,12 @@ var UserReferralSource = ({
|
|
|
8790
9040
|
)
|
|
8791
9041
|
}
|
|
8792
9042
|
)),
|
|
8793
|
-
/* @__PURE__ */
|
|
9043
|
+
/* @__PURE__ */ React77.createElement("div", null, /* @__PURE__ */ React77.createElement(
|
|
8794
9044
|
Controller6,
|
|
8795
9045
|
{
|
|
8796
9046
|
control,
|
|
8797
9047
|
name: "feedback",
|
|
8798
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9048
|
+
render: ({ field }) => /* @__PURE__ */ React77.createElement(
|
|
8799
9049
|
Textarea,
|
|
8800
9050
|
{
|
|
8801
9051
|
...field,
|
|
@@ -8805,29 +9055,29 @@ var UserReferralSource = ({
|
|
|
8805
9055
|
}
|
|
8806
9056
|
))
|
|
8807
9057
|
),
|
|
8808
|
-
/* @__PURE__ */
|
|
9058
|
+
/* @__PURE__ */ React77.createElement(Button, { type: "submit", className: "hawa-mt-4 hawa-w-full" }, props.texts?.submit || "Submit")
|
|
8809
9059
|
))
|
|
8810
9060
|
)
|
|
8811
9061
|
);
|
|
8812
9062
|
};
|
|
8813
9063
|
|
|
8814
9064
|
// components/blocks/feedback/FeedbackRating.tsx
|
|
8815
|
-
import
|
|
9065
|
+
import React78, { useEffect as useEffect22, useRef as useRef12, useState as useState32 } from "react";
|
|
8816
9066
|
import clsx11 from "clsx";
|
|
8817
9067
|
var FeedbackRating = ({
|
|
8818
9068
|
position = "bottom-right",
|
|
8819
9069
|
...props
|
|
8820
9070
|
}) => {
|
|
8821
|
-
const [closed, setClosed] =
|
|
8822
|
-
const [answered, setAnswered] =
|
|
8823
|
-
const [clickedOption, setClickedOption] =
|
|
8824
|
-
const [closingTimer, setClosingTimer] =
|
|
9071
|
+
const [closed, setClosed] = useState32(false);
|
|
9072
|
+
const [answered, setAnswered] = useState32(false);
|
|
9073
|
+
const [clickedOption, setClickedOption] = useState32(null);
|
|
9074
|
+
const [closingTimer, setClosingTimer] = useState32(5);
|
|
8825
9075
|
const popUpRef = useRef12(null);
|
|
8826
9076
|
const boxPosition = {
|
|
8827
9077
|
"bottom-right": "hawa-right-4",
|
|
8828
9078
|
"bottom-left": "hawa-left-4"
|
|
8829
9079
|
};
|
|
8830
|
-
|
|
9080
|
+
useEffect22(() => {
|
|
8831
9081
|
const timeoutHide = setTimeout(() => {
|
|
8832
9082
|
if (closingTimer >= 0) {
|
|
8833
9083
|
setClosingTimer(closingTimer - 1);
|
|
@@ -8845,7 +9095,7 @@ var FeedbackRating = ({
|
|
|
8845
9095
|
}
|
|
8846
9096
|
}, 200);
|
|
8847
9097
|
};
|
|
8848
|
-
return /* @__PURE__ */
|
|
9098
|
+
return /* @__PURE__ */ React78.createElement(
|
|
8849
9099
|
"div",
|
|
8850
9100
|
{
|
|
8851
9101
|
ref: popUpRef,
|
|
@@ -8854,7 +9104,7 @@ var FeedbackRating = ({
|
|
|
8854
9104
|
boxPosition[position]
|
|
8855
9105
|
)
|
|
8856
9106
|
},
|
|
8857
|
-
/* @__PURE__ */
|
|
9107
|
+
/* @__PURE__ */ React78.createElement(
|
|
8858
9108
|
"div",
|
|
8859
9109
|
{
|
|
8860
9110
|
className: clsx11(
|
|
@@ -8863,8 +9113,8 @@ var FeedbackRating = ({
|
|
|
8863
9113
|
props.banner && "hawa-rounded-none md:hawa-rounded hawa-px-4 md:hawa-px-64"
|
|
8864
9114
|
)
|
|
8865
9115
|
},
|
|
8866
|
-
/* @__PURE__ */
|
|
8867
|
-
/* @__PURE__ */
|
|
9116
|
+
/* @__PURE__ */ React78.createElement("div", { className: "hawa-absolute hawa-left-2 hawa-top-2 hawa-p-1.5 hawa-text-sm" }, props.title),
|
|
9117
|
+
/* @__PURE__ */ React78.createElement(
|
|
8868
9118
|
"button",
|
|
8869
9119
|
{
|
|
8870
9120
|
type: "button",
|
|
@@ -8873,7 +9123,7 @@ var FeedbackRating = ({
|
|
|
8873
9123
|
"aria-label": "Close",
|
|
8874
9124
|
onClick: () => slowClose()
|
|
8875
9125
|
},
|
|
8876
|
-
/* @__PURE__ */
|
|
9126
|
+
/* @__PURE__ */ React78.createElement(
|
|
8877
9127
|
"svg",
|
|
8878
9128
|
{
|
|
8879
9129
|
"aria-hidden": "true",
|
|
@@ -8881,7 +9131,7 @@ var FeedbackRating = ({
|
|
|
8881
9131
|
fill: "currentColor",
|
|
8882
9132
|
viewBox: "0 0 20 20"
|
|
8883
9133
|
},
|
|
8884
|
-
/* @__PURE__ */
|
|
9134
|
+
/* @__PURE__ */ React78.createElement(
|
|
8885
9135
|
"path",
|
|
8886
9136
|
{
|
|
8887
9137
|
fillRule: "evenodd",
|
|
@@ -8891,8 +9141,8 @@ var FeedbackRating = ({
|
|
|
8891
9141
|
)
|
|
8892
9142
|
)
|
|
8893
9143
|
),
|
|
8894
|
-
/* @__PURE__ */
|
|
8895
|
-
/* @__PURE__ */
|
|
9144
|
+
/* @__PURE__ */ React78.createElement("div", { className: "hawa-mt-8" }, props.question),
|
|
9145
|
+
/* @__PURE__ */ React78.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded" }, props.options && props.options.map((op, i) => /* @__PURE__ */ React78.createElement(
|
|
8896
9146
|
"span",
|
|
8897
9147
|
{
|
|
8898
9148
|
key: i,
|
|
@@ -8919,24 +9169,24 @@ var FeedbackRating = ({
|
|
|
8919
9169
|
},
|
|
8920
9170
|
op
|
|
8921
9171
|
))),
|
|
8922
|
-
props.texts && /* @__PURE__ */
|
|
8923
|
-
answered && /* @__PURE__ */
|
|
9172
|
+
props.texts && /* @__PURE__ */ React78.createElement("div", { className: " hawa-flex hawa-flex-row hawa-justify-between hawa-text-xs" }, /* @__PURE__ */ React78.createElement("span", null, props.texts.least), /* @__PURE__ */ React78.createElement("span", null, props.texts.most)),
|
|
9173
|
+
answered && /* @__PURE__ */ React78.createElement("div", { className: "hawa-absolute hawa-left-0 hawa-top-0 hawa-gap-2 hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded hawa-bg-black hawa-bg-opacity-80 hawa-p-4 hawa-text-center hawa-transition-all" }, /* @__PURE__ */ React78.createElement("span", { className: "hawa-font-bold hawa-text-white" }, "Thank you for your answer. This box will disappear in", " " + closingTimer, " seconds"), /* @__PURE__ */ React78.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ React78.createElement(Button, { variant: "secondary", onClick: () => slowClose() }, "Close")))
|
|
8924
9174
|
)
|
|
8925
9175
|
);
|
|
8926
9176
|
};
|
|
8927
9177
|
|
|
8928
9178
|
// components/blocks/feedback/FeedbackEmoji.tsx
|
|
8929
|
-
import
|
|
9179
|
+
import React79, { useState as useState33 } from "react";
|
|
8930
9180
|
var FeedbackEmoji = (props) => {
|
|
8931
|
-
const [selectedEmoji, setSelectedEmoji] =
|
|
8932
|
-
const [loadingSubmit, setLoadingSubmit] =
|
|
8933
|
-
const [feedbackText, setFeedbackText] =
|
|
8934
|
-
const [helperText, setHelperText] =
|
|
9181
|
+
const [selectedEmoji, setSelectedEmoji] = useState33(null);
|
|
9182
|
+
const [loadingSubmit, setLoadingSubmit] = useState33(false);
|
|
9183
|
+
const [feedbackText, setFeedbackText] = useState33("");
|
|
9184
|
+
const [helperText, setHelperText] = useState33(false);
|
|
8935
9185
|
let emojis = [
|
|
8936
|
-
{ icon: /* @__PURE__ */
|
|
8937
|
-
{ icon: /* @__PURE__ */
|
|
8938
|
-
{ icon: /* @__PURE__ */
|
|
8939
|
-
{ icon: /* @__PURE__ */
|
|
9186
|
+
{ icon: /* @__PURE__ */ React79.createElement(VeryGoodEmoji, null), value: "very-good" },
|
|
9187
|
+
{ icon: /* @__PURE__ */ React79.createElement(GoodEmoji, null), value: "good" },
|
|
9188
|
+
{ icon: /* @__PURE__ */ React79.createElement(BadEmoji, null), value: "bad" },
|
|
9189
|
+
{ icon: /* @__PURE__ */ React79.createElement(VeryBadEmoji, null), value: "very-bad" }
|
|
8940
9190
|
];
|
|
8941
9191
|
const onFeedbackSubmit = async () => {
|
|
8942
9192
|
if (feedbackText) {
|
|
@@ -8956,7 +9206,7 @@ var FeedbackEmoji = (props) => {
|
|
|
8956
9206
|
setHelperText(true);
|
|
8957
9207
|
}
|
|
8958
9208
|
};
|
|
8959
|
-
return /* @__PURE__ */
|
|
9209
|
+
return /* @__PURE__ */ React79.createElement(
|
|
8960
9210
|
"div",
|
|
8961
9211
|
{
|
|
8962
9212
|
className: cn(
|
|
@@ -8964,7 +9214,7 @@ var FeedbackEmoji = (props) => {
|
|
|
8964
9214
|
selectedEmoji ? "hawa-h-[185px] hawa-min-w-fit" : "hawa-h-[44px] "
|
|
8965
9215
|
)
|
|
8966
9216
|
},
|
|
8967
|
-
/* @__PURE__ */
|
|
9217
|
+
/* @__PURE__ */ React79.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 " }, /* @__PURE__ */ React79.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-0.5 " }, emojis.map((emoji, i) => /* @__PURE__ */ React79.createElement(
|
|
8968
9218
|
Button,
|
|
8969
9219
|
{
|
|
8970
9220
|
key: i,
|
|
@@ -8983,7 +9233,7 @@ var FeedbackEmoji = (props) => {
|
|
|
8983
9233
|
},
|
|
8984
9234
|
emoji.icon
|
|
8985
9235
|
)))),
|
|
8986
|
-
/* @__PURE__ */
|
|
9236
|
+
/* @__PURE__ */ React79.createElement(
|
|
8987
9237
|
"div",
|
|
8988
9238
|
{
|
|
8989
9239
|
className: cn(
|
|
@@ -8991,7 +9241,7 @@ var FeedbackEmoji = (props) => {
|
|
|
8991
9241
|
selectedEmoji ? "hawa-visible hawa-opacity-100" : "hawa-invisible hawa-opacity-0 "
|
|
8992
9242
|
)
|
|
8993
9243
|
},
|
|
8994
|
-
props.showSuccess ? /* @__PURE__ */
|
|
9244
|
+
props.showSuccess ? /* @__PURE__ */ React79.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2 hawa-pt-4" }, /* @__PURE__ */ React79.createElement("div", { className: "hawa-rounded hawa-bg-primary hawa-p-2 hawa-text-primary-foreground" }, /* @__PURE__ */ React79.createElement(
|
|
8995
9245
|
"svg",
|
|
8996
9246
|
{
|
|
8997
9247
|
stroke: "currentColor",
|
|
@@ -9001,13 +9251,13 @@ var FeedbackEmoji = (props) => {
|
|
|
9001
9251
|
height: "0.5em",
|
|
9002
9252
|
width: "0.5em"
|
|
9003
9253
|
},
|
|
9004
|
-
/* @__PURE__ */
|
|
9005
|
-
)), /* @__PURE__ */
|
|
9254
|
+
/* @__PURE__ */ React79.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
|
9255
|
+
)), /* @__PURE__ */ React79.createElement("div", { className: "hawa-text-sm hawa-flex hawa-flex-col hawa-text-center" }, /* @__PURE__ */ React79.createElement("span", null, "Your feedback has been received!"), /* @__PURE__ */ React79.createElement("span", null, "Thank you for your help"))) : /* @__PURE__ */ React79.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React79.createElement(
|
|
9006
9256
|
Popover,
|
|
9007
9257
|
{
|
|
9008
9258
|
className: "hawa-select-none hawa-p-1 hawa-text-xs ",
|
|
9009
9259
|
open: helperText,
|
|
9010
|
-
trigger: /* @__PURE__ */
|
|
9260
|
+
trigger: /* @__PURE__ */ React79.createElement(
|
|
9011
9261
|
Textarea,
|
|
9012
9262
|
{
|
|
9013
9263
|
className: cn("hawa-mb-2 hawa-h-full hawa-resize-none"),
|
|
@@ -9021,9 +9271,9 @@ var FeedbackEmoji = (props) => {
|
|
|
9021
9271
|
}
|
|
9022
9272
|
)
|
|
9023
9273
|
},
|
|
9024
|
-
/* @__PURE__ */
|
|
9274
|
+
/* @__PURE__ */ React79.createElement("span", { className: "hawa-m-2" }, "Please enter your feedback"),
|
|
9025
9275
|
" "
|
|
9026
|
-
), /* @__PURE__ */
|
|
9276
|
+
), /* @__PURE__ */ React79.createElement(
|
|
9027
9277
|
Button,
|
|
9028
9278
|
{
|
|
9029
9279
|
isLoading: loadingSubmit,
|
|
@@ -9036,7 +9286,7 @@ var FeedbackEmoji = (props) => {
|
|
|
9036
9286
|
)
|
|
9037
9287
|
);
|
|
9038
9288
|
};
|
|
9039
|
-
var VeryGoodEmoji = () => /* @__PURE__ */
|
|
9289
|
+
var VeryGoodEmoji = () => /* @__PURE__ */ React79.createElement(
|
|
9040
9290
|
"svg",
|
|
9041
9291
|
{
|
|
9042
9292
|
fill: "none",
|
|
@@ -9045,7 +9295,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ React78.createElement(
|
|
|
9045
9295
|
width: "16",
|
|
9046
9296
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9047
9297
|
},
|
|
9048
|
-
/* @__PURE__ */
|
|
9298
|
+
/* @__PURE__ */ React79.createElement("g", { clipPath: "url(#clip0_53_166)" }, /* @__PURE__ */ React79.createElement(
|
|
9049
9299
|
"path",
|
|
9050
9300
|
{
|
|
9051
9301
|
clipRule: "evenodd",
|
|
@@ -9053,7 +9303,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ React78.createElement(
|
|
|
9053
9303
|
fill: "currentColor",
|
|
9054
9304
|
fillRule: "evenodd"
|
|
9055
9305
|
}
|
|
9056
|
-
), /* @__PURE__ */
|
|
9306
|
+
), /* @__PURE__ */ React79.createElement(
|
|
9057
9307
|
"path",
|
|
9058
9308
|
{
|
|
9059
9309
|
clipRule: "evenodd",
|
|
@@ -9063,7 +9313,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ React78.createElement(
|
|
|
9063
9313
|
}
|
|
9064
9314
|
))
|
|
9065
9315
|
);
|
|
9066
|
-
var GoodEmoji = () => /* @__PURE__ */
|
|
9316
|
+
var GoodEmoji = () => /* @__PURE__ */ React79.createElement(
|
|
9067
9317
|
"svg",
|
|
9068
9318
|
{
|
|
9069
9319
|
fill: "none",
|
|
@@ -9072,7 +9322,7 @@ var GoodEmoji = () => /* @__PURE__ */ React78.createElement(
|
|
|
9072
9322
|
width: "16",
|
|
9073
9323
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9074
9324
|
},
|
|
9075
|
-
/* @__PURE__ */
|
|
9325
|
+
/* @__PURE__ */ React79.createElement("g", { clipPath: "url(#clip0_53_167)" }, /* @__PURE__ */ React79.createElement(
|
|
9076
9326
|
"path",
|
|
9077
9327
|
{
|
|
9078
9328
|
clipRule: "evenodd",
|
|
@@ -9082,7 +9332,7 @@ var GoodEmoji = () => /* @__PURE__ */ React78.createElement(
|
|
|
9082
9332
|
}
|
|
9083
9333
|
))
|
|
9084
9334
|
);
|
|
9085
|
-
var BadEmoji = () => /* @__PURE__ */
|
|
9335
|
+
var BadEmoji = () => /* @__PURE__ */ React79.createElement(
|
|
9086
9336
|
"svg",
|
|
9087
9337
|
{
|
|
9088
9338
|
fill: "none",
|
|
@@ -9091,7 +9341,7 @@ var BadEmoji = () => /* @__PURE__ */ React78.createElement(
|
|
|
9091
9341
|
width: "16",
|
|
9092
9342
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9093
9343
|
},
|
|
9094
|
-
/* @__PURE__ */
|
|
9344
|
+
/* @__PURE__ */ React79.createElement("g", { clipPath: "url(#clip0_53_152)" }, /* @__PURE__ */ React79.createElement(
|
|
9095
9345
|
"path",
|
|
9096
9346
|
{
|
|
9097
9347
|
clipRule: "evenodd",
|
|
@@ -9101,7 +9351,7 @@ var BadEmoji = () => /* @__PURE__ */ React78.createElement(
|
|
|
9101
9351
|
}
|
|
9102
9352
|
))
|
|
9103
9353
|
);
|
|
9104
|
-
var VeryBadEmoji = () => /* @__PURE__ */
|
|
9354
|
+
var VeryBadEmoji = () => /* @__PURE__ */ React79.createElement(
|
|
9105
9355
|
"svg",
|
|
9106
9356
|
{
|
|
9107
9357
|
fill: "none",
|
|
@@ -9110,13 +9360,13 @@ var VeryBadEmoji = () => /* @__PURE__ */ React78.createElement(
|
|
|
9110
9360
|
width: "16",
|
|
9111
9361
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9112
9362
|
},
|
|
9113
|
-
/* @__PURE__ */
|
|
9363
|
+
/* @__PURE__ */ React79.createElement("g", { clipPath: "url(#clip0_53_151)" }, /* @__PURE__ */ React79.createElement(
|
|
9114
9364
|
"path",
|
|
9115
9365
|
{
|
|
9116
9366
|
d: "M11.841 12.0225C12.7197 12.9324 12.7197 14.4077 11.841 15.3176C10.9623 16.2275 9.53769 16.2275 8.65901 15.3176C7.78033 14.4077 7.78033 12.9324 8.65901 12.0225L10.25 10.375L11.841 12.0225Z",
|
|
9117
9367
|
fill: "#0070F3"
|
|
9118
9368
|
}
|
|
9119
|
-
), /* @__PURE__ */
|
|
9369
|
+
), /* @__PURE__ */ React79.createElement(
|
|
9120
9370
|
"path",
|
|
9121
9371
|
{
|
|
9122
9372
|
clipRule: "evenodd",
|
|
@@ -9128,7 +9378,7 @@ var VeryBadEmoji = () => /* @__PURE__ */ React78.createElement(
|
|
|
9128
9378
|
);
|
|
9129
9379
|
|
|
9130
9380
|
// components/blocks/feedback/FeedbackForm.tsx
|
|
9131
|
-
import
|
|
9381
|
+
import React80 from "react";
|
|
9132
9382
|
import { useForm as useForm7, Controller as Controller7 } from "react-hook-form";
|
|
9133
9383
|
import { zodResolver as zodResolver7 } from "@hookform/resolvers/zod";
|
|
9134
9384
|
import * as z7 from "zod";
|
|
@@ -9140,7 +9390,7 @@ var FeedbackForm = (props) => {
|
|
|
9140
9390
|
const { handleSubmit, control, formState } = useForm7({
|
|
9141
9391
|
resolver: zodResolver7(formSchema)
|
|
9142
9392
|
});
|
|
9143
|
-
return /* @__PURE__ */
|
|
9393
|
+
return /* @__PURE__ */ React80.createElement(Card, null, /* @__PURE__ */ React80.createElement(CardContent, { headless: true }, /* @__PURE__ */ React80.createElement(
|
|
9144
9394
|
"form",
|
|
9145
9395
|
{
|
|
9146
9396
|
noValidate: true,
|
|
@@ -9153,13 +9403,13 @@ var FeedbackForm = (props) => {
|
|
|
9153
9403
|
}),
|
|
9154
9404
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
9155
9405
|
},
|
|
9156
|
-
/* @__PURE__ */
|
|
9157
|
-
/* @__PURE__ */
|
|
9406
|
+
/* @__PURE__ */ React80.createElement(Label2, null, props.texts?.requestType),
|
|
9407
|
+
/* @__PURE__ */ React80.createElement(
|
|
9158
9408
|
Controller7,
|
|
9159
9409
|
{
|
|
9160
9410
|
name: "requestType",
|
|
9161
9411
|
control,
|
|
9162
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9412
|
+
render: ({ field }) => /* @__PURE__ */ React80.createElement(
|
|
9163
9413
|
Select,
|
|
9164
9414
|
{
|
|
9165
9415
|
...field,
|
|
@@ -9170,13 +9420,13 @@ var FeedbackForm = (props) => {
|
|
|
9170
9420
|
)
|
|
9171
9421
|
}
|
|
9172
9422
|
),
|
|
9173
|
-
/* @__PURE__ */
|
|
9174
|
-
/* @__PURE__ */
|
|
9423
|
+
/* @__PURE__ */ React80.createElement(Label2, null, props.texts.description),
|
|
9424
|
+
/* @__PURE__ */ React80.createElement(
|
|
9175
9425
|
Controller7,
|
|
9176
9426
|
{
|
|
9177
9427
|
name: "description",
|
|
9178
9428
|
control,
|
|
9179
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9429
|
+
render: ({ field }) => /* @__PURE__ */ React80.createElement(
|
|
9180
9430
|
Textarea,
|
|
9181
9431
|
{
|
|
9182
9432
|
...field,
|
|
@@ -9185,14 +9435,14 @@ var FeedbackForm = (props) => {
|
|
|
9185
9435
|
)
|
|
9186
9436
|
}
|
|
9187
9437
|
),
|
|
9188
|
-
/* @__PURE__ */
|
|
9438
|
+
/* @__PURE__ */ React80.createElement(Button, { type: "submit" }, props.texts?.submit)
|
|
9189
9439
|
)));
|
|
9190
9440
|
};
|
|
9191
9441
|
|
|
9192
9442
|
// components/blocks/misc/LegalTexts.tsx
|
|
9193
|
-
import
|
|
9443
|
+
import React81 from "react";
|
|
9194
9444
|
var LegalTexts = ({ tabs, ...props }) => {
|
|
9195
|
-
return /* @__PURE__ */
|
|
9445
|
+
return /* @__PURE__ */ React81.createElement(
|
|
9196
9446
|
Tabs,
|
|
9197
9447
|
{
|
|
9198
9448
|
value: props.activeTab,
|
|
@@ -9200,8 +9450,8 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
|
9200
9450
|
defaultValue: props.defaultTab || tabs[0].value,
|
|
9201
9451
|
dir: props.direction
|
|
9202
9452
|
},
|
|
9203
|
-
/* @__PURE__ */
|
|
9204
|
-
tabs.map((tab, index) => /* @__PURE__ */
|
|
9453
|
+
/* @__PURE__ */ React81.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ React81.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
|
|
9454
|
+
tabs.map((tab, index) => /* @__PURE__ */ React81.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ React81.createElement(
|
|
9205
9455
|
ScrollArea,
|
|
9206
9456
|
{
|
|
9207
9457
|
className: cn(
|
|
@@ -9215,9 +9465,9 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
|
9215
9465
|
};
|
|
9216
9466
|
|
|
9217
9467
|
// components/blocks/misc/EmptyState.tsx
|
|
9218
|
-
import
|
|
9468
|
+
import React82 from "react";
|
|
9219
9469
|
var EmptyState = ({ texts, onActionClick }) => {
|
|
9220
|
-
return /* @__PURE__ */
|
|
9470
|
+
return /* @__PURE__ */ React82.createElement(Card, null, /* @__PURE__ */ React82.createElement(CardContent, { headless: true }, /* @__PURE__ */ React82.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center " }, /* @__PURE__ */ React82.createElement("div", { className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ React82.createElement(
|
|
9221
9471
|
"svg",
|
|
9222
9472
|
{
|
|
9223
9473
|
stroke: "currentColor",
|
|
@@ -9227,30 +9477,30 @@ var EmptyState = ({ texts, onActionClick }) => {
|
|
|
9227
9477
|
height: "0.35em",
|
|
9228
9478
|
width: "0.35em"
|
|
9229
9479
|
},
|
|
9230
|
-
/* @__PURE__ */
|
|
9231
|
-
)), /* @__PURE__ */
|
|
9480
|
+
/* @__PURE__ */ React82.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
|
9481
|
+
)), /* @__PURE__ */ React82.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, texts?.youreCaughtUp ?? "You're all caught up"))), /* @__PURE__ */ React82.createElement(CardFooter, null, /* @__PURE__ */ React82.createElement(Button, { className: "hawa-w-full", onClick: () => onActionClick() }, texts?.actionText ?? "Go Home")));
|
|
9232
9482
|
};
|
|
9233
9483
|
|
|
9234
9484
|
// components/blocks/misc/Testimonial.tsx
|
|
9235
|
-
import
|
|
9485
|
+
import React83 from "react";
|
|
9236
9486
|
var Testimonial = (props) => {
|
|
9237
|
-
return /* @__PURE__ */
|
|
9487
|
+
return /* @__PURE__ */ React83.createElement(Card, null, /* @__PURE__ */ React83.createElement(CardContent, { headless: true }, /* @__PURE__ */ React83.createElement("div", null, /* @__PURE__ */ React83.createElement("p", { className: "mb-4 max-w-sm" }, "The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless.")), /* @__PURE__ */ React83.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ React83.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ React83.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ React83.createElement(
|
|
9238
9488
|
"path",
|
|
9239
9489
|
{
|
|
9240
9490
|
d: "M14.1412 22.4427L17.5803 16.5199C17.7671 16.1981 18.1112 16 18.4834 16H20.8581C21.653 16 22.1565 16.8528 21.7725 17.5488L19.3042 22.0225C19.2202 22.1747 19.1762 22.3458 19.1762 22.5196C19.1762 23.0879 19.6369 23.5486 20.2052 23.5486H21.5827C22.1594 23.5486 22.627 24.0162 22.627 24.5929V31.347C22.627 31.9237 22.1594 32.3913 21.5827 32.3913H15.0443C14.4676 32.3913 14 31.9237 14 31.347V22.9671C14 22.7829 14.0487 22.602 14.1412 22.4427Z",
|
|
9241
9491
|
fill: "#FFFFFF"
|
|
9242
9492
|
}
|
|
9243
|
-
), /* @__PURE__ */
|
|
9493
|
+
), /* @__PURE__ */ React83.createElement(
|
|
9244
9494
|
"path",
|
|
9245
9495
|
{
|
|
9246
9496
|
d: "M25.356 22.4427L28.7951 16.5199C28.982 16.1981 29.326 16 29.6982 16H32.0729C32.8679 16 33.3713 16.8528 32.9873 17.5488L30.5191 22.0225C30.4351 22.1747 30.391 22.3458 30.391 22.5196C30.391 23.0879 30.8518 23.5486 31.4201 23.5486H32.7975C33.3743 23.5486 33.8418 24.0162 33.8418 24.5929V31.347C33.8418 31.9237 33.3743 32.3913 32.7975 32.3913H26.2592C25.6824 32.3913 25.2148 31.9237 25.2148 31.347V22.9671C25.2148 22.7829 25.2636 22.602 25.356 22.4427Z",
|
|
9247
9497
|
fill: "#FFFFFF"
|
|
9248
9498
|
}
|
|
9249
|
-
)), /* @__PURE__ */
|
|
9499
|
+
)), /* @__PURE__ */ React83.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ React83.createElement("div", null, /* @__PURE__ */ React83.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ React83.createElement("div", null, " Chief Information Security Officer")))));
|
|
9250
9500
|
};
|
|
9251
9501
|
|
|
9252
9502
|
// components/blocks/misc/LeadGenerator.tsx
|
|
9253
|
-
import
|
|
9503
|
+
import React84 from "react";
|
|
9254
9504
|
import { useForm as useForm8, Controller as Controller8 } from "react-hook-form";
|
|
9255
9505
|
var LeadGenerator = ({ texts, submitHandler }) => {
|
|
9256
9506
|
const { handleSubmit, control, formState } = useForm8();
|
|
@@ -9261,14 +9511,14 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
|
9261
9511
|
console.log("handleNewsletterSub props was not provided");
|
|
9262
9512
|
}
|
|
9263
9513
|
};
|
|
9264
|
-
return /* @__PURE__ */
|
|
9514
|
+
return /* @__PURE__ */ React84.createElement(Card, null, /* @__PURE__ */ React84.createElement(CardHeader, null, /* @__PURE__ */ React84.createElement(CardTitle, null, texts?.title), /* @__PURE__ */ React84.createElement(CardDescription, null, texts?.subtitle)), /* @__PURE__ */ React84.createElement(CardContent, null, /* @__PURE__ */ React84.createElement(
|
|
9265
9515
|
"form",
|
|
9266
9516
|
{
|
|
9267
9517
|
noValidate: true,
|
|
9268
9518
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
|
9269
9519
|
onSubmit: handleSubmit(onSubmit)
|
|
9270
9520
|
},
|
|
9271
|
-
/* @__PURE__ */
|
|
9521
|
+
/* @__PURE__ */ React84.createElement(
|
|
9272
9522
|
Controller8,
|
|
9273
9523
|
{
|
|
9274
9524
|
name: "email",
|
|
@@ -9281,27 +9531,27 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
|
9281
9531
|
}
|
|
9282
9532
|
},
|
|
9283
9533
|
defaultValue: "",
|
|
9284
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9534
|
+
render: ({ field }) => /* @__PURE__ */ React84.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
|
|
9285
9535
|
}
|
|
9286
9536
|
),
|
|
9287
|
-
/* @__PURE__ */
|
|
9537
|
+
/* @__PURE__ */ React84.createElement(Button, { type: "submit", disabled: !formState.isValid }, texts?.submit ?? "Submit")
|
|
9288
9538
|
)));
|
|
9289
9539
|
};
|
|
9290
9540
|
|
|
9291
9541
|
// components/blocks/misc/Announcement.tsx
|
|
9292
|
-
import
|
|
9542
|
+
import React85 from "react";
|
|
9293
9543
|
var Announcement = ({
|
|
9294
9544
|
onActionClick,
|
|
9295
9545
|
...props
|
|
9296
9546
|
}) => {
|
|
9297
|
-
return /* @__PURE__ */
|
|
9547
|
+
return /* @__PURE__ */ React85.createElement(Card, null, /* @__PURE__ */ React85.createElement(
|
|
9298
9548
|
CardContent,
|
|
9299
9549
|
{
|
|
9300
9550
|
headless: true,
|
|
9301
9551
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
|
9302
9552
|
},
|
|
9303
|
-
/* @__PURE__ */
|
|
9304
|
-
/* @__PURE__ */
|
|
9553
|
+
/* @__PURE__ */ React85.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center " }, /* @__PURE__ */ React85.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ React85.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
|
|
9554
|
+
/* @__PURE__ */ React85.createElement(
|
|
9305
9555
|
Button,
|
|
9306
9556
|
{
|
|
9307
9557
|
onClick: () => onActionClick(),
|
|
@@ -9313,18 +9563,18 @@ var Announcement = ({
|
|
|
9313
9563
|
};
|
|
9314
9564
|
|
|
9315
9565
|
// components/blocks/misc/NotFound.tsx
|
|
9316
|
-
import
|
|
9566
|
+
import React86 from "react";
|
|
9317
9567
|
var NotFound = ({
|
|
9318
9568
|
variant = "contained",
|
|
9319
9569
|
texts
|
|
9320
9570
|
}) => {
|
|
9321
|
-
return /* @__PURE__ */
|
|
9571
|
+
return /* @__PURE__ */ React86.createElement(Card, null, /* @__PURE__ */ React86.createElement(CardContent, { headless: true }, /* @__PURE__ */ React86.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white" }, /* @__PURE__ */ React86.createElement("div", { className: "hawa-text-center hawa-text-6xl hawa-font-bold " }, "404"), /* @__PURE__ */ React86.createElement("div", { className: "hawa-m-2 hawa-text-center hawa-text-xl hawa-font-bold " }, texts?.pageNotFound ?? "Page Not Found"), /* @__PURE__ */ React86.createElement("div", { className: "hawa-mb-4 hawa-text-center" }, texts?.ifLost ?? /* @__PURE__ */ React86.createElement(React86.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ React86.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ React86.createElement(Button, { className: "hawa-w-full" }, texts?.home ?? "Home"))));
|
|
9322
9572
|
};
|
|
9323
9573
|
|
|
9324
9574
|
// components/blocks/misc/NoPermission.tsx
|
|
9325
|
-
import
|
|
9575
|
+
import React87 from "react";
|
|
9326
9576
|
var NoPermission = ({ texts }) => {
|
|
9327
|
-
return /* @__PURE__ */
|
|
9577
|
+
return /* @__PURE__ */ React87.createElement(Card, null, /* @__PURE__ */ React87.createElement(CardContent, { headless: true }, /* @__PURE__ */ React87.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ React87.createElement("div", { className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ React87.createElement(
|
|
9328
9578
|
"svg",
|
|
9329
9579
|
{
|
|
9330
9580
|
stroke: "currentColor",
|
|
@@ -9334,14 +9584,14 @@ var NoPermission = ({ texts }) => {
|
|
|
9334
9584
|
height: "0.35em",
|
|
9335
9585
|
width: "0.35em"
|
|
9336
9586
|
},
|
|
9337
|
-
/* @__PURE__ */
|
|
9338
|
-
), " "), /* @__PURE__ */
|
|
9587
|
+
/* @__PURE__ */ React87.createElement("path", { d: "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z" })
|
|
9588
|
+
), " "), /* @__PURE__ */ React87.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, texts?.title ?? "You don't have permission"), /* @__PURE__ */ React87.createElement("div", null, texts?.subtitle ?? "If you think this is a problem please contact your administrator or our customer support"))));
|
|
9339
9589
|
};
|
|
9340
9590
|
|
|
9341
9591
|
// components/blocks/pricing/PricingPlans.tsx
|
|
9342
|
-
import
|
|
9592
|
+
import React88 from "react";
|
|
9343
9593
|
var PricingPlans = (props) => {
|
|
9344
|
-
return /* @__PURE__ */
|
|
9594
|
+
return /* @__PURE__ */ React88.createElement("div", null, /* @__PURE__ */ React88.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ React88.createElement(
|
|
9345
9595
|
Radio,
|
|
9346
9596
|
{
|
|
9347
9597
|
design: "tabs",
|
|
@@ -9353,7 +9603,7 @@ var PricingPlans = (props) => {
|
|
|
9353
9603
|
}
|
|
9354
9604
|
}
|
|
9355
9605
|
}
|
|
9356
|
-
), /* @__PURE__ */
|
|
9606
|
+
), /* @__PURE__ */ React88.createElement(
|
|
9357
9607
|
Radio,
|
|
9358
9608
|
{
|
|
9359
9609
|
design: "tabs",
|
|
@@ -9365,8 +9615,8 @@ var PricingPlans = (props) => {
|
|
|
9365
9615
|
}
|
|
9366
9616
|
}
|
|
9367
9617
|
}
|
|
9368
|
-
)), /* @__PURE__ */
|
|
9369
|
-
return /* @__PURE__ */
|
|
9618
|
+
)), /* @__PURE__ */ React88.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.plans.map((plan, index) => {
|
|
9619
|
+
return /* @__PURE__ */ React88.createElement(
|
|
9370
9620
|
PricingCard,
|
|
9371
9621
|
{
|
|
9372
9622
|
key: index,
|
|
@@ -9392,8 +9642,8 @@ var PricingPlans = (props) => {
|
|
|
9392
9642
|
};
|
|
9393
9643
|
|
|
9394
9644
|
// components/blocks/pricing/ComparingPlans.tsx
|
|
9395
|
-
import
|
|
9396
|
-
var CheckMark = () => /* @__PURE__ */
|
|
9645
|
+
import React89, { useState as useState34 } from "react";
|
|
9646
|
+
var CheckMark = () => /* @__PURE__ */ React89.createElement(
|
|
9397
9647
|
"svg",
|
|
9398
9648
|
{
|
|
9399
9649
|
className: "hawa-h-5 hawa-w-5 hawa-text-green-500",
|
|
@@ -9401,7 +9651,7 @@ var CheckMark = () => /* @__PURE__ */ React88.createElement(
|
|
|
9401
9651
|
fill: "currentColor",
|
|
9402
9652
|
viewBox: "0 0 20 20"
|
|
9403
9653
|
},
|
|
9404
|
-
/* @__PURE__ */
|
|
9654
|
+
/* @__PURE__ */ React89.createElement(
|
|
9405
9655
|
"path",
|
|
9406
9656
|
{
|
|
9407
9657
|
fillRule: "evenodd",
|
|
@@ -9410,7 +9660,7 @@ var CheckMark = () => /* @__PURE__ */ React88.createElement(
|
|
|
9410
9660
|
}
|
|
9411
9661
|
)
|
|
9412
9662
|
);
|
|
9413
|
-
var UncheckMark = () => /* @__PURE__ */
|
|
9663
|
+
var UncheckMark = () => /* @__PURE__ */ React89.createElement(
|
|
9414
9664
|
"svg",
|
|
9415
9665
|
{
|
|
9416
9666
|
className: "hawa-h-5 hawa-w-5 hawa-text-red-500",
|
|
@@ -9418,7 +9668,7 @@ var UncheckMark = () => /* @__PURE__ */ React88.createElement(
|
|
|
9418
9668
|
fill: "currentColor",
|
|
9419
9669
|
viewBox: "0 0 20 20"
|
|
9420
9670
|
},
|
|
9421
|
-
/* @__PURE__ */
|
|
9671
|
+
/* @__PURE__ */ React89.createElement(
|
|
9422
9672
|
"path",
|
|
9423
9673
|
{
|
|
9424
9674
|
fillRule: "evenodd",
|
|
@@ -9428,9 +9678,9 @@ var UncheckMark = () => /* @__PURE__ */ React88.createElement(
|
|
|
9428
9678
|
)
|
|
9429
9679
|
);
|
|
9430
9680
|
var ComparingPlans = (props) => {
|
|
9431
|
-
const [currentCurrency, setCurrentCurrency] =
|
|
9432
|
-
const [currentCycle, setCurrentCycle] =
|
|
9433
|
-
return /* @__PURE__ */
|
|
9681
|
+
const [currentCurrency, setCurrentCurrency] = useState34("sar");
|
|
9682
|
+
const [currentCycle, setCurrentCycle] = useState34("month");
|
|
9683
|
+
return /* @__PURE__ */ React89.createElement("div", { id: "detailed-pricing", className: "hawa-w-full hawa-overflow-x-auto" }, /* @__PURE__ */ React89.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ React89.createElement(
|
|
9434
9684
|
Radio,
|
|
9435
9685
|
{
|
|
9436
9686
|
design: "tabs",
|
|
@@ -9444,7 +9694,7 @@ var ComparingPlans = (props) => {
|
|
|
9444
9694
|
}
|
|
9445
9695
|
}
|
|
9446
9696
|
}
|
|
9447
|
-
), /* @__PURE__ */
|
|
9697
|
+
), /* @__PURE__ */ React89.createElement(
|
|
9448
9698
|
Radio,
|
|
9449
9699
|
{
|
|
9450
9700
|
design: "tabs",
|
|
@@ -9458,15 +9708,15 @@ var ComparingPlans = (props) => {
|
|
|
9458
9708
|
}
|
|
9459
9709
|
}
|
|
9460
9710
|
}
|
|
9461
|
-
)), /* @__PURE__ */
|
|
9711
|
+
)), /* @__PURE__ */ React89.createElement("div", { className: " hawa-overflow-hidden hawa-rounded" }, /* @__PURE__ */ React89.createElement("div", { className: "hawa-grid hawa-grid-cols-4 hawa-gap-x-2 hawa-border-b hawa-border-t hawa-border-gray-200 hawa-bg-gray-100 hawa-p-4 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-border-gray-700 dark:hawa-bg-gray-800 dark:hawa-text-white" }, /* @__PURE__ */ React89.createElement("div", { className: "hawa-flex hawa-items-center" }), props.plans.map((plan, i) => /* @__PURE__ */ React89.createElement("div", { key: i }, /* @__PURE__ */ React89.createElement("h5", { className: "hawa-text-md hawa-font-bold hawa-text-gray-500 dark:hawa-text-gray-400" }, plan.texts.title), /* @__PURE__ */ React89.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-gray-900 dark:hawa-text-white" }, /* @__PURE__ */ React89.createElement(React89.Fragment, null, /* @__PURE__ */ React89.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, plan.price), /* @__PURE__ */ React89.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ React89.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal hawa-text-gray-500 dark:hawa-text-gray-400" }, "/ ", plan.texts.cycleText)), /* @__PURE__ */ React89.createElement("h5", { className: "hawa-text-md hawa-font-normal hawa-text-gray-500 dark:hawa-text-gray-400" }, plan.texts.subtitle)))), props.plans?.map((plan) => {
|
|
9462
9712
|
return plan.features.map((feature, j) => {
|
|
9463
|
-
return /* @__PURE__ */
|
|
9713
|
+
return /* @__PURE__ */ React89.createElement(
|
|
9464
9714
|
"div",
|
|
9465
9715
|
{
|
|
9466
9716
|
key: j,
|
|
9467
9717
|
className: "hawa-grid hawa-grid-cols-4 hawa-gap-x-16 hawa-border-b hawa-border-gray-200 hawa-px-4 hawa-py-5 hawa-text-sm hawa-text-gray-700 dark:hawa-border-gray-700"
|
|
9468
9718
|
},
|
|
9469
|
-
/* @__PURE__ */
|
|
9719
|
+
/* @__PURE__ */ React89.createElement("div", { className: " hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-gray-500 dark:hawa-text-gray-400" }, feature.text, feature.description && /* @__PURE__ */ React89.createElement(Tooltip, { side: "right", content: feature.description }, /* @__PURE__ */ React89.createElement(
|
|
9470
9720
|
"svg",
|
|
9471
9721
|
{
|
|
9472
9722
|
stroke: "currentColor",
|
|
@@ -9476,41 +9726,41 @@ var ComparingPlans = (props) => {
|
|
|
9476
9726
|
height: "1em",
|
|
9477
9727
|
width: "1em"
|
|
9478
9728
|
},
|
|
9479
|
-
/* @__PURE__ */
|
|
9729
|
+
/* @__PURE__ */ React89.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
|
|
9480
9730
|
))),
|
|
9481
|
-
/* @__PURE__ */
|
|
9482
|
-
/* @__PURE__ */
|
|
9483
|
-
/* @__PURE__ */
|
|
9731
|
+
/* @__PURE__ */ React89.createElement(UncheckMark, null),
|
|
9732
|
+
/* @__PURE__ */ React89.createElement(CheckMark, null),
|
|
9733
|
+
/* @__PURE__ */ React89.createElement(UncheckMark, null)
|
|
9484
9734
|
);
|
|
9485
9735
|
});
|
|
9486
9736
|
})));
|
|
9487
9737
|
};
|
|
9488
9738
|
|
|
9489
9739
|
// components/blocks/pricing/HorizontalPricing.tsx
|
|
9490
|
-
import
|
|
9740
|
+
import React90, { useState as useState35 } from "react";
|
|
9491
9741
|
import clsx12 from "clsx";
|
|
9492
9742
|
var HorizontalPricing = (props) => {
|
|
9493
|
-
const [selectedCard, setSelectedCard] =
|
|
9743
|
+
const [selectedCard, setSelectedCard] = useState35("");
|
|
9494
9744
|
let data = [
|
|
9495
9745
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
|
9496
9746
|
{ title: "business", price: "$99", cycle: "/mo" },
|
|
9497
9747
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
|
9498
9748
|
];
|
|
9499
|
-
return /* @__PURE__ */
|
|
9749
|
+
return /* @__PURE__ */ React90.createElement("div", { className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm" }, /* @__PURE__ */ React90.createElement("div", { className: "hawa-max-w-2xl " }, /* @__PURE__ */ React90.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ React90.createElement(
|
|
9500
9750
|
Radio,
|
|
9501
9751
|
{
|
|
9502
9752
|
design: "tabs",
|
|
9503
9753
|
options: props.currencies,
|
|
9504
9754
|
defaultValue: props.currentCurrency
|
|
9505
9755
|
}
|
|
9506
|
-
), /* @__PURE__ */
|
|
9756
|
+
), /* @__PURE__ */ React90.createElement(
|
|
9507
9757
|
Radio,
|
|
9508
9758
|
{
|
|
9509
9759
|
design: "tabs",
|
|
9510
9760
|
options: props.billingCycles,
|
|
9511
9761
|
defaultValue: props.currentCycle
|
|
9512
9762
|
}
|
|
9513
|
-
)), data.map((d, i) => /* @__PURE__ */
|
|
9763
|
+
)), data.map((d, i) => /* @__PURE__ */ React90.createElement(
|
|
9514
9764
|
"label",
|
|
9515
9765
|
{
|
|
9516
9766
|
key: i,
|
|
@@ -9518,7 +9768,7 @@ var HorizontalPricing = (props) => {
|
|
|
9518
9768
|
className: "",
|
|
9519
9769
|
onClick: () => setSelectedCard(d.title)
|
|
9520
9770
|
},
|
|
9521
|
-
/* @__PURE__ */
|
|
9771
|
+
/* @__PURE__ */ React90.createElement(
|
|
9522
9772
|
"input",
|
|
9523
9773
|
{
|
|
9524
9774
|
type: "radio",
|
|
@@ -9527,7 +9777,7 @@ var HorizontalPricing = (props) => {
|
|
|
9527
9777
|
className: "hawa-peer hawa-appearance-none"
|
|
9528
9778
|
}
|
|
9529
9779
|
),
|
|
9530
|
-
/* @__PURE__ */
|
|
9780
|
+
/* @__PURE__ */ React90.createElement(
|
|
9531
9781
|
"div",
|
|
9532
9782
|
{
|
|
9533
9783
|
className: clsx12(
|
|
@@ -9535,18 +9785,18 @@ var HorizontalPricing = (props) => {
|
|
|
9535
9785
|
"hawa-peer hawa-flex hawa-cursor-pointer hawa-items-center hawa-justify-between hawa-rounded-xl hawa-border hawa-bg-background hawa-px-5 hawa-py-4 hawa-shadow dark:hawa-text-white peer-checked:[&_.active]:hawa-block peer-checked:[&_.default]:hawa-hidden"
|
|
9536
9786
|
)
|
|
9537
9787
|
},
|
|
9538
|
-
/* @__PURE__ */
|
|
9788
|
+
/* @__PURE__ */ React90.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ React90.createElement(CheckIcons, null), /* @__PURE__ */ React90.createElement(
|
|
9539
9789
|
CardText,
|
|
9540
9790
|
{
|
|
9541
9791
|
title: "Enterprise",
|
|
9542
9792
|
subtitle: "For startups and new businesses"
|
|
9543
9793
|
}
|
|
9544
9794
|
)),
|
|
9545
|
-
/* @__PURE__ */
|
|
9795
|
+
/* @__PURE__ */ React90.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
|
9546
9796
|
)
|
|
9547
9797
|
))));
|
|
9548
9798
|
};
|
|
9549
|
-
var CheckIcons = () => /* @__PURE__ */
|
|
9799
|
+
var CheckIcons = () => /* @__PURE__ */ React90.createElement(React90.Fragment, null, /* @__PURE__ */ React90.createElement(
|
|
9550
9800
|
"svg",
|
|
9551
9801
|
{
|
|
9552
9802
|
fill: "none",
|
|
@@ -9555,7 +9805,7 @@ var CheckIcons = () => /* @__PURE__ */ React89.createElement(React89.Fragment, n
|
|
|
9555
9805
|
stroke: "currentColor",
|
|
9556
9806
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
|
9557
9807
|
},
|
|
9558
|
-
/* @__PURE__ */
|
|
9808
|
+
/* @__PURE__ */ React90.createElement(
|
|
9559
9809
|
"path",
|
|
9560
9810
|
{
|
|
9561
9811
|
strokeLinecap: "round",
|
|
@@ -9563,14 +9813,14 @@ var CheckIcons = () => /* @__PURE__ */ React89.createElement(React89.Fragment, n
|
|
|
9563
9813
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
9564
9814
|
}
|
|
9565
9815
|
)
|
|
9566
|
-
), /* @__PURE__ */
|
|
9816
|
+
), /* @__PURE__ */ React90.createElement(
|
|
9567
9817
|
"svg",
|
|
9568
9818
|
{
|
|
9569
9819
|
viewBox: "0 0 24 24",
|
|
9570
9820
|
fill: "currentColor",
|
|
9571
9821
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
|
9572
9822
|
},
|
|
9573
|
-
/* @__PURE__ */
|
|
9823
|
+
/* @__PURE__ */ React90.createElement(
|
|
9574
9824
|
"path",
|
|
9575
9825
|
{
|
|
9576
9826
|
fillRule: "evenodd",
|
|
@@ -9579,13 +9829,13 @@ var CheckIcons = () => /* @__PURE__ */ React89.createElement(React89.Fragment, n
|
|
|
9579
9829
|
}
|
|
9580
9830
|
)
|
|
9581
9831
|
));
|
|
9582
|
-
var CardText = (props) => /* @__PURE__ */
|
|
9583
|
-
var CardPrice = (props) => /* @__PURE__ */
|
|
9832
|
+
var CardText = (props) => /* @__PURE__ */ React90.createElement("div", { className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start " }, /* @__PURE__ */ React90.createElement("h2", { className: "hawa-font-medium hawa-text-primary/90 sm:hawa-text-xl" }, props.title), /* @__PURE__ */ React90.createElement("p", { className: "hawa-text-sm hawa-text-primary/60" }, props.subtitle, " "));
|
|
9833
|
+
var CardPrice = (props) => /* @__PURE__ */ React90.createElement("h2", { className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-primary sm:hawa-text-2xl" }, props.amount, /* @__PURE__ */ React90.createElement("span", { className: "hawa-text-base hawa-font-medium hawa-text-neutral-400" }, props.cycle));
|
|
9584
9834
|
|
|
9585
9835
|
// components/blocks/Usage.tsx
|
|
9586
|
-
import
|
|
9836
|
+
import React91 from "react";
|
|
9587
9837
|
var Usage = (props) => {
|
|
9588
|
-
return /* @__PURE__ */
|
|
9838
|
+
return /* @__PURE__ */ React91.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-1 hawa-rounded hawa-border hawa-bg-card hawa-p-4" }, /* @__PURE__ */ React91.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, /* @__PURE__ */ React91.createElement("span", { className: "hawa-bg-white-200" }, props.title), props.tooltip && /* @__PURE__ */ React91.createElement(Tooltip, { content: props.tooltip }, /* @__PURE__ */ React91.createElement(
|
|
9589
9839
|
"svg",
|
|
9590
9840
|
{
|
|
9591
9841
|
stroke: "currentColor",
|
|
@@ -9596,27 +9846,27 @@ var Usage = (props) => {
|
|
|
9596
9846
|
height: "1em",
|
|
9597
9847
|
width: "1em"
|
|
9598
9848
|
},
|
|
9599
|
-
/* @__PURE__ */
|
|
9600
|
-
))), /* @__PURE__ */
|
|
9849
|
+
/* @__PURE__ */ React91.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
|
|
9850
|
+
))), /* @__PURE__ */ React91.createElement("div", { className: "hawa-bg-white-100 hawa-flex hawa-flex-row" }, /* @__PURE__ */ React91.createElement("div", null, props.currentUsage), /* @__PURE__ */ React91.createElement("div", null, " (", props.percent, "%)")), /* @__PURE__ */ React91.createElement(Progress, { value: props.percent ?? 0 }));
|
|
9601
9851
|
};
|
|
9602
9852
|
|
|
9603
9853
|
// components/hooks/useDiscloser.ts
|
|
9604
|
-
import { useState as
|
|
9854
|
+
import { useState as useState36 } from "react";
|
|
9605
9855
|
|
|
9606
9856
|
// components/hooks/useHover.ts
|
|
9607
|
-
import { useEffect as
|
|
9857
|
+
import { useEffect as useEffect23, useRef as useRef13, useState as useState37 } from "react";
|
|
9608
9858
|
|
|
9609
9859
|
// components/hooks/useCarousel.ts
|
|
9610
|
-
import { useState as
|
|
9860
|
+
import { useState as useState38, useRef as useRef14 } from "react";
|
|
9611
9861
|
|
|
9612
9862
|
// components/hooks/useWindowSize.ts
|
|
9613
|
-
import { useEffect as
|
|
9863
|
+
import { useEffect as useEffect24, useState as useState39 } from "react";
|
|
9614
9864
|
var useWindowSize = () => {
|
|
9615
|
-
const [windowSize, setWindowSize] =
|
|
9865
|
+
const [windowSize, setWindowSize] = useState39({
|
|
9616
9866
|
width: void 0,
|
|
9617
9867
|
height: void 0
|
|
9618
9868
|
});
|
|
9619
|
-
|
|
9869
|
+
useEffect24(() => {
|
|
9620
9870
|
function handleResize() {
|
|
9621
9871
|
setWindowSize({
|
|
9622
9872
|
width: window.innerWidth,
|
|
@@ -9631,7 +9881,7 @@ var useWindowSize = () => {
|
|
|
9631
9881
|
};
|
|
9632
9882
|
|
|
9633
9883
|
// components/hooks/useFocusWithin.ts
|
|
9634
|
-
import { useRef as useRef15, useState as
|
|
9884
|
+
import { useRef as useRef15, useState as useState40, useEffect as useEffect25 } from "react";
|
|
9635
9885
|
function containsRelatedTarget(event) {
|
|
9636
9886
|
if (event.currentTarget instanceof HTMLElement && event.relatedTarget instanceof HTMLElement) {
|
|
9637
9887
|
return event.currentTarget.contains(event.relatedTarget);
|
|
@@ -9643,7 +9893,7 @@ function useFocusWithin({
|
|
|
9643
9893
|
onFocus
|
|
9644
9894
|
} = {}) {
|
|
9645
9895
|
const ref = useRef15(null);
|
|
9646
|
-
const [focused, _setFocused] =
|
|
9896
|
+
const [focused, _setFocused] = useState40(false);
|
|
9647
9897
|
const focusedRef = useRef15(false);
|
|
9648
9898
|
const setFocused = (value) => {
|
|
9649
9899
|
_setFocused(value);
|
|
@@ -9661,7 +9911,7 @@ function useFocusWithin({
|
|
|
9661
9911
|
onBlur?.(event);
|
|
9662
9912
|
}
|
|
9663
9913
|
};
|
|
9664
|
-
|
|
9914
|
+
useEffect25(() => {
|
|
9665
9915
|
if (ref.current) {
|
|
9666
9916
|
ref.current.addEventListener("focusin", handleFocusIn);
|
|
9667
9917
|
ref.current.addEventListener("focusout", handleFocusOut);
|
|
@@ -9676,7 +9926,7 @@ function useFocusWithin({
|
|
|
9676
9926
|
}
|
|
9677
9927
|
|
|
9678
9928
|
// components/hooks/useMediaQuery.ts
|
|
9679
|
-
import { useState as
|
|
9929
|
+
import { useState as useState41, useEffect as useEffect26, useRef as useRef16 } from "react";
|
|
9680
9930
|
function attachMediaListener(query, callback) {
|
|
9681
9931
|
try {
|
|
9682
9932
|
query.addEventListener("change", callback);
|
|
@@ -9698,11 +9948,11 @@ function getInitialValue(query, initialValue) {
|
|
|
9698
9948
|
function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
9699
9949
|
getInitialValueInEffect: true
|
|
9700
9950
|
}) {
|
|
9701
|
-
const [matches, setMatches] =
|
|
9951
|
+
const [matches, setMatches] = useState41(
|
|
9702
9952
|
getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
|
|
9703
9953
|
);
|
|
9704
9954
|
const queryRef = useRef16();
|
|
9705
|
-
|
|
9955
|
+
useEffect26(() => {
|
|
9706
9956
|
if ("matchMedia" in window) {
|
|
9707
9957
|
queryRef.current = window.matchMedia(query);
|
|
9708
9958
|
setMatches(queryRef.current.matches);
|
|
@@ -9717,16 +9967,16 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
|
9717
9967
|
}
|
|
9718
9968
|
|
|
9719
9969
|
// components/hooks/useScrollPosition.ts
|
|
9720
|
-
import { useState as
|
|
9970
|
+
import { useState as useState42, useEffect as useEffect27 } from "react";
|
|
9721
9971
|
|
|
9722
9972
|
// components/hooks/useTable.ts
|
|
9723
|
-
import { useState as
|
|
9973
|
+
import { useState as useState43, useEffect as useEffect28 } from "react";
|
|
9724
9974
|
|
|
9725
9975
|
// components/hooks/useTabs.ts
|
|
9726
|
-
import { useEffect as
|
|
9976
|
+
import { useEffect as useEffect29, useState as useState44 } from "react";
|
|
9727
9977
|
function useTabs(initialTab = "") {
|
|
9728
|
-
const [activeTab, setActiveTab] =
|
|
9729
|
-
|
|
9978
|
+
const [activeTab, setActiveTab] = useState44(initialTab);
|
|
9979
|
+
useEffect29(() => {
|
|
9730
9980
|
const handleHashChange = () => {
|
|
9731
9981
|
const hash = window.location.hash.substring(1);
|
|
9732
9982
|
setActiveTab(hash || initialTab);
|
|
@@ -9827,6 +10077,22 @@ export {
|
|
|
9827
10077
|
Loading,
|
|
9828
10078
|
LoginForm,
|
|
9829
10079
|
Logos,
|
|
10080
|
+
Menubar,
|
|
10081
|
+
MenubarCheckboxItem,
|
|
10082
|
+
MenubarContent,
|
|
10083
|
+
MenubarGroup,
|
|
10084
|
+
MenubarItem,
|
|
10085
|
+
MenubarLabel,
|
|
10086
|
+
MenubarMenu,
|
|
10087
|
+
MenubarPortal,
|
|
10088
|
+
MenubarRadioGroup,
|
|
10089
|
+
MenubarRadioItem,
|
|
10090
|
+
MenubarSeparator,
|
|
10091
|
+
MenubarShortcut,
|
|
10092
|
+
MenubarSub,
|
|
10093
|
+
MenubarSubContent,
|
|
10094
|
+
MenubarSubTrigger,
|
|
10095
|
+
MenubarTrigger,
|
|
9830
10096
|
NavMenuItem,
|
|
9831
10097
|
Navbar,
|
|
9832
10098
|
NavigationMenu,
|