@sikka/hawa 0.35.5-next → 0.35.6-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/appLayout/index.js +177 -170
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +198 -191
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/blocks/index.js +60 -60
- package/dist/blocks/index.mjs +12 -12
- package/dist/blocks/misc/index.js +49 -49
- package/dist/blocks/misc/index.mjs +62 -62
- package/dist/{chunk-TERP5K6R.mjs → chunk-57EAKTAP.mjs} +1 -184
- package/dist/{chunk-G7JHUC5N.mjs → chunk-ANXGMZXS.mjs} +205 -0
- package/dist/{chunk-HSRW7X3Z.mjs → chunk-MZRUEJED.mjs} +1 -1
- package/dist/chunk-SYGWSBJL.mjs +63 -0
- package/dist/elements/index.js +74 -74
- package/dist/elements/index.mjs +9 -9
- package/dist/hooks/index.d.mts +4 -1
- package/dist/hooks/index.d.ts +4 -1
- package/dist/hooks/index.js +31 -2
- package/dist/hooks/index.mjs +4 -2
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +177 -177
- package/dist/index.mjs +723 -724
- package/dist/layout/index.js +285 -278
- package/dist/layout/index.mjs +26 -57
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/tabs/index.js +20 -20
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +25 -25
- package/dist/tabs/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-545D35G6.mjs +0 -54
@@ -24,10 +24,10 @@ import {
|
|
24
24
|
} from "../../chunk-YP2CCKZG.mjs";
|
25
25
|
|
26
26
|
// blocks/misc/LegalTexts.tsx
|
27
|
-
import
|
27
|
+
import React11 from "react";
|
28
28
|
|
29
29
|
// elements/tabs/Tabs.tsx
|
30
|
-
import * as
|
30
|
+
import * as React10 from "react";
|
31
31
|
|
32
32
|
// hooks/useIsomorphicEffect.ts
|
33
33
|
import { useEffect, useLayoutEffect } from "react";
|
@@ -110,15 +110,15 @@ var useMeasureDirty = (ref) => {
|
|
110
110
|
return rect;
|
111
111
|
};
|
112
112
|
|
113
|
-
// hooks/
|
114
|
-
import
|
113
|
+
// hooks/useClickOutside.ts
|
114
|
+
import { useEffect as useEffect14, useRef as useRef8 } from "react";
|
115
115
|
|
116
116
|
// elements/tabs/Tabs.tsx
|
117
117
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
118
118
|
import { tv } from "tailwind-variants";
|
119
119
|
|
120
120
|
// elements/floatBox/FloatBox.tsx
|
121
|
-
import * as
|
121
|
+
import * as React9 from "react";
|
122
122
|
var FloatBox = ({
|
123
123
|
className,
|
124
124
|
open,
|
@@ -156,7 +156,7 @@ var FloatBox = ({
|
|
156
156
|
right: "hawa-arrow-default-left",
|
157
157
|
left: "hawa-arrow-default-right"
|
158
158
|
};
|
159
|
-
return /* @__PURE__ */
|
159
|
+
return /* @__PURE__ */ React9.createElement(
|
160
160
|
"div",
|
161
161
|
{
|
162
162
|
className: cn(
|
@@ -167,8 +167,8 @@ var FloatBox = ({
|
|
167
167
|
"data-side": side,
|
168
168
|
"data-floatbox-state": open ? "open" : "closed"
|
169
169
|
},
|
170
|
-
withArrow && /* @__PURE__ */
|
171
|
-
/* @__PURE__ */
|
170
|
+
withArrow && /* @__PURE__ */ React9.createElement("div", { className: cn(arrowDirection[side]) }),
|
171
|
+
/* @__PURE__ */ React9.createElement("span", null, props.children)
|
172
172
|
);
|
173
173
|
};
|
174
174
|
|
@@ -231,8 +231,8 @@ var tabsTriggerVariant = tv({
|
|
231
231
|
],
|
232
232
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
233
233
|
});
|
234
|
-
var TabsContext =
|
235
|
-
var Tabs =
|
234
|
+
var TabsContext = React10.createContext({ orientation: "horizontal", variant: "default" });
|
235
|
+
var Tabs = React10.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React10.createElement(
|
236
236
|
TabsPrimitive.Root,
|
237
237
|
{
|
238
238
|
ref,
|
@@ -243,11 +243,11 @@ var Tabs = React11.forwardRef(({ className, orientation, variant = "default", ..
|
|
243
243
|
),
|
244
244
|
...props
|
245
245
|
},
|
246
|
-
/* @__PURE__ */
|
246
|
+
/* @__PURE__ */ React10.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
247
247
|
));
|
248
|
-
var TabsList =
|
249
|
-
const { orientation, variant } =
|
250
|
-
return /* @__PURE__ */
|
248
|
+
var TabsList = React10.forwardRef(({ className, ...props }, ref) => {
|
249
|
+
const { orientation, variant } = React10.useContext(TabsContext);
|
250
|
+
return /* @__PURE__ */ React10.createElement(
|
251
251
|
TabsPrimitive.List,
|
252
252
|
{
|
253
253
|
ref,
|
@@ -260,11 +260,11 @@ var TabsList = React11.forwardRef(({ className, ...props }, ref) => {
|
|
260
260
|
}
|
261
261
|
);
|
262
262
|
});
|
263
|
-
var TabsTrigger =
|
264
|
-
const { orientation, variant } =
|
265
|
-
const tabTriggerRef =
|
263
|
+
var TabsTrigger = React10.forwardRef(({ className, chipProps, ...props }, ref) => {
|
264
|
+
const { orientation, variant } = React10.useContext(TabsContext);
|
265
|
+
const tabTriggerRef = React10.useRef(null);
|
266
266
|
const { width } = useMeasureDirty(tabTriggerRef);
|
267
|
-
return /* @__PURE__ */
|
267
|
+
return /* @__PURE__ */ React10.createElement(
|
268
268
|
TabsPrimitive.Trigger,
|
269
269
|
{
|
270
270
|
ref: tabTriggerRef,
|
@@ -276,8 +276,8 @@ var TabsTrigger = React11.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
276
276
|
...props
|
277
277
|
},
|
278
278
|
props.children,
|
279
|
-
chipProps && /* @__PURE__ */
|
280
|
-
/* @__PURE__ */
|
279
|
+
chipProps && /* @__PURE__ */ React10.createElement(Chip, { ...chipProps }),
|
280
|
+
/* @__PURE__ */ React10.createElement(
|
281
281
|
FloatBox,
|
282
282
|
{
|
283
283
|
withArrow: true,
|
@@ -290,7 +290,7 @@ var TabsTrigger = React11.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
290
290
|
)
|
291
291
|
);
|
292
292
|
});
|
293
|
-
var TabsContent =
|
293
|
+
var TabsContent = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(
|
294
294
|
TabsPrimitive.Content,
|
295
295
|
{
|
296
296
|
ref,
|
@@ -308,7 +308,7 @@ TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
308
308
|
|
309
309
|
// blocks/misc/LegalTexts.tsx
|
310
310
|
var LegalTexts = ({ tabs, ...props }) => {
|
311
|
-
return /* @__PURE__ */
|
311
|
+
return /* @__PURE__ */ React11.createElement(
|
312
312
|
Tabs,
|
313
313
|
{
|
314
314
|
value: props.activeTab,
|
@@ -316,8 +316,8 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
316
316
|
defaultValue: props.defaultTab || tabs[0].value,
|
317
317
|
dir: props.direction
|
318
318
|
},
|
319
|
-
/* @__PURE__ */
|
320
|
-
tabs.map((tab, index) => /* @__PURE__ */
|
319
|
+
/* @__PURE__ */ React11.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ React11.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
|
320
|
+
tabs.map((tab, index) => /* @__PURE__ */ React11.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ React11.createElement(
|
321
321
|
ScrollArea,
|
322
322
|
{
|
323
323
|
className: cn(
|
@@ -331,9 +331,9 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
331
331
|
};
|
332
332
|
|
333
333
|
// blocks/misc/EmptyState.tsx
|
334
|
-
import
|
334
|
+
import React12 from "react";
|
335
335
|
var EmptyState = ({ texts, onActionClick }) => {
|
336
|
-
return /* @__PURE__ */
|
336
|
+
return /* @__PURE__ */ React12.createElement(Card, null, /* @__PURE__ */ React12.createElement(CardContent, { headless: true }, /* @__PURE__ */ React12.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center " }, /* @__PURE__ */ React12.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__ */ React12.createElement(
|
337
337
|
"svg",
|
338
338
|
{
|
339
339
|
stroke: "currentColor",
|
@@ -343,30 +343,30 @@ var EmptyState = ({ texts, onActionClick }) => {
|
|
343
343
|
height: "0.35em",
|
344
344
|
width: "0.35em"
|
345
345
|
},
|
346
|
-
/* @__PURE__ */
|
347
|
-
)), /* @__PURE__ */
|
346
|
+
/* @__PURE__ */ React12.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" })
|
347
|
+
)), /* @__PURE__ */ React12.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.youreCaughtUp) || "You're all caught up"))), /* @__PURE__ */ React12.createElement(CardFooter, null, /* @__PURE__ */ React12.createElement(Button, { className: "hawa-w-full", onClick: () => onActionClick() }, (texts == null ? void 0 : texts.actionText) || "Go Home")));
|
348
348
|
};
|
349
349
|
|
350
350
|
// blocks/misc/Testimonial.tsx
|
351
|
-
import
|
351
|
+
import React13 from "react";
|
352
352
|
var Testimonial = () => {
|
353
|
-
return /* @__PURE__ */
|
353
|
+
return /* @__PURE__ */ React13.createElement(Card, null, /* @__PURE__ */ React13.createElement(CardContent, { headless: true }, /* @__PURE__ */ React13.createElement("div", null, /* @__PURE__ */ React13.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__ */ React13.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ React13.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ React13.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ React13.createElement(
|
354
354
|
"path",
|
355
355
|
{
|
356
356
|
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",
|
357
357
|
fill: "#FFFFFF"
|
358
358
|
}
|
359
|
-
), /* @__PURE__ */
|
359
|
+
), /* @__PURE__ */ React13.createElement(
|
360
360
|
"path",
|
361
361
|
{
|
362
362
|
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",
|
363
363
|
fill: "#FFFFFF"
|
364
364
|
}
|
365
|
-
)), /* @__PURE__ */
|
365
|
+
)), /* @__PURE__ */ React13.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ React13.createElement("div", null, /* @__PURE__ */ React13.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ React13.createElement("div", null, " Chief Information Security Officer")))));
|
366
366
|
};
|
367
367
|
|
368
368
|
// blocks/misc/LeadGenerator.tsx
|
369
|
-
import
|
369
|
+
import React14 from "react";
|
370
370
|
import { useForm, Controller } from "react-hook-form";
|
371
371
|
var LeadGenerator = ({ texts, submitHandler }) => {
|
372
372
|
var _a;
|
@@ -378,14 +378,14 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
378
378
|
console.log("handleNewsletterSub props was not provided");
|
379
379
|
}
|
380
380
|
};
|
381
|
-
return /* @__PURE__ */
|
381
|
+
return /* @__PURE__ */ React14.createElement(Card, null, /* @__PURE__ */ React14.createElement(CardHeader, null, /* @__PURE__ */ React14.createElement(CardTitle, null, texts == null ? void 0 : texts.title), /* @__PURE__ */ React14.createElement(CardDescription, null, texts == null ? void 0 : texts.subtitle)), /* @__PURE__ */ React14.createElement(CardContent, null, /* @__PURE__ */ React14.createElement(
|
382
382
|
"form",
|
383
383
|
{
|
384
384
|
noValidate: true,
|
385
385
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
386
386
|
onSubmit: handleSubmit(onSubmit)
|
387
387
|
},
|
388
|
-
/* @__PURE__ */
|
388
|
+
/* @__PURE__ */ React14.createElement(
|
389
389
|
Controller,
|
390
390
|
{
|
391
391
|
name: "email",
|
@@ -398,27 +398,27 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
398
398
|
}
|
399
399
|
},
|
400
400
|
defaultValue: "",
|
401
|
-
render: ({ field }) => /* @__PURE__ */
|
401
|
+
render: ({ field }) => /* @__PURE__ */ React14.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
|
402
402
|
}
|
403
403
|
),
|
404
|
-
/* @__PURE__ */
|
404
|
+
/* @__PURE__ */ React14.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
|
405
405
|
)));
|
406
406
|
};
|
407
407
|
|
408
408
|
// blocks/misc/Announcement.tsx
|
409
|
-
import
|
409
|
+
import React15 from "react";
|
410
410
|
var Announcement = ({
|
411
411
|
onActionClick,
|
412
412
|
...props
|
413
413
|
}) => {
|
414
|
-
return /* @__PURE__ */
|
414
|
+
return /* @__PURE__ */ React15.createElement(Card, null, /* @__PURE__ */ React15.createElement(
|
415
415
|
CardContent,
|
416
416
|
{
|
417
417
|
headless: true,
|
418
418
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
419
419
|
},
|
420
|
-
/* @__PURE__ */
|
421
|
-
/* @__PURE__ */
|
420
|
+
/* @__PURE__ */ React15.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center " }, /* @__PURE__ */ React15.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ React15.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
|
421
|
+
/* @__PURE__ */ React15.createElement(
|
422
422
|
Button,
|
423
423
|
{
|
424
424
|
onClick: () => onActionClick(),
|
@@ -430,15 +430,15 @@ var Announcement = ({
|
|
430
430
|
};
|
431
431
|
|
432
432
|
// blocks/misc/NotFound.tsx
|
433
|
-
import
|
433
|
+
import React16 from "react";
|
434
434
|
var NotFound = ({ texts }) => {
|
435
|
-
return /* @__PURE__ */
|
435
|
+
return /* @__PURE__ */ React16.createElement(Card, null, /* @__PURE__ */ React16.createElement(CardContent, { headless: true }, /* @__PURE__ */ React16.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white" }, /* @__PURE__ */ React16.createElement("div", { className: "hawa-text-center hawa-text-6xl hawa-font-bold " }, "404"), /* @__PURE__ */ React16.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__ */ React16.createElement("div", { className: "hawa-mb-4 hawa-text-center" }, (texts == null ? void 0 : texts.ifLost) || /* @__PURE__ */ React16.createElement(React16.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ React16.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ React16.createElement(Button, { className: "hawa-w-full" }, (texts == null ? void 0 : texts.home) || "Home"))));
|
436
436
|
};
|
437
437
|
|
438
438
|
// blocks/misc/NoPermission.tsx
|
439
|
-
import
|
439
|
+
import React17 from "react";
|
440
440
|
var NoPermission = ({ texts }) => {
|
441
|
-
return /* @__PURE__ */
|
441
|
+
return /* @__PURE__ */ React17.createElement(Card, null, /* @__PURE__ */ React17.createElement(CardContent, { headless: true }, /* @__PURE__ */ React17.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ React17.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__ */ React17.createElement(
|
442
442
|
"svg",
|
443
443
|
{
|
444
444
|
stroke: "currentColor",
|
@@ -448,12 +448,12 @@ var NoPermission = ({ texts }) => {
|
|
448
448
|
height: "0.35em",
|
449
449
|
width: "0.35em"
|
450
450
|
},
|
451
|
-
/* @__PURE__ */
|
452
|
-
)), /* @__PURE__ */
|
451
|
+
/* @__PURE__ */ React17.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" })
|
452
|
+
)), /* @__PURE__ */ React17.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.title) || "You don't have permission"), /* @__PURE__ */ React17.createElement("div", null, (texts == null ? void 0 : texts.subtitle) || "If you think this is a problem please contact your administrator or our customer support"))));
|
453
453
|
};
|
454
454
|
|
455
455
|
// blocks/misc/ContactForm.tsx
|
456
|
-
import
|
456
|
+
import React18 from "react";
|
457
457
|
import { useForm as useForm2, Controller as Controller2 } from "react-hook-form";
|
458
458
|
import { zodResolver } from "@hookform/resolvers/zod";
|
459
459
|
import * as z from "zod";
|
@@ -526,7 +526,7 @@ var ContactForm = ({
|
|
526
526
|
console.log("Form is submitted but onSubmit prop is missing");
|
527
527
|
}
|
528
528
|
};
|
529
|
-
return /* @__PURE__ */
|
529
|
+
return /* @__PURE__ */ React18.createElement(
|
530
530
|
Card,
|
531
531
|
{
|
532
532
|
className: cn(
|
@@ -535,7 +535,7 @@ var ContactForm = ({
|
|
535
535
|
),
|
536
536
|
style: cardless ? { boxShadow: "none" } : void 0
|
537
537
|
},
|
538
|
-
/* @__PURE__ */
|
538
|
+
/* @__PURE__ */ React18.createElement(CardContent, { headless: true, className: cardless ? "!hawa-p-0" : "" }, props.showSuccess ? /* @__PURE__ */ React18.createElement(CardHeader, null, /* @__PURE__ */ React18.createElement(CardTitle, null, ((_d = texts == null ? void 0 : texts.success) == null ? void 0 : _d.title) || "Message Sent! \u{1F389}"), /* @__PURE__ */ React18.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__ */ React18.createElement(
|
539
539
|
"form",
|
540
540
|
{
|
541
541
|
noValidate: true,
|
@@ -544,7 +544,7 @@ var ContactForm = ({
|
|
544
544
|
id: formId,
|
545
545
|
autoComplete: formAutoComplete
|
546
546
|
},
|
547
|
-
/* @__PURE__ */
|
547
|
+
/* @__PURE__ */ React18.createElement(
|
548
548
|
"div",
|
549
549
|
{
|
550
550
|
className: cn(
|
@@ -555,14 +555,14 @@ var ContactForm = ({
|
|
555
555
|
}
|
556
556
|
)
|
557
557
|
},
|
558
|
-
/* @__PURE__ */
|
558
|
+
/* @__PURE__ */ React18.createElement(
|
559
559
|
Controller2,
|
560
560
|
{
|
561
561
|
control,
|
562
562
|
name: "name",
|
563
563
|
render: ({ field }) => {
|
564
564
|
var _a2;
|
565
|
-
return /* @__PURE__ */
|
565
|
+
return /* @__PURE__ */ React18.createElement(
|
566
566
|
Input,
|
567
567
|
{
|
568
568
|
label: (texts == null ? void 0 : texts.name.label) || "Name",
|
@@ -575,14 +575,14 @@ var ContactForm = ({
|
|
575
575
|
}
|
576
576
|
}
|
577
577
|
),
|
578
|
-
/* @__PURE__ */
|
578
|
+
/* @__PURE__ */ React18.createElement(
|
579
579
|
Controller2,
|
580
580
|
{
|
581
581
|
control,
|
582
582
|
name: "email",
|
583
583
|
render: ({ field }) => {
|
584
584
|
var _a2;
|
585
|
-
return /* @__PURE__ */
|
585
|
+
return /* @__PURE__ */ React18.createElement(
|
586
586
|
Input,
|
587
587
|
{
|
588
588
|
label: (texts == null ? void 0 : texts.email.label) || "Email",
|
@@ -598,7 +598,7 @@ var ContactForm = ({
|
|
598
598
|
),
|
599
599
|
customFields && customFields.map((customField) => {
|
600
600
|
console.log("custom", customField);
|
601
|
-
return /* @__PURE__ */
|
601
|
+
return /* @__PURE__ */ React18.createElement(
|
602
602
|
Controller2,
|
603
603
|
{
|
604
604
|
control,
|
@@ -608,7 +608,7 @@ var ContactForm = ({
|
|
608
608
|
switch (type) {
|
609
609
|
case "text":
|
610
610
|
case "number":
|
611
|
-
return /* @__PURE__ */
|
611
|
+
return /* @__PURE__ */ React18.createElement(
|
612
612
|
Input,
|
613
613
|
{
|
614
614
|
id: customField.name,
|
@@ -619,7 +619,7 @@ var ContactForm = ({
|
|
619
619
|
}
|
620
620
|
);
|
621
621
|
case "select":
|
622
|
-
return /* @__PURE__ */
|
622
|
+
return /* @__PURE__ */ React18.createElement(
|
623
623
|
Select,
|
624
624
|
{
|
625
625
|
label,
|
@@ -629,20 +629,20 @@ var ContactForm = ({
|
|
629
629
|
}
|
630
630
|
);
|
631
631
|
default:
|
632
|
-
return /* @__PURE__ */
|
632
|
+
return /* @__PURE__ */ React18.createElement("div", null, "Unknown type");
|
633
633
|
}
|
634
634
|
}
|
635
635
|
}
|
636
636
|
);
|
637
637
|
}),
|
638
|
-
/* @__PURE__ */
|
638
|
+
/* @__PURE__ */ React18.createElement(
|
639
639
|
Controller2,
|
640
640
|
{
|
641
641
|
control,
|
642
642
|
name: "message",
|
643
643
|
render: ({ field }) => {
|
644
644
|
var _a2;
|
645
|
-
return /* @__PURE__ */
|
645
|
+
return /* @__PURE__ */ React18.createElement(
|
646
646
|
Textarea,
|
647
647
|
{
|
648
648
|
label: (texts == null ? void 0 : texts.message.label) || "Message",
|
@@ -659,7 +659,7 @@ var ContactForm = ({
|
|
659
659
|
}
|
660
660
|
}
|
661
661
|
),
|
662
|
-
/* @__PURE__ */
|
662
|
+
/* @__PURE__ */ React18.createElement(Button, { type: "submit", className: "hawa-w-full" }, (texts == null ? void 0 : texts.submit) || "Submit")
|
663
663
|
))
|
664
664
|
);
|
665
665
|
};
|
@@ -8,7 +8,7 @@ import {
|
|
8
8
|
Label,
|
9
9
|
Skeleton,
|
10
10
|
cn
|
11
|
-
} from "./chunk-
|
11
|
+
} from "./chunk-ANXGMZXS.mjs";
|
12
12
|
|
13
13
|
// elements/alert/Alert.tsx
|
14
14
|
import React, { useRef, useState, useEffect } from "react";
|
@@ -3123,194 +3123,11 @@ var Progress = React15.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
3123
3123
|
)));
|
3124
3124
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
3125
3125
|
|
3126
|
-
// icons/Emojis.tsx
|
3127
|
-
import React16 from "react";
|
3128
|
-
var VeryGoodEmoji = () => /* @__PURE__ */ React16.createElement(
|
3129
|
-
"svg",
|
3130
|
-
{
|
3131
|
-
fill: "none",
|
3132
|
-
height: "16",
|
3133
|
-
viewBox: "0 0 16 16",
|
3134
|
-
width: "16",
|
3135
|
-
xmlns: "http://www.w3.org/2000/svg"
|
3136
|
-
},
|
3137
|
-
/* @__PURE__ */ React16.createElement("g", { clipPath: "url(#clip0_53_166)" }, /* @__PURE__ */ React16.createElement(
|
3138
|
-
"path",
|
3139
|
-
{
|
3140
|
-
clipRule: "evenodd",
|
3141
|
-
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM4.5 8.97498H3.875V9.59998C3.875 11.4747 5.81046 12.8637 7.99817 12.8637C10.1879 12.8637 12.125 11.4832 12.125 9.59998V8.97498H11.5H4.5ZM7.99817 11.6137C6.59406 11.6137 5.63842 10.9482 5.28118 10.225H10.7202C10.3641 10.9504 9.40797 11.6137 7.99817 11.6137Z",
|
3142
|
-
fill: "currentColor",
|
3143
|
-
fillRule: "evenodd"
|
3144
|
-
}
|
3145
|
-
), /* @__PURE__ */ React16.createElement(
|
3146
|
-
"path",
|
3147
|
-
{
|
3148
|
-
clipRule: "evenodd",
|
3149
|
-
d: "M6.15295 4.92093L5.375 3.5L4.59705 4.92093L3 5.21885L4.11625 6.39495L3.90717 8L5.375 7.30593L6.84283 8L6.63375 6.39495L7.75 5.21885L6.15295 4.92093ZM11.403 4.92093L10.625 3.5L9.84705 4.92093L8.25 5.21885L9.36625 6.39495L9.15717 8L10.625 7.30593L12.0928 8L11.8837 6.39495L13 5.21885L11.403 4.92093Z",
|
3150
|
-
fill: "#FF990A",
|
3151
|
-
fillRule: "evenodd"
|
3152
|
-
}
|
3153
|
-
))
|
3154
|
-
);
|
3155
|
-
var GoodEmoji = () => /* @__PURE__ */ React16.createElement(
|
3156
|
-
"svg",
|
3157
|
-
{
|
3158
|
-
fill: "none",
|
3159
|
-
height: "16",
|
3160
|
-
viewBox: "0 0 16 16",
|
3161
|
-
width: "16",
|
3162
|
-
xmlns: "http://www.w3.org/2000/svg"
|
3163
|
-
},
|
3164
|
-
/* @__PURE__ */ React16.createElement("g", { clipPath: "url(#clip0_53_167)" }, /* @__PURE__ */ React16.createElement(
|
3165
|
-
"path",
|
3166
|
-
{
|
3167
|
-
clipRule: "evenodd",
|
3168
|
-
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.5249 10.8478L11.8727 10.3286L10.8342 9.6329L10.4863 10.1522C9.94904 10.9543 9.0363 11.4802 8.00098 11.4802C6.96759 11.4802 6.05634 10.9563 5.51863 10.1567L5.16986 9.63804L4.13259 10.3356L4.48137 10.8542C5.2414 11.9844 6.53398 12.7302 8.00098 12.7302C9.47073 12.7302 10.7654 11.9816 11.5249 10.8478ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
|
3169
|
-
fill: "currentColor",
|
3170
|
-
fillRule: "evenodd"
|
3171
|
-
}
|
3172
|
-
))
|
3173
|
-
);
|
3174
|
-
var BadEmoji = () => /* @__PURE__ */ React16.createElement(
|
3175
|
-
"svg",
|
3176
|
-
{
|
3177
|
-
fill: "none",
|
3178
|
-
height: "16",
|
3179
|
-
viewBox: "0 0 16 16",
|
3180
|
-
width: "16",
|
3181
|
-
xmlns: "http://www.w3.org/2000/svg"
|
3182
|
-
},
|
3183
|
-
/* @__PURE__ */ React16.createElement("g", { clipPath: "url(#clip0_53_152)" }, /* @__PURE__ */ React16.createElement(
|
3184
|
-
"path",
|
3185
|
-
{
|
3186
|
-
clipRule: "evenodd",
|
3187
|
-
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM5.75 7.75C6.30228 7.75 6.75 7.30228 6.75 6.75C6.75 6.19772 6.30228 5.75 5.75 5.75C5.19772 5.75 4.75 6.19772 4.75 6.75C4.75 7.30228 5.19772 7.75 5.75 7.75ZM11.25 6.75C11.25 7.30228 10.8023 7.75 10.25 7.75C9.69771 7.75 9.25 7.30228 9.25 6.75C9.25 6.19772 9.69771 5.75 10.25 5.75C10.8023 5.75 11.25 6.19772 11.25 6.75ZM11.5249 11.2622L11.8727 11.7814L10.8342 12.4771L10.4863 11.9578C9.94904 11.1557 9.0363 10.6298 8.00098 10.6298C6.96759 10.6298 6.05634 11.1537 5.51863 11.9533L5.16986 12.4719L4.13259 11.7744L4.48137 11.2558C5.2414 10.1256 6.53398 9.37982 8.00098 9.37982C9.47073 9.37982 10.7654 10.1284 11.5249 11.2622Z",
|
3188
|
-
fill: "currentColor",
|
3189
|
-
fillRule: "evenodd"
|
3190
|
-
}
|
3191
|
-
))
|
3192
|
-
);
|
3193
|
-
var VeryBadEmoji = () => /* @__PURE__ */ React16.createElement(
|
3194
|
-
"svg",
|
3195
|
-
{
|
3196
|
-
fill: "none",
|
3197
|
-
height: "16",
|
3198
|
-
viewBox: "0 0 16 16",
|
3199
|
-
width: "16",
|
3200
|
-
xmlns: "http://www.w3.org/2000/svg"
|
3201
|
-
},
|
3202
|
-
/* @__PURE__ */ React16.createElement("g", { clipPath: "url(#clip0_53_151)" }, /* @__PURE__ */ React16.createElement(
|
3203
|
-
"path",
|
3204
|
-
{
|
3205
|
-
d: "M11.841 12.0225C12.7197 12.9324 12.7197 14.4077 11.841 15.3176C10.9623 16.2275 9.53769 16.2275 8.65901 15.3176C7.78033 14.4077 7.78033 12.9324 8.65901 12.0225L10.25 10.375L11.841 12.0225Z",
|
3206
|
-
fill: "#0070F3"
|
3207
|
-
}
|
3208
|
-
), /* @__PURE__ */ React16.createElement(
|
3209
|
-
"path",
|
3210
|
-
{
|
3211
|
-
clipRule: "evenodd",
|
3212
|
-
d: "M8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 10.9668 3.48826 13.4711 6.20649 14.2496L5.79351 15.6916C2.44895 14.7338 0 11.6539 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 9.4652 15.6054 10.8405 14.9162 12.023L13.6203 11.2677C14.1794 10.3083 14.5 9.19272 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
|
3213
|
-
fill: "currentColor",
|
3214
|
-
fillRule: "evenodd"
|
3215
|
-
}
|
3216
|
-
))
|
3217
|
-
);
|
3218
|
-
|
3219
|
-
// icons/InputIcons.tsx
|
3220
|
-
import React17 from "react";
|
3221
|
-
var EyeIcon = (props) => /* @__PURE__ */ React17.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ React17.createElement(
|
3222
|
-
"svg",
|
3223
|
-
{
|
3224
|
-
xmlns: "http://www.w3.org/2000/svg",
|
3225
|
-
viewBox: "0 0 24 24",
|
3226
|
-
fill: "none",
|
3227
|
-
stroke: "currentColor",
|
3228
|
-
strokeWidth: "2",
|
3229
|
-
strokeLinecap: "round",
|
3230
|
-
strokeLinejoin: "round"
|
3231
|
-
},
|
3232
|
-
/* @__PURE__ */ React17.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
3233
|
-
/* @__PURE__ */ React17.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
3234
|
-
));
|
3235
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */ React17.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ React17.createElement(
|
3236
|
-
"svg",
|
3237
|
-
{
|
3238
|
-
xmlns: "http://www.w3.org/2000/svg",
|
3239
|
-
viewBox: "0 0 24 24",
|
3240
|
-
fill: "none",
|
3241
|
-
stroke: "currentColor",
|
3242
|
-
strokeWidth: "2",
|
3243
|
-
strokeLinecap: "round",
|
3244
|
-
strokeLinejoin: "round"
|
3245
|
-
},
|
3246
|
-
/* @__PURE__ */ React17.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
3247
|
-
/* @__PURE__ */ React17.createElement("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
|
3248
|
-
/* @__PURE__ */ React17.createElement("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
|
3249
|
-
/* @__PURE__ */ React17.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
3250
|
-
));
|
3251
|
-
|
3252
|
-
// icons/CommonIcons.tsx
|
3253
|
-
import React18 from "react";
|
3254
|
-
var CheckMark = ({ size = "default", className }) => {
|
3255
|
-
let sizeStyles = {
|
3256
|
-
default: "hawa-h-5 hawa-w-5",
|
3257
|
-
sm: "hawa-h-3 hawa-w-3"
|
3258
|
-
};
|
3259
|
-
return /* @__PURE__ */ React18.createElement(
|
3260
|
-
"svg",
|
3261
|
-
{
|
3262
|
-
className: cn(sizeStyles[size], className),
|
3263
|
-
"aria-hidden": "true",
|
3264
|
-
fill: "currentColor",
|
3265
|
-
viewBox: "0 0 20 20"
|
3266
|
-
},
|
3267
|
-
/* @__PURE__ */ React18.createElement(
|
3268
|
-
"path",
|
3269
|
-
{
|
3270
|
-
fillRule: "evenodd",
|
3271
|
-
d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
|
3272
|
-
clipRule: "evenodd"
|
3273
|
-
}
|
3274
|
-
)
|
3275
|
-
);
|
3276
|
-
};
|
3277
|
-
var UncheckMark = ({ size = "default", className }) => {
|
3278
|
-
let sizeStyles = {
|
3279
|
-
default: "hawa-h-5 hawa-w-5",
|
3280
|
-
sm: "hawa-h-3 hawa-w-3"
|
3281
|
-
};
|
3282
|
-
return /* @__PURE__ */ React18.createElement(
|
3283
|
-
"svg",
|
3284
|
-
{
|
3285
|
-
className: cn(sizeStyles[size], className),
|
3286
|
-
"aria-hidden": "true",
|
3287
|
-
fill: "currentColor",
|
3288
|
-
viewBox: "0 0 20 20"
|
3289
|
-
},
|
3290
|
-
/* @__PURE__ */ React18.createElement(
|
3291
|
-
"path",
|
3292
|
-
{
|
3293
|
-
fillRule: "evenodd",
|
3294
|
-
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
3295
|
-
clipRule: "evenodd"
|
3296
|
-
}
|
3297
|
-
)
|
3298
|
-
);
|
3299
|
-
};
|
3300
|
-
|
3301
3126
|
export {
|
3302
3127
|
Alert,
|
3303
3128
|
Input,
|
3304
3129
|
Select,
|
3305
3130
|
PhoneInput,
|
3306
|
-
VeryGoodEmoji,
|
3307
|
-
GoodEmoji,
|
3308
|
-
BadEmoji,
|
3309
|
-
VeryBadEmoji,
|
3310
|
-
EyeIcon,
|
3311
|
-
HiddenEyeIcon,
|
3312
|
-
CheckMark,
|
3313
|
-
UncheckMark,
|
3314
3131
|
Checkbox,
|
3315
3132
|
StopPropagationWrapper,
|
3316
3133
|
PinInput,
|