@sikka/hawa 0.32.3-next → 0.34.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.
Files changed (140) hide show
  1. package/dist/{Chip-BT2hUlGJ.d.mts → Chip-BtgTAs8x.d.mts} +1 -1
  2. package/dist/{Chip-Dt7zJ-jZ.d.ts → Chip-DQsP5hFS.d.ts} +1 -1
  3. package/dist/Label-UbMDLtJF.d.mts +14 -0
  4. package/dist/Label-UbMDLtJF.d.ts +14 -0
  5. package/dist/alert/index.js +151 -34
  6. package/dist/alert/index.js.map +1 -1
  7. package/dist/alert/index.mjs +148 -31
  8. package/dist/alert/index.mjs.map +1 -1
  9. package/dist/appLayout/index.js +191 -145
  10. package/dist/appLayout/index.js.map +1 -1
  11. package/dist/appLayout/index.mjs +226 -180
  12. package/dist/appLayout/index.mjs.map +1 -1
  13. package/dist/backToTop/index.js +147 -30
  14. package/dist/backToTop/index.js.map +1 -1
  15. package/dist/backToTop/index.mjs +142 -25
  16. package/dist/backToTop/index.mjs.map +1 -1
  17. package/dist/blocks/auth/index.js +230 -229
  18. package/dist/blocks/auth/index.mjs +4 -4
  19. package/dist/blocks/feedback/index.js +147 -148
  20. package/dist/blocks/feedback/index.mjs +5 -5
  21. package/dist/blocks/index.d.mts +5 -0
  22. package/dist/blocks/index.d.ts +5 -0
  23. package/dist/blocks/index.js +234 -232
  24. package/dist/blocks/index.mjs +7 -6
  25. package/dist/blocks/misc/index.d.mts +5 -0
  26. package/dist/blocks/misc/index.d.ts +5 -0
  27. package/dist/blocks/misc/index.js +159 -157
  28. package/dist/blocks/misc/index.mjs +9 -8
  29. package/dist/blocks/pricing/index.js +174 -173
  30. package/dist/blocks/pricing/index.mjs +4 -4
  31. package/dist/button/index.d.mts +3 -2
  32. package/dist/button/index.d.ts +3 -2
  33. package/dist/button/index.js +138 -21
  34. package/dist/button/index.js.map +1 -1
  35. package/dist/button/index.mjs +138 -21
  36. package/dist/button/index.mjs.map +1 -1
  37. package/dist/calendar/index.d.mts +15 -0
  38. package/dist/calendar/index.d.ts +15 -0
  39. package/dist/calendar/index.js +545 -0
  40. package/dist/calendar/index.js.map +1 -0
  41. package/dist/calendar/index.mjs +509 -0
  42. package/dist/calendar/index.mjs.map +1 -0
  43. package/dist/{chunk-WFPAI2QC.mjs → chunk-3HJ3JXPA.mjs} +130 -174
  44. package/dist/{chunk-XRUPXLOK.mjs → chunk-AW5FW5TY.mjs} +1 -1
  45. package/dist/{chunk-MQWYXMSK.mjs → chunk-CKLK3G32.mjs} +242 -197
  46. package/dist/{chunk-XZLXGXIA.mjs → chunk-E3WWI4I5.mjs} +1 -1
  47. package/dist/{chunk-WUMWQIAW.mjs → chunk-FRYGQYUO.mjs} +1 -1
  48. package/dist/{chunk-S6TZHTWS.mjs → chunk-GEB3LM5A.mjs} +1 -1
  49. package/dist/{chunk-2QAGLSHC.mjs → chunk-IQEBXGLM.mjs} +1 -1
  50. package/dist/{chunk-PA3Z7W32.mjs → chunk-OS2UOK5C.mjs} +147 -146
  51. package/dist/{chunk-3S44N7SB.mjs → chunk-RTGD7N7I.mjs} +1 -1
  52. package/dist/{chunk-WAVKQ44V.mjs → chunk-UBNCETCU.mjs} +1 -1
  53. package/dist/codeBlock/index.js +138 -92
  54. package/dist/codeBlock/index.js.map +1 -1
  55. package/dist/codeBlock/index.mjs +157 -111
  56. package/dist/codeBlock/index.mjs.map +1 -1
  57. package/dist/commonTypes-CgDwjGvU.d.mts +5 -0
  58. package/dist/commonTypes-CgDwjGvU.d.ts +5 -0
  59. package/dist/commonTypes-DZdITB5m.d.mts +4 -0
  60. package/dist/commonTypes-DZdITB5m.d.ts +4 -0
  61. package/dist/dataTable/index.d.mts +2 -1
  62. package/dist/dataTable/index.d.ts +2 -1
  63. package/dist/dataTable/index.js +174 -173
  64. package/dist/dataTable/index.js.map +1 -1
  65. package/dist/dataTable/index.mjs +174 -173
  66. package/dist/dataTable/index.mjs.map +1 -1
  67. package/dist/datePicker/index.d.mts +20 -0
  68. package/dist/datePicker/index.d.ts +20 -0
  69. package/dist/datePicker/index.js +630 -0
  70. package/dist/datePicker/index.js.map +1 -0
  71. package/dist/datePicker/index.mjs +593 -0
  72. package/dist/datePicker/index.mjs.map +1 -0
  73. package/dist/destroyableCard/index.d.mts +1 -1
  74. package/dist/destroyableCard/index.d.ts +1 -1
  75. package/dist/dialog/index.d.mts +1 -1
  76. package/dist/dialog/index.d.ts +1 -1
  77. package/dist/docsLayout/index.js +231 -114
  78. package/dist/docsLayout/index.js.map +1 -1
  79. package/dist/docsLayout/index.mjs +222 -105
  80. package/dist/docsLayout/index.mjs.map +1 -1
  81. package/dist/dropdownMenu/index.d.mts +1 -6
  82. package/dist/dropdownMenu/index.d.ts +1 -6
  83. package/dist/elements/index.d.mts +9 -8
  84. package/dist/elements/index.d.ts +9 -8
  85. package/dist/elements/index.js +51 -50
  86. package/dist/elements/index.mjs +4 -4
  87. package/dist/fileDropzone/index.js +184 -67
  88. package/dist/fileDropzone/index.js.map +1 -1
  89. package/dist/fileDropzone/index.mjs +176 -59
  90. package/dist/fileDropzone/index.mjs.map +1 -1
  91. package/dist/index.css +86 -0
  92. package/dist/index.d.mts +6 -0
  93. package/dist/index.d.ts +6 -0
  94. package/dist/index.js +55 -53
  95. package/dist/index.mjs +75 -73
  96. package/dist/input/index.d.mts +1 -2
  97. package/dist/input/index.d.ts +1 -2
  98. package/dist/label/index.d.mts +2 -1
  99. package/dist/label/index.d.ts +2 -1
  100. package/dist/layout/index.d.mts +1 -1
  101. package/dist/layout/index.d.ts +1 -1
  102. package/dist/layout/index.js +204 -158
  103. package/dist/layout/index.mjs +2 -2
  104. package/dist/phoneInput/index.d.mts +1 -2
  105. package/dist/phoneInput/index.d.ts +1 -2
  106. package/dist/progress/index.d.mts +1 -8
  107. package/dist/progress/index.d.ts +1 -8
  108. package/dist/radio/index.d.mts +1 -9
  109. package/dist/radio/index.d.ts +1 -9
  110. package/dist/scrollArea/index.d.mts +1 -1
  111. package/dist/scrollArea/index.d.ts +1 -1
  112. package/dist/separator/index.d.mts +1 -1
  113. package/dist/separator/index.d.ts +1 -1
  114. package/dist/signature/index.d.mts +2 -1
  115. package/dist/signature/index.d.ts +2 -1
  116. package/dist/simpleTable/index.d.mts +1 -1
  117. package/dist/simpleTable/index.d.ts +1 -1
  118. package/dist/sortButton/index.js +145 -28
  119. package/dist/sortButton/index.js.map +1 -1
  120. package/dist/sortButton/index.mjs +145 -28
  121. package/dist/sortButton/index.mjs.map +1 -1
  122. package/dist/splitButton/index.d.mts +3 -2
  123. package/dist/splitButton/index.d.ts +3 -2
  124. package/dist/splitButton/index.js +145 -28
  125. package/dist/splitButton/index.js.map +1 -1
  126. package/dist/splitButton/index.mjs +145 -28
  127. package/dist/splitButton/index.mjs.map +1 -1
  128. package/dist/tabs/index.d.mts +1 -1
  129. package/dist/tabs/index.d.ts +1 -1
  130. package/dist/textarea/index.d.mts +1 -1
  131. package/dist/textarea/index.d.ts +1 -1
  132. package/dist/toast/index.d.mts +1 -1
  133. package/dist/toast/index.d.ts +1 -1
  134. package/dist/toaster/index.d.mts +22 -4
  135. package/dist/toaster/index.d.ts +22 -4
  136. package/package.json +3 -1
  137. package/dist/commonTypes-CMqMLkhN.d.mts +0 -4
  138. package/dist/commonTypes-CMqMLkhN.d.ts +0 -4
  139. package/dist/commonTypes-D_7LV7Ri.d.mts +0 -5
  140. package/dist/commonTypes-D_7LV7Ri.d.ts +0 -5
@@ -8,7 +8,6 @@ import {
8
8
  GoodEmoji,
9
9
  HiddenEyeIcon,
10
10
  Input,
11
- Label,
12
11
  PhoneInput,
13
12
  PinInput,
14
13
  Popover,
@@ -26,7 +25,7 @@ import {
26
25
  UncheckMark,
27
26
  VeryBadEmoji,
28
27
  VeryGoodEmoji
29
- } from "../chunk-WFPAI2QC.mjs";
28
+ } from "../chunk-3HJ3JXPA.mjs";
30
29
  import "../chunk-OPYDG34F.mjs";
31
30
  import {
32
31
  Button,
@@ -38,12 +37,13 @@ import {
38
37
  CardTitle,
39
38
  Chip,
40
39
  DropdownMenu,
40
+ Label,
41
41
  Loading,
42
42
  Logos,
43
43
  Skeleton,
44
44
  Tooltip,
45
45
  cn
46
- } from "../chunk-MQWYXMSK.mjs";
46
+ } from "../chunk-CKLK3G32.mjs";
47
47
  import "../chunk-JU6Q4Q3T.mjs";
48
48
 
49
49
  // blocks/auth/AuthButtons.tsx
@@ -1850,9 +1850,10 @@ var ContactForm = ({
1850
1850
  formId,
1851
1851
  formAutoComplete = "off",
1852
1852
  onSubmit,
1853
- customFields
1853
+ customFields,
1854
+ ...props
1854
1855
  }) => {
1855
- var _a, _b, _c;
1856
+ var _a, _b, _c, _d, _e;
1856
1857
  const customFieldsSchema = z8.object({
1857
1858
  ...customFields == null ? void 0 : customFields.reduce(
1858
1859
  (acc, curr) => {
@@ -1920,7 +1921,7 @@ var ContactForm = ({
1920
1921
  ),
1921
1922
  style: cardless ? { boxShadow: "none" } : void 0
1922
1923
  },
1923
- /* @__PURE__ */ React20.createElement(CardContent, { headless: true, className: cardless ? "!hawa-p-0" : "" }, /* @__PURE__ */ React20.createElement(
1924
+ /* @__PURE__ */ React20.createElement(CardContent, { headless: true, className: cardless ? "!hawa-p-0" : "" }, props.showSuccess ? /* @__PURE__ */ React20.createElement(CardHeader, null, /* @__PURE__ */ React20.createElement(CardTitle, null, ((_d = texts == null ? void 0 : texts.success) == null ? void 0 : _d.title) || "Message Sent! \u{1F389}"), /* @__PURE__ */ React20.createElement(CardDescription, null, ((_e = texts == null ? void 0 : texts.success) == null ? void 0 : _e.description) || "Thank you for your submission, we will get back to you as soon as possible.")) : /* @__PURE__ */ React20.createElement(
1924
1925
  "form",
1925
1926
  {
1926
1927
  noValidate: true,
@@ -88,11 +88,16 @@ type ContactFormProps = {
88
88
  size?: "sm" | "default";
89
89
  onSubmit: (e: ContactFormData) => void;
90
90
  customFields?: CustomField[];
91
+ showSuccess?: boolean;
91
92
  texts?: {
92
93
  submit: string;
93
94
  name: TextInputType;
94
95
  email: TextInputType;
95
96
  message: TextInputType;
97
+ success?: {
98
+ title?: string;
99
+ description?: string;
100
+ };
96
101
  };
97
102
  };
98
103
  declare const ContactForm: React__default.FC<ContactFormProps>;
@@ -88,11 +88,16 @@ type ContactFormProps = {
88
88
  size?: "sm" | "default";
89
89
  onSubmit: (e: ContactFormData) => void;
90
90
  customFields?: CustomField[];
91
+ showSuccess?: boolean;
91
92
  texts?: {
92
93
  submit: string;
93
94
  name: TextInputType;
94
95
  email: TextInputType;
95
96
  message: TextInputType;
97
+ success?: {
98
+ title?: string;
99
+ description?: string;
100
+ };
96
101
  };
97
102
  };
98
103
  declare const ContactForm: React__default.FC<ContactFormProps>;
@@ -480,14 +480,130 @@ var LegalTexts = ({ tabs, ...props }) => {
480
480
  };
481
481
 
482
482
  // blocks/misc/EmptyState.tsx
483
- var import_react20 = __toESM(require("react"));
483
+ var import_react21 = __toESM(require("react"));
484
484
 
485
485
  // elements/button/Button.tsx
486
- var React16 = __toESM(require("react"));
486
+ var React18 = __toESM(require("react"));
487
487
  var import_class_variance_authority = require("class-variance-authority");
488
488
 
489
- // elements/loading/Loading.tsx
489
+ // elements/label/Label.tsx
490
+ var React16 = __toESM(require("react"));
491
+
492
+ // elements/tooltip/Tooltip.tsx
490
493
  var import_react19 = __toESM(require("react"));
494
+ var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
495
+ var TooltipContent = import_react19.default.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ import_react19.default.createElement(
496
+ TooltipPrimitive.Content,
497
+ {
498
+ ref,
499
+ sideOffset,
500
+ className: cn(
501
+ "hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-text-popover-foreground hawa-shadow-md hawa-animate-in hawa-fade-in-0 hawa-zoom-in-95 data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=closed]:hawa-zoom-out-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
502
+ {
503
+ "hawa-text-xs": size === "small",
504
+ "hawa-text-xl": size === "large"
505
+ },
506
+ className
507
+ ),
508
+ ...props
509
+ }
510
+ ));
511
+ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
512
+ var TooltipArrow = import_react19.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ import_react19.default.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
513
+ TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
514
+ var Tooltip = ({
515
+ side,
516
+ size,
517
+ open,
518
+ content,
519
+ children,
520
+ disabled,
521
+ defaultOpen,
522
+ onOpenChange,
523
+ triggerProps,
524
+ contentProps,
525
+ providerProps,
526
+ delayDuration = 300,
527
+ ...props
528
+ }) => {
529
+ return /* @__PURE__ */ import_react19.default.createElement(
530
+ TooltipPrimitive.TooltipProvider,
531
+ {
532
+ delayDuration,
533
+ ...providerProps
534
+ },
535
+ /* @__PURE__ */ import_react19.default.createElement(
536
+ TooltipPrimitive.Root,
537
+ {
538
+ open: !disabled && open,
539
+ defaultOpen,
540
+ onOpenChange,
541
+ ...props
542
+ },
543
+ /* @__PURE__ */ import_react19.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
544
+ /* @__PURE__ */ import_react19.default.createElement(
545
+ TooltipContent,
546
+ {
547
+ size,
548
+ side,
549
+ align: "center",
550
+ ...contentProps,
551
+ style: {
552
+ ...contentProps == null ? void 0 : contentProps.style,
553
+ maxWidth: "var(--radix-tooltip-content-available-width)",
554
+ maxHeight: "var(--radix-tooltip-content-available-height)"
555
+ }
556
+ },
557
+ content
558
+ )
559
+ )
560
+ );
561
+ };
562
+
563
+ // elements/label/Label.tsx
564
+ var Label = React16.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React16.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React16.createElement(
565
+ "label",
566
+ {
567
+ ref,
568
+ className: cn(
569
+ "hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70",
570
+ className
571
+ ),
572
+ ...props
573
+ },
574
+ children,
575
+ required && /* @__PURE__ */ React16.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
576
+ ), hint && /* @__PURE__ */ React16.createElement(
577
+ Tooltip,
578
+ {
579
+ content: hint,
580
+ side: hintSide,
581
+ triggerProps: {
582
+ tabIndex: -1,
583
+ onClick: (event) => event.preventDefault()
584
+ }
585
+ },
586
+ /* @__PURE__ */ React16.createElement("div", null, /* @__PURE__ */ React16.createElement(
587
+ "svg",
588
+ {
589
+ xmlns: "http://www.w3.org/2000/svg",
590
+ className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
591
+ viewBox: "0 0 24 24",
592
+ fill: "none",
593
+ stroke: "currentColor",
594
+ strokeWidth: "2",
595
+ strokeLinecap: "round",
596
+ strokeLinejoin: "round"
597
+ },
598
+ /* @__PURE__ */ React16.createElement("circle", { cx: "12", cy: "12", r: "10" }),
599
+ /* @__PURE__ */ React16.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
600
+ /* @__PURE__ */ React16.createElement("path", { d: "M12 17h.01" })
601
+ ))
602
+ )));
603
+ Label.displayName = "Label";
604
+
605
+ // elements/loading/Loading.tsx
606
+ var import_react20 = __toESM(require("react"));
491
607
  var Loading = ({
492
608
  design = "spinner",
493
609
  size = "normal",
@@ -518,7 +634,7 @@ var Loading = ({
518
634
  };
519
635
  switch (design.split("-")[0]) {
520
636
  case "dots":
521
- return /* @__PURE__ */ import_react19.default.createElement(
637
+ return /* @__PURE__ */ import_react20.default.createElement(
522
638
  "div",
523
639
  {
524
640
  className: cn(
@@ -526,7 +642,7 @@ var Loading = ({
526
642
  classNames == null ? void 0 : classNames.container
527
643
  )
528
644
  },
529
- /* @__PURE__ */ import_react19.default.createElement(
645
+ /* @__PURE__ */ import_react20.default.createElement(
530
646
  "div",
531
647
  {
532
648
  className: cn(
@@ -537,7 +653,7 @@ var Loading = ({
537
653
  )
538
654
  }
539
655
  ),
540
- /* @__PURE__ */ import_react19.default.createElement(
656
+ /* @__PURE__ */ import_react20.default.createElement(
541
657
  "div",
542
658
  {
543
659
  className: cn(
@@ -548,7 +664,7 @@ var Loading = ({
548
664
  )
549
665
  }
550
666
  ),
551
- /* @__PURE__ */ import_react19.default.createElement(
667
+ /* @__PURE__ */ import_react20.default.createElement(
552
668
  "div",
553
669
  {
554
670
  className: cn(
@@ -561,7 +677,7 @@ var Loading = ({
561
677
  )
562
678
  );
563
679
  case "square":
564
- return /* @__PURE__ */ import_react19.default.createElement(
680
+ return /* @__PURE__ */ import_react20.default.createElement(
565
681
  "svg",
566
682
  {
567
683
  className: cn(
@@ -573,7 +689,7 @@ var Loading = ({
573
689
  height: "35",
574
690
  width: "35"
575
691
  },
576
- /* @__PURE__ */ import_react19.default.createElement(
692
+ /* @__PURE__ */ import_react20.default.createElement(
577
693
  "rect",
578
694
  {
579
695
  className: "squircle-track",
@@ -585,7 +701,7 @@ var Loading = ({
585
701
  height: "32.5"
586
702
  }
587
703
  ),
588
- /* @__PURE__ */ import_react19.default.createElement(
704
+ /* @__PURE__ */ import_react20.default.createElement(
589
705
  "rect",
590
706
  {
591
707
  className: "square-car",
@@ -600,7 +716,7 @@ var Loading = ({
600
716
  )
601
717
  );
602
718
  case "squircle":
603
- return /* @__PURE__ */ import_react19.default.createElement(
719
+ return /* @__PURE__ */ import_react20.default.createElement(
604
720
  "svg",
605
721
  {
606
722
  x: "0px",
@@ -615,7 +731,7 @@ var Loading = ({
615
731
  classNames == null ? void 0 : classNames.container
616
732
  )
617
733
  },
618
- /* @__PURE__ */ import_react19.default.createElement(
734
+ /* @__PURE__ */ import_react20.default.createElement(
619
735
  "path",
620
736
  {
621
737
  className: cn("squircle-track", classNames == null ? void 0 : classNames.track),
@@ -625,7 +741,7 @@ var Loading = ({
625
741
  d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
626
742
  }
627
743
  ),
628
- /* @__PURE__ */ import_react19.default.createElement(
744
+ /* @__PURE__ */ import_react20.default.createElement(
629
745
  "path",
630
746
  {
631
747
  className: cn("squircle-car", classNames == null ? void 0 : classNames.car),
@@ -637,7 +753,7 @@ var Loading = ({
637
753
  )
638
754
  );
639
755
  case "progress":
640
- return /* @__PURE__ */ import_react19.default.createElement(
756
+ return /* @__PURE__ */ import_react20.default.createElement(
641
757
  "div",
642
758
  {
643
759
  className: cn(
@@ -648,9 +764,9 @@ var Loading = ({
648
764
  }
649
765
  );
650
766
  case "orbit":
651
- return /* @__PURE__ */ import_react19.default.createElement("div", { className: cn("orbit-container", classNames == null ? void 0 : classNames.container) });
767
+ return /* @__PURE__ */ import_react20.default.createElement("div", { className: cn("orbit-container", classNames == null ? void 0 : classNames.container) });
652
768
  default:
653
- return /* @__PURE__ */ import_react19.default.createElement(
769
+ return /* @__PURE__ */ import_react20.default.createElement(
654
770
  "svg",
655
771
  {
656
772
  viewBox: "0 0 40 40",
@@ -662,7 +778,7 @@ var Loading = ({
662
778
  classNames == null ? void 0 : classNames.container
663
779
  )
664
780
  },
665
- /* @__PURE__ */ import_react19.default.createElement(
781
+ /* @__PURE__ */ import_react20.default.createElement(
666
782
  "circle",
667
783
  {
668
784
  className: cn(
@@ -681,7 +797,7 @@ var Loading = ({
681
797
  pathLength: "100"
682
798
  }
683
799
  ),
684
- /* @__PURE__ */ import_react19.default.createElement(
800
+ /* @__PURE__ */ import_react20.default.createElement(
685
801
  "circle",
686
802
  {
687
803
  className: cn(
@@ -738,9 +854,10 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
738
854
  }
739
855
  }
740
856
  );
741
- var Button = React16.forwardRef(
857
+ var Button = React18.forwardRef(
742
858
  ({
743
859
  className,
860
+ label,
744
861
  variant,
745
862
  size,
746
863
  asChild = false,
@@ -751,7 +868,7 @@ var Button = React16.forwardRef(
751
868
  }, ref) => {
752
869
  const Comp = "button";
753
870
  const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
754
- return /* @__PURE__ */ React16.createElement(
871
+ return /* @__PURE__ */ React18.createElement("div", { className: "flex flex-col" }, label && /* @__PURE__ */ React18.createElement(Label, { className: "hawa-mb-2" }, label), /* @__PURE__ */ React18.createElement(
755
872
  Comp,
756
873
  {
757
874
  className: cn(
@@ -761,7 +878,7 @@ var Button = React16.forwardRef(
761
878
  ref,
762
879
  ...props
763
880
  },
764
- isLoading ? /* @__PURE__ */ React16.createElement(
881
+ isLoading ? /* @__PURE__ */ React18.createElement(
765
882
  Loading,
766
883
  {
767
884
  design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
@@ -770,14 +887,14 @@ var Button = React16.forwardRef(
770
887
  size: size === "sm" || size === "xs" ? "xs" : "button"
771
888
  }
772
889
  ) : children
773
- );
890
+ ));
774
891
  }
775
892
  );
776
893
  Button.displayName = "Button";
777
894
 
778
895
  // elements/card/Card.tsx
779
- var React17 = __toESM(require("react"));
780
- var Card = React17.forwardRef(
896
+ var React19 = __toESM(require("react"));
897
+ var Card = React19.forwardRef(
781
898
  ({
782
899
  className,
783
900
  variant = "default",
@@ -796,7 +913,7 @@ var Card = React17.forwardRef(
796
913
  clickable && "hawa-cursor-pointer active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"
797
914
  )
798
915
  };
799
- return /* @__PURE__ */ React17.createElement(
916
+ return /* @__PURE__ */ React19.createElement(
800
917
  "div",
801
918
  {
802
919
  ref,
@@ -806,7 +923,7 @@ var Card = React17.forwardRef(
806
923
  );
807
924
  }
808
925
  );
809
- var CardHeader = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React17.createElement(
926
+ var CardHeader = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
810
927
  "div",
811
928
  {
812
929
  ref,
@@ -817,7 +934,7 @@ var CardHeader = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE
817
934
  ...props
818
935
  }
819
936
  ));
820
- var CardTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React17.createElement(
937
+ var CardTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
821
938
  "h3",
822
939
  {
823
940
  ref,
@@ -825,7 +942,7 @@ var CardTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE_
825
942
  ...props
826
943
  }
827
944
  ));
828
- var CardDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React17.createElement(
945
+ var CardDescription = React19.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
829
946
  "p",
830
947
  {
831
948
  ref,
@@ -833,8 +950,8 @@ var CardDescription = React17.forwardRef(({ className, ...props }, ref) => /* @_
833
950
  ...props
834
951
  }
835
952
  ));
836
- var CardContent = React17.forwardRef(
837
- ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React17.createElement(
953
+ var CardContent = React19.forwardRef(
954
+ ({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React19.createElement(
838
955
  "div",
839
956
  {
840
957
  ref,
@@ -847,7 +964,7 @@ var CardContent = React17.forwardRef(
847
964
  }
848
965
  )
849
966
  );
850
- var CardFooter = React17.forwardRef(({ className, noPadding, ...props }, ref) => /* @__PURE__ */ React17.createElement(
967
+ var CardFooter = React19.forwardRef(({ className, noPadding, ...props }, ref) => /* @__PURE__ */ React19.createElement(
851
968
  "div",
852
969
  {
853
970
  ref,
@@ -868,7 +985,7 @@ Card.displayName = "Card";
868
985
 
869
986
  // blocks/misc/EmptyState.tsx
870
987
  var EmptyState = ({ texts, onActionClick }) => {
871
- return /* @__PURE__ */ import_react20.default.createElement(Card, null, /* @__PURE__ */ import_react20.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react20.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center " }, /* @__PURE__ */ import_react20.default.createElement("div", { className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ import_react20.default.createElement(
988
+ return /* @__PURE__ */ import_react21.default.createElement(Card, null, /* @__PURE__ */ import_react21.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react21.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center " }, /* @__PURE__ */ import_react21.default.createElement("div", { className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground" }, /* @__PURE__ */ import_react21.default.createElement(
872
989
  "svg",
873
990
  {
874
991
  stroke: "currentColor",
@@ -878,26 +995,26 @@ var EmptyState = ({ texts, onActionClick }) => {
878
995
  height: "0.35em",
879
996
  width: "0.35em"
880
997
  },
881
- /* @__PURE__ */ import_react20.default.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" })
882
- )), /* @__PURE__ */ import_react20.default.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.youreCaughtUp) || "You're all caught up"))), /* @__PURE__ */ import_react20.default.createElement(CardFooter, null, /* @__PURE__ */ import_react20.default.createElement(Button, { className: "hawa-w-full", onClick: () => onActionClick() }, (texts == null ? void 0 : texts.actionText) || "Go Home")));
998
+ /* @__PURE__ */ import_react21.default.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" })
999
+ )), /* @__PURE__ */ import_react21.default.createElement("div", { className: "hawa-m-2 hawa-text-xl hawa-font-bold" }, (texts == null ? void 0 : texts.youreCaughtUp) || "You're all caught up"))), /* @__PURE__ */ import_react21.default.createElement(CardFooter, null, /* @__PURE__ */ import_react21.default.createElement(Button, { className: "hawa-w-full", onClick: () => onActionClick() }, (texts == null ? void 0 : texts.actionText) || "Go Home")));
883
1000
  };
884
1001
 
885
1002
  // blocks/misc/Testimonial.tsx
886
- var import_react21 = __toESM(require("react"));
1003
+ var import_react22 = __toESM(require("react"));
887
1004
  var Testimonial = () => {
888
- return /* @__PURE__ */ import_react21.default.createElement(Card, null, /* @__PURE__ */ import_react21.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react21.default.createElement("div", null, /* @__PURE__ */ import_react21.default.createElement("p", { className: "mb-4 max-w-sm" }, "The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless.")), /* @__PURE__ */ import_react21.default.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ import_react21.default.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ import_react21.default.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ import_react21.default.createElement(
1005
+ return /* @__PURE__ */ import_react22.default.createElement(Card, null, /* @__PURE__ */ import_react22.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react22.default.createElement("div", null, /* @__PURE__ */ import_react22.default.createElement("p", { className: "mb-4 max-w-sm" }, "The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless.")), /* @__PURE__ */ import_react22.default.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ import_react22.default.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ import_react22.default.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ import_react22.default.createElement(
889
1006
  "path",
890
1007
  {
891
1008
  d: "M14.1412 22.4427L17.5803 16.5199C17.7671 16.1981 18.1112 16 18.4834 16H20.8581C21.653 16 22.1565 16.8528 21.7725 17.5488L19.3042 22.0225C19.2202 22.1747 19.1762 22.3458 19.1762 22.5196C19.1762 23.0879 19.6369 23.5486 20.2052 23.5486H21.5827C22.1594 23.5486 22.627 24.0162 22.627 24.5929V31.347C22.627 31.9237 22.1594 32.3913 21.5827 32.3913H15.0443C14.4676 32.3913 14 31.9237 14 31.347V22.9671C14 22.7829 14.0487 22.602 14.1412 22.4427Z",
892
1009
  fill: "#FFFFFF"
893
1010
  }
894
- ), /* @__PURE__ */ import_react21.default.createElement(
1011
+ ), /* @__PURE__ */ import_react22.default.createElement(
895
1012
  "path",
896
1013
  {
897
1014
  d: "M25.356 22.4427L28.7951 16.5199C28.982 16.1981 29.326 16 29.6982 16H32.0729C32.8679 16 33.3713 16.8528 32.9873 17.5488L30.5191 22.0225C30.4351 22.1747 30.391 22.3458 30.391 22.5196C30.391 23.0879 30.8518 23.5486 31.4201 23.5486H32.7975C33.3743 23.5486 33.8418 24.0162 33.8418 24.5929V31.347C33.8418 31.9237 33.3743 32.3913 32.7975 32.3913H26.2592C25.6824 32.3913 25.2148 31.9237 25.2148 31.347V22.9671C25.2148 22.7829 25.2636 22.602 25.356 22.4427Z",
898
1015
  fill: "#FFFFFF"
899
1016
  }
900
- )), /* @__PURE__ */ import_react21.default.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ import_react21.default.createElement("div", null, /* @__PURE__ */ import_react21.default.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ import_react21.default.createElement("div", null, " Chief Information Security Officer")))));
1017
+ )), /* @__PURE__ */ import_react22.default.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ import_react22.default.createElement("div", null, /* @__PURE__ */ import_react22.default.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ import_react22.default.createElement("div", null, " Chief Information Security Officer")))));
901
1018
  };
902
1019
 
903
1020
  // blocks/misc/LeadGenerator.tsx
@@ -907,122 +1024,6 @@ var import_react_hook_form = require("react-hook-form");
907
1024
  // elements/input/Input.tsx
908
1025
  var import_react24 = __toESM(require("react"));
909
1026
 
910
- // elements/label/Label.tsx
911
- var React21 = __toESM(require("react"));
912
-
913
- // elements/tooltip/Tooltip.tsx
914
- var import_react22 = __toESM(require("react"));
915
- var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
916
- var TooltipContent = import_react22.default.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ import_react22.default.createElement(
917
- TooltipPrimitive.Content,
918
- {
919
- ref,
920
- sideOffset,
921
- className: cn(
922
- "hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-text-popover-foreground hawa-shadow-md hawa-animate-in hawa-fade-in-0 hawa-zoom-in-95 data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=closed]:hawa-zoom-out-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
923
- {
924
- "hawa-text-xs": size === "small",
925
- "hawa-text-xl": size === "large"
926
- },
927
- className
928
- ),
929
- ...props
930
- }
931
- ));
932
- TooltipContent.displayName = TooltipPrimitive.Content.displayName;
933
- var TooltipArrow = import_react22.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ import_react22.default.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
934
- TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
935
- var Tooltip = ({
936
- side,
937
- size,
938
- open,
939
- content,
940
- children,
941
- disabled,
942
- defaultOpen,
943
- onOpenChange,
944
- triggerProps,
945
- contentProps,
946
- providerProps,
947
- delayDuration = 300,
948
- ...props
949
- }) => {
950
- return /* @__PURE__ */ import_react22.default.createElement(
951
- TooltipPrimitive.TooltipProvider,
952
- {
953
- delayDuration,
954
- ...providerProps
955
- },
956
- /* @__PURE__ */ import_react22.default.createElement(
957
- TooltipPrimitive.Root,
958
- {
959
- open: !disabled && open,
960
- defaultOpen,
961
- onOpenChange,
962
- ...props
963
- },
964
- /* @__PURE__ */ import_react22.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
965
- /* @__PURE__ */ import_react22.default.createElement(
966
- TooltipContent,
967
- {
968
- size,
969
- side,
970
- align: "center",
971
- ...contentProps,
972
- style: {
973
- ...contentProps == null ? void 0 : contentProps.style,
974
- maxWidth: "var(--radix-tooltip-content-available-width)",
975
- maxHeight: "var(--radix-tooltip-content-available-height)"
976
- }
977
- },
978
- content
979
- )
980
- )
981
- );
982
- };
983
-
984
- // elements/label/Label.tsx
985
- var Label = React21.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React21.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React21.createElement(
986
- "label",
987
- {
988
- ref,
989
- className: cn(
990
- "hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70",
991
- className
992
- ),
993
- ...props
994
- },
995
- children,
996
- required && /* @__PURE__ */ React21.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
997
- ), hint && /* @__PURE__ */ React21.createElement(
998
- Tooltip,
999
- {
1000
- content: hint,
1001
- side: hintSide,
1002
- triggerProps: {
1003
- tabIndex: -1,
1004
- onClick: (event) => event.preventDefault()
1005
- }
1006
- },
1007
- /* @__PURE__ */ React21.createElement("div", null, /* @__PURE__ */ React21.createElement(
1008
- "svg",
1009
- {
1010
- xmlns: "http://www.w3.org/2000/svg",
1011
- className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
1012
- viewBox: "0 0 24 24",
1013
- fill: "none",
1014
- stroke: "currentColor",
1015
- strokeWidth: "2",
1016
- strokeLinecap: "round",
1017
- strokeLinejoin: "round"
1018
- },
1019
- /* @__PURE__ */ React21.createElement("circle", { cx: "12", cy: "12", r: "10" }),
1020
- /* @__PURE__ */ React21.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
1021
- /* @__PURE__ */ React21.createElement("path", { d: "M12 17h.01" })
1022
- ))
1023
- )));
1024
- Label.displayName = "Label";
1025
-
1026
1027
  // elements/skeleton/Skeleton.tsx
1027
1028
  var import_react23 = __toESM(require("react"));
1028
1029
  function Skeleton({
@@ -1550,9 +1551,10 @@ var ContactForm = ({
1550
1551
  formId,
1551
1552
  formAutoComplete = "off",
1552
1553
  onSubmit,
1553
- customFields
1554
+ customFields,
1555
+ ...props
1554
1556
  }) => {
1555
- var _a, _b, _c;
1557
+ var _a, _b, _c, _d, _e;
1556
1558
  const customFieldsSchema = z.object({
1557
1559
  ...customFields == null ? void 0 : customFields.reduce(
1558
1560
  (acc, curr) => {
@@ -1620,7 +1622,7 @@ var ContactForm = ({
1620
1622
  ),
1621
1623
  style: cardless ? { boxShadow: "none" } : void 0
1622
1624
  },
1623
- /* @__PURE__ */ import_react30.default.createElement(CardContent, { headless: true, className: cardless ? "!hawa-p-0" : "" }, /* @__PURE__ */ import_react30.default.createElement(
1625
+ /* @__PURE__ */ import_react30.default.createElement(CardContent, { headless: true, className: cardless ? "!hawa-p-0" : "" }, props.showSuccess ? /* @__PURE__ */ import_react30.default.createElement(CardHeader, null, /* @__PURE__ */ import_react30.default.createElement(CardTitle, null, ((_d = texts == null ? void 0 : texts.success) == null ? void 0 : _d.title) || "Message Sent! \u{1F389}"), /* @__PURE__ */ import_react30.default.createElement(CardDescription, null, ((_e = texts == null ? void 0 : texts.success) == null ? void 0 : _e.description) || "Thank you for your submission, we will get back to you as soon as possible.")) : /* @__PURE__ */ import_react30.default.createElement(
1624
1626
  "form",
1625
1627
  {
1626
1628
  noValidate: true,