@sikka/hawa 0.35.3-next → 0.35.5-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/appLayout/index.js +49 -49
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +11 -11
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appTopbar/index.js +18 -18
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs +4 -4
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/blocks/index.js +62 -62
- package/dist/blocks/index.mjs +3 -3
- package/dist/blocks/pricing/index.js +75 -74
- package/dist/blocks/pricing/index.mjs +2 -1
- package/dist/{chunk-JU6Q4Q3T.mjs → chunk-545D35G6.mjs} +6 -4
- package/dist/{chunk-OW3WFRFQ.mjs → chunk-G7JHUC5N.mjs} +4 -3
- package/dist/{chunk-OWYGADJZ.mjs → chunk-HSRW7X3Z.mjs} +1 -1
- package/dist/{chunk-YNEQBAQC.mjs → chunk-TERP5K6R.mjs} +1 -1
- package/dist/dataTable/index.js +17 -17
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +4 -4
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.js +4 -3
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +4 -3
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.js +371 -370
- package/dist/elements/index.mjs +4 -4
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.css +4 -0
- package/dist/index.js +817 -816
- package/dist/index.mjs +12 -11
- package/dist/layout/index.js +145 -145
- package/dist/layout/index.mjs +5 -7
- package/dist/splitButton/index.js +29 -29
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +4 -4
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/stats/index.js +1 -1
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs +1 -1
- package/dist/stats/index.mjs.map +1 -1
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs.map +1 -1
- package/package.json +2 -1
@@ -38,7 +38,7 @@ __export(pricing_exports, {
|
|
38
38
|
module.exports = __toCommonJS(pricing_exports);
|
39
39
|
|
40
40
|
// blocks/pricing/PricingPlans.tsx
|
41
|
-
var
|
41
|
+
var import_react14 = __toESM(require("react"));
|
42
42
|
|
43
43
|
// blocks/cards/ActionCard.tsx
|
44
44
|
var import_react = __toESM(require("react"));
|
@@ -826,10 +826,11 @@ var PricingCard = ({
|
|
826
826
|
};
|
827
827
|
|
828
828
|
// blocks/cards/ItemCard.tsx
|
829
|
-
var
|
829
|
+
var import_react11 = __toESM(require("react"));
|
830
830
|
|
831
831
|
// elements/dropdownMenu/DropdownMenu.tsx
|
832
832
|
var React13 = __toESM(require("react"));
|
833
|
+
var import_react9 = require("@headlessui/react");
|
833
834
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
834
835
|
var DropdownMenuSubTrigger = React13.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
835
836
|
DropdownMenuPrimitive.SubTrigger,
|
@@ -878,7 +879,7 @@ var DropdownMenuSubContent = React13.forwardRef(({ className, ...props }, ref) =
|
|
878
879
|
}
|
879
880
|
));
|
880
881
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
881
|
-
var DropdownMenuContent = React13.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
882
|
+
var DropdownMenuContent = React13.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React13.createElement(import_react9.Portal, null, /* @__PURE__ */ React13.createElement(
|
882
883
|
DropdownMenuPrimitive.Content,
|
883
884
|
{
|
884
885
|
ref,
|
@@ -1009,13 +1010,13 @@ var DropdownMenuShortcut = ({
|
|
1009
1010
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
1010
1011
|
|
1011
1012
|
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
1012
|
-
var
|
1013
|
+
var import_react10 = __toESM(require("react"));
|
1013
1014
|
|
1014
1015
|
// blocks/cards/LandingCard.tsx
|
1015
|
-
var
|
1016
|
+
var import_react12 = __toESM(require("react"));
|
1016
1017
|
|
1017
1018
|
// elements/radio/Radio.tsx
|
1018
|
-
var
|
1019
|
+
var import_react13 = __toESM(require("react"));
|
1019
1020
|
|
1020
1021
|
// elements/popover/Popover.tsx
|
1021
1022
|
var React17 = __toESM(require("react"));
|
@@ -1040,7 +1041,7 @@ var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1040
1041
|
var PopoverRoot = PopoverPrimitive.Root;
|
1041
1042
|
|
1042
1043
|
// elements/radio/Radio.tsx
|
1043
|
-
var Radio = (0,
|
1044
|
+
var Radio = (0, import_react13.forwardRef)(
|
1044
1045
|
({
|
1045
1046
|
design = "default",
|
1046
1047
|
width = "default",
|
@@ -1072,15 +1073,15 @@ var Radio = (0, import_react12.forwardRef)(
|
|
1072
1073
|
default: "hawa-max-w-fit",
|
1073
1074
|
full: "hawa-w-full"
|
1074
1075
|
};
|
1075
|
-
const [parentDirection, setParentDirection] =
|
1076
|
+
const [parentDirection, setParentDirection] = import_react13.default.useState(
|
1076
1077
|
null
|
1077
1078
|
);
|
1078
|
-
const [selectedOption, setSelectedOption] = (0,
|
1079
|
+
const [selectedOption, setSelectedOption] = (0, import_react13.useState)(
|
1079
1080
|
props.defaultValue || props.value
|
1080
1081
|
);
|
1081
|
-
const [openTooltip, setOpenTooltip] = (0,
|
1082
|
-
const parentRef = (0,
|
1083
|
-
(0,
|
1082
|
+
const [openTooltip, setOpenTooltip] = (0, import_react13.useState)(null);
|
1083
|
+
const parentRef = (0, import_react13.useRef)(null);
|
1084
|
+
(0, import_react13.useEffect)(() => {
|
1084
1085
|
var _a2;
|
1085
1086
|
const parentNode = (_a2 = parentRef.current) == null ? void 0 : _a2.parentNode;
|
1086
1087
|
if (parentNode) {
|
@@ -1106,7 +1107,7 @@ var Radio = (0, import_react12.forwardRef)(
|
|
1106
1107
|
];
|
1107
1108
|
switch (design) {
|
1108
1109
|
case "tabs":
|
1109
|
-
return /* @__PURE__ */
|
1110
|
+
return /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ import_react13.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react13.default.createElement(
|
1110
1111
|
"ul",
|
1111
1112
|
{
|
1112
1113
|
ref: parentRef,
|
@@ -1119,21 +1120,21 @@ var Radio = (0, import_react12.forwardRef)(
|
|
1119
1120
|
)
|
1120
1121
|
},
|
1121
1122
|
(_b = props.options) == null ? void 0 : _b.map((opt, o) => {
|
1122
|
-
return opt.tooltip ? /* @__PURE__ */
|
1123
|
+
return opt.tooltip ? /* @__PURE__ */ import_react13.default.createElement(
|
1123
1124
|
PopoverRoot,
|
1124
1125
|
{
|
1125
1126
|
key: o,
|
1126
1127
|
open: o === openTooltip,
|
1127
1128
|
onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
|
1128
1129
|
},
|
1129
|
-
/* @__PURE__ */
|
1130
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
1130
1131
|
PopoverTrigger,
|
1131
1132
|
{
|
1132
1133
|
onMouseEnter: () => setOpenTooltip(o),
|
1133
1134
|
onMouseLeave: () => setOpenTooltip(null),
|
1134
1135
|
asChild: true
|
1135
1136
|
},
|
1136
|
-
/* @__PURE__ */
|
1137
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
1137
1138
|
"li",
|
1138
1139
|
{
|
1139
1140
|
"aria-current": "page",
|
@@ -1151,8 +1152,8 @@ var Radio = (0, import_react12.forwardRef)(
|
|
1151
1152
|
opt.label
|
1152
1153
|
)
|
1153
1154
|
),
|
1154
|
-
/* @__PURE__ */
|
1155
|
-
) : /* @__PURE__ */
|
1155
|
+
/* @__PURE__ */ import_react13.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
1156
|
+
) : /* @__PURE__ */ import_react13.default.createElement(
|
1156
1157
|
"li",
|
1157
1158
|
{
|
1158
1159
|
key: o,
|
@@ -1171,7 +1172,7 @@ var Radio = (0, import_react12.forwardRef)(
|
|
1171
1172
|
opt.label
|
1172
1173
|
);
|
1173
1174
|
})
|
1174
|
-
), !forceHideHelperText && /* @__PURE__ */
|
1175
|
+
), !forceHideHelperText && /* @__PURE__ */ import_react13.default.createElement(
|
1175
1176
|
"p",
|
1176
1177
|
{
|
1177
1178
|
className: cn(
|
@@ -1182,7 +1183,7 @@ var Radio = (0, import_react12.forwardRef)(
|
|
1182
1183
|
props.helperText
|
1183
1184
|
));
|
1184
1185
|
case "bordered":
|
1185
|
-
return /* @__PURE__ */
|
1186
|
+
return /* @__PURE__ */ import_react13.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react13.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react13.default.createElement(
|
1186
1187
|
"div",
|
1187
1188
|
{
|
1188
1189
|
className: cn(
|
@@ -1191,7 +1192,7 @@ var Radio = (0, import_react12.forwardRef)(
|
|
1191
1192
|
),
|
1192
1193
|
key: i + 1
|
1193
1194
|
},
|
1194
|
-
/* @__PURE__ */
|
1195
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
1195
1196
|
"input",
|
1196
1197
|
{
|
1197
1198
|
disabled: opt.disabled,
|
@@ -1202,7 +1203,7 @@ var Radio = (0, import_react12.forwardRef)(
|
|
1202
1203
|
onChange: () => handleChange(opt)
|
1203
1204
|
}
|
1204
1205
|
),
|
1205
|
-
/* @__PURE__ */
|
1206
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
1206
1207
|
"label",
|
1207
1208
|
{
|
1208
1209
|
htmlFor: opt.value.toString(),
|
@@ -1215,7 +1216,7 @@ var Radio = (0, import_react12.forwardRef)(
|
|
1215
1216
|
)
|
1216
1217
|
))));
|
1217
1218
|
case "cards":
|
1218
|
-
return /* @__PURE__ */
|
1219
|
+
return /* @__PURE__ */ import_react13.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react13.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react13.default.createElement(
|
1219
1220
|
"input",
|
1220
1221
|
{
|
1221
1222
|
type: "radio",
|
@@ -1226,7 +1227,7 @@ var Radio = (0, import_react12.forwardRef)(
|
|
1226
1227
|
required: true,
|
1227
1228
|
disabled: opt.disabled
|
1228
1229
|
}
|
1229
|
-
), /* @__PURE__ */
|
1230
|
+
), /* @__PURE__ */ import_react13.default.createElement(
|
1230
1231
|
"label",
|
1231
1232
|
{
|
1232
1233
|
htmlFor: opt.value.toString(),
|
@@ -1235,10 +1236,10 @@ var Radio = (0, import_react12.forwardRef)(
|
|
1235
1236
|
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"
|
1236
1237
|
)
|
1237
1238
|
},
|
1238
|
-
/* @__PURE__ */
|
1239
|
+
/* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
1239
1240
|
))));
|
1240
1241
|
default:
|
1241
|
-
return /* @__PURE__ */
|
1242
|
+
return /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react13.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react13.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react13.default.createElement(
|
1242
1243
|
"div",
|
1243
1244
|
{
|
1244
1245
|
className: cn(
|
@@ -1247,7 +1248,7 @@ var Radio = (0, import_react12.forwardRef)(
|
|
1247
1248
|
),
|
1248
1249
|
key: i + 1
|
1249
1250
|
},
|
1250
|
-
/* @__PURE__ */
|
1251
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
1251
1252
|
"input",
|
1252
1253
|
{
|
1253
1254
|
disabled: opt.disabled,
|
@@ -1258,7 +1259,7 @@ var Radio = (0, import_react12.forwardRef)(
|
|
1258
1259
|
onChange: () => handleChange(opt)
|
1259
1260
|
}
|
1260
1261
|
),
|
1261
|
-
/* @__PURE__ */
|
1262
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
1262
1263
|
"label",
|
1263
1264
|
{
|
1264
1265
|
htmlFor: opt.value.toString(),
|
@@ -1269,7 +1270,7 @@ var Radio = (0, import_react12.forwardRef)(
|
|
1269
1270
|
},
|
1270
1271
|
opt.label
|
1271
1272
|
)
|
1272
|
-
))), /* @__PURE__ */
|
1273
|
+
))), /* @__PURE__ */ import_react13.default.createElement(
|
1273
1274
|
"p",
|
1274
1275
|
{
|
1275
1276
|
className: cn(
|
@@ -1289,7 +1290,7 @@ var PricingPlans = ({
|
|
1289
1290
|
cardsContainerProps,
|
1290
1291
|
...props
|
1291
1292
|
}) => {
|
1292
|
-
return /* @__PURE__ */
|
1293
|
+
return /* @__PURE__ */ import_react14.default.createElement("div", { ...mainContainerProps }, /* @__PURE__ */ import_react14.default.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ import_react14.default.createElement(
|
1293
1294
|
Radio,
|
1294
1295
|
{
|
1295
1296
|
name: "cycle",
|
@@ -1302,7 +1303,7 @@ var PricingPlans = ({
|
|
1302
1303
|
}
|
1303
1304
|
}
|
1304
1305
|
}
|
1305
|
-
), /* @__PURE__ */
|
1306
|
+
), /* @__PURE__ */ import_react14.default.createElement(
|
1306
1307
|
Radio,
|
1307
1308
|
{
|
1308
1309
|
name: "currency",
|
@@ -1315,7 +1316,7 @@ var PricingPlans = ({
|
|
1315
1316
|
}
|
1316
1317
|
}
|
1317
1318
|
}
|
1318
|
-
)), /* @__PURE__ */
|
1319
|
+
)), /* @__PURE__ */ import_react14.default.createElement(
|
1319
1320
|
"div",
|
1320
1321
|
{
|
1321
1322
|
className: "hawa-inline-grid hawa-w-full hawa-grid-cols-[repeat(auto-fit,_minmax(300px,_1fr))] hawa-gap-4",
|
@@ -1323,7 +1324,7 @@ var PricingPlans = ({
|
|
1323
1324
|
},
|
1324
1325
|
props.plans.map((plan, index) => {
|
1325
1326
|
var _a, _b;
|
1326
|
-
return /* @__PURE__ */
|
1327
|
+
return /* @__PURE__ */ import_react14.default.createElement(
|
1327
1328
|
PricingCard,
|
1328
1329
|
{
|
1329
1330
|
key: index,
|
@@ -1354,7 +1355,7 @@ var PricingPlans = ({
|
|
1354
1355
|
};
|
1355
1356
|
|
1356
1357
|
// blocks/pricing/ComparingPlans.tsx
|
1357
|
-
var
|
1358
|
+
var import_react18 = __toESM(require("react"));
|
1358
1359
|
|
1359
1360
|
// elements/scrollArea/ScrollArea.tsx
|
1360
1361
|
var React20 = __toESM(require("react"));
|
@@ -1397,19 +1398,19 @@ var ScrollBar = React20.forwardRef(({ className, orientation = "vertical", ...pr
|
|
1397
1398
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
1398
1399
|
|
1399
1400
|
// icons/Emojis.tsx
|
1400
|
-
var
|
1401
|
+
var import_react15 = __toESM(require("react"));
|
1401
1402
|
|
1402
1403
|
// icons/InputIcons.tsx
|
1403
|
-
var
|
1404
|
+
var import_react16 = __toESM(require("react"));
|
1404
1405
|
|
1405
1406
|
// icons/CommonIcons.tsx
|
1406
|
-
var
|
1407
|
+
var import_react17 = __toESM(require("react"));
|
1407
1408
|
var CheckMark = ({ size = "default", className }) => {
|
1408
1409
|
let sizeStyles = {
|
1409
1410
|
default: "hawa-h-5 hawa-w-5",
|
1410
1411
|
sm: "hawa-h-3 hawa-w-3"
|
1411
1412
|
};
|
1412
|
-
return /* @__PURE__ */
|
1413
|
+
return /* @__PURE__ */ import_react17.default.createElement(
|
1413
1414
|
"svg",
|
1414
1415
|
{
|
1415
1416
|
className: cn(sizeStyles[size], className),
|
@@ -1417,7 +1418,7 @@ var CheckMark = ({ size = "default", className }) => {
|
|
1417
1418
|
fill: "currentColor",
|
1418
1419
|
viewBox: "0 0 20 20"
|
1419
1420
|
},
|
1420
|
-
/* @__PURE__ */
|
1421
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
1421
1422
|
"path",
|
1422
1423
|
{
|
1423
1424
|
fillRule: "evenodd",
|
@@ -1432,7 +1433,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
1432
1433
|
default: "hawa-h-5 hawa-w-5",
|
1433
1434
|
sm: "hawa-h-3 hawa-w-3"
|
1434
1435
|
};
|
1435
|
-
return /* @__PURE__ */
|
1436
|
+
return /* @__PURE__ */ import_react17.default.createElement(
|
1436
1437
|
"svg",
|
1437
1438
|
{
|
1438
1439
|
className: cn(sizeStyles[size], className),
|
@@ -1440,7 +1441,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
1440
1441
|
fill: "currentColor",
|
1441
1442
|
viewBox: "0 0 20 20"
|
1442
1443
|
},
|
1443
|
-
/* @__PURE__ */
|
1444
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
1444
1445
|
"path",
|
1445
1446
|
{
|
1446
1447
|
fillRule: "evenodd",
|
@@ -1460,7 +1461,7 @@ var ComparingPlans = (props) => {
|
|
1460
1461
|
)
|
1461
1462
|
)
|
1462
1463
|
);
|
1463
|
-
return /* @__PURE__ */
|
1464
|
+
return /* @__PURE__ */ import_react18.default.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ import_react18.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_react18.default.createElement(
|
1464
1465
|
Radio,
|
1465
1466
|
{
|
1466
1467
|
name: "cycle",
|
@@ -1475,7 +1476,7 @@ var ComparingPlans = (props) => {
|
|
1475
1476
|
}
|
1476
1477
|
}
|
1477
1478
|
}
|
1478
|
-
), /* @__PURE__ */
|
1479
|
+
), /* @__PURE__ */ import_react18.default.createElement(
|
1479
1480
|
Radio,
|
1480
1481
|
{
|
1481
1482
|
name: "currency",
|
@@ -1490,7 +1491,7 @@ var ComparingPlans = (props) => {
|
|
1490
1491
|
}
|
1491
1492
|
}
|
1492
1493
|
}
|
1493
|
-
)), /* @__PURE__ */
|
1494
|
+
)), /* @__PURE__ */ import_react18.default.createElement(
|
1494
1495
|
"div",
|
1495
1496
|
{
|
1496
1497
|
className: cn(
|
@@ -1501,16 +1502,16 @@ var ComparingPlans = (props) => {
|
|
1501
1502
|
top: props.topPosition || 0
|
1502
1503
|
}
|
1503
1504
|
},
|
1504
|
-
/* @__PURE__ */
|
1505
|
-
props.plans.map((plan, i) => /* @__PURE__ */
|
1505
|
+
/* @__PURE__ */ import_react18.default.createElement("div", { className: "hawa-flex hawa-items-center" }),
|
1506
|
+
props.plans.map((plan, i) => /* @__PURE__ */ import_react18.default.createElement(
|
1506
1507
|
"div",
|
1507
1508
|
{
|
1508
1509
|
key: i,
|
1509
1510
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2"
|
1510
1511
|
},
|
1511
|
-
/* @__PURE__ */
|
1512
|
+
/* @__PURE__ */ import_react18.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react18.default.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react18.default.createElement("span", { className: "hawa-text-md hawa-font-bold " }, plan.texts.title), /* @__PURE__ */ import_react18.default.createElement("span", { className: "hawa-text-md hawa-font-normal hawa-text-muted-foreground " }, plan.texts.subtitle)), /* @__PURE__ */ import_react18.default.createElement("div", { className: " hawa-flex hawa-items-baseline " }, /* @__PURE__ */ import_react18.default.createElement(import_react18.default.Fragment, null, /* @__PURE__ */ import_react18.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, plan.price), /* @__PURE__ */ import_react18.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ import_react18.default.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal " }, "/ ", plan.texts.cycleText)))
|
1512
1513
|
))
|
1513
|
-
), /* @__PURE__ */
|
1514
|
+
), /* @__PURE__ */ import_react18.default.createElement(
|
1514
1515
|
ScrollArea,
|
1515
1516
|
{
|
1516
1517
|
className: "hawa-h-fit hawa-rounded hawa-rounded-t-none hawa-border hawa-border-t-0 hawa-bg-background",
|
@@ -1518,7 +1519,7 @@ var ComparingPlans = (props) => {
|
|
1518
1519
|
},
|
1519
1520
|
uniqueFeatures.map((featureText, featureIndex) => {
|
1520
1521
|
var _a, _b, _c, _d;
|
1521
|
-
return /* @__PURE__ */
|
1522
|
+
return /* @__PURE__ */ import_react18.default.createElement(
|
1522
1523
|
"div",
|
1523
1524
|
{
|
1524
1525
|
key: featureIndex,
|
@@ -1527,11 +1528,11 @@ var ComparingPlans = (props) => {
|
|
1527
1528
|
featureIndex === 0 ? "" : "hawa-border-t"
|
1528
1529
|
)
|
1529
1530
|
},
|
1530
|
-
/* @__PURE__ */
|
1531
|
+
/* @__PURE__ */ import_react18.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-foreground" }, featureText, props.plans.some(
|
1531
1532
|
(plan) => plan.features.some(
|
1532
1533
|
(feature) => feature.text === featureText && feature.hint
|
1533
1534
|
)
|
1534
|
-
) && /* @__PURE__ */
|
1535
|
+
) && /* @__PURE__ */ import_react18.default.createElement(
|
1535
1536
|
Tooltip,
|
1536
1537
|
{
|
1537
1538
|
side: "right",
|
@@ -1546,7 +1547,7 @@ var ComparingPlans = (props) => {
|
|
1546
1547
|
(feature) => feature.text === featureText
|
1547
1548
|
)) == null ? void 0 : _b.hint
|
1548
1549
|
},
|
1549
|
-
/* @__PURE__ */
|
1550
|
+
/* @__PURE__ */ import_react18.default.createElement(
|
1550
1551
|
"svg",
|
1551
1552
|
{
|
1552
1553
|
stroke: "currentColor",
|
@@ -1556,13 +1557,13 @@ var ComparingPlans = (props) => {
|
|
1556
1557
|
height: "1em",
|
1557
1558
|
width: "1em"
|
1558
1559
|
},
|
1559
|
-
/* @__PURE__ */
|
1560
|
+
/* @__PURE__ */ import_react18.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" })
|
1560
1561
|
)
|
1561
1562
|
), props.plans.some(
|
1562
1563
|
(plan) => plan.features.some(
|
1563
1564
|
(feature) => feature.text === featureText && feature.soon
|
1564
1565
|
)
|
1565
|
-
) && /* @__PURE__ */
|
1566
|
+
) && /* @__PURE__ */ import_react18.default.createElement(
|
1566
1567
|
Chip,
|
1567
1568
|
{
|
1568
1569
|
label: ((_d = (_c = props.plans.find(
|
@@ -1576,26 +1577,26 @@ var ComparingPlans = (props) => {
|
|
1576
1577
|
const feature = plan.features.find(
|
1577
1578
|
(f) => f.text === featureText
|
1578
1579
|
);
|
1579
|
-
return /* @__PURE__ */
|
1580
|
+
return /* @__PURE__ */ import_react18.default.createElement(
|
1580
1581
|
"div",
|
1581
1582
|
{
|
1582
1583
|
key: planIndex,
|
1583
1584
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-text-center"
|
1584
1585
|
},
|
1585
|
-
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */
|
1586
|
+
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */ import_react18.default.createElement(CheckMark, { className: "hawa-text-foreground" }) : /* @__PURE__ */ import_react18.default.createElement(UncheckMark, { className: "hawa-text-foreground" })
|
1586
1587
|
);
|
1587
1588
|
})
|
1588
1589
|
);
|
1589
1590
|
})
|
1590
|
-
), props.showButtons && /* @__PURE__ */
|
1591
|
+
), props.showButtons && /* @__PURE__ */ import_react18.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_react18.default.createElement("div", { className: "hawa-flex hawa-items-center" }), props.plans.map((plan, i) => {
|
1591
1592
|
var _a;
|
1592
|
-
return /* @__PURE__ */
|
1593
|
+
return /* @__PURE__ */ import_react18.default.createElement(
|
1593
1594
|
"div",
|
1594
1595
|
{
|
1595
1596
|
key: i,
|
1596
1597
|
className: "hawa-flex hawa-items-center hawa-justify-center"
|
1597
1598
|
},
|
1598
|
-
/* @__PURE__ */
|
1599
|
+
/* @__PURE__ */ import_react18.default.createElement(
|
1599
1600
|
Button,
|
1600
1601
|
{
|
1601
1602
|
className: "hawa-w-full hawa-max-w-xs",
|
@@ -1619,15 +1620,15 @@ var ComparingPlans = (props) => {
|
|
1619
1620
|
};
|
1620
1621
|
|
1621
1622
|
// blocks/pricing/HorizontalPricing.tsx
|
1622
|
-
var
|
1623
|
+
var import_react19 = __toESM(require("react"));
|
1623
1624
|
var HorizontalPricing = (props) => {
|
1624
|
-
const [selectedCard, setSelectedCard] = (0,
|
1625
|
+
const [selectedCard, setSelectedCard] = (0, import_react19.useState)("");
|
1625
1626
|
let data = [
|
1626
1627
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
1627
1628
|
{ title: "business", price: "$99", cycle: "/mo" },
|
1628
1629
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
1629
1630
|
];
|
1630
|
-
return /* @__PURE__ */
|
1631
|
+
return /* @__PURE__ */ import_react19.default.createElement("div", { className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm" }, /* @__PURE__ */ import_react19.default.createElement("div", { className: "hawa-max-w-2xl " }, /* @__PURE__ */ import_react19.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ import_react19.default.createElement(
|
1631
1632
|
Radio,
|
1632
1633
|
{
|
1633
1634
|
name: "currency",
|
@@ -1635,7 +1636,7 @@ var HorizontalPricing = (props) => {
|
|
1635
1636
|
options: props.currencies,
|
1636
1637
|
defaultValue: props.currentCurrency
|
1637
1638
|
}
|
1638
|
-
), /* @__PURE__ */
|
1639
|
+
), /* @__PURE__ */ import_react19.default.createElement(
|
1639
1640
|
Radio,
|
1640
1641
|
{
|
1641
1642
|
name: "cycle",
|
@@ -1643,7 +1644,7 @@ var HorizontalPricing = (props) => {
|
|
1643
1644
|
options: props.billingCycles,
|
1644
1645
|
defaultValue: props.currentCycle
|
1645
1646
|
}
|
1646
|
-
)), data.map((d, i) => /* @__PURE__ */
|
1647
|
+
)), data.map((d, i) => /* @__PURE__ */ import_react19.default.createElement(
|
1647
1648
|
"label",
|
1648
1649
|
{
|
1649
1650
|
key: i,
|
@@ -1651,7 +1652,7 @@ var HorizontalPricing = (props) => {
|
|
1651
1652
|
className: "",
|
1652
1653
|
onClick: () => setSelectedCard(d.title)
|
1653
1654
|
},
|
1654
|
-
/* @__PURE__ */
|
1655
|
+
/* @__PURE__ */ import_react19.default.createElement(
|
1655
1656
|
"input",
|
1656
1657
|
{
|
1657
1658
|
type: "radio",
|
@@ -1660,7 +1661,7 @@ var HorizontalPricing = (props) => {
|
|
1660
1661
|
className: "hawa-peer hawa-appearance-none"
|
1661
1662
|
}
|
1662
1663
|
),
|
1663
|
-
/* @__PURE__ */
|
1664
|
+
/* @__PURE__ */ import_react19.default.createElement(
|
1664
1665
|
"div",
|
1665
1666
|
{
|
1666
1667
|
className: cn(
|
@@ -1668,18 +1669,18 @@ var HorizontalPricing = (props) => {
|
|
1668
1669
|
"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"
|
1669
1670
|
)
|
1670
1671
|
},
|
1671
|
-
/* @__PURE__ */
|
1672
|
+
/* @__PURE__ */ import_react19.default.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ import_react19.default.createElement(CheckIcons, null), /* @__PURE__ */ import_react19.default.createElement(
|
1672
1673
|
CardText,
|
1673
1674
|
{
|
1674
1675
|
title: "Enterprise",
|
1675
1676
|
subtitle: "For startups and new businesses"
|
1676
1677
|
}
|
1677
1678
|
)),
|
1678
|
-
/* @__PURE__ */
|
1679
|
+
/* @__PURE__ */ import_react19.default.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
1679
1680
|
)
|
1680
1681
|
))));
|
1681
1682
|
};
|
1682
|
-
var CheckIcons = () => /* @__PURE__ */
|
1683
|
+
var CheckIcons = () => /* @__PURE__ */ import_react19.default.createElement(import_react19.default.Fragment, null, /* @__PURE__ */ import_react19.default.createElement(
|
1683
1684
|
"svg",
|
1684
1685
|
{
|
1685
1686
|
fill: "none",
|
@@ -1688,7 +1689,7 @@ var CheckIcons = () => /* @__PURE__ */ import_react18.default.createElement(impo
|
|
1688
1689
|
stroke: "currentColor",
|
1689
1690
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
1690
1691
|
},
|
1691
|
-
/* @__PURE__ */
|
1692
|
+
/* @__PURE__ */ import_react19.default.createElement(
|
1692
1693
|
"path",
|
1693
1694
|
{
|
1694
1695
|
strokeLinecap: "round",
|
@@ -1696,14 +1697,14 @@ var CheckIcons = () => /* @__PURE__ */ import_react18.default.createElement(impo
|
|
1696
1697
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
1697
1698
|
}
|
1698
1699
|
)
|
1699
|
-
), /* @__PURE__ */
|
1700
|
+
), /* @__PURE__ */ import_react19.default.createElement(
|
1700
1701
|
"svg",
|
1701
1702
|
{
|
1702
1703
|
viewBox: "0 0 24 24",
|
1703
1704
|
fill: "currentColor",
|
1704
1705
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
1705
1706
|
},
|
1706
|
-
/* @__PURE__ */
|
1707
|
+
/* @__PURE__ */ import_react19.default.createElement(
|
1707
1708
|
"path",
|
1708
1709
|
{
|
1709
1710
|
fillRule: "evenodd",
|
@@ -1712,8 +1713,8 @@ var CheckIcons = () => /* @__PURE__ */ import_react18.default.createElement(impo
|
|
1712
1713
|
}
|
1713
1714
|
)
|
1714
1715
|
));
|
1715
|
-
var CardText = (props) => /* @__PURE__ */
|
1716
|
-
var CardPrice = (props) => /* @__PURE__ */
|
1716
|
+
var CardText = (props) => /* @__PURE__ */ import_react19.default.createElement("div", { className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start " }, /* @__PURE__ */ import_react19.default.createElement("h2", { className: "hawa-font-medium hawa-text-primary/90 sm:hawa-text-xl" }, props.title), /* @__PURE__ */ import_react19.default.createElement("p", { className: "hawa-text-sm hawa-text-primary/60" }, props.subtitle, " "));
|
1717
|
+
var CardPrice = (props) => /* @__PURE__ */ import_react19.default.createElement("h2", { className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-primary sm:hawa-text-2xl" }, props.amount, /* @__PURE__ */ import_react19.default.createElement("span", { className: "hawa-text-base hawa-font-medium hawa-text-neutral-400" }, props.cycle));
|
1717
1718
|
// Annotate the CommonJS export names for ESM import in node:
|
1718
1719
|
0 && (module.exports = {
|
1719
1720
|
ComparingPlans,
|
@@ -176,6 +176,7 @@ import React6, { useEffect as useEffect2, useState as useState4 } from "react";
|
|
176
176
|
|
177
177
|
// elements/dropdownMenu/DropdownMenu.tsx
|
178
178
|
import * as React5 from "react";
|
179
|
+
import { Portal } from "@headlessui/react";
|
179
180
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
180
181
|
var DropdownMenuSubTrigger = React5.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
181
182
|
DropdownMenuPrimitive.SubTrigger,
|
@@ -224,7 +225,7 @@ var DropdownMenuSubContent = React5.forwardRef(({ className, ...props }, ref) =>
|
|
224
225
|
}
|
225
226
|
));
|
226
227
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
227
|
-
var DropdownMenuContent = React5.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
228
|
+
var DropdownMenuContent = React5.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React5.createElement(Portal, null, /* @__PURE__ */ React5.createElement(
|
228
229
|
DropdownMenuPrimitive.Content,
|
229
230
|
{
|
230
231
|
ref,
|
@@ -31,16 +31,18 @@ import React2 from "react";
|
|
31
31
|
var useOutsideClick = (callback) => {
|
32
32
|
const ref = React2.useRef(null);
|
33
33
|
React2.useEffect(() => {
|
34
|
-
const
|
34
|
+
const handleClickOutside = (event) => {
|
35
35
|
if (ref.current && !ref.current.contains(event.target)) {
|
36
36
|
callback();
|
37
37
|
}
|
38
38
|
};
|
39
|
-
document.addEventListener("
|
39
|
+
document.addEventListener("mousedown", handleClickOutside, true);
|
40
|
+
document.addEventListener("touchstart", handleClickOutside, true);
|
40
41
|
return () => {
|
41
|
-
document.removeEventListener("
|
42
|
+
document.removeEventListener("mousedown", handleClickOutside, true);
|
43
|
+
document.removeEventListener("touchstart", handleClickOutside, true);
|
42
44
|
};
|
43
|
-
}, [ref]);
|
45
|
+
}, [ref, callback]);
|
44
46
|
return ref;
|
45
47
|
};
|
46
48
|
var useOutsideClick_default = useOutsideClick;
|
@@ -1010,6 +1010,7 @@ var Chip = React9.forwardRef(
|
|
1010
1010
|
|
1011
1011
|
// elements/dropdownMenu/DropdownMenu.tsx
|
1012
1012
|
import * as React10 from "react";
|
1013
|
+
import { Portal } from "@headlessui/react";
|
1013
1014
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
1014
1015
|
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
1015
1016
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
@@ -1064,7 +1065,7 @@ var DropdownMenuSubContent = React10.forwardRef(({ className, ...props }, ref) =
|
|
1064
1065
|
}
|
1065
1066
|
));
|
1066
1067
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
1067
|
-
var DropdownMenuContent = React10.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React10.createElement(
|
1068
|
+
var DropdownMenuContent = React10.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React10.createElement(Portal, null, /* @__PURE__ */ React10.createElement(
|
1068
1069
|
DropdownMenuPrimitive.Content,
|
1069
1070
|
{
|
1070
1071
|
ref,
|
@@ -1242,7 +1243,7 @@ var DropdownMenu = ({
|
|
1242
1243
|
},
|
1243
1244
|
trigger
|
1244
1245
|
),
|
1245
|
-
/* @__PURE__ */ React10.createElement(
|
1246
|
+
/* @__PURE__ */ React10.createElement(Portal, null, /* @__PURE__ */ React10.createElement(
|
1246
1247
|
DropdownMenuContent,
|
1247
1248
|
{
|
1248
1249
|
side,
|
@@ -1303,7 +1304,7 @@ var DropdownMenu = ({
|
|
1303
1304
|
},
|
1304
1305
|
item.icon && item.icon,
|
1305
1306
|
item.label && item.label
|
1306
|
-
), /* @__PURE__ */ React10.createElement(
|
1307
|
+
), /* @__PURE__ */ React10.createElement(Portal, null, /* @__PURE__ */ React10.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
1307
1308
|
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
1308
1309
|
return /* @__PURE__ */ React10.createElement(
|
1309
1310
|
DropdownMenuItem,
|