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