@sikka/hawa 0.30.25-next → 0.30.26-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/index.js +100 -72
- package/dist/blocks/index.mjs +1 -1
- package/dist/blocks/misc/index.js +88 -60
- package/dist/blocks/misc/index.mjs +105 -75
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/{chunk-7LAUVLVZ.mjs → chunk-QDRFTC7W.mjs} +96 -62
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/commonTypes-LrR8QrYP.d.mts +5 -0
- package/dist/commonTypes-LrR8QrYP.d.ts +5 -0
- package/dist/commonTypes-MeUyaBib.d.mts +5 -0
- package/dist/commonTypes-MeUyaBib.d.ts +5 -0
- package/dist/elements/index.d.mts +5 -1
- package/dist/elements/index.d.ts +5 -1
- package/dist/elements/index.js +122 -86
- package/dist/elements/index.mjs +5 -1
- package/dist/floatBox/index.d.mts +12 -0
- package/dist/floatBox/index.d.ts +12 -0
- package/dist/floatBox/index.js +85 -0
- package/dist/floatBox/index.js.map +1 -0
- package/dist/floatBox/index.mjs +49 -0
- package/dist/floatBox/index.mjs.map +1 -0
- package/dist/index.css +101 -56
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +162 -126
- package/dist/index.mjs +683 -649
- package/dist/input/index.d.mts +2 -1
- package/dist/input/index.d.ts +2 -1
- package/dist/label/index.d.mts +1 -2
- package/dist/label/index.d.ts +1 -2
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.d.mts +2 -1
- package/dist/phoneInput/index.d.ts +2 -1
- package/dist/popover/index.d.mts +3 -1
- package/dist/popover/index.d.ts +3 -1
- package/dist/popover/index.js +6 -0
- package/dist/popover/index.js.map +1 -1
- package/dist/popover/index.mjs +4 -0
- package/dist/popover/index.mjs.map +1 -1
- package/dist/progress/index.d.mts +8 -1
- package/dist/progress/index.d.ts +8 -1
- package/dist/radio/index.d.mts +9 -1
- package/dist/radio/index.d.ts +9 -1
- package/dist/scrollArea/index.d.mts +1 -1
- package/dist/scrollArea/index.d.ts +1 -1
- package/dist/separator/index.d.mts +1 -1
- package/dist/separator/index.d.ts +1 -1
- package/dist/signature/index.d.mts +1 -2
- package/dist/signature/index.d.ts +1 -2
- package/dist/simpleTable/index.d.mts +1 -1
- package/dist/simpleTable/index.d.ts +1 -1
- package/dist/switch/index.d.mts +2 -1
- package/dist/switch/index.d.ts +2 -1
- package/dist/tabs/index.d.mts +3 -1
- package/dist/tabs/index.d.ts +3 -1
- package/dist/tabs/index.js +60 -32
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +60 -32
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/textarea/index.d.mts +1 -1
- package/dist/textarea/index.d.ts +1 -1
- package/dist/toast/index.d.mts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toaster/index.d.mts +22 -4
- package/dist/toaster/index.d.ts +22 -4
- package/dist/tooltip/index.d.mts +3 -4
- package/dist/tooltip/index.d.ts +3 -4
- package/package.json +8 -8
- package/dist/Label-9FHRF7Ex.d.mts +0 -14
- package/dist/Label-9FHRF7Ex.d.ts +0 -14
- package/dist/commonTypes-3k5cNB1s.d.mts +0 -4
- package/dist/commonTypes-3k5cNB1s.d.ts +0 -4
- package/dist/commonTypes-PBumfOBg.d.mts +0 -3
- package/dist/commonTypes-PBumfOBg.d.ts +0 -3
- /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-
|
8
|
+
} from "../../chunk-BXGDHNAY.mjs";
|
9
9
|
import {
|
10
10
|
Textarea
|
11
11
|
} from "../../chunk-AEFNDLFD.mjs";
|
@@ -24,12 +24,49 @@ import {
|
|
24
24
|
} from "../../chunk-ZGNBKYX7.mjs";
|
25
25
|
|
26
26
|
// blocks/misc/LegalTexts.tsx
|
27
|
-
import
|
27
|
+
import React3 from "react";
|
28
28
|
|
29
29
|
// elements/tabs/Tabs.tsx
|
30
|
-
import * as
|
30
|
+
import * as React2 from "react";
|
31
31
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
32
32
|
import { tv } from "tailwind-variants";
|
33
|
+
|
34
|
+
// elements/floatBox/FloatBox.tsx
|
35
|
+
import * as React from "react";
|
36
|
+
var FloatBox = ({
|
37
|
+
className,
|
38
|
+
open,
|
39
|
+
side = "bottom",
|
40
|
+
sideOffset = 40,
|
41
|
+
...props
|
42
|
+
}) => {
|
43
|
+
let widthStyles = {
|
44
|
+
trigger: "var(--radix-popover-trigger-width)",
|
45
|
+
default: "auto"
|
46
|
+
};
|
47
|
+
let sideOffsetStyles = {
|
48
|
+
bottom: { top: sideOffset },
|
49
|
+
top: { bottom: sideOffset },
|
50
|
+
right: { left: sideOffset },
|
51
|
+
left: { right: sideOffset }
|
52
|
+
};
|
53
|
+
return /* @__PURE__ */ React.createElement(
|
54
|
+
"div",
|
55
|
+
{
|
56
|
+
className: cn(
|
57
|
+
"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",
|
58
|
+
sideOffsetStyles[side],
|
59
|
+
className
|
60
|
+
),
|
61
|
+
style: { ...sideOffsetStyles[side] },
|
62
|
+
"data-side": side,
|
63
|
+
"data-floatbox-state": open ? "open" : "closed"
|
64
|
+
},
|
65
|
+
props.children
|
66
|
+
);
|
67
|
+
};
|
68
|
+
|
69
|
+
// elements/tabs/Tabs.tsx
|
33
70
|
var tabsListVariant = tv({
|
34
71
|
base: "",
|
35
72
|
variants: {
|
@@ -38,10 +75,7 @@ var tabsListVariant = tv({
|
|
38
75
|
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
76
|
underlined_tabs: "hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-text-muted-foreground"
|
40
77
|
},
|
41
|
-
orientation: {
|
42
|
-
horizontal: "",
|
43
|
-
vertical: ""
|
44
|
-
}
|
78
|
+
orientation: { horizontal: "", vertical: "" }
|
45
79
|
},
|
46
80
|
compoundVariants: [
|
47
81
|
{
|
@@ -55,10 +89,7 @@ var tabsListVariant = tv({
|
|
55
89
|
class: "hawa-border-b-2 hawa-border-b-primary"
|
56
90
|
}
|
57
91
|
],
|
58
|
-
defaultVariants: {
|
59
|
-
variant: "default",
|
60
|
-
orientation: "horizontal"
|
61
|
-
}
|
92
|
+
defaultVariants: { variant: "default", orientation: "horizontal" }
|
62
93
|
});
|
63
94
|
var tabsTriggerVariant = tv({
|
64
95
|
base: "",
|
@@ -68,10 +99,7 @@ var tabsTriggerVariant = tv({
|
|
68
99
|
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
100
|
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
101
|
},
|
71
|
-
orientation: {
|
72
|
-
horizontal: "",
|
73
|
-
vertical: ""
|
74
|
-
}
|
102
|
+
orientation: { horizontal: "", vertical: "" }
|
75
103
|
},
|
76
104
|
compoundVariants: [
|
77
105
|
{
|
@@ -95,13 +123,10 @@ var tabsTriggerVariant = tv({
|
|
95
123
|
class: "hawa-rounded-e-none"
|
96
124
|
}
|
97
125
|
],
|
98
|
-
defaultVariants: {
|
99
|
-
variant: "default",
|
100
|
-
orientation: "horizontal"
|
101
|
-
}
|
126
|
+
defaultVariants: { variant: "default", orientation: "horizontal" }
|
102
127
|
});
|
103
|
-
var TabsContext =
|
104
|
-
var Tabs =
|
128
|
+
var TabsContext = React2.createContext({ orientation: "horizontal", variant: "default" });
|
129
|
+
var Tabs = React2.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
105
130
|
TabsPrimitive.Root,
|
106
131
|
{
|
107
132
|
ref,
|
@@ -112,12 +137,11 @@ var Tabs = React.forwardRef(({ className, orientation, variant = "default", ...p
|
|
112
137
|
),
|
113
138
|
...props
|
114
139
|
},
|
115
|
-
/* @__PURE__ */
|
140
|
+
/* @__PURE__ */ React2.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
116
141
|
));
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
return /* @__PURE__ */ React.createElement(
|
142
|
+
var TabsList = React2.forwardRef(({ className, ...props }, ref) => {
|
143
|
+
const { orientation, variant } = React2.useContext(TabsContext);
|
144
|
+
return /* @__PURE__ */ React2.createElement(
|
121
145
|
TabsPrimitive.List,
|
122
146
|
{
|
123
147
|
ref,
|
@@ -130,22 +154,25 @@ var TabsList = React.forwardRef(({ className, ...props }, ref) => {
|
|
130
154
|
}
|
131
155
|
);
|
132
156
|
});
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
return /* @__PURE__ */ React.createElement(
|
157
|
+
var TabsTrigger = React2.forwardRef(({ className, chipProps, ...props }, ref) => {
|
158
|
+
const { orientation, variant } = React2.useContext(TabsContext);
|
159
|
+
return /* @__PURE__ */ React2.createElement(
|
137
160
|
TabsPrimitive.Trigger,
|
138
161
|
{
|
139
162
|
ref,
|
140
|
-
className: cn(
|
163
|
+
className: cn(
|
164
|
+
tabsTriggerVariant({ variant, orientation }),
|
165
|
+
"hawa-relative",
|
166
|
+
className
|
167
|
+
),
|
141
168
|
...props
|
142
169
|
},
|
143
170
|
props.children,
|
144
|
-
chipProps && /* @__PURE__ */
|
171
|
+
chipProps && /* @__PURE__ */ React2.createElement(Chip, { ...chipProps }),
|
172
|
+
/* @__PURE__ */ React2.createElement(FloatBox, { open: props.showPopover }, props.popoverContent)
|
145
173
|
);
|
146
174
|
});
|
147
|
-
|
148
|
-
var TabsContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
175
|
+
var TabsContent = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React2.createElement(
|
149
176
|
TabsPrimitive.Content,
|
150
177
|
{
|
151
178
|
ref,
|
@@ -156,11 +183,14 @@ var TabsContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
156
183
|
...props
|
157
184
|
}
|
158
185
|
));
|
186
|
+
Tabs.displayName = TabsPrimitive.Root.displayName;
|
187
|
+
TabsList.displayName = TabsPrimitive.List.displayName;
|
188
|
+
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
159
189
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
160
190
|
|
161
191
|
// blocks/misc/LegalTexts.tsx
|
162
192
|
var LegalTexts = ({ tabs, ...props }) => {
|
163
|
-
return /* @__PURE__ */
|
193
|
+
return /* @__PURE__ */ React3.createElement(
|
164
194
|
Tabs,
|
165
195
|
{
|
166
196
|
value: props.activeTab,
|
@@ -168,8 +198,8 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
168
198
|
defaultValue: props.defaultTab || tabs[0].value,
|
169
199
|
dir: props.direction
|
170
200
|
},
|
171
|
-
/* @__PURE__ */
|
172
|
-
tabs.map((tab, index) => /* @__PURE__ */
|
201
|
+
/* @__PURE__ */ React3.createElement(TabsList, { className: "hawa-w-full" }, tabs.map((tab, index) => /* @__PURE__ */ React3.createElement(TabsTrigger, { key: index, value: tab.value }, tab.title))),
|
202
|
+
tabs.map((tab, index) => /* @__PURE__ */ React3.createElement(TabsContent, { key: index, value: tab.value }, /* @__PURE__ */ React3.createElement(
|
173
203
|
ScrollArea,
|
174
204
|
{
|
175
205
|
className: cn(
|
@@ -183,9 +213,9 @@ var LegalTexts = ({ tabs, ...props }) => {
|
|
183
213
|
};
|
184
214
|
|
185
215
|
// blocks/misc/EmptyState.tsx
|
186
|
-
import
|
216
|
+
import React4 from "react";
|
187
217
|
var EmptyState = ({ texts, onActionClick }) => {
|
188
|
-
return /* @__PURE__ */
|
218
|
+
return /* @__PURE__ */ React4.createElement(Card, null, /* @__PURE__ */ React4.createElement(CardContent, { headless: true }, /* @__PURE__ */ React4.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center " }, /* @__PURE__ */ React4.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__ */ React4.createElement(
|
189
219
|
"svg",
|
190
220
|
{
|
191
221
|
stroke: "currentColor",
|
@@ -195,30 +225,30 @@ var EmptyState = ({ texts, onActionClick }) => {
|
|
195
225
|
height: "0.35em",
|
196
226
|
width: "0.35em"
|
197
227
|
},
|
198
|
-
/* @__PURE__ */
|
199
|
-
)), /* @__PURE__ */
|
228
|
+
/* @__PURE__ */ React4.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" })
|
229
|
+
)), /* @__PURE__ */ React4.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.youreCaughtUp) || "You're all caught up"))), /* @__PURE__ */ React4.createElement(CardFooter, null, /* @__PURE__ */ React4.createElement(Button, { className: "hawa-w-full", onClick: () => onActionClick() }, (texts == null ? void 0 : texts.actionText) || "Go Home")));
|
200
230
|
};
|
201
231
|
|
202
232
|
// blocks/misc/Testimonial.tsx
|
203
|
-
import
|
233
|
+
import React5 from "react";
|
204
234
|
var Testimonial = () => {
|
205
|
-
return /* @__PURE__ */
|
235
|
+
return /* @__PURE__ */ React5.createElement(Card, null, /* @__PURE__ */ React5.createElement(CardContent, { headless: true }, /* @__PURE__ */ React5.createElement("div", null, /* @__PURE__ */ React5.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__ */ React5.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ React5.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ React5.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ React5.createElement(
|
206
236
|
"path",
|
207
237
|
{
|
208
238
|
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
239
|
fill: "#FFFFFF"
|
210
240
|
}
|
211
|
-
), /* @__PURE__ */
|
241
|
+
), /* @__PURE__ */ React5.createElement(
|
212
242
|
"path",
|
213
243
|
{
|
214
244
|
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
245
|
fill: "#FFFFFF"
|
216
246
|
}
|
217
|
-
)), /* @__PURE__ */
|
247
|
+
)), /* @__PURE__ */ React5.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ React5.createElement("div", null, /* @__PURE__ */ React5.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ React5.createElement("div", null, " Chief Information Security Officer")))));
|
218
248
|
};
|
219
249
|
|
220
250
|
// blocks/misc/LeadGenerator.tsx
|
221
|
-
import
|
251
|
+
import React6 from "react";
|
222
252
|
import { useForm, Controller } from "react-hook-form";
|
223
253
|
var LeadGenerator = ({ texts, submitHandler }) => {
|
224
254
|
var _a;
|
@@ -230,14 +260,14 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
230
260
|
console.log("handleNewsletterSub props was not provided");
|
231
261
|
}
|
232
262
|
};
|
233
|
-
return /* @__PURE__ */
|
263
|
+
return /* @__PURE__ */ React6.createElement(Card, null, /* @__PURE__ */ React6.createElement(CardHeader, null, /* @__PURE__ */ React6.createElement(CardTitle, null, texts == null ? void 0 : texts.title), /* @__PURE__ */ React6.createElement(CardDescription, null, texts == null ? void 0 : texts.subtitle)), /* @__PURE__ */ React6.createElement(CardContent, null, /* @__PURE__ */ React6.createElement(
|
234
264
|
"form",
|
235
265
|
{
|
236
266
|
noValidate: true,
|
237
267
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
238
268
|
onSubmit: handleSubmit(onSubmit)
|
239
269
|
},
|
240
|
-
/* @__PURE__ */
|
270
|
+
/* @__PURE__ */ React6.createElement(
|
241
271
|
Controller,
|
242
272
|
{
|
243
273
|
name: "email",
|
@@ -250,27 +280,27 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
250
280
|
}
|
251
281
|
},
|
252
282
|
defaultValue: "",
|
253
|
-
render: ({ field }) => /* @__PURE__ */
|
283
|
+
render: ({ field }) => /* @__PURE__ */ React6.createElement(Input, { ...field, type: "email", placeholder: "example@sikka.io" })
|
254
284
|
}
|
255
285
|
),
|
256
|
-
/* @__PURE__ */
|
286
|
+
/* @__PURE__ */ React6.createElement(Button, { type: "submit", disabled: !formState.isValid }, (_a = texts == null ? void 0 : texts.submit) != null ? _a : "Submit")
|
257
287
|
)));
|
258
288
|
};
|
259
289
|
|
260
290
|
// blocks/misc/Announcement.tsx
|
261
|
-
import
|
291
|
+
import React7 from "react";
|
262
292
|
var Announcement = ({
|
263
293
|
onActionClick,
|
264
294
|
...props
|
265
295
|
}) => {
|
266
|
-
return /* @__PURE__ */
|
296
|
+
return /* @__PURE__ */ React7.createElement(Card, null, /* @__PURE__ */ React7.createElement(
|
267
297
|
CardContent,
|
268
298
|
{
|
269
299
|
headless: true,
|
270
300
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
271
301
|
},
|
272
|
-
/* @__PURE__ */
|
273
|
-
/* @__PURE__ */
|
302
|
+
/* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center " }, /* @__PURE__ */ React7.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ React7.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
|
303
|
+
/* @__PURE__ */ React7.createElement(
|
274
304
|
Button,
|
275
305
|
{
|
276
306
|
onClick: () => onActionClick(),
|
@@ -282,15 +312,15 @@ var Announcement = ({
|
|
282
312
|
};
|
283
313
|
|
284
314
|
// blocks/misc/NotFound.tsx
|
285
|
-
import
|
315
|
+
import React8 from "react";
|
286
316
|
var NotFound = ({ texts }) => {
|
287
|
-
return /* @__PURE__ */
|
317
|
+
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 dark:hawa-text-white" }, /* @__PURE__ */ React8.createElement("div", { className: "hawa-text-center hawa-text-6xl hawa-font-bold " }, "404"), /* @__PURE__ */ React8.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__ */ React8.createElement("div", { className: "hawa-mb-4 hawa-text-center" }, (texts == null ? void 0 : texts.ifLost) || /* @__PURE__ */ React8.createElement(React8.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ React8.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ React8.createElement(Button, { className: "hawa-w-full" }, (texts == null ? void 0 : texts.home) || "Home"))));
|
288
318
|
};
|
289
319
|
|
290
320
|
// blocks/misc/NoPermission.tsx
|
291
|
-
import
|
321
|
+
import React9 from "react";
|
292
322
|
var NoPermission = ({ texts }) => {
|
293
|
-
return /* @__PURE__ */
|
323
|
+
return /* @__PURE__ */ React9.createElement(Card, null, /* @__PURE__ */ React9.createElement(CardContent, { headless: true }, /* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ React9.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__ */ React9.createElement(
|
294
324
|
"svg",
|
295
325
|
{
|
296
326
|
stroke: "currentColor",
|
@@ -300,12 +330,12 @@ var NoPermission = ({ texts }) => {
|
|
300
330
|
height: "0.35em",
|
301
331
|
width: "0.35em"
|
302
332
|
},
|
303
|
-
/* @__PURE__ */
|
304
|
-
)), /* @__PURE__ */
|
333
|
+
/* @__PURE__ */ React9.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" })
|
334
|
+
)), /* @__PURE__ */ React9.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.title) || "You don't have permission"), /* @__PURE__ */ React9.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
335
|
};
|
306
336
|
|
307
337
|
// blocks/misc/ContactForm.tsx
|
308
|
-
import
|
338
|
+
import React10 from "react";
|
309
339
|
import { useForm as useForm2, Controller as Controller2 } from "react-hook-form";
|
310
340
|
import { zodResolver } from "@hookform/resolvers/zod";
|
311
341
|
import * as z from "zod";
|
@@ -377,7 +407,7 @@ var ContactForm = ({
|
|
377
407
|
console.log("Form is submitted but onSubmit prop is missing");
|
378
408
|
}
|
379
409
|
};
|
380
|
-
return /* @__PURE__ */
|
410
|
+
return /* @__PURE__ */ React10.createElement(
|
381
411
|
Card,
|
382
412
|
{
|
383
413
|
className: cn(
|
@@ -386,7 +416,7 @@ var ContactForm = ({
|
|
386
416
|
),
|
387
417
|
style: cardless ? { boxShadow: "none" } : void 0
|
388
418
|
},
|
389
|
-
/* @__PURE__ */
|
419
|
+
/* @__PURE__ */ React10.createElement(CardContent, { headless: true, className: cardless ? "!hawa-p-0" : "" }, /* @__PURE__ */ React10.createElement(
|
390
420
|
"form",
|
391
421
|
{
|
392
422
|
noValidate: true,
|
@@ -395,7 +425,7 @@ var ContactForm = ({
|
|
395
425
|
id: formId,
|
396
426
|
autoComplete: formAutoComplete
|
397
427
|
},
|
398
|
-
/* @__PURE__ */
|
428
|
+
/* @__PURE__ */ React10.createElement(
|
399
429
|
"div",
|
400
430
|
{
|
401
431
|
className: cn(
|
@@ -406,14 +436,14 @@ var ContactForm = ({
|
|
406
436
|
}
|
407
437
|
)
|
408
438
|
},
|
409
|
-
/* @__PURE__ */
|
439
|
+
/* @__PURE__ */ React10.createElement(
|
410
440
|
Controller2,
|
411
441
|
{
|
412
442
|
control,
|
413
443
|
name: "name",
|
414
444
|
render: ({ field }) => {
|
415
445
|
var _a2;
|
416
|
-
return /* @__PURE__ */
|
446
|
+
return /* @__PURE__ */ React10.createElement(
|
417
447
|
Input,
|
418
448
|
{
|
419
449
|
label: (texts == null ? void 0 : texts.name.label) || "Name",
|
@@ -426,14 +456,14 @@ var ContactForm = ({
|
|
426
456
|
}
|
427
457
|
}
|
428
458
|
),
|
429
|
-
/* @__PURE__ */
|
459
|
+
/* @__PURE__ */ React10.createElement(
|
430
460
|
Controller2,
|
431
461
|
{
|
432
462
|
control,
|
433
463
|
name: "email",
|
434
464
|
render: ({ field }) => {
|
435
465
|
var _a2;
|
436
|
-
return /* @__PURE__ */
|
466
|
+
return /* @__PURE__ */ React10.createElement(
|
437
467
|
Input,
|
438
468
|
{
|
439
469
|
label: (texts == null ? void 0 : texts.email.label) || "Email",
|
@@ -449,7 +479,7 @@ var ContactForm = ({
|
|
449
479
|
),
|
450
480
|
customFields && customFields.map((customField) => {
|
451
481
|
console.log("custom", customField);
|
452
|
-
return /* @__PURE__ */
|
482
|
+
return /* @__PURE__ */ React10.createElement(
|
453
483
|
Controller2,
|
454
484
|
{
|
455
485
|
control,
|
@@ -459,7 +489,7 @@ var ContactForm = ({
|
|
459
489
|
switch (type) {
|
460
490
|
case "text":
|
461
491
|
case "number":
|
462
|
-
return /* @__PURE__ */
|
492
|
+
return /* @__PURE__ */ React10.createElement(
|
463
493
|
Input,
|
464
494
|
{
|
465
495
|
id: customField.name,
|
@@ -470,7 +500,7 @@ var ContactForm = ({
|
|
470
500
|
}
|
471
501
|
);
|
472
502
|
case "select":
|
473
|
-
return /* @__PURE__ */
|
503
|
+
return /* @__PURE__ */ React10.createElement(
|
474
504
|
Select,
|
475
505
|
{
|
476
506
|
label,
|
@@ -480,20 +510,20 @@ var ContactForm = ({
|
|
480
510
|
}
|
481
511
|
);
|
482
512
|
default:
|
483
|
-
return /* @__PURE__ */
|
513
|
+
return /* @__PURE__ */ React10.createElement("div", null, "Unknown type");
|
484
514
|
}
|
485
515
|
}
|
486
516
|
}
|
487
517
|
);
|
488
518
|
}),
|
489
|
-
/* @__PURE__ */
|
519
|
+
/* @__PURE__ */ React10.createElement(
|
490
520
|
Controller2,
|
491
521
|
{
|
492
522
|
control,
|
493
523
|
name: "message",
|
494
524
|
render: ({ field }) => {
|
495
525
|
var _a2;
|
496
|
-
return /* @__PURE__ */
|
526
|
+
return /* @__PURE__ */ React10.createElement(
|
497
527
|
Textarea,
|
498
528
|
{
|
499
529
|
label: (texts == null ? void 0 : texts.message.label) || "Message",
|
@@ -510,7 +540,7 @@ var ContactForm = ({
|
|
510
540
|
}
|
511
541
|
}
|
512
542
|
),
|
513
|
-
/* @__PURE__ */
|
543
|
+
/* @__PURE__ */ React10.createElement(Button, { type: "submit", className: "hawa-w-full" }, (texts == null ? void 0 : texts.submit) || "Submit")
|
514
544
|
))
|
515
545
|
);
|
516
546
|
};
|