@sikka/hawa 0.36.2-next → 0.37.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/appLayout/index.js +1 -1
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +1 -1
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +24 -25
- package/dist/blocks/auth/index.mjs +4 -4
- package/dist/blocks/feedback/index.js +24 -25
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.js +308 -192
- package/dist/blocks/index.mjs +3 -3
- package/dist/blocks/misc/index.js +270 -154
- package/dist/blocks/misc/index.mjs +53 -19
- package/dist/blocks/pricing/index.js +107 -22
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/card/index.d.mts +3 -1
- package/dist/card/index.d.ts +3 -1
- package/dist/card/index.js +13 -11
- package/dist/card/index.js.map +1 -1
- package/dist/card/index.mjs +13 -11
- package/dist/card/index.mjs.map +1 -1
- package/dist/{chunk-WABHQMUI.mjs → chunk-BPHQFAWM.mjs} +1 -1
- package/dist/{chunk-MVKP55SZ.mjs → chunk-BTDR3VAG.mjs} +1 -1
- package/dist/{chunk-7L2JUNG2.mjs → chunk-DS3AACQJ.mjs} +1 -1
- package/dist/{chunk-BXBSZD5X.mjs → chunk-MDHDHEPZ.mjs} +1 -1
- package/dist/{chunk-6QIOEUE2.mjs → chunk-ODOCZAWC.mjs} +1 -1
- package/dist/{chunk-YP2CCKZG.mjs → chunk-PXGL7ZXQ.mjs} +13 -11
- package/dist/{chunk-HLYAX77R.mjs → chunk-QXH7ZDMN.mjs} +12 -15
- package/dist/{chunk-T33FXOHA.mjs → chunk-QYWOI3DO.mjs} +152 -41
- package/dist/{chunk-NNPNQK6F.mjs → chunk-RNFJAEEU.mjs} +13 -11
- package/dist/{chunk-OPYDG34F.mjs → chunk-ZBUBNKF6.mjs} +93 -1
- package/dist/{chunk-CJ57JBYA.mjs → chunk-ZTUWU652.mjs} +95 -12
- package/dist/combobox/index.d.mts +1 -4
- package/dist/combobox/index.d.ts +1 -4
- package/dist/combobox/index.js +2 -1
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +2 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.d.mts +4 -36
- package/dist/command/index.d.ts +4 -36
- package/dist/command/index.js +43 -5
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +39 -3
- package/dist/command/index.mjs.map +1 -1
- package/dist/destroyableCard/index.js +13 -11
- package/dist/destroyableCard/index.js.map +1 -1
- package/dist/destroyableCard/index.mjs +13 -11
- package/dist/destroyableCard/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +31 -3
- package/dist/elements/index.d.ts +31 -3
- package/dist/elements/index.js +450 -295
- package/dist/elements/index.mjs +43 -6
- package/dist/hooks/index.d.mts +25 -1
- package/dist/hooks/index.d.ts +25 -1
- package/dist/hooks/index.js +96 -0
- package/dist/hooks/index.mjs +9 -1
- package/dist/index-e_Ob_SnB.d.mts +63 -0
- package/dist/index-e_Ob_SnB.d.ts +63 -0
- package/dist/index.css +20 -3
- package/dist/index.d.mts +55 -3
- package/dist/index.d.ts +55 -3
- package/dist/index.js +966 -718
- package/dist/index.mjs +494 -252
- package/dist/layout/index.js +14 -12
- package/dist/layout/index.mjs +3 -3
- package/dist/phoneInput/index.js +11 -14
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +11 -14
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/scrollArea/index.js +94 -11
- package/dist/scrollArea/index.js.map +1 -1
- package/dist/scrollArea/index.mjs +94 -11
- package/dist/scrollArea/index.mjs.map +1 -1
- package/dist/select/index.js +11 -14
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +11 -14
- package/dist/select/index.mjs.map +1 -1
- package/dist/stats/index.js +13 -11
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs +13 -11
- package/dist/stats/index.mjs.map +1 -1
- package/dist/tabs/index.d.mts +3 -1
- package/dist/tabs/index.d.ts +3 -1
- package/dist/tabs/index.js +189 -32
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +184 -27
- package/dist/tabs/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/blocks/index.js
CHANGED
@@ -1129,17 +1129,19 @@ var Card = React9.forwardRef(
|
|
1129
1129
|
);
|
1130
1130
|
}
|
1131
1131
|
);
|
1132
|
-
var CardHeader = React9.forwardRef(
|
1133
|
-
"div",
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1132
|
+
var CardHeader = React9.forwardRef(
|
1133
|
+
({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ React9.createElement(
|
1134
|
+
"div",
|
1135
|
+
{
|
1136
|
+
ref,
|
1137
|
+
className: cn(
|
1138
|
+
"hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6",
|
1139
|
+
className
|
1140
|
+
),
|
1141
|
+
...props
|
1142
|
+
}
|
1143
|
+
), props.actions && /* @__PURE__ */ React9.createElement("div", { className: "hawa-p-6" }, props.actions))
|
1144
|
+
);
|
1143
1145
|
var CardTitle = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
|
1144
1146
|
"h3",
|
1145
1147
|
{
|
@@ -3157,6 +3159,10 @@ var Select = ({
|
|
3157
3159
|
children
|
3158
3160
|
);
|
3159
3161
|
};
|
3162
|
+
let phoneCodeStyles = "hawa-min-w-[65px] hawa-text-right hawa-w-[100px] hawa-p-0 hawa-rounded-r-none hawa-h-[40px]";
|
3163
|
+
let selectContainerStyles = "hawa-rounded hawa-block hawa-w-full hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm";
|
3164
|
+
let selectPlaceholderStyles = "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1";
|
3165
|
+
let selectIndicatorContainerStyles = "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ";
|
3160
3166
|
return /* @__PURE__ */ import_react9.default.createElement(
|
3161
3167
|
"div",
|
3162
3168
|
{
|
@@ -3178,26 +3184,22 @@ var Select = ({
|
|
3178
3184
|
props.controlClassNames
|
3179
3185
|
),
|
3180
3186
|
container: () => cn(
|
3181
|
-
|
3182
|
-
props.phoneCode &&
|
3183
|
-
"hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm",
|
3187
|
+
selectContainerStyles,
|
3188
|
+
props.phoneCode && phoneCodeStyles,
|
3184
3189
|
props.disabled ? "hawa-cursor-not-allowed" : "hawa-cursor-pointer",
|
3185
3190
|
props.isMulti && "hawa-ps-0 "
|
3186
3191
|
),
|
3187
|
-
placeholder: () =>
|
3192
|
+
placeholder: () => selectPlaceholderStyles,
|
3188
3193
|
valueContainer: () => "hawa-text-foreground hawa-px-1 ",
|
3189
3194
|
singleValue: () => "hawa-text-foreground",
|
3190
3195
|
indicatorsContainer: () => cn(
|
3191
|
-
|
3196
|
+
selectIndicatorContainerStyles,
|
3192
3197
|
props.hideIndicator ? "hawa-invisible" : "hawa-px-1"
|
3193
3198
|
)
|
3194
3199
|
},
|
3195
3200
|
unstyled: true,
|
3196
|
-
|
3197
|
-
|
3198
|
-
Menu,
|
3199
|
-
IndicatorsContainer: () => null
|
3200
|
-
} : {
|
3201
|
+
autoFocus: false,
|
3202
|
+
components: props.hideIndicator ? { Option, Menu, IndicatorsContainer: () => null } : {
|
3201
3203
|
Option,
|
3202
3204
|
Menu,
|
3203
3205
|
// Control: (e) => (
|
@@ -3219,10 +3221,7 @@ var Select = ({
|
|
3219
3221
|
MultiValueContainer: (e) => /* @__PURE__ */ import_react9.default.createElement(
|
3220
3222
|
"div",
|
3221
3223
|
{
|
3222
|
-
className:
|
3223
|
-
// e.className,
|
3224
|
-
"hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row"
|
3225
|
-
),
|
3224
|
+
className: "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row",
|
3226
3225
|
...e
|
3227
3226
|
}
|
3228
3227
|
)
|
@@ -5663,22 +5662,105 @@ var FeedbackForm = (props) => {
|
|
5663
5662
|
};
|
5664
5663
|
|
5665
5664
|
// blocks/misc/LegalTexts.tsx
|
5666
|
-
var
|
5665
|
+
var import_react47 = __toESM(require("react"));
|
5667
5666
|
|
5668
5667
|
// elements/scrollArea/ScrollArea.tsx
|
5669
5668
|
var React34 = __toESM(require("react"));
|
5670
5669
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
5671
|
-
var ScrollArea = React34.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) =>
|
5672
|
-
|
5673
|
-
|
5674
|
-
|
5675
|
-
|
5676
|
-
|
5677
|
-
|
5678
|
-
|
5679
|
-
|
5680
|
-
|
5681
|
-
)
|
5670
|
+
var ScrollArea = React34.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => {
|
5671
|
+
const scrollAreaRef = React34.useRef(null);
|
5672
|
+
const isDragging = React34.useRef(false);
|
5673
|
+
const startPos = React34.useRef({ x: 0, y: 0 });
|
5674
|
+
const scrollPos = React34.useRef({ top: 0, left: 0 });
|
5675
|
+
const [showLeftFade, setShowLeftFade] = React34.useState(false);
|
5676
|
+
const [showRightFade, setShowRightFade] = React34.useState(false);
|
5677
|
+
const checkOverflow = () => {
|
5678
|
+
if (scrollAreaRef.current) {
|
5679
|
+
const { scrollLeft, scrollWidth, clientWidth } = scrollAreaRef.current;
|
5680
|
+
setShowLeftFade(scrollLeft > 0);
|
5681
|
+
setShowRightFade(scrollLeft + clientWidth < scrollWidth);
|
5682
|
+
}
|
5683
|
+
};
|
5684
|
+
const onMouseDown = (e) => {
|
5685
|
+
isDragging.current = true;
|
5686
|
+
startPos.current = { x: e.clientX, y: e.clientY };
|
5687
|
+
if (scrollAreaRef.current) {
|
5688
|
+
scrollPos.current = {
|
5689
|
+
top: scrollAreaRef.current.scrollTop,
|
5690
|
+
left: scrollAreaRef.current.scrollLeft
|
5691
|
+
};
|
5692
|
+
}
|
5693
|
+
document.addEventListener("mousemove", onMouseMove);
|
5694
|
+
document.addEventListener("mouseup", onMouseUp);
|
5695
|
+
};
|
5696
|
+
const onMouseMove = (e) => {
|
5697
|
+
if (!isDragging.current || !scrollAreaRef.current)
|
5698
|
+
return;
|
5699
|
+
const dx = e.clientX - startPos.current.x;
|
5700
|
+
const dy = e.clientY - startPos.current.y;
|
5701
|
+
if (orientation === "vertical") {
|
5702
|
+
scrollAreaRef.current.scrollTop = scrollPos.current.top - dy;
|
5703
|
+
} else {
|
5704
|
+
scrollAreaRef.current.scrollLeft = scrollPos.current.left - dx;
|
5705
|
+
checkOverflow();
|
5706
|
+
}
|
5707
|
+
};
|
5708
|
+
const onMouseUp = () => {
|
5709
|
+
isDragging.current = false;
|
5710
|
+
document.removeEventListener("mousemove", onMouseMove);
|
5711
|
+
document.removeEventListener("mouseup", onMouseUp);
|
5712
|
+
};
|
5713
|
+
React34.useEffect(() => {
|
5714
|
+
checkOverflow();
|
5715
|
+
if (scrollAreaRef.current) {
|
5716
|
+
scrollAreaRef.current.addEventListener("scroll", checkOverflow);
|
5717
|
+
window.addEventListener("resize", checkOverflow);
|
5718
|
+
}
|
5719
|
+
return () => {
|
5720
|
+
if (scrollAreaRef.current) {
|
5721
|
+
scrollAreaRef.current.removeEventListener("scroll", checkOverflow);
|
5722
|
+
}
|
5723
|
+
window.removeEventListener("resize", checkOverflow);
|
5724
|
+
};
|
5725
|
+
}, []);
|
5726
|
+
return /* @__PURE__ */ React34.createElement(
|
5727
|
+
ScrollAreaPrimitive.Root,
|
5728
|
+
{
|
5729
|
+
ref,
|
5730
|
+
className: cn("hawa-relative hawa-overflow-hidden", className),
|
5731
|
+
...props
|
5732
|
+
},
|
5733
|
+
/* @__PURE__ */ React34.createElement(
|
5734
|
+
"div",
|
5735
|
+
{
|
5736
|
+
className: cn(
|
5737
|
+
"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
|
+
showLeftFade ? "hawa-block" : "hawa-hidden"
|
5739
|
+
)
|
5740
|
+
}
|
5741
|
+
),
|
5742
|
+
/* @__PURE__ */ React34.createElement(
|
5743
|
+
"div",
|
5744
|
+
{
|
5745
|
+
className: cn(
|
5746
|
+
"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
|
+
showRightFade ? "hawa-block" : "hawa-hidden"
|
5748
|
+
)
|
5749
|
+
}
|
5750
|
+
),
|
5751
|
+
/* @__PURE__ */ React34.createElement(
|
5752
|
+
ScrollAreaPrimitive.Viewport,
|
5753
|
+
{
|
5754
|
+
ref: scrollAreaRef,
|
5755
|
+
className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]",
|
5756
|
+
onMouseDown
|
5757
|
+
},
|
5758
|
+
children
|
5759
|
+
),
|
5760
|
+
/* @__PURE__ */ React34.createElement(ScrollBar, { orientation }),
|
5761
|
+
/* @__PURE__ */ React34.createElement(ScrollAreaPrimitive.Corner, null)
|
5762
|
+
);
|
5763
|
+
});
|
5682
5764
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
5683
5765
|
var ScrollBar = React34.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React34.createElement(
|
5684
5766
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
@@ -5792,13 +5874,16 @@ var useMeasureDirty = (ref) => {
|
|
5792
5874
|
// hooks/useClickOutside.ts
|
5793
5875
|
var import_react44 = require("react");
|
5794
5876
|
|
5877
|
+
// hooks/useShortcuts.ts
|
5878
|
+
var import_react45 = require("react");
|
5879
|
+
|
5795
5880
|
// elements/tabs/Tabs.tsx
|
5796
5881
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
5797
5882
|
var import_tailwind_variants = require("tailwind-variants");
|
5798
5883
|
|
5799
5884
|
// elements/chip/Chip.tsx
|
5800
|
-
var
|
5801
|
-
var Chip =
|
5885
|
+
var import_react46 = __toESM(require("react"));
|
5886
|
+
var Chip = import_react46.default.forwardRef(
|
5802
5887
|
({
|
5803
5888
|
label,
|
5804
5889
|
size = "normal",
|
@@ -5842,7 +5927,7 @@ var Chip = import_react45.default.forwardRef(
|
|
5842
5927
|
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"
|
5843
5928
|
};
|
5844
5929
|
if (label) {
|
5845
|
-
return /* @__PURE__ */
|
5930
|
+
return /* @__PURE__ */ import_react46.default.createElement(
|
5846
5931
|
"span",
|
5847
5932
|
{
|
5848
5933
|
...rest,
|
@@ -5854,7 +5939,7 @@ var Chip = import_react45.default.forwardRef(
|
|
5854
5939
|
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
5855
5940
|
)
|
5856
5941
|
},
|
5857
|
-
dot && /* @__PURE__ */
|
5942
|
+
dot && /* @__PURE__ */ import_react46.default.createElement(
|
5858
5943
|
"span",
|
5859
5944
|
{
|
5860
5945
|
className: cn(dotStyles[size], dotStatusStyles[dotStatus])
|
@@ -5864,7 +5949,7 @@ var Chip = import_react45.default.forwardRef(
|
|
5864
5949
|
label
|
5865
5950
|
);
|
5866
5951
|
} else {
|
5867
|
-
return /* @__PURE__ */
|
5952
|
+
return /* @__PURE__ */ import_react46.default.createElement(
|
5868
5953
|
"span",
|
5869
5954
|
{
|
5870
5955
|
...rest,
|
@@ -5939,9 +6024,9 @@ var tabsListVariant = (0, import_tailwind_variants.tv)({
|
|
5939
6024
|
base: "",
|
5940
6025
|
variants: {
|
5941
6026
|
variant: {
|
5942
|
-
default: "hawa-flex hawa-w-fit hawa-
|
5943
|
-
underlined: "hawa-flex hawa-w-fit hawa-
|
5944
|
-
underlined_tabs: "hawa-flex hawa-w-fit hawa-
|
6027
|
+
default: "hawa-flex hawa-w-fit hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-border hawa-bg-muted hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10",
|
6028
|
+
underlined: "hawa-flex hawa-w-fit hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10",
|
6029
|
+
underlined_tabs: "hawa-flex hawa-w-fit hawa-items-center hawa-justify-start hawa-gap-1 hawa-text-muted-foreground"
|
5945
6030
|
},
|
5946
6031
|
orientation: { horizontal: "", vertical: "" }
|
5947
6032
|
},
|
@@ -6009,18 +6094,49 @@ var Tabs = React45.forwardRef(({ className, orientation, variant = "default", ..
|
|
6009
6094
|
));
|
6010
6095
|
var TabsList = React45.forwardRef(({ className, ...props }, ref) => {
|
6011
6096
|
const { orientation, variant } = React45.useContext(TabsContext);
|
6012
|
-
|
6013
|
-
|
6014
|
-
{
|
6015
|
-
ref,
|
6016
|
-
className: cn(
|
6017
|
-
tabsListVariant({ variant, orientation }),
|
6018
|
-
orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
|
6019
|
-
className
|
6020
|
-
),
|
6021
|
-
...props
|
6022
|
-
}
|
6097
|
+
const [size, setSize] = React45.useState(
|
6098
|
+
typeof window !== "undefined" && window.innerWidth || 1200
|
6023
6099
|
);
|
6100
|
+
React45.useEffect(() => {
|
6101
|
+
if (typeof window !== "undefined") {
|
6102
|
+
const resize = () => {
|
6103
|
+
setSize(window.innerWidth);
|
6104
|
+
};
|
6105
|
+
resize();
|
6106
|
+
window.addEventListener("resize", resize);
|
6107
|
+
return () => {
|
6108
|
+
window.removeEventListener("resize", resize);
|
6109
|
+
};
|
6110
|
+
}
|
6111
|
+
}, []);
|
6112
|
+
if ((props.scrollable || size < 768) && orientation === "horizontal") {
|
6113
|
+
return /* @__PURE__ */ React45.createElement(ScrollArea, { orientation: "horizontal" }, /* @__PURE__ */ React45.createElement(
|
6114
|
+
TabsPrimitive.List,
|
6115
|
+
{
|
6116
|
+
ref,
|
6117
|
+
className: cn(
|
6118
|
+
tabsListVariant({ variant, orientation }),
|
6119
|
+
"hawa-flex-row hawa-flex-nowrap",
|
6120
|
+
className
|
6121
|
+
),
|
6122
|
+
...props
|
6123
|
+
}
|
6124
|
+
));
|
6125
|
+
} else {
|
6126
|
+
return /* @__PURE__ */ React45.createElement(
|
6127
|
+
TabsPrimitive.List,
|
6128
|
+
{
|
6129
|
+
ref,
|
6130
|
+
className: cn(
|
6131
|
+
tabsListVariant({ variant, orientation }),
|
6132
|
+
orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
|
6133
|
+
"hawa-flex-wrap",
|
6134
|
+
className
|
6135
|
+
),
|
6136
|
+
...props
|
6137
|
+
}
|
6138
|
+
);
|
6139
|
+
}
|
6024
6140
|
});
|
6025
6141
|
var TabsTrigger = React45.forwardRef(({ className, chipProps, ...props }, ref) => {
|
6026
6142
|
const { orientation, variant } = React45.useContext(TabsContext);
|
@@ -6070,7 +6186,7 @@ TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
6070
6186
|
|
6071
6187
|
// blocks/misc/LegalTexts.tsx
|
6072
6188
|
var LegalTexts = ({ tabs, ...props }) => {
|
6073
|
-
return /* @__PURE__ */
|
6189
|
+
return /* @__PURE__ */ import_react47.default.createElement(
|
6074
6190
|
Tabs,
|
6075
6191
|
{
|
6076
6192
|
value: props.activeTab,
|
@@ -6078,8 +6194,8 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
6078
6194
|
defaultValue: props.defaultTab || tabs[0].value,
|
6079
6195
|
dir: props.direction
|
6080
6196
|
},
|
6081
|
-
/* @__PURE__ */
|
6082
|
-
tabs.map((tab, index) => /* @__PURE__ */
|
6197
|
+
/* @__PURE__ */ import_react47.default.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ import_react47.default.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
|
6198
|
+
tabs.map((tab, index) => /* @__PURE__ */ import_react47.default.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ import_react47.default.createElement(
|
6083
6199
|
ScrollArea,
|
6084
6200
|
{
|
6085
6201
|
className: cn(
|
@@ -6093,9 +6209,9 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
6093
6209
|
};
|
6094
6210
|
|
6095
6211
|
// blocks/misc/EmptyState.tsx
|
6096
|
-
var
|
6212
|
+
var import_react48 = __toESM(require("react"));
|
6097
6213
|
var EmptyState = ({ texts, onActionClick }) => {
|
6098
|
-
return /* @__PURE__ */
|
6214
|
+
return /* @__PURE__ */ import_react48.default.createElement(Card, null, /* @__PURE__ */ import_react48.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react48.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center " }, /* @__PURE__ */ import_react48.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_react48.default.createElement(
|
6099
6215
|
"svg",
|
6100
6216
|
{
|
6101
6217
|
stroke: "currentColor",
|
@@ -6105,30 +6221,30 @@ var EmptyState = ({ texts, onActionClick }) => {
|
|
6105
6221
|
height: "0.35em",
|
6106
6222
|
width: "0.35em"
|
6107
6223
|
},
|
6108
|
-
/* @__PURE__ */
|
6109
|
-
)), /* @__PURE__ */
|
6224
|
+
/* @__PURE__ */ import_react48.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" })
|
6225
|
+
)), /* @__PURE__ */ import_react48.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_react48.default.createElement(CardFooter, null, /* @__PURE__ */ import_react48.default.createElement(Button, { className: "hawa-w-full", onClick: () => onActionClick() }, (texts == null ? void 0 : texts.actionText) || "Go Home")));
|
6110
6226
|
};
|
6111
6227
|
|
6112
6228
|
// blocks/misc/Testimonial.tsx
|
6113
|
-
var
|
6229
|
+
var import_react49 = __toESM(require("react"));
|
6114
6230
|
var Testimonial = () => {
|
6115
|
-
return /* @__PURE__ */
|
6231
|
+
return /* @__PURE__ */ import_react49.default.createElement(Card, null, /* @__PURE__ */ import_react49.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react49.default.createElement("div", null, /* @__PURE__ */ import_react49.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_react49.default.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ import_react49.default.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ import_react49.default.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ import_react49.default.createElement(
|
6116
6232
|
"path",
|
6117
6233
|
{
|
6118
6234
|
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",
|
6119
6235
|
fill: "#FFFFFF"
|
6120
6236
|
}
|
6121
|
-
), /* @__PURE__ */
|
6237
|
+
), /* @__PURE__ */ import_react49.default.createElement(
|
6122
6238
|
"path",
|
6123
6239
|
{
|
6124
6240
|
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",
|
6125
6241
|
fill: "#FFFFFF"
|
6126
6242
|
}
|
6127
|
-
)), /* @__PURE__ */
|
6243
|
+
)), /* @__PURE__ */ import_react49.default.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ import_react49.default.createElement("div", null, /* @__PURE__ */ import_react49.default.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ import_react49.default.createElement("div", null, " Chief Information Security Officer")))));
|
6128
6244
|
};
|
6129
6245
|
|
6130
6246
|
// blocks/misc/LeadGenerator.tsx
|
6131
|
-
var
|
6247
|
+
var import_react50 = __toESM(require("react"));
|
6132
6248
|
var import_react_hook_form8 = require("react-hook-form");
|
6133
6249
|
var LeadGenerator = ({ texts, submitHandler }) => {
|
6134
6250
|
var _a;
|
@@ -6140,14 +6256,14 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
6140
6256
|
console.log("handleNewsletterSub props was not provided");
|
6141
6257
|
}
|
6142
6258
|
};
|
6143
|
-
return /* @__PURE__ */
|
6259
|
+
return /* @__PURE__ */ import_react50.default.createElement(Card, null, /* @__PURE__ */ import_react50.default.createElement(CardHeader, null, /* @__PURE__ */ import_react50.default.createElement(CardTitle, null, texts == null ? void 0 : texts.title), /* @__PURE__ */ import_react50.default.createElement(CardDescription, null, texts == null ? void 0 : texts.subtitle)), /* @__PURE__ */ import_react50.default.createElement(CardContent, null, /* @__PURE__ */ import_react50.default.createElement(
|
6144
6260
|
"form",
|
6145
6261
|
{
|
6146
6262
|
noValidate: true,
|
6147
6263
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
6148
6264
|
onSubmit: handleSubmit(onSubmit)
|
6149
6265
|
},
|
6150
|
-
/* @__PURE__ */
|
6266
|
+
/* @__PURE__ */ import_react50.default.createElement(
|
6151
6267
|
import_react_hook_form8.Controller,
|
6152
6268
|
{
|
6153
6269
|
name: "email",
|
@@ -6160,27 +6276,27 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
6160
6276
|
}
|
6161
6277
|
},
|
6162
6278
|
defaultValue: "",
|
6163
|
-
render: ({ field }) => /* @__PURE__ */
|
6279
|
+
render: ({ field }) => /* @__PURE__ */ import_react50.default.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
|
6164
6280
|
}
|
6165
6281
|
),
|
6166
|
-
/* @__PURE__ */
|
6282
|
+
/* @__PURE__ */ import_react50.default.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
|
6167
6283
|
)));
|
6168
6284
|
};
|
6169
6285
|
|
6170
6286
|
// blocks/misc/Announcement.tsx
|
6171
|
-
var
|
6287
|
+
var import_react51 = __toESM(require("react"));
|
6172
6288
|
var Announcement = ({
|
6173
6289
|
onActionClick,
|
6174
6290
|
...props
|
6175
6291
|
}) => {
|
6176
|
-
return /* @__PURE__ */
|
6292
|
+
return /* @__PURE__ */ import_react51.default.createElement(Card, null, /* @__PURE__ */ import_react51.default.createElement(
|
6177
6293
|
CardContent,
|
6178
6294
|
{
|
6179
6295
|
headless: true,
|
6180
6296
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
6181
6297
|
},
|
6182
|
-
/* @__PURE__ */
|
6183
|
-
/* @__PURE__ */
|
6298
|
+
/* @__PURE__ */ import_react51.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center " }, /* @__PURE__ */ import_react51.default.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ import_react51.default.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
|
6299
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
6184
6300
|
Button,
|
6185
6301
|
{
|
6186
6302
|
onClick: () => onActionClick(),
|
@@ -6192,15 +6308,15 @@ var Announcement = ({
|
|
6192
6308
|
};
|
6193
6309
|
|
6194
6310
|
// blocks/misc/NotFound.tsx
|
6195
|
-
var
|
6311
|
+
var import_react52 = __toESM(require("react"));
|
6196
6312
|
var NotFound = ({ texts }) => {
|
6197
|
-
return /* @__PURE__ */
|
6313
|
+
return /* @__PURE__ */ import_react52.default.createElement(Card, null, /* @__PURE__ */ import_react52.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white" }, /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-text-center hawa-text-6xl hawa-font-bold " }, "404"), /* @__PURE__ */ import_react52.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_react52.default.createElement("div", { className: "hawa-mb-4 hawa-text-center" }, (texts == null ? void 0 : texts.ifLost) || /* @__PURE__ */ import_react52.default.createElement(import_react52.default.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ import_react52.default.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ import_react52.default.createElement(Button, { className: "hawa-w-full" }, (texts == null ? void 0 : texts.home) || "Home"))));
|
6198
6314
|
};
|
6199
6315
|
|
6200
6316
|
// blocks/misc/NoPermission.tsx
|
6201
|
-
var
|
6317
|
+
var import_react53 = __toESM(require("react"));
|
6202
6318
|
var NoPermission = ({ texts }) => {
|
6203
|
-
return /* @__PURE__ */
|
6319
|
+
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 hawa-justify-center hawa-text-center" }, /* @__PURE__ */ import_react53.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_react53.default.createElement(
|
6204
6320
|
"svg",
|
6205
6321
|
{
|
6206
6322
|
stroke: "currentColor",
|
@@ -6210,12 +6326,12 @@ var NoPermission = ({ texts }) => {
|
|
6210
6326
|
height: "0.35em",
|
6211
6327
|
width: "0.35em"
|
6212
6328
|
},
|
6213
|
-
/* @__PURE__ */
|
6214
|
-
)), /* @__PURE__ */
|
6329
|
+
/* @__PURE__ */ import_react53.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" })
|
6330
|
+
)), /* @__PURE__ */ import_react53.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_react53.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"))));
|
6215
6331
|
};
|
6216
6332
|
|
6217
6333
|
// blocks/misc/ContactForm.tsx
|
6218
|
-
var
|
6334
|
+
var import_react54 = __toESM(require("react"));
|
6219
6335
|
var import_react_hook_form9 = require("react-hook-form");
|
6220
6336
|
var import_zod8 = require("@hookform/resolvers/zod");
|
6221
6337
|
var z8 = __toESM(require("zod"));
|
@@ -6288,7 +6404,7 @@ var ContactForm = ({
|
|
6288
6404
|
console.log("Form is submitted but onSubmit prop is missing");
|
6289
6405
|
}
|
6290
6406
|
};
|
6291
|
-
return /* @__PURE__ */
|
6407
|
+
return /* @__PURE__ */ import_react54.default.createElement(
|
6292
6408
|
Card,
|
6293
6409
|
{
|
6294
6410
|
className: cn(
|
@@ -6297,7 +6413,7 @@ var ContactForm = ({
|
|
6297
6413
|
),
|
6298
6414
|
style: cardless ? { boxShadow: "none" } : void 0
|
6299
6415
|
},
|
6300
|
-
/* @__PURE__ */
|
6416
|
+
/* @__PURE__ */ import_react54.default.createElement(CardContent, { headless: true, className: cardless ? "!hawa-p-0" : "" }, props.showSuccess ? /* @__PURE__ */ import_react54.default.createElement(CardHeader, null, /* @__PURE__ */ import_react54.default.createElement(CardTitle, null, ((_d = texts == null ? void 0 : texts.success) == null ? void 0 : _d.title) || "Message Sent! \u{1F389}"), /* @__PURE__ */ import_react54.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_react54.default.createElement(
|
6301
6417
|
"form",
|
6302
6418
|
{
|
6303
6419
|
noValidate: true,
|
@@ -6306,7 +6422,7 @@ var ContactForm = ({
|
|
6306
6422
|
id: formId,
|
6307
6423
|
autoComplete: formAutoComplete
|
6308
6424
|
},
|
6309
|
-
/* @__PURE__ */
|
6425
|
+
/* @__PURE__ */ import_react54.default.createElement(
|
6310
6426
|
"div",
|
6311
6427
|
{
|
6312
6428
|
className: cn(
|
@@ -6317,14 +6433,14 @@ var ContactForm = ({
|
|
6317
6433
|
}
|
6318
6434
|
)
|
6319
6435
|
},
|
6320
|
-
/* @__PURE__ */
|
6436
|
+
/* @__PURE__ */ import_react54.default.createElement(
|
6321
6437
|
import_react_hook_form9.Controller,
|
6322
6438
|
{
|
6323
6439
|
control,
|
6324
6440
|
name: "name",
|
6325
6441
|
render: ({ field }) => {
|
6326
6442
|
var _a2;
|
6327
|
-
return /* @__PURE__ */
|
6443
|
+
return /* @__PURE__ */ import_react54.default.createElement(
|
6328
6444
|
Input,
|
6329
6445
|
{
|
6330
6446
|
label: (texts == null ? void 0 : texts.name.label) || "Name",
|
@@ -6337,14 +6453,14 @@ var ContactForm = ({
|
|
6337
6453
|
}
|
6338
6454
|
}
|
6339
6455
|
),
|
6340
|
-
/* @__PURE__ */
|
6456
|
+
/* @__PURE__ */ import_react54.default.createElement(
|
6341
6457
|
import_react_hook_form9.Controller,
|
6342
6458
|
{
|
6343
6459
|
control,
|
6344
6460
|
name: "email",
|
6345
6461
|
render: ({ field }) => {
|
6346
6462
|
var _a2;
|
6347
|
-
return /* @__PURE__ */
|
6463
|
+
return /* @__PURE__ */ import_react54.default.createElement(
|
6348
6464
|
Input,
|
6349
6465
|
{
|
6350
6466
|
label: (texts == null ? void 0 : texts.email.label) || "Email",
|
@@ -6360,7 +6476,7 @@ var ContactForm = ({
|
|
6360
6476
|
),
|
6361
6477
|
customFields && customFields.map((customField) => {
|
6362
6478
|
console.log("custom", customField);
|
6363
|
-
return /* @__PURE__ */
|
6479
|
+
return /* @__PURE__ */ import_react54.default.createElement(
|
6364
6480
|
import_react_hook_form9.Controller,
|
6365
6481
|
{
|
6366
6482
|
control,
|
@@ -6370,7 +6486,7 @@ var ContactForm = ({
|
|
6370
6486
|
switch (type) {
|
6371
6487
|
case "text":
|
6372
6488
|
case "number":
|
6373
|
-
return /* @__PURE__ */
|
6489
|
+
return /* @__PURE__ */ import_react54.default.createElement(
|
6374
6490
|
Input,
|
6375
6491
|
{
|
6376
6492
|
id: customField.name,
|
@@ -6381,7 +6497,7 @@ var ContactForm = ({
|
|
6381
6497
|
}
|
6382
6498
|
);
|
6383
6499
|
case "select":
|
6384
|
-
return /* @__PURE__ */
|
6500
|
+
return /* @__PURE__ */ import_react54.default.createElement(
|
6385
6501
|
Select,
|
6386
6502
|
{
|
6387
6503
|
label,
|
@@ -6391,20 +6507,20 @@ var ContactForm = ({
|
|
6391
6507
|
}
|
6392
6508
|
);
|
6393
6509
|
default:
|
6394
|
-
return /* @__PURE__ */
|
6510
|
+
return /* @__PURE__ */ import_react54.default.createElement("div", null, "Unknown type");
|
6395
6511
|
}
|
6396
6512
|
}
|
6397
6513
|
}
|
6398
6514
|
);
|
6399
6515
|
}),
|
6400
|
-
/* @__PURE__ */
|
6516
|
+
/* @__PURE__ */ import_react54.default.createElement(
|
6401
6517
|
import_react_hook_form9.Controller,
|
6402
6518
|
{
|
6403
6519
|
control,
|
6404
6520
|
name: "message",
|
6405
6521
|
render: ({ field }) => {
|
6406
6522
|
var _a2;
|
6407
|
-
return /* @__PURE__ */
|
6523
|
+
return /* @__PURE__ */ import_react54.default.createElement(
|
6408
6524
|
Textarea,
|
6409
6525
|
{
|
6410
6526
|
label: (texts == null ? void 0 : texts.message.label) || "Message",
|
@@ -6421,19 +6537,19 @@ var ContactForm = ({
|
|
6421
6537
|
}
|
6422
6538
|
}
|
6423
6539
|
),
|
6424
|
-
/* @__PURE__ */
|
6540
|
+
/* @__PURE__ */ import_react54.default.createElement(Button, { type: "submit", className: "hawa-w-full" }, (texts == null ? void 0 : texts.submit) || "Submit")
|
6425
6541
|
))
|
6426
6542
|
);
|
6427
6543
|
};
|
6428
6544
|
|
6429
6545
|
// blocks/pricing/PricingPlans.tsx
|
6430
|
-
var
|
6546
|
+
var import_react61 = __toESM(require("react"));
|
6431
6547
|
|
6432
6548
|
// blocks/cards/ActionCard.tsx
|
6433
|
-
var
|
6549
|
+
var import_react55 = __toESM(require("react"));
|
6434
6550
|
var ActionCard = (props) => {
|
6435
|
-
const [hovered, setHovered] = (0,
|
6436
|
-
return /* @__PURE__ */
|
6551
|
+
const [hovered, setHovered] = (0, import_react55.useState)(false);
|
6552
|
+
return /* @__PURE__ */ import_react55.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ import_react55.default.createElement(
|
6437
6553
|
"div",
|
6438
6554
|
{
|
6439
6555
|
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",
|
@@ -6443,7 +6559,7 @@ var ActionCard = (props) => {
|
|
6443
6559
|
onMouseEnter: () => setHovered(true),
|
6444
6560
|
onMouseLeave: () => setHovered(false)
|
6445
6561
|
},
|
6446
|
-
props.blank ? /* @__PURE__ */
|
6562
|
+
props.blank ? /* @__PURE__ */ import_react55.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center " }, /* @__PURE__ */ import_react55.default.createElement(
|
6447
6563
|
"svg",
|
6448
6564
|
{
|
6449
6565
|
className: "hawa-h-10 hawa-w-10 hawa-text-foreground",
|
@@ -6455,11 +6571,11 @@ var ActionCard = (props) => {
|
|
6455
6571
|
width: "1em",
|
6456
6572
|
xmlns: "http://www.w3.org/2000/svg"
|
6457
6573
|
},
|
6458
|
-
/* @__PURE__ */
|
6459
|
-
)) : /* @__PURE__ */
|
6460
|
-
/* @__PURE__ */
|
6461
|
-
!props.blank && /* @__PURE__ */
|
6462
|
-
), /* @__PURE__ */
|
6574
|
+
/* @__PURE__ */ import_react55.default.createElement("path", { d: "M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z" })
|
6575
|
+
)) : /* @__PURE__ */ import_react55.default.createElement("div", { className: "hawa-absolute hawa-inset-0 hawa-rounded hawa-bg-black hawa-opacity-50" }),
|
6576
|
+
/* @__PURE__ */ import_react55.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),
|
6577
|
+
!props.blank && /* @__PURE__ */ import_react55.default.createElement("div", { className: "hawa-relative hawa-p-4" }, /* @__PURE__ */ import_react55.default.createElement("h1", { className: "hawa-text-white" }, props.title), /* @__PURE__ */ import_react55.default.createElement("p", { className: "hawa-text-white" }, props.subtitle))
|
6578
|
+
), /* @__PURE__ */ import_react55.default.createElement(
|
6463
6579
|
"div",
|
6464
6580
|
{
|
6465
6581
|
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"}`
|
@@ -6469,15 +6585,15 @@ var ActionCard = (props) => {
|
|
6469
6585
|
};
|
6470
6586
|
|
6471
6587
|
// blocks/cards/AdCard.tsx
|
6472
|
-
var
|
6588
|
+
var import_react56 = __toESM(require("react"));
|
6473
6589
|
var AdCard = ({
|
6474
6590
|
orientation = "vertical",
|
6475
6591
|
...props
|
6476
6592
|
}) => {
|
6477
|
-
const adRef = (0,
|
6478
|
-
const [closed, setClosed] = (0,
|
6593
|
+
const adRef = (0, import_react56.useRef)(null);
|
6594
|
+
const [closed, setClosed] = (0, import_react56.useState)(false);
|
6479
6595
|
let duration = 0;
|
6480
|
-
(0,
|
6596
|
+
(0, import_react56.useEffect)(() => {
|
6481
6597
|
if (duration) {
|
6482
6598
|
const timeoutHide = setTimeout(() => {
|
6483
6599
|
setClosed(true);
|
@@ -6502,21 +6618,21 @@ var AdCard = ({
|
|
6502
6618
|
horizontal: "hawa-w-auto hawa-h-full hawa-bg-blue-500 hawa-rounded-inner",
|
6503
6619
|
vertical: "hawa-bg-blue-500 hawa-rounded-inner hawa-w-auto "
|
6504
6620
|
};
|
6505
|
-
return /* @__PURE__ */
|
6621
|
+
return /* @__PURE__ */ import_react56.default.createElement("div", { ref: adRef }, /* @__PURE__ */ import_react56.default.createElement(
|
6506
6622
|
"div",
|
6507
6623
|
{
|
6508
6624
|
className: cn(cardStyles[orientation], props.className),
|
6509
6625
|
onClick: props.handleClick
|
6510
6626
|
},
|
6511
|
-
/* @__PURE__ */
|
6627
|
+
/* @__PURE__ */ import_react56.default.createElement("div", { className: "hawa-flex hawa-aspect-square hawa-w-full hawa-max-w-fit hawa-items-start " }, /* @__PURE__ */ import_react56.default.createElement(
|
6512
6628
|
"img",
|
6513
6629
|
{
|
6514
6630
|
src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
|
6515
6631
|
className: imageStyles[orientation]
|
6516
6632
|
}
|
6517
6633
|
)),
|
6518
|
-
/* @__PURE__ */
|
6519
|
-
props.canHide && /* @__PURE__ */
|
6634
|
+
/* @__PURE__ */ import_react56.default.createElement("div", { className: "hawa-w-full hawa-text-xs" }, /* @__PURE__ */ import_react56.default.createElement("div", { className: "hawa-font-bold" }, props.title), /* @__PURE__ */ import_react56.default.createElement("div", { className: "hawa-text-[12px]" }, props.description)),
|
6635
|
+
props.canHide && /* @__PURE__ */ import_react56.default.createElement(
|
6520
6636
|
"span",
|
6521
6637
|
{
|
6522
6638
|
onClick: (e) => {
|
@@ -6542,7 +6658,7 @@ var AdCard = ({
|
|
6542
6658
|
};
|
6543
6659
|
|
6544
6660
|
// blocks/cards/PricingCard.tsx
|
6545
|
-
var
|
6661
|
+
var import_react57 = __toESM(require("react"));
|
6546
6662
|
|
6547
6663
|
// elements/separator/Separator.tsx
|
6548
6664
|
var React56 = __toESM(require("react"));
|
@@ -6577,13 +6693,13 @@ var PricingCard = ({
|
|
6577
6693
|
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
6578
6694
|
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
6579
6695
|
};
|
6580
|
-
return /* @__PURE__ */
|
6696
|
+
return /* @__PURE__ */ import_react57.default.createElement(import_react57.default.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ import_react57.default.createElement(
|
6581
6697
|
Skeleton,
|
6582
6698
|
{
|
6583
6699
|
className: cn(cardSizes[size], "hawa-h-[200px]"),
|
6584
6700
|
fade: "bottom"
|
6585
6701
|
}
|
6586
|
-
) : /* @__PURE__ */
|
6702
|
+
) : /* @__PURE__ */ import_react57.default.createElement(
|
6587
6703
|
Card,
|
6588
6704
|
{
|
6589
6705
|
dir: direction,
|
@@ -6594,7 +6710,7 @@ var PricingCard = ({
|
|
6594
6710
|
recommended ? "hawa-rounded hawa-rounded-t-none" : "hawa-rounded"
|
6595
6711
|
)
|
6596
6712
|
},
|
6597
|
-
recommended && /* @__PURE__ */
|
6713
|
+
recommended && /* @__PURE__ */ import_react57.default.createElement(
|
6598
6714
|
"div",
|
6599
6715
|
{
|
6600
6716
|
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",
|
@@ -6602,7 +6718,7 @@ var PricingCard = ({
|
|
6602
6718
|
},
|
6603
6719
|
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
6604
6720
|
),
|
6605
|
-
/* @__PURE__ */
|
6721
|
+
/* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ import_react57.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_react57.default.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ import_react57.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_react57.default.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ import_react57.default.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ import_react57.default.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.isLoadingPrice ? /* @__PURE__ */ import_react57.default.createElement(Skeleton, { className: "hawa-h-[48px] hawa-w-full hawa-max-w-[200px] hawa-p-0 " }) : /* @__PURE__ */ import_react57.default.createElement(import_react57.default.Fragment, null, props.noPrice ? /* @__PURE__ */ import_react57.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_react57.default.createElement(import_react57.default.Fragment, null, /* @__PURE__ */ import_react57.default.createElement(import_react57.default.Fragment, null, /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-end hawa-gap-2" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ import_react57.default.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + ((_e = props.texts) == null ? void 0 : _e.currencyText)), /* @__PURE__ */ import_react57.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ import_react57.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, (_f = props.texts) == null ? void 0 : _f.currencyText)), /* @__PURE__ */ import_react57.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_react57.default.createElement(Separator, null), /* @__PURE__ */ import_react57.default.createElement(
|
6606
6722
|
"div",
|
6607
6723
|
{
|
6608
6724
|
className: cn(
|
@@ -6610,9 +6726,9 @@ var PricingCard = ({
|
|
6610
6726
|
endButton ? "hawa-flex-col" : "hawa-flex-col-reverse"
|
6611
6727
|
)
|
6612
6728
|
},
|
6613
|
-
props.features && /* @__PURE__ */
|
6729
|
+
props.features && /* @__PURE__ */ import_react57.default.createElement("ul", { role: "list", className: "hawa-space-y-0 hawa-overflow-x-auto" }, (_h = props.features) == null ? void 0 : _h.map((feature, o) => {
|
6614
6730
|
var _a2;
|
6615
|
-
return /* @__PURE__ */
|
6731
|
+
return /* @__PURE__ */ import_react57.default.createElement(
|
6616
6732
|
"li",
|
6617
6733
|
{
|
6618
6734
|
key: o,
|
@@ -6621,7 +6737,7 @@ var PricingCard = ({
|
|
6621
6737
|
!feature.included && "hawa-line-through"
|
6622
6738
|
)
|
6623
6739
|
},
|
6624
|
-
/* @__PURE__ */
|
6740
|
+
/* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center" }, feature.included ? /* @__PURE__ */ import_react57.default.createElement(
|
6625
6741
|
"svg",
|
6626
6742
|
{
|
6627
6743
|
"aria-label": "Check Icon",
|
@@ -6630,7 +6746,7 @@ var PricingCard = ({
|
|
6630
6746
|
fill: "currentColor",
|
6631
6747
|
viewBox: "0 0 20 20"
|
6632
6748
|
},
|
6633
|
-
/* @__PURE__ */
|
6749
|
+
/* @__PURE__ */ import_react57.default.createElement(
|
6634
6750
|
"path",
|
6635
6751
|
{
|
6636
6752
|
fillRule: "evenodd",
|
@@ -6638,7 +6754,7 @@ var PricingCard = ({
|
|
6638
6754
|
clipRule: "evenodd"
|
6639
6755
|
}
|
6640
6756
|
)
|
6641
|
-
) : /* @__PURE__ */
|
6757
|
+
) : /* @__PURE__ */ import_react57.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_react57.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_react57.default.createElement(
|
6642
6758
|
Chip,
|
6643
6759
|
{
|
6644
6760
|
label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "",
|
@@ -6646,13 +6762,13 @@ var PricingCard = ({
|
|
6646
6762
|
size: "small"
|
6647
6763
|
}
|
6648
6764
|
))),
|
6649
|
-
feature.hint && /* @__PURE__ */
|
6765
|
+
feature.hint && /* @__PURE__ */ import_react57.default.createElement(
|
6650
6766
|
Tooltip,
|
6651
6767
|
{
|
6652
6768
|
content: feature.hint,
|
6653
6769
|
side: feature.hintSide
|
6654
6770
|
},
|
6655
|
-
/* @__PURE__ */
|
6771
|
+
/* @__PURE__ */ import_react57.default.createElement(
|
6656
6772
|
"svg",
|
6657
6773
|
{
|
6658
6774
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6664,14 +6780,14 @@ var PricingCard = ({
|
|
6664
6780
|
strokeLinecap: "round",
|
6665
6781
|
strokeLinejoin: "round"
|
6666
6782
|
},
|
6667
|
-
/* @__PURE__ */
|
6668
|
-
/* @__PURE__ */
|
6669
|
-
/* @__PURE__ */
|
6783
|
+
/* @__PURE__ */ import_react57.default.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
6784
|
+
/* @__PURE__ */ import_react57.default.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
6785
|
+
/* @__PURE__ */ import_react57.default.createElement("path", { d: "M12 17h.01" })
|
6670
6786
|
)
|
6671
6787
|
)
|
6672
6788
|
);
|
6673
6789
|
})),
|
6674
|
-
/* @__PURE__ */
|
6790
|
+
/* @__PURE__ */ import_react57.default.createElement(
|
6675
6791
|
Button,
|
6676
6792
|
{
|
6677
6793
|
onClick: props.onPlanClicked,
|
@@ -6685,11 +6801,11 @@ var PricingCard = ({
|
|
6685
6801
|
};
|
6686
6802
|
|
6687
6803
|
// blocks/cards/ItemCard.tsx
|
6688
|
-
var
|
6804
|
+
var import_react59 = __toESM(require("react"));
|
6689
6805
|
|
6690
6806
|
// elements/dropdownMenu/DropdownMenu.tsx
|
6691
6807
|
var React58 = __toESM(require("react"));
|
6692
|
-
var
|
6808
|
+
var import_react58 = require("@headlessui/react");
|
6693
6809
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
6694
6810
|
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
6695
6811
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
@@ -6742,7 +6858,7 @@ var DropdownMenuSubContent = React58.forwardRef(({ className, ...props }, ref) =
|
|
6742
6858
|
}
|
6743
6859
|
));
|
6744
6860
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
6745
|
-
var DropdownMenuContent = React58.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
6861
|
+
var DropdownMenuContent = React58.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React58.createElement(import_react58.Portal, null, /* @__PURE__ */ React58.createElement(
|
6746
6862
|
DropdownMenuPrimitive.Content,
|
6747
6863
|
{
|
6748
6864
|
ref,
|
@@ -6920,7 +7036,7 @@ var DropdownMenu = ({
|
|
6920
7036
|
},
|
6921
7037
|
trigger
|
6922
7038
|
),
|
6923
|
-
/* @__PURE__ */ React58.createElement(
|
7039
|
+
/* @__PURE__ */ React58.createElement(import_react58.Portal, null, /* @__PURE__ */ React58.createElement(
|
6924
7040
|
DropdownMenuContent,
|
6925
7041
|
{
|
6926
7042
|
side,
|
@@ -6981,7 +7097,7 @@ var DropdownMenu = ({
|
|
6981
7097
|
},
|
6982
7098
|
item.icon && item.icon,
|
6983
7099
|
item.label && item.label
|
6984
|
-
), /* @__PURE__ */ React58.createElement(
|
7100
|
+
), /* @__PURE__ */ React58.createElement(import_react58.Portal, null, /* @__PURE__ */ React58.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
6985
7101
|
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
6986
7102
|
return /* @__PURE__ */ React58.createElement(
|
6987
7103
|
DropdownMenuItem,
|
@@ -7094,12 +7210,12 @@ var ItemCard = ({
|
|
7094
7210
|
)
|
7095
7211
|
};
|
7096
7212
|
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";
|
7097
|
-
const [openActionHeader, setOpenActionHeader] = (0,
|
7213
|
+
const [openActionHeader, setOpenActionHeader] = (0, import_react59.useState)(false);
|
7098
7214
|
function handleOpenActionHeader(e) {
|
7099
7215
|
e.stopPropagation();
|
7100
7216
|
setOpenActionHeader(!openActionHeader);
|
7101
7217
|
}
|
7102
|
-
(0,
|
7218
|
+
(0, import_react59.useEffect)(() => {
|
7103
7219
|
window.onclick = () => {
|
7104
7220
|
if (openActionHeader) {
|
7105
7221
|
setOpenActionHeader(false);
|
@@ -7107,7 +7223,7 @@ var ItemCard = ({
|
|
7107
7223
|
};
|
7108
7224
|
return () => window.onclick = null;
|
7109
7225
|
}, [openActionHeader]);
|
7110
|
-
return /* @__PURE__ */
|
7226
|
+
return /* @__PURE__ */ import_react59.default.createElement(
|
7111
7227
|
"div",
|
7112
7228
|
{
|
7113
7229
|
className: cn(
|
@@ -7123,7 +7239,7 @@ var ItemCard = ({
|
|
7123
7239
|
}
|
7124
7240
|
}
|
7125
7241
|
},
|
7126
|
-
cardImage && /* @__PURE__ */
|
7242
|
+
cardImage && /* @__PURE__ */ import_react59.default.createElement("div", { className: "hawa-group hawa-relative hawa-overflow-clip" }, /* @__PURE__ */ import_react59.default.createElement(
|
7127
7243
|
"img",
|
7128
7244
|
{
|
7129
7245
|
src: cardImage,
|
@@ -7132,7 +7248,7 @@ var ItemCard = ({
|
|
7132
7248
|
clickableImage ? "hawa-overflow-clip hawa-transition-all group-hover:hawa-blur-lg" : ""
|
7133
7249
|
)
|
7134
7250
|
}
|
7135
|
-
), clickableImage && /* @__PURE__ */
|
7251
|
+
), clickableImage && /* @__PURE__ */ import_react59.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react59.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_react59.default.createElement(
|
7136
7252
|
Button,
|
7137
7253
|
{
|
7138
7254
|
variant: "secondary",
|
@@ -7142,19 +7258,19 @@ var ItemCard = ({
|
|
7142
7258
|
clickableImageActionIcon,
|
7143
7259
|
clickableImageActionText || "Click"
|
7144
7260
|
)))),
|
7145
|
-
/* @__PURE__ */
|
7261
|
+
/* @__PURE__ */ import_react59.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_react59.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_react59.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react59.default.createElement(
|
7146
7262
|
DropdownMenu,
|
7147
7263
|
{
|
7148
7264
|
items: headerActions,
|
7149
|
-
trigger: /* @__PURE__ */
|
7265
|
+
trigger: /* @__PURE__ */ import_react59.default.createElement(
|
7150
7266
|
Button,
|
7151
7267
|
{
|
7152
7268
|
variant: "ghost",
|
7153
7269
|
size: "smallIcon",
|
7154
7270
|
onClick: handleOpenActionHeader
|
7155
7271
|
},
|
7156
|
-
/* @__PURE__ */
|
7157
|
-
/* @__PURE__ */
|
7272
|
+
/* @__PURE__ */ import_react59.default.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"),
|
7273
|
+
/* @__PURE__ */ import_react59.default.createElement(
|
7158
7274
|
"svg",
|
7159
7275
|
{
|
7160
7276
|
className: "hawa-h-5 hawa-w-5",
|
@@ -7162,11 +7278,11 @@ var ItemCard = ({
|
|
7162
7278
|
fill: "currentColor",
|
7163
7279
|
viewBox: "0 0 20 20"
|
7164
7280
|
},
|
7165
|
-
/* @__PURE__ */
|
7281
|
+
/* @__PURE__ */ import_react59.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" })
|
7166
7282
|
)
|
7167
7283
|
)
|
7168
7284
|
}
|
7169
|
-
))), /* @__PURE__ */
|
7285
|
+
))), /* @__PURE__ */ import_react59.default.createElement("div", { className: " hawa-mx-2" }, header && /* @__PURE__ */ import_react59.default.createElement("h5", { className: "hawa-mb-2 hawa-text-2xl hawa-font-bold hawa-tracking-tight " }, header), content && /* @__PURE__ */ import_react59.default.createElement("span", { className: "hawa-w-full hawa-font-normal " }, content)), actions || counts ? /* @__PURE__ */ import_react59.default.createElement(
|
7170
7286
|
"div",
|
7171
7287
|
{
|
7172
7288
|
className: cn(
|
@@ -7176,15 +7292,15 @@ var ItemCard = ({
|
|
7176
7292
|
)
|
7177
7293
|
},
|
7178
7294
|
counts,
|
7179
|
-
/* @__PURE__ */
|
7295
|
+
/* @__PURE__ */ import_react59.default.createElement(StopPropagationWrapper, null, actions)
|
7180
7296
|
) : null)
|
7181
7297
|
);
|
7182
7298
|
};
|
7183
7299
|
|
7184
7300
|
// blocks/cards/LandingCard.tsx
|
7185
|
-
var
|
7301
|
+
var import_react60 = __toESM(require("react"));
|
7186
7302
|
var LandingCard = (props) => {
|
7187
|
-
return /* @__PURE__ */
|
7303
|
+
return /* @__PURE__ */ import_react60.default.createElement(Card, { className: props.className }, /* @__PURE__ */ import_react60.default.createElement(CardHeader, null, props.icon, /* @__PURE__ */ import_react60.default.createElement(CardTitle, null, props.title), /* @__PURE__ */ import_react60.default.createElement(CardDescription, null, props.subtitle)));
|
7188
7304
|
};
|
7189
7305
|
|
7190
7306
|
// blocks/pricing/PricingPlans.tsx
|
@@ -7193,7 +7309,7 @@ var PricingPlans = ({
|
|
7193
7309
|
cardsContainerProps,
|
7194
7310
|
...props
|
7195
7311
|
}) => {
|
7196
|
-
return /* @__PURE__ */
|
7312
|
+
return /* @__PURE__ */ import_react61.default.createElement("div", { ...mainContainerProps }, /* @__PURE__ */ import_react61.default.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ import_react61.default.createElement(
|
7197
7313
|
Radio,
|
7198
7314
|
{
|
7199
7315
|
name: "cycle",
|
@@ -7206,7 +7322,7 @@ var PricingPlans = ({
|
|
7206
7322
|
}
|
7207
7323
|
}
|
7208
7324
|
}
|
7209
|
-
), /* @__PURE__ */
|
7325
|
+
), /* @__PURE__ */ import_react61.default.createElement(
|
7210
7326
|
Radio,
|
7211
7327
|
{
|
7212
7328
|
name: "currency",
|
@@ -7219,7 +7335,7 @@ var PricingPlans = ({
|
|
7219
7335
|
}
|
7220
7336
|
}
|
7221
7337
|
}
|
7222
|
-
)), /* @__PURE__ */
|
7338
|
+
)), /* @__PURE__ */ import_react61.default.createElement(
|
7223
7339
|
"div",
|
7224
7340
|
{
|
7225
7341
|
className: "hawa-inline-grid hawa-w-full hawa-grid-cols-[repeat(auto-fit,_minmax(300px,_1fr))] hawa-gap-4",
|
@@ -7227,7 +7343,7 @@ var PricingPlans = ({
|
|
7227
7343
|
},
|
7228
7344
|
props.plans.map((plan, index) => {
|
7229
7345
|
var _a, _b;
|
7230
|
-
return /* @__PURE__ */
|
7346
|
+
return /* @__PURE__ */ import_react61.default.createElement(
|
7231
7347
|
PricingCard,
|
7232
7348
|
{
|
7233
7349
|
key: index,
|
@@ -7258,7 +7374,7 @@ var PricingPlans = ({
|
|
7258
7374
|
};
|
7259
7375
|
|
7260
7376
|
// blocks/pricing/ComparingPlans.tsx
|
7261
|
-
var
|
7377
|
+
var import_react62 = __toESM(require("react"));
|
7262
7378
|
var ComparingPlans = (props) => {
|
7263
7379
|
const uniqueFeatures = Array.from(
|
7264
7380
|
new Set(
|
@@ -7267,7 +7383,7 @@ var ComparingPlans = (props) => {
|
|
7267
7383
|
)
|
7268
7384
|
)
|
7269
7385
|
);
|
7270
|
-
return /* @__PURE__ */
|
7386
|
+
return /* @__PURE__ */ import_react62.default.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ import_react62.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_react62.default.createElement(
|
7271
7387
|
Radio,
|
7272
7388
|
{
|
7273
7389
|
name: "cycle",
|
@@ -7282,7 +7398,7 @@ var ComparingPlans = (props) => {
|
|
7282
7398
|
}
|
7283
7399
|
}
|
7284
7400
|
}
|
7285
|
-
), /* @__PURE__ */
|
7401
|
+
), /* @__PURE__ */ import_react62.default.createElement(
|
7286
7402
|
Radio,
|
7287
7403
|
{
|
7288
7404
|
name: "currency",
|
@@ -7297,7 +7413,7 @@ var ComparingPlans = (props) => {
|
|
7297
7413
|
}
|
7298
7414
|
}
|
7299
7415
|
}
|
7300
|
-
)), /* @__PURE__ */
|
7416
|
+
)), /* @__PURE__ */ import_react62.default.createElement(
|
7301
7417
|
"div",
|
7302
7418
|
{
|
7303
7419
|
className: cn(
|
@@ -7308,16 +7424,16 @@ var ComparingPlans = (props) => {
|
|
7308
7424
|
top: props.topPosition || 0
|
7309
7425
|
}
|
7310
7426
|
},
|
7311
|
-
/* @__PURE__ */
|
7312
|
-
props.plans.map((plan, i) => /* @__PURE__ */
|
7427
|
+
/* @__PURE__ */ import_react62.default.createElement("div", { className: "hawa-flex hawa-items-center" }),
|
7428
|
+
props.plans.map((plan, i) => /* @__PURE__ */ import_react62.default.createElement(
|
7313
7429
|
"div",
|
7314
7430
|
{
|
7315
7431
|
key: i,
|
7316
7432
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2"
|
7317
7433
|
},
|
7318
|
-
/* @__PURE__ */
|
7434
|
+
/* @__PURE__ */ import_react62.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react62.default.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react62.default.createElement("span", { className: "hawa-text-md hawa-font-bold " }, plan.texts.title), /* @__PURE__ */ import_react62.default.createElement("span", { className: "hawa-text-md hawa-font-normal hawa-text-muted-foreground " }, plan.texts.subtitle)), /* @__PURE__ */ import_react62.default.createElement("div", { className: " hawa-flex hawa-items-baseline " }, /* @__PURE__ */ import_react62.default.createElement(import_react62.default.Fragment, null, /* @__PURE__ */ import_react62.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, plan.price), /* @__PURE__ */ import_react62.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ import_react62.default.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal " }, "/ ", plan.texts.cycleText)))
|
7319
7435
|
))
|
7320
|
-
), /* @__PURE__ */
|
7436
|
+
), /* @__PURE__ */ import_react62.default.createElement(
|
7321
7437
|
ScrollArea,
|
7322
7438
|
{
|
7323
7439
|
className: "hawa-h-fit hawa-rounded hawa-rounded-t-none hawa-border hawa-border-t-0 hawa-bg-background",
|
@@ -7325,7 +7441,7 @@ var ComparingPlans = (props) => {
|
|
7325
7441
|
},
|
7326
7442
|
uniqueFeatures.map((featureText, featureIndex) => {
|
7327
7443
|
var _a, _b, _c, _d;
|
7328
|
-
return /* @__PURE__ */
|
7444
|
+
return /* @__PURE__ */ import_react62.default.createElement(
|
7329
7445
|
"div",
|
7330
7446
|
{
|
7331
7447
|
key: featureIndex,
|
@@ -7334,11 +7450,11 @@ var ComparingPlans = (props) => {
|
|
7334
7450
|
featureIndex === 0 ? "" : "hawa-border-t"
|
7335
7451
|
)
|
7336
7452
|
},
|
7337
|
-
/* @__PURE__ */
|
7453
|
+
/* @__PURE__ */ import_react62.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-foreground" }, featureText, props.plans.some(
|
7338
7454
|
(plan) => plan.features.some(
|
7339
7455
|
(feature) => feature.text === featureText && feature.hint
|
7340
7456
|
)
|
7341
|
-
) && /* @__PURE__ */
|
7457
|
+
) && /* @__PURE__ */ import_react62.default.createElement(
|
7342
7458
|
Tooltip,
|
7343
7459
|
{
|
7344
7460
|
side: "right",
|
@@ -7353,7 +7469,7 @@ var ComparingPlans = (props) => {
|
|
7353
7469
|
(feature) => feature.text === featureText
|
7354
7470
|
)) == null ? void 0 : _b.hint
|
7355
7471
|
},
|
7356
|
-
/* @__PURE__ */
|
7472
|
+
/* @__PURE__ */ import_react62.default.createElement(
|
7357
7473
|
"svg",
|
7358
7474
|
{
|
7359
7475
|
stroke: "currentColor",
|
@@ -7363,13 +7479,13 @@ var ComparingPlans = (props) => {
|
|
7363
7479
|
height: "1em",
|
7364
7480
|
width: "1em"
|
7365
7481
|
},
|
7366
|
-
/* @__PURE__ */
|
7482
|
+
/* @__PURE__ */ import_react62.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" })
|
7367
7483
|
)
|
7368
7484
|
), props.plans.some(
|
7369
7485
|
(plan) => plan.features.some(
|
7370
7486
|
(feature) => feature.text === featureText && feature.soon
|
7371
7487
|
)
|
7372
|
-
) && /* @__PURE__ */
|
7488
|
+
) && /* @__PURE__ */ import_react62.default.createElement(
|
7373
7489
|
Chip,
|
7374
7490
|
{
|
7375
7491
|
label: ((_d = (_c = props.plans.find(
|
@@ -7383,26 +7499,26 @@ var ComparingPlans = (props) => {
|
|
7383
7499
|
const feature = plan.features.find(
|
7384
7500
|
(f) => f.text === featureText
|
7385
7501
|
);
|
7386
|
-
return /* @__PURE__ */
|
7502
|
+
return /* @__PURE__ */ import_react62.default.createElement(
|
7387
7503
|
"div",
|
7388
7504
|
{
|
7389
7505
|
key: planIndex,
|
7390
7506
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-text-center"
|
7391
7507
|
},
|
7392
|
-
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */
|
7508
|
+
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */ import_react62.default.createElement(CheckMark, { className: "hawa-text-foreground" }) : /* @__PURE__ */ import_react62.default.createElement(UncheckMark, { className: "hawa-text-foreground" })
|
7393
7509
|
);
|
7394
7510
|
})
|
7395
7511
|
);
|
7396
7512
|
})
|
7397
|
-
), props.showButtons && /* @__PURE__ */
|
7513
|
+
), props.showButtons && /* @__PURE__ */ import_react62.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_react62.default.createElement("div", { className: "hawa-flex hawa-items-center" }), props.plans.map((plan, i) => {
|
7398
7514
|
var _a;
|
7399
|
-
return /* @__PURE__ */
|
7515
|
+
return /* @__PURE__ */ import_react62.default.createElement(
|
7400
7516
|
"div",
|
7401
7517
|
{
|
7402
7518
|
key: i,
|
7403
7519
|
className: "hawa-flex hawa-items-center hawa-justify-center"
|
7404
7520
|
},
|
7405
|
-
/* @__PURE__ */
|
7521
|
+
/* @__PURE__ */ import_react62.default.createElement(
|
7406
7522
|
Button,
|
7407
7523
|
{
|
7408
7524
|
className: "hawa-w-full hawa-max-w-xs",
|
@@ -7426,15 +7542,15 @@ var ComparingPlans = (props) => {
|
|
7426
7542
|
};
|
7427
7543
|
|
7428
7544
|
// blocks/pricing/HorizontalPricing.tsx
|
7429
|
-
var
|
7545
|
+
var import_react63 = __toESM(require("react"));
|
7430
7546
|
var HorizontalPricing = (props) => {
|
7431
|
-
const [selectedCard, setSelectedCard] = (0,
|
7547
|
+
const [selectedCard, setSelectedCard] = (0, import_react63.useState)("");
|
7432
7548
|
let data = [
|
7433
7549
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
7434
7550
|
{ title: "business", price: "$99", cycle: "/mo" },
|
7435
7551
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
7436
7552
|
];
|
7437
|
-
return /* @__PURE__ */
|
7553
|
+
return /* @__PURE__ */ import_react63.default.createElement("div", { className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm" }, /* @__PURE__ */ import_react63.default.createElement("div", { className: "hawa-max-w-2xl " }, /* @__PURE__ */ import_react63.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ import_react63.default.createElement(
|
7438
7554
|
Radio,
|
7439
7555
|
{
|
7440
7556
|
name: "currency",
|
@@ -7442,7 +7558,7 @@ var HorizontalPricing = (props) => {
|
|
7442
7558
|
options: props.currencies,
|
7443
7559
|
defaultValue: props.currentCurrency
|
7444
7560
|
}
|
7445
|
-
), /* @__PURE__ */
|
7561
|
+
), /* @__PURE__ */ import_react63.default.createElement(
|
7446
7562
|
Radio,
|
7447
7563
|
{
|
7448
7564
|
name: "cycle",
|
@@ -7450,7 +7566,7 @@ var HorizontalPricing = (props) => {
|
|
7450
7566
|
options: props.billingCycles,
|
7451
7567
|
defaultValue: props.currentCycle
|
7452
7568
|
}
|
7453
|
-
)), data.map((d, i) => /* @__PURE__ */
|
7569
|
+
)), data.map((d, i) => /* @__PURE__ */ import_react63.default.createElement(
|
7454
7570
|
"label",
|
7455
7571
|
{
|
7456
7572
|
key: i,
|
@@ -7458,7 +7574,7 @@ var HorizontalPricing = (props) => {
|
|
7458
7574
|
className: "",
|
7459
7575
|
onClick: () => setSelectedCard(d.title)
|
7460
7576
|
},
|
7461
|
-
/* @__PURE__ */
|
7577
|
+
/* @__PURE__ */ import_react63.default.createElement(
|
7462
7578
|
"input",
|
7463
7579
|
{
|
7464
7580
|
type: "radio",
|
@@ -7467,7 +7583,7 @@ var HorizontalPricing = (props) => {
|
|
7467
7583
|
className: "hawa-peer hawa-appearance-none"
|
7468
7584
|
}
|
7469
7585
|
),
|
7470
|
-
/* @__PURE__ */
|
7586
|
+
/* @__PURE__ */ import_react63.default.createElement(
|
7471
7587
|
"div",
|
7472
7588
|
{
|
7473
7589
|
className: cn(
|
@@ -7475,18 +7591,18 @@ var HorizontalPricing = (props) => {
|
|
7475
7591
|
"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"
|
7476
7592
|
)
|
7477
7593
|
},
|
7478
|
-
/* @__PURE__ */
|
7594
|
+
/* @__PURE__ */ import_react63.default.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ import_react63.default.createElement(CheckIcons, null), /* @__PURE__ */ import_react63.default.createElement(
|
7479
7595
|
CardText,
|
7480
7596
|
{
|
7481
7597
|
title: "Enterprise",
|
7482
7598
|
subtitle: "For startups and new businesses"
|
7483
7599
|
}
|
7484
7600
|
)),
|
7485
|
-
/* @__PURE__ */
|
7601
|
+
/* @__PURE__ */ import_react63.default.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
7486
7602
|
)
|
7487
7603
|
))));
|
7488
7604
|
};
|
7489
|
-
var CheckIcons = () => /* @__PURE__ */
|
7605
|
+
var CheckIcons = () => /* @__PURE__ */ import_react63.default.createElement(import_react63.default.Fragment, null, /* @__PURE__ */ import_react63.default.createElement(
|
7490
7606
|
"svg",
|
7491
7607
|
{
|
7492
7608
|
fill: "none",
|
@@ -7495,7 +7611,7 @@ var CheckIcons = () => /* @__PURE__ */ import_react62.default.createElement(impo
|
|
7495
7611
|
stroke: "currentColor",
|
7496
7612
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
7497
7613
|
},
|
7498
|
-
/* @__PURE__ */
|
7614
|
+
/* @__PURE__ */ import_react63.default.createElement(
|
7499
7615
|
"path",
|
7500
7616
|
{
|
7501
7617
|
strokeLinecap: "round",
|
@@ -7503,14 +7619,14 @@ var CheckIcons = () => /* @__PURE__ */ import_react62.default.createElement(impo
|
|
7503
7619
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
7504
7620
|
}
|
7505
7621
|
)
|
7506
|
-
), /* @__PURE__ */
|
7622
|
+
), /* @__PURE__ */ import_react63.default.createElement(
|
7507
7623
|
"svg",
|
7508
7624
|
{
|
7509
7625
|
viewBox: "0 0 24 24",
|
7510
7626
|
fill: "currentColor",
|
7511
7627
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
7512
7628
|
},
|
7513
|
-
/* @__PURE__ */
|
7629
|
+
/* @__PURE__ */ import_react63.default.createElement(
|
7514
7630
|
"path",
|
7515
7631
|
{
|
7516
7632
|
fillRule: "evenodd",
|
@@ -7519,11 +7635,11 @@ var CheckIcons = () => /* @__PURE__ */ import_react62.default.createElement(impo
|
|
7519
7635
|
}
|
7520
7636
|
)
|
7521
7637
|
));
|
7522
|
-
var CardText = (props) => /* @__PURE__ */
|
7523
|
-
var CardPrice = (props) => /* @__PURE__ */
|
7638
|
+
var CardText = (props) => /* @__PURE__ */ import_react63.default.createElement("div", { className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start " }, /* @__PURE__ */ import_react63.default.createElement("h2", { className: "hawa-font-medium hawa-text-primary/90 sm:hawa-text-xl" }, props.title), /* @__PURE__ */ import_react63.default.createElement("p", { className: "hawa-text-sm hawa-text-primary/60" }, props.subtitle, " "));
|
7639
|
+
var CardPrice = (props) => /* @__PURE__ */ import_react63.default.createElement("h2", { className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-primary sm:hawa-text-2xl" }, props.amount, /* @__PURE__ */ import_react63.default.createElement("span", { className: "hawa-text-base hawa-font-medium hawa-text-neutral-400" }, props.cycle));
|
7524
7640
|
|
7525
7641
|
// blocks/Usage.tsx
|
7526
|
-
var
|
7642
|
+
var import_react64 = __toESM(require("react"));
|
7527
7643
|
|
7528
7644
|
// elements/progress/Progress.tsx
|
7529
7645
|
var React64 = __toESM(require("react"));
|
@@ -7551,7 +7667,7 @@ Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
7551
7667
|
// blocks/Usage.tsx
|
7552
7668
|
var Usage = (props) => {
|
7553
7669
|
var _a;
|
7554
|
-
return /* @__PURE__ */
|
7670
|
+
return /* @__PURE__ */ import_react64.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_react64.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, /* @__PURE__ */ import_react64.default.createElement("span", { className: "hawa-bg-white-200" }, props.title), props.tooltip && /* @__PURE__ */ import_react64.default.createElement(Tooltip, { content: props.tooltip }, /* @__PURE__ */ import_react64.default.createElement(
|
7555
7671
|
"svg",
|
7556
7672
|
{
|
7557
7673
|
stroke: "currentColor",
|
@@ -7562,8 +7678,8 @@ var Usage = (props) => {
|
|
7562
7678
|
height: "1em",
|
7563
7679
|
width: "1em"
|
7564
7680
|
},
|
7565
|
-
/* @__PURE__ */
|
7566
|
-
))), /* @__PURE__ */
|
7681
|
+
/* @__PURE__ */ import_react64.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" })
|
7682
|
+
))), /* @__PURE__ */ import_react64.default.createElement("div", { className: "hawa-bg-white-100 hawa-flex hawa-flex-row" }, /* @__PURE__ */ import_react64.default.createElement("div", null, props.currentUsage), /* @__PURE__ */ import_react64.default.createElement("div", null, " (", props.percent, "%)")), /* @__PURE__ */ import_react64.default.createElement(Progress, { value: (_a = props.percent) != null ? _a : 0 }));
|
7567
7683
|
};
|
7568
7684
|
// Annotate the CommonJS export names for ESM import in node:
|
7569
7685
|
0 && (module.exports = {
|