@sikka/hawa 0.27.7-next → 0.27.9-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/appLayout/index.js +2 -1
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +2 -1
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +9 -8
- package/dist/blocks/auth/index.mjs +4 -4
- package/dist/blocks/feedback/index.js +6 -5
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.d.mts +1 -0
- package/dist/blocks/index.d.ts +1 -0
- package/dist/blocks/index.js +40 -25
- package/dist/blocks/index.mjs +33 -19
- package/dist/blocks/misc/index.js +9 -8
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.d.mts +3 -1
- package/dist/blocks/pricing/index.d.ts +3 -1
- package/dist/blocks/pricing/index.js +37 -22
- package/dist/blocks/pricing/index.mjs +35 -21
- package/dist/{chunk-7PMCIALZ.mjs → chunk-3QADSQDZ.mjs} +1 -1
- package/dist/{chunk-YVA24XDX.mjs → chunk-77PYXYCP.mjs} +1 -1
- package/dist/{chunk-FWXGRCMV.mjs → chunk-EZKMFH4D.mjs} +1 -1
- package/dist/{chunk-VH3BSHXE.mjs → chunk-H6RXLCDX.mjs} +6 -5
- package/dist/{chunk-HMOLUVOW.mjs → chunk-O3Y6K3YE.mjs} +6 -5
- package/dist/{chunk-22AYTFV7.mjs → chunk-PPOMNW7H.mjs} +1 -1
- package/dist/{chunk-JOONPMGB.mjs → chunk-QDNT7A7D.mjs} +1 -1
- package/dist/{chunk-3DLPFXOW.mjs → chunk-TZT5E6NW.mjs} +1 -1
- package/dist/{chunk-KLVQRGD5.mjs → chunk-YHED4XVA.mjs} +4 -4
- package/dist/{chunk-3V6NT6T7.mjs → chunk-YVH4TWNC.mjs} +4 -4
- package/dist/codeBlock/index.js +2 -1
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +2 -1
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/colorPicker/index.js +6 -5
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs +6 -5
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/combobox/index.js +6 -5
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +6 -5
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/dataTable/index.js +9 -8
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +9 -8
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +4 -0
- package/dist/elements/index.d.ts +4 -0
- package/dist/elements/index.js +9 -8
- package/dist/elements/index.mjs +3 -3
- package/dist/index.css +19 -16
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +40 -25
- package/dist/index.mjs +40 -25
- package/dist/input/index.d.mts +2 -0
- package/dist/input/index.d.ts +2 -0
- package/dist/input/index.js +9 -8
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +9 -8
- package/dist/input/index.mjs.map +1 -1
- package/dist/interfaceSettings/index.js +2 -1
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +2 -1
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/label/index.js +2 -1
- package/dist/label/index.js.map +1 -1
- package/dist/label/index.mjs +2 -1
- package/dist/label/index.mjs.map +1 -1
- package/dist/layout/index.js +6 -5
- package/dist/layout/index.mjs +2 -2
- package/dist/passwordInput/index.js +9 -8
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +9 -8
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js +6 -5
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +6 -5
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/radio/index.js +2 -1
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +2 -1
- package/dist/radio/index.mjs.map +1 -1
- package/dist/select/index.js +6 -5
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +6 -5
- package/dist/select/index.mjs.map +1 -1
- package/dist/signature/index.js +2 -1
- package/dist/signature/index.js.map +1 -1
- package/dist/signature/index.mjs +2 -1
- package/dist/signature/index.mjs.map +1 -1
- package/dist/simpleTable/index.js +4 -4
- package/dist/simpleTable/index.js.map +1 -1
- package/dist/simpleTable/index.mjs +4 -4
- package/dist/simpleTable/index.mjs.map +1 -1
- package/dist/skeleton/index.js +4 -4
- package/dist/skeleton/index.js.map +1 -1
- package/dist/skeleton/index.mjs +4 -4
- package/dist/skeleton/index.mjs.map +1 -1
- package/dist/stats/index.js +4 -4
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs +4 -4
- package/dist/stats/index.mjs.map +1 -1
- package/dist/textarea/index.js +6 -5
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs +6 -5
- package/dist/textarea/index.mjs.map +1 -1
- package/dist/tooltip/index.d.mts +2 -0
- package/dist/tooltip/index.d.ts +2 -0
- package/dist/tooltip/index.js +2 -1
- package/dist/tooltip/index.js.map +1 -1
- package/dist/tooltip/index.mjs +2 -1
- package/dist/tooltip/index.mjs.map +1 -1
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.d.ts +2 -1
- package/package.json +1 -1
@@ -1,25 +1,25 @@
|
|
1
1
|
import {
|
2
2
|
Textarea
|
3
|
-
} from "../../chunk-
|
3
|
+
} from "../../chunk-3QADSQDZ.mjs";
|
4
4
|
import {
|
5
5
|
Select
|
6
|
-
} from "../../chunk-
|
6
|
+
} from "../../chunk-EZKMFH4D.mjs";
|
7
7
|
import {
|
8
8
|
Radio
|
9
|
-
} from "../../chunk-
|
9
|
+
} from "../../chunk-77PYXYCP.mjs";
|
10
10
|
import {
|
11
11
|
BadEmoji,
|
12
12
|
GoodEmoji,
|
13
13
|
VeryBadEmoji,
|
14
14
|
VeryGoodEmoji
|
15
|
-
} from "../../chunk-
|
15
|
+
} from "../../chunk-PPOMNW7H.mjs";
|
16
16
|
import {
|
17
17
|
Button,
|
18
18
|
Card,
|
19
19
|
CardContent,
|
20
20
|
Label,
|
21
21
|
cn
|
22
|
-
} from "../../chunk-
|
22
|
+
} from "../../chunk-O3Y6K3YE.mjs";
|
23
23
|
|
24
24
|
// blocks/feedback/UserReferralSource.tsx
|
25
25
|
import React, { useRef, useState } from "react";
|
package/dist/blocks/index.d.mts
CHANGED
@@ -360,6 +360,7 @@ type ContactFormProps = {
|
|
360
360
|
declare const ContactForm: React__default.FC<ContactFormProps>;
|
361
361
|
|
362
362
|
type PricingPlansTypes = {
|
363
|
+
loadingCards?: boolean;
|
363
364
|
plans: PricingCardProps[];
|
364
365
|
currencies: RadioOptionType[];
|
365
366
|
billingCycles: RadioOptionType[];
|
package/dist/blocks/index.d.ts
CHANGED
@@ -360,6 +360,7 @@ type ContactFormProps = {
|
|
360
360
|
declare const ContactForm: React__default.FC<ContactFormProps>;
|
361
361
|
|
362
362
|
type PricingPlansTypes = {
|
363
|
+
loadingCards?: boolean;
|
363
364
|
plans: PricingCardProps[];
|
364
365
|
currencies: RadioOptionType[];
|
365
366
|
billingCycles: RadioOptionType[];
|
package/dist/blocks/index.js
CHANGED
@@ -627,6 +627,7 @@ var Tooltip = ({
|
|
627
627
|
open,
|
628
628
|
content,
|
629
629
|
children,
|
630
|
+
disabled,
|
630
631
|
defaultOpen,
|
631
632
|
onOpenChange,
|
632
633
|
triggerProps,
|
@@ -644,7 +645,7 @@ var Tooltip = ({
|
|
644
645
|
/* @__PURE__ */ import_react3.default.createElement(
|
645
646
|
TooltipPrimitive.Root,
|
646
647
|
{
|
647
|
-
open,
|
648
|
+
open: !disabled && open,
|
648
649
|
defaultOpen,
|
649
650
|
onOpenChange,
|
650
651
|
...props
|
@@ -721,10 +722,10 @@ function Skeleton({
|
|
721
722
|
shimmer: "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10"
|
722
723
|
};
|
723
724
|
const fadeStyle = {
|
724
|
-
bottom: "
|
725
|
-
top: "
|
726
|
-
right: "
|
727
|
-
left: "
|
725
|
+
bottom: "hawa-mask-fade-bottom",
|
726
|
+
top: "hawa-mask-fade-top",
|
727
|
+
right: "hawa-mask-fade-right",
|
728
|
+
left: "hawa-mask-fade-left "
|
728
729
|
};
|
729
730
|
return /* @__PURE__ */ import_react4.default.createElement(
|
730
731
|
"div",
|
@@ -781,7 +782,7 @@ var Input = (0, import_react5.forwardRef)(
|
|
781
782
|
)
|
782
783
|
},
|
783
784
|
props.label && /* @__PURE__ */ import_react5.default.createElement(Label, { ...labelProps }, props.label),
|
784
|
-
props.isLoading ? /* @__PURE__ */ import_react5.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react5.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react5.default.createElement(import_react5.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react5.default.createElement(
|
785
|
+
/* @__PURE__ */ import_react5.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-w-full hawa-items-center " }, props.prefixText && /* @__PURE__ */ import_react5.default.createElement("span", { className: cn("hawa-me-2 hawa-opacity-90", !forceHideHelperText && "hawa-mb-2") }, props.prefixText), props.isLoading ? /* @__PURE__ */ import_react5.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react5.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react5.default.createElement(import_react5.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react5.default.createElement(
|
785
786
|
"div",
|
786
787
|
{
|
787
788
|
className: cn(
|
@@ -789,7 +790,7 @@ var Input = (0, import_react5.forwardRef)(
|
|
789
790
|
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
790
791
|
)
|
791
792
|
}
|
792
|
-
), /* @__PURE__ */ import_react5.default.createElement(
|
793
|
+
), /* @__PURE__ */ import_react5.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, /* @__PURE__ */ import_react5.default.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ import_react5.default.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ import_react5.default.createElement(
|
793
794
|
"div",
|
794
795
|
{
|
795
796
|
className: cn(
|
@@ -857,7 +858,7 @@ var Input = (0, import_react5.forwardRef)(
|
|
857
858
|
props.value ? String(props.value).length : 0,
|
858
859
|
"/",
|
859
860
|
props.maxLength
|
860
|
-
)))
|
861
|
+
))))
|
861
862
|
);
|
862
863
|
}
|
863
864
|
);
|
@@ -5896,7 +5897,13 @@ var PricingCard = ({
|
|
5896
5897
|
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
5897
5898
|
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
5898
5899
|
};
|
5899
|
-
return /* @__PURE__ */ import_react38.default.createElement(
|
5900
|
+
return /* @__PURE__ */ import_react38.default.createElement(import_react38.default.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ import_react38.default.createElement(
|
5901
|
+
Skeleton,
|
5902
|
+
{
|
5903
|
+
className: cn(cardSizes[size], "hawa-h-[200px]"),
|
5904
|
+
fade: "bottom"
|
5905
|
+
}
|
5906
|
+
) : /* @__PURE__ */ import_react38.default.createElement(
|
5900
5907
|
Card,
|
5901
5908
|
{
|
5902
5909
|
dir: direction,
|
@@ -5915,7 +5922,7 @@ var PricingCard = ({
|
|
5915
5922
|
},
|
5916
5923
|
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
5917
5924
|
),
|
5918
|
-
/* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ import_react38.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_react38.default.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ import_react38.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_react38.default.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ import_react38.default.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ import_react38.default.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.
|
5925
|
+
/* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ import_react38.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_react38.default.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ import_react38.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_react38.default.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ import_react38.default.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ import_react38.default.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.isLoadingPrice ? /* @__PURE__ */ import_react38.default.createElement(Skeleton, { className: "hawa-h-[48px] hawa-w-full hawa-max-w-[200px] hawa-p-0 " }) : /* @__PURE__ */ import_react38.default.createElement(import_react38.default.Fragment, null, props.noPrice ? /* @__PURE__ */ import_react38.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_react38.default.createElement(import_react38.default.Fragment, null, /* @__PURE__ */ import_react38.default.createElement(import_react38.default.Fragment, null, /* @__PURE__ */ import_react38.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-end hawa-gap-2" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ import_react38.default.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + ((_e = props.texts) == null ? void 0 : _e.currencyText)), /* @__PURE__ */ import_react38.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ import_react38.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, (_f = props.texts) == null ? void 0 : _f.currencyText)), /* @__PURE__ */ import_react38.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_react38.default.createElement(Separator, null), /* @__PURE__ */ import_react38.default.createElement(
|
5919
5926
|
"div",
|
5920
5927
|
{
|
5921
5928
|
className: cn(
|
@@ -5959,22 +5966,29 @@ var PricingCard = ({
|
|
5959
5966
|
size: "small"
|
5960
5967
|
}
|
5961
5968
|
))),
|
5962
|
-
feature.hint && /* @__PURE__ */ import_react38.default.createElement(
|
5963
|
-
|
5969
|
+
feature.hint && /* @__PURE__ */ import_react38.default.createElement(
|
5970
|
+
Tooltip,
|
5964
5971
|
{
|
5965
|
-
|
5966
|
-
|
5967
|
-
viewBox: "0 0 24 24",
|
5968
|
-
fill: "none",
|
5969
|
-
stroke: "currentColor",
|
5970
|
-
strokeWidth: "2",
|
5971
|
-
strokeLinecap: "round",
|
5972
|
-
strokeLinejoin: "round"
|
5972
|
+
content: feature.hint,
|
5973
|
+
side: feature.hintSide
|
5973
5974
|
},
|
5974
|
-
/* @__PURE__ */ import_react38.default.createElement(
|
5975
|
-
|
5976
|
-
|
5977
|
-
|
5975
|
+
/* @__PURE__ */ import_react38.default.createElement(
|
5976
|
+
"svg",
|
5977
|
+
{
|
5978
|
+
xmlns: "http://www.w3.org/2000/svg",
|
5979
|
+
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
5980
|
+
viewBox: "0 0 24 24",
|
5981
|
+
fill: "none",
|
5982
|
+
stroke: "currentColor",
|
5983
|
+
strokeWidth: "2",
|
5984
|
+
strokeLinecap: "round",
|
5985
|
+
strokeLinejoin: "round"
|
5986
|
+
},
|
5987
|
+
/* @__PURE__ */ import_react38.default.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
5988
|
+
/* @__PURE__ */ import_react38.default.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
5989
|
+
/* @__PURE__ */ import_react38.default.createElement("path", { d: "M12 17h.01" })
|
5990
|
+
)
|
5991
|
+
)
|
5978
5992
|
);
|
5979
5993
|
})),
|
5980
5994
|
/* @__PURE__ */ import_react38.default.createElement(
|
@@ -5987,7 +6001,7 @@ var PricingCard = ({
|
|
5987
6001
|
(_i = props.texts) == null ? void 0 : _i.buttonText
|
5988
6002
|
)
|
5989
6003
|
))
|
5990
|
-
);
|
6004
|
+
));
|
5991
6005
|
};
|
5992
6006
|
|
5993
6007
|
// blocks/cards/ItemCard.tsx
|
@@ -6503,6 +6517,7 @@ var PricingPlans = ({
|
|
6503
6517
|
}
|
6504
6518
|
},
|
6505
6519
|
...plan,
|
6520
|
+
isLoadingCard: props.loadingCards || plan.isLoadingCard,
|
6506
6521
|
price: plan.price,
|
6507
6522
|
texts: {
|
6508
6523
|
...plan.texts,
|
package/dist/blocks/index.mjs
CHANGED
@@ -25,7 +25,7 @@ import {
|
|
25
25
|
UncheckMark,
|
26
26
|
VeryBadEmoji,
|
27
27
|
VeryGoodEmoji
|
28
|
-
} from "../chunk-
|
28
|
+
} from "../chunk-YHED4XVA.mjs";
|
29
29
|
import {
|
30
30
|
Button,
|
31
31
|
Card,
|
@@ -41,7 +41,7 @@ import {
|
|
41
41
|
Skeleton,
|
42
42
|
Tooltip,
|
43
43
|
cn
|
44
|
-
} from "../chunk-
|
44
|
+
} from "../chunk-H6RXLCDX.mjs";
|
45
45
|
import "../chunk-ZFXKCRJC.mjs";
|
46
46
|
|
47
47
|
// blocks/auth/LoginForm.tsx
|
@@ -2039,7 +2039,13 @@ var PricingCard = ({
|
|
2039
2039
|
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
2040
2040
|
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
2041
2041
|
};
|
2042
|
-
return /* @__PURE__ */ React23.createElement(
|
2042
|
+
return /* @__PURE__ */ React23.createElement(React23.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ React23.createElement(
|
2043
|
+
Skeleton,
|
2044
|
+
{
|
2045
|
+
className: cn(cardSizes[size], "hawa-h-[200px]"),
|
2046
|
+
fade: "bottom"
|
2047
|
+
}
|
2048
|
+
) : /* @__PURE__ */ React23.createElement(
|
2043
2049
|
Card,
|
2044
2050
|
{
|
2045
2051
|
dir: direction,
|
@@ -2058,7 +2064,7 @@ var PricingCard = ({
|
|
2058
2064
|
},
|
2059
2065
|
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
2060
2066
|
),
|
2061
|
-
/* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React23.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ React23.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ React23.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, (_c = props.texts) == null ? void 0 : _c.subtitle), props.discount && /* @__PURE__ */ React23.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ React23.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ React23.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.
|
2067
|
+
/* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React23.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ React23.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ React23.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, (_c = props.texts) == null ? void 0 : _c.subtitle), props.discount && /* @__PURE__ */ React23.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ React23.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ React23.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.isLoadingPrice ? /* @__PURE__ */ React23.createElement(Skeleton, { className: "hawa-h-[48px] hawa-w-full hawa-max-w-[200px] hawa-p-0 " }) : /* @__PURE__ */ React23.createElement(React23.Fragment, null, props.noPrice ? /* @__PURE__ */ React23.createElement("div", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, ((_d = props.texts) == null ? void 0 : _d.priceless) || "Contact Us") : /* @__PURE__ */ React23.createElement(React23.Fragment, null, /* @__PURE__ */ React23.createElement(React23.Fragment, null, /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-end hawa-gap-2" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ React23.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + ((_e = props.texts) == null ? void 0 : _e.currencyText)), /* @__PURE__ */ React23.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ React23.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, (_f = props.texts) == null ? void 0 : _f.currencyText)), /* @__PURE__ */ React23.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__ */ React23.createElement(Separator, null), /* @__PURE__ */ React23.createElement(
|
2062
2068
|
"div",
|
2063
2069
|
{
|
2064
2070
|
className: cn(
|
@@ -2102,22 +2108,29 @@ var PricingCard = ({
|
|
2102
2108
|
size: "small"
|
2103
2109
|
}
|
2104
2110
|
))),
|
2105
|
-
feature.hint && /* @__PURE__ */ React23.createElement(
|
2106
|
-
|
2111
|
+
feature.hint && /* @__PURE__ */ React23.createElement(
|
2112
|
+
Tooltip,
|
2107
2113
|
{
|
2108
|
-
|
2109
|
-
|
2110
|
-
viewBox: "0 0 24 24",
|
2111
|
-
fill: "none",
|
2112
|
-
stroke: "currentColor",
|
2113
|
-
strokeWidth: "2",
|
2114
|
-
strokeLinecap: "round",
|
2115
|
-
strokeLinejoin: "round"
|
2114
|
+
content: feature.hint,
|
2115
|
+
side: feature.hintSide
|
2116
2116
|
},
|
2117
|
-
/* @__PURE__ */ React23.createElement(
|
2118
|
-
|
2119
|
-
|
2120
|
-
|
2117
|
+
/* @__PURE__ */ React23.createElement(
|
2118
|
+
"svg",
|
2119
|
+
{
|
2120
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2121
|
+
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
2122
|
+
viewBox: "0 0 24 24",
|
2123
|
+
fill: "none",
|
2124
|
+
stroke: "currentColor",
|
2125
|
+
strokeWidth: "2",
|
2126
|
+
strokeLinecap: "round",
|
2127
|
+
strokeLinejoin: "round"
|
2128
|
+
},
|
2129
|
+
/* @__PURE__ */ React23.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
2130
|
+
/* @__PURE__ */ React23.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
2131
|
+
/* @__PURE__ */ React23.createElement("path", { d: "M12 17h.01" })
|
2132
|
+
)
|
2133
|
+
)
|
2121
2134
|
);
|
2122
2135
|
})),
|
2123
2136
|
/* @__PURE__ */ React23.createElement(
|
@@ -2130,7 +2143,7 @@ var PricingCard = ({
|
|
2130
2143
|
(_i = props.texts) == null ? void 0 : _i.buttonText
|
2131
2144
|
)
|
2132
2145
|
))
|
2133
|
-
);
|
2146
|
+
));
|
2134
2147
|
};
|
2135
2148
|
|
2136
2149
|
// blocks/cards/ItemCard.tsx
|
@@ -2313,6 +2326,7 @@ var PricingPlans = ({
|
|
2313
2326
|
}
|
2314
2327
|
},
|
2315
2328
|
...plan,
|
2329
|
+
isLoadingCard: props.loadingCards || plan.isLoadingCard,
|
2316
2330
|
price: plan.price,
|
2317
2331
|
texts: {
|
2318
2332
|
...plan.texts,
|
@@ -715,6 +715,7 @@ var Tooltip = ({
|
|
715
715
|
open,
|
716
716
|
content,
|
717
717
|
children,
|
718
|
+
disabled,
|
718
719
|
defaultOpen,
|
719
720
|
onOpenChange,
|
720
721
|
triggerProps,
|
@@ -732,7 +733,7 @@ var Tooltip = ({
|
|
732
733
|
/* @__PURE__ */ import_react6.default.createElement(
|
733
734
|
TooltipPrimitive.Root,
|
734
735
|
{
|
735
|
-
open,
|
736
|
+
open: !disabled && open,
|
736
737
|
defaultOpen,
|
737
738
|
onOpenChange,
|
738
739
|
...props
|
@@ -809,10 +810,10 @@ function Skeleton({
|
|
809
810
|
shimmer: "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10"
|
810
811
|
};
|
811
812
|
const fadeStyle = {
|
812
|
-
bottom: "
|
813
|
-
top: "
|
814
|
-
right: "
|
815
|
-
left: "
|
813
|
+
bottom: "hawa-mask-fade-bottom",
|
814
|
+
top: "hawa-mask-fade-top",
|
815
|
+
right: "hawa-mask-fade-right",
|
816
|
+
left: "hawa-mask-fade-left "
|
816
817
|
};
|
817
818
|
return /* @__PURE__ */ import_react7.default.createElement(
|
818
819
|
"div",
|
@@ -869,7 +870,7 @@ var Input = (0, import_react8.forwardRef)(
|
|
869
870
|
)
|
870
871
|
},
|
871
872
|
props.label && /* @__PURE__ */ import_react8.default.createElement(Label, { ...labelProps }, props.label),
|
872
|
-
props.isLoading ? /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react8.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react8.default.createElement(
|
873
|
+
/* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-w-full hawa-items-center " }, props.prefixText && /* @__PURE__ */ import_react8.default.createElement("span", { className: cn("hawa-me-2 hawa-opacity-90", !forceHideHelperText && "hawa-mb-2") }, props.prefixText), props.isLoading ? /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react8.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react8.default.createElement(
|
873
874
|
"div",
|
874
875
|
{
|
875
876
|
className: cn(
|
@@ -877,7 +878,7 @@ var Input = (0, import_react8.forwardRef)(
|
|
877
878
|
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
878
879
|
)
|
879
880
|
}
|
880
|
-
), /* @__PURE__ */ import_react8.default.createElement(
|
881
|
+
), /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ import_react8.default.createElement(
|
881
882
|
"div",
|
882
883
|
{
|
883
884
|
className: cn(
|
@@ -945,7 +946,7 @@ var Input = (0, import_react8.forwardRef)(
|
|
945
946
|
props.value ? String(props.value).length : 0,
|
946
947
|
"/",
|
947
948
|
props.maxLength
|
948
|
-
)))
|
949
|
+
))))
|
949
950
|
);
|
950
951
|
}
|
951
952
|
);
|
@@ -1,16 +1,16 @@
|
|
1
1
|
import {
|
2
2
|
Input
|
3
|
-
} from "../../chunk-
|
3
|
+
} from "../../chunk-YVH4TWNC.mjs";
|
4
4
|
import {
|
5
5
|
Chip,
|
6
6
|
ScrollArea
|
7
|
-
} from "../../chunk-
|
7
|
+
} from "../../chunk-TZT5E6NW.mjs";
|
8
8
|
import {
|
9
9
|
Textarea
|
10
|
-
} from "../../chunk-
|
10
|
+
} from "../../chunk-3QADSQDZ.mjs";
|
11
11
|
import {
|
12
12
|
Select
|
13
|
-
} from "../../chunk-
|
13
|
+
} from "../../chunk-EZKMFH4D.mjs";
|
14
14
|
import {
|
15
15
|
Button,
|
16
16
|
Card,
|
@@ -20,7 +20,7 @@ import {
|
|
20
20
|
CardHeader,
|
21
21
|
CardTitle,
|
22
22
|
cn
|
23
|
-
} from "../../chunk-
|
23
|
+
} from "../../chunk-O3Y6K3YE.mjs";
|
24
24
|
|
25
25
|
// blocks/misc/LegalTexts.tsx
|
26
26
|
import React2 from "react";
|
@@ -21,11 +21,13 @@ type PricingCardProps = {
|
|
21
21
|
currentPlan?: boolean;
|
22
22
|
recommended?: boolean;
|
23
23
|
size?: "small" | "medium" | "large";
|
24
|
-
|
24
|
+
isLoadingPrice?: boolean;
|
25
|
+
isLoadingCard?: boolean;
|
25
26
|
texts: PricingPlanTexts;
|
26
27
|
};
|
27
28
|
|
28
29
|
type PricingPlansTypes = {
|
30
|
+
loadingCards?: boolean;
|
29
31
|
plans: PricingCardProps[];
|
30
32
|
currencies: RadioOptionType[];
|
31
33
|
billingCycles: RadioOptionType[];
|
@@ -21,11 +21,13 @@ type PricingCardProps = {
|
|
21
21
|
currentPlan?: boolean;
|
22
22
|
recommended?: boolean;
|
23
23
|
size?: "small" | "medium" | "large";
|
24
|
-
|
24
|
+
isLoadingPrice?: boolean;
|
25
|
+
isLoadingCard?: boolean;
|
25
26
|
texts: PricingPlanTexts;
|
26
27
|
};
|
27
28
|
|
28
29
|
type PricingPlansTypes = {
|
30
|
+
loadingCards?: boolean;
|
29
31
|
plans: PricingCardProps[];
|
30
32
|
currencies: RadioOptionType[];
|
31
33
|
billingCycles: RadioOptionType[];
|
@@ -463,10 +463,10 @@ function Skeleton({
|
|
463
463
|
shimmer: "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10"
|
464
464
|
};
|
465
465
|
const fadeStyle = {
|
466
|
-
bottom: "
|
467
|
-
top: "
|
468
|
-
right: "
|
469
|
-
left: "
|
466
|
+
bottom: "hawa-mask-fade-bottom",
|
467
|
+
top: "hawa-mask-fade-top",
|
468
|
+
right: "hawa-mask-fade-right",
|
469
|
+
left: "hawa-mask-fade-left "
|
470
470
|
};
|
471
471
|
return /* @__PURE__ */ import_react4.default.createElement(
|
472
472
|
"div",
|
@@ -511,6 +511,7 @@ var Tooltip = ({
|
|
511
511
|
open,
|
512
512
|
content,
|
513
513
|
children,
|
514
|
+
disabled,
|
514
515
|
defaultOpen,
|
515
516
|
onOpenChange,
|
516
517
|
triggerProps,
|
@@ -528,7 +529,7 @@ var Tooltip = ({
|
|
528
529
|
/* @__PURE__ */ import_react5.default.createElement(
|
529
530
|
TooltipPrimitive.Root,
|
530
531
|
{
|
531
|
-
open,
|
532
|
+
open: !disabled && open,
|
532
533
|
defaultOpen,
|
533
534
|
onOpenChange,
|
534
535
|
...props
|
@@ -644,7 +645,13 @@ var PricingCard = ({
|
|
644
645
|
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
645
646
|
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
646
647
|
};
|
647
|
-
return /* @__PURE__ */ import_react7.default.createElement(
|
648
|
+
return /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ import_react7.default.createElement(
|
649
|
+
Skeleton,
|
650
|
+
{
|
651
|
+
className: cn(cardSizes[size], "hawa-h-[200px]"),
|
652
|
+
fade: "bottom"
|
653
|
+
}
|
654
|
+
) : /* @__PURE__ */ import_react7.default.createElement(
|
648
655
|
Card,
|
649
656
|
{
|
650
657
|
dir: direction,
|
@@ -663,7 +670,7 @@ var PricingCard = ({
|
|
663
670
|
},
|
664
671
|
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
665
672
|
),
|
666
|
-
/* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ import_react7.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_react7.default.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ import_react7.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_react7.default.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ import_react7.default.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ import_react7.default.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.
|
673
|
+
/* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ import_react7.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_react7.default.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ import_react7.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_react7.default.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ import_react7.default.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ import_react7.default.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.isLoadingPrice ? /* @__PURE__ */ import_react7.default.createElement(Skeleton, { className: "hawa-h-[48px] hawa-w-full hawa-max-w-[200px] hawa-p-0 " }) : /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, props.noPrice ? /* @__PURE__ */ import_react7.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_react7.default.createElement(import_react7.default.Fragment, null, /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-end hawa-gap-2" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + ((_e = props.texts) == null ? void 0 : _e.currencyText)), /* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, (_f = props.texts) == null ? void 0 : _f.currencyText)), /* @__PURE__ */ import_react7.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_react7.default.createElement(Separator, null), /* @__PURE__ */ import_react7.default.createElement(
|
667
674
|
"div",
|
668
675
|
{
|
669
676
|
className: cn(
|
@@ -707,22 +714,29 @@ var PricingCard = ({
|
|
707
714
|
size: "small"
|
708
715
|
}
|
709
716
|
))),
|
710
|
-
feature.hint && /* @__PURE__ */ import_react7.default.createElement(
|
711
|
-
|
717
|
+
feature.hint && /* @__PURE__ */ import_react7.default.createElement(
|
718
|
+
Tooltip,
|
712
719
|
{
|
713
|
-
|
714
|
-
|
715
|
-
viewBox: "0 0 24 24",
|
716
|
-
fill: "none",
|
717
|
-
stroke: "currentColor",
|
718
|
-
strokeWidth: "2",
|
719
|
-
strokeLinecap: "round",
|
720
|
-
strokeLinejoin: "round"
|
720
|
+
content: feature.hint,
|
721
|
+
side: feature.hintSide
|
721
722
|
},
|
722
|
-
/* @__PURE__ */ import_react7.default.createElement(
|
723
|
-
|
724
|
-
|
725
|
-
|
723
|
+
/* @__PURE__ */ import_react7.default.createElement(
|
724
|
+
"svg",
|
725
|
+
{
|
726
|
+
xmlns: "http://www.w3.org/2000/svg",
|
727
|
+
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
728
|
+
viewBox: "0 0 24 24",
|
729
|
+
fill: "none",
|
730
|
+
stroke: "currentColor",
|
731
|
+
strokeWidth: "2",
|
732
|
+
strokeLinecap: "round",
|
733
|
+
strokeLinejoin: "round"
|
734
|
+
},
|
735
|
+
/* @__PURE__ */ import_react7.default.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
736
|
+
/* @__PURE__ */ import_react7.default.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
737
|
+
/* @__PURE__ */ import_react7.default.createElement("path", { d: "M12 17h.01" })
|
738
|
+
)
|
739
|
+
)
|
726
740
|
);
|
727
741
|
})),
|
728
742
|
/* @__PURE__ */ import_react7.default.createElement(
|
@@ -735,7 +749,7 @@ var PricingCard = ({
|
|
735
749
|
(_i = props.texts) == null ? void 0 : _i.buttonText
|
736
750
|
)
|
737
751
|
))
|
738
|
-
);
|
752
|
+
));
|
739
753
|
};
|
740
754
|
|
741
755
|
// blocks/cards/ItemCard.tsx
|
@@ -1216,6 +1230,7 @@ var PricingPlans = ({
|
|
1216
1230
|
}
|
1217
1231
|
},
|
1218
1232
|
...plan,
|
1233
|
+
isLoadingCard: props.loadingCards || plan.isLoadingCard,
|
1219
1234
|
price: plan.price,
|
1220
1235
|
texts: {
|
1221
1236
|
...plan.texts,
|