@sikka/hawa 0.28.0 → 0.28.1-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocks/auth/index.d.mts +7 -1
- package/dist/blocks/auth/index.d.ts +7 -1
- package/dist/blocks/auth/index.js +185 -12
- package/dist/blocks/auth/index.mjs +185 -12
- package/dist/blocks/feedback/index.d.mts +4 -1
- package/dist/blocks/feedback/index.d.ts +4 -1
- package/dist/blocks/feedback/index.js +2 -5
- package/dist/blocks/feedback/index.mjs +2 -5
- package/dist/blocks/index.d.mts +9 -0
- package/dist/blocks/index.d.ts +9 -0
- package/dist/blocks/index.js +187 -17
- package/dist/blocks/index.mjs +41 -19
- package/dist/blocks/misc/index.d.mts +1 -1
- package/dist/blocks/misc/index.d.ts +1 -1
- package/dist/blocks/pricing/index.d.mts +1 -1
- package/dist/blocks/pricing/index.d.ts +1 -1
- package/dist/{chunk-Y3HUZNCH.mjs → chunk-GQF62TFQ.mjs} +1 -1
- package/dist/{chunk-TIQERSM3.mjs → chunk-N7FGYBM5.mjs} +1 -1
- package/dist/{chunk-R2NAPFAZ.mjs → chunk-ZOFKAJPJ.mjs} +148 -0
- package/dist/codeBlock/index.js +30 -35
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +30 -35
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/docsLayout/index.js +148 -0
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +148 -0
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +2 -0
- package/dist/elements/index.d.ts +2 -0
- package/dist/elements/index.js +178 -35
- package/dist/elements/index.mjs +33 -38
- package/dist/index.css +11 -15
- package/dist/index.d.mts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +217 -52
- package/dist/index.mjs +217 -52
- package/dist/layout/index.js +148 -0
- package/dist/layout/index.mjs +2 -2
- package/dist/logos/index.d.mts +2 -0
- package/dist/logos/index.d.ts +2 -0
- package/dist/logos/index.js +148 -0
- package/dist/logos/index.js.map +1 -1
- package/dist/logos/index.mjs +148 -0
- package/dist/logos/index.mjs.map +1 -1
- package/dist/{textTypes-ah2JJr8v.d.ts → textTypes-DAgkNov8.d.mts} +2 -0
- package/dist/{textTypes-ah2JJr8v.d.mts → textTypes-DAgkNov8.d.ts} +2 -0
- package/dist/types/index.d.mts +2 -0
- package/dist/types/index.d.ts +2 -0
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
@@ -1003,6 +1003,154 @@ var AccordionRoot = AccordionPrimitive5.Root;
|
|
1003
1003
|
// elements/logos/Logos.tsx
|
1004
1004
|
import React11 from "react";
|
1005
1005
|
var Logos = {
|
1006
|
+
metamask: (props) => /* @__PURE__ */ React11.createElement(
|
1007
|
+
"svg",
|
1008
|
+
{
|
1009
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1010
|
+
xmlSpace: "preserve",
|
1011
|
+
id: "Layer_1",
|
1012
|
+
x: 0,
|
1013
|
+
y: 0,
|
1014
|
+
viewBox: "0 0 318.6 318.6",
|
1015
|
+
...props
|
1016
|
+
},
|
1017
|
+
/* @__PURE__ */ React11.createElement("style", null, ".st1,.st6{fill:#e4761b;stroke:#e4761b;stroke-linecap:round;stroke-linejoin:round}.st6{fill:#f6851b;stroke:#f6851b}"),
|
1018
|
+
/* @__PURE__ */ React11.createElement(
|
1019
|
+
"path",
|
1020
|
+
{
|
1021
|
+
fill: "#e2761b",
|
1022
|
+
stroke: "#e2761b",
|
1023
|
+
strokeLinecap: "round",
|
1024
|
+
strokeLinejoin: "round",
|
1025
|
+
d: "m274.1 35.5-99.5 73.9L193 65.8z"
|
1026
|
+
}
|
1027
|
+
),
|
1028
|
+
/* @__PURE__ */ React11.createElement(
|
1029
|
+
"path",
|
1030
|
+
{
|
1031
|
+
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",
|
1032
|
+
className: "st1"
|
1033
|
+
}
|
1034
|
+
),
|
1035
|
+
/* @__PURE__ */ React11.createElement(
|
1036
|
+
"path",
|
1037
|
+
{
|
1038
|
+
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",
|
1039
|
+
className: "st1"
|
1040
|
+
}
|
1041
|
+
),
|
1042
|
+
/* @__PURE__ */ React11.createElement(
|
1043
|
+
"path",
|
1044
|
+
{
|
1045
|
+
fill: "#d7c1b3",
|
1046
|
+
stroke: "#d7c1b3",
|
1047
|
+
strokeLinecap: "round",
|
1048
|
+
strokeLinejoin: "round",
|
1049
|
+
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"
|
1050
|
+
}
|
1051
|
+
),
|
1052
|
+
/* @__PURE__ */ React11.createElement(
|
1053
|
+
"path",
|
1054
|
+
{
|
1055
|
+
fill: "#233447",
|
1056
|
+
stroke: "#233447",
|
1057
|
+
strokeLinecap: "round",
|
1058
|
+
strokeLinejoin: "round",
|
1059
|
+
d: "m138.8 193.5-28.2-8.3 19.9-9.1zm40.9 0 8.3-17.4 20 9.1z"
|
1060
|
+
}
|
1061
|
+
),
|
1062
|
+
/* @__PURE__ */ React11.createElement(
|
1063
|
+
"path",
|
1064
|
+
{
|
1065
|
+
fill: "#cd6116",
|
1066
|
+
stroke: "#cd6116",
|
1067
|
+
strokeLinecap: "round",
|
1068
|
+
strokeLinejoin: "round",
|
1069
|
+
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"
|
1070
|
+
}
|
1071
|
+
),
|
1072
|
+
/* @__PURE__ */ React11.createElement(
|
1073
|
+
"path",
|
1074
|
+
{
|
1075
|
+
fill: "#e4751f",
|
1076
|
+
stroke: "#e4751f",
|
1077
|
+
strokeLinecap: "round",
|
1078
|
+
strokeLinejoin: "round",
|
1079
|
+
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"
|
1080
|
+
}
|
1081
|
+
),
|
1082
|
+
/* @__PURE__ */ React11.createElement(
|
1083
|
+
"path",
|
1084
|
+
{
|
1085
|
+
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",
|
1086
|
+
className: "st6"
|
1087
|
+
}
|
1088
|
+
),
|
1089
|
+
/* @__PURE__ */ React11.createElement(
|
1090
|
+
"path",
|
1091
|
+
{
|
1092
|
+
fill: "#c0ad9e",
|
1093
|
+
stroke: "#c0ad9e",
|
1094
|
+
strokeLinecap: "round",
|
1095
|
+
strokeLinejoin: "round",
|
1096
|
+
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"
|
1097
|
+
}
|
1098
|
+
),
|
1099
|
+
/* @__PURE__ */ React11.createElement(
|
1100
|
+
"path",
|
1101
|
+
{
|
1102
|
+
fill: "#161616",
|
1103
|
+
stroke: "#161616",
|
1104
|
+
strokeLinecap: "round",
|
1105
|
+
strokeLinejoin: "round",
|
1106
|
+
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"
|
1107
|
+
}
|
1108
|
+
),
|
1109
|
+
/* @__PURE__ */ React11.createElement(
|
1110
|
+
"path",
|
1111
|
+
{
|
1112
|
+
fill: "#763d16",
|
1113
|
+
stroke: "#763d16",
|
1114
|
+
strokeLinecap: "round",
|
1115
|
+
strokeLinejoin: "round",
|
1116
|
+
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"
|
1117
|
+
}
|
1118
|
+
),
|
1119
|
+
/* @__PURE__ */ React11.createElement(
|
1120
|
+
"path",
|
1121
|
+
{
|
1122
|
+
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",
|
1123
|
+
className: "st6"
|
1124
|
+
}
|
1125
|
+
)
|
1126
|
+
),
|
1127
|
+
nafath: (props) => /* @__PURE__ */ React11.createElement(
|
1128
|
+
"svg",
|
1129
|
+
{
|
1130
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1131
|
+
xmlSpace: "preserve",
|
1132
|
+
id: "Layer_1",
|
1133
|
+
x: 0,
|
1134
|
+
y: 0,
|
1135
|
+
viewBox: "22.5 44.5 535.6 230.34",
|
1136
|
+
...props
|
1137
|
+
},
|
1138
|
+
/* @__PURE__ */ React11.createElement("style", null, ".st0{fill:#0a9a8f}"),
|
1139
|
+
/* @__PURE__ */ React11.createElement(
|
1140
|
+
"path",
|
1141
|
+
{
|
1142
|
+
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",
|
1143
|
+
className: "st0"
|
1144
|
+
}
|
1145
|
+
),
|
1146
|
+
/* @__PURE__ */ React11.createElement(
|
1147
|
+
"path",
|
1148
|
+
{
|
1149
|
+
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",
|
1150
|
+
className: "st0"
|
1151
|
+
}
|
1152
|
+
)
|
1153
|
+
),
|
1006
1154
|
hawa: (props) => /* @__PURE__ */ React11.createElement(
|
1007
1155
|
"svg",
|
1008
1156
|
{
|
@@ -7043,7 +7191,7 @@ var CodeBlock = ({
|
|
7043
7191
|
classNames,
|
7044
7192
|
language = "javascript",
|
7045
7193
|
// default to JavaScript if no language is provided
|
7046
|
-
wrapText =
|
7194
|
+
wrapText = true,
|
7047
7195
|
width = "full",
|
7048
7196
|
...props
|
7049
7197
|
}) => {
|
@@ -7065,39 +7213,6 @@ var CodeBlock = ({
|
|
7065
7213
|
classNames == null ? void 0 : classNames.root
|
7066
7214
|
)
|
7067
7215
|
},
|
7068
|
-
/* @__PURE__ */ React54.createElement(
|
7069
|
-
"div",
|
7070
|
-
{
|
7071
|
-
className: cn(
|
7072
|
-
"hawa-flex hawa-absolute hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-z-50 hawa-right-3.5",
|
7073
|
-
{
|
7074
|
-
"hawa-top-3.5": !tabs && !fileName,
|
7075
|
-
"hawa-top-[50px]": tabs && !fileName,
|
7076
|
-
"hawa-top-11": !tabs && fileName,
|
7077
|
-
"hawa-top-[80px]": tabs && fileName
|
7078
|
-
}
|
7079
|
-
)
|
7080
|
-
},
|
7081
|
-
/* @__PURE__ */ React54.createElement(
|
7082
|
-
Tooltip,
|
7083
|
-
{
|
7084
|
-
open: clipboard.copied,
|
7085
|
-
side: "left",
|
7086
|
-
content: /* @__PURE__ */ React54.createElement("div", null, "Copied!"),
|
7087
|
-
triggerProps: { asChild: true }
|
7088
|
-
},
|
7089
|
-
/* @__PURE__ */ React54.createElement(
|
7090
|
-
Button,
|
7091
|
-
{
|
7092
|
-
size: "smallIcon",
|
7093
|
-
onClick: () => clipboard.copy(tabs ? tabs[selectedTab].code : code),
|
7094
|
-
variant: "outline",
|
7095
|
-
className: "hawa-text-gray-200 hawa-opacity-50 "
|
7096
|
-
},
|
7097
|
-
/* @__PURE__ */ React54.createElement(CopyIcon, null)
|
7098
|
-
)
|
7099
|
-
)
|
7100
|
-
),
|
7101
7216
|
fileName && /* @__PURE__ */ React54.createElement(
|
7102
7217
|
"div",
|
7103
7218
|
{
|
@@ -7157,6 +7272,33 @@ var CodeBlock = ({
|
|
7157
7272
|
"hawa-overflow-y-auto"
|
7158
7273
|
)
|
7159
7274
|
},
|
7275
|
+
/* @__PURE__ */ React54.createElement(
|
7276
|
+
"div",
|
7277
|
+
{
|
7278
|
+
className: cn(
|
7279
|
+
"hawa-flex hawa-absolute hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-z-50 hawa-right-3 hawa-top-3"
|
7280
|
+
)
|
7281
|
+
},
|
7282
|
+
/* @__PURE__ */ React54.createElement(
|
7283
|
+
Tooltip,
|
7284
|
+
{
|
7285
|
+
open: clipboard.copied,
|
7286
|
+
side: "left",
|
7287
|
+
content: /* @__PURE__ */ React54.createElement("div", null, "Copied!"),
|
7288
|
+
triggerProps: { asChild: true }
|
7289
|
+
},
|
7290
|
+
/* @__PURE__ */ React54.createElement(
|
7291
|
+
Button,
|
7292
|
+
{
|
7293
|
+
size: "smallIcon",
|
7294
|
+
onClick: () => clipboard.copy(tabs ? tabs[selectedTab].code : code),
|
7295
|
+
variant: "outline",
|
7296
|
+
className: "hawa-text-gray-200 hawa-opacity-50 dark:hawa-border-gray-200 dark:hover:hawa-border-gray-400"
|
7297
|
+
},
|
7298
|
+
/* @__PURE__ */ React54.createElement(CopyIcon, null)
|
7299
|
+
)
|
7300
|
+
)
|
7301
|
+
),
|
7160
7302
|
/* @__PURE__ */ React54.createElement(
|
7161
7303
|
Highlight,
|
7162
7304
|
{
|
@@ -7168,7 +7310,8 @@ var CodeBlock = ({
|
|
7168
7310
|
"pre",
|
7169
7311
|
{
|
7170
7312
|
className: cn(
|
7171
|
-
|
7313
|
+
// !hawa-pe-12
|
7314
|
+
"hawa-min-h-[37.75px] hawa-w-full hawa-p-4 hawa-font-mono hawa-text-foreground",
|
7172
7315
|
classNames == null ? void 0 : classNames.code,
|
7173
7316
|
wrapText && "hawa-text-wrap"
|
7174
7317
|
)
|
@@ -9040,8 +9183,28 @@ var DocsLayout = ({
|
|
9040
9183
|
// blocks/auth/AuthButtons.tsx
|
9041
9184
|
import React72 from "react";
|
9042
9185
|
var AuthButtons = (props) => {
|
9043
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
9044
|
-
return /* @__PURE__ */ React72.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, props.
|
9186
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
9187
|
+
return /* @__PURE__ */ React72.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, props.viaMetamask && /* @__PURE__ */ React72.createElement(
|
9188
|
+
Button,
|
9189
|
+
{
|
9190
|
+
disabled: props.isMetamaskLoading,
|
9191
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
9192
|
+
variant: "outline",
|
9193
|
+
onClick: props.handleMetamask
|
9194
|
+
},
|
9195
|
+
props.isMetamaskLoading ? /* @__PURE__ */ React72.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React72.createElement(Logos.metamask, { className: "hawa-h-6" }),
|
9196
|
+
(_b = (_a = props.texts) == null ? void 0 : _a.continueWithMetamask) != null ? _b : "Connect Metamask"
|
9197
|
+
), props.viaNafath && /* @__PURE__ */ React72.createElement(
|
9198
|
+
Button,
|
9199
|
+
{
|
9200
|
+
disabled: props.isNafathLoading,
|
9201
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
9202
|
+
variant: "outline",
|
9203
|
+
onClick: props.handleNafath
|
9204
|
+
},
|
9205
|
+
props.isNafathLoading ? /* @__PURE__ */ React72.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React72.createElement(Logos.nafath, { className: "hawa-h-4" }),
|
9206
|
+
(_d = (_c = props.texts) == null ? void 0 : _c.continueWithNafath) != null ? _d : "Continue With Nafath"
|
9207
|
+
), props.viaGoogle && /* @__PURE__ */ React72.createElement(
|
9045
9208
|
Button,
|
9046
9209
|
{
|
9047
9210
|
disabled: props.isGoogleLoading,
|
@@ -9050,7 +9213,7 @@ var AuthButtons = (props) => {
|
|
9050
9213
|
onClick: props.handleGoogle
|
9051
9214
|
},
|
9052
9215
|
props.isGoogleLoading ? /* @__PURE__ */ React72.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React72.createElement(Logos.google, { className: "hawa-icon" }),
|
9053
|
-
(
|
9216
|
+
(_f = (_e = props.texts) == null ? void 0 : _e.continueWithGoogle) != null ? _f : "Continue With Google"
|
9054
9217
|
), props.viaGithub && /* @__PURE__ */ React72.createElement(
|
9055
9218
|
Button,
|
9056
9219
|
{
|
@@ -9060,7 +9223,7 @@ var AuthButtons = (props) => {
|
|
9060
9223
|
onClick: props.handleGithub
|
9061
9224
|
},
|
9062
9225
|
props.isGithubLoading ? /* @__PURE__ */ React72.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React72.createElement(Logos.github, { className: "hawa-icon" }),
|
9063
|
-
(
|
9226
|
+
(_h = (_g = props.texts) == null ? void 0 : _g.continueWithGithub) != null ? _h : "Continue With Github"
|
9064
9227
|
), props.viaTwitter && /* @__PURE__ */ React72.createElement(
|
9065
9228
|
Button,
|
9066
9229
|
{
|
@@ -9070,7 +9233,7 @@ var AuthButtons = (props) => {
|
|
9070
9233
|
onClick: props.handleTwitter
|
9071
9234
|
},
|
9072
9235
|
props.isTwitterLoading ? /* @__PURE__ */ React72.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React72.createElement(Logos.twitter, { className: "hawa-icon" }),
|
9073
|
-
(
|
9236
|
+
(_j = (_i = props.texts) == null ? void 0 : _i.continueWithTwitter) != null ? _j : "Continue With Twitter"
|
9074
9237
|
), props.viaApple && /* @__PURE__ */ React72.createElement(
|
9075
9238
|
Button,
|
9076
9239
|
{
|
@@ -9080,7 +9243,7 @@ var AuthButtons = (props) => {
|
|
9080
9243
|
onClick: props.handleApple
|
9081
9244
|
},
|
9082
9245
|
props.isAppleLoading ? /* @__PURE__ */ React72.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React72.createElement(Logos.apple, { className: "hawa-icon" }),
|
9083
|
-
(
|
9246
|
+
(_l = (_k = props.texts) == null ? void 0 : _k.continueWithApple) != null ? _l : "Continue With Apple"
|
9084
9247
|
), props.viaMicrosoft && /* @__PURE__ */ React72.createElement(
|
9085
9248
|
Button,
|
9086
9249
|
{
|
@@ -9090,7 +9253,7 @@ var AuthButtons = (props) => {
|
|
9090
9253
|
onClick: props.handleMicrosoft
|
9091
9254
|
},
|
9092
9255
|
props.isMicrosoftLoading ? /* @__PURE__ */ React72.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React72.createElement(Logos.microsoft, { className: "hawa-icon" }),
|
9093
|
-
(
|
9256
|
+
(_n = (_m = props.texts) == null ? void 0 : _m.continueWithMicrosoft) != null ? _n : "Continue With Microsoft"
|
9094
9257
|
), props.viaEmail && /* @__PURE__ */ React72.createElement(
|
9095
9258
|
Button,
|
9096
9259
|
{
|
@@ -9100,7 +9263,7 @@ var AuthButtons = (props) => {
|
|
9100
9263
|
onClick: props.handleEmail
|
9101
9264
|
},
|
9102
9265
|
props.isEmailLoading ? /* @__PURE__ */ React72.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React72.createElement(Logos.mail, { className: "hawa-icon" }),
|
9103
|
-
(
|
9266
|
+
(_p = (_o = props.texts) == null ? void 0 : _o.continueWithEmail) != null ? _p : "Continue With Email"
|
9104
9267
|
), props.viaPhone && /* @__PURE__ */ React72.createElement(
|
9105
9268
|
Button,
|
9106
9269
|
{
|
@@ -9110,7 +9273,7 @@ var AuthButtons = (props) => {
|
|
9110
9273
|
onClick: props.handlePhone
|
9111
9274
|
},
|
9112
9275
|
props.isPhoneLoading ? /* @__PURE__ */ React72.createElement(Loading, { size: "button" }) : /* @__PURE__ */ React72.createElement(Logos.phone, { className: "hawa-icon" }),
|
9113
|
-
(
|
9276
|
+
(_r = (_q = props.texts) == null ? void 0 : _q.continueWithPhone) != null ? _r : "Continue With Phone"
|
9114
9277
|
));
|
9115
9278
|
};
|
9116
9279
|
|
@@ -9720,10 +9883,15 @@ var RegisterForm = ({
|
|
9720
9883
|
id: "terms_accepted",
|
9721
9884
|
helperText: (_b2 = (_a2 = formState.errors.terms_accepted) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString(),
|
9722
9885
|
onCheckedChange: (e) => field.onChange(e),
|
9723
|
-
label: /* @__PURE__ */ React74.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5
|
9724
|
-
"
|
9886
|
+
label: /* @__PURE__ */ React74.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5 hawa-whitespace-nowrap hawa-flex-wrap" }, (texts == null ? void 0 : texts.iAcceptText) || "I accept the", " ", /* @__PURE__ */ React74.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React74.createElement(
|
9887
|
+
"span",
|
9725
9888
|
{
|
9726
|
-
onClick:
|
9889
|
+
onClick: (e) => {
|
9890
|
+
e.preventDefault();
|
9891
|
+
if (props.onRouteToTOS) {
|
9892
|
+
props.onRouteToTOS();
|
9893
|
+
}
|
9894
|
+
},
|
9727
9895
|
className: "clickable-link"
|
9728
9896
|
},
|
9729
9897
|
(texts == null ? void 0 : texts.termsText) || "Terms of Service"
|
@@ -10503,10 +10671,7 @@ var FeedbackForm = (props) => {
|
|
10503
10671
|
});
|
10504
10672
|
const { handleSubmit, control, formState, reset } = useForm7({
|
10505
10673
|
resolver: zodResolver7(formSchema),
|
10506
|
-
defaultValues: {
|
10507
|
-
requestType: "",
|
10508
|
-
description: ""
|
10509
|
-
}
|
10674
|
+
defaultValues: { requestType: "", description: "" }
|
10510
10675
|
});
|
10511
10676
|
return /* @__PURE__ */ React83.createElement(
|
10512
10677
|
Card,
|
@@ -10516,7 +10681,7 @@ var FeedbackForm = (props) => {
|
|
10516
10681
|
),
|
10517
10682
|
style: props.cardless ? { boxShadow: "none" } : void 0
|
10518
10683
|
},
|
10519
|
-
/* @__PURE__ */ React83.createElement(CardContent, { headless: true, className: props.cardless ? "!hawa-p-0" : "" }, /* @__PURE__ */ React83.createElement(
|
10684
|
+
/* @__PURE__ */ React83.createElement(CardContent, { headless: true, className: props.cardless ? "!hawa-p-0" : "" }, props.sent ? /* @__PURE__ */ React83.createElement("div", { className: "hawa-text-center hawa-min-h-[200px] hawa-flex hawa-flex-col hawa-justify-center" }, /* @__PURE__ */ React83.createElement("div", { className: "hawa-font-bold hawa-text-lg" }, props.texts.sentTitle || "Form submitted"), /* @__PURE__ */ React83.createElement("div", { className: "hawa-text-md" }, props.texts.sentSubtitle || "Thank you for your submission")) : /* @__PURE__ */ React83.createElement(
|
10520
10685
|
"form",
|
10521
10686
|
{
|
10522
10687
|
noValidate: true,
|
package/dist/layout/index.js
CHANGED
@@ -2048,6 +2048,154 @@ var import_react14 = __toESM(require("react"));
|
|
2048
2048
|
// elements/logos/Logos.tsx
|
2049
2049
|
var import_react11 = __toESM(require("react"));
|
2050
2050
|
var Logos = {
|
2051
|
+
metamask: (props) => /* @__PURE__ */ import_react11.default.createElement(
|
2052
|
+
"svg",
|
2053
|
+
{
|
2054
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2055
|
+
xmlSpace: "preserve",
|
2056
|
+
id: "Layer_1",
|
2057
|
+
x: 0,
|
2058
|
+
y: 0,
|
2059
|
+
viewBox: "0 0 318.6 318.6",
|
2060
|
+
...props
|
2061
|
+
},
|
2062
|
+
/* @__PURE__ */ import_react11.default.createElement("style", null, ".st1,.st6{fill:#e4761b;stroke:#e4761b;stroke-linecap:round;stroke-linejoin:round}.st6{fill:#f6851b;stroke:#f6851b}"),
|
2063
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
2064
|
+
"path",
|
2065
|
+
{
|
2066
|
+
fill: "#e2761b",
|
2067
|
+
stroke: "#e2761b",
|
2068
|
+
strokeLinecap: "round",
|
2069
|
+
strokeLinejoin: "round",
|
2070
|
+
d: "m274.1 35.5-99.5 73.9L193 65.8z"
|
2071
|
+
}
|
2072
|
+
),
|
2073
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
2074
|
+
"path",
|
2075
|
+
{
|
2076
|
+
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",
|
2077
|
+
className: "st1"
|
2078
|
+
}
|
2079
|
+
),
|
2080
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
2081
|
+
"path",
|
2082
|
+
{
|
2083
|
+
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",
|
2084
|
+
className: "st1"
|
2085
|
+
}
|
2086
|
+
),
|
2087
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
2088
|
+
"path",
|
2089
|
+
{
|
2090
|
+
fill: "#d7c1b3",
|
2091
|
+
stroke: "#d7c1b3",
|
2092
|
+
strokeLinecap: "round",
|
2093
|
+
strokeLinejoin: "round",
|
2094
|
+
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"
|
2095
|
+
}
|
2096
|
+
),
|
2097
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
2098
|
+
"path",
|
2099
|
+
{
|
2100
|
+
fill: "#233447",
|
2101
|
+
stroke: "#233447",
|
2102
|
+
strokeLinecap: "round",
|
2103
|
+
strokeLinejoin: "round",
|
2104
|
+
d: "m138.8 193.5-28.2-8.3 19.9-9.1zm40.9 0 8.3-17.4 20 9.1z"
|
2105
|
+
}
|
2106
|
+
),
|
2107
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
2108
|
+
"path",
|
2109
|
+
{
|
2110
|
+
fill: "#cd6116",
|
2111
|
+
stroke: "#cd6116",
|
2112
|
+
strokeLinecap: "round",
|
2113
|
+
strokeLinejoin: "round",
|
2114
|
+
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"
|
2115
|
+
}
|
2116
|
+
),
|
2117
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
2118
|
+
"path",
|
2119
|
+
{
|
2120
|
+
fill: "#e4751f",
|
2121
|
+
stroke: "#e4751f",
|
2122
|
+
strokeLinecap: "round",
|
2123
|
+
strokeLinejoin: "round",
|
2124
|
+
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"
|
2125
|
+
}
|
2126
|
+
),
|
2127
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
2128
|
+
"path",
|
2129
|
+
{
|
2130
|
+
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",
|
2131
|
+
className: "st6"
|
2132
|
+
}
|
2133
|
+
),
|
2134
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
2135
|
+
"path",
|
2136
|
+
{
|
2137
|
+
fill: "#c0ad9e",
|
2138
|
+
stroke: "#c0ad9e",
|
2139
|
+
strokeLinecap: "round",
|
2140
|
+
strokeLinejoin: "round",
|
2141
|
+
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"
|
2142
|
+
}
|
2143
|
+
),
|
2144
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
2145
|
+
"path",
|
2146
|
+
{
|
2147
|
+
fill: "#161616",
|
2148
|
+
stroke: "#161616",
|
2149
|
+
strokeLinecap: "round",
|
2150
|
+
strokeLinejoin: "round",
|
2151
|
+
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"
|
2152
|
+
}
|
2153
|
+
),
|
2154
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
2155
|
+
"path",
|
2156
|
+
{
|
2157
|
+
fill: "#763d16",
|
2158
|
+
stroke: "#763d16",
|
2159
|
+
strokeLinecap: "round",
|
2160
|
+
strokeLinejoin: "round",
|
2161
|
+
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"
|
2162
|
+
}
|
2163
|
+
),
|
2164
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
2165
|
+
"path",
|
2166
|
+
{
|
2167
|
+
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",
|
2168
|
+
className: "st6"
|
2169
|
+
}
|
2170
|
+
)
|
2171
|
+
),
|
2172
|
+
nafath: (props) => /* @__PURE__ */ import_react11.default.createElement(
|
2173
|
+
"svg",
|
2174
|
+
{
|
2175
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2176
|
+
xmlSpace: "preserve",
|
2177
|
+
id: "Layer_1",
|
2178
|
+
x: 0,
|
2179
|
+
y: 0,
|
2180
|
+
viewBox: "22.5 44.5 535.6 230.34",
|
2181
|
+
...props
|
2182
|
+
},
|
2183
|
+
/* @__PURE__ */ import_react11.default.createElement("style", null, ".st0{fill:#0a9a8f}"),
|
2184
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
2185
|
+
"path",
|
2186
|
+
{
|
2187
|
+
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",
|
2188
|
+
className: "st0"
|
2189
|
+
}
|
2190
|
+
),
|
2191
|
+
/* @__PURE__ */ import_react11.default.createElement(
|
2192
|
+
"path",
|
2193
|
+
{
|
2194
|
+
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",
|
2195
|
+
className: "st0"
|
2196
|
+
}
|
2197
|
+
)
|
2198
|
+
),
|
2051
2199
|
hawa: (props) => /* @__PURE__ */ import_react11.default.createElement(
|
2052
2200
|
"svg",
|
2053
2201
|
{
|
package/dist/layout/index.mjs
CHANGED
@@ -6,7 +6,7 @@ import {
|
|
6
6
|
Sheet,
|
7
7
|
SheetContent,
|
8
8
|
SheetTrigger
|
9
|
-
} from "../chunk-
|
9
|
+
} from "../chunk-N7FGYBM5.mjs";
|
10
10
|
import {
|
11
11
|
Button,
|
12
12
|
Card,
|
@@ -18,7 +18,7 @@ import {
|
|
18
18
|
Skeleton,
|
19
19
|
Tooltip,
|
20
20
|
cn
|
21
|
-
} from "../chunk-
|
21
|
+
} from "../chunk-ZOFKAJPJ.mjs";
|
22
22
|
import "../chunk-4OOSUQZG.mjs";
|
23
23
|
|
24
24
|
// layout/stats/Stats.tsx
|
package/dist/logos/index.d.mts
CHANGED
@@ -2,6 +2,8 @@ import React__default from 'react';
|
|
2
2
|
|
3
3
|
type IconProps = React__default.HTMLAttributes<SVGElement>;
|
4
4
|
declare const Logos: {
|
5
|
+
metamask: (props: IconProps) => React__default.JSX.Element;
|
6
|
+
nafath: (props: IconProps) => React__default.JSX.Element;
|
5
7
|
hawa: (props: IconProps) => React__default.JSX.Element;
|
6
8
|
sikka: (props: IconProps) => React__default.JSX.Element;
|
7
9
|
mail: (props: IconProps) => React__default.JSX.Element;
|
package/dist/logos/index.d.ts
CHANGED
@@ -2,6 +2,8 @@ import React__default from 'react';
|
|
2
2
|
|
3
3
|
type IconProps = React__default.HTMLAttributes<SVGElement>;
|
4
4
|
declare const Logos: {
|
5
|
+
metamask: (props: IconProps) => React__default.JSX.Element;
|
6
|
+
nafath: (props: IconProps) => React__default.JSX.Element;
|
5
7
|
hawa: (props: IconProps) => React__default.JSX.Element;
|
6
8
|
sikka: (props: IconProps) => React__default.JSX.Element;
|
7
9
|
mail: (props: IconProps) => React__default.JSX.Element;
|