@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.css +532 -0
- package/dist/index.d.mts +93 -2
- package/dist/index.d.ts +93 -2
- package/dist/index.js +477 -69
- package/dist/index.mjs +479 -65
- package/package.json +4 -1
package/dist/index.js
CHANGED
|
@@ -218,6 +218,12 @@ __export(components_exports, {
|
|
|
218
218
|
ActionCard: function() {
|
|
219
219
|
return ActionCard;
|
|
220
220
|
},
|
|
221
|
+
Alert: function() {
|
|
222
|
+
return Alert;
|
|
223
|
+
},
|
|
224
|
+
AppStores: function() {
|
|
225
|
+
return AppStores;
|
|
226
|
+
},
|
|
221
227
|
Breadcrumb: function() {
|
|
222
228
|
return Breadcrumb;
|
|
223
229
|
},
|
|
@@ -245,6 +251,9 @@ __export(components_exports, {
|
|
|
245
251
|
Checkbox: function() {
|
|
246
252
|
return Checkbox;
|
|
247
253
|
},
|
|
254
|
+
Chip: function() {
|
|
255
|
+
return Chip;
|
|
256
|
+
},
|
|
248
257
|
CodeBlock: function() {
|
|
249
258
|
return CodeBlock;
|
|
250
259
|
},
|
|
@@ -272,15 +281,36 @@ __export(components_exports, {
|
|
|
272
281
|
DropdownMenu: function() {
|
|
273
282
|
return DropdownMenu;
|
|
274
283
|
},
|
|
284
|
+
Label: function() {
|
|
285
|
+
return Label;
|
|
286
|
+
},
|
|
275
287
|
Loading: function() {
|
|
276
288
|
return Loading;
|
|
277
289
|
},
|
|
290
|
+
PinInput: function() {
|
|
291
|
+
return PinInput;
|
|
292
|
+
},
|
|
293
|
+
Popover: function() {
|
|
294
|
+
return Popover;
|
|
295
|
+
},
|
|
296
|
+
PopoverContent: function() {
|
|
297
|
+
return PopoverContent;
|
|
298
|
+
},
|
|
278
299
|
Radio: function() {
|
|
279
300
|
return Radio;
|
|
280
301
|
},
|
|
302
|
+
Skeleton: function() {
|
|
303
|
+
return Skeleton;
|
|
304
|
+
},
|
|
305
|
+
Slider: function() {
|
|
306
|
+
return Slider;
|
|
307
|
+
},
|
|
281
308
|
Switch: function() {
|
|
282
309
|
return Switch;
|
|
283
310
|
},
|
|
311
|
+
Textarea: function() {
|
|
312
|
+
return Textarea;
|
|
313
|
+
},
|
|
284
314
|
Toast: function() {
|
|
285
315
|
return Toast;
|
|
286
316
|
},
|
|
@@ -805,17 +835,17 @@ CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
|
|
805
835
|
var React9 = __toESM(require("react"));
|
|
806
836
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
|
807
837
|
var import_class_variance_authority2 = require("class-variance-authority");
|
|
808
|
-
var toastVariants = (0, import_class_variance_authority2.cva)("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", {
|
|
838
|
+
var toastVariants = (0, import_class_variance_authority2.cva)("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", {
|
|
809
839
|
variants: {
|
|
810
840
|
variant: {
|
|
811
|
-
default: "border bg-background text-foreground",
|
|
812
|
-
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
|
|
841
|
+
default: "hawa-border hawa-bg-background hawa-text-foreground",
|
|
842
|
+
destructive: "hawa-destructive hawa-group hawa-border-destructive hawa-bg-destructive hawa-text-destructive-foreground"
|
|
813
843
|
},
|
|
814
844
|
severity: {
|
|
815
|
-
info: "info group text-info-foreground bg-info",
|
|
816
|
-
warning: "warning group text-warning-foreground bg-warning",
|
|
817
|
-
error: "error group border-error bg-error text-error-foreground",
|
|
818
|
-
success: "success group text-success-foreground bg-success",
|
|
845
|
+
info: "hawa-info hawa-group hawa-text-info-foreground hawa-bg-info",
|
|
846
|
+
warning: "hawa-warning hawa-group hawa-text-warning-foreground hawa-bg-warning",
|
|
847
|
+
error: "hawa-error hawa-group hawa-border-error hawa-bg-error hawa-text-error-foreground",
|
|
848
|
+
success: "hawa-success hawa-group hawa-text-success-foreground hawa-bg-success",
|
|
819
849
|
none: ""
|
|
820
850
|
}
|
|
821
851
|
},
|
|
@@ -830,7 +860,7 @@ var ToastViewport = React9.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
830
860
|
]);
|
|
831
861
|
return React9.createElement(ToastPrimitives.Viewport, _object_spread({
|
|
832
862
|
ref: ref,
|
|
833
|
-
className: cn("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]", className)
|
|
863
|
+
className: cn("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]", className)
|
|
834
864
|
}, props));
|
|
835
865
|
});
|
|
836
866
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
@@ -846,7 +876,7 @@ var Toast = React9.forwardRef(function(_param, ref) {
|
|
|
846
876
|
className: cn(toastVariants({
|
|
847
877
|
variant: variant,
|
|
848
878
|
severity: severity
|
|
849
|
-
}), className, 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"),
|
|
879
|
+
}), className, 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"),
|
|
850
880
|
dir: direction
|
|
851
881
|
}, props));
|
|
852
882
|
});
|
|
@@ -857,7 +887,7 @@ var ToastAction = React9.forwardRef(function(_param, ref) {
|
|
|
857
887
|
]);
|
|
858
888
|
return /* @__PURE__ */ React9.createElement(ToastPrimitives.Action, _object_spread({
|
|
859
889
|
ref: ref,
|
|
860
|
-
className: cn("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", "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", "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", "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", "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", className)
|
|
890
|
+
className: cn("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", "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", "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", "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", "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", className)
|
|
861
891
|
}, props));
|
|
862
892
|
});
|
|
863
893
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
@@ -867,12 +897,12 @@ var ToastClose = React9.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
867
897
|
]);
|
|
868
898
|
return React9.createElement(ToastPrimitives.Close, _object_spread({
|
|
869
899
|
ref: ref,
|
|
870
|
-
className: cn("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", className),
|
|
900
|
+
className: cn("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", className),
|
|
871
901
|
"toast-close": ""
|
|
872
902
|
}, props), /* @__PURE__ */ React9.createElement("svg", {
|
|
873
903
|
"aria-label": "Close Icon",
|
|
874
904
|
"aria-hidden": "true",
|
|
875
|
-
className: "h-4 w-4",
|
|
905
|
+
className: "hawa-h-4 hawa-w-4",
|
|
876
906
|
fill: "currentColor",
|
|
877
907
|
viewBox: "0 0 20 20"
|
|
878
908
|
}, /* @__PURE__ */ React9.createElement("path", {
|
|
@@ -888,7 +918,7 @@ var ToastTitle = React9.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
888
918
|
]);
|
|
889
919
|
return React9.createElement(ToastPrimitives.Title, _object_spread({
|
|
890
920
|
ref: ref,
|
|
891
|
-
className: cn("text-sm font-semibold", className)
|
|
921
|
+
className: cn("hawa-text-sm hawa-font-semibold", className)
|
|
892
922
|
}, props));
|
|
893
923
|
});
|
|
894
924
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
@@ -898,7 +928,7 @@ var ToastDescription = React9.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
898
928
|
]);
|
|
899
929
|
return React9.createElement(ToastPrimitives.Description, _object_spread({
|
|
900
930
|
ref: ref,
|
|
901
|
-
className: cn("text-sm opacity-90", className)
|
|
931
|
+
className: cn("hawa-text-sm hawa-opacity-90", className)
|
|
902
932
|
}, props));
|
|
903
933
|
});
|
|
904
934
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
@@ -1055,10 +1085,10 @@ function Toaster(props) {
|
|
|
1055
1085
|
direction: props.direction,
|
|
1056
1086
|
key: id
|
|
1057
1087
|
}, toastProps), /* @__PURE__ */ import_react6.default.createElement("div", {
|
|
1058
|
-
className: "grid gap-1 text-start"
|
|
1088
|
+
className: "hawa-grid hawa-gap-1 hawa-text-start"
|
|
1059
1089
|
}, title && /* @__PURE__ */ import_react6.default.createElement(ToastTitle, null, title), description && /* @__PURE__ */ import_react6.default.createElement(ToastDescription, null, description)), action, /* @__PURE__ */ import_react6.default.createElement(ToastClose, null));
|
|
1060
1090
|
}), /* @__PURE__ */ import_react6.default.createElement(ToastViewport, {
|
|
1061
|
-
className: cn("gap-2", isRTL && "fixed left-0")
|
|
1091
|
+
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
|
1062
1092
|
}));
|
|
1063
1093
|
}
|
|
1064
1094
|
// components/elements/Switch.tsx
|
|
@@ -1214,25 +1244,244 @@ var Radio = function(_param) {
|
|
|
1214
1244
|
}));
|
|
1215
1245
|
}
|
|
1216
1246
|
};
|
|
1247
|
+
// components/elements/Skeleton.tsx
|
|
1248
|
+
var import_react8 = __toESM(require("react"));
|
|
1249
|
+
function Skeleton(_param) {
|
|
1250
|
+
var className = _param.className, _param_animation = _param.animation, animation = _param_animation === void 0 ? "pulse" : _param_animation, props = _object_without_properties(_param, [
|
|
1251
|
+
"className",
|
|
1252
|
+
"animation"
|
|
1253
|
+
]);
|
|
1254
|
+
return /* @__PURE__ */ import_react8.default.createElement("div", _object_spread({
|
|
1255
|
+
className: cn(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", className)
|
|
1256
|
+
}, props));
|
|
1257
|
+
}
|
|
1258
|
+
{}// components/elements/Chip.tsx
|
|
1259
|
+
var import_react9 = __toESM(require("react"));
|
|
1260
|
+
var import_clsx3 = __toESM(require("clsx"));
|
|
1261
|
+
var Chip = function(param) {
|
|
1262
|
+
var label = param.label, _param_size = param.size, size = _param_size === void 0 ? "normal" : _param_size, icon = param.icon, color = param.color, dot = param.dot, _param_dotType = param.dotType, dotType = _param_dotType === void 0 ? "available" : _param_dotType;
|
|
1263
|
+
var 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";
|
|
1264
|
+
var sizeStyles = {
|
|
1265
|
+
small: "hawa-h-full hawa-leading-4 hawa-px-1 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
|
|
1266
|
+
normal: "hawa-h-fit hawa-text-xs",
|
|
1267
|
+
large: ""
|
|
1268
|
+
};
|
|
1269
|
+
var dotStyles = {
|
|
1270
|
+
small: "hawa-flex hawa-h-1 hawa-w-1 hawa-rounded-full",
|
|
1271
|
+
normal: "hawa-flex hawa-h-2 hawa-w-2 hawa-rounded-full",
|
|
1272
|
+
large: "hawa-flex hawa-h-3 hawa-w-3 hawa-rounded-full"
|
|
1273
|
+
};
|
|
1274
|
+
var dotTypeStyles = {
|
|
1275
|
+
available: "hawa-bg-green-500",
|
|
1276
|
+
unavailable: "hawa-bg-red-500"
|
|
1277
|
+
};
|
|
1278
|
+
return /* @__PURE__ */ import_react9.default.createElement("span", {
|
|
1279
|
+
className: (0, import_clsx3.default)(defaultStyles, sizeStyles[size], color ? "hawa-bg-".concat(color, "-100 hawa-text-").concat(color, "-500") : "hawa-bg-layoutPrimary-500")
|
|
1280
|
+
}, dot && /* @__PURE__ */ import_react9.default.createElement("span", {
|
|
1281
|
+
className: (0, import_clsx3.default)(dotStyles[size], dotTypeStyles[dotType])
|
|
1282
|
+
}), icon && icon, label);
|
|
1283
|
+
};
|
|
1284
|
+
// components/elements/Label.tsx
|
|
1285
|
+
var React16 = __toESM(require("react"));
|
|
1286
|
+
var LabelPrimitive = __toESM(require("@radix-ui/react-label"));
|
|
1287
|
+
var import_class_variance_authority3 = require("class-variance-authority");
|
|
1288
|
+
var labelVariants = (0, import_class_variance_authority3.cva)("hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70");
|
|
1289
|
+
var Label = React16.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1290
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1291
|
+
"className"
|
|
1292
|
+
]);
|
|
1293
|
+
return React16.createElement(LabelPrimitive.Root, _object_spread({
|
|
1294
|
+
ref: ref,
|
|
1295
|
+
className: cn(labelVariants(), className)
|
|
1296
|
+
}, props));
|
|
1297
|
+
});
|
|
1298
|
+
Label.displayName = LabelPrimitive.Root.displayName;
|
|
1299
|
+
// components/elements/Alert.tsx
|
|
1300
|
+
var import_react10 = __toESM(require("react"));
|
|
1301
|
+
var import_clsx4 = __toESM(require("clsx"));
|
|
1302
|
+
var Alert = function(_param) {
|
|
1303
|
+
var _param_variant = _param.variant, variant = _param_variant === void 0 ? "normal" : _param_variant, _param_direction = _param.direction, direction = _param_direction === void 0 ? "ltr" : _param_direction, _param_severity = _param.severity, severity = _param_severity === void 0 ? "info" : _param_severity, duration = _param.duration, icon = _param.icon, className = _param.className, props = _object_without_properties(_param, [
|
|
1304
|
+
"variant",
|
|
1305
|
+
"direction",
|
|
1306
|
+
"severity",
|
|
1307
|
+
"duration",
|
|
1308
|
+
"icon",
|
|
1309
|
+
"className"
|
|
1310
|
+
]);
|
|
1311
|
+
var alertRef = (0, import_react10.useRef)(null);
|
|
1312
|
+
var _ref = _sliced_to_array((0, import_react10.useState)(false), 2), closed = _ref[0], setClosed = _ref[1];
|
|
1313
|
+
(0, import_react10.useEffect)(function() {
|
|
1314
|
+
if (duration) {
|
|
1315
|
+
var timeoutHide = setTimeout(function() {
|
|
1316
|
+
setClosed(true);
|
|
1317
|
+
}, duration);
|
|
1318
|
+
var timeoutDestroy = setTimeout(function() {
|
|
1319
|
+
setClosed(true);
|
|
1320
|
+
if (alertRef === null || alertRef === void 0 ? void 0 : alertRef.current) {
|
|
1321
|
+
alertRef === null || alertRef === void 0 ? void 0 : alertRef.current.removeChild(alertRef === null || alertRef === void 0 ? void 0 : alertRef.current.children[0]);
|
|
1322
|
+
}
|
|
1323
|
+
}, duration + 1e3);
|
|
1324
|
+
return function() {
|
|
1325
|
+
clearTimeout(timeoutHide);
|
|
1326
|
+
clearTimeout(timeoutDestroy);
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
}, [
|
|
1330
|
+
duration
|
|
1331
|
+
]);
|
|
1332
|
+
var closeButtonStyle = {
|
|
1333
|
+
none: "hover:hawa-bg-gray-300",
|
|
1334
|
+
info: "hover:hawa-bg-blue-300",
|
|
1335
|
+
warning: "hover:hawa-bg-yellow-300",
|
|
1336
|
+
error: "hover:hawa-bg-red-300",
|
|
1337
|
+
success: "hover:hawa-bg-green-300"
|
|
1338
|
+
};
|
|
1339
|
+
var styleVariant = {
|
|
1340
|
+
// normal: {
|
|
1341
|
+
none: "hawa-text-gray-700 hawa-bg-gray-100 dark:hawa-bg-gray-200 dark:hawa-text-gray-800",
|
|
1342
|
+
info: "hawa-text-blue-700 hawa-bg-blue-100 dark:hawa-bg-blue-200 dark:hawa-text-blue-800",
|
|
1343
|
+
warning: "hawa-text-yellow-700 hawa-bg-yellow-100 dark:hawa-bg-yellow-200 dark:hawa-text-yellow-800",
|
|
1344
|
+
error: "hawa-text-red-700 hawa-bg-red-100 dark:hawa-bg-red-200 dark:hawa-text-red-800",
|
|
1345
|
+
success: "hawa-text-green-700 hawa-bg-green-100 dark:hawa-bg-green-200 dark:hawa-text-green-800"
|
|
1346
|
+
};
|
|
1347
|
+
return /* @__PURE__ */ import_react10.default.createElement("div", {
|
|
1348
|
+
ref: alertRef
|
|
1349
|
+
}, /* @__PURE__ */ import_react10.default.createElement("div", {
|
|
1350
|
+
className: (0, import_clsx4.default)("hawa-relative hawa-mb-4 hawa-flex hawa-flex-col hawa-rounded hawa-p-4 hawa-text-sm hawa-transition-all", styleVariant[severity], closed ? "hawa-opacity-0" : "hawa-opacity-100", className),
|
|
1351
|
+
role: "alert",
|
|
1352
|
+
dir: direction
|
|
1353
|
+
}, /* @__PURE__ */ import_react10.default.createElement("div", {
|
|
1354
|
+
className: "hawa-flex hawa-flex-row"
|
|
1355
|
+
}, icon && /* @__PURE__ */ import_react10.default.createElement("div", {
|
|
1356
|
+
className: direction === "rtl" ? "hawa-pl-2 hawa-pt-1" : "hawa-pr-2 hawa-pt-1"
|
|
1357
|
+
}, icon), /* @__PURE__ */ import_react10.default.createElement("div", {
|
|
1358
|
+
className: "hawa-flex hawa-flex-col"
|
|
1359
|
+
}, /* @__PURE__ */ import_react10.default.createElement("span", {
|
|
1360
|
+
className: (0, import_clsx4.default)("font-medium", direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8")
|
|
1361
|
+
}, props.title), /* @__PURE__ */ import_react10.default.createElement("span", null, props.text), props.actions && /* @__PURE__ */ import_react10.default.createElement("div", {
|
|
1362
|
+
className: "hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2"
|
|
1363
|
+
}, props.actions.map(function(act, index) {
|
|
1364
|
+
return /* @__PURE__ */ import_react10.default.createElement(Button, {
|
|
1365
|
+
key: index,
|
|
1366
|
+
variant: act.variant,
|
|
1367
|
+
onClick: act.onClick()
|
|
1368
|
+
}, act.label);
|
|
1369
|
+
})))), !props.persistant && /* @__PURE__ */ import_react10.default.createElement("button", {
|
|
1370
|
+
type: "button",
|
|
1371
|
+
className: (0, import_clsx4.default)("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", closeButtonStyle[severity], direction === "rtl" ? "hawa-left-2" : "hawa-right-2"),
|
|
1372
|
+
"data-dismiss-target": "#alert-default",
|
|
1373
|
+
"aria-label": "Close",
|
|
1374
|
+
onClick: function() {
|
|
1375
|
+
setClosed(true);
|
|
1376
|
+
setTimeout(function() {
|
|
1377
|
+
if (alertRef === null || alertRef === void 0 ? void 0 : alertRef.current) {
|
|
1378
|
+
alertRef === null || alertRef === void 0 ? void 0 : alertRef.current.removeChild(alertRef === null || alertRef === void 0 ? void 0 : alertRef.current.children[0]);
|
|
1379
|
+
}
|
|
1380
|
+
}, 200);
|
|
1381
|
+
}
|
|
1382
|
+
}, /* @__PURE__ */ import_react10.default.createElement("span", {
|
|
1383
|
+
className: "sr-only"
|
|
1384
|
+
}, "Close"), /* @__PURE__ */ import_react10.default.createElement("svg", {
|
|
1385
|
+
"aria-label": "Close Icon",
|
|
1386
|
+
"aria-hidden": "true",
|
|
1387
|
+
className: "hawa-h-5 hawa-w-5",
|
|
1388
|
+
fill: "currentColor",
|
|
1389
|
+
viewBox: "0 0 20 20"
|
|
1390
|
+
}, /* @__PURE__ */ import_react10.default.createElement("path", {
|
|
1391
|
+
fillRule: "evenodd",
|
|
1392
|
+
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",
|
|
1393
|
+
clipRule: "evenodd"
|
|
1394
|
+
})))));
|
|
1395
|
+
};
|
|
1396
|
+
// components/elements/Popover.tsx
|
|
1397
|
+
var React18 = __toESM(require("react"));
|
|
1398
|
+
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
|
1399
|
+
var PopoverContent = React18.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1400
|
+
var className = _param.className, _param_align = _param.align, align = _param_align === void 0 ? "center" : _param_align, _param_sideOffset = _param.sideOffset, sideOffset = _param_sideOffset === void 0 ? 4 : _param_sideOffset, props = _object_without_properties(_param, [
|
|
1401
|
+
"className",
|
|
1402
|
+
"align",
|
|
1403
|
+
"sideOffset"
|
|
1404
|
+
]);
|
|
1405
|
+
return React18.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React18.createElement(PopoverPrimitive.Content, _object_spread({
|
|
1406
|
+
ref: ref,
|
|
1407
|
+
align: align,
|
|
1408
|
+
sideOffset: sideOffset,
|
|
1409
|
+
className: cn("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", className)
|
|
1410
|
+
}, props)));
|
|
1411
|
+
});
|
|
1412
|
+
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1413
|
+
var Popover = function(_param) /* @__PURE__ */ {
|
|
1414
|
+
var trigger = _param.trigger, children = _param.children, className = _param.className, _param_align = _param.align, align = _param_align === void 0 ? "center" : _param_align, side = _param.side, _param_sideOffset = _param.sideOffset, sideOffset = _param_sideOffset === void 0 ? 4 : _param_sideOffset, open = _param.open, disableTrigger = _param.disableTrigger, props = _object_without_properties(_param, [
|
|
1415
|
+
"trigger",
|
|
1416
|
+
"children",
|
|
1417
|
+
"className",
|
|
1418
|
+
"align",
|
|
1419
|
+
"side",
|
|
1420
|
+
"sideOffset",
|
|
1421
|
+
"open",
|
|
1422
|
+
"disableTrigger"
|
|
1423
|
+
]);
|
|
1424
|
+
return React18.createElement(PopoverPrimitive.Root, _object_spread({
|
|
1425
|
+
open: open
|
|
1426
|
+
}, props), /* @__PURE__ */ React18.createElement(PopoverPrimitive.Trigger, {
|
|
1427
|
+
disabled: disableTrigger
|
|
1428
|
+
}, trigger), /* @__PURE__ */ React18.createElement(PopoverContent, {
|
|
1429
|
+
side: side,
|
|
1430
|
+
className: className,
|
|
1431
|
+
align: align,
|
|
1432
|
+
sideOffset: sideOffset
|
|
1433
|
+
}, children));
|
|
1434
|
+
};
|
|
1435
|
+
// components/elements/Textarea.tsx
|
|
1436
|
+
var React19 = __toESM(require("react"));
|
|
1437
|
+
var Textarea = React19.forwardRef(function(_param, ref) {
|
|
1438
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1439
|
+
"className"
|
|
1440
|
+
]);
|
|
1441
|
+
return /* @__PURE__ */ React19.createElement("textarea", _object_spread({
|
|
1442
|
+
className: cn("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", className),
|
|
1443
|
+
ref: ref
|
|
1444
|
+
}, props));
|
|
1445
|
+
});
|
|
1446
|
+
Textarea.displayName = "Textarea";
|
|
1447
|
+
// components/elements/Slider.tsx
|
|
1448
|
+
var React20 = __toESM(require("react"));
|
|
1449
|
+
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
|
1450
|
+
var Slider = React20.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1451
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
1452
|
+
"className"
|
|
1453
|
+
]);
|
|
1454
|
+
return React20.createElement(SliderPrimitive.Root, _object_spread({
|
|
1455
|
+
ref: ref,
|
|
1456
|
+
className: cn("hawa-relative hawa-flex hawa-w-full hawa-touch-none hawa-select-none hawa-items-center", className)
|
|
1457
|
+
}, props), /* @__PURE__ */ React20.createElement(SliderPrimitive.Track, {
|
|
1458
|
+
className: "hawa-relative hawa-h-2 hawa-w-full hawa-grow hawa-overflow-hidden hawa-rounded-full hawa-bg-secondary"
|
|
1459
|
+
}, /* @__PURE__ */ React20.createElement(SliderPrimitive.Range, {
|
|
1460
|
+
className: "hawa-absolute hawa-h-full hawa-bg-primary"
|
|
1461
|
+
})), /* @__PURE__ */ React20.createElement(SliderPrimitive.Thumb, {
|
|
1462
|
+
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"
|
|
1463
|
+
}));
|
|
1464
|
+
});
|
|
1465
|
+
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
1217
1466
|
// components/elements/DropdownMenu.tsx
|
|
1218
|
-
var
|
|
1467
|
+
var React21 = __toESM(require("react"));
|
|
1219
1468
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
|
1220
1469
|
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
|
1221
1470
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
1222
1471
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1223
1472
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1224
|
-
var DropdownMenuSubTrigger =
|
|
1473
|
+
var DropdownMenuSubTrigger = React21.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1225
1474
|
var className = _param.className, inset = _param.inset, children = _param.children, props = _object_without_properties(_param, [
|
|
1226
1475
|
"className",
|
|
1227
1476
|
"inset",
|
|
1228
1477
|
"children"
|
|
1229
1478
|
]);
|
|
1230
|
-
return
|
|
1479
|
+
return React21.createElement(DropdownMenuPrimitive.SubTrigger, _object_spread({
|
|
1231
1480
|
ref: ref,
|
|
1232
1481
|
className: cn("hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-sm hawa-px-2 hawa-py-3 hawa-text-sm hawa-outline-none focus:hawa-bg-accent data-[state=open]:hawa-bg-accent", inset && "hawa-pl-8", className)
|
|
1233
|
-
}, props), /* @__PURE__ */
|
|
1482
|
+
}, props), /* @__PURE__ */ React21.createElement("div", {
|
|
1234
1483
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2"
|
|
1235
|
-
}, children), " ", /* @__PURE__ */
|
|
1484
|
+
}, children), " ", /* @__PURE__ */ React21.createElement("svg", {
|
|
1236
1485
|
"aria-label": "Chevron Right Icon",
|
|
1237
1486
|
stroke: "currentColor",
|
|
1238
1487
|
fill: "currentColor",
|
|
@@ -1241,62 +1490,62 @@ var DropdownMenuSubTrigger = React14.forwardRef(function(_param, ref) /* @__PURE
|
|
|
1241
1490
|
height: "1em",
|
|
1242
1491
|
width: "1em",
|
|
1243
1492
|
className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
|
|
1244
|
-
}, /* @__PURE__ */
|
|
1493
|
+
}, /* @__PURE__ */ React21.createElement("path", {
|
|
1245
1494
|
fillRule: "evenodd",
|
|
1246
1495
|
d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
|
|
1247
1496
|
})));
|
|
1248
1497
|
});
|
|
1249
1498
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1250
|
-
var DropdownMenuSubContent =
|
|
1499
|
+
var DropdownMenuSubContent = React21.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1251
1500
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
1252
1501
|
"className"
|
|
1253
1502
|
]);
|
|
1254
|
-
return
|
|
1503
|
+
return React21.createElement(DropdownMenuPrimitive.SubContent, _object_spread({
|
|
1255
1504
|
ref: ref,
|
|
1256
1505
|
className: cn("hawa-z-50 hawa-min-w-[8rem] hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground hawa-shadow-lg 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", className)
|
|
1257
1506
|
}, props));
|
|
1258
1507
|
});
|
|
1259
1508
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1260
|
-
var DropdownMenuContent =
|
|
1509
|
+
var DropdownMenuContent = React21.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1261
1510
|
var className = _param.className, _param_sideOffset = _param.sideOffset, sideOffset = _param_sideOffset === void 0 ? 4 : _param_sideOffset, props = _object_without_properties(_param, [
|
|
1262
1511
|
"className",
|
|
1263
1512
|
"sideOffset"
|
|
1264
1513
|
]);
|
|
1265
|
-
return
|
|
1514
|
+
return React21.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React21.createElement(DropdownMenuPrimitive.Content, _object_spread({
|
|
1266
1515
|
ref: ref,
|
|
1267
1516
|
sideOffset: sideOffset,
|
|
1268
1517
|
className: cn("hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-p-1 hawa-text-popover-foreground hawa-shadow-md 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", className)
|
|
1269
1518
|
}, props)));
|
|
1270
1519
|
});
|
|
1271
1520
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1272
|
-
var DropdownMenuItem =
|
|
1521
|
+
var DropdownMenuItem = React21.forwardRef(function(_param, ref) {
|
|
1273
1522
|
var className = _param.className, inset = _param.inset, props = _object_without_properties(_param, [
|
|
1274
1523
|
"className",
|
|
1275
1524
|
"inset"
|
|
1276
1525
|
]);
|
|
1277
1526
|
console.log("sdsdsds", props.children);
|
|
1278
|
-
return /* @__PURE__ */
|
|
1527
|
+
return /* @__PURE__ */ React21.createElement(DropdownMenuPrimitive.Item, _object_spread({
|
|
1279
1528
|
disabled: props.disabled,
|
|
1280
1529
|
ref: ref,
|
|
1281
1530
|
className: cn("hawa-relative hawa-flex hawa-cursor-pointer hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-sm hawa-text-sm hawa-outline-none hawa-transition-colors focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50", inset && "hawa-pl-8", props.end && Array.isArray(props.children) && props.children[1] && "hawa-gap-6", className)
|
|
1282
|
-
}, props), /* @__PURE__ */
|
|
1531
|
+
}, props), /* @__PURE__ */ React21.createElement("div", {
|
|
1283
1532
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 "
|
|
1284
1533
|
}, props.children), props.end && props.end);
|
|
1285
1534
|
});
|
|
1286
1535
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
1287
|
-
var DropdownMenuCheckboxItem =
|
|
1536
|
+
var DropdownMenuCheckboxItem = React21.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1288
1537
|
var className = _param.className, children = _param.children, checked = _param.checked, props = _object_without_properties(_param, [
|
|
1289
1538
|
"className",
|
|
1290
1539
|
"children",
|
|
1291
1540
|
"checked"
|
|
1292
1541
|
]);
|
|
1293
|
-
return
|
|
1542
|
+
return React21.createElement(DropdownMenuPrimitive.CheckboxItem, _object_spread({
|
|
1294
1543
|
ref: ref,
|
|
1295
1544
|
className: cn("hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-py-1.5 hawa-pl-8 hawa-pr-2 hawa-text-sm hawa-outline-none hawa-transition-colors focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50", className),
|
|
1296
1545
|
checked: checked
|
|
1297
|
-
}, props), /* @__PURE__ */
|
|
1546
|
+
}, props), /* @__PURE__ */ React21.createElement("span", {
|
|
1298
1547
|
className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center"
|
|
1299
|
-
}, /* @__PURE__ */
|
|
1548
|
+
}, /* @__PURE__ */ React21.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React21.createElement("svg", {
|
|
1300
1549
|
"aria-label": "Check Mark",
|
|
1301
1550
|
stroke: "currentColor",
|
|
1302
1551
|
fill: "currentColor",
|
|
@@ -1304,22 +1553,22 @@ var DropdownMenuCheckboxItem = React14.forwardRef(function(_param, ref) /* @__PU
|
|
|
1304
1553
|
viewBox: "0 0 512 512",
|
|
1305
1554
|
height: "0.60em",
|
|
1306
1555
|
width: "0.60em"
|
|
1307
|
-
}, /* @__PURE__ */
|
|
1556
|
+
}, /* @__PURE__ */ React21.createElement("path", {
|
|
1308
1557
|
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"
|
|
1309
1558
|
})), " ")), children);
|
|
1310
1559
|
});
|
|
1311
1560
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
1312
|
-
var DropdownMenuRadioItem =
|
|
1561
|
+
var DropdownMenuRadioItem = React21.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1313
1562
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
1314
1563
|
"className",
|
|
1315
1564
|
"children"
|
|
1316
1565
|
]);
|
|
1317
|
-
return
|
|
1566
|
+
return React21.createElement(DropdownMenuPrimitive.RadioItem, _object_spread({
|
|
1318
1567
|
ref: ref,
|
|
1319
1568
|
className: cn("hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-py-1.5 hawa-pl-8 hawa-pr-2 hawa-text-sm hawa-outline-none hawa-transition-colors focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50", className)
|
|
1320
|
-
}, props), /* @__PURE__ */
|
|
1569
|
+
}, props), /* @__PURE__ */ React21.createElement("span", {
|
|
1321
1570
|
className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center"
|
|
1322
|
-
}, /* @__PURE__ */
|
|
1571
|
+
}, /* @__PURE__ */ React21.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React21.createElement("svg", {
|
|
1323
1572
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1324
1573
|
width: "24",
|
|
1325
1574
|
"aria-label": "Circle",
|
|
@@ -1331,29 +1580,29 @@ var DropdownMenuRadioItem = React14.forwardRef(function(_param, ref) /* @__PURE_
|
|
|
1331
1580
|
strokeLinecap: "round",
|
|
1332
1581
|
strokeLinejoin: "round",
|
|
1333
1582
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
|
1334
|
-
}, /* @__PURE__ */
|
|
1583
|
+
}, /* @__PURE__ */ React21.createElement("circle", {
|
|
1335
1584
|
cx: "12",
|
|
1336
1585
|
cy: "12",
|
|
1337
1586
|
r: "10"
|
|
1338
1587
|
})))), children);
|
|
1339
1588
|
});
|
|
1340
1589
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
1341
|
-
var DropdownMenuLabel =
|
|
1590
|
+
var DropdownMenuLabel = React21.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1342
1591
|
var className = _param.className, inset = _param.inset, props = _object_without_properties(_param, [
|
|
1343
1592
|
"className",
|
|
1344
1593
|
"inset"
|
|
1345
1594
|
]);
|
|
1346
|
-
return
|
|
1595
|
+
return React21.createElement(DropdownMenuPrimitive.Label, _object_spread({
|
|
1347
1596
|
ref: ref,
|
|
1348
1597
|
className: cn("hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-font-semibold", inset && "hawa-pl-8", className)
|
|
1349
1598
|
}, props));
|
|
1350
1599
|
});
|
|
1351
1600
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
1352
|
-
var DropdownMenuSeparator =
|
|
1601
|
+
var DropdownMenuSeparator = React21.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1353
1602
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
1354
1603
|
"className"
|
|
1355
1604
|
]);
|
|
1356
|
-
return
|
|
1605
|
+
return React21.createElement(DropdownMenuPrimitive.Separator, _object_spread({
|
|
1357
1606
|
ref: ref,
|
|
1358
1607
|
className: cn("hawa--mx-1 hawa-my-1 hawa-h-px hawa-bg-muted", className)
|
|
1359
1608
|
}, props));
|
|
@@ -1363,7 +1612,7 @@ var DropdownMenuShortcut = function(_param) {
|
|
|
1363
1612
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
1364
1613
|
"className"
|
|
1365
1614
|
]);
|
|
1366
|
-
return /* @__PURE__ */
|
|
1615
|
+
return /* @__PURE__ */ React21.createElement("span", _object_spread({
|
|
1367
1616
|
className: cn("hawa-ml-auto hawa-text-xs hawa-tracking-widest hawa-opacity-60", className)
|
|
1368
1617
|
}, props));
|
|
1369
1618
|
};
|
|
@@ -1380,34 +1629,34 @@ var DropdownMenu = function(param) {
|
|
|
1380
1629
|
default: "hawa-px-2 hawa-py-3 ",
|
|
1381
1630
|
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5"
|
|
1382
1631
|
};
|
|
1383
|
-
return /* @__PURE__ */
|
|
1632
|
+
return /* @__PURE__ */ React21.createElement(DropdownMenuRoot, {
|
|
1384
1633
|
dir: direction
|
|
1385
|
-
}, /* @__PURE__ */
|
|
1634
|
+
}, /* @__PURE__ */ React21.createElement(DropdownMenuTrigger, {
|
|
1386
1635
|
asChild: true,
|
|
1387
1636
|
className: triggerClassname
|
|
1388
|
-
}, trigger), /* @__PURE__ */
|
|
1637
|
+
}, trigger), /* @__PURE__ */ React21.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React21.createElement(DropdownMenuContent, {
|
|
1389
1638
|
side: side,
|
|
1390
1639
|
sideOffset: sideOffset,
|
|
1391
1640
|
className: cn(className, widthStyles[width], "hawa-flex hawa-flex-col hawa-gap-2"),
|
|
1392
1641
|
align: align,
|
|
1393
1642
|
alignOffset: alignOffset
|
|
1394
1643
|
}, items && items.map(function(item, index) {
|
|
1395
|
-
if (item.
|
|
1396
|
-
return /* @__PURE__ */
|
|
1644
|
+
if (item.itemType === "separator") {
|
|
1645
|
+
return /* @__PURE__ */ React21.createElement(DropdownMenuSeparator, {
|
|
1397
1646
|
key: index
|
|
1398
1647
|
});
|
|
1399
|
-
} else if (item.
|
|
1400
|
-
return /* @__PURE__ */
|
|
1648
|
+
} else if (item.itemType === "label") {
|
|
1649
|
+
return /* @__PURE__ */ React21.createElement(DropdownMenuLabel, {
|
|
1401
1650
|
key: index
|
|
1402
1651
|
}, item.label);
|
|
1403
1652
|
} else {
|
|
1404
|
-
return item.subitems ? /* @__PURE__ */
|
|
1653
|
+
return item.subitems ? /* @__PURE__ */ React21.createElement(DropdownMenuSub, {
|
|
1405
1654
|
key: index
|
|
1406
|
-
}, /* @__PURE__ */
|
|
1655
|
+
}, /* @__PURE__ */ React21.createElement(DropdownMenuSubTrigger, {
|
|
1407
1656
|
className: cn(sizeStyles[size]),
|
|
1408
1657
|
dir: direction
|
|
1409
|
-
}, item.icon && item.icon, item.label && item.label), /* @__PURE__ */
|
|
1410
|
-
return /* @__PURE__ */
|
|
1658
|
+
}, item.icon && item.icon, item.label && item.label), /* @__PURE__ */ React21.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React21.createElement(DropdownMenuSubContent, null, item.subitems.map(function(subitem, subIndex) {
|
|
1659
|
+
return /* @__PURE__ */ React21.createElement(DropdownMenuItem, {
|
|
1411
1660
|
key: subIndex,
|
|
1412
1661
|
className: cn(sizeStyles[size], !item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent"),
|
|
1413
1662
|
disabled: subitem.disabled,
|
|
@@ -1418,7 +1667,7 @@ var DropdownMenu = function(param) {
|
|
|
1418
1667
|
}
|
|
1419
1668
|
}
|
|
1420
1669
|
}, subitem.icon && subitem.icon, subitem.label && subitem.label);
|
|
1421
|
-
})))) : /* @__PURE__ */
|
|
1670
|
+
})))) : /* @__PURE__ */ React21.createElement(DropdownMenuItem, {
|
|
1422
1671
|
key: index,
|
|
1423
1672
|
disabled: item.disabled,
|
|
1424
1673
|
onSelect: function(e) {
|
|
@@ -1442,13 +1691,81 @@ var DropdownMenu = function(param) {
|
|
|
1442
1691
|
}
|
|
1443
1692
|
}))));
|
|
1444
1693
|
};
|
|
1694
|
+
// components/elements/PinInput.tsx
|
|
1695
|
+
var import_react11 = __toESM(require("react"));
|
|
1696
|
+
var import_clsx5 = __toESM(require("clsx"));
|
|
1697
|
+
var PinInput = function(_param) {
|
|
1698
|
+
var label = _param.label, icon = _param.icon, digits = _param.digits, _param_width = _param.width, width = _param_width === void 0 ? "normal" : _param_width, getPins = _param.getPins, props = _object_without_properties(_param, [
|
|
1699
|
+
"label",
|
|
1700
|
+
"icon",
|
|
1701
|
+
"digits",
|
|
1702
|
+
"width",
|
|
1703
|
+
"getPins"
|
|
1704
|
+
]);
|
|
1705
|
+
var _ref = _sliced_to_array((0, import_react11.useState)(Array.from(Array(digits))), 2), pin = _ref[0], setPin = _ref[1];
|
|
1706
|
+
var handleKeyDown = function(e, index) {
|
|
1707
|
+
var backTo = 0;
|
|
1708
|
+
if (e.key === "Backspace") {
|
|
1709
|
+
e.target.value.length === 0 ? backTo = index - 1 : backTo = index;
|
|
1710
|
+
var previousInput = document.getElementById("input-".concat(backTo));
|
|
1711
|
+
previousInput === null || previousInput === void 0 ? void 0 : previousInput.focus();
|
|
1712
|
+
}
|
|
1713
|
+
};
|
|
1714
|
+
(0, import_react11.useEffect)(function() {
|
|
1715
|
+
var unfilled = pin.includes(void 0);
|
|
1716
|
+
if (!unfilled && getPins) {
|
|
1717
|
+
getPins(pin);
|
|
1718
|
+
}
|
|
1719
|
+
});
|
|
1720
|
+
var handleChange = function(e, index) {
|
|
1721
|
+
if (!/^\d*$/.test(e.target.value)) {
|
|
1722
|
+
var newPin = _to_consumable_array(pin);
|
|
1723
|
+
newPin[index] = "";
|
|
1724
|
+
setPin(newPin);
|
|
1725
|
+
return;
|
|
1726
|
+
} else {
|
|
1727
|
+
var newPin1 = _to_consumable_array(pin);
|
|
1728
|
+
newPin1[index] = e.target.value;
|
|
1729
|
+
setPin(newPin1);
|
|
1730
|
+
if (e.target.value.length === 1) {
|
|
1731
|
+
var nextInput = document.getElementById("input-".concat(index + 1));
|
|
1732
|
+
nextInput === null || nextInput === void 0 ? void 0 : nextInput.focus();
|
|
1733
|
+
} else if (e.target.value.length === 0) {
|
|
1734
|
+
var previousInput = document.getElementById("input-".concat(index - 1));
|
|
1735
|
+
previousInput === null || previousInput === void 0 ? void 0 : previousInput.focus();
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
};
|
|
1739
|
+
return /* @__PURE__ */ import_react11.default.createElement("div", {
|
|
1740
|
+
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2"
|
|
1741
|
+
}, pin.map(function(value, index) {
|
|
1742
|
+
return /* @__PURE__ */ import_react11.default.createElement("input", _object_spread({
|
|
1743
|
+
key: index,
|
|
1744
|
+
type: "text",
|
|
1745
|
+
maxLength: 1,
|
|
1746
|
+
value: value,
|
|
1747
|
+
id: "input-".concat(index),
|
|
1748
|
+
pattern: "[0-9]*",
|
|
1749
|
+
className: (0, import_clsx5.default)("hawa-h-10 hawa-rounded hawa-border hawa-bg-background hawa-text-center", width === "full" ? "hawa-w-full" : "hawa-w-10"),
|
|
1750
|
+
onChange: function(e) {
|
|
1751
|
+
return handleChange(e, index);
|
|
1752
|
+
},
|
|
1753
|
+
onKeyDown: function(e) {
|
|
1754
|
+
return handleKeyDown(e, index);
|
|
1755
|
+
},
|
|
1756
|
+
onFocus: function(e) {
|
|
1757
|
+
return e.target.select();
|
|
1758
|
+
}
|
|
1759
|
+
}, props));
|
|
1760
|
+
}));
|
|
1761
|
+
};
|
|
1445
1762
|
// components/elements/ActionCard.tsx
|
|
1446
|
-
var
|
|
1763
|
+
var import_react12 = __toESM(require("react"));
|
|
1447
1764
|
var ActionCard = function(props) {
|
|
1448
|
-
var _ref = _sliced_to_array((0,
|
|
1449
|
-
return /* @__PURE__ */
|
|
1765
|
+
var _ref = _sliced_to_array((0, import_react12.useState)(false), 2), hovered = _ref[0], setHovered = _ref[1];
|
|
1766
|
+
return /* @__PURE__ */ import_react12.default.createElement("div", {
|
|
1450
1767
|
className: "hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-1"
|
|
1451
|
-
}, /* @__PURE__ */
|
|
1768
|
+
}, /* @__PURE__ */ import_react12.default.createElement("div", {
|
|
1452
1769
|
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",
|
|
1453
1770
|
style: {
|
|
1454
1771
|
backgroundImage: "url(".concat(props.blank ? "" : props.cardImage, ")")
|
|
@@ -1459,9 +1776,9 @@ var ActionCard = function(props) {
|
|
|
1459
1776
|
onMouseLeave: function() {
|
|
1460
1777
|
return setHovered(false);
|
|
1461
1778
|
}
|
|
1462
|
-
}, props.blank ? /* @__PURE__ */
|
|
1779
|
+
}, props.blank ? /* @__PURE__ */ import_react12.default.createElement("div", {
|
|
1463
1780
|
className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center "
|
|
1464
|
-
}, /* @__PURE__ */
|
|
1781
|
+
}, /* @__PURE__ */ import_react12.default.createElement("svg", {
|
|
1465
1782
|
className: "hawa-h-10 hawa-w-10 hawa-text-foreground",
|
|
1466
1783
|
stroke: "currentColor",
|
|
1467
1784
|
fill: "currentColor",
|
|
@@ -1470,25 +1787,108 @@ var ActionCard = function(props) {
|
|
|
1470
1787
|
height: "1em",
|
|
1471
1788
|
width: "1em",
|
|
1472
1789
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1473
|
-
}, /* @__PURE__ */
|
|
1790
|
+
}, /* @__PURE__ */ import_react12.default.createElement("path", {
|
|
1474
1791
|
d: "M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z"
|
|
1475
|
-
}))) : /* @__PURE__ */
|
|
1792
|
+
}))) : /* @__PURE__ */ import_react12.default.createElement("div", {
|
|
1476
1793
|
className: "hawa-absolute hawa-inset-0 hawa-rounded hawa-bg-black hawa-opacity-50"
|
|
1477
|
-
}), /* @__PURE__ */
|
|
1794
|
+
}), /* @__PURE__ */ import_react12.default.createElement("div", {
|
|
1478
1795
|
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"
|
|
1479
|
-
}, props.inCardActions), !props.blank && /* @__PURE__ */
|
|
1796
|
+
}, props.inCardActions), !props.blank && /* @__PURE__ */ import_react12.default.createElement("div", {
|
|
1480
1797
|
className: "hawa-relative hawa-p-4"
|
|
1481
|
-
}, /* @__PURE__ */
|
|
1798
|
+
}, /* @__PURE__ */ import_react12.default.createElement("h1", {
|
|
1482
1799
|
className: "hawa-text-white"
|
|
1483
|
-
}, props.title), /* @__PURE__ */
|
|
1800
|
+
}, props.title), /* @__PURE__ */ import_react12.default.createElement("p", {
|
|
1484
1801
|
className: "hawa-text-white"
|
|
1485
|
-
}, props.subtitle))), /* @__PURE__ */
|
|
1802
|
+
}, props.subtitle))), /* @__PURE__ */ import_react12.default.createElement("div", {
|
|
1486
1803
|
className: "hawa-flex hawa-flex-row hawa-justify-between hawa-text-sm hawa-transition-all hawa-duration-200 ".concat(hovered ? "hawa-opacity-100" : "hawa-opacity-0")
|
|
1487
1804
|
}, props.bottomElement));
|
|
1488
1805
|
};
|
|
1806
|
+
// components/elements/AppStores.tsx
|
|
1807
|
+
var import_react13 = __toESM(require("react"));
|
|
1808
|
+
var AppStores = function(props) {
|
|
1809
|
+
return /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1810
|
+
className: "hawa-flex hawa-justify-center"
|
|
1811
|
+
}, /* @__PURE__ */ import_react13.default.createElement("div", null, props.store === "apple" ? props.mode === "dark" ? /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1812
|
+
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"
|
|
1813
|
+
}, /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1814
|
+
className: "hawa-mr-3"
|
|
1815
|
+
}, /* @__PURE__ */ import_react13.default.createElement("svg", {
|
|
1816
|
+
viewBox: "0 0 384 512",
|
|
1817
|
+
width: "30"
|
|
1818
|
+
}, /* @__PURE__ */ import_react13.default.createElement("path", {
|
|
1819
|
+
fill: "currentColor",
|
|
1820
|
+
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"
|
|
1821
|
+
}))), /* @__PURE__ */ import_react13.default.createElement("div", null, /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1822
|
+
className: "hawa-text-xs"
|
|
1823
|
+
}, "Download on the"), /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1824
|
+
className: "hawa-font-sans hawa--mt-1 hawa-text-2xl hawa-font-semibold"
|
|
1825
|
+
}, "App Store"))) : /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1826
|
+
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"
|
|
1827
|
+
}, /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1828
|
+
className: "hawa-mr-3"
|
|
1829
|
+
}, /* @__PURE__ */ import_react13.default.createElement("svg", {
|
|
1830
|
+
viewBox: "0 0 384 512",
|
|
1831
|
+
width: "30"
|
|
1832
|
+
}, /* @__PURE__ */ import_react13.default.createElement("path", {
|
|
1833
|
+
fill: "currentColor",
|
|
1834
|
+
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"
|
|
1835
|
+
}))), /* @__PURE__ */ import_react13.default.createElement("div", null, /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1836
|
+
className: "hawa-text-xs"
|
|
1837
|
+
}, "Download on the"), /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1838
|
+
className: "hawa-font-sans hawa--mt-1 hawa-text-2xl hawa-font-semibold"
|
|
1839
|
+
}, "App Store"))) : props.mode === "dark" ? /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1840
|
+
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"
|
|
1841
|
+
}, /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1842
|
+
className: "hawa-mr-3"
|
|
1843
|
+
}, /* @__PURE__ */ import_react13.default.createElement("svg", {
|
|
1844
|
+
viewBox: "30 336.7 120.9 129.2",
|
|
1845
|
+
width: "30"
|
|
1846
|
+
}, /* @__PURE__ */ import_react13.default.createElement("path", {
|
|
1847
|
+
fill: "#FFD400",
|
|
1848
|
+
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"
|
|
1849
|
+
}), /* @__PURE__ */ import_react13.default.createElement("path", {
|
|
1850
|
+
fill: "#FF3333",
|
|
1851
|
+
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"
|
|
1852
|
+
}), /* @__PURE__ */ import_react13.default.createElement("path", {
|
|
1853
|
+
fill: "#48FF48",
|
|
1854
|
+
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"
|
|
1855
|
+
}), /* @__PURE__ */ import_react13.default.createElement("path", {
|
|
1856
|
+
fill: "#3BCCFF",
|
|
1857
|
+
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"
|
|
1858
|
+
}))), /* @__PURE__ */ import_react13.default.createElement("div", null, /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1859
|
+
className: "hawa-text-xs"
|
|
1860
|
+
}, "GET IT ON"), /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1861
|
+
className: "hawa-font-sans hawa--mt-1 hawa-text-xl hawa-font-semibold"
|
|
1862
|
+
}, "Google Play"))) : /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1863
|
+
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"
|
|
1864
|
+
}, /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1865
|
+
className: "hawa-mr-3"
|
|
1866
|
+
}, /* @__PURE__ */ import_react13.default.createElement("svg", {
|
|
1867
|
+
viewBox: "30 336.7 120.9 129.2",
|
|
1868
|
+
width: "30"
|
|
1869
|
+
}, /* @__PURE__ */ import_react13.default.createElement("path", {
|
|
1870
|
+
fill: "#FFD400",
|
|
1871
|
+
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"
|
|
1872
|
+
}), /* @__PURE__ */ import_react13.default.createElement("path", {
|
|
1873
|
+
fill: "#FF3333",
|
|
1874
|
+
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"
|
|
1875
|
+
}), /* @__PURE__ */ import_react13.default.createElement("path", {
|
|
1876
|
+
fill: "#48FF48",
|
|
1877
|
+
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"
|
|
1878
|
+
}), /* @__PURE__ */ import_react13.default.createElement("path", {
|
|
1879
|
+
fill: "#3BCCFF",
|
|
1880
|
+
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"
|
|
1881
|
+
}))), /* @__PURE__ */ import_react13.default.createElement("div", null, /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1882
|
+
className: "hawa-text-xs"
|
|
1883
|
+
}, "GET IT ON"), /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1884
|
+
className: "hawa-font-sans hawa--mt-1 hawa-text-xl hawa-font-semibold"
|
|
1885
|
+
}, "Google Play")))));
|
|
1886
|
+
};
|
|
1489
1887
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1490
1888
|
0 && (module.exports = {
|
|
1491
1889
|
ActionCard: ActionCard,
|
|
1890
|
+
Alert: Alert,
|
|
1891
|
+
AppStores: AppStores,
|
|
1492
1892
|
Breadcrumb: Breadcrumb,
|
|
1493
1893
|
Button: Button,
|
|
1494
1894
|
Card: Card,
|
|
@@ -1498,6 +1898,7 @@ var ActionCard = function(props) {
|
|
|
1498
1898
|
CardHeader: CardHeader,
|
|
1499
1899
|
CardTitle: CardTitle,
|
|
1500
1900
|
Checkbox: Checkbox,
|
|
1901
|
+
Chip: Chip,
|
|
1501
1902
|
CodeBlock: CodeBlock,
|
|
1502
1903
|
Dialog: Dialog,
|
|
1503
1904
|
DialogContent: DialogContent,
|
|
@@ -1507,9 +1908,16 @@ var ActionCard = function(props) {
|
|
|
1507
1908
|
DialogTitle: DialogTitle,
|
|
1508
1909
|
DialogTrigger: DialogTrigger,
|
|
1509
1910
|
DropdownMenu: DropdownMenu,
|
|
1911
|
+
Label: Label,
|
|
1510
1912
|
Loading: Loading,
|
|
1913
|
+
PinInput: PinInput,
|
|
1914
|
+
Popover: Popover,
|
|
1915
|
+
PopoverContent: PopoverContent,
|
|
1511
1916
|
Radio: Radio,
|
|
1917
|
+
Skeleton: Skeleton,
|
|
1918
|
+
Slider: Slider,
|
|
1512
1919
|
Switch: Switch,
|
|
1920
|
+
Textarea: Textarea,
|
|
1513
1921
|
Toast: Toast,
|
|
1514
1922
|
ToastAction: ToastAction,
|
|
1515
1923
|
ToastClose: ToastClose,
|