@sikka/hawa 0.47.0-next → 0.48.0-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/blocks/auth/index.d.mts +26 -9
- package/dist/blocks/auth/index.d.ts +26 -9
- package/dist/blocks/auth/index.js +926 -305
- package/dist/blocks/auth/index.mjs +409 -247
- package/dist/blocks/feedback/index.d.mts +1 -1
- package/dist/blocks/feedback/index.d.ts +1 -1
- package/dist/blocks/index.d.mts +25 -8
- package/dist/blocks/index.d.ts +25 -8
- package/dist/blocks/index.js +2264 -2114
- package/dist/blocks/index.mjs +403 -246
- package/dist/blocks/misc/index.d.mts +1 -1
- package/dist/blocks/misc/index.d.ts +1 -1
- package/dist/blocks/misc/index.mjs +49 -366
- package/dist/blocks/pricing/index.d.mts +1 -1
- package/dist/blocks/pricing/index.d.ts +1 -1
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/{chunk-342KIV4R.mjs → chunk-GBLWUEYN.mjs} +471 -471
- package/dist/chunk-JFWD2ICY.mjs +511 -0
- package/dist/elements/index.mjs +1 -1
- package/dist/index.css +7 -0
- package/dist/index.d.mts +26 -8
- package/dist/index.d.ts +26 -8
- package/dist/index.js +397 -245
- package/dist/index.mjs +402 -245
- package/dist/{textTypes-DXLtO2fL.d.mts → textTypes-CYQYIsFt.d.mts} +1 -0
- package/dist/{textTypes-DXLtO2fL.d.ts → textTypes-CYQYIsFt.d.ts} +1 -0
- package/dist/types/index.d.mts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/chunk-EOH6A3GR.mjs +0 -183
@@ -1,9 +1,13 @@
|
|
1
1
|
"use client";
|
2
2
|
import {
|
3
|
-
Input
|
4
|
-
|
3
|
+
Input,
|
4
|
+
Tabs,
|
5
|
+
TabsContent,
|
6
|
+
TabsList,
|
7
|
+
TabsTrigger,
|
8
|
+
getHotkeyHandler
|
9
|
+
} from "../../chunk-JFWD2ICY.mjs";
|
5
10
|
import {
|
6
|
-
Chip,
|
7
11
|
ScrollArea
|
8
12
|
} from "../../chunk-C2UOOH4X.mjs";
|
9
13
|
import {
|
@@ -24,330 +28,9 @@ import {
|
|
24
28
|
} from "../../chunk-IFWYR5W2.mjs";
|
25
29
|
|
26
30
|
// blocks/misc/LegalTexts.tsx
|
27
|
-
import
|
28
|
-
|
29
|
-
// elements/tabs/Tabs.tsx
|
30
|
-
import * as React9 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
|
-
|
82
|
-
// hooks/useClickOutside.ts
|
83
|
-
import { useEffect as useEffect14, useRef as useRef8 } from "react";
|
84
|
-
|
85
|
-
// hooks/useShortcuts.ts
|
86
|
-
import { useEffect as useEffect15 } from "react";
|
87
|
-
function parseHotkey(hotkey) {
|
88
|
-
const keys = hotkey.toLowerCase().split("+").map((part) => part.trim());
|
89
|
-
const modifiers = {
|
90
|
-
alt: keys.includes("alt"),
|
91
|
-
ctrl: keys.includes("ctrl"),
|
92
|
-
meta: keys.includes("meta"),
|
93
|
-
mod: keys.includes("mod"),
|
94
|
-
shift: keys.includes("shift")
|
95
|
-
};
|
96
|
-
const reservedKeys = ["alt", "ctrl", "meta", "shift", "mod"];
|
97
|
-
const freeKey = keys.find((key) => !reservedKeys.includes(key));
|
98
|
-
return {
|
99
|
-
...modifiers,
|
100
|
-
key: freeKey
|
101
|
-
};
|
102
|
-
}
|
103
|
-
function isExactHotkey(hotkey, event) {
|
104
|
-
const { alt, ctrl, meta, mod, shift, key } = hotkey;
|
105
|
-
const { altKey, ctrlKey, metaKey, shiftKey, key: pressedKey } = event;
|
106
|
-
if (alt !== altKey) {
|
107
|
-
return false;
|
108
|
-
}
|
109
|
-
if (mod) {
|
110
|
-
if (!ctrlKey && !metaKey) {
|
111
|
-
return false;
|
112
|
-
}
|
113
|
-
} else {
|
114
|
-
if (ctrl !== ctrlKey) {
|
115
|
-
return false;
|
116
|
-
}
|
117
|
-
if (meta !== metaKey) {
|
118
|
-
return false;
|
119
|
-
}
|
120
|
-
}
|
121
|
-
if (shift !== shiftKey) {
|
122
|
-
return false;
|
123
|
-
}
|
124
|
-
if (key && (pressedKey.toLowerCase() === key.toLowerCase() || event.code.replace("Key", "").toLowerCase() === key.toLowerCase())) {
|
125
|
-
return true;
|
126
|
-
}
|
127
|
-
return false;
|
128
|
-
}
|
129
|
-
function getHotkeyMatcher(hotkey) {
|
130
|
-
return (event) => isExactHotkey(parseHotkey(hotkey), event);
|
131
|
-
}
|
132
|
-
function getHotkeyHandler(hotkeys) {
|
133
|
-
return (event) => {
|
134
|
-
const _event = "nativeEvent" in event ? event.nativeEvent : event;
|
135
|
-
hotkeys.forEach(([hotkey, handler, options = { preventDefault: true }]) => {
|
136
|
-
if (getHotkeyMatcher(hotkey)(_event)) {
|
137
|
-
if (options.preventDefault) {
|
138
|
-
event.preventDefault();
|
139
|
-
}
|
140
|
-
handler(_event);
|
141
|
-
}
|
142
|
-
});
|
143
|
-
};
|
144
|
-
}
|
145
|
-
|
146
|
-
// hooks/useWindowEvent.ts
|
147
|
-
import { useEffect as useEffect16 } from "react";
|
148
|
-
function useWindowEvent(type, listener, options) {
|
149
|
-
useEffect16(() => {
|
150
|
-
window.addEventListener(type, listener, options);
|
151
|
-
return () => window.removeEventListener(type, listener, options);
|
152
|
-
}, [type, listener]);
|
153
|
-
}
|
154
|
-
|
155
|
-
// hooks/useViewportSize.ts
|
156
|
-
import { useCallback, useEffect as useEffect17, useState as useState16 } from "react";
|
157
|
-
var eventListerOptions = {
|
158
|
-
passive: true
|
159
|
-
};
|
160
|
-
function useViewportSize() {
|
161
|
-
const [windowSize, setWindowSize] = useState16({
|
162
|
-
width: 0,
|
163
|
-
height: 0
|
164
|
-
});
|
165
|
-
const setSize = useCallback(() => {
|
166
|
-
setWindowSize({
|
167
|
-
width: window.innerWidth || 0,
|
168
|
-
height: window.innerHeight || 0
|
169
|
-
});
|
170
|
-
}, []);
|
171
|
-
useWindowEvent("resize", setSize, eventListerOptions);
|
172
|
-
useWindowEvent("orientationchange", setSize, eventListerOptions);
|
173
|
-
useEffect17(setSize, []);
|
174
|
-
return windowSize;
|
175
|
-
}
|
176
|
-
|
177
|
-
// elements/tabs/Tabs.tsx
|
178
|
-
import * as Popover from "@radix-ui/react-popover";
|
179
|
-
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
180
|
-
import { tv } from "tailwind-variants";
|
181
|
-
var tabsListVariant = tv({
|
182
|
-
base: "",
|
183
|
-
variants: {
|
184
|
-
variant: {
|
185
|
-
default: "hawa-flex hawa-w-fit hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-border hawa-bg-muted hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10",
|
186
|
-
underlined: "hawa-flex hawa-w-fit hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10",
|
187
|
-
underlined_tabs: "hawa-flex hawa-w-fit hawa-items-center hawa-justify-start hawa-gap-1 hawa-text-muted-foreground"
|
188
|
-
},
|
189
|
-
orientation: { horizontal: "", vertical: "" }
|
190
|
-
},
|
191
|
-
compoundVariants: [
|
192
|
-
{
|
193
|
-
variant: "underlined_tabs",
|
194
|
-
orientation: "vertical",
|
195
|
-
class: "hawa-border-e-2 hawa-border-e-primary"
|
196
|
-
},
|
197
|
-
{
|
198
|
-
variant: "underlined_tabs",
|
199
|
-
orientation: "horizontal",
|
200
|
-
class: "hawa-border-b-2 hawa-border-b-primary"
|
201
|
-
}
|
202
|
-
],
|
203
|
-
defaultVariants: { variant: "default", orientation: "horizontal" }
|
204
|
-
});
|
205
|
-
var tabsTriggerVariant = tv({
|
206
|
-
base: "",
|
207
|
-
variants: {
|
208
|
-
variant: {
|
209
|
-
default: "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-border 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 data-[state=active]:hawa-bg-primary data-[state=active]:hawa-text-primary-foreground data-[state=active]:hawa-shadow-sm dark:hawa-border-primary/10",
|
210
|
-
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",
|
211
|
-
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"
|
212
|
-
},
|
213
|
-
orientation: { horizontal: "", vertical: "" }
|
214
|
-
},
|
215
|
-
compoundVariants: [
|
216
|
-
{
|
217
|
-
variant: "underlined",
|
218
|
-
orientation: "horizontal",
|
219
|
-
class: "data-[state=active]:hawa-border-b-primary hawa-border-b hawa-border-b-2"
|
220
|
-
},
|
221
|
-
{
|
222
|
-
variant: "underlined",
|
223
|
-
orientation: "vertical",
|
224
|
-
class: "data-[state=active]:hawa-border-e-primary hawa-border-e hawa-border-e-2"
|
225
|
-
},
|
226
|
-
{
|
227
|
-
variant: "underlined_tabs",
|
228
|
-
orientation: "horizontal",
|
229
|
-
class: "hawa-rounded-b-none"
|
230
|
-
},
|
231
|
-
{
|
232
|
-
variant: "underlined_tabs",
|
233
|
-
orientation: "vertical",
|
234
|
-
class: "hawa-rounded-e-none"
|
235
|
-
}
|
236
|
-
],
|
237
|
-
defaultVariants: { variant: "default", orientation: "horizontal" }
|
238
|
-
});
|
239
|
-
var TabsContext = React9.createContext({ orientation: "horizontal", variant: "default", scrollable: false });
|
240
|
-
var Tabs = React9.forwardRef(
|
241
|
-
({ className, orientation, scrollable, variant = "default", ...props }, ref) => /* @__PURE__ */ React9.createElement(
|
242
|
-
TabsPrimitive.Root,
|
243
|
-
{
|
244
|
-
ref,
|
245
|
-
className: cn(
|
246
|
-
"hawa-flex hawa-gap-2",
|
247
|
-
orientation === "vertical" ? "hawa-flex-row" : "hawa-flex-col",
|
248
|
-
className
|
249
|
-
),
|
250
|
-
...props
|
251
|
-
},
|
252
|
-
/* @__PURE__ */ React9.createElement(TabsContext.Provider, { value: { orientation, variant, scrollable } }, props.children)
|
253
|
-
)
|
254
|
-
);
|
255
|
-
var TabsList = React9.forwardRef(({ className, classNames, ...props }, ref) => {
|
256
|
-
const { orientation, variant, scrollable } = React9.useContext(TabsContext);
|
257
|
-
const { width } = useViewportSize();
|
258
|
-
if (scrollable && width < 768 && orientation === "horizontal") {
|
259
|
-
return /* @__PURE__ */ React9.createElement(ScrollArea, { orientation: "horizontal", className: classNames == null ? void 0 : classNames.scrollArea }, /* @__PURE__ */ React9.createElement(
|
260
|
-
TabsPrimitive.List,
|
261
|
-
{
|
262
|
-
ref,
|
263
|
-
className: cn(
|
264
|
-
tabsListVariant({ variant, orientation }),
|
265
|
-
"hawa-flex-row hawa-flex-nowrap",
|
266
|
-
className
|
267
|
-
),
|
268
|
-
...props
|
269
|
-
}
|
270
|
-
));
|
271
|
-
} else {
|
272
|
-
return /* @__PURE__ */ React9.createElement(
|
273
|
-
TabsPrimitive.List,
|
274
|
-
{
|
275
|
-
ref,
|
276
|
-
className: cn(
|
277
|
-
tabsListVariant({ variant, orientation }),
|
278
|
-
orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
|
279
|
-
"hawa-flex-wrap",
|
280
|
-
className
|
281
|
-
),
|
282
|
-
...props
|
283
|
-
}
|
284
|
-
);
|
285
|
-
}
|
286
|
-
});
|
287
|
-
var TabsTrigger = React9.forwardRef(
|
288
|
-
({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
|
289
|
-
const { orientation, variant } = React9.useContext(TabsContext);
|
290
|
-
if (withPopover) {
|
291
|
-
return /* @__PURE__ */ React9.createElement(Popover.Root, { open: props.showPopover }, /* @__PURE__ */ React9.createElement(Popover.Anchor, { asChild: true }, /* @__PURE__ */ React9.createElement(
|
292
|
-
TabsPrimitive.Trigger,
|
293
|
-
{
|
294
|
-
className: cn(
|
295
|
-
tabsTriggerVariant({ variant, orientation }),
|
296
|
-
"hawa-relative",
|
297
|
-
className
|
298
|
-
),
|
299
|
-
...props
|
300
|
-
},
|
301
|
-
props.children,
|
302
|
-
chipProps && /* @__PURE__ */ React9.createElement(Chip, { ...chipProps })
|
303
|
-
)), /* @__PURE__ */ React9.createElement(
|
304
|
-
Popover.Content,
|
305
|
-
{
|
306
|
-
onClick: onPopoverClick,
|
307
|
-
asChild: true,
|
308
|
-
className: cn(
|
309
|
-
"dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
310
|
-
"hawa-arrow-default-top hawa-mt-2"
|
311
|
-
)
|
312
|
-
},
|
313
|
-
/* @__PURE__ */ React9.createElement("div", { className: "hawa-p-2" }, " ", props.popoverContent)
|
314
|
-
));
|
315
|
-
} else {
|
316
|
-
return /* @__PURE__ */ React9.createElement(
|
317
|
-
TabsPrimitive.Trigger,
|
318
|
-
{
|
319
|
-
className: cn(
|
320
|
-
tabsTriggerVariant({ variant, orientation }),
|
321
|
-
"hawa-relative",
|
322
|
-
className
|
323
|
-
),
|
324
|
-
...props
|
325
|
-
},
|
326
|
-
props.children,
|
327
|
-
chipProps && /* @__PURE__ */ React9.createElement(Chip, { ...chipProps })
|
328
|
-
);
|
329
|
-
}
|
330
|
-
}
|
331
|
-
);
|
332
|
-
var TabsContent = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement(
|
333
|
-
TabsPrimitive.Content,
|
334
|
-
{
|
335
|
-
ref,
|
336
|
-
className: cn(
|
337
|
-
"hawa-ring-offset-hawa-background hawa-w-full focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2",
|
338
|
-
className
|
339
|
-
),
|
340
|
-
...props
|
341
|
-
}
|
342
|
-
));
|
343
|
-
Tabs.displayName = TabsPrimitive.Root.displayName;
|
344
|
-
TabsList.displayName = TabsPrimitive.List.displayName;
|
345
|
-
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
346
|
-
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
347
|
-
|
348
|
-
// blocks/misc/LegalTexts.tsx
|
31
|
+
import React from "react";
|
349
32
|
var LegalTexts = ({ tabs, ...props }) => {
|
350
|
-
return /* @__PURE__ */
|
33
|
+
return /* @__PURE__ */ React.createElement(
|
351
34
|
Tabs,
|
352
35
|
{
|
353
36
|
value: props.activeTab,
|
@@ -355,8 +38,8 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
355
38
|
defaultValue: props.defaultTab || tabs[0].value,
|
356
39
|
dir: props.direction
|
357
40
|
},
|
358
|
-
/* @__PURE__ */
|
359
|
-
tabs.map((tab, index) => /* @__PURE__ */
|
41
|
+
/* @__PURE__ */ React.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ React.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
|
42
|
+
tabs.map((tab, index) => /* @__PURE__ */ React.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ React.createElement(
|
360
43
|
ScrollArea,
|
361
44
|
{
|
362
45
|
className: cn(
|
@@ -370,9 +53,9 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
370
53
|
};
|
371
54
|
|
372
55
|
// blocks/misc/EmptyState.tsx
|
373
|
-
import
|
56
|
+
import React2 from "react";
|
374
57
|
var EmptyState = ({ texts, onActionClick }) => {
|
375
|
-
return /* @__PURE__ */
|
58
|
+
return /* @__PURE__ */ React2.createElement(Card, null, /* @__PURE__ */ React2.createElement(CardContent, { headless: true }, /* @__PURE__ */ React2.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ React2.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__ */ React2.createElement(
|
376
59
|
"svg",
|
377
60
|
{
|
378
61
|
stroke: "currentColor",
|
@@ -382,30 +65,30 @@ var EmptyState = ({ texts, onActionClick }) => {
|
|
382
65
|
height: "0.35em",
|
383
66
|
width: "0.35em"
|
384
67
|
},
|
385
|
-
/* @__PURE__ */
|
386
|
-
)), /* @__PURE__ */
|
68
|
+
/* @__PURE__ */ React2.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" })
|
69
|
+
)), /* @__PURE__ */ React2.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.youreCaughtUp) || "You're all caught up"))), /* @__PURE__ */ React2.createElement(CardFooter, null, /* @__PURE__ */ React2.createElement(Button, { className: "hawa-w-full", onClick: () => onActionClick() }, (texts == null ? void 0 : texts.actionText) || "Go Home")));
|
387
70
|
};
|
388
71
|
|
389
72
|
// blocks/misc/Testimonial.tsx
|
390
|
-
import
|
73
|
+
import React3 from "react";
|
391
74
|
var Testimonial = () => {
|
392
|
-
return /* @__PURE__ */
|
75
|
+
return /* @__PURE__ */ React3.createElement(Card, null, /* @__PURE__ */ React3.createElement(CardContent, { headless: true }, /* @__PURE__ */ React3.createElement("div", null, /* @__PURE__ */ React3.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__ */ React3.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ React3.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ React3.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ React3.createElement(
|
393
76
|
"path",
|
394
77
|
{
|
395
78
|
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",
|
396
79
|
fill: "#FFFFFF"
|
397
80
|
}
|
398
|
-
), /* @__PURE__ */
|
81
|
+
), /* @__PURE__ */ React3.createElement(
|
399
82
|
"path",
|
400
83
|
{
|
401
84
|
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",
|
402
85
|
fill: "#FFFFFF"
|
403
86
|
}
|
404
|
-
)), /* @__PURE__ */
|
87
|
+
)), /* @__PURE__ */ React3.createElement("span", { className: "border border-l" }), " ", /* @__PURE__ */ React3.createElement("div", null, /* @__PURE__ */ React3.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ React3.createElement("div", null, " Chief Information Security Officer")))));
|
405
88
|
};
|
406
89
|
|
407
90
|
// blocks/misc/LeadGenerator.tsx
|
408
|
-
import
|
91
|
+
import React4 from "react";
|
409
92
|
import { useForm, Controller } from "react-hook-form";
|
410
93
|
var LeadGenerator = ({ texts, submitHandler }) => {
|
411
94
|
var _a;
|
@@ -417,14 +100,14 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
417
100
|
console.log("handleNewsletterSub props was not provided");
|
418
101
|
}
|
419
102
|
};
|
420
|
-
return /* @__PURE__ */
|
103
|
+
return /* @__PURE__ */ React4.createElement(Card, null, /* @__PURE__ */ React4.createElement(CardHeader, null, /* @__PURE__ */ React4.createElement(CardTitle, null, texts == null ? void 0 : texts.title), /* @__PURE__ */ React4.createElement(CardDescription, null, texts == null ? void 0 : texts.subtitle)), /* @__PURE__ */ React4.createElement(CardContent, null, /* @__PURE__ */ React4.createElement(
|
421
104
|
"form",
|
422
105
|
{
|
423
106
|
noValidate: true,
|
424
107
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
425
108
|
onSubmit: handleSubmit(onSubmit)
|
426
109
|
},
|
427
|
-
/* @__PURE__ */
|
110
|
+
/* @__PURE__ */ React4.createElement(
|
428
111
|
Controller,
|
429
112
|
{
|
430
113
|
name: "email",
|
@@ -437,27 +120,27 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
437
120
|
}
|
438
121
|
},
|
439
122
|
defaultValue: "",
|
440
|
-
render: ({ field }) => /* @__PURE__ */
|
123
|
+
render: ({ field }) => /* @__PURE__ */ React4.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
|
441
124
|
}
|
442
125
|
),
|
443
|
-
/* @__PURE__ */
|
126
|
+
/* @__PURE__ */ React4.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
|
444
127
|
)));
|
445
128
|
};
|
446
129
|
|
447
130
|
// blocks/misc/Announcement.tsx
|
448
|
-
import
|
131
|
+
import React5 from "react";
|
449
132
|
var Announcement = ({
|
450
133
|
onActionClick,
|
451
134
|
...props
|
452
135
|
}) => {
|
453
|
-
return /* @__PURE__ */
|
136
|
+
return /* @__PURE__ */ React5.createElement(Card, null, /* @__PURE__ */ React5.createElement(
|
454
137
|
CardContent,
|
455
138
|
{
|
456
139
|
headless: true,
|
457
140
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
458
141
|
},
|
459
|
-
/* @__PURE__ */
|
460
|
-
/* @__PURE__ */
|
142
|
+
/* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center" }, /* @__PURE__ */ React5.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ React5.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
|
143
|
+
/* @__PURE__ */ React5.createElement(
|
461
144
|
Button,
|
462
145
|
{
|
463
146
|
onClick: () => onActionClick(),
|
@@ -469,15 +152,15 @@ var Announcement = ({
|
|
469
152
|
};
|
470
153
|
|
471
154
|
// blocks/misc/NotFound.tsx
|
472
|
-
import
|
155
|
+
import React6 from "react";
|
473
156
|
var NotFound = ({ texts }) => {
|
474
|
-
return /* @__PURE__ */
|
157
|
+
return /* @__PURE__ */ React6.createElement(Card, null, /* @__PURE__ */ React6.createElement(CardContent, { headless: true }, /* @__PURE__ */ React6.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white" }, /* @__PURE__ */ React6.createElement("div", { className: "hawa-text-center hawa-text-6xl hawa-font-bold" }, "404"), /* @__PURE__ */ React6.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__ */ React6.createElement("div", { className: "hawa-mb-4 hawa-text-center" }, (texts == null ? void 0 : texts.ifLost) || /* @__PURE__ */ React6.createElement(React6.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ React6.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ React6.createElement(Button, { className: "hawa-w-full" }, (texts == null ? void 0 : texts.home) || "Home"))));
|
475
158
|
};
|
476
159
|
|
477
160
|
// blocks/misc/NoPermission.tsx
|
478
|
-
import
|
161
|
+
import React7 from "react";
|
479
162
|
var NoPermission = ({ texts }) => {
|
480
|
-
return /* @__PURE__ */
|
163
|
+
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 hawa-justify-center hawa-text-center" }, /* @__PURE__ */ React7.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__ */ React7.createElement(
|
481
164
|
"svg",
|
482
165
|
{
|
483
166
|
stroke: "currentColor",
|
@@ -487,12 +170,12 @@ var NoPermission = ({ texts }) => {
|
|
487
170
|
height: "0.35em",
|
488
171
|
width: "0.35em"
|
489
172
|
},
|
490
|
-
/* @__PURE__ */
|
491
|
-
)), /* @__PURE__ */
|
173
|
+
/* @__PURE__ */ React7.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" })
|
174
|
+
)), /* @__PURE__ */ React7.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.title) || "You don't have permission"), /* @__PURE__ */ React7.createElement("div", null, (texts == null ? void 0 : texts.subtitle) || "If you think this is a problem please contact your administrator or our customer support"))));
|
492
175
|
};
|
493
176
|
|
494
177
|
// blocks/misc/ContactForm.tsx
|
495
|
-
import
|
178
|
+
import React8 from "react";
|
496
179
|
import { useForm as useForm2, Controller as Controller2 } from "react-hook-form";
|
497
180
|
import { zodResolver } from "@hookform/resolvers/zod";
|
498
181
|
import * as z from "zod";
|
@@ -576,7 +259,7 @@ var ContactForm = ({
|
|
576
259
|
console.log("Form is submitted but onSubmit prop is missing");
|
577
260
|
}
|
578
261
|
};
|
579
|
-
return /* @__PURE__ */
|
262
|
+
return /* @__PURE__ */ React8.createElement(
|
580
263
|
Card,
|
581
264
|
{
|
582
265
|
className: cn(
|
@@ -586,7 +269,7 @@ var ContactForm = ({
|
|
586
269
|
),
|
587
270
|
style: cardless ? { boxShadow: "none" } : void 0
|
588
271
|
},
|
589
|
-
/* @__PURE__ */
|
272
|
+
/* @__PURE__ */ React8.createElement(CardContent, { headless: true, className: cardless ? "!hawa-p-0" : "" }, props.showSuccess ? /* @__PURE__ */ React8.createElement(CardHeader, null, /* @__PURE__ */ React8.createElement(CardTitle, null, ((_d = texts == null ? void 0 : texts.success) == null ? void 0 : _d.title) || "Message Sent! \u{1F389}"), /* @__PURE__ */ React8.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__ */ React8.createElement(
|
590
273
|
"form",
|
591
274
|
{
|
592
275
|
noValidate: true,
|
@@ -595,7 +278,7 @@ var ContactForm = ({
|
|
595
278
|
id: formId,
|
596
279
|
autoComplete: formAutoComplete
|
597
280
|
},
|
598
|
-
/* @__PURE__ */
|
281
|
+
/* @__PURE__ */ React8.createElement(
|
599
282
|
"div",
|
600
283
|
{
|
601
284
|
className: cn(
|
@@ -606,14 +289,14 @@ var ContactForm = ({
|
|
606
289
|
}
|
607
290
|
)
|
608
291
|
},
|
609
|
-
/* @__PURE__ */
|
292
|
+
/* @__PURE__ */ React8.createElement(
|
610
293
|
Controller2,
|
611
294
|
{
|
612
295
|
control,
|
613
296
|
name: "name",
|
614
297
|
render: ({ field }) => {
|
615
298
|
var _a2;
|
616
|
-
return /* @__PURE__ */
|
299
|
+
return /* @__PURE__ */ React8.createElement(
|
617
300
|
Input,
|
618
301
|
{
|
619
302
|
label: (texts == null ? void 0 : texts.name.label) || "Name",
|
@@ -626,14 +309,14 @@ var ContactForm = ({
|
|
626
309
|
}
|
627
310
|
}
|
628
311
|
),
|
629
|
-
/* @__PURE__ */
|
312
|
+
/* @__PURE__ */ React8.createElement(
|
630
313
|
Controller2,
|
631
314
|
{
|
632
315
|
control,
|
633
316
|
name: "email",
|
634
317
|
render: ({ field }) => {
|
635
318
|
var _a2;
|
636
|
-
return /* @__PURE__ */
|
319
|
+
return /* @__PURE__ */ React8.createElement(
|
637
320
|
Input,
|
638
321
|
{
|
639
322
|
label: (texts == null ? void 0 : texts.email.label) || "Email",
|
@@ -649,7 +332,7 @@ var ContactForm = ({
|
|
649
332
|
),
|
650
333
|
customFields && customFields.map((customField) => {
|
651
334
|
console.log("custom", customField);
|
652
|
-
return /* @__PURE__ */
|
335
|
+
return /* @__PURE__ */ React8.createElement(
|
653
336
|
Controller2,
|
654
337
|
{
|
655
338
|
control,
|
@@ -659,7 +342,7 @@ var ContactForm = ({
|
|
659
342
|
switch (type) {
|
660
343
|
case "text":
|
661
344
|
case "number":
|
662
|
-
return /* @__PURE__ */
|
345
|
+
return /* @__PURE__ */ React8.createElement(
|
663
346
|
Input,
|
664
347
|
{
|
665
348
|
id: customField.name,
|
@@ -670,7 +353,7 @@ var ContactForm = ({
|
|
670
353
|
}
|
671
354
|
);
|
672
355
|
case "select":
|
673
|
-
return /* @__PURE__ */
|
356
|
+
return /* @__PURE__ */ React8.createElement(
|
674
357
|
Select,
|
675
358
|
{
|
676
359
|
label,
|
@@ -680,20 +363,20 @@ var ContactForm = ({
|
|
680
363
|
}
|
681
364
|
);
|
682
365
|
default:
|
683
|
-
return /* @__PURE__ */
|
366
|
+
return /* @__PURE__ */ React8.createElement("div", null, "Unknown type");
|
684
367
|
}
|
685
368
|
}
|
686
369
|
}
|
687
370
|
);
|
688
371
|
}),
|
689
|
-
/* @__PURE__ */
|
372
|
+
/* @__PURE__ */ React8.createElement(
|
690
373
|
Controller2,
|
691
374
|
{
|
692
375
|
control,
|
693
376
|
name: "message",
|
694
377
|
render: ({ field }) => {
|
695
378
|
var _a2;
|
696
|
-
return /* @__PURE__ */
|
379
|
+
return /* @__PURE__ */ React8.createElement(
|
697
380
|
Textarea,
|
698
381
|
{
|
699
382
|
label: (texts == null ? void 0 : texts.message.label) || "Message",
|
@@ -713,7 +396,7 @@ var ContactForm = ({
|
|
713
396
|
}
|
714
397
|
}
|
715
398
|
),
|
716
|
-
/* @__PURE__ */
|
399
|
+
/* @__PURE__ */ React8.createElement(
|
717
400
|
Button,
|
718
401
|
{
|
719
402
|
type: "submit",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { FC, InputHTMLAttributes } from 'react';
|
2
|
-
import { P as PositionType, D as DirectionType, d as PricingPlanTexts, R as RadioOptionType } from '../../textTypes-
|
2
|
+
import { P as PositionType, D as DirectionType, d as PricingPlanTexts, R as RadioOptionType } from '../../textTypes-CYQYIsFt.mjs';
|
3
3
|
|
4
4
|
type PlanFeature = {
|
5
5
|
soon?: boolean;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { FC, InputHTMLAttributes } from 'react';
|
2
|
-
import { P as PositionType, D as DirectionType, d as PricingPlanTexts, R as RadioOptionType } from '../../textTypes-
|
2
|
+
import { P as PositionType, D as DirectionType, d as PricingPlanTexts, R as RadioOptionType } from '../../textTypes-CYQYIsFt.js';
|
3
3
|
|
4
4
|
type PlanFeature = {
|
5
5
|
soon?: boolean;
|