@sikka/hawa 0.31.9-next → 0.31.11-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.js +144 -132
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +139 -127
- 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.js +730 -718
- package/dist/index.mjs +660 -648
- package/dist/layout/index.js +252 -240
- package/dist/layout/index.mjs +9 -15
- 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 +16 -14
- /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,
|
@@ -8856,11 +8875,15 @@ var AppLayout = ({
|
|
8856
8875
|
lg: closeDrawerWidth
|
8857
8876
|
}
|
8858
8877
|
};
|
8859
|
-
const
|
8878
|
+
const drawerRef = useRef18(null);
|
8860
8879
|
const isRTL = direction === "rtl";
|
8861
8880
|
const [openedSidebarItem, setOpenedSidebarItem] = useState36("");
|
8862
8881
|
const [size, setSize] = useState36(1200);
|
8863
8882
|
const [openSideMenu, setOpenSideMenu] = useState36(true);
|
8883
|
+
const handleClickOutside = () => {
|
8884
|
+
setOpenSideMenu(false);
|
8885
|
+
};
|
8886
|
+
const ref = useOutsideClick_default(handleClickOutside);
|
8864
8887
|
const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
|
8865
8888
|
useEffect28(() => {
|
8866
8889
|
if (typeof window !== "undefined") {
|
@@ -8881,18 +8904,7 @@ var AppLayout = ({
|
|
8881
8904
|
setOpenSideMenu(false);
|
8882
8905
|
}
|
8883
8906
|
}, [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(
|
8907
|
+
return /* @__PURE__ */ React76.createElement("div", { className: "hawa-fixed hawa-left-0" }, props.topBar && /* @__PURE__ */ React76.createElement(
|
8896
8908
|
"div",
|
8897
8909
|
{
|
8898
8910
|
className: cn(
|
@@ -8901,7 +8913,7 @@ var AppLayout = ({
|
|
8901
8913
|
bordered && "hawa-border-b-[1px]"
|
8902
8914
|
)
|
8903
8915
|
},
|
8904
|
-
size > 600 ? /* @__PURE__ */
|
8916
|
+
size > 600 ? /* @__PURE__ */ React76.createElement(
|
8905
8917
|
"div",
|
8906
8918
|
{
|
8907
8919
|
className: cn(
|
@@ -8923,24 +8935,24 @@ var AppLayout = ({
|
|
8923
8935
|
props.pageTitle
|
8924
8936
|
) : (
|
8925
8937
|
// Mobile Drawer Menu Button
|
8926
|
-
/* @__PURE__ */
|
8938
|
+
/* @__PURE__ */ React76.createElement(
|
8927
8939
|
"div",
|
8928
8940
|
{
|
8929
8941
|
dir: direction,
|
8930
8942
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
8931
8943
|
},
|
8932
|
-
/* @__PURE__ */
|
8944
|
+
/* @__PURE__ */ React76.createElement(
|
8933
8945
|
"div",
|
8934
8946
|
{
|
8935
8947
|
onClick: () => setOpenSideMenu(true),
|
8936
8948
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
8937
8949
|
},
|
8938
|
-
/* @__PURE__ */
|
8950
|
+
/* @__PURE__ */ React76.createElement(MenuIcon, null)
|
8939
8951
|
),
|
8940
|
-
props.pageTitle ? /* @__PURE__ */
|
8952
|
+
props.pageTitle ? /* @__PURE__ */ React76.createElement("div", { className: "hawa-text-sm" }, props.pageTitle) : /* @__PURE__ */ React76.createElement("div", null)
|
8941
8953
|
)
|
8942
8954
|
),
|
8943
|
-
/* @__PURE__ */
|
8955
|
+
/* @__PURE__ */ React76.createElement(
|
8944
8956
|
"div",
|
8945
8957
|
{
|
8946
8958
|
className: cn(
|
@@ -8948,16 +8960,16 @@ var AppLayout = ({
|
|
8948
8960
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
8949
8961
|
)
|
8950
8962
|
},
|
8951
|
-
size > 600 ? /* @__PURE__ */
|
8963
|
+
size > 600 ? /* @__PURE__ */ React76.createElement(
|
8952
8964
|
"div",
|
8953
8965
|
{
|
8954
8966
|
className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
|
8955
8967
|
},
|
8956
|
-
/* @__PURE__ */
|
8968
|
+
/* @__PURE__ */ React76.createElement("div", { className: "hawa-font-bold" }, props.username),
|
8957
8969
|
" ",
|
8958
|
-
/* @__PURE__ */
|
8970
|
+
/* @__PURE__ */ React76.createElement("div", null, props.email)
|
8959
8971
|
) : null,
|
8960
|
-
/* @__PURE__ */
|
8972
|
+
/* @__PURE__ */ React76.createElement(
|
8961
8973
|
DropdownMenu,
|
8962
8974
|
{
|
8963
8975
|
LinkComponent: MenuLinkComponent,
|
@@ -8970,7 +8982,7 @@ var AppLayout = ({
|
|
8970
8982
|
direction: isRTL ? "rtl" : "ltr",
|
8971
8983
|
items: props.profileMenuItems || [],
|
8972
8984
|
onItemSelect: (e) => console.log("selecting item ", e),
|
8973
|
-
trigger: /* @__PURE__ */
|
8985
|
+
trigger: /* @__PURE__ */ React76.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__ */ React76.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ React76.createElement(
|
8974
8986
|
"svg",
|
8975
8987
|
{
|
8976
8988
|
"aria-label": "Avatar Icon",
|
@@ -8978,7 +8990,7 @@ var AppLayout = ({
|
|
8978
8990
|
fill: "currentColor",
|
8979
8991
|
viewBox: "0 0 20 20"
|
8980
8992
|
},
|
8981
|
-
/* @__PURE__ */
|
8993
|
+
/* @__PURE__ */ React76.createElement(
|
8982
8994
|
"path",
|
8983
8995
|
{
|
8984
8996
|
fillRule: "evenodd",
|
@@ -8990,11 +9002,11 @@ var AppLayout = ({
|
|
8990
9002
|
}
|
8991
9003
|
)
|
8992
9004
|
)
|
8993
|
-
), /* @__PURE__ */
|
9005
|
+
), /* @__PURE__ */ React76.createElement(
|
8994
9006
|
"div",
|
8995
9007
|
{
|
8996
9008
|
className: cn(
|
8997
|
-
"hawa-fixed hawa-z-0 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all",
|
9009
|
+
"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
9010
|
isRTL ? "hawa-right-0 hawa-top-0 hawa-h-14" : "hawa-left-0 hawa-top-0 hawa-h-14",
|
8999
9011
|
"hawa-h-[calc(100dvh)]",
|
9000
9012
|
"hawa-bg-primary-foreground",
|
@@ -9020,7 +9032,7 @@ var AppLayout = ({
|
|
9020
9032
|
},
|
9021
9033
|
ref
|
9022
9034
|
},
|
9023
|
-
/* @__PURE__ */
|
9035
|
+
/* @__PURE__ */ React76.createElement(
|
9024
9036
|
"div",
|
9025
9037
|
{
|
9026
9038
|
onClick: props.onLogoClick,
|
@@ -9035,7 +9047,7 @@ var AppLayout = ({
|
|
9035
9047
|
}
|
9036
9048
|
},
|
9037
9049
|
openSideMenu && props.header && props.header,
|
9038
|
-
!props.header && /* @__PURE__ */
|
9050
|
+
!props.header && /* @__PURE__ */ React76.createElement(
|
9039
9051
|
"img",
|
9040
9052
|
{
|
9041
9053
|
className: cn(
|
@@ -9046,7 +9058,7 @@ var AppLayout = ({
|
|
9046
9058
|
src: props.logoLink
|
9047
9059
|
}
|
9048
9060
|
),
|
9049
|
-
size > 600 ? /* @__PURE__ */
|
9061
|
+
size > 600 ? /* @__PURE__ */ React76.createElement(
|
9050
9062
|
"img",
|
9051
9063
|
{
|
9052
9064
|
className: cn(
|
@@ -9059,7 +9071,7 @@ var AppLayout = ({
|
|
9059
9071
|
}
|
9060
9072
|
) : null
|
9061
9073
|
),
|
9062
|
-
/* @__PURE__ */
|
9074
|
+
/* @__PURE__ */ React76.createElement(
|
9063
9075
|
"div",
|
9064
9076
|
{
|
9065
9077
|
className: cn(
|
@@ -9070,7 +9082,7 @@ var AppLayout = ({
|
|
9070
9082
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : drawerSizeCondition}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
9071
9083
|
}
|
9072
9084
|
},
|
9073
|
-
/* @__PURE__ */
|
9085
|
+
/* @__PURE__ */ React76.createElement(
|
9074
9086
|
SidebarGroup,
|
9075
9087
|
{
|
9076
9088
|
direction,
|
@@ -9093,7 +9105,7 @@ var AppLayout = ({
|
|
9093
9105
|
}
|
9094
9106
|
)
|
9095
9107
|
),
|
9096
|
-
/* @__PURE__ */
|
9108
|
+
/* @__PURE__ */ React76.createElement(
|
9097
9109
|
"div",
|
9098
9110
|
{
|
9099
9111
|
className: cn(
|
@@ -9104,8 +9116,8 @@ var AppLayout = ({
|
|
9104
9116
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
9105
9117
|
}
|
9106
9118
|
},
|
9107
|
-
DrawerFooterActions && openSideMenu ? /* @__PURE__ */
|
9108
|
-
size > 600 && openSideMenu ? /* @__PURE__ */
|
9119
|
+
DrawerFooterActions && openSideMenu ? /* @__PURE__ */ React76.createElement(React76.Fragment, null, DrawerFooterActions) : null,
|
9120
|
+
size > 600 && openSideMenu ? /* @__PURE__ */ React76.createElement(
|
9109
9121
|
Tooltip,
|
9110
9122
|
{
|
9111
9123
|
side: "left",
|
@@ -9113,7 +9125,7 @@ var AppLayout = ({
|
|
9113
9125
|
content: keepOpen ? ((_a = props.texts) == null ? void 0 : _a.collapseSidebar) || "Collapse Sidebar" : ((_b = props.texts) == null ? void 0 : _b.expandSidebar) || "Expand Sidebar",
|
9114
9126
|
triggerProps: { asChild: true }
|
9115
9127
|
},
|
9116
|
-
/* @__PURE__ */
|
9128
|
+
/* @__PURE__ */ React76.createElement(
|
9117
9129
|
Button,
|
9118
9130
|
{
|
9119
9131
|
variant: "outline",
|
@@ -9126,7 +9138,7 @@ var AppLayout = ({
|
|
9126
9138
|
},
|
9127
9139
|
size: "smallIcon"
|
9128
9140
|
},
|
9129
|
-
/* @__PURE__ */
|
9141
|
+
/* @__PURE__ */ React76.createElement(
|
9130
9142
|
"svg",
|
9131
9143
|
{
|
9132
9144
|
className: cn(
|
@@ -9136,7 +9148,7 @@ var AppLayout = ({
|
|
9136
9148
|
fill: "currentColor",
|
9137
9149
|
viewBox: "0 0 20 20"
|
9138
9150
|
},
|
9139
|
-
/* @__PURE__ */
|
9151
|
+
/* @__PURE__ */ React76.createElement(
|
9140
9152
|
"path",
|
9141
9153
|
{
|
9142
9154
|
fillRule: "evenodd",
|
@@ -9148,7 +9160,7 @@ var AppLayout = ({
|
|
9148
9160
|
)
|
9149
9161
|
) : null
|
9150
9162
|
)
|
9151
|
-
), /* @__PURE__ */
|
9163
|
+
), /* @__PURE__ */ React76.createElement(
|
9152
9164
|
"div",
|
9153
9165
|
{
|
9154
9166
|
className: "hawa-fixed -hawa-z-10 hawa-overflow-y-auto hawa-transition-all",
|
@@ -9167,7 +9179,7 @@ var AppLayout = ({
|
|
9167
9179
|
props.children
|
9168
9180
|
));
|
9169
9181
|
};
|
9170
|
-
var MenuIcon = () => /* @__PURE__ */
|
9182
|
+
var MenuIcon = () => /* @__PURE__ */ React76.createElement(
|
9171
9183
|
"svg",
|
9172
9184
|
{
|
9173
9185
|
"aria-label": "Menu Button",
|
@@ -9179,7 +9191,7 @@ var MenuIcon = () => /* @__PURE__ */ React75.createElement(
|
|
9179
9191
|
height: "1.6em",
|
9180
9192
|
width: "1.6em"
|
9181
9193
|
},
|
9182
|
-
/* @__PURE__ */
|
9194
|
+
/* @__PURE__ */ React76.createElement(
|
9183
9195
|
"path",
|
9184
9196
|
{
|
9185
9197
|
fillRule: "evenodd",
|
@@ -9190,11 +9202,11 @@ var MenuIcon = () => /* @__PURE__ */ React75.createElement(
|
|
9190
9202
|
);
|
9191
9203
|
|
9192
9204
|
// layout/appTopbar/AppTopbar.tsx
|
9193
|
-
import
|
9205
|
+
import React77 from "react";
|
9194
9206
|
var AppTopbar = ({ ...props }) => {
|
9195
9207
|
const isRTL = props.direction === "ltr";
|
9196
9208
|
const size = 1200;
|
9197
|
-
return /* @__PURE__ */
|
9209
|
+
return /* @__PURE__ */ React77.createElement(
|
9198
9210
|
"div",
|
9199
9211
|
{
|
9200
9212
|
className: cn(
|
@@ -9202,24 +9214,24 @@ var AppTopbar = ({ ...props }) => {
|
|
9202
9214
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
9203
9215
|
)
|
9204
9216
|
},
|
9205
|
-
size > 600 ? /* @__PURE__ */
|
9217
|
+
size > 600 ? /* @__PURE__ */ React77.createElement(
|
9206
9218
|
"div",
|
9207
9219
|
null,
|
9208
9220
|
"page title"
|
9209
9221
|
) : (
|
9210
9222
|
// Mobile Drawer Menu Button
|
9211
|
-
/* @__PURE__ */
|
9223
|
+
/* @__PURE__ */ React77.createElement(
|
9212
9224
|
"div",
|
9213
9225
|
{
|
9214
9226
|
dir: props.direction,
|
9215
9227
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
9216
9228
|
},
|
9217
|
-
/* @__PURE__ */
|
9229
|
+
/* @__PURE__ */ React77.createElement(
|
9218
9230
|
"div",
|
9219
9231
|
{
|
9220
9232
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
9221
9233
|
},
|
9222
|
-
/* @__PURE__ */
|
9234
|
+
/* @__PURE__ */ React77.createElement(
|
9223
9235
|
"svg",
|
9224
9236
|
{
|
9225
9237
|
stroke: "currentColor",
|
@@ -9230,7 +9242,7 @@ var AppTopbar = ({ ...props }) => {
|
|
9230
9242
|
height: "1.6em",
|
9231
9243
|
width: "1.6em"
|
9232
9244
|
},
|
9233
|
-
/* @__PURE__ */
|
9245
|
+
/* @__PURE__ */ React77.createElement(
|
9234
9246
|
"path",
|
9235
9247
|
{
|
9236
9248
|
fillRule: "evenodd",
|
@@ -9243,7 +9255,7 @@ var AppTopbar = ({ ...props }) => {
|
|
9243
9255
|
"Mobile title"
|
9244
9256
|
)
|
9245
9257
|
),
|
9246
|
-
/* @__PURE__ */
|
9258
|
+
/* @__PURE__ */ React77.createElement(
|
9247
9259
|
"div",
|
9248
9260
|
{
|
9249
9261
|
className: cn(
|
@@ -9251,16 +9263,16 @@ var AppTopbar = ({ ...props }) => {
|
|
9251
9263
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
9252
9264
|
)
|
9253
9265
|
},
|
9254
|
-
size > 600 ? /* @__PURE__ */
|
9266
|
+
size > 600 ? /* @__PURE__ */ React77.createElement(
|
9255
9267
|
"div",
|
9256
9268
|
{
|
9257
9269
|
className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
|
9258
9270
|
},
|
9259
|
-
/* @__PURE__ */
|
9271
|
+
/* @__PURE__ */ React77.createElement("div", { className: "hawa-font-bold" }, props.username),
|
9260
9272
|
" ",
|
9261
|
-
/* @__PURE__ */
|
9273
|
+
/* @__PURE__ */ React77.createElement("div", null, props.email)
|
9262
9274
|
) : null,
|
9263
|
-
/* @__PURE__ */
|
9275
|
+
/* @__PURE__ */ React77.createElement(
|
9264
9276
|
DropdownMenu,
|
9265
9277
|
{
|
9266
9278
|
triggerClassname: "hawa-mx-2",
|
@@ -9271,7 +9283,7 @@ var AppTopbar = ({ ...props }) => {
|
|
9271
9283
|
direction: isRTL ? "rtl" : "ltr",
|
9272
9284
|
items: props.profileMenuItems || [],
|
9273
9285
|
onItemSelect: (e) => console.log("selecting item ", e),
|
9274
|
-
trigger: /* @__PURE__ */
|
9286
|
+
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
9287
|
"svg",
|
9276
9288
|
{
|
9277
9289
|
"aria-label": "Avatar Icon",
|
@@ -9279,7 +9291,7 @@ var AppTopbar = ({ ...props }) => {
|
|
9279
9291
|
fill: "currentColor",
|
9280
9292
|
viewBox: "0 0 20 20"
|
9281
9293
|
},
|
9282
|
-
/* @__PURE__ */
|
9294
|
+
/* @__PURE__ */ React77.createElement(
|
9283
9295
|
"path",
|
9284
9296
|
{
|
9285
9297
|
fillRule: "evenodd",
|
@@ -9295,14 +9307,14 @@ var AppTopbar = ({ ...props }) => {
|
|
9295
9307
|
};
|
9296
9308
|
|
9297
9309
|
// layout/appMenubar/AppMenubar.tsx
|
9298
|
-
import * as
|
9310
|
+
import * as React78 from "react";
|
9299
9311
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
9300
9312
|
var MenubarMenu = MenubarPrimitive.Menu;
|
9301
9313
|
var MenubarGroup = MenubarPrimitive.Group;
|
9302
9314
|
var MenubarPortal = MenubarPrimitive.Portal;
|
9303
9315
|
var MenubarSub = MenubarPrimitive.Sub;
|
9304
9316
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
9305
|
-
var Menubar =
|
9317
|
+
var Menubar = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9306
9318
|
MenubarPrimitive.Root,
|
9307
9319
|
{
|
9308
9320
|
ref,
|
@@ -9314,7 +9326,7 @@ var Menubar = React77.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
9314
9326
|
}
|
9315
9327
|
));
|
9316
9328
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
9317
|
-
var MenubarTrigger =
|
9329
|
+
var MenubarTrigger = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9318
9330
|
MenubarPrimitive.Trigger,
|
9319
9331
|
{
|
9320
9332
|
ref,
|
@@ -9326,7 +9338,7 @@ var MenubarTrigger = React77.forwardRef(({ className, ...props }, ref) => /* @__
|
|
9326
9338
|
}
|
9327
9339
|
));
|
9328
9340
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
9329
|
-
var MenubarSubTrigger =
|
9341
|
+
var MenubarSubTrigger = React78.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9330
9342
|
MenubarPrimitive.SubTrigger,
|
9331
9343
|
{
|
9332
9344
|
ref,
|
@@ -9338,7 +9350,7 @@ var MenubarSubTrigger = React77.forwardRef(({ className, inset, children, ...pro
|
|
9338
9350
|
...props
|
9339
9351
|
},
|
9340
9352
|
children,
|
9341
|
-
/* @__PURE__ */
|
9353
|
+
/* @__PURE__ */ React78.createElement(
|
9342
9354
|
"svg",
|
9343
9355
|
{
|
9344
9356
|
"aria-label": "Chevron Right Icon",
|
@@ -9353,11 +9365,11 @@ var MenubarSubTrigger = React77.forwardRef(({ className, inset, children, ...pro
|
|
9353
9365
|
strokeLinejoin: "round",
|
9354
9366
|
className: "hawa-icon hawa-ml-auto"
|
9355
9367
|
},
|
9356
|
-
/* @__PURE__ */
|
9368
|
+
/* @__PURE__ */ React78.createElement("path", { d: "m9 18 6-6-6-6" })
|
9357
9369
|
)
|
9358
9370
|
));
|
9359
9371
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
9360
|
-
var MenubarSubContent =
|
9372
|
+
var MenubarSubContent = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9361
9373
|
MenubarPrimitive.SubContent,
|
9362
9374
|
{
|
9363
9375
|
ref,
|
@@ -9369,8 +9381,8 @@ var MenubarSubContent = React77.forwardRef(({ className, ...props }, ref) => /*
|
|
9369
9381
|
}
|
9370
9382
|
));
|
9371
9383
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
9372
|
-
var MenubarContent =
|
9373
|
-
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */
|
9384
|
+
var MenubarContent = React78.forwardRef(
|
9385
|
+
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ React78.createElement(MenubarPrimitive.Portal, null, /* @__PURE__ */ React78.createElement(
|
9374
9386
|
MenubarPrimitive.Content,
|
9375
9387
|
{
|
9376
9388
|
ref,
|
@@ -9386,7 +9398,7 @@ var MenubarContent = React77.forwardRef(
|
|
9386
9398
|
))
|
9387
9399
|
);
|
9388
9400
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
9389
|
-
var MenubarItem =
|
9401
|
+
var MenubarItem = React78.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9390
9402
|
MenubarPrimitive.Item,
|
9391
9403
|
{
|
9392
9404
|
ref,
|
@@ -9399,7 +9411,7 @@ var MenubarItem = React77.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
9399
9411
|
}
|
9400
9412
|
));
|
9401
9413
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
9402
|
-
var MenubarCheckboxItem =
|
9414
|
+
var MenubarCheckboxItem = React78.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9403
9415
|
MenubarPrimitive.CheckboxItem,
|
9404
9416
|
{
|
9405
9417
|
ref,
|
@@ -9410,7 +9422,7 @@ var MenubarCheckboxItem = React77.forwardRef(({ className, children, checked, ..
|
|
9410
9422
|
checked,
|
9411
9423
|
...props
|
9412
9424
|
},
|
9413
|
-
/* @__PURE__ */
|
9425
|
+
/* @__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
9426
|
"svg",
|
9415
9427
|
{
|
9416
9428
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9424,12 +9436,12 @@ var MenubarCheckboxItem = React77.forwardRef(({ className, children, checked, ..
|
|
9424
9436
|
strokeLinejoin: "round",
|
9425
9437
|
className: "hawa-icon"
|
9426
9438
|
},
|
9427
|
-
/* @__PURE__ */
|
9439
|
+
/* @__PURE__ */ React78.createElement("path", { d: "M20 6 9 17l-5-5" })
|
9428
9440
|
))),
|
9429
9441
|
children
|
9430
9442
|
));
|
9431
9443
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
9432
|
-
var MenubarRadioItem =
|
9444
|
+
var MenubarRadioItem = React78.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9433
9445
|
MenubarPrimitive.RadioItem,
|
9434
9446
|
{
|
9435
9447
|
ref,
|
@@ -9439,7 +9451,7 @@ var MenubarRadioItem = React77.forwardRef(({ className, children, ...props }, re
|
|
9439
9451
|
),
|
9440
9452
|
...props
|
9441
9453
|
},
|
9442
|
-
/* @__PURE__ */
|
9454
|
+
/* @__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
9455
|
"svg",
|
9444
9456
|
{
|
9445
9457
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9453,12 +9465,12 @@ var MenubarRadioItem = React77.forwardRef(({ className, children, ...props }, re
|
|
9453
9465
|
strokeLinejoin: "round",
|
9454
9466
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
9455
9467
|
},
|
9456
|
-
/* @__PURE__ */
|
9468
|
+
/* @__PURE__ */ React78.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
9457
9469
|
))),
|
9458
9470
|
children
|
9459
9471
|
));
|
9460
9472
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
9461
|
-
var MenubarLabel =
|
9473
|
+
var MenubarLabel = React78.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9462
9474
|
MenubarPrimitive.Label,
|
9463
9475
|
{
|
9464
9476
|
ref,
|
@@ -9471,7 +9483,7 @@ var MenubarLabel = React77.forwardRef(({ className, inset, ...props }, ref) => /
|
|
9471
9483
|
}
|
9472
9484
|
));
|
9473
9485
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
9474
|
-
var MenubarSeparator =
|
9486
|
+
var MenubarSeparator = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9475
9487
|
MenubarPrimitive.Separator,
|
9476
9488
|
{
|
9477
9489
|
ref,
|
@@ -9484,7 +9496,7 @@ var MenubarShortcut = ({
|
|
9484
9496
|
className,
|
9485
9497
|
...props
|
9486
9498
|
}) => {
|
9487
|
-
return /* @__PURE__ */
|
9499
|
+
return /* @__PURE__ */ React78.createElement(
|
9488
9500
|
"span",
|
9489
9501
|
{
|
9490
9502
|
className: cn(
|
@@ -9498,10 +9510,10 @@ var MenubarShortcut = ({
|
|
9498
9510
|
MenubarShortcut.displayname = "MenubarShortcut";
|
9499
9511
|
|
9500
9512
|
// layout/appTabs/AppTabs.tsx
|
9501
|
-
import
|
9513
|
+
import React79, { useState as useState37 } from "react";
|
9502
9514
|
var AppTabs = ({ tabs, className }) => {
|
9503
9515
|
const [selectedIndex, setSelectedIndex] = useState37(0);
|
9504
|
-
return /* @__PURE__ */
|
9516
|
+
return /* @__PURE__ */ React79.createElement(
|
9505
9517
|
"div",
|
9506
9518
|
{
|
9507
9519
|
className: cn(
|
@@ -9509,9 +9521,9 @@ var AppTabs = ({ tabs, className }) => {
|
|
9509
9521
|
className
|
9510
9522
|
)
|
9511
9523
|
},
|
9512
|
-
/* @__PURE__ */
|
9524
|
+
/* @__PURE__ */ React79.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center " }, tabs.map((tab, index) => {
|
9513
9525
|
const selected = index === selectedIndex;
|
9514
|
-
return /* @__PURE__ */
|
9526
|
+
return /* @__PURE__ */ React79.createElement(
|
9515
9527
|
"a",
|
9516
9528
|
{
|
9517
9529
|
href: tab.path,
|
@@ -9542,16 +9554,16 @@ var AppTabs = ({ tabs, className }) => {
|
|
9542
9554
|
};
|
9543
9555
|
|
9544
9556
|
// layout/docsLayout/DocsLayout.tsx
|
9545
|
-
import
|
9557
|
+
import React81, { useEffect as useEffect29, useRef as useRef19, useState as useState38 } from "react";
|
9546
9558
|
|
9547
9559
|
// layout/docsSidebar/DocsSidebar.tsx
|
9548
|
-
import
|
9560
|
+
import React80 from "react";
|
9549
9561
|
var DocsSidebar = ({
|
9550
9562
|
currentPage: propCurrentPage,
|
9551
9563
|
pages,
|
9552
9564
|
direction
|
9553
9565
|
}) => {
|
9554
|
-
const [activePage, setActivePage] =
|
9566
|
+
const [activePage, setActivePage] = React80.useState(pages[0]);
|
9555
9567
|
const handlePageClick = (page, event) => {
|
9556
9568
|
event.preventDefault();
|
9557
9569
|
setTimeout(() => {
|
@@ -9573,7 +9585,7 @@ var DocsSidebar = ({
|
|
9573
9585
|
}
|
9574
9586
|
return pages[0];
|
9575
9587
|
};
|
9576
|
-
|
9588
|
+
React80.useEffect(() => {
|
9577
9589
|
const handleScroll = () => {
|
9578
9590
|
setActivePage(getCurrentSection());
|
9579
9591
|
};
|
@@ -9586,13 +9598,13 @@ var DocsSidebar = ({
|
|
9586
9598
|
rtl: "hawa-border-r-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200",
|
9587
9599
|
ltr: "hawa-border-l-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200"
|
9588
9600
|
};
|
9589
|
-
return /* @__PURE__ */
|
9601
|
+
return /* @__PURE__ */ React80.createElement(
|
9590
9602
|
"div",
|
9591
9603
|
{
|
9592
9604
|
className: "hawa-flex hawa-flex-col hawa-overflow-x-clip",
|
9593
9605
|
dir: direction
|
9594
9606
|
},
|
9595
|
-
pages.map((page, index) => /* @__PURE__ */
|
9607
|
+
pages.map((page, index) => /* @__PURE__ */ React80.createElement(
|
9596
9608
|
"div",
|
9597
9609
|
{
|
9598
9610
|
key: index,
|
@@ -9661,7 +9673,7 @@ var DocsLayout = ({
|
|
9661
9673
|
window.removeEventListener("resize", handleResize);
|
9662
9674
|
};
|
9663
9675
|
}, [keepOpen]);
|
9664
|
-
const observerRef =
|
9676
|
+
const observerRef = React81.useRef(null);
|
9665
9677
|
const handleIntersection = (entries) => {
|
9666
9678
|
const entry = entries.find((entry2) => entry2.isIntersecting);
|
9667
9679
|
if (entry) {
|
@@ -9673,7 +9685,7 @@ var DocsLayout = ({
|
|
9673
9685
|
threshold: 0.5
|
9674
9686
|
// Adjust threshold as needed to determine when a section is in view
|
9675
9687
|
});
|
9676
|
-
|
9688
|
+
React81.Children.forEach(props.children, (child) => {
|
9677
9689
|
if (child && child.props.id) {
|
9678
9690
|
const element = document.getElementById(child.props.id);
|
9679
9691
|
if (element && observerRef.current) {
|
@@ -9688,7 +9700,7 @@ var DocsLayout = ({
|
|
9688
9700
|
};
|
9689
9701
|
}, [props.children]);
|
9690
9702
|
let drawerSizeCondition = drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize];
|
9691
|
-
return /* @__PURE__ */
|
9703
|
+
return /* @__PURE__ */ React81.createElement("div", { className: "hawa-fixed" }, /* @__PURE__ */ React81.createElement(
|
9692
9704
|
"div",
|
9693
9705
|
{
|
9694
9706
|
className: cn(
|
@@ -9696,7 +9708,7 @@ var DocsLayout = ({
|
|
9696
9708
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
9697
9709
|
)
|
9698
9710
|
},
|
9699
|
-
size > 600 ? /* @__PURE__ */
|
9711
|
+
size > 600 ? /* @__PURE__ */ React81.createElement("div", { onClick: props.onLogoClick, dir: direction }, /* @__PURE__ */ React81.createElement(
|
9700
9712
|
"img",
|
9701
9713
|
{
|
9702
9714
|
className: cn(
|
@@ -9707,18 +9719,18 @@ var DocsLayout = ({
|
|
9707
9719
|
}
|
9708
9720
|
)) : (
|
9709
9721
|
// Mobile Drawer Menu Button
|
9710
|
-
/* @__PURE__ */
|
9722
|
+
/* @__PURE__ */ React81.createElement(
|
9711
9723
|
"div",
|
9712
9724
|
{
|
9713
9725
|
dir: direction,
|
9714
9726
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
9715
9727
|
},
|
9716
|
-
/* @__PURE__ */
|
9728
|
+
/* @__PURE__ */ React81.createElement(Sheet, null, /* @__PURE__ */ React81.createElement(SheetTrigger, null, " ", /* @__PURE__ */ React81.createElement(
|
9717
9729
|
"div",
|
9718
9730
|
{
|
9719
9731
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
9720
9732
|
},
|
9721
|
-
/* @__PURE__ */
|
9733
|
+
/* @__PURE__ */ React81.createElement(
|
9722
9734
|
"svg",
|
9723
9735
|
{
|
9724
9736
|
"aria-label": "Menu Icon",
|
@@ -9730,7 +9742,7 @@ var DocsLayout = ({
|
|
9730
9742
|
height: "1.6em",
|
9731
9743
|
width: "1.6em"
|
9732
9744
|
},
|
9733
|
-
/* @__PURE__ */
|
9745
|
+
/* @__PURE__ */ React81.createElement(
|
9734
9746
|
"path",
|
9735
9747
|
{
|
9736
9748
|
fillRule: "evenodd",
|
@@ -9739,17 +9751,17 @@ var DocsLayout = ({
|
|
9739
9751
|
}
|
9740
9752
|
)
|
9741
9753
|
)
|
9742
|
-
)), /* @__PURE__ */
|
9754
|
+
)), /* @__PURE__ */ React81.createElement(
|
9743
9755
|
SheetContent,
|
9744
9756
|
{
|
9745
9757
|
side: isRTL ? "right" : "left",
|
9746
9758
|
className: "hawa-pt-10"
|
9747
9759
|
},
|
9748
|
-
/* @__PURE__ */
|
9760
|
+
/* @__PURE__ */ React81.createElement(DocsSidebar, { direction, pages: pages || [] })
|
9749
9761
|
))
|
9750
9762
|
)
|
9751
9763
|
),
|
9752
|
-
/* @__PURE__ */
|
9764
|
+
/* @__PURE__ */ React81.createElement(
|
9753
9765
|
"div",
|
9754
9766
|
{
|
9755
9767
|
className: cn(
|
@@ -9757,9 +9769,9 @@ var DocsLayout = ({
|
|
9757
9769
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
9758
9770
|
)
|
9759
9771
|
},
|
9760
|
-
/* @__PURE__ */
|
9772
|
+
/* @__PURE__ */ React81.createElement(Button, { variant: "ghost", size: "smallIcon" }, /* @__PURE__ */ React81.createElement(Logos.github, { className: "hawa-icon" }))
|
9761
9773
|
)
|
9762
|
-
), /* @__PURE__ */
|
9774
|
+
), /* @__PURE__ */ React81.createElement(
|
9763
9775
|
"div",
|
9764
9776
|
{
|
9765
9777
|
className: cn(
|
@@ -9782,7 +9794,7 @@ var DocsLayout = ({
|
|
9782
9794
|
},
|
9783
9795
|
ref
|
9784
9796
|
},
|
9785
|
-
/* @__PURE__ */
|
9797
|
+
/* @__PURE__ */ React81.createElement(
|
9786
9798
|
DocsSidebar,
|
9787
9799
|
{
|
9788
9800
|
direction,
|
@@ -9790,7 +9802,7 @@ var DocsLayout = ({
|
|
9790
9802
|
currentPage
|
9791
9803
|
}
|
9792
9804
|
)
|
9793
|
-
), /* @__PURE__ */
|
9805
|
+
), /* @__PURE__ */ React81.createElement(
|
9794
9806
|
"div",
|
9795
9807
|
{
|
9796
9808
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all ",
|
@@ -9812,10 +9824,10 @@ var DocsLayout = ({
|
|
9812
9824
|
};
|
9813
9825
|
|
9814
9826
|
// blocks/auth/AuthButtons.tsx
|
9815
|
-
import
|
9827
|
+
import React82 from "react";
|
9816
9828
|
var AuthButtons = (props) => {
|
9817
9829
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
9818
|
-
return /* @__PURE__ */
|
9830
|
+
return /* @__PURE__ */ React82.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, props.viaMetamask && /* @__PURE__ */ React82.createElement(
|
9819
9831
|
Button,
|
9820
9832
|
{
|
9821
9833
|
disabled: props.isMetamaskLoading,
|
@@ -9823,9 +9835,9 @@ var AuthButtons = (props) => {
|
|
9823
9835
|
variant: "outline",
|
9824
9836
|
onClick: props.handleMetamask
|
9825
9837
|
},
|
9826
|
-
props.isMetamaskLoading ? /* @__PURE__ */
|
9838
|
+
props.isMetamaskLoading ? /* @__PURE__ */ React82.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React82.createElement(Logos.metamask, { className: "hawa-h-6" }),
|
9827
9839
|
(_b = (_a = props.texts) == null ? void 0 : _a.continueWithMetamask) != null ? _b : "Connect Metamask"
|
9828
|
-
), props.viaNafath && /* @__PURE__ */
|
9840
|
+
), props.viaNafath && /* @__PURE__ */ React82.createElement(
|
9829
9841
|
Button,
|
9830
9842
|
{
|
9831
9843
|
disabled: props.isNafathLoading,
|
@@ -9833,9 +9845,9 @@ var AuthButtons = (props) => {
|
|
9833
9845
|
variant: "outline",
|
9834
9846
|
onClick: props.handleNafath
|
9835
9847
|
},
|
9836
|
-
props.isNafathLoading ? /* @__PURE__ */
|
9848
|
+
props.isNafathLoading ? /* @__PURE__ */ React82.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React82.createElement(Logos.nafath, { className: "hawa-h-4" }),
|
9837
9849
|
(_d = (_c = props.texts) == null ? void 0 : _c.continueWithNafath) != null ? _d : "Continue With Nafath"
|
9838
|
-
), props.viaGoogle && /* @__PURE__ */
|
9850
|
+
), props.viaGoogle && /* @__PURE__ */ React82.createElement(
|
9839
9851
|
Button,
|
9840
9852
|
{
|
9841
9853
|
disabled: props.isGoogleLoading,
|
@@ -9843,9 +9855,9 @@ var AuthButtons = (props) => {
|
|
9843
9855
|
variant: "outline",
|
9844
9856
|
onClick: props.handleGoogle
|
9845
9857
|
},
|
9846
|
-
props.isGoogleLoading ? /* @__PURE__ */
|
9858
|
+
props.isGoogleLoading ? /* @__PURE__ */ React82.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React82.createElement(Logos.google, { className: "hawa-icon" }),
|
9847
9859
|
(_f = (_e = props.texts) == null ? void 0 : _e.continueWithGoogle) != null ? _f : "Continue With Google"
|
9848
|
-
), props.viaGithub && /* @__PURE__ */
|
9860
|
+
), props.viaGithub && /* @__PURE__ */ React82.createElement(
|
9849
9861
|
Button,
|
9850
9862
|
{
|
9851
9863
|
disabled: props.isGithubLoading,
|
@@ -9853,9 +9865,9 @@ var AuthButtons = (props) => {
|
|
9853
9865
|
variant: "outline",
|
9854
9866
|
onClick: props.handleGithub
|
9855
9867
|
},
|
9856
|
-
props.isGithubLoading ? /* @__PURE__ */
|
9868
|
+
props.isGithubLoading ? /* @__PURE__ */ React82.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React82.createElement(Logos.github, { className: "hawa-icon" }),
|
9857
9869
|
(_h = (_g = props.texts) == null ? void 0 : _g.continueWithGithub) != null ? _h : "Continue With Github"
|
9858
|
-
), props.viaTwitter && /* @__PURE__ */
|
9870
|
+
), props.viaTwitter && /* @__PURE__ */ React82.createElement(
|
9859
9871
|
Button,
|
9860
9872
|
{
|
9861
9873
|
disabled: props.isTwitterLoading,
|
@@ -9863,9 +9875,9 @@ var AuthButtons = (props) => {
|
|
9863
9875
|
variant: "outline",
|
9864
9876
|
onClick: props.handleTwitter
|
9865
9877
|
},
|
9866
|
-
props.isTwitterLoading ? /* @__PURE__ */
|
9878
|
+
props.isTwitterLoading ? /* @__PURE__ */ React82.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React82.createElement(Logos.twitter, { className: "hawa-icon" }),
|
9867
9879
|
(_j = (_i = props.texts) == null ? void 0 : _i.continueWithTwitter) != null ? _j : "Continue With Twitter"
|
9868
|
-
), props.viaApple && /* @__PURE__ */
|
9880
|
+
), props.viaApple && /* @__PURE__ */ React82.createElement(
|
9869
9881
|
Button,
|
9870
9882
|
{
|
9871
9883
|
disabled: props.isAppleLoading,
|
@@ -9873,9 +9885,9 @@ var AuthButtons = (props) => {
|
|
9873
9885
|
variant: "outline",
|
9874
9886
|
onClick: props.handleApple
|
9875
9887
|
},
|
9876
|
-
props.isAppleLoading ? /* @__PURE__ */
|
9888
|
+
props.isAppleLoading ? /* @__PURE__ */ React82.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React82.createElement(Logos.apple, { className: "hawa-icon" }),
|
9877
9889
|
(_l = (_k = props.texts) == null ? void 0 : _k.continueWithApple) != null ? _l : "Continue With Apple"
|
9878
|
-
), props.viaMicrosoft && /* @__PURE__ */
|
9890
|
+
), props.viaMicrosoft && /* @__PURE__ */ React82.createElement(
|
9879
9891
|
Button,
|
9880
9892
|
{
|
9881
9893
|
disabled: props.isMicrosoftLoading,
|
@@ -9883,9 +9895,9 @@ var AuthButtons = (props) => {
|
|
9883
9895
|
variant: "outline",
|
9884
9896
|
onClick: props.handleMicrosoft
|
9885
9897
|
},
|
9886
|
-
props.isMicrosoftLoading ? /* @__PURE__ */
|
9898
|
+
props.isMicrosoftLoading ? /* @__PURE__ */ React82.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React82.createElement(Logos.microsoft, { className: "hawa-icon" }),
|
9887
9899
|
(_n = (_m = props.texts) == null ? void 0 : _m.continueWithMicrosoft) != null ? _n : "Continue With Microsoft"
|
9888
|
-
), props.viaEmail && /* @__PURE__ */
|
9900
|
+
), props.viaEmail && /* @__PURE__ */ React82.createElement(
|
9889
9901
|
Button,
|
9890
9902
|
{
|
9891
9903
|
disabled: props.isEmailLoading,
|
@@ -9893,9 +9905,9 @@ var AuthButtons = (props) => {
|
|
9893
9905
|
variant: "outline",
|
9894
9906
|
onClick: props.handleEmail
|
9895
9907
|
},
|
9896
|
-
props.isEmailLoading ? /* @__PURE__ */
|
9908
|
+
props.isEmailLoading ? /* @__PURE__ */ React82.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React82.createElement(Logos.mail, { className: "hawa-icon" }),
|
9897
9909
|
(_p = (_o = props.texts) == null ? void 0 : _o.continueWithEmail) != null ? _p : "Continue With Email"
|
9898
|
-
), props.viaPhone && /* @__PURE__ */
|
9910
|
+
), props.viaPhone && /* @__PURE__ */ React82.createElement(
|
9899
9911
|
Button,
|
9900
9912
|
{
|
9901
9913
|
disabled: props.isPhoneLoading,
|
@@ -9903,13 +9915,13 @@ var AuthButtons = (props) => {
|
|
9903
9915
|
variant: "outline",
|
9904
9916
|
onClick: props.handlePhone
|
9905
9917
|
},
|
9906
|
-
props.isPhoneLoading ? /* @__PURE__ */
|
9918
|
+
props.isPhoneLoading ? /* @__PURE__ */ React82.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React82.createElement(Logos.phone, { className: "hawa-icon" }),
|
9907
9919
|
(_r = (_q = props.texts) == null ? void 0 : _q.continueWithPhone) != null ? _r : "Continue With Phone"
|
9908
9920
|
));
|
9909
9921
|
};
|
9910
9922
|
|
9911
9923
|
// blocks/auth/LoginForm.tsx
|
9912
|
-
import
|
9924
|
+
import React83 from "react";
|
9913
9925
|
import { useState as useState39 } from "react";
|
9914
9926
|
import { Controller, useForm } from "react-hook-form";
|
9915
9927
|
import { zodResolver } from "@hookform/resolvers/zod";
|
@@ -9984,14 +9996,14 @@ var LoginForm = ({
|
|
9984
9996
|
const renderFields = () => {
|
9985
9997
|
switch (loginType) {
|
9986
9998
|
case "email":
|
9987
|
-
return /* @__PURE__ */
|
9999
|
+
return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(
|
9988
10000
|
Controller,
|
9989
10001
|
{
|
9990
10002
|
control,
|
9991
10003
|
name: "email",
|
9992
10004
|
render: ({ field }) => {
|
9993
10005
|
var _a2, _b2, _c2;
|
9994
|
-
return /* @__PURE__ */
|
10006
|
+
return /* @__PURE__ */ React83.createElement(
|
9995
10007
|
Input,
|
9996
10008
|
{
|
9997
10009
|
inputProps: {
|
@@ -10008,27 +10020,27 @@ var LoginForm = ({
|
|
10008
10020
|
);
|
10009
10021
|
}
|
10010
10022
|
}
|
10011
|
-
), /* @__PURE__ */
|
10023
|
+
), /* @__PURE__ */ React83.createElement("div", null, /* @__PURE__ */ React83.createElement(
|
10012
10024
|
Controller,
|
10013
10025
|
{
|
10014
10026
|
control,
|
10015
10027
|
name: "password",
|
10016
10028
|
render: ({ field }) => {
|
10017
10029
|
var _a2, _b2, _c2;
|
10018
|
-
return /* @__PURE__ */
|
10030
|
+
return /* @__PURE__ */ React83.createElement(
|
10019
10031
|
Input,
|
10020
10032
|
{
|
10021
10033
|
width: "full",
|
10022
10034
|
autoComplete: "current-password",
|
10023
10035
|
type: passwordVisible ? "text" : "password",
|
10024
10036
|
label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
|
10025
|
-
endIcon: /* @__PURE__ */
|
10037
|
+
endIcon: /* @__PURE__ */ React83.createElement(
|
10026
10038
|
"div",
|
10027
10039
|
{
|
10028
10040
|
className: "hawa-cursor-pointer",
|
10029
10041
|
onClick: () => setPasswordVisible(!passwordVisible)
|
10030
10042
|
},
|
10031
|
-
passwordVisible ? /* @__PURE__ */
|
10043
|
+
passwordVisible ? /* @__PURE__ */ React83.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React83.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" })
|
10032
10044
|
),
|
10033
10045
|
placeholder: ((_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder) || "Enter your password",
|
10034
10046
|
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
@@ -10037,7 +10049,7 @@ var LoginForm = ({
|
|
10037
10049
|
);
|
10038
10050
|
}
|
10039
10051
|
}
|
10040
|
-
), props.withResetPassword && /* @__PURE__ */
|
10052
|
+
), props.withResetPassword && /* @__PURE__ */ React83.createElement(
|
10041
10053
|
"div",
|
10042
10054
|
{
|
10043
10055
|
onClick: props.onForgotPassword,
|
@@ -10046,14 +10058,14 @@ var LoginForm = ({
|
|
10046
10058
|
(texts == null ? void 0 : texts.forgotPassword) || "Forgot Password?"
|
10047
10059
|
)));
|
10048
10060
|
case "username":
|
10049
|
-
return /* @__PURE__ */
|
10061
|
+
return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(
|
10050
10062
|
Controller,
|
10051
10063
|
{
|
10052
10064
|
control,
|
10053
10065
|
name: "username",
|
10054
10066
|
render: ({ field }) => {
|
10055
10067
|
var _a2, _b2, _c2;
|
10056
|
-
return /* @__PURE__ */
|
10068
|
+
return /* @__PURE__ */ React83.createElement(
|
10057
10069
|
Input,
|
10058
10070
|
{
|
10059
10071
|
width: "full",
|
@@ -10066,27 +10078,27 @@ var LoginForm = ({
|
|
10066
10078
|
);
|
10067
10079
|
}
|
10068
10080
|
}
|
10069
|
-
), /* @__PURE__ */
|
10081
|
+
), /* @__PURE__ */ React83.createElement("div", null, /* @__PURE__ */ React83.createElement(
|
10070
10082
|
Controller,
|
10071
10083
|
{
|
10072
10084
|
control,
|
10073
10085
|
name: "password",
|
10074
10086
|
render: ({ field }) => {
|
10075
10087
|
var _a2, _b2, _c2;
|
10076
|
-
return /* @__PURE__ */
|
10088
|
+
return /* @__PURE__ */ React83.createElement(
|
10077
10089
|
Input,
|
10078
10090
|
{
|
10079
10091
|
width: "full",
|
10080
10092
|
autoComplete: "current-password",
|
10081
10093
|
type: passwordVisible ? "text" : "password",
|
10082
10094
|
label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
|
10083
|
-
endIcon: /* @__PURE__ */
|
10095
|
+
endIcon: /* @__PURE__ */ React83.createElement(
|
10084
10096
|
"div",
|
10085
10097
|
{
|
10086
10098
|
className: "hawa-cursor-pointer",
|
10087
10099
|
onClick: () => setPasswordVisible(!passwordVisible)
|
10088
10100
|
},
|
10089
|
-
passwordVisible ? /* @__PURE__ */
|
10101
|
+
passwordVisible ? /* @__PURE__ */ React83.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React83.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" })
|
10090
10102
|
),
|
10091
10103
|
placeholder: ((_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder) || "Enter your password",
|
10092
10104
|
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
@@ -10095,7 +10107,7 @@ var LoginForm = ({
|
|
10095
10107
|
);
|
10096
10108
|
}
|
10097
10109
|
}
|
10098
|
-
), props.withResetPassword && /* @__PURE__ */
|
10110
|
+
), props.withResetPassword && /* @__PURE__ */ React83.createElement(
|
10099
10111
|
"div",
|
10100
10112
|
{
|
10101
10113
|
onClick: props.onForgotPassword,
|
@@ -10104,14 +10116,14 @@ var LoginForm = ({
|
|
10104
10116
|
(texts == null ? void 0 : texts.forgotPassword) || "Forgot Password?"
|
10105
10117
|
)));
|
10106
10118
|
case "phone":
|
10107
|
-
return /* @__PURE__ */
|
10119
|
+
return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(
|
10108
10120
|
Controller,
|
10109
10121
|
{
|
10110
10122
|
control,
|
10111
10123
|
name: "phone",
|
10112
10124
|
render: ({ field }) => {
|
10113
10125
|
var _a2, _b2;
|
10114
|
-
return /* @__PURE__ */
|
10126
|
+
return /* @__PURE__ */ React83.createElement(
|
10115
10127
|
PhoneInput,
|
10116
10128
|
{
|
10117
10129
|
label: ((_a2 = texts == null ? void 0 : texts.phone) == null ? void 0 : _a2.label) || "Phone Number",
|
@@ -10124,14 +10136,14 @@ var LoginForm = ({
|
|
10124
10136
|
}
|
10125
10137
|
));
|
10126
10138
|
case "link":
|
10127
|
-
return /* @__PURE__ */
|
10139
|
+
return /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(
|
10128
10140
|
Controller,
|
10129
10141
|
{
|
10130
10142
|
control,
|
10131
10143
|
name: "email",
|
10132
10144
|
render: ({ field }) => {
|
10133
10145
|
var _a2, _b2, _c2;
|
10134
|
-
return /* @__PURE__ */
|
10146
|
+
return /* @__PURE__ */ React83.createElement(
|
10135
10147
|
Input,
|
10136
10148
|
{
|
10137
10149
|
width: "full",
|
@@ -10149,7 +10161,7 @@ var LoginForm = ({
|
|
10149
10161
|
break;
|
10150
10162
|
}
|
10151
10163
|
};
|
10152
|
-
return /* @__PURE__ */
|
10164
|
+
return /* @__PURE__ */ React83.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React83.createElement(
|
10153
10165
|
Card,
|
10154
10166
|
{
|
10155
10167
|
dir: props.direction,
|
@@ -10157,7 +10169,7 @@ var LoginForm = ({
|
|
10157
10169
|
props.cardless && "!hawa-border-none !hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
|
10158
10170
|
)
|
10159
10171
|
},
|
10160
|
-
/* @__PURE__ */
|
10172
|
+
/* @__PURE__ */ React83.createElement(CardContent, { headless: true, noPadding: props.cardless }, props.showError && /* @__PURE__ */ React83.createElement(
|
10161
10173
|
Alert,
|
10162
10174
|
{
|
10163
10175
|
direction: props.direction,
|
@@ -10165,7 +10177,7 @@ var LoginForm = ({
|
|
10165
10177
|
text: props.errorText,
|
10166
10178
|
severity: "error"
|
10167
10179
|
}
|
10168
|
-
), /* @__PURE__ */
|
10180
|
+
), /* @__PURE__ */ React83.createElement(
|
10169
10181
|
"form",
|
10170
10182
|
{
|
10171
10183
|
noValidate: true,
|
@@ -10179,7 +10191,7 @@ var LoginForm = ({
|
|
10179
10191
|
})
|
10180
10192
|
},
|
10181
10193
|
renderFields(),
|
10182
|
-
/* @__PURE__ */
|
10194
|
+
/* @__PURE__ */ React83.createElement(
|
10183
10195
|
Button,
|
10184
10196
|
{
|
10185
10197
|
className: "hawa-mt-0 hawa-w-full",
|
@@ -10190,7 +10202,7 @@ var LoginForm = ({
|
|
10190
10202
|
(texts == null ? void 0 : texts.loginText) || "Login"
|
10191
10203
|
),
|
10192
10204
|
props.additionalButtons,
|
10193
|
-
props.allowRegister && /* @__PURE__ */
|
10205
|
+
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
10206
|
"span",
|
10195
10207
|
{
|
10196
10208
|
onClick: props.onRouteToRegister,
|
@@ -10199,7 +10211,7 @@ var LoginForm = ({
|
|
10199
10211
|
(texts == null ? void 0 : texts.createAccount) || "Create Account"
|
10200
10212
|
))
|
10201
10213
|
)),
|
10202
|
-
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
10214
|
+
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React83.createElement(
|
10203
10215
|
CardFooter,
|
10204
10216
|
{
|
10205
10217
|
noPadding: props.cardless,
|
@@ -10207,7 +10219,7 @@ var LoginForm = ({
|
|
10207
10219
|
props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
|
10208
10220
|
)
|
10209
10221
|
},
|
10210
|
-
/* @__PURE__ */
|
10222
|
+
/* @__PURE__ */ React83.createElement(
|
10211
10223
|
AuthButtons,
|
10212
10224
|
{
|
10213
10225
|
texts: thirdPartyAuthTexts,
|
@@ -10227,7 +10239,7 @@ var LoginForm = ({
|
|
10227
10239
|
};
|
10228
10240
|
|
10229
10241
|
// blocks/auth/RegisterForm.tsx
|
10230
|
-
import
|
10242
|
+
import React84, { useState as useState40 } from "react";
|
10231
10243
|
import { Controller as Controller2, FormProvider, useForm as useForm2 } from "react-hook-form";
|
10232
10244
|
import { zodResolver as zodResolver2 } from "@hookform/resolvers/zod";
|
10233
10245
|
import * as z2 from "zod";
|
@@ -10306,7 +10318,7 @@ var RegisterForm = ({
|
|
10306
10318
|
const { handleSubmit, control, formState } = useForm2({
|
10307
10319
|
resolver: zodResolver2(formSchema)
|
10308
10320
|
});
|
10309
|
-
return /* @__PURE__ */
|
10321
|
+
return /* @__PURE__ */ React84.createElement(
|
10310
10322
|
"div",
|
10311
10323
|
{
|
10312
10324
|
className: cn(
|
@@ -10314,7 +10326,7 @@ var RegisterForm = ({
|
|
10314
10326
|
(_g = props.classNames) == null ? void 0 : _g.root
|
10315
10327
|
)
|
10316
10328
|
},
|
10317
|
-
/* @__PURE__ */
|
10329
|
+
/* @__PURE__ */ React84.createElement(
|
10318
10330
|
Card,
|
10319
10331
|
{
|
10320
10332
|
dir: props.direction,
|
@@ -10323,7 +10335,7 @@ var RegisterForm = ({
|
|
10323
10335
|
props.cardless && "hawa-border-none hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
|
10324
10336
|
)
|
10325
10337
|
},
|
10326
|
-
/* @__PURE__ */
|
10338
|
+
/* @__PURE__ */ React84.createElement(CardContent, { headless: true, noPadding: props.cardless }, /* @__PURE__ */ React84.createElement("div", null, props.showError && /* @__PURE__ */ React84.createElement(
|
10327
10339
|
Alert,
|
10328
10340
|
{
|
10329
10341
|
direction: props.direction,
|
@@ -10336,7 +10348,7 @@ var RegisterForm = ({
|
|
10336
10348
|
}
|
10337
10349
|
}
|
10338
10350
|
}
|
10339
|
-
), /* @__PURE__ */
|
10351
|
+
), /* @__PURE__ */ React84.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React84.createElement(
|
10340
10352
|
"form",
|
10341
10353
|
{
|
10342
10354
|
noValidate: true,
|
@@ -10351,9 +10363,9 @@ var RegisterForm = ({
|
|
10351
10363
|
}),
|
10352
10364
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
10353
10365
|
},
|
10354
|
-
/* @__PURE__ */
|
10366
|
+
/* @__PURE__ */ React84.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, registerFields.map((fld, i) => {
|
10355
10367
|
if (fld === "fullname") {
|
10356
|
-
return /* @__PURE__ */
|
10368
|
+
return /* @__PURE__ */ React84.createElement(
|
10357
10369
|
Controller2,
|
10358
10370
|
{
|
10359
10371
|
key: i,
|
@@ -10361,7 +10373,7 @@ var RegisterForm = ({
|
|
10361
10373
|
name: "fullName",
|
10362
10374
|
render: ({ field }) => {
|
10363
10375
|
var _a2, _b2, _c2;
|
10364
|
-
return /* @__PURE__ */
|
10376
|
+
return /* @__PURE__ */ React84.createElement(
|
10365
10377
|
Input,
|
10366
10378
|
{
|
10367
10379
|
width: "full",
|
@@ -10376,7 +10388,7 @@ var RegisterForm = ({
|
|
10376
10388
|
);
|
10377
10389
|
}
|
10378
10390
|
if (fld === "email") {
|
10379
|
-
return /* @__PURE__ */
|
10391
|
+
return /* @__PURE__ */ React84.createElement(
|
10380
10392
|
Controller2,
|
10381
10393
|
{
|
10382
10394
|
key: i,
|
@@ -10384,7 +10396,7 @@ var RegisterForm = ({
|
|
10384
10396
|
name: "email",
|
10385
10397
|
render: ({ field }) => {
|
10386
10398
|
var _a2, _b2, _c2;
|
10387
|
-
return /* @__PURE__ */
|
10399
|
+
return /* @__PURE__ */ React84.createElement(
|
10388
10400
|
Input,
|
10389
10401
|
{
|
10390
10402
|
dir: "ltr",
|
@@ -10404,7 +10416,7 @@ var RegisterForm = ({
|
|
10404
10416
|
);
|
10405
10417
|
}
|
10406
10418
|
if (fld === "username") {
|
10407
|
-
return /* @__PURE__ */
|
10419
|
+
return /* @__PURE__ */ React84.createElement(
|
10408
10420
|
Controller2,
|
10409
10421
|
{
|
10410
10422
|
key: i,
|
@@ -10412,7 +10424,7 @@ var RegisterForm = ({
|
|
10412
10424
|
name: "username",
|
10413
10425
|
render: ({ field }) => {
|
10414
10426
|
var _a2, _b2, _c2, _d2;
|
10415
|
-
return /* @__PURE__ */
|
10427
|
+
return /* @__PURE__ */ React84.createElement(
|
10416
10428
|
Input,
|
10417
10429
|
{
|
10418
10430
|
width: "full",
|
@@ -10431,25 +10443,25 @@ var RegisterForm = ({
|
|
10431
10443
|
);
|
10432
10444
|
}
|
10433
10445
|
})),
|
10434
|
-
/* @__PURE__ */
|
10446
|
+
/* @__PURE__ */ React84.createElement(
|
10435
10447
|
Controller2,
|
10436
10448
|
{
|
10437
10449
|
control,
|
10438
10450
|
name: "password",
|
10439
10451
|
render: ({ field }) => {
|
10440
10452
|
var _a2, _b2, _c2;
|
10441
|
-
return /* @__PURE__ */
|
10453
|
+
return /* @__PURE__ */ React84.createElement(
|
10442
10454
|
Input,
|
10443
10455
|
{
|
10444
10456
|
width: "full",
|
10445
10457
|
type: passwordVisible ? "text" : "password",
|
10446
|
-
endIcon: /* @__PURE__ */
|
10458
|
+
endIcon: /* @__PURE__ */ React84.createElement(
|
10447
10459
|
"div",
|
10448
10460
|
{
|
10449
10461
|
className: "hawa-cursor-pointer",
|
10450
10462
|
onClick: () => setPasswordVisible(!passwordVisible)
|
10451
10463
|
},
|
10452
|
-
passwordVisible ? /* @__PURE__ */
|
10464
|
+
passwordVisible ? /* @__PURE__ */ React84.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React84.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
10453
10465
|
" "
|
10454
10466
|
),
|
10455
10467
|
autoComplete: "new-password",
|
@@ -10462,14 +10474,14 @@ var RegisterForm = ({
|
|
10462
10474
|
}
|
10463
10475
|
}
|
10464
10476
|
),
|
10465
|
-
/* @__PURE__ */
|
10477
|
+
/* @__PURE__ */ React84.createElement(
|
10466
10478
|
Controller2,
|
10467
10479
|
{
|
10468
10480
|
control,
|
10469
10481
|
name: "confirm_password",
|
10470
10482
|
render: ({ field }) => {
|
10471
10483
|
var _a2, _b2, _c2;
|
10472
|
-
return /* @__PURE__ */
|
10484
|
+
return /* @__PURE__ */ React84.createElement(
|
10473
10485
|
Input,
|
10474
10486
|
{
|
10475
10487
|
width: "full",
|
@@ -10485,14 +10497,14 @@ var RegisterForm = ({
|
|
10485
10497
|
}
|
10486
10498
|
),
|
10487
10499
|
props.additionalInputs,
|
10488
|
-
props.showRefCode && /* @__PURE__ */
|
10500
|
+
props.showRefCode && /* @__PURE__ */ React84.createElement(
|
10489
10501
|
Controller2,
|
10490
10502
|
{
|
10491
10503
|
control,
|
10492
10504
|
name: "refCode",
|
10493
10505
|
render: ({ field }) => {
|
10494
10506
|
var _a2;
|
10495
|
-
return /* @__PURE__ */
|
10507
|
+
return /* @__PURE__ */ React84.createElement(
|
10496
10508
|
Input,
|
10497
10509
|
{
|
10498
10510
|
width: "full",
|
@@ -10505,14 +10517,14 @@ var RegisterForm = ({
|
|
10505
10517
|
}
|
10506
10518
|
}
|
10507
10519
|
),
|
10508
|
-
props.showUserSource && /* @__PURE__ */
|
10520
|
+
props.showUserSource && /* @__PURE__ */ React84.createElement(
|
10509
10521
|
Controller2,
|
10510
10522
|
{
|
10511
10523
|
control,
|
10512
10524
|
name: "reference",
|
10513
10525
|
render: ({ field }) => {
|
10514
10526
|
var _a2, _b2;
|
10515
|
-
return /* @__PURE__ */
|
10527
|
+
return /* @__PURE__ */ React84.createElement(
|
10516
10528
|
Select,
|
10517
10529
|
{
|
10518
10530
|
label: ((_a2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _a2.label) || "How did you learn about us?",
|
@@ -10528,20 +10540,20 @@ var RegisterForm = ({
|
|
10528
10540
|
}
|
10529
10541
|
}
|
10530
10542
|
),
|
10531
|
-
showTermsOption || showNewsletterOption ? /* @__PURE__ */
|
10543
|
+
showTermsOption || showNewsletterOption ? /* @__PURE__ */ React84.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-3 hawa-mb-2" }, showTermsOption && /* @__PURE__ */ React84.createElement(
|
10532
10544
|
Controller2,
|
10533
10545
|
{
|
10534
10546
|
control,
|
10535
10547
|
name: "terms_accepted",
|
10536
10548
|
render: ({ field }) => {
|
10537
10549
|
var _a2, _b2;
|
10538
|
-
return /* @__PURE__ */
|
10550
|
+
return /* @__PURE__ */ React84.createElement(
|
10539
10551
|
Checkbox,
|
10540
10552
|
{
|
10541
10553
|
id: "terms_accepted",
|
10542
10554
|
helperText: (_b2 = (_a2 = formState.errors.terms_accepted) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString(),
|
10543
10555
|
onCheckedChange: (e) => field.onChange(e),
|
10544
|
-
label: /* @__PURE__ */
|
10556
|
+
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
10557
|
"span",
|
10546
10558
|
{
|
10547
10559
|
onClick: (e) => {
|
@@ -10558,12 +10570,12 @@ var RegisterForm = ({
|
|
10558
10570
|
);
|
10559
10571
|
}
|
10560
10572
|
}
|
10561
|
-
), showNewsletterOption && /* @__PURE__ */
|
10573
|
+
), showNewsletterOption && /* @__PURE__ */ React84.createElement(
|
10562
10574
|
Controller2,
|
10563
10575
|
{
|
10564
10576
|
control,
|
10565
10577
|
name: "newsletter_accepted",
|
10566
|
-
render: ({ field }) => /* @__PURE__ */
|
10578
|
+
render: ({ field }) => /* @__PURE__ */ React84.createElement(
|
10567
10579
|
Checkbox,
|
10568
10580
|
{
|
10569
10581
|
id: "newsletter_accepted",
|
@@ -10573,7 +10585,7 @@ var RegisterForm = ({
|
|
10573
10585
|
)
|
10574
10586
|
}
|
10575
10587
|
)) : null,
|
10576
|
-
/* @__PURE__ */
|
10588
|
+
/* @__PURE__ */ React84.createElement(
|
10577
10589
|
Button,
|
10578
10590
|
{
|
10579
10591
|
className: " hawa-w-full",
|
@@ -10584,8 +10596,8 @@ var RegisterForm = ({
|
|
10584
10596
|
(texts == null ? void 0 : texts.registerText) || "Register"
|
10585
10597
|
),
|
10586
10598
|
props.additionalButtons
|
10587
|
-
)), props.onRouteToLogin && /* @__PURE__ */
|
10588
|
-
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
10599
|
+
)), 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")))),
|
10600
|
+
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React84.createElement(
|
10589
10601
|
CardFooter,
|
10590
10602
|
{
|
10591
10603
|
noPadding: props.cardless,
|
@@ -10593,7 +10605,7 @@ var RegisterForm = ({
|
|
10593
10605
|
props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
|
10594
10606
|
)
|
10595
10607
|
},
|
10596
|
-
/* @__PURE__ */
|
10608
|
+
/* @__PURE__ */ React84.createElement(
|
10597
10609
|
AuthButtons,
|
10598
10610
|
{
|
10599
10611
|
texts: thirdPartyAuthTexts,
|
@@ -10614,7 +10626,7 @@ var RegisterForm = ({
|
|
10614
10626
|
};
|
10615
10627
|
|
10616
10628
|
// blocks/auth/AppLanding.tsx
|
10617
|
-
import
|
10629
|
+
import React85 from "react";
|
10618
10630
|
var AppLanding = ({ texts, ...props }) => {
|
10619
10631
|
const thirdPartyAuthTexts = {
|
10620
10632
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
@@ -10625,7 +10637,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
10625
10637
|
continueWithEmail: texts == null ? void 0 : texts.continueWithEmail,
|
10626
10638
|
continueWithPhone: texts == null ? void 0 : texts.continueWithPhone
|
10627
10639
|
};
|
10628
|
-
return /* @__PURE__ */
|
10640
|
+
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
10641
|
AuthButtons,
|
10630
10642
|
{
|
10631
10643
|
texts: thirdPartyAuthTexts,
|
@@ -10644,7 +10656,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
10644
10656
|
handleEmail: props.handleEmail,
|
10645
10657
|
handlePhone: props.handlePhone
|
10646
10658
|
}
|
10647
|
-
), props.allowRegister && /* @__PURE__ */
|
10659
|
+
), 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
10660
|
"span",
|
10649
10661
|
{
|
10650
10662
|
onClick: props.handleRouteToRegister,
|
@@ -10655,9 +10667,9 @@ var AppLanding = ({ texts, ...props }) => {
|
|
10655
10667
|
};
|
10656
10668
|
|
10657
10669
|
// blocks/auth/CheckEmail.tsx
|
10658
|
-
import
|
10670
|
+
import React86 from "react";
|
10659
10671
|
var CheckEmail = ({ texts, handleResend }) => {
|
10660
|
-
return /* @__PURE__ */
|
10672
|
+
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
10673
|
"svg",
|
10662
10674
|
{
|
10663
10675
|
stroke: "currentColor",
|
@@ -10670,13 +10682,13 @@ var CheckEmail = ({ texts, handleResend }) => {
|
|
10670
10682
|
width: "0.5em",
|
10671
10683
|
xmlns: "http://www.w3.org/2000/svg"
|
10672
10684
|
},
|
10673
|
-
/* @__PURE__ */
|
10674
|
-
/* @__PURE__ */
|
10675
|
-
)), /* @__PURE__ */
|
10685
|
+
/* @__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" }),
|
10686
|
+
/* @__PURE__ */ React86.createElement("polyline", { points: "22,6 12,13 2,6" })
|
10687
|
+
)), /* @__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
10688
|
};
|
10677
10689
|
|
10678
10690
|
// blocks/auth/NewPassword.tsx
|
10679
|
-
import
|
10691
|
+
import React87 from "react";
|
10680
10692
|
import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
|
10681
10693
|
import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
|
10682
10694
|
import * as z3 from "zod";
|
@@ -10698,7 +10710,7 @@ var NewPasswordForm = ({
|
|
10698
10710
|
const { handleSubmit, control, formState } = useForm3({
|
10699
10711
|
resolver: zodResolver3(formSchema)
|
10700
10712
|
});
|
10701
|
-
return /* @__PURE__ */
|
10713
|
+
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
10714
|
"form",
|
10703
10715
|
{
|
10704
10716
|
noValidate: true,
|
@@ -10712,7 +10724,7 @@ var NewPasswordForm = ({
|
|
10712
10724
|
}
|
10713
10725
|
})
|
10714
10726
|
},
|
10715
|
-
/* @__PURE__ */
|
10727
|
+
/* @__PURE__ */ React87.createElement(CardContent, { headless: true, className: "hawa-flex hawa-flex-col" }, props.showError && /* @__PURE__ */ React87.createElement(
|
10716
10728
|
Alert,
|
10717
10729
|
{
|
10718
10730
|
direction: props.direction,
|
@@ -10720,14 +10732,14 @@ var NewPasswordForm = ({
|
|
10720
10732
|
text: props.errorText,
|
10721
10733
|
severity: "error"
|
10722
10734
|
}
|
10723
|
-
), /* @__PURE__ */
|
10735
|
+
), /* @__PURE__ */ React87.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4 hawa-mb-4" }, /* @__PURE__ */ React87.createElement(
|
10724
10736
|
Controller3,
|
10725
10737
|
{
|
10726
10738
|
control,
|
10727
10739
|
name: "password",
|
10728
10740
|
render: ({ field }) => {
|
10729
10741
|
var _a2, _b2, _c2;
|
10730
|
-
return /* @__PURE__ */
|
10742
|
+
return /* @__PURE__ */ React87.createElement(
|
10731
10743
|
Input,
|
10732
10744
|
{
|
10733
10745
|
width: "full",
|
@@ -10741,14 +10753,14 @@ var NewPasswordForm = ({
|
|
10741
10753
|
);
|
10742
10754
|
}
|
10743
10755
|
}
|
10744
|
-
), /* @__PURE__ */
|
10756
|
+
), /* @__PURE__ */ React87.createElement(
|
10745
10757
|
Controller3,
|
10746
10758
|
{
|
10747
10759
|
control,
|
10748
10760
|
name: "confirm_password",
|
10749
10761
|
render: ({ field }) => {
|
10750
10762
|
var _a2, _b2, _c2;
|
10751
|
-
return /* @__PURE__ */
|
10763
|
+
return /* @__PURE__ */ React87.createElement(
|
10752
10764
|
Input,
|
10753
10765
|
{
|
10754
10766
|
width: "full",
|
@@ -10762,7 +10774,7 @@ var NewPasswordForm = ({
|
|
10762
10774
|
);
|
10763
10775
|
}
|
10764
10776
|
}
|
10765
|
-
)), /* @__PURE__ */
|
10777
|
+
)), /* @__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
10778
|
"span",
|
10767
10779
|
{
|
10768
10780
|
className: "clickable-link",
|
@@ -10774,7 +10786,7 @@ var NewPasswordForm = ({
|
|
10774
10786
|
};
|
10775
10787
|
|
10776
10788
|
// blocks/auth/ResetPassword.tsx
|
10777
|
-
import
|
10789
|
+
import React88 from "react";
|
10778
10790
|
import { Controller as Controller4, useForm as useForm4 } from "react-hook-form";
|
10779
10791
|
import { zodResolver as zodResolver4 } from "@hookform/resolvers/zod";
|
10780
10792
|
import * as z4 from "zod";
|
@@ -10792,7 +10804,7 @@ var ResetPasswordForm = ({
|
|
10792
10804
|
const { handleSubmit, control, formState } = useForm4({
|
10793
10805
|
resolver: zodResolver4(formSchema)
|
10794
10806
|
});
|
10795
|
-
return /* @__PURE__ */
|
10807
|
+
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
10808
|
"form",
|
10797
10809
|
{
|
10798
10810
|
noValidate: true,
|
@@ -10804,7 +10816,7 @@ var ResetPasswordForm = ({
|
|
10804
10816
|
}
|
10805
10817
|
})
|
10806
10818
|
},
|
10807
|
-
/* @__PURE__ */
|
10819
|
+
/* @__PURE__ */ React88.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, props.showError && /* @__PURE__ */ React88.createElement(
|
10808
10820
|
Alert,
|
10809
10821
|
{
|
10810
10822
|
direction: props.direction,
|
@@ -10812,14 +10824,14 @@ var ResetPasswordForm = ({
|
|
10812
10824
|
text: props.errorText,
|
10813
10825
|
severity: "error"
|
10814
10826
|
}
|
10815
|
-
), /* @__PURE__ */
|
10827
|
+
), /* @__PURE__ */ React88.createElement(
|
10816
10828
|
Controller4,
|
10817
10829
|
{
|
10818
10830
|
control,
|
10819
10831
|
name: "email",
|
10820
10832
|
render: ({ field }) => {
|
10821
10833
|
var _a2, _b2, _c2, _d2, _e2;
|
10822
|
-
return /* @__PURE__ */
|
10834
|
+
return /* @__PURE__ */ React88.createElement(
|
10823
10835
|
Input,
|
10824
10836
|
{
|
10825
10837
|
width: "full",
|
@@ -10832,7 +10844,7 @@ var ResetPasswordForm = ({
|
|
10832
10844
|
}
|
10833
10845
|
}
|
10834
10846
|
)),
|
10835
|
-
/* @__PURE__ */
|
10847
|
+
/* @__PURE__ */ React88.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React88.createElement(
|
10836
10848
|
Button,
|
10837
10849
|
{
|
10838
10850
|
type: "submit",
|
@@ -10840,7 +10852,7 @@ var ResetPasswordForm = ({
|
|
10840
10852
|
isLoading
|
10841
10853
|
},
|
10842
10854
|
((_i = props.texts) == null ? void 0 : _i.resetPassword) || "Reset Password"
|
10843
|
-
), allowRegister && /* @__PURE__ */
|
10855
|
+
), 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
10856
|
"span",
|
10845
10857
|
{
|
10846
10858
|
className: "clickable-link",
|
@@ -10848,11 +10860,11 @@ var ResetPasswordForm = ({
|
|
10848
10860
|
},
|
10849
10861
|
(_m = (_l = props.texts) == null ? void 0 : _l.registerText) != null ? _m : "Register"
|
10850
10862
|
)))
|
10851
|
-
)) : /* @__PURE__ */
|
10863
|
+
)) : /* @__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
10864
|
};
|
10853
10865
|
|
10854
10866
|
// blocks/auth/CodeConfirmation.tsx
|
10855
|
-
import
|
10867
|
+
import React89, { useEffect as useEffect30, useState as useState41 } from "react";
|
10856
10868
|
import { Controller as Controller5, useForm as useForm5 } from "react-hook-form";
|
10857
10869
|
import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
|
10858
10870
|
import * as z5 from "zod";
|
@@ -10895,14 +10907,14 @@ var CodeConfirmation = (props) => {
|
|
10895
10907
|
}
|
10896
10908
|
};
|
10897
10909
|
}, []);
|
10898
|
-
return /* @__PURE__ */
|
10910
|
+
return /* @__PURE__ */ React89.createElement(Card, null, /* @__PURE__ */ React89.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ React89.createElement(
|
10899
10911
|
Alert,
|
10900
10912
|
{
|
10901
10913
|
title: props.errorTitle,
|
10902
10914
|
text: props.errorText,
|
10903
10915
|
severity: "error"
|
10904
10916
|
}
|
10905
|
-
), /* @__PURE__ */
|
10917
|
+
), /* @__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
10918
|
"form",
|
10907
10919
|
{
|
10908
10920
|
noValidate: true,
|
@@ -10916,14 +10928,14 @@ var CodeConfirmation = (props) => {
|
|
10916
10928
|
}
|
10917
10929
|
})
|
10918
10930
|
},
|
10919
|
-
/* @__PURE__ */
|
10931
|
+
/* @__PURE__ */ React89.createElement(
|
10920
10932
|
Controller5,
|
10921
10933
|
{
|
10922
10934
|
control,
|
10923
10935
|
name: "otp_code",
|
10924
10936
|
render: ({ field }) => {
|
10925
10937
|
var _a2;
|
10926
|
-
return /* @__PURE__ */
|
10938
|
+
return /* @__PURE__ */ React89.createElement(
|
10927
10939
|
PinInput,
|
10928
10940
|
{
|
10929
10941
|
width: "full",
|
@@ -10935,7 +10947,7 @@ var CodeConfirmation = (props) => {
|
|
10935
10947
|
}
|
10936
10948
|
}
|
10937
10949
|
),
|
10938
|
-
showResendTimer ? /* @__PURE__ */
|
10950
|
+
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
10951
|
"span",
|
10940
10952
|
{
|
10941
10953
|
className: "clickable-link",
|
@@ -10946,12 +10958,12 @@ var CodeConfirmation = (props) => {
|
|
10946
10958
|
},
|
10947
10959
|
((_i = props.texts) == null ? void 0 : _i.resendCode) || "Click to resend"
|
10948
10960
|
)),
|
10949
|
-
/* @__PURE__ */
|
10961
|
+
/* @__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
10962
|
)));
|
10951
10963
|
};
|
10952
10964
|
|
10953
10965
|
// blocks/feedback/UserReferralSource.tsx
|
10954
|
-
import
|
10966
|
+
import React90, { useRef as useRef20, useState as useState42 } from "react";
|
10955
10967
|
import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
|
10956
10968
|
import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
|
10957
10969
|
import * as z6 from "zod";
|
@@ -10982,7 +10994,7 @@ var UserReferralSource = ({
|
|
10982
10994
|
label: "Other"
|
10983
10995
|
}
|
10984
10996
|
];
|
10985
|
-
return /* @__PURE__ */
|
10997
|
+
return /* @__PURE__ */ React90.createElement(
|
10986
10998
|
"div",
|
10987
10999
|
{
|
10988
11000
|
className: cn(
|
@@ -10991,7 +11003,7 @@ var UserReferralSource = ({
|
|
10991
11003
|
),
|
10992
11004
|
ref: popUpRef
|
10993
11005
|
},
|
10994
|
-
/* @__PURE__ */
|
11006
|
+
/* @__PURE__ */ React90.createElement(
|
10995
11007
|
Card,
|
10996
11008
|
{
|
10997
11009
|
className: cn(
|
@@ -11000,7 +11012,7 @@ var UserReferralSource = ({
|
|
11000
11012
|
),
|
11001
11013
|
dir: props.direction
|
11002
11014
|
},
|
11003
|
-
/* @__PURE__ */
|
11015
|
+
/* @__PURE__ */ React90.createElement(
|
11004
11016
|
"button",
|
11005
11017
|
{
|
11006
11018
|
type: "button",
|
@@ -11019,7 +11031,7 @@ var UserReferralSource = ({
|
|
11019
11031
|
}, 200);
|
11020
11032
|
}
|
11021
11033
|
},
|
11022
|
-
/* @__PURE__ */
|
11034
|
+
/* @__PURE__ */ React90.createElement(
|
11023
11035
|
"svg",
|
11024
11036
|
{
|
11025
11037
|
"aria-hidden": "true",
|
@@ -11027,7 +11039,7 @@ var UserReferralSource = ({
|
|
11027
11039
|
fill: "currentColor",
|
11028
11040
|
viewBox: "0 0 20 20"
|
11029
11041
|
},
|
11030
|
-
/* @__PURE__ */
|
11042
|
+
/* @__PURE__ */ React90.createElement(
|
11031
11043
|
"path",
|
11032
11044
|
{
|
11033
11045
|
fillRule: "evenodd",
|
@@ -11037,7 +11049,7 @@ var UserReferralSource = ({
|
|
11037
11049
|
)
|
11038
11050
|
)
|
11039
11051
|
),
|
11040
|
-
/* @__PURE__ */
|
11052
|
+
/* @__PURE__ */ React90.createElement(CardContent, { headless: true }, /* @__PURE__ */ React90.createElement(
|
11041
11053
|
"form",
|
11042
11054
|
{
|
11043
11055
|
noValidate: true,
|
@@ -11049,7 +11061,7 @@ var UserReferralSource = ({
|
|
11049
11061
|
}
|
11050
11062
|
})
|
11051
11063
|
},
|
11052
|
-
/* @__PURE__ */
|
11064
|
+
/* @__PURE__ */ React90.createElement(
|
11053
11065
|
"div",
|
11054
11066
|
{
|
11055
11067
|
className: cn(
|
@@ -11057,15 +11069,15 @@ var UserReferralSource = ({
|
|
11057
11069
|
closed ? "hawa-opacity-0" : "hawa-opacity-100"
|
11058
11070
|
)
|
11059
11071
|
},
|
11060
|
-
/* @__PURE__ */
|
11061
|
-
/* @__PURE__ */
|
11072
|
+
/* @__PURE__ */ React90.createElement("div", { className: "hawa-mt-4 hawa-font-bold" }, props.question),
|
11073
|
+
/* @__PURE__ */ React90.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded " }, /* @__PURE__ */ React90.createElement(
|
11062
11074
|
Controller6,
|
11063
11075
|
{
|
11064
11076
|
control,
|
11065
11077
|
name: "source",
|
11066
11078
|
render: ({ field }) => {
|
11067
11079
|
var _a2, _b2;
|
11068
|
-
return /* @__PURE__ */
|
11080
|
+
return /* @__PURE__ */ React90.createElement(
|
11069
11081
|
Radio,
|
11070
11082
|
{
|
11071
11083
|
name: "source",
|
@@ -11080,14 +11092,14 @@ var UserReferralSource = ({
|
|
11080
11092
|
}
|
11081
11093
|
}
|
11082
11094
|
)),
|
11083
|
-
/* @__PURE__ */
|
11095
|
+
/* @__PURE__ */ React90.createElement("div", null, /* @__PURE__ */ React90.createElement(
|
11084
11096
|
Controller6,
|
11085
11097
|
{
|
11086
11098
|
control,
|
11087
11099
|
name: "feedback",
|
11088
11100
|
render: ({ field }) => {
|
11089
11101
|
var _a2, _b2;
|
11090
|
-
return /* @__PURE__ */
|
11102
|
+
return /* @__PURE__ */ React90.createElement(
|
11091
11103
|
Textarea,
|
11092
11104
|
{
|
11093
11105
|
...field,
|
@@ -11102,14 +11114,14 @@ var UserReferralSource = ({
|
|
11102
11114
|
}
|
11103
11115
|
))
|
11104
11116
|
),
|
11105
|
-
/* @__PURE__ */
|
11117
|
+
/* @__PURE__ */ React90.createElement(Button, { type: "submit", className: "hawa-mt-4 hawa-w-full" }, ((_b = props.texts) == null ? void 0 : _b.submit) || "Submit")
|
11106
11118
|
))
|
11107
11119
|
)
|
11108
11120
|
);
|
11109
11121
|
};
|
11110
11122
|
|
11111
11123
|
// blocks/feedback/FeedbackRating.tsx
|
11112
|
-
import
|
11124
|
+
import React91, { useEffect as useEffect31, useRef as useRef21, useState as useState43 } from "react";
|
11113
11125
|
var FeedbackRating = ({
|
11114
11126
|
position = "bottom-right",
|
11115
11127
|
...props
|
@@ -11141,7 +11153,7 @@ var FeedbackRating = ({
|
|
11141
11153
|
}
|
11142
11154
|
}, 200);
|
11143
11155
|
};
|
11144
|
-
return /* @__PURE__ */
|
11156
|
+
return /* @__PURE__ */ React91.createElement(
|
11145
11157
|
"div",
|
11146
11158
|
{
|
11147
11159
|
ref: popUpRef,
|
@@ -11150,7 +11162,7 @@ var FeedbackRating = ({
|
|
11150
11162
|
boxPosition[position]
|
11151
11163
|
)
|
11152
11164
|
},
|
11153
|
-
/* @__PURE__ */
|
11165
|
+
/* @__PURE__ */ React91.createElement(
|
11154
11166
|
"div",
|
11155
11167
|
{
|
11156
11168
|
className: cn(
|
@@ -11159,8 +11171,8 @@ var FeedbackRating = ({
|
|
11159
11171
|
props.banner && "hawa-rounded-none hawa-px-4 md:hawa-rounded-t md:hawa-px-64"
|
11160
11172
|
)
|
11161
11173
|
},
|
11162
|
-
/* @__PURE__ */
|
11163
|
-
/* @__PURE__ */
|
11174
|
+
/* @__PURE__ */ React91.createElement("div", { className: "hawa-absolute hawa-left-2 hawa-top-2 hawa-p-1.5 hawa-text-sm" }, props.title),
|
11175
|
+
/* @__PURE__ */ React91.createElement(
|
11164
11176
|
"button",
|
11165
11177
|
{
|
11166
11178
|
type: "button",
|
@@ -11169,7 +11181,7 @@ var FeedbackRating = ({
|
|
11169
11181
|
"aria-label": "Close",
|
11170
11182
|
onClick: () => slowClose()
|
11171
11183
|
},
|
11172
|
-
/* @__PURE__ */
|
11184
|
+
/* @__PURE__ */ React91.createElement(
|
11173
11185
|
"svg",
|
11174
11186
|
{
|
11175
11187
|
"aria-hidden": "true",
|
@@ -11177,7 +11189,7 @@ var FeedbackRating = ({
|
|
11177
11189
|
fill: "currentColor",
|
11178
11190
|
viewBox: "0 0 20 20"
|
11179
11191
|
},
|
11180
|
-
/* @__PURE__ */
|
11192
|
+
/* @__PURE__ */ React91.createElement(
|
11181
11193
|
"path",
|
11182
11194
|
{
|
11183
11195
|
fillRule: "evenodd",
|
@@ -11187,8 +11199,8 @@ var FeedbackRating = ({
|
|
11187
11199
|
)
|
11188
11200
|
)
|
11189
11201
|
),
|
11190
|
-
/* @__PURE__ */
|
11191
|
-
/* @__PURE__ */
|
11202
|
+
/* @__PURE__ */ React91.createElement("div", { className: "hawa-mt-8" }, props.question),
|
11203
|
+
/* @__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
11204
|
"span",
|
11193
11205
|
{
|
11194
11206
|
key: i,
|
@@ -11216,24 +11228,24 @@ var FeedbackRating = ({
|
|
11216
11228
|
},
|
11217
11229
|
op
|
11218
11230
|
))),
|
11219
|
-
props.texts && /* @__PURE__ */
|
11220
|
-
answered && /* @__PURE__ */
|
11231
|
+
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)),
|
11232
|
+
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
11233
|
)
|
11222
11234
|
);
|
11223
11235
|
};
|
11224
11236
|
|
11225
11237
|
// blocks/feedback/FeedbackEmoji.tsx
|
11226
|
-
import
|
11238
|
+
import React92, { useState as useState44 } from "react";
|
11227
11239
|
var FeedbackEmoji = (props) => {
|
11228
11240
|
const [selectedEmoji, setSelectedEmoji] = useState44(null);
|
11229
11241
|
const [loadingSubmit, setLoadingSubmit] = useState44(false);
|
11230
11242
|
const [feedbackText, setFeedbackText] = useState44("");
|
11231
11243
|
const [helperText, setHelperText] = useState44(false);
|
11232
11244
|
let emojis = [
|
11233
|
-
{ icon: /* @__PURE__ */
|
11234
|
-
{ icon: /* @__PURE__ */
|
11235
|
-
{ icon: /* @__PURE__ */
|
11236
|
-
{ icon: /* @__PURE__ */
|
11245
|
+
{ icon: /* @__PURE__ */ React92.createElement(VeryGoodEmoji, null), value: "very-good" },
|
11246
|
+
{ icon: /* @__PURE__ */ React92.createElement(GoodEmoji, null), value: "good" },
|
11247
|
+
{ icon: /* @__PURE__ */ React92.createElement(BadEmoji, null), value: "bad" },
|
11248
|
+
{ icon: /* @__PURE__ */ React92.createElement(VeryBadEmoji, null), value: "very-bad" }
|
11237
11249
|
];
|
11238
11250
|
const onFeedbackSubmit = async () => {
|
11239
11251
|
if (feedbackText) {
|
@@ -11253,7 +11265,7 @@ var FeedbackEmoji = (props) => {
|
|
11253
11265
|
setHelperText(true);
|
11254
11266
|
}
|
11255
11267
|
};
|
11256
|
-
return /* @__PURE__ */
|
11268
|
+
return /* @__PURE__ */ React92.createElement(
|
11257
11269
|
"div",
|
11258
11270
|
{
|
11259
11271
|
className: cn(
|
@@ -11261,7 +11273,7 @@ var FeedbackEmoji = (props) => {
|
|
11261
11273
|
selectedEmoji ? "hawa-h-[189px] hawa-min-w-fit" : "hawa-h-[44px] "
|
11262
11274
|
)
|
11263
11275
|
},
|
11264
|
-
/* @__PURE__ */
|
11276
|
+
/* @__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
11277
|
Button,
|
11266
11278
|
{
|
11267
11279
|
key: i,
|
@@ -11280,7 +11292,7 @@ var FeedbackEmoji = (props) => {
|
|
11280
11292
|
},
|
11281
11293
|
emoji.icon
|
11282
11294
|
)))),
|
11283
|
-
/* @__PURE__ */
|
11295
|
+
/* @__PURE__ */ React92.createElement(
|
11284
11296
|
"div",
|
11285
11297
|
{
|
11286
11298
|
className: cn(
|
@@ -11288,7 +11300,7 @@ var FeedbackEmoji = (props) => {
|
|
11288
11300
|
selectedEmoji ? "hawa-visible hawa-opacity-100" : "hawa-invisible hawa-opacity-0 "
|
11289
11301
|
)
|
11290
11302
|
},
|
11291
|
-
props.showSuccess ? /* @__PURE__ */
|
11303
|
+
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
11304
|
"svg",
|
11293
11305
|
{
|
11294
11306
|
stroke: "currentColor",
|
@@ -11298,13 +11310,13 @@ var FeedbackEmoji = (props) => {
|
|
11298
11310
|
height: "0.5em",
|
11299
11311
|
width: "0.5em"
|
11300
11312
|
},
|
11301
|
-
/* @__PURE__ */
|
11302
|
-
)), /* @__PURE__ */
|
11313
|
+
/* @__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" })
|
11314
|
+
)), /* @__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
11315
|
Popover,
|
11304
11316
|
{
|
11305
11317
|
className: "hawa-select-none hawa-p-1 hawa-text-xs ",
|
11306
11318
|
open: helperText,
|
11307
|
-
trigger: /* @__PURE__ */
|
11319
|
+
trigger: /* @__PURE__ */ React92.createElement(
|
11308
11320
|
Textarea,
|
11309
11321
|
{
|
11310
11322
|
classNames: {
|
@@ -11322,8 +11334,8 @@ var FeedbackEmoji = (props) => {
|
|
11322
11334
|
}
|
11323
11335
|
)
|
11324
11336
|
},
|
11325
|
-
/* @__PURE__ */
|
11326
|
-
), /* @__PURE__ */
|
11337
|
+
/* @__PURE__ */ React92.createElement("span", { className: "hawa-m-0" }, "Please enter your feedback")
|
11338
|
+
), /* @__PURE__ */ React92.createElement(
|
11327
11339
|
Button,
|
11328
11340
|
{
|
11329
11341
|
isLoading: loadingSubmit,
|
@@ -11338,7 +11350,7 @@ var FeedbackEmoji = (props) => {
|
|
11338
11350
|
};
|
11339
11351
|
|
11340
11352
|
// blocks/feedback/FeedbackForm.tsx
|
11341
|
-
import
|
11353
|
+
import React93 from "react";
|
11342
11354
|
import { useForm as useForm7, Controller as Controller7 } from "react-hook-form";
|
11343
11355
|
import { zodResolver as zodResolver7 } from "@hookform/resolvers/zod";
|
11344
11356
|
import * as z7 from "zod";
|
@@ -11352,7 +11364,7 @@ var FeedbackForm = (props) => {
|
|
11352
11364
|
resolver: zodResolver7(formSchema),
|
11353
11365
|
defaultValues: { requestType: "", description: "" }
|
11354
11366
|
});
|
11355
|
-
return /* @__PURE__ */
|
11367
|
+
return /* @__PURE__ */ React93.createElement(
|
11356
11368
|
Card,
|
11357
11369
|
{
|
11358
11370
|
className: cn(
|
@@ -11360,7 +11372,7 @@ var FeedbackForm = (props) => {
|
|
11360
11372
|
),
|
11361
11373
|
style: props.cardless ? { boxShadow: "none" } : void 0
|
11362
11374
|
},
|
11363
|
-
/* @__PURE__ */
|
11375
|
+
/* @__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
11376
|
"form",
|
11365
11377
|
{
|
11366
11378
|
noValidate: true,
|
@@ -11373,15 +11385,15 @@ var FeedbackForm = (props) => {
|
|
11373
11385
|
}),
|
11374
11386
|
className: "hawa-flex hawa-flex-col hawa-gap-2"
|
11375
11387
|
},
|
11376
|
-
/* @__PURE__ */
|
11377
|
-
/* @__PURE__ */
|
11388
|
+
/* @__PURE__ */ React93.createElement(Label2, null),
|
11389
|
+
/* @__PURE__ */ React93.createElement(
|
11378
11390
|
Controller7,
|
11379
11391
|
{
|
11380
11392
|
name: "requestType",
|
11381
11393
|
control,
|
11382
11394
|
render: ({ field }) => {
|
11383
11395
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
|
11384
|
-
return /* @__PURE__ */
|
11396
|
+
return /* @__PURE__ */ React93.createElement(
|
11385
11397
|
Select,
|
11386
11398
|
{
|
11387
11399
|
...field,
|
@@ -11399,14 +11411,14 @@ var FeedbackForm = (props) => {
|
|
11399
11411
|
}
|
11400
11412
|
}
|
11401
11413
|
),
|
11402
|
-
/* @__PURE__ */
|
11414
|
+
/* @__PURE__ */ React93.createElement(
|
11403
11415
|
Controller7,
|
11404
11416
|
{
|
11405
11417
|
name: "description",
|
11406
11418
|
control,
|
11407
11419
|
render: ({ field }) => {
|
11408
11420
|
var _a2, _b2, _c2, _d2, _e2, _f2;
|
11409
|
-
return /* @__PURE__ */
|
11421
|
+
return /* @__PURE__ */ React93.createElement(
|
11410
11422
|
Textarea,
|
11411
11423
|
{
|
11412
11424
|
helperText: formState.errors.description && ((_b2 = (_a2 = formState.errors.description) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString()),
|
@@ -11424,15 +11436,15 @@ var FeedbackForm = (props) => {
|
|
11424
11436
|
}
|
11425
11437
|
}
|
11426
11438
|
),
|
11427
|
-
/* @__PURE__ */
|
11439
|
+
/* @__PURE__ */ React93.createElement(Button, { isLoading: props.loadingSubmission, type: "submit" }, (_i = props.texts) == null ? void 0 : _i.submit)
|
11428
11440
|
))
|
11429
11441
|
);
|
11430
11442
|
};
|
11431
11443
|
|
11432
11444
|
// blocks/misc/LegalTexts.tsx
|
11433
|
-
import
|
11445
|
+
import React94 from "react";
|
11434
11446
|
var LegalTexts = ({ tabs, ...props }) => {
|
11435
|
-
return /* @__PURE__ */
|
11447
|
+
return /* @__PURE__ */ React94.createElement(
|
11436
11448
|
Tabs,
|
11437
11449
|
{
|
11438
11450
|
value: props.activeTab,
|
@@ -11440,8 +11452,8 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
11440
11452
|
defaultValue: props.defaultTab || tabs[0].value,
|
11441
11453
|
dir: props.direction
|
11442
11454
|
},
|
11443
|
-
/* @__PURE__ */
|
11444
|
-
tabs.map((tab, index) => /* @__PURE__ */
|
11455
|
+
/* @__PURE__ */ React94.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ React94.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
|
11456
|
+
tabs.map((tab, index) => /* @__PURE__ */ React94.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ React94.createElement(
|
11445
11457
|
ScrollArea,
|
11446
11458
|
{
|
11447
11459
|
className: cn(
|
@@ -11455,9 +11467,9 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
11455
11467
|
};
|
11456
11468
|
|
11457
11469
|
// blocks/misc/EmptyState.tsx
|
11458
|
-
import
|
11470
|
+
import React95 from "react";
|
11459
11471
|
var EmptyState = ({ texts, onActionClick }) => {
|
11460
|
-
return /* @__PURE__ */
|
11472
|
+
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
11473
|
"svg",
|
11462
11474
|
{
|
11463
11475
|
stroke: "currentColor",
|
@@ -11467,30 +11479,30 @@ var EmptyState = ({ texts, onActionClick }) => {
|
|
11467
11479
|
height: "0.35em",
|
11468
11480
|
width: "0.35em"
|
11469
11481
|
},
|
11470
|
-
/* @__PURE__ */
|
11471
|
-
)), /* @__PURE__ */
|
11482
|
+
/* @__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" })
|
11483
|
+
)), /* @__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
11484
|
};
|
11473
11485
|
|
11474
11486
|
// blocks/misc/Testimonial.tsx
|
11475
|
-
import
|
11487
|
+
import React96 from "react";
|
11476
11488
|
var Testimonial = () => {
|
11477
|
-
return /* @__PURE__ */
|
11489
|
+
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
11490
|
"path",
|
11479
11491
|
{
|
11480
11492
|
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
11493
|
fill: "#FFFFFF"
|
11482
11494
|
}
|
11483
|
-
), /* @__PURE__ */
|
11495
|
+
), /* @__PURE__ */ React96.createElement(
|
11484
11496
|
"path",
|
11485
11497
|
{
|
11486
11498
|
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
11499
|
fill: "#FFFFFF"
|
11488
11500
|
}
|
11489
|
-
)), /* @__PURE__ */
|
11501
|
+
)), /* @__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
11502
|
};
|
11491
11503
|
|
11492
11504
|
// blocks/misc/LeadGenerator.tsx
|
11493
|
-
import
|
11505
|
+
import React97 from "react";
|
11494
11506
|
import { useForm as useForm8, Controller as Controller8 } from "react-hook-form";
|
11495
11507
|
var LeadGenerator = ({ texts, submitHandler }) => {
|
11496
11508
|
var _a;
|
@@ -11502,14 +11514,14 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
11502
11514
|
console.log("handleNewsletterSub props was not provided");
|
11503
11515
|
}
|
11504
11516
|
};
|
11505
|
-
return /* @__PURE__ */
|
11517
|
+
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
11518
|
"form",
|
11507
11519
|
{
|
11508
11520
|
noValidate: true,
|
11509
11521
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
11510
11522
|
onSubmit: handleSubmit(onSubmit)
|
11511
11523
|
},
|
11512
|
-
/* @__PURE__ */
|
11524
|
+
/* @__PURE__ */ React97.createElement(
|
11513
11525
|
Controller8,
|
11514
11526
|
{
|
11515
11527
|
name: "email",
|
@@ -11522,27 +11534,27 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
11522
11534
|
}
|
11523
11535
|
},
|
11524
11536
|
defaultValue: "",
|
11525
|
-
render: ({ field }) => /* @__PURE__ */
|
11537
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
|
11526
11538
|
}
|
11527
11539
|
),
|
11528
|
-
/* @__PURE__ */
|
11540
|
+
/* @__PURE__ */ React97.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
|
11529
11541
|
)));
|
11530
11542
|
};
|
11531
11543
|
|
11532
11544
|
// blocks/misc/Announcement.tsx
|
11533
|
-
import
|
11545
|
+
import React98 from "react";
|
11534
11546
|
var Announcement = ({
|
11535
11547
|
onActionClick,
|
11536
11548
|
...props
|
11537
11549
|
}) => {
|
11538
|
-
return /* @__PURE__ */
|
11550
|
+
return /* @__PURE__ */ React98.createElement(Card, null, /* @__PURE__ */ React98.createElement(
|
11539
11551
|
CardContent,
|
11540
11552
|
{
|
11541
11553
|
headless: true,
|
11542
11554
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
11543
11555
|
},
|
11544
|
-
/* @__PURE__ */
|
11545
|
-
/* @__PURE__ */
|
11556
|
+
/* @__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)),
|
11557
|
+
/* @__PURE__ */ React98.createElement(
|
11546
11558
|
Button,
|
11547
11559
|
{
|
11548
11560
|
onClick: () => onActionClick(),
|
@@ -11554,15 +11566,15 @@ var Announcement = ({
|
|
11554
11566
|
};
|
11555
11567
|
|
11556
11568
|
// blocks/misc/NotFound.tsx
|
11557
|
-
import
|
11569
|
+
import React99 from "react";
|
11558
11570
|
var NotFound = ({ texts }) => {
|
11559
|
-
return /* @__PURE__ */
|
11571
|
+
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
11572
|
};
|
11561
11573
|
|
11562
11574
|
// blocks/misc/NoPermission.tsx
|
11563
|
-
import
|
11575
|
+
import React100 from "react";
|
11564
11576
|
var NoPermission = ({ texts }) => {
|
11565
|
-
return /* @__PURE__ */
|
11577
|
+
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
11578
|
"svg",
|
11567
11579
|
{
|
11568
11580
|
stroke: "currentColor",
|
@@ -11572,12 +11584,12 @@ var NoPermission = ({ texts }) => {
|
|
11572
11584
|
height: "0.35em",
|
11573
11585
|
width: "0.35em"
|
11574
11586
|
},
|
11575
|
-
/* @__PURE__ */
|
11576
|
-
)), /* @__PURE__ */
|
11587
|
+
/* @__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" })
|
11588
|
+
)), /* @__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
11589
|
};
|
11578
11590
|
|
11579
11591
|
// blocks/misc/ContactForm.tsx
|
11580
|
-
import
|
11592
|
+
import React101 from "react";
|
11581
11593
|
import { useForm as useForm9, Controller as Controller9 } from "react-hook-form";
|
11582
11594
|
import { zodResolver as zodResolver8 } from "@hookform/resolvers/zod";
|
11583
11595
|
import * as z8 from "zod";
|
@@ -11649,7 +11661,7 @@ var ContactForm = ({
|
|
11649
11661
|
console.log("Form is submitted but onSubmit prop is missing");
|
11650
11662
|
}
|
11651
11663
|
};
|
11652
|
-
return /* @__PURE__ */
|
11664
|
+
return /* @__PURE__ */ React101.createElement(
|
11653
11665
|
Card,
|
11654
11666
|
{
|
11655
11667
|
className: cn(
|
@@ -11658,7 +11670,7 @@ var ContactForm = ({
|
|
11658
11670
|
),
|
11659
11671
|
style: cardless ? { boxShadow: "none" } : void 0
|
11660
11672
|
},
|
11661
|
-
/* @__PURE__ */
|
11673
|
+
/* @__PURE__ */ React101.createElement(CardContent, { headless: true, className: cardless ? "!hawa-p-0" : "" }, /* @__PURE__ */ React101.createElement(
|
11662
11674
|
"form",
|
11663
11675
|
{
|
11664
11676
|
noValidate: true,
|
@@ -11667,7 +11679,7 @@ var ContactForm = ({
|
|
11667
11679
|
id: formId,
|
11668
11680
|
autoComplete: formAutoComplete
|
11669
11681
|
},
|
11670
|
-
/* @__PURE__ */
|
11682
|
+
/* @__PURE__ */ React101.createElement(
|
11671
11683
|
"div",
|
11672
11684
|
{
|
11673
11685
|
className: cn(
|
@@ -11678,14 +11690,14 @@ var ContactForm = ({
|
|
11678
11690
|
}
|
11679
11691
|
)
|
11680
11692
|
},
|
11681
|
-
/* @__PURE__ */
|
11693
|
+
/* @__PURE__ */ React101.createElement(
|
11682
11694
|
Controller9,
|
11683
11695
|
{
|
11684
11696
|
control,
|
11685
11697
|
name: "name",
|
11686
11698
|
render: ({ field }) => {
|
11687
11699
|
var _a2;
|
11688
|
-
return /* @__PURE__ */
|
11700
|
+
return /* @__PURE__ */ React101.createElement(
|
11689
11701
|
Input,
|
11690
11702
|
{
|
11691
11703
|
label: (texts == null ? void 0 : texts.name.label) || "Name",
|
@@ -11698,14 +11710,14 @@ var ContactForm = ({
|
|
11698
11710
|
}
|
11699
11711
|
}
|
11700
11712
|
),
|
11701
|
-
/* @__PURE__ */
|
11713
|
+
/* @__PURE__ */ React101.createElement(
|
11702
11714
|
Controller9,
|
11703
11715
|
{
|
11704
11716
|
control,
|
11705
11717
|
name: "email",
|
11706
11718
|
render: ({ field }) => {
|
11707
11719
|
var _a2;
|
11708
|
-
return /* @__PURE__ */
|
11720
|
+
return /* @__PURE__ */ React101.createElement(
|
11709
11721
|
Input,
|
11710
11722
|
{
|
11711
11723
|
label: (texts == null ? void 0 : texts.email.label) || "Email",
|
@@ -11721,7 +11733,7 @@ var ContactForm = ({
|
|
11721
11733
|
),
|
11722
11734
|
customFields && customFields.map((customField) => {
|
11723
11735
|
console.log("custom", customField);
|
11724
|
-
return /* @__PURE__ */
|
11736
|
+
return /* @__PURE__ */ React101.createElement(
|
11725
11737
|
Controller9,
|
11726
11738
|
{
|
11727
11739
|
control,
|
@@ -11731,7 +11743,7 @@ var ContactForm = ({
|
|
11731
11743
|
switch (type) {
|
11732
11744
|
case "text":
|
11733
11745
|
case "number":
|
11734
|
-
return /* @__PURE__ */
|
11746
|
+
return /* @__PURE__ */ React101.createElement(
|
11735
11747
|
Input,
|
11736
11748
|
{
|
11737
11749
|
id: customField.name,
|
@@ -11742,7 +11754,7 @@ var ContactForm = ({
|
|
11742
11754
|
}
|
11743
11755
|
);
|
11744
11756
|
case "select":
|
11745
|
-
return /* @__PURE__ */
|
11757
|
+
return /* @__PURE__ */ React101.createElement(
|
11746
11758
|
Select,
|
11747
11759
|
{
|
11748
11760
|
label,
|
@@ -11752,20 +11764,20 @@ var ContactForm = ({
|
|
11752
11764
|
}
|
11753
11765
|
);
|
11754
11766
|
default:
|
11755
|
-
return /* @__PURE__ */
|
11767
|
+
return /* @__PURE__ */ React101.createElement("div", null, "Unknown type");
|
11756
11768
|
}
|
11757
11769
|
}
|
11758
11770
|
}
|
11759
11771
|
);
|
11760
11772
|
}),
|
11761
|
-
/* @__PURE__ */
|
11773
|
+
/* @__PURE__ */ React101.createElement(
|
11762
11774
|
Controller9,
|
11763
11775
|
{
|
11764
11776
|
control,
|
11765
11777
|
name: "message",
|
11766
11778
|
render: ({ field }) => {
|
11767
11779
|
var _a2;
|
11768
|
-
return /* @__PURE__ */
|
11780
|
+
return /* @__PURE__ */ React101.createElement(
|
11769
11781
|
Textarea,
|
11770
11782
|
{
|
11771
11783
|
label: (texts == null ? void 0 : texts.message.label) || "Message",
|
@@ -11782,19 +11794,19 @@ var ContactForm = ({
|
|
11782
11794
|
}
|
11783
11795
|
}
|
11784
11796
|
),
|
11785
|
-
/* @__PURE__ */
|
11797
|
+
/* @__PURE__ */ React101.createElement(Button, { type: "submit", className: "hawa-w-full" }, (texts == null ? void 0 : texts.submit) || "Submit")
|
11786
11798
|
))
|
11787
11799
|
);
|
11788
11800
|
};
|
11789
11801
|
|
11790
11802
|
// blocks/pricing/PricingPlans.tsx
|
11791
|
-
import
|
11803
|
+
import React107 from "react";
|
11792
11804
|
|
11793
11805
|
// blocks/cards/ActionCard.tsx
|
11794
|
-
import
|
11806
|
+
import React102, { useState as useState45 } from "react";
|
11795
11807
|
var ActionCard = (props) => {
|
11796
11808
|
const [hovered, setHovered] = useState45(false);
|
11797
|
-
return /* @__PURE__ */
|
11809
|
+
return /* @__PURE__ */ React102.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ React102.createElement(
|
11798
11810
|
"div",
|
11799
11811
|
{
|
11800
11812
|
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 +11816,7 @@ var ActionCard = (props) => {
|
|
11804
11816
|
onMouseEnter: () => setHovered(true),
|
11805
11817
|
onMouseLeave: () => setHovered(false)
|
11806
11818
|
},
|
11807
|
-
props.blank ? /* @__PURE__ */
|
11819
|
+
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
11820
|
"svg",
|
11809
11821
|
{
|
11810
11822
|
className: "hawa-h-10 hawa-w-10 hawa-text-foreground",
|
@@ -11816,11 +11828,11 @@ var ActionCard = (props) => {
|
|
11816
11828
|
width: "1em",
|
11817
11829
|
xmlns: "http://www.w3.org/2000/svg"
|
11818
11830
|
},
|
11819
|
-
/* @__PURE__ */
|
11820
|
-
)) : /* @__PURE__ */
|
11821
|
-
/* @__PURE__ */
|
11822
|
-
!props.blank && /* @__PURE__ */
|
11823
|
-
), /* @__PURE__ */
|
11831
|
+
/* @__PURE__ */ React102.createElement("path", { d: "M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z" })
|
11832
|
+
)) : /* @__PURE__ */ React102.createElement("div", { className: "hawa-absolute hawa-inset-0 hawa-rounded hawa-bg-black hawa-opacity-50" }),
|
11833
|
+
/* @__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),
|
11834
|
+
!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))
|
11835
|
+
), /* @__PURE__ */ React102.createElement(
|
11824
11836
|
"div",
|
11825
11837
|
{
|
11826
11838
|
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 +11842,7 @@ var ActionCard = (props) => {
|
|
11830
11842
|
};
|
11831
11843
|
|
11832
11844
|
// blocks/cards/AdCard.tsx
|
11833
|
-
import
|
11845
|
+
import React103, { useState as useState46, useEffect as useEffect32, useRef as useRef22 } from "react";
|
11834
11846
|
var AdCard = ({
|
11835
11847
|
orientation = "vertical",
|
11836
11848
|
...props
|
@@ -11863,21 +11875,21 @@ var AdCard = ({
|
|
11863
11875
|
horizontal: "hawa-w-auto hawa-h-full hawa-bg-blue-500 hawa-rounded-inner",
|
11864
11876
|
vertical: "hawa-bg-blue-500 hawa-rounded-inner hawa-w-auto "
|
11865
11877
|
};
|
11866
|
-
return /* @__PURE__ */
|
11878
|
+
return /* @__PURE__ */ React103.createElement("div", { ref: adRef }, /* @__PURE__ */ React103.createElement(
|
11867
11879
|
"div",
|
11868
11880
|
{
|
11869
11881
|
className: cn(cardStyles[orientation], props.className),
|
11870
11882
|
onClick: props.handleClick
|
11871
11883
|
},
|
11872
|
-
/* @__PURE__ */
|
11884
|
+
/* @__PURE__ */ React103.createElement("div", { className: "hawa-flex hawa-aspect-square hawa-w-full hawa-max-w-fit hawa-items-start " }, /* @__PURE__ */ React103.createElement(
|
11873
11885
|
"img",
|
11874
11886
|
{
|
11875
11887
|
src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
|
11876
11888
|
className: imageStyles[orientation]
|
11877
11889
|
}
|
11878
11890
|
)),
|
11879
|
-
/* @__PURE__ */
|
11880
|
-
props.canHide && /* @__PURE__ */
|
11891
|
+
/* @__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)),
|
11892
|
+
props.canHide && /* @__PURE__ */ React103.createElement(
|
11881
11893
|
"span",
|
11882
11894
|
{
|
11883
11895
|
onClick: (e) => {
|
@@ -11903,7 +11915,7 @@ var AdCard = ({
|
|
11903
11915
|
};
|
11904
11916
|
|
11905
11917
|
// blocks/cards/PricingCard.tsx
|
11906
|
-
import
|
11918
|
+
import React104 from "react";
|
11907
11919
|
var PricingCard = ({
|
11908
11920
|
size = "medium",
|
11909
11921
|
direction = "ltr",
|
@@ -11918,13 +11930,13 @@ var PricingCard = ({
|
|
11918
11930
|
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
11919
11931
|
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
11920
11932
|
};
|
11921
|
-
return /* @__PURE__ */
|
11933
|
+
return /* @__PURE__ */ React104.createElement(React104.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ React104.createElement(
|
11922
11934
|
Skeleton,
|
11923
11935
|
{
|
11924
11936
|
className: cn(cardSizes[size], "hawa-h-[200px]"),
|
11925
11937
|
fade: "bottom"
|
11926
11938
|
}
|
11927
|
-
) : /* @__PURE__ */
|
11939
|
+
) : /* @__PURE__ */ React104.createElement(
|
11928
11940
|
Card,
|
11929
11941
|
{
|
11930
11942
|
dir: direction,
|
@@ -11935,7 +11947,7 @@ var PricingCard = ({
|
|
11935
11947
|
recommended ? "hawa-rounded hawa-rounded-t-none" : "hawa-rounded"
|
11936
11948
|
)
|
11937
11949
|
},
|
11938
|
-
recommended && /* @__PURE__ */
|
11950
|
+
recommended && /* @__PURE__ */ React104.createElement(
|
11939
11951
|
"div",
|
11940
11952
|
{
|
11941
11953
|
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 +11955,7 @@ var PricingCard = ({
|
|
11943
11955
|
},
|
11944
11956
|
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
11945
11957
|
),
|
11946
|
-
/* @__PURE__ */
|
11958
|
+
/* @__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
11959
|
"div",
|
11948
11960
|
{
|
11949
11961
|
className: cn(
|
@@ -11951,9 +11963,9 @@ var PricingCard = ({
|
|
11951
11963
|
endButton ? "hawa-flex-col" : "hawa-flex-col-reverse"
|
11952
11964
|
)
|
11953
11965
|
},
|
11954
|
-
props.features && /* @__PURE__ */
|
11966
|
+
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
11967
|
var _a2;
|
11956
|
-
return /* @__PURE__ */
|
11968
|
+
return /* @__PURE__ */ React104.createElement(
|
11957
11969
|
"li",
|
11958
11970
|
{
|
11959
11971
|
key: o,
|
@@ -11962,7 +11974,7 @@ var PricingCard = ({
|
|
11962
11974
|
!feature.included && "hawa-line-through"
|
11963
11975
|
)
|
11964
11976
|
},
|
11965
|
-
/* @__PURE__ */
|
11977
|
+
/* @__PURE__ */ React104.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center" }, feature.included ? /* @__PURE__ */ React104.createElement(
|
11966
11978
|
"svg",
|
11967
11979
|
{
|
11968
11980
|
"aria-label": "Check Icon",
|
@@ -11971,7 +11983,7 @@ var PricingCard = ({
|
|
11971
11983
|
fill: "currentColor",
|
11972
11984
|
viewBox: "0 0 20 20"
|
11973
11985
|
},
|
11974
|
-
/* @__PURE__ */
|
11986
|
+
/* @__PURE__ */ React104.createElement(
|
11975
11987
|
"path",
|
11976
11988
|
{
|
11977
11989
|
fillRule: "evenodd",
|
@@ -11979,7 +11991,7 @@ var PricingCard = ({
|
|
11979
11991
|
clipRule: "evenodd"
|
11980
11992
|
}
|
11981
11993
|
)
|
11982
|
-
) : /* @__PURE__ */
|
11994
|
+
) : /* @__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
11995
|
Chip,
|
11984
11996
|
{
|
11985
11997
|
label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "",
|
@@ -11987,13 +11999,13 @@ var PricingCard = ({
|
|
11987
11999
|
size: "small"
|
11988
12000
|
}
|
11989
12001
|
))),
|
11990
|
-
feature.hint && /* @__PURE__ */
|
12002
|
+
feature.hint && /* @__PURE__ */ React104.createElement(
|
11991
12003
|
Tooltip,
|
11992
12004
|
{
|
11993
12005
|
content: feature.hint,
|
11994
12006
|
side: feature.hintSide
|
11995
12007
|
},
|
11996
|
-
/* @__PURE__ */
|
12008
|
+
/* @__PURE__ */ React104.createElement(
|
11997
12009
|
"svg",
|
11998
12010
|
{
|
11999
12011
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -12005,14 +12017,14 @@ var PricingCard = ({
|
|
12005
12017
|
strokeLinecap: "round",
|
12006
12018
|
strokeLinejoin: "round"
|
12007
12019
|
},
|
12008
|
-
/* @__PURE__ */
|
12009
|
-
/* @__PURE__ */
|
12010
|
-
/* @__PURE__ */
|
12020
|
+
/* @__PURE__ */ React104.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
12021
|
+
/* @__PURE__ */ React104.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
12022
|
+
/* @__PURE__ */ React104.createElement("path", { d: "M12 17h.01" })
|
12011
12023
|
)
|
12012
12024
|
)
|
12013
12025
|
);
|
12014
12026
|
})),
|
12015
|
-
/* @__PURE__ */
|
12027
|
+
/* @__PURE__ */ React104.createElement(
|
12016
12028
|
Button,
|
12017
12029
|
{
|
12018
12030
|
onClick: props.onPlanClicked,
|
@@ -12026,7 +12038,7 @@ var PricingCard = ({
|
|
12026
12038
|
};
|
12027
12039
|
|
12028
12040
|
// blocks/cards/ItemCard.tsx
|
12029
|
-
import
|
12041
|
+
import React105, { useEffect as useEffect33, useState as useState47 } from "react";
|
12030
12042
|
var ItemCard = ({
|
12031
12043
|
actions,
|
12032
12044
|
counts,
|
@@ -12068,7 +12080,7 @@ var ItemCard = ({
|
|
12068
12080
|
};
|
12069
12081
|
return () => window.onclick = null;
|
12070
12082
|
}, [openActionHeader]);
|
12071
|
-
return /* @__PURE__ */
|
12083
|
+
return /* @__PURE__ */ React105.createElement(
|
12072
12084
|
"div",
|
12073
12085
|
{
|
12074
12086
|
className: cn(
|
@@ -12084,7 +12096,7 @@ var ItemCard = ({
|
|
12084
12096
|
}
|
12085
12097
|
}
|
12086
12098
|
},
|
12087
|
-
cardImage && /* @__PURE__ */
|
12099
|
+
cardImage && /* @__PURE__ */ React105.createElement("div", { className: "hawa-group hawa-relative hawa-overflow-clip" }, /* @__PURE__ */ React105.createElement(
|
12088
12100
|
"img",
|
12089
12101
|
{
|
12090
12102
|
src: cardImage,
|
@@ -12093,7 +12105,7 @@ var ItemCard = ({
|
|
12093
12105
|
clickableImage ? "hawa-overflow-clip hawa-transition-all group-hover:hawa-blur-lg" : ""
|
12094
12106
|
)
|
12095
12107
|
}
|
12096
|
-
), clickableImage && /* @__PURE__ */
|
12108
|
+
), 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
12109
|
Button,
|
12098
12110
|
{
|
12099
12111
|
variant: "secondary",
|
@@ -12103,19 +12115,19 @@ var ItemCard = ({
|
|
12103
12115
|
clickableImageActionIcon,
|
12104
12116
|
clickableImageActionText || "Click"
|
12105
12117
|
)))),
|
12106
|
-
/* @__PURE__ */
|
12118
|
+
/* @__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
12119
|
DropdownMenu,
|
12108
12120
|
{
|
12109
12121
|
items: headerActions,
|
12110
|
-
trigger: /* @__PURE__ */
|
12122
|
+
trigger: /* @__PURE__ */ React105.createElement(
|
12111
12123
|
Button,
|
12112
12124
|
{
|
12113
12125
|
variant: "ghost",
|
12114
12126
|
size: "smallIcon",
|
12115
12127
|
onClick: handleOpenActionHeader
|
12116
12128
|
},
|
12117
|
-
/* @__PURE__ */
|
12118
|
-
/* @__PURE__ */
|
12129
|
+
/* @__PURE__ */ React105.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"),
|
12130
|
+
/* @__PURE__ */ React105.createElement(
|
12119
12131
|
"svg",
|
12120
12132
|
{
|
12121
12133
|
className: "hawa-h-5 hawa-w-5",
|
@@ -12123,11 +12135,11 @@ var ItemCard = ({
|
|
12123
12135
|
fill: "currentColor",
|
12124
12136
|
viewBox: "0 0 20 20"
|
12125
12137
|
},
|
12126
|
-
/* @__PURE__ */
|
12138
|
+
/* @__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
12139
|
)
|
12128
12140
|
)
|
12129
12141
|
}
|
12130
|
-
))), /* @__PURE__ */
|
12142
|
+
))), /* @__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
12143
|
"div",
|
12132
12144
|
{
|
12133
12145
|
className: cn(
|
@@ -12137,15 +12149,15 @@ var ItemCard = ({
|
|
12137
12149
|
)
|
12138
12150
|
},
|
12139
12151
|
counts,
|
12140
|
-
/* @__PURE__ */
|
12152
|
+
/* @__PURE__ */ React105.createElement(StopPropagationWrapper, null, actions)
|
12141
12153
|
) : null)
|
12142
12154
|
);
|
12143
12155
|
};
|
12144
12156
|
|
12145
12157
|
// blocks/cards/LandingCard.tsx
|
12146
|
-
import
|
12158
|
+
import React106 from "react";
|
12147
12159
|
var LandingCard = (props) => {
|
12148
|
-
return /* @__PURE__ */
|
12160
|
+
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
12161
|
};
|
12150
12162
|
|
12151
12163
|
// blocks/pricing/PricingPlans.tsx
|
@@ -12154,7 +12166,7 @@ var PricingPlans = ({
|
|
12154
12166
|
cardsContainerProps,
|
12155
12167
|
...props
|
12156
12168
|
}) => {
|
12157
|
-
return /* @__PURE__ */
|
12169
|
+
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
12170
|
Radio,
|
12159
12171
|
{
|
12160
12172
|
name: "cycle",
|
@@ -12167,7 +12179,7 @@ var PricingPlans = ({
|
|
12167
12179
|
}
|
12168
12180
|
}
|
12169
12181
|
}
|
12170
|
-
), /* @__PURE__ */
|
12182
|
+
), /* @__PURE__ */ React107.createElement(
|
12171
12183
|
Radio,
|
12172
12184
|
{
|
12173
12185
|
name: "currency",
|
@@ -12180,7 +12192,7 @@ var PricingPlans = ({
|
|
12180
12192
|
}
|
12181
12193
|
}
|
12182
12194
|
}
|
12183
|
-
)), /* @__PURE__ */
|
12195
|
+
)), /* @__PURE__ */ React107.createElement(
|
12184
12196
|
"div",
|
12185
12197
|
{
|
12186
12198
|
className: "hawa-inline-grid hawa-w-full hawa-grid-cols-[repeat(auto-fit,_minmax(300px,_1fr))] hawa-gap-4",
|
@@ -12188,7 +12200,7 @@ var PricingPlans = ({
|
|
12188
12200
|
},
|
12189
12201
|
props.plans.map((plan, index) => {
|
12190
12202
|
var _a, _b;
|
12191
|
-
return /* @__PURE__ */
|
12203
|
+
return /* @__PURE__ */ React107.createElement(
|
12192
12204
|
PricingCard,
|
12193
12205
|
{
|
12194
12206
|
key: index,
|
@@ -12219,7 +12231,7 @@ var PricingPlans = ({
|
|
12219
12231
|
};
|
12220
12232
|
|
12221
12233
|
// blocks/pricing/ComparingPlans.tsx
|
12222
|
-
import
|
12234
|
+
import React108 from "react";
|
12223
12235
|
var ComparingPlans = (props) => {
|
12224
12236
|
const uniqueFeatures = Array.from(
|
12225
12237
|
new Set(
|
@@ -12228,7 +12240,7 @@ var ComparingPlans = (props) => {
|
|
12228
12240
|
)
|
12229
12241
|
)
|
12230
12242
|
);
|
12231
|
-
return /* @__PURE__ */
|
12243
|
+
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
12244
|
Radio,
|
12233
12245
|
{
|
12234
12246
|
name: "cycle",
|
@@ -12243,7 +12255,7 @@ var ComparingPlans = (props) => {
|
|
12243
12255
|
}
|
12244
12256
|
}
|
12245
12257
|
}
|
12246
|
-
), /* @__PURE__ */
|
12258
|
+
), /* @__PURE__ */ React108.createElement(
|
12247
12259
|
Radio,
|
12248
12260
|
{
|
12249
12261
|
name: "currency",
|
@@ -12258,7 +12270,7 @@ var ComparingPlans = (props) => {
|
|
12258
12270
|
}
|
12259
12271
|
}
|
12260
12272
|
}
|
12261
|
-
)), /* @__PURE__ */
|
12273
|
+
)), /* @__PURE__ */ React108.createElement(
|
12262
12274
|
"div",
|
12263
12275
|
{
|
12264
12276
|
className: cn(
|
@@ -12269,16 +12281,16 @@ var ComparingPlans = (props) => {
|
|
12269
12281
|
top: props.topPosition || 0
|
12270
12282
|
}
|
12271
12283
|
},
|
12272
|
-
/* @__PURE__ */
|
12273
|
-
props.plans.map((plan, i) => /* @__PURE__ */
|
12284
|
+
/* @__PURE__ */ React108.createElement("div", { className: "hawa-flex hawa-items-center" }),
|
12285
|
+
props.plans.map((plan, i) => /* @__PURE__ */ React108.createElement(
|
12274
12286
|
"div",
|
12275
12287
|
{
|
12276
12288
|
key: i,
|
12277
12289
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2"
|
12278
12290
|
},
|
12279
|
-
/* @__PURE__ */
|
12291
|
+
/* @__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
12292
|
))
|
12281
|
-
), /* @__PURE__ */
|
12293
|
+
), /* @__PURE__ */ React108.createElement(
|
12282
12294
|
ScrollArea,
|
12283
12295
|
{
|
12284
12296
|
className: "hawa-h-fit hawa-rounded hawa-rounded-t-none hawa-border hawa-border-t-0 hawa-bg-background",
|
@@ -12286,7 +12298,7 @@ var ComparingPlans = (props) => {
|
|
12286
12298
|
},
|
12287
12299
|
uniqueFeatures.map((featureText, featureIndex) => {
|
12288
12300
|
var _a, _b, _c, _d;
|
12289
|
-
return /* @__PURE__ */
|
12301
|
+
return /* @__PURE__ */ React108.createElement(
|
12290
12302
|
"div",
|
12291
12303
|
{
|
12292
12304
|
key: featureIndex,
|
@@ -12295,11 +12307,11 @@ var ComparingPlans = (props) => {
|
|
12295
12307
|
featureIndex === 0 ? "" : "hawa-border-t"
|
12296
12308
|
)
|
12297
12309
|
},
|
12298
|
-
/* @__PURE__ */
|
12310
|
+
/* @__PURE__ */ React108.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-foreground" }, featureText, props.plans.some(
|
12299
12311
|
(plan) => plan.features.some(
|
12300
12312
|
(feature) => feature.text === featureText && feature.hint
|
12301
12313
|
)
|
12302
|
-
) && /* @__PURE__ */
|
12314
|
+
) && /* @__PURE__ */ React108.createElement(
|
12303
12315
|
Tooltip,
|
12304
12316
|
{
|
12305
12317
|
side: "right",
|
@@ -12314,7 +12326,7 @@ var ComparingPlans = (props) => {
|
|
12314
12326
|
(feature) => feature.text === featureText
|
12315
12327
|
)) == null ? void 0 : _b.hint
|
12316
12328
|
},
|
12317
|
-
/* @__PURE__ */
|
12329
|
+
/* @__PURE__ */ React108.createElement(
|
12318
12330
|
"svg",
|
12319
12331
|
{
|
12320
12332
|
stroke: "currentColor",
|
@@ -12324,13 +12336,13 @@ var ComparingPlans = (props) => {
|
|
12324
12336
|
height: "1em",
|
12325
12337
|
width: "1em"
|
12326
12338
|
},
|
12327
|
-
/* @__PURE__ */
|
12339
|
+
/* @__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
12340
|
)
|
12329
12341
|
), props.plans.some(
|
12330
12342
|
(plan) => plan.features.some(
|
12331
12343
|
(feature) => feature.text === featureText && feature.soon
|
12332
12344
|
)
|
12333
|
-
) && /* @__PURE__ */
|
12345
|
+
) && /* @__PURE__ */ React108.createElement(
|
12334
12346
|
Chip,
|
12335
12347
|
{
|
12336
12348
|
label: ((_d = (_c = props.plans.find(
|
@@ -12344,26 +12356,26 @@ var ComparingPlans = (props) => {
|
|
12344
12356
|
const feature = plan.features.find(
|
12345
12357
|
(f) => f.text === featureText
|
12346
12358
|
);
|
12347
|
-
return /* @__PURE__ */
|
12359
|
+
return /* @__PURE__ */ React108.createElement(
|
12348
12360
|
"div",
|
12349
12361
|
{
|
12350
12362
|
key: planIndex,
|
12351
12363
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-text-center"
|
12352
12364
|
},
|
12353
|
-
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */
|
12365
|
+
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */ React108.createElement(CheckMark, { className: "hawa-text-foreground" }) : /* @__PURE__ */ React108.createElement(UncheckMark, { className: "hawa-text-foreground" })
|
12354
12366
|
);
|
12355
12367
|
})
|
12356
12368
|
);
|
12357
12369
|
})
|
12358
|
-
), props.showButtons && /* @__PURE__ */
|
12370
|
+
), 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
12371
|
var _a;
|
12360
|
-
return /* @__PURE__ */
|
12372
|
+
return /* @__PURE__ */ React108.createElement(
|
12361
12373
|
"div",
|
12362
12374
|
{
|
12363
12375
|
key: i,
|
12364
12376
|
className: "hawa-flex hawa-items-center hawa-justify-center"
|
12365
12377
|
},
|
12366
|
-
/* @__PURE__ */
|
12378
|
+
/* @__PURE__ */ React108.createElement(
|
12367
12379
|
Button,
|
12368
12380
|
{
|
12369
12381
|
className: "hawa-w-full hawa-max-w-xs",
|
@@ -12387,7 +12399,7 @@ var ComparingPlans = (props) => {
|
|
12387
12399
|
};
|
12388
12400
|
|
12389
12401
|
// blocks/pricing/HorizontalPricing.tsx
|
12390
|
-
import
|
12402
|
+
import React109, { useState as useState48 } from "react";
|
12391
12403
|
var HorizontalPricing = (props) => {
|
12392
12404
|
const [selectedCard, setSelectedCard] = useState48("");
|
12393
12405
|
let data = [
|
@@ -12395,7 +12407,7 @@ var HorizontalPricing = (props) => {
|
|
12395
12407
|
{ title: "business", price: "$99", cycle: "/mo" },
|
12396
12408
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
12397
12409
|
];
|
12398
|
-
return /* @__PURE__ */
|
12410
|
+
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
12411
|
Radio,
|
12400
12412
|
{
|
12401
12413
|
name: "currency",
|
@@ -12403,7 +12415,7 @@ var HorizontalPricing = (props) => {
|
|
12403
12415
|
options: props.currencies,
|
12404
12416
|
defaultValue: props.currentCurrency
|
12405
12417
|
}
|
12406
|
-
), /* @__PURE__ */
|
12418
|
+
), /* @__PURE__ */ React109.createElement(
|
12407
12419
|
Radio,
|
12408
12420
|
{
|
12409
12421
|
name: "cycle",
|
@@ -12411,7 +12423,7 @@ var HorizontalPricing = (props) => {
|
|
12411
12423
|
options: props.billingCycles,
|
12412
12424
|
defaultValue: props.currentCycle
|
12413
12425
|
}
|
12414
|
-
)), data.map((d, i) => /* @__PURE__ */
|
12426
|
+
)), data.map((d, i) => /* @__PURE__ */ React109.createElement(
|
12415
12427
|
"label",
|
12416
12428
|
{
|
12417
12429
|
key: i,
|
@@ -12419,7 +12431,7 @@ var HorizontalPricing = (props) => {
|
|
12419
12431
|
className: "",
|
12420
12432
|
onClick: () => setSelectedCard(d.title)
|
12421
12433
|
},
|
12422
|
-
/* @__PURE__ */
|
12434
|
+
/* @__PURE__ */ React109.createElement(
|
12423
12435
|
"input",
|
12424
12436
|
{
|
12425
12437
|
type: "radio",
|
@@ -12428,7 +12440,7 @@ var HorizontalPricing = (props) => {
|
|
12428
12440
|
className: "hawa-peer hawa-appearance-none"
|
12429
12441
|
}
|
12430
12442
|
),
|
12431
|
-
/* @__PURE__ */
|
12443
|
+
/* @__PURE__ */ React109.createElement(
|
12432
12444
|
"div",
|
12433
12445
|
{
|
12434
12446
|
className: cn(
|
@@ -12436,18 +12448,18 @@ var HorizontalPricing = (props) => {
|
|
12436
12448
|
"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
12449
|
)
|
12438
12450
|
},
|
12439
|
-
/* @__PURE__ */
|
12451
|
+
/* @__PURE__ */ React109.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ React109.createElement(CheckIcons, null), /* @__PURE__ */ React109.createElement(
|
12440
12452
|
CardText,
|
12441
12453
|
{
|
12442
12454
|
title: "Enterprise",
|
12443
12455
|
subtitle: "For startups and new businesses"
|
12444
12456
|
}
|
12445
12457
|
)),
|
12446
|
-
/* @__PURE__ */
|
12458
|
+
/* @__PURE__ */ React109.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
12447
12459
|
)
|
12448
12460
|
))));
|
12449
12461
|
};
|
12450
|
-
var CheckIcons = () => /* @__PURE__ */
|
12462
|
+
var CheckIcons = () => /* @__PURE__ */ React109.createElement(React109.Fragment, null, /* @__PURE__ */ React109.createElement(
|
12451
12463
|
"svg",
|
12452
12464
|
{
|
12453
12465
|
fill: "none",
|
@@ -12456,7 +12468,7 @@ var CheckIcons = () => /* @__PURE__ */ React108.createElement(React108.Fragment,
|
|
12456
12468
|
stroke: "currentColor",
|
12457
12469
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
12458
12470
|
},
|
12459
|
-
/* @__PURE__ */
|
12471
|
+
/* @__PURE__ */ React109.createElement(
|
12460
12472
|
"path",
|
12461
12473
|
{
|
12462
12474
|
strokeLinecap: "round",
|
@@ -12464,14 +12476,14 @@ var CheckIcons = () => /* @__PURE__ */ React108.createElement(React108.Fragment,
|
|
12464
12476
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
12465
12477
|
}
|
12466
12478
|
)
|
12467
|
-
), /* @__PURE__ */
|
12479
|
+
), /* @__PURE__ */ React109.createElement(
|
12468
12480
|
"svg",
|
12469
12481
|
{
|
12470
12482
|
viewBox: "0 0 24 24",
|
12471
12483
|
fill: "currentColor",
|
12472
12484
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
12473
12485
|
},
|
12474
|
-
/* @__PURE__ */
|
12486
|
+
/* @__PURE__ */ React109.createElement(
|
12475
12487
|
"path",
|
12476
12488
|
{
|
12477
12489
|
fillRule: "evenodd",
|
@@ -12480,14 +12492,14 @@ var CheckIcons = () => /* @__PURE__ */ React108.createElement(React108.Fragment,
|
|
12480
12492
|
}
|
12481
12493
|
)
|
12482
12494
|
));
|
12483
|
-
var CardText = (props) => /* @__PURE__ */
|
12484
|
-
var CardPrice = (props) => /* @__PURE__ */
|
12495
|
+
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, " "));
|
12496
|
+
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
12497
|
|
12486
12498
|
// blocks/Usage.tsx
|
12487
|
-
import
|
12499
|
+
import React110 from "react";
|
12488
12500
|
var Usage = (props) => {
|
12489
12501
|
var _a;
|
12490
|
-
return /* @__PURE__ */
|
12502
|
+
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
12503
|
"svg",
|
12492
12504
|
{
|
12493
12505
|
stroke: "currentColor",
|
@@ -12498,8 +12510,8 @@ var Usage = (props) => {
|
|
12498
12510
|
height: "1em",
|
12499
12511
|
width: "1em"
|
12500
12512
|
},
|
12501
|
-
/* @__PURE__ */
|
12502
|
-
))), /* @__PURE__ */
|
12513
|
+
/* @__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" })
|
12514
|
+
))), /* @__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
12515
|
};
|
12504
12516
|
export {
|
12505
12517
|
Accordion,
|