@sikka/hawa 0.31.10-next → 0.31.12-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.
@@ -24,10 +24,10 @@ import {
24
24
  } from "../../chunk-PA3Z7W32.mjs";
25
25
 
26
26
  // blocks/misc/LegalTexts.tsx
27
- import React11 from "react";
27
+ import React12 from "react";
28
28
 
29
29
  // elements/tabs/Tabs.tsx
30
- import * as React10 from "react";
30
+ import * as React11 from "react";
31
31
 
32
32
  // hooks/useIsomorphicEffect.ts
33
33
  import { useEffect, useLayoutEffect } from "react";
@@ -110,12 +110,15 @@ var useMeasureDirty = (ref) => {
110
110
  return rect;
111
111
  };
112
112
 
113
+ // hooks/useOutsideClick.ts
114
+ import React9 from "react";
115
+
113
116
  // elements/tabs/Tabs.tsx
114
117
  import * as TabsPrimitive from "@radix-ui/react-tabs";
115
118
  import { tv } from "tailwind-variants";
116
119
 
117
120
  // elements/floatBox/FloatBox.tsx
118
- import * as React9 from "react";
121
+ import * as React10 from "react";
119
122
  var FloatBox = ({
120
123
  className,
121
124
  open,
@@ -153,7 +156,7 @@ var FloatBox = ({
153
156
  right: "hawa-arrow-default-left",
154
157
  left: "hawa-arrow-default-right"
155
158
  };
156
- return /* @__PURE__ */ React9.createElement(
159
+ return /* @__PURE__ */ React10.createElement(
157
160
  "div",
158
161
  {
159
162
  className: cn(
@@ -164,8 +167,8 @@ var FloatBox = ({
164
167
  "data-side": side,
165
168
  "data-floatbox-state": open ? "open" : "closed"
166
169
  },
167
- withArrow && /* @__PURE__ */ React9.createElement("div", { className: cn(arrowDirection[side]) }),
168
- /* @__PURE__ */ React9.createElement("span", null, props.children)
170
+ withArrow && /* @__PURE__ */ React10.createElement("div", { className: cn(arrowDirection[side]) }),
171
+ /* @__PURE__ */ React10.createElement("span", null, props.children)
169
172
  );
170
173
  };
171
174
 
@@ -228,8 +231,8 @@ var tabsTriggerVariant = tv({
228
231
  ],
229
232
  defaultVariants: { variant: "default", orientation: "horizontal" }
230
233
  });
231
- var TabsContext = React10.createContext({ orientation: "horizontal", variant: "default" });
232
- var Tabs = React10.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React10.createElement(
234
+ var TabsContext = React11.createContext({ orientation: "horizontal", variant: "default" });
235
+ var Tabs = React11.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React11.createElement(
233
236
  TabsPrimitive.Root,
234
237
  {
235
238
  ref,
@@ -240,11 +243,11 @@ var Tabs = React10.forwardRef(({ className, orientation, variant = "default", ..
240
243
  ),
241
244
  ...props
242
245
  },
243
- /* @__PURE__ */ React10.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
246
+ /* @__PURE__ */ React11.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
244
247
  ));
245
- var TabsList = React10.forwardRef(({ className, ...props }, ref) => {
246
- const { orientation, variant } = React10.useContext(TabsContext);
247
- return /* @__PURE__ */ React10.createElement(
248
+ var TabsList = React11.forwardRef(({ className, ...props }, ref) => {
249
+ const { orientation, variant } = React11.useContext(TabsContext);
250
+ return /* @__PURE__ */ React11.createElement(
248
251
  TabsPrimitive.List,
249
252
  {
250
253
  ref,
@@ -257,11 +260,11 @@ var TabsList = React10.forwardRef(({ className, ...props }, ref) => {
257
260
  }
258
261
  );
259
262
  });
260
- var TabsTrigger = React10.forwardRef(({ className, chipProps, ...props }, ref) => {
261
- const { orientation, variant } = React10.useContext(TabsContext);
262
- const tabTriggerRef = React10.useRef(null);
263
+ var TabsTrigger = React11.forwardRef(({ className, chipProps, ...props }, ref) => {
264
+ const { orientation, variant } = React11.useContext(TabsContext);
265
+ const tabTriggerRef = React11.useRef(null);
263
266
  const { width } = useMeasureDirty(tabTriggerRef);
264
- return /* @__PURE__ */ React10.createElement(
267
+ return /* @__PURE__ */ React11.createElement(
265
268
  TabsPrimitive.Trigger,
266
269
  {
267
270
  ref: tabTriggerRef,
@@ -273,8 +276,8 @@ var TabsTrigger = React10.forwardRef(({ className, chipProps, ...props }, ref) =
273
276
  ...props
274
277
  },
275
278
  props.children,
276
- chipProps && /* @__PURE__ */ React10.createElement(Chip, { ...chipProps }),
277
- /* @__PURE__ */ React10.createElement(
279
+ chipProps && /* @__PURE__ */ React11.createElement(Chip, { ...chipProps }),
280
+ /* @__PURE__ */ React11.createElement(
278
281
  FloatBox,
279
282
  {
280
283
  withArrow: true,
@@ -287,7 +290,7 @@ var TabsTrigger = React10.forwardRef(({ className, chipProps, ...props }, ref) =
287
290
  )
288
291
  );
289
292
  });
290
- var TabsContent = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(
293
+ var TabsContent = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11.createElement(
291
294
  TabsPrimitive.Content,
292
295
  {
293
296
  ref,
@@ -305,7 +308,7 @@ TabsContent.displayName = TabsPrimitive.Content.displayName;
305
308
 
306
309
  // blocks/misc/LegalTexts.tsx
307
310
  var LegalTexts = ({ tabs, ...props }) => {
308
- return /* @__PURE__ */ React11.createElement(
311
+ return /* @__PURE__ */ React12.createElement(
309
312
  Tabs,
310
313
  {
311
314
  value: props.activeTab,
@@ -313,8 +316,8 @@ var LegalTexts = ({ tabs, ...props }) => {
313
316
  defaultValue: props.defaultTab || tabs[0].value,
314
317
  dir: props.direction
315
318
  },
316
- /* @__PURE__ */ React11.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ React11.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
317
- tabs.map((tab, index) => /* @__PURE__ */ React11.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ React11.createElement(
319
+ /* @__PURE__ */ React12.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ React12.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
320
+ tabs.map((tab, index) => /* @__PURE__ */ React12.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ React12.createElement(
318
321
  ScrollArea,
319
322
  {
320
323
  className: cn(
@@ -328,9 +331,9 @@ var LegalTexts = ({ tabs, ...props }) => {
328
331
  };
329
332
 
330
333
  // blocks/misc/EmptyState.tsx
331
- import React12 from "react";
334
+ import React13 from "react";
332
335
  var EmptyState = ({ texts, onActionClick }) => {
333
- 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(
336
+ return /* @__PURE__ */ React13.createElement(Card, null, /* @__PURE__ */ React13.createElement(CardContent, { headless: true }, /* @__PURE__ */ React13.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center " }, /* @__PURE__ */ React13.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__ */ React13.createElement(
334
337
  "svg",
335
338
  {
336
339
  stroke: "currentColor",
@@ -340,30 +343,30 @@ var EmptyState = ({ texts, onActionClick }) => {
340
343
  height: "0.35em",
341
344
  width: "0.35em"
342
345
  },
343
- /* @__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" })
344
- )), /* @__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")));
346
+ /* @__PURE__ */ React13.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__ */ React13.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.youreCaughtUp) || "You're all caught up"))), /* @__PURE__ */ React13.createElement(CardFooter, null, /* @__PURE__ */ React13.createElement(Button, { className: "hawa-w-full", onClick: () => onActionClick() }, (texts == null ? void 0 : texts.actionText) || "Go Home")));
345
348
  };
346
349
 
347
350
  // blocks/misc/Testimonial.tsx
348
- import React13 from "react";
351
+ import React14 from "react";
349
352
  var Testimonial = () => {
350
- 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(
353
+ return /* @__PURE__ */ React14.createElement(Card, null, /* @__PURE__ */ React14.createElement(CardContent, { headless: true }, /* @__PURE__ */ React14.createElement("div", null, /* @__PURE__ */ React14.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__ */ React14.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ React14.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ React14.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ React14.createElement(
351
354
  "path",
352
355
  {
353
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",
354
357
  fill: "#FFFFFF"
355
358
  }
356
- ), /* @__PURE__ */ React13.createElement(
359
+ ), /* @__PURE__ */ React14.createElement(
357
360
  "path",
358
361
  {
359
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",
360
363
  fill: "#FFFFFF"
361
364
  }
362
- )), /* @__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")))));
365
+ )), /* @__PURE__ */ React14.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ React14.createElement("div", null, /* @__PURE__ */ React14.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ React14.createElement("div", null, " Chief Information Security Officer")))));
363
366
  };
364
367
 
365
368
  // blocks/misc/LeadGenerator.tsx
366
- import React14 from "react";
369
+ import React15 from "react";
367
370
  import { useForm, Controller } from "react-hook-form";
368
371
  var LeadGenerator = ({ texts, submitHandler }) => {
369
372
  var _a;
@@ -375,14 +378,14 @@ var LeadGenerator = ({ texts, submitHandler }) => {
375
378
  console.log("handleNewsletterSub props was not provided");
376
379
  }
377
380
  };
378
- 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(
381
+ return /* @__PURE__ */ React15.createElement(Card, null, /* @__PURE__ */ React15.createElement(CardHeader, null, /* @__PURE__ */ React15.createElement(CardTitle, null, texts == null ? void 0 : texts.title), /* @__PURE__ */ React15.createElement(CardDescription, null, texts == null ? void 0 : texts.subtitle)), /* @__PURE__ */ React15.createElement(CardContent, null, /* @__PURE__ */ React15.createElement(
379
382
  "form",
380
383
  {
381
384
  noValidate: true,
382
385
  className: "hawa-flex hawa-flex-row hawa-gap-2",
383
386
  onSubmit: handleSubmit(onSubmit)
384
387
  },
385
- /* @__PURE__ */ React14.createElement(
388
+ /* @__PURE__ */ React15.createElement(
386
389
  Controller,
387
390
  {
388
391
  name: "email",
@@ -395,27 +398,27 @@ var LeadGenerator = ({ texts, submitHandler }) => {
395
398
  }
396
399
  },
397
400
  defaultValue: "",
398
- render: ({ field }) => /* @__PURE__ */ React14.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
401
+ render: ({ field }) => /* @__PURE__ */ React15.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
399
402
  }
400
403
  ),
401
- /* @__PURE__ */ React14.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
404
+ /* @__PURE__ */ React15.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
402
405
  )));
403
406
  };
404
407
 
405
408
  // blocks/misc/Announcement.tsx
406
- import React15 from "react";
409
+ import React16 from "react";
407
410
  var Announcement = ({
408
411
  onActionClick,
409
412
  ...props
410
413
  }) => {
411
- return /* @__PURE__ */ React15.createElement(Card, null, /* @__PURE__ */ React15.createElement(
414
+ return /* @__PURE__ */ React16.createElement(Card, null, /* @__PURE__ */ React16.createElement(
412
415
  CardContent,
413
416
  {
414
417
  headless: true,
415
418
  className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
416
419
  },
417
- /* @__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)),
418
- /* @__PURE__ */ React15.createElement(
420
+ /* @__PURE__ */ React16.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center " }, /* @__PURE__ */ React16.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ React16.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
421
+ /* @__PURE__ */ React16.createElement(
419
422
  Button,
420
423
  {
421
424
  onClick: () => onActionClick(),
@@ -427,15 +430,15 @@ var Announcement = ({
427
430
  };
428
431
 
429
432
  // blocks/misc/NotFound.tsx
430
- import React16 from "react";
433
+ import React17 from "react";
431
434
  var NotFound = ({ texts }) => {
432
- 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"))));
435
+ 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 dark:hawa-text-white" }, /* @__PURE__ */ React17.createElement("div", { className: "hawa-text-center hawa-text-6xl hawa-font-bold " }, "404"), /* @__PURE__ */ React17.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__ */ React17.createElement("div", { className: "hawa-mb-4 hawa-text-center" }, (texts == null ? void 0 : texts.ifLost) || /* @__PURE__ */ React17.createElement(React17.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ React17.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ React17.createElement(Button, { className: "hawa-w-full" }, (texts == null ? void 0 : texts.home) || "Home"))));
433
436
  };
434
437
 
435
438
  // blocks/misc/NoPermission.tsx
436
- import React17 from "react";
439
+ import React18 from "react";
437
440
  var NoPermission = ({ texts }) => {
438
- 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(
441
+ return /* @__PURE__ */ React18.createElement(Card, null, /* @__PURE__ */ React18.createElement(CardContent, { headless: true }, /* @__PURE__ */ React18.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ React18.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__ */ React18.createElement(
439
442
  "svg",
440
443
  {
441
444
  stroke: "currentColor",
@@ -445,12 +448,12 @@ var NoPermission = ({ texts }) => {
445
448
  height: "0.35em",
446
449
  width: "0.35em"
447
450
  },
448
- /* @__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" })
449
- )), /* @__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"))));
451
+ /* @__PURE__ */ React18.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__ */ React18.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.title) || "You don't have permission"), /* @__PURE__ */ React18.createElement("div", null, (texts == null ? void 0 : texts.subtitle) || "If you think this is a problem please contact your administrator or our customer support"))));
450
453
  };
451
454
 
452
455
  // blocks/misc/ContactForm.tsx
453
- import React18 from "react";
456
+ import React19 from "react";
454
457
  import { useForm as useForm2, Controller as Controller2 } from "react-hook-form";
455
458
  import { zodResolver } from "@hookform/resolvers/zod";
456
459
  import * as z from "zod";
@@ -522,7 +525,7 @@ var ContactForm = ({
522
525
  console.log("Form is submitted but onSubmit prop is missing");
523
526
  }
524
527
  };
525
- return /* @__PURE__ */ React18.createElement(
528
+ return /* @__PURE__ */ React19.createElement(
526
529
  Card,
527
530
  {
528
531
  className: cn(
@@ -531,7 +534,7 @@ var ContactForm = ({
531
534
  ),
532
535
  style: cardless ? { boxShadow: "none" } : void 0
533
536
  },
534
- /* @__PURE__ */ React18.createElement(CardContent, { headless: true, className: cardless ? "!hawa-p-0" : "" }, /* @__PURE__ */ React18.createElement(
537
+ /* @__PURE__ */ React19.createElement(CardContent, { headless: true, className: cardless ? "!hawa-p-0" : "" }, /* @__PURE__ */ React19.createElement(
535
538
  "form",
536
539
  {
537
540
  noValidate: true,
@@ -540,7 +543,7 @@ var ContactForm = ({
540
543
  id: formId,
541
544
  autoComplete: formAutoComplete
542
545
  },
543
- /* @__PURE__ */ React18.createElement(
546
+ /* @__PURE__ */ React19.createElement(
544
547
  "div",
545
548
  {
546
549
  className: cn(
@@ -551,14 +554,14 @@ var ContactForm = ({
551
554
  }
552
555
  )
553
556
  },
554
- /* @__PURE__ */ React18.createElement(
557
+ /* @__PURE__ */ React19.createElement(
555
558
  Controller2,
556
559
  {
557
560
  control,
558
561
  name: "name",
559
562
  render: ({ field }) => {
560
563
  var _a2;
561
- return /* @__PURE__ */ React18.createElement(
564
+ return /* @__PURE__ */ React19.createElement(
562
565
  Input,
563
566
  {
564
567
  label: (texts == null ? void 0 : texts.name.label) || "Name",
@@ -571,14 +574,14 @@ var ContactForm = ({
571
574
  }
572
575
  }
573
576
  ),
574
- /* @__PURE__ */ React18.createElement(
577
+ /* @__PURE__ */ React19.createElement(
575
578
  Controller2,
576
579
  {
577
580
  control,
578
581
  name: "email",
579
582
  render: ({ field }) => {
580
583
  var _a2;
581
- return /* @__PURE__ */ React18.createElement(
584
+ return /* @__PURE__ */ React19.createElement(
582
585
  Input,
583
586
  {
584
587
  label: (texts == null ? void 0 : texts.email.label) || "Email",
@@ -594,7 +597,7 @@ var ContactForm = ({
594
597
  ),
595
598
  customFields && customFields.map((customField) => {
596
599
  console.log("custom", customField);
597
- return /* @__PURE__ */ React18.createElement(
600
+ return /* @__PURE__ */ React19.createElement(
598
601
  Controller2,
599
602
  {
600
603
  control,
@@ -604,7 +607,7 @@ var ContactForm = ({
604
607
  switch (type) {
605
608
  case "text":
606
609
  case "number":
607
- return /* @__PURE__ */ React18.createElement(
610
+ return /* @__PURE__ */ React19.createElement(
608
611
  Input,
609
612
  {
610
613
  id: customField.name,
@@ -615,7 +618,7 @@ var ContactForm = ({
615
618
  }
616
619
  );
617
620
  case "select":
618
- return /* @__PURE__ */ React18.createElement(
621
+ return /* @__PURE__ */ React19.createElement(
619
622
  Select,
620
623
  {
621
624
  label,
@@ -625,20 +628,20 @@ var ContactForm = ({
625
628
  }
626
629
  );
627
630
  default:
628
- return /* @__PURE__ */ React18.createElement("div", null, "Unknown type");
631
+ return /* @__PURE__ */ React19.createElement("div", null, "Unknown type");
629
632
  }
630
633
  }
631
634
  }
632
635
  );
633
636
  }),
634
- /* @__PURE__ */ React18.createElement(
637
+ /* @__PURE__ */ React19.createElement(
635
638
  Controller2,
636
639
  {
637
640
  control,
638
641
  name: "message",
639
642
  render: ({ field }) => {
640
643
  var _a2;
641
- return /* @__PURE__ */ React18.createElement(
644
+ return /* @__PURE__ */ React19.createElement(
642
645
  Textarea,
643
646
  {
644
647
  label: (texts == null ? void 0 : texts.message.label) || "Message",
@@ -655,7 +658,7 @@ var ContactForm = ({
655
658
  }
656
659
  }
657
660
  ),
658
- /* @__PURE__ */ React18.createElement(Button, { type: "submit", className: "hawa-w-full" }, (texts == null ? void 0 : texts.submit) || "Submit")
661
+ /* @__PURE__ */ React19.createElement(Button, { type: "submit", className: "hawa-w-full" }, (texts == null ? void 0 : texts.submit) || "Submit")
659
662
  ))
660
663
  );
661
664
  };
@@ -26,7 +26,27 @@ var useBreakpoint = () => {
26
26
  return breakpoint;
27
27
  };
28
28
 
29
+ // hooks/useOutsideClick.ts
30
+ import React2 from "react";
31
+ var useOutsideClick = (callback) => {
32
+ const ref = React2.useRef(null);
33
+ React2.useEffect(() => {
34
+ const handleClick = (event) => {
35
+ if (ref.current && !ref.current.contains(event.target)) {
36
+ callback();
37
+ }
38
+ };
39
+ document.addEventListener("click", handleClick, true);
40
+ return () => {
41
+ document.removeEventListener("click", handleClick, true);
42
+ };
43
+ }, [ref]);
44
+ return ref;
45
+ };
46
+ var useOutsideClick_default = useOutsideClick;
47
+
29
48
  export {
30
49
  __require,
31
- useBreakpoint
50
+ useBreakpoint,
51
+ useOutsideClick_default
32
52
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useMeasureDirty
4
- } from "./chunk-R2SKHHDK.mjs";
4
+ } from "./chunk-OPYDG34F.mjs";
5
5
  import {
6
6
  Button,
7
7
  Chip,