@sikka/hawa 0.35.1-next → 0.35.3-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/{DropdownMenu-K3ztliYc.d.mts → DropdownMenu-BYiPSEYy.d.mts} +1 -0
- package/dist/{DropdownMenu-CJblb-9q.d.ts → DropdownMenu-ChxqadLu.d.ts} +1 -0
- package/dist/alert/index.js +38 -37
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs +1 -0
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.js +74 -63
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +16 -5
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appTopbar/index.js +10 -1
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs +10 -1
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/backToTop/index.js +34 -33
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs +1 -0
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +255 -254
- package/dist/blocks/auth/index.mjs +4 -4
- package/dist/blocks/feedback/index.js +137 -136
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.d.mts +1 -1
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/index.js +521 -511
- package/dist/blocks/index.mjs +2 -2
- package/dist/blocks/misc/index.js +115 -114
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.js +121 -120
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/button/index.js +25 -24
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +1 -0
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.js +25 -24
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs +1 -0
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/{chunk-XJMDUR5A.mjs → chunk-7L2JUNG2.mjs} +1 -1
- package/dist/{chunk-GVZWOUGN.mjs → chunk-CD6AQVU3.mjs} +1 -1
- package/dist/{chunk-A376BKNX.mjs → chunk-JEZLVXSU.mjs} +1 -1
- package/dist/{chunk-YOT2GVXO.mjs → chunk-LVXG3SMD.mjs} +1 -1
- package/dist/{chunk-HHC34DXN.mjs → chunk-MVKP55SZ.mjs} +1 -1
- package/dist/{chunk-IDKXEJET.mjs → chunk-OW3WFRFQ.mjs} +43 -33
- package/dist/{chunk-XFRJ62W3.mjs → chunk-OWYGADJZ.mjs} +1 -1
- package/dist/{chunk-L56XQRQI.mjs → chunk-WABHQMUI.mjs} +1 -1
- package/dist/{chunk-DFWFQWWT.mjs → chunk-YNEQBAQC.mjs} +1 -1
- package/dist/{chunk-DABX3SU6.mjs → chunk-YP2CCKZG.mjs} +33 -32
- package/dist/codeBlock/index.js +45 -44
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +1 -0
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/dataTable/index.js +48 -38
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +11 -1
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.js +33 -32
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +1 -0
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/docsLayout/index.js +106 -105
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +1 -0
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.d.mts +1 -0
- package/dist/dropdownMenu/index.d.ts +1 -0
- package/dist/dropdownMenu/index.js +10 -1
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +10 -1
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +1 -1
- package/dist/elements/index.d.ts +1 -1
- package/dist/elements/index.js +441 -431
- package/dist/elements/index.mjs +3 -3
- package/dist/fileDropzone/index.js +71 -70
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +1 -0
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +881 -870
- package/dist/index.mjs +214 -203
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +196 -185
- package/dist/layout/index.mjs +3 -2
- package/dist/sortButton/index.js +32 -31
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs +1 -0
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.js +69 -59
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +46 -36
- package/dist/splitButton/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -43,7 +43,7 @@ __export(auth_exports, {
|
|
43
43
|
module.exports = __toCommonJS(auth_exports);
|
44
44
|
|
45
45
|
// blocks/auth/AuthButtons.tsx
|
46
|
-
var
|
46
|
+
var import_react5 = __toESM(require("react"));
|
47
47
|
|
48
48
|
// elements/button/Button.tsx
|
49
49
|
var React5 = __toESM(require("react"));
|
@@ -59,7 +59,8 @@ function cn(...inputs) {
|
|
59
59
|
var import_class_variance_authority = require("class-variance-authority");
|
60
60
|
|
61
61
|
// elements/helperText/HelperText.tsx
|
62
|
-
var
|
62
|
+
var import_react = __toESM(require("react"));
|
63
|
+
var HelperText = ({ helperText }) => /* @__PURE__ */ import_react.default.createElement(
|
63
64
|
"p",
|
64
65
|
{
|
65
66
|
className: cn(
|
@@ -74,9 +75,9 @@ var HelperText = ({ helperText }) => /* @__PURE__ */ React.createElement(
|
|
74
75
|
var React3 = __toESM(require("react"));
|
75
76
|
|
76
77
|
// elements/tooltip/Tooltip.tsx
|
77
|
-
var
|
78
|
+
var import_react2 = __toESM(require("react"));
|
78
79
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
79
|
-
var TooltipContent =
|
80
|
+
var TooltipContent = import_react2.default.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ import_react2.default.createElement(
|
80
81
|
TooltipPrimitive.Content,
|
81
82
|
{
|
82
83
|
ref,
|
@@ -93,7 +94,7 @@ var TooltipContent = import_react.default.forwardRef(({ className, sideOffset =
|
|
93
94
|
}
|
94
95
|
));
|
95
96
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
96
|
-
var TooltipArrow =
|
97
|
+
var TooltipArrow = import_react2.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ import_react2.default.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
|
97
98
|
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
98
99
|
var Tooltip = ({
|
99
100
|
side,
|
@@ -110,13 +111,13 @@ var Tooltip = ({
|
|
110
111
|
delayDuration = 300,
|
111
112
|
...props
|
112
113
|
}) => {
|
113
|
-
return /* @__PURE__ */
|
114
|
+
return /* @__PURE__ */ import_react2.default.createElement(
|
114
115
|
TooltipPrimitive.TooltipProvider,
|
115
116
|
{
|
116
117
|
delayDuration,
|
117
118
|
...providerProps
|
118
119
|
},
|
119
|
-
/* @__PURE__ */
|
120
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
120
121
|
TooltipPrimitive.Root,
|
121
122
|
{
|
122
123
|
open: !disabled && open,
|
@@ -124,8 +125,8 @@ var Tooltip = ({
|
|
124
125
|
onOpenChange,
|
125
126
|
...props
|
126
127
|
},
|
127
|
-
/* @__PURE__ */
|
128
|
-
/* @__PURE__ */
|
128
|
+
/* @__PURE__ */ import_react2.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
129
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
129
130
|
TooltipContent,
|
130
131
|
{
|
131
132
|
size,
|
@@ -187,7 +188,7 @@ var Label = React3.forwardRef(({ className, hint, hintSide, required, children,
|
|
187
188
|
Label.displayName = "Label";
|
188
189
|
|
189
190
|
// elements/loading/Loading.tsx
|
190
|
-
var
|
191
|
+
var import_react3 = __toESM(require("react"));
|
191
192
|
var Loading = ({
|
192
193
|
design = "spinner",
|
193
194
|
size = "normal",
|
@@ -218,7 +219,7 @@ var Loading = ({
|
|
218
219
|
};
|
219
220
|
switch (design.split("-")[0]) {
|
220
221
|
case "dots":
|
221
|
-
return /* @__PURE__ */
|
222
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
222
223
|
"div",
|
223
224
|
{
|
224
225
|
className: cn(
|
@@ -226,7 +227,7 @@ var Loading = ({
|
|
226
227
|
classNames == null ? void 0 : classNames.container
|
227
228
|
)
|
228
229
|
},
|
229
|
-
/* @__PURE__ */
|
230
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
230
231
|
"div",
|
231
232
|
{
|
232
233
|
className: cn(
|
@@ -237,7 +238,7 @@ var Loading = ({
|
|
237
238
|
)
|
238
239
|
}
|
239
240
|
),
|
240
|
-
/* @__PURE__ */
|
241
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
241
242
|
"div",
|
242
243
|
{
|
243
244
|
className: cn(
|
@@ -248,7 +249,7 @@ var Loading = ({
|
|
248
249
|
)
|
249
250
|
}
|
250
251
|
),
|
251
|
-
/* @__PURE__ */
|
252
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
252
253
|
"div",
|
253
254
|
{
|
254
255
|
className: cn(
|
@@ -261,7 +262,7 @@ var Loading = ({
|
|
261
262
|
)
|
262
263
|
);
|
263
264
|
case "square":
|
264
|
-
return /* @__PURE__ */
|
265
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
265
266
|
"svg",
|
266
267
|
{
|
267
268
|
className: cn(
|
@@ -273,7 +274,7 @@ var Loading = ({
|
|
273
274
|
height: "35",
|
274
275
|
width: "35"
|
275
276
|
},
|
276
|
-
/* @__PURE__ */
|
277
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
277
278
|
"rect",
|
278
279
|
{
|
279
280
|
className: "squircle-track",
|
@@ -285,7 +286,7 @@ var Loading = ({
|
|
285
286
|
height: "32.5"
|
286
287
|
}
|
287
288
|
),
|
288
|
-
/* @__PURE__ */
|
289
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
289
290
|
"rect",
|
290
291
|
{
|
291
292
|
className: "square-car",
|
@@ -300,7 +301,7 @@ var Loading = ({
|
|
300
301
|
)
|
301
302
|
);
|
302
303
|
case "squircle":
|
303
|
-
return /* @__PURE__ */
|
304
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
304
305
|
"svg",
|
305
306
|
{
|
306
307
|
x: "0px",
|
@@ -315,7 +316,7 @@ var Loading = ({
|
|
315
316
|
classNames == null ? void 0 : classNames.container
|
316
317
|
)
|
317
318
|
},
|
318
|
-
/* @__PURE__ */
|
319
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
319
320
|
"path",
|
320
321
|
{
|
321
322
|
className: cn("squircle-track", classNames == null ? void 0 : classNames.track),
|
@@ -325,7 +326,7 @@ var Loading = ({
|
|
325
326
|
d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
|
326
327
|
}
|
327
328
|
),
|
328
|
-
/* @__PURE__ */
|
329
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
329
330
|
"path",
|
330
331
|
{
|
331
332
|
className: cn("squircle-car", classNames == null ? void 0 : classNames.car),
|
@@ -337,7 +338,7 @@ var Loading = ({
|
|
337
338
|
)
|
338
339
|
);
|
339
340
|
case "progress":
|
340
|
-
return /* @__PURE__ */
|
341
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
341
342
|
"div",
|
342
343
|
{
|
343
344
|
className: cn(
|
@@ -348,9 +349,9 @@ var Loading = ({
|
|
348
349
|
}
|
349
350
|
);
|
350
351
|
case "orbit":
|
351
|
-
return /* @__PURE__ */
|
352
|
+
return /* @__PURE__ */ import_react3.default.createElement("div", { className: cn("orbit-container", classNames == null ? void 0 : classNames.container) });
|
352
353
|
default:
|
353
|
-
return /* @__PURE__ */
|
354
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
354
355
|
"svg",
|
355
356
|
{
|
356
357
|
viewBox: "0 0 40 40",
|
@@ -362,7 +363,7 @@ var Loading = ({
|
|
362
363
|
classNames == null ? void 0 : classNames.container
|
363
364
|
)
|
364
365
|
},
|
365
|
-
/* @__PURE__ */
|
366
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
366
367
|
"circle",
|
367
368
|
{
|
368
369
|
className: cn(
|
@@ -381,7 +382,7 @@ var Loading = ({
|
|
381
382
|
pathLength: "100"
|
382
383
|
}
|
383
384
|
),
|
384
|
-
/* @__PURE__ */
|
385
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
385
386
|
"circle",
|
386
387
|
{
|
387
388
|
className: cn(
|
@@ -476,9 +477,9 @@ var Button = React5.forwardRef(
|
|
476
477
|
Button.displayName = "Button";
|
477
478
|
|
478
479
|
// elements/logos/Logos.tsx
|
479
|
-
var
|
480
|
+
var import_react4 = __toESM(require("react"));
|
480
481
|
var Logos = {
|
481
|
-
metamask: (props) => /* @__PURE__ */
|
482
|
+
metamask: (props) => /* @__PURE__ */ import_react4.default.createElement(
|
482
483
|
"svg",
|
483
484
|
{
|
484
485
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -489,8 +490,8 @@ var Logos = {
|
|
489
490
|
viewBox: "0 0 318.6 318.6",
|
490
491
|
...props
|
491
492
|
},
|
492
|
-
/* @__PURE__ */
|
493
|
-
/* @__PURE__ */
|
493
|
+
/* @__PURE__ */ import_react4.default.createElement("style", null, ".st1,.st6{fill:#e4761b;stroke:#e4761b;stroke-linecap:round;stroke-linejoin:round}.st6{fill:#f6851b;stroke:#f6851b}"),
|
494
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
494
495
|
"path",
|
495
496
|
{
|
496
497
|
fill: "#e2761b",
|
@@ -500,21 +501,21 @@ var Logos = {
|
|
500
501
|
d: "m274.1 35.5-99.5 73.9L193 65.8z"
|
501
502
|
}
|
502
503
|
),
|
503
|
-
/* @__PURE__ */
|
504
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
504
505
|
"path",
|
505
506
|
{
|
506
507
|
d: "m44.4 35.5 98.7 74.6-17.5-44.3zm193.9 171.3-26.5 40.6 56.7 15.6 16.3-55.3zm-204.4.9L50.1 263l56.7-15.6-26.5-40.6z",
|
507
508
|
className: "st1"
|
508
509
|
}
|
509
510
|
),
|
510
|
-
/* @__PURE__ */
|
511
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
511
512
|
"path",
|
512
513
|
{
|
513
514
|
d: "m103.6 138.2-15.8 23.9 56.3 2.5-2-60.5zm111.3 0-39-34.8-1.3 61.2 56.2-2.5zM106.8 247.4l33.8-16.5-29.2-22.8zm71.1-16.5 33.9 16.5-4.7-39.3z",
|
514
515
|
className: "st1"
|
515
516
|
}
|
516
517
|
),
|
517
|
-
/* @__PURE__ */
|
518
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
518
519
|
"path",
|
519
520
|
{
|
520
521
|
fill: "#d7c1b3",
|
@@ -524,7 +525,7 @@ var Logos = {
|
|
524
525
|
d: "m211.8 247.4-33.9-16.5 2.7 22.1-.3 9.3zm-105 0 31.5 14.9-.2-9.3 2.5-22.1z"
|
525
526
|
}
|
526
527
|
),
|
527
|
-
/* @__PURE__ */
|
528
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
528
529
|
"path",
|
529
530
|
{
|
530
531
|
fill: "#233447",
|
@@ -534,7 +535,7 @@ var Logos = {
|
|
534
535
|
d: "m138.8 193.5-28.2-8.3 19.9-9.1zm40.9 0 8.3-17.4 20 9.1z"
|
535
536
|
}
|
536
537
|
),
|
537
|
-
/* @__PURE__ */
|
538
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
538
539
|
"path",
|
539
540
|
{
|
540
541
|
fill: "#cd6116",
|
@@ -544,7 +545,7 @@ var Logos = {
|
|
544
545
|
d: "m106.8 247.4 4.8-40.6-31.3.9zM207 206.8l4.8 40.6 26.5-39.7zm23.8-44.7-56.2 2.5 5.2 28.9 8.3-17.4 20 9.1zm-120.2 23.1 20-9.1 8.2 17.4 5.3-28.9-56.3-2.5z"
|
545
546
|
}
|
546
547
|
),
|
547
|
-
/* @__PURE__ */
|
548
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
548
549
|
"path",
|
549
550
|
{
|
550
551
|
fill: "#e4751f",
|
@@ -554,14 +555,14 @@ var Logos = {
|
|
554
555
|
d: "m87.8 162.1 23.6 46-.8-22.9zm120.3 23.1-1 22.9 23.7-46zm-64-20.6-5.3 28.9 6.6 34.1 1.5-44.9zm30.5 0-2.7 18 1.2 45 6.7-34.1z"
|
555
556
|
}
|
556
557
|
),
|
557
|
-
/* @__PURE__ */
|
558
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
558
559
|
"path",
|
559
560
|
{
|
560
561
|
d: "m179.8 193.5-6.7 34.1 4.8 3.3 29.2-22.8 1-22.9zm-69.2-8.3.8 22.9 29.2 22.8 4.8-3.3-6.6-34.1z",
|
561
562
|
className: "st6"
|
562
563
|
}
|
563
564
|
),
|
564
|
-
/* @__PURE__ */
|
565
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
565
566
|
"path",
|
566
567
|
{
|
567
568
|
fill: "#c0ad9e",
|
@@ -571,7 +572,7 @@ var Logos = {
|
|
571
572
|
d: "m180.3 262.3.3-9.3-2.5-2.2h-37.7l-2.3 2.2.2 9.3-31.5-14.9 11 9 22.3 15.5h38.3l22.4-15.5 11-9z"
|
572
573
|
}
|
573
574
|
),
|
574
|
-
/* @__PURE__ */
|
575
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
575
576
|
"path",
|
576
577
|
{
|
577
578
|
fill: "#161616",
|
@@ -581,7 +582,7 @@ var Logos = {
|
|
581
582
|
d: "m177.9 230.9-4.8-3.3h-27.7l-4.8 3.3-2.5 22.1 2.3-2.2h37.7l2.5 2.2z"
|
582
583
|
}
|
583
584
|
),
|
584
|
-
/* @__PURE__ */
|
585
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
585
586
|
"path",
|
586
587
|
{
|
587
588
|
fill: "#763d16",
|
@@ -591,7 +592,7 @@ var Logos = {
|
|
591
592
|
d: "m278.3 114.2 8.5-40.8-12.7-37.9-96.2 71.4 37 31.3 52.3 15.3 11.6-13.5-5-3.6 8-7.3-6.2-4.8 8-6.1zM31.8 73.4l8.5 40.8-5.4 4 8 6.1-6.1 4.8 8 7.3-5 3.6 11.5 13.5 52.3-15.3 37-31.3-96.2-71.4z"
|
592
593
|
}
|
593
594
|
),
|
594
|
-
/* @__PURE__ */
|
595
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
595
596
|
"path",
|
596
597
|
{
|
597
598
|
d: "m267.2 153.5-52.3-15.3 15.9 23.9-23.7 46 31.2-.4h46.5zm-163.6-15.3-52.3 15.3-17.4 54.2h46.4l31.1.4-23.6-46zm71 26.4 3.3-57.7 15.2-41.1h-67.5l15 41.1 3.5 57.7 1.2 18.2.1 44.8h27.7l.2-44.8z",
|
@@ -599,7 +600,7 @@ var Logos = {
|
|
599
600
|
}
|
600
601
|
)
|
601
602
|
),
|
602
|
-
nafath: (props) => /* @__PURE__ */
|
603
|
+
nafath: (props) => /* @__PURE__ */ import_react4.default.createElement(
|
603
604
|
"svg",
|
604
605
|
{
|
605
606
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -610,15 +611,15 @@ var Logos = {
|
|
610
611
|
viewBox: "22.5 44.5 535.6 230.34",
|
611
612
|
...props
|
612
613
|
},
|
613
|
-
/* @__PURE__ */
|
614
|
-
/* @__PURE__ */
|
614
|
+
/* @__PURE__ */ import_react4.default.createElement("style", null, ".st0{fill:#0a9a8f}"),
|
615
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
615
616
|
"path",
|
616
617
|
{
|
617
618
|
d: "M426.1 233.8c1.5.2 2.4.4 3.3.4 21.3 0 42.7.1 64-.1 12.7-.1 20-6.8 20.4-19.4.6-21 .6-42 .6-63 0-3.9 1.1-6.1 4.7-7.9 10.9-5.4 21.5-11.2 32.3-16.8 1.3-.7 2.7-1.3 4.5-2.1.1 1.4.3 2.4.3 3.5 0 29.1.5 58.2-.2 87.3-.5 21.8-9.4 39.7-29.1 51-10.1 5.8-21.3 7.9-32.7 7.9-32.1.2-64.1.2-96.2 0-8.2-.1-16.4-1.8-24.6-2.1-5.5-.2-11 1.1-16.6 1.4-9.3.4-18.7.7-28 .8-26.3.1-52.6.3-78.9-.1-7.8-.1-15.9-1.2-23.4-3.4-22.7-7-34.9-23.3-38.8-46.2-.8-4.9-1-9.9-1-14.9-.1-42.5 0-85-.1-127.5 0-3.6.9-5.6 4.2-7.2 11-5.5 21.8-11.3 32.7-16.9 1.3-.7 2.7-1.3 4.8-2.3v149c0 3.7.2 7.5.7 11.2 1.5 11.1 7.6 17.5 18.7 17.7 22.6.4 45.1.1 67.7.1.4 0 .9-.3 1.9-.6-1-2-1.9-3.9-2.9-5.7-16-27.8-11.5-65.2 7-87.2 11-13.2 25.3-20.4 42.3-21.9 17.3-1.5 33.9.9 48.1 12.1 15.4 12.1 23.3 28.3 25.8 47.5 2.6 19.1-.9 36.8-10.8 53.3-.1.3-.2.9-.7 2.1zm-27.4-48.1c-.8-3.2-1.5-9.2-3.9-14.4-4.9-10.6-13.9-14.9-25.5-14.3-10.4.6-17.9 5.9-21.5 15.7-7.4 19.7 1.5 44.7 19.4 55.5 3.2 1.9 5.8 2 8.9-.1 14.2-9.4 21.9-22.5 22.6-42.4zM78.7 155.1c6.8-11.7 13.6-23.2 20.5-35 13.5 8.1 25.5 17.4 35.1 29.4 18.1 22.4 24.3 48.2 21.3 76.5-.7 6.9-2.2 13.9-4.6 20.4-6 16.6-18.8 26.3-35.8 27.1-30.6 1.4-61.2.8-91.9 1.1-.1 0-.3-.1-.8-.4.4-1 .7-2.2 1.2-3.2 5.7-11 11.6-22 17.2-33.1 1.4-2.7 3-3.7 6.1-3.7 15.4.2 30.8-.4 46.2.2 18.1.7 21.6-10.1 21.2-23-.7-23.6-12.1-40.9-31.6-53.4-1.1-.9-2.4-1.8-4.1-2.9zM536.2 44.5c13.4 0 21.9 8.4 21.9 21.7 0 14.4-7.4 22.1-21.5 22.3-13.4.2-22-8.4-22.1-22.1 0-13.3 8.4-21.9 21.7-21.9zM121.1 66.4c0 14.8-7.3 22.3-21.5 22.1-13.5-.2-22-9-21.9-22.5.2-13.2 8.8-21.5 22.3-21.5 13.2.1 21.1 8.3 21.1 21.9z",
|
618
619
|
className: "st0"
|
619
620
|
}
|
620
621
|
),
|
621
|
-
/* @__PURE__ */
|
622
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
622
623
|
"path",
|
623
624
|
{
|
624
625
|
d: "M393 71.1c-.1 14.7-6.8 21.6-21.3 21.6-13.9 0-21.9-8.1-21.9-22.1 0-13.7 8.3-21.6 22.4-21.5 13.3.1 20.8 8.2 20.8 22z",
|
@@ -626,7 +627,7 @@ var Logos = {
|
|
626
627
|
}
|
627
628
|
)
|
628
629
|
),
|
629
|
-
hawa: (props) => /* @__PURE__ */
|
630
|
+
hawa: (props) => /* @__PURE__ */ import_react4.default.createElement(
|
630
631
|
"svg",
|
631
632
|
{
|
632
633
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -634,7 +635,7 @@ var Logos = {
|
|
634
635
|
viewBox: "0 0 765 765",
|
635
636
|
...props
|
636
637
|
},
|
637
|
-
/* @__PURE__ */
|
638
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
638
639
|
"path",
|
639
640
|
{
|
640
641
|
d: "M382.5 0C171.6 0 0 171.6 0 382.5V765h382.5C593.4 765 765 593.4 765 382.5S593.4 0 382.5 0zM281.6 305.7c98 0 177.7 79.7 177.7 177.7 0 98-79.7 177.7-177.7 177.7s-177.7-79.7-177.7-177.7c0-98 79.7-177.7 177.7-177.7zm246 314.5c23.2-41.6 35.6-88.7 35.6-136.7 0-155.3-126.3-281.6-281.6-281.6-48 0-95.1 12.4-136.8 35.6C194.9 156 285 104 382.5 104c153.6 0 278.6 125 278.6 278.6 0 97.3-52 187.5-133.5 237.6z",
|
@@ -642,7 +643,7 @@ var Logos = {
|
|
642
643
|
}
|
643
644
|
)
|
644
645
|
),
|
645
|
-
sikka: (props) => /* @__PURE__ */
|
646
|
+
sikka: (props) => /* @__PURE__ */ import_react4.default.createElement(
|
646
647
|
"svg",
|
647
648
|
{
|
648
649
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -652,11 +653,11 @@ var Logos = {
|
|
652
653
|
fill: "currentColor",
|
653
654
|
...props
|
654
655
|
},
|
655
|
-
/* @__PURE__ */
|
656
|
-
/* @__PURE__ */
|
657
|
-
/* @__PURE__ */
|
656
|
+
/* @__PURE__ */ import_react4.default.createElement("defs", null, /* @__PURE__ */ import_react4.default.createElement("path", { id: "a", d: "M0 0h916.5v765H0z" })),
|
657
|
+
/* @__PURE__ */ import_react4.default.createElement("clipPath", { id: "b" }, /* @__PURE__ */ import_react4.default.createElement("use", { xlinkHref: "#a", overflow: "visible" })),
|
658
|
+
/* @__PURE__ */ import_react4.default.createElement("g", { clipPath: "url(#b)" }, /* @__PURE__ */ import_react4.default.createElement("defs", null, /* @__PURE__ */ import_react4.default.createElement("path", { id: "c", d: "M0 0h916.5v765H0z" })), /* @__PURE__ */ import_react4.default.createElement("clipPath", { id: "d" }, /* @__PURE__ */ import_react4.default.createElement("use", { xlinkHref: "#c", overflow: "visible" })), /* @__PURE__ */ import_react4.default.createElement("g", { clipPath: "url(#d)" }, /* @__PURE__ */ import_react4.default.createElement("path", { d: "M458.3 0h-31.9c-14.6 0-26.5 11.9-26.5 26.3v313.3L136.6 17.1C126 3.9 120.7 0 106.1 0H9.7C.5 0 0 7.9 0 17.1 0 21 1.3 26.3 4 29l288.7 353.6L4 736.1c-2.7 2.7-4 7.9-4 11.8 0 9.2.4 17.1 9.7 17.1h96.4c14.6 0 19.9-3.9 30.5-17.1l263.3-322.5v313.3c0 14.4 11.9 26.3 26.5 26.3h31.9M458.3 765h31.9c14.6 0 26.5-11.8 26.5-26.3V425.5L780 748c10.7 13.2 15.9 17.1 30.5 17.1h96.4c9.2 0 9.7-7.9 9.7-17.1 0-3.9-1.3-9.2-4-11.8L623.8 382.5 912.5 28.9c2.7-2.7 4-7.9 4-11.9 0-9.2-.5-17.1-9.7-17.1h-96.4c-14.6 0-19.9 3.9-30.5 17.1L516.7 339.5V26.3c0-14.4-11.9-26.3-26.5-26.3h-31.9" })))
|
658
659
|
),
|
659
|
-
mail: (props) => /* @__PURE__ */
|
660
|
+
mail: (props) => /* @__PURE__ */ import_react4.default.createElement(
|
660
661
|
"svg",
|
661
662
|
{
|
662
663
|
stroke: "currentColor",
|
@@ -668,10 +669,10 @@ var Logos = {
|
|
668
669
|
xmlns: "http://www.w3.org/2000/svg",
|
669
670
|
...props
|
670
671
|
},
|
671
|
-
/* @__PURE__ */
|
672
|
-
/* @__PURE__ */
|
672
|
+
/* @__PURE__ */ import_react4.default.createElement("path", { d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" }),
|
673
|
+
/* @__PURE__ */ import_react4.default.createElement("polyline", { points: "22,6 12,13 2,6" })
|
673
674
|
),
|
674
|
-
phone: (props) => /* @__PURE__ */
|
675
|
+
phone: (props) => /* @__PURE__ */ import_react4.default.createElement(
|
675
676
|
"svg",
|
676
677
|
{
|
677
678
|
stroke: "currentColor",
|
@@ -682,7 +683,7 @@ var Logos = {
|
|
682
683
|
xmlns: "http://www.w3.org/2000/svg",
|
683
684
|
...props
|
684
685
|
},
|
685
|
-
/* @__PURE__ */
|
686
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
686
687
|
"path",
|
687
688
|
{
|
688
689
|
strokeLinecap: "round",
|
@@ -691,14 +692,14 @@ var Logos = {
|
|
691
692
|
}
|
692
693
|
)
|
693
694
|
),
|
694
|
-
twitter: (props) => /* @__PURE__ */
|
695
|
+
twitter: (props) => /* @__PURE__ */ import_react4.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react4.default.createElement(
|
695
696
|
"path",
|
696
697
|
{
|
697
698
|
fill: "currentColor",
|
698
699
|
d: "M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148a13.98 13.98 0 0 0 10.15 5.144 4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 0 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z"
|
699
700
|
}
|
700
701
|
)),
|
701
|
-
instagram: (props) => /* @__PURE__ */
|
702
|
+
instagram: (props) => /* @__PURE__ */ import_react4.default.createElement(
|
702
703
|
"svg",
|
703
704
|
{
|
704
705
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -706,23 +707,23 @@ var Logos = {
|
|
706
707
|
viewBox: "0 0 16 16",
|
707
708
|
...props
|
708
709
|
},
|
709
|
-
/* @__PURE__ */
|
710
|
+
/* @__PURE__ */ import_react4.default.createElement("path", { d: "M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z" })
|
710
711
|
),
|
711
|
-
microsoft: (props) => /* @__PURE__ */
|
712
|
+
microsoft: (props) => /* @__PURE__ */ import_react4.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...props }, /* @__PURE__ */ import_react4.default.createElement(
|
712
713
|
"path",
|
713
714
|
{
|
714
715
|
fill: "currentColor",
|
715
716
|
d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"
|
716
717
|
}
|
717
718
|
)),
|
718
|
-
github: (props) => /* @__PURE__ */
|
719
|
+
github: (props) => /* @__PURE__ */ import_react4.default.createElement(
|
719
720
|
"svg",
|
720
721
|
{
|
721
722
|
xmlns: "http://www.w3.org/2000/svg",
|
722
723
|
viewBox: "0 0 438.549 438.549",
|
723
724
|
...props
|
724
725
|
},
|
725
|
-
/* @__PURE__ */
|
726
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
726
727
|
"path",
|
727
728
|
{
|
728
729
|
fill: "currentColor",
|
@@ -730,77 +731,77 @@ var Logos = {
|
|
730
731
|
}
|
731
732
|
)
|
732
733
|
),
|
733
|
-
radix: (props) => /* @__PURE__ */
|
734
|
+
radix: (props) => /* @__PURE__ */ import_react4.default.createElement("svg", { viewBox: "0 0 25 25", fill: "none", ...props }, /* @__PURE__ */ import_react4.default.createElement(
|
734
735
|
"path",
|
735
736
|
{
|
736
737
|
d: "M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",
|
737
738
|
fill: "currentcolor"
|
738
739
|
}
|
739
|
-
), /* @__PURE__ */
|
740
|
+
), /* @__PURE__ */ import_react4.default.createElement("path", { d: "M12 0H4V8H12V0Z", fill: "currentcolor" }), /* @__PURE__ */ import_react4.default.createElement(
|
740
741
|
"path",
|
741
742
|
{
|
742
743
|
d: "M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z",
|
743
744
|
fill: "currentcolor"
|
744
745
|
}
|
745
746
|
)),
|
746
|
-
aria: (props) => /* @__PURE__ */
|
747
|
-
npm: (props) => /* @__PURE__ */
|
747
|
+
aria: (props) => /* @__PURE__ */ import_react4.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", fill: "currentColor", ...props }, /* @__PURE__ */ import_react4.default.createElement("path", { d: "M13.966 22.624l-1.69-4.281H8.122l3.892-9.144 5.662 13.425zM8.884 1.376H0v21.248zm15.116 0h-8.884L24 22.624Z" })),
|
748
|
+
npm: (props) => /* @__PURE__ */ import_react4.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react4.default.createElement(
|
748
749
|
"path",
|
749
750
|
{
|
750
751
|
d: "M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",
|
751
752
|
fill: "currentColor"
|
752
753
|
}
|
753
754
|
)),
|
754
|
-
yarn: (props) => /* @__PURE__ */
|
755
|
+
yarn: (props) => /* @__PURE__ */ import_react4.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react4.default.createElement(
|
755
756
|
"path",
|
756
757
|
{
|
757
758
|
d: "M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z",
|
758
759
|
fill: "currentColor"
|
759
760
|
}
|
760
761
|
)),
|
761
|
-
pnpm: (props) => /* @__PURE__ */
|
762
|
+
pnpm: (props) => /* @__PURE__ */ import_react4.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react4.default.createElement(
|
762
763
|
"path",
|
763
764
|
{
|
764
765
|
d: "M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z",
|
765
766
|
fill: "currentColor"
|
766
767
|
}
|
767
768
|
)),
|
768
|
-
react: (props) => /* @__PURE__ */
|
769
|
+
react: (props) => /* @__PURE__ */ import_react4.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react4.default.createElement(
|
769
770
|
"path",
|
770
771
|
{
|
771
772
|
d: "M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z",
|
772
773
|
fill: "currentColor"
|
773
774
|
}
|
774
775
|
)),
|
775
|
-
tailwind: (props) => /* @__PURE__ */
|
776
|
+
tailwind: (props) => /* @__PURE__ */ import_react4.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react4.default.createElement(
|
776
777
|
"path",
|
777
778
|
{
|
778
779
|
d: "M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z",
|
779
780
|
fill: "currentColor"
|
780
781
|
}
|
781
782
|
)),
|
782
|
-
google: (props) => /* @__PURE__ */
|
783
|
+
google: (props) => /* @__PURE__ */ import_react4.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react4.default.createElement(
|
783
784
|
"path",
|
784
785
|
{
|
785
786
|
fill: "currentColor",
|
786
787
|
d: "M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
|
787
788
|
}
|
788
789
|
)),
|
789
|
-
apple: (props) => /* @__PURE__ */
|
790
|
+
apple: (props) => /* @__PURE__ */ import_react4.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react4.default.createElement(
|
790
791
|
"path",
|
791
792
|
{
|
792
793
|
d: "M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",
|
793
794
|
fill: "currentColor"
|
794
795
|
}
|
795
796
|
)),
|
796
|
-
paypal: (props) => /* @__PURE__ */
|
797
|
+
paypal: (props) => /* @__PURE__ */ import_react4.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react4.default.createElement(
|
797
798
|
"path",
|
798
799
|
{
|
799
800
|
d: "M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z",
|
800
801
|
fill: "currentColor"
|
801
802
|
}
|
802
803
|
)),
|
803
|
-
spinner: (props) => /* @__PURE__ */
|
804
|
+
spinner: (props) => /* @__PURE__ */ import_react4.default.createElement(
|
804
805
|
"svg",
|
805
806
|
{
|
806
807
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -814,9 +815,9 @@ var Logos = {
|
|
814
815
|
strokeLinejoin: "round",
|
815
816
|
...props
|
816
817
|
},
|
817
|
-
/* @__PURE__ */
|
818
|
+
/* @__PURE__ */ import_react4.default.createElement("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
818
819
|
),
|
819
|
-
whatsapp: (props) => /* @__PURE__ */
|
820
|
+
whatsapp: (props) => /* @__PURE__ */ import_react4.default.createElement(
|
820
821
|
"svg",
|
821
822
|
{
|
822
823
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -824,14 +825,14 @@ var Logos = {
|
|
824
825
|
fill: "currentColor",
|
825
826
|
...props
|
826
827
|
},
|
827
|
-
/* @__PURE__ */
|
828
|
+
/* @__PURE__ */ import_react4.default.createElement("path", { d: "M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z" })
|
828
829
|
)
|
829
830
|
};
|
830
831
|
|
831
832
|
// blocks/auth/AuthButtons.tsx
|
832
833
|
var AuthButtons = (props) => {
|
833
834
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
834
|
-
return /* @__PURE__ */
|
835
|
+
return /* @__PURE__ */ import_react5.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, props.viaMetamask && /* @__PURE__ */ import_react5.default.createElement(
|
835
836
|
Button,
|
836
837
|
{
|
837
838
|
disabled: props.isMetamaskLoading,
|
@@ -839,9 +840,9 @@ var AuthButtons = (props) => {
|
|
839
840
|
variant: "outline",
|
840
841
|
onClick: props.handleMetamask
|
841
842
|
},
|
842
|
-
props.isMetamaskLoading ? /* @__PURE__ */
|
843
|
+
props.isMetamaskLoading ? /* @__PURE__ */ import_react5.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react5.default.createElement(Logos.metamask, { className: "hawa-h-6" }),
|
843
844
|
(_b = (_a = props.texts) == null ? void 0 : _a.continueWithMetamask) != null ? _b : "Connect Metamask"
|
844
|
-
), props.viaNafath && /* @__PURE__ */
|
845
|
+
), props.viaNafath && /* @__PURE__ */ import_react5.default.createElement(
|
845
846
|
Button,
|
846
847
|
{
|
847
848
|
disabled: props.isNafathLoading,
|
@@ -849,9 +850,9 @@ var AuthButtons = (props) => {
|
|
849
850
|
variant: "outline",
|
850
851
|
onClick: props.handleNafath
|
851
852
|
},
|
852
|
-
props.isNafathLoading ? /* @__PURE__ */
|
853
|
+
props.isNafathLoading ? /* @__PURE__ */ import_react5.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react5.default.createElement(Logos.nafath, { className: "hawa-h-4" }),
|
853
854
|
(_d = (_c = props.texts) == null ? void 0 : _c.continueWithNafath) != null ? _d : "Continue With Nafath"
|
854
|
-
), props.viaGoogle && /* @__PURE__ */
|
855
|
+
), props.viaGoogle && /* @__PURE__ */ import_react5.default.createElement(
|
855
856
|
Button,
|
856
857
|
{
|
857
858
|
disabled: props.isGoogleLoading,
|
@@ -859,9 +860,9 @@ var AuthButtons = (props) => {
|
|
859
860
|
variant: "outline",
|
860
861
|
onClick: props.handleGoogle
|
861
862
|
},
|
862
|
-
props.isGoogleLoading ? /* @__PURE__ */
|
863
|
+
props.isGoogleLoading ? /* @__PURE__ */ import_react5.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react5.default.createElement(Logos.google, { className: "hawa-icon" }),
|
863
864
|
(_f = (_e = props.texts) == null ? void 0 : _e.continueWithGoogle) != null ? _f : "Continue With Google"
|
864
|
-
), props.viaGithub && /* @__PURE__ */
|
865
|
+
), props.viaGithub && /* @__PURE__ */ import_react5.default.createElement(
|
865
866
|
Button,
|
866
867
|
{
|
867
868
|
disabled: props.isGithubLoading,
|
@@ -869,9 +870,9 @@ var AuthButtons = (props) => {
|
|
869
870
|
variant: "outline",
|
870
871
|
onClick: props.handleGithub
|
871
872
|
},
|
872
|
-
props.isGithubLoading ? /* @__PURE__ */
|
873
|
+
props.isGithubLoading ? /* @__PURE__ */ import_react5.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react5.default.createElement(Logos.github, { className: "hawa-icon" }),
|
873
874
|
(_h = (_g = props.texts) == null ? void 0 : _g.continueWithGithub) != null ? _h : "Continue With Github"
|
874
|
-
), props.viaTwitter && /* @__PURE__ */
|
875
|
+
), props.viaTwitter && /* @__PURE__ */ import_react5.default.createElement(
|
875
876
|
Button,
|
876
877
|
{
|
877
878
|
disabled: props.isTwitterLoading,
|
@@ -879,9 +880,9 @@ var AuthButtons = (props) => {
|
|
879
880
|
variant: "outline",
|
880
881
|
onClick: props.handleTwitter
|
881
882
|
},
|
882
|
-
props.isTwitterLoading ? /* @__PURE__ */
|
883
|
+
props.isTwitterLoading ? /* @__PURE__ */ import_react5.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react5.default.createElement(Logos.twitter, { className: "hawa-icon" }),
|
883
884
|
(_j = (_i = props.texts) == null ? void 0 : _i.continueWithTwitter) != null ? _j : "Continue With Twitter"
|
884
|
-
), props.viaApple && /* @__PURE__ */
|
885
|
+
), props.viaApple && /* @__PURE__ */ import_react5.default.createElement(
|
885
886
|
Button,
|
886
887
|
{
|
887
888
|
disabled: props.isAppleLoading,
|
@@ -889,9 +890,9 @@ var AuthButtons = (props) => {
|
|
889
890
|
variant: "outline",
|
890
891
|
onClick: props.handleApple
|
891
892
|
},
|
892
|
-
props.isAppleLoading ? /* @__PURE__ */
|
893
|
+
props.isAppleLoading ? /* @__PURE__ */ import_react5.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react5.default.createElement(Logos.apple, { className: "hawa-icon" }),
|
893
894
|
(_l = (_k = props.texts) == null ? void 0 : _k.continueWithApple) != null ? _l : "Continue With Apple"
|
894
|
-
), props.viaMicrosoft && /* @__PURE__ */
|
895
|
+
), props.viaMicrosoft && /* @__PURE__ */ import_react5.default.createElement(
|
895
896
|
Button,
|
896
897
|
{
|
897
898
|
disabled: props.isMicrosoftLoading,
|
@@ -899,9 +900,9 @@ var AuthButtons = (props) => {
|
|
899
900
|
variant: "outline",
|
900
901
|
onClick: props.handleMicrosoft
|
901
902
|
},
|
902
|
-
props.isMicrosoftLoading ? /* @__PURE__ */
|
903
|
+
props.isMicrosoftLoading ? /* @__PURE__ */ import_react5.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react5.default.createElement(Logos.microsoft, { className: "hawa-icon" }),
|
903
904
|
(_n = (_m = props.texts) == null ? void 0 : _m.continueWithMicrosoft) != null ? _n : "Continue With Microsoft"
|
904
|
-
), props.viaEmail && /* @__PURE__ */
|
905
|
+
), props.viaEmail && /* @__PURE__ */ import_react5.default.createElement(
|
905
906
|
Button,
|
906
907
|
{
|
907
908
|
disabled: props.isEmailLoading,
|
@@ -909,9 +910,9 @@ var AuthButtons = (props) => {
|
|
909
910
|
variant: "outline",
|
910
911
|
onClick: props.handleEmail
|
911
912
|
},
|
912
|
-
props.isEmailLoading ? /* @__PURE__ */
|
913
|
+
props.isEmailLoading ? /* @__PURE__ */ import_react5.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react5.default.createElement(Logos.mail, { className: "hawa-icon" }),
|
913
914
|
(_p = (_o = props.texts) == null ? void 0 : _o.continueWithEmail) != null ? _p : "Continue With Email"
|
914
|
-
), props.viaPhone && /* @__PURE__ */
|
915
|
+
), props.viaPhone && /* @__PURE__ */ import_react5.default.createElement(
|
915
916
|
Button,
|
916
917
|
{
|
917
918
|
disabled: props.isPhoneLoading,
|
@@ -919,21 +920,21 @@ var AuthButtons = (props) => {
|
|
919
920
|
variant: "outline",
|
920
921
|
onClick: props.handlePhone
|
921
922
|
},
|
922
|
-
props.isPhoneLoading ? /* @__PURE__ */
|
923
|
+
props.isPhoneLoading ? /* @__PURE__ */ import_react5.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react5.default.createElement(Logos.phone, { className: "hawa-icon" }),
|
923
924
|
(_r = (_q = props.texts) == null ? void 0 : _q.continueWithPhone) != null ? _r : "Continue With Phone"
|
924
925
|
));
|
925
926
|
};
|
926
927
|
|
927
928
|
// blocks/auth/LoginForm.tsx
|
928
|
-
var
|
929
|
-
var
|
929
|
+
var import_react14 = __toESM(require("react"));
|
930
|
+
var import_react15 = require("react");
|
930
931
|
var import_react_hook_form = require("react-hook-form");
|
931
932
|
var import_zod = require("@hookform/resolvers/zod");
|
932
933
|
var import_libphonenumber_js = require("libphonenumber-js");
|
933
934
|
var z = __toESM(require("zod"));
|
934
935
|
|
935
936
|
// elements/alert/Alert.tsx
|
936
|
-
var
|
937
|
+
var import_react6 = __toESM(require("react"));
|
937
938
|
var Alert = ({
|
938
939
|
direction = "ltr",
|
939
940
|
severity = "none",
|
@@ -942,9 +943,9 @@ var Alert = ({
|
|
942
943
|
className,
|
943
944
|
...props
|
944
945
|
}) => {
|
945
|
-
const alertRef = (0,
|
946
|
-
const [closed, setClosed] = (0,
|
947
|
-
(0,
|
946
|
+
const alertRef = (0, import_react6.useRef)(null);
|
947
|
+
const [closed, setClosed] = (0, import_react6.useState)(false);
|
948
|
+
(0, import_react6.useEffect)(() => {
|
948
949
|
if (duration) {
|
949
950
|
const timeoutHide = setTimeout(() => {
|
950
951
|
setClosed(true);
|
@@ -979,7 +980,7 @@ var Alert = ({
|
|
979
980
|
hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-700 hawa-via-red-500 hawa-to-yellow-600 ",
|
980
981
|
oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-500 hawa-via-blue-700 hawa-to-purple-500"
|
981
982
|
};
|
982
|
-
return /* @__PURE__ */
|
983
|
+
return /* @__PURE__ */ import_react6.default.createElement("div", { ref: alertRef }, /* @__PURE__ */ import_react6.default.createElement(
|
983
984
|
"div",
|
984
985
|
{
|
985
986
|
"data-testid": "alert",
|
@@ -993,13 +994,13 @@ var Alert = ({
|
|
993
994
|
className
|
994
995
|
)
|
995
996
|
},
|
996
|
-
/* @__PURE__ */
|
997
|
+
/* @__PURE__ */ import_react6.default.createElement("div", { className: "hawa-flex hawa-flex-row" }, icon && /* @__PURE__ */ import_react6.default.createElement(
|
997
998
|
"div",
|
998
999
|
{
|
999
1000
|
className: direction === "rtl" ? "hawa-pl-2 hawa-pt-1" : "hawa-pr-2 hawa-pt-1"
|
1000
1001
|
},
|
1001
1002
|
icon
|
1002
|
-
), /* @__PURE__ */
|
1003
|
+
), /* @__PURE__ */ import_react6.default.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react6.default.createElement(
|
1003
1004
|
"span",
|
1004
1005
|
{
|
1005
1006
|
className: cn(
|
@@ -1008,7 +1009,7 @@ var Alert = ({
|
|
1008
1009
|
)
|
1009
1010
|
},
|
1010
1011
|
props.title
|
1011
|
-
), /* @__PURE__ */
|
1012
|
+
), /* @__PURE__ */ import_react6.default.createElement(
|
1012
1013
|
"span",
|
1013
1014
|
{
|
1014
1015
|
className: cn(
|
@@ -1017,7 +1018,7 @@ var Alert = ({
|
|
1017
1018
|
)
|
1018
1019
|
},
|
1019
1020
|
props.text
|
1020
|
-
), props.actions && /* @__PURE__ */
|
1021
|
+
), props.actions && /* @__PURE__ */ import_react6.default.createElement("div", { className: "hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2" }, props.actions.map((act, index) => /* @__PURE__ */ import_react6.default.createElement(
|
1021
1022
|
Button,
|
1022
1023
|
{
|
1023
1024
|
key: index,
|
@@ -1026,7 +1027,7 @@ var Alert = ({
|
|
1026
1027
|
},
|
1027
1028
|
act.label
|
1028
1029
|
))))),
|
1029
|
-
!props.persistent && /* @__PURE__ */
|
1030
|
+
!props.persistent && /* @__PURE__ */ import_react6.default.createElement(
|
1030
1031
|
"button",
|
1031
1032
|
{
|
1032
1033
|
type: "button",
|
@@ -1053,8 +1054,8 @@ var Alert = ({
|
|
1053
1054
|
}
|
1054
1055
|
}
|
1055
1056
|
},
|
1056
|
-
/* @__PURE__ */
|
1057
|
-
/* @__PURE__ */
|
1057
|
+
/* @__PURE__ */ import_react6.default.createElement("span", { className: "hawa-sr-only" }, "Close"),
|
1058
|
+
/* @__PURE__ */ import_react6.default.createElement(
|
1058
1059
|
"svg",
|
1059
1060
|
{
|
1060
1061
|
"aria-label": "Close Icon",
|
@@ -1063,7 +1064,7 @@ var Alert = ({
|
|
1063
1064
|
fill: "currentColor",
|
1064
1065
|
viewBox: "0 0 20 20"
|
1065
1066
|
},
|
1066
|
-
/* @__PURE__ */
|
1067
|
+
/* @__PURE__ */ import_react6.default.createElement(
|
1067
1068
|
"path",
|
1068
1069
|
{
|
1069
1070
|
fillRule: "evenodd",
|
@@ -1168,10 +1169,10 @@ CardTitle.displayName = "CardTitle";
|
|
1168
1169
|
Card.displayName = "Card";
|
1169
1170
|
|
1170
1171
|
// elements/input/Input.tsx
|
1171
|
-
var
|
1172
|
+
var import_react8 = __toESM(require("react"));
|
1172
1173
|
|
1173
1174
|
// elements/skeleton/Skeleton.tsx
|
1174
|
-
var
|
1175
|
+
var import_react7 = __toESM(require("react"));
|
1175
1176
|
function Skeleton({
|
1176
1177
|
className,
|
1177
1178
|
content,
|
@@ -1190,7 +1191,7 @@ function Skeleton({
|
|
1190
1191
|
right: "hawa-mask-fade-right",
|
1191
1192
|
left: "hawa-mask-fade-left "
|
1192
1193
|
};
|
1193
|
-
return /* @__PURE__ */
|
1194
|
+
return /* @__PURE__ */ import_react7.default.createElement(
|
1194
1195
|
"div",
|
1195
1196
|
{
|
1196
1197
|
className: cn(
|
@@ -1206,7 +1207,7 @@ function Skeleton({
|
|
1206
1207
|
}
|
1207
1208
|
|
1208
1209
|
// elements/input/Input.tsx
|
1209
|
-
var Input = (0,
|
1210
|
+
var Input = (0, import_react8.forwardRef)(
|
1210
1211
|
({
|
1211
1212
|
margin = "none",
|
1212
1213
|
width = "full",
|
@@ -1250,7 +1251,7 @@ var Input = (0, import_react7.forwardRef)(
|
|
1250
1251
|
props.onChange(newEvent);
|
1251
1252
|
}
|
1252
1253
|
};
|
1253
|
-
return /* @__PURE__ */
|
1254
|
+
return /* @__PURE__ */ import_react8.default.createElement(
|
1254
1255
|
"div",
|
1255
1256
|
{
|
1256
1257
|
className: cn(
|
@@ -1261,8 +1262,8 @@ var Input = (0, import_react7.forwardRef)(
|
|
1261
1262
|
"hawa-w-full hawa-gap-2"
|
1262
1263
|
)
|
1263
1264
|
},
|
1264
|
-
props.label && /* @__PURE__ */
|
1265
|
-
/* @__PURE__ */
|
1265
|
+
props.label && /* @__PURE__ */ import_react8.default.createElement(Label, { ...labelProps }, props.label),
|
1266
|
+
/* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-w-full hawa-items-center " }, props.outsidePrefix && /* @__PURE__ */ import_react8.default.createElement(
|
1266
1267
|
"span",
|
1267
1268
|
{
|
1268
1269
|
className: cn(
|
@@ -1271,7 +1272,7 @@ var Input = (0, import_react7.forwardRef)(
|
|
1271
1272
|
)
|
1272
1273
|
},
|
1273
1274
|
props.outsidePrefix
|
1274
|
-
), props.isLoading ? /* @__PURE__ */
|
1275
|
+
), props.isLoading ? /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-pb-2 hawa-w-full" }, /* @__PURE__ */ import_react8.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react8.default.createElement(
|
1275
1276
|
"div",
|
1276
1277
|
{
|
1277
1278
|
className: cn(
|
@@ -1279,7 +1280,7 @@ var Input = (0, import_react7.forwardRef)(
|
|
1279
1280
|
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
1280
1281
|
)
|
1281
1282
|
}
|
1282
|
-
), /* @__PURE__ */
|
1283
|
+
), /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ import_react8.default.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ import_react8.default.createElement(
|
1283
1284
|
"div",
|
1284
1285
|
{
|
1285
1286
|
className: cn(
|
@@ -1288,7 +1289,7 @@ var Input = (0, import_react7.forwardRef)(
|
|
1288
1289
|
)
|
1289
1290
|
},
|
1290
1291
|
props.endIcon
|
1291
|
-
), /* @__PURE__ */
|
1292
|
+
), /* @__PURE__ */ import_react8.default.createElement(
|
1292
1293
|
"input",
|
1293
1294
|
{
|
1294
1295
|
required: true,
|
@@ -1314,7 +1315,7 @@ var Input = (0, import_react7.forwardRef)(
|
|
1314
1315
|
inputProps == null ? void 0 : inputProps.className
|
1315
1316
|
)
|
1316
1317
|
}
|
1317
|
-
)), !forceHideHelperText && /* @__PURE__ */
|
1318
|
+
)), !forceHideHelperText && /* @__PURE__ */ import_react8.default.createElement(
|
1318
1319
|
"p",
|
1319
1320
|
{
|
1320
1321
|
className: cn(
|
@@ -1323,7 +1324,7 @@ var Input = (0, import_react7.forwardRef)(
|
|
1323
1324
|
)
|
1324
1325
|
},
|
1325
1326
|
props.helperText
|
1326
|
-
), !props.disabled && forceHideHelperText && /* @__PURE__ */
|
1327
|
+
), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react8.default.createElement(
|
1327
1328
|
"div",
|
1328
1329
|
{
|
1329
1330
|
className: cn(
|
@@ -1332,7 +1333,7 @@ var Input = (0, import_react7.forwardRef)(
|
|
1332
1333
|
)
|
1333
1334
|
},
|
1334
1335
|
props.helperText
|
1335
|
-
), showCount && /* @__PURE__ */
|
1336
|
+
), showCount && /* @__PURE__ */ import_react8.default.createElement(
|
1336
1337
|
"div",
|
1337
1338
|
{
|
1338
1339
|
className: cn(
|
@@ -1353,7 +1354,7 @@ var Input = (0, import_react7.forwardRef)(
|
|
1353
1354
|
);
|
1354
1355
|
|
1355
1356
|
// elements/phoneInput/PhoneInput.tsx
|
1356
|
-
var
|
1357
|
+
var import_react10 = __toESM(require("react"));
|
1357
1358
|
|
1358
1359
|
// countries.ts
|
1359
1360
|
var countries = [
|
@@ -3049,7 +3050,7 @@ var countries = [
|
|
3049
3050
|
var countries_default = countries;
|
3050
3051
|
|
3051
3052
|
// elements/select/Select.tsx
|
3052
|
-
var
|
3053
|
+
var import_react9 = __toESM(require("react"));
|
3053
3054
|
var import_react_select = __toESM(require("react-select"));
|
3054
3055
|
var import_creatable = __toESM(require("react-select/creatable"));
|
3055
3056
|
var import_clsx2 = __toESM(require("clsx"));
|
@@ -3060,10 +3061,10 @@ var Select = ({
|
|
3060
3061
|
}) => {
|
3061
3062
|
const NoOption = () => {
|
3062
3063
|
var _a, _b;
|
3063
|
-
return /* @__PURE__ */
|
3064
|
+
return /* @__PURE__ */ import_react9.default.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
|
3064
3065
|
};
|
3065
3066
|
const Control = ({ children, innerProps, innerRef }) => {
|
3066
|
-
return /* @__PURE__ */
|
3067
|
+
return /* @__PURE__ */ import_react9.default.createElement(
|
3067
3068
|
"div",
|
3068
3069
|
{
|
3069
3070
|
ref: innerRef,
|
@@ -3076,7 +3077,7 @@ var Select = ({
|
|
3076
3077
|
);
|
3077
3078
|
};
|
3078
3079
|
const Option = ({ children, innerProps, innerRef }) => {
|
3079
|
-
return /* @__PURE__ */
|
3080
|
+
return /* @__PURE__ */ import_react9.default.createElement(
|
3080
3081
|
"div",
|
3081
3082
|
{
|
3082
3083
|
ref: innerRef,
|
@@ -3097,7 +3098,7 @@ var Select = ({
|
|
3097
3098
|
...menuProps
|
3098
3099
|
}) => {
|
3099
3100
|
const menuOpen = menuProps.selectProps.menuIsOpen;
|
3100
|
-
return /* @__PURE__ */
|
3101
|
+
return /* @__PURE__ */ import_react9.default.createElement(
|
3101
3102
|
"div",
|
3102
3103
|
{
|
3103
3104
|
className: cn(
|
@@ -3111,7 +3112,7 @@ var Select = ({
|
|
3111
3112
|
children
|
3112
3113
|
);
|
3113
3114
|
};
|
3114
|
-
return /* @__PURE__ */
|
3115
|
+
return /* @__PURE__ */ import_react9.default.createElement(
|
3115
3116
|
"div",
|
3116
3117
|
{
|
3117
3118
|
className: cn(
|
@@ -3119,10 +3120,10 @@ var Select = ({
|
|
3119
3120
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
3120
3121
|
)
|
3121
3122
|
},
|
3122
|
-
props.label && /* @__PURE__ */
|
3123
|
-
props.isLoading ? /* @__PURE__ */
|
3123
|
+
props.label && /* @__PURE__ */ import_react9.default.createElement(Label, { ...labelProps }, props.label),
|
3124
|
+
props.isLoading ? /* @__PURE__ */ import_react9.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
|
3124
3125
|
// TODO: enable keyboard to go to the next item in the list
|
3125
|
-
/* @__PURE__ */
|
3126
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
3126
3127
|
import_react_select.default,
|
3127
3128
|
{
|
3128
3129
|
noOptionsMessage: NoOption,
|
@@ -3161,7 +3162,7 @@ var Select = ({
|
|
3161
3162
|
// {...e}
|
3162
3163
|
// />
|
3163
3164
|
// ),
|
3164
|
-
ValueContainer: (e) => /* @__PURE__ */
|
3165
|
+
ValueContainer: (e) => /* @__PURE__ */ import_react9.default.createElement(
|
3165
3166
|
"div",
|
3166
3167
|
{
|
3167
3168
|
className: cn(
|
@@ -3171,7 +3172,7 @@ var Select = ({
|
|
3171
3172
|
...e
|
3172
3173
|
}
|
3173
3174
|
),
|
3174
|
-
MultiValueContainer: (e) => /* @__PURE__ */
|
3175
|
+
MultiValueContainer: (e) => /* @__PURE__ */ import_react9.default.createElement(
|
3175
3176
|
"div",
|
3176
3177
|
{
|
3177
3178
|
className: cn(
|
@@ -3193,7 +3194,7 @@ var Select = ({
|
|
3193
3194
|
isSearchable: props.isSearchable
|
3194
3195
|
}
|
3195
3196
|
)
|
3196
|
-
) : /* @__PURE__ */
|
3197
|
+
) : /* @__PURE__ */ import_react9.default.createElement(
|
3197
3198
|
import_creatable.default,
|
3198
3199
|
{
|
3199
3200
|
formatCreateLabel: (inputValue) => {
|
@@ -3223,7 +3224,7 @@ var Select = ({
|
|
3223
3224
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
3224
3225
|
}
|
3225
3226
|
),
|
3226
|
-
!props.hideHelperText && /* @__PURE__ */
|
3227
|
+
!props.hideHelperText && /* @__PURE__ */ import_react9.default.createElement(
|
3227
3228
|
"p",
|
3228
3229
|
{
|
3229
3230
|
className: cn(
|
@@ -3243,9 +3244,9 @@ var PhoneInput = ({
|
|
3243
3244
|
countryCodes,
|
3244
3245
|
...props
|
3245
3246
|
}) => {
|
3246
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
3247
|
-
const [countryCode, setCountryCode] = (0,
|
3248
|
-
const inputRef = (0,
|
3247
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react10.useState)("");
|
3248
|
+
const [countryCode, setCountryCode] = (0, import_react10.useState)(props.preferredCountry);
|
3249
|
+
const inputRef = (0, import_react10.useRef)(null);
|
3249
3250
|
const handleInputChange = (e) => {
|
3250
3251
|
console.log("test e ", e.target.value);
|
3251
3252
|
const validChars = /^[0-9-()]+$/;
|
@@ -3259,7 +3260,7 @@ var PhoneInput = ({
|
|
3259
3260
|
console.log("handleChange prop was not provided in <PhoneInput/>");
|
3260
3261
|
}
|
3261
3262
|
};
|
3262
|
-
return /* @__PURE__ */
|
3263
|
+
return /* @__PURE__ */ import_react10.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react10.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react10.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react10.default.createElement(
|
3263
3264
|
Select,
|
3264
3265
|
{
|
3265
3266
|
phoneCode: true,
|
@@ -3275,7 +3276,7 @@ var PhoneInput = ({
|
|
3275
3276
|
value: countryCode == null ? void 0 : countryCode.label,
|
3276
3277
|
defaultValue: props.preferredCountry
|
3277
3278
|
}
|
3278
|
-
), /* @__PURE__ */
|
3279
|
+
), /* @__PURE__ */ import_react10.default.createElement("div", { className: "hawa-relative hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ import_react10.default.createElement(
|
3279
3280
|
"input",
|
3280
3281
|
{
|
3281
3282
|
type: "tel",
|
@@ -3289,7 +3290,7 @@ var PhoneInput = ({
|
|
3289
3290
|
),
|
3290
3291
|
...inputProps
|
3291
3292
|
}
|
3292
|
-
))), /* @__PURE__ */
|
3293
|
+
))), /* @__PURE__ */ import_react10.default.createElement(
|
3293
3294
|
"p",
|
3294
3295
|
{
|
3295
3296
|
className: cn(
|
@@ -3302,11 +3303,11 @@ var PhoneInput = ({
|
|
3302
3303
|
};
|
3303
3304
|
|
3304
3305
|
// icons/Emojis.tsx
|
3305
|
-
var
|
3306
|
+
var import_react11 = __toESM(require("react"));
|
3306
3307
|
|
3307
3308
|
// icons/InputIcons.tsx
|
3308
|
-
var
|
3309
|
-
var EyeIcon = (props) => /* @__PURE__ */
|
3309
|
+
var import_react12 = __toESM(require("react"));
|
3310
|
+
var EyeIcon = (props) => /* @__PURE__ */ import_react12.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react12.default.createElement(
|
3310
3311
|
"svg",
|
3311
3312
|
{
|
3312
3313
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -3317,10 +3318,10 @@ var EyeIcon = (props) => /* @__PURE__ */ import_react11.default.createElement("d
|
|
3317
3318
|
strokeLinecap: "round",
|
3318
3319
|
strokeLinejoin: "round"
|
3319
3320
|
},
|
3320
|
-
/* @__PURE__ */
|
3321
|
-
/* @__PURE__ */
|
3321
|
+
/* @__PURE__ */ import_react12.default.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
3322
|
+
/* @__PURE__ */ import_react12.default.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
3322
3323
|
));
|
3323
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */
|
3324
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react12.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react12.default.createElement(
|
3324
3325
|
"svg",
|
3325
3326
|
{
|
3326
3327
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -3331,14 +3332,14 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react11.default.createElem
|
|
3331
3332
|
strokeLinecap: "round",
|
3332
3333
|
strokeLinejoin: "round"
|
3333
3334
|
},
|
3334
|
-
/* @__PURE__ */
|
3335
|
-
/* @__PURE__ */
|
3336
|
-
/* @__PURE__ */
|
3337
|
-
/* @__PURE__ */
|
3335
|
+
/* @__PURE__ */ import_react12.default.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
3336
|
+
/* @__PURE__ */ import_react12.default.createElement("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
|
3337
|
+
/* @__PURE__ */ import_react12.default.createElement("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
|
3338
|
+
/* @__PURE__ */ import_react12.default.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
3338
3339
|
));
|
3339
3340
|
|
3340
3341
|
// icons/CommonIcons.tsx
|
3341
|
-
var
|
3342
|
+
var import_react13 = __toESM(require("react"));
|
3342
3343
|
|
3343
3344
|
// blocks/auth/LoginForm.tsx
|
3344
3345
|
var LoginForm = ({
|
@@ -3348,7 +3349,7 @@ var LoginForm = ({
|
|
3348
3349
|
...props
|
3349
3350
|
}) => {
|
3350
3351
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
3351
|
-
const [passwordVisible, setPasswordVisible] = (0,
|
3352
|
+
const [passwordVisible, setPasswordVisible] = (0, import_react15.useState)(false);
|
3352
3353
|
const thirdPartyAuthTexts = {
|
3353
3354
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
3354
3355
|
continueWithTwitter: texts == null ? void 0 : texts.continueWithTwitter,
|
@@ -3410,14 +3411,14 @@ var LoginForm = ({
|
|
3410
3411
|
const renderFields = () => {
|
3411
3412
|
switch (loginType) {
|
3412
3413
|
case "email":
|
3413
|
-
return /* @__PURE__ */
|
3414
|
+
return /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, /* @__PURE__ */ import_react14.default.createElement(
|
3414
3415
|
import_react_hook_form.Controller,
|
3415
3416
|
{
|
3416
3417
|
control,
|
3417
3418
|
name: "email",
|
3418
3419
|
render: ({ field }) => {
|
3419
3420
|
var _a2, _b2, _c2;
|
3420
|
-
return /* @__PURE__ */
|
3421
|
+
return /* @__PURE__ */ import_react14.default.createElement(
|
3421
3422
|
Input,
|
3422
3423
|
{
|
3423
3424
|
inputProps: {
|
@@ -3437,27 +3438,27 @@ var LoginForm = ({
|
|
3437
3438
|
);
|
3438
3439
|
}
|
3439
3440
|
}
|
3440
|
-
), /* @__PURE__ */
|
3441
|
+
), /* @__PURE__ */ import_react14.default.createElement("div", null, /* @__PURE__ */ import_react14.default.createElement(
|
3441
3442
|
import_react_hook_form.Controller,
|
3442
3443
|
{
|
3443
3444
|
control,
|
3444
3445
|
name: "password",
|
3445
3446
|
render: ({ field }) => {
|
3446
3447
|
var _a2, _b2, _c2;
|
3447
|
-
return /* @__PURE__ */
|
3448
|
+
return /* @__PURE__ */ import_react14.default.createElement(
|
3448
3449
|
Input,
|
3449
3450
|
{
|
3450
3451
|
width: "full",
|
3451
3452
|
autoComplete: "current-password",
|
3452
3453
|
type: passwordVisible ? "text" : "password",
|
3453
3454
|
label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
|
3454
|
-
endIcon: /* @__PURE__ */
|
3455
|
+
endIcon: /* @__PURE__ */ import_react14.default.createElement(
|
3455
3456
|
"div",
|
3456
3457
|
{
|
3457
3458
|
className: "hawa-cursor-pointer",
|
3458
3459
|
onClick: () => setPasswordVisible(!passwordVisible)
|
3459
3460
|
},
|
3460
|
-
passwordVisible ? /* @__PURE__ */
|
3461
|
+
passwordVisible ? /* @__PURE__ */ import_react14.default.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ import_react14.default.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" })
|
3461
3462
|
),
|
3462
3463
|
placeholder: ((_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder) || "Enter your password",
|
3463
3464
|
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
@@ -3466,7 +3467,7 @@ var LoginForm = ({
|
|
3466
3467
|
);
|
3467
3468
|
}
|
3468
3469
|
}
|
3469
|
-
), props.withResetPassword && /* @__PURE__ */
|
3470
|
+
), props.withResetPassword && /* @__PURE__ */ import_react14.default.createElement(
|
3470
3471
|
"div",
|
3471
3472
|
{
|
3472
3473
|
onClick: props.onForgotPassword,
|
@@ -3475,14 +3476,14 @@ var LoginForm = ({
|
|
3475
3476
|
(texts == null ? void 0 : texts.forgotPassword) || "Forgot Password?"
|
3476
3477
|
)));
|
3477
3478
|
case "username":
|
3478
|
-
return /* @__PURE__ */
|
3479
|
+
return /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, /* @__PURE__ */ import_react14.default.createElement(
|
3479
3480
|
import_react_hook_form.Controller,
|
3480
3481
|
{
|
3481
3482
|
control,
|
3482
3483
|
name: "username",
|
3483
3484
|
render: ({ field }) => {
|
3484
3485
|
var _a2, _b2, _c2;
|
3485
|
-
return /* @__PURE__ */
|
3486
|
+
return /* @__PURE__ */ import_react14.default.createElement(
|
3486
3487
|
Input,
|
3487
3488
|
{
|
3488
3489
|
width: "full",
|
@@ -3495,27 +3496,27 @@ var LoginForm = ({
|
|
3495
3496
|
);
|
3496
3497
|
}
|
3497
3498
|
}
|
3498
|
-
), /* @__PURE__ */
|
3499
|
+
), /* @__PURE__ */ import_react14.default.createElement("div", null, /* @__PURE__ */ import_react14.default.createElement(
|
3499
3500
|
import_react_hook_form.Controller,
|
3500
3501
|
{
|
3501
3502
|
control,
|
3502
3503
|
name: "password",
|
3503
3504
|
render: ({ field }) => {
|
3504
3505
|
var _a2, _b2, _c2;
|
3505
|
-
return /* @__PURE__ */
|
3506
|
+
return /* @__PURE__ */ import_react14.default.createElement(
|
3506
3507
|
Input,
|
3507
3508
|
{
|
3508
3509
|
width: "full",
|
3509
3510
|
autoComplete: "current-password",
|
3510
3511
|
type: passwordVisible ? "text" : "password",
|
3511
3512
|
label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
|
3512
|
-
endIcon: /* @__PURE__ */
|
3513
|
+
endIcon: /* @__PURE__ */ import_react14.default.createElement(
|
3513
3514
|
"div",
|
3514
3515
|
{
|
3515
3516
|
className: "hawa-cursor-pointer",
|
3516
3517
|
onClick: () => setPasswordVisible(!passwordVisible)
|
3517
3518
|
},
|
3518
|
-
passwordVisible ? /* @__PURE__ */
|
3519
|
+
passwordVisible ? /* @__PURE__ */ import_react14.default.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ import_react14.default.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" })
|
3519
3520
|
),
|
3520
3521
|
placeholder: ((_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder) || "Enter your password",
|
3521
3522
|
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
@@ -3524,7 +3525,7 @@ var LoginForm = ({
|
|
3524
3525
|
);
|
3525
3526
|
}
|
3526
3527
|
}
|
3527
|
-
), props.withResetPassword && /* @__PURE__ */
|
3528
|
+
), props.withResetPassword && /* @__PURE__ */ import_react14.default.createElement(
|
3528
3529
|
"div",
|
3529
3530
|
{
|
3530
3531
|
onClick: props.onForgotPassword,
|
@@ -3533,14 +3534,14 @@ var LoginForm = ({
|
|
3533
3534
|
(texts == null ? void 0 : texts.forgotPassword) || "Forgot Password?"
|
3534
3535
|
)));
|
3535
3536
|
case "phone":
|
3536
|
-
return /* @__PURE__ */
|
3537
|
+
return /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, /* @__PURE__ */ import_react14.default.createElement(
|
3537
3538
|
import_react_hook_form.Controller,
|
3538
3539
|
{
|
3539
3540
|
control,
|
3540
3541
|
name: "phone",
|
3541
3542
|
render: ({ field }) => {
|
3542
3543
|
var _a2, _b2;
|
3543
|
-
return /* @__PURE__ */
|
3544
|
+
return /* @__PURE__ */ import_react14.default.createElement(
|
3544
3545
|
PhoneInput,
|
3545
3546
|
{
|
3546
3547
|
label: ((_a2 = texts == null ? void 0 : texts.phone) == null ? void 0 : _a2.label) || "Phone Number",
|
@@ -3561,14 +3562,14 @@ var LoginForm = ({
|
|
3561
3562
|
}
|
3562
3563
|
));
|
3563
3564
|
case "link":
|
3564
|
-
return /* @__PURE__ */
|
3565
|
+
return /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, /* @__PURE__ */ import_react14.default.createElement(
|
3565
3566
|
import_react_hook_form.Controller,
|
3566
3567
|
{
|
3567
3568
|
control,
|
3568
3569
|
name: "email",
|
3569
3570
|
render: ({ field }) => {
|
3570
3571
|
var _a2, _b2, _c2;
|
3571
|
-
return /* @__PURE__ */
|
3572
|
+
return /* @__PURE__ */ import_react14.default.createElement(
|
3572
3573
|
Input,
|
3573
3574
|
{
|
3574
3575
|
width: "full",
|
@@ -3589,7 +3590,7 @@ var LoginForm = ({
|
|
3589
3590
|
break;
|
3590
3591
|
}
|
3591
3592
|
};
|
3592
|
-
return /* @__PURE__ */
|
3593
|
+
return /* @__PURE__ */ import_react14.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ import_react14.default.createElement(
|
3593
3594
|
Card,
|
3594
3595
|
{
|
3595
3596
|
dir: props.direction,
|
@@ -3597,7 +3598,7 @@ var LoginForm = ({
|
|
3597
3598
|
props.cardless && "!hawa-border-none !hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
|
3598
3599
|
)
|
3599
3600
|
},
|
3600
|
-
/* @__PURE__ */
|
3601
|
+
/* @__PURE__ */ import_react14.default.createElement(CardContent, { headless: true, noPadding: props.cardless }, props.showError && /* @__PURE__ */ import_react14.default.createElement(
|
3601
3602
|
Alert,
|
3602
3603
|
{
|
3603
3604
|
direction: props.direction,
|
@@ -3605,7 +3606,7 @@ var LoginForm = ({
|
|
3605
3606
|
text: props.errorText,
|
3606
3607
|
severity: "error"
|
3607
3608
|
}
|
3608
|
-
), /* @__PURE__ */
|
3609
|
+
), /* @__PURE__ */ import_react14.default.createElement(
|
3609
3610
|
"form",
|
3610
3611
|
{
|
3611
3612
|
noValidate: true,
|
@@ -3619,7 +3620,7 @@ var LoginForm = ({
|
|
3619
3620
|
})
|
3620
3621
|
},
|
3621
3622
|
renderFields(),
|
3622
|
-
/* @__PURE__ */
|
3623
|
+
/* @__PURE__ */ import_react14.default.createElement(
|
3623
3624
|
Button,
|
3624
3625
|
{
|
3625
3626
|
className: "hawa-mt-0 hawa-w-full",
|
@@ -3630,7 +3631,7 @@ var LoginForm = ({
|
|
3630
3631
|
(texts == null ? void 0 : texts.loginText) || "Login"
|
3631
3632
|
),
|
3632
3633
|
props.additionalButtons,
|
3633
|
-
props.allowRegister && /* @__PURE__ */
|
3634
|
+
props.allowRegister && /* @__PURE__ */ import_react14.default.createElement("div", { className: "hawa-select-none hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300" }, (texts == null ? void 0 : texts.newUserText) || "New user?", " ", /* @__PURE__ */ import_react14.default.createElement(
|
3634
3635
|
"span",
|
3635
3636
|
{
|
3636
3637
|
onClick: props.onRouteToRegister,
|
@@ -3639,7 +3640,7 @@ var LoginForm = ({
|
|
3639
3640
|
(texts == null ? void 0 : texts.createAccount) || "Create Account"
|
3640
3641
|
))
|
3641
3642
|
)),
|
3642
|
-
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
3643
|
+
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react14.default.createElement(
|
3643
3644
|
CardFooter,
|
3644
3645
|
{
|
3645
3646
|
noPadding: props.cardless,
|
@@ -3647,7 +3648,7 @@ var LoginForm = ({
|
|
3647
3648
|
props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
|
3648
3649
|
)
|
3649
3650
|
},
|
3650
|
-
/* @__PURE__ */
|
3651
|
+
/* @__PURE__ */ import_react14.default.createElement(
|
3651
3652
|
AuthButtons,
|
3652
3653
|
{
|
3653
3654
|
texts: thirdPartyAuthTexts,
|
@@ -3667,7 +3668,7 @@ var LoginForm = ({
|
|
3667
3668
|
};
|
3668
3669
|
|
3669
3670
|
// blocks/auth/RegisterForm.tsx
|
3670
|
-
var
|
3671
|
+
var import_react17 = __toESM(require("react"));
|
3671
3672
|
var import_react_hook_form2 = require("react-hook-form");
|
3672
3673
|
var import_zod2 = require("@hookform/resolvers/zod");
|
3673
3674
|
var z2 = __toESM(require("zod"));
|
@@ -3809,12 +3810,12 @@ var CheckboxElement = React18.forwardRef(({ radius = "inherit", size = "default"
|
|
3809
3810
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
3810
3811
|
|
3811
3812
|
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
3812
|
-
var
|
3813
|
+
var import_react16 = __toESM(require("react"));
|
3813
3814
|
var StopPropagationWrapper = (props) => {
|
3814
3815
|
const handleClick = (e) => {
|
3815
3816
|
e.stopPropagation();
|
3816
3817
|
};
|
3817
|
-
return /* @__PURE__ */
|
3818
|
+
return /* @__PURE__ */ import_react16.default.createElement("div", { onClick: handleClick }, props.children);
|
3818
3819
|
};
|
3819
3820
|
|
3820
3821
|
// blocks/auth/RegisterForm.tsx
|
@@ -3826,7 +3827,7 @@ var RegisterForm = ({
|
|
3826
3827
|
...props
|
3827
3828
|
}) => {
|
3828
3829
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
3829
|
-
const [passwordVisible, setPasswordVisible] = (0,
|
3830
|
+
const [passwordVisible, setPasswordVisible] = (0, import_react17.useState)(false);
|
3830
3831
|
const thirdPartyAuthTexts = {
|
3831
3832
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
3832
3833
|
continueWithTwitter: texts == null ? void 0 : texts.continueWithTwitter,
|
@@ -3893,7 +3894,7 @@ var RegisterForm = ({
|
|
3893
3894
|
const { handleSubmit, control, formState } = (0, import_react_hook_form2.useForm)({
|
3894
3895
|
resolver: (0, import_zod2.zodResolver)(formSchema)
|
3895
3896
|
});
|
3896
|
-
return /* @__PURE__ */
|
3897
|
+
return /* @__PURE__ */ import_react17.default.createElement(
|
3897
3898
|
"div",
|
3898
3899
|
{
|
3899
3900
|
className: cn(
|
@@ -3901,7 +3902,7 @@ var RegisterForm = ({
|
|
3901
3902
|
(_g = props.classNames) == null ? void 0 : _g.root
|
3902
3903
|
)
|
3903
3904
|
},
|
3904
|
-
/* @__PURE__ */
|
3905
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
3905
3906
|
Card,
|
3906
3907
|
{
|
3907
3908
|
dir: props.direction,
|
@@ -3910,7 +3911,7 @@ var RegisterForm = ({
|
|
3910
3911
|
props.cardless && "hawa-border-none hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
|
3911
3912
|
)
|
3912
3913
|
},
|
3913
|
-
/* @__PURE__ */
|
3914
|
+
/* @__PURE__ */ import_react17.default.createElement(CardContent, { headless: true, noPadding: props.cardless }, /* @__PURE__ */ import_react17.default.createElement("div", null, props.showError && /* @__PURE__ */ import_react17.default.createElement(
|
3914
3915
|
Alert,
|
3915
3916
|
{
|
3916
3917
|
direction: props.direction,
|
@@ -3923,7 +3924,7 @@ var RegisterForm = ({
|
|
3923
3924
|
}
|
3924
3925
|
}
|
3925
3926
|
}
|
3926
|
-
), /* @__PURE__ */
|
3927
|
+
), /* @__PURE__ */ import_react17.default.createElement(import_react_hook_form2.FormProvider, { ...methods }, /* @__PURE__ */ import_react17.default.createElement(
|
3927
3928
|
"form",
|
3928
3929
|
{
|
3929
3930
|
noValidate: true,
|
@@ -3938,9 +3939,9 @@ var RegisterForm = ({
|
|
3938
3939
|
}),
|
3939
3940
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
3940
3941
|
},
|
3941
|
-
/* @__PURE__ */
|
3942
|
+
/* @__PURE__ */ import_react17.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, registerFields.map((fld, i) => {
|
3942
3943
|
if (fld === "fullname") {
|
3943
|
-
return /* @__PURE__ */
|
3944
|
+
return /* @__PURE__ */ import_react17.default.createElement(
|
3944
3945
|
import_react_hook_form2.Controller,
|
3945
3946
|
{
|
3946
3947
|
key: i,
|
@@ -3948,7 +3949,7 @@ var RegisterForm = ({
|
|
3948
3949
|
name: "fullName",
|
3949
3950
|
render: ({ field }) => {
|
3950
3951
|
var _a2, _b2, _c2;
|
3951
|
-
return /* @__PURE__ */
|
3952
|
+
return /* @__PURE__ */ import_react17.default.createElement(
|
3952
3953
|
Input,
|
3953
3954
|
{
|
3954
3955
|
width: "full",
|
@@ -3963,7 +3964,7 @@ var RegisterForm = ({
|
|
3963
3964
|
);
|
3964
3965
|
}
|
3965
3966
|
if (fld === "email") {
|
3966
|
-
return /* @__PURE__ */
|
3967
|
+
return /* @__PURE__ */ import_react17.default.createElement(
|
3967
3968
|
import_react_hook_form2.Controller,
|
3968
3969
|
{
|
3969
3970
|
key: i,
|
@@ -3971,7 +3972,7 @@ var RegisterForm = ({
|
|
3971
3972
|
name: "email",
|
3972
3973
|
render: ({ field }) => {
|
3973
3974
|
var _a2, _b2, _c2;
|
3974
|
-
return /* @__PURE__ */
|
3975
|
+
return /* @__PURE__ */ import_react17.default.createElement(
|
3975
3976
|
Input,
|
3976
3977
|
{
|
3977
3978
|
dir: "ltr",
|
@@ -3996,7 +3997,7 @@ var RegisterForm = ({
|
|
3996
3997
|
);
|
3997
3998
|
}
|
3998
3999
|
if (fld === "username") {
|
3999
|
-
return /* @__PURE__ */
|
4000
|
+
return /* @__PURE__ */ import_react17.default.createElement(
|
4000
4001
|
import_react_hook_form2.Controller,
|
4001
4002
|
{
|
4002
4003
|
key: i,
|
@@ -4004,7 +4005,7 @@ var RegisterForm = ({
|
|
4004
4005
|
name: "username",
|
4005
4006
|
render: ({ field }) => {
|
4006
4007
|
var _a2, _b2, _c2, _d2;
|
4007
|
-
return /* @__PURE__ */
|
4008
|
+
return /* @__PURE__ */ import_react17.default.createElement(
|
4008
4009
|
Input,
|
4009
4010
|
{
|
4010
4011
|
width: "full",
|
@@ -4023,25 +4024,25 @@ var RegisterForm = ({
|
|
4023
4024
|
);
|
4024
4025
|
}
|
4025
4026
|
})),
|
4026
|
-
/* @__PURE__ */
|
4027
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
4027
4028
|
import_react_hook_form2.Controller,
|
4028
4029
|
{
|
4029
4030
|
control,
|
4030
4031
|
name: "password",
|
4031
4032
|
render: ({ field }) => {
|
4032
4033
|
var _a2, _b2, _c2;
|
4033
|
-
return /* @__PURE__ */
|
4034
|
+
return /* @__PURE__ */ import_react17.default.createElement(
|
4034
4035
|
Input,
|
4035
4036
|
{
|
4036
4037
|
width: "full",
|
4037
4038
|
type: passwordVisible ? "text" : "password",
|
4038
|
-
endIcon: /* @__PURE__ */
|
4039
|
+
endIcon: /* @__PURE__ */ import_react17.default.createElement(
|
4039
4040
|
"div",
|
4040
4041
|
{
|
4041
4042
|
className: "hawa-cursor-pointer",
|
4042
4043
|
onClick: () => setPasswordVisible(!passwordVisible)
|
4043
4044
|
},
|
4044
|
-
passwordVisible ? /* @__PURE__ */
|
4045
|
+
passwordVisible ? /* @__PURE__ */ import_react17.default.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ import_react17.default.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
4045
4046
|
" "
|
4046
4047
|
),
|
4047
4048
|
autoComplete: "new-password",
|
@@ -4054,14 +4055,14 @@ var RegisterForm = ({
|
|
4054
4055
|
}
|
4055
4056
|
}
|
4056
4057
|
),
|
4057
|
-
/* @__PURE__ */
|
4058
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
4058
4059
|
import_react_hook_form2.Controller,
|
4059
4060
|
{
|
4060
4061
|
control,
|
4061
4062
|
name: "confirm_password",
|
4062
4063
|
render: ({ field }) => {
|
4063
4064
|
var _a2, _b2, _c2;
|
4064
|
-
return /* @__PURE__ */
|
4065
|
+
return /* @__PURE__ */ import_react17.default.createElement(
|
4065
4066
|
Input,
|
4066
4067
|
{
|
4067
4068
|
width: "full",
|
@@ -4077,14 +4078,14 @@ var RegisterForm = ({
|
|
4077
4078
|
}
|
4078
4079
|
),
|
4079
4080
|
props.additionalInputs,
|
4080
|
-
props.showRefCode && /* @__PURE__ */
|
4081
|
+
props.showRefCode && /* @__PURE__ */ import_react17.default.createElement(
|
4081
4082
|
import_react_hook_form2.Controller,
|
4082
4083
|
{
|
4083
4084
|
control,
|
4084
4085
|
name: "refCode",
|
4085
4086
|
render: ({ field }) => {
|
4086
4087
|
var _a2;
|
4087
|
-
return /* @__PURE__ */
|
4088
|
+
return /* @__PURE__ */ import_react17.default.createElement(
|
4088
4089
|
Input,
|
4089
4090
|
{
|
4090
4091
|
width: "full",
|
@@ -4097,14 +4098,14 @@ var RegisterForm = ({
|
|
4097
4098
|
}
|
4098
4099
|
}
|
4099
4100
|
),
|
4100
|
-
props.showUserSource && /* @__PURE__ */
|
4101
|
+
props.showUserSource && /* @__PURE__ */ import_react17.default.createElement(
|
4101
4102
|
import_react_hook_form2.Controller,
|
4102
4103
|
{
|
4103
4104
|
control,
|
4104
4105
|
name: "reference",
|
4105
4106
|
render: ({ field }) => {
|
4106
4107
|
var _a2, _b2;
|
4107
|
-
return /* @__PURE__ */
|
4108
|
+
return /* @__PURE__ */ import_react17.default.createElement(
|
4108
4109
|
Select,
|
4109
4110
|
{
|
4110
4111
|
label: ((_a2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _a2.label) || "How did you learn about us?",
|
@@ -4120,20 +4121,20 @@ var RegisterForm = ({
|
|
4120
4121
|
}
|
4121
4122
|
}
|
4122
4123
|
),
|
4123
|
-
showTermsOption || showNewsletterOption ? /* @__PURE__ */
|
4124
|
+
showTermsOption || showNewsletterOption ? /* @__PURE__ */ import_react17.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-3 hawa-mb-2" }, showTermsOption && /* @__PURE__ */ import_react17.default.createElement(
|
4124
4125
|
import_react_hook_form2.Controller,
|
4125
4126
|
{
|
4126
4127
|
control,
|
4127
4128
|
name: "terms_accepted",
|
4128
4129
|
render: ({ field }) => {
|
4129
4130
|
var _a2, _b2;
|
4130
|
-
return /* @__PURE__ */
|
4131
|
+
return /* @__PURE__ */ import_react17.default.createElement(
|
4131
4132
|
Checkbox,
|
4132
4133
|
{
|
4133
4134
|
id: "terms_accepted",
|
4134
4135
|
helperText: (_b2 = (_a2 = formState.errors.terms_accepted) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString(),
|
4135
4136
|
onCheckedChange: (e) => field.onChange(e),
|
4136
|
-
label: /* @__PURE__ */
|
4137
|
+
label: /* @__PURE__ */ import_react17.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5 hawa-whitespace-nowrap hawa-flex-wrap" }, (texts == null ? void 0 : texts.iAcceptText) || "I accept the", " ", /* @__PURE__ */ import_react17.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react17.default.createElement(
|
4137
4138
|
"span",
|
4138
4139
|
{
|
4139
4140
|
onClick: (e) => {
|
@@ -4150,12 +4151,12 @@ var RegisterForm = ({
|
|
4150
4151
|
);
|
4151
4152
|
}
|
4152
4153
|
}
|
4153
|
-
), showNewsletterOption && /* @__PURE__ */
|
4154
|
+
), showNewsletterOption && /* @__PURE__ */ import_react17.default.createElement(
|
4154
4155
|
import_react_hook_form2.Controller,
|
4155
4156
|
{
|
4156
4157
|
control,
|
4157
4158
|
name: "newsletter_accepted",
|
4158
|
-
render: ({ field }) => /* @__PURE__ */
|
4159
|
+
render: ({ field }) => /* @__PURE__ */ import_react17.default.createElement(
|
4159
4160
|
Checkbox,
|
4160
4161
|
{
|
4161
4162
|
id: "newsletter_accepted",
|
@@ -4165,7 +4166,7 @@ var RegisterForm = ({
|
|
4165
4166
|
)
|
4166
4167
|
}
|
4167
4168
|
)) : null,
|
4168
|
-
/* @__PURE__ */
|
4169
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
4169
4170
|
Button,
|
4170
4171
|
{
|
4171
4172
|
className: " hawa-w-full",
|
@@ -4176,8 +4177,8 @@ var RegisterForm = ({
|
|
4176
4177
|
(texts == null ? void 0 : texts.registerText) || "Register"
|
4177
4178
|
),
|
4178
4179
|
props.additionalButtons
|
4179
|
-
)), props.onRouteToLogin && /* @__PURE__ */
|
4180
|
-
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
4180
|
+
)), props.onRouteToLogin && /* @__PURE__ */ import_react17.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-1 hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-white" }, /* @__PURE__ */ import_react17.default.createElement("span", null, (texts == null ? void 0 : texts.existingUserText) || "Already have an account?"), /* @__PURE__ */ import_react17.default.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))),
|
4181
|
+
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react17.default.createElement(
|
4181
4182
|
CardFooter,
|
4182
4183
|
{
|
4183
4184
|
noPadding: props.cardless,
|
@@ -4185,7 +4186,7 @@ var RegisterForm = ({
|
|
4185
4186
|
props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
|
4186
4187
|
)
|
4187
4188
|
},
|
4188
|
-
/* @__PURE__ */
|
4189
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
4189
4190
|
AuthButtons,
|
4190
4191
|
{
|
4191
4192
|
texts: thirdPartyAuthTexts,
|
@@ -4206,7 +4207,7 @@ var RegisterForm = ({
|
|
4206
4207
|
};
|
4207
4208
|
|
4208
4209
|
// blocks/auth/AppLanding.tsx
|
4209
|
-
var
|
4210
|
+
var import_react18 = __toESM(require("react"));
|
4210
4211
|
var AppLanding = ({ texts, ...props }) => {
|
4211
4212
|
const thirdPartyAuthTexts = {
|
4212
4213
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
@@ -4217,7 +4218,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
4217
4218
|
continueWithEmail: texts == null ? void 0 : texts.continueWithEmail,
|
4218
4219
|
continueWithPhone: texts == null ? void 0 : texts.continueWithPhone
|
4219
4220
|
};
|
4220
|
-
return /* @__PURE__ */
|
4221
|
+
return /* @__PURE__ */ import_react18.default.createElement("div", { dir: props.direction }, /* @__PURE__ */ import_react18.default.createElement(Card, null, /* @__PURE__ */ import_react18.default.createElement(CardContent, { headless: true, className: "hawa-flex hawa-flex-col hawa-gap-6" }, /* @__PURE__ */ import_react18.default.createElement(
|
4221
4222
|
AuthButtons,
|
4222
4223
|
{
|
4223
4224
|
texts: thirdPartyAuthTexts,
|
@@ -4236,7 +4237,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
4236
4237
|
handleEmail: props.handleEmail,
|
4237
4238
|
handlePhone: props.handlePhone
|
4238
4239
|
}
|
4239
|
-
), props.allowRegister && /* @__PURE__ */
|
4240
|
+
), props.allowRegister && /* @__PURE__ */ import_react18.default.createElement("div", { className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300" }, texts == null ? void 0 : texts.newUserText, " ", /* @__PURE__ */ import_react18.default.createElement(
|
4240
4241
|
"span",
|
4241
4242
|
{
|
4242
4243
|
onClick: props.handleRouteToRegister,
|
@@ -4247,9 +4248,9 @@ var AppLanding = ({ texts, ...props }) => {
|
|
4247
4248
|
};
|
4248
4249
|
|
4249
4250
|
// blocks/auth/CheckEmail.tsx
|
4250
|
-
var
|
4251
|
+
var import_react19 = __toESM(require("react"));
|
4251
4252
|
var CheckEmail = ({ texts, handleResend }) => {
|
4252
|
-
return /* @__PURE__ */
|
4253
|
+
return /* @__PURE__ */ import_react19.default.createElement(Card, null, /* @__PURE__ */ import_react19.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react19.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center" }, /* @__PURE__ */ import_react19.default.createElement("div", { className: "hawa-flex hawa-h-16 hawa-w-16 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__ */ import_react19.default.createElement(
|
4253
4254
|
"svg",
|
4254
4255
|
{
|
4255
4256
|
stroke: "currentColor",
|
@@ -4262,13 +4263,13 @@ var CheckEmail = ({ texts, handleResend }) => {
|
|
4262
4263
|
width: "0.5em",
|
4263
4264
|
xmlns: "http://www.w3.org/2000/svg"
|
4264
4265
|
},
|
4265
|
-
/* @__PURE__ */
|
4266
|
-
/* @__PURE__ */
|
4267
|
-
)), /* @__PURE__ */
|
4266
|
+
/* @__PURE__ */ import_react19.default.createElement("path", { d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" }),
|
4267
|
+
/* @__PURE__ */ import_react19.default.createElement("polyline", { points: "22,6 12,13 2,6" })
|
4268
|
+
)), /* @__PURE__ */ import_react19.default.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.checkEmail) || "Check your Email"), /* @__PURE__ */ import_react19.default.createElement("div", { className: "hawa-text-sm" }, (texts == null ? void 0 : texts.pleaseVerify) || "Thank you for signing up! To complete your registration, we've sent a verification email to the address you provided. Please check your inbox and follow the instructions in the email to activate your account."))), /* @__PURE__ */ import_react19.default.createElement(CardFooter, { className: "hawa-flex hawa-flex-col hawa-justify-center " }, /* @__PURE__ */ import_react19.default.createElement("span", { className: "clickable-link hawa-text-sm", onClick: handleResend }, (texts == null ? void 0 : texts.resendEmail) || "Resend Email")));
|
4268
4269
|
};
|
4269
4270
|
|
4270
4271
|
// blocks/auth/NewPassword.tsx
|
4271
|
-
var
|
4272
|
+
var import_react20 = __toESM(require("react"));
|
4272
4273
|
var import_react_hook_form3 = require("react-hook-form");
|
4273
4274
|
var import_zod3 = require("@hookform/resolvers/zod");
|
4274
4275
|
var z3 = __toESM(require("zod"));
|
@@ -4290,7 +4291,7 @@ var NewPasswordForm = ({
|
|
4290
4291
|
const { handleSubmit, control, formState } = (0, import_react_hook_form3.useForm)({
|
4291
4292
|
resolver: (0, import_zod3.zodResolver)(formSchema)
|
4292
4293
|
});
|
4293
|
-
return /* @__PURE__ */
|
4294
|
+
return /* @__PURE__ */ import_react20.default.createElement(Card, { dir: props.direction }, props.showSuccess ? /* @__PURE__ */ import_react20.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react20.default.createElement("div", { className: "hawa-text-center" }, texts == null ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ import_react20.default.createElement(
|
4294
4295
|
"form",
|
4295
4296
|
{
|
4296
4297
|
noValidate: true,
|
@@ -4304,7 +4305,7 @@ var NewPasswordForm = ({
|
|
4304
4305
|
}
|
4305
4306
|
})
|
4306
4307
|
},
|
4307
|
-
/* @__PURE__ */
|
4308
|
+
/* @__PURE__ */ import_react20.default.createElement(CardContent, { headless: true, className: "hawa-flex hawa-flex-col" }, props.showError && /* @__PURE__ */ import_react20.default.createElement(
|
4308
4309
|
Alert,
|
4309
4310
|
{
|
4310
4311
|
direction: props.direction,
|
@@ -4312,14 +4313,14 @@ var NewPasswordForm = ({
|
|
4312
4313
|
text: props.errorText,
|
4313
4314
|
severity: "error"
|
4314
4315
|
}
|
4315
|
-
), /* @__PURE__ */
|
4316
|
+
), /* @__PURE__ */ import_react20.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4 hawa-mb-4" }, /* @__PURE__ */ import_react20.default.createElement(
|
4316
4317
|
import_react_hook_form3.Controller,
|
4317
4318
|
{
|
4318
4319
|
control,
|
4319
4320
|
name: "password",
|
4320
4321
|
render: ({ field }) => {
|
4321
4322
|
var _a2, _b2, _c2;
|
4322
|
-
return /* @__PURE__ */
|
4323
|
+
return /* @__PURE__ */ import_react20.default.createElement(
|
4323
4324
|
Input,
|
4324
4325
|
{
|
4325
4326
|
width: "full",
|
@@ -4333,14 +4334,14 @@ var NewPasswordForm = ({
|
|
4333
4334
|
);
|
4334
4335
|
}
|
4335
4336
|
}
|
4336
|
-
), /* @__PURE__ */
|
4337
|
+
), /* @__PURE__ */ import_react20.default.createElement(
|
4337
4338
|
import_react_hook_form3.Controller,
|
4338
4339
|
{
|
4339
4340
|
control,
|
4340
4341
|
name: "confirm_password",
|
4341
4342
|
render: ({ field }) => {
|
4342
4343
|
var _a2, _b2, _c2;
|
4343
|
-
return /* @__PURE__ */
|
4344
|
+
return /* @__PURE__ */ import_react20.default.createElement(
|
4344
4345
|
Input,
|
4345
4346
|
{
|
4346
4347
|
width: "full",
|
@@ -4354,7 +4355,7 @@ var NewPasswordForm = ({
|
|
4354
4355
|
);
|
4355
4356
|
}
|
4356
4357
|
}
|
4357
|
-
)), /* @__PURE__ */
|
4358
|
+
)), /* @__PURE__ */ import_react20.default.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ import_react20.default.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_g = texts == null ? void 0 : texts.dontHaveAccount) != null ? _g : "Don't have an account? ", /* @__PURE__ */ import_react20.default.createElement(
|
4358
4359
|
"span",
|
4359
4360
|
{
|
4360
4361
|
className: "clickable-link",
|
@@ -4366,7 +4367,7 @@ var NewPasswordForm = ({
|
|
4366
4367
|
};
|
4367
4368
|
|
4368
4369
|
// blocks/auth/ResetPassword.tsx
|
4369
|
-
var
|
4370
|
+
var import_react21 = __toESM(require("react"));
|
4370
4371
|
var import_react_hook_form4 = require("react-hook-form");
|
4371
4372
|
var import_zod4 = require("@hookform/resolvers/zod");
|
4372
4373
|
var z4 = __toESM(require("zod"));
|
@@ -4384,7 +4385,7 @@ var ResetPasswordForm = ({
|
|
4384
4385
|
const { handleSubmit, control, formState } = (0, import_react_hook_form4.useForm)({
|
4385
4386
|
resolver: (0, import_zod4.zodResolver)(formSchema)
|
4386
4387
|
});
|
4387
|
-
return /* @__PURE__ */
|
4388
|
+
return /* @__PURE__ */ import_react21.default.createElement(Card, { dir: props.direction }, !props.sent ? /* @__PURE__ */ import_react21.default.createElement(import_react21.default.Fragment, null, !props.headless && /* @__PURE__ */ import_react21.default.createElement(CardHeader, null, /* @__PURE__ */ import_react21.default.createElement(CardTitle, null, ((_g = props.texts) == null ? void 0 : _g.headTitle) || "Reset Password"), /* @__PURE__ */ import_react21.default.createElement(CardDescription, null, ((_h = props.texts) == null ? void 0 : _h.headDescription) || "Enter your email to reset your account password")), /* @__PURE__ */ import_react21.default.createElement(
|
4388
4389
|
"form",
|
4389
4390
|
{
|
4390
4391
|
noValidate: true,
|
@@ -4396,7 +4397,7 @@ var ResetPasswordForm = ({
|
|
4396
4397
|
}
|
4397
4398
|
})
|
4398
4399
|
},
|
4399
|
-
/* @__PURE__ */
|
4400
|
+
/* @__PURE__ */ import_react21.default.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, props.showError && /* @__PURE__ */ import_react21.default.createElement(
|
4400
4401
|
Alert,
|
4401
4402
|
{
|
4402
4403
|
direction: props.direction,
|
@@ -4404,14 +4405,14 @@ var ResetPasswordForm = ({
|
|
4404
4405
|
text: props.errorText,
|
4405
4406
|
severity: "error"
|
4406
4407
|
}
|
4407
|
-
), /* @__PURE__ */
|
4408
|
+
), /* @__PURE__ */ import_react21.default.createElement(
|
4408
4409
|
import_react_hook_form4.Controller,
|
4409
4410
|
{
|
4410
4411
|
control,
|
4411
4412
|
name: "email",
|
4412
4413
|
render: ({ field }) => {
|
4413
4414
|
var _a2, _b2, _c2, _d2, _e2;
|
4414
|
-
return /* @__PURE__ */
|
4415
|
+
return /* @__PURE__ */ import_react21.default.createElement(
|
4415
4416
|
Input,
|
4416
4417
|
{
|
4417
4418
|
width: "full",
|
@@ -4427,7 +4428,7 @@ var ResetPasswordForm = ({
|
|
4427
4428
|
}
|
4428
4429
|
}
|
4429
4430
|
)),
|
4430
|
-
/* @__PURE__ */
|
4431
|
+
/* @__PURE__ */ import_react21.default.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react21.default.createElement(
|
4431
4432
|
Button,
|
4432
4433
|
{
|
4433
4434
|
type: "submit",
|
@@ -4435,7 +4436,7 @@ var ResetPasswordForm = ({
|
|
4435
4436
|
isLoading
|
4436
4437
|
},
|
4437
4438
|
((_i = props.texts) == null ? void 0 : _i.resetPassword) || "Reset Password"
|
4438
|
-
), allowRegister && /* @__PURE__ */
|
4439
|
+
), allowRegister && /* @__PURE__ */ import_react21.default.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_k = (_j = props.texts) == null ? void 0 : _j.dontHaveAccount) != null ? _k : "Don't have an account? ", /* @__PURE__ */ import_react21.default.createElement(
|
4439
4440
|
"span",
|
4440
4441
|
{
|
4441
4442
|
className: "clickable-link",
|
@@ -4443,17 +4444,17 @@ var ResetPasswordForm = ({
|
|
4443
4444
|
},
|
4444
4445
|
(_m = (_l = props.texts) == null ? void 0 : _l.registerText) != null ? _m : "Register"
|
4445
4446
|
)))
|
4446
|
-
)) : /* @__PURE__ */
|
4447
|
+
)) : /* @__PURE__ */ import_react21.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react21.default.createElement("div", { className: "hawa-text-center" }, ((_n = props.texts) == null ? void 0 : _n.emailSentText) || "An email has been sent with a link to set a new password")));
|
4447
4448
|
};
|
4448
4449
|
|
4449
4450
|
// blocks/auth/CodeConfirmation.tsx
|
4450
|
-
var
|
4451
|
+
var import_react23 = __toESM(require("react"));
|
4451
4452
|
var import_react_hook_form5 = require("react-hook-form");
|
4452
4453
|
var import_zod5 = require("@hookform/resolvers/zod");
|
4453
4454
|
var z5 = __toESM(require("zod"));
|
4454
4455
|
|
4455
4456
|
// elements/pinInput/PinInput.tsx
|
4456
|
-
var
|
4457
|
+
var import_react22 = __toESM(require("react"));
|
4457
4458
|
var PinInput = ({
|
4458
4459
|
label,
|
4459
4460
|
icon,
|
@@ -4463,7 +4464,7 @@ var PinInput = ({
|
|
4463
4464
|
inputProps,
|
4464
4465
|
...props
|
4465
4466
|
}) => {
|
4466
|
-
const [pin, setPin] = (0,
|
4467
|
+
const [pin, setPin] = (0, import_react22.useState)(Array.from(Array(digits)));
|
4467
4468
|
const handleKeyDown = (e, index) => {
|
4468
4469
|
let backTo = 0;
|
4469
4470
|
if (e.key === "Backspace") {
|
@@ -4472,7 +4473,7 @@ var PinInput = ({
|
|
4472
4473
|
previousInput == null ? void 0 : previousInput.focus();
|
4473
4474
|
}
|
4474
4475
|
};
|
4475
|
-
(0,
|
4476
|
+
(0, import_react22.useEffect)(() => {
|
4476
4477
|
let unfilled = pin.includes(void 0);
|
4477
4478
|
if (!unfilled && getPins) {
|
4478
4479
|
getPins(pin);
|
@@ -4497,13 +4498,13 @@ var PinInput = ({
|
|
4497
4498
|
}
|
4498
4499
|
}
|
4499
4500
|
};
|
4500
|
-
return /* @__PURE__ */
|
4501
|
+
return /* @__PURE__ */ import_react22.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react22.default.createElement(
|
4501
4502
|
"div",
|
4502
4503
|
{
|
4503
4504
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
4504
4505
|
dir: "ltr"
|
4505
4506
|
},
|
4506
|
-
pin.map((value, index) => /* @__PURE__ */
|
4507
|
+
pin.map((value, index) => /* @__PURE__ */ import_react22.default.createElement(
|
4507
4508
|
"input",
|
4508
4509
|
{
|
4509
4510
|
key: index,
|
@@ -4523,7 +4524,7 @@ var PinInput = ({
|
|
4523
4524
|
...inputProps
|
4524
4525
|
}
|
4525
4526
|
))
|
4526
|
-
), /* @__PURE__ */
|
4527
|
+
), /* @__PURE__ */ import_react22.default.createElement(
|
4527
4528
|
"p",
|
4528
4529
|
{
|
4529
4530
|
className: cn(
|
@@ -4544,9 +4545,9 @@ var CodeConfirmation = (props) => {
|
|
4544
4545
|
const { handleSubmit, control, formState, setValue } = (0, import_react_hook_form5.useForm)({
|
4545
4546
|
resolver: (0, import_zod5.zodResolver)(formSchema)
|
4546
4547
|
});
|
4547
|
-
const [resendTimer, setResendTimer] = (0,
|
4548
|
-
const [remainingTime, setRemainingTime] = (0,
|
4549
|
-
const [showResendTimer, setShowResendTimer] = (0,
|
4548
|
+
const [resendTimer, setResendTimer] = (0, import_react23.useState)(null);
|
4549
|
+
const [remainingTime, setRemainingTime] = (0, import_react23.useState)(0);
|
4550
|
+
const [showResendTimer, setShowResendTimer] = (0, import_react23.useState)(false);
|
4550
4551
|
const startResendTimer = () => {
|
4551
4552
|
if (resendTimer !== null) {
|
4552
4553
|
clearInterval(resendTimer);
|
@@ -4568,21 +4569,21 @@ var CodeConfirmation = (props) => {
|
|
4568
4569
|
}, 1e3);
|
4569
4570
|
setResendTimer(newTimer);
|
4570
4571
|
};
|
4571
|
-
(0,
|
4572
|
+
(0, import_react23.useEffect)(() => {
|
4572
4573
|
return () => {
|
4573
4574
|
if (resendTimer !== null) {
|
4574
4575
|
clearInterval(resendTimer);
|
4575
4576
|
}
|
4576
4577
|
};
|
4577
4578
|
}, []);
|
4578
|
-
return /* @__PURE__ */
|
4579
|
+
return /* @__PURE__ */ import_react23.default.createElement(Card, null, /* @__PURE__ */ import_react23.default.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ import_react23.default.createElement(
|
4579
4580
|
Alert,
|
4580
4581
|
{
|
4581
4582
|
title: props.errorTitle,
|
4582
4583
|
text: props.errorText,
|
4583
4584
|
severity: "error"
|
4584
4585
|
}
|
4585
|
-
), /* @__PURE__ */
|
4586
|
+
), /* @__PURE__ */ import_react23.default.createElement("div", { className: "hawa-mb-4 dark:hawa-text-white" }, /* @__PURE__ */ import_react23.default.createElement("div", { className: "hawa-text-lg hawa-font-bold" }, ((_c = props.texts) == null ? void 0 : _c.checkYourPhone) || "Please check your phone"), /* @__PURE__ */ import_react23.default.createElement("div", { className: "hawa-text-muted-foreground" }, /* @__PURE__ */ import_react23.default.createElement("span", null, ((_d = props.texts) == null ? void 0 : _d.weSentCode) || "We've sent a code to "), /* @__PURE__ */ import_react23.default.createElement("span", null, props.phoneNumber))), /* @__PURE__ */ import_react23.default.createElement(
|
4586
4587
|
"form",
|
4587
4588
|
{
|
4588
4589
|
noValidate: true,
|
@@ -4596,14 +4597,14 @@ var CodeConfirmation = (props) => {
|
|
4596
4597
|
}
|
4597
4598
|
})
|
4598
4599
|
},
|
4599
|
-
/* @__PURE__ */
|
4600
|
+
/* @__PURE__ */ import_react23.default.createElement(
|
4600
4601
|
import_react_hook_form5.Controller,
|
4601
4602
|
{
|
4602
4603
|
control,
|
4603
4604
|
name: "otp_code",
|
4604
4605
|
render: ({ field }) => {
|
4605
4606
|
var _a2;
|
4606
|
-
return /* @__PURE__ */
|
4607
|
+
return /* @__PURE__ */ import_react23.default.createElement(
|
4607
4608
|
PinInput,
|
4608
4609
|
{
|
4609
4610
|
width: "full",
|
@@ -4615,7 +4616,7 @@ var CodeConfirmation = (props) => {
|
|
4615
4616
|
}
|
4616
4617
|
}
|
4617
4618
|
),
|
4618
|
-
showResendTimer ? /* @__PURE__ */
|
4619
|
+
showResendTimer ? /* @__PURE__ */ import_react23.default.createElement("div", { className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground" }, (_e = props.texts) == null ? void 0 : _e.resendCodeTimer, " ", /* @__PURE__ */ import_react23.default.createElement("strong", null, remainingTime), " ", (_f = props.texts) == null ? void 0 : _f.seconds) : /* @__PURE__ */ import_react23.default.createElement("div", { className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground" }, /* @__PURE__ */ import_react23.default.createElement("span", null, (_h = (_g = props.texts) == null ? void 0 : _g.didntGetCode) != null ? _h : "Didn't get the code?"), " ", /* @__PURE__ */ import_react23.default.createElement(
|
4619
4620
|
"span",
|
4620
4621
|
{
|
4621
4622
|
className: "clickable-link",
|
@@ -4626,7 +4627,7 @@ var CodeConfirmation = (props) => {
|
|
4626
4627
|
},
|
4627
4628
|
((_i = props.texts) == null ? void 0 : _i.resendCode) || "Click to resend"
|
4628
4629
|
)),
|
4629
|
-
/* @__PURE__ */
|
4630
|
+
/* @__PURE__ */ import_react23.default.createElement("div", { className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2" }, /* @__PURE__ */ import_react23.default.createElement(Button, { variant: "outline" }, ((_j = props.texts) == null ? void 0 : _j.cancel) || "Cancel"), /* @__PURE__ */ import_react23.default.createElement(Button, { isLoading: props.confirmLoading }, ((_k = props.texts) == null ? void 0 : _k.confirm) || "Confirm"))
|
4630
4631
|
)));
|
4631
4632
|
};
|
4632
4633
|
// Annotate the CommonJS export names for ESM import in node:
|