@sikka/hawa 0.23.2-next → 0.23.7-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/accordion/index.js +30 -2399
- package/dist/accordion/index.mjs +19 -461
- package/dist/alert/index.mjs +0 -1
- package/dist/appStores/index.js +75 -0
- package/dist/appStores/index.mjs +38 -0
- package/dist/avatar/index.mjs +118 -3
- package/dist/backToTop/index.mjs +102 -4
- package/dist/badge/index.js +127 -0
- package/dist/badge/index.mjs +84 -0
- package/dist/blocks/auth/index.js +1173 -3092
- package/dist/blocks/auth/index.mjs +16 -10
- package/dist/blocks/feedback/index.js +864 -2913
- package/dist/blocks/feedback/index.mjs +14 -8
- package/dist/blocks/index.js +5714 -5316
- package/dist/blocks/index.mjs +390 -45
- package/dist/blocks/misc/index.js +634 -2409
- package/dist/blocks/misc/index.mjs +14 -8
- package/dist/blocks/pricing/index.js +522 -524
- package/dist/blocks/pricing/index.mjs +1861 -45
- package/dist/breadcrumb/index.js +63 -0
- package/dist/breadcrumb/index.mjs +26 -0
- package/dist/card/index.mjs +83 -8
- package/dist/checkbox/index.mjs +138 -3
- package/dist/chip/index.js +129 -0
- package/dist/chip/index.mjs +8 -0
- package/dist/{chunk-X6PCWJYD.mjs → chunk-2R2QPJT7.mjs} +761 -1104
- package/dist/chunk-677VOLD4.mjs +464 -0
- package/dist/chunk-72HYR6WB.mjs +88 -0
- package/dist/chunk-A25EXELT.mjs +131 -0
- package/dist/{chunk-OE27DSIY.mjs → chunk-F6TKEDDP.mjs} +2 -4
- package/dist/{chunk-YFC2GSJ6.mjs → chunk-P2O6R3S6.mjs} +66 -5
- package/dist/{chunk-GXXX5UB4.mjs → chunk-QGKW5R5F.mjs} +59 -20
- package/dist/chunk-TR56G3NM.mjs +2350 -0
- package/dist/chunk-UAVBFK53.mjs +346 -0
- package/dist/combobox/index.mjs +153 -7
- package/dist/dataTable/index.mjs +355 -8
- package/dist/elements/index.js +800 -1148
- package/dist/elements/index.mjs +1 -11
- package/dist/fileDropzone/index.mjs +226 -4
- package/dist/index.js +1721 -1721
- package/dist/index.mjs +1663 -1663
- package/dist/layout/index.js +493 -510
- package/dist/layout/index.mjs +1 -1
- package/dist/loading/index.mjs +0 -1
- package/dist/logos/index.mjs +204 -3
- package/dist/navigationMenu/index.mjs +155 -13
- package/dist/phoneInput/index.js +2074 -0
- package/dist/phoneInput/index.mjs +1776 -0
- package/dist/pinInput/index.js +130 -0
- package/dist/pinInput/index.mjs +88 -0
- package/dist/progress/index.js +71 -0
- package/dist/progress/index.mjs +29 -0
- package/dist/radio/index.mjs +202 -4
- package/dist/scrollArea/index.js +90 -0
- package/dist/scrollArea/index.mjs +47 -0
- package/dist/select/index.mjs +1 -1
- package/dist/sheet/index.mjs +137 -12
- package/dist/sortButton/index.mjs +40 -4
- package/dist/stopPropagationWrapper/index.js +48 -0
- package/dist/stopPropagationWrapper/index.mjs +11 -0
- package/dist/switch/index.mjs +79 -3
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/index.mjs +68 -6
- package/dist/textarea/index.mjs +54 -4
- package/package.json +2 -2
- package/dist/Chip-DJ6ThZc_.d.ts +0 -21
- package/dist/Chip-eal8vwDz.d.mts +0 -21
- package/dist/accordion/index.d.mts +0 -42
- package/dist/accordion/index.d.ts +0 -42
- package/dist/alert/index.d.mts +0 -28
- package/dist/alert/index.d.ts +0 -28
- package/dist/avatar/index.d.mts +0 -15
- package/dist/avatar/index.d.ts +0 -15
- package/dist/backToTop/index.d.mts +0 -15
- package/dist/backToTop/index.d.ts +0 -15
- package/dist/button/index.d.mts +0 -16
- package/dist/button/index.d.ts +0 -16
- package/dist/card/index.d.mts +0 -17
- package/dist/card/index.d.ts +0 -17
- package/dist/checkbox/index.d.mts +0 -20
- package/dist/checkbox/index.d.ts +0 -20
- package/dist/chunk-BK5WF7UO.mjs +0 -231
- package/dist/chunk-CXWYC6FS.mjs +0 -360
- package/dist/chunk-D2USGMDT.mjs +0 -208
- package/dist/chunk-DX4SLF2L.mjs +0 -45
- package/dist/chunk-ENNSA4VR.mjs +0 -5566
- package/dist/chunk-GXSYCLZZ.mjs +0 -158
- package/dist/chunk-IQPGAHUR.mjs +0 -107
- package/dist/chunk-POT2IP62.mjs +0 -123
- package/dist/chunk-TWDZB2VH.mjs +0 -151
- package/dist/chunk-VBTYVVA7.mjs +0 -93
- package/dist/chunk-VCGW5DIP.mjs +0 -170
- package/dist/chunk-X3SMPIA3.mjs +0 -0
- package/dist/chunk-XA646BZ2.mjs +0 -143
- package/dist/chunk-ZCUUQ5VV.mjs +0 -84
- package/dist/combobox/index.d.mts +0 -32
- package/dist/combobox/index.d.ts +0 -32
- package/dist/command/index.d.mts +0 -48
- package/dist/command/index.d.ts +0 -48
- package/dist/commonTypes-gbO4hPli.d.mts +0 -7
- package/dist/commonTypes-gbO4hPli.d.ts +0 -7
- package/dist/dataTable/index.d.mts +0 -39
- package/dist/dataTable/index.d.ts +0 -39
- package/dist/dialog/index.d.mts +0 -57
- package/dist/dialog/index.d.ts +0 -57
- package/dist/dropdownMenu/index.d.mts +0 -95
- package/dist/dropdownMenu/index.d.ts +0 -95
- package/dist/fileDropzone/index.d.mts +0 -37
- package/dist/fileDropzone/index.d.ts +0 -37
- package/dist/input/index.d.mts +0 -36
- package/dist/input/index.d.ts +0 -36
- package/dist/label/index.d.mts +0 -12
- package/dist/label/index.d.ts +0 -12
- package/dist/loading/index.d.mts +0 -15
- package/dist/loading/index.d.ts +0 -15
- package/dist/logos/index.d.mts +0 -27
- package/dist/logos/index.d.ts +0 -27
- package/dist/navigationMenu/index.d.mts +0 -39
- package/dist/navigationMenu/index.d.ts +0 -39
- package/dist/popover/index.d.mts +0 -23
- package/dist/popover/index.d.ts +0 -23
- package/dist/radio/index.d.mts +0 -28
- package/dist/radio/index.d.ts +0 -28
- package/dist/select/index.d.mts +0 -43
- package/dist/select/index.d.ts +0 -43
- package/dist/sheet/index.d.mts +0 -30
- package/dist/sheet/index.d.ts +0 -30
- package/dist/skeleton/index.d.mts +0 -10
- package/dist/skeleton/index.d.ts +0 -10
- package/dist/sortButton/index.d.mts +0 -10
- package/dist/sortButton/index.d.ts +0 -10
- package/dist/splitButton/index.d.mts +0 -15
- package/dist/splitButton/index.d.ts +0 -15
- package/dist/switch/index.d.mts +0 -12
- package/dist/switch/index.d.ts +0 -12
- package/dist/table/index.d.mts +0 -21
- package/dist/table/index.d.ts +0 -21
- package/dist/tabs/index.d.mts +0 -16
- package/dist/tabs/index.d.ts +0 -16
- package/dist/textarea/index.d.mts +0 -17
- package/dist/textarea/index.d.ts +0 -17
- package/dist/tooltip/index.d.mts +0 -26
- package/dist/tooltip/index.d.ts +0 -26
- /package/dist/{chunk-A7OPD7H7.mjs → chunk-B6UCD4GP.mjs} +0 -0
- /package/dist/{chunk-O2ALK7UE.mjs → chunk-Z4M72OD3.mjs} +0 -0
package/dist/blocks/index.mjs
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
CheckMark,
|
|
12
12
|
Checkbox,
|
|
13
13
|
Chip,
|
|
14
|
+
DropdownMenu,
|
|
14
15
|
EyeIcon,
|
|
15
16
|
GoodEmoji,
|
|
16
17
|
HiddenEyeIcon,
|
|
@@ -21,11 +22,12 @@ import {
|
|
|
21
22
|
PhoneInput,
|
|
22
23
|
PinInput,
|
|
23
24
|
Popover,
|
|
24
|
-
PricingCard,
|
|
25
25
|
Progress,
|
|
26
26
|
Radio,
|
|
27
27
|
ScrollArea,
|
|
28
28
|
Select,
|
|
29
|
+
Separator,
|
|
30
|
+
Skeleton,
|
|
29
31
|
StopPropagationWrapper,
|
|
30
32
|
Tabs,
|
|
31
33
|
TabsContent,
|
|
@@ -37,7 +39,7 @@ import {
|
|
|
37
39
|
VeryBadEmoji,
|
|
38
40
|
VeryGoodEmoji,
|
|
39
41
|
cn
|
|
40
|
-
} from "../chunk-
|
|
42
|
+
} from "../chunk-2R2QPJT7.mjs";
|
|
41
43
|
import "../chunk-343SRWR4.mjs";
|
|
42
44
|
|
|
43
45
|
// components/blocks/auth/LoginForm.tsx
|
|
@@ -1817,13 +1819,351 @@ var ContactForm = ({
|
|
|
1817
1819
|
};
|
|
1818
1820
|
|
|
1819
1821
|
// components/blocks/pricing/PricingPlans.tsx
|
|
1820
|
-
import
|
|
1822
|
+
import React26 from "react";
|
|
1823
|
+
|
|
1824
|
+
// components/blocks/cards/ActionCard.tsx
|
|
1825
|
+
import React21, { useState as useState8 } from "react";
|
|
1826
|
+
var ActionCard = (props) => {
|
|
1827
|
+
const [hovered, setHovered] = useState8(false);
|
|
1828
|
+
return /* @__PURE__ */ React21.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ React21.createElement(
|
|
1829
|
+
"div",
|
|
1830
|
+
{
|
|
1831
|
+
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",
|
|
1832
|
+
style: {
|
|
1833
|
+
backgroundImage: `url(${props.blank ? "" : props.cardImage})`
|
|
1834
|
+
},
|
|
1835
|
+
onMouseEnter: () => setHovered(true),
|
|
1836
|
+
onMouseLeave: () => setHovered(false)
|
|
1837
|
+
},
|
|
1838
|
+
props.blank ? /* @__PURE__ */ React21.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center " }, /* @__PURE__ */ React21.createElement(
|
|
1839
|
+
"svg",
|
|
1840
|
+
{
|
|
1841
|
+
className: "hawa-h-10 hawa-w-10 hawa-text-foreground",
|
|
1842
|
+
stroke: "currentColor",
|
|
1843
|
+
fill: "currentColor",
|
|
1844
|
+
strokeWidth: "0",
|
|
1845
|
+
viewBox: "0 0 24 24",
|
|
1846
|
+
height: "1em",
|
|
1847
|
+
width: "1em",
|
|
1848
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1849
|
+
},
|
|
1850
|
+
/* @__PURE__ */ React21.createElement("path", { d: "M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z" })
|
|
1851
|
+
)) : /* @__PURE__ */ React21.createElement("div", { className: "hawa-absolute hawa-inset-0 hawa-rounded hawa-bg-black hawa-opacity-50" }),
|
|
1852
|
+
/* @__PURE__ */ React21.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),
|
|
1853
|
+
!props.blank && /* @__PURE__ */ React21.createElement("div", { className: "hawa-relative hawa-p-4" }, /* @__PURE__ */ React21.createElement("h1", { className: "hawa-text-white" }, props.title), /* @__PURE__ */ React21.createElement("p", { className: "hawa-text-white" }, props.subtitle))
|
|
1854
|
+
), /* @__PURE__ */ React21.createElement(
|
|
1855
|
+
"div",
|
|
1856
|
+
{
|
|
1857
|
+
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"}`
|
|
1858
|
+
},
|
|
1859
|
+
props.bottomElement
|
|
1860
|
+
));
|
|
1861
|
+
};
|
|
1862
|
+
|
|
1863
|
+
// components/blocks/cards/AdCard.tsx
|
|
1864
|
+
import React22, { useState as useState9, useEffect as useEffect3, useRef as useRef3 } from "react";
|
|
1865
|
+
var AdCard = ({
|
|
1866
|
+
orientation = "vertical",
|
|
1867
|
+
...props
|
|
1868
|
+
}) => {
|
|
1869
|
+
const adRef = useRef3(null);
|
|
1870
|
+
const [closed, setClosed] = useState9(false);
|
|
1871
|
+
let duration = 0;
|
|
1872
|
+
useEffect3(() => {
|
|
1873
|
+
if (duration) {
|
|
1874
|
+
const timeoutHide = setTimeout(() => {
|
|
1875
|
+
setClosed(true);
|
|
1876
|
+
}, duration);
|
|
1877
|
+
const timeoutDestroy = setTimeout(() => {
|
|
1878
|
+
setClosed(true);
|
|
1879
|
+
if (adRef.current) {
|
|
1880
|
+
adRef.current.removeChild(adRef.current.children[0]);
|
|
1881
|
+
}
|
|
1882
|
+
}, duration + 1e3);
|
|
1883
|
+
return () => {
|
|
1884
|
+
clearTimeout(timeoutHide);
|
|
1885
|
+
clearTimeout(timeoutDestroy);
|
|
1886
|
+
};
|
|
1887
|
+
}
|
|
1888
|
+
}, [duration]);
|
|
1889
|
+
let cardStyles = {
|
|
1890
|
+
horizontal: "hawa-flex hawa-flex-row hawa-max-w-xl hawa-rounded hawa-border hawa-bg-card hawa-p-2 hawa-gap-2 hawa-items-center hawa-relative ",
|
|
1891
|
+
vertical: "hawa-flex hawa-flex-col hawa-max-w-[200px] hawa-justify-start hawa-rounded hawa-border hawa-bg-card hawa-gap-2 hawa-p-2 hawa-relative"
|
|
1892
|
+
};
|
|
1893
|
+
let imageStyles = {
|
|
1894
|
+
horizontal: "hawa-w-auto hawa-h-full hawa-bg-blue-500 hawa-rounded-inner",
|
|
1895
|
+
vertical: "hawa-bg-blue-500 hawa-rounded-inner hawa-w-auto "
|
|
1896
|
+
};
|
|
1897
|
+
return /* @__PURE__ */ React22.createElement("div", { ref: adRef }, /* @__PURE__ */ React22.createElement(
|
|
1898
|
+
"div",
|
|
1899
|
+
{
|
|
1900
|
+
className: cn(cardStyles[orientation], props.className),
|
|
1901
|
+
onClick: props.handleClick
|
|
1902
|
+
},
|
|
1903
|
+
/* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-aspect-square hawa-w-full hawa-max-w-fit hawa-items-start " }, /* @__PURE__ */ React22.createElement(
|
|
1904
|
+
"img",
|
|
1905
|
+
{
|
|
1906
|
+
src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
|
|
1907
|
+
className: imageStyles[orientation]
|
|
1908
|
+
}
|
|
1909
|
+
)),
|
|
1910
|
+
/* @__PURE__ */ React22.createElement("div", { className: "hawa-w-full hawa-text-xs" }, /* @__PURE__ */ React22.createElement("div", { className: "hawa-font-bold" }, props.title), /* @__PURE__ */ React22.createElement("div", { className: "hawa-text-[12px]" }, props.description)),
|
|
1911
|
+
props.canHide && /* @__PURE__ */ React22.createElement(
|
|
1912
|
+
"span",
|
|
1913
|
+
{
|
|
1914
|
+
onClick: (e) => {
|
|
1915
|
+
e.stopPropagation();
|
|
1916
|
+
if (props.canHide) {
|
|
1917
|
+
setClosed(true);
|
|
1918
|
+
setTimeout(() => {
|
|
1919
|
+
if (adRef.current) {
|
|
1920
|
+
adRef.current.removeChild(adRef.current.children[0]);
|
|
1921
|
+
}
|
|
1922
|
+
}, 200);
|
|
1923
|
+
} else {
|
|
1924
|
+
if (props.handleCantHide) {
|
|
1925
|
+
props.handleCantHide();
|
|
1926
|
+
}
|
|
1927
|
+
}
|
|
1928
|
+
},
|
|
1929
|
+
className: "hawa-absolute hawa-right-0 hawa-top-0 hawa-h-fit hawa-cursor-pointer hawa-select-none hawa-rounded-bl-lg hawa-rounded-tr-lg hawa-bg-primary/50 hawa-px-2.5 hawa-py-0.5 hawa-text-[10px] hawa-font-semibold hawa-text-primary-foreground"
|
|
1930
|
+
},
|
|
1931
|
+
"Hide"
|
|
1932
|
+
)
|
|
1933
|
+
));
|
|
1934
|
+
};
|
|
1935
|
+
|
|
1936
|
+
// components/blocks/cards/PricingCard.tsx
|
|
1937
|
+
import React23 from "react";
|
|
1938
|
+
var PricingCard = ({
|
|
1939
|
+
size = "medium",
|
|
1940
|
+
direction = "ltr",
|
|
1941
|
+
endButton = true,
|
|
1942
|
+
recommended,
|
|
1943
|
+
currentPlan = false,
|
|
1944
|
+
...props
|
|
1945
|
+
}) => {
|
|
1946
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
1947
|
+
let cardSizes = {
|
|
1948
|
+
small: "hawa-w-full hawa-max-w-sm hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
|
1949
|
+
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
|
1950
|
+
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
|
1951
|
+
};
|
|
1952
|
+
return /* @__PURE__ */ React23.createElement(
|
|
1953
|
+
Card,
|
|
1954
|
+
{
|
|
1955
|
+
dir: direction,
|
|
1956
|
+
className: cn(
|
|
1957
|
+
currentPlan ? "hawa-border-2 hawa-border-primary dark:hawa-border-primary/70 " : "hawa-border",
|
|
1958
|
+
cardSizes[size],
|
|
1959
|
+
"hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-gap-4 hawa-p-4",
|
|
1960
|
+
recommended ? "hawa-rounded hawa-rounded-t-none" : "hawa-rounded"
|
|
1961
|
+
)
|
|
1962
|
+
},
|
|
1963
|
+
recommended && /* @__PURE__ */ React23.createElement(
|
|
1964
|
+
"div",
|
|
1965
|
+
{
|
|
1966
|
+
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",
|
|
1967
|
+
style: { width: "calc(100% + 2px)" }
|
|
1968
|
+
},
|
|
1969
|
+
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
|
1970
|
+
),
|
|
1971
|
+
/* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React23.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ React23.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ React23.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, (_c = props.texts) == null ? void 0 : _c.subtitle), props.discount && /* @__PURE__ */ React23.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ React23.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ React23.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.isLoading ? /* @__PURE__ */ React23.createElement(Skeleton, { className: "hawa-h-[48px] hawa-w-full hawa-max-w-[200px] hawa-p-0 " }) : /* @__PURE__ */ React23.createElement(React23.Fragment, null, props.noPrice ? /* @__PURE__ */ React23.createElement("div", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, ((_d = props.texts) == null ? void 0 : _d.priceless) || "Contact Us") : /* @__PURE__ */ React23.createElement(React23.Fragment, null, /* @__PURE__ */ React23.createElement(React23.Fragment, null, /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-end hawa-gap-2" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ React23.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + ((_e = props.texts) == null ? void 0 : _e.currencyText)), /* @__PURE__ */ React23.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ React23.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, (_f = props.texts) == null ? void 0 : _f.currencyText)), /* @__PURE__ */ React23.createElement("span", { className: "hawa-ml-1 hawa-whitespace-nowrap hawa-text-xl hawa-font-normal hawa-text-primary/70" }, "/ ", (_g = props.texts) == null ? void 0 : _g.cycleText)))), endButton && /* @__PURE__ */ React23.createElement(Separator, null), /* @__PURE__ */ React23.createElement(
|
|
1972
|
+
"div",
|
|
1973
|
+
{
|
|
1974
|
+
className: cn(
|
|
1975
|
+
"hawa-flex hawa-h-full hawa-justify-between hawa-gap-4",
|
|
1976
|
+
endButton ? "hawa-flex-col" : "hawa-flex-col-reverse"
|
|
1977
|
+
)
|
|
1978
|
+
},
|
|
1979
|
+
props.features && /* @__PURE__ */ React23.createElement("ul", { role: "list", className: "hawa-space-y-0 hawa-overflow-x-auto" }, (_h = props.features) == null ? void 0 : _h.map((feature, o) => {
|
|
1980
|
+
return /* @__PURE__ */ React23.createElement(
|
|
1981
|
+
"li",
|
|
1982
|
+
{
|
|
1983
|
+
key: o,
|
|
1984
|
+
className: cn(
|
|
1985
|
+
"hawa-flex hawa-flex-row hawa-justify-between hawa-gap-2",
|
|
1986
|
+
!feature.included && "hawa-line-through"
|
|
1987
|
+
)
|
|
1988
|
+
},
|
|
1989
|
+
/* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center" }, feature.included ? /* @__PURE__ */ React23.createElement(
|
|
1990
|
+
"svg",
|
|
1991
|
+
{
|
|
1992
|
+
"aria-label": "Check Icon",
|
|
1993
|
+
"aria-hidden": "true",
|
|
1994
|
+
className: "hawa-m-2 hawa-h-5 hawa-w-5 hawa-flex-shrink-0 hawa-text-primary",
|
|
1995
|
+
fill: "currentColor",
|
|
1996
|
+
viewBox: "0 0 20 20"
|
|
1997
|
+
},
|
|
1998
|
+
/* @__PURE__ */ React23.createElement(
|
|
1999
|
+
"path",
|
|
2000
|
+
{
|
|
2001
|
+
fillRule: "evenodd",
|
|
2002
|
+
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
2003
|
+
clipRule: "evenodd"
|
|
2004
|
+
}
|
|
2005
|
+
)
|
|
2006
|
+
) : /* @__PURE__ */ React23.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ React23.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__ */ React23.createElement(Chip, { label: "soon", color: "oceanic", size: "small" }))),
|
|
2007
|
+
feature.hint && /* @__PURE__ */ React23.createElement(Tooltip, { content: feature.hint, side: feature.hintSide }, /* @__PURE__ */ React23.createElement(
|
|
2008
|
+
"svg",
|
|
2009
|
+
{
|
|
2010
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2011
|
+
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
|
2012
|
+
viewBox: "0 0 24 24",
|
|
2013
|
+
fill: "none",
|
|
2014
|
+
stroke: "currentColor",
|
|
2015
|
+
strokeWidth: "2",
|
|
2016
|
+
strokeLinecap: "round",
|
|
2017
|
+
strokeLinejoin: "round"
|
|
2018
|
+
},
|
|
2019
|
+
/* @__PURE__ */ React23.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2020
|
+
/* @__PURE__ */ React23.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
|
2021
|
+
/* @__PURE__ */ React23.createElement("path", { d: "M12 17h.01" })
|
|
2022
|
+
))
|
|
2023
|
+
);
|
|
2024
|
+
})),
|
|
2025
|
+
/* @__PURE__ */ React23.createElement(
|
|
2026
|
+
Button,
|
|
2027
|
+
{
|
|
2028
|
+
onClick: props.onPlanClicked,
|
|
2029
|
+
disabled: currentPlan,
|
|
2030
|
+
className: "hawa-w-full"
|
|
2031
|
+
},
|
|
2032
|
+
(_i = props.texts) == null ? void 0 : _i.buttonText
|
|
2033
|
+
)
|
|
2034
|
+
))
|
|
2035
|
+
);
|
|
2036
|
+
};
|
|
2037
|
+
|
|
2038
|
+
// components/blocks/cards/ItemCard.tsx
|
|
2039
|
+
import React24, { useEffect as useEffect4, useState as useState10 } from "react";
|
|
2040
|
+
var ItemCard = ({
|
|
2041
|
+
actions,
|
|
2042
|
+
counts,
|
|
2043
|
+
content,
|
|
2044
|
+
headerActions,
|
|
2045
|
+
clickableImage,
|
|
2046
|
+
onImageClick,
|
|
2047
|
+
clickableImageActionText,
|
|
2048
|
+
clickableImageActionIcon,
|
|
2049
|
+
header,
|
|
2050
|
+
cardImage,
|
|
2051
|
+
orientation = "vertical",
|
|
2052
|
+
...props
|
|
2053
|
+
}) => {
|
|
2054
|
+
let defaultStyle = "hawa-block hawa-rounded hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm hawa-transition-all";
|
|
2055
|
+
let orientationStyles = {
|
|
2056
|
+
vertical: "hawa-max-w-sm",
|
|
2057
|
+
horizontal: "hawa-flex hawa-flex-row hawa-w-full"
|
|
2058
|
+
};
|
|
2059
|
+
let imageStyles = {
|
|
2060
|
+
vertical: "hawa-h-auto hawa-max-h-56 hawa-w-full hawa-rounded-t-lg hawa-object-cover",
|
|
2061
|
+
horizontal: (
|
|
2062
|
+
// "h-auto w-full rounded-l-lg object-cover md:h-auto md:w-48 md:rounded-none md:rounded-l-lg",
|
|
2063
|
+
// "h-full w-full rounded-l-lg object-cover md:w-48 md:rounded-none md:rounded-l-lg",
|
|
2064
|
+
"hawa-h-full hawa-w-48 hawa-rounded-l hawa-object-cover"
|
|
2065
|
+
)
|
|
2066
|
+
};
|
|
2067
|
+
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";
|
|
2068
|
+
const [openActionHeader, setOpenActionHeader] = useState10(false);
|
|
2069
|
+
function handleOpenActionHeader(e) {
|
|
2070
|
+
e.stopPropagation();
|
|
2071
|
+
setOpenActionHeader(!openActionHeader);
|
|
2072
|
+
}
|
|
2073
|
+
useEffect4(() => {
|
|
2074
|
+
window.onclick = () => {
|
|
2075
|
+
if (openActionHeader) {
|
|
2076
|
+
setOpenActionHeader(false);
|
|
2077
|
+
}
|
|
2078
|
+
};
|
|
2079
|
+
return () => window.onclick = null;
|
|
2080
|
+
}, [openActionHeader]);
|
|
2081
|
+
return /* @__PURE__ */ React24.createElement(
|
|
2082
|
+
"div",
|
|
2083
|
+
{
|
|
2084
|
+
className: cn(
|
|
2085
|
+
defaultStyle,
|
|
2086
|
+
props.onCardClick && " hawa-cursor-pointer hover:hawa-shadow-lg",
|
|
2087
|
+
orientationStyles[orientation],
|
|
2088
|
+
props.className
|
|
2089
|
+
),
|
|
2090
|
+
onClick: (e) => {
|
|
2091
|
+
e.stopPropagation();
|
|
2092
|
+
if (props.onCardClick) {
|
|
2093
|
+
props.onCardClick(e);
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
},
|
|
2097
|
+
cardImage && /* @__PURE__ */ React24.createElement("div", { className: "hawa-group hawa-relative hawa-overflow-clip" }, /* @__PURE__ */ React24.createElement(
|
|
2098
|
+
"img",
|
|
2099
|
+
{
|
|
2100
|
+
src: cardImage,
|
|
2101
|
+
className: cn(
|
|
2102
|
+
imageStyles[orientation],
|
|
2103
|
+
clickableImage ? "hawa-overflow-clip hawa-transition-all group-hover:hawa-blur-lg" : ""
|
|
2104
|
+
)
|
|
2105
|
+
}
|
|
2106
|
+
), clickableImage && /* @__PURE__ */ React24.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React24.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__ */ React24.createElement(
|
|
2107
|
+
Button,
|
|
2108
|
+
{
|
|
2109
|
+
variant: "secondary",
|
|
2110
|
+
onClick: onImageClick,
|
|
2111
|
+
className: "hawa-flex hawa-flex-row hawa-gap-2"
|
|
2112
|
+
},
|
|
2113
|
+
clickableImageActionIcon,
|
|
2114
|
+
clickableImageActionText || "Click"
|
|
2115
|
+
)))),
|
|
2116
|
+
/* @__PURE__ */ React24.createElement("div", { className: "hawa-relative hawa-w-full hawa-p-4 xs:hawa-p-6 xs:hawa-px-2 xs:hawa-pb-2" }, headerActions && /* @__PURE__ */ React24.createElement("div", { className: "hawa-absolute hawa-right-0 hawa-top-0 hawa-flex hawa-justify-end hawa-pr-3 hawa-pt-3" }, /* @__PURE__ */ React24.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React24.createElement(
|
|
2117
|
+
DropdownMenu,
|
|
2118
|
+
{
|
|
2119
|
+
items: headerActions,
|
|
2120
|
+
trigger: /* @__PURE__ */ React24.createElement(
|
|
2121
|
+
Button,
|
|
2122
|
+
{
|
|
2123
|
+
variant: "ghost",
|
|
2124
|
+
size: "smallIcon",
|
|
2125
|
+
onClick: handleOpenActionHeader
|
|
2126
|
+
},
|
|
2127
|
+
/* @__PURE__ */ React24.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"),
|
|
2128
|
+
/* @__PURE__ */ React24.createElement(
|
|
2129
|
+
"svg",
|
|
2130
|
+
{
|
|
2131
|
+
className: "hawa-h-5 hawa-w-5",
|
|
2132
|
+
"aria-hidden": "true",
|
|
2133
|
+
fill: "currentColor",
|
|
2134
|
+
viewBox: "0 0 20 20"
|
|
2135
|
+
},
|
|
2136
|
+
/* @__PURE__ */ React24.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" })
|
|
2137
|
+
)
|
|
2138
|
+
)
|
|
2139
|
+
}
|
|
2140
|
+
))), /* @__PURE__ */ React24.createElement("div", { className: " hawa-mx-2" }, header && /* @__PURE__ */ React24.createElement("h5", { className: "hawa-mb-2 hawa-text-2xl hawa-font-bold hawa-tracking-tight " }, header), content && /* @__PURE__ */ React24.createElement("span", { className: "hawa-w-full hawa-font-normal " }, content)), actions || counts ? /* @__PURE__ */ React24.createElement(
|
|
2141
|
+
"div",
|
|
2142
|
+
{
|
|
2143
|
+
className: cn(
|
|
2144
|
+
"hawa-mt-3 hawa-flex hawa-flex-col hawa-items-center hawa-rounded-b-lg dark:hawa-text-white xs:hawa-flex-row ",
|
|
2145
|
+
actions && counts ? "hawa-justify-between" : "hawa-justify-end"
|
|
2146
|
+
)
|
|
2147
|
+
},
|
|
2148
|
+
counts,
|
|
2149
|
+
/* @__PURE__ */ React24.createElement(StopPropagationWrapper, null, actions)
|
|
2150
|
+
) : null)
|
|
2151
|
+
);
|
|
2152
|
+
};
|
|
2153
|
+
|
|
2154
|
+
// components/blocks/cards/LandingCard.tsx
|
|
2155
|
+
import React25 from "react";
|
|
2156
|
+
var LandingCard = (props) => {
|
|
2157
|
+
return /* @__PURE__ */ React25.createElement(Card, { className: props.className }, /* @__PURE__ */ React25.createElement(CardHeader, null, props.icon, /* @__PURE__ */ React25.createElement(CardTitle, null, props.title), /* @__PURE__ */ React25.createElement(CardDescription, null, props.subtitle)));
|
|
2158
|
+
};
|
|
2159
|
+
|
|
2160
|
+
// components/blocks/pricing/PricingPlans.tsx
|
|
1821
2161
|
var PricingPlans = ({
|
|
1822
2162
|
mainContainerProps,
|
|
1823
2163
|
cardsContainerProps,
|
|
1824
2164
|
...props
|
|
1825
2165
|
}) => {
|
|
1826
|
-
return /* @__PURE__ */
|
|
2166
|
+
return /* @__PURE__ */ React26.createElement("div", { ...mainContainerProps }, /* @__PURE__ */ React26.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ React26.createElement(
|
|
1827
2167
|
Radio,
|
|
1828
2168
|
{
|
|
1829
2169
|
design: "tabs",
|
|
@@ -1835,7 +2175,7 @@ var PricingPlans = ({
|
|
|
1835
2175
|
}
|
|
1836
2176
|
}
|
|
1837
2177
|
}
|
|
1838
|
-
), /* @__PURE__ */
|
|
2178
|
+
), /* @__PURE__ */ React26.createElement(
|
|
1839
2179
|
Radio,
|
|
1840
2180
|
{
|
|
1841
2181
|
design: "tabs",
|
|
@@ -1847,7 +2187,7 @@ var PricingPlans = ({
|
|
|
1847
2187
|
}
|
|
1848
2188
|
}
|
|
1849
2189
|
}
|
|
1850
|
-
)), /* @__PURE__ */
|
|
2190
|
+
)), /* @__PURE__ */ React26.createElement(
|
|
1851
2191
|
"div",
|
|
1852
2192
|
{
|
|
1853
2193
|
className: "hawa-inline-grid hawa-w-full hawa-grid-cols-[repeat(auto-fit,_minmax(300px,_1fr))] hawa-gap-4",
|
|
@@ -1855,7 +2195,7 @@ var PricingPlans = ({
|
|
|
1855
2195
|
},
|
|
1856
2196
|
props.plans.map((plan, index) => {
|
|
1857
2197
|
var _a, _b;
|
|
1858
|
-
return /* @__PURE__ */
|
|
2198
|
+
return /* @__PURE__ */ React26.createElement(
|
|
1859
2199
|
PricingCard,
|
|
1860
2200
|
{
|
|
1861
2201
|
key: index,
|
|
@@ -1885,7 +2225,7 @@ var PricingPlans = ({
|
|
|
1885
2225
|
};
|
|
1886
2226
|
|
|
1887
2227
|
// components/blocks/pricing/ComparingPlans.tsx
|
|
1888
|
-
import
|
|
2228
|
+
import React27 from "react";
|
|
1889
2229
|
var ComparingPlans = (props) => {
|
|
1890
2230
|
const uniqueFeatures = Array.from(
|
|
1891
2231
|
new Set(
|
|
@@ -1894,7 +2234,7 @@ var ComparingPlans = (props) => {
|
|
|
1894
2234
|
)
|
|
1895
2235
|
)
|
|
1896
2236
|
);
|
|
1897
|
-
return /* @__PURE__ */
|
|
2237
|
+
return /* @__PURE__ */ React27.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ React27.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__ */ React27.createElement(
|
|
1898
2238
|
Radio,
|
|
1899
2239
|
{
|
|
1900
2240
|
tabsContainerClassName: "hawa-w-full sm:hawa-max-w-fit",
|
|
@@ -1908,7 +2248,7 @@ var ComparingPlans = (props) => {
|
|
|
1908
2248
|
}
|
|
1909
2249
|
}
|
|
1910
2250
|
}
|
|
1911
|
-
), /* @__PURE__ */
|
|
2251
|
+
), /* @__PURE__ */ React27.createElement(
|
|
1912
2252
|
Radio,
|
|
1913
2253
|
{
|
|
1914
2254
|
tabsContainerClassName: "hawa-w-full sm:hawa-max-w-fit",
|
|
@@ -1922,7 +2262,7 @@ var ComparingPlans = (props) => {
|
|
|
1922
2262
|
}
|
|
1923
2263
|
}
|
|
1924
2264
|
}
|
|
1925
|
-
)), /* @__PURE__ */
|
|
2265
|
+
)), /* @__PURE__ */ React27.createElement(
|
|
1926
2266
|
"div",
|
|
1927
2267
|
{
|
|
1928
2268
|
className: cn(
|
|
@@ -1933,16 +2273,16 @@ var ComparingPlans = (props) => {
|
|
|
1933
2273
|
top: props.topPosition || 0
|
|
1934
2274
|
}
|
|
1935
2275
|
},
|
|
1936
|
-
/* @__PURE__ */
|
|
1937
|
-
props.plans.map((plan, i) => /* @__PURE__ */
|
|
2276
|
+
/* @__PURE__ */ React27.createElement("div", { className: "hawa-flex hawa-items-center" }),
|
|
2277
|
+
props.plans.map((plan, i) => /* @__PURE__ */ React27.createElement(
|
|
1938
2278
|
"div",
|
|
1939
2279
|
{
|
|
1940
2280
|
key: i,
|
|
1941
2281
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2"
|
|
1942
2282
|
},
|
|
1943
|
-
/* @__PURE__ */
|
|
2283
|
+
/* @__PURE__ */ React27.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React27.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React27.createElement("span", { className: "hawa-text-md hawa-font-bold " }, plan.texts.title), /* @__PURE__ */ React27.createElement("span", { className: "hawa-text-md hawa-font-normal hawa-text-muted-foreground " }, plan.texts.subtitle)), /* @__PURE__ */ React27.createElement("div", { className: " hawa-flex hawa-items-baseline " }, /* @__PURE__ */ React27.createElement(React27.Fragment, null, /* @__PURE__ */ React27.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, plan.price), /* @__PURE__ */ React27.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ React27.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal " }, "/ ", plan.texts.cycleText)))
|
|
1944
2284
|
))
|
|
1945
|
-
), /* @__PURE__ */
|
|
2285
|
+
), /* @__PURE__ */ React27.createElement(
|
|
1946
2286
|
ScrollArea,
|
|
1947
2287
|
{
|
|
1948
2288
|
className: "hawa-h-fit hawa-rounded hawa-rounded-t-none hawa-border hawa-border-t-0 hawa-bg-background",
|
|
@@ -1950,7 +2290,7 @@ var ComparingPlans = (props) => {
|
|
|
1950
2290
|
},
|
|
1951
2291
|
uniqueFeatures.map((featureText, featureIndex) => {
|
|
1952
2292
|
var _a, _b, _c, _d;
|
|
1953
|
-
return /* @__PURE__ */
|
|
2293
|
+
return /* @__PURE__ */ React27.createElement(
|
|
1954
2294
|
"div",
|
|
1955
2295
|
{
|
|
1956
2296
|
key: featureIndex,
|
|
@@ -1959,11 +2299,11 @@ var ComparingPlans = (props) => {
|
|
|
1959
2299
|
featureIndex === 0 ? "" : "hawa-border-t"
|
|
1960
2300
|
)
|
|
1961
2301
|
},
|
|
1962
|
-
/* @__PURE__ */
|
|
2302
|
+
/* @__PURE__ */ React27.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-foreground" }, featureText, props.plans.some(
|
|
1963
2303
|
(plan) => plan.features.some(
|
|
1964
2304
|
(feature) => feature.text === featureText && feature.hint
|
|
1965
2305
|
)
|
|
1966
|
-
) && /* @__PURE__ */
|
|
2306
|
+
) && /* @__PURE__ */ React27.createElement(
|
|
1967
2307
|
Tooltip,
|
|
1968
2308
|
{
|
|
1969
2309
|
side: "right",
|
|
@@ -1978,7 +2318,7 @@ var ComparingPlans = (props) => {
|
|
|
1978
2318
|
(feature) => feature.text === featureText
|
|
1979
2319
|
)) == null ? void 0 : _b.hint
|
|
1980
2320
|
},
|
|
1981
|
-
/* @__PURE__ */
|
|
2321
|
+
/* @__PURE__ */ React27.createElement(
|
|
1982
2322
|
"svg",
|
|
1983
2323
|
{
|
|
1984
2324
|
stroke: "currentColor",
|
|
@@ -1988,13 +2328,13 @@ var ComparingPlans = (props) => {
|
|
|
1988
2328
|
height: "1em",
|
|
1989
2329
|
width: "1em"
|
|
1990
2330
|
},
|
|
1991
|
-
/* @__PURE__ */
|
|
2331
|
+
/* @__PURE__ */ React27.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" })
|
|
1992
2332
|
)
|
|
1993
2333
|
), props.plans.some(
|
|
1994
2334
|
(plan) => plan.features.some(
|
|
1995
2335
|
(feature) => feature.text === featureText && feature.soon
|
|
1996
2336
|
)
|
|
1997
|
-
) && /* @__PURE__ */
|
|
2337
|
+
) && /* @__PURE__ */ React27.createElement(
|
|
1998
2338
|
Chip,
|
|
1999
2339
|
{
|
|
2000
2340
|
label: ((_d = (_c = props.plans.find(
|
|
@@ -2008,26 +2348,26 @@ var ComparingPlans = (props) => {
|
|
|
2008
2348
|
const feature = plan.features.find(
|
|
2009
2349
|
(f) => f.text === featureText
|
|
2010
2350
|
);
|
|
2011
|
-
return /* @__PURE__ */
|
|
2351
|
+
return /* @__PURE__ */ React27.createElement(
|
|
2012
2352
|
"div",
|
|
2013
2353
|
{
|
|
2014
2354
|
key: planIndex,
|
|
2015
2355
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-text-center"
|
|
2016
2356
|
},
|
|
2017
|
-
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */
|
|
2357
|
+
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */ React27.createElement(CheckMark, { className: "hawa-text-foreground" }) : /* @__PURE__ */ React27.createElement(UncheckMark, { className: "hawa-text-foreground" })
|
|
2018
2358
|
);
|
|
2019
2359
|
})
|
|
2020
2360
|
);
|
|
2021
2361
|
})
|
|
2022
|
-
), props.showButtons && /* @__PURE__ */
|
|
2362
|
+
), props.showButtons && /* @__PURE__ */ React27.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__ */ React27.createElement("div", { className: "hawa-flex hawa-items-center" }), props.plans.map((plan, i) => {
|
|
2023
2363
|
var _a;
|
|
2024
|
-
return /* @__PURE__ */
|
|
2364
|
+
return /* @__PURE__ */ React27.createElement(
|
|
2025
2365
|
"div",
|
|
2026
2366
|
{
|
|
2027
2367
|
key: i,
|
|
2028
2368
|
className: "hawa-flex hawa-items-center hawa-justify-center"
|
|
2029
2369
|
},
|
|
2030
|
-
/* @__PURE__ */
|
|
2370
|
+
/* @__PURE__ */ React27.createElement(
|
|
2031
2371
|
Button,
|
|
2032
2372
|
{
|
|
2033
2373
|
className: "hawa-w-full hawa-max-w-xs",
|
|
@@ -2051,29 +2391,29 @@ var ComparingPlans = (props) => {
|
|
|
2051
2391
|
};
|
|
2052
2392
|
|
|
2053
2393
|
// components/blocks/pricing/HorizontalPricing.tsx
|
|
2054
|
-
import
|
|
2394
|
+
import React28, { useState as useState11 } from "react";
|
|
2055
2395
|
var HorizontalPricing = (props) => {
|
|
2056
|
-
const [selectedCard, setSelectedCard] =
|
|
2396
|
+
const [selectedCard, setSelectedCard] = useState11("");
|
|
2057
2397
|
let data = [
|
|
2058
2398
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
|
2059
2399
|
{ title: "business", price: "$99", cycle: "/mo" },
|
|
2060
2400
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
|
2061
2401
|
];
|
|
2062
|
-
return /* @__PURE__ */
|
|
2402
|
+
return /* @__PURE__ */ React28.createElement("div", { className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm" }, /* @__PURE__ */ React28.createElement("div", { className: "hawa-max-w-2xl " }, /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ React28.createElement(
|
|
2063
2403
|
Radio,
|
|
2064
2404
|
{
|
|
2065
2405
|
design: "tabs",
|
|
2066
2406
|
options: props.currencies,
|
|
2067
2407
|
defaultValue: props.currentCurrency
|
|
2068
2408
|
}
|
|
2069
|
-
), /* @__PURE__ */
|
|
2409
|
+
), /* @__PURE__ */ React28.createElement(
|
|
2070
2410
|
Radio,
|
|
2071
2411
|
{
|
|
2072
2412
|
design: "tabs",
|
|
2073
2413
|
options: props.billingCycles,
|
|
2074
2414
|
defaultValue: props.currentCycle
|
|
2075
2415
|
}
|
|
2076
|
-
)), data.map((d, i) => /* @__PURE__ */
|
|
2416
|
+
)), data.map((d, i) => /* @__PURE__ */ React28.createElement(
|
|
2077
2417
|
"label",
|
|
2078
2418
|
{
|
|
2079
2419
|
key: i,
|
|
@@ -2081,7 +2421,7 @@ var HorizontalPricing = (props) => {
|
|
|
2081
2421
|
className: "",
|
|
2082
2422
|
onClick: () => setSelectedCard(d.title)
|
|
2083
2423
|
},
|
|
2084
|
-
/* @__PURE__ */
|
|
2424
|
+
/* @__PURE__ */ React28.createElement(
|
|
2085
2425
|
"input",
|
|
2086
2426
|
{
|
|
2087
2427
|
type: "radio",
|
|
@@ -2090,7 +2430,7 @@ var HorizontalPricing = (props) => {
|
|
|
2090
2430
|
className: "hawa-peer hawa-appearance-none"
|
|
2091
2431
|
}
|
|
2092
2432
|
),
|
|
2093
|
-
/* @__PURE__ */
|
|
2433
|
+
/* @__PURE__ */ React28.createElement(
|
|
2094
2434
|
"div",
|
|
2095
2435
|
{
|
|
2096
2436
|
className: cn(
|
|
@@ -2098,18 +2438,18 @@ var HorizontalPricing = (props) => {
|
|
|
2098
2438
|
"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"
|
|
2099
2439
|
)
|
|
2100
2440
|
},
|
|
2101
|
-
/* @__PURE__ */
|
|
2441
|
+
/* @__PURE__ */ React28.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ React28.createElement(CheckIcons, null), /* @__PURE__ */ React28.createElement(
|
|
2102
2442
|
CardText,
|
|
2103
2443
|
{
|
|
2104
2444
|
title: "Enterprise",
|
|
2105
2445
|
subtitle: "For startups and new businesses"
|
|
2106
2446
|
}
|
|
2107
2447
|
)),
|
|
2108
|
-
/* @__PURE__ */
|
|
2448
|
+
/* @__PURE__ */ React28.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
|
2109
2449
|
)
|
|
2110
2450
|
))));
|
|
2111
2451
|
};
|
|
2112
|
-
var CheckIcons = () => /* @__PURE__ */
|
|
2452
|
+
var CheckIcons = () => /* @__PURE__ */ React28.createElement(React28.Fragment, null, /* @__PURE__ */ React28.createElement(
|
|
2113
2453
|
"svg",
|
|
2114
2454
|
{
|
|
2115
2455
|
fill: "none",
|
|
@@ -2118,7 +2458,7 @@ var CheckIcons = () => /* @__PURE__ */ React23.createElement(React23.Fragment, n
|
|
|
2118
2458
|
stroke: "currentColor",
|
|
2119
2459
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
|
2120
2460
|
},
|
|
2121
|
-
/* @__PURE__ */
|
|
2461
|
+
/* @__PURE__ */ React28.createElement(
|
|
2122
2462
|
"path",
|
|
2123
2463
|
{
|
|
2124
2464
|
strokeLinecap: "round",
|
|
@@ -2126,14 +2466,14 @@ var CheckIcons = () => /* @__PURE__ */ React23.createElement(React23.Fragment, n
|
|
|
2126
2466
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
2127
2467
|
}
|
|
2128
2468
|
)
|
|
2129
|
-
), /* @__PURE__ */
|
|
2469
|
+
), /* @__PURE__ */ React28.createElement(
|
|
2130
2470
|
"svg",
|
|
2131
2471
|
{
|
|
2132
2472
|
viewBox: "0 0 24 24",
|
|
2133
2473
|
fill: "currentColor",
|
|
2134
2474
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
|
2135
2475
|
},
|
|
2136
|
-
/* @__PURE__ */
|
|
2476
|
+
/* @__PURE__ */ React28.createElement(
|
|
2137
2477
|
"path",
|
|
2138
2478
|
{
|
|
2139
2479
|
fillRule: "evenodd",
|
|
@@ -2142,14 +2482,14 @@ var CheckIcons = () => /* @__PURE__ */ React23.createElement(React23.Fragment, n
|
|
|
2142
2482
|
}
|
|
2143
2483
|
)
|
|
2144
2484
|
));
|
|
2145
|
-
var CardText = (props) => /* @__PURE__ */
|
|
2146
|
-
var CardPrice = (props) => /* @__PURE__ */
|
|
2485
|
+
var CardText = (props) => /* @__PURE__ */ React28.createElement("div", { className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start " }, /* @__PURE__ */ React28.createElement("h2", { className: "hawa-font-medium hawa-text-primary/90 sm:hawa-text-xl" }, props.title), /* @__PURE__ */ React28.createElement("p", { className: "hawa-text-sm hawa-text-primary/60" }, props.subtitle, " "));
|
|
2486
|
+
var CardPrice = (props) => /* @__PURE__ */ React28.createElement("h2", { className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-primary sm:hawa-text-2xl" }, props.amount, /* @__PURE__ */ React28.createElement("span", { className: "hawa-text-base hawa-font-medium hawa-text-neutral-400" }, props.cycle));
|
|
2147
2487
|
|
|
2148
2488
|
// components/blocks/Usage.tsx
|
|
2149
|
-
import
|
|
2489
|
+
import React29 from "react";
|
|
2150
2490
|
var Usage = (props) => {
|
|
2151
2491
|
var _a;
|
|
2152
|
-
return /* @__PURE__ */
|
|
2492
|
+
return /* @__PURE__ */ React29.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__ */ React29.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, /* @__PURE__ */ React29.createElement("span", { className: "hawa-bg-white-200" }, props.title), props.tooltip && /* @__PURE__ */ React29.createElement(Tooltip, { content: props.tooltip }, /* @__PURE__ */ React29.createElement(
|
|
2153
2493
|
"svg",
|
|
2154
2494
|
{
|
|
2155
2495
|
stroke: "currentColor",
|
|
@@ -2160,10 +2500,12 @@ var Usage = (props) => {
|
|
|
2160
2500
|
height: "1em",
|
|
2161
2501
|
width: "1em"
|
|
2162
2502
|
},
|
|
2163
|
-
/* @__PURE__ */
|
|
2164
|
-
))), /* @__PURE__ */
|
|
2503
|
+
/* @__PURE__ */ React29.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" })
|
|
2504
|
+
))), /* @__PURE__ */ React29.createElement("div", { className: "hawa-bg-white-100 hawa-flex hawa-flex-row" }, /* @__PURE__ */ React29.createElement("div", null, props.currentUsage), /* @__PURE__ */ React29.createElement("div", null, " (", props.percent, "%)")), /* @__PURE__ */ React29.createElement(Progress, { value: (_a = props.percent) != null ? _a : 0 }));
|
|
2165
2505
|
};
|
|
2166
2506
|
export {
|
|
2507
|
+
ActionCard,
|
|
2508
|
+
AdCard,
|
|
2167
2509
|
Announcement,
|
|
2168
2510
|
AppLanding,
|
|
2169
2511
|
CheckEmail,
|
|
@@ -2175,12 +2517,15 @@ export {
|
|
|
2175
2517
|
FeedbackForm,
|
|
2176
2518
|
FeedbackRating,
|
|
2177
2519
|
HorizontalPricing,
|
|
2520
|
+
ItemCard,
|
|
2521
|
+
LandingCard,
|
|
2178
2522
|
LeadGenerator,
|
|
2179
2523
|
LegalTexts,
|
|
2180
2524
|
LoginForm,
|
|
2181
2525
|
NewPasswordForm,
|
|
2182
2526
|
NoPermission,
|
|
2183
2527
|
NotFound,
|
|
2528
|
+
PricingCard,
|
|
2184
2529
|
PricingPlans,
|
|
2185
2530
|
RegisterForm,
|
|
2186
2531
|
ResetPasswordForm,
|