@sikka/hawa 0.39.0-next → 0.40.1-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 +15 -15
- package/dist/blocks/auth/index.mjs +17 -17
- package/dist/blocks/feedback/index.js +162 -119
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.d.mts +2 -2
- package/dist/blocks/index.d.ts +2 -2
- package/dist/blocks/index.js +455 -463
- package/dist/blocks/index.mjs +3 -3
- package/dist/blocks/misc/index.js +238 -289
- package/dist/blocks/misc/index.mjs +147 -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-C2IX3SUD.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-VMVZM3QQ.mjs → chunk-GU2DOJ7Q.mjs} +31 -8
- package/dist/{chunk-W3CF7BSC.mjs → chunk-QSEQS7DS.mjs} +251 -261
- package/dist/{chunk-RTK6REIK.mjs → chunk-QZIENYTE.mjs} +1 -1
- package/dist/{chunk-EZBHA2IL.mjs → chunk-RT2Q3SH7.mjs} +1 -1
- 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.js +2 -2
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +2 -2
- 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 +2 -2
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +2 -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 +7 -5
- package/dist/elements/index.d.ts +7 -5
- package/dist/elements/index.js +559 -544
- package/dist/elements/index.mjs +5 -5
- 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 +26 -4
- package/dist/index.d.ts +26 -4
- package/dist/index.js +1033 -972
- package/dist/index.mjs +984 -925
- 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 +14 -3
- package/dist/layout/index.mjs +14 -3
- 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/pinInput/index.js +13 -13
- package/dist/pinInput/index.js.map +1 -1
- package/dist/pinInput/index.mjs +13 -13
- package/dist/pinInput/index.mjs.map +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 +3 -5
- 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
|
{
|
@@ -4708,19 +4708,19 @@ var z5 = __toESM(require("zod"));
|
|
4708
4708
|
var React25 = __toESM(require("react"));
|
4709
4709
|
var import_input_otp = require("input-otp");
|
4710
4710
|
|
4711
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
4711
|
+
// ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
4712
4712
|
var import_react23 = require("react");
|
4713
4713
|
|
4714
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
4714
|
+
// ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
4715
4715
|
var toKebabCase = (string9) => string9.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
4716
4716
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
4717
4717
|
return Boolean(className) && array.indexOf(className) === index;
|
4718
4718
|
}).join(" ");
|
4719
4719
|
|
4720
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
4720
|
+
// ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
4721
4721
|
var import_react22 = require("react");
|
4722
4722
|
|
4723
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
4723
|
+
// ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
4724
4724
|
var defaultAttributes = {
|
4725
4725
|
xmlns: "http://www.w3.org/2000/svg",
|
4726
4726
|
width: 24,
|
@@ -4733,7 +4733,7 @@ var defaultAttributes = {
|
|
4733
4733
|
strokeLinejoin: "round"
|
4734
4734
|
};
|
4735
4735
|
|
4736
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
4736
|
+
// ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
4737
4737
|
var Icon = (0, import_react22.forwardRef)(
|
4738
4738
|
({
|
4739
4739
|
color = "currentColor",
|
@@ -4765,7 +4765,7 @@ var Icon = (0, import_react22.forwardRef)(
|
|
4765
4765
|
}
|
4766
4766
|
);
|
4767
4767
|
|
4768
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
4768
|
+
// ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
4769
4769
|
var createLucideIcon = (iconName, iconNode) => {
|
4770
4770
|
const Component = (0, import_react23.forwardRef)(
|
4771
4771
|
({ className, ...props }, ref) => (0, import_react23.createElement)(Icon, {
|
@@ -4779,7 +4779,7 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
4779
4779
|
return Component;
|
4780
4780
|
};
|
4781
4781
|
|
4782
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
4782
|
+
// ../../node_modules/.pnpm/lucide-react@0.381.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
4783
4783
|
var Dot = createLucideIcon("Dot", [
|
4784
4784
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
4785
4785
|
]);
|
@@ -5029,6 +5029,7 @@ var Radio = (0, import_react25.forwardRef)(
|
|
5029
5029
|
tabsContainerClassName,
|
5030
5030
|
forceHideHelperText = false,
|
5031
5031
|
onChange,
|
5032
|
+
containerClassNames,
|
5032
5033
|
...props
|
5033
5034
|
}, ref) => {
|
5034
5035
|
var _a, _b, _c;
|
@@ -5084,161 +5085,203 @@ var Radio = (0, import_react25.forwardRef)(
|
|
5084
5085
|
];
|
5085
5086
|
switch (design) {
|
5086
5087
|
case "tabs":
|
5087
|
-
return /* @__PURE__ */ import_react25.default.createElement(
|
5088
|
-
"
|
5088
|
+
return /* @__PURE__ */ import_react25.default.createElement(
|
5089
|
+
"div",
|
5089
5090
|
{
|
5090
|
-
ref: parentRef,
|
5091
5091
|
className: cn(
|
5092
|
-
|
5093
|
-
|
5094
|
-
orientationStyle[orientation],
|
5095
|
-
widthStyle[width],
|
5096
|
-
tabsContainerClassName
|
5092
|
+
"hawa-gap-2 hawa-flex hawa-flex-col",
|
5093
|
+
containerClassNames == null ? void 0 : containerClassNames.tabs
|
5097
5094
|
)
|
5098
5095
|
},
|
5099
|
-
|
5100
|
-
|
5101
|
-
|
5102
|
-
|
5103
|
-
|
5104
|
-
|
5105
|
-
|
5106
|
-
|
5107
|
-
|
5108
|
-
|
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,
|
5109
5112
|
{
|
5110
|
-
|
5111
|
-
|
5112
|
-
|
5113
|
+
key: o,
|
5114
|
+
open: o === openTooltip,
|
5115
|
+
onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
|
5113
5116
|
},
|
5114
5117
|
/* @__PURE__ */ import_react25.default.createElement(
|
5115
|
-
|
5118
|
+
PopoverTrigger,
|
5116
5119
|
{
|
5117
|
-
|
5118
|
-
|
5119
|
-
|
5120
|
-
|
5121
|
-
|
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
|
+
)
|
5122
5137
|
},
|
5123
|
-
|
5124
|
-
|
5125
|
-
|
5126
|
-
|
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);
|
5127
5152
|
},
|
5128
|
-
|
5129
|
-
|
5130
|
-
|
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"
|
5131
5181
|
),
|
5132
|
-
|
5133
|
-
|
5134
|
-
|
5182
|
+
key: i + 1
|
5183
|
+
},
|
5184
|
+
/* @__PURE__ */ import_react25.default.createElement(
|
5185
|
+
"input",
|
5135
5186
|
{
|
5136
|
-
|
5137
|
-
|
5138
|
-
|
5139
|
-
|
5140
|
-
|
5141
|
-
|
5142
|
-
|
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(),
|
5143
5199
|
className: cn(
|
5144
|
-
|
5145
|
-
|
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"
|
5146
5202
|
)
|
5147
5203
|
},
|
5148
|
-
opt.icon && opt.icon,
|
5149
5204
|
opt.label
|
5150
|
-
)
|
5151
|
-
|
5152
|
-
)
|
5153
|
-
case "
|
5154
|
-
return /* @__PURE__ */ import_react25.default.createElement(
|
5155
|
-
"
|
5205
|
+
)
|
5206
|
+
)))
|
5207
|
+
);
|
5208
|
+
case "cards":
|
5209
|
+
return /* @__PURE__ */ import_react25.default.createElement(
|
5210
|
+
"ul",
|
5156
5211
|
{
|
5157
5212
|
className: cn(
|
5158
|
-
|
5159
|
-
|
5160
|
-
|
5161
|
-
|
5213
|
+
orientationStyle[orientation],
|
5214
|
+
"hawa-gap-4",
|
5215
|
+
containerClassNames == null ? void 0 : containerClassNames.cards
|
5216
|
+
)
|
5162
5217
|
},
|
5163
|
-
/* @__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(
|
5164
5219
|
"input",
|
5165
5220
|
{
|
5166
|
-
disabled: opt.disabled,
|
5167
|
-
id: opt.value.toString(),
|
5168
5221
|
type: "radio",
|
5169
|
-
|
5222
|
+
id: opt.value.toString(),
|
5170
5223
|
name,
|
5171
|
-
|
5224
|
+
value: opt.value.toString(),
|
5225
|
+
className: "hawa-peer hawa-hidden",
|
5226
|
+
required: true,
|
5227
|
+
disabled: opt.disabled
|
5172
5228
|
}
|
5173
|
-
),
|
5174
|
-
/* @__PURE__ */ import_react25.default.createElement(
|
5229
|
+
), /* @__PURE__ */ import_react25.default.createElement(
|
5175
5230
|
"label",
|
5176
5231
|
{
|
5177
5232
|
htmlFor: opt.value.toString(),
|
5178
5233
|
className: cn(
|
5179
|
-
"hawa-
|
5180
|
-
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"
|
5181
5236
|
)
|
5182
5237
|
},
|
5183
|
-
opt.label
|
5184
|
-
)
|
5185
|
-
)
|
5186
|
-
case "cards":
|
5187
|
-
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(
|
5188
|
-
"input",
|
5189
|
-
{
|
5190
|
-
type: "radio",
|
5191
|
-
id: opt.value.toString(),
|
5192
|
-
name,
|
5193
|
-
value: opt.value.toString(),
|
5194
|
-
className: "hawa-peer hawa-hidden",
|
5195
|
-
required: true,
|
5196
|
-
disabled: opt.disabled
|
5197
|
-
}
|
5198
|
-
), /* @__PURE__ */ import_react25.default.createElement(
|
5199
|
-
"label",
|
5200
|
-
{
|
5201
|
-
htmlFor: opt.value.toString(),
|
5202
|
-
className: cn(
|
5203
|
-
"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",
|
5204
|
-
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"
|
5205
|
-
)
|
5206
|
-
},
|
5207
|
-
/* @__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))
|
5208
|
-
))));
|
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
|
+
);
|
5209
5241
|
default:
|
5210
|
-
return /* @__PURE__ */ import_react25.default.createElement(
|
5242
|
+
return /* @__PURE__ */ import_react25.default.createElement(
|
5211
5243
|
"div",
|
5212
5244
|
{
|
5213
5245
|
className: cn(
|
5214
|
-
"
|
5215
|
-
|
5216
|
-
)
|
5217
|
-
key: i + 1
|
5246
|
+
"hawa-flex hawa-flex-col hawa-gap-2",
|
5247
|
+
containerClassNames == null ? void 0 : containerClassNames.default
|
5248
|
+
)
|
5218
5249
|
},
|
5219
|
-
/* @__PURE__ */ import_react25.default.createElement(
|
5220
|
-
|
5221
|
-
|
5222
|
-
disabled: opt.disabled,
|
5223
|
-
id: opt.value.toString(),
|
5224
|
-
type: "radio",
|
5225
|
-
value: opt.value,
|
5226
|
-
name,
|
5227
|
-
onChange: () => handleChange(opt)
|
5228
|
-
}
|
5229
|
-
),
|
5230
|
-
/* @__PURE__ */ import_react25.default.createElement(
|
5231
|
-
"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",
|
5232
5253
|
{
|
5233
|
-
htmlFor: opt.value.toString(),
|
5234
5254
|
className: cn(
|
5235
|
-
"
|
5236
|
-
|
5237
|
-
)
|
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
|
5238
5259
|
},
|
5239
|
-
|
5240
|
-
|
5241
|
-
|
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
|
+
);
|
5242
5285
|
}
|
5243
5286
|
}
|
5244
5287
|
);
|
@@ -5768,7 +5811,7 @@ var FeedbackForm = (props) => {
|
|
5768
5811
|
};
|
5769
5812
|
|
5770
5813
|
// blocks/misc/LegalTexts.tsx
|
5771
|
-
var
|
5814
|
+
var import_react50 = __toESM(require("react"));
|
5772
5815
|
|
5773
5816
|
// elements/scrollArea/ScrollArea.tsx
|
5774
5817
|
var React34 = __toESM(require("react"));
|
@@ -5894,7 +5937,7 @@ var ScrollBar = React34.forwardRef(({ className, orientation = "vertical", ...pr
|
|
5894
5937
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
5895
5938
|
|
5896
5939
|
// elements/tabs/Tabs.tsx
|
5897
|
-
var
|
5940
|
+
var React44 = __toESM(require("react"));
|
5898
5941
|
|
5899
5942
|
// hooks/useIsomorphicEffect.ts
|
5900
5943
|
var import_react30 = require("react");
|
@@ -5945,37 +5988,6 @@ var import_react43 = require("react");
|
|
5945
5988
|
|
5946
5989
|
// hooks/useMeasureDirty.ts
|
5947
5990
|
var import_react44 = require("react");
|
5948
|
-
var useMeasureDirty = (ref) => {
|
5949
|
-
const frame = (0, import_react44.useRef)(0);
|
5950
|
-
const [rect, set] = (0, import_react44.useState)({
|
5951
|
-
width: 0,
|
5952
|
-
height: 0,
|
5953
|
-
top: 0,
|
5954
|
-
left: 0,
|
5955
|
-
bottom: 0,
|
5956
|
-
right: 0
|
5957
|
-
});
|
5958
|
-
const [observer] = (0, import_react44.useState)(
|
5959
|
-
() => new ResizeObserver((entries) => {
|
5960
|
-
const entry = entries[0];
|
5961
|
-
if (entry) {
|
5962
|
-
cancelAnimationFrame(frame.current);
|
5963
|
-
frame.current = requestAnimationFrame(() => {
|
5964
|
-
if (ref.current) {
|
5965
|
-
set(entry.contentRect);
|
5966
|
-
}
|
5967
|
-
});
|
5968
|
-
}
|
5969
|
-
})
|
5970
|
-
);
|
5971
|
-
(0, import_react44.useEffect)(() => {
|
5972
|
-
observer.disconnect();
|
5973
|
-
if (ref.current) {
|
5974
|
-
observer.observe(ref.current);
|
5975
|
-
}
|
5976
|
-
}, [ref]);
|
5977
|
-
return rect;
|
5978
|
-
};
|
5979
5991
|
|
5980
5992
|
// hooks/useClickOutside.ts
|
5981
5993
|
var import_react45 = require("react");
|
@@ -5983,13 +5995,45 @@ var import_react45 = require("react");
|
|
5983
5995
|
// hooks/useShortcuts.ts
|
5984
5996
|
var import_react46 = require("react");
|
5985
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
|
+
|
5986
6029
|
// elements/tabs/Tabs.tsx
|
6030
|
+
var Popover2 = __toESM(require("@radix-ui/react-popover"));
|
5987
6031
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
5988
6032
|
var import_tailwind_variants = require("tailwind-variants");
|
5989
6033
|
|
5990
6034
|
// elements/chip/Chip.tsx
|
5991
|
-
var
|
5992
|
-
var Chip =
|
6035
|
+
var import_react49 = __toESM(require("react"));
|
6036
|
+
var Chip = import_react49.default.forwardRef(
|
5993
6037
|
({
|
5994
6038
|
label,
|
5995
6039
|
size = "normal",
|
@@ -6033,7 +6077,7 @@ var Chip = import_react47.default.forwardRef(
|
|
6033
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"
|
6034
6078
|
};
|
6035
6079
|
if (label) {
|
6036
|
-
return /* @__PURE__ */
|
6080
|
+
return /* @__PURE__ */ import_react49.default.createElement(
|
6037
6081
|
"span",
|
6038
6082
|
{
|
6039
6083
|
...rest,
|
@@ -6045,7 +6089,7 @@ var Chip = import_react47.default.forwardRef(
|
|
6045
6089
|
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
6046
6090
|
)
|
6047
6091
|
},
|
6048
|
-
dot && /* @__PURE__ */
|
6092
|
+
dot && /* @__PURE__ */ import_react49.default.createElement(
|
6049
6093
|
"span",
|
6050
6094
|
{
|
6051
6095
|
className: cn(dotStyles[size], dotStatusStyles[dotStatus])
|
@@ -6055,7 +6099,7 @@ var Chip = import_react47.default.forwardRef(
|
|
6055
6099
|
label
|
6056
6100
|
);
|
6057
6101
|
} else {
|
6058
|
-
return /* @__PURE__ */
|
6102
|
+
return /* @__PURE__ */ import_react49.default.createElement(
|
6059
6103
|
"span",
|
6060
6104
|
{
|
6061
6105
|
...rest,
|
@@ -6070,61 +6114,6 @@ var Chip = import_react47.default.forwardRef(
|
|
6070
6114
|
}
|
6071
6115
|
);
|
6072
6116
|
|
6073
|
-
// elements/floatBox/FloatBox.tsx
|
6074
|
-
var React44 = __toESM(require("react"));
|
6075
|
-
var FloatBox = ({
|
6076
|
-
className,
|
6077
|
-
open,
|
6078
|
-
side = "bottom",
|
6079
|
-
sideOffset = 40,
|
6080
|
-
align = "center",
|
6081
|
-
withArrow = false,
|
6082
|
-
...props
|
6083
|
-
}) => {
|
6084
|
-
let stylesMap = {
|
6085
|
-
bottom: {
|
6086
|
-
start: { top: sideOffset, insetInlineStart: 0 },
|
6087
|
-
center: { top: sideOffset },
|
6088
|
-
end: { top: sideOffset, insetInlineEnd: 0 }
|
6089
|
-
},
|
6090
|
-
top: {
|
6091
|
-
start: { bottom: sideOffset, insetInlineStart: 0 },
|
6092
|
-
center: { bottom: sideOffset },
|
6093
|
-
end: { bottom: sideOffset, insetInlineEnd: 0 }
|
6094
|
-
},
|
6095
|
-
right: {
|
6096
|
-
start: { left: sideOffset, top: -5 },
|
6097
|
-
center: { left: sideOffset },
|
6098
|
-
end: { left: sideOffset, bottom: 0 }
|
6099
|
-
},
|
6100
|
-
left: {
|
6101
|
-
start: { right: sideOffset, top: 0 },
|
6102
|
-
center: { right: sideOffset },
|
6103
|
-
end: { right: sideOffset, bottom: 0 }
|
6104
|
-
}
|
6105
|
-
};
|
6106
|
-
const arrowDirection = {
|
6107
|
-
top: "hawa-arrow-default-bottom",
|
6108
|
-
bottom: "hawa-arrow-default-top",
|
6109
|
-
right: "hawa-arrow-default-left",
|
6110
|
-
left: "hawa-arrow-default-right"
|
6111
|
-
};
|
6112
|
-
return /* @__PURE__ */ React44.createElement(
|
6113
|
-
"div",
|
6114
|
-
{
|
6115
|
-
className: cn(
|
6116
|
-
"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",
|
6117
|
-
className
|
6118
|
-
),
|
6119
|
-
style: { ...stylesMap[side][align] },
|
6120
|
-
"data-side": side,
|
6121
|
-
"data-floatbox-state": open ? "open" : "closed"
|
6122
|
-
},
|
6123
|
-
withArrow && /* @__PURE__ */ React44.createElement("div", { className: cn(arrowDirection[side]) }),
|
6124
|
-
/* @__PURE__ */ React44.createElement("span", null, props.children)
|
6125
|
-
);
|
6126
|
-
};
|
6127
|
-
|
6128
6117
|
// elements/tabs/Tabs.tsx
|
6129
6118
|
var tabsListVariant = (0, import_tailwind_variants.tv)({
|
6130
6119
|
base: "",
|
@@ -6184,39 +6173,27 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
6184
6173
|
],
|
6185
6174
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
6186
6175
|
});
|
6187
|
-
var TabsContext =
|
6188
|
-
var Tabs =
|
6189
|
-
|
6190
|
-
|
6191
|
-
|
6192
|
-
|
6193
|
-
|
6194
|
-
|
6195
|
-
|
6196
|
-
|
6197
|
-
|
6198
|
-
|
6199
|
-
|
6200
|
-
)
|
6201
|
-
|
6202
|
-
|
6203
|
-
|
6204
|
-
|
6205
|
-
);
|
6206
|
-
|
6207
|
-
|
6208
|
-
const resize = () => {
|
6209
|
-
setSize(window.innerWidth);
|
6210
|
-
};
|
6211
|
-
resize();
|
6212
|
-
window.addEventListener("resize", resize);
|
6213
|
-
return () => {
|
6214
|
-
window.removeEventListener("resize", resize);
|
6215
|
-
};
|
6216
|
-
}
|
6217
|
-
}, []);
|
6218
|
-
if (props.scrollable && size < 768 && orientation === "horizontal") {
|
6219
|
-
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(
|
6220
6197
|
TabsPrimitive.List,
|
6221
6198
|
{
|
6222
6199
|
ref,
|
@@ -6229,7 +6206,7 @@ var TabsList = React45.forwardRef(({ className, classNames, ...props }, ref) =>
|
|
6229
6206
|
}
|
6230
6207
|
));
|
6231
6208
|
} else {
|
6232
|
-
return /* @__PURE__ */
|
6209
|
+
return /* @__PURE__ */ React44.createElement(
|
6233
6210
|
TabsPrimitive.List,
|
6234
6211
|
{
|
6235
6212
|
ref,
|
@@ -6244,37 +6221,52 @@ var TabsList = React45.forwardRef(({ className, classNames, ...props }, ref) =>
|
|
6244
6221
|
);
|
6245
6222
|
}
|
6246
6223
|
});
|
6247
|
-
var TabsTrigger =
|
6248
|
-
|
6249
|
-
|
6250
|
-
|
6251
|
-
|
6252
|
-
|
6253
|
-
|
6254
|
-
|
6255
|
-
|
6256
|
-
|
6257
|
-
|
6258
|
-
|
6259
|
-
|
6260
|
-
|
6261
|
-
|
6262
|
-
|
6263
|
-
|
6264
|
-
|
6265
|
-
|
6266
|
-
|
6267
|
-
|
6268
|
-
|
6269
|
-
|
6270
|
-
|
6271
|
-
|
6272
|
-
|
6273
|
-
|
6274
|
-
|
6275
|
-
|
6276
|
-
|
6277
|
-
|
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(
|
6278
6270
|
TabsPrimitive.Content,
|
6279
6271
|
{
|
6280
6272
|
ref,
|
@@ -6292,7 +6284,7 @@ TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
6292
6284
|
|
6293
6285
|
// blocks/misc/LegalTexts.tsx
|
6294
6286
|
var LegalTexts = ({ tabs, ...props }) => {
|
6295
|
-
return /* @__PURE__ */
|
6287
|
+
return /* @__PURE__ */ import_react50.default.createElement(
|
6296
6288
|
Tabs,
|
6297
6289
|
{
|
6298
6290
|
value: props.activeTab,
|
@@ -6300,8 +6292,8 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
6300
6292
|
defaultValue: props.defaultTab || tabs[0].value,
|
6301
6293
|
dir: props.direction
|
6302
6294
|
},
|
6303
|
-
/* @__PURE__ */
|
6304
|
-
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(
|
6305
6297
|
ScrollArea,
|
6306
6298
|
{
|
6307
6299
|
className: cn(
|
@@ -6315,9 +6307,9 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
6315
6307
|
};
|
6316
6308
|
|
6317
6309
|
// blocks/misc/EmptyState.tsx
|
6318
|
-
var
|
6310
|
+
var import_react51 = __toESM(require("react"));
|
6319
6311
|
var EmptyState = ({ texts, onActionClick }) => {
|
6320
|
-
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(
|
6321
6313
|
"svg",
|
6322
6314
|
{
|
6323
6315
|
stroke: "currentColor",
|
@@ -6327,30 +6319,30 @@ var EmptyState = ({ texts, onActionClick }) => {
|
|
6327
6319
|
height: "0.35em",
|
6328
6320
|
width: "0.35em"
|
6329
6321
|
},
|
6330
|
-
/* @__PURE__ */
|
6331
|
-
)), /* @__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")));
|
6332
6324
|
};
|
6333
6325
|
|
6334
6326
|
// blocks/misc/Testimonial.tsx
|
6335
|
-
var
|
6327
|
+
var import_react52 = __toESM(require("react"));
|
6336
6328
|
var Testimonial = () => {
|
6337
|
-
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(
|
6338
6330
|
"path",
|
6339
6331
|
{
|
6340
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",
|
6341
6333
|
fill: "#FFFFFF"
|
6342
6334
|
}
|
6343
|
-
), /* @__PURE__ */
|
6335
|
+
), /* @__PURE__ */ import_react52.default.createElement(
|
6344
6336
|
"path",
|
6345
6337
|
{
|
6346
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",
|
6347
6339
|
fill: "#FFFFFF"
|
6348
6340
|
}
|
6349
|
-
)), /* @__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")))));
|
6350
6342
|
};
|
6351
6343
|
|
6352
6344
|
// blocks/misc/LeadGenerator.tsx
|
6353
|
-
var
|
6345
|
+
var import_react53 = __toESM(require("react"));
|
6354
6346
|
var import_react_hook_form8 = require("react-hook-form");
|
6355
6347
|
var LeadGenerator = ({ texts, submitHandler }) => {
|
6356
6348
|
var _a;
|
@@ -6362,14 +6354,14 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
6362
6354
|
console.log("handleNewsletterSub props was not provided");
|
6363
6355
|
}
|
6364
6356
|
};
|
6365
|
-
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(
|
6366
6358
|
"form",
|
6367
6359
|
{
|
6368
6360
|
noValidate: true,
|
6369
6361
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
6370
6362
|
onSubmit: handleSubmit(onSubmit)
|
6371
6363
|
},
|
6372
|
-
/* @__PURE__ */
|
6364
|
+
/* @__PURE__ */ import_react53.default.createElement(
|
6373
6365
|
import_react_hook_form8.Controller,
|
6374
6366
|
{
|
6375
6367
|
name: "email",
|
@@ -6382,27 +6374,27 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
6382
6374
|
}
|
6383
6375
|
},
|
6384
6376
|
defaultValue: "",
|
6385
|
-
render: ({ field }) => /* @__PURE__ */
|
6377
|
+
render: ({ field }) => /* @__PURE__ */ import_react53.default.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
|
6386
6378
|
}
|
6387
6379
|
),
|
6388
|
-
/* @__PURE__ */
|
6380
|
+
/* @__PURE__ */ import_react53.default.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
|
6389
6381
|
)));
|
6390
6382
|
};
|
6391
6383
|
|
6392
6384
|
// blocks/misc/Announcement.tsx
|
6393
|
-
var
|
6385
|
+
var import_react54 = __toESM(require("react"));
|
6394
6386
|
var Announcement = ({
|
6395
6387
|
onActionClick,
|
6396
6388
|
...props
|
6397
6389
|
}) => {
|
6398
|
-
return /* @__PURE__ */
|
6390
|
+
return /* @__PURE__ */ import_react54.default.createElement(Card, null, /* @__PURE__ */ import_react54.default.createElement(
|
6399
6391
|
CardContent,
|
6400
6392
|
{
|
6401
6393
|
headless: true,
|
6402
6394
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
6403
6395
|
},
|
6404
|
-
/* @__PURE__ */
|
6405
|
-
/* @__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(
|
6406
6398
|
Button,
|
6407
6399
|
{
|
6408
6400
|
onClick: () => onActionClick(),
|
@@ -6414,15 +6406,15 @@ var Announcement = ({
|
|
6414
6406
|
};
|
6415
6407
|
|
6416
6408
|
// blocks/misc/NotFound.tsx
|
6417
|
-
var
|
6409
|
+
var import_react55 = __toESM(require("react"));
|
6418
6410
|
var NotFound = ({ texts }) => {
|
6419
|
-
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"))));
|
6420
6412
|
};
|
6421
6413
|
|
6422
6414
|
// blocks/misc/NoPermission.tsx
|
6423
|
-
var
|
6415
|
+
var import_react56 = __toESM(require("react"));
|
6424
6416
|
var NoPermission = ({ texts }) => {
|
6425
|
-
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(
|
6426
6418
|
"svg",
|
6427
6419
|
{
|
6428
6420
|
stroke: "currentColor",
|
@@ -6432,12 +6424,12 @@ var NoPermission = ({ texts }) => {
|
|
6432
6424
|
height: "0.35em",
|
6433
6425
|
width: "0.35em"
|
6434
6426
|
},
|
6435
|
-
/* @__PURE__ */
|
6436
|
-
)), /* @__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"))));
|
6437
6429
|
};
|
6438
6430
|
|
6439
6431
|
// blocks/misc/ContactForm.tsx
|
6440
|
-
var
|
6432
|
+
var import_react57 = __toESM(require("react"));
|
6441
6433
|
var import_react_hook_form9 = require("react-hook-form");
|
6442
6434
|
var import_zod8 = require("@hookform/resolvers/zod");
|
6443
6435
|
var z8 = __toESM(require("zod"));
|
@@ -6511,7 +6503,7 @@ var ContactForm = ({
|
|
6511
6503
|
console.log("Form is submitted but onSubmit prop is missing");
|
6512
6504
|
}
|
6513
6505
|
};
|
6514
|
-
return /* @__PURE__ */
|
6506
|
+
return /* @__PURE__ */ import_react57.default.createElement(
|
6515
6507
|
Card,
|
6516
6508
|
{
|
6517
6509
|
className: cn(
|
@@ -6520,7 +6512,7 @@ var ContactForm = ({
|
|
6520
6512
|
),
|
6521
6513
|
style: cardless ? { boxShadow: "none" } : void 0
|
6522
6514
|
},
|
6523
|
-
/* @__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(
|
6524
6516
|
"form",
|
6525
6517
|
{
|
6526
6518
|
noValidate: true,
|
@@ -6529,7 +6521,7 @@ var ContactForm = ({
|
|
6529
6521
|
id: formId,
|
6530
6522
|
autoComplete: formAutoComplete
|
6531
6523
|
},
|
6532
|
-
/* @__PURE__ */
|
6524
|
+
/* @__PURE__ */ import_react57.default.createElement(
|
6533
6525
|
"div",
|
6534
6526
|
{
|
6535
6527
|
className: cn(
|
@@ -6540,14 +6532,14 @@ var ContactForm = ({
|
|
6540
6532
|
}
|
6541
6533
|
)
|
6542
6534
|
},
|
6543
|
-
/* @__PURE__ */
|
6535
|
+
/* @__PURE__ */ import_react57.default.createElement(
|
6544
6536
|
import_react_hook_form9.Controller,
|
6545
6537
|
{
|
6546
6538
|
control,
|
6547
6539
|
name: "name",
|
6548
6540
|
render: ({ field }) => {
|
6549
6541
|
var _a2;
|
6550
|
-
return /* @__PURE__ */
|
6542
|
+
return /* @__PURE__ */ import_react57.default.createElement(
|
6551
6543
|
Input,
|
6552
6544
|
{
|
6553
6545
|
label: (texts == null ? void 0 : texts.name.label) || "Name",
|
@@ -6560,14 +6552,14 @@ var ContactForm = ({
|
|
6560
6552
|
}
|
6561
6553
|
}
|
6562
6554
|
),
|
6563
|
-
/* @__PURE__ */
|
6555
|
+
/* @__PURE__ */ import_react57.default.createElement(
|
6564
6556
|
import_react_hook_form9.Controller,
|
6565
6557
|
{
|
6566
6558
|
control,
|
6567
6559
|
name: "email",
|
6568
6560
|
render: ({ field }) => {
|
6569
6561
|
var _a2;
|
6570
|
-
return /* @__PURE__ */
|
6562
|
+
return /* @__PURE__ */ import_react57.default.createElement(
|
6571
6563
|
Input,
|
6572
6564
|
{
|
6573
6565
|
label: (texts == null ? void 0 : texts.email.label) || "Email",
|
@@ -6583,7 +6575,7 @@ var ContactForm = ({
|
|
6583
6575
|
),
|
6584
6576
|
customFields && customFields.map((customField) => {
|
6585
6577
|
console.log("custom", customField);
|
6586
|
-
return /* @__PURE__ */
|
6578
|
+
return /* @__PURE__ */ import_react57.default.createElement(
|
6587
6579
|
import_react_hook_form9.Controller,
|
6588
6580
|
{
|
6589
6581
|
control,
|
@@ -6593,7 +6585,7 @@ var ContactForm = ({
|
|
6593
6585
|
switch (type) {
|
6594
6586
|
case "text":
|
6595
6587
|
case "number":
|
6596
|
-
return /* @__PURE__ */
|
6588
|
+
return /* @__PURE__ */ import_react57.default.createElement(
|
6597
6589
|
Input,
|
6598
6590
|
{
|
6599
6591
|
id: customField.name,
|
@@ -6604,7 +6596,7 @@ var ContactForm = ({
|
|
6604
6596
|
}
|
6605
6597
|
);
|
6606
6598
|
case "select":
|
6607
|
-
return /* @__PURE__ */
|
6599
|
+
return /* @__PURE__ */ import_react57.default.createElement(
|
6608
6600
|
Select,
|
6609
6601
|
{
|
6610
6602
|
label,
|
@@ -6614,20 +6606,20 @@ var ContactForm = ({
|
|
6614
6606
|
}
|
6615
6607
|
);
|
6616
6608
|
default:
|
6617
|
-
return /* @__PURE__ */
|
6609
|
+
return /* @__PURE__ */ import_react57.default.createElement("div", null, "Unknown type");
|
6618
6610
|
}
|
6619
6611
|
}
|
6620
6612
|
}
|
6621
6613
|
);
|
6622
6614
|
}),
|
6623
|
-
/* @__PURE__ */
|
6615
|
+
/* @__PURE__ */ import_react57.default.createElement(
|
6624
6616
|
import_react_hook_form9.Controller,
|
6625
6617
|
{
|
6626
6618
|
control,
|
6627
6619
|
name: "message",
|
6628
6620
|
render: ({ field }) => {
|
6629
6621
|
var _a2;
|
6630
|
-
return /* @__PURE__ */
|
6622
|
+
return /* @__PURE__ */ import_react57.default.createElement(
|
6631
6623
|
Textarea,
|
6632
6624
|
{
|
6633
6625
|
label: (texts == null ? void 0 : texts.message.label) || "Message",
|
@@ -6644,7 +6636,7 @@ var ContactForm = ({
|
|
6644
6636
|
}
|
6645
6637
|
}
|
6646
6638
|
),
|
6647
|
-
/* @__PURE__ */
|
6639
|
+
/* @__PURE__ */ import_react57.default.createElement(
|
6648
6640
|
Button,
|
6649
6641
|
{
|
6650
6642
|
type: "submit",
|
@@ -6657,13 +6649,13 @@ var ContactForm = ({
|
|
6657
6649
|
};
|
6658
6650
|
|
6659
6651
|
// blocks/pricing/PricingPlans.tsx
|
6660
|
-
var
|
6652
|
+
var import_react64 = __toESM(require("react"));
|
6661
6653
|
|
6662
6654
|
// blocks/cards/ActionCard.tsx
|
6663
|
-
var
|
6655
|
+
var import_react58 = __toESM(require("react"));
|
6664
6656
|
var ActionCard = (props) => {
|
6665
|
-
const [hovered, setHovered] = (0,
|
6666
|
-
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(
|
6667
6659
|
"div",
|
6668
6660
|
{
|
6669
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",
|
@@ -6673,7 +6665,7 @@ var ActionCard = (props) => {
|
|
6673
6665
|
onMouseEnter: () => setHovered(true),
|
6674
6666
|
onMouseLeave: () => setHovered(false)
|
6675
6667
|
},
|
6676
|
-
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(
|
6677
6669
|
"svg",
|
6678
6670
|
{
|
6679
6671
|
className: "hawa-h-10 hawa-w-10 hawa-text-foreground",
|
@@ -6685,11 +6677,11 @@ var ActionCard = (props) => {
|
|
6685
6677
|
width: "1em",
|
6686
6678
|
xmlns: "http://www.w3.org/2000/svg"
|
6687
6679
|
},
|
6688
|
-
/* @__PURE__ */
|
6689
|
-
)) : /* @__PURE__ */
|
6690
|
-
/* @__PURE__ */
|
6691
|
-
!props.blank && /* @__PURE__ */
|
6692
|
-
), /* @__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(
|
6693
6685
|
"div",
|
6694
6686
|
{
|
6695
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"}`
|
@@ -6699,15 +6691,15 @@ var ActionCard = (props) => {
|
|
6699
6691
|
};
|
6700
6692
|
|
6701
6693
|
// blocks/cards/AdCard.tsx
|
6702
|
-
var
|
6694
|
+
var import_react59 = __toESM(require("react"));
|
6703
6695
|
var AdCard = ({
|
6704
6696
|
orientation = "vertical",
|
6705
6697
|
...props
|
6706
6698
|
}) => {
|
6707
|
-
const adRef = (0,
|
6708
|
-
const [closed, setClosed] = (0,
|
6699
|
+
const adRef = (0, import_react59.useRef)(null);
|
6700
|
+
const [closed, setClosed] = (0, import_react59.useState)(false);
|
6709
6701
|
let duration = 0;
|
6710
|
-
(0,
|
6702
|
+
(0, import_react59.useEffect)(() => {
|
6711
6703
|
if (duration) {
|
6712
6704
|
const timeoutHide = setTimeout(() => {
|
6713
6705
|
setClosed(true);
|
@@ -6732,21 +6724,21 @@ var AdCard = ({
|
|
6732
6724
|
horizontal: "hawa-w-auto hawa-h-full hawa-bg-blue-500 hawa-rounded-inner",
|
6733
6725
|
vertical: "hawa-bg-blue-500 hawa-rounded-inner hawa-w-auto "
|
6734
6726
|
};
|
6735
|
-
return /* @__PURE__ */
|
6727
|
+
return /* @__PURE__ */ import_react59.default.createElement("div", { ref: adRef }, /* @__PURE__ */ import_react59.default.createElement(
|
6736
6728
|
"div",
|
6737
6729
|
{
|
6738
6730
|
className: cn(cardStyles[orientation], props.className),
|
6739
6731
|
onClick: props.handleClick
|
6740
6732
|
},
|
6741
|
-
/* @__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(
|
6742
6734
|
"img",
|
6743
6735
|
{
|
6744
6736
|
src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
|
6745
6737
|
className: imageStyles[orientation]
|
6746
6738
|
}
|
6747
6739
|
)),
|
6748
|
-
/* @__PURE__ */
|
6749
|
-
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(
|
6750
6742
|
"span",
|
6751
6743
|
{
|
6752
6744
|
onClick: (e) => {
|
@@ -6772,15 +6764,15 @@ var AdCard = ({
|
|
6772
6764
|
};
|
6773
6765
|
|
6774
6766
|
// blocks/cards/PricingCard.tsx
|
6775
|
-
var
|
6767
|
+
var import_react60 = __toESM(require("react"));
|
6776
6768
|
|
6777
6769
|
// elements/separator/Separator.tsx
|
6778
|
-
var
|
6770
|
+
var React55 = __toESM(require("react"));
|
6779
6771
|
var Separator = ({
|
6780
6772
|
className,
|
6781
6773
|
orientation = "horizontal",
|
6782
6774
|
...props
|
6783
|
-
}) => /* @__PURE__ */
|
6775
|
+
}) => /* @__PURE__ */ React55.createElement(
|
6784
6776
|
"div",
|
6785
6777
|
{
|
6786
6778
|
className: cn(
|
@@ -6807,13 +6799,13 @@ var PricingCard = ({
|
|
6807
6799
|
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
|
6808
6800
|
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background "
|
6809
6801
|
};
|
6810
|
-
return /* @__PURE__ */
|
6802
|
+
return /* @__PURE__ */ import_react60.default.createElement(import_react60.default.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ import_react60.default.createElement(
|
6811
6803
|
Skeleton,
|
6812
6804
|
{
|
6813
6805
|
className: cn(cardSizes[size], "hawa-h-[200px]"),
|
6814
6806
|
fade: "bottom"
|
6815
6807
|
}
|
6816
|
-
) : /* @__PURE__ */
|
6808
|
+
) : /* @__PURE__ */ import_react60.default.createElement(
|
6817
6809
|
Card,
|
6818
6810
|
{
|
6819
6811
|
dir: direction,
|
@@ -6824,7 +6816,7 @@ var PricingCard = ({
|
|
6824
6816
|
recommended ? "hawa-rounded hawa-rounded-t-none" : "hawa-rounded"
|
6825
6817
|
)
|
6826
6818
|
},
|
6827
|
-
recommended && /* @__PURE__ */
|
6819
|
+
recommended && /* @__PURE__ */ import_react60.default.createElement(
|
6828
6820
|
"div",
|
6829
6821
|
{
|
6830
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",
|
@@ -6832,7 +6824,7 @@ var PricingCard = ({
|
|
6832
6824
|
},
|
6833
6825
|
((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
|
6834
6826
|
),
|
6835
|
-
/* @__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(
|
6836
6828
|
"div",
|
6837
6829
|
{
|
6838
6830
|
className: cn(
|
@@ -6840,9 +6832,9 @@ var PricingCard = ({
|
|
6840
6832
|
endButton ? "hawa-flex-col" : "hawa-flex-col-reverse"
|
6841
6833
|
)
|
6842
6834
|
},
|
6843
|
-
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) => {
|
6844
6836
|
var _a2;
|
6845
|
-
return /* @__PURE__ */
|
6837
|
+
return /* @__PURE__ */ import_react60.default.createElement(
|
6846
6838
|
"li",
|
6847
6839
|
{
|
6848
6840
|
key: o,
|
@@ -6851,7 +6843,7 @@ var PricingCard = ({
|
|
6851
6843
|
!feature.included && "hawa-line-through"
|
6852
6844
|
)
|
6853
6845
|
},
|
6854
|
-
/* @__PURE__ */
|
6846
|
+
/* @__PURE__ */ import_react60.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center" }, feature.included ? /* @__PURE__ */ import_react60.default.createElement(
|
6855
6847
|
"svg",
|
6856
6848
|
{
|
6857
6849
|
"aria-label": "Check Icon",
|
@@ -6860,7 +6852,7 @@ var PricingCard = ({
|
|
6860
6852
|
fill: "currentColor",
|
6861
6853
|
viewBox: "0 0 20 20"
|
6862
6854
|
},
|
6863
|
-
/* @__PURE__ */
|
6855
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
6864
6856
|
"path",
|
6865
6857
|
{
|
6866
6858
|
fillRule: "evenodd",
|
@@ -6868,7 +6860,7 @@ var PricingCard = ({
|
|
6868
6860
|
clipRule: "evenodd"
|
6869
6861
|
}
|
6870
6862
|
)
|
6871
|
-
) : /* @__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(
|
6872
6864
|
Chip,
|
6873
6865
|
{
|
6874
6866
|
label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "",
|
@@ -6876,13 +6868,13 @@ var PricingCard = ({
|
|
6876
6868
|
size: "small"
|
6877
6869
|
}
|
6878
6870
|
))),
|
6879
|
-
feature.hint && /* @__PURE__ */
|
6871
|
+
feature.hint && /* @__PURE__ */ import_react60.default.createElement(
|
6880
6872
|
Tooltip,
|
6881
6873
|
{
|
6882
6874
|
content: feature.hint,
|
6883
6875
|
side: feature.hintSide
|
6884
6876
|
},
|
6885
|
-
/* @__PURE__ */
|
6877
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
6886
6878
|
"svg",
|
6887
6879
|
{
|
6888
6880
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6894,14 +6886,14 @@ var PricingCard = ({
|
|
6894
6886
|
strokeLinecap: "round",
|
6895
6887
|
strokeLinejoin: "round"
|
6896
6888
|
},
|
6897
|
-
/* @__PURE__ */
|
6898
|
-
/* @__PURE__ */
|
6899
|
-
/* @__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" })
|
6900
6892
|
)
|
6901
6893
|
)
|
6902
6894
|
);
|
6903
6895
|
})),
|
6904
|
-
/* @__PURE__ */
|
6896
|
+
/* @__PURE__ */ import_react60.default.createElement(
|
6905
6897
|
Button,
|
6906
6898
|
{
|
6907
6899
|
onClick: props.onPlanClicked,
|
@@ -6915,17 +6907,17 @@ var PricingCard = ({
|
|
6915
6907
|
};
|
6916
6908
|
|
6917
6909
|
// blocks/cards/ItemCard.tsx
|
6918
|
-
var
|
6910
|
+
var import_react62 = __toESM(require("react"));
|
6919
6911
|
|
6920
6912
|
// elements/dropdownMenu/DropdownMenu.tsx
|
6921
|
-
var
|
6922
|
-
var
|
6913
|
+
var React57 = __toESM(require("react"));
|
6914
|
+
var import_react61 = require("@headlessui/react");
|
6923
6915
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
6924
6916
|
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
6925
6917
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
6926
6918
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
6927
6919
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
6928
|
-
var DropdownMenuSubTrigger =
|
6920
|
+
var DropdownMenuSubTrigger = React57.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
6929
6921
|
DropdownMenuPrimitive.SubTrigger,
|
6930
6922
|
{
|
6931
6923
|
ref,
|
@@ -6936,9 +6928,9 @@ var DropdownMenuSubTrigger = React58.forwardRef(({ className, inset, children, .
|
|
6936
6928
|
),
|
6937
6929
|
...props
|
6938
6930
|
},
|
6939
|
-
/* @__PURE__ */
|
6931
|
+
/* @__PURE__ */ React57.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
|
6940
6932
|
" ",
|
6941
|
-
/* @__PURE__ */
|
6933
|
+
/* @__PURE__ */ React57.createElement(
|
6942
6934
|
"svg",
|
6943
6935
|
{
|
6944
6936
|
"aria-label": "Chevron Right Icon",
|
@@ -6950,7 +6942,7 @@ var DropdownMenuSubTrigger = React58.forwardRef(({ className, inset, children, .
|
|
6950
6942
|
width: "1em",
|
6951
6943
|
className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
|
6952
6944
|
},
|
6953
|
-
/* @__PURE__ */
|
6945
|
+
/* @__PURE__ */ React57.createElement(
|
6954
6946
|
"path",
|
6955
6947
|
{
|
6956
6948
|
fillRule: "evenodd",
|
@@ -6960,7 +6952,7 @@ var DropdownMenuSubTrigger = React58.forwardRef(({ className, inset, children, .
|
|
6960
6952
|
)
|
6961
6953
|
));
|
6962
6954
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
6963
|
-
var DropdownMenuSubContent =
|
6955
|
+
var DropdownMenuSubContent = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
6964
6956
|
DropdownMenuPrimitive.SubContent,
|
6965
6957
|
{
|
6966
6958
|
ref,
|
@@ -6972,7 +6964,7 @@ var DropdownMenuSubContent = React58.forwardRef(({ className, ...props }, ref) =
|
|
6972
6964
|
}
|
6973
6965
|
));
|
6974
6966
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
6975
|
-
var DropdownMenuContent =
|
6967
|
+
var DropdownMenuContent = React57.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React57.createElement(import_react61.Portal, null, /* @__PURE__ */ React57.createElement(
|
6976
6968
|
DropdownMenuPrimitive.Content,
|
6977
6969
|
{
|
6978
6970
|
ref,
|
@@ -6985,8 +6977,8 @@ var DropdownMenuContent = React58.forwardRef(({ className, sideOffset = 4, ...pr
|
|
6985
6977
|
}
|
6986
6978
|
)));
|
6987
6979
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
6988
|
-
var DropdownMenuItem =
|
6989
|
-
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(
|
6990
6982
|
DropdownMenuPrimitive.Item,
|
6991
6983
|
{
|
6992
6984
|
disabled: props.disabled,
|
@@ -6999,14 +6991,14 @@ var DropdownMenuItem = React58.forwardRef(({ className, inset, badged, slug, Lin
|
|
6999
6991
|
),
|
7000
6992
|
...props
|
7001
6993
|
},
|
7002
|
-
/* @__PURE__ */
|
6994
|
+
/* @__PURE__ */ React57.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
|
7003
6995
|
props.end && props.end,
|
7004
|
-
!props.end && props.shortcut && /* @__PURE__ */
|
7005
|
-
!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" })
|
7006
6998
|
));
|
7007
6999
|
});
|
7008
7000
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
7009
|
-
var DropdownMenuCheckboxItem =
|
7001
|
+
var DropdownMenuCheckboxItem = React57.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
7010
7002
|
DropdownMenuPrimitive.CheckboxItem,
|
7011
7003
|
{
|
7012
7004
|
ref,
|
@@ -7017,7 +7009,7 @@ var DropdownMenuCheckboxItem = React58.forwardRef(({ className, children, checke
|
|
7017
7009
|
checked,
|
7018
7010
|
...props
|
7019
7011
|
},
|
7020
|
-
/* @__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(
|
7021
7013
|
"svg",
|
7022
7014
|
{
|
7023
7015
|
"aria-label": "Check Mark",
|
@@ -7028,12 +7020,12 @@ var DropdownMenuCheckboxItem = React58.forwardRef(({ className, children, checke
|
|
7028
7020
|
height: "0.60em",
|
7029
7021
|
width: "0.60em"
|
7030
7022
|
},
|
7031
|
-
/* @__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" })
|
7032
7024
|
), " ")),
|
7033
7025
|
children
|
7034
7026
|
));
|
7035
7027
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
7036
|
-
var DropdownMenuRadioItem =
|
7028
|
+
var DropdownMenuRadioItem = React57.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
7037
7029
|
DropdownMenuPrimitive.RadioItem,
|
7038
7030
|
{
|
7039
7031
|
ref,
|
@@ -7043,7 +7035,7 @@ var DropdownMenuRadioItem = React58.forwardRef(({ className, children, ...props
|
|
7043
7035
|
),
|
7044
7036
|
...props
|
7045
7037
|
},
|
7046
|
-
/* @__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(
|
7047
7039
|
"svg",
|
7048
7040
|
{
|
7049
7041
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7058,12 +7050,12 @@ var DropdownMenuRadioItem = React58.forwardRef(({ className, children, ...props
|
|
7058
7050
|
strokeLinejoin: "round",
|
7059
7051
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
7060
7052
|
},
|
7061
|
-
/* @__PURE__ */
|
7053
|
+
/* @__PURE__ */ React57.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
7062
7054
|
))),
|
7063
7055
|
children
|
7064
7056
|
));
|
7065
7057
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
7066
|
-
var DropdownMenuLabel =
|
7058
|
+
var DropdownMenuLabel = React57.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
7067
7059
|
DropdownMenuPrimitive.Label,
|
7068
7060
|
{
|
7069
7061
|
ref,
|
@@ -7076,7 +7068,7 @@ var DropdownMenuLabel = React58.forwardRef(({ className, inset, ...props }, ref)
|
|
7076
7068
|
}
|
7077
7069
|
));
|
7078
7070
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
7079
|
-
var DropdownMenuSeparator =
|
7071
|
+
var DropdownMenuSeparator = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React57.createElement(
|
7080
7072
|
DropdownMenuPrimitive.Separator,
|
7081
7073
|
{
|
7082
7074
|
ref,
|
@@ -7089,7 +7081,7 @@ var DropdownMenuShortcut = ({
|
|
7089
7081
|
className,
|
7090
7082
|
...props
|
7091
7083
|
}) => {
|
7092
|
-
return /* @__PURE__ */
|
7084
|
+
return /* @__PURE__ */ React57.createElement(
|
7093
7085
|
"span",
|
7094
7086
|
{
|
7095
7087
|
className: cn(
|
@@ -7131,10 +7123,10 @@ var DropdownMenu = ({
|
|
7131
7123
|
default: "hawa-px-2 hawa-py-3 ",
|
7132
7124
|
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
7133
7125
|
};
|
7134
|
-
let [values, setValues] =
|
7126
|
+
let [values, setValues] = React57.useState(
|
7135
7127
|
items.map((item) => item.currentOption)
|
7136
7128
|
);
|
7137
|
-
return /* @__PURE__ */
|
7129
|
+
return /* @__PURE__ */ React57.createElement(
|
7138
7130
|
DropdownMenuRoot,
|
7139
7131
|
{
|
7140
7132
|
onOpenChange,
|
@@ -7142,7 +7134,7 @@ var DropdownMenu = ({
|
|
7142
7134
|
modal: false,
|
7143
7135
|
dir: direction
|
7144
7136
|
},
|
7145
|
-
/* @__PURE__ */
|
7137
|
+
/* @__PURE__ */ React57.createElement(
|
7146
7138
|
DropdownMenuTrigger,
|
7147
7139
|
{
|
7148
7140
|
asChild: true,
|
@@ -7151,7 +7143,7 @@ var DropdownMenu = ({
|
|
7151
7143
|
},
|
7152
7144
|
trigger
|
7153
7145
|
),
|
7154
|
-
/* @__PURE__ */
|
7146
|
+
/* @__PURE__ */ React57.createElement(import_react61.Portal, null, /* @__PURE__ */ React57.createElement(
|
7155
7147
|
DropdownMenuContent,
|
7156
7148
|
{
|
7157
7149
|
side,
|
@@ -7173,7 +7165,7 @@ var DropdownMenu = ({
|
|
7173
7165
|
var _a;
|
7174
7166
|
const ItemLinkComponent = item.slug ? LinkComponent : "a";
|
7175
7167
|
if (item.itemType === "separator") {
|
7176
|
-
return /* @__PURE__ */
|
7168
|
+
return /* @__PURE__ */ React57.createElement(
|
7177
7169
|
DropdownMenuSeparator,
|
7178
7170
|
{
|
7179
7171
|
key: index,
|
@@ -7181,10 +7173,10 @@ var DropdownMenu = ({
|
|
7181
7173
|
}
|
7182
7174
|
);
|
7183
7175
|
} else if (item.itemType === "label") {
|
7184
|
-
return /* @__PURE__ */
|
7176
|
+
return /* @__PURE__ */ React57.createElement(DropdownMenuLabel, { key: index }, item.label);
|
7185
7177
|
} else if (item.itemType === "radio") {
|
7186
7178
|
let dd = item.currentOption;
|
7187
|
-
return /* @__PURE__ */
|
7179
|
+
return /* @__PURE__ */ React57.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React57.createElement(
|
7188
7180
|
DropdownMenuSubTrigger,
|
7189
7181
|
{
|
7190
7182
|
dir: direction,
|
@@ -7192,7 +7184,7 @@ var DropdownMenu = ({
|
|
7192
7184
|
},
|
7193
7185
|
item.icon && item.icon,
|
7194
7186
|
item.label && item.label
|
7195
|
-
), /* @__PURE__ */
|
7187
|
+
), /* @__PURE__ */ React57.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React57.createElement(
|
7196
7188
|
DropdownMenuRadioGroup,
|
7197
7189
|
{
|
7198
7190
|
value: values[index],
|
@@ -7206,12 +7198,12 @@ var DropdownMenu = ({
|
|
7206
7198
|
}
|
7207
7199
|
}
|
7208
7200
|
},
|
7209
|
-
(_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))
|
7210
7202
|
)));
|
7211
7203
|
} else if (item.itemType === "custom") {
|
7212
|
-
return /* @__PURE__ */
|
7204
|
+
return /* @__PURE__ */ React57.createElement("div", { key: index }, item.content);
|
7213
7205
|
} else {
|
7214
|
-
return item.subitems ? /* @__PURE__ */
|
7206
|
+
return item.subitems ? /* @__PURE__ */ React57.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React57.createElement(
|
7215
7207
|
DropdownMenuSubTrigger,
|
7216
7208
|
{
|
7217
7209
|
dir: direction,
|
@@ -7219,9 +7211,9 @@ var DropdownMenu = ({
|
|
7219
7211
|
},
|
7220
7212
|
item.icon && item.icon,
|
7221
7213
|
item.label && item.label
|
7222
|
-
), /* @__PURE__ */
|
7214
|
+
), /* @__PURE__ */ React57.createElement(import_react61.Portal, null, /* @__PURE__ */ React57.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
7223
7215
|
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
7224
|
-
return /* @__PURE__ */
|
7216
|
+
return /* @__PURE__ */ React57.createElement(
|
7225
7217
|
DropdownMenuItem,
|
7226
7218
|
{
|
7227
7219
|
key: subIndex,
|
@@ -7250,7 +7242,7 @@ var DropdownMenu = ({
|
|
7250
7242
|
subitem.icon && subitem.icon,
|
7251
7243
|
subitem.label && subitem.label
|
7252
7244
|
);
|
7253
|
-
})))) : /* @__PURE__ */
|
7245
|
+
})))) : /* @__PURE__ */ React57.createElement(
|
7254
7246
|
DropdownMenuItem,
|
7255
7247
|
{
|
7256
7248
|
LinkComponent: ItemLinkComponent,
|
@@ -7333,12 +7325,12 @@ var ItemCard = ({
|
|
7333
7325
|
)
|
7334
7326
|
};
|
7335
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";
|
7336
|
-
const [openActionHeader, setOpenActionHeader] = (0,
|
7328
|
+
const [openActionHeader, setOpenActionHeader] = (0, import_react62.useState)(false);
|
7337
7329
|
function handleOpenActionHeader(e) {
|
7338
7330
|
e.stopPropagation();
|
7339
7331
|
setOpenActionHeader(!openActionHeader);
|
7340
7332
|
}
|
7341
|
-
(0,
|
7333
|
+
(0, import_react62.useEffect)(() => {
|
7342
7334
|
window.onclick = () => {
|
7343
7335
|
if (openActionHeader) {
|
7344
7336
|
setOpenActionHeader(false);
|
@@ -7346,7 +7338,7 @@ var ItemCard = ({
|
|
7346
7338
|
};
|
7347
7339
|
return () => window.onclick = null;
|
7348
7340
|
}, [openActionHeader]);
|
7349
|
-
return /* @__PURE__ */
|
7341
|
+
return /* @__PURE__ */ import_react62.default.createElement(
|
7350
7342
|
"div",
|
7351
7343
|
{
|
7352
7344
|
className: cn(
|
@@ -7362,7 +7354,7 @@ var ItemCard = ({
|
|
7362
7354
|
}
|
7363
7355
|
}
|
7364
7356
|
},
|
7365
|
-
cardImage && /* @__PURE__ */
|
7357
|
+
cardImage && /* @__PURE__ */ import_react62.default.createElement("div", { className: "hawa-group hawa-relative hawa-overflow-clip" }, /* @__PURE__ */ import_react62.default.createElement(
|
7366
7358
|
"img",
|
7367
7359
|
{
|
7368
7360
|
src: cardImage,
|
@@ -7371,7 +7363,7 @@ var ItemCard = ({
|
|
7371
7363
|
clickableImage ? "hawa-overflow-clip hawa-transition-all group-hover:hawa-blur-lg" : ""
|
7372
7364
|
)
|
7373
7365
|
}
|
7374
|
-
), 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(
|
7375
7367
|
Button,
|
7376
7368
|
{
|
7377
7369
|
variant: "secondary",
|
@@ -7381,19 +7373,19 @@ var ItemCard = ({
|
|
7381
7373
|
clickableImageActionIcon,
|
7382
7374
|
clickableImageActionText || "Click"
|
7383
7375
|
)))),
|
7384
|
-
/* @__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(
|
7385
7377
|
DropdownMenu,
|
7386
7378
|
{
|
7387
7379
|
items: headerActions,
|
7388
|
-
trigger: /* @__PURE__ */
|
7380
|
+
trigger: /* @__PURE__ */ import_react62.default.createElement(
|
7389
7381
|
Button,
|
7390
7382
|
{
|
7391
7383
|
variant: "ghost",
|
7392
7384
|
size: "smallIcon",
|
7393
7385
|
onClick: handleOpenActionHeader
|
7394
7386
|
},
|
7395
|
-
/* @__PURE__ */
|
7396
|
-
/* @__PURE__ */
|
7387
|
+
/* @__PURE__ */ import_react62.default.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"),
|
7388
|
+
/* @__PURE__ */ import_react62.default.createElement(
|
7397
7389
|
"svg",
|
7398
7390
|
{
|
7399
7391
|
className: "hawa-h-5 hawa-w-5",
|
@@ -7401,11 +7393,11 @@ var ItemCard = ({
|
|
7401
7393
|
fill: "currentColor",
|
7402
7394
|
viewBox: "0 0 20 20"
|
7403
7395
|
},
|
7404
|
-
/* @__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" })
|
7405
7397
|
)
|
7406
7398
|
)
|
7407
7399
|
}
|
7408
|
-
))), /* @__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(
|
7409
7401
|
"div",
|
7410
7402
|
{
|
7411
7403
|
className: cn(
|
@@ -7415,15 +7407,15 @@ var ItemCard = ({
|
|
7415
7407
|
)
|
7416
7408
|
},
|
7417
7409
|
counts,
|
7418
|
-
/* @__PURE__ */
|
7410
|
+
/* @__PURE__ */ import_react62.default.createElement(StopPropagationWrapper, null, actions)
|
7419
7411
|
) : null)
|
7420
7412
|
);
|
7421
7413
|
};
|
7422
7414
|
|
7423
7415
|
// blocks/cards/LandingCard.tsx
|
7424
|
-
var
|
7416
|
+
var import_react63 = __toESM(require("react"));
|
7425
7417
|
var LandingCard = (props) => {
|
7426
|
-
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)));
|
7427
7419
|
};
|
7428
7420
|
|
7429
7421
|
// blocks/pricing/PricingPlans.tsx
|
@@ -7432,7 +7424,7 @@ var PricingPlans = ({
|
|
7432
7424
|
cardsContainerProps,
|
7433
7425
|
...props
|
7434
7426
|
}) => {
|
7435
|
-
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(
|
7436
7428
|
Radio,
|
7437
7429
|
{
|
7438
7430
|
name: "cycle",
|
@@ -7445,7 +7437,7 @@ var PricingPlans = ({
|
|
7445
7437
|
}
|
7446
7438
|
}
|
7447
7439
|
}
|
7448
|
-
), /* @__PURE__ */
|
7440
|
+
), /* @__PURE__ */ import_react64.default.createElement(
|
7449
7441
|
Radio,
|
7450
7442
|
{
|
7451
7443
|
name: "currency",
|
@@ -7458,7 +7450,7 @@ var PricingPlans = ({
|
|
7458
7450
|
}
|
7459
7451
|
}
|
7460
7452
|
}
|
7461
|
-
)), /* @__PURE__ */
|
7453
|
+
)), /* @__PURE__ */ import_react64.default.createElement(
|
7462
7454
|
"div",
|
7463
7455
|
{
|
7464
7456
|
className: "hawa-inline-grid hawa-w-full hawa-grid-cols-[repeat(auto-fit,_minmax(300px,_1fr))] hawa-gap-4",
|
@@ -7466,7 +7458,7 @@ var PricingPlans = ({
|
|
7466
7458
|
},
|
7467
7459
|
props.plans.map((plan, index) => {
|
7468
7460
|
var _a, _b;
|
7469
|
-
return /* @__PURE__ */
|
7461
|
+
return /* @__PURE__ */ import_react64.default.createElement(
|
7470
7462
|
PricingCard,
|
7471
7463
|
{
|
7472
7464
|
key: index,
|
@@ -7497,7 +7489,7 @@ var PricingPlans = ({
|
|
7497
7489
|
};
|
7498
7490
|
|
7499
7491
|
// blocks/pricing/ComparingPlans.tsx
|
7500
|
-
var
|
7492
|
+
var import_react65 = __toESM(require("react"));
|
7501
7493
|
var ComparingPlans = (props) => {
|
7502
7494
|
const uniqueFeatures = Array.from(
|
7503
7495
|
new Set(
|
@@ -7506,7 +7498,7 @@ var ComparingPlans = (props) => {
|
|
7506
7498
|
)
|
7507
7499
|
)
|
7508
7500
|
);
|
7509
|
-
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(
|
7510
7502
|
Radio,
|
7511
7503
|
{
|
7512
7504
|
name: "cycle",
|
@@ -7521,7 +7513,7 @@ var ComparingPlans = (props) => {
|
|
7521
7513
|
}
|
7522
7514
|
}
|
7523
7515
|
}
|
7524
|
-
), /* @__PURE__ */
|
7516
|
+
), /* @__PURE__ */ import_react65.default.createElement(
|
7525
7517
|
Radio,
|
7526
7518
|
{
|
7527
7519
|
name: "currency",
|
@@ -7536,7 +7528,7 @@ var ComparingPlans = (props) => {
|
|
7536
7528
|
}
|
7537
7529
|
}
|
7538
7530
|
}
|
7539
|
-
)), /* @__PURE__ */
|
7531
|
+
)), /* @__PURE__ */ import_react65.default.createElement(
|
7540
7532
|
"div",
|
7541
7533
|
{
|
7542
7534
|
className: cn(
|
@@ -7547,16 +7539,16 @@ var ComparingPlans = (props) => {
|
|
7547
7539
|
top: props.topPosition || 0
|
7548
7540
|
}
|
7549
7541
|
},
|
7550
|
-
/* @__PURE__ */
|
7551
|
-
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(
|
7552
7544
|
"div",
|
7553
7545
|
{
|
7554
7546
|
key: i,
|
7555
7547
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2"
|
7556
7548
|
},
|
7557
|
-
/* @__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)))
|
7558
7550
|
))
|
7559
|
-
), /* @__PURE__ */
|
7551
|
+
), /* @__PURE__ */ import_react65.default.createElement(
|
7560
7552
|
ScrollArea,
|
7561
7553
|
{
|
7562
7554
|
className: "hawa-h-fit hawa-rounded hawa-rounded-t-none hawa-border hawa-border-t-0 hawa-bg-background",
|
@@ -7564,7 +7556,7 @@ var ComparingPlans = (props) => {
|
|
7564
7556
|
},
|
7565
7557
|
uniqueFeatures.map((featureText, featureIndex) => {
|
7566
7558
|
var _a, _b, _c, _d;
|
7567
|
-
return /* @__PURE__ */
|
7559
|
+
return /* @__PURE__ */ import_react65.default.createElement(
|
7568
7560
|
"div",
|
7569
7561
|
{
|
7570
7562
|
key: featureIndex,
|
@@ -7573,11 +7565,11 @@ var ComparingPlans = (props) => {
|
|
7573
7565
|
featureIndex === 0 ? "" : "hawa-border-t"
|
7574
7566
|
)
|
7575
7567
|
},
|
7576
|
-
/* @__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(
|
7577
7569
|
(plan) => plan.features.some(
|
7578
7570
|
(feature) => feature.text === featureText && feature.hint
|
7579
7571
|
)
|
7580
|
-
) && /* @__PURE__ */
|
7572
|
+
) && /* @__PURE__ */ import_react65.default.createElement(
|
7581
7573
|
Tooltip,
|
7582
7574
|
{
|
7583
7575
|
side: "right",
|
@@ -7592,7 +7584,7 @@ var ComparingPlans = (props) => {
|
|
7592
7584
|
(feature) => feature.text === featureText
|
7593
7585
|
)) == null ? void 0 : _b.hint
|
7594
7586
|
},
|
7595
|
-
/* @__PURE__ */
|
7587
|
+
/* @__PURE__ */ import_react65.default.createElement(
|
7596
7588
|
"svg",
|
7597
7589
|
{
|
7598
7590
|
stroke: "currentColor",
|
@@ -7602,13 +7594,13 @@ var ComparingPlans = (props) => {
|
|
7602
7594
|
height: "1em",
|
7603
7595
|
width: "1em"
|
7604
7596
|
},
|
7605
|
-
/* @__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" })
|
7606
7598
|
)
|
7607
7599
|
), props.plans.some(
|
7608
7600
|
(plan) => plan.features.some(
|
7609
7601
|
(feature) => feature.text === featureText && feature.soon
|
7610
7602
|
)
|
7611
|
-
) && /* @__PURE__ */
|
7603
|
+
) && /* @__PURE__ */ import_react65.default.createElement(
|
7612
7604
|
Chip,
|
7613
7605
|
{
|
7614
7606
|
label: ((_d = (_c = props.plans.find(
|
@@ -7622,26 +7614,26 @@ var ComparingPlans = (props) => {
|
|
7622
7614
|
const feature = plan.features.find(
|
7623
7615
|
(f) => f.text === featureText
|
7624
7616
|
);
|
7625
|
-
return /* @__PURE__ */
|
7617
|
+
return /* @__PURE__ */ import_react65.default.createElement(
|
7626
7618
|
"div",
|
7627
7619
|
{
|
7628
7620
|
key: planIndex,
|
7629
7621
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-text-center"
|
7630
7622
|
},
|
7631
|
-
(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" })
|
7632
7624
|
);
|
7633
7625
|
})
|
7634
7626
|
);
|
7635
7627
|
})
|
7636
|
-
), 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) => {
|
7637
7629
|
var _a;
|
7638
|
-
return /* @__PURE__ */
|
7630
|
+
return /* @__PURE__ */ import_react65.default.createElement(
|
7639
7631
|
"div",
|
7640
7632
|
{
|
7641
7633
|
key: i,
|
7642
7634
|
className: "hawa-flex hawa-items-center hawa-justify-center"
|
7643
7635
|
},
|
7644
|
-
/* @__PURE__ */
|
7636
|
+
/* @__PURE__ */ import_react65.default.createElement(
|
7645
7637
|
Button,
|
7646
7638
|
{
|
7647
7639
|
className: "hawa-w-full hawa-max-w-xs",
|
@@ -7665,15 +7657,15 @@ var ComparingPlans = (props) => {
|
|
7665
7657
|
};
|
7666
7658
|
|
7667
7659
|
// blocks/pricing/HorizontalPricing.tsx
|
7668
|
-
var
|
7660
|
+
var import_react66 = __toESM(require("react"));
|
7669
7661
|
var HorizontalPricing = (props) => {
|
7670
|
-
const [selectedCard, setSelectedCard] = (0,
|
7662
|
+
const [selectedCard, setSelectedCard] = (0, import_react66.useState)("");
|
7671
7663
|
let data = [
|
7672
7664
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
7673
7665
|
{ title: "business", price: "$99", cycle: "/mo" },
|
7674
7666
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
7675
7667
|
];
|
7676
|
-
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(
|
7677
7669
|
Radio,
|
7678
7670
|
{
|
7679
7671
|
name: "currency",
|
@@ -7681,7 +7673,7 @@ var HorizontalPricing = (props) => {
|
|
7681
7673
|
options: props.currencies,
|
7682
7674
|
defaultValue: props.currentCurrency
|
7683
7675
|
}
|
7684
|
-
), /* @__PURE__ */
|
7676
|
+
), /* @__PURE__ */ import_react66.default.createElement(
|
7685
7677
|
Radio,
|
7686
7678
|
{
|
7687
7679
|
name: "cycle",
|
@@ -7689,7 +7681,7 @@ var HorizontalPricing = (props) => {
|
|
7689
7681
|
options: props.billingCycles,
|
7690
7682
|
defaultValue: props.currentCycle
|
7691
7683
|
}
|
7692
|
-
)), data.map((d, i) => /* @__PURE__ */
|
7684
|
+
)), data.map((d, i) => /* @__PURE__ */ import_react66.default.createElement(
|
7693
7685
|
"label",
|
7694
7686
|
{
|
7695
7687
|
key: i,
|
@@ -7697,7 +7689,7 @@ var HorizontalPricing = (props) => {
|
|
7697
7689
|
className: "",
|
7698
7690
|
onClick: () => setSelectedCard(d.title)
|
7699
7691
|
},
|
7700
|
-
/* @__PURE__ */
|
7692
|
+
/* @__PURE__ */ import_react66.default.createElement(
|
7701
7693
|
"input",
|
7702
7694
|
{
|
7703
7695
|
type: "radio",
|
@@ -7706,7 +7698,7 @@ var HorizontalPricing = (props) => {
|
|
7706
7698
|
className: "hawa-peer hawa-appearance-none"
|
7707
7699
|
}
|
7708
7700
|
),
|
7709
|
-
/* @__PURE__ */
|
7701
|
+
/* @__PURE__ */ import_react66.default.createElement(
|
7710
7702
|
"div",
|
7711
7703
|
{
|
7712
7704
|
className: cn(
|
@@ -7714,18 +7706,18 @@ var HorizontalPricing = (props) => {
|
|
7714
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"
|
7715
7707
|
)
|
7716
7708
|
},
|
7717
|
-
/* @__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(
|
7718
7710
|
CardText,
|
7719
7711
|
{
|
7720
7712
|
title: "Enterprise",
|
7721
7713
|
subtitle: "For startups and new businesses"
|
7722
7714
|
}
|
7723
7715
|
)),
|
7724
|
-
/* @__PURE__ */
|
7716
|
+
/* @__PURE__ */ import_react66.default.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
7725
7717
|
)
|
7726
7718
|
))));
|
7727
7719
|
};
|
7728
|
-
var CheckIcons = () => /* @__PURE__ */
|
7720
|
+
var CheckIcons = () => /* @__PURE__ */ import_react66.default.createElement(import_react66.default.Fragment, null, /* @__PURE__ */ import_react66.default.createElement(
|
7729
7721
|
"svg",
|
7730
7722
|
{
|
7731
7723
|
fill: "none",
|
@@ -7734,7 +7726,7 @@ var CheckIcons = () => /* @__PURE__ */ import_react64.default.createElement(impo
|
|
7734
7726
|
stroke: "currentColor",
|
7735
7727
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
7736
7728
|
},
|
7737
|
-
/* @__PURE__ */
|
7729
|
+
/* @__PURE__ */ import_react66.default.createElement(
|
7738
7730
|
"path",
|
7739
7731
|
{
|
7740
7732
|
strokeLinecap: "round",
|
@@ -7742,14 +7734,14 @@ var CheckIcons = () => /* @__PURE__ */ import_react64.default.createElement(impo
|
|
7742
7734
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
7743
7735
|
}
|
7744
7736
|
)
|
7745
|
-
), /* @__PURE__ */
|
7737
|
+
), /* @__PURE__ */ import_react66.default.createElement(
|
7746
7738
|
"svg",
|
7747
7739
|
{
|
7748
7740
|
viewBox: "0 0 24 24",
|
7749
7741
|
fill: "currentColor",
|
7750
7742
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
7751
7743
|
},
|
7752
|
-
/* @__PURE__ */
|
7744
|
+
/* @__PURE__ */ import_react66.default.createElement(
|
7753
7745
|
"path",
|
7754
7746
|
{
|
7755
7747
|
fillRule: "evenodd",
|
@@ -7758,16 +7750,16 @@ var CheckIcons = () => /* @__PURE__ */ import_react64.default.createElement(impo
|
|
7758
7750
|
}
|
7759
7751
|
)
|
7760
7752
|
));
|
7761
|
-
var CardText = (props) => /* @__PURE__ */
|
7762
|
-
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));
|
7763
7755
|
|
7764
7756
|
// blocks/Usage.tsx
|
7765
|
-
var
|
7757
|
+
var import_react67 = __toESM(require("react"));
|
7766
7758
|
|
7767
7759
|
// elements/progress/Progress.tsx
|
7768
|
-
var
|
7760
|
+
var React63 = __toESM(require("react"));
|
7769
7761
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
7770
|
-
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(
|
7771
7763
|
ProgressPrimitive.Root,
|
7772
7764
|
{
|
7773
7765
|
ref,
|
@@ -7777,7 +7769,7 @@ var Progress = React64.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
7777
7769
|
),
|
7778
7770
|
...props
|
7779
7771
|
},
|
7780
|
-
/* @__PURE__ */
|
7772
|
+
/* @__PURE__ */ React63.createElement(
|
7781
7773
|
ProgressPrimitive.Indicator,
|
7782
7774
|
{
|
7783
7775
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
@@ -7790,7 +7782,7 @@ Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
7790
7782
|
// blocks/Usage.tsx
|
7791
7783
|
var Usage = (props) => {
|
7792
7784
|
var _a;
|
7793
|
-
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(
|
7794
7786
|
"svg",
|
7795
7787
|
{
|
7796
7788
|
stroke: "currentColor",
|
@@ -7801,8 +7793,8 @@ var Usage = (props) => {
|
|
7801
7793
|
height: "1em",
|
7802
7794
|
width: "1em"
|
7803
7795
|
},
|
7804
|
-
/* @__PURE__ */
|
7805
|
-
))), /* @__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 }));
|
7806
7798
|
};
|
7807
7799
|
// Annotate the CommonJS export names for ESM import in node:
|
7808
7800
|
0 && (module.exports = {
|
@@ -7840,7 +7832,7 @@ var Usage = (props) => {
|
|
7840
7832
|
|
7841
7833
|
lucide-react/dist/esm/shared/src/utils.js:
|
7842
7834
|
(**
|
7843
|
-
* @license lucide-react v0.
|
7835
|
+
* @license lucide-react v0.381.0 - ISC
|
7844
7836
|
*
|
7845
7837
|
* This source code is licensed under the ISC license.
|
7846
7838
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -7848,7 +7840,7 @@ lucide-react/dist/esm/shared/src/utils.js:
|
|
7848
7840
|
|
7849
7841
|
lucide-react/dist/esm/defaultAttributes.js:
|
7850
7842
|
(**
|
7851
|
-
* @license lucide-react v0.
|
7843
|
+
* @license lucide-react v0.381.0 - ISC
|
7852
7844
|
*
|
7853
7845
|
* This source code is licensed under the ISC license.
|
7854
7846
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -7856,7 +7848,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
7856
7848
|
|
7857
7849
|
lucide-react/dist/esm/Icon.js:
|
7858
7850
|
(**
|
7859
|
-
* @license lucide-react v0.
|
7851
|
+
* @license lucide-react v0.381.0 - ISC
|
7860
7852
|
*
|
7861
7853
|
* This source code is licensed under the ISC license.
|
7862
7854
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -7864,7 +7856,7 @@ lucide-react/dist/esm/Icon.js:
|
|
7864
7856
|
|
7865
7857
|
lucide-react/dist/esm/createLucideIcon.js:
|
7866
7858
|
(**
|
7867
|
-
* @license lucide-react v0.
|
7859
|
+
* @license lucide-react v0.381.0 - ISC
|
7868
7860
|
*
|
7869
7861
|
* This source code is licensed under the ISC license.
|
7870
7862
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -7872,7 +7864,7 @@ lucide-react/dist/esm/createLucideIcon.js:
|
|
7872
7864
|
|
7873
7865
|
lucide-react/dist/esm/icons/dot.js:
|
7874
7866
|
(**
|
7875
|
-
* @license lucide-react v0.
|
7867
|
+
* @license lucide-react v0.381.0 - ISC
|
7876
7868
|
*
|
7877
7869
|
* This source code is licensed under the ISC license.
|
7878
7870
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -7880,7 +7872,7 @@ lucide-react/dist/esm/icons/dot.js:
|
|
7880
7872
|
|
7881
7873
|
lucide-react/dist/esm/lucide-react.js:
|
7882
7874
|
(**
|
7883
|
-
* @license lucide-react v0.
|
7875
|
+
* @license lucide-react v0.381.0 - ISC
|
7884
7876
|
*
|
7885
7877
|
* This source code is licensed under the ISC license.
|
7886
7878
|
* See the LICENSE file in the root directory of this source tree.
|