@sikka/hawa 0.38.0-next → 0.38.2-next

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/alert/index.js +43 -19
  2. package/dist/alert/index.js.map +1 -1
  3. package/dist/alert/index.mjs +43 -19
  4. package/dist/alert/index.mjs.map +1 -1
  5. package/dist/appLayout/index.js +43 -19
  6. package/dist/appLayout/index.js.map +1 -1
  7. package/dist/appLayout/index.mjs +43 -19
  8. package/dist/appLayout/index.mjs.map +1 -1
  9. package/dist/backToTop/index.js +43 -19
  10. package/dist/backToTop/index.js.map +1 -1
  11. package/dist/backToTop/index.mjs +43 -19
  12. package/dist/backToTop/index.mjs.map +1 -1
  13. package/dist/blocks/auth/index.js +44 -20
  14. package/dist/blocks/auth/index.mjs +5 -5
  15. package/dist/blocks/feedback/index.js +43 -19
  16. package/dist/blocks/feedback/index.mjs +5 -5
  17. package/dist/blocks/index.js +44 -20
  18. package/dist/blocks/index.mjs +3 -3
  19. package/dist/blocks/misc/index.js +43 -19
  20. package/dist/blocks/misc/index.mjs +5 -5
  21. package/dist/blocks/pricing/index.js +43 -19
  22. package/dist/blocks/pricing/index.mjs +4 -4
  23. package/dist/button/index.d.mts +4 -0
  24. package/dist/button/index.d.ts +4 -0
  25. package/dist/button/index.js +43 -19
  26. package/dist/button/index.js.map +1 -1
  27. package/dist/button/index.mjs +43 -19
  28. package/dist/button/index.mjs.map +1 -1
  29. package/dist/calendar/index.js +43 -19
  30. package/dist/calendar/index.js.map +1 -1
  31. package/dist/calendar/index.mjs +43 -19
  32. package/dist/calendar/index.mjs.map +1 -1
  33. package/dist/{chunk-JJMRBD3S.mjs → chunk-EZBHA2IL.mjs} +1 -1
  34. package/dist/{chunk-E77TUADR.mjs → chunk-F23GAE2P.mjs} +1 -1
  35. package/dist/{chunk-E6C3LDHD.mjs → chunk-IC5WYNKN.mjs} +1 -1
  36. package/dist/{chunk-IA5FLRFL.mjs → chunk-RTK6REIK.mjs} +1 -1
  37. package/dist/{chunk-MHSSZ6XE.mjs → chunk-UDJFVH2I.mjs} +1 -1
  38. package/dist/{chunk-4EZL2A64.mjs → chunk-UJ5SXC3M.mjs} +1 -1
  39. package/dist/{chunk-V4SUYEVH.mjs → chunk-UMOBOCED.mjs} +43 -19
  40. package/dist/{chunk-LDJD5ITW.mjs → chunk-V7O5MQZQ.mjs} +43 -19
  41. package/dist/{chunk-Q3HJI7ZE.mjs → chunk-WDCKXU54.mjs} +1 -1
  42. package/dist/{chunk-TMUQCNLO.mjs → chunk-XFSBC5VI.mjs} +1 -1
  43. package/dist/codeBlock/index.js +43 -19
  44. package/dist/codeBlock/index.js.map +1 -1
  45. package/dist/codeBlock/index.mjs +43 -19
  46. package/dist/codeBlock/index.mjs.map +1 -1
  47. package/dist/dataTable/index.js +43 -19
  48. package/dist/dataTable/index.js.map +1 -1
  49. package/dist/dataTable/index.mjs +43 -19
  50. package/dist/dataTable/index.mjs.map +1 -1
  51. package/dist/datePicker/index.d.mts +4 -0
  52. package/dist/datePicker/index.d.ts +4 -0
  53. package/dist/datePicker/index.js +44 -19
  54. package/dist/datePicker/index.js.map +1 -1
  55. package/dist/datePicker/index.mjs +44 -19
  56. package/dist/datePicker/index.mjs.map +1 -1
  57. package/dist/docsLayout/index.js +43 -19
  58. package/dist/docsLayout/index.js.map +1 -1
  59. package/dist/docsLayout/index.mjs +43 -19
  60. package/dist/docsLayout/index.mjs.map +1 -1
  61. package/dist/elements/index.d.mts +4 -0
  62. package/dist/elements/index.d.ts +4 -0
  63. package/dist/elements/index.js +43 -19
  64. package/dist/elements/index.mjs +3 -3
  65. package/dist/fileDropzone/index.js +43 -19
  66. package/dist/fileDropzone/index.js.map +1 -1
  67. package/dist/fileDropzone/index.mjs +43 -19
  68. package/dist/fileDropzone/index.mjs.map +1 -1
  69. package/dist/index.css +1759 -2201
  70. package/dist/index.d.mts +4 -0
  71. package/dist/index.d.ts +4 -0
  72. package/dist/index.js +44 -20
  73. package/dist/index.mjs +44 -20
  74. package/dist/layout/index.js +43 -19
  75. package/dist/layout/index.mjs +2 -2
  76. package/dist/sortButton/index.js +43 -19
  77. package/dist/sortButton/index.js.map +1 -1
  78. package/dist/sortButton/index.mjs +43 -19
  79. package/dist/sortButton/index.mjs.map +1 -1
  80. package/dist/splitButton/index.d.mts +4 -0
  81. package/dist/splitButton/index.d.ts +4 -0
  82. package/dist/splitButton/index.js +43 -19
  83. package/dist/splitButton/index.js.map +1 -1
  84. package/dist/splitButton/index.mjs +43 -19
  85. package/dist/splitButton/index.mjs.map +1 -1
  86. package/package.json +1 -1
@@ -472,30 +472,54 @@ var Button = React5.forwardRef(
472
472
  children,
473
473
  labelProps,
474
474
  showHelperText = false,
475
+ inForm = false,
475
476
  ...props
476
477
  }, ref) => {
477
478
  const Comp = "button";
478
479
  const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
479
- return /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, label && /* @__PURE__ */ React5.createElement(Label, { ...labelProps }, label), /* @__PURE__ */ React5.createElement(
480
- Comp,
481
- {
482
- className: cn(
483
- buttonVariants({ variant, size, className }),
484
- centered && "hawa-justify-center"
485
- ),
486
- ref,
487
- ...props
488
- },
489
- isLoading ? /* @__PURE__ */ React5.createElement(
490
- Loading,
480
+ if (inForm) {
481
+ return /* @__PURE__ */ React5.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, label && /* @__PURE__ */ React5.createElement(Label, { ...labelProps }, label), /* @__PURE__ */ React5.createElement(
482
+ Comp,
491
483
  {
492
- design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
493
- themeMode: variant === "outline" ? "light" : "dark",
494
- color: loadingColor,
495
- size: size === "sm" || size === "xs" ? "xs" : "button"
496
- }
497
- ) : children
498
- ), showHelperText && /* @__PURE__ */ React5.createElement(HelperText, { helperText: props.helperText }));
484
+ className: cn(
485
+ buttonVariants({ variant, size, className }),
486
+ centered && "hawa-justify-center"
487
+ ),
488
+ ref,
489
+ ...props
490
+ },
491
+ isLoading ? /* @__PURE__ */ React5.createElement(
492
+ Loading,
493
+ {
494
+ design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
495
+ themeMode: variant === "outline" ? "light" : "dark",
496
+ color: loadingColor,
497
+ size: size === "sm" || size === "xs" ? "xs" : "button"
498
+ }
499
+ ) : children
500
+ ), showHelperText && /* @__PURE__ */ React5.createElement(HelperText, { helperText: props.helperText }));
501
+ } else {
502
+ return /* @__PURE__ */ React5.createElement(
503
+ Comp,
504
+ {
505
+ className: cn(
506
+ buttonVariants({ variant, size, className }),
507
+ centered && "hawa-justify-center"
508
+ ),
509
+ ref,
510
+ ...props
511
+ },
512
+ isLoading ? /* @__PURE__ */ React5.createElement(
513
+ Loading,
514
+ {
515
+ design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
516
+ themeMode: variant === "outline" ? "light" : "dark",
517
+ color: loadingColor,
518
+ size: size === "sm" || size === "xs" ? "xs" : "button"
519
+ }
520
+ ) : children
521
+ );
522
+ }
499
523
  }
500
524
  );
501
525
  Button.displayName = "Button";