@sikka/hawa 0.30.24-next → 0.30.26-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/blocks/index.js +100 -72
- package/dist/blocks/index.mjs +1 -1
- package/dist/blocks/misc/index.js +88 -60
- package/dist/blocks/misc/index.mjs +105 -75
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/breadcrumb/index.d.mts +7 -5
- package/dist/breadcrumb/index.d.ts +7 -5
- package/dist/breadcrumb/index.js +36 -12
- package/dist/breadcrumb/index.js.map +1 -1
- package/dist/breadcrumb/index.mjs +36 -12
- package/dist/breadcrumb/index.mjs.map +1 -1
- package/dist/{chunk-7LAUVLVZ.mjs → chunk-QDRFTC7W.mjs} +96 -62
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/commonTypes-LrR8QrYP.d.mts +5 -0
- package/dist/commonTypes-LrR8QrYP.d.ts +5 -0
- package/dist/commonTypes-MeUyaBib.d.mts +5 -0
- package/dist/commonTypes-MeUyaBib.d.ts +5 -0
- package/dist/elements/index.d.mts +11 -5
- package/dist/elements/index.d.ts +11 -5
- package/dist/elements/index.js +149 -98
- package/dist/elements/index.mjs +32 -13
- package/dist/floatBox/index.d.mts +12 -0
- package/dist/floatBox/index.d.ts +12 -0
- package/dist/floatBox/index.js +85 -0
- package/dist/floatBox/index.js.map +1 -0
- package/dist/floatBox/index.mjs +49 -0
- package/dist/floatBox/index.mjs.map +1 -0
- package/dist/index.css +101 -56
- package/dist/index.d.mts +11 -5
- package/dist/index.d.ts +11 -5
- package/dist/index.js +189 -138
- package/dist/index.mjs +706 -657
- package/dist/input/index.d.mts +2 -1
- package/dist/input/index.d.ts +2 -1
- package/dist/label/index.d.mts +1 -2
- package/dist/label/index.d.ts +1 -2
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.d.mts +2 -1
- package/dist/phoneInput/index.d.ts +2 -1
- package/dist/popover/index.d.mts +3 -1
- package/dist/popover/index.d.ts +3 -1
- package/dist/popover/index.js +6 -0
- package/dist/popover/index.js.map +1 -1
- package/dist/popover/index.mjs +4 -0
- package/dist/popover/index.mjs.map +1 -1
- package/dist/progress/index.d.mts +8 -1
- package/dist/progress/index.d.ts +8 -1
- package/dist/radio/index.d.mts +9 -1
- package/dist/radio/index.d.ts +9 -1
- package/dist/scrollArea/index.d.mts +1 -1
- package/dist/scrollArea/index.d.ts +1 -1
- package/dist/separator/index.d.mts +1 -1
- package/dist/separator/index.d.ts +1 -1
- package/dist/signature/index.d.mts +1 -2
- package/dist/signature/index.d.ts +1 -2
- package/dist/simpleTable/index.d.mts +1 -1
- package/dist/simpleTable/index.d.ts +1 -1
- package/dist/switch/index.d.mts +2 -1
- package/dist/switch/index.d.ts +2 -1
- package/dist/tabs/index.d.mts +3 -1
- package/dist/tabs/index.d.ts +3 -1
- package/dist/tabs/index.js +60 -32
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +60 -32
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/textarea/index.d.mts +1 -1
- package/dist/textarea/index.d.ts +1 -1
- package/dist/toast/index.d.mts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toaster/index.d.mts +22 -4
- package/dist/toaster/index.d.ts +22 -4
- package/dist/tooltip/index.d.mts +3 -4
- package/dist/tooltip/index.d.ts +3 -4
- package/package.json +8 -8
- package/dist/Label-9FHRF7Ex.d.mts +0 -14
- package/dist/Label-9FHRF7Ex.d.ts +0 -14
- package/dist/commonTypes-3k5cNB1s.d.mts +0 -4
- package/dist/commonTypes-3k5cNB1s.d.ts +0 -4
- package/dist/commonTypes-PBumfOBg.d.mts +0 -3
- package/dist/commonTypes-PBumfOBg.d.ts +0 -3
- /package/dist/{chunk-CVOMHXJK.mjs → chunk-BXGDHNAY.mjs} +0 -0
package/dist/index.mjs
CHANGED
@@ -3461,6 +3461,8 @@ var Popover = ({
|
|
3461
3461
|
));
|
3462
3462
|
};
|
3463
3463
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
3464
|
+
var PopoverPortal = PopoverPrimitive.Portal;
|
3465
|
+
var PopoverRoot = PopoverPrimitive.Root;
|
3464
3466
|
|
3465
3467
|
// elements/combobox/Combobox.tsx
|
3466
3468
|
var Combobox = React27.forwardRef(
|
@@ -3944,9 +3946,46 @@ var SortButton = (props) => {
|
|
3944
3946
|
};
|
3945
3947
|
|
3946
3948
|
// elements/tabs/Tabs.tsx
|
3947
|
-
import * as
|
3949
|
+
import * as React32 from "react";
|
3948
3950
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
3949
3951
|
import { tv } from "tailwind-variants";
|
3952
|
+
|
3953
|
+
// elements/floatBox/FloatBox.tsx
|
3954
|
+
import * as React31 from "react";
|
3955
|
+
var FloatBox = ({
|
3956
|
+
className,
|
3957
|
+
open,
|
3958
|
+
side = "bottom",
|
3959
|
+
sideOffset = 40,
|
3960
|
+
...props
|
3961
|
+
}) => {
|
3962
|
+
let widthStyles = {
|
3963
|
+
trigger: "var(--radix-popover-trigger-width)",
|
3964
|
+
default: "auto"
|
3965
|
+
};
|
3966
|
+
let sideOffsetStyles = {
|
3967
|
+
bottom: { top: sideOffset },
|
3968
|
+
top: { bottom: sideOffset },
|
3969
|
+
right: { left: sideOffset },
|
3970
|
+
left: { right: sideOffset }
|
3971
|
+
};
|
3972
|
+
return /* @__PURE__ */ React31.createElement(
|
3973
|
+
"div",
|
3974
|
+
{
|
3975
|
+
className: cn(
|
3976
|
+
"data-[floatbox-state=closed]:hawa-invisible data-[floatbox-state=open]:hawa-visible hawa-absolute dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[floatbox-state=open]:hawa-animate-in data-[floatbox-state=closed]:hawa-animate-out data-[floatbox-state=closed]:hawa-fade-out-0 data-[floatbox-state=open]:hawa-fade-in-0 data-[floatbox-state=closed]:hawa-zoom-out-95 data-[floatbox-state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
3977
|
+
sideOffsetStyles[side],
|
3978
|
+
className
|
3979
|
+
),
|
3980
|
+
style: { ...sideOffsetStyles[side] },
|
3981
|
+
"data-side": side,
|
3982
|
+
"data-floatbox-state": open ? "open" : "closed"
|
3983
|
+
},
|
3984
|
+
props.children
|
3985
|
+
);
|
3986
|
+
};
|
3987
|
+
|
3988
|
+
// elements/tabs/Tabs.tsx
|
3950
3989
|
var tabsListVariant = tv({
|
3951
3990
|
base: "",
|
3952
3991
|
variants: {
|
@@ -3955,10 +3994,7 @@ var tabsListVariant = tv({
|
|
3955
3994
|
underlined: "hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10",
|
3956
3995
|
underlined_tabs: "hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-text-muted-foreground"
|
3957
3996
|
},
|
3958
|
-
orientation: {
|
3959
|
-
horizontal: "",
|
3960
|
-
vertical: ""
|
3961
|
-
}
|
3997
|
+
orientation: { horizontal: "", vertical: "" }
|
3962
3998
|
},
|
3963
3999
|
compoundVariants: [
|
3964
4000
|
{
|
@@ -3972,10 +4008,7 @@ var tabsListVariant = tv({
|
|
3972
4008
|
class: "hawa-border-b-2 hawa-border-b-primary"
|
3973
4009
|
}
|
3974
4010
|
],
|
3975
|
-
defaultVariants: {
|
3976
|
-
variant: "default",
|
3977
|
-
orientation: "horizontal"
|
3978
|
-
}
|
4011
|
+
defaultVariants: { variant: "default", orientation: "horizontal" }
|
3979
4012
|
});
|
3980
4013
|
var tabsTriggerVariant = tv({
|
3981
4014
|
base: "",
|
@@ -3985,10 +4018,7 @@ var tabsTriggerVariant = tv({
|
|
3985
4018
|
underlined: "hawa-inline-flex hawa-w-full hawa-flex-1 hawa-select-none hawa-items-center hawa-justify-center hawa-gap-2 hawa-whitespace-nowrap hawa-rounded hawa-rounded-none hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-all 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",
|
3986
4019
|
underlined_tabs: "hawa-inline-flex hawa-w-full hawa-flex-1 hawa-select-none hawa-items-center hawa-justify-center hawa-gap-2 hawa-whitespace-nowrap hawa-rounded hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-all 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 hawa-bg-primary/10 data-[state=active]:hawa-bg-primary data-[state=active]:hawa-text-primary-foreground dark:hawa-border-primary/10"
|
3987
4020
|
},
|
3988
|
-
orientation: {
|
3989
|
-
horizontal: "",
|
3990
|
-
vertical: ""
|
3991
|
-
}
|
4021
|
+
orientation: { horizontal: "", vertical: "" }
|
3992
4022
|
},
|
3993
4023
|
compoundVariants: [
|
3994
4024
|
{
|
@@ -4012,13 +4042,10 @@ var tabsTriggerVariant = tv({
|
|
4012
4042
|
class: "hawa-rounded-e-none"
|
4013
4043
|
}
|
4014
4044
|
],
|
4015
|
-
defaultVariants: {
|
4016
|
-
variant: "default",
|
4017
|
-
orientation: "horizontal"
|
4018
|
-
}
|
4045
|
+
defaultVariants: { variant: "default", orientation: "horizontal" }
|
4019
4046
|
});
|
4020
|
-
var TabsContext =
|
4021
|
-
var Tabs =
|
4047
|
+
var TabsContext = React32.createContext({ orientation: "horizontal", variant: "default" });
|
4048
|
+
var Tabs = React32.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React32.createElement(
|
4022
4049
|
TabsPrimitive.Root,
|
4023
4050
|
{
|
4024
4051
|
ref,
|
@@ -4029,12 +4056,11 @@ var Tabs = React31.forwardRef(({ className, orientation, variant = "default", ..
|
|
4029
4056
|
),
|
4030
4057
|
...props
|
4031
4058
|
},
|
4032
|
-
/* @__PURE__ */
|
4059
|
+
/* @__PURE__ */ React32.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
4033
4060
|
));
|
4034
|
-
|
4035
|
-
|
4036
|
-
|
4037
|
-
return /* @__PURE__ */ React31.createElement(
|
4061
|
+
var TabsList = React32.forwardRef(({ className, ...props }, ref) => {
|
4062
|
+
const { orientation, variant } = React32.useContext(TabsContext);
|
4063
|
+
return /* @__PURE__ */ React32.createElement(
|
4038
4064
|
TabsPrimitive.List,
|
4039
4065
|
{
|
4040
4066
|
ref,
|
@@ -4047,22 +4073,25 @@ var TabsList = React31.forwardRef(({ className, ...props }, ref) => {
|
|
4047
4073
|
}
|
4048
4074
|
);
|
4049
4075
|
});
|
4050
|
-
|
4051
|
-
|
4052
|
-
|
4053
|
-
return /* @__PURE__ */ React31.createElement(
|
4076
|
+
var TabsTrigger = React32.forwardRef(({ className, chipProps, ...props }, ref) => {
|
4077
|
+
const { orientation, variant } = React32.useContext(TabsContext);
|
4078
|
+
return /* @__PURE__ */ React32.createElement(
|
4054
4079
|
TabsPrimitive.Trigger,
|
4055
4080
|
{
|
4056
4081
|
ref,
|
4057
|
-
className: cn(
|
4082
|
+
className: cn(
|
4083
|
+
tabsTriggerVariant({ variant, orientation }),
|
4084
|
+
"hawa-relative",
|
4085
|
+
className
|
4086
|
+
),
|
4058
4087
|
...props
|
4059
4088
|
},
|
4060
4089
|
props.children,
|
4061
|
-
chipProps && /* @__PURE__ */
|
4090
|
+
chipProps && /* @__PURE__ */ React32.createElement(Chip, { ...chipProps }),
|
4091
|
+
/* @__PURE__ */ React32.createElement(FloatBox, { open: props.showPopover }, props.popoverContent)
|
4062
4092
|
);
|
4063
4093
|
});
|
4064
|
-
|
4065
|
-
var TabsContent = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React31.createElement(
|
4094
|
+
var TabsContent = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React32.createElement(
|
4066
4095
|
TabsPrimitive.Content,
|
4067
4096
|
{
|
4068
4097
|
ref,
|
@@ -4073,10 +4102,13 @@ var TabsContent = React31.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
4073
4102
|
...props
|
4074
4103
|
}
|
4075
4104
|
));
|
4105
|
+
Tabs.displayName = TabsPrimitive.Root.displayName;
|
4106
|
+
TabsList.displayName = TabsPrimitive.List.displayName;
|
4107
|
+
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
4076
4108
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
4077
4109
|
|
4078
4110
|
// elements/select/Select.tsx
|
4079
|
-
import
|
4111
|
+
import React33 from "react";
|
4080
4112
|
import ReactSelect from "react-select";
|
4081
4113
|
import CreatableSelect from "react-select/creatable";
|
4082
4114
|
import clsx3 from "clsx";
|
@@ -4087,10 +4119,10 @@ var Select = ({
|
|
4087
4119
|
}) => {
|
4088
4120
|
const NoOption = () => {
|
4089
4121
|
var _a, _b;
|
4090
|
-
return /* @__PURE__ */
|
4122
|
+
return /* @__PURE__ */ React33.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
|
4091
4123
|
};
|
4092
4124
|
const Control = ({ children, innerProps, innerRef }) => {
|
4093
|
-
return /* @__PURE__ */
|
4125
|
+
return /* @__PURE__ */ React33.createElement(
|
4094
4126
|
"div",
|
4095
4127
|
{
|
4096
4128
|
ref: innerRef,
|
@@ -4103,7 +4135,7 @@ var Select = ({
|
|
4103
4135
|
);
|
4104
4136
|
};
|
4105
4137
|
const Option = ({ children, innerProps, innerRef }) => {
|
4106
|
-
return /* @__PURE__ */
|
4138
|
+
return /* @__PURE__ */ React33.createElement(
|
4107
4139
|
"div",
|
4108
4140
|
{
|
4109
4141
|
ref: innerRef,
|
@@ -4124,7 +4156,7 @@ var Select = ({
|
|
4124
4156
|
...menuProps
|
4125
4157
|
}) => {
|
4126
4158
|
const menuOpen = menuProps.selectProps.menuIsOpen;
|
4127
|
-
return /* @__PURE__ */
|
4159
|
+
return /* @__PURE__ */ React33.createElement(
|
4128
4160
|
"div",
|
4129
4161
|
{
|
4130
4162
|
className: cn(
|
@@ -4138,7 +4170,7 @@ var Select = ({
|
|
4138
4170
|
children
|
4139
4171
|
);
|
4140
4172
|
};
|
4141
|
-
return /* @__PURE__ */
|
4173
|
+
return /* @__PURE__ */ React33.createElement(
|
4142
4174
|
"div",
|
4143
4175
|
{
|
4144
4176
|
className: cn(
|
@@ -4146,10 +4178,10 @@ var Select = ({
|
|
4146
4178
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
4147
4179
|
)
|
4148
4180
|
},
|
4149
|
-
props.label && /* @__PURE__ */
|
4150
|
-
props.isLoading ? /* @__PURE__ */
|
4181
|
+
props.label && /* @__PURE__ */ React33.createElement(Label2, { ...labelProps }, props.label),
|
4182
|
+
props.isLoading ? /* @__PURE__ */ React33.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
|
4151
4183
|
// TODO: enable keyboard to go to the next item in the list
|
4152
|
-
/* @__PURE__ */
|
4184
|
+
/* @__PURE__ */ React33.createElement(
|
4153
4185
|
ReactSelect,
|
4154
4186
|
{
|
4155
4187
|
noOptionsMessage: NoOption,
|
@@ -4186,7 +4218,7 @@ var Select = ({
|
|
4186
4218
|
isSearchable: props.isSearchable
|
4187
4219
|
}
|
4188
4220
|
)
|
4189
|
-
) : /* @__PURE__ */
|
4221
|
+
) : /* @__PURE__ */ React33.createElement(
|
4190
4222
|
CreatableSelect,
|
4191
4223
|
{
|
4192
4224
|
formatCreateLabel: (inputValue) => {
|
@@ -4216,7 +4248,7 @@ var Select = ({
|
|
4216
4248
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
4217
4249
|
}
|
4218
4250
|
),
|
4219
|
-
!props.hideHelperText && /* @__PURE__ */
|
4251
|
+
!props.hideHelperText && /* @__PURE__ */ React33.createElement(
|
4220
4252
|
"p",
|
4221
4253
|
{
|
4222
4254
|
className: cn(
|
@@ -4230,15 +4262,15 @@ var Select = ({
|
|
4230
4262
|
};
|
4231
4263
|
|
4232
4264
|
// elements/switch/Switch.tsx
|
4233
|
-
import * as
|
4265
|
+
import * as React34 from "react";
|
4234
4266
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
4235
|
-
var Switch =
|
4267
|
+
var Switch = React34.forwardRef(
|
4236
4268
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
4237
|
-
const [parentDirection, setParentDirection] =
|
4269
|
+
const [parentDirection, setParentDirection] = React34.useState(
|
4238
4270
|
null
|
4239
4271
|
);
|
4240
|
-
const parentRef =
|
4241
|
-
|
4272
|
+
const parentRef = React34.useRef(null);
|
4273
|
+
React34.useEffect(() => {
|
4242
4274
|
var _a;
|
4243
4275
|
const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
|
4244
4276
|
if (parentNode) {
|
@@ -4266,13 +4298,13 @@ var Switch = React33.forwardRef(
|
|
4266
4298
|
full: "hawa-rounded-full",
|
4267
4299
|
inherit: "hawa-rounded-inner"
|
4268
4300
|
};
|
4269
|
-
return /* @__PURE__ */
|
4301
|
+
return /* @__PURE__ */ React34.createElement(
|
4270
4302
|
"div",
|
4271
4303
|
{
|
4272
4304
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
4273
4305
|
ref: parentRef
|
4274
4306
|
},
|
4275
|
-
/* @__PURE__ */
|
4307
|
+
/* @__PURE__ */ React34.createElement(
|
4276
4308
|
SwitchPrimitives.Root,
|
4277
4309
|
{
|
4278
4310
|
className: cn(
|
@@ -4286,7 +4318,7 @@ var Switch = React33.forwardRef(
|
|
4286
4318
|
...props,
|
4287
4319
|
ref
|
4288
4320
|
},
|
4289
|
-
/* @__PURE__ */
|
4321
|
+
/* @__PURE__ */ React34.createElement(
|
4290
4322
|
SwitchPrimitives.Thumb,
|
4291
4323
|
{
|
4292
4324
|
className: cn(
|
@@ -4300,14 +4332,14 @@ var Switch = React33.forwardRef(
|
|
4300
4332
|
}
|
4301
4333
|
)
|
4302
4334
|
),
|
4303
|
-
label && /* @__PURE__ */
|
4335
|
+
label && /* @__PURE__ */ React34.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
|
4304
4336
|
);
|
4305
4337
|
}
|
4306
4338
|
);
|
4307
4339
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
4308
4340
|
|
4309
4341
|
// elements/checkbox/Checkbox.tsx
|
4310
|
-
import * as
|
4342
|
+
import * as React35 from "react";
|
4311
4343
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
4312
4344
|
var Checkbox = ({
|
4313
4345
|
id,
|
@@ -4327,7 +4359,7 @@ var Checkbox = ({
|
|
4327
4359
|
lg: 0.9,
|
4328
4360
|
xl: 1
|
4329
4361
|
};
|
4330
|
-
return /* @__PURE__ */
|
4362
|
+
return /* @__PURE__ */ React35.createElement(
|
4331
4363
|
"div",
|
4332
4364
|
{
|
4333
4365
|
className: cn(
|
@@ -4335,7 +4367,7 @@ var Checkbox = ({
|
|
4335
4367
|
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
4336
4368
|
)
|
4337
4369
|
},
|
4338
|
-
/* @__PURE__ */
|
4370
|
+
/* @__PURE__ */ React35.createElement(
|
4339
4371
|
CheckboxElement,
|
4340
4372
|
{
|
4341
4373
|
...props,
|
@@ -4345,7 +4377,7 @@ var Checkbox = ({
|
|
4345
4377
|
id
|
4346
4378
|
}
|
4347
4379
|
),
|
4348
|
-
(label || helperText) && /* @__PURE__ */
|
4380
|
+
(label || helperText) && /* @__PURE__ */ React35.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React35.createElement(
|
4349
4381
|
"label",
|
4350
4382
|
{
|
4351
4383
|
htmlFor: id,
|
@@ -4359,7 +4391,7 @@ var Checkbox = ({
|
|
4359
4391
|
}
|
4360
4392
|
},
|
4361
4393
|
label
|
4362
|
-
), sublabel && /* @__PURE__ */
|
4394
|
+
), sublabel && /* @__PURE__ */ React35.createElement(
|
4363
4395
|
"label",
|
4364
4396
|
{
|
4365
4397
|
htmlFor: id,
|
@@ -4369,7 +4401,7 @@ var Checkbox = ({
|
|
4369
4401
|
)
|
4370
4402
|
},
|
4371
4403
|
sublabel
|
4372
|
-
), helperText && !disabled && /* @__PURE__ */
|
4404
|
+
), helperText && !disabled && /* @__PURE__ */ React35.createElement(
|
4373
4405
|
"label",
|
4374
4406
|
{
|
4375
4407
|
htmlFor: id,
|
@@ -4382,7 +4414,7 @@ var Checkbox = ({
|
|
4382
4414
|
))
|
4383
4415
|
);
|
4384
4416
|
};
|
4385
|
-
var CheckboxElement =
|
4417
|
+
var CheckboxElement = React35.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
4386
4418
|
let checkboxRadius = {
|
4387
4419
|
none: "hawa-rounded-none",
|
4388
4420
|
inherit: "hawa-rounded-sm",
|
@@ -4404,7 +4436,7 @@ var CheckboxElement = React34.forwardRef(({ radius = "inherit", size = "default"
|
|
4404
4436
|
lg: "1em",
|
4405
4437
|
xl: "1.25em"
|
4406
4438
|
};
|
4407
|
-
return /* @__PURE__ */
|
4439
|
+
return /* @__PURE__ */ React35.createElement(
|
4408
4440
|
CheckboxPrimitive.Root,
|
4409
4441
|
{
|
4410
4442
|
ref,
|
@@ -4416,14 +4448,14 @@ var CheckboxElement = React34.forwardRef(({ radius = "inherit", size = "default"
|
|
4416
4448
|
),
|
4417
4449
|
...props
|
4418
4450
|
},
|
4419
|
-
/* @__PURE__ */
|
4451
|
+
/* @__PURE__ */ React35.createElement(
|
4420
4452
|
CheckboxPrimitive.Indicator,
|
4421
4453
|
{
|
4422
4454
|
className: cn(
|
4423
4455
|
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
4424
4456
|
)
|
4425
4457
|
},
|
4426
|
-
/* @__PURE__ */
|
4458
|
+
/* @__PURE__ */ React35.createElement(
|
4427
4459
|
"svg",
|
4428
4460
|
{
|
4429
4461
|
"aria-label": "Check Mark",
|
@@ -4434,7 +4466,7 @@ var CheckboxElement = React34.forwardRef(({ radius = "inherit", size = "default"
|
|
4434
4466
|
height: checkboxIndicatorSizes[size],
|
4435
4467
|
width: checkboxIndicatorSizes[size]
|
4436
4468
|
},
|
4437
|
-
/* @__PURE__ */
|
4469
|
+
/* @__PURE__ */ React35.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" })
|
4438
4470
|
),
|
4439
4471
|
" "
|
4440
4472
|
)
|
@@ -4443,9 +4475,9 @@ var CheckboxElement = React34.forwardRef(({ radius = "inherit", size = "default"
|
|
4443
4475
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
4444
4476
|
|
4445
4477
|
// elements/progress/Progress.tsx
|
4446
|
-
import * as
|
4478
|
+
import * as React36 from "react";
|
4447
4479
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
4448
|
-
var Progress =
|
4480
|
+
var Progress = React36.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React36.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React36.createElement(Label2, { ...props.labelProps }, props.label), /* @__PURE__ */ React36.createElement(
|
4449
4481
|
ProgressPrimitive.Root,
|
4450
4482
|
{
|
4451
4483
|
ref,
|
@@ -4455,7 +4487,7 @@ var Progress = React35.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
4455
4487
|
),
|
4456
4488
|
...props
|
4457
4489
|
},
|
4458
|
-
/* @__PURE__ */
|
4490
|
+
/* @__PURE__ */ React36.createElement(
|
4459
4491
|
ProgressPrimitive.Indicator,
|
4460
4492
|
{
|
4461
4493
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
@@ -4466,67 +4498,82 @@ var Progress = React35.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
4466
4498
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
4467
4499
|
|
4468
4500
|
// elements/breadcrumb/Breadcrumb.tsx
|
4469
|
-
import
|
4501
|
+
import React37 from "react";
|
4470
4502
|
var Breadcrumb = ({
|
4471
4503
|
breadcrumbLinks,
|
4472
|
-
separator = ">"
|
4504
|
+
separator = ">",
|
4505
|
+
size = "normal"
|
4473
4506
|
}) => {
|
4474
|
-
|
4507
|
+
const textStyles = {
|
4508
|
+
normal: "",
|
4509
|
+
small: "hawa-text-sm",
|
4510
|
+
xs: "hawa-text-xs"
|
4511
|
+
};
|
4512
|
+
return /* @__PURE__ */ React37.createElement(
|
4475
4513
|
"div",
|
4476
4514
|
{
|
4477
|
-
|
4478
|
-
|
4515
|
+
className: cn(
|
4516
|
+
"hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm",
|
4517
|
+
textStyles[size]
|
4518
|
+
)
|
4479
4519
|
},
|
4480
|
-
/* @__PURE__ */
|
4481
|
-
"
|
4520
|
+
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ React37.createElement(
|
4521
|
+
"div",
|
4482
4522
|
{
|
4483
|
-
|
4484
|
-
className:
|
4523
|
+
key: index,
|
4524
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
|
4485
4525
|
},
|
4486
|
-
|
4487
|
-
|
4488
|
-
|
4489
|
-
|
4526
|
+
/* @__PURE__ */ React37.createElement(
|
4527
|
+
"a",
|
4528
|
+
{
|
4529
|
+
href: singleBreadcrumbLink.href,
|
4530
|
+
className: index + 1 === breadcrumbLinks.length ? "hawa-pointer-events-none" : "hawa-underline-offset-4 hawa-transition-all hover:hawa-text-primary hover:hawa-underline hover:hawa-decoration-2"
|
4531
|
+
},
|
4532
|
+
singleBreadcrumbLink.label
|
4533
|
+
),
|
4534
|
+
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */ React37.createElement("div", null, separator) : /* @__PURE__ */ React37.createElement("div", null, separator) : null
|
4535
|
+
))
|
4536
|
+
);
|
4490
4537
|
};
|
4491
4538
|
|
4492
4539
|
// elements/appStores/AppStores.tsx
|
4493
|
-
import
|
4540
|
+
import React38 from "react";
|
4494
4541
|
var AppStores = (props) => {
|
4495
|
-
return /* @__PURE__ */
|
4542
|
+
return /* @__PURE__ */ React38.createElement("div", { className: "hawa-flex hawa-justify-center" }, /* @__PURE__ */ React38.createElement("div", null, props.store === "apple" ? /* @__PURE__ */ React38.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__ */ React38.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React38.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ React38.createElement(
|
4496
4543
|
"path",
|
4497
4544
|
{
|
4498
4545
|
fill: "currentColor",
|
4499
4546
|
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"
|
4500
4547
|
}
|
4501
|
-
))), /* @__PURE__ */
|
4548
|
+
))), /* @__PURE__ */ React38.createElement("div", null, /* @__PURE__ */ React38.createElement("div", { className: "hawa-text-xs" }, "Download on the"), /* @__PURE__ */ React38.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-2xl hawa-font-semibold" }, "App Store"))) : /* @__PURE__ */ React38.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__ */ React38.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React38.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ React38.createElement(
|
4502
4549
|
"path",
|
4503
4550
|
{
|
4504
4551
|
fill: "#FFD400",
|
4505
4552
|
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"
|
4506
4553
|
}
|
4507
|
-
), /* @__PURE__ */
|
4554
|
+
), /* @__PURE__ */ React38.createElement(
|
4508
4555
|
"path",
|
4509
4556
|
{
|
4510
4557
|
fill: "#FF3333",
|
4511
4558
|
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"
|
4512
4559
|
}
|
4513
|
-
), /* @__PURE__ */
|
4560
|
+
), /* @__PURE__ */ React38.createElement(
|
4514
4561
|
"path",
|
4515
4562
|
{
|
4516
4563
|
fill: "#48FF48",
|
4517
4564
|
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"
|
4518
4565
|
}
|
4519
|
-
), /* @__PURE__ */
|
4566
|
+
), /* @__PURE__ */ React38.createElement(
|
4520
4567
|
"path",
|
4521
4568
|
{
|
4522
4569
|
fill: "#3BCCFF",
|
4523
4570
|
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"
|
4524
4571
|
}
|
4525
|
-
))), /* @__PURE__ */
|
4572
|
+
))), /* @__PURE__ */ React38.createElement("div", null, /* @__PURE__ */ React38.createElement("div", { className: "hawa-text-xs" }, "GET IT ON"), /* @__PURE__ */ React38.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-xl hawa-font-semibold" }, "Google Play")))));
|
4526
4573
|
};
|
4527
4574
|
|
4528
4575
|
// elements/badge/Badge.tsx
|
4529
|
-
import
|
4576
|
+
import React39, { useEffect as useEffect8, useState as useState10, useRef as useRef7 } from "react";
|
4530
4577
|
var Badge = ({
|
4531
4578
|
anchor,
|
4532
4579
|
position = "right",
|
@@ -4564,7 +4611,7 @@ var Badge = ({
|
|
4564
4611
|
window.removeEventListener("resize", handlePositioning);
|
4565
4612
|
};
|
4566
4613
|
}, [anchor]);
|
4567
|
-
return /* @__PURE__ */
|
4614
|
+
return /* @__PURE__ */ React39.createElement("div", { ref: indicatorRef, className: cn("hawa-relative", className) }, badgePosition && /* @__PURE__ */ React39.createElement(
|
4568
4615
|
"div",
|
4569
4616
|
{
|
4570
4617
|
style: {
|
@@ -4590,7 +4637,7 @@ var BadgedComponent = ({
|
|
4590
4637
|
text
|
4591
4638
|
}) => {
|
4592
4639
|
const ref = useRef7(null);
|
4593
|
-
return /* @__PURE__ */
|
4640
|
+
return /* @__PURE__ */ React39.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ React39.createElement(
|
4594
4641
|
Badge,
|
4595
4642
|
{
|
4596
4643
|
size,
|
@@ -4603,7 +4650,7 @@ var BadgedComponent = ({
|
|
4603
4650
|
};
|
4604
4651
|
|
4605
4652
|
// elements/phoneInput/PhoneInput.tsx
|
4606
|
-
import
|
4653
|
+
import React40, { useState as useState11, useRef as useRef8, useEffect as useEffect9 } from "react";
|
4607
4654
|
|
4608
4655
|
// countries.ts
|
4609
4656
|
var countries = [
|
@@ -6321,7 +6368,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
6321
6368
|
console.log("handleChange prop was not provided in <PhoneInput/>");
|
6322
6369
|
}
|
6323
6370
|
};
|
6324
|
-
return /* @__PURE__ */
|
6371
|
+
return /* @__PURE__ */ React40.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React40.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React40.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ React40.createElement(
|
6325
6372
|
Select,
|
6326
6373
|
{
|
6327
6374
|
width: "fit",
|
@@ -6337,7 +6384,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
6337
6384
|
value: countryCode == null ? void 0 : countryCode.label,
|
6338
6385
|
onChange: setCountryCode
|
6339
6386
|
}
|
6340
|
-
), /* @__PURE__ */
|
6387
|
+
), /* @__PURE__ */ React40.createElement("div", { className: "hawa-relative hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ React40.createElement(
|
6341
6388
|
"input",
|
6342
6389
|
{
|
6343
6390
|
ref: inputRef,
|
@@ -6350,7 +6397,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
6350
6397
|
type: "tel",
|
6351
6398
|
placeholder: props.placeholder
|
6352
6399
|
}
|
6353
|
-
))), /* @__PURE__ */
|
6400
|
+
))), /* @__PURE__ */ React40.createElement(
|
6354
6401
|
"p",
|
6355
6402
|
{
|
6356
6403
|
className: cn(
|
@@ -6363,7 +6410,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
6363
6410
|
};
|
6364
6411
|
|
6365
6412
|
// elements/pinInput/PinInput.tsx
|
6366
|
-
import
|
6413
|
+
import React41, { useEffect as useEffect10, useState as useState12 } from "react";
|
6367
6414
|
var PinInput = ({
|
6368
6415
|
label,
|
6369
6416
|
icon,
|
@@ -6407,13 +6454,13 @@ var PinInput = ({
|
|
6407
6454
|
}
|
6408
6455
|
}
|
6409
6456
|
};
|
6410
|
-
return /* @__PURE__ */
|
6457
|
+
return /* @__PURE__ */ React41.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React41.createElement(
|
6411
6458
|
"div",
|
6412
6459
|
{
|
6413
6460
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
6414
6461
|
dir: "ltr"
|
6415
6462
|
},
|
6416
|
-
pin.map((value, index) => /* @__PURE__ */
|
6463
|
+
pin.map((value, index) => /* @__PURE__ */ React41.createElement(
|
6417
6464
|
"input",
|
6418
6465
|
{
|
6419
6466
|
key: index,
|
@@ -6433,7 +6480,7 @@ var PinInput = ({
|
|
6433
6480
|
...inputProps
|
6434
6481
|
}
|
6435
6482
|
))
|
6436
|
-
), /* @__PURE__ */
|
6483
|
+
), /* @__PURE__ */ React41.createElement(
|
6437
6484
|
"p",
|
6438
6485
|
{
|
6439
6486
|
className: cn(
|
@@ -6446,30 +6493,30 @@ var PinInput = ({
|
|
6446
6493
|
};
|
6447
6494
|
|
6448
6495
|
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
6449
|
-
import
|
6496
|
+
import React42 from "react";
|
6450
6497
|
var StopPropagationWrapper = (props) => {
|
6451
6498
|
const handleClick = (e) => {
|
6452
6499
|
e.stopPropagation();
|
6453
6500
|
};
|
6454
|
-
return /* @__PURE__ */
|
6501
|
+
return /* @__PURE__ */ React42.createElement("div", { onClick: handleClick }, props.children);
|
6455
6502
|
};
|
6456
6503
|
|
6457
6504
|
// elements/scrollArea/ScrollArea.tsx
|
6458
|
-
import * as
|
6505
|
+
import * as React43 from "react";
|
6459
6506
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
6460
|
-
var ScrollArea =
|
6507
|
+
var ScrollArea = React43.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React43.createElement(
|
6461
6508
|
ScrollAreaPrimitive.Root,
|
6462
6509
|
{
|
6463
6510
|
ref,
|
6464
6511
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
6465
6512
|
...props
|
6466
6513
|
},
|
6467
|
-
/* @__PURE__ */
|
6468
|
-
/* @__PURE__ */
|
6469
|
-
/* @__PURE__ */
|
6514
|
+
/* @__PURE__ */ React43.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
6515
|
+
/* @__PURE__ */ React43.createElement(ScrollBar, { orientation }),
|
6516
|
+
/* @__PURE__ */ React43.createElement(ScrollAreaPrimitive.Corner, null)
|
6470
6517
|
));
|
6471
6518
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
6472
|
-
var ScrollBar =
|
6519
|
+
var ScrollBar = React43.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React43.createElement(
|
6473
6520
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
6474
6521
|
{
|
6475
6522
|
ref,
|
@@ -6482,7 +6529,7 @@ var ScrollBar = React42.forwardRef(({ className, orientation = "vertical", ...pr
|
|
6482
6529
|
),
|
6483
6530
|
...props
|
6484
6531
|
},
|
6485
|
-
/* @__PURE__ */
|
6532
|
+
/* @__PURE__ */ React43.createElement(
|
6486
6533
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
6487
6534
|
{
|
6488
6535
|
className: cn(
|
@@ -6495,7 +6542,7 @@ var ScrollBar = React42.forwardRef(({ className, orientation = "vertical", ...pr
|
|
6495
6542
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
6496
6543
|
|
6497
6544
|
// elements/colorPicker/ColorPicker.tsx
|
6498
|
-
import
|
6545
|
+
import React44, {
|
6499
6546
|
useState as useState13,
|
6500
6547
|
useEffect as useEffect11
|
6501
6548
|
} from "react";
|
@@ -6527,13 +6574,13 @@ var ColorPicker = ({
|
|
6527
6574
|
props.handleChange(e);
|
6528
6575
|
}
|
6529
6576
|
};
|
6530
|
-
return /* @__PURE__ */
|
6577
|
+
return /* @__PURE__ */ React44.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React44.createElement(Label2, { ...labelProps }, props.label), isLoading ? /* @__PURE__ */ React44.createElement(Skeleton, { style: { height: 40, width: 148 } }) : /* @__PURE__ */ React44.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ React44.createElement(
|
6531
6578
|
"div",
|
6532
6579
|
{
|
6533
6580
|
style: { height: 40, backgroundColor: selectedColor },
|
6534
6581
|
className: "hawa-rounded-bl-lg hawa-rounded-tl-lg hawa-border"
|
6535
6582
|
},
|
6536
|
-
/* @__PURE__ */
|
6583
|
+
/* @__PURE__ */ React44.createElement(
|
6537
6584
|
"input",
|
6538
6585
|
{
|
6539
6586
|
disabled: preview,
|
@@ -6552,7 +6599,7 @@ var ColorPicker = ({
|
|
6552
6599
|
...colorPickerProps
|
6553
6600
|
}
|
6554
6601
|
)
|
6555
|
-
), /* @__PURE__ */
|
6602
|
+
), /* @__PURE__ */ React44.createElement("div", { className: "hawa-relative hawa-flex hawa-max-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ React44.createElement(
|
6556
6603
|
"input",
|
6557
6604
|
{
|
6558
6605
|
disabled: preview,
|
@@ -6571,7 +6618,7 @@ var ColorPicker = ({
|
|
6571
6618
|
},
|
6572
6619
|
...textInputProps
|
6573
6620
|
}
|
6574
|
-
))), !forceHideHelperText && /* @__PURE__ */
|
6621
|
+
))), !forceHideHelperText && /* @__PURE__ */ React44.createElement(
|
6575
6622
|
"p",
|
6576
6623
|
{
|
6577
6624
|
className: cn(
|
@@ -6584,7 +6631,7 @@ var ColorPicker = ({
|
|
6584
6631
|
};
|
6585
6632
|
|
6586
6633
|
// elements/progressCircle/ProgressCircle.tsx
|
6587
|
-
import
|
6634
|
+
import React45 from "react";
|
6588
6635
|
var size2config = {
|
6589
6636
|
xs: { radius: 15, strokeWidth: 3 },
|
6590
6637
|
sm: { radius: 19, strokeWidth: 4 },
|
@@ -6601,7 +6648,7 @@ function getLimitedValue(input) {
|
|
6601
6648
|
return input;
|
6602
6649
|
}
|
6603
6650
|
}
|
6604
|
-
var ProgressCircle =
|
6651
|
+
var ProgressCircle = React45.forwardRef((props, ref) => {
|
6605
6652
|
const {
|
6606
6653
|
value: inputValue,
|
6607
6654
|
size = "md",
|
@@ -6621,7 +6668,7 @@ var ProgressCircle = React44.forwardRef((props, ref) => {
|
|
6621
6668
|
const circumference = normalizedRadius * 2 * Math.PI;
|
6622
6669
|
const strokeDashoffset = value / 100 * circumference;
|
6623
6670
|
const offset = circumference - strokeDashoffset;
|
6624
|
-
return /* @__PURE__ */
|
6671
|
+
return /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(
|
6625
6672
|
"div",
|
6626
6673
|
{
|
6627
6674
|
ref,
|
@@ -6630,7 +6677,7 @@ var ProgressCircle = React44.forwardRef((props, ref) => {
|
|
6630
6677
|
className
|
6631
6678
|
)
|
6632
6679
|
},
|
6633
|
-
/* @__PURE__ */
|
6680
|
+
/* @__PURE__ */ React45.createElement(
|
6634
6681
|
"svg",
|
6635
6682
|
{
|
6636
6683
|
width: radius * 2,
|
@@ -6638,7 +6685,7 @@ var ProgressCircle = React44.forwardRef((props, ref) => {
|
|
6638
6685
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
6639
6686
|
className: "hawa-rotate-180 hawa-transform"
|
6640
6687
|
},
|
6641
|
-
/* @__PURE__ */
|
6688
|
+
/* @__PURE__ */ React45.createElement(
|
6642
6689
|
"circle",
|
6643
6690
|
{
|
6644
6691
|
r: normalizedRadius,
|
@@ -6654,7 +6701,7 @@ var ProgressCircle = React44.forwardRef((props, ref) => {
|
|
6654
6701
|
)
|
6655
6702
|
}
|
6656
6703
|
),
|
6657
|
-
value > 0 ? /* @__PURE__ */
|
6704
|
+
value > 0 ? /* @__PURE__ */ React45.createElement(
|
6658
6705
|
"circle",
|
6659
6706
|
{
|
6660
6707
|
r: normalizedRadius,
|
@@ -6674,24 +6721,24 @@ var ProgressCircle = React44.forwardRef((props, ref) => {
|
|
6674
6721
|
}
|
6675
6722
|
) : null
|
6676
6723
|
),
|
6677
|
-
/* @__PURE__ */
|
6724
|
+
/* @__PURE__ */ React45.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
6678
6725
|
));
|
6679
6726
|
});
|
6680
6727
|
ProgressCircle.displayName = "ProgressCircle";
|
6681
6728
|
|
6682
6729
|
// elements/pagination/Pagination.tsx
|
6683
|
-
import
|
6730
|
+
import React46 from "react";
|
6684
6731
|
import { Pagination as PaginationPrimitive } from "react-headless-pagination";
|
6685
6732
|
var Pagination = ({
|
6686
6733
|
direction,
|
6687
6734
|
totalPages,
|
6688
6735
|
currentPage
|
6689
6736
|
}) => {
|
6690
|
-
const [page, setPage] =
|
6737
|
+
const [page, setPage] = React46.useState(currentPage || 0);
|
6691
6738
|
const handlePageChange = (page2) => {
|
6692
6739
|
setPage(page2);
|
6693
6740
|
};
|
6694
|
-
return /* @__PURE__ */
|
6741
|
+
return /* @__PURE__ */ React46.createElement(
|
6695
6742
|
PaginationPrimitive,
|
6696
6743
|
{
|
6697
6744
|
totalPages,
|
@@ -6703,10 +6750,10 @@ var Pagination = ({
|
|
6703
6750
|
truncableText: "...",
|
6704
6751
|
truncableClassName: "hawa-w-10 hawa-px-0.5 hawa-text-center"
|
6705
6752
|
},
|
6706
|
-
/* @__PURE__ */
|
6753
|
+
/* @__PURE__ */ React46.createElement(
|
6707
6754
|
PaginationPrimitive.PrevButton,
|
6708
6755
|
{
|
6709
|
-
as: /* @__PURE__ */
|
6756
|
+
as: /* @__PURE__ */ React46.createElement(
|
6710
6757
|
"button",
|
6711
6758
|
{
|
6712
6759
|
"aria-label": "Previous Table Page",
|
@@ -6716,7 +6763,7 @@ var Pagination = ({
|
|
6716
6763
|
),
|
6717
6764
|
style: { minWidth: 36 }
|
6718
6765
|
},
|
6719
|
-
/* @__PURE__ */
|
6766
|
+
/* @__PURE__ */ React46.createElement(
|
6720
6767
|
"svg",
|
6721
6768
|
{
|
6722
6769
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6729,7 +6776,7 @@ var Pagination = ({
|
|
6729
6776
|
strokeLinecap: "round",
|
6730
6777
|
strokeLinejoin: "round"
|
6731
6778
|
},
|
6732
|
-
/* @__PURE__ */
|
6779
|
+
/* @__PURE__ */ React46.createElement("path", { d: "m15 18-6-6 6-6" })
|
6733
6780
|
)
|
6734
6781
|
),
|
6735
6782
|
className: cn(
|
@@ -6742,17 +6789,17 @@ var Pagination = ({
|
|
6742
6789
|
},
|
6743
6790
|
"Previous"
|
6744
6791
|
),
|
6745
|
-
/* @__PURE__ */
|
6792
|
+
/* @__PURE__ */ React46.createElement("nav", { className: "hawa-flex hawa-flex-grow hawa-justify-center" }, /* @__PURE__ */ React46.createElement("ul", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React46.createElement(
|
6746
6793
|
PaginationPrimitive.PageButton,
|
6747
6794
|
{
|
6748
6795
|
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",
|
6749
6796
|
activeClassName: "hawa-bg-primary hawa-text-primary-foreground hawa-transition-all"
|
6750
6797
|
}
|
6751
6798
|
))),
|
6752
|
-
/* @__PURE__ */
|
6799
|
+
/* @__PURE__ */ React46.createElement(
|
6753
6800
|
PaginationPrimitive.NextButton,
|
6754
6801
|
{
|
6755
|
-
as: /* @__PURE__ */
|
6802
|
+
as: /* @__PURE__ */ React46.createElement(
|
6756
6803
|
"button",
|
6757
6804
|
{
|
6758
6805
|
"aria-label": "Previous Table Page",
|
@@ -6762,7 +6809,7 @@ var Pagination = ({
|
|
6762
6809
|
),
|
6763
6810
|
style: { minWidth: 36 }
|
6764
6811
|
},
|
6765
|
-
/* @__PURE__ */
|
6812
|
+
/* @__PURE__ */ React46.createElement(
|
6766
6813
|
"svg",
|
6767
6814
|
{
|
6768
6815
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6775,7 +6822,7 @@ var Pagination = ({
|
|
6775
6822
|
strokeLinecap: "round",
|
6776
6823
|
strokeLinejoin: "round"
|
6777
6824
|
},
|
6778
|
-
/* @__PURE__ */
|
6825
|
+
/* @__PURE__ */ React46.createElement("path", { d: "m15 18-6-6 6-6" })
|
6779
6826
|
)
|
6780
6827
|
),
|
6781
6828
|
className: cn(
|
@@ -6792,11 +6839,11 @@ var Pagination = ({
|
|
6792
6839
|
};
|
6793
6840
|
|
6794
6841
|
// elements/passwordInput/PasswordInput.tsx
|
6795
|
-
import
|
6842
|
+
import React50, { useEffect as useEffect12, useState as useState14 } from "react";
|
6796
6843
|
|
6797
6844
|
// icons/Emojis.tsx
|
6798
|
-
import
|
6799
|
-
var VeryGoodEmoji = () => /* @__PURE__ */
|
6845
|
+
import React47 from "react";
|
6846
|
+
var VeryGoodEmoji = () => /* @__PURE__ */ React47.createElement(
|
6800
6847
|
"svg",
|
6801
6848
|
{
|
6802
6849
|
fill: "none",
|
@@ -6805,7 +6852,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ React46.createElement(
|
|
6805
6852
|
width: "16",
|
6806
6853
|
xmlns: "http://www.w3.org/2000/svg"
|
6807
6854
|
},
|
6808
|
-
/* @__PURE__ */
|
6855
|
+
/* @__PURE__ */ React47.createElement("g", { clipPath: "url(#clip0_53_166)" }, /* @__PURE__ */ React47.createElement(
|
6809
6856
|
"path",
|
6810
6857
|
{
|
6811
6858
|
clipRule: "evenodd",
|
@@ -6813,7 +6860,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ React46.createElement(
|
|
6813
6860
|
fill: "currentColor",
|
6814
6861
|
fillRule: "evenodd"
|
6815
6862
|
}
|
6816
|
-
), /* @__PURE__ */
|
6863
|
+
), /* @__PURE__ */ React47.createElement(
|
6817
6864
|
"path",
|
6818
6865
|
{
|
6819
6866
|
clipRule: "evenodd",
|
@@ -6823,7 +6870,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ React46.createElement(
|
|
6823
6870
|
}
|
6824
6871
|
))
|
6825
6872
|
);
|
6826
|
-
var GoodEmoji = () => /* @__PURE__ */
|
6873
|
+
var GoodEmoji = () => /* @__PURE__ */ React47.createElement(
|
6827
6874
|
"svg",
|
6828
6875
|
{
|
6829
6876
|
fill: "none",
|
@@ -6832,7 +6879,7 @@ var GoodEmoji = () => /* @__PURE__ */ React46.createElement(
|
|
6832
6879
|
width: "16",
|
6833
6880
|
xmlns: "http://www.w3.org/2000/svg"
|
6834
6881
|
},
|
6835
|
-
/* @__PURE__ */
|
6882
|
+
/* @__PURE__ */ React47.createElement("g", { clipPath: "url(#clip0_53_167)" }, /* @__PURE__ */ React47.createElement(
|
6836
6883
|
"path",
|
6837
6884
|
{
|
6838
6885
|
clipRule: "evenodd",
|
@@ -6842,7 +6889,7 @@ var GoodEmoji = () => /* @__PURE__ */ React46.createElement(
|
|
6842
6889
|
}
|
6843
6890
|
))
|
6844
6891
|
);
|
6845
|
-
var BadEmoji = () => /* @__PURE__ */
|
6892
|
+
var BadEmoji = () => /* @__PURE__ */ React47.createElement(
|
6846
6893
|
"svg",
|
6847
6894
|
{
|
6848
6895
|
fill: "none",
|
@@ -6851,7 +6898,7 @@ var BadEmoji = () => /* @__PURE__ */ React46.createElement(
|
|
6851
6898
|
width: "16",
|
6852
6899
|
xmlns: "http://www.w3.org/2000/svg"
|
6853
6900
|
},
|
6854
|
-
/* @__PURE__ */
|
6901
|
+
/* @__PURE__ */ React47.createElement("g", { clipPath: "url(#clip0_53_152)" }, /* @__PURE__ */ React47.createElement(
|
6855
6902
|
"path",
|
6856
6903
|
{
|
6857
6904
|
clipRule: "evenodd",
|
@@ -6861,7 +6908,7 @@ var BadEmoji = () => /* @__PURE__ */ React46.createElement(
|
|
6861
6908
|
}
|
6862
6909
|
))
|
6863
6910
|
);
|
6864
|
-
var VeryBadEmoji = () => /* @__PURE__ */
|
6911
|
+
var VeryBadEmoji = () => /* @__PURE__ */ React47.createElement(
|
6865
6912
|
"svg",
|
6866
6913
|
{
|
6867
6914
|
fill: "none",
|
@@ -6870,13 +6917,13 @@ var VeryBadEmoji = () => /* @__PURE__ */ React46.createElement(
|
|
6870
6917
|
width: "16",
|
6871
6918
|
xmlns: "http://www.w3.org/2000/svg"
|
6872
6919
|
},
|
6873
|
-
/* @__PURE__ */
|
6920
|
+
/* @__PURE__ */ React47.createElement("g", { clipPath: "url(#clip0_53_151)" }, /* @__PURE__ */ React47.createElement(
|
6874
6921
|
"path",
|
6875
6922
|
{
|
6876
6923
|
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",
|
6877
6924
|
fill: "#0070F3"
|
6878
6925
|
}
|
6879
|
-
), /* @__PURE__ */
|
6926
|
+
), /* @__PURE__ */ React47.createElement(
|
6880
6927
|
"path",
|
6881
6928
|
{
|
6882
6929
|
clipRule: "evenodd",
|
@@ -6888,8 +6935,8 @@ var VeryBadEmoji = () => /* @__PURE__ */ React46.createElement(
|
|
6888
6935
|
);
|
6889
6936
|
|
6890
6937
|
// icons/InputIcons.tsx
|
6891
|
-
import
|
6892
|
-
var EyeIcon = (props) => /* @__PURE__ */
|
6938
|
+
import React48 from "react";
|
6939
|
+
var EyeIcon = (props) => /* @__PURE__ */ React48.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ React48.createElement(
|
6893
6940
|
"svg",
|
6894
6941
|
{
|
6895
6942
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6900,10 +6947,10 @@ var EyeIcon = (props) => /* @__PURE__ */ React47.createElement("div", { classNam
|
|
6900
6947
|
strokeLinecap: "round",
|
6901
6948
|
strokeLinejoin: "round"
|
6902
6949
|
},
|
6903
|
-
/* @__PURE__ */
|
6904
|
-
/* @__PURE__ */
|
6950
|
+
/* @__PURE__ */ React48.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
6951
|
+
/* @__PURE__ */ React48.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
6905
6952
|
));
|
6906
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */
|
6953
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ React48.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ React48.createElement(
|
6907
6954
|
"svg",
|
6908
6955
|
{
|
6909
6956
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6914,20 +6961,20 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ React47.createElement("div", { cl
|
|
6914
6961
|
strokeLinecap: "round",
|
6915
6962
|
strokeLinejoin: "round"
|
6916
6963
|
},
|
6917
|
-
/* @__PURE__ */
|
6918
|
-
/* @__PURE__ */
|
6919
|
-
/* @__PURE__ */
|
6920
|
-
/* @__PURE__ */
|
6964
|
+
/* @__PURE__ */ React48.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
6965
|
+
/* @__PURE__ */ React48.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" }),
|
6966
|
+
/* @__PURE__ */ React48.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" }),
|
6967
|
+
/* @__PURE__ */ React48.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
6921
6968
|
));
|
6922
6969
|
|
6923
6970
|
// icons/CommonIcons.tsx
|
6924
|
-
import
|
6971
|
+
import React49 from "react";
|
6925
6972
|
var CheckMark = ({ size = "default", className }) => {
|
6926
6973
|
let sizeStyles2 = {
|
6927
6974
|
default: "hawa-h-5 hawa-w-5",
|
6928
6975
|
sm: "hawa-h-3 hawa-w-3"
|
6929
6976
|
};
|
6930
|
-
return /* @__PURE__ */
|
6977
|
+
return /* @__PURE__ */ React49.createElement(
|
6931
6978
|
"svg",
|
6932
6979
|
{
|
6933
6980
|
className: cn(sizeStyles2[size], className),
|
@@ -6935,7 +6982,7 @@ var CheckMark = ({ size = "default", className }) => {
|
|
6935
6982
|
fill: "currentColor",
|
6936
6983
|
viewBox: "0 0 20 20"
|
6937
6984
|
},
|
6938
|
-
/* @__PURE__ */
|
6985
|
+
/* @__PURE__ */ React49.createElement(
|
6939
6986
|
"path",
|
6940
6987
|
{
|
6941
6988
|
fillRule: "evenodd",
|
@@ -6950,7 +6997,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
6950
6997
|
default: "hawa-h-5 hawa-w-5",
|
6951
6998
|
sm: "hawa-h-3 hawa-w-3"
|
6952
6999
|
};
|
6953
|
-
return /* @__PURE__ */
|
7000
|
+
return /* @__PURE__ */ React49.createElement(
|
6954
7001
|
"svg",
|
6955
7002
|
{
|
6956
7003
|
className: cn(sizeStyles2[size], className),
|
@@ -6958,7 +7005,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
6958
7005
|
fill: "currentColor",
|
6959
7006
|
viewBox: "0 0 20 20"
|
6960
7007
|
},
|
6961
|
-
/* @__PURE__ */
|
7008
|
+
/* @__PURE__ */ React49.createElement(
|
6962
7009
|
"path",
|
6963
7010
|
{
|
6964
7011
|
fillRule: "evenodd",
|
@@ -6996,7 +7043,7 @@ var PasswordStrengthIndicator = ({ strength }) => {
|
|
6996
7043
|
strong: "80%",
|
6997
7044
|
"very-strong": "100%"
|
6998
7045
|
}[currentStrengthLevel];
|
6999
|
-
return /* @__PURE__ */
|
7046
|
+
return /* @__PURE__ */ React50.createElement("div", { className: "hawa-mt-0.5 hawa-h-2 hawa-w-full hawa-rounded hawa-bg-gray-200" }, /* @__PURE__ */ React50.createElement(
|
7000
7047
|
"div",
|
7001
7048
|
{
|
7002
7049
|
className: `${strengthColors[currentStrengthLevel]} hawa-h-full hawa-rounded hawa-transition-all hawa-duration-300`,
|
@@ -7056,7 +7103,7 @@ var PasswordInput = ({
|
|
7056
7103
|
setIsInputFocused(false);
|
7057
7104
|
};
|
7058
7105
|
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";
|
7059
|
-
return /* @__PURE__ */
|
7106
|
+
return /* @__PURE__ */ React50.createElement("div", null, /* @__PURE__ */ React50.createElement(
|
7060
7107
|
Popover,
|
7061
7108
|
{
|
7062
7109
|
width: "trigger",
|
@@ -7065,7 +7112,7 @@ var PasswordInput = ({
|
|
7065
7112
|
onOpenChange: setIsInputFocused,
|
7066
7113
|
triggerProps: { asChild: true },
|
7067
7114
|
contentProps: { onOpenAutoFocus: (e) => e.preventDefault() },
|
7068
|
-
trigger: /* @__PURE__ */
|
7115
|
+
trigger: /* @__PURE__ */ React50.createElement(
|
7069
7116
|
"div",
|
7070
7117
|
{
|
7071
7118
|
onClick: (e) => {
|
@@ -7075,7 +7122,7 @@ var PasswordInput = ({
|
|
7075
7122
|
}
|
7076
7123
|
}
|
7077
7124
|
},
|
7078
|
-
/* @__PURE__ */
|
7125
|
+
/* @__PURE__ */ React50.createElement(
|
7079
7126
|
Input,
|
7080
7127
|
{
|
7081
7128
|
width: "full",
|
@@ -7085,27 +7132,27 @@ var PasswordInput = ({
|
|
7085
7132
|
onFocus: handleInputFocus,
|
7086
7133
|
onBlur: handleInputBlur,
|
7087
7134
|
type: passwordVisible ? "text" : "password",
|
7088
|
-
endIcon: /* @__PURE__ */
|
7135
|
+
endIcon: /* @__PURE__ */ React50.createElement(
|
7089
7136
|
"div",
|
7090
7137
|
{
|
7091
7138
|
className: "hawa-cursor-pointer",
|
7092
7139
|
onClick: () => setPasswordVisible(!passwordVisible)
|
7093
7140
|
},
|
7094
|
-
passwordVisible ? /* @__PURE__ */
|
7141
|
+
passwordVisible ? /* @__PURE__ */ React50.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React50.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
7095
7142
|
" "
|
7096
7143
|
)
|
7097
7144
|
}
|
7098
7145
|
)
|
7099
7146
|
)
|
7100
7147
|
},
|
7101
|
-
/* @__PURE__ */
|
7102
|
-
), /* @__PURE__ */
|
7148
|
+
/* @__PURE__ */ React50.createElement("div", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ React50.createElement("ul", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ React50.createElement("li", { className: getCriteriaClass(lengthCriteriaMet) }, lengthCriteriaMet ? /* @__PURE__ */ React50.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ React50.createElement(UncheckMark, { size: "sm" }), "At least 8 characters long"), /* @__PURE__ */ React50.createElement("li", { className: getCriteriaClass(numberCriteriaMet) }, numberCriteriaMet ? /* @__PURE__ */ React50.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ React50.createElement(UncheckMark, { size: "sm" }), "At least 1 number"), /* @__PURE__ */ React50.createElement("li", { className: getCriteriaClass(specialCharCriteriaMet) }, specialCharCriteriaMet ? /* @__PURE__ */ React50.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ React50.createElement(UncheckMark, { size: "sm" }), "At least 1 special character"), /* @__PURE__ */ React50.createElement("li", { className: getCriteriaClass(lowercaseCriteriaMet) }, lowercaseCriteriaMet ? /* @__PURE__ */ React50.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ React50.createElement(UncheckMark, { size: "sm" }), "At least 1 lowercase letter"), /* @__PURE__ */ React50.createElement("li", { className: getCriteriaClass(uppercaseCriteriaMet) }, uppercaseCriteriaMet ? /* @__PURE__ */ React50.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ React50.createElement(UncheckMark, { size: "sm" }), "At least 1 uppercase letter")))
|
7149
|
+
), /* @__PURE__ */ React50.createElement(PasswordStrengthIndicator, { strength: currentStr }));
|
7103
7150
|
};
|
7104
7151
|
|
7105
7152
|
// elements/slider/Slider.tsx
|
7106
|
-
import * as
|
7153
|
+
import * as React51 from "react";
|
7107
7154
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
7108
|
-
var Slider =
|
7155
|
+
var Slider = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
7109
7156
|
SliderPrimitive.Root,
|
7110
7157
|
{
|
7111
7158
|
ref,
|
@@ -7115,13 +7162,13 @@ var Slider = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
7115
7162
|
),
|
7116
7163
|
...props
|
7117
7164
|
},
|
7118
|
-
/* @__PURE__ */
|
7119
|
-
/* @__PURE__ */
|
7165
|
+
/* @__PURE__ */ React51.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__ */ React51.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
|
7166
|
+
/* @__PURE__ */ React51.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" })
|
7120
7167
|
));
|
7121
7168
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
7122
7169
|
|
7123
7170
|
// elements/simpleTable/SimpleTable.tsx
|
7124
|
-
import * as
|
7171
|
+
import * as React52 from "react";
|
7125
7172
|
import {
|
7126
7173
|
flexRender as flexRender2,
|
7127
7174
|
getCoreRowModel as getCoreRowModel2,
|
@@ -7140,7 +7187,7 @@ var SimpleTable = ({
|
|
7140
7187
|
columns,
|
7141
7188
|
getCoreRowModel: getCoreRowModel2()
|
7142
7189
|
});
|
7143
|
-
return /* @__PURE__ */
|
7190
|
+
return /* @__PURE__ */ React52.createElement(
|
7144
7191
|
"div",
|
7145
7192
|
{
|
7146
7193
|
className: cn(
|
@@ -7148,8 +7195,8 @@ var SimpleTable = ({
|
|
7148
7195
|
classNames
|
7149
7196
|
)
|
7150
7197
|
},
|
7151
|
-
props.isLoading ? /* @__PURE__ */
|
7152
|
-
return /* @__PURE__ */
|
7198
|
+
props.isLoading ? /* @__PURE__ */ React52.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React52.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React52.createElement(Table, null, !headerless && table.getAllColumns().length > 0 && /* @__PURE__ */ React52.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React52.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
7199
|
+
return /* @__PURE__ */ React52.createElement(
|
7153
7200
|
TableHead,
|
7154
7201
|
{
|
7155
7202
|
condensed: props.condensed,
|
@@ -7164,7 +7211,7 @@ var SimpleTable = ({
|
|
7164
7211
|
header.getContext()
|
7165
7212
|
)
|
7166
7213
|
);
|
7167
|
-
})))), /* @__PURE__ */
|
7214
|
+
})))), /* @__PURE__ */ React52.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React52.createElement(
|
7168
7215
|
TableRow,
|
7169
7216
|
{
|
7170
7217
|
key: row.id,
|
@@ -7172,7 +7219,7 @@ var SimpleTable = ({
|
|
7172
7219
|
},
|
7173
7220
|
row.getVisibleCells().map((cell) => {
|
7174
7221
|
var _a2;
|
7175
|
-
return /* @__PURE__ */
|
7222
|
+
return /* @__PURE__ */ React52.createElement(
|
7176
7223
|
TableCell,
|
7177
7224
|
{
|
7178
7225
|
dir: props.direction,
|
@@ -7188,7 +7235,7 @@ var SimpleTable = ({
|
|
7188
7235
|
)
|
7189
7236
|
);
|
7190
7237
|
})
|
7191
|
-
)) : /* @__PURE__ */
|
7238
|
+
)) : /* @__PURE__ */ React52.createElement(TableRow, null, /* @__PURE__ */ React52.createElement(
|
7192
7239
|
TableCell,
|
7193
7240
|
{
|
7194
7241
|
colSpan: columns.length,
|
@@ -7200,12 +7247,12 @@ var SimpleTable = ({
|
|
7200
7247
|
};
|
7201
7248
|
|
7202
7249
|
// elements/separator/Separator.tsx
|
7203
|
-
import * as
|
7250
|
+
import * as React53 from "react";
|
7204
7251
|
var Separator2 = ({
|
7205
7252
|
className,
|
7206
7253
|
orientation = "horizontal",
|
7207
7254
|
...props
|
7208
|
-
}) => /* @__PURE__ */
|
7255
|
+
}) => /* @__PURE__ */ React53.createElement(
|
7209
7256
|
"div",
|
7210
7257
|
{
|
7211
7258
|
className: cn(
|
@@ -7218,7 +7265,7 @@ var Separator2 = ({
|
|
7218
7265
|
);
|
7219
7266
|
|
7220
7267
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
7221
|
-
import
|
7268
|
+
import React54, { useState as useState15, useEffect as useEffect13 } from "react";
|
7222
7269
|
var ScrollIndicator = ({
|
7223
7270
|
anchor,
|
7224
7271
|
inContainer = false
|
@@ -7243,7 +7290,7 @@ var ScrollIndicator = ({
|
|
7243
7290
|
(_a = anchor.current) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
|
7244
7291
|
};
|
7245
7292
|
}, [anchor]);
|
7246
|
-
return /* @__PURE__ */
|
7293
|
+
return /* @__PURE__ */ React54.createElement(
|
7247
7294
|
"div",
|
7248
7295
|
{
|
7249
7296
|
style: {
|
@@ -7259,7 +7306,7 @@ var ScrollIndicator = ({
|
|
7259
7306
|
};
|
7260
7307
|
|
7261
7308
|
// elements/codeBlock/CodeBlock.tsx
|
7262
|
-
import
|
7309
|
+
import React55, { useState as useState17 } from "react";
|
7263
7310
|
import { Highlight, themes, Prism } from "prism-react-renderer";
|
7264
7311
|
|
7265
7312
|
// hooks/useClipboard.ts
|
@@ -7291,7 +7338,7 @@ function useClipboard({ timeout = 2e3 } = {}) {
|
|
7291
7338
|
// elements/codeBlock/CodeBlock.tsx
|
7292
7339
|
(typeof global !== "undefined" ? global : window).Prism = Prism;
|
7293
7340
|
__require("prismjs/components/prism-bash");
|
7294
|
-
var CopyIcon = () => /* @__PURE__ */
|
7341
|
+
var CopyIcon = () => /* @__PURE__ */ React55.createElement(
|
7295
7342
|
"svg",
|
7296
7343
|
{
|
7297
7344
|
"aria-label": "Copy",
|
@@ -7304,8 +7351,8 @@ var CopyIcon = () => /* @__PURE__ */ React54.createElement(
|
|
7304
7351
|
height: "1em",
|
7305
7352
|
width: "1em"
|
7306
7353
|
},
|
7307
|
-
/* @__PURE__ */
|
7308
|
-
/* @__PURE__ */
|
7354
|
+
/* @__PURE__ */ React55.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
7355
|
+
/* @__PURE__ */ React55.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
7309
7356
|
);
|
7310
7357
|
var CodeBlock = ({
|
7311
7358
|
tabs,
|
@@ -7327,7 +7374,7 @@ var CodeBlock = ({
|
|
7327
7374
|
sm: "hawa-w-full hawa-max-w-sm",
|
7328
7375
|
xs: "hawa-w-full hawa-max-w-xs"
|
7329
7376
|
};
|
7330
|
-
return /* @__PURE__ */
|
7377
|
+
return /* @__PURE__ */ React55.createElement(
|
7331
7378
|
"div",
|
7332
7379
|
{
|
7333
7380
|
className: cn(
|
@@ -7336,7 +7383,7 @@ var CodeBlock = ({
|
|
7336
7383
|
classNames == null ? void 0 : classNames.root
|
7337
7384
|
)
|
7338
7385
|
},
|
7339
|
-
fileName && /* @__PURE__ */
|
7386
|
+
fileName && /* @__PURE__ */ React55.createElement(
|
7340
7387
|
"div",
|
7341
7388
|
{
|
7342
7389
|
className: cn(
|
@@ -7345,7 +7392,7 @@ var CodeBlock = ({
|
|
7345
7392
|
classNames == null ? void 0 : classNames.fileName
|
7346
7393
|
)
|
7347
7394
|
},
|
7348
|
-
/* @__PURE__ */
|
7395
|
+
/* @__PURE__ */ React55.createElement(
|
7349
7396
|
"div",
|
7350
7397
|
{
|
7351
7398
|
className: cn(
|
@@ -7355,7 +7402,7 @@ var CodeBlock = ({
|
|
7355
7402
|
fileName
|
7356
7403
|
)
|
7357
7404
|
),
|
7358
|
-
tabs && /* @__PURE__ */
|
7405
|
+
tabs && /* @__PURE__ */ React55.createElement(
|
7359
7406
|
"div",
|
7360
7407
|
{
|
7361
7408
|
className: cn(
|
@@ -7364,7 +7411,7 @@ var CodeBlock = ({
|
|
7364
7411
|
classNames == null ? void 0 : classNames.tabs
|
7365
7412
|
)
|
7366
7413
|
},
|
7367
|
-
tabs.map((tab, i) => /* @__PURE__ */
|
7414
|
+
tabs.map((tab, i) => /* @__PURE__ */ React55.createElement(
|
7368
7415
|
"div",
|
7369
7416
|
{
|
7370
7417
|
key: i,
|
@@ -7373,7 +7420,7 @@ var CodeBlock = ({
|
|
7373
7420
|
classNames == null ? void 0 : classNames.tab
|
7374
7421
|
)
|
7375
7422
|
},
|
7376
|
-
/* @__PURE__ */
|
7423
|
+
/* @__PURE__ */ React55.createElement(
|
7377
7424
|
"div",
|
7378
7425
|
{
|
7379
7426
|
onClick: () => setSelectedTab(i),
|
@@ -7385,7 +7432,7 @@ var CodeBlock = ({
|
|
7385
7432
|
)
|
7386
7433
|
))
|
7387
7434
|
),
|
7388
|
-
/* @__PURE__ */
|
7435
|
+
/* @__PURE__ */ React55.createElement(
|
7389
7436
|
"div",
|
7390
7437
|
{
|
7391
7438
|
className: cn(
|
@@ -7395,22 +7442,22 @@ var CodeBlock = ({
|
|
7395
7442
|
"hawa-overflow-y-auto"
|
7396
7443
|
)
|
7397
7444
|
},
|
7398
|
-
/* @__PURE__ */
|
7445
|
+
/* @__PURE__ */ React55.createElement(
|
7399
7446
|
"div",
|
7400
7447
|
{
|
7401
7448
|
className: cn(
|
7402
7449
|
"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"
|
7403
7450
|
)
|
7404
7451
|
},
|
7405
|
-
/* @__PURE__ */
|
7452
|
+
/* @__PURE__ */ React55.createElement(
|
7406
7453
|
Tooltip,
|
7407
7454
|
{
|
7408
7455
|
open: clipboard.copied,
|
7409
7456
|
side: "left",
|
7410
|
-
content: /* @__PURE__ */
|
7457
|
+
content: /* @__PURE__ */ React55.createElement("div", null, "Copied!"),
|
7411
7458
|
triggerProps: { asChild: true }
|
7412
7459
|
},
|
7413
|
-
/* @__PURE__ */
|
7460
|
+
/* @__PURE__ */ React55.createElement(
|
7414
7461
|
Button,
|
7415
7462
|
{
|
7416
7463
|
size: "smallIcon",
|
@@ -7418,18 +7465,18 @@ var CodeBlock = ({
|
|
7418
7465
|
variant: "outline",
|
7419
7466
|
className: "hawa-text-gray-200 hawa-opacity-50 dark:hawa-border-gray-200 dark:hover:hawa-border-gray-400"
|
7420
7467
|
},
|
7421
|
-
/* @__PURE__ */
|
7468
|
+
/* @__PURE__ */ React55.createElement(CopyIcon, null)
|
7422
7469
|
)
|
7423
7470
|
)
|
7424
7471
|
),
|
7425
|
-
/* @__PURE__ */
|
7472
|
+
/* @__PURE__ */ React55.createElement(
|
7426
7473
|
Highlight,
|
7427
7474
|
{
|
7428
7475
|
theme,
|
7429
7476
|
code: tabs ? tabs[selectedTab].code : code || "",
|
7430
7477
|
language
|
7431
7478
|
},
|
7432
|
-
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */
|
7479
|
+
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ React55.createElement(
|
7433
7480
|
"pre",
|
7434
7481
|
{
|
7435
7482
|
className: cn(
|
@@ -7439,7 +7486,7 @@ var CodeBlock = ({
|
|
7439
7486
|
wrapText && "hawa-text-wrap"
|
7440
7487
|
)
|
7441
7488
|
},
|
7442
|
-
tokens.map((line, i) => /* @__PURE__ */
|
7489
|
+
tokens.map((line, i) => /* @__PURE__ */ React55.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ React55.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ React55.createElement("span", { key, ...getTokenProps({ token }) }))))
|
7443
7490
|
)
|
7444
7491
|
)
|
7445
7492
|
)
|
@@ -7447,7 +7494,7 @@ var CodeBlock = ({
|
|
7447
7494
|
};
|
7448
7495
|
|
7449
7496
|
// elements/carousel/Carousel.tsx
|
7450
|
-
import
|
7497
|
+
import React56, { useEffect as useEffect14, useState as useState18 } from "react";
|
7451
7498
|
import useEmblaCarousel from "embla-carousel-react";
|
7452
7499
|
var Carousel = ({
|
7453
7500
|
items,
|
@@ -7486,17 +7533,17 @@ var Carousel = ({
|
|
7486
7533
|
clearInterval(autoplayTimer);
|
7487
7534
|
};
|
7488
7535
|
}, [emblaApi, autoplay, autoplayInterval]);
|
7489
|
-
const length =
|
7536
|
+
const length = React56.Children.count(items);
|
7490
7537
|
const canScrollNext = !!(emblaApi == null ? void 0 : emblaApi.canScrollNext());
|
7491
7538
|
const canScrollPrev = !!(emblaApi == null ? void 0 : emblaApi.canScrollPrev());
|
7492
|
-
return /* @__PURE__ */
|
7539
|
+
return /* @__PURE__ */ React56.createElement("div", { className: " hawa-relative hawa-h-full" }, /* @__PURE__ */ React56.createElement("div", { className: "hawa-h-full hawa-overflow-hidden" }, /* @__PURE__ */ React56.createElement("div", { className: "hawa-h-full", ref: emblaRef }, /* @__PURE__ */ React56.createElement("div", { className: "hawa-flex hawa-h-full" }, items == null ? void 0 : items.map((item, i) => /* @__PURE__ */ React56.createElement(
|
7493
7540
|
"div",
|
7494
7541
|
{
|
7495
7542
|
key: i,
|
7496
7543
|
className: "hawa-flex hawa-h-full hawa-min-w-0 hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
7497
7544
|
},
|
7498
7545
|
item
|
7499
|
-
))))), /* @__PURE__ */
|
7546
|
+
))))), /* @__PURE__ */ React56.createElement(
|
7500
7547
|
Dots,
|
7501
7548
|
{
|
7502
7549
|
direction,
|
@@ -7504,7 +7551,7 @@ var Carousel = ({
|
|
7504
7551
|
selectedIndex,
|
7505
7552
|
onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
|
7506
7553
|
}
|
7507
|
-
), showArrows && /* @__PURE__ */
|
7554
|
+
), showArrows && /* @__PURE__ */ React56.createElement(
|
7508
7555
|
CarouselControls,
|
7509
7556
|
{
|
7510
7557
|
canScrollNext,
|
@@ -7521,7 +7568,7 @@ var Dots = ({
|
|
7521
7568
|
direction
|
7522
7569
|
}) => {
|
7523
7570
|
const arr = new Array(itemsLength).fill(0);
|
7524
|
-
return /* @__PURE__ */
|
7571
|
+
return /* @__PURE__ */ React56.createElement(
|
7525
7572
|
"div",
|
7526
7573
|
{
|
7527
7574
|
dir: direction,
|
@@ -7529,7 +7576,7 @@ var Dots = ({
|
|
7529
7576
|
},
|
7530
7577
|
arr.map((_, index) => {
|
7531
7578
|
const selected = index === selectedIndex;
|
7532
|
-
return /* @__PURE__ */
|
7579
|
+
return /* @__PURE__ */ React56.createElement(
|
7533
7580
|
"div",
|
7534
7581
|
{
|
7535
7582
|
key: index,
|
@@ -7544,7 +7591,7 @@ var Dots = ({
|
|
7544
7591
|
);
|
7545
7592
|
};
|
7546
7593
|
var CarouselControls = (props) => {
|
7547
|
-
return /* @__PURE__ */
|
7594
|
+
return /* @__PURE__ */ React56.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ React56.createElement(
|
7548
7595
|
"button",
|
7549
7596
|
{
|
7550
7597
|
onClick: () => props.canScrollPrev && props.onPrev(),
|
@@ -7555,7 +7602,7 @@ var CarouselControls = (props) => {
|
|
7555
7602
|
props.canScrollPrev && "hawa-bg-primary"
|
7556
7603
|
)
|
7557
7604
|
},
|
7558
|
-
/* @__PURE__ */
|
7605
|
+
/* @__PURE__ */ React56.createElement(
|
7559
7606
|
"svg",
|
7560
7607
|
{
|
7561
7608
|
"aria-label": "Chevron Right Icon",
|
@@ -7564,9 +7611,9 @@ var CarouselControls = (props) => {
|
|
7564
7611
|
viewBox: "0 0 16 16",
|
7565
7612
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-rotate-180 hawa-transition-transform hawa-duration-200 "
|
7566
7613
|
},
|
7567
|
-
/* @__PURE__ */
|
7614
|
+
/* @__PURE__ */ React56.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" })
|
7568
7615
|
)
|
7569
|
-
), /* @__PURE__ */
|
7616
|
+
), /* @__PURE__ */ React56.createElement(
|
7570
7617
|
"button",
|
7571
7618
|
{
|
7572
7619
|
onClick: () => props.canScrollNext && props.onNext(),
|
@@ -7577,7 +7624,7 @@ var CarouselControls = (props) => {
|
|
7577
7624
|
props.canScrollNext && "hawa-bg-primary"
|
7578
7625
|
)
|
7579
7626
|
},
|
7580
|
-
/* @__PURE__ */
|
7627
|
+
/* @__PURE__ */ React56.createElement(
|
7581
7628
|
"svg",
|
7582
7629
|
{
|
7583
7630
|
"aria-label": "Chevron Right Icon",
|
@@ -7586,19 +7633,19 @@ var CarouselControls = (props) => {
|
|
7586
7633
|
viewBox: "0 0 16 16",
|
7587
7634
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-transition-transform hawa-duration-200 "
|
7588
7635
|
},
|
7589
|
-
/* @__PURE__ */
|
7636
|
+
/* @__PURE__ */ React56.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" })
|
7590
7637
|
)
|
7591
7638
|
));
|
7592
7639
|
};
|
7593
7640
|
|
7594
7641
|
// elements/count/Count.tsx
|
7595
|
-
import
|
7642
|
+
import React57 from "react";
|
7596
7643
|
var Count = (props) => {
|
7597
|
-
return /* @__PURE__ */
|
7644
|
+
return /* @__PURE__ */ React57.createElement("div", { className: "hawa-flex hawa-h-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-px-2" }, /* @__PURE__ */ React57.createElement("div", null, props.icon), /* @__PURE__ */ React57.createElement("div", { className: "hawa-text-sm" }, props.count));
|
7598
7645
|
};
|
7599
7646
|
|
7600
7647
|
// elements/toast/Toast.tsx
|
7601
|
-
import * as
|
7648
|
+
import * as React58 from "react";
|
7602
7649
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
7603
7650
|
import { cva as cva4 } from "class-variance-authority";
|
7604
7651
|
var toastVariants = cva4(
|
@@ -7626,7 +7673,7 @@ var sizeStyles = {
|
|
7626
7673
|
sm: "hawa-text-xs"
|
7627
7674
|
};
|
7628
7675
|
var ToastProvider = ToastPrimitives.Provider;
|
7629
|
-
var ToastViewport =
|
7676
|
+
var ToastViewport = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
7630
7677
|
ToastPrimitives.Viewport,
|
7631
7678
|
{
|
7632
7679
|
ref,
|
@@ -7638,8 +7685,8 @@ var ToastViewport = React57.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
7638
7685
|
}
|
7639
7686
|
));
|
7640
7687
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
7641
|
-
var Toast =
|
7642
|
-
return /* @__PURE__ */
|
7688
|
+
var Toast = React58.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
7689
|
+
return /* @__PURE__ */ React58.createElement(
|
7643
7690
|
ToastPrimitives.Root,
|
7644
7691
|
{
|
7645
7692
|
ref,
|
@@ -7654,8 +7701,8 @@ var Toast = React57.forwardRef(({ className, variant, severity = "none", directi
|
|
7654
7701
|
);
|
7655
7702
|
});
|
7656
7703
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
7657
|
-
var ToastAction =
|
7658
|
-
return /* @__PURE__ */
|
7704
|
+
var ToastAction = React58.forwardRef(({ className, ...props }, ref) => {
|
7705
|
+
return /* @__PURE__ */ React58.createElement(
|
7659
7706
|
ToastPrimitives.Action,
|
7660
7707
|
{
|
7661
7708
|
ref,
|
@@ -7673,7 +7720,7 @@ var ToastAction = React57.forwardRef(({ className, ...props }, ref) => {
|
|
7673
7720
|
);
|
7674
7721
|
});
|
7675
7722
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
7676
|
-
var ToastClose =
|
7723
|
+
var ToastClose = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
7677
7724
|
ToastPrimitives.Close,
|
7678
7725
|
{
|
7679
7726
|
ref,
|
@@ -7687,7 +7734,7 @@ var ToastClose = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7687
7734
|
"toast-close": "",
|
7688
7735
|
...props
|
7689
7736
|
},
|
7690
|
-
/* @__PURE__ */
|
7737
|
+
/* @__PURE__ */ React58.createElement(
|
7691
7738
|
"svg",
|
7692
7739
|
{
|
7693
7740
|
"aria-label": "Close Icon",
|
@@ -7696,7 +7743,7 @@ var ToastClose = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7696
7743
|
fill: "currentColor",
|
7697
7744
|
viewBox: "0 0 20 20"
|
7698
7745
|
},
|
7699
|
-
/* @__PURE__ */
|
7746
|
+
/* @__PURE__ */ React58.createElement(
|
7700
7747
|
"path",
|
7701
7748
|
{
|
7702
7749
|
fillRule: "evenodd",
|
@@ -7707,7 +7754,7 @@ var ToastClose = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
7707
7754
|
)
|
7708
7755
|
));
|
7709
7756
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
7710
|
-
var ToastTitle =
|
7757
|
+
var ToastTitle = React58.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
7711
7758
|
ToastPrimitives.Title,
|
7712
7759
|
{
|
7713
7760
|
ref,
|
@@ -7720,7 +7767,7 @@ var ToastTitle = React57.forwardRef(({ className, size = "default", ...props },
|
|
7720
7767
|
}
|
7721
7768
|
));
|
7722
7769
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
7723
|
-
var ToastDescription =
|
7770
|
+
var ToastDescription = React58.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
7724
7771
|
ToastPrimitives.Description,
|
7725
7772
|
{
|
7726
7773
|
ref,
|
@@ -7735,11 +7782,11 @@ var ToastDescription = React57.forwardRef(({ className, size = "default", ...pro
|
|
7735
7782
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
7736
7783
|
|
7737
7784
|
// elements/toaster/Toaster.tsx
|
7738
|
-
import
|
7785
|
+
import React59 from "react";
|
7739
7786
|
function Toaster(props) {
|
7740
7787
|
var _a;
|
7741
7788
|
let isRTL = props.direction === "rtl";
|
7742
|
-
return /* @__PURE__ */
|
7789
|
+
return /* @__PURE__ */ React59.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, (_a = props.toasts) == null ? void 0 : _a.map(function({
|
7743
7790
|
id,
|
7744
7791
|
title,
|
7745
7792
|
description,
|
@@ -7747,7 +7794,7 @@ function Toaster(props) {
|
|
7747
7794
|
action,
|
7748
7795
|
...toastProps
|
7749
7796
|
}) {
|
7750
|
-
return /* @__PURE__ */
|
7797
|
+
return /* @__PURE__ */ React59.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ React59.createElement(
|
7751
7798
|
"div",
|
7752
7799
|
{
|
7753
7800
|
className: cn(
|
@@ -7755,9 +7802,9 @@ function Toaster(props) {
|
|
7755
7802
|
action && "hawa-justify-between"
|
7756
7803
|
)
|
7757
7804
|
},
|
7758
|
-
/* @__PURE__ */
|
7759
|
-
/* @__PURE__ */
|
7760
|
-
/* @__PURE__ */
|
7805
|
+
/* @__PURE__ */ React59.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-p-2 hawa-pe-0" }, /* @__PURE__ */ React59.createElement(ToastClose, null)),
|
7806
|
+
/* @__PURE__ */ React59.createElement("div", { className: "hawa-mx-0 hawa-h-auto hawa-max-h-full hawa-w-px hawa-bg-primary-foreground/10" }),
|
7807
|
+
/* @__PURE__ */ React59.createElement(
|
7761
7808
|
"div",
|
7762
7809
|
{
|
7763
7810
|
className: cn(
|
@@ -7765,11 +7812,11 @@ function Toaster(props) {
|
|
7765
7812
|
{ "hawa-p-4": size === "default", "hawa-p-2": size === "sm" }
|
7766
7813
|
)
|
7767
7814
|
},
|
7768
|
-
/* @__PURE__ */
|
7769
|
-
action && /* @__PURE__ */
|
7815
|
+
/* @__PURE__ */ React59.createElement("div", { className: "hawa-grid hawa-gap-1 hawa-text-start" }, title && /* @__PURE__ */ React59.createElement(ToastTitle, { size }, title), description && /* @__PURE__ */ React59.createElement(ToastDescription, { size }, description)),
|
7816
|
+
action && /* @__PURE__ */ React59.createElement("div", { className: "hawa-flex hawa-flex-col hawa-justify-center" }, action)
|
7770
7817
|
)
|
7771
7818
|
));
|
7772
|
-
}), /* @__PURE__ */
|
7819
|
+
}), /* @__PURE__ */ React59.createElement(
|
7773
7820
|
ToastViewport,
|
7774
7821
|
{
|
7775
7822
|
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
@@ -7778,7 +7825,7 @@ function Toaster(props) {
|
|
7778
7825
|
}
|
7779
7826
|
|
7780
7827
|
// elements/destroyableCard/DestroyableCard.tsx
|
7781
|
-
import
|
7828
|
+
import React60, { useRef as useRef9, useState as useState19 } from "react";
|
7782
7829
|
var DestroyableCard = ({
|
7783
7830
|
position = "bottom-right",
|
7784
7831
|
fixed,
|
@@ -7791,7 +7838,7 @@ var DestroyableCard = ({
|
|
7791
7838
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
7792
7839
|
"bottom-left": "hawa-left-4 hawa-bottom-4"
|
7793
7840
|
};
|
7794
|
-
return /* @__PURE__ */
|
7841
|
+
return /* @__PURE__ */ React60.createElement(
|
7795
7842
|
"div",
|
7796
7843
|
{
|
7797
7844
|
className: cn(
|
@@ -7800,7 +7847,7 @@ var DestroyableCard = ({
|
|
7800
7847
|
),
|
7801
7848
|
ref: popUpRef
|
7802
7849
|
},
|
7803
|
-
/* @__PURE__ */
|
7850
|
+
/* @__PURE__ */ React60.createElement(
|
7804
7851
|
Card,
|
7805
7852
|
{
|
7806
7853
|
className: cn(
|
@@ -7809,7 +7856,7 @@ var DestroyableCard = ({
|
|
7809
7856
|
),
|
7810
7857
|
dir: direction
|
7811
7858
|
},
|
7812
|
-
/* @__PURE__ */
|
7859
|
+
/* @__PURE__ */ React60.createElement(
|
7813
7860
|
"button",
|
7814
7861
|
{
|
7815
7862
|
type: "button",
|
@@ -7828,7 +7875,7 @@ var DestroyableCard = ({
|
|
7828
7875
|
}, 200);
|
7829
7876
|
}
|
7830
7877
|
},
|
7831
|
-
/* @__PURE__ */
|
7878
|
+
/* @__PURE__ */ React60.createElement(
|
7832
7879
|
"svg",
|
7833
7880
|
{
|
7834
7881
|
"aria-hidden": "true",
|
@@ -7836,7 +7883,7 @@ var DestroyableCard = ({
|
|
7836
7883
|
fill: "currentColor",
|
7837
7884
|
viewBox: "0 0 20 20"
|
7838
7885
|
},
|
7839
|
-
/* @__PURE__ */
|
7886
|
+
/* @__PURE__ */ React60.createElement(
|
7840
7887
|
"path",
|
7841
7888
|
{
|
7842
7889
|
fillRule: "evenodd",
|
@@ -7846,13 +7893,13 @@ var DestroyableCard = ({
|
|
7846
7893
|
)
|
7847
7894
|
)
|
7848
7895
|
),
|
7849
|
-
/* @__PURE__ */
|
7896
|
+
/* @__PURE__ */ React60.createElement(CardContent, { headless: true }, props.children)
|
7850
7897
|
)
|
7851
7898
|
);
|
7852
7899
|
};
|
7853
7900
|
|
7854
7901
|
// elements/interfaceSettings/InterfaceSettings.tsx
|
7855
|
-
import
|
7902
|
+
import React61, { useState as useState20 } from "react";
|
7856
7903
|
var InterfaceSettings = ({
|
7857
7904
|
orientation = "horizontal",
|
7858
7905
|
width = "default",
|
@@ -7866,7 +7913,7 @@ var InterfaceSettings = ({
|
|
7866
7913
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
7867
7914
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
7868
7915
|
};
|
7869
|
-
return /* @__PURE__ */
|
7916
|
+
return /* @__PURE__ */ React61.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ React61.createElement(
|
7870
7917
|
Radio,
|
7871
7918
|
{
|
7872
7919
|
name: "language",
|
@@ -7884,7 +7931,7 @@ var InterfaceSettings = ({
|
|
7884
7931
|
{ value: "en", label: "English" }
|
7885
7932
|
]
|
7886
7933
|
}
|
7887
|
-
), /* @__PURE__ */
|
7934
|
+
), /* @__PURE__ */ React61.createElement(
|
7888
7935
|
Radio,
|
7889
7936
|
{
|
7890
7937
|
name: "theme",
|
@@ -7900,7 +7947,7 @@ var InterfaceSettings = ({
|
|
7900
7947
|
options: [
|
7901
7948
|
{
|
7902
7949
|
value: "light",
|
7903
|
-
label: /* @__PURE__ */
|
7950
|
+
label: /* @__PURE__ */ React61.createElement(
|
7904
7951
|
"svg",
|
7905
7952
|
{
|
7906
7953
|
width: "15",
|
@@ -7910,7 +7957,7 @@ var InterfaceSettings = ({
|
|
7910
7957
|
xmlns: "http://www.w3.org/2000/svg",
|
7911
7958
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
7912
7959
|
},
|
7913
|
-
/* @__PURE__ */
|
7960
|
+
/* @__PURE__ */ React61.createElement(
|
7914
7961
|
"path",
|
7915
7962
|
{
|
7916
7963
|
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",
|
@@ -7921,7 +7968,7 @@ var InterfaceSettings = ({
|
|
7921
7968
|
},
|
7922
7969
|
{
|
7923
7970
|
value: "dark",
|
7924
|
-
label: /* @__PURE__ */
|
7971
|
+
label: /* @__PURE__ */ React61.createElement(
|
7925
7972
|
"svg",
|
7926
7973
|
{
|
7927
7974
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7932,7 +7979,7 @@ var InterfaceSettings = ({
|
|
7932
7979
|
stroke: "currentColor",
|
7933
7980
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
7934
7981
|
},
|
7935
|
-
/* @__PURE__ */
|
7982
|
+
/* @__PURE__ */ React61.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
7936
7983
|
)
|
7937
7984
|
}
|
7938
7985
|
]
|
@@ -7941,17 +7988,17 @@ var InterfaceSettings = ({
|
|
7941
7988
|
};
|
7942
7989
|
|
7943
7990
|
// elements/phoneMockup/PhoneMockup.tsx
|
7944
|
-
import
|
7991
|
+
import React62 from "react";
|
7945
7992
|
var PhoneMockup = ({
|
7946
7993
|
children,
|
7947
7994
|
upperOverlayGradiant,
|
7948
7995
|
lowerOverlayGradiant,
|
7949
7996
|
phone,
|
7950
7997
|
hideButtons
|
7951
|
-
}) => /* @__PURE__ */
|
7998
|
+
}) => /* @__PURE__ */ React62.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__ */ React62.createElement(React62.Fragment, null, /* @__PURE__ */ React62.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__ */ React62.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__ */ React62.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__ */ React62.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__ */ React62.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__ */ React62.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__ */ React62.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)]" }));
|
7952
7999
|
|
7953
8000
|
// layout/stats/Stats.tsx
|
7954
|
-
import
|
8001
|
+
import React63 from "react";
|
7955
8002
|
var Stats = ({
|
7956
8003
|
label,
|
7957
8004
|
icon,
|
@@ -7970,7 +8017,7 @@ var Stats = ({
|
|
7970
8017
|
negative: "hawa-text-red-600 dark:hawa-text-red-500",
|
7971
8018
|
muted: "hawa-text-muted-foreground"
|
7972
8019
|
};
|
7973
|
-
return /* @__PURE__ */
|
8020
|
+
return /* @__PURE__ */ React63.createElement(Card, { ...props, clickable }, /* @__PURE__ */ React63.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between hawa-p-4" }, /* @__PURE__ */ React63.createElement(CardTitle, { className: "hawa-text-sm hawa-font-medium" }, label), icon && /* @__PURE__ */ React63.createElement("span", null, icon)), /* @__PURE__ */ React63.createElement(CardContent, { className: "hawa-transition-all" }, isLoading ? /* @__PURE__ */ React63.createElement(Skeleton, { className: "hawa-h-8 hawa-w-3/4" }) : /* @__PURE__ */ React63.createElement("div", { className: "hawa-text-2xl hawa-font-bold" }, number), helperText && /* @__PURE__ */ React63.createElement(
|
7974
8021
|
"div",
|
7975
8022
|
{
|
7976
8023
|
className: cn(
|
@@ -7979,18 +8026,18 @@ var Stats = ({
|
|
7979
8026
|
helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
7980
8027
|
)
|
7981
8028
|
},
|
7982
|
-
isLoading ? /* @__PURE__ */
|
7983
|
-
), chart && (isLoading ? /* @__PURE__ */
|
8029
|
+
isLoading ? /* @__PURE__ */ React63.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : helperText
|
8030
|
+
), chart && (isLoading ? /* @__PURE__ */ React63.createElement(Skeleton, { className: "hawa-mt-2 hawa-h-4 hawa-w-1/2" }) : chart)));
|
7984
8031
|
};
|
7985
8032
|
|
7986
8033
|
// layout/sidebar/Sidebar.tsx
|
7987
|
-
import * as
|
8034
|
+
import * as React64 from "react";
|
7988
8035
|
import * as AccordionPrimitive6 from "@radix-ui/react-accordion";
|
7989
8036
|
var Accordion2 = AccordionPrimitive6.Root;
|
7990
8037
|
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";
|
7991
|
-
var AccordionItem2 =
|
8038
|
+
var AccordionItem2 = React64.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React64.createElement(AccordionPrimitive6.Item, { ref, className: cn(className), ...props }));
|
7992
8039
|
AccordionItem2.displayName = "AccordionItem";
|
7993
|
-
var AccordionTrigger2 =
|
8040
|
+
var AccordionTrigger2 = React64.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React64.createElement(AccordionPrimitive6.Header, { className: "flex" }, /* @__PURE__ */ React64.createElement(
|
7994
8041
|
AccordionPrimitive6.Trigger,
|
7995
8042
|
{
|
7996
8043
|
ref,
|
@@ -7998,7 +8045,7 @@ var AccordionTrigger2 = React63.forwardRef(({ className, showArrow, children, ..
|
|
7998
8045
|
...props
|
7999
8046
|
},
|
8000
8047
|
children,
|
8001
|
-
showArrow && /* @__PURE__ */
|
8048
|
+
showArrow && /* @__PURE__ */ React64.createElement(
|
8002
8049
|
"svg",
|
8003
8050
|
{
|
8004
8051
|
"aria-label": "Chevron Right Icon",
|
@@ -8009,11 +8056,11 @@ var AccordionTrigger2 = React63.forwardRef(({ className, showArrow, children, ..
|
|
8009
8056
|
width: "1em",
|
8010
8057
|
className: "hawa-icon hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
|
8011
8058
|
},
|
8012
|
-
/* @__PURE__ */
|
8059
|
+
/* @__PURE__ */ React64.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" })
|
8013
8060
|
)
|
8014
8061
|
)));
|
8015
8062
|
AccordionTrigger2.displayName = AccordionPrimitive6.Trigger.displayName;
|
8016
|
-
var AccordionContent2 =
|
8063
|
+
var AccordionContent2 = React64.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React64.createElement(
|
8017
8064
|
AccordionPrimitive6.Content,
|
8018
8065
|
{
|
8019
8066
|
ref,
|
@@ -8023,7 +8070,7 @@ var AccordionContent2 = React63.forwardRef(({ className, children, ...props }, r
|
|
8023
8070
|
),
|
8024
8071
|
...props
|
8025
8072
|
},
|
8026
|
-
/* @__PURE__ */
|
8073
|
+
/* @__PURE__ */ React64.createElement("div", null, children)
|
8027
8074
|
));
|
8028
8075
|
AccordionContent2.displayName = AccordionPrimitive6.Content.displayName;
|
8029
8076
|
var SidebarGroup = ({
|
@@ -8039,7 +8086,7 @@ var SidebarGroup = ({
|
|
8039
8086
|
...props
|
8040
8087
|
}) => {
|
8041
8088
|
const LinkComponent = props.LinkComponent || "a";
|
8042
|
-
return /* @__PURE__ */
|
8089
|
+
return /* @__PURE__ */ React64.createElement("div", { className: "hawa-m-2" }, title && /* @__PURE__ */ React64.createElement("h3", { className: "hawa-mb-1 hawa-font-bold" }, title), /* @__PURE__ */ React64.createElement("ul", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React64.createElement(
|
8043
8090
|
Accordion2,
|
8044
8091
|
{
|
8045
8092
|
value: openedItem,
|
@@ -8050,7 +8097,7 @@ var SidebarGroup = ({
|
|
8050
8097
|
collapsible: true,
|
8051
8098
|
className: "hawa-flex hawa-flex-col hawa-gap-1"
|
8052
8099
|
},
|
8053
|
-
items.map((item, idx) => /* @__PURE__ */
|
8100
|
+
items.map((item, idx) => /* @__PURE__ */ React64.createElement(
|
8054
8101
|
SidebarItem,
|
8055
8102
|
{
|
8056
8103
|
isOpen,
|
@@ -8078,14 +8125,14 @@ var SidebarItem = ({
|
|
8078
8125
|
return props.selectedItem === value ? "hawa-bg-primary/90 hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
|
8079
8126
|
};
|
8080
8127
|
if (item.subitems) {
|
8081
|
-
return /* @__PURE__ */
|
8128
|
+
return /* @__PURE__ */ React64.createElement(
|
8082
8129
|
AccordionItem2,
|
8083
8130
|
{
|
8084
8131
|
value: item.value,
|
8085
8132
|
className: "hawa-overflow-x-clip ",
|
8086
8133
|
dir: direction
|
8087
8134
|
},
|
8088
|
-
/* @__PURE__ */
|
8135
|
+
/* @__PURE__ */ React64.createElement(
|
8089
8136
|
AccordionTrigger2,
|
8090
8137
|
{
|
8091
8138
|
className: cn(
|
@@ -8097,7 +8144,7 @@ var SidebarItem = ({
|
|
8097
8144
|
),
|
8098
8145
|
showArrow: isOpen
|
8099
8146
|
},
|
8100
|
-
/* @__PURE__ */
|
8147
|
+
/* @__PURE__ */ React64.createElement(
|
8101
8148
|
"div",
|
8102
8149
|
{
|
8103
8150
|
className: cn(
|
@@ -8105,7 +8152,7 @@ var SidebarItem = ({
|
|
8105
8152
|
)
|
8106
8153
|
},
|
8107
8154
|
item.icon && item.icon,
|
8108
|
-
/* @__PURE__ */
|
8155
|
+
/* @__PURE__ */ React64.createElement(
|
8109
8156
|
"span",
|
8110
8157
|
{
|
8111
8158
|
className: cn(
|
@@ -8117,14 +8164,14 @@ var SidebarItem = ({
|
|
8117
8164
|
)
|
8118
8165
|
)
|
8119
8166
|
),
|
8120
|
-
item.subitems && /* @__PURE__ */
|
8167
|
+
item.subitems && /* @__PURE__ */ React64.createElement(AccordionContent2, { className: "hawa-mt-1 hawa-h-full hawa-rounded" }, /* @__PURE__ */ React64.createElement(
|
8121
8168
|
"div",
|
8122
8169
|
{
|
8123
8170
|
className: cn(
|
8124
8171
|
"hawa-flex hawa-h-full hawa-flex-col hawa-gap-2 hawa-bg-foreground/5 hawa-p-1"
|
8125
8172
|
)
|
8126
8173
|
},
|
8127
|
-
item.subitems.map((subitem, idx) => /* @__PURE__ */
|
8174
|
+
item.subitems.map((subitem, idx) => /* @__PURE__ */ React64.createElement(
|
8128
8175
|
LinkComponent,
|
8129
8176
|
{
|
8130
8177
|
href: subitem.slug,
|
@@ -8155,7 +8202,7 @@ var SidebarItem = ({
|
|
8155
8202
|
))
|
8156
8203
|
);
|
8157
8204
|
} else {
|
8158
|
-
return /* @__PURE__ */
|
8205
|
+
return /* @__PURE__ */ React64.createElement(
|
8159
8206
|
LinkComponent,
|
8160
8207
|
{
|
8161
8208
|
href: item.slug,
|
@@ -8179,7 +8226,7 @@ var SidebarItem = ({
|
|
8179
8226
|
"hawa-overflow-x-clip "
|
8180
8227
|
)
|
8181
8228
|
},
|
8182
|
-
/* @__PURE__ */
|
8229
|
+
/* @__PURE__ */ React64.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, item.icon && item.icon, /* @__PURE__ */ React64.createElement(
|
8183
8230
|
"span",
|
8184
8231
|
{
|
8185
8232
|
className: cn(
|
@@ -8189,20 +8236,20 @@ var SidebarItem = ({
|
|
8189
8236
|
},
|
8190
8237
|
item.label,
|
8191
8238
|
" ",
|
8192
|
-
item.badge && /* @__PURE__ */
|
8239
|
+
item.badge && /* @__PURE__ */ React64.createElement(Chip, { label: item.badge.label, color: "hyper", size: "small" })
|
8193
8240
|
))
|
8194
8241
|
);
|
8195
8242
|
}
|
8196
8243
|
};
|
8197
8244
|
|
8198
8245
|
// layout/copyrights/Copyrights.tsx
|
8199
|
-
import
|
8246
|
+
import React65 from "react";
|
8200
8247
|
var Copyrights = (props) => {
|
8201
|
-
return /* @__PURE__ */
|
8248
|
+
return /* @__PURE__ */ React65.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__ */ React65.createElement("a", { href: props.onLogoClicked }, /* @__PURE__ */ React65.createElement("div", { className: "hawa-cursor-pointer" }, /* @__PURE__ */ React65.createElement("image", { href: props.logoURL, width: 100, height: 50 }))) : null, /* @__PURE__ */ React65.createElement("div", null, props.version), props.credits ? props.credits : null);
|
8202
8249
|
};
|
8203
8250
|
|
8204
8251
|
// layout/navbar/Navbar.tsx
|
8205
|
-
import
|
8252
|
+
import React66, { useState as useState21 } from "react";
|
8206
8253
|
|
8207
8254
|
// elements/collapsible/Collapsible.tsx
|
8208
8255
|
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
@@ -8219,13 +8266,13 @@ var Navbar = ({
|
|
8219
8266
|
}) => {
|
8220
8267
|
var _a, _b;
|
8221
8268
|
const [isOpen, setIsOpen] = useState21(false);
|
8222
|
-
return /* @__PURE__ */
|
8269
|
+
return /* @__PURE__ */ React66.createElement("nav", { className: " hawa-sticky hawa-top-2 hawa-transition-all" }, /* @__PURE__ */ React66.createElement(
|
8223
8270
|
Collapsible,
|
8224
8271
|
{
|
8225
8272
|
className: "hawa-relative hawa-m-2 hawa-rounded hawa-p-2",
|
8226
8273
|
style: { backgroundColor: backgroundColor || "#1f2937" }
|
8227
8274
|
},
|
8228
|
-
/* @__PURE__ */
|
8275
|
+
/* @__PURE__ */ React66.createElement("div", { className: "hawa-flex hawa-items-center hawa-justify-between hawa-px-3 " }, /* @__PURE__ */ React66.createElement("div", { className: "hawa-flex hawa-items-center" }, /* @__PURE__ */ React66.createElement(
|
8229
8276
|
"div",
|
8230
8277
|
{
|
8231
8278
|
className: "hawa-p-1.5 hawa-text-xl hawa-font-bold hawa-text-white",
|
@@ -8236,7 +8283,7 @@ var Navbar = ({
|
|
8236
8283
|
}
|
8237
8284
|
},
|
8238
8285
|
logo
|
8239
|
-
)), /* @__PURE__ */
|
8286
|
+
)), /* @__PURE__ */ React66.createElement("div", { className: "hawa-hidden md:hawa-flex " }, (_a = props.menuItems) == null ? void 0 : _a.map((item, i) => /* @__PURE__ */ React66.createElement(
|
8240
8287
|
"div",
|
8241
8288
|
{
|
8242
8289
|
key: i,
|
@@ -8244,14 +8291,14 @@ var Navbar = ({
|
|
8244
8291
|
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"
|
8245
8292
|
},
|
8246
8293
|
item.label
|
8247
|
-
))), /* @__PURE__ */
|
8294
|
+
))), /* @__PURE__ */ React66.createElement("div", { className: "hawa-m-0 hawa-flex hawa-h-fit hawa-p-0 md:hawa-hidden" }, /* @__PURE__ */ React66.createElement(
|
8248
8295
|
CollapsibleTrigger2,
|
8249
8296
|
{
|
8250
8297
|
onClick: () => setIsOpen(!isOpen),
|
8251
8298
|
className: "hawa-h-full hawa-text-white selection:hawa-p-0 ",
|
8252
8299
|
"aria-label": "Toggle menu"
|
8253
8300
|
},
|
8254
|
-
/* @__PURE__ */
|
8301
|
+
/* @__PURE__ */ React66.createElement(
|
8255
8302
|
"svg",
|
8256
8303
|
{
|
8257
8304
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8268,11 +8315,11 @@ var Navbar = ({
|
|
8268
8315
|
isOpen ? "hawa-invisible" : "hawa-visible"
|
8269
8316
|
)
|
8270
8317
|
},
|
8271
|
-
/* @__PURE__ */
|
8272
|
-
/* @__PURE__ */
|
8273
|
-
/* @__PURE__ */
|
8318
|
+
/* @__PURE__ */ React66.createElement("line", { x1: "4", x2: "20", y1: "12", y2: "12" }),
|
8319
|
+
/* @__PURE__ */ React66.createElement("line", { x1: "4", x2: "20", y1: "6", y2: "6" }),
|
8320
|
+
/* @__PURE__ */ React66.createElement("line", { x1: "4", x2: "20", y1: "18", y2: "18" })
|
8274
8321
|
),
|
8275
|
-
/* @__PURE__ */
|
8322
|
+
/* @__PURE__ */ React66.createElement(
|
8276
8323
|
"svg",
|
8277
8324
|
{
|
8278
8325
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8289,11 +8336,11 @@ var Navbar = ({
|
|
8289
8336
|
!isOpen ? "hawa-invisible" : "hawa-visible"
|
8290
8337
|
)
|
8291
8338
|
},
|
8292
|
-
/* @__PURE__ */
|
8293
|
-
/* @__PURE__ */
|
8339
|
+
/* @__PURE__ */ React66.createElement("path", { d: "M18 6 6 18" }),
|
8340
|
+
/* @__PURE__ */ React66.createElement("path", { d: "m6 6 12 12" })
|
8294
8341
|
)
|
8295
8342
|
))),
|
8296
|
-
/* @__PURE__ */
|
8343
|
+
/* @__PURE__ */ React66.createElement(
|
8297
8344
|
CollapsibleContent2,
|
8298
8345
|
{
|
8299
8346
|
className: cn(
|
@@ -8308,7 +8355,7 @@ var Navbar = ({
|
|
8308
8355
|
zIndex: -100
|
8309
8356
|
}
|
8310
8357
|
},
|
8311
|
-
(_b = props.menuItems) == null ? void 0 : _b.map((item, i) => /* @__PURE__ */
|
8358
|
+
(_b = props.menuItems) == null ? void 0 : _b.map((item, i) => /* @__PURE__ */ React66.createElement(
|
8312
8359
|
"div",
|
8313
8360
|
{
|
8314
8361
|
key: i,
|
@@ -8322,7 +8369,7 @@ var Navbar = ({
|
|
8322
8369
|
};
|
8323
8370
|
|
8324
8371
|
// layout/appLayout/AppLayout.tsx
|
8325
|
-
import
|
8372
|
+
import React67, { useEffect as useEffect15, useRef as useRef10, useState as useState22 } from "react";
|
8326
8373
|
var AppLayout = ({
|
8327
8374
|
profileMenuWidth = "default",
|
8328
8375
|
DrawerFooterActions,
|
@@ -8385,7 +8432,7 @@ var AppLayout = ({
|
|
8385
8432
|
document.removeEventListener("click", handleClickOutside, true);
|
8386
8433
|
};
|
8387
8434
|
}, [keepOpen]);
|
8388
|
-
return /* @__PURE__ */
|
8435
|
+
return /* @__PURE__ */ React67.createElement("div", { className: "hawa-fixed hawa-left-0" }, props.topBar && /* @__PURE__ */ React67.createElement(
|
8389
8436
|
"div",
|
8390
8437
|
{
|
8391
8438
|
className: cn(
|
@@ -8393,7 +8440,7 @@ var AppLayout = ({
|
|
8393
8440
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
8394
8441
|
)
|
8395
8442
|
},
|
8396
|
-
size > 600 ? /* @__PURE__ */
|
8443
|
+
size > 600 ? /* @__PURE__ */ React67.createElement(
|
8397
8444
|
"div",
|
8398
8445
|
{
|
8399
8446
|
className: cn(
|
@@ -8415,24 +8462,24 @@ var AppLayout = ({
|
|
8415
8462
|
props.pageTitle
|
8416
8463
|
) : (
|
8417
8464
|
// Mobile Drawer Menu Button
|
8418
|
-
/* @__PURE__ */
|
8465
|
+
/* @__PURE__ */ React67.createElement(
|
8419
8466
|
"div",
|
8420
8467
|
{
|
8421
8468
|
dir: direction,
|
8422
8469
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
8423
8470
|
},
|
8424
|
-
/* @__PURE__ */
|
8471
|
+
/* @__PURE__ */ React67.createElement(
|
8425
8472
|
"div",
|
8426
8473
|
{
|
8427
8474
|
onClick: () => setOpenSideMenu(true),
|
8428
8475
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
8429
8476
|
},
|
8430
|
-
/* @__PURE__ */
|
8477
|
+
/* @__PURE__ */ React67.createElement(MenuIcon, null)
|
8431
8478
|
),
|
8432
|
-
props.pageTitle ? /* @__PURE__ */
|
8479
|
+
props.pageTitle ? /* @__PURE__ */ React67.createElement("div", { className: "hawa-text-sm" }, props.pageTitle) : /* @__PURE__ */ React67.createElement("div", null)
|
8433
8480
|
)
|
8434
8481
|
),
|
8435
|
-
/* @__PURE__ */
|
8482
|
+
/* @__PURE__ */ React67.createElement(
|
8436
8483
|
"div",
|
8437
8484
|
{
|
8438
8485
|
className: cn(
|
@@ -8440,16 +8487,16 @@ var AppLayout = ({
|
|
8440
8487
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
8441
8488
|
)
|
8442
8489
|
},
|
8443
|
-
size > 600 ? /* @__PURE__ */
|
8490
|
+
size > 600 ? /* @__PURE__ */ React67.createElement(
|
8444
8491
|
"div",
|
8445
8492
|
{
|
8446
8493
|
className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
|
8447
8494
|
},
|
8448
|
-
/* @__PURE__ */
|
8495
|
+
/* @__PURE__ */ React67.createElement("div", { className: "hawa-font-bold" }, props.username),
|
8449
8496
|
" ",
|
8450
|
-
/* @__PURE__ */
|
8497
|
+
/* @__PURE__ */ React67.createElement("div", null, props.email)
|
8451
8498
|
) : null,
|
8452
|
-
/* @__PURE__ */
|
8499
|
+
/* @__PURE__ */ React67.createElement(
|
8453
8500
|
DropdownMenu,
|
8454
8501
|
{
|
8455
8502
|
LinkComponent: MenuLinkComponent,
|
@@ -8462,7 +8509,7 @@ var AppLayout = ({
|
|
8462
8509
|
direction: isRTL ? "rtl" : "ltr",
|
8463
8510
|
items: props.profileMenuItems || [],
|
8464
8511
|
onItemSelect: (e) => console.log("selecting item ", e),
|
8465
|
-
trigger: /* @__PURE__ */
|
8512
|
+
trigger: /* @__PURE__ */ React67.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__ */ React67.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ React67.createElement(
|
8466
8513
|
"svg",
|
8467
8514
|
{
|
8468
8515
|
"aria-label": "Avatar Icon",
|
@@ -8470,7 +8517,7 @@ var AppLayout = ({
|
|
8470
8517
|
fill: "currentColor",
|
8471
8518
|
viewBox: "0 0 20 20"
|
8472
8519
|
},
|
8473
|
-
/* @__PURE__ */
|
8520
|
+
/* @__PURE__ */ React67.createElement(
|
8474
8521
|
"path",
|
8475
8522
|
{
|
8476
8523
|
fillRule: "evenodd",
|
@@ -8482,7 +8529,7 @@ var AppLayout = ({
|
|
8482
8529
|
}
|
8483
8530
|
)
|
8484
8531
|
)
|
8485
|
-
), /* @__PURE__ */
|
8532
|
+
), /* @__PURE__ */ React67.createElement(
|
8486
8533
|
"div",
|
8487
8534
|
{
|
8488
8535
|
className: cn(
|
@@ -8510,7 +8557,7 @@ var AppLayout = ({
|
|
8510
8557
|
},
|
8511
8558
|
ref
|
8512
8559
|
},
|
8513
|
-
/* @__PURE__ */
|
8560
|
+
/* @__PURE__ */ React67.createElement(
|
8514
8561
|
"div",
|
8515
8562
|
{
|
8516
8563
|
onClick: props.onLogoClick,
|
@@ -8525,7 +8572,7 @@ var AppLayout = ({
|
|
8525
8572
|
}
|
8526
8573
|
},
|
8527
8574
|
openSideMenu && props.header && props.header,
|
8528
|
-
!props.header && /* @__PURE__ */
|
8575
|
+
!props.header && /* @__PURE__ */ React67.createElement(
|
8529
8576
|
"img",
|
8530
8577
|
{
|
8531
8578
|
className: cn(
|
@@ -8536,7 +8583,7 @@ var AppLayout = ({
|
|
8536
8583
|
src: props.logoLink
|
8537
8584
|
}
|
8538
8585
|
),
|
8539
|
-
size > 600 ? /* @__PURE__ */
|
8586
|
+
size > 600 ? /* @__PURE__ */ React67.createElement(
|
8540
8587
|
"img",
|
8541
8588
|
{
|
8542
8589
|
className: cn(
|
@@ -8549,7 +8596,7 @@ var AppLayout = ({
|
|
8549
8596
|
}
|
8550
8597
|
) : null
|
8551
8598
|
),
|
8552
|
-
/* @__PURE__ */
|
8599
|
+
/* @__PURE__ */ React67.createElement(
|
8553
8600
|
"div",
|
8554
8601
|
{
|
8555
8602
|
className: cn(
|
@@ -8560,7 +8607,7 @@ var AppLayout = ({
|
|
8560
8607
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : drawerSizeCondition}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
8561
8608
|
}
|
8562
8609
|
},
|
8563
|
-
/* @__PURE__ */
|
8610
|
+
/* @__PURE__ */ React67.createElement(
|
8564
8611
|
SidebarGroup,
|
8565
8612
|
{
|
8566
8613
|
direction,
|
@@ -8583,7 +8630,7 @@ var AppLayout = ({
|
|
8583
8630
|
}
|
8584
8631
|
)
|
8585
8632
|
),
|
8586
|
-
/* @__PURE__ */
|
8633
|
+
/* @__PURE__ */ React67.createElement(
|
8587
8634
|
"div",
|
8588
8635
|
{
|
8589
8636
|
className: cn(
|
@@ -8595,8 +8642,8 @@ var AppLayout = ({
|
|
8595
8642
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
8596
8643
|
}
|
8597
8644
|
},
|
8598
|
-
DrawerFooterActions && openSideMenu ? /* @__PURE__ */
|
8599
|
-
size > 600 && openSideMenu ? /* @__PURE__ */
|
8645
|
+
DrawerFooterActions && openSideMenu ? /* @__PURE__ */ React67.createElement(React67.Fragment, null, DrawerFooterActions) : null,
|
8646
|
+
size > 600 && openSideMenu ? /* @__PURE__ */ React67.createElement(
|
8600
8647
|
Tooltip,
|
8601
8648
|
{
|
8602
8649
|
side: "left",
|
@@ -8604,7 +8651,7 @@ var AppLayout = ({
|
|
8604
8651
|
content: keepOpen ? ((_a = props.texts) == null ? void 0 : _a.collapseSidebar) || "Collapse Sidebar" : ((_b = props.texts) == null ? void 0 : _b.expandSidebar) || "Expand Sidebar",
|
8605
8652
|
triggerProps: { asChild: true }
|
8606
8653
|
},
|
8607
|
-
/* @__PURE__ */
|
8654
|
+
/* @__PURE__ */ React67.createElement(
|
8608
8655
|
Button,
|
8609
8656
|
{
|
8610
8657
|
variant: "outline",
|
@@ -8617,7 +8664,7 @@ var AppLayout = ({
|
|
8617
8664
|
},
|
8618
8665
|
size: "smallIcon"
|
8619
8666
|
},
|
8620
|
-
/* @__PURE__ */
|
8667
|
+
/* @__PURE__ */ React67.createElement(
|
8621
8668
|
"svg",
|
8622
8669
|
{
|
8623
8670
|
className: cn(
|
@@ -8627,7 +8674,7 @@ var AppLayout = ({
|
|
8627
8674
|
fill: "currentColor",
|
8628
8675
|
viewBox: "0 0 20 20"
|
8629
8676
|
},
|
8630
|
-
/* @__PURE__ */
|
8677
|
+
/* @__PURE__ */ React67.createElement(
|
8631
8678
|
"path",
|
8632
8679
|
{
|
8633
8680
|
fillRule: "evenodd",
|
@@ -8639,7 +8686,7 @@ var AppLayout = ({
|
|
8639
8686
|
)
|
8640
8687
|
) : null
|
8641
8688
|
)
|
8642
|
-
), /* @__PURE__ */
|
8689
|
+
), /* @__PURE__ */ React67.createElement(
|
8643
8690
|
"div",
|
8644
8691
|
{
|
8645
8692
|
className: "hawa-fixed -hawa-z-10 hawa-overflow-y-auto hawa-transition-all",
|
@@ -8658,7 +8705,7 @@ var AppLayout = ({
|
|
8658
8705
|
props.children
|
8659
8706
|
));
|
8660
8707
|
};
|
8661
|
-
var MenuIcon = () => /* @__PURE__ */
|
8708
|
+
var MenuIcon = () => /* @__PURE__ */ React67.createElement(
|
8662
8709
|
"svg",
|
8663
8710
|
{
|
8664
8711
|
"aria-label": "Menu Button",
|
@@ -8670,7 +8717,7 @@ var MenuIcon = () => /* @__PURE__ */ React66.createElement(
|
|
8670
8717
|
height: "1.6em",
|
8671
8718
|
width: "1.6em"
|
8672
8719
|
},
|
8673
|
-
/* @__PURE__ */
|
8720
|
+
/* @__PURE__ */ React67.createElement(
|
8674
8721
|
"path",
|
8675
8722
|
{
|
8676
8723
|
fillRule: "evenodd",
|
@@ -8681,11 +8728,11 @@ var MenuIcon = () => /* @__PURE__ */ React66.createElement(
|
|
8681
8728
|
);
|
8682
8729
|
|
8683
8730
|
// layout/appTopbar/AppTopbar.tsx
|
8684
|
-
import
|
8731
|
+
import React68 from "react";
|
8685
8732
|
var AppTopbar = ({ ...props }) => {
|
8686
8733
|
const isRTL = props.direction === "ltr";
|
8687
8734
|
const size = 1200;
|
8688
|
-
return /* @__PURE__ */
|
8735
|
+
return /* @__PURE__ */ React68.createElement(
|
8689
8736
|
"div",
|
8690
8737
|
{
|
8691
8738
|
className: cn(
|
@@ -8693,24 +8740,24 @@ var AppTopbar = ({ ...props }) => {
|
|
8693
8740
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
8694
8741
|
)
|
8695
8742
|
},
|
8696
|
-
size > 600 ? /* @__PURE__ */
|
8743
|
+
size > 600 ? /* @__PURE__ */ React68.createElement(
|
8697
8744
|
"div",
|
8698
8745
|
null,
|
8699
8746
|
"page title"
|
8700
8747
|
) : (
|
8701
8748
|
// Mobile Drawer Menu Button
|
8702
|
-
/* @__PURE__ */
|
8749
|
+
/* @__PURE__ */ React68.createElement(
|
8703
8750
|
"div",
|
8704
8751
|
{
|
8705
8752
|
dir: props.direction,
|
8706
8753
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
8707
8754
|
},
|
8708
|
-
/* @__PURE__ */
|
8755
|
+
/* @__PURE__ */ React68.createElement(
|
8709
8756
|
"div",
|
8710
8757
|
{
|
8711
8758
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
8712
8759
|
},
|
8713
|
-
/* @__PURE__ */
|
8760
|
+
/* @__PURE__ */ React68.createElement(
|
8714
8761
|
"svg",
|
8715
8762
|
{
|
8716
8763
|
stroke: "currentColor",
|
@@ -8721,7 +8768,7 @@ var AppTopbar = ({ ...props }) => {
|
|
8721
8768
|
height: "1.6em",
|
8722
8769
|
width: "1.6em"
|
8723
8770
|
},
|
8724
|
-
/* @__PURE__ */
|
8771
|
+
/* @__PURE__ */ React68.createElement(
|
8725
8772
|
"path",
|
8726
8773
|
{
|
8727
8774
|
fillRule: "evenodd",
|
@@ -8734,7 +8781,7 @@ var AppTopbar = ({ ...props }) => {
|
|
8734
8781
|
"Mobile title"
|
8735
8782
|
)
|
8736
8783
|
),
|
8737
|
-
/* @__PURE__ */
|
8784
|
+
/* @__PURE__ */ React68.createElement(
|
8738
8785
|
"div",
|
8739
8786
|
{
|
8740
8787
|
className: cn(
|
@@ -8742,16 +8789,16 @@ var AppTopbar = ({ ...props }) => {
|
|
8742
8789
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
8743
8790
|
)
|
8744
8791
|
},
|
8745
|
-
size > 600 ? /* @__PURE__ */
|
8792
|
+
size > 600 ? /* @__PURE__ */ React68.createElement(
|
8746
8793
|
"div",
|
8747
8794
|
{
|
8748
8795
|
className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
|
8749
8796
|
},
|
8750
|
-
/* @__PURE__ */
|
8797
|
+
/* @__PURE__ */ React68.createElement("div", { className: "hawa-font-bold" }, props.username),
|
8751
8798
|
" ",
|
8752
|
-
/* @__PURE__ */
|
8799
|
+
/* @__PURE__ */ React68.createElement("div", null, props.email)
|
8753
8800
|
) : null,
|
8754
|
-
/* @__PURE__ */
|
8801
|
+
/* @__PURE__ */ React68.createElement(
|
8755
8802
|
DropdownMenu,
|
8756
8803
|
{
|
8757
8804
|
triggerClassname: "hawa-mx-2",
|
@@ -8762,7 +8809,7 @@ var AppTopbar = ({ ...props }) => {
|
|
8762
8809
|
direction: isRTL ? "rtl" : "ltr",
|
8763
8810
|
items: props.profileMenuItems || [],
|
8764
8811
|
onItemSelect: (e) => console.log("selecting item ", e),
|
8765
|
-
trigger: /* @__PURE__ */
|
8812
|
+
trigger: /* @__PURE__ */ React68.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__ */ React68.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ React68.createElement(
|
8766
8813
|
"svg",
|
8767
8814
|
{
|
8768
8815
|
"aria-label": "Avatar Icon",
|
@@ -8770,7 +8817,7 @@ var AppTopbar = ({ ...props }) => {
|
|
8770
8817
|
fill: "currentColor",
|
8771
8818
|
viewBox: "0 0 20 20"
|
8772
8819
|
},
|
8773
|
-
/* @__PURE__ */
|
8820
|
+
/* @__PURE__ */ React68.createElement(
|
8774
8821
|
"path",
|
8775
8822
|
{
|
8776
8823
|
fillRule: "evenodd",
|
@@ -8786,14 +8833,14 @@ var AppTopbar = ({ ...props }) => {
|
|
8786
8833
|
};
|
8787
8834
|
|
8788
8835
|
// layout/appMenubar/AppMenubar.tsx
|
8789
|
-
import * as
|
8836
|
+
import * as React69 from "react";
|
8790
8837
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
8791
8838
|
var MenubarMenu = MenubarPrimitive.Menu;
|
8792
8839
|
var MenubarGroup = MenubarPrimitive.Group;
|
8793
8840
|
var MenubarPortal = MenubarPrimitive.Portal;
|
8794
8841
|
var MenubarSub = MenubarPrimitive.Sub;
|
8795
8842
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
8796
|
-
var Menubar =
|
8843
|
+
var Menubar = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
8797
8844
|
MenubarPrimitive.Root,
|
8798
8845
|
{
|
8799
8846
|
ref,
|
@@ -8805,7 +8852,7 @@ var Menubar = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
8805
8852
|
}
|
8806
8853
|
));
|
8807
8854
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
8808
|
-
var MenubarTrigger =
|
8855
|
+
var MenubarTrigger = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
8809
8856
|
MenubarPrimitive.Trigger,
|
8810
8857
|
{
|
8811
8858
|
ref,
|
@@ -8817,7 +8864,7 @@ var MenubarTrigger = React68.forwardRef(({ className, ...props }, ref) => /* @__
|
|
8817
8864
|
}
|
8818
8865
|
));
|
8819
8866
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
8820
|
-
var MenubarSubTrigger =
|
8867
|
+
var MenubarSubTrigger = React69.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
8821
8868
|
MenubarPrimitive.SubTrigger,
|
8822
8869
|
{
|
8823
8870
|
ref,
|
@@ -8829,7 +8876,7 @@ var MenubarSubTrigger = React68.forwardRef(({ className, inset, children, ...pro
|
|
8829
8876
|
...props
|
8830
8877
|
},
|
8831
8878
|
children,
|
8832
|
-
/* @__PURE__ */
|
8879
|
+
/* @__PURE__ */ React69.createElement(
|
8833
8880
|
"svg",
|
8834
8881
|
{
|
8835
8882
|
"aria-label": "Chevron Right Icon",
|
@@ -8844,11 +8891,11 @@ var MenubarSubTrigger = React68.forwardRef(({ className, inset, children, ...pro
|
|
8844
8891
|
strokeLinejoin: "round",
|
8845
8892
|
className: "hawa-icon hawa-ml-auto"
|
8846
8893
|
},
|
8847
|
-
/* @__PURE__ */
|
8894
|
+
/* @__PURE__ */ React69.createElement("path", { d: "m9 18 6-6-6-6" })
|
8848
8895
|
)
|
8849
8896
|
));
|
8850
8897
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
8851
|
-
var MenubarSubContent =
|
8898
|
+
var MenubarSubContent = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
8852
8899
|
MenubarPrimitive.SubContent,
|
8853
8900
|
{
|
8854
8901
|
ref,
|
@@ -8860,8 +8907,8 @@ var MenubarSubContent = React68.forwardRef(({ className, ...props }, ref) => /*
|
|
8860
8907
|
}
|
8861
8908
|
));
|
8862
8909
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
8863
|
-
var MenubarContent =
|
8864
|
-
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */
|
8910
|
+
var MenubarContent = React69.forwardRef(
|
8911
|
+
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ React69.createElement(MenubarPrimitive.Portal, null, /* @__PURE__ */ React69.createElement(
|
8865
8912
|
MenubarPrimitive.Content,
|
8866
8913
|
{
|
8867
8914
|
ref,
|
@@ -8877,7 +8924,7 @@ var MenubarContent = React68.forwardRef(
|
|
8877
8924
|
))
|
8878
8925
|
);
|
8879
8926
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
8880
|
-
var MenubarItem =
|
8927
|
+
var MenubarItem = React69.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
8881
8928
|
MenubarPrimitive.Item,
|
8882
8929
|
{
|
8883
8930
|
ref,
|
@@ -8890,7 +8937,7 @@ var MenubarItem = React68.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
8890
8937
|
}
|
8891
8938
|
));
|
8892
8939
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
8893
|
-
var MenubarCheckboxItem =
|
8940
|
+
var MenubarCheckboxItem = React69.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
8894
8941
|
MenubarPrimitive.CheckboxItem,
|
8895
8942
|
{
|
8896
8943
|
ref,
|
@@ -8901,7 +8948,7 @@ var MenubarCheckboxItem = React68.forwardRef(({ className, children, checked, ..
|
|
8901
8948
|
checked,
|
8902
8949
|
...props
|
8903
8950
|
},
|
8904
|
-
/* @__PURE__ */
|
8951
|
+
/* @__PURE__ */ React69.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__ */ React69.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React69.createElement(
|
8905
8952
|
"svg",
|
8906
8953
|
{
|
8907
8954
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8915,12 +8962,12 @@ var MenubarCheckboxItem = React68.forwardRef(({ className, children, checked, ..
|
|
8915
8962
|
strokeLinejoin: "round",
|
8916
8963
|
className: "hawa-icon"
|
8917
8964
|
},
|
8918
|
-
/* @__PURE__ */
|
8965
|
+
/* @__PURE__ */ React69.createElement("path", { d: "M20 6 9 17l-5-5" })
|
8919
8966
|
))),
|
8920
8967
|
children
|
8921
8968
|
));
|
8922
8969
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
8923
|
-
var MenubarRadioItem =
|
8970
|
+
var MenubarRadioItem = React69.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
8924
8971
|
MenubarPrimitive.RadioItem,
|
8925
8972
|
{
|
8926
8973
|
ref,
|
@@ -8930,7 +8977,7 @@ var MenubarRadioItem = React68.forwardRef(({ className, children, ...props }, re
|
|
8930
8977
|
),
|
8931
8978
|
...props
|
8932
8979
|
},
|
8933
|
-
/* @__PURE__ */
|
8980
|
+
/* @__PURE__ */ React69.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__ */ React69.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React69.createElement(
|
8934
8981
|
"svg",
|
8935
8982
|
{
|
8936
8983
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8944,12 +8991,12 @@ var MenubarRadioItem = React68.forwardRef(({ className, children, ...props }, re
|
|
8944
8991
|
strokeLinejoin: "round",
|
8945
8992
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
8946
8993
|
},
|
8947
|
-
/* @__PURE__ */
|
8994
|
+
/* @__PURE__ */ React69.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
8948
8995
|
))),
|
8949
8996
|
children
|
8950
8997
|
));
|
8951
8998
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
8952
|
-
var MenubarLabel =
|
8999
|
+
var MenubarLabel = React69.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
8953
9000
|
MenubarPrimitive.Label,
|
8954
9001
|
{
|
8955
9002
|
ref,
|
@@ -8962,7 +9009,7 @@ var MenubarLabel = React68.forwardRef(({ className, inset, ...props }, ref) => /
|
|
8962
9009
|
}
|
8963
9010
|
));
|
8964
9011
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
8965
|
-
var MenubarSeparator =
|
9012
|
+
var MenubarSeparator = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
8966
9013
|
MenubarPrimitive.Separator,
|
8967
9014
|
{
|
8968
9015
|
ref,
|
@@ -8975,7 +9022,7 @@ var MenubarShortcut = ({
|
|
8975
9022
|
className,
|
8976
9023
|
...props
|
8977
9024
|
}) => {
|
8978
|
-
return /* @__PURE__ */
|
9025
|
+
return /* @__PURE__ */ React69.createElement(
|
8979
9026
|
"span",
|
8980
9027
|
{
|
8981
9028
|
className: cn(
|
@@ -8989,10 +9036,10 @@ var MenubarShortcut = ({
|
|
8989
9036
|
MenubarShortcut.displayname = "MenubarShortcut";
|
8990
9037
|
|
8991
9038
|
// layout/appTabs/AppTabs.tsx
|
8992
|
-
import
|
9039
|
+
import React70, { useState as useState23 } from "react";
|
8993
9040
|
var AppTabs = ({ tabs, className }) => {
|
8994
9041
|
const [selectedIndex, setSelectedIndex] = useState23(0);
|
8995
|
-
return /* @__PURE__ */
|
9042
|
+
return /* @__PURE__ */ React70.createElement(
|
8996
9043
|
"div",
|
8997
9044
|
{
|
8998
9045
|
className: cn(
|
@@ -9000,9 +9047,9 @@ var AppTabs = ({ tabs, className }) => {
|
|
9000
9047
|
className
|
9001
9048
|
)
|
9002
9049
|
},
|
9003
|
-
/* @__PURE__ */
|
9050
|
+
/* @__PURE__ */ React70.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center " }, tabs.map((tab, index) => {
|
9004
9051
|
const selected = index === selectedIndex;
|
9005
|
-
return /* @__PURE__ */
|
9052
|
+
return /* @__PURE__ */ React70.createElement(
|
9006
9053
|
"a",
|
9007
9054
|
{
|
9008
9055
|
href: tab.path,
|
@@ -9033,7 +9080,7 @@ var AppTabs = ({ tabs, className }) => {
|
|
9033
9080
|
};
|
9034
9081
|
|
9035
9082
|
// layout/docsLayout/DocsLayout.tsx
|
9036
|
-
import
|
9083
|
+
import React73, { useEffect as useEffect17, useRef as useRef11, useState as useState25 } from "react";
|
9037
9084
|
|
9038
9085
|
// hooks/useBreakpoint.ts
|
9039
9086
|
import { useState as useState24, useEffect as useEffect16 } from "react";
|
@@ -9055,13 +9102,13 @@ var useBreakpoint = () => {
|
|
9055
9102
|
};
|
9056
9103
|
|
9057
9104
|
// layout/docsSidebar/DocsSidebar.tsx
|
9058
|
-
import
|
9105
|
+
import React72 from "react";
|
9059
9106
|
var DocsSidebar = ({
|
9060
9107
|
currentPage: propCurrentPage,
|
9061
9108
|
pages,
|
9062
9109
|
direction
|
9063
9110
|
}) => {
|
9064
|
-
const [activePage, setActivePage] =
|
9111
|
+
const [activePage, setActivePage] = React72.useState(pages[0]);
|
9065
9112
|
const handlePageClick = (page, event) => {
|
9066
9113
|
event.preventDefault();
|
9067
9114
|
setTimeout(() => {
|
@@ -9083,7 +9130,7 @@ var DocsSidebar = ({
|
|
9083
9130
|
}
|
9084
9131
|
return pages[0];
|
9085
9132
|
};
|
9086
|
-
|
9133
|
+
React72.useEffect(() => {
|
9087
9134
|
const handleScroll = () => {
|
9088
9135
|
setActivePage(getCurrentSection());
|
9089
9136
|
};
|
@@ -9096,13 +9143,13 @@ var DocsSidebar = ({
|
|
9096
9143
|
rtl: "hawa-border-r-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200",
|
9097
9144
|
ltr: "hawa-border-l-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200"
|
9098
9145
|
};
|
9099
|
-
return /* @__PURE__ */
|
9146
|
+
return /* @__PURE__ */ React72.createElement(
|
9100
9147
|
"div",
|
9101
9148
|
{
|
9102
9149
|
className: "hawa-flex hawa-flex-col hawa-overflow-x-clip",
|
9103
9150
|
dir: direction
|
9104
9151
|
},
|
9105
|
-
pages.map((page, index) => /* @__PURE__ */
|
9152
|
+
pages.map((page, index) => /* @__PURE__ */ React72.createElement(
|
9106
9153
|
"div",
|
9107
9154
|
{
|
9108
9155
|
key: index,
|
@@ -9171,7 +9218,7 @@ var DocsLayout = ({
|
|
9171
9218
|
window.removeEventListener("resize", handleResize);
|
9172
9219
|
};
|
9173
9220
|
}, [keepOpen]);
|
9174
|
-
const observerRef =
|
9221
|
+
const observerRef = React73.useRef(null);
|
9175
9222
|
const handleIntersection = (entries) => {
|
9176
9223
|
const entry = entries.find((entry2) => entry2.isIntersecting);
|
9177
9224
|
if (entry) {
|
@@ -9183,7 +9230,7 @@ var DocsLayout = ({
|
|
9183
9230
|
threshold: 0.5
|
9184
9231
|
// Adjust threshold as needed to determine when a section is in view
|
9185
9232
|
});
|
9186
|
-
|
9233
|
+
React73.Children.forEach(props.children, (child) => {
|
9187
9234
|
if (child && child.props.id) {
|
9188
9235
|
const element = document.getElementById(child.props.id);
|
9189
9236
|
if (element && observerRef.current) {
|
@@ -9198,7 +9245,7 @@ var DocsLayout = ({
|
|
9198
9245
|
};
|
9199
9246
|
}, [props.children]);
|
9200
9247
|
let drawerSizeCondition = drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize];
|
9201
|
-
return /* @__PURE__ */
|
9248
|
+
return /* @__PURE__ */ React73.createElement("div", { className: "hawa-fixed" }, /* @__PURE__ */ React73.createElement(
|
9202
9249
|
"div",
|
9203
9250
|
{
|
9204
9251
|
className: cn(
|
@@ -9206,7 +9253,7 @@ var DocsLayout = ({
|
|
9206
9253
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
9207
9254
|
)
|
9208
9255
|
},
|
9209
|
-
size > 600 ? /* @__PURE__ */
|
9256
|
+
size > 600 ? /* @__PURE__ */ React73.createElement("div", { onClick: props.onLogoClick, dir: direction }, /* @__PURE__ */ React73.createElement(
|
9210
9257
|
"img",
|
9211
9258
|
{
|
9212
9259
|
className: cn(
|
@@ -9217,18 +9264,18 @@ var DocsLayout = ({
|
|
9217
9264
|
}
|
9218
9265
|
)) : (
|
9219
9266
|
// Mobile Drawer Menu Button
|
9220
|
-
/* @__PURE__ */
|
9267
|
+
/* @__PURE__ */ React73.createElement(
|
9221
9268
|
"div",
|
9222
9269
|
{
|
9223
9270
|
dir: direction,
|
9224
9271
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
9225
9272
|
},
|
9226
|
-
/* @__PURE__ */
|
9273
|
+
/* @__PURE__ */ React73.createElement(Sheet, null, /* @__PURE__ */ React73.createElement(SheetTrigger, null, " ", /* @__PURE__ */ React73.createElement(
|
9227
9274
|
"div",
|
9228
9275
|
{
|
9229
9276
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
9230
9277
|
},
|
9231
|
-
/* @__PURE__ */
|
9278
|
+
/* @__PURE__ */ React73.createElement(
|
9232
9279
|
"svg",
|
9233
9280
|
{
|
9234
9281
|
"aria-label": "Menu Icon",
|
@@ -9240,7 +9287,7 @@ var DocsLayout = ({
|
|
9240
9287
|
height: "1.6em",
|
9241
9288
|
width: "1.6em"
|
9242
9289
|
},
|
9243
|
-
/* @__PURE__ */
|
9290
|
+
/* @__PURE__ */ React73.createElement(
|
9244
9291
|
"path",
|
9245
9292
|
{
|
9246
9293
|
fillRule: "evenodd",
|
@@ -9249,17 +9296,17 @@ var DocsLayout = ({
|
|
9249
9296
|
}
|
9250
9297
|
)
|
9251
9298
|
)
|
9252
|
-
)), /* @__PURE__ */
|
9299
|
+
)), /* @__PURE__ */ React73.createElement(
|
9253
9300
|
SheetContent,
|
9254
9301
|
{
|
9255
9302
|
side: isRTL ? "right" : "left",
|
9256
9303
|
className: "hawa-pt-10"
|
9257
9304
|
},
|
9258
|
-
/* @__PURE__ */
|
9305
|
+
/* @__PURE__ */ React73.createElement(DocsSidebar, { direction, pages: pages || [] })
|
9259
9306
|
))
|
9260
9307
|
)
|
9261
9308
|
),
|
9262
|
-
/* @__PURE__ */
|
9309
|
+
/* @__PURE__ */ React73.createElement(
|
9263
9310
|
"div",
|
9264
9311
|
{
|
9265
9312
|
className: cn(
|
@@ -9267,9 +9314,9 @@ var DocsLayout = ({
|
|
9267
9314
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
9268
9315
|
)
|
9269
9316
|
},
|
9270
|
-
/* @__PURE__ */
|
9317
|
+
/* @__PURE__ */ React73.createElement(Button, { variant: "ghost", size: "smallIcon" }, /* @__PURE__ */ React73.createElement(Logos.github, { className: "hawa-icon" }))
|
9271
9318
|
)
|
9272
|
-
), /* @__PURE__ */
|
9319
|
+
), /* @__PURE__ */ React73.createElement(
|
9273
9320
|
"div",
|
9274
9321
|
{
|
9275
9322
|
className: cn(
|
@@ -9292,7 +9339,7 @@ var DocsLayout = ({
|
|
9292
9339
|
},
|
9293
9340
|
ref
|
9294
9341
|
},
|
9295
|
-
/* @__PURE__ */
|
9342
|
+
/* @__PURE__ */ React73.createElement(
|
9296
9343
|
DocsSidebar,
|
9297
9344
|
{
|
9298
9345
|
direction,
|
@@ -9300,7 +9347,7 @@ var DocsLayout = ({
|
|
9300
9347
|
currentPage
|
9301
9348
|
}
|
9302
9349
|
)
|
9303
|
-
), /* @__PURE__ */
|
9350
|
+
), /* @__PURE__ */ React73.createElement(
|
9304
9351
|
"div",
|
9305
9352
|
{
|
9306
9353
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all ",
|
@@ -9322,10 +9369,10 @@ var DocsLayout = ({
|
|
9322
9369
|
};
|
9323
9370
|
|
9324
9371
|
// blocks/auth/AuthButtons.tsx
|
9325
|
-
import
|
9372
|
+
import React74 from "react";
|
9326
9373
|
var AuthButtons = (props) => {
|
9327
9374
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
9328
|
-
return /* @__PURE__ */
|
9375
|
+
return /* @__PURE__ */ React74.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, props.viaMetamask && /* @__PURE__ */ React74.createElement(
|
9329
9376
|
Button,
|
9330
9377
|
{
|
9331
9378
|
disabled: props.isMetamaskLoading,
|
@@ -9333,9 +9380,9 @@ var AuthButtons = (props) => {
|
|
9333
9380
|
variant: "outline",
|
9334
9381
|
onClick: props.handleMetamask
|
9335
9382
|
},
|
9336
|
-
props.isMetamaskLoading ? /* @__PURE__ */
|
9383
|
+
props.isMetamaskLoading ? /* @__PURE__ */ React74.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React74.createElement(Logos.metamask, { className: "hawa-h-6" }),
|
9337
9384
|
(_b = (_a = props.texts) == null ? void 0 : _a.continueWithMetamask) != null ? _b : "Connect Metamask"
|
9338
|
-
), props.viaNafath && /* @__PURE__ */
|
9385
|
+
), props.viaNafath && /* @__PURE__ */ React74.createElement(
|
9339
9386
|
Button,
|
9340
9387
|
{
|
9341
9388
|
disabled: props.isNafathLoading,
|
@@ -9343,9 +9390,9 @@ var AuthButtons = (props) => {
|
|
9343
9390
|
variant: "outline",
|
9344
9391
|
onClick: props.handleNafath
|
9345
9392
|
},
|
9346
|
-
props.isNafathLoading ? /* @__PURE__ */
|
9393
|
+
props.isNafathLoading ? /* @__PURE__ */ React74.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React74.createElement(Logos.nafath, { className: "hawa-h-4" }),
|
9347
9394
|
(_d = (_c = props.texts) == null ? void 0 : _c.continueWithNafath) != null ? _d : "Continue With Nafath"
|
9348
|
-
), props.viaGoogle && /* @__PURE__ */
|
9395
|
+
), props.viaGoogle && /* @__PURE__ */ React74.createElement(
|
9349
9396
|
Button,
|
9350
9397
|
{
|
9351
9398
|
disabled: props.isGoogleLoading,
|
@@ -9353,9 +9400,9 @@ var AuthButtons = (props) => {
|
|
9353
9400
|
variant: "outline",
|
9354
9401
|
onClick: props.handleGoogle
|
9355
9402
|
},
|
9356
|
-
props.isGoogleLoading ? /* @__PURE__ */
|
9403
|
+
props.isGoogleLoading ? /* @__PURE__ */ React74.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React74.createElement(Logos.google, { className: "hawa-icon" }),
|
9357
9404
|
(_f = (_e = props.texts) == null ? void 0 : _e.continueWithGoogle) != null ? _f : "Continue With Google"
|
9358
|
-
), props.viaGithub && /* @__PURE__ */
|
9405
|
+
), props.viaGithub && /* @__PURE__ */ React74.createElement(
|
9359
9406
|
Button,
|
9360
9407
|
{
|
9361
9408
|
disabled: props.isGithubLoading,
|
@@ -9363,9 +9410,9 @@ var AuthButtons = (props) => {
|
|
9363
9410
|
variant: "outline",
|
9364
9411
|
onClick: props.handleGithub
|
9365
9412
|
},
|
9366
|
-
props.isGithubLoading ? /* @__PURE__ */
|
9413
|
+
props.isGithubLoading ? /* @__PURE__ */ React74.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React74.createElement(Logos.github, { className: "hawa-icon" }),
|
9367
9414
|
(_h = (_g = props.texts) == null ? void 0 : _g.continueWithGithub) != null ? _h : "Continue With Github"
|
9368
|
-
), props.viaTwitter && /* @__PURE__ */
|
9415
|
+
), props.viaTwitter && /* @__PURE__ */ React74.createElement(
|
9369
9416
|
Button,
|
9370
9417
|
{
|
9371
9418
|
disabled: props.isTwitterLoading,
|
@@ -9373,9 +9420,9 @@ var AuthButtons = (props) => {
|
|
9373
9420
|
variant: "outline",
|
9374
9421
|
onClick: props.handleTwitter
|
9375
9422
|
},
|
9376
|
-
props.isTwitterLoading ? /* @__PURE__ */
|
9423
|
+
props.isTwitterLoading ? /* @__PURE__ */ React74.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React74.createElement(Logos.twitter, { className: "hawa-icon" }),
|
9377
9424
|
(_j = (_i = props.texts) == null ? void 0 : _i.continueWithTwitter) != null ? _j : "Continue With Twitter"
|
9378
|
-
), props.viaApple && /* @__PURE__ */
|
9425
|
+
), props.viaApple && /* @__PURE__ */ React74.createElement(
|
9379
9426
|
Button,
|
9380
9427
|
{
|
9381
9428
|
disabled: props.isAppleLoading,
|
@@ -9383,9 +9430,9 @@ var AuthButtons = (props) => {
|
|
9383
9430
|
variant: "outline",
|
9384
9431
|
onClick: props.handleApple
|
9385
9432
|
},
|
9386
|
-
props.isAppleLoading ? /* @__PURE__ */
|
9433
|
+
props.isAppleLoading ? /* @__PURE__ */ React74.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React74.createElement(Logos.apple, { className: "hawa-icon" }),
|
9387
9434
|
(_l = (_k = props.texts) == null ? void 0 : _k.continueWithApple) != null ? _l : "Continue With Apple"
|
9388
|
-
), props.viaMicrosoft && /* @__PURE__ */
|
9435
|
+
), props.viaMicrosoft && /* @__PURE__ */ React74.createElement(
|
9389
9436
|
Button,
|
9390
9437
|
{
|
9391
9438
|
disabled: props.isMicrosoftLoading,
|
@@ -9393,9 +9440,9 @@ var AuthButtons = (props) => {
|
|
9393
9440
|
variant: "outline",
|
9394
9441
|
onClick: props.handleMicrosoft
|
9395
9442
|
},
|
9396
|
-
props.isMicrosoftLoading ? /* @__PURE__ */
|
9443
|
+
props.isMicrosoftLoading ? /* @__PURE__ */ React74.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React74.createElement(Logos.microsoft, { className: "hawa-icon" }),
|
9397
9444
|
(_n = (_m = props.texts) == null ? void 0 : _m.continueWithMicrosoft) != null ? _n : "Continue With Microsoft"
|
9398
|
-
), props.viaEmail && /* @__PURE__ */
|
9445
|
+
), props.viaEmail && /* @__PURE__ */ React74.createElement(
|
9399
9446
|
Button,
|
9400
9447
|
{
|
9401
9448
|
disabled: props.isEmailLoading,
|
@@ -9403,9 +9450,9 @@ var AuthButtons = (props) => {
|
|
9403
9450
|
variant: "outline",
|
9404
9451
|
onClick: props.handleEmail
|
9405
9452
|
},
|
9406
|
-
props.isEmailLoading ? /* @__PURE__ */
|
9453
|
+
props.isEmailLoading ? /* @__PURE__ */ React74.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React74.createElement(Logos.mail, { className: "hawa-icon" }),
|
9407
9454
|
(_p = (_o = props.texts) == null ? void 0 : _o.continueWithEmail) != null ? _p : "Continue With Email"
|
9408
|
-
), props.viaPhone && /* @__PURE__ */
|
9455
|
+
), props.viaPhone && /* @__PURE__ */ React74.createElement(
|
9409
9456
|
Button,
|
9410
9457
|
{
|
9411
9458
|
disabled: props.isPhoneLoading,
|
@@ -9413,13 +9460,13 @@ var AuthButtons = (props) => {
|
|
9413
9460
|
variant: "outline",
|
9414
9461
|
onClick: props.handlePhone
|
9415
9462
|
},
|
9416
|
-
props.isPhoneLoading ? /* @__PURE__ */
|
9463
|
+
props.isPhoneLoading ? /* @__PURE__ */ React74.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React74.createElement(Logos.phone, { className: "hawa-icon" }),
|
9417
9464
|
(_r = (_q = props.texts) == null ? void 0 : _q.continueWithPhone) != null ? _r : "Continue With Phone"
|
9418
9465
|
));
|
9419
9466
|
};
|
9420
9467
|
|
9421
9468
|
// blocks/auth/LoginForm.tsx
|
9422
|
-
import
|
9469
|
+
import React75, { useState as useState26 } from "react";
|
9423
9470
|
import { Controller, useForm } from "react-hook-form";
|
9424
9471
|
import { zodResolver } from "@hookform/resolvers/zod";
|
9425
9472
|
import { parsePhoneNumber } from "libphonenumber-js";
|
@@ -9493,14 +9540,14 @@ var LoginForm = ({
|
|
9493
9540
|
const renderFields = () => {
|
9494
9541
|
switch (loginType) {
|
9495
9542
|
case "email":
|
9496
|
-
return /* @__PURE__ */
|
9543
|
+
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, /* @__PURE__ */ React75.createElement(
|
9497
9544
|
Controller,
|
9498
9545
|
{
|
9499
9546
|
control,
|
9500
9547
|
name: "email",
|
9501
9548
|
render: ({ field }) => {
|
9502
9549
|
var _a2, _b2, _c2;
|
9503
|
-
return /* @__PURE__ */
|
9550
|
+
return /* @__PURE__ */ React75.createElement(
|
9504
9551
|
Input,
|
9505
9552
|
{
|
9506
9553
|
inputProps: {
|
@@ -9517,27 +9564,27 @@ var LoginForm = ({
|
|
9517
9564
|
);
|
9518
9565
|
}
|
9519
9566
|
}
|
9520
|
-
), /* @__PURE__ */
|
9567
|
+
), /* @__PURE__ */ React75.createElement("div", null, /* @__PURE__ */ React75.createElement(
|
9521
9568
|
Controller,
|
9522
9569
|
{
|
9523
9570
|
control,
|
9524
9571
|
name: "password",
|
9525
9572
|
render: ({ field }) => {
|
9526
9573
|
var _a2, _b2, _c2;
|
9527
|
-
return /* @__PURE__ */
|
9574
|
+
return /* @__PURE__ */ React75.createElement(
|
9528
9575
|
Input,
|
9529
9576
|
{
|
9530
9577
|
width: "full",
|
9531
9578
|
autoComplete: "current-password",
|
9532
9579
|
type: passwordVisible ? "text" : "password",
|
9533
9580
|
label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
|
9534
|
-
endIcon: /* @__PURE__ */
|
9581
|
+
endIcon: /* @__PURE__ */ React75.createElement(
|
9535
9582
|
"div",
|
9536
9583
|
{
|
9537
9584
|
className: "hawa-cursor-pointer",
|
9538
9585
|
onClick: () => setPasswordVisible(!passwordVisible)
|
9539
9586
|
},
|
9540
|
-
passwordVisible ? /* @__PURE__ */
|
9587
|
+
passwordVisible ? /* @__PURE__ */ React75.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React75.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" })
|
9541
9588
|
),
|
9542
9589
|
placeholder: ((_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder) || "Enter your password",
|
9543
9590
|
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
@@ -9546,7 +9593,7 @@ var LoginForm = ({
|
|
9546
9593
|
);
|
9547
9594
|
}
|
9548
9595
|
}
|
9549
|
-
), props.withResetPassword && /* @__PURE__ */
|
9596
|
+
), props.withResetPassword && /* @__PURE__ */ React75.createElement(
|
9550
9597
|
"div",
|
9551
9598
|
{
|
9552
9599
|
onClick: props.onForgotPassword,
|
@@ -9555,14 +9602,14 @@ var LoginForm = ({
|
|
9555
9602
|
(texts == null ? void 0 : texts.forgotPassword) || "Forgot Password?"
|
9556
9603
|
)));
|
9557
9604
|
case "username":
|
9558
|
-
return /* @__PURE__ */
|
9605
|
+
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, /* @__PURE__ */ React75.createElement(
|
9559
9606
|
Controller,
|
9560
9607
|
{
|
9561
9608
|
control,
|
9562
9609
|
name: "username",
|
9563
9610
|
render: ({ field }) => {
|
9564
9611
|
var _a2, _b2, _c2;
|
9565
|
-
return /* @__PURE__ */
|
9612
|
+
return /* @__PURE__ */ React75.createElement(
|
9566
9613
|
Input,
|
9567
9614
|
{
|
9568
9615
|
width: "full",
|
@@ -9575,27 +9622,27 @@ var LoginForm = ({
|
|
9575
9622
|
);
|
9576
9623
|
}
|
9577
9624
|
}
|
9578
|
-
), /* @__PURE__ */
|
9625
|
+
), /* @__PURE__ */ React75.createElement("div", null, /* @__PURE__ */ React75.createElement(
|
9579
9626
|
Controller,
|
9580
9627
|
{
|
9581
9628
|
control,
|
9582
9629
|
name: "password",
|
9583
9630
|
render: ({ field }) => {
|
9584
9631
|
var _a2, _b2, _c2;
|
9585
|
-
return /* @__PURE__ */
|
9632
|
+
return /* @__PURE__ */ React75.createElement(
|
9586
9633
|
Input,
|
9587
9634
|
{
|
9588
9635
|
width: "full",
|
9589
9636
|
autoComplete: "current-password",
|
9590
9637
|
type: passwordVisible ? "text" : "password",
|
9591
9638
|
label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
|
9592
|
-
endIcon: /* @__PURE__ */
|
9639
|
+
endIcon: /* @__PURE__ */ React75.createElement(
|
9593
9640
|
"div",
|
9594
9641
|
{
|
9595
9642
|
className: "hawa-cursor-pointer",
|
9596
9643
|
onClick: () => setPasswordVisible(!passwordVisible)
|
9597
9644
|
},
|
9598
|
-
passwordVisible ? /* @__PURE__ */
|
9645
|
+
passwordVisible ? /* @__PURE__ */ React75.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React75.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" })
|
9599
9646
|
),
|
9600
9647
|
placeholder: ((_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder) || "Enter your password",
|
9601
9648
|
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
@@ -9604,7 +9651,7 @@ var LoginForm = ({
|
|
9604
9651
|
);
|
9605
9652
|
}
|
9606
9653
|
}
|
9607
|
-
), props.withResetPassword && /* @__PURE__ */
|
9654
|
+
), props.withResetPassword && /* @__PURE__ */ React75.createElement(
|
9608
9655
|
"div",
|
9609
9656
|
{
|
9610
9657
|
onClick: props.onForgotPassword,
|
@@ -9613,14 +9660,14 @@ var LoginForm = ({
|
|
9613
9660
|
(texts == null ? void 0 : texts.forgotPassword) || "Forgot Password?"
|
9614
9661
|
)));
|
9615
9662
|
case "phone":
|
9616
|
-
return /* @__PURE__ */
|
9663
|
+
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, /* @__PURE__ */ React75.createElement(
|
9617
9664
|
Controller,
|
9618
9665
|
{
|
9619
9666
|
control,
|
9620
9667
|
name: "phone",
|
9621
9668
|
render: ({ field }) => {
|
9622
9669
|
var _a2, _b2;
|
9623
|
-
return /* @__PURE__ */
|
9670
|
+
return /* @__PURE__ */ React75.createElement(
|
9624
9671
|
PhoneInput,
|
9625
9672
|
{
|
9626
9673
|
label: ((_a2 = texts == null ? void 0 : texts.phone) == null ? void 0 : _a2.label) || "Phone Number",
|
@@ -9633,14 +9680,14 @@ var LoginForm = ({
|
|
9633
9680
|
}
|
9634
9681
|
));
|
9635
9682
|
case "link":
|
9636
|
-
return /* @__PURE__ */
|
9683
|
+
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, /* @__PURE__ */ React75.createElement(
|
9637
9684
|
Controller,
|
9638
9685
|
{
|
9639
9686
|
control,
|
9640
9687
|
name: "email",
|
9641
9688
|
render: ({ field }) => {
|
9642
9689
|
var _a2, _b2, _c2;
|
9643
|
-
return /* @__PURE__ */
|
9690
|
+
return /* @__PURE__ */ React75.createElement(
|
9644
9691
|
Input,
|
9645
9692
|
{
|
9646
9693
|
width: "full",
|
@@ -9658,7 +9705,7 @@ var LoginForm = ({
|
|
9658
9705
|
break;
|
9659
9706
|
}
|
9660
9707
|
};
|
9661
|
-
return /* @__PURE__ */
|
9708
|
+
return /* @__PURE__ */ React75.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React75.createElement(
|
9662
9709
|
Card,
|
9663
9710
|
{
|
9664
9711
|
dir: props.direction,
|
@@ -9666,7 +9713,7 @@ var LoginForm = ({
|
|
9666
9713
|
props.cardless && "!hawa-border-none !hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
|
9667
9714
|
)
|
9668
9715
|
},
|
9669
|
-
/* @__PURE__ */
|
9716
|
+
/* @__PURE__ */ React75.createElement(CardContent, { headless: true, noPadding: props.cardless }, props.showError && /* @__PURE__ */ React75.createElement(
|
9670
9717
|
Alert,
|
9671
9718
|
{
|
9672
9719
|
direction: props.direction,
|
@@ -9674,7 +9721,7 @@ var LoginForm = ({
|
|
9674
9721
|
text: props.errorText,
|
9675
9722
|
severity: "error"
|
9676
9723
|
}
|
9677
|
-
), /* @__PURE__ */
|
9724
|
+
), /* @__PURE__ */ React75.createElement(
|
9678
9725
|
"form",
|
9679
9726
|
{
|
9680
9727
|
noValidate: true,
|
@@ -9688,7 +9735,7 @@ var LoginForm = ({
|
|
9688
9735
|
})
|
9689
9736
|
},
|
9690
9737
|
renderFields(),
|
9691
|
-
/* @__PURE__ */
|
9738
|
+
/* @__PURE__ */ React75.createElement(
|
9692
9739
|
Button,
|
9693
9740
|
{
|
9694
9741
|
className: "hawa-mt-0 hawa-w-full",
|
@@ -9699,7 +9746,7 @@ var LoginForm = ({
|
|
9699
9746
|
(texts == null ? void 0 : texts.loginText) || "Login"
|
9700
9747
|
),
|
9701
9748
|
props.additionalButtons,
|
9702
|
-
props.allowRegister && /* @__PURE__ */
|
9749
|
+
props.allowRegister && /* @__PURE__ */ React75.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__ */ React75.createElement(
|
9703
9750
|
"span",
|
9704
9751
|
{
|
9705
9752
|
onClick: props.onRouteToRegister,
|
@@ -9708,7 +9755,7 @@ var LoginForm = ({
|
|
9708
9755
|
(texts == null ? void 0 : texts.createAccount) || "Create Account"
|
9709
9756
|
))
|
9710
9757
|
)),
|
9711
|
-
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
9758
|
+
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React75.createElement(
|
9712
9759
|
CardFooter,
|
9713
9760
|
{
|
9714
9761
|
noPadding: props.cardless,
|
@@ -9716,7 +9763,7 @@ var LoginForm = ({
|
|
9716
9763
|
props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
|
9717
9764
|
)
|
9718
9765
|
},
|
9719
|
-
/* @__PURE__ */
|
9766
|
+
/* @__PURE__ */ React75.createElement(
|
9720
9767
|
AuthButtons,
|
9721
9768
|
{
|
9722
9769
|
texts: thirdPartyAuthTexts,
|
@@ -9736,7 +9783,7 @@ var LoginForm = ({
|
|
9736
9783
|
};
|
9737
9784
|
|
9738
9785
|
// blocks/auth/RegisterForm.tsx
|
9739
|
-
import
|
9786
|
+
import React76, { useState as useState27 } from "react";
|
9740
9787
|
import { Controller as Controller2, FormProvider, useForm as useForm2 } from "react-hook-form";
|
9741
9788
|
import { zodResolver as zodResolver2 } from "@hookform/resolvers/zod";
|
9742
9789
|
import * as z2 from "zod";
|
@@ -9813,7 +9860,7 @@ var RegisterForm = ({
|
|
9813
9860
|
const { handleSubmit, control, formState } = useForm2({
|
9814
9861
|
resolver: zodResolver2(formSchema)
|
9815
9862
|
});
|
9816
|
-
return /* @__PURE__ */
|
9863
|
+
return /* @__PURE__ */ React76.createElement(
|
9817
9864
|
"div",
|
9818
9865
|
{
|
9819
9866
|
className: cn(
|
@@ -9821,7 +9868,7 @@ var RegisterForm = ({
|
|
9821
9868
|
(_g = props.classNames) == null ? void 0 : _g.root
|
9822
9869
|
)
|
9823
9870
|
},
|
9824
|
-
/* @__PURE__ */
|
9871
|
+
/* @__PURE__ */ React76.createElement(
|
9825
9872
|
Card,
|
9826
9873
|
{
|
9827
9874
|
dir: props.direction,
|
@@ -9830,7 +9877,7 @@ var RegisterForm = ({
|
|
9830
9877
|
props.cardless && "hawa-border-none hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
|
9831
9878
|
)
|
9832
9879
|
},
|
9833
|
-
/* @__PURE__ */
|
9880
|
+
/* @__PURE__ */ React76.createElement(CardContent, { headless: true, noPadding: props.cardless }, /* @__PURE__ */ React76.createElement("div", null, props.showError && /* @__PURE__ */ React76.createElement(
|
9834
9881
|
Alert,
|
9835
9882
|
{
|
9836
9883
|
direction: props.direction,
|
@@ -9843,7 +9890,7 @@ var RegisterForm = ({
|
|
9843
9890
|
}
|
9844
9891
|
}
|
9845
9892
|
}
|
9846
|
-
), /* @__PURE__ */
|
9893
|
+
), /* @__PURE__ */ React76.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React76.createElement(
|
9847
9894
|
"form",
|
9848
9895
|
{
|
9849
9896
|
noValidate: true,
|
@@ -9858,9 +9905,9 @@ var RegisterForm = ({
|
|
9858
9905
|
}),
|
9859
9906
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
9860
9907
|
},
|
9861
|
-
/* @__PURE__ */
|
9908
|
+
/* @__PURE__ */ React76.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, registerFields.map((fld, i) => {
|
9862
9909
|
if (fld === "fullname") {
|
9863
|
-
return /* @__PURE__ */
|
9910
|
+
return /* @__PURE__ */ React76.createElement(
|
9864
9911
|
Controller2,
|
9865
9912
|
{
|
9866
9913
|
key: i,
|
@@ -9868,7 +9915,7 @@ var RegisterForm = ({
|
|
9868
9915
|
name: "fullName",
|
9869
9916
|
render: ({ field }) => {
|
9870
9917
|
var _a2, _b2, _c2;
|
9871
|
-
return /* @__PURE__ */
|
9918
|
+
return /* @__PURE__ */ React76.createElement(
|
9872
9919
|
Input,
|
9873
9920
|
{
|
9874
9921
|
width: "full",
|
@@ -9883,7 +9930,7 @@ var RegisterForm = ({
|
|
9883
9930
|
);
|
9884
9931
|
}
|
9885
9932
|
if (fld === "email") {
|
9886
|
-
return /* @__PURE__ */
|
9933
|
+
return /* @__PURE__ */ React76.createElement(
|
9887
9934
|
Controller2,
|
9888
9935
|
{
|
9889
9936
|
key: i,
|
@@ -9891,7 +9938,7 @@ var RegisterForm = ({
|
|
9891
9938
|
name: "email",
|
9892
9939
|
render: ({ field }) => {
|
9893
9940
|
var _a2, _b2, _c2;
|
9894
|
-
return /* @__PURE__ */
|
9941
|
+
return /* @__PURE__ */ React76.createElement(
|
9895
9942
|
Input,
|
9896
9943
|
{
|
9897
9944
|
dir: "ltr",
|
@@ -9911,7 +9958,7 @@ var RegisterForm = ({
|
|
9911
9958
|
);
|
9912
9959
|
}
|
9913
9960
|
if (fld === "username") {
|
9914
|
-
return /* @__PURE__ */
|
9961
|
+
return /* @__PURE__ */ React76.createElement(
|
9915
9962
|
Controller2,
|
9916
9963
|
{
|
9917
9964
|
key: i,
|
@@ -9919,7 +9966,7 @@ var RegisterForm = ({
|
|
9919
9966
|
name: "username",
|
9920
9967
|
render: ({ field }) => {
|
9921
9968
|
var _a2, _b2, _c2, _d2;
|
9922
|
-
return /* @__PURE__ */
|
9969
|
+
return /* @__PURE__ */ React76.createElement(
|
9923
9970
|
Input,
|
9924
9971
|
{
|
9925
9972
|
width: "full",
|
@@ -9938,25 +9985,25 @@ var RegisterForm = ({
|
|
9938
9985
|
);
|
9939
9986
|
}
|
9940
9987
|
})),
|
9941
|
-
/* @__PURE__ */
|
9988
|
+
/* @__PURE__ */ React76.createElement(
|
9942
9989
|
Controller2,
|
9943
9990
|
{
|
9944
9991
|
control,
|
9945
9992
|
name: "password",
|
9946
9993
|
render: ({ field }) => {
|
9947
9994
|
var _a2, _b2, _c2;
|
9948
|
-
return /* @__PURE__ */
|
9995
|
+
return /* @__PURE__ */ React76.createElement(
|
9949
9996
|
Input,
|
9950
9997
|
{
|
9951
9998
|
width: "full",
|
9952
9999
|
type: passwordVisible ? "text" : "password",
|
9953
|
-
endIcon: /* @__PURE__ */
|
10000
|
+
endIcon: /* @__PURE__ */ React76.createElement(
|
9954
10001
|
"div",
|
9955
10002
|
{
|
9956
10003
|
className: "hawa-cursor-pointer",
|
9957
10004
|
onClick: () => setPasswordVisible(!passwordVisible)
|
9958
10005
|
},
|
9959
|
-
passwordVisible ? /* @__PURE__ */
|
10006
|
+
passwordVisible ? /* @__PURE__ */ React76.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React76.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
9960
10007
|
" "
|
9961
10008
|
),
|
9962
10009
|
autoComplete: "new-password",
|
@@ -9969,14 +10016,14 @@ var RegisterForm = ({
|
|
9969
10016
|
}
|
9970
10017
|
}
|
9971
10018
|
),
|
9972
|
-
/* @__PURE__ */
|
10019
|
+
/* @__PURE__ */ React76.createElement(
|
9973
10020
|
Controller2,
|
9974
10021
|
{
|
9975
10022
|
control,
|
9976
10023
|
name: "confirm_password",
|
9977
10024
|
render: ({ field }) => {
|
9978
10025
|
var _a2, _b2, _c2;
|
9979
|
-
return /* @__PURE__ */
|
10026
|
+
return /* @__PURE__ */ React76.createElement(
|
9980
10027
|
Input,
|
9981
10028
|
{
|
9982
10029
|
width: "full",
|
@@ -9992,14 +10039,14 @@ var RegisterForm = ({
|
|
9992
10039
|
}
|
9993
10040
|
),
|
9994
10041
|
props.additionalInputs,
|
9995
|
-
props.showRefCode && /* @__PURE__ */
|
10042
|
+
props.showRefCode && /* @__PURE__ */ React76.createElement(
|
9996
10043
|
Controller2,
|
9997
10044
|
{
|
9998
10045
|
control,
|
9999
10046
|
name: "refCode",
|
10000
10047
|
render: ({ field }) => {
|
10001
10048
|
var _a2;
|
10002
|
-
return /* @__PURE__ */
|
10049
|
+
return /* @__PURE__ */ React76.createElement(
|
10003
10050
|
Input,
|
10004
10051
|
{
|
10005
10052
|
width: "full",
|
@@ -10012,14 +10059,14 @@ var RegisterForm = ({
|
|
10012
10059
|
}
|
10013
10060
|
}
|
10014
10061
|
),
|
10015
|
-
props.showUserSource && /* @__PURE__ */
|
10062
|
+
props.showUserSource && /* @__PURE__ */ React76.createElement(
|
10016
10063
|
Controller2,
|
10017
10064
|
{
|
10018
10065
|
control,
|
10019
10066
|
name: "reference",
|
10020
10067
|
render: ({ field }) => {
|
10021
10068
|
var _a2, _b2;
|
10022
|
-
return /* @__PURE__ */
|
10069
|
+
return /* @__PURE__ */ React76.createElement(
|
10023
10070
|
Select,
|
10024
10071
|
{
|
10025
10072
|
label: ((_a2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _a2.label) || "How did you learn about us?",
|
@@ -10037,20 +10084,20 @@ var RegisterForm = ({
|
|
10037
10084
|
}
|
10038
10085
|
}
|
10039
10086
|
),
|
10040
|
-
showTermsOption || showNewsletterOption ? /* @__PURE__ */
|
10087
|
+
showTermsOption || showNewsletterOption ? /* @__PURE__ */ React76.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-3 hawa-mb-2" }, showTermsOption && /* @__PURE__ */ React76.createElement(
|
10041
10088
|
Controller2,
|
10042
10089
|
{
|
10043
10090
|
control,
|
10044
10091
|
name: "terms_accepted",
|
10045
10092
|
render: ({ field }) => {
|
10046
10093
|
var _a2, _b2;
|
10047
|
-
return /* @__PURE__ */
|
10094
|
+
return /* @__PURE__ */ React76.createElement(
|
10048
10095
|
Checkbox,
|
10049
10096
|
{
|
10050
10097
|
id: "terms_accepted",
|
10051
10098
|
helperText: (_b2 = (_a2 = formState.errors.terms_accepted) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString(),
|
10052
10099
|
onCheckedChange: (e) => field.onChange(e),
|
10053
|
-
label: /* @__PURE__ */
|
10100
|
+
label: /* @__PURE__ */ React76.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__ */ React76.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React76.createElement(
|
10054
10101
|
"span",
|
10055
10102
|
{
|
10056
10103
|
onClick: (e) => {
|
@@ -10067,12 +10114,12 @@ var RegisterForm = ({
|
|
10067
10114
|
);
|
10068
10115
|
}
|
10069
10116
|
}
|
10070
|
-
), showNewsletterOption && /* @__PURE__ */
|
10117
|
+
), showNewsletterOption && /* @__PURE__ */ React76.createElement(
|
10071
10118
|
Controller2,
|
10072
10119
|
{
|
10073
10120
|
control,
|
10074
10121
|
name: "newsletter_accepted",
|
10075
|
-
render: ({ field }) => /* @__PURE__ */
|
10122
|
+
render: ({ field }) => /* @__PURE__ */ React76.createElement(
|
10076
10123
|
Checkbox,
|
10077
10124
|
{
|
10078
10125
|
id: "newsletter_accepted",
|
@@ -10082,7 +10129,7 @@ var RegisterForm = ({
|
|
10082
10129
|
)
|
10083
10130
|
}
|
10084
10131
|
)) : null,
|
10085
|
-
/* @__PURE__ */
|
10132
|
+
/* @__PURE__ */ React76.createElement(
|
10086
10133
|
Button,
|
10087
10134
|
{
|
10088
10135
|
className: " hawa-w-full",
|
@@ -10093,8 +10140,8 @@ var RegisterForm = ({
|
|
10093
10140
|
(texts == null ? void 0 : texts.registerText) || "Register"
|
10094
10141
|
),
|
10095
10142
|
props.additionalButtons
|
10096
|
-
)), props.onRouteToLogin && /* @__PURE__ */
|
10097
|
-
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
10143
|
+
)), props.onRouteToLogin && /* @__PURE__ */ React76.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__ */ React76.createElement("span", null, (texts == null ? void 0 : texts.existingUserText) || "Already have an account?"), /* @__PURE__ */ React76.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))),
|
10144
|
+
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React76.createElement(
|
10098
10145
|
CardFooter,
|
10099
10146
|
{
|
10100
10147
|
noPadding: props.cardless,
|
@@ -10102,7 +10149,7 @@ var RegisterForm = ({
|
|
10102
10149
|
props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
|
10103
10150
|
)
|
10104
10151
|
},
|
10105
|
-
/* @__PURE__ */
|
10152
|
+
/* @__PURE__ */ React76.createElement(
|
10106
10153
|
AuthButtons,
|
10107
10154
|
{
|
10108
10155
|
texts: thirdPartyAuthTexts,
|
@@ -10123,7 +10170,7 @@ var RegisterForm = ({
|
|
10123
10170
|
};
|
10124
10171
|
|
10125
10172
|
// blocks/auth/AppLanding.tsx
|
10126
|
-
import
|
10173
|
+
import React77 from "react";
|
10127
10174
|
var AppLanding = ({ texts, ...props }) => {
|
10128
10175
|
const thirdPartyAuthTexts = {
|
10129
10176
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
@@ -10134,7 +10181,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
10134
10181
|
continueWithEmail: texts == null ? void 0 : texts.continueWithEmail,
|
10135
10182
|
continueWithPhone: texts == null ? void 0 : texts.continueWithPhone
|
10136
10183
|
};
|
10137
|
-
return /* @__PURE__ */
|
10184
|
+
return /* @__PURE__ */ React77.createElement("div", { dir: props.direction }, /* @__PURE__ */ React77.createElement(Card, null, /* @__PURE__ */ React77.createElement(CardContent, { headless: true, className: "hawa-flex hawa-flex-col hawa-gap-6" }, /* @__PURE__ */ React77.createElement(
|
10138
10185
|
AuthButtons,
|
10139
10186
|
{
|
10140
10187
|
texts: thirdPartyAuthTexts,
|
@@ -10153,7 +10200,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
10153
10200
|
handleEmail: props.handleEmail,
|
10154
10201
|
handlePhone: props.handlePhone
|
10155
10202
|
}
|
10156
|
-
), props.allowRegister && /* @__PURE__ */
|
10203
|
+
), props.allowRegister && /* @__PURE__ */ React77.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__ */ React77.createElement(
|
10157
10204
|
"span",
|
10158
10205
|
{
|
10159
10206
|
onClick: props.handleRouteToRegister,
|
@@ -10164,9 +10211,9 @@ var AppLanding = ({ texts, ...props }) => {
|
|
10164
10211
|
};
|
10165
10212
|
|
10166
10213
|
// blocks/auth/CheckEmail.tsx
|
10167
|
-
import
|
10214
|
+
import React78 from "react";
|
10168
10215
|
var CheckEmail = ({ texts, handleResend }) => {
|
10169
|
-
return /* @__PURE__ */
|
10216
|
+
return /* @__PURE__ */ React78.createElement(Card, null, /* @__PURE__ */ React78.createElement(CardContent, { headless: true }, /* @__PURE__ */ React78.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ React78.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__ */ React78.createElement(
|
10170
10217
|
"svg",
|
10171
10218
|
{
|
10172
10219
|
stroke: "currentColor",
|
@@ -10179,13 +10226,13 @@ var CheckEmail = ({ texts, handleResend }) => {
|
|
10179
10226
|
width: "0.5em",
|
10180
10227
|
xmlns: "http://www.w3.org/2000/svg"
|
10181
10228
|
},
|
10182
|
-
/* @__PURE__ */
|
10183
|
-
/* @__PURE__ */
|
10184
|
-
)), /* @__PURE__ */
|
10229
|
+
/* @__PURE__ */ React78.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" }),
|
10230
|
+
/* @__PURE__ */ React78.createElement("polyline", { points: "22,6 12,13 2,6" })
|
10231
|
+
)), /* @__PURE__ */ React78.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.checkEmail) || "Check your Email"), /* @__PURE__ */ React78.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__ */ React78.createElement(CardFooter, { className: "hawa-flex hawa-flex-col hawa-justify-center " }, /* @__PURE__ */ React78.createElement("span", { className: "clickable-link hawa-text-sm", onClick: handleResend }, (texts == null ? void 0 : texts.resendEmail) || "Resend Email")));
|
10185
10232
|
};
|
10186
10233
|
|
10187
10234
|
// blocks/auth/NewPassword.tsx
|
10188
|
-
import
|
10235
|
+
import React79, { useState as useState28 } from "react";
|
10189
10236
|
import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
|
10190
10237
|
import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
|
10191
10238
|
import * as z3 from "zod";
|
@@ -10204,7 +10251,7 @@ var NewPasswordForm = ({ texts, ...props }) => {
|
|
10204
10251
|
resolver: zodResolver3(formSchema)
|
10205
10252
|
});
|
10206
10253
|
const [matchError, setMatchError] = useState28(false);
|
10207
|
-
return /* @__PURE__ */
|
10254
|
+
return /* @__PURE__ */ React79.createElement(Card, { dir: props.direction }, matchError && /* @__PURE__ */ React79.createElement(Alert, { text: (_g = texts == null ? void 0 : texts.confirm) == null ? void 0 : _g.dontMatch, severity: "error" }), props.passwordChanged ? /* @__PURE__ */ React79.createElement(CardContent, { headless: true }, /* @__PURE__ */ React79.createElement("div", { className: "hawa-text-center" }, texts == null ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ React79.createElement(
|
10208
10255
|
"form",
|
10209
10256
|
{
|
10210
10257
|
noValidate: true,
|
@@ -10218,21 +10265,21 @@ var NewPasswordForm = ({ texts, ...props }) => {
|
|
10218
10265
|
}
|
10219
10266
|
})
|
10220
10267
|
},
|
10221
|
-
!props.headless && /* @__PURE__ */
|
10222
|
-
/* @__PURE__ */
|
10268
|
+
!props.headless && /* @__PURE__ */ React79.createElement(CardHeader, null, /* @__PURE__ */ React79.createElement(CardTitle, null, "Create Password"), /* @__PURE__ */ React79.createElement(CardDescription, null, "Set a new password for your account")),
|
10269
|
+
/* @__PURE__ */ React79.createElement(
|
10223
10270
|
CardContent,
|
10224
10271
|
{
|
10225
10272
|
headless: props.headless,
|
10226
10273
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
10227
10274
|
},
|
10228
|
-
/* @__PURE__ */
|
10275
|
+
/* @__PURE__ */ React79.createElement(
|
10229
10276
|
Controller3,
|
10230
10277
|
{
|
10231
10278
|
control,
|
10232
10279
|
name: "password",
|
10233
10280
|
render: ({ field }) => {
|
10234
10281
|
var _a2, _b2, _c2;
|
10235
|
-
return /* @__PURE__ */
|
10282
|
+
return /* @__PURE__ */ React79.createElement(
|
10236
10283
|
Input,
|
10237
10284
|
{
|
10238
10285
|
width: "full",
|
@@ -10247,14 +10294,14 @@ var NewPasswordForm = ({ texts, ...props }) => {
|
|
10247
10294
|
}
|
10248
10295
|
}
|
10249
10296
|
),
|
10250
|
-
/* @__PURE__ */
|
10297
|
+
/* @__PURE__ */ React79.createElement(
|
10251
10298
|
Controller3,
|
10252
10299
|
{
|
10253
10300
|
control,
|
10254
10301
|
name: "confirm_password",
|
10255
10302
|
render: ({ field }) => {
|
10256
10303
|
var _a2, _b2, _c2;
|
10257
|
-
return /* @__PURE__ */
|
10304
|
+
return /* @__PURE__ */ React79.createElement(
|
10258
10305
|
Input,
|
10259
10306
|
{
|
10260
10307
|
width: "full",
|
@@ -10270,7 +10317,7 @@ var NewPasswordForm = ({ texts, ...props }) => {
|
|
10270
10317
|
}
|
10271
10318
|
)
|
10272
10319
|
),
|
10273
|
-
/* @__PURE__ */
|
10320
|
+
/* @__PURE__ */ React79.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React79.createElement(Button, { className: "hawa-w-full", type: "submit" }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ React79.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_h = texts == null ? void 0 : texts.dontHaveAccount) != null ? _h : "Don't have an account? ", /* @__PURE__ */ React79.createElement(
|
10274
10321
|
"span",
|
10275
10322
|
{
|
10276
10323
|
className: "clickable-link",
|
@@ -10282,7 +10329,7 @@ var NewPasswordForm = ({ texts, ...props }) => {
|
|
10282
10329
|
};
|
10283
10330
|
|
10284
10331
|
// blocks/auth/ResetPassword.tsx
|
10285
|
-
import
|
10332
|
+
import React80 from "react";
|
10286
10333
|
import { Controller as Controller4, useForm as useForm4 } from "react-hook-form";
|
10287
10334
|
import { zodResolver as zodResolver4 } from "@hookform/resolvers/zod";
|
10288
10335
|
import * as z4 from "zod";
|
@@ -10299,7 +10346,7 @@ var ResetPasswordForm = ({
|
|
10299
10346
|
const { handleSubmit, control, formState } = useForm4({
|
10300
10347
|
resolver: zodResolver4(formSchema)
|
10301
10348
|
});
|
10302
|
-
return /* @__PURE__ */
|
10349
|
+
return /* @__PURE__ */ React80.createElement(Card, { dir: props.direction }, !props.sent ? /* @__PURE__ */ React80.createElement(React80.Fragment, null, !props.headless && /* @__PURE__ */ React80.createElement(CardHeader, null, /* @__PURE__ */ React80.createElement(CardTitle, null, ((_g = props.texts) == null ? void 0 : _g.headTitle) || "Reset Password"), /* @__PURE__ */ React80.createElement(CardDescription, null, ((_h = props.texts) == null ? void 0 : _h.headDescription) || "Enter your email to reset your account password")), /* @__PURE__ */ React80.createElement(
|
10303
10350
|
"form",
|
10304
10351
|
{
|
10305
10352
|
noValidate: true,
|
@@ -10311,14 +10358,14 @@ var ResetPasswordForm = ({
|
|
10311
10358
|
}
|
10312
10359
|
})
|
10313
10360
|
},
|
10314
|
-
/* @__PURE__ */
|
10361
|
+
/* @__PURE__ */ React80.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, /* @__PURE__ */ React80.createElement(
|
10315
10362
|
Controller4,
|
10316
10363
|
{
|
10317
10364
|
control,
|
10318
10365
|
name: "email",
|
10319
10366
|
render: ({ field }) => {
|
10320
10367
|
var _a2, _b2, _c2, _d2, _e2;
|
10321
|
-
return /* @__PURE__ */
|
10368
|
+
return /* @__PURE__ */ React80.createElement(
|
10322
10369
|
Input,
|
10323
10370
|
{
|
10324
10371
|
width: "full",
|
@@ -10331,7 +10378,7 @@ var ResetPasswordForm = ({
|
|
10331
10378
|
}
|
10332
10379
|
}
|
10333
10380
|
)),
|
10334
|
-
/* @__PURE__ */
|
10381
|
+
/* @__PURE__ */ React80.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React80.createElement(Button, { type: "submit", className: "hawa-w-full " }, ((_i = props.texts) == null ? void 0 : _i.resetPassword) || "Reset Password"), allowRegister && /* @__PURE__ */ React80.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__ */ React80.createElement(
|
10335
10382
|
"span",
|
10336
10383
|
{
|
10337
10384
|
className: "clickable-link",
|
@@ -10339,11 +10386,11 @@ var ResetPasswordForm = ({
|
|
10339
10386
|
},
|
10340
10387
|
(_m = (_l = props.texts) == null ? void 0 : _l.registerText) != null ? _m : "Register"
|
10341
10388
|
)))
|
10342
|
-
)) : /* @__PURE__ */
|
10389
|
+
)) : /* @__PURE__ */ React80.createElement(CardContent, { headless: true }, /* @__PURE__ */ React80.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")));
|
10343
10390
|
};
|
10344
10391
|
|
10345
10392
|
// blocks/auth/CodeConfirmation.tsx
|
10346
|
-
import
|
10393
|
+
import React81, { useEffect as useEffect18, useState as useState29 } from "react";
|
10347
10394
|
import { Controller as Controller5, useForm as useForm5 } from "react-hook-form";
|
10348
10395
|
import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
|
10349
10396
|
import * as z5 from "zod";
|
@@ -10386,14 +10433,14 @@ var CodeConfirmation = (props) => {
|
|
10386
10433
|
}
|
10387
10434
|
};
|
10388
10435
|
}, []);
|
10389
|
-
return /* @__PURE__ */
|
10436
|
+
return /* @__PURE__ */ React81.createElement(Card, null, /* @__PURE__ */ React81.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ React81.createElement(
|
10390
10437
|
Alert,
|
10391
10438
|
{
|
10392
10439
|
title: props.errorTitle,
|
10393
10440
|
text: props.errorText,
|
10394
10441
|
severity: "error"
|
10395
10442
|
}
|
10396
|
-
), /* @__PURE__ */
|
10443
|
+
), /* @__PURE__ */ React81.createElement("div", { className: "hawa-mb-4 dark:hawa-text-white" }, /* @__PURE__ */ React81.createElement("div", { className: "hawa-text-lg hawa-font-bold" }, ((_c = props.texts) == null ? void 0 : _c.checkYourPhone) || "Please check your phone"), /* @__PURE__ */ React81.createElement("div", { className: "hawa-text-muted-foreground" }, /* @__PURE__ */ React81.createElement("span", null, ((_d = props.texts) == null ? void 0 : _d.weSentCode) || "We've sent a code to "), /* @__PURE__ */ React81.createElement("span", null, props.phoneNumber))), /* @__PURE__ */ React81.createElement(
|
10397
10444
|
"form",
|
10398
10445
|
{
|
10399
10446
|
noValidate: true,
|
@@ -10407,14 +10454,14 @@ var CodeConfirmation = (props) => {
|
|
10407
10454
|
}
|
10408
10455
|
})
|
10409
10456
|
},
|
10410
|
-
/* @__PURE__ */
|
10457
|
+
/* @__PURE__ */ React81.createElement(
|
10411
10458
|
Controller5,
|
10412
10459
|
{
|
10413
10460
|
control,
|
10414
10461
|
name: "otp_code",
|
10415
10462
|
render: ({ field }) => {
|
10416
10463
|
var _a2;
|
10417
|
-
return /* @__PURE__ */
|
10464
|
+
return /* @__PURE__ */ React81.createElement(
|
10418
10465
|
PinInput,
|
10419
10466
|
{
|
10420
10467
|
width: "full",
|
@@ -10426,7 +10473,7 @@ var CodeConfirmation = (props) => {
|
|
10426
10473
|
}
|
10427
10474
|
}
|
10428
10475
|
),
|
10429
|
-
showResendTimer ? /* @__PURE__ */
|
10476
|
+
showResendTimer ? /* @__PURE__ */ React81.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__ */ React81.createElement("strong", null, remainingTime), " ", (_f = props.texts) == null ? void 0 : _f.seconds) : /* @__PURE__ */ React81.createElement("div", { className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground" }, /* @__PURE__ */ React81.createElement("span", null, (_h = (_g = props.texts) == null ? void 0 : _g.didntGetCode) != null ? _h : "Didn't get the code?"), " ", /* @__PURE__ */ React81.createElement(
|
10430
10477
|
"span",
|
10431
10478
|
{
|
10432
10479
|
className: "clickable-link",
|
@@ -10437,12 +10484,12 @@ var CodeConfirmation = (props) => {
|
|
10437
10484
|
},
|
10438
10485
|
((_i = props.texts) == null ? void 0 : _i.resendCode) || "Click to resend"
|
10439
10486
|
)),
|
10440
|
-
/* @__PURE__ */
|
10487
|
+
/* @__PURE__ */ React81.createElement("div", { className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2" }, /* @__PURE__ */ React81.createElement(Button, { variant: "secondary" }, ((_j = props.texts) == null ? void 0 : _j.cancel) || "Cancel"), /* @__PURE__ */ React81.createElement(Button, { isLoading: props.confirmLoading }, ((_k = props.texts) == null ? void 0 : _k.confirm) || "Confirm"))
|
10441
10488
|
)));
|
10442
10489
|
};
|
10443
10490
|
|
10444
10491
|
// blocks/feedback/UserReferralSource.tsx
|
10445
|
-
import
|
10492
|
+
import React82, { useRef as useRef12, useState as useState30 } from "react";
|
10446
10493
|
import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
|
10447
10494
|
import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
|
10448
10495
|
import * as z6 from "zod";
|
@@ -10473,7 +10520,7 @@ var UserReferralSource = ({
|
|
10473
10520
|
label: "Other"
|
10474
10521
|
}
|
10475
10522
|
];
|
10476
|
-
return /* @__PURE__ */
|
10523
|
+
return /* @__PURE__ */ React82.createElement(
|
10477
10524
|
"div",
|
10478
10525
|
{
|
10479
10526
|
className: cn(
|
@@ -10482,7 +10529,7 @@ var UserReferralSource = ({
|
|
10482
10529
|
),
|
10483
10530
|
ref: popUpRef
|
10484
10531
|
},
|
10485
|
-
/* @__PURE__ */
|
10532
|
+
/* @__PURE__ */ React82.createElement(
|
10486
10533
|
Card,
|
10487
10534
|
{
|
10488
10535
|
className: cn(
|
@@ -10491,7 +10538,7 @@ var UserReferralSource = ({
|
|
10491
10538
|
),
|
10492
10539
|
dir: props.direction
|
10493
10540
|
},
|
10494
|
-
/* @__PURE__ */
|
10541
|
+
/* @__PURE__ */ React82.createElement(
|
10495
10542
|
"button",
|
10496
10543
|
{
|
10497
10544
|
type: "button",
|
@@ -10510,7 +10557,7 @@ var UserReferralSource = ({
|
|
10510
10557
|
}, 200);
|
10511
10558
|
}
|
10512
10559
|
},
|
10513
|
-
/* @__PURE__ */
|
10560
|
+
/* @__PURE__ */ React82.createElement(
|
10514
10561
|
"svg",
|
10515
10562
|
{
|
10516
10563
|
"aria-hidden": "true",
|
@@ -10518,7 +10565,7 @@ var UserReferralSource = ({
|
|
10518
10565
|
fill: "currentColor",
|
10519
10566
|
viewBox: "0 0 20 20"
|
10520
10567
|
},
|
10521
|
-
/* @__PURE__ */
|
10568
|
+
/* @__PURE__ */ React82.createElement(
|
10522
10569
|
"path",
|
10523
10570
|
{
|
10524
10571
|
fillRule: "evenodd",
|
@@ -10528,7 +10575,7 @@ var UserReferralSource = ({
|
|
10528
10575
|
)
|
10529
10576
|
)
|
10530
10577
|
),
|
10531
|
-
/* @__PURE__ */
|
10578
|
+
/* @__PURE__ */ React82.createElement(CardContent, { headless: true }, /* @__PURE__ */ React82.createElement(
|
10532
10579
|
"form",
|
10533
10580
|
{
|
10534
10581
|
noValidate: true,
|
@@ -10540,7 +10587,7 @@ var UserReferralSource = ({
|
|
10540
10587
|
}
|
10541
10588
|
})
|
10542
10589
|
},
|
10543
|
-
/* @__PURE__ */
|
10590
|
+
/* @__PURE__ */ React82.createElement(
|
10544
10591
|
"div",
|
10545
10592
|
{
|
10546
10593
|
className: cn(
|
@@ -10548,15 +10595,15 @@ var UserReferralSource = ({
|
|
10548
10595
|
closed ? "hawa-opacity-0" : "hawa-opacity-100"
|
10549
10596
|
)
|
10550
10597
|
},
|
10551
|
-
/* @__PURE__ */
|
10552
|
-
/* @__PURE__ */
|
10598
|
+
/* @__PURE__ */ React82.createElement("div", { className: "hawa-mt-4 hawa-font-bold" }, props.question),
|
10599
|
+
/* @__PURE__ */ React82.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded " }, /* @__PURE__ */ React82.createElement(
|
10553
10600
|
Controller6,
|
10554
10601
|
{
|
10555
10602
|
control,
|
10556
10603
|
name: "source",
|
10557
10604
|
render: ({ field }) => {
|
10558
10605
|
var _a2, _b2;
|
10559
|
-
return /* @__PURE__ */
|
10606
|
+
return /* @__PURE__ */ React82.createElement(
|
10560
10607
|
Radio,
|
10561
10608
|
{
|
10562
10609
|
name: "source",
|
@@ -10571,14 +10618,14 @@ var UserReferralSource = ({
|
|
10571
10618
|
}
|
10572
10619
|
}
|
10573
10620
|
)),
|
10574
|
-
/* @__PURE__ */
|
10621
|
+
/* @__PURE__ */ React82.createElement("div", null, /* @__PURE__ */ React82.createElement(
|
10575
10622
|
Controller6,
|
10576
10623
|
{
|
10577
10624
|
control,
|
10578
10625
|
name: "feedback",
|
10579
10626
|
render: ({ field }) => {
|
10580
10627
|
var _a2, _b2;
|
10581
|
-
return /* @__PURE__ */
|
10628
|
+
return /* @__PURE__ */ React82.createElement(
|
10582
10629
|
Textarea,
|
10583
10630
|
{
|
10584
10631
|
...field,
|
@@ -10593,14 +10640,14 @@ var UserReferralSource = ({
|
|
10593
10640
|
}
|
10594
10641
|
))
|
10595
10642
|
),
|
10596
|
-
/* @__PURE__ */
|
10643
|
+
/* @__PURE__ */ React82.createElement(Button, { type: "submit", className: "hawa-mt-4 hawa-w-full" }, ((_b = props.texts) == null ? void 0 : _b.submit) || "Submit")
|
10597
10644
|
))
|
10598
10645
|
)
|
10599
10646
|
);
|
10600
10647
|
};
|
10601
10648
|
|
10602
10649
|
// blocks/feedback/FeedbackRating.tsx
|
10603
|
-
import
|
10650
|
+
import React83, { useEffect as useEffect19, useRef as useRef13, useState as useState31 } from "react";
|
10604
10651
|
var FeedbackRating = ({
|
10605
10652
|
position = "bottom-right",
|
10606
10653
|
...props
|
@@ -10632,7 +10679,7 @@ var FeedbackRating = ({
|
|
10632
10679
|
}
|
10633
10680
|
}, 200);
|
10634
10681
|
};
|
10635
|
-
return /* @__PURE__ */
|
10682
|
+
return /* @__PURE__ */ React83.createElement(
|
10636
10683
|
"div",
|
10637
10684
|
{
|
10638
10685
|
ref: popUpRef,
|
@@ -10641,7 +10688,7 @@ var FeedbackRating = ({
|
|
10641
10688
|
boxPosition[position]
|
10642
10689
|
)
|
10643
10690
|
},
|
10644
|
-
/* @__PURE__ */
|
10691
|
+
/* @__PURE__ */ React83.createElement(
|
10645
10692
|
"div",
|
10646
10693
|
{
|
10647
10694
|
className: cn(
|
@@ -10650,8 +10697,8 @@ var FeedbackRating = ({
|
|
10650
10697
|
props.banner && "hawa-rounded-none hawa-px-4 md:hawa-rounded-t md:hawa-px-64"
|
10651
10698
|
)
|
10652
10699
|
},
|
10653
|
-
/* @__PURE__ */
|
10654
|
-
/* @__PURE__ */
|
10700
|
+
/* @__PURE__ */ React83.createElement("div", { className: "hawa-absolute hawa-left-2 hawa-top-2 hawa-p-1.5 hawa-text-sm" }, props.title),
|
10701
|
+
/* @__PURE__ */ React83.createElement(
|
10655
10702
|
"button",
|
10656
10703
|
{
|
10657
10704
|
type: "button",
|
@@ -10660,7 +10707,7 @@ var FeedbackRating = ({
|
|
10660
10707
|
"aria-label": "Close",
|
10661
10708
|
onClick: () => slowClose()
|
10662
10709
|
},
|
10663
|
-
/* @__PURE__ */
|
10710
|
+
/* @__PURE__ */ React83.createElement(
|
10664
10711
|
"svg",
|
10665
10712
|
{
|
10666
10713
|
"aria-hidden": "true",
|
@@ -10668,7 +10715,7 @@ var FeedbackRating = ({
|
|
10668
10715
|
fill: "currentColor",
|
10669
10716
|
viewBox: "0 0 20 20"
|
10670
10717
|
},
|
10671
|
-
/* @__PURE__ */
|
10718
|
+
/* @__PURE__ */ React83.createElement(
|
10672
10719
|
"path",
|
10673
10720
|
{
|
10674
10721
|
fillRule: "evenodd",
|
@@ -10678,8 +10725,8 @@ var FeedbackRating = ({
|
|
10678
10725
|
)
|
10679
10726
|
)
|
10680
10727
|
),
|
10681
|
-
/* @__PURE__ */
|
10682
|
-
/* @__PURE__ */
|
10728
|
+
/* @__PURE__ */ React83.createElement("div", { className: "hawa-mt-8" }, props.question),
|
10729
|
+
/* @__PURE__ */ React83.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded" }, props.options && props.options.map((op, i) => /* @__PURE__ */ React83.createElement(
|
10683
10730
|
"span",
|
10684
10731
|
{
|
10685
10732
|
key: i,
|
@@ -10707,24 +10754,24 @@ var FeedbackRating = ({
|
|
10707
10754
|
},
|
10708
10755
|
op
|
10709
10756
|
))),
|
10710
|
-
props.texts && /* @__PURE__ */
|
10711
|
-
answered && /* @__PURE__ */
|
10757
|
+
props.texts && /* @__PURE__ */ React83.createElement("div", { className: " hawa-flex hawa-flex-row hawa-justify-between hawa-text-xs" }, /* @__PURE__ */ React83.createElement("span", null, props.texts.least), /* @__PURE__ */ React83.createElement("span", null, props.texts.most)),
|
10758
|
+
answered && /* @__PURE__ */ React83.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__ */ React83.createElement("span", { className: "hawa-font-bold hawa-text-white" }, "Thank you for your answer. This box will disappear in", " " + closingTimer, " seconds"), /* @__PURE__ */ React83.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ React83.createElement(Button, { variant: "secondary", onClick: () => slowClose() }, "Close")))
|
10712
10759
|
)
|
10713
10760
|
);
|
10714
10761
|
};
|
10715
10762
|
|
10716
10763
|
// blocks/feedback/FeedbackEmoji.tsx
|
10717
|
-
import
|
10764
|
+
import React84, { useState as useState32 } from "react";
|
10718
10765
|
var FeedbackEmoji = (props) => {
|
10719
10766
|
const [selectedEmoji, setSelectedEmoji] = useState32(null);
|
10720
10767
|
const [loadingSubmit, setLoadingSubmit] = useState32(false);
|
10721
10768
|
const [feedbackText, setFeedbackText] = useState32("");
|
10722
10769
|
const [helperText, setHelperText] = useState32(false);
|
10723
10770
|
let emojis = [
|
10724
|
-
{ icon: /* @__PURE__ */
|
10725
|
-
{ icon: /* @__PURE__ */
|
10726
|
-
{ icon: /* @__PURE__ */
|
10727
|
-
{ icon: /* @__PURE__ */
|
10771
|
+
{ icon: /* @__PURE__ */ React84.createElement(VeryGoodEmoji, null), value: "very-good" },
|
10772
|
+
{ icon: /* @__PURE__ */ React84.createElement(GoodEmoji, null), value: "good" },
|
10773
|
+
{ icon: /* @__PURE__ */ React84.createElement(BadEmoji, null), value: "bad" },
|
10774
|
+
{ icon: /* @__PURE__ */ React84.createElement(VeryBadEmoji, null), value: "very-bad" }
|
10728
10775
|
];
|
10729
10776
|
const onFeedbackSubmit = async () => {
|
10730
10777
|
if (feedbackText) {
|
@@ -10744,7 +10791,7 @@ var FeedbackEmoji = (props) => {
|
|
10744
10791
|
setHelperText(true);
|
10745
10792
|
}
|
10746
10793
|
};
|
10747
|
-
return /* @__PURE__ */
|
10794
|
+
return /* @__PURE__ */ React84.createElement(
|
10748
10795
|
"div",
|
10749
10796
|
{
|
10750
10797
|
className: cn(
|
@@ -10752,7 +10799,7 @@ var FeedbackEmoji = (props) => {
|
|
10752
10799
|
selectedEmoji ? "hawa-h-[189px] hawa-min-w-fit" : "hawa-h-[44px] "
|
10753
10800
|
)
|
10754
10801
|
},
|
10755
|
-
/* @__PURE__ */
|
10802
|
+
/* @__PURE__ */ React84.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 " }, /* @__PURE__ */ React84.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-0.5 " }, emojis.map((emoji, i) => /* @__PURE__ */ React84.createElement(
|
10756
10803
|
Button,
|
10757
10804
|
{
|
10758
10805
|
key: i,
|
@@ -10771,7 +10818,7 @@ var FeedbackEmoji = (props) => {
|
|
10771
10818
|
},
|
10772
10819
|
emoji.icon
|
10773
10820
|
)))),
|
10774
|
-
/* @__PURE__ */
|
10821
|
+
/* @__PURE__ */ React84.createElement(
|
10775
10822
|
"div",
|
10776
10823
|
{
|
10777
10824
|
className: cn(
|
@@ -10779,7 +10826,7 @@ var FeedbackEmoji = (props) => {
|
|
10779
10826
|
selectedEmoji ? "hawa-visible hawa-opacity-100" : "hawa-invisible hawa-opacity-0 "
|
10780
10827
|
)
|
10781
10828
|
},
|
10782
|
-
props.showSuccess ? /* @__PURE__ */
|
10829
|
+
props.showSuccess ? /* @__PURE__ */ React84.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2 hawa-pt-4" }, /* @__PURE__ */ React84.createElement("div", { className: "hawa-rounded hawa-bg-primary hawa-p-2 hawa-text-primary-foreground" }, /* @__PURE__ */ React84.createElement(
|
10783
10830
|
"svg",
|
10784
10831
|
{
|
10785
10832
|
stroke: "currentColor",
|
@@ -10789,13 +10836,13 @@ var FeedbackEmoji = (props) => {
|
|
10789
10836
|
height: "0.5em",
|
10790
10837
|
width: "0.5em"
|
10791
10838
|
},
|
10792
|
-
/* @__PURE__ */
|
10793
|
-
)), /* @__PURE__ */
|
10839
|
+
/* @__PURE__ */ React84.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" })
|
10840
|
+
)), /* @__PURE__ */ React84.createElement("div", { className: "hawa-flex hawa-flex-col hawa-text-center hawa-text-sm" }, /* @__PURE__ */ React84.createElement("span", null, "Your feedback has been received!"), /* @__PURE__ */ React84.createElement("span", null, "Thank you for your help"))) : /* @__PURE__ */ React84.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-1 hawa-p-1" }, /* @__PURE__ */ React84.createElement(
|
10794
10841
|
Popover,
|
10795
10842
|
{
|
10796
10843
|
className: "hawa-select-none hawa-p-1 hawa-text-xs ",
|
10797
10844
|
open: helperText,
|
10798
|
-
trigger: /* @__PURE__ */
|
10845
|
+
trigger: /* @__PURE__ */ React84.createElement(
|
10799
10846
|
Textarea,
|
10800
10847
|
{
|
10801
10848
|
classNames: {
|
@@ -10813,8 +10860,8 @@ var FeedbackEmoji = (props) => {
|
|
10813
10860
|
}
|
10814
10861
|
)
|
10815
10862
|
},
|
10816
|
-
/* @__PURE__ */
|
10817
|
-
), /* @__PURE__ */
|
10863
|
+
/* @__PURE__ */ React84.createElement("span", { className: "hawa-m-0" }, "Please enter your feedback")
|
10864
|
+
), /* @__PURE__ */ React84.createElement(
|
10818
10865
|
Button,
|
10819
10866
|
{
|
10820
10867
|
isLoading: loadingSubmit,
|
@@ -10829,7 +10876,7 @@ var FeedbackEmoji = (props) => {
|
|
10829
10876
|
};
|
10830
10877
|
|
10831
10878
|
// blocks/feedback/FeedbackForm.tsx
|
10832
|
-
import
|
10879
|
+
import React85 from "react";
|
10833
10880
|
import { useForm as useForm7, Controller as Controller7 } from "react-hook-form";
|
10834
10881
|
import { zodResolver as zodResolver7 } from "@hookform/resolvers/zod";
|
10835
10882
|
import * as z7 from "zod";
|
@@ -10843,7 +10890,7 @@ var FeedbackForm = (props) => {
|
|
10843
10890
|
resolver: zodResolver7(formSchema),
|
10844
10891
|
defaultValues: { requestType: "", description: "" }
|
10845
10892
|
});
|
10846
|
-
return /* @__PURE__ */
|
10893
|
+
return /* @__PURE__ */ React85.createElement(
|
10847
10894
|
Card,
|
10848
10895
|
{
|
10849
10896
|
className: cn(
|
@@ -10851,7 +10898,7 @@ var FeedbackForm = (props) => {
|
|
10851
10898
|
),
|
10852
10899
|
style: props.cardless ? { boxShadow: "none" } : void 0
|
10853
10900
|
},
|
10854
|
-
/* @__PURE__ */
|
10901
|
+
/* @__PURE__ */ React85.createElement(CardContent, { headless: true, className: props.cardless ? "!hawa-p-0" : "" }, props.sent ? /* @__PURE__ */ React85.createElement("div", { className: "hawa-text-center hawa-min-h-[200px] hawa-flex hawa-flex-col hawa-justify-center" }, /* @__PURE__ */ React85.createElement("div", { className: "hawa-font-bold hawa-text-lg" }, props.texts.sentTitle || "Form submitted"), /* @__PURE__ */ React85.createElement("div", { className: "hawa-text-md" }, props.texts.sentSubtitle || "Thank you for your submission")) : /* @__PURE__ */ React85.createElement(
|
10855
10902
|
"form",
|
10856
10903
|
{
|
10857
10904
|
noValidate: true,
|
@@ -10864,15 +10911,15 @@ var FeedbackForm = (props) => {
|
|
10864
10911
|
}),
|
10865
10912
|
className: "hawa-flex hawa-flex-col hawa-gap-2"
|
10866
10913
|
},
|
10867
|
-
/* @__PURE__ */
|
10868
|
-
/* @__PURE__ */
|
10914
|
+
/* @__PURE__ */ React85.createElement(Label2, null),
|
10915
|
+
/* @__PURE__ */ React85.createElement(
|
10869
10916
|
Controller7,
|
10870
10917
|
{
|
10871
10918
|
name: "requestType",
|
10872
10919
|
control,
|
10873
10920
|
render: ({ field }) => {
|
10874
10921
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
|
10875
|
-
return /* @__PURE__ */
|
10922
|
+
return /* @__PURE__ */ React85.createElement(
|
10876
10923
|
Select,
|
10877
10924
|
{
|
10878
10925
|
...field,
|
@@ -10890,14 +10937,14 @@ var FeedbackForm = (props) => {
|
|
10890
10937
|
}
|
10891
10938
|
}
|
10892
10939
|
),
|
10893
|
-
/* @__PURE__ */
|
10940
|
+
/* @__PURE__ */ React85.createElement(
|
10894
10941
|
Controller7,
|
10895
10942
|
{
|
10896
10943
|
name: "description",
|
10897
10944
|
control,
|
10898
10945
|
render: ({ field }) => {
|
10899
10946
|
var _a2, _b2, _c2, _d2, _e2, _f2;
|
10900
|
-
return /* @__PURE__ */
|
10947
|
+
return /* @__PURE__ */ React85.createElement(
|
10901
10948
|
Textarea,
|
10902
10949
|
{
|
10903
10950
|
helperText: formState.errors.description && ((_b2 = (_a2 = formState.errors.description) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString()),
|
@@ -10915,15 +10962,15 @@ var FeedbackForm = (props) => {
|
|
10915
10962
|
}
|
10916
10963
|
}
|
10917
10964
|
),
|
10918
|
-
/* @__PURE__ */
|
10965
|
+
/* @__PURE__ */ React85.createElement(Button, { isLoading: props.loadingSubmission, type: "submit" }, (_i = props.texts) == null ? void 0 : _i.submit)
|
10919
10966
|
))
|
10920
10967
|
);
|
10921
10968
|
};
|
10922
10969
|
|
10923
10970
|
// blocks/misc/LegalTexts.tsx
|
10924
|
-
import
|
10971
|
+
import React86 from "react";
|
10925
10972
|
var LegalTexts = ({ tabs, ...props }) => {
|
10926
|
-
return /* @__PURE__ */
|
10973
|
+
return /* @__PURE__ */ React86.createElement(
|
10927
10974
|
Tabs,
|
10928
10975
|
{
|
10929
10976
|
value: props.activeTab,
|
@@ -10931,8 +10978,8 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
10931
10978
|
defaultValue: props.defaultTab || tabs[0].value,
|
10932
10979
|
dir: props.direction
|
10933
10980
|
},
|
10934
|
-
/* @__PURE__ */
|
10935
|
-
tabs.map((tab, index) => /* @__PURE__ */
|
10981
|
+
/* @__PURE__ */ React86.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ React86.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
|
10982
|
+
tabs.map((tab, index) => /* @__PURE__ */ React86.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ React86.createElement(
|
10936
10983
|
ScrollArea,
|
10937
10984
|
{
|
10938
10985
|
className: cn(
|
@@ -10946,9 +10993,9 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
10946
10993
|
};
|
10947
10994
|
|
10948
10995
|
// blocks/misc/EmptyState.tsx
|
10949
|
-
import
|
10996
|
+
import React87 from "react";
|
10950
10997
|
var EmptyState = ({ texts, onActionClick }) => {
|
10951
|
-
return /* @__PURE__ */
|
10998
|
+
return /* @__PURE__ */ React87.createElement(Card, null, /* @__PURE__ */ React87.createElement(CardContent, { headless: true }, /* @__PURE__ */ React87.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center " }, /* @__PURE__ */ React87.createElement("div", { className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ React87.createElement(
|
10952
10999
|
"svg",
|
10953
11000
|
{
|
10954
11001
|
stroke: "currentColor",
|
@@ -10958,30 +11005,30 @@ var EmptyState = ({ texts, onActionClick }) => {
|
|
10958
11005
|
height: "0.35em",
|
10959
11006
|
width: "0.35em"
|
10960
11007
|
},
|
10961
|
-
/* @__PURE__ */
|
10962
|
-
)), /* @__PURE__ */
|
11008
|
+
/* @__PURE__ */ React87.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" })
|
11009
|
+
)), /* @__PURE__ */ React87.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.youreCaughtUp) || "You're all caught up"))), /* @__PURE__ */ React87.createElement(CardFooter, null, /* @__PURE__ */ React87.createElement(Button, { className: "hawa-w-full", onClick: () => onActionClick() }, (texts == null ? void 0 : texts.actionText) || "Go Home")));
|
10963
11010
|
};
|
10964
11011
|
|
10965
11012
|
// blocks/misc/Testimonial.tsx
|
10966
|
-
import
|
11013
|
+
import React88 from "react";
|
10967
11014
|
var Testimonial = () => {
|
10968
|
-
return /* @__PURE__ */
|
11015
|
+
return /* @__PURE__ */ React88.createElement(Card, null, /* @__PURE__ */ React88.createElement(CardContent, { headless: true }, /* @__PURE__ */ React88.createElement("div", null, /* @__PURE__ */ React88.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__ */ React88.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ React88.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ React88.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ React88.createElement(
|
10969
11016
|
"path",
|
10970
11017
|
{
|
10971
11018
|
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",
|
10972
11019
|
fill: "#FFFFFF"
|
10973
11020
|
}
|
10974
|
-
), /* @__PURE__ */
|
11021
|
+
), /* @__PURE__ */ React88.createElement(
|
10975
11022
|
"path",
|
10976
11023
|
{
|
10977
11024
|
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",
|
10978
11025
|
fill: "#FFFFFF"
|
10979
11026
|
}
|
10980
|
-
)), /* @__PURE__ */
|
11027
|
+
)), /* @__PURE__ */ React88.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ React88.createElement("div", null, /* @__PURE__ */ React88.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ React88.createElement("div", null, " Chief Information Security Officer")))));
|
10981
11028
|
};
|
10982
11029
|
|
10983
11030
|
// blocks/misc/LeadGenerator.tsx
|
10984
|
-
import
|
11031
|
+
import React89 from "react";
|
10985
11032
|
import { useForm as useForm8, Controller as Controller8 } from "react-hook-form";
|
10986
11033
|
var LeadGenerator = ({ texts, submitHandler }) => {
|
10987
11034
|
var _a;
|
@@ -10993,14 +11040,14 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
10993
11040
|
console.log("handleNewsletterSub props was not provided");
|
10994
11041
|
}
|
10995
11042
|
};
|
10996
|
-
return /* @__PURE__ */
|
11043
|
+
return /* @__PURE__ */ React89.createElement(Card, null, /* @__PURE__ */ React89.createElement(CardHeader, null, /* @__PURE__ */ React89.createElement(CardTitle, null, texts == null ? void 0 : texts.title), /* @__PURE__ */ React89.createElement(CardDescription, null, texts == null ? void 0 : texts.subtitle)), /* @__PURE__ */ React89.createElement(CardContent, null, /* @__PURE__ */ React89.createElement(
|
10997
11044
|
"form",
|
10998
11045
|
{
|
10999
11046
|
noValidate: true,
|
11000
11047
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
11001
11048
|
onSubmit: handleSubmit(onSubmit)
|
11002
11049
|
},
|
11003
|
-
/* @__PURE__ */
|
11050
|
+
/* @__PURE__ */ React89.createElement(
|
11004
11051
|
Controller8,
|
11005
11052
|
{
|
11006
11053
|
name: "email",
|
@@ -11013,27 +11060,27 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
11013
11060
|
}
|
11014
11061
|
},
|
11015
11062
|
defaultValue: "",
|
11016
|
-
render: ({ field }) => /* @__PURE__ */
|
11063
|
+
render: ({ field }) => /* @__PURE__ */ React89.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
|
11017
11064
|
}
|
11018
11065
|
),
|
11019
|
-
/* @__PURE__ */
|
11066
|
+
/* @__PURE__ */ React89.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
|
11020
11067
|
)));
|
11021
11068
|
};
|
11022
11069
|
|
11023
11070
|
// blocks/misc/Announcement.tsx
|
11024
|
-
import
|
11071
|
+
import React90 from "react";
|
11025
11072
|
var Announcement = ({
|
11026
11073
|
onActionClick,
|
11027
11074
|
...props
|
11028
11075
|
}) => {
|
11029
|
-
return /* @__PURE__ */
|
11076
|
+
return /* @__PURE__ */ React90.createElement(Card, null, /* @__PURE__ */ React90.createElement(
|
11030
11077
|
CardContent,
|
11031
11078
|
{
|
11032
11079
|
headless: true,
|
11033
11080
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
11034
11081
|
},
|
11035
|
-
/* @__PURE__ */
|
11036
|
-
/* @__PURE__ */
|
11082
|
+
/* @__PURE__ */ React90.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center " }, /* @__PURE__ */ React90.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ React90.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
|
11083
|
+
/* @__PURE__ */ React90.createElement(
|
11037
11084
|
Button,
|
11038
11085
|
{
|
11039
11086
|
onClick: () => onActionClick(),
|
@@ -11045,15 +11092,15 @@ var Announcement = ({
|
|
11045
11092
|
};
|
11046
11093
|
|
11047
11094
|
// blocks/misc/NotFound.tsx
|
11048
|
-
import
|
11095
|
+
import React91 from "react";
|
11049
11096
|
var NotFound = ({ texts }) => {
|
11050
|
-
return /* @__PURE__ */
|
11097
|
+
return /* @__PURE__ */ React91.createElement(Card, null, /* @__PURE__ */ React91.createElement(CardContent, { headless: true }, /* @__PURE__ */ React91.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white" }, /* @__PURE__ */ React91.createElement("div", { className: "hawa-text-center hawa-text-6xl hawa-font-bold " }, "404"), /* @__PURE__ */ React91.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__ */ React91.createElement("div", { className: "hawa-mb-4 hawa-text-center" }, (texts == null ? void 0 : texts.ifLost) || /* @__PURE__ */ React91.createElement(React91.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ React91.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ React91.createElement(Button, { className: "hawa-w-full" }, (texts == null ? void 0 : texts.home) || "Home"))));
|
11051
11098
|
};
|
11052
11099
|
|
11053
11100
|
// blocks/misc/NoPermission.tsx
|
11054
|
-
import
|
11101
|
+
import React92 from "react";
|
11055
11102
|
var NoPermission = ({ texts }) => {
|
11056
|
-
return /* @__PURE__ */
|
11103
|
+
return /* @__PURE__ */ React92.createElement(Card, null, /* @__PURE__ */ React92.createElement(CardContent, { headless: true }, /* @__PURE__ */ React92.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ React92.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__ */ React92.createElement(
|
11057
11104
|
"svg",
|
11058
11105
|
{
|
11059
11106
|
stroke: "currentColor",
|
@@ -11063,12 +11110,12 @@ var NoPermission = ({ texts }) => {
|
|
11063
11110
|
height: "0.35em",
|
11064
11111
|
width: "0.35em"
|
11065
11112
|
},
|
11066
|
-
/* @__PURE__ */
|
11067
|
-
)), /* @__PURE__ */
|
11113
|
+
/* @__PURE__ */ React92.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" })
|
11114
|
+
)), /* @__PURE__ */ React92.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.title) || "You don't have permission"), /* @__PURE__ */ React92.createElement("div", null, (texts == null ? void 0 : texts.subtitle) || "If you think this is a problem please contact your administrator or our customer support"))));
|
11068
11115
|
};
|
11069
11116
|
|
11070
11117
|
// blocks/misc/ContactForm.tsx
|
11071
|
-
import
|
11118
|
+
import React93 from "react";
|
11072
11119
|
import { useForm as useForm9, Controller as Controller9 } from "react-hook-form";
|
11073
11120
|
import { zodResolver as zodResolver8 } from "@hookform/resolvers/zod";
|
11074
11121
|
import * as z8 from "zod";
|
@@ -11140,7 +11187,7 @@ var ContactForm = ({
|
|
11140
11187
|
console.log("Form is submitted but onSubmit prop is missing");
|
11141
11188
|
}
|
11142
11189
|
};
|
11143
|
-
return /* @__PURE__ */
|
11190
|
+
return /* @__PURE__ */ React93.createElement(
|
11144
11191
|
Card,
|
11145
11192
|
{
|
11146
11193
|
className: cn(
|
@@ -11149,7 +11196,7 @@ var ContactForm = ({
|
|
11149
11196
|
),
|
11150
11197
|
style: cardless ? { boxShadow: "none" } : void 0
|
11151
11198
|
},
|
11152
|
-
/* @__PURE__ */
|
11199
|
+
/* @__PURE__ */ React93.createElement(CardContent, { headless: true, className: cardless ? "!hawa-p-0" : "" }, /* @__PURE__ */ React93.createElement(
|
11153
11200
|
"form",
|
11154
11201
|
{
|
11155
11202
|
noValidate: true,
|
@@ -11158,7 +11205,7 @@ var ContactForm = ({
|
|
11158
11205
|
id: formId,
|
11159
11206
|
autoComplete: formAutoComplete
|
11160
11207
|
},
|
11161
|
-
/* @__PURE__ */
|
11208
|
+
/* @__PURE__ */ React93.createElement(
|
11162
11209
|
"div",
|
11163
11210
|
{
|
11164
11211
|
className: cn(
|
@@ -11169,14 +11216,14 @@ var ContactForm = ({
|
|
11169
11216
|
}
|
11170
11217
|
)
|
11171
11218
|
},
|
11172
|
-
/* @__PURE__ */
|
11219
|
+
/* @__PURE__ */ React93.createElement(
|
11173
11220
|
Controller9,
|
11174
11221
|
{
|
11175
11222
|
control,
|
11176
11223
|
name: "name",
|
11177
11224
|
render: ({ field }) => {
|
11178
11225
|
var _a2;
|
11179
|
-
return /* @__PURE__ */
|
11226
|
+
return /* @__PURE__ */ React93.createElement(
|
11180
11227
|
Input,
|
11181
11228
|
{
|
11182
11229
|
label: (texts == null ? void 0 : texts.name.label) || "Name",
|
@@ -11189,14 +11236,14 @@ var ContactForm = ({
|
|
11189
11236
|
}
|
11190
11237
|
}
|
11191
11238
|
),
|
11192
|
-
/* @__PURE__ */
|
11239
|
+
/* @__PURE__ */ React93.createElement(
|
11193
11240
|
Controller9,
|
11194
11241
|
{
|
11195
11242
|
control,
|
11196
11243
|
name: "email",
|
11197
11244
|
render: ({ field }) => {
|
11198
11245
|
var _a2;
|
11199
|
-
return /* @__PURE__ */
|
11246
|
+
return /* @__PURE__ */ React93.createElement(
|
11200
11247
|
Input,
|
11201
11248
|
{
|
11202
11249
|
label: (texts == null ? void 0 : texts.email.label) || "Email",
|
@@ -11212,7 +11259,7 @@ var ContactForm = ({
|
|
11212
11259
|
),
|
11213
11260
|
customFields && customFields.map((customField) => {
|
11214
11261
|
console.log("custom", customField);
|
11215
|
-
return /* @__PURE__ */
|
11262
|
+
return /* @__PURE__ */ React93.createElement(
|
11216
11263
|
Controller9,
|
11217
11264
|
{
|
11218
11265
|
control,
|
@@ -11222,7 +11269,7 @@ var ContactForm = ({
|
|
11222
11269
|
switch (type) {
|
11223
11270
|
case "text":
|
11224
11271
|
case "number":
|
11225
|
-
return /* @__PURE__ */
|
11272
|
+
return /* @__PURE__ */ React93.createElement(
|
11226
11273
|
Input,
|
11227
11274
|
{
|
11228
11275
|
id: customField.name,
|
@@ -11233,7 +11280,7 @@ var ContactForm = ({
|
|
11233
11280
|
}
|
11234
11281
|
);
|
11235
11282
|
case "select":
|
11236
|
-
return /* @__PURE__ */
|
11283
|
+
return /* @__PURE__ */ React93.createElement(
|
11237
11284
|
Select,
|
11238
11285
|
{
|
11239
11286
|
label,
|
@@ -11243,20 +11290,20 @@ var ContactForm = ({
|
|
11243
11290
|
}
|
11244
11291
|
);
|
11245
11292
|
default:
|
11246
|
-
return /* @__PURE__ */
|
11293
|
+
return /* @__PURE__ */ React93.createElement("div", null, "Unknown type");
|
11247
11294
|
}
|
11248
11295
|
}
|
11249
11296
|
}
|
11250
11297
|
);
|
11251
11298
|
}),
|
11252
|
-
/* @__PURE__ */
|
11299
|
+
/* @__PURE__ */ React93.createElement(
|
11253
11300
|
Controller9,
|
11254
11301
|
{
|
11255
11302
|
control,
|
11256
11303
|
name: "message",
|
11257
11304
|
render: ({ field }) => {
|
11258
11305
|
var _a2;
|
11259
|
-
return /* @__PURE__ */
|
11306
|
+
return /* @__PURE__ */ React93.createElement(
|
11260
11307
|
Textarea,
|
11261
11308
|
{
|
11262
11309
|
label: (texts == null ? void 0 : texts.message.label) || "Message",
|
@@ -11273,19 +11320,19 @@ var ContactForm = ({
|
|
11273
11320
|
}
|
11274
11321
|
}
|
11275
11322
|
),
|
11276
|
-
/* @__PURE__ */
|
11323
|
+
/* @__PURE__ */ React93.createElement(Button, { type: "submit", className: "hawa-w-full" }, (texts == null ? void 0 : texts.submit) || "Submit")
|
11277
11324
|
))
|
11278
11325
|
);
|
11279
11326
|
};
|
11280
11327
|
|
11281
11328
|
// blocks/pricing/PricingPlans.tsx
|
11282
|
-
import
|
11329
|
+
import React99 from "react";
|
11283
11330
|
|
11284
11331
|
// blocks/cards/ActionCard.tsx
|
11285
|
-
import
|
11332
|
+
import React94, { useState as useState33 } from "react";
|
11286
11333
|
var ActionCard = (props) => {
|
11287
11334
|
const [hovered, setHovered] = useState33(false);
|
11288
|
-
return /* @__PURE__ */
|
11335
|
+
return /* @__PURE__ */ React94.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ React94.createElement(
|
11289
11336
|
"div",
|
11290
11337
|
{
|
11291
11338
|
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",
|
@@ -11295,7 +11342,7 @@ var ActionCard = (props) => {
|
|
11295
11342
|
onMouseEnter: () => setHovered(true),
|
11296
11343
|
onMouseLeave: () => setHovered(false)
|
11297
11344
|
},
|
11298
|
-
props.blank ? /* @__PURE__ */
|
11345
|
+
props.blank ? /* @__PURE__ */ React94.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center " }, /* @__PURE__ */ React94.createElement(
|
11299
11346
|
"svg",
|
11300
11347
|
{
|
11301
11348
|
className: "hawa-h-10 hawa-w-10 hawa-text-foreground",
|
@@ -11307,11 +11354,11 @@ var ActionCard = (props) => {
|
|
11307
11354
|
width: "1em",
|
11308
11355
|
xmlns: "http://www.w3.org/2000/svg"
|
11309
11356
|
},
|
11310
|
-
/* @__PURE__ */
|
11311
|
-
)) : /* @__PURE__ */
|
11312
|
-
/* @__PURE__ */
|
11313
|
-
!props.blank && /* @__PURE__ */
|
11314
|
-
), /* @__PURE__ */
|
11357
|
+
/* @__PURE__ */ React94.createElement("path", { d: "M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z" })
|
11358
|
+
)) : /* @__PURE__ */ React94.createElement("div", { className: "hawa-absolute hawa-inset-0 hawa-rounded hawa-bg-black hawa-opacity-50" }),
|
11359
|
+
/* @__PURE__ */ React94.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),
|
11360
|
+
!props.blank && /* @__PURE__ */ React94.createElement("div", { className: "hawa-relative hawa-p-4" }, /* @__PURE__ */ React94.createElement("h1", { className: "hawa-text-white" }, props.title), /* @__PURE__ */ React94.createElement("p", { className: "hawa-text-white" }, props.subtitle))
|
11361
|
+
), /* @__PURE__ */ React94.createElement(
|
11315
11362
|
"div",
|
11316
11363
|
{
|
11317
11364
|
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"}`
|
@@ -11321,7 +11368,7 @@ var ActionCard = (props) => {
|
|
11321
11368
|
};
|
11322
11369
|
|
11323
11370
|
// blocks/cards/AdCard.tsx
|
11324
|
-
import
|
11371
|
+
import React95, { useState as useState34, useEffect as useEffect20, useRef as useRef14 } from "react";
|
11325
11372
|
var AdCard = ({
|
11326
11373
|
orientation = "vertical",
|
11327
11374
|
...props
|
@@ -11354,21 +11401,21 @@ var AdCard = ({
|
|
11354
11401
|
horizontal: "hawa-w-auto hawa-h-full hawa-bg-blue-500 hawa-rounded-inner",
|
11355
11402
|
vertical: "hawa-bg-blue-500 hawa-rounded-inner hawa-w-auto "
|
11356
11403
|
};
|
11357
|
-
return /* @__PURE__ */
|
11404
|
+
return /* @__PURE__ */ React95.createElement("div", { ref: adRef }, /* @__PURE__ */ React95.createElement(
|
11358
11405
|
"div",
|
11359
11406
|
{
|
11360
11407
|
className: cn(cardStyles[orientation], props.className),
|
11361
11408
|
onClick: props.handleClick
|
11362
11409
|
},
|
11363
|
-
/* @__PURE__ */
|
11410
|
+
/* @__PURE__ */ React95.createElement("div", { className: "hawa-flex hawa-aspect-square hawa-w-full hawa-max-w-fit hawa-items-start " }, /* @__PURE__ */ React95.createElement(
|
11364
11411
|
"img",
|
11365
11412
|
{
|
11366
11413
|
src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
|
11367
11414
|
className: imageStyles[orientation]
|
11368
11415
|
}
|
11369
11416
|
)),
|
11370
|
-
/* @__PURE__ */
|
11371
|
-
props.canHide && /* @__PURE__ */
|
11417
|
+
/* @__PURE__ */ React95.createElement("div", { className: "hawa-w-full hawa-text-xs" }, /* @__PURE__ */ React95.createElement("div", { className: "hawa-font-bold" }, props.title), /* @__PURE__ */ React95.createElement("div", { className: "hawa-text-[12px]" }, props.description)),
|
11418
|
+
props.canHide && /* @__PURE__ */ React95.createElement(
|
11372
11419
|
"span",
|
11373
11420
|
{
|
11374
11421
|
onClick: (e) => {
|
@@ -11394,7 +11441,7 @@ var AdCard = ({
|
|
11394
11441
|
};
|
11395
11442
|
|
11396
11443
|
// blocks/cards/PricingCard.tsx
|
11397
|
-
import
|
11444
|
+
import React96 from "react";
|
11398
11445
|
var PricingCard = ({
|
11399
11446
|
size = "medium",
|
11400
11447
|
direction = "ltr",
|
@@ -11409,13 +11456,13 @@ var PricingCard = ({
|
|
11409
11456
|
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
11410
11457
|
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
11411
11458
|
};
|
11412
|
-
return /* @__PURE__ */
|
11459
|
+
return /* @__PURE__ */ React96.createElement(React96.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ React96.createElement(
|
11413
11460
|
Skeleton,
|
11414
11461
|
{
|
11415
11462
|
className: cn(cardSizes[size], "hawa-h-[200px]"),
|
11416
11463
|
fade: "bottom"
|
11417
11464
|
}
|
11418
|
-
) : /* @__PURE__ */
|
11465
|
+
) : /* @__PURE__ */ React96.createElement(
|
11419
11466
|
Card,
|
11420
11467
|
{
|
11421
11468
|
dir: direction,
|
@@ -11426,7 +11473,7 @@ var PricingCard = ({
|
|
11426
11473
|
recommended ? "hawa-rounded hawa-rounded-t-none" : "hawa-rounded"
|
11427
11474
|
)
|
11428
11475
|
},
|
11429
|
-
recommended && /* @__PURE__ */
|
11476
|
+
recommended && /* @__PURE__ */ React96.createElement(
|
11430
11477
|
"div",
|
11431
11478
|
{
|
11432
11479
|
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",
|
@@ -11434,7 +11481,7 @@ var PricingCard = ({
|
|
11434
11481
|
},
|
11435
11482
|
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
11436
11483
|
),
|
11437
|
-
/* @__PURE__ */
|
11484
|
+
/* @__PURE__ */ React96.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React96.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ React96.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ React96.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, (_c = props.texts) == null ? void 0 : _c.subtitle), props.discount && /* @__PURE__ */ React96.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ React96.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ React96.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.isLoadingPrice ? /* @__PURE__ */ React96.createElement(Skeleton, { className: "hawa-h-[48px] hawa-w-full hawa-max-w-[200px] hawa-p-0 " }) : /* @__PURE__ */ React96.createElement(React96.Fragment, null, props.noPrice ? /* @__PURE__ */ React96.createElement("div", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, ((_d = props.texts) == null ? void 0 : _d.priceless) || "Contact Us") : /* @__PURE__ */ React96.createElement(React96.Fragment, null, /* @__PURE__ */ React96.createElement(React96.Fragment, null, /* @__PURE__ */ React96.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-end hawa-gap-2" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ React96.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + ((_e = props.texts) == null ? void 0 : _e.currencyText)), /* @__PURE__ */ React96.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ React96.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, (_f = props.texts) == null ? void 0 : _f.currencyText)), /* @__PURE__ */ React96.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__ */ React96.createElement(Separator2, null), /* @__PURE__ */ React96.createElement(
|
11438
11485
|
"div",
|
11439
11486
|
{
|
11440
11487
|
className: cn(
|
@@ -11442,9 +11489,9 @@ var PricingCard = ({
|
|
11442
11489
|
endButton ? "hawa-flex-col" : "hawa-flex-col-reverse"
|
11443
11490
|
)
|
11444
11491
|
},
|
11445
|
-
props.features && /* @__PURE__ */
|
11492
|
+
props.features && /* @__PURE__ */ React96.createElement("ul", { role: "list", className: "hawa-space-y-0 hawa-overflow-x-auto" }, (_h = props.features) == null ? void 0 : _h.map((feature, o) => {
|
11446
11493
|
var _a2;
|
11447
|
-
return /* @__PURE__ */
|
11494
|
+
return /* @__PURE__ */ React96.createElement(
|
11448
11495
|
"li",
|
11449
11496
|
{
|
11450
11497
|
key: o,
|
@@ -11453,7 +11500,7 @@ var PricingCard = ({
|
|
11453
11500
|
!feature.included && "hawa-line-through"
|
11454
11501
|
)
|
11455
11502
|
},
|
11456
|
-
/* @__PURE__ */
|
11503
|
+
/* @__PURE__ */ React96.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center" }, feature.included ? /* @__PURE__ */ React96.createElement(
|
11457
11504
|
"svg",
|
11458
11505
|
{
|
11459
11506
|
"aria-label": "Check Icon",
|
@@ -11462,7 +11509,7 @@ var PricingCard = ({
|
|
11462
11509
|
fill: "currentColor",
|
11463
11510
|
viewBox: "0 0 20 20"
|
11464
11511
|
},
|
11465
|
-
/* @__PURE__ */
|
11512
|
+
/* @__PURE__ */ React96.createElement(
|
11466
11513
|
"path",
|
11467
11514
|
{
|
11468
11515
|
fillRule: "evenodd",
|
@@ -11470,7 +11517,7 @@ var PricingCard = ({
|
|
11470
11517
|
clipRule: "evenodd"
|
11471
11518
|
}
|
11472
11519
|
)
|
11473
|
-
) : /* @__PURE__ */
|
11520
|
+
) : /* @__PURE__ */ React96.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ React96.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__ */ React96.createElement(
|
11474
11521
|
Chip,
|
11475
11522
|
{
|
11476
11523
|
label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "",
|
@@ -11478,13 +11525,13 @@ var PricingCard = ({
|
|
11478
11525
|
size: "small"
|
11479
11526
|
}
|
11480
11527
|
))),
|
11481
|
-
feature.hint && /* @__PURE__ */
|
11528
|
+
feature.hint && /* @__PURE__ */ React96.createElement(
|
11482
11529
|
Tooltip,
|
11483
11530
|
{
|
11484
11531
|
content: feature.hint,
|
11485
11532
|
side: feature.hintSide
|
11486
11533
|
},
|
11487
|
-
/* @__PURE__ */
|
11534
|
+
/* @__PURE__ */ React96.createElement(
|
11488
11535
|
"svg",
|
11489
11536
|
{
|
11490
11537
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -11496,14 +11543,14 @@ var PricingCard = ({
|
|
11496
11543
|
strokeLinecap: "round",
|
11497
11544
|
strokeLinejoin: "round"
|
11498
11545
|
},
|
11499
|
-
/* @__PURE__ */
|
11500
|
-
/* @__PURE__ */
|
11501
|
-
/* @__PURE__ */
|
11546
|
+
/* @__PURE__ */ React96.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
11547
|
+
/* @__PURE__ */ React96.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
11548
|
+
/* @__PURE__ */ React96.createElement("path", { d: "M12 17h.01" })
|
11502
11549
|
)
|
11503
11550
|
)
|
11504
11551
|
);
|
11505
11552
|
})),
|
11506
|
-
/* @__PURE__ */
|
11553
|
+
/* @__PURE__ */ React96.createElement(
|
11507
11554
|
Button,
|
11508
11555
|
{
|
11509
11556
|
onClick: props.onPlanClicked,
|
@@ -11517,7 +11564,7 @@ var PricingCard = ({
|
|
11517
11564
|
};
|
11518
11565
|
|
11519
11566
|
// blocks/cards/ItemCard.tsx
|
11520
|
-
import
|
11567
|
+
import React97, { useEffect as useEffect21, useState as useState35 } from "react";
|
11521
11568
|
var ItemCard = ({
|
11522
11569
|
actions,
|
11523
11570
|
counts,
|
@@ -11559,7 +11606,7 @@ var ItemCard = ({
|
|
11559
11606
|
};
|
11560
11607
|
return () => window.onclick = null;
|
11561
11608
|
}, [openActionHeader]);
|
11562
|
-
return /* @__PURE__ */
|
11609
|
+
return /* @__PURE__ */ React97.createElement(
|
11563
11610
|
"div",
|
11564
11611
|
{
|
11565
11612
|
className: cn(
|
@@ -11575,7 +11622,7 @@ var ItemCard = ({
|
|
11575
11622
|
}
|
11576
11623
|
}
|
11577
11624
|
},
|
11578
|
-
cardImage && /* @__PURE__ */
|
11625
|
+
cardImage && /* @__PURE__ */ React97.createElement("div", { className: "hawa-group hawa-relative hawa-overflow-clip" }, /* @__PURE__ */ React97.createElement(
|
11579
11626
|
"img",
|
11580
11627
|
{
|
11581
11628
|
src: cardImage,
|
@@ -11584,7 +11631,7 @@ var ItemCard = ({
|
|
11584
11631
|
clickableImage ? "hawa-overflow-clip hawa-transition-all group-hover:hawa-blur-lg" : ""
|
11585
11632
|
)
|
11586
11633
|
}
|
11587
|
-
), clickableImage && /* @__PURE__ */
|
11634
|
+
), clickableImage && /* @__PURE__ */ React97.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React97.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__ */ React97.createElement(
|
11588
11635
|
Button,
|
11589
11636
|
{
|
11590
11637
|
variant: "secondary",
|
@@ -11594,19 +11641,19 @@ var ItemCard = ({
|
|
11594
11641
|
clickableImageActionIcon,
|
11595
11642
|
clickableImageActionText || "Click"
|
11596
11643
|
)))),
|
11597
|
-
/* @__PURE__ */
|
11644
|
+
/* @__PURE__ */ React97.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__ */ React97.createElement("div", { className: "hawa-absolute hawa-end-0 hawa-top-0 hawa-flex hawa-justify-end hawa-pe-3 hawa-pt-3" }, /* @__PURE__ */ React97.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React97.createElement(
|
11598
11645
|
DropdownMenu,
|
11599
11646
|
{
|
11600
11647
|
items: headerActions,
|
11601
|
-
trigger: /* @__PURE__ */
|
11648
|
+
trigger: /* @__PURE__ */ React97.createElement(
|
11602
11649
|
Button,
|
11603
11650
|
{
|
11604
11651
|
variant: "ghost",
|
11605
11652
|
size: "smallIcon",
|
11606
11653
|
onClick: handleOpenActionHeader
|
11607
11654
|
},
|
11608
|
-
/* @__PURE__ */
|
11609
|
-
/* @__PURE__ */
|
11655
|
+
/* @__PURE__ */ React97.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"),
|
11656
|
+
/* @__PURE__ */ React97.createElement(
|
11610
11657
|
"svg",
|
11611
11658
|
{
|
11612
11659
|
className: "hawa-h-5 hawa-w-5",
|
@@ -11614,11 +11661,11 @@ var ItemCard = ({
|
|
11614
11661
|
fill: "currentColor",
|
11615
11662
|
viewBox: "0 0 20 20"
|
11616
11663
|
},
|
11617
|
-
/* @__PURE__ */
|
11664
|
+
/* @__PURE__ */ React97.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" })
|
11618
11665
|
)
|
11619
11666
|
)
|
11620
11667
|
}
|
11621
|
-
))), /* @__PURE__ */
|
11668
|
+
))), /* @__PURE__ */ React97.createElement("div", { className: " hawa-mx-2" }, header && /* @__PURE__ */ React97.createElement("h5", { className: "hawa-mb-2 hawa-text-2xl hawa-font-bold hawa-tracking-tight " }, header), content && /* @__PURE__ */ React97.createElement("span", { className: "hawa-w-full hawa-font-normal " }, content)), actions || counts ? /* @__PURE__ */ React97.createElement(
|
11622
11669
|
"div",
|
11623
11670
|
{
|
11624
11671
|
className: cn(
|
@@ -11628,15 +11675,15 @@ var ItemCard = ({
|
|
11628
11675
|
)
|
11629
11676
|
},
|
11630
11677
|
counts,
|
11631
|
-
/* @__PURE__ */
|
11678
|
+
/* @__PURE__ */ React97.createElement(StopPropagationWrapper, null, actions)
|
11632
11679
|
) : null)
|
11633
11680
|
);
|
11634
11681
|
};
|
11635
11682
|
|
11636
11683
|
// blocks/cards/LandingCard.tsx
|
11637
|
-
import
|
11684
|
+
import React98 from "react";
|
11638
11685
|
var LandingCard = (props) => {
|
11639
|
-
return /* @__PURE__ */
|
11686
|
+
return /* @__PURE__ */ React98.createElement(Card, { className: props.className }, /* @__PURE__ */ React98.createElement(CardHeader, null, props.icon, /* @__PURE__ */ React98.createElement(CardTitle, null, props.title), /* @__PURE__ */ React98.createElement(CardDescription, null, props.subtitle)));
|
11640
11687
|
};
|
11641
11688
|
|
11642
11689
|
// blocks/pricing/PricingPlans.tsx
|
@@ -11645,7 +11692,7 @@ var PricingPlans = ({
|
|
11645
11692
|
cardsContainerProps,
|
11646
11693
|
...props
|
11647
11694
|
}) => {
|
11648
|
-
return /* @__PURE__ */
|
11695
|
+
return /* @__PURE__ */ React99.createElement("div", { ...mainContainerProps }, /* @__PURE__ */ React99.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ React99.createElement(
|
11649
11696
|
Radio,
|
11650
11697
|
{
|
11651
11698
|
name: "cycle",
|
@@ -11658,7 +11705,7 @@ var PricingPlans = ({
|
|
11658
11705
|
}
|
11659
11706
|
}
|
11660
11707
|
}
|
11661
|
-
), /* @__PURE__ */
|
11708
|
+
), /* @__PURE__ */ React99.createElement(
|
11662
11709
|
Radio,
|
11663
11710
|
{
|
11664
11711
|
name: "currency",
|
@@ -11671,7 +11718,7 @@ var PricingPlans = ({
|
|
11671
11718
|
}
|
11672
11719
|
}
|
11673
11720
|
}
|
11674
|
-
)), /* @__PURE__ */
|
11721
|
+
)), /* @__PURE__ */ React99.createElement(
|
11675
11722
|
"div",
|
11676
11723
|
{
|
11677
11724
|
className: "hawa-inline-grid hawa-w-full hawa-grid-cols-[repeat(auto-fit,_minmax(300px,_1fr))] hawa-gap-4",
|
@@ -11679,7 +11726,7 @@ var PricingPlans = ({
|
|
11679
11726
|
},
|
11680
11727
|
props.plans.map((plan, index) => {
|
11681
11728
|
var _a, _b;
|
11682
|
-
return /* @__PURE__ */
|
11729
|
+
return /* @__PURE__ */ React99.createElement(
|
11683
11730
|
PricingCard,
|
11684
11731
|
{
|
11685
11732
|
key: index,
|
@@ -11710,7 +11757,7 @@ var PricingPlans = ({
|
|
11710
11757
|
};
|
11711
11758
|
|
11712
11759
|
// blocks/pricing/ComparingPlans.tsx
|
11713
|
-
import
|
11760
|
+
import React100 from "react";
|
11714
11761
|
var ComparingPlans = (props) => {
|
11715
11762
|
const uniqueFeatures = Array.from(
|
11716
11763
|
new Set(
|
@@ -11719,7 +11766,7 @@ var ComparingPlans = (props) => {
|
|
11719
11766
|
)
|
11720
11767
|
)
|
11721
11768
|
);
|
11722
|
-
return /* @__PURE__ */
|
11769
|
+
return /* @__PURE__ */ React100.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ React100.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__ */ React100.createElement(
|
11723
11770
|
Radio,
|
11724
11771
|
{
|
11725
11772
|
name: "cycle",
|
@@ -11734,7 +11781,7 @@ var ComparingPlans = (props) => {
|
|
11734
11781
|
}
|
11735
11782
|
}
|
11736
11783
|
}
|
11737
|
-
), /* @__PURE__ */
|
11784
|
+
), /* @__PURE__ */ React100.createElement(
|
11738
11785
|
Radio,
|
11739
11786
|
{
|
11740
11787
|
name: "currency",
|
@@ -11749,7 +11796,7 @@ var ComparingPlans = (props) => {
|
|
11749
11796
|
}
|
11750
11797
|
}
|
11751
11798
|
}
|
11752
|
-
)), /* @__PURE__ */
|
11799
|
+
)), /* @__PURE__ */ React100.createElement(
|
11753
11800
|
"div",
|
11754
11801
|
{
|
11755
11802
|
className: cn(
|
@@ -11760,16 +11807,16 @@ var ComparingPlans = (props) => {
|
|
11760
11807
|
top: props.topPosition || 0
|
11761
11808
|
}
|
11762
11809
|
},
|
11763
|
-
/* @__PURE__ */
|
11764
|
-
props.plans.map((plan, i) => /* @__PURE__ */
|
11810
|
+
/* @__PURE__ */ React100.createElement("div", { className: "hawa-flex hawa-items-center" }),
|
11811
|
+
props.plans.map((plan, i) => /* @__PURE__ */ React100.createElement(
|
11765
11812
|
"div",
|
11766
11813
|
{
|
11767
11814
|
key: i,
|
11768
11815
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2"
|
11769
11816
|
},
|
11770
|
-
/* @__PURE__ */
|
11817
|
+
/* @__PURE__ */ React100.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React100.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React100.createElement("span", { className: "hawa-text-md hawa-font-bold " }, plan.texts.title), /* @__PURE__ */ React100.createElement("span", { className: "hawa-text-md hawa-font-normal hawa-text-muted-foreground " }, plan.texts.subtitle)), /* @__PURE__ */ React100.createElement("div", { className: " hawa-flex hawa-items-baseline " }, /* @__PURE__ */ React100.createElement(React100.Fragment, null, /* @__PURE__ */ React100.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, plan.price), /* @__PURE__ */ React100.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ React100.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal " }, "/ ", plan.texts.cycleText)))
|
11771
11818
|
))
|
11772
|
-
), /* @__PURE__ */
|
11819
|
+
), /* @__PURE__ */ React100.createElement(
|
11773
11820
|
ScrollArea,
|
11774
11821
|
{
|
11775
11822
|
className: "hawa-h-fit hawa-rounded hawa-rounded-t-none hawa-border hawa-border-t-0 hawa-bg-background",
|
@@ -11777,7 +11824,7 @@ var ComparingPlans = (props) => {
|
|
11777
11824
|
},
|
11778
11825
|
uniqueFeatures.map((featureText, featureIndex) => {
|
11779
11826
|
var _a, _b, _c, _d;
|
11780
|
-
return /* @__PURE__ */
|
11827
|
+
return /* @__PURE__ */ React100.createElement(
|
11781
11828
|
"div",
|
11782
11829
|
{
|
11783
11830
|
key: featureIndex,
|
@@ -11786,11 +11833,11 @@ var ComparingPlans = (props) => {
|
|
11786
11833
|
featureIndex === 0 ? "" : "hawa-border-t"
|
11787
11834
|
)
|
11788
11835
|
},
|
11789
|
-
/* @__PURE__ */
|
11836
|
+
/* @__PURE__ */ React100.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-foreground" }, featureText, props.plans.some(
|
11790
11837
|
(plan) => plan.features.some(
|
11791
11838
|
(feature) => feature.text === featureText && feature.hint
|
11792
11839
|
)
|
11793
|
-
) && /* @__PURE__ */
|
11840
|
+
) && /* @__PURE__ */ React100.createElement(
|
11794
11841
|
Tooltip,
|
11795
11842
|
{
|
11796
11843
|
side: "right",
|
@@ -11805,7 +11852,7 @@ var ComparingPlans = (props) => {
|
|
11805
11852
|
(feature) => feature.text === featureText
|
11806
11853
|
)) == null ? void 0 : _b.hint
|
11807
11854
|
},
|
11808
|
-
/* @__PURE__ */
|
11855
|
+
/* @__PURE__ */ React100.createElement(
|
11809
11856
|
"svg",
|
11810
11857
|
{
|
11811
11858
|
stroke: "currentColor",
|
@@ -11815,13 +11862,13 @@ var ComparingPlans = (props) => {
|
|
11815
11862
|
height: "1em",
|
11816
11863
|
width: "1em"
|
11817
11864
|
},
|
11818
|
-
/* @__PURE__ */
|
11865
|
+
/* @__PURE__ */ React100.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" })
|
11819
11866
|
)
|
11820
11867
|
), props.plans.some(
|
11821
11868
|
(plan) => plan.features.some(
|
11822
11869
|
(feature) => feature.text === featureText && feature.soon
|
11823
11870
|
)
|
11824
|
-
) && /* @__PURE__ */
|
11871
|
+
) && /* @__PURE__ */ React100.createElement(
|
11825
11872
|
Chip,
|
11826
11873
|
{
|
11827
11874
|
label: ((_d = (_c = props.plans.find(
|
@@ -11835,26 +11882,26 @@ var ComparingPlans = (props) => {
|
|
11835
11882
|
const feature = plan.features.find(
|
11836
11883
|
(f) => f.text === featureText
|
11837
11884
|
);
|
11838
|
-
return /* @__PURE__ */
|
11885
|
+
return /* @__PURE__ */ React100.createElement(
|
11839
11886
|
"div",
|
11840
11887
|
{
|
11841
11888
|
key: planIndex,
|
11842
11889
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-text-center"
|
11843
11890
|
},
|
11844
|
-
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */
|
11891
|
+
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */ React100.createElement(CheckMark, { className: "hawa-text-foreground" }) : /* @__PURE__ */ React100.createElement(UncheckMark, { className: "hawa-text-foreground" })
|
11845
11892
|
);
|
11846
11893
|
})
|
11847
11894
|
);
|
11848
11895
|
})
|
11849
|
-
), props.showButtons && /* @__PURE__ */
|
11896
|
+
), props.showButtons && /* @__PURE__ */ React100.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__ */ React100.createElement("div", { className: "hawa-flex hawa-items-center" }), props.plans.map((plan, i) => {
|
11850
11897
|
var _a;
|
11851
|
-
return /* @__PURE__ */
|
11898
|
+
return /* @__PURE__ */ React100.createElement(
|
11852
11899
|
"div",
|
11853
11900
|
{
|
11854
11901
|
key: i,
|
11855
11902
|
className: "hawa-flex hawa-items-center hawa-justify-center"
|
11856
11903
|
},
|
11857
|
-
/* @__PURE__ */
|
11904
|
+
/* @__PURE__ */ React100.createElement(
|
11858
11905
|
Button,
|
11859
11906
|
{
|
11860
11907
|
className: "hawa-w-full hawa-max-w-xs",
|
@@ -11878,7 +11925,7 @@ var ComparingPlans = (props) => {
|
|
11878
11925
|
};
|
11879
11926
|
|
11880
11927
|
// blocks/pricing/HorizontalPricing.tsx
|
11881
|
-
import
|
11928
|
+
import React101, { useState as useState36 } from "react";
|
11882
11929
|
var HorizontalPricing = (props) => {
|
11883
11930
|
const [selectedCard, setSelectedCard] = useState36("");
|
11884
11931
|
let data = [
|
@@ -11886,7 +11933,7 @@ var HorizontalPricing = (props) => {
|
|
11886
11933
|
{ title: "business", price: "$99", cycle: "/mo" },
|
11887
11934
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
11888
11935
|
];
|
11889
|
-
return /* @__PURE__ */
|
11936
|
+
return /* @__PURE__ */ React101.createElement("div", { className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm" }, /* @__PURE__ */ React101.createElement("div", { className: "hawa-max-w-2xl " }, /* @__PURE__ */ React101.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ React101.createElement(
|
11890
11937
|
Radio,
|
11891
11938
|
{
|
11892
11939
|
name: "currency",
|
@@ -11894,7 +11941,7 @@ var HorizontalPricing = (props) => {
|
|
11894
11941
|
options: props.currencies,
|
11895
11942
|
defaultValue: props.currentCurrency
|
11896
11943
|
}
|
11897
|
-
), /* @__PURE__ */
|
11944
|
+
), /* @__PURE__ */ React101.createElement(
|
11898
11945
|
Radio,
|
11899
11946
|
{
|
11900
11947
|
name: "cycle",
|
@@ -11902,7 +11949,7 @@ var HorizontalPricing = (props) => {
|
|
11902
11949
|
options: props.billingCycles,
|
11903
11950
|
defaultValue: props.currentCycle
|
11904
11951
|
}
|
11905
|
-
)), data.map((d, i) => /* @__PURE__ */
|
11952
|
+
)), data.map((d, i) => /* @__PURE__ */ React101.createElement(
|
11906
11953
|
"label",
|
11907
11954
|
{
|
11908
11955
|
key: i,
|
@@ -11910,7 +11957,7 @@ var HorizontalPricing = (props) => {
|
|
11910
11957
|
className: "",
|
11911
11958
|
onClick: () => setSelectedCard(d.title)
|
11912
11959
|
},
|
11913
|
-
/* @__PURE__ */
|
11960
|
+
/* @__PURE__ */ React101.createElement(
|
11914
11961
|
"input",
|
11915
11962
|
{
|
11916
11963
|
type: "radio",
|
@@ -11919,7 +11966,7 @@ var HorizontalPricing = (props) => {
|
|
11919
11966
|
className: "hawa-peer hawa-appearance-none"
|
11920
11967
|
}
|
11921
11968
|
),
|
11922
|
-
/* @__PURE__ */
|
11969
|
+
/* @__PURE__ */ React101.createElement(
|
11923
11970
|
"div",
|
11924
11971
|
{
|
11925
11972
|
className: cn(
|
@@ -11927,18 +11974,18 @@ var HorizontalPricing = (props) => {
|
|
11927
11974
|
"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"
|
11928
11975
|
)
|
11929
11976
|
},
|
11930
|
-
/* @__PURE__ */
|
11977
|
+
/* @__PURE__ */ React101.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ React101.createElement(CheckIcons, null), /* @__PURE__ */ React101.createElement(
|
11931
11978
|
CardText,
|
11932
11979
|
{
|
11933
11980
|
title: "Enterprise",
|
11934
11981
|
subtitle: "For startups and new businesses"
|
11935
11982
|
}
|
11936
11983
|
)),
|
11937
|
-
/* @__PURE__ */
|
11984
|
+
/* @__PURE__ */ React101.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
11938
11985
|
)
|
11939
11986
|
))));
|
11940
11987
|
};
|
11941
|
-
var CheckIcons = () => /* @__PURE__ */
|
11988
|
+
var CheckIcons = () => /* @__PURE__ */ React101.createElement(React101.Fragment, null, /* @__PURE__ */ React101.createElement(
|
11942
11989
|
"svg",
|
11943
11990
|
{
|
11944
11991
|
fill: "none",
|
@@ -11947,7 +11994,7 @@ var CheckIcons = () => /* @__PURE__ */ React100.createElement(React100.Fragment,
|
|
11947
11994
|
stroke: "currentColor",
|
11948
11995
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
11949
11996
|
},
|
11950
|
-
/* @__PURE__ */
|
11997
|
+
/* @__PURE__ */ React101.createElement(
|
11951
11998
|
"path",
|
11952
11999
|
{
|
11953
12000
|
strokeLinecap: "round",
|
@@ -11955,14 +12002,14 @@ var CheckIcons = () => /* @__PURE__ */ React100.createElement(React100.Fragment,
|
|
11955
12002
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
11956
12003
|
}
|
11957
12004
|
)
|
11958
|
-
), /* @__PURE__ */
|
12005
|
+
), /* @__PURE__ */ React101.createElement(
|
11959
12006
|
"svg",
|
11960
12007
|
{
|
11961
12008
|
viewBox: "0 0 24 24",
|
11962
12009
|
fill: "currentColor",
|
11963
12010
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
11964
12011
|
},
|
11965
|
-
/* @__PURE__ */
|
12012
|
+
/* @__PURE__ */ React101.createElement(
|
11966
12013
|
"path",
|
11967
12014
|
{
|
11968
12015
|
fillRule: "evenodd",
|
@@ -11971,14 +12018,14 @@ var CheckIcons = () => /* @__PURE__ */ React100.createElement(React100.Fragment,
|
|
11971
12018
|
}
|
11972
12019
|
)
|
11973
12020
|
));
|
11974
|
-
var CardText = (props) => /* @__PURE__ */
|
11975
|
-
var CardPrice = (props) => /* @__PURE__ */
|
12021
|
+
var CardText = (props) => /* @__PURE__ */ React101.createElement("div", { className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start " }, /* @__PURE__ */ React101.createElement("h2", { className: "hawa-font-medium hawa-text-primary/90 sm:hawa-text-xl" }, props.title), /* @__PURE__ */ React101.createElement("p", { className: "hawa-text-sm hawa-text-primary/60" }, props.subtitle, " "));
|
12022
|
+
var CardPrice = (props) => /* @__PURE__ */ React101.createElement("h2", { className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-primary sm:hawa-text-2xl" }, props.amount, /* @__PURE__ */ React101.createElement("span", { className: "hawa-text-base hawa-font-medium hawa-text-neutral-400" }, props.cycle));
|
11976
12023
|
|
11977
12024
|
// blocks/Usage.tsx
|
11978
|
-
import
|
12025
|
+
import React102 from "react";
|
11979
12026
|
var Usage = (props) => {
|
11980
12027
|
var _a;
|
11981
|
-
return /* @__PURE__ */
|
12028
|
+
return /* @__PURE__ */ React102.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__ */ React102.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, /* @__PURE__ */ React102.createElement("span", { className: "hawa-bg-white-200" }, props.title), props.tooltip && /* @__PURE__ */ React102.createElement(Tooltip, { content: props.tooltip }, /* @__PURE__ */ React102.createElement(
|
11982
12029
|
"svg",
|
11983
12030
|
{
|
11984
12031
|
stroke: "currentColor",
|
@@ -11989,8 +12036,8 @@ var Usage = (props) => {
|
|
11989
12036
|
height: "1em",
|
11990
12037
|
width: "1em"
|
11991
12038
|
},
|
11992
|
-
/* @__PURE__ */
|
11993
|
-
))), /* @__PURE__ */
|
12039
|
+
/* @__PURE__ */ React102.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" })
|
12040
|
+
))), /* @__PURE__ */ React102.createElement("div", { className: "hawa-bg-white-100 hawa-flex hawa-flex-row" }, /* @__PURE__ */ React102.createElement("div", null, props.currentUsage), /* @__PURE__ */ React102.createElement("div", null, " (", props.percent, "%)")), /* @__PURE__ */ React102.createElement(Progress, { value: (_a = props.percent) != null ? _a : 0 }));
|
11994
12041
|
};
|
11995
12042
|
|
11996
12043
|
// hooks/useIsomorphicEffect.ts
|
@@ -12004,7 +12051,7 @@ import { useState as useState37 } from "react";
|
|
12004
12051
|
import { useEffect as useEffect23, useRef as useRef15, useState as useState38 } from "react";
|
12005
12052
|
|
12006
12053
|
// hooks/useToast.ts
|
12007
|
-
import * as
|
12054
|
+
import * as React105 from "react";
|
12008
12055
|
var TOAST_LIMIT = 5;
|
12009
12056
|
var TOAST_REMOVE_DELAY = 1e5;
|
12010
12057
|
var count = 0;
|
@@ -12090,8 +12137,8 @@ function toast({ ...props }) {
|
|
12090
12137
|
return { id, dismiss, update };
|
12091
12138
|
}
|
12092
12139
|
function useToast() {
|
12093
|
-
const [state, setState] =
|
12094
|
-
|
12140
|
+
const [state, setState] = React105.useState(memoryState);
|
12141
|
+
React105.useEffect(() => {
|
12095
12142
|
listeners.push(setState);
|
12096
12143
|
return () => {
|
12097
12144
|
const index = listeners.indexOf(setState);
|
@@ -12464,6 +12511,8 @@ export {
|
|
12464
12511
|
PinInput,
|
12465
12512
|
Popover,
|
12466
12513
|
PopoverContent,
|
12514
|
+
PopoverPortal,
|
12515
|
+
PopoverRoot,
|
12467
12516
|
PopoverTrigger,
|
12468
12517
|
PricingCard,
|
12469
12518
|
PricingPlans,
|