@sikka/hawa 0.35.3-next → 0.35.4-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 +42 -42
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +4 -4
- 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 +2 -2
- package/dist/blocks/pricing/index.js +75 -74
- package/dist/blocks/pricing/index.mjs +2 -1
- 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 +3 -3
- package/dist/index.css +4 -0
- package/dist/index.js +810 -809
- package/dist/index.mjs +5 -4
- package/dist/layout/index.js +138 -138
- package/dist/layout/index.mjs +3 -3
- 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/package.json +2 -1
package/dist/blocks/index.js
CHANGED
@@ -6402,7 +6402,7 @@ var ContactForm = ({
|
|
6402
6402
|
};
|
6403
6403
|
|
6404
6404
|
// blocks/pricing/PricingPlans.tsx
|
6405
|
-
var
|
6405
|
+
var import_react60 = __toESM(require("react"));
|
6406
6406
|
|
6407
6407
|
// blocks/cards/ActionCard.tsx
|
6408
6408
|
var import_react54 = __toESM(require("react"));
|
@@ -6660,14 +6660,14 @@ var PricingCard = ({
|
|
6660
6660
|
};
|
6661
6661
|
|
6662
6662
|
// blocks/cards/ItemCard.tsx
|
6663
|
-
var
|
6663
|
+
var import_react58 = __toESM(require("react"));
|
6664
6664
|
|
6665
6665
|
// elements/dropdownMenu/DropdownMenu.tsx
|
6666
6666
|
var React59 = __toESM(require("react"));
|
6667
|
+
var import_react57 = require("@headlessui/react");
|
6667
6668
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
6668
6669
|
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
6669
6670
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
6670
|
-
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
6671
6671
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
6672
6672
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
6673
6673
|
var DropdownMenuSubTrigger = React59.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React59.createElement(
|
@@ -6717,7 +6717,7 @@ var DropdownMenuSubContent = React59.forwardRef(({ className, ...props }, ref) =
|
|
6717
6717
|
}
|
6718
6718
|
));
|
6719
6719
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
6720
|
-
var DropdownMenuContent = React59.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React59.createElement(
|
6720
|
+
var DropdownMenuContent = React59.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React59.createElement(import_react57.Portal, null, /* @__PURE__ */ React59.createElement(
|
6721
6721
|
DropdownMenuPrimitive.Content,
|
6722
6722
|
{
|
6723
6723
|
ref,
|
@@ -6895,7 +6895,7 @@ var DropdownMenu = ({
|
|
6895
6895
|
},
|
6896
6896
|
trigger
|
6897
6897
|
),
|
6898
|
-
/* @__PURE__ */ React59.createElement(
|
6898
|
+
/* @__PURE__ */ React59.createElement(import_react57.Portal, null, /* @__PURE__ */ React59.createElement(
|
6899
6899
|
DropdownMenuContent,
|
6900
6900
|
{
|
6901
6901
|
side,
|
@@ -6956,7 +6956,7 @@ var DropdownMenu = ({
|
|
6956
6956
|
},
|
6957
6957
|
item.icon && item.icon,
|
6958
6958
|
item.label && item.label
|
6959
|
-
), /* @__PURE__ */ React59.createElement(
|
6959
|
+
), /* @__PURE__ */ React59.createElement(import_react57.Portal, null, /* @__PURE__ */ React59.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
6960
6960
|
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
6961
6961
|
return /* @__PURE__ */ React59.createElement(
|
6962
6962
|
DropdownMenuItem,
|
@@ -7069,12 +7069,12 @@ var ItemCard = ({
|
|
7069
7069
|
)
|
7070
7070
|
};
|
7071
7071
|
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";
|
7072
|
-
const [openActionHeader, setOpenActionHeader] = (0,
|
7072
|
+
const [openActionHeader, setOpenActionHeader] = (0, import_react58.useState)(false);
|
7073
7073
|
function handleOpenActionHeader(e) {
|
7074
7074
|
e.stopPropagation();
|
7075
7075
|
setOpenActionHeader(!openActionHeader);
|
7076
7076
|
}
|
7077
|
-
(0,
|
7077
|
+
(0, import_react58.useEffect)(() => {
|
7078
7078
|
window.onclick = () => {
|
7079
7079
|
if (openActionHeader) {
|
7080
7080
|
setOpenActionHeader(false);
|
@@ -7082,7 +7082,7 @@ var ItemCard = ({
|
|
7082
7082
|
};
|
7083
7083
|
return () => window.onclick = null;
|
7084
7084
|
}, [openActionHeader]);
|
7085
|
-
return /* @__PURE__ */
|
7085
|
+
return /* @__PURE__ */ import_react58.default.createElement(
|
7086
7086
|
"div",
|
7087
7087
|
{
|
7088
7088
|
className: cn(
|
@@ -7098,7 +7098,7 @@ var ItemCard = ({
|
|
7098
7098
|
}
|
7099
7099
|
}
|
7100
7100
|
},
|
7101
|
-
cardImage && /* @__PURE__ */
|
7101
|
+
cardImage && /* @__PURE__ */ import_react58.default.createElement("div", { className: "hawa-group hawa-relative hawa-overflow-clip" }, /* @__PURE__ */ import_react58.default.createElement(
|
7102
7102
|
"img",
|
7103
7103
|
{
|
7104
7104
|
src: cardImage,
|
@@ -7107,7 +7107,7 @@ var ItemCard = ({
|
|
7107
7107
|
clickableImage ? "hawa-overflow-clip hawa-transition-all group-hover:hawa-blur-lg" : ""
|
7108
7108
|
)
|
7109
7109
|
}
|
7110
|
-
), clickableImage && /* @__PURE__ */
|
7110
|
+
), clickableImage && /* @__PURE__ */ import_react58.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react58.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_react58.default.createElement(
|
7111
7111
|
Button,
|
7112
7112
|
{
|
7113
7113
|
variant: "secondary",
|
@@ -7117,19 +7117,19 @@ var ItemCard = ({
|
|
7117
7117
|
clickableImageActionIcon,
|
7118
7118
|
clickableImageActionText || "Click"
|
7119
7119
|
)))),
|
7120
|
-
/* @__PURE__ */
|
7120
|
+
/* @__PURE__ */ import_react58.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_react58.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_react58.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react58.default.createElement(
|
7121
7121
|
DropdownMenu,
|
7122
7122
|
{
|
7123
7123
|
items: headerActions,
|
7124
|
-
trigger: /* @__PURE__ */
|
7124
|
+
trigger: /* @__PURE__ */ import_react58.default.createElement(
|
7125
7125
|
Button,
|
7126
7126
|
{
|
7127
7127
|
variant: "ghost",
|
7128
7128
|
size: "smallIcon",
|
7129
7129
|
onClick: handleOpenActionHeader
|
7130
7130
|
},
|
7131
|
-
/* @__PURE__ */
|
7132
|
-
/* @__PURE__ */
|
7131
|
+
/* @__PURE__ */ import_react58.default.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"),
|
7132
|
+
/* @__PURE__ */ import_react58.default.createElement(
|
7133
7133
|
"svg",
|
7134
7134
|
{
|
7135
7135
|
className: "hawa-h-5 hawa-w-5",
|
@@ -7137,11 +7137,11 @@ var ItemCard = ({
|
|
7137
7137
|
fill: "currentColor",
|
7138
7138
|
viewBox: "0 0 20 20"
|
7139
7139
|
},
|
7140
|
-
/* @__PURE__ */
|
7140
|
+
/* @__PURE__ */ import_react58.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" })
|
7141
7141
|
)
|
7142
7142
|
)
|
7143
7143
|
}
|
7144
|
-
))), /* @__PURE__ */
|
7144
|
+
))), /* @__PURE__ */ import_react58.default.createElement("div", { className: " hawa-mx-2" }, header && /* @__PURE__ */ import_react58.default.createElement("h5", { className: "hawa-mb-2 hawa-text-2xl hawa-font-bold hawa-tracking-tight " }, header), content && /* @__PURE__ */ import_react58.default.createElement("span", { className: "hawa-w-full hawa-font-normal " }, content)), actions || counts ? /* @__PURE__ */ import_react58.default.createElement(
|
7145
7145
|
"div",
|
7146
7146
|
{
|
7147
7147
|
className: cn(
|
@@ -7151,15 +7151,15 @@ var ItemCard = ({
|
|
7151
7151
|
)
|
7152
7152
|
},
|
7153
7153
|
counts,
|
7154
|
-
/* @__PURE__ */
|
7154
|
+
/* @__PURE__ */ import_react58.default.createElement(StopPropagationWrapper, null, actions)
|
7155
7155
|
) : null)
|
7156
7156
|
);
|
7157
7157
|
};
|
7158
7158
|
|
7159
7159
|
// blocks/cards/LandingCard.tsx
|
7160
|
-
var
|
7160
|
+
var import_react59 = __toESM(require("react"));
|
7161
7161
|
var LandingCard = (props) => {
|
7162
|
-
return /* @__PURE__ */
|
7162
|
+
return /* @__PURE__ */ import_react59.default.createElement(Card, { className: props.className }, /* @__PURE__ */ import_react59.default.createElement(CardHeader, null, props.icon, /* @__PURE__ */ import_react59.default.createElement(CardTitle, null, props.title), /* @__PURE__ */ import_react59.default.createElement(CardDescription, null, props.subtitle)));
|
7163
7163
|
};
|
7164
7164
|
|
7165
7165
|
// blocks/pricing/PricingPlans.tsx
|
@@ -7168,7 +7168,7 @@ var PricingPlans = ({
|
|
7168
7168
|
cardsContainerProps,
|
7169
7169
|
...props
|
7170
7170
|
}) => {
|
7171
|
-
return /* @__PURE__ */
|
7171
|
+
return /* @__PURE__ */ import_react60.default.createElement("div", { ...mainContainerProps }, /* @__PURE__ */ import_react60.default.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ import_react60.default.createElement(
|
7172
7172
|
Radio,
|
7173
7173
|
{
|
7174
7174
|
name: "cycle",
|
@@ -7181,7 +7181,7 @@ var PricingPlans = ({
|
|
7181
7181
|
}
|
7182
7182
|
}
|
7183
7183
|
}
|
7184
|
-
), /* @__PURE__ */
|
7184
|
+
), /* @__PURE__ */ import_react60.default.createElement(
|
7185
7185
|
Radio,
|
7186
7186
|
{
|
7187
7187
|
name: "currency",
|
@@ -7194,7 +7194,7 @@ var PricingPlans = ({
|
|
7194
7194
|
}
|
7195
7195
|
}
|
7196
7196
|
}
|
7197
|
-
)), /* @__PURE__ */
|
7197
|
+
)), /* @__PURE__ */ import_react60.default.createElement(
|
7198
7198
|
"div",
|
7199
7199
|
{
|
7200
7200
|
className: "hawa-inline-grid hawa-w-full hawa-grid-cols-[repeat(auto-fit,_minmax(300px,_1fr))] hawa-gap-4",
|
@@ -7202,7 +7202,7 @@ var PricingPlans = ({
|
|
7202
7202
|
},
|
7203
7203
|
props.plans.map((plan, index) => {
|
7204
7204
|
var _a, _b;
|
7205
|
-
return /* @__PURE__ */
|
7205
|
+
return /* @__PURE__ */ import_react60.default.createElement(
|
7206
7206
|
PricingCard,
|
7207
7207
|
{
|
7208
7208
|
key: index,
|
@@ -7233,7 +7233,7 @@ var PricingPlans = ({
|
|
7233
7233
|
};
|
7234
7234
|
|
7235
7235
|
// blocks/pricing/ComparingPlans.tsx
|
7236
|
-
var
|
7236
|
+
var import_react61 = __toESM(require("react"));
|
7237
7237
|
var ComparingPlans = (props) => {
|
7238
7238
|
const uniqueFeatures = Array.from(
|
7239
7239
|
new Set(
|
@@ -7242,7 +7242,7 @@ var ComparingPlans = (props) => {
|
|
7242
7242
|
)
|
7243
7243
|
)
|
7244
7244
|
);
|
7245
|
-
return /* @__PURE__ */
|
7245
|
+
return /* @__PURE__ */ import_react61.default.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ import_react61.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_react61.default.createElement(
|
7246
7246
|
Radio,
|
7247
7247
|
{
|
7248
7248
|
name: "cycle",
|
@@ -7257,7 +7257,7 @@ var ComparingPlans = (props) => {
|
|
7257
7257
|
}
|
7258
7258
|
}
|
7259
7259
|
}
|
7260
|
-
), /* @__PURE__ */
|
7260
|
+
), /* @__PURE__ */ import_react61.default.createElement(
|
7261
7261
|
Radio,
|
7262
7262
|
{
|
7263
7263
|
name: "currency",
|
@@ -7272,7 +7272,7 @@ var ComparingPlans = (props) => {
|
|
7272
7272
|
}
|
7273
7273
|
}
|
7274
7274
|
}
|
7275
|
-
)), /* @__PURE__ */
|
7275
|
+
)), /* @__PURE__ */ import_react61.default.createElement(
|
7276
7276
|
"div",
|
7277
7277
|
{
|
7278
7278
|
className: cn(
|
@@ -7283,16 +7283,16 @@ var ComparingPlans = (props) => {
|
|
7283
7283
|
top: props.topPosition || 0
|
7284
7284
|
}
|
7285
7285
|
},
|
7286
|
-
/* @__PURE__ */
|
7287
|
-
props.plans.map((plan, i) => /* @__PURE__ */
|
7286
|
+
/* @__PURE__ */ import_react61.default.createElement("div", { className: "hawa-flex hawa-items-center" }),
|
7287
|
+
props.plans.map((plan, i) => /* @__PURE__ */ import_react61.default.createElement(
|
7288
7288
|
"div",
|
7289
7289
|
{
|
7290
7290
|
key: i,
|
7291
7291
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2"
|
7292
7292
|
},
|
7293
|
-
/* @__PURE__ */
|
7293
|
+
/* @__PURE__ */ import_react61.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react61.default.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react61.default.createElement("span", { className: "hawa-text-md hawa-font-bold " }, plan.texts.title), /* @__PURE__ */ import_react61.default.createElement("span", { className: "hawa-text-md hawa-font-normal hawa-text-muted-foreground " }, plan.texts.subtitle)), /* @__PURE__ */ import_react61.default.createElement("div", { className: " hawa-flex hawa-items-baseline " }, /* @__PURE__ */ import_react61.default.createElement(import_react61.default.Fragment, null, /* @__PURE__ */ import_react61.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, plan.price), /* @__PURE__ */ import_react61.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ import_react61.default.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal " }, "/ ", plan.texts.cycleText)))
|
7294
7294
|
))
|
7295
|
-
), /* @__PURE__ */
|
7295
|
+
), /* @__PURE__ */ import_react61.default.createElement(
|
7296
7296
|
ScrollArea,
|
7297
7297
|
{
|
7298
7298
|
className: "hawa-h-fit hawa-rounded hawa-rounded-t-none hawa-border hawa-border-t-0 hawa-bg-background",
|
@@ -7300,7 +7300,7 @@ var ComparingPlans = (props) => {
|
|
7300
7300
|
},
|
7301
7301
|
uniqueFeatures.map((featureText, featureIndex) => {
|
7302
7302
|
var _a, _b, _c, _d;
|
7303
|
-
return /* @__PURE__ */
|
7303
|
+
return /* @__PURE__ */ import_react61.default.createElement(
|
7304
7304
|
"div",
|
7305
7305
|
{
|
7306
7306
|
key: featureIndex,
|
@@ -7309,11 +7309,11 @@ var ComparingPlans = (props) => {
|
|
7309
7309
|
featureIndex === 0 ? "" : "hawa-border-t"
|
7310
7310
|
)
|
7311
7311
|
},
|
7312
|
-
/* @__PURE__ */
|
7312
|
+
/* @__PURE__ */ import_react61.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-foreground" }, featureText, props.plans.some(
|
7313
7313
|
(plan) => plan.features.some(
|
7314
7314
|
(feature) => feature.text === featureText && feature.hint
|
7315
7315
|
)
|
7316
|
-
) && /* @__PURE__ */
|
7316
|
+
) && /* @__PURE__ */ import_react61.default.createElement(
|
7317
7317
|
Tooltip,
|
7318
7318
|
{
|
7319
7319
|
side: "right",
|
@@ -7328,7 +7328,7 @@ var ComparingPlans = (props) => {
|
|
7328
7328
|
(feature) => feature.text === featureText
|
7329
7329
|
)) == null ? void 0 : _b.hint
|
7330
7330
|
},
|
7331
|
-
/* @__PURE__ */
|
7331
|
+
/* @__PURE__ */ import_react61.default.createElement(
|
7332
7332
|
"svg",
|
7333
7333
|
{
|
7334
7334
|
stroke: "currentColor",
|
@@ -7338,13 +7338,13 @@ var ComparingPlans = (props) => {
|
|
7338
7338
|
height: "1em",
|
7339
7339
|
width: "1em"
|
7340
7340
|
},
|
7341
|
-
/* @__PURE__ */
|
7341
|
+
/* @__PURE__ */ import_react61.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" })
|
7342
7342
|
)
|
7343
7343
|
), props.plans.some(
|
7344
7344
|
(plan) => plan.features.some(
|
7345
7345
|
(feature) => feature.text === featureText && feature.soon
|
7346
7346
|
)
|
7347
|
-
) && /* @__PURE__ */
|
7347
|
+
) && /* @__PURE__ */ import_react61.default.createElement(
|
7348
7348
|
Chip,
|
7349
7349
|
{
|
7350
7350
|
label: ((_d = (_c = props.plans.find(
|
@@ -7358,26 +7358,26 @@ var ComparingPlans = (props) => {
|
|
7358
7358
|
const feature = plan.features.find(
|
7359
7359
|
(f) => f.text === featureText
|
7360
7360
|
);
|
7361
|
-
return /* @__PURE__ */
|
7361
|
+
return /* @__PURE__ */ import_react61.default.createElement(
|
7362
7362
|
"div",
|
7363
7363
|
{
|
7364
7364
|
key: planIndex,
|
7365
7365
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-text-center"
|
7366
7366
|
},
|
7367
|
-
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */
|
7367
|
+
(feature == null ? void 0 : feature.included) ? /* @__PURE__ */ import_react61.default.createElement(CheckMark, { className: "hawa-text-foreground" }) : /* @__PURE__ */ import_react61.default.createElement(UncheckMark, { className: "hawa-text-foreground" })
|
7368
7368
|
);
|
7369
7369
|
})
|
7370
7370
|
);
|
7371
7371
|
})
|
7372
|
-
), props.showButtons && /* @__PURE__ */
|
7372
|
+
), props.showButtons && /* @__PURE__ */ import_react61.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_react61.default.createElement("div", { className: "hawa-flex hawa-items-center" }), props.plans.map((plan, i) => {
|
7373
7373
|
var _a;
|
7374
|
-
return /* @__PURE__ */
|
7374
|
+
return /* @__PURE__ */ import_react61.default.createElement(
|
7375
7375
|
"div",
|
7376
7376
|
{
|
7377
7377
|
key: i,
|
7378
7378
|
className: "hawa-flex hawa-items-center hawa-justify-center"
|
7379
7379
|
},
|
7380
|
-
/* @__PURE__ */
|
7380
|
+
/* @__PURE__ */ import_react61.default.createElement(
|
7381
7381
|
Button,
|
7382
7382
|
{
|
7383
7383
|
className: "hawa-w-full hawa-max-w-xs",
|
@@ -7401,15 +7401,15 @@ var ComparingPlans = (props) => {
|
|
7401
7401
|
};
|
7402
7402
|
|
7403
7403
|
// blocks/pricing/HorizontalPricing.tsx
|
7404
|
-
var
|
7404
|
+
var import_react62 = __toESM(require("react"));
|
7405
7405
|
var HorizontalPricing = (props) => {
|
7406
|
-
const [selectedCard, setSelectedCard] = (0,
|
7406
|
+
const [selectedCard, setSelectedCard] = (0, import_react62.useState)("");
|
7407
7407
|
let data = [
|
7408
7408
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
7409
7409
|
{ title: "business", price: "$99", cycle: "/mo" },
|
7410
7410
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
7411
7411
|
];
|
7412
|
-
return /* @__PURE__ */
|
7412
|
+
return /* @__PURE__ */ import_react62.default.createElement("div", { className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm" }, /* @__PURE__ */ import_react62.default.createElement("div", { className: "hawa-max-w-2xl " }, /* @__PURE__ */ import_react62.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ import_react62.default.createElement(
|
7413
7413
|
Radio,
|
7414
7414
|
{
|
7415
7415
|
name: "currency",
|
@@ -7417,7 +7417,7 @@ var HorizontalPricing = (props) => {
|
|
7417
7417
|
options: props.currencies,
|
7418
7418
|
defaultValue: props.currentCurrency
|
7419
7419
|
}
|
7420
|
-
), /* @__PURE__ */
|
7420
|
+
), /* @__PURE__ */ import_react62.default.createElement(
|
7421
7421
|
Radio,
|
7422
7422
|
{
|
7423
7423
|
name: "cycle",
|
@@ -7425,7 +7425,7 @@ var HorizontalPricing = (props) => {
|
|
7425
7425
|
options: props.billingCycles,
|
7426
7426
|
defaultValue: props.currentCycle
|
7427
7427
|
}
|
7428
|
-
)), data.map((d, i) => /* @__PURE__ */
|
7428
|
+
)), data.map((d, i) => /* @__PURE__ */ import_react62.default.createElement(
|
7429
7429
|
"label",
|
7430
7430
|
{
|
7431
7431
|
key: i,
|
@@ -7433,7 +7433,7 @@ var HorizontalPricing = (props) => {
|
|
7433
7433
|
className: "",
|
7434
7434
|
onClick: () => setSelectedCard(d.title)
|
7435
7435
|
},
|
7436
|
-
/* @__PURE__ */
|
7436
|
+
/* @__PURE__ */ import_react62.default.createElement(
|
7437
7437
|
"input",
|
7438
7438
|
{
|
7439
7439
|
type: "radio",
|
@@ -7442,7 +7442,7 @@ var HorizontalPricing = (props) => {
|
|
7442
7442
|
className: "hawa-peer hawa-appearance-none"
|
7443
7443
|
}
|
7444
7444
|
),
|
7445
|
-
/* @__PURE__ */
|
7445
|
+
/* @__PURE__ */ import_react62.default.createElement(
|
7446
7446
|
"div",
|
7447
7447
|
{
|
7448
7448
|
className: cn(
|
@@ -7450,18 +7450,18 @@ var HorizontalPricing = (props) => {
|
|
7450
7450
|
"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"
|
7451
7451
|
)
|
7452
7452
|
},
|
7453
|
-
/* @__PURE__ */
|
7453
|
+
/* @__PURE__ */ import_react62.default.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ import_react62.default.createElement(CheckIcons, null), /* @__PURE__ */ import_react62.default.createElement(
|
7454
7454
|
CardText,
|
7455
7455
|
{
|
7456
7456
|
title: "Enterprise",
|
7457
7457
|
subtitle: "For startups and new businesses"
|
7458
7458
|
}
|
7459
7459
|
)),
|
7460
|
-
/* @__PURE__ */
|
7460
|
+
/* @__PURE__ */ import_react62.default.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
7461
7461
|
)
|
7462
7462
|
))));
|
7463
7463
|
};
|
7464
|
-
var CheckIcons = () => /* @__PURE__ */
|
7464
|
+
var CheckIcons = () => /* @__PURE__ */ import_react62.default.createElement(import_react62.default.Fragment, null, /* @__PURE__ */ import_react62.default.createElement(
|
7465
7465
|
"svg",
|
7466
7466
|
{
|
7467
7467
|
fill: "none",
|
@@ -7470,7 +7470,7 @@ var CheckIcons = () => /* @__PURE__ */ import_react61.default.createElement(impo
|
|
7470
7470
|
stroke: "currentColor",
|
7471
7471
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
7472
7472
|
},
|
7473
|
-
/* @__PURE__ */
|
7473
|
+
/* @__PURE__ */ import_react62.default.createElement(
|
7474
7474
|
"path",
|
7475
7475
|
{
|
7476
7476
|
strokeLinecap: "round",
|
@@ -7478,14 +7478,14 @@ var CheckIcons = () => /* @__PURE__ */ import_react61.default.createElement(impo
|
|
7478
7478
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
7479
7479
|
}
|
7480
7480
|
)
|
7481
|
-
), /* @__PURE__ */
|
7481
|
+
), /* @__PURE__ */ import_react62.default.createElement(
|
7482
7482
|
"svg",
|
7483
7483
|
{
|
7484
7484
|
viewBox: "0 0 24 24",
|
7485
7485
|
fill: "currentColor",
|
7486
7486
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
7487
7487
|
},
|
7488
|
-
/* @__PURE__ */
|
7488
|
+
/* @__PURE__ */ import_react62.default.createElement(
|
7489
7489
|
"path",
|
7490
7490
|
{
|
7491
7491
|
fillRule: "evenodd",
|
@@ -7494,11 +7494,11 @@ var CheckIcons = () => /* @__PURE__ */ import_react61.default.createElement(impo
|
|
7494
7494
|
}
|
7495
7495
|
)
|
7496
7496
|
));
|
7497
|
-
var CardText = (props) => /* @__PURE__ */
|
7498
|
-
var CardPrice = (props) => /* @__PURE__ */
|
7497
|
+
var CardText = (props) => /* @__PURE__ */ import_react62.default.createElement("div", { className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start " }, /* @__PURE__ */ import_react62.default.createElement("h2", { className: "hawa-font-medium hawa-text-primary/90 sm:hawa-text-xl" }, props.title), /* @__PURE__ */ import_react62.default.createElement("p", { className: "hawa-text-sm hawa-text-primary/60" }, props.subtitle, " "));
|
7498
|
+
var CardPrice = (props) => /* @__PURE__ */ import_react62.default.createElement("h2", { className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-primary sm:hawa-text-2xl" }, props.amount, /* @__PURE__ */ import_react62.default.createElement("span", { className: "hawa-text-base hawa-font-medium hawa-text-neutral-400" }, props.cycle));
|
7499
7499
|
|
7500
7500
|
// blocks/Usage.tsx
|
7501
|
-
var
|
7501
|
+
var import_react63 = __toESM(require("react"));
|
7502
7502
|
|
7503
7503
|
// elements/progress/Progress.tsx
|
7504
7504
|
var React65 = __toESM(require("react"));
|
@@ -7526,7 +7526,7 @@ Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
7526
7526
|
// blocks/Usage.tsx
|
7527
7527
|
var Usage = (props) => {
|
7528
7528
|
var _a;
|
7529
|
-
return /* @__PURE__ */
|
7529
|
+
return /* @__PURE__ */ import_react63.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_react63.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, /* @__PURE__ */ import_react63.default.createElement("span", { className: "hawa-bg-white-200" }, props.title), props.tooltip && /* @__PURE__ */ import_react63.default.createElement(Tooltip, { content: props.tooltip }, /* @__PURE__ */ import_react63.default.createElement(
|
7530
7530
|
"svg",
|
7531
7531
|
{
|
7532
7532
|
stroke: "currentColor",
|
@@ -7537,8 +7537,8 @@ var Usage = (props) => {
|
|
7537
7537
|
height: "1em",
|
7538
7538
|
width: "1em"
|
7539
7539
|
},
|
7540
|
-
/* @__PURE__ */
|
7541
|
-
))), /* @__PURE__ */
|
7540
|
+
/* @__PURE__ */ import_react63.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" })
|
7541
|
+
))), /* @__PURE__ */ import_react63.default.createElement("div", { className: "hawa-bg-white-100 hawa-flex hawa-flex-row" }, /* @__PURE__ */ import_react63.default.createElement("div", null, props.currentUsage), /* @__PURE__ */ import_react63.default.createElement("div", null, " (", props.percent, "%)")), /* @__PURE__ */ import_react63.default.createElement(Progress, { value: (_a = props.percent) != null ? _a : 0 }));
|
7542
7542
|
};
|
7543
7543
|
// Annotate the CommonJS export names for ESM import in node:
|
7544
7544
|
0 && (module.exports = {
|
package/dist/blocks/index.mjs
CHANGED
@@ -25,7 +25,7 @@ import {
|
|
25
25
|
UncheckMark,
|
26
26
|
VeryBadEmoji,
|
27
27
|
VeryGoodEmoji
|
28
|
-
} from "../chunk-
|
28
|
+
} from "../chunk-TERP5K6R.mjs";
|
29
29
|
import "../chunk-OPYDG34F.mjs";
|
30
30
|
import {
|
31
31
|
Button,
|
@@ -43,7 +43,7 @@ import {
|
|
43
43
|
Skeleton,
|
44
44
|
Tooltip,
|
45
45
|
cn
|
46
|
-
} from "../chunk-
|
46
|
+
} from "../chunk-G7JHUC5N.mjs";
|
47
47
|
import "../chunk-JU6Q4Q3T.mjs";
|
48
48
|
|
49
49
|
// blocks/auth/AuthButtons.tsx
|