@sikka/hawa 0.30.25-next → 0.30.27-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.
Files changed (86) hide show
  1. package/dist/blocks/index.js +345 -211
  2. package/dist/blocks/index.mjs +3 -2
  3. package/dist/blocks/misc/index.js +289 -155
  4. package/dist/blocks/misc/index.mjs +212 -76
  5. package/dist/blocks/pricing/index.mjs +1 -1
  6. package/dist/chunk-R2SKHHDK.mjs +411 -0
  7. package/dist/{chunk-7LAUVLVZ.mjs → chunk-SW7UK35T.mjs} +123 -63
  8. package/dist/{chunk-H7ZADF2Z.mjs → chunk-UDCDD66A.mjs} +8 -0
  9. package/dist/combobox/index.js.map +1 -1
  10. package/dist/combobox/index.mjs.map +1 -1
  11. package/dist/commonTypes-LrR8QrYP.d.mts +5 -0
  12. package/dist/commonTypes-LrR8QrYP.d.ts +5 -0
  13. package/dist/commonTypes-MeUyaBib.d.mts +5 -0
  14. package/dist/commonTypes-MeUyaBib.d.ts +5 -0
  15. package/dist/elements/index.d.mts +5 -1
  16. package/dist/elements/index.d.ts +5 -1
  17. package/dist/elements/index.js +431 -294
  18. package/dist/elements/index.mjs +9 -5
  19. package/dist/floatBox/index.d.mts +14 -0
  20. package/dist/floatBox/index.d.ts +14 -0
  21. package/dist/floatBox/index.js +97 -0
  22. package/dist/floatBox/index.js.map +1 -0
  23. package/dist/floatBox/index.mjs +61 -0
  24. package/dist/floatBox/index.mjs.map +1 -0
  25. package/dist/hooks/index.d.mts +12 -2
  26. package/dist/hooks/index.d.ts +12 -2
  27. package/dist/hooks/index.js +36 -0
  28. package/dist/hooks/index.mjs +16 -340
  29. package/dist/index.css +101 -56
  30. package/dist/index.d.mts +15 -1
  31. package/dist/index.d.ts +15 -1
  32. package/dist/index.js +7860 -7765
  33. package/dist/index.mjs +1529 -1437
  34. package/dist/input/index.d.mts +2 -1
  35. package/dist/input/index.d.ts +2 -1
  36. package/dist/label/index.d.mts +1 -2
  37. package/dist/label/index.d.ts +1 -2
  38. package/dist/layout/index.mjs +3 -4
  39. package/dist/passwordInput/index.js.map +1 -1
  40. package/dist/passwordInput/index.mjs.map +1 -1
  41. package/dist/phoneInput/index.d.mts +2 -1
  42. package/dist/phoneInput/index.d.ts +2 -1
  43. package/dist/popover/index.d.mts +3 -1
  44. package/dist/popover/index.d.ts +3 -1
  45. package/dist/popover/index.js +6 -0
  46. package/dist/popover/index.js.map +1 -1
  47. package/dist/popover/index.mjs +4 -0
  48. package/dist/popover/index.mjs.map +1 -1
  49. package/dist/progress/index.d.mts +8 -1
  50. package/dist/progress/index.d.ts +8 -1
  51. package/dist/radio/index.d.mts +9 -1
  52. package/dist/radio/index.d.ts +9 -1
  53. package/dist/scrollArea/index.d.mts +1 -1
  54. package/dist/scrollArea/index.d.ts +1 -1
  55. package/dist/separator/index.d.mts +1 -1
  56. package/dist/separator/index.d.ts +1 -1
  57. package/dist/signature/index.d.mts +1 -2
  58. package/dist/signature/index.d.ts +1 -2
  59. package/dist/simpleTable/index.d.mts +1 -1
  60. package/dist/simpleTable/index.d.ts +1 -1
  61. package/dist/switch/index.d.mts +2 -1
  62. package/dist/switch/index.d.ts +2 -1
  63. package/dist/tabs/index.d.mts +3 -1
  64. package/dist/tabs/index.d.ts +3 -1
  65. package/dist/tabs/index.js +172 -38
  66. package/dist/tabs/index.js.map +1 -1
  67. package/dist/tabs/index.mjs +172 -38
  68. package/dist/tabs/index.mjs.map +1 -1
  69. package/dist/textarea/index.d.mts +1 -1
  70. package/dist/textarea/index.d.ts +1 -1
  71. package/dist/toast/index.d.mts +1 -1
  72. package/dist/toast/index.d.ts +1 -1
  73. package/dist/toaster/index.d.mts +22 -4
  74. package/dist/toaster/index.d.ts +22 -4
  75. package/dist/tooltip/index.d.mts +3 -4
  76. package/dist/tooltip/index.d.ts +3 -4
  77. package/package.json +8 -8
  78. package/dist/Label-9FHRF7Ex.d.mts +0 -14
  79. package/dist/Label-9FHRF7Ex.d.ts +0 -14
  80. package/dist/chunk-4OOSUQZG.mjs +0 -12
  81. package/dist/chunk-57SB6MBG.mjs +0 -31
  82. package/dist/commonTypes-3k5cNB1s.d.mts +0 -4
  83. package/dist/commonTypes-3k5cNB1s.d.ts +0 -4
  84. package/dist/commonTypes-PBumfOBg.d.mts +0 -3
  85. package/dist/commonTypes-PBumfOBg.d.ts +0 -3
  86. /package/dist/{chunk-CVOMHXJK.mjs → chunk-BXGDHNAY.mjs} +0 -0
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  Chip,
7
7
  ScrollArea
8
- } from "../../chunk-CVOMHXJK.mjs";
8
+ } from "../../chunk-BXGDHNAY.mjs";
9
9
  import {
10
10
  Textarea
11
11
  } from "../../chunk-AEFNDLFD.mjs";
@@ -24,12 +24,144 @@ import {
24
24
  } from "../../chunk-ZGNBKYX7.mjs";
25
25
 
26
26
  // blocks/misc/LegalTexts.tsx
27
- import React2 from "react";
27
+ import React11 from "react";
28
+
29
+ // elements/tabs/Tabs.tsx
30
+ import * as React10 from "react";
31
+
32
+ // hooks/useIsomorphicEffect.ts
33
+ import { useEffect, useLayoutEffect } from "react";
34
+
35
+ // hooks/useDiscloser.ts
36
+ import { useState } from "react";
37
+
38
+ // hooks/useHover.ts
39
+ import { useEffect as useEffect2, useRef, useState as useState2 } from "react";
40
+
41
+ // hooks/useToast.ts
42
+ import * as React3 from "react";
43
+
44
+ // hooks/useCarousel.ts
45
+ import { useState as useState4, useRef as useRef2 } from "react";
46
+
47
+ // hooks/useDialogCarousel.ts
48
+ import { useEffect as useEffect4, useState as useState5 } from "react";
49
+ import AutoHeight from "embla-carousel-auto-height";
50
+ import useEmblaCarousel from "embla-carousel-react";
51
+
52
+ // hooks/useDialogSteps.ts
53
+ import { useState as useState6, useEffect as useEffect5, useRef as useRef3 } from "react";
54
+
55
+ // hooks/useClipboard.ts
56
+ import { useState as useState7 } from "react";
57
+
58
+ // hooks/useBreakpoint.ts
59
+ import { useState as useState8, useEffect as useEffect6 } from "react";
60
+
61
+ // hooks/useWindowSize.ts
62
+ import { useEffect as useEffect7, useState as useState9 } from "react";
63
+
64
+ // hooks/useFocusWithin.ts
65
+ import { useRef as useRef4, useState as useState10, useEffect as useEffect8 } from "react";
66
+
67
+ // hooks/useMediaQuery.ts
68
+ import { useState as useState11, useEffect as useEffect9, useRef as useRef5 } from "react";
69
+
70
+ // hooks/useScrollPosition.ts
71
+ import { useState as useState12, useEffect as useEffect10 } from "react";
72
+
73
+ // hooks/useTable.ts
74
+ import { useState as useState13, useEffect as useEffect11 } from "react";
75
+
76
+ // hooks/useTabs.ts
77
+ import { useEffect as useEffect12, useState as useState14 } from "react";
78
+
79
+ // hooks/useMeasureDirty.ts
80
+ import { useEffect as useEffect13, useRef as useRef7, useState as useState15 } from "react";
81
+ var useMeasureDirty = (ref) => {
82
+ const frame = useRef7(0);
83
+ const [rect, set] = useState15({
84
+ width: 0,
85
+ height: 0,
86
+ top: 0,
87
+ left: 0,
88
+ bottom: 0,
89
+ right: 0
90
+ });
91
+ const [observer] = useState15(
92
+ () => new ResizeObserver((entries) => {
93
+ const entry = entries[0];
94
+ if (entry) {
95
+ cancelAnimationFrame(frame.current);
96
+ frame.current = requestAnimationFrame(() => {
97
+ if (ref.current) {
98
+ set(entry.contentRect);
99
+ }
100
+ });
101
+ }
102
+ })
103
+ );
104
+ useEffect13(() => {
105
+ observer.disconnect();
106
+ if (ref.current) {
107
+ observer.observe(ref.current);
108
+ }
109
+ }, [ref]);
110
+ return rect;
111
+ };
28
112
 
29
113
  // elements/tabs/Tabs.tsx
30
- import * as React from "react";
31
114
  import * as TabsPrimitive from "@radix-ui/react-tabs";
32
115
  import { tv } from "tailwind-variants";
116
+
117
+ // elements/floatBox/FloatBox.tsx
118
+ import * as React9 from "react";
119
+ var FloatBox = ({
120
+ className,
121
+ open,
122
+ side = "bottom",
123
+ sideOffset = 40,
124
+ align = "center",
125
+ ...props
126
+ }) => {
127
+ let stylesMap = {
128
+ bottom: {
129
+ start: { top: sideOffset, insetInlineStart: 0 },
130
+ center: { top: sideOffset },
131
+ end: { top: sideOffset, insetInlineEnd: 0 }
132
+ },
133
+ top: {
134
+ start: { bottom: sideOffset, insetInlineStart: 0 },
135
+ center: { bottom: sideOffset },
136
+ end: { bottom: sideOffset, insetInlineEnd: 0 }
137
+ },
138
+ right: {
139
+ start: { left: sideOffset, top: -5 },
140
+ center: { left: sideOffset },
141
+ end: { left: sideOffset, bottom: 0 }
142
+ },
143
+ left: {
144
+ start: { right: sideOffset, top: 0 },
145
+ center: { right: sideOffset },
146
+ end: { right: sideOffset, bottom: 0 }
147
+ }
148
+ };
149
+ return /* @__PURE__ */ React9.createElement(
150
+ "div",
151
+ {
152
+ className: cn(
153
+ "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-bg-popover 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",
154
+ className
155
+ ),
156
+ style: { ...stylesMap[side][align] },
157
+ "data-side": side,
158
+ "data-floatbox-state": open ? "open" : "closed"
159
+ },
160
+ props.children
161
+ );
162
+ };
163
+
164
+ // elements/tabs/Tabs.tsx
33
165
  var tabsListVariant = tv({
34
166
  base: "",
35
167
  variants: {
@@ -38,10 +170,7 @@ var tabsListVariant = tv({
38
170
  underlined: "hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10",
39
171
  underlined_tabs: "hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-text-muted-foreground"
40
172
  },
41
- orientation: {
42
- horizontal: "",
43
- vertical: ""
44
- }
173
+ orientation: { horizontal: "", vertical: "" }
45
174
  },
46
175
  compoundVariants: [
47
176
  {
@@ -55,10 +184,7 @@ var tabsListVariant = tv({
55
184
  class: "hawa-border-b-2 hawa-border-b-primary"
56
185
  }
57
186
  ],
58
- defaultVariants: {
59
- variant: "default",
60
- orientation: "horizontal"
61
- }
187
+ defaultVariants: { variant: "default", orientation: "horizontal" }
62
188
  });
63
189
  var tabsTriggerVariant = tv({
64
190
  base: "",
@@ -68,10 +194,7 @@ var tabsTriggerVariant = tv({
68
194
  underlined: "hawa-inline-flex hawa-w-full hawa-flex-1 hawa-select-none hawa-items-center hawa-justify-center hawa-gap-2 hawa-whitespace-nowrap hawa-rounded hawa-rounded-none hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-all focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
69
195
  underlined_tabs: "hawa-inline-flex hawa-w-full hawa-flex-1 hawa-select-none hawa-items-center hawa-justify-center hawa-gap-2 hawa-whitespace-nowrap hawa-rounded hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-all focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50 hawa-bg-primary/10 data-[state=active]:hawa-bg-primary data-[state=active]:hawa-text-primary-foreground dark:hawa-border-primary/10"
70
196
  },
71
- orientation: {
72
- horizontal: "",
73
- vertical: ""
74
- }
197
+ orientation: { horizontal: "", vertical: "" }
75
198
  },
76
199
  compoundVariants: [
77
200
  {
@@ -95,13 +218,10 @@ var tabsTriggerVariant = tv({
95
218
  class: "hawa-rounded-e-none"
96
219
  }
97
220
  ],
98
- defaultVariants: {
99
- variant: "default",
100
- orientation: "horizontal"
101
- }
221
+ defaultVariants: { variant: "default", orientation: "horizontal" }
102
222
  });
103
- var TabsContext = React.createContext({ orientation: "horizontal", variant: "default" });
104
- var Tabs = React.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React.createElement(
223
+ var TabsContext = React10.createContext({ orientation: "horizontal", variant: "default" });
224
+ var Tabs = React10.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React10.createElement(
105
225
  TabsPrimitive.Root,
106
226
  {
107
227
  ref,
@@ -112,12 +232,11 @@ var Tabs = React.forwardRef(({ className, orientation, variant = "default", ...p
112
232
  ),
113
233
  ...props
114
234
  },
115
- /* @__PURE__ */ React.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
235
+ /* @__PURE__ */ React10.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
116
236
  ));
117
- Tabs.displayName = TabsPrimitive.Root.displayName;
118
- var TabsList = React.forwardRef(({ className, ...props }, ref) => {
119
- const { orientation, variant } = React.useContext(TabsContext);
120
- return /* @__PURE__ */ React.createElement(
237
+ var TabsList = React10.forwardRef(({ className, ...props }, ref) => {
238
+ const { orientation, variant } = React10.useContext(TabsContext);
239
+ return /* @__PURE__ */ React10.createElement(
121
240
  TabsPrimitive.List,
122
241
  {
123
242
  ref,
@@ -130,22 +249,36 @@ var TabsList = React.forwardRef(({ className, ...props }, ref) => {
130
249
  }
131
250
  );
132
251
  });
133
- TabsList.displayName = TabsPrimitive.List.displayName;
134
- var TabsTrigger = React.forwardRef(({ className, chipProps, ...props }, ref) => {
135
- const { orientation, variant } = React.useContext(TabsContext);
136
- return /* @__PURE__ */ React.createElement(
252
+ var TabsTrigger = React10.forwardRef(({ className, chipProps, ...props }, ref) => {
253
+ const { orientation, variant } = React10.useContext(TabsContext);
254
+ const tabTriggerRef = React10.useRef(null);
255
+ const { width } = useMeasureDirty(tabTriggerRef);
256
+ return /* @__PURE__ */ React10.createElement(
137
257
  TabsPrimitive.Trigger,
138
258
  {
139
- ref,
140
- className: cn(tabsTriggerVariant({ variant, orientation }), className),
259
+ ref: tabTriggerRef,
260
+ className: cn(
261
+ tabsTriggerVariant({ variant, orientation }),
262
+ "hawa-relative",
263
+ className
264
+ ),
141
265
  ...props
142
266
  },
143
267
  props.children,
144
- chipProps && /* @__PURE__ */ React.createElement(Chip, { ...chipProps })
268
+ chipProps && /* @__PURE__ */ React10.createElement(Chip, { ...chipProps }),
269
+ /* @__PURE__ */ React10.createElement(
270
+ FloatBox,
271
+ {
272
+ align: orientation === "vertical" ? "start" : "start",
273
+ side: orientation === "vertical" ? "right" : "bottom",
274
+ sideOffset: orientation === "vertical" ? width + 30 : 45,
275
+ open: props.showPopover
276
+ },
277
+ props.popoverContent
278
+ )
145
279
  );
146
280
  });
147
- TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
148
- var TabsContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
281
+ var TabsContent = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React10.createElement(
149
282
  TabsPrimitive.Content,
150
283
  {
151
284
  ref,
@@ -156,11 +289,14 @@ var TabsContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
156
289
  ...props
157
290
  }
158
291
  ));
292
+ Tabs.displayName = TabsPrimitive.Root.displayName;
293
+ TabsList.displayName = TabsPrimitive.List.displayName;
294
+ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
159
295
  TabsContent.displayName = TabsPrimitive.Content.displayName;
160
296
 
161
297
  // blocks/misc/LegalTexts.tsx
162
298
  var LegalTexts = ({ tabs, ...props }) => {
163
- return /* @__PURE__ */ React2.createElement(
299
+ return /* @__PURE__ */ React11.createElement(
164
300
  Tabs,
165
301
  {
166
302
  value: props.activeTab,
@@ -168,8 +304,8 @@ var LegalTexts = ({ tabs, ...props }) => {
168
304
  defaultValue: props.defaultTab || tabs[0].value,
169
305
  dir: props.direction
170
306
  },
171
- /* @__PURE__ */ React2.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ React2.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
172
- tabs.map((tab, index) => /* @__PURE__ */ React2.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ React2.createElement(
307
+ /* @__PURE__ */ React11.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ React11.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
308
+ tabs.map((tab, index) => /* @__PURE__ */ React11.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ React11.createElement(
173
309
  ScrollArea,
174
310
  {
175
311
  className: cn(
@@ -183,9 +319,9 @@ var LegalTexts = ({ tabs, ...props }) => {
183
319
  };
184
320
 
185
321
  // blocks/misc/EmptyState.tsx
186
- import React3 from "react";
322
+ import React12 from "react";
187
323
  var EmptyState = ({ texts, onActionClick }) => {
188
- return /* @__PURE__ */ React3.createElement(Card, null, /* @__PURE__ */ React3.createElement(CardContent, { headless: true }, /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center " }, /* @__PURE__ */ React3.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__ */ React3.createElement(
324
+ 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(
189
325
  "svg",
190
326
  {
191
327
  stroke: "currentColor",
@@ -195,30 +331,30 @@ var EmptyState = ({ texts, onActionClick }) => {
195
331
  height: "0.35em",
196
332
  width: "0.35em"
197
333
  },
198
- /* @__PURE__ */ React3.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" })
199
- )), /* @__PURE__ */ React3.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.youreCaughtUp) || "You're all caught up"))), /* @__PURE__ */ React3.createElement(CardFooter, null, /* @__PURE__ */ React3.createElement(Button, { className: "hawa-w-full", onClick: () => onActionClick() }, (texts == null ? void 0 : texts.actionText) || "Go Home")));
334
+ /* @__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" })
335
+ )), /* @__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")));
200
336
  };
201
337
 
202
338
  // blocks/misc/Testimonial.tsx
203
- import React4 from "react";
339
+ import React13 from "react";
204
340
  var Testimonial = () => {
205
- return /* @__PURE__ */ React4.createElement(Card, null, /* @__PURE__ */ React4.createElement(CardContent, { headless: true }, /* @__PURE__ */ React4.createElement("div", null, /* @__PURE__ */ React4.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__ */ React4.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ React4.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ React4.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ React4.createElement(
341
+ 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(
206
342
  "path",
207
343
  {
208
344
  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",
209
345
  fill: "#FFFFFF"
210
346
  }
211
- ), /* @__PURE__ */ React4.createElement(
347
+ ), /* @__PURE__ */ React13.createElement(
212
348
  "path",
213
349
  {
214
350
  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",
215
351
  fill: "#FFFFFF"
216
352
  }
217
- )), /* @__PURE__ */ React4.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ React4.createElement("div", null, /* @__PURE__ */ React4.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ React4.createElement("div", null, " Chief Information Security Officer")))));
353
+ )), /* @__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")))));
218
354
  };
219
355
 
220
356
  // blocks/misc/LeadGenerator.tsx
221
- import React5 from "react";
357
+ import React14 from "react";
222
358
  import { useForm, Controller } from "react-hook-form";
223
359
  var LeadGenerator = ({ texts, submitHandler }) => {
224
360
  var _a;
@@ -230,14 +366,14 @@ var LeadGenerator = ({ texts, submitHandler }) => {
230
366
  console.log("handleNewsletterSub props was not provided");
231
367
  }
232
368
  };
233
- return /* @__PURE__ */ React5.createElement(Card, null, /* @__PURE__ */ React5.createElement(CardHeader, null, /* @__PURE__ */ React5.createElement(CardTitle, null, texts == null ? void 0 : texts.title), /* @__PURE__ */ React5.createElement(CardDescription, null, texts == null ? void 0 : texts.subtitle)), /* @__PURE__ */ React5.createElement(CardContent, null, /* @__PURE__ */ React5.createElement(
369
+ 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(
234
370
  "form",
235
371
  {
236
372
  noValidate: true,
237
373
  className: "hawa-flex hawa-flex-row hawa-gap-2",
238
374
  onSubmit: handleSubmit(onSubmit)
239
375
  },
240
- /* @__PURE__ */ React5.createElement(
376
+ /* @__PURE__ */ React14.createElement(
241
377
  Controller,
242
378
  {
243
379
  name: "email",
@@ -250,27 +386,27 @@ var LeadGenerator = ({ texts, submitHandler }) => {
250
386
  }
251
387
  },
252
388
  defaultValue: "",
253
- render: ({ field }) => /* @__PURE__ */ React5.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
389
+ render: ({ field }) => /* @__PURE__ */ React14.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
254
390
  }
255
391
  ),
256
- /* @__PURE__ */ React5.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
392
+ /* @__PURE__ */ React14.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
257
393
  )));
258
394
  };
259
395
 
260
396
  // blocks/misc/Announcement.tsx
261
- import React6 from "react";
397
+ import React15 from "react";
262
398
  var Announcement = ({
263
399
  onActionClick,
264
400
  ...props
265
401
  }) => {
266
- return /* @__PURE__ */ React6.createElement(Card, null, /* @__PURE__ */ React6.createElement(
402
+ return /* @__PURE__ */ React15.createElement(Card, null, /* @__PURE__ */ React15.createElement(
267
403
  CardContent,
268
404
  {
269
405
  headless: true,
270
406
  className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
271
407
  },
272
- /* @__PURE__ */ React6.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center " }, /* @__PURE__ */ React6.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ React6.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
273
- /* @__PURE__ */ React6.createElement(
408
+ /* @__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)),
409
+ /* @__PURE__ */ React15.createElement(
274
410
  Button,
275
411
  {
276
412
  onClick: () => onActionClick(),
@@ -282,15 +418,15 @@ var Announcement = ({
282
418
  };
283
419
 
284
420
  // blocks/misc/NotFound.tsx
285
- import React7 from "react";
421
+ import React16 from "react";
286
422
  var NotFound = ({ texts }) => {
287
- return /* @__PURE__ */ React7.createElement(Card, null, /* @__PURE__ */ React7.createElement(CardContent, { headless: true }, /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white" }, /* @__PURE__ */ React7.createElement("div", { className: "hawa-text-center hawa-text-6xl hawa-font-bold " }, "404"), /* @__PURE__ */ React7.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__ */ React7.createElement("div", { className: "hawa-mb-4 hawa-text-center" }, (texts == null ? void 0 : texts.ifLost) || /* @__PURE__ */ React7.createElement(React7.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ React7.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ React7.createElement(Button, { className: "hawa-w-full" }, (texts == null ? void 0 : texts.home) || "Home"))));
423
+ 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"))));
288
424
  };
289
425
 
290
426
  // blocks/misc/NoPermission.tsx
291
- import React8 from "react";
427
+ import React17 from "react";
292
428
  var NoPermission = ({ texts }) => {
293
- return /* @__PURE__ */ React8.createElement(Card, null, /* @__PURE__ */ React8.createElement(CardContent, { headless: true }, /* @__PURE__ */ React8.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ React8.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__ */ React8.createElement(
429
+ 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(
294
430
  "svg",
295
431
  {
296
432
  stroke: "currentColor",
@@ -300,12 +436,12 @@ var NoPermission = ({ texts }) => {
300
436
  height: "0.35em",
301
437
  width: "0.35em"
302
438
  },
303
- /* @__PURE__ */ React8.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" })
304
- )), /* @__PURE__ */ React8.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.title) || "You don't have permission"), /* @__PURE__ */ React8.createElement("div", null, (texts == null ? void 0 : texts.subtitle) || "If you think this is a problem please contact your administrator or our customer support"))));
439
+ /* @__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" })
440
+ )), /* @__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"))));
305
441
  };
306
442
 
307
443
  // blocks/misc/ContactForm.tsx
308
- import React9 from "react";
444
+ import React18 from "react";
309
445
  import { useForm as useForm2, Controller as Controller2 } from "react-hook-form";
310
446
  import { zodResolver } from "@hookform/resolvers/zod";
311
447
  import * as z from "zod";
@@ -377,7 +513,7 @@ var ContactForm = ({
377
513
  console.log("Form is submitted but onSubmit prop is missing");
378
514
  }
379
515
  };
380
- return /* @__PURE__ */ React9.createElement(
516
+ return /* @__PURE__ */ React18.createElement(
381
517
  Card,
382
518
  {
383
519
  className: cn(
@@ -386,7 +522,7 @@ var ContactForm = ({
386
522
  ),
387
523
  style: cardless ? { boxShadow: "none" } : void 0
388
524
  },
389
- /* @__PURE__ */ React9.createElement(CardContent, { headless: true, className: cardless ? "!hawa-p-0" : "" }, /* @__PURE__ */ React9.createElement(
525
+ /* @__PURE__ */ React18.createElement(CardContent, { headless: true, className: cardless ? "!hawa-p-0" : "" }, /* @__PURE__ */ React18.createElement(
390
526
  "form",
391
527
  {
392
528
  noValidate: true,
@@ -395,7 +531,7 @@ var ContactForm = ({
395
531
  id: formId,
396
532
  autoComplete: formAutoComplete
397
533
  },
398
- /* @__PURE__ */ React9.createElement(
534
+ /* @__PURE__ */ React18.createElement(
399
535
  "div",
400
536
  {
401
537
  className: cn(
@@ -406,14 +542,14 @@ var ContactForm = ({
406
542
  }
407
543
  )
408
544
  },
409
- /* @__PURE__ */ React9.createElement(
545
+ /* @__PURE__ */ React18.createElement(
410
546
  Controller2,
411
547
  {
412
548
  control,
413
549
  name: "name",
414
550
  render: ({ field }) => {
415
551
  var _a2;
416
- return /* @__PURE__ */ React9.createElement(
552
+ return /* @__PURE__ */ React18.createElement(
417
553
  Input,
418
554
  {
419
555
  label: (texts == null ? void 0 : texts.name.label) || "Name",
@@ -426,14 +562,14 @@ var ContactForm = ({
426
562
  }
427
563
  }
428
564
  ),
429
- /* @__PURE__ */ React9.createElement(
565
+ /* @__PURE__ */ React18.createElement(
430
566
  Controller2,
431
567
  {
432
568
  control,
433
569
  name: "email",
434
570
  render: ({ field }) => {
435
571
  var _a2;
436
- return /* @__PURE__ */ React9.createElement(
572
+ return /* @__PURE__ */ React18.createElement(
437
573
  Input,
438
574
  {
439
575
  label: (texts == null ? void 0 : texts.email.label) || "Email",
@@ -449,7 +585,7 @@ var ContactForm = ({
449
585
  ),
450
586
  customFields && customFields.map((customField) => {
451
587
  console.log("custom", customField);
452
- return /* @__PURE__ */ React9.createElement(
588
+ return /* @__PURE__ */ React18.createElement(
453
589
  Controller2,
454
590
  {
455
591
  control,
@@ -459,7 +595,7 @@ var ContactForm = ({
459
595
  switch (type) {
460
596
  case "text":
461
597
  case "number":
462
- return /* @__PURE__ */ React9.createElement(
598
+ return /* @__PURE__ */ React18.createElement(
463
599
  Input,
464
600
  {
465
601
  id: customField.name,
@@ -470,7 +606,7 @@ var ContactForm = ({
470
606
  }
471
607
  );
472
608
  case "select":
473
- return /* @__PURE__ */ React9.createElement(
609
+ return /* @__PURE__ */ React18.createElement(
474
610
  Select,
475
611
  {
476
612
  label,
@@ -480,20 +616,20 @@ var ContactForm = ({
480
616
  }
481
617
  );
482
618
  default:
483
- return /* @__PURE__ */ React9.createElement("div", null, "Unknown type");
619
+ return /* @__PURE__ */ React18.createElement("div", null, "Unknown type");
484
620
  }
485
621
  }
486
622
  }
487
623
  );
488
624
  }),
489
- /* @__PURE__ */ React9.createElement(
625
+ /* @__PURE__ */ React18.createElement(
490
626
  Controller2,
491
627
  {
492
628
  control,
493
629
  name: "message",
494
630
  render: ({ field }) => {
495
631
  var _a2;
496
- return /* @__PURE__ */ React9.createElement(
632
+ return /* @__PURE__ */ React18.createElement(
497
633
  Textarea,
498
634
  {
499
635
  label: (texts == null ? void 0 : texts.message.label) || "Message",
@@ -510,7 +646,7 @@ var ContactForm = ({
510
646
  }
511
647
  }
512
648
  ),
513
- /* @__PURE__ */ React9.createElement(Button, { type: "submit", className: "hawa-w-full" }, (texts == null ? void 0 : texts.submit) || "Submit")
649
+ /* @__PURE__ */ React18.createElement(Button, { type: "submit", className: "hawa-w-full" }, (texts == null ? void 0 : texts.submit) || "Submit")
514
650
  ))
515
651
  );
516
652
  };
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  Chip,
4
4
  ScrollArea
5
- } from "../../chunk-CVOMHXJK.mjs";
5
+ } from "../../chunk-BXGDHNAY.mjs";
6
6
  import "../../chunk-47APBDKK.mjs";
7
7
  import {
8
8
  Radio