@sikka/hawa 0.30.11-next → 0.30.13-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 (46) hide show
  1. package/dist/{Radio-MHGhfbpA.d.ts → Radio-uPqJwFGq.d.ts} +2 -2
  2. package/dist/{Radio-ZM5l4CwH.d.mts → Radio-zXrZBXwJ.d.mts} +2 -2
  3. package/dist/blocks/auth/index.js +1 -1
  4. package/dist/blocks/auth/index.mjs +1 -1
  5. package/dist/blocks/feedback/index.js +179 -177
  6. package/dist/blocks/feedback/index.mjs +1 -1
  7. package/dist/blocks/index.d.mts +1 -1
  8. package/dist/blocks/index.d.ts +1 -1
  9. package/dist/blocks/index.js +180 -178
  10. package/dist/blocks/index.mjs +2 -2
  11. package/dist/blocks/pricing/index.js +179 -177
  12. package/dist/blocks/pricing/index.mjs +1 -1
  13. package/dist/card/index.js.map +1 -1
  14. package/dist/card/index.mjs.map +1 -1
  15. package/dist/{chunk-3GZMGTI5.mjs → chunk-MPRDKNFN.mjs} +180 -178
  16. package/dist/chunk-WQK2TN4F.mjs +215 -0
  17. package/dist/dataTable/index.js.map +1 -1
  18. package/dist/dataTable/index.mjs.map +1 -1
  19. package/dist/destroyableCard/index.js.map +1 -1
  20. package/dist/destroyableCard/index.mjs.map +1 -1
  21. package/dist/elements/index.d.mts +2 -2
  22. package/dist/elements/index.d.ts +2 -2
  23. package/dist/elements/index.js +179 -177
  24. package/dist/elements/index.mjs +1 -1
  25. package/dist/index.d.mts +1 -1
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.js +180 -178
  28. package/dist/index.mjs +181 -179
  29. package/dist/input/index.js.map +1 -1
  30. package/dist/input/index.mjs.map +1 -1
  31. package/dist/interfaceSettings/index.js +179 -177
  32. package/dist/interfaceSettings/index.js.map +1 -1
  33. package/dist/interfaceSettings/index.mjs +180 -178
  34. package/dist/interfaceSettings/index.mjs.map +1 -1
  35. package/dist/passwordInput/index.js.map +1 -1
  36. package/dist/passwordInput/index.mjs.map +1 -1
  37. package/dist/radio/index.d.mts +2 -2
  38. package/dist/radio/index.d.ts +2 -2
  39. package/dist/radio/index.js +179 -177
  40. package/dist/radio/index.js.map +1 -1
  41. package/dist/radio/index.mjs +180 -178
  42. package/dist/radio/index.mjs.map +1 -1
  43. package/dist/stats/index.js.map +1 -1
  44. package/dist/stats/index.mjs.map +1 -1
  45. package/package.json +1 -1
  46. package/dist/chunk-U42KD2OQ.mjs +0 -213
package/dist/index.js CHANGED
@@ -3260,207 +3260,209 @@ var BackToTop = ({ ...props }) => {
3260
3260
 
3261
3261
  // elements/radio/Radio.tsx
3262
3262
  var import_react11 = __toESM(require("react"));
3263
- var Radio = ({
3264
- design = "default",
3265
- width = "default",
3266
- size = "default",
3267
- orientation = "horizontal",
3268
- name,
3269
- labelProps,
3270
- tabsContainerClassName,
3271
- forceHideHelperText = false,
3272
- onChange,
3273
- ...props
3274
- }) => {
3275
- var _a, _b, _c;
3276
- const [selectedOption, setSelectedOption] = (0, import_react11.useState)(
3277
- props.defaultValue || props.value
3278
- );
3279
- let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
3280
- let inactiveTabStyle = `hawa-inline-block hawa-w-full hawa-transition-all hawa-bg-primary-foreground dark:hover:hawa-text-white
3263
+ var Radio = (0, import_react11.forwardRef)(
3264
+ ({
3265
+ design = "default",
3266
+ width = "default",
3267
+ size = "default",
3268
+ orientation = "horizontal",
3269
+ name,
3270
+ labelProps,
3271
+ tabsContainerClassName,
3272
+ forceHideHelperText = false,
3273
+ onChange,
3274
+ ...props
3275
+ }, ref) => {
3276
+ var _a, _b, _c;
3277
+ const [selectedOption, setSelectedOption] = (0, import_react11.useState)(
3278
+ props.defaultValue || props.value
3279
+ );
3280
+ let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
3281
+ let inactiveTabStyle = `hawa-inline-block hawa-w-full hawa-transition-all hawa-bg-primary-foreground dark:hover:hawa-text-white
3281
3282
  ${props.disabled ? "" : "hover:hawa-bg-muted"}`;
3282
- let orientationStyle = {
3283
- horizontal: "hawa-flex hawa-flex-row",
3284
- vertical: "hawa-flex hawa-flex-col"
3285
- };
3286
- let tabSizeStyle = {
3287
- default: "hawa-py-2 hawa-px-4 hawa-text-sm",
3288
- lg: "hawa-py-2 hawa-px-4",
3289
- sm: "hawa-p-1.5 hawa-text-xs",
3290
- xs: "hawa-p-1 hawa-text-[10px]"
3291
- };
3292
- let widthStyle = {
3293
- none: "",
3294
- default: "hawa-max-w-fit",
3295
- full: "hawa-w-full"
3296
- };
3297
- const [parentDirection, setParentDirection] = import_react11.default.useState(
3298
- null
3299
- );
3300
- const parentRef = (0, import_react11.useRef)(null);
3301
- (0, import_react11.useEffect)(() => {
3302
- var _a2;
3303
- const parentNode = (_a2 = parentRef.current) == null ? void 0 : _a2.parentNode;
3304
- if (parentNode) {
3305
- const dir = window.getComputedStyle(parentNode).direction;
3306
- setParentDirection(dir);
3307
- }
3308
- });
3309
- const handleChange = (opt) => {
3310
- setSelectedOption(opt.value);
3311
- if (onChange) {
3312
- onChange(opt.value);
3313
- } else {
3314
- console.log("onChange was not provided");
3315
- }
3316
- };
3317
- switch (design) {
3318
- case "tabs":
3319
- return /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ import_react11.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react11.default.createElement(
3320
- "ul",
3321
- {
3322
- ref: parentRef,
3323
- className: cn(
3324
- props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
3325
- "hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium",
3326
- orientationStyle[orientation],
3327
- widthStyle[width],
3328
- tabsContainerClassName
3329
- )
3330
- },
3331
- (_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement(
3332
- "li",
3283
+ let orientationStyle = {
3284
+ horizontal: "hawa-flex hawa-flex-row",
3285
+ vertical: "hawa-flex hawa-flex-col"
3286
+ };
3287
+ let tabSizeStyle = {
3288
+ default: "hawa-py-2 hawa-px-4 hawa-text-sm",
3289
+ lg: "hawa-py-2 hawa-px-4",
3290
+ sm: "hawa-p-1.5 hawa-text-xs",
3291
+ xs: "hawa-p-1 hawa-text-[10px]"
3292
+ };
3293
+ let widthStyle = {
3294
+ none: "",
3295
+ default: "hawa-max-w-fit",
3296
+ full: "hawa-w-full"
3297
+ };
3298
+ const [parentDirection, setParentDirection] = import_react11.default.useState(
3299
+ null
3300
+ );
3301
+ const parentRef = (0, import_react11.useRef)(null);
3302
+ (0, import_react11.useEffect)(() => {
3303
+ var _a2;
3304
+ const parentNode = (_a2 = parentRef.current) == null ? void 0 : _a2.parentNode;
3305
+ if (parentNode) {
3306
+ const dir = window.getComputedStyle(parentNode).direction;
3307
+ setParentDirection(dir);
3308
+ }
3309
+ });
3310
+ const handleChange = (opt) => {
3311
+ setSelectedOption(opt.value);
3312
+ if (onChange) {
3313
+ onChange(opt.value);
3314
+ } else {
3315
+ console.log("onChange was not provided");
3316
+ }
3317
+ };
3318
+ switch (design) {
3319
+ case "tabs":
3320
+ return /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-gap-2 hawa-flex hawa-flex-col" }, props.label && /* @__PURE__ */ import_react11.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react11.default.createElement(
3321
+ "ul",
3333
3322
  {
3334
- "aria-current": "page",
3335
- onClick: () => {
3336
- if (props.disabled)
3337
- return;
3338
- handleChange(opt);
3323
+ ref: parentRef,
3324
+ className: cn(
3325
+ props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
3326
+ "hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium",
3327
+ orientationStyle[orientation],
3328
+ widthStyle[width],
3329
+ tabsContainerClassName
3330
+ )
3331
+ },
3332
+ (_b = props.options) == null ? void 0 : _b.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement(
3333
+ "li",
3334
+ {
3335
+ "aria-current": "page",
3336
+ onClick: () => {
3337
+ if (props.disabled)
3338
+ return;
3339
+ handleChange(opt);
3340
+ },
3341
+ className: cn(
3342
+ "hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
3343
+ !props.disabled && "hawa-cursor-pointer",
3344
+ orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
3345
+ orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
3346
+ orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
3347
+ tabSizeStyle[size],
3348
+ selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
3349
+ ),
3350
+ key: o
3339
3351
  },
3352
+ opt.icon && opt.icon,
3353
+ opt.label
3354
+ ))
3355
+ ), !forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(
3356
+ "p",
3357
+ {
3340
3358
  className: cn(
3341
- "hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
3342
- !props.disabled && "hawa-cursor-pointer",
3343
- orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
3344
- orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
3345
- orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
3346
- tabSizeStyle[size],
3347
- selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
3359
+ "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
3360
+ props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
3361
+ )
3362
+ },
3363
+ props.helperText
3364
+ ));
3365
+ case "bordered":
3366
+ return /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react11.default.createElement(
3367
+ "div",
3368
+ {
3369
+ className: cn(
3370
+ "radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
3371
+ props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
3348
3372
  ),
3349
- key: o
3373
+ key: i + 1
3350
3374
  },
3351
- opt.icon && opt.icon,
3352
- opt.label
3353
- ))
3354
- ), !forceHideHelperText && /* @__PURE__ */ import_react11.default.createElement(
3355
- "p",
3356
- {
3357
- className: cn(
3358
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
3359
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
3360
- )
3361
- },
3362
- props.helperText
3363
- ));
3364
- case "bordered":
3365
- return /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react11.default.createElement(
3366
- "div",
3367
- {
3368
- className: cn(
3369
- "radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
3370
- props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
3375
+ /* @__PURE__ */ import_react11.default.createElement(
3376
+ "input",
3377
+ {
3378
+ disabled: opt.disabled,
3379
+ id: opt.value.toString(),
3380
+ type: "radio",
3381
+ value: opt.value,
3382
+ name,
3383
+ onChange: () => handleChange(opt)
3384
+ }
3371
3385
  ),
3372
- key: i + 1
3373
- },
3374
- /* @__PURE__ */ import_react11.default.createElement(
3386
+ /* @__PURE__ */ import_react11.default.createElement(
3387
+ "label",
3388
+ {
3389
+ htmlFor: opt.value.toString(),
3390
+ className: cn(
3391
+ "hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium hawa-text-black dark:hawa-text-white",
3392
+ opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
3393
+ )
3394
+ },
3395
+ opt.label
3396
+ )
3397
+ ))));
3398
+ case "cards":
3399
+ return /* @__PURE__ */ import_react11.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react11.default.createElement(
3375
3400
  "input",
3376
3401
  {
3377
- disabled: opt.disabled,
3378
- id: opt.value.toString(),
3379
3402
  type: "radio",
3380
- value: opt.value,
3403
+ id: opt.value.toString(),
3381
3404
  name,
3382
- onChange: () => handleChange(opt)
3405
+ value: opt.value.toString(),
3406
+ className: "hawa-peer hawa-hidden",
3407
+ required: true,
3408
+ disabled: opt.disabled
3383
3409
  }
3384
- ),
3385
- /* @__PURE__ */ import_react11.default.createElement(
3410
+ ), /* @__PURE__ */ import_react11.default.createElement(
3386
3411
  "label",
3387
3412
  {
3388
3413
  htmlFor: opt.value.toString(),
3389
3414
  className: cn(
3390
- "hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium hawa-text-black dark:hawa-text-white",
3391
- opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
3415
+ "hawa-inline-flex hawa-h-full hawa-w-full hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-gray-200 hawa-bg-white hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-primary peer-checked:hawa-text-primary dark:hawa-border-gray-700 dark:hawa-bg-gray-800 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
3416
+ opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-gray-100 hover:hawa-text-gray-600 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-gray-300"
3392
3417
  )
3393
3418
  },
3394
- opt.label
3395
- )
3396
- ))));
3397
- case "cards":
3398
- return /* @__PURE__ */ import_react11.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react11.default.createElement(
3399
- "input",
3400
- {
3401
- type: "radio",
3402
- id: opt.value.toString(),
3403
- name,
3404
- value: opt.value.toString(),
3405
- className: "hawa-peer hawa-hidden",
3406
- required: true,
3407
- disabled: opt.disabled
3408
- }
3409
- ), /* @__PURE__ */ import_react11.default.createElement(
3410
- "label",
3411
- {
3412
- htmlFor: opt.value.toString(),
3413
- className: cn(
3414
- "hawa-inline-flex hawa-h-full hawa-w-full hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-gray-200 hawa-bg-white hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-primary peer-checked:hawa-text-primary dark:hawa-border-gray-700 dark:hawa-bg-gray-800 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
3415
- opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-gray-100 hover:hawa-text-gray-600 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-gray-300"
3416
- )
3417
- },
3418
- /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
3419
- ))));
3420
- default:
3421
- return /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react11.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement(
3422
- "div",
3423
- {
3424
- className: cn(
3425
- "radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
3426
- props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
3427
- ),
3428
- key: i + 1
3429
- },
3430
- /* @__PURE__ */ import_react11.default.createElement(
3431
- "input",
3419
+ /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
3420
+ ))));
3421
+ default:
3422
+ return /* @__PURE__ */ import_react11.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react11.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react11.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react11.default.createElement(
3423
+ "div",
3432
3424
  {
3433
- disabled: opt.disabled,
3434
- id: opt.value.toString(),
3435
- type: "radio",
3436
- value: opt.value,
3437
- name,
3438
- onChange: () => handleChange(opt)
3439
- }
3440
- ),
3441
- /* @__PURE__ */ import_react11.default.createElement(
3442
- "label",
3425
+ className: cn(
3426
+ "radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
3427
+ props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
3428
+ ),
3429
+ key: i + 1
3430
+ },
3431
+ /* @__PURE__ */ import_react11.default.createElement(
3432
+ "input",
3433
+ {
3434
+ disabled: opt.disabled,
3435
+ id: opt.value.toString(),
3436
+ type: "radio",
3437
+ value: opt.value,
3438
+ name,
3439
+ onChange: () => handleChange(opt)
3440
+ }
3441
+ ),
3442
+ /* @__PURE__ */ import_react11.default.createElement(
3443
+ "label",
3444
+ {
3445
+ htmlFor: opt.value.toString(),
3446
+ className: cn(
3447
+ "hawa-text-sm hawa-font-medium dark:hawa-text-white",
3448
+ opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
3449
+ )
3450
+ },
3451
+ opt.label
3452
+ )
3453
+ ))), /* @__PURE__ */ import_react11.default.createElement(
3454
+ "p",
3443
3455
  {
3444
- htmlFor: opt.value.toString(),
3445
3456
  className: cn(
3446
- "hawa-text-sm hawa-font-medium dark:hawa-text-white",
3447
- opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
3457
+ "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
3458
+ props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
3448
3459
  )
3449
3460
  },
3450
- opt.label
3451
- )
3452
- ))), /* @__PURE__ */ import_react11.default.createElement(
3453
- "p",
3454
- {
3455
- className: cn(
3456
- "hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
3457
- props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
3458
- )
3459
- },
3460
- props.helperText
3461
- ));
3461
+ props.helperText
3462
+ ));
3463
+ }
3462
3464
  }
3463
- };
3465
+ );
3464
3466
 
3465
3467
  // elements/combobox/Combobox.tsx
3466
3468
  var React27 = __toESM(require("react"));
@@ -10251,7 +10253,7 @@ var RegisterForm = ({
10251
10253
  (texts == null ? void 0 : texts.registerText) || "Register"
10252
10254
  ),
10253
10255
  props.additionalButtons
10254
- )), /* @__PURE__ */ import_react48.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-1 hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-white" }, /* @__PURE__ */ import_react48.default.createElement("span", null, (texts == null ? void 0 : texts.existingUserText) || "Already have an account?"), /* @__PURE__ */ import_react48.default.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))),
10256
+ )), props.onRouteToLogin && /* @__PURE__ */ import_react48.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-1 hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-white" }, /* @__PURE__ */ import_react48.default.createElement("span", null, (texts == null ? void 0 : texts.existingUserText) || "Already have an account?"), /* @__PURE__ */ import_react48.default.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))),
10255
10257
  props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react48.default.createElement(
10256
10258
  CardFooter,
10257
10259
  {