@sikka/hawa 0.37.2-next → 0.38.1-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 +43 -19
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs +43 -19
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.js +43 -19
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +43 -19
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/backToTop/index.js +43 -19
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs +43 -19
- 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 +251 -143
- package/dist/blocks/auth/index.mjs +205 -102
- package/dist/blocks/feedback/index.js +47 -59
- 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 +501 -420
- package/dist/blocks/index.mjs +11 -9
- package/dist/blocks/misc/index.js +48 -51
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.js +47 -41
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/button/index.d.mts +4 -0
- package/dist/button/index.d.ts +4 -0
- package/dist/button/index.js +43 -19
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +43 -19
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.js +43 -19
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs +43 -19
- 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-ZTUWU652.mjs → chunk-EZBHA2IL.mjs} +3 -3
- package/dist/{chunk-ODOCZAWC.mjs → chunk-F23GAE2P.mjs} +1 -1
- package/dist/{chunk-DS3AACQJ.mjs → chunk-IC5WYNKN.mjs} +1 -1
- package/dist/{chunk-QXH7ZDMN.mjs → chunk-RTK6REIK.mjs} +3 -11
- package/dist/{chunk-QYWOI3DO.mjs → chunk-UDJFVH2I.mjs} +204 -144
- package/dist/{chunk-BPHQFAWM.mjs → chunk-UJ5SXC3M.mjs} +3 -11
- package/dist/{chunk-PXGL7ZXQ.mjs → chunk-UMOBOCED.mjs} +44 -19
- package/dist/{chunk-RNFJAEEU.mjs → chunk-V7O5MQZQ.mjs} +44 -19
- package/dist/{chunk-BTDR3VAG.mjs → chunk-WDCKXU54.mjs} +4 -21
- package/dist/{chunk-MDHDHEPZ.mjs → chunk-XFSBC5VI.mjs} +3 -11
- package/dist/codeBlock/index.js +43 -19
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +43 -19
- 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 +44 -29
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +44 -29
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.d.mts +4 -0
- package/dist/datePicker/index.d.ts +4 -0
- package/dist/datePicker/index.js +44 -19
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +44 -19
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/docsLayout/index.js +43 -19
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +43 -19
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +46 -21
- package/dist/elements/index.d.ts +46 -21
- package/dist/elements/index.js +378 -309
- package/dist/elements/index.mjs +14 -23
- package/dist/fileDropzone/index.js +43 -19
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +43 -19
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/index.css +29 -3
- package/dist/index.d.mts +48 -22
- package/dist/index.d.ts +48 -22
- package/dist/index.js +808 -737
- package/dist/index.mjs +331 -264
- 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.js +43 -19
- 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 +43 -19
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs +43 -19
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.d.mts +4 -0
- package/dist/splitButton/index.d.ts +4 -0
- package/dist/splitButton/index.js +43 -19
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +43 -19
- 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
@@ -469,30 +469,54 @@ var Button = React5.forwardRef(
|
|
469
469
|
children,
|
470
470
|
labelProps,
|
471
471
|
showHelperText = false,
|
472
|
+
inForm = false,
|
472
473
|
...props
|
473
474
|
}, ref) => {
|
474
475
|
const Comp = "button";
|
475
476
|
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
className: cn(
|
480
|
-
buttonVariants({ variant, size, className }),
|
481
|
-
centered && "hawa-justify-center"
|
482
|
-
),
|
483
|
-
ref,
|
484
|
-
...props
|
485
|
-
},
|
486
|
-
isLoading ? /* @__PURE__ */ React5.createElement(
|
487
|
-
Loading,
|
477
|
+
if (inForm) {
|
478
|
+
return /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, label && /* @__PURE__ */ React5.createElement(Label, { ...labelProps }, label), /* @__PURE__ */ React5.createElement(
|
479
|
+
Comp,
|
488
480
|
{
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
481
|
+
className: cn(
|
482
|
+
buttonVariants({ variant, size, className }),
|
483
|
+
centered && "hawa-justify-center"
|
484
|
+
),
|
485
|
+
ref,
|
486
|
+
...props
|
487
|
+
},
|
488
|
+
isLoading ? /* @__PURE__ */ React5.createElement(
|
489
|
+
Loading,
|
490
|
+
{
|
491
|
+
design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
|
492
|
+
themeMode: variant === "outline" ? "light" : "dark",
|
493
|
+
color: loadingColor,
|
494
|
+
size: size === "sm" || size === "xs" ? "xs" : "button"
|
495
|
+
}
|
496
|
+
) : children
|
497
|
+
), showHelperText && /* @__PURE__ */ React5.createElement(HelperText, { helperText: props.helperText }));
|
498
|
+
} else {
|
499
|
+
return /* @__PURE__ */ React5.createElement(
|
500
|
+
Comp,
|
501
|
+
{
|
502
|
+
className: cn(
|
503
|
+
buttonVariants({ variant, size, className }),
|
504
|
+
centered && "hawa-justify-center"
|
505
|
+
),
|
506
|
+
ref,
|
507
|
+
...props
|
508
|
+
},
|
509
|
+
isLoading ? /* @__PURE__ */ React5.createElement(
|
510
|
+
Loading,
|
511
|
+
{
|
512
|
+
design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
|
513
|
+
themeMode: variant === "outline" ? "light" : "dark",
|
514
|
+
color: loadingColor,
|
515
|
+
size: size === "sm" || size === "xs" ? "xs" : "button"
|
516
|
+
}
|
517
|
+
) : children
|
518
|
+
);
|
519
|
+
}
|
496
520
|
}
|
497
521
|
);
|
498
522
|
Button.displayName = "Button";
|
@@ -1362,16 +1386,7 @@ var Input = (0, import_react8.forwardRef)(
|
|
1362
1386
|
inputProps == null ? void 0 : inputProps.className
|
1363
1387
|
)
|
1364
1388
|
}
|
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(
|
1389
|
+
)), !forceHideHelperText && /* @__PURE__ */ import_react8.default.createElement(HelperText, { helperText: props.helperText }), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react8.default.createElement(
|
1375
1390
|
"div",
|
1376
1391
|
{
|
1377
1392
|
className: cn(
|
@@ -3267,16 +3282,7 @@ var Select = ({
|
|
3267
3282
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
3268
3283
|
}
|
3269
3284
|
),
|
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
|
-
)
|
3285
|
+
!props.hideHelperText && /* @__PURE__ */ import_react9.default.createElement(HelperText, { helperText: props.helperText })
|
3280
3286
|
);
|
3281
3287
|
};
|
3282
3288
|
|
@@ -3333,16 +3339,7 @@ var PhoneInput = ({
|
|
3333
3339
|
),
|
3334
3340
|
...inputProps
|
3335
3341
|
}
|
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
|
-
));
|
3342
|
+
))), /* @__PURE__ */ import_react10.default.createElement(HelperText, { helperText: props.helperText }));
|
3346
3343
|
};
|
3347
3344
|
|
3348
3345
|
// icons/Emojis.tsx
|
@@ -3809,7 +3806,7 @@ var LoginForm = ({
|
|
3809
3806
|
},
|
3810
3807
|
(texts == null ? void 0 : texts.loginText) || "Login"
|
3811
3808
|
),
|
3812
|
-
props.additionalButtons,
|
3809
|
+
props.additionalButtons && props.additionalButtons,
|
3813
3810
|
props.allowRegister && /* @__PURE__ */ import_react14.default.createElement("div", { className: "hawa-select-none hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300" }, (texts == null ? void 0 : texts.newUserText) || "New user?", " ", /* @__PURE__ */ import_react14.default.createElement(
|
3814
3811
|
"span",
|
3815
3812
|
{
|
@@ -4627,106 +4624,168 @@ var ResetPasswordForm = ({
|
|
4627
4624
|
};
|
4628
4625
|
|
4629
4626
|
// blocks/auth/CodeConfirmation.tsx
|
4630
|
-
var
|
4627
|
+
var import_react24 = __toESM(require("react"));
|
4631
4628
|
var import_react_hook_form5 = require("react-hook-form");
|
4632
4629
|
var import_zod5 = require("@hookform/resolvers/zod");
|
4633
4630
|
var z5 = __toESM(require("zod"));
|
4634
4631
|
|
4635
4632
|
// 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",
|
4633
|
+
var React25 = __toESM(require("react"));
|
4634
|
+
var import_input_otp = require("input-otp");
|
4635
|
+
|
4636
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
4637
|
+
var import_react23 = require("react");
|
4638
|
+
|
4639
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
4640
|
+
var toKebabCase = (string9) => string9.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
4641
|
+
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
4642
|
+
return Boolean(className) && array.indexOf(className) === index;
|
4643
|
+
}).join(" ");
|
4644
|
+
|
4645
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
4646
|
+
var import_react22 = require("react");
|
4647
|
+
|
4648
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
4649
|
+
var defaultAttributes = {
|
4650
|
+
xmlns: "http://www.w3.org/2000/svg",
|
4651
|
+
width: 24,
|
4652
|
+
height: 24,
|
4653
|
+
viewBox: "0 0 24 24",
|
4654
|
+
fill: "none",
|
4655
|
+
stroke: "currentColor",
|
4656
|
+
strokeWidth: 2,
|
4657
|
+
strokeLinecap: "round",
|
4658
|
+
strokeLinejoin: "round"
|
4659
|
+
};
|
4660
|
+
|
4661
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
4662
|
+
var Icon = (0, import_react22.forwardRef)(
|
4663
|
+
({
|
4664
|
+
color = "currentColor",
|
4665
|
+
size = 24,
|
4666
|
+
strokeWidth = 2,
|
4667
|
+
absoluteStrokeWidth,
|
4668
|
+
className = "",
|
4669
|
+
children,
|
4670
|
+
iconNode,
|
4671
|
+
...rest
|
4672
|
+
}, ref) => {
|
4673
|
+
return (0, import_react22.createElement)(
|
4674
|
+
"svg",
|
4688
4675
|
{
|
4689
|
-
|
4690
|
-
|
4691
|
-
|
4692
|
-
|
4693
|
-
|
4694
|
-
|
4695
|
-
|
4696
|
-
|
4697
|
-
|
4698
|
-
|
4699
|
-
),
|
4700
|
-
|
4701
|
-
|
4702
|
-
|
4703
|
-
|
4704
|
-
|
4705
|
-
|
4706
|
-
|
4707
|
-
|
4676
|
+
ref,
|
4677
|
+
...defaultAttributes,
|
4678
|
+
width: size,
|
4679
|
+
height: size,
|
4680
|
+
stroke: color,
|
4681
|
+
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
4682
|
+
className: mergeClasses("lucide", className),
|
4683
|
+
...rest
|
4684
|
+
},
|
4685
|
+
[
|
4686
|
+
...iconNode.map(([tag, attrs]) => (0, import_react22.createElement)(tag, attrs)),
|
4687
|
+
...Array.isArray(children) ? children : [children]
|
4688
|
+
]
|
4689
|
+
);
|
4690
|
+
}
|
4691
|
+
);
|
4692
|
+
|
4693
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
4694
|
+
var createLucideIcon = (iconName, iconNode) => {
|
4695
|
+
const Component = (0, import_react23.forwardRef)(
|
4696
|
+
({ className, ...props }, ref) => (0, import_react23.createElement)(Icon, {
|
4697
|
+
ref,
|
4698
|
+
iconNode,
|
4699
|
+
className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),
|
4700
|
+
...props
|
4701
|
+
})
|
4702
|
+
);
|
4703
|
+
Component.displayName = `${iconName}`;
|
4704
|
+
return Component;
|
4705
|
+
};
|
4706
|
+
|
4707
|
+
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
4708
|
+
var Dot = createLucideIcon("Dot", [
|
4709
|
+
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
4710
|
+
]);
|
4711
|
+
|
4712
|
+
// elements/pinInput/PinInput.tsx
|
4713
|
+
var PinInputRoot = React25.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
4714
|
+
import_input_otp.OTPInput,
|
4715
|
+
{
|
4716
|
+
ref,
|
4717
|
+
containerClassName: cn(
|
4718
|
+
"hawa-flex hawa-items-center hawa-gap-2 has-[:disabled]:hawa-opacity-50",
|
4719
|
+
containerClassName
|
4720
|
+
),
|
4721
|
+
className: cn("disabled:hawa-cursor-not-allowed", className),
|
4722
|
+
...props
|
4723
|
+
}
|
4724
|
+
));
|
4725
|
+
PinInputRoot.displayName = "PinInputRoot";
|
4726
|
+
var PinInputGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
4727
|
+
"div",
|
4728
|
+
{
|
4729
|
+
ref,
|
4730
|
+
className: cn("hawa-flex hawa-items-center", className),
|
4731
|
+
...props
|
4732
|
+
}
|
4733
|
+
));
|
4734
|
+
PinInputGroup.displayName = "PinInputGroup";
|
4735
|
+
var PinInputSlot = React25.forwardRef(({ index, className, ...props }, ref) => {
|
4736
|
+
const pinInputContext = React25.useContext(import_input_otp.OTPInputContext);
|
4737
|
+
const { char, hasFakeCaret, isActive } = pinInputContext.slots[index];
|
4738
|
+
return /* @__PURE__ */ React25.createElement(
|
4739
|
+
"div",
|
4708
4740
|
{
|
4741
|
+
ref,
|
4709
4742
|
className: cn(
|
4710
|
-
"hawa-
|
4711
|
-
|
4712
|
-
|
4743
|
+
"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",
|
4744
|
+
isActive && "hawa-ring-ring hawa-ring-offset-background hawa-z-10 hawa-ring-2",
|
4745
|
+
className
|
4746
|
+
),
|
4747
|
+
...props
|
4713
4748
|
},
|
4714
|
-
|
4715
|
-
|
4749
|
+
char,
|
4750
|
+
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" }))
|
4751
|
+
);
|
4752
|
+
});
|
4753
|
+
PinInputSlot.displayName = "PinInputSlot";
|
4754
|
+
var PinInputSeperator = React25.forwardRef(({ ...props }, ref) => /* @__PURE__ */ React25.createElement("div", { ref, role: "separator", ...props }, /* @__PURE__ */ React25.createElement(Dot, null)));
|
4755
|
+
PinInputSeperator.displayName = "PinInputSeperator";
|
4756
|
+
var PinInput = ({
|
4757
|
+
separatorPosition = 0,
|
4758
|
+
...props
|
4759
|
+
}) => {
|
4760
|
+
const maxLength = props.maxLength || 6;
|
4761
|
+
const clampedSeparatorPosition = Math.min(separatorPosition, maxLength);
|
4762
|
+
const firstGroupLength = clampedSeparatorPosition > 0 ? clampedSeparatorPosition : 0;
|
4763
|
+
const secondGroupLength = maxLength - firstGroupLength;
|
4764
|
+
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(
|
4765
|
+
PinInputSlot,
|
4766
|
+
{
|
4767
|
+
key: index + firstGroupLength,
|
4768
|
+
index: index + firstGroupLength,
|
4769
|
+
className: "hawa-w-full"
|
4770
|
+
}
|
4771
|
+
)))), /* @__PURE__ */ React25.createElement(HelperText, { helperText: props.helperText }));
|
4716
4772
|
};
|
4717
4773
|
|
4718
4774
|
// blocks/auth/CodeConfirmation.tsx
|
4719
|
-
var CodeConfirmation = (
|
4775
|
+
var CodeConfirmation = ({
|
4776
|
+
codeLength = 6,
|
4777
|
+
...props
|
4778
|
+
}) => {
|
4720
4779
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
4721
4780
|
const formSchema = z5.object({
|
4722
|
-
otp_code: z5.string({ required_error: (_a = props.texts) == null ? void 0 : _a.codeRequiredText }).min(
|
4781
|
+
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
4782
|
});
|
4724
4783
|
const { handleSubmit, control, formState, setValue } = (0, import_react_hook_form5.useForm)({
|
4725
4784
|
resolver: (0, import_zod5.zodResolver)(formSchema)
|
4726
4785
|
});
|
4727
|
-
const [resendTimer, setResendTimer] = (0,
|
4728
|
-
const [remainingTime, setRemainingTime] = (0,
|
4729
|
-
const [showResendTimer, setShowResendTimer] = (0,
|
4786
|
+
const [resendTimer, setResendTimer] = (0, import_react24.useState)(null);
|
4787
|
+
const [remainingTime, setRemainingTime] = (0, import_react24.useState)(0);
|
4788
|
+
const [showResendTimer, setShowResendTimer] = (0, import_react24.useState)(false);
|
4730
4789
|
const startResendTimer = () => {
|
4731
4790
|
if (resendTimer !== null) {
|
4732
4791
|
clearInterval(resendTimer);
|
@@ -4748,21 +4807,21 @@ var CodeConfirmation = (props) => {
|
|
4748
4807
|
}, 1e3);
|
4749
4808
|
setResendTimer(newTimer);
|
4750
4809
|
};
|
4751
|
-
(0,
|
4810
|
+
(0, import_react24.useEffect)(() => {
|
4752
4811
|
return () => {
|
4753
4812
|
if (resendTimer !== null) {
|
4754
4813
|
clearInterval(resendTimer);
|
4755
4814
|
}
|
4756
4815
|
};
|
4757
4816
|
}, []);
|
4758
|
-
return /* @__PURE__ */
|
4817
|
+
return /* @__PURE__ */ import_react24.default.createElement(Card, null, /* @__PURE__ */ import_react24.default.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ import_react24.default.createElement(
|
4759
4818
|
Alert,
|
4760
4819
|
{
|
4761
4820
|
title: props.errorTitle,
|
4762
4821
|
text: props.errorText,
|
4763
4822
|
severity: "error"
|
4764
4823
|
}
|
4765
|
-
), /* @__PURE__ */
|
4824
|
+
), /* @__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
4825
|
"form",
|
4767
4826
|
{
|
4768
4827
|
noValidate: true,
|
@@ -4776,26 +4835,25 @@ var CodeConfirmation = (props) => {
|
|
4776
4835
|
}
|
4777
4836
|
})
|
4778
4837
|
},
|
4779
|
-
/* @__PURE__ */
|
4838
|
+
/* @__PURE__ */ import_react24.default.createElement(
|
4780
4839
|
import_react_hook_form5.Controller,
|
4781
4840
|
{
|
4782
4841
|
control,
|
4783
4842
|
name: "otp_code",
|
4784
4843
|
render: ({ field }) => {
|
4785
4844
|
var _a2;
|
4786
|
-
return /* @__PURE__ */
|
4845
|
+
return /* @__PURE__ */ import_react24.default.createElement(
|
4787
4846
|
PinInput,
|
4788
4847
|
{
|
4789
|
-
|
4790
|
-
|
4791
|
-
|
4792
|
-
helperText: (_a2 = formState.errors.otp_code) == null ? void 0 : _a2.message
|
4848
|
+
maxLength: codeLength,
|
4849
|
+
helperText: (_a2 = formState.errors.otp_code) == null ? void 0 : _a2.message,
|
4850
|
+
...field
|
4793
4851
|
}
|
4794
4852
|
);
|
4795
4853
|
}
|
4796
4854
|
}
|
4797
4855
|
),
|
4798
|
-
showResendTimer ? /* @__PURE__ */
|
4856
|
+
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
4857
|
"span",
|
4800
4858
|
{
|
4801
4859
|
className: "clickable-link",
|
@@ -4806,18 +4864,18 @@ var CodeConfirmation = (props) => {
|
|
4806
4864
|
},
|
4807
4865
|
((_i = props.texts) == null ? void 0 : _i.resendCode) || "Click to resend"
|
4808
4866
|
)),
|
4809
|
-
/* @__PURE__ */
|
4867
|
+
/* @__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
4868
|
)));
|
4811
4869
|
};
|
4812
4870
|
|
4813
4871
|
// blocks/feedback/UserReferralSource.tsx
|
4814
|
-
var
|
4872
|
+
var import_react26 = __toESM(require("react"));
|
4815
4873
|
var import_react_hook_form6 = require("react-hook-form");
|
4816
4874
|
var import_zod6 = require("@hookform/resolvers/zod");
|
4817
4875
|
var z6 = __toESM(require("zod"));
|
4818
4876
|
|
4819
4877
|
// elements/radio/Radio.tsx
|
4820
|
-
var
|
4878
|
+
var import_react25 = __toESM(require("react"));
|
4821
4879
|
|
4822
4880
|
// elements/popover/Popover.tsx
|
4823
4881
|
var React27 = __toESM(require("react"));
|
@@ -4885,7 +4943,7 @@ var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
4885
4943
|
var PopoverRoot = PopoverPrimitive.Root;
|
4886
4944
|
|
4887
4945
|
// elements/radio/Radio.tsx
|
4888
|
-
var Radio = (0,
|
4946
|
+
var Radio = (0, import_react25.forwardRef)(
|
4889
4947
|
({
|
4890
4948
|
design = "default",
|
4891
4949
|
width = "default",
|
@@ -4917,15 +4975,15 @@ var Radio = (0, import_react24.forwardRef)(
|
|
4917
4975
|
default: "hawa-max-w-fit",
|
4918
4976
|
full: "hawa-w-full"
|
4919
4977
|
};
|
4920
|
-
const [parentDirection, setParentDirection] =
|
4978
|
+
const [parentDirection, setParentDirection] = import_react25.default.useState(
|
4921
4979
|
null
|
4922
4980
|
);
|
4923
|
-
const [selectedOption, setSelectedOption] = (0,
|
4981
|
+
const [selectedOption, setSelectedOption] = (0, import_react25.useState)(
|
4924
4982
|
props.defaultValue || props.value
|
4925
4983
|
);
|
4926
|
-
const [openTooltip, setOpenTooltip] = (0,
|
4927
|
-
const parentRef = (0,
|
4928
|
-
(0,
|
4984
|
+
const [openTooltip, setOpenTooltip] = (0, import_react25.useState)(null);
|
4985
|
+
const parentRef = (0, import_react25.useRef)(null);
|
4986
|
+
(0, import_react25.useEffect)(() => {
|
4929
4987
|
var _a2;
|
4930
4988
|
const parentNode = (_a2 = parentRef.current) == null ? void 0 : _a2.parentNode;
|
4931
4989
|
if (parentNode) {
|
@@ -4951,7 +5009,7 @@ var Radio = (0, import_react24.forwardRef)(
|
|
4951
5009
|
];
|
4952
5010
|
switch (design) {
|
4953
5011
|
case "tabs":
|
4954
|
-
return /* @__PURE__ */
|
5012
|
+
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
5013
|
"ul",
|
4956
5014
|
{
|
4957
5015
|
ref: parentRef,
|
@@ -4964,21 +5022,21 @@ var Radio = (0, import_react24.forwardRef)(
|
|
4964
5022
|
)
|
4965
5023
|
},
|
4966
5024
|
(_b = props.options) == null ? void 0 : _b.map((opt, o) => {
|
4967
|
-
return opt.tooltip ? /* @__PURE__ */
|
5025
|
+
return opt.tooltip ? /* @__PURE__ */ import_react25.default.createElement(
|
4968
5026
|
PopoverRoot,
|
4969
5027
|
{
|
4970
5028
|
key: o,
|
4971
5029
|
open: o === openTooltip,
|
4972
5030
|
onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
|
4973
5031
|
},
|
4974
|
-
/* @__PURE__ */
|
5032
|
+
/* @__PURE__ */ import_react25.default.createElement(
|
4975
5033
|
PopoverTrigger,
|
4976
5034
|
{
|
4977
5035
|
onMouseEnter: () => setOpenTooltip(o),
|
4978
5036
|
onMouseLeave: () => setOpenTooltip(null),
|
4979
5037
|
asChild: true
|
4980
5038
|
},
|
4981
|
-
/* @__PURE__ */
|
5039
|
+
/* @__PURE__ */ import_react25.default.createElement(
|
4982
5040
|
"li",
|
4983
5041
|
{
|
4984
5042
|
"aria-current": "page",
|
@@ -4996,8 +5054,8 @@ var Radio = (0, import_react24.forwardRef)(
|
|
4996
5054
|
opt.label
|
4997
5055
|
)
|
4998
5056
|
),
|
4999
|
-
/* @__PURE__ */
|
5000
|
-
) : /* @__PURE__ */
|
5057
|
+
/* @__PURE__ */ import_react25.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
5058
|
+
) : /* @__PURE__ */ import_react25.default.createElement(
|
5001
5059
|
"li",
|
5002
5060
|
{
|
5003
5061
|
key: o,
|
@@ -5016,18 +5074,9 @@ var Radio = (0, import_react24.forwardRef)(
|
|
5016
5074
|
opt.label
|
5017
5075
|
);
|
5018
5076
|
})
|
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
|
-
));
|
5077
|
+
), !forceHideHelperText && /* @__PURE__ */ import_react25.default.createElement(HelperText, { helperText: props.helperText }));
|
5029
5078
|
case "bordered":
|
5030
|
-
return /* @__PURE__ */
|
5079
|
+
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
5080
|
"div",
|
5032
5081
|
{
|
5033
5082
|
className: cn(
|
@@ -5036,7 +5085,7 @@ var Radio = (0, import_react24.forwardRef)(
|
|
5036
5085
|
),
|
5037
5086
|
key: i + 1
|
5038
5087
|
},
|
5039
|
-
/* @__PURE__ */
|
5088
|
+
/* @__PURE__ */ import_react25.default.createElement(
|
5040
5089
|
"input",
|
5041
5090
|
{
|
5042
5091
|
disabled: opt.disabled,
|
@@ -5047,7 +5096,7 @@ var Radio = (0, import_react24.forwardRef)(
|
|
5047
5096
|
onChange: () => handleChange(opt)
|
5048
5097
|
}
|
5049
5098
|
),
|
5050
|
-
/* @__PURE__ */
|
5099
|
+
/* @__PURE__ */ import_react25.default.createElement(
|
5051
5100
|
"label",
|
5052
5101
|
{
|
5053
5102
|
htmlFor: opt.value.toString(),
|
@@ -5060,7 +5109,7 @@ var Radio = (0, import_react24.forwardRef)(
|
|
5060
5109
|
)
|
5061
5110
|
))));
|
5062
5111
|
case "cards":
|
5063
|
-
return /* @__PURE__ */
|
5112
|
+
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
5113
|
"input",
|
5065
5114
|
{
|
5066
5115
|
type: "radio",
|
@@ -5071,7 +5120,7 @@ var Radio = (0, import_react24.forwardRef)(
|
|
5071
5120
|
required: true,
|
5072
5121
|
disabled: opt.disabled
|
5073
5122
|
}
|
5074
|
-
), /* @__PURE__ */
|
5123
|
+
), /* @__PURE__ */ import_react25.default.createElement(
|
5075
5124
|
"label",
|
5076
5125
|
{
|
5077
5126
|
htmlFor: opt.value.toString(),
|
@@ -5080,10 +5129,10 @@ var Radio = (0, import_react24.forwardRef)(
|
|
5080
5129
|
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
5130
|
)
|
5082
5131
|
},
|
5083
|
-
/* @__PURE__ */
|
5132
|
+
/* @__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
5133
|
))));
|
5085
5134
|
default:
|
5086
|
-
return /* @__PURE__ */
|
5135
|
+
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
5136
|
"div",
|
5088
5137
|
{
|
5089
5138
|
className: cn(
|
@@ -5092,7 +5141,7 @@ var Radio = (0, import_react24.forwardRef)(
|
|
5092
5141
|
),
|
5093
5142
|
key: i + 1
|
5094
5143
|
},
|
5095
|
-
/* @__PURE__ */
|
5144
|
+
/* @__PURE__ */ import_react25.default.createElement(
|
5096
5145
|
"input",
|
5097
5146
|
{
|
5098
5147
|
disabled: opt.disabled,
|
@@ -5103,7 +5152,7 @@ var Radio = (0, import_react24.forwardRef)(
|
|
5103
5152
|
onChange: () => handleChange(opt)
|
5104
5153
|
}
|
5105
5154
|
),
|
5106
|
-
/* @__PURE__ */
|
5155
|
+
/* @__PURE__ */ import_react25.default.createElement(
|
5107
5156
|
"label",
|
5108
5157
|
{
|
5109
5158
|
htmlFor: opt.value.toString(),
|
@@ -5114,16 +5163,7 @@ var Radio = (0, import_react24.forwardRef)(
|
|
5114
5163
|
},
|
5115
5164
|
opt.label
|
5116
5165
|
)
|
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
|
-
));
|
5166
|
+
))), /* @__PURE__ */ import_react25.default.createElement(HelperText, { helperText: props.helperText }));
|
5127
5167
|
}
|
5128
5168
|
}
|
5129
5169
|
);
|
@@ -5171,16 +5211,7 @@ var Textarea = React29.forwardRef(
|
|
5171
5211
|
ref
|
5172
5212
|
}
|
5173
5213
|
),
|
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))
|
5214
|
+
/* @__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
5215
|
);
|
5185
5216
|
}
|
5186
5217
|
);
|
@@ -5193,8 +5224,8 @@ var UserReferralSource = ({
|
|
5193
5224
|
...props
|
5194
5225
|
}) => {
|
5195
5226
|
var _a, _b;
|
5196
|
-
const [closed, setClosed] = (0,
|
5197
|
-
const popUpRef = (0,
|
5227
|
+
const [closed, setClosed] = (0, import_react26.useState)(false);
|
5228
|
+
const popUpRef = (0, import_react26.useRef)(null);
|
5198
5229
|
const formSchema = z6.object({
|
5199
5230
|
source: z6.string({ required_error: (_a = props.texts) == null ? void 0 : _a.pleaseSelectOption }),
|
5200
5231
|
feedback: z6.string().optional()
|
@@ -5214,7 +5245,7 @@ var UserReferralSource = ({
|
|
5214
5245
|
label: "Other"
|
5215
5246
|
}
|
5216
5247
|
];
|
5217
|
-
return /* @__PURE__ */
|
5248
|
+
return /* @__PURE__ */ import_react26.default.createElement(
|
5218
5249
|
"div",
|
5219
5250
|
{
|
5220
5251
|
className: cn(
|
@@ -5223,7 +5254,7 @@ var UserReferralSource = ({
|
|
5223
5254
|
),
|
5224
5255
|
ref: popUpRef
|
5225
5256
|
},
|
5226
|
-
/* @__PURE__ */
|
5257
|
+
/* @__PURE__ */ import_react26.default.createElement(
|
5227
5258
|
Card,
|
5228
5259
|
{
|
5229
5260
|
className: cn(
|
@@ -5232,7 +5263,7 @@ var UserReferralSource = ({
|
|
5232
5263
|
),
|
5233
5264
|
dir: props.direction
|
5234
5265
|
},
|
5235
|
-
/* @__PURE__ */
|
5266
|
+
/* @__PURE__ */ import_react26.default.createElement(
|
5236
5267
|
"button",
|
5237
5268
|
{
|
5238
5269
|
type: "button",
|
@@ -5251,7 +5282,7 @@ var UserReferralSource = ({
|
|
5251
5282
|
}, 200);
|
5252
5283
|
}
|
5253
5284
|
},
|
5254
|
-
/* @__PURE__ */
|
5285
|
+
/* @__PURE__ */ import_react26.default.createElement(
|
5255
5286
|
"svg",
|
5256
5287
|
{
|
5257
5288
|
"aria-hidden": "true",
|
@@ -5259,7 +5290,7 @@ var UserReferralSource = ({
|
|
5259
5290
|
fill: "currentColor",
|
5260
5291
|
viewBox: "0 0 20 20"
|
5261
5292
|
},
|
5262
|
-
/* @__PURE__ */
|
5293
|
+
/* @__PURE__ */ import_react26.default.createElement(
|
5263
5294
|
"path",
|
5264
5295
|
{
|
5265
5296
|
fillRule: "evenodd",
|
@@ -5269,7 +5300,7 @@ var UserReferralSource = ({
|
|
5269
5300
|
)
|
5270
5301
|
)
|
5271
5302
|
),
|
5272
|
-
/* @__PURE__ */
|
5303
|
+
/* @__PURE__ */ import_react26.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react26.default.createElement(
|
5273
5304
|
"form",
|
5274
5305
|
{
|
5275
5306
|
noValidate: true,
|
@@ -5281,7 +5312,7 @@ var UserReferralSource = ({
|
|
5281
5312
|
}
|
5282
5313
|
})
|
5283
5314
|
},
|
5284
|
-
/* @__PURE__ */
|
5315
|
+
/* @__PURE__ */ import_react26.default.createElement(
|
5285
5316
|
"div",
|
5286
5317
|
{
|
5287
5318
|
className: cn(
|
@@ -5289,15 +5320,15 @@ var UserReferralSource = ({
|
|
5289
5320
|
closed ? "hawa-opacity-0" : "hawa-opacity-100"
|
5290
5321
|
)
|
5291
5322
|
},
|
5292
|
-
/* @__PURE__ */
|
5293
|
-
/* @__PURE__ */
|
5323
|
+
/* @__PURE__ */ import_react26.default.createElement("div", { className: "hawa-mt-4 hawa-font-bold" }, props.question),
|
5324
|
+
/* @__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
5325
|
import_react_hook_form6.Controller,
|
5295
5326
|
{
|
5296
5327
|
control,
|
5297
5328
|
name: "source",
|
5298
5329
|
render: ({ field }) => {
|
5299
5330
|
var _a2, _b2;
|
5300
|
-
return /* @__PURE__ */
|
5331
|
+
return /* @__PURE__ */ import_react26.default.createElement(
|
5301
5332
|
Radio,
|
5302
5333
|
{
|
5303
5334
|
name: "source",
|
@@ -5312,14 +5343,14 @@ var UserReferralSource = ({
|
|
5312
5343
|
}
|
5313
5344
|
}
|
5314
5345
|
)),
|
5315
|
-
/* @__PURE__ */
|
5346
|
+
/* @__PURE__ */ import_react26.default.createElement("div", null, /* @__PURE__ */ import_react26.default.createElement(
|
5316
5347
|
import_react_hook_form6.Controller,
|
5317
5348
|
{
|
5318
5349
|
control,
|
5319
5350
|
name: "feedback",
|
5320
5351
|
render: ({ field }) => {
|
5321
5352
|
var _a2, _b2;
|
5322
|
-
return /* @__PURE__ */
|
5353
|
+
return /* @__PURE__ */ import_react26.default.createElement(
|
5323
5354
|
Textarea,
|
5324
5355
|
{
|
5325
5356
|
...field,
|
@@ -5334,28 +5365,28 @@ var UserReferralSource = ({
|
|
5334
5365
|
}
|
5335
5366
|
))
|
5336
5367
|
),
|
5337
|
-
/* @__PURE__ */
|
5368
|
+
/* @__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
5369
|
))
|
5339
5370
|
)
|
5340
5371
|
);
|
5341
5372
|
};
|
5342
5373
|
|
5343
5374
|
// blocks/feedback/FeedbackRating.tsx
|
5344
|
-
var
|
5375
|
+
var import_react27 = __toESM(require("react"));
|
5345
5376
|
var FeedbackRating = ({
|
5346
5377
|
position = "bottom-right",
|
5347
5378
|
...props
|
5348
5379
|
}) => {
|
5349
|
-
const [closed, setClosed] = (0,
|
5350
|
-
const [answered, setAnswered] = (0,
|
5351
|
-
const [clickedOption, setClickedOption] = (0,
|
5352
|
-
const [closingTimer, setClosingTimer] = (0,
|
5353
|
-
const popUpRef = (0,
|
5380
|
+
const [closed, setClosed] = (0, import_react27.useState)(false);
|
5381
|
+
const [answered, setAnswered] = (0, import_react27.useState)(false);
|
5382
|
+
const [clickedOption, setClickedOption] = (0, import_react27.useState)(null);
|
5383
|
+
const [closingTimer, setClosingTimer] = (0, import_react27.useState)(5);
|
5384
|
+
const popUpRef = (0, import_react27.useRef)(null);
|
5354
5385
|
const boxPosition = {
|
5355
5386
|
"bottom-right": "hawa-right-4",
|
5356
5387
|
"bottom-left": "hawa-left-4"
|
5357
5388
|
};
|
5358
|
-
(0,
|
5389
|
+
(0, import_react27.useEffect)(() => {
|
5359
5390
|
const timeoutHide = setTimeout(() => {
|
5360
5391
|
if (closingTimer >= 0) {
|
5361
5392
|
setClosingTimer(closingTimer - 1);
|
@@ -5373,7 +5404,7 @@ var FeedbackRating = ({
|
|
5373
5404
|
}
|
5374
5405
|
}, 200);
|
5375
5406
|
};
|
5376
|
-
return /* @__PURE__ */
|
5407
|
+
return /* @__PURE__ */ import_react27.default.createElement(
|
5377
5408
|
"div",
|
5378
5409
|
{
|
5379
5410
|
ref: popUpRef,
|
@@ -5382,7 +5413,7 @@ var FeedbackRating = ({
|
|
5382
5413
|
boxPosition[position]
|
5383
5414
|
)
|
5384
5415
|
},
|
5385
|
-
/* @__PURE__ */
|
5416
|
+
/* @__PURE__ */ import_react27.default.createElement(
|
5386
5417
|
"div",
|
5387
5418
|
{
|
5388
5419
|
className: cn(
|
@@ -5391,8 +5422,8 @@ var FeedbackRating = ({
|
|
5391
5422
|
props.banner && "hawa-rounded-none hawa-px-4 md:hawa-rounded-t md:hawa-px-64"
|
5392
5423
|
)
|
5393
5424
|
},
|
5394
|
-
/* @__PURE__ */
|
5395
|
-
/* @__PURE__ */
|
5425
|
+
/* @__PURE__ */ import_react27.default.createElement("div", { className: "hawa-absolute hawa-left-2 hawa-top-2 hawa-p-1.5 hawa-text-sm" }, props.title),
|
5426
|
+
/* @__PURE__ */ import_react27.default.createElement(
|
5396
5427
|
"button",
|
5397
5428
|
{
|
5398
5429
|
type: "button",
|
@@ -5401,7 +5432,7 @@ var FeedbackRating = ({
|
|
5401
5432
|
"aria-label": "Close",
|
5402
5433
|
onClick: () => slowClose()
|
5403
5434
|
},
|
5404
|
-
/* @__PURE__ */
|
5435
|
+
/* @__PURE__ */ import_react27.default.createElement(
|
5405
5436
|
"svg",
|
5406
5437
|
{
|
5407
5438
|
"aria-hidden": "true",
|
@@ -5409,7 +5440,7 @@ var FeedbackRating = ({
|
|
5409
5440
|
fill: "currentColor",
|
5410
5441
|
viewBox: "0 0 20 20"
|
5411
5442
|
},
|
5412
|
-
/* @__PURE__ */
|
5443
|
+
/* @__PURE__ */ import_react27.default.createElement(
|
5413
5444
|
"path",
|
5414
5445
|
{
|
5415
5446
|
fillRule: "evenodd",
|
@@ -5419,8 +5450,8 @@ var FeedbackRating = ({
|
|
5419
5450
|
)
|
5420
5451
|
)
|
5421
5452
|
),
|
5422
|
-
/* @__PURE__ */
|
5423
|
-
/* @__PURE__ */
|
5453
|
+
/* @__PURE__ */ import_react27.default.createElement("div", { className: "hawa-mt-8" }, props.question),
|
5454
|
+
/* @__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
5455
|
"span",
|
5425
5456
|
{
|
5426
5457
|
key: i,
|
@@ -5448,24 +5479,24 @@ var FeedbackRating = ({
|
|
5448
5479
|
},
|
5449
5480
|
op
|
5450
5481
|
))),
|
5451
|
-
props.texts && /* @__PURE__ */
|
5452
|
-
answered && /* @__PURE__ */
|
5482
|
+
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)),
|
5483
|
+
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
5484
|
)
|
5454
5485
|
);
|
5455
5486
|
};
|
5456
5487
|
|
5457
5488
|
// blocks/feedback/FeedbackEmoji.tsx
|
5458
|
-
var
|
5489
|
+
var import_react28 = __toESM(require("react"));
|
5459
5490
|
var FeedbackEmoji = (props) => {
|
5460
|
-
const [selectedEmoji, setSelectedEmoji] = (0,
|
5461
|
-
const [loadingSubmit, setLoadingSubmit] = (0,
|
5462
|
-
const [feedbackText, setFeedbackText] = (0,
|
5463
|
-
const [helperText, setHelperText] = (0,
|
5491
|
+
const [selectedEmoji, setSelectedEmoji] = (0, import_react28.useState)(null);
|
5492
|
+
const [loadingSubmit, setLoadingSubmit] = (0, import_react28.useState)(false);
|
5493
|
+
const [feedbackText, setFeedbackText] = (0, import_react28.useState)("");
|
5494
|
+
const [helperText, setHelperText] = (0, import_react28.useState)(false);
|
5464
5495
|
let emojis = [
|
5465
|
-
{ icon: /* @__PURE__ */
|
5466
|
-
{ icon: /* @__PURE__ */
|
5467
|
-
{ icon: /* @__PURE__ */
|
5468
|
-
{ icon: /* @__PURE__ */
|
5496
|
+
{ icon: /* @__PURE__ */ import_react28.default.createElement(VeryGoodEmoji, null), value: "very-good" },
|
5497
|
+
{ icon: /* @__PURE__ */ import_react28.default.createElement(GoodEmoji, null), value: "good" },
|
5498
|
+
{ icon: /* @__PURE__ */ import_react28.default.createElement(BadEmoji, null), value: "bad" },
|
5499
|
+
{ icon: /* @__PURE__ */ import_react28.default.createElement(VeryBadEmoji, null), value: "very-bad" }
|
5469
5500
|
];
|
5470
5501
|
const onFeedbackSubmit = async () => {
|
5471
5502
|
if (feedbackText) {
|
@@ -5485,7 +5516,7 @@ var FeedbackEmoji = (props) => {
|
|
5485
5516
|
setHelperText(true);
|
5486
5517
|
}
|
5487
5518
|
};
|
5488
|
-
return /* @__PURE__ */
|
5519
|
+
return /* @__PURE__ */ import_react28.default.createElement(
|
5489
5520
|
"div",
|
5490
5521
|
{
|
5491
5522
|
className: cn(
|
@@ -5493,7 +5524,7 @@ var FeedbackEmoji = (props) => {
|
|
5493
5524
|
selectedEmoji ? "hawa-h-[189px] hawa-min-w-fit" : "hawa-h-[44px] "
|
5494
5525
|
)
|
5495
5526
|
},
|
5496
|
-
/* @__PURE__ */
|
5527
|
+
/* @__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
5528
|
Button,
|
5498
5529
|
{
|
5499
5530
|
key: i,
|
@@ -5512,7 +5543,7 @@ var FeedbackEmoji = (props) => {
|
|
5512
5543
|
},
|
5513
5544
|
emoji.icon
|
5514
5545
|
)))),
|
5515
|
-
/* @__PURE__ */
|
5546
|
+
/* @__PURE__ */ import_react28.default.createElement(
|
5516
5547
|
"div",
|
5517
5548
|
{
|
5518
5549
|
className: cn(
|
@@ -5520,7 +5551,7 @@ var FeedbackEmoji = (props) => {
|
|
5520
5551
|
selectedEmoji ? "hawa-visible hawa-opacity-100" : "hawa-invisible hawa-opacity-0 "
|
5521
5552
|
)
|
5522
5553
|
},
|
5523
|
-
props.showSuccess ? /* @__PURE__ */
|
5554
|
+
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
5555
|
"svg",
|
5525
5556
|
{
|
5526
5557
|
stroke: "currentColor",
|
@@ -5530,13 +5561,13 @@ var FeedbackEmoji = (props) => {
|
|
5530
5561
|
height: "0.5em",
|
5531
5562
|
width: "0.5em"
|
5532
5563
|
},
|
5533
|
-
/* @__PURE__ */
|
5534
|
-
)), /* @__PURE__ */
|
5564
|
+
/* @__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" })
|
5565
|
+
)), /* @__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
5566
|
Popover,
|
5536
5567
|
{
|
5537
5568
|
className: "hawa-select-none hawa-p-1 hawa-text-xs ",
|
5538
5569
|
open: helperText,
|
5539
|
-
trigger: /* @__PURE__ */
|
5570
|
+
trigger: /* @__PURE__ */ import_react28.default.createElement(
|
5540
5571
|
Textarea,
|
5541
5572
|
{
|
5542
5573
|
classNames: {
|
@@ -5554,8 +5585,8 @@ var FeedbackEmoji = (props) => {
|
|
5554
5585
|
}
|
5555
5586
|
)
|
5556
5587
|
},
|
5557
|
-
/* @__PURE__ */
|
5558
|
-
), /* @__PURE__ */
|
5588
|
+
/* @__PURE__ */ import_react28.default.createElement("span", { className: "hawa-m-0" }, "Please enter your feedback")
|
5589
|
+
), /* @__PURE__ */ import_react28.default.createElement(
|
5559
5590
|
Button,
|
5560
5591
|
{
|
5561
5592
|
isLoading: loadingSubmit,
|
@@ -5570,7 +5601,7 @@ var FeedbackEmoji = (props) => {
|
|
5570
5601
|
};
|
5571
5602
|
|
5572
5603
|
// blocks/feedback/FeedbackForm.tsx
|
5573
|
-
var
|
5604
|
+
var import_react29 = __toESM(require("react"));
|
5574
5605
|
var import_react_hook_form7 = require("react-hook-form");
|
5575
5606
|
var import_zod7 = require("@hookform/resolvers/zod");
|
5576
5607
|
var z7 = __toESM(require("zod"));
|
@@ -5584,7 +5615,7 @@ var FeedbackForm = (props) => {
|
|
5584
5615
|
resolver: (0, import_zod7.zodResolver)(formSchema),
|
5585
5616
|
defaultValues: { requestType: "", description: "" }
|
5586
5617
|
});
|
5587
|
-
return /* @__PURE__ */
|
5618
|
+
return /* @__PURE__ */ import_react29.default.createElement(
|
5588
5619
|
Card,
|
5589
5620
|
{
|
5590
5621
|
className: cn(
|
@@ -5592,7 +5623,7 @@ var FeedbackForm = (props) => {
|
|
5592
5623
|
),
|
5593
5624
|
style: props.cardless ? { boxShadow: "none" } : void 0
|
5594
5625
|
},
|
5595
|
-
/* @__PURE__ */
|
5626
|
+
/* @__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
5627
|
"form",
|
5597
5628
|
{
|
5598
5629
|
noValidate: true,
|
@@ -5605,15 +5636,15 @@ var FeedbackForm = (props) => {
|
|
5605
5636
|
}),
|
5606
5637
|
className: "hawa-flex hawa-flex-col hawa-gap-2"
|
5607
5638
|
},
|
5608
|
-
/* @__PURE__ */
|
5609
|
-
/* @__PURE__ */
|
5639
|
+
/* @__PURE__ */ import_react29.default.createElement(Label, null),
|
5640
|
+
/* @__PURE__ */ import_react29.default.createElement(
|
5610
5641
|
import_react_hook_form7.Controller,
|
5611
5642
|
{
|
5612
5643
|
name: "requestType",
|
5613
5644
|
control,
|
5614
5645
|
render: ({ field }) => {
|
5615
5646
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
|
5616
|
-
return /* @__PURE__ */
|
5647
|
+
return /* @__PURE__ */ import_react29.default.createElement(
|
5617
5648
|
Select,
|
5618
5649
|
{
|
5619
5650
|
...field,
|
@@ -5631,14 +5662,14 @@ var FeedbackForm = (props) => {
|
|
5631
5662
|
}
|
5632
5663
|
}
|
5633
5664
|
),
|
5634
|
-
/* @__PURE__ */
|
5665
|
+
/* @__PURE__ */ import_react29.default.createElement(
|
5635
5666
|
import_react_hook_form7.Controller,
|
5636
5667
|
{
|
5637
5668
|
name: "description",
|
5638
5669
|
control,
|
5639
5670
|
render: ({ field }) => {
|
5640
5671
|
var _a2, _b2, _c2, _d2, _e2, _f2;
|
5641
|
-
return /* @__PURE__ */
|
5672
|
+
return /* @__PURE__ */ import_react29.default.createElement(
|
5642
5673
|
Textarea,
|
5643
5674
|
{
|
5644
5675
|
helperText: formState.errors.description && ((_b2 = (_a2 = formState.errors.description) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString()),
|
@@ -5656,13 +5687,13 @@ var FeedbackForm = (props) => {
|
|
5656
5687
|
}
|
5657
5688
|
}
|
5658
5689
|
),
|
5659
|
-
/* @__PURE__ */
|
5690
|
+
/* @__PURE__ */ import_react29.default.createElement(Button, { isLoading: props.loadingSubmission, type: "submit" }, (_i = props.texts) == null ? void 0 : _i.submit)
|
5660
5691
|
))
|
5661
5692
|
);
|
5662
5693
|
};
|
5663
5694
|
|
5664
5695
|
// blocks/misc/LegalTexts.tsx
|
5665
|
-
var
|
5696
|
+
var import_react48 = __toESM(require("react"));
|
5666
5697
|
|
5667
5698
|
// elements/scrollArea/ScrollArea.tsx
|
5668
5699
|
var React34 = __toESM(require("react"));
|
@@ -5734,7 +5765,7 @@ var ScrollArea = React34.forwardRef(({ className, children, orientation = "verti
|
|
5734
5765
|
"div",
|
5735
5766
|
{
|
5736
5767
|
className: cn(
|
5737
|
-
"hawa-pointer-events-none hawa-absolute hawa-bg-background
|
5768
|
+
"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
5769
|
showLeftFade ? "hawa-block" : "hawa-hidden"
|
5739
5770
|
)
|
5740
5771
|
}
|
@@ -5743,7 +5774,7 @@ var ScrollArea = React34.forwardRef(({ className, children, orientation = "verti
|
|
5743
5774
|
"div",
|
5744
5775
|
{
|
5745
5776
|
className: cn(
|
5746
|
-
"hawa-pointer-events-none hawa-absolute hawa-bg-background
|
5777
|
+
"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
5778
|
showRightFade ? "hawa-block" : "hawa-hidden"
|
5748
5779
|
)
|
5749
5780
|
}
|
@@ -5791,57 +5822,57 @@ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
5791
5822
|
var React45 = __toESM(require("react"));
|
5792
5823
|
|
5793
5824
|
// hooks/useIsomorphicEffect.ts
|
5794
|
-
var
|
5825
|
+
var import_react30 = require("react");
|
5795
5826
|
|
5796
5827
|
// hooks/useDiscloser.ts
|
5797
|
-
var
|
5828
|
+
var import_react31 = require("react");
|
5798
5829
|
|
5799
5830
|
// hooks/useHover.ts
|
5800
|
-
var
|
5831
|
+
var import_react32 = require("react");
|
5801
5832
|
|
5802
5833
|
// hooks/useToast.ts
|
5803
5834
|
var React37 = __toESM(require("react"));
|
5804
5835
|
|
5805
5836
|
// hooks/useCarousel.ts
|
5806
|
-
var
|
5837
|
+
var import_react33 = require("react");
|
5807
5838
|
|
5808
5839
|
// hooks/useDialogCarousel.ts
|
5809
|
-
var
|
5840
|
+
var import_react34 = require("react");
|
5810
5841
|
var import_embla_carousel_auto_height = __toESM(require("embla-carousel-auto-height"));
|
5811
5842
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
|
5812
5843
|
|
5813
5844
|
// hooks/useDialogSteps.ts
|
5814
|
-
var
|
5845
|
+
var import_react35 = require("react");
|
5815
5846
|
|
5816
5847
|
// hooks/useClipboard.ts
|
5817
|
-
var
|
5848
|
+
var import_react36 = require("react");
|
5818
5849
|
|
5819
5850
|
// hooks/useBreakpoint.ts
|
5820
|
-
var
|
5851
|
+
var import_react37 = require("react");
|
5821
5852
|
|
5822
5853
|
// hooks/useWindowSize.ts
|
5823
|
-
var
|
5854
|
+
var import_react38 = require("react");
|
5824
5855
|
|
5825
5856
|
// hooks/useFocusWithin.ts
|
5826
|
-
var
|
5857
|
+
var import_react39 = require("react");
|
5827
5858
|
|
5828
5859
|
// hooks/useMediaQuery.ts
|
5829
|
-
var
|
5860
|
+
var import_react40 = require("react");
|
5830
5861
|
|
5831
5862
|
// hooks/useScrollPosition.ts
|
5832
|
-
var
|
5863
|
+
var import_react41 = require("react");
|
5833
5864
|
|
5834
5865
|
// hooks/useTable.ts
|
5835
|
-
var
|
5866
|
+
var import_react42 = require("react");
|
5836
5867
|
|
5837
5868
|
// hooks/useTabs.ts
|
5838
|
-
var
|
5869
|
+
var import_react43 = require("react");
|
5839
5870
|
|
5840
5871
|
// hooks/useMeasureDirty.ts
|
5841
|
-
var
|
5872
|
+
var import_react44 = require("react");
|
5842
5873
|
var useMeasureDirty = (ref) => {
|
5843
|
-
const frame = (0,
|
5844
|
-
const [rect, set] = (0,
|
5874
|
+
const frame = (0, import_react44.useRef)(0);
|
5875
|
+
const [rect, set] = (0, import_react44.useState)({
|
5845
5876
|
width: 0,
|
5846
5877
|
height: 0,
|
5847
5878
|
top: 0,
|
@@ -5849,7 +5880,7 @@ var useMeasureDirty = (ref) => {
|
|
5849
5880
|
bottom: 0,
|
5850
5881
|
right: 0
|
5851
5882
|
});
|
5852
|
-
const [observer] = (0,
|
5883
|
+
const [observer] = (0, import_react44.useState)(
|
5853
5884
|
() => new ResizeObserver((entries) => {
|
5854
5885
|
const entry = entries[0];
|
5855
5886
|
if (entry) {
|
@@ -5862,7 +5893,7 @@ var useMeasureDirty = (ref) => {
|
|
5862
5893
|
}
|
5863
5894
|
})
|
5864
5895
|
);
|
5865
|
-
(0,
|
5896
|
+
(0, import_react44.useEffect)(() => {
|
5866
5897
|
observer.disconnect();
|
5867
5898
|
if (ref.current) {
|
5868
5899
|
observer.observe(ref.current);
|
@@ -5872,18 +5903,18 @@ var useMeasureDirty = (ref) => {
|
|
5872
5903
|
};
|
5873
5904
|
|
5874
5905
|
// hooks/useClickOutside.ts
|
5875
|
-
var
|
5906
|
+
var import_react45 = require("react");
|
5876
5907
|
|
5877
5908
|
// hooks/useShortcuts.ts
|
5878
|
-
var
|
5909
|
+
var import_react46 = require("react");
|
5879
5910
|
|
5880
5911
|
// elements/tabs/Tabs.tsx
|
5881
5912
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
5882
5913
|
var import_tailwind_variants = require("tailwind-variants");
|
5883
5914
|
|
5884
5915
|
// elements/chip/Chip.tsx
|
5885
|
-
var
|
5886
|
-
var Chip =
|
5916
|
+
var import_react47 = __toESM(require("react"));
|
5917
|
+
var Chip = import_react47.default.forwardRef(
|
5887
5918
|
({
|
5888
5919
|
label,
|
5889
5920
|
size = "normal",
|
@@ -5927,7 +5958,7 @@ var Chip = import_react46.default.forwardRef(
|
|
5927
5958
|
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
5959
|
};
|
5929
5960
|
if (label) {
|
5930
|
-
return /* @__PURE__ */
|
5961
|
+
return /* @__PURE__ */ import_react47.default.createElement(
|
5931
5962
|
"span",
|
5932
5963
|
{
|
5933
5964
|
...rest,
|
@@ -5939,7 +5970,7 @@ var Chip = import_react46.default.forwardRef(
|
|
5939
5970
|
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
5940
5971
|
)
|
5941
5972
|
},
|
5942
|
-
dot && /* @__PURE__ */
|
5973
|
+
dot && /* @__PURE__ */ import_react47.default.createElement(
|
5943
5974
|
"span",
|
5944
5975
|
{
|
5945
5976
|
className: cn(dotStyles[size], dotStatusStyles[dotStatus])
|
@@ -5949,7 +5980,7 @@ var Chip = import_react46.default.forwardRef(
|
|
5949
5980
|
label
|
5950
5981
|
);
|
5951
5982
|
} else {
|
5952
|
-
return /* @__PURE__ */
|
5983
|
+
return /* @__PURE__ */ import_react47.default.createElement(
|
5953
5984
|
"span",
|
5954
5985
|
{
|
5955
5986
|
...rest,
|
@@ -6186,7 +6217,7 @@ TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
6186
6217
|
|
6187
6218
|
// blocks/misc/LegalTexts.tsx
|
6188
6219
|
var LegalTexts = ({ tabs, ...props }) => {
|
6189
|
-
return /* @__PURE__ */
|
6220
|
+
return /* @__PURE__ */ import_react48.default.createElement(
|
6190
6221
|
Tabs,
|
6191
6222
|
{
|
6192
6223
|
value: props.activeTab,
|
@@ -6194,8 +6225,8 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
6194
6225
|
defaultValue: props.defaultTab || tabs[0].value,
|
6195
6226
|
dir: props.direction
|
6196
6227
|
},
|
6197
|
-
/* @__PURE__ */
|
6198
|
-
tabs.map((tab, index) => /* @__PURE__ */
|
6228
|
+
/* @__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))),
|
6229
|
+
tabs.map((tab, index) => /* @__PURE__ */ import_react48.default.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ import_react48.default.createElement(
|
6199
6230
|
ScrollArea,
|
6200
6231
|
{
|
6201
6232
|
className: cn(
|
@@ -6209,9 +6240,9 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
6209
6240
|
};
|
6210
6241
|
|
6211
6242
|
// blocks/misc/EmptyState.tsx
|
6212
|
-
var
|
6243
|
+
var import_react49 = __toESM(require("react"));
|
6213
6244
|
var EmptyState = ({ texts, onActionClick }) => {
|
6214
|
-
return /* @__PURE__ */
|
6245
|
+
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
6246
|
"svg",
|
6216
6247
|
{
|
6217
6248
|
stroke: "currentColor",
|
@@ -6221,30 +6252,30 @@ var EmptyState = ({ texts, onActionClick }) => {
|
|
6221
6252
|
height: "0.35em",
|
6222
6253
|
width: "0.35em"
|
6223
6254
|
},
|
6224
|
-
/* @__PURE__ */
|
6225
|
-
)), /* @__PURE__ */
|
6255
|
+
/* @__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" })
|
6256
|
+
)), /* @__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
6257
|
};
|
6227
6258
|
|
6228
6259
|
// blocks/misc/Testimonial.tsx
|
6229
|
-
var
|
6260
|
+
var import_react50 = __toESM(require("react"));
|
6230
6261
|
var Testimonial = () => {
|
6231
|
-
return /* @__PURE__ */
|
6262
|
+
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
6263
|
"path",
|
6233
6264
|
{
|
6234
6265
|
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
6266
|
fill: "#FFFFFF"
|
6236
6267
|
}
|
6237
|
-
), /* @__PURE__ */
|
6268
|
+
), /* @__PURE__ */ import_react50.default.createElement(
|
6238
6269
|
"path",
|
6239
6270
|
{
|
6240
6271
|
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
6272
|
fill: "#FFFFFF"
|
6242
6273
|
}
|
6243
|
-
)), /* @__PURE__ */
|
6274
|
+
)), /* @__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
6275
|
};
|
6245
6276
|
|
6246
6277
|
// blocks/misc/LeadGenerator.tsx
|
6247
|
-
var
|
6278
|
+
var import_react51 = __toESM(require("react"));
|
6248
6279
|
var import_react_hook_form8 = require("react-hook-form");
|
6249
6280
|
var LeadGenerator = ({ texts, submitHandler }) => {
|
6250
6281
|
var _a;
|
@@ -6256,14 +6287,14 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
6256
6287
|
console.log("handleNewsletterSub props was not provided");
|
6257
6288
|
}
|
6258
6289
|
};
|
6259
|
-
return /* @__PURE__ */
|
6290
|
+
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
6291
|
"form",
|
6261
6292
|
{
|
6262
6293
|
noValidate: true,
|
6263
6294
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
6264
6295
|
onSubmit: handleSubmit(onSubmit)
|
6265
6296
|
},
|
6266
|
-
/* @__PURE__ */
|
6297
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
6267
6298
|
import_react_hook_form8.Controller,
|
6268
6299
|
{
|
6269
6300
|
name: "email",
|
@@ -6276,27 +6307,27 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
6276
6307
|
}
|
6277
6308
|
},
|
6278
6309
|
defaultValue: "",
|
6279
|
-
render: ({ field }) => /* @__PURE__ */
|
6310
|
+
render: ({ field }) => /* @__PURE__ */ import_react51.default.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
|
6280
6311
|
}
|
6281
6312
|
),
|
6282
|
-
/* @__PURE__ */
|
6313
|
+
/* @__PURE__ */ import_react51.default.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
|
6283
6314
|
)));
|
6284
6315
|
};
|
6285
6316
|
|
6286
6317
|
// blocks/misc/Announcement.tsx
|
6287
|
-
var
|
6318
|
+
var import_react52 = __toESM(require("react"));
|
6288
6319
|
var Announcement = ({
|
6289
6320
|
onActionClick,
|
6290
6321
|
...props
|
6291
6322
|
}) => {
|
6292
|
-
return /* @__PURE__ */
|
6323
|
+
return /* @__PURE__ */ import_react52.default.createElement(Card, null, /* @__PURE__ */ import_react52.default.createElement(
|
6293
6324
|
CardContent,
|
6294
6325
|
{
|
6295
6326
|
headless: true,
|
6296
6327
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
6297
6328
|
},
|
6298
|
-
/* @__PURE__ */
|
6299
|
-
/* @__PURE__ */
|
6329
|
+
/* @__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)),
|
6330
|
+
/* @__PURE__ */ import_react52.default.createElement(
|
6300
6331
|
Button,
|
6301
6332
|
{
|
6302
6333
|
onClick: () => onActionClick(),
|
@@ -6308,15 +6339,15 @@ var Announcement = ({
|
|
6308
6339
|
};
|
6309
6340
|
|
6310
6341
|
// blocks/misc/NotFound.tsx
|
6311
|
-
var
|
6342
|
+
var import_react53 = __toESM(require("react"));
|
6312
6343
|
var NotFound = ({ texts }) => {
|
6313
|
-
return /* @__PURE__ */
|
6344
|
+
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
6345
|
};
|
6315
6346
|
|
6316
6347
|
// blocks/misc/NoPermission.tsx
|
6317
|
-
var
|
6348
|
+
var import_react54 = __toESM(require("react"));
|
6318
6349
|
var NoPermission = ({ texts }) => {
|
6319
|
-
return /* @__PURE__ */
|
6350
|
+
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
6351
|
"svg",
|
6321
6352
|
{
|
6322
6353
|
stroke: "currentColor",
|
@@ -6326,12 +6357,12 @@ var NoPermission = ({ texts }) => {
|
|
6326
6357
|
height: "0.35em",
|
6327
6358
|
width: "0.35em"
|
6328
6359
|
},
|
6329
|
-
/* @__PURE__ */
|
6330
|
-
)), /* @__PURE__ */
|
6360
|
+
/* @__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" })
|
6361
|
+
)), /* @__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
6362
|
};
|
6332
6363
|
|
6333
6364
|
// blocks/misc/ContactForm.tsx
|
6334
|
-
var
|
6365
|
+
var import_react55 = __toESM(require("react"));
|
6335
6366
|
var import_react_hook_form9 = require("react-hook-form");
|
6336
6367
|
var import_zod8 = require("@hookform/resolvers/zod");
|
6337
6368
|
var z8 = __toESM(require("zod"));
|
@@ -6404,7 +6435,7 @@ var ContactForm = ({
|
|
6404
6435
|
console.log("Form is submitted but onSubmit prop is missing");
|
6405
6436
|
}
|
6406
6437
|
};
|
6407
|
-
return /* @__PURE__ */
|
6438
|
+
return /* @__PURE__ */ import_react55.default.createElement(
|
6408
6439
|
Card,
|
6409
6440
|
{
|
6410
6441
|
className: cn(
|
@@ -6413,7 +6444,7 @@ var ContactForm = ({
|
|
6413
6444
|
),
|
6414
6445
|
style: cardless ? { boxShadow: "none" } : void 0
|
6415
6446
|
},
|
6416
|
-
/* @__PURE__ */
|
6447
|
+
/* @__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
6448
|
"form",
|
6418
6449
|
{
|
6419
6450
|
noValidate: true,
|
@@ -6422,7 +6453,7 @@ var ContactForm = ({
|
|
6422
6453
|
id: formId,
|
6423
6454
|
autoComplete: formAutoComplete
|
6424
6455
|
},
|
6425
|
-
/* @__PURE__ */
|
6456
|
+
/* @__PURE__ */ import_react55.default.createElement(
|
6426
6457
|
"div",
|
6427
6458
|
{
|
6428
6459
|
className: cn(
|
@@ -6433,14 +6464,14 @@ var ContactForm = ({
|
|
6433
6464
|
}
|
6434
6465
|
)
|
6435
6466
|
},
|
6436
|
-
/* @__PURE__ */
|
6467
|
+
/* @__PURE__ */ import_react55.default.createElement(
|
6437
6468
|
import_react_hook_form9.Controller,
|
6438
6469
|
{
|
6439
6470
|
control,
|
6440
6471
|
name: "name",
|
6441
6472
|
render: ({ field }) => {
|
6442
6473
|
var _a2;
|
6443
|
-
return /* @__PURE__ */
|
6474
|
+
return /* @__PURE__ */ import_react55.default.createElement(
|
6444
6475
|
Input,
|
6445
6476
|
{
|
6446
6477
|
label: (texts == null ? void 0 : texts.name.label) || "Name",
|
@@ -6453,14 +6484,14 @@ var ContactForm = ({
|
|
6453
6484
|
}
|
6454
6485
|
}
|
6455
6486
|
),
|
6456
|
-
/* @__PURE__ */
|
6487
|
+
/* @__PURE__ */ import_react55.default.createElement(
|
6457
6488
|
import_react_hook_form9.Controller,
|
6458
6489
|
{
|
6459
6490
|
control,
|
6460
6491
|
name: "email",
|
6461
6492
|
render: ({ field }) => {
|
6462
6493
|
var _a2;
|
6463
|
-
return /* @__PURE__ */
|
6494
|
+
return /* @__PURE__ */ import_react55.default.createElement(
|
6464
6495
|
Input,
|
6465
6496
|
{
|
6466
6497
|
label: (texts == null ? void 0 : texts.email.label) || "Email",
|
@@ -6476,7 +6507,7 @@ var ContactForm = ({
|
|
6476
6507
|
),
|
6477
6508
|
customFields && customFields.map((customField) => {
|
6478
6509
|
console.log("custom", customField);
|
6479
|
-
return /* @__PURE__ */
|
6510
|
+
return /* @__PURE__ */ import_react55.default.createElement(
|
6480
6511
|
import_react_hook_form9.Controller,
|
6481
6512
|
{
|
6482
6513
|
control,
|
@@ -6486,7 +6517,7 @@ var ContactForm = ({
|
|
6486
6517
|
switch (type) {
|
6487
6518
|
case "text":
|
6488
6519
|
case "number":
|
6489
|
-
return /* @__PURE__ */
|
6520
|
+
return /* @__PURE__ */ import_react55.default.createElement(
|
6490
6521
|
Input,
|
6491
6522
|
{
|
6492
6523
|
id: customField.name,
|
@@ -6497,7 +6528,7 @@ var ContactForm = ({
|
|
6497
6528
|
}
|
6498
6529
|
);
|
6499
6530
|
case "select":
|
6500
|
-
return /* @__PURE__ */
|
6531
|
+
return /* @__PURE__ */ import_react55.default.createElement(
|
6501
6532
|
Select,
|
6502
6533
|
{
|
6503
6534
|
label,
|
@@ -6507,20 +6538,20 @@ var ContactForm = ({
|
|
6507
6538
|
}
|
6508
6539
|
);
|
6509
6540
|
default:
|
6510
|
-
return /* @__PURE__ */
|
6541
|
+
return /* @__PURE__ */ import_react55.default.createElement("div", null, "Unknown type");
|
6511
6542
|
}
|
6512
6543
|
}
|
6513
6544
|
}
|
6514
6545
|
);
|
6515
6546
|
}),
|
6516
|
-
/* @__PURE__ */
|
6547
|
+
/* @__PURE__ */ import_react55.default.createElement(
|
6517
6548
|
import_react_hook_form9.Controller,
|
6518
6549
|
{
|
6519
6550
|
control,
|
6520
6551
|
name: "message",
|
6521
6552
|
render: ({ field }) => {
|
6522
6553
|
var _a2;
|
6523
|
-
return /* @__PURE__ */
|
6554
|
+
return /* @__PURE__ */ import_react55.default.createElement(
|
6524
6555
|
Textarea,
|
6525
6556
|
{
|
6526
6557
|
label: (texts == null ? void 0 : texts.message.label) || "Message",
|
@@ -6537,19 +6568,19 @@ var ContactForm = ({
|
|
6537
6568
|
}
|
6538
6569
|
}
|
6539
6570
|
),
|
6540
|
-
/* @__PURE__ */
|
6571
|
+
/* @__PURE__ */ import_react55.default.createElement(Button, { type: "submit", className: "hawa-w-full" }, (texts == null ? void 0 : texts.submit) || "Submit")
|
6541
6572
|
))
|
6542
6573
|
);
|
6543
6574
|
};
|
6544
6575
|
|
6545
6576
|
// blocks/pricing/PricingPlans.tsx
|
6546
|
-
var
|
6577
|
+
var import_react62 = __toESM(require("react"));
|
6547
6578
|
|
6548
6579
|
// blocks/cards/ActionCard.tsx
|
6549
|
-
var
|
6580
|
+
var import_react56 = __toESM(require("react"));
|
6550
6581
|
var ActionCard = (props) => {
|
6551
|
-
const [hovered, setHovered] = (0,
|
6552
|
-
return /* @__PURE__ */
|
6582
|
+
const [hovered, setHovered] = (0, import_react56.useState)(false);
|
6583
|
+
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
6584
|
"div",
|
6554
6585
|
{
|
6555
6586
|
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 +6590,7 @@ var ActionCard = (props) => {
|
|
6559
6590
|
onMouseEnter: () => setHovered(true),
|
6560
6591
|
onMouseLeave: () => setHovered(false)
|
6561
6592
|
},
|
6562
|
-
props.blank ? /* @__PURE__ */
|
6593
|
+
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
6594
|
"svg",
|
6564
6595
|
{
|
6565
6596
|
className: "hawa-h-10 hawa-w-10 hawa-text-foreground",
|
@@ -6571,11 +6602,11 @@ var ActionCard = (props) => {
|
|
6571
6602
|
width: "1em",
|
6572
6603
|
xmlns: "http://www.w3.org/2000/svg"
|
6573
6604
|
},
|
6574
|
-
/* @__PURE__ */
|
6575
|
-
)) : /* @__PURE__ */
|
6576
|
-
/* @__PURE__ */
|
6577
|
-
!props.blank && /* @__PURE__ */
|
6578
|
-
), /* @__PURE__ */
|
6605
|
+
/* @__PURE__ */ import_react56.default.createElement("path", { d: "M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z" })
|
6606
|
+
)) : /* @__PURE__ */ import_react56.default.createElement("div", { className: "hawa-absolute hawa-inset-0 hawa-rounded hawa-bg-black hawa-opacity-50" }),
|
6607
|
+
/* @__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),
|
6608
|
+
!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))
|
6609
|
+
), /* @__PURE__ */ import_react56.default.createElement(
|
6579
6610
|
"div",
|
6580
6611
|
{
|
6581
6612
|
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 +6616,15 @@ var ActionCard = (props) => {
|
|
6585
6616
|
};
|
6586
6617
|
|
6587
6618
|
// blocks/cards/AdCard.tsx
|
6588
|
-
var
|
6619
|
+
var import_react57 = __toESM(require("react"));
|
6589
6620
|
var AdCard = ({
|
6590
6621
|
orientation = "vertical",
|
6591
6622
|
...props
|
6592
6623
|
}) => {
|
6593
|
-
const adRef = (0,
|
6594
|
-
const [closed, setClosed] = (0,
|
6624
|
+
const adRef = (0, import_react57.useRef)(null);
|
6625
|
+
const [closed, setClosed] = (0, import_react57.useState)(false);
|
6595
6626
|
let duration = 0;
|
6596
|
-
(0,
|
6627
|
+
(0, import_react57.useEffect)(() => {
|
6597
6628
|
if (duration) {
|
6598
6629
|
const timeoutHide = setTimeout(() => {
|
6599
6630
|
setClosed(true);
|
@@ -6618,21 +6649,21 @@ var AdCard = ({
|
|
6618
6649
|
horizontal: "hawa-w-auto hawa-h-full hawa-bg-blue-500 hawa-rounded-inner",
|
6619
6650
|
vertical: "hawa-bg-blue-500 hawa-rounded-inner hawa-w-auto "
|
6620
6651
|
};
|
6621
|
-
return /* @__PURE__ */
|
6652
|
+
return /* @__PURE__ */ import_react57.default.createElement("div", { ref: adRef }, /* @__PURE__ */ import_react57.default.createElement(
|
6622
6653
|
"div",
|
6623
6654
|
{
|
6624
6655
|
className: cn(cardStyles[orientation], props.className),
|
6625
6656
|
onClick: props.handleClick
|
6626
6657
|
},
|
6627
|
-
/* @__PURE__ */
|
6658
|
+
/* @__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
6659
|
"img",
|
6629
6660
|
{
|
6630
6661
|
src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
|
6631
6662
|
className: imageStyles[orientation]
|
6632
6663
|
}
|
6633
6664
|
)),
|
6634
|
-
/* @__PURE__ */
|
6635
|
-
props.canHide && /* @__PURE__ */
|
6665
|
+
/* @__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)),
|
6666
|
+
props.canHide && /* @__PURE__ */ import_react57.default.createElement(
|
6636
6667
|
"span",
|
6637
6668
|
{
|
6638
6669
|
onClick: (e) => {
|
@@ -6658,7 +6689,7 @@ var AdCard = ({
|
|
6658
6689
|
};
|
6659
6690
|
|
6660
6691
|
// blocks/cards/PricingCard.tsx
|
6661
|
-
var
|
6692
|
+
var import_react58 = __toESM(require("react"));
|
6662
6693
|
|
6663
6694
|
// elements/separator/Separator.tsx
|
6664
6695
|
var React56 = __toESM(require("react"));
|
@@ -6693,13 +6724,13 @@ var PricingCard = ({
|
|
6693
6724
|
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
6694
6725
|
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
6695
6726
|
};
|
6696
|
-
return /* @__PURE__ */
|
6727
|
+
return /* @__PURE__ */ import_react58.default.createElement(import_react58.default.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ import_react58.default.createElement(
|
6697
6728
|
Skeleton,
|
6698
6729
|
{
|
6699
6730
|
className: cn(cardSizes[size], "hawa-h-[200px]"),
|
6700
6731
|
fade: "bottom"
|
6701
6732
|
}
|
6702
|
-
) : /* @__PURE__ */
|
6733
|
+
) : /* @__PURE__ */ import_react58.default.createElement(
|
6703
6734
|
Card,
|
6704
6735
|
{
|
6705
6736
|
dir: direction,
|
@@ -6710,7 +6741,7 @@ var PricingCard = ({
|
|
6710
6741
|
recommended ? "hawa-rounded hawa-rounded-t-none" : "hawa-rounded"
|
6711
6742
|
)
|
6712
6743
|
},
|
6713
|
-
recommended && /* @__PURE__ */
|
6744
|
+
recommended && /* @__PURE__ */ import_react58.default.createElement(
|
6714
6745
|
"div",
|
6715
6746
|
{
|
6716
6747
|
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 +6749,7 @@ var PricingCard = ({
|
|
6718
6749
|
},
|
6719
6750
|
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
6720
6751
|
),
|
6721
|
-
/* @__PURE__ */
|
6752
|
+
/* @__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
6753
|
"div",
|
6723
6754
|
{
|
6724
6755
|
className: cn(
|
@@ -6726,9 +6757,9 @@ var PricingCard = ({
|
|
6726
6757
|
endButton ? "hawa-flex-col" : "hawa-flex-col-reverse"
|
6727
6758
|
)
|
6728
6759
|
},
|
6729
|
-
props.features && /* @__PURE__ */
|
6760
|
+
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
6761
|
var _a2;
|
6731
|
-
return /* @__PURE__ */
|
6762
|
+
return /* @__PURE__ */ import_react58.default.createElement(
|
6732
6763
|
"li",
|
6733
6764
|
{
|
6734
6765
|
key: o,
|
@@ -6737,7 +6768,7 @@ var PricingCard = ({
|
|
6737
6768
|
!feature.included && "hawa-line-through"
|
6738
6769
|
)
|
6739
6770
|
},
|
6740
|
-
/* @__PURE__ */
|
6771
|
+
/* @__PURE__ */ import_react58.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center" }, feature.included ? /* @__PURE__ */ import_react58.default.createElement(
|
6741
6772
|
"svg",
|
6742
6773
|
{
|
6743
6774
|
"aria-label": "Check Icon",
|
@@ -6746,7 +6777,7 @@ var PricingCard = ({
|
|
6746
6777
|
fill: "currentColor",
|
6747
6778
|
viewBox: "0 0 20 20"
|
6748
6779
|
},
|
6749
|
-
/* @__PURE__ */
|
6780
|
+
/* @__PURE__ */ import_react58.default.createElement(
|
6750
6781
|
"path",
|
6751
6782
|
{
|
6752
6783
|
fillRule: "evenodd",
|
@@ -6754,7 +6785,7 @@ var PricingCard = ({
|
|
6754
6785
|
clipRule: "evenodd"
|
6755
6786
|
}
|
6756
6787
|
)
|
6757
|
-
) : /* @__PURE__ */
|
6788
|
+
) : /* @__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
6789
|
Chip,
|
6759
6790
|
{
|
6760
6791
|
label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "",
|
@@ -6762,13 +6793,13 @@ var PricingCard = ({
|
|
6762
6793
|
size: "small"
|
6763
6794
|
}
|
6764
6795
|
))),
|
6765
|
-
feature.hint && /* @__PURE__ */
|
6796
|
+
feature.hint && /* @__PURE__ */ import_react58.default.createElement(
|
6766
6797
|
Tooltip,
|
6767
6798
|
{
|
6768
6799
|
content: feature.hint,
|
6769
6800
|
side: feature.hintSide
|
6770
6801
|
},
|
6771
|
-
/* @__PURE__ */
|
6802
|
+
/* @__PURE__ */ import_react58.default.createElement(
|
6772
6803
|
"svg",
|
6773
6804
|
{
|
6774
6805
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6780,14 +6811,14 @@ var PricingCard = ({
|
|
6780
6811
|
strokeLinecap: "round",
|
6781
6812
|
strokeLinejoin: "round"
|
6782
6813
|
},
|
6783
|
-
/* @__PURE__ */
|
6784
|
-
/* @__PURE__ */
|
6785
|
-
/* @__PURE__ */
|
6814
|
+
/* @__PURE__ */ import_react58.default.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
6815
|
+
/* @__PURE__ */ import_react58.default.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
6816
|
+
/* @__PURE__ */ import_react58.default.createElement("path", { d: "M12 17h.01" })
|
6786
6817
|
)
|
6787
6818
|
)
|
6788
6819
|
);
|
6789
6820
|
})),
|
6790
|
-
/* @__PURE__ */
|
6821
|
+
/* @__PURE__ */ import_react58.default.createElement(
|
6791
6822
|
Button,
|
6792
6823
|
{
|
6793
6824
|
onClick: props.onPlanClicked,
|
@@ -6801,11 +6832,11 @@ var PricingCard = ({
|
|
6801
6832
|
};
|
6802
6833
|
|
6803
6834
|
// blocks/cards/ItemCard.tsx
|
6804
|
-
var
|
6835
|
+
var import_react60 = __toESM(require("react"));
|
6805
6836
|
|
6806
6837
|
// elements/dropdownMenu/DropdownMenu.tsx
|
6807
6838
|
var React58 = __toESM(require("react"));
|
6808
|
-
var
|
6839
|
+
var import_react59 = require("@headlessui/react");
|
6809
6840
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
6810
6841
|
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
6811
6842
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
@@ -6858,7 +6889,7 @@ var DropdownMenuSubContent = React58.forwardRef(({ className, ...props }, ref) =
|
|
6858
6889
|
}
|
6859
6890
|
));
|
6860
6891
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
6861
|
-
var DropdownMenuContent = React58.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
6892
|
+
var DropdownMenuContent = React58.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React58.createElement(import_react59.Portal, null, /* @__PURE__ */ React58.createElement(
|
6862
6893
|
DropdownMenuPrimitive.Content,
|
6863
6894
|
{
|
6864
6895
|
ref,
|
@@ -7036,7 +7067,7 @@ var DropdownMenu = ({
|
|
7036
7067
|
},
|
7037
7068
|
trigger
|
7038
7069
|
),
|
7039
|
-
/* @__PURE__ */ React58.createElement(
|
7070
|
+
/* @__PURE__ */ React58.createElement(import_react59.Portal, null, /* @__PURE__ */ React58.createElement(
|
7040
7071
|
DropdownMenuContent,
|
7041
7072
|
{
|
7042
7073
|
side,
|
@@ -7097,7 +7128,7 @@ var DropdownMenu = ({
|
|
7097
7128
|
},
|
7098
7129
|
item.icon && item.icon,
|
7099
7130
|
item.label && item.label
|
7100
|
-
), /* @__PURE__ */ React58.createElement(
|
7131
|
+
), /* @__PURE__ */ React58.createElement(import_react59.Portal, null, /* @__PURE__ */ React58.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
7101
7132
|
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
7102
7133
|
return /* @__PURE__ */ React58.createElement(
|
7103
7134
|
DropdownMenuItem,
|
@@ -7210,12 +7241,12 @@ var ItemCard = ({
|
|
7210
7241
|
)
|
7211
7242
|
};
|
7212
7243
|
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,
|
7244
|
+
const [openActionHeader, setOpenActionHeader] = (0, import_react60.useState)(false);
|
7214
7245
|
function handleOpenActionHeader(e) {
|
7215
7246
|
e.stopPropagation();
|
7216
7247
|
setOpenActionHeader(!openActionHeader);
|
7217
7248
|
}
|
7218
|
-
(0,
|
7249
|
+
(0, import_react60.useEffect)(() => {
|
7219
7250
|
window.onclick = () => {
|
7220
7251
|
if (openActionHeader) {
|
7221
7252
|
setOpenActionHeader(false);
|
@@ -7223,7 +7254,7 @@ var ItemCard = ({
|
|
7223
7254
|
};
|
7224
7255
|
return () => window.onclick = null;
|
7225
7256
|
}, [openActionHeader]);
|
7226
|
-
return /* @__PURE__ */
|
7257
|
+
return /* @__PURE__ */ import_react60.default.createElement(
|
7227
7258
|
"div",
|
7228
7259
|
{
|
7229
7260
|
className: cn(
|
@@ -7239,7 +7270,7 @@ var ItemCard = ({
|
|
7239
7270
|
}
|
7240
7271
|
}
|
7241
7272
|
},
|
7242
|
-
cardImage && /* @__PURE__ */
|
7273
|
+
cardImage && /* @__PURE__ */ import_react60.default.createElement("div", { className: "hawa-group hawa-relative hawa-overflow-clip" }, /* @__PURE__ */ import_react60.default.createElement(
|
7243
7274
|
"img",
|
7244
7275
|
{
|
7245
7276
|
src: cardImage,
|
@@ -7248,7 +7279,7 @@ var ItemCard = ({
|
|
7248
7279
|
clickableImage ? "hawa-overflow-clip hawa-transition-all group-hover:hawa-blur-lg" : ""
|
7249
7280
|
)
|
7250
7281
|
}
|
7251
|
-
), clickableImage && /* @__PURE__ */
|
7282
|
+
), 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
7283
|
Button,
|
7253
7284
|
{
|
7254
7285
|
variant: "secondary",
|
@@ -7258,19 +7289,19 @@ var ItemCard = ({
|
|
7258
7289
|
clickableImageActionIcon,
|
7259
7290
|
clickableImageActionText || "Click"
|
7260
7291
|
)))),
|
7261
|
-
/* @__PURE__ */
|
7292
|
+
/* @__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
7293
|
DropdownMenu,
|
7263
7294
|
{
|
7264
7295
|
items: headerActions,
|
7265
|
-
trigger: /* @__PURE__ */
|
7296
|
+
trigger: /* @__PURE__ */ import_react60.default.createElement(
|
7266
7297
|
Button,
|
7267
7298
|
{
|
7268
7299
|
variant: "ghost",
|
7269
7300
|
size: "smallIcon",
|
7270
7301
|
onClick: handleOpenActionHeader
|
7271
7302
|
},
|
7272
|
-
/* @__PURE__ */
|
7273
|
-
/* @__PURE__ */
|
7303
|
+
/* @__PURE__ */ import_react60.default.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"),
|
7304
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
7274
7305
|
"svg",
|
7275
7306
|
{
|
7276
7307
|
className: "hawa-h-5 hawa-w-5",
|
@@ -7278,11 +7309,11 @@ var ItemCard = ({
|
|
7278
7309
|
fill: "currentColor",
|
7279
7310
|
viewBox: "0 0 20 20"
|
7280
7311
|
},
|
7281
|
-
/* @__PURE__ */
|
7312
|
+
/* @__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
7313
|
)
|
7283
7314
|
)
|
7284
7315
|
}
|
7285
|
-
))), /* @__PURE__ */
|
7316
|
+
))), /* @__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
7317
|
"div",
|
7287
7318
|
{
|
7288
7319
|
className: cn(
|
@@ -7292,15 +7323,15 @@ var ItemCard = ({
|
|
7292
7323
|
)
|
7293
7324
|
},
|
7294
7325
|
counts,
|
7295
|
-
/* @__PURE__ */
|
7326
|
+
/* @__PURE__ */ import_react60.default.createElement(StopPropagationWrapper, null, actions)
|
7296
7327
|
) : null)
|
7297
7328
|
);
|
7298
7329
|
};
|
7299
7330
|
|
7300
7331
|
// blocks/cards/LandingCard.tsx
|
7301
|
-
var
|
7332
|
+
var import_react61 = __toESM(require("react"));
|
7302
7333
|
var LandingCard = (props) => {
|
7303
|
-
return /* @__PURE__ */
|
7334
|
+
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
7335
|
};
|
7305
7336
|
|
7306
7337
|
// blocks/pricing/PricingPlans.tsx
|
@@ -7309,7 +7340,7 @@ var PricingPlans = ({
|
|
7309
7340
|
cardsContainerProps,
|
7310
7341
|
...props
|
7311
7342
|
}) => {
|
7312
|
-
return /* @__PURE__ */
|
7343
|
+
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
7344
|
Radio,
|
7314
7345
|
{
|
7315
7346
|
name: "cycle",
|
@@ -7322,7 +7353,7 @@ var PricingPlans = ({
|
|
7322
7353
|
}
|
7323
7354
|
}
|
7324
7355
|
}
|
7325
|
-
), /* @__PURE__ */
|
7356
|
+
), /* @__PURE__ */ import_react62.default.createElement(
|
7326
7357
|
Radio,
|
7327
7358
|
{
|
7328
7359
|
name: "currency",
|
@@ -7335,7 +7366,7 @@ var PricingPlans = ({
|
|
7335
7366
|
}
|
7336
7367
|
}
|
7337
7368
|
}
|
7338
|
-
)), /* @__PURE__ */
|
7369
|
+
)), /* @__PURE__ */ import_react62.default.createElement(
|
7339
7370
|
"div",
|
7340
7371
|
{
|
7341
7372
|
className: "hawa-inline-grid hawa-w-full hawa-grid-cols-[repeat(auto-fit,_minmax(300px,_1fr))] hawa-gap-4",
|
@@ -7343,7 +7374,7 @@ var PricingPlans = ({
|
|
7343
7374
|
},
|
7344
7375
|
props.plans.map((plan, index) => {
|
7345
7376
|
var _a, _b;
|
7346
|
-
return /* @__PURE__ */
|
7377
|
+
return /* @__PURE__ */ import_react62.default.createElement(
|
7347
7378
|
PricingCard,
|
7348
7379
|
{
|
7349
7380
|
key: index,
|
@@ -7374,7 +7405,7 @@ var PricingPlans = ({
|
|
7374
7405
|
};
|
7375
7406
|
|
7376
7407
|
// blocks/pricing/ComparingPlans.tsx
|
7377
|
-
var
|
7408
|
+
var import_react63 = __toESM(require("react"));
|
7378
7409
|
var ComparingPlans = (props) => {
|
7379
7410
|
const uniqueFeatures = Array.from(
|
7380
7411
|
new Set(
|
@@ -7383,7 +7414,7 @@ var ComparingPlans = (props) => {
|
|
7383
7414
|
)
|
7384
7415
|
)
|
7385
7416
|
);
|
7386
|
-
return /* @__PURE__ */
|
7417
|
+
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
7418
|
Radio,
|
7388
7419
|
{
|
7389
7420
|
name: "cycle",
|
@@ -7398,7 +7429,7 @@ var ComparingPlans = (props) => {
|
|
7398
7429
|
}
|
7399
7430
|
}
|
7400
7431
|
}
|
7401
|
-
), /* @__PURE__ */
|
7432
|
+
), /* @__PURE__ */ import_react63.default.createElement(
|
7402
7433
|
Radio,
|
7403
7434
|
{
|
7404
7435
|
name: "currency",
|
@@ -7413,7 +7444,7 @@ var ComparingPlans = (props) => {
|
|
7413
7444
|
}
|
7414
7445
|
}
|
7415
7446
|
}
|
7416
|
-
)), /* @__PURE__ */
|
7447
|
+
)), /* @__PURE__ */ import_react63.default.createElement(
|
7417
7448
|
"div",
|
7418
7449
|
{
|
7419
7450
|
className: cn(
|
@@ -7424,16 +7455,16 @@ var ComparingPlans = (props) => {
|
|
7424
7455
|
top: props.topPosition || 0
|
7425
7456
|
}
|
7426
7457
|
},
|
7427
|
-
/* @__PURE__ */
|
7428
|
-
props.plans.map((plan, i) => /* @__PURE__ */
|
7458
|
+
/* @__PURE__ */ import_react63.default.createElement("div", { className: "hawa-flex hawa-items-center" }),
|
7459
|
+
props.plans.map((plan, i) => /* @__PURE__ */ import_react63.default.createElement(
|
7429
7460
|
"div",
|
7430
7461
|
{
|
7431
7462
|
key: i,
|
7432
7463
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2"
|
7433
7464
|
},
|
7434
|
-
/* @__PURE__ */
|
7465
|
+
/* @__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
7466
|
))
|
7436
|
-
), /* @__PURE__ */
|
7467
|
+
), /* @__PURE__ */ import_react63.default.createElement(
|
7437
7468
|
ScrollArea,
|
7438
7469
|
{
|
7439
7470
|
className: "hawa-h-fit hawa-rounded hawa-rounded-t-none hawa-border hawa-border-t-0 hawa-bg-background",
|
@@ -7441,7 +7472,7 @@ var ComparingPlans = (props) => {
|
|
7441
7472
|
},
|
7442
7473
|
uniqueFeatures.map((featureText, featureIndex) => {
|
7443
7474
|
var _a, _b, _c, _d;
|
7444
|
-
return /* @__PURE__ */
|
7475
|
+
return /* @__PURE__ */ import_react63.default.createElement(
|
7445
7476
|
"div",
|
7446
7477
|
{
|
7447
7478
|
key: featureIndex,
|
@@ -7450,11 +7481,11 @@ var ComparingPlans = (props) => {
|
|
7450
7481
|
featureIndex === 0 ? "" : "hawa-border-t"
|
7451
7482
|
)
|
7452
7483
|
},
|
7453
|
-
/* @__PURE__ */
|
7484
|
+
/* @__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
7485
|
(plan) => plan.features.some(
|
7455
7486
|
(feature) => feature.text === featureText && feature.hint
|
7456
7487
|
)
|
7457
|
-
) && /* @__PURE__ */
|
7488
|
+
) && /* @__PURE__ */ import_react63.default.createElement(
|
7458
7489
|
Tooltip,
|
7459
7490
|
{
|
7460
7491
|
side: "right",
|
@@ -7469,7 +7500,7 @@ var ComparingPlans = (props) => {
|
|
7469
7500
|
(feature) => feature.text === featureText
|
7470
7501
|
)) == null ? void 0 : _b.hint
|
7471
7502
|
},
|
7472
|
-
/* @__PURE__ */
|
7503
|
+
/* @__PURE__ */ import_react63.default.createElement(
|
7473
7504
|
"svg",
|
7474
7505
|
{
|
7475
7506
|
stroke: "currentColor",
|
@@ -7479,13 +7510,13 @@ var ComparingPlans = (props) => {
|
|
7479
7510
|
height: "1em",
|
7480
7511
|
width: "1em"
|
7481
7512
|
},
|
7482
|
-
/* @__PURE__ */
|
7513
|
+
/* @__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
7514
|
)
|
7484
7515
|
), props.plans.some(
|
7485
7516
|
(plan) => plan.features.some(
|
7486
7517
|
(feature) => feature.text === featureText && feature.soon
|
7487
7518
|
)
|
7488
|
-
) && /* @__PURE__ */
|
7519
|
+
) && /* @__PURE__ */ import_react63.default.createElement(
|
7489
7520
|
Chip,
|
7490
7521
|
{
|
7491
7522
|
label: ((_d = (_c = props.plans.find(
|
@@ -7499,26 +7530,26 @@ var ComparingPlans = (props) => {
|
|
7499
7530
|
const feature = plan.features.find(
|
7500
7531
|
(f) => f.text === featureText
|
7501
7532
|
);
|
7502
|
-
return /* @__PURE__ */
|
7533
|
+
return /* @__PURE__ */ import_react63.default.createElement(
|
7503
7534
|
"div",
|
7504
7535
|
{
|
7505
7536
|
key: planIndex,
|
7506
7537
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-text-center"
|
7507
7538
|
},
|
7508
|
-
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */
|
7539
|
+
(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
7540
|
);
|
7510
7541
|
})
|
7511
7542
|
);
|
7512
7543
|
})
|
7513
|
-
), props.showButtons && /* @__PURE__ */
|
7544
|
+
), 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
7545
|
var _a;
|
7515
|
-
return /* @__PURE__ */
|
7546
|
+
return /* @__PURE__ */ import_react63.default.createElement(
|
7516
7547
|
"div",
|
7517
7548
|
{
|
7518
7549
|
key: i,
|
7519
7550
|
className: "hawa-flex hawa-items-center hawa-justify-center"
|
7520
7551
|
},
|
7521
|
-
/* @__PURE__ */
|
7552
|
+
/* @__PURE__ */ import_react63.default.createElement(
|
7522
7553
|
Button,
|
7523
7554
|
{
|
7524
7555
|
className: "hawa-w-full hawa-max-w-xs",
|
@@ -7542,15 +7573,15 @@ var ComparingPlans = (props) => {
|
|
7542
7573
|
};
|
7543
7574
|
|
7544
7575
|
// blocks/pricing/HorizontalPricing.tsx
|
7545
|
-
var
|
7576
|
+
var import_react64 = __toESM(require("react"));
|
7546
7577
|
var HorizontalPricing = (props) => {
|
7547
|
-
const [selectedCard, setSelectedCard] = (0,
|
7578
|
+
const [selectedCard, setSelectedCard] = (0, import_react64.useState)("");
|
7548
7579
|
let data = [
|
7549
7580
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
7550
7581
|
{ title: "business", price: "$99", cycle: "/mo" },
|
7551
7582
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
7552
7583
|
];
|
7553
|
-
return /* @__PURE__ */
|
7584
|
+
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
7585
|
Radio,
|
7555
7586
|
{
|
7556
7587
|
name: "currency",
|
@@ -7558,7 +7589,7 @@ var HorizontalPricing = (props) => {
|
|
7558
7589
|
options: props.currencies,
|
7559
7590
|
defaultValue: props.currentCurrency
|
7560
7591
|
}
|
7561
|
-
), /* @__PURE__ */
|
7592
|
+
), /* @__PURE__ */ import_react64.default.createElement(
|
7562
7593
|
Radio,
|
7563
7594
|
{
|
7564
7595
|
name: "cycle",
|
@@ -7566,7 +7597,7 @@ var HorizontalPricing = (props) => {
|
|
7566
7597
|
options: props.billingCycles,
|
7567
7598
|
defaultValue: props.currentCycle
|
7568
7599
|
}
|
7569
|
-
)), data.map((d, i) => /* @__PURE__ */
|
7600
|
+
)), data.map((d, i) => /* @__PURE__ */ import_react64.default.createElement(
|
7570
7601
|
"label",
|
7571
7602
|
{
|
7572
7603
|
key: i,
|
@@ -7574,7 +7605,7 @@ var HorizontalPricing = (props) => {
|
|
7574
7605
|
className: "",
|
7575
7606
|
onClick: () => setSelectedCard(d.title)
|
7576
7607
|
},
|
7577
|
-
/* @__PURE__ */
|
7608
|
+
/* @__PURE__ */ import_react64.default.createElement(
|
7578
7609
|
"input",
|
7579
7610
|
{
|
7580
7611
|
type: "radio",
|
@@ -7583,7 +7614,7 @@ var HorizontalPricing = (props) => {
|
|
7583
7614
|
className: "hawa-peer hawa-appearance-none"
|
7584
7615
|
}
|
7585
7616
|
),
|
7586
|
-
/* @__PURE__ */
|
7617
|
+
/* @__PURE__ */ import_react64.default.createElement(
|
7587
7618
|
"div",
|
7588
7619
|
{
|
7589
7620
|
className: cn(
|
@@ -7591,18 +7622,18 @@ var HorizontalPricing = (props) => {
|
|
7591
7622
|
"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
7623
|
)
|
7593
7624
|
},
|
7594
|
-
/* @__PURE__ */
|
7625
|
+
/* @__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
7626
|
CardText,
|
7596
7627
|
{
|
7597
7628
|
title: "Enterprise",
|
7598
7629
|
subtitle: "For startups and new businesses"
|
7599
7630
|
}
|
7600
7631
|
)),
|
7601
|
-
/* @__PURE__ */
|
7632
|
+
/* @__PURE__ */ import_react64.default.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
7602
7633
|
)
|
7603
7634
|
))));
|
7604
7635
|
};
|
7605
|
-
var CheckIcons = () => /* @__PURE__ */
|
7636
|
+
var CheckIcons = () => /* @__PURE__ */ import_react64.default.createElement(import_react64.default.Fragment, null, /* @__PURE__ */ import_react64.default.createElement(
|
7606
7637
|
"svg",
|
7607
7638
|
{
|
7608
7639
|
fill: "none",
|
@@ -7611,7 +7642,7 @@ var CheckIcons = () => /* @__PURE__ */ import_react63.default.createElement(impo
|
|
7611
7642
|
stroke: "currentColor",
|
7612
7643
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
7613
7644
|
},
|
7614
|
-
/* @__PURE__ */
|
7645
|
+
/* @__PURE__ */ import_react64.default.createElement(
|
7615
7646
|
"path",
|
7616
7647
|
{
|
7617
7648
|
strokeLinecap: "round",
|
@@ -7619,14 +7650,14 @@ var CheckIcons = () => /* @__PURE__ */ import_react63.default.createElement(impo
|
|
7619
7650
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
7620
7651
|
}
|
7621
7652
|
)
|
7622
|
-
), /* @__PURE__ */
|
7653
|
+
), /* @__PURE__ */ import_react64.default.createElement(
|
7623
7654
|
"svg",
|
7624
7655
|
{
|
7625
7656
|
viewBox: "0 0 24 24",
|
7626
7657
|
fill: "currentColor",
|
7627
7658
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
7628
7659
|
},
|
7629
|
-
/* @__PURE__ */
|
7660
|
+
/* @__PURE__ */ import_react64.default.createElement(
|
7630
7661
|
"path",
|
7631
7662
|
{
|
7632
7663
|
fillRule: "evenodd",
|
@@ -7635,11 +7666,11 @@ var CheckIcons = () => /* @__PURE__ */ import_react63.default.createElement(impo
|
|
7635
7666
|
}
|
7636
7667
|
)
|
7637
7668
|
));
|
7638
|
-
var CardText = (props) => /* @__PURE__ */
|
7639
|
-
var CardPrice = (props) => /* @__PURE__ */
|
7669
|
+
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, " "));
|
7670
|
+
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
7671
|
|
7641
7672
|
// blocks/Usage.tsx
|
7642
|
-
var
|
7673
|
+
var import_react65 = __toESM(require("react"));
|
7643
7674
|
|
7644
7675
|
// elements/progress/Progress.tsx
|
7645
7676
|
var React64 = __toESM(require("react"));
|
@@ -7667,7 +7698,7 @@ Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
7667
7698
|
// blocks/Usage.tsx
|
7668
7699
|
var Usage = (props) => {
|
7669
7700
|
var _a;
|
7670
|
-
return /* @__PURE__ */
|
7701
|
+
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
7702
|
"svg",
|
7672
7703
|
{
|
7673
7704
|
stroke: "currentColor",
|
@@ -7678,8 +7709,8 @@ var Usage = (props) => {
|
|
7678
7709
|
height: "1em",
|
7679
7710
|
width: "1em"
|
7680
7711
|
},
|
7681
|
-
/* @__PURE__ */
|
7682
|
-
))), /* @__PURE__ */
|
7712
|
+
/* @__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" })
|
7713
|
+
))), /* @__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
7714
|
};
|
7684
7715
|
// Annotate the CommonJS export names for ESM import in node:
|
7685
7716
|
0 && (module.exports = {
|
@@ -7713,3 +7744,53 @@ var Usage = (props) => {
|
|
7713
7744
|
Usage,
|
7714
7745
|
UserReferralSource
|
7715
7746
|
});
|
7747
|
+
/*! Bundled license information:
|
7748
|
+
|
7749
|
+
lucide-react/dist/esm/shared/src/utils.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/defaultAttributes.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/Icon.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
|
+
|
7773
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
7774
|
+
(**
|
7775
|
+
* @license lucide-react v0.379.0 - ISC
|
7776
|
+
*
|
7777
|
+
* This source code is licensed under the ISC license.
|
7778
|
+
* See the LICENSE file in the root directory of this source tree.
|
7779
|
+
*)
|
7780
|
+
|
7781
|
+
lucide-react/dist/esm/icons/dot.js:
|
7782
|
+
(**
|
7783
|
+
* @license lucide-react v0.379.0 - ISC
|
7784
|
+
*
|
7785
|
+
* This source code is licensed under the ISC license.
|
7786
|
+
* See the LICENSE file in the root directory of this source tree.
|
7787
|
+
*)
|
7788
|
+
|
7789
|
+
lucide-react/dist/esm/lucide-react.js:
|
7790
|
+
(**
|
7791
|
+
* @license lucide-react v0.379.0 - ISC
|
7792
|
+
*
|
7793
|
+
* This source code is licensed under the ISC license.
|
7794
|
+
* See the LICENSE file in the root directory of this source tree.
|
7795
|
+
*)
|
7796
|
+
*/
|