@sikka/hawa 0.14.12-next → 0.14.14-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 +18 -0
- package/dist/index.d.mts +39 -1
- package/dist/index.d.ts +39 -1
- package/dist/index.js +704 -424
- package/dist/index.mjs +555 -296
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -382,6 +382,9 @@ __export(components_exports, {
|
|
|
382
382
|
AppStores: function() {
|
|
383
383
|
return AppStores;
|
|
384
384
|
},
|
|
385
|
+
AppTabs: function() {
|
|
386
|
+
return AppTabs;
|
|
387
|
+
},
|
|
385
388
|
AppTopbar: function() {
|
|
386
389
|
return AppTopbar;
|
|
387
390
|
},
|
|
@@ -586,6 +589,54 @@ __export(components_exports, {
|
|
|
586
589
|
Logos: function() {
|
|
587
590
|
return Logos;
|
|
588
591
|
},
|
|
592
|
+
Menubar: function() {
|
|
593
|
+
return Menubar;
|
|
594
|
+
},
|
|
595
|
+
MenubarCheckboxItem: function() {
|
|
596
|
+
return MenubarCheckboxItem;
|
|
597
|
+
},
|
|
598
|
+
MenubarContent: function() {
|
|
599
|
+
return MenubarContent;
|
|
600
|
+
},
|
|
601
|
+
MenubarGroup: function() {
|
|
602
|
+
return MenubarGroup;
|
|
603
|
+
},
|
|
604
|
+
MenubarItem: function() {
|
|
605
|
+
return MenubarItem;
|
|
606
|
+
},
|
|
607
|
+
MenubarLabel: function() {
|
|
608
|
+
return MenubarLabel;
|
|
609
|
+
},
|
|
610
|
+
MenubarMenu: function() {
|
|
611
|
+
return MenubarMenu;
|
|
612
|
+
},
|
|
613
|
+
MenubarPortal: function() {
|
|
614
|
+
return MenubarPortal;
|
|
615
|
+
},
|
|
616
|
+
MenubarRadioGroup: function() {
|
|
617
|
+
return MenubarRadioGroup;
|
|
618
|
+
},
|
|
619
|
+
MenubarRadioItem: function() {
|
|
620
|
+
return MenubarRadioItem;
|
|
621
|
+
},
|
|
622
|
+
MenubarSeparator: function() {
|
|
623
|
+
return MenubarSeparator;
|
|
624
|
+
},
|
|
625
|
+
MenubarShortcut: function() {
|
|
626
|
+
return MenubarShortcut;
|
|
627
|
+
},
|
|
628
|
+
MenubarSub: function() {
|
|
629
|
+
return MenubarSub;
|
|
630
|
+
},
|
|
631
|
+
MenubarSubContent: function() {
|
|
632
|
+
return MenubarSubContent;
|
|
633
|
+
},
|
|
634
|
+
MenubarSubTrigger: function() {
|
|
635
|
+
return MenubarSubTrigger;
|
|
636
|
+
},
|
|
637
|
+
MenubarTrigger: function() {
|
|
638
|
+
return MenubarTrigger;
|
|
639
|
+
},
|
|
589
640
|
NavMenuItem: function() {
|
|
590
641
|
return NavMenuItem;
|
|
591
642
|
},
|
|
@@ -4806,7 +4857,7 @@ var Select = function(_param) {
|
|
|
4806
4857
|
className: cn("hawa-flex hawa-cursor-pointer hawa-select-none hawa-flex-row hawa-items-center hawa-justify-between hawa-rounded-inner hawa-p-1 hawa-px-2 hover:hawa-bg-primary hawa-transition-all hover:hawa-text-primary-foreground")
|
|
4807
4858
|
}, innerProps), children);
|
|
4808
4859
|
};
|
|
4809
|
-
var
|
|
4860
|
+
var Menu2 = function(_param) {
|
|
4810
4861
|
var cx = _param.cx, children = _param.children, getStyles = _param.getStyles, innerProps = _param.innerProps, innerRef = _param.innerRef, menuProps = _object_without_properties(_param, [
|
|
4811
4862
|
"cx",
|
|
4812
4863
|
"children",
|
|
@@ -4851,13 +4902,13 @@ var Select = function(_param) {
|
|
|
4851
4902
|
autoFocus: true,
|
|
4852
4903
|
components: props.hideIndicator ? {
|
|
4853
4904
|
Option: Option,
|
|
4854
|
-
Menu:
|
|
4905
|
+
Menu: Menu2,
|
|
4855
4906
|
IndicatorsContainer: function() {
|
|
4856
4907
|
return null;
|
|
4857
4908
|
}
|
|
4858
4909
|
} : {
|
|
4859
4910
|
Option: Option,
|
|
4860
|
-
Menu:
|
|
4911
|
+
Menu: Menu2
|
|
4861
4912
|
},
|
|
4862
4913
|
onChange: function(newValue, action) {
|
|
4863
4914
|
return props.onChange(newValue, action);
|
|
@@ -4909,7 +4960,7 @@ var Select = function(_param) {
|
|
|
4909
4960
|
components: {
|
|
4910
4961
|
Control: Control,
|
|
4911
4962
|
Option: Option,
|
|
4912
|
-
Menu:
|
|
4963
|
+
Menu: Menu2
|
|
4913
4964
|
},
|
|
4914
4965
|
onInputChange: function(newValue, action) {
|
|
4915
4966
|
return props.onInputChange(newValue, action);
|
|
@@ -5398,13 +5449,19 @@ var DataTable = function(_param) {
|
|
|
5398
5449
|
variant: "outline",
|
|
5399
5450
|
className: "hawa-flex hawa-flex-row hawa-gap-2"
|
|
5400
5451
|
}, ((_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.columns) || "Columns", /* @__PURE__ */ React40.createElement("svg", {
|
|
5401
|
-
"aria-label": "Chevron
|
|
5452
|
+
"aria-label": "Chevron Down Icon",
|
|
5453
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5454
|
+
width: "24",
|
|
5455
|
+
height: "24",
|
|
5456
|
+
viewBox: "0 0 24 24",
|
|
5457
|
+
fill: "none",
|
|
5402
5458
|
stroke: "currentColor",
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5459
|
+
"stroke-width": "2",
|
|
5460
|
+
"stroke-linecap": "round",
|
|
5461
|
+
"stroke-linejoin": "round",
|
|
5462
|
+
className: "hawa-icon hawa-rotate-90"
|
|
5406
5463
|
}, /* @__PURE__ */ React40.createElement("path", {
|
|
5407
|
-
d: "
|
|
5464
|
+
d: "m9 18 6-6-6-6"
|
|
5408
5465
|
})))), /* @__PURE__ */ React40.createElement(DropdownMenuContent, {
|
|
5409
5466
|
align: props.direction === "rtl" ? "start" : "end"
|
|
5410
5467
|
}, table.getAllColumns().filter(function(column) {
|
|
@@ -7403,13 +7460,219 @@ var AppTopbar = function(_param) {
|
|
|
7403
7460
|
})))
|
|
7404
7461
|
})));
|
|
7405
7462
|
};
|
|
7463
|
+
// components/layout/AppMenubar.tsx
|
|
7464
|
+
var React64 = __toESM(require("react"));
|
|
7465
|
+
var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"));
|
|
7466
|
+
var MenubarMenu = MenubarPrimitive.Menu;
|
|
7467
|
+
var MenubarGroup = MenubarPrimitive.Group;
|
|
7468
|
+
var MenubarPortal = MenubarPrimitive.Portal;
|
|
7469
|
+
var MenubarSub = MenubarPrimitive.Sub;
|
|
7470
|
+
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
7471
|
+
var Menubar = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7472
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
7473
|
+
"className"
|
|
7474
|
+
]);
|
|
7475
|
+
return React64.createElement(MenubarPrimitive.Root, _object_spread({
|
|
7476
|
+
ref: ref,
|
|
7477
|
+
className: cn("hawa-flex hawa-h-10 hawa-items-center hawa-space-x-1 hawa-rounded-md hawa-border hawa-bg-background hawa-p-1", className)
|
|
7478
|
+
}, props));
|
|
7479
|
+
});
|
|
7480
|
+
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
7481
|
+
var MenubarTrigger = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7482
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
7483
|
+
"className"
|
|
7484
|
+
]);
|
|
7485
|
+
return React64.createElement(MenubarPrimitive.Trigger, _object_spread({
|
|
7486
|
+
ref: ref,
|
|
7487
|
+
className: cn("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", className)
|
|
7488
|
+
}, props));
|
|
7489
|
+
});
|
|
7490
|
+
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
7491
|
+
var MenubarSubTrigger = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7492
|
+
var className = _param.className, inset = _param.inset, children = _param.children, props = _object_without_properties(_param, [
|
|
7493
|
+
"className",
|
|
7494
|
+
"inset",
|
|
7495
|
+
"children"
|
|
7496
|
+
]);
|
|
7497
|
+
return React64.createElement(MenubarPrimitive.SubTrigger, _object_spread({
|
|
7498
|
+
ref: ref,
|
|
7499
|
+
className: cn("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", inset && "pl-8", className)
|
|
7500
|
+
}, props), children, /* @__PURE__ */ React64.createElement("svg", {
|
|
7501
|
+
"aria-label": "Chevron Right Icon",
|
|
7502
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7503
|
+
width: "24",
|
|
7504
|
+
height: "24",
|
|
7505
|
+
viewBox: "0 0 24 24",
|
|
7506
|
+
fill: "none",
|
|
7507
|
+
stroke: "currentColor",
|
|
7508
|
+
"stroke-width": "2",
|
|
7509
|
+
"stroke-linecap": "round",
|
|
7510
|
+
"stroke-linejoin": "round",
|
|
7511
|
+
className: "hawa-ml-auto hawa-icon"
|
|
7512
|
+
}, /* @__PURE__ */ React64.createElement("path", {
|
|
7513
|
+
d: "m9 18 6-6-6-6"
|
|
7514
|
+
})));
|
|
7515
|
+
});
|
|
7516
|
+
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
7517
|
+
var MenubarSubContent = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7518
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
7519
|
+
"className"
|
|
7520
|
+
]);
|
|
7521
|
+
return React64.createElement(MenubarPrimitive.SubContent, _object_spread({
|
|
7522
|
+
ref: ref,
|
|
7523
|
+
className: cn("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", className)
|
|
7524
|
+
}, props));
|
|
7525
|
+
});
|
|
7526
|
+
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
7527
|
+
var MenubarContent = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7528
|
+
var className = _param.className, _param_align = _param.align, align = _param_align === void 0 ? "start" : _param_align, _param_alignOffset = _param.alignOffset, alignOffset = _param_alignOffset === void 0 ? -4 : _param_alignOffset, _param_sideOffset = _param.sideOffset, sideOffset = _param_sideOffset === void 0 ? 8 : _param_sideOffset, props = _object_without_properties(_param, [
|
|
7529
|
+
"className",
|
|
7530
|
+
"align",
|
|
7531
|
+
"alignOffset",
|
|
7532
|
+
"sideOffset"
|
|
7533
|
+
]);
|
|
7534
|
+
return React64.createElement(MenubarPrimitive.Portal, null, /* @__PURE__ */ React64.createElement(MenubarPrimitive.Content, _object_spread({
|
|
7535
|
+
ref: ref,
|
|
7536
|
+
align: align,
|
|
7537
|
+
alignOffset: alignOffset,
|
|
7538
|
+
sideOffset: sideOffset,
|
|
7539
|
+
className: cn("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", className)
|
|
7540
|
+
}, props)));
|
|
7541
|
+
});
|
|
7542
|
+
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
7543
|
+
var MenubarItem = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7544
|
+
var className = _param.className, inset = _param.inset, props = _object_without_properties(_param, [
|
|
7545
|
+
"className",
|
|
7546
|
+
"inset"
|
|
7547
|
+
]);
|
|
7548
|
+
return React64.createElement(MenubarPrimitive.Item, _object_spread({
|
|
7549
|
+
ref: ref,
|
|
7550
|
+
className: cn("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", inset && "pl-8", className)
|
|
7551
|
+
}, props));
|
|
7552
|
+
});
|
|
7553
|
+
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
7554
|
+
var MenubarCheckboxItem = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7555
|
+
var className = _param.className, children = _param.children, checked = _param.checked, props = _object_without_properties(_param, [
|
|
7556
|
+
"className",
|
|
7557
|
+
"children",
|
|
7558
|
+
"checked"
|
|
7559
|
+
]);
|
|
7560
|
+
return React64.createElement(MenubarPrimitive.CheckboxItem, _object_spread({
|
|
7561
|
+
ref: ref,
|
|
7562
|
+
className: cn("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", className),
|
|
7563
|
+
checked: checked
|
|
7564
|
+
}, props), /* @__PURE__ */ React64.createElement("span", {
|
|
7565
|
+
className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center"
|
|
7566
|
+
}, /* @__PURE__ */ React64.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React64.createElement("svg", {
|
|
7567
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7568
|
+
width: "24",
|
|
7569
|
+
height: "24",
|
|
7570
|
+
viewBox: "0 0 24 24",
|
|
7571
|
+
fill: "none",
|
|
7572
|
+
stroke: "currentColor",
|
|
7573
|
+
"stroke-width": "2",
|
|
7574
|
+
"stroke-linecap": "round",
|
|
7575
|
+
"stroke-linejoin": "round",
|
|
7576
|
+
className: "hawa-icon"
|
|
7577
|
+
}, /* @__PURE__ */ React64.createElement("path", {
|
|
7578
|
+
d: "M20 6 9 17l-5-5"
|
|
7579
|
+
})))), children);
|
|
7580
|
+
});
|
|
7581
|
+
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
7582
|
+
var MenubarRadioItem = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7583
|
+
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
7584
|
+
"className",
|
|
7585
|
+
"children"
|
|
7586
|
+
]);
|
|
7587
|
+
return React64.createElement(MenubarPrimitive.RadioItem, _object_spread({
|
|
7588
|
+
ref: ref,
|
|
7589
|
+
className: cn("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", className)
|
|
7590
|
+
}, props), /* @__PURE__ */ React64.createElement("span", {
|
|
7591
|
+
className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center"
|
|
7592
|
+
}, /* @__PURE__ */ React64.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React64.createElement("svg", {
|
|
7593
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7594
|
+
width: "24",
|
|
7595
|
+
height: "24",
|
|
7596
|
+
viewBox: "0 0 24 24",
|
|
7597
|
+
fill: "none",
|
|
7598
|
+
stroke: "currentColor",
|
|
7599
|
+
"stroke-width": "2",
|
|
7600
|
+
"stroke-linecap": "round",
|
|
7601
|
+
"stroke-linejoin": "round",
|
|
7602
|
+
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
|
7603
|
+
}, /* @__PURE__ */ React64.createElement("circle", {
|
|
7604
|
+
cx: "12",
|
|
7605
|
+
cy: "12",
|
|
7606
|
+
r: "10"
|
|
7607
|
+
})))), children);
|
|
7608
|
+
});
|
|
7609
|
+
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
7610
|
+
var MenubarLabel = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7611
|
+
var className = _param.className, inset = _param.inset, props = _object_without_properties(_param, [
|
|
7612
|
+
"className",
|
|
7613
|
+
"inset"
|
|
7614
|
+
]);
|
|
7615
|
+
return React64.createElement(MenubarPrimitive.Label, _object_spread({
|
|
7616
|
+
ref: ref,
|
|
7617
|
+
className: cn("hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-font-semibold", inset && "hawa-pl-8", className)
|
|
7618
|
+
}, props));
|
|
7619
|
+
});
|
|
7620
|
+
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
7621
|
+
var MenubarSeparator = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7622
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
7623
|
+
"className"
|
|
7624
|
+
]);
|
|
7625
|
+
return React64.createElement(MenubarPrimitive.Separator, _object_spread({
|
|
7626
|
+
ref: ref,
|
|
7627
|
+
className: cn("hawa--mx-1 hawa-my-1 hawa-h-px hawa-bg-muted", className)
|
|
7628
|
+
}, props));
|
|
7629
|
+
});
|
|
7630
|
+
MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
|
|
7631
|
+
var MenubarShortcut = function(_param) {
|
|
7632
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
7633
|
+
"className"
|
|
7634
|
+
]);
|
|
7635
|
+
return /* @__PURE__ */ React64.createElement("span", _object_spread({
|
|
7636
|
+
className: cn("hawa-ml-auto hawa-text-xs hawa-tracking-widest hawa-text-muted-foreground", className)
|
|
7637
|
+
}, props));
|
|
7638
|
+
};
|
|
7639
|
+
MenubarShortcut.displayname = "MenubarShortcut";
|
|
7640
|
+
// components/layout/AppTabs.tsx
|
|
7641
|
+
var import_react39 = __toESM(require("react"));
|
|
7642
|
+
var AppTabs = function(_param) {
|
|
7643
|
+
var tabs = _param.tabs, props = _object_without_properties(_param, [
|
|
7644
|
+
"tabs"
|
|
7645
|
+
]);
|
|
7646
|
+
var _ref = _sliced_to_array((0, import_react39.useState)(0), 2), selectedIndex = _ref[0], setSelectedIndex = _ref[1];
|
|
7647
|
+
return /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7648
|
+
className: "hawa-bg-gray-100 hawa-w-full dark:hawa-bg-gray-900 hawa-p-6 hawa-pb-0 hawa-border-b "
|
|
7649
|
+
}, /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7650
|
+
className: "hawa-flex hawa-flex-row hawa-justify-center "
|
|
7651
|
+
}, tabs.map(function(tab, index) {
|
|
7652
|
+
var selected = index === selectedIndex;
|
|
7653
|
+
return /* @__PURE__ */ import_react39.default.createElement(AppSingleTab, {
|
|
7654
|
+
tab: tab,
|
|
7655
|
+
onClick: function() {
|
|
7656
|
+
return setSelectedIndex(index);
|
|
7657
|
+
},
|
|
7658
|
+
isSelected: selected
|
|
7659
|
+
});
|
|
7660
|
+
})));
|
|
7661
|
+
};
|
|
7662
|
+
var AppSingleTab = function(props) {
|
|
7663
|
+
return /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7664
|
+
onClick: props.onClick,
|
|
7665
|
+
className: cn("hawa-p-4 hawa-py-2 hawa-flex hawa-flex-row hawa-gap-2 hawa-translate-y-[1.1px] hawa-text-sm hawa-rounded-t hawa-transition-all hawa-select-none hawa-z-10 ", "hawa-border", // Always have a border but make it transparent
|
|
7666
|
+
props.isSelected ? "hawa-bg-background hawa-border hawa-border-b-transparent" : "dark:hover:hawa-bg-gray-700 hover:hawa-bg-gray-200 hawa-cursor-pointer hawa-border-transparent")
|
|
7667
|
+
}, props.tab.icon && props.tab.icon, props.tab.label);
|
|
7668
|
+
};
|
|
7406
7669
|
// components/layout/DocsLayout.tsx
|
|
7407
|
-
var
|
|
7670
|
+
var import_react42 = __toESM(require("react"));
|
|
7408
7671
|
// components/hooks/useBreakpoint.ts
|
|
7409
|
-
var
|
|
7672
|
+
var import_react40 = require("react");
|
|
7410
7673
|
var useBreakpoint = function() {
|
|
7411
|
-
var _ref = _sliced_to_array((0,
|
|
7412
|
-
(0,
|
|
7674
|
+
var _ref = _sliced_to_array((0, import_react40.useState)(null), 2), breakpoint = _ref[0], setBreakpoint = _ref[1];
|
|
7675
|
+
(0, import_react40.useEffect)(function() {
|
|
7413
7676
|
if (typeof window !== "undefined") {
|
|
7414
7677
|
var resize = function() {
|
|
7415
7678
|
setBreakpoint(window.innerWidth);
|
|
@@ -7424,7 +7687,7 @@ var useBreakpoint = function() {
|
|
|
7424
7687
|
return breakpoint;
|
|
7425
7688
|
};
|
|
7426
7689
|
// components/layout/DocsSidebar.tsx
|
|
7427
|
-
var
|
|
7690
|
+
var import_react41 = __toESM(require("react"));
|
|
7428
7691
|
var DocsSidebar = function(_param) {
|
|
7429
7692
|
var test = _param.test, props = _object_without_properties(_param, [
|
|
7430
7693
|
"test"
|
|
@@ -7436,14 +7699,14 @@ var DocsSidebar = function(_param) {
|
|
|
7436
7699
|
"API Reference",
|
|
7437
7700
|
"FAQ"
|
|
7438
7701
|
];
|
|
7439
|
-
var
|
|
7702
|
+
var _import_react41_default_useState = _sliced_to_array(import_react41.default.useState(pages[0]), 2), currentPage = _import_react41_default_useState[0], setCurrentPage = _import_react41_default_useState[1];
|
|
7440
7703
|
var handlePageClick = function(page) {
|
|
7441
7704
|
setCurrentPage(page);
|
|
7442
7705
|
};
|
|
7443
|
-
return /* @__PURE__ */
|
|
7706
|
+
return /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7444
7707
|
className: "hawa-flex hawa-flex-col hawa-overflow-x-clip"
|
|
7445
7708
|
}, pages.map(function(page, index) {
|
|
7446
|
-
return /* @__PURE__ */
|
|
7709
|
+
return /* @__PURE__ */ import_react41.default.createElement("a", {
|
|
7447
7710
|
key: index,
|
|
7448
7711
|
className: cn("hawa-py-1 hawa-text-xs hawa-cursor-pointer hawa-whitespace-nowrap hawa-px-3 hover:hawa-bg-gray-100 hawa-transition-all", currentPage === page ? "hawa-border-l-4 hawa-border-primary hawa-border-collapse" : ""),
|
|
7449
7712
|
onClick: function() {
|
|
@@ -7478,14 +7741,14 @@ var DocsLayout = function(_param) {
|
|
|
7478
7741
|
lg: closeDrawerWidth
|
|
7479
7742
|
}
|
|
7480
7743
|
};
|
|
7481
|
-
var ref = (0,
|
|
7744
|
+
var ref = (0, import_react42.useRef)(null);
|
|
7482
7745
|
var isRTL = direction === "rtl";
|
|
7483
7746
|
var size = useBreakpoint();
|
|
7484
7747
|
if (typeof window == "undefined") {
|
|
7485
7748
|
size = 1200;
|
|
7486
7749
|
}
|
|
7487
|
-
var _ref = _sliced_to_array((0,
|
|
7488
|
-
(0,
|
|
7750
|
+
var _ref = _sliced_to_array((0, import_react42.useState)(true), 2), openSideMenu = _ref[0], setOpenSideMenu = _ref[1];
|
|
7751
|
+
(0, import_react42.useEffect)(function() {
|
|
7489
7752
|
var handleClickOutside = function(event) {
|
|
7490
7753
|
if (ref.current && !ref.current.contains(event.target) && !openSideMenu) {
|
|
7491
7754
|
setOpenSideMenu(false);
|
|
@@ -7498,7 +7761,7 @@ var DocsLayout = function(_param) {
|
|
|
7498
7761
|
}, [
|
|
7499
7762
|
openSideMenu
|
|
7500
7763
|
]);
|
|
7501
|
-
(0,
|
|
7764
|
+
(0, import_react42.useEffect)(function() {
|
|
7502
7765
|
var handleResize = function() {
|
|
7503
7766
|
setOpenSideMenu(window.innerWidth > 600 ? true : false);
|
|
7504
7767
|
};
|
|
@@ -7511,23 +7774,23 @@ var DocsLayout = function(_param) {
|
|
|
7511
7774
|
keepOpen
|
|
7512
7775
|
]);
|
|
7513
7776
|
var drawerSizeCondition = drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize];
|
|
7514
|
-
return /* @__PURE__ */
|
|
7777
|
+
return /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7515
7778
|
className: "hawa-fixed"
|
|
7516
|
-
}, /* @__PURE__ */
|
|
7779
|
+
}, /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7517
7780
|
className: cn("hawa-fixed hawa-left-0 hawa-right-0 hawa-top-0 hawa-z-30 hawa-flex hawa-h-14 hawa-w-full hawa-items-center hawa-justify-between hawa-bg-primary-foreground hawa-p-2", isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row")
|
|
7518
|
-
}, size > 600 ? /* @__PURE__ */
|
|
7781
|
+
}, size > 600 ? /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7519
7782
|
onClick: props.onLogoClick,
|
|
7520
7783
|
dir: direction
|
|
7521
|
-
}, /* @__PURE__ */
|
|
7784
|
+
}, /* @__PURE__ */ import_react42.default.createElement("img", {
|
|
7522
7785
|
className: cn("hawa-h-8 hawa-opacity-0 hawa-transition-all", !openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"),
|
|
7523
7786
|
src: props.logoLink
|
|
7524
7787
|
})) : // Mobile Drawer Menu Button
|
|
7525
|
-
/* @__PURE__ */
|
|
7788
|
+
/* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7526
7789
|
dir: direction,
|
|
7527
7790
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
|
7528
|
-
}, /* @__PURE__ */
|
|
7791
|
+
}, /* @__PURE__ */ import_react42.default.createElement(Sheet, null, /* @__PURE__ */ import_react42.default.createElement(SheetTrigger, null, " ", /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7529
7792
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
|
7530
|
-
}, /* @__PURE__ */
|
|
7793
|
+
}, /* @__PURE__ */ import_react42.default.createElement("svg", {
|
|
7531
7794
|
"aria-label": "Menu Icon",
|
|
7532
7795
|
stroke: "currentColor",
|
|
7533
7796
|
fill: "currentColor",
|
|
@@ -7536,21 +7799,21 @@ var DocsLayout = function(_param) {
|
|
|
7536
7799
|
"aria-hidden": "true",
|
|
7537
7800
|
height: "1.6em",
|
|
7538
7801
|
width: "1.6em"
|
|
7539
|
-
}, /* @__PURE__ */
|
|
7802
|
+
}, /* @__PURE__ */ import_react42.default.createElement("path", {
|
|
7540
7803
|
fillRule: "evenodd",
|
|
7541
7804
|
clipRule: "evenodd",
|
|
7542
7805
|
d: "M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
|
7543
|
-
})))), /* @__PURE__ */
|
|
7806
|
+
})))), /* @__PURE__ */ import_react42.default.createElement(SheetContent, {
|
|
7544
7807
|
side: isRTL ? "right" : "left",
|
|
7545
7808
|
className: "hawa-pt-10"
|
|
7546
|
-
}, " ", /* @__PURE__ */
|
|
7809
|
+
}, " ", /* @__PURE__ */ import_react42.default.createElement(DocsSidebar, null)))), /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7547
7810
|
className: cn("hawa-flex hawa-gap-2 dark:hawa-text-white", isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row")
|
|
7548
|
-
}, /* @__PURE__ */
|
|
7811
|
+
}, /* @__PURE__ */ import_react42.default.createElement(Button, {
|
|
7549
7812
|
variant: "ghost",
|
|
7550
7813
|
size: "smallIcon"
|
|
7551
|
-
}, /* @__PURE__ */
|
|
7814
|
+
}, /* @__PURE__ */ import_react42.default.createElement(Logos.github, {
|
|
7552
7815
|
className: "hawa-icon"
|
|
7553
|
-
})))), /* @__PURE__ */
|
|
7816
|
+
})))), /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7554
7817
|
className: cn("hawa-fixed hawa-bg-primary-foreground hawa-z-40 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all", isRTL ? "hawa-right-0 hawa-top-0 hawa-h-full" : "hawa-left-0 hawa-top-0 hawa-h-full", "hawa-fixed hawa-p-0 hawa-py-2 hawa-overflow-x-clip hawa-transition-all", "hawa-top-14", openSideMenu ? "hawa-overflow-auto" : "hawa-overflow-hidden"),
|
|
7555
7818
|
style: {
|
|
7556
7819
|
// height: "calc(100%)",
|
|
@@ -7565,7 +7828,7 @@ var DocsLayout = function(_param) {
|
|
|
7565
7828
|
}
|
|
7566
7829
|
},
|
|
7567
7830
|
ref: ref
|
|
7568
|
-
}, /* @__PURE__ */
|
|
7831
|
+
}, /* @__PURE__ */ import_react42.default.createElement(DocsSidebar, null)), /* @__PURE__ */ import_react42.default.createElement("div", null, "overlay sidebar"), /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7569
7832
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all ",
|
|
7570
7833
|
style: isRTL ? {
|
|
7571
7834
|
height: "calc(100% - 56px)",
|
|
@@ -7583,68 +7846,68 @@ var DocsLayout = function(_param) {
|
|
|
7583
7846
|
}, props.children));
|
|
7584
7847
|
};
|
|
7585
7848
|
// components/blocks/auth/LoginForm.tsx
|
|
7586
|
-
var
|
|
7849
|
+
var import_react45 = __toESM(require("react"));
|
|
7587
7850
|
var import_react_hook_form = require("react-hook-form");
|
|
7588
7851
|
var import_zod = require("@hookform/resolvers/zod");
|
|
7589
7852
|
var import_libphonenumber_js = require("libphonenumber-js");
|
|
7590
7853
|
var z = __toESM(require("zod"));
|
|
7591
7854
|
// components/blocks/auth/AuthButtons.tsx
|
|
7592
|
-
var
|
|
7855
|
+
var import_react43 = __toESM(require("react"));
|
|
7593
7856
|
var AuthButtons = function(props) {
|
|
7594
7857
|
var _props_texts, _props_texts1, _props_texts2, _props_texts3, _props_texts4, _props_texts5, _props_texts6;
|
|
7595
7858
|
var _props_texts_continueWithGoogle, _props_texts_continueWithGithub, _props_texts_continueWithTwitter, _props_texts_continueWithApple, _props_texts_continueWithMicrosoft, _props_texts_continueWithEmail, _props_texts_continueWithPhone;
|
|
7596
|
-
return /* @__PURE__ */
|
|
7859
|
+
return /* @__PURE__ */ import_react43.default.createElement("div", {
|
|
7597
7860
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7598
|
-
}, props.viaGoogle && /* @__PURE__ */
|
|
7861
|
+
}, props.viaGoogle && /* @__PURE__ */ import_react43.default.createElement(Button, {
|
|
7599
7862
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7600
7863
|
variant: "outline",
|
|
7601
7864
|
onClick: props.handleGoogle
|
|
7602
|
-
}, /* @__PURE__ */
|
|
7865
|
+
}, /* @__PURE__ */ import_react43.default.createElement(Logos.google, {
|
|
7603
7866
|
className: "hawa-icon"
|
|
7604
|
-
}), (_props_texts_continueWithGoogle = (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.continueWithGoogle) !== null && _props_texts_continueWithGoogle !== void 0 ? _props_texts_continueWithGoogle : "Continue With Google"), props.viaGithub && /* @__PURE__ */
|
|
7867
|
+
}), (_props_texts_continueWithGoogle = (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.continueWithGoogle) !== null && _props_texts_continueWithGoogle !== void 0 ? _props_texts_continueWithGoogle : "Continue With Google"), props.viaGithub && /* @__PURE__ */ import_react43.default.createElement(Button, {
|
|
7605
7868
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7606
7869
|
variant: "outline",
|
|
7607
7870
|
onClick: props.handleGithub
|
|
7608
|
-
}, /* @__PURE__ */
|
|
7871
|
+
}, /* @__PURE__ */ import_react43.default.createElement(Logos.github, {
|
|
7609
7872
|
className: "hawa-icon"
|
|
7610
|
-
}), (_props_texts_continueWithGithub = (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.continueWithGithub) !== null && _props_texts_continueWithGithub !== void 0 ? _props_texts_continueWithGithub : "Continue With Github"), props.viaTwitter && /* @__PURE__ */
|
|
7873
|
+
}), (_props_texts_continueWithGithub = (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.continueWithGithub) !== null && _props_texts_continueWithGithub !== void 0 ? _props_texts_continueWithGithub : "Continue With Github"), props.viaTwitter && /* @__PURE__ */ import_react43.default.createElement(Button, {
|
|
7611
7874
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7612
7875
|
variant: "outline",
|
|
7613
7876
|
onClick: props.handleTwitter
|
|
7614
|
-
}, /* @__PURE__ */
|
|
7877
|
+
}, /* @__PURE__ */ import_react43.default.createElement(Logos.twitter, {
|
|
7615
7878
|
className: "hawa-icon"
|
|
7616
|
-
}), (_props_texts_continueWithTwitter = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.continueWithTwitter) !== null && _props_texts_continueWithTwitter !== void 0 ? _props_texts_continueWithTwitter : "Continue With Twitter"), props.viaApple && /* @__PURE__ */
|
|
7879
|
+
}), (_props_texts_continueWithTwitter = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.continueWithTwitter) !== null && _props_texts_continueWithTwitter !== void 0 ? _props_texts_continueWithTwitter : "Continue With Twitter"), props.viaApple && /* @__PURE__ */ import_react43.default.createElement(Button, {
|
|
7617
7880
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7618
7881
|
variant: "outline",
|
|
7619
7882
|
onClick: props.handleApple
|
|
7620
|
-
}, /* @__PURE__ */
|
|
7883
|
+
}, /* @__PURE__ */ import_react43.default.createElement(Logos.apple, {
|
|
7621
7884
|
className: "hawa-icon"
|
|
7622
|
-
}), (_props_texts_continueWithApple = (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.continueWithApple) !== null && _props_texts_continueWithApple !== void 0 ? _props_texts_continueWithApple : "Continue With Apple"), props.viaMicrosoft && /* @__PURE__ */
|
|
7885
|
+
}), (_props_texts_continueWithApple = (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.continueWithApple) !== null && _props_texts_continueWithApple !== void 0 ? _props_texts_continueWithApple : "Continue With Apple"), props.viaMicrosoft && /* @__PURE__ */ import_react43.default.createElement(Button, {
|
|
7623
7886
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7624
7887
|
variant: "outline",
|
|
7625
7888
|
onClick: props.handleMicrosoft
|
|
7626
|
-
}, /* @__PURE__ */
|
|
7889
|
+
}, /* @__PURE__ */ import_react43.default.createElement(Logos.microsoft, {
|
|
7627
7890
|
className: "hawa-icon"
|
|
7628
|
-
}), (_props_texts_continueWithMicrosoft = (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.continueWithMicrosoft) !== null && _props_texts_continueWithMicrosoft !== void 0 ? _props_texts_continueWithMicrosoft : "Continue With Microsoft"), props.viaEmail && /* @__PURE__ */
|
|
7891
|
+
}), (_props_texts_continueWithMicrosoft = (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.continueWithMicrosoft) !== null && _props_texts_continueWithMicrosoft !== void 0 ? _props_texts_continueWithMicrosoft : "Continue With Microsoft"), props.viaEmail && /* @__PURE__ */ import_react43.default.createElement(Button, {
|
|
7629
7892
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7630
7893
|
variant: "outline",
|
|
7631
7894
|
onClick: props.handleEmail
|
|
7632
|
-
}, /* @__PURE__ */
|
|
7895
|
+
}, /* @__PURE__ */ import_react43.default.createElement(Logos.mail, {
|
|
7633
7896
|
className: "hawa-icon"
|
|
7634
|
-
}), (_props_texts_continueWithEmail = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.continueWithEmail) !== null && _props_texts_continueWithEmail !== void 0 ? _props_texts_continueWithEmail : "Continue With Email"), props.viaPhone && /* @__PURE__ */
|
|
7897
|
+
}), (_props_texts_continueWithEmail = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.continueWithEmail) !== null && _props_texts_continueWithEmail !== void 0 ? _props_texts_continueWithEmail : "Continue With Email"), props.viaPhone && /* @__PURE__ */ import_react43.default.createElement(Button, {
|
|
7635
7898
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7636
7899
|
variant: "outline",
|
|
7637
7900
|
onClick: props.handlePhone
|
|
7638
|
-
}, /* @__PURE__ */
|
|
7901
|
+
}, /* @__PURE__ */ import_react43.default.createElement(Logos.phone, {
|
|
7639
7902
|
className: "hawa-icon"
|
|
7640
7903
|
}), (_props_texts_continueWithPhone = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.continueWithPhone) !== null && _props_texts_continueWithPhone !== void 0 ? _props_texts_continueWithPhone : "Continue With Phone"));
|
|
7641
7904
|
};
|
|
7642
7905
|
// components/icons/index.tsx
|
|
7643
|
-
var
|
|
7906
|
+
var import_react44 = __toESM(require("react"));
|
|
7644
7907
|
var EyeIcon = function(props) {
|
|
7645
|
-
return /* @__PURE__ */
|
|
7908
|
+
return /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7646
7909
|
className: props.classNames
|
|
7647
|
-
}, /* @__PURE__ */
|
|
7910
|
+
}, /* @__PURE__ */ import_react44.default.createElement("svg", {
|
|
7648
7911
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7649
7912
|
width: "24",
|
|
7650
7913
|
height: "24",
|
|
@@ -7654,18 +7917,18 @@ var EyeIcon = function(props) {
|
|
|
7654
7917
|
"stroke-width": "2",
|
|
7655
7918
|
"stroke-linecap": "round",
|
|
7656
7919
|
"stroke-linejoin": "round"
|
|
7657
|
-
}, /* @__PURE__ */
|
|
7920
|
+
}, /* @__PURE__ */ import_react44.default.createElement("path", {
|
|
7658
7921
|
d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"
|
|
7659
|
-
}), /* @__PURE__ */
|
|
7922
|
+
}), /* @__PURE__ */ import_react44.default.createElement("circle", {
|
|
7660
7923
|
cx: "12",
|
|
7661
7924
|
cy: "12",
|
|
7662
7925
|
r: "3"
|
|
7663
7926
|
})));
|
|
7664
7927
|
};
|
|
7665
7928
|
var HiddenEyeIcon = function(props) {
|
|
7666
|
-
return /* @__PURE__ */
|
|
7929
|
+
return /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7667
7930
|
className: props.classNames
|
|
7668
|
-
}, /* @__PURE__ */
|
|
7931
|
+
}, /* @__PURE__ */ import_react44.default.createElement("svg", {
|
|
7669
7932
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7670
7933
|
width: "24",
|
|
7671
7934
|
height: "24",
|
|
@@ -7675,13 +7938,13 @@ var HiddenEyeIcon = function(props) {
|
|
|
7675
7938
|
"stroke-width": "2",
|
|
7676
7939
|
"stroke-linecap": "round",
|
|
7677
7940
|
"stroke-linejoin": "round"
|
|
7678
|
-
}, /* @__PURE__ */
|
|
7941
|
+
}, /* @__PURE__ */ import_react44.default.createElement("path", {
|
|
7679
7942
|
d: "M9.88 9.88a3 3 0 1 0 4.24 4.24"
|
|
7680
|
-
}), /* @__PURE__ */
|
|
7943
|
+
}), /* @__PURE__ */ import_react44.default.createElement("path", {
|
|
7681
7944
|
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"
|
|
7682
|
-
}), /* @__PURE__ */
|
|
7945
|
+
}), /* @__PURE__ */ import_react44.default.createElement("path", {
|
|
7683
7946
|
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"
|
|
7684
|
-
}), /* @__PURE__ */
|
|
7947
|
+
}), /* @__PURE__ */ import_react44.default.createElement("line", {
|
|
7685
7948
|
x1: "2",
|
|
7686
7949
|
x2: "22",
|
|
7687
7950
|
y1: "2",
|
|
@@ -7695,7 +7958,7 @@ var LoginForm = function(_param) {
|
|
|
7695
7958
|
"texts",
|
|
7696
7959
|
"passwordLength"
|
|
7697
7960
|
]);
|
|
7698
|
-
var _ref = _sliced_to_array((0,
|
|
7961
|
+
var _ref = _sliced_to_array((0, import_react45.useState)(false), 2), passwordVisible = _ref[0], setPasswordVisible = _ref[1];
|
|
7699
7962
|
var thirdPartyAuthTexts = {
|
|
7700
7963
|
continueWithGoogle: texts === null || texts === void 0 ? void 0 : texts.continueWithGoogle,
|
|
7701
7964
|
continueWithTwitter: texts === null || texts === void 0 ? void 0 : texts.continueWithTwitter,
|
|
@@ -7777,13 +8040,13 @@ var LoginForm = function(_param) {
|
|
|
7777
8040
|
var renderFields = function() {
|
|
7778
8041
|
switch(loginType){
|
|
7779
8042
|
case "email":
|
|
7780
|
-
return /* @__PURE__ */
|
|
8043
|
+
return /* @__PURE__ */ import_react45.default.createElement(import_react45.default.Fragment, null, /* @__PURE__ */ import_react45.default.createElement(import_react_hook_form.Controller, {
|
|
7781
8044
|
control: control,
|
|
7782
8045
|
name: "email",
|
|
7783
8046
|
render: function(param) {
|
|
7784
8047
|
var field = param.field;
|
|
7785
8048
|
var _texts_email, _formState_errors_email, _texts_email1;
|
|
7786
|
-
return /* @__PURE__ */
|
|
8049
|
+
return /* @__PURE__ */ import_react45.default.createElement(Input, _object_spread({
|
|
7787
8050
|
width: "full",
|
|
7788
8051
|
autoComplete: "email",
|
|
7789
8052
|
label: texts === null || texts === void 0 ? void 0 : (_texts_email = texts.email) === null || _texts_email === void 0 ? void 0 : _texts_email.label,
|
|
@@ -7791,43 +8054,43 @@ var LoginForm = function(_param) {
|
|
|
7791
8054
|
placeholder: (texts === null || texts === void 0 ? void 0 : (_texts_email1 = texts.email) === null || _texts_email1 === void 0 ? void 0 : _texts_email1.placeholder) || "contact@sikka.io"
|
|
7792
8055
|
}, field));
|
|
7793
8056
|
}
|
|
7794
|
-
}), /* @__PURE__ */
|
|
8057
|
+
}), /* @__PURE__ */ import_react45.default.createElement("div", null, /* @__PURE__ */ import_react45.default.createElement(import_react_hook_form.Controller, {
|
|
7795
8058
|
control: control,
|
|
7796
8059
|
name: "password",
|
|
7797
8060
|
render: function(param) {
|
|
7798
8061
|
var field = param.field;
|
|
7799
8062
|
var _texts_password, _texts_password1, _formState_errors_password;
|
|
7800
|
-
return /* @__PURE__ */
|
|
8063
|
+
return /* @__PURE__ */ import_react45.default.createElement(Input, _object_spread({
|
|
7801
8064
|
width: "full",
|
|
7802
8065
|
autoComplete: "current-password",
|
|
7803
8066
|
type: passwordVisible ? "text" : "password",
|
|
7804
8067
|
label: (texts === null || texts === void 0 ? void 0 : (_texts_password = texts.password) === null || _texts_password === void 0 ? void 0 : _texts_password.label) || "Password",
|
|
7805
|
-
iconInside: /* @__PURE__ */
|
|
8068
|
+
iconInside: /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
7806
8069
|
className: "hawa-cursor-pointer",
|
|
7807
8070
|
onClick: function() {
|
|
7808
8071
|
return setPasswordVisible(!passwordVisible);
|
|
7809
8072
|
}
|
|
7810
|
-
}, passwordVisible ? /* @__PURE__ */
|
|
8073
|
+
}, passwordVisible ? /* @__PURE__ */ import_react45.default.createElement(EyeIcon, {
|
|
7811
8074
|
classNames: "hawa-text-gray-500"
|
|
7812
|
-
}) : /* @__PURE__ */
|
|
8075
|
+
}) : /* @__PURE__ */ import_react45.default.createElement(HiddenEyeIcon, {
|
|
7813
8076
|
classNames: "hawa-text-gray-500"
|
|
7814
8077
|
})),
|
|
7815
8078
|
placeholder: (texts === null || texts === void 0 ? void 0 : (_texts_password1 = texts.password) === null || _texts_password1 === void 0 ? void 0 : _texts_password1.placeholder) || "Enter your password",
|
|
7816
8079
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
7817
8080
|
}, field));
|
|
7818
8081
|
}
|
|
7819
|
-
}), !props.withoutResetPassword && /* @__PURE__ */
|
|
8082
|
+
}), !props.withoutResetPassword && /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
7820
8083
|
onClick: props.onForgotPassword,
|
|
7821
8084
|
className: "hawa-mb-3 hawa-select-none hawa-mt-2 hawa-w-fit hawa-cursor-pointer hawa-text-xs dark:hawa-text-gray-300"
|
|
7822
8085
|
}, (texts === null || texts === void 0 ? void 0 : texts.forgotPassword) || "Forgot Password?")));
|
|
7823
8086
|
case "username":
|
|
7824
|
-
return /* @__PURE__ */
|
|
8087
|
+
return /* @__PURE__ */ import_react45.default.createElement(import_react45.default.Fragment, null, /* @__PURE__ */ import_react45.default.createElement(import_react_hook_form.Controller, {
|
|
7825
8088
|
control: control,
|
|
7826
8089
|
name: "username",
|
|
7827
8090
|
render: function(param) {
|
|
7828
8091
|
var field = param.field;
|
|
7829
8092
|
var _texts_username, _formState_errors_username, _texts_username1;
|
|
7830
|
-
return /* @__PURE__ */
|
|
8093
|
+
return /* @__PURE__ */ import_react45.default.createElement(Input, _object_spread({
|
|
7831
8094
|
width: "full",
|
|
7832
8095
|
autoComplete: "username",
|
|
7833
8096
|
label: (texts === null || texts === void 0 ? void 0 : (_texts_username = texts.username) === null || _texts_username === void 0 ? void 0 : _texts_username.label) || "Username",
|
|
@@ -7835,43 +8098,43 @@ var LoginForm = function(_param) {
|
|
|
7835
8098
|
placeholder: (texts === null || texts === void 0 ? void 0 : (_texts_username1 = texts.username) === null || _texts_username1 === void 0 ? void 0 : _texts_username1.placeholder) || "sikka_sa"
|
|
7836
8099
|
}, field));
|
|
7837
8100
|
}
|
|
7838
|
-
}), /* @__PURE__ */
|
|
8101
|
+
}), /* @__PURE__ */ import_react45.default.createElement("div", null, /* @__PURE__ */ import_react45.default.createElement(import_react_hook_form.Controller, {
|
|
7839
8102
|
control: control,
|
|
7840
8103
|
name: "password",
|
|
7841
8104
|
render: function(param) {
|
|
7842
8105
|
var field = param.field;
|
|
7843
8106
|
var _texts_password, _texts_password1, _formState_errors_password;
|
|
7844
|
-
return /* @__PURE__ */
|
|
8107
|
+
return /* @__PURE__ */ import_react45.default.createElement(Input, _object_spread({
|
|
7845
8108
|
width: "full",
|
|
7846
8109
|
autoComplete: "current-password",
|
|
7847
8110
|
type: passwordVisible ? "text" : "password",
|
|
7848
8111
|
label: texts === null || texts === void 0 ? void 0 : (_texts_password = texts.password) === null || _texts_password === void 0 ? void 0 : _texts_password.label,
|
|
7849
|
-
iconInside: /* @__PURE__ */
|
|
8112
|
+
iconInside: /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
7850
8113
|
className: "hawa-cursor-pointer",
|
|
7851
8114
|
onClick: function() {
|
|
7852
8115
|
return setPasswordVisible(!passwordVisible);
|
|
7853
8116
|
}
|
|
7854
|
-
}, passwordVisible ? /* @__PURE__ */
|
|
8117
|
+
}, passwordVisible ? /* @__PURE__ */ import_react45.default.createElement(EyeIcon, {
|
|
7855
8118
|
classNames: "hawa-text-gray-500"
|
|
7856
|
-
}) : /* @__PURE__ */
|
|
8119
|
+
}) : /* @__PURE__ */ import_react45.default.createElement(HiddenEyeIcon, {
|
|
7857
8120
|
classNames: "hawa-text-gray-500"
|
|
7858
8121
|
})),
|
|
7859
8122
|
placeholder: (texts === null || texts === void 0 ? void 0 : (_texts_password1 = texts.password) === null || _texts_password1 === void 0 ? void 0 : _texts_password1.placeholder) || "Enter your password",
|
|
7860
8123
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
7861
8124
|
}, field));
|
|
7862
8125
|
}
|
|
7863
|
-
}), !props.withoutResetPassword && /* @__PURE__ */
|
|
8126
|
+
}), !props.withoutResetPassword && /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
7864
8127
|
onClick: props.onForgotPassword,
|
|
7865
8128
|
className: "hawa-mb-3 hawa-select-none hawa-mt-2 hawa-w-fit hawa-cursor-pointer hawa-text-xs dark:hawa-text-gray-300"
|
|
7866
8129
|
}, (texts === null || texts === void 0 ? void 0 : texts.forgotPassword) || "Forgot Password?")));
|
|
7867
8130
|
case "phone":
|
|
7868
|
-
return /* @__PURE__ */
|
|
8131
|
+
return /* @__PURE__ */ import_react45.default.createElement(import_react45.default.Fragment, null, /* @__PURE__ */ import_react45.default.createElement(import_react_hook_form.Controller, {
|
|
7869
8132
|
control: control,
|
|
7870
8133
|
name: "phone",
|
|
7871
8134
|
render: function(param) {
|
|
7872
8135
|
var field = param.field;
|
|
7873
8136
|
var _texts_phone, _formState_errors_phone;
|
|
7874
|
-
return /* @__PURE__ */
|
|
8137
|
+
return /* @__PURE__ */ import_react45.default.createElement(PhoneInput, {
|
|
7875
8138
|
label: texts === null || texts === void 0 ? void 0 : (_texts_phone = texts.phone) === null || _texts_phone === void 0 ? void 0 : _texts_phone.label,
|
|
7876
8139
|
helperText: (_formState_errors_phone = formState.errors.phone) === null || _formState_errors_phone === void 0 ? void 0 : _formState_errors_phone.message,
|
|
7877
8140
|
preferredCountry: {
|
|
@@ -7884,13 +8147,13 @@ var LoginForm = function(_param) {
|
|
|
7884
8147
|
}
|
|
7885
8148
|
}));
|
|
7886
8149
|
case "link":
|
|
7887
|
-
return /* @__PURE__ */
|
|
8150
|
+
return /* @__PURE__ */ import_react45.default.createElement(import_react45.default.Fragment, null, /* @__PURE__ */ import_react45.default.createElement(import_react_hook_form.Controller, {
|
|
7888
8151
|
control: control,
|
|
7889
8152
|
name: "email",
|
|
7890
8153
|
render: function(param) {
|
|
7891
8154
|
var field = param.field;
|
|
7892
8155
|
var _texts_email, _formState_errors_email, _texts_email1;
|
|
7893
|
-
return /* @__PURE__ */
|
|
8156
|
+
return /* @__PURE__ */ import_react45.default.createElement(Input, _object_spread({
|
|
7894
8157
|
width: "full",
|
|
7895
8158
|
autoComplete: "email",
|
|
7896
8159
|
label: (texts === null || texts === void 0 ? void 0 : (_texts_email = texts.email) === null || _texts_email === void 0 ? void 0 : _texts_email.label) || "Email",
|
|
@@ -7903,17 +8166,17 @@ var LoginForm = function(_param) {
|
|
|
7903
8166
|
break;
|
|
7904
8167
|
}
|
|
7905
8168
|
};
|
|
7906
|
-
return /* @__PURE__ */
|
|
8169
|
+
return /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
7907
8170
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7908
|
-
}, /* @__PURE__ */
|
|
8171
|
+
}, /* @__PURE__ */ import_react45.default.createElement(Card, {
|
|
7909
8172
|
dir: props.direction
|
|
7910
|
-
}, /* @__PURE__ */
|
|
8173
|
+
}, /* @__PURE__ */ import_react45.default.createElement(CardContent, {
|
|
7911
8174
|
headless: true
|
|
7912
|
-
}, props.showError && /* @__PURE__ */
|
|
8175
|
+
}, props.showError && /* @__PURE__ */ import_react45.default.createElement(Alert, {
|
|
7913
8176
|
title: props.errorTitle,
|
|
7914
8177
|
text: props.errorText,
|
|
7915
8178
|
severity: "error"
|
|
7916
|
-
}), /* @__PURE__ */
|
|
8179
|
+
}), /* @__PURE__ */ import_react45.default.createElement("form", {
|
|
7917
8180
|
noValidate: true,
|
|
7918
8181
|
className: "hawa-flex hawa-flex-col hawa-gap-4",
|
|
7919
8182
|
onSubmit: handleSubmit(function(e) {
|
|
@@ -7923,18 +8186,18 @@ var LoginForm = function(_param) {
|
|
|
7923
8186
|
console.log("Form is submitted but onLogin prop is missing");
|
|
7924
8187
|
}
|
|
7925
8188
|
})
|
|
7926
|
-
}, renderFields(), /* @__PURE__ */
|
|
8189
|
+
}, renderFields(), /* @__PURE__ */ import_react45.default.createElement(Button, {
|
|
7927
8190
|
className: "hawa-mt-0 hawa-w-full",
|
|
7928
8191
|
type: "submit",
|
|
7929
8192
|
isLoading: props.isLoading
|
|
7930
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login"), props.additionalButtons, props.allowRegister && /* @__PURE__ */
|
|
8193
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login"), props.additionalButtons, props.allowRegister && /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
7931
8194
|
className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal hawa-select-none dark:hawa-text-gray-300"
|
|
7932
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.newUserText) || "New user?", " ", /* @__PURE__ */
|
|
8195
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.newUserText) || "New user?", " ", /* @__PURE__ */ import_react45.default.createElement("span", {
|
|
7933
8196
|
onClick: props.onRouteToRegister,
|
|
7934
8197
|
className: "clickable-link"
|
|
7935
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.createAccount) || "Create Account")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
|
8198
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.createAccount) || "Create Account")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react45.default.createElement(CardFooter, {
|
|
7936
8199
|
className: cn(props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2")
|
|
7937
|
-
}, /* @__PURE__ */
|
|
8200
|
+
}, /* @__PURE__ */ import_react45.default.createElement(AuthButtons, {
|
|
7938
8201
|
texts: thirdPartyAuthTexts,
|
|
7939
8202
|
viaGoogle: props.viaGoogle,
|
|
7940
8203
|
viaGithub: props.viaGithub,
|
|
@@ -7942,7 +8205,7 @@ var LoginForm = function(_param) {
|
|
|
7942
8205
|
handleGoogle: props.onGoogleLogin,
|
|
7943
8206
|
handleGithub: props.onGithubLogin,
|
|
7944
8207
|
handleTwitter: props.onTwitterLogin
|
|
7945
|
-
})) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */
|
|
8208
|
+
})) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ import_react45.default.createElement(InterfaceSettings, {
|
|
7946
8209
|
currentColorMode: props.currentColorMode,
|
|
7947
8210
|
currentLanguage: props.currentLanguage,
|
|
7948
8211
|
handleColorMode: props.handleColorMode,
|
|
@@ -7950,7 +8213,7 @@ var LoginForm = function(_param) {
|
|
|
7950
8213
|
}));
|
|
7951
8214
|
};
|
|
7952
8215
|
// components/blocks/auth/RegisterForm.tsx
|
|
7953
|
-
var
|
|
8216
|
+
var import_react46 = __toESM(require("react"));
|
|
7954
8217
|
var import_react_hook_form2 = require("react-hook-form");
|
|
7955
8218
|
var import_zod2 = require("@hookform/resolvers/zod");
|
|
7956
8219
|
var z2 = __toESM(require("zod"));
|
|
@@ -7959,7 +8222,7 @@ var RegisterForm = function(_param) {
|
|
|
7959
8222
|
"texts"
|
|
7960
8223
|
]);
|
|
7961
8224
|
var _texts_password, _texts_password1, _texts_password2, _texts_confirm, _texts_password3, _texts_confirm1;
|
|
7962
|
-
var _ref = _sliced_to_array((0,
|
|
8225
|
+
var _ref = _sliced_to_array((0, import_react46.useState)(false), 2), passwordVisible = _ref[0], setPasswordVisible = _ref[1];
|
|
7963
8226
|
var thirdPartyAuthTexts = {
|
|
7964
8227
|
continueWithGoogle: texts === null || texts === void 0 ? void 0 : texts.continueWithGoogle,
|
|
7965
8228
|
continueWithTwitter: texts === null || texts === void 0 ? void 0 : texts.continueWithTwitter,
|
|
@@ -8039,17 +8302,17 @@ var RegisterForm = function(_param) {
|
|
|
8039
8302
|
var _ref1 = (0, import_react_hook_form2.useForm)({
|
|
8040
8303
|
resolver: (0, import_zod2.zodResolver)(formSchema)
|
|
8041
8304
|
}), handleSubmit = _ref1.handleSubmit, control = _ref1.control, formState = _ref1.formState;
|
|
8042
|
-
return /* @__PURE__ */
|
|
8305
|
+
return /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
8043
8306
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
8044
|
-
}, /* @__PURE__ */
|
|
8307
|
+
}, /* @__PURE__ */ import_react46.default.createElement(Card, {
|
|
8045
8308
|
dir: props.direction
|
|
8046
|
-
}, /* @__PURE__ */
|
|
8309
|
+
}, /* @__PURE__ */ import_react46.default.createElement(CardContent, {
|
|
8047
8310
|
headless: true
|
|
8048
|
-
}, /* @__PURE__ */
|
|
8311
|
+
}, /* @__PURE__ */ import_react46.default.createElement("div", null, props.showError && /* @__PURE__ */ import_react46.default.createElement(Alert, {
|
|
8049
8312
|
title: props.errorTitle,
|
|
8050
8313
|
text: props.errorText,
|
|
8051
8314
|
severity: "error"
|
|
8052
|
-
}), /* @__PURE__ */
|
|
8315
|
+
}), /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.FormProvider, _object_spread({}, methods), /* @__PURE__ */ import_react46.default.createElement("form", {
|
|
8053
8316
|
noValidate: true,
|
|
8054
8317
|
onSubmit: handleSubmit(function(e) {
|
|
8055
8318
|
if (props.onRegister) {
|
|
@@ -8059,18 +8322,18 @@ var RegisterForm = function(_param) {
|
|
|
8059
8322
|
}
|
|
8060
8323
|
}),
|
|
8061
8324
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
8062
|
-
}, /* @__PURE__ */
|
|
8325
|
+
}, /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
8063
8326
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
8064
8327
|
}, props.registerFields.map(function(fld, i) {
|
|
8065
8328
|
if (fld === "fullname") {
|
|
8066
|
-
return /* @__PURE__ */
|
|
8329
|
+
return /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.Controller, {
|
|
8067
8330
|
key: i,
|
|
8068
8331
|
control: control,
|
|
8069
8332
|
name: "fullName",
|
|
8070
8333
|
render: function(param) {
|
|
8071
8334
|
var field = param.field;
|
|
8072
8335
|
var _texts_fullName, _texts_fullName1, _formState_errors_fullName;
|
|
8073
|
-
return /* @__PURE__ */
|
|
8336
|
+
return /* @__PURE__ */ import_react46.default.createElement(Input, _object_spread({
|
|
8074
8337
|
width: "full",
|
|
8075
8338
|
label: texts === null || texts === void 0 ? void 0 : (_texts_fullName = texts.fullName) === null || _texts_fullName === void 0 ? void 0 : _texts_fullName.label,
|
|
8076
8339
|
placeholder: texts === null || texts === void 0 ? void 0 : (_texts_fullName1 = texts.fullName) === null || _texts_fullName1 === void 0 ? void 0 : _texts_fullName1.placeholder,
|
|
@@ -8080,14 +8343,14 @@ var RegisterForm = function(_param) {
|
|
|
8080
8343
|
});
|
|
8081
8344
|
}
|
|
8082
8345
|
if (fld === "email") {
|
|
8083
|
-
return /* @__PURE__ */
|
|
8346
|
+
return /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.Controller, {
|
|
8084
8347
|
key: i,
|
|
8085
8348
|
control: control,
|
|
8086
8349
|
name: "email",
|
|
8087
8350
|
render: function(param) {
|
|
8088
8351
|
var field = param.field;
|
|
8089
8352
|
var _texts_email, _formState_errors_email, _texts_email1;
|
|
8090
|
-
return /* @__PURE__ */
|
|
8353
|
+
return /* @__PURE__ */ import_react46.default.createElement(Input, _object_spread({
|
|
8091
8354
|
width: "full",
|
|
8092
8355
|
autoComplete: "email",
|
|
8093
8356
|
label: texts === null || texts === void 0 ? void 0 : (_texts_email = texts.email) === null || _texts_email === void 0 ? void 0 : _texts_email.label,
|
|
@@ -8098,14 +8361,14 @@ var RegisterForm = function(_param) {
|
|
|
8098
8361
|
});
|
|
8099
8362
|
}
|
|
8100
8363
|
if (fld === "username") {
|
|
8101
|
-
return /* @__PURE__ */
|
|
8364
|
+
return /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.Controller, {
|
|
8102
8365
|
key: i,
|
|
8103
8366
|
control: control,
|
|
8104
8367
|
name: "username",
|
|
8105
8368
|
render: function(param) {
|
|
8106
8369
|
var field = param.field;
|
|
8107
8370
|
var _texts_username, _formState_errors_username, _texts_username1;
|
|
8108
|
-
return /* @__PURE__ */
|
|
8371
|
+
return /* @__PURE__ */ import_react46.default.createElement(Input, _object_spread({
|
|
8109
8372
|
width: "full",
|
|
8110
8373
|
autoComplete: "username",
|
|
8111
8374
|
label: texts === null || texts === void 0 ? void 0 : (_texts_username = texts.username) === null || _texts_username === void 0 ? void 0 : _texts_username.label,
|
|
@@ -8115,23 +8378,23 @@ var RegisterForm = function(_param) {
|
|
|
8115
8378
|
}
|
|
8116
8379
|
});
|
|
8117
8380
|
}
|
|
8118
|
-
})), /* @__PURE__ */
|
|
8381
|
+
})), /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.Controller, {
|
|
8119
8382
|
control: control,
|
|
8120
8383
|
name: "password",
|
|
8121
8384
|
render: function(param) {
|
|
8122
8385
|
var field = param.field;
|
|
8123
8386
|
var _texts_password, _texts_password1, _formState_errors_password;
|
|
8124
|
-
return /* @__PURE__ */
|
|
8387
|
+
return /* @__PURE__ */ import_react46.default.createElement(Input, _object_spread({
|
|
8125
8388
|
width: "full",
|
|
8126
8389
|
type: passwordVisible ? "text" : "password",
|
|
8127
|
-
iconInside: /* @__PURE__ */
|
|
8390
|
+
iconInside: /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
8128
8391
|
className: "hawa-cursor-pointer",
|
|
8129
8392
|
onClick: function() {
|
|
8130
8393
|
return setPasswordVisible(!passwordVisible);
|
|
8131
8394
|
}
|
|
8132
|
-
}, passwordVisible ? /* @__PURE__ */
|
|
8395
|
+
}, passwordVisible ? /* @__PURE__ */ import_react46.default.createElement(EyeIcon, {
|
|
8133
8396
|
classNames: "hawa-text-gray-500"
|
|
8134
|
-
}) : /* @__PURE__ */
|
|
8397
|
+
}) : /* @__PURE__ */ import_react46.default.createElement(HiddenEyeIcon, {
|
|
8135
8398
|
classNames: "hawa-text-gray-500"
|
|
8136
8399
|
}), " "),
|
|
8137
8400
|
autoComplete: "new-password",
|
|
@@ -8140,13 +8403,13 @@ var RegisterForm = function(_param) {
|
|
|
8140
8403
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
8141
8404
|
}, field));
|
|
8142
8405
|
}
|
|
8143
|
-
}), /* @__PURE__ */
|
|
8406
|
+
}), /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.Controller, {
|
|
8144
8407
|
control: control,
|
|
8145
8408
|
name: "confirm_password",
|
|
8146
8409
|
render: function(param) {
|
|
8147
8410
|
var field = param.field;
|
|
8148
8411
|
var _texts_confirm, _texts_confirm1, _formState_errors_confirm_password;
|
|
8149
|
-
return /* @__PURE__ */
|
|
8412
|
+
return /* @__PURE__ */ import_react46.default.createElement(Input, _object_spread({
|
|
8150
8413
|
width: "full",
|
|
8151
8414
|
type: "password",
|
|
8152
8415
|
autoComplete: "new-password",
|
|
@@ -8155,25 +8418,25 @@ var RegisterForm = function(_param) {
|
|
|
8155
8418
|
helperText: (_formState_errors_confirm_password = formState.errors.confirm_password) === null || _formState_errors_confirm_password === void 0 ? void 0 : _formState_errors_confirm_password.message
|
|
8156
8419
|
}, field));
|
|
8157
8420
|
}
|
|
8158
|
-
}), props.additionalInputs, props.showRefCode && /* @__PURE__ */
|
|
8421
|
+
}), props.additionalInputs, props.showRefCode && /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.Controller, {
|
|
8159
8422
|
control: control,
|
|
8160
8423
|
name: "refCode",
|
|
8161
8424
|
render: function(param) {
|
|
8162
8425
|
var field = param.field;
|
|
8163
8426
|
var _formState_errors_refCode;
|
|
8164
|
-
return /* @__PURE__ */
|
|
8427
|
+
return /* @__PURE__ */ import_react46.default.createElement(Input, _object_spread({
|
|
8165
8428
|
width: "full",
|
|
8166
8429
|
label: texts === null || texts === void 0 ? void 0 : texts.refCode,
|
|
8167
8430
|
placeholder: (texts === null || texts === void 0 ? void 0 : texts.refCodePlaceholder) || "Enter the referral code",
|
|
8168
8431
|
helperText: (_formState_errors_refCode = formState.errors.refCode) === null || _formState_errors_refCode === void 0 ? void 0 : _formState_errors_refCode.message
|
|
8169
8432
|
}, field));
|
|
8170
8433
|
}
|
|
8171
|
-
}), props.showUserSource && /* @__PURE__ */
|
|
8434
|
+
}), props.showUserSource && /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.Controller, {
|
|
8172
8435
|
control: control,
|
|
8173
8436
|
name: "reference",
|
|
8174
8437
|
render: function(param) {
|
|
8175
8438
|
var field = param.field;
|
|
8176
|
-
return /* @__PURE__ */
|
|
8439
|
+
return /* @__PURE__ */ import_react46.default.createElement(Select, {
|
|
8177
8440
|
label: (texts === null || texts === void 0 ? void 0 : texts.userReference.label) || "How did you learn about us?",
|
|
8178
8441
|
placeholder: texts === null || texts === void 0 ? void 0 : texts.userReference.placeholder,
|
|
8179
8442
|
isCreatable: false,
|
|
@@ -8186,50 +8449,50 @@ var RegisterForm = function(_param) {
|
|
|
8186
8449
|
}
|
|
8187
8450
|
});
|
|
8188
8451
|
}
|
|
8189
|
-
}), /* @__PURE__ */
|
|
8452
|
+
}), /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
8190
8453
|
className: "hawa-flex hawa-flex-col hawa-gap-3"
|
|
8191
|
-
}, props.showTermsOption && /* @__PURE__ */
|
|
8454
|
+
}, props.showTermsOption && /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.Controller, {
|
|
8192
8455
|
control: control,
|
|
8193
8456
|
name: "terms_accepted",
|
|
8194
8457
|
render: function(param) {
|
|
8195
8458
|
var field = param.field;
|
|
8196
8459
|
var _formState_errors_terms_accepted_message, _formState_errors_terms_accepted;
|
|
8197
|
-
return /* @__PURE__ */
|
|
8460
|
+
return /* @__PURE__ */ import_react46.default.createElement(Checkbox, {
|
|
8198
8461
|
id: "terms_accepted",
|
|
8199
8462
|
helperText: (_formState_errors_terms_accepted = formState.errors.terms_accepted) === null || _formState_errors_terms_accepted === void 0 ? void 0 : (_formState_errors_terms_accepted_message = _formState_errors_terms_accepted.message) === null || _formState_errors_terms_accepted_message === void 0 ? void 0 : _formState_errors_terms_accepted_message.toString(),
|
|
8200
8463
|
onCheckedChange: function(e) {
|
|
8201
8464
|
return field.onChange(e);
|
|
8202
8465
|
},
|
|
8203
|
-
label: /* @__PURE__ */
|
|
8466
|
+
label: /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
8204
8467
|
className: "hawa-flex hawa-flex-row hawa-gap-0.5"
|
|
8205
|
-
}, /* @__PURE__ */
|
|
8468
|
+
}, /* @__PURE__ */ import_react46.default.createElement("span", null, texts === null || texts === void 0 ? void 0 : texts.iAcceptText), " ", /* @__PURE__ */ import_react46.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react46.default.createElement("a", {
|
|
8206
8469
|
onClick: props.onRouteToTOS,
|
|
8207
8470
|
className: "clickable-link"
|
|
8208
8471
|
}, texts === null || texts === void 0 ? void 0 : texts.termsText)))
|
|
8209
8472
|
});
|
|
8210
8473
|
}
|
|
8211
|
-
}), props.showNewsletterOption && /* @__PURE__ */
|
|
8474
|
+
}), props.showNewsletterOption && /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.Controller, {
|
|
8212
8475
|
control: control,
|
|
8213
8476
|
name: "newsletter_accepted",
|
|
8214
8477
|
render: function(param) {
|
|
8215
8478
|
var field = param.field;
|
|
8216
|
-
return /* @__PURE__ */
|
|
8479
|
+
return /* @__PURE__ */ import_react46.default.createElement(Checkbox, {
|
|
8217
8480
|
id: "newsletter_accepted",
|
|
8218
8481
|
label: texts === null || texts === void 0 ? void 0 : texts.subscribeToNewsletter,
|
|
8219
8482
|
onCheckedChange: field.onChange
|
|
8220
8483
|
});
|
|
8221
8484
|
}
|
|
8222
|
-
})), /* @__PURE__ */
|
|
8485
|
+
})), /* @__PURE__ */ import_react46.default.createElement(Button, {
|
|
8223
8486
|
isLoading: props.isLoading,
|
|
8224
8487
|
className: "hawa-w-full hawa-mt-4"
|
|
8225
|
-
}, texts === null || texts === void 0 ? void 0 : texts.registerText), props.additionalButtons)), /* @__PURE__ */
|
|
8488
|
+
}, texts === null || texts === void 0 ? void 0 : texts.registerText), props.additionalButtons)), /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
8226
8489
|
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"
|
|
8227
|
-
}, /* @__PURE__ */
|
|
8490
|
+
}, /* @__PURE__ */ import_react46.default.createElement("span", null, texts === null || texts === void 0 ? void 0 : texts.existingUserText), /* @__PURE__ */ import_react46.default.createElement("span", {
|
|
8228
8491
|
onClick: props.onRouteToLogin,
|
|
8229
8492
|
className: "clickable-link"
|
|
8230
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
|
8493
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react46.default.createElement(CardFooter, {
|
|
8231
8494
|
className: cn(props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2")
|
|
8232
|
-
}, /* @__PURE__ */
|
|
8495
|
+
}, /* @__PURE__ */ import_react46.default.createElement(AuthButtons, {
|
|
8233
8496
|
texts: thirdPartyAuthTexts,
|
|
8234
8497
|
viaGoogle: props.viaGoogle,
|
|
8235
8498
|
viaGithub: props.viaGithub,
|
|
@@ -8237,7 +8500,7 @@ var RegisterForm = function(_param) {
|
|
|
8237
8500
|
handleGoogle: props.onGoogleRegister,
|
|
8238
8501
|
handleGithub: props.onGithubRegister,
|
|
8239
8502
|
handleTwitter: props.onTwitterRegister
|
|
8240
|
-
})) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */
|
|
8503
|
+
})) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ import_react46.default.createElement(InterfaceSettings, {
|
|
8241
8504
|
currentColorMode: props.currentColorMode,
|
|
8242
8505
|
currentLanguage: props.currentLanguage,
|
|
8243
8506
|
handleColorMode: props.handleColorMode,
|
|
@@ -8245,7 +8508,7 @@ var RegisterForm = function(_param) {
|
|
|
8245
8508
|
}));
|
|
8246
8509
|
};
|
|
8247
8510
|
// components/blocks/auth/AppLanding.tsx
|
|
8248
|
-
var
|
|
8511
|
+
var import_react47 = __toESM(require("react"));
|
|
8249
8512
|
var AppLanding = function(_param) {
|
|
8250
8513
|
var texts = _param.texts, props = _object_without_properties(_param, [
|
|
8251
8514
|
"texts"
|
|
@@ -8259,12 +8522,12 @@ var AppLanding = function(_param) {
|
|
|
8259
8522
|
continueWithEmail: texts === null || texts === void 0 ? void 0 : texts.continueWithEmail,
|
|
8260
8523
|
continueWithPhone: texts === null || texts === void 0 ? void 0 : texts.continueWithPhone
|
|
8261
8524
|
};
|
|
8262
|
-
return /* @__PURE__ */
|
|
8525
|
+
return /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8263
8526
|
dir: props.direction
|
|
8264
|
-
}, /* @__PURE__ */
|
|
8527
|
+
}, /* @__PURE__ */ import_react47.default.createElement(Card, null, /* @__PURE__ */ import_react47.default.createElement(CardContent, {
|
|
8265
8528
|
headless: true,
|
|
8266
8529
|
className: "hawa-flex hawa-flex-col hawa-gap-6"
|
|
8267
|
-
}, /* @__PURE__ */
|
|
8530
|
+
}, /* @__PURE__ */ import_react47.default.createElement(AuthButtons, {
|
|
8268
8531
|
texts: thirdPartyAuthTexts,
|
|
8269
8532
|
viaApple: props.viaApple,
|
|
8270
8533
|
viaGoogle: props.viaGoogle,
|
|
@@ -8281,14 +8544,14 @@ var AppLanding = function(_param) {
|
|
|
8281
8544
|
handleEmail: props.handleEmail,
|
|
8282
8545
|
handlePhone: props.handlePhone
|
|
8283
8546
|
}), !props.withoutSignUp && //TODO: change to "register"
|
|
8284
|
-
/* @__PURE__ */
|
|
8547
|
+
/* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8285
8548
|
className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300"
|
|
8286
|
-
}, texts === null || texts === void 0 ? void 0 : texts.newUserText, " ", /* @__PURE__ */
|
|
8549
|
+
}, texts === null || texts === void 0 ? void 0 : texts.newUserText, " ", /* @__PURE__ */ import_react47.default.createElement("span", {
|
|
8287
8550
|
onClick: props.handleRouteToRegister,
|
|
8288
8551
|
className: "clickable-link"
|
|
8289
|
-
}, texts === null || texts === void 0 ? void 0 : texts.createAccount)))), /* @__PURE__ */
|
|
8552
|
+
}, texts === null || texts === void 0 ? void 0 : texts.createAccount)))), /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8290
8553
|
className: "hawa-mt-4 hawa-flex hawa-flex-row hawa-justify-between"
|
|
8291
|
-
}, /* @__PURE__ */
|
|
8554
|
+
}, /* @__PURE__ */ import_react47.default.createElement(Radio, {
|
|
8292
8555
|
onChangeTab: props.handleLanguage,
|
|
8293
8556
|
design: "tabs",
|
|
8294
8557
|
options: [
|
|
@@ -8301,20 +8564,20 @@ var AppLanding = function(_param) {
|
|
|
8301
8564
|
label: "English"
|
|
8302
8565
|
}
|
|
8303
8566
|
]
|
|
8304
|
-
}), /* @__PURE__ */
|
|
8567
|
+
}), /* @__PURE__ */ import_react47.default.createElement(Radio, {
|
|
8305
8568
|
onChangeTab: props.handleColorMode,
|
|
8306
8569
|
design: "tabs",
|
|
8307
8570
|
options: [
|
|
8308
8571
|
{
|
|
8309
8572
|
value: "light",
|
|
8310
|
-
label: /* @__PURE__ */
|
|
8573
|
+
label: /* @__PURE__ */ import_react47.default.createElement("svg", {
|
|
8311
8574
|
width: "15",
|
|
8312
8575
|
height: "15",
|
|
8313
8576
|
viewBox: "0 0 15 15",
|
|
8314
8577
|
fill: "none",
|
|
8315
8578
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8316
8579
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
|
8317
|
-
}, /* @__PURE__ */
|
|
8580
|
+
}, /* @__PURE__ */ import_react47.default.createElement("path", {
|
|
8318
8581
|
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",
|
|
8319
8582
|
fill: "currentColor",
|
|
8320
8583
|
fillRule: "evenodd",
|
|
@@ -8323,7 +8586,7 @@ var AppLanding = function(_param) {
|
|
|
8323
8586
|
},
|
|
8324
8587
|
{
|
|
8325
8588
|
value: "dark",
|
|
8326
|
-
label: /* @__PURE__ */
|
|
8589
|
+
label: /* @__PURE__ */ import_react47.default.createElement("svg", {
|
|
8327
8590
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8328
8591
|
width: "24",
|
|
8329
8592
|
height: "24",
|
|
@@ -8334,7 +8597,7 @@ var AppLanding = function(_param) {
|
|
|
8334
8597
|
strokeLinecap: "round",
|
|
8335
8598
|
strokeLinejoin: "round",
|
|
8336
8599
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
|
8337
|
-
}, /* @__PURE__ */
|
|
8600
|
+
}, /* @__PURE__ */ import_react47.default.createElement("path", {
|
|
8338
8601
|
d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"
|
|
8339
8602
|
}))
|
|
8340
8603
|
}
|
|
@@ -8342,16 +8605,16 @@ var AppLanding = function(_param) {
|
|
|
8342
8605
|
})));
|
|
8343
8606
|
};
|
|
8344
8607
|
// components/blocks/auth/CheckEmail.tsx
|
|
8345
|
-
var
|
|
8608
|
+
var import_react48 = __toESM(require("react"));
|
|
8346
8609
|
var CheckEmail = function(param) {
|
|
8347
8610
|
var texts = param.texts, handleResend = param.handleResend;
|
|
8348
|
-
return /* @__PURE__ */
|
|
8611
|
+
return /* @__PURE__ */ import_react48.default.createElement(Card, null, /* @__PURE__ */ import_react48.default.createElement(CardContent, {
|
|
8349
8612
|
headless: true
|
|
8350
|
-
}, /* @__PURE__ */
|
|
8613
|
+
}, /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
8351
8614
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center"
|
|
8352
|
-
}, /* @__PURE__ */
|
|
8615
|
+
}, /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
8353
8616
|
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"
|
|
8354
|
-
}, /* @__PURE__ */
|
|
8617
|
+
}, /* @__PURE__ */ import_react48.default.createElement("svg", {
|
|
8355
8618
|
stroke: "currentColor",
|
|
8356
8619
|
fill: "none",
|
|
8357
8620
|
"stroke-width": "2",
|
|
@@ -8361,23 +8624,23 @@ var CheckEmail = function(param) {
|
|
|
8361
8624
|
height: "0.5em",
|
|
8362
8625
|
width: "0.5em",
|
|
8363
8626
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8364
|
-
}, /* @__PURE__ */
|
|
8627
|
+
}, /* @__PURE__ */ import_react48.default.createElement("path", {
|
|
8365
8628
|
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"
|
|
8366
|
-
}), /* @__PURE__ */
|
|
8629
|
+
}), /* @__PURE__ */ import_react48.default.createElement("polyline", {
|
|
8367
8630
|
points: "22,6 12,13 2,6"
|
|
8368
|
-
}))), /* @__PURE__ */
|
|
8631
|
+
}))), /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
8369
8632
|
className: "hawa-m-2 hawa-text-xl hawa-font-bold"
|
|
8370
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.checkEmail) || "Check your Email"), /* @__PURE__ */
|
|
8633
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.checkEmail) || "Check your Email"), /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
8371
8634
|
className: "hawa-text-sm"
|
|
8372
|
-
}, (texts === null || texts === void 0 ? void 0 : 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__ */
|
|
8635
|
+
}, (texts === null || texts === void 0 ? void 0 : 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__ */ import_react48.default.createElement(CardFooter, {
|
|
8373
8636
|
className: "hawa-flex hawa-flex-col hawa-justify-center "
|
|
8374
|
-
}, /* @__PURE__ */
|
|
8637
|
+
}, /* @__PURE__ */ import_react48.default.createElement("span", {
|
|
8375
8638
|
className: "clickable-link hawa-text-sm",
|
|
8376
8639
|
onClick: handleResend
|
|
8377
8640
|
}, (texts === null || texts === void 0 ? void 0 : texts.resendEmail) || "Resend Email")));
|
|
8378
8641
|
};
|
|
8379
8642
|
// components/blocks/auth/NewPassword.tsx
|
|
8380
|
-
var
|
|
8643
|
+
var import_react49 = __toESM(require("react"));
|
|
8381
8644
|
var import_react_hook_form3 = require("react-hook-form");
|
|
8382
8645
|
var import_zod3 = require("@hookform/resolvers/zod");
|
|
8383
8646
|
var z3 = __toESM(require("zod"));
|
|
@@ -8412,18 +8675,18 @@ var NewPasswordForm = function(_param) {
|
|
|
8412
8675
|
var _ref = (0, import_react_hook_form3.useForm)({
|
|
8413
8676
|
resolver: (0, import_zod3.zodResolver)(formSchema)
|
|
8414
8677
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
8415
|
-
var _ref1 = _sliced_to_array((0,
|
|
8678
|
+
var _ref1 = _sliced_to_array((0, import_react49.useState)(false), 2), matchError = _ref1[0], setMatchError = _ref1[1];
|
|
8416
8679
|
var _texts_dontHaveAccount, _texts_registerText;
|
|
8417
|
-
return /* @__PURE__ */
|
|
8680
|
+
return /* @__PURE__ */ import_react49.default.createElement(Card, {
|
|
8418
8681
|
dir: props.direction
|
|
8419
|
-
}, matchError && /* @__PURE__ */
|
|
8682
|
+
}, matchError && /* @__PURE__ */ import_react49.default.createElement(Alert, {
|
|
8420
8683
|
text: texts === null || texts === void 0 ? void 0 : (_texts_confirm2 = texts.confirm) === null || _texts_confirm2 === void 0 ? void 0 : _texts_confirm2.dontMatch,
|
|
8421
8684
|
severity: "error"
|
|
8422
|
-
}), props.passwordChanged ? /* @__PURE__ */
|
|
8685
|
+
}), props.passwordChanged ? /* @__PURE__ */ import_react49.default.createElement(CardContent, {
|
|
8423
8686
|
headless: true
|
|
8424
|
-
}, /* @__PURE__ */
|
|
8687
|
+
}, /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8425
8688
|
className: "hawa-text-center"
|
|
8426
|
-
}, texts === null || texts === void 0 ? void 0 : texts.passwordChanged)) : /* @__PURE__ */
|
|
8689
|
+
}, texts === null || texts === void 0 ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ import_react49.default.createElement("form", {
|
|
8427
8690
|
noValidate: true,
|
|
8428
8691
|
onSubmit: handleSubmit(function(e) {
|
|
8429
8692
|
if (props.handleNewPassword) {
|
|
@@ -8432,16 +8695,16 @@ var NewPasswordForm = function(_param) {
|
|
|
8432
8695
|
console.log("Form is submitted but handleSubmission prop is missing");
|
|
8433
8696
|
}
|
|
8434
8697
|
})
|
|
8435
|
-
}, !props.headless && /* @__PURE__ */
|
|
8698
|
+
}, !props.headless && /* @__PURE__ */ import_react49.default.createElement(CardHeader, null, /* @__PURE__ */ import_react49.default.createElement(CardTitle, null, "Create Password"), /* @__PURE__ */ import_react49.default.createElement(CardDescription, null, "Set a new password for your account")), /* @__PURE__ */ import_react49.default.createElement(CardContent, {
|
|
8436
8699
|
headless: props.headless,
|
|
8437
8700
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
8438
|
-
}, /* @__PURE__ */
|
|
8701
|
+
}, /* @__PURE__ */ import_react49.default.createElement(import_react_hook_form3.Controller, {
|
|
8439
8702
|
control: control,
|
|
8440
8703
|
name: "password",
|
|
8441
8704
|
render: function(param) {
|
|
8442
8705
|
var field = param.field;
|
|
8443
8706
|
var _texts_password, _texts_password1, _formState_errors_password;
|
|
8444
|
-
return /* @__PURE__ */
|
|
8707
|
+
return /* @__PURE__ */ import_react49.default.createElement(Input, _object_spread({
|
|
8445
8708
|
width: "full",
|
|
8446
8709
|
type: "password",
|
|
8447
8710
|
autoComplete: "new-password",
|
|
@@ -8450,13 +8713,13 @@ var NewPasswordForm = function(_param) {
|
|
|
8450
8713
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
8451
8714
|
}, field));
|
|
8452
8715
|
}
|
|
8453
|
-
}), /* @__PURE__ */
|
|
8716
|
+
}), /* @__PURE__ */ import_react49.default.createElement(import_react_hook_form3.Controller, {
|
|
8454
8717
|
control: control,
|
|
8455
8718
|
name: "confirm_password",
|
|
8456
8719
|
render: function(param) {
|
|
8457
8720
|
var field = param.field;
|
|
8458
8721
|
var _texts_confirm, _texts_confirm1, _formState_errors_confirm_password;
|
|
8459
|
-
return /* @__PURE__ */
|
|
8722
|
+
return /* @__PURE__ */ import_react49.default.createElement(Input, _object_spread({
|
|
8460
8723
|
width: "full",
|
|
8461
8724
|
type: "password",
|
|
8462
8725
|
autoComplete: "new-password",
|
|
@@ -8465,20 +8728,20 @@ var NewPasswordForm = function(_param) {
|
|
|
8465
8728
|
helperText: (_formState_errors_confirm_password = formState.errors.confirm_password) === null || _formState_errors_confirm_password === void 0 ? void 0 : _formState_errors_confirm_password.message
|
|
8466
8729
|
}, field));
|
|
8467
8730
|
}
|
|
8468
|
-
})), /* @__PURE__ */
|
|
8731
|
+
})), /* @__PURE__ */ import_react49.default.createElement(CardFooter, {
|
|
8469
8732
|
className: "hawa-flex hawa-flex-col"
|
|
8470
|
-
}, /* @__PURE__ */
|
|
8733
|
+
}, /* @__PURE__ */ import_react49.default.createElement(Button, {
|
|
8471
8734
|
className: "hawa-w-full",
|
|
8472
8735
|
type: "submit"
|
|
8473
|
-
}, texts === null || texts === void 0 ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */
|
|
8736
|
+
}, texts === null || texts === void 0 ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8474
8737
|
className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300"
|
|
8475
|
-
}, (_texts_dontHaveAccount = texts === null || texts === void 0 ? void 0 : texts.dontHaveAccount) !== null && _texts_dontHaveAccount !== void 0 ? _texts_dontHaveAccount : "Don't have an account? ", /* @__PURE__ */
|
|
8738
|
+
}, (_texts_dontHaveAccount = texts === null || texts === void 0 ? void 0 : texts.dontHaveAccount) !== null && _texts_dontHaveAccount !== void 0 ? _texts_dontHaveAccount : "Don't have an account? ", /* @__PURE__ */ import_react49.default.createElement("span", {
|
|
8476
8739
|
className: "clickable-link",
|
|
8477
8740
|
onClick: props.handleRouteToRegister
|
|
8478
8741
|
}, (_texts_registerText = texts === null || texts === void 0 ? void 0 : texts.registerText) !== null && _texts_registerText !== void 0 ? _texts_registerText : "Register")))));
|
|
8479
8742
|
};
|
|
8480
8743
|
// components/blocks/auth/ResetPassword.tsx
|
|
8481
|
-
var
|
|
8744
|
+
var import_react50 = __toESM(require("react"));
|
|
8482
8745
|
var import_react_hook_form4 = require("react-hook-form");
|
|
8483
8746
|
var import_zod4 = require("@hookform/resolvers/zod");
|
|
8484
8747
|
var z4 = __toESM(require("zod"));
|
|
@@ -8497,9 +8760,9 @@ var ResetPasswordForm = function(props) {
|
|
|
8497
8760
|
resolver: (0, import_zod4.zodResolver)(formSchema)
|
|
8498
8761
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
8499
8762
|
var _props_texts_dontHaveAccount, _props_texts_registerText;
|
|
8500
|
-
return /* @__PURE__ */
|
|
8763
|
+
return /* @__PURE__ */ import_react50.default.createElement(Card, {
|
|
8501
8764
|
dir: props.direction
|
|
8502
|
-
}, !props.sent ? /* @__PURE__ */
|
|
8765
|
+
}, !props.sent ? /* @__PURE__ */ import_react50.default.createElement(import_react50.default.Fragment, null, !props.headless && /* @__PURE__ */ import_react50.default.createElement(CardHeader, null, /* @__PURE__ */ import_react50.default.createElement(CardTitle, null, " ", ((_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.headTitle) || "Reset Password"), /* @__PURE__ */ import_react50.default.createElement(CardDescription, null, ((_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.headDescription) || "Enter your email to reset your account password")), /* @__PURE__ */ import_react50.default.createElement("form", {
|
|
8503
8766
|
noValidate: true,
|
|
8504
8767
|
onSubmit: handleSubmit(function(e) {
|
|
8505
8768
|
if (props.handleResetPassword) {
|
|
@@ -8508,39 +8771,39 @@ var ResetPasswordForm = function(props) {
|
|
|
8508
8771
|
console.log("handleResetPassword prop is missing");
|
|
8509
8772
|
}
|
|
8510
8773
|
})
|
|
8511
|
-
}, /* @__PURE__ */
|
|
8774
|
+
}, /* @__PURE__ */ import_react50.default.createElement(CardContent, {
|
|
8512
8775
|
headless: props.headless
|
|
8513
|
-
}, /* @__PURE__ */
|
|
8776
|
+
}, /* @__PURE__ */ import_react50.default.createElement(import_react_hook_form4.Controller, {
|
|
8514
8777
|
control: control,
|
|
8515
8778
|
name: "email",
|
|
8516
8779
|
render: function(param) {
|
|
8517
8780
|
var field = param.field;
|
|
8518
8781
|
var _props_texts_email, _props_texts, _formState_errors_email, _props_texts_email1, _props_texts1;
|
|
8519
|
-
return /* @__PURE__ */
|
|
8782
|
+
return /* @__PURE__ */ import_react50.default.createElement(Input, _object_spread({
|
|
8520
8783
|
width: "full",
|
|
8521
8784
|
label: (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : (_props_texts_email = _props_texts.email) === null || _props_texts_email === void 0 ? void 0 : _props_texts_email.label,
|
|
8522
8785
|
helperText: (_formState_errors_email = formState.errors.email) === null || _formState_errors_email === void 0 ? void 0 : _formState_errors_email.message,
|
|
8523
8786
|
placeholder: (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : (_props_texts_email1 = _props_texts1.email) === null || _props_texts_email1 === void 0 ? void 0 : _props_texts_email1.placeholder
|
|
8524
8787
|
}, field));
|
|
8525
8788
|
}
|
|
8526
|
-
})), /* @__PURE__ */
|
|
8789
|
+
})), /* @__PURE__ */ import_react50.default.createElement(CardFooter, {
|
|
8527
8790
|
className: "hawa-flex hawa-flex-col"
|
|
8528
|
-
}, /* @__PURE__ */
|
|
8791
|
+
}, /* @__PURE__ */ import_react50.default.createElement(Button, {
|
|
8529
8792
|
type: "submit",
|
|
8530
8793
|
className: "hawa-w-full"
|
|
8531
|
-
}, (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resetPassword), props.allowRegister && /* @__PURE__ */
|
|
8794
|
+
}, (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resetPassword), props.allowRegister && /* @__PURE__ */ import_react50.default.createElement("div", {
|
|
8532
8795
|
className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300"
|
|
8533
|
-
}, (_props_texts_dontHaveAccount = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.dontHaveAccount) !== null && _props_texts_dontHaveAccount !== void 0 ? _props_texts_dontHaveAccount : "Don't have an account? ", /* @__PURE__ */
|
|
8796
|
+
}, (_props_texts_dontHaveAccount = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.dontHaveAccount) !== null && _props_texts_dontHaveAccount !== void 0 ? _props_texts_dontHaveAccount : "Don't have an account? ", /* @__PURE__ */ import_react50.default.createElement("span", {
|
|
8534
8797
|
className: "clickable-link",
|
|
8535
8798
|
onClick: props.handleRouteToRegister
|
|
8536
|
-
}, (_props_texts_registerText = (_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.registerText) !== null && _props_texts_registerText !== void 0 ? _props_texts_registerText : "Register"))))) : /* @__PURE__ */
|
|
8799
|
+
}, (_props_texts_registerText = (_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.registerText) !== null && _props_texts_registerText !== void 0 ? _props_texts_registerText : "Register"))))) : /* @__PURE__ */ import_react50.default.createElement(CardContent, {
|
|
8537
8800
|
headless: true
|
|
8538
|
-
}, /* @__PURE__ */
|
|
8801
|
+
}, /* @__PURE__ */ import_react50.default.createElement("div", {
|
|
8539
8802
|
className: "hawa-text-center"
|
|
8540
8803
|
}, (_props_texts8 = props.texts) === null || _props_texts8 === void 0 ? void 0 : _props_texts8.emailSentText)));
|
|
8541
8804
|
};
|
|
8542
8805
|
// components/blocks/auth/CodeConfirmation.tsx
|
|
8543
|
-
var
|
|
8806
|
+
var import_react51 = __toESM(require("react"));
|
|
8544
8807
|
var import_react_hook_form5 = require("react-hook-form");
|
|
8545
8808
|
var import_zod5 = require("@hookform/resolvers/zod");
|
|
8546
8809
|
var z5 = __toESM(require("zod"));
|
|
@@ -8556,9 +8819,9 @@ var CodeConfirmation = function(props) {
|
|
|
8556
8819
|
var _ref = (0, import_react_hook_form5.useForm)({
|
|
8557
8820
|
resolver: (0, import_zod5.zodResolver)(formSchema)
|
|
8558
8821
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState, setValue = _ref.setValue;
|
|
8559
|
-
var _ref1 = _sliced_to_array((0,
|
|
8560
|
-
var _ref2 = _sliced_to_array((0,
|
|
8561
|
-
var _ref3 = _sliced_to_array((0,
|
|
8822
|
+
var _ref1 = _sliced_to_array((0, import_react51.useState)(null), 2), resendTimer = _ref1[0], setResendTimer = _ref1[1];
|
|
8823
|
+
var _ref2 = _sliced_to_array((0, import_react51.useState)(0), 2), remainingTime = _ref2[0], setRemainingTime = _ref2[1];
|
|
8824
|
+
var _ref3 = _sliced_to_array((0, import_react51.useState)(false), 2), showResendTimer = _ref3[0], setShowResendTimer = _ref3[1];
|
|
8562
8825
|
var startResendTimer = function() {
|
|
8563
8826
|
if (resendTimer !== null) {
|
|
8564
8827
|
clearInterval(resendTimer);
|
|
@@ -8580,7 +8843,7 @@ var CodeConfirmation = function(props) {
|
|
|
8580
8843
|
}, 1e3);
|
|
8581
8844
|
setResendTimer(newTimer);
|
|
8582
8845
|
};
|
|
8583
|
-
(0,
|
|
8846
|
+
(0, import_react51.useEffect)(function() {
|
|
8584
8847
|
return function() {
|
|
8585
8848
|
if (resendTimer !== null) {
|
|
8586
8849
|
clearInterval(resendTimer);
|
|
@@ -8588,19 +8851,19 @@ var CodeConfirmation = function(props) {
|
|
|
8588
8851
|
};
|
|
8589
8852
|
}, []);
|
|
8590
8853
|
var _props_texts_didntGetCode;
|
|
8591
|
-
return /* @__PURE__ */
|
|
8854
|
+
return /* @__PURE__ */ import_react51.default.createElement(Card, null, /* @__PURE__ */ import_react51.default.createElement(CardContent, {
|
|
8592
8855
|
headless: true
|
|
8593
|
-
}, props.showError && /* @__PURE__ */
|
|
8856
|
+
}, props.showError && /* @__PURE__ */ import_react51.default.createElement(Alert, {
|
|
8594
8857
|
title: props.errorTitle,
|
|
8595
8858
|
text: props.errorText,
|
|
8596
8859
|
severity: "error"
|
|
8597
|
-
}), /* @__PURE__ */
|
|
8860
|
+
}), /* @__PURE__ */ import_react51.default.createElement("div", {
|
|
8598
8861
|
className: "hawa-mb-4 dark:hawa-text-white"
|
|
8599
|
-
}, /* @__PURE__ */
|
|
8862
|
+
}, /* @__PURE__ */ import_react51.default.createElement("div", {
|
|
8600
8863
|
className: "hawa-text-lg hawa-font-bold"
|
|
8601
|
-
}, ((_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.checkYourPhone) || "Please check your phone"), /* @__PURE__ */
|
|
8864
|
+
}, ((_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.checkYourPhone) || "Please check your phone"), /* @__PURE__ */ import_react51.default.createElement("div", {
|
|
8602
8865
|
className: "hawa-text-muted-foreground"
|
|
8603
|
-
}, /* @__PURE__ */
|
|
8866
|
+
}, /* @__PURE__ */ import_react51.default.createElement("span", null, ((_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.weSentCode) || "We've sent a code to "), /* @__PURE__ */ import_react51.default.createElement("span", null, props.phoneNumber)), " "), /* @__PURE__ */ import_react51.default.createElement("form", {
|
|
8604
8867
|
noValidate: true,
|
|
8605
8868
|
onSubmit: handleSubmit(function(e) {
|
|
8606
8869
|
if (props.handleConfirm) {
|
|
@@ -8609,13 +8872,13 @@ var CodeConfirmation = function(props) {
|
|
|
8609
8872
|
console.log("Form is submitted but handleConfirm prop is missing");
|
|
8610
8873
|
}
|
|
8611
8874
|
})
|
|
8612
|
-
}, /* @__PURE__ */
|
|
8875
|
+
}, /* @__PURE__ */ import_react51.default.createElement(import_react_hook_form5.Controller, {
|
|
8613
8876
|
control: control,
|
|
8614
8877
|
name: "otp_code",
|
|
8615
8878
|
render: function(param) {
|
|
8616
8879
|
var field = param.field;
|
|
8617
8880
|
var _formState_errors_otp_code;
|
|
8618
|
-
return /* @__PURE__ */
|
|
8881
|
+
return /* @__PURE__ */ import_react51.default.createElement(PinInput, {
|
|
8619
8882
|
width: "full",
|
|
8620
8883
|
digits: 6,
|
|
8621
8884
|
getPins: function(e) {
|
|
@@ -8624,26 +8887,26 @@ var CodeConfirmation = function(props) {
|
|
|
8624
8887
|
helperText: (_formState_errors_otp_code = formState.errors.otp_code) === null || _formState_errors_otp_code === void 0 ? void 0 : _formState_errors_otp_code.message
|
|
8625
8888
|
});
|
|
8626
8889
|
}
|
|
8627
|
-
}), showResendTimer ? /* @__PURE__ */
|
|
8890
|
+
}), showResendTimer ? /* @__PURE__ */ import_react51.default.createElement("div", {
|
|
8628
8891
|
className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground"
|
|
8629
|
-
}, (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.resendCodeTimer, " ", /* @__PURE__ */
|
|
8892
|
+
}, (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.resendCodeTimer, " ", /* @__PURE__ */ import_react51.default.createElement("strong", null, remainingTime), " ", (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.seconds) : /* @__PURE__ */ import_react51.default.createElement("div", {
|
|
8630
8893
|
className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground"
|
|
8631
|
-
}, /* @__PURE__ */
|
|
8894
|
+
}, /* @__PURE__ */ import_react51.default.createElement("span", null, (_props_texts_didntGetCode = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.didntGetCode) !== null && _props_texts_didntGetCode !== void 0 ? _props_texts_didntGetCode : "Didn't get the code?"), " ", /* @__PURE__ */ import_react51.default.createElement("span", {
|
|
8632
8895
|
className: "clickable-link",
|
|
8633
8896
|
onClick: function() {
|
|
8634
8897
|
startResendTimer();
|
|
8635
8898
|
props.handleResend();
|
|
8636
8899
|
}
|
|
8637
|
-
}, ((_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.resendCode) || "Click to resend")), /* @__PURE__ */
|
|
8900
|
+
}, ((_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.resendCode) || "Click to resend")), /* @__PURE__ */ import_react51.default.createElement("div", {
|
|
8638
8901
|
className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2"
|
|
8639
|
-
}, /* @__PURE__ */
|
|
8902
|
+
}, /* @__PURE__ */ import_react51.default.createElement(Button, {
|
|
8640
8903
|
variant: "secondary"
|
|
8641
|
-
}, ((_props_texts8 = props.texts) === null || _props_texts8 === void 0 ? void 0 : _props_texts8.cancel) || "Cancel"), /* @__PURE__ */
|
|
8904
|
+
}, ((_props_texts8 = props.texts) === null || _props_texts8 === void 0 ? void 0 : _props_texts8.cancel) || "Cancel"), /* @__PURE__ */ import_react51.default.createElement(Button, {
|
|
8642
8905
|
isLoading: props.confirmLoading
|
|
8643
8906
|
}, ((_props_texts9 = props.texts) === null || _props_texts9 === void 0 ? void 0 : _props_texts9.confirm) || "Confirm")))));
|
|
8644
8907
|
};
|
|
8645
8908
|
// components/blocks/feedback/UserReferralSource.tsx
|
|
8646
|
-
var
|
|
8909
|
+
var import_react52 = __toESM(require("react"));
|
|
8647
8910
|
var import_react_hook_form6 = require("react-hook-form");
|
|
8648
8911
|
var import_zod6 = require("@hookform/resolvers/zod");
|
|
8649
8912
|
var z6 = __toESM(require("zod"));
|
|
@@ -8653,8 +8916,8 @@ var UserReferralSource = function(_param) {
|
|
|
8653
8916
|
"options"
|
|
8654
8917
|
]);
|
|
8655
8918
|
var _props_texts, _props_texts1;
|
|
8656
|
-
var _ref = _sliced_to_array((0,
|
|
8657
|
-
var popUpRef = (0,
|
|
8919
|
+
var _ref = _sliced_to_array((0, import_react52.useState)(false), 2), closed = _ref[0], setClosed = _ref[1];
|
|
8920
|
+
var popUpRef = (0, import_react52.useRef)(null);
|
|
8658
8921
|
var formSchema = z6.object({
|
|
8659
8922
|
source: z6.string({
|
|
8660
8923
|
required_error: (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.pleaseSelectOption
|
|
@@ -8668,13 +8931,13 @@ var UserReferralSource = function(_param) {
|
|
|
8668
8931
|
"bottom-right": "hawa-right-4",
|
|
8669
8932
|
"bottom-left": "hawa-left-4"
|
|
8670
8933
|
};
|
|
8671
|
-
return /* @__PURE__ */
|
|
8934
|
+
return /* @__PURE__ */ import_react52.default.createElement("div", {
|
|
8672
8935
|
className: cn("hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100"),
|
|
8673
8936
|
ref: popUpRef
|
|
8674
|
-
}, /* @__PURE__ */
|
|
8937
|
+
}, /* @__PURE__ */ import_react52.default.createElement(Card, {
|
|
8675
8938
|
className: cn("hawa-fixed hawa-bottom-4 hawa-p-0 ", boxPosition[position]),
|
|
8676
8939
|
dir: props.direction
|
|
8677
|
-
}, /* @__PURE__ */
|
|
8940
|
+
}, /* @__PURE__ */ import_react52.default.createElement("button", {
|
|
8678
8941
|
type: "button",
|
|
8679
8942
|
className: cn(props.direction === "rtl" ? "hawa-left-2" : "hawa-right-2", "hawa-absolute hawa-top-2 hawa-inline-flex hawa-h-8 hawa-w-8 hawa-rounded hawa-p-1.5 hawa-text-gray-400 hawa-transition-all hover:hawa-bg-gray-100 hover:hawa-text-gray-900 focus:hawa-ring-2 focus:hawa-ring-gray-300 dark:hawa-bg-gray-800 dark:hawa-text-gray-500 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-white"),
|
|
8680
8943
|
"data-dismiss-target": "#toast-default",
|
|
@@ -8687,18 +8950,18 @@ var UserReferralSource = function(_param) {
|
|
|
8687
8950
|
}
|
|
8688
8951
|
}, 200);
|
|
8689
8952
|
}
|
|
8690
|
-
}, /* @__PURE__ */
|
|
8953
|
+
}, /* @__PURE__ */ import_react52.default.createElement("svg", {
|
|
8691
8954
|
"aria-hidden": "true",
|
|
8692
8955
|
className: "hawa-h-5 hawa-w-5",
|
|
8693
8956
|
fill: "currentColor",
|
|
8694
8957
|
viewBox: "0 0 20 20"
|
|
8695
|
-
}, /* @__PURE__ */
|
|
8958
|
+
}, /* @__PURE__ */ import_react52.default.createElement("path", {
|
|
8696
8959
|
fillRule: "evenodd",
|
|
8697
8960
|
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
8698
8961
|
clipRule: "evenodd"
|
|
8699
|
-
}))), /* @__PURE__ */
|
|
8962
|
+
}))), /* @__PURE__ */ import_react52.default.createElement(CardContent, {
|
|
8700
8963
|
headless: true
|
|
8701
|
-
}, /* @__PURE__ */
|
|
8964
|
+
}, /* @__PURE__ */ import_react52.default.createElement("form", {
|
|
8702
8965
|
noValidate: true,
|
|
8703
8966
|
onSubmit: handleSubmit(function(e) {
|
|
8704
8967
|
if (props.onSubmitForm) {
|
|
@@ -8706,19 +8969,19 @@ var UserReferralSource = function(_param) {
|
|
|
8706
8969
|
}
|
|
8707
8970
|
console.log("onSubmitForm was not provided");
|
|
8708
8971
|
})
|
|
8709
|
-
}, /* @__PURE__ */
|
|
8972
|
+
}, /* @__PURE__ */ import_react52.default.createElement("div", {
|
|
8710
8973
|
className: cn("hawa-flex hawa-flex-col hawa-gap-4 hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100")
|
|
8711
|
-
}, /* @__PURE__ */
|
|
8974
|
+
}, /* @__PURE__ */ import_react52.default.createElement("div", {
|
|
8712
8975
|
className: "hawa-mt-4 hawa-font-bold"
|
|
8713
|
-
}, props.question), /* @__PURE__ */
|
|
8976
|
+
}, props.question), /* @__PURE__ */ import_react52.default.createElement("div", {
|
|
8714
8977
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded "
|
|
8715
|
-
}, /* @__PURE__ */
|
|
8978
|
+
}, /* @__PURE__ */ import_react52.default.createElement(import_react_hook_form6.Controller, {
|
|
8716
8979
|
control: control,
|
|
8717
8980
|
name: "source",
|
|
8718
8981
|
render: function(param) {
|
|
8719
8982
|
var field = param.field;
|
|
8720
8983
|
var _formState_errors_source_message, _formState_errors_source;
|
|
8721
|
-
return /* @__PURE__ */
|
|
8984
|
+
return /* @__PURE__ */ import_react52.default.createElement(Radio, {
|
|
8722
8985
|
direction: props.direction,
|
|
8723
8986
|
orientation: "vertical",
|
|
8724
8987
|
options: options,
|
|
@@ -8729,38 +8992,38 @@ var UserReferralSource = function(_param) {
|
|
|
8729
8992
|
helperText: (_formState_errors_source = formState.errors.source) === null || _formState_errors_source === void 0 ? void 0 : (_formState_errors_source_message = _formState_errors_source.message) === null || _formState_errors_source_message === void 0 ? void 0 : _formState_errors_source_message.toString()
|
|
8730
8993
|
});
|
|
8731
8994
|
}
|
|
8732
|
-
})), /* @__PURE__ */
|
|
8995
|
+
})), /* @__PURE__ */ import_react52.default.createElement("div", null, /* @__PURE__ */ import_react52.default.createElement(import_react_hook_form6.Controller, {
|
|
8733
8996
|
control: control,
|
|
8734
8997
|
name: "feedback",
|
|
8735
8998
|
render: function(param) {
|
|
8736
8999
|
var field = param.field;
|
|
8737
9000
|
var _formState_errors_feedback_message, _formState_errors_feedback;
|
|
8738
|
-
return /* @__PURE__ */
|
|
9001
|
+
return /* @__PURE__ */ import_react52.default.createElement(Textarea, _object_spread_props(_object_spread({}, field), {
|
|
8739
9002
|
helperText: (_formState_errors_feedback = formState.errors.feedback) === null || _formState_errors_feedback === void 0 ? void 0 : (_formState_errors_feedback_message = _formState_errors_feedback.message) === null || _formState_errors_feedback_message === void 0 ? void 0 : _formState_errors_feedback_message.toString()
|
|
8740
9003
|
}));
|
|
8741
9004
|
}
|
|
8742
|
-
}))), /* @__PURE__ */
|
|
9005
|
+
}))), /* @__PURE__ */ import_react52.default.createElement(Button, {
|
|
8743
9006
|
type: "submit",
|
|
8744
9007
|
className: "hawa-mt-4 hawa-w-full"
|
|
8745
9008
|
}, ((_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.submit) || "Submit")))));
|
|
8746
9009
|
};
|
|
8747
9010
|
// components/blocks/feedback/FeedbackRating.tsx
|
|
8748
|
-
var
|
|
9011
|
+
var import_react53 = __toESM(require("react"));
|
|
8749
9012
|
var import_clsx11 = __toESM(require("clsx"));
|
|
8750
9013
|
var FeedbackRating = function(_param) {
|
|
8751
9014
|
var _param_position = _param.position, position = _param_position === void 0 ? "bottom-right" : _param_position, props = _object_without_properties(_param, [
|
|
8752
9015
|
"position"
|
|
8753
9016
|
]);
|
|
8754
|
-
var _ref = _sliced_to_array((0,
|
|
8755
|
-
var _ref1 = _sliced_to_array((0,
|
|
8756
|
-
var _ref2 = _sliced_to_array((0,
|
|
8757
|
-
var _ref3 = _sliced_to_array((0,
|
|
8758
|
-
var popUpRef = (0,
|
|
9017
|
+
var _ref = _sliced_to_array((0, import_react53.useState)(false), 2), closed = _ref[0], setClosed = _ref[1];
|
|
9018
|
+
var _ref1 = _sliced_to_array((0, import_react53.useState)(false), 2), answered = _ref1[0], setAnswered = _ref1[1];
|
|
9019
|
+
var _ref2 = _sliced_to_array((0, import_react53.useState)(null), 2), clickedOption = _ref2[0], setClickedOption = _ref2[1];
|
|
9020
|
+
var _ref3 = _sliced_to_array((0, import_react53.useState)(5), 2), closingTimer = _ref3[0], setClosingTimer = _ref3[1];
|
|
9021
|
+
var popUpRef = (0, import_react53.useRef)(null);
|
|
8759
9022
|
var boxPosition = {
|
|
8760
9023
|
"bottom-right": "hawa-right-4",
|
|
8761
9024
|
"bottom-left": "hawa-left-4"
|
|
8762
9025
|
};
|
|
8763
|
-
(0,
|
|
9026
|
+
(0, import_react53.useEffect)(function() {
|
|
8764
9027
|
var timeoutHide = setTimeout(function() {
|
|
8765
9028
|
if (closingTimer >= 0) {
|
|
8766
9029
|
setClosingTimer(closingTimer - 1);
|
|
@@ -8780,14 +9043,14 @@ var FeedbackRating = function(_param) {
|
|
|
8780
9043
|
}
|
|
8781
9044
|
}, 200);
|
|
8782
9045
|
};
|
|
8783
|
-
return /* @__PURE__ */
|
|
9046
|
+
return /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
8784
9047
|
ref: popUpRef,
|
|
8785
9048
|
className: (0, import_clsx11.default)(props.banner ? "hawa-w-full hawa-left-0 hawa-fixed hawa-bottom-0 hawa-px-0 md:hawa-px-4" : "hawa-fixed hawa-bottom-4 ", boxPosition[position])
|
|
8786
|
-
}, /* @__PURE__ */
|
|
9049
|
+
}, /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
8787
9050
|
className: (0, import_clsx11.default)("hawa-relative hawa-flex hawa-w-full hawa-flex-col hawa-gap-2 hawa-rounded hawa-border hawa-bg-background hawa-p-4 hawa-shadow-md hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100", props.banner && "hawa-rounded-none md:hawa-rounded hawa-px-4 md:hawa-px-64")
|
|
8788
|
-
}, /* @__PURE__ */
|
|
9051
|
+
}, /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
8789
9052
|
className: "hawa-absolute hawa-left-2 hawa-top-2 hawa-p-1.5 hawa-text-sm"
|
|
8790
|
-
}, props.title), /* @__PURE__ */
|
|
9053
|
+
}, props.title), /* @__PURE__ */ import_react53.default.createElement("button", {
|
|
8791
9054
|
type: "button",
|
|
8792
9055
|
className: "hawa-absolute hawa-right-2 hawa-top-2 hawa-inline-flex hawa-h-8 hawa-w-8 hawa-rounded hawa-p-1.5 hawa-text-gray-400 hover:hawa-bg-gray-100 hover:hawa-text-gray-900 focus:hawa-ring-2 focus:hawa-ring-gray-300 dark:hawa-bg-gray-800 dark:hawa-text-gray-500 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-white",
|
|
8793
9056
|
"data-dismiss-target": "#toast-default",
|
|
@@ -8795,21 +9058,21 @@ var FeedbackRating = function(_param) {
|
|
|
8795
9058
|
onClick: function() {
|
|
8796
9059
|
return slowClose();
|
|
8797
9060
|
}
|
|
8798
|
-
}, /* @__PURE__ */
|
|
9061
|
+
}, /* @__PURE__ */ import_react53.default.createElement("svg", {
|
|
8799
9062
|
"aria-hidden": "true",
|
|
8800
9063
|
className: "hawa-h-5 hawa-w-5",
|
|
8801
9064
|
fill: "currentColor",
|
|
8802
9065
|
viewBox: "0 0 20 20"
|
|
8803
|
-
}, /* @__PURE__ */
|
|
9066
|
+
}, /* @__PURE__ */ import_react53.default.createElement("path", {
|
|
8804
9067
|
fillRule: "evenodd",
|
|
8805
9068
|
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
8806
9069
|
clipRule: "evenodd"
|
|
8807
|
-
}))), /* @__PURE__ */
|
|
9070
|
+
}))), /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
8808
9071
|
className: "hawa-mt-8"
|
|
8809
|
-
}, props.question), /* @__PURE__ */
|
|
9072
|
+
}, props.question), /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
8810
9073
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded"
|
|
8811
9074
|
}, props.options && props.options.map(function(op, i) {
|
|
8812
|
-
return /* @__PURE__ */
|
|
9075
|
+
return /* @__PURE__ */ import_react53.default.createElement("span", {
|
|
8813
9076
|
key: i,
|
|
8814
9077
|
onClick: function() {
|
|
8815
9078
|
if (props.onOptionClicked) {
|
|
@@ -8828,15 +9091,15 @@ var FeedbackRating = function(_param) {
|
|
|
8828
9091
|
},
|
|
8829
9092
|
className: (0, import_clsx11.default)("hawa-w-full hawa-cursor-pointer hawa-rounded hawa-border hawa-p-4 hawa-text-center hawa-transition-all ", clickedOption === op ? "hawa-bg-gray-500 hawa-text-white" : "hawa-border hawa-bg-background hover:hawa-bg-gray-300 dark:hover:hawa-bg-gray-700")
|
|
8830
9093
|
}, op);
|
|
8831
|
-
})), props.texts && /* @__PURE__ */
|
|
9094
|
+
})), props.texts && /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
8832
9095
|
className: " hawa-flex hawa-flex-row hawa-justify-between hawa-text-xs"
|
|
8833
|
-
}, /* @__PURE__ */
|
|
9096
|
+
}, /* @__PURE__ */ import_react53.default.createElement("span", null, props.texts.least), /* @__PURE__ */ import_react53.default.createElement("span", null, props.texts.most)), answered && /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
8834
9097
|
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"
|
|
8835
|
-
}, /* @__PURE__ */
|
|
9098
|
+
}, /* @__PURE__ */ import_react53.default.createElement("span", {
|
|
8836
9099
|
className: "hawa-font-bold hawa-text-white"
|
|
8837
|
-
}, "Thank you for your answer. This box will disappear in", " " + closingTimer, " seconds"), /* @__PURE__ */
|
|
9100
|
+
}, "Thank you for your answer. This box will disappear in", " " + closingTimer, " seconds"), /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
8838
9101
|
className: "hawa-flex hawa-flex-row hawa-gap-2"
|
|
8839
|
-
}, /* @__PURE__ */
|
|
9102
|
+
}, /* @__PURE__ */ import_react53.default.createElement(Button, {
|
|
8840
9103
|
variant: "secondary",
|
|
8841
9104
|
onClick: function() {
|
|
8842
9105
|
return slowClose();
|
|
@@ -8844,27 +9107,27 @@ var FeedbackRating = function(_param) {
|
|
|
8844
9107
|
}, "Close")))));
|
|
8845
9108
|
};
|
|
8846
9109
|
// components/blocks/feedback/FeedbackEmoji.tsx
|
|
8847
|
-
var
|
|
9110
|
+
var import_react54 = __toESM(require("react"));
|
|
8848
9111
|
var FeedbackEmoji = function(props) {
|
|
8849
|
-
var _ref = _sliced_to_array((0,
|
|
8850
|
-
var _ref1 = _sliced_to_array((0,
|
|
8851
|
-
var _ref2 = _sliced_to_array((0,
|
|
8852
|
-
var _ref3 = _sliced_to_array((0,
|
|
9112
|
+
var _ref = _sliced_to_array((0, import_react54.useState)(null), 2), selectedEmoji = _ref[0], setSelectedEmoji = _ref[1];
|
|
9113
|
+
var _ref1 = _sliced_to_array((0, import_react54.useState)(false), 2), loadingSubmit = _ref1[0], setLoadingSubmit = _ref1[1];
|
|
9114
|
+
var _ref2 = _sliced_to_array((0, import_react54.useState)(""), 2), feedbackText = _ref2[0], setFeedbackText = _ref2[1];
|
|
9115
|
+
var _ref3 = _sliced_to_array((0, import_react54.useState)(false), 2), helperText = _ref3[0], setHelperText = _ref3[1];
|
|
8853
9116
|
var emojis = [
|
|
8854
9117
|
{
|
|
8855
|
-
icon: /* @__PURE__ */
|
|
9118
|
+
icon: /* @__PURE__ */ import_react54.default.createElement(VeryGoodEmoji, null),
|
|
8856
9119
|
value: "very-good"
|
|
8857
9120
|
},
|
|
8858
9121
|
{
|
|
8859
|
-
icon: /* @__PURE__ */
|
|
9122
|
+
icon: /* @__PURE__ */ import_react54.default.createElement(GoodEmoji, null),
|
|
8860
9123
|
value: "good"
|
|
8861
9124
|
},
|
|
8862
9125
|
{
|
|
8863
|
-
icon: /* @__PURE__ */
|
|
9126
|
+
icon: /* @__PURE__ */ import_react54.default.createElement(BadEmoji, null),
|
|
8864
9127
|
value: "bad"
|
|
8865
9128
|
},
|
|
8866
9129
|
{
|
|
8867
|
-
icon: /* @__PURE__ */
|
|
9130
|
+
icon: /* @__PURE__ */ import_react54.default.createElement(VeryBadEmoji, null),
|
|
8868
9131
|
value: "very-bad"
|
|
8869
9132
|
}
|
|
8870
9133
|
];
|
|
@@ -8934,14 +9197,14 @@ var FeedbackEmoji = function(props) {
|
|
|
8934
9197
|
return _ref.apply(this, arguments);
|
|
8935
9198
|
};
|
|
8936
9199
|
}();
|
|
8937
|
-
return /* @__PURE__ */
|
|
9200
|
+
return /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
8938
9201
|
className: cn("hawa-flex hawa-flex-col hawa-gap-2 hawa-rounded hawa-border hawa-p-2 hawa-transition-all", selectedEmoji ? "hawa-h-[185px] hawa-min-w-fit" : "hawa-h-[44px] ")
|
|
8939
|
-
}, /* @__PURE__ */
|
|
9202
|
+
}, /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
8940
9203
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 "
|
|
8941
|
-
}, /* @__PURE__ */
|
|
9204
|
+
}, /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
8942
9205
|
className: "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-0.5 "
|
|
8943
9206
|
}, emojis.map(function(emoji, i) {
|
|
8944
|
-
return /* @__PURE__ */
|
|
9207
|
+
return /* @__PURE__ */ import_react54.default.createElement(Button, {
|
|
8945
9208
|
key: i,
|
|
8946
9209
|
onClick: function() {
|
|
8947
9210
|
if (selectedEmoji === emoji.value) {
|
|
@@ -8954,29 +9217,29 @@ var FeedbackEmoji = function(props) {
|
|
|
8954
9217
|
size: "smallIcon",
|
|
8955
9218
|
className: cn(selectedEmoji === emoji.value ? "hawa-bg-primary/10 hover:hawa-bg-primary/10 " : "hawa-text-[#666666]")
|
|
8956
9219
|
}, emoji.icon);
|
|
8957
|
-
}))), /* @__PURE__ */
|
|
9220
|
+
}))), /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
8958
9221
|
className: cn("hawa-flex hawa-flex-col hawa-overflow-clip hawa-transition-all hawa-duration-500 hawa-ease-in-out ", selectedEmoji ? "hawa-visible hawa-opacity-100" : "hawa-invisible hawa-opacity-0 ")
|
|
8959
|
-
}, props.showSuccess ? /* @__PURE__ */
|
|
9222
|
+
}, props.showSuccess ? /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
8960
9223
|
className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2 hawa-pt-4"
|
|
8961
|
-
}, /* @__PURE__ */
|
|
9224
|
+
}, /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
8962
9225
|
className: "hawa-rounded hawa-bg-primary hawa-p-2 hawa-text-primary-foreground"
|
|
8963
|
-
}, /* @__PURE__ */
|
|
9226
|
+
}, /* @__PURE__ */ import_react54.default.createElement("svg", {
|
|
8964
9227
|
stroke: "currentColor",
|
|
8965
9228
|
fill: "currentColor",
|
|
8966
9229
|
strokeWidth: "0",
|
|
8967
9230
|
viewBox: "0 0 512 512",
|
|
8968
9231
|
height: "0.5em",
|
|
8969
9232
|
width: "0.5em"
|
|
8970
|
-
}, /* @__PURE__ */
|
|
9233
|
+
}, /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
8971
9234
|
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"
|
|
8972
|
-
}))), /* @__PURE__ */
|
|
9235
|
+
}))), /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
8973
9236
|
className: "hawa-text-sm hawa-flex hawa-flex-col hawa-text-center"
|
|
8974
|
-
}, /* @__PURE__ */
|
|
9237
|
+
}, /* @__PURE__ */ import_react54.default.createElement("span", null, "Your feedback has been received!"), /* @__PURE__ */ import_react54.default.createElement("span", null, "Thank you for your help"))) : /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
8975
9238
|
className: "hawa-flex hawa-flex-col hawa-gap-2"
|
|
8976
|
-
}, /* @__PURE__ */
|
|
9239
|
+
}, /* @__PURE__ */ import_react54.default.createElement(Popover, {
|
|
8977
9240
|
className: "hawa-select-none hawa-p-1 hawa-text-xs ",
|
|
8978
9241
|
open: helperText,
|
|
8979
|
-
trigger: /* @__PURE__ */
|
|
9242
|
+
trigger: /* @__PURE__ */ import_react54.default.createElement(Textarea, {
|
|
8980
9243
|
className: cn("hawa-mb-2 hawa-h-full hawa-resize-none"),
|
|
8981
9244
|
placeholder: "Your feedback",
|
|
8982
9245
|
onChange: function(e) {
|
|
@@ -8986,9 +9249,9 @@ var FeedbackEmoji = function(props) {
|
|
|
8986
9249
|
setFeedbackText(e.target.value);
|
|
8987
9250
|
}
|
|
8988
9251
|
})
|
|
8989
|
-
}, /* @__PURE__ */
|
|
9252
|
+
}, /* @__PURE__ */ import_react54.default.createElement("span", {
|
|
8990
9253
|
className: "hawa-m-2"
|
|
8991
|
-
}, "Please enter your feedback"), " "), /* @__PURE__ */
|
|
9254
|
+
}, "Please enter your feedback"), " "), /* @__PURE__ */ import_react54.default.createElement(Button, {
|
|
8992
9255
|
isLoading: loadingSubmit,
|
|
8993
9256
|
onClick: onFeedbackSubmit,
|
|
8994
9257
|
className: "hawa-w-full",
|
|
@@ -8996,20 +9259,20 @@ var FeedbackEmoji = function(props) {
|
|
|
8996
9259
|
}, "Submit"))));
|
|
8997
9260
|
};
|
|
8998
9261
|
var VeryGoodEmoji = function() {
|
|
8999
|
-
return /* @__PURE__ */
|
|
9262
|
+
return /* @__PURE__ */ import_react54.default.createElement("svg", {
|
|
9000
9263
|
fill: "none",
|
|
9001
9264
|
height: "16",
|
|
9002
9265
|
viewBox: "0 0 16 16",
|
|
9003
9266
|
width: "16",
|
|
9004
9267
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9005
|
-
}, /* @__PURE__ */
|
|
9268
|
+
}, /* @__PURE__ */ import_react54.default.createElement("g", {
|
|
9006
9269
|
clipPath: "url(#clip0_53_166)"
|
|
9007
|
-
}, /* @__PURE__ */
|
|
9270
|
+
}, /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
9008
9271
|
clipRule: "evenodd",
|
|
9009
9272
|
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM4.5 8.97498H3.875V9.59998C3.875 11.4747 5.81046 12.8637 7.99817 12.8637C10.1879 12.8637 12.125 11.4832 12.125 9.59998V8.97498H11.5H4.5ZM7.99817 11.6137C6.59406 11.6137 5.63842 10.9482 5.28118 10.225H10.7202C10.3641 10.9504 9.40797 11.6137 7.99817 11.6137Z",
|
|
9010
9273
|
fill: "currentColor",
|
|
9011
9274
|
fillRule: "evenodd"
|
|
9012
|
-
}), /* @__PURE__ */
|
|
9275
|
+
}), /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
9013
9276
|
clipRule: "evenodd",
|
|
9014
9277
|
d: "M6.15295 4.92093L5.375 3.5L4.59705 4.92093L3 5.21885L4.11625 6.39495L3.90717 8L5.375 7.30593L6.84283 8L6.63375 6.39495L7.75 5.21885L6.15295 4.92093ZM11.403 4.92093L10.625 3.5L9.84705 4.92093L8.25 5.21885L9.36625 6.39495L9.15717 8L10.625 7.30593L12.0928 8L11.8837 6.39495L13 5.21885L11.403 4.92093Z",
|
|
9015
9278
|
fill: "#FF990A",
|
|
@@ -9017,15 +9280,15 @@ var VeryGoodEmoji = function() {
|
|
|
9017
9280
|
})));
|
|
9018
9281
|
};
|
|
9019
9282
|
var GoodEmoji = function() {
|
|
9020
|
-
return /* @__PURE__ */
|
|
9283
|
+
return /* @__PURE__ */ import_react54.default.createElement("svg", {
|
|
9021
9284
|
fill: "none",
|
|
9022
9285
|
height: "16",
|
|
9023
9286
|
viewBox: "0 0 16 16",
|
|
9024
9287
|
width: "16",
|
|
9025
9288
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9026
|
-
}, /* @__PURE__ */
|
|
9289
|
+
}, /* @__PURE__ */ import_react54.default.createElement("g", {
|
|
9027
9290
|
clipPath: "url(#clip0_53_167)"
|
|
9028
|
-
}, /* @__PURE__ */
|
|
9291
|
+
}, /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
9029
9292
|
clipRule: "evenodd",
|
|
9030
9293
|
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.5249 10.8478L11.8727 10.3286L10.8342 9.6329L10.4863 10.1522C9.94904 10.9543 9.0363 11.4802 8.00098 11.4802C6.96759 11.4802 6.05634 10.9563 5.51863 10.1567L5.16986 9.63804L4.13259 10.3356L4.48137 10.8542C5.2414 11.9844 6.53398 12.7302 8.00098 12.7302C9.47073 12.7302 10.7654 11.9816 11.5249 10.8478ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
|
|
9031
9294
|
fill: "currentColor",
|
|
@@ -9033,15 +9296,15 @@ var GoodEmoji = function() {
|
|
|
9033
9296
|
})));
|
|
9034
9297
|
};
|
|
9035
9298
|
var BadEmoji = function() {
|
|
9036
|
-
return /* @__PURE__ */
|
|
9299
|
+
return /* @__PURE__ */ import_react54.default.createElement("svg", {
|
|
9037
9300
|
fill: "none",
|
|
9038
9301
|
height: "16",
|
|
9039
9302
|
viewBox: "0 0 16 16",
|
|
9040
9303
|
width: "16",
|
|
9041
9304
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9042
|
-
}, /* @__PURE__ */
|
|
9305
|
+
}, /* @__PURE__ */ import_react54.default.createElement("g", {
|
|
9043
9306
|
clipPath: "url(#clip0_53_152)"
|
|
9044
|
-
}, /* @__PURE__ */
|
|
9307
|
+
}, /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
9045
9308
|
clipRule: "evenodd",
|
|
9046
9309
|
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM5.75 7.75C6.30228 7.75 6.75 7.30228 6.75 6.75C6.75 6.19772 6.30228 5.75 5.75 5.75C5.19772 5.75 4.75 6.19772 4.75 6.75C4.75 7.30228 5.19772 7.75 5.75 7.75ZM11.25 6.75C11.25 7.30228 10.8023 7.75 10.25 7.75C9.69771 7.75 9.25 7.30228 9.25 6.75C9.25 6.19772 9.69771 5.75 10.25 5.75C10.8023 5.75 11.25 6.19772 11.25 6.75ZM11.5249 11.2622L11.8727 11.7814L10.8342 12.4771L10.4863 11.9578C9.94904 11.1557 9.0363 10.6298 8.00098 10.6298C6.96759 10.6298 6.05634 11.1537 5.51863 11.9533L5.16986 12.4719L4.13259 11.7744L4.48137 11.2558C5.2414 10.1256 6.53398 9.37982 8.00098 9.37982C9.47073 9.37982 10.7654 10.1284 11.5249 11.2622Z",
|
|
9047
9310
|
fill: "currentColor",
|
|
@@ -9049,18 +9312,18 @@ var BadEmoji = function() {
|
|
|
9049
9312
|
})));
|
|
9050
9313
|
};
|
|
9051
9314
|
var VeryBadEmoji = function() {
|
|
9052
|
-
return /* @__PURE__ */
|
|
9315
|
+
return /* @__PURE__ */ import_react54.default.createElement("svg", {
|
|
9053
9316
|
fill: "none",
|
|
9054
9317
|
height: "16",
|
|
9055
9318
|
viewBox: "0 0 16 16",
|
|
9056
9319
|
width: "16",
|
|
9057
9320
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9058
|
-
}, /* @__PURE__ */
|
|
9321
|
+
}, /* @__PURE__ */ import_react54.default.createElement("g", {
|
|
9059
9322
|
clipPath: "url(#clip0_53_151)"
|
|
9060
|
-
}, /* @__PURE__ */
|
|
9323
|
+
}, /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
9061
9324
|
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",
|
|
9062
9325
|
fill: "#0070F3"
|
|
9063
|
-
}), /* @__PURE__ */
|
|
9326
|
+
}), /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
9064
9327
|
clipRule: "evenodd",
|
|
9065
9328
|
d: "M8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 10.9668 3.48826 13.4711 6.20649 14.2496L5.79351 15.6916C2.44895 14.7338 0 11.6539 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 9.4652 15.6054 10.8405 14.9162 12.023L13.6203 11.2677C14.1794 10.3083 14.5 9.19272 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
|
|
9066
9329
|
fill: "currentColor",
|
|
@@ -9068,7 +9331,7 @@ var VeryBadEmoji = function() {
|
|
|
9068
9331
|
})));
|
|
9069
9332
|
};
|
|
9070
9333
|
// components/blocks/feedback/FeedbackForm.tsx
|
|
9071
|
-
var
|
|
9334
|
+
var import_react55 = __toESM(require("react"));
|
|
9072
9335
|
var import_react_hook_form7 = require("react-hook-form");
|
|
9073
9336
|
var import_zod7 = require("@hookform/resolvers/zod");
|
|
9074
9337
|
var z7 = __toESM(require("zod"));
|
|
@@ -9089,9 +9352,9 @@ var FeedbackForm = function(props) {
|
|
|
9089
9352
|
var _ref = (0, import_react_hook_form7.useForm)({
|
|
9090
9353
|
resolver: (0, import_zod7.zodResolver)(formSchema)
|
|
9091
9354
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
9092
|
-
return /* @__PURE__ */
|
|
9355
|
+
return /* @__PURE__ */ import_react55.default.createElement(Card, null, /* @__PURE__ */ import_react55.default.createElement(CardContent, {
|
|
9093
9356
|
headless: true
|
|
9094
|
-
}, /* @__PURE__ */
|
|
9357
|
+
}, /* @__PURE__ */ import_react55.default.createElement("form", {
|
|
9095
9358
|
noValidate: true,
|
|
9096
9359
|
onSubmit: handleSubmit(function(e) {
|
|
9097
9360
|
if (props.onSubmit) {
|
|
@@ -9101,13 +9364,13 @@ var FeedbackForm = function(props) {
|
|
|
9101
9364
|
}
|
|
9102
9365
|
}),
|
|
9103
9366
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
9104
|
-
}, /* @__PURE__ */
|
|
9367
|
+
}, /* @__PURE__ */ import_react55.default.createElement(Label2, null, (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.requestType), /* @__PURE__ */ import_react55.default.createElement(import_react_hook_form7.Controller, {
|
|
9105
9368
|
name: "requestType",
|
|
9106
9369
|
control: control,
|
|
9107
9370
|
render: function(param) {
|
|
9108
9371
|
var field = param.field;
|
|
9109
9372
|
var _formState_errors_requestType_message, _formState_errors_requestType;
|
|
9110
|
-
return /* @__PURE__ */
|
|
9373
|
+
return /* @__PURE__ */ import_react55.default.createElement(Select, _object_spread_props(_object_spread({}, field), {
|
|
9111
9374
|
onChange: function(option) {
|
|
9112
9375
|
return field.onChange(option.value);
|
|
9113
9376
|
},
|
|
@@ -9115,70 +9378,70 @@ var FeedbackForm = function(props) {
|
|
|
9115
9378
|
helperText: (_formState_errors_requestType = formState.errors.requestType) === null || _formState_errors_requestType === void 0 ? void 0 : (_formState_errors_requestType_message = _formState_errors_requestType.message) === null || _formState_errors_requestType_message === void 0 ? void 0 : _formState_errors_requestType_message.toString()
|
|
9116
9379
|
}));
|
|
9117
9380
|
}
|
|
9118
|
-
}), /* @__PURE__ */
|
|
9381
|
+
}), /* @__PURE__ */ import_react55.default.createElement(Label2, null, props.texts.description), /* @__PURE__ */ import_react55.default.createElement(import_react_hook_form7.Controller, {
|
|
9119
9382
|
name: "description",
|
|
9120
9383
|
control: control,
|
|
9121
9384
|
render: function(param) {
|
|
9122
9385
|
var field = param.field;
|
|
9123
9386
|
var _formState_errors_description_message, _formState_errors_description;
|
|
9124
|
-
return /* @__PURE__ */
|
|
9387
|
+
return /* @__PURE__ */ import_react55.default.createElement(Textarea, _object_spread_props(_object_spread({}, field), {
|
|
9125
9388
|
helperText: formState.errors.description && ((_formState_errors_description = formState.errors.description) === null || _formState_errors_description === void 0 ? void 0 : (_formState_errors_description_message = _formState_errors_description.message) === null || _formState_errors_description_message === void 0 ? void 0 : _formState_errors_description_message.toString())
|
|
9126
9389
|
}));
|
|
9127
9390
|
}
|
|
9128
|
-
}), /* @__PURE__ */
|
|
9391
|
+
}), /* @__PURE__ */ import_react55.default.createElement(Button, {
|
|
9129
9392
|
type: "submit"
|
|
9130
9393
|
}, (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.submit))));
|
|
9131
9394
|
};
|
|
9132
9395
|
// components/blocks/misc/LegalTexts.tsx
|
|
9133
|
-
var
|
|
9396
|
+
var import_react56 = __toESM(require("react"));
|
|
9134
9397
|
var LegalTexts = function(_param) {
|
|
9135
9398
|
var tabs = _param.tabs, props = _object_without_properties(_param, [
|
|
9136
9399
|
"tabs"
|
|
9137
9400
|
]);
|
|
9138
|
-
return /* @__PURE__ */
|
|
9401
|
+
return /* @__PURE__ */ import_react56.default.createElement(Tabs, {
|
|
9139
9402
|
value: props.activeTab,
|
|
9140
9403
|
onValueChange: props.handleTabChange,
|
|
9141
9404
|
defaultValue: props.defaultTab || tabs[0].value,
|
|
9142
9405
|
dir: props.direction
|
|
9143
|
-
}, /* @__PURE__ */
|
|
9406
|
+
}, /* @__PURE__ */ import_react56.default.createElement(TabsList, {
|
|
9144
9407
|
className: "hawa-w-full"
|
|
9145
9408
|
}, tabs.map(function(tab, index) {
|
|
9146
|
-
return /* @__PURE__ */
|
|
9409
|
+
return /* @__PURE__ */ import_react56.default.createElement(TabsTrigger, {
|
|
9147
9410
|
key: index,
|
|
9148
9411
|
value: tab.value
|
|
9149
9412
|
}, tab.title);
|
|
9150
9413
|
})), tabs.map(function(tab, index) {
|
|
9151
|
-
return /* @__PURE__ */
|
|
9414
|
+
return /* @__PURE__ */ import_react56.default.createElement(TabsContent, {
|
|
9152
9415
|
key: index,
|
|
9153
9416
|
value: tab.value
|
|
9154
|
-
}, /* @__PURE__ */
|
|
9417
|
+
}, /* @__PURE__ */ import_react56.default.createElement(ScrollArea, {
|
|
9155
9418
|
className: cn("hawa-p-4 hawa-rounded hawa-bg-muted hawa-border", props.scrollAreaClassName)
|
|
9156
9419
|
}, tab.content));
|
|
9157
9420
|
}));
|
|
9158
9421
|
};
|
|
9159
9422
|
// components/blocks/misc/EmptyState.tsx
|
|
9160
|
-
var
|
|
9423
|
+
var import_react57 = __toESM(require("react"));
|
|
9161
9424
|
var EmptyState = function(param) {
|
|
9162
9425
|
var texts = param.texts, onActionClick = param.onActionClick;
|
|
9163
9426
|
var _texts_youreCaughtUp, _texts_actionText;
|
|
9164
|
-
return /* @__PURE__ */
|
|
9427
|
+
return /* @__PURE__ */ import_react57.default.createElement(Card, null, /* @__PURE__ */ import_react57.default.createElement(CardContent, {
|
|
9165
9428
|
headless: true
|
|
9166
|
-
}, /* @__PURE__ */
|
|
9429
|
+
}, /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
9167
9430
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center "
|
|
9168
|
-
}, /* @__PURE__ */
|
|
9431
|
+
}, /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
9169
9432
|
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"
|
|
9170
|
-
}, /* @__PURE__ */
|
|
9433
|
+
}, /* @__PURE__ */ import_react57.default.createElement("svg", {
|
|
9171
9434
|
stroke: "currentColor",
|
|
9172
9435
|
fill: "currentColor",
|
|
9173
9436
|
strokeWidth: "0",
|
|
9174
9437
|
viewBox: "0 0 512 512",
|
|
9175
9438
|
height: "0.35em",
|
|
9176
9439
|
width: "0.35em"
|
|
9177
|
-
}, /* @__PURE__ */
|
|
9440
|
+
}, /* @__PURE__ */ import_react57.default.createElement("path", {
|
|
9178
9441
|
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"
|
|
9179
|
-
}))), /* @__PURE__ */
|
|
9442
|
+
}))), /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
9180
9443
|
className: "hawa-m-2 hawa-text-xl hawa-font-bold"
|
|
9181
|
-
}, (_texts_youreCaughtUp = texts === null || texts === void 0 ? void 0 : texts.youreCaughtUp) !== null && _texts_youreCaughtUp !== void 0 ? _texts_youreCaughtUp : "You're all caught up"))), /* @__PURE__ */
|
|
9444
|
+
}, (_texts_youreCaughtUp = texts === null || texts === void 0 ? void 0 : texts.youreCaughtUp) !== null && _texts_youreCaughtUp !== void 0 ? _texts_youreCaughtUp : "You're all caught up"))), /* @__PURE__ */ import_react57.default.createElement(CardFooter, null, /* @__PURE__ */ import_react57.default.createElement(Button, {
|
|
9182
9445
|
className: "hawa-w-full",
|
|
9183
9446
|
onClick: function() {
|
|
9184
9447
|
return onActionClick();
|
|
@@ -9186,36 +9449,36 @@ var EmptyState = function(param) {
|
|
|
9186
9449
|
}, (_texts_actionText = texts === null || texts === void 0 ? void 0 : texts.actionText) !== null && _texts_actionText !== void 0 ? _texts_actionText : "Go Home")));
|
|
9187
9450
|
};
|
|
9188
9451
|
// components/blocks/misc/Testimonial.tsx
|
|
9189
|
-
var
|
|
9452
|
+
var import_react58 = __toESM(require("react"));
|
|
9190
9453
|
var Testimonial = function(props) {
|
|
9191
|
-
return /* @__PURE__ */
|
|
9454
|
+
return /* @__PURE__ */ import_react58.default.createElement(Card, null, /* @__PURE__ */ import_react58.default.createElement(CardContent, {
|
|
9192
9455
|
headless: true
|
|
9193
|
-
}, /* @__PURE__ */
|
|
9456
|
+
}, /* @__PURE__ */ import_react58.default.createElement("div", null, /* @__PURE__ */ import_react58.default.createElement("p", {
|
|
9194
9457
|
className: "mb-4 max-w-sm"
|
|
9195
|
-
}, "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__ */
|
|
9458
|
+
}, "The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless.")), /* @__PURE__ */ import_react58.default.createElement("div", {
|
|
9196
9459
|
className: "flex flex-row gap-4"
|
|
9197
|
-
}, /* @__PURE__ */
|
|
9460
|
+
}, /* @__PURE__ */ import_react58.default.createElement("svg", {
|
|
9198
9461
|
width: "48",
|
|
9199
9462
|
height: "48",
|
|
9200
9463
|
viewBox: "0 0 48 48",
|
|
9201
9464
|
fill: "none"
|
|
9202
|
-
}, /* @__PURE__ */
|
|
9465
|
+
}, /* @__PURE__ */ import_react58.default.createElement("rect", {
|
|
9203
9466
|
width: "48",
|
|
9204
9467
|
height: "48",
|
|
9205
9468
|
rx: "24",
|
|
9206
9469
|
fill: "#45BE8B"
|
|
9207
|
-
}), /* @__PURE__ */
|
|
9470
|
+
}), /* @__PURE__ */ import_react58.default.createElement("path", {
|
|
9208
9471
|
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",
|
|
9209
9472
|
fill: "#FFFFFF"
|
|
9210
|
-
}), /* @__PURE__ */
|
|
9473
|
+
}), /* @__PURE__ */ import_react58.default.createElement("path", {
|
|
9211
9474
|
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",
|
|
9212
9475
|
fill: "#FFFFFF"
|
|
9213
|
-
})), /* @__PURE__ */
|
|
9476
|
+
})), /* @__PURE__ */ import_react58.default.createElement("span", {
|
|
9214
9477
|
className: "border border-l "
|
|
9215
|
-
}), " ", /* @__PURE__ */
|
|
9478
|
+
}), " ", /* @__PURE__ */ import_react58.default.createElement("div", null, /* @__PURE__ */ import_react58.default.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ import_react58.default.createElement("div", null, " Chief Information Security Officer")))));
|
|
9216
9479
|
};
|
|
9217
9480
|
// components/blocks/misc/LeadGenerator.tsx
|
|
9218
|
-
var
|
|
9481
|
+
var import_react59 = __toESM(require("react"));
|
|
9219
9482
|
var import_react_hook_form8 = require("react-hook-form");
|
|
9220
9483
|
var LeadGenerator = function(param) {
|
|
9221
9484
|
var texts = param.texts, submitHandler = param.submitHandler;
|
|
@@ -9228,11 +9491,11 @@ var LeadGenerator = function(param) {
|
|
|
9228
9491
|
}
|
|
9229
9492
|
};
|
|
9230
9493
|
var _texts_submit;
|
|
9231
|
-
return /* @__PURE__ */
|
|
9494
|
+
return /* @__PURE__ */ import_react59.default.createElement(Card, null, /* @__PURE__ */ import_react59.default.createElement(CardHeader, null, /* @__PURE__ */ import_react59.default.createElement(CardTitle, null, texts === null || texts === void 0 ? void 0 : texts.title), /* @__PURE__ */ import_react59.default.createElement(CardDescription, null, texts === null || texts === void 0 ? void 0 : texts.subtitle)), /* @__PURE__ */ import_react59.default.createElement(CardContent, null, /* @__PURE__ */ import_react59.default.createElement("form", {
|
|
9232
9495
|
noValidate: true,
|
|
9233
9496
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
|
9234
9497
|
onSubmit: handleSubmit(onSubmit)
|
|
9235
|
-
}, /* @__PURE__ */
|
|
9498
|
+
}, /* @__PURE__ */ import_react59.default.createElement(import_react_hook_form8.Controller, {
|
|
9236
9499
|
name: "email",
|
|
9237
9500
|
control: control,
|
|
9238
9501
|
rules: {
|
|
@@ -9245,32 +9508,32 @@ var LeadGenerator = function(param) {
|
|
|
9245
9508
|
defaultValue: "",
|
|
9246
9509
|
render: function(param) {
|
|
9247
9510
|
var field = param.field;
|
|
9248
|
-
return /* @__PURE__ */
|
|
9511
|
+
return /* @__PURE__ */ import_react59.default.createElement(Input, _object_spread_props(_object_spread({}, field), {
|
|
9249
9512
|
type: "email",
|
|
9250
9513
|
placeholder: "example@sikka.io"
|
|
9251
9514
|
}));
|
|
9252
9515
|
}
|
|
9253
|
-
}), /* @__PURE__ */
|
|
9516
|
+
}), /* @__PURE__ */ import_react59.default.createElement(Button, {
|
|
9254
9517
|
type: "submit",
|
|
9255
9518
|
disabled: !formState.isValid
|
|
9256
9519
|
}, (_texts_submit = texts === null || texts === void 0 ? void 0 : texts.submit) !== null && _texts_submit !== void 0 ? _texts_submit : "Submit"))));
|
|
9257
9520
|
};
|
|
9258
9521
|
// components/blocks/misc/Announcement.tsx
|
|
9259
|
-
var
|
|
9522
|
+
var import_react60 = __toESM(require("react"));
|
|
9260
9523
|
var Announcement = function(_param) {
|
|
9261
9524
|
var onActionClick = _param.onActionClick, props = _object_without_properties(_param, [
|
|
9262
9525
|
"onActionClick"
|
|
9263
9526
|
]);
|
|
9264
|
-
return /* @__PURE__ */
|
|
9527
|
+
return /* @__PURE__ */ import_react60.default.createElement(Card, null, /* @__PURE__ */ import_react60.default.createElement(CardContent, {
|
|
9265
9528
|
headless: true,
|
|
9266
9529
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
|
9267
|
-
}, /* @__PURE__ */
|
|
9530
|
+
}, /* @__PURE__ */ import_react60.default.createElement("div", {
|
|
9268
9531
|
className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center "
|
|
9269
|
-
}, /* @__PURE__ */
|
|
9532
|
+
}, /* @__PURE__ */ import_react60.default.createElement("span", {
|
|
9270
9533
|
className: "hawa-text-lg hawa-font-bold"
|
|
9271
|
-
}, props.title), /* @__PURE__ */
|
|
9534
|
+
}, props.title), /* @__PURE__ */ import_react60.default.createElement("span", {
|
|
9272
9535
|
className: "hawa-text-sm"
|
|
9273
|
-
}, props.subtitle)), /* @__PURE__ */
|
|
9536
|
+
}, props.subtitle)), /* @__PURE__ */ import_react60.default.createElement(Button, {
|
|
9274
9537
|
onClick: function() {
|
|
9275
9538
|
return onActionClick();
|
|
9276
9539
|
},
|
|
@@ -9278,56 +9541,56 @@ var Announcement = function(_param) {
|
|
|
9278
9541
|
}, props.actionText)));
|
|
9279
9542
|
};
|
|
9280
9543
|
// components/blocks/misc/NotFound.tsx
|
|
9281
|
-
var
|
|
9544
|
+
var import_react61 = __toESM(require("react"));
|
|
9282
9545
|
var NotFound = function(param) {
|
|
9283
9546
|
var _param_variant = param.variant, variant = _param_variant === void 0 ? "contained" : _param_variant, texts = param.texts;
|
|
9284
9547
|
var _texts_pageNotFound, _texts_ifLost, _texts_home;
|
|
9285
|
-
return /* @__PURE__ */
|
|
9548
|
+
return /* @__PURE__ */ import_react61.default.createElement(Card, null, /* @__PURE__ */ import_react61.default.createElement(CardContent, {
|
|
9286
9549
|
headless: true
|
|
9287
|
-
}, /* @__PURE__ */
|
|
9550
|
+
}, /* @__PURE__ */ import_react61.default.createElement("div", {
|
|
9288
9551
|
className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white"
|
|
9289
|
-
}, /* @__PURE__ */
|
|
9552
|
+
}, /* @__PURE__ */ import_react61.default.createElement("div", {
|
|
9290
9553
|
className: "hawa-text-center hawa-text-6xl hawa-font-bold "
|
|
9291
|
-
}, "404"), /* @__PURE__ */
|
|
9554
|
+
}, "404"), /* @__PURE__ */ import_react61.default.createElement("div", {
|
|
9292
9555
|
className: "hawa-m-2 hawa-text-center hawa-text-xl hawa-font-bold "
|
|
9293
|
-
}, (_texts_pageNotFound = texts === null || texts === void 0 ? void 0 : texts.pageNotFound) !== null && _texts_pageNotFound !== void 0 ? _texts_pageNotFound : "Page Not Found"), /* @__PURE__ */
|
|
9556
|
+
}, (_texts_pageNotFound = texts === null || texts === void 0 ? void 0 : texts.pageNotFound) !== null && _texts_pageNotFound !== void 0 ? _texts_pageNotFound : "Page Not Found"), /* @__PURE__ */ import_react61.default.createElement("div", {
|
|
9294
9557
|
className: "hawa-mb-4 hawa-text-center"
|
|
9295
|
-
}, (_texts_ifLost = texts === null || texts === void 0 ? void 0 : texts.ifLost) !== null && _texts_ifLost !== void 0 ? _texts_ifLost : /* @__PURE__ */
|
|
9558
|
+
}, (_texts_ifLost = texts === null || texts === void 0 ? void 0 : texts.ifLost) !== null && _texts_ifLost !== void 0 ? _texts_ifLost : /* @__PURE__ */ import_react61.default.createElement(import_react61.default.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ import_react61.default.createElement("span", {
|
|
9296
9559
|
className: "clickable-link"
|
|
9297
|
-
}, "help@sikka.io"))), /* @__PURE__ */
|
|
9560
|
+
}, "help@sikka.io"))), /* @__PURE__ */ import_react61.default.createElement(Button, {
|
|
9298
9561
|
className: "hawa-w-full"
|
|
9299
9562
|
}, (_texts_home = texts === null || texts === void 0 ? void 0 : texts.home) !== null && _texts_home !== void 0 ? _texts_home : "Home"))));
|
|
9300
9563
|
};
|
|
9301
9564
|
// components/blocks/misc/NoPermission.tsx
|
|
9302
|
-
var
|
|
9565
|
+
var import_react62 = __toESM(require("react"));
|
|
9303
9566
|
var NoPermission = function(param) {
|
|
9304
9567
|
var texts = param.texts;
|
|
9305
9568
|
var _texts_title, _texts_subtitle;
|
|
9306
|
-
return /* @__PURE__ */
|
|
9569
|
+
return /* @__PURE__ */ import_react62.default.createElement(Card, null, /* @__PURE__ */ import_react62.default.createElement(CardContent, {
|
|
9307
9570
|
headless: true
|
|
9308
|
-
}, /* @__PURE__ */
|
|
9571
|
+
}, /* @__PURE__ */ import_react62.default.createElement("div", {
|
|
9309
9572
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center"
|
|
9310
|
-
}, /* @__PURE__ */
|
|
9573
|
+
}, /* @__PURE__ */ import_react62.default.createElement("div", {
|
|
9311
9574
|
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"
|
|
9312
|
-
}, /* @__PURE__ */
|
|
9575
|
+
}, /* @__PURE__ */ import_react62.default.createElement("svg", {
|
|
9313
9576
|
stroke: "currentColor",
|
|
9314
9577
|
fill: "currentColor",
|
|
9315
9578
|
strokeWidth: "0",
|
|
9316
9579
|
viewBox: "0 0 448 512",
|
|
9317
9580
|
height: "0.35em",
|
|
9318
9581
|
width: "0.35em"
|
|
9319
|
-
}, /* @__PURE__ */
|
|
9582
|
+
}, /* @__PURE__ */ import_react62.default.createElement("path", {
|
|
9320
9583
|
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"
|
|
9321
|
-
})), " "), /* @__PURE__ */
|
|
9584
|
+
})), " "), /* @__PURE__ */ import_react62.default.createElement("div", {
|
|
9322
9585
|
className: "hawa-m-2 hawa-text-xl hawa-font-bold"
|
|
9323
|
-
}, (_texts_title = texts === null || texts === void 0 ? void 0 : texts.title) !== null && _texts_title !== void 0 ? _texts_title : "You don't have permission"), /* @__PURE__ */
|
|
9586
|
+
}, (_texts_title = texts === null || texts === void 0 ? void 0 : texts.title) !== null && _texts_title !== void 0 ? _texts_title : "You don't have permission"), /* @__PURE__ */ import_react62.default.createElement("div", null, (_texts_subtitle = texts === null || texts === void 0 ? void 0 : texts.subtitle) !== null && _texts_subtitle !== void 0 ? _texts_subtitle : "If you think this is a problem please contact your administrator or our customer support"))));
|
|
9324
9587
|
};
|
|
9325
9588
|
// components/blocks/pricing/PricingPlans.tsx
|
|
9326
|
-
var
|
|
9589
|
+
var import_react63 = __toESM(require("react"));
|
|
9327
9590
|
var PricingPlans = function(props) {
|
|
9328
|
-
return /* @__PURE__ */
|
|
9591
|
+
return /* @__PURE__ */ import_react63.default.createElement("div", null, /* @__PURE__ */ import_react63.default.createElement("div", {
|
|
9329
9592
|
className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between"
|
|
9330
|
-
}, /* @__PURE__ */
|
|
9593
|
+
}, /* @__PURE__ */ import_react63.default.createElement(Radio, {
|
|
9331
9594
|
design: "tabs",
|
|
9332
9595
|
defaultValue: props.currentCycle,
|
|
9333
9596
|
options: props.billingCycles,
|
|
@@ -9336,7 +9599,7 @@ var PricingPlans = function(props) {
|
|
|
9336
9599
|
props.onCycleChange(e);
|
|
9337
9600
|
}
|
|
9338
9601
|
}
|
|
9339
|
-
}), /* @__PURE__ */
|
|
9602
|
+
}), /* @__PURE__ */ import_react63.default.createElement(Radio, {
|
|
9340
9603
|
design: "tabs",
|
|
9341
9604
|
defaultValue: props.currentCurrency,
|
|
9342
9605
|
options: props.currencies,
|
|
@@ -9345,10 +9608,10 @@ var PricingPlans = function(props) {
|
|
|
9345
9608
|
props.onCurrencyChange(e);
|
|
9346
9609
|
}
|
|
9347
9610
|
}
|
|
9348
|
-
})), /* @__PURE__ */
|
|
9611
|
+
})), /* @__PURE__ */ import_react63.default.createElement("div", {
|
|
9349
9612
|
className: "hawa-flex hawa-flex-row hawa-justify-between"
|
|
9350
9613
|
}, props.plans.map(function(plan, index) {
|
|
9351
|
-
return /* @__PURE__ */
|
|
9614
|
+
return /* @__PURE__ */ import_react63.default.createElement(PricingCard, _object_spread_props(_object_spread({
|
|
9352
9615
|
key: index,
|
|
9353
9616
|
onPlanClicked: function() {
|
|
9354
9617
|
if (props.onPlanClicked) {
|
|
@@ -9369,26 +9632,26 @@ var PricingPlans = function(props) {
|
|
|
9369
9632
|
})));
|
|
9370
9633
|
};
|
|
9371
9634
|
// components/blocks/pricing/ComparingPlans.tsx
|
|
9372
|
-
var
|
|
9635
|
+
var import_react64 = __toESM(require("react"));
|
|
9373
9636
|
var CheckMark = function() {
|
|
9374
|
-
return /* @__PURE__ */
|
|
9637
|
+
return /* @__PURE__ */ import_react64.default.createElement("svg", {
|
|
9375
9638
|
className: "hawa-h-5 hawa-w-5 hawa-text-green-500",
|
|
9376
9639
|
"aria-hidden": "true",
|
|
9377
9640
|
fill: "currentColor",
|
|
9378
9641
|
viewBox: "0 0 20 20"
|
|
9379
|
-
}, /* @__PURE__ */
|
|
9642
|
+
}, /* @__PURE__ */ import_react64.default.createElement("path", {
|
|
9380
9643
|
fillRule: "evenodd",
|
|
9381
9644
|
d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
|
|
9382
9645
|
clipRule: "evenodd"
|
|
9383
9646
|
}));
|
|
9384
9647
|
};
|
|
9385
9648
|
var UncheckMark = function() {
|
|
9386
|
-
return /* @__PURE__ */
|
|
9649
|
+
return /* @__PURE__ */ import_react64.default.createElement("svg", {
|
|
9387
9650
|
className: "hawa-h-5 hawa-w-5 hawa-text-red-500",
|
|
9388
9651
|
"aria-hidden": "true",
|
|
9389
9652
|
fill: "currentColor",
|
|
9390
9653
|
viewBox: "0 0 20 20"
|
|
9391
|
-
}, /* @__PURE__ */
|
|
9654
|
+
}, /* @__PURE__ */ import_react64.default.createElement("path", {
|
|
9392
9655
|
fillRule: "evenodd",
|
|
9393
9656
|
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
9394
9657
|
clipRule: "evenodd"
|
|
@@ -9396,14 +9659,14 @@ var UncheckMark = function() {
|
|
|
9396
9659
|
};
|
|
9397
9660
|
var ComparingPlans = function(props) {
|
|
9398
9661
|
var _props_plans;
|
|
9399
|
-
var _ref = _sliced_to_array((0,
|
|
9400
|
-
var _ref1 = _sliced_to_array((0,
|
|
9401
|
-
return /* @__PURE__ */
|
|
9662
|
+
var _ref = _sliced_to_array((0, import_react64.useState)("sar"), 2), currentCurrency = _ref[0], setCurrentCurrency = _ref[1];
|
|
9663
|
+
var _ref1 = _sliced_to_array((0, import_react64.useState)("month"), 2), currentCycle = _ref1[0], setCurrentCycle = _ref1[1];
|
|
9664
|
+
return /* @__PURE__ */ import_react64.default.createElement("div", {
|
|
9402
9665
|
id: "detailed-pricing",
|
|
9403
9666
|
className: "hawa-w-full hawa-overflow-x-auto"
|
|
9404
|
-
}, /* @__PURE__ */
|
|
9667
|
+
}, /* @__PURE__ */ import_react64.default.createElement("div", {
|
|
9405
9668
|
className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between"
|
|
9406
|
-
}, /* @__PURE__ */
|
|
9669
|
+
}, /* @__PURE__ */ import_react64.default.createElement(Radio, {
|
|
9407
9670
|
design: "tabs",
|
|
9408
9671
|
defaultValue: currentCycle,
|
|
9409
9672
|
options: props.billingCycles,
|
|
@@ -9414,7 +9677,7 @@ var ComparingPlans = function(props) {
|
|
|
9414
9677
|
console.log("onCycleChange was not provided");
|
|
9415
9678
|
}
|
|
9416
9679
|
}
|
|
9417
|
-
}), /* @__PURE__ */
|
|
9680
|
+
}), /* @__PURE__ */ import_react64.default.createElement(Radio, {
|
|
9418
9681
|
design: "tabs",
|
|
9419
9682
|
defaultValue: currentCurrency,
|
|
9420
9683
|
options: props.currencies,
|
|
@@ -9425,56 +9688,56 @@ var ComparingPlans = function(props) {
|
|
|
9425
9688
|
console.log("onCurrencyChange was not provided");
|
|
9426
9689
|
}
|
|
9427
9690
|
}
|
|
9428
|
-
})), /* @__PURE__ */
|
|
9691
|
+
})), /* @__PURE__ */ import_react64.default.createElement("div", {
|
|
9429
9692
|
className: " hawa-overflow-hidden hawa-rounded"
|
|
9430
|
-
}, /* @__PURE__ */
|
|
9693
|
+
}, /* @__PURE__ */ import_react64.default.createElement("div", {
|
|
9431
9694
|
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"
|
|
9432
|
-
}, /* @__PURE__ */
|
|
9695
|
+
}, /* @__PURE__ */ import_react64.default.createElement("div", {
|
|
9433
9696
|
className: "hawa-flex hawa-items-center"
|
|
9434
9697
|
}), props.plans.map(function(plan, i) {
|
|
9435
|
-
return /* @__PURE__ */
|
|
9698
|
+
return /* @__PURE__ */ import_react64.default.createElement("div", {
|
|
9436
9699
|
key: i
|
|
9437
|
-
}, /* @__PURE__ */
|
|
9700
|
+
}, /* @__PURE__ */ import_react64.default.createElement("h5", {
|
|
9438
9701
|
className: "hawa-text-md hawa-font-bold hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
9439
|
-
}, plan.texts.title), /* @__PURE__ */
|
|
9702
|
+
}, plan.texts.title), /* @__PURE__ */ import_react64.default.createElement("div", {
|
|
9440
9703
|
className: " hawa-flex hawa-items-baseline hawa-text-gray-900 dark:hawa-text-white"
|
|
9441
|
-
}, /* @__PURE__ */
|
|
9704
|
+
}, /* @__PURE__ */ import_react64.default.createElement(import_react64.default.Fragment, null, /* @__PURE__ */ import_react64.default.createElement("span", {
|
|
9442
9705
|
className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight"
|
|
9443
|
-
}, plan.price), /* @__PURE__ */
|
|
9706
|
+
}, plan.price), /* @__PURE__ */ import_react64.default.createElement("span", {
|
|
9444
9707
|
className: "hawa-mx-1 hawa-text-sm hawa-font-semibold"
|
|
9445
|
-
}, plan.texts.currencyText)), /* @__PURE__ */
|
|
9708
|
+
}, plan.texts.currencyText)), /* @__PURE__ */ import_react64.default.createElement("span", {
|
|
9446
9709
|
className: "hawa-ml-1 hawa-text-xl hawa-font-normal hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
9447
|
-
}, "/ ", plan.texts.cycleText)), /* @__PURE__ */
|
|
9710
|
+
}, "/ ", plan.texts.cycleText)), /* @__PURE__ */ import_react64.default.createElement("h5", {
|
|
9448
9711
|
className: "hawa-text-md hawa-font-normal hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
9449
9712
|
}, plan.texts.subtitle));
|
|
9450
9713
|
})), (_props_plans = props.plans) === null || _props_plans === void 0 ? void 0 : _props_plans.map(function(plan) {
|
|
9451
9714
|
return plan.features.map(function(feature, j) {
|
|
9452
|
-
return /* @__PURE__ */
|
|
9715
|
+
return /* @__PURE__ */ import_react64.default.createElement("div", {
|
|
9453
9716
|
key: j,
|
|
9454
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"
|
|
9455
|
-
}, /* @__PURE__ */
|
|
9718
|
+
}, /* @__PURE__ */ import_react64.default.createElement("div", {
|
|
9456
9719
|
className: " hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
9457
|
-
}, feature.text, feature.description && /* @__PURE__ */
|
|
9720
|
+
}, feature.text, feature.description && /* @__PURE__ */ import_react64.default.createElement(Tooltip, {
|
|
9458
9721
|
side: "right",
|
|
9459
9722
|
content: feature.description
|
|
9460
|
-
}, /* @__PURE__ */
|
|
9723
|
+
}, /* @__PURE__ */ import_react64.default.createElement("svg", {
|
|
9461
9724
|
stroke: "currentColor",
|
|
9462
9725
|
fill: "currentColor",
|
|
9463
9726
|
strokeWidth: "0",
|
|
9464
9727
|
viewBox: "0 0 16 16",
|
|
9465
9728
|
height: "1em",
|
|
9466
9729
|
width: "1em"
|
|
9467
|
-
}, /* @__PURE__ */
|
|
9730
|
+
}, /* @__PURE__ */ import_react64.default.createElement("path", {
|
|
9468
9731
|
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"
|
|
9469
|
-
})))), /* @__PURE__ */
|
|
9732
|
+
})))), /* @__PURE__ */ import_react64.default.createElement(UncheckMark, null), /* @__PURE__ */ import_react64.default.createElement(CheckMark, null), /* @__PURE__ */ import_react64.default.createElement(UncheckMark, null));
|
|
9470
9733
|
});
|
|
9471
9734
|
})));
|
|
9472
9735
|
};
|
|
9473
9736
|
// components/blocks/pricing/HorizontalPricing.tsx
|
|
9474
|
-
var
|
|
9737
|
+
var import_react65 = __toESM(require("react"));
|
|
9475
9738
|
var import_clsx12 = __toESM(require("clsx"));
|
|
9476
9739
|
var HorizontalPricing = function(props) {
|
|
9477
|
-
var _ref = _sliced_to_array((0,
|
|
9740
|
+
var _ref = _sliced_to_array((0, import_react65.useState)(""), 2), selectedCard = _ref[0], setSelectedCard = _ref[1];
|
|
9478
9741
|
var data = [
|
|
9479
9742
|
{
|
|
9480
9743
|
title: "basic",
|
|
@@ -9492,96 +9755,96 @@ var HorizontalPricing = function(props) {
|
|
|
9492
9755
|
cycle: "/mo"
|
|
9493
9756
|
}
|
|
9494
9757
|
];
|
|
9495
|
-
return /* @__PURE__ */
|
|
9758
|
+
return /* @__PURE__ */ import_react65.default.createElement("div", {
|
|
9496
9759
|
className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm"
|
|
9497
|
-
}, /* @__PURE__ */
|
|
9760
|
+
}, /* @__PURE__ */ import_react65.default.createElement("div", {
|
|
9498
9761
|
className: "hawa-max-w-2xl "
|
|
9499
|
-
}, /* @__PURE__ */
|
|
9762
|
+
}, /* @__PURE__ */ import_react65.default.createElement("div", {
|
|
9500
9763
|
className: "hawa-flex hawa-flex-row hawa-justify-between"
|
|
9501
|
-
}, /* @__PURE__ */
|
|
9764
|
+
}, /* @__PURE__ */ import_react65.default.createElement(Radio, {
|
|
9502
9765
|
design: "tabs",
|
|
9503
9766
|
options: props.currencies,
|
|
9504
9767
|
defaultValue: props.currentCurrency
|
|
9505
|
-
}), /* @__PURE__ */
|
|
9768
|
+
}), /* @__PURE__ */ import_react65.default.createElement(Radio, {
|
|
9506
9769
|
design: "tabs",
|
|
9507
9770
|
options: props.billingCycles,
|
|
9508
9771
|
defaultValue: props.currentCycle
|
|
9509
9772
|
})), data.map(function(d, i) {
|
|
9510
|
-
return /* @__PURE__ */
|
|
9773
|
+
return /* @__PURE__ */ import_react65.default.createElement("label", {
|
|
9511
9774
|
key: i,
|
|
9512
9775
|
htmlFor: d.title,
|
|
9513
9776
|
className: "",
|
|
9514
9777
|
onClick: function() {
|
|
9515
9778
|
return setSelectedCard(d.title);
|
|
9516
9779
|
}
|
|
9517
|
-
}, /* @__PURE__ */
|
|
9780
|
+
}, /* @__PURE__ */ import_react65.default.createElement("input", {
|
|
9518
9781
|
type: "radio",
|
|
9519
9782
|
name: "radio",
|
|
9520
9783
|
id: d.title,
|
|
9521
9784
|
className: "hawa-peer hawa-appearance-none"
|
|
9522
|
-
}), /* @__PURE__ */
|
|
9785
|
+
}), /* @__PURE__ */ import_react65.default.createElement("div", {
|
|
9523
9786
|
className: (0, import_clsx12.default)(selectedCard === d.title ? "peer-checked:hawa-border-primary peer-checked:hawa-ring-primary/20 peer-checked:hawa-ring-4 " : "", "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")
|
|
9524
|
-
}, /* @__PURE__ */
|
|
9787
|
+
}, /* @__PURE__ */ import_react65.default.createElement("div", {
|
|
9525
9788
|
className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4"
|
|
9526
|
-
}, /* @__PURE__ */
|
|
9789
|
+
}, /* @__PURE__ */ import_react65.default.createElement(CheckIcons, null), /* @__PURE__ */ import_react65.default.createElement(CardText, {
|
|
9527
9790
|
title: "Enterprise",
|
|
9528
9791
|
subtitle: "For startups and new businesses"
|
|
9529
|
-
})), /* @__PURE__ */
|
|
9792
|
+
})), /* @__PURE__ */ import_react65.default.createElement(CardPrice, {
|
|
9530
9793
|
amount: d.price,
|
|
9531
9794
|
cycle: d.cycle
|
|
9532
9795
|
})));
|
|
9533
9796
|
})));
|
|
9534
9797
|
};
|
|
9535
9798
|
var CheckIcons = function() {
|
|
9536
|
-
return /* @__PURE__ */
|
|
9799
|
+
return /* @__PURE__ */ import_react65.default.createElement(import_react65.default.Fragment, null, /* @__PURE__ */ import_react65.default.createElement("svg", {
|
|
9537
9800
|
fill: "none",
|
|
9538
9801
|
viewBox: "0 0 24 24",
|
|
9539
9802
|
strokeWidth: "1.5",
|
|
9540
9803
|
stroke: "currentColor",
|
|
9541
9804
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
|
9542
|
-
}, /* @__PURE__ */
|
|
9805
|
+
}, /* @__PURE__ */ import_react65.default.createElement("path", {
|
|
9543
9806
|
strokeLinecap: "round",
|
|
9544
9807
|
strokeLinejoin: "round",
|
|
9545
9808
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
9546
|
-
})), /* @__PURE__ */
|
|
9809
|
+
})), /* @__PURE__ */ import_react65.default.createElement("svg", {
|
|
9547
9810
|
viewBox: "0 0 24 24",
|
|
9548
9811
|
fill: "currentColor",
|
|
9549
9812
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
|
9550
|
-
}, /* @__PURE__ */
|
|
9813
|
+
}, /* @__PURE__ */ import_react65.default.createElement("path", {
|
|
9551
9814
|
fillRule: "evenodd",
|
|
9552
9815
|
clipRule: "evenodd",
|
|
9553
9816
|
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z"
|
|
9554
9817
|
})));
|
|
9555
9818
|
};
|
|
9556
9819
|
var CardText = function(props) {
|
|
9557
|
-
return /* @__PURE__ */
|
|
9820
|
+
return /* @__PURE__ */ import_react65.default.createElement("div", {
|
|
9558
9821
|
className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start "
|
|
9559
|
-
}, /* @__PURE__ */
|
|
9822
|
+
}, /* @__PURE__ */ import_react65.default.createElement("h2", {
|
|
9560
9823
|
className: "hawa-font-medium hawa-text-primary/90 sm:hawa-text-xl"
|
|
9561
|
-
}, props.title), /* @__PURE__ */
|
|
9824
|
+
}, props.title), /* @__PURE__ */ import_react65.default.createElement("p", {
|
|
9562
9825
|
className: "hawa-text-sm hawa-text-primary/60"
|
|
9563
9826
|
}, props.subtitle, " "));
|
|
9564
9827
|
};
|
|
9565
9828
|
var CardPrice = function(props) {
|
|
9566
|
-
return /* @__PURE__ */
|
|
9829
|
+
return /* @__PURE__ */ import_react65.default.createElement("h2", {
|
|
9567
9830
|
className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-primary sm:hawa-text-2xl"
|
|
9568
|
-
}, props.amount, /* @__PURE__ */
|
|
9831
|
+
}, props.amount, /* @__PURE__ */ import_react65.default.createElement("span", {
|
|
9569
9832
|
className: "hawa-text-base hawa-font-medium hawa-text-neutral-400"
|
|
9570
9833
|
}, props.cycle));
|
|
9571
9834
|
};
|
|
9572
9835
|
// components/blocks/Usage.tsx
|
|
9573
|
-
var
|
|
9836
|
+
var import_react66 = __toESM(require("react"));
|
|
9574
9837
|
var Usage = function(props) {
|
|
9575
9838
|
var _props_percent;
|
|
9576
|
-
return /* @__PURE__ */
|
|
9839
|
+
return /* @__PURE__ */ import_react66.default.createElement("div", {
|
|
9577
9840
|
className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-1 hawa-rounded hawa-border hawa-bg-card hawa-p-4"
|
|
9578
|
-
}, /* @__PURE__ */
|
|
9841
|
+
}, /* @__PURE__ */ import_react66.default.createElement("div", {
|
|
9579
9842
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2"
|
|
9580
|
-
}, /* @__PURE__ */
|
|
9843
|
+
}, /* @__PURE__ */ import_react66.default.createElement("span", {
|
|
9581
9844
|
className: "hawa-bg-white-200"
|
|
9582
|
-
}, props.title), props.tooltip && /* @__PURE__ */
|
|
9845
|
+
}, props.title), props.tooltip && /* @__PURE__ */ import_react66.default.createElement(Tooltip, {
|
|
9583
9846
|
content: props.tooltip
|
|
9584
|
-
}, /* @__PURE__ */
|
|
9847
|
+
}, /* @__PURE__ */ import_react66.default.createElement("svg", {
|
|
9585
9848
|
stroke: "currentColor",
|
|
9586
9849
|
"aria-label": "Exclamation Circle",
|
|
9587
9850
|
fill: "currentColor",
|
|
@@ -9589,28 +9852,28 @@ var Usage = function(props) {
|
|
|
9589
9852
|
viewBox: "0 0 16 16",
|
|
9590
9853
|
height: "1em",
|
|
9591
9854
|
width: "1em"
|
|
9592
|
-
}, /* @__PURE__ */
|
|
9855
|
+
}, /* @__PURE__ */ import_react66.default.createElement("path", {
|
|
9593
9856
|
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"
|
|
9594
|
-
})))), /* @__PURE__ */
|
|
9857
|
+
})))), /* @__PURE__ */ import_react66.default.createElement("div", {
|
|
9595
9858
|
className: "hawa-bg-white-100 hawa-flex hawa-flex-row"
|
|
9596
|
-
}, /* @__PURE__ */
|
|
9859
|
+
}, /* @__PURE__ */ import_react66.default.createElement("div", null, props.currentUsage), /* @__PURE__ */ import_react66.default.createElement("div", null, " (", props.percent, "%)")), /* @__PURE__ */ import_react66.default.createElement(Progress, {
|
|
9597
9860
|
value: (_props_percent = props.percent) !== null && _props_percent !== void 0 ? _props_percent : 0
|
|
9598
9861
|
}));
|
|
9599
9862
|
};
|
|
9600
9863
|
// components/hooks/useDiscloser.ts
|
|
9601
|
-
var import_react66 = require("react");
|
|
9602
|
-
// components/hooks/useHover.ts
|
|
9603
9864
|
var import_react67 = require("react");
|
|
9604
|
-
// components/hooks/
|
|
9865
|
+
// components/hooks/useHover.ts
|
|
9605
9866
|
var import_react68 = require("react");
|
|
9606
|
-
// components/hooks/
|
|
9867
|
+
// components/hooks/useCarousel.ts
|
|
9607
9868
|
var import_react69 = require("react");
|
|
9869
|
+
// components/hooks/useWindowSize.ts
|
|
9870
|
+
var import_react70 = require("react");
|
|
9608
9871
|
var useWindowSize = function() {
|
|
9609
|
-
var _ref = _sliced_to_array((0,
|
|
9872
|
+
var _ref = _sliced_to_array((0, import_react70.useState)({
|
|
9610
9873
|
width: void 0,
|
|
9611
9874
|
height: void 0
|
|
9612
9875
|
}), 2), windowSize = _ref[0], setWindowSize = _ref[1];
|
|
9613
|
-
(0,
|
|
9876
|
+
(0, import_react70.useEffect)(function() {
|
|
9614
9877
|
var handleResize = function handleResize() {
|
|
9615
9878
|
setWindowSize({
|
|
9616
9879
|
width: window.innerWidth,
|
|
@@ -9626,7 +9889,7 @@ var useWindowSize = function() {
|
|
|
9626
9889
|
return windowSize;
|
|
9627
9890
|
};
|
|
9628
9891
|
// components/hooks/useFocusWithin.ts
|
|
9629
|
-
var
|
|
9892
|
+
var import_react71 = require("react");
|
|
9630
9893
|
function containsRelatedTarget(event) {
|
|
9631
9894
|
if (_instanceof(event.currentTarget, HTMLElement) && _instanceof(event.relatedTarget, HTMLElement)) {
|
|
9632
9895
|
return event.currentTarget.contains(event.relatedTarget);
|
|
@@ -9635,9 +9898,9 @@ function containsRelatedTarget(event) {
|
|
|
9635
9898
|
}
|
|
9636
9899
|
function useFocusWithin() {
|
|
9637
9900
|
var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, onBlur = _ref.onBlur, onFocus = _ref.onFocus;
|
|
9638
|
-
var ref = (0,
|
|
9639
|
-
var _ref1 = _sliced_to_array((0,
|
|
9640
|
-
var focusedRef = (0,
|
|
9901
|
+
var ref = (0, import_react71.useRef)(null);
|
|
9902
|
+
var _ref1 = _sliced_to_array((0, import_react71.useState)(false), 2), focused = _ref1[0], _setFocused = _ref1[1];
|
|
9903
|
+
var focusedRef = (0, import_react71.useRef)(false);
|
|
9641
9904
|
var setFocused = function(value) {
|
|
9642
9905
|
_setFocused(value);
|
|
9643
9906
|
focusedRef.current = value;
|
|
@@ -9654,7 +9917,7 @@ function useFocusWithin() {
|
|
|
9654
9917
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
9655
9918
|
}
|
|
9656
9919
|
};
|
|
9657
|
-
(0,
|
|
9920
|
+
(0, import_react71.useEffect)(function() {
|
|
9658
9921
|
if (ref.current) {
|
|
9659
9922
|
ref.current.addEventListener("focusin", handleFocusIn);
|
|
9660
9923
|
ref.current.addEventListener("focusout", handleFocusOut);
|
|
@@ -9675,7 +9938,7 @@ function useFocusWithin() {
|
|
|
9675
9938
|
};
|
|
9676
9939
|
}
|
|
9677
9940
|
// components/hooks/useMediaQuery.ts
|
|
9678
|
-
var
|
|
9941
|
+
var import_react72 = require("react");
|
|
9679
9942
|
function attachMediaListener(query, callback) {
|
|
9680
9943
|
try {
|
|
9681
9944
|
query.addEventListener("change", callback);
|
|
@@ -9702,9 +9965,9 @@ function useMediaQuery(query, initialValue) {
|
|
|
9702
9965
|
var getInitialValueInEffect = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
9703
9966
|
getInitialValueInEffect: true
|
|
9704
9967
|
}).getInitialValueInEffect;
|
|
9705
|
-
var _ref = _sliced_to_array((0,
|
|
9706
|
-
var queryRef = (0,
|
|
9707
|
-
(0,
|
|
9968
|
+
var _ref = _sliced_to_array((0, import_react72.useState)(getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)), 2), matches = _ref[0], setMatches = _ref[1];
|
|
9969
|
+
var queryRef = (0, import_react72.useRef)();
|
|
9970
|
+
(0, import_react72.useEffect)(function() {
|
|
9708
9971
|
if ("matchMedia" in window) {
|
|
9709
9972
|
queryRef.current = window.matchMedia(query);
|
|
9710
9973
|
setMatches(queryRef.current.matches);
|
|
@@ -9719,15 +9982,15 @@ function useMediaQuery(query, initialValue) {
|
|
|
9719
9982
|
return matches;
|
|
9720
9983
|
}
|
|
9721
9984
|
// components/hooks/useScrollPosition.ts
|
|
9722
|
-
var import_react72 = require("react");
|
|
9723
|
-
// components/hooks/useTable.ts
|
|
9724
9985
|
var import_react73 = require("react");
|
|
9725
|
-
// components/hooks/
|
|
9986
|
+
// components/hooks/useTable.ts
|
|
9726
9987
|
var import_react74 = require("react");
|
|
9988
|
+
// components/hooks/useTabs.ts
|
|
9989
|
+
var import_react75 = require("react");
|
|
9727
9990
|
function useTabs() {
|
|
9728
9991
|
var initialTab = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
9729
|
-
var _ref = _sliced_to_array((0,
|
|
9730
|
-
(0,
|
|
9992
|
+
var _ref = _sliced_to_array((0, import_react75.useState)(initialTab), 2), activeTab = _ref[0], setActiveTab = _ref[1];
|
|
9993
|
+
(0, import_react75.useEffect)(function() {
|
|
9731
9994
|
var handleHashChange = function() {
|
|
9732
9995
|
var hash = window.location.hash.substring(1);
|
|
9733
9996
|
setActiveTab(hash || initialTab);
|
|
@@ -9763,6 +10026,7 @@ function useTabs() {
|
|
|
9763
10026
|
AppLanding: AppLanding,
|
|
9764
10027
|
AppLayout: AppLayout,
|
|
9765
10028
|
AppStores: AppStores,
|
|
10029
|
+
AppTabs: AppTabs,
|
|
9766
10030
|
AppTopbar: AppTopbar,
|
|
9767
10031
|
BackToTop: BackToTop,
|
|
9768
10032
|
Badge: Badge,
|
|
@@ -9831,6 +10095,22 @@ function useTabs() {
|
|
|
9831
10095
|
Loading: Loading,
|
|
9832
10096
|
LoginForm: LoginForm,
|
|
9833
10097
|
Logos: Logos,
|
|
10098
|
+
Menubar: Menubar,
|
|
10099
|
+
MenubarCheckboxItem: MenubarCheckboxItem,
|
|
10100
|
+
MenubarContent: MenubarContent,
|
|
10101
|
+
MenubarGroup: MenubarGroup,
|
|
10102
|
+
MenubarItem: MenubarItem,
|
|
10103
|
+
MenubarLabel: MenubarLabel,
|
|
10104
|
+
MenubarMenu: MenubarMenu,
|
|
10105
|
+
MenubarPortal: MenubarPortal,
|
|
10106
|
+
MenubarRadioGroup: MenubarRadioGroup,
|
|
10107
|
+
MenubarRadioItem: MenubarRadioItem,
|
|
10108
|
+
MenubarSeparator: MenubarSeparator,
|
|
10109
|
+
MenubarShortcut: MenubarShortcut,
|
|
10110
|
+
MenubarSub: MenubarSub,
|
|
10111
|
+
MenubarSubContent: MenubarSubContent,
|
|
10112
|
+
MenubarSubTrigger: MenubarSubTrigger,
|
|
10113
|
+
MenubarTrigger: MenubarTrigger,
|
|
9834
10114
|
NavMenuItem: NavMenuItem,
|
|
9835
10115
|
Navbar: Navbar,
|
|
9836
10116
|
NavigationMenu: NavigationMenu,
|