@sikka/hawa 0.37.2-next → 0.38.0-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/{Radio-y9uhxitu.d.ts → Radio-lgoClQrv.d.ts} +2 -2
- package/dist/{Radio-BCD7k628.d.mts → Radio-uQ7DtzcI.d.mts} +2 -2
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/blocks/auth/index.d.mts +1 -0
- package/dist/blocks/auth/index.d.ts +1 -0
- package/dist/blocks/auth/index.js +207 -123
- package/dist/blocks/auth/index.mjs +204 -101
- package/dist/blocks/feedback/index.js +4 -40
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.d.mts +2 -1
- package/dist/blocks/index.d.ts +2 -1
- package/dist/blocks/index.js +457 -400
- package/dist/blocks/index.mjs +10 -8
- package/dist/blocks/misc/index.js +5 -32
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.js +4 -22
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/checkbox/index.d.mts +1 -1
- package/dist/checkbox/index.d.ts +1 -1
- package/dist/checkbox/index.js.map +1 -1
- package/dist/checkbox/index.mjs.map +1 -1
- package/dist/{chunk-BPHQFAWM.mjs → chunk-4EZL2A64.mjs} +3 -11
- package/dist/{chunk-DS3AACQJ.mjs → chunk-E6C3LDHD.mjs} +1 -1
- package/dist/{chunk-ODOCZAWC.mjs → chunk-E77TUADR.mjs} +1 -1
- package/dist/{chunk-QXH7ZDMN.mjs → chunk-IA5FLRFL.mjs} +3 -11
- package/dist/{chunk-ZTUWU652.mjs → chunk-JJMRBD3S.mjs} +3 -3
- package/dist/{chunk-RNFJAEEU.mjs → chunk-LDJD5ITW.mjs} +1 -0
- package/dist/{chunk-QYWOI3DO.mjs → chunk-MHSSZ6XE.mjs} +204 -144
- package/dist/{chunk-BTDR3VAG.mjs → chunk-Q3HJI7ZE.mjs} +4 -21
- package/dist/{chunk-MDHDHEPZ.mjs → chunk-TMUQCNLO.mjs} +3 -11
- package/dist/{chunk-PXGL7ZXQ.mjs → chunk-V4SUYEVH.mjs} +1 -0
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/colorPicker/index.d.mts +1 -1
- package/dist/colorPicker/index.d.ts +1 -1
- package/dist/colorPicker/index.js +35 -31
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs +33 -29
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/combobox/index.d.mts +1 -1
- package/dist/combobox/index.d.ts +1 -1
- package/dist/combobox/index.js +52 -48
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +52 -48
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/dataTable/index.js +1 -10
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +1 -10
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +42 -21
- package/dist/elements/index.d.ts +42 -21
- package/dist/elements/index.js +335 -290
- package/dist/elements/index.mjs +14 -23
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/index.css +29 -3
- package/dist/index.d.mts +44 -22
- package/dist/index.d.ts +44 -22
- package/dist/index.js +764 -717
- package/dist/index.mjs +287 -244
- package/dist/input/index.d.mts +1 -1
- package/dist/input/index.d.ts +1 -1
- package/dist/input/index.js +46 -42
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +45 -41
- package/dist/input/index.mjs.map +1 -1
- package/dist/interfaceSettings/index.js +64 -69
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +57 -62
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.mjs +2 -2
- package/dist/passwordInput/index.js +70 -66
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +59 -55
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js +50 -55
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +47 -52
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/pinInput/index.d.mts +37 -16
- package/dist/pinInput/index.d.ts +37 -16
- package/dist/pinInput/index.js +208 -78
- package/dist/pinInput/index.js.map +1 -1
- package/dist/pinInput/index.mjs +203 -77
- package/dist/pinInput/index.mjs.map +1 -1
- package/dist/radio/index.d.mts +1 -1
- package/dist/radio/index.d.ts +1 -1
- package/dist/radio/index.js +55 -60
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +50 -55
- package/dist/radio/index.mjs.map +1 -1
- package/dist/scrollArea/index.js +2 -2
- package/dist/scrollArea/index.js.map +1 -1
- package/dist/scrollArea/index.mjs +2 -2
- package/dist/scrollArea/index.mjs.map +1 -1
- package/dist/select/index.d.mts +1 -1
- package/dist/select/index.d.ts +1 -1
- package/dist/select/index.js +43 -39
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +43 -39
- package/dist/select/index.mjs.map +1 -1
- package/dist/signature/index.d.mts +1 -1
- package/dist/signature/index.d.ts +1 -1
- package/dist/signature/index.js.map +1 -1
- package/dist/signature/index.mjs.map +1 -1
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/stats/index.d.mts +1 -1
- package/dist/stats/index.d.ts +1 -1
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs.map +1 -1
- package/dist/tabs/index.js +2 -2
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +2 -2
- 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/textarea/index.js +34 -30
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs +34 -30
- package/dist/textarea/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/blocks/index.js
CHANGED
@@ -1362,16 +1362,7 @@ var Input = (0, import_react8.forwardRef)(
|
|
1362
1362
|
inputProps == null ? void 0 : inputProps.className
|
1363
1363
|
)
|
1364
1364
|
}
|
1365
|
-
)), !forceHideHelperText && /* @__PURE__ */ import_react8.default.createElement(
|
1366
|
-
"p",
|
1367
|
-
{
|
1368
|
-
className: cn(
|
1369
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
1370
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
1371
|
-
)
|
1372
|
-
},
|
1373
|
-
props.helperText
|
1374
|
-
), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react8.default.createElement(
|
1365
|
+
)), !forceHideHelperText && /* @__PURE__ */ import_react8.default.createElement(HelperText, { helperText: props.helperText }), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react8.default.createElement(
|
1375
1366
|
"div",
|
1376
1367
|
{
|
1377
1368
|
className: cn(
|
@@ -3267,16 +3258,7 @@ var Select = ({
|
|
3267
3258
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
3268
3259
|
}
|
3269
3260
|
),
|
3270
|
-
!props.hideHelperText && /* @__PURE__ */ import_react9.default.createElement(
|
3271
|
-
"p",
|
3272
|
-
{
|
3273
|
-
className: cn(
|
3274
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3275
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3276
|
-
)
|
3277
|
-
},
|
3278
|
-
props.helperText
|
3279
|
-
)
|
3261
|
+
!props.hideHelperText && /* @__PURE__ */ import_react9.default.createElement(HelperText, { helperText: props.helperText })
|
3280
3262
|
);
|
3281
3263
|
};
|
3282
3264
|
|
@@ -3333,16 +3315,7 @@ var PhoneInput = ({
|
|
3333
3315
|
),
|
3334
3316
|
...inputProps
|
3335
3317
|
}
|
3336
|
-
))), /* @__PURE__ */ import_react10.default.createElement(
|
3337
|
-
"p",
|
3338
|
-
{
|
3339
|
-
className: cn(
|
3340
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
3341
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
3342
|
-
)
|
3343
|
-
},
|
3344
|
-
props.helperText
|
3345
|
-
));
|
3318
|
+
))), /* @__PURE__ */ import_react10.default.createElement(HelperText, { helperText: props.helperText }));
|
3346
3319
|
};
|
3347
3320
|
|
3348
3321
|
// icons/Emojis.tsx
|
@@ -4627,106 +4600,168 @@ var ResetPasswordForm = ({
|
|
4627
4600
|
};
|
4628
4601
|
|
4629
4602
|
// blocks/auth/CodeConfirmation.tsx
|
4630
|
-
var
|
4603
|
+
var import_react24 = __toESM(require("react"));
|
4631
4604
|
var import_react_hook_form5 = require("react-hook-form");
|
4632
4605
|
var import_zod5 = require("@hookform/resolvers/zod");
|
4633
4606
|
var z5 = __toESM(require("zod"));
|
4634
4607
|
|
4635
4608
|
// elements/pinInput/PinInput.tsx
|
4636
|
-
var
|
4637
|
-
var
|
4638
|
-
|
4639
|
-
|
4640
|
-
|
4641
|
-
|
4642
|
-
|
4643
|
-
|
4644
|
-
|
4645
|
-
|
4646
|
-
|
4647
|
-
|
4648
|
-
|
4649
|
-
|
4650
|
-
|
4651
|
-
|
4652
|
-
|
4653
|
-
|
4654
|
-
|
4655
|
-
|
4656
|
-
|
4657
|
-
|
4658
|
-
|
4659
|
-
|
4660
|
-
|
4661
|
-
|
4662
|
-
|
4663
|
-
|
4664
|
-
|
4665
|
-
|
4666
|
-
|
4667
|
-
|
4668
|
-
|
4669
|
-
|
4670
|
-
|
4671
|
-
|
4672
|
-
|
4673
|
-
|
4674
|
-
|
4675
|
-
|
4676
|
-
|
4677
|
-
|
4678
|
-
}
|
4679
|
-
};
|
4680
|
-
return /* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react22.default.createElement(
|
4681
|
-
"div",
|
4682
|
-
{
|
4683
|
-
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
4684
|
-
dir: "ltr"
|
4685
|
-
},
|
4686
|
-
pin.map((value, index) => /* @__PURE__ */ import_react22.default.createElement(
|
4687
|
-
"input",
|
4609
|
+
var React25 = __toESM(require("react"));
|
4610
|
+
var import_input_otp = require("input-otp");
|
4611
|
+
|
4612
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
4613
|
+
var import_react23 = require("react");
|
4614
|
+
|
4615
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
4616
|
+
var toKebabCase = (string9) => string9.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
4617
|
+
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
4618
|
+
return Boolean(className) && array.indexOf(className) === index;
|
4619
|
+
}).join(" ");
|
4620
|
+
|
4621
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
4622
|
+
var import_react22 = require("react");
|
4623
|
+
|
4624
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
4625
|
+
var defaultAttributes = {
|
4626
|
+
xmlns: "http://www.w3.org/2000/svg",
|
4627
|
+
width: 24,
|
4628
|
+
height: 24,
|
4629
|
+
viewBox: "0 0 24 24",
|
4630
|
+
fill: "none",
|
4631
|
+
stroke: "currentColor",
|
4632
|
+
strokeWidth: 2,
|
4633
|
+
strokeLinecap: "round",
|
4634
|
+
strokeLinejoin: "round"
|
4635
|
+
};
|
4636
|
+
|
4637
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
4638
|
+
var Icon = (0, import_react22.forwardRef)(
|
4639
|
+
({
|
4640
|
+
color = "currentColor",
|
4641
|
+
size = 24,
|
4642
|
+
strokeWidth = 2,
|
4643
|
+
absoluteStrokeWidth,
|
4644
|
+
className = "",
|
4645
|
+
children,
|
4646
|
+
iconNode,
|
4647
|
+
...rest
|
4648
|
+
}, ref) => {
|
4649
|
+
return (0, import_react22.createElement)(
|
4650
|
+
"svg",
|
4688
4651
|
{
|
4689
|
-
|
4690
|
-
|
4691
|
-
|
4692
|
-
|
4693
|
-
|
4694
|
-
|
4695
|
-
|
4696
|
-
|
4697
|
-
|
4698
|
-
|
4699
|
-
),
|
4700
|
-
|
4701
|
-
|
4702
|
-
|
4703
|
-
|
4704
|
-
|
4705
|
-
|
4706
|
-
|
4707
|
-
|
4652
|
+
ref,
|
4653
|
+
...defaultAttributes,
|
4654
|
+
width: size,
|
4655
|
+
height: size,
|
4656
|
+
stroke: color,
|
4657
|
+
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
4658
|
+
className: mergeClasses("lucide", className),
|
4659
|
+
...rest
|
4660
|
+
},
|
4661
|
+
[
|
4662
|
+
...iconNode.map(([tag, attrs]) => (0, import_react22.createElement)(tag, attrs)),
|
4663
|
+
...Array.isArray(children) ? children : [children]
|
4664
|
+
]
|
4665
|
+
);
|
4666
|
+
}
|
4667
|
+
);
|
4668
|
+
|
4669
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
4670
|
+
var createLucideIcon = (iconName, iconNode) => {
|
4671
|
+
const Component = (0, import_react23.forwardRef)(
|
4672
|
+
({ className, ...props }, ref) => (0, import_react23.createElement)(Icon, {
|
4673
|
+
ref,
|
4674
|
+
iconNode,
|
4675
|
+
className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),
|
4676
|
+
...props
|
4677
|
+
})
|
4678
|
+
);
|
4679
|
+
Component.displayName = `${iconName}`;
|
4680
|
+
return Component;
|
4681
|
+
};
|
4682
|
+
|
4683
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
4684
|
+
var Dot = createLucideIcon("Dot", [
|
4685
|
+
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
4686
|
+
]);
|
4687
|
+
|
4688
|
+
// elements/pinInput/PinInput.tsx
|
4689
|
+
var PinInputRoot = React25.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
4690
|
+
import_input_otp.OTPInput,
|
4691
|
+
{
|
4692
|
+
ref,
|
4693
|
+
containerClassName: cn(
|
4694
|
+
"hawa-flex hawa-items-center hawa-gap-2 has-[:disabled]:hawa-opacity-50",
|
4695
|
+
containerClassName
|
4696
|
+
),
|
4697
|
+
className: cn("disabled:hawa-cursor-not-allowed", className),
|
4698
|
+
...props
|
4699
|
+
}
|
4700
|
+
));
|
4701
|
+
PinInputRoot.displayName = "PinInputRoot";
|
4702
|
+
var PinInputGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
4703
|
+
"div",
|
4704
|
+
{
|
4705
|
+
ref,
|
4706
|
+
className: cn("hawa-flex hawa-items-center", className),
|
4707
|
+
...props
|
4708
|
+
}
|
4709
|
+
));
|
4710
|
+
PinInputGroup.displayName = "PinInputGroup";
|
4711
|
+
var PinInputSlot = React25.forwardRef(({ index, className, ...props }, ref) => {
|
4712
|
+
const pinInputContext = React25.useContext(import_input_otp.OTPInputContext);
|
4713
|
+
const { char, hasFakeCaret, isActive } = pinInputContext.slots[index];
|
4714
|
+
return /* @__PURE__ */ React25.createElement(
|
4715
|
+
"div",
|
4708
4716
|
{
|
4717
|
+
ref,
|
4709
4718
|
className: cn(
|
4710
|
-
"hawa-
|
4711
|
-
|
4712
|
-
|
4719
|
+
"hawa-border-input hawa-relative hawa-flex hawa-h-10 hawa-w-10 hawa-items-center hawa-justify-center hawa-border-y hawa-border-r hawa-text-sm hawa-transition-all first:hawa-rounded-l-md first:hawa-border-l last:hawa-rounded-r-md",
|
4720
|
+
isActive && "hawa-ring-ring hawa-ring-offset-background hawa-z-10 hawa-ring-2",
|
4721
|
+
className
|
4722
|
+
),
|
4723
|
+
...props
|
4713
4724
|
},
|
4714
|
-
|
4715
|
-
|
4725
|
+
char,
|
4726
|
+
hasFakeCaret && /* @__PURE__ */ React25.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-inset-0 hawa-flex hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React25.createElement("div", { className: "hawa-animate-caret-blink hawa-bg-foreground hawa-h-4 hawa-w-px hawa-duration-1000" }))
|
4727
|
+
);
|
4728
|
+
});
|
4729
|
+
PinInputSlot.displayName = "PinInputSlot";
|
4730
|
+
var PinInputSeperator = React25.forwardRef(({ ...props }, ref) => /* @__PURE__ */ React25.createElement("div", { ref, role: "separator", ...props }, /* @__PURE__ */ React25.createElement(Dot, null)));
|
4731
|
+
PinInputSeperator.displayName = "PinInputSeperator";
|
4732
|
+
var PinInput = ({
|
4733
|
+
separatorPosition = 0,
|
4734
|
+
...props
|
4735
|
+
}) => {
|
4736
|
+
const maxLength = props.maxLength || 6;
|
4737
|
+
const clampedSeparatorPosition = Math.min(separatorPosition, maxLength);
|
4738
|
+
const firstGroupLength = clampedSeparatorPosition > 0 ? clampedSeparatorPosition : 0;
|
4739
|
+
const secondGroupLength = maxLength - firstGroupLength;
|
4740
|
+
return /* @__PURE__ */ React25.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React25.createElement(PinInputRoot, { ...props }, firstGroupLength > 0 && /* @__PURE__ */ React25.createElement(PinInputGroup, { className: "hawa-w-full" }, [...Array(firstGroupLength)].map((_, index) => /* @__PURE__ */ React25.createElement(PinInputSlot, { key: index, index, className: "hawa-w-full" }))), separatorPosition > 0 && separatorPosition < props.maxLength && /* @__PURE__ */ React25.createElement(PinInputSeperator, null), secondGroupLength > 0 && /* @__PURE__ */ React25.createElement(PinInputGroup, { className: "hawa-w-full" }, [...Array(secondGroupLength)].map((_, index) => /* @__PURE__ */ React25.createElement(
|
4741
|
+
PinInputSlot,
|
4742
|
+
{
|
4743
|
+
key: index + firstGroupLength,
|
4744
|
+
index: index + firstGroupLength,
|
4745
|
+
className: "hawa-w-full"
|
4746
|
+
}
|
4747
|
+
)))), /* @__PURE__ */ React25.createElement(HelperText, { helperText: props.helperText }));
|
4716
4748
|
};
|
4717
4749
|
|
4718
4750
|
// blocks/auth/CodeConfirmation.tsx
|
4719
|
-
var CodeConfirmation = (
|
4751
|
+
var CodeConfirmation = ({
|
4752
|
+
codeLength = 6,
|
4753
|
+
...props
|
4754
|
+
}) => {
|
4720
4755
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
4721
4756
|
const formSchema = z5.object({
|
4722
|
-
otp_code: z5.string({ required_error: (_a = props.texts) == null ? void 0 : _a.codeRequiredText }).min(
|
4757
|
+
otp_code: z5.string({ required_error: (_a = props.texts) == null ? void 0 : _a.codeRequiredText }).min(codeLength, { message: (_b = props.texts) == null ? void 0 : _b.codeTooShort })
|
4723
4758
|
});
|
4724
4759
|
const { handleSubmit, control, formState, setValue } = (0, import_react_hook_form5.useForm)({
|
4725
4760
|
resolver: (0, import_zod5.zodResolver)(formSchema)
|
4726
4761
|
});
|
4727
|
-
const [resendTimer, setResendTimer] = (0,
|
4728
|
-
const [remainingTime, setRemainingTime] = (0,
|
4729
|
-
const [showResendTimer, setShowResendTimer] = (0,
|
4762
|
+
const [resendTimer, setResendTimer] = (0, import_react24.useState)(null);
|
4763
|
+
const [remainingTime, setRemainingTime] = (0, import_react24.useState)(0);
|
4764
|
+
const [showResendTimer, setShowResendTimer] = (0, import_react24.useState)(false);
|
4730
4765
|
const startResendTimer = () => {
|
4731
4766
|
if (resendTimer !== null) {
|
4732
4767
|
clearInterval(resendTimer);
|
@@ -4748,21 +4783,21 @@ var CodeConfirmation = (props) => {
|
|
4748
4783
|
}, 1e3);
|
4749
4784
|
setResendTimer(newTimer);
|
4750
4785
|
};
|
4751
|
-
(0,
|
4786
|
+
(0, import_react24.useEffect)(() => {
|
4752
4787
|
return () => {
|
4753
4788
|
if (resendTimer !== null) {
|
4754
4789
|
clearInterval(resendTimer);
|
4755
4790
|
}
|
4756
4791
|
};
|
4757
4792
|
}, []);
|
4758
|
-
return /* @__PURE__ */
|
4793
|
+
return /* @__PURE__ */ import_react24.default.createElement(Card, null, /* @__PURE__ */ import_react24.default.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ import_react24.default.createElement(
|
4759
4794
|
Alert,
|
4760
4795
|
{
|
4761
4796
|
title: props.errorTitle,
|
4762
4797
|
text: props.errorText,
|
4763
4798
|
severity: "error"
|
4764
4799
|
}
|
4765
|
-
), /* @__PURE__ */
|
4800
|
+
), /* @__PURE__ */ import_react24.default.createElement("div", { className: "hawa-mb-4 dark:hawa-text-white" }, /* @__PURE__ */ import_react24.default.createElement("div", { className: "hawa-text-lg hawa-font-bold" }, ((_c = props.texts) == null ? void 0 : _c.checkYourPhone) || "Please check your phone"), /* @__PURE__ */ import_react24.default.createElement("div", { className: "hawa-text-muted-foreground" }, /* @__PURE__ */ import_react24.default.createElement("span", null, ((_d = props.texts) == null ? void 0 : _d.weSentCode) || "We've sent a code to "), /* @__PURE__ */ import_react24.default.createElement("span", null, props.phoneNumber))), /* @__PURE__ */ import_react24.default.createElement(
|
4766
4801
|
"form",
|
4767
4802
|
{
|
4768
4803
|
noValidate: true,
|
@@ -4776,26 +4811,25 @@ var CodeConfirmation = (props) => {
|
|
4776
4811
|
}
|
4777
4812
|
})
|
4778
4813
|
},
|
4779
|
-
/* @__PURE__ */
|
4814
|
+
/* @__PURE__ */ import_react24.default.createElement(
|
4780
4815
|
import_react_hook_form5.Controller,
|
4781
4816
|
{
|
4782
4817
|
control,
|
4783
4818
|
name: "otp_code",
|
4784
4819
|
render: ({ field }) => {
|
4785
4820
|
var _a2;
|
4786
|
-
return /* @__PURE__ */
|
4821
|
+
return /* @__PURE__ */ import_react24.default.createElement(
|
4787
4822
|
PinInput,
|
4788
4823
|
{
|
4789
|
-
|
4790
|
-
|
4791
|
-
|
4792
|
-
helperText: (_a2 = formState.errors.otp_code) == null ? void 0 : _a2.message
|
4824
|
+
maxLength: codeLength,
|
4825
|
+
helperText: (_a2 = formState.errors.otp_code) == null ? void 0 : _a2.message,
|
4826
|
+
...field
|
4793
4827
|
}
|
4794
4828
|
);
|
4795
4829
|
}
|
4796
4830
|
}
|
4797
4831
|
),
|
4798
|
-
showResendTimer ? /* @__PURE__ */
|
4832
|
+
showResendTimer ? /* @__PURE__ */ import_react24.default.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__ */ import_react24.default.createElement("strong", null, remainingTime), " ", (_f = props.texts) == null ? void 0 : _f.seconds) : /* @__PURE__ */ import_react24.default.createElement("div", { className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground" }, /* @__PURE__ */ import_react24.default.createElement("span", null, (_h = (_g = props.texts) == null ? void 0 : _g.didntGetCode) != null ? _h : "Didn't get the code?"), " ", /* @__PURE__ */ import_react24.default.createElement(
|
4799
4833
|
"span",
|
4800
4834
|
{
|
4801
4835
|
className: "clickable-link",
|
@@ -4806,18 +4840,18 @@ var CodeConfirmation = (props) => {
|
|
4806
4840
|
},
|
4807
4841
|
((_i = props.texts) == null ? void 0 : _i.resendCode) || "Click to resend"
|
4808
4842
|
)),
|
4809
|
-
/* @__PURE__ */
|
4843
|
+
/* @__PURE__ */ import_react24.default.createElement("div", { className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2" }, /* @__PURE__ */ import_react24.default.createElement(Button, { variant: "outline" }, ((_j = props.texts) == null ? void 0 : _j.cancel) || "Cancel"), /* @__PURE__ */ import_react24.default.createElement(Button, { isLoading: props.confirmLoading }, ((_k = props.texts) == null ? void 0 : _k.confirm) || "Confirm"))
|
4810
4844
|
)));
|
4811
4845
|
};
|
4812
4846
|
|
4813
4847
|
// blocks/feedback/UserReferralSource.tsx
|
4814
|
-
var
|
4848
|
+
var import_react26 = __toESM(require("react"));
|
4815
4849
|
var import_react_hook_form6 = require("react-hook-form");
|
4816
4850
|
var import_zod6 = require("@hookform/resolvers/zod");
|
4817
4851
|
var z6 = __toESM(require("zod"));
|
4818
4852
|
|
4819
4853
|
// elements/radio/Radio.tsx
|
4820
|
-
var
|
4854
|
+
var import_react25 = __toESM(require("react"));
|
4821
4855
|
|
4822
4856
|
// elements/popover/Popover.tsx
|
4823
4857
|
var React27 = __toESM(require("react"));
|
@@ -4885,7 +4919,7 @@ var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
4885
4919
|
var PopoverRoot = PopoverPrimitive.Root;
|
4886
4920
|
|
4887
4921
|
// elements/radio/Radio.tsx
|
4888
|
-
var Radio = (0,
|
4922
|
+
var Radio = (0, import_react25.forwardRef)(
|
4889
4923
|
({
|
4890
4924
|
design = "default",
|
4891
4925
|
width = "default",
|
@@ -4917,15 +4951,15 @@ var Radio = (0, import_react24.forwardRef)(
|
|
4917
4951
|
default: "hawa-max-w-fit",
|
4918
4952
|
full: "hawa-w-full"
|
4919
4953
|
};
|
4920
|
-
const [parentDirection, setParentDirection] =
|
4954
|
+
const [parentDirection, setParentDirection] = import_react25.default.useState(
|
4921
4955
|
null
|
4922
4956
|
);
|
4923
|
-
const [selectedOption, setSelectedOption] = (0,
|
4957
|
+
const [selectedOption, setSelectedOption] = (0, import_react25.useState)(
|
4924
4958
|
props.defaultValue || props.value
|
4925
4959
|
);
|
4926
|
-
const [openTooltip, setOpenTooltip] = (0,
|
4927
|
-
const parentRef = (0,
|
4928
|
-
(0,
|
4960
|
+
const [openTooltip, setOpenTooltip] = (0, import_react25.useState)(null);
|
4961
|
+
const parentRef = (0, import_react25.useRef)(null);
|
4962
|
+
(0, import_react25.useEffect)(() => {
|
4929
4963
|
var _a2;
|
4930
4964
|
const parentNode = (_a2 = parentRef.current) == null ? void 0 : _a2.parentNode;
|
4931
4965
|
if (parentNode) {
|
@@ -4951,7 +4985,7 @@ var Radio = (0, import_react24.forwardRef)(
|
|
4951
4985
|
];
|
4952
4986
|
switch (design) {
|
4953
4987
|
case "tabs":
|
4954
|
-
return /* @__PURE__ */
|
4988
|
+
return /* @__PURE__ */ import_react25.default.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ import_react25.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react25.default.createElement(
|
4955
4989
|
"ul",
|
4956
4990
|
{
|
4957
4991
|
ref: parentRef,
|
@@ -4964,21 +4998,21 @@ var Radio = (0, import_react24.forwardRef)(
|
|
4964
4998
|
)
|
4965
4999
|
},
|
4966
5000
|
(_b = props.options) == null ? void 0 : _b.map((opt, o) => {
|
4967
|
-
return opt.tooltip ? /* @__PURE__ */
|
5001
|
+
return opt.tooltip ? /* @__PURE__ */ import_react25.default.createElement(
|
4968
5002
|
PopoverRoot,
|
4969
5003
|
{
|
4970
5004
|
key: o,
|
4971
5005
|
open: o === openTooltip,
|
4972
5006
|
onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
|
4973
5007
|
},
|
4974
|
-
/* @__PURE__ */
|
5008
|
+
/* @__PURE__ */ import_react25.default.createElement(
|
4975
5009
|
PopoverTrigger,
|
4976
5010
|
{
|
4977
5011
|
onMouseEnter: () => setOpenTooltip(o),
|
4978
5012
|
onMouseLeave: () => setOpenTooltip(null),
|
4979
5013
|
asChild: true
|
4980
5014
|
},
|
4981
|
-
/* @__PURE__ */
|
5015
|
+
/* @__PURE__ */ import_react25.default.createElement(
|
4982
5016
|
"li",
|
4983
5017
|
{
|
4984
5018
|
"aria-current": "page",
|
@@ -4996,8 +5030,8 @@ var Radio = (0, import_react24.forwardRef)(
|
|
4996
5030
|
opt.label
|
4997
5031
|
)
|
4998
5032
|
),
|
4999
|
-
/* @__PURE__ */
|
5000
|
-
) : /* @__PURE__ */
|
5033
|
+
/* @__PURE__ */ import_react25.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
5034
|
+
) : /* @__PURE__ */ import_react25.default.createElement(
|
5001
5035
|
"li",
|
5002
5036
|
{
|
5003
5037
|
key: o,
|
@@ -5016,18 +5050,9 @@ var Radio = (0, import_react24.forwardRef)(
|
|
5016
5050
|
opt.label
|
5017
5051
|
);
|
5018
5052
|
})
|
5019
|
-
), !forceHideHelperText && /* @__PURE__ */
|
5020
|
-
"p",
|
5021
|
-
{
|
5022
|
-
className: cn(
|
5023
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
5024
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
5025
|
-
)
|
5026
|
-
},
|
5027
|
-
props.helperText
|
5028
|
-
));
|
5053
|
+
), !forceHideHelperText && /* @__PURE__ */ import_react25.default.createElement(HelperText, { helperText: props.helperText }));
|
5029
5054
|
case "bordered":
|
5030
|
-
return /* @__PURE__ */
|
5055
|
+
return /* @__PURE__ */ import_react25.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react25.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react25.default.createElement(
|
5031
5056
|
"div",
|
5032
5057
|
{
|
5033
5058
|
className: cn(
|
@@ -5036,7 +5061,7 @@ var Radio = (0, import_react24.forwardRef)(
|
|
5036
5061
|
),
|
5037
5062
|
key: i + 1
|
5038
5063
|
},
|
5039
|
-
/* @__PURE__ */
|
5064
|
+
/* @__PURE__ */ import_react25.default.createElement(
|
5040
5065
|
"input",
|
5041
5066
|
{
|
5042
5067
|
disabled: opt.disabled,
|
@@ -5047,7 +5072,7 @@ var Radio = (0, import_react24.forwardRef)(
|
|
5047
5072
|
onChange: () => handleChange(opt)
|
5048
5073
|
}
|
5049
5074
|
),
|
5050
|
-
/* @__PURE__ */
|
5075
|
+
/* @__PURE__ */ import_react25.default.createElement(
|
5051
5076
|
"label",
|
5052
5077
|
{
|
5053
5078
|
htmlFor: opt.value.toString(),
|
@@ -5060,7 +5085,7 @@ var Radio = (0, import_react24.forwardRef)(
|
|
5060
5085
|
)
|
5061
5086
|
))));
|
5062
5087
|
case "cards":
|
5063
|
-
return /* @__PURE__ */
|
5088
|
+
return /* @__PURE__ */ import_react25.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react25.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react25.default.createElement(
|
5064
5089
|
"input",
|
5065
5090
|
{
|
5066
5091
|
type: "radio",
|
@@ -5071,7 +5096,7 @@ var Radio = (0, import_react24.forwardRef)(
|
|
5071
5096
|
required: true,
|
5072
5097
|
disabled: opt.disabled
|
5073
5098
|
}
|
5074
|
-
), /* @__PURE__ */
|
5099
|
+
), /* @__PURE__ */ import_react25.default.createElement(
|
5075
5100
|
"label",
|
5076
5101
|
{
|
5077
5102
|
htmlFor: opt.value.toString(),
|
@@ -5080,10 +5105,10 @@ var Radio = (0, import_react24.forwardRef)(
|
|
5080
5105
|
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-foreground/10 hover:hawa-text-gray-600 dark:hover:hawa-bg-foreground/20 dark:hover:hawa-text-gray-300"
|
5081
5106
|
)
|
5082
5107
|
},
|
5083
|
-
/* @__PURE__ */
|
5108
|
+
/* @__PURE__ */ import_react25.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react25.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react25.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
5084
5109
|
))));
|
5085
5110
|
default:
|
5086
|
-
return /* @__PURE__ */
|
5111
|
+
return /* @__PURE__ */ import_react25.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react25.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react25.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react25.default.createElement(
|
5087
5112
|
"div",
|
5088
5113
|
{
|
5089
5114
|
className: cn(
|
@@ -5092,7 +5117,7 @@ var Radio = (0, import_react24.forwardRef)(
|
|
5092
5117
|
),
|
5093
5118
|
key: i + 1
|
5094
5119
|
},
|
5095
|
-
/* @__PURE__ */
|
5120
|
+
/* @__PURE__ */ import_react25.default.createElement(
|
5096
5121
|
"input",
|
5097
5122
|
{
|
5098
5123
|
disabled: opt.disabled,
|
@@ -5103,7 +5128,7 @@ var Radio = (0, import_react24.forwardRef)(
|
|
5103
5128
|
onChange: () => handleChange(opt)
|
5104
5129
|
}
|
5105
5130
|
),
|
5106
|
-
/* @__PURE__ */
|
5131
|
+
/* @__PURE__ */ import_react25.default.createElement(
|
5107
5132
|
"label",
|
5108
5133
|
{
|
5109
5134
|
htmlFor: opt.value.toString(),
|
@@ -5114,16 +5139,7 @@ var Radio = (0, import_react24.forwardRef)(
|
|
5114
5139
|
},
|
5115
5140
|
opt.label
|
5116
5141
|
)
|
5117
|
-
))), /* @__PURE__ */
|
5118
|
-
"p",
|
5119
|
-
{
|
5120
|
-
className: cn(
|
5121
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
5122
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
5123
|
-
)
|
5124
|
-
},
|
5125
|
-
props.helperText
|
5126
|
-
));
|
5142
|
+
))), /* @__PURE__ */ import_react25.default.createElement(HelperText, { helperText: props.helperText }));
|
5127
5143
|
}
|
5128
5144
|
}
|
5129
5145
|
);
|
@@ -5171,16 +5187,7 @@ var Textarea = React29.forwardRef(
|
|
5171
5187
|
ref
|
5172
5188
|
}
|
5173
5189
|
),
|
5174
|
-
/* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React29.createElement(
|
5175
|
-
"p",
|
5176
|
-
{
|
5177
|
-
className: cn(
|
5178
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
5179
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
5180
|
-
)
|
5181
|
-
},
|
5182
|
-
props.helperText
|
5183
|
-
), showCount && countPosition === "bottom" && /* @__PURE__ */ React29.createElement("div", { className: "hawa-text-start hawa-text-xs hawa-transition-all" }, (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0, "/", textareaProps == null ? void 0 : textareaProps.maxLength))
|
5190
|
+
/* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React29.createElement(HelperText, { helperText: props.helperText }), showCount && countPosition === "bottom" && /* @__PURE__ */ React29.createElement("div", { className: "hawa-text-start hawa-text-xs hawa-transition-all" }, (textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0, "/", textareaProps == null ? void 0 : textareaProps.maxLength))
|
5184
5191
|
);
|
5185
5192
|
}
|
5186
5193
|
);
|
@@ -5193,8 +5200,8 @@ var UserReferralSource = ({
|
|
5193
5200
|
...props
|
5194
5201
|
}) => {
|
5195
5202
|
var _a, _b;
|
5196
|
-
const [closed, setClosed] = (0,
|
5197
|
-
const popUpRef = (0,
|
5203
|
+
const [closed, setClosed] = (0, import_react26.useState)(false);
|
5204
|
+
const popUpRef = (0, import_react26.useRef)(null);
|
5198
5205
|
const formSchema = z6.object({
|
5199
5206
|
source: z6.string({ required_error: (_a = props.texts) == null ? void 0 : _a.pleaseSelectOption }),
|
5200
5207
|
feedback: z6.string().optional()
|
@@ -5214,7 +5221,7 @@ var UserReferralSource = ({
|
|
5214
5221
|
label: "Other"
|
5215
5222
|
}
|
5216
5223
|
];
|
5217
|
-
return /* @__PURE__ */
|
5224
|
+
return /* @__PURE__ */ import_react26.default.createElement(
|
5218
5225
|
"div",
|
5219
5226
|
{
|
5220
5227
|
className: cn(
|
@@ -5223,7 +5230,7 @@ var UserReferralSource = ({
|
|
5223
5230
|
),
|
5224
5231
|
ref: popUpRef
|
5225
5232
|
},
|
5226
|
-
/* @__PURE__ */
|
5233
|
+
/* @__PURE__ */ import_react26.default.createElement(
|
5227
5234
|
Card,
|
5228
5235
|
{
|
5229
5236
|
className: cn(
|
@@ -5232,7 +5239,7 @@ var UserReferralSource = ({
|
|
5232
5239
|
),
|
5233
5240
|
dir: props.direction
|
5234
5241
|
},
|
5235
|
-
/* @__PURE__ */
|
5242
|
+
/* @__PURE__ */ import_react26.default.createElement(
|
5236
5243
|
"button",
|
5237
5244
|
{
|
5238
5245
|
type: "button",
|
@@ -5251,7 +5258,7 @@ var UserReferralSource = ({
|
|
5251
5258
|
}, 200);
|
5252
5259
|
}
|
5253
5260
|
},
|
5254
|
-
/* @__PURE__ */
|
5261
|
+
/* @__PURE__ */ import_react26.default.createElement(
|
5255
5262
|
"svg",
|
5256
5263
|
{
|
5257
5264
|
"aria-hidden": "true",
|
@@ -5259,7 +5266,7 @@ var UserReferralSource = ({
|
|
5259
5266
|
fill: "currentColor",
|
5260
5267
|
viewBox: "0 0 20 20"
|
5261
5268
|
},
|
5262
|
-
/* @__PURE__ */
|
5269
|
+
/* @__PURE__ */ import_react26.default.createElement(
|
5263
5270
|
"path",
|
5264
5271
|
{
|
5265
5272
|
fillRule: "evenodd",
|
@@ -5269,7 +5276,7 @@ var UserReferralSource = ({
|
|
5269
5276
|
)
|
5270
5277
|
)
|
5271
5278
|
),
|
5272
|
-
/* @__PURE__ */
|
5279
|
+
/* @__PURE__ */ import_react26.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react26.default.createElement(
|
5273
5280
|
"form",
|
5274
5281
|
{
|
5275
5282
|
noValidate: true,
|
@@ -5281,7 +5288,7 @@ var UserReferralSource = ({
|
|
5281
5288
|
}
|
5282
5289
|
})
|
5283
5290
|
},
|
5284
|
-
/* @__PURE__ */
|
5291
|
+
/* @__PURE__ */ import_react26.default.createElement(
|
5285
5292
|
"div",
|
5286
5293
|
{
|
5287
5294
|
className: cn(
|
@@ -5289,15 +5296,15 @@ var UserReferralSource = ({
|
|
5289
5296
|
closed ? "hawa-opacity-0" : "hawa-opacity-100"
|
5290
5297
|
)
|
5291
5298
|
},
|
5292
|
-
/* @__PURE__ */
|
5293
|
-
/* @__PURE__ */
|
5299
|
+
/* @__PURE__ */ import_react26.default.createElement("div", { className: "hawa-mt-4 hawa-font-bold" }, props.question),
|
5300
|
+
/* @__PURE__ */ import_react26.default.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded " }, /* @__PURE__ */ import_react26.default.createElement(
|
5294
5301
|
import_react_hook_form6.Controller,
|
5295
5302
|
{
|
5296
5303
|
control,
|
5297
5304
|
name: "source",
|
5298
5305
|
render: ({ field }) => {
|
5299
5306
|
var _a2, _b2;
|
5300
|
-
return /* @__PURE__ */
|
5307
|
+
return /* @__PURE__ */ import_react26.default.createElement(
|
5301
5308
|
Radio,
|
5302
5309
|
{
|
5303
5310
|
name: "source",
|
@@ -5312,14 +5319,14 @@ var UserReferralSource = ({
|
|
5312
5319
|
}
|
5313
5320
|
}
|
5314
5321
|
)),
|
5315
|
-
/* @__PURE__ */
|
5322
|
+
/* @__PURE__ */ import_react26.default.createElement("div", null, /* @__PURE__ */ import_react26.default.createElement(
|
5316
5323
|
import_react_hook_form6.Controller,
|
5317
5324
|
{
|
5318
5325
|
control,
|
5319
5326
|
name: "feedback",
|
5320
5327
|
render: ({ field }) => {
|
5321
5328
|
var _a2, _b2;
|
5322
|
-
return /* @__PURE__ */
|
5329
|
+
return /* @__PURE__ */ import_react26.default.createElement(
|
5323
5330
|
Textarea,
|
5324
5331
|
{
|
5325
5332
|
...field,
|
@@ -5334,28 +5341,28 @@ var UserReferralSource = ({
|
|
5334
5341
|
}
|
5335
5342
|
))
|
5336
5343
|
),
|
5337
|
-
/* @__PURE__ */
|
5344
|
+
/* @__PURE__ */ import_react26.default.createElement(Button, { type: "submit", className: "hawa-mt-4 hawa-w-full" }, ((_b = props.texts) == null ? void 0 : _b.submit) || "Submit")
|
5338
5345
|
))
|
5339
5346
|
)
|
5340
5347
|
);
|
5341
5348
|
};
|
5342
5349
|
|
5343
5350
|
// blocks/feedback/FeedbackRating.tsx
|
5344
|
-
var
|
5351
|
+
var import_react27 = __toESM(require("react"));
|
5345
5352
|
var FeedbackRating = ({
|
5346
5353
|
position = "bottom-right",
|
5347
5354
|
...props
|
5348
5355
|
}) => {
|
5349
|
-
const [closed, setClosed] = (0,
|
5350
|
-
const [answered, setAnswered] = (0,
|
5351
|
-
const [clickedOption, setClickedOption] = (0,
|
5352
|
-
const [closingTimer, setClosingTimer] = (0,
|
5353
|
-
const popUpRef = (0,
|
5356
|
+
const [closed, setClosed] = (0, import_react27.useState)(false);
|
5357
|
+
const [answered, setAnswered] = (0, import_react27.useState)(false);
|
5358
|
+
const [clickedOption, setClickedOption] = (0, import_react27.useState)(null);
|
5359
|
+
const [closingTimer, setClosingTimer] = (0, import_react27.useState)(5);
|
5360
|
+
const popUpRef = (0, import_react27.useRef)(null);
|
5354
5361
|
const boxPosition = {
|
5355
5362
|
"bottom-right": "hawa-right-4",
|
5356
5363
|
"bottom-left": "hawa-left-4"
|
5357
5364
|
};
|
5358
|
-
(0,
|
5365
|
+
(0, import_react27.useEffect)(() => {
|
5359
5366
|
const timeoutHide = setTimeout(() => {
|
5360
5367
|
if (closingTimer >= 0) {
|
5361
5368
|
setClosingTimer(closingTimer - 1);
|
@@ -5373,7 +5380,7 @@ var FeedbackRating = ({
|
|
5373
5380
|
}
|
5374
5381
|
}, 200);
|
5375
5382
|
};
|
5376
|
-
return /* @__PURE__ */
|
5383
|
+
return /* @__PURE__ */ import_react27.default.createElement(
|
5377
5384
|
"div",
|
5378
5385
|
{
|
5379
5386
|
ref: popUpRef,
|
@@ -5382,7 +5389,7 @@ var FeedbackRating = ({
|
|
5382
5389
|
boxPosition[position]
|
5383
5390
|
)
|
5384
5391
|
},
|
5385
|
-
/* @__PURE__ */
|
5392
|
+
/* @__PURE__ */ import_react27.default.createElement(
|
5386
5393
|
"div",
|
5387
5394
|
{
|
5388
5395
|
className: cn(
|
@@ -5391,8 +5398,8 @@ var FeedbackRating = ({
|
|
5391
5398
|
props.banner && "hawa-rounded-none hawa-px-4 md:hawa-rounded-t md:hawa-px-64"
|
5392
5399
|
)
|
5393
5400
|
},
|
5394
|
-
/* @__PURE__ */
|
5395
|
-
/* @__PURE__ */
|
5401
|
+
/* @__PURE__ */ import_react27.default.createElement("div", { className: "hawa-absolute hawa-left-2 hawa-top-2 hawa-p-1.5 hawa-text-sm" }, props.title),
|
5402
|
+
/* @__PURE__ */ import_react27.default.createElement(
|
5396
5403
|
"button",
|
5397
5404
|
{
|
5398
5405
|
type: "button",
|
@@ -5401,7 +5408,7 @@ var FeedbackRating = ({
|
|
5401
5408
|
"aria-label": "Close",
|
5402
5409
|
onClick: () => slowClose()
|
5403
5410
|
},
|
5404
|
-
/* @__PURE__ */
|
5411
|
+
/* @__PURE__ */ import_react27.default.createElement(
|
5405
5412
|
"svg",
|
5406
5413
|
{
|
5407
5414
|
"aria-hidden": "true",
|
@@ -5409,7 +5416,7 @@ var FeedbackRating = ({
|
|
5409
5416
|
fill: "currentColor",
|
5410
5417
|
viewBox: "0 0 20 20"
|
5411
5418
|
},
|
5412
|
-
/* @__PURE__ */
|
5419
|
+
/* @__PURE__ */ import_react27.default.createElement(
|
5413
5420
|
"path",
|
5414
5421
|
{
|
5415
5422
|
fillRule: "evenodd",
|
@@ -5419,8 +5426,8 @@ var FeedbackRating = ({
|
|
5419
5426
|
)
|
5420
5427
|
)
|
5421
5428
|
),
|
5422
|
-
/* @__PURE__ */
|
5423
|
-
/* @__PURE__ */
|
5429
|
+
/* @__PURE__ */ import_react27.default.createElement("div", { className: "hawa-mt-8" }, props.question),
|
5430
|
+
/* @__PURE__ */ import_react27.default.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded" }, props.options && props.options.map((op, i) => /* @__PURE__ */ import_react27.default.createElement(
|
5424
5431
|
"span",
|
5425
5432
|
{
|
5426
5433
|
key: i,
|
@@ -5448,24 +5455,24 @@ var FeedbackRating = ({
|
|
5448
5455
|
},
|
5449
5456
|
op
|
5450
5457
|
))),
|
5451
|
-
props.texts && /* @__PURE__ */
|
5452
|
-
answered && /* @__PURE__ */
|
5458
|
+
props.texts && /* @__PURE__ */ import_react27.default.createElement("div", { className: " hawa-flex hawa-flex-row hawa-justify-between hawa-text-xs" }, /* @__PURE__ */ import_react27.default.createElement("span", null, props.texts.least), /* @__PURE__ */ import_react27.default.createElement("span", null, props.texts.most)),
|
5459
|
+
answered && /* @__PURE__ */ import_react27.default.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__ */ import_react27.default.createElement("span", { className: "hawa-font-bold hawa-text-white" }, "Thank you for your answer. This box will disappear in", " " + closingTimer, " seconds"), /* @__PURE__ */ import_react27.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2" }, /* @__PURE__ */ import_react27.default.createElement(Button, { variant: "secondary", onClick: () => slowClose() }, "Close")))
|
5453
5460
|
)
|
5454
5461
|
);
|
5455
5462
|
};
|
5456
5463
|
|
5457
5464
|
// blocks/feedback/FeedbackEmoji.tsx
|
5458
|
-
var
|
5465
|
+
var import_react28 = __toESM(require("react"));
|
5459
5466
|
var FeedbackEmoji = (props) => {
|
5460
|
-
const [selectedEmoji, setSelectedEmoji] = (0,
|
5461
|
-
const [loadingSubmit, setLoadingSubmit] = (0,
|
5462
|
-
const [feedbackText, setFeedbackText] = (0,
|
5463
|
-
const [helperText, setHelperText] = (0,
|
5467
|
+
const [selectedEmoji, setSelectedEmoji] = (0, import_react28.useState)(null);
|
5468
|
+
const [loadingSubmit, setLoadingSubmit] = (0, import_react28.useState)(false);
|
5469
|
+
const [feedbackText, setFeedbackText] = (0, import_react28.useState)("");
|
5470
|
+
const [helperText, setHelperText] = (0, import_react28.useState)(false);
|
5464
5471
|
let emojis = [
|
5465
|
-
{ icon: /* @__PURE__ */
|
5466
|
-
{ icon: /* @__PURE__ */
|
5467
|
-
{ icon: /* @__PURE__ */
|
5468
|
-
{ icon: /* @__PURE__ */
|
5472
|
+
{ icon: /* @__PURE__ */ import_react28.default.createElement(VeryGoodEmoji, null), value: "very-good" },
|
5473
|
+
{ icon: /* @__PURE__ */ import_react28.default.createElement(GoodEmoji, null), value: "good" },
|
5474
|
+
{ icon: /* @__PURE__ */ import_react28.default.createElement(BadEmoji, null), value: "bad" },
|
5475
|
+
{ icon: /* @__PURE__ */ import_react28.default.createElement(VeryBadEmoji, null), value: "very-bad" }
|
5469
5476
|
];
|
5470
5477
|
const onFeedbackSubmit = async () => {
|
5471
5478
|
if (feedbackText) {
|
@@ -5485,7 +5492,7 @@ var FeedbackEmoji = (props) => {
|
|
5485
5492
|
setHelperText(true);
|
5486
5493
|
}
|
5487
5494
|
};
|
5488
|
-
return /* @__PURE__ */
|
5495
|
+
return /* @__PURE__ */ import_react28.default.createElement(
|
5489
5496
|
"div",
|
5490
5497
|
{
|
5491
5498
|
className: cn(
|
@@ -5493,7 +5500,7 @@ var FeedbackEmoji = (props) => {
|
|
5493
5500
|
selectedEmoji ? "hawa-h-[189px] hawa-min-w-fit" : "hawa-h-[44px] "
|
5494
5501
|
)
|
5495
5502
|
},
|
5496
|
-
/* @__PURE__ */
|
5503
|
+
/* @__PURE__ */ import_react28.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 " }, /* @__PURE__ */ import_react28.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-0.5 " }, emojis.map((emoji, i) => /* @__PURE__ */ import_react28.default.createElement(
|
5497
5504
|
Button,
|
5498
5505
|
{
|
5499
5506
|
key: i,
|
@@ -5512,7 +5519,7 @@ var FeedbackEmoji = (props) => {
|
|
5512
5519
|
},
|
5513
5520
|
emoji.icon
|
5514
5521
|
)))),
|
5515
|
-
/* @__PURE__ */
|
5522
|
+
/* @__PURE__ */ import_react28.default.createElement(
|
5516
5523
|
"div",
|
5517
5524
|
{
|
5518
5525
|
className: cn(
|
@@ -5520,7 +5527,7 @@ var FeedbackEmoji = (props) => {
|
|
5520
5527
|
selectedEmoji ? "hawa-visible hawa-opacity-100" : "hawa-invisible hawa-opacity-0 "
|
5521
5528
|
)
|
5522
5529
|
},
|
5523
|
-
props.showSuccess ? /* @__PURE__ */
|
5530
|
+
props.showSuccess ? /* @__PURE__ */ import_react28.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2 hawa-pt-4" }, /* @__PURE__ */ import_react28.default.createElement("div", { className: "hawa-rounded hawa-bg-primary hawa-p-2 hawa-text-primary-foreground" }, /* @__PURE__ */ import_react28.default.createElement(
|
5524
5531
|
"svg",
|
5525
5532
|
{
|
5526
5533
|
stroke: "currentColor",
|
@@ -5530,13 +5537,13 @@ var FeedbackEmoji = (props) => {
|
|
5530
5537
|
height: "0.5em",
|
5531
5538
|
width: "0.5em"
|
5532
5539
|
},
|
5533
|
-
/* @__PURE__ */
|
5534
|
-
)), /* @__PURE__ */
|
5540
|
+
/* @__PURE__ */ import_react28.default.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" })
|
5541
|
+
)), /* @__PURE__ */ import_react28.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-text-center hawa-text-sm" }, /* @__PURE__ */ import_react28.default.createElement("span", null, "Your feedback has been received!"), /* @__PURE__ */ import_react28.default.createElement("span", null, "Thank you for your help"))) : /* @__PURE__ */ import_react28.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-1 hawa-p-1" }, /* @__PURE__ */ import_react28.default.createElement(
|
5535
5542
|
Popover,
|
5536
5543
|
{
|
5537
5544
|
className: "hawa-select-none hawa-p-1 hawa-text-xs ",
|
5538
5545
|
open: helperText,
|
5539
|
-
trigger: /* @__PURE__ */
|
5546
|
+
trigger: /* @__PURE__ */ import_react28.default.createElement(
|
5540
5547
|
Textarea,
|
5541
5548
|
{
|
5542
5549
|
classNames: {
|
@@ -5554,8 +5561,8 @@ var FeedbackEmoji = (props) => {
|
|
5554
5561
|
}
|
5555
5562
|
)
|
5556
5563
|
},
|
5557
|
-
/* @__PURE__ */
|
5558
|
-
), /* @__PURE__ */
|
5564
|
+
/* @__PURE__ */ import_react28.default.createElement("span", { className: "hawa-m-0" }, "Please enter your feedback")
|
5565
|
+
), /* @__PURE__ */ import_react28.default.createElement(
|
5559
5566
|
Button,
|
5560
5567
|
{
|
5561
5568
|
isLoading: loadingSubmit,
|
@@ -5570,7 +5577,7 @@ var FeedbackEmoji = (props) => {
|
|
5570
5577
|
};
|
5571
5578
|
|
5572
5579
|
// blocks/feedback/FeedbackForm.tsx
|
5573
|
-
var
|
5580
|
+
var import_react29 = __toESM(require("react"));
|
5574
5581
|
var import_react_hook_form7 = require("react-hook-form");
|
5575
5582
|
var import_zod7 = require("@hookform/resolvers/zod");
|
5576
5583
|
var z7 = __toESM(require("zod"));
|
@@ -5584,7 +5591,7 @@ var FeedbackForm = (props) => {
|
|
5584
5591
|
resolver: (0, import_zod7.zodResolver)(formSchema),
|
5585
5592
|
defaultValues: { requestType: "", description: "" }
|
5586
5593
|
});
|
5587
|
-
return /* @__PURE__ */
|
5594
|
+
return /* @__PURE__ */ import_react29.default.createElement(
|
5588
5595
|
Card,
|
5589
5596
|
{
|
5590
5597
|
className: cn(
|
@@ -5592,7 +5599,7 @@ var FeedbackForm = (props) => {
|
|
5592
5599
|
),
|
5593
5600
|
style: props.cardless ? { boxShadow: "none" } : void 0
|
5594
5601
|
},
|
5595
|
-
/* @__PURE__ */
|
5602
|
+
/* @__PURE__ */ import_react29.default.createElement(CardContent, { headless: true, className: props.cardless ? "!hawa-p-0" : "" }, props.sent ? /* @__PURE__ */ import_react29.default.createElement("div", { className: "hawa-text-center hawa-min-h-[200px] hawa-flex hawa-flex-col hawa-justify-center" }, /* @__PURE__ */ import_react29.default.createElement("div", { className: "hawa-font-bold hawa-text-lg" }, props.texts.sentTitle || "Form submitted"), /* @__PURE__ */ import_react29.default.createElement("div", { className: "hawa-text-md" }, props.texts.sentSubtitle || "Thank you for your submission")) : /* @__PURE__ */ import_react29.default.createElement(
|
5596
5603
|
"form",
|
5597
5604
|
{
|
5598
5605
|
noValidate: true,
|
@@ -5605,15 +5612,15 @@ var FeedbackForm = (props) => {
|
|
5605
5612
|
}),
|
5606
5613
|
className: "hawa-flex hawa-flex-col hawa-gap-2"
|
5607
5614
|
},
|
5608
|
-
/* @__PURE__ */
|
5609
|
-
/* @__PURE__ */
|
5615
|
+
/* @__PURE__ */ import_react29.default.createElement(Label, null),
|
5616
|
+
/* @__PURE__ */ import_react29.default.createElement(
|
5610
5617
|
import_react_hook_form7.Controller,
|
5611
5618
|
{
|
5612
5619
|
name: "requestType",
|
5613
5620
|
control,
|
5614
5621
|
render: ({ field }) => {
|
5615
5622
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
|
5616
|
-
return /* @__PURE__ */
|
5623
|
+
return /* @__PURE__ */ import_react29.default.createElement(
|
5617
5624
|
Select,
|
5618
5625
|
{
|
5619
5626
|
...field,
|
@@ -5631,14 +5638,14 @@ var FeedbackForm = (props) => {
|
|
5631
5638
|
}
|
5632
5639
|
}
|
5633
5640
|
),
|
5634
|
-
/* @__PURE__ */
|
5641
|
+
/* @__PURE__ */ import_react29.default.createElement(
|
5635
5642
|
import_react_hook_form7.Controller,
|
5636
5643
|
{
|
5637
5644
|
name: "description",
|
5638
5645
|
control,
|
5639
5646
|
render: ({ field }) => {
|
5640
5647
|
var _a2, _b2, _c2, _d2, _e2, _f2;
|
5641
|
-
return /* @__PURE__ */
|
5648
|
+
return /* @__PURE__ */ import_react29.default.createElement(
|
5642
5649
|
Textarea,
|
5643
5650
|
{
|
5644
5651
|
helperText: formState.errors.description && ((_b2 = (_a2 = formState.errors.description) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString()),
|
@@ -5656,13 +5663,13 @@ var FeedbackForm = (props) => {
|
|
5656
5663
|
}
|
5657
5664
|
}
|
5658
5665
|
),
|
5659
|
-
/* @__PURE__ */
|
5666
|
+
/* @__PURE__ */ import_react29.default.createElement(Button, { isLoading: props.loadingSubmission, type: "submit" }, (_i = props.texts) == null ? void 0 : _i.submit)
|
5660
5667
|
))
|
5661
5668
|
);
|
5662
5669
|
};
|
5663
5670
|
|
5664
5671
|
// blocks/misc/LegalTexts.tsx
|
5665
|
-
var
|
5672
|
+
var import_react48 = __toESM(require("react"));
|
5666
5673
|
|
5667
5674
|
// elements/scrollArea/ScrollArea.tsx
|
5668
5675
|
var React34 = __toESM(require("react"));
|
@@ -5734,7 +5741,7 @@ var ScrollArea = React34.forwardRef(({ className, children, orientation = "verti
|
|
5734
5741
|
"div",
|
5735
5742
|
{
|
5736
5743
|
className: cn(
|
5737
|
-
"hawa-pointer-events-none hawa-absolute hawa-bg-background
|
5744
|
+
"hawa-pointer-events-none hawa-absolute hawa-bg-background hawa-h-full hawa-w-[50px] hawa-z-10 hawa-start-0 hawa-mask-fade-right",
|
5738
5745
|
showLeftFade ? "hawa-block" : "hawa-hidden"
|
5739
5746
|
)
|
5740
5747
|
}
|
@@ -5743,7 +5750,7 @@ var ScrollArea = React34.forwardRef(({ className, children, orientation = "verti
|
|
5743
5750
|
"div",
|
5744
5751
|
{
|
5745
5752
|
className: cn(
|
5746
|
-
"hawa-pointer-events-none hawa-absolute hawa-bg-background
|
5753
|
+
"hawa-pointer-events-none hawa-absolute hawa-bg-background hawa-mask-fade-left hawa-end-0 hawa-h-full hawa-w-[50px] hawa-z-10 ",
|
5747
5754
|
showRightFade ? "hawa-block" : "hawa-hidden"
|
5748
5755
|
)
|
5749
5756
|
}
|
@@ -5791,57 +5798,57 @@ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
5791
5798
|
var React45 = __toESM(require("react"));
|
5792
5799
|
|
5793
5800
|
// hooks/useIsomorphicEffect.ts
|
5794
|
-
var
|
5801
|
+
var import_react30 = require("react");
|
5795
5802
|
|
5796
5803
|
// hooks/useDiscloser.ts
|
5797
|
-
var
|
5804
|
+
var import_react31 = require("react");
|
5798
5805
|
|
5799
5806
|
// hooks/useHover.ts
|
5800
|
-
var
|
5807
|
+
var import_react32 = require("react");
|
5801
5808
|
|
5802
5809
|
// hooks/useToast.ts
|
5803
5810
|
var React37 = __toESM(require("react"));
|
5804
5811
|
|
5805
5812
|
// hooks/useCarousel.ts
|
5806
|
-
var
|
5813
|
+
var import_react33 = require("react");
|
5807
5814
|
|
5808
5815
|
// hooks/useDialogCarousel.ts
|
5809
|
-
var
|
5816
|
+
var import_react34 = require("react");
|
5810
5817
|
var import_embla_carousel_auto_height = __toESM(require("embla-carousel-auto-height"));
|
5811
5818
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
|
5812
5819
|
|
5813
5820
|
// hooks/useDialogSteps.ts
|
5814
|
-
var
|
5821
|
+
var import_react35 = require("react");
|
5815
5822
|
|
5816
5823
|
// hooks/useClipboard.ts
|
5817
|
-
var
|
5824
|
+
var import_react36 = require("react");
|
5818
5825
|
|
5819
5826
|
// hooks/useBreakpoint.ts
|
5820
|
-
var
|
5827
|
+
var import_react37 = require("react");
|
5821
5828
|
|
5822
5829
|
// hooks/useWindowSize.ts
|
5823
|
-
var
|
5830
|
+
var import_react38 = require("react");
|
5824
5831
|
|
5825
5832
|
// hooks/useFocusWithin.ts
|
5826
|
-
var
|
5833
|
+
var import_react39 = require("react");
|
5827
5834
|
|
5828
5835
|
// hooks/useMediaQuery.ts
|
5829
|
-
var
|
5836
|
+
var import_react40 = require("react");
|
5830
5837
|
|
5831
5838
|
// hooks/useScrollPosition.ts
|
5832
|
-
var
|
5839
|
+
var import_react41 = require("react");
|
5833
5840
|
|
5834
5841
|
// hooks/useTable.ts
|
5835
|
-
var
|
5842
|
+
var import_react42 = require("react");
|
5836
5843
|
|
5837
5844
|
// hooks/useTabs.ts
|
5838
|
-
var
|
5845
|
+
var import_react43 = require("react");
|
5839
5846
|
|
5840
5847
|
// hooks/useMeasureDirty.ts
|
5841
|
-
var
|
5848
|
+
var import_react44 = require("react");
|
5842
5849
|
var useMeasureDirty = (ref) => {
|
5843
|
-
const frame = (0,
|
5844
|
-
const [rect, set] = (0,
|
5850
|
+
const frame = (0, import_react44.useRef)(0);
|
5851
|
+
const [rect, set] = (0, import_react44.useState)({
|
5845
5852
|
width: 0,
|
5846
5853
|
height: 0,
|
5847
5854
|
top: 0,
|
@@ -5849,7 +5856,7 @@ var useMeasureDirty = (ref) => {
|
|
5849
5856
|
bottom: 0,
|
5850
5857
|
right: 0
|
5851
5858
|
});
|
5852
|
-
const [observer] = (0,
|
5859
|
+
const [observer] = (0, import_react44.useState)(
|
5853
5860
|
() => new ResizeObserver((entries) => {
|
5854
5861
|
const entry = entries[0];
|
5855
5862
|
if (entry) {
|
@@ -5862,7 +5869,7 @@ var useMeasureDirty = (ref) => {
|
|
5862
5869
|
}
|
5863
5870
|
})
|
5864
5871
|
);
|
5865
|
-
(0,
|
5872
|
+
(0, import_react44.useEffect)(() => {
|
5866
5873
|
observer.disconnect();
|
5867
5874
|
if (ref.current) {
|
5868
5875
|
observer.observe(ref.current);
|
@@ -5872,18 +5879,18 @@ var useMeasureDirty = (ref) => {
|
|
5872
5879
|
};
|
5873
5880
|
|
5874
5881
|
// hooks/useClickOutside.ts
|
5875
|
-
var
|
5882
|
+
var import_react45 = require("react");
|
5876
5883
|
|
5877
5884
|
// hooks/useShortcuts.ts
|
5878
|
-
var
|
5885
|
+
var import_react46 = require("react");
|
5879
5886
|
|
5880
5887
|
// elements/tabs/Tabs.tsx
|
5881
5888
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
5882
5889
|
var import_tailwind_variants = require("tailwind-variants");
|
5883
5890
|
|
5884
5891
|
// elements/chip/Chip.tsx
|
5885
|
-
var
|
5886
|
-
var Chip =
|
5892
|
+
var import_react47 = __toESM(require("react"));
|
5893
|
+
var Chip = import_react47.default.forwardRef(
|
5887
5894
|
({
|
5888
5895
|
label,
|
5889
5896
|
size = "normal",
|
@@ -5927,7 +5934,7 @@ var Chip = import_react46.default.forwardRef(
|
|
5927
5934
|
oceanic: "hawa-text-white dark:hawa-text-black hawa-bg-gradient-to-bl hawa-from-green-300 hawa-via-blue-500 hawa-to-purple-600"
|
5928
5935
|
};
|
5929
5936
|
if (label) {
|
5930
|
-
return /* @__PURE__ */
|
5937
|
+
return /* @__PURE__ */ import_react47.default.createElement(
|
5931
5938
|
"span",
|
5932
5939
|
{
|
5933
5940
|
...rest,
|
@@ -5939,7 +5946,7 @@ var Chip = import_react46.default.forwardRef(
|
|
5939
5946
|
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
5940
5947
|
)
|
5941
5948
|
},
|
5942
|
-
dot && /* @__PURE__ */
|
5949
|
+
dot && /* @__PURE__ */ import_react47.default.createElement(
|
5943
5950
|
"span",
|
5944
5951
|
{
|
5945
5952
|
className: cn(dotStyles[size], dotStatusStyles[dotStatus])
|
@@ -5949,7 +5956,7 @@ var Chip = import_react46.default.forwardRef(
|
|
5949
5956
|
label
|
5950
5957
|
);
|
5951
5958
|
} else {
|
5952
|
-
return /* @__PURE__ */
|
5959
|
+
return /* @__PURE__ */ import_react47.default.createElement(
|
5953
5960
|
"span",
|
5954
5961
|
{
|
5955
5962
|
...rest,
|
@@ -6186,7 +6193,7 @@ TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
6186
6193
|
|
6187
6194
|
// blocks/misc/LegalTexts.tsx
|
6188
6195
|
var LegalTexts = ({ tabs, ...props }) => {
|
6189
|
-
return /* @__PURE__ */
|
6196
|
+
return /* @__PURE__ */ import_react48.default.createElement(
|
6190
6197
|
Tabs,
|
6191
6198
|
{
|
6192
6199
|
value: props.activeTab,
|
@@ -6194,8 +6201,8 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
6194
6201
|
defaultValue: props.defaultTab || tabs[0].value,
|
6195
6202
|
dir: props.direction
|
6196
6203
|
},
|
6197
|
-
/* @__PURE__ */
|
6198
|
-
tabs.map((tab, index) => /* @__PURE__ */
|
6204
|
+
/* @__PURE__ */ import_react48.default.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ import_react48.default.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
|
6205
|
+
tabs.map((tab, index) => /* @__PURE__ */ import_react48.default.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ import_react48.default.createElement(
|
6199
6206
|
ScrollArea,
|
6200
6207
|
{
|
6201
6208
|
className: cn(
|
@@ -6209,9 +6216,9 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
6209
6216
|
};
|
6210
6217
|
|
6211
6218
|
// blocks/misc/EmptyState.tsx
|
6212
|
-
var
|
6219
|
+
var import_react49 = __toESM(require("react"));
|
6213
6220
|
var EmptyState = ({ texts, onActionClick }) => {
|
6214
|
-
return /* @__PURE__ */
|
6221
|
+
return /* @__PURE__ */ import_react49.default.createElement(Card, null, /* @__PURE__ */ import_react49.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react49.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center " }, /* @__PURE__ */ import_react49.default.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__ */ import_react49.default.createElement(
|
6215
6222
|
"svg",
|
6216
6223
|
{
|
6217
6224
|
stroke: "currentColor",
|
@@ -6221,30 +6228,30 @@ var EmptyState = ({ texts, onActionClick }) => {
|
|
6221
6228
|
height: "0.35em",
|
6222
6229
|
width: "0.35em"
|
6223
6230
|
},
|
6224
|
-
/* @__PURE__ */
|
6225
|
-
)), /* @__PURE__ */
|
6231
|
+
/* @__PURE__ */ import_react49.default.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" })
|
6232
|
+
)), /* @__PURE__ */ import_react49.default.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.youreCaughtUp) || "You're all caught up"))), /* @__PURE__ */ import_react49.default.createElement(CardFooter, null, /* @__PURE__ */ import_react49.default.createElement(Button, { className: "hawa-w-full", onClick: () => onActionClick() }, (texts == null ? void 0 : texts.actionText) || "Go Home")));
|
6226
6233
|
};
|
6227
6234
|
|
6228
6235
|
// blocks/misc/Testimonial.tsx
|
6229
|
-
var
|
6236
|
+
var import_react50 = __toESM(require("react"));
|
6230
6237
|
var Testimonial = () => {
|
6231
|
-
return /* @__PURE__ */
|
6238
|
+
return /* @__PURE__ */ import_react50.default.createElement(Card, null, /* @__PURE__ */ import_react50.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react50.default.createElement("div", null, /* @__PURE__ */ import_react50.default.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__ */ import_react50.default.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ import_react50.default.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ import_react50.default.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ import_react50.default.createElement(
|
6232
6239
|
"path",
|
6233
6240
|
{
|
6234
6241
|
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",
|
6235
6242
|
fill: "#FFFFFF"
|
6236
6243
|
}
|
6237
|
-
), /* @__PURE__ */
|
6244
|
+
), /* @__PURE__ */ import_react50.default.createElement(
|
6238
6245
|
"path",
|
6239
6246
|
{
|
6240
6247
|
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",
|
6241
6248
|
fill: "#FFFFFF"
|
6242
6249
|
}
|
6243
|
-
)), /* @__PURE__ */
|
6250
|
+
)), /* @__PURE__ */ import_react50.default.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ import_react50.default.createElement("div", null, /* @__PURE__ */ import_react50.default.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ import_react50.default.createElement("div", null, " Chief Information Security Officer")))));
|
6244
6251
|
};
|
6245
6252
|
|
6246
6253
|
// blocks/misc/LeadGenerator.tsx
|
6247
|
-
var
|
6254
|
+
var import_react51 = __toESM(require("react"));
|
6248
6255
|
var import_react_hook_form8 = require("react-hook-form");
|
6249
6256
|
var LeadGenerator = ({ texts, submitHandler }) => {
|
6250
6257
|
var _a;
|
@@ -6256,14 +6263,14 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
6256
6263
|
console.log("handleNewsletterSub props was not provided");
|
6257
6264
|
}
|
6258
6265
|
};
|
6259
|
-
return /* @__PURE__ */
|
6266
|
+
return /* @__PURE__ */ import_react51.default.createElement(Card, null, /* @__PURE__ */ import_react51.default.createElement(CardHeader, null, /* @__PURE__ */ import_react51.default.createElement(CardTitle, null, texts == null ? void 0 : texts.title), /* @__PURE__ */ import_react51.default.createElement(CardDescription, null, texts == null ? void 0 : texts.subtitle)), /* @__PURE__ */ import_react51.default.createElement(CardContent, null, /* @__PURE__ */ import_react51.default.createElement(
|
6260
6267
|
"form",
|
6261
6268
|
{
|
6262
6269
|
noValidate: true,
|
6263
6270
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
6264
6271
|
onSubmit: handleSubmit(onSubmit)
|
6265
6272
|
},
|
6266
|
-
/* @__PURE__ */
|
6273
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
6267
6274
|
import_react_hook_form8.Controller,
|
6268
6275
|
{
|
6269
6276
|
name: "email",
|
@@ -6276,27 +6283,27 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
6276
6283
|
}
|
6277
6284
|
},
|
6278
6285
|
defaultValue: "",
|
6279
|
-
render: ({ field }) => /* @__PURE__ */
|
6286
|
+
render: ({ field }) => /* @__PURE__ */ import_react51.default.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
|
6280
6287
|
}
|
6281
6288
|
),
|
6282
|
-
/* @__PURE__ */
|
6289
|
+
/* @__PURE__ */ import_react51.default.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
|
6283
6290
|
)));
|
6284
6291
|
};
|
6285
6292
|
|
6286
6293
|
// blocks/misc/Announcement.tsx
|
6287
|
-
var
|
6294
|
+
var import_react52 = __toESM(require("react"));
|
6288
6295
|
var Announcement = ({
|
6289
6296
|
onActionClick,
|
6290
6297
|
...props
|
6291
6298
|
}) => {
|
6292
|
-
return /* @__PURE__ */
|
6299
|
+
return /* @__PURE__ */ import_react52.default.createElement(Card, null, /* @__PURE__ */ import_react52.default.createElement(
|
6293
6300
|
CardContent,
|
6294
6301
|
{
|
6295
6302
|
headless: true,
|
6296
6303
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
6297
6304
|
},
|
6298
|
-
/* @__PURE__ */
|
6299
|
-
/* @__PURE__ */
|
6305
|
+
/* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center " }, /* @__PURE__ */ import_react52.default.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ import_react52.default.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
|
6306
|
+
/* @__PURE__ */ import_react52.default.createElement(
|
6300
6307
|
Button,
|
6301
6308
|
{
|
6302
6309
|
onClick: () => onActionClick(),
|
@@ -6308,15 +6315,15 @@ var Announcement = ({
|
|
6308
6315
|
};
|
6309
6316
|
|
6310
6317
|
// blocks/misc/NotFound.tsx
|
6311
|
-
var
|
6318
|
+
var import_react53 = __toESM(require("react"));
|
6312
6319
|
var NotFound = ({ texts }) => {
|
6313
|
-
return /* @__PURE__ */
|
6320
|
+
return /* @__PURE__ */ import_react53.default.createElement(Card, null, /* @__PURE__ */ import_react53.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react53.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white" }, /* @__PURE__ */ import_react53.default.createElement("div", { className: "hawa-text-center hawa-text-6xl hawa-font-bold " }, "404"), /* @__PURE__ */ import_react53.default.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__ */ import_react53.default.createElement("div", { className: "hawa-mb-4 hawa-text-center" }, (texts == null ? void 0 : texts.ifLost) || /* @__PURE__ */ import_react53.default.createElement(import_react53.default.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ import_react53.default.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ import_react53.default.createElement(Button, { className: "hawa-w-full" }, (texts == null ? void 0 : texts.home) || "Home"))));
|
6314
6321
|
};
|
6315
6322
|
|
6316
6323
|
// blocks/misc/NoPermission.tsx
|
6317
|
-
var
|
6324
|
+
var import_react54 = __toESM(require("react"));
|
6318
6325
|
var NoPermission = ({ texts }) => {
|
6319
|
-
return /* @__PURE__ */
|
6326
|
+
return /* @__PURE__ */ import_react54.default.createElement(Card, null, /* @__PURE__ */ import_react54.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react54.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ import_react54.default.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__ */ import_react54.default.createElement(
|
6320
6327
|
"svg",
|
6321
6328
|
{
|
6322
6329
|
stroke: "currentColor",
|
@@ -6326,12 +6333,12 @@ var NoPermission = ({ texts }) => {
|
|
6326
6333
|
height: "0.35em",
|
6327
6334
|
width: "0.35em"
|
6328
6335
|
},
|
6329
|
-
/* @__PURE__ */
|
6330
|
-
)), /* @__PURE__ */
|
6336
|
+
/* @__PURE__ */ import_react54.default.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" })
|
6337
|
+
)), /* @__PURE__ */ import_react54.default.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.title) || "You don't have permission"), /* @__PURE__ */ import_react54.default.createElement("div", null, (texts == null ? void 0 : texts.subtitle) || "If you think this is a problem please contact your administrator or our customer support"))));
|
6331
6338
|
};
|
6332
6339
|
|
6333
6340
|
// blocks/misc/ContactForm.tsx
|
6334
|
-
var
|
6341
|
+
var import_react55 = __toESM(require("react"));
|
6335
6342
|
var import_react_hook_form9 = require("react-hook-form");
|
6336
6343
|
var import_zod8 = require("@hookform/resolvers/zod");
|
6337
6344
|
var z8 = __toESM(require("zod"));
|
@@ -6404,7 +6411,7 @@ var ContactForm = ({
|
|
6404
6411
|
console.log("Form is submitted but onSubmit prop is missing");
|
6405
6412
|
}
|
6406
6413
|
};
|
6407
|
-
return /* @__PURE__ */
|
6414
|
+
return /* @__PURE__ */ import_react55.default.createElement(
|
6408
6415
|
Card,
|
6409
6416
|
{
|
6410
6417
|
className: cn(
|
@@ -6413,7 +6420,7 @@ var ContactForm = ({
|
|
6413
6420
|
),
|
6414
6421
|
style: cardless ? { boxShadow: "none" } : void 0
|
6415
6422
|
},
|
6416
|
-
/* @__PURE__ */
|
6423
|
+
/* @__PURE__ */ import_react55.default.createElement(CardContent, { headless: true, className: cardless ? "!hawa-p-0" : "" }, props.showSuccess ? /* @__PURE__ */ import_react55.default.createElement(CardHeader, null, /* @__PURE__ */ import_react55.default.createElement(CardTitle, null, ((_d = texts == null ? void 0 : texts.success) == null ? void 0 : _d.title) || "Message Sent! \u{1F389}"), /* @__PURE__ */ import_react55.default.createElement(CardDescription, null, ((_e = texts == null ? void 0 : texts.success) == null ? void 0 : _e.description) || "Thank you for your submission, we will get back to you as soon as possible.")) : /* @__PURE__ */ import_react55.default.createElement(
|
6417
6424
|
"form",
|
6418
6425
|
{
|
6419
6426
|
noValidate: true,
|
@@ -6422,7 +6429,7 @@ var ContactForm = ({
|
|
6422
6429
|
id: formId,
|
6423
6430
|
autoComplete: formAutoComplete
|
6424
6431
|
},
|
6425
|
-
/* @__PURE__ */
|
6432
|
+
/* @__PURE__ */ import_react55.default.createElement(
|
6426
6433
|
"div",
|
6427
6434
|
{
|
6428
6435
|
className: cn(
|
@@ -6433,14 +6440,14 @@ var ContactForm = ({
|
|
6433
6440
|
}
|
6434
6441
|
)
|
6435
6442
|
},
|
6436
|
-
/* @__PURE__ */
|
6443
|
+
/* @__PURE__ */ import_react55.default.createElement(
|
6437
6444
|
import_react_hook_form9.Controller,
|
6438
6445
|
{
|
6439
6446
|
control,
|
6440
6447
|
name: "name",
|
6441
6448
|
render: ({ field }) => {
|
6442
6449
|
var _a2;
|
6443
|
-
return /* @__PURE__ */
|
6450
|
+
return /* @__PURE__ */ import_react55.default.createElement(
|
6444
6451
|
Input,
|
6445
6452
|
{
|
6446
6453
|
label: (texts == null ? void 0 : texts.name.label) || "Name",
|
@@ -6453,14 +6460,14 @@ var ContactForm = ({
|
|
6453
6460
|
}
|
6454
6461
|
}
|
6455
6462
|
),
|
6456
|
-
/* @__PURE__ */
|
6463
|
+
/* @__PURE__ */ import_react55.default.createElement(
|
6457
6464
|
import_react_hook_form9.Controller,
|
6458
6465
|
{
|
6459
6466
|
control,
|
6460
6467
|
name: "email",
|
6461
6468
|
render: ({ field }) => {
|
6462
6469
|
var _a2;
|
6463
|
-
return /* @__PURE__ */
|
6470
|
+
return /* @__PURE__ */ import_react55.default.createElement(
|
6464
6471
|
Input,
|
6465
6472
|
{
|
6466
6473
|
label: (texts == null ? void 0 : texts.email.label) || "Email",
|
@@ -6476,7 +6483,7 @@ var ContactForm = ({
|
|
6476
6483
|
),
|
6477
6484
|
customFields && customFields.map((customField) => {
|
6478
6485
|
console.log("custom", customField);
|
6479
|
-
return /* @__PURE__ */
|
6486
|
+
return /* @__PURE__ */ import_react55.default.createElement(
|
6480
6487
|
import_react_hook_form9.Controller,
|
6481
6488
|
{
|
6482
6489
|
control,
|
@@ -6486,7 +6493,7 @@ var ContactForm = ({
|
|
6486
6493
|
switch (type) {
|
6487
6494
|
case "text":
|
6488
6495
|
case "number":
|
6489
|
-
return /* @__PURE__ */
|
6496
|
+
return /* @__PURE__ */ import_react55.default.createElement(
|
6490
6497
|
Input,
|
6491
6498
|
{
|
6492
6499
|
id: customField.name,
|
@@ -6497,7 +6504,7 @@ var ContactForm = ({
|
|
6497
6504
|
}
|
6498
6505
|
);
|
6499
6506
|
case "select":
|
6500
|
-
return /* @__PURE__ */
|
6507
|
+
return /* @__PURE__ */ import_react55.default.createElement(
|
6501
6508
|
Select,
|
6502
6509
|
{
|
6503
6510
|
label,
|
@@ -6507,20 +6514,20 @@ var ContactForm = ({
|
|
6507
6514
|
}
|
6508
6515
|
);
|
6509
6516
|
default:
|
6510
|
-
return /* @__PURE__ */
|
6517
|
+
return /* @__PURE__ */ import_react55.default.createElement("div", null, "Unknown type");
|
6511
6518
|
}
|
6512
6519
|
}
|
6513
6520
|
}
|
6514
6521
|
);
|
6515
6522
|
}),
|
6516
|
-
/* @__PURE__ */
|
6523
|
+
/* @__PURE__ */ import_react55.default.createElement(
|
6517
6524
|
import_react_hook_form9.Controller,
|
6518
6525
|
{
|
6519
6526
|
control,
|
6520
6527
|
name: "message",
|
6521
6528
|
render: ({ field }) => {
|
6522
6529
|
var _a2;
|
6523
|
-
return /* @__PURE__ */
|
6530
|
+
return /* @__PURE__ */ import_react55.default.createElement(
|
6524
6531
|
Textarea,
|
6525
6532
|
{
|
6526
6533
|
label: (texts == null ? void 0 : texts.message.label) || "Message",
|
@@ -6537,19 +6544,19 @@ var ContactForm = ({
|
|
6537
6544
|
}
|
6538
6545
|
}
|
6539
6546
|
),
|
6540
|
-
/* @__PURE__ */
|
6547
|
+
/* @__PURE__ */ import_react55.default.createElement(Button, { type: "submit", className: "hawa-w-full" }, (texts == null ? void 0 : texts.submit) || "Submit")
|
6541
6548
|
))
|
6542
6549
|
);
|
6543
6550
|
};
|
6544
6551
|
|
6545
6552
|
// blocks/pricing/PricingPlans.tsx
|
6546
|
-
var
|
6553
|
+
var import_react62 = __toESM(require("react"));
|
6547
6554
|
|
6548
6555
|
// blocks/cards/ActionCard.tsx
|
6549
|
-
var
|
6556
|
+
var import_react56 = __toESM(require("react"));
|
6550
6557
|
var ActionCard = (props) => {
|
6551
|
-
const [hovered, setHovered] = (0,
|
6552
|
-
return /* @__PURE__ */
|
6558
|
+
const [hovered, setHovered] = (0, import_react56.useState)(false);
|
6559
|
+
return /* @__PURE__ */ import_react56.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ import_react56.default.createElement(
|
6553
6560
|
"div",
|
6554
6561
|
{
|
6555
6562
|
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",
|
@@ -6559,7 +6566,7 @@ var ActionCard = (props) => {
|
|
6559
6566
|
onMouseEnter: () => setHovered(true),
|
6560
6567
|
onMouseLeave: () => setHovered(false)
|
6561
6568
|
},
|
6562
|
-
props.blank ? /* @__PURE__ */
|
6569
|
+
props.blank ? /* @__PURE__ */ import_react56.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center " }, /* @__PURE__ */ import_react56.default.createElement(
|
6563
6570
|
"svg",
|
6564
6571
|
{
|
6565
6572
|
className: "hawa-h-10 hawa-w-10 hawa-text-foreground",
|
@@ -6571,11 +6578,11 @@ var ActionCard = (props) => {
|
|
6571
6578
|
width: "1em",
|
6572
6579
|
xmlns: "http://www.w3.org/2000/svg"
|
6573
6580
|
},
|
6574
|
-
/* @__PURE__ */
|
6575
|
-
)) : /* @__PURE__ */
|
6576
|
-
/* @__PURE__ */
|
6577
|
-
!props.blank && /* @__PURE__ */
|
6578
|
-
), /* @__PURE__ */
|
6581
|
+
/* @__PURE__ */ import_react56.default.createElement("path", { d: "M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z" })
|
6582
|
+
)) : /* @__PURE__ */ import_react56.default.createElement("div", { className: "hawa-absolute hawa-inset-0 hawa-rounded hawa-bg-black hawa-opacity-50" }),
|
6583
|
+
/* @__PURE__ */ import_react56.default.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),
|
6584
|
+
!props.blank && /* @__PURE__ */ import_react56.default.createElement("div", { className: "hawa-relative hawa-p-4" }, /* @__PURE__ */ import_react56.default.createElement("h1", { className: "hawa-text-white" }, props.title), /* @__PURE__ */ import_react56.default.createElement("p", { className: "hawa-text-white" }, props.subtitle))
|
6585
|
+
), /* @__PURE__ */ import_react56.default.createElement(
|
6579
6586
|
"div",
|
6580
6587
|
{
|
6581
6588
|
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"}`
|
@@ -6585,15 +6592,15 @@ var ActionCard = (props) => {
|
|
6585
6592
|
};
|
6586
6593
|
|
6587
6594
|
// blocks/cards/AdCard.tsx
|
6588
|
-
var
|
6595
|
+
var import_react57 = __toESM(require("react"));
|
6589
6596
|
var AdCard = ({
|
6590
6597
|
orientation = "vertical",
|
6591
6598
|
...props
|
6592
6599
|
}) => {
|
6593
|
-
const adRef = (0,
|
6594
|
-
const [closed, setClosed] = (0,
|
6600
|
+
const adRef = (0, import_react57.useRef)(null);
|
6601
|
+
const [closed, setClosed] = (0, import_react57.useState)(false);
|
6595
6602
|
let duration = 0;
|
6596
|
-
(0,
|
6603
|
+
(0, import_react57.useEffect)(() => {
|
6597
6604
|
if (duration) {
|
6598
6605
|
const timeoutHide = setTimeout(() => {
|
6599
6606
|
setClosed(true);
|
@@ -6618,21 +6625,21 @@ var AdCard = ({
|
|
6618
6625
|
horizontal: "hawa-w-auto hawa-h-full hawa-bg-blue-500 hawa-rounded-inner",
|
6619
6626
|
vertical: "hawa-bg-blue-500 hawa-rounded-inner hawa-w-auto "
|
6620
6627
|
};
|
6621
|
-
return /* @__PURE__ */
|
6628
|
+
return /* @__PURE__ */ import_react57.default.createElement("div", { ref: adRef }, /* @__PURE__ */ import_react57.default.createElement(
|
6622
6629
|
"div",
|
6623
6630
|
{
|
6624
6631
|
className: cn(cardStyles[orientation], props.className),
|
6625
6632
|
onClick: props.handleClick
|
6626
6633
|
},
|
6627
|
-
/* @__PURE__ */
|
6634
|
+
/* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-flex hawa-aspect-square hawa-w-full hawa-max-w-fit hawa-items-start " }, /* @__PURE__ */ import_react57.default.createElement(
|
6628
6635
|
"img",
|
6629
6636
|
{
|
6630
6637
|
src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
|
6631
6638
|
className: imageStyles[orientation]
|
6632
6639
|
}
|
6633
6640
|
)),
|
6634
|
-
/* @__PURE__ */
|
6635
|
-
props.canHide && /* @__PURE__ */
|
6641
|
+
/* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-w-full hawa-text-xs" }, /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-font-bold" }, props.title), /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-text-[12px]" }, props.description)),
|
6642
|
+
props.canHide && /* @__PURE__ */ import_react57.default.createElement(
|
6636
6643
|
"span",
|
6637
6644
|
{
|
6638
6645
|
onClick: (e) => {
|
@@ -6658,7 +6665,7 @@ var AdCard = ({
|
|
6658
6665
|
};
|
6659
6666
|
|
6660
6667
|
// blocks/cards/PricingCard.tsx
|
6661
|
-
var
|
6668
|
+
var import_react58 = __toESM(require("react"));
|
6662
6669
|
|
6663
6670
|
// elements/separator/Separator.tsx
|
6664
6671
|
var React56 = __toESM(require("react"));
|
@@ -6693,13 +6700,13 @@ var PricingCard = ({
|
|
6693
6700
|
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
6694
6701
|
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
6695
6702
|
};
|
6696
|
-
return /* @__PURE__ */
|
6703
|
+
return /* @__PURE__ */ import_react58.default.createElement(import_react58.default.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ import_react58.default.createElement(
|
6697
6704
|
Skeleton,
|
6698
6705
|
{
|
6699
6706
|
className: cn(cardSizes[size], "hawa-h-[200px]"),
|
6700
6707
|
fade: "bottom"
|
6701
6708
|
}
|
6702
|
-
) : /* @__PURE__ */
|
6709
|
+
) : /* @__PURE__ */ import_react58.default.createElement(
|
6703
6710
|
Card,
|
6704
6711
|
{
|
6705
6712
|
dir: direction,
|
@@ -6710,7 +6717,7 @@ var PricingCard = ({
|
|
6710
6717
|
recommended ? "hawa-rounded hawa-rounded-t-none" : "hawa-rounded"
|
6711
6718
|
)
|
6712
6719
|
},
|
6713
|
-
recommended && /* @__PURE__ */
|
6720
|
+
recommended && /* @__PURE__ */ import_react58.default.createElement(
|
6714
6721
|
"div",
|
6715
6722
|
{
|
6716
6723
|
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",
|
@@ -6718,7 +6725,7 @@ var PricingCard = ({
|
|
6718
6725
|
},
|
6719
6726
|
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
6720
6727
|
),
|
6721
|
-
/* @__PURE__ */
|
6728
|
+
/* @__PURE__ */ import_react58.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ import_react58.default.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ import_react58.default.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ import_react58.default.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, (_c = props.texts) == null ? void 0 : _c.subtitle), props.discount && /* @__PURE__ */ import_react58.default.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ import_react58.default.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ import_react58.default.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.isLoadingPrice ? /* @__PURE__ */ import_react58.default.createElement(Skeleton, { className: "hawa-h-[48px] hawa-w-full hawa-max-w-[200px] hawa-p-0 " }) : /* @__PURE__ */ import_react58.default.createElement(import_react58.default.Fragment, null, props.noPrice ? /* @__PURE__ */ import_react58.default.createElement("div", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, ((_d = props.texts) == null ? void 0 : _d.priceless) || "Contact Us") : /* @__PURE__ */ import_react58.default.createElement(import_react58.default.Fragment, null, /* @__PURE__ */ import_react58.default.createElement(import_react58.default.Fragment, null, /* @__PURE__ */ import_react58.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-end hawa-gap-2" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ import_react58.default.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + ((_e = props.texts) == null ? void 0 : _e.currencyText)), /* @__PURE__ */ import_react58.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ import_react58.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, (_f = props.texts) == null ? void 0 : _f.currencyText)), /* @__PURE__ */ import_react58.default.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__ */ import_react58.default.createElement(Separator, null), /* @__PURE__ */ import_react58.default.createElement(
|
6722
6729
|
"div",
|
6723
6730
|
{
|
6724
6731
|
className: cn(
|
@@ -6726,9 +6733,9 @@ var PricingCard = ({
|
|
6726
6733
|
endButton ? "hawa-flex-col" : "hawa-flex-col-reverse"
|
6727
6734
|
)
|
6728
6735
|
},
|
6729
|
-
props.features && /* @__PURE__ */
|
6736
|
+
props.features && /* @__PURE__ */ import_react58.default.createElement("ul", { role: "list", className: "hawa-space-y-0 hawa-overflow-x-auto" }, (_h = props.features) == null ? void 0 : _h.map((feature, o) => {
|
6730
6737
|
var _a2;
|
6731
|
-
return /* @__PURE__ */
|
6738
|
+
return /* @__PURE__ */ import_react58.default.createElement(
|
6732
6739
|
"li",
|
6733
6740
|
{
|
6734
6741
|
key: o,
|
@@ -6737,7 +6744,7 @@ var PricingCard = ({
|
|
6737
6744
|
!feature.included && "hawa-line-through"
|
6738
6745
|
)
|
6739
6746
|
},
|
6740
|
-
/* @__PURE__ */
|
6747
|
+
/* @__PURE__ */ import_react58.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center" }, feature.included ? /* @__PURE__ */ import_react58.default.createElement(
|
6741
6748
|
"svg",
|
6742
6749
|
{
|
6743
6750
|
"aria-label": "Check Icon",
|
@@ -6746,7 +6753,7 @@ var PricingCard = ({
|
|
6746
6753
|
fill: "currentColor",
|
6747
6754
|
viewBox: "0 0 20 20"
|
6748
6755
|
},
|
6749
|
-
/* @__PURE__ */
|
6756
|
+
/* @__PURE__ */ import_react58.default.createElement(
|
6750
6757
|
"path",
|
6751
6758
|
{
|
6752
6759
|
fillRule: "evenodd",
|
@@ -6754,7 +6761,7 @@ var PricingCard = ({
|
|
6754
6761
|
clipRule: "evenodd"
|
6755
6762
|
}
|
6756
6763
|
)
|
6757
|
-
) : /* @__PURE__ */
|
6764
|
+
) : /* @__PURE__ */ import_react58.default.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ import_react58.default.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__ */ import_react58.default.createElement(
|
6758
6765
|
Chip,
|
6759
6766
|
{
|
6760
6767
|
label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "",
|
@@ -6762,13 +6769,13 @@ var PricingCard = ({
|
|
6762
6769
|
size: "small"
|
6763
6770
|
}
|
6764
6771
|
))),
|
6765
|
-
feature.hint && /* @__PURE__ */
|
6772
|
+
feature.hint && /* @__PURE__ */ import_react58.default.createElement(
|
6766
6773
|
Tooltip,
|
6767
6774
|
{
|
6768
6775
|
content: feature.hint,
|
6769
6776
|
side: feature.hintSide
|
6770
6777
|
},
|
6771
|
-
/* @__PURE__ */
|
6778
|
+
/* @__PURE__ */ import_react58.default.createElement(
|
6772
6779
|
"svg",
|
6773
6780
|
{
|
6774
6781
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6780,14 +6787,14 @@ var PricingCard = ({
|
|
6780
6787
|
strokeLinecap: "round",
|
6781
6788
|
strokeLinejoin: "round"
|
6782
6789
|
},
|
6783
|
-
/* @__PURE__ */
|
6784
|
-
/* @__PURE__ */
|
6785
|
-
/* @__PURE__ */
|
6790
|
+
/* @__PURE__ */ import_react58.default.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
6791
|
+
/* @__PURE__ */ import_react58.default.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
6792
|
+
/* @__PURE__ */ import_react58.default.createElement("path", { d: "M12 17h.01" })
|
6786
6793
|
)
|
6787
6794
|
)
|
6788
6795
|
);
|
6789
6796
|
})),
|
6790
|
-
/* @__PURE__ */
|
6797
|
+
/* @__PURE__ */ import_react58.default.createElement(
|
6791
6798
|
Button,
|
6792
6799
|
{
|
6793
6800
|
onClick: props.onPlanClicked,
|
@@ -6801,11 +6808,11 @@ var PricingCard = ({
|
|
6801
6808
|
};
|
6802
6809
|
|
6803
6810
|
// blocks/cards/ItemCard.tsx
|
6804
|
-
var
|
6811
|
+
var import_react60 = __toESM(require("react"));
|
6805
6812
|
|
6806
6813
|
// elements/dropdownMenu/DropdownMenu.tsx
|
6807
6814
|
var React58 = __toESM(require("react"));
|
6808
|
-
var
|
6815
|
+
var import_react59 = require("@headlessui/react");
|
6809
6816
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
6810
6817
|
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
6811
6818
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
@@ -6858,7 +6865,7 @@ var DropdownMenuSubContent = React58.forwardRef(({ className, ...props }, ref) =
|
|
6858
6865
|
}
|
6859
6866
|
));
|
6860
6867
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
6861
|
-
var DropdownMenuContent = React58.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
6868
|
+
var DropdownMenuContent = React58.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React58.createElement(import_react59.Portal, null, /* @__PURE__ */ React58.createElement(
|
6862
6869
|
DropdownMenuPrimitive.Content,
|
6863
6870
|
{
|
6864
6871
|
ref,
|
@@ -7036,7 +7043,7 @@ var DropdownMenu = ({
|
|
7036
7043
|
},
|
7037
7044
|
trigger
|
7038
7045
|
),
|
7039
|
-
/* @__PURE__ */ React58.createElement(
|
7046
|
+
/* @__PURE__ */ React58.createElement(import_react59.Portal, null, /* @__PURE__ */ React58.createElement(
|
7040
7047
|
DropdownMenuContent,
|
7041
7048
|
{
|
7042
7049
|
side,
|
@@ -7097,7 +7104,7 @@ var DropdownMenu = ({
|
|
7097
7104
|
},
|
7098
7105
|
item.icon && item.icon,
|
7099
7106
|
item.label && item.label
|
7100
|
-
), /* @__PURE__ */ React58.createElement(
|
7107
|
+
), /* @__PURE__ */ React58.createElement(import_react59.Portal, null, /* @__PURE__ */ React58.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
7101
7108
|
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
7102
7109
|
return /* @__PURE__ */ React58.createElement(
|
7103
7110
|
DropdownMenuItem,
|
@@ -7210,12 +7217,12 @@ var ItemCard = ({
|
|
7210
7217
|
)
|
7211
7218
|
};
|
7212
7219
|
let headerActionsButtonStyle = "hawa-inline-block hawa-rounded hawa-p-1 hawa-text-sm hawa-text-gray-500 hover:hawa-bg-gray-100 focus:hawa-outline-none focus:hawa-ring-4 focus:hawa-ring-gray-200 dark:hawa-text-gray-400 dark:hover:hawa-bg-gray-700 dark:focus:hawa-ring-gray-700";
|
7213
|
-
const [openActionHeader, setOpenActionHeader] = (0,
|
7220
|
+
const [openActionHeader, setOpenActionHeader] = (0, import_react60.useState)(false);
|
7214
7221
|
function handleOpenActionHeader(e) {
|
7215
7222
|
e.stopPropagation();
|
7216
7223
|
setOpenActionHeader(!openActionHeader);
|
7217
7224
|
}
|
7218
|
-
(0,
|
7225
|
+
(0, import_react60.useEffect)(() => {
|
7219
7226
|
window.onclick = () => {
|
7220
7227
|
if (openActionHeader) {
|
7221
7228
|
setOpenActionHeader(false);
|
@@ -7223,7 +7230,7 @@ var ItemCard = ({
|
|
7223
7230
|
};
|
7224
7231
|
return () => window.onclick = null;
|
7225
7232
|
}, [openActionHeader]);
|
7226
|
-
return /* @__PURE__ */
|
7233
|
+
return /* @__PURE__ */ import_react60.default.createElement(
|
7227
7234
|
"div",
|
7228
7235
|
{
|
7229
7236
|
className: cn(
|
@@ -7239,7 +7246,7 @@ var ItemCard = ({
|
|
7239
7246
|
}
|
7240
7247
|
}
|
7241
7248
|
},
|
7242
|
-
cardImage && /* @__PURE__ */
|
7249
|
+
cardImage && /* @__PURE__ */ import_react60.default.createElement("div", { className: "hawa-group hawa-relative hawa-overflow-clip" }, /* @__PURE__ */ import_react60.default.createElement(
|
7243
7250
|
"img",
|
7244
7251
|
{
|
7245
7252
|
src: cardImage,
|
@@ -7248,7 +7255,7 @@ var ItemCard = ({
|
|
7248
7255
|
clickableImage ? "hawa-overflow-clip hawa-transition-all group-hover:hawa-blur-lg" : ""
|
7249
7256
|
)
|
7250
7257
|
}
|
7251
|
-
), clickableImage && /* @__PURE__ */
|
7258
|
+
), clickableImage && /* @__PURE__ */ import_react60.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react60.default.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__ */ import_react60.default.createElement(
|
7252
7259
|
Button,
|
7253
7260
|
{
|
7254
7261
|
variant: "secondary",
|
@@ -7258,19 +7265,19 @@ var ItemCard = ({
|
|
7258
7265
|
clickableImageActionIcon,
|
7259
7266
|
clickableImageActionText || "Click"
|
7260
7267
|
)))),
|
7261
|
-
/* @__PURE__ */
|
7268
|
+
/* @__PURE__ */ import_react60.default.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__ */ import_react60.default.createElement("div", { className: "hawa-absolute hawa-end-0 hawa-top-0 hawa-flex hawa-justify-end hawa-pe-3 hawa-pt-3" }, /* @__PURE__ */ import_react60.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react60.default.createElement(
|
7262
7269
|
DropdownMenu,
|
7263
7270
|
{
|
7264
7271
|
items: headerActions,
|
7265
|
-
trigger: /* @__PURE__ */
|
7272
|
+
trigger: /* @__PURE__ */ import_react60.default.createElement(
|
7266
7273
|
Button,
|
7267
7274
|
{
|
7268
7275
|
variant: "ghost",
|
7269
7276
|
size: "smallIcon",
|
7270
7277
|
onClick: handleOpenActionHeader
|
7271
7278
|
},
|
7272
|
-
/* @__PURE__ */
|
7273
|
-
/* @__PURE__ */
|
7279
|
+
/* @__PURE__ */ import_react60.default.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"),
|
7280
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
7274
7281
|
"svg",
|
7275
7282
|
{
|
7276
7283
|
className: "hawa-h-5 hawa-w-5",
|
@@ -7278,11 +7285,11 @@ var ItemCard = ({
|
|
7278
7285
|
fill: "currentColor",
|
7279
7286
|
viewBox: "0 0 20 20"
|
7280
7287
|
},
|
7281
|
-
/* @__PURE__ */
|
7288
|
+
/* @__PURE__ */ import_react60.default.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" })
|
7282
7289
|
)
|
7283
7290
|
)
|
7284
7291
|
}
|
7285
|
-
))), /* @__PURE__ */
|
7292
|
+
))), /* @__PURE__ */ import_react60.default.createElement("div", { className: " hawa-mx-2" }, header && /* @__PURE__ */ import_react60.default.createElement("h5", { className: "hawa-mb-2 hawa-text-2xl hawa-font-bold hawa-tracking-tight " }, header), content && /* @__PURE__ */ import_react60.default.createElement("span", { className: "hawa-w-full hawa-font-normal " }, content)), actions || counts ? /* @__PURE__ */ import_react60.default.createElement(
|
7286
7293
|
"div",
|
7287
7294
|
{
|
7288
7295
|
className: cn(
|
@@ -7292,15 +7299,15 @@ var ItemCard = ({
|
|
7292
7299
|
)
|
7293
7300
|
},
|
7294
7301
|
counts,
|
7295
|
-
/* @__PURE__ */
|
7302
|
+
/* @__PURE__ */ import_react60.default.createElement(StopPropagationWrapper, null, actions)
|
7296
7303
|
) : null)
|
7297
7304
|
);
|
7298
7305
|
};
|
7299
7306
|
|
7300
7307
|
// blocks/cards/LandingCard.tsx
|
7301
|
-
var
|
7308
|
+
var import_react61 = __toESM(require("react"));
|
7302
7309
|
var LandingCard = (props) => {
|
7303
|
-
return /* @__PURE__ */
|
7310
|
+
return /* @__PURE__ */ import_react61.default.createElement(Card, { className: props.className }, /* @__PURE__ */ import_react61.default.createElement(CardHeader, null, props.icon, /* @__PURE__ */ import_react61.default.createElement(CardTitle, null, props.title), /* @__PURE__ */ import_react61.default.createElement(CardDescription, null, props.subtitle)));
|
7304
7311
|
};
|
7305
7312
|
|
7306
7313
|
// blocks/pricing/PricingPlans.tsx
|
@@ -7309,7 +7316,7 @@ var PricingPlans = ({
|
|
7309
7316
|
cardsContainerProps,
|
7310
7317
|
...props
|
7311
7318
|
}) => {
|
7312
|
-
return /* @__PURE__ */
|
7319
|
+
return /* @__PURE__ */ import_react62.default.createElement("div", { ...mainContainerProps }, /* @__PURE__ */ import_react62.default.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ import_react62.default.createElement(
|
7313
7320
|
Radio,
|
7314
7321
|
{
|
7315
7322
|
name: "cycle",
|
@@ -7322,7 +7329,7 @@ var PricingPlans = ({
|
|
7322
7329
|
}
|
7323
7330
|
}
|
7324
7331
|
}
|
7325
|
-
), /* @__PURE__ */
|
7332
|
+
), /* @__PURE__ */ import_react62.default.createElement(
|
7326
7333
|
Radio,
|
7327
7334
|
{
|
7328
7335
|
name: "currency",
|
@@ -7335,7 +7342,7 @@ var PricingPlans = ({
|
|
7335
7342
|
}
|
7336
7343
|
}
|
7337
7344
|
}
|
7338
|
-
)), /* @__PURE__ */
|
7345
|
+
)), /* @__PURE__ */ import_react62.default.createElement(
|
7339
7346
|
"div",
|
7340
7347
|
{
|
7341
7348
|
className: "hawa-inline-grid hawa-w-full hawa-grid-cols-[repeat(auto-fit,_minmax(300px,_1fr))] hawa-gap-4",
|
@@ -7343,7 +7350,7 @@ var PricingPlans = ({
|
|
7343
7350
|
},
|
7344
7351
|
props.plans.map((plan, index) => {
|
7345
7352
|
var _a, _b;
|
7346
|
-
return /* @__PURE__ */
|
7353
|
+
return /* @__PURE__ */ import_react62.default.createElement(
|
7347
7354
|
PricingCard,
|
7348
7355
|
{
|
7349
7356
|
key: index,
|
@@ -7374,7 +7381,7 @@ var PricingPlans = ({
|
|
7374
7381
|
};
|
7375
7382
|
|
7376
7383
|
// blocks/pricing/ComparingPlans.tsx
|
7377
|
-
var
|
7384
|
+
var import_react63 = __toESM(require("react"));
|
7378
7385
|
var ComparingPlans = (props) => {
|
7379
7386
|
const uniqueFeatures = Array.from(
|
7380
7387
|
new Set(
|
@@ -7383,7 +7390,7 @@ var ComparingPlans = (props) => {
|
|
7383
7390
|
)
|
7384
7391
|
)
|
7385
7392
|
);
|
7386
|
-
return /* @__PURE__ */
|
7393
|
+
return /* @__PURE__ */ import_react63.default.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ import_react63.default.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__ */ import_react63.default.createElement(
|
7387
7394
|
Radio,
|
7388
7395
|
{
|
7389
7396
|
name: "cycle",
|
@@ -7398,7 +7405,7 @@ var ComparingPlans = (props) => {
|
|
7398
7405
|
}
|
7399
7406
|
}
|
7400
7407
|
}
|
7401
|
-
), /* @__PURE__ */
|
7408
|
+
), /* @__PURE__ */ import_react63.default.createElement(
|
7402
7409
|
Radio,
|
7403
7410
|
{
|
7404
7411
|
name: "currency",
|
@@ -7413,7 +7420,7 @@ var ComparingPlans = (props) => {
|
|
7413
7420
|
}
|
7414
7421
|
}
|
7415
7422
|
}
|
7416
|
-
)), /* @__PURE__ */
|
7423
|
+
)), /* @__PURE__ */ import_react63.default.createElement(
|
7417
7424
|
"div",
|
7418
7425
|
{
|
7419
7426
|
className: cn(
|
@@ -7424,16 +7431,16 @@ var ComparingPlans = (props) => {
|
|
7424
7431
|
top: props.topPosition || 0
|
7425
7432
|
}
|
7426
7433
|
},
|
7427
|
-
/* @__PURE__ */
|
7428
|
-
props.plans.map((plan, i) => /* @__PURE__ */
|
7434
|
+
/* @__PURE__ */ import_react63.default.createElement("div", { className: "hawa-flex hawa-items-center" }),
|
7435
|
+
props.plans.map((plan, i) => /* @__PURE__ */ import_react63.default.createElement(
|
7429
7436
|
"div",
|
7430
7437
|
{
|
7431
7438
|
key: i,
|
7432
7439
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2"
|
7433
7440
|
},
|
7434
|
-
/* @__PURE__ */
|
7441
|
+
/* @__PURE__ */ import_react63.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react63.default.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react63.default.createElement("span", { className: "hawa-text-md hawa-font-bold " }, plan.texts.title), /* @__PURE__ */ import_react63.default.createElement("span", { className: "hawa-text-md hawa-font-normal hawa-text-muted-foreground " }, plan.texts.subtitle)), /* @__PURE__ */ import_react63.default.createElement("div", { className: " hawa-flex hawa-items-baseline " }, /* @__PURE__ */ import_react63.default.createElement(import_react63.default.Fragment, null, /* @__PURE__ */ import_react63.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, plan.price), /* @__PURE__ */ import_react63.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ import_react63.default.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal " }, "/ ", plan.texts.cycleText)))
|
7435
7442
|
))
|
7436
|
-
), /* @__PURE__ */
|
7443
|
+
), /* @__PURE__ */ import_react63.default.createElement(
|
7437
7444
|
ScrollArea,
|
7438
7445
|
{
|
7439
7446
|
className: "hawa-h-fit hawa-rounded hawa-rounded-t-none hawa-border hawa-border-t-0 hawa-bg-background",
|
@@ -7441,7 +7448,7 @@ var ComparingPlans = (props) => {
|
|
7441
7448
|
},
|
7442
7449
|
uniqueFeatures.map((featureText, featureIndex) => {
|
7443
7450
|
var _a, _b, _c, _d;
|
7444
|
-
return /* @__PURE__ */
|
7451
|
+
return /* @__PURE__ */ import_react63.default.createElement(
|
7445
7452
|
"div",
|
7446
7453
|
{
|
7447
7454
|
key: featureIndex,
|
@@ -7450,11 +7457,11 @@ var ComparingPlans = (props) => {
|
|
7450
7457
|
featureIndex === 0 ? "" : "hawa-border-t"
|
7451
7458
|
)
|
7452
7459
|
},
|
7453
|
-
/* @__PURE__ */
|
7460
|
+
/* @__PURE__ */ import_react63.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-foreground" }, featureText, props.plans.some(
|
7454
7461
|
(plan) => plan.features.some(
|
7455
7462
|
(feature) => feature.text === featureText && feature.hint
|
7456
7463
|
)
|
7457
|
-
) && /* @__PURE__ */
|
7464
|
+
) && /* @__PURE__ */ import_react63.default.createElement(
|
7458
7465
|
Tooltip,
|
7459
7466
|
{
|
7460
7467
|
side: "right",
|
@@ -7469,7 +7476,7 @@ var ComparingPlans = (props) => {
|
|
7469
7476
|
(feature) => feature.text === featureText
|
7470
7477
|
)) == null ? void 0 : _b.hint
|
7471
7478
|
},
|
7472
|
-
/* @__PURE__ */
|
7479
|
+
/* @__PURE__ */ import_react63.default.createElement(
|
7473
7480
|
"svg",
|
7474
7481
|
{
|
7475
7482
|
stroke: "currentColor",
|
@@ -7479,13 +7486,13 @@ var ComparingPlans = (props) => {
|
|
7479
7486
|
height: "1em",
|
7480
7487
|
width: "1em"
|
7481
7488
|
},
|
7482
|
-
/* @__PURE__ */
|
7489
|
+
/* @__PURE__ */ import_react63.default.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" })
|
7483
7490
|
)
|
7484
7491
|
), props.plans.some(
|
7485
7492
|
(plan) => plan.features.some(
|
7486
7493
|
(feature) => feature.text === featureText && feature.soon
|
7487
7494
|
)
|
7488
|
-
) && /* @__PURE__ */
|
7495
|
+
) && /* @__PURE__ */ import_react63.default.createElement(
|
7489
7496
|
Chip,
|
7490
7497
|
{
|
7491
7498
|
label: ((_d = (_c = props.plans.find(
|
@@ -7499,26 +7506,26 @@ var ComparingPlans = (props) => {
|
|
7499
7506
|
const feature = plan.features.find(
|
7500
7507
|
(f) => f.text === featureText
|
7501
7508
|
);
|
7502
|
-
return /* @__PURE__ */
|
7509
|
+
return /* @__PURE__ */ import_react63.default.createElement(
|
7503
7510
|
"div",
|
7504
7511
|
{
|
7505
7512
|
key: planIndex,
|
7506
7513
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-text-center"
|
7507
7514
|
},
|
7508
|
-
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */
|
7515
|
+
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */ import_react63.default.createElement(CheckMark, { className: "hawa-text-foreground" }) : /* @__PURE__ */ import_react63.default.createElement(UncheckMark, { className: "hawa-text-foreground" })
|
7509
7516
|
);
|
7510
7517
|
})
|
7511
7518
|
);
|
7512
7519
|
})
|
7513
|
-
), props.showButtons && /* @__PURE__ */
|
7520
|
+
), props.showButtons && /* @__PURE__ */ import_react63.default.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__ */ import_react63.default.createElement("div", { className: "hawa-flex hawa-items-center" }), props.plans.map((plan, i) => {
|
7514
7521
|
var _a;
|
7515
|
-
return /* @__PURE__ */
|
7522
|
+
return /* @__PURE__ */ import_react63.default.createElement(
|
7516
7523
|
"div",
|
7517
7524
|
{
|
7518
7525
|
key: i,
|
7519
7526
|
className: "hawa-flex hawa-items-center hawa-justify-center"
|
7520
7527
|
},
|
7521
|
-
/* @__PURE__ */
|
7528
|
+
/* @__PURE__ */ import_react63.default.createElement(
|
7522
7529
|
Button,
|
7523
7530
|
{
|
7524
7531
|
className: "hawa-w-full hawa-max-w-xs",
|
@@ -7542,15 +7549,15 @@ var ComparingPlans = (props) => {
|
|
7542
7549
|
};
|
7543
7550
|
|
7544
7551
|
// blocks/pricing/HorizontalPricing.tsx
|
7545
|
-
var
|
7552
|
+
var import_react64 = __toESM(require("react"));
|
7546
7553
|
var HorizontalPricing = (props) => {
|
7547
|
-
const [selectedCard, setSelectedCard] = (0,
|
7554
|
+
const [selectedCard, setSelectedCard] = (0, import_react64.useState)("");
|
7548
7555
|
let data = [
|
7549
7556
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
7550
7557
|
{ title: "business", price: "$99", cycle: "/mo" },
|
7551
7558
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
7552
7559
|
];
|
7553
|
-
return /* @__PURE__ */
|
7560
|
+
return /* @__PURE__ */ import_react64.default.createElement("div", { className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm" }, /* @__PURE__ */ import_react64.default.createElement("div", { className: "hawa-max-w-2xl " }, /* @__PURE__ */ import_react64.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ import_react64.default.createElement(
|
7554
7561
|
Radio,
|
7555
7562
|
{
|
7556
7563
|
name: "currency",
|
@@ -7558,7 +7565,7 @@ var HorizontalPricing = (props) => {
|
|
7558
7565
|
options: props.currencies,
|
7559
7566
|
defaultValue: props.currentCurrency
|
7560
7567
|
}
|
7561
|
-
), /* @__PURE__ */
|
7568
|
+
), /* @__PURE__ */ import_react64.default.createElement(
|
7562
7569
|
Radio,
|
7563
7570
|
{
|
7564
7571
|
name: "cycle",
|
@@ -7566,7 +7573,7 @@ var HorizontalPricing = (props) => {
|
|
7566
7573
|
options: props.billingCycles,
|
7567
7574
|
defaultValue: props.currentCycle
|
7568
7575
|
}
|
7569
|
-
)), data.map((d, i) => /* @__PURE__ */
|
7576
|
+
)), data.map((d, i) => /* @__PURE__ */ import_react64.default.createElement(
|
7570
7577
|
"label",
|
7571
7578
|
{
|
7572
7579
|
key: i,
|
@@ -7574,7 +7581,7 @@ var HorizontalPricing = (props) => {
|
|
7574
7581
|
className: "",
|
7575
7582
|
onClick: () => setSelectedCard(d.title)
|
7576
7583
|
},
|
7577
|
-
/* @__PURE__ */
|
7584
|
+
/* @__PURE__ */ import_react64.default.createElement(
|
7578
7585
|
"input",
|
7579
7586
|
{
|
7580
7587
|
type: "radio",
|
@@ -7583,7 +7590,7 @@ var HorizontalPricing = (props) => {
|
|
7583
7590
|
className: "hawa-peer hawa-appearance-none"
|
7584
7591
|
}
|
7585
7592
|
),
|
7586
|
-
/* @__PURE__ */
|
7593
|
+
/* @__PURE__ */ import_react64.default.createElement(
|
7587
7594
|
"div",
|
7588
7595
|
{
|
7589
7596
|
className: cn(
|
@@ -7591,18 +7598,18 @@ var HorizontalPricing = (props) => {
|
|
7591
7598
|
"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"
|
7592
7599
|
)
|
7593
7600
|
},
|
7594
|
-
/* @__PURE__ */
|
7601
|
+
/* @__PURE__ */ import_react64.default.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ import_react64.default.createElement(CheckIcons, null), /* @__PURE__ */ import_react64.default.createElement(
|
7595
7602
|
CardText,
|
7596
7603
|
{
|
7597
7604
|
title: "Enterprise",
|
7598
7605
|
subtitle: "For startups and new businesses"
|
7599
7606
|
}
|
7600
7607
|
)),
|
7601
|
-
/* @__PURE__ */
|
7608
|
+
/* @__PURE__ */ import_react64.default.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
7602
7609
|
)
|
7603
7610
|
))));
|
7604
7611
|
};
|
7605
|
-
var CheckIcons = () => /* @__PURE__ */
|
7612
|
+
var CheckIcons = () => /* @__PURE__ */ import_react64.default.createElement(import_react64.default.Fragment, null, /* @__PURE__ */ import_react64.default.createElement(
|
7606
7613
|
"svg",
|
7607
7614
|
{
|
7608
7615
|
fill: "none",
|
@@ -7611,7 +7618,7 @@ var CheckIcons = () => /* @__PURE__ */ import_react63.default.createElement(impo
|
|
7611
7618
|
stroke: "currentColor",
|
7612
7619
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
7613
7620
|
},
|
7614
|
-
/* @__PURE__ */
|
7621
|
+
/* @__PURE__ */ import_react64.default.createElement(
|
7615
7622
|
"path",
|
7616
7623
|
{
|
7617
7624
|
strokeLinecap: "round",
|
@@ -7619,14 +7626,14 @@ var CheckIcons = () => /* @__PURE__ */ import_react63.default.createElement(impo
|
|
7619
7626
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
7620
7627
|
}
|
7621
7628
|
)
|
7622
|
-
), /* @__PURE__ */
|
7629
|
+
), /* @__PURE__ */ import_react64.default.createElement(
|
7623
7630
|
"svg",
|
7624
7631
|
{
|
7625
7632
|
viewBox: "0 0 24 24",
|
7626
7633
|
fill: "currentColor",
|
7627
7634
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
7628
7635
|
},
|
7629
|
-
/* @__PURE__ */
|
7636
|
+
/* @__PURE__ */ import_react64.default.createElement(
|
7630
7637
|
"path",
|
7631
7638
|
{
|
7632
7639
|
fillRule: "evenodd",
|
@@ -7635,11 +7642,11 @@ var CheckIcons = () => /* @__PURE__ */ import_react63.default.createElement(impo
|
|
7635
7642
|
}
|
7636
7643
|
)
|
7637
7644
|
));
|
7638
|
-
var CardText = (props) => /* @__PURE__ */
|
7639
|
-
var CardPrice = (props) => /* @__PURE__ */
|
7645
|
+
var CardText = (props) => /* @__PURE__ */ import_react64.default.createElement("div", { className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start " }, /* @__PURE__ */ import_react64.default.createElement("h2", { className: "hawa-font-medium hawa-text-primary/90 sm:hawa-text-xl" }, props.title), /* @__PURE__ */ import_react64.default.createElement("p", { className: "hawa-text-sm hawa-text-primary/60" }, props.subtitle, " "));
|
7646
|
+
var CardPrice = (props) => /* @__PURE__ */ import_react64.default.createElement("h2", { className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-primary sm:hawa-text-2xl" }, props.amount, /* @__PURE__ */ import_react64.default.createElement("span", { className: "hawa-text-base hawa-font-medium hawa-text-neutral-400" }, props.cycle));
|
7640
7647
|
|
7641
7648
|
// blocks/Usage.tsx
|
7642
|
-
var
|
7649
|
+
var import_react65 = __toESM(require("react"));
|
7643
7650
|
|
7644
7651
|
// elements/progress/Progress.tsx
|
7645
7652
|
var React64 = __toESM(require("react"));
|
@@ -7667,7 +7674,7 @@ Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
7667
7674
|
// blocks/Usage.tsx
|
7668
7675
|
var Usage = (props) => {
|
7669
7676
|
var _a;
|
7670
|
-
return /* @__PURE__ */
|
7677
|
+
return /* @__PURE__ */ import_react65.default.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__ */ import_react65.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, /* @__PURE__ */ import_react65.default.createElement("span", { className: "hawa-bg-white-200" }, props.title), props.tooltip && /* @__PURE__ */ import_react65.default.createElement(Tooltip, { content: props.tooltip }, /* @__PURE__ */ import_react65.default.createElement(
|
7671
7678
|
"svg",
|
7672
7679
|
{
|
7673
7680
|
stroke: "currentColor",
|
@@ -7678,8 +7685,8 @@ var Usage = (props) => {
|
|
7678
7685
|
height: "1em",
|
7679
7686
|
width: "1em"
|
7680
7687
|
},
|
7681
|
-
/* @__PURE__ */
|
7682
|
-
))), /* @__PURE__ */
|
7688
|
+
/* @__PURE__ */ import_react65.default.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" })
|
7689
|
+
))), /* @__PURE__ */ import_react65.default.createElement("div", { className: "hawa-bg-white-100 hawa-flex hawa-flex-row" }, /* @__PURE__ */ import_react65.default.createElement("div", null, props.currentUsage), /* @__PURE__ */ import_react65.default.createElement("div", null, " (", props.percent, "%)")), /* @__PURE__ */ import_react65.default.createElement(Progress, { value: (_a = props.percent) != null ? _a : 0 }));
|
7683
7690
|
};
|
7684
7691
|
// Annotate the CommonJS export names for ESM import in node:
|
7685
7692
|
0 && (module.exports = {
|
@@ -7713,3 +7720,53 @@ var Usage = (props) => {
|
|
7713
7720
|
Usage,
|
7714
7721
|
UserReferralSource
|
7715
7722
|
});
|
7723
|
+
/*! Bundled license information:
|
7724
|
+
|
7725
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
7726
|
+
(**
|
7727
|
+
* @license lucide-react v0.379.0 - ISC
|
7728
|
+
*
|
7729
|
+
* This source code is licensed under the ISC license.
|
7730
|
+
* See the LICENSE file in the root directory of this source tree.
|
7731
|
+
*)
|
7732
|
+
|
7733
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
7734
|
+
(**
|
7735
|
+
* @license lucide-react v0.379.0 - ISC
|
7736
|
+
*
|
7737
|
+
* This source code is licensed under the ISC license.
|
7738
|
+
* See the LICENSE file in the root directory of this source tree.
|
7739
|
+
*)
|
7740
|
+
|
7741
|
+
lucide-react/dist/esm/Icon.js:
|
7742
|
+
(**
|
7743
|
+
* @license lucide-react v0.379.0 - ISC
|
7744
|
+
*
|
7745
|
+
* This source code is licensed under the ISC license.
|
7746
|
+
* See the LICENSE file in the root directory of this source tree.
|
7747
|
+
*)
|
7748
|
+
|
7749
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
7750
|
+
(**
|
7751
|
+
* @license lucide-react v0.379.0 - ISC
|
7752
|
+
*
|
7753
|
+
* This source code is licensed under the ISC license.
|
7754
|
+
* See the LICENSE file in the root directory of this source tree.
|
7755
|
+
*)
|
7756
|
+
|
7757
|
+
lucide-react/dist/esm/icons/dot.js:
|
7758
|
+
(**
|
7759
|
+
* @license lucide-react v0.379.0 - ISC
|
7760
|
+
*
|
7761
|
+
* This source code is licensed under the ISC license.
|
7762
|
+
* See the LICENSE file in the root directory of this source tree.
|
7763
|
+
*)
|
7764
|
+
|
7765
|
+
lucide-react/dist/esm/lucide-react.js:
|
7766
|
+
(**
|
7767
|
+
* @license lucide-react v0.379.0 - ISC
|
7768
|
+
*
|
7769
|
+
* This source code is licensed under the ISC license.
|
7770
|
+
* See the LICENSE file in the root directory of this source tree.
|
7771
|
+
*)
|
7772
|
+
*/
|