@sikka/hawa 0.35.5-next → 0.36.0-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Chip-BtgTAs8x.d.mts → Chip-CGl24Kd9.d.mts} +2 -2
- package/dist/{Chip-DQsP5hFS.d.ts → Chip-Cato49ar.d.ts} +2 -2
- package/dist/accordion/index.d.mts +1 -1
- package/dist/accordion/index.d.ts +1 -1
- package/dist/accordion/index.js +6 -4
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs +6 -4
- package/dist/accordion/index.mjs.map +1 -1
- package/dist/appLayout/index.js +180 -172
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +201 -193
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +28 -5
- package/dist/blocks/auth/index.mjs +4 -4
- package/dist/blocks/feedback/index.js +0 -1
- package/dist/blocks/feedback/index.mjs +1 -1
- package/dist/blocks/index.js +94 -69
- package/dist/blocks/index.mjs +12 -12
- package/dist/blocks/misc/index.js +81 -56
- package/dist/blocks/misc/index.mjs +65 -65
- package/dist/blocks/pricing/index.js +6 -4
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/chip/index.d.mts +2 -2
- package/dist/chip/index.d.ts +2 -2
- package/dist/chip/index.js +6 -4
- package/dist/chip/index.js.map +1 -1
- package/dist/chip/index.mjs +6 -4
- package/dist/chip/index.mjs.map +1 -1
- package/dist/{chunk-HSRW7X3Z.mjs → chunk-6QIOEUE2.mjs} +1 -1
- package/dist/{chunk-JEZLVXSU.mjs → chunk-BXBSZD5X.mjs} +26 -2
- package/dist/{chunk-LVXG3SMD.mjs → chunk-CJ57JBYA.mjs} +6 -4
- package/dist/{chunk-CD6AQVU3.mjs → chunk-HLYAX77R.mjs} +0 -1
- package/dist/{chunk-G7JHUC5N.mjs → chunk-NNPNQK6F.mjs} +211 -4
- package/dist/chunk-SYGWSBJL.mjs +63 -0
- package/dist/{chunk-TERP5K6R.mjs → chunk-T33FXOHA.mjs} +29 -189
- package/dist/colorPicker/index.js +1 -1
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs +1 -1
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/dataTable/index.js +41 -5
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +41 -5
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.d.mts +1 -0
- package/dist/datePicker/index.d.ts +1 -0
- package/dist/datePicker/index.js +3 -2
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +3 -2
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +8 -4
- package/dist/elements/index.d.ts +8 -4
- package/dist/elements/index.js +124 -87
- package/dist/elements/index.mjs +25 -13
- package/dist/hooks/index.d.mts +4 -1
- package/dist/hooks/index.d.ts +4 -1
- package/dist/hooks/index.js +31 -2
- package/dist/hooks/index.mjs +4 -2
- package/dist/index.css +10 -0
- package/dist/index.d.mts +11 -5
- package/dist/index.d.ts +11 -5
- package/dist/index.js +225 -189
- package/dist/index.mjs +771 -736
- package/dist/input/index.d.mts +6 -2
- package/dist/input/index.d.ts +6 -2
- package/dist/input/index.js +26 -2
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +26 -2
- package/dist/input/index.mjs.map +1 -1
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +289 -281
- package/dist/layout/index.mjs +24 -56
- package/dist/passwordInput/index.js +26 -2
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +26 -2
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js +1 -2
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +1 -2
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/pinInput/index.js +1 -1
- package/dist/pinInput/index.js.map +1 -1
- package/dist/pinInput/index.mjs +1 -1
- package/dist/pinInput/index.mjs.map +1 -1
- package/dist/select/index.js +0 -1
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +0 -1
- package/dist/select/index.mjs.map +1 -1
- package/dist/sidebar/index.js +6 -4
- package/dist/sidebar/index.js.map +1 -1
- package/dist/sidebar/index.mjs +6 -4
- package/dist/sidebar/index.mjs.map +1 -1
- package/dist/tabs/index.d.mts +1 -1
- package/dist/tabs/index.d.ts +1 -1
- package/dist/tabs/index.js +26 -24
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +30 -28
- package/dist/tabs/index.mjs.map +1 -1
- package/package.json +7 -8
- package/dist/chunk-545D35G6.mjs +0 -54
package/dist/layout/index.js
CHANGED
@@ -243,7 +243,8 @@ var Chip = import_react3.default.forwardRef(
|
|
243
243
|
icon,
|
244
244
|
color,
|
245
245
|
radius = "inherit",
|
246
|
-
|
246
|
+
dot,
|
247
|
+
dotStatus = "none",
|
247
248
|
...rest
|
248
249
|
}, ref) => {
|
249
250
|
let defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-px-2.5 hawa-py-1 hawa-font-bold ";
|
@@ -262,7 +263,8 @@ var Chip = import_react3.default.forwardRef(
|
|
262
263
|
normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
|
263
264
|
large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
|
264
265
|
};
|
265
|
-
let
|
266
|
+
let dotStatusStyles = {
|
267
|
+
none: "hawa-bg-gray-500 dark:hawa-bg-gray-800",
|
266
268
|
available: "hawa-bg-green-500",
|
267
269
|
unavailable: "hawa-bg-red-500"
|
268
270
|
};
|
@@ -290,10 +292,10 @@ var Chip = import_react3.default.forwardRef(
|
|
290
292
|
color ? colorStyles[color] : "hawa-border hawa-bg-none"
|
291
293
|
)
|
292
294
|
},
|
293
|
-
|
295
|
+
dot && /* @__PURE__ */ import_react3.default.createElement(
|
294
296
|
"span",
|
295
297
|
{
|
296
|
-
className: cn(dotStyles[size],
|
298
|
+
className: cn(dotStyles[size], dotStatusStyles[dotStatus])
|
297
299
|
}
|
298
300
|
),
|
299
301
|
icon && icon,
|
@@ -652,31 +654,40 @@ var Navbar = ({
|
|
652
654
|
};
|
653
655
|
|
654
656
|
// layout/appLayout/AppLayout.tsx
|
655
|
-
var
|
657
|
+
var import_react14 = __toESM(require("react"));
|
656
658
|
|
657
|
-
// hooks/
|
658
|
-
var import_react6 =
|
659
|
-
var
|
660
|
-
|
661
|
-
import_react6.
|
662
|
-
|
663
|
-
|
664
|
-
|
659
|
+
// hooks/useClickOutside.ts
|
660
|
+
var import_react6 = require("react");
|
661
|
+
var DEFAULT_EVENTS = ["mousedown", "touchstart"];
|
662
|
+
function useClickOutside(handler, events, nodes) {
|
663
|
+
const ref = (0, import_react6.useRef)();
|
664
|
+
(0, import_react6.useEffect)(() => {
|
665
|
+
const listener = (event) => {
|
666
|
+
const { target } = event != null ? event : {};
|
667
|
+
if (Array.isArray(nodes)) {
|
668
|
+
const shouldIgnore = (target == null ? void 0 : target.hasAttribute("data-ignore-outside-clicks")) || !document.body.contains(target) && target.tagName !== "HTML";
|
669
|
+
const shouldTrigger = nodes.every(
|
670
|
+
(node) => !!node && !event.composedPath().includes(node)
|
671
|
+
);
|
672
|
+
shouldTrigger && !shouldIgnore && handler();
|
673
|
+
} else if (ref.current && !ref.current.contains(target)) {
|
674
|
+
handler();
|
665
675
|
}
|
666
676
|
};
|
667
|
-
|
668
|
-
|
677
|
+
(events || DEFAULT_EVENTS).forEach(
|
678
|
+
(fn) => document.addEventListener(fn, listener)
|
679
|
+
);
|
669
680
|
return () => {
|
670
|
-
|
671
|
-
|
681
|
+
(events || DEFAULT_EVENTS).forEach(
|
682
|
+
(fn) => document.removeEventListener(fn, listener)
|
683
|
+
);
|
672
684
|
};
|
673
|
-
}, [ref,
|
685
|
+
}, [ref, handler, nodes]);
|
674
686
|
return ref;
|
675
|
-
}
|
676
|
-
var useOutsideClick_default = useOutsideClick;
|
687
|
+
}
|
677
688
|
|
678
689
|
// elements/button/Button.tsx
|
679
|
-
var
|
690
|
+
var React12 = __toESM(require("react"));
|
680
691
|
var import_class_variance_authority = require("class-variance-authority");
|
681
692
|
|
682
693
|
// elements/helperText/HelperText.tsx
|
@@ -693,7 +704,7 @@ var HelperText = ({ helperText }) => /* @__PURE__ */ import_react7.default.creat
|
|
693
704
|
);
|
694
705
|
|
695
706
|
// elements/label/Label.tsx
|
696
|
-
var
|
707
|
+
var React10 = __toESM(require("react"));
|
697
708
|
|
698
709
|
// elements/tooltip/Tooltip.tsx
|
699
710
|
var import_react8 = __toESM(require("react"));
|
@@ -767,7 +778,7 @@ var Tooltip = ({
|
|
767
778
|
};
|
768
779
|
|
769
780
|
// elements/label/Label.tsx
|
770
|
-
var Label =
|
781
|
+
var Label = React10.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React10.createElement(
|
771
782
|
"label",
|
772
783
|
{
|
773
784
|
ref,
|
@@ -778,8 +789,8 @@ var Label = React11.forwardRef(({ className, hint, hintSide, required, children,
|
|
778
789
|
...props
|
779
790
|
},
|
780
791
|
children,
|
781
|
-
required && /* @__PURE__ */
|
782
|
-
), hint && /* @__PURE__ */
|
792
|
+
required && /* @__PURE__ */ React10.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
|
793
|
+
), hint && /* @__PURE__ */ React10.createElement(
|
783
794
|
Tooltip,
|
784
795
|
{
|
785
796
|
content: hint,
|
@@ -789,7 +800,7 @@ var Label = React11.forwardRef(({ className, hint, hintSide, required, children,
|
|
789
800
|
onClick: (event) => event.preventDefault()
|
790
801
|
}
|
791
802
|
},
|
792
|
-
/* @__PURE__ */
|
803
|
+
/* @__PURE__ */ React10.createElement("div", null, /* @__PURE__ */ React10.createElement(
|
793
804
|
"svg",
|
794
805
|
{
|
795
806
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -801,9 +812,9 @@ var Label = React11.forwardRef(({ className, hint, hintSide, required, children,
|
|
801
812
|
strokeLinecap: "round",
|
802
813
|
strokeLinejoin: "round"
|
803
814
|
},
|
804
|
-
/* @__PURE__ */
|
805
|
-
/* @__PURE__ */
|
806
|
-
/* @__PURE__ */
|
815
|
+
/* @__PURE__ */ React10.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
816
|
+
/* @__PURE__ */ React10.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
817
|
+
/* @__PURE__ */ React10.createElement("path", { d: "M12 17h.01" })
|
807
818
|
))
|
808
819
|
)));
|
809
820
|
Label.displayName = "Label";
|
@@ -1057,7 +1068,7 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
1057
1068
|
defaultVariants: { variant: "default", size: "default" }
|
1058
1069
|
}
|
1059
1070
|
);
|
1060
|
-
var Button =
|
1071
|
+
var Button = React12.forwardRef(
|
1061
1072
|
({
|
1062
1073
|
className,
|
1063
1074
|
label,
|
@@ -1073,7 +1084,7 @@ var Button = React13.forwardRef(
|
|
1073
1084
|
}, ref) => {
|
1074
1085
|
const Comp = "button";
|
1075
1086
|
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
1076
|
-
return /* @__PURE__ */
|
1087
|
+
return /* @__PURE__ */ React12.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, label && /* @__PURE__ */ React12.createElement(Label, { ...labelProps }, label), /* @__PURE__ */ React12.createElement(
|
1077
1088
|
Comp,
|
1078
1089
|
{
|
1079
1090
|
className: cn(
|
@@ -1083,7 +1094,7 @@ var Button = React13.forwardRef(
|
|
1083
1094
|
ref,
|
1084
1095
|
...props
|
1085
1096
|
},
|
1086
|
-
isLoading ? /* @__PURE__ */
|
1097
|
+
isLoading ? /* @__PURE__ */ React12.createElement(
|
1087
1098
|
Loading,
|
1088
1099
|
{
|
1089
1100
|
design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
|
@@ -1092,20 +1103,20 @@ var Button = React13.forwardRef(
|
|
1092
1103
|
size: size === "sm" || size === "xs" ? "xs" : "button"
|
1093
1104
|
}
|
1094
1105
|
) : children
|
1095
|
-
), showHelperText && /* @__PURE__ */
|
1106
|
+
), showHelperText && /* @__PURE__ */ React12.createElement(HelperText, { helperText: props.helperText }));
|
1096
1107
|
}
|
1097
1108
|
);
|
1098
1109
|
Button.displayName = "Button";
|
1099
1110
|
|
1100
1111
|
// elements/dropdownMenu/DropdownMenu.tsx
|
1101
|
-
var
|
1112
|
+
var React13 = __toESM(require("react"));
|
1102
1113
|
var import_react10 = require("@headlessui/react");
|
1103
1114
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
1104
1115
|
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
1105
1116
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
1106
1117
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
1107
1118
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
1108
|
-
var DropdownMenuSubTrigger =
|
1119
|
+
var DropdownMenuSubTrigger = React13.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
1109
1120
|
DropdownMenuPrimitive.SubTrigger,
|
1110
1121
|
{
|
1111
1122
|
ref,
|
@@ -1116,9 +1127,9 @@ var DropdownMenuSubTrigger = React14.forwardRef(({ className, inset, children, .
|
|
1116
1127
|
),
|
1117
1128
|
...props
|
1118
1129
|
},
|
1119
|
-
/* @__PURE__ */
|
1130
|
+
/* @__PURE__ */ React13.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
|
1120
1131
|
" ",
|
1121
|
-
/* @__PURE__ */
|
1132
|
+
/* @__PURE__ */ React13.createElement(
|
1122
1133
|
"svg",
|
1123
1134
|
{
|
1124
1135
|
"aria-label": "Chevron Right Icon",
|
@@ -1130,7 +1141,7 @@ var DropdownMenuSubTrigger = React14.forwardRef(({ className, inset, children, .
|
|
1130
1141
|
width: "1em",
|
1131
1142
|
className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
|
1132
1143
|
},
|
1133
|
-
/* @__PURE__ */
|
1144
|
+
/* @__PURE__ */ React13.createElement(
|
1134
1145
|
"path",
|
1135
1146
|
{
|
1136
1147
|
fillRule: "evenodd",
|
@@ -1140,7 +1151,7 @@ var DropdownMenuSubTrigger = React14.forwardRef(({ className, inset, children, .
|
|
1140
1151
|
)
|
1141
1152
|
));
|
1142
1153
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
1143
|
-
var DropdownMenuSubContent =
|
1154
|
+
var DropdownMenuSubContent = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
1144
1155
|
DropdownMenuPrimitive.SubContent,
|
1145
1156
|
{
|
1146
1157
|
ref,
|
@@ -1152,7 +1163,7 @@ var DropdownMenuSubContent = React14.forwardRef(({ className, ...props }, ref) =
|
|
1152
1163
|
}
|
1153
1164
|
));
|
1154
1165
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
1155
|
-
var DropdownMenuContent =
|
1166
|
+
var DropdownMenuContent = React13.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React13.createElement(import_react10.Portal, null, /* @__PURE__ */ React13.createElement(
|
1156
1167
|
DropdownMenuPrimitive.Content,
|
1157
1168
|
{
|
1158
1169
|
ref,
|
@@ -1165,8 +1176,8 @@ var DropdownMenuContent = React14.forwardRef(({ className, sideOffset = 4, ...pr
|
|
1165
1176
|
}
|
1166
1177
|
)));
|
1167
1178
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
1168
|
-
var DropdownMenuItem =
|
1169
|
-
return /* @__PURE__ */
|
1179
|
+
var DropdownMenuItem = React13.forwardRef(({ className, inset, badged, slug, LinkComponent, ...props }, ref) => {
|
1180
|
+
return /* @__PURE__ */ React13.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React13.createElement(
|
1170
1181
|
DropdownMenuPrimitive.Item,
|
1171
1182
|
{
|
1172
1183
|
disabled: props.disabled,
|
@@ -1179,14 +1190,14 @@ var DropdownMenuItem = React14.forwardRef(({ className, inset, badged, slug, Lin
|
|
1179
1190
|
),
|
1180
1191
|
...props
|
1181
1192
|
},
|
1182
|
-
/* @__PURE__ */
|
1193
|
+
/* @__PURE__ */ React13.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
|
1183
1194
|
props.end && props.end,
|
1184
|
-
!props.end && props.shortcut && /* @__PURE__ */
|
1185
|
-
!props.end && badged && /* @__PURE__ */
|
1195
|
+
!props.end && props.shortcut && /* @__PURE__ */ React13.createElement(DropdownMenuShortcut, null, props.shortcut),
|
1196
|
+
!props.end && badged && /* @__PURE__ */ React13.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
|
1186
1197
|
));
|
1187
1198
|
});
|
1188
1199
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
1189
|
-
var DropdownMenuCheckboxItem =
|
1200
|
+
var DropdownMenuCheckboxItem = React13.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
1190
1201
|
DropdownMenuPrimitive.CheckboxItem,
|
1191
1202
|
{
|
1192
1203
|
ref,
|
@@ -1197,7 +1208,7 @@ var DropdownMenuCheckboxItem = React14.forwardRef(({ className, children, checke
|
|
1197
1208
|
checked,
|
1198
1209
|
...props
|
1199
1210
|
},
|
1200
|
-
/* @__PURE__ */
|
1211
|
+
/* @__PURE__ */ React13.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React13.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React13.createElement(
|
1201
1212
|
"svg",
|
1202
1213
|
{
|
1203
1214
|
"aria-label": "Check Mark",
|
@@ -1208,12 +1219,12 @@ var DropdownMenuCheckboxItem = React14.forwardRef(({ className, children, checke
|
|
1208
1219
|
height: "0.60em",
|
1209
1220
|
width: "0.60em"
|
1210
1221
|
},
|
1211
|
-
/* @__PURE__ */
|
1222
|
+
/* @__PURE__ */ React13.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
1212
1223
|
), " ")),
|
1213
1224
|
children
|
1214
1225
|
));
|
1215
1226
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
1216
|
-
var DropdownMenuRadioItem =
|
1227
|
+
var DropdownMenuRadioItem = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
1217
1228
|
DropdownMenuPrimitive.RadioItem,
|
1218
1229
|
{
|
1219
1230
|
ref,
|
@@ -1223,7 +1234,7 @@ var DropdownMenuRadioItem = React14.forwardRef(({ className, children, ...props
|
|
1223
1234
|
),
|
1224
1235
|
...props
|
1225
1236
|
},
|
1226
|
-
/* @__PURE__ */
|
1237
|
+
/* @__PURE__ */ React13.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React13.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React13.createElement(
|
1227
1238
|
"svg",
|
1228
1239
|
{
|
1229
1240
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -1238,12 +1249,12 @@ var DropdownMenuRadioItem = React14.forwardRef(({ className, children, ...props
|
|
1238
1249
|
strokeLinejoin: "round",
|
1239
1250
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
1240
1251
|
},
|
1241
|
-
/* @__PURE__ */
|
1252
|
+
/* @__PURE__ */ React13.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
1242
1253
|
))),
|
1243
1254
|
children
|
1244
1255
|
));
|
1245
1256
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
1246
|
-
var DropdownMenuLabel =
|
1257
|
+
var DropdownMenuLabel = React13.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
1247
1258
|
DropdownMenuPrimitive.Label,
|
1248
1259
|
{
|
1249
1260
|
ref,
|
@@ -1256,7 +1267,7 @@ var DropdownMenuLabel = React14.forwardRef(({ className, inset, ...props }, ref)
|
|
1256
1267
|
}
|
1257
1268
|
));
|
1258
1269
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
1259
|
-
var DropdownMenuSeparator =
|
1270
|
+
var DropdownMenuSeparator = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React13.createElement(
|
1260
1271
|
DropdownMenuPrimitive.Separator,
|
1261
1272
|
{
|
1262
1273
|
ref,
|
@@ -1269,7 +1280,7 @@ var DropdownMenuShortcut = ({
|
|
1269
1280
|
className,
|
1270
1281
|
...props
|
1271
1282
|
}) => {
|
1272
|
-
return /* @__PURE__ */
|
1283
|
+
return /* @__PURE__ */ React13.createElement(
|
1273
1284
|
"span",
|
1274
1285
|
{
|
1275
1286
|
className: cn(
|
@@ -1310,10 +1321,10 @@ var DropdownMenu = ({
|
|
1310
1321
|
default: "hawa-px-2 hawa-py-3 ",
|
1311
1322
|
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
1312
1323
|
};
|
1313
|
-
let [values, setValues] =
|
1324
|
+
let [values, setValues] = React13.useState(
|
1314
1325
|
items.map((item) => item.currentOption)
|
1315
1326
|
);
|
1316
|
-
return /* @__PURE__ */
|
1327
|
+
return /* @__PURE__ */ React13.createElement(
|
1317
1328
|
DropdownMenuRoot,
|
1318
1329
|
{
|
1319
1330
|
onOpenChange,
|
@@ -1321,7 +1332,7 @@ var DropdownMenu = ({
|
|
1321
1332
|
modal: false,
|
1322
1333
|
dir: direction
|
1323
1334
|
},
|
1324
|
-
/* @__PURE__ */
|
1335
|
+
/* @__PURE__ */ React13.createElement(
|
1325
1336
|
DropdownMenuTrigger,
|
1326
1337
|
{
|
1327
1338
|
asChild: true,
|
@@ -1330,7 +1341,7 @@ var DropdownMenu = ({
|
|
1330
1341
|
},
|
1331
1342
|
trigger
|
1332
1343
|
),
|
1333
|
-
/* @__PURE__ */
|
1344
|
+
/* @__PURE__ */ React13.createElement(import_react10.Portal, null, /* @__PURE__ */ React13.createElement(
|
1334
1345
|
DropdownMenuContent,
|
1335
1346
|
{
|
1336
1347
|
side,
|
@@ -1351,12 +1362,12 @@ var DropdownMenu = ({
|
|
1351
1362
|
var _a;
|
1352
1363
|
const ItemLinkComponent = item.slug ? LinkComponent : "a";
|
1353
1364
|
if (item.itemType === "separator") {
|
1354
|
-
return /* @__PURE__ */
|
1365
|
+
return /* @__PURE__ */ React13.createElement(DropdownMenuSeparator, { key: index });
|
1355
1366
|
} else if (item.itemType === "label") {
|
1356
|
-
return /* @__PURE__ */
|
1367
|
+
return /* @__PURE__ */ React13.createElement(DropdownMenuLabel, { key: index }, item.label);
|
1357
1368
|
} else if (item.itemType === "radio") {
|
1358
1369
|
let dd = item.currentOption;
|
1359
|
-
return /* @__PURE__ */
|
1370
|
+
return /* @__PURE__ */ React13.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React13.createElement(
|
1360
1371
|
DropdownMenuSubTrigger,
|
1361
1372
|
{
|
1362
1373
|
dir: direction,
|
@@ -1364,7 +1375,7 @@ var DropdownMenu = ({
|
|
1364
1375
|
},
|
1365
1376
|
item.icon && item.icon,
|
1366
1377
|
item.label && item.label
|
1367
|
-
), /* @__PURE__ */
|
1378
|
+
), /* @__PURE__ */ React13.createElement(DropdownMenuSubContent, null, /* @__PURE__ */ React13.createElement(
|
1368
1379
|
DropdownMenuRadioGroup,
|
1369
1380
|
{
|
1370
1381
|
value: values[index],
|
@@ -1378,12 +1389,12 @@ var DropdownMenu = ({
|
|
1378
1389
|
}
|
1379
1390
|
}
|
1380
1391
|
},
|
1381
|
-
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */
|
1392
|
+
(_a = item.options) == null ? void 0 : _a.map((opt, i) => /* @__PURE__ */ React13.createElement(DropdownMenuRadioItem, { key: i, value: opt.value }, opt.label))
|
1382
1393
|
)));
|
1383
1394
|
} else if (item.itemType === "custom") {
|
1384
|
-
return /* @__PURE__ */
|
1395
|
+
return /* @__PURE__ */ React13.createElement("div", { key: index }, item.content);
|
1385
1396
|
} else {
|
1386
|
-
return item.subitems ? /* @__PURE__ */
|
1397
|
+
return item.subitems ? /* @__PURE__ */ React13.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React13.createElement(
|
1387
1398
|
DropdownMenuSubTrigger,
|
1388
1399
|
{
|
1389
1400
|
dir: direction,
|
@@ -1391,9 +1402,9 @@ var DropdownMenu = ({
|
|
1391
1402
|
},
|
1392
1403
|
item.icon && item.icon,
|
1393
1404
|
item.label && item.label
|
1394
|
-
), /* @__PURE__ */
|
1405
|
+
), /* @__PURE__ */ React13.createElement(import_react10.Portal, null, /* @__PURE__ */ React13.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
1395
1406
|
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
1396
|
-
return /* @__PURE__ */
|
1407
|
+
return /* @__PURE__ */ React13.createElement(
|
1397
1408
|
DropdownMenuItem,
|
1398
1409
|
{
|
1399
1410
|
key: subIndex,
|
@@ -1422,7 +1433,7 @@ var DropdownMenu = ({
|
|
1422
1433
|
subitem.icon && subitem.icon,
|
1423
1434
|
subitem.label && subitem.label
|
1424
1435
|
);
|
1425
|
-
})))) : /* @__PURE__ */
|
1436
|
+
})))) : /* @__PURE__ */ React13.createElement(
|
1426
1437
|
DropdownMenuItem,
|
1427
1438
|
{
|
1428
1439
|
LinkComponent: ItemLinkComponent,
|
@@ -1475,6 +1486,36 @@ var DropdownMenu = ({
|
|
1475
1486
|
);
|
1476
1487
|
};
|
1477
1488
|
|
1489
|
+
// icons/Emojis.tsx
|
1490
|
+
var import_react11 = __toESM(require("react"));
|
1491
|
+
|
1492
|
+
// icons/InputIcons.tsx
|
1493
|
+
var import_react12 = __toESM(require("react"));
|
1494
|
+
|
1495
|
+
// icons/CommonIcons.tsx
|
1496
|
+
var import_react13 = __toESM(require("react"));
|
1497
|
+
var MenuIcon = () => /* @__PURE__ */ import_react13.default.createElement(
|
1498
|
+
"svg",
|
1499
|
+
{
|
1500
|
+
"aria-label": "Menu Button",
|
1501
|
+
stroke: "currentColor",
|
1502
|
+
fill: "currentColor",
|
1503
|
+
strokeWidth: 0,
|
1504
|
+
viewBox: "0 0 20 20",
|
1505
|
+
"aria-hidden": "true",
|
1506
|
+
height: "1.6em",
|
1507
|
+
width: "1.6em"
|
1508
|
+
},
|
1509
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
1510
|
+
"path",
|
1511
|
+
{
|
1512
|
+
fillRule: "evenodd",
|
1513
|
+
clipRule: "evenodd",
|
1514
|
+
d: "M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
1515
|
+
}
|
1516
|
+
)
|
1517
|
+
);
|
1518
|
+
|
1478
1519
|
// layout/appLayout/AppLayout.tsx
|
1479
1520
|
var AppLayout = ({
|
1480
1521
|
profileMenuWidth = "default",
|
@@ -1505,13 +1546,22 @@ var AppLayout = ({
|
|
1505
1546
|
}
|
1506
1547
|
};
|
1507
1548
|
const isRTL = direction === "rtl";
|
1508
|
-
const [openedSidebarItem, setOpenedSidebarItem] = (0,
|
1509
|
-
const [size, setSize] = (0,
|
1549
|
+
const [openedSidebarItem, setOpenedSidebarItem] = (0, import_react14.useState)("");
|
1550
|
+
const [size, setSize] = (0, import_react14.useState)(
|
1510
1551
|
typeof window !== "undefined" && window.innerWidth || 1200
|
1511
1552
|
);
|
1512
|
-
const [openSideMenu, setOpenSideMenu] = (0,
|
1513
|
-
const [keepDrawerOpen, setKeepDrawerOpen] = (0,
|
1514
|
-
|
1553
|
+
const [openSideMenu, setOpenSideMenu] = (0, import_react14.useState)(true);
|
1554
|
+
const [keepDrawerOpen, setKeepDrawerOpen] = (0, import_react14.useState)(keepOpen);
|
1555
|
+
const handleClickOutside = () => {
|
1556
|
+
if (typeof window !== "undefined") {
|
1557
|
+
if (window.innerWidth < 600) {
|
1558
|
+
setKeepDrawerOpen(false);
|
1559
|
+
setOpenSideMenu(false);
|
1560
|
+
}
|
1561
|
+
}
|
1562
|
+
};
|
1563
|
+
const ref = useClickOutside(handleClickOutside);
|
1564
|
+
(0, import_react14.useEffect)(() => {
|
1515
1565
|
if (typeof window !== "undefined") {
|
1516
1566
|
const resize = () => {
|
1517
1567
|
setSize(window.innerWidth);
|
@@ -1526,29 +1576,18 @@ var AppLayout = ({
|
|
1526
1576
|
};
|
1527
1577
|
}
|
1528
1578
|
}, []);
|
1529
|
-
(0,
|
1579
|
+
(0, import_react14.useEffect)(() => {
|
1530
1580
|
setKeepDrawerOpen(keepOpen);
|
1531
1581
|
}, [setKeepOpen]);
|
1532
|
-
|
1533
|
-
if (typeof window !== "undefined") {
|
1534
|
-
if (keepDrawerOpen)
|
1535
|
-
return;
|
1536
|
-
if (window.innerWidth < 600) {
|
1537
|
-
setKeepDrawerOpen(false);
|
1538
|
-
setOpenSideMenu(false);
|
1539
|
-
}
|
1540
|
-
}
|
1541
|
-
};
|
1542
|
-
const ref = useOutsideClick_default(handleClickOutside);
|
1543
|
-
const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepDrawerOpen ? "opened" : "closed"][drawerSize] : 0;
|
1544
|
-
(0, import_react11.useEffect)(() => {
|
1582
|
+
(0, import_react14.useEffect)(() => {
|
1545
1583
|
if (size > 600) {
|
1546
1584
|
setOpenSideMenu(keepDrawerOpen);
|
1547
1585
|
} else {
|
1548
1586
|
setOpenSideMenu(false);
|
1549
1587
|
}
|
1550
|
-
}, [size]);
|
1551
|
-
|
1588
|
+
}, [size, keepDrawerOpen]);
|
1589
|
+
const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepDrawerOpen ? "opened" : "closed"][drawerSize] : 0;
|
1590
|
+
return /* @__PURE__ */ import_react14.default.createElement("div", { className: "hawa-fixed hawa-start-0" }, props.topBar && /* @__PURE__ */ import_react14.default.createElement(
|
1552
1591
|
"div",
|
1553
1592
|
{
|
1554
1593
|
dir: direction,
|
@@ -1557,7 +1596,7 @@ var AppLayout = ({
|
|
1557
1596
|
bordered && "hawa-border-b-[1px]"
|
1558
1597
|
)
|
1559
1598
|
},
|
1560
|
-
size > 600 ? /* @__PURE__ */
|
1599
|
+
size > 600 ? /* @__PURE__ */ import_react14.default.createElement(
|
1561
1600
|
"div",
|
1562
1601
|
{
|
1563
1602
|
className: cn(
|
@@ -1571,24 +1610,24 @@ var AppLayout = ({
|
|
1571
1610
|
props.pageTitle
|
1572
1611
|
) : (
|
1573
1612
|
// Mobile Drawer Menu Button
|
1574
|
-
/* @__PURE__ */
|
1613
|
+
/* @__PURE__ */ import_react14.default.createElement(
|
1575
1614
|
"div",
|
1576
1615
|
{
|
1577
1616
|
dir: direction,
|
1578
1617
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
1579
1618
|
},
|
1580
|
-
/* @__PURE__ */
|
1619
|
+
/* @__PURE__ */ import_react14.default.createElement(
|
1581
1620
|
"div",
|
1582
1621
|
{
|
1583
1622
|
onClick: () => setOpenSideMenu(true),
|
1584
1623
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
1585
1624
|
},
|
1586
|
-
/* @__PURE__ */
|
1625
|
+
/* @__PURE__ */ import_react14.default.createElement(MenuIcon, null)
|
1587
1626
|
),
|
1588
|
-
props.pageTitle ? /* @__PURE__ */
|
1627
|
+
props.pageTitle ? /* @__PURE__ */ import_react14.default.createElement("div", { className: "hawa-text-sm" }, props.pageTitle) : /* @__PURE__ */ import_react14.default.createElement("div", null)
|
1589
1628
|
)
|
1590
1629
|
),
|
1591
|
-
/* @__PURE__ */
|
1630
|
+
/* @__PURE__ */ import_react14.default.createElement("div", { className: cn("hawa-flex hawa-gap-2 dark:hawa-text-white") }, size > 600 ? /* @__PURE__ */ import_react14.default.createElement("div", { className: "hawa-text-end hawa-text-xs" }, /* @__PURE__ */ import_react14.default.createElement("div", { className: "hawa-font-bold" }, props.username), " ", /* @__PURE__ */ import_react14.default.createElement("div", null, props.email)) : null, /* @__PURE__ */ import_react14.default.createElement(
|
1592
1631
|
DropdownMenu,
|
1593
1632
|
{
|
1594
1633
|
LinkComponent: MenuLinkComponent,
|
@@ -1600,13 +1639,13 @@ var AppLayout = ({
|
|
1600
1639
|
direction,
|
1601
1640
|
items: props.profileMenuItems || [],
|
1602
1641
|
onItemSelect: (e) => console.log("selecting item ", e),
|
1603
|
-
trigger: /* @__PURE__ */
|
1642
|
+
trigger: /* @__PURE__ */ import_react14.default.createElement(
|
1604
1643
|
"div",
|
1605
1644
|
{
|
1606
1645
|
onClick: onAvatarClick,
|
1607
1646
|
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"
|
1608
1647
|
},
|
1609
|
-
props.avatarImage ? /* @__PURE__ */
|
1648
|
+
props.avatarImage ? /* @__PURE__ */ import_react14.default.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ import_react14.default.createElement(
|
1610
1649
|
"svg",
|
1611
1650
|
{
|
1612
1651
|
"aria-label": "Avatar Icon",
|
@@ -1614,7 +1653,7 @@ var AppLayout = ({
|
|
1614
1653
|
fill: "currentColor",
|
1615
1654
|
viewBox: "0 0 20 20"
|
1616
1655
|
},
|
1617
|
-
/* @__PURE__ */
|
1656
|
+
/* @__PURE__ */ import_react14.default.createElement(
|
1618
1657
|
"path",
|
1619
1658
|
{
|
1620
1659
|
fillRule: "evenodd",
|
@@ -1626,7 +1665,7 @@ var AppLayout = ({
|
|
1626
1665
|
)
|
1627
1666
|
}
|
1628
1667
|
))
|
1629
|
-
), /* @__PURE__ */
|
1668
|
+
), /* @__PURE__ */ import_react14.default.createElement(
|
1630
1669
|
"div",
|
1631
1670
|
{
|
1632
1671
|
className: cn(
|
@@ -1637,9 +1676,7 @@ var AppLayout = ({
|
|
1637
1676
|
style: {
|
1638
1677
|
width: size > 600 ? openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : `${drawerSizeStyle["closed"][drawerSize]}px` : openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : "0px"
|
1639
1678
|
},
|
1640
|
-
onMouseEnter: () =>
|
1641
|
-
setOpenSideMenu(true);
|
1642
|
-
},
|
1679
|
+
onMouseEnter: () => setOpenSideMenu(true),
|
1643
1680
|
onMouseLeave: () => {
|
1644
1681
|
if (size > 600) {
|
1645
1682
|
if (keepDrawerOpen) {
|
@@ -1654,7 +1691,7 @@ var AppLayout = ({
|
|
1654
1691
|
},
|
1655
1692
|
ref
|
1656
1693
|
},
|
1657
|
-
/* @__PURE__ */
|
1694
|
+
/* @__PURE__ */ import_react14.default.createElement(
|
1658
1695
|
"div",
|
1659
1696
|
{
|
1660
1697
|
onClick: props.onLogoClick,
|
@@ -1669,30 +1706,30 @@ var AppLayout = ({
|
|
1669
1706
|
}
|
1670
1707
|
},
|
1671
1708
|
openSideMenu && props.header && props.header,
|
1672
|
-
!props.header && /* @__PURE__ */
|
1709
|
+
!props.header && /* @__PURE__ */ import_react14.default.createElement(
|
1673
1710
|
"img",
|
1674
1711
|
{
|
1712
|
+
src: props.logoLink,
|
1675
1713
|
className: cn(
|
1676
1714
|
"hawa-h-9 hawa-opacity-0 hawa-transition-all",
|
1677
1715
|
!openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100",
|
1678
1716
|
classNames == null ? void 0 : classNames.fullLogoImg
|
1679
|
-
)
|
1680
|
-
src: props.logoLink
|
1717
|
+
)
|
1681
1718
|
}
|
1682
1719
|
),
|
1683
|
-
size > 600 ? /* @__PURE__ */
|
1720
|
+
size > 600 ? /* @__PURE__ */ import_react14.default.createElement(
|
1684
1721
|
"img",
|
1685
1722
|
{
|
1723
|
+
src: props.logoSymbol,
|
1686
1724
|
className: cn(
|
1687
1725
|
"hawa-fixed hawa-h-9 hawa-transition-all hawa-start-2.5 hawa-top-2.5",
|
1688
1726
|
openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100",
|
1689
1727
|
classNames == null ? void 0 : classNames.symbolLogoImg
|
1690
|
-
)
|
1691
|
-
src: props.logoSymbol
|
1728
|
+
)
|
1692
1729
|
}
|
1693
1730
|
) : null
|
1694
1731
|
),
|
1695
|
-
/* @__PURE__ */
|
1732
|
+
/* @__PURE__ */ import_react14.default.createElement(
|
1696
1733
|
"div",
|
1697
1734
|
{
|
1698
1735
|
className: cn(
|
@@ -1703,30 +1740,22 @@ var AppLayout = ({
|
|
1703
1740
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : drawerSizeCondition}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
1704
1741
|
}
|
1705
1742
|
},
|
1706
|
-
/* @__PURE__ */
|
1743
|
+
/* @__PURE__ */ import_react14.default.createElement(
|
1707
1744
|
SidebarGroup,
|
1708
1745
|
{
|
1709
1746
|
direction,
|
1710
|
-
onItemClick: (values) => {
|
1711
|
-
if (clickedItem) {
|
1712
|
-
clickedItem(values);
|
1713
|
-
}
|
1714
|
-
},
|
1715
|
-
onSubItemClick: (values) => {
|
1716
|
-
if (clickedItem) {
|
1717
|
-
clickedItem(values);
|
1718
|
-
}
|
1719
|
-
},
|
1720
1747
|
selectedItem: currentPage,
|
1721
1748
|
openedItem: openedSidebarItem,
|
1722
1749
|
setOpenedItem: (e) => setOpenedSidebarItem(e),
|
1723
1750
|
isOpen: keepDrawerOpen || openSideMenu,
|
1724
1751
|
items: props.drawerItems,
|
1725
|
-
LinkComponent: DrawerLinkComponent
|
1752
|
+
LinkComponent: DrawerLinkComponent,
|
1753
|
+
onItemClick: (values) => clickedItem && clickedItem(values),
|
1754
|
+
onSubItemClick: (values) => clickedItem && clickedItem(values)
|
1726
1755
|
}
|
1727
1756
|
)
|
1728
1757
|
),
|
1729
|
-
/* @__PURE__ */
|
1758
|
+
/* @__PURE__ */ import_react14.default.createElement(
|
1730
1759
|
"div",
|
1731
1760
|
{
|
1732
1761
|
className: cn(
|
@@ -1737,8 +1766,8 @@ var AppLayout = ({
|
|
1737
1766
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
1738
1767
|
}
|
1739
1768
|
},
|
1740
|
-
DrawerFooterActions && openSideMenu ? /* @__PURE__ */
|
1741
|
-
size > 600 && openSideMenu ? /* @__PURE__ */
|
1769
|
+
DrawerFooterActions && openSideMenu ? /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, DrawerFooterActions) : null,
|
1770
|
+
size > 600 && openSideMenu ? /* @__PURE__ */ import_react14.default.createElement(
|
1742
1771
|
Tooltip,
|
1743
1772
|
{
|
1744
1773
|
side: "left",
|
@@ -1746,7 +1775,7 @@ var AppLayout = ({
|
|
1746
1775
|
triggerProps: { asChild: true },
|
1747
1776
|
content: keepDrawerOpen ? ((_a = props.texts) == null ? void 0 : _a.collapseSidebar) || "Collapse Sidebar" : ((_b = props.texts) == null ? void 0 : _b.expandSidebar) || "Expand Sidebar"
|
1748
1777
|
},
|
1749
|
-
/* @__PURE__ */
|
1778
|
+
/* @__PURE__ */ import_react14.default.createElement(
|
1750
1779
|
Button,
|
1751
1780
|
{
|
1752
1781
|
variant: "outline",
|
@@ -1759,7 +1788,7 @@ var AppLayout = ({
|
|
1759
1788
|
setKeepDrawerOpen(newKeepOpenState);
|
1760
1789
|
}
|
1761
1790
|
},
|
1762
|
-
/* @__PURE__ */
|
1791
|
+
/* @__PURE__ */ import_react14.default.createElement(
|
1763
1792
|
"svg",
|
1764
1793
|
{
|
1765
1794
|
className: cn(
|
@@ -1769,7 +1798,7 @@ var AppLayout = ({
|
|
1769
1798
|
fill: "currentColor",
|
1770
1799
|
viewBox: "0 0 20 20"
|
1771
1800
|
},
|
1772
|
-
/* @__PURE__ */
|
1801
|
+
/* @__PURE__ */ import_react14.default.createElement(
|
1773
1802
|
"path",
|
1774
1803
|
{
|
1775
1804
|
fillRule: "evenodd",
|
@@ -1781,7 +1810,7 @@ var AppLayout = ({
|
|
1781
1810
|
)
|
1782
1811
|
) : null
|
1783
1812
|
)
|
1784
|
-
), /* @__PURE__ */
|
1813
|
+
), /* @__PURE__ */ import_react14.default.createElement(
|
1785
1814
|
"div",
|
1786
1815
|
{
|
1787
1816
|
className: "hawa-fixed -hawa-z-10 hawa-overflow-y-auto hawa-transition-all",
|
@@ -1800,34 +1829,13 @@ var AppLayout = ({
|
|
1800
1829
|
props.children
|
1801
1830
|
));
|
1802
1831
|
};
|
1803
|
-
var MenuIcon = () => /* @__PURE__ */ import_react11.default.createElement(
|
1804
|
-
"svg",
|
1805
|
-
{
|
1806
|
-
"aria-label": "Menu Button",
|
1807
|
-
stroke: "currentColor",
|
1808
|
-
fill: "currentColor",
|
1809
|
-
strokeWidth: 0,
|
1810
|
-
viewBox: "0 0 20 20",
|
1811
|
-
"aria-hidden": "true",
|
1812
|
-
height: "1.6em",
|
1813
|
-
width: "1.6em"
|
1814
|
-
},
|
1815
|
-
/* @__PURE__ */ import_react11.default.createElement(
|
1816
|
-
"path",
|
1817
|
-
{
|
1818
|
-
fillRule: "evenodd",
|
1819
|
-
clipRule: "evenodd",
|
1820
|
-
d: "M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
1821
|
-
}
|
1822
|
-
)
|
1823
|
-
);
|
1824
1832
|
|
1825
1833
|
// layout/appTopbar/AppTopbar.tsx
|
1826
|
-
var
|
1834
|
+
var import_react15 = __toESM(require("react"));
|
1827
1835
|
var AppTopbar = ({ ...props }) => {
|
1828
1836
|
const isRTL = props.direction === "ltr";
|
1829
1837
|
const size = 1200;
|
1830
|
-
return /* @__PURE__ */
|
1838
|
+
return /* @__PURE__ */ import_react15.default.createElement(
|
1831
1839
|
"div",
|
1832
1840
|
{
|
1833
1841
|
className: cn(
|
@@ -1835,24 +1843,24 @@ var AppTopbar = ({ ...props }) => {
|
|
1835
1843
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
1836
1844
|
)
|
1837
1845
|
},
|
1838
|
-
size > 600 ? /* @__PURE__ */
|
1846
|
+
size > 600 ? /* @__PURE__ */ import_react15.default.createElement(
|
1839
1847
|
"div",
|
1840
1848
|
null,
|
1841
1849
|
"page title"
|
1842
1850
|
) : (
|
1843
1851
|
// Mobile Drawer Menu Button
|
1844
|
-
/* @__PURE__ */
|
1852
|
+
/* @__PURE__ */ import_react15.default.createElement(
|
1845
1853
|
"div",
|
1846
1854
|
{
|
1847
1855
|
dir: props.direction,
|
1848
1856
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
1849
1857
|
},
|
1850
|
-
/* @__PURE__ */
|
1858
|
+
/* @__PURE__ */ import_react15.default.createElement(
|
1851
1859
|
"div",
|
1852
1860
|
{
|
1853
1861
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
1854
1862
|
},
|
1855
|
-
/* @__PURE__ */
|
1863
|
+
/* @__PURE__ */ import_react15.default.createElement(
|
1856
1864
|
"svg",
|
1857
1865
|
{
|
1858
1866
|
stroke: "currentColor",
|
@@ -1863,7 +1871,7 @@ var AppTopbar = ({ ...props }) => {
|
|
1863
1871
|
height: "1.6em",
|
1864
1872
|
width: "1.6em"
|
1865
1873
|
},
|
1866
|
-
/* @__PURE__ */
|
1874
|
+
/* @__PURE__ */ import_react15.default.createElement(
|
1867
1875
|
"path",
|
1868
1876
|
{
|
1869
1877
|
fillRule: "evenodd",
|
@@ -1876,7 +1884,7 @@ var AppTopbar = ({ ...props }) => {
|
|
1876
1884
|
"Mobile title"
|
1877
1885
|
)
|
1878
1886
|
),
|
1879
|
-
/* @__PURE__ */
|
1887
|
+
/* @__PURE__ */ import_react15.default.createElement(
|
1880
1888
|
"div",
|
1881
1889
|
{
|
1882
1890
|
className: cn(
|
@@ -1884,16 +1892,16 @@ var AppTopbar = ({ ...props }) => {
|
|
1884
1892
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
1885
1893
|
)
|
1886
1894
|
},
|
1887
|
-
size > 600 ? /* @__PURE__ */
|
1895
|
+
size > 600 ? /* @__PURE__ */ import_react15.default.createElement(
|
1888
1896
|
"div",
|
1889
1897
|
{
|
1890
1898
|
className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
|
1891
1899
|
},
|
1892
|
-
/* @__PURE__ */
|
1900
|
+
/* @__PURE__ */ import_react15.default.createElement("div", { className: "hawa-font-bold" }, props.username),
|
1893
1901
|
" ",
|
1894
|
-
/* @__PURE__ */
|
1902
|
+
/* @__PURE__ */ import_react15.default.createElement("div", null, props.email)
|
1895
1903
|
) : null,
|
1896
|
-
/* @__PURE__ */
|
1904
|
+
/* @__PURE__ */ import_react15.default.createElement(
|
1897
1905
|
DropdownMenu,
|
1898
1906
|
{
|
1899
1907
|
triggerClassname: "hawa-mx-2",
|
@@ -1904,7 +1912,7 @@ var AppTopbar = ({ ...props }) => {
|
|
1904
1912
|
direction: isRTL ? "rtl" : "ltr",
|
1905
1913
|
items: props.profileMenuItems || [],
|
1906
1914
|
onItemSelect: (e) => console.log("selecting item ", e),
|
1907
|
-
trigger: /* @__PURE__ */
|
1915
|
+
trigger: /* @__PURE__ */ import_react15.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_react15.default.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ import_react15.default.createElement(
|
1908
1916
|
"svg",
|
1909
1917
|
{
|
1910
1918
|
"aria-label": "Avatar Icon",
|
@@ -1912,7 +1920,7 @@ var AppTopbar = ({ ...props }) => {
|
|
1912
1920
|
fill: "currentColor",
|
1913
1921
|
viewBox: "0 0 20 20"
|
1914
1922
|
},
|
1915
|
-
/* @__PURE__ */
|
1923
|
+
/* @__PURE__ */ import_react15.default.createElement(
|
1916
1924
|
"path",
|
1917
1925
|
{
|
1918
1926
|
fillRule: "evenodd",
|
@@ -1928,14 +1936,14 @@ var AppTopbar = ({ ...props }) => {
|
|
1928
1936
|
};
|
1929
1937
|
|
1930
1938
|
// layout/appMenubar/AppMenubar.tsx
|
1931
|
-
var
|
1939
|
+
var React19 = __toESM(require("react"));
|
1932
1940
|
var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"));
|
1933
1941
|
var MenubarMenu = MenubarPrimitive.Menu;
|
1934
1942
|
var MenubarGroup = MenubarPrimitive.Group;
|
1935
1943
|
var MenubarPortal = MenubarPrimitive.Portal;
|
1936
1944
|
var MenubarSub = MenubarPrimitive.Sub;
|
1937
1945
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
1938
|
-
var Menubar =
|
1946
|
+
var Menubar = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
|
1939
1947
|
MenubarPrimitive.Root,
|
1940
1948
|
{
|
1941
1949
|
ref,
|
@@ -1947,7 +1955,7 @@ var Menubar = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
1947
1955
|
}
|
1948
1956
|
));
|
1949
1957
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
1950
|
-
var MenubarTrigger =
|
1958
|
+
var MenubarTrigger = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
|
1951
1959
|
MenubarPrimitive.Trigger,
|
1952
1960
|
{
|
1953
1961
|
ref,
|
@@ -1959,7 +1967,7 @@ var MenubarTrigger = React17.forwardRef(({ className, ...props }, ref) => /* @__
|
|
1959
1967
|
}
|
1960
1968
|
));
|
1961
1969
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
1962
|
-
var MenubarSubTrigger =
|
1970
|
+
var MenubarSubTrigger = React19.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React19.createElement(
|
1963
1971
|
MenubarPrimitive.SubTrigger,
|
1964
1972
|
{
|
1965
1973
|
ref,
|
@@ -1971,7 +1979,7 @@ var MenubarSubTrigger = React17.forwardRef(({ className, inset, children, ...pro
|
|
1971
1979
|
...props
|
1972
1980
|
},
|
1973
1981
|
children,
|
1974
|
-
/* @__PURE__ */
|
1982
|
+
/* @__PURE__ */ React19.createElement(
|
1975
1983
|
"svg",
|
1976
1984
|
{
|
1977
1985
|
"aria-label": "Chevron Right Icon",
|
@@ -1986,11 +1994,11 @@ var MenubarSubTrigger = React17.forwardRef(({ className, inset, children, ...pro
|
|
1986
1994
|
strokeLinejoin: "round",
|
1987
1995
|
className: "hawa-icon hawa-ml-auto"
|
1988
1996
|
},
|
1989
|
-
/* @__PURE__ */
|
1997
|
+
/* @__PURE__ */ React19.createElement("path", { d: "m9 18 6-6-6-6" })
|
1990
1998
|
)
|
1991
1999
|
));
|
1992
2000
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
1993
|
-
var MenubarSubContent =
|
2001
|
+
var MenubarSubContent = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
|
1994
2002
|
MenubarPrimitive.SubContent,
|
1995
2003
|
{
|
1996
2004
|
ref,
|
@@ -2002,8 +2010,8 @@ var MenubarSubContent = React17.forwardRef(({ className, ...props }, ref) => /*
|
|
2002
2010
|
}
|
2003
2011
|
));
|
2004
2012
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
2005
|
-
var MenubarContent =
|
2006
|
-
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */
|
2013
|
+
var MenubarContent = React19.forwardRef(
|
2014
|
+
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ React19.createElement(MenubarPrimitive.Portal, null, /* @__PURE__ */ React19.createElement(
|
2007
2015
|
MenubarPrimitive.Content,
|
2008
2016
|
{
|
2009
2017
|
ref,
|
@@ -2019,7 +2027,7 @@ var MenubarContent = React17.forwardRef(
|
|
2019
2027
|
))
|
2020
2028
|
);
|
2021
2029
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
2022
|
-
var MenubarItem =
|
2030
|
+
var MenubarItem = React19.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React19.createElement(
|
2023
2031
|
MenubarPrimitive.Item,
|
2024
2032
|
{
|
2025
2033
|
ref,
|
@@ -2032,7 +2040,7 @@ var MenubarItem = React17.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
2032
2040
|
}
|
2033
2041
|
));
|
2034
2042
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
2035
|
-
var MenubarCheckboxItem =
|
2043
|
+
var MenubarCheckboxItem = React19.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React19.createElement(
|
2036
2044
|
MenubarPrimitive.CheckboxItem,
|
2037
2045
|
{
|
2038
2046
|
ref,
|
@@ -2043,7 +2051,7 @@ var MenubarCheckboxItem = React17.forwardRef(({ className, children, checked, ..
|
|
2043
2051
|
checked,
|
2044
2052
|
...props
|
2045
2053
|
},
|
2046
|
-
/* @__PURE__ */
|
2054
|
+
/* @__PURE__ */ React19.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React19.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React19.createElement(
|
2047
2055
|
"svg",
|
2048
2056
|
{
|
2049
2057
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2057,12 +2065,12 @@ var MenubarCheckboxItem = React17.forwardRef(({ className, children, checked, ..
|
|
2057
2065
|
strokeLinejoin: "round",
|
2058
2066
|
className: "hawa-icon"
|
2059
2067
|
},
|
2060
|
-
/* @__PURE__ */
|
2068
|
+
/* @__PURE__ */ React19.createElement("path", { d: "M20 6 9 17l-5-5" })
|
2061
2069
|
))),
|
2062
2070
|
children
|
2063
2071
|
));
|
2064
2072
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
2065
|
-
var MenubarRadioItem =
|
2073
|
+
var MenubarRadioItem = React19.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React19.createElement(
|
2066
2074
|
MenubarPrimitive.RadioItem,
|
2067
2075
|
{
|
2068
2076
|
ref,
|
@@ -2072,7 +2080,7 @@ var MenubarRadioItem = React17.forwardRef(({ className, children, ...props }, re
|
|
2072
2080
|
),
|
2073
2081
|
...props
|
2074
2082
|
},
|
2075
|
-
/* @__PURE__ */
|
2083
|
+
/* @__PURE__ */ React19.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React19.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React19.createElement(
|
2076
2084
|
"svg",
|
2077
2085
|
{
|
2078
2086
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2086,12 +2094,12 @@ var MenubarRadioItem = React17.forwardRef(({ className, children, ...props }, re
|
|
2086
2094
|
strokeLinejoin: "round",
|
2087
2095
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
2088
2096
|
},
|
2089
|
-
/* @__PURE__ */
|
2097
|
+
/* @__PURE__ */ React19.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
2090
2098
|
))),
|
2091
2099
|
children
|
2092
2100
|
));
|
2093
2101
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
2094
|
-
var MenubarLabel =
|
2102
|
+
var MenubarLabel = React19.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React19.createElement(
|
2095
2103
|
MenubarPrimitive.Label,
|
2096
2104
|
{
|
2097
2105
|
ref,
|
@@ -2104,7 +2112,7 @@ var MenubarLabel = React17.forwardRef(({ className, inset, ...props }, ref) => /
|
|
2104
2112
|
}
|
2105
2113
|
));
|
2106
2114
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
2107
|
-
var MenubarSeparator =
|
2115
|
+
var MenubarSeparator = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
|
2108
2116
|
MenubarPrimitive.Separator,
|
2109
2117
|
{
|
2110
2118
|
ref,
|
@@ -2117,7 +2125,7 @@ var MenubarShortcut = ({
|
|
2117
2125
|
className,
|
2118
2126
|
...props
|
2119
2127
|
}) => {
|
2120
|
-
return /* @__PURE__ */
|
2128
|
+
return /* @__PURE__ */ React19.createElement(
|
2121
2129
|
"span",
|
2122
2130
|
{
|
2123
2131
|
className: cn(
|
@@ -2131,10 +2139,10 @@ var MenubarShortcut = ({
|
|
2131
2139
|
MenubarShortcut.displayname = "MenubarShortcut";
|
2132
2140
|
|
2133
2141
|
// layout/appTabs/AppTabs.tsx
|
2134
|
-
var
|
2142
|
+
var import_react16 = __toESM(require("react"));
|
2135
2143
|
var AppTabs = ({ tabs, className }) => {
|
2136
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
2137
|
-
return /* @__PURE__ */
|
2144
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react16.useState)(0);
|
2145
|
+
return /* @__PURE__ */ import_react16.default.createElement(
|
2138
2146
|
"div",
|
2139
2147
|
{
|
2140
2148
|
className: cn(
|
@@ -2142,9 +2150,9 @@ var AppTabs = ({ tabs, className }) => {
|
|
2142
2150
|
className
|
2143
2151
|
)
|
2144
2152
|
},
|
2145
|
-
/* @__PURE__ */
|
2153
|
+
/* @__PURE__ */ import_react16.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center " }, tabs.map((tab, index) => {
|
2146
2154
|
const selected = index === selectedIndex;
|
2147
|
-
return /* @__PURE__ */
|
2155
|
+
return /* @__PURE__ */ import_react16.default.createElement(
|
2148
2156
|
"a",
|
2149
2157
|
{
|
2150
2158
|
href: tab.path,
|
@@ -2175,12 +2183,12 @@ var AppTabs = ({ tabs, className }) => {
|
|
2175
2183
|
};
|
2176
2184
|
|
2177
2185
|
// layout/docsLayout/DocsLayout.tsx
|
2178
|
-
var
|
2186
|
+
var import_react20 = __toESM(require("react"));
|
2179
2187
|
|
2180
2188
|
// elements/logos/Logos.tsx
|
2181
|
-
var
|
2189
|
+
var import_react17 = __toESM(require("react"));
|
2182
2190
|
var Logos = {
|
2183
|
-
metamask: (props) => /* @__PURE__ */
|
2191
|
+
metamask: (props) => /* @__PURE__ */ import_react17.default.createElement(
|
2184
2192
|
"svg",
|
2185
2193
|
{
|
2186
2194
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2191,8 +2199,8 @@ var Logos = {
|
|
2191
2199
|
viewBox: "0 0 318.6 318.6",
|
2192
2200
|
...props
|
2193
2201
|
},
|
2194
|
-
/* @__PURE__ */
|
2195
|
-
/* @__PURE__ */
|
2202
|
+
/* @__PURE__ */ import_react17.default.createElement("style", null, ".st1,.st6{fill:#e4761b;stroke:#e4761b;stroke-linecap:round;stroke-linejoin:round}.st6{fill:#f6851b;stroke:#f6851b}"),
|
2203
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
2196
2204
|
"path",
|
2197
2205
|
{
|
2198
2206
|
fill: "#e2761b",
|
@@ -2202,21 +2210,21 @@ var Logos = {
|
|
2202
2210
|
d: "m274.1 35.5-99.5 73.9L193 65.8z"
|
2203
2211
|
}
|
2204
2212
|
),
|
2205
|
-
/* @__PURE__ */
|
2213
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
2206
2214
|
"path",
|
2207
2215
|
{
|
2208
2216
|
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",
|
2209
2217
|
className: "st1"
|
2210
2218
|
}
|
2211
2219
|
),
|
2212
|
-
/* @__PURE__ */
|
2220
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
2213
2221
|
"path",
|
2214
2222
|
{
|
2215
2223
|
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",
|
2216
2224
|
className: "st1"
|
2217
2225
|
}
|
2218
2226
|
),
|
2219
|
-
/* @__PURE__ */
|
2227
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
2220
2228
|
"path",
|
2221
2229
|
{
|
2222
2230
|
fill: "#d7c1b3",
|
@@ -2226,7 +2234,7 @@ var Logos = {
|
|
2226
2234
|
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"
|
2227
2235
|
}
|
2228
2236
|
),
|
2229
|
-
/* @__PURE__ */
|
2237
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
2230
2238
|
"path",
|
2231
2239
|
{
|
2232
2240
|
fill: "#233447",
|
@@ -2236,7 +2244,7 @@ var Logos = {
|
|
2236
2244
|
d: "m138.8 193.5-28.2-8.3 19.9-9.1zm40.9 0 8.3-17.4 20 9.1z"
|
2237
2245
|
}
|
2238
2246
|
),
|
2239
|
-
/* @__PURE__ */
|
2247
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
2240
2248
|
"path",
|
2241
2249
|
{
|
2242
2250
|
fill: "#cd6116",
|
@@ -2246,7 +2254,7 @@ var Logos = {
|
|
2246
2254
|
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"
|
2247
2255
|
}
|
2248
2256
|
),
|
2249
|
-
/* @__PURE__ */
|
2257
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
2250
2258
|
"path",
|
2251
2259
|
{
|
2252
2260
|
fill: "#e4751f",
|
@@ -2256,14 +2264,14 @@ var Logos = {
|
|
2256
2264
|
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"
|
2257
2265
|
}
|
2258
2266
|
),
|
2259
|
-
/* @__PURE__ */
|
2267
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
2260
2268
|
"path",
|
2261
2269
|
{
|
2262
2270
|
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",
|
2263
2271
|
className: "st6"
|
2264
2272
|
}
|
2265
2273
|
),
|
2266
|
-
/* @__PURE__ */
|
2274
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
2267
2275
|
"path",
|
2268
2276
|
{
|
2269
2277
|
fill: "#c0ad9e",
|
@@ -2273,7 +2281,7 @@ var Logos = {
|
|
2273
2281
|
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"
|
2274
2282
|
}
|
2275
2283
|
),
|
2276
|
-
/* @__PURE__ */
|
2284
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
2277
2285
|
"path",
|
2278
2286
|
{
|
2279
2287
|
fill: "#161616",
|
@@ -2283,7 +2291,7 @@ var Logos = {
|
|
2283
2291
|
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"
|
2284
2292
|
}
|
2285
2293
|
),
|
2286
|
-
/* @__PURE__ */
|
2294
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
2287
2295
|
"path",
|
2288
2296
|
{
|
2289
2297
|
fill: "#763d16",
|
@@ -2293,7 +2301,7 @@ var Logos = {
|
|
2293
2301
|
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"
|
2294
2302
|
}
|
2295
2303
|
),
|
2296
|
-
/* @__PURE__ */
|
2304
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
2297
2305
|
"path",
|
2298
2306
|
{
|
2299
2307
|
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",
|
@@ -2301,7 +2309,7 @@ var Logos = {
|
|
2301
2309
|
}
|
2302
2310
|
)
|
2303
2311
|
),
|
2304
|
-
nafath: (props) => /* @__PURE__ */
|
2312
|
+
nafath: (props) => /* @__PURE__ */ import_react17.default.createElement(
|
2305
2313
|
"svg",
|
2306
2314
|
{
|
2307
2315
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2312,15 +2320,15 @@ var Logos = {
|
|
2312
2320
|
viewBox: "22.5 44.5 535.6 230.34",
|
2313
2321
|
...props
|
2314
2322
|
},
|
2315
|
-
/* @__PURE__ */
|
2316
|
-
/* @__PURE__ */
|
2323
|
+
/* @__PURE__ */ import_react17.default.createElement("style", null, ".st0{fill:#0a9a8f}"),
|
2324
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
2317
2325
|
"path",
|
2318
2326
|
{
|
2319
2327
|
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",
|
2320
2328
|
className: "st0"
|
2321
2329
|
}
|
2322
2330
|
),
|
2323
|
-
/* @__PURE__ */
|
2331
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
2324
2332
|
"path",
|
2325
2333
|
{
|
2326
2334
|
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",
|
@@ -2328,7 +2336,7 @@ var Logos = {
|
|
2328
2336
|
}
|
2329
2337
|
)
|
2330
2338
|
),
|
2331
|
-
hawa: (props) => /* @__PURE__ */
|
2339
|
+
hawa: (props) => /* @__PURE__ */ import_react17.default.createElement(
|
2332
2340
|
"svg",
|
2333
2341
|
{
|
2334
2342
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2336,7 +2344,7 @@ var Logos = {
|
|
2336
2344
|
viewBox: "0 0 765 765",
|
2337
2345
|
...props
|
2338
2346
|
},
|
2339
|
-
/* @__PURE__ */
|
2347
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
2340
2348
|
"path",
|
2341
2349
|
{
|
2342
2350
|
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",
|
@@ -2344,7 +2352,7 @@ var Logos = {
|
|
2344
2352
|
}
|
2345
2353
|
)
|
2346
2354
|
),
|
2347
|
-
sikka: (props) => /* @__PURE__ */
|
2355
|
+
sikka: (props) => /* @__PURE__ */ import_react17.default.createElement(
|
2348
2356
|
"svg",
|
2349
2357
|
{
|
2350
2358
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2354,11 +2362,11 @@ var Logos = {
|
|
2354
2362
|
fill: "currentColor",
|
2355
2363
|
...props
|
2356
2364
|
},
|
2357
|
-
/* @__PURE__ */
|
2358
|
-
/* @__PURE__ */
|
2359
|
-
/* @__PURE__ */
|
2365
|
+
/* @__PURE__ */ import_react17.default.createElement("defs", null, /* @__PURE__ */ import_react17.default.createElement("path", { id: "a", d: "M0 0h916.5v765H0z" })),
|
2366
|
+
/* @__PURE__ */ import_react17.default.createElement("clipPath", { id: "b" }, /* @__PURE__ */ import_react17.default.createElement("use", { xlinkHref: "#a", overflow: "visible" })),
|
2367
|
+
/* @__PURE__ */ import_react17.default.createElement("g", { clipPath: "url(#b)" }, /* @__PURE__ */ import_react17.default.createElement("defs", null, /* @__PURE__ */ import_react17.default.createElement("path", { id: "c", d: "M0 0h916.5v765H0z" })), /* @__PURE__ */ import_react17.default.createElement("clipPath", { id: "d" }, /* @__PURE__ */ import_react17.default.createElement("use", { xlinkHref: "#c", overflow: "visible" })), /* @__PURE__ */ import_react17.default.createElement("g", { clipPath: "url(#d)" }, /* @__PURE__ */ import_react17.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" })))
|
2360
2368
|
),
|
2361
|
-
mail: (props) => /* @__PURE__ */
|
2369
|
+
mail: (props) => /* @__PURE__ */ import_react17.default.createElement(
|
2362
2370
|
"svg",
|
2363
2371
|
{
|
2364
2372
|
stroke: "currentColor",
|
@@ -2370,10 +2378,10 @@ var Logos = {
|
|
2370
2378
|
xmlns: "http://www.w3.org/2000/svg",
|
2371
2379
|
...props
|
2372
2380
|
},
|
2373
|
-
/* @__PURE__ */
|
2374
|
-
/* @__PURE__ */
|
2381
|
+
/* @__PURE__ */ import_react17.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" }),
|
2382
|
+
/* @__PURE__ */ import_react17.default.createElement("polyline", { points: "22,6 12,13 2,6" })
|
2375
2383
|
),
|
2376
|
-
phone: (props) => /* @__PURE__ */
|
2384
|
+
phone: (props) => /* @__PURE__ */ import_react17.default.createElement(
|
2377
2385
|
"svg",
|
2378
2386
|
{
|
2379
2387
|
stroke: "currentColor",
|
@@ -2384,7 +2392,7 @@ var Logos = {
|
|
2384
2392
|
xmlns: "http://www.w3.org/2000/svg",
|
2385
2393
|
...props
|
2386
2394
|
},
|
2387
|
-
/* @__PURE__ */
|
2395
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
2388
2396
|
"path",
|
2389
2397
|
{
|
2390
2398
|
strokeLinecap: "round",
|
@@ -2393,14 +2401,14 @@ var Logos = {
|
|
2393
2401
|
}
|
2394
2402
|
)
|
2395
2403
|
),
|
2396
|
-
twitter: (props) => /* @__PURE__ */
|
2404
|
+
twitter: (props) => /* @__PURE__ */ import_react17.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react17.default.createElement(
|
2397
2405
|
"path",
|
2398
2406
|
{
|
2399
2407
|
fill: "currentColor",
|
2400
2408
|
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"
|
2401
2409
|
}
|
2402
2410
|
)),
|
2403
|
-
instagram: (props) => /* @__PURE__ */
|
2411
|
+
instagram: (props) => /* @__PURE__ */ import_react17.default.createElement(
|
2404
2412
|
"svg",
|
2405
2413
|
{
|
2406
2414
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2408,23 +2416,23 @@ var Logos = {
|
|
2408
2416
|
viewBox: "0 0 16 16",
|
2409
2417
|
...props
|
2410
2418
|
},
|
2411
|
-
/* @__PURE__ */
|
2419
|
+
/* @__PURE__ */ import_react17.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" })
|
2412
2420
|
),
|
2413
|
-
microsoft: (props) => /* @__PURE__ */
|
2421
|
+
microsoft: (props) => /* @__PURE__ */ import_react17.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...props }, /* @__PURE__ */ import_react17.default.createElement(
|
2414
2422
|
"path",
|
2415
2423
|
{
|
2416
2424
|
fill: "currentColor",
|
2417
2425
|
d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"
|
2418
2426
|
}
|
2419
2427
|
)),
|
2420
|
-
github: (props) => /* @__PURE__ */
|
2428
|
+
github: (props) => /* @__PURE__ */ import_react17.default.createElement(
|
2421
2429
|
"svg",
|
2422
2430
|
{
|
2423
2431
|
xmlns: "http://www.w3.org/2000/svg",
|
2424
2432
|
viewBox: "0 0 438.549 438.549",
|
2425
2433
|
...props
|
2426
2434
|
},
|
2427
|
-
/* @__PURE__ */
|
2435
|
+
/* @__PURE__ */ import_react17.default.createElement(
|
2428
2436
|
"path",
|
2429
2437
|
{
|
2430
2438
|
fill: "currentColor",
|
@@ -2432,77 +2440,77 @@ var Logos = {
|
|
2432
2440
|
}
|
2433
2441
|
)
|
2434
2442
|
),
|
2435
|
-
radix: (props) => /* @__PURE__ */
|
2443
|
+
radix: (props) => /* @__PURE__ */ import_react17.default.createElement("svg", { viewBox: "0 0 25 25", fill: "none", ...props }, /* @__PURE__ */ import_react17.default.createElement(
|
2436
2444
|
"path",
|
2437
2445
|
{
|
2438
2446
|
d: "M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",
|
2439
2447
|
fill: "currentcolor"
|
2440
2448
|
}
|
2441
|
-
), /* @__PURE__ */
|
2449
|
+
), /* @__PURE__ */ import_react17.default.createElement("path", { d: "M12 0H4V8H12V0Z", fill: "currentcolor" }), /* @__PURE__ */ import_react17.default.createElement(
|
2442
2450
|
"path",
|
2443
2451
|
{
|
2444
2452
|
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",
|
2445
2453
|
fill: "currentcolor"
|
2446
2454
|
}
|
2447
2455
|
)),
|
2448
|
-
aria: (props) => /* @__PURE__ */
|
2449
|
-
npm: (props) => /* @__PURE__ */
|
2456
|
+
aria: (props) => /* @__PURE__ */ import_react17.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", fill: "currentColor", ...props }, /* @__PURE__ */ import_react17.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" })),
|
2457
|
+
npm: (props) => /* @__PURE__ */ import_react17.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react17.default.createElement(
|
2450
2458
|
"path",
|
2451
2459
|
{
|
2452
2460
|
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",
|
2453
2461
|
fill: "currentColor"
|
2454
2462
|
}
|
2455
2463
|
)),
|
2456
|
-
yarn: (props) => /* @__PURE__ */
|
2464
|
+
yarn: (props) => /* @__PURE__ */ import_react17.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react17.default.createElement(
|
2457
2465
|
"path",
|
2458
2466
|
{
|
2459
2467
|
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",
|
2460
2468
|
fill: "currentColor"
|
2461
2469
|
}
|
2462
2470
|
)),
|
2463
|
-
pnpm: (props) => /* @__PURE__ */
|
2471
|
+
pnpm: (props) => /* @__PURE__ */ import_react17.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react17.default.createElement(
|
2464
2472
|
"path",
|
2465
2473
|
{
|
2466
2474
|
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",
|
2467
2475
|
fill: "currentColor"
|
2468
2476
|
}
|
2469
2477
|
)),
|
2470
|
-
react: (props) => /* @__PURE__ */
|
2478
|
+
react: (props) => /* @__PURE__ */ import_react17.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react17.default.createElement(
|
2471
2479
|
"path",
|
2472
2480
|
{
|
2473
2481
|
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",
|
2474
2482
|
fill: "currentColor"
|
2475
2483
|
}
|
2476
2484
|
)),
|
2477
|
-
tailwind: (props) => /* @__PURE__ */
|
2485
|
+
tailwind: (props) => /* @__PURE__ */ import_react17.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react17.default.createElement(
|
2478
2486
|
"path",
|
2479
2487
|
{
|
2480
2488
|
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",
|
2481
2489
|
fill: "currentColor"
|
2482
2490
|
}
|
2483
2491
|
)),
|
2484
|
-
google: (props) => /* @__PURE__ */
|
2492
|
+
google: (props) => /* @__PURE__ */ import_react17.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react17.default.createElement(
|
2485
2493
|
"path",
|
2486
2494
|
{
|
2487
2495
|
fill: "currentColor",
|
2488
2496
|
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"
|
2489
2497
|
}
|
2490
2498
|
)),
|
2491
|
-
apple: (props) => /* @__PURE__ */
|
2499
|
+
apple: (props) => /* @__PURE__ */ import_react17.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react17.default.createElement(
|
2492
2500
|
"path",
|
2493
2501
|
{
|
2494
2502
|
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",
|
2495
2503
|
fill: "currentColor"
|
2496
2504
|
}
|
2497
2505
|
)),
|
2498
|
-
paypal: (props) => /* @__PURE__ */
|
2506
|
+
paypal: (props) => /* @__PURE__ */ import_react17.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react17.default.createElement(
|
2499
2507
|
"path",
|
2500
2508
|
{
|
2501
2509
|
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",
|
2502
2510
|
fill: "currentColor"
|
2503
2511
|
}
|
2504
2512
|
)),
|
2505
|
-
spinner: (props) => /* @__PURE__ */
|
2513
|
+
spinner: (props) => /* @__PURE__ */ import_react17.default.createElement(
|
2506
2514
|
"svg",
|
2507
2515
|
{
|
2508
2516
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2516,9 +2524,9 @@ var Logos = {
|
|
2516
2524
|
strokeLinejoin: "round",
|
2517
2525
|
...props
|
2518
2526
|
},
|
2519
|
-
/* @__PURE__ */
|
2527
|
+
/* @__PURE__ */ import_react17.default.createElement("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
2520
2528
|
),
|
2521
|
-
whatsapp: (props) => /* @__PURE__ */
|
2529
|
+
whatsapp: (props) => /* @__PURE__ */ import_react17.default.createElement(
|
2522
2530
|
"svg",
|
2523
2531
|
{
|
2524
2532
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2526,18 +2534,18 @@ var Logos = {
|
|
2526
2534
|
fill: "currentColor",
|
2527
2535
|
...props
|
2528
2536
|
},
|
2529
|
-
/* @__PURE__ */
|
2537
|
+
/* @__PURE__ */ import_react17.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" })
|
2530
2538
|
)
|
2531
2539
|
};
|
2532
2540
|
|
2533
2541
|
// elements/sheet/Sheet.tsx
|
2534
|
-
var
|
2542
|
+
var React22 = __toESM(require("react"));
|
2535
2543
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
2536
2544
|
var import_class_variance_authority2 = require("class-variance-authority");
|
2537
2545
|
var Sheet = SheetPrimitive.Root;
|
2538
2546
|
var SheetTrigger = SheetPrimitive.Trigger;
|
2539
2547
|
var SheetPortal = SheetPrimitive.Portal;
|
2540
|
-
var SheetOverlay =
|
2548
|
+
var SheetOverlay = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement(
|
2541
2549
|
SheetPrimitive.Overlay,
|
2542
2550
|
{
|
2543
2551
|
className: cn(
|
@@ -2564,8 +2572,8 @@ var sheetVariants = (0, import_class_variance_authority2.cva)(
|
|
2564
2572
|
}
|
2565
2573
|
}
|
2566
2574
|
);
|
2567
|
-
var SheetContent =
|
2568
|
-
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */
|
2575
|
+
var SheetContent = React22.forwardRef(
|
2576
|
+
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React22.createElement(SheetPortal, null, /* @__PURE__ */ React22.createElement(SheetOverlay, null), /* @__PURE__ */ React22.createElement(
|
2569
2577
|
SheetPrimitive.Content,
|
2570
2578
|
{
|
2571
2579
|
ref,
|
@@ -2578,7 +2586,7 @@ var SheetContent = React20.forwardRef(
|
|
2578
2586
|
...props
|
2579
2587
|
},
|
2580
2588
|
children,
|
2581
|
-
!hideCloseButton && /* @__PURE__ */
|
2589
|
+
!hideCloseButton && /* @__PURE__ */ React22.createElement(
|
2582
2590
|
SheetPrimitive.Close,
|
2583
2591
|
{
|
2584
2592
|
className: cn(
|
@@ -2590,7 +2598,7 @@ var SheetContent = React20.forwardRef(
|
|
2590
2598
|
}
|
2591
2599
|
)
|
2592
2600
|
},
|
2593
|
-
/* @__PURE__ */
|
2601
|
+
/* @__PURE__ */ React22.createElement(
|
2594
2602
|
"svg",
|
2595
2603
|
{
|
2596
2604
|
"aria-label": "Close Icon",
|
@@ -2599,7 +2607,7 @@ var SheetContent = React20.forwardRef(
|
|
2599
2607
|
fill: "currentColor",
|
2600
2608
|
viewBox: "0 0 20 20"
|
2601
2609
|
},
|
2602
|
-
/* @__PURE__ */
|
2610
|
+
/* @__PURE__ */ React22.createElement(
|
2603
2611
|
"path",
|
2604
2612
|
{
|
2605
2613
|
fillRule: "evenodd",
|
@@ -2608,14 +2616,14 @@ var SheetContent = React20.forwardRef(
|
|
2608
2616
|
}
|
2609
2617
|
)
|
2610
2618
|
),
|
2611
|
-
/* @__PURE__ */
|
2619
|
+
/* @__PURE__ */ React22.createElement("span", { className: "hawa-sr-only" }, "Close")
|
2612
2620
|
)
|
2613
2621
|
))
|
2614
2622
|
);
|
2615
2623
|
var SheetHeader = ({
|
2616
2624
|
className,
|
2617
2625
|
...props
|
2618
|
-
}) => /* @__PURE__ */
|
2626
|
+
}) => /* @__PURE__ */ React22.createElement(
|
2619
2627
|
"div",
|
2620
2628
|
{
|
2621
2629
|
className: cn(
|
@@ -2628,7 +2636,7 @@ var SheetHeader = ({
|
|
2628
2636
|
var SheetFooter = ({
|
2629
2637
|
className,
|
2630
2638
|
...props
|
2631
|
-
}) => /* @__PURE__ */
|
2639
|
+
}) => /* @__PURE__ */ React22.createElement(
|
2632
2640
|
"div",
|
2633
2641
|
{
|
2634
2642
|
className: cn(
|
@@ -2638,7 +2646,7 @@ var SheetFooter = ({
|
|
2638
2646
|
...props
|
2639
2647
|
}
|
2640
2648
|
);
|
2641
|
-
var SheetTitle =
|
2649
|
+
var SheetTitle = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement(
|
2642
2650
|
SheetPrimitive.Title,
|
2643
2651
|
{
|
2644
2652
|
ref,
|
@@ -2649,7 +2657,7 @@ var SheetTitle = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
2649
2657
|
...props
|
2650
2658
|
}
|
2651
2659
|
));
|
2652
|
-
var SheetDescription =
|
2660
|
+
var SheetDescription = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement(
|
2653
2661
|
SheetPrimitive.Description,
|
2654
2662
|
{
|
2655
2663
|
ref,
|
@@ -2665,10 +2673,10 @@ SheetFooter.displayName = "SheetFooter";
|
|
2665
2673
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
2666
2674
|
|
2667
2675
|
// hooks/useBreakpoint.ts
|
2668
|
-
var
|
2676
|
+
var import_react18 = require("react");
|
2669
2677
|
var useBreakpoint = () => {
|
2670
|
-
const [breakpoint, setBreakpoint] = (0,
|
2671
|
-
(0,
|
2678
|
+
const [breakpoint, setBreakpoint] = (0, import_react18.useState)(null);
|
2679
|
+
(0, import_react18.useEffect)(() => {
|
2672
2680
|
if (typeof window !== "undefined") {
|
2673
2681
|
const resize = () => {
|
2674
2682
|
setBreakpoint(window.innerWidth);
|
@@ -2684,13 +2692,13 @@ var useBreakpoint = () => {
|
|
2684
2692
|
};
|
2685
2693
|
|
2686
2694
|
// layout/docsSidebar/DocsSidebar.tsx
|
2687
|
-
var
|
2695
|
+
var import_react19 = __toESM(require("react"));
|
2688
2696
|
var DocsSidebar = ({
|
2689
2697
|
currentPage: propCurrentPage,
|
2690
2698
|
pages,
|
2691
2699
|
direction
|
2692
2700
|
}) => {
|
2693
|
-
const [activePage, setActivePage] =
|
2701
|
+
const [activePage, setActivePage] = import_react19.default.useState(pages[0]);
|
2694
2702
|
const handlePageClick = (page, event) => {
|
2695
2703
|
event.preventDefault();
|
2696
2704
|
setTimeout(() => {
|
@@ -2712,7 +2720,7 @@ var DocsSidebar = ({
|
|
2712
2720
|
}
|
2713
2721
|
return pages[0];
|
2714
2722
|
};
|
2715
|
-
|
2723
|
+
import_react19.default.useEffect(() => {
|
2716
2724
|
const handleScroll = () => {
|
2717
2725
|
setActivePage(getCurrentSection());
|
2718
2726
|
};
|
@@ -2725,13 +2733,13 @@ var DocsSidebar = ({
|
|
2725
2733
|
rtl: "hawa-border-r-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200",
|
2726
2734
|
ltr: "hawa-border-l-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200"
|
2727
2735
|
};
|
2728
|
-
return /* @__PURE__ */
|
2736
|
+
return /* @__PURE__ */ import_react19.default.createElement(
|
2729
2737
|
"div",
|
2730
2738
|
{
|
2731
2739
|
className: "hawa-flex hawa-flex-col hawa-overflow-x-clip",
|
2732
2740
|
dir: direction
|
2733
2741
|
},
|
2734
|
-
pages.map((page, index) => /* @__PURE__ */
|
2742
|
+
pages.map((page, index) => /* @__PURE__ */ import_react19.default.createElement(
|
2735
2743
|
"div",
|
2736
2744
|
{
|
2737
2745
|
key: index,
|
@@ -2771,15 +2779,15 @@ var DocsLayout = ({
|
|
2771
2779
|
lg: closeDrawerWidth
|
2772
2780
|
}
|
2773
2781
|
};
|
2774
|
-
const ref = (0,
|
2782
|
+
const ref = (0, import_react20.useRef)(null);
|
2775
2783
|
const isRTL = direction === "rtl";
|
2776
2784
|
let size = useBreakpoint();
|
2777
2785
|
if (typeof window == "undefined") {
|
2778
2786
|
size = 1200;
|
2779
2787
|
}
|
2780
|
-
const [currentPage, setCurrentPage] = (0,
|
2781
|
-
const [openSideMenu, setOpenSideMenu] = (0,
|
2782
|
-
(0,
|
2788
|
+
const [currentPage, setCurrentPage] = (0, import_react20.useState)("Introduction");
|
2789
|
+
const [openSideMenu, setOpenSideMenu] = (0, import_react20.useState)(true);
|
2790
|
+
(0, import_react20.useEffect)(() => {
|
2783
2791
|
const handleClickOutside = (event) => {
|
2784
2792
|
if (ref.current && !ref.current.contains(event.target) && !openSideMenu) {
|
2785
2793
|
setOpenSideMenu(false);
|
@@ -2790,7 +2798,7 @@ var DocsLayout = ({
|
|
2790
2798
|
document.removeEventListener("click", handleClickOutside, true);
|
2791
2799
|
};
|
2792
2800
|
}, [openSideMenu]);
|
2793
|
-
(0,
|
2801
|
+
(0, import_react20.useEffect)(() => {
|
2794
2802
|
const handleResize = () => {
|
2795
2803
|
setOpenSideMenu(window.innerWidth > 600 ? true : false);
|
2796
2804
|
};
|
@@ -2800,19 +2808,19 @@ var DocsLayout = ({
|
|
2800
2808
|
window.removeEventListener("resize", handleResize);
|
2801
2809
|
};
|
2802
2810
|
}, [keepOpen]);
|
2803
|
-
const observerRef =
|
2811
|
+
const observerRef = import_react20.default.useRef(null);
|
2804
2812
|
const handleIntersection = (entries) => {
|
2805
2813
|
const entry = entries.find((entry2) => entry2.isIntersecting);
|
2806
2814
|
if (entry) {
|
2807
2815
|
setCurrentPage(entry.target.id);
|
2808
2816
|
}
|
2809
2817
|
};
|
2810
|
-
(0,
|
2818
|
+
(0, import_react20.useEffect)(() => {
|
2811
2819
|
observerRef.current = new IntersectionObserver(handleIntersection, {
|
2812
2820
|
threshold: 0.5
|
2813
2821
|
// Adjust threshold as needed to determine when a section is in view
|
2814
2822
|
});
|
2815
|
-
|
2823
|
+
import_react20.default.Children.forEach(props.children, (child) => {
|
2816
2824
|
if (child && child.props.id) {
|
2817
2825
|
const element = document.getElementById(child.props.id);
|
2818
2826
|
if (element && observerRef.current) {
|
@@ -2827,7 +2835,7 @@ var DocsLayout = ({
|
|
2827
2835
|
};
|
2828
2836
|
}, [props.children]);
|
2829
2837
|
let drawerSizeCondition = drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize];
|
2830
|
-
return /* @__PURE__ */
|
2838
|
+
return /* @__PURE__ */ import_react20.default.createElement("div", { className: "hawa-fixed" }, /* @__PURE__ */ import_react20.default.createElement(
|
2831
2839
|
"div",
|
2832
2840
|
{
|
2833
2841
|
className: cn(
|
@@ -2835,7 +2843,7 @@ var DocsLayout = ({
|
|
2835
2843
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
2836
2844
|
)
|
2837
2845
|
},
|
2838
|
-
size > 600 ? /* @__PURE__ */
|
2846
|
+
size > 600 ? /* @__PURE__ */ import_react20.default.createElement("div", { onClick: props.onLogoClick, dir: direction }, /* @__PURE__ */ import_react20.default.createElement(
|
2839
2847
|
"img",
|
2840
2848
|
{
|
2841
2849
|
className: cn(
|
@@ -2846,18 +2854,18 @@ var DocsLayout = ({
|
|
2846
2854
|
}
|
2847
2855
|
)) : (
|
2848
2856
|
// Mobile Drawer Menu Button
|
2849
|
-
/* @__PURE__ */
|
2857
|
+
/* @__PURE__ */ import_react20.default.createElement(
|
2850
2858
|
"div",
|
2851
2859
|
{
|
2852
2860
|
dir: direction,
|
2853
2861
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
2854
2862
|
},
|
2855
|
-
/* @__PURE__ */
|
2863
|
+
/* @__PURE__ */ import_react20.default.createElement(Sheet, null, /* @__PURE__ */ import_react20.default.createElement(SheetTrigger, null, " ", /* @__PURE__ */ import_react20.default.createElement(
|
2856
2864
|
"div",
|
2857
2865
|
{
|
2858
2866
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
2859
2867
|
},
|
2860
|
-
/* @__PURE__ */
|
2868
|
+
/* @__PURE__ */ import_react20.default.createElement(
|
2861
2869
|
"svg",
|
2862
2870
|
{
|
2863
2871
|
"aria-label": "Menu Icon",
|
@@ -2869,7 +2877,7 @@ var DocsLayout = ({
|
|
2869
2877
|
height: "1.6em",
|
2870
2878
|
width: "1.6em"
|
2871
2879
|
},
|
2872
|
-
/* @__PURE__ */
|
2880
|
+
/* @__PURE__ */ import_react20.default.createElement(
|
2873
2881
|
"path",
|
2874
2882
|
{
|
2875
2883
|
fillRule: "evenodd",
|
@@ -2878,17 +2886,17 @@ var DocsLayout = ({
|
|
2878
2886
|
}
|
2879
2887
|
)
|
2880
2888
|
)
|
2881
|
-
)), /* @__PURE__ */
|
2889
|
+
)), /* @__PURE__ */ import_react20.default.createElement(
|
2882
2890
|
SheetContent,
|
2883
2891
|
{
|
2884
2892
|
side: isRTL ? "right" : "left",
|
2885
2893
|
className: "hawa-pt-10"
|
2886
2894
|
},
|
2887
|
-
/* @__PURE__ */
|
2895
|
+
/* @__PURE__ */ import_react20.default.createElement(DocsSidebar, { direction, pages: pages || [] })
|
2888
2896
|
))
|
2889
2897
|
)
|
2890
2898
|
),
|
2891
|
-
/* @__PURE__ */
|
2899
|
+
/* @__PURE__ */ import_react20.default.createElement(
|
2892
2900
|
"div",
|
2893
2901
|
{
|
2894
2902
|
className: cn(
|
@@ -2896,9 +2904,9 @@ var DocsLayout = ({
|
|
2896
2904
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
2897
2905
|
)
|
2898
2906
|
},
|
2899
|
-
/* @__PURE__ */
|
2907
|
+
/* @__PURE__ */ import_react20.default.createElement(Button, { variant: "ghost", size: "smallIcon" }, /* @__PURE__ */ import_react20.default.createElement(Logos.github, { className: "hawa-icon" }))
|
2900
2908
|
)
|
2901
|
-
), /* @__PURE__ */
|
2909
|
+
), /* @__PURE__ */ import_react20.default.createElement(
|
2902
2910
|
"div",
|
2903
2911
|
{
|
2904
2912
|
className: cn(
|
@@ -2921,7 +2929,7 @@ var DocsLayout = ({
|
|
2921
2929
|
},
|
2922
2930
|
ref
|
2923
2931
|
},
|
2924
|
-
/* @__PURE__ */
|
2932
|
+
/* @__PURE__ */ import_react20.default.createElement(
|
2925
2933
|
DocsSidebar,
|
2926
2934
|
{
|
2927
2935
|
direction,
|
@@ -2929,7 +2937,7 @@ var DocsLayout = ({
|
|
2929
2937
|
currentPage
|
2930
2938
|
}
|
2931
2939
|
)
|
2932
|
-
), /* @__PURE__ */
|
2940
|
+
), /* @__PURE__ */ import_react20.default.createElement(
|
2933
2941
|
"div",
|
2934
2942
|
{
|
2935
2943
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all ",
|