@sikka/hawa 0.31.10-next → 0.31.12-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/appLayout/index.d.mts +1 -0
- package/dist/appLayout/index.d.ts +1 -0
- package/dist/appLayout/index.js +163 -143
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +158 -138
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/blocks/index.js +199 -196
- package/dist/blocks/index.mjs +3 -3
- package/dist/blocks/misc/index.js +145 -142
- package/dist/blocks/misc/index.mjs +63 -60
- package/dist/{chunk-UDCDD66A.mjs → chunk-JU6Q4Q3T.mjs} +21 -1
- package/dist/{chunk-JXN2PVGT.mjs → chunk-VZNDYO6H.mjs} +1 -1
- package/dist/elements/index.js +253 -250
- package/dist/elements/index.mjs +3 -3
- package/dist/hooks/index.js +3 -0
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +749 -729
- package/dist/index.mjs +679 -659
- package/dist/layout/index.d.mts +1 -0
- package/dist/layout/index.d.ts +1 -0
- package/dist/layout/index.js +271 -251
- package/dist/layout/index.mjs +30 -28
- package/dist/tabs/index.js +26 -23
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +26 -23
- package/dist/tabs/index.mjs.map +1 -1
- package/package.json +12 -12
- /package/dist/{chunk-R2SKHHDK.mjs → chunk-OPYDG34F.mjs} +0 -0
package/dist/index.mjs
CHANGED
@@ -3952,7 +3952,7 @@ var SortButton = (props) => {
|
|
3952
3952
|
};
|
3953
3953
|
|
3954
3954
|
// elements/tabs/Tabs.tsx
|
3955
|
-
import * as
|
3955
|
+
import * as React41 from "react";
|
3956
3956
|
|
3957
3957
|
// hooks/useIsomorphicEffect.ts
|
3958
3958
|
import { useEffect as useEffect7, useLayoutEffect } from "react";
|
@@ -4368,12 +4368,31 @@ var useMeasureDirty = (ref) => {
|
|
4368
4368
|
return rect;
|
4369
4369
|
};
|
4370
4370
|
|
4371
|
+
// hooks/useOutsideClick.ts
|
4372
|
+
import React39 from "react";
|
4373
|
+
var useOutsideClick = (callback) => {
|
4374
|
+
const ref = React39.useRef(null);
|
4375
|
+
React39.useEffect(() => {
|
4376
|
+
const handleClick = (event) => {
|
4377
|
+
if (ref.current && !ref.current.contains(event.target)) {
|
4378
|
+
callback();
|
4379
|
+
}
|
4380
|
+
};
|
4381
|
+
document.addEventListener("click", handleClick, true);
|
4382
|
+
return () => {
|
4383
|
+
document.removeEventListener("click", handleClick, true);
|
4384
|
+
};
|
4385
|
+
}, [ref]);
|
4386
|
+
return ref;
|
4387
|
+
};
|
4388
|
+
var useOutsideClick_default = useOutsideClick;
|
4389
|
+
|
4371
4390
|
// elements/tabs/Tabs.tsx
|
4372
4391
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
4373
4392
|
import { tv } from "tailwind-variants";
|
4374
4393
|
|
4375
4394
|
// elements/floatBox/FloatBox.tsx
|
4376
|
-
import * as
|
4395
|
+
import * as React40 from "react";
|
4377
4396
|
var FloatBox = ({
|
4378
4397
|
className,
|
4379
4398
|
open,
|
@@ -4411,7 +4430,7 @@ var FloatBox = ({
|
|
4411
4430
|
right: "hawa-arrow-default-left",
|
4412
4431
|
left: "hawa-arrow-default-right"
|
4413
4432
|
};
|
4414
|
-
return /* @__PURE__ */
|
4433
|
+
return /* @__PURE__ */ React40.createElement(
|
4415
4434
|
"div",
|
4416
4435
|
{
|
4417
4436
|
className: cn(
|
@@ -4422,8 +4441,8 @@ var FloatBox = ({
|
|
4422
4441
|
"data-side": side,
|
4423
4442
|
"data-floatbox-state": open ? "open" : "closed"
|
4424
4443
|
},
|
4425
|
-
withArrow && /* @__PURE__ */
|
4426
|
-
/* @__PURE__ */
|
4444
|
+
withArrow && /* @__PURE__ */ React40.createElement("div", { className: cn(arrowDirection[side]) }),
|
4445
|
+
/* @__PURE__ */ React40.createElement("span", null, props.children)
|
4427
4446
|
);
|
4428
4447
|
};
|
4429
4448
|
|
@@ -4486,8 +4505,8 @@ var tabsTriggerVariant = tv({
|
|
4486
4505
|
],
|
4487
4506
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
4488
4507
|
});
|
4489
|
-
var TabsContext =
|
4490
|
-
var Tabs =
|
4508
|
+
var TabsContext = React41.createContext({ orientation: "horizontal", variant: "default" });
|
4509
|
+
var Tabs = React41.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
4491
4510
|
TabsPrimitive.Root,
|
4492
4511
|
{
|
4493
4512
|
ref,
|
@@ -4498,11 +4517,11 @@ var Tabs = React40.forwardRef(({ className, orientation, variant = "default", ..
|
|
4498
4517
|
),
|
4499
4518
|
...props
|
4500
4519
|
},
|
4501
|
-
/* @__PURE__ */
|
4520
|
+
/* @__PURE__ */ React41.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
4502
4521
|
));
|
4503
|
-
var TabsList =
|
4504
|
-
const { orientation, variant } =
|
4505
|
-
return /* @__PURE__ */
|
4522
|
+
var TabsList = React41.forwardRef(({ className, ...props }, ref) => {
|
4523
|
+
const { orientation, variant } = React41.useContext(TabsContext);
|
4524
|
+
return /* @__PURE__ */ React41.createElement(
|
4506
4525
|
TabsPrimitive.List,
|
4507
4526
|
{
|
4508
4527
|
ref,
|
@@ -4515,11 +4534,11 @@ var TabsList = React40.forwardRef(({ className, ...props }, ref) => {
|
|
4515
4534
|
}
|
4516
4535
|
);
|
4517
4536
|
});
|
4518
|
-
var TabsTrigger =
|
4519
|
-
const { orientation, variant } =
|
4520
|
-
const tabTriggerRef =
|
4537
|
+
var TabsTrigger = React41.forwardRef(({ className, chipProps, ...props }, ref) => {
|
4538
|
+
const { orientation, variant } = React41.useContext(TabsContext);
|
4539
|
+
const tabTriggerRef = React41.useRef(null);
|
4521
4540
|
const { width } = useMeasureDirty(tabTriggerRef);
|
4522
|
-
return /* @__PURE__ */
|
4541
|
+
return /* @__PURE__ */ React41.createElement(
|
4523
4542
|
TabsPrimitive.Trigger,
|
4524
4543
|
{
|
4525
4544
|
ref: tabTriggerRef,
|
@@ -4531,8 +4550,8 @@ var TabsTrigger = React40.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
4531
4550
|
...props
|
4532
4551
|
},
|
4533
4552
|
props.children,
|
4534
|
-
chipProps && /* @__PURE__ */
|
4535
|
-
/* @__PURE__ */
|
4553
|
+
chipProps && /* @__PURE__ */ React41.createElement(Chip, { ...chipProps }),
|
4554
|
+
/* @__PURE__ */ React41.createElement(
|
4536
4555
|
FloatBox,
|
4537
4556
|
{
|
4538
4557
|
withArrow: true,
|
@@ -4545,7 +4564,7 @@ var TabsTrigger = React40.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
4545
4564
|
)
|
4546
4565
|
);
|
4547
4566
|
});
|
4548
|
-
var TabsContent =
|
4567
|
+
var TabsContent = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
4549
4568
|
TabsPrimitive.Content,
|
4550
4569
|
{
|
4551
4570
|
ref,
|
@@ -4562,7 +4581,7 @@ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
4562
4581
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
4563
4582
|
|
4564
4583
|
// elements/select/Select.tsx
|
4565
|
-
import
|
4584
|
+
import React42 from "react";
|
4566
4585
|
import ReactSelect from "react-select";
|
4567
4586
|
import CreatableSelect from "react-select/creatable";
|
4568
4587
|
import clsx3 from "clsx";
|
@@ -4573,10 +4592,10 @@ var Select = ({
|
|
4573
4592
|
}) => {
|
4574
4593
|
const NoOption = () => {
|
4575
4594
|
var _a, _b;
|
4576
|
-
return /* @__PURE__ */
|
4595
|
+
return /* @__PURE__ */ React42.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
|
4577
4596
|
};
|
4578
4597
|
const Control = ({ children, innerProps, innerRef }) => {
|
4579
|
-
return /* @__PURE__ */
|
4598
|
+
return /* @__PURE__ */ React42.createElement(
|
4580
4599
|
"div",
|
4581
4600
|
{
|
4582
4601
|
ref: innerRef,
|
@@ -4589,7 +4608,7 @@ var Select = ({
|
|
4589
4608
|
);
|
4590
4609
|
};
|
4591
4610
|
const Option = ({ children, innerProps, innerRef }) => {
|
4592
|
-
return /* @__PURE__ */
|
4611
|
+
return /* @__PURE__ */ React42.createElement(
|
4593
4612
|
"div",
|
4594
4613
|
{
|
4595
4614
|
ref: innerRef,
|
@@ -4610,7 +4629,7 @@ var Select = ({
|
|
4610
4629
|
...menuProps
|
4611
4630
|
}) => {
|
4612
4631
|
const menuOpen = menuProps.selectProps.menuIsOpen;
|
4613
|
-
return /* @__PURE__ */
|
4632
|
+
return /* @__PURE__ */ React42.createElement(
|
4614
4633
|
"div",
|
4615
4634
|
{
|
4616
4635
|
className: cn(
|
@@ -4624,7 +4643,7 @@ var Select = ({
|
|
4624
4643
|
children
|
4625
4644
|
);
|
4626
4645
|
};
|
4627
|
-
return /* @__PURE__ */
|
4646
|
+
return /* @__PURE__ */ React42.createElement(
|
4628
4647
|
"div",
|
4629
4648
|
{
|
4630
4649
|
className: cn(
|
@@ -4632,10 +4651,10 @@ var Select = ({
|
|
4632
4651
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
4633
4652
|
)
|
4634
4653
|
},
|
4635
|
-
props.label && /* @__PURE__ */
|
4636
|
-
props.isLoading ? /* @__PURE__ */
|
4654
|
+
props.label && /* @__PURE__ */ React42.createElement(Label2, { ...labelProps }, props.label),
|
4655
|
+
props.isLoading ? /* @__PURE__ */ React42.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
|
4637
4656
|
// TODO: enable keyboard to go to the next item in the list
|
4638
|
-
/* @__PURE__ */
|
4657
|
+
/* @__PURE__ */ React42.createElement(
|
4639
4658
|
ReactSelect,
|
4640
4659
|
{
|
4641
4660
|
noOptionsMessage: NoOption,
|
@@ -4674,7 +4693,7 @@ var Select = ({
|
|
4674
4693
|
// {...e}
|
4675
4694
|
// />
|
4676
4695
|
// ),
|
4677
|
-
ValueContainer: (e) => /* @__PURE__ */
|
4696
|
+
ValueContainer: (e) => /* @__PURE__ */ React42.createElement(
|
4678
4697
|
"div",
|
4679
4698
|
{
|
4680
4699
|
className: cn(
|
@@ -4684,7 +4703,7 @@ var Select = ({
|
|
4684
4703
|
...e
|
4685
4704
|
}
|
4686
4705
|
),
|
4687
|
-
MultiValueContainer: (e) => /* @__PURE__ */
|
4706
|
+
MultiValueContainer: (e) => /* @__PURE__ */ React42.createElement(
|
4688
4707
|
"div",
|
4689
4708
|
{
|
4690
4709
|
className: cn(
|
@@ -4706,7 +4725,7 @@ var Select = ({
|
|
4706
4725
|
isSearchable: props.isSearchable
|
4707
4726
|
}
|
4708
4727
|
)
|
4709
|
-
) : /* @__PURE__ */
|
4728
|
+
) : /* @__PURE__ */ React42.createElement(
|
4710
4729
|
CreatableSelect,
|
4711
4730
|
{
|
4712
4731
|
formatCreateLabel: (inputValue) => {
|
@@ -4736,7 +4755,7 @@ var Select = ({
|
|
4736
4755
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
4737
4756
|
}
|
4738
4757
|
),
|
4739
|
-
!props.hideHelperText && /* @__PURE__ */
|
4758
|
+
!props.hideHelperText && /* @__PURE__ */ React42.createElement(
|
4740
4759
|
"p",
|
4741
4760
|
{
|
4742
4761
|
className: cn(
|
@@ -4750,15 +4769,15 @@ var Select = ({
|
|
4750
4769
|
};
|
4751
4770
|
|
4752
4771
|
// elements/switch/Switch.tsx
|
4753
|
-
import * as
|
4772
|
+
import * as React43 from "react";
|
4754
4773
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
4755
|
-
var Switch =
|
4774
|
+
var Switch = React43.forwardRef(
|
4756
4775
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
4757
|
-
const [parentDirection, setParentDirection] =
|
4776
|
+
const [parentDirection, setParentDirection] = React43.useState(
|
4758
4777
|
null
|
4759
4778
|
);
|
4760
|
-
const parentRef =
|
4761
|
-
|
4779
|
+
const parentRef = React43.useRef(null);
|
4780
|
+
React43.useEffect(() => {
|
4762
4781
|
var _a;
|
4763
4782
|
const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
|
4764
4783
|
if (parentNode) {
|
@@ -4786,13 +4805,13 @@ var Switch = React42.forwardRef(
|
|
4786
4805
|
full: "hawa-rounded-full",
|
4787
4806
|
inherit: "hawa-rounded-inner"
|
4788
4807
|
};
|
4789
|
-
return /* @__PURE__ */
|
4808
|
+
return /* @__PURE__ */ React43.createElement(
|
4790
4809
|
"div",
|
4791
4810
|
{
|
4792
4811
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
4793
4812
|
ref: parentRef
|
4794
4813
|
},
|
4795
|
-
/* @__PURE__ */
|
4814
|
+
/* @__PURE__ */ React43.createElement(
|
4796
4815
|
SwitchPrimitives.Root,
|
4797
4816
|
{
|
4798
4817
|
className: cn(
|
@@ -4806,7 +4825,7 @@ var Switch = React42.forwardRef(
|
|
4806
4825
|
...props,
|
4807
4826
|
ref
|
4808
4827
|
},
|
4809
|
-
/* @__PURE__ */
|
4828
|
+
/* @__PURE__ */ React43.createElement(
|
4810
4829
|
SwitchPrimitives.Thumb,
|
4811
4830
|
{
|
4812
4831
|
className: cn(
|
@@ -4820,14 +4839,14 @@ var Switch = React42.forwardRef(
|
|
4820
4839
|
}
|
4821
4840
|
)
|
4822
4841
|
),
|
4823
|
-
label && /* @__PURE__ */
|
4842
|
+
label && /* @__PURE__ */ React43.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
|
4824
4843
|
);
|
4825
4844
|
}
|
4826
4845
|
);
|
4827
4846
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
4828
4847
|
|
4829
4848
|
// elements/checkbox/Checkbox.tsx
|
4830
|
-
import * as
|
4849
|
+
import * as React44 from "react";
|
4831
4850
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
4832
4851
|
var Checkbox = ({
|
4833
4852
|
id,
|
@@ -4847,7 +4866,7 @@ var Checkbox = ({
|
|
4847
4866
|
lg: 0.9,
|
4848
4867
|
xl: 1
|
4849
4868
|
};
|
4850
|
-
return /* @__PURE__ */
|
4869
|
+
return /* @__PURE__ */ React44.createElement(
|
4851
4870
|
"div",
|
4852
4871
|
{
|
4853
4872
|
className: cn(
|
@@ -4855,7 +4874,7 @@ var Checkbox = ({
|
|
4855
4874
|
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
4856
4875
|
)
|
4857
4876
|
},
|
4858
|
-
/* @__PURE__ */
|
4877
|
+
/* @__PURE__ */ React44.createElement(
|
4859
4878
|
CheckboxElement,
|
4860
4879
|
{
|
4861
4880
|
...props,
|
@@ -4865,7 +4884,7 @@ var Checkbox = ({
|
|
4865
4884
|
id
|
4866
4885
|
}
|
4867
4886
|
),
|
4868
|
-
(label || helperText) && /* @__PURE__ */
|
4887
|
+
(label || helperText) && /* @__PURE__ */ React44.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React44.createElement(
|
4869
4888
|
"label",
|
4870
4889
|
{
|
4871
4890
|
htmlFor: id,
|
@@ -4879,7 +4898,7 @@ var Checkbox = ({
|
|
4879
4898
|
}
|
4880
4899
|
},
|
4881
4900
|
label
|
4882
|
-
), sublabel && /* @__PURE__ */
|
4901
|
+
), sublabel && /* @__PURE__ */ React44.createElement(
|
4883
4902
|
"label",
|
4884
4903
|
{
|
4885
4904
|
htmlFor: id,
|
@@ -4889,7 +4908,7 @@ var Checkbox = ({
|
|
4889
4908
|
)
|
4890
4909
|
},
|
4891
4910
|
sublabel
|
4892
|
-
), helperText && !disabled && /* @__PURE__ */
|
4911
|
+
), helperText && !disabled && /* @__PURE__ */ React44.createElement(
|
4893
4912
|
"label",
|
4894
4913
|
{
|
4895
4914
|
htmlFor: id,
|
@@ -4902,7 +4921,7 @@ var Checkbox = ({
|
|
4902
4921
|
))
|
4903
4922
|
);
|
4904
4923
|
};
|
4905
|
-
var CheckboxElement =
|
4924
|
+
var CheckboxElement = React44.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
4906
4925
|
let checkboxRadius = {
|
4907
4926
|
none: "hawa-rounded-none",
|
4908
4927
|
inherit: "hawa-rounded-sm",
|
@@ -4924,7 +4943,7 @@ var CheckboxElement = React43.forwardRef(({ radius = "inherit", size = "default"
|
|
4924
4943
|
lg: "1em",
|
4925
4944
|
xl: "1.25em"
|
4926
4945
|
};
|
4927
|
-
return /* @__PURE__ */
|
4946
|
+
return /* @__PURE__ */ React44.createElement(
|
4928
4947
|
CheckboxPrimitive.Root,
|
4929
4948
|
{
|
4930
4949
|
ref,
|
@@ -4936,14 +4955,14 @@ var CheckboxElement = React43.forwardRef(({ radius = "inherit", size = "default"
|
|
4936
4955
|
),
|
4937
4956
|
...props
|
4938
4957
|
},
|
4939
|
-
/* @__PURE__ */
|
4958
|
+
/* @__PURE__ */ React44.createElement(
|
4940
4959
|
CheckboxPrimitive.Indicator,
|
4941
4960
|
{
|
4942
4961
|
className: cn(
|
4943
4962
|
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
4944
4963
|
)
|
4945
4964
|
},
|
4946
|
-
/* @__PURE__ */
|
4965
|
+
/* @__PURE__ */ React44.createElement(
|
4947
4966
|
"svg",
|
4948
4967
|
{
|
4949
4968
|
"aria-label": "Check Mark",
|
@@ -4954,7 +4973,7 @@ var CheckboxElement = React43.forwardRef(({ radius = "inherit", size = "default"
|
|
4954
4973
|
height: checkboxIndicatorSizes[size],
|
4955
4974
|
width: checkboxIndicatorSizes[size]
|
4956
4975
|
},
|
4957
|
-
/* @__PURE__ */
|
4976
|
+
/* @__PURE__ */ React44.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
4958
4977
|
),
|
4959
4978
|
" "
|
4960
4979
|
)
|
@@ -4963,9 +4982,9 @@ var CheckboxElement = React43.forwardRef(({ radius = "inherit", size = "default"
|
|
4963
4982
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
4964
4983
|
|
4965
4984
|
// elements/progress/Progress.tsx
|
4966
|
-
import * as
|
4985
|
+
import * as React45 from "react";
|
4967
4986
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
4968
|
-
var Progress =
|
4987
|
+
var Progress = React45.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React45.createElement(Label2, { ...props.labelProps }, props.label), /* @__PURE__ */ React45.createElement(
|
4969
4988
|
ProgressPrimitive.Root,
|
4970
4989
|
{
|
4971
4990
|
ref,
|
@@ -4975,7 +4994,7 @@ var Progress = React44.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
4975
4994
|
),
|
4976
4995
|
...props
|
4977
4996
|
},
|
4978
|
-
/* @__PURE__ */
|
4997
|
+
/* @__PURE__ */ React45.createElement(
|
4979
4998
|
ProgressPrimitive.Indicator,
|
4980
4999
|
{
|
4981
5000
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
@@ -4986,7 +5005,7 @@ var Progress = React44.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
4986
5005
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
4987
5006
|
|
4988
5007
|
// elements/breadcrumb/Breadcrumb.tsx
|
4989
|
-
import
|
5008
|
+
import React46 from "react";
|
4990
5009
|
var Breadcrumb = ({
|
4991
5010
|
breadcrumbLinks,
|
4992
5011
|
separator = ">",
|
@@ -4997,7 +5016,7 @@ var Breadcrumb = ({
|
|
4997
5016
|
small: "hawa-text-sm",
|
4998
5017
|
xs: "hawa-text-xs"
|
4999
5018
|
};
|
5000
|
-
return /* @__PURE__ */
|
5019
|
+
return /* @__PURE__ */ React46.createElement(
|
5001
5020
|
"div",
|
5002
5021
|
{
|
5003
5022
|
className: cn(
|
@@ -5005,13 +5024,13 @@ var Breadcrumb = ({
|
|
5005
5024
|
textStyles[size]
|
5006
5025
|
)
|
5007
5026
|
},
|
5008
|
-
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */
|
5027
|
+
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ React46.createElement(
|
5009
5028
|
"div",
|
5010
5029
|
{
|
5011
5030
|
key: index,
|
5012
5031
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
|
5013
5032
|
},
|
5014
|
-
/* @__PURE__ */
|
5033
|
+
/* @__PURE__ */ React46.createElement(
|
5015
5034
|
"a",
|
5016
5035
|
{
|
5017
5036
|
href: singleBreadcrumbLink.href,
|
@@ -5019,49 +5038,49 @@ var Breadcrumb = ({
|
|
5019
5038
|
},
|
5020
5039
|
singleBreadcrumbLink.label
|
5021
5040
|
),
|
5022
|
-
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */
|
5041
|
+
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */ React46.createElement("div", null, separator) : /* @__PURE__ */ React46.createElement("div", null, separator) : null
|
5023
5042
|
))
|
5024
5043
|
);
|
5025
5044
|
};
|
5026
5045
|
|
5027
5046
|
// elements/appStores/AppStores.tsx
|
5028
|
-
import
|
5047
|
+
import React47 from "react";
|
5029
5048
|
var AppStores = (props) => {
|
5030
|
-
return /* @__PURE__ */
|
5049
|
+
return /* @__PURE__ */ React47.createElement("div", { className: "hawa-flex hawa-justify-center" }, /* @__PURE__ */ React47.createElement("div", null, props.store === "apple" ? /* @__PURE__ */ React47.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-bg-black hawa-text-white dark:hawa-bg-white dark:hawa-text-black" }, /* @__PURE__ */ React47.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React47.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ React47.createElement(
|
5031
5050
|
"path",
|
5032
5051
|
{
|
5033
5052
|
fill: "currentColor",
|
5034
5053
|
d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
|
5035
5054
|
}
|
5036
|
-
))), /* @__PURE__ */
|
5055
|
+
))), /* @__PURE__ */ React47.createElement("div", null, /* @__PURE__ */ React47.createElement("div", { className: "hawa-text-xs" }, "Download on the"), /* @__PURE__ */ React47.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-2xl hawa-font-semibold" }, "App Store"))) : /* @__PURE__ */ React47.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-border hawa-border-black hawa-bg-black hawa-text-white dark:hawa-bg-white dark:hawa-text-black" }, /* @__PURE__ */ React47.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React47.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ React47.createElement(
|
5037
5056
|
"path",
|
5038
5057
|
{
|
5039
5058
|
fill: "#FFD400",
|
5040
5059
|
d: "M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"
|
5041
5060
|
}
|
5042
|
-
), /* @__PURE__ */
|
5061
|
+
), /* @__PURE__ */ React47.createElement(
|
5043
5062
|
"path",
|
5044
5063
|
{
|
5045
5064
|
fill: "#FF3333",
|
5046
5065
|
d: "M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"
|
5047
5066
|
}
|
5048
|
-
), /* @__PURE__ */
|
5067
|
+
), /* @__PURE__ */ React47.createElement(
|
5049
5068
|
"path",
|
5050
5069
|
{
|
5051
5070
|
fill: "#48FF48",
|
5052
5071
|
d: "M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"
|
5053
5072
|
}
|
5054
|
-
), /* @__PURE__ */
|
5073
|
+
), /* @__PURE__ */ React47.createElement(
|
5055
5074
|
"path",
|
5056
5075
|
{
|
5057
5076
|
fill: "#3BCCFF",
|
5058
5077
|
d: "M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"
|
5059
5078
|
}
|
5060
|
-
))), /* @__PURE__ */
|
5079
|
+
))), /* @__PURE__ */ React47.createElement("div", null, /* @__PURE__ */ React47.createElement("div", { className: "hawa-text-xs" }, "GET IT ON"), /* @__PURE__ */ React47.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-xl hawa-font-semibold" }, "Google Play")))));
|
5061
5080
|
};
|
5062
5081
|
|
5063
5082
|
// elements/badge/Badge.tsx
|
5064
|
-
import
|
5083
|
+
import React48, { useEffect as useEffect21, useState as useState25, useRef as useRef15 } from "react";
|
5065
5084
|
var Badge = ({
|
5066
5085
|
anchor,
|
5067
5086
|
position = "right",
|
@@ -5099,7 +5118,7 @@ var Badge = ({
|
|
5099
5118
|
window.removeEventListener("resize", handlePositioning);
|
5100
5119
|
};
|
5101
5120
|
}, [anchor]);
|
5102
|
-
return /* @__PURE__ */
|
5121
|
+
return /* @__PURE__ */ React48.createElement("div", { ref: indicatorRef, className: cn("hawa-relative", className) }, badgePosition && /* @__PURE__ */ React48.createElement(
|
5103
5122
|
"div",
|
5104
5123
|
{
|
5105
5124
|
style: {
|
@@ -5125,7 +5144,7 @@ var BadgedComponent = ({
|
|
5125
5144
|
text
|
5126
5145
|
}) => {
|
5127
5146
|
const ref = useRef15(null);
|
5128
|
-
return /* @__PURE__ */
|
5147
|
+
return /* @__PURE__ */ React48.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ React48.createElement(
|
5129
5148
|
Badge,
|
5130
5149
|
{
|
5131
5150
|
size,
|
@@ -5138,7 +5157,7 @@ var BadgedComponent = ({
|
|
5138
5157
|
};
|
5139
5158
|
|
5140
5159
|
// elements/phoneInput/PhoneInput.tsx
|
5141
|
-
import
|
5160
|
+
import React49, { useState as useState26, useRef as useRef16 } from "react";
|
5142
5161
|
|
5143
5162
|
// countries.ts
|
5144
5163
|
var countries = [
|
@@ -6854,7 +6873,7 @@ var PhoneInput = ({
|
|
6854
6873
|
console.log("handleChange prop was not provided in <PhoneInput/>");
|
6855
6874
|
}
|
6856
6875
|
};
|
6857
|
-
return /* @__PURE__ */
|
6876
|
+
return /* @__PURE__ */ React49.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React49.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React49.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ React49.createElement(
|
6858
6877
|
Select,
|
6859
6878
|
{
|
6860
6879
|
phoneCode: true,
|
@@ -6870,7 +6889,7 @@ var PhoneInput = ({
|
|
6870
6889
|
value: countryCode == null ? void 0 : countryCode.label,
|
6871
6890
|
defaultValue: props.preferredCountry
|
6872
6891
|
}
|
6873
|
-
), /* @__PURE__ */
|
6892
|
+
), /* @__PURE__ */ React49.createElement("div", { className: "hawa-relative hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ React49.createElement(
|
6874
6893
|
"input",
|
6875
6894
|
{
|
6876
6895
|
type: "tel",
|
@@ -6884,7 +6903,7 @@ var PhoneInput = ({
|
|
6884
6903
|
),
|
6885
6904
|
...inputProps
|
6886
6905
|
}
|
6887
|
-
))), /* @__PURE__ */
|
6906
|
+
))), /* @__PURE__ */ React49.createElement(
|
6888
6907
|
"p",
|
6889
6908
|
{
|
6890
6909
|
className: cn(
|
@@ -6897,7 +6916,7 @@ var PhoneInput = ({
|
|
6897
6916
|
};
|
6898
6917
|
|
6899
6918
|
// elements/pinInput/PinInput.tsx
|
6900
|
-
import
|
6919
|
+
import React50, { useEffect as useEffect23, useState as useState27 } from "react";
|
6901
6920
|
var PinInput = ({
|
6902
6921
|
label,
|
6903
6922
|
icon,
|
@@ -6941,13 +6960,13 @@ var PinInput = ({
|
|
6941
6960
|
}
|
6942
6961
|
}
|
6943
6962
|
};
|
6944
|
-
return /* @__PURE__ */
|
6963
|
+
return /* @__PURE__ */ React50.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React50.createElement(
|
6945
6964
|
"div",
|
6946
6965
|
{
|
6947
6966
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
6948
6967
|
dir: "ltr"
|
6949
6968
|
},
|
6950
|
-
pin.map((value, index) => /* @__PURE__ */
|
6969
|
+
pin.map((value, index) => /* @__PURE__ */ React50.createElement(
|
6951
6970
|
"input",
|
6952
6971
|
{
|
6953
6972
|
key: index,
|
@@ -6967,7 +6986,7 @@ var PinInput = ({
|
|
6967
6986
|
...inputProps
|
6968
6987
|
}
|
6969
6988
|
))
|
6970
|
-
), /* @__PURE__ */
|
6989
|
+
), /* @__PURE__ */ React50.createElement(
|
6971
6990
|
"p",
|
6972
6991
|
{
|
6973
6992
|
className: cn(
|
@@ -6980,30 +6999,30 @@ var PinInput = ({
|
|
6980
6999
|
};
|
6981
7000
|
|
6982
7001
|
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
6983
|
-
import
|
7002
|
+
import React51 from "react";
|
6984
7003
|
var StopPropagationWrapper = (props) => {
|
6985
7004
|
const handleClick = (e) => {
|
6986
7005
|
e.stopPropagation();
|
6987
7006
|
};
|
6988
|
-
return /* @__PURE__ */
|
7007
|
+
return /* @__PURE__ */ React51.createElement("div", { onClick: handleClick }, props.children);
|
6989
7008
|
};
|
6990
7009
|
|
6991
7010
|
// elements/scrollArea/ScrollArea.tsx
|
6992
|
-
import * as
|
7011
|
+
import * as React52 from "react";
|
6993
7012
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
6994
|
-
var ScrollArea =
|
7013
|
+
var ScrollArea = React52.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
6995
7014
|
ScrollAreaPrimitive.Root,
|
6996
7015
|
{
|
6997
7016
|
ref,
|
6998
7017
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
6999
7018
|
...props
|
7000
7019
|
},
|
7001
|
-
/* @__PURE__ */
|
7002
|
-
/* @__PURE__ */
|
7003
|
-
/* @__PURE__ */
|
7020
|
+
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
7021
|
+
/* @__PURE__ */ React52.createElement(ScrollBar, { orientation }),
|
7022
|
+
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Corner, null)
|
7004
7023
|
));
|
7005
7024
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
7006
|
-
var ScrollBar =
|
7025
|
+
var ScrollBar = React52.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
7007
7026
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
7008
7027
|
{
|
7009
7028
|
ref,
|
@@ -7016,7 +7035,7 @@ var ScrollBar = React51.forwardRef(({ className, orientation = "vertical", ...pr
|
|
7016
7035
|
),
|
7017
7036
|
...props
|
7018
7037
|
},
|
7019
|
-
/* @__PURE__ */
|
7038
|
+
/* @__PURE__ */ React52.createElement(
|
7020
7039
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
7021
7040
|
{
|
7022
7041
|
className: cn(
|
@@ -7029,7 +7048,7 @@ var ScrollBar = React51.forwardRef(({ className, orientation = "vertical", ...pr
|
|
7029
7048
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
7030
7049
|
|
7031
7050
|
// elements/colorPicker/ColorPicker.tsx
|
7032
|
-
import
|
7051
|
+
import React53, {
|
7033
7052
|
useState as useState28,
|
7034
7053
|
useEffect as useEffect24
|
7035
7054
|
} from "react";
|
@@ -7061,13 +7080,13 @@ var ColorPicker = ({
|
|
7061
7080
|
props.handleChange(e);
|
7062
7081
|
}
|
7063
7082
|
};
|
7064
|
-
return /* @__PURE__ */
|
7083
|
+
return /* @__PURE__ */ React53.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React53.createElement(Label2, { ...labelProps }, props.label), isLoading ? /* @__PURE__ */ React53.createElement(Skeleton, { style: { height: 40, width: 148 } }) : /* @__PURE__ */ React53.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ React53.createElement(
|
7065
7084
|
"div",
|
7066
7085
|
{
|
7067
7086
|
style: { height: 40, backgroundColor: selectedColor },
|
7068
7087
|
className: "hawa-rounded-bl-lg hawa-rounded-tl-lg hawa-border"
|
7069
7088
|
},
|
7070
|
-
/* @__PURE__ */
|
7089
|
+
/* @__PURE__ */ React53.createElement(
|
7071
7090
|
"input",
|
7072
7091
|
{
|
7073
7092
|
disabled: preview,
|
@@ -7086,7 +7105,7 @@ var ColorPicker = ({
|
|
7086
7105
|
...colorPickerProps
|
7087
7106
|
}
|
7088
7107
|
)
|
7089
|
-
), /* @__PURE__ */
|
7108
|
+
), /* @__PURE__ */ React53.createElement("div", { className: "hawa-relative hawa-flex hawa-max-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ React53.createElement(
|
7090
7109
|
"input",
|
7091
7110
|
{
|
7092
7111
|
disabled: preview,
|
@@ -7105,7 +7124,7 @@ var ColorPicker = ({
|
|
7105
7124
|
},
|
7106
7125
|
...textInputProps
|
7107
7126
|
}
|
7108
|
-
))), !forceHideHelperText && /* @__PURE__ */
|
7127
|
+
))), !forceHideHelperText && /* @__PURE__ */ React53.createElement(
|
7109
7128
|
"p",
|
7110
7129
|
{
|
7111
7130
|
className: cn(
|
@@ -7118,7 +7137,7 @@ var ColorPicker = ({
|
|
7118
7137
|
};
|
7119
7138
|
|
7120
7139
|
// elements/progressCircle/ProgressCircle.tsx
|
7121
|
-
import
|
7140
|
+
import React54 from "react";
|
7122
7141
|
var size2config = {
|
7123
7142
|
xs: { radius: 15, strokeWidth: 3 },
|
7124
7143
|
sm: { radius: 19, strokeWidth: 4 },
|
@@ -7135,7 +7154,7 @@ function getLimitedValue(input) {
|
|
7135
7154
|
return input;
|
7136
7155
|
}
|
7137
7156
|
}
|
7138
|
-
var ProgressCircle =
|
7157
|
+
var ProgressCircle = React54.forwardRef((props, ref) => {
|
7139
7158
|
const {
|
7140
7159
|
value: inputValue,
|
7141
7160
|
size = "md",
|
@@ -7155,7 +7174,7 @@ var ProgressCircle = React53.forwardRef((props, ref) => {
|
|
7155
7174
|
const circumference = normalizedRadius * 2 * Math.PI;
|
7156
7175
|
const strokeDashoffset = value / 100 * circumference;
|
7157
7176
|
const offset = circumference - strokeDashoffset;
|
7158
|
-
return /* @__PURE__ */
|
7177
|
+
return /* @__PURE__ */ React54.createElement(React54.Fragment, null, /* @__PURE__ */ React54.createElement(
|
7159
7178
|
"div",
|
7160
7179
|
{
|
7161
7180
|
ref,
|
@@ -7164,7 +7183,7 @@ var ProgressCircle = React53.forwardRef((props, ref) => {
|
|
7164
7183
|
className
|
7165
7184
|
)
|
7166
7185
|
},
|
7167
|
-
/* @__PURE__ */
|
7186
|
+
/* @__PURE__ */ React54.createElement(
|
7168
7187
|
"svg",
|
7169
7188
|
{
|
7170
7189
|
width: radius * 2,
|
@@ -7172,7 +7191,7 @@ var ProgressCircle = React53.forwardRef((props, ref) => {
|
|
7172
7191
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
7173
7192
|
className: "hawa-rotate-180 hawa-transform"
|
7174
7193
|
},
|
7175
|
-
/* @__PURE__ */
|
7194
|
+
/* @__PURE__ */ React54.createElement(
|
7176
7195
|
"circle",
|
7177
7196
|
{
|
7178
7197
|
r: normalizedRadius,
|
@@ -7188,7 +7207,7 @@ var ProgressCircle = React53.forwardRef((props, ref) => {
|
|
7188
7207
|
)
|
7189
7208
|
}
|
7190
7209
|
),
|
7191
|
-
value > 0 ? /* @__PURE__ */
|
7210
|
+
value > 0 ? /* @__PURE__ */ React54.createElement(
|
7192
7211
|
"circle",
|
7193
7212
|
{
|
7194
7213
|
r: normalizedRadius,
|
@@ -7208,24 +7227,24 @@ var ProgressCircle = React53.forwardRef((props, ref) => {
|
|
7208
7227
|
}
|
7209
7228
|
) : null
|
7210
7229
|
),
|
7211
|
-
/* @__PURE__ */
|
7230
|
+
/* @__PURE__ */ React54.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
7212
7231
|
));
|
7213
7232
|
});
|
7214
7233
|
ProgressCircle.displayName = "ProgressCircle";
|
7215
7234
|
|
7216
7235
|
// elements/pagination/Pagination.tsx
|
7217
|
-
import
|
7236
|
+
import React55 from "react";
|
7218
7237
|
import { Pagination as PaginationPrimitive } from "react-headless-pagination";
|
7219
7238
|
var Pagination = ({
|
7220
7239
|
direction,
|
7221
7240
|
totalPages,
|
7222
7241
|
currentPage
|
7223
7242
|
}) => {
|
7224
|
-
const [page, setPage] =
|
7243
|
+
const [page, setPage] = React55.useState(currentPage || 0);
|
7225
7244
|
const handlePageChange = (page2) => {
|
7226
7245
|
setPage(page2);
|
7227
7246
|
};
|
7228
|
-
return /* @__PURE__ */
|
7247
|
+
return /* @__PURE__ */ React55.createElement(
|
7229
7248
|
PaginationPrimitive,
|
7230
7249
|
{
|
7231
7250
|
totalPages,
|
@@ -7237,10 +7256,10 @@ var Pagination = ({
|
|
7237
7256
|
truncableText: "...",
|
7238
7257
|
truncableClassName: "hawa-w-10 hawa-px-0.5 hawa-text-center"
|
7239
7258
|
},
|
7240
|
-
/* @__PURE__ */
|
7259
|
+
/* @__PURE__ */ React55.createElement(
|
7241
7260
|
PaginationPrimitive.PrevButton,
|
7242
7261
|
{
|
7243
|
-
as: /* @__PURE__ */
|
7262
|
+
as: /* @__PURE__ */ React55.createElement(
|
7244
7263
|
"button",
|
7245
7264
|
{
|
7246
7265
|
"aria-label": "Previous Table Page",
|
@@ -7250,7 +7269,7 @@ var Pagination = ({
|
|
7250
7269
|
),
|
7251
7270
|
style: { minWidth: 36 }
|
7252
7271
|
},
|
7253
|
-
/* @__PURE__ */
|
7272
|
+
/* @__PURE__ */ React55.createElement(
|
7254
7273
|
"svg",
|
7255
7274
|
{
|
7256
7275
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7263,7 +7282,7 @@ var Pagination = ({
|
|
7263
7282
|
strokeLinecap: "round",
|
7264
7283
|
strokeLinejoin: "round"
|
7265
7284
|
},
|
7266
|
-
/* @__PURE__ */
|
7285
|
+
/* @__PURE__ */ React55.createElement("path", { d: "m15 18-6-6 6-6" })
|
7267
7286
|
)
|
7268
7287
|
),
|
7269
7288
|
className: cn(
|
@@ -7276,17 +7295,17 @@ var Pagination = ({
|
|
7276
7295
|
},
|
7277
7296
|
"Previous"
|
7278
7297
|
),
|
7279
|
-
/* @__PURE__ */
|
7298
|
+
/* @__PURE__ */ React55.createElement("nav", { className: "hawa-flex hawa-flex-grow hawa-justify-center" }, /* @__PURE__ */ React55.createElement("ul", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React55.createElement(
|
7280
7299
|
PaginationPrimitive.PageButton,
|
7281
7300
|
{
|
7282
7301
|
className: "hawa-tap-highlight-transparent hawa-text-default-foreground data-[focus-visible=true]:hawa-outline-focus data-[disabled=true]:hawa-text-default-300 hawa-min-w-9 hawa-text-small hawa-box-border hawa-flex hawa-h-9 hawa-w-9 hawa-cursor-pointer hawa-touch-none hawa-select-none hawa-flex-wrap hawa-items-center hawa-justify-center hawa-truncate hawa-rounded hawa-border hawa-bg-card hawa-outline-none hawa-transition-all hover:hawa-scale-[1.1] data-[disabled=true]:hawa-pointer-events-none data-[focus-visible=true]:hawa-z-10 data-[pressed=true]:hawa-scale-[0.97] data-[focus-visible=true]:hawa-outline-2 data-[focus-visible=true]:hawa-outline-offset-2",
|
7283
7302
|
activeClassName: "hawa-bg-primary hawa-text-primary-foreground hawa-transition-all"
|
7284
7303
|
}
|
7285
7304
|
))),
|
7286
|
-
/* @__PURE__ */
|
7305
|
+
/* @__PURE__ */ React55.createElement(
|
7287
7306
|
PaginationPrimitive.NextButton,
|
7288
7307
|
{
|
7289
|
-
as: /* @__PURE__ */
|
7308
|
+
as: /* @__PURE__ */ React55.createElement(
|
7290
7309
|
"button",
|
7291
7310
|
{
|
7292
7311
|
"aria-label": "Previous Table Page",
|
@@ -7296,7 +7315,7 @@ var Pagination = ({
|
|
7296
7315
|
),
|
7297
7316
|
style: { minWidth: 36 }
|
7298
7317
|
},
|
7299
|
-
/* @__PURE__ */
|
7318
|
+
/* @__PURE__ */ React55.createElement(
|
7300
7319
|
"svg",
|
7301
7320
|
{
|
7302
7321
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7309,7 +7328,7 @@ var Pagination = ({
|
|
7309
7328
|
strokeLinecap: "round",
|
7310
7329
|
strokeLinejoin: "round"
|
7311
7330
|
},
|
7312
|
-
/* @__PURE__ */
|
7331
|
+
/* @__PURE__ */ React55.createElement("path", { d: "m15 18-6-6 6-6" })
|
7313
7332
|
)
|
7314
7333
|
),
|
7315
7334
|
className: cn(
|
@@ -7326,11 +7345,11 @@ var Pagination = ({
|
|
7326
7345
|
};
|
7327
7346
|
|
7328
7347
|
// elements/passwordInput/PasswordInput.tsx
|
7329
|
-
import
|
7348
|
+
import React59, { useEffect as useEffect25, useState as useState29 } from "react";
|
7330
7349
|
|
7331
7350
|
// icons/Emojis.tsx
|
7332
|
-
import
|
7333
|
-
var VeryGoodEmoji = () => /* @__PURE__ */
|
7351
|
+
import React56 from "react";
|
7352
|
+
var VeryGoodEmoji = () => /* @__PURE__ */ React56.createElement(
|
7334
7353
|
"svg",
|
7335
7354
|
{
|
7336
7355
|
fill: "none",
|
@@ -7339,7 +7358,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ React55.createElement(
|
|
7339
7358
|
width: "16",
|
7340
7359
|
xmlns: "http://www.w3.org/2000/svg"
|
7341
7360
|
},
|
7342
|
-
/* @__PURE__ */
|
7361
|
+
/* @__PURE__ */ React56.createElement("g", { clipPath: "url(#clip0_53_166)" }, /* @__PURE__ */ React56.createElement(
|
7343
7362
|
"path",
|
7344
7363
|
{
|
7345
7364
|
clipRule: "evenodd",
|
@@ -7347,7 +7366,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ React55.createElement(
|
|
7347
7366
|
fill: "currentColor",
|
7348
7367
|
fillRule: "evenodd"
|
7349
7368
|
}
|
7350
|
-
), /* @__PURE__ */
|
7369
|
+
), /* @__PURE__ */ React56.createElement(
|
7351
7370
|
"path",
|
7352
7371
|
{
|
7353
7372
|
clipRule: "evenodd",
|
@@ -7357,7 +7376,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ React55.createElement(
|
|
7357
7376
|
}
|
7358
7377
|
))
|
7359
7378
|
);
|
7360
|
-
var GoodEmoji = () => /* @__PURE__ */
|
7379
|
+
var GoodEmoji = () => /* @__PURE__ */ React56.createElement(
|
7361
7380
|
"svg",
|
7362
7381
|
{
|
7363
7382
|
fill: "none",
|
@@ -7366,7 +7385,7 @@ var GoodEmoji = () => /* @__PURE__ */ React55.createElement(
|
|
7366
7385
|
width: "16",
|
7367
7386
|
xmlns: "http://www.w3.org/2000/svg"
|
7368
7387
|
},
|
7369
|
-
/* @__PURE__ */
|
7388
|
+
/* @__PURE__ */ React56.createElement("g", { clipPath: "url(#clip0_53_167)" }, /* @__PURE__ */ React56.createElement(
|
7370
7389
|
"path",
|
7371
7390
|
{
|
7372
7391
|
clipRule: "evenodd",
|
@@ -7376,7 +7395,7 @@ var GoodEmoji = () => /* @__PURE__ */ React55.createElement(
|
|
7376
7395
|
}
|
7377
7396
|
))
|
7378
7397
|
);
|
7379
|
-
var BadEmoji = () => /* @__PURE__ */
|
7398
|
+
var BadEmoji = () => /* @__PURE__ */ React56.createElement(
|
7380
7399
|
"svg",
|
7381
7400
|
{
|
7382
7401
|
fill: "none",
|
@@ -7385,7 +7404,7 @@ var BadEmoji = () => /* @__PURE__ */ React55.createElement(
|
|
7385
7404
|
width: "16",
|
7386
7405
|
xmlns: "http://www.w3.org/2000/svg"
|
7387
7406
|
},
|
7388
|
-
/* @__PURE__ */
|
7407
|
+
/* @__PURE__ */ React56.createElement("g", { clipPath: "url(#clip0_53_152)" }, /* @__PURE__ */ React56.createElement(
|
7389
7408
|
"path",
|
7390
7409
|
{
|
7391
7410
|
clipRule: "evenodd",
|
@@ -7395,7 +7414,7 @@ var BadEmoji = () => /* @__PURE__ */ React55.createElement(
|
|
7395
7414
|
}
|
7396
7415
|
))
|
7397
7416
|
);
|
7398
|
-
var VeryBadEmoji = () => /* @__PURE__ */
|
7417
|
+
var VeryBadEmoji = () => /* @__PURE__ */ React56.createElement(
|
7399
7418
|
"svg",
|
7400
7419
|
{
|
7401
7420
|
fill: "none",
|
@@ -7404,13 +7423,13 @@ var VeryBadEmoji = () => /* @__PURE__ */ React55.createElement(
|
|
7404
7423
|
width: "16",
|
7405
7424
|
xmlns: "http://www.w3.org/2000/svg"
|
7406
7425
|
},
|
7407
|
-
/* @__PURE__ */
|
7426
|
+
/* @__PURE__ */ React56.createElement("g", { clipPath: "url(#clip0_53_151)" }, /* @__PURE__ */ React56.createElement(
|
7408
7427
|
"path",
|
7409
7428
|
{
|
7410
7429
|
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",
|
7411
7430
|
fill: "#0070F3"
|
7412
7431
|
}
|
7413
|
-
), /* @__PURE__ */
|
7432
|
+
), /* @__PURE__ */ React56.createElement(
|
7414
7433
|
"path",
|
7415
7434
|
{
|
7416
7435
|
clipRule: "evenodd",
|
@@ -7422,8 +7441,8 @@ var VeryBadEmoji = () => /* @__PURE__ */ React55.createElement(
|
|
7422
7441
|
);
|
7423
7442
|
|
7424
7443
|
// icons/InputIcons.tsx
|
7425
|
-
import
|
7426
|
-
var EyeIcon = (props) => /* @__PURE__ */
|
7444
|
+
import React57 from "react";
|
7445
|
+
var EyeIcon = (props) => /* @__PURE__ */ React57.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ React57.createElement(
|
7427
7446
|
"svg",
|
7428
7447
|
{
|
7429
7448
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7434,10 +7453,10 @@ var EyeIcon = (props) => /* @__PURE__ */ React56.createElement("div", { classNam
|
|
7434
7453
|
strokeLinecap: "round",
|
7435
7454
|
strokeLinejoin: "round"
|
7436
7455
|
},
|
7437
|
-
/* @__PURE__ */
|
7438
|
-
/* @__PURE__ */
|
7456
|
+
/* @__PURE__ */ React57.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
7457
|
+
/* @__PURE__ */ React57.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
7439
7458
|
));
|
7440
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */
|
7459
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ React57.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ React57.createElement(
|
7441
7460
|
"svg",
|
7442
7461
|
{
|
7443
7462
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7448,20 +7467,20 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ React56.createElement("div", { cl
|
|
7448
7467
|
strokeLinecap: "round",
|
7449
7468
|
strokeLinejoin: "round"
|
7450
7469
|
},
|
7451
|
-
/* @__PURE__ */
|
7452
|
-
/* @__PURE__ */
|
7453
|
-
/* @__PURE__ */
|
7454
|
-
/* @__PURE__ */
|
7470
|
+
/* @__PURE__ */ React57.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
7471
|
+
/* @__PURE__ */ React57.createElement("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
|
7472
|
+
/* @__PURE__ */ React57.createElement("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
|
7473
|
+
/* @__PURE__ */ React57.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
7455
7474
|
));
|
7456
7475
|
|
7457
7476
|
// icons/CommonIcons.tsx
|
7458
|
-
import
|
7477
|
+
import React58 from "react";
|
7459
7478
|
var CheckMark = ({ size = "default", className }) => {
|
7460
7479
|
let sizeStyles2 = {
|
7461
7480
|
default: "hawa-h-5 hawa-w-5",
|
7462
7481
|
sm: "hawa-h-3 hawa-w-3"
|
7463
7482
|
};
|
7464
|
-
return /* @__PURE__ */
|
7483
|
+
return /* @__PURE__ */ React58.createElement(
|
7465
7484
|
"svg",
|
7466
7485
|
{
|
7467
7486
|
className: cn(sizeStyles2[size], className),
|
@@ -7469,7 +7488,7 @@ var CheckMark = ({ size = "default", className }) => {
|
|
7469
7488
|
fill: "currentColor",
|
7470
7489
|
viewBox: "0 0 20 20"
|
7471
7490
|
},
|
7472
|
-
/* @__PURE__ */
|
7491
|
+
/* @__PURE__ */ React58.createElement(
|
7473
7492
|
"path",
|
7474
7493
|
{
|
7475
7494
|
fillRule: "evenodd",
|
@@ -7484,7 +7503,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7484
7503
|
default: "hawa-h-5 hawa-w-5",
|
7485
7504
|
sm: "hawa-h-3 hawa-w-3"
|
7486
7505
|
};
|
7487
|
-
return /* @__PURE__ */
|
7506
|
+
return /* @__PURE__ */ React58.createElement(
|
7488
7507
|
"svg",
|
7489
7508
|
{
|
7490
7509
|
className: cn(sizeStyles2[size], className),
|
@@ -7492,7 +7511,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7492
7511
|
fill: "currentColor",
|
7493
7512
|
viewBox: "0 0 20 20"
|
7494
7513
|
},
|
7495
|
-
/* @__PURE__ */
|
7514
|
+
/* @__PURE__ */ React58.createElement(
|
7496
7515
|
"path",
|
7497
7516
|
{
|
7498
7517
|
fillRule: "evenodd",
|
@@ -7530,7 +7549,7 @@ var PasswordStrengthIndicator = ({ strength }) => {
|
|
7530
7549
|
strong: "80%",
|
7531
7550
|
"very-strong": "100%"
|
7532
7551
|
}[currentStrengthLevel];
|
7533
|
-
return /* @__PURE__ */
|
7552
|
+
return /* @__PURE__ */ React59.createElement("div", { className: "hawa-mt-0.5 hawa-h-2 hawa-w-full hawa-rounded hawa-bg-gray-200" }, /* @__PURE__ */ React59.createElement(
|
7534
7553
|
"div",
|
7535
7554
|
{
|
7536
7555
|
className: `${strengthColors[currentStrengthLevel]} hawa-h-full hawa-rounded hawa-transition-all hawa-duration-300`,
|
@@ -7590,7 +7609,7 @@ var PasswordInput = ({
|
|
7590
7609
|
setIsInputFocused(false);
|
7591
7610
|
};
|
7592
7611
|
const getCriteriaClass = (isMet) => isMet ? "hawa-flex hawa-flex-row hawa-gap-2 hawa-text-sm hawa-items-center hawa-text-green-500" : "hawa-flex hawa-flex-row hawa-gap-2 hawa-text-sm hawa-items-center hawa-text-red-600";
|
7593
|
-
return /* @__PURE__ */
|
7612
|
+
return /* @__PURE__ */ React59.createElement("div", null, /* @__PURE__ */ React59.createElement(
|
7594
7613
|
Popover,
|
7595
7614
|
{
|
7596
7615
|
width: "trigger",
|
@@ -7599,7 +7618,7 @@ var PasswordInput = ({
|
|
7599
7618
|
onOpenChange: setIsInputFocused,
|
7600
7619
|
triggerProps: { asChild: true },
|
7601
7620
|
contentProps: { onOpenAutoFocus: (e) => e.preventDefault() },
|
7602
|
-
trigger: /* @__PURE__ */
|
7621
|
+
trigger: /* @__PURE__ */ React59.createElement(
|
7603
7622
|
"div",
|
7604
7623
|
{
|
7605
7624
|
onClick: (e) => {
|
@@ -7609,7 +7628,7 @@ var PasswordInput = ({
|
|
7609
7628
|
}
|
7610
7629
|
}
|
7611
7630
|
},
|
7612
|
-
/* @__PURE__ */
|
7631
|
+
/* @__PURE__ */ React59.createElement(
|
7613
7632
|
Input,
|
7614
7633
|
{
|
7615
7634
|
width: "full",
|
@@ -7619,27 +7638,27 @@ var PasswordInput = ({
|
|
7619
7638
|
onFocus: handleInputFocus,
|
7620
7639
|
onBlur: handleInputBlur,
|
7621
7640
|
type: passwordVisible ? "text" : "password",
|
7622
|
-
endIcon: /* @__PURE__ */
|
7641
|
+
endIcon: /* @__PURE__ */ React59.createElement(
|
7623
7642
|
"div",
|
7624
7643
|
{
|
7625
7644
|
className: "hawa-cursor-pointer",
|
7626
7645
|
onClick: () => setPasswordVisible(!passwordVisible)
|
7627
7646
|
},
|
7628
|
-
passwordVisible ? /* @__PURE__ */
|
7647
|
+
passwordVisible ? /* @__PURE__ */ React59.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React59.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
7629
7648
|
" "
|
7630
7649
|
)
|
7631
7650
|
}
|
7632
7651
|
)
|
7633
7652
|
)
|
7634
7653
|
},
|
7635
|
-
/* @__PURE__ */
|
7636
|
-
), /* @__PURE__ */
|
7654
|
+
/* @__PURE__ */ React59.createElement("div", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ React59.createElement("ul", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ React59.createElement("li", { className: getCriteriaClass(lengthCriteriaMet) }, lengthCriteriaMet ? /* @__PURE__ */ React59.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ React59.createElement(UncheckMark, { size: "sm" }), "At least 8 characters long"), /* @__PURE__ */ React59.createElement("li", { className: getCriteriaClass(numberCriteriaMet) }, numberCriteriaMet ? /* @__PURE__ */ React59.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ React59.createElement(UncheckMark, { size: "sm" }), "At least 1 number"), /* @__PURE__ */ React59.createElement("li", { className: getCriteriaClass(specialCharCriteriaMet) }, specialCharCriteriaMet ? /* @__PURE__ */ React59.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ React59.createElement(UncheckMark, { size: "sm" }), "At least 1 special character"), /* @__PURE__ */ React59.createElement("li", { className: getCriteriaClass(lowercaseCriteriaMet) }, lowercaseCriteriaMet ? /* @__PURE__ */ React59.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ React59.createElement(UncheckMark, { size: "sm" }), "At least 1 lowercase letter"), /* @__PURE__ */ React59.createElement("li", { className: getCriteriaClass(uppercaseCriteriaMet) }, uppercaseCriteriaMet ? /* @__PURE__ */ React59.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ React59.createElement(UncheckMark, { size: "sm" }), "At least 1 uppercase letter")))
|
7655
|
+
), /* @__PURE__ */ React59.createElement(PasswordStrengthIndicator, { strength: currentStr }));
|
7637
7656
|
};
|
7638
7657
|
|
7639
7658
|
// elements/slider/Slider.tsx
|
7640
|
-
import * as
|
7659
|
+
import * as React60 from "react";
|
7641
7660
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
7642
|
-
var Slider =
|
7661
|
+
var Slider = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React60.createElement(
|
7643
7662
|
SliderPrimitive.Root,
|
7644
7663
|
{
|
7645
7664
|
ref,
|
@@ -7649,13 +7668,13 @@ var Slider = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
7649
7668
|
),
|
7650
7669
|
...props
|
7651
7670
|
},
|
7652
|
-
/* @__PURE__ */
|
7653
|
-
/* @__PURE__ */
|
7671
|
+
/* @__PURE__ */ React60.createElement(SliderPrimitive.Track, { className: "hawa-relative hawa-h-2 hawa-w-full hawa-grow hawa-overflow-hidden hawa-rounded-full hawa-border hawa-bg-background" }, /* @__PURE__ */ React60.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
|
7672
|
+
/* @__PURE__ */ React60.createElement(SliderPrimitive.Thumb, { className: "hawa-block hawa-h-5 hawa-w-5 hawa-rounded-full hawa-border-2 hawa-border-primary hawa-bg-background hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50" })
|
7654
7673
|
));
|
7655
7674
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
7656
7675
|
|
7657
7676
|
// elements/simpleTable/SimpleTable.tsx
|
7658
|
-
import * as
|
7677
|
+
import * as React61 from "react";
|
7659
7678
|
import {
|
7660
7679
|
flexRender as flexRender2,
|
7661
7680
|
getCoreRowModel as getCoreRowModel2,
|
@@ -7674,7 +7693,7 @@ var SimpleTable = ({
|
|
7674
7693
|
columns,
|
7675
7694
|
getCoreRowModel: getCoreRowModel2()
|
7676
7695
|
});
|
7677
|
-
return /* @__PURE__ */
|
7696
|
+
return /* @__PURE__ */ React61.createElement(
|
7678
7697
|
"div",
|
7679
7698
|
{
|
7680
7699
|
className: cn(
|
@@ -7682,8 +7701,8 @@ var SimpleTable = ({
|
|
7682
7701
|
classNames
|
7683
7702
|
)
|
7684
7703
|
},
|
7685
|
-
props.isLoading ? /* @__PURE__ */
|
7686
|
-
return /* @__PURE__ */
|
7704
|
+
props.isLoading ? /* @__PURE__ */ React61.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React61.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React61.createElement(Table, null, !headerless && table.getAllColumns().length > 0 && /* @__PURE__ */ React61.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React61.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
7705
|
+
return /* @__PURE__ */ React61.createElement(
|
7687
7706
|
TableHead,
|
7688
7707
|
{
|
7689
7708
|
condensed: props.condensed,
|
@@ -7698,7 +7717,7 @@ var SimpleTable = ({
|
|
7698
7717
|
header.getContext()
|
7699
7718
|
)
|
7700
7719
|
);
|
7701
|
-
})))), /* @__PURE__ */
|
7720
|
+
})))), /* @__PURE__ */ React61.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React61.createElement(
|
7702
7721
|
TableRow,
|
7703
7722
|
{
|
7704
7723
|
key: row.id,
|
@@ -7706,7 +7725,7 @@ var SimpleTable = ({
|
|
7706
7725
|
},
|
7707
7726
|
row.getVisibleCells().map((cell) => {
|
7708
7727
|
var _a2;
|
7709
|
-
return /* @__PURE__ */
|
7728
|
+
return /* @__PURE__ */ React61.createElement(
|
7710
7729
|
TableCell,
|
7711
7730
|
{
|
7712
7731
|
dir: props.direction,
|
@@ -7722,7 +7741,7 @@ var SimpleTable = ({
|
|
7722
7741
|
)
|
7723
7742
|
);
|
7724
7743
|
})
|
7725
|
-
)) : /* @__PURE__ */
|
7744
|
+
)) : /* @__PURE__ */ React61.createElement(TableRow, null, /* @__PURE__ */ React61.createElement(
|
7726
7745
|
TableCell,
|
7727
7746
|
{
|
7728
7747
|
colSpan: columns.length,
|
@@ -7734,12 +7753,12 @@ var SimpleTable = ({
|
|
7734
7753
|
};
|
7735
7754
|
|
7736
7755
|
// elements/separator/Separator.tsx
|
7737
|
-
import * as
|
7756
|
+
import * as React62 from "react";
|
7738
7757
|
var Separator2 = ({
|
7739
7758
|
className,
|
7740
7759
|
orientation = "horizontal",
|
7741
7760
|
...props
|
7742
|
-
}) => /* @__PURE__ */
|
7761
|
+
}) => /* @__PURE__ */ React62.createElement(
|
7743
7762
|
"div",
|
7744
7763
|
{
|
7745
7764
|
className: cn(
|
@@ -7752,7 +7771,7 @@ var Separator2 = ({
|
|
7752
7771
|
);
|
7753
7772
|
|
7754
7773
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
7755
|
-
import
|
7774
|
+
import React63, { useState as useState30, useEffect as useEffect26 } from "react";
|
7756
7775
|
var ScrollIndicator = ({
|
7757
7776
|
anchor,
|
7758
7777
|
inContainer = false
|
@@ -7777,7 +7796,7 @@ var ScrollIndicator = ({
|
|
7777
7796
|
(_a = anchor.current) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
|
7778
7797
|
};
|
7779
7798
|
}, [anchor]);
|
7780
|
-
return /* @__PURE__ */
|
7799
|
+
return /* @__PURE__ */ React63.createElement(
|
7781
7800
|
"div",
|
7782
7801
|
{
|
7783
7802
|
style: {
|
@@ -7793,11 +7812,11 @@ var ScrollIndicator = ({
|
|
7793
7812
|
};
|
7794
7813
|
|
7795
7814
|
// elements/codeBlock/CodeBlock.tsx
|
7796
|
-
import
|
7815
|
+
import React64, { useState as useState31 } from "react";
|
7797
7816
|
import { Highlight, themes, Prism } from "prism-react-renderer";
|
7798
7817
|
(typeof global !== "undefined" ? global : window).Prism = Prism;
|
7799
7818
|
__require("prismjs/components/prism-bash");
|
7800
|
-
var CopyIcon = () => /* @__PURE__ */
|
7819
|
+
var CopyIcon = () => /* @__PURE__ */ React64.createElement(
|
7801
7820
|
"svg",
|
7802
7821
|
{
|
7803
7822
|
"aria-label": "Copy",
|
@@ -7810,8 +7829,8 @@ var CopyIcon = () => /* @__PURE__ */ React63.createElement(
|
|
7810
7829
|
height: "1em",
|
7811
7830
|
width: "1em"
|
7812
7831
|
},
|
7813
|
-
/* @__PURE__ */
|
7814
|
-
/* @__PURE__ */
|
7832
|
+
/* @__PURE__ */ React64.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
7833
|
+
/* @__PURE__ */ React64.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
7815
7834
|
);
|
7816
7835
|
var CodeBlock = ({
|
7817
7836
|
tabs,
|
@@ -7833,7 +7852,7 @@ var CodeBlock = ({
|
|
7833
7852
|
sm: "hawa-w-full hawa-max-w-sm",
|
7834
7853
|
xs: "hawa-w-full hawa-max-w-xs"
|
7835
7854
|
};
|
7836
|
-
return /* @__PURE__ */
|
7855
|
+
return /* @__PURE__ */ React64.createElement(
|
7837
7856
|
"div",
|
7838
7857
|
{
|
7839
7858
|
className: cn(
|
@@ -7842,7 +7861,7 @@ var CodeBlock = ({
|
|
7842
7861
|
classNames == null ? void 0 : classNames.root
|
7843
7862
|
)
|
7844
7863
|
},
|
7845
|
-
fileName && /* @__PURE__ */
|
7864
|
+
fileName && /* @__PURE__ */ React64.createElement(
|
7846
7865
|
"div",
|
7847
7866
|
{
|
7848
7867
|
className: cn(
|
@@ -7851,7 +7870,7 @@ var CodeBlock = ({
|
|
7851
7870
|
classNames == null ? void 0 : classNames.fileName
|
7852
7871
|
)
|
7853
7872
|
},
|
7854
|
-
/* @__PURE__ */
|
7873
|
+
/* @__PURE__ */ React64.createElement(
|
7855
7874
|
"div",
|
7856
7875
|
{
|
7857
7876
|
className: cn(
|
@@ -7861,7 +7880,7 @@ var CodeBlock = ({
|
|
7861
7880
|
fileName
|
7862
7881
|
)
|
7863
7882
|
),
|
7864
|
-
tabs && /* @__PURE__ */
|
7883
|
+
tabs && /* @__PURE__ */ React64.createElement(
|
7865
7884
|
"div",
|
7866
7885
|
{
|
7867
7886
|
className: cn(
|
@@ -7870,7 +7889,7 @@ var CodeBlock = ({
|
|
7870
7889
|
classNames == null ? void 0 : classNames.tabs
|
7871
7890
|
)
|
7872
7891
|
},
|
7873
|
-
tabs.map((tab, i) => /* @__PURE__ */
|
7892
|
+
tabs.map((tab, i) => /* @__PURE__ */ React64.createElement(
|
7874
7893
|
"div",
|
7875
7894
|
{
|
7876
7895
|
key: i,
|
@@ -7879,7 +7898,7 @@ var CodeBlock = ({
|
|
7879
7898
|
classNames == null ? void 0 : classNames.tab
|
7880
7899
|
)
|
7881
7900
|
},
|
7882
|
-
/* @__PURE__ */
|
7901
|
+
/* @__PURE__ */ React64.createElement(
|
7883
7902
|
"div",
|
7884
7903
|
{
|
7885
7904
|
onClick: () => setSelectedTab(i),
|
@@ -7891,7 +7910,7 @@ var CodeBlock = ({
|
|
7891
7910
|
)
|
7892
7911
|
))
|
7893
7912
|
),
|
7894
|
-
/* @__PURE__ */
|
7913
|
+
/* @__PURE__ */ React64.createElement(
|
7895
7914
|
"div",
|
7896
7915
|
{
|
7897
7916
|
className: cn(
|
@@ -7901,22 +7920,22 @@ var CodeBlock = ({
|
|
7901
7920
|
"hawa-overflow-y-auto"
|
7902
7921
|
)
|
7903
7922
|
},
|
7904
|
-
/* @__PURE__ */
|
7923
|
+
/* @__PURE__ */ React64.createElement(
|
7905
7924
|
"div",
|
7906
7925
|
{
|
7907
7926
|
className: cn(
|
7908
7927
|
"hawa-flex hawa-absolute hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-z-50 hawa-right-3 hawa-top-3"
|
7909
7928
|
)
|
7910
7929
|
},
|
7911
|
-
/* @__PURE__ */
|
7930
|
+
/* @__PURE__ */ React64.createElement(
|
7912
7931
|
Tooltip,
|
7913
7932
|
{
|
7914
7933
|
open: clipboard.copied,
|
7915
7934
|
side: "left",
|
7916
|
-
content: /* @__PURE__ */
|
7935
|
+
content: /* @__PURE__ */ React64.createElement("div", null, "Copied!"),
|
7917
7936
|
triggerProps: { asChild: true }
|
7918
7937
|
},
|
7919
|
-
/* @__PURE__ */
|
7938
|
+
/* @__PURE__ */ React64.createElement(
|
7920
7939
|
Button,
|
7921
7940
|
{
|
7922
7941
|
size: "smallIcon",
|
@@ -7924,18 +7943,18 @@ var CodeBlock = ({
|
|
7924
7943
|
variant: "outline",
|
7925
7944
|
className: "hawa-text-gray-200 hawa-opacity-50 dark:hawa-border-gray-200 dark:hover:hawa-border-gray-400"
|
7926
7945
|
},
|
7927
|
-
/* @__PURE__ */
|
7946
|
+
/* @__PURE__ */ React64.createElement(CopyIcon, null)
|
7928
7947
|
)
|
7929
7948
|
)
|
7930
7949
|
),
|
7931
|
-
/* @__PURE__ */
|
7950
|
+
/* @__PURE__ */ React64.createElement(
|
7932
7951
|
Highlight,
|
7933
7952
|
{
|
7934
7953
|
theme,
|
7935
7954
|
code: tabs ? tabs[selectedTab].code : code || "",
|
7936
7955
|
language
|
7937
7956
|
},
|
7938
|
-
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */
|
7957
|
+
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ React64.createElement(
|
7939
7958
|
"pre",
|
7940
7959
|
{
|
7941
7960
|
className: cn(
|
@@ -7945,7 +7964,7 @@ var CodeBlock = ({
|
|
7945
7964
|
wrapText && "hawa-text-wrap"
|
7946
7965
|
)
|
7947
7966
|
},
|
7948
|
-
tokens.map((line, i) => /* @__PURE__ */
|
7967
|
+
tokens.map((line, i) => /* @__PURE__ */ React64.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ React64.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ React64.createElement("span", { key, ...getTokenProps({ token }) }))))
|
7949
7968
|
)
|
7950
7969
|
)
|
7951
7970
|
)
|
@@ -7953,7 +7972,7 @@ var CodeBlock = ({
|
|
7953
7972
|
};
|
7954
7973
|
|
7955
7974
|
// elements/carousel/Carousel.tsx
|
7956
|
-
import
|
7975
|
+
import React65, { useEffect as useEffect27, useState as useState32 } from "react";
|
7957
7976
|
import useEmblaCarousel2 from "embla-carousel-react";
|
7958
7977
|
var Carousel = ({
|
7959
7978
|
items,
|
@@ -7992,17 +8011,17 @@ var Carousel = ({
|
|
7992
8011
|
clearInterval(autoplayTimer);
|
7993
8012
|
};
|
7994
8013
|
}, [emblaApi, autoplay, autoplayInterval]);
|
7995
|
-
const length =
|
8014
|
+
const length = React65.Children.count(items);
|
7996
8015
|
const canScrollNext = !!(emblaApi == null ? void 0 : emblaApi.canScrollNext());
|
7997
8016
|
const canScrollPrev = !!(emblaApi == null ? void 0 : emblaApi.canScrollPrev());
|
7998
|
-
return /* @__PURE__ */
|
8017
|
+
return /* @__PURE__ */ React65.createElement("div", { className: " hawa-relative hawa-h-full" }, /* @__PURE__ */ React65.createElement("div", { className: "hawa-h-full hawa-overflow-hidden" }, /* @__PURE__ */ React65.createElement("div", { className: "hawa-h-full", ref: emblaRef }, /* @__PURE__ */ React65.createElement("div", { className: "hawa-flex hawa-h-full" }, items == null ? void 0 : items.map((item, i) => /* @__PURE__ */ React65.createElement(
|
7999
8018
|
"div",
|
8000
8019
|
{
|
8001
8020
|
key: i,
|
8002
8021
|
className: "hawa-flex hawa-h-full hawa-min-w-0 hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
8003
8022
|
},
|
8004
8023
|
item
|
8005
|
-
))))), /* @__PURE__ */
|
8024
|
+
))))), /* @__PURE__ */ React65.createElement(
|
8006
8025
|
Dots,
|
8007
8026
|
{
|
8008
8027
|
direction,
|
@@ -8010,7 +8029,7 @@ var Carousel = ({
|
|
8010
8029
|
selectedIndex,
|
8011
8030
|
onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
|
8012
8031
|
}
|
8013
|
-
), showArrows && /* @__PURE__ */
|
8032
|
+
), showArrows && /* @__PURE__ */ React65.createElement(
|
8014
8033
|
CarouselControls,
|
8015
8034
|
{
|
8016
8035
|
canScrollNext,
|
@@ -8027,7 +8046,7 @@ var Dots = ({
|
|
8027
8046
|
direction
|
8028
8047
|
}) => {
|
8029
8048
|
const arr = new Array(itemsLength).fill(0);
|
8030
|
-
return /* @__PURE__ */
|
8049
|
+
return /* @__PURE__ */ React65.createElement(
|
8031
8050
|
"div",
|
8032
8051
|
{
|
8033
8052
|
dir: direction,
|
@@ -8035,7 +8054,7 @@ var Dots = ({
|
|
8035
8054
|
},
|
8036
8055
|
arr.map((_, index) => {
|
8037
8056
|
const selected = index === selectedIndex;
|
8038
|
-
return /* @__PURE__ */
|
8057
|
+
return /* @__PURE__ */ React65.createElement(
|
8039
8058
|
"div",
|
8040
8059
|
{
|
8041
8060
|
key: index,
|
@@ -8050,7 +8069,7 @@ var Dots = ({
|
|
8050
8069
|
);
|
8051
8070
|
};
|
8052
8071
|
var CarouselControls = (props) => {
|
8053
|
-
return /* @__PURE__ */
|
8072
|
+
return /* @__PURE__ */ React65.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ React65.createElement(
|
8054
8073
|
"button",
|
8055
8074
|
{
|
8056
8075
|
onClick: () => props.canScrollPrev && props.onPrev(),
|
@@ -8061,7 +8080,7 @@ var CarouselControls = (props) => {
|
|
8061
8080
|
props.canScrollPrev && "hawa-bg-primary"
|
8062
8081
|
)
|
8063
8082
|
},
|
8064
|
-
/* @__PURE__ */
|
8083
|
+
/* @__PURE__ */ React65.createElement(
|
8065
8084
|
"svg",
|
8066
8085
|
{
|
8067
8086
|
"aria-label": "Chevron Right Icon",
|
@@ -8070,9 +8089,9 @@ var CarouselControls = (props) => {
|
|
8070
8089
|
viewBox: "0 0 16 16",
|
8071
8090
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-rotate-180 hawa-transition-transform hawa-duration-200 "
|
8072
8091
|
},
|
8073
|
-
/* @__PURE__ */
|
8092
|
+
/* @__PURE__ */ React65.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
|
8074
8093
|
)
|
8075
|
-
), /* @__PURE__ */
|
8094
|
+
), /* @__PURE__ */ React65.createElement(
|
8076
8095
|
"button",
|
8077
8096
|
{
|
8078
8097
|
onClick: () => props.canScrollNext && props.onNext(),
|
@@ -8083,7 +8102,7 @@ var CarouselControls = (props) => {
|
|
8083
8102
|
props.canScrollNext && "hawa-bg-primary"
|
8084
8103
|
)
|
8085
8104
|
},
|
8086
|
-
/* @__PURE__ */
|
8105
|
+
/* @__PURE__ */ React65.createElement(
|
8087
8106
|
"svg",
|
8088
8107
|
{
|
8089
8108
|
"aria-label": "Chevron Right Icon",
|
@@ -8092,19 +8111,19 @@ var CarouselControls = (props) => {
|
|
8092
8111
|
viewBox: "0 0 16 16",
|
8093
8112
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-transition-transform hawa-duration-200 "
|
8094
8113
|
},
|
8095
|
-
/* @__PURE__ */
|
8114
|
+
/* @__PURE__ */ React65.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
|
8096
8115
|
)
|
8097
8116
|
));
|
8098
8117
|
};
|
8099
8118
|
|
8100
8119
|
// elements/count/Count.tsx
|
8101
|
-
import
|
8120
|
+
import React66 from "react";
|
8102
8121
|
var Count = (props) => {
|
8103
|
-
return /* @__PURE__ */
|
8122
|
+
return /* @__PURE__ */ React66.createElement("div", { className: "hawa-flex hawa-h-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-px-2" }, /* @__PURE__ */ React66.createElement("div", null, props.icon), /* @__PURE__ */ React66.createElement("div", { className: "hawa-text-sm" }, props.count));
|
8104
8123
|
};
|
8105
8124
|
|
8106
8125
|
// elements/toast/Toast.tsx
|
8107
|
-
import * as
|
8126
|
+
import * as React67 from "react";
|
8108
8127
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
8109
8128
|
import { cva as cva4 } from "class-variance-authority";
|
8110
8129
|
var toastVariants = cva4(
|
@@ -8132,7 +8151,7 @@ var sizeStyles = {
|
|
8132
8151
|
sm: "hawa-text-xs"
|
8133
8152
|
};
|
8134
8153
|
var ToastProvider = ToastPrimitives.Provider;
|
8135
|
-
var ToastViewport =
|
8154
|
+
var ToastViewport = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
8136
8155
|
ToastPrimitives.Viewport,
|
8137
8156
|
{
|
8138
8157
|
ref,
|
@@ -8144,8 +8163,8 @@ var ToastViewport = React66.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
8144
8163
|
}
|
8145
8164
|
));
|
8146
8165
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
8147
|
-
var Toast =
|
8148
|
-
return /* @__PURE__ */
|
8166
|
+
var Toast = React67.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
8167
|
+
return /* @__PURE__ */ React67.createElement(
|
8149
8168
|
ToastPrimitives.Root,
|
8150
8169
|
{
|
8151
8170
|
ref,
|
@@ -8160,8 +8179,8 @@ var Toast = React66.forwardRef(({ className, variant, severity = "none", directi
|
|
8160
8179
|
);
|
8161
8180
|
});
|
8162
8181
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
8163
|
-
var ToastAction =
|
8164
|
-
return /* @__PURE__ */
|
8182
|
+
var ToastAction = React67.forwardRef(({ className, ...props }, ref) => {
|
8183
|
+
return /* @__PURE__ */ React67.createElement(
|
8165
8184
|
ToastPrimitives.Action,
|
8166
8185
|
{
|
8167
8186
|
ref,
|
@@ -8179,7 +8198,7 @@ var ToastAction = React66.forwardRef(({ className, ...props }, ref) => {
|
|
8179
8198
|
);
|
8180
8199
|
});
|
8181
8200
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
8182
|
-
var ToastClose =
|
8201
|
+
var ToastClose = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
8183
8202
|
ToastPrimitives.Close,
|
8184
8203
|
{
|
8185
8204
|
ref,
|
@@ -8193,7 +8212,7 @@ var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8193
8212
|
"toast-close": "",
|
8194
8213
|
...props
|
8195
8214
|
},
|
8196
|
-
/* @__PURE__ */
|
8215
|
+
/* @__PURE__ */ React67.createElement(
|
8197
8216
|
"svg",
|
8198
8217
|
{
|
8199
8218
|
"aria-label": "Close Icon",
|
@@ -8202,7 +8221,7 @@ var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8202
8221
|
fill: "currentColor",
|
8203
8222
|
viewBox: "0 0 20 20"
|
8204
8223
|
},
|
8205
|
-
/* @__PURE__ */
|
8224
|
+
/* @__PURE__ */ React67.createElement(
|
8206
8225
|
"path",
|
8207
8226
|
{
|
8208
8227
|
fillRule: "evenodd",
|
@@ -8213,7 +8232,7 @@ var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8213
8232
|
)
|
8214
8233
|
));
|
8215
8234
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
8216
|
-
var ToastTitle =
|
8235
|
+
var ToastTitle = React67.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
8217
8236
|
ToastPrimitives.Title,
|
8218
8237
|
{
|
8219
8238
|
ref,
|
@@ -8226,7 +8245,7 @@ var ToastTitle = React66.forwardRef(({ className, size = "default", ...props },
|
|
8226
8245
|
}
|
8227
8246
|
));
|
8228
8247
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
8229
|
-
var ToastDescription =
|
8248
|
+
var ToastDescription = React67.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
8230
8249
|
ToastPrimitives.Description,
|
8231
8250
|
{
|
8232
8251
|
ref,
|
@@ -8241,11 +8260,11 @@ var ToastDescription = React66.forwardRef(({ className, size = "default", ...pro
|
|
8241
8260
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
8242
8261
|
|
8243
8262
|
// elements/toaster/Toaster.tsx
|
8244
|
-
import
|
8263
|
+
import React68 from "react";
|
8245
8264
|
function Toaster(props) {
|
8246
8265
|
var _a;
|
8247
8266
|
let isRTL = props.direction === "rtl";
|
8248
|
-
return /* @__PURE__ */
|
8267
|
+
return /* @__PURE__ */ React68.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, (_a = props.toasts) == null ? void 0 : _a.map(function({
|
8249
8268
|
id,
|
8250
8269
|
title,
|
8251
8270
|
description,
|
@@ -8253,7 +8272,7 @@ function Toaster(props) {
|
|
8253
8272
|
action,
|
8254
8273
|
...toastProps
|
8255
8274
|
}) {
|
8256
|
-
return /* @__PURE__ */
|
8275
|
+
return /* @__PURE__ */ React68.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ React68.createElement(
|
8257
8276
|
"div",
|
8258
8277
|
{
|
8259
8278
|
className: cn(
|
@@ -8261,9 +8280,9 @@ function Toaster(props) {
|
|
8261
8280
|
action && "hawa-justify-between"
|
8262
8281
|
)
|
8263
8282
|
},
|
8264
|
-
/* @__PURE__ */
|
8265
|
-
/* @__PURE__ */
|
8266
|
-
/* @__PURE__ */
|
8283
|
+
/* @__PURE__ */ React68.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-p-2 hawa-pe-0" }, /* @__PURE__ */ React68.createElement(ToastClose, null)),
|
8284
|
+
/* @__PURE__ */ React68.createElement("div", { className: "hawa-mx-0 hawa-h-auto hawa-max-h-full hawa-w-px hawa-bg-primary-foreground/10" }),
|
8285
|
+
/* @__PURE__ */ React68.createElement(
|
8267
8286
|
"div",
|
8268
8287
|
{
|
8269
8288
|
className: cn(
|
@@ -8271,11 +8290,11 @@ function Toaster(props) {
|
|
8271
8290
|
{ "hawa-p-4": size === "default", "hawa-p-2": size === "sm" }
|
8272
8291
|
)
|
8273
8292
|
},
|
8274
|
-
/* @__PURE__ */
|
8275
|
-
action && /* @__PURE__ */
|
8293
|
+
/* @__PURE__ */ React68.createElement("div", { className: "hawa-grid hawa-gap-1 hawa-text-start" }, title && /* @__PURE__ */ React68.createElement(ToastTitle, { size }, title), description && /* @__PURE__ */ React68.createElement(ToastDescription, { size }, description)),
|
8294
|
+
action && /* @__PURE__ */ React68.createElement("div", { className: "hawa-flex hawa-flex-col hawa-justify-center" }, action)
|
8276
8295
|
)
|
8277
8296
|
));
|
8278
|
-
}), /* @__PURE__ */
|
8297
|
+
}), /* @__PURE__ */ React68.createElement(
|
8279
8298
|
ToastViewport,
|
8280
8299
|
{
|
8281
8300
|
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
@@ -8284,7 +8303,7 @@ function Toaster(props) {
|
|
8284
8303
|
}
|
8285
8304
|
|
8286
8305
|
// elements/destroyableCard/DestroyableCard.tsx
|
8287
|
-
import
|
8306
|
+
import React69, { useRef as useRef17, useState as useState33 } from "react";
|
8288
8307
|
var DestroyableCard = ({
|
8289
8308
|
position = "bottom-right",
|
8290
8309
|
fixed,
|
@@ -8297,7 +8316,7 @@ var DestroyableCard = ({
|
|
8297
8316
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
8298
8317
|
"bottom-left": "hawa-left-4 hawa-bottom-4"
|
8299
8318
|
};
|
8300
|
-
return /* @__PURE__ */
|
8319
|
+
return /* @__PURE__ */ React69.createElement(
|
8301
8320
|
"div",
|
8302
8321
|
{
|
8303
8322
|
className: cn(
|
@@ -8306,7 +8325,7 @@ var DestroyableCard = ({
|
|
8306
8325
|
),
|
8307
8326
|
ref: popUpRef
|
8308
8327
|
},
|
8309
|
-
/* @__PURE__ */
|
8328
|
+
/* @__PURE__ */ React69.createElement(
|
8310
8329
|
Card,
|
8311
8330
|
{
|
8312
8331
|
className: cn(
|
@@ -8315,7 +8334,7 @@ var DestroyableCard = ({
|
|
8315
8334
|
),
|
8316
8335
|
dir: direction
|
8317
8336
|
},
|
8318
|
-
/* @__PURE__ */
|
8337
|
+
/* @__PURE__ */ React69.createElement(
|
8319
8338
|
"button",
|
8320
8339
|
{
|
8321
8340
|
type: "button",
|
@@ -8334,7 +8353,7 @@ var DestroyableCard = ({
|
|
8334
8353
|
}, 200);
|
8335
8354
|
}
|
8336
8355
|
},
|
8337
|
-
/* @__PURE__ */
|
8356
|
+
/* @__PURE__ */ React69.createElement(
|
8338
8357
|
"svg",
|
8339
8358
|
{
|
8340
8359
|
"aria-hidden": "true",
|
@@ -8342,7 +8361,7 @@ var DestroyableCard = ({
|
|
8342
8361
|
fill: "currentColor",
|
8343
8362
|
viewBox: "0 0 20 20"
|
8344
8363
|
},
|
8345
|
-
/* @__PURE__ */
|
8364
|
+
/* @__PURE__ */ React69.createElement(
|
8346
8365
|
"path",
|
8347
8366
|
{
|
8348
8367
|
fillRule: "evenodd",
|
@@ -8352,13 +8371,13 @@ var DestroyableCard = ({
|
|
8352
8371
|
)
|
8353
8372
|
)
|
8354
8373
|
),
|
8355
|
-
/* @__PURE__ */
|
8374
|
+
/* @__PURE__ */ React69.createElement(CardContent, { headless: true }, props.children)
|
8356
8375
|
)
|
8357
8376
|
);
|
8358
8377
|
};
|
8359
8378
|
|
8360
8379
|
// elements/interfaceSettings/InterfaceSettings.tsx
|
8361
|
-
import
|
8380
|
+
import React70, { useState as useState34 } from "react";
|
8362
8381
|
var InterfaceSettings = ({
|
8363
8382
|
orientation = "horizontal",
|
8364
8383
|
width = "default",
|
@@ -8372,7 +8391,7 @@ var InterfaceSettings = ({
|
|
8372
8391
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
8373
8392
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
8374
8393
|
};
|
8375
|
-
return /* @__PURE__ */
|
8394
|
+
return /* @__PURE__ */ React70.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ React70.createElement(
|
8376
8395
|
Radio,
|
8377
8396
|
{
|
8378
8397
|
name: "language",
|
@@ -8390,7 +8409,7 @@ var InterfaceSettings = ({
|
|
8390
8409
|
{ value: "en", label: "English" }
|
8391
8410
|
]
|
8392
8411
|
}
|
8393
|
-
), /* @__PURE__ */
|
8412
|
+
), /* @__PURE__ */ React70.createElement(
|
8394
8413
|
Radio,
|
8395
8414
|
{
|
8396
8415
|
name: "theme",
|
@@ -8406,7 +8425,7 @@ var InterfaceSettings = ({
|
|
8406
8425
|
options: [
|
8407
8426
|
{
|
8408
8427
|
value: "light",
|
8409
|
-
label: /* @__PURE__ */
|
8428
|
+
label: /* @__PURE__ */ React70.createElement(
|
8410
8429
|
"svg",
|
8411
8430
|
{
|
8412
8431
|
width: "15",
|
@@ -8416,7 +8435,7 @@ var InterfaceSettings = ({
|
|
8416
8435
|
xmlns: "http://www.w3.org/2000/svg",
|
8417
8436
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
8418
8437
|
},
|
8419
|
-
/* @__PURE__ */
|
8438
|
+
/* @__PURE__ */ React70.createElement(
|
8420
8439
|
"path",
|
8421
8440
|
{
|
8422
8441
|
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",
|
@@ -8427,7 +8446,7 @@ var InterfaceSettings = ({
|
|
8427
8446
|
},
|
8428
8447
|
{
|
8429
8448
|
value: "dark",
|
8430
|
-
label: /* @__PURE__ */
|
8449
|
+
label: /* @__PURE__ */ React70.createElement(
|
8431
8450
|
"svg",
|
8432
8451
|
{
|
8433
8452
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8438,7 +8457,7 @@ var InterfaceSettings = ({
|
|
8438
8457
|
stroke: "currentColor",
|
8439
8458
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
8440
8459
|
},
|
8441
|
-
/* @__PURE__ */
|
8460
|
+
/* @__PURE__ */ React70.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
8442
8461
|
)
|
8443
8462
|
}
|
8444
8463
|
]
|
@@ -8447,17 +8466,17 @@ var InterfaceSettings = ({
|
|
8447
8466
|
};
|
8448
8467
|
|
8449
8468
|
// elements/phoneMockup/PhoneMockup.tsx
|
8450
|
-
import
|
8469
|
+
import React71 from "react";
|
8451
8470
|
var PhoneMockup = ({
|
8452
8471
|
children,
|
8453
8472
|
upperOverlayGradiant,
|
8454
8473
|
lowerOverlayGradiant,
|
8455
8474
|
phone,
|
8456
8475
|
hideButtons
|
8457
|
-
}) => /* @__PURE__ */
|
8476
|
+
}) => /* @__PURE__ */ React71.createElement("div", { className: "hawa-relative hawa-mx-auto hawa-h-[600px] hawa-w-[300px] hawa-rounded-[2.5rem] hawa-border-[14px] hawa-border-gray-800 hawa-bg-gray-800 hawa-dark:border-gray-800" }, !hideButtons && /* @__PURE__ */ React71.createElement(React71.Fragment, null, /* @__PURE__ */ React71.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[72px] hawa-h-[32px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ React71.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[124px] hawa-h-[46px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ React71.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[178px] hawa-h-[46px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ React71.createElement("div", { className: "hawa-absolute hawa--right-[16px] hawa-top-[142px] hawa-h-[64px] hawa-w-[3px] hawa-rounded-r-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" })), /* @__PURE__ */ React71.createElement("div", { className: "no-scrollbar hawa-left-0 hawa-h-[572px] hawa-w-[272px] hawa-overflow-y-scroll hawa-rounded-[2rem] hawa-bg-white hawa-[clip-path:inset(0px_-1px_0px_0px_round_2rem)] hawa-dark:bg-gray-800" }, children), upperOverlayGradiant && /* @__PURE__ */ React71.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-left-0 hawa-top-0 hawa-h-[72px] hawa-w-[272px] hawa-rounded-t-[2rem] hawa-bg-gradient-to-t hawa-from-transparent hawa-to-black hawa-opacity-50 hawa-[clip-path:inset(0px_0px_0px_0px_round_0rem)]" }), lowerOverlayGradiant && /* @__PURE__ */ React71.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-bottom-0 hawa-left-0 hawa-h-[72px] hawa-w-[272px] hawa-rounded-b-[2rem] hawa-bg-gradient-to-t hawa-from-black hawa-to-transparent hawa-opacity-50 hawa-[clip-path:inset(0px_0px_0px_0px_round_0rem)]" }));
|
8458
8477
|
|
8459
8478
|
// layout/stats/Stats.tsx
|
8460
|
-
import
|
8479
|
+
import React72 from "react";
|
8461
8480
|
var Stats = ({
|
8462
8481
|
label,
|
8463
8482
|
icon,
|
@@ -8476,7 +8495,7 @@ var Stats = ({
|
|
8476
8495
|
negative: "hawa-text-red-600 dark:hawa-text-red-500",
|
8477
8496
|
muted: "hawa-text-muted-foreground"
|
8478
8497
|
};
|
8479
|
-
return /* @__PURE__ */
|
8498
|
+
return /* @__PURE__ */ React72.createElement(Card, { ...props, clickable }, /* @__PURE__ */ React72.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between hawa-p-4" }, /* @__PURE__ */ React72.createElement(CardTitle, { className: "hawa-text-sm hawa-font-medium" }, label), icon && /* @__PURE__ */ React72.createElement("span", null, icon)), /* @__PURE__ */ React72.createElement(CardContent, { className: "hawa-transition-all" }, isLoading ? /* @__PURE__ */ React72.createElement(Skeleton, { className: "hawa-h-8 hawa-w-3/4" }) : /* @__PURE__ */ React72.createElement("div", { className: "hawa-text-2xl hawa-font-bold" }, number), helperText && /* @__PURE__ */ React72.createElement(
|
8480
8499
|
"div",
|
8481
8500
|
{
|
8482
8501
|
className: cn(
|
@@ -8485,18 +8504,18 @@ var Stats = ({
|
|
8485
8504
|
helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
8486
8505
|
)
|
8487
8506
|
},
|
8488
|
-
isLoading ? /* @__PURE__ */
|
8489
|
-
), chart && (isLoading ? /* @__PURE__ */
|
8507
|
+
isLoading ? /* @__PURE__ */ React72.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : helperText
|
8508
|
+
), chart && (isLoading ? /* @__PURE__ */ React72.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : chart)));
|
8490
8509
|
};
|
8491
8510
|
|
8492
8511
|
// layout/sidebar/Sidebar.tsx
|
8493
|
-
import * as
|
8512
|
+
import * as React73 from "react";
|
8494
8513
|
import * as AccordionPrimitive6 from "@radix-ui/react-accordion";
|
8495
8514
|
var Accordion2 = AccordionPrimitive6.Root;
|
8496
8515
|
var triggerStyles = "hawa-flex hawa-flex-1 hawa-items-center hawa-duration-75 hawa-select-none hawa-cursor-pointer hawa-rounded hawa-justify-between hawa-p-2 hawa-px-3 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa--rotate-90";
|
8497
|
-
var AccordionItem2 =
|
8516
|
+
var AccordionItem2 = React73.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React73.createElement(AccordionPrimitive6.Item, { ref, className: cn(className), ...props }));
|
8498
8517
|
AccordionItem2.displayName = "AccordionItem";
|
8499
|
-
var AccordionTrigger2 =
|
8518
|
+
var AccordionTrigger2 = React73.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React73.createElement(AccordionPrimitive6.Header, { className: "flex" }, /* @__PURE__ */ React73.createElement(
|
8500
8519
|
AccordionPrimitive6.Trigger,
|
8501
8520
|
{
|
8502
8521
|
ref,
|
@@ -8504,7 +8523,7 @@ var AccordionTrigger2 = React72.forwardRef(({ className, showArrow, children, ..
|
|
8504
8523
|
...props
|
8505
8524
|
},
|
8506
8525
|
children,
|
8507
|
-
showArrow && /* @__PURE__ */
|
8526
|
+
showArrow && /* @__PURE__ */ React73.createElement(
|
8508
8527
|
"svg",
|
8509
8528
|
{
|
8510
8529
|
"aria-label": "Chevron Right Icon",
|
@@ -8515,11 +8534,11 @@ var AccordionTrigger2 = React72.forwardRef(({ className, showArrow, children, ..
|
|
8515
8534
|
width: "1em",
|
8516
8535
|
className: "hawa-icon hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
|
8517
8536
|
},
|
8518
|
-
/* @__PURE__ */
|
8537
|
+
/* @__PURE__ */ React73.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
|
8519
8538
|
)
|
8520
8539
|
)));
|
8521
8540
|
AccordionTrigger2.displayName = AccordionPrimitive6.Trigger.displayName;
|
8522
|
-
var AccordionContent2 =
|
8541
|
+
var AccordionContent2 = React73.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React73.createElement(
|
8523
8542
|
AccordionPrimitive6.Content,
|
8524
8543
|
{
|
8525
8544
|
ref,
|
@@ -8529,7 +8548,7 @@ var AccordionContent2 = React72.forwardRef(({ className, children, ...props }, r
|
|
8529
8548
|
),
|
8530
8549
|
...props
|
8531
8550
|
},
|
8532
|
-
/* @__PURE__ */
|
8551
|
+
/* @__PURE__ */ React73.createElement("div", null, children)
|
8533
8552
|
));
|
8534
8553
|
AccordionContent2.displayName = AccordionPrimitive6.Content.displayName;
|
8535
8554
|
var SidebarGroup = ({
|
@@ -8545,7 +8564,7 @@ var SidebarGroup = ({
|
|
8545
8564
|
...props
|
8546
8565
|
}) => {
|
8547
8566
|
const LinkComponent = props.LinkComponent || "a";
|
8548
|
-
return /* @__PURE__ */
|
8567
|
+
return /* @__PURE__ */ React73.createElement("div", { className: "hawa-m-2" }, title && /* @__PURE__ */ React73.createElement("h3", { className: "hawa-mb-1 hawa-font-bold" }, title), /* @__PURE__ */ React73.createElement("ul", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React73.createElement(
|
8549
8568
|
Accordion2,
|
8550
8569
|
{
|
8551
8570
|
value: openedItem,
|
@@ -8556,7 +8575,7 @@ var SidebarGroup = ({
|
|
8556
8575
|
collapsible: true,
|
8557
8576
|
className: "hawa-flex hawa-flex-col hawa-gap-1"
|
8558
8577
|
},
|
8559
|
-
items.map((item, idx) => /* @__PURE__ */
|
8578
|
+
items.map((item, idx) => /* @__PURE__ */ React73.createElement(
|
8560
8579
|
SidebarItem,
|
8561
8580
|
{
|
8562
8581
|
isOpen,
|
@@ -8584,14 +8603,14 @@ var SidebarItem = ({
|
|
8584
8603
|
return props.selectedItem === value ? "hawa-bg-primary/90 hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
|
8585
8604
|
};
|
8586
8605
|
if (item.subitems) {
|
8587
|
-
return /* @__PURE__ */
|
8606
|
+
return /* @__PURE__ */ React73.createElement(
|
8588
8607
|
AccordionItem2,
|
8589
8608
|
{
|
8590
8609
|
value: item.value,
|
8591
8610
|
className: "hawa-overflow-x-clip ",
|
8592
8611
|
dir: direction
|
8593
8612
|
},
|
8594
|
-
/* @__PURE__ */
|
8613
|
+
/* @__PURE__ */ React73.createElement(
|
8595
8614
|
AccordionTrigger2,
|
8596
8615
|
{
|
8597
8616
|
className: cn(
|
@@ -8603,7 +8622,7 @@ var SidebarItem = ({
|
|
8603
8622
|
),
|
8604
8623
|
showArrow: isOpen
|
8605
8624
|
},
|
8606
|
-
/* @__PURE__ */
|
8625
|
+
/* @__PURE__ */ React73.createElement(
|
8607
8626
|
"div",
|
8608
8627
|
{
|
8609
8628
|
className: cn(
|
@@ -8611,7 +8630,7 @@ var SidebarItem = ({
|
|
8611
8630
|
)
|
8612
8631
|
},
|
8613
8632
|
item.icon && item.icon,
|
8614
|
-
/* @__PURE__ */
|
8633
|
+
/* @__PURE__ */ React73.createElement(
|
8615
8634
|
"span",
|
8616
8635
|
{
|
8617
8636
|
className: cn(
|
@@ -8623,14 +8642,14 @@ var SidebarItem = ({
|
|
8623
8642
|
)
|
8624
8643
|
)
|
8625
8644
|
),
|
8626
|
-
item.subitems && /* @__PURE__ */
|
8645
|
+
item.subitems && /* @__PURE__ */ React73.createElement(AccordionContent2, { className: "hawa-mt-1 hawa-h-full hawa-rounded" }, /* @__PURE__ */ React73.createElement(
|
8627
8646
|
"div",
|
8628
8647
|
{
|
8629
8648
|
className: cn(
|
8630
8649
|
"hawa-flex hawa-h-full hawa-flex-col hawa-gap-2 hawa-bg-foreground/5 hawa-p-1"
|
8631
8650
|
)
|
8632
8651
|
},
|
8633
|
-
item.subitems.map((subitem, idx) => /* @__PURE__ */
|
8652
|
+
item.subitems.map((subitem, idx) => /* @__PURE__ */ React73.createElement(
|
8634
8653
|
LinkComponent,
|
8635
8654
|
{
|
8636
8655
|
href: subitem.slug,
|
@@ -8661,7 +8680,7 @@ var SidebarItem = ({
|
|
8661
8680
|
))
|
8662
8681
|
);
|
8663
8682
|
} else {
|
8664
|
-
return /* @__PURE__ */
|
8683
|
+
return /* @__PURE__ */ React73.createElement(
|
8665
8684
|
LinkComponent,
|
8666
8685
|
{
|
8667
8686
|
href: item.slug,
|
@@ -8685,7 +8704,7 @@ var SidebarItem = ({
|
|
8685
8704
|
"hawa-overflow-x-clip "
|
8686
8705
|
)
|
8687
8706
|
},
|
8688
|
-
/* @__PURE__ */
|
8707
|
+
/* @__PURE__ */ React73.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, item.icon && item.icon, /* @__PURE__ */ React73.createElement(
|
8689
8708
|
"span",
|
8690
8709
|
{
|
8691
8710
|
className: cn(
|
@@ -8695,20 +8714,20 @@ var SidebarItem = ({
|
|
8695
8714
|
},
|
8696
8715
|
item.label,
|
8697
8716
|
" ",
|
8698
|
-
item.badge && /* @__PURE__ */
|
8717
|
+
item.badge && /* @__PURE__ */ React73.createElement(Chip, { label: item.badge.label, color: "hyper", size: "small" })
|
8699
8718
|
))
|
8700
8719
|
);
|
8701
8720
|
}
|
8702
8721
|
};
|
8703
8722
|
|
8704
8723
|
// layout/copyrights/Copyrights.tsx
|
8705
|
-
import
|
8724
|
+
import React74 from "react";
|
8706
8725
|
var Copyrights = (props) => {
|
8707
|
-
return /* @__PURE__ */
|
8726
|
+
return /* @__PURE__ */ React74.createElement("div", { className: "hawa-my-2 hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-1 hawa-text-xs hawa-text-gray-400" }, props.withLogo ? /* @__PURE__ */ React74.createElement("a", { href: props.onLogoClicked }, /* @__PURE__ */ React74.createElement("div", { className: "hawa-cursor-pointer" }, /* @__PURE__ */ React74.createElement("image", { href: props.logoURL, width: 100, height: 50 }))) : null, /* @__PURE__ */ React74.createElement("div", null, props.version), props.credits ? props.credits : null);
|
8708
8727
|
};
|
8709
8728
|
|
8710
8729
|
// layout/navbar/Navbar.tsx
|
8711
|
-
import
|
8730
|
+
import React75, { useState as useState35 } from "react";
|
8712
8731
|
|
8713
8732
|
// elements/collapsible/Collapsible.tsx
|
8714
8733
|
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
@@ -8725,13 +8744,13 @@ var Navbar = ({
|
|
8725
8744
|
}) => {
|
8726
8745
|
var _a, _b;
|
8727
8746
|
const [isOpen, setIsOpen] = useState35(false);
|
8728
|
-
return /* @__PURE__ */
|
8747
|
+
return /* @__PURE__ */ React75.createElement("nav", { className: " hawa-sticky hawa-top-2 hawa-transition-all" }, /* @__PURE__ */ React75.createElement(
|
8729
8748
|
Collapsible,
|
8730
8749
|
{
|
8731
8750
|
className: "hawa-relative hawa-m-2 hawa-rounded hawa-p-2",
|
8732
8751
|
style: { backgroundColor: backgroundColor || "#1f2937" }
|
8733
8752
|
},
|
8734
|
-
/* @__PURE__ */
|
8753
|
+
/* @__PURE__ */ React75.createElement("div", { className: "hawa-flex hawa-items-center hawa-justify-between hawa-px-3 " }, /* @__PURE__ */ React75.createElement("div", { className: "hawa-flex hawa-items-center" }, /* @__PURE__ */ React75.createElement(
|
8735
8754
|
"div",
|
8736
8755
|
{
|
8737
8756
|
className: "hawa-p-1.5 hawa-text-xl hawa-font-bold hawa-text-white",
|
@@ -8742,7 +8761,7 @@ var Navbar = ({
|
|
8742
8761
|
}
|
8743
8762
|
},
|
8744
8763
|
logo
|
8745
|
-
)), /* @__PURE__ */
|
8764
|
+
)), /* @__PURE__ */ React75.createElement("div", { className: "hawa-hidden md:hawa-flex " }, (_a = props.menuItems) == null ? void 0 : _a.map((item, i) => /* @__PURE__ */ React75.createElement(
|
8746
8765
|
"div",
|
8747
8766
|
{
|
8748
8767
|
key: i,
|
@@ -8750,14 +8769,14 @@ var Navbar = ({
|
|
8750
8769
|
className: "hawa-cursor-pointer hawa-rounded hawa-p-1.5 hawa-px-2 hawa-text-center hawa-text-sm hawa-text-white hawa-transition-all hover:hawa-bg-gray-300 hover:hawa-text-black"
|
8751
8770
|
},
|
8752
8771
|
item.label
|
8753
|
-
))), /* @__PURE__ */
|
8772
|
+
))), /* @__PURE__ */ React75.createElement("div", { className: "hawa-m-0 hawa-flex hawa-h-fit hawa-p-0 md:hawa-hidden" }, /* @__PURE__ */ React75.createElement(
|
8754
8773
|
CollapsibleTrigger2,
|
8755
8774
|
{
|
8756
8775
|
onClick: () => setIsOpen(!isOpen),
|
8757
8776
|
className: "hawa-h-full hawa-text-white selection:hawa-p-0 ",
|
8758
8777
|
"aria-label": "Toggle menu"
|
8759
8778
|
},
|
8760
|
-
/* @__PURE__ */
|
8779
|
+
/* @__PURE__ */ React75.createElement(
|
8761
8780
|
"svg",
|
8762
8781
|
{
|
8763
8782
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8774,11 +8793,11 @@ var Navbar = ({
|
|
8774
8793
|
isOpen ? "hawa-invisible" : "hawa-visible"
|
8775
8794
|
)
|
8776
8795
|
},
|
8777
|
-
/* @__PURE__ */
|
8778
|
-
/* @__PURE__ */
|
8779
|
-
/* @__PURE__ */
|
8796
|
+
/* @__PURE__ */ React75.createElement("line", { x1: "4", x2: "20", y1: "12", y2: "12" }),
|
8797
|
+
/* @__PURE__ */ React75.createElement("line", { x1: "4", x2: "20", y1: "6", y2: "6" }),
|
8798
|
+
/* @__PURE__ */ React75.createElement("line", { x1: "4", x2: "20", y1: "18", y2: "18" })
|
8780
8799
|
),
|
8781
|
-
/* @__PURE__ */
|
8800
|
+
/* @__PURE__ */ React75.createElement(
|
8782
8801
|
"svg",
|
8783
8802
|
{
|
8784
8803
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8795,11 +8814,11 @@ var Navbar = ({
|
|
8795
8814
|
!isOpen ? "hawa-invisible" : "hawa-visible"
|
8796
8815
|
)
|
8797
8816
|
},
|
8798
|
-
/* @__PURE__ */
|
8799
|
-
/* @__PURE__ */
|
8817
|
+
/* @__PURE__ */ React75.createElement("path", { d: "M18 6 6 18" }),
|
8818
|
+
/* @__PURE__ */ React75.createElement("path", { d: "m6 6 12 12" })
|
8800
8819
|
)
|
8801
8820
|
))),
|
8802
|
-
/* @__PURE__ */
|
8821
|
+
/* @__PURE__ */ React75.createElement(
|
8803
8822
|
CollapsibleContent2,
|
8804
8823
|
{
|
8805
8824
|
className: cn(
|
@@ -8814,7 +8833,7 @@ var Navbar = ({
|
|
8814
8833
|
zIndex: -100
|
8815
8834
|
}
|
8816
8835
|
},
|
8817
|
-
(_b = props.menuItems) == null ? void 0 : _b.map((item, i) => /* @__PURE__ */
|
8836
|
+
(_b = props.menuItems) == null ? void 0 : _b.map((item, i) => /* @__PURE__ */ React75.createElement(
|
8818
8837
|
"div",
|
8819
8838
|
{
|
8820
8839
|
key: i,
|
@@ -8828,7 +8847,7 @@ var Navbar = ({
|
|
8828
8847
|
};
|
8829
8848
|
|
8830
8849
|
// layout/appLayout/AppLayout.tsx
|
8831
|
-
import
|
8850
|
+
import React76, { useEffect as useEffect28, useRef as useRef18, useState as useState36 } from "react";
|
8832
8851
|
var AppLayout = ({
|
8833
8852
|
profileMenuWidth = "default",
|
8834
8853
|
DrawerFooterActions,
|
@@ -8843,6 +8862,7 @@ var AppLayout = ({
|
|
8843
8862
|
keepOpen,
|
8844
8863
|
DrawerLinkComponent,
|
8845
8864
|
MenuLinkComponent,
|
8865
|
+
onAvatarClick,
|
8846
8866
|
...props
|
8847
8867
|
}) => {
|
8848
8868
|
var _a, _b;
|
@@ -8856,11 +8876,15 @@ var AppLayout = ({
|
|
8856
8876
|
lg: closeDrawerWidth
|
8857
8877
|
}
|
8858
8878
|
};
|
8859
|
-
const
|
8879
|
+
const drawerRef = useRef18(null);
|
8860
8880
|
const isRTL = direction === "rtl";
|
8861
8881
|
const [openedSidebarItem, setOpenedSidebarItem] = useState36("");
|
8862
8882
|
const [size, setSize] = useState36(1200);
|
8863
8883
|
const [openSideMenu, setOpenSideMenu] = useState36(true);
|
8884
|
+
const handleClickOutside = () => {
|
8885
|
+
setOpenSideMenu(false);
|
8886
|
+
};
|
8887
|
+
const ref = useOutsideClick_default(handleClickOutside);
|
8864
8888
|
const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
|
8865
8889
|
useEffect28(() => {
|
8866
8890
|
if (typeof window !== "undefined") {
|
@@ -8881,18 +8905,7 @@ var AppLayout = ({
|
|
8881
8905
|
setOpenSideMenu(false);
|
8882
8906
|
}
|
8883
8907
|
}, [size]);
|
8884
|
-
|
8885
|
-
const handleClickOutside = (event) => {
|
8886
|
-
if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
|
8887
|
-
setOpenSideMenu(false);
|
8888
|
-
}
|
8889
|
-
};
|
8890
|
-
document.addEventListener("click", handleClickOutside, true);
|
8891
|
-
return () => {
|
8892
|
-
document.removeEventListener("click", handleClickOutside, true);
|
8893
|
-
};
|
8894
|
-
}, [keepOpen]);
|
8895
|
-
return /* @__PURE__ */ React75.createElement("div", { className: "hawa-fixed hawa-left-0" }, props.topBar && /* @__PURE__ */ React75.createElement(
|
8908
|
+
return /* @__PURE__ */ React76.createElement("div", { className: "hawa-fixed hawa-left-0" }, props.topBar && /* @__PURE__ */ React76.createElement(
|
8896
8909
|
"div",
|
8897
8910
|
{
|
8898
8911
|
className: cn(
|
@@ -8901,7 +8914,7 @@ var AppLayout = ({
|
|
8901
8914
|
bordered && "hawa-border-b-[1px]"
|
8902
8915
|
)
|
8903
8916
|
},
|
8904
|
-
size > 600 ? /* @__PURE__ */
|
8917
|
+
size > 600 ? /* @__PURE__ */ React76.createElement(
|
8905
8918
|
"div",
|
8906
8919
|
{
|
8907
8920
|
className: cn(
|
@@ -8923,24 +8936,24 @@ var AppLayout = ({
|
|
8923
8936
|
props.pageTitle
|
8924
8937
|
) : (
|
8925
8938
|
// Mobile Drawer Menu Button
|
8926
|
-
/* @__PURE__ */
|
8939
|
+
/* @__PURE__ */ React76.createElement(
|
8927
8940
|
"div",
|
8928
8941
|
{
|
8929
8942
|
dir: direction,
|
8930
8943
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
8931
8944
|
},
|
8932
|
-
/* @__PURE__ */
|
8945
|
+
/* @__PURE__ */ React76.createElement(
|
8933
8946
|
"div",
|
8934
8947
|
{
|
8935
8948
|
onClick: () => setOpenSideMenu(true),
|
8936
8949
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
8937
8950
|
},
|
8938
|
-
/* @__PURE__ */
|
8951
|
+
/* @__PURE__ */ React76.createElement(MenuIcon, null)
|
8939
8952
|
),
|
8940
|
-
props.pageTitle ? /* @__PURE__ */
|
8953
|
+
props.pageTitle ? /* @__PURE__ */ React76.createElement("div", { className: "hawa-text-sm" }, props.pageTitle) : /* @__PURE__ */ React76.createElement("div", null)
|
8941
8954
|
)
|
8942
8955
|
),
|
8943
|
-
/* @__PURE__ */
|
8956
|
+
/* @__PURE__ */ React76.createElement(
|
8944
8957
|
"div",
|
8945
8958
|
{
|
8946
8959
|
className: cn(
|
@@ -8948,16 +8961,16 @@ var AppLayout = ({
|
|
8948
8961
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
8949
8962
|
)
|
8950
8963
|
},
|
8951
|
-
size > 600 ? /* @__PURE__ */
|
8964
|
+
size > 600 ? /* @__PURE__ */ React76.createElement(
|
8952
8965
|
"div",
|
8953
8966
|
{
|
8954
8967
|
className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
|
8955
8968
|
},
|
8956
|
-
/* @__PURE__ */
|
8969
|
+
/* @__PURE__ */ React76.createElement("div", { className: "hawa-font-bold" }, props.username),
|
8957
8970
|
" ",
|
8958
|
-
/* @__PURE__ */
|
8971
|
+
/* @__PURE__ */ React76.createElement("div", null, props.email)
|
8959
8972
|
) : null,
|
8960
|
-
/* @__PURE__ */
|
8973
|
+
/* @__PURE__ */ React76.createElement(
|
8961
8974
|
DropdownMenu,
|
8962
8975
|
{
|
8963
8976
|
LinkComponent: MenuLinkComponent,
|
@@ -8970,31 +8983,38 @@ var AppLayout = ({
|
|
8970
8983
|
direction: isRTL ? "rtl" : "ltr",
|
8971
8984
|
items: props.profileMenuItems || [],
|
8972
8985
|
onItemSelect: (e) => console.log("selecting item ", e),
|
8973
|
-
trigger: /* @__PURE__ */
|
8974
|
-
"
|
8986
|
+
trigger: /* @__PURE__ */ React76.createElement(
|
8987
|
+
"div",
|
8975
8988
|
{
|
8976
|
-
|
8977
|
-
className: "hawa-
|
8978
|
-
fill: "currentColor",
|
8979
|
-
viewBox: "0 0 20 20"
|
8989
|
+
onClick: onAvatarClick,
|
8990
|
+
className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600"
|
8980
8991
|
},
|
8981
|
-
/* @__PURE__ */
|
8982
|
-
"
|
8992
|
+
props.avatarImage ? /* @__PURE__ */ React76.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ React76.createElement(
|
8993
|
+
"svg",
|
8983
8994
|
{
|
8984
|
-
|
8985
|
-
|
8986
|
-
|
8987
|
-
|
8995
|
+
"aria-label": "Avatar Icon",
|
8996
|
+
className: "hawa-absolute hawa--left-1 hawa-h-10 hawa-w-10 hawa-text-gray-400",
|
8997
|
+
fill: "currentColor",
|
8998
|
+
viewBox: "0 0 20 20"
|
8999
|
+
},
|
9000
|
+
/* @__PURE__ */ React76.createElement(
|
9001
|
+
"path",
|
9002
|
+
{
|
9003
|
+
fillRule: "evenodd",
|
9004
|
+
d: "M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",
|
9005
|
+
clipRule: "evenodd"
|
9006
|
+
}
|
9007
|
+
)
|
8988
9008
|
)
|
8989
|
-
)
|
9009
|
+
)
|
8990
9010
|
}
|
8991
9011
|
)
|
8992
9012
|
)
|
8993
|
-
), /* @__PURE__ */
|
9013
|
+
), /* @__PURE__ */ React76.createElement(
|
8994
9014
|
"div",
|
8995
9015
|
{
|
8996
9016
|
className: cn(
|
8997
|
-
"hawa-fixed hawa-z-0 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all",
|
9017
|
+
"hawa-fixed hawa-z-0 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all hawa-bg-blue-500",
|
8998
9018
|
isRTL ? "hawa-right-0 hawa-top-0 hawa-h-14" : "hawa-left-0 hawa-top-0 hawa-h-14",
|
8999
9019
|
"hawa-h-[calc(100dvh)]",
|
9000
9020
|
"hawa-bg-primary-foreground",
|
@@ -9020,7 +9040,7 @@ var AppLayout = ({
|
|
9020
9040
|
},
|
9021
9041
|
ref
|
9022
9042
|
},
|
9023
|
-
/* @__PURE__ */
|
9043
|
+
/* @__PURE__ */ React76.createElement(
|
9024
9044
|
"div",
|
9025
9045
|
{
|
9026
9046
|
onClick: props.onLogoClick,
|
@@ -9035,7 +9055,7 @@ var AppLayout = ({
|
|
9035
9055
|
}
|
9036
9056
|
},
|
9037
9057
|
openSideMenu && props.header && props.header,
|
9038
|
-
!props.header && /* @__PURE__ */
|
9058
|
+
!props.header && /* @__PURE__ */ React76.createElement(
|
9039
9059
|
"img",
|
9040
9060
|
{
|
9041
9061
|
className: cn(
|
@@ -9046,7 +9066,7 @@ var AppLayout = ({
|
|
9046
9066
|
src: props.logoLink
|
9047
9067
|
}
|
9048
9068
|
),
|
9049
|
-
size > 600 ? /* @__PURE__ */
|
9069
|
+
size > 600 ? /* @__PURE__ */ React76.createElement(
|
9050
9070
|
"img",
|
9051
9071
|
{
|
9052
9072
|
className: cn(
|
@@ -9059,7 +9079,7 @@ var AppLayout = ({
|
|
9059
9079
|
}
|
9060
9080
|
) : null
|
9061
9081
|
),
|
9062
|
-
/* @__PURE__ */
|
9082
|
+
/* @__PURE__ */ React76.createElement(
|
9063
9083
|
"div",
|
9064
9084
|
{
|
9065
9085
|
className: cn(
|
@@ -9070,7 +9090,7 @@ var AppLayout = ({
|
|
9070
9090
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : drawerSizeCondition}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
9071
9091
|
}
|
9072
9092
|
},
|
9073
|
-
/* @__PURE__ */
|
9093
|
+
/* @__PURE__ */ React76.createElement(
|
9074
9094
|
SidebarGroup,
|
9075
9095
|
{
|
9076
9096
|
direction,
|
@@ -9093,7 +9113,7 @@ var AppLayout = ({
|
|
9093
9113
|
}
|
9094
9114
|
)
|
9095
9115
|
),
|
9096
|
-
/* @__PURE__ */
|
9116
|
+
/* @__PURE__ */ React76.createElement(
|
9097
9117
|
"div",
|
9098
9118
|
{
|
9099
9119
|
className: cn(
|
@@ -9104,8 +9124,8 @@ var AppLayout = ({
|
|
9104
9124
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
9105
9125
|
}
|
9106
9126
|
},
|
9107
|
-
DrawerFooterActions && openSideMenu ? /* @__PURE__ */
|
9108
|
-
size > 600 && openSideMenu ? /* @__PURE__ */
|
9127
|
+
DrawerFooterActions && openSideMenu ? /* @__PURE__ */ React76.createElement(React76.Fragment, null, DrawerFooterActions) : null,
|
9128
|
+
size > 600 && openSideMenu ? /* @__PURE__ */ React76.createElement(
|
9109
9129
|
Tooltip,
|
9110
9130
|
{
|
9111
9131
|
side: "left",
|
@@ -9113,7 +9133,7 @@ var AppLayout = ({
|
|
9113
9133
|
content: keepOpen ? ((_a = props.texts) == null ? void 0 : _a.collapseSidebar) || "Collapse Sidebar" : ((_b = props.texts) == null ? void 0 : _b.expandSidebar) || "Expand Sidebar",
|
9114
9134
|
triggerProps: { asChild: true }
|
9115
9135
|
},
|
9116
|
-
/* @__PURE__ */
|
9136
|
+
/* @__PURE__ */ React76.createElement(
|
9117
9137
|
Button,
|
9118
9138
|
{
|
9119
9139
|
variant: "outline",
|
@@ -9126,7 +9146,7 @@ var AppLayout = ({
|
|
9126
9146
|
},
|
9127
9147
|
size: "smallIcon"
|
9128
9148
|
},
|
9129
|
-
/* @__PURE__ */
|
9149
|
+
/* @__PURE__ */ React76.createElement(
|
9130
9150
|
"svg",
|
9131
9151
|
{
|
9132
9152
|
className: cn(
|
@@ -9136,7 +9156,7 @@ var AppLayout = ({
|
|
9136
9156
|
fill: "currentColor",
|
9137
9157
|
viewBox: "0 0 20 20"
|
9138
9158
|
},
|
9139
|
-
/* @__PURE__ */
|
9159
|
+
/* @__PURE__ */ React76.createElement(
|
9140
9160
|
"path",
|
9141
9161
|
{
|
9142
9162
|
fillRule: "evenodd",
|
@@ -9148,7 +9168,7 @@ var AppLayout = ({
|
|
9148
9168
|
)
|
9149
9169
|
) : null
|
9150
9170
|
)
|
9151
|
-
), /* @__PURE__ */
|
9171
|
+
), /* @__PURE__ */ React76.createElement(
|
9152
9172
|
"div",
|
9153
9173
|
{
|
9154
9174
|
className: "hawa-fixed -hawa-z-10 hawa-overflow-y-auto hawa-transition-all",
|
@@ -9167,7 +9187,7 @@ var AppLayout = ({
|
|
9167
9187
|
props.children
|
9168
9188
|
));
|
9169
9189
|
};
|
9170
|
-
var MenuIcon = () => /* @__PURE__ */
|
9190
|
+
var MenuIcon = () => /* @__PURE__ */ React76.createElement(
|
9171
9191
|
"svg",
|
9172
9192
|
{
|
9173
9193
|
"aria-label": "Menu Button",
|
@@ -9179,7 +9199,7 @@ var MenuIcon = () => /* @__PURE__ */ React75.createElement(
|
|
9179
9199
|
height: "1.6em",
|
9180
9200
|
width: "1.6em"
|
9181
9201
|
},
|
9182
|
-
/* @__PURE__ */
|
9202
|
+
/* @__PURE__ */ React76.createElement(
|
9183
9203
|
"path",
|
9184
9204
|
{
|
9185
9205
|
fillRule: "evenodd",
|
@@ -9190,11 +9210,11 @@ var MenuIcon = () => /* @__PURE__ */ React75.createElement(
|
|
9190
9210
|
);
|
9191
9211
|
|
9192
9212
|
// layout/appTopbar/AppTopbar.tsx
|
9193
|
-
import
|
9213
|
+
import React77 from "react";
|
9194
9214
|
var AppTopbar = ({ ...props }) => {
|
9195
9215
|
const isRTL = props.direction === "ltr";
|
9196
9216
|
const size = 1200;
|
9197
|
-
return /* @__PURE__ */
|
9217
|
+
return /* @__PURE__ */ React77.createElement(
|
9198
9218
|
"div",
|
9199
9219
|
{
|
9200
9220
|
className: cn(
|
@@ -9202,24 +9222,24 @@ var AppTopbar = ({ ...props }) => {
|
|
9202
9222
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
9203
9223
|
)
|
9204
9224
|
},
|
9205
|
-
size > 600 ? /* @__PURE__ */
|
9225
|
+
size > 600 ? /* @__PURE__ */ React77.createElement(
|
9206
9226
|
"div",
|
9207
9227
|
null,
|
9208
9228
|
"page title"
|
9209
9229
|
) : (
|
9210
9230
|
// Mobile Drawer Menu Button
|
9211
|
-
/* @__PURE__ */
|
9231
|
+
/* @__PURE__ */ React77.createElement(
|
9212
9232
|
"div",
|
9213
9233
|
{
|
9214
9234
|
dir: props.direction,
|
9215
9235
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
9216
9236
|
},
|
9217
|
-
/* @__PURE__ */
|
9237
|
+
/* @__PURE__ */ React77.createElement(
|
9218
9238
|
"div",
|
9219
9239
|
{
|
9220
9240
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
9221
9241
|
},
|
9222
|
-
/* @__PURE__ */
|
9242
|
+
/* @__PURE__ */ React77.createElement(
|
9223
9243
|
"svg",
|
9224
9244
|
{
|
9225
9245
|
stroke: "currentColor",
|
@@ -9230,7 +9250,7 @@ var AppTopbar = ({ ...props }) => {
|
|
9230
9250
|
height: "1.6em",
|
9231
9251
|
width: "1.6em"
|
9232
9252
|
},
|
9233
|
-
/* @__PURE__ */
|
9253
|
+
/* @__PURE__ */ React77.createElement(
|
9234
9254
|
"path",
|
9235
9255
|
{
|
9236
9256
|
fillRule: "evenodd",
|
@@ -9243,7 +9263,7 @@ var AppTopbar = ({ ...props }) => {
|
|
9243
9263
|
"Mobile title"
|
9244
9264
|
)
|
9245
9265
|
),
|
9246
|
-
/* @__PURE__ */
|
9266
|
+
/* @__PURE__ */ React77.createElement(
|
9247
9267
|
"div",
|
9248
9268
|
{
|
9249
9269
|
className: cn(
|
@@ -9251,16 +9271,16 @@ var AppTopbar = ({ ...props }) => {
|
|
9251
9271
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
9252
9272
|
)
|
9253
9273
|
},
|
9254
|
-
size > 600 ? /* @__PURE__ */
|
9274
|
+
size > 600 ? /* @__PURE__ */ React77.createElement(
|
9255
9275
|
"div",
|
9256
9276
|
{
|
9257
9277
|
className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
|
9258
9278
|
},
|
9259
|
-
/* @__PURE__ */
|
9279
|
+
/* @__PURE__ */ React77.createElement("div", { className: "hawa-font-bold" }, props.username),
|
9260
9280
|
" ",
|
9261
|
-
/* @__PURE__ */
|
9281
|
+
/* @__PURE__ */ React77.createElement("div", null, props.email)
|
9262
9282
|
) : null,
|
9263
|
-
/* @__PURE__ */
|
9283
|
+
/* @__PURE__ */ React77.createElement(
|
9264
9284
|
DropdownMenu,
|
9265
9285
|
{
|
9266
9286
|
triggerClassname: "hawa-mx-2",
|
@@ -9271,7 +9291,7 @@ var AppTopbar = ({ ...props }) => {
|
|
9271
9291
|
direction: isRTL ? "rtl" : "ltr",
|
9272
9292
|
items: props.profileMenuItems || [],
|
9273
9293
|
onItemSelect: (e) => console.log("selecting item ", e),
|
9274
|
-
trigger: /* @__PURE__ */
|
9294
|
+
trigger: /* @__PURE__ */ React77.createElement("div", { className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600" }, props.avatarImage ? /* @__PURE__ */ React77.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ React77.createElement(
|
9275
9295
|
"svg",
|
9276
9296
|
{
|
9277
9297
|
"aria-label": "Avatar Icon",
|
@@ -9279,7 +9299,7 @@ var AppTopbar = ({ ...props }) => {
|
|
9279
9299
|
fill: "currentColor",
|
9280
9300
|
viewBox: "0 0 20 20"
|
9281
9301
|
},
|
9282
|
-
/* @__PURE__ */
|
9302
|
+
/* @__PURE__ */ React77.createElement(
|
9283
9303
|
"path",
|
9284
9304
|
{
|
9285
9305
|
fillRule: "evenodd",
|
@@ -9295,14 +9315,14 @@ var AppTopbar = ({ ...props }) => {
|
|
9295
9315
|
};
|
9296
9316
|
|
9297
9317
|
// layout/appMenubar/AppMenubar.tsx
|
9298
|
-
import * as
|
9318
|
+
import * as React78 from "react";
|
9299
9319
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
9300
9320
|
var MenubarMenu = MenubarPrimitive.Menu;
|
9301
9321
|
var MenubarGroup = MenubarPrimitive.Group;
|
9302
9322
|
var MenubarPortal = MenubarPrimitive.Portal;
|
9303
9323
|
var MenubarSub = MenubarPrimitive.Sub;
|
9304
9324
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
9305
|
-
var Menubar =
|
9325
|
+
var Menubar = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9306
9326
|
MenubarPrimitive.Root,
|
9307
9327
|
{
|
9308
9328
|
ref,
|
@@ -9314,7 +9334,7 @@ var Menubar = React77.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
9314
9334
|
}
|
9315
9335
|
));
|
9316
9336
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
9317
|
-
var MenubarTrigger =
|
9337
|
+
var MenubarTrigger = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9318
9338
|
MenubarPrimitive.Trigger,
|
9319
9339
|
{
|
9320
9340
|
ref,
|
@@ -9326,7 +9346,7 @@ var MenubarTrigger = React77.forwardRef(({ className, ...props }, ref) => /* @__
|
|
9326
9346
|
}
|
9327
9347
|
));
|
9328
9348
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
9329
|
-
var MenubarSubTrigger =
|
9349
|
+
var MenubarSubTrigger = React78.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9330
9350
|
MenubarPrimitive.SubTrigger,
|
9331
9351
|
{
|
9332
9352
|
ref,
|
@@ -9338,7 +9358,7 @@ var MenubarSubTrigger = React77.forwardRef(({ className, inset, children, ...pro
|
|
9338
9358
|
...props
|
9339
9359
|
},
|
9340
9360
|
children,
|
9341
|
-
/* @__PURE__ */
|
9361
|
+
/* @__PURE__ */ React78.createElement(
|
9342
9362
|
"svg",
|
9343
9363
|
{
|
9344
9364
|
"aria-label": "Chevron Right Icon",
|
@@ -9353,11 +9373,11 @@ var MenubarSubTrigger = React77.forwardRef(({ className, inset, children, ...pro
|
|
9353
9373
|
strokeLinejoin: "round",
|
9354
9374
|
className: "hawa-icon hawa-ml-auto"
|
9355
9375
|
},
|
9356
|
-
/* @__PURE__ */
|
9376
|
+
/* @__PURE__ */ React78.createElement("path", { d: "m9 18 6-6-6-6" })
|
9357
9377
|
)
|
9358
9378
|
));
|
9359
9379
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
9360
|
-
var MenubarSubContent =
|
9380
|
+
var MenubarSubContent = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9361
9381
|
MenubarPrimitive.SubContent,
|
9362
9382
|
{
|
9363
9383
|
ref,
|
@@ -9369,8 +9389,8 @@ var MenubarSubContent = React77.forwardRef(({ className, ...props }, ref) => /*
|
|
9369
9389
|
}
|
9370
9390
|
));
|
9371
9391
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
9372
|
-
var MenubarContent =
|
9373
|
-
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */
|
9392
|
+
var MenubarContent = React78.forwardRef(
|
9393
|
+
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ React78.createElement(MenubarPrimitive.Portal, null, /* @__PURE__ */ React78.createElement(
|
9374
9394
|
MenubarPrimitive.Content,
|
9375
9395
|
{
|
9376
9396
|
ref,
|
@@ -9386,7 +9406,7 @@ var MenubarContent = React77.forwardRef(
|
|
9386
9406
|
))
|
9387
9407
|
);
|
9388
9408
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
9389
|
-
var MenubarItem =
|
9409
|
+
var MenubarItem = React78.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9390
9410
|
MenubarPrimitive.Item,
|
9391
9411
|
{
|
9392
9412
|
ref,
|
@@ -9399,7 +9419,7 @@ var MenubarItem = React77.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
9399
9419
|
}
|
9400
9420
|
));
|
9401
9421
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
9402
|
-
var MenubarCheckboxItem =
|
9422
|
+
var MenubarCheckboxItem = React78.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9403
9423
|
MenubarPrimitive.CheckboxItem,
|
9404
9424
|
{
|
9405
9425
|
ref,
|
@@ -9410,7 +9430,7 @@ var MenubarCheckboxItem = React77.forwardRef(({ className, children, checked, ..
|
|
9410
9430
|
checked,
|
9411
9431
|
...props
|
9412
9432
|
},
|
9413
|
-
/* @__PURE__ */
|
9433
|
+
/* @__PURE__ */ React78.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React78.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React78.createElement(
|
9414
9434
|
"svg",
|
9415
9435
|
{
|
9416
9436
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9424,12 +9444,12 @@ var MenubarCheckboxItem = React77.forwardRef(({ className, children, checked, ..
|
|
9424
9444
|
strokeLinejoin: "round",
|
9425
9445
|
className: "hawa-icon"
|
9426
9446
|
},
|
9427
|
-
/* @__PURE__ */
|
9447
|
+
/* @__PURE__ */ React78.createElement("path", { d: "M20 6 9 17l-5-5" })
|
9428
9448
|
))),
|
9429
9449
|
children
|
9430
9450
|
));
|
9431
9451
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
9432
|
-
var MenubarRadioItem =
|
9452
|
+
var MenubarRadioItem = React78.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9433
9453
|
MenubarPrimitive.RadioItem,
|
9434
9454
|
{
|
9435
9455
|
ref,
|
@@ -9439,7 +9459,7 @@ var MenubarRadioItem = React77.forwardRef(({ className, children, ...props }, re
|
|
9439
9459
|
),
|
9440
9460
|
...props
|
9441
9461
|
},
|
9442
|
-
/* @__PURE__ */
|
9462
|
+
/* @__PURE__ */ React78.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React78.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React78.createElement(
|
9443
9463
|
"svg",
|
9444
9464
|
{
|
9445
9465
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9453,12 +9473,12 @@ var MenubarRadioItem = React77.forwardRef(({ className, children, ...props }, re
|
|
9453
9473
|
strokeLinejoin: "round",
|
9454
9474
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
9455
9475
|
},
|
9456
|
-
/* @__PURE__ */
|
9476
|
+
/* @__PURE__ */ React78.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
9457
9477
|
))),
|
9458
9478
|
children
|
9459
9479
|
));
|
9460
9480
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
9461
|
-
var MenubarLabel =
|
9481
|
+
var MenubarLabel = React78.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9462
9482
|
MenubarPrimitive.Label,
|
9463
9483
|
{
|
9464
9484
|
ref,
|
@@ -9471,7 +9491,7 @@ var MenubarLabel = React77.forwardRef(({ className, inset, ...props }, ref) => /
|
|
9471
9491
|
}
|
9472
9492
|
));
|
9473
9493
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
9474
|
-
var MenubarSeparator =
|
9494
|
+
var MenubarSeparator = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9475
9495
|
MenubarPrimitive.Separator,
|
9476
9496
|
{
|
9477
9497
|
ref,
|
@@ -9484,7 +9504,7 @@ var MenubarShortcut = ({
|
|
9484
9504
|
className,
|
9485
9505
|
...props
|
9486
9506
|
}) => {
|
9487
|
-
return /* @__PURE__ */
|
9507
|
+
return /* @__PURE__ */ React78.createElement(
|
9488
9508
|
"span",
|
9489
9509
|
{
|
9490
9510
|
className: cn(
|
@@ -9498,10 +9518,10 @@ var MenubarShortcut = ({
|
|
9498
9518
|
MenubarShortcut.displayname = "MenubarShortcut";
|
9499
9519
|
|
9500
9520
|
// layout/appTabs/AppTabs.tsx
|
9501
|
-
import
|
9521
|
+
import React79, { useState as useState37 } from "react";
|
9502
9522
|
var AppTabs = ({ tabs, className }) => {
|
9503
9523
|
const [selectedIndex, setSelectedIndex] = useState37(0);
|
9504
|
-
return /* @__PURE__ */
|
9524
|
+
return /* @__PURE__ */ React79.createElement(
|
9505
9525
|
"div",
|
9506
9526
|
{
|
9507
9527
|
className: cn(
|
@@ -9509,9 +9529,9 @@ var AppTabs = ({ tabs, className }) => {
|
|
9509
9529
|
className
|
9510
9530
|
)
|
9511
9531
|
},
|
9512
|
-
/* @__PURE__ */
|
9532
|
+
/* @__PURE__ */ React79.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center " }, tabs.map((tab, index) => {
|
9513
9533
|
const selected = index === selectedIndex;
|
9514
|
-
return /* @__PURE__ */
|
9534
|
+
return /* @__PURE__ */ React79.createElement(
|
9515
9535
|
"a",
|
9516
9536
|
{
|
9517
9537
|
href: tab.path,
|
@@ -9542,16 +9562,16 @@ var AppTabs = ({ tabs, className }) => {
|
|
9542
9562
|
};
|
9543
9563
|
|
9544
9564
|
// layout/docsLayout/DocsLayout.tsx
|
9545
|
-
import
|
9565
|
+
import React81, { useEffect as useEffect29, useRef as useRef19, useState as useState38 } from "react";
|
9546
9566
|
|
9547
9567
|
// layout/docsSidebar/DocsSidebar.tsx
|
9548
|
-
import
|
9568
|
+
import React80 from "react";
|
9549
9569
|
var DocsSidebar = ({
|
9550
9570
|
currentPage: propCurrentPage,
|
9551
9571
|
pages,
|
9552
9572
|
direction
|
9553
9573
|
}) => {
|
9554
|
-
const [activePage, setActivePage] =
|
9574
|
+
const [activePage, setActivePage] = React80.useState(pages[0]);
|
9555
9575
|
const handlePageClick = (page, event) => {
|
9556
9576
|
event.preventDefault();
|
9557
9577
|
setTimeout(() => {
|
@@ -9573,7 +9593,7 @@ var DocsSidebar = ({
|
|
9573
9593
|
}
|
9574
9594
|
return pages[0];
|
9575
9595
|
};
|
9576
|
-
|
9596
|
+
React80.useEffect(() => {
|
9577
9597
|
const handleScroll = () => {
|
9578
9598
|
setActivePage(getCurrentSection());
|
9579
9599
|
};
|
@@ -9586,13 +9606,13 @@ var DocsSidebar = ({
|
|
9586
9606
|
rtl: "hawa-border-r-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200",
|
9587
9607
|
ltr: "hawa-border-l-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200"
|
9588
9608
|
};
|
9589
|
-
return /* @__PURE__ */
|
9609
|
+
return /* @__PURE__ */ React80.createElement(
|
9590
9610
|
"div",
|
9591
9611
|
{
|
9592
9612
|
className: "hawa-flex hawa-flex-col hawa-overflow-x-clip",
|
9593
9613
|
dir: direction
|
9594
9614
|
},
|
9595
|
-
pages.map((page, index) => /* @__PURE__ */
|
9615
|
+
pages.map((page, index) => /* @__PURE__ */ React80.createElement(
|
9596
9616
|
"div",
|
9597
9617
|
{
|
9598
9618
|
key: index,
|
@@ -9661,7 +9681,7 @@ var DocsLayout = ({
|
|
9661
9681
|
window.removeEventListener("resize", handleResize);
|
9662
9682
|
};
|
9663
9683
|
}, [keepOpen]);
|
9664
|
-
const observerRef =
|
9684
|
+
const observerRef = React81.useRef(null);
|
9665
9685
|
const handleIntersection = (entries) => {
|
9666
9686
|
const entry = entries.find((entry2) => entry2.isIntersecting);
|
9667
9687
|
if (entry) {
|
@@ -9673,7 +9693,7 @@ var DocsLayout = ({
|
|
9673
9693
|
threshold: 0.5
|
9674
9694
|
// Adjust threshold as needed to determine when a section is in view
|
9675
9695
|
});
|
9676
|
-
|
9696
|
+
React81.Children.forEach(props.children, (child) => {
|
9677
9697
|
if (child && child.props.id) {
|
9678
9698
|
const element = document.getElementById(child.props.id);
|
9679
9699
|
if (element && observerRef.current) {
|
@@ -9688,7 +9708,7 @@ var DocsLayout = ({
|
|
9688
9708
|
};
|
9689
9709
|
}, [props.children]);
|
9690
9710
|
let drawerSizeCondition = drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize];
|
9691
|
-
return /* @__PURE__ */
|
9711
|
+
return /* @__PURE__ */ React81.createElement("div", { className: "hawa-fixed" }, /* @__PURE__ */ React81.createElement(
|
9692
9712
|
"div",
|
9693
9713
|
{
|
9694
9714
|
className: cn(
|
@@ -9696,7 +9716,7 @@ var DocsLayout = ({
|
|
9696
9716
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
9697
9717
|
)
|
9698
9718
|
},
|
9699
|
-
size > 600 ? /* @__PURE__ */
|
9719
|
+
size > 600 ? /* @__PURE__ */ React81.createElement("div", { onClick: props.onLogoClick, dir: direction }, /* @__PURE__ */ React81.createElement(
|
9700
9720
|
"img",
|
9701
9721
|
{
|
9702
9722
|
className: cn(
|
@@ -9707,18 +9727,18 @@ var DocsLayout = ({
|
|
9707
9727
|
}
|
9708
9728
|
)) : (
|
9709
9729
|
// Mobile Drawer Menu Button
|
9710
|
-
/* @__PURE__ */
|
9730
|
+
/* @__PURE__ */ React81.createElement(
|
9711
9731
|
"div",
|
9712
9732
|
{
|
9713
9733
|
dir: direction,
|
9714
9734
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
9715
9735
|
},
|
9716
|
-
/* @__PURE__ */
|
9736
|
+
/* @__PURE__ */ React81.createElement(Sheet, null, /* @__PURE__ */ React81.createElement(SheetTrigger, null, " ", /* @__PURE__ */ React81.createElement(
|
9717
9737
|
"div",
|
9718
9738
|
{
|
9719
9739
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
9720
9740
|
},
|
9721
|
-
/* @__PURE__ */
|
9741
|
+
/* @__PURE__ */ React81.createElement(
|
9722
9742
|
"svg",
|
9723
9743
|
{
|
9724
9744
|
"aria-label": "Menu Icon",
|
@@ -9730,7 +9750,7 @@ var DocsLayout = ({
|
|
9730
9750
|
height: "1.6em",
|
9731
9751
|
width: "1.6em"
|
9732
9752
|
},
|
9733
|
-
/* @__PURE__ */
|
9753
|
+
/* @__PURE__ */ React81.createElement(
|
9734
9754
|
"path",
|
9735
9755
|
{
|
9736
9756
|
fillRule: "evenodd",
|
@@ -9739,17 +9759,17 @@ var DocsLayout = ({
|
|
9739
9759
|
}
|
9740
9760
|
)
|
9741
9761
|
)
|
9742
|
-
)), /* @__PURE__ */
|
9762
|
+
)), /* @__PURE__ */ React81.createElement(
|
9743
9763
|
SheetContent,
|
9744
9764
|
{
|
9745
9765
|
side: isRTL ? "right" : "left",
|
9746
9766
|
className: "hawa-pt-10"
|
9747
9767
|
},
|
9748
|
-
/* @__PURE__ */
|
9768
|
+
/* @__PURE__ */ React81.createElement(DocsSidebar, { direction, pages: pages || [] })
|
9749
9769
|
))
|
9750
9770
|
)
|
9751
9771
|
),
|
9752
|
-
/* @__PURE__ */
|
9772
|
+
/* @__PURE__ */ React81.createElement(
|
9753
9773
|
"div",
|
9754
9774
|
{
|
9755
9775
|
className: cn(
|
@@ -9757,9 +9777,9 @@ var DocsLayout = ({
|
|
9757
9777
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
9758
9778
|
)
|
9759
9779
|
},
|
9760
|
-
/* @__PURE__ */
|
9780
|
+
/* @__PURE__ */ React81.createElement(Button, { variant: "ghost", size: "smallIcon" }, /* @__PURE__ */ React81.createElement(Logos.github, { className: "hawa-icon" }))
|
9761
9781
|
)
|
9762
|
-
), /* @__PURE__ */
|
9782
|
+
), /* @__PURE__ */ React81.createElement(
|
9763
9783
|
"div",
|
9764
9784
|
{
|
9765
9785
|
className: cn(
|
@@ -9782,7 +9802,7 @@ var DocsLayout = ({
|
|
9782
9802
|
},
|
9783
9803
|
ref
|
9784
9804
|
},
|
9785
|
-
/* @__PURE__ */
|
9805
|
+
/* @__PURE__ */ React81.createElement(
|
9786
9806
|
DocsSidebar,
|
9787
9807
|
{
|
9788
9808
|
direction,
|
@@ -9790,7 +9810,7 @@ var DocsLayout = ({
|
|
9790
9810
|
currentPage
|
9791
9811
|
}
|
9792
9812
|
)
|
9793
|
-
), /* @__PURE__ */
|
9813
|
+
), /* @__PURE__ */ React81.createElement(
|
9794
9814
|
"div",
|
9795
9815
|
{
|
9796
9816
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all ",
|
@@ -9812,10 +9832,10 @@ var DocsLayout = ({
|
|
9812
9832
|
};
|
9813
9833
|
|
9814
9834
|
// blocks/auth/AuthButtons.tsx
|
9815
|
-
import
|
9835
|
+
import React82 from "react";
|
9816
9836
|
var AuthButtons = (props) => {
|
9817
9837
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
9818
|
-
return /* @__PURE__ */
|
9838
|
+
return /* @__PURE__ */ React82.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, props.viaMetamask && /* @__PURE__ */ React82.createElement(
|
9819
9839
|
Button,
|
9820
9840
|
{
|
9821
9841
|
disabled: props.isMetamaskLoading,
|
@@ -9823,9 +9843,9 @@ var AuthButtons = (props) => {
|
|
9823
9843
|
variant: "outline",
|
9824
9844
|
onClick: props.handleMetamask
|
9825
9845
|
},
|
9826
|
-
props.isMetamaskLoading ? /* @__PURE__ */
|
9846
|
+
props.isMetamaskLoading ? /* @__PURE__ */ React82.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React82.createElement(Logos.metamask, { className: "hawa-h-6" }),
|
9827
9847
|
(_b = (_a = props.texts) == null ? void 0 : _a.continueWithMetamask) != null ? _b : "Connect Metamask"
|
9828
|
-
), props.viaNafath && /* @__PURE__ */
|
9848
|
+
), props.viaNafath && /* @__PURE__ */ React82.createElement(
|
9829
9849
|
Button,
|
9830
9850
|
{
|
9831
9851
|
disabled: props.isNafathLoading,
|
@@ -9833,9 +9853,9 @@ var AuthButtons = (props) => {
|
|
9833
9853
|
variant: "outline",
|
9834
9854
|
onClick: props.handleNafath
|
9835
9855
|
},
|
9836
|
-
props.isNafathLoading ? /* @__PURE__ */
|
9856
|
+
props.isNafathLoading ? /* @__PURE__ */ React82.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React82.createElement(Logos.nafath, { className: "hawa-h-4" }),
|
9837
9857
|
(_d = (_c = props.texts) == null ? void 0 : _c.continueWithNafath) != null ? _d : "Continue With Nafath"
|
9838
|
-
), props.viaGoogle && /* @__PURE__ */
|
9858
|
+
), props.viaGoogle && /* @__PURE__ */ React82.createElement(
|
9839
9859
|
Button,
|
9840
9860
|
{
|
9841
9861
|
disabled: props.isGoogleLoading,
|
@@ -9843,9 +9863,9 @@ var AuthButtons = (props) => {
|
|
9843
9863
|
variant: "outline",
|
9844
9864
|
onClick: props.handleGoogle
|
9845
9865
|
},
|
9846
|
-
props.isGoogleLoading ? /* @__PURE__ */
|
9866
|
+
props.isGoogleLoading ? /* @__PURE__ */ React82.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React82.createElement(Logos.google, { className: "hawa-icon" }),
|
9847
9867
|
(_f = (_e = props.texts) == null ? void 0 : _e.continueWithGoogle) != null ? _f : "Continue With Google"
|
9848
|
-
), props.viaGithub && /* @__PURE__ */
|
9868
|
+
), props.viaGithub && /* @__PURE__ */ React82.createElement(
|
9849
9869
|
Button,
|
9850
9870
|
{
|
9851
9871
|
disabled: props.isGithubLoading,
|
@@ -9853,9 +9873,9 @@ var AuthButtons = (props) => {
|
|
9853
9873
|
variant: "outline",
|
9854
9874
|
onClick: props.handleGithub
|
9855
9875
|
},
|
9856
|
-
props.isGithubLoading ? /* @__PURE__ */
|
9876
|
+
props.isGithubLoading ? /* @__PURE__ */ React82.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React82.createElement(Logos.github, { className: "hawa-icon" }),
|
9857
9877
|
(_h = (_g = props.texts) == null ? void 0 : _g.continueWithGithub) != null ? _h : "Continue With Github"
|
9858
|
-
), props.viaTwitter && /* @__PURE__ */
|
9878
|
+
), props.viaTwitter && /* @__PURE__ */ React82.createElement(
|
9859
9879
|
Button,
|
9860
9880
|
{
|
9861
9881
|
disabled: props.isTwitterLoading,
|
@@ -9863,9 +9883,9 @@ var AuthButtons = (props) => {
|
|
9863
9883
|
variant: "outline",
|
9864
9884
|
onClick: props.handleTwitter
|
9865
9885
|
},
|
9866
|
-
props.isTwitterLoading ? /* @__PURE__ */
|
9886
|
+
props.isTwitterLoading ? /* @__PURE__ */ React82.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React82.createElement(Logos.twitter, { className: "hawa-icon" }),
|
9867
9887
|
(_j = (_i = props.texts) == null ? void 0 : _i.continueWithTwitter) != null ? _j : "Continue With Twitter"
|
9868
|
-
), props.viaApple && /* @__PURE__ */
|
9888
|
+
), props.viaApple && /* @__PURE__ */ React82.createElement(
|
9869
9889
|
Button,
|
9870
9890
|
{
|
9871
9891
|
disabled: props.isAppleLoading,
|
@@ -9873,9 +9893,9 @@ var AuthButtons = (props) => {
|
|
9873
9893
|
variant: "outline",
|
9874
9894
|
onClick: props.handleApple
|
9875
9895
|
},
|
9876
|
-
props.isAppleLoading ? /* @__PURE__ */
|
9896
|
+
props.isAppleLoading ? /* @__PURE__ */ React82.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React82.createElement(Logos.apple, { className: "hawa-icon" }),
|
9877
9897
|
(_l = (_k = props.texts) == null ? void 0 : _k.continueWithApple) != null ? _l : "Continue With Apple"
|
9878
|
-
), props.viaMicrosoft && /* @__PURE__ */
|
9898
|
+
), props.viaMicrosoft && /* @__PURE__ */ React82.createElement(
|
9879
9899
|
Button,
|
9880
9900
|
{
|
9881
9901
|
disabled: props.isMicrosoftLoading,
|
@@ -9883,9 +9903,9 @@ var AuthButtons = (props) => {
|
|
9883
9903
|
variant: "outline",
|
9884
9904
|
onClick: props.handleMicrosoft
|
9885
9905
|
},
|
9886
|
-
props.isMicrosoftLoading ? /* @__PURE__ */
|
9906
|
+
props.isMicrosoftLoading ? /* @__PURE__ */ React82.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React82.createElement(Logos.microsoft, { className: "hawa-icon" }),
|
9887
9907
|
(_n = (_m = props.texts) == null ? void 0 : _m.continueWithMicrosoft) != null ? _n : "Continue With Microsoft"
|
9888
|
-
), props.viaEmail && /* @__PURE__ */
|
9908
|
+
), props.viaEmail && /* @__PURE__ */ React82.createElement(
|
9889
9909
|
Button,
|
9890
9910
|
{
|
9891
9911
|
disabled: props.isEmailLoading,
|
@@ -9893,9 +9913,9 @@ var AuthButtons = (props) => {
|
|
9893
9913
|
variant: "outline",
|
9894
9914
|
onClick: props.handleEmail
|
9895
9915
|
},
|
9896
|
-
props.isEmailLoading ? /* @__PURE__ */
|
9916
|
+
props.isEmailLoading ? /* @__PURE__ */ React82.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React82.createElement(Logos.mail, { className: "hawa-icon" }),
|
9897
9917
|
(_p = (_o = props.texts) == null ? void 0 : _o.continueWithEmail) != null ? _p : "Continue With Email"
|
9898
|
-
), props.viaPhone && /* @__PURE__ */
|
9918
|
+
), props.viaPhone && /* @__PURE__ */ React82.createElement(
|
9899
9919
|
Button,
|
9900
9920
|
{
|
9901
9921
|
disabled: props.isPhoneLoading,
|
@@ -9903,13 +9923,13 @@ var AuthButtons = (props) => {
|
|
9903
9923
|
variant: "outline",
|
9904
9924
|
onClick: props.handlePhone
|
9905
9925
|
},
|
9906
|
-
props.isPhoneLoading ? /* @__PURE__ */
|
9926
|
+
props.isPhoneLoading ? /* @__PURE__ */ React82.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React82.createElement(Logos.phone, { className: "hawa-icon" }),
|
9907
9927
|
(_r = (_q = props.texts) == null ? void 0 : _q.continueWithPhone) != null ? _r : "Continue With Phone"
|
9908
9928
|
));
|
9909
9929
|
};
|
9910
9930
|
|
9911
9931
|
// blocks/auth/LoginForm.tsx
|
9912
|
-
import
|
9932
|
+
import React83 from "react";
|
9913
9933
|
import { useState as useState39 } from "react";
|
9914
9934
|
import { Controller, useForm } from "react-hook-form";
|
9915
9935
|
import { zodResolver } from "@hookform/resolvers/zod";
|
@@ -9984,14 +10004,14 @@ var LoginForm = ({
|
|
9984
10004
|
const renderFields = () => {
|
9985
10005
|
switch (loginType) {
|
9986
10006
|
case "email":
|
9987
|
-
return /* @__PURE__ */
|
10007
|
+
return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(
|
9988
10008
|
Controller,
|
9989
10009
|
{
|
9990
10010
|
control,
|
9991
10011
|
name: "email",
|
9992
10012
|
render: ({ field }) => {
|
9993
10013
|
var _a2, _b2, _c2;
|
9994
|
-
return /* @__PURE__ */
|
10014
|
+
return /* @__PURE__ */ React83.createElement(
|
9995
10015
|
Input,
|
9996
10016
|
{
|
9997
10017
|
inputProps: {
|
@@ -10008,27 +10028,27 @@ var LoginForm = ({
|
|
10008
10028
|
);
|
10009
10029
|
}
|
10010
10030
|
}
|
10011
|
-
), /* @__PURE__ */
|
10031
|
+
), /* @__PURE__ */ React83.createElement("div", null, /* @__PURE__ */ React83.createElement(
|
10012
10032
|
Controller,
|
10013
10033
|
{
|
10014
10034
|
control,
|
10015
10035
|
name: "password",
|
10016
10036
|
render: ({ field }) => {
|
10017
10037
|
var _a2, _b2, _c2;
|
10018
|
-
return /* @__PURE__ */
|
10038
|
+
return /* @__PURE__ */ React83.createElement(
|
10019
10039
|
Input,
|
10020
10040
|
{
|
10021
10041
|
width: "full",
|
10022
10042
|
autoComplete: "current-password",
|
10023
10043
|
type: passwordVisible ? "text" : "password",
|
10024
10044
|
label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
|
10025
|
-
endIcon: /* @__PURE__ */
|
10045
|
+
endIcon: /* @__PURE__ */ React83.createElement(
|
10026
10046
|
"div",
|
10027
10047
|
{
|
10028
10048
|
className: "hawa-cursor-pointer",
|
10029
10049
|
onClick: () => setPasswordVisible(!passwordVisible)
|
10030
10050
|
},
|
10031
|
-
passwordVisible ? /* @__PURE__ */
|
10051
|
+
passwordVisible ? /* @__PURE__ */ React83.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React83.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" })
|
10032
10052
|
),
|
10033
10053
|
placeholder: ((_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder) || "Enter your password",
|
10034
10054
|
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
@@ -10037,7 +10057,7 @@ var LoginForm = ({
|
|
10037
10057
|
);
|
10038
10058
|
}
|
10039
10059
|
}
|
10040
|
-
), props.withResetPassword && /* @__PURE__ */
|
10060
|
+
), props.withResetPassword && /* @__PURE__ */ React83.createElement(
|
10041
10061
|
"div",
|
10042
10062
|
{
|
10043
10063
|
onClick: props.onForgotPassword,
|
@@ -10046,14 +10066,14 @@ var LoginForm = ({
|
|
10046
10066
|
(texts == null ? void 0 : texts.forgotPassword) || "Forgot Password?"
|
10047
10067
|
)));
|
10048
10068
|
case "username":
|
10049
|
-
return /* @__PURE__ */
|
10069
|
+
return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(
|
10050
10070
|
Controller,
|
10051
10071
|
{
|
10052
10072
|
control,
|
10053
10073
|
name: "username",
|
10054
10074
|
render: ({ field }) => {
|
10055
10075
|
var _a2, _b2, _c2;
|
10056
|
-
return /* @__PURE__ */
|
10076
|
+
return /* @__PURE__ */ React83.createElement(
|
10057
10077
|
Input,
|
10058
10078
|
{
|
10059
10079
|
width: "full",
|
@@ -10066,27 +10086,27 @@ var LoginForm = ({
|
|
10066
10086
|
);
|
10067
10087
|
}
|
10068
10088
|
}
|
10069
|
-
), /* @__PURE__ */
|
10089
|
+
), /* @__PURE__ */ React83.createElement("div", null, /* @__PURE__ */ React83.createElement(
|
10070
10090
|
Controller,
|
10071
10091
|
{
|
10072
10092
|
control,
|
10073
10093
|
name: "password",
|
10074
10094
|
render: ({ field }) => {
|
10075
10095
|
var _a2, _b2, _c2;
|
10076
|
-
return /* @__PURE__ */
|
10096
|
+
return /* @__PURE__ */ React83.createElement(
|
10077
10097
|
Input,
|
10078
10098
|
{
|
10079
10099
|
width: "full",
|
10080
10100
|
autoComplete: "current-password",
|
10081
10101
|
type: passwordVisible ? "text" : "password",
|
10082
10102
|
label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
|
10083
|
-
endIcon: /* @__PURE__ */
|
10103
|
+
endIcon: /* @__PURE__ */ React83.createElement(
|
10084
10104
|
"div",
|
10085
10105
|
{
|
10086
10106
|
className: "hawa-cursor-pointer",
|
10087
10107
|
onClick: () => setPasswordVisible(!passwordVisible)
|
10088
10108
|
},
|
10089
|
-
passwordVisible ? /* @__PURE__ */
|
10109
|
+
passwordVisible ? /* @__PURE__ */ React83.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React83.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" })
|
10090
10110
|
),
|
10091
10111
|
placeholder: ((_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder) || "Enter your password",
|
10092
10112
|
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
@@ -10095,7 +10115,7 @@ var LoginForm = ({
|
|
10095
10115
|
);
|
10096
10116
|
}
|
10097
10117
|
}
|
10098
|
-
), props.withResetPassword && /* @__PURE__ */
|
10118
|
+
), props.withResetPassword && /* @__PURE__ */ React83.createElement(
|
10099
10119
|
"div",
|
10100
10120
|
{
|
10101
10121
|
onClick: props.onForgotPassword,
|
@@ -10104,14 +10124,14 @@ var LoginForm = ({
|
|
10104
10124
|
(texts == null ? void 0 : texts.forgotPassword) || "Forgot Password?"
|
10105
10125
|
)));
|
10106
10126
|
case "phone":
|
10107
|
-
return /* @__PURE__ */
|
10127
|
+
return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(
|
10108
10128
|
Controller,
|
10109
10129
|
{
|
10110
10130
|
control,
|
10111
10131
|
name: "phone",
|
10112
10132
|
render: ({ field }) => {
|
10113
10133
|
var _a2, _b2;
|
10114
|
-
return /* @__PURE__ */
|
10134
|
+
return /* @__PURE__ */ React83.createElement(
|
10115
10135
|
PhoneInput,
|
10116
10136
|
{
|
10117
10137
|
label: ((_a2 = texts == null ? void 0 : texts.phone) == null ? void 0 : _a2.label) || "Phone Number",
|
@@ -10124,14 +10144,14 @@ var LoginForm = ({
|
|
10124
10144
|
}
|
10125
10145
|
));
|
10126
10146
|
case "link":
|
10127
|
-
return /* @__PURE__ */
|
10147
|
+
return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(
|
10128
10148
|
Controller,
|
10129
10149
|
{
|
10130
10150
|
control,
|
10131
10151
|
name: "email",
|
10132
10152
|
render: ({ field }) => {
|
10133
10153
|
var _a2, _b2, _c2;
|
10134
|
-
return /* @__PURE__ */
|
10154
|
+
return /* @__PURE__ */ React83.createElement(
|
10135
10155
|
Input,
|
10136
10156
|
{
|
10137
10157
|
width: "full",
|
@@ -10149,7 +10169,7 @@ var LoginForm = ({
|
|
10149
10169
|
break;
|
10150
10170
|
}
|
10151
10171
|
};
|
10152
|
-
return /* @__PURE__ */
|
10172
|
+
return /* @__PURE__ */ React83.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React83.createElement(
|
10153
10173
|
Card,
|
10154
10174
|
{
|
10155
10175
|
dir: props.direction,
|
@@ -10157,7 +10177,7 @@ var LoginForm = ({
|
|
10157
10177
|
props.cardless && "!hawa-border-none !hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
|
10158
10178
|
)
|
10159
10179
|
},
|
10160
|
-
/* @__PURE__ */
|
10180
|
+
/* @__PURE__ */ React83.createElement(CardContent, { headless: true, noPadding: props.cardless }, props.showError && /* @__PURE__ */ React83.createElement(
|
10161
10181
|
Alert,
|
10162
10182
|
{
|
10163
10183
|
direction: props.direction,
|
@@ -10165,7 +10185,7 @@ var LoginForm = ({
|
|
10165
10185
|
text: props.errorText,
|
10166
10186
|
severity: "error"
|
10167
10187
|
}
|
10168
|
-
), /* @__PURE__ */
|
10188
|
+
), /* @__PURE__ */ React83.createElement(
|
10169
10189
|
"form",
|
10170
10190
|
{
|
10171
10191
|
noValidate: true,
|
@@ -10179,7 +10199,7 @@ var LoginForm = ({
|
|
10179
10199
|
})
|
10180
10200
|
},
|
10181
10201
|
renderFields(),
|
10182
|
-
/* @__PURE__ */
|
10202
|
+
/* @__PURE__ */ React83.createElement(
|
10183
10203
|
Button,
|
10184
10204
|
{
|
10185
10205
|
className: "hawa-mt-0 hawa-w-full",
|
@@ -10190,7 +10210,7 @@ var LoginForm = ({
|
|
10190
10210
|
(texts == null ? void 0 : texts.loginText) || "Login"
|
10191
10211
|
),
|
10192
10212
|
props.additionalButtons,
|
10193
|
-
props.allowRegister && /* @__PURE__ */
|
10213
|
+
props.allowRegister && /* @__PURE__ */ React83.createElement("div", { className: "hawa-select-none hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300" }, (texts == null ? void 0 : texts.newUserText) || "New user?", " ", /* @__PURE__ */ React83.createElement(
|
10194
10214
|
"span",
|
10195
10215
|
{
|
10196
10216
|
onClick: props.onRouteToRegister,
|
@@ -10199,7 +10219,7 @@ var LoginForm = ({
|
|
10199
10219
|
(texts == null ? void 0 : texts.createAccount) || "Create Account"
|
10200
10220
|
))
|
10201
10221
|
)),
|
10202
|
-
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
10222
|
+
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React83.createElement(
|
10203
10223
|
CardFooter,
|
10204
10224
|
{
|
10205
10225
|
noPadding: props.cardless,
|
@@ -10207,7 +10227,7 @@ var LoginForm = ({
|
|
10207
10227
|
props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
|
10208
10228
|
)
|
10209
10229
|
},
|
10210
|
-
/* @__PURE__ */
|
10230
|
+
/* @__PURE__ */ React83.createElement(
|
10211
10231
|
AuthButtons,
|
10212
10232
|
{
|
10213
10233
|
texts: thirdPartyAuthTexts,
|
@@ -10227,7 +10247,7 @@ var LoginForm = ({
|
|
10227
10247
|
};
|
10228
10248
|
|
10229
10249
|
// blocks/auth/RegisterForm.tsx
|
10230
|
-
import
|
10250
|
+
import React84, { useState as useState40 } from "react";
|
10231
10251
|
import { Controller as Controller2, FormProvider, useForm as useForm2 } from "react-hook-form";
|
10232
10252
|
import { zodResolver as zodResolver2 } from "@hookform/resolvers/zod";
|
10233
10253
|
import * as z2 from "zod";
|
@@ -10306,7 +10326,7 @@ var RegisterForm = ({
|
|
10306
10326
|
const { handleSubmit, control, formState } = useForm2({
|
10307
10327
|
resolver: zodResolver2(formSchema)
|
10308
10328
|
});
|
10309
|
-
return /* @__PURE__ */
|
10329
|
+
return /* @__PURE__ */ React84.createElement(
|
10310
10330
|
"div",
|
10311
10331
|
{
|
10312
10332
|
className: cn(
|
@@ -10314,7 +10334,7 @@ var RegisterForm = ({
|
|
10314
10334
|
(_g = props.classNames) == null ? void 0 : _g.root
|
10315
10335
|
)
|
10316
10336
|
},
|
10317
|
-
/* @__PURE__ */
|
10337
|
+
/* @__PURE__ */ React84.createElement(
|
10318
10338
|
Card,
|
10319
10339
|
{
|
10320
10340
|
dir: props.direction,
|
@@ -10323,7 +10343,7 @@ var RegisterForm = ({
|
|
10323
10343
|
props.cardless && "hawa-border-none hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
|
10324
10344
|
)
|
10325
10345
|
},
|
10326
|
-
/* @__PURE__ */
|
10346
|
+
/* @__PURE__ */ React84.createElement(CardContent, { headless: true, noPadding: props.cardless }, /* @__PURE__ */ React84.createElement("div", null, props.showError && /* @__PURE__ */ React84.createElement(
|
10327
10347
|
Alert,
|
10328
10348
|
{
|
10329
10349
|
direction: props.direction,
|
@@ -10336,7 +10356,7 @@ var RegisterForm = ({
|
|
10336
10356
|
}
|
10337
10357
|
}
|
10338
10358
|
}
|
10339
|
-
), /* @__PURE__ */
|
10359
|
+
), /* @__PURE__ */ React84.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React84.createElement(
|
10340
10360
|
"form",
|
10341
10361
|
{
|
10342
10362
|
noValidate: true,
|
@@ -10351,9 +10371,9 @@ var RegisterForm = ({
|
|
10351
10371
|
}),
|
10352
10372
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
10353
10373
|
},
|
10354
|
-
/* @__PURE__ */
|
10374
|
+
/* @__PURE__ */ React84.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, registerFields.map((fld, i) => {
|
10355
10375
|
if (fld === "fullname") {
|
10356
|
-
return /* @__PURE__ */
|
10376
|
+
return /* @__PURE__ */ React84.createElement(
|
10357
10377
|
Controller2,
|
10358
10378
|
{
|
10359
10379
|
key: i,
|
@@ -10361,7 +10381,7 @@ var RegisterForm = ({
|
|
10361
10381
|
name: "fullName",
|
10362
10382
|
render: ({ field }) => {
|
10363
10383
|
var _a2, _b2, _c2;
|
10364
|
-
return /* @__PURE__ */
|
10384
|
+
return /* @__PURE__ */ React84.createElement(
|
10365
10385
|
Input,
|
10366
10386
|
{
|
10367
10387
|
width: "full",
|
@@ -10376,7 +10396,7 @@ var RegisterForm = ({
|
|
10376
10396
|
);
|
10377
10397
|
}
|
10378
10398
|
if (fld === "email") {
|
10379
|
-
return /* @__PURE__ */
|
10399
|
+
return /* @__PURE__ */ React84.createElement(
|
10380
10400
|
Controller2,
|
10381
10401
|
{
|
10382
10402
|
key: i,
|
@@ -10384,7 +10404,7 @@ var RegisterForm = ({
|
|
10384
10404
|
name: "email",
|
10385
10405
|
render: ({ field }) => {
|
10386
10406
|
var _a2, _b2, _c2;
|
10387
|
-
return /* @__PURE__ */
|
10407
|
+
return /* @__PURE__ */ React84.createElement(
|
10388
10408
|
Input,
|
10389
10409
|
{
|
10390
10410
|
dir: "ltr",
|
@@ -10404,7 +10424,7 @@ var RegisterForm = ({
|
|
10404
10424
|
);
|
10405
10425
|
}
|
10406
10426
|
if (fld === "username") {
|
10407
|
-
return /* @__PURE__ */
|
10427
|
+
return /* @__PURE__ */ React84.createElement(
|
10408
10428
|
Controller2,
|
10409
10429
|
{
|
10410
10430
|
key: i,
|
@@ -10412,7 +10432,7 @@ var RegisterForm = ({
|
|
10412
10432
|
name: "username",
|
10413
10433
|
render: ({ field }) => {
|
10414
10434
|
var _a2, _b2, _c2, _d2;
|
10415
|
-
return /* @__PURE__ */
|
10435
|
+
return /* @__PURE__ */ React84.createElement(
|
10416
10436
|
Input,
|
10417
10437
|
{
|
10418
10438
|
width: "full",
|
@@ -10431,25 +10451,25 @@ var RegisterForm = ({
|
|
10431
10451
|
);
|
10432
10452
|
}
|
10433
10453
|
})),
|
10434
|
-
/* @__PURE__ */
|
10454
|
+
/* @__PURE__ */ React84.createElement(
|
10435
10455
|
Controller2,
|
10436
10456
|
{
|
10437
10457
|
control,
|
10438
10458
|
name: "password",
|
10439
10459
|
render: ({ field }) => {
|
10440
10460
|
var _a2, _b2, _c2;
|
10441
|
-
return /* @__PURE__ */
|
10461
|
+
return /* @__PURE__ */ React84.createElement(
|
10442
10462
|
Input,
|
10443
10463
|
{
|
10444
10464
|
width: "full",
|
10445
10465
|
type: passwordVisible ? "text" : "password",
|
10446
|
-
endIcon: /* @__PURE__ */
|
10466
|
+
endIcon: /* @__PURE__ */ React84.createElement(
|
10447
10467
|
"div",
|
10448
10468
|
{
|
10449
10469
|
className: "hawa-cursor-pointer",
|
10450
10470
|
onClick: () => setPasswordVisible(!passwordVisible)
|
10451
10471
|
},
|
10452
|
-
passwordVisible ? /* @__PURE__ */
|
10472
|
+
passwordVisible ? /* @__PURE__ */ React84.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React84.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
10453
10473
|
" "
|
10454
10474
|
),
|
10455
10475
|
autoComplete: "new-password",
|
@@ -10462,14 +10482,14 @@ var RegisterForm = ({
|
|
10462
10482
|
}
|
10463
10483
|
}
|
10464
10484
|
),
|
10465
|
-
/* @__PURE__ */
|
10485
|
+
/* @__PURE__ */ React84.createElement(
|
10466
10486
|
Controller2,
|
10467
10487
|
{
|
10468
10488
|
control,
|
10469
10489
|
name: "confirm_password",
|
10470
10490
|
render: ({ field }) => {
|
10471
10491
|
var _a2, _b2, _c2;
|
10472
|
-
return /* @__PURE__ */
|
10492
|
+
return /* @__PURE__ */ React84.createElement(
|
10473
10493
|
Input,
|
10474
10494
|
{
|
10475
10495
|
width: "full",
|
@@ -10485,14 +10505,14 @@ var RegisterForm = ({
|
|
10485
10505
|
}
|
10486
10506
|
),
|
10487
10507
|
props.additionalInputs,
|
10488
|
-
props.showRefCode && /* @__PURE__ */
|
10508
|
+
props.showRefCode && /* @__PURE__ */ React84.createElement(
|
10489
10509
|
Controller2,
|
10490
10510
|
{
|
10491
10511
|
control,
|
10492
10512
|
name: "refCode",
|
10493
10513
|
render: ({ field }) => {
|
10494
10514
|
var _a2;
|
10495
|
-
return /* @__PURE__ */
|
10515
|
+
return /* @__PURE__ */ React84.createElement(
|
10496
10516
|
Input,
|
10497
10517
|
{
|
10498
10518
|
width: "full",
|
@@ -10505,14 +10525,14 @@ var RegisterForm = ({
|
|
10505
10525
|
}
|
10506
10526
|
}
|
10507
10527
|
),
|
10508
|
-
props.showUserSource && /* @__PURE__ */
|
10528
|
+
props.showUserSource && /* @__PURE__ */ React84.createElement(
|
10509
10529
|
Controller2,
|
10510
10530
|
{
|
10511
10531
|
control,
|
10512
10532
|
name: "reference",
|
10513
10533
|
render: ({ field }) => {
|
10514
10534
|
var _a2, _b2;
|
10515
|
-
return /* @__PURE__ */
|
10535
|
+
return /* @__PURE__ */ React84.createElement(
|
10516
10536
|
Select,
|
10517
10537
|
{
|
10518
10538
|
label: ((_a2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _a2.label) || "How did you learn about us?",
|
@@ -10528,20 +10548,20 @@ var RegisterForm = ({
|
|
10528
10548
|
}
|
10529
10549
|
}
|
10530
10550
|
),
|
10531
|
-
showTermsOption || showNewsletterOption ? /* @__PURE__ */
|
10551
|
+
showTermsOption || showNewsletterOption ? /* @__PURE__ */ React84.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-3 hawa-mb-2" }, showTermsOption && /* @__PURE__ */ React84.createElement(
|
10532
10552
|
Controller2,
|
10533
10553
|
{
|
10534
10554
|
control,
|
10535
10555
|
name: "terms_accepted",
|
10536
10556
|
render: ({ field }) => {
|
10537
10557
|
var _a2, _b2;
|
10538
|
-
return /* @__PURE__ */
|
10558
|
+
return /* @__PURE__ */ React84.createElement(
|
10539
10559
|
Checkbox,
|
10540
10560
|
{
|
10541
10561
|
id: "terms_accepted",
|
10542
10562
|
helperText: (_b2 = (_a2 = formState.errors.terms_accepted) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString(),
|
10543
10563
|
onCheckedChange: (e) => field.onChange(e),
|
10544
|
-
label: /* @__PURE__ */
|
10564
|
+
label: /* @__PURE__ */ React84.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5 hawa-whitespace-nowrap hawa-flex-wrap" }, (texts == null ? void 0 : texts.iAcceptText) || "I accept the", " ", /* @__PURE__ */ React84.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React84.createElement(
|
10545
10565
|
"span",
|
10546
10566
|
{
|
10547
10567
|
onClick: (e) => {
|
@@ -10558,12 +10578,12 @@ var RegisterForm = ({
|
|
10558
10578
|
);
|
10559
10579
|
}
|
10560
10580
|
}
|
10561
|
-
), showNewsletterOption && /* @__PURE__ */
|
10581
|
+
), showNewsletterOption && /* @__PURE__ */ React84.createElement(
|
10562
10582
|
Controller2,
|
10563
10583
|
{
|
10564
10584
|
control,
|
10565
10585
|
name: "newsletter_accepted",
|
10566
|
-
render: ({ field }) => /* @__PURE__ */
|
10586
|
+
render: ({ field }) => /* @__PURE__ */ React84.createElement(
|
10567
10587
|
Checkbox,
|
10568
10588
|
{
|
10569
10589
|
id: "newsletter_accepted",
|
@@ -10573,7 +10593,7 @@ var RegisterForm = ({
|
|
10573
10593
|
)
|
10574
10594
|
}
|
10575
10595
|
)) : null,
|
10576
|
-
/* @__PURE__ */
|
10596
|
+
/* @__PURE__ */ React84.createElement(
|
10577
10597
|
Button,
|
10578
10598
|
{
|
10579
10599
|
className: " hawa-w-full",
|
@@ -10584,8 +10604,8 @@ var RegisterForm = ({
|
|
10584
10604
|
(texts == null ? void 0 : texts.registerText) || "Register"
|
10585
10605
|
),
|
10586
10606
|
props.additionalButtons
|
10587
|
-
)), props.onRouteToLogin && /* @__PURE__ */
|
10588
|
-
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
10607
|
+
)), props.onRouteToLogin && /* @__PURE__ */ React84.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-1 hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-white" }, /* @__PURE__ */ React84.createElement("span", null, (texts == null ? void 0 : texts.existingUserText) || "Already have an account?"), /* @__PURE__ */ React84.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))),
|
10608
|
+
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React84.createElement(
|
10589
10609
|
CardFooter,
|
10590
10610
|
{
|
10591
10611
|
noPadding: props.cardless,
|
@@ -10593,7 +10613,7 @@ var RegisterForm = ({
|
|
10593
10613
|
props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
|
10594
10614
|
)
|
10595
10615
|
},
|
10596
|
-
/* @__PURE__ */
|
10616
|
+
/* @__PURE__ */ React84.createElement(
|
10597
10617
|
AuthButtons,
|
10598
10618
|
{
|
10599
10619
|
texts: thirdPartyAuthTexts,
|
@@ -10614,7 +10634,7 @@ var RegisterForm = ({
|
|
10614
10634
|
};
|
10615
10635
|
|
10616
10636
|
// blocks/auth/AppLanding.tsx
|
10617
|
-
import
|
10637
|
+
import React85 from "react";
|
10618
10638
|
var AppLanding = ({ texts, ...props }) => {
|
10619
10639
|
const thirdPartyAuthTexts = {
|
10620
10640
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
@@ -10625,7 +10645,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
10625
10645
|
continueWithEmail: texts == null ? void 0 : texts.continueWithEmail,
|
10626
10646
|
continueWithPhone: texts == null ? void 0 : texts.continueWithPhone
|
10627
10647
|
};
|
10628
|
-
return /* @__PURE__ */
|
10648
|
+
return /* @__PURE__ */ React85.createElement("div", { dir: props.direction }, /* @__PURE__ */ React85.createElement(Card, null, /* @__PURE__ */ React85.createElement(CardContent, { headless: true, className: "hawa-flex hawa-flex-col hawa-gap-6" }, /* @__PURE__ */ React85.createElement(
|
10629
10649
|
AuthButtons,
|
10630
10650
|
{
|
10631
10651
|
texts: thirdPartyAuthTexts,
|
@@ -10644,7 +10664,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
10644
10664
|
handleEmail: props.handleEmail,
|
10645
10665
|
handlePhone: props.handlePhone
|
10646
10666
|
}
|
10647
|
-
), props.allowRegister && /* @__PURE__ */
|
10667
|
+
), props.allowRegister && /* @__PURE__ */ React85.createElement("div", { className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300" }, texts == null ? void 0 : texts.newUserText, " ", /* @__PURE__ */ React85.createElement(
|
10648
10668
|
"span",
|
10649
10669
|
{
|
10650
10670
|
onClick: props.handleRouteToRegister,
|
@@ -10655,9 +10675,9 @@ var AppLanding = ({ texts, ...props }) => {
|
|
10655
10675
|
};
|
10656
10676
|
|
10657
10677
|
// blocks/auth/CheckEmail.tsx
|
10658
|
-
import
|
10678
|
+
import React86 from "react";
|
10659
10679
|
var CheckEmail = ({ texts, handleResend }) => {
|
10660
|
-
return /* @__PURE__ */
|
10680
|
+
return /* @__PURE__ */ React86.createElement(Card, null, /* @__PURE__ */ React86.createElement(CardContent, { headless: true }, /* @__PURE__ */ React86.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ React86.createElement("div", { className: "hawa-flex hawa-h-16 hawa-w-16 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ React86.createElement(
|
10661
10681
|
"svg",
|
10662
10682
|
{
|
10663
10683
|
stroke: "currentColor",
|
@@ -10670,13 +10690,13 @@ var CheckEmail = ({ texts, handleResend }) => {
|
|
10670
10690
|
width: "0.5em",
|
10671
10691
|
xmlns: "http://www.w3.org/2000/svg"
|
10672
10692
|
},
|
10673
|
-
/* @__PURE__ */
|
10674
|
-
/* @__PURE__ */
|
10675
|
-
)), /* @__PURE__ */
|
10693
|
+
/* @__PURE__ */ React86.createElement("path", { d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" }),
|
10694
|
+
/* @__PURE__ */ React86.createElement("polyline", { points: "22,6 12,13 2,6" })
|
10695
|
+
)), /* @__PURE__ */ React86.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.checkEmail) || "Check your Email"), /* @__PURE__ */ React86.createElement("div", { className: "hawa-text-sm" }, (texts == null ? 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__ */ React86.createElement(CardFooter, { className: "hawa-flex hawa-flex-col hawa-justify-center " }, /* @__PURE__ */ React86.createElement("span", { className: "clickable-link hawa-text-sm", onClick: handleResend }, (texts == null ? void 0 : texts.resendEmail) || "Resend Email")));
|
10676
10696
|
};
|
10677
10697
|
|
10678
10698
|
// blocks/auth/NewPassword.tsx
|
10679
|
-
import
|
10699
|
+
import React87 from "react";
|
10680
10700
|
import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
|
10681
10701
|
import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
|
10682
10702
|
import * as z3 from "zod";
|
@@ -10698,7 +10718,7 @@ var NewPasswordForm = ({
|
|
10698
10718
|
const { handleSubmit, control, formState } = useForm3({
|
10699
10719
|
resolver: zodResolver3(formSchema)
|
10700
10720
|
});
|
10701
|
-
return /* @__PURE__ */
|
10721
|
+
return /* @__PURE__ */ React87.createElement(Card, { dir: props.direction }, props.showSuccess ? /* @__PURE__ */ React87.createElement(CardContent, { headless: true }, /* @__PURE__ */ React87.createElement("div", { className: "hawa-text-center" }, texts == null ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ React87.createElement(
|
10702
10722
|
"form",
|
10703
10723
|
{
|
10704
10724
|
noValidate: true,
|
@@ -10712,7 +10732,7 @@ var NewPasswordForm = ({
|
|
10712
10732
|
}
|
10713
10733
|
})
|
10714
10734
|
},
|
10715
|
-
/* @__PURE__ */
|
10735
|
+
/* @__PURE__ */ React87.createElement(CardContent, { headless: true, className: "hawa-flex hawa-flex-col" }, props.showError && /* @__PURE__ */ React87.createElement(
|
10716
10736
|
Alert,
|
10717
10737
|
{
|
10718
10738
|
direction: props.direction,
|
@@ -10720,14 +10740,14 @@ var NewPasswordForm = ({
|
|
10720
10740
|
text: props.errorText,
|
10721
10741
|
severity: "error"
|
10722
10742
|
}
|
10723
|
-
), /* @__PURE__ */
|
10743
|
+
), /* @__PURE__ */ React87.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4 hawa-mb-4" }, /* @__PURE__ */ React87.createElement(
|
10724
10744
|
Controller3,
|
10725
10745
|
{
|
10726
10746
|
control,
|
10727
10747
|
name: "password",
|
10728
10748
|
render: ({ field }) => {
|
10729
10749
|
var _a2, _b2, _c2;
|
10730
|
-
return /* @__PURE__ */
|
10750
|
+
return /* @__PURE__ */ React87.createElement(
|
10731
10751
|
Input,
|
10732
10752
|
{
|
10733
10753
|
width: "full",
|
@@ -10741,14 +10761,14 @@ var NewPasswordForm = ({
|
|
10741
10761
|
);
|
10742
10762
|
}
|
10743
10763
|
}
|
10744
|
-
), /* @__PURE__ */
|
10764
|
+
), /* @__PURE__ */ React87.createElement(
|
10745
10765
|
Controller3,
|
10746
10766
|
{
|
10747
10767
|
control,
|
10748
10768
|
name: "confirm_password",
|
10749
10769
|
render: ({ field }) => {
|
10750
10770
|
var _a2, _b2, _c2;
|
10751
|
-
return /* @__PURE__ */
|
10771
|
+
return /* @__PURE__ */ React87.createElement(
|
10752
10772
|
Input,
|
10753
10773
|
{
|
10754
10774
|
width: "full",
|
@@ -10762,7 +10782,7 @@ var NewPasswordForm = ({
|
|
10762
10782
|
);
|
10763
10783
|
}
|
10764
10784
|
}
|
10765
|
-
)), /* @__PURE__ */
|
10785
|
+
)), /* @__PURE__ */ React87.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ React87.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_g = texts == null ? void 0 : texts.dontHaveAccount) != null ? _g : "Don't have an account? ", /* @__PURE__ */ React87.createElement(
|
10766
10786
|
"span",
|
10767
10787
|
{
|
10768
10788
|
className: "clickable-link",
|
@@ -10774,7 +10794,7 @@ var NewPasswordForm = ({
|
|
10774
10794
|
};
|
10775
10795
|
|
10776
10796
|
// blocks/auth/ResetPassword.tsx
|
10777
|
-
import
|
10797
|
+
import React88 from "react";
|
10778
10798
|
import { Controller as Controller4, useForm as useForm4 } from "react-hook-form";
|
10779
10799
|
import { zodResolver as zodResolver4 } from "@hookform/resolvers/zod";
|
10780
10800
|
import * as z4 from "zod";
|
@@ -10792,7 +10812,7 @@ var ResetPasswordForm = ({
|
|
10792
10812
|
const { handleSubmit, control, formState } = useForm4({
|
10793
10813
|
resolver: zodResolver4(formSchema)
|
10794
10814
|
});
|
10795
|
-
return /* @__PURE__ */
|
10815
|
+
return /* @__PURE__ */ React88.createElement(Card, { dir: props.direction }, !props.sent ? /* @__PURE__ */ React88.createElement(React88.Fragment, null, !props.headless && /* @__PURE__ */ React88.createElement(CardHeader, null, /* @__PURE__ */ React88.createElement(CardTitle, null, ((_g = props.texts) == null ? void 0 : _g.headTitle) || "Reset Password"), /* @__PURE__ */ React88.createElement(CardDescription, null, ((_h = props.texts) == null ? void 0 : _h.headDescription) || "Enter your email to reset your account password")), /* @__PURE__ */ React88.createElement(
|
10796
10816
|
"form",
|
10797
10817
|
{
|
10798
10818
|
noValidate: true,
|
@@ -10804,7 +10824,7 @@ var ResetPasswordForm = ({
|
|
10804
10824
|
}
|
10805
10825
|
})
|
10806
10826
|
},
|
10807
|
-
/* @__PURE__ */
|
10827
|
+
/* @__PURE__ */ React88.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, props.showError && /* @__PURE__ */ React88.createElement(
|
10808
10828
|
Alert,
|
10809
10829
|
{
|
10810
10830
|
direction: props.direction,
|
@@ -10812,14 +10832,14 @@ var ResetPasswordForm = ({
|
|
10812
10832
|
text: props.errorText,
|
10813
10833
|
severity: "error"
|
10814
10834
|
}
|
10815
|
-
), /* @__PURE__ */
|
10835
|
+
), /* @__PURE__ */ React88.createElement(
|
10816
10836
|
Controller4,
|
10817
10837
|
{
|
10818
10838
|
control,
|
10819
10839
|
name: "email",
|
10820
10840
|
render: ({ field }) => {
|
10821
10841
|
var _a2, _b2, _c2, _d2, _e2;
|
10822
|
-
return /* @__PURE__ */
|
10842
|
+
return /* @__PURE__ */ React88.createElement(
|
10823
10843
|
Input,
|
10824
10844
|
{
|
10825
10845
|
width: "full",
|
@@ -10832,7 +10852,7 @@ var ResetPasswordForm = ({
|
|
10832
10852
|
}
|
10833
10853
|
}
|
10834
10854
|
)),
|
10835
|
-
/* @__PURE__ */
|
10855
|
+
/* @__PURE__ */ React88.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React88.createElement(
|
10836
10856
|
Button,
|
10837
10857
|
{
|
10838
10858
|
type: "submit",
|
@@ -10840,7 +10860,7 @@ var ResetPasswordForm = ({
|
|
10840
10860
|
isLoading
|
10841
10861
|
},
|
10842
10862
|
((_i = props.texts) == null ? void 0 : _i.resetPassword) || "Reset Password"
|
10843
|
-
), allowRegister && /* @__PURE__ */
|
10863
|
+
), allowRegister && /* @__PURE__ */ React88.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_k = (_j = props.texts) == null ? void 0 : _j.dontHaveAccount) != null ? _k : "Don't have an account? ", /* @__PURE__ */ React88.createElement(
|
10844
10864
|
"span",
|
10845
10865
|
{
|
10846
10866
|
className: "clickable-link",
|
@@ -10848,11 +10868,11 @@ var ResetPasswordForm = ({
|
|
10848
10868
|
},
|
10849
10869
|
(_m = (_l = props.texts) == null ? void 0 : _l.registerText) != null ? _m : "Register"
|
10850
10870
|
)))
|
10851
|
-
)) : /* @__PURE__ */
|
10871
|
+
)) : /* @__PURE__ */ React88.createElement(CardContent, { headless: true }, /* @__PURE__ */ React88.createElement("div", { className: "hawa-text-center" }, ((_n = props.texts) == null ? void 0 : _n.emailSentText) || "An email has been sent with a link to set a new password")));
|
10852
10872
|
};
|
10853
10873
|
|
10854
10874
|
// blocks/auth/CodeConfirmation.tsx
|
10855
|
-
import
|
10875
|
+
import React89, { useEffect as useEffect30, useState as useState41 } from "react";
|
10856
10876
|
import { Controller as Controller5, useForm as useForm5 } from "react-hook-form";
|
10857
10877
|
import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
|
10858
10878
|
import * as z5 from "zod";
|
@@ -10895,14 +10915,14 @@ var CodeConfirmation = (props) => {
|
|
10895
10915
|
}
|
10896
10916
|
};
|
10897
10917
|
}, []);
|
10898
|
-
return /* @__PURE__ */
|
10918
|
+
return /* @__PURE__ */ React89.createElement(Card, null, /* @__PURE__ */ React89.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ React89.createElement(
|
10899
10919
|
Alert,
|
10900
10920
|
{
|
10901
10921
|
title: props.errorTitle,
|
10902
10922
|
text: props.errorText,
|
10903
10923
|
severity: "error"
|
10904
10924
|
}
|
10905
|
-
), /* @__PURE__ */
|
10925
|
+
), /* @__PURE__ */ React89.createElement("div", { className: "hawa-mb-4 dark:hawa-text-white" }, /* @__PURE__ */ React89.createElement("div", { className: "hawa-text-lg hawa-font-bold" }, ((_c = props.texts) == null ? void 0 : _c.checkYourPhone) || "Please check your phone"), /* @__PURE__ */ React89.createElement("div", { className: "hawa-text-muted-foreground" }, /* @__PURE__ */ React89.createElement("span", null, ((_d = props.texts) == null ? void 0 : _d.weSentCode) || "We've sent a code to "), /* @__PURE__ */ React89.createElement("span", null, props.phoneNumber))), /* @__PURE__ */ React89.createElement(
|
10906
10926
|
"form",
|
10907
10927
|
{
|
10908
10928
|
noValidate: true,
|
@@ -10916,14 +10936,14 @@ var CodeConfirmation = (props) => {
|
|
10916
10936
|
}
|
10917
10937
|
})
|
10918
10938
|
},
|
10919
|
-
/* @__PURE__ */
|
10939
|
+
/* @__PURE__ */ React89.createElement(
|
10920
10940
|
Controller5,
|
10921
10941
|
{
|
10922
10942
|
control,
|
10923
10943
|
name: "otp_code",
|
10924
10944
|
render: ({ field }) => {
|
10925
10945
|
var _a2;
|
10926
|
-
return /* @__PURE__ */
|
10946
|
+
return /* @__PURE__ */ React89.createElement(
|
10927
10947
|
PinInput,
|
10928
10948
|
{
|
10929
10949
|
width: "full",
|
@@ -10935,7 +10955,7 @@ var CodeConfirmation = (props) => {
|
|
10935
10955
|
}
|
10936
10956
|
}
|
10937
10957
|
),
|
10938
|
-
showResendTimer ? /* @__PURE__ */
|
10958
|
+
showResendTimer ? /* @__PURE__ */ React89.createElement("div", { className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground" }, (_e = props.texts) == null ? void 0 : _e.resendCodeTimer, " ", /* @__PURE__ */ React89.createElement("strong", null, remainingTime), " ", (_f = props.texts) == null ? void 0 : _f.seconds) : /* @__PURE__ */ React89.createElement("div", { className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground" }, /* @__PURE__ */ React89.createElement("span", null, (_h = (_g = props.texts) == null ? void 0 : _g.didntGetCode) != null ? _h : "Didn't get the code?"), " ", /* @__PURE__ */ React89.createElement(
|
10939
10959
|
"span",
|
10940
10960
|
{
|
10941
10961
|
className: "clickable-link",
|
@@ -10946,12 +10966,12 @@ var CodeConfirmation = (props) => {
|
|
10946
10966
|
},
|
10947
10967
|
((_i = props.texts) == null ? void 0 : _i.resendCode) || "Click to resend"
|
10948
10968
|
)),
|
10949
|
-
/* @__PURE__ */
|
10969
|
+
/* @__PURE__ */ React89.createElement("div", { className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2" }, /* @__PURE__ */ React89.createElement(Button, { variant: "secondary" }, ((_j = props.texts) == null ? void 0 : _j.cancel) || "Cancel"), /* @__PURE__ */ React89.createElement(Button, { isLoading: props.confirmLoading }, ((_k = props.texts) == null ? void 0 : _k.confirm) || "Confirm"))
|
10950
10970
|
)));
|
10951
10971
|
};
|
10952
10972
|
|
10953
10973
|
// blocks/feedback/UserReferralSource.tsx
|
10954
|
-
import
|
10974
|
+
import React90, { useRef as useRef20, useState as useState42 } from "react";
|
10955
10975
|
import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
|
10956
10976
|
import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
|
10957
10977
|
import * as z6 from "zod";
|
@@ -10982,7 +11002,7 @@ var UserReferralSource = ({
|
|
10982
11002
|
label: "Other"
|
10983
11003
|
}
|
10984
11004
|
];
|
10985
|
-
return /* @__PURE__ */
|
11005
|
+
return /* @__PURE__ */ React90.createElement(
|
10986
11006
|
"div",
|
10987
11007
|
{
|
10988
11008
|
className: cn(
|
@@ -10991,7 +11011,7 @@ var UserReferralSource = ({
|
|
10991
11011
|
),
|
10992
11012
|
ref: popUpRef
|
10993
11013
|
},
|
10994
|
-
/* @__PURE__ */
|
11014
|
+
/* @__PURE__ */ React90.createElement(
|
10995
11015
|
Card,
|
10996
11016
|
{
|
10997
11017
|
className: cn(
|
@@ -11000,7 +11020,7 @@ var UserReferralSource = ({
|
|
11000
11020
|
),
|
11001
11021
|
dir: props.direction
|
11002
11022
|
},
|
11003
|
-
/* @__PURE__ */
|
11023
|
+
/* @__PURE__ */ React90.createElement(
|
11004
11024
|
"button",
|
11005
11025
|
{
|
11006
11026
|
type: "button",
|
@@ -11019,7 +11039,7 @@ var UserReferralSource = ({
|
|
11019
11039
|
}, 200);
|
11020
11040
|
}
|
11021
11041
|
},
|
11022
|
-
/* @__PURE__ */
|
11042
|
+
/* @__PURE__ */ React90.createElement(
|
11023
11043
|
"svg",
|
11024
11044
|
{
|
11025
11045
|
"aria-hidden": "true",
|
@@ -11027,7 +11047,7 @@ var UserReferralSource = ({
|
|
11027
11047
|
fill: "currentColor",
|
11028
11048
|
viewBox: "0 0 20 20"
|
11029
11049
|
},
|
11030
|
-
/* @__PURE__ */
|
11050
|
+
/* @__PURE__ */ React90.createElement(
|
11031
11051
|
"path",
|
11032
11052
|
{
|
11033
11053
|
fillRule: "evenodd",
|
@@ -11037,7 +11057,7 @@ var UserReferralSource = ({
|
|
11037
11057
|
)
|
11038
11058
|
)
|
11039
11059
|
),
|
11040
|
-
/* @__PURE__ */
|
11060
|
+
/* @__PURE__ */ React90.createElement(CardContent, { headless: true }, /* @__PURE__ */ React90.createElement(
|
11041
11061
|
"form",
|
11042
11062
|
{
|
11043
11063
|
noValidate: true,
|
@@ -11049,7 +11069,7 @@ var UserReferralSource = ({
|
|
11049
11069
|
}
|
11050
11070
|
})
|
11051
11071
|
},
|
11052
|
-
/* @__PURE__ */
|
11072
|
+
/* @__PURE__ */ React90.createElement(
|
11053
11073
|
"div",
|
11054
11074
|
{
|
11055
11075
|
className: cn(
|
@@ -11057,15 +11077,15 @@ var UserReferralSource = ({
|
|
11057
11077
|
closed ? "hawa-opacity-0" : "hawa-opacity-100"
|
11058
11078
|
)
|
11059
11079
|
},
|
11060
|
-
/* @__PURE__ */
|
11061
|
-
/* @__PURE__ */
|
11080
|
+
/* @__PURE__ */ React90.createElement("div", { className: "hawa-mt-4 hawa-font-bold" }, props.question),
|
11081
|
+
/* @__PURE__ */ React90.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded " }, /* @__PURE__ */ React90.createElement(
|
11062
11082
|
Controller6,
|
11063
11083
|
{
|
11064
11084
|
control,
|
11065
11085
|
name: "source",
|
11066
11086
|
render: ({ field }) => {
|
11067
11087
|
var _a2, _b2;
|
11068
|
-
return /* @__PURE__ */
|
11088
|
+
return /* @__PURE__ */ React90.createElement(
|
11069
11089
|
Radio,
|
11070
11090
|
{
|
11071
11091
|
name: "source",
|
@@ -11080,14 +11100,14 @@ var UserReferralSource = ({
|
|
11080
11100
|
}
|
11081
11101
|
}
|
11082
11102
|
)),
|
11083
|
-
/* @__PURE__ */
|
11103
|
+
/* @__PURE__ */ React90.createElement("div", null, /* @__PURE__ */ React90.createElement(
|
11084
11104
|
Controller6,
|
11085
11105
|
{
|
11086
11106
|
control,
|
11087
11107
|
name: "feedback",
|
11088
11108
|
render: ({ field }) => {
|
11089
11109
|
var _a2, _b2;
|
11090
|
-
return /* @__PURE__ */
|
11110
|
+
return /* @__PURE__ */ React90.createElement(
|
11091
11111
|
Textarea,
|
11092
11112
|
{
|
11093
11113
|
...field,
|
@@ -11102,14 +11122,14 @@ var UserReferralSource = ({
|
|
11102
11122
|
}
|
11103
11123
|
))
|
11104
11124
|
),
|
11105
|
-
/* @__PURE__ */
|
11125
|
+
/* @__PURE__ */ React90.createElement(Button, { type: "submit", className: "hawa-mt-4 hawa-w-full" }, ((_b = props.texts) == null ? void 0 : _b.submit) || "Submit")
|
11106
11126
|
))
|
11107
11127
|
)
|
11108
11128
|
);
|
11109
11129
|
};
|
11110
11130
|
|
11111
11131
|
// blocks/feedback/FeedbackRating.tsx
|
11112
|
-
import
|
11132
|
+
import React91, { useEffect as useEffect31, useRef as useRef21, useState as useState43 } from "react";
|
11113
11133
|
var FeedbackRating = ({
|
11114
11134
|
position = "bottom-right",
|
11115
11135
|
...props
|
@@ -11141,7 +11161,7 @@ var FeedbackRating = ({
|
|
11141
11161
|
}
|
11142
11162
|
}, 200);
|
11143
11163
|
};
|
11144
|
-
return /* @__PURE__ */
|
11164
|
+
return /* @__PURE__ */ React91.createElement(
|
11145
11165
|
"div",
|
11146
11166
|
{
|
11147
11167
|
ref: popUpRef,
|
@@ -11150,7 +11170,7 @@ var FeedbackRating = ({
|
|
11150
11170
|
boxPosition[position]
|
11151
11171
|
)
|
11152
11172
|
},
|
11153
|
-
/* @__PURE__ */
|
11173
|
+
/* @__PURE__ */ React91.createElement(
|
11154
11174
|
"div",
|
11155
11175
|
{
|
11156
11176
|
className: cn(
|
@@ -11159,8 +11179,8 @@ var FeedbackRating = ({
|
|
11159
11179
|
props.banner && "hawa-rounded-none hawa-px-4 md:hawa-rounded-t md:hawa-px-64"
|
11160
11180
|
)
|
11161
11181
|
},
|
11162
|
-
/* @__PURE__ */
|
11163
|
-
/* @__PURE__ */
|
11182
|
+
/* @__PURE__ */ React91.createElement("div", { className: "hawa-absolute hawa-left-2 hawa-top-2 hawa-p-1.5 hawa-text-sm" }, props.title),
|
11183
|
+
/* @__PURE__ */ React91.createElement(
|
11164
11184
|
"button",
|
11165
11185
|
{
|
11166
11186
|
type: "button",
|
@@ -11169,7 +11189,7 @@ var FeedbackRating = ({
|
|
11169
11189
|
"aria-label": "Close",
|
11170
11190
|
onClick: () => slowClose()
|
11171
11191
|
},
|
11172
|
-
/* @__PURE__ */
|
11192
|
+
/* @__PURE__ */ React91.createElement(
|
11173
11193
|
"svg",
|
11174
11194
|
{
|
11175
11195
|
"aria-hidden": "true",
|
@@ -11177,7 +11197,7 @@ var FeedbackRating = ({
|
|
11177
11197
|
fill: "currentColor",
|
11178
11198
|
viewBox: "0 0 20 20"
|
11179
11199
|
},
|
11180
|
-
/* @__PURE__ */
|
11200
|
+
/* @__PURE__ */ React91.createElement(
|
11181
11201
|
"path",
|
11182
11202
|
{
|
11183
11203
|
fillRule: "evenodd",
|
@@ -11187,8 +11207,8 @@ var FeedbackRating = ({
|
|
11187
11207
|
)
|
11188
11208
|
)
|
11189
11209
|
),
|
11190
|
-
/* @__PURE__ */
|
11191
|
-
/* @__PURE__ */
|
11210
|
+
/* @__PURE__ */ React91.createElement("div", { className: "hawa-mt-8" }, props.question),
|
11211
|
+
/* @__PURE__ */ React91.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded" }, props.options && props.options.map((op, i) => /* @__PURE__ */ React91.createElement(
|
11192
11212
|
"span",
|
11193
11213
|
{
|
11194
11214
|
key: i,
|
@@ -11216,24 +11236,24 @@ var FeedbackRating = ({
|
|
11216
11236
|
},
|
11217
11237
|
op
|
11218
11238
|
))),
|
11219
|
-
props.texts && /* @__PURE__ */
|
11220
|
-
answered && /* @__PURE__ */
|
11239
|
+
props.texts && /* @__PURE__ */ React91.createElement("div", { className: " hawa-flex hawa-flex-row hawa-justify-between hawa-text-xs" }, /* @__PURE__ */ React91.createElement("span", null, props.texts.least), /* @__PURE__ */ React91.createElement("span", null, props.texts.most)),
|
11240
|
+
answered && /* @__PURE__ */ React91.createElement("div", { className: "hawa-absolute hawa-left-0 hawa-top-0 hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2 hawa-rounded hawa-bg-black hawa-bg-opacity-80 hawa-p-4 hawa-text-center hawa-transition-all" }, /* @__PURE__ */ React91.createElement("span", { className: "hawa-font-bold hawa-text-white" }, "Thank you for your answer. This box will disappear in", " " + closingTimer, " seconds"), /* @__PURE__ */ React91.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ React91.createElement(Button, { variant: "secondary", onClick: () => slowClose() }, "Close")))
|
11221
11241
|
)
|
11222
11242
|
);
|
11223
11243
|
};
|
11224
11244
|
|
11225
11245
|
// blocks/feedback/FeedbackEmoji.tsx
|
11226
|
-
import
|
11246
|
+
import React92, { useState as useState44 } from "react";
|
11227
11247
|
var FeedbackEmoji = (props) => {
|
11228
11248
|
const [selectedEmoji, setSelectedEmoji] = useState44(null);
|
11229
11249
|
const [loadingSubmit, setLoadingSubmit] = useState44(false);
|
11230
11250
|
const [feedbackText, setFeedbackText] = useState44("");
|
11231
11251
|
const [helperText, setHelperText] = useState44(false);
|
11232
11252
|
let emojis = [
|
11233
|
-
{ icon: /* @__PURE__ */
|
11234
|
-
{ icon: /* @__PURE__ */
|
11235
|
-
{ icon: /* @__PURE__ */
|
11236
|
-
{ icon: /* @__PURE__ */
|
11253
|
+
{ icon: /* @__PURE__ */ React92.createElement(VeryGoodEmoji, null), value: "very-good" },
|
11254
|
+
{ icon: /* @__PURE__ */ React92.createElement(GoodEmoji, null), value: "good" },
|
11255
|
+
{ icon: /* @__PURE__ */ React92.createElement(BadEmoji, null), value: "bad" },
|
11256
|
+
{ icon: /* @__PURE__ */ React92.createElement(VeryBadEmoji, null), value: "very-bad" }
|
11237
11257
|
];
|
11238
11258
|
const onFeedbackSubmit = async () => {
|
11239
11259
|
if (feedbackText) {
|
@@ -11253,7 +11273,7 @@ var FeedbackEmoji = (props) => {
|
|
11253
11273
|
setHelperText(true);
|
11254
11274
|
}
|
11255
11275
|
};
|
11256
|
-
return /* @__PURE__ */
|
11276
|
+
return /* @__PURE__ */ React92.createElement(
|
11257
11277
|
"div",
|
11258
11278
|
{
|
11259
11279
|
className: cn(
|
@@ -11261,7 +11281,7 @@ var FeedbackEmoji = (props) => {
|
|
11261
11281
|
selectedEmoji ? "hawa-h-[189px] hawa-min-w-fit" : "hawa-h-[44px] "
|
11262
11282
|
)
|
11263
11283
|
},
|
11264
|
-
/* @__PURE__ */
|
11284
|
+
/* @__PURE__ */ React92.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 " }, /* @__PURE__ */ React92.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-0.5 " }, emojis.map((emoji, i) => /* @__PURE__ */ React92.createElement(
|
11265
11285
|
Button,
|
11266
11286
|
{
|
11267
11287
|
key: i,
|
@@ -11280,7 +11300,7 @@ var FeedbackEmoji = (props) => {
|
|
11280
11300
|
},
|
11281
11301
|
emoji.icon
|
11282
11302
|
)))),
|
11283
|
-
/* @__PURE__ */
|
11303
|
+
/* @__PURE__ */ React92.createElement(
|
11284
11304
|
"div",
|
11285
11305
|
{
|
11286
11306
|
className: cn(
|
@@ -11288,7 +11308,7 @@ var FeedbackEmoji = (props) => {
|
|
11288
11308
|
selectedEmoji ? "hawa-visible hawa-opacity-100" : "hawa-invisible hawa-opacity-0 "
|
11289
11309
|
)
|
11290
11310
|
},
|
11291
|
-
props.showSuccess ? /* @__PURE__ */
|
11311
|
+
props.showSuccess ? /* @__PURE__ */ React92.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2 hawa-pt-4" }, /* @__PURE__ */ React92.createElement("div", { className: "hawa-rounded hawa-bg-primary hawa-p-2 hawa-text-primary-foreground" }, /* @__PURE__ */ React92.createElement(
|
11292
11312
|
"svg",
|
11293
11313
|
{
|
11294
11314
|
stroke: "currentColor",
|
@@ -11298,13 +11318,13 @@ var FeedbackEmoji = (props) => {
|
|
11298
11318
|
height: "0.5em",
|
11299
11319
|
width: "0.5em"
|
11300
11320
|
},
|
11301
|
-
/* @__PURE__ */
|
11302
|
-
)), /* @__PURE__ */
|
11321
|
+
/* @__PURE__ */ React92.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
11322
|
+
)), /* @__PURE__ */ React92.createElement("div", { className: "hawa-flex hawa-flex-col hawa-text-center hawa-text-sm" }, /* @__PURE__ */ React92.createElement("span", null, "Your feedback has been received!"), /* @__PURE__ */ React92.createElement("span", null, "Thank you for your help"))) : /* @__PURE__ */ React92.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-1 hawa-p-1" }, /* @__PURE__ */ React92.createElement(
|
11303
11323
|
Popover,
|
11304
11324
|
{
|
11305
11325
|
className: "hawa-select-none hawa-p-1 hawa-text-xs ",
|
11306
11326
|
open: helperText,
|
11307
|
-
trigger: /* @__PURE__ */
|
11327
|
+
trigger: /* @__PURE__ */ React92.createElement(
|
11308
11328
|
Textarea,
|
11309
11329
|
{
|
11310
11330
|
classNames: {
|
@@ -11322,8 +11342,8 @@ var FeedbackEmoji = (props) => {
|
|
11322
11342
|
}
|
11323
11343
|
)
|
11324
11344
|
},
|
11325
|
-
/* @__PURE__ */
|
11326
|
-
), /* @__PURE__ */
|
11345
|
+
/* @__PURE__ */ React92.createElement("span", { className: "hawa-m-0" }, "Please enter your feedback")
|
11346
|
+
), /* @__PURE__ */ React92.createElement(
|
11327
11347
|
Button,
|
11328
11348
|
{
|
11329
11349
|
isLoading: loadingSubmit,
|
@@ -11338,7 +11358,7 @@ var FeedbackEmoji = (props) => {
|
|
11338
11358
|
};
|
11339
11359
|
|
11340
11360
|
// blocks/feedback/FeedbackForm.tsx
|
11341
|
-
import
|
11361
|
+
import React93 from "react";
|
11342
11362
|
import { useForm as useForm7, Controller as Controller7 } from "react-hook-form";
|
11343
11363
|
import { zodResolver as zodResolver7 } from "@hookform/resolvers/zod";
|
11344
11364
|
import * as z7 from "zod";
|
@@ -11352,7 +11372,7 @@ var FeedbackForm = (props) => {
|
|
11352
11372
|
resolver: zodResolver7(formSchema),
|
11353
11373
|
defaultValues: { requestType: "", description: "" }
|
11354
11374
|
});
|
11355
|
-
return /* @__PURE__ */
|
11375
|
+
return /* @__PURE__ */ React93.createElement(
|
11356
11376
|
Card,
|
11357
11377
|
{
|
11358
11378
|
className: cn(
|
@@ -11360,7 +11380,7 @@ var FeedbackForm = (props) => {
|
|
11360
11380
|
),
|
11361
11381
|
style: props.cardless ? { boxShadow: "none" } : void 0
|
11362
11382
|
},
|
11363
|
-
/* @__PURE__ */
|
11383
|
+
/* @__PURE__ */ React93.createElement(CardContent, { headless: true, className: props.cardless ? "!hawa-p-0" : "" }, props.sent ? /* @__PURE__ */ React93.createElement("div", { className: "hawa-text-center hawa-min-h-[200px] hawa-flex hawa-flex-col hawa-justify-center" }, /* @__PURE__ */ React93.createElement("div", { className: "hawa-font-bold hawa-text-lg" }, props.texts.sentTitle || "Form submitted"), /* @__PURE__ */ React93.createElement("div", { className: "hawa-text-md" }, props.texts.sentSubtitle || "Thank you for your submission")) : /* @__PURE__ */ React93.createElement(
|
11364
11384
|
"form",
|
11365
11385
|
{
|
11366
11386
|
noValidate: true,
|
@@ -11373,15 +11393,15 @@ var FeedbackForm = (props) => {
|
|
11373
11393
|
}),
|
11374
11394
|
className: "hawa-flex hawa-flex-col hawa-gap-2"
|
11375
11395
|
},
|
11376
|
-
/* @__PURE__ */
|
11377
|
-
/* @__PURE__ */
|
11396
|
+
/* @__PURE__ */ React93.createElement(Label2, null),
|
11397
|
+
/* @__PURE__ */ React93.createElement(
|
11378
11398
|
Controller7,
|
11379
11399
|
{
|
11380
11400
|
name: "requestType",
|
11381
11401
|
control,
|
11382
11402
|
render: ({ field }) => {
|
11383
11403
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
|
11384
|
-
return /* @__PURE__ */
|
11404
|
+
return /* @__PURE__ */ React93.createElement(
|
11385
11405
|
Select,
|
11386
11406
|
{
|
11387
11407
|
...field,
|
@@ -11399,14 +11419,14 @@ var FeedbackForm = (props) => {
|
|
11399
11419
|
}
|
11400
11420
|
}
|
11401
11421
|
),
|
11402
|
-
/* @__PURE__ */
|
11422
|
+
/* @__PURE__ */ React93.createElement(
|
11403
11423
|
Controller7,
|
11404
11424
|
{
|
11405
11425
|
name: "description",
|
11406
11426
|
control,
|
11407
11427
|
render: ({ field }) => {
|
11408
11428
|
var _a2, _b2, _c2, _d2, _e2, _f2;
|
11409
|
-
return /* @__PURE__ */
|
11429
|
+
return /* @__PURE__ */ React93.createElement(
|
11410
11430
|
Textarea,
|
11411
11431
|
{
|
11412
11432
|
helperText: formState.errors.description && ((_b2 = (_a2 = formState.errors.description) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString()),
|
@@ -11424,15 +11444,15 @@ var FeedbackForm = (props) => {
|
|
11424
11444
|
}
|
11425
11445
|
}
|
11426
11446
|
),
|
11427
|
-
/* @__PURE__ */
|
11447
|
+
/* @__PURE__ */ React93.createElement(Button, { isLoading: props.loadingSubmission, type: "submit" }, (_i = props.texts) == null ? void 0 : _i.submit)
|
11428
11448
|
))
|
11429
11449
|
);
|
11430
11450
|
};
|
11431
11451
|
|
11432
11452
|
// blocks/misc/LegalTexts.tsx
|
11433
|
-
import
|
11453
|
+
import React94 from "react";
|
11434
11454
|
var LegalTexts = ({ tabs, ...props }) => {
|
11435
|
-
return /* @__PURE__ */
|
11455
|
+
return /* @__PURE__ */ React94.createElement(
|
11436
11456
|
Tabs,
|
11437
11457
|
{
|
11438
11458
|
value: props.activeTab,
|
@@ -11440,8 +11460,8 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
11440
11460
|
defaultValue: props.defaultTab || tabs[0].value,
|
11441
11461
|
dir: props.direction
|
11442
11462
|
},
|
11443
|
-
/* @__PURE__ */
|
11444
|
-
tabs.map((tab, index) => /* @__PURE__ */
|
11463
|
+
/* @__PURE__ */ React94.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ React94.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
|
11464
|
+
tabs.map((tab, index) => /* @__PURE__ */ React94.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ React94.createElement(
|
11445
11465
|
ScrollArea,
|
11446
11466
|
{
|
11447
11467
|
className: cn(
|
@@ -11455,9 +11475,9 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
11455
11475
|
};
|
11456
11476
|
|
11457
11477
|
// blocks/misc/EmptyState.tsx
|
11458
|
-
import
|
11478
|
+
import React95 from "react";
|
11459
11479
|
var EmptyState = ({ texts, onActionClick }) => {
|
11460
|
-
return /* @__PURE__ */
|
11480
|
+
return /* @__PURE__ */ React95.createElement(Card, null, /* @__PURE__ */ React95.createElement(CardContent, { headless: true }, /* @__PURE__ */ React95.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center " }, /* @__PURE__ */ React95.createElement("div", { className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ React95.createElement(
|
11461
11481
|
"svg",
|
11462
11482
|
{
|
11463
11483
|
stroke: "currentColor",
|
@@ -11467,30 +11487,30 @@ var EmptyState = ({ texts, onActionClick }) => {
|
|
11467
11487
|
height: "0.35em",
|
11468
11488
|
width: "0.35em"
|
11469
11489
|
},
|
11470
|
-
/* @__PURE__ */
|
11471
|
-
)), /* @__PURE__ */
|
11490
|
+
/* @__PURE__ */ React95.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
11491
|
+
)), /* @__PURE__ */ React95.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.youreCaughtUp) || "You're all caught up"))), /* @__PURE__ */ React95.createElement(CardFooter, null, /* @__PURE__ */ React95.createElement(Button, { className: "hawa-w-full", onClick: () => onActionClick() }, (texts == null ? void 0 : texts.actionText) || "Go Home")));
|
11472
11492
|
};
|
11473
11493
|
|
11474
11494
|
// blocks/misc/Testimonial.tsx
|
11475
|
-
import
|
11495
|
+
import React96 from "react";
|
11476
11496
|
var Testimonial = () => {
|
11477
|
-
return /* @__PURE__ */
|
11497
|
+
return /* @__PURE__ */ React96.createElement(Card, null, /* @__PURE__ */ React96.createElement(CardContent, { headless: true }, /* @__PURE__ */ React96.createElement("div", null, /* @__PURE__ */ React96.createElement("p", { className: "mb-4 max-w-sm" }, "The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless.")), /* @__PURE__ */ React96.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ React96.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ React96.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ React96.createElement(
|
11478
11498
|
"path",
|
11479
11499
|
{
|
11480
11500
|
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",
|
11481
11501
|
fill: "#FFFFFF"
|
11482
11502
|
}
|
11483
|
-
), /* @__PURE__ */
|
11503
|
+
), /* @__PURE__ */ React96.createElement(
|
11484
11504
|
"path",
|
11485
11505
|
{
|
11486
11506
|
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",
|
11487
11507
|
fill: "#FFFFFF"
|
11488
11508
|
}
|
11489
|
-
)), /* @__PURE__ */
|
11509
|
+
)), /* @__PURE__ */ React96.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ React96.createElement("div", null, /* @__PURE__ */ React96.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ React96.createElement("div", null, " Chief Information Security Officer")))));
|
11490
11510
|
};
|
11491
11511
|
|
11492
11512
|
// blocks/misc/LeadGenerator.tsx
|
11493
|
-
import
|
11513
|
+
import React97 from "react";
|
11494
11514
|
import { useForm as useForm8, Controller as Controller8 } from "react-hook-form";
|
11495
11515
|
var LeadGenerator = ({ texts, submitHandler }) => {
|
11496
11516
|
var _a;
|
@@ -11502,14 +11522,14 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
11502
11522
|
console.log("handleNewsletterSub props was not provided");
|
11503
11523
|
}
|
11504
11524
|
};
|
11505
|
-
return /* @__PURE__ */
|
11525
|
+
return /* @__PURE__ */ React97.createElement(Card, null, /* @__PURE__ */ React97.createElement(CardHeader, null, /* @__PURE__ */ React97.createElement(CardTitle, null, texts == null ? void 0 : texts.title), /* @__PURE__ */ React97.createElement(CardDescription, null, texts == null ? void 0 : texts.subtitle)), /* @__PURE__ */ React97.createElement(CardContent, null, /* @__PURE__ */ React97.createElement(
|
11506
11526
|
"form",
|
11507
11527
|
{
|
11508
11528
|
noValidate: true,
|
11509
11529
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
11510
11530
|
onSubmit: handleSubmit(onSubmit)
|
11511
11531
|
},
|
11512
|
-
/* @__PURE__ */
|
11532
|
+
/* @__PURE__ */ React97.createElement(
|
11513
11533
|
Controller8,
|
11514
11534
|
{
|
11515
11535
|
name: "email",
|
@@ -11522,27 +11542,27 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
11522
11542
|
}
|
11523
11543
|
},
|
11524
11544
|
defaultValue: "",
|
11525
|
-
render: ({ field }) => /* @__PURE__ */
|
11545
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
|
11526
11546
|
}
|
11527
11547
|
),
|
11528
|
-
/* @__PURE__ */
|
11548
|
+
/* @__PURE__ */ React97.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
|
11529
11549
|
)));
|
11530
11550
|
};
|
11531
11551
|
|
11532
11552
|
// blocks/misc/Announcement.tsx
|
11533
|
-
import
|
11553
|
+
import React98 from "react";
|
11534
11554
|
var Announcement = ({
|
11535
11555
|
onActionClick,
|
11536
11556
|
...props
|
11537
11557
|
}) => {
|
11538
|
-
return /* @__PURE__ */
|
11558
|
+
return /* @__PURE__ */ React98.createElement(Card, null, /* @__PURE__ */ React98.createElement(
|
11539
11559
|
CardContent,
|
11540
11560
|
{
|
11541
11561
|
headless: true,
|
11542
11562
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
11543
11563
|
},
|
11544
|
-
/* @__PURE__ */
|
11545
|
-
/* @__PURE__ */
|
11564
|
+
/* @__PURE__ */ React98.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center " }, /* @__PURE__ */ React98.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ React98.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
|
11565
|
+
/* @__PURE__ */ React98.createElement(
|
11546
11566
|
Button,
|
11547
11567
|
{
|
11548
11568
|
onClick: () => onActionClick(),
|
@@ -11554,15 +11574,15 @@ var Announcement = ({
|
|
11554
11574
|
};
|
11555
11575
|
|
11556
11576
|
// blocks/misc/NotFound.tsx
|
11557
|
-
import
|
11577
|
+
import React99 from "react";
|
11558
11578
|
var NotFound = ({ texts }) => {
|
11559
|
-
return /* @__PURE__ */
|
11579
|
+
return /* @__PURE__ */ React99.createElement(Card, null, /* @__PURE__ */ React99.createElement(CardContent, { headless: true }, /* @__PURE__ */ React99.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white" }, /* @__PURE__ */ React99.createElement("div", { className: "hawa-text-center hawa-text-6xl hawa-font-bold " }, "404"), /* @__PURE__ */ React99.createElement("div", { className: "hawa-m-2 hawa-text-center hawa-text-xl hawa-font-bold " }, (texts == null ? void 0 : texts.pageNotFound) || "Page Not Found"), /* @__PURE__ */ React99.createElement("div", { className: "hawa-mb-4 hawa-text-center" }, (texts == null ? void 0 : texts.ifLost) || /* @__PURE__ */ React99.createElement(React99.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ React99.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ React99.createElement(Button, { className: "hawa-w-full" }, (texts == null ? void 0 : texts.home) || "Home"))));
|
11560
11580
|
};
|
11561
11581
|
|
11562
11582
|
// blocks/misc/NoPermission.tsx
|
11563
|
-
import
|
11583
|
+
import React100 from "react";
|
11564
11584
|
var NoPermission = ({ texts }) => {
|
11565
|
-
return /* @__PURE__ */
|
11585
|
+
return /* @__PURE__ */ React100.createElement(Card, null, /* @__PURE__ */ React100.createElement(CardContent, { headless: true }, /* @__PURE__ */ React100.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ React100.createElement("div", { className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ React100.createElement(
|
11566
11586
|
"svg",
|
11567
11587
|
{
|
11568
11588
|
stroke: "currentColor",
|
@@ -11572,12 +11592,12 @@ var NoPermission = ({ texts }) => {
|
|
11572
11592
|
height: "0.35em",
|
11573
11593
|
width: "0.35em"
|
11574
11594
|
},
|
11575
|
-
/* @__PURE__ */
|
11576
|
-
)), /* @__PURE__ */
|
11595
|
+
/* @__PURE__ */ React100.createElement("path", { d: "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z" })
|
11596
|
+
)), /* @__PURE__ */ React100.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.title) || "You don't have permission"), /* @__PURE__ */ React100.createElement("div", null, (texts == null ? void 0 : texts.subtitle) || "If you think this is a problem please contact your administrator or our customer support"))));
|
11577
11597
|
};
|
11578
11598
|
|
11579
11599
|
// blocks/misc/ContactForm.tsx
|
11580
|
-
import
|
11600
|
+
import React101 from "react";
|
11581
11601
|
import { useForm as useForm9, Controller as Controller9 } from "react-hook-form";
|
11582
11602
|
import { zodResolver as zodResolver8 } from "@hookform/resolvers/zod";
|
11583
11603
|
import * as z8 from "zod";
|
@@ -11649,7 +11669,7 @@ var ContactForm = ({
|
|
11649
11669
|
console.log("Form is submitted but onSubmit prop is missing");
|
11650
11670
|
}
|
11651
11671
|
};
|
11652
|
-
return /* @__PURE__ */
|
11672
|
+
return /* @__PURE__ */ React101.createElement(
|
11653
11673
|
Card,
|
11654
11674
|
{
|
11655
11675
|
className: cn(
|
@@ -11658,7 +11678,7 @@ var ContactForm = ({
|
|
11658
11678
|
),
|
11659
11679
|
style: cardless ? { boxShadow: "none" } : void 0
|
11660
11680
|
},
|
11661
|
-
/* @__PURE__ */
|
11681
|
+
/* @__PURE__ */ React101.createElement(CardContent, { headless: true, className: cardless ? "!hawa-p-0" : "" }, /* @__PURE__ */ React101.createElement(
|
11662
11682
|
"form",
|
11663
11683
|
{
|
11664
11684
|
noValidate: true,
|
@@ -11667,7 +11687,7 @@ var ContactForm = ({
|
|
11667
11687
|
id: formId,
|
11668
11688
|
autoComplete: formAutoComplete
|
11669
11689
|
},
|
11670
|
-
/* @__PURE__ */
|
11690
|
+
/* @__PURE__ */ React101.createElement(
|
11671
11691
|
"div",
|
11672
11692
|
{
|
11673
11693
|
className: cn(
|
@@ -11678,14 +11698,14 @@ var ContactForm = ({
|
|
11678
11698
|
}
|
11679
11699
|
)
|
11680
11700
|
},
|
11681
|
-
/* @__PURE__ */
|
11701
|
+
/* @__PURE__ */ React101.createElement(
|
11682
11702
|
Controller9,
|
11683
11703
|
{
|
11684
11704
|
control,
|
11685
11705
|
name: "name",
|
11686
11706
|
render: ({ field }) => {
|
11687
11707
|
var _a2;
|
11688
|
-
return /* @__PURE__ */
|
11708
|
+
return /* @__PURE__ */ React101.createElement(
|
11689
11709
|
Input,
|
11690
11710
|
{
|
11691
11711
|
label: (texts == null ? void 0 : texts.name.label) || "Name",
|
@@ -11698,14 +11718,14 @@ var ContactForm = ({
|
|
11698
11718
|
}
|
11699
11719
|
}
|
11700
11720
|
),
|
11701
|
-
/* @__PURE__ */
|
11721
|
+
/* @__PURE__ */ React101.createElement(
|
11702
11722
|
Controller9,
|
11703
11723
|
{
|
11704
11724
|
control,
|
11705
11725
|
name: "email",
|
11706
11726
|
render: ({ field }) => {
|
11707
11727
|
var _a2;
|
11708
|
-
return /* @__PURE__ */
|
11728
|
+
return /* @__PURE__ */ React101.createElement(
|
11709
11729
|
Input,
|
11710
11730
|
{
|
11711
11731
|
label: (texts == null ? void 0 : texts.email.label) || "Email",
|
@@ -11721,7 +11741,7 @@ var ContactForm = ({
|
|
11721
11741
|
),
|
11722
11742
|
customFields && customFields.map((customField) => {
|
11723
11743
|
console.log("custom", customField);
|
11724
|
-
return /* @__PURE__ */
|
11744
|
+
return /* @__PURE__ */ React101.createElement(
|
11725
11745
|
Controller9,
|
11726
11746
|
{
|
11727
11747
|
control,
|
@@ -11731,7 +11751,7 @@ var ContactForm = ({
|
|
11731
11751
|
switch (type) {
|
11732
11752
|
case "text":
|
11733
11753
|
case "number":
|
11734
|
-
return /* @__PURE__ */
|
11754
|
+
return /* @__PURE__ */ React101.createElement(
|
11735
11755
|
Input,
|
11736
11756
|
{
|
11737
11757
|
id: customField.name,
|
@@ -11742,7 +11762,7 @@ var ContactForm = ({
|
|
11742
11762
|
}
|
11743
11763
|
);
|
11744
11764
|
case "select":
|
11745
|
-
return /* @__PURE__ */
|
11765
|
+
return /* @__PURE__ */ React101.createElement(
|
11746
11766
|
Select,
|
11747
11767
|
{
|
11748
11768
|
label,
|
@@ -11752,20 +11772,20 @@ var ContactForm = ({
|
|
11752
11772
|
}
|
11753
11773
|
);
|
11754
11774
|
default:
|
11755
|
-
return /* @__PURE__ */
|
11775
|
+
return /* @__PURE__ */ React101.createElement("div", null, "Unknown type");
|
11756
11776
|
}
|
11757
11777
|
}
|
11758
11778
|
}
|
11759
11779
|
);
|
11760
11780
|
}),
|
11761
|
-
/* @__PURE__ */
|
11781
|
+
/* @__PURE__ */ React101.createElement(
|
11762
11782
|
Controller9,
|
11763
11783
|
{
|
11764
11784
|
control,
|
11765
11785
|
name: "message",
|
11766
11786
|
render: ({ field }) => {
|
11767
11787
|
var _a2;
|
11768
|
-
return /* @__PURE__ */
|
11788
|
+
return /* @__PURE__ */ React101.createElement(
|
11769
11789
|
Textarea,
|
11770
11790
|
{
|
11771
11791
|
label: (texts == null ? void 0 : texts.message.label) || "Message",
|
@@ -11782,19 +11802,19 @@ var ContactForm = ({
|
|
11782
11802
|
}
|
11783
11803
|
}
|
11784
11804
|
),
|
11785
|
-
/* @__PURE__ */
|
11805
|
+
/* @__PURE__ */ React101.createElement(Button, { type: "submit", className: "hawa-w-full" }, (texts == null ? void 0 : texts.submit) || "Submit")
|
11786
11806
|
))
|
11787
11807
|
);
|
11788
11808
|
};
|
11789
11809
|
|
11790
11810
|
// blocks/pricing/PricingPlans.tsx
|
11791
|
-
import
|
11811
|
+
import React107 from "react";
|
11792
11812
|
|
11793
11813
|
// blocks/cards/ActionCard.tsx
|
11794
|
-
import
|
11814
|
+
import React102, { useState as useState45 } from "react";
|
11795
11815
|
var ActionCard = (props) => {
|
11796
11816
|
const [hovered, setHovered] = useState45(false);
|
11797
|
-
return /* @__PURE__ */
|
11817
|
+
return /* @__PURE__ */ React102.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ React102.createElement(
|
11798
11818
|
"div",
|
11799
11819
|
{
|
11800
11820
|
className: "hawa-group hawa-relative hawa-h-full hawa-w-full hawa-rounded hawa-border hawa-bg-background hawa-bg-cover hawa-bg-center hawa-transition-all hawa-duration-500 hover:hawa-drop-shadow-2xl",
|
@@ -11804,7 +11824,7 @@ var ActionCard = (props) => {
|
|
11804
11824
|
onMouseEnter: () => setHovered(true),
|
11805
11825
|
onMouseLeave: () => setHovered(false)
|
11806
11826
|
},
|
11807
|
-
props.blank ? /* @__PURE__ */
|
11827
|
+
props.blank ? /* @__PURE__ */ React102.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center " }, /* @__PURE__ */ React102.createElement(
|
11808
11828
|
"svg",
|
11809
11829
|
{
|
11810
11830
|
className: "hawa-h-10 hawa-w-10 hawa-text-foreground",
|
@@ -11816,11 +11836,11 @@ var ActionCard = (props) => {
|
|
11816
11836
|
width: "1em",
|
11817
11837
|
xmlns: "http://www.w3.org/2000/svg"
|
11818
11838
|
},
|
11819
|
-
/* @__PURE__ */
|
11820
|
-
)) : /* @__PURE__ */
|
11821
|
-
/* @__PURE__ */
|
11822
|
-
!props.blank && /* @__PURE__ */
|
11823
|
-
), /* @__PURE__ */
|
11839
|
+
/* @__PURE__ */ React102.createElement("path", { d: "M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z" })
|
11840
|
+
)) : /* @__PURE__ */ React102.createElement("div", { className: "hawa-absolute hawa-inset-0 hawa-rounded hawa-bg-black hawa-opacity-50" }),
|
11841
|
+
/* @__PURE__ */ React102.createElement("div", { className: "hawa-absolute hawa-bottom-2 hawa-right-2 hawa-z-10 hawa-opacity-0 hawa-transition-all hawa-duration-200 group-hover:hawa-opacity-100" }, props.inCardActions),
|
11842
|
+
!props.blank && /* @__PURE__ */ React102.createElement("div", { className: "hawa-relative hawa-p-4" }, /* @__PURE__ */ React102.createElement("h1", { className: "hawa-text-white" }, props.title), /* @__PURE__ */ React102.createElement("p", { className: "hawa-text-white" }, props.subtitle))
|
11843
|
+
), /* @__PURE__ */ React102.createElement(
|
11824
11844
|
"div",
|
11825
11845
|
{
|
11826
11846
|
className: `hawa-flex hawa-flex-row hawa-justify-between hawa-text-sm hawa-transition-all hawa-duration-200 ${hovered ? "hawa-opacity-100" : "hawa-opacity-0"}`
|
@@ -11830,7 +11850,7 @@ var ActionCard = (props) => {
|
|
11830
11850
|
};
|
11831
11851
|
|
11832
11852
|
// blocks/cards/AdCard.tsx
|
11833
|
-
import
|
11853
|
+
import React103, { useState as useState46, useEffect as useEffect32, useRef as useRef22 } from "react";
|
11834
11854
|
var AdCard = ({
|
11835
11855
|
orientation = "vertical",
|
11836
11856
|
...props
|
@@ -11863,21 +11883,21 @@ var AdCard = ({
|
|
11863
11883
|
horizontal: "hawa-w-auto hawa-h-full hawa-bg-blue-500 hawa-rounded-inner",
|
11864
11884
|
vertical: "hawa-bg-blue-500 hawa-rounded-inner hawa-w-auto "
|
11865
11885
|
};
|
11866
|
-
return /* @__PURE__ */
|
11886
|
+
return /* @__PURE__ */ React103.createElement("div", { ref: adRef }, /* @__PURE__ */ React103.createElement(
|
11867
11887
|
"div",
|
11868
11888
|
{
|
11869
11889
|
className: cn(cardStyles[orientation], props.className),
|
11870
11890
|
onClick: props.handleClick
|
11871
11891
|
},
|
11872
|
-
/* @__PURE__ */
|
11892
|
+
/* @__PURE__ */ React103.createElement("div", { className: "hawa-flex hawa-aspect-square hawa-w-full hawa-max-w-fit hawa-items-start " }, /* @__PURE__ */ React103.createElement(
|
11873
11893
|
"img",
|
11874
11894
|
{
|
11875
11895
|
src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
|
11876
11896
|
className: imageStyles[orientation]
|
11877
11897
|
}
|
11878
11898
|
)),
|
11879
|
-
/* @__PURE__ */
|
11880
|
-
props.canHide && /* @__PURE__ */
|
11899
|
+
/* @__PURE__ */ React103.createElement("div", { className: "hawa-w-full hawa-text-xs" }, /* @__PURE__ */ React103.createElement("div", { className: "hawa-font-bold" }, props.title), /* @__PURE__ */ React103.createElement("div", { className: "hawa-text-[12px]" }, props.description)),
|
11900
|
+
props.canHide && /* @__PURE__ */ React103.createElement(
|
11881
11901
|
"span",
|
11882
11902
|
{
|
11883
11903
|
onClick: (e) => {
|
@@ -11903,7 +11923,7 @@ var AdCard = ({
|
|
11903
11923
|
};
|
11904
11924
|
|
11905
11925
|
// blocks/cards/PricingCard.tsx
|
11906
|
-
import
|
11926
|
+
import React104 from "react";
|
11907
11927
|
var PricingCard = ({
|
11908
11928
|
size = "medium",
|
11909
11929
|
direction = "ltr",
|
@@ -11918,13 +11938,13 @@ var PricingCard = ({
|
|
11918
11938
|
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
11919
11939
|
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
11920
11940
|
};
|
11921
|
-
return /* @__PURE__ */
|
11941
|
+
return /* @__PURE__ */ React104.createElement(React104.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ React104.createElement(
|
11922
11942
|
Skeleton,
|
11923
11943
|
{
|
11924
11944
|
className: cn(cardSizes[size], "hawa-h-[200px]"),
|
11925
11945
|
fade: "bottom"
|
11926
11946
|
}
|
11927
|
-
) : /* @__PURE__ */
|
11947
|
+
) : /* @__PURE__ */ React104.createElement(
|
11928
11948
|
Card,
|
11929
11949
|
{
|
11930
11950
|
dir: direction,
|
@@ -11935,7 +11955,7 @@ var PricingCard = ({
|
|
11935
11955
|
recommended ? "hawa-rounded hawa-rounded-t-none" : "hawa-rounded"
|
11936
11956
|
)
|
11937
11957
|
},
|
11938
|
-
recommended && /* @__PURE__ */
|
11958
|
+
recommended && /* @__PURE__ */ React104.createElement(
|
11939
11959
|
"div",
|
11940
11960
|
{
|
11941
11961
|
className: "hawa-absolute -hawa-left-[1px] hawa-top-0 -hawa-translate-y-full hawa-rounded-t hawa-border hawa-bg-primary hawa-p-2 hawa-text-center hawa-text-primary-foreground",
|
@@ -11943,7 +11963,7 @@ var PricingCard = ({
|
|
11943
11963
|
},
|
11944
11964
|
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
11945
11965
|
),
|
11946
|
-
/* @__PURE__ */
|
11966
|
+
/* @__PURE__ */ React104.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React104.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ React104.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ React104.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, (_c = props.texts) == null ? void 0 : _c.subtitle), props.discount && /* @__PURE__ */ React104.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ React104.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ React104.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.isLoadingPrice ? /* @__PURE__ */ React104.createElement(Skeleton, { className: "hawa-h-[48px] hawa-w-full hawa-max-w-[200px] hawa-p-0 " }) : /* @__PURE__ */ React104.createElement(React104.Fragment, null, props.noPrice ? /* @__PURE__ */ React104.createElement("div", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, ((_d = props.texts) == null ? void 0 : _d.priceless) || "Contact Us") : /* @__PURE__ */ React104.createElement(React104.Fragment, null, /* @__PURE__ */ React104.createElement(React104.Fragment, null, /* @__PURE__ */ React104.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-end hawa-gap-2" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ React104.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + ((_e = props.texts) == null ? void 0 : _e.currencyText)), /* @__PURE__ */ React104.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ React104.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, (_f = props.texts) == null ? void 0 : _f.currencyText)), /* @__PURE__ */ React104.createElement("span", { className: "hawa-ml-1 hawa-whitespace-nowrap hawa-text-xl hawa-font-normal hawa-text-primary/70" }, "/ ", (_g = props.texts) == null ? void 0 : _g.cycleText)))), endButton && /* @__PURE__ */ React104.createElement(Separator2, null), /* @__PURE__ */ React104.createElement(
|
11947
11967
|
"div",
|
11948
11968
|
{
|
11949
11969
|
className: cn(
|
@@ -11951,9 +11971,9 @@ var PricingCard = ({
|
|
11951
11971
|
endButton ? "hawa-flex-col" : "hawa-flex-col-reverse"
|
11952
11972
|
)
|
11953
11973
|
},
|
11954
|
-
props.features && /* @__PURE__ */
|
11974
|
+
props.features && /* @__PURE__ */ React104.createElement("ul", { role: "list", className: "hawa-space-y-0 hawa-overflow-x-auto" }, (_h = props.features) == null ? void 0 : _h.map((feature, o) => {
|
11955
11975
|
var _a2;
|
11956
|
-
return /* @__PURE__ */
|
11976
|
+
return /* @__PURE__ */ React104.createElement(
|
11957
11977
|
"li",
|
11958
11978
|
{
|
11959
11979
|
key: o,
|
@@ -11962,7 +11982,7 @@ var PricingCard = ({
|
|
11962
11982
|
!feature.included && "hawa-line-through"
|
11963
11983
|
)
|
11964
11984
|
},
|
11965
|
-
/* @__PURE__ */
|
11985
|
+
/* @__PURE__ */ React104.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center" }, feature.included ? /* @__PURE__ */ React104.createElement(
|
11966
11986
|
"svg",
|
11967
11987
|
{
|
11968
11988
|
"aria-label": "Check Icon",
|
@@ -11971,7 +11991,7 @@ var PricingCard = ({
|
|
11971
11991
|
fill: "currentColor",
|
11972
11992
|
viewBox: "0 0 20 20"
|
11973
11993
|
},
|
11974
|
-
/* @__PURE__ */
|
11994
|
+
/* @__PURE__ */ React104.createElement(
|
11975
11995
|
"path",
|
11976
11996
|
{
|
11977
11997
|
fillRule: "evenodd",
|
@@ -11979,7 +11999,7 @@ var PricingCard = ({
|
|
11979
11999
|
clipRule: "evenodd"
|
11980
12000
|
}
|
11981
12001
|
)
|
11982
|
-
) : /* @__PURE__ */
|
12002
|
+
) : /* @__PURE__ */ React104.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ React104.createElement("span", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-whitespace-nowrap hawa-text-start hawa-font-normal hawa-leading-tight hawa-text-primary/70 " }, feature.text, " ", feature.soon && feature.included && /* @__PURE__ */ React104.createElement(
|
11983
12003
|
Chip,
|
11984
12004
|
{
|
11985
12005
|
label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "",
|
@@ -11987,13 +12007,13 @@ var PricingCard = ({
|
|
11987
12007
|
size: "small"
|
11988
12008
|
}
|
11989
12009
|
))),
|
11990
|
-
feature.hint && /* @__PURE__ */
|
12010
|
+
feature.hint && /* @__PURE__ */ React104.createElement(
|
11991
12011
|
Tooltip,
|
11992
12012
|
{
|
11993
12013
|
content: feature.hint,
|
11994
12014
|
side: feature.hintSide
|
11995
12015
|
},
|
11996
|
-
/* @__PURE__ */
|
12016
|
+
/* @__PURE__ */ React104.createElement(
|
11997
12017
|
"svg",
|
11998
12018
|
{
|
11999
12019
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -12005,14 +12025,14 @@ var PricingCard = ({
|
|
12005
12025
|
strokeLinecap: "round",
|
12006
12026
|
strokeLinejoin: "round"
|
12007
12027
|
},
|
12008
|
-
/* @__PURE__ */
|
12009
|
-
/* @__PURE__ */
|
12010
|
-
/* @__PURE__ */
|
12028
|
+
/* @__PURE__ */ React104.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
12029
|
+
/* @__PURE__ */ React104.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
12030
|
+
/* @__PURE__ */ React104.createElement("path", { d: "M12 17h.01" })
|
12011
12031
|
)
|
12012
12032
|
)
|
12013
12033
|
);
|
12014
12034
|
})),
|
12015
|
-
/* @__PURE__ */
|
12035
|
+
/* @__PURE__ */ React104.createElement(
|
12016
12036
|
Button,
|
12017
12037
|
{
|
12018
12038
|
onClick: props.onPlanClicked,
|
@@ -12026,7 +12046,7 @@ var PricingCard = ({
|
|
12026
12046
|
};
|
12027
12047
|
|
12028
12048
|
// blocks/cards/ItemCard.tsx
|
12029
|
-
import
|
12049
|
+
import React105, { useEffect as useEffect33, useState as useState47 } from "react";
|
12030
12050
|
var ItemCard = ({
|
12031
12051
|
actions,
|
12032
12052
|
counts,
|
@@ -12068,7 +12088,7 @@ var ItemCard = ({
|
|
12068
12088
|
};
|
12069
12089
|
return () => window.onclick = null;
|
12070
12090
|
}, [openActionHeader]);
|
12071
|
-
return /* @__PURE__ */
|
12091
|
+
return /* @__PURE__ */ React105.createElement(
|
12072
12092
|
"div",
|
12073
12093
|
{
|
12074
12094
|
className: cn(
|
@@ -12084,7 +12104,7 @@ var ItemCard = ({
|
|
12084
12104
|
}
|
12085
12105
|
}
|
12086
12106
|
},
|
12087
|
-
cardImage && /* @__PURE__ */
|
12107
|
+
cardImage && /* @__PURE__ */ React105.createElement("div", { className: "hawa-group hawa-relative hawa-overflow-clip" }, /* @__PURE__ */ React105.createElement(
|
12088
12108
|
"img",
|
12089
12109
|
{
|
12090
12110
|
src: cardImage,
|
@@ -12093,7 +12113,7 @@ var ItemCard = ({
|
|
12093
12113
|
clickableImage ? "hawa-overflow-clip hawa-transition-all group-hover:hawa-blur-lg" : ""
|
12094
12114
|
)
|
12095
12115
|
}
|
12096
|
-
), clickableImage && /* @__PURE__ */
|
12116
|
+
), clickableImage && /* @__PURE__ */ React105.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React105.createElement("div", { className: "hawa-absolute hawa-left-0 hawa-top-0 hawa-flex hawa-h-full hawa-w-full hawa-items-center hawa-justify-center hawa-opacity-0 hawa-transition-all group-hover:hawa-opacity-100 " }, /* @__PURE__ */ React105.createElement(
|
12097
12117
|
Button,
|
12098
12118
|
{
|
12099
12119
|
variant: "secondary",
|
@@ -12103,19 +12123,19 @@ var ItemCard = ({
|
|
12103
12123
|
clickableImageActionIcon,
|
12104
12124
|
clickableImageActionText || "Click"
|
12105
12125
|
)))),
|
12106
|
-
/* @__PURE__ */
|
12126
|
+
/* @__PURE__ */ React105.createElement("div", { className: "hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-justify-between hawa-p-4 xs:hawa-p-6 xs:hawa-px-2 xs:hawa-pb-2" }, headerActions && /* @__PURE__ */ React105.createElement("div", { className: "hawa-absolute hawa-end-0 hawa-top-0 hawa-flex hawa-justify-end hawa-pe-3 hawa-pt-3" }, /* @__PURE__ */ React105.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React105.createElement(
|
12107
12127
|
DropdownMenu,
|
12108
12128
|
{
|
12109
12129
|
items: headerActions,
|
12110
|
-
trigger: /* @__PURE__ */
|
12130
|
+
trigger: /* @__PURE__ */ React105.createElement(
|
12111
12131
|
Button,
|
12112
12132
|
{
|
12113
12133
|
variant: "ghost",
|
12114
12134
|
size: "smallIcon",
|
12115
12135
|
onClick: handleOpenActionHeader
|
12116
12136
|
},
|
12117
|
-
/* @__PURE__ */
|
12118
|
-
/* @__PURE__ */
|
12137
|
+
/* @__PURE__ */ React105.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"),
|
12138
|
+
/* @__PURE__ */ React105.createElement(
|
12119
12139
|
"svg",
|
12120
12140
|
{
|
12121
12141
|
className: "hawa-h-5 hawa-w-5",
|
@@ -12123,11 +12143,11 @@ var ItemCard = ({
|
|
12123
12143
|
fill: "currentColor",
|
12124
12144
|
viewBox: "0 0 20 20"
|
12125
12145
|
},
|
12126
|
-
/* @__PURE__ */
|
12146
|
+
/* @__PURE__ */ React105.createElement("path", { d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" })
|
12127
12147
|
)
|
12128
12148
|
)
|
12129
12149
|
}
|
12130
|
-
))), /* @__PURE__ */
|
12150
|
+
))), /* @__PURE__ */ React105.createElement("div", { className: " hawa-mx-2" }, header && /* @__PURE__ */ React105.createElement("h5", { className: "hawa-mb-2 hawa-text-2xl hawa-font-bold hawa-tracking-tight " }, header), content && /* @__PURE__ */ React105.createElement("span", { className: "hawa-w-full hawa-font-normal " }, content)), actions || counts ? /* @__PURE__ */ React105.createElement(
|
12131
12151
|
"div",
|
12132
12152
|
{
|
12133
12153
|
className: cn(
|
@@ -12137,15 +12157,15 @@ var ItemCard = ({
|
|
12137
12157
|
)
|
12138
12158
|
},
|
12139
12159
|
counts,
|
12140
|
-
/* @__PURE__ */
|
12160
|
+
/* @__PURE__ */ React105.createElement(StopPropagationWrapper, null, actions)
|
12141
12161
|
) : null)
|
12142
12162
|
);
|
12143
12163
|
};
|
12144
12164
|
|
12145
12165
|
// blocks/cards/LandingCard.tsx
|
12146
|
-
import
|
12166
|
+
import React106 from "react";
|
12147
12167
|
var LandingCard = (props) => {
|
12148
|
-
return /* @__PURE__ */
|
12168
|
+
return /* @__PURE__ */ React106.createElement(Card, { className: props.className }, /* @__PURE__ */ React106.createElement(CardHeader, null, props.icon, /* @__PURE__ */ React106.createElement(CardTitle, null, props.title), /* @__PURE__ */ React106.createElement(CardDescription, null, props.subtitle)));
|
12149
12169
|
};
|
12150
12170
|
|
12151
12171
|
// blocks/pricing/PricingPlans.tsx
|
@@ -12154,7 +12174,7 @@ var PricingPlans = ({
|
|
12154
12174
|
cardsContainerProps,
|
12155
12175
|
...props
|
12156
12176
|
}) => {
|
12157
|
-
return /* @__PURE__ */
|
12177
|
+
return /* @__PURE__ */ React107.createElement("div", { ...mainContainerProps }, /* @__PURE__ */ React107.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ React107.createElement(
|
12158
12178
|
Radio,
|
12159
12179
|
{
|
12160
12180
|
name: "cycle",
|
@@ -12167,7 +12187,7 @@ var PricingPlans = ({
|
|
12167
12187
|
}
|
12168
12188
|
}
|
12169
12189
|
}
|
12170
|
-
), /* @__PURE__ */
|
12190
|
+
), /* @__PURE__ */ React107.createElement(
|
12171
12191
|
Radio,
|
12172
12192
|
{
|
12173
12193
|
name: "currency",
|
@@ -12180,7 +12200,7 @@ var PricingPlans = ({
|
|
12180
12200
|
}
|
12181
12201
|
}
|
12182
12202
|
}
|
12183
|
-
)), /* @__PURE__ */
|
12203
|
+
)), /* @__PURE__ */ React107.createElement(
|
12184
12204
|
"div",
|
12185
12205
|
{
|
12186
12206
|
className: "hawa-inline-grid hawa-w-full hawa-grid-cols-[repeat(auto-fit,_minmax(300px,_1fr))] hawa-gap-4",
|
@@ -12188,7 +12208,7 @@ var PricingPlans = ({
|
|
12188
12208
|
},
|
12189
12209
|
props.plans.map((plan, index) => {
|
12190
12210
|
var _a, _b;
|
12191
|
-
return /* @__PURE__ */
|
12211
|
+
return /* @__PURE__ */ React107.createElement(
|
12192
12212
|
PricingCard,
|
12193
12213
|
{
|
12194
12214
|
key: index,
|
@@ -12219,7 +12239,7 @@ var PricingPlans = ({
|
|
12219
12239
|
};
|
12220
12240
|
|
12221
12241
|
// blocks/pricing/ComparingPlans.tsx
|
12222
|
-
import
|
12242
|
+
import React108 from "react";
|
12223
12243
|
var ComparingPlans = (props) => {
|
12224
12244
|
const uniqueFeatures = Array.from(
|
12225
12245
|
new Set(
|
@@ -12228,7 +12248,7 @@ var ComparingPlans = (props) => {
|
|
12228
12248
|
)
|
12229
12249
|
)
|
12230
12250
|
);
|
12231
|
-
return /* @__PURE__ */
|
12251
|
+
return /* @__PURE__ */ React108.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ React108.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-flex-col hawa-justify-between hawa-gap-2 sm:hawa-flex-row" }, /* @__PURE__ */ React108.createElement(
|
12232
12252
|
Radio,
|
12233
12253
|
{
|
12234
12254
|
name: "cycle",
|
@@ -12243,7 +12263,7 @@ var ComparingPlans = (props) => {
|
|
12243
12263
|
}
|
12244
12264
|
}
|
12245
12265
|
}
|
12246
|
-
), /* @__PURE__ */
|
12266
|
+
), /* @__PURE__ */ React108.createElement(
|
12247
12267
|
Radio,
|
12248
12268
|
{
|
12249
12269
|
name: "currency",
|
@@ -12258,7 +12278,7 @@ var ComparingPlans = (props) => {
|
|
12258
12278
|
}
|
12259
12279
|
}
|
12260
12280
|
}
|
12261
|
-
)), /* @__PURE__ */
|
12281
|
+
)), /* @__PURE__ */ React108.createElement(
|
12262
12282
|
"div",
|
12263
12283
|
{
|
12264
12284
|
className: cn(
|
@@ -12269,16 +12289,16 @@ var ComparingPlans = (props) => {
|
|
12269
12289
|
top: props.topPosition || 0
|
12270
12290
|
}
|
12271
12291
|
},
|
12272
|
-
/* @__PURE__ */
|
12273
|
-
props.plans.map((plan, i) => /* @__PURE__ */
|
12292
|
+
/* @__PURE__ */ React108.createElement("div", { className: "hawa-flex hawa-items-center" }),
|
12293
|
+
props.plans.map((plan, i) => /* @__PURE__ */ React108.createElement(
|
12274
12294
|
"div",
|
12275
12295
|
{
|
12276
12296
|
key: i,
|
12277
12297
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2"
|
12278
12298
|
},
|
12279
|
-
/* @__PURE__ */
|
12299
|
+
/* @__PURE__ */ React108.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React108.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React108.createElement("span", { className: "hawa-text-md hawa-font-bold " }, plan.texts.title), /* @__PURE__ */ React108.createElement("span", { className: "hawa-text-md hawa-font-normal hawa-text-muted-foreground " }, plan.texts.subtitle)), /* @__PURE__ */ React108.createElement("div", { className: " hawa-flex hawa-items-baseline " }, /* @__PURE__ */ React108.createElement(React108.Fragment, null, /* @__PURE__ */ React108.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, plan.price), /* @__PURE__ */ React108.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ React108.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal " }, "/ ", plan.texts.cycleText)))
|
12280
12300
|
))
|
12281
|
-
), /* @__PURE__ */
|
12301
|
+
), /* @__PURE__ */ React108.createElement(
|
12282
12302
|
ScrollArea,
|
12283
12303
|
{
|
12284
12304
|
className: "hawa-h-fit hawa-rounded hawa-rounded-t-none hawa-border hawa-border-t-0 hawa-bg-background",
|
@@ -12286,7 +12306,7 @@ var ComparingPlans = (props) => {
|
|
12286
12306
|
},
|
12287
12307
|
uniqueFeatures.map((featureText, featureIndex) => {
|
12288
12308
|
var _a, _b, _c, _d;
|
12289
|
-
return /* @__PURE__ */
|
12309
|
+
return /* @__PURE__ */ React108.createElement(
|
12290
12310
|
"div",
|
12291
12311
|
{
|
12292
12312
|
key: featureIndex,
|
@@ -12295,11 +12315,11 @@ var ComparingPlans = (props) => {
|
|
12295
12315
|
featureIndex === 0 ? "" : "hawa-border-t"
|
12296
12316
|
)
|
12297
12317
|
},
|
12298
|
-
/* @__PURE__ */
|
12318
|
+
/* @__PURE__ */ React108.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-foreground" }, featureText, props.plans.some(
|
12299
12319
|
(plan) => plan.features.some(
|
12300
12320
|
(feature) => feature.text === featureText && feature.hint
|
12301
12321
|
)
|
12302
|
-
) && /* @__PURE__ */
|
12322
|
+
) && /* @__PURE__ */ React108.createElement(
|
12303
12323
|
Tooltip,
|
12304
12324
|
{
|
12305
12325
|
side: "right",
|
@@ -12314,7 +12334,7 @@ var ComparingPlans = (props) => {
|
|
12314
12334
|
(feature) => feature.text === featureText
|
12315
12335
|
)) == null ? void 0 : _b.hint
|
12316
12336
|
},
|
12317
|
-
/* @__PURE__ */
|
12337
|
+
/* @__PURE__ */ React108.createElement(
|
12318
12338
|
"svg",
|
12319
12339
|
{
|
12320
12340
|
stroke: "currentColor",
|
@@ -12324,13 +12344,13 @@ var ComparingPlans = (props) => {
|
|
12324
12344
|
height: "1em",
|
12325
12345
|
width: "1em"
|
12326
12346
|
},
|
12327
|
-
/* @__PURE__ */
|
12347
|
+
/* @__PURE__ */ React108.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
|
12328
12348
|
)
|
12329
12349
|
), props.plans.some(
|
12330
12350
|
(plan) => plan.features.some(
|
12331
12351
|
(feature) => feature.text === featureText && feature.soon
|
12332
12352
|
)
|
12333
|
-
) && /* @__PURE__ */
|
12353
|
+
) && /* @__PURE__ */ React108.createElement(
|
12334
12354
|
Chip,
|
12335
12355
|
{
|
12336
12356
|
label: ((_d = (_c = props.plans.find(
|
@@ -12344,26 +12364,26 @@ var ComparingPlans = (props) => {
|
|
12344
12364
|
const feature = plan.features.find(
|
12345
12365
|
(f) => f.text === featureText
|
12346
12366
|
);
|
12347
|
-
return /* @__PURE__ */
|
12367
|
+
return /* @__PURE__ */ React108.createElement(
|
12348
12368
|
"div",
|
12349
12369
|
{
|
12350
12370
|
key: planIndex,
|
12351
12371
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-text-center"
|
12352
12372
|
},
|
12353
|
-
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */
|
12373
|
+
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */ React108.createElement(CheckMark, { className: "hawa-text-foreground" }) : /* @__PURE__ */ React108.createElement(UncheckMark, { className: "hawa-text-foreground" })
|
12354
12374
|
);
|
12355
12375
|
})
|
12356
12376
|
);
|
12357
12377
|
})
|
12358
|
-
), props.showButtons && /* @__PURE__ */
|
12378
|
+
), props.showButtons && /* @__PURE__ */ React108.createElement("div", { className: "hawa-grid hawa-grid-cols-[1fr_repeat(3,_minmax(0,_1fr))] hawa-gap-x-16 hawa-px-4 hawa-py-5" }, /* @__PURE__ */ React108.createElement("div", { className: "hawa-flex hawa-items-center" }), props.plans.map((plan, i) => {
|
12359
12379
|
var _a;
|
12360
|
-
return /* @__PURE__ */
|
12380
|
+
return /* @__PURE__ */ React108.createElement(
|
12361
12381
|
"div",
|
12362
12382
|
{
|
12363
12383
|
key: i,
|
12364
12384
|
className: "hawa-flex hawa-items-center hawa-justify-center"
|
12365
12385
|
},
|
12366
|
-
/* @__PURE__ */
|
12386
|
+
/* @__PURE__ */ React108.createElement(
|
12367
12387
|
Button,
|
12368
12388
|
{
|
12369
12389
|
className: "hawa-w-full hawa-max-w-xs",
|
@@ -12387,7 +12407,7 @@ var ComparingPlans = (props) => {
|
|
12387
12407
|
};
|
12388
12408
|
|
12389
12409
|
// blocks/pricing/HorizontalPricing.tsx
|
12390
|
-
import
|
12410
|
+
import React109, { useState as useState48 } from "react";
|
12391
12411
|
var HorizontalPricing = (props) => {
|
12392
12412
|
const [selectedCard, setSelectedCard] = useState48("");
|
12393
12413
|
let data = [
|
@@ -12395,7 +12415,7 @@ var HorizontalPricing = (props) => {
|
|
12395
12415
|
{ title: "business", price: "$99", cycle: "/mo" },
|
12396
12416
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
12397
12417
|
];
|
12398
|
-
return /* @__PURE__ */
|
12418
|
+
return /* @__PURE__ */ React109.createElement("div", { className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm" }, /* @__PURE__ */ React109.createElement("div", { className: "hawa-max-w-2xl " }, /* @__PURE__ */ React109.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ React109.createElement(
|
12399
12419
|
Radio,
|
12400
12420
|
{
|
12401
12421
|
name: "currency",
|
@@ -12403,7 +12423,7 @@ var HorizontalPricing = (props) => {
|
|
12403
12423
|
options: props.currencies,
|
12404
12424
|
defaultValue: props.currentCurrency
|
12405
12425
|
}
|
12406
|
-
), /* @__PURE__ */
|
12426
|
+
), /* @__PURE__ */ React109.createElement(
|
12407
12427
|
Radio,
|
12408
12428
|
{
|
12409
12429
|
name: "cycle",
|
@@ -12411,7 +12431,7 @@ var HorizontalPricing = (props) => {
|
|
12411
12431
|
options: props.billingCycles,
|
12412
12432
|
defaultValue: props.currentCycle
|
12413
12433
|
}
|
12414
|
-
)), data.map((d, i) => /* @__PURE__ */
|
12434
|
+
)), data.map((d, i) => /* @__PURE__ */ React109.createElement(
|
12415
12435
|
"label",
|
12416
12436
|
{
|
12417
12437
|
key: i,
|
@@ -12419,7 +12439,7 @@ var HorizontalPricing = (props) => {
|
|
12419
12439
|
className: "",
|
12420
12440
|
onClick: () => setSelectedCard(d.title)
|
12421
12441
|
},
|
12422
|
-
/* @__PURE__ */
|
12442
|
+
/* @__PURE__ */ React109.createElement(
|
12423
12443
|
"input",
|
12424
12444
|
{
|
12425
12445
|
type: "radio",
|
@@ -12428,7 +12448,7 @@ var HorizontalPricing = (props) => {
|
|
12428
12448
|
className: "hawa-peer hawa-appearance-none"
|
12429
12449
|
}
|
12430
12450
|
),
|
12431
|
-
/* @__PURE__ */
|
12451
|
+
/* @__PURE__ */ React109.createElement(
|
12432
12452
|
"div",
|
12433
12453
|
{
|
12434
12454
|
className: cn(
|
@@ -12436,18 +12456,18 @@ var HorizontalPricing = (props) => {
|
|
12436
12456
|
"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"
|
12437
12457
|
)
|
12438
12458
|
},
|
12439
|
-
/* @__PURE__ */
|
12459
|
+
/* @__PURE__ */ React109.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ React109.createElement(CheckIcons, null), /* @__PURE__ */ React109.createElement(
|
12440
12460
|
CardText,
|
12441
12461
|
{
|
12442
12462
|
title: "Enterprise",
|
12443
12463
|
subtitle: "For startups and new businesses"
|
12444
12464
|
}
|
12445
12465
|
)),
|
12446
|
-
/* @__PURE__ */
|
12466
|
+
/* @__PURE__ */ React109.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
12447
12467
|
)
|
12448
12468
|
))));
|
12449
12469
|
};
|
12450
|
-
var CheckIcons = () => /* @__PURE__ */
|
12470
|
+
var CheckIcons = () => /* @__PURE__ */ React109.createElement(React109.Fragment, null, /* @__PURE__ */ React109.createElement(
|
12451
12471
|
"svg",
|
12452
12472
|
{
|
12453
12473
|
fill: "none",
|
@@ -12456,7 +12476,7 @@ var CheckIcons = () => /* @__PURE__ */ React108.createElement(React108.Fragment,
|
|
12456
12476
|
stroke: "currentColor",
|
12457
12477
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
12458
12478
|
},
|
12459
|
-
/* @__PURE__ */
|
12479
|
+
/* @__PURE__ */ React109.createElement(
|
12460
12480
|
"path",
|
12461
12481
|
{
|
12462
12482
|
strokeLinecap: "round",
|
@@ -12464,14 +12484,14 @@ var CheckIcons = () => /* @__PURE__ */ React108.createElement(React108.Fragment,
|
|
12464
12484
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
12465
12485
|
}
|
12466
12486
|
)
|
12467
|
-
), /* @__PURE__ */
|
12487
|
+
), /* @__PURE__ */ React109.createElement(
|
12468
12488
|
"svg",
|
12469
12489
|
{
|
12470
12490
|
viewBox: "0 0 24 24",
|
12471
12491
|
fill: "currentColor",
|
12472
12492
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
12473
12493
|
},
|
12474
|
-
/* @__PURE__ */
|
12494
|
+
/* @__PURE__ */ React109.createElement(
|
12475
12495
|
"path",
|
12476
12496
|
{
|
12477
12497
|
fillRule: "evenodd",
|
@@ -12480,14 +12500,14 @@ var CheckIcons = () => /* @__PURE__ */ React108.createElement(React108.Fragment,
|
|
12480
12500
|
}
|
12481
12501
|
)
|
12482
12502
|
));
|
12483
|
-
var CardText = (props) => /* @__PURE__ */
|
12484
|
-
var CardPrice = (props) => /* @__PURE__ */
|
12503
|
+
var CardText = (props) => /* @__PURE__ */ React109.createElement("div", { className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start " }, /* @__PURE__ */ React109.createElement("h2", { className: "hawa-font-medium hawa-text-primary/90 sm:hawa-text-xl" }, props.title), /* @__PURE__ */ React109.createElement("p", { className: "hawa-text-sm hawa-text-primary/60" }, props.subtitle, " "));
|
12504
|
+
var CardPrice = (props) => /* @__PURE__ */ React109.createElement("h2", { className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-primary sm:hawa-text-2xl" }, props.amount, /* @__PURE__ */ React109.createElement("span", { className: "hawa-text-base hawa-font-medium hawa-text-neutral-400" }, props.cycle));
|
12485
12505
|
|
12486
12506
|
// blocks/Usage.tsx
|
12487
|
-
import
|
12507
|
+
import React110 from "react";
|
12488
12508
|
var Usage = (props) => {
|
12489
12509
|
var _a;
|
12490
|
-
return /* @__PURE__ */
|
12510
|
+
return /* @__PURE__ */ React110.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-1 hawa-rounded hawa-border hawa-bg-card hawa-p-4" }, /* @__PURE__ */ React110.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, /* @__PURE__ */ React110.createElement("span", { className: "hawa-bg-white-200" }, props.title), props.tooltip && /* @__PURE__ */ React110.createElement(Tooltip, { content: props.tooltip }, /* @__PURE__ */ React110.createElement(
|
12491
12511
|
"svg",
|
12492
12512
|
{
|
12493
12513
|
stroke: "currentColor",
|
@@ -12498,8 +12518,8 @@ var Usage = (props) => {
|
|
12498
12518
|
height: "1em",
|
12499
12519
|
width: "1em"
|
12500
12520
|
},
|
12501
|
-
/* @__PURE__ */
|
12502
|
-
))), /* @__PURE__ */
|
12521
|
+
/* @__PURE__ */ React110.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
|
12522
|
+
))), /* @__PURE__ */ React110.createElement("div", { className: "hawa-bg-white-100 hawa-flex hawa-flex-row" }, /* @__PURE__ */ React110.createElement("div", null, props.currentUsage), /* @__PURE__ */ React110.createElement("div", null, " (", props.percent, "%)")), /* @__PURE__ */ React110.createElement(Progress, { value: (_a = props.percent) != null ? _a : 0 }));
|
12503
12523
|
};
|
12504
12524
|
export {
|
12505
12525
|
Accordion,
|