@sikka/hawa 0.38.14-next → 0.40.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/dist/{DropdownMenu-B3cTLPDi.d.mts → DropdownMenu-FVVDS2rX.d.mts} +6 -1
- package/dist/{DropdownMenu-BO1TNMm5.d.ts → DropdownMenu-SFJtRGAw.d.ts} +6 -1
- package/dist/{Radio-lgoClQrv.d.ts → Radio-DlPwVCG4.d.ts} +6 -0
- package/dist/{Radio-uQ7DtzcI.d.mts → Radio-Dyvlywnk.d.mts} +6 -0
- package/dist/alert/index.js +2 -2
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs +2 -2
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.d.mts +2 -0
- package/dist/appLayout/index.d.ts +2 -0
- package/dist/appLayout/index.js +14 -3
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +14 -3
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/backToTop/index.js +2 -2
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs +2 -2
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +77 -2
- package/dist/blocks/auth/index.mjs +79 -4
- package/dist/blocks/feedback/index.js +162 -119
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.d.mts +5 -2
- package/dist/blocks/index.d.ts +5 -2
- package/dist/blocks/index.js +525 -450
- package/dist/blocks/index.mjs +12 -4
- package/dist/blocks/misc/index.d.mts +3 -0
- package/dist/blocks/misc/index.d.ts +3 -0
- package/dist/blocks/misc/index.js +246 -289
- package/dist/blocks/misc/index.mjs +155 -200
- package/dist/blocks/pricing/index.js +162 -119
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/button/index.d.mts +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.js +2 -2
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +2 -2
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.js +2 -2
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs +2 -2
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/{chunk-SL4ONYNR.mjs → chunk-27G5FKOP.mjs} +1 -1
- package/dist/{chunk-IC5WYNKN.mjs → chunk-AJTYKC5R.mjs} +1 -1
- package/dist/{chunk-UMOBOCED.mjs → chunk-CTNKKP2O.mjs} +2 -2
- package/dist/chunk-CTZRVSTI.mjs +346 -0
- package/dist/{chunk-XFSBC5VI.mjs → chunk-DYPGZ2IP.mjs} +1 -1
- package/dist/{chunk-UJ5SXC3M.mjs → chunk-GN7EIDTE.mjs} +1 -1
- package/dist/{chunk-VE7EQ6VH.mjs → chunk-GU2DOJ7Q.mjs} +106 -8
- package/dist/{chunk-RTK6REIK.mjs → chunk-QZIENYTE.mjs} +1 -1
- package/dist/{chunk-EZBHA2IL.mjs → chunk-RT2Q3SH7.mjs} +1 -1
- package/dist/{chunk-AONESDSB.mjs → chunk-UBUVHGW4.mjs} +238 -248
- package/dist/{chunk-ZBUBNKF6.mjs → chunk-XCW5YNMS.mjs} +34 -1
- package/dist/codeBlock/index.js +2 -2
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +2 -2
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/combobox/index.js +1 -1
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +1 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.js +1 -1
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +1 -1
- package/dist/command/index.mjs.map +1 -1
- package/dist/commonTypes-189mW5eB.d.mts +8 -0
- package/dist/commonTypes-189mW5eB.d.ts +8 -0
- package/dist/commonTypes-DUY2LJm1.d.mts +3 -0
- package/dist/commonTypes-DUY2LJm1.d.ts +3 -0
- package/dist/commonTypes-D_7LV7Ri.d.mts +5 -0
- package/dist/commonTypes-D_7LV7Ri.d.ts +5 -0
- package/dist/dataTable/index.d.mts +1 -0
- package/dist/dataTable/index.d.ts +1 -0
- package/dist/dataTable/index.js +3 -3
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +3 -3
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.d.mts +1 -1
- package/dist/datePicker/index.d.ts +1 -1
- package/dist/datePicker/index.js +3 -3
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +3 -3
- package/dist/datePicker/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/docsLayout/index.js +77 -2
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +77 -2
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.d.mts +6 -1
- package/dist/dropdownMenu/index.d.ts +6 -1
- package/dist/dropdownMenu/index.js +29 -6
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +29 -6
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +13 -5
- package/dist/elements/index.d.ts +13 -5
- package/dist/elements/index.js +622 -532
- package/dist/elements/index.mjs +6 -6
- package/dist/fileDropzone/index.d.mts +2 -2
- package/dist/fileDropzone/index.d.ts +2 -2
- package/dist/fileDropzone/index.js +2 -2
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +2 -2
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/fileUploader/index.d.mts +2 -2
- package/dist/fileUploader/index.d.ts +2 -2
- package/dist/glow/index.d.mts +3 -3
- package/dist/glow/index.d.ts +3 -3
- package/dist/hooks/index.d.mts +8 -1
- package/dist/hooks/index.d.ts +8 -1
- package/dist/hooks/index.js +35 -0
- package/dist/hooks/index.mjs +5 -1
- package/dist/index.css +0 -91
- package/dist/index.d.mts +35 -4
- package/dist/index.d.ts +35 -4
- package/dist/index.js +1104 -960
- package/dist/index.mjs +1055 -913
- package/dist/input/index.d.mts +2 -9
- package/dist/input/index.d.ts +2 -9
- package/dist/interfaceSettings/index.js +160 -117
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +160 -117
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/label/index.d.mts +1 -2
- package/dist/label/index.d.ts +1 -2
- package/dist/layout/index.d.mts +3 -1
- package/dist/layout/index.d.ts +3 -1
- package/dist/layout/index.js +89 -3
- package/dist/layout/index.mjs +14 -3
- package/dist/logos/index.d.mts +5 -0
- package/dist/logos/index.d.ts +5 -0
- package/dist/logos/index.js +75 -0
- package/dist/logos/index.js.map +1 -1
- package/dist/logos/index.mjs +75 -0
- package/dist/logos/index.mjs.map +1 -1
- package/dist/navigationMenu/index.d.mts +2 -1
- package/dist/navigationMenu/index.d.ts +2 -1
- package/dist/pagination/index.d.mts +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/phoneInput/index.d.mts +1 -1
- package/dist/phoneInput/index.d.ts +1 -1
- package/dist/progress/index.d.mts +8 -1
- package/dist/progress/index.d.ts +8 -1
- package/dist/radio/index.d.mts +15 -1
- package/dist/radio/index.d.ts +15 -1
- package/dist/radio/index.js +160 -117
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +160 -117
- package/dist/radio/index.mjs.map +1 -1
- package/dist/scrollArea/index.d.mts +1 -1
- package/dist/scrollArea/index.d.ts +1 -1
- package/dist/separator/index.d.mts +1 -1
- package/dist/separator/index.d.ts +1 -1
- package/dist/signature/index.d.mts +1 -2
- package/dist/signature/index.d.ts +1 -2
- package/dist/simpleTable/index.d.mts +1 -1
- package/dist/simpleTable/index.d.ts +1 -1
- package/dist/sonner/index.d.mts +1 -1
- package/dist/sonner/index.d.ts +1 -1
- package/dist/sortButton/index.js +2 -2
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs +2 -2
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.d.mts +3 -9
- package/dist/splitButton/index.d.ts +3 -9
- package/dist/splitButton/index.js +2 -2
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +2 -2
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/switch/index.d.mts +1 -1
- package/dist/switch/index.d.ts +1 -1
- package/dist/tabs/index.d.mts +4 -2
- package/dist/tabs/index.d.ts +4 -2
- package/dist/tabs/index.js +123 -174
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +118 -169
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/textarea/index.d.mts +1 -1
- package/dist/textarea/index.d.ts +1 -1
- package/dist/toast/index.d.mts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toaster/index.d.mts +4 -22
- package/dist/toaster/index.d.ts +4 -22
- package/dist/tooltip/index.d.mts +4 -3
- package/dist/tooltip/index.d.ts +4 -3
- package/package.json +1 -1
- package/dist/Label-UbMDLtJF.d.mts +0 -14
- package/dist/Label-UbMDLtJF.d.ts +0 -14
- package/dist/chunk-WDCKXU54.mjs +0 -303
- package/dist/commonTypes-CgDwjGvU.d.mts +0 -5
- package/dist/commonTypes-CgDwjGvU.d.ts +0 -5
- package/dist/commonTypes-DZdITB5m.d.mts +0 -4
- package/dist/commonTypes-DZdITB5m.d.ts +0 -4
- package/dist/floatBox/index.d.mts +0 -15
- package/dist/floatBox/index.d.ts +0 -15
- package/dist/floatBox/index.js +0 -105
- package/dist/floatBox/index.js.map +0 -1
- package/dist/floatBox/index.mjs +0 -69
- package/dist/floatBox/index.mjs.map +0 -1
package/dist/blocks/index.js
CHANGED
@@ -469,12 +469,12 @@ var Button = React5.forwardRef(
|
|
469
469
|
children,
|
470
470
|
labelProps,
|
471
471
|
showHelperText = false,
|
472
|
-
|
472
|
+
asInput = false,
|
473
473
|
...props
|
474
474
|
}, ref) => {
|
475
475
|
const Comp = "button";
|
476
476
|
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
477
|
-
if (
|
477
|
+
if (asInput) {
|
478
478
|
return /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, label && /* @__PURE__ */ React5.createElement(Label, { ...labelProps }, label), /* @__PURE__ */ React5.createElement(
|
479
479
|
Comp,
|
480
480
|
{
|
@@ -744,6 +744,13 @@ var Logos = {
|
|
744
744
|
d: "M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148a13.98 13.98 0 0 0 10.15 5.144 4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 0 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z"
|
745
745
|
}
|
746
746
|
)),
|
747
|
+
x: (props) => /* @__PURE__ */ import_react4.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react4.default.createElement("title", null, "X"), /* @__PURE__ */ import_react4.default.createElement(
|
748
|
+
"path",
|
749
|
+
{
|
750
|
+
fill: "currentColor",
|
751
|
+
d: "M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"
|
752
|
+
}
|
753
|
+
)),
|
747
754
|
instagram: (props) => /* @__PURE__ */ import_react4.default.createElement(
|
748
755
|
"svg",
|
749
756
|
{
|
@@ -832,6 +839,23 @@ var Logos = {
|
|
832
839
|
d: "M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
|
833
840
|
}
|
834
841
|
)),
|
842
|
+
googleplay: (props) => /* @__PURE__ */ import_react4.default.createElement(
|
843
|
+
"svg",
|
844
|
+
{
|
845
|
+
role: "img",
|
846
|
+
viewBox: "0 0 24 24",
|
847
|
+
xmlns: "http://www.w3.org/2000/svg",
|
848
|
+
...props
|
849
|
+
},
|
850
|
+
/* @__PURE__ */ import_react4.default.createElement("title", null, "Google Play"),
|
851
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
852
|
+
"path",
|
853
|
+
{
|
854
|
+
fill: "currentColor",
|
855
|
+
d: "M22.018 13.298l-3.919 2.218-3.515-3.493 3.543-3.521 3.891 2.202a1.49 1.49 0 0 1 0 2.594zM1.337.924a1.486 1.486 0 0 0-.112.568v21.017c0 .217.045.419.124.6l11.155-11.087L1.337.924zm12.207 10.065l3.258-3.238L3.45.195a1.466 1.466 0 0 0-.946-.179l11.04 10.973zm0 2.067l-11 10.933c.298.036.612-.016.906-.183l13.324-7.54-3.23-3.21z"
|
856
|
+
}
|
857
|
+
)
|
858
|
+
),
|
835
859
|
apple: (props) => /* @__PURE__ */ import_react4.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react4.default.createElement(
|
836
860
|
"path",
|
837
861
|
{
|
@@ -839,6 +863,23 @@ var Logos = {
|
|
839
863
|
fill: "currentColor"
|
840
864
|
}
|
841
865
|
)),
|
866
|
+
applestore: (props) => /* @__PURE__ */ import_react4.default.createElement(
|
867
|
+
"svg",
|
868
|
+
{
|
869
|
+
role: "img",
|
870
|
+
viewBox: "0 0 24 24",
|
871
|
+
xmlns: "http://www.w3.org/2000/svg",
|
872
|
+
...props
|
873
|
+
},
|
874
|
+
/* @__PURE__ */ import_react4.default.createElement("title", null, "App Store"),
|
875
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
876
|
+
"path",
|
877
|
+
{
|
878
|
+
fill: "currentColor",
|
879
|
+
d: "M8.8086 14.9194l6.1107-11.0368c.0837-.1513.1682-.302.2437-.4584.0685-.142.1267-.2854.1646-.4403.0803-.3259.0588-.6656-.066-.9767-.1238-.3095-.3417-.5678-.6201-.7355a1.4175 1.4175 0 0 0-.921-.1924c-.3207.043-.6135.1935-.8443.4288-.1094.1118-.1996.2361-.2832.369-.092.1463-.175.2979-.259.4492l-.3864.6979-.3865-.6979c-.0837-.1515-.1667-.303-.2587-.4492-.0837-.1329-.1739-.2572-.2835-.369-.2305-.2353-.5233-.3857-.844-.429a1.4181 1.4181 0 0 0-.921.1926c-.2784.1677-.4964.426-.6203.7355-.1246.311-.1461.6508-.066.9767.038.155.0962.2984.1648.4403.0753.1564.1598.307.2437.4584l1.248 2.2543-4.8625 8.7825H2.0295c-.1676 0-.3351-.0007-.5026.0092-.1522.009-.3004.0284-.448.0714-.3108.0906-.5822.2798-.7783.548-.195.2665-.3006.5929-.3006.9279 0 .3352.1057.6612.3006.9277.196.2683.4675.4575.7782.548.1477.043.296.0623.4481.0715.1675.01.335.009.5026.009h13.0974c.0171-.0357.059-.1294.1-.2697.415-1.4151-.6156-2.843-2.0347-2.843zM3.113 18.5418l-.7922 1.5008c-.0818.1553-.1644.31-.2384.4705-.067.1458-.124.293-.1611.452-.0785.3346-.0576.6834.0645 1.0029.1212.3175.3346.583.607.7549.2727.172.5891.2416.9013.1975.3139-.044.6005-.1986.8263-.4402.1072-.1148.1954-.2424.2772-.3787.0902-.1503.1714-.3059.2535-.4612L6 19.4636c-.0896-.149-.9473-1.4704-2.887-.9218m20.5861-3.0056a1.4707 1.4707 0 0 0-.779-.5407c-.1476-.0425-.2961-.0616-.4483-.0705-.1678-.0099-.3352-.0091-.503-.0091H18.648l-4.3891-7.817c-.6655.7005-.9632 1.485-1.0773 2.1976-.1655 1.0333.0367 2.0934.546 3.0004l5.2741 9.3933c.084.1494.167.299.2591.4435.0837.131.1739.2537.2836.364.231.2323.5238.3809.8449.4232.3192.0424.643-.0244.9217-.1899.2784-.1653.4968-.4204.621-.7257.1246-.3072.146-.6425.0658-.9641-.0381-.1529-.0962-.2945-.165-.4346-.0753-.1543-.1598-.303-.2438-.4524l-1.216-2.1662h1.596c.1677 0 .3351.0009.5029-.009.1522-.009.3007-.028.4483-.0705a1.4707 1.4707 0 0 0 .779-.5407A1.5386 1.5386 0 0 0 24 16.452a1.539 1.539 0 0 0-.3009-.9158Z"
|
880
|
+
}
|
881
|
+
)
|
882
|
+
),
|
842
883
|
paypal: (props) => /* @__PURE__ */ import_react4.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react4.default.createElement(
|
843
884
|
"path",
|
844
885
|
{
|
@@ -871,6 +912,40 @@ var Logos = {
|
|
871
912
|
...props
|
872
913
|
},
|
873
914
|
/* @__PURE__ */ import_react4.default.createElement("path", { d: "M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z" })
|
915
|
+
),
|
916
|
+
visa: (props) => /* @__PURE__ */ import_react4.default.createElement(
|
917
|
+
"svg",
|
918
|
+
{
|
919
|
+
role: "img",
|
920
|
+
viewBox: "0 0 24 24",
|
921
|
+
xmlns: "http://www.w3.org/2000/svg",
|
922
|
+
...props
|
923
|
+
},
|
924
|
+
/* @__PURE__ */ import_react4.default.createElement("title", null, "Visa"),
|
925
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
926
|
+
"path",
|
927
|
+
{
|
928
|
+
fill: "currentColor",
|
929
|
+
d: "M9.112 8.262L5.97 15.758H3.92L2.374 9.775c-.094-.368-.175-.503-.461-.658C1.447 8.864.677 8.627 0 8.479l.046-.217h3.3a.904.904 0 01.894.764l.817 4.338 2.018-5.102zm8.033 5.049c.008-1.979-2.736-2.088-2.717-2.972.006-.269.262-.555.822-.628a3.66 3.66 0 011.913.336l.34-1.59a5.207 5.207 0 00-1.814-.333c-1.917 0-3.266 1.02-3.278 2.479-.012 1.079.963 1.68 1.698 2.04.756.367 1.01.603 1.006.931-.005.504-.602.725-1.16.734-.975.015-1.54-.263-1.992-.473l-.351 1.642c.453.208 1.289.39 2.156.398 2.037 0 3.37-1.006 3.377-2.564m5.061 2.447H24l-1.565-7.496h-1.656a.883.883 0 00-.826.55l-2.909 6.946h2.036l.405-1.12h2.488zm-2.163-2.656l1.02-2.815.588 2.815zm-8.16-4.84l-1.603 7.496H8.34l1.605-7.496z"
|
930
|
+
}
|
931
|
+
)
|
932
|
+
),
|
933
|
+
mastercard: (props) => /* @__PURE__ */ import_react4.default.createElement(
|
934
|
+
"svg",
|
935
|
+
{
|
936
|
+
role: "img",
|
937
|
+
viewBox: "0 0 24 24",
|
938
|
+
xmlns: "http://www.w3.org/2000/svg",
|
939
|
+
...props
|
940
|
+
},
|
941
|
+
/* @__PURE__ */ import_react4.default.createElement("title", null, "MasterCard"),
|
942
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
943
|
+
"path",
|
944
|
+
{
|
945
|
+
fill: "currentColor",
|
946
|
+
d: "M11.343 18.031c.058.049.12.098.181.146-1.177.783-2.59 1.238-4.107 1.238C3.32 19.416 0 16.096 0 12c0-4.095 3.32-7.416 7.416-7.416 1.518 0 2.931.456 4.105 1.238-.06.051-.12.098-.165.15C9.6 7.489 8.595 9.688 8.595 12c0 2.311 1.001 4.51 2.748 6.031zm5.241-13.447c-1.52 0-2.931.456-4.105 1.238.06.051.12.098.165.15C14.4 7.489 15.405 9.688 15.405 12c0 2.31-1.001 4.507-2.748 6.031-.058.049-.12.098-.181.146 1.177.783 2.588 1.238 4.107 1.238C20.68 19.416 24 16.096 24 12c0-4.094-3.32-7.416-7.416-7.416zM12 6.174c-.096.075-.189.15-.28.231C10.156 7.764 9.169 9.765 9.169 12c0 2.236.987 4.236 2.551 5.595.09.08.185.158.28.232.096-.074.189-.152.28-.232 1.563-1.359 2.551-3.359 2.551-5.595 0-2.235-.987-4.236-2.551-5.595-.09-.08-.184-.156-.28-.231z"
|
947
|
+
}
|
948
|
+
)
|
874
949
|
)
|
875
950
|
};
|
876
951
|
|
@@ -4954,6 +5029,7 @@ var Radio = (0, import_react25.forwardRef)(
|
|
4954
5029
|
tabsContainerClassName,
|
4955
5030
|
forceHideHelperText = false,
|
4956
5031
|
onChange,
|
5032
|
+
containerClassNames,
|
4957
5033
|
...props
|
4958
5034
|
}, ref) => {
|
4959
5035
|
var _a, _b, _c;
|
@@ -5009,161 +5085,203 @@ var Radio = (0, import_react25.forwardRef)(
|
|
5009
5085
|
];
|
5010
5086
|
switch (design) {
|
5011
5087
|
case "tabs":
|
5012
|
-
return /* @__PURE__ */ import_react25.default.createElement(
|
5013
|
-
"
|
5088
|
+
return /* @__PURE__ */ import_react25.default.createElement(
|
5089
|
+
"div",
|
5014
5090
|
{
|
5015
|
-
ref: parentRef,
|
5016
5091
|
className: cn(
|
5017
|
-
|
5018
|
-
|
5019
|
-
orientationStyle[orientation],
|
5020
|
-
widthStyle[width],
|
5021
|
-
tabsContainerClassName
|
5092
|
+
"hawa-gap-2 hawa-flex hawa-flex-col",
|
5093
|
+
containerClassNames == null ? void 0 : containerClassNames.tabs
|
5022
5094
|
)
|
5023
5095
|
},
|
5024
|
-
|
5025
|
-
|
5026
|
-
|
5027
|
-
|
5028
|
-
|
5029
|
-
|
5030
|
-
|
5031
|
-
|
5032
|
-
|
5033
|
-
|
5096
|
+
props.label && /* @__PURE__ */ import_react25.default.createElement(Label, { ...labelProps }, props.label),
|
5097
|
+
/* @__PURE__ */ import_react25.default.createElement(
|
5098
|
+
"ul",
|
5099
|
+
{
|
5100
|
+
ref: parentRef,
|
5101
|
+
className: cn(
|
5102
|
+
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
5103
|
+
"hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium hawa-h-[40px]",
|
5104
|
+
orientationStyle[orientation],
|
5105
|
+
widthStyle[width],
|
5106
|
+
tabsContainerClassName
|
5107
|
+
)
|
5108
|
+
},
|
5109
|
+
(_b = props.options) == null ? void 0 : _b.map((opt, o) => {
|
5110
|
+
return opt.tooltip ? /* @__PURE__ */ import_react25.default.createElement(
|
5111
|
+
PopoverRoot,
|
5034
5112
|
{
|
5035
|
-
|
5036
|
-
|
5037
|
-
|
5113
|
+
key: o,
|
5114
|
+
open: o === openTooltip,
|
5115
|
+
onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
|
5038
5116
|
},
|
5039
5117
|
/* @__PURE__ */ import_react25.default.createElement(
|
5040
|
-
|
5118
|
+
PopoverTrigger,
|
5041
5119
|
{
|
5042
|
-
|
5043
|
-
|
5044
|
-
|
5045
|
-
|
5046
|
-
|
5120
|
+
onMouseEnter: () => setOpenTooltip(o),
|
5121
|
+
onMouseLeave: () => setOpenTooltip(null),
|
5122
|
+
asChild: true
|
5123
|
+
},
|
5124
|
+
/* @__PURE__ */ import_react25.default.createElement(
|
5125
|
+
"li",
|
5126
|
+
{
|
5127
|
+
"aria-current": "page",
|
5128
|
+
onClick: () => {
|
5129
|
+
if (props.disabled || opt.disabled)
|
5130
|
+
return;
|
5131
|
+
handleChange(opt);
|
5132
|
+
},
|
5133
|
+
className: cn(
|
5134
|
+
...radio_option_tabs_styling,
|
5135
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
5136
|
+
)
|
5047
5137
|
},
|
5048
|
-
|
5049
|
-
|
5050
|
-
|
5051
|
-
|
5138
|
+
opt.icon && opt.icon,
|
5139
|
+
opt.label
|
5140
|
+
)
|
5141
|
+
),
|
5142
|
+
/* @__PURE__ */ import_react25.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
5143
|
+
) : /* @__PURE__ */ import_react25.default.createElement(
|
5144
|
+
"li",
|
5145
|
+
{
|
5146
|
+
key: o,
|
5147
|
+
"aria-current": "page",
|
5148
|
+
onClick: () => {
|
5149
|
+
if (props.disabled || opt.disabled)
|
5150
|
+
return;
|
5151
|
+
handleChange(opt);
|
5052
5152
|
},
|
5053
|
-
|
5054
|
-
|
5055
|
-
|
5153
|
+
className: cn(
|
5154
|
+
...radio_option_tabs_styling,
|
5155
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
5156
|
+
)
|
5157
|
+
},
|
5158
|
+
opt.icon && opt.icon,
|
5159
|
+
opt.label
|
5160
|
+
);
|
5161
|
+
})
|
5162
|
+
),
|
5163
|
+
!forceHideHelperText && /* @__PURE__ */ import_react25.default.createElement(HelperText, { helperText: props.helperText })
|
5164
|
+
);
|
5165
|
+
case "bordered":
|
5166
|
+
return /* @__PURE__ */ import_react25.default.createElement(
|
5167
|
+
"div",
|
5168
|
+
{
|
5169
|
+
className: cn(
|
5170
|
+
orientationStyle[orientation],
|
5171
|
+
"hawa-gap-4",
|
5172
|
+
containerClassNames == null ? void 0 : containerClassNames.bordered
|
5173
|
+
)
|
5174
|
+
},
|
5175
|
+
props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react25.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react25.default.createElement(
|
5176
|
+
"div",
|
5177
|
+
{
|
5178
|
+
className: cn(
|
5179
|
+
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
5180
|
+
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
5056
5181
|
),
|
5057
|
-
|
5058
|
-
|
5059
|
-
|
5182
|
+
key: i + 1
|
5183
|
+
},
|
5184
|
+
/* @__PURE__ */ import_react25.default.createElement(
|
5185
|
+
"input",
|
5060
5186
|
{
|
5061
|
-
|
5062
|
-
|
5063
|
-
|
5064
|
-
|
5065
|
-
|
5066
|
-
|
5067
|
-
|
5187
|
+
disabled: opt.disabled,
|
5188
|
+
id: opt.value.toString(),
|
5189
|
+
type: "radio",
|
5190
|
+
value: opt.value,
|
5191
|
+
name,
|
5192
|
+
onChange: () => handleChange(opt)
|
5193
|
+
}
|
5194
|
+
),
|
5195
|
+
/* @__PURE__ */ import_react25.default.createElement(
|
5196
|
+
"label",
|
5197
|
+
{
|
5198
|
+
htmlFor: opt.value.toString(),
|
5068
5199
|
className: cn(
|
5069
|
-
|
5070
|
-
|
5200
|
+
"hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium hawa-text-black dark:hawa-text-white",
|
5201
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
5071
5202
|
)
|
5072
5203
|
},
|
5073
|
-
opt.icon && opt.icon,
|
5074
5204
|
opt.label
|
5075
|
-
)
|
5076
|
-
|
5077
|
-
)
|
5078
|
-
case "
|
5079
|
-
return /* @__PURE__ */ import_react25.default.createElement(
|
5080
|
-
"
|
5205
|
+
)
|
5206
|
+
)))
|
5207
|
+
);
|
5208
|
+
case "cards":
|
5209
|
+
return /* @__PURE__ */ import_react25.default.createElement(
|
5210
|
+
"ul",
|
5081
5211
|
{
|
5082
5212
|
className: cn(
|
5083
|
-
|
5084
|
-
|
5085
|
-
|
5086
|
-
|
5213
|
+
orientationStyle[orientation],
|
5214
|
+
"hawa-gap-4",
|
5215
|
+
containerClassNames == null ? void 0 : containerClassNames.cards
|
5216
|
+
)
|
5087
5217
|
},
|
5088
|
-
/* @__PURE__ */ import_react25.default.createElement(
|
5218
|
+
(_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react25.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react25.default.createElement(
|
5089
5219
|
"input",
|
5090
5220
|
{
|
5091
|
-
disabled: opt.disabled,
|
5092
|
-
id: opt.value.toString(),
|
5093
5221
|
type: "radio",
|
5094
|
-
|
5222
|
+
id: opt.value.toString(),
|
5095
5223
|
name,
|
5096
|
-
|
5224
|
+
value: opt.value.toString(),
|
5225
|
+
className: "hawa-peer hawa-hidden",
|
5226
|
+
required: true,
|
5227
|
+
disabled: opt.disabled
|
5097
5228
|
}
|
5098
|
-
),
|
5099
|
-
/* @__PURE__ */ import_react25.default.createElement(
|
5229
|
+
), /* @__PURE__ */ import_react25.default.createElement(
|
5100
5230
|
"label",
|
5101
5231
|
{
|
5102
5232
|
htmlFor: opt.value.toString(),
|
5103
5233
|
className: cn(
|
5104
|
-
"hawa-
|
5105
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-
|
5234
|
+
"hawa-inline-flex hawa-h-full hawa-w-full hawa-transition-all hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-foreground/10 hawa-bg-background hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-primary peer-checked:hawa-text-primary dark:hawa-border-foreground/10 dark:hawa-bg-foreground/5 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
|
5235
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-foreground/10 hover:hawa-text-gray-600 dark:hover:hawa-bg-foreground/20 dark:hover:hawa-text-gray-300"
|
5106
5236
|
)
|
5107
5237
|
},
|
5108
|
-
opt.label
|
5109
|
-
)
|
5110
|
-
)
|
5111
|
-
case "cards":
|
5112
|
-
return /* @__PURE__ */ import_react25.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react25.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react25.default.createElement(
|
5113
|
-
"input",
|
5114
|
-
{
|
5115
|
-
type: "radio",
|
5116
|
-
id: opt.value.toString(),
|
5117
|
-
name,
|
5118
|
-
value: opt.value.toString(),
|
5119
|
-
className: "hawa-peer hawa-hidden",
|
5120
|
-
required: true,
|
5121
|
-
disabled: opt.disabled
|
5122
|
-
}
|
5123
|
-
), /* @__PURE__ */ import_react25.default.createElement(
|
5124
|
-
"label",
|
5125
|
-
{
|
5126
|
-
htmlFor: opt.value.toString(),
|
5127
|
-
className: cn(
|
5128
|
-
"hawa-inline-flex hawa-h-full hawa-w-full hawa-transition-all hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-foreground/10 hawa-bg-background hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-primary peer-checked:hawa-text-primary dark:hawa-border-foreground/10 dark:hawa-bg-foreground/5 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
|
5129
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-foreground/10 hover:hawa-text-gray-600 dark:hover:hawa-bg-foreground/20 dark:hover:hawa-text-gray-300"
|
5130
|
-
)
|
5131
|
-
},
|
5132
|
-
/* @__PURE__ */ import_react25.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react25.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react25.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
5133
|
-
))));
|
5238
|
+
/* @__PURE__ */ import_react25.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react25.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react25.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
5239
|
+
)))
|
5240
|
+
);
|
5134
5241
|
default:
|
5135
|
-
return /* @__PURE__ */ import_react25.default.createElement(
|
5242
|
+
return /* @__PURE__ */ import_react25.default.createElement(
|
5136
5243
|
"div",
|
5137
5244
|
{
|
5138
5245
|
className: cn(
|
5139
|
-
"
|
5140
|
-
|
5141
|
-
)
|
5142
|
-
key: i + 1
|
5246
|
+
"hawa-flex hawa-flex-col hawa-gap-2",
|
5247
|
+
containerClassNames == null ? void 0 : containerClassNames.default
|
5248
|
+
)
|
5143
5249
|
},
|
5144
|
-
/* @__PURE__ */ import_react25.default.createElement(
|
5145
|
-
|
5146
|
-
|
5147
|
-
disabled: opt.disabled,
|
5148
|
-
id: opt.value.toString(),
|
5149
|
-
type: "radio",
|
5150
|
-
value: opt.value,
|
5151
|
-
name,
|
5152
|
-
onChange: () => handleChange(opt)
|
5153
|
-
}
|
5154
|
-
),
|
5155
|
-
/* @__PURE__ */ import_react25.default.createElement(
|
5156
|
-
"label",
|
5250
|
+
props.label && /* @__PURE__ */ import_react25.default.createElement(Label, { ...labelProps }, props.label),
|
5251
|
+
/* @__PURE__ */ import_react25.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react25.default.createElement(
|
5252
|
+
"div",
|
5157
5253
|
{
|
5158
|
-
htmlFor: opt.value.toString(),
|
5159
5254
|
className: cn(
|
5160
|
-
"
|
5161
|
-
|
5162
|
-
)
|
5255
|
+
"radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
|
5256
|
+
props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
|
5257
|
+
),
|
5258
|
+
key: i + 1
|
5163
5259
|
},
|
5164
|
-
|
5165
|
-
|
5166
|
-
|
5260
|
+
/* @__PURE__ */ import_react25.default.createElement(
|
5261
|
+
"input",
|
5262
|
+
{
|
5263
|
+
disabled: opt.disabled,
|
5264
|
+
id: opt.value.toString(),
|
5265
|
+
type: "radio",
|
5266
|
+
value: opt.value,
|
5267
|
+
name,
|
5268
|
+
onChange: () => handleChange(opt)
|
5269
|
+
}
|
5270
|
+
),
|
5271
|
+
/* @__PURE__ */ import_react25.default.createElement(
|
5272
|
+
"label",
|
5273
|
+
{
|
5274
|
+
htmlFor: opt.value.toString(),
|
5275
|
+
className: cn(
|
5276
|
+
"hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
5277
|
+
opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
|
5278
|
+
)
|
5279
|
+
},
|
5280
|
+
opt.label
|
5281
|
+
)
|
5282
|
+
))),
|
5283
|
+
/* @__PURE__ */ import_react25.default.createElement(HelperText, { helperText: props.helperText })
|
5284
|
+
);
|
5167
5285
|
}
|
5168
5286
|
}
|
5169
5287
|
);
|
@@ -5693,7 +5811,7 @@ var FeedbackForm = (props) => {
|
|
5693
5811
|
};
|
5694
5812
|
|
5695
5813
|
// blocks/misc/LegalTexts.tsx
|
5696
|
-
var
|
5814
|
+
var import_react50 = __toESM(require("react"));
|
5697
5815
|
|
5698
5816
|
// elements/scrollArea/ScrollArea.tsx
|
5699
5817
|
var React34 = __toESM(require("react"));
|
@@ -5819,7 +5937,7 @@ var ScrollBar = React34.forwardRef(({ className, orientation = "vertical", ...pr
|
|
5819
5937
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
5820
5938
|
|
5821
5939
|
// elements/tabs/Tabs.tsx
|
5822
|
-
var
|
5940
|
+
var React44 = __toESM(require("react"));
|
5823
5941
|
|
5824
5942
|
// hooks/useIsomorphicEffect.ts
|
5825
5943
|
var import_react30 = require("react");
|
@@ -5870,37 +5988,6 @@ var import_react43 = require("react");
|
|
5870
5988
|
|
5871
5989
|
// hooks/useMeasureDirty.ts
|
5872
5990
|
var import_react44 = require("react");
|
5873
|
-
var useMeasureDirty = (ref) => {
|
5874
|
-
const frame = (0, import_react44.useRef)(0);
|
5875
|
-
const [rect, set] = (0, import_react44.useState)({
|
5876
|
-
width: 0,
|
5877
|
-
height: 0,
|
5878
|
-
top: 0,
|
5879
|
-
left: 0,
|
5880
|
-
bottom: 0,
|
5881
|
-
right: 0
|
5882
|
-
});
|
5883
|
-
const [observer] = (0, import_react44.useState)(
|
5884
|
-
() => new ResizeObserver((entries) => {
|
5885
|
-
const entry = entries[0];
|
5886
|
-
if (entry) {
|
5887
|
-
cancelAnimationFrame(frame.current);
|
5888
|
-
frame.current = requestAnimationFrame(() => {
|
5889
|
-
if (ref.current) {
|
5890
|
-
set(entry.contentRect);
|
5891
|
-
}
|
5892
|
-
});
|
5893
|
-
}
|
5894
|
-
})
|
5895
|
-
);
|
5896
|
-
(0, import_react44.useEffect)(() => {
|
5897
|
-
observer.disconnect();
|
5898
|
-
if (ref.current) {
|
5899
|
-
observer.observe(ref.current);
|
5900
|
-
}
|
5901
|
-
}, [ref]);
|
5902
|
-
return rect;
|
5903
|
-
};
|
5904
5991
|
|
5905
5992
|
// hooks/useClickOutside.ts
|
5906
5993
|
var import_react45 = require("react");
|
@@ -5908,13 +5995,45 @@ var import_react45 = require("react");
|
|
5908
5995
|
// hooks/useShortcuts.ts
|
5909
5996
|
var import_react46 = require("react");
|
5910
5997
|
|
5998
|
+
// hooks/useWindowEvent.ts
|
5999
|
+
var import_react47 = require("react");
|
6000
|
+
function useWindowEvent(type, listener, options) {
|
6001
|
+
(0, import_react47.useEffect)(() => {
|
6002
|
+
window.addEventListener(type, listener, options);
|
6003
|
+
return () => window.removeEventListener(type, listener, options);
|
6004
|
+
}, [type, listener]);
|
6005
|
+
}
|
6006
|
+
|
6007
|
+
// hooks/useViewportSize.ts
|
6008
|
+
var import_react48 = require("react");
|
6009
|
+
var eventListerOptions = {
|
6010
|
+
passive: true
|
6011
|
+
};
|
6012
|
+
function useViewportSize() {
|
6013
|
+
const [windowSize, setWindowSize] = (0, import_react48.useState)({
|
6014
|
+
width: 0,
|
6015
|
+
height: 0
|
6016
|
+
});
|
6017
|
+
const setSize = (0, import_react48.useCallback)(() => {
|
6018
|
+
setWindowSize({
|
6019
|
+
width: window.innerWidth || 0,
|
6020
|
+
height: window.innerHeight || 0
|
6021
|
+
});
|
6022
|
+
}, []);
|
6023
|
+
useWindowEvent("resize", setSize, eventListerOptions);
|
6024
|
+
useWindowEvent("orientationchange", setSize, eventListerOptions);
|
6025
|
+
(0, import_react48.useEffect)(setSize, []);
|
6026
|
+
return windowSize;
|
6027
|
+
}
|
6028
|
+
|
5911
6029
|
// elements/tabs/Tabs.tsx
|
6030
|
+
var Popover2 = __toESM(require("@radix-ui/react-popover"));
|
5912
6031
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
5913
6032
|
var import_tailwind_variants = require("tailwind-variants");
|
5914
6033
|
|
5915
6034
|
// elements/chip/Chip.tsx
|
5916
|
-
var
|
5917
|
-
var Chip =
|
6035
|
+
var import_react49 = __toESM(require("react"));
|
6036
|
+
var Chip = import_react49.default.forwardRef(
|
5918
6037
|
({
|
5919
6038
|
label,
|
5920
6039
|
size = "normal",
|
@@ -5958,7 +6077,7 @@ var Chip = import_react47.default.forwardRef(
|
|
5958
6077
|
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"
|
5959
6078
|
};
|
5960
6079
|
if (label) {
|
5961
|
-
return /* @__PURE__ */
|
6080
|
+
return /* @__PURE__ */ import_react49.default.createElement(
|
5962
6081
|
"span",
|
5963
6082
|
{
|
5964
6083
|
...rest,
|
@@ -5970,7 +6089,7 @@ var Chip = import_react47.default.forwardRef(
|
|
5970
6089
|
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
5971
6090
|
)
|
5972
6091
|
},
|
5973
|
-
dot && /* @__PURE__ */
|
6092
|
+
dot && /* @__PURE__ */ import_react49.default.createElement(
|
5974
6093
|
"span",
|
5975
6094
|
{
|
5976
6095
|
className: cn(dotStyles[size], dotStatusStyles[dotStatus])
|
@@ -5980,7 +6099,7 @@ var Chip = import_react47.default.forwardRef(
|
|
5980
6099
|
label
|
5981
6100
|
);
|
5982
6101
|
} else {
|
5983
|
-
return /* @__PURE__ */
|
6102
|
+
return /* @__PURE__ */ import_react49.default.createElement(
|
5984
6103
|
"span",
|
5985
6104
|
{
|
5986
6105
|
...rest,
|
@@ -5995,61 +6114,6 @@ var Chip = import_react47.default.forwardRef(
|
|
5995
6114
|
}
|
5996
6115
|
);
|
5997
6116
|
|
5998
|
-
// elements/floatBox/FloatBox.tsx
|
5999
|
-
var React44 = __toESM(require("react"));
|
6000
|
-
var FloatBox = ({
|
6001
|
-
className,
|
6002
|
-
open,
|
6003
|
-
side = "bottom",
|
6004
|
-
sideOffset = 40,
|
6005
|
-
align = "center",
|
6006
|
-
withArrow = false,
|
6007
|
-
...props
|
6008
|
-
}) => {
|
6009
|
-
let stylesMap = {
|
6010
|
-
bottom: {
|
6011
|
-
start: { top: sideOffset, insetInlineStart: 0 },
|
6012
|
-
center: { top: sideOffset },
|
6013
|
-
end: { top: sideOffset, insetInlineEnd: 0 }
|
6014
|
-
},
|
6015
|
-
top: {
|
6016
|
-
start: { bottom: sideOffset, insetInlineStart: 0 },
|
6017
|
-
center: { bottom: sideOffset },
|
6018
|
-
end: { bottom: sideOffset, insetInlineEnd: 0 }
|
6019
|
-
},
|
6020
|
-
right: {
|
6021
|
-
start: { left: sideOffset, top: -5 },
|
6022
|
-
center: { left: sideOffset },
|
6023
|
-
end: { left: sideOffset, bottom: 0 }
|
6024
|
-
},
|
6025
|
-
left: {
|
6026
|
-
start: { right: sideOffset, top: 0 },
|
6027
|
-
center: { right: sideOffset },
|
6028
|
-
end: { right: sideOffset, bottom: 0 }
|
6029
|
-
}
|
6030
|
-
};
|
6031
|
-
const arrowDirection = {
|
6032
|
-
top: "hawa-arrow-default-bottom",
|
6033
|
-
bottom: "hawa-arrow-default-top",
|
6034
|
-
right: "hawa-arrow-default-left",
|
6035
|
-
left: "hawa-arrow-default-right"
|
6036
|
-
};
|
6037
|
-
return /* @__PURE__ */ React44.createElement(
|
6038
|
-
"div",
|
6039
|
-
{
|
6040
|
-
className: cn(
|
6041
|
-
"data-[floatbox-state=closed]:hawa-invisible data-[floatbox-state=open]:hawa-visible hawa-absolute dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[floatbox-state=open]:hawa-animate-in data-[floatbox-state=closed]:hawa-animate-out data-[floatbox-state=closed]:hawa-fade-out-0 data-[floatbox-state=open]:hawa-fade-in-0 data-[floatbox-state=closed]:hawa-zoom-out-95 data-[floatbox-state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2 hawa-bg-popover",
|
6042
|
-
className
|
6043
|
-
),
|
6044
|
-
style: { ...stylesMap[side][align] },
|
6045
|
-
"data-side": side,
|
6046
|
-
"data-floatbox-state": open ? "open" : "closed"
|
6047
|
-
},
|
6048
|
-
withArrow && /* @__PURE__ */ React44.createElement("div", { className: cn(arrowDirection[side]) }),
|
6049
|
-
/* @__PURE__ */ React44.createElement("span", null, props.children)
|
6050
|
-
);
|
6051
|
-
};
|
6052
|
-
|
6053
6117
|
// elements/tabs/Tabs.tsx
|
6054
6118
|
var tabsListVariant = (0, import_tailwind_variants.tv)({
|
6055
6119
|
base: "",
|
@@ -6109,39 +6173,27 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
6109
6173
|
],
|
6110
6174
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
6111
6175
|
});
|
6112
|
-
var TabsContext =
|
6113
|
-
var Tabs =
|
6114
|
-
|
6115
|
-
|
6116
|
-
|
6117
|
-
|
6118
|
-
|
6119
|
-
|
6120
|
-
|
6121
|
-
|
6122
|
-
|
6123
|
-
|
6124
|
-
|
6125
|
-
)
|
6126
|
-
|
6127
|
-
|
6128
|
-
|
6129
|
-
|
6130
|
-
);
|
6131
|
-
|
6132
|
-
|
6133
|
-
const resize = () => {
|
6134
|
-
setSize(window.innerWidth);
|
6135
|
-
};
|
6136
|
-
resize();
|
6137
|
-
window.addEventListener("resize", resize);
|
6138
|
-
return () => {
|
6139
|
-
window.removeEventListener("resize", resize);
|
6140
|
-
};
|
6141
|
-
}
|
6142
|
-
}, []);
|
6143
|
-
if (props.scrollable && size < 768 && orientation === "horizontal") {
|
6144
|
-
return /* @__PURE__ */ React45.createElement(ScrollArea, { orientation: "horizontal", className: classNames == null ? void 0 : classNames.scrollArea }, /* @__PURE__ */ React45.createElement(
|
6176
|
+
var TabsContext = React44.createContext({ orientation: "horizontal", variant: "default", scrollable: false });
|
6177
|
+
var Tabs = React44.forwardRef(
|
6178
|
+
({ className, orientation, scrollable, variant = "default", ...props }, ref) => /* @__PURE__ */ React44.createElement(
|
6179
|
+
TabsPrimitive.Root,
|
6180
|
+
{
|
6181
|
+
ref,
|
6182
|
+
className: cn(
|
6183
|
+
"hawa-flex hawa-gap-2",
|
6184
|
+
orientation === "vertical" ? "hawa-flex-row" : "hawa-flex-col",
|
6185
|
+
className
|
6186
|
+
),
|
6187
|
+
...props
|
6188
|
+
},
|
6189
|
+
/* @__PURE__ */ React44.createElement(TabsContext.Provider, { value: { orientation, variant, scrollable } }, props.children)
|
6190
|
+
)
|
6191
|
+
);
|
6192
|
+
var TabsList = React44.forwardRef(({ className, classNames, ...props }, ref) => {
|
6193
|
+
const { orientation, variant, scrollable } = React44.useContext(TabsContext);
|
6194
|
+
const { width } = useViewportSize();
|
6195
|
+
if (scrollable && width < 768 && orientation === "horizontal") {
|
6196
|
+
return /* @__PURE__ */ React44.createElement(ScrollArea, { orientation: "horizontal", className: classNames == null ? void 0 : classNames.scrollArea }, /* @__PURE__ */ React44.createElement(
|
6145
6197
|
TabsPrimitive.List,
|
6146
6198
|
{
|
6147
6199
|
ref,
|
@@ -6154,7 +6206,7 @@ var TabsList = React45.forwardRef(({ className, classNames, ...props }, ref) =>
|
|
6154
6206
|
}
|
6155
6207
|
));
|
6156
6208
|
} else {
|
6157
|
-
return /* @__PURE__ */
|
6209
|
+
return /* @__PURE__ */ React44.createElement(
|
6158
6210
|
TabsPrimitive.List,
|
6159
6211
|
{
|
6160
6212
|
ref,
|
@@ -6169,37 +6221,52 @@ var TabsList = React45.forwardRef(({ className, classNames, ...props }, ref) =>
|
|
6169
6221
|
);
|
6170
6222
|
}
|
6171
6223
|
});
|
6172
|
-
var TabsTrigger =
|
6173
|
-
|
6174
|
-
|
6175
|
-
|
6176
|
-
|
6177
|
-
|
6178
|
-
|
6179
|
-
|
6180
|
-
|
6181
|
-
|
6182
|
-
|
6183
|
-
|
6184
|
-
|
6185
|
-
|
6186
|
-
|
6187
|
-
|
6188
|
-
|
6189
|
-
|
6190
|
-
|
6191
|
-
|
6192
|
-
|
6193
|
-
|
6194
|
-
|
6195
|
-
|
6196
|
-
|
6197
|
-
|
6198
|
-
|
6199
|
-
|
6200
|
-
|
6201
|
-
|
6202
|
-
|
6224
|
+
var TabsTrigger = React44.forwardRef(
|
6225
|
+
({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
|
6226
|
+
const { orientation, variant } = React44.useContext(TabsContext);
|
6227
|
+
if (withPopover) {
|
6228
|
+
return /* @__PURE__ */ React44.createElement(Popover2.Root, { open: props.showPopover }, /* @__PURE__ */ React44.createElement(Popover2.Anchor, { asChild: true }, /* @__PURE__ */ React44.createElement(
|
6229
|
+
TabsPrimitive.Trigger,
|
6230
|
+
{
|
6231
|
+
className: cn(
|
6232
|
+
tabsTriggerVariant({ variant, orientation }),
|
6233
|
+
"hawa-relative",
|
6234
|
+
className
|
6235
|
+
),
|
6236
|
+
...props
|
6237
|
+
},
|
6238
|
+
props.children,
|
6239
|
+
chipProps && /* @__PURE__ */ React44.createElement(Chip, { ...chipProps })
|
6240
|
+
)), /* @__PURE__ */ React44.createElement(
|
6241
|
+
Popover2.Content,
|
6242
|
+
{
|
6243
|
+
onClick: onPopoverClick,
|
6244
|
+
asChild: true,
|
6245
|
+
className: cn(
|
6246
|
+
"dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
6247
|
+
"hawa-arrow-default-top hawa-mt-2"
|
6248
|
+
)
|
6249
|
+
},
|
6250
|
+
/* @__PURE__ */ React44.createElement("div", { className: "hawa-p-2" }, " ", props.popoverContent)
|
6251
|
+
));
|
6252
|
+
} else {
|
6253
|
+
return /* @__PURE__ */ React44.createElement(
|
6254
|
+
TabsPrimitive.Trigger,
|
6255
|
+
{
|
6256
|
+
className: cn(
|
6257
|
+
tabsTriggerVariant({ variant, orientation }),
|
6258
|
+
"hawa-relative",
|
6259
|
+
className
|
6260
|
+
),
|
6261
|
+
...props
|
6262
|
+
},
|
6263
|
+
props.children,
|
6264
|
+
chipProps && /* @__PURE__ */ React44.createElement(Chip, { ...chipProps })
|
6265
|
+
);
|
6266
|
+
}
|
6267
|
+
}
|
6268
|
+
);
|
6269
|
+
var TabsContent = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React44.createElement(
|
6203
6270
|
TabsPrimitive.Content,
|
6204
6271
|
{
|
6205
6272
|
ref,
|
@@ -6217,7 +6284,7 @@ TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
6217
6284
|
|
6218
6285
|
// blocks/misc/LegalTexts.tsx
|
6219
6286
|
var LegalTexts = ({ tabs, ...props }) => {
|
6220
|
-
return /* @__PURE__ */
|
6287
|
+
return /* @__PURE__ */ import_react50.default.createElement(
|
6221
6288
|
Tabs,
|
6222
6289
|
{
|
6223
6290
|
value: props.activeTab,
|
@@ -6225,8 +6292,8 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
6225
6292
|
defaultValue: props.defaultTab || tabs[0].value,
|
6226
6293
|
dir: props.direction
|
6227
6294
|
},
|
6228
|
-
/* @__PURE__ */
|
6229
|
-
tabs.map((tab, index) => /* @__PURE__ */
|
6295
|
+
/* @__PURE__ */ import_react50.default.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ import_react50.default.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
|
6296
|
+
tabs.map((tab, index) => /* @__PURE__ */ import_react50.default.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ import_react50.default.createElement(
|
6230
6297
|
ScrollArea,
|
6231
6298
|
{
|
6232
6299
|
className: cn(
|
@@ -6240,9 +6307,9 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
6240
6307
|
};
|
6241
6308
|
|
6242
6309
|
// blocks/misc/EmptyState.tsx
|
6243
|
-
var
|
6310
|
+
var import_react51 = __toESM(require("react"));
|
6244
6311
|
var EmptyState = ({ texts, onActionClick }) => {
|
6245
|
-
return /* @__PURE__ */
|
6312
|
+
return /* @__PURE__ */ import_react51.default.createElement(Card, null, /* @__PURE__ */ import_react51.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react51.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center " }, /* @__PURE__ */ import_react51.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_react51.default.createElement(
|
6246
6313
|
"svg",
|
6247
6314
|
{
|
6248
6315
|
stroke: "currentColor",
|
@@ -6252,30 +6319,30 @@ var EmptyState = ({ texts, onActionClick }) => {
|
|
6252
6319
|
height: "0.35em",
|
6253
6320
|
width: "0.35em"
|
6254
6321
|
},
|
6255
|
-
/* @__PURE__ */
|
6256
|
-
)), /* @__PURE__ */
|
6322
|
+
/* @__PURE__ */ import_react51.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" })
|
6323
|
+
)), /* @__PURE__ */ import_react51.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_react51.default.createElement(CardFooter, null, /* @__PURE__ */ import_react51.default.createElement(Button, { className: "hawa-w-full", onClick: () => onActionClick() }, (texts == null ? void 0 : texts.actionText) || "Go Home")));
|
6257
6324
|
};
|
6258
6325
|
|
6259
6326
|
// blocks/misc/Testimonial.tsx
|
6260
|
-
var
|
6327
|
+
var import_react52 = __toESM(require("react"));
|
6261
6328
|
var Testimonial = () => {
|
6262
|
-
return /* @__PURE__ */
|
6329
|
+
return /* @__PURE__ */ import_react52.default.createElement(Card, null, /* @__PURE__ */ import_react52.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react52.default.createElement("div", null, /* @__PURE__ */ import_react52.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_react52.default.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ import_react52.default.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ import_react52.default.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ import_react52.default.createElement(
|
6263
6330
|
"path",
|
6264
6331
|
{
|
6265
6332
|
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",
|
6266
6333
|
fill: "#FFFFFF"
|
6267
6334
|
}
|
6268
|
-
), /* @__PURE__ */
|
6335
|
+
), /* @__PURE__ */ import_react52.default.createElement(
|
6269
6336
|
"path",
|
6270
6337
|
{
|
6271
6338
|
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",
|
6272
6339
|
fill: "#FFFFFF"
|
6273
6340
|
}
|
6274
|
-
)), /* @__PURE__ */
|
6341
|
+
)), /* @__PURE__ */ import_react52.default.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ import_react52.default.createElement("div", null, /* @__PURE__ */ import_react52.default.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ import_react52.default.createElement("div", null, " Chief Information Security Officer")))));
|
6275
6342
|
};
|
6276
6343
|
|
6277
6344
|
// blocks/misc/LeadGenerator.tsx
|
6278
|
-
var
|
6345
|
+
var import_react53 = __toESM(require("react"));
|
6279
6346
|
var import_react_hook_form8 = require("react-hook-form");
|
6280
6347
|
var LeadGenerator = ({ texts, submitHandler }) => {
|
6281
6348
|
var _a;
|
@@ -6287,14 +6354,14 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
6287
6354
|
console.log("handleNewsletterSub props was not provided");
|
6288
6355
|
}
|
6289
6356
|
};
|
6290
|
-
return /* @__PURE__ */
|
6357
|
+
return /* @__PURE__ */ import_react53.default.createElement(Card, null, /* @__PURE__ */ import_react53.default.createElement(CardHeader, null, /* @__PURE__ */ import_react53.default.createElement(CardTitle, null, texts == null ? void 0 : texts.title), /* @__PURE__ */ import_react53.default.createElement(CardDescription, null, texts == null ? void 0 : texts.subtitle)), /* @__PURE__ */ import_react53.default.createElement(CardContent, null, /* @__PURE__ */ import_react53.default.createElement(
|
6291
6358
|
"form",
|
6292
6359
|
{
|
6293
6360
|
noValidate: true,
|
6294
6361
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
6295
6362
|
onSubmit: handleSubmit(onSubmit)
|
6296
6363
|
},
|
6297
|
-
/* @__PURE__ */
|
6364
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
6298
6365
|
import_react_hook_form8.Controller,
|
6299
6366
|
{
|
6300
6367
|
name: "email",
|
@@ -6307,27 +6374,27 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
6307
6374
|
}
|
6308
6375
|
},
|
6309
6376
|
defaultValue: "",
|
6310
|
-
render: ({ field }) => /* @__PURE__ */
|
6377
|
+
render: ({ field }) => /* @__PURE__ */ import_react53.default.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
|
6311
6378
|
}
|
6312
6379
|
),
|
6313
|
-
/* @__PURE__ */
|
6380
|
+
/* @__PURE__ */ import_react53.default.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
|
6314
6381
|
)));
|
6315
6382
|
};
|
6316
6383
|
|
6317
6384
|
// blocks/misc/Announcement.tsx
|
6318
|
-
var
|
6385
|
+
var import_react54 = __toESM(require("react"));
|
6319
6386
|
var Announcement = ({
|
6320
6387
|
onActionClick,
|
6321
6388
|
...props
|
6322
6389
|
}) => {
|
6323
|
-
return /* @__PURE__ */
|
6390
|
+
return /* @__PURE__ */ import_react54.default.createElement(Card, null, /* @__PURE__ */ import_react54.default.createElement(
|
6324
6391
|
CardContent,
|
6325
6392
|
{
|
6326
6393
|
headless: true,
|
6327
6394
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
6328
6395
|
},
|
6329
|
-
/* @__PURE__ */
|
6330
|
-
/* @__PURE__ */
|
6396
|
+
/* @__PURE__ */ import_react54.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center " }, /* @__PURE__ */ import_react54.default.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ import_react54.default.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
|
6397
|
+
/* @__PURE__ */ import_react54.default.createElement(
|
6331
6398
|
Button,
|
6332
6399
|
{
|
6333
6400
|
onClick: () => onActionClick(),
|
@@ -6339,15 +6406,15 @@ var Announcement = ({
|
|
6339
6406
|
};
|
6340
6407
|
|
6341
6408
|
// blocks/misc/NotFound.tsx
|
6342
|
-
var
|
6409
|
+
var import_react55 = __toESM(require("react"));
|
6343
6410
|
var NotFound = ({ texts }) => {
|
6344
|
-
return /* @__PURE__ */
|
6411
|
+
return /* @__PURE__ */ import_react55.default.createElement(Card, null, /* @__PURE__ */ import_react55.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react55.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white" }, /* @__PURE__ */ import_react55.default.createElement("div", { className: "hawa-text-center hawa-text-6xl hawa-font-bold " }, "404"), /* @__PURE__ */ import_react55.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_react55.default.createElement("div", { className: "hawa-mb-4 hawa-text-center" }, (texts == null ? void 0 : texts.ifLost) || /* @__PURE__ */ import_react55.default.createElement(import_react55.default.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ import_react55.default.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ import_react55.default.createElement(Button, { className: "hawa-w-full" }, (texts == null ? void 0 : texts.home) || "Home"))));
|
6345
6412
|
};
|
6346
6413
|
|
6347
6414
|
// blocks/misc/NoPermission.tsx
|
6348
|
-
var
|
6415
|
+
var import_react56 = __toESM(require("react"));
|
6349
6416
|
var NoPermission = ({ texts }) => {
|
6350
|
-
return /* @__PURE__ */
|
6417
|
+
return /* @__PURE__ */ import_react56.default.createElement(Card, null, /* @__PURE__ */ import_react56.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react56.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ import_react56.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_react56.default.createElement(
|
6351
6418
|
"svg",
|
6352
6419
|
{
|
6353
6420
|
stroke: "currentColor",
|
@@ -6357,12 +6424,12 @@ var NoPermission = ({ texts }) => {
|
|
6357
6424
|
height: "0.35em",
|
6358
6425
|
width: "0.35em"
|
6359
6426
|
},
|
6360
|
-
/* @__PURE__ */
|
6361
|
-
)), /* @__PURE__ */
|
6427
|
+
/* @__PURE__ */ import_react56.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" })
|
6428
|
+
)), /* @__PURE__ */ import_react56.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_react56.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"))));
|
6362
6429
|
};
|
6363
6430
|
|
6364
6431
|
// blocks/misc/ContactForm.tsx
|
6365
|
-
var
|
6432
|
+
var import_react57 = __toESM(require("react"));
|
6366
6433
|
var import_react_hook_form9 = require("react-hook-form");
|
6367
6434
|
var import_zod8 = require("@hookform/resolvers/zod");
|
6368
6435
|
var z8 = __toESM(require("zod"));
|
@@ -6374,6 +6441,7 @@ var ContactForm = ({
|
|
6374
6441
|
formAutoComplete = "off",
|
6375
6442
|
onSubmit,
|
6376
6443
|
customFields,
|
6444
|
+
classNames,
|
6377
6445
|
...props
|
6378
6446
|
}) => {
|
6379
6447
|
var _a, _b, _c, _d, _e;
|
@@ -6435,7 +6503,7 @@ var ContactForm = ({
|
|
6435
6503
|
console.log("Form is submitted but onSubmit prop is missing");
|
6436
6504
|
}
|
6437
6505
|
};
|
6438
|
-
return /* @__PURE__ */
|
6506
|
+
return /* @__PURE__ */ import_react57.default.createElement(
|
6439
6507
|
Card,
|
6440
6508
|
{
|
6441
6509
|
className: cn(
|
@@ -6444,7 +6512,7 @@ var ContactForm = ({
|
|
6444
6512
|
),
|
6445
6513
|
style: cardless ? { boxShadow: "none" } : void 0
|
6446
6514
|
},
|
6447
|
-
/* @__PURE__ */
|
6515
|
+
/* @__PURE__ */ import_react57.default.createElement(CardContent, { headless: true, className: cardless ? "!hawa-p-0" : "" }, props.showSuccess ? /* @__PURE__ */ import_react57.default.createElement(CardHeader, null, /* @__PURE__ */ import_react57.default.createElement(CardTitle, null, ((_d = texts == null ? void 0 : texts.success) == null ? void 0 : _d.title) || "Message Sent! \u{1F389}"), /* @__PURE__ */ import_react57.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_react57.default.createElement(
|
6448
6516
|
"form",
|
6449
6517
|
{
|
6450
6518
|
noValidate: true,
|
@@ -6453,7 +6521,7 @@ var ContactForm = ({
|
|
6453
6521
|
id: formId,
|
6454
6522
|
autoComplete: formAutoComplete
|
6455
6523
|
},
|
6456
|
-
/* @__PURE__ */
|
6524
|
+
/* @__PURE__ */ import_react57.default.createElement(
|
6457
6525
|
"div",
|
6458
6526
|
{
|
6459
6527
|
className: cn(
|
@@ -6464,14 +6532,14 @@ var ContactForm = ({
|
|
6464
6532
|
}
|
6465
6533
|
)
|
6466
6534
|
},
|
6467
|
-
/* @__PURE__ */
|
6535
|
+
/* @__PURE__ */ import_react57.default.createElement(
|
6468
6536
|
import_react_hook_form9.Controller,
|
6469
6537
|
{
|
6470
6538
|
control,
|
6471
6539
|
name: "name",
|
6472
6540
|
render: ({ field }) => {
|
6473
6541
|
var _a2;
|
6474
|
-
return /* @__PURE__ */
|
6542
|
+
return /* @__PURE__ */ import_react57.default.createElement(
|
6475
6543
|
Input,
|
6476
6544
|
{
|
6477
6545
|
label: (texts == null ? void 0 : texts.name.label) || "Name",
|
@@ -6484,14 +6552,14 @@ var ContactForm = ({
|
|
6484
6552
|
}
|
6485
6553
|
}
|
6486
6554
|
),
|
6487
|
-
/* @__PURE__ */
|
6555
|
+
/* @__PURE__ */ import_react57.default.createElement(
|
6488
6556
|
import_react_hook_form9.Controller,
|
6489
6557
|
{
|
6490
6558
|
control,
|
6491
6559
|
name: "email",
|
6492
6560
|
render: ({ field }) => {
|
6493
6561
|
var _a2;
|
6494
|
-
return /* @__PURE__ */
|
6562
|
+
return /* @__PURE__ */ import_react57.default.createElement(
|
6495
6563
|
Input,
|
6496
6564
|
{
|
6497
6565
|
label: (texts == null ? void 0 : texts.email.label) || "Email",
|
@@ -6507,7 +6575,7 @@ var ContactForm = ({
|
|
6507
6575
|
),
|
6508
6576
|
customFields && customFields.map((customField) => {
|
6509
6577
|
console.log("custom", customField);
|
6510
|
-
return /* @__PURE__ */
|
6578
|
+
return /* @__PURE__ */ import_react57.default.createElement(
|
6511
6579
|
import_react_hook_form9.Controller,
|
6512
6580
|
{
|
6513
6581
|
control,
|
@@ -6517,7 +6585,7 @@ var ContactForm = ({
|
|
6517
6585
|
switch (type) {
|
6518
6586
|
case "text":
|
6519
6587
|
case "number":
|
6520
|
-
return /* @__PURE__ */
|
6588
|
+
return /* @__PURE__ */ import_react57.default.createElement(
|
6521
6589
|
Input,
|
6522
6590
|
{
|
6523
6591
|
id: customField.name,
|
@@ -6528,7 +6596,7 @@ var ContactForm = ({
|
|
6528
6596
|
}
|
6529
6597
|
);
|
6530
6598
|
case "select":
|
6531
|
-
return /* @__PURE__ */
|
6599
|
+
return /* @__PURE__ */ import_react57.default.createElement(
|
6532
6600
|
Select,
|
6533
6601
|
{
|
6534
6602
|
label,
|
@@ -6538,20 +6606,20 @@ var ContactForm = ({
|
|
6538
6606
|
}
|
6539
6607
|
);
|
6540
6608
|
default:
|
6541
|
-
return /* @__PURE__ */
|
6609
|
+
return /* @__PURE__ */ import_react57.default.createElement("div", null, "Unknown type");
|
6542
6610
|
}
|
6543
6611
|
}
|
6544
6612
|
}
|
6545
6613
|
);
|
6546
6614
|
}),
|
6547
|
-
/* @__PURE__ */
|
6615
|
+
/* @__PURE__ */ import_react57.default.createElement(
|
6548
6616
|
import_react_hook_form9.Controller,
|
6549
6617
|
{
|
6550
6618
|
control,
|
6551
6619
|
name: "message",
|
6552
6620
|
render: ({ field }) => {
|
6553
6621
|
var _a2;
|
6554
|
-
return /* @__PURE__ */
|
6622
|
+
return /* @__PURE__ */ import_react57.default.createElement(
|
6555
6623
|
Textarea,
|
6556
6624
|
{
|
6557
6625
|
label: (texts == null ? void 0 : texts.message.label) || "Message",
|
@@ -6568,19 +6636,26 @@ var ContactForm = ({
|
|
6568
6636
|
}
|
6569
6637
|
}
|
6570
6638
|
),
|
6571
|
-
/* @__PURE__ */
|
6639
|
+
/* @__PURE__ */ import_react57.default.createElement(
|
6640
|
+
Button,
|
6641
|
+
{
|
6642
|
+
type: "submit",
|
6643
|
+
className: cn("hawa-w-full", classNames == null ? void 0 : classNames.submitButton)
|
6644
|
+
},
|
6645
|
+
(texts == null ? void 0 : texts.submit) || "Submit"
|
6646
|
+
)
|
6572
6647
|
))
|
6573
6648
|
);
|
6574
6649
|
};
|
6575
6650
|
|
6576
6651
|
// blocks/pricing/PricingPlans.tsx
|
6577
|
-
var
|
6652
|
+
var import_react64 = __toESM(require("react"));
|
6578
6653
|
|
6579
6654
|
// blocks/cards/ActionCard.tsx
|
6580
|
-
var
|
6655
|
+
var import_react58 = __toESM(require("react"));
|
6581
6656
|
var ActionCard = (props) => {
|
6582
|
-
const [hovered, setHovered] = (0,
|
6583
|
-
return /* @__PURE__ */
|
6657
|
+
const [hovered, setHovered] = (0, import_react58.useState)(false);
|
6658
|
+
return /* @__PURE__ */ import_react58.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ import_react58.default.createElement(
|
6584
6659
|
"div",
|
6585
6660
|
{
|
6586
6661
|
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",
|
@@ -6590,7 +6665,7 @@ var ActionCard = (props) => {
|
|
6590
6665
|
onMouseEnter: () => setHovered(true),
|
6591
6666
|
onMouseLeave: () => setHovered(false)
|
6592
6667
|
},
|
6593
|
-
props.blank ? /* @__PURE__ */
|
6668
|
+
props.blank ? /* @__PURE__ */ import_react58.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center " }, /* @__PURE__ */ import_react58.default.createElement(
|
6594
6669
|
"svg",
|
6595
6670
|
{
|
6596
6671
|
className: "hawa-h-10 hawa-w-10 hawa-text-foreground",
|
@@ -6602,11 +6677,11 @@ var ActionCard = (props) => {
|
|
6602
6677
|
width: "1em",
|
6603
6678
|
xmlns: "http://www.w3.org/2000/svg"
|
6604
6679
|
},
|
6605
|
-
/* @__PURE__ */
|
6606
|
-
)) : /* @__PURE__ */
|
6607
|
-
/* @__PURE__ */
|
6608
|
-
!props.blank && /* @__PURE__ */
|
6609
|
-
), /* @__PURE__ */
|
6680
|
+
/* @__PURE__ */ import_react58.default.createElement("path", { d: "M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z" })
|
6681
|
+
)) : /* @__PURE__ */ import_react58.default.createElement("div", { className: "hawa-absolute hawa-inset-0 hawa-rounded hawa-bg-black hawa-opacity-50" }),
|
6682
|
+
/* @__PURE__ */ import_react58.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),
|
6683
|
+
!props.blank && /* @__PURE__ */ import_react58.default.createElement("div", { className: "hawa-relative hawa-p-4" }, /* @__PURE__ */ import_react58.default.createElement("h1", { className: "hawa-text-white" }, props.title), /* @__PURE__ */ import_react58.default.createElement("p", { className: "hawa-text-white" }, props.subtitle))
|
6684
|
+
), /* @__PURE__ */ import_react58.default.createElement(
|
6610
6685
|
"div",
|
6611
6686
|
{
|
6612
6687
|
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"}`
|
@@ -6616,15 +6691,15 @@ var ActionCard = (props) => {
|
|
6616
6691
|
};
|
6617
6692
|
|
6618
6693
|
// blocks/cards/AdCard.tsx
|
6619
|
-
var
|
6694
|
+
var import_react59 = __toESM(require("react"));
|
6620
6695
|
var AdCard = ({
|
6621
6696
|
orientation = "vertical",
|
6622
6697
|
...props
|
6623
6698
|
}) => {
|
6624
|
-
const adRef = (0,
|
6625
|
-
const [closed, setClosed] = (0,
|
6699
|
+
const adRef = (0, import_react59.useRef)(null);
|
6700
|
+
const [closed, setClosed] = (0, import_react59.useState)(false);
|
6626
6701
|
let duration = 0;
|
6627
|
-
(0,
|
6702
|
+
(0, import_react59.useEffect)(() => {
|
6628
6703
|
if (duration) {
|
6629
6704
|
const timeoutHide = setTimeout(() => {
|
6630
6705
|
setClosed(true);
|
@@ -6649,21 +6724,21 @@ var AdCard = ({
|
|
6649
6724
|
horizontal: "hawa-w-auto hawa-h-full hawa-bg-blue-500 hawa-rounded-inner",
|
6650
6725
|
vertical: "hawa-bg-blue-500 hawa-rounded-inner hawa-w-auto "
|
6651
6726
|
};
|
6652
|
-
return /* @__PURE__ */
|
6727
|
+
return /* @__PURE__ */ import_react59.default.createElement("div", { ref: adRef }, /* @__PURE__ */ import_react59.default.createElement(
|
6653
6728
|
"div",
|
6654
6729
|
{
|
6655
6730
|
className: cn(cardStyles[orientation], props.className),
|
6656
6731
|
onClick: props.handleClick
|
6657
6732
|
},
|
6658
|
-
/* @__PURE__ */
|
6733
|
+
/* @__PURE__ */ import_react59.default.createElement("div", { className: "hawa-flex hawa-aspect-square hawa-w-full hawa-max-w-fit hawa-items-start " }, /* @__PURE__ */ import_react59.default.createElement(
|
6659
6734
|
"img",
|
6660
6735
|
{
|
6661
6736
|
src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
|
6662
6737
|
className: imageStyles[orientation]
|
6663
6738
|
}
|
6664
6739
|
)),
|
6665
|
-
/* @__PURE__ */
|
6666
|
-
props.canHide && /* @__PURE__ */
|
6740
|
+
/* @__PURE__ */ import_react59.default.createElement("div", { className: "hawa-w-full hawa-text-xs" }, /* @__PURE__ */ import_react59.default.createElement("div", { className: "hawa-font-bold" }, props.title), /* @__PURE__ */ import_react59.default.createElement("div", { className: "hawa-text-[12px]" }, props.description)),
|
6741
|
+
props.canHide && /* @__PURE__ */ import_react59.default.createElement(
|
6667
6742
|
"span",
|
6668
6743
|
{
|
6669
6744
|
onClick: (e) => {
|
@@ -6689,15 +6764,15 @@ var AdCard = ({
|
|
6689
6764
|
};
|
6690
6765
|
|
6691
6766
|
// blocks/cards/PricingCard.tsx
|
6692
|
-
var
|
6767
|
+
var import_react60 = __toESM(require("react"));
|
6693
6768
|
|
6694
6769
|
// elements/separator/Separator.tsx
|
6695
|
-
var
|
6770
|
+
var React55 = __toESM(require("react"));
|
6696
6771
|
var Separator = ({
|
6697
6772
|
className,
|
6698
6773
|
orientation = "horizontal",
|
6699
6774
|
...props
|
6700
|
-
}) => /* @__PURE__ */
|
6775
|
+
}) => /* @__PURE__ */ React55.createElement(
|
6701
6776
|
"div",
|
6702
6777
|
{
|
6703
6778
|
className: cn(
|
@@ -6724,13 +6799,13 @@ var PricingCard = ({
|
|
6724
6799
|
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
6725
6800
|
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
6726
6801
|
};
|
6727
|
-
return /* @__PURE__ */
|
6802
|
+
return /* @__PURE__ */ import_react60.default.createElement(import_react60.default.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ import_react60.default.createElement(
|
6728
6803
|
Skeleton,
|
6729
6804
|
{
|
6730
6805
|
className: cn(cardSizes[size], "hawa-h-[200px]"),
|
6731
6806
|
fade: "bottom"
|
6732
6807
|
}
|
6733
|
-
) : /* @__PURE__ */
|
6808
|
+
) : /* @__PURE__ */ import_react60.default.createElement(
|
6734
6809
|
Card,
|
6735
6810
|
{
|
6736
6811
|
dir: direction,
|
@@ -6741,7 +6816,7 @@ var PricingCard = ({
|
|
6741
6816
|
recommended ? "hawa-rounded hawa-rounded-t-none" : "hawa-rounded"
|
6742
6817
|
)
|
6743
6818
|
},
|
6744
|
-
recommended && /* @__PURE__ */
|
6819
|
+
recommended && /* @__PURE__ */ import_react60.default.createElement(
|
6745
6820
|
"div",
|
6746
6821
|
{
|
6747
6822
|
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",
|
@@ -6749,7 +6824,7 @@ var PricingCard = ({
|
|
6749
6824
|
},
|
6750
6825
|
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
6751
6826
|
),
|
6752
|
-
/* @__PURE__ */
|
6827
|
+
/* @__PURE__ */ import_react60.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ import_react60.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_react60.default.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ import_react60.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_react60.default.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ import_react60.default.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ import_react60.default.createElement("div", { className: " hawa-flex hawa-items-baseline hawa-text-primary" }, props.isLoadingPrice ? /* @__PURE__ */ import_react60.default.createElement(Skeleton, { className: "hawa-h-[48px] hawa-w-full hawa-max-w-[200px] hawa-p-0 " }) : /* @__PURE__ */ import_react60.default.createElement(import_react60.default.Fragment, null, props.noPrice ? /* @__PURE__ */ import_react60.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_react60.default.createElement(import_react60.default.Fragment, null, /* @__PURE__ */ import_react60.default.createElement(import_react60.default.Fragment, null, /* @__PURE__ */ import_react60.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-end hawa-gap-2" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ import_react60.default.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + ((_e = props.texts) == null ? void 0 : _e.currencyText)), /* @__PURE__ */ import_react60.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ import_react60.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, (_f = props.texts) == null ? void 0 : _f.currencyText)), /* @__PURE__ */ import_react60.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_react60.default.createElement(Separator, null), /* @__PURE__ */ import_react60.default.createElement(
|
6753
6828
|
"div",
|
6754
6829
|
{
|
6755
6830
|
className: cn(
|
@@ -6757,9 +6832,9 @@ var PricingCard = ({
|
|
6757
6832
|
endButton ? "hawa-flex-col" : "hawa-flex-col-reverse"
|
6758
6833
|
)
|
6759
6834
|
},
|
6760
|
-
props.features && /* @__PURE__ */
|
6835
|
+
props.features && /* @__PURE__ */ import_react60.default.createElement("ul", { role: "list", className: "hawa-space-y-0 hawa-overflow-x-auto" }, (_h = props.features) == null ? void 0 : _h.map((feature, o) => {
|
6761
6836
|
var _a2;
|
6762
|
-
return /* @__PURE__ */
|
6837
|
+
return /* @__PURE__ */ import_react60.default.createElement(
|
6763
6838
|
"li",
|
6764
6839
|
{
|
6765
6840
|
key: o,
|
@@ -6768,7 +6843,7 @@ var PricingCard = ({
|
|
6768
6843
|
!feature.included && "hawa-line-through"
|
6769
6844
|
)
|
6770
6845
|
},
|
6771
|
-
/* @__PURE__ */
|
6846
|
+
/* @__PURE__ */ import_react60.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center" }, feature.included ? /* @__PURE__ */ import_react60.default.createElement(
|
6772
6847
|
"svg",
|
6773
6848
|
{
|
6774
6849
|
"aria-label": "Check Icon",
|
@@ -6777,7 +6852,7 @@ var PricingCard = ({
|
|
6777
6852
|
fill: "currentColor",
|
6778
6853
|
viewBox: "0 0 20 20"
|
6779
6854
|
},
|
6780
|
-
/* @__PURE__ */
|
6855
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
6781
6856
|
"path",
|
6782
6857
|
{
|
6783
6858
|
fillRule: "evenodd",
|
@@ -6785,7 +6860,7 @@ var PricingCard = ({
|
|
6785
6860
|
clipRule: "evenodd"
|
6786
6861
|
}
|
6787
6862
|
)
|
6788
|
-
) : /* @__PURE__ */
|
6863
|
+
) : /* @__PURE__ */ import_react60.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_react60.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_react60.default.createElement(
|
6789
6864
|
Chip,
|
6790
6865
|
{
|
6791
6866
|
label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "",
|
@@ -6793,13 +6868,13 @@ var PricingCard = ({
|
|
6793
6868
|
size: "small"
|
6794
6869
|
}
|
6795
6870
|
))),
|
6796
|
-
feature.hint && /* @__PURE__ */
|
6871
|
+
feature.hint && /* @__PURE__ */ import_react60.default.createElement(
|
6797
6872
|
Tooltip,
|
6798
6873
|
{
|
6799
6874
|
content: feature.hint,
|
6800
6875
|
side: feature.hintSide
|
6801
6876
|
},
|
6802
|
-
/* @__PURE__ */
|
6877
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
6803
6878
|
"svg",
|
6804
6879
|
{
|
6805
6880
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6811,14 +6886,14 @@ var PricingCard = ({
|
|
6811
6886
|
strokeLinecap: "round",
|
6812
6887
|
strokeLinejoin: "round"
|
6813
6888
|
},
|
6814
|
-
/* @__PURE__ */
|
6815
|
-
/* @__PURE__ */
|
6816
|
-
/* @__PURE__ */
|
6889
|
+
/* @__PURE__ */ import_react60.default.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
6890
|
+
/* @__PURE__ */ import_react60.default.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
6891
|
+
/* @__PURE__ */ import_react60.default.createElement("path", { d: "M12 17h.01" })
|
6817
6892
|
)
|
6818
6893
|
)
|
6819
6894
|
);
|
6820
6895
|
})),
|
6821
|
-
/* @__PURE__ */
|
6896
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
6822
6897
|
Button,
|
6823
6898
|
{
|
6824
6899
|
onClick: props.onPlanClicked,
|
@@ -6832,17 +6907,17 @@ var PricingCard = ({
|
|
6832
6907
|
};
|
6833
6908
|
|
6834
6909
|
// blocks/cards/ItemCard.tsx
|
6835
|
-
var
|
6910
|
+
var import_react62 = __toESM(require("react"));
|
6836
6911
|
|
6837
6912
|
// elements/dropdownMenu/DropdownMenu.tsx
|
6838
|
-
var
|
6839
|
-
var
|
6913
|
+
var React57 = __toESM(require("react"));
|
6914
|
+
var import_react61 = require("@headlessui/react");
|
6840
6915
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
6841
6916
|
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
6842
6917
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
6843
6918
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
6844
6919
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
6845
|
-
var DropdownMenuSubTrigger =
|
6920
|
+
var DropdownMenuSubTrigger = React57.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
6846
6921
|
DropdownMenuPrimitive.SubTrigger,
|
6847
6922
|
{
|
6848
6923
|
ref,
|
@@ -6853,9 +6928,9 @@ var DropdownMenuSubTrigger = React58.forwardRef(({ className, inset, children, .
|
|
6853
6928
|
),
|
6854
6929
|
...props
|
6855
6930
|
},
|
6856
|
-
/* @__PURE__ */
|
6931
|
+
/* @__PURE__ */ React57.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
|
6857
6932
|
" ",
|
6858
|
-
/* @__PURE__ */
|
6933
|
+
/* @__PURE__ */ React57.createElement(
|
6859
6934
|
"svg",
|
6860
6935
|
{
|
6861
6936
|
"aria-label": "Chevron Right Icon",
|
@@ -6867,7 +6942,7 @@ var DropdownMenuSubTrigger = React58.forwardRef(({ className, inset, children, .
|
|
6867
6942
|
width: "1em",
|
6868
6943
|
className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
|
6869
6944
|
},
|
6870
|
-
/* @__PURE__ */
|
6945
|
+
/* @__PURE__ */ React57.createElement(
|
6871
6946
|
"path",
|
6872
6947
|
{
|
6873
6948
|
fillRule: "evenodd",
|
@@ -6877,7 +6952,7 @@ var DropdownMenuSubTrigger = React58.forwardRef(({ className, inset, children, .
|
|
6877
6952
|
)
|
6878
6953
|
));
|
6879
6954
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
6880
|
-
var DropdownMenuSubContent =
|
6955
|
+
var DropdownMenuSubContent = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
6881
6956
|
DropdownMenuPrimitive.SubContent,
|
6882
6957
|
{
|
6883
6958
|
ref,
|
@@ -6889,7 +6964,7 @@ var DropdownMenuSubContent = React58.forwardRef(({ className, ...props }, ref) =
|
|
6889
6964
|
}
|
6890
6965
|
));
|
6891
6966
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
6892
|
-
var DropdownMenuContent =
|
6967
|
+
var DropdownMenuContent = React57.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React57.createElement(import_react61.Portal, null, /* @__PURE__ */ React57.createElement(
|
6893
6968
|
DropdownMenuPrimitive.Content,
|
6894
6969
|
{
|
6895
6970
|
ref,
|
@@ -6902,8 +6977,8 @@ var DropdownMenuContent = React58.forwardRef(({ className, sideOffset = 4, ...pr
|
|
6902
6977
|
}
|
6903
6978
|
)));
|
6904
6979
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
6905
|
-
var DropdownMenuItem =
|
6906
|
-
return /* @__PURE__ */
|
6980
|
+
var DropdownMenuItem = React57.forwardRef(({ className, inset, badged, slug, LinkComponent = "a", ...props }, ref) => {
|
6981
|
+
return /* @__PURE__ */ React57.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React57.createElement(
|
6907
6982
|
DropdownMenuPrimitive.Item,
|
6908
6983
|
{
|
6909
6984
|
disabled: props.disabled,
|
@@ -6916,14 +6991,14 @@ var DropdownMenuItem = React58.forwardRef(({ className, inset, badged, slug, Lin
|
|
6916
6991
|
),
|
6917
6992
|
...props
|
6918
6993
|
},
|
6919
|
-
/* @__PURE__ */
|
6994
|
+
/* @__PURE__ */ React57.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
|
6920
6995
|
props.end && props.end,
|
6921
|
-
!props.end && props.shortcut && /* @__PURE__ */
|
6922
|
-
!props.end && badged && /* @__PURE__ */
|
6996
|
+
!props.end && props.shortcut && /* @__PURE__ */ React57.createElement(DropdownMenuShortcut, null, props.shortcut),
|
6997
|
+
!props.end && badged && /* @__PURE__ */ React57.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
|
6923
6998
|
));
|
6924
6999
|
});
|
6925
7000
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
6926
|
-
var DropdownMenuCheckboxItem =
|
7001
|
+
var DropdownMenuCheckboxItem = React57.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
6927
7002
|
DropdownMenuPrimitive.CheckboxItem,
|
6928
7003
|
{
|
6929
7004
|
ref,
|
@@ -6934,7 +7009,7 @@ var DropdownMenuCheckboxItem = React58.forwardRef(({ className, children, checke
|
|
6934
7009
|
checked,
|
6935
7010
|
...props
|
6936
7011
|
},
|
6937
|
-
/* @__PURE__ */
|
7012
|
+
/* @__PURE__ */ React57.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React57.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React57.createElement(
|
6938
7013
|
"svg",
|
6939
7014
|
{
|
6940
7015
|
"aria-label": "Check Mark",
|
@@ -6945,12 +7020,12 @@ var DropdownMenuCheckboxItem = React58.forwardRef(({ className, children, checke
|
|
6945
7020
|
height: "0.60em",
|
6946
7021
|
width: "0.60em"
|
6947
7022
|
},
|
6948
|
-
/* @__PURE__ */
|
7023
|
+
/* @__PURE__ */ React57.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" })
|
6949
7024
|
), " ")),
|
6950
7025
|
children
|
6951
7026
|
));
|
6952
7027
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
6953
|
-
var DropdownMenuRadioItem =
|
7028
|
+
var DropdownMenuRadioItem = React57.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
6954
7029
|
DropdownMenuPrimitive.RadioItem,
|
6955
7030
|
{
|
6956
7031
|
ref,
|
@@ -6960,7 +7035,7 @@ var DropdownMenuRadioItem = React58.forwardRef(({ className, children, ...props
|
|
6960
7035
|
),
|
6961
7036
|
...props
|
6962
7037
|
},
|
6963
|
-
/* @__PURE__ */
|
7038
|
+
/* @__PURE__ */ React57.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React57.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React57.createElement(
|
6964
7039
|
"svg",
|
6965
7040
|
{
|
6966
7041
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6975,12 +7050,12 @@ var DropdownMenuRadioItem = React58.forwardRef(({ className, children, ...props
|
|
6975
7050
|
strokeLinejoin: "round",
|
6976
7051
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
6977
7052
|
},
|
6978
|
-
/* @__PURE__ */
|
7053
|
+
/* @__PURE__ */ React57.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
6979
7054
|
))),
|
6980
7055
|
children
|
6981
7056
|
));
|
6982
7057
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
6983
|
-
var DropdownMenuLabel =
|
7058
|
+
var DropdownMenuLabel = React57.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
6984
7059
|
DropdownMenuPrimitive.Label,
|
6985
7060
|
{
|
6986
7061
|
ref,
|
@@ -6993,7 +7068,7 @@ var DropdownMenuLabel = React58.forwardRef(({ className, inset, ...props }, ref)
|
|
6993
7068
|
}
|
6994
7069
|
));
|
6995
7070
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
6996
|
-
var DropdownMenuSeparator =
|
7071
|
+
var DropdownMenuSeparator = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
6997
7072
|
DropdownMenuPrimitive.Separator,
|
6998
7073
|
{
|
6999
7074
|
ref,
|
@@ -7006,7 +7081,7 @@ var DropdownMenuShortcut = ({
|
|
7006
7081
|
className,
|
7007
7082
|
...props
|
7008
7083
|
}) => {
|
7009
|
-
return /* @__PURE__ */
|
7084
|
+
return /* @__PURE__ */ React57.createElement(
|
7010
7085
|
"span",
|
7011
7086
|
{
|
7012
7087
|
className: cn(
|
@@ -7048,10 +7123,10 @@ var DropdownMenu = ({
|
|
7048
7123
|
default: "hawa-px-2 hawa-py-3 ",
|
7049
7124
|
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
7050
7125
|
};
|
7051
|
-
let [values, setValues] =
|
7126
|
+
let [values, setValues] = React57.useState(
|
7052
7127
|
items.map((item) => item.currentOption)
|
7053
7128
|
);
|
7054
|
-
return /* @__PURE__ */
|
7129
|
+
return /* @__PURE__ */ React57.createElement(
|
7055
7130
|
DropdownMenuRoot,
|
7056
7131
|
{
|
7057
7132
|
onOpenChange,
|
@@ -7059,7 +7134,7 @@ var DropdownMenu = ({
|
|
7059
7134
|
modal: false,
|
7060
7135
|
dir: direction
|
7061
7136
|
},
|
7062
|
-
/* @__PURE__ */
|
7137
|
+
/* @__PURE__ */ React57.createElement(
|
7063
7138
|
DropdownMenuTrigger,
|
7064
7139
|
{
|
7065
7140
|
asChild: true,
|
@@ -7068,7 +7143,7 @@ var DropdownMenu = ({
|
|
7068
7143
|
},
|
7069
7144
|
trigger
|
7070
7145
|
),
|
7071
|
-
/* @__PURE__ */
|
7146
|
+
/* @__PURE__ */ React57.createElement(import_react61.Portal, null, /* @__PURE__ */ React57.createElement(
|
7072
7147
|
DropdownMenuContent,
|
7073
7148
|
{
|
7074
7149
|
side,
|
@@ -7090,7 +7165,7 @@ var DropdownMenu = ({
|
|
7090
7165
|
var _a;
|
7091
7166
|
const ItemLinkComponent = item.slug ? LinkComponent : "a";
|
7092
7167
|
if (item.itemType === "separator") {
|
7093
|
-
return /* @__PURE__ */
|
7168
|
+
return /* @__PURE__ */ React57.createElement(
|
7094
7169
|
DropdownMenuSeparator,
|
7095
7170
|
{
|
7096
7171
|
key: index,
|
@@ -7098,10 +7173,10 @@ var DropdownMenu = ({
|
|
7098
7173
|
}
|
7099
7174
|
);
|
7100
7175
|
} else if (item.itemType === "label") {
|
7101
|
-
return /* @__PURE__ */
|
7176
|
+
return /* @__PURE__ */ React57.createElement(DropdownMenuLabel, { key: index }, item.label);
|
7102
7177
|
} else if (item.itemType === "radio") {
|
7103
7178
|
let dd = item.currentOption;
|
7104
|
-
return /* @__PURE__ */
|
7179
|
+
return /* @__PURE__ */ React57.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React57.createElement(
|
7105
7180
|
DropdownMenuSubTrigger,
|
7106
7181
|
{
|
7107
7182
|
dir: direction,
|
@@ -7109,7 +7184,7 @@ var DropdownMenu = ({
|
|
7109
7184
|
},
|
7110
7185
|
item.icon && item.icon,
|
7111
7186
|
item.label && item.label
|
7112
|
-
), /* @__PURE__ */
|
7187
|
+
), /* @__PURE__ */ React57.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React57.createElement(
|
7113
7188
|
DropdownMenuRadioGroup,
|
7114
7189
|
{
|
7115
7190
|
value: values[index],
|
@@ -7123,12 +7198,12 @@ var DropdownMenu = ({
|
|
7123
7198
|
}
|
7124
7199
|
}
|
7125
7200
|
},
|
7126
|
-
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */
|
7201
|
+
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React57.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
|
7127
7202
|
)));
|
7128
7203
|
} else if (item.itemType === "custom") {
|
7129
|
-
return /* @__PURE__ */
|
7204
|
+
return /* @__PURE__ */ React57.createElement("div", { key: index }, item.content);
|
7130
7205
|
} else {
|
7131
|
-
return item.subitems ? /* @__PURE__ */
|
7206
|
+
return item.subitems ? /* @__PURE__ */ React57.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React57.createElement(
|
7132
7207
|
DropdownMenuSubTrigger,
|
7133
7208
|
{
|
7134
7209
|
dir: direction,
|
@@ -7136,9 +7211,9 @@ var DropdownMenu = ({
|
|
7136
7211
|
},
|
7137
7212
|
item.icon && item.icon,
|
7138
7213
|
item.label && item.label
|
7139
|
-
), /* @__PURE__ */
|
7214
|
+
), /* @__PURE__ */ React57.createElement(import_react61.Portal, null, /* @__PURE__ */ React57.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
7140
7215
|
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
7141
|
-
return /* @__PURE__ */
|
7216
|
+
return /* @__PURE__ */ React57.createElement(
|
7142
7217
|
DropdownMenuItem,
|
7143
7218
|
{
|
7144
7219
|
key: subIndex,
|
@@ -7167,7 +7242,7 @@ var DropdownMenu = ({
|
|
7167
7242
|
subitem.icon && subitem.icon,
|
7168
7243
|
subitem.label && subitem.label
|
7169
7244
|
);
|
7170
|
-
})))) : /* @__PURE__ */
|
7245
|
+
})))) : /* @__PURE__ */ React57.createElement(
|
7171
7246
|
DropdownMenuItem,
|
7172
7247
|
{
|
7173
7248
|
LinkComponent: ItemLinkComponent,
|
@@ -7250,12 +7325,12 @@ var ItemCard = ({
|
|
7250
7325
|
)
|
7251
7326
|
};
|
7252
7327
|
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";
|
7253
|
-
const [openActionHeader, setOpenActionHeader] = (0,
|
7328
|
+
const [openActionHeader, setOpenActionHeader] = (0, import_react62.useState)(false);
|
7254
7329
|
function handleOpenActionHeader(e) {
|
7255
7330
|
e.stopPropagation();
|
7256
7331
|
setOpenActionHeader(!openActionHeader);
|
7257
7332
|
}
|
7258
|
-
(0,
|
7333
|
+
(0, import_react62.useEffect)(() => {
|
7259
7334
|
window.onclick = () => {
|
7260
7335
|
if (openActionHeader) {
|
7261
7336
|
setOpenActionHeader(false);
|
@@ -7263,7 +7338,7 @@ var ItemCard = ({
|
|
7263
7338
|
};
|
7264
7339
|
return () => window.onclick = null;
|
7265
7340
|
}, [openActionHeader]);
|
7266
|
-
return /* @__PURE__ */
|
7341
|
+
return /* @__PURE__ */ import_react62.default.createElement(
|
7267
7342
|
"div",
|
7268
7343
|
{
|
7269
7344
|
className: cn(
|
@@ -7279,7 +7354,7 @@ var ItemCard = ({
|
|
7279
7354
|
}
|
7280
7355
|
}
|
7281
7356
|
},
|
7282
|
-
cardImage && /* @__PURE__ */
|
7357
|
+
cardImage && /* @__PURE__ */ import_react62.default.createElement("div", { className: "hawa-group hawa-relative hawa-overflow-clip" }, /* @__PURE__ */ import_react62.default.createElement(
|
7283
7358
|
"img",
|
7284
7359
|
{
|
7285
7360
|
src: cardImage,
|
@@ -7288,7 +7363,7 @@ var ItemCard = ({
|
|
7288
7363
|
clickableImage ? "hawa-overflow-clip hawa-transition-all group-hover:hawa-blur-lg" : ""
|
7289
7364
|
)
|
7290
7365
|
}
|
7291
|
-
), clickableImage && /* @__PURE__ */
|
7366
|
+
), clickableImage && /* @__PURE__ */ import_react62.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react62.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_react62.default.createElement(
|
7292
7367
|
Button,
|
7293
7368
|
{
|
7294
7369
|
variant: "secondary",
|
@@ -7298,19 +7373,19 @@ var ItemCard = ({
|
|
7298
7373
|
clickableImageActionIcon,
|
7299
7374
|
clickableImageActionText || "Click"
|
7300
7375
|
)))),
|
7301
|
-
/* @__PURE__ */
|
7376
|
+
/* @__PURE__ */ import_react62.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_react62.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_react62.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react62.default.createElement(
|
7302
7377
|
DropdownMenu,
|
7303
7378
|
{
|
7304
7379
|
items: headerActions,
|
7305
|
-
trigger: /* @__PURE__ */
|
7380
|
+
trigger: /* @__PURE__ */ import_react62.default.createElement(
|
7306
7381
|
Button,
|
7307
7382
|
{
|
7308
7383
|
variant: "ghost",
|
7309
7384
|
size: "smallIcon",
|
7310
7385
|
onClick: handleOpenActionHeader
|
7311
7386
|
},
|
7312
|
-
/* @__PURE__ */
|
7313
|
-
/* @__PURE__ */
|
7387
|
+
/* @__PURE__ */ import_react62.default.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"),
|
7388
|
+
/* @__PURE__ */ import_react62.default.createElement(
|
7314
7389
|
"svg",
|
7315
7390
|
{
|
7316
7391
|
className: "hawa-h-5 hawa-w-5",
|
@@ -7318,11 +7393,11 @@ var ItemCard = ({
|
|
7318
7393
|
fill: "currentColor",
|
7319
7394
|
viewBox: "0 0 20 20"
|
7320
7395
|
},
|
7321
|
-
/* @__PURE__ */
|
7396
|
+
/* @__PURE__ */ import_react62.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" })
|
7322
7397
|
)
|
7323
7398
|
)
|
7324
7399
|
}
|
7325
|
-
))), /* @__PURE__ */
|
7400
|
+
))), /* @__PURE__ */ import_react62.default.createElement("div", { className: " hawa-mx-2" }, header && /* @__PURE__ */ import_react62.default.createElement("h5", { className: "hawa-mb-2 hawa-text-2xl hawa-font-bold hawa-tracking-tight " }, header), content && /* @__PURE__ */ import_react62.default.createElement("span", { className: "hawa-w-full hawa-font-normal " }, content)), actions || counts ? /* @__PURE__ */ import_react62.default.createElement(
|
7326
7401
|
"div",
|
7327
7402
|
{
|
7328
7403
|
className: cn(
|
@@ -7332,15 +7407,15 @@ var ItemCard = ({
|
|
7332
7407
|
)
|
7333
7408
|
},
|
7334
7409
|
counts,
|
7335
|
-
/* @__PURE__ */
|
7410
|
+
/* @__PURE__ */ import_react62.default.createElement(StopPropagationWrapper, null, actions)
|
7336
7411
|
) : null)
|
7337
7412
|
);
|
7338
7413
|
};
|
7339
7414
|
|
7340
7415
|
// blocks/cards/LandingCard.tsx
|
7341
|
-
var
|
7416
|
+
var import_react63 = __toESM(require("react"));
|
7342
7417
|
var LandingCard = (props) => {
|
7343
|
-
return /* @__PURE__ */
|
7418
|
+
return /* @__PURE__ */ import_react63.default.createElement(Card, { className: props.className }, /* @__PURE__ */ import_react63.default.createElement(CardHeader, null, props.icon, /* @__PURE__ */ import_react63.default.createElement(CardTitle, null, props.title), /* @__PURE__ */ import_react63.default.createElement(CardDescription, null, props.subtitle)));
|
7344
7419
|
};
|
7345
7420
|
|
7346
7421
|
// blocks/pricing/PricingPlans.tsx
|
@@ -7349,7 +7424,7 @@ var PricingPlans = ({
|
|
7349
7424
|
cardsContainerProps,
|
7350
7425
|
...props
|
7351
7426
|
}) => {
|
7352
|
-
return /* @__PURE__ */
|
7427
|
+
return /* @__PURE__ */ import_react64.default.createElement("div", { ...mainContainerProps }, /* @__PURE__ */ import_react64.default.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ import_react64.default.createElement(
|
7353
7428
|
Radio,
|
7354
7429
|
{
|
7355
7430
|
name: "cycle",
|
@@ -7362,7 +7437,7 @@ var PricingPlans = ({
|
|
7362
7437
|
}
|
7363
7438
|
}
|
7364
7439
|
}
|
7365
|
-
), /* @__PURE__ */
|
7440
|
+
), /* @__PURE__ */ import_react64.default.createElement(
|
7366
7441
|
Radio,
|
7367
7442
|
{
|
7368
7443
|
name: "currency",
|
@@ -7375,7 +7450,7 @@ var PricingPlans = ({
|
|
7375
7450
|
}
|
7376
7451
|
}
|
7377
7452
|
}
|
7378
|
-
)), /* @__PURE__ */
|
7453
|
+
)), /* @__PURE__ */ import_react64.default.createElement(
|
7379
7454
|
"div",
|
7380
7455
|
{
|
7381
7456
|
className: "hawa-inline-grid hawa-w-full hawa-grid-cols-[repeat(auto-fit,_minmax(300px,_1fr))] hawa-gap-4",
|
@@ -7383,7 +7458,7 @@ var PricingPlans = ({
|
|
7383
7458
|
},
|
7384
7459
|
props.plans.map((plan, index) => {
|
7385
7460
|
var _a, _b;
|
7386
|
-
return /* @__PURE__ */
|
7461
|
+
return /* @__PURE__ */ import_react64.default.createElement(
|
7387
7462
|
PricingCard,
|
7388
7463
|
{
|
7389
7464
|
key: index,
|
@@ -7414,7 +7489,7 @@ var PricingPlans = ({
|
|
7414
7489
|
};
|
7415
7490
|
|
7416
7491
|
// blocks/pricing/ComparingPlans.tsx
|
7417
|
-
var
|
7492
|
+
var import_react65 = __toESM(require("react"));
|
7418
7493
|
var ComparingPlans = (props) => {
|
7419
7494
|
const uniqueFeatures = Array.from(
|
7420
7495
|
new Set(
|
@@ -7423,7 +7498,7 @@ var ComparingPlans = (props) => {
|
|
7423
7498
|
)
|
7424
7499
|
)
|
7425
7500
|
);
|
7426
|
-
return /* @__PURE__ */
|
7501
|
+
return /* @__PURE__ */ import_react65.default.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ import_react65.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_react65.default.createElement(
|
7427
7502
|
Radio,
|
7428
7503
|
{
|
7429
7504
|
name: "cycle",
|
@@ -7438,7 +7513,7 @@ var ComparingPlans = (props) => {
|
|
7438
7513
|
}
|
7439
7514
|
}
|
7440
7515
|
}
|
7441
|
-
), /* @__PURE__ */
|
7516
|
+
), /* @__PURE__ */ import_react65.default.createElement(
|
7442
7517
|
Radio,
|
7443
7518
|
{
|
7444
7519
|
name: "currency",
|
@@ -7453,7 +7528,7 @@ var ComparingPlans = (props) => {
|
|
7453
7528
|
}
|
7454
7529
|
}
|
7455
7530
|
}
|
7456
|
-
)), /* @__PURE__ */
|
7531
|
+
)), /* @__PURE__ */ import_react65.default.createElement(
|
7457
7532
|
"div",
|
7458
7533
|
{
|
7459
7534
|
className: cn(
|
@@ -7464,16 +7539,16 @@ var ComparingPlans = (props) => {
|
|
7464
7539
|
top: props.topPosition || 0
|
7465
7540
|
}
|
7466
7541
|
},
|
7467
|
-
/* @__PURE__ */
|
7468
|
-
props.plans.map((plan, i) => /* @__PURE__ */
|
7542
|
+
/* @__PURE__ */ import_react65.default.createElement("div", { className: "hawa-flex hawa-items-center" }),
|
7543
|
+
props.plans.map((plan, i) => /* @__PURE__ */ import_react65.default.createElement(
|
7469
7544
|
"div",
|
7470
7545
|
{
|
7471
7546
|
key: i,
|
7472
7547
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2"
|
7473
7548
|
},
|
7474
|
-
/* @__PURE__ */
|
7549
|
+
/* @__PURE__ */ import_react65.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react65.default.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react65.default.createElement("span", { className: "hawa-text-md hawa-font-bold " }, plan.texts.title), /* @__PURE__ */ import_react65.default.createElement("span", { className: "hawa-text-md hawa-font-normal hawa-text-muted-foreground " }, plan.texts.subtitle)), /* @__PURE__ */ import_react65.default.createElement("div", { className: " hawa-flex hawa-items-baseline " }, /* @__PURE__ */ import_react65.default.createElement(import_react65.default.Fragment, null, /* @__PURE__ */ import_react65.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, plan.price), /* @__PURE__ */ import_react65.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ import_react65.default.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal " }, "/ ", plan.texts.cycleText)))
|
7475
7550
|
))
|
7476
|
-
), /* @__PURE__ */
|
7551
|
+
), /* @__PURE__ */ import_react65.default.createElement(
|
7477
7552
|
ScrollArea,
|
7478
7553
|
{
|
7479
7554
|
className: "hawa-h-fit hawa-rounded hawa-rounded-t-none hawa-border hawa-border-t-0 hawa-bg-background",
|
@@ -7481,7 +7556,7 @@ var ComparingPlans = (props) => {
|
|
7481
7556
|
},
|
7482
7557
|
uniqueFeatures.map((featureText, featureIndex) => {
|
7483
7558
|
var _a, _b, _c, _d;
|
7484
|
-
return /* @__PURE__ */
|
7559
|
+
return /* @__PURE__ */ import_react65.default.createElement(
|
7485
7560
|
"div",
|
7486
7561
|
{
|
7487
7562
|
key: featureIndex,
|
@@ -7490,11 +7565,11 @@ var ComparingPlans = (props) => {
|
|
7490
7565
|
featureIndex === 0 ? "" : "hawa-border-t"
|
7491
7566
|
)
|
7492
7567
|
},
|
7493
|
-
/* @__PURE__ */
|
7568
|
+
/* @__PURE__ */ import_react65.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-foreground" }, featureText, props.plans.some(
|
7494
7569
|
(plan) => plan.features.some(
|
7495
7570
|
(feature) => feature.text === featureText && feature.hint
|
7496
7571
|
)
|
7497
|
-
) && /* @__PURE__ */
|
7572
|
+
) && /* @__PURE__ */ import_react65.default.createElement(
|
7498
7573
|
Tooltip,
|
7499
7574
|
{
|
7500
7575
|
side: "right",
|
@@ -7509,7 +7584,7 @@ var ComparingPlans = (props) => {
|
|
7509
7584
|
(feature) => feature.text === featureText
|
7510
7585
|
)) == null ? void 0 : _b.hint
|
7511
7586
|
},
|
7512
|
-
/* @__PURE__ */
|
7587
|
+
/* @__PURE__ */ import_react65.default.createElement(
|
7513
7588
|
"svg",
|
7514
7589
|
{
|
7515
7590
|
stroke: "currentColor",
|
@@ -7519,13 +7594,13 @@ var ComparingPlans = (props) => {
|
|
7519
7594
|
height: "1em",
|
7520
7595
|
width: "1em"
|
7521
7596
|
},
|
7522
|
-
/* @__PURE__ */
|
7597
|
+
/* @__PURE__ */ import_react65.default.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
|
7523
7598
|
)
|
7524
7599
|
), props.plans.some(
|
7525
7600
|
(plan) => plan.features.some(
|
7526
7601
|
(feature) => feature.text === featureText && feature.soon
|
7527
7602
|
)
|
7528
|
-
) && /* @__PURE__ */
|
7603
|
+
) && /* @__PURE__ */ import_react65.default.createElement(
|
7529
7604
|
Chip,
|
7530
7605
|
{
|
7531
7606
|
label: ((_d = (_c = props.plans.find(
|
@@ -7539,26 +7614,26 @@ var ComparingPlans = (props) => {
|
|
7539
7614
|
const feature = plan.features.find(
|
7540
7615
|
(f) => f.text === featureText
|
7541
7616
|
);
|
7542
|
-
return /* @__PURE__ */
|
7617
|
+
return /* @__PURE__ */ import_react65.default.createElement(
|
7543
7618
|
"div",
|
7544
7619
|
{
|
7545
7620
|
key: planIndex,
|
7546
7621
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-text-center"
|
7547
7622
|
},
|
7548
|
-
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */
|
7623
|
+
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */ import_react65.default.createElement(CheckMark, { className: "hawa-text-foreground" }) : /* @__PURE__ */ import_react65.default.createElement(UncheckMark, { className: "hawa-text-foreground" })
|
7549
7624
|
);
|
7550
7625
|
})
|
7551
7626
|
);
|
7552
7627
|
})
|
7553
|
-
), props.showButtons && /* @__PURE__ */
|
7628
|
+
), props.showButtons && /* @__PURE__ */ import_react65.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_react65.default.createElement("div", { className: "hawa-flex hawa-items-center" }), props.plans.map((plan, i) => {
|
7554
7629
|
var _a;
|
7555
|
-
return /* @__PURE__ */
|
7630
|
+
return /* @__PURE__ */ import_react65.default.createElement(
|
7556
7631
|
"div",
|
7557
7632
|
{
|
7558
7633
|
key: i,
|
7559
7634
|
className: "hawa-flex hawa-items-center hawa-justify-center"
|
7560
7635
|
},
|
7561
|
-
/* @__PURE__ */
|
7636
|
+
/* @__PURE__ */ import_react65.default.createElement(
|
7562
7637
|
Button,
|
7563
7638
|
{
|
7564
7639
|
className: "hawa-w-full hawa-max-w-xs",
|
@@ -7582,15 +7657,15 @@ var ComparingPlans = (props) => {
|
|
7582
7657
|
};
|
7583
7658
|
|
7584
7659
|
// blocks/pricing/HorizontalPricing.tsx
|
7585
|
-
var
|
7660
|
+
var import_react66 = __toESM(require("react"));
|
7586
7661
|
var HorizontalPricing = (props) => {
|
7587
|
-
const [selectedCard, setSelectedCard] = (0,
|
7662
|
+
const [selectedCard, setSelectedCard] = (0, import_react66.useState)("");
|
7588
7663
|
let data = [
|
7589
7664
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
7590
7665
|
{ title: "business", price: "$99", cycle: "/mo" },
|
7591
7666
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
7592
7667
|
];
|
7593
|
-
return /* @__PURE__ */
|
7668
|
+
return /* @__PURE__ */ import_react66.default.createElement("div", { className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm" }, /* @__PURE__ */ import_react66.default.createElement("div", { className: "hawa-max-w-2xl " }, /* @__PURE__ */ import_react66.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ import_react66.default.createElement(
|
7594
7669
|
Radio,
|
7595
7670
|
{
|
7596
7671
|
name: "currency",
|
@@ -7598,7 +7673,7 @@ var HorizontalPricing = (props) => {
|
|
7598
7673
|
options: props.currencies,
|
7599
7674
|
defaultValue: props.currentCurrency
|
7600
7675
|
}
|
7601
|
-
), /* @__PURE__ */
|
7676
|
+
), /* @__PURE__ */ import_react66.default.createElement(
|
7602
7677
|
Radio,
|
7603
7678
|
{
|
7604
7679
|
name: "cycle",
|
@@ -7606,7 +7681,7 @@ var HorizontalPricing = (props) => {
|
|
7606
7681
|
options: props.billingCycles,
|
7607
7682
|
defaultValue: props.currentCycle
|
7608
7683
|
}
|
7609
|
-
)), data.map((d, i) => /* @__PURE__ */
|
7684
|
+
)), data.map((d, i) => /* @__PURE__ */ import_react66.default.createElement(
|
7610
7685
|
"label",
|
7611
7686
|
{
|
7612
7687
|
key: i,
|
@@ -7614,7 +7689,7 @@ var HorizontalPricing = (props) => {
|
|
7614
7689
|
className: "",
|
7615
7690
|
onClick: () => setSelectedCard(d.title)
|
7616
7691
|
},
|
7617
|
-
/* @__PURE__ */
|
7692
|
+
/* @__PURE__ */ import_react66.default.createElement(
|
7618
7693
|
"input",
|
7619
7694
|
{
|
7620
7695
|
type: "radio",
|
@@ -7623,7 +7698,7 @@ var HorizontalPricing = (props) => {
|
|
7623
7698
|
className: "hawa-peer hawa-appearance-none"
|
7624
7699
|
}
|
7625
7700
|
),
|
7626
|
-
/* @__PURE__ */
|
7701
|
+
/* @__PURE__ */ import_react66.default.createElement(
|
7627
7702
|
"div",
|
7628
7703
|
{
|
7629
7704
|
className: cn(
|
@@ -7631,18 +7706,18 @@ var HorizontalPricing = (props) => {
|
|
7631
7706
|
"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"
|
7632
7707
|
)
|
7633
7708
|
},
|
7634
|
-
/* @__PURE__ */
|
7709
|
+
/* @__PURE__ */ import_react66.default.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ import_react66.default.createElement(CheckIcons, null), /* @__PURE__ */ import_react66.default.createElement(
|
7635
7710
|
CardText,
|
7636
7711
|
{
|
7637
7712
|
title: "Enterprise",
|
7638
7713
|
subtitle: "For startups and new businesses"
|
7639
7714
|
}
|
7640
7715
|
)),
|
7641
|
-
/* @__PURE__ */
|
7716
|
+
/* @__PURE__ */ import_react66.default.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
7642
7717
|
)
|
7643
7718
|
))));
|
7644
7719
|
};
|
7645
|
-
var CheckIcons = () => /* @__PURE__ */
|
7720
|
+
var CheckIcons = () => /* @__PURE__ */ import_react66.default.createElement(import_react66.default.Fragment, null, /* @__PURE__ */ import_react66.default.createElement(
|
7646
7721
|
"svg",
|
7647
7722
|
{
|
7648
7723
|
fill: "none",
|
@@ -7651,7 +7726,7 @@ var CheckIcons = () => /* @__PURE__ */ import_react64.default.createElement(impo
|
|
7651
7726
|
stroke: "currentColor",
|
7652
7727
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
7653
7728
|
},
|
7654
|
-
/* @__PURE__ */
|
7729
|
+
/* @__PURE__ */ import_react66.default.createElement(
|
7655
7730
|
"path",
|
7656
7731
|
{
|
7657
7732
|
strokeLinecap: "round",
|
@@ -7659,14 +7734,14 @@ var CheckIcons = () => /* @__PURE__ */ import_react64.default.createElement(impo
|
|
7659
7734
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
7660
7735
|
}
|
7661
7736
|
)
|
7662
|
-
), /* @__PURE__ */
|
7737
|
+
), /* @__PURE__ */ import_react66.default.createElement(
|
7663
7738
|
"svg",
|
7664
7739
|
{
|
7665
7740
|
viewBox: "0 0 24 24",
|
7666
7741
|
fill: "currentColor",
|
7667
7742
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
7668
7743
|
},
|
7669
|
-
/* @__PURE__ */
|
7744
|
+
/* @__PURE__ */ import_react66.default.createElement(
|
7670
7745
|
"path",
|
7671
7746
|
{
|
7672
7747
|
fillRule: "evenodd",
|
@@ -7675,16 +7750,16 @@ var CheckIcons = () => /* @__PURE__ */ import_react64.default.createElement(impo
|
|
7675
7750
|
}
|
7676
7751
|
)
|
7677
7752
|
));
|
7678
|
-
var CardText = (props) => /* @__PURE__ */
|
7679
|
-
var CardPrice = (props) => /* @__PURE__ */
|
7753
|
+
var CardText = (props) => /* @__PURE__ */ import_react66.default.createElement("div", { className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start " }, /* @__PURE__ */ import_react66.default.createElement("h2", { className: "hawa-font-medium hawa-text-primary/90 sm:hawa-text-xl" }, props.title), /* @__PURE__ */ import_react66.default.createElement("p", { className: "hawa-text-sm hawa-text-primary/60" }, props.subtitle, " "));
|
7754
|
+
var CardPrice = (props) => /* @__PURE__ */ import_react66.default.createElement("h2", { className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-primary sm:hawa-text-2xl" }, props.amount, /* @__PURE__ */ import_react66.default.createElement("span", { className: "hawa-text-base hawa-font-medium hawa-text-neutral-400" }, props.cycle));
|
7680
7755
|
|
7681
7756
|
// blocks/Usage.tsx
|
7682
|
-
var
|
7757
|
+
var import_react67 = __toESM(require("react"));
|
7683
7758
|
|
7684
7759
|
// elements/progress/Progress.tsx
|
7685
|
-
var
|
7760
|
+
var React63 = __toESM(require("react"));
|
7686
7761
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
7687
|
-
var Progress =
|
7762
|
+
var Progress = React63.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React63.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React63.createElement(Label, { ...props.labelProps }, props.label), /* @__PURE__ */ React63.createElement(
|
7688
7763
|
ProgressPrimitive.Root,
|
7689
7764
|
{
|
7690
7765
|
ref,
|
@@ -7694,7 +7769,7 @@ var Progress = React64.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
7694
7769
|
),
|
7695
7770
|
...props
|
7696
7771
|
},
|
7697
|
-
/* @__PURE__ */
|
7772
|
+
/* @__PURE__ */ React63.createElement(
|
7698
7773
|
ProgressPrimitive.Indicator,
|
7699
7774
|
{
|
7700
7775
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
@@ -7707,7 +7782,7 @@ Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
7707
7782
|
// blocks/Usage.tsx
|
7708
7783
|
var Usage = (props) => {
|
7709
7784
|
var _a;
|
7710
|
-
return /* @__PURE__ */
|
7785
|
+
return /* @__PURE__ */ import_react67.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_react67.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, /* @__PURE__ */ import_react67.default.createElement("span", { className: "hawa-bg-white-200" }, props.title), props.tooltip && /* @__PURE__ */ import_react67.default.createElement(Tooltip, { content: props.tooltip }, /* @__PURE__ */ import_react67.default.createElement(
|
7711
7786
|
"svg",
|
7712
7787
|
{
|
7713
7788
|
stroke: "currentColor",
|
@@ -7718,8 +7793,8 @@ var Usage = (props) => {
|
|
7718
7793
|
height: "1em",
|
7719
7794
|
width: "1em"
|
7720
7795
|
},
|
7721
|
-
/* @__PURE__ */
|
7722
|
-
))), /* @__PURE__ */
|
7796
|
+
/* @__PURE__ */ import_react67.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" })
|
7797
|
+
))), /* @__PURE__ */ import_react67.default.createElement("div", { className: "hawa-bg-white-100 hawa-flex hawa-flex-row" }, /* @__PURE__ */ import_react67.default.createElement("div", null, props.currentUsage), /* @__PURE__ */ import_react67.default.createElement("div", null, " (", props.percent, "%)")), /* @__PURE__ */ import_react67.default.createElement(Progress, { value: (_a = props.percent) != null ? _a : 0 }));
|
7723
7798
|
};
|
7724
7799
|
// Annotate the CommonJS export names for ESM import in node:
|
7725
7800
|
0 && (module.exports = {
|