@sikka/hawa 0.28.0-next → 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.
Files changed (49) hide show
  1. package/dist/blocks/auth/index.d.mts +7 -1
  2. package/dist/blocks/auth/index.d.ts +7 -1
  3. package/dist/blocks/auth/index.js +185 -12
  4. package/dist/blocks/auth/index.mjs +185 -12
  5. package/dist/blocks/feedback/index.d.mts +4 -1
  6. package/dist/blocks/feedback/index.d.ts +4 -1
  7. package/dist/blocks/feedback/index.js +2 -5
  8. package/dist/blocks/feedback/index.mjs +2 -5
  9. package/dist/blocks/index.d.mts +9 -0
  10. package/dist/blocks/index.d.ts +9 -0
  11. package/dist/blocks/index.js +187 -17
  12. package/dist/blocks/index.mjs +41 -19
  13. package/dist/blocks/misc/index.d.mts +1 -1
  14. package/dist/blocks/misc/index.d.ts +1 -1
  15. package/dist/blocks/pricing/index.d.mts +1 -1
  16. package/dist/blocks/pricing/index.d.ts +1 -1
  17. package/dist/{chunk-Y3HUZNCH.mjs → chunk-GQF62TFQ.mjs} +1 -1
  18. package/dist/{chunk-TIQERSM3.mjs → chunk-N7FGYBM5.mjs} +1 -1
  19. package/dist/{chunk-R2NAPFAZ.mjs → chunk-ZOFKAJPJ.mjs} +148 -0
  20. package/dist/codeBlock/index.js +30 -35
  21. package/dist/codeBlock/index.js.map +1 -1
  22. package/dist/codeBlock/index.mjs +30 -35
  23. package/dist/codeBlock/index.mjs.map +1 -1
  24. package/dist/docsLayout/index.js +148 -0
  25. package/dist/docsLayout/index.js.map +1 -1
  26. package/dist/docsLayout/index.mjs +148 -0
  27. package/dist/docsLayout/index.mjs.map +1 -1
  28. package/dist/elements/index.d.mts +2 -0
  29. package/dist/elements/index.d.ts +2 -0
  30. package/dist/elements/index.js +178 -35
  31. package/dist/elements/index.mjs +33 -38
  32. package/dist/index.css +11 -15
  33. package/dist/index.d.mts +13 -0
  34. package/dist/index.d.ts +13 -0
  35. package/dist/index.js +217 -52
  36. package/dist/index.mjs +217 -52
  37. package/dist/layout/index.js +148 -0
  38. package/dist/layout/index.mjs +2 -2
  39. package/dist/logos/index.d.mts +2 -0
  40. package/dist/logos/index.d.ts +2 -0
  41. package/dist/logos/index.js +148 -0
  42. package/dist/logos/index.js.map +1 -1
  43. package/dist/logos/index.mjs +148 -0
  44. package/dist/logos/index.mjs.map +1 -1
  45. package/dist/{textTypes-ah2JJr8v.d.ts → textTypes-DAgkNov8.d.mts} +2 -0
  46. package/dist/{textTypes-ah2JJr8v.d.mts → textTypes-DAgkNov8.d.ts} +2 -0
  47. package/dist/types/index.d.mts +2 -0
  48. package/dist/types/index.d.ts +2 -0
  49. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -1237,6 +1237,154 @@ var AccordionRoot = AccordionPrimitive5.Root;
1237
1237
  // elements/logos/Logos.tsx
1238
1238
  var import_react5 = __toESM(require("react"));
1239
1239
  var Logos = {
1240
+ metamask: (props) => /* @__PURE__ */ import_react5.default.createElement(
1241
+ "svg",
1242
+ {
1243
+ xmlns: "http://www.w3.org/2000/svg",
1244
+ xmlSpace: "preserve",
1245
+ id: "Layer_1",
1246
+ x: 0,
1247
+ y: 0,
1248
+ viewBox: "0 0 318.6 318.6",
1249
+ ...props
1250
+ },
1251
+ /* @__PURE__ */ import_react5.default.createElement("style", null, ".st1,.st6{fill:#e4761b;stroke:#e4761b;stroke-linecap:round;stroke-linejoin:round}.st6{fill:#f6851b;stroke:#f6851b}"),
1252
+ /* @__PURE__ */ import_react5.default.createElement(
1253
+ "path",
1254
+ {
1255
+ fill: "#e2761b",
1256
+ stroke: "#e2761b",
1257
+ strokeLinecap: "round",
1258
+ strokeLinejoin: "round",
1259
+ d: "m274.1 35.5-99.5 73.9L193 65.8z"
1260
+ }
1261
+ ),
1262
+ /* @__PURE__ */ import_react5.default.createElement(
1263
+ "path",
1264
+ {
1265
+ 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",
1266
+ className: "st1"
1267
+ }
1268
+ ),
1269
+ /* @__PURE__ */ import_react5.default.createElement(
1270
+ "path",
1271
+ {
1272
+ 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",
1273
+ className: "st1"
1274
+ }
1275
+ ),
1276
+ /* @__PURE__ */ import_react5.default.createElement(
1277
+ "path",
1278
+ {
1279
+ fill: "#d7c1b3",
1280
+ stroke: "#d7c1b3",
1281
+ strokeLinecap: "round",
1282
+ strokeLinejoin: "round",
1283
+ 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"
1284
+ }
1285
+ ),
1286
+ /* @__PURE__ */ import_react5.default.createElement(
1287
+ "path",
1288
+ {
1289
+ fill: "#233447",
1290
+ stroke: "#233447",
1291
+ strokeLinecap: "round",
1292
+ strokeLinejoin: "round",
1293
+ d: "m138.8 193.5-28.2-8.3 19.9-9.1zm40.9 0 8.3-17.4 20 9.1z"
1294
+ }
1295
+ ),
1296
+ /* @__PURE__ */ import_react5.default.createElement(
1297
+ "path",
1298
+ {
1299
+ fill: "#cd6116",
1300
+ stroke: "#cd6116",
1301
+ strokeLinecap: "round",
1302
+ strokeLinejoin: "round",
1303
+ 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"
1304
+ }
1305
+ ),
1306
+ /* @__PURE__ */ import_react5.default.createElement(
1307
+ "path",
1308
+ {
1309
+ fill: "#e4751f",
1310
+ stroke: "#e4751f",
1311
+ strokeLinecap: "round",
1312
+ strokeLinejoin: "round",
1313
+ 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"
1314
+ }
1315
+ ),
1316
+ /* @__PURE__ */ import_react5.default.createElement(
1317
+ "path",
1318
+ {
1319
+ 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",
1320
+ className: "st6"
1321
+ }
1322
+ ),
1323
+ /* @__PURE__ */ import_react5.default.createElement(
1324
+ "path",
1325
+ {
1326
+ fill: "#c0ad9e",
1327
+ stroke: "#c0ad9e",
1328
+ strokeLinecap: "round",
1329
+ strokeLinejoin: "round",
1330
+ 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"
1331
+ }
1332
+ ),
1333
+ /* @__PURE__ */ import_react5.default.createElement(
1334
+ "path",
1335
+ {
1336
+ fill: "#161616",
1337
+ stroke: "#161616",
1338
+ strokeLinecap: "round",
1339
+ strokeLinejoin: "round",
1340
+ 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"
1341
+ }
1342
+ ),
1343
+ /* @__PURE__ */ import_react5.default.createElement(
1344
+ "path",
1345
+ {
1346
+ fill: "#763d16",
1347
+ stroke: "#763d16",
1348
+ strokeLinecap: "round",
1349
+ strokeLinejoin: "round",
1350
+ 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"
1351
+ }
1352
+ ),
1353
+ /* @__PURE__ */ import_react5.default.createElement(
1354
+ "path",
1355
+ {
1356
+ 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",
1357
+ className: "st6"
1358
+ }
1359
+ )
1360
+ ),
1361
+ nafath: (props) => /* @__PURE__ */ import_react5.default.createElement(
1362
+ "svg",
1363
+ {
1364
+ xmlns: "http://www.w3.org/2000/svg",
1365
+ xmlSpace: "preserve",
1366
+ id: "Layer_1",
1367
+ x: 0,
1368
+ y: 0,
1369
+ viewBox: "22.5 44.5 535.6 230.34",
1370
+ ...props
1371
+ },
1372
+ /* @__PURE__ */ import_react5.default.createElement("style", null, ".st0{fill:#0a9a8f}"),
1373
+ /* @__PURE__ */ import_react5.default.createElement(
1374
+ "path",
1375
+ {
1376
+ 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",
1377
+ className: "st0"
1378
+ }
1379
+ ),
1380
+ /* @__PURE__ */ import_react5.default.createElement(
1381
+ "path",
1382
+ {
1383
+ 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",
1384
+ className: "st0"
1385
+ }
1386
+ )
1387
+ ),
1240
1388
  hawa: (props) => /* @__PURE__ */ import_react5.default.createElement(
1241
1389
  "svg",
1242
1390
  {
@@ -7262,7 +7410,7 @@ var CodeBlock = ({
7262
7410
  classNames,
7263
7411
  language = "javascript",
7264
7412
  // default to JavaScript if no language is provided
7265
- wrapText = false,
7413
+ wrapText = true,
7266
7414
  width = "full",
7267
7415
  ...props
7268
7416
  }) => {
@@ -7284,39 +7432,6 @@ var CodeBlock = ({
7284
7432
  classNames == null ? void 0 : classNames.root
7285
7433
  )
7286
7434
  },
7287
- /* @__PURE__ */ import_react30.default.createElement(
7288
- "div",
7289
- {
7290
- className: cn(
7291
- "hawa-flex hawa-absolute hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-z-50 hawa-right-3.5",
7292
- {
7293
- "hawa-top-3.5": !tabs && !fileName,
7294
- "hawa-top-[50px]": tabs && !fileName,
7295
- "hawa-top-11": !tabs && fileName,
7296
- "hawa-top-[80px]": tabs && fileName
7297
- }
7298
- )
7299
- },
7300
- /* @__PURE__ */ import_react30.default.createElement(
7301
- Tooltip,
7302
- {
7303
- open: clipboard.copied,
7304
- side: "left",
7305
- content: /* @__PURE__ */ import_react30.default.createElement("div", null, "Copied!"),
7306
- triggerProps: { asChild: true }
7307
- },
7308
- /* @__PURE__ */ import_react30.default.createElement(
7309
- Button,
7310
- {
7311
- size: "smallIcon",
7312
- onClick: () => clipboard.copy(tabs ? tabs[selectedTab].code : code),
7313
- variant: "outline",
7314
- className: "hawa-text-gray-200 hawa-opacity-50 "
7315
- },
7316
- /* @__PURE__ */ import_react30.default.createElement(CopyIcon, null)
7317
- )
7318
- )
7319
- ),
7320
7435
  fileName && /* @__PURE__ */ import_react30.default.createElement(
7321
7436
  "div",
7322
7437
  {
@@ -7376,6 +7491,33 @@ var CodeBlock = ({
7376
7491
  "hawa-overflow-y-auto"
7377
7492
  )
7378
7493
  },
7494
+ /* @__PURE__ */ import_react30.default.createElement(
7495
+ "div",
7496
+ {
7497
+ className: cn(
7498
+ "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"
7499
+ )
7500
+ },
7501
+ /* @__PURE__ */ import_react30.default.createElement(
7502
+ Tooltip,
7503
+ {
7504
+ open: clipboard.copied,
7505
+ side: "left",
7506
+ content: /* @__PURE__ */ import_react30.default.createElement("div", null, "Copied!"),
7507
+ triggerProps: { asChild: true }
7508
+ },
7509
+ /* @__PURE__ */ import_react30.default.createElement(
7510
+ Button,
7511
+ {
7512
+ size: "smallIcon",
7513
+ onClick: () => clipboard.copy(tabs ? tabs[selectedTab].code : code),
7514
+ variant: "outline",
7515
+ className: "hawa-text-gray-200 hawa-opacity-50 dark:hawa-border-gray-200 dark:hover:hawa-border-gray-400"
7516
+ },
7517
+ /* @__PURE__ */ import_react30.default.createElement(CopyIcon, null)
7518
+ )
7519
+ )
7520
+ ),
7379
7521
  /* @__PURE__ */ import_react30.default.createElement(
7380
7522
  import_prism_react_renderer.Highlight,
7381
7523
  {
@@ -7387,7 +7529,8 @@ var CodeBlock = ({
7387
7529
  "pre",
7388
7530
  {
7389
7531
  className: cn(
7390
- "hawa-min-h-[37.75px] !hawa-pe-12 hawa-w-full hawa-p-4 hawa-font-mono hawa-text-foreground",
7532
+ // !hawa-pe-12
7533
+ "hawa-min-h-[37.75px] hawa-w-full hawa-p-4 hawa-font-mono hawa-text-foreground",
7391
7534
  classNames == null ? void 0 : classNames.code,
7392
7535
  wrapText && "hawa-text-wrap"
7393
7536
  )
@@ -9259,8 +9402,28 @@ var DocsLayout = ({
9259
9402
  // blocks/auth/AuthButtons.tsx
9260
9403
  var import_react45 = __toESM(require("react"));
9261
9404
  var AuthButtons = (props) => {
9262
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
9263
- return /* @__PURE__ */ import_react45.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, props.viaGoogle && /* @__PURE__ */ import_react45.default.createElement(
9405
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
9406
+ return /* @__PURE__ */ import_react45.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, props.viaMetamask && /* @__PURE__ */ import_react45.default.createElement(
9407
+ Button,
9408
+ {
9409
+ disabled: props.isMetamaskLoading,
9410
+ className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
9411
+ variant: "outline",
9412
+ onClick: props.handleMetamask
9413
+ },
9414
+ props.isMetamaskLoading ? /* @__PURE__ */ import_react45.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react45.default.createElement(Logos.metamask, { className: "hawa-h-6" }),
9415
+ (_b = (_a = props.texts) == null ? void 0 : _a.continueWithMetamask) != null ? _b : "Connect Metamask"
9416
+ ), props.viaNafath && /* @__PURE__ */ import_react45.default.createElement(
9417
+ Button,
9418
+ {
9419
+ disabled: props.isNafathLoading,
9420
+ className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
9421
+ variant: "outline",
9422
+ onClick: props.handleNafath
9423
+ },
9424
+ props.isNafathLoading ? /* @__PURE__ */ import_react45.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react45.default.createElement(Logos.nafath, { className: "hawa-h-4" }),
9425
+ (_d = (_c = props.texts) == null ? void 0 : _c.continueWithNafath) != null ? _d : "Continue With Nafath"
9426
+ ), props.viaGoogle && /* @__PURE__ */ import_react45.default.createElement(
9264
9427
  Button,
9265
9428
  {
9266
9429
  disabled: props.isGoogleLoading,
@@ -9269,7 +9432,7 @@ var AuthButtons = (props) => {
9269
9432
  onClick: props.handleGoogle
9270
9433
  },
9271
9434
  props.isGoogleLoading ? /* @__PURE__ */ import_react45.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react45.default.createElement(Logos.google, { className: "hawa-icon" }),
9272
- (_b = (_a = props.texts) == null ? void 0 : _a.continueWithGoogle) != null ? _b : "Continue With Google"
9435
+ (_f = (_e = props.texts) == null ? void 0 : _e.continueWithGoogle) != null ? _f : "Continue With Google"
9273
9436
  ), props.viaGithub && /* @__PURE__ */ import_react45.default.createElement(
9274
9437
  Button,
9275
9438
  {
@@ -9279,7 +9442,7 @@ var AuthButtons = (props) => {
9279
9442
  onClick: props.handleGithub
9280
9443
  },
9281
9444
  props.isGithubLoading ? /* @__PURE__ */ import_react45.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react45.default.createElement(Logos.github, { className: "hawa-icon" }),
9282
- (_d = (_c = props.texts) == null ? void 0 : _c.continueWithGithub) != null ? _d : "Continue With Github"
9445
+ (_h = (_g = props.texts) == null ? void 0 : _g.continueWithGithub) != null ? _h : "Continue With Github"
9283
9446
  ), props.viaTwitter && /* @__PURE__ */ import_react45.default.createElement(
9284
9447
  Button,
9285
9448
  {
@@ -9289,7 +9452,7 @@ var AuthButtons = (props) => {
9289
9452
  onClick: props.handleTwitter
9290
9453
  },
9291
9454
  props.isTwitterLoading ? /* @__PURE__ */ import_react45.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react45.default.createElement(Logos.twitter, { className: "hawa-icon" }),
9292
- (_f = (_e = props.texts) == null ? void 0 : _e.continueWithTwitter) != null ? _f : "Continue With Twitter"
9455
+ (_j = (_i = props.texts) == null ? void 0 : _i.continueWithTwitter) != null ? _j : "Continue With Twitter"
9293
9456
  ), props.viaApple && /* @__PURE__ */ import_react45.default.createElement(
9294
9457
  Button,
9295
9458
  {
@@ -9299,7 +9462,7 @@ var AuthButtons = (props) => {
9299
9462
  onClick: props.handleApple
9300
9463
  },
9301
9464
  props.isAppleLoading ? /* @__PURE__ */ import_react45.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react45.default.createElement(Logos.apple, { className: "hawa-icon" }),
9302
- (_h = (_g = props.texts) == null ? void 0 : _g.continueWithApple) != null ? _h : "Continue With Apple"
9465
+ (_l = (_k = props.texts) == null ? void 0 : _k.continueWithApple) != null ? _l : "Continue With Apple"
9303
9466
  ), props.viaMicrosoft && /* @__PURE__ */ import_react45.default.createElement(
9304
9467
  Button,
9305
9468
  {
@@ -9309,7 +9472,7 @@ var AuthButtons = (props) => {
9309
9472
  onClick: props.handleMicrosoft
9310
9473
  },
9311
9474
  props.isMicrosoftLoading ? /* @__PURE__ */ import_react45.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react45.default.createElement(Logos.microsoft, { className: "hawa-icon" }),
9312
- (_j = (_i = props.texts) == null ? void 0 : _i.continueWithMicrosoft) != null ? _j : "Continue With Microsoft"
9475
+ (_n = (_m = props.texts) == null ? void 0 : _m.continueWithMicrosoft) != null ? _n : "Continue With Microsoft"
9313
9476
  ), props.viaEmail && /* @__PURE__ */ import_react45.default.createElement(
9314
9477
  Button,
9315
9478
  {
@@ -9319,7 +9482,7 @@ var AuthButtons = (props) => {
9319
9482
  onClick: props.handleEmail
9320
9483
  },
9321
9484
  props.isEmailLoading ? /* @__PURE__ */ import_react45.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react45.default.createElement(Logos.mail, { className: "hawa-icon" }),
9322
- (_l = (_k = props.texts) == null ? void 0 : _k.continueWithEmail) != null ? _l : "Continue With Email"
9485
+ (_p = (_o = props.texts) == null ? void 0 : _o.continueWithEmail) != null ? _p : "Continue With Email"
9323
9486
  ), props.viaPhone && /* @__PURE__ */ import_react45.default.createElement(
9324
9487
  Button,
9325
9488
  {
@@ -9329,7 +9492,7 @@ var AuthButtons = (props) => {
9329
9492
  onClick: props.handlePhone
9330
9493
  },
9331
9494
  props.isPhoneLoading ? /* @__PURE__ */ import_react45.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react45.default.createElement(Logos.phone, { className: "hawa-icon" }),
9332
- (_n = (_m = props.texts) == null ? void 0 : _m.continueWithPhone) != null ? _n : "Continue With Phone"
9495
+ (_r = (_q = props.texts) == null ? void 0 : _q.continueWithPhone) != null ? _r : "Continue With Phone"
9333
9496
  ));
9334
9497
  };
9335
9498
 
@@ -9939,10 +10102,15 @@ var RegisterForm = ({
9939
10102
  id: "terms_accepted",
9940
10103
  helperText: (_b2 = (_a2 = formState.errors.terms_accepted) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString(),
9941
10104
  onCheckedChange: (e) => field.onChange(e),
9942
- label: /* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5" }, /* @__PURE__ */ import_react47.default.createElement("span", null, (texts == null ? void 0 : texts.iAcceptText) || "I accept the "), " ", /* @__PURE__ */ import_react47.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react47.default.createElement(
9943
- "a",
10105
+ label: /* @__PURE__ */ import_react47.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5 hawa-whitespace-nowrap hawa-flex-wrap" }, (texts == null ? void 0 : texts.iAcceptText) || "I accept the", " ", /* @__PURE__ */ import_react47.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react47.default.createElement(
10106
+ "span",
9944
10107
  {
9945
- onClick: props.onRouteToTOS,
10108
+ onClick: (e) => {
10109
+ e.preventDefault();
10110
+ if (props.onRouteToTOS) {
10111
+ props.onRouteToTOS();
10112
+ }
10113
+ },
9946
10114
  className: "clickable-link"
9947
10115
  },
9948
10116
  (texts == null ? void 0 : texts.termsText) || "Terms of Service"
@@ -10722,10 +10890,7 @@ var FeedbackForm = (props) => {
10722
10890
  });
10723
10891
  const { handleSubmit, control, formState, reset } = (0, import_react_hook_form7.useForm)({
10724
10892
  resolver: (0, import_zod7.zodResolver)(formSchema),
10725
- defaultValues: {
10726
- requestType: "",
10727
- description: ""
10728
- }
10893
+ defaultValues: { requestType: "", description: "" }
10729
10894
  });
10730
10895
  return /* @__PURE__ */ import_react56.default.createElement(
10731
10896
  Card,
@@ -10735,7 +10900,7 @@ var FeedbackForm = (props) => {
10735
10900
  ),
10736
10901
  style: props.cardless ? { boxShadow: "none" } : void 0
10737
10902
  },
10738
- /* @__PURE__ */ import_react56.default.createElement(CardContent, { headless: true, className: props.cardless ? "!hawa-p-0" : "" }, /* @__PURE__ */ import_react56.default.createElement(
10903
+ /* @__PURE__ */ import_react56.default.createElement(CardContent, { headless: true, className: props.cardless ? "!hawa-p-0" : "" }, props.sent ? /* @__PURE__ */ import_react56.default.createElement("div", { className: "hawa-text-center hawa-min-h-[200px] hawa-flex hawa-flex-col hawa-justify-center" }, /* @__PURE__ */ import_react56.default.createElement("div", { className: "hawa-font-bold hawa-text-lg" }, props.texts.sentTitle || "Form submitted"), /* @__PURE__ */ import_react56.default.createElement("div", { className: "hawa-text-md" }, props.texts.sentSubtitle || "Thank you for your submission")) : /* @__PURE__ */ import_react56.default.createElement(
10739
10904
  "form",
10740
10905
  {
10741
10906
  noValidate: true,