@sikka/hawa 0.2.40-next → 0.2.41-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/index.mjs CHANGED
@@ -157,15 +157,7 @@ import * as React3 from "react";
157
157
  import * as DialogPrimitive from "@radix-ui/react-dialog";
158
158
  var Dialog = DialogPrimitive.Root;
159
159
  var DialogTrigger = DialogPrimitive.Trigger;
160
- var DialogPortal = ({
161
- // className,
162
- ...props
163
- }) => /* @__PURE__ */ React3.createElement(
164
- DialogPrimitive.Portal,
165
- {
166
- ...props
167
- }
168
- );
160
+ var DialogPortal = ({ ...props }) => /* @__PURE__ */ React3.createElement(DialogPrimitive.Portal, { ...props });
169
161
  DialogPortal.displayName = DialogPrimitive.Portal.displayName;
170
162
  var DialogOverlay = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
171
163
  DialogPrimitive.Overlay,
@@ -616,18 +608,18 @@ import * as React9 from "react";
616
608
  import * as ToastPrimitives from "@radix-ui/react-toast";
617
609
  import { cva as cva2 } from "class-variance-authority";
618
610
  var toastVariants = cva2(
619
- "group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
611
+ "hawa-group hawa-pointer-events-auto hawa-relative hawa-flex hawa-w-full hawa-items-center hawa-justify-between hawa-space-x-4 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-shadow-lg hawa-transition-all data-[swipe=cancel]:hawa-translate-x-0 data-[swipe=end]:hawa-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:hawa-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:hawa-transition-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[swipe=end]:hawa-animate-out data-[state=closed]:hawa-fade-out-80 data-[state=open]:hawa-slide-in-from-top-full data-[state=open]:sm:hawa-slide-in-from-bottom-full",
620
612
  {
621
613
  variants: {
622
614
  variant: {
623
- default: "border bg-background text-foreground",
624
- destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
615
+ default: "hawa-border hawa-bg-background hawa-text-foreground",
616
+ destructive: "hawa-destructive hawa-group hawa-border-destructive hawa-bg-destructive hawa-text-destructive-foreground"
625
617
  },
626
618
  severity: {
627
- info: "info group text-info-foreground bg-info",
628
- warning: "warning group text-warning-foreground bg-warning",
629
- error: "error group border-error bg-error text-error-foreground",
630
- success: "success group text-success-foreground bg-success",
619
+ info: "hawa-info hawa-group hawa-text-info-foreground hawa-bg-info",
620
+ warning: "hawa-warning hawa-group hawa-text-warning-foreground hawa-bg-warning",
621
+ error: "hawa-error hawa-group hawa-border-error hawa-bg-error hawa-text-error-foreground",
622
+ success: "hawa-success hawa-group hawa-text-success-foreground hawa-bg-success",
631
623
  none: ""
632
624
  }
633
625
  },
@@ -642,7 +634,7 @@ var ToastViewport = React9.forwardRef(({ className, ...props }, ref) => /* @__PU
642
634
  {
643
635
  ref,
644
636
  className: cn(
645
- "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
637
+ "hawa-fixed hawa-top-0 hawa-z-[100] hawa-flex hawa-max-h-screen hawa-w-full hawa-flex-col-reverse hawa-p-4 sm:hawa-bottom-0 sm:hawa-right-0 sm:hawa-top-auto sm:hawa-flex-col md:hawa-max-w-[420px]",
646
638
  className
647
639
  ),
648
640
  ...props
@@ -657,7 +649,7 @@ var Toast = React9.forwardRef(({ className, variant, severity = "none", directio
657
649
  className: cn(
658
650
  toastVariants({ variant, severity }),
659
651
  className,
660
- direction === "rtl" ? "p-6 pl-0 pr-10 data-[state=closed]:slide-out-to-left-full" : "p-6 pr-8 data-[state=closed]:slide-out-to-right-full"
652
+ direction === "rtl" ? "hawa-p-6 hawa-pl-0 hawa-pr-10 data-[state=closed]:hawa-slide-out-to-left-full" : "hawa-p-6 hawa-pr-8 data-[state=closed]:hawa-slide-out-to-right-full"
661
653
  ),
662
654
  dir: direction,
663
655
  ...props
@@ -671,11 +663,11 @@ var ToastAction = React9.forwardRef(({ className, ...props }, ref) => {
671
663
  {
672
664
  ref,
673
665
  className: cn(
674
- "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
675
- "group-[.info]:border-muted/40 group-[.info]:hover:border-info/30 group-[.info]:hover:bg-info group-[.info]:hover:text-info-foreground group-[.info]:focus:ring-info",
676
- "group-[.error]:border-muted/40 group-[.error]:hover:border-error/30 group-[.error]:hover:bg-error group-[.error]:hover:text-error-foreground group-[.error]:focus:ring-error",
677
- "group-[.success]:border-muted/40 group-[.success]:hover:border-success/30 group-[.success]:hover:bg-success group-[.success]:hover:text-success-foreground group-[.success]:focus:ring-success",
678
- "group-[.warning]:border-muted/40 group-[.warning]:hover:border-warning/30 group-[.warning]:hover:bg-warning group-[.warning]:hover:text-warning-foreground group-[.warning]:focus:ring-warning",
666
+ "hawa-inline-flex hawa-h-8 hawa-shrink-0 hawa-items-center hawa-justify-center hawa-rounded-md hawa-border hawa-bg-transparent hawa-px-3 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors hover:hawa-bg-secondary hover:hawa-text-secondary-foreground focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
667
+ "group-[.info]:hawa-border-muted/40 group-[.info]:hover:hawa-border-info/30 group-[.info]:hover:hawa-bg-info group-[.info]:hover:hawa-text-info-foreground group-[.info]:focus:hawa-ring-info",
668
+ "group-[.error]:hawa-border-muted/40 group-[.error]:hover:hawa-border-error/30 group-[.error]:hover:hawa-bg-error group-[.error]:hover:hawa-text-error-foreground group-[.error]:focus:hawa-ring-error",
669
+ "group-[.success]:hawa-border-muted/40 group-[.success]:hover:hawa-border-success/30 group-[.success]:hover:hawa-bg-success group-[.success]:hover:hawa-text-success-foreground group-[.success]:focus:hawa-ring-success",
670
+ "group-[.warning]:hawa-border-muted/40 group-[.warning]:hover:hawa-border-warning/30 group-[.warning]:hover:hawa-bg-warning group-[.warning]:hover:hawa-text-warning-foreground group-[.warning]:focus:hawa-ring-warning",
679
671
  className
680
672
  ),
681
673
  ...props
@@ -688,7 +680,7 @@ var ToastClose = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE_
688
680
  {
689
681
  ref,
690
682
  className: cn(
691
- "absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
683
+ "hawa-absolute hawa-right-2 hawa-top-2 hawa-rounded-md hawa-p-1 hawa-text-foreground/50 hawa-opacity-0 hawa-transition-opacity hover:hawa-text-foreground focus:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 group-hover:hawa-opacity-100 group-[.destructive]:hawa-text-red-300 group-[.destructive]:hover:hawa-text-red-50 group-[.destructive]:focus:hawa-ring-red-400 group-[.destructive]:focus:hawa-ring-offset-red-600",
692
684
  className
693
685
  ),
694
686
  "toast-close": "",
@@ -699,7 +691,7 @@ var ToastClose = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE_
699
691
  {
700
692
  "aria-label": "Close Icon",
701
693
  "aria-hidden": "true",
702
- className: "h-4 w-4",
694
+ className: "hawa-h-4 hawa-w-4",
703
695
  fill: "currentColor",
704
696
  viewBox: "0 0 20 20"
705
697
  },
@@ -718,7 +710,7 @@ var ToastTitle = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE_
718
710
  ToastPrimitives.Title,
719
711
  {
720
712
  ref,
721
- className: cn("text-sm font-semibold", className),
713
+ className: cn("hawa-text-sm hawa-font-semibold", className),
722
714
  ...props
723
715
  }
724
716
  ));
@@ -727,7 +719,7 @@ var ToastDescription = React9.forwardRef(({ className, ...props }, ref) => /* @_
727
719
  ToastPrimitives.Description,
728
720
  {
729
721
  ref,
730
- className: cn("text-sm opacity-90", className),
722
+ className: cn("hawa-text-sm hawa-opacity-90", className),
731
723
  ...props
732
724
  }
733
725
  ));
@@ -855,8 +847,13 @@ function Toaster(props) {
855
847
  const { toasts } = useToast();
856
848
  let isRTL = props.direction === "rtl";
857
849
  return /* @__PURE__ */ React11.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, toasts.map(function({ id, title, description, action, ...toastProps }) {
858
- return /* @__PURE__ */ React11.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ React11.createElement("div", { className: "grid gap-1 text-start" }, title && /* @__PURE__ */ React11.createElement(ToastTitle, null, title), description && /* @__PURE__ */ React11.createElement(ToastDescription, null, description)), action, /* @__PURE__ */ React11.createElement(ToastClose, null));
859
- }), /* @__PURE__ */ React11.createElement(ToastViewport, { className: cn("gap-2", isRTL && "fixed left-0") }));
850
+ return /* @__PURE__ */ React11.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ React11.createElement("div", { className: "hawa-grid hawa-gap-1 hawa-text-start" }, title && /* @__PURE__ */ React11.createElement(ToastTitle, null, title), description && /* @__PURE__ */ React11.createElement(ToastDescription, null, description)), action, /* @__PURE__ */ React11.createElement(ToastClose, null));
851
+ }), /* @__PURE__ */ React11.createElement(
852
+ ToastViewport,
853
+ {
854
+ className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
855
+ }
856
+ ));
860
857
  }
861
858
 
862
859
  // components/elements/Switch.tsx
@@ -1058,14 +1055,289 @@ var Radio = ({
1058
1055
  }
1059
1056
  };
1060
1057
 
1058
+ // components/elements/Skeleton.tsx
1059
+ import React14 from "react";
1060
+ function Skeleton({ className, animation = "pulse", ...props }) {
1061
+ return /* @__PURE__ */ React14.createElement(
1062
+ "div",
1063
+ {
1064
+ className: cn(
1065
+ animation === "pulse" ? "hawa-animate-pulse hawa-rounded hawa-bg-muted" : "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10",
1066
+ className
1067
+ ),
1068
+ ...props
1069
+ }
1070
+ );
1071
+ }
1072
+ {
1073
+ }
1074
+
1075
+ // components/elements/Chip.tsx
1076
+ import React15 from "react";
1077
+ import clsx3 from "clsx";
1078
+ var Chip = ({
1079
+ label,
1080
+ size = "normal",
1081
+ icon,
1082
+ color,
1083
+ dot,
1084
+ dotType = "available"
1085
+ }) => {
1086
+ let defaultStyles = "hawa-flex hawa-flex-row hawa-w-fit hawa-gap-1 hawa-items-center hawa-rounded hawa-px-2.5 hawa-py-0.5 hawa-font-bold hawa-text-blue-800 hawa-bg-blue-200 dark:hawa-text-blue-800";
1087
+ let sizeStyles = {
1088
+ small: "hawa-h-full hawa-leading-4 hawa-px-1 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
1089
+ normal: "hawa-h-fit hawa-text-xs",
1090
+ large: ""
1091
+ };
1092
+ let dotStyles = {
1093
+ small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
1094
+ normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
1095
+ large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
1096
+ };
1097
+ let dotTypeStyles = {
1098
+ available: "hawa-bg-green-500",
1099
+ unavailable: "hawa-bg-red-500"
1100
+ };
1101
+ return /* @__PURE__ */ React15.createElement(
1102
+ "span",
1103
+ {
1104
+ className: clsx3(
1105
+ defaultStyles,
1106
+ sizeStyles[size],
1107
+ color ? `hawa-bg-${color}-100 hawa-text-${color}-500` : "hawa-bg-layoutPrimary-500"
1108
+ )
1109
+ },
1110
+ dot && /* @__PURE__ */ React15.createElement("span", { className: clsx3(dotStyles[size], dotTypeStyles[dotType]) }),
1111
+ icon && icon,
1112
+ label
1113
+ );
1114
+ };
1115
+
1116
+ // components/elements/Label.tsx
1117
+ import * as React16 from "react";
1118
+ import * as LabelPrimitive from "@radix-ui/react-label";
1119
+ import { cva as cva3 } from "class-variance-authority";
1120
+ var labelVariants = cva3(
1121
+ "hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70"
1122
+ );
1123
+ var Label = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React16.createElement(
1124
+ LabelPrimitive.Root,
1125
+ {
1126
+ ref,
1127
+ className: cn(labelVariants(), className),
1128
+ ...props
1129
+ }
1130
+ ));
1131
+ Label.displayName = LabelPrimitive.Root.displayName;
1132
+
1133
+ // components/elements/Alert.tsx
1134
+ import React17, { useRef as useRef3, useState as useState6, useEffect as useEffect4 } from "react";
1135
+ import clsx4 from "clsx";
1136
+ var Alert = ({
1137
+ variant = "normal",
1138
+ direction = "ltr",
1139
+ severity = "info",
1140
+ duration,
1141
+ icon,
1142
+ className,
1143
+ ...props
1144
+ }) => {
1145
+ const alertRef = useRef3(null);
1146
+ const [closed, setClosed] = useState6(false);
1147
+ useEffect4(() => {
1148
+ if (duration) {
1149
+ const timeoutHide = setTimeout(() => {
1150
+ setClosed(true);
1151
+ }, duration);
1152
+ const timeoutDestroy = setTimeout(() => {
1153
+ setClosed(true);
1154
+ if (alertRef?.current) {
1155
+ alertRef?.current.removeChild(alertRef?.current.children[0]);
1156
+ }
1157
+ }, duration + 1e3);
1158
+ return () => {
1159
+ clearTimeout(timeoutHide);
1160
+ clearTimeout(timeoutDestroy);
1161
+ };
1162
+ }
1163
+ }, [duration]);
1164
+ let closeButtonStyle = {
1165
+ none: "hover:hawa-bg-gray-300",
1166
+ info: "hover:hawa-bg-blue-300",
1167
+ warning: "hover:hawa-bg-yellow-300",
1168
+ error: "hover:hawa-bg-red-300",
1169
+ success: "hover:hawa-bg-green-300"
1170
+ };
1171
+ let styleVariant = {
1172
+ // normal: {
1173
+ none: "hawa-text-gray-700 hawa-bg-gray-100 dark:hawa-bg-gray-200 dark:hawa-text-gray-800",
1174
+ info: "hawa-text-blue-700 hawa-bg-blue-100 dark:hawa-bg-blue-200 dark:hawa-text-blue-800",
1175
+ warning: "hawa-text-yellow-700 hawa-bg-yellow-100 dark:hawa-bg-yellow-200 dark:hawa-text-yellow-800",
1176
+ error: "hawa-text-red-700 hawa-bg-red-100 dark:hawa-bg-red-200 dark:hawa-text-red-800",
1177
+ success: "hawa-text-green-700 hawa-bg-green-100 dark:hawa-bg-green-200 dark:hawa-text-green-800"
1178
+ };
1179
+ return /* @__PURE__ */ React17.createElement("div", { ref: alertRef }, /* @__PURE__ */ React17.createElement(
1180
+ "div",
1181
+ {
1182
+ className: clsx4(
1183
+ "hawa-relative hawa-mb-4 hawa-flex hawa-flex-col hawa-rounded hawa-p-4 hawa-text-sm hawa-transition-all",
1184
+ styleVariant[severity],
1185
+ closed ? "hawa-opacity-0" : "hawa-opacity-100",
1186
+ className
1187
+ ),
1188
+ role: "alert",
1189
+ dir: direction
1190
+ },
1191
+ /* @__PURE__ */ React17.createElement("div", { className: "hawa-flex hawa-flex-row" }, icon && /* @__PURE__ */ React17.createElement(
1192
+ "div",
1193
+ {
1194
+ className: direction === "rtl" ? "hawa-pl-2 hawa-pt-1" : "hawa-pr-2 hawa-pt-1"
1195
+ },
1196
+ icon
1197
+ ), /* @__PURE__ */ React17.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React17.createElement(
1198
+ "span",
1199
+ {
1200
+ className: clsx4(
1201
+ "font-medium",
1202
+ direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8"
1203
+ )
1204
+ },
1205
+ props.title
1206
+ ), /* @__PURE__ */ React17.createElement("span", null, props.text), props.actions && /* @__PURE__ */ React17.createElement("div", { className: "hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2" }, props.actions.map((act, index) => /* @__PURE__ */ React17.createElement(
1207
+ Button,
1208
+ {
1209
+ key: index,
1210
+ variant: act.variant,
1211
+ onClick: act.onClick()
1212
+ },
1213
+ act.label
1214
+ ))))),
1215
+ !props.persistant && /* @__PURE__ */ React17.createElement(
1216
+ "button",
1217
+ {
1218
+ type: "button",
1219
+ className: clsx4(
1220
+ "hawa-absolute hawa-top-2 hawa-inline-flex hawa-h-9 hawa-w-9 hawa-items-center hawa-justify-center hawa-rounded-inner hawa-p-1.5 hawa-text-gray-400 hawa-transition-all hover:hawa-text-gray-900",
1221
+ closeButtonStyle[severity],
1222
+ direction === "rtl" ? "hawa-left-2" : "hawa-right-2"
1223
+ ),
1224
+ "data-dismiss-target": "#alert-default",
1225
+ "aria-label": "Close",
1226
+ onClick: () => {
1227
+ setClosed(true);
1228
+ setTimeout(() => {
1229
+ if (alertRef?.current) {
1230
+ alertRef?.current.removeChild(alertRef?.current.children[0]);
1231
+ }
1232
+ }, 200);
1233
+ }
1234
+ },
1235
+ /* @__PURE__ */ React17.createElement("span", { className: "sr-only" }, "Close"),
1236
+ /* @__PURE__ */ React17.createElement(
1237
+ "svg",
1238
+ {
1239
+ "aria-label": "Close Icon",
1240
+ "aria-hidden": "true",
1241
+ className: "hawa-h-5 hawa-w-5",
1242
+ fill: "currentColor",
1243
+ viewBox: "0 0 20 20"
1244
+ },
1245
+ /* @__PURE__ */ React17.createElement(
1246
+ "path",
1247
+ {
1248
+ fillRule: "evenodd",
1249
+ d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
1250
+ clipRule: "evenodd"
1251
+ }
1252
+ )
1253
+ )
1254
+ )
1255
+ ));
1256
+ };
1257
+
1258
+ // components/elements/Popover.tsx
1259
+ import * as React18 from "react";
1260
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
1261
+ var PopoverContent = React18.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React18.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React18.createElement(
1262
+ PopoverPrimitive.Content,
1263
+ {
1264
+ ref,
1265
+ align,
1266
+ sideOffset,
1267
+ className: cn(
1268
+ "hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-p-4 hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-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 dark:hawa-shadow-dark",
1269
+ className
1270
+ ),
1271
+ ...props
1272
+ }
1273
+ )));
1274
+ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
1275
+ var Popover = ({
1276
+ trigger,
1277
+ children,
1278
+ className,
1279
+ align = "center",
1280
+ side,
1281
+ sideOffset = 4,
1282
+ open,
1283
+ disableTrigger,
1284
+ ...props
1285
+ }) => /* @__PURE__ */ React18.createElement(PopoverPrimitive.Root, { open, ...props }, /* @__PURE__ */ React18.createElement(PopoverPrimitive.Trigger, { disabled: disableTrigger }, trigger), /* @__PURE__ */ React18.createElement(
1286
+ PopoverContent,
1287
+ {
1288
+ side,
1289
+ className,
1290
+ align,
1291
+ sideOffset
1292
+ },
1293
+ children
1294
+ ));
1295
+
1296
+ // components/elements/Textarea.tsx
1297
+ import * as React19 from "react";
1298
+ var Textarea = React19.forwardRef(
1299
+ ({ className, ...props }, ref) => {
1300
+ return /* @__PURE__ */ React19.createElement(
1301
+ "textarea",
1302
+ {
1303
+ className: cn(
1304
+ "hawa-flex hawa-min-h-[80px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
1305
+ className
1306
+ ),
1307
+ ref,
1308
+ ...props
1309
+ }
1310
+ );
1311
+ }
1312
+ );
1313
+ Textarea.displayName = "Textarea";
1314
+
1315
+ // components/elements/Slider.tsx
1316
+ import * as React20 from "react";
1317
+ import * as SliderPrimitive from "@radix-ui/react-slider";
1318
+ var Slider = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React20.createElement(
1319
+ SliderPrimitive.Root,
1320
+ {
1321
+ ref,
1322
+ className: cn(
1323
+ "hawa-relative hawa-flex hawa-w-full hawa-touch-none hawa-select-none hawa-items-center",
1324
+ className
1325
+ ),
1326
+ ...props
1327
+ },
1328
+ /* @__PURE__ */ React20.createElement(SliderPrimitive.Track, { className: "hawa-relative hawa-h-2 hawa-w-full hawa-grow hawa-overflow-hidden hawa-rounded-full hawa-bg-secondary" }, /* @__PURE__ */ React20.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
1329
+ /* @__PURE__ */ React20.createElement(SliderPrimitive.Thumb, { className: "hawa-block hawa-h-5 hawa-w-5 hawa-rounded-full hawa-border-2 hawa-border-primary hawa-bg-background hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50" })
1330
+ ));
1331
+ Slider.displayName = SliderPrimitive.Root.displayName;
1332
+
1061
1333
  // components/elements/DropdownMenu.tsx
1062
- import * as React14 from "react";
1334
+ import * as React21 from "react";
1063
1335
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
1064
1336
  var DropdownMenuRoot = DropdownMenuPrimitive.Root;
1065
1337
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
1066
1338
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
1067
1339
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
1068
- var DropdownMenuSubTrigger = React14.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React14.createElement(
1340
+ var DropdownMenuSubTrigger = React21.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React21.createElement(
1069
1341
  DropdownMenuPrimitive.SubTrigger,
1070
1342
  {
1071
1343
  ref,
@@ -1076,9 +1348,9 @@ var DropdownMenuSubTrigger = React14.forwardRef(({ className, inset, children, .
1076
1348
  ),
1077
1349
  ...props
1078
1350
  },
1079
- /* @__PURE__ */ React14.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
1351
+ /* @__PURE__ */ React21.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
1080
1352
  " ",
1081
- /* @__PURE__ */ React14.createElement(
1353
+ /* @__PURE__ */ React21.createElement(
1082
1354
  "svg",
1083
1355
  {
1084
1356
  "aria-label": "Chevron Right Icon",
@@ -1090,7 +1362,7 @@ var DropdownMenuSubTrigger = React14.forwardRef(({ className, inset, children, .
1090
1362
  width: "1em",
1091
1363
  className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
1092
1364
  },
1093
- /* @__PURE__ */ React14.createElement(
1365
+ /* @__PURE__ */ React21.createElement(
1094
1366
  "path",
1095
1367
  {
1096
1368
  fillRule: "evenodd",
@@ -1100,7 +1372,7 @@ var DropdownMenuSubTrigger = React14.forwardRef(({ className, inset, children, .
1100
1372
  )
1101
1373
  ));
1102
1374
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
1103
- var DropdownMenuSubContent = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
1375
+ var DropdownMenuSubContent = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React21.createElement(
1104
1376
  DropdownMenuPrimitive.SubContent,
1105
1377
  {
1106
1378
  ref,
@@ -1112,7 +1384,7 @@ var DropdownMenuSubContent = React14.forwardRef(({ className, ...props }, ref) =
1112
1384
  }
1113
1385
  ));
1114
1386
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
1115
- var DropdownMenuContent = React14.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React14.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React14.createElement(
1387
+ var DropdownMenuContent = React21.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React21.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React21.createElement(
1116
1388
  DropdownMenuPrimitive.Content,
1117
1389
  {
1118
1390
  ref,
@@ -1125,9 +1397,9 @@ var DropdownMenuContent = React14.forwardRef(({ className, sideOffset = 4, ...pr
1125
1397
  }
1126
1398
  )));
1127
1399
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
1128
- var DropdownMenuItem = React14.forwardRef(({ className, inset, ...props }, ref) => {
1400
+ var DropdownMenuItem = React21.forwardRef(({ className, inset, ...props }, ref) => {
1129
1401
  console.log("sdsdsds", props.children);
1130
- return /* @__PURE__ */ React14.createElement(
1402
+ return /* @__PURE__ */ React21.createElement(
1131
1403
  DropdownMenuPrimitive.Item,
1132
1404
  {
1133
1405
  disabled: props.disabled,
@@ -1140,12 +1412,12 @@ var DropdownMenuItem = React14.forwardRef(({ className, inset, ...props }, ref)
1140
1412
  ),
1141
1413
  ...props
1142
1414
  },
1143
- /* @__PURE__ */ React14.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
1415
+ /* @__PURE__ */ React21.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
1144
1416
  props.end && props.end
1145
1417
  );
1146
1418
  });
1147
1419
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
1148
- var DropdownMenuCheckboxItem = React14.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React14.createElement(
1420
+ var DropdownMenuCheckboxItem = React21.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React21.createElement(
1149
1421
  DropdownMenuPrimitive.CheckboxItem,
1150
1422
  {
1151
1423
  ref,
@@ -1156,7 +1428,7 @@ var DropdownMenuCheckboxItem = React14.forwardRef(({ className, children, checke
1156
1428
  checked,
1157
1429
  ...props
1158
1430
  },
1159
- /* @__PURE__ */ React14.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React14.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React14.createElement(
1431
+ /* @__PURE__ */ React21.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React21.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React21.createElement(
1160
1432
  "svg",
1161
1433
  {
1162
1434
  "aria-label": "Check Mark",
@@ -1167,12 +1439,12 @@ var DropdownMenuCheckboxItem = React14.forwardRef(({ className, children, checke
1167
1439
  height: "0.60em",
1168
1440
  width: "0.60em"
1169
1441
  },
1170
- /* @__PURE__ */ React14.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" })
1442
+ /* @__PURE__ */ React21.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" })
1171
1443
  ), " ")),
1172
1444
  children
1173
1445
  ));
1174
1446
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
1175
- var DropdownMenuRadioItem = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React14.createElement(
1447
+ var DropdownMenuRadioItem = React21.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React21.createElement(
1176
1448
  DropdownMenuPrimitive.RadioItem,
1177
1449
  {
1178
1450
  ref,
@@ -1182,7 +1454,7 @@ var DropdownMenuRadioItem = React14.forwardRef(({ className, children, ...props
1182
1454
  ),
1183
1455
  ...props
1184
1456
  },
1185
- /* @__PURE__ */ React14.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React14.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React14.createElement(
1457
+ /* @__PURE__ */ React21.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React21.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React21.createElement(
1186
1458
  "svg",
1187
1459
  {
1188
1460
  xmlns: "http://www.w3.org/2000/svg",
@@ -1197,12 +1469,12 @@ var DropdownMenuRadioItem = React14.forwardRef(({ className, children, ...props
1197
1469
  strokeLinejoin: "round",
1198
1470
  className: "hawa-h-2 hawa-w-2 hawa-fill-current"
1199
1471
  },
1200
- /* @__PURE__ */ React14.createElement("circle", { cx: "12", cy: "12", r: "10" })
1472
+ /* @__PURE__ */ React21.createElement("circle", { cx: "12", cy: "12", r: "10" })
1201
1473
  ))),
1202
1474
  children
1203
1475
  ));
1204
1476
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
1205
- var DropdownMenuLabel = React14.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React14.createElement(
1477
+ var DropdownMenuLabel = React21.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React21.createElement(
1206
1478
  DropdownMenuPrimitive.Label,
1207
1479
  {
1208
1480
  ref,
@@ -1215,7 +1487,7 @@ var DropdownMenuLabel = React14.forwardRef(({ className, inset, ...props }, ref)
1215
1487
  }
1216
1488
  ));
1217
1489
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
1218
- var DropdownMenuSeparator = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React14.createElement(
1490
+ var DropdownMenuSeparator = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React21.createElement(
1219
1491
  DropdownMenuPrimitive.Separator,
1220
1492
  {
1221
1493
  ref,
@@ -1228,7 +1500,7 @@ var DropdownMenuShortcut = ({
1228
1500
  className,
1229
1501
  ...props
1230
1502
  }) => {
1231
- return /* @__PURE__ */ React14.createElement(
1503
+ return /* @__PURE__ */ React21.createElement(
1232
1504
  "span",
1233
1505
  {
1234
1506
  className: cn(
@@ -1264,7 +1536,7 @@ var DropdownMenu = ({
1264
1536
  default: "hawa-px-2 hawa-py-3 ",
1265
1537
  sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5"
1266
1538
  };
1267
- return /* @__PURE__ */ React14.createElement(DropdownMenuRoot, { dir: direction }, /* @__PURE__ */ React14.createElement(DropdownMenuTrigger, { asChild: true, className: triggerClassname }, trigger), /* @__PURE__ */ React14.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React14.createElement(
1539
+ return /* @__PURE__ */ React21.createElement(DropdownMenuRoot, { dir: direction }, /* @__PURE__ */ React21.createElement(DropdownMenuTrigger, { asChild: true, className: triggerClassname }, trigger), /* @__PURE__ */ React21.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React21.createElement(
1268
1540
  DropdownMenuContent,
1269
1541
  {
1270
1542
  side,
@@ -1278,12 +1550,12 @@ var DropdownMenu = ({
1278
1550
  alignOffset
1279
1551
  },
1280
1552
  items && items.map((item, index) => {
1281
- if (item.type === "separator") {
1282
- return /* @__PURE__ */ React14.createElement(DropdownMenuSeparator, { key: index });
1283
- } else if (item.type === "label") {
1284
- return /* @__PURE__ */ React14.createElement(DropdownMenuLabel, { key: index }, item.label);
1553
+ if (item.itemType === "separator") {
1554
+ return /* @__PURE__ */ React21.createElement(DropdownMenuSeparator, { key: index });
1555
+ } else if (item.itemType === "label") {
1556
+ return /* @__PURE__ */ React21.createElement(DropdownMenuLabel, { key: index }, item.label);
1285
1557
  } else {
1286
- return item.subitems ? /* @__PURE__ */ React14.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React14.createElement(
1558
+ return item.subitems ? /* @__PURE__ */ React21.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React21.createElement(
1287
1559
  DropdownMenuSubTrigger,
1288
1560
  {
1289
1561
  className: cn(sizeStyles[size]),
@@ -1291,7 +1563,7 @@ var DropdownMenu = ({
1291
1563
  },
1292
1564
  item.icon && item.icon,
1293
1565
  item.label && item.label
1294
- ), /* @__PURE__ */ React14.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React14.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => /* @__PURE__ */ React14.createElement(
1566
+ ), /* @__PURE__ */ React21.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React21.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => /* @__PURE__ */ React21.createElement(
1295
1567
  DropdownMenuItem,
1296
1568
  {
1297
1569
  key: subIndex,
@@ -1309,7 +1581,7 @@ var DropdownMenu = ({
1309
1581
  },
1310
1582
  subitem.icon && subitem.icon,
1311
1583
  subitem.label && subitem.label
1312
- ))))) : /* @__PURE__ */ React14.createElement(
1584
+ ))))) : /* @__PURE__ */ React21.createElement(
1313
1585
  DropdownMenuItem,
1314
1586
  {
1315
1587
  key: index,
@@ -1344,11 +1616,77 @@ var DropdownMenu = ({
1344
1616
  )));
1345
1617
  };
1346
1618
 
1619
+ // components/elements/PinInput.tsx
1620
+ import React22, { useEffect as useEffect5, useState as useState7 } from "react";
1621
+ import clsx5 from "clsx";
1622
+ var PinInput = ({
1623
+ label,
1624
+ icon,
1625
+ digits,
1626
+ width = "normal",
1627
+ getPins,
1628
+ ...props
1629
+ }) => {
1630
+ const [pin, setPin] = useState7(Array.from(Array(digits)));
1631
+ const handleKeyDown = (e, index) => {
1632
+ let backTo = 0;
1633
+ if (e.key === "Backspace") {
1634
+ e.target.value.length === 0 ? backTo = index - 1 : backTo = index;
1635
+ const previousInput = document.getElementById(`input-${backTo}`);
1636
+ previousInput?.focus();
1637
+ }
1638
+ };
1639
+ useEffect5(() => {
1640
+ let unfilled = pin.includes(void 0);
1641
+ if (!unfilled && getPins) {
1642
+ getPins(pin);
1643
+ }
1644
+ });
1645
+ const handleChange = (e, index) => {
1646
+ if (!/^\d*$/.test(e.target.value)) {
1647
+ const newPin = [...pin];
1648
+ newPin[index] = "";
1649
+ setPin(newPin);
1650
+ return;
1651
+ } else {
1652
+ const newPin = [...pin];
1653
+ newPin[index] = e.target.value;
1654
+ setPin(newPin);
1655
+ if (e.target.value.length === 1) {
1656
+ const nextInput = document.getElementById(`input-${index + 1}`);
1657
+ nextInput?.focus();
1658
+ } else if (e.target.value.length === 0) {
1659
+ const previousInput = document.getElementById(`input-${index - 1}`);
1660
+ previousInput?.focus();
1661
+ }
1662
+ }
1663
+ };
1664
+ return /* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2" }, pin.map((value, index) => /* @__PURE__ */ React22.createElement(
1665
+ "input",
1666
+ {
1667
+ key: index,
1668
+ type: "text",
1669
+ maxLength: 1,
1670
+ value,
1671
+ id: `input-${index}`,
1672
+ pattern: "[0-9]*",
1673
+ className: clsx5(
1674
+ "hawa-h-10 hawa-rounded hawa-border hawa-bg-background hawa-text-center",
1675
+ width === "full" ? "hawa-w-full" : "hawa-w-10"
1676
+ ),
1677
+ onChange: (e) => handleChange(e, index),
1678
+ onKeyDown: (e) => handleKeyDown(e, index),
1679
+ onFocus: (e) => e.target.select(),
1680
+ ...props
1681
+ }
1682
+ )));
1683
+ };
1684
+
1347
1685
  // components/elements/ActionCard.tsx
1348
- import React15, { useState as useState6 } from "react";
1686
+ import React23, { useState as useState8 } from "react";
1349
1687
  var ActionCard = (props) => {
1350
- const [hovered, setHovered] = useState6(false);
1351
- return /* @__PURE__ */ React15.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ React15.createElement(
1688
+ const [hovered, setHovered] = useState8(false);
1689
+ return /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1" }, /* @__PURE__ */ React23.createElement(
1352
1690
  "div",
1353
1691
  {
1354
1692
  className: "hawa-group hawa-relative hawa-h-full hawa-w-full hawa-rounded hawa-border hawa-bg-background hawa-bg-cover hawa-bg-center hawa-transition-all hawa-duration-500 hover:hawa-drop-shadow-2xl",
@@ -1358,7 +1696,7 @@ var ActionCard = (props) => {
1358
1696
  onMouseEnter: () => setHovered(true),
1359
1697
  onMouseLeave: () => setHovered(false)
1360
1698
  },
1361
- props.blank ? /* @__PURE__ */ React15.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center " }, /* @__PURE__ */ React15.createElement(
1699
+ props.blank ? /* @__PURE__ */ React23.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center " }, /* @__PURE__ */ React23.createElement(
1362
1700
  "svg",
1363
1701
  {
1364
1702
  className: "hawa-h-10 hawa-w-10 hawa-text-foreground",
@@ -1370,11 +1708,11 @@ var ActionCard = (props) => {
1370
1708
  width: "1em",
1371
1709
  xmlns: "http://www.w3.org/2000/svg"
1372
1710
  },
1373
- /* @__PURE__ */ React15.createElement("path", { d: "M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z" })
1374
- )) : /* @__PURE__ */ React15.createElement("div", { className: "hawa-absolute hawa-inset-0 hawa-rounded hawa-bg-black hawa-opacity-50" }),
1375
- /* @__PURE__ */ React15.createElement("div", { className: "hawa-absolute hawa-bottom-2 hawa-right-2 hawa-z-10 hawa-opacity-0 hawa-transition-all hawa-duration-200 group-hover:hawa-opacity-100" }, props.inCardActions),
1376
- !props.blank && /* @__PURE__ */ React15.createElement("div", { className: "hawa-relative hawa-p-4" }, /* @__PURE__ */ React15.createElement("h1", { className: "hawa-text-white" }, props.title), /* @__PURE__ */ React15.createElement("p", { className: "hawa-text-white" }, props.subtitle))
1377
- ), /* @__PURE__ */ React15.createElement(
1711
+ /* @__PURE__ */ React23.createElement("path", { d: "M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z" })
1712
+ )) : /* @__PURE__ */ React23.createElement("div", { className: "hawa-absolute hawa-inset-0 hawa-rounded hawa-bg-black hawa-opacity-50" }),
1713
+ /* @__PURE__ */ React23.createElement("div", { className: "hawa-absolute hawa-bottom-2 hawa-right-2 hawa-z-10 hawa-opacity-0 hawa-transition-all hawa-duration-200 group-hover:hawa-opacity-100" }, props.inCardActions),
1714
+ !props.blank && /* @__PURE__ */ React23.createElement("div", { className: "hawa-relative hawa-p-4" }, /* @__PURE__ */ React23.createElement("h1", { className: "hawa-text-white" }, props.title), /* @__PURE__ */ React23.createElement("p", { className: "hawa-text-white" }, props.subtitle))
1715
+ ), /* @__PURE__ */ React23.createElement(
1378
1716
  "div",
1379
1717
  {
1380
1718
  className: `hawa-flex hawa-flex-row hawa-justify-between hawa-text-sm hawa-transition-all hawa-duration-200 ${hovered ? "hawa-opacity-100" : "hawa-opacity-0"}`
@@ -1382,8 +1720,76 @@ var ActionCard = (props) => {
1382
1720
  props.bottomElement
1383
1721
  ));
1384
1722
  };
1723
+
1724
+ // components/elements/AppStores.tsx
1725
+ import React24 from "react";
1726
+ var AppStores = (props) => {
1727
+ return /* @__PURE__ */ React24.createElement("div", { className: "hawa-flex hawa-justify-center" }, /* @__PURE__ */ React24.createElement("div", null, props.store === "apple" ? props.mode === "dark" ? /* @__PURE__ */ React24.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-bg-black hawa-text-white" }, /* @__PURE__ */ React24.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React24.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ React24.createElement(
1728
+ "path",
1729
+ {
1730
+ fill: "currentColor",
1731
+ d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
1732
+ }
1733
+ ))), /* @__PURE__ */ React24.createElement("div", null, /* @__PURE__ */ React24.createElement("div", { className: "hawa-text-xs" }, "Download on the"), /* @__PURE__ */ React24.createElement("div", { className: "hawa-font-sans hawa--mt-1 hawa-text-2xl hawa-font-semibold" }, "App Store"))) : /* @__PURE__ */ React24.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-border hawa-border-black hawa-bg-transparent hawa-text-black" }, /* @__PURE__ */ React24.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React24.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ React24.createElement(
1734
+ "path",
1735
+ {
1736
+ fill: "currentColor",
1737
+ d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
1738
+ }
1739
+ ))), /* @__PURE__ */ React24.createElement("div", null, /* @__PURE__ */ React24.createElement("div", { className: "hawa-text-xs" }, "Download on the"), /* @__PURE__ */ React24.createElement("div", { className: "hawa-font-sans hawa--mt-1 hawa-text-2xl hawa-font-semibold" }, "App Store"))) : props.mode === "dark" ? /* @__PURE__ */ React24.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-bg-black hawa-text-white" }, /* @__PURE__ */ React24.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React24.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ React24.createElement(
1740
+ "path",
1741
+ {
1742
+ fill: "#FFD400",
1743
+ d: "M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"
1744
+ }
1745
+ ), /* @__PURE__ */ React24.createElement(
1746
+ "path",
1747
+ {
1748
+ fill: "#FF3333",
1749
+ d: "M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"
1750
+ }
1751
+ ), /* @__PURE__ */ React24.createElement(
1752
+ "path",
1753
+ {
1754
+ fill: "#48FF48",
1755
+ d: "M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"
1756
+ }
1757
+ ), /* @__PURE__ */ React24.createElement(
1758
+ "path",
1759
+ {
1760
+ fill: "#3BCCFF",
1761
+ d: "M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"
1762
+ }
1763
+ ))), /* @__PURE__ */ React24.createElement("div", null, /* @__PURE__ */ React24.createElement("div", { className: "hawa-text-xs" }, "GET IT ON"), /* @__PURE__ */ React24.createElement("div", { className: "hawa-font-sans hawa--mt-1 hawa-text-xl hawa-font-semibold" }, "Google Play"))) : /* @__PURE__ */ React24.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-border hawa-border-black hawa-bg-white hawa-text-black" }, /* @__PURE__ */ React24.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React24.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ React24.createElement(
1764
+ "path",
1765
+ {
1766
+ fill: "#FFD400",
1767
+ d: "M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"
1768
+ }
1769
+ ), /* @__PURE__ */ React24.createElement(
1770
+ "path",
1771
+ {
1772
+ fill: "#FF3333",
1773
+ d: "M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"
1774
+ }
1775
+ ), /* @__PURE__ */ React24.createElement(
1776
+ "path",
1777
+ {
1778
+ fill: "#48FF48",
1779
+ d: "M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"
1780
+ }
1781
+ ), /* @__PURE__ */ React24.createElement(
1782
+ "path",
1783
+ {
1784
+ fill: "#3BCCFF",
1785
+ d: "M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"
1786
+ }
1787
+ ))), /* @__PURE__ */ React24.createElement("div", null, /* @__PURE__ */ React24.createElement("div", { className: "hawa-text-xs" }, "GET IT ON"), /* @__PURE__ */ React24.createElement("div", { className: "hawa-font-sans hawa--mt-1 hawa-text-xl hawa-font-semibold" }, "Google Play")))));
1788
+ };
1385
1789
  export {
1386
1790
  ActionCard,
1791
+ Alert,
1792
+ AppStores,
1387
1793
  Breadcrumb,
1388
1794
  Button,
1389
1795
  Card,
@@ -1393,6 +1799,7 @@ export {
1393
1799
  CardHeader,
1394
1800
  CardTitle,
1395
1801
  Checkbox,
1802
+ Chip,
1396
1803
  CodeBlock,
1397
1804
  Dialog,
1398
1805
  DialogContent,
@@ -1402,9 +1809,16 @@ export {
1402
1809
  DialogTitle,
1403
1810
  DialogTrigger,
1404
1811
  DropdownMenu,
1812
+ Label,
1405
1813
  Loading,
1814
+ PinInput,
1815
+ Popover,
1816
+ PopoverContent,
1406
1817
  Radio,
1818
+ Skeleton,
1819
+ Slider,
1407
1820
  Switch,
1821
+ Textarea,
1408
1822
  Toast,
1409
1823
  ToastAction,
1410
1824
  ToastClose,