@sikka/hawa 0.21.9-next → 0.21.10-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/accordion/index.js +311 -523
- package/dist/accordion/index.mjs +3 -2
- package/dist/button/index.d.mts +1 -10
- package/dist/button/index.d.ts +1 -10
- package/dist/button/index.js +0 -394
- package/dist/button/index.mjs +5 -142
- package/dist/chunk-BCZU5ZPQ.mjs +363 -0
- package/dist/chunk-FD5EBARW.mjs +184 -0
- package/dist/chunk-KEWQFODI.mjs +84 -0
- package/dist/{chunk-WG7AYQJH.mjs → chunk-MOOUHJME.mjs} +412 -473
- package/dist/index.css +3 -0
- package/dist/index.d.mts +1 -7
- package/dist/index.d.ts +1 -7
- package/dist/index.js +596 -662
- package/dist/index.mjs +8 -8
- package/dist/splitButton/index.d.mts +15 -0
- package/dist/splitButton/index.d.ts +15 -0
- package/dist/{chunk-UPR664UX.mjs → splitButton/index.js} +390 -240
- package/dist/splitButton/index.mjs +76 -0
- package/package.json +3 -9
package/dist/accordion/index.js
CHANGED
|
@@ -39,7 +39,7 @@ __export(accordion_exports, {
|
|
|
39
39
|
module.exports = __toCommonJS(accordion_exports);
|
|
40
40
|
|
|
41
41
|
// components/elements/accordion/Accordion.tsx
|
|
42
|
-
var
|
|
42
|
+
var React63 = __toESM(require("react"));
|
|
43
43
|
var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
|
|
44
44
|
|
|
45
45
|
// components/elements/cards/ActionCard.tsx
|
|
@@ -996,403 +996,11 @@ var Button = React24.forwardRef(
|
|
|
996
996
|
);
|
|
997
997
|
Button.displayName = "Button";
|
|
998
998
|
|
|
999
|
-
// components/elements/SplitButton.tsx
|
|
1000
|
-
var React26 = __toESM(require("react"));
|
|
1001
|
-
|
|
1002
|
-
// components/elements/DropdownMenu.tsx
|
|
1003
|
-
var React25 = __toESM(require("react"));
|
|
1004
|
-
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
|
1005
|
-
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
|
1006
|
-
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
1007
|
-
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1008
|
-
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1009
|
-
var DropdownMenuSubTrigger = React25.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
1010
|
-
DropdownMenuPrimitive.SubTrigger,
|
|
1011
|
-
{
|
|
1012
|
-
ref,
|
|
1013
|
-
className: cn(
|
|
1014
|
-
"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",
|
|
1015
|
-
inset && "hawa-pl-8",
|
|
1016
|
-
className
|
|
1017
|
-
),
|
|
1018
|
-
...props
|
|
1019
|
-
},
|
|
1020
|
-
/* @__PURE__ */ React25.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
|
|
1021
|
-
" ",
|
|
1022
|
-
/* @__PURE__ */ React25.createElement(
|
|
1023
|
-
"svg",
|
|
1024
|
-
{
|
|
1025
|
-
"aria-label": "Chevron Right Icon",
|
|
1026
|
-
stroke: "currentColor",
|
|
1027
|
-
fill: "currentColor",
|
|
1028
|
-
strokeWidth: "0",
|
|
1029
|
-
viewBox: "0 0 16 16",
|
|
1030
|
-
height: "1em",
|
|
1031
|
-
width: "1em",
|
|
1032
|
-
className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
|
|
1033
|
-
},
|
|
1034
|
-
/* @__PURE__ */ React25.createElement(
|
|
1035
|
-
"path",
|
|
1036
|
-
{
|
|
1037
|
-
fillRule: "evenodd",
|
|
1038
|
-
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"
|
|
1039
|
-
}
|
|
1040
|
-
)
|
|
1041
|
-
)
|
|
1042
|
-
));
|
|
1043
|
-
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1044
|
-
var DropdownMenuSubContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
1045
|
-
DropdownMenuPrimitive.SubContent,
|
|
1046
|
-
{
|
|
1047
|
-
ref,
|
|
1048
|
-
className: cn(
|
|
1049
|
-
"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",
|
|
1050
|
-
className
|
|
1051
|
-
),
|
|
1052
|
-
...props
|
|
1053
|
-
}
|
|
1054
|
-
));
|
|
1055
|
-
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1056
|
-
var DropdownMenuContent = React25.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React25.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React25.createElement(
|
|
1057
|
-
DropdownMenuPrimitive.Content,
|
|
1058
|
-
{
|
|
1059
|
-
ref,
|
|
1060
|
-
sideOffset,
|
|
1061
|
-
className: cn(
|
|
1062
|
-
"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",
|
|
1063
|
-
className
|
|
1064
|
-
),
|
|
1065
|
-
...props
|
|
1066
|
-
}
|
|
1067
|
-
)));
|
|
1068
|
-
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1069
|
-
var DropdownMenuItem = React25.forwardRef(({ className, inset, badged, slug, ...props }, ref) => {
|
|
1070
|
-
return /* @__PURE__ */ React25.createElement("a", { href: slug }, /* @__PURE__ */ React25.createElement(
|
|
1071
|
-
DropdownMenuPrimitive.Item,
|
|
1072
|
-
{
|
|
1073
|
-
disabled: props.disabled,
|
|
1074
|
-
ref,
|
|
1075
|
-
className: cn(
|
|
1076
|
-
"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",
|
|
1077
|
-
inset && "hawa-pl-8",
|
|
1078
|
-
props.end && Array.isArray(props.children) && props.children[1] && "hawa-gap-6",
|
|
1079
|
-
className
|
|
1080
|
-
),
|
|
1081
|
-
...props
|
|
1082
|
-
},
|
|
1083
|
-
/* @__PURE__ */ React25.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
|
|
1084
|
-
props.end && props.end,
|
|
1085
|
-
!props.end && props.shortcut && /* @__PURE__ */ React25.createElement(DropdownMenuShortcut, null, props.shortcut),
|
|
1086
|
-
!props.end && badged && /* @__PURE__ */ React25.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
|
|
1087
|
-
));
|
|
1088
|
-
});
|
|
1089
|
-
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
1090
|
-
var DropdownMenuCheckboxItem = React25.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
1091
|
-
DropdownMenuPrimitive.CheckboxItem,
|
|
1092
|
-
{
|
|
1093
|
-
ref,
|
|
1094
|
-
className: cn(
|
|
1095
|
-
"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",
|
|
1096
|
-
className
|
|
1097
|
-
),
|
|
1098
|
-
checked,
|
|
1099
|
-
...props
|
|
1100
|
-
},
|
|
1101
|
-
/* @__PURE__ */ React25.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React25.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React25.createElement(
|
|
1102
|
-
"svg",
|
|
1103
|
-
{
|
|
1104
|
-
"aria-label": "Check Mark",
|
|
1105
|
-
stroke: "currentColor",
|
|
1106
|
-
fill: "currentColor",
|
|
1107
|
-
strokeWidth: "0",
|
|
1108
|
-
viewBox: "0 0 512 512",
|
|
1109
|
-
height: "0.60em",
|
|
1110
|
-
width: "0.60em"
|
|
1111
|
-
},
|
|
1112
|
-
/* @__PURE__ */ React25.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
|
1113
|
-
), " ")),
|
|
1114
|
-
children
|
|
1115
|
-
));
|
|
1116
|
-
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
1117
|
-
var DropdownMenuRadioItem = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
1118
|
-
DropdownMenuPrimitive.RadioItem,
|
|
1119
|
-
{
|
|
1120
|
-
ref,
|
|
1121
|
-
className: cn(
|
|
1122
|
-
"hawa-relative hawa-flex hawa-cursor-pointer 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",
|
|
1123
|
-
className
|
|
1124
|
-
),
|
|
1125
|
-
...props
|
|
1126
|
-
},
|
|
1127
|
-
/* @__PURE__ */ React25.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React25.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React25.createElement(
|
|
1128
|
-
"svg",
|
|
1129
|
-
{
|
|
1130
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1131
|
-
width: "24",
|
|
1132
|
-
"aria-label": "Circle",
|
|
1133
|
-
height: "24",
|
|
1134
|
-
viewBox: "0 0 24 24",
|
|
1135
|
-
fill: "none",
|
|
1136
|
-
stroke: "currentColor",
|
|
1137
|
-
strokeWidth: "2",
|
|
1138
|
-
strokeLinecap: "round",
|
|
1139
|
-
strokeLinejoin: "round",
|
|
1140
|
-
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
|
1141
|
-
},
|
|
1142
|
-
/* @__PURE__ */ React25.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
|
1143
|
-
))),
|
|
1144
|
-
children
|
|
1145
|
-
));
|
|
1146
|
-
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
1147
|
-
var DropdownMenuLabel = React25.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
1148
|
-
DropdownMenuPrimitive.Label,
|
|
1149
|
-
{
|
|
1150
|
-
ref,
|
|
1151
|
-
className: cn(
|
|
1152
|
-
"hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-font-semibold",
|
|
1153
|
-
inset && "hawa-pl-8",
|
|
1154
|
-
className
|
|
1155
|
-
),
|
|
1156
|
-
...props
|
|
1157
|
-
}
|
|
1158
|
-
));
|
|
1159
|
-
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
1160
|
-
var DropdownMenuSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
1161
|
-
DropdownMenuPrimitive.Separator,
|
|
1162
|
-
{
|
|
1163
|
-
ref,
|
|
1164
|
-
className: cn("hawa--mx-1 hawa-my-1 hawa-h-px hawa-bg-muted", className),
|
|
1165
|
-
...props
|
|
1166
|
-
}
|
|
1167
|
-
));
|
|
1168
|
-
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
1169
|
-
var DropdownMenuShortcut = ({
|
|
1170
|
-
className,
|
|
1171
|
-
...props
|
|
1172
|
-
}) => {
|
|
1173
|
-
return /* @__PURE__ */ React25.createElement(
|
|
1174
|
-
"span",
|
|
1175
|
-
{
|
|
1176
|
-
className: cn(
|
|
1177
|
-
"hawa-text-xs hawa-tracking-widest hawa-opacity-60",
|
|
1178
|
-
className
|
|
1179
|
-
),
|
|
1180
|
-
...props
|
|
1181
|
-
}
|
|
1182
|
-
);
|
|
1183
|
-
};
|
|
1184
|
-
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1185
|
-
var DropdownMenu = ({
|
|
1186
|
-
trigger,
|
|
1187
|
-
items,
|
|
1188
|
-
direction,
|
|
1189
|
-
sideOffset,
|
|
1190
|
-
side,
|
|
1191
|
-
className,
|
|
1192
|
-
triggerClassname,
|
|
1193
|
-
align,
|
|
1194
|
-
alignOffset,
|
|
1195
|
-
onItemSelect,
|
|
1196
|
-
size = "default",
|
|
1197
|
-
width = "default",
|
|
1198
|
-
header,
|
|
1199
|
-
onOpenChange,
|
|
1200
|
-
open
|
|
1201
|
-
}) => {
|
|
1202
|
-
const widthStyles = {
|
|
1203
|
-
default: "hawa-min-w-[8rem]",
|
|
1204
|
-
sm: "hawa-w-fit",
|
|
1205
|
-
lg: "hawa-w-[200px]",
|
|
1206
|
-
parent: "ddm-w-parent"
|
|
1207
|
-
};
|
|
1208
|
-
const sizeStyles = {
|
|
1209
|
-
default: "hawa-px-2 hawa-py-3 ",
|
|
1210
|
-
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
|
1211
|
-
};
|
|
1212
|
-
return /* @__PURE__ */ React25.createElement(
|
|
1213
|
-
DropdownMenuRoot,
|
|
1214
|
-
{
|
|
1215
|
-
onOpenChange,
|
|
1216
|
-
open,
|
|
1217
|
-
modal: false,
|
|
1218
|
-
dir: direction
|
|
1219
|
-
},
|
|
1220
|
-
/* @__PURE__ */ React25.createElement(DropdownMenuTrigger, { asChild: true, className: triggerClassname }, trigger),
|
|
1221
|
-
/* @__PURE__ */ React25.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React25.createElement(
|
|
1222
|
-
DropdownMenuContent,
|
|
1223
|
-
{
|
|
1224
|
-
side,
|
|
1225
|
-
sideOffset,
|
|
1226
|
-
className: cn(
|
|
1227
|
-
className,
|
|
1228
|
-
widthStyles[width],
|
|
1229
|
-
"hawa-flex hawa-flex-col hawa-gap-1"
|
|
1230
|
-
),
|
|
1231
|
-
align,
|
|
1232
|
-
alignOffset
|
|
1233
|
-
},
|
|
1234
|
-
header && header,
|
|
1235
|
-
items && items.map((item, index) => {
|
|
1236
|
-
if (item.itemType === "separator") {
|
|
1237
|
-
return /* @__PURE__ */ React25.createElement(DropdownMenuSeparator, { key: index });
|
|
1238
|
-
} else if (item.itemType === "label") {
|
|
1239
|
-
return /* @__PURE__ */ React25.createElement(DropdownMenuLabel, { key: index }, item.label);
|
|
1240
|
-
} else if (item.itemType === "custom") {
|
|
1241
|
-
return /* @__PURE__ */ React25.createElement("div", { key: index }, item.content);
|
|
1242
|
-
} else {
|
|
1243
|
-
return item.subitems ? /* @__PURE__ */ React25.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React25.createElement(
|
|
1244
|
-
DropdownMenuSubTrigger,
|
|
1245
|
-
{
|
|
1246
|
-
className: cn(sizeStyles[size]),
|
|
1247
|
-
dir: direction
|
|
1248
|
-
},
|
|
1249
|
-
item.icon && item.icon,
|
|
1250
|
-
item.label && item.label
|
|
1251
|
-
), /* @__PURE__ */ React25.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React25.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => /* @__PURE__ */ React25.createElement(
|
|
1252
|
-
DropdownMenuItem,
|
|
1253
|
-
{
|
|
1254
|
-
slug: subitem.slug,
|
|
1255
|
-
onMouseDown: (event) => {
|
|
1256
|
-
if (event.button === 1 || event.button === 0 && event.ctrlKey) {
|
|
1257
|
-
event.preventDefault();
|
|
1258
|
-
if (subitem.onMiddleClick) {
|
|
1259
|
-
subitem.onMiddleClick(item.value);
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
|
-
},
|
|
1263
|
-
key: subIndex,
|
|
1264
|
-
className: cn(
|
|
1265
|
-
sizeStyles[size],
|
|
1266
|
-
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent"
|
|
1267
|
-
),
|
|
1268
|
-
disabled: subitem.disabled,
|
|
1269
|
-
onSelect: () => {
|
|
1270
|
-
subitem.action && subitem.action();
|
|
1271
|
-
if (onItemSelect) {
|
|
1272
|
-
onItemSelect(subitem.value);
|
|
1273
|
-
}
|
|
1274
|
-
}
|
|
1275
|
-
},
|
|
1276
|
-
subitem.icon && subitem.icon,
|
|
1277
|
-
subitem.label && subitem.label
|
|
1278
|
-
))))) : /* @__PURE__ */ React25.createElement(
|
|
1279
|
-
DropdownMenuItem,
|
|
1280
|
-
{
|
|
1281
|
-
slug: item.slug,
|
|
1282
|
-
key: index,
|
|
1283
|
-
disabled: item.disabled,
|
|
1284
|
-
onMouseDown: (event) => {
|
|
1285
|
-
if (event.button === 1 || event.button === 0 && event.ctrlKey) {
|
|
1286
|
-
event.preventDefault();
|
|
1287
|
-
if (item.onMiddleClick) {
|
|
1288
|
-
item.onMiddleClick(item.value);
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
},
|
|
1292
|
-
onClick: (event) => {
|
|
1293
|
-
if (item.onClick) {
|
|
1294
|
-
item.onClick(item.value);
|
|
1295
|
-
}
|
|
1296
|
-
},
|
|
1297
|
-
onSelect: (e) => {
|
|
1298
|
-
if (item.presist) {
|
|
1299
|
-
e.preventDefault();
|
|
1300
|
-
}
|
|
1301
|
-
if (item.action) {
|
|
1302
|
-
item.action();
|
|
1303
|
-
if (onItemSelect) {
|
|
1304
|
-
onItemSelect(item.value);
|
|
1305
|
-
}
|
|
1306
|
-
} else {
|
|
1307
|
-
if (onItemSelect) {
|
|
1308
|
-
onItemSelect(item.value);
|
|
1309
|
-
}
|
|
1310
|
-
}
|
|
1311
|
-
},
|
|
1312
|
-
end: item.end,
|
|
1313
|
-
shortcut: item.shortcut,
|
|
1314
|
-
badged: item.badged,
|
|
1315
|
-
className: cn(
|
|
1316
|
-
sizeStyles[size],
|
|
1317
|
-
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent " : "focus:hawa-bg-accent ",
|
|
1318
|
-
item.presist && "focus:hawa-bg-transparent"
|
|
1319
|
-
)
|
|
1320
|
-
},
|
|
1321
|
-
item.icon && item.icon,
|
|
1322
|
-
item.label && item.label
|
|
1323
|
-
);
|
|
1324
|
-
}
|
|
1325
|
-
})
|
|
1326
|
-
))
|
|
1327
|
-
);
|
|
1328
|
-
};
|
|
1329
|
-
|
|
1330
|
-
// components/elements/SplitButton.tsx
|
|
1331
|
-
var SplitButton = ({
|
|
1332
|
-
variant,
|
|
1333
|
-
direction = "ltr",
|
|
1334
|
-
menuItems = [],
|
|
1335
|
-
children,
|
|
1336
|
-
...props
|
|
1337
|
-
}) => /* @__PURE__ */ React26.createElement(
|
|
1338
|
-
"div",
|
|
1339
|
-
{
|
|
1340
|
-
dir: "ltr",
|
|
1341
|
-
className: cn("hawa-row hawa-flex hawa-h-fit hawa-justify-center")
|
|
1342
|
-
},
|
|
1343
|
-
/* @__PURE__ */ React26.createElement(
|
|
1344
|
-
Button,
|
|
1345
|
-
{
|
|
1346
|
-
variant,
|
|
1347
|
-
onClick: props.onClick,
|
|
1348
|
-
className: cn("hawa-rounded-r-none", props.className)
|
|
1349
|
-
},
|
|
1350
|
-
children
|
|
1351
|
-
),
|
|
1352
|
-
/* @__PURE__ */ React26.createElement(
|
|
1353
|
-
DropdownMenu,
|
|
1354
|
-
{
|
|
1355
|
-
size: "sm",
|
|
1356
|
-
width: "sm",
|
|
1357
|
-
direction,
|
|
1358
|
-
items: menuItems,
|
|
1359
|
-
trigger: /* @__PURE__ */ React26.createElement(
|
|
1360
|
-
Button,
|
|
1361
|
-
{
|
|
1362
|
-
asChild: true,
|
|
1363
|
-
variant,
|
|
1364
|
-
size: "icon",
|
|
1365
|
-
className: cn(
|
|
1366
|
-
"hawa-h-10 hawa-w-fit hawa-rounded-l-none hawa-border-l-0 hawa-px-1",
|
|
1367
|
-
props.className
|
|
1368
|
-
)
|
|
1369
|
-
},
|
|
1370
|
-
/* @__PURE__ */ React26.createElement(
|
|
1371
|
-
"svg",
|
|
1372
|
-
{
|
|
1373
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1374
|
-
width: "18",
|
|
1375
|
-
height: "18",
|
|
1376
|
-
viewBox: "0 0 24 24",
|
|
1377
|
-
fill: "none",
|
|
1378
|
-
stroke: "currentColor",
|
|
1379
|
-
strokeWidth: "2",
|
|
1380
|
-
strokeLinecap: "round",
|
|
1381
|
-
strokeLinejoin: "round"
|
|
1382
|
-
},
|
|
1383
|
-
/* @__PURE__ */ React26.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
1384
|
-
)
|
|
1385
|
-
)
|
|
1386
|
-
}
|
|
1387
|
-
)
|
|
1388
|
-
);
|
|
1389
|
-
SplitButton.displayName = "SplitButton";
|
|
1390
|
-
|
|
1391
999
|
// components/elements/Dialog.tsx
|
|
1392
|
-
var
|
|
1000
|
+
var React25 = __toESM(require("react"));
|
|
1393
1001
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
1394
|
-
var DialogPortal = ({ ...props }) => /* @__PURE__ */
|
|
1395
|
-
var DialogOverlay =
|
|
1002
|
+
var DialogPortal = ({ ...props }) => /* @__PURE__ */ React25.createElement(DialogPrimitive.Portal, { ...props });
|
|
1003
|
+
var DialogOverlay = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
1396
1004
|
DialogPrimitive.Overlay,
|
|
1397
1005
|
{
|
|
1398
1006
|
ref,
|
|
@@ -1403,7 +1011,7 @@ var DialogOverlay = React27.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1403
1011
|
...props
|
|
1404
1012
|
}
|
|
1405
1013
|
));
|
|
1406
|
-
var DialogContent =
|
|
1014
|
+
var DialogContent = React25.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React25.createElement(DialogPortal, null, /* @__PURE__ */ React25.createElement(DialogOverlay, null), /* @__PURE__ */ React25.createElement(
|
|
1407
1015
|
DialogPrimitive.Content,
|
|
1408
1016
|
{
|
|
1409
1017
|
onPointerDownOutside: (e) => {
|
|
@@ -1419,7 +1027,7 @@ var DialogContent = React27.forwardRef(({ className, children, persist, hideClos
|
|
|
1419
1027
|
...props
|
|
1420
1028
|
},
|
|
1421
1029
|
children,
|
|
1422
|
-
!hideCloseButton && /* @__PURE__ */
|
|
1030
|
+
!hideCloseButton && /* @__PURE__ */ React25.createElement(
|
|
1423
1031
|
DialogPrimitive.Close,
|
|
1424
1032
|
{
|
|
1425
1033
|
className: cn(
|
|
@@ -1427,7 +1035,7 @@ var DialogContent = React27.forwardRef(({ className, children, persist, hideClos
|
|
|
1427
1035
|
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
|
1428
1036
|
)
|
|
1429
1037
|
},
|
|
1430
|
-
/* @__PURE__ */
|
|
1038
|
+
/* @__PURE__ */ React25.createElement(
|
|
1431
1039
|
"svg",
|
|
1432
1040
|
{
|
|
1433
1041
|
"aria-label": "Close Icon",
|
|
@@ -1436,7 +1044,7 @@ var DialogContent = React27.forwardRef(({ className, children, persist, hideClos
|
|
|
1436
1044
|
fill: "currentColor",
|
|
1437
1045
|
viewBox: "0 0 20 20"
|
|
1438
1046
|
},
|
|
1439
|
-
/* @__PURE__ */
|
|
1047
|
+
/* @__PURE__ */ React25.createElement(
|
|
1440
1048
|
"path",
|
|
1441
1049
|
{
|
|
1442
1050
|
fillRule: "evenodd",
|
|
@@ -1445,10 +1053,10 @@ var DialogContent = React27.forwardRef(({ className, children, persist, hideClos
|
|
|
1445
1053
|
}
|
|
1446
1054
|
)
|
|
1447
1055
|
),
|
|
1448
|
-
/* @__PURE__ */
|
|
1056
|
+
/* @__PURE__ */ React25.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
1449
1057
|
)
|
|
1450
1058
|
)));
|
|
1451
|
-
var DialogCarouselContent =
|
|
1059
|
+
var DialogCarouselContent = React25.forwardRef(
|
|
1452
1060
|
({
|
|
1453
1061
|
className,
|
|
1454
1062
|
children,
|
|
@@ -1457,7 +1065,7 @@ var DialogCarouselContent = React27.forwardRef(
|
|
|
1457
1065
|
hideCloseButton,
|
|
1458
1066
|
hidePrevButton,
|
|
1459
1067
|
...props
|
|
1460
|
-
}, ref) => /* @__PURE__ */
|
|
1068
|
+
}, ref) => /* @__PURE__ */ React25.createElement(DialogPortal, null, /* @__PURE__ */ React25.createElement(DialogOverlay, null), /* @__PURE__ */ React25.createElement(
|
|
1461
1069
|
DialogPrimitive.Content,
|
|
1462
1070
|
{
|
|
1463
1071
|
onPointerDownOutside: (e) => {
|
|
@@ -1473,7 +1081,7 @@ var DialogCarouselContent = React27.forwardRef(
|
|
|
1473
1081
|
...props
|
|
1474
1082
|
},
|
|
1475
1083
|
children,
|
|
1476
|
-
/* @__PURE__ */
|
|
1084
|
+
/* @__PURE__ */ React25.createElement(
|
|
1477
1085
|
"div",
|
|
1478
1086
|
{
|
|
1479
1087
|
className: cn(
|
|
@@ -1481,7 +1089,7 @@ var DialogCarouselContent = React27.forwardRef(
|
|
|
1481
1089
|
onPrev ? "hawa-justify-between" : "hawa-justify-end"
|
|
1482
1090
|
)
|
|
1483
1091
|
},
|
|
1484
|
-
hidePrevButton ? /* @__PURE__ */
|
|
1092
|
+
hidePrevButton ? /* @__PURE__ */ React25.createElement("div", null) : /* @__PURE__ */ React25.createElement(
|
|
1485
1093
|
"div",
|
|
1486
1094
|
{
|
|
1487
1095
|
onClick: onPrev,
|
|
@@ -1490,7 +1098,7 @@ var DialogCarouselContent = React27.forwardRef(
|
|
|
1490
1098
|
props.dir === "rtl" && "hawa-rotate-180"
|
|
1491
1099
|
)
|
|
1492
1100
|
},
|
|
1493
|
-
/* @__PURE__ */
|
|
1101
|
+
/* @__PURE__ */ React25.createElement(
|
|
1494
1102
|
"svg",
|
|
1495
1103
|
{
|
|
1496
1104
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1504,10 +1112,10 @@ var DialogCarouselContent = React27.forwardRef(
|
|
|
1504
1112
|
strokeLinecap: "round",
|
|
1505
1113
|
strokeLinejoin: "round"
|
|
1506
1114
|
},
|
|
1507
|
-
/* @__PURE__ */
|
|
1115
|
+
/* @__PURE__ */ React25.createElement("path", { d: "m15 18-6-6 6-6" })
|
|
1508
1116
|
)
|
|
1509
1117
|
),
|
|
1510
|
-
!hideCloseButton && /* @__PURE__ */
|
|
1118
|
+
!hideCloseButton && /* @__PURE__ */ React25.createElement(
|
|
1511
1119
|
DialogPrimitive.Close,
|
|
1512
1120
|
{
|
|
1513
1121
|
className: cn(
|
|
@@ -1515,7 +1123,7 @@ var DialogCarouselContent = React27.forwardRef(
|
|
|
1515
1123
|
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
|
|
1516
1124
|
)
|
|
1517
1125
|
},
|
|
1518
|
-
/* @__PURE__ */
|
|
1126
|
+
/* @__PURE__ */ React25.createElement(
|
|
1519
1127
|
"svg",
|
|
1520
1128
|
{
|
|
1521
1129
|
"aria-label": "Close Icon",
|
|
@@ -1524,7 +1132,7 @@ var DialogCarouselContent = React27.forwardRef(
|
|
|
1524
1132
|
fill: "currentColor",
|
|
1525
1133
|
viewBox: "0 0 20 20"
|
|
1526
1134
|
},
|
|
1527
|
-
/* @__PURE__ */
|
|
1135
|
+
/* @__PURE__ */ React25.createElement(
|
|
1528
1136
|
"path",
|
|
1529
1137
|
{
|
|
1530
1138
|
fillRule: "evenodd",
|
|
@@ -1533,7 +1141,7 @@ var DialogCarouselContent = React27.forwardRef(
|
|
|
1533
1141
|
}
|
|
1534
1142
|
)
|
|
1535
1143
|
),
|
|
1536
|
-
/* @__PURE__ */
|
|
1144
|
+
/* @__PURE__ */ React25.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
1537
1145
|
)
|
|
1538
1146
|
)
|
|
1539
1147
|
))
|
|
@@ -1541,7 +1149,7 @@ var DialogCarouselContent = React27.forwardRef(
|
|
|
1541
1149
|
var DialogHeader = ({
|
|
1542
1150
|
className,
|
|
1543
1151
|
...props
|
|
1544
|
-
}) => /* @__PURE__ */
|
|
1152
|
+
}) => /* @__PURE__ */ React25.createElement(
|
|
1545
1153
|
"div",
|
|
1546
1154
|
{
|
|
1547
1155
|
className: cn(
|
|
@@ -1551,7 +1159,7 @@ var DialogHeader = ({
|
|
|
1551
1159
|
...props
|
|
1552
1160
|
}
|
|
1553
1161
|
);
|
|
1554
|
-
var DialogTitle =
|
|
1162
|
+
var DialogTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
1555
1163
|
DialogPrimitive.Title,
|
|
1556
1164
|
{
|
|
1557
1165
|
ref,
|
|
@@ -1562,7 +1170,7 @@ var DialogTitle = React27.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1562
1170
|
...props
|
|
1563
1171
|
}
|
|
1564
1172
|
));
|
|
1565
|
-
var DialogDescription =
|
|
1173
|
+
var DialogDescription = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
1566
1174
|
DialogPrimitive.Description,
|
|
1567
1175
|
{
|
|
1568
1176
|
ref,
|
|
@@ -1576,7 +1184,7 @@ var DialogDescription = React27.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1576
1184
|
var DialogFooter = ({
|
|
1577
1185
|
className,
|
|
1578
1186
|
...props
|
|
1579
|
-
}) => /* @__PURE__ */
|
|
1187
|
+
}) => /* @__PURE__ */ React25.createElement(
|
|
1580
1188
|
"div",
|
|
1581
1189
|
{
|
|
1582
1190
|
className: cn(
|
|
@@ -1592,12 +1200,12 @@ var DialogCarousel = ({
|
|
|
1592
1200
|
children,
|
|
1593
1201
|
direction
|
|
1594
1202
|
}) => {
|
|
1595
|
-
|
|
1203
|
+
React25.useEffect(() => {
|
|
1596
1204
|
if (stepsApi) {
|
|
1597
1205
|
stepsApi.reInit();
|
|
1598
1206
|
}
|
|
1599
1207
|
}, [stepsApi, children]);
|
|
1600
|
-
return /* @__PURE__ */
|
|
1208
|
+
return /* @__PURE__ */ React25.createElement("div", { className: "hawa-overflow-hidden" }, /* @__PURE__ */ React25.createElement("div", { ref: stepsRef, dir: direction }, /* @__PURE__ */ React25.createElement(
|
|
1601
1209
|
"div",
|
|
1602
1210
|
{
|
|
1603
1211
|
className: "hawa-flex",
|
|
@@ -1605,7 +1213,7 @@ var DialogCarousel = ({
|
|
|
1605
1213
|
transition: "height 0.2s"
|
|
1606
1214
|
}
|
|
1607
1215
|
},
|
|
1608
|
-
|
|
1216
|
+
React25.Children.map(children, (child, index) => /* @__PURE__ */ React25.createElement(
|
|
1609
1217
|
"div",
|
|
1610
1218
|
{
|
|
1611
1219
|
className: cn(
|
|
@@ -1622,14 +1230,14 @@ var DialogSteps = ({
|
|
|
1622
1230
|
visibleStepRef,
|
|
1623
1231
|
children
|
|
1624
1232
|
}) => {
|
|
1625
|
-
const [dialogHeight, setDialogHeight] =
|
|
1626
|
-
|
|
1233
|
+
const [dialogHeight, setDialogHeight] = React25.useState(null);
|
|
1234
|
+
React25.useEffect(() => {
|
|
1627
1235
|
if (visibleStepRef.current) {
|
|
1628
1236
|
setDialogHeight(visibleStepRef.current.offsetHeight);
|
|
1629
1237
|
console.log("height is ", visibleStepRef.current.offsetHeight);
|
|
1630
1238
|
}
|
|
1631
1239
|
}, [currentStep, visibleStepRef]);
|
|
1632
|
-
return /* @__PURE__ */
|
|
1240
|
+
return /* @__PURE__ */ React25.createElement(
|
|
1633
1241
|
"div",
|
|
1634
1242
|
{
|
|
1635
1243
|
className: "hawa-relative hawa-overflow-clip",
|
|
@@ -1638,7 +1246,7 @@ var DialogSteps = ({
|
|
|
1638
1246
|
transition: "height 0.2s"
|
|
1639
1247
|
}
|
|
1640
1248
|
},
|
|
1641
|
-
|
|
1249
|
+
React25.Children.map(children, (child, index) => /* @__PURE__ */ React25.createElement(
|
|
1642
1250
|
"div",
|
|
1643
1251
|
{
|
|
1644
1252
|
ref: currentStep === `step-${index + 1}` ? visibleStepRef : null,
|
|
@@ -1656,7 +1264,7 @@ var DialogStep = ({
|
|
|
1656
1264
|
className,
|
|
1657
1265
|
stepRef
|
|
1658
1266
|
}) => {
|
|
1659
|
-
return /* @__PURE__ */
|
|
1267
|
+
return /* @__PURE__ */ React25.createElement(
|
|
1660
1268
|
"div",
|
|
1661
1269
|
{
|
|
1662
1270
|
id,
|
|
@@ -1667,7 +1275,7 @@ var DialogStep = ({
|
|
|
1667
1275
|
);
|
|
1668
1276
|
};
|
|
1669
1277
|
var DialogBody = ({ children, className }) => {
|
|
1670
|
-
return /* @__PURE__ */
|
|
1278
|
+
return /* @__PURE__ */ React25.createElement("div", { className: cn("hawa-py-6", className) }, children);
|
|
1671
1279
|
};
|
|
1672
1280
|
DialogBody.displayName = "DialogBody";
|
|
1673
1281
|
DialogStep.displayName = "DialogStep";
|
|
@@ -1693,7 +1301,7 @@ var import_prism_react_renderer = require("prism-react-renderer");
|
|
|
1693
1301
|
var import_react18 = require("react");
|
|
1694
1302
|
|
|
1695
1303
|
// components/elements/Toast.tsx
|
|
1696
|
-
var
|
|
1304
|
+
var React28 = __toESM(require("react"));
|
|
1697
1305
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
|
1698
1306
|
var import_class_variance_authority2 = require("class-variance-authority");
|
|
1699
1307
|
var toastVariants = (0, import_class_variance_authority2.cva)(
|
|
@@ -1717,7 +1325,7 @@ var toastVariants = (0, import_class_variance_authority2.cva)(
|
|
|
1717
1325
|
}
|
|
1718
1326
|
}
|
|
1719
1327
|
);
|
|
1720
|
-
var ToastViewport =
|
|
1328
|
+
var ToastViewport = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement(
|
|
1721
1329
|
ToastPrimitives.Viewport,
|
|
1722
1330
|
{
|
|
1723
1331
|
ref,
|
|
@@ -1729,8 +1337,8 @@ var ToastViewport = React30.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1729
1337
|
}
|
|
1730
1338
|
));
|
|
1731
1339
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
1732
|
-
var Toast =
|
|
1733
|
-
return /* @__PURE__ */
|
|
1340
|
+
var Toast = React28.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
|
1341
|
+
return /* @__PURE__ */ React28.createElement(
|
|
1734
1342
|
ToastPrimitives.Root,
|
|
1735
1343
|
{
|
|
1736
1344
|
ref,
|
|
@@ -1745,8 +1353,8 @@ var Toast = React30.forwardRef(({ className, variant, severity = "none", directi
|
|
|
1745
1353
|
);
|
|
1746
1354
|
});
|
|
1747
1355
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
1748
|
-
var ToastAction =
|
|
1749
|
-
return /* @__PURE__ */
|
|
1356
|
+
var ToastAction = React28.forwardRef(({ className, ...props }, ref) => {
|
|
1357
|
+
return /* @__PURE__ */ React28.createElement(
|
|
1750
1358
|
ToastPrimitives.Action,
|
|
1751
1359
|
{
|
|
1752
1360
|
ref,
|
|
@@ -1763,7 +1371,7 @@ var ToastAction = React30.forwardRef(({ className, ...props }, ref) => {
|
|
|
1763
1371
|
);
|
|
1764
1372
|
});
|
|
1765
1373
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
1766
|
-
var ToastClose =
|
|
1374
|
+
var ToastClose = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement(
|
|
1767
1375
|
ToastPrimitives.Close,
|
|
1768
1376
|
{
|
|
1769
1377
|
ref,
|
|
@@ -1774,7 +1382,7 @@ var ToastClose = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1774
1382
|
"toast-close": "",
|
|
1775
1383
|
...props
|
|
1776
1384
|
},
|
|
1777
|
-
/* @__PURE__ */
|
|
1385
|
+
/* @__PURE__ */ React28.createElement(
|
|
1778
1386
|
"svg",
|
|
1779
1387
|
{
|
|
1780
1388
|
"aria-label": "Close Icon",
|
|
@@ -1783,7 +1391,7 @@ var ToastClose = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1783
1391
|
fill: "currentColor",
|
|
1784
1392
|
viewBox: "0 0 20 20"
|
|
1785
1393
|
},
|
|
1786
|
-
/* @__PURE__ */
|
|
1394
|
+
/* @__PURE__ */ React28.createElement(
|
|
1787
1395
|
"path",
|
|
1788
1396
|
{
|
|
1789
1397
|
fillRule: "evenodd",
|
|
@@ -1794,7 +1402,7 @@ var ToastClose = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1794
1402
|
)
|
|
1795
1403
|
));
|
|
1796
1404
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
1797
|
-
var ToastTitle =
|
|
1405
|
+
var ToastTitle = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement(
|
|
1798
1406
|
ToastPrimitives.Title,
|
|
1799
1407
|
{
|
|
1800
1408
|
ref,
|
|
@@ -1806,7 +1414,7 @@ var ToastTitle = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1806
1414
|
}
|
|
1807
1415
|
));
|
|
1808
1416
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
1809
|
-
var ToastDescription =
|
|
1417
|
+
var ToastDescription = React28.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React28.createElement(
|
|
1810
1418
|
ToastPrimitives.Description,
|
|
1811
1419
|
{
|
|
1812
1420
|
ref,
|
|
@@ -1820,7 +1428,7 @@ ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
|
1820
1428
|
var import_react20 = __toESM(require("react"));
|
|
1821
1429
|
|
|
1822
1430
|
// components/hooks/useToast.ts
|
|
1823
|
-
var
|
|
1431
|
+
var React29 = __toESM(require("react"));
|
|
1824
1432
|
|
|
1825
1433
|
// components/elements/Chip.tsx
|
|
1826
1434
|
var import_react21 = __toESM(require("react"));
|
|
@@ -1907,9 +1515,9 @@ var Chip = import_react21.default.forwardRef(
|
|
|
1907
1515
|
var import_react22 = __toESM(require("react"));
|
|
1908
1516
|
|
|
1909
1517
|
// components/elements/Popover.tsx
|
|
1910
|
-
var
|
|
1518
|
+
var React33 = __toESM(require("react"));
|
|
1911
1519
|
var PopoverPrimitive2 = __toESM(require("@radix-ui/react-popover"));
|
|
1912
|
-
var PopoverContent =
|
|
1520
|
+
var PopoverContent = React33.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React33.createElement(PopoverPrimitive2.Portal, null, /* @__PURE__ */ React33.createElement(
|
|
1913
1521
|
PopoverPrimitive2.Content,
|
|
1914
1522
|
{
|
|
1915
1523
|
ref,
|
|
@@ -1925,6 +1533,186 @@ var PopoverContent = React35.forwardRef(({ className, align = "center", sideOffs
|
|
|
1925
1533
|
PopoverContent.displayName = PopoverPrimitive2.Content.displayName;
|
|
1926
1534
|
var PopoverTrigger = PopoverPrimitive2.Trigger;
|
|
1927
1535
|
|
|
1536
|
+
// components/elements/DropdownMenu.tsx
|
|
1537
|
+
var React34 = __toESM(require("react"));
|
|
1538
|
+
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
|
1539
|
+
var DropdownMenuSubTrigger = React34.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React34.createElement(
|
|
1540
|
+
DropdownMenuPrimitive.SubTrigger,
|
|
1541
|
+
{
|
|
1542
|
+
ref,
|
|
1543
|
+
className: cn(
|
|
1544
|
+
"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",
|
|
1545
|
+
inset && "hawa-pl-8",
|
|
1546
|
+
className
|
|
1547
|
+
),
|
|
1548
|
+
...props
|
|
1549
|
+
},
|
|
1550
|
+
/* @__PURE__ */ React34.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, children),
|
|
1551
|
+
" ",
|
|
1552
|
+
/* @__PURE__ */ React34.createElement(
|
|
1553
|
+
"svg",
|
|
1554
|
+
{
|
|
1555
|
+
"aria-label": "Chevron Right Icon",
|
|
1556
|
+
stroke: "currentColor",
|
|
1557
|
+
fill: "currentColor",
|
|
1558
|
+
strokeWidth: "0",
|
|
1559
|
+
viewBox: "0 0 16 16",
|
|
1560
|
+
height: "1em",
|
|
1561
|
+
width: "1em",
|
|
1562
|
+
className: cn(props.dir === "rtl" ? "hawa-rotate-180" : "")
|
|
1563
|
+
},
|
|
1564
|
+
/* @__PURE__ */ React34.createElement(
|
|
1565
|
+
"path",
|
|
1566
|
+
{
|
|
1567
|
+
fillRule: "evenodd",
|
|
1568
|
+
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"
|
|
1569
|
+
}
|
|
1570
|
+
)
|
|
1571
|
+
)
|
|
1572
|
+
));
|
|
1573
|
+
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1574
|
+
var DropdownMenuSubContent = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React34.createElement(
|
|
1575
|
+
DropdownMenuPrimitive.SubContent,
|
|
1576
|
+
{
|
|
1577
|
+
ref,
|
|
1578
|
+
className: cn(
|
|
1579
|
+
"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",
|
|
1580
|
+
className
|
|
1581
|
+
),
|
|
1582
|
+
...props
|
|
1583
|
+
}
|
|
1584
|
+
));
|
|
1585
|
+
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1586
|
+
var DropdownMenuContent = React34.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React34.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React34.createElement(
|
|
1587
|
+
DropdownMenuPrimitive.Content,
|
|
1588
|
+
{
|
|
1589
|
+
ref,
|
|
1590
|
+
sideOffset,
|
|
1591
|
+
className: cn(
|
|
1592
|
+
"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",
|
|
1593
|
+
className
|
|
1594
|
+
),
|
|
1595
|
+
...props
|
|
1596
|
+
}
|
|
1597
|
+
)));
|
|
1598
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1599
|
+
var DropdownMenuItem = React34.forwardRef(({ className, inset, badged, slug, ...props }, ref) => {
|
|
1600
|
+
return /* @__PURE__ */ React34.createElement("a", { href: slug }, /* @__PURE__ */ React34.createElement(
|
|
1601
|
+
DropdownMenuPrimitive.Item,
|
|
1602
|
+
{
|
|
1603
|
+
disabled: props.disabled,
|
|
1604
|
+
ref,
|
|
1605
|
+
className: cn(
|
|
1606
|
+
"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",
|
|
1607
|
+
inset && "hawa-pl-8",
|
|
1608
|
+
props.end && Array.isArray(props.children) && props.children[1] && "hawa-gap-6",
|
|
1609
|
+
className
|
|
1610
|
+
),
|
|
1611
|
+
...props
|
|
1612
|
+
},
|
|
1613
|
+
/* @__PURE__ */ React34.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 " }, props.children),
|
|
1614
|
+
props.end && props.end,
|
|
1615
|
+
!props.end && props.shortcut && /* @__PURE__ */ React34.createElement(DropdownMenuShortcut, null, props.shortcut),
|
|
1616
|
+
!props.end && badged && /* @__PURE__ */ React34.createElement("div", { className: "hawa-h-3 hawa-w-3 hawa-rounded-full hawa-bg-red-500" })
|
|
1617
|
+
));
|
|
1618
|
+
});
|
|
1619
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
1620
|
+
var DropdownMenuCheckboxItem = React34.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React34.createElement(
|
|
1621
|
+
DropdownMenuPrimitive.CheckboxItem,
|
|
1622
|
+
{
|
|
1623
|
+
ref,
|
|
1624
|
+
className: cn(
|
|
1625
|
+
"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",
|
|
1626
|
+
className
|
|
1627
|
+
),
|
|
1628
|
+
checked,
|
|
1629
|
+
...props
|
|
1630
|
+
},
|
|
1631
|
+
/* @__PURE__ */ React34.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React34.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React34.createElement(
|
|
1632
|
+
"svg",
|
|
1633
|
+
{
|
|
1634
|
+
"aria-label": "Check Mark",
|
|
1635
|
+
stroke: "currentColor",
|
|
1636
|
+
fill: "currentColor",
|
|
1637
|
+
strokeWidth: "0",
|
|
1638
|
+
viewBox: "0 0 512 512",
|
|
1639
|
+
height: "0.60em",
|
|
1640
|
+
width: "0.60em"
|
|
1641
|
+
},
|
|
1642
|
+
/* @__PURE__ */ React34.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
|
1643
|
+
), " ")),
|
|
1644
|
+
children
|
|
1645
|
+
));
|
|
1646
|
+
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
1647
|
+
var DropdownMenuRadioItem = React34.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React34.createElement(
|
|
1648
|
+
DropdownMenuPrimitive.RadioItem,
|
|
1649
|
+
{
|
|
1650
|
+
ref,
|
|
1651
|
+
className: cn(
|
|
1652
|
+
"hawa-relative hawa-flex hawa-cursor-pointer 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",
|
|
1653
|
+
className
|
|
1654
|
+
),
|
|
1655
|
+
...props
|
|
1656
|
+
},
|
|
1657
|
+
/* @__PURE__ */ React34.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React34.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React34.createElement(
|
|
1658
|
+
"svg",
|
|
1659
|
+
{
|
|
1660
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1661
|
+
width: "24",
|
|
1662
|
+
"aria-label": "Circle",
|
|
1663
|
+
height: "24",
|
|
1664
|
+
viewBox: "0 0 24 24",
|
|
1665
|
+
fill: "none",
|
|
1666
|
+
stroke: "currentColor",
|
|
1667
|
+
strokeWidth: "2",
|
|
1668
|
+
strokeLinecap: "round",
|
|
1669
|
+
strokeLinejoin: "round",
|
|
1670
|
+
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
|
1671
|
+
},
|
|
1672
|
+
/* @__PURE__ */ React34.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
|
1673
|
+
))),
|
|
1674
|
+
children
|
|
1675
|
+
));
|
|
1676
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
1677
|
+
var DropdownMenuLabel = React34.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React34.createElement(
|
|
1678
|
+
DropdownMenuPrimitive.Label,
|
|
1679
|
+
{
|
|
1680
|
+
ref,
|
|
1681
|
+
className: cn(
|
|
1682
|
+
"hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-font-semibold",
|
|
1683
|
+
inset && "hawa-pl-8",
|
|
1684
|
+
className
|
|
1685
|
+
),
|
|
1686
|
+
...props
|
|
1687
|
+
}
|
|
1688
|
+
));
|
|
1689
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
1690
|
+
var DropdownMenuSeparator = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React34.createElement(
|
|
1691
|
+
DropdownMenuPrimitive.Separator,
|
|
1692
|
+
{
|
|
1693
|
+
ref,
|
|
1694
|
+
className: cn("hawa--mx-1 hawa-my-1 hawa-h-px hawa-bg-muted", className),
|
|
1695
|
+
...props
|
|
1696
|
+
}
|
|
1697
|
+
));
|
|
1698
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
1699
|
+
var DropdownMenuShortcut = ({
|
|
1700
|
+
className,
|
|
1701
|
+
...props
|
|
1702
|
+
}) => {
|
|
1703
|
+
return /* @__PURE__ */ React34.createElement(
|
|
1704
|
+
"span",
|
|
1705
|
+
{
|
|
1706
|
+
className: cn(
|
|
1707
|
+
"hawa-text-xs hawa-tracking-widest hawa-opacity-60",
|
|
1708
|
+
className
|
|
1709
|
+
),
|
|
1710
|
+
...props
|
|
1711
|
+
}
|
|
1712
|
+
);
|
|
1713
|
+
};
|
|
1714
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1715
|
+
|
|
1928
1716
|
// components/elements/DestroyableCard.tsx
|
|
1929
1717
|
var import_react23 = __toESM(require("react"));
|
|
1930
1718
|
|
|
@@ -1944,12 +1732,12 @@ var import_react26 = __toESM(require("react"));
|
|
|
1944
1732
|
var import_react27 = __toESM(require("react"));
|
|
1945
1733
|
|
|
1946
1734
|
// components/elements/DataTable.tsx
|
|
1947
|
-
var
|
|
1735
|
+
var React41 = __toESM(require("react"));
|
|
1948
1736
|
var import_react_table = require("@tanstack/react-table");
|
|
1949
1737
|
|
|
1950
1738
|
// components/elements/Table.tsx
|
|
1951
|
-
var
|
|
1952
|
-
var Table =
|
|
1739
|
+
var React40 = __toESM(require("react"));
|
|
1740
|
+
var Table = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React40.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React40.createElement(
|
|
1953
1741
|
"table",
|
|
1954
1742
|
{
|
|
1955
1743
|
ref,
|
|
@@ -1958,7 +1746,7 @@ var Table = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
1958
1746
|
}
|
|
1959
1747
|
)));
|
|
1960
1748
|
Table.displayName = "Table";
|
|
1961
|
-
var TableHeader =
|
|
1749
|
+
var TableHeader = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React40.createElement(
|
|
1962
1750
|
"thead",
|
|
1963
1751
|
{
|
|
1964
1752
|
ref,
|
|
@@ -1967,8 +1755,8 @@ var TableHeader = React41.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1967
1755
|
}
|
|
1968
1756
|
));
|
|
1969
1757
|
TableHeader.displayName = "TableHeader";
|
|
1970
|
-
var TableHead =
|
|
1971
|
-
({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */
|
|
1758
|
+
var TableHead = React40.forwardRef(
|
|
1759
|
+
({ className, condensed, clickable, dir, ...props }, ref) => /* @__PURE__ */ React40.createElement(
|
|
1972
1760
|
"th",
|
|
1973
1761
|
{
|
|
1974
1762
|
ref,
|
|
@@ -1987,9 +1775,9 @@ var TableHead = React41.forwardRef(
|
|
|
1987
1775
|
)
|
|
1988
1776
|
);
|
|
1989
1777
|
TableHead.displayName = "TableHead";
|
|
1990
|
-
var TableBody =
|
|
1778
|
+
var TableBody = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React40.createElement("tbody", { ref, className: cn("hawa-border-none", className), ...props }));
|
|
1991
1779
|
TableBody.displayName = "TableBody";
|
|
1992
|
-
var TableFooter =
|
|
1780
|
+
var TableFooter = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React40.createElement(
|
|
1993
1781
|
"tfoot",
|
|
1994
1782
|
{
|
|
1995
1783
|
ref,
|
|
@@ -2001,7 +1789,7 @@ var TableFooter = React41.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2001
1789
|
}
|
|
2002
1790
|
));
|
|
2003
1791
|
TableFooter.displayName = "TableFooter";
|
|
2004
|
-
var TableRow =
|
|
1792
|
+
var TableRow = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React40.createElement(
|
|
2005
1793
|
"tr",
|
|
2006
1794
|
{
|
|
2007
1795
|
ref,
|
|
@@ -2015,14 +1803,14 @@ var TableRow = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2015
1803
|
}
|
|
2016
1804
|
));
|
|
2017
1805
|
TableRow.displayName = "TableRow";
|
|
2018
|
-
var TableCell =
|
|
1806
|
+
var TableCell = React40.forwardRef(
|
|
2019
1807
|
({ className, enablePadding = true, padding = "default", ...props }, ref) => {
|
|
2020
1808
|
let paddingStyles = {
|
|
2021
1809
|
condensed: "hawa-p-0 hawa-px-4",
|
|
2022
1810
|
default: "hawa-p-4",
|
|
2023
1811
|
noPadding: "hawa-p-0"
|
|
2024
1812
|
};
|
|
2025
|
-
return /* @__PURE__ */
|
|
1813
|
+
return /* @__PURE__ */ React40.createElement(
|
|
2026
1814
|
"td",
|
|
2027
1815
|
{
|
|
2028
1816
|
ref,
|
|
@@ -2044,7 +1832,7 @@ var TableCell = React41.forwardRef(
|
|
|
2044
1832
|
}
|
|
2045
1833
|
);
|
|
2046
1834
|
TableCell.displayName = "TableCell";
|
|
2047
|
-
var TableCaption =
|
|
1835
|
+
var TableCaption = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React40.createElement(
|
|
2048
1836
|
"caption",
|
|
2049
1837
|
{
|
|
2050
1838
|
ref,
|
|
@@ -2058,16 +1846,16 @@ var TableCaption = React41.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2058
1846
|
TableCaption.displayName = "TableCaption";
|
|
2059
1847
|
|
|
2060
1848
|
// components/elements/SimpleTable.tsx
|
|
2061
|
-
var
|
|
1849
|
+
var React42 = __toESM(require("react"));
|
|
2062
1850
|
var import_react_table2 = require("@tanstack/react-table");
|
|
2063
1851
|
|
|
2064
1852
|
// components/elements/Separator.tsx
|
|
2065
|
-
var
|
|
1853
|
+
var React43 = __toESM(require("react"));
|
|
2066
1854
|
|
|
2067
1855
|
// components/elements/Progress.tsx
|
|
2068
|
-
var
|
|
1856
|
+
var React44 = __toESM(require("react"));
|
|
2069
1857
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
|
2070
|
-
var Progress =
|
|
1858
|
+
var Progress = React44.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React44.createElement(
|
|
2071
1859
|
ProgressPrimitive.Root,
|
|
2072
1860
|
{
|
|
2073
1861
|
ref,
|
|
@@ -2077,7 +1865,7 @@ var Progress = React45.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
2077
1865
|
),
|
|
2078
1866
|
...props
|
|
2079
1867
|
},
|
|
2080
|
-
/* @__PURE__ */
|
|
1868
|
+
/* @__PURE__ */ React44.createElement(
|
|
2081
1869
|
ProgressPrimitive.Indicator,
|
|
2082
1870
|
{
|
|
2083
1871
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
|
@@ -2097,10 +1885,10 @@ var import_react29 = __toESM(require("react"));
|
|
|
2097
1885
|
var import_react30 = __toESM(require("react"));
|
|
2098
1886
|
|
|
2099
1887
|
// components/elements/Tabs.tsx
|
|
2100
|
-
var
|
|
1888
|
+
var React48 = __toESM(require("react"));
|
|
2101
1889
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
|
2102
|
-
var TabsContext =
|
|
2103
|
-
var Tabs =
|
|
1890
|
+
var TabsContext = React48.createContext({ orientation: "vertical" });
|
|
1891
|
+
var Tabs = React48.forwardRef(({ className, orientation, ...props }, ref) => /* @__PURE__ */ React48.createElement(
|
|
2104
1892
|
TabsPrimitive.Root,
|
|
2105
1893
|
{
|
|
2106
1894
|
ref,
|
|
@@ -2111,12 +1899,12 @@ var Tabs = React49.forwardRef(({ className, orientation, ...props }, ref) => /*
|
|
|
2111
1899
|
),
|
|
2112
1900
|
...props
|
|
2113
1901
|
},
|
|
2114
|
-
/* @__PURE__ */
|
|
1902
|
+
/* @__PURE__ */ React48.createElement(TabsContext.Provider, { value: { orientation } }, props.children)
|
|
2115
1903
|
));
|
|
2116
1904
|
Tabs.displayName = TabsPrimitive.Root.displayName;
|
|
2117
|
-
var TabsList =
|
|
2118
|
-
const { orientation } =
|
|
2119
|
-
return /* @__PURE__ */
|
|
1905
|
+
var TabsList = React48.forwardRef(({ className, ...props }, ref) => {
|
|
1906
|
+
const { orientation } = React48.useContext(TabsContext);
|
|
1907
|
+
return /* @__PURE__ */ React48.createElement(
|
|
2120
1908
|
TabsPrimitive.List,
|
|
2121
1909
|
{
|
|
2122
1910
|
ref,
|
|
@@ -2130,8 +1918,8 @@ var TabsList = React49.forwardRef(({ className, ...props }, ref) => {
|
|
|
2130
1918
|
);
|
|
2131
1919
|
});
|
|
2132
1920
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
2133
|
-
var TabsTrigger =
|
|
2134
|
-
return /* @__PURE__ */
|
|
1921
|
+
var TabsTrigger = React48.forwardRef(({ className, chipProps, ...props }, ref) => {
|
|
1922
|
+
return /* @__PURE__ */ React48.createElement(
|
|
2135
1923
|
TabsPrimitive.Trigger,
|
|
2136
1924
|
{
|
|
2137
1925
|
ref,
|
|
@@ -2142,11 +1930,11 @@ var TabsTrigger = React49.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
|
2142
1930
|
...props
|
|
2143
1931
|
},
|
|
2144
1932
|
props.children,
|
|
2145
|
-
chipProps && /* @__PURE__ */
|
|
1933
|
+
chipProps && /* @__PURE__ */ React48.createElement(Chip, { ...chipProps })
|
|
2146
1934
|
);
|
|
2147
1935
|
});
|
|
2148
1936
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
2149
|
-
var TabsContent =
|
|
1937
|
+
var TabsContent = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React48.createElement(
|
|
2150
1938
|
TabsPrimitive.Content,
|
|
2151
1939
|
{
|
|
2152
1940
|
ref,
|
|
@@ -2160,21 +1948,21 @@ var TabsContent = React49.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2160
1948
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
2161
1949
|
|
|
2162
1950
|
// components/elements/ScrollArea.tsx
|
|
2163
|
-
var
|
|
1951
|
+
var React49 = __toESM(require("react"));
|
|
2164
1952
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
|
2165
|
-
var ScrollArea =
|
|
1953
|
+
var ScrollArea = React49.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React49.createElement(
|
|
2166
1954
|
ScrollAreaPrimitive.Root,
|
|
2167
1955
|
{
|
|
2168
1956
|
ref,
|
|
2169
1957
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
|
2170
1958
|
...props
|
|
2171
1959
|
},
|
|
2172
|
-
/* @__PURE__ */
|
|
2173
|
-
/* @__PURE__ */
|
|
2174
|
-
/* @__PURE__ */
|
|
1960
|
+
/* @__PURE__ */ React49.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
|
1961
|
+
/* @__PURE__ */ React49.createElement(ScrollBar, { orientation }),
|
|
1962
|
+
/* @__PURE__ */ React49.createElement(ScrollAreaPrimitive.Corner, null)
|
|
2175
1963
|
));
|
|
2176
1964
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
2177
|
-
var ScrollBar =
|
|
1965
|
+
var ScrollBar = React49.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React49.createElement(
|
|
2178
1966
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
2179
1967
|
{
|
|
2180
1968
|
ref,
|
|
@@ -2187,7 +1975,7 @@ var ScrollBar = React50.forwardRef(({ className, orientation = "vertical", ...pr
|
|
|
2187
1975
|
),
|
|
2188
1976
|
...props
|
|
2189
1977
|
},
|
|
2190
|
-
/* @__PURE__ */
|
|
1978
|
+
/* @__PURE__ */ React49.createElement(
|
|
2191
1979
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
2192
1980
|
{
|
|
2193
1981
|
className: cn(
|
|
@@ -2203,9 +1991,9 @@ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
|
2203
1991
|
var import_react31 = __toESM(require("react"));
|
|
2204
1992
|
|
|
2205
1993
|
// components/elements/Command.tsx
|
|
2206
|
-
var
|
|
1994
|
+
var React51 = __toESM(require("react"));
|
|
2207
1995
|
var import_cmdk = require("cmdk");
|
|
2208
|
-
var Command =
|
|
1996
|
+
var Command = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
|
2209
1997
|
import_cmdk.Command,
|
|
2210
1998
|
{
|
|
2211
1999
|
ref,
|
|
@@ -2217,13 +2005,13 @@ var Command = React52.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2217
2005
|
}
|
|
2218
2006
|
));
|
|
2219
2007
|
Command.displayName = import_cmdk.Command.displayName;
|
|
2220
|
-
var CommandInput =
|
|
2008
|
+
var CommandInput = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
|
2221
2009
|
"div",
|
|
2222
2010
|
{
|
|
2223
2011
|
className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
|
|
2224
2012
|
"cmdk-input-wrapper": ""
|
|
2225
2013
|
},
|
|
2226
|
-
/* @__PURE__ */
|
|
2014
|
+
/* @__PURE__ */ React51.createElement(
|
|
2227
2015
|
"svg",
|
|
2228
2016
|
{
|
|
2229
2017
|
"aria-label": "Search Icon",
|
|
@@ -2238,10 +2026,10 @@ var CommandInput = React52.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2238
2026
|
strokeLinejoin: "round",
|
|
2239
2027
|
className: "hawa-icon hawa-mr-2 hawa-shrink-0 hawa-opacity-50"
|
|
2240
2028
|
},
|
|
2241
|
-
/* @__PURE__ */
|
|
2242
|
-
/* @__PURE__ */
|
|
2029
|
+
/* @__PURE__ */ React51.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
|
2030
|
+
/* @__PURE__ */ React51.createElement("path", { d: "m21 21-4.3-4.3" })
|
|
2243
2031
|
),
|
|
2244
|
-
/* @__PURE__ */
|
|
2032
|
+
/* @__PURE__ */ React51.createElement(
|
|
2245
2033
|
import_cmdk.Command.Input,
|
|
2246
2034
|
{
|
|
2247
2035
|
ref,
|
|
@@ -2254,7 +2042,7 @@ var CommandInput = React52.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2254
2042
|
)
|
|
2255
2043
|
));
|
|
2256
2044
|
CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
|
2257
|
-
var CommandList =
|
|
2045
|
+
var CommandList = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
|
2258
2046
|
import_cmdk.Command.List,
|
|
2259
2047
|
{
|
|
2260
2048
|
ref,
|
|
@@ -2266,7 +2054,7 @@ var CommandList = React52.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2266
2054
|
}
|
|
2267
2055
|
));
|
|
2268
2056
|
CommandList.displayName = import_cmdk.Command.List.displayName;
|
|
2269
|
-
var CommandEmpty =
|
|
2057
|
+
var CommandEmpty = React51.forwardRef((props, ref) => /* @__PURE__ */ React51.createElement(
|
|
2270
2058
|
import_cmdk.Command.Empty,
|
|
2271
2059
|
{
|
|
2272
2060
|
ref,
|
|
@@ -2275,7 +2063,7 @@ var CommandEmpty = React52.forwardRef((props, ref) => /* @__PURE__ */ React52.cr
|
|
|
2275
2063
|
}
|
|
2276
2064
|
));
|
|
2277
2065
|
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
2278
|
-
var CommandGroup =
|
|
2066
|
+
var CommandGroup = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
|
2279
2067
|
import_cmdk.Command.Group,
|
|
2280
2068
|
{
|
|
2281
2069
|
ref,
|
|
@@ -2287,7 +2075,7 @@ var CommandGroup = React52.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2287
2075
|
}
|
|
2288
2076
|
));
|
|
2289
2077
|
CommandGroup.displayName = import_cmdk.Command.Group.displayName;
|
|
2290
|
-
var CommandSeparator =
|
|
2078
|
+
var CommandSeparator = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
|
2291
2079
|
import_cmdk.Command.Separator,
|
|
2292
2080
|
{
|
|
2293
2081
|
ref,
|
|
@@ -2296,7 +2084,7 @@ var CommandSeparator = React52.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2296
2084
|
}
|
|
2297
2085
|
));
|
|
2298
2086
|
CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
|
|
2299
|
-
var CommandItem =
|
|
2087
|
+
var CommandItem = React51.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React51.createElement(
|
|
2300
2088
|
import_cmdk.Command.Item,
|
|
2301
2089
|
{
|
|
2302
2090
|
ref,
|
|
@@ -2312,7 +2100,7 @@ var CommandShortcut = ({
|
|
|
2312
2100
|
className,
|
|
2313
2101
|
...props
|
|
2314
2102
|
}) => {
|
|
2315
|
-
return /* @__PURE__ */
|
|
2103
|
+
return /* @__PURE__ */ React51.createElement(
|
|
2316
2104
|
"span",
|
|
2317
2105
|
{
|
|
2318
2106
|
className: cn(
|
|
@@ -2332,11 +2120,11 @@ var import_react32 = __toESM(require("react"));
|
|
|
2332
2120
|
var import_react33 = __toESM(require("react"));
|
|
2333
2121
|
|
|
2334
2122
|
// components/elements/Sheet.tsx
|
|
2335
|
-
var
|
|
2123
|
+
var React54 = __toESM(require("react"));
|
|
2336
2124
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
2337
2125
|
var import_class_variance_authority3 = require("class-variance-authority");
|
|
2338
2126
|
var SheetPortal = SheetPrimitive.Portal;
|
|
2339
|
-
var SheetOverlay =
|
|
2127
|
+
var SheetOverlay = React54.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React54.createElement(
|
|
2340
2128
|
SheetPrimitive.Overlay,
|
|
2341
2129
|
{
|
|
2342
2130
|
className: cn(
|
|
@@ -2363,8 +2151,8 @@ var sheetVariants = (0, import_class_variance_authority3.cva)(
|
|
|
2363
2151
|
}
|
|
2364
2152
|
}
|
|
2365
2153
|
);
|
|
2366
|
-
var SheetContent =
|
|
2367
|
-
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */
|
|
2154
|
+
var SheetContent = React54.forwardRef(
|
|
2155
|
+
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React54.createElement(SheetPortal, null, /* @__PURE__ */ React54.createElement(SheetOverlay, null), /* @__PURE__ */ React54.createElement(
|
|
2368
2156
|
SheetPrimitive.Content,
|
|
2369
2157
|
{
|
|
2370
2158
|
ref,
|
|
@@ -2377,7 +2165,7 @@ var SheetContent = React55.forwardRef(
|
|
|
2377
2165
|
...props
|
|
2378
2166
|
},
|
|
2379
2167
|
children,
|
|
2380
|
-
!hideCloseButton && /* @__PURE__ */
|
|
2168
|
+
!hideCloseButton && /* @__PURE__ */ React54.createElement(
|
|
2381
2169
|
SheetPrimitive.Close,
|
|
2382
2170
|
{
|
|
2383
2171
|
className: cn(
|
|
@@ -2389,7 +2177,7 @@ var SheetContent = React55.forwardRef(
|
|
|
2389
2177
|
}
|
|
2390
2178
|
)
|
|
2391
2179
|
},
|
|
2392
|
-
/* @__PURE__ */
|
|
2180
|
+
/* @__PURE__ */ React54.createElement(
|
|
2393
2181
|
"svg",
|
|
2394
2182
|
{
|
|
2395
2183
|
"aria-label": "Close Icon",
|
|
@@ -2398,7 +2186,7 @@ var SheetContent = React55.forwardRef(
|
|
|
2398
2186
|
fill: "currentColor",
|
|
2399
2187
|
viewBox: "0 0 20 20"
|
|
2400
2188
|
},
|
|
2401
|
-
/* @__PURE__ */
|
|
2189
|
+
/* @__PURE__ */ React54.createElement(
|
|
2402
2190
|
"path",
|
|
2403
2191
|
{
|
|
2404
2192
|
fillRule: "evenodd",
|
|
@@ -2407,14 +2195,14 @@ var SheetContent = React55.forwardRef(
|
|
|
2407
2195
|
}
|
|
2408
2196
|
)
|
|
2409
2197
|
),
|
|
2410
|
-
/* @__PURE__ */
|
|
2198
|
+
/* @__PURE__ */ React54.createElement("span", { className: "hawa-sr-only" }, "Close")
|
|
2411
2199
|
)
|
|
2412
2200
|
))
|
|
2413
2201
|
);
|
|
2414
2202
|
var SheetHeader = ({
|
|
2415
2203
|
className,
|
|
2416
2204
|
...props
|
|
2417
|
-
}) => /* @__PURE__ */
|
|
2205
|
+
}) => /* @__PURE__ */ React54.createElement(
|
|
2418
2206
|
"div",
|
|
2419
2207
|
{
|
|
2420
2208
|
className: cn(
|
|
@@ -2427,7 +2215,7 @@ var SheetHeader = ({
|
|
|
2427
2215
|
var SheetFooter = ({
|
|
2428
2216
|
className,
|
|
2429
2217
|
...props
|
|
2430
|
-
}) => /* @__PURE__ */
|
|
2218
|
+
}) => /* @__PURE__ */ React54.createElement(
|
|
2431
2219
|
"div",
|
|
2432
2220
|
{
|
|
2433
2221
|
className: cn(
|
|
@@ -2437,7 +2225,7 @@ var SheetFooter = ({
|
|
|
2437
2225
|
...props
|
|
2438
2226
|
}
|
|
2439
2227
|
);
|
|
2440
|
-
var SheetTitle =
|
|
2228
|
+
var SheetTitle = React54.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React54.createElement(
|
|
2441
2229
|
SheetPrimitive.Title,
|
|
2442
2230
|
{
|
|
2443
2231
|
ref,
|
|
@@ -2448,7 +2236,7 @@ var SheetTitle = React55.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2448
2236
|
...props
|
|
2449
2237
|
}
|
|
2450
2238
|
));
|
|
2451
|
-
var SheetDescription =
|
|
2239
|
+
var SheetDescription = React54.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React54.createElement(
|
|
2452
2240
|
SheetPrimitive.Description,
|
|
2453
2241
|
{
|
|
2454
2242
|
ref,
|
|
@@ -2575,13 +2363,13 @@ var ProgressCircle = import_react34.default.forwardRef((props, ref) => {
|
|
|
2575
2363
|
ProgressCircle.displayName = "ProgressCircle";
|
|
2576
2364
|
|
|
2577
2365
|
// components/elements/NavigationMenu.tsx
|
|
2578
|
-
var
|
|
2366
|
+
var React56 = __toESM(require("react"));
|
|
2579
2367
|
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"));
|
|
2580
2368
|
var import_class_variance_authority4 = require("class-variance-authority");
|
|
2581
2369
|
var navigationMenuTriggerStyle = (0, import_class_variance_authority4.cva)(
|
|
2582
2370
|
"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 "
|
|
2583
2371
|
);
|
|
2584
|
-
var NavigationMenuRoot =
|
|
2372
|
+
var NavigationMenuRoot = React56.forwardRef(({ className, children, viewportClassNames, ...props }, ref) => /* @__PURE__ */ React56.createElement(
|
|
2585
2373
|
NavigationMenuPrimitive.Root,
|
|
2586
2374
|
{
|
|
2587
2375
|
ref,
|
|
@@ -2593,9 +2381,9 @@ var NavigationMenuRoot = React57.forwardRef(({ className, children, viewportClas
|
|
|
2593
2381
|
...props
|
|
2594
2382
|
},
|
|
2595
2383
|
children,
|
|
2596
|
-
/* @__PURE__ */
|
|
2384
|
+
/* @__PURE__ */ React56.createElement(NavigationMenuViewport, { className: viewportClassNames })
|
|
2597
2385
|
));
|
|
2598
|
-
var NavigationMenuList =
|
|
2386
|
+
var NavigationMenuList = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React56.createElement(
|
|
2599
2387
|
NavigationMenuPrimitive.List,
|
|
2600
2388
|
{
|
|
2601
2389
|
ref,
|
|
@@ -2606,7 +2394,7 @@ var NavigationMenuList = React57.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2606
2394
|
...props
|
|
2607
2395
|
}
|
|
2608
2396
|
));
|
|
2609
|
-
var NavigationMenuTrigger =
|
|
2397
|
+
var NavigationMenuTrigger = React56.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React56.createElement(
|
|
2610
2398
|
NavigationMenuPrimitive.Trigger,
|
|
2611
2399
|
{
|
|
2612
2400
|
ref,
|
|
@@ -2614,7 +2402,7 @@ var NavigationMenuTrigger = React57.forwardRef(({ className, children, ...props
|
|
|
2614
2402
|
...props
|
|
2615
2403
|
},
|
|
2616
2404
|
children,
|
|
2617
|
-
/* @__PURE__ */
|
|
2405
|
+
/* @__PURE__ */ React56.createElement(
|
|
2618
2406
|
"svg",
|
|
2619
2407
|
{
|
|
2620
2408
|
"aria-label": "Chevron Icon",
|
|
@@ -2630,10 +2418,10 @@ var NavigationMenuTrigger = React57.forwardRef(({ className, children, ...props
|
|
|
2630
2418
|
"aria-hidden": "true",
|
|
2631
2419
|
className: "hawa-icon hawa-relative hawa-top-[1px] hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
|
2632
2420
|
},
|
|
2633
|
-
/* @__PURE__ */
|
|
2421
|
+
/* @__PURE__ */ React56.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
2634
2422
|
)
|
|
2635
2423
|
));
|
|
2636
|
-
var NavigationMenuContent =
|
|
2424
|
+
var NavigationMenuContent = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React56.createElement(
|
|
2637
2425
|
NavigationMenuPrimitive.Content,
|
|
2638
2426
|
{
|
|
2639
2427
|
ref,
|
|
@@ -2647,14 +2435,14 @@ var NavigationMenuContent = React57.forwardRef(({ className, ...props }, ref) =>
|
|
|
2647
2435
|
...props
|
|
2648
2436
|
}
|
|
2649
2437
|
));
|
|
2650
|
-
var NavigationMenuViewport =
|
|
2438
|
+
var NavigationMenuViewport = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React56.createElement(
|
|
2651
2439
|
"div",
|
|
2652
2440
|
{
|
|
2653
2441
|
className: cn(
|
|
2654
2442
|
"hawa-absolute hawa-top-full hawa-flex hawa-w-full hawa-justify-center"
|
|
2655
2443
|
)
|
|
2656
2444
|
},
|
|
2657
|
-
/* @__PURE__ */
|
|
2445
|
+
/* @__PURE__ */ React56.createElement(
|
|
2658
2446
|
NavigationMenuPrimitive.Viewport,
|
|
2659
2447
|
{
|
|
2660
2448
|
className: cn(
|
|
@@ -2671,7 +2459,7 @@ var NavigationMenuViewport = React57.forwardRef(({ className, ...props }, ref) =
|
|
|
2671
2459
|
}
|
|
2672
2460
|
)
|
|
2673
2461
|
));
|
|
2674
|
-
var NavigationMenuIndicator =
|
|
2462
|
+
var NavigationMenuIndicator = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React56.createElement(
|
|
2675
2463
|
NavigationMenuPrimitive.Indicator,
|
|
2676
2464
|
{
|
|
2677
2465
|
ref,
|
|
@@ -2681,7 +2469,7 @@ var NavigationMenuIndicator = React57.forwardRef(({ className, ...props }, ref)
|
|
|
2681
2469
|
),
|
|
2682
2470
|
...props
|
|
2683
2471
|
},
|
|
2684
|
-
/* @__PURE__ */
|
|
2472
|
+
/* @__PURE__ */ React56.createElement("div", { 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" })
|
|
2685
2473
|
));
|
|
2686
2474
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
2687
2475
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
@@ -2710,7 +2498,7 @@ var import_react38 = __toESM(require("react"));
|
|
|
2710
2498
|
var import_react39 = __toESM(require("react"));
|
|
2711
2499
|
|
|
2712
2500
|
// components/elements/accordion/Accordion.tsx
|
|
2713
|
-
var Accordion =
|
|
2501
|
+
var Accordion = React63.forwardRef(
|
|
2714
2502
|
({
|
|
2715
2503
|
items,
|
|
2716
2504
|
design = "default",
|
|
@@ -2719,7 +2507,7 @@ var Accordion = React64.forwardRef(
|
|
|
2719
2507
|
contentclassNames,
|
|
2720
2508
|
className,
|
|
2721
2509
|
...props
|
|
2722
|
-
}, ref) => /* @__PURE__ */
|
|
2510
|
+
}, ref) => /* @__PURE__ */ React63.createElement(AccordionPrimitive.Root, { type: props.type, collapsible: true }, /* @__PURE__ */ React63.createElement(
|
|
2723
2511
|
"div",
|
|
2724
2512
|
{
|
|
2725
2513
|
className: cn("hawa-flex hawa-flex-col", {
|
|
@@ -2727,7 +2515,7 @@ var Accordion = React64.forwardRef(
|
|
|
2727
2515
|
"hawa-gap-0": design === "default"
|
|
2728
2516
|
})
|
|
2729
2517
|
},
|
|
2730
|
-
items.map((item, index) => /* @__PURE__ */
|
|
2518
|
+
items.map((item, index) => /* @__PURE__ */ React63.createElement(
|
|
2731
2519
|
AccordionItem,
|
|
2732
2520
|
{
|
|
2733
2521
|
disabled: item.disabled || false,
|
|
@@ -2735,7 +2523,7 @@ var Accordion = React64.forwardRef(
|
|
|
2735
2523
|
key: index,
|
|
2736
2524
|
value: `item-${index}`
|
|
2737
2525
|
},
|
|
2738
|
-
/* @__PURE__ */
|
|
2526
|
+
/* @__PURE__ */ React63.createElement(
|
|
2739
2527
|
AccordionTrigger,
|
|
2740
2528
|
{
|
|
2741
2529
|
disabled: item.disabled || false,
|
|
@@ -2748,7 +2536,7 @@ var Accordion = React64.forwardRef(
|
|
|
2748
2536
|
triggerclassNames
|
|
2749
2537
|
)
|
|
2750
2538
|
},
|
|
2751
|
-
/* @__PURE__ */
|
|
2539
|
+
/* @__PURE__ */ React63.createElement(
|
|
2752
2540
|
"span",
|
|
2753
2541
|
{
|
|
2754
2542
|
className: cn(
|
|
@@ -2758,10 +2546,10 @@ var Accordion = React64.forwardRef(
|
|
|
2758
2546
|
},
|
|
2759
2547
|
item.trigger,
|
|
2760
2548
|
" ",
|
|
2761
|
-
item.chip && /* @__PURE__ */
|
|
2549
|
+
item.chip && /* @__PURE__ */ React63.createElement(Chip, { ...item.chip })
|
|
2762
2550
|
)
|
|
2763
2551
|
),
|
|
2764
|
-
/* @__PURE__ */
|
|
2552
|
+
/* @__PURE__ */ React63.createElement(
|
|
2765
2553
|
AccordionContent,
|
|
2766
2554
|
{
|
|
2767
2555
|
"aria-disabled": item.disabled || false,
|
|
@@ -2778,8 +2566,8 @@ var Accordion = React64.forwardRef(
|
|
|
2778
2566
|
))
|
|
2779
2567
|
))
|
|
2780
2568
|
);
|
|
2781
|
-
var AccordionItem =
|
|
2782
|
-
var AccordionTrigger =
|
|
2569
|
+
var AccordionItem = React63.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React63.createElement(AccordionPrimitive.Item, { ref, className: cn(className), ...props }));
|
|
2570
|
+
var AccordionTrigger = React63.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React63.createElement(AccordionPrimitive.Header, { className: "hawa-flex" }, /* @__PURE__ */ React63.createElement(
|
|
2783
2571
|
AccordionPrimitive.Trigger,
|
|
2784
2572
|
{
|
|
2785
2573
|
ref,
|
|
@@ -2791,7 +2579,7 @@ var AccordionTrigger = React64.forwardRef(({ className, children, ...props }, re
|
|
|
2791
2579
|
...props
|
|
2792
2580
|
},
|
|
2793
2581
|
children,
|
|
2794
|
-
!props.hideArrow && /* @__PURE__ */
|
|
2582
|
+
!props.hideArrow && /* @__PURE__ */ React63.createElement(
|
|
2795
2583
|
"svg",
|
|
2796
2584
|
{
|
|
2797
2585
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2805,10 +2593,10 @@ var AccordionTrigger = React64.forwardRef(({ className, children, ...props }, re
|
|
|
2805
2593
|
strokeLinejoin: "round",
|
|
2806
2594
|
className: "hawa-icon hawa-shrink-0 hawa-transition-transform hawa-duration-200"
|
|
2807
2595
|
},
|
|
2808
|
-
/* @__PURE__ */
|
|
2596
|
+
/* @__PURE__ */ React63.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
2809
2597
|
)
|
|
2810
2598
|
)));
|
|
2811
|
-
var AccordionContent =
|
|
2599
|
+
var AccordionContent = React63.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React63.createElement(
|
|
2812
2600
|
AccordionPrimitive.Content,
|
|
2813
2601
|
{
|
|
2814
2602
|
ref,
|
|
@@ -2818,7 +2606,7 @@ var AccordionContent = React64.forwardRef(({ className, children, ...props }, re
|
|
|
2818
2606
|
) : className,
|
|
2819
2607
|
...props
|
|
2820
2608
|
},
|
|
2821
|
-
/* @__PURE__ */
|
|
2609
|
+
/* @__PURE__ */ React63.createElement("div", { className: "hawa-bg-background hawa-p-4" }, children)
|
|
2822
2610
|
));
|
|
2823
2611
|
var AccordionRoot = AccordionPrimitive.Root;
|
|
2824
2612
|
Accordion.displayName = "Accordion";
|