@sikka/hawa 0.14.14-next → 0.14.16-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 +16 -2
- package/dist/index.d.mts +13 -37
- package/dist/index.d.ts +13 -37
- package/dist/index.js +597 -583
- package/dist/index.mjs +1044 -1033
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -862,6 +862,9 @@ __export(components_exports, {
|
|
|
862
862
|
useFocusWithin: function() {
|
|
863
863
|
return useFocusWithin;
|
|
864
864
|
},
|
|
865
|
+
useIsomorphicEffect: function() {
|
|
866
|
+
return useIsomorphicEffect;
|
|
867
|
+
},
|
|
865
868
|
useMediaQuery: function() {
|
|
866
869
|
return useMediaQuery;
|
|
867
870
|
},
|
|
@@ -997,7 +1000,7 @@ var AdCard = function(_param) {
|
|
|
997
1000
|
var import_clsx3 = __toESM(require("clsx"));
|
|
998
1001
|
var import_react4 = __toESM(require("react"));
|
|
999
1002
|
// components/elements/Button.tsx
|
|
1000
|
-
var
|
|
1003
|
+
var React5 = __toESM(require("react"));
|
|
1001
1004
|
var import_class_variance_authority = require("class-variance-authority");
|
|
1002
1005
|
// components/util.ts
|
|
1003
1006
|
var import_clsx2 = require("clsx");
|
|
@@ -1087,7 +1090,7 @@ var buttonVariants = (0, import_class_variance_authority.cva)("hawa-inline-flex
|
|
|
1087
1090
|
size: "default"
|
|
1088
1091
|
}
|
|
1089
1092
|
});
|
|
1090
|
-
var Button =
|
|
1093
|
+
var Button = React5.forwardRef(function(_param, ref) {
|
|
1091
1094
|
var className = _param.className, variant = _param.variant, size = _param.size, _param_asChild = _param.asChild, asChild = _param_asChild === void 0 ? false : _param_asChild, _param_centered = _param.centered, centered = _param_centered === void 0 ? true : _param_centered, isLoading = _param.isLoading, children = _param.children, props = _object_without_properties(_param, [
|
|
1092
1095
|
"className",
|
|
1093
1096
|
"variant",
|
|
@@ -1099,14 +1102,14 @@ var Button = React4.forwardRef(function(_param, ref) {
|
|
|
1099
1102
|
]);
|
|
1100
1103
|
var Comp = "button";
|
|
1101
1104
|
var loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
|
1102
|
-
return /* @__PURE__ */
|
|
1105
|
+
return /* @__PURE__ */ React5.createElement(Comp, _object_spread({
|
|
1103
1106
|
className: cn(buttonVariants({
|
|
1104
1107
|
variant: variant,
|
|
1105
1108
|
size: size,
|
|
1106
1109
|
className: className
|
|
1107
1110
|
}), centered && "hawa-justify-center"),
|
|
1108
1111
|
ref: ref
|
|
1109
|
-
}, props), isLoading ? /* @__PURE__ */
|
|
1112
|
+
}, props), isLoading ? /* @__PURE__ */ React5.createElement(Loading, {
|
|
1110
1113
|
design: "dots-pulse",
|
|
1111
1114
|
color: loadingColor,
|
|
1112
1115
|
size: size === "sm" ? "xs" : "button"
|
|
@@ -1114,8 +1117,8 @@ var Button = React4.forwardRef(function(_param, ref) {
|
|
|
1114
1117
|
});
|
|
1115
1118
|
Button.displayName = "Button";
|
|
1116
1119
|
// components/elements/Card.tsx
|
|
1117
|
-
var
|
|
1118
|
-
var Card =
|
|
1120
|
+
var React6 = __toESM(require("react"));
|
|
1121
|
+
var Card = React6.forwardRef(function(_param, ref) {
|
|
1119
1122
|
var className = _param.className, _param_variant = _param.variant, variant = _param_variant === void 0 ? "default" : _param_variant, _param_clickable = _param.clickable, clickable = _param_clickable === void 0 ? false : _param_clickable, props = _object_without_properties(_param, [
|
|
1120
1123
|
"className",
|
|
1121
1124
|
"variant",
|
|
@@ -1125,59 +1128,59 @@ var Card = React5.forwardRef(function(_param, ref) {
|
|
|
1125
1128
|
default: cn("hawa-rounded-lg hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm", clickable && "hawa-cursor-pointer hawa-transition-all hover:hawa-drop-shadow-md dark:hover:dark-shadow"),
|
|
1126
1129
|
neoBrutalism: cn("hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] transition-all uppercase font-mono dark:bg-black font-bold py-2 px-4 rounded border-2 border-primary shadow-color-primary transition-[transform_50ms, box-shadow_50ms]", clickable && "hawa-cursor-pointer active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active")
|
|
1127
1130
|
};
|
|
1128
|
-
return /* @__PURE__ */
|
|
1131
|
+
return /* @__PURE__ */ React6.createElement("div", _object_spread({
|
|
1129
1132
|
ref: ref,
|
|
1130
1133
|
className: cn(className, variantStyles[variant])
|
|
1131
1134
|
}, props));
|
|
1132
1135
|
});
|
|
1133
1136
|
Card.displayName = "Card";
|
|
1134
|
-
var CardHeader =
|
|
1137
|
+
var CardHeader = React6.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1135
1138
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
1136
1139
|
"className"
|
|
1137
1140
|
]);
|
|
1138
|
-
return
|
|
1141
|
+
return React6.createElement("div", _object_spread({
|
|
1139
1142
|
ref: ref,
|
|
1140
1143
|
className: cn("hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-p-6", className)
|
|
1141
1144
|
}, props));
|
|
1142
1145
|
});
|
|
1143
1146
|
CardHeader.displayName = "CardHeader";
|
|
1144
|
-
var CardTitle =
|
|
1147
|
+
var CardTitle = React6.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1145
1148
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
1146
1149
|
"className"
|
|
1147
1150
|
]);
|
|
1148
|
-
return
|
|
1151
|
+
return React6.createElement("h3", _object_spread({
|
|
1149
1152
|
ref: ref,
|
|
1150
1153
|
className: cn("hawa-text-2xl hawa-font-semibold ", className)
|
|
1151
1154
|
}, props));
|
|
1152
1155
|
});
|
|
1153
1156
|
CardTitle.displayName = "CardTitle";
|
|
1154
|
-
var CardDescription =
|
|
1157
|
+
var CardDescription = React6.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1155
1158
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
1156
1159
|
"className"
|
|
1157
1160
|
]);
|
|
1158
|
-
return
|
|
1161
|
+
return React6.createElement("p", _object_spread({
|
|
1159
1162
|
ref: ref,
|
|
1160
1163
|
className: cn("hawa-text-sm hawa-text-muted-foreground", className)
|
|
1161
1164
|
}, props));
|
|
1162
1165
|
});
|
|
1163
1166
|
CardDescription.displayName = "CardDescription";
|
|
1164
|
-
var CardContent =
|
|
1167
|
+
var CardContent = React6.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1165
1168
|
var headless = _param.headless, noPadding = _param.noPadding, className = _param.className, props = _object_without_properties(_param, [
|
|
1166
1169
|
"headless",
|
|
1167
1170
|
"noPadding",
|
|
1168
1171
|
"className"
|
|
1169
1172
|
]);
|
|
1170
|
-
return
|
|
1173
|
+
return React6.createElement("div", _object_spread({
|
|
1171
1174
|
ref: ref,
|
|
1172
1175
|
className: cn(noPadding ? "hawa-p-0" : "hawa-p-6", headless ? "hawa-pt-6" : "hawa-pt-0", className)
|
|
1173
1176
|
}, props));
|
|
1174
1177
|
});
|
|
1175
1178
|
CardContent.displayName = "CardContent";
|
|
1176
|
-
var CardFooter =
|
|
1179
|
+
var CardFooter = React6.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1177
1180
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
1178
1181
|
"className"
|
|
1179
1182
|
]);
|
|
1180
|
-
return
|
|
1183
|
+
return React6.createElement("div", _object_spread({
|
|
1181
1184
|
ref: ref,
|
|
1182
1185
|
className: cn("hawa-flex hawa-items-center hawa-p-6 hawa-pt-0", className)
|
|
1183
1186
|
}, props));
|
|
@@ -1241,24 +1244,24 @@ var PricingCard = function(_param) {
|
|
|
1241
1244
|
var import_react6 = __toESM(require("react"));
|
|
1242
1245
|
var import_clsx4 = __toESM(require("clsx"));
|
|
1243
1246
|
// components/elements/DropdownMenu.tsx
|
|
1244
|
-
var
|
|
1247
|
+
var React8 = __toESM(require("react"));
|
|
1245
1248
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
|
1246
1249
|
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
|
1247
1250
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
1248
1251
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1249
1252
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1250
|
-
var DropdownMenuSubTrigger =
|
|
1253
|
+
var DropdownMenuSubTrigger = React8.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1251
1254
|
var className = _param.className, inset = _param.inset, children = _param.children, props = _object_without_properties(_param, [
|
|
1252
1255
|
"className",
|
|
1253
1256
|
"inset",
|
|
1254
1257
|
"children"
|
|
1255
1258
|
]);
|
|
1256
|
-
return
|
|
1259
|
+
return React8.createElement(DropdownMenuPrimitive.SubTrigger, _object_spread({
|
|
1257
1260
|
ref: ref,
|
|
1258
1261
|
className: cn("hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-sm hawa-text-sm hawa-outline-none focus:hawa-bg-accent data-[state=open]:hawa-bg-accent", inset && "hawa-pl-8", className)
|
|
1259
|
-
}, props), /* @__PURE__ */
|
|
1262
|
+
}, props), /* @__PURE__ */ React8.createElement("div", {
|
|
1260
1263
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2"
|
|
1261
|
-
}, children), " ", /* @__PURE__ */
|
|
1264
|
+
}, children), " ", /* @__PURE__ */ React8.createElement("svg", {
|
|
1262
1265
|
"aria-label": "Chevron Right Icon",
|
|
1263
1266
|
stroke: "currentColor",
|
|
1264
1267
|
fill: "currentColor",
|
|
@@ -1267,61 +1270,61 @@ var DropdownMenuSubTrigger = React7.forwardRef(function(_param, ref) /* @__PURE_
|
|
|
1267
1270
|
height: "1em",
|
|
1268
1271
|
width: "1em",
|
|
1269
1272
|
className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
|
|
1270
|
-
}, /* @__PURE__ */
|
|
1273
|
+
}, /* @__PURE__ */ React8.createElement("path", {
|
|
1271
1274
|
fillRule: "evenodd",
|
|
1272
1275
|
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"
|
|
1273
1276
|
})));
|
|
1274
1277
|
});
|
|
1275
1278
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1276
|
-
var DropdownMenuSubContent =
|
|
1279
|
+
var DropdownMenuSubContent = React8.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1277
1280
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
1278
1281
|
"className"
|
|
1279
1282
|
]);
|
|
1280
|
-
return
|
|
1283
|
+
return React8.createElement(DropdownMenuPrimitive.SubContent, _object_spread({
|
|
1281
1284
|
ref: ref,
|
|
1282
1285
|
className: cn("hawa-z-50 hawa-min-w-[8rem] hawa-gap-1 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)
|
|
1283
1286
|
}, props));
|
|
1284
1287
|
});
|
|
1285
1288
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1286
|
-
var DropdownMenuContent =
|
|
1289
|
+
var DropdownMenuContent = React8.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1287
1290
|
var className = _param.className, _param_sideOffset = _param.sideOffset, sideOffset = _param_sideOffset === void 0 ? 4 : _param_sideOffset, props = _object_without_properties(_param, [
|
|
1288
1291
|
"className",
|
|
1289
1292
|
"sideOffset"
|
|
1290
1293
|
]);
|
|
1291
|
-
return
|
|
1294
|
+
return React8.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React8.createElement(DropdownMenuPrimitive.Content, _object_spread({
|
|
1292
1295
|
ref: ref,
|
|
1293
1296
|
sideOffset: sideOffset,
|
|
1294
1297
|
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)
|
|
1295
1298
|
}, props)));
|
|
1296
1299
|
});
|
|
1297
1300
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1298
|
-
var DropdownMenuItem =
|
|
1301
|
+
var DropdownMenuItem = React8.forwardRef(function(_param, ref) {
|
|
1299
1302
|
var className = _param.className, inset = _param.inset, props = _object_without_properties(_param, [
|
|
1300
1303
|
"className",
|
|
1301
1304
|
"inset"
|
|
1302
1305
|
]);
|
|
1303
|
-
return /* @__PURE__ */
|
|
1306
|
+
return /* @__PURE__ */ React8.createElement(DropdownMenuPrimitive.Item, _object_spread({
|
|
1304
1307
|
disabled: props.disabled,
|
|
1305
1308
|
ref: ref,
|
|
1306
1309
|
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)
|
|
1307
|
-
}, props), /* @__PURE__ */
|
|
1310
|
+
}, props), /* @__PURE__ */ React8.createElement("div", {
|
|
1308
1311
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 "
|
|
1309
1312
|
}, props.children), props.end && props.end);
|
|
1310
1313
|
});
|
|
1311
1314
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
1312
|
-
var DropdownMenuCheckboxItem =
|
|
1315
|
+
var DropdownMenuCheckboxItem = React8.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1313
1316
|
var className = _param.className, children = _param.children, checked = _param.checked, props = _object_without_properties(_param, [
|
|
1314
1317
|
"className",
|
|
1315
1318
|
"children",
|
|
1316
1319
|
"checked"
|
|
1317
1320
|
]);
|
|
1318
|
-
return
|
|
1321
|
+
return React8.createElement(DropdownMenuPrimitive.CheckboxItem, _object_spread({
|
|
1319
1322
|
ref: ref,
|
|
1320
1323
|
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),
|
|
1321
1324
|
checked: checked
|
|
1322
|
-
}, props), /* @__PURE__ */
|
|
1325
|
+
}, props), /* @__PURE__ */ React8.createElement("span", {
|
|
1323
1326
|
className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center"
|
|
1324
|
-
}, /* @__PURE__ */
|
|
1327
|
+
}, /* @__PURE__ */ React8.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React8.createElement("svg", {
|
|
1325
1328
|
"aria-label": "Check Mark",
|
|
1326
1329
|
stroke: "currentColor",
|
|
1327
1330
|
fill: "currentColor",
|
|
@@ -1329,22 +1332,22 @@ var DropdownMenuCheckboxItem = React7.forwardRef(function(_param, ref) /* @__PUR
|
|
|
1329
1332
|
viewBox: "0 0 512 512",
|
|
1330
1333
|
height: "0.60em",
|
|
1331
1334
|
width: "0.60em"
|
|
1332
|
-
}, /* @__PURE__ */
|
|
1335
|
+
}, /* @__PURE__ */ React8.createElement("path", {
|
|
1333
1336
|
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"
|
|
1334
1337
|
})), " ")), children);
|
|
1335
1338
|
});
|
|
1336
1339
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
1337
|
-
var DropdownMenuRadioItem =
|
|
1340
|
+
var DropdownMenuRadioItem = React8.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1338
1341
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
1339
1342
|
"className",
|
|
1340
1343
|
"children"
|
|
1341
1344
|
]);
|
|
1342
|
-
return
|
|
1345
|
+
return React8.createElement(DropdownMenuPrimitive.RadioItem, _object_spread({
|
|
1343
1346
|
ref: ref,
|
|
1344
1347
|
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)
|
|
1345
|
-
}, props), /* @__PURE__ */
|
|
1348
|
+
}, props), /* @__PURE__ */ React8.createElement("span", {
|
|
1346
1349
|
className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center"
|
|
1347
|
-
}, /* @__PURE__ */
|
|
1350
|
+
}, /* @__PURE__ */ React8.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React8.createElement("svg", {
|
|
1348
1351
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1349
1352
|
width: "24",
|
|
1350
1353
|
"aria-label": "Circle",
|
|
@@ -1356,29 +1359,29 @@ var DropdownMenuRadioItem = React7.forwardRef(function(_param, ref) /* @__PURE__
|
|
|
1356
1359
|
strokeLinecap: "round",
|
|
1357
1360
|
strokeLinejoin: "round",
|
|
1358
1361
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
|
1359
|
-
}, /* @__PURE__ */
|
|
1362
|
+
}, /* @__PURE__ */ React8.createElement("circle", {
|
|
1360
1363
|
cx: "12",
|
|
1361
1364
|
cy: "12",
|
|
1362
1365
|
r: "10"
|
|
1363
1366
|
})))), children);
|
|
1364
1367
|
});
|
|
1365
1368
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
1366
|
-
var DropdownMenuLabel =
|
|
1369
|
+
var DropdownMenuLabel = React8.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1367
1370
|
var className = _param.className, inset = _param.inset, props = _object_without_properties(_param, [
|
|
1368
1371
|
"className",
|
|
1369
1372
|
"inset"
|
|
1370
1373
|
]);
|
|
1371
|
-
return
|
|
1374
|
+
return React8.createElement(DropdownMenuPrimitive.Label, _object_spread({
|
|
1372
1375
|
ref: ref,
|
|
1373
1376
|
className: cn("hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-font-semibold", inset && "hawa-pl-8", className)
|
|
1374
1377
|
}, props));
|
|
1375
1378
|
});
|
|
1376
1379
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
1377
|
-
var DropdownMenuSeparator =
|
|
1380
|
+
var DropdownMenuSeparator = React8.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1378
1381
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
1379
1382
|
"className"
|
|
1380
1383
|
]);
|
|
1381
|
-
return
|
|
1384
|
+
return React8.createElement(DropdownMenuPrimitive.Separator, _object_spread({
|
|
1382
1385
|
ref: ref,
|
|
1383
1386
|
className: cn("hawa--mx-1 hawa-my-1 hawa-h-px hawa-bg-muted", className)
|
|
1384
1387
|
}, props));
|
|
@@ -1388,7 +1391,7 @@ var DropdownMenuShortcut = function(_param) {
|
|
|
1388
1391
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
1389
1392
|
"className"
|
|
1390
1393
|
]);
|
|
1391
|
-
return /* @__PURE__ */
|
|
1394
|
+
return /* @__PURE__ */ React8.createElement("span", _object_spread({
|
|
1392
1395
|
className: cn("hawa-ml-auto hawa-text-xs hawa-tracking-widest hawa-opacity-60", className)
|
|
1393
1396
|
}, props));
|
|
1394
1397
|
};
|
|
@@ -1405,15 +1408,15 @@ var DropdownMenu = function(param) {
|
|
|
1405
1408
|
default: "hawa-px-2 hawa-py-3 ",
|
|
1406
1409
|
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
|
1407
1410
|
};
|
|
1408
|
-
return /* @__PURE__ */
|
|
1411
|
+
return /* @__PURE__ */ React8.createElement(DropdownMenuRoot, {
|
|
1409
1412
|
onOpenChange: onOpenChange,
|
|
1410
1413
|
open: open,
|
|
1411
1414
|
modal: false,
|
|
1412
1415
|
dir: direction
|
|
1413
|
-
}, /* @__PURE__ */
|
|
1416
|
+
}, /* @__PURE__ */ React8.createElement(DropdownMenuTrigger, {
|
|
1414
1417
|
asChild: true,
|
|
1415
1418
|
className: triggerClassname
|
|
1416
|
-
}, trigger), /* @__PURE__ */
|
|
1419
|
+
}, trigger), /* @__PURE__ */ React8.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React8.createElement(DropdownMenuContent, {
|
|
1417
1420
|
side: side,
|
|
1418
1421
|
sideOffset: sideOffset,
|
|
1419
1422
|
className: cn(className, widthStyles[width], "hawa-flex hawa-flex-col hawa-gap-1"),
|
|
@@ -1421,25 +1424,25 @@ var DropdownMenu = function(param) {
|
|
|
1421
1424
|
alignOffset: alignOffset
|
|
1422
1425
|
}, header && header, items && items.map(function(item, index) {
|
|
1423
1426
|
if (item.itemType === "separator") {
|
|
1424
|
-
return /* @__PURE__ */
|
|
1427
|
+
return /* @__PURE__ */ React8.createElement(DropdownMenuSeparator, {
|
|
1425
1428
|
key: index
|
|
1426
1429
|
});
|
|
1427
1430
|
} else if (item.itemType === "label") {
|
|
1428
|
-
return /* @__PURE__ */
|
|
1431
|
+
return /* @__PURE__ */ React8.createElement(DropdownMenuLabel, {
|
|
1429
1432
|
key: index
|
|
1430
1433
|
}, item.label);
|
|
1431
1434
|
} else if (item.itemType === "custom") {
|
|
1432
|
-
return /* @__PURE__ */
|
|
1435
|
+
return /* @__PURE__ */ React8.createElement("div", {
|
|
1433
1436
|
key: index
|
|
1434
1437
|
}, item.content);
|
|
1435
1438
|
} else {
|
|
1436
|
-
return item.subitems ? /* @__PURE__ */
|
|
1439
|
+
return item.subitems ? /* @__PURE__ */ React8.createElement(DropdownMenuSub, {
|
|
1437
1440
|
key: index
|
|
1438
|
-
}, /* @__PURE__ */
|
|
1441
|
+
}, /* @__PURE__ */ React8.createElement(DropdownMenuSubTrigger, {
|
|
1439
1442
|
className: cn(sizeStyles[size]),
|
|
1440
1443
|
dir: direction
|
|
1441
|
-
}, item.icon && item.icon, item.label && item.label), /* @__PURE__ */
|
|
1442
|
-
return /* @__PURE__ */
|
|
1444
|
+
}, item.icon && item.icon, item.label && item.label), /* @__PURE__ */ React8.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React8.createElement(DropdownMenuSubContent, null, item.subitems.map(function(subitem, subIndex) {
|
|
1445
|
+
return /* @__PURE__ */ React8.createElement(DropdownMenuItem, {
|
|
1443
1446
|
key: subIndex,
|
|
1444
1447
|
className: cn(sizeStyles[size], !item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent"),
|
|
1445
1448
|
disabled: subitem.disabled,
|
|
@@ -1450,7 +1453,7 @@ var DropdownMenu = function(param) {
|
|
|
1450
1453
|
}
|
|
1451
1454
|
}
|
|
1452
1455
|
}, subitem.icon && subitem.icon, subitem.label && subitem.label);
|
|
1453
|
-
})))) : /* @__PURE__ */
|
|
1456
|
+
})))) : /* @__PURE__ */ React8.createElement(DropdownMenuItem, {
|
|
1454
1457
|
key: index,
|
|
1455
1458
|
disabled: item.disabled,
|
|
1456
1459
|
onMouseDown: function(event) {
|
|
@@ -1625,7 +1628,7 @@ var LandingCard = function(props) {
|
|
|
1625
1628
|
}, /* @__PURE__ */ import_react7.default.createElement(CardHeader, null, props.icon, /* @__PURE__ */ import_react7.default.createElement(CardTitle, null, props.title), /* @__PURE__ */ import_react7.default.createElement(CardDescription, null, props.subtitle)));
|
|
1626
1629
|
};
|
|
1627
1630
|
// components/elements/SplitButton.tsx
|
|
1628
|
-
var
|
|
1631
|
+
var React12 = __toESM(require("react"));
|
|
1629
1632
|
var SplitButton = function(_param) /* @__PURE__ */ {
|
|
1630
1633
|
var variant = _param.variant, _param_direction = _param.direction, direction = _param_direction === void 0 ? "ltr" : _param_direction, _param_menuItems = _param.menuItems, menuItems = _param_menuItems === void 0 ? [] : _param_menuItems, children = _param.children, props = _object_without_properties(_param, [
|
|
1631
1634
|
"variant",
|
|
@@ -1633,20 +1636,20 @@ var SplitButton = function(_param) /* @__PURE__ */ {
|
|
|
1633
1636
|
"menuItems",
|
|
1634
1637
|
"children"
|
|
1635
1638
|
]);
|
|
1636
|
-
return
|
|
1639
|
+
return React12.createElement("div", {
|
|
1637
1640
|
dir: "ltr",
|
|
1638
1641
|
className: cn("hawa-h-fit hawa-flex hawa-justify-center hawa-row")
|
|
1639
|
-
}, /* @__PURE__ */
|
|
1642
|
+
}, /* @__PURE__ */ React12.createElement(Button, {
|
|
1640
1643
|
variant: variant,
|
|
1641
1644
|
onClick: props.onClick,
|
|
1642
1645
|
className: cn(// direction === "rtl" ? "hawa-rounded-r-none" : "hawa-rounded-l-none",
|
|
1643
1646
|
"hawa-rounded-r-none", props.className)
|
|
1644
|
-
}, children), /* @__PURE__ */
|
|
1647
|
+
}, children), /* @__PURE__ */ React12.createElement(DropdownMenu, {
|
|
1645
1648
|
size: "sm",
|
|
1646
1649
|
width: "sm",
|
|
1647
1650
|
direction: direction,
|
|
1648
1651
|
items: menuItems,
|
|
1649
|
-
trigger: /* @__PURE__ */
|
|
1652
|
+
trigger: /* @__PURE__ */ React12.createElement(Button, {
|
|
1650
1653
|
asChild: true,
|
|
1651
1654
|
variant: variant,
|
|
1652
1655
|
size: "icon",
|
|
@@ -1655,7 +1658,7 @@ var SplitButton = function(_param) /* @__PURE__ */ {
|
|
|
1655
1658
|
// ? "hawa-rounded-l-none hawa-border-rl0"
|
|
1656
1659
|
// : "hawa-border-r-0 hawa-rounded-r-none",
|
|
1657
1660
|
props.className)
|
|
1658
|
-
}, /* @__PURE__ */
|
|
1661
|
+
}, /* @__PURE__ */ React12.createElement("svg", {
|
|
1659
1662
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1660
1663
|
width: "18",
|
|
1661
1664
|
height: "18",
|
|
@@ -1665,38 +1668,38 @@ var SplitButton = function(_param) /* @__PURE__ */ {
|
|
|
1665
1668
|
strokeWidth: "2",
|
|
1666
1669
|
strokeLinecap: "round",
|
|
1667
1670
|
strokeLinejoin: "round"
|
|
1668
|
-
}, /* @__PURE__ */
|
|
1671
|
+
}, /* @__PURE__ */ React12.createElement("path", {
|
|
1669
1672
|
d: "m6 9 6 6 6-6"
|
|
1670
1673
|
})))
|
|
1671
1674
|
}));
|
|
1672
1675
|
};
|
|
1673
1676
|
SplitButton.displayName = "SplitButton";
|
|
1674
1677
|
// components/elements/Dialog.tsx
|
|
1675
|
-
var
|
|
1678
|
+
var React13 = __toESM(require("react"));
|
|
1676
1679
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
1677
1680
|
var Dialog = DialogPrimitive.Root;
|
|
1678
1681
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
1679
1682
|
var DialogPortal = function(_param) /* @__PURE__ */ {
|
|
1680
1683
|
var props = _extends({}, _object_destructuring_empty(_param));
|
|
1681
|
-
return
|
|
1684
|
+
return React13.createElement(DialogPrimitive.Portal, _object_spread({}, props));
|
|
1682
1685
|
};
|
|
1683
1686
|
DialogPortal.displayName = DialogPrimitive.Portal.displayName;
|
|
1684
|
-
var DialogOverlay =
|
|
1687
|
+
var DialogOverlay = React13.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1685
1688
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
1686
1689
|
"className"
|
|
1687
1690
|
]);
|
|
1688
|
-
return
|
|
1691
|
+
return React13.createElement(DialogPrimitive.Overlay, _object_spread({
|
|
1689
1692
|
ref: ref,
|
|
1690
1693
|
className: cn("hawa-fixed hawa-inset-0 hawa-z-50 hawa-bg-background/80 hawa-backdrop-blur-sm 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", className)
|
|
1691
1694
|
}, props));
|
|
1692
1695
|
});
|
|
1693
1696
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
1694
|
-
var DialogContent =
|
|
1697
|
+
var DialogContent = React13.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1695
1698
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
1696
1699
|
"className",
|
|
1697
1700
|
"children"
|
|
1698
1701
|
]);
|
|
1699
|
-
return
|
|
1702
|
+
return React13.createElement(DialogPortal, null, /* @__PURE__ */ React13.createElement(DialogOverlay, null), /* @__PURE__ */ React13.createElement(DialogPrimitive.Content, _object_spread({
|
|
1700
1703
|
onPointerDownOutside: function(e) {
|
|
1701
1704
|
if (props.persist) {
|
|
1702
1705
|
e.preventDefault();
|
|
@@ -1704,19 +1707,19 @@ var DialogContent = React12.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
1704
1707
|
},
|
|
1705
1708
|
ref: ref,
|
|
1706
1709
|
className: cn("hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-full hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-duration-200 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-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] sm:hawa-rounded md:hawa-w-full", className)
|
|
1707
|
-
}, props), children, /* @__PURE__ */
|
|
1710
|
+
}, props), children, /* @__PURE__ */ React13.createElement(DialogPrimitive.Close, {
|
|
1708
1711
|
className: cn("hawa-absolute hawa-top-4 hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground", props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4")
|
|
1709
|
-
}, /* @__PURE__ */
|
|
1712
|
+
}, /* @__PURE__ */ React13.createElement("svg", {
|
|
1710
1713
|
"aria-label": "Close Icon",
|
|
1711
1714
|
"aria-hidden": "true",
|
|
1712
1715
|
className: "hawa-h-5 hawa-w-5",
|
|
1713
1716
|
fill: "currentColor",
|
|
1714
1717
|
viewBox: "0 0 20 20"
|
|
1715
|
-
}, /* @__PURE__ */
|
|
1718
|
+
}, /* @__PURE__ */ React13.createElement("path", {
|
|
1716
1719
|
fillRule: "evenodd",
|
|
1717
1720
|
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",
|
|
1718
1721
|
clipRule: "evenodd"
|
|
1719
|
-
})), /* @__PURE__ */
|
|
1722
|
+
})), /* @__PURE__ */ React13.createElement("span", {
|
|
1720
1723
|
className: "hawa-sr-only"
|
|
1721
1724
|
}, "Close"))));
|
|
1722
1725
|
});
|
|
@@ -1725,26 +1728,26 @@ var DialogHeader = function(_param) /* @__PURE__ */ {
|
|
|
1725
1728
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
1726
1729
|
"className"
|
|
1727
1730
|
]);
|
|
1728
|
-
return
|
|
1731
|
+
return React13.createElement("div", _object_spread({
|
|
1729
1732
|
className: cn("hawa-flex hawa-flex-col hawa-space-y-1.5 hawa-text-center sm:hawa-text-left", className)
|
|
1730
1733
|
}, props));
|
|
1731
1734
|
};
|
|
1732
1735
|
DialogHeader.displayName = "DialogHeader";
|
|
1733
|
-
var DialogTitle =
|
|
1736
|
+
var DialogTitle = React13.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1734
1737
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
1735
1738
|
"className"
|
|
1736
1739
|
]);
|
|
1737
|
-
return
|
|
1740
|
+
return React13.createElement(DialogPrimitive.Title, _object_spread({
|
|
1738
1741
|
ref: ref,
|
|
1739
1742
|
className: cn("hawa-text-start hawa-text-lg hawa-font-semibold hawa-leading-none hawa-tracking-tight", className)
|
|
1740
1743
|
}, props));
|
|
1741
1744
|
});
|
|
1742
1745
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1743
|
-
var DialogDescription =
|
|
1746
|
+
var DialogDescription = React13.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1744
1747
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
1745
1748
|
"className"
|
|
1746
1749
|
]);
|
|
1747
|
-
return
|
|
1750
|
+
return React13.createElement(DialogPrimitive.Description, _object_spread({
|
|
1748
1751
|
ref: ref,
|
|
1749
1752
|
className: cn("hawa-text-start hawa-text-sm hawa-text-muted-foreground", className)
|
|
1750
1753
|
}, props));
|
|
@@ -1754,7 +1757,7 @@ var DialogFooter = function(_param) /* @__PURE__ */ {
|
|
|
1754
1757
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
1755
1758
|
"className"
|
|
1756
1759
|
]);
|
|
1757
|
-
return
|
|
1760
|
+
return React13.createElement("div", _object_spread({
|
|
1758
1761
|
className: cn("hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end sm:hawa-gap-2", className)
|
|
1759
1762
|
}, props));
|
|
1760
1763
|
};
|
|
@@ -1962,7 +1965,7 @@ var CodeBlock = function(_param) {
|
|
|
1962
1965
|
})))))));
|
|
1963
1966
|
};
|
|
1964
1967
|
// components/elements/Checkbox.tsx
|
|
1965
|
-
var
|
|
1968
|
+
var React17 = __toESM(require("react"));
|
|
1966
1969
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
|
1967
1970
|
var Checkbox = function(_param) {
|
|
1968
1971
|
var id = _param.id, label = _param.label, sublabel = _param.sublabel, helperText = _param.helperText, checkboxProps = _object_without_properties(_param, [
|
|
@@ -1971,33 +1974,33 @@ var Checkbox = function(_param) {
|
|
|
1971
1974
|
"sublabel",
|
|
1972
1975
|
"helperText"
|
|
1973
1976
|
]);
|
|
1974
|
-
return /* @__PURE__ */
|
|
1977
|
+
return /* @__PURE__ */ React17.createElement("div", {
|
|
1975
1978
|
className: "hawa-items-top hawa-flex hawa-gap-2 "
|
|
1976
|
-
}, /* @__PURE__ */
|
|
1979
|
+
}, /* @__PURE__ */ React17.createElement(CheckboxElement, _object_spread({
|
|
1977
1980
|
id: id
|
|
1978
|
-
}, checkboxProps)), (label || helperText) && /* @__PURE__ */
|
|
1981
|
+
}, checkboxProps)), (label || helperText) && /* @__PURE__ */ React17.createElement("div", {
|
|
1979
1982
|
className: "hawa-grid hawa-gap-1.5 hawa-leading-none"
|
|
1980
|
-
}, label && /* @__PURE__ */
|
|
1983
|
+
}, label && /* @__PURE__ */ React17.createElement("label", {
|
|
1981
1984
|
htmlFor: id,
|
|
1982
1985
|
className: cn("hawa-cursor-pointer hawa-select-none hawa-text-sm hawa-font-medium hawa-leading-none hawa-pt-0.5", checkboxProps.disabled && "hawa-cursor-not-allowed hawa-text-muted-foreground hawa-opacity-70 ")
|
|
1983
|
-
}, label), sublabel && /* @__PURE__ */
|
|
1986
|
+
}, label), sublabel && /* @__PURE__ */ React17.createElement("label", {
|
|
1984
1987
|
htmlFor: id,
|
|
1985
1988
|
className: cn("hawa-cursor-pointer hawa-select-none hawa-text-sm hawa-text-muted-foreground", checkboxProps.disabled && "hawa-cursor-not-allowed hawa-text-muted-foreground hawa-opacity-70")
|
|
1986
|
-
}, sublabel), helperText && !checkboxProps.disabled && /* @__PURE__ */
|
|
1989
|
+
}, sublabel), helperText && !checkboxProps.disabled && /* @__PURE__ */ React17.createElement("label", {
|
|
1987
1990
|
htmlFor: id,
|
|
1988
1991
|
className: cn("hawa-select-none hawa-text-xs hawa-text-helper-color", checkboxProps.disabled && "hawa-cursor-not-allowed hawa-opacity-70")
|
|
1989
1992
|
}, helperText)));
|
|
1990
1993
|
};
|
|
1991
|
-
var CheckboxElement =
|
|
1994
|
+
var CheckboxElement = React17.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
1992
1995
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
1993
1996
|
"className"
|
|
1994
1997
|
]);
|
|
1995
|
-
return
|
|
1998
|
+
return React17.createElement(CheckboxPrimitive.Root, _object_spread({
|
|
1996
1999
|
ref: ref,
|
|
1997
2000
|
className: cn("hawa-peer hawa-icon hawa-shrink-0 hawa-rounded-sm hawa-border hawa-border-primary hawa-ring-offset-background 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 data-[state=checked]:hawa-bg-primary data-[state=checked]:hawa-text-primary-foreground", className)
|
|
1998
|
-
}, props), /* @__PURE__ */
|
|
2001
|
+
}, props), /* @__PURE__ */ React17.createElement(CheckboxPrimitive.Indicator, {
|
|
1999
2002
|
className: cn("hawa-flex hawa-items-center hawa-justify-center hawa-text-current")
|
|
2000
|
-
}, /* @__PURE__ */
|
|
2003
|
+
}, /* @__PURE__ */ React17.createElement("svg", {
|
|
2001
2004
|
"aria-label": "Check Mark",
|
|
2002
2005
|
stroke: "currentColor",
|
|
2003
2006
|
fill: "currentColor",
|
|
@@ -2005,13 +2008,13 @@ var CheckboxElement = React16.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
2005
2008
|
viewBox: "0 0 512 512",
|
|
2006
2009
|
height: "0.60em",
|
|
2007
2010
|
width: "0.60em"
|
|
2008
|
-
}, /* @__PURE__ */
|
|
2011
|
+
}, /* @__PURE__ */ React17.createElement("path", {
|
|
2009
2012
|
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"
|
|
2010
2013
|
})), " "));
|
|
2011
2014
|
});
|
|
2012
2015
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
|
2013
2016
|
// components/elements/Toast.tsx
|
|
2014
|
-
var
|
|
2017
|
+
var React18 = __toESM(require("react"));
|
|
2015
2018
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
|
2016
2019
|
var import_class_variance_authority2 = require("class-variance-authority");
|
|
2017
2020
|
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", {
|
|
@@ -2033,24 +2036,24 @@ var toastVariants = (0, import_class_variance_authority2.cva)("hawa-group hawa-p
|
|
|
2033
2036
|
}
|
|
2034
2037
|
});
|
|
2035
2038
|
var ToastProvider = ToastPrimitives.Provider;
|
|
2036
|
-
var ToastViewport =
|
|
2039
|
+
var ToastViewport = React18.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
2037
2040
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
2038
2041
|
"className"
|
|
2039
2042
|
]);
|
|
2040
|
-
return
|
|
2043
|
+
return React18.createElement(ToastPrimitives.Viewport, _object_spread({
|
|
2041
2044
|
ref: ref,
|
|
2042
2045
|
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)
|
|
2043
2046
|
}, props));
|
|
2044
2047
|
});
|
|
2045
2048
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
2046
|
-
var Toast =
|
|
2049
|
+
var Toast = React18.forwardRef(function(_param, ref) {
|
|
2047
2050
|
var className = _param.className, variant = _param.variant, _param_severity = _param.severity, severity = _param_severity === void 0 ? "none" : _param_severity, direction = _param.direction, props = _object_without_properties(_param, [
|
|
2048
2051
|
"className",
|
|
2049
2052
|
"variant",
|
|
2050
2053
|
"severity",
|
|
2051
2054
|
"direction"
|
|
2052
2055
|
]);
|
|
2053
|
-
return /* @__PURE__ */
|
|
2056
|
+
return /* @__PURE__ */ React18.createElement(ToastPrimitives.Root, _object_spread({
|
|
2054
2057
|
ref: ref,
|
|
2055
2058
|
className: cn(toastVariants({
|
|
2056
2059
|
variant: variant,
|
|
@@ -2060,52 +2063,52 @@ var Toast = React17.forwardRef(function(_param, ref) {
|
|
|
2060
2063
|
}, props));
|
|
2061
2064
|
});
|
|
2062
2065
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
2063
|
-
var ToastAction =
|
|
2066
|
+
var ToastAction = React18.forwardRef(function(_param, ref) {
|
|
2064
2067
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
2065
2068
|
"className"
|
|
2066
2069
|
]);
|
|
2067
|
-
return /* @__PURE__ */
|
|
2070
|
+
return /* @__PURE__ */ React18.createElement(ToastPrimitives.Action, _object_spread({
|
|
2068
2071
|
ref: ref,
|
|
2069
2072
|
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)
|
|
2070
2073
|
}, props));
|
|
2071
2074
|
});
|
|
2072
2075
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
2073
|
-
var ToastClose =
|
|
2076
|
+
var ToastClose = React18.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
2074
2077
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
2075
2078
|
"className"
|
|
2076
2079
|
]);
|
|
2077
|
-
return
|
|
2080
|
+
return React18.createElement(ToastPrimitives.Close, _object_spread({
|
|
2078
2081
|
ref: ref,
|
|
2079
2082
|
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),
|
|
2080
2083
|
"toast-close": ""
|
|
2081
|
-
}, props), /* @__PURE__ */
|
|
2084
|
+
}, props), /* @__PURE__ */ React18.createElement("svg", {
|
|
2082
2085
|
"aria-label": "Close Icon",
|
|
2083
2086
|
"aria-hidden": "true",
|
|
2084
2087
|
className: "hawa-icon",
|
|
2085
2088
|
fill: "currentColor",
|
|
2086
2089
|
viewBox: "0 0 20 20"
|
|
2087
|
-
}, /* @__PURE__ */
|
|
2090
|
+
}, /* @__PURE__ */ React18.createElement("path", {
|
|
2088
2091
|
fillRule: "evenodd",
|
|
2089
2092
|
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",
|
|
2090
2093
|
clipRule: "evenodd"
|
|
2091
2094
|
})));
|
|
2092
2095
|
});
|
|
2093
2096
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
2094
|
-
var ToastTitle =
|
|
2097
|
+
var ToastTitle = React18.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
2095
2098
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
2096
2099
|
"className"
|
|
2097
2100
|
]);
|
|
2098
|
-
return
|
|
2101
|
+
return React18.createElement(ToastPrimitives.Title, _object_spread({
|
|
2099
2102
|
ref: ref,
|
|
2100
2103
|
className: cn("hawa-text-sm hawa-font-semibold", className)
|
|
2101
2104
|
}, props));
|
|
2102
2105
|
});
|
|
2103
2106
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
2104
|
-
var ToastDescription =
|
|
2107
|
+
var ToastDescription = React18.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
2105
2108
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
2106
2109
|
"className"
|
|
2107
2110
|
]);
|
|
2108
|
-
return
|
|
2111
|
+
return React18.createElement(ToastPrimitives.Description, _object_spread({
|
|
2109
2112
|
ref: ref,
|
|
2110
2113
|
className: cn("hawa-text-sm hawa-opacity-90", className)
|
|
2111
2114
|
}, props));
|
|
@@ -2114,7 +2117,7 @@ ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
|
2114
2117
|
// components/elements/Toaster.tsx
|
|
2115
2118
|
var import_react12 = __toESM(require("react"));
|
|
2116
2119
|
// components/hooks/useToast.ts
|
|
2117
|
-
var
|
|
2120
|
+
var React19 = __toESM(require("react"));
|
|
2118
2121
|
var TOAST_LIMIT = 5;
|
|
2119
2122
|
var TOAST_REMOVE_DELAY = 1e5;
|
|
2120
2123
|
var count = 0;
|
|
@@ -2225,8 +2228,8 @@ function toast(_param) {
|
|
|
2225
2228
|
};
|
|
2226
2229
|
}
|
|
2227
2230
|
function useToast() {
|
|
2228
|
-
var
|
|
2229
|
-
|
|
2231
|
+
var _React19_useState = _sliced_to_array(React19.useState(memoryState), 2), state = _React19_useState[0], setState = _React19_useState[1];
|
|
2232
|
+
React19.useEffect(function() {
|
|
2230
2233
|
listeners.push(setState);
|
|
2231
2234
|
return function() {
|
|
2232
2235
|
var index = listeners.indexOf(setState);
|
|
@@ -2271,7 +2274,7 @@ function Toaster(props) {
|
|
|
2271
2274
|
}));
|
|
2272
2275
|
}
|
|
2273
2276
|
// components/elements/Switch.tsx
|
|
2274
|
-
var
|
|
2277
|
+
var React21 = __toESM(require("react"));
|
|
2275
2278
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
|
2276
2279
|
var rootSize = {
|
|
2277
2280
|
default: "hawa-h-[25px] hawa-w-[42px]",
|
|
@@ -2283,16 +2286,16 @@ var thumbSize = {
|
|
|
2283
2286
|
sm: "hawa-h-[16px] hawa-w-[16px]",
|
|
2284
2287
|
lg: "hawa-h-[26px] hawa-w-[26px]"
|
|
2285
2288
|
};
|
|
2286
|
-
var Switch =
|
|
2289
|
+
var Switch = React21.forwardRef(function(_param, ref) {
|
|
2287
2290
|
var className = _param.className, _param_size = _param.size, size = _param_size === void 0 ? "default" : _param_size, _param_roundedness = _param.roundedness, roundedness = _param_roundedness === void 0 ? "inherit" : _param_roundedness, label = _param.label, props = _object_without_properties(_param, [
|
|
2288
2291
|
"className",
|
|
2289
2292
|
"size",
|
|
2290
2293
|
"roundedness",
|
|
2291
2294
|
"label"
|
|
2292
2295
|
]);
|
|
2293
|
-
var
|
|
2294
|
-
var parentRef =
|
|
2295
|
-
|
|
2296
|
+
var _React21_useState = _sliced_to_array(React21.useState(null), 2), parentDirection = _React21_useState[0], setParentDirection = _React21_useState[1];
|
|
2297
|
+
var parentRef = React21.useRef(null);
|
|
2298
|
+
React21.useEffect(function() {
|
|
2296
2299
|
var _parentRef_current;
|
|
2297
2300
|
var parentNode = (_parentRef_current = parentRef.current) === null || _parentRef_current === void 0 ? void 0 : _parentRef_current.parentNode;
|
|
2298
2301
|
if (parentNode) {
|
|
@@ -2310,16 +2313,16 @@ var Switch = React20.forwardRef(function(_param, ref) {
|
|
|
2310
2313
|
full: "hawa-rounded-full",
|
|
2311
2314
|
inherit: "hawa-rounded-inner"
|
|
2312
2315
|
};
|
|
2313
|
-
return /* @__PURE__ */
|
|
2316
|
+
return /* @__PURE__ */ React21.createElement("div", {
|
|
2314
2317
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
|
2315
2318
|
ref: parentRef
|
|
2316
|
-
}, /* @__PURE__ */
|
|
2319
|
+
}, /* @__PURE__ */ React21.createElement(SwitchPrimitives.Root, _object_spread_props(_object_spread({
|
|
2317
2320
|
className: cn("hawa-relative hawa-cursor-pointer hawa-rounded hawa-bg-primary/20 hawa-outline-none data-[state=checked]:hawa-bg-primary", rootRoundednessStyles[roundedness], className, rootSize[size])
|
|
2318
2321
|
}, props), {
|
|
2319
2322
|
ref: ref
|
|
2320
|
-
}), /* @__PURE__ */
|
|
2323
|
+
}), /* @__PURE__ */ React21.createElement(SwitchPrimitives.Thumb, {
|
|
2321
2324
|
className: cn(thumbSize[size], "hawa-block hawa-rounded hawa-bg-white hawa-transition-transform hawa-duration-100 hawa-will-change-transform data-[state=checked]:hawa-bg-primary-foreground dark:hawa-bg-background", thumbRoundednessStyles[roundedness], parentDirection === "rtl" ? "hawa--translate-x-0.5 data-[state=checked]:hawa--translate-x-[19px]" : "hawa-translate-x-0.5 data-[state=checked]:hawa-translate-x-[19px]")
|
|
2322
|
-
})), label && /* @__PURE__ */
|
|
2325
|
+
})), label && /* @__PURE__ */ React21.createElement("span", {
|
|
2323
2326
|
className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300"
|
|
2324
2327
|
}, label));
|
|
2325
2328
|
});
|
|
@@ -2327,8 +2330,8 @@ Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
|
2327
2330
|
// components/elements/Radio.tsx
|
|
2328
2331
|
var import_react13 = __toESM(require("react"));
|
|
2329
2332
|
// components/elements/Label.tsx
|
|
2330
|
-
var
|
|
2331
|
-
var Label2 =
|
|
2333
|
+
var React22 = __toESM(require("react"));
|
|
2334
|
+
var Label2 = React22.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
2332
2335
|
var className = _param.className, hint = _param.hint, hintSide = _param.hintSide, required = _param.required, children = _param.children, props = _object_without_properties(_param, [
|
|
2333
2336
|
"className",
|
|
2334
2337
|
"hint",
|
|
@@ -2336,17 +2339,17 @@ var Label2 = React21.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
2336
2339
|
"required",
|
|
2337
2340
|
"children"
|
|
2338
2341
|
]);
|
|
2339
|
-
return
|
|
2342
|
+
return React22.createElement("div", {
|
|
2340
2343
|
className: "hawa-flex hawa-flex-row hawa-gap-2 hawa-items-center"
|
|
2341
|
-
}, /* @__PURE__ */
|
|
2344
|
+
}, /* @__PURE__ */ React22.createElement("label", _object_spread({
|
|
2342
2345
|
ref: ref,
|
|
2343
2346
|
className: cn("hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70", className)
|
|
2344
|
-
}, props), children, required && /* @__PURE__ */
|
|
2347
|
+
}, props), children, required && /* @__PURE__ */ React22.createElement("span", {
|
|
2345
2348
|
className: "hawa-text-red-500 hawa-mx-0.5"
|
|
2346
|
-
}, "*")), hint && /* @__PURE__ */
|
|
2349
|
+
}, "*")), hint && /* @__PURE__ */ React22.createElement(Tooltip, {
|
|
2347
2350
|
content: hint,
|
|
2348
2351
|
side: hintSide
|
|
2349
|
-
}, /* @__PURE__ */
|
|
2352
|
+
}, /* @__PURE__ */ React22.createElement("svg", {
|
|
2350
2353
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2351
2354
|
className: "hawa-w-[14px] hawa-h-[14px] hawa-cursor-help",
|
|
2352
2355
|
viewBox: "0 0 24 24",
|
|
@@ -2355,16 +2358,16 @@ var Label2 = React21.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
2355
2358
|
strokeWidth: "2",
|
|
2356
2359
|
strokeLinecap: "round",
|
|
2357
2360
|
strokeLinejoin: "round"
|
|
2358
|
-
}, /* @__PURE__ */
|
|
2361
|
+
}, /* @__PURE__ */ React22.createElement("circle", {
|
|
2359
2362
|
cx: "12",
|
|
2360
2363
|
cy: "12",
|
|
2361
2364
|
r: "10"
|
|
2362
|
-
}), /* @__PURE__ */
|
|
2365
|
+
}), /* @__PURE__ */ React22.createElement("line", {
|
|
2363
2366
|
x1: "12",
|
|
2364
2367
|
x2: "12",
|
|
2365
2368
|
y1: "8",
|
|
2366
2369
|
y2: "12"
|
|
2367
|
-
}), /* @__PURE__ */
|
|
2370
|
+
}), /* @__PURE__ */ React22.createElement("line", {
|
|
2368
2371
|
x1: "12",
|
|
2369
2372
|
x2: "12.01",
|
|
2370
2373
|
y1: "16",
|
|
@@ -2667,15 +2670,15 @@ var Alert = function(_param) {
|
|
|
2667
2670
|
})))));
|
|
2668
2671
|
};
|
|
2669
2672
|
// components/elements/Popover.tsx
|
|
2670
|
-
var
|
|
2673
|
+
var React27 = __toESM(require("react"));
|
|
2671
2674
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
|
2672
|
-
var PopoverContent =
|
|
2675
|
+
var PopoverContent = React27.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
2673
2676
|
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, [
|
|
2674
2677
|
"className",
|
|
2675
2678
|
"align",
|
|
2676
2679
|
"sideOffset"
|
|
2677
2680
|
]);
|
|
2678
|
-
return
|
|
2681
|
+
return React27.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React27.createElement(PopoverPrimitive.Content, _object_spread({
|
|
2679
2682
|
ref: ref,
|
|
2680
2683
|
align: align,
|
|
2681
2684
|
sideOffset: sideOffset,
|
|
@@ -2694,11 +2697,11 @@ var Popover = function(_param) /* @__PURE__ */ {
|
|
|
2694
2697
|
"open",
|
|
2695
2698
|
"disableTrigger"
|
|
2696
2699
|
]);
|
|
2697
|
-
return
|
|
2700
|
+
return React27.createElement(PopoverPrimitive.Root, _object_spread({
|
|
2698
2701
|
open: open
|
|
2699
|
-
}, props), /* @__PURE__ */
|
|
2702
|
+
}, props), /* @__PURE__ */ React27.createElement(PopoverPrimitive.Trigger, {
|
|
2700
2703
|
disabled: disableTrigger
|
|
2701
|
-
}, trigger), /* @__PURE__ */
|
|
2704
|
+
}, trigger), /* @__PURE__ */ React27.createElement(PopoverContent, {
|
|
2702
2705
|
side: side,
|
|
2703
2706
|
className: className,
|
|
2704
2707
|
align: align,
|
|
@@ -2707,36 +2710,36 @@ var Popover = function(_param) /* @__PURE__ */ {
|
|
|
2707
2710
|
};
|
|
2708
2711
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
2709
2712
|
// components/elements/Textarea.tsx
|
|
2710
|
-
var
|
|
2711
|
-
var Textarea =
|
|
2713
|
+
var React28 = __toESM(require("react"));
|
|
2714
|
+
var Textarea = React28.forwardRef(function(_param, ref) {
|
|
2712
2715
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
2713
2716
|
"className"
|
|
2714
2717
|
]);
|
|
2715
|
-
return /* @__PURE__ */
|
|
2718
|
+
return /* @__PURE__ */ React28.createElement("div", {
|
|
2716
2719
|
className: "hawa-flex hawa-flex-col hawa-gap-2"
|
|
2717
|
-
}, /* @__PURE__ */
|
|
2720
|
+
}, /* @__PURE__ */ React28.createElement("textarea", _object_spread({
|
|
2718
2721
|
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),
|
|
2719
2722
|
ref: ref
|
|
2720
|
-
}, props)), /* @__PURE__ */
|
|
2723
|
+
}, props)), /* @__PURE__ */ React28.createElement("p", {
|
|
2721
2724
|
className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start", props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
|
|
2722
2725
|
}, props.helperText), " ");
|
|
2723
2726
|
});
|
|
2724
2727
|
Textarea.displayName = "Textarea";
|
|
2725
2728
|
// components/elements/Slider.tsx
|
|
2726
|
-
var
|
|
2729
|
+
var React29 = __toESM(require("react"));
|
|
2727
2730
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
|
2728
|
-
var Slider =
|
|
2731
|
+
var Slider = React29.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
2729
2732
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
2730
2733
|
"className"
|
|
2731
2734
|
]);
|
|
2732
|
-
return
|
|
2735
|
+
return React29.createElement(SliderPrimitive.Root, _object_spread({
|
|
2733
2736
|
ref: ref,
|
|
2734
2737
|
className: cn("hawa-relative hawa-flex hawa-w-full hawa-touch-none hawa-select-none hawa-items-center", className)
|
|
2735
|
-
}, props), /* @__PURE__ */
|
|
2738
|
+
}, props), /* @__PURE__ */ React29.createElement(SliderPrimitive.Track, {
|
|
2736
2739
|
className: "hawa-relative hawa-h-2 hawa-w-full hawa-grow hawa-overflow-hidden hawa-rounded-full hawa-bg-background hawa-border"
|
|
2737
|
-
}, /* @__PURE__ */
|
|
2740
|
+
}, /* @__PURE__ */ React29.createElement(SliderPrimitive.Range, {
|
|
2738
2741
|
className: "hawa-absolute hawa-h-full hawa-bg-primary"
|
|
2739
|
-
})), /* @__PURE__ */
|
|
2742
|
+
})), /* @__PURE__ */ React29.createElement(SliderPrimitive.Thumb, {
|
|
2740
2743
|
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"
|
|
2741
2744
|
}));
|
|
2742
2745
|
});
|
|
@@ -5224,37 +5227,37 @@ var SortButton = function(props) {
|
|
|
5224
5227
|
})));
|
|
5225
5228
|
};
|
|
5226
5229
|
// components/elements/DataTable.tsx
|
|
5227
|
-
var
|
|
5230
|
+
var React41 = __toESM(require("react"));
|
|
5228
5231
|
var import_react_table = require("@tanstack/react-table");
|
|
5229
5232
|
// components/elements/Table.tsx
|
|
5230
|
-
var
|
|
5231
|
-
var Table =
|
|
5233
|
+
var React39 = __toESM(require("react"));
|
|
5234
|
+
var Table = React39.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5232
5235
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
5233
5236
|
"className"
|
|
5234
5237
|
]);
|
|
5235
|
-
return
|
|
5238
|
+
return React39.createElement("div", {
|
|
5236
5239
|
className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border"
|
|
5237
|
-
}, /* @__PURE__ */
|
|
5240
|
+
}, /* @__PURE__ */ React39.createElement("table", _object_spread({
|
|
5238
5241
|
ref: ref,
|
|
5239
5242
|
className: cn("hawa-w-full hawa-caption-bottom hawa-text-sm", className)
|
|
5240
5243
|
}, props)));
|
|
5241
5244
|
});
|
|
5242
5245
|
Table.displayName = "Table";
|
|
5243
|
-
var TableHeader =
|
|
5246
|
+
var TableHeader = React39.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5244
5247
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
5245
5248
|
"className"
|
|
5246
5249
|
]);
|
|
5247
|
-
return
|
|
5250
|
+
return React39.createElement("thead", _object_spread({
|
|
5248
5251
|
ref: ref,
|
|
5249
5252
|
className: cn("[&_tr]:hawa-border-b", "hawa-bg-muted/50", className)
|
|
5250
5253
|
}, props));
|
|
5251
5254
|
});
|
|
5252
5255
|
TableHeader.displayName = "TableHeader";
|
|
5253
|
-
var TableHead =
|
|
5256
|
+
var TableHead = React39.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5254
5257
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
5255
5258
|
"className"
|
|
5256
5259
|
]);
|
|
5257
|
-
return
|
|
5260
|
+
return React39.createElement("th", _object_spread({
|
|
5258
5261
|
ref: ref,
|
|
5259
5262
|
className: cn("hawa-bg-muted/60 dark:hawa-bg-muted/40 hawa-text-start hawa-align-middle hawa-font-medium hawa-text-muted-foreground [&:has([role=checkbox])]:hawa-pr-0 [&:not(:last-child)&:not(:first-child)]:hawa-border-x", props.dir === "rtl" ? "[&:not(:last-child)]:hawa-border-l" : "[&:not(:last-child)]:hawa-border-r", props.condensed ? "hawa-h-8" : "hawa-h-12", props.clickable ? "hawa-px-1" : "hawa-px-4", //First and last columns
|
|
5260
5263
|
props.clickable ? " [&:not(:last-child)&:not(:first-child)]:hawa-p-1" : "hawa-px-4", //Columns in between
|
|
@@ -5262,32 +5265,32 @@ var TableHead = React38.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
5262
5265
|
}, props));
|
|
5263
5266
|
});
|
|
5264
5267
|
TableHead.displayName = "TableHead";
|
|
5265
|
-
var TableBody =
|
|
5268
|
+
var TableBody = React39.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5266
5269
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
5267
5270
|
"className"
|
|
5268
5271
|
]);
|
|
5269
|
-
return
|
|
5272
|
+
return React39.createElement("tbody", _object_spread({
|
|
5270
5273
|
ref: ref,
|
|
5271
5274
|
className: cn(// "[&_tr:last-child]:border-0"
|
|
5272
5275
|
"hawa-border-none", className)
|
|
5273
5276
|
}, props));
|
|
5274
5277
|
});
|
|
5275
5278
|
TableBody.displayName = "TableBody";
|
|
5276
|
-
var TableFooter =
|
|
5279
|
+
var TableFooter = React39.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5277
5280
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
5278
5281
|
"className"
|
|
5279
5282
|
]);
|
|
5280
|
-
return
|
|
5283
|
+
return React39.createElement("tfoot", _object_spread({
|
|
5281
5284
|
ref: ref,
|
|
5282
5285
|
className: cn("hawa-bg-primary hawa-font-medium hawa-text-primary-foreground", className)
|
|
5283
5286
|
}, props));
|
|
5284
5287
|
});
|
|
5285
5288
|
TableFooter.displayName = "TableFooter";
|
|
5286
|
-
var TableRow =
|
|
5289
|
+
var TableRow = React39.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5287
5290
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
5288
5291
|
"className"
|
|
5289
5292
|
]);
|
|
5290
|
-
return
|
|
5293
|
+
return React39.createElement("tr", _object_spread({
|
|
5291
5294
|
ref: ref,
|
|
5292
5295
|
className: cn(// "border-b",
|
|
5293
5296
|
"hawa-transition-colors data-[state=selected]:hawa-bg-muted hawa-bg-background", // hover:bg-muted/50
|
|
@@ -5295,11 +5298,11 @@ var TableRow = React38.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
5295
5298
|
}, props));
|
|
5296
5299
|
});
|
|
5297
5300
|
TableRow.displayName = "TableRow";
|
|
5298
|
-
var TableCell =
|
|
5301
|
+
var TableCell = React39.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5299
5302
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
5300
5303
|
"className"
|
|
5301
5304
|
]);
|
|
5302
|
-
return
|
|
5305
|
+
return React39.createElement("td", _object_spread({
|
|
5303
5306
|
ref: ref,
|
|
5304
5307
|
className: cn(// "border-x",
|
|
5305
5308
|
props.condensed ? "hawa-p-0 hawa-px-4" : "hawa-p-4", "hawa-align-middle [&:has([role=checkbox])]:hawa-pr-0 ", "[&:not(:last-child)&:not(:first-child)]:hawa-border-x", // "[&:not(:last-child)]:hawa-border-r",
|
|
@@ -5307,11 +5310,11 @@ var TableCell = React38.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
5307
5310
|
}, props));
|
|
5308
5311
|
});
|
|
5309
5312
|
TableCell.displayName = "TableCell";
|
|
5310
|
-
var TableCaption =
|
|
5313
|
+
var TableCaption = React39.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5311
5314
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
5312
5315
|
"className"
|
|
5313
5316
|
]);
|
|
5314
|
-
return
|
|
5317
|
+
return React39.createElement("caption", _object_spread({
|
|
5315
5318
|
ref: ref,
|
|
5316
5319
|
className: cn("hawa-mt-4 hawa-text-sm hawa-text-muted-foreground", className)
|
|
5317
5320
|
}, props));
|
|
@@ -5389,17 +5392,17 @@ var DataTable = function(_param) {
|
|
|
5389
5392
|
"enableGoTo"
|
|
5390
5393
|
]);
|
|
5391
5394
|
var _props_texts, _props_itemsPerPage, _props_texts1, _props_texts2, _table_getRowModel_rows, _props_texts3, _props_texts4, _props_texts5, _props_texts6, _props_texts7, _props_texts8;
|
|
5392
|
-
var
|
|
5395
|
+
var _React41_useState = _sliced_to_array(React41.useState([
|
|
5393
5396
|
{
|
|
5394
5397
|
id: props.defaultSort || "",
|
|
5395
5398
|
desc: false
|
|
5396
5399
|
}
|
|
5397
|
-
]), 2), sorting =
|
|
5398
|
-
var
|
|
5399
|
-
var
|
|
5400
|
-
var
|
|
5401
|
-
var
|
|
5402
|
-
var
|
|
5400
|
+
]), 2), sorting = _React41_useState[0], setSorting = _React41_useState[1];
|
|
5401
|
+
var _React41_useState1 = _sliced_to_array(React41.useState([]), 2), columnFilters = _React41_useState1[0], setColumnFilters = _React41_useState1[1];
|
|
5402
|
+
var _React41_useState2 = _sliced_to_array(React41.useState(""), 2), globalFilter = _React41_useState2[0], setGlobalFilter = _React41_useState2[1];
|
|
5403
|
+
var _React41_useState3 = _sliced_to_array(React41.useState({}), 2), expanded = _React41_useState3[0], setExpanded = _React41_useState3[1];
|
|
5404
|
+
var _React41_useState4 = _sliced_to_array(React41.useState({}), 2), columnVisibility = _React41_useState4[0], setColumnVisibility = _React41_useState4[1];
|
|
5405
|
+
var _React41_useState5 = _sliced_to_array(React41.useState({}), 2), rowSelection = _React41_useState5[0], setRowSelection = _React41_useState5[1];
|
|
5403
5406
|
var table = (0, import_react_table.useReactTable)({
|
|
5404
5407
|
data: data,
|
|
5405
5408
|
columns: columns,
|
|
@@ -5430,11 +5433,11 @@ var DataTable = function(_param) {
|
|
|
5430
5433
|
value: item
|
|
5431
5434
|
};
|
|
5432
5435
|
});
|
|
5433
|
-
return /* @__PURE__ */
|
|
5436
|
+
return /* @__PURE__ */ React41.createElement("div", {
|
|
5434
5437
|
className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4"
|
|
5435
|
-
}, (enableSearch || enableHideColumns) && /* @__PURE__ */
|
|
5438
|
+
}, (enableSearch || enableHideColumns) && /* @__PURE__ */ React41.createElement("div", {
|
|
5436
5439
|
className: "hawa-flex hawa-items-center hawa-flex-row hawa-gap-4"
|
|
5437
|
-
}, enableSearch && /* @__PURE__ */
|
|
5440
|
+
}, enableSearch && /* @__PURE__ */ React41.createElement(Input, {
|
|
5438
5441
|
forceHideHelperText: true,
|
|
5439
5442
|
placeholder: (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.searchPlaceholder,
|
|
5440
5443
|
value: globalFilter !== null && globalFilter !== void 0 ? globalFilter : "",
|
|
@@ -5443,12 +5446,12 @@ var DataTable = function(_param) {
|
|
|
5443
5446
|
},
|
|
5444
5447
|
margin: "none",
|
|
5445
5448
|
className: "hawa-w-full md:hawa-max-w-sm"
|
|
5446
|
-
}), enableHideColumns && /* @__PURE__ */
|
|
5449
|
+
}), enableHideColumns && /* @__PURE__ */ React41.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React41.createElement(DropdownMenuTrigger, {
|
|
5447
5450
|
asChild: true
|
|
5448
|
-
}, /* @__PURE__ */
|
|
5451
|
+
}, /* @__PURE__ */ React41.createElement(Button, {
|
|
5449
5452
|
variant: "outline",
|
|
5450
5453
|
className: "hawa-flex hawa-flex-row hawa-gap-2"
|
|
5451
|
-
}, ((_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.columns) || "Columns", /* @__PURE__ */
|
|
5454
|
+
}, ((_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.columns) || "Columns", /* @__PURE__ */ React41.createElement("svg", {
|
|
5452
5455
|
"aria-label": "Chevron Down Icon",
|
|
5453
5456
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5454
5457
|
width: "24",
|
|
@@ -5460,67 +5463,67 @@ var DataTable = function(_param) {
|
|
|
5460
5463
|
"stroke-linecap": "round",
|
|
5461
5464
|
"stroke-linejoin": "round",
|
|
5462
5465
|
className: "hawa-icon hawa-rotate-90"
|
|
5463
|
-
}, /* @__PURE__ */
|
|
5466
|
+
}, /* @__PURE__ */ React41.createElement("path", {
|
|
5464
5467
|
d: "m9 18 6-6-6-6"
|
|
5465
|
-
})))), /* @__PURE__ */
|
|
5468
|
+
})))), /* @__PURE__ */ React41.createElement(DropdownMenuContent, {
|
|
5466
5469
|
align: props.direction === "rtl" ? "start" : "end"
|
|
5467
5470
|
}, table.getAllColumns().filter(function(column) {
|
|
5468
5471
|
return column.getCanHide();
|
|
5469
5472
|
}).map(function(column) {
|
|
5470
|
-
return /* @__PURE__ */
|
|
5473
|
+
return /* @__PURE__ */ React41.createElement(DropdownMenuCheckboxItem, {
|
|
5471
5474
|
key: column.id,
|
|
5472
5475
|
checked: column.getIsVisible(),
|
|
5473
5476
|
onCheckedChange: function(value) {
|
|
5474
5477
|
return column.toggleVisibility(!!value);
|
|
5475
5478
|
}
|
|
5476
5479
|
}, translateFn ? translateFn(column.id) : column.id);
|
|
5477
|
-
})))), props.isLoading ? /* @__PURE__ */
|
|
5480
|
+
})))), props.isLoading ? /* @__PURE__ */ React41.createElement(Skeleton, {
|
|
5478
5481
|
className: "hawa-h-[130px] hawa-w-full"
|
|
5479
|
-
}) : /* @__PURE__ */
|
|
5482
|
+
}) : /* @__PURE__ */ React41.createElement("div", {
|
|
5480
5483
|
className: cn("hawa-flex hawa-w-full hawa-gap-4", paginationPosition === "top" ? "hawa-flex-col-reverse" : "hawa-flex-col")
|
|
5481
|
-
}, /* @__PURE__ */
|
|
5484
|
+
}, /* @__PURE__ */ React41.createElement("div", {
|
|
5482
5485
|
className: "hawa-rounded-md"
|
|
5483
|
-
}, /* @__PURE__ */
|
|
5484
|
-
return /* @__PURE__ */
|
|
5486
|
+
}, /* @__PURE__ */ React41.createElement(Table, null, table.getAllColumns().length > 0 && /* @__PURE__ */ React41.createElement(TableHeader, null, table.getHeaderGroups().map(function(headerGroup) {
|
|
5487
|
+
return /* @__PURE__ */ React41.createElement(TableRow, {
|
|
5485
5488
|
key: headerGroup.id
|
|
5486
5489
|
}, headerGroup.headers.map(function(header) {
|
|
5487
5490
|
var _header_column_columnDef_meta;
|
|
5488
5491
|
var isSortable = (_header_column_columnDef_meta = header.column.columnDef.meta) === null || _header_column_columnDef_meta === void 0 ? void 0 : _header_column_columnDef_meta.sortable;
|
|
5489
|
-
return /* @__PURE__ */
|
|
5492
|
+
return /* @__PURE__ */ React41.createElement(TableHead, {
|
|
5490
5493
|
dir: props.direction,
|
|
5491
5494
|
condensed: props.condensed,
|
|
5492
5495
|
clickable: isSortable,
|
|
5493
5496
|
key: header.id
|
|
5494
5497
|
}, header.isPlaceholder ? null : (0, import_react_table.flexRender)(header.column.columnDef.header, header.getContext()));
|
|
5495
5498
|
}));
|
|
5496
|
-
})), /* @__PURE__ */
|
|
5497
|
-
return /* @__PURE__ */
|
|
5499
|
+
})), /* @__PURE__ */ React41.createElement(TableBody, null, ((_table_getRowModel_rows = table.getRowModel().rows) === null || _table_getRowModel_rows === void 0 ? void 0 : _table_getRowModel_rows.length) ? table.getRowModel().rows.map(function(row) {
|
|
5500
|
+
return /* @__PURE__ */ React41.createElement(TableRow, {
|
|
5498
5501
|
key: row.id,
|
|
5499
5502
|
"data-state": row.getIsSelected() && "selected"
|
|
5500
5503
|
}, row.getVisibleCells().map(function(cell) {
|
|
5501
|
-
return /* @__PURE__ */
|
|
5504
|
+
return /* @__PURE__ */ React41.createElement(TableCell, {
|
|
5502
5505
|
dir: props.direction,
|
|
5503
5506
|
condensed: props.condensed,
|
|
5504
5507
|
key: cell.id
|
|
5505
5508
|
}, (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()));
|
|
5506
5509
|
}));
|
|
5507
|
-
}) : /* @__PURE__ */
|
|
5510
|
+
}) : /* @__PURE__ */ React41.createElement(TableRow, null, /* @__PURE__ */ React41.createElement(TableCell, {
|
|
5508
5511
|
colSpan: columns.length,
|
|
5509
5512
|
className: "hawa-h-24 hawa-text-center"
|
|
5510
|
-
}, (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.noData))))), /* @__PURE__ */
|
|
5513
|
+
}, (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.noData))))), /* @__PURE__ */ React41.createElement("div", {
|
|
5511
5514
|
className: "hawa-flex hawa-items-center hawa-justify-between"
|
|
5512
|
-
}, !props.showCount && /* @__PURE__ */
|
|
5515
|
+
}, !props.showCount && /* @__PURE__ */ React41.createElement("div", {
|
|
5513
5516
|
className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm hawa-text-muted-foreground"
|
|
5514
|
-
}), props.showCount && /* @__PURE__ */
|
|
5517
|
+
}), props.showCount && /* @__PURE__ */ React41.createElement("div", {
|
|
5515
5518
|
className: "text-sm text-muted-foreground",
|
|
5516
5519
|
dir: props.direction
|
|
5517
|
-
}, /* @__PURE__ */
|
|
5520
|
+
}, /* @__PURE__ */ React41.createElement("span", null, (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.total), " ", /* @__PURE__ */ React41.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())), table.getPageCount() !== 0 && /* @__PURE__ */ React41.createElement("div", {
|
|
5518
5521
|
className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 "
|
|
5519
|
-
}, enableGoTo && /* @__PURE__ */
|
|
5522
|
+
}, enableGoTo && /* @__PURE__ */ React41.createElement("div", {
|
|
5520
5523
|
className: "hawa-flex hawa-flex-row hawa-justify-center hawa-items-center hawa-gap-2"
|
|
5521
|
-
}, /* @__PURE__ */
|
|
5524
|
+
}, /* @__PURE__ */ React41.createElement("span", {
|
|
5522
5525
|
className: "hawa-text-sm"
|
|
5523
|
-
}, (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.goTo), /* @__PURE__ */
|
|
5526
|
+
}, (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.goTo), /* @__PURE__ */ React41.createElement("input", {
|
|
5524
5527
|
max: table.getPageCount(),
|
|
5525
5528
|
min: 0,
|
|
5526
5529
|
type: "number",
|
|
@@ -5534,7 +5537,7 @@ var DataTable = function(_param) {
|
|
|
5534
5537
|
table.setPageIndex(page);
|
|
5535
5538
|
},
|
|
5536
5539
|
className: "hawa-w-16 hawa-text-sm hawa-border hawa-rounded hawa-p-1 hawa-px-2"
|
|
5537
|
-
})), /* @__PURE__ */
|
|
5540
|
+
})), /* @__PURE__ */ React41.createElement(DropdownMenu, {
|
|
5538
5541
|
size: "sm",
|
|
5539
5542
|
width: "sm",
|
|
5540
5543
|
direction: props.direction,
|
|
@@ -5560,7 +5563,7 @@ var DataTable = function(_param) {
|
|
|
5560
5563
|
value: 50
|
|
5561
5564
|
}
|
|
5562
5565
|
],
|
|
5563
|
-
trigger: /* @__PURE__ */
|
|
5566
|
+
trigger: /* @__PURE__ */ React41.createElement(Button, {
|
|
5564
5567
|
variant: "outline",
|
|
5565
5568
|
size: "icon",
|
|
5566
5569
|
className: "hawa-h-fit hawa-w-fit hawa-p-0 hawa-px-2 hawa-py-1 "
|
|
@@ -5568,17 +5571,17 @@ var DataTable = function(_param) {
|
|
|
5568
5571
|
onItemSelect: function(e) {
|
|
5569
5572
|
return table.setPageSize(Number(e));
|
|
5570
5573
|
}
|
|
5571
|
-
}), /* @__PURE__ */
|
|
5574
|
+
}), /* @__PURE__ */ React41.createElement("div", {
|
|
5572
5575
|
className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm "
|
|
5573
|
-
}, /* @__PURE__ */
|
|
5576
|
+
}, /* @__PURE__ */ React41.createElement("span", {
|
|
5574
5577
|
className: "hawa-flex hawa-items-center hawa-gap-1"
|
|
5575
|
-
}, /* @__PURE__ */
|
|
5578
|
+
}, /* @__PURE__ */ React41.createElement("div", null, (_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.page), /* @__PURE__ */ React41.createElement("div", {
|
|
5576
5579
|
className: "hawa-flex hawa-flex-row hawa-gap-1"
|
|
5577
|
-
}, /* @__PURE__ */
|
|
5580
|
+
}, /* @__PURE__ */ React41.createElement("span", {
|
|
5578
5581
|
className: "hawa-font-bold"
|
|
5579
|
-
}, table.getState().pagination.pageIndex + 1), /* @__PURE__ */
|
|
5582
|
+
}, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React41.createElement("span", null, (_props_texts8 = props.texts) === null || _props_texts8 === void 0 ? void 0 : _props_texts8.of), /* @__PURE__ */ React41.createElement("span", {
|
|
5580
5583
|
className: "hawa-font-bold"
|
|
5581
|
-
}, table.getPageCount())))), /* @__PURE__ */
|
|
5584
|
+
}, table.getPageCount())))), /* @__PURE__ */ React41.createElement(Button, {
|
|
5582
5585
|
"aria-label": "Previous Table Page",
|
|
5583
5586
|
variant: "outline",
|
|
5584
5587
|
size: "smallIcon",
|
|
@@ -5587,7 +5590,7 @@ var DataTable = function(_param) {
|
|
|
5587
5590
|
},
|
|
5588
5591
|
disabled: !table.getCanPreviousPage(),
|
|
5589
5592
|
className: cn(props.direction === "ltr" && "hawa-rotate-180")
|
|
5590
|
-
}, /* @__PURE__ */
|
|
5593
|
+
}, /* @__PURE__ */ React41.createElement("svg", {
|
|
5591
5594
|
"aria-label": "Chevron Right Icon",
|
|
5592
5595
|
stroke: "currentColor",
|
|
5593
5596
|
fill: "currentColor",
|
|
@@ -5595,10 +5598,10 @@ var DataTable = function(_param) {
|
|
|
5595
5598
|
viewBox: "0 0 16 16",
|
|
5596
5599
|
height: "1em",
|
|
5597
5600
|
width: "1em"
|
|
5598
|
-
}, /* @__PURE__ */
|
|
5601
|
+
}, /* @__PURE__ */ React41.createElement("path", {
|
|
5599
5602
|
fillRule: "evenodd",
|
|
5600
5603
|
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"
|
|
5601
|
-
}))), /* @__PURE__ */
|
|
5604
|
+
}))), /* @__PURE__ */ React41.createElement(Button, {
|
|
5602
5605
|
"aria-label": "Next Table Page",
|
|
5603
5606
|
variant: "outline",
|
|
5604
5607
|
size: "smallIcon",
|
|
@@ -5607,7 +5610,7 @@ var DataTable = function(_param) {
|
|
|
5607
5610
|
},
|
|
5608
5611
|
disabled: !table.getCanNextPage(),
|
|
5609
5612
|
className: cn(props.direction === "rtl" && "hawa-rotate-180")
|
|
5610
|
-
}, /* @__PURE__ */
|
|
5613
|
+
}, /* @__PURE__ */ React41.createElement("svg", {
|
|
5611
5614
|
"aria-label": "Chevron Right Icon",
|
|
5612
5615
|
fill: "currentColor",
|
|
5613
5616
|
stroke: "currentColor",
|
|
@@ -5615,13 +5618,13 @@ var DataTable = function(_param) {
|
|
|
5615
5618
|
height: "1em",
|
|
5616
5619
|
strokeWidth: "0",
|
|
5617
5620
|
viewBox: "0 0 16 16"
|
|
5618
|
-
}, /* @__PURE__ */
|
|
5621
|
+
}, /* @__PURE__ */ React41.createElement("path", {
|
|
5619
5622
|
fillRule: "evenodd",
|
|
5620
5623
|
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"
|
|
5621
5624
|
})))))));
|
|
5622
5625
|
};
|
|
5623
5626
|
// components/elements/SimpleTable.tsx
|
|
5624
|
-
var
|
|
5627
|
+
var React42 = __toESM(require("react"));
|
|
5625
5628
|
var import_react_table2 = require("@tanstack/react-table");
|
|
5626
5629
|
var SimpleTable = function(_param) {
|
|
5627
5630
|
var columns = _param.columns, data = _param.data, props = _object_without_properties(_param, [
|
|
@@ -5634,42 +5637,42 @@ var SimpleTable = function(_param) {
|
|
|
5634
5637
|
columns: columns,
|
|
5635
5638
|
getCoreRowModel: (0, import_react_table2.getCoreRowModel)()
|
|
5636
5639
|
});
|
|
5637
|
-
return /* @__PURE__ */
|
|
5640
|
+
return /* @__PURE__ */ React42.createElement("div", {
|
|
5638
5641
|
className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4"
|
|
5639
|
-
}, props.isLoading ? /* @__PURE__ */
|
|
5642
|
+
}, props.isLoading ? /* @__PURE__ */ React42.createElement(Skeleton, {
|
|
5640
5643
|
className: "h-[130px] w-full"
|
|
5641
|
-
}) : /* @__PURE__ */
|
|
5644
|
+
}) : /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement("div", {
|
|
5642
5645
|
className: "hawa-rounded"
|
|
5643
|
-
}, /* @__PURE__ */
|
|
5644
|
-
return /* @__PURE__ */
|
|
5646
|
+
}, /* @__PURE__ */ React42.createElement(Table, null, table.getAllColumns().length > 0 && /* @__PURE__ */ React42.createElement(TableHeader, null, table.getHeaderGroups().map(function(headerGroup) {
|
|
5647
|
+
return /* @__PURE__ */ React42.createElement(TableRow, {
|
|
5645
5648
|
key: headerGroup.id
|
|
5646
5649
|
}, headerGroup.headers.map(function(header) {
|
|
5647
|
-
return /* @__PURE__ */
|
|
5650
|
+
return /* @__PURE__ */ React42.createElement(TableHead, {
|
|
5648
5651
|
condensed: props.condensed,
|
|
5649
5652
|
dir: props.direction,
|
|
5650
5653
|
key: header.id
|
|
5651
5654
|
}, header.isPlaceholder ? null : (0, import_react_table2.flexRender)(header.column.columnDef.header, header.getContext()));
|
|
5652
5655
|
}));
|
|
5653
|
-
})), /* @__PURE__ */
|
|
5654
|
-
return /* @__PURE__ */
|
|
5656
|
+
})), /* @__PURE__ */ React42.createElement(TableBody, null, ((_table_getRowModel_rows = table.getRowModel().rows) === null || _table_getRowModel_rows === void 0 ? void 0 : _table_getRowModel_rows.length) ? table.getRowModel().rows.map(function(row) {
|
|
5657
|
+
return /* @__PURE__ */ React42.createElement(TableRow, {
|
|
5655
5658
|
key: row.id,
|
|
5656
5659
|
"data-state": row.getIsSelected() && "selected"
|
|
5657
5660
|
}, row.getVisibleCells().map(function(cell) {
|
|
5658
|
-
return /* @__PURE__ */
|
|
5661
|
+
return /* @__PURE__ */ React42.createElement(TableCell, {
|
|
5659
5662
|
dir: props.direction,
|
|
5660
5663
|
condensed: props.condensed,
|
|
5661
5664
|
key: cell.id
|
|
5662
5665
|
}, (0, import_react_table2.flexRender)(cell.column.columnDef.cell, cell.getContext()));
|
|
5663
5666
|
}));
|
|
5664
|
-
}) : /* @__PURE__ */
|
|
5667
|
+
}) : /* @__PURE__ */ React42.createElement(TableRow, null, /* @__PURE__ */ React42.createElement(TableCell, {
|
|
5665
5668
|
colSpan: columns.length,
|
|
5666
5669
|
className: "hawa-h-24 hawa-text-center"
|
|
5667
5670
|
}, (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.noData)))))));
|
|
5668
5671
|
};
|
|
5669
5672
|
// components/elements/Accordion.tsx
|
|
5670
|
-
var
|
|
5673
|
+
var React43 = __toESM(require("react"));
|
|
5671
5674
|
var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
|
|
5672
|
-
var Accordion =
|
|
5675
|
+
var Accordion = React43.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5673
5676
|
var items = _param.items, itemClassNames = _param.itemClassNames, triggerclassNames = _param.triggerclassNames, contentclassNames = _param.contentclassNames, className = _param.className, props = _object_without_properties(_param, [
|
|
5674
5677
|
"items",
|
|
5675
5678
|
"itemClassNames",
|
|
@@ -5677,43 +5680,43 @@ var Accordion = React42.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
5677
5680
|
"contentclassNames",
|
|
5678
5681
|
"className"
|
|
5679
5682
|
]);
|
|
5680
|
-
return
|
|
5683
|
+
return React43.createElement(AccordionPrimitive.Root, {
|
|
5681
5684
|
type: props.type,
|
|
5682
5685
|
collapsible: true
|
|
5683
5686
|
}, items.map(function(item, index) {
|
|
5684
|
-
return /* @__PURE__ */
|
|
5687
|
+
return /* @__PURE__ */ React43.createElement(AccordionItem, {
|
|
5685
5688
|
className: itemClassNames,
|
|
5686
5689
|
key: index,
|
|
5687
5690
|
value: "item-".concat(index)
|
|
5688
|
-
}, /* @__PURE__ */
|
|
5691
|
+
}, /* @__PURE__ */ React43.createElement(AccordionTrigger, {
|
|
5689
5692
|
className: triggerclassNames
|
|
5690
|
-
}, item.trigger), /* @__PURE__ */
|
|
5693
|
+
}, item.trigger), /* @__PURE__ */ React43.createElement(AccordionContent, {
|
|
5691
5694
|
className: contentclassNames
|
|
5692
5695
|
}, item.content));
|
|
5693
5696
|
}));
|
|
5694
5697
|
});
|
|
5695
5698
|
Accordion.displayName = "Accordion";
|
|
5696
|
-
var AccordionItem =
|
|
5699
|
+
var AccordionItem = React43.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5697
5700
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
5698
5701
|
"className"
|
|
5699
5702
|
]);
|
|
5700
|
-
return
|
|
5703
|
+
return React43.createElement(AccordionPrimitive.Item, _object_spread({
|
|
5701
5704
|
ref: ref,
|
|
5702
5705
|
className: cn(className)
|
|
5703
5706
|
}, props));
|
|
5704
5707
|
});
|
|
5705
5708
|
AccordionItem.displayName = "AccordionItem";
|
|
5706
|
-
var AccordionTrigger =
|
|
5709
|
+
var AccordionTrigger = React43.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5707
5710
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
5708
5711
|
"className",
|
|
5709
5712
|
"children"
|
|
5710
5713
|
]);
|
|
5711
|
-
return
|
|
5714
|
+
return React43.createElement(AccordionPrimitive.Header, {
|
|
5712
5715
|
className: "hawa-flex"
|
|
5713
|
-
}, /* @__PURE__ */
|
|
5716
|
+
}, /* @__PURE__ */ React43.createElement(AccordionPrimitive.Trigger, _object_spread({
|
|
5714
5717
|
ref: ref,
|
|
5715
5718
|
className: cn("hawa-flex hawa-bg-muted/50 hawa-flex-1 hover:hawa-bg-muted hawa-items-center hawa-justify-between hawa-p-4 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa-rotate-180", className)
|
|
5716
|
-
}, props), children, /* @__PURE__ */
|
|
5719
|
+
}, props), children, /* @__PURE__ */ React43.createElement("svg", {
|
|
5717
5720
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5718
5721
|
width: "24",
|
|
5719
5722
|
height: "24",
|
|
@@ -5724,48 +5727,48 @@ var AccordionTrigger = React42.forwardRef(function(_param, ref) /* @__PURE__ */
|
|
|
5724
5727
|
strokeLinecap: "round",
|
|
5725
5728
|
strokeLinejoin: "round",
|
|
5726
5729
|
className: "hawa-icon hawa-shrink-0 hawa-transition-transform hawa-duration-200"
|
|
5727
|
-
}, /* @__PURE__ */
|
|
5730
|
+
}, /* @__PURE__ */ React43.createElement("path", {
|
|
5728
5731
|
d: "m6 9 6 6 6-6"
|
|
5729
5732
|
}))));
|
|
5730
5733
|
});
|
|
5731
5734
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
5732
|
-
var AccordionContent =
|
|
5735
|
+
var AccordionContent = React43.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5733
5736
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
5734
5737
|
"className",
|
|
5735
5738
|
"children"
|
|
5736
5739
|
]);
|
|
5737
|
-
return
|
|
5740
|
+
return React43.createElement(AccordionPrimitive.Content, _object_spread({
|
|
5738
5741
|
ref: ref,
|
|
5739
5742
|
className: cn("hawa-overflow-hidden hawa-text-sm hawa-transition-all data-[state=closed]:hawa-animate-accordion-up data-[state=open]:hawa-animate-accordion-down", className)
|
|
5740
|
-
}, props), /* @__PURE__ */
|
|
5743
|
+
}, props), /* @__PURE__ */ React43.createElement("div", {
|
|
5741
5744
|
className: "hawa-bg-background hawa-border hawa-p-4"
|
|
5742
5745
|
}, children));
|
|
5743
5746
|
});
|
|
5744
5747
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
5745
5748
|
var AccordionRoot = AccordionPrimitive.Root;
|
|
5746
5749
|
// components/elements/Separator.tsx
|
|
5747
|
-
var
|
|
5750
|
+
var React44 = __toESM(require("react"));
|
|
5748
5751
|
var Separator2 = function(_param) /* @__PURE__ */ {
|
|
5749
5752
|
var className = _param.className, _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "horizontal" : _param_orientation, props = _object_without_properties(_param, [
|
|
5750
5753
|
"className",
|
|
5751
5754
|
"orientation"
|
|
5752
5755
|
]);
|
|
5753
|
-
return
|
|
5756
|
+
return React44.createElement("div", _object_spread({
|
|
5754
5757
|
className: cn("hawa-shrink-0 hawa-bg-border", orientation === "horizontal" ? "hawa-h-[1px] hawa-w-full" : "hawa-h-full hawa-w-[1px]", className)
|
|
5755
5758
|
}, props));
|
|
5756
5759
|
};
|
|
5757
5760
|
// components/elements/Progress.tsx
|
|
5758
|
-
var
|
|
5761
|
+
var React45 = __toESM(require("react"));
|
|
5759
5762
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
|
5760
|
-
var Progress =
|
|
5763
|
+
var Progress = React45.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5761
5764
|
var className = _param.className, value = _param.value, props = _object_without_properties(_param, [
|
|
5762
5765
|
"className",
|
|
5763
5766
|
"value"
|
|
5764
5767
|
]);
|
|
5765
|
-
return
|
|
5768
|
+
return React45.createElement(ProgressPrimitive.Root, _object_spread({
|
|
5766
5769
|
ref: ref,
|
|
5767
5770
|
className: cn("hawa-relative hawa-h-4 hawa-w-full hawa-overflow-hidden hawa-rounded hawa-bg-secondary", className)
|
|
5768
|
-
}, props), /* @__PURE__ */
|
|
5771
|
+
}, props), /* @__PURE__ */ React45.createElement(ProgressPrimitive.Indicator, {
|
|
5769
5772
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
|
5770
5773
|
style: {
|
|
5771
5774
|
transform: "translateX(-".concat(100 - (value || 0), "%)")
|
|
@@ -5958,87 +5961,87 @@ var BadgedComponent = function(param) {
|
|
|
5958
5961
|
}), children);
|
|
5959
5962
|
};
|
|
5960
5963
|
// components/elements/Tabs.tsx
|
|
5961
|
-
var
|
|
5964
|
+
var React49 = __toESM(require("react"));
|
|
5962
5965
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
|
5963
|
-
var TabsContext =
|
|
5966
|
+
var TabsContext = React49.createContext({
|
|
5964
5967
|
orientation: "vertical"
|
|
5965
5968
|
});
|
|
5966
|
-
var Tabs =
|
|
5969
|
+
var Tabs = React49.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5967
5970
|
var className = _param.className, orientation = _param.orientation, props = _object_without_properties(_param, [
|
|
5968
5971
|
"className",
|
|
5969
5972
|
"orientation"
|
|
5970
5973
|
]);
|
|
5971
|
-
return
|
|
5974
|
+
return React49.createElement(TabsPrimitive.Root, _object_spread({
|
|
5972
5975
|
ref: ref,
|
|
5973
5976
|
className: cn("hawa-flex hawa-gap-2", orientation === "vertical" ? "hawa-flex-row" : "hawa-flex-col", className)
|
|
5974
|
-
}, props), /* @__PURE__ */
|
|
5977
|
+
}, props), /* @__PURE__ */ React49.createElement(TabsContext.Provider, {
|
|
5975
5978
|
value: {
|
|
5976
5979
|
orientation: orientation
|
|
5977
5980
|
}
|
|
5978
5981
|
}, props.children));
|
|
5979
5982
|
});
|
|
5980
5983
|
Tabs.displayName = TabsPrimitive.Root.displayName;
|
|
5981
|
-
var TabsList =
|
|
5984
|
+
var TabsList = React49.forwardRef(function(_param, ref) {
|
|
5982
5985
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
5983
5986
|
"className"
|
|
5984
5987
|
]);
|
|
5985
|
-
var orientation =
|
|
5986
|
-
return /* @__PURE__ */
|
|
5988
|
+
var orientation = React49.useContext(TabsContext).orientation;
|
|
5989
|
+
return /* @__PURE__ */ React49.createElement(TabsPrimitive.List, _object_spread({
|
|
5987
5990
|
ref: ref,
|
|
5988
5991
|
className: cn("hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-border hawa-bg-muted hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10", orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row", className)
|
|
5989
5992
|
}, props));
|
|
5990
5993
|
});
|
|
5991
5994
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
5992
|
-
var TabsTrigger =
|
|
5995
|
+
var TabsTrigger = React49.forwardRef(function(_param, ref) {
|
|
5993
5996
|
var className = _param.className, chipProps = _param.chipProps, props = _object_without_properties(_param, [
|
|
5994
5997
|
"className",
|
|
5995
5998
|
"chipProps"
|
|
5996
5999
|
]);
|
|
5997
|
-
return /* @__PURE__ */
|
|
6000
|
+
return /* @__PURE__ */ React49.createElement(TabsPrimitive.Trigger, _object_spread({
|
|
5998
6001
|
ref: ref,
|
|
5999
6002
|
className: cn("hawa-inline-flex hawa-gap-2 hawa-w-full hawa-flex-1 hawa-select-none hawa-items-center hawa-justify-center hawa-whitespace-nowrap hawa-rounded hawa-border hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-all 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 data-[state=active]:hawa-bg-primary data-[state=active]:hawa-text-primary-foreground data-[state=active]:hawa-shadow-sm dark:hawa-border-primary/10", className)
|
|
6000
|
-
}, props), props.children, chipProps && /* @__PURE__ */
|
|
6003
|
+
}, props), props.children, chipProps && /* @__PURE__ */ React49.createElement(Chip, _object_spread({}, chipProps)));
|
|
6001
6004
|
});
|
|
6002
6005
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
6003
|
-
var TabsContent =
|
|
6006
|
+
var TabsContent = React49.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6004
6007
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6005
6008
|
"className"
|
|
6006
6009
|
]);
|
|
6007
|
-
return
|
|
6010
|
+
return React49.createElement(TabsPrimitive.Content, _object_spread({
|
|
6008
6011
|
ref: ref,
|
|
6009
6012
|
className: cn("hawa-w-full hawa-ring-offset-hawa-background focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2", className)
|
|
6010
6013
|
}, props));
|
|
6011
6014
|
});
|
|
6012
6015
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
6013
6016
|
// components/elements/ScrollArea.tsx
|
|
6014
|
-
var
|
|
6017
|
+
var React50 = __toESM(require("react"));
|
|
6015
6018
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
|
6016
|
-
var ScrollArea =
|
|
6019
|
+
var ScrollArea = React50.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6017
6020
|
var className = _param.className, children = _param.children, _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "vertical" : _param_orientation, props = _object_without_properties(_param, [
|
|
6018
6021
|
"className",
|
|
6019
6022
|
"children",
|
|
6020
6023
|
"orientation"
|
|
6021
6024
|
]);
|
|
6022
|
-
return
|
|
6025
|
+
return React50.createElement(ScrollAreaPrimitive.Root, _object_spread({
|
|
6023
6026
|
ref: ref,
|
|
6024
6027
|
className: cn("hawa-relative hawa-overflow-hidden", className)
|
|
6025
|
-
}, props), /* @__PURE__ */
|
|
6028
|
+
}, props), /* @__PURE__ */ React50.createElement(ScrollAreaPrimitive.Viewport, {
|
|
6026
6029
|
className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]"
|
|
6027
|
-
}, children), /* @__PURE__ */
|
|
6030
|
+
}, children), /* @__PURE__ */ React50.createElement(ScrollBar, {
|
|
6028
6031
|
orientation: orientation
|
|
6029
|
-
}), /* @__PURE__ */
|
|
6032
|
+
}), /* @__PURE__ */ React50.createElement(ScrollAreaPrimitive.Corner, null));
|
|
6030
6033
|
});
|
|
6031
6034
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
6032
|
-
var ScrollBar =
|
|
6035
|
+
var ScrollBar = React50.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6033
6036
|
var className = _param.className, _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "vertical" : _param_orientation, props = _object_without_properties(_param, [
|
|
6034
6037
|
"className",
|
|
6035
6038
|
"orientation"
|
|
6036
6039
|
]);
|
|
6037
|
-
return
|
|
6040
|
+
return React50.createElement(ScrollAreaPrimitive.ScrollAreaScrollbar, _object_spread({
|
|
6038
6041
|
ref: ref,
|
|
6039
6042
|
orientation: orientation,
|
|
6040
6043
|
className: cn("hawa-flex hawa-touch-none hawa-select-none hawa-transition-colors", orientation === "vertical" && "hawa-h-full hawa-w-2.5 hawa-border-l hawa-border-l-transparent hawa-p-[1px]", orientation === "horizontal" && "hawa-h-2.5 hawa-border-t hawa-border-t-transparent hawa-p-[1px]", className)
|
|
6041
|
-
}, props), /* @__PURE__ */
|
|
6044
|
+
}, props), /* @__PURE__ */ React50.createElement(ScrollAreaPrimitive.ScrollAreaThumb, {
|
|
6042
6045
|
className: cn("hawa-relative hawa-rounded-full hawa-bg-border", orientation === "vertical" && "hawa-flex-1")
|
|
6043
6046
|
}));
|
|
6044
6047
|
});
|
|
@@ -6275,13 +6278,13 @@ var Logos = {
|
|
|
6275
6278
|
}
|
|
6276
6279
|
};
|
|
6277
6280
|
// components/elements/Command.tsx
|
|
6278
|
-
var
|
|
6281
|
+
var React52 = __toESM(require("react"));
|
|
6279
6282
|
var import_cmdk = require("cmdk");
|
|
6280
|
-
var Command =
|
|
6283
|
+
var Command = React52.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6281
6284
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6282
6285
|
"className"
|
|
6283
6286
|
]);
|
|
6284
|
-
return
|
|
6287
|
+
return React52.createElement(import_cmdk.Command, _object_spread({
|
|
6285
6288
|
ref: ref,
|
|
6286
6289
|
className: cn("hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground", className)
|
|
6287
6290
|
}, props));
|
|
@@ -6291,20 +6294,20 @@ var CommandDialog = function(_param) {
|
|
|
6291
6294
|
var children = _param.children, props = _object_without_properties(_param, [
|
|
6292
6295
|
"children"
|
|
6293
6296
|
]);
|
|
6294
|
-
return /* @__PURE__ */
|
|
6297
|
+
return /* @__PURE__ */ React52.createElement(Dialog, _object_spread({}, props), /* @__PURE__ */ React52.createElement(DialogContent, {
|
|
6295
6298
|
className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg"
|
|
6296
|
-
}, /* @__PURE__ */
|
|
6299
|
+
}, /* @__PURE__ */ React52.createElement(Command, {
|
|
6297
6300
|
className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5"
|
|
6298
6301
|
}, children)));
|
|
6299
6302
|
};
|
|
6300
|
-
var CommandInput =
|
|
6303
|
+
var CommandInput = React52.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6301
6304
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6302
6305
|
"className"
|
|
6303
6306
|
]);
|
|
6304
|
-
return
|
|
6307
|
+
return React52.createElement("div", {
|
|
6305
6308
|
className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
|
|
6306
6309
|
"cmdk-input-wrapper": ""
|
|
6307
|
-
}, /* @__PURE__ */
|
|
6310
|
+
}, /* @__PURE__ */ React52.createElement("svg", {
|
|
6308
6311
|
"aria-label": "Search Icon",
|
|
6309
6312
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6310
6313
|
width: "24",
|
|
@@ -6316,60 +6319,60 @@ var CommandInput = React51.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
6316
6319
|
strokeLinecap: "round",
|
|
6317
6320
|
strokeLinejoin: "round",
|
|
6318
6321
|
className: "hawa-mr-2 hawa-icon hawa-shrink-0 hawa-opacity-50"
|
|
6319
|
-
}, /* @__PURE__ */
|
|
6322
|
+
}, /* @__PURE__ */ React52.createElement("circle", {
|
|
6320
6323
|
cx: "11",
|
|
6321
6324
|
cy: "11",
|
|
6322
6325
|
r: "8"
|
|
6323
|
-
}), /* @__PURE__ */
|
|
6326
|
+
}), /* @__PURE__ */ React52.createElement("path", {
|
|
6324
6327
|
d: "m21 21-4.3-4.3"
|
|
6325
|
-
})), /* @__PURE__ */
|
|
6328
|
+
})), /* @__PURE__ */ React52.createElement(import_cmdk.Command.Input, _object_spread({
|
|
6326
6329
|
ref: ref,
|
|
6327
6330
|
className: cn("hawa-flex hawa-h-11 hawa-w-full hawa-rounded-md hawa-bg-transparent hawa-py-3 hawa-text-sm hawa-outline-none placeholder:hawa-text-muted-foreground disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50", className)
|
|
6328
6331
|
}, props)));
|
|
6329
6332
|
});
|
|
6330
6333
|
CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
|
6331
|
-
var CommandList =
|
|
6334
|
+
var CommandList = React52.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6332
6335
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6333
6336
|
"className"
|
|
6334
6337
|
]);
|
|
6335
|
-
return
|
|
6338
|
+
return React52.createElement(import_cmdk.Command.List, _object_spread({
|
|
6336
6339
|
ref: ref,
|
|
6337
6340
|
className: cn("hawa-max-h-[300px] hawa-overflow-y-auto hawa-overflow-x-hidden", className)
|
|
6338
6341
|
}, props));
|
|
6339
6342
|
});
|
|
6340
6343
|
CommandList.displayName = import_cmdk.Command.List.displayName;
|
|
6341
|
-
var CommandEmpty =
|
|
6342
|
-
return /* @__PURE__ */
|
|
6344
|
+
var CommandEmpty = React52.forwardRef(function(props, ref) {
|
|
6345
|
+
return /* @__PURE__ */ React52.createElement(import_cmdk.Command.Empty, _object_spread({
|
|
6343
6346
|
ref: ref,
|
|
6344
6347
|
className: "hawa-py-6 hawa-text-center hawa-text-sm"
|
|
6345
6348
|
}, props));
|
|
6346
6349
|
});
|
|
6347
6350
|
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
6348
|
-
var CommandGroup =
|
|
6351
|
+
var CommandGroup = React52.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6349
6352
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6350
6353
|
"className"
|
|
6351
6354
|
]);
|
|
6352
|
-
return
|
|
6355
|
+
return React52.createElement(import_cmdk.Command.Group, _object_spread({
|
|
6353
6356
|
ref: ref,
|
|
6354
6357
|
className: cn("hawa-overflow-hidden hawa-p-1 hawa-text-foreground [&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-py-1.5 [&_[cmdk-group-heading]]:hawa-text-xs [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground", className)
|
|
6355
6358
|
}, props));
|
|
6356
6359
|
});
|
|
6357
6360
|
CommandGroup.displayName = import_cmdk.Command.Group.displayName;
|
|
6358
|
-
var CommandSeparator =
|
|
6361
|
+
var CommandSeparator = React52.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6359
6362
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6360
6363
|
"className"
|
|
6361
6364
|
]);
|
|
6362
|
-
return
|
|
6365
|
+
return React52.createElement(import_cmdk.Command.Separator, _object_spread({
|
|
6363
6366
|
ref: ref,
|
|
6364
6367
|
className: cn("hawa--mx-1 hawa-h-px hawa-bg-border", className)
|
|
6365
6368
|
}, props));
|
|
6366
6369
|
});
|
|
6367
6370
|
CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
|
|
6368
|
-
var CommandItem =
|
|
6371
|
+
var CommandItem = React52.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6369
6372
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6370
6373
|
"className"
|
|
6371
6374
|
]);
|
|
6372
|
-
return
|
|
6375
|
+
return React52.createElement(import_cmdk.Command.Item, _object_spread({
|
|
6373
6376
|
ref: ref,
|
|
6374
6377
|
className: cn("hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none aria-selected:hawa-bg-accent aria-selected:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50", className)
|
|
6375
6378
|
}, props));
|
|
@@ -6379,13 +6382,13 @@ var CommandShortcut = function(_param) {
|
|
|
6379
6382
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6380
6383
|
"className"
|
|
6381
6384
|
]);
|
|
6382
|
-
return /* @__PURE__ */
|
|
6385
|
+
return /* @__PURE__ */ React52.createElement("span", _object_spread({
|
|
6383
6386
|
className: cn("hawa-ml-auto hawa-text-xs hawa-tracking-widest hawa-text-muted-foreground", className)
|
|
6384
6387
|
}, props));
|
|
6385
6388
|
};
|
|
6386
6389
|
CommandShortcut.displayName = "CommandShortcut";
|
|
6387
6390
|
// components/elements/Combobox.tsx
|
|
6388
|
-
var
|
|
6391
|
+
var React53 = __toESM(require("react"));
|
|
6389
6392
|
var PopoverPrimitive2 = __toESM(require("@radix-ui/react-popover"));
|
|
6390
6393
|
var Combobox = function(_param) {
|
|
6391
6394
|
var getProperty = function getProperty(obj, key) {
|
|
@@ -6398,31 +6401,31 @@ var Combobox = function(_param) {
|
|
|
6398
6401
|
"popoverClassName",
|
|
6399
6402
|
"data"
|
|
6400
6403
|
]);
|
|
6401
|
-
var
|
|
6402
|
-
var
|
|
6403
|
-
return /* @__PURE__ */
|
|
6404
|
+
var _React53_useState = _sliced_to_array(React53.useState(false), 2), open = _React53_useState[0], setOpen = _React53_useState[1];
|
|
6405
|
+
var _React53_useState1 = _sliced_to_array(React53.useState(defaultValue), 2), value = _React53_useState1[0], setValue = _React53_useState1[1];
|
|
6406
|
+
return /* @__PURE__ */ React53.createElement("div", {
|
|
6404
6407
|
className: cn("hawa-flex hawa-flex-col hawa-gap-2 hawa-relative hawa-h-fit", props.width === "fit" ? "hawa-w-fit" : "hawa-w-full")
|
|
6405
|
-
}, props.label && /* @__PURE__ */
|
|
6408
|
+
}, props.label && /* @__PURE__ */ React53.createElement(Label2, null, props.label), /* @__PURE__ */ React53.createElement(PopoverPrimitive2.Root, {
|
|
6406
6409
|
open: open,
|
|
6407
6410
|
onOpenChange: setOpen
|
|
6408
|
-
}, /* @__PURE__ */
|
|
6411
|
+
}, /* @__PURE__ */ React53.createElement(PopoverTrigger, {
|
|
6409
6412
|
asChild: true,
|
|
6410
6413
|
disabled: props.isLoading || props.preview
|
|
6411
|
-
}, props.isLoading ? /* @__PURE__ */
|
|
6414
|
+
}, props.isLoading ? /* @__PURE__ */ React53.createElement("div", {
|
|
6412
6415
|
className: "hawa-pb-2"
|
|
6413
|
-
}, /* @__PURE__ */
|
|
6416
|
+
}, /* @__PURE__ */ React53.createElement(Skeleton, {
|
|
6414
6417
|
className: "hawa-h-[40px] hawa-w-full"
|
|
6415
|
-
})) : /* @__PURE__ */
|
|
6418
|
+
})) : /* @__PURE__ */ React53.createElement("div", {
|
|
6416
6419
|
className: "hawa-flex hawa-flex-col hawa-gap-2 hawa-items-start "
|
|
6417
|
-
}, /* @__PURE__ */
|
|
6420
|
+
}, /* @__PURE__ */ React53.createElement("div", {
|
|
6418
6421
|
className: cn("hawa-absolute hawa-top-[22px] hawa-h-[0.8px] hawa-w-full hawa-bg-gray-200 hawa-transition-all dark:hawa-bg-gray-800", props.preview ? "hawa-opacity-100" : "hawa-opacity-0")
|
|
6419
|
-
}), /* @__PURE__ */
|
|
6422
|
+
}), /* @__PURE__ */ React53.createElement("button", {
|
|
6420
6423
|
role: "combobox",
|
|
6421
6424
|
"aria-expanded": open,
|
|
6422
6425
|
className: cn("hawa-text-primary hawa-border hawa-h-10 hawa-py-2 hawa-justify-between hawa-w-full hawa-font-normal hawa-inline-flex hawa-items-center hawa-transition-all hawa-select-none hawa-rounded-md hawa-text-sm hawa-ring-offset-background 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", props.preview ? "hawa-px-0 hawa-rounded-none hawa-border-transparent hawa-cursor-default" : "hawa-px-3 hawa-bg-background ")
|
|
6423
6426
|
}, value ? getProperty(data.find(function(item) {
|
|
6424
6427
|
return item[valueKey] === value;
|
|
6425
|
-
}) || {}, labelKey) : props.placeholder || "...", /* @__PURE__ */
|
|
6428
|
+
}) || {}, labelKey) : props.placeholder || "...", /* @__PURE__ */ React53.createElement("svg", {
|
|
6426
6429
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6427
6430
|
className: cn("hawa-icon hawa-transition-all", !props.preview ? "hawa-opacity-100 hawa-visible" : "hawa-opacity-0 hawa-invisible"),
|
|
6428
6431
|
"aria-label": "Chevron down icon",
|
|
@@ -6432,18 +6435,18 @@ var Combobox = function(_param) {
|
|
|
6432
6435
|
strokeWidth: "2",
|
|
6433
6436
|
strokeLinecap: "round",
|
|
6434
6437
|
strokeLinejoin: "round"
|
|
6435
|
-
}, /* @__PURE__ */
|
|
6438
|
+
}, /* @__PURE__ */ React53.createElement("path", {
|
|
6436
6439
|
d: "m6 9 6 6 6-6"
|
|
6437
|
-
}))), /* @__PURE__ */
|
|
6440
|
+
}))), /* @__PURE__ */ React53.createElement("p", {
|
|
6438
6441
|
className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start", props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
|
|
6439
|
-
}, props.helperText))), /* @__PURE__ */
|
|
6442
|
+
}, props.helperText))), /* @__PURE__ */ React53.createElement(PopoverContent, {
|
|
6440
6443
|
className: cn("popover-w-parent", props.helperText && "-hawa-mt-4")
|
|
6441
|
-
}, /* @__PURE__ */
|
|
6444
|
+
}, /* @__PURE__ */ React53.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React53.createElement(CommandInput, {
|
|
6442
6445
|
placeholder: props.searchPlaceholder
|
|
6443
|
-
}), /* @__PURE__ */
|
|
6446
|
+
}), /* @__PURE__ */ React53.createElement(CommandEmpty, null, "No framework found."), /* @__PURE__ */ React53.createElement(CommandGroup, {
|
|
6444
6447
|
className: " hawa-max-h-[200px] hawa-overflow-y-auto"
|
|
6445
6448
|
}, data.map(function(item) {
|
|
6446
|
-
return /* @__PURE__ */
|
|
6449
|
+
return /* @__PURE__ */ React53.createElement(CommandItem, {
|
|
6447
6450
|
key: getProperty(item, valueKey),
|
|
6448
6451
|
onSelect: function() {
|
|
6449
6452
|
var newValue = getProperty(item, valueKey);
|
|
@@ -6453,7 +6456,7 @@ var Combobox = function(_param) {
|
|
|
6453
6456
|
}
|
|
6454
6457
|
setOpen(false);
|
|
6455
6458
|
}
|
|
6456
|
-
}, /* @__PURE__ */
|
|
6459
|
+
}, /* @__PURE__ */ React53.createElement("svg", {
|
|
6457
6460
|
"aria-label": "Check Icon",
|
|
6458
6461
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6459
6462
|
width: "24",
|
|
@@ -6465,7 +6468,7 @@ var Combobox = function(_param) {
|
|
|
6465
6468
|
strokeLinecap: "round",
|
|
6466
6469
|
strokeLinejoin: "round",
|
|
6467
6470
|
className: cn("hawa-mr-2 hawa-icon", value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0")
|
|
6468
|
-
}, /* @__PURE__ */
|
|
6471
|
+
}, /* @__PURE__ */ React53.createElement("polyline", {
|
|
6469
6472
|
points: "20 6 9 17 4 12"
|
|
6470
6473
|
})), getProperty(item, labelKey));
|
|
6471
6474
|
}))))));
|
|
@@ -6553,18 +6556,18 @@ var InterfaceSettings = function(_param) {
|
|
|
6553
6556
|
}));
|
|
6554
6557
|
};
|
|
6555
6558
|
// components/elements/Sheet.tsx
|
|
6556
|
-
var
|
|
6559
|
+
var React56 = __toESM(require("react"));
|
|
6557
6560
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
6558
6561
|
var import_class_variance_authority3 = require("class-variance-authority");
|
|
6559
6562
|
var Sheet = SheetPrimitive.Root;
|
|
6560
6563
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
6561
6564
|
var SheetClose = SheetPrimitive.Close;
|
|
6562
6565
|
var SheetPortal = SheetPrimitive.Portal;
|
|
6563
|
-
var SheetOverlay =
|
|
6566
|
+
var SheetOverlay = React56.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6564
6567
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6565
6568
|
"className"
|
|
6566
6569
|
]);
|
|
6567
|
-
return
|
|
6570
|
+
return React56.createElement(SheetPrimitive.Overlay, _object_spread_props(_object_spread({
|
|
6568
6571
|
className: cn("hawa-fixed hawa-inset-0 hawa-z-50 hawa-bg-background/80 hawa-backdrop-blur-sm 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", className)
|
|
6569
6572
|
}, props), {
|
|
6570
6573
|
ref: ref
|
|
@@ -6584,30 +6587,30 @@ var sheetVariants = (0, import_class_variance_authority3.cva)("hawa-fixed hawa-z
|
|
|
6584
6587
|
side: "right"
|
|
6585
6588
|
}
|
|
6586
6589
|
});
|
|
6587
|
-
var SheetContent =
|
|
6590
|
+
var SheetContent = React56.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6588
6591
|
var _param_side = _param.side, side = _param_side === void 0 ? "right" : _param_side, className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
6589
6592
|
"side",
|
|
6590
6593
|
"className",
|
|
6591
6594
|
"children"
|
|
6592
6595
|
]);
|
|
6593
|
-
return
|
|
6596
|
+
return React56.createElement(SheetPortal, null, /* @__PURE__ */ React56.createElement(SheetOverlay, null), /* @__PURE__ */ React56.createElement(SheetPrimitive.Content, _object_spread({
|
|
6594
6597
|
ref: ref,
|
|
6595
6598
|
className: cn(sheetVariants({
|
|
6596
6599
|
side: side
|
|
6597
6600
|
}), className)
|
|
6598
|
-
}, props), children, /* @__PURE__ */
|
|
6601
|
+
}, props), children, /* @__PURE__ */ React56.createElement(SheetPrimitive.Close, {
|
|
6599
6602
|
className: "hawa-absolute hawa-right-4 hawa-top-4 hawa-rounded-sm hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-secondary"
|
|
6600
|
-
}, /* @__PURE__ */
|
|
6603
|
+
}, /* @__PURE__ */ React56.createElement("svg", {
|
|
6601
6604
|
"aria-label": "Close Icon",
|
|
6602
6605
|
"aria-hidden": "true",
|
|
6603
6606
|
className: "hawa-h-5 hawa-w-5",
|
|
6604
6607
|
fill: "currentColor",
|
|
6605
6608
|
viewBox: "0 0 20 20"
|
|
6606
|
-
}, /* @__PURE__ */
|
|
6609
|
+
}, /* @__PURE__ */ React56.createElement("path", {
|
|
6607
6610
|
fillRule: "evenodd",
|
|
6608
6611
|
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",
|
|
6609
6612
|
clipRule: "evenodd"
|
|
6610
|
-
})), /* @__PURE__ */
|
|
6613
|
+
})), /* @__PURE__ */ React56.createElement("span", {
|
|
6611
6614
|
className: "hawa-sr-only"
|
|
6612
6615
|
}, "Close"))));
|
|
6613
6616
|
});
|
|
@@ -6616,7 +6619,7 @@ var SheetHeader = function(_param) /* @__PURE__ */ {
|
|
|
6616
6619
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6617
6620
|
"className"
|
|
6618
6621
|
]);
|
|
6619
|
-
return
|
|
6622
|
+
return React56.createElement("div", _object_spread({
|
|
6620
6623
|
className: cn("hawa-flex hawa-flex-col hawa-space-y-2 hawa-text-center sm:hawa-text-left", className)
|
|
6621
6624
|
}, props));
|
|
6622
6625
|
};
|
|
@@ -6625,26 +6628,26 @@ var SheetFooter = function(_param) /* @__PURE__ */ {
|
|
|
6625
6628
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6626
6629
|
"className"
|
|
6627
6630
|
]);
|
|
6628
|
-
return
|
|
6631
|
+
return React56.createElement("div", _object_spread({
|
|
6629
6632
|
className: cn("hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end sm:hawa-space-x-2", className)
|
|
6630
6633
|
}, props));
|
|
6631
6634
|
};
|
|
6632
6635
|
SheetFooter.displayName = "SheetFooter";
|
|
6633
|
-
var SheetTitle =
|
|
6636
|
+
var SheetTitle = React56.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6634
6637
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6635
6638
|
"className"
|
|
6636
6639
|
]);
|
|
6637
|
-
return
|
|
6640
|
+
return React56.createElement(SheetPrimitive.Title, _object_spread({
|
|
6638
6641
|
ref: ref,
|
|
6639
6642
|
className: cn("hawa-text-lg hawa-font-semibold hawa-text-foreground", className)
|
|
6640
6643
|
}, props));
|
|
6641
6644
|
});
|
|
6642
6645
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
6643
|
-
var SheetDescription =
|
|
6646
|
+
var SheetDescription = React56.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6644
6647
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6645
6648
|
"className"
|
|
6646
6649
|
]);
|
|
6647
|
-
return
|
|
6650
|
+
return React56.createElement(SheetPrimitive.Description, _object_spread({
|
|
6648
6651
|
ref: ref,
|
|
6649
6652
|
className: cn("hawa-text-sm hawa-text-muted-foreground", className)
|
|
6650
6653
|
}, props));
|
|
@@ -6737,28 +6740,28 @@ var ProgressCircle = import_react33.default.forwardRef(function(props, ref) {
|
|
|
6737
6740
|
});
|
|
6738
6741
|
ProgressCircle.displayName = "ProgressCircle";
|
|
6739
6742
|
// components/elements/NavigationMenu.tsx
|
|
6740
|
-
var
|
|
6743
|
+
var React58 = __toESM(require("react"));
|
|
6741
6744
|
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"));
|
|
6742
6745
|
var import_class_variance_authority4 = require("class-variance-authority");
|
|
6743
|
-
var NavigationMenuRoot =
|
|
6746
|
+
var NavigationMenuRoot = React58.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6744
6747
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
6745
6748
|
"className",
|
|
6746
6749
|
"children"
|
|
6747
6750
|
]);
|
|
6748
|
-
return
|
|
6751
|
+
return React58.createElement(NavigationMenuPrimitive.Root, _object_spread({
|
|
6749
6752
|
ref: ref,
|
|
6750
6753
|
className: cn("hawa-relative hawa-z-10 hawa-flex hawa-flex-1 hawa-items-center hawa-justify-center", // "hawa-max-w-max",
|
|
6751
6754
|
className)
|
|
6752
|
-
}, props), children, /* @__PURE__ */
|
|
6755
|
+
}, props), children, /* @__PURE__ */ React58.createElement(NavigationMenuViewport, {
|
|
6753
6756
|
className: props.viewportClassNames
|
|
6754
6757
|
}));
|
|
6755
6758
|
});
|
|
6756
6759
|
NavigationMenuRoot.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
6757
|
-
var NavigationMenuList =
|
|
6760
|
+
var NavigationMenuList = React58.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6758
6761
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6759
6762
|
"className"
|
|
6760
6763
|
]);
|
|
6761
|
-
return
|
|
6764
|
+
return React58.createElement(NavigationMenuPrimitive.List, _object_spread({
|
|
6762
6765
|
ref: ref,
|
|
6763
6766
|
className: cn("hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-gap-1", className)
|
|
6764
6767
|
}, props));
|
|
@@ -6766,15 +6769,15 @@ var NavigationMenuList = React57.forwardRef(function(_param, ref) /* @__PURE__ *
|
|
|
6766
6769
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
6767
6770
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
6768
6771
|
var navigationMenuTriggerStyle = (0, import_class_variance_authority4.cva)("hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 ");
|
|
6769
|
-
var NavigationMenuTrigger =
|
|
6772
|
+
var NavigationMenuTrigger = React58.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6770
6773
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
6771
6774
|
"className",
|
|
6772
6775
|
"children"
|
|
6773
6776
|
]);
|
|
6774
|
-
return
|
|
6777
|
+
return React58.createElement(NavigationMenuPrimitive.Trigger, _object_spread({
|
|
6775
6778
|
ref: ref,
|
|
6776
6779
|
className: cn(navigationMenuTriggerStyle(), "hawa-group", className)
|
|
6777
|
-
}, props), children, " ", /* @__PURE__ */
|
|
6780
|
+
}, props), children, " ", /* @__PURE__ */ React58.createElement("svg", {
|
|
6778
6781
|
"aria-label": "Chevron Icon",
|
|
6779
6782
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6780
6783
|
width: "24",
|
|
@@ -6787,16 +6790,16 @@ var NavigationMenuTrigger = React57.forwardRef(function(_param, ref) /* @__PURE_
|
|
|
6787
6790
|
"stroke-linejoin": "round",
|
|
6788
6791
|
"aria-hidden": "true",
|
|
6789
6792
|
className: "hawa-relative hawa-top-[1px] hawa-icon hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
|
6790
|
-
}, /* @__PURE__ */
|
|
6793
|
+
}, /* @__PURE__ */ React58.createElement("path", {
|
|
6791
6794
|
d: "m6 9 6 6 6-6"
|
|
6792
6795
|
})));
|
|
6793
6796
|
});
|
|
6794
6797
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
6795
|
-
var NavigationMenuContent =
|
|
6798
|
+
var NavigationMenuContent = React58.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6796
6799
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6797
6800
|
"className"
|
|
6798
6801
|
]);
|
|
6799
|
-
return
|
|
6802
|
+
return React58.createElement(NavigationMenuPrimitive.Content, _object_spread({
|
|
6800
6803
|
ref: ref,
|
|
6801
6804
|
className: cn("hawa-absolute hawa-w-full hawa-left-0 hawa-top-0 ", // "md:hawa-absolute md:hawa-w-auto hawa-left-0 hawa-top-0 ",
|
|
6802
6805
|
// animation
|
|
@@ -6806,51 +6809,51 @@ var NavigationMenuContent = React57.forwardRef(function(_param, ref) /* @__PURE_
|
|
|
6806
6809
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
6807
6810
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
6808
6811
|
var NavMenuItem = function(props) {
|
|
6809
|
-
return /* @__PURE__ */
|
|
6812
|
+
return /* @__PURE__ */ React58.createElement(NavigationMenuLink, null, /* @__PURE__ */ React58.createElement("div", {
|
|
6810
6813
|
className: "hawa-max-w-md hawa-cursor-pointer hawa-p-4 hawa-py-2 hawa-rounded hawa-flex hawa-flex-row hawa-gap-4 hawa-items-center hawa-transition-all hover:hawa-bg-muted"
|
|
6811
|
-
}, props.icon && props.icon, /* @__PURE__ */
|
|
6814
|
+
}, props.icon && props.icon, /* @__PURE__ */ React58.createElement("div", {
|
|
6812
6815
|
className: "hawa-flex hawa-flex-col"
|
|
6813
|
-
}, /* @__PURE__ */
|
|
6816
|
+
}, /* @__PURE__ */ React58.createElement("h1", {
|
|
6814
6817
|
className: "hawa-font-bold hawa-text-xl"
|
|
6815
|
-
}, props.title), /* @__PURE__ */
|
|
6818
|
+
}, props.title), /* @__PURE__ */ React58.createElement("p", {
|
|
6816
6819
|
className: "hawa-text-sm"
|
|
6817
6820
|
}, props.subtitle))));
|
|
6818
6821
|
};
|
|
6819
|
-
var NavigationMenuViewport =
|
|
6822
|
+
var NavigationMenuViewport = React58.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6820
6823
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6821
6824
|
"className"
|
|
6822
6825
|
]);
|
|
6823
|
-
return
|
|
6826
|
+
return React58.createElement("div", {
|
|
6824
6827
|
className: cn("hawa-absolute hawa-w-full hawa-top-full hawa-flex hawa-justify-center")
|
|
6825
|
-
}, /* @__PURE__ */
|
|
6828
|
+
}, /* @__PURE__ */ React58.createElement(NavigationMenuPrimitive.Viewport, _object_spread({
|
|
6826
6829
|
className: cn("hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-h-[var(--radix-navigation-menu-viewport-height)] hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90 ", // "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
|
|
6827
6830
|
className),
|
|
6828
6831
|
ref: ref
|
|
6829
6832
|
}, props)));
|
|
6830
6833
|
});
|
|
6831
6834
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
6832
|
-
var NavigationMenuIndicator =
|
|
6835
|
+
var NavigationMenuIndicator = React58.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6833
6836
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6834
6837
|
"className"
|
|
6835
6838
|
]);
|
|
6836
|
-
return
|
|
6839
|
+
return React58.createElement(NavigationMenuPrimitive.Indicator, _object_spread({
|
|
6837
6840
|
ref: ref,
|
|
6838
6841
|
className: cn("hawa-top-full hawa-z-[1] hawa-flex hawa-h-1.5 hawa-items-end hawa-justify-center hawa-overflow-hidden data-[state=visible]:hawa-animate-in data-[state=hidden]:hawa-animate-out data-[state=hidden]:hawa-fade-out data-[state=visible]:hawa-fade-in", className)
|
|
6839
|
-
}, props), /* @__PURE__ */
|
|
6842
|
+
}, props), /* @__PURE__ */ React58.createElement("div", {
|
|
6840
6843
|
className: "hawa-relative hawa-top-[60%] hawa-h-2 hawa-w-2 hawa-rotate-45 hawa-rounded-tl-sm hawa-bg-border hawa-shadow-md"
|
|
6841
6844
|
}));
|
|
6842
6845
|
});
|
|
6843
6846
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
6844
6847
|
var NavigationMenu = function(props) {
|
|
6845
|
-
return /* @__PURE__ */
|
|
6848
|
+
return /* @__PURE__ */ React58.createElement(NavigationMenuRoot, {
|
|
6846
6849
|
dir: props.direction,
|
|
6847
6850
|
delayDuration: 0,
|
|
6848
6851
|
className: props.rootClassNames,
|
|
6849
6852
|
viewportClassNames: props.viewportClassNames
|
|
6850
|
-
}, /* @__PURE__ */
|
|
6851
|
-
return /* @__PURE__ */
|
|
6853
|
+
}, /* @__PURE__ */ React58.createElement(NavigationMenuList, null, props.items.map(function(item, i) {
|
|
6854
|
+
return /* @__PURE__ */ React58.createElement(NavigationMenuItem, {
|
|
6852
6855
|
key: i
|
|
6853
|
-
}, item.content ? /* @__PURE__ */
|
|
6856
|
+
}, item.content ? /* @__PURE__ */ React58.createElement(React58.Fragment, null, /* @__PURE__ */ React58.createElement(NavigationMenuTrigger, null, item.trigger), /* @__PURE__ */ React58.createElement(NavigationMenuContent, null, item.content)) : /* @__PURE__ */ React58.createElement(NavigationMenuLink, {
|
|
6854
6857
|
onClick: function() {
|
|
6855
6858
|
if (item.action) {
|
|
6856
6859
|
item.action();
|
|
@@ -6887,32 +6890,32 @@ var Stats = function(_param) {
|
|
|
6887
6890
|
}) : props.chart));
|
|
6888
6891
|
};
|
|
6889
6892
|
// components/layout/Sidebar.tsx
|
|
6890
|
-
var
|
|
6893
|
+
var React60 = __toESM(require("react"));
|
|
6891
6894
|
var AccordionPrimitive2 = __toESM(require("@radix-ui/react-accordion"));
|
|
6892
6895
|
var Accordion2 = AccordionPrimitive2.Root;
|
|
6893
6896
|
var triggerStyles = "hawa-flex hawa-flex-1 hawa-items-center hawa-duration-75 hawa-select-none hawa-cursor-pointer hawa-rounded hawa-justify-between hawa-p-2 hawa-px-3 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa--rotate-90";
|
|
6894
|
-
var AccordionItem2 =
|
|
6897
|
+
var AccordionItem2 = React60.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6895
6898
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6896
6899
|
"className"
|
|
6897
6900
|
]);
|
|
6898
|
-
return
|
|
6901
|
+
return React60.createElement(AccordionPrimitive2.Item, _object_spread({
|
|
6899
6902
|
ref: ref,
|
|
6900
6903
|
className: cn(className)
|
|
6901
6904
|
}, props));
|
|
6902
6905
|
});
|
|
6903
6906
|
AccordionItem2.displayName = "AccordionItem";
|
|
6904
|
-
var AccordionTrigger2 =
|
|
6907
|
+
var AccordionTrigger2 = React60.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6905
6908
|
var className = _param.className, showArrow = _param.showArrow, children = _param.children, props = _object_without_properties(_param, [
|
|
6906
6909
|
"className",
|
|
6907
6910
|
"showArrow",
|
|
6908
6911
|
"children"
|
|
6909
6912
|
]);
|
|
6910
|
-
return
|
|
6913
|
+
return React60.createElement(AccordionPrimitive2.Header, {
|
|
6911
6914
|
className: "flex"
|
|
6912
|
-
}, /* @__PURE__ */
|
|
6915
|
+
}, /* @__PURE__ */ React60.createElement(AccordionPrimitive2.Trigger, _object_spread({
|
|
6913
6916
|
ref: ref,
|
|
6914
6917
|
className: cn(triggerStyles, className)
|
|
6915
|
-
}, props), children, showArrow && /* @__PURE__ */
|
|
6918
|
+
}, props), children, showArrow && /* @__PURE__ */ React60.createElement("svg", {
|
|
6916
6919
|
"aria-label": "Chevron Right Icon",
|
|
6917
6920
|
stroke: "currentColor",
|
|
6918
6921
|
fill: "currentColor",
|
|
@@ -6920,31 +6923,31 @@ var AccordionTrigger2 = React59.forwardRef(function(_param, ref) /* @__PURE__ */
|
|
|
6920
6923
|
height: "1em",
|
|
6921
6924
|
width: "1em",
|
|
6922
6925
|
className: "hawa-icon hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
|
|
6923
|
-
}, /* @__PURE__ */
|
|
6926
|
+
}, /* @__PURE__ */ React60.createElement("path", {
|
|
6924
6927
|
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"
|
|
6925
6928
|
}))));
|
|
6926
6929
|
});
|
|
6927
6930
|
AccordionTrigger2.displayName = AccordionPrimitive2.Trigger.displayName;
|
|
6928
|
-
var AccordionContent2 =
|
|
6931
|
+
var AccordionContent2 = React60.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6929
6932
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
6930
6933
|
"className",
|
|
6931
6934
|
"children"
|
|
6932
6935
|
]);
|
|
6933
|
-
return
|
|
6936
|
+
return React60.createElement(AccordionPrimitive2.Content, _object_spread({
|
|
6934
6937
|
ref: ref,
|
|
6935
6938
|
className: cn("hawa-overflow-hidden hawa-text-sm hawa-transition-all data-[state=closed]:hawa-animate-accordion-up data-[state=open]:hawa-animate-accordion-down", className)
|
|
6936
|
-
}, props), /* @__PURE__ */
|
|
6939
|
+
}, props), /* @__PURE__ */ React60.createElement("div", null, children));
|
|
6937
6940
|
});
|
|
6938
6941
|
AccordionContent2.displayName = AccordionPrimitive2.Content.displayName;
|
|
6939
6942
|
var SidebarGroup = function(param) {
|
|
6940
6943
|
var title = param.title, items = param.items, selectedItem = param.selectedItem, openedItem = param.openedItem, setOpenedItem = param.setOpenedItem, onItemClick = param.onItemClick, onSubItemClick = param.onSubItemClick, direction = param.direction, isOpen = param.isOpen;
|
|
6941
|
-
return /* @__PURE__ */
|
|
6944
|
+
return /* @__PURE__ */ React60.createElement("div", {
|
|
6942
6945
|
className: "hawa-m-2"
|
|
6943
|
-
}, title && /* @__PURE__ */
|
|
6946
|
+
}, title && /* @__PURE__ */ React60.createElement("h3", {
|
|
6944
6947
|
className: "hawa-mb-1 hawa-font-bold"
|
|
6945
|
-
}, title), /* @__PURE__ */
|
|
6948
|
+
}, title), /* @__PURE__ */ React60.createElement("ul", {
|
|
6946
6949
|
className: "hawa-flex hawa-flex-col hawa-gap-2"
|
|
6947
|
-
}, /* @__PURE__ */
|
|
6950
|
+
}, /* @__PURE__ */ React60.createElement(Accordion2, {
|
|
6948
6951
|
value: openedItem,
|
|
6949
6952
|
type: "single",
|
|
6950
6953
|
onValueChange: function(e) {
|
|
@@ -6953,7 +6956,7 @@ var SidebarGroup = function(param) {
|
|
|
6953
6956
|
collapsible: true,
|
|
6954
6957
|
className: "hawa-flex hawa-flex-col hawa-gap-1"
|
|
6955
6958
|
}, items.map(function(item, idx) {
|
|
6956
|
-
return /* @__PURE__ */
|
|
6959
|
+
return /* @__PURE__ */ React60.createElement(SidebarItem, {
|
|
6957
6960
|
isOpen: isOpen,
|
|
6958
6961
|
selectedItem: selectedItem,
|
|
6959
6962
|
key: idx,
|
|
@@ -6976,25 +6979,25 @@ var SidebarItem = function(_param) {
|
|
|
6976
6979
|
return props.selectedItem === value ? "hawa-bg-primary/90 hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
|
|
6977
6980
|
};
|
|
6978
6981
|
if (item.subitems) {
|
|
6979
|
-
return /* @__PURE__ */
|
|
6982
|
+
return /* @__PURE__ */ React60.createElement(AccordionItem2, {
|
|
6980
6983
|
value: item.value,
|
|
6981
6984
|
className: "hawa-overflow-x-clip ",
|
|
6982
6985
|
dir: direction
|
|
6983
|
-
}, /* @__PURE__ */
|
|
6986
|
+
}, /* @__PURE__ */ React60.createElement(AccordionTrigger2, {
|
|
6984
6987
|
className: cn("hawa-overflow-x-clip hawa-w-full", props.selectedItem === item.value ? "hawa-cursor-default hawa-bg-primary hawa-text-primary-foreground" : "hover:hawa-bg-primary/10 hawa-h-10", item.subitems && item.subitems.some(function(subitem) {
|
|
6985
6988
|
return props.selectedItem === subitem.value;
|
|
6986
6989
|
}) ? "hawa-bg-primary/80 hawa-text-primary-foreground hover:hawa-bg-primary/80" : ""),
|
|
6987
6990
|
showArrow: isOpen
|
|
6988
|
-
}, /* @__PURE__ */
|
|
6991
|
+
}, /* @__PURE__ */ React60.createElement("div", {
|
|
6989
6992
|
className: cn("hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-h-fit")
|
|
6990
|
-
}, item.icon && item.icon, /* @__PURE__ */
|
|
6993
|
+
}, item.icon && item.icon, /* @__PURE__ */ React60.createElement("span", {
|
|
6991
6994
|
className: cn("hawa-transition-all ", isOpen ? "hawa-opacity-100" : "hawa-opacity-0")
|
|
6992
|
-
}, item.label))), item.subitems && /* @__PURE__ */
|
|
6995
|
+
}, item.label))), item.subitems && /* @__PURE__ */ React60.createElement(AccordionContent2, {
|
|
6993
6996
|
className: "hawa-mt-1 hawa-h-full hawa-rounded"
|
|
6994
|
-
}, /* @__PURE__ */
|
|
6997
|
+
}, /* @__PURE__ */ React60.createElement("div", {
|
|
6995
6998
|
className: cn("hawa-flex hawa-h-full hawa-flex-col hawa-gap-2 hawa-bg-foreground/5 hawa-p-1")
|
|
6996
6999
|
}, item.subitems.map(function(subitem, idx) {
|
|
6997
|
-
return /* @__PURE__ */
|
|
7000
|
+
return /* @__PURE__ */ React60.createElement("li", {
|
|
6998
7001
|
key: idx,
|
|
6999
7002
|
onClick: function(e) {
|
|
7000
7003
|
e.stopPropagation();
|
|
@@ -7013,7 +7016,7 @@ var SidebarItem = function(_param) {
|
|
|
7013
7016
|
}, subitem.icon && subitem.icon, subitem.label);
|
|
7014
7017
|
}))));
|
|
7015
7018
|
} else {
|
|
7016
|
-
return /* @__PURE__ */
|
|
7019
|
+
return /* @__PURE__ */ React60.createElement("div", {
|
|
7017
7020
|
dir: direction,
|
|
7018
7021
|
onClick: function() {
|
|
7019
7022
|
if (item.onClick) {
|
|
@@ -7026,11 +7029,11 @@ var SidebarItem = function(_param) {
|
|
|
7026
7029
|
}
|
|
7027
7030
|
},
|
|
7028
7031
|
className: cn(triggerStyles, getSelectedStyle(item.value), "hawa-overflow-x-clip ")
|
|
7029
|
-
}, /* @__PURE__ */
|
|
7032
|
+
}, /* @__PURE__ */ React60.createElement("div", {
|
|
7030
7033
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2"
|
|
7031
|
-
}, item.icon && item.icon, /* @__PURE__ */
|
|
7034
|
+
}, item.icon && item.icon, /* @__PURE__ */ React60.createElement("span", {
|
|
7032
7035
|
className: cn("hawa-whitespace-nowrap hawa-transition-all hawa-flex hawa-flex-row hawa-gap-2 hawa-items-center", isOpen ? "hawa-opacity-100" : "hawa-opacity-0")
|
|
7033
|
-
}, item.label, " ", item.badge && /* @__PURE__ */
|
|
7036
|
+
}, item.label, " ", item.badge && /* @__PURE__ */ React60.createElement(Chip, {
|
|
7034
7037
|
label: item.badge.label,
|
|
7035
7038
|
color: "hyper",
|
|
7036
7039
|
size: "small"
|
|
@@ -7461,43 +7464,43 @@ var AppTopbar = function(_param) {
|
|
|
7461
7464
|
})));
|
|
7462
7465
|
};
|
|
7463
7466
|
// components/layout/AppMenubar.tsx
|
|
7464
|
-
var
|
|
7467
|
+
var React65 = __toESM(require("react"));
|
|
7465
7468
|
var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"));
|
|
7466
7469
|
var MenubarMenu = MenubarPrimitive.Menu;
|
|
7467
7470
|
var MenubarGroup = MenubarPrimitive.Group;
|
|
7468
7471
|
var MenubarPortal = MenubarPrimitive.Portal;
|
|
7469
7472
|
var MenubarSub = MenubarPrimitive.Sub;
|
|
7470
7473
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
7471
|
-
var Menubar =
|
|
7474
|
+
var Menubar = React65.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7472
7475
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
7473
7476
|
"className"
|
|
7474
7477
|
]);
|
|
7475
|
-
return
|
|
7478
|
+
return React65.createElement(MenubarPrimitive.Root, _object_spread({
|
|
7476
7479
|
ref: ref,
|
|
7477
7480
|
className: cn("hawa-flex hawa-h-10 hawa-items-center hawa-space-x-1 hawa-rounded-md hawa-border hawa-bg-background hawa-p-1", className)
|
|
7478
7481
|
}, props));
|
|
7479
7482
|
});
|
|
7480
7483
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
7481
|
-
var MenubarTrigger =
|
|
7484
|
+
var MenubarTrigger = React65.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7482
7485
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
7483
7486
|
"className"
|
|
7484
7487
|
]);
|
|
7485
|
-
return
|
|
7488
|
+
return React65.createElement(MenubarPrimitive.Trigger, _object_spread({
|
|
7486
7489
|
ref: ref,
|
|
7487
7490
|
className: cn("hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-outline-none focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-accent-foreground", className)
|
|
7488
7491
|
}, props));
|
|
7489
7492
|
});
|
|
7490
7493
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
7491
|
-
var MenubarSubTrigger =
|
|
7494
|
+
var MenubarSubTrigger = React65.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7492
7495
|
var className = _param.className, inset = _param.inset, children = _param.children, props = _object_without_properties(_param, [
|
|
7493
7496
|
"className",
|
|
7494
7497
|
"inset",
|
|
7495
7498
|
"children"
|
|
7496
7499
|
]);
|
|
7497
|
-
return
|
|
7500
|
+
return React65.createElement(MenubarPrimitive.SubTrigger, _object_spread({
|
|
7498
7501
|
ref: ref,
|
|
7499
7502
|
className: cn("hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-accent-foreground", inset && "pl-8", className)
|
|
7500
|
-
}, props), children, /* @__PURE__ */
|
|
7503
|
+
}, props), children, /* @__PURE__ */ React65.createElement("svg", {
|
|
7501
7504
|
"aria-label": "Chevron Right Icon",
|
|
7502
7505
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7503
7506
|
width: "24",
|
|
@@ -7509,29 +7512,29 @@ var MenubarSubTrigger = React64.forwardRef(function(_param, ref) /* @__PURE__ */
|
|
|
7509
7512
|
"stroke-linecap": "round",
|
|
7510
7513
|
"stroke-linejoin": "round",
|
|
7511
7514
|
className: "hawa-ml-auto hawa-icon"
|
|
7512
|
-
}, /* @__PURE__ */
|
|
7515
|
+
}, /* @__PURE__ */ React65.createElement("path", {
|
|
7513
7516
|
d: "m9 18 6-6-6-6"
|
|
7514
7517
|
})));
|
|
7515
7518
|
});
|
|
7516
7519
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
7517
|
-
var MenubarSubContent =
|
|
7520
|
+
var MenubarSubContent = React65.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7518
7521
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
7519
7522
|
"className"
|
|
7520
7523
|
]);
|
|
7521
|
-
return
|
|
7524
|
+
return React65.createElement(MenubarPrimitive.SubContent, _object_spread({
|
|
7522
7525
|
ref: ref,
|
|
7523
7526
|
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 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)
|
|
7524
7527
|
}, props));
|
|
7525
7528
|
});
|
|
7526
7529
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
7527
|
-
var MenubarContent =
|
|
7530
|
+
var MenubarContent = React65.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7528
7531
|
var className = _param.className, _param_align = _param.align, align = _param_align === void 0 ? "start" : _param_align, _param_alignOffset = _param.alignOffset, alignOffset = _param_alignOffset === void 0 ? -4 : _param_alignOffset, _param_sideOffset = _param.sideOffset, sideOffset = _param_sideOffset === void 0 ? 8 : _param_sideOffset, props = _object_without_properties(_param, [
|
|
7529
7532
|
"className",
|
|
7530
7533
|
"align",
|
|
7531
7534
|
"alignOffset",
|
|
7532
7535
|
"sideOffset"
|
|
7533
7536
|
]);
|
|
7534
|
-
return
|
|
7537
|
+
return React65.createElement(MenubarPrimitive.Portal, null, /* @__PURE__ */ React65.createElement(MenubarPrimitive.Content, _object_spread({
|
|
7535
7538
|
ref: ref,
|
|
7536
7539
|
align: align,
|
|
7537
7540
|
alignOffset: alignOffset,
|
|
@@ -7540,30 +7543,30 @@ var MenubarContent = React64.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
7540
7543
|
}, props)));
|
|
7541
7544
|
});
|
|
7542
7545
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
7543
|
-
var MenubarItem =
|
|
7546
|
+
var MenubarItem = React65.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7544
7547
|
var className = _param.className, inset = _param.inset, props = _object_without_properties(_param, [
|
|
7545
7548
|
"className",
|
|
7546
7549
|
"inset"
|
|
7547
7550
|
]);
|
|
7548
|
-
return
|
|
7551
|
+
return React65.createElement(MenubarPrimitive.Item, _object_spread({
|
|
7549
7552
|
ref: ref,
|
|
7550
7553
|
className: cn("hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50", inset && "pl-8", className)
|
|
7551
7554
|
}, props));
|
|
7552
7555
|
});
|
|
7553
7556
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
7554
|
-
var MenubarCheckboxItem =
|
|
7557
|
+
var MenubarCheckboxItem = React65.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7555
7558
|
var className = _param.className, children = _param.children, checked = _param.checked, props = _object_without_properties(_param, [
|
|
7556
7559
|
"className",
|
|
7557
7560
|
"children",
|
|
7558
7561
|
"checked"
|
|
7559
7562
|
]);
|
|
7560
|
-
return
|
|
7563
|
+
return React65.createElement(MenubarPrimitive.CheckboxItem, _object_spread({
|
|
7561
7564
|
ref: ref,
|
|
7562
7565
|
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 focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50", className),
|
|
7563
7566
|
checked: checked
|
|
7564
|
-
}, props), /* @__PURE__ */
|
|
7567
|
+
}, props), /* @__PURE__ */ React65.createElement("span", {
|
|
7565
7568
|
className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center"
|
|
7566
|
-
}, /* @__PURE__ */
|
|
7569
|
+
}, /* @__PURE__ */ React65.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React65.createElement("svg", {
|
|
7567
7570
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7568
7571
|
width: "24",
|
|
7569
7572
|
height: "24",
|
|
@@ -7574,22 +7577,22 @@ var MenubarCheckboxItem = React64.forwardRef(function(_param, ref) /* @__PURE__
|
|
|
7574
7577
|
"stroke-linecap": "round",
|
|
7575
7578
|
"stroke-linejoin": "round",
|
|
7576
7579
|
className: "hawa-icon"
|
|
7577
|
-
}, /* @__PURE__ */
|
|
7580
|
+
}, /* @__PURE__ */ React65.createElement("path", {
|
|
7578
7581
|
d: "M20 6 9 17l-5-5"
|
|
7579
7582
|
})))), children);
|
|
7580
7583
|
});
|
|
7581
7584
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
7582
|
-
var MenubarRadioItem =
|
|
7585
|
+
var MenubarRadioItem = React65.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7583
7586
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
7584
7587
|
"className",
|
|
7585
7588
|
"children"
|
|
7586
7589
|
]);
|
|
7587
|
-
return
|
|
7590
|
+
return React65.createElement(MenubarPrimitive.RadioItem, _object_spread({
|
|
7588
7591
|
ref: ref,
|
|
7589
7592
|
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 focus:hawa-bg-accent focus:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50", className)
|
|
7590
|
-
}, props), /* @__PURE__ */
|
|
7593
|
+
}, props), /* @__PURE__ */ React65.createElement("span", {
|
|
7591
7594
|
className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center"
|
|
7592
|
-
}, /* @__PURE__ */
|
|
7595
|
+
}, /* @__PURE__ */ React65.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React65.createElement("svg", {
|
|
7593
7596
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7594
7597
|
width: "24",
|
|
7595
7598
|
height: "24",
|
|
@@ -7600,29 +7603,29 @@ var MenubarRadioItem = React64.forwardRef(function(_param, ref) /* @__PURE__ */
|
|
|
7600
7603
|
"stroke-linecap": "round",
|
|
7601
7604
|
"stroke-linejoin": "round",
|
|
7602
7605
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
|
7603
|
-
}, /* @__PURE__ */
|
|
7606
|
+
}, /* @__PURE__ */ React65.createElement("circle", {
|
|
7604
7607
|
cx: "12",
|
|
7605
7608
|
cy: "12",
|
|
7606
7609
|
r: "10"
|
|
7607
7610
|
})))), children);
|
|
7608
7611
|
});
|
|
7609
7612
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
7610
|
-
var MenubarLabel =
|
|
7613
|
+
var MenubarLabel = React65.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7611
7614
|
var className = _param.className, inset = _param.inset, props = _object_without_properties(_param, [
|
|
7612
7615
|
"className",
|
|
7613
7616
|
"inset"
|
|
7614
7617
|
]);
|
|
7615
|
-
return
|
|
7618
|
+
return React65.createElement(MenubarPrimitive.Label, _object_spread({
|
|
7616
7619
|
ref: ref,
|
|
7617
7620
|
className: cn("hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-font-semibold", inset && "hawa-pl-8", className)
|
|
7618
7621
|
}, props));
|
|
7619
7622
|
});
|
|
7620
7623
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
7621
|
-
var MenubarSeparator =
|
|
7624
|
+
var MenubarSeparator = React65.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
7622
7625
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
7623
7626
|
"className"
|
|
7624
7627
|
]);
|
|
7625
|
-
return
|
|
7628
|
+
return React65.createElement(MenubarPrimitive.Separator, _object_spread({
|
|
7626
7629
|
ref: ref,
|
|
7627
7630
|
className: cn("hawa--mx-1 hawa-my-1 hawa-h-px hawa-bg-muted", className)
|
|
7628
7631
|
}, props));
|
|
@@ -7632,7 +7635,7 @@ var MenubarShortcut = function(_param) {
|
|
|
7632
7635
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
7633
7636
|
"className"
|
|
7634
7637
|
]);
|
|
7635
|
-
return /* @__PURE__ */
|
|
7638
|
+
return /* @__PURE__ */ React65.createElement("span", _object_spread({
|
|
7636
7639
|
className: cn("hawa-ml-auto hawa-text-xs hawa-tracking-widest hawa-text-muted-foreground", className)
|
|
7637
7640
|
}, props));
|
|
7638
7641
|
};
|
|
@@ -7688,43 +7691,68 @@ var useBreakpoint = function() {
|
|
|
7688
7691
|
};
|
|
7689
7692
|
// components/layout/DocsSidebar.tsx
|
|
7690
7693
|
var import_react41 = __toESM(require("react"));
|
|
7691
|
-
var DocsSidebar = function(
|
|
7692
|
-
var
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
|
|
7694
|
+
var DocsSidebar = function(param) {
|
|
7695
|
+
var propCurrentPage = param.currentPage, pages = param.pages, direction = param.direction;
|
|
7696
|
+
var _import_react41_default_useState = _sliced_to_array(import_react41.default.useState(pages[0]), 2), activePage = _import_react41_default_useState[0], setActivePage = _import_react41_default_useState[1];
|
|
7697
|
+
var handlePageClick = function(page, event) {
|
|
7698
|
+
event.preventDefault();
|
|
7699
|
+
setTimeout(function() {
|
|
7700
|
+
setActivePage(page);
|
|
7701
|
+
}, 50);
|
|
7702
|
+
var element = document.getElementById(page);
|
|
7703
|
+
element === null || element === void 0 ? void 0 : element.scrollIntoView({
|
|
7704
|
+
behavior: "smooth",
|
|
7705
|
+
block: "start"
|
|
7706
|
+
});
|
|
7707
|
+
};
|
|
7708
|
+
var getCurrentSection = function() {
|
|
7709
|
+
for(var i = pages.length - 1; i >= 0; i--){
|
|
7710
|
+
var page = pages[i];
|
|
7711
|
+
var element = document.getElementById(page);
|
|
7712
|
+
var rect = element === null || element === void 0 ? void 0 : element.getBoundingClientRect();
|
|
7713
|
+
if (rect) {
|
|
7714
|
+
if (rect.top < window.innerHeight && rect.bottom >= 0) {
|
|
7715
|
+
return page;
|
|
7716
|
+
}
|
|
7717
|
+
}
|
|
7718
|
+
}
|
|
7719
|
+
return pages[0];
|
|
7720
|
+
};
|
|
7721
|
+
import_react41.default.useEffect(function() {
|
|
7722
|
+
var handleScroll = function() {
|
|
7723
|
+
setActivePage(getCurrentSection());
|
|
7724
|
+
};
|
|
7725
|
+
window.addEventListener("scroll", handleScroll);
|
|
7726
|
+
return function() {
|
|
7727
|
+
window.removeEventListener("scroll", handleScroll);
|
|
7728
|
+
};
|
|
7729
|
+
}, []);
|
|
7730
|
+
var selectedStyles = {
|
|
7731
|
+
rtl: "hawa-border-r-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200",
|
|
7732
|
+
ltr: "hawa-border-l-4 hawa-border-primary hawa-border-collapse hawa-bg-gray-200"
|
|
7705
7733
|
};
|
|
7706
7734
|
return /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7707
|
-
className: "hawa-flex hawa-flex-col hawa-overflow-x-clip"
|
|
7735
|
+
className: "hawa-flex hawa-flex-col hawa-overflow-x-clip",
|
|
7736
|
+
dir: direction
|
|
7708
7737
|
}, pages.map(function(page, index) {
|
|
7709
|
-
return /* @__PURE__ */ import_react41.default.createElement("
|
|
7738
|
+
return /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7710
7739
|
key: index,
|
|
7711
|
-
className: cn("hawa-py-1 hawa-text-xs hawa-cursor-pointer hawa-whitespace-nowrap hawa-px-3 hover:hawa-bg-gray-100 hawa-transition-all",
|
|
7712
|
-
onClick: function() {
|
|
7713
|
-
return handlePageClick(page);
|
|
7740
|
+
className: cn("hawa-py-1 hawa-text-xs hawa-cursor-pointer hawa-whitespace-nowrap hawa-px-3 hover:hawa-bg-gray-100 hawa-transition-all", (propCurrentPage || activePage) === page ? selectedStyles[direction || "rtl"] : ""),
|
|
7741
|
+
onClick: function(event) {
|
|
7742
|
+
return handlePageClick(page, event);
|
|
7714
7743
|
}
|
|
7715
7744
|
}, page);
|
|
7716
7745
|
}));
|
|
7717
7746
|
};
|
|
7718
7747
|
// components/layout/DocsLayout.tsx
|
|
7719
7748
|
var DocsLayout = function(_param) {
|
|
7720
|
-
var _param_direction = _param.direction, direction = _param_direction === void 0 ? "ltr" : _param_direction, _param_drawerSize = _param.drawerSize, drawerSize = _param_drawerSize === void 0 ? "md" : _param_drawerSize,
|
|
7749
|
+
var _param_direction = _param.direction, direction = _param_direction === void 0 ? "ltr" : _param_direction, _param_drawerSize = _param.drawerSize, drawerSize = _param_drawerSize === void 0 ? "md" : _param_drawerSize, DrawerFooterActions = _param.DrawerFooterActions, clickedItem = _param.clickedItem, keepOpen = _param.keepOpen, pages = _param.pages, setKeepOpen = _param.setKeepOpen, props = _object_without_properties(_param, [
|
|
7721
7750
|
"direction",
|
|
7722
7751
|
"drawerSize",
|
|
7723
|
-
"onSettingsClick",
|
|
7724
7752
|
"DrawerFooterActions",
|
|
7725
|
-
"currentPage",
|
|
7726
7753
|
"clickedItem",
|
|
7727
7754
|
"keepOpen",
|
|
7755
|
+
"pages",
|
|
7728
7756
|
"setKeepOpen"
|
|
7729
7757
|
]);
|
|
7730
7758
|
var closeDrawerWidth = 0;
|
|
@@ -7747,7 +7775,8 @@ var DocsLayout = function(_param) {
|
|
|
7747
7775
|
if (typeof window == "undefined") {
|
|
7748
7776
|
size = 1200;
|
|
7749
7777
|
}
|
|
7750
|
-
var _ref = _sliced_to_array((0, import_react42.useState)(
|
|
7778
|
+
var _ref = _sliced_to_array((0, import_react42.useState)("Introduction"), 2), currentPage = _ref[0], setCurrentPage = _ref[1];
|
|
7779
|
+
var _ref1 = _sliced_to_array((0, import_react42.useState)(true), 2), openSideMenu = _ref1[0], setOpenSideMenu = _ref1[1];
|
|
7751
7780
|
(0, import_react42.useEffect)(function() {
|
|
7752
7781
|
var handleClickOutside = function(event) {
|
|
7753
7782
|
if (ref.current && !ref.current.contains(event.target) && !openSideMenu) {
|
|
@@ -7773,6 +7802,35 @@ var DocsLayout = function(_param) {
|
|
|
7773
7802
|
}, [
|
|
7774
7803
|
keepOpen
|
|
7775
7804
|
]);
|
|
7805
|
+
var observerRef = import_react42.default.useRef(null);
|
|
7806
|
+
var handleIntersection = function(entries) {
|
|
7807
|
+
var entry = entries.find(function(entry2) {
|
|
7808
|
+
return entry2.isIntersecting;
|
|
7809
|
+
});
|
|
7810
|
+
if (entry) {
|
|
7811
|
+
setCurrentPage(entry.target.id);
|
|
7812
|
+
}
|
|
7813
|
+
};
|
|
7814
|
+
(0, import_react42.useEffect)(function() {
|
|
7815
|
+
observerRef.current = new IntersectionObserver(handleIntersection, {
|
|
7816
|
+
threshold: 0.5
|
|
7817
|
+
});
|
|
7818
|
+
import_react42.default.Children.forEach(props.children, function(child) {
|
|
7819
|
+
if (child && child.props.id) {
|
|
7820
|
+
var element = document.getElementById(child.props.id);
|
|
7821
|
+
if (element && observerRef.current) {
|
|
7822
|
+
observerRef.current.observe(element);
|
|
7823
|
+
}
|
|
7824
|
+
}
|
|
7825
|
+
});
|
|
7826
|
+
return function() {
|
|
7827
|
+
if (observerRef.current) {
|
|
7828
|
+
observerRef.current.disconnect();
|
|
7829
|
+
}
|
|
7830
|
+
};
|
|
7831
|
+
}, [
|
|
7832
|
+
props.children
|
|
7833
|
+
]);
|
|
7776
7834
|
var drawerSizeCondition = drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize];
|
|
7777
7835
|
return /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7778
7836
|
className: "hawa-fixed"
|
|
@@ -7806,7 +7864,10 @@ var DocsLayout = function(_param) {
|
|
|
7806
7864
|
})))), /* @__PURE__ */ import_react42.default.createElement(SheetContent, {
|
|
7807
7865
|
side: isRTL ? "right" : "left",
|
|
7808
7866
|
className: "hawa-pt-10"
|
|
7809
|
-
},
|
|
7867
|
+
}, /* @__PURE__ */ import_react42.default.createElement(DocsSidebar, {
|
|
7868
|
+
direction: direction,
|
|
7869
|
+
pages: pages || []
|
|
7870
|
+
})))), /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7810
7871
|
className: cn("hawa-flex hawa-gap-2 dark:hawa-text-white", isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row")
|
|
7811
7872
|
}, /* @__PURE__ */ import_react42.default.createElement(Button, {
|
|
7812
7873
|
variant: "ghost",
|
|
@@ -7816,7 +7877,6 @@ var DocsLayout = function(_param) {
|
|
|
7816
7877
|
})))), /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7817
7878
|
className: cn("hawa-fixed hawa-bg-primary-foreground hawa-z-40 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all", isRTL ? "hawa-right-0 hawa-top-0 hawa-h-full" : "hawa-left-0 hawa-top-0 hawa-h-full", "hawa-fixed hawa-p-0 hawa-py-2 hawa-overflow-x-clip hawa-transition-all", "hawa-top-14", openSideMenu ? "hawa-overflow-auto" : "hawa-overflow-hidden"),
|
|
7818
7879
|
style: {
|
|
7819
|
-
// height: "calc(100%)",
|
|
7820
7880
|
width: size > 600 ? openSideMenu ? "".concat(drawerSizeStyle["opened"][drawerSize], "px") : "".concat(drawerSizeStyle["closed"][drawerSize], "px") : openSideMenu ? "".concat(drawerSizeStyle["opened"][drawerSize], "px") : "0px"
|
|
7821
7881
|
},
|
|
7822
7882
|
onMouseEnter: function() {
|
|
@@ -7828,7 +7888,11 @@ var DocsLayout = function(_param) {
|
|
|
7828
7888
|
}
|
|
7829
7889
|
},
|
|
7830
7890
|
ref: ref
|
|
7831
|
-
}, /* @__PURE__ */ import_react42.default.createElement(DocsSidebar,
|
|
7891
|
+
}, /* @__PURE__ */ import_react42.default.createElement(DocsSidebar, {
|
|
7892
|
+
direction: direction,
|
|
7893
|
+
pages: pages || [],
|
|
7894
|
+
currentPage: currentPage
|
|
7895
|
+
})), /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7832
7896
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all ",
|
|
7833
7897
|
style: isRTL ? {
|
|
7834
7898
|
height: "calc(100% - 56px)",
|
|
@@ -7838,7 +7902,6 @@ var DocsLayout = function(_param) {
|
|
|
7838
7902
|
} : {
|
|
7839
7903
|
height: "calc(100% - 56px)",
|
|
7840
7904
|
width: "calc(100% - ".concat(drawerSizeCondition, "px)"),
|
|
7841
|
-
// width: `calc(100% - ${0}px)`,
|
|
7842
7905
|
left: "".concat(drawerSizeCondition, "px"),
|
|
7843
7906
|
right: "".concat(drawerSizeCondition, "px"),
|
|
7844
7907
|
top: "56px"
|
|
@@ -7902,7 +7965,80 @@ var AuthButtons = function(props) {
|
|
|
7902
7965
|
className: "hawa-icon"
|
|
7903
7966
|
}), (_props_texts_continueWithPhone = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.continueWithPhone) !== null && _props_texts_continueWithPhone !== void 0 ? _props_texts_continueWithPhone : "Continue With Phone"));
|
|
7904
7967
|
};
|
|
7905
|
-
// components/icons/
|
|
7968
|
+
// components/icons/Emojis.tsx
|
|
7969
|
+
var VeryGoodEmoji = function() {
|
|
7970
|
+
return /* @__PURE__ */ React.createElement("svg", {
|
|
7971
|
+
fill: "none",
|
|
7972
|
+
height: "16",
|
|
7973
|
+
viewBox: "0 0 16 16",
|
|
7974
|
+
width: "16",
|
|
7975
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
7976
|
+
}, /* @__PURE__ */ React.createElement("g", {
|
|
7977
|
+
clipPath: "url(#clip0_53_166)"
|
|
7978
|
+
}, /* @__PURE__ */ React.createElement("path", {
|
|
7979
|
+
clipRule: "evenodd",
|
|
7980
|
+
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM4.5 8.97498H3.875V9.59998C3.875 11.4747 5.81046 12.8637 7.99817 12.8637C10.1879 12.8637 12.125 11.4832 12.125 9.59998V8.97498H11.5H4.5ZM7.99817 11.6137C6.59406 11.6137 5.63842 10.9482 5.28118 10.225H10.7202C10.3641 10.9504 9.40797 11.6137 7.99817 11.6137Z",
|
|
7981
|
+
fill: "currentColor",
|
|
7982
|
+
fillRule: "evenodd"
|
|
7983
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
7984
|
+
clipRule: "evenodd",
|
|
7985
|
+
d: "M6.15295 4.92093L5.375 3.5L4.59705 4.92093L3 5.21885L4.11625 6.39495L3.90717 8L5.375 7.30593L6.84283 8L6.63375 6.39495L7.75 5.21885L6.15295 4.92093ZM11.403 4.92093L10.625 3.5L9.84705 4.92093L8.25 5.21885L9.36625 6.39495L9.15717 8L10.625 7.30593L12.0928 8L11.8837 6.39495L13 5.21885L11.403 4.92093Z",
|
|
7986
|
+
fill: "#FF990A",
|
|
7987
|
+
fillRule: "evenodd"
|
|
7988
|
+
})));
|
|
7989
|
+
};
|
|
7990
|
+
var GoodEmoji = function() {
|
|
7991
|
+
return /* @__PURE__ */ React.createElement("svg", {
|
|
7992
|
+
fill: "none",
|
|
7993
|
+
height: "16",
|
|
7994
|
+
viewBox: "0 0 16 16",
|
|
7995
|
+
width: "16",
|
|
7996
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
7997
|
+
}, /* @__PURE__ */ React.createElement("g", {
|
|
7998
|
+
clipPath: "url(#clip0_53_167)"
|
|
7999
|
+
}, /* @__PURE__ */ React.createElement("path", {
|
|
8000
|
+
clipRule: "evenodd",
|
|
8001
|
+
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.5249 10.8478L11.8727 10.3286L10.8342 9.6329L10.4863 10.1522C9.94904 10.9543 9.0363 11.4802 8.00098 11.4802C6.96759 11.4802 6.05634 10.9563 5.51863 10.1567L5.16986 9.63804L4.13259 10.3356L4.48137 10.8542C5.2414 11.9844 6.53398 12.7302 8.00098 12.7302C9.47073 12.7302 10.7654 11.9816 11.5249 10.8478ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
|
|
8002
|
+
fill: "currentColor",
|
|
8003
|
+
fillRule: "evenodd"
|
|
8004
|
+
})));
|
|
8005
|
+
};
|
|
8006
|
+
var BadEmoji = function() {
|
|
8007
|
+
return /* @__PURE__ */ React.createElement("svg", {
|
|
8008
|
+
fill: "none",
|
|
8009
|
+
height: "16",
|
|
8010
|
+
viewBox: "0 0 16 16",
|
|
8011
|
+
width: "16",
|
|
8012
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
8013
|
+
}, /* @__PURE__ */ React.createElement("g", {
|
|
8014
|
+
clipPath: "url(#clip0_53_152)"
|
|
8015
|
+
}, /* @__PURE__ */ React.createElement("path", {
|
|
8016
|
+
clipRule: "evenodd",
|
|
8017
|
+
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM5.75 7.75C6.30228 7.75 6.75 7.30228 6.75 6.75C6.75 6.19772 6.30228 5.75 5.75 5.75C5.19772 5.75 4.75 6.19772 4.75 6.75C4.75 7.30228 5.19772 7.75 5.75 7.75ZM11.25 6.75C11.25 7.30228 10.8023 7.75 10.25 7.75C9.69771 7.75 9.25 7.30228 9.25 6.75C9.25 6.19772 9.69771 5.75 10.25 5.75C10.8023 5.75 11.25 6.19772 11.25 6.75ZM11.5249 11.2622L11.8727 11.7814L10.8342 12.4771L10.4863 11.9578C9.94904 11.1557 9.0363 10.6298 8.00098 10.6298C6.96759 10.6298 6.05634 11.1537 5.51863 11.9533L5.16986 12.4719L4.13259 11.7744L4.48137 11.2558C5.2414 10.1256 6.53398 9.37982 8.00098 9.37982C9.47073 9.37982 10.7654 10.1284 11.5249 11.2622Z",
|
|
8018
|
+
fill: "currentColor",
|
|
8019
|
+
fillRule: "evenodd"
|
|
8020
|
+
})));
|
|
8021
|
+
};
|
|
8022
|
+
var VeryBadEmoji = function() {
|
|
8023
|
+
return /* @__PURE__ */ React.createElement("svg", {
|
|
8024
|
+
fill: "none",
|
|
8025
|
+
height: "16",
|
|
8026
|
+
viewBox: "0 0 16 16",
|
|
8027
|
+
width: "16",
|
|
8028
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
8029
|
+
}, /* @__PURE__ */ React.createElement("g", {
|
|
8030
|
+
clipPath: "url(#clip0_53_151)"
|
|
8031
|
+
}, /* @__PURE__ */ React.createElement("path", {
|
|
8032
|
+
d: "M11.841 12.0225C12.7197 12.9324 12.7197 14.4077 11.841 15.3176C10.9623 16.2275 9.53769 16.2275 8.65901 15.3176C7.78033 14.4077 7.78033 12.9324 8.65901 12.0225L10.25 10.375L11.841 12.0225Z",
|
|
8033
|
+
fill: "#0070F3"
|
|
8034
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
8035
|
+
clipRule: "evenodd",
|
|
8036
|
+
d: "M8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 10.9668 3.48826 13.4711 6.20649 14.2496L5.79351 15.6916C2.44895 14.7338 0 11.6539 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 9.4652 15.6054 10.8405 14.9162 12.023L13.6203 11.2677C14.1794 10.3083 14.5 9.19272 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
|
|
8037
|
+
fill: "currentColor",
|
|
8038
|
+
fillRule: "evenodd"
|
|
8039
|
+
})));
|
|
8040
|
+
};
|
|
8041
|
+
// components/icons/InputIcons.tsx
|
|
7906
8042
|
var import_react44 = __toESM(require("react"));
|
|
7907
8043
|
var EyeIcon = function(props) {
|
|
7908
8044
|
return /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
@@ -8543,66 +8679,12 @@ var AppLanding = function(_param) {
|
|
|
8543
8679
|
handleGithub: props.handleGithub,
|
|
8544
8680
|
handleEmail: props.handleEmail,
|
|
8545
8681
|
handlePhone: props.handlePhone
|
|
8546
|
-
}),
|
|
8547
|
-
/* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8682
|
+
}), props.allowRegister && /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8548
8683
|
className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300"
|
|
8549
8684
|
}, texts === null || texts === void 0 ? void 0 : texts.newUserText, " ", /* @__PURE__ */ import_react47.default.createElement("span", {
|
|
8550
8685
|
onClick: props.handleRouteToRegister,
|
|
8551
8686
|
className: "clickable-link"
|
|
8552
|
-
}, texts === null || texts === void 0 ? void 0 : texts.createAccount))))
|
|
8553
|
-
className: "hawa-mt-4 hawa-flex hawa-flex-row hawa-justify-between"
|
|
8554
|
-
}, /* @__PURE__ */ import_react47.default.createElement(Radio, {
|
|
8555
|
-
onChangeTab: props.handleLanguage,
|
|
8556
|
-
design: "tabs",
|
|
8557
|
-
options: [
|
|
8558
|
-
{
|
|
8559
|
-
value: "ar",
|
|
8560
|
-
label: "عربي"
|
|
8561
|
-
},
|
|
8562
|
-
{
|
|
8563
|
-
value: "en",
|
|
8564
|
-
label: "English"
|
|
8565
|
-
}
|
|
8566
|
-
]
|
|
8567
|
-
}), /* @__PURE__ */ import_react47.default.createElement(Radio, {
|
|
8568
|
-
onChangeTab: props.handleColorMode,
|
|
8569
|
-
design: "tabs",
|
|
8570
|
-
options: [
|
|
8571
|
-
{
|
|
8572
|
-
value: "light",
|
|
8573
|
-
label: /* @__PURE__ */ import_react47.default.createElement("svg", {
|
|
8574
|
-
width: "15",
|
|
8575
|
-
height: "15",
|
|
8576
|
-
viewBox: "0 0 15 15",
|
|
8577
|
-
fill: "none",
|
|
8578
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8579
|
-
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
|
8580
|
-
}, /* @__PURE__ */ import_react47.default.createElement("path", {
|
|
8581
|
-
d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
|
|
8582
|
-
fill: "currentColor",
|
|
8583
|
-
fillRule: "evenodd",
|
|
8584
|
-
clipRule: "evenodd"
|
|
8585
|
-
}))
|
|
8586
|
-
},
|
|
8587
|
-
{
|
|
8588
|
-
value: "dark",
|
|
8589
|
-
label: /* @__PURE__ */ import_react47.default.createElement("svg", {
|
|
8590
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8591
|
-
width: "24",
|
|
8592
|
-
height: "24",
|
|
8593
|
-
viewBox: "0 0 24 24",
|
|
8594
|
-
fill: "none",
|
|
8595
|
-
stroke: "currentColor",
|
|
8596
|
-
strokeWidth: "2",
|
|
8597
|
-
strokeLinecap: "round",
|
|
8598
|
-
strokeLinejoin: "round",
|
|
8599
|
-
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
|
8600
|
-
}, /* @__PURE__ */ import_react47.default.createElement("path", {
|
|
8601
|
-
d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"
|
|
8602
|
-
}))
|
|
8603
|
-
}
|
|
8604
|
-
]
|
|
8605
|
-
})));
|
|
8687
|
+
}, texts === null || texts === void 0 ? void 0 : texts.createAccount)))));
|
|
8606
8688
|
};
|
|
8607
8689
|
// components/blocks/auth/CheckEmail.tsx
|
|
8608
8690
|
var import_react48 = __toESM(require("react"));
|
|
@@ -8863,7 +8945,7 @@ var CodeConfirmation = function(props) {
|
|
|
8863
8945
|
className: "hawa-text-lg hawa-font-bold"
|
|
8864
8946
|
}, ((_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.checkYourPhone) || "Please check your phone"), /* @__PURE__ */ import_react51.default.createElement("div", {
|
|
8865
8947
|
className: "hawa-text-muted-foreground"
|
|
8866
|
-
}, /* @__PURE__ */ import_react51.default.createElement("span", null, ((_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.weSentCode) || "We've sent a code to "), /* @__PURE__ */ import_react51.default.createElement("span", null, props.phoneNumber))
|
|
8948
|
+
}, /* @__PURE__ */ import_react51.default.createElement("span", null, ((_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.weSentCode) || "We've sent a code to "), /* @__PURE__ */ import_react51.default.createElement("span", null, props.phoneNumber))), /* @__PURE__ */ import_react51.default.createElement("form", {
|
|
8867
8949
|
noValidate: true,
|
|
8868
8950
|
onSubmit: handleSubmit(function(e) {
|
|
8869
8951
|
if (props.handleConfirm) {
|
|
@@ -9198,7 +9280,7 @@ var FeedbackEmoji = function(props) {
|
|
|
9198
9280
|
};
|
|
9199
9281
|
}();
|
|
9200
9282
|
return /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
9201
|
-
className: cn("hawa-flex hawa-flex-col hawa-gap-2 hawa-rounded hawa-border hawa-p-2 hawa-transition-all", selectedEmoji ? "hawa-h-[
|
|
9283
|
+
className: cn("hawa-flex hawa-flex-col hawa-gap-2 hawa-rounded hawa-border hawa-p-2 hawa-transition-all", selectedEmoji ? "hawa-h-[195px] hawa-min-w-fit" : "hawa-h-[44px] ")
|
|
9202
9284
|
}, /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
9203
9285
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 "
|
|
9204
9286
|
}, /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
@@ -9258,78 +9340,6 @@ var FeedbackEmoji = function(props) {
|
|
|
9258
9340
|
size: "sm"
|
|
9259
9341
|
}, "Submit"))));
|
|
9260
9342
|
};
|
|
9261
|
-
var VeryGoodEmoji = function() {
|
|
9262
|
-
return /* @__PURE__ */ import_react54.default.createElement("svg", {
|
|
9263
|
-
fill: "none",
|
|
9264
|
-
height: "16",
|
|
9265
|
-
viewBox: "0 0 16 16",
|
|
9266
|
-
width: "16",
|
|
9267
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
9268
|
-
}, /* @__PURE__ */ import_react54.default.createElement("g", {
|
|
9269
|
-
clipPath: "url(#clip0_53_166)"
|
|
9270
|
-
}, /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
9271
|
-
clipRule: "evenodd",
|
|
9272
|
-
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM4.5 8.97498H3.875V9.59998C3.875 11.4747 5.81046 12.8637 7.99817 12.8637C10.1879 12.8637 12.125 11.4832 12.125 9.59998V8.97498H11.5H4.5ZM7.99817 11.6137C6.59406 11.6137 5.63842 10.9482 5.28118 10.225H10.7202C10.3641 10.9504 9.40797 11.6137 7.99817 11.6137Z",
|
|
9273
|
-
fill: "currentColor",
|
|
9274
|
-
fillRule: "evenodd"
|
|
9275
|
-
}), /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
9276
|
-
clipRule: "evenodd",
|
|
9277
|
-
d: "M6.15295 4.92093L5.375 3.5L4.59705 4.92093L3 5.21885L4.11625 6.39495L3.90717 8L5.375 7.30593L6.84283 8L6.63375 6.39495L7.75 5.21885L6.15295 4.92093ZM11.403 4.92093L10.625 3.5L9.84705 4.92093L8.25 5.21885L9.36625 6.39495L9.15717 8L10.625 7.30593L12.0928 8L11.8837 6.39495L13 5.21885L11.403 4.92093Z",
|
|
9278
|
-
fill: "#FF990A",
|
|
9279
|
-
fillRule: "evenodd"
|
|
9280
|
-
})));
|
|
9281
|
-
};
|
|
9282
|
-
var GoodEmoji = function() {
|
|
9283
|
-
return /* @__PURE__ */ import_react54.default.createElement("svg", {
|
|
9284
|
-
fill: "none",
|
|
9285
|
-
height: "16",
|
|
9286
|
-
viewBox: "0 0 16 16",
|
|
9287
|
-
width: "16",
|
|
9288
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
9289
|
-
}, /* @__PURE__ */ import_react54.default.createElement("g", {
|
|
9290
|
-
clipPath: "url(#clip0_53_167)"
|
|
9291
|
-
}, /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
9292
|
-
clipRule: "evenodd",
|
|
9293
|
-
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.5249 10.8478L11.8727 10.3286L10.8342 9.6329L10.4863 10.1522C9.94904 10.9543 9.0363 11.4802 8.00098 11.4802C6.96759 11.4802 6.05634 10.9563 5.51863 10.1567L5.16986 9.63804L4.13259 10.3356L4.48137 10.8542C5.2414 11.9844 6.53398 12.7302 8.00098 12.7302C9.47073 12.7302 10.7654 11.9816 11.5249 10.8478ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
|
|
9294
|
-
fill: "currentColor",
|
|
9295
|
-
fillRule: "evenodd"
|
|
9296
|
-
})));
|
|
9297
|
-
};
|
|
9298
|
-
var BadEmoji = function() {
|
|
9299
|
-
return /* @__PURE__ */ import_react54.default.createElement("svg", {
|
|
9300
|
-
fill: "none",
|
|
9301
|
-
height: "16",
|
|
9302
|
-
viewBox: "0 0 16 16",
|
|
9303
|
-
width: "16",
|
|
9304
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
9305
|
-
}, /* @__PURE__ */ import_react54.default.createElement("g", {
|
|
9306
|
-
clipPath: "url(#clip0_53_152)"
|
|
9307
|
-
}, /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
9308
|
-
clipRule: "evenodd",
|
|
9309
|
-
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM5.75 7.75C6.30228 7.75 6.75 7.30228 6.75 6.75C6.75 6.19772 6.30228 5.75 5.75 5.75C5.19772 5.75 4.75 6.19772 4.75 6.75C4.75 7.30228 5.19772 7.75 5.75 7.75ZM11.25 6.75C11.25 7.30228 10.8023 7.75 10.25 7.75C9.69771 7.75 9.25 7.30228 9.25 6.75C9.25 6.19772 9.69771 5.75 10.25 5.75C10.8023 5.75 11.25 6.19772 11.25 6.75ZM11.5249 11.2622L11.8727 11.7814L10.8342 12.4771L10.4863 11.9578C9.94904 11.1557 9.0363 10.6298 8.00098 10.6298C6.96759 10.6298 6.05634 11.1537 5.51863 11.9533L5.16986 12.4719L4.13259 11.7744L4.48137 11.2558C5.2414 10.1256 6.53398 9.37982 8.00098 9.37982C9.47073 9.37982 10.7654 10.1284 11.5249 11.2622Z",
|
|
9310
|
-
fill: "currentColor",
|
|
9311
|
-
fillRule: "evenodd"
|
|
9312
|
-
})));
|
|
9313
|
-
};
|
|
9314
|
-
var VeryBadEmoji = function() {
|
|
9315
|
-
return /* @__PURE__ */ import_react54.default.createElement("svg", {
|
|
9316
|
-
fill: "none",
|
|
9317
|
-
height: "16",
|
|
9318
|
-
viewBox: "0 0 16 16",
|
|
9319
|
-
width: "16",
|
|
9320
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
9321
|
-
}, /* @__PURE__ */ import_react54.default.createElement("g", {
|
|
9322
|
-
clipPath: "url(#clip0_53_151)"
|
|
9323
|
-
}, /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
9324
|
-
d: "M11.841 12.0225C12.7197 12.9324 12.7197 14.4077 11.841 15.3176C10.9623 16.2275 9.53769 16.2275 8.65901 15.3176C7.78033 14.4077 7.78033 12.9324 8.65901 12.0225L10.25 10.375L11.841 12.0225Z",
|
|
9325
|
-
fill: "#0070F3"
|
|
9326
|
-
}), /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
9327
|
-
clipRule: "evenodd",
|
|
9328
|
-
d: "M8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 10.9668 3.48826 13.4711 6.20649 14.2496L5.79351 15.6916C2.44895 14.7338 0 11.6539 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 9.4652 15.6054 10.8405 14.9162 12.023L13.6203 11.2677C14.1794 10.3083 14.5 9.19272 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
|
|
9329
|
-
fill: "currentColor",
|
|
9330
|
-
fillRule: "evenodd"
|
|
9331
|
-
})));
|
|
9332
|
-
};
|
|
9333
9343
|
// components/blocks/feedback/FeedbackForm.tsx
|
|
9334
9344
|
var import_react55 = __toESM(require("react"));
|
|
9335
9345
|
var import_react_hook_form7 = require("react-hook-form");
|
|
@@ -9860,20 +9870,23 @@ var Usage = function(props) {
|
|
|
9860
9870
|
value: (_props_percent = props.percent) !== null && _props_percent !== void 0 ? _props_percent : 0
|
|
9861
9871
|
}));
|
|
9862
9872
|
};
|
|
9863
|
-
// components/hooks/
|
|
9873
|
+
// components/hooks/useIsomorphicEffect.ts
|
|
9864
9874
|
var import_react67 = require("react");
|
|
9865
|
-
|
|
9875
|
+
var useIsomorphicEffect = typeof document !== "undefined" ? import_react67.useLayoutEffect : import_react67.useEffect;
|
|
9876
|
+
// components/hooks/useDiscloser.ts
|
|
9866
9877
|
var import_react68 = require("react");
|
|
9867
|
-
// components/hooks/
|
|
9878
|
+
// components/hooks/useHover.ts
|
|
9868
9879
|
var import_react69 = require("react");
|
|
9869
|
-
// components/hooks/
|
|
9880
|
+
// components/hooks/useCarousel.ts
|
|
9870
9881
|
var import_react70 = require("react");
|
|
9882
|
+
// components/hooks/useWindowSize.ts
|
|
9883
|
+
var import_react71 = require("react");
|
|
9871
9884
|
var useWindowSize = function() {
|
|
9872
|
-
var _ref = _sliced_to_array((0,
|
|
9885
|
+
var _ref = _sliced_to_array((0, import_react71.useState)({
|
|
9873
9886
|
width: void 0,
|
|
9874
9887
|
height: void 0
|
|
9875
9888
|
}), 2), windowSize = _ref[0], setWindowSize = _ref[1];
|
|
9876
|
-
(0,
|
|
9889
|
+
(0, import_react71.useEffect)(function() {
|
|
9877
9890
|
var handleResize = function handleResize() {
|
|
9878
9891
|
setWindowSize({
|
|
9879
9892
|
width: window.innerWidth,
|
|
@@ -9889,7 +9902,7 @@ var useWindowSize = function() {
|
|
|
9889
9902
|
return windowSize;
|
|
9890
9903
|
};
|
|
9891
9904
|
// components/hooks/useFocusWithin.ts
|
|
9892
|
-
var
|
|
9905
|
+
var import_react72 = require("react");
|
|
9893
9906
|
function containsRelatedTarget(event) {
|
|
9894
9907
|
if (_instanceof(event.currentTarget, HTMLElement) && _instanceof(event.relatedTarget, HTMLElement)) {
|
|
9895
9908
|
return event.currentTarget.contains(event.relatedTarget);
|
|
@@ -9898,9 +9911,9 @@ function containsRelatedTarget(event) {
|
|
|
9898
9911
|
}
|
|
9899
9912
|
function useFocusWithin() {
|
|
9900
9913
|
var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, onBlur = _ref.onBlur, onFocus = _ref.onFocus;
|
|
9901
|
-
var ref = (0,
|
|
9902
|
-
var _ref1 = _sliced_to_array((0,
|
|
9903
|
-
var focusedRef = (0,
|
|
9914
|
+
var ref = (0, import_react72.useRef)(null);
|
|
9915
|
+
var _ref1 = _sliced_to_array((0, import_react72.useState)(false), 2), focused = _ref1[0], _setFocused = _ref1[1];
|
|
9916
|
+
var focusedRef = (0, import_react72.useRef)(false);
|
|
9904
9917
|
var setFocused = function(value) {
|
|
9905
9918
|
_setFocused(value);
|
|
9906
9919
|
focusedRef.current = value;
|
|
@@ -9917,7 +9930,7 @@ function useFocusWithin() {
|
|
|
9917
9930
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
9918
9931
|
}
|
|
9919
9932
|
};
|
|
9920
|
-
(0,
|
|
9933
|
+
(0, import_react72.useEffect)(function() {
|
|
9921
9934
|
if (ref.current) {
|
|
9922
9935
|
ref.current.addEventListener("focusin", handleFocusIn);
|
|
9923
9936
|
ref.current.addEventListener("focusout", handleFocusOut);
|
|
@@ -9938,7 +9951,7 @@ function useFocusWithin() {
|
|
|
9938
9951
|
};
|
|
9939
9952
|
}
|
|
9940
9953
|
// components/hooks/useMediaQuery.ts
|
|
9941
|
-
var
|
|
9954
|
+
var import_react73 = require("react");
|
|
9942
9955
|
function attachMediaListener(query, callback) {
|
|
9943
9956
|
try {
|
|
9944
9957
|
query.addEventListener("change", callback);
|
|
@@ -9965,9 +9978,9 @@ function useMediaQuery(query, initialValue) {
|
|
|
9965
9978
|
var getInitialValueInEffect = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
9966
9979
|
getInitialValueInEffect: true
|
|
9967
9980
|
}).getInitialValueInEffect;
|
|
9968
|
-
var _ref = _sliced_to_array((0,
|
|
9969
|
-
var queryRef = (0,
|
|
9970
|
-
(0,
|
|
9981
|
+
var _ref = _sliced_to_array((0, import_react73.useState)(getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)), 2), matches = _ref[0], setMatches = _ref[1];
|
|
9982
|
+
var queryRef = (0, import_react73.useRef)();
|
|
9983
|
+
(0, import_react73.useEffect)(function() {
|
|
9971
9984
|
if ("matchMedia" in window) {
|
|
9972
9985
|
queryRef.current = window.matchMedia(query);
|
|
9973
9986
|
setMatches(queryRef.current.matches);
|
|
@@ -9982,15 +9995,15 @@ function useMediaQuery(query, initialValue) {
|
|
|
9982
9995
|
return matches;
|
|
9983
9996
|
}
|
|
9984
9997
|
// components/hooks/useScrollPosition.ts
|
|
9985
|
-
var import_react73 = require("react");
|
|
9986
|
-
// components/hooks/useTable.ts
|
|
9987
9998
|
var import_react74 = require("react");
|
|
9988
|
-
// components/hooks/
|
|
9999
|
+
// components/hooks/useTable.ts
|
|
9989
10000
|
var import_react75 = require("react");
|
|
10001
|
+
// components/hooks/useTabs.ts
|
|
10002
|
+
var import_react76 = require("react");
|
|
9990
10003
|
function useTabs() {
|
|
9991
10004
|
var initialTab = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
9992
|
-
var _ref = _sliced_to_array((0,
|
|
9993
|
-
(0,
|
|
10005
|
+
var _ref = _sliced_to_array((0, import_react76.useState)(initialTab), 2), activeTab = _ref[0], setActiveTab = _ref[1];
|
|
10006
|
+
(0, import_react76.useEffect)(function() {
|
|
9994
10007
|
var handleHashChange = function() {
|
|
9995
10008
|
var hash = window.location.hash.substring(1);
|
|
9996
10009
|
setActiveTab(hash || initialTab);
|
|
@@ -10186,6 +10199,7 @@ function useTabs() {
|
|
|
10186
10199
|
useBreakpoint: useBreakpoint,
|
|
10187
10200
|
useClipboard: useClipboard,
|
|
10188
10201
|
useFocusWithin: useFocusWithin,
|
|
10202
|
+
useIsomorphicEffect: useIsomorphicEffect,
|
|
10189
10203
|
useMediaQuery: useMediaQuery,
|
|
10190
10204
|
useTabs: useTabs,
|
|
10191
10205
|
useToast: useToast,
|