@sikka/hawa 0.35.1-next → 0.35.2-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/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 +63 -62
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +5 -4
- package/dist/appLayout/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.js +511 -510
- 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-IDKXEJET.mjs → chunk-FY7BKFH7.mjs} +33 -32
- 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-L56XQRQI.mjs → chunk-WABHQMUI.mjs} +1 -1
- package/dist/{chunk-XFRJ62W3.mjs → chunk-WVMMGOXW.mjs} +1 -1
- package/dist/{chunk-DFWFQWWT.mjs → chunk-Y6XTMPVO.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 +38 -37
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +1 -0
- 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/elements/index.js +432 -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.js +871 -870
- package/dist/index.mjs +204 -203
- package/dist/layout/index.js +185 -184
- package/dist/layout/index.mjs +2 -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 +60 -59
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +37 -36
- package/dist/splitButton/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/layout/index.js
CHANGED
@@ -64,7 +64,7 @@ module.exports = __toCommonJS(layout_exports);
|
|
64
64
|
var import_react2 = __toESM(require("react"));
|
65
65
|
|
66
66
|
// elements/card/Card.tsx
|
67
|
-
var
|
67
|
+
var React = __toESM(require("react"));
|
68
68
|
|
69
69
|
// util/index.ts
|
70
70
|
var import_clsx = require("clsx");
|
@@ -74,7 +74,7 @@ function cn(...inputs) {
|
|
74
74
|
}
|
75
75
|
|
76
76
|
// elements/card/Card.tsx
|
77
|
-
var Card =
|
77
|
+
var Card = React.forwardRef(
|
78
78
|
({
|
79
79
|
className,
|
80
80
|
variant = "default",
|
@@ -93,7 +93,7 @@ var Card = React2.forwardRef(
|
|
93
93
|
clickable && "hawa-cursor-pointer active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"
|
94
94
|
)
|
95
95
|
};
|
96
|
-
return /* @__PURE__ */
|
96
|
+
return /* @__PURE__ */ React.createElement(
|
97
97
|
"div",
|
98
98
|
{
|
99
99
|
ref,
|
@@ -103,7 +103,7 @@ var Card = React2.forwardRef(
|
|
103
103
|
);
|
104
104
|
}
|
105
105
|
);
|
106
|
-
var CardHeader =
|
106
|
+
var CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
107
107
|
"div",
|
108
108
|
{
|
109
109
|
ref,
|
@@ -114,7 +114,7 @@ var CardHeader = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
114
114
|
...props
|
115
115
|
}
|
116
116
|
));
|
117
|
-
var CardTitle =
|
117
|
+
var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
118
118
|
"h3",
|
119
119
|
{
|
120
120
|
ref,
|
@@ -122,7 +122,7 @@ var CardTitle = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
122
122
|
...props
|
123
123
|
}
|
124
124
|
));
|
125
|
-
var CardDescription =
|
125
|
+
var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
126
126
|
"p",
|
127
127
|
{
|
128
128
|
ref,
|
@@ -130,8 +130,8 @@ var CardDescription = React2.forwardRef(({ className, ...props }, ref) => /* @__
|
|
130
130
|
...props
|
131
131
|
}
|
132
132
|
));
|
133
|
-
var CardContent =
|
134
|
-
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */
|
133
|
+
var CardContent = React.forwardRef(
|
134
|
+
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
135
135
|
"div",
|
136
136
|
{
|
137
137
|
ref,
|
@@ -144,7 +144,7 @@ var CardContent = React2.forwardRef(
|
|
144
144
|
}
|
145
145
|
)
|
146
146
|
);
|
147
|
-
var CardFooter =
|
147
|
+
var CardFooter = React.forwardRef(({ className, noPadding, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
148
148
|
"div",
|
149
149
|
{
|
150
150
|
ref,
|
@@ -231,7 +231,7 @@ var Stats = ({
|
|
231
231
|
};
|
232
232
|
|
233
233
|
// layout/sidebar/Sidebar.tsx
|
234
|
-
var
|
234
|
+
var React5 = __toESM(require("react"));
|
235
235
|
var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
|
236
236
|
|
237
237
|
// elements/chip/Chip.tsx
|
@@ -318,9 +318,9 @@ var Chip = import_react3.default.forwardRef(
|
|
318
318
|
// layout/sidebar/Sidebar.tsx
|
319
319
|
var Accordion = AccordionPrimitive.Root;
|
320
320
|
var triggerStyles = "hawa-flex hawa-flex-1 hawa-items-center hawa-duration-75 hawa-select-none hawa-cursor-pointer hawa-rounded hawa-justify-between hawa-p-2 hawa-px-3 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa--rotate-90";
|
321
|
-
var AccordionItem =
|
321
|
+
var AccordionItem = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React5.createElement(AccordionPrimitive.Item, { ref, className: cn(className), ...props }));
|
322
322
|
AccordionItem.displayName = "AccordionItem";
|
323
|
-
var AccordionTrigger =
|
323
|
+
var AccordionTrigger = React5.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React5.createElement(AccordionPrimitive.Header, { className: "flex" }, /* @__PURE__ */ React5.createElement(
|
324
324
|
AccordionPrimitive.Trigger,
|
325
325
|
{
|
326
326
|
ref,
|
@@ -328,7 +328,7 @@ var AccordionTrigger = React6.forwardRef(({ className, showArrow, children, ...p
|
|
328
328
|
...props
|
329
329
|
},
|
330
330
|
children,
|
331
|
-
showArrow && /* @__PURE__ */
|
331
|
+
showArrow && /* @__PURE__ */ React5.createElement(
|
332
332
|
"svg",
|
333
333
|
{
|
334
334
|
"aria-label": "Chevron Right Icon",
|
@@ -339,11 +339,11 @@ var AccordionTrigger = React6.forwardRef(({ className, showArrow, children, ...p
|
|
339
339
|
width: "1em",
|
340
340
|
className: "hawa-icon hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
|
341
341
|
},
|
342
|
-
/* @__PURE__ */
|
342
|
+
/* @__PURE__ */ React5.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
|
343
343
|
)
|
344
344
|
)));
|
345
345
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
346
|
-
var AccordionContent =
|
346
|
+
var AccordionContent = React5.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
347
347
|
AccordionPrimitive.Content,
|
348
348
|
{
|
349
349
|
ref,
|
@@ -353,7 +353,7 @@ var AccordionContent = React6.forwardRef(({ className, children, ...props }, ref
|
|
353
353
|
),
|
354
354
|
...props
|
355
355
|
},
|
356
|
-
/* @__PURE__ */
|
356
|
+
/* @__PURE__ */ React5.createElement("div", null, children)
|
357
357
|
));
|
358
358
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
359
359
|
var SidebarGroup = ({
|
@@ -369,7 +369,7 @@ var SidebarGroup = ({
|
|
369
369
|
...props
|
370
370
|
}) => {
|
371
371
|
const LinkComponent = props.LinkComponent || "a";
|
372
|
-
return /* @__PURE__ */
|
372
|
+
return /* @__PURE__ */ React5.createElement("div", { className: "hawa-m-2" }, title && /* @__PURE__ */ React5.createElement("h3", { className: "hawa-mb-1 hawa-font-bold" }, title), /* @__PURE__ */ React5.createElement("ul", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React5.createElement(
|
373
373
|
Accordion,
|
374
374
|
{
|
375
375
|
value: openedItem,
|
@@ -380,7 +380,7 @@ var SidebarGroup = ({
|
|
380
380
|
collapsible: true,
|
381
381
|
className: "hawa-flex hawa-flex-col hawa-gap-1"
|
382
382
|
},
|
383
|
-
items.map((item, idx) => /* @__PURE__ */
|
383
|
+
items.map((item, idx) => /* @__PURE__ */ React5.createElement(
|
384
384
|
SidebarItem,
|
385
385
|
{
|
386
386
|
isOpen,
|
@@ -408,14 +408,14 @@ var SidebarItem = ({
|
|
408
408
|
return props.selectedItem === value ? "hawa-bg-primary/90 hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
|
409
409
|
};
|
410
410
|
if (item.subitems) {
|
411
|
-
return /* @__PURE__ */
|
411
|
+
return /* @__PURE__ */ React5.createElement(
|
412
412
|
AccordionItem,
|
413
413
|
{
|
414
414
|
value: item.value,
|
415
415
|
className: "hawa-overflow-x-clip ",
|
416
416
|
dir: direction
|
417
417
|
},
|
418
|
-
/* @__PURE__ */
|
418
|
+
/* @__PURE__ */ React5.createElement(
|
419
419
|
AccordionTrigger,
|
420
420
|
{
|
421
421
|
className: cn(
|
@@ -427,7 +427,7 @@ var SidebarItem = ({
|
|
427
427
|
),
|
428
428
|
showArrow: isOpen
|
429
429
|
},
|
430
|
-
/* @__PURE__ */
|
430
|
+
/* @__PURE__ */ React5.createElement(
|
431
431
|
"div",
|
432
432
|
{
|
433
433
|
className: cn(
|
@@ -435,7 +435,7 @@ var SidebarItem = ({
|
|
435
435
|
)
|
436
436
|
},
|
437
437
|
item.icon && item.icon,
|
438
|
-
/* @__PURE__ */
|
438
|
+
/* @__PURE__ */ React5.createElement(
|
439
439
|
"span",
|
440
440
|
{
|
441
441
|
className: cn(
|
@@ -447,14 +447,14 @@ var SidebarItem = ({
|
|
447
447
|
)
|
448
448
|
)
|
449
449
|
),
|
450
|
-
item.subitems && /* @__PURE__ */
|
450
|
+
item.subitems && /* @__PURE__ */ React5.createElement(AccordionContent, { className: "hawa-mt-1 hawa-h-full hawa-rounded" }, /* @__PURE__ */ React5.createElement(
|
451
451
|
"div",
|
452
452
|
{
|
453
453
|
className: cn(
|
454
454
|
"hawa-flex hawa-h-full hawa-flex-col hawa-gap-2 hawa-bg-foreground/5 hawa-p-1"
|
455
455
|
)
|
456
456
|
},
|
457
|
-
item.subitems.map((subitem, idx) => /* @__PURE__ */
|
457
|
+
item.subitems.map((subitem, idx) => /* @__PURE__ */ React5.createElement(
|
458
458
|
LinkComponent,
|
459
459
|
{
|
460
460
|
href: subitem.slug,
|
@@ -485,7 +485,7 @@ var SidebarItem = ({
|
|
485
485
|
))
|
486
486
|
);
|
487
487
|
} else {
|
488
|
-
return /* @__PURE__ */
|
488
|
+
return /* @__PURE__ */ React5.createElement(
|
489
489
|
LinkComponent,
|
490
490
|
{
|
491
491
|
href: item.slug,
|
@@ -509,7 +509,7 @@ var SidebarItem = ({
|
|
509
509
|
"hawa-overflow-x-clip "
|
510
510
|
)
|
511
511
|
},
|
512
|
-
/* @__PURE__ */
|
512
|
+
/* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, item.icon && item.icon, /* @__PURE__ */ React5.createElement(
|
513
513
|
"span",
|
514
514
|
{
|
515
515
|
className: cn(
|
@@ -519,7 +519,7 @@ var SidebarItem = ({
|
|
519
519
|
},
|
520
520
|
item.label,
|
521
521
|
" ",
|
522
|
-
item.badge && /* @__PURE__ */
|
522
|
+
item.badge && /* @__PURE__ */ React5.createElement(Chip, { label: item.badge.label, color: "hyper", size: "small" })
|
523
523
|
))
|
524
524
|
);
|
525
525
|
}
|
@@ -652,7 +652,7 @@ var Navbar = ({
|
|
652
652
|
};
|
653
653
|
|
654
654
|
// layout/appLayout/AppLayout.tsx
|
655
|
-
var
|
655
|
+
var import_react10 = __toESM(require("react"));
|
656
656
|
|
657
657
|
// hooks/useOutsideClick.ts
|
658
658
|
var import_react6 = __toESM(require("react"));
|
@@ -678,7 +678,8 @@ var React13 = __toESM(require("react"));
|
|
678
678
|
var import_class_variance_authority = require("class-variance-authority");
|
679
679
|
|
680
680
|
// elements/helperText/HelperText.tsx
|
681
|
-
var
|
681
|
+
var import_react7 = __toESM(require("react"));
|
682
|
+
var HelperText = ({ helperText }) => /* @__PURE__ */ import_react7.default.createElement(
|
682
683
|
"p",
|
683
684
|
{
|
684
685
|
className: cn(
|
@@ -693,9 +694,9 @@ var HelperText = ({ helperText }) => /* @__PURE__ */ React.createElement(
|
|
693
694
|
var React11 = __toESM(require("react"));
|
694
695
|
|
695
696
|
// elements/tooltip/Tooltip.tsx
|
696
|
-
var
|
697
|
+
var import_react8 = __toESM(require("react"));
|
697
698
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
698
|
-
var TooltipContent =
|
699
|
+
var TooltipContent = import_react8.default.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ import_react8.default.createElement(
|
699
700
|
TooltipPrimitive.Content,
|
700
701
|
{
|
701
702
|
ref,
|
@@ -712,7 +713,7 @@ var TooltipContent = import_react7.default.forwardRef(({ className, sideOffset =
|
|
712
713
|
}
|
713
714
|
));
|
714
715
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
715
|
-
var TooltipArrow =
|
716
|
+
var TooltipArrow = import_react8.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ import_react8.default.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
|
716
717
|
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
717
718
|
var Tooltip = ({
|
718
719
|
side,
|
@@ -729,13 +730,13 @@ var Tooltip = ({
|
|
729
730
|
delayDuration = 300,
|
730
731
|
...props
|
731
732
|
}) => {
|
732
|
-
return /* @__PURE__ */
|
733
|
+
return /* @__PURE__ */ import_react8.default.createElement(
|
733
734
|
TooltipPrimitive.TooltipProvider,
|
734
735
|
{
|
735
736
|
delayDuration,
|
736
737
|
...providerProps
|
737
738
|
},
|
738
|
-
/* @__PURE__ */
|
739
|
+
/* @__PURE__ */ import_react8.default.createElement(
|
739
740
|
TooltipPrimitive.Root,
|
740
741
|
{
|
741
742
|
open: !disabled && open,
|
@@ -743,8 +744,8 @@ var Tooltip = ({
|
|
743
744
|
onOpenChange,
|
744
745
|
...props
|
745
746
|
},
|
746
|
-
/* @__PURE__ */
|
747
|
-
/* @__PURE__ */
|
747
|
+
/* @__PURE__ */ import_react8.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
748
|
+
/* @__PURE__ */ import_react8.default.createElement(
|
748
749
|
TooltipContent,
|
749
750
|
{
|
750
751
|
size,
|
@@ -806,7 +807,7 @@ var Label = React11.forwardRef(({ className, hint, hintSide, required, children,
|
|
806
807
|
Label.displayName = "Label";
|
807
808
|
|
808
809
|
// elements/loading/Loading.tsx
|
809
|
-
var
|
810
|
+
var import_react9 = __toESM(require("react"));
|
810
811
|
var Loading = ({
|
811
812
|
design = "spinner",
|
812
813
|
size = "normal",
|
@@ -837,7 +838,7 @@ var Loading = ({
|
|
837
838
|
};
|
838
839
|
switch (design.split("-")[0]) {
|
839
840
|
case "dots":
|
840
|
-
return /* @__PURE__ */
|
841
|
+
return /* @__PURE__ */ import_react9.default.createElement(
|
841
842
|
"div",
|
842
843
|
{
|
843
844
|
className: cn(
|
@@ -845,7 +846,7 @@ var Loading = ({
|
|
845
846
|
classNames == null ? void 0 : classNames.container
|
846
847
|
)
|
847
848
|
},
|
848
|
-
/* @__PURE__ */
|
849
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
849
850
|
"div",
|
850
851
|
{
|
851
852
|
className: cn(
|
@@ -856,7 +857,7 @@ var Loading = ({
|
|
856
857
|
)
|
857
858
|
}
|
858
859
|
),
|
859
|
-
/* @__PURE__ */
|
860
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
860
861
|
"div",
|
861
862
|
{
|
862
863
|
className: cn(
|
@@ -867,7 +868,7 @@ var Loading = ({
|
|
867
868
|
)
|
868
869
|
}
|
869
870
|
),
|
870
|
-
/* @__PURE__ */
|
871
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
871
872
|
"div",
|
872
873
|
{
|
873
874
|
className: cn(
|
@@ -880,7 +881,7 @@ var Loading = ({
|
|
880
881
|
)
|
881
882
|
);
|
882
883
|
case "square":
|
883
|
-
return /* @__PURE__ */
|
884
|
+
return /* @__PURE__ */ import_react9.default.createElement(
|
884
885
|
"svg",
|
885
886
|
{
|
886
887
|
className: cn(
|
@@ -892,7 +893,7 @@ var Loading = ({
|
|
892
893
|
height: "35",
|
893
894
|
width: "35"
|
894
895
|
},
|
895
|
-
/* @__PURE__ */
|
896
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
896
897
|
"rect",
|
897
898
|
{
|
898
899
|
className: "squircle-track",
|
@@ -904,7 +905,7 @@ var Loading = ({
|
|
904
905
|
height: "32.5"
|
905
906
|
}
|
906
907
|
),
|
907
|
-
/* @__PURE__ */
|
908
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
908
909
|
"rect",
|
909
910
|
{
|
910
911
|
className: "square-car",
|
@@ -919,7 +920,7 @@ var Loading = ({
|
|
919
920
|
)
|
920
921
|
);
|
921
922
|
case "squircle":
|
922
|
-
return /* @__PURE__ */
|
923
|
+
return /* @__PURE__ */ import_react9.default.createElement(
|
923
924
|
"svg",
|
924
925
|
{
|
925
926
|
x: "0px",
|
@@ -934,7 +935,7 @@ var Loading = ({
|
|
934
935
|
classNames == null ? void 0 : classNames.container
|
935
936
|
)
|
936
937
|
},
|
937
|
-
/* @__PURE__ */
|
938
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
938
939
|
"path",
|
939
940
|
{
|
940
941
|
className: cn("squircle-track", classNames == null ? void 0 : classNames.track),
|
@@ -944,7 +945,7 @@ var Loading = ({
|
|
944
945
|
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"
|
945
946
|
}
|
946
947
|
),
|
947
|
-
/* @__PURE__ */
|
948
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
948
949
|
"path",
|
949
950
|
{
|
950
951
|
className: cn("squircle-car", classNames == null ? void 0 : classNames.car),
|
@@ -956,7 +957,7 @@ var Loading = ({
|
|
956
957
|
)
|
957
958
|
);
|
958
959
|
case "progress":
|
959
|
-
return /* @__PURE__ */
|
960
|
+
return /* @__PURE__ */ import_react9.default.createElement(
|
960
961
|
"div",
|
961
962
|
{
|
962
963
|
className: cn(
|
@@ -967,9 +968,9 @@ var Loading = ({
|
|
967
968
|
}
|
968
969
|
);
|
969
970
|
case "orbit":
|
970
|
-
return /* @__PURE__ */
|
971
|
+
return /* @__PURE__ */ import_react9.default.createElement("div", { className: cn("orbit-container", classNames == null ? void 0 : classNames.container) });
|
971
972
|
default:
|
972
|
-
return /* @__PURE__ */
|
973
|
+
return /* @__PURE__ */ import_react9.default.createElement(
|
973
974
|
"svg",
|
974
975
|
{
|
975
976
|
viewBox: "0 0 40 40",
|
@@ -981,7 +982,7 @@ var Loading = ({
|
|
981
982
|
classNames == null ? void 0 : classNames.container
|
982
983
|
)
|
983
984
|
},
|
984
|
-
/* @__PURE__ */
|
985
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
985
986
|
"circle",
|
986
987
|
{
|
987
988
|
className: cn(
|
@@ -1000,7 +1001,7 @@ var Loading = ({
|
|
1000
1001
|
pathLength: "100"
|
1001
1002
|
}
|
1002
1003
|
),
|
1003
|
-
/* @__PURE__ */
|
1004
|
+
/* @__PURE__ */ import_react9.default.createElement(
|
1004
1005
|
"circle",
|
1005
1006
|
{
|
1006
1007
|
className: cn(
|
@@ -1493,13 +1494,13 @@ var AppLayout = ({
|
|
1493
1494
|
}
|
1494
1495
|
};
|
1495
1496
|
const isRTL = direction === "rtl";
|
1496
|
-
const [openedSidebarItem, setOpenedSidebarItem] = (0,
|
1497
|
-
const [size, setSize] = (0,
|
1497
|
+
const [openedSidebarItem, setOpenedSidebarItem] = (0, import_react10.useState)("");
|
1498
|
+
const [size, setSize] = (0, import_react10.useState)(
|
1498
1499
|
typeof window !== "undefined" && window.innerWidth || 1200
|
1499
1500
|
);
|
1500
|
-
const [openSideMenu, setOpenSideMenu] = (0,
|
1501
|
-
const [keepDrawerOpen, setKeepDrawerOpen] = (0,
|
1502
|
-
(0,
|
1501
|
+
const [openSideMenu, setOpenSideMenu] = (0, import_react10.useState)(true);
|
1502
|
+
const [keepDrawerOpen, setKeepDrawerOpen] = (0, import_react10.useState)(keepOpen);
|
1503
|
+
(0, import_react10.useEffect)(() => {
|
1503
1504
|
if (typeof window !== "undefined") {
|
1504
1505
|
const resize = () => {
|
1505
1506
|
setSize(window.innerWidth);
|
@@ -1514,7 +1515,7 @@ var AppLayout = ({
|
|
1514
1515
|
};
|
1515
1516
|
}
|
1516
1517
|
}, []);
|
1517
|
-
(0,
|
1518
|
+
(0, import_react10.useEffect)(() => {
|
1518
1519
|
setKeepDrawerOpen(keepOpen);
|
1519
1520
|
}, [setKeepOpen]);
|
1520
1521
|
const handleClickOutside = () => {
|
@@ -1529,14 +1530,14 @@ var AppLayout = ({
|
|
1529
1530
|
};
|
1530
1531
|
const ref = useOutsideClick_default(handleClickOutside);
|
1531
1532
|
const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepDrawerOpen ? "opened" : "closed"][drawerSize] : 0;
|
1532
|
-
(0,
|
1533
|
+
(0, import_react10.useEffect)(() => {
|
1533
1534
|
if (size > 600) {
|
1534
1535
|
setOpenSideMenu(keepDrawerOpen);
|
1535
1536
|
} else {
|
1536
1537
|
setOpenSideMenu(false);
|
1537
1538
|
}
|
1538
1539
|
}, [size]);
|
1539
|
-
return /* @__PURE__ */
|
1540
|
+
return /* @__PURE__ */ import_react10.default.createElement("div", { className: "hawa-fixed hawa-start-0" }, props.topBar && /* @__PURE__ */ import_react10.default.createElement(
|
1540
1541
|
"div",
|
1541
1542
|
{
|
1542
1543
|
dir: direction,
|
@@ -1545,7 +1546,7 @@ var AppLayout = ({
|
|
1545
1546
|
bordered && "hawa-border-b-[1px]"
|
1546
1547
|
)
|
1547
1548
|
},
|
1548
|
-
size > 600 ? /* @__PURE__ */
|
1549
|
+
size > 600 ? /* @__PURE__ */ import_react10.default.createElement(
|
1549
1550
|
"div",
|
1550
1551
|
{
|
1551
1552
|
className: cn(
|
@@ -1559,24 +1560,24 @@ var AppLayout = ({
|
|
1559
1560
|
props.pageTitle
|
1560
1561
|
) : (
|
1561
1562
|
// Mobile Drawer Menu Button
|
1562
|
-
/* @__PURE__ */
|
1563
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
1563
1564
|
"div",
|
1564
1565
|
{
|
1565
1566
|
dir: direction,
|
1566
1567
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
1567
1568
|
},
|
1568
|
-
/* @__PURE__ */
|
1569
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
1569
1570
|
"div",
|
1570
1571
|
{
|
1571
1572
|
onClick: () => setOpenSideMenu(true),
|
1572
1573
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
1573
1574
|
},
|
1574
|
-
/* @__PURE__ */
|
1575
|
+
/* @__PURE__ */ import_react10.default.createElement(MenuIcon, null)
|
1575
1576
|
),
|
1576
|
-
props.pageTitle ? /* @__PURE__ */
|
1577
|
+
props.pageTitle ? /* @__PURE__ */ import_react10.default.createElement("div", { className: "hawa-text-sm" }, props.pageTitle) : /* @__PURE__ */ import_react10.default.createElement("div", null)
|
1577
1578
|
)
|
1578
1579
|
),
|
1579
|
-
/* @__PURE__ */
|
1580
|
+
/* @__PURE__ */ import_react10.default.createElement("div", { className: cn("hawa-flex hawa-gap-2 dark:hawa-text-white") }, size > 600 ? /* @__PURE__ */ import_react10.default.createElement("div", { className: "hawa-text-end hawa-text-xs" }, /* @__PURE__ */ import_react10.default.createElement("div", { className: "hawa-font-bold" }, props.username), " ", /* @__PURE__ */ import_react10.default.createElement("div", null, props.email)) : null, /* @__PURE__ */ import_react10.default.createElement(
|
1580
1581
|
DropdownMenu,
|
1581
1582
|
{
|
1582
1583
|
LinkComponent: MenuLinkComponent,
|
@@ -1589,13 +1590,13 @@ var AppLayout = ({
|
|
1589
1590
|
direction,
|
1590
1591
|
items: props.profileMenuItems || [],
|
1591
1592
|
onItemSelect: (e) => console.log("selecting item ", e),
|
1592
|
-
trigger: /* @__PURE__ */
|
1593
|
+
trigger: /* @__PURE__ */ import_react10.default.createElement(
|
1593
1594
|
"div",
|
1594
1595
|
{
|
1595
1596
|
onClick: onAvatarClick,
|
1596
1597
|
className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600"
|
1597
1598
|
},
|
1598
|
-
props.avatarImage ? /* @__PURE__ */
|
1599
|
+
props.avatarImage ? /* @__PURE__ */ import_react10.default.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ import_react10.default.createElement(
|
1599
1600
|
"svg",
|
1600
1601
|
{
|
1601
1602
|
"aria-label": "Avatar Icon",
|
@@ -1603,7 +1604,7 @@ var AppLayout = ({
|
|
1603
1604
|
fill: "currentColor",
|
1604
1605
|
viewBox: "0 0 20 20"
|
1605
1606
|
},
|
1606
|
-
/* @__PURE__ */
|
1607
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
1607
1608
|
"path",
|
1608
1609
|
{
|
1609
1610
|
fillRule: "evenodd",
|
@@ -1615,7 +1616,7 @@ var AppLayout = ({
|
|
1615
1616
|
)
|
1616
1617
|
}
|
1617
1618
|
))
|
1618
|
-
), /* @__PURE__ */
|
1619
|
+
), /* @__PURE__ */ import_react10.default.createElement(
|
1619
1620
|
"div",
|
1620
1621
|
{
|
1621
1622
|
className: cn(
|
@@ -1643,7 +1644,7 @@ var AppLayout = ({
|
|
1643
1644
|
},
|
1644
1645
|
ref
|
1645
1646
|
},
|
1646
|
-
/* @__PURE__ */
|
1647
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
1647
1648
|
"div",
|
1648
1649
|
{
|
1649
1650
|
onClick: props.onLogoClick,
|
@@ -1658,7 +1659,7 @@ var AppLayout = ({
|
|
1658
1659
|
}
|
1659
1660
|
},
|
1660
1661
|
openSideMenu && props.header && props.header,
|
1661
|
-
!props.header && /* @__PURE__ */
|
1662
|
+
!props.header && /* @__PURE__ */ import_react10.default.createElement(
|
1662
1663
|
"img",
|
1663
1664
|
{
|
1664
1665
|
className: cn(
|
@@ -1669,7 +1670,7 @@ var AppLayout = ({
|
|
1669
1670
|
src: props.logoLink
|
1670
1671
|
}
|
1671
1672
|
),
|
1672
|
-
size > 600 ? /* @__PURE__ */
|
1673
|
+
size > 600 ? /* @__PURE__ */ import_react10.default.createElement(
|
1673
1674
|
"img",
|
1674
1675
|
{
|
1675
1676
|
className: cn(
|
@@ -1681,7 +1682,7 @@ var AppLayout = ({
|
|
1681
1682
|
}
|
1682
1683
|
) : null
|
1683
1684
|
),
|
1684
|
-
/* @__PURE__ */
|
1685
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
1685
1686
|
"div",
|
1686
1687
|
{
|
1687
1688
|
className: cn(
|
@@ -1692,7 +1693,7 @@ var AppLayout = ({
|
|
1692
1693
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : drawerSizeCondition}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
1693
1694
|
}
|
1694
1695
|
},
|
1695
|
-
/* @__PURE__ */
|
1696
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
1696
1697
|
SidebarGroup,
|
1697
1698
|
{
|
1698
1699
|
direction,
|
@@ -1715,7 +1716,7 @@ var AppLayout = ({
|
|
1715
1716
|
}
|
1716
1717
|
)
|
1717
1718
|
),
|
1718
|
-
/* @__PURE__ */
|
1719
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
1719
1720
|
"div",
|
1720
1721
|
{
|
1721
1722
|
className: cn(
|
@@ -1726,8 +1727,8 @@ var AppLayout = ({
|
|
1726
1727
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
1727
1728
|
}
|
1728
1729
|
},
|
1729
|
-
DrawerFooterActions && openSideMenu ? /* @__PURE__ */
|
1730
|
-
size > 600 && openSideMenu ? /* @__PURE__ */
|
1730
|
+
DrawerFooterActions && openSideMenu ? /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, DrawerFooterActions) : null,
|
1731
|
+
size > 600 && openSideMenu ? /* @__PURE__ */ import_react10.default.createElement(
|
1731
1732
|
Tooltip,
|
1732
1733
|
{
|
1733
1734
|
side: "left",
|
@@ -1735,7 +1736,7 @@ var AppLayout = ({
|
|
1735
1736
|
triggerProps: { asChild: true },
|
1736
1737
|
content: keepDrawerOpen ? ((_a = props.texts) == null ? void 0 : _a.collapseSidebar) || "Collapse Sidebar" : ((_b = props.texts) == null ? void 0 : _b.expandSidebar) || "Expand Sidebar"
|
1737
1738
|
},
|
1738
|
-
/* @__PURE__ */
|
1739
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
1739
1740
|
Button,
|
1740
1741
|
{
|
1741
1742
|
variant: "outline",
|
@@ -1748,7 +1749,7 @@ var AppLayout = ({
|
|
1748
1749
|
setKeepDrawerOpen(newKeepOpenState);
|
1749
1750
|
}
|
1750
1751
|
},
|
1751
|
-
/* @__PURE__ */
|
1752
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
1752
1753
|
"svg",
|
1753
1754
|
{
|
1754
1755
|
className: cn(
|
@@ -1758,7 +1759,7 @@ var AppLayout = ({
|
|
1758
1759
|
fill: "currentColor",
|
1759
1760
|
viewBox: "0 0 20 20"
|
1760
1761
|
},
|
1761
|
-
/* @__PURE__ */
|
1762
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
1762
1763
|
"path",
|
1763
1764
|
{
|
1764
1765
|
fillRule: "evenodd",
|
@@ -1770,7 +1771,7 @@ var AppLayout = ({
|
|
1770
1771
|
)
|
1771
1772
|
) : null
|
1772
1773
|
)
|
1773
|
-
), /* @__PURE__ */
|
1774
|
+
), /* @__PURE__ */ import_react10.default.createElement(
|
1774
1775
|
"div",
|
1775
1776
|
{
|
1776
1777
|
className: "hawa-fixed -hawa-z-10 hawa-overflow-y-auto hawa-transition-all",
|
@@ -1789,7 +1790,7 @@ var AppLayout = ({
|
|
1789
1790
|
props.children
|
1790
1791
|
));
|
1791
1792
|
};
|
1792
|
-
var MenuIcon = () => /* @__PURE__ */
|
1793
|
+
var MenuIcon = () => /* @__PURE__ */ import_react10.default.createElement(
|
1793
1794
|
"svg",
|
1794
1795
|
{
|
1795
1796
|
"aria-label": "Menu Button",
|
@@ -1801,7 +1802,7 @@ var MenuIcon = () => /* @__PURE__ */ import_react9.default.createElement(
|
|
1801
1802
|
height: "1.6em",
|
1802
1803
|
width: "1.6em"
|
1803
1804
|
},
|
1804
|
-
/* @__PURE__ */
|
1805
|
+
/* @__PURE__ */ import_react10.default.createElement(
|
1805
1806
|
"path",
|
1806
1807
|
{
|
1807
1808
|
fillRule: "evenodd",
|
@@ -1812,11 +1813,11 @@ var MenuIcon = () => /* @__PURE__ */ import_react9.default.createElement(
|
|
1812
1813
|
);
|
1813
1814
|
|
1814
1815
|
// layout/appTopbar/AppTopbar.tsx
|
1815
|
-
var
|
1816
|
+
var import_react11 = __toESM(require("react"));
|
1816
1817
|
var AppTopbar = ({ ...props }) => {
|
1817
1818
|
const isRTL = props.direction === "ltr";
|
1818
1819
|
const size = 1200;
|
1819
|
-
return /* @__PURE__ */
|
1820
|
+
return /* @__PURE__ */ import_react11.default.createElement(
|
1820
1821
|
"div",
|
1821
1822
|
{
|
1822
1823
|
className: cn(
|
@@ -1824,24 +1825,24 @@ var AppTopbar = ({ ...props }) => {
|
|
1824
1825
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
1825
1826
|
)
|
1826
1827
|
},
|
1827
|
-
size > 600 ? /* @__PURE__ */
|
1828
|
+
size > 600 ? /* @__PURE__ */ import_react11.default.createElement(
|
1828
1829
|
"div",
|
1829
1830
|
null,
|
1830
1831
|
"page title"
|
1831
1832
|
) : (
|
1832
1833
|
// Mobile Drawer Menu Button
|
1833
|
-
/* @__PURE__ */
|
1834
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
1834
1835
|
"div",
|
1835
1836
|
{
|
1836
1837
|
dir: props.direction,
|
1837
1838
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
1838
1839
|
},
|
1839
|
-
/* @__PURE__ */
|
1840
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
1840
1841
|
"div",
|
1841
1842
|
{
|
1842
1843
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
1843
1844
|
},
|
1844
|
-
/* @__PURE__ */
|
1845
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
1845
1846
|
"svg",
|
1846
1847
|
{
|
1847
1848
|
stroke: "currentColor",
|
@@ -1852,7 +1853,7 @@ var AppTopbar = ({ ...props }) => {
|
|
1852
1853
|
height: "1.6em",
|
1853
1854
|
width: "1.6em"
|
1854
1855
|
},
|
1855
|
-
/* @__PURE__ */
|
1856
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
1856
1857
|
"path",
|
1857
1858
|
{
|
1858
1859
|
fillRule: "evenodd",
|
@@ -1865,7 +1866,7 @@ var AppTopbar = ({ ...props }) => {
|
|
1865
1866
|
"Mobile title"
|
1866
1867
|
)
|
1867
1868
|
),
|
1868
|
-
/* @__PURE__ */
|
1869
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
1869
1870
|
"div",
|
1870
1871
|
{
|
1871
1872
|
className: cn(
|
@@ -1873,16 +1874,16 @@ var AppTopbar = ({ ...props }) => {
|
|
1873
1874
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
1874
1875
|
)
|
1875
1876
|
},
|
1876
|
-
size > 600 ? /* @__PURE__ */
|
1877
|
+
size > 600 ? /* @__PURE__ */ import_react11.default.createElement(
|
1877
1878
|
"div",
|
1878
1879
|
{
|
1879
1880
|
className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
|
1880
1881
|
},
|
1881
|
-
/* @__PURE__ */
|
1882
|
+
/* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-font-bold" }, props.username),
|
1882
1883
|
" ",
|
1883
|
-
/* @__PURE__ */
|
1884
|
+
/* @__PURE__ */ import_react11.default.createElement("div", null, props.email)
|
1884
1885
|
) : null,
|
1885
|
-
/* @__PURE__ */
|
1886
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
1886
1887
|
DropdownMenu,
|
1887
1888
|
{
|
1888
1889
|
triggerClassname: "hawa-mx-2",
|
@@ -1893,7 +1894,7 @@ var AppTopbar = ({ ...props }) => {
|
|
1893
1894
|
direction: isRTL ? "rtl" : "ltr",
|
1894
1895
|
items: props.profileMenuItems || [],
|
1895
1896
|
onItemSelect: (e) => console.log("selecting item ", e),
|
1896
|
-
trigger: /* @__PURE__ */
|
1897
|
+
trigger: /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600" }, props.avatarImage ? /* @__PURE__ */ import_react11.default.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ import_react11.default.createElement(
|
1897
1898
|
"svg",
|
1898
1899
|
{
|
1899
1900
|
"aria-label": "Avatar Icon",
|
@@ -1901,7 +1902,7 @@ var AppTopbar = ({ ...props }) => {
|
|
1901
1902
|
fill: "currentColor",
|
1902
1903
|
viewBox: "0 0 20 20"
|
1903
1904
|
},
|
1904
|
-
/* @__PURE__ */
|
1905
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
1905
1906
|
"path",
|
1906
1907
|
{
|
1907
1908
|
fillRule: "evenodd",
|
@@ -2120,10 +2121,10 @@ var MenubarShortcut = ({
|
|
2120
2121
|
MenubarShortcut.displayname = "MenubarShortcut";
|
2121
2122
|
|
2122
2123
|
// layout/appTabs/AppTabs.tsx
|
2123
|
-
var
|
2124
|
+
var import_react12 = __toESM(require("react"));
|
2124
2125
|
var AppTabs = ({ tabs, className }) => {
|
2125
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
2126
|
-
return /* @__PURE__ */
|
2126
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react12.useState)(0);
|
2127
|
+
return /* @__PURE__ */ import_react12.default.createElement(
|
2127
2128
|
"div",
|
2128
2129
|
{
|
2129
2130
|
className: cn(
|
@@ -2131,9 +2132,9 @@ var AppTabs = ({ tabs, className }) => {
|
|
2131
2132
|
className
|
2132
2133
|
)
|
2133
2134
|
},
|
2134
|
-
/* @__PURE__ */
|
2135
|
+
/* @__PURE__ */ import_react12.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center " }, tabs.map((tab, index) => {
|
2135
2136
|
const selected = index === selectedIndex;
|
2136
|
-
return /* @__PURE__ */
|
2137
|
+
return /* @__PURE__ */ import_react12.default.createElement(
|
2137
2138
|
"a",
|
2138
2139
|
{
|
2139
2140
|
href: tab.path,
|
@@ -2164,12 +2165,12 @@ var AppTabs = ({ tabs, className }) => {
|
|
2164
2165
|
};
|
2165
2166
|
|
2166
2167
|
// layout/docsLayout/DocsLayout.tsx
|
2167
|
-
var
|
2168
|
+
var import_react16 = __toESM(require("react"));
|
2168
2169
|
|
2169
2170
|
// elements/logos/Logos.tsx
|
2170
|
-
var
|
2171
|
+
var import_react13 = __toESM(require("react"));
|
2171
2172
|
var Logos = {
|
2172
|
-
metamask: (props) => /* @__PURE__ */
|
2173
|
+
metamask: (props) => /* @__PURE__ */ import_react13.default.createElement(
|
2173
2174
|
"svg",
|
2174
2175
|
{
|
2175
2176
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2180,8 +2181,8 @@ var Logos = {
|
|
2180
2181
|
viewBox: "0 0 318.6 318.6",
|
2181
2182
|
...props
|
2182
2183
|
},
|
2183
|
-
/* @__PURE__ */
|
2184
|
-
/* @__PURE__ */
|
2184
|
+
/* @__PURE__ */ import_react13.default.createElement("style", null, ".st1,.st6{fill:#e4761b;stroke:#e4761b;stroke-linecap:round;stroke-linejoin:round}.st6{fill:#f6851b;stroke:#f6851b}"),
|
2185
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
2185
2186
|
"path",
|
2186
2187
|
{
|
2187
2188
|
fill: "#e2761b",
|
@@ -2191,21 +2192,21 @@ var Logos = {
|
|
2191
2192
|
d: "m274.1 35.5-99.5 73.9L193 65.8z"
|
2192
2193
|
}
|
2193
2194
|
),
|
2194
|
-
/* @__PURE__ */
|
2195
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
2195
2196
|
"path",
|
2196
2197
|
{
|
2197
2198
|
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",
|
2198
2199
|
className: "st1"
|
2199
2200
|
}
|
2200
2201
|
),
|
2201
|
-
/* @__PURE__ */
|
2202
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
2202
2203
|
"path",
|
2203
2204
|
{
|
2204
2205
|
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",
|
2205
2206
|
className: "st1"
|
2206
2207
|
}
|
2207
2208
|
),
|
2208
|
-
/* @__PURE__ */
|
2209
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
2209
2210
|
"path",
|
2210
2211
|
{
|
2211
2212
|
fill: "#d7c1b3",
|
@@ -2215,7 +2216,7 @@ var Logos = {
|
|
2215
2216
|
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"
|
2216
2217
|
}
|
2217
2218
|
),
|
2218
|
-
/* @__PURE__ */
|
2219
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
2219
2220
|
"path",
|
2220
2221
|
{
|
2221
2222
|
fill: "#233447",
|
@@ -2225,7 +2226,7 @@ var Logos = {
|
|
2225
2226
|
d: "m138.8 193.5-28.2-8.3 19.9-9.1zm40.9 0 8.3-17.4 20 9.1z"
|
2226
2227
|
}
|
2227
2228
|
),
|
2228
|
-
/* @__PURE__ */
|
2229
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
2229
2230
|
"path",
|
2230
2231
|
{
|
2231
2232
|
fill: "#cd6116",
|
@@ -2235,7 +2236,7 @@ var Logos = {
|
|
2235
2236
|
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"
|
2236
2237
|
}
|
2237
2238
|
),
|
2238
|
-
/* @__PURE__ */
|
2239
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
2239
2240
|
"path",
|
2240
2241
|
{
|
2241
2242
|
fill: "#e4751f",
|
@@ -2245,14 +2246,14 @@ var Logos = {
|
|
2245
2246
|
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"
|
2246
2247
|
}
|
2247
2248
|
),
|
2248
|
-
/* @__PURE__ */
|
2249
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
2249
2250
|
"path",
|
2250
2251
|
{
|
2251
2252
|
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",
|
2252
2253
|
className: "st6"
|
2253
2254
|
}
|
2254
2255
|
),
|
2255
|
-
/* @__PURE__ */
|
2256
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
2256
2257
|
"path",
|
2257
2258
|
{
|
2258
2259
|
fill: "#c0ad9e",
|
@@ -2262,7 +2263,7 @@ var Logos = {
|
|
2262
2263
|
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"
|
2263
2264
|
}
|
2264
2265
|
),
|
2265
|
-
/* @__PURE__ */
|
2266
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
2266
2267
|
"path",
|
2267
2268
|
{
|
2268
2269
|
fill: "#161616",
|
@@ -2272,7 +2273,7 @@ var Logos = {
|
|
2272
2273
|
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"
|
2273
2274
|
}
|
2274
2275
|
),
|
2275
|
-
/* @__PURE__ */
|
2276
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
2276
2277
|
"path",
|
2277
2278
|
{
|
2278
2279
|
fill: "#763d16",
|
@@ -2282,7 +2283,7 @@ var Logos = {
|
|
2282
2283
|
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"
|
2283
2284
|
}
|
2284
2285
|
),
|
2285
|
-
/* @__PURE__ */
|
2286
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
2286
2287
|
"path",
|
2287
2288
|
{
|
2288
2289
|
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",
|
@@ -2290,7 +2291,7 @@ var Logos = {
|
|
2290
2291
|
}
|
2291
2292
|
)
|
2292
2293
|
),
|
2293
|
-
nafath: (props) => /* @__PURE__ */
|
2294
|
+
nafath: (props) => /* @__PURE__ */ import_react13.default.createElement(
|
2294
2295
|
"svg",
|
2295
2296
|
{
|
2296
2297
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2301,15 +2302,15 @@ var Logos = {
|
|
2301
2302
|
viewBox: "22.5 44.5 535.6 230.34",
|
2302
2303
|
...props
|
2303
2304
|
},
|
2304
|
-
/* @__PURE__ */
|
2305
|
-
/* @__PURE__ */
|
2305
|
+
/* @__PURE__ */ import_react13.default.createElement("style", null, ".st0{fill:#0a9a8f}"),
|
2306
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
2306
2307
|
"path",
|
2307
2308
|
{
|
2308
2309
|
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",
|
2309
2310
|
className: "st0"
|
2310
2311
|
}
|
2311
2312
|
),
|
2312
|
-
/* @__PURE__ */
|
2313
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
2313
2314
|
"path",
|
2314
2315
|
{
|
2315
2316
|
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",
|
@@ -2317,7 +2318,7 @@ var Logos = {
|
|
2317
2318
|
}
|
2318
2319
|
)
|
2319
2320
|
),
|
2320
|
-
hawa: (props) => /* @__PURE__ */
|
2321
|
+
hawa: (props) => /* @__PURE__ */ import_react13.default.createElement(
|
2321
2322
|
"svg",
|
2322
2323
|
{
|
2323
2324
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2325,7 +2326,7 @@ var Logos = {
|
|
2325
2326
|
viewBox: "0 0 765 765",
|
2326
2327
|
...props
|
2327
2328
|
},
|
2328
|
-
/* @__PURE__ */
|
2329
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
2329
2330
|
"path",
|
2330
2331
|
{
|
2331
2332
|
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",
|
@@ -2333,7 +2334,7 @@ var Logos = {
|
|
2333
2334
|
}
|
2334
2335
|
)
|
2335
2336
|
),
|
2336
|
-
sikka: (props) => /* @__PURE__ */
|
2337
|
+
sikka: (props) => /* @__PURE__ */ import_react13.default.createElement(
|
2337
2338
|
"svg",
|
2338
2339
|
{
|
2339
2340
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2343,11 +2344,11 @@ var Logos = {
|
|
2343
2344
|
fill: "currentColor",
|
2344
2345
|
...props
|
2345
2346
|
},
|
2346
|
-
/* @__PURE__ */
|
2347
|
-
/* @__PURE__ */
|
2348
|
-
/* @__PURE__ */
|
2347
|
+
/* @__PURE__ */ import_react13.default.createElement("defs", null, /* @__PURE__ */ import_react13.default.createElement("path", { id: "a", d: "M0 0h916.5v765H0z" })),
|
2348
|
+
/* @__PURE__ */ import_react13.default.createElement("clipPath", { id: "b" }, /* @__PURE__ */ import_react13.default.createElement("use", { xlinkHref: "#a", overflow: "visible" })),
|
2349
|
+
/* @__PURE__ */ import_react13.default.createElement("g", { clipPath: "url(#b)" }, /* @__PURE__ */ import_react13.default.createElement("defs", null, /* @__PURE__ */ import_react13.default.createElement("path", { id: "c", d: "M0 0h916.5v765H0z" })), /* @__PURE__ */ import_react13.default.createElement("clipPath", { id: "d" }, /* @__PURE__ */ import_react13.default.createElement("use", { xlinkHref: "#c", overflow: "visible" })), /* @__PURE__ */ import_react13.default.createElement("g", { clipPath: "url(#d)" }, /* @__PURE__ */ import_react13.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" })))
|
2349
2350
|
),
|
2350
|
-
mail: (props) => /* @__PURE__ */
|
2351
|
+
mail: (props) => /* @__PURE__ */ import_react13.default.createElement(
|
2351
2352
|
"svg",
|
2352
2353
|
{
|
2353
2354
|
stroke: "currentColor",
|
@@ -2359,10 +2360,10 @@ var Logos = {
|
|
2359
2360
|
xmlns: "http://www.w3.org/2000/svg",
|
2360
2361
|
...props
|
2361
2362
|
},
|
2362
|
-
/* @__PURE__ */
|
2363
|
-
/* @__PURE__ */
|
2363
|
+
/* @__PURE__ */ import_react13.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" }),
|
2364
|
+
/* @__PURE__ */ import_react13.default.createElement("polyline", { points: "22,6 12,13 2,6" })
|
2364
2365
|
),
|
2365
|
-
phone: (props) => /* @__PURE__ */
|
2366
|
+
phone: (props) => /* @__PURE__ */ import_react13.default.createElement(
|
2366
2367
|
"svg",
|
2367
2368
|
{
|
2368
2369
|
stroke: "currentColor",
|
@@ -2373,7 +2374,7 @@ var Logos = {
|
|
2373
2374
|
xmlns: "http://www.w3.org/2000/svg",
|
2374
2375
|
...props
|
2375
2376
|
},
|
2376
|
-
/* @__PURE__ */
|
2377
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
2377
2378
|
"path",
|
2378
2379
|
{
|
2379
2380
|
strokeLinecap: "round",
|
@@ -2382,14 +2383,14 @@ var Logos = {
|
|
2382
2383
|
}
|
2383
2384
|
)
|
2384
2385
|
),
|
2385
|
-
twitter: (props) => /* @__PURE__ */
|
2386
|
+
twitter: (props) => /* @__PURE__ */ import_react13.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react13.default.createElement(
|
2386
2387
|
"path",
|
2387
2388
|
{
|
2388
2389
|
fill: "currentColor",
|
2389
2390
|
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"
|
2390
2391
|
}
|
2391
2392
|
)),
|
2392
|
-
instagram: (props) => /* @__PURE__ */
|
2393
|
+
instagram: (props) => /* @__PURE__ */ import_react13.default.createElement(
|
2393
2394
|
"svg",
|
2394
2395
|
{
|
2395
2396
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2397,23 +2398,23 @@ var Logos = {
|
|
2397
2398
|
viewBox: "0 0 16 16",
|
2398
2399
|
...props
|
2399
2400
|
},
|
2400
|
-
/* @__PURE__ */
|
2401
|
+
/* @__PURE__ */ import_react13.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" })
|
2401
2402
|
),
|
2402
|
-
microsoft: (props) => /* @__PURE__ */
|
2403
|
+
microsoft: (props) => /* @__PURE__ */ import_react13.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...props }, /* @__PURE__ */ import_react13.default.createElement(
|
2403
2404
|
"path",
|
2404
2405
|
{
|
2405
2406
|
fill: "currentColor",
|
2406
2407
|
d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"
|
2407
2408
|
}
|
2408
2409
|
)),
|
2409
|
-
github: (props) => /* @__PURE__ */
|
2410
|
+
github: (props) => /* @__PURE__ */ import_react13.default.createElement(
|
2410
2411
|
"svg",
|
2411
2412
|
{
|
2412
2413
|
xmlns: "http://www.w3.org/2000/svg",
|
2413
2414
|
viewBox: "0 0 438.549 438.549",
|
2414
2415
|
...props
|
2415
2416
|
},
|
2416
|
-
/* @__PURE__ */
|
2417
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
2417
2418
|
"path",
|
2418
2419
|
{
|
2419
2420
|
fill: "currentColor",
|
@@ -2421,77 +2422,77 @@ var Logos = {
|
|
2421
2422
|
}
|
2422
2423
|
)
|
2423
2424
|
),
|
2424
|
-
radix: (props) => /* @__PURE__ */
|
2425
|
+
radix: (props) => /* @__PURE__ */ import_react13.default.createElement("svg", { viewBox: "0 0 25 25", fill: "none", ...props }, /* @__PURE__ */ import_react13.default.createElement(
|
2425
2426
|
"path",
|
2426
2427
|
{
|
2427
2428
|
d: "M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",
|
2428
2429
|
fill: "currentcolor"
|
2429
2430
|
}
|
2430
|
-
), /* @__PURE__ */
|
2431
|
+
), /* @__PURE__ */ import_react13.default.createElement("path", { d: "M12 0H4V8H12V0Z", fill: "currentcolor" }), /* @__PURE__ */ import_react13.default.createElement(
|
2431
2432
|
"path",
|
2432
2433
|
{
|
2433
2434
|
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",
|
2434
2435
|
fill: "currentcolor"
|
2435
2436
|
}
|
2436
2437
|
)),
|
2437
|
-
aria: (props) => /* @__PURE__ */
|
2438
|
-
npm: (props) => /* @__PURE__ */
|
2438
|
+
aria: (props) => /* @__PURE__ */ import_react13.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", fill: "currentColor", ...props }, /* @__PURE__ */ import_react13.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" })),
|
2439
|
+
npm: (props) => /* @__PURE__ */ import_react13.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react13.default.createElement(
|
2439
2440
|
"path",
|
2440
2441
|
{
|
2441
2442
|
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",
|
2442
2443
|
fill: "currentColor"
|
2443
2444
|
}
|
2444
2445
|
)),
|
2445
|
-
yarn: (props) => /* @__PURE__ */
|
2446
|
+
yarn: (props) => /* @__PURE__ */ import_react13.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react13.default.createElement(
|
2446
2447
|
"path",
|
2447
2448
|
{
|
2448
2449
|
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",
|
2449
2450
|
fill: "currentColor"
|
2450
2451
|
}
|
2451
2452
|
)),
|
2452
|
-
pnpm: (props) => /* @__PURE__ */
|
2453
|
+
pnpm: (props) => /* @__PURE__ */ import_react13.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react13.default.createElement(
|
2453
2454
|
"path",
|
2454
2455
|
{
|
2455
2456
|
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",
|
2456
2457
|
fill: "currentColor"
|
2457
2458
|
}
|
2458
2459
|
)),
|
2459
|
-
react: (props) => /* @__PURE__ */
|
2460
|
+
react: (props) => /* @__PURE__ */ import_react13.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react13.default.createElement(
|
2460
2461
|
"path",
|
2461
2462
|
{
|
2462
2463
|
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",
|
2463
2464
|
fill: "currentColor"
|
2464
2465
|
}
|
2465
2466
|
)),
|
2466
|
-
tailwind: (props) => /* @__PURE__ */
|
2467
|
+
tailwind: (props) => /* @__PURE__ */ import_react13.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react13.default.createElement(
|
2467
2468
|
"path",
|
2468
2469
|
{
|
2469
2470
|
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",
|
2470
2471
|
fill: "currentColor"
|
2471
2472
|
}
|
2472
2473
|
)),
|
2473
|
-
google: (props) => /* @__PURE__ */
|
2474
|
+
google: (props) => /* @__PURE__ */ import_react13.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react13.default.createElement(
|
2474
2475
|
"path",
|
2475
2476
|
{
|
2476
2477
|
fill: "currentColor",
|
2477
2478
|
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"
|
2478
2479
|
}
|
2479
2480
|
)),
|
2480
|
-
apple: (props) => /* @__PURE__ */
|
2481
|
+
apple: (props) => /* @__PURE__ */ import_react13.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react13.default.createElement(
|
2481
2482
|
"path",
|
2482
2483
|
{
|
2483
2484
|
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",
|
2484
2485
|
fill: "currentColor"
|
2485
2486
|
}
|
2486
2487
|
)),
|
2487
|
-
paypal: (props) => /* @__PURE__ */
|
2488
|
+
paypal: (props) => /* @__PURE__ */ import_react13.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react13.default.createElement(
|
2488
2489
|
"path",
|
2489
2490
|
{
|
2490
2491
|
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",
|
2491
2492
|
fill: "currentColor"
|
2492
2493
|
}
|
2493
2494
|
)),
|
2494
|
-
spinner: (props) => /* @__PURE__ */
|
2495
|
+
spinner: (props) => /* @__PURE__ */ import_react13.default.createElement(
|
2495
2496
|
"svg",
|
2496
2497
|
{
|
2497
2498
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2505,9 +2506,9 @@ var Logos = {
|
|
2505
2506
|
strokeLinejoin: "round",
|
2506
2507
|
...props
|
2507
2508
|
},
|
2508
|
-
/* @__PURE__ */
|
2509
|
+
/* @__PURE__ */ import_react13.default.createElement("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
2509
2510
|
),
|
2510
|
-
whatsapp: (props) => /* @__PURE__ */
|
2511
|
+
whatsapp: (props) => /* @__PURE__ */ import_react13.default.createElement(
|
2511
2512
|
"svg",
|
2512
2513
|
{
|
2513
2514
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2515,7 +2516,7 @@ var Logos = {
|
|
2515
2516
|
fill: "currentColor",
|
2516
2517
|
...props
|
2517
2518
|
},
|
2518
|
-
/* @__PURE__ */
|
2519
|
+
/* @__PURE__ */ import_react13.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" })
|
2519
2520
|
)
|
2520
2521
|
};
|
2521
2522
|
|
@@ -2654,10 +2655,10 @@ SheetFooter.displayName = "SheetFooter";
|
|
2654
2655
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
2655
2656
|
|
2656
2657
|
// hooks/useBreakpoint.ts
|
2657
|
-
var
|
2658
|
+
var import_react14 = require("react");
|
2658
2659
|
var useBreakpoint = () => {
|
2659
|
-
const [breakpoint, setBreakpoint] = (0,
|
2660
|
-
(0,
|
2660
|
+
const [breakpoint, setBreakpoint] = (0, import_react14.useState)(null);
|
2661
|
+
(0, import_react14.useEffect)(() => {
|
2661
2662
|
if (typeof window !== "undefined") {
|
2662
2663
|
const resize = () => {
|
2663
2664
|
setBreakpoint(window.innerWidth);
|
@@ -2673,13 +2674,13 @@ var useBreakpoint = () => {
|
|
2673
2674
|
};
|
2674
2675
|
|
2675
2676
|
// layout/docsSidebar/DocsSidebar.tsx
|
2676
|
-
var
|
2677
|
+
var import_react15 = __toESM(require("react"));
|
2677
2678
|
var DocsSidebar = ({
|
2678
2679
|
currentPage: propCurrentPage,
|
2679
2680
|
pages,
|
2680
2681
|
direction
|
2681
2682
|
}) => {
|
2682
|
-
const [activePage, setActivePage] =
|
2683
|
+
const [activePage, setActivePage] = import_react15.default.useState(pages[0]);
|
2683
2684
|
const handlePageClick = (page, event) => {
|
2684
2685
|
event.preventDefault();
|
2685
2686
|
setTimeout(() => {
|
@@ -2701,7 +2702,7 @@ var DocsSidebar = ({
|
|
2701
2702
|
}
|
2702
2703
|
return pages[0];
|
2703
2704
|
};
|
2704
|
-
|
2705
|
+
import_react15.default.useEffect(() => {
|
2705
2706
|
const handleScroll = () => {
|
2706
2707
|
setActivePage(getCurrentSection());
|
2707
2708
|
};
|
@@ -2714,13 +2715,13 @@ var DocsSidebar = ({
|
|
2714
2715
|
rtl: "hawa-border-r-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200",
|
2715
2716
|
ltr: "hawa-border-l-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200"
|
2716
2717
|
};
|
2717
|
-
return /* @__PURE__ */
|
2718
|
+
return /* @__PURE__ */ import_react15.default.createElement(
|
2718
2719
|
"div",
|
2719
2720
|
{
|
2720
2721
|
className: "hawa-flex hawa-flex-col hawa-overflow-x-clip",
|
2721
2722
|
dir: direction
|
2722
2723
|
},
|
2723
|
-
pages.map((page, index) => /* @__PURE__ */
|
2724
|
+
pages.map((page, index) => /* @__PURE__ */ import_react15.default.createElement(
|
2724
2725
|
"div",
|
2725
2726
|
{
|
2726
2727
|
key: index,
|
@@ -2760,15 +2761,15 @@ var DocsLayout = ({
|
|
2760
2761
|
lg: closeDrawerWidth
|
2761
2762
|
}
|
2762
2763
|
};
|
2763
|
-
const ref = (0,
|
2764
|
+
const ref = (0, import_react16.useRef)(null);
|
2764
2765
|
const isRTL = direction === "rtl";
|
2765
2766
|
let size = useBreakpoint();
|
2766
2767
|
if (typeof window == "undefined") {
|
2767
2768
|
size = 1200;
|
2768
2769
|
}
|
2769
|
-
const [currentPage, setCurrentPage] = (0,
|
2770
|
-
const [openSideMenu, setOpenSideMenu] = (0,
|
2771
|
-
(0,
|
2770
|
+
const [currentPage, setCurrentPage] = (0, import_react16.useState)("Introduction");
|
2771
|
+
const [openSideMenu, setOpenSideMenu] = (0, import_react16.useState)(true);
|
2772
|
+
(0, import_react16.useEffect)(() => {
|
2772
2773
|
const handleClickOutside = (event) => {
|
2773
2774
|
if (ref.current && !ref.current.contains(event.target) && !openSideMenu) {
|
2774
2775
|
setOpenSideMenu(false);
|
@@ -2779,7 +2780,7 @@ var DocsLayout = ({
|
|
2779
2780
|
document.removeEventListener("click", handleClickOutside, true);
|
2780
2781
|
};
|
2781
2782
|
}, [openSideMenu]);
|
2782
|
-
(0,
|
2783
|
+
(0, import_react16.useEffect)(() => {
|
2783
2784
|
const handleResize = () => {
|
2784
2785
|
setOpenSideMenu(window.innerWidth > 600 ? true : false);
|
2785
2786
|
};
|
@@ -2789,19 +2790,19 @@ var DocsLayout = ({
|
|
2789
2790
|
window.removeEventListener("resize", handleResize);
|
2790
2791
|
};
|
2791
2792
|
}, [keepOpen]);
|
2792
|
-
const observerRef =
|
2793
|
+
const observerRef = import_react16.default.useRef(null);
|
2793
2794
|
const handleIntersection = (entries) => {
|
2794
2795
|
const entry = entries.find((entry2) => entry2.isIntersecting);
|
2795
2796
|
if (entry) {
|
2796
2797
|
setCurrentPage(entry.target.id);
|
2797
2798
|
}
|
2798
2799
|
};
|
2799
|
-
(0,
|
2800
|
+
(0, import_react16.useEffect)(() => {
|
2800
2801
|
observerRef.current = new IntersectionObserver(handleIntersection, {
|
2801
2802
|
threshold: 0.5
|
2802
2803
|
// Adjust threshold as needed to determine when a section is in view
|
2803
2804
|
});
|
2804
|
-
|
2805
|
+
import_react16.default.Children.forEach(props.children, (child) => {
|
2805
2806
|
if (child && child.props.id) {
|
2806
2807
|
const element = document.getElementById(child.props.id);
|
2807
2808
|
if (element && observerRef.current) {
|
@@ -2816,7 +2817,7 @@ var DocsLayout = ({
|
|
2816
2817
|
};
|
2817
2818
|
}, [props.children]);
|
2818
2819
|
let drawerSizeCondition = drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize];
|
2819
|
-
return /* @__PURE__ */
|
2820
|
+
return /* @__PURE__ */ import_react16.default.createElement("div", { className: "hawa-fixed" }, /* @__PURE__ */ import_react16.default.createElement(
|
2820
2821
|
"div",
|
2821
2822
|
{
|
2822
2823
|
className: cn(
|
@@ -2824,7 +2825,7 @@ var DocsLayout = ({
|
|
2824
2825
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
2825
2826
|
)
|
2826
2827
|
},
|
2827
|
-
size > 600 ? /* @__PURE__ */
|
2828
|
+
size > 600 ? /* @__PURE__ */ import_react16.default.createElement("div", { onClick: props.onLogoClick, dir: direction }, /* @__PURE__ */ import_react16.default.createElement(
|
2828
2829
|
"img",
|
2829
2830
|
{
|
2830
2831
|
className: cn(
|
@@ -2835,18 +2836,18 @@ var DocsLayout = ({
|
|
2835
2836
|
}
|
2836
2837
|
)) : (
|
2837
2838
|
// Mobile Drawer Menu Button
|
2838
|
-
/* @__PURE__ */
|
2839
|
+
/* @__PURE__ */ import_react16.default.createElement(
|
2839
2840
|
"div",
|
2840
2841
|
{
|
2841
2842
|
dir: direction,
|
2842
2843
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
2843
2844
|
},
|
2844
|
-
/* @__PURE__ */
|
2845
|
+
/* @__PURE__ */ import_react16.default.createElement(Sheet, null, /* @__PURE__ */ import_react16.default.createElement(SheetTrigger, null, " ", /* @__PURE__ */ import_react16.default.createElement(
|
2845
2846
|
"div",
|
2846
2847
|
{
|
2847
2848
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
2848
2849
|
},
|
2849
|
-
/* @__PURE__ */
|
2850
|
+
/* @__PURE__ */ import_react16.default.createElement(
|
2850
2851
|
"svg",
|
2851
2852
|
{
|
2852
2853
|
"aria-label": "Menu Icon",
|
@@ -2858,7 +2859,7 @@ var DocsLayout = ({
|
|
2858
2859
|
height: "1.6em",
|
2859
2860
|
width: "1.6em"
|
2860
2861
|
},
|
2861
|
-
/* @__PURE__ */
|
2862
|
+
/* @__PURE__ */ import_react16.default.createElement(
|
2862
2863
|
"path",
|
2863
2864
|
{
|
2864
2865
|
fillRule: "evenodd",
|
@@ -2867,17 +2868,17 @@ var DocsLayout = ({
|
|
2867
2868
|
}
|
2868
2869
|
)
|
2869
2870
|
)
|
2870
|
-
)), /* @__PURE__ */
|
2871
|
+
)), /* @__PURE__ */ import_react16.default.createElement(
|
2871
2872
|
SheetContent,
|
2872
2873
|
{
|
2873
2874
|
side: isRTL ? "right" : "left",
|
2874
2875
|
className: "hawa-pt-10"
|
2875
2876
|
},
|
2876
|
-
/* @__PURE__ */
|
2877
|
+
/* @__PURE__ */ import_react16.default.createElement(DocsSidebar, { direction, pages: pages || [] })
|
2877
2878
|
))
|
2878
2879
|
)
|
2879
2880
|
),
|
2880
|
-
/* @__PURE__ */
|
2881
|
+
/* @__PURE__ */ import_react16.default.createElement(
|
2881
2882
|
"div",
|
2882
2883
|
{
|
2883
2884
|
className: cn(
|
@@ -2885,9 +2886,9 @@ var DocsLayout = ({
|
|
2885
2886
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
2886
2887
|
)
|
2887
2888
|
},
|
2888
|
-
/* @__PURE__ */
|
2889
|
+
/* @__PURE__ */ import_react16.default.createElement(Button, { variant: "ghost", size: "smallIcon" }, /* @__PURE__ */ import_react16.default.createElement(Logos.github, { className: "hawa-icon" }))
|
2889
2890
|
)
|
2890
|
-
), /* @__PURE__ */
|
2891
|
+
), /* @__PURE__ */ import_react16.default.createElement(
|
2891
2892
|
"div",
|
2892
2893
|
{
|
2893
2894
|
className: cn(
|
@@ -2910,7 +2911,7 @@ var DocsLayout = ({
|
|
2910
2911
|
},
|
2911
2912
|
ref
|
2912
2913
|
},
|
2913
|
-
/* @__PURE__ */
|
2914
|
+
/* @__PURE__ */ import_react16.default.createElement(
|
2914
2915
|
DocsSidebar,
|
2915
2916
|
{
|
2916
2917
|
direction,
|
@@ -2918,7 +2919,7 @@ var DocsLayout = ({
|
|
2918
2919
|
currentPage
|
2919
2920
|
}
|
2920
2921
|
)
|
2921
|
-
), /* @__PURE__ */
|
2922
|
+
), /* @__PURE__ */ import_react16.default.createElement(
|
2922
2923
|
"div",
|
2923
2924
|
{
|
2924
2925
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all ",
|