@sikka/hawa 0.1.55 → 0.1.56
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/.github/ISSUE_TEMPLATE.yml +33 -61
- package/dist/index.d.mts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +520 -528
- package/dist/index.mjs +778 -782
- package/package.json +1 -1
- package/src/elements/DropdownMenu.tsx +14 -4
- package/src/elements/HawaTable.tsx +298 -147
package/dist/index.mjs
CHANGED
|
@@ -1273,160 +1273,11 @@ var HawaAlert = ({
|
|
|
1273
1273
|
};
|
|
1274
1274
|
|
|
1275
1275
|
// src/elements/HawaTable.tsx
|
|
1276
|
-
import React23, { useEffect as
|
|
1277
|
-
import clsx13 from "clsx";
|
|
1278
|
-
|
|
1279
|
-
// src/elements/HawaMenu.tsx
|
|
1280
|
-
import React21, { useEffect as useEffect6, useRef as useRef5, useState as useState10 } from "react";
|
|
1276
|
+
import React23, { useEffect as useEffect7, useState as useState11 } from "react";
|
|
1281
1277
|
import clsx12 from "clsx";
|
|
1282
|
-
var HawaMenu = ({
|
|
1283
|
-
menuItems,
|
|
1284
|
-
withHeader,
|
|
1285
|
-
direction = "ltr",
|
|
1286
|
-
headerTitle,
|
|
1287
|
-
headerSubtitle,
|
|
1288
|
-
size = "normal",
|
|
1289
|
-
children,
|
|
1290
|
-
onClickOutside,
|
|
1291
|
-
actionedItem,
|
|
1292
|
-
position = "top-right"
|
|
1293
|
-
}) => {
|
|
1294
|
-
const [menuOpened, setMenuOpened] = useState10(false);
|
|
1295
|
-
const childrenRef = useRef5(null);
|
|
1296
|
-
const [childrenHeight, setChildrenHeight] = useState10(null);
|
|
1297
|
-
const [childrenWidth, setChildrenWidth] = useState10(null);
|
|
1298
|
-
const menuRef = useRef5(null);
|
|
1299
|
-
const [menuWidth, setMenuWidth] = useState10(null);
|
|
1300
|
-
const [menuHeight, setMenuHeight] = useState10(null);
|
|
1301
|
-
useEffect6(() => {
|
|
1302
|
-
setMenuHeight(menuRef.current?.getBoundingClientRect().height);
|
|
1303
|
-
setMenuWidth(menuRef.current?.getBoundingClientRect().width);
|
|
1304
|
-
setChildrenHeight(childrenRef.current?.getBoundingClientRect().height);
|
|
1305
|
-
setChildrenWidth(childrenRef.current?.getBoundingClientRect().width);
|
|
1306
|
-
const handleClickOutside = (event) => {
|
|
1307
|
-
if (menuRef.current && !menuRef.current.contains(event.target)) {
|
|
1308
|
-
setMenuOpened(false);
|
|
1309
|
-
}
|
|
1310
|
-
};
|
|
1311
|
-
document.addEventListener("click", handleClickOutside, true);
|
|
1312
|
-
return () => {
|
|
1313
|
-
document.removeEventListener("click", handleClickOutside, true);
|
|
1314
|
-
};
|
|
1315
|
-
}, [onClickOutside]);
|
|
1316
|
-
let defaultStyles = "border-none absolute ring-offset-1 absolute z-10 w-44 divide-y divide-gray-100 overflow-y-clip rounded bg-gray-50 shadow-lg transition-all dark:bg-gray-700";
|
|
1317
|
-
let sizeStyles2 = {
|
|
1318
|
-
small: "text-[11px] p-1 px-4 m-0",
|
|
1319
|
-
normal: "py-2 px-4",
|
|
1320
|
-
large: ""
|
|
1321
|
-
};
|
|
1322
|
-
let menuCoordinates;
|
|
1323
|
-
let spacing = 5;
|
|
1324
|
-
switch (position) {
|
|
1325
|
-
case "top-right":
|
|
1326
|
-
menuCoordinates = direction === "rtl" ? `${menuWidth - childrenWidth}px, -${menuHeight + childrenHeight + spacing}px` : `0px, -${menuHeight + childrenHeight + spacing}px`;
|
|
1327
|
-
break;
|
|
1328
|
-
case "top-left":
|
|
1329
|
-
menuCoordinates = direction === "rtl" ? `${0}px, -${menuHeight + childrenHeight + spacing}px` : `-${menuWidth - childrenWidth}px, -${menuHeight + childrenHeight + spacing}px`;
|
|
1330
|
-
break;
|
|
1331
|
-
case "bottom-right":
|
|
1332
|
-
menuCoordinates = direction === "rtl" ? `-${0}px, ${spacing}px` : `-${childrenWidth - menuWidth}px, ${spacing}px`;
|
|
1333
|
-
break;
|
|
1334
|
-
case "bottom-left":
|
|
1335
|
-
menuCoordinates = direction === "rtl" ? `0px, ${spacing}px` : `-${menuWidth - childrenWidth}px,${spacing}px`;
|
|
1336
|
-
break;
|
|
1337
|
-
case "right-bottom":
|
|
1338
|
-
menuCoordinates = direction === "rtl" ? `${menuWidth + spacing}px, -${childrenHeight}px` : `${childrenWidth + spacing}px, -${childrenHeight}px`;
|
|
1339
|
-
break;
|
|
1340
|
-
case "right-top":
|
|
1341
|
-
menuCoordinates = direction === "rtl" ? `${menuWidth + spacing}px, -${menuHeight}px` : `${childrenWidth + spacing}px, -${menuHeight}px`;
|
|
1342
|
-
break;
|
|
1343
|
-
case "left-bottom":
|
|
1344
|
-
menuCoordinates = direction === "rtl" ? `-${childrenWidth + spacing}px, -${childrenHeight}px` : `-${menuWidth + spacing}px, -${childrenHeight}px`;
|
|
1345
|
-
break;
|
|
1346
|
-
case "left-top":
|
|
1347
|
-
menuCoordinates = direction === "rtl" ? `-${childrenWidth + spacing}px, -${menuHeight}px` : `-${menuWidth + spacing}px, -${menuHeight}px`;
|
|
1348
|
-
break;
|
|
1349
|
-
default:
|
|
1350
|
-
menuCoordinates = `-${menuWidth / 2}px, -${childrenHeight + menuHeight / 2}px`;
|
|
1351
|
-
break;
|
|
1352
|
-
}
|
|
1353
|
-
return /* @__PURE__ */ React21.createElement(
|
|
1354
|
-
"div",
|
|
1355
|
-
{
|
|
1356
|
-
onClick: () => {
|
|
1357
|
-
if (menuOpened)
|
|
1358
|
-
setMenuOpened(false);
|
|
1359
|
-
else
|
|
1360
|
-
setMenuOpened(true);
|
|
1361
|
-
}
|
|
1362
|
-
},
|
|
1363
|
-
/* @__PURE__ */ React21.createElement("div", { ref: childrenRef }, children),
|
|
1364
|
-
/* @__PURE__ */ React21.createElement(
|
|
1365
|
-
"div",
|
|
1366
|
-
{
|
|
1367
|
-
ref: menuRef,
|
|
1368
|
-
style: {
|
|
1369
|
-
position: "absolute",
|
|
1370
|
-
width: "max-content",
|
|
1371
|
-
transform: `translate(${menuCoordinates})`,
|
|
1372
|
-
maxWidth: "200px"
|
|
1373
|
-
},
|
|
1374
|
-
className: clsx12(
|
|
1375
|
-
defaultStyles,
|
|
1376
|
-
menuOpened ? "opacity-100" : "invisible opacity-0"
|
|
1377
|
-
)
|
|
1378
|
-
},
|
|
1379
|
-
withHeader && /* @__PURE__ */ React21.createElement("div", { className: "px-4 py-3 text-xs text-gray-900 dark:text-white" }, /* @__PURE__ */ React21.createElement("div", null, headerTitle), /* @__PURE__ */ React21.createElement("div", { className: "truncate font-medium" }, headerSubtitle)),
|
|
1380
|
-
menuItems?.map((group, o) => {
|
|
1381
|
-
return /* @__PURE__ */ React21.createElement(
|
|
1382
|
-
"ul",
|
|
1383
|
-
{
|
|
1384
|
-
key: o,
|
|
1385
|
-
className: "bg-layout-1200 flex flex-col gap-1 p-1 text-gray-700 dark:text-gray-200"
|
|
1386
|
-
},
|
|
1387
|
-
group?.map((item, indx) => {
|
|
1388
|
-
return item.element ? /* @__PURE__ */ React21.createElement(
|
|
1389
|
-
"li",
|
|
1390
|
-
{
|
|
1391
|
-
key: indx,
|
|
1392
|
-
className: "cursor-pointer items-center rounded hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white"
|
|
1393
|
-
},
|
|
1394
|
-
item.element
|
|
1395
|
-
) : /* @__PURE__ */ React21.createElement(
|
|
1396
|
-
"li",
|
|
1397
|
-
{
|
|
1398
|
-
key: indx,
|
|
1399
|
-
onClick: () => {
|
|
1400
|
-
if (item.disabled) {
|
|
1401
|
-
console.log("button is disabled");
|
|
1402
|
-
} else {
|
|
1403
|
-
item?.action(actionedItem);
|
|
1404
|
-
}
|
|
1405
|
-
},
|
|
1406
|
-
className: clsx12(
|
|
1407
|
-
"transition-all",
|
|
1408
|
-
item.isButton ? "flex cursor-pointer flex-row items-center rounded-inner bg-buttonPrimary-500 px-4 py-2 text-white hover:bg-buttonPrimary-700 rtl:flex-row-reverse" : item.disabled ? "text-gray-300" : " flex cursor-pointer flex-row items-center rounded-inner hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white ",
|
|
1409
|
-
sizeStyles2[size]
|
|
1410
|
-
)
|
|
1411
|
-
},
|
|
1412
|
-
item.icon && /* @__PURE__ */ React21.createElement(
|
|
1413
|
-
"div",
|
|
1414
|
-
{
|
|
1415
|
-
className: size === "small" ? "mr-1 rtl:ml-1" : "mr-2 rtl:ml-2"
|
|
1416
|
-
},
|
|
1417
|
-
item.icon
|
|
1418
|
-
),
|
|
1419
|
-
item.label
|
|
1420
|
-
);
|
|
1421
|
-
})
|
|
1422
|
-
);
|
|
1423
|
-
})
|
|
1424
|
-
)
|
|
1425
|
-
);
|
|
1426
|
-
};
|
|
1427
1278
|
|
|
1428
1279
|
// src/hooks/useTable.ts
|
|
1429
|
-
import { useState as
|
|
1280
|
+
import { useState as useState10, useEffect as useEffect6 } from "react";
|
|
1430
1281
|
var calculateRange = (data, rowsPerPage) => {
|
|
1431
1282
|
const range = [];
|
|
1432
1283
|
const num = Math.ceil(data?.length / rowsPerPage);
|
|
@@ -1462,9 +1313,9 @@ var sortData = (data, sortColumn, sortDirection) => {
|
|
|
1462
1313
|
return data;
|
|
1463
1314
|
};
|
|
1464
1315
|
var useTable = (data, page, rowsPerPage, sortColumn, sortDirection) => {
|
|
1465
|
-
const [tableRange, setTableRange] =
|
|
1466
|
-
const [slice, setSlice] =
|
|
1467
|
-
|
|
1316
|
+
const [tableRange, setTableRange] = useState10([]);
|
|
1317
|
+
const [slice, setSlice] = useState10([]);
|
|
1318
|
+
useEffect6(() => {
|
|
1468
1319
|
if (data) {
|
|
1469
1320
|
const range = calculateRange(data, rowsPerPage);
|
|
1470
1321
|
setTableRange([...range]);
|
|
@@ -1475,9 +1326,245 @@ var useTable = (data, page, rowsPerPage, sortColumn, sortDirection) => {
|
|
|
1475
1326
|
}, [data, setTableRange, page, rowsPerPage, sortColumn, sortDirection]);
|
|
1476
1327
|
return { slice, range: tableRange };
|
|
1477
1328
|
};
|
|
1478
|
-
var useTable_default = useTable;
|
|
1329
|
+
var useTable_default = useTable;
|
|
1330
|
+
|
|
1331
|
+
// src/elements/DropdownMenu.tsx
|
|
1332
|
+
import * as React22 from "react";
|
|
1333
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
1334
|
+
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
|
1335
|
+
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
1336
|
+
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1337
|
+
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1338
|
+
var DropdownMenuSubTrigger = React22.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React22.createElement(
|
|
1339
|
+
DropdownMenuPrimitive.SubTrigger,
|
|
1340
|
+
{
|
|
1341
|
+
ref,
|
|
1342
|
+
className: cn(
|
|
1343
|
+
"flex cursor-default select-none items-center justify-between rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
|
|
1344
|
+
inset && "pl-8",
|
|
1345
|
+
className
|
|
1346
|
+
),
|
|
1347
|
+
...props
|
|
1348
|
+
},
|
|
1349
|
+
/* @__PURE__ */ React22.createElement("div", { className: "flex flex-row items-center gap-1" }, children),
|
|
1350
|
+
" ",
|
|
1351
|
+
/* @__PURE__ */ React22.createElement(
|
|
1352
|
+
"svg",
|
|
1353
|
+
{
|
|
1354
|
+
"aria-label": "Chevron Right Icon",
|
|
1355
|
+
stroke: "currentColor",
|
|
1356
|
+
fill: "currentColor",
|
|
1357
|
+
"stroke-width": "0",
|
|
1358
|
+
viewBox: "0 0 16 16",
|
|
1359
|
+
height: "1em",
|
|
1360
|
+
width: "1em",
|
|
1361
|
+
className: cn(props.dir === "rtl" ? "rotate-180" : "")
|
|
1362
|
+
},
|
|
1363
|
+
/* @__PURE__ */ React22.createElement(
|
|
1364
|
+
"path",
|
|
1365
|
+
{
|
|
1366
|
+
"fill-rule": "evenodd",
|
|
1367
|
+
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"
|
|
1368
|
+
}
|
|
1369
|
+
)
|
|
1370
|
+
)
|
|
1371
|
+
));
|
|
1372
|
+
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1373
|
+
var DropdownMenuSubContent = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement(
|
|
1374
|
+
DropdownMenuPrimitive.SubContent,
|
|
1375
|
+
{
|
|
1376
|
+
ref,
|
|
1377
|
+
className: cn(
|
|
1378
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1379
|
+
className
|
|
1380
|
+
),
|
|
1381
|
+
...props
|
|
1382
|
+
}
|
|
1383
|
+
));
|
|
1384
|
+
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1385
|
+
var DropdownMenuContent = React22.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React22.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React22.createElement(
|
|
1386
|
+
DropdownMenuPrimitive.Content,
|
|
1387
|
+
{
|
|
1388
|
+
ref,
|
|
1389
|
+
sideOffset,
|
|
1390
|
+
className: cn(
|
|
1391
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
1392
|
+
className
|
|
1393
|
+
),
|
|
1394
|
+
...props
|
|
1395
|
+
}
|
|
1396
|
+
)));
|
|
1397
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1398
|
+
var DropdownMenuItem = React22.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React22.createElement(
|
|
1399
|
+
DropdownMenuPrimitive.Item,
|
|
1400
|
+
{
|
|
1401
|
+
ref,
|
|
1402
|
+
className: cn(
|
|
1403
|
+
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1404
|
+
inset && "pl-8",
|
|
1405
|
+
className
|
|
1406
|
+
),
|
|
1407
|
+
...props
|
|
1408
|
+
}
|
|
1409
|
+
));
|
|
1410
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
1411
|
+
var DropdownMenuCheckboxItem = React22.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React22.createElement(
|
|
1412
|
+
DropdownMenuPrimitive.CheckboxItem,
|
|
1413
|
+
{
|
|
1414
|
+
ref,
|
|
1415
|
+
className: cn(
|
|
1416
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1417
|
+
className
|
|
1418
|
+
),
|
|
1419
|
+
checked,
|
|
1420
|
+
...props
|
|
1421
|
+
},
|
|
1422
|
+
/* @__PURE__ */ React22.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ React22.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React22.createElement(
|
|
1423
|
+
"svg",
|
|
1424
|
+
{
|
|
1425
|
+
"aria-label": "Check Mark",
|
|
1426
|
+
stroke: "currentColor",
|
|
1427
|
+
fill: "currentColor",
|
|
1428
|
+
"stroke-width": "0",
|
|
1429
|
+
viewBox: "0 0 512 512",
|
|
1430
|
+
height: "0.60em",
|
|
1431
|
+
width: "0.60em"
|
|
1432
|
+
},
|
|
1433
|
+
/* @__PURE__ */ React22.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" })
|
|
1434
|
+
), " ")),
|
|
1435
|
+
children
|
|
1436
|
+
));
|
|
1437
|
+
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
1438
|
+
var DropdownMenuRadioItem = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React22.createElement(
|
|
1439
|
+
DropdownMenuPrimitive.RadioItem,
|
|
1440
|
+
{
|
|
1441
|
+
ref,
|
|
1442
|
+
className: cn(
|
|
1443
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1444
|
+
className
|
|
1445
|
+
),
|
|
1446
|
+
...props
|
|
1447
|
+
},
|
|
1448
|
+
/* @__PURE__ */ React22.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ React22.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React22.createElement(
|
|
1449
|
+
"svg",
|
|
1450
|
+
{
|
|
1451
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1452
|
+
width: "24",
|
|
1453
|
+
"aria-label": "Circle",
|
|
1454
|
+
height: "24",
|
|
1455
|
+
viewBox: "0 0 24 24",
|
|
1456
|
+
fill: "none",
|
|
1457
|
+
stroke: "currentColor",
|
|
1458
|
+
"stroke-width": "2",
|
|
1459
|
+
"stroke-linecap": "round",
|
|
1460
|
+
"stroke-linejoin": "round",
|
|
1461
|
+
className: "h-2 w-2 fill-current"
|
|
1462
|
+
},
|
|
1463
|
+
/* @__PURE__ */ React22.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
|
1464
|
+
))),
|
|
1465
|
+
children
|
|
1466
|
+
));
|
|
1467
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
1468
|
+
var DropdownMenuLabel = React22.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React22.createElement(
|
|
1469
|
+
DropdownMenuPrimitive.Label,
|
|
1470
|
+
{
|
|
1471
|
+
ref,
|
|
1472
|
+
className: cn(
|
|
1473
|
+
"px-2 py-1.5 text-sm font-semibold",
|
|
1474
|
+
inset && "pl-8",
|
|
1475
|
+
className
|
|
1476
|
+
),
|
|
1477
|
+
...props
|
|
1478
|
+
}
|
|
1479
|
+
));
|
|
1480
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
1481
|
+
var DropdownMenuSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement(
|
|
1482
|
+
DropdownMenuPrimitive.Separator,
|
|
1483
|
+
{
|
|
1484
|
+
ref,
|
|
1485
|
+
className: cn("-mx-1 my-1 h-px bg-muted", className),
|
|
1486
|
+
...props
|
|
1487
|
+
}
|
|
1488
|
+
));
|
|
1489
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
1490
|
+
var DropdownMenuShortcut = ({
|
|
1491
|
+
className,
|
|
1492
|
+
...props
|
|
1493
|
+
}) => {
|
|
1494
|
+
return /* @__PURE__ */ React22.createElement(
|
|
1495
|
+
"span",
|
|
1496
|
+
{
|
|
1497
|
+
className: cn("ml-auto text-xs tracking-widest opacity-60", className),
|
|
1498
|
+
...props
|
|
1499
|
+
}
|
|
1500
|
+
);
|
|
1501
|
+
};
|
|
1502
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1503
|
+
var DropdownMenu = ({
|
|
1504
|
+
trigger,
|
|
1505
|
+
items,
|
|
1506
|
+
direction,
|
|
1507
|
+
onItemSelect,
|
|
1508
|
+
sideOffset,
|
|
1509
|
+
side,
|
|
1510
|
+
className,
|
|
1511
|
+
triggerClassname,
|
|
1512
|
+
align,
|
|
1513
|
+
alignOffset
|
|
1514
|
+
}) => {
|
|
1515
|
+
return /* @__PURE__ */ React22.createElement(DropdownMenuRoot, { dir: direction }, /* @__PURE__ */ React22.createElement(DropdownMenuTrigger, { className: triggerClassname }, trigger), /* @__PURE__ */ React22.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React22.createElement(
|
|
1516
|
+
DropdownMenuContent,
|
|
1517
|
+
{
|
|
1518
|
+
side,
|
|
1519
|
+
sideOffset,
|
|
1520
|
+
className: cn(className, "flex flex-col gap-1"),
|
|
1521
|
+
align,
|
|
1522
|
+
alignOffset
|
|
1523
|
+
},
|
|
1524
|
+
items.map((item, index) => {
|
|
1525
|
+
return item.subitems ? /* @__PURE__ */ React22.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React22.createElement(DropdownMenuSubTrigger, { dir: direction }, item.icon && item.icon, item.label), /* @__PURE__ */ React22.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React22.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => /* @__PURE__ */ React22.createElement(
|
|
1526
|
+
DropdownMenuItem,
|
|
1527
|
+
{
|
|
1528
|
+
className: "flex flex-row gap-1",
|
|
1529
|
+
onSelect: () => subitem.action(),
|
|
1530
|
+
key: subIndex
|
|
1531
|
+
},
|
|
1532
|
+
subitem.icon && subitem.icon,
|
|
1533
|
+
subitem.label
|
|
1534
|
+
))))) : /* @__PURE__ */ React22.createElement(
|
|
1535
|
+
DropdownMenuItem,
|
|
1536
|
+
{
|
|
1537
|
+
className: "flex flex-row gap-1",
|
|
1538
|
+
key: index,
|
|
1539
|
+
onSelect: () => item.action()
|
|
1540
|
+
},
|
|
1541
|
+
item.icon && item.icon,
|
|
1542
|
+
item.label
|
|
1543
|
+
);
|
|
1544
|
+
})
|
|
1545
|
+
)));
|
|
1546
|
+
};
|
|
1479
1547
|
|
|
1480
1548
|
// src/elements/HawaTable.tsx
|
|
1549
|
+
var ChevronIcon = () => /* @__PURE__ */ React23.createElement(
|
|
1550
|
+
"svg",
|
|
1551
|
+
{
|
|
1552
|
+
"aria-label": "Chevron Right Icon",
|
|
1553
|
+
stroke: "currentColor",
|
|
1554
|
+
fill: "currentColor",
|
|
1555
|
+
"stroke-width": "0",
|
|
1556
|
+
viewBox: "0 0 16 16",
|
|
1557
|
+
height: "1em",
|
|
1558
|
+
width: "1em"
|
|
1559
|
+
},
|
|
1560
|
+
/* @__PURE__ */ React23.createElement(
|
|
1561
|
+
"path",
|
|
1562
|
+
{
|
|
1563
|
+
"fill-rule": "evenodd",
|
|
1564
|
+
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"
|
|
1565
|
+
}
|
|
1566
|
+
)
|
|
1567
|
+
);
|
|
1481
1568
|
var HawaTable = ({
|
|
1482
1569
|
size = "normal",
|
|
1483
1570
|
bodyColor = "white",
|
|
@@ -1489,21 +1576,13 @@ var HawaTable = ({
|
|
|
1489
1576
|
pagination = true,
|
|
1490
1577
|
...props
|
|
1491
1578
|
}) => {
|
|
1492
|
-
const [perPage, setPerPage] =
|
|
1493
|
-
const [enteredPage, setEnteredPage] =
|
|
1494
|
-
const [page, setPage] =
|
|
1495
|
-
const [sortingCol, setSortingCol] =
|
|
1496
|
-
const [sortedRows, setSortedRows] =
|
|
1497
|
-
const [sortColumn, setSortColumn] =
|
|
1498
|
-
const [sortDirection, setSortDirection] =
|
|
1499
|
-
const handleSort = (colIndex, sortable) => {
|
|
1500
|
-
if (sortable) {
|
|
1501
|
-
setSortColumn(colIndex);
|
|
1502
|
-
setSortDirection(
|
|
1503
|
-
(prevDirection) => prevDirection === "asc" ? "desc" : "asc"
|
|
1504
|
-
);
|
|
1505
|
-
}
|
|
1506
|
-
};
|
|
1579
|
+
const [perPage, setPerPage] = useState11(10);
|
|
1580
|
+
const [enteredPage, setEnteredPage] = useState11(null);
|
|
1581
|
+
const [page, setPage] = useState11(1);
|
|
1582
|
+
const [sortingCol, setSortingCol] = useState11(null);
|
|
1583
|
+
const [sortedRows, setSortedRows] = useState11(props.rows);
|
|
1584
|
+
const [sortColumn, setSortColumn] = useState11(null);
|
|
1585
|
+
const [sortDirection, setSortDirection] = useState11(null);
|
|
1507
1586
|
const { slice, range } = useTable_default(
|
|
1508
1587
|
props.rows,
|
|
1509
1588
|
page,
|
|
@@ -1516,6 +1595,14 @@ var HawaTable = ({
|
|
|
1516
1595
|
normal: "py-3 px-6",
|
|
1517
1596
|
small: "px-3 py-1"
|
|
1518
1597
|
};
|
|
1598
|
+
const handleSort = (colIndex, sortable) => {
|
|
1599
|
+
if (sortable) {
|
|
1600
|
+
setSortColumn(colIndex);
|
|
1601
|
+
setSortDirection(
|
|
1602
|
+
(prevDirection) => prevDirection === "asc" ? "desc" : "asc"
|
|
1603
|
+
);
|
|
1604
|
+
}
|
|
1605
|
+
};
|
|
1519
1606
|
const changePage = () => {
|
|
1520
1607
|
if (slice?.length < 1 && page !== 1) {
|
|
1521
1608
|
setPage(page - 1);
|
|
@@ -1524,7 +1611,7 @@ var HawaTable = ({
|
|
|
1524
1611
|
setPage(enteredPage);
|
|
1525
1612
|
}
|
|
1526
1613
|
};
|
|
1527
|
-
|
|
1614
|
+
useEffect7(() => {
|
|
1528
1615
|
changePage();
|
|
1529
1616
|
}, [slice, page]);
|
|
1530
1617
|
return /* @__PURE__ */ React23.createElement("div", { className: "relative flex flex-col gap-2 " }, /* @__PURE__ */ React23.createElement("div", { className: `overflow-x-auto rounded bg-${headerColor}` }, props.headerTools && /* @__PURE__ */ React23.createElement("div", { className: "flex flex-row items-center justify-between gap-2 border bg-background px-4 py-2" }, /* @__PURE__ */ React23.createElement(
|
|
@@ -1547,47 +1634,40 @@ var HawaTable = ({
|
|
|
1547
1634
|
width: "full",
|
|
1548
1635
|
margin: "none"
|
|
1549
1636
|
}
|
|
1550
|
-
), /* @__PURE__ */ React23.createElement("div", { className: "flex flex-row items-center justify-between gap-2" }, /* @__PURE__ */ React23.createElement(
|
|
1551
|
-
|
|
1637
|
+
), /* @__PURE__ */ React23.createElement("div", { className: "flex flex-row items-center justify-between gap-2" }, /* @__PURE__ */ React23.createElement(Button, { className: "flex flex-row gap-2" }, /* @__PURE__ */ React23.createElement(
|
|
1638
|
+
"svg",
|
|
1552
1639
|
{
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
"stroke-width": "0",
|
|
1573
|
-
viewBox: "0 0 16 16",
|
|
1574
|
-
height: "1em",
|
|
1575
|
-
width: "1em"
|
|
1576
|
-
},
|
|
1577
|
-
/* @__PURE__ */ React23.createElement(
|
|
1578
|
-
"path",
|
|
1579
|
-
{
|
|
1580
|
-
"fill-rule": "evenodd",
|
|
1581
|
-
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"
|
|
1582
|
-
}
|
|
1583
|
-
)
|
|
1584
|
-
)
|
|
1640
|
+
"aria-label": "Filter Icon",
|
|
1641
|
+
stroke: "currentColor",
|
|
1642
|
+
fill: "currentColor",
|
|
1643
|
+
"stroke-width": "0",
|
|
1644
|
+
viewBox: "0 0 16 16",
|
|
1645
|
+
height: "1em",
|
|
1646
|
+
width: "1em"
|
|
1647
|
+
},
|
|
1648
|
+
/* @__PURE__ */ React23.createElement("path", { d: "M6 10.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z" })
|
|
1649
|
+
), props.texts?.filter ?? "Filter", /* @__PURE__ */ React23.createElement(
|
|
1650
|
+
"svg",
|
|
1651
|
+
{
|
|
1652
|
+
"aria-label": "Chevron Right Icon",
|
|
1653
|
+
stroke: "currentColor",
|
|
1654
|
+
fill: "currentColor",
|
|
1655
|
+
"stroke-width": "0",
|
|
1656
|
+
viewBox: "0 0 16 16",
|
|
1657
|
+
height: "1em",
|
|
1658
|
+
width: "1em"
|
|
1585
1659
|
},
|
|
1586
|
-
|
|
1587
|
-
|
|
1660
|
+
/* @__PURE__ */ React23.createElement(
|
|
1661
|
+
"path",
|
|
1662
|
+
{
|
|
1663
|
+
"fill-rule": "evenodd",
|
|
1664
|
+
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"
|
|
1665
|
+
}
|
|
1666
|
+
)
|
|
1667
|
+
)))), /* @__PURE__ */ React23.createElement(
|
|
1588
1668
|
"table",
|
|
1589
1669
|
{
|
|
1590
|
-
className:
|
|
1670
|
+
className: clsx12(
|
|
1591
1671
|
borders === "outer" || borders === "all" ? `outline outline-[${bordersWidth}px] -outline-offset-1 outline-gray-300 dark:outline-gray-700` : "",
|
|
1592
1672
|
"w-full rounded text-left text-sm text-gray-500 dark:text-gray-400",
|
|
1593
1673
|
`bg-${headerColor}`
|
|
@@ -1596,7 +1676,7 @@ var HawaTable = ({
|
|
|
1596
1676
|
/* @__PURE__ */ React23.createElement(
|
|
1597
1677
|
"thead",
|
|
1598
1678
|
{
|
|
1599
|
-
className:
|
|
1679
|
+
className: clsx12(
|
|
1600
1680
|
"text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400",
|
|
1601
1681
|
borders === "rows" || borders === "all" || borders === "inner" ? "border-b " : ""
|
|
1602
1682
|
)
|
|
@@ -1612,7 +1692,7 @@ var HawaTable = ({
|
|
|
1612
1692
|
key: i,
|
|
1613
1693
|
scope: "col",
|
|
1614
1694
|
colSpan: 2,
|
|
1615
|
-
className:
|
|
1695
|
+
className: clsx12(
|
|
1616
1696
|
col.sortable ? "cursor-pointer hover:bg-gray-300" : "",
|
|
1617
1697
|
sizeStyles2[size],
|
|
1618
1698
|
i !== 0 && (borders === "cols" || borders === "all" || borders === "inner") ? `border-r border-r-[${bordersWidth}px] border-l border-l-[${bordersWidth}px]` : ""
|
|
@@ -1626,7 +1706,7 @@ var HawaTable = ({
|
|
|
1626
1706
|
"th",
|
|
1627
1707
|
{
|
|
1628
1708
|
scope: "col",
|
|
1629
|
-
className:
|
|
1709
|
+
className: clsx12(sizeStyles2[size], "w-[calc(1%)] text-center")
|
|
1630
1710
|
},
|
|
1631
1711
|
props.texts?.actions ?? "Actions"
|
|
1632
1712
|
) : null)
|
|
@@ -1642,7 +1722,7 @@ var HawaTable = ({
|
|
|
1642
1722
|
"tr",
|
|
1643
1723
|
{
|
|
1644
1724
|
key: rowIndex,
|
|
1645
|
-
className:
|
|
1725
|
+
className: clsx12(
|
|
1646
1726
|
" dark:border-gray-700 dark:bg-gray-800",
|
|
1647
1727
|
props.clickable ? "hover:bg-gray-100" : "",
|
|
1648
1728
|
!lastRow && (borders === "all" || borders === "rows" || borders === "inner") ? `border-b border-b-[${bordersWidth}px]` : ""
|
|
@@ -1663,7 +1743,7 @@ var HawaTable = ({
|
|
|
1663
1743
|
{
|
|
1664
1744
|
colSpan: 2,
|
|
1665
1745
|
key: i,
|
|
1666
|
-
className:
|
|
1746
|
+
className: clsx12(
|
|
1667
1747
|
// borders === "outer" ? "border" : "",
|
|
1668
1748
|
sizeStyles2[size],
|
|
1669
1749
|
highlightFirst && firstCell ? "font-bold" : "font-normal",
|
|
@@ -1678,46 +1758,43 @@ var HawaTable = ({
|
|
|
1678
1758
|
);
|
|
1679
1759
|
}
|
|
1680
1760
|
}),
|
|
1681
|
-
props.actions
|
|
1761
|
+
props.actions && /* @__PURE__ */ React23.createElement(
|
|
1682
1762
|
"td",
|
|
1683
1763
|
{
|
|
1684
1764
|
align: isRTL ? "right" : "left",
|
|
1685
|
-
className:
|
|
1686
|
-
isRTL && lastRow
|
|
1687
|
-
!isRTL && lastRow
|
|
1688
|
-
// "w-fit bg-red-400"
|
|
1765
|
+
className: cn(
|
|
1766
|
+
isRTL && lastRow && "rounded-bl rounded-br-none",
|
|
1767
|
+
!isRTL && lastRow && "rounded-bl-none rounded-br"
|
|
1689
1768
|
),
|
|
1690
1769
|
colSpan: 1
|
|
1691
1770
|
},
|
|
1692
1771
|
/* @__PURE__ */ React23.createElement("div", { className: "flex items-center justify-center" }, /* @__PURE__ */ React23.createElement(
|
|
1693
|
-
|
|
1772
|
+
DropdownMenu,
|
|
1694
1773
|
{
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
/* @__PURE__ */ React23.createElement("path", { d: "M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z" })
|
|
1713
|
-
))
|
|
1774
|
+
direction,
|
|
1775
|
+
side: "right",
|
|
1776
|
+
items: props.actions,
|
|
1777
|
+
trigger: /* @__PURE__ */ React23.createElement("div", { className: "flex w-fit cursor-pointer items-center justify-center rounded p-2 hover:bg-gray-200 dark:hover:bg-gray-600" }, /* @__PURE__ */ React23.createElement(
|
|
1778
|
+
"svg",
|
|
1779
|
+
{
|
|
1780
|
+
"aria-label": "Vertical Three Dots Menu Icon",
|
|
1781
|
+
stroke: "currentColor",
|
|
1782
|
+
fill: "currentColor",
|
|
1783
|
+
"stroke-width": "0",
|
|
1784
|
+
viewBox: "0 0 16 16",
|
|
1785
|
+
height: "1em",
|
|
1786
|
+
width: "1em"
|
|
1787
|
+
},
|
|
1788
|
+
/* @__PURE__ */ React23.createElement("path", { d: "M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z" })
|
|
1789
|
+
))
|
|
1790
|
+
}
|
|
1714
1791
|
))
|
|
1715
|
-
)
|
|
1792
|
+
)
|
|
1716
1793
|
);
|
|
1717
1794
|
}) : /* @__PURE__ */ React23.createElement("tr", { className: "bg-transparent" }, /* @__PURE__ */ React23.createElement("td", { colSpan: 20 }, /* @__PURE__ */ React23.createElement(
|
|
1718
1795
|
"div",
|
|
1719
1796
|
{
|
|
1720
|
-
className:
|
|
1797
|
+
className: clsx12(
|
|
1721
1798
|
"w-full rounded-b border p-5 text-center",
|
|
1722
1799
|
// bodyColor ? `bg-${bodyColor}` : "bg-background"
|
|
1723
1800
|
"bg-background"
|
|
@@ -1729,39 +1806,22 @@ var HawaTable = ({
|
|
|
1729
1806
|
)), pagination && /* @__PURE__ */ React23.createElement("div", { className: "flex flex-row items-center justify-between " }, range.length > 1 ? /* @__PURE__ */ React23.createElement("div", { className: "flex w-fit flex-row items-stretch justify-center gap-2 overflow-clip rounded " }, /* @__PURE__ */ React23.createElement(
|
|
1730
1807
|
"div",
|
|
1731
1808
|
{
|
|
1732
|
-
className:
|
|
1733
|
-
"flex h-6 w-6 rotate-180 cursor-pointer items-center justify-center rounded border bg-
|
|
1809
|
+
className: cn(
|
|
1810
|
+
"flex h-6 w-6 rotate-180 cursor-pointer items-center justify-center rounded border bg-background p-1 text-xs hover:bg-primary/10 dark:hover:bg-primary/10",
|
|
1811
|
+
direction === "rtl" && "rotate-0"
|
|
1734
1812
|
),
|
|
1735
1813
|
onClick: () => page <= 1 ? setPage(range.length) : setPage(page - 1)
|
|
1736
1814
|
},
|
|
1737
|
-
/* @__PURE__ */ React23.createElement(
|
|
1738
|
-
"svg",
|
|
1739
|
-
{
|
|
1740
|
-
"aria-label": "Chevron Right Icon",
|
|
1741
|
-
stroke: "currentColor",
|
|
1742
|
-
fill: "currentColor",
|
|
1743
|
-
"stroke-width": "0",
|
|
1744
|
-
viewBox: "0 0 16 16",
|
|
1745
|
-
height: "1em",
|
|
1746
|
-
width: "1em"
|
|
1747
|
-
},
|
|
1748
|
-
/* @__PURE__ */ React23.createElement(
|
|
1749
|
-
"path",
|
|
1750
|
-
{
|
|
1751
|
-
"fill-rule": "evenodd",
|
|
1752
|
-
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"
|
|
1753
|
-
}
|
|
1754
|
-
)
|
|
1755
|
-
)
|
|
1815
|
+
/* @__PURE__ */ React23.createElement(ChevronIcon, null)
|
|
1756
1816
|
), /* @__PURE__ */ React23.createElement("div", { className: "flex flex-row items-center overflow-clip rounded transition-all" }, range.length > 6 && range.map((el, index) => {
|
|
1757
1817
|
if (index <= 0) {
|
|
1758
1818
|
return /* @__PURE__ */ React23.createElement(
|
|
1759
1819
|
"button",
|
|
1760
1820
|
{
|
|
1761
1821
|
key: index,
|
|
1762
|
-
className:
|
|
1822
|
+
className: clsx12(
|
|
1763
1823
|
"w-10 p-1 text-xs hover:bg-gray-200",
|
|
1764
|
-
page === el ? "bg-
|
|
1824
|
+
page === el ? "bg-primary text-primary-foreground hover:bg-primary" : "bg-gray-100"
|
|
1765
1825
|
),
|
|
1766
1826
|
onClick: () => setPage(el)
|
|
1767
1827
|
},
|
|
@@ -1789,9 +1849,9 @@ var HawaTable = ({
|
|
|
1789
1849
|
"button",
|
|
1790
1850
|
{
|
|
1791
1851
|
key: index,
|
|
1792
|
-
className:
|
|
1852
|
+
className: clsx12(
|
|
1793
1853
|
"w-10 p-1 text-xs hover:bg-gray-200",
|
|
1794
|
-
page === el ? "bg-
|
|
1854
|
+
page === el ? "bg-primary text-primary-foreground hover:bg-primary" : "bg-gray-100"
|
|
1795
1855
|
),
|
|
1796
1856
|
onClick: () => setPage(el)
|
|
1797
1857
|
},
|
|
@@ -1803,11 +1863,20 @@ var HawaTable = ({
|
|
|
1803
1863
|
"button",
|
|
1804
1864
|
{
|
|
1805
1865
|
key: index,
|
|
1806
|
-
className:
|
|
1807
|
-
"w-10 p-1 text-xs
|
|
1808
|
-
page === el ? "bg-
|
|
1809
|
-
|
|
1810
|
-
|
|
1866
|
+
className: clsx12(
|
|
1867
|
+
"w-10 p-1 text-xs",
|
|
1868
|
+
page === el ? "bg-primary text-primary-foreground " : "border bg-background hover:bg-primary/10 dark:hover:bg-primary/10",
|
|
1869
|
+
// Check if the direction is 'rtl'
|
|
1870
|
+
direction === "rtl" ? (
|
|
1871
|
+
// If direction is 'rtl', then check for the index conditions
|
|
1872
|
+
// and apply respective classes along with the 'something' class
|
|
1873
|
+
index === 0 ? "rounded-r border-l-0" : index === range.length - 1 ? "rounded-l border-r-0" : ""
|
|
1874
|
+
) : (
|
|
1875
|
+
// If direction is not 'rtl', then again check for the index conditions
|
|
1876
|
+
// and apply respective classes along with the 'something else' class
|
|
1877
|
+
index === 0 ? "rounded-l border-r-0" : index === range.length - 1 ? "rounded-r border-l-0" : ""
|
|
1878
|
+
)
|
|
1879
|
+
// Apply if index is other than 0 or last element and direction is not 'rtl'
|
|
1811
1880
|
),
|
|
1812
1881
|
onClick: () => setPage(el)
|
|
1813
1882
|
},
|
|
@@ -1817,29 +1886,12 @@ var HawaTable = ({
|
|
|
1817
1886
|
"div",
|
|
1818
1887
|
{
|
|
1819
1888
|
onClick: () => page >= range.length ? setPage(1) : setPage(page + 1),
|
|
1820
|
-
className:
|
|
1821
|
-
"flex h-6 w-6 cursor-pointer items-center justify-center rounded border bg-
|
|
1889
|
+
className: cn(
|
|
1890
|
+
"flex h-6 w-6 cursor-pointer items-center justify-center rounded border bg-background p-1 text-xs hover:bg-primary/10 dark:hover:bg-primary/10",
|
|
1891
|
+
direction === "rtl" && "rotate-180"
|
|
1822
1892
|
)
|
|
1823
1893
|
},
|
|
1824
|
-
/* @__PURE__ */ React23.createElement(
|
|
1825
|
-
"svg",
|
|
1826
|
-
{
|
|
1827
|
-
"aria-label": "Chevron Right Icon",
|
|
1828
|
-
stroke: "currentColor",
|
|
1829
|
-
fill: "currentColor",
|
|
1830
|
-
"stroke-width": "0",
|
|
1831
|
-
viewBox: "0 0 16 16",
|
|
1832
|
-
height: "1em",
|
|
1833
|
-
width: "1em"
|
|
1834
|
-
},
|
|
1835
|
-
/* @__PURE__ */ React23.createElement(
|
|
1836
|
-
"path",
|
|
1837
|
-
{
|
|
1838
|
-
"fill-rule": "evenodd",
|
|
1839
|
-
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"
|
|
1840
|
-
}
|
|
1841
|
-
)
|
|
1842
|
-
)
|
|
1894
|
+
/* @__PURE__ */ React23.createElement(ChevronIcon, null)
|
|
1843
1895
|
)) : /* @__PURE__ */ React23.createElement("div", null), props.rows ? /* @__PURE__ */ React23.createElement("div", { className: "flex w-fit flex-row items-center gap-2 " }, /* @__PURE__ */ React23.createElement("div", { className: "text-xs " }, props.rows.length, " ", props.texts?.items ?? "Items"), /* @__PURE__ */ React23.createElement(
|
|
1844
1896
|
"select",
|
|
1845
1897
|
{
|
|
@@ -1864,16 +1916,16 @@ var HawaSearchBar = (props) => {
|
|
|
1864
1916
|
};
|
|
1865
1917
|
|
|
1866
1918
|
// src/elements/HawaAccordion.tsx
|
|
1867
|
-
import React25, { useState as
|
|
1868
|
-
import
|
|
1919
|
+
import React25, { useState as useState12 } from "react";
|
|
1920
|
+
import clsx13 from "clsx";
|
|
1869
1921
|
var HawaAccordion = (props) => {
|
|
1870
|
-
const [collapse, setCollapse] =
|
|
1922
|
+
const [collapse, setCollapse] = useState12(false);
|
|
1871
1923
|
return /* @__PURE__ */ React25.createElement("div", { className: "h-fit w-full" }, /* @__PURE__ */ React25.createElement(
|
|
1872
1924
|
"button",
|
|
1873
1925
|
{
|
|
1874
1926
|
id: "accordion-collapse-heading-" + props.index,
|
|
1875
1927
|
type: "button",
|
|
1876
|
-
className:
|
|
1928
|
+
className: clsx13(
|
|
1877
1929
|
collapse ? "rounded" : "rounded-t",
|
|
1878
1930
|
"flex w-full items-center justify-between border border-gray-200 bg-gray-100 p-5 text-left font-medium text-gray-900 hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-800 dark:focus:ring-gray-800"
|
|
1879
1931
|
),
|
|
@@ -1905,7 +1957,7 @@ var HawaAccordion = (props) => {
|
|
|
1905
1957
|
{
|
|
1906
1958
|
id: "accordion-collapse-body-" + props.index,
|
|
1907
1959
|
"aria-labelledby": "accordion-collapse-heading-" + props.index,
|
|
1908
|
-
className:
|
|
1960
|
+
className: clsx13(
|
|
1909
1961
|
collapse ? "invisible hidden h-0 p-0" : "visible h-full",
|
|
1910
1962
|
"w-full rounded-b border border-t-0 border-gray-200 p-5 font-light dark:border-gray-700 dark:bg-gray-900"
|
|
1911
1963
|
)
|
|
@@ -1915,7 +1967,7 @@ var HawaAccordion = (props) => {
|
|
|
1915
1967
|
};
|
|
1916
1968
|
|
|
1917
1969
|
// src/elements/HawaPhoneInput.tsx
|
|
1918
|
-
import React26, { useState as
|
|
1970
|
+
import React26, { useState as useState13 } from "react";
|
|
1919
1971
|
|
|
1920
1972
|
// src/countries.ts
|
|
1921
1973
|
var countries = [
|
|
@@ -3648,7 +3700,7 @@ var Option2 = ({
|
|
|
3648
3700
|
children
|
|
3649
3701
|
);
|
|
3650
3702
|
var HawaPhoneInput = (props) => {
|
|
3651
|
-
const [selectedCountry, setSelectedCountry] =
|
|
3703
|
+
const [selectedCountry, setSelectedCountry] = useState13("+966");
|
|
3652
3704
|
return /* @__PURE__ */ React26.createElement("div", { className: "mb-3 flex flex-col" }, props.label && /* @__PURE__ */ React26.createElement("label", { className: "mb-2 block text-sm font-medium" }, props.label), /* @__PURE__ */ React26.createElement("div", { dir: "ltr", className: "flex flex-row " }, /* @__PURE__ */ React26.createElement(
|
|
3653
3705
|
Select2,
|
|
3654
3706
|
{
|
|
@@ -3732,7 +3784,7 @@ var HawaPhoneInput = (props) => {
|
|
|
3732
3784
|
};
|
|
3733
3785
|
|
|
3734
3786
|
// src/elements/HawaTabs.tsx
|
|
3735
|
-
import React27, { useState as
|
|
3787
|
+
import React27, { useState as useState14 } from "react";
|
|
3736
3788
|
var HawaTabs = ({
|
|
3737
3789
|
orientation = "horizontal",
|
|
3738
3790
|
direction = "ltr",
|
|
@@ -3741,7 +3793,7 @@ var HawaTabs = ({
|
|
|
3741
3793
|
pill = false,
|
|
3742
3794
|
...props
|
|
3743
3795
|
}) => {
|
|
3744
|
-
const [selectedOption, setSelectedOption] =
|
|
3796
|
+
const [selectedOption, setSelectedOption] = useState14(props.options[0]?.value);
|
|
3745
3797
|
let activeTabStyle = {
|
|
3746
3798
|
vertical: "inline-block py-2 px-4 text-white bg-primary active",
|
|
3747
3799
|
horizontal: "inline-block py-2 px-4 text-white bg-primary active"
|
|
@@ -3837,8 +3889,8 @@ var HawaTabs = ({
|
|
|
3837
3889
|
};
|
|
3838
3890
|
|
|
3839
3891
|
// src/elements/HawaModal.tsx
|
|
3840
|
-
import React28, { useEffect as
|
|
3841
|
-
import
|
|
3892
|
+
import React28, { useEffect as useEffect8 } from "react";
|
|
3893
|
+
import clsx14 from "clsx";
|
|
3842
3894
|
var HawaModal = ({
|
|
3843
3895
|
open,
|
|
3844
3896
|
title,
|
|
@@ -3847,7 +3899,7 @@ var HawaModal = ({
|
|
|
3847
3899
|
...props
|
|
3848
3900
|
}) => {
|
|
3849
3901
|
let defaultStyle = "absolute top-1/2 left-1/2 w-full h-screen flex flex-col justify-center items-center -translate-x-1/2 -translate-y-1/2 transition-all";
|
|
3850
|
-
|
|
3902
|
+
useEffect8(() => {
|
|
3851
3903
|
if (closeOnClickOutside && open) {
|
|
3852
3904
|
window.onclick = (e) => {
|
|
3853
3905
|
e.stopPropagation();
|
|
@@ -3859,7 +3911,7 @@ var HawaModal = ({
|
|
|
3859
3911
|
return /* @__PURE__ */ React28.createElement(
|
|
3860
3912
|
"div",
|
|
3861
3913
|
{
|
|
3862
|
-
className:
|
|
3914
|
+
className: clsx14(
|
|
3863
3915
|
defaultStyle,
|
|
3864
3916
|
open ? "z-10 opacity-100 " : "invisible -z-10 opacity-0"
|
|
3865
3917
|
)
|
|
@@ -3867,7 +3919,7 @@ var HawaModal = ({
|
|
|
3867
3919
|
/* @__PURE__ */ React28.createElement(
|
|
3868
3920
|
"div",
|
|
3869
3921
|
{
|
|
3870
|
-
className:
|
|
3922
|
+
className: clsx14(
|
|
3871
3923
|
"absolute h-screen w-full bg-gray-500 opacity-50",
|
|
3872
3924
|
open ? "opacity-50" : "opacity-0"
|
|
3873
3925
|
)
|
|
@@ -3905,13 +3957,162 @@ var HawaModal = ({
|
|
|
3905
3957
|
);
|
|
3906
3958
|
};
|
|
3907
3959
|
|
|
3960
|
+
// src/elements/HawaMenu.tsx
|
|
3961
|
+
import React29, { useEffect as useEffect9, useRef as useRef5, useState as useState15 } from "react";
|
|
3962
|
+
import clsx15 from "clsx";
|
|
3963
|
+
var HawaMenu = ({
|
|
3964
|
+
menuItems,
|
|
3965
|
+
withHeader,
|
|
3966
|
+
direction = "ltr",
|
|
3967
|
+
headerTitle,
|
|
3968
|
+
headerSubtitle,
|
|
3969
|
+
size = "normal",
|
|
3970
|
+
children,
|
|
3971
|
+
onClickOutside,
|
|
3972
|
+
actionedItem,
|
|
3973
|
+
position = "top-right"
|
|
3974
|
+
}) => {
|
|
3975
|
+
const [menuOpened, setMenuOpened] = useState15(false);
|
|
3976
|
+
const childrenRef = useRef5(null);
|
|
3977
|
+
const [childrenHeight, setChildrenHeight] = useState15(null);
|
|
3978
|
+
const [childrenWidth, setChildrenWidth] = useState15(null);
|
|
3979
|
+
const menuRef = useRef5(null);
|
|
3980
|
+
const [menuWidth, setMenuWidth] = useState15(null);
|
|
3981
|
+
const [menuHeight, setMenuHeight] = useState15(null);
|
|
3982
|
+
useEffect9(() => {
|
|
3983
|
+
setMenuHeight(menuRef.current?.getBoundingClientRect().height);
|
|
3984
|
+
setMenuWidth(menuRef.current?.getBoundingClientRect().width);
|
|
3985
|
+
setChildrenHeight(childrenRef.current?.getBoundingClientRect().height);
|
|
3986
|
+
setChildrenWidth(childrenRef.current?.getBoundingClientRect().width);
|
|
3987
|
+
const handleClickOutside = (event) => {
|
|
3988
|
+
if (menuRef.current && !menuRef.current.contains(event.target)) {
|
|
3989
|
+
setMenuOpened(false);
|
|
3990
|
+
}
|
|
3991
|
+
};
|
|
3992
|
+
document.addEventListener("click", handleClickOutside, true);
|
|
3993
|
+
return () => {
|
|
3994
|
+
document.removeEventListener("click", handleClickOutside, true);
|
|
3995
|
+
};
|
|
3996
|
+
}, [onClickOutside]);
|
|
3997
|
+
let defaultStyles = "border-none absolute ring-offset-1 absolute z-10 w-44 divide-y divide-gray-100 overflow-y-clip rounded bg-gray-50 shadow-lg transition-all dark:bg-gray-700";
|
|
3998
|
+
let sizeStyles2 = {
|
|
3999
|
+
small: "text-[11px] p-1 px-4 m-0",
|
|
4000
|
+
normal: "py-2 px-4",
|
|
4001
|
+
large: ""
|
|
4002
|
+
};
|
|
4003
|
+
let menuCoordinates;
|
|
4004
|
+
let spacing = 5;
|
|
4005
|
+
switch (position) {
|
|
4006
|
+
case "top-right":
|
|
4007
|
+
menuCoordinates = direction === "rtl" ? `${menuWidth - childrenWidth}px, -${menuHeight + childrenHeight + spacing}px` : `0px, -${menuHeight + childrenHeight + spacing}px`;
|
|
4008
|
+
break;
|
|
4009
|
+
case "top-left":
|
|
4010
|
+
menuCoordinates = direction === "rtl" ? `${0}px, -${menuHeight + childrenHeight + spacing}px` : `-${menuWidth - childrenWidth}px, -${menuHeight + childrenHeight + spacing}px`;
|
|
4011
|
+
break;
|
|
4012
|
+
case "bottom-right":
|
|
4013
|
+
menuCoordinates = direction === "rtl" ? `-${0}px, ${spacing}px` : `-${childrenWidth - menuWidth}px, ${spacing}px`;
|
|
4014
|
+
break;
|
|
4015
|
+
case "bottom-left":
|
|
4016
|
+
menuCoordinates = direction === "rtl" ? `0px, ${spacing}px` : `-${menuWidth - childrenWidth}px,${spacing}px`;
|
|
4017
|
+
break;
|
|
4018
|
+
case "right-bottom":
|
|
4019
|
+
menuCoordinates = direction === "rtl" ? `${menuWidth + spacing}px, -${childrenHeight}px` : `${childrenWidth + spacing}px, -${childrenHeight}px`;
|
|
4020
|
+
break;
|
|
4021
|
+
case "right-top":
|
|
4022
|
+
menuCoordinates = direction === "rtl" ? `${menuWidth + spacing}px, -${menuHeight}px` : `${childrenWidth + spacing}px, -${menuHeight}px`;
|
|
4023
|
+
break;
|
|
4024
|
+
case "left-bottom":
|
|
4025
|
+
menuCoordinates = direction === "rtl" ? `-${childrenWidth + spacing}px, -${childrenHeight}px` : `-${menuWidth + spacing}px, -${childrenHeight}px`;
|
|
4026
|
+
break;
|
|
4027
|
+
case "left-top":
|
|
4028
|
+
menuCoordinates = direction === "rtl" ? `-${childrenWidth + spacing}px, -${menuHeight}px` : `-${menuWidth + spacing}px, -${menuHeight}px`;
|
|
4029
|
+
break;
|
|
4030
|
+
default:
|
|
4031
|
+
menuCoordinates = `-${menuWidth / 2}px, -${childrenHeight + menuHeight / 2}px`;
|
|
4032
|
+
break;
|
|
4033
|
+
}
|
|
4034
|
+
return /* @__PURE__ */ React29.createElement(
|
|
4035
|
+
"div",
|
|
4036
|
+
{
|
|
4037
|
+
onClick: () => {
|
|
4038
|
+
if (menuOpened)
|
|
4039
|
+
setMenuOpened(false);
|
|
4040
|
+
else
|
|
4041
|
+
setMenuOpened(true);
|
|
4042
|
+
}
|
|
4043
|
+
},
|
|
4044
|
+
/* @__PURE__ */ React29.createElement("div", { ref: childrenRef }, children),
|
|
4045
|
+
/* @__PURE__ */ React29.createElement(
|
|
4046
|
+
"div",
|
|
4047
|
+
{
|
|
4048
|
+
ref: menuRef,
|
|
4049
|
+
style: {
|
|
4050
|
+
position: "absolute",
|
|
4051
|
+
width: "max-content",
|
|
4052
|
+
transform: `translate(${menuCoordinates})`,
|
|
4053
|
+
maxWidth: "200px"
|
|
4054
|
+
},
|
|
4055
|
+
className: clsx15(
|
|
4056
|
+
defaultStyles,
|
|
4057
|
+
menuOpened ? "opacity-100" : "invisible opacity-0"
|
|
4058
|
+
)
|
|
4059
|
+
},
|
|
4060
|
+
withHeader && /* @__PURE__ */ React29.createElement("div", { className: "px-4 py-3 text-xs text-gray-900 dark:text-white" }, /* @__PURE__ */ React29.createElement("div", null, headerTitle), /* @__PURE__ */ React29.createElement("div", { className: "truncate font-medium" }, headerSubtitle)),
|
|
4061
|
+
menuItems?.map((group, o) => {
|
|
4062
|
+
return /* @__PURE__ */ React29.createElement(
|
|
4063
|
+
"ul",
|
|
4064
|
+
{
|
|
4065
|
+
key: o,
|
|
4066
|
+
className: "bg-layout-1200 flex flex-col gap-1 p-1 text-gray-700 dark:text-gray-200"
|
|
4067
|
+
},
|
|
4068
|
+
group?.map((item, indx) => {
|
|
4069
|
+
return item.element ? /* @__PURE__ */ React29.createElement(
|
|
4070
|
+
"li",
|
|
4071
|
+
{
|
|
4072
|
+
key: indx,
|
|
4073
|
+
className: "cursor-pointer items-center rounded hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white"
|
|
4074
|
+
},
|
|
4075
|
+
item.element
|
|
4076
|
+
) : /* @__PURE__ */ React29.createElement(
|
|
4077
|
+
"li",
|
|
4078
|
+
{
|
|
4079
|
+
key: indx,
|
|
4080
|
+
onClick: () => {
|
|
4081
|
+
if (item.disabled) {
|
|
4082
|
+
console.log("button is disabled");
|
|
4083
|
+
} else {
|
|
4084
|
+
item?.action(actionedItem);
|
|
4085
|
+
}
|
|
4086
|
+
},
|
|
4087
|
+
className: clsx15(
|
|
4088
|
+
"transition-all",
|
|
4089
|
+
item.isButton ? "flex cursor-pointer flex-row items-center rounded-inner bg-buttonPrimary-500 px-4 py-2 text-white hover:bg-buttonPrimary-700 rtl:flex-row-reverse" : item.disabled ? "text-gray-300" : " flex cursor-pointer flex-row items-center rounded-inner hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white ",
|
|
4090
|
+
sizeStyles2[size]
|
|
4091
|
+
)
|
|
4092
|
+
},
|
|
4093
|
+
item.icon && /* @__PURE__ */ React29.createElement(
|
|
4094
|
+
"div",
|
|
4095
|
+
{
|
|
4096
|
+
className: size === "small" ? "mr-1 rtl:ml-1" : "mr-2 rtl:ml-2"
|
|
4097
|
+
},
|
|
4098
|
+
item.icon
|
|
4099
|
+
),
|
|
4100
|
+
item.label
|
|
4101
|
+
);
|
|
4102
|
+
})
|
|
4103
|
+
);
|
|
4104
|
+
})
|
|
4105
|
+
)
|
|
4106
|
+
);
|
|
4107
|
+
};
|
|
4108
|
+
|
|
3908
4109
|
// src/elements/HawaDropdownMenu.tsx
|
|
3909
|
-
import
|
|
3910
|
-
import * as
|
|
4110
|
+
import React30 from "react";
|
|
4111
|
+
import * as DropdownMenu2 from "@radix-ui/react-dropdown-menu";
|
|
3911
4112
|
var HawaDropdownMenu = ({ children, direction }) => {
|
|
3912
|
-
const [bookmarksChecked, setBookmarksChecked] =
|
|
3913
|
-
const [urlsChecked, setUrlsChecked] =
|
|
3914
|
-
const [person, setPerson] =
|
|
4113
|
+
const [bookmarksChecked, setBookmarksChecked] = React30.useState(true);
|
|
4114
|
+
const [urlsChecked, setUrlsChecked] = React30.useState(false);
|
|
4115
|
+
const [person, setPerson] = React30.useState("pedro");
|
|
3915
4116
|
let dropdownData = {
|
|
3916
4117
|
items: [
|
|
3917
4118
|
{
|
|
@@ -3948,34 +4149,34 @@ var HawaDropdownMenu = ({ children, direction }) => {
|
|
|
3948
4149
|
}
|
|
3949
4150
|
]
|
|
3950
4151
|
};
|
|
3951
|
-
return /* @__PURE__ */
|
|
3952
|
-
|
|
4152
|
+
return /* @__PURE__ */ React30.createElement(DropdownMenu2.Root, { dir: direction }, /* @__PURE__ */ React30.createElement(DropdownMenu2.Trigger, { asChild: true }, children), /* @__PURE__ */ React30.createElement(DropdownMenu2.Portal, null, /* @__PURE__ */ React30.createElement(
|
|
4153
|
+
DropdownMenu2.Content,
|
|
3953
4154
|
{
|
|
3954
4155
|
className: "min-w-[220px] rounded bg-white p-[5px] shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),_0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)] will-change-[opacity,transform] data-[side=bottom]:animate-slideUpAndFade data-[side=left]:animate-slideRightAndFade data-[side=right]:animate-slideLeftAndFade data-[side=top]:animate-slideDownAndFade",
|
|
3955
4156
|
sideOffset: 5
|
|
3956
4157
|
},
|
|
3957
|
-
dropdownData.items.map((it, i) => /* @__PURE__ */
|
|
3958
|
-
|
|
4158
|
+
dropdownData.items.map((it, i) => /* @__PURE__ */ React30.createElement(
|
|
4159
|
+
DropdownMenu2.Item,
|
|
3959
4160
|
{
|
|
3960
4161
|
key: i,
|
|
3961
4162
|
className: "group relative flex h-[25px] select-none items-center justify-between \n rounded-inner px-[5px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8\n data-[highlighted]:text-violet-1 ",
|
|
3962
4163
|
disabled: it.disabled
|
|
3963
4164
|
},
|
|
3964
4165
|
it.label,
|
|
3965
|
-
/* @__PURE__ */
|
|
4166
|
+
/* @__PURE__ */ React30.createElement("div", { className: " text-mauve-11 group-data-[disabled]:text-mauve-8 group-data-[highlighted]:text-white" }, it.shortcut)
|
|
3966
4167
|
)),
|
|
3967
|
-
/* @__PURE__ */
|
|
3968
|
-
|
|
4168
|
+
/* @__PURE__ */ React30.createElement(DropdownMenu2.Sub, null, /* @__PURE__ */ React30.createElement(
|
|
4169
|
+
DropdownMenu2.SubTrigger,
|
|
3969
4170
|
{
|
|
3970
4171
|
className: " group relative flex h-[25px] select-none \n items-center rounded-inner justify-between flex-row\n px-[5px] text-[13px] leading-none text-violet-11\n outline-none data-[disabled]:pointer-events-none\n data-[highlighted]:bg-violet-9 data-[highlighted]:data-[state=open]:bg-violet-9\n data-[state=open]:bg-violet-4 data-[disabled]:text-mauve-8 data-[highlighted]:data-[state=open]:text-violet-1\n data-[highlighted]:text-violet-1 data-[state=open]:text-violet-11 ltr:pl-[25px] rtl:pl-[0px] "
|
|
3971
4172
|
},
|
|
3972
4173
|
"More Tools",
|
|
3973
|
-
/* @__PURE__ */
|
|
4174
|
+
/* @__PURE__ */ React30.createElement(
|
|
3974
4175
|
"div",
|
|
3975
4176
|
{
|
|
3976
4177
|
className: "ltr:ml-auto rtl:pr-[5px] ltr:pl-[0px] text-mauve-11 group-data-[disabled]:text-mauve-8 group-data-[highlighted]:text-white\n rtl:mr-auto rtl:rotate-180 rtl:pl-[0px]"
|
|
3977
4178
|
},
|
|
3978
|
-
/* @__PURE__ */
|
|
4179
|
+
/* @__PURE__ */ React30.createElement(
|
|
3979
4180
|
"svg",
|
|
3980
4181
|
{
|
|
3981
4182
|
"aria-label": "Chevron Right Icon",
|
|
@@ -3986,7 +4187,7 @@ var HawaDropdownMenu = ({ children, direction }) => {
|
|
|
3986
4187
|
height: "1em",
|
|
3987
4188
|
width: "1em"
|
|
3988
4189
|
},
|
|
3989
|
-
/* @__PURE__ */
|
|
4190
|
+
/* @__PURE__ */ React30.createElement(
|
|
3990
4191
|
"path",
|
|
3991
4192
|
{
|
|
3992
4193
|
"fill-rule": "evenodd",
|
|
@@ -3995,29 +4196,29 @@ var HawaDropdownMenu = ({ children, direction }) => {
|
|
|
3995
4196
|
)
|
|
3996
4197
|
)
|
|
3997
4198
|
)
|
|
3998
|
-
), /* @__PURE__ */
|
|
3999
|
-
|
|
4199
|
+
), /* @__PURE__ */ React30.createElement(DropdownMenu2.Portal, null, /* @__PURE__ */ React30.createElement(
|
|
4200
|
+
DropdownMenu2.SubContent,
|
|
4000
4201
|
{
|
|
4001
4202
|
className: "min-w-[220px] rounded-inner bg-white p-[5px] shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),_0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)] will-change-[opacity,transform] data-[side=bottom]:animate-slideUpAndFade data-[side=left]:animate-slideRightAndFade data-[side=right]:animate-slideLeftAndFade data-[side=top]:animate-slideDownAndFade",
|
|
4002
4203
|
sideOffset: 2,
|
|
4003
4204
|
alignOffset: -5
|
|
4004
4205
|
},
|
|
4005
|
-
/* @__PURE__ */
|
|
4006
|
-
/* @__PURE__ */
|
|
4007
|
-
/* @__PURE__ */
|
|
4008
|
-
/* @__PURE__ */
|
|
4009
|
-
/* @__PURE__ */
|
|
4206
|
+
/* @__PURE__ */ React30.createElement(DropdownMenu2.Item, { className: "group relative flex h-[25px] select-none items-center rounded-inner px-[5px] pl-[25px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1" }, "Save Page As\u2026", " ", /* @__PURE__ */ React30.createElement("div", { className: "ml-auto pl-[20px] text-mauve-11 group-data-[disabled]:text-mauve-8 group-data-[highlighted]:text-white" }, "\u2318+S")),
|
|
4207
|
+
/* @__PURE__ */ React30.createElement(DropdownMenu2.Item, { className: "relative flex h-[25px] select-none items-center rounded-inner px-[5px] pl-[25px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1" }, "Create Shortcut\u2026"),
|
|
4208
|
+
/* @__PURE__ */ React30.createElement(DropdownMenu2.Item, { className: "relative flex h-[25px] select-none items-center rounded-inner px-[5px] pl-[25px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1" }, "Name Window\u2026"),
|
|
4209
|
+
/* @__PURE__ */ React30.createElement(DropdownMenu2.Separator, { className: "m-[5px] h-[1px] bg-violet-6" }),
|
|
4210
|
+
/* @__PURE__ */ React30.createElement(DropdownMenu2.Item, { className: "relative flex h-[25px] select-none items-center rounded-inner px-[5px] pl-[25px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1" }, "Developer Tools")
|
|
4010
4211
|
))),
|
|
4011
|
-
/* @__PURE__ */
|
|
4012
|
-
dropdownData.checkboxes.map((ch, i) => /* @__PURE__ */
|
|
4013
|
-
|
|
4212
|
+
/* @__PURE__ */ React30.createElement(DropdownMenu2.Separator, { className: "m-[5px] h-[1px] bg-violet-6" }),
|
|
4213
|
+
dropdownData.checkboxes.map((ch, i) => /* @__PURE__ */ React30.createElement(
|
|
4214
|
+
DropdownMenu2.CheckboxItem,
|
|
4014
4215
|
{
|
|
4015
4216
|
key: i,
|
|
4016
4217
|
className: "group relative flex h-[25px] select-none items-center\n justify-between rounded-inner px-[5px] text-[13px] leading-none text-violet-11\n outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8\n data-[highlighted]:text-violet-1",
|
|
4017
4218
|
checked: bookmarksChecked,
|
|
4018
4219
|
onCheckedChange: setBookmarksChecked
|
|
4019
4220
|
},
|
|
4020
|
-
/* @__PURE__ */
|
|
4221
|
+
/* @__PURE__ */ React30.createElement(DropdownMenu2.ItemIndicator, { className: "absolute inline-flex w-[25px] items-center justify-center ltr:left-0 rtl:right-0" }, /* @__PURE__ */ React30.createElement(
|
|
4021
4222
|
"svg",
|
|
4022
4223
|
{
|
|
4023
4224
|
"aria-label": "Check Mark",
|
|
@@ -4028,20 +4229,20 @@ var HawaDropdownMenu = ({ children, direction }) => {
|
|
|
4028
4229
|
height: "0.60em",
|
|
4029
4230
|
width: "0.60em"
|
|
4030
4231
|
},
|
|
4031
|
-
/* @__PURE__ */
|
|
4232
|
+
/* @__PURE__ */ React30.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" })
|
|
4032
4233
|
), " "),
|
|
4033
4234
|
ch.label,
|
|
4034
|
-
/* @__PURE__ */
|
|
4235
|
+
/* @__PURE__ */ React30.createElement("div", { className: " text-mauve-11 group-data-[disabled]:text-mauve-8 group-data-[highlighted]:text-white" }, ch.shortcut)
|
|
4035
4236
|
)),
|
|
4036
|
-
/* @__PURE__ */
|
|
4037
|
-
/* @__PURE__ */
|
|
4038
|
-
/* @__PURE__ */
|
|
4039
|
-
|
|
4237
|
+
/* @__PURE__ */ React30.createElement(DropdownMenu2.Separator, { className: "m-[5px] h-[1px] bg-violet-6" }),
|
|
4238
|
+
/* @__PURE__ */ React30.createElement(DropdownMenu2.Label, { className: "pl-[25px] text-xs leading-[25px] text-mauve-11" }, "People"),
|
|
4239
|
+
/* @__PURE__ */ React30.createElement(DropdownMenu2.RadioGroup, { value: person, onValueChange: setPerson }, /* @__PURE__ */ React30.createElement(
|
|
4240
|
+
DropdownMenu2.RadioItem,
|
|
4040
4241
|
{
|
|
4041
4242
|
className: "relative flex h-[25px] select-none items-center rounded-inner px-[5px] pl-[25px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1",
|
|
4042
4243
|
value: "pedro"
|
|
4043
4244
|
},
|
|
4044
|
-
/* @__PURE__ */
|
|
4245
|
+
/* @__PURE__ */ React30.createElement(DropdownMenu2.ItemIndicator, { className: "absolute left-0 inline-flex w-[25px] items-center justify-center" }, /* @__PURE__ */ React30.createElement(
|
|
4045
4246
|
"svg",
|
|
4046
4247
|
{
|
|
4047
4248
|
"aria-label": "Filled Dot",
|
|
@@ -4050,7 +4251,7 @@ var HawaDropdownMenu = ({ children, direction }) => {
|
|
|
4050
4251
|
viewBox: "0 0 15 15",
|
|
4051
4252
|
fill: "none"
|
|
4052
4253
|
},
|
|
4053
|
-
/* @__PURE__ */
|
|
4254
|
+
/* @__PURE__ */ React30.createElement(
|
|
4054
4255
|
"path",
|
|
4055
4256
|
{
|
|
4056
4257
|
d: "M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",
|
|
@@ -4059,13 +4260,13 @@ var HawaDropdownMenu = ({ children, direction }) => {
|
|
|
4059
4260
|
)
|
|
4060
4261
|
), " "),
|
|
4061
4262
|
"Pedro Duarte"
|
|
4062
|
-
), /* @__PURE__ */
|
|
4063
|
-
|
|
4263
|
+
), /* @__PURE__ */ React30.createElement(
|
|
4264
|
+
DropdownMenu2.RadioItem,
|
|
4064
4265
|
{
|
|
4065
4266
|
className: "relative flex h-[25px] select-none items-center rounded-inner px-[5px] pl-[25px] text-[13px] leading-none text-violet-11 outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-violet-9 data-[disabled]:text-mauve-8 data-[highlighted]:text-violet-1",
|
|
4066
4267
|
value: "colm"
|
|
4067
4268
|
},
|
|
4068
|
-
/* @__PURE__ */
|
|
4269
|
+
/* @__PURE__ */ React30.createElement(DropdownMenu2.ItemIndicator, { className: "absolute left-0 inline-flex w-[25px] items-center justify-center" }, /* @__PURE__ */ React30.createElement(
|
|
4069
4270
|
"svg",
|
|
4070
4271
|
{
|
|
4071
4272
|
"aria-label": "Filled Dot",
|
|
@@ -4074,7 +4275,7 @@ var HawaDropdownMenu = ({ children, direction }) => {
|
|
|
4074
4275
|
viewBox: "0 0 15 15",
|
|
4075
4276
|
fill: "none"
|
|
4076
4277
|
},
|
|
4077
|
-
/* @__PURE__ */
|
|
4278
|
+
/* @__PURE__ */ React30.createElement(
|
|
4078
4279
|
"path",
|
|
4079
4280
|
{
|
|
4080
4281
|
d: "M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",
|
|
@@ -4084,18 +4285,18 @@ var HawaDropdownMenu = ({ children, direction }) => {
|
|
|
4084
4285
|
), " "),
|
|
4085
4286
|
"Colm Tuite"
|
|
4086
4287
|
)),
|
|
4087
|
-
/* @__PURE__ */
|
|
4288
|
+
/* @__PURE__ */ React30.createElement(DropdownMenu2.Arrow, { className: "fill-white" })
|
|
4088
4289
|
)));
|
|
4089
4290
|
};
|
|
4090
4291
|
|
|
4091
4292
|
// src/elements/HawaCopyrights.tsx
|
|
4092
|
-
import
|
|
4293
|
+
import React31 from "react";
|
|
4093
4294
|
var HawaCopyrights = (props) => {
|
|
4094
|
-
return /* @__PURE__ */
|
|
4295
|
+
return /* @__PURE__ */ React31.createElement("div", { className: "my-2 flex flex-col items-center justify-center gap-1 text-xs text-gray-400" }, props.withLogo ? /* @__PURE__ */ React31.createElement("a", { href: props.onLogoClicked }, /* @__PURE__ */ React31.createElement("div", { className: "cursor-pointer" }, /* @__PURE__ */ React31.createElement("image", { href: props.logoURL, width: 100, height: 50 }))) : null, /* @__PURE__ */ React31.createElement("div", null, props.version), props.credits ? props.credits : null);
|
|
4095
4296
|
};
|
|
4096
4297
|
|
|
4097
4298
|
// src/elements/HawaStepper.tsx
|
|
4098
|
-
import
|
|
4299
|
+
import React32 from "react";
|
|
4099
4300
|
import clsx16 from "clsx";
|
|
4100
4301
|
var HawaStepper = ({
|
|
4101
4302
|
orientation = "horizontal",
|
|
@@ -4109,7 +4310,7 @@ var HawaStepper = ({
|
|
|
4109
4310
|
vertical: "w-1 h-32 rounded bg-red-200 ml-6 my-2",
|
|
4110
4311
|
horizontal: "h-0.5 flex w-full rounded bg-red-200"
|
|
4111
4312
|
};
|
|
4112
|
-
return /* @__PURE__ */
|
|
4313
|
+
return /* @__PURE__ */ React32.createElement(
|
|
4113
4314
|
"div",
|
|
4114
4315
|
{
|
|
4115
4316
|
className: clsx16(
|
|
@@ -4118,18 +4319,18 @@ var HawaStepper = ({
|
|
|
4118
4319
|
)
|
|
4119
4320
|
},
|
|
4120
4321
|
props.steps.map((step, i) => {
|
|
4121
|
-
return /* @__PURE__ */
|
|
4322
|
+
return /* @__PURE__ */ React32.createElement(
|
|
4122
4323
|
"div",
|
|
4123
4324
|
{
|
|
4124
4325
|
key: i,
|
|
4125
4326
|
className: "my-2 flex w-auto flex-row flex-wrap justify-start "
|
|
4126
4327
|
},
|
|
4127
|
-
/* @__PURE__ */
|
|
4328
|
+
/* @__PURE__ */ React32.createElement(
|
|
4128
4329
|
"div",
|
|
4129
4330
|
{
|
|
4130
4331
|
className: orientation === "vertical" ? "flex w-full flex-row items-center" : i + 1 === props.steps.length ? "flex w-full flex-row items-center justify-start gap-2" : "flex flex-row items-center justify-start gap-2 after:mx-2 after:hidden after:h-1 after:w-10 after:border-b after:border-gray-200 dark:after:border-gray-700 sm:after:inline-block sm:after:content-[''] md:w-full xl:after:mx-10"
|
|
4131
4332
|
},
|
|
4132
|
-
/* @__PURE__ */
|
|
4333
|
+
/* @__PURE__ */ React32.createElement("div", { className: "flex flex-row gap-2 " }, /* @__PURE__ */ React32.createElement(
|
|
4133
4334
|
"div",
|
|
4134
4335
|
{
|
|
4135
4336
|
className: clsx16(
|
|
@@ -4137,7 +4338,7 @@ var HawaStepper = ({
|
|
|
4137
4338
|
i + 1 <= props.currentStep ? "bg-primary text-primary-foreground " : "bg-primary/20"
|
|
4138
4339
|
)
|
|
4139
4340
|
},
|
|
4140
|
-
i + 1 <= props.currentStep ? /* @__PURE__ */
|
|
4341
|
+
i + 1 <= props.currentStep ? /* @__PURE__ */ React32.createElement(
|
|
4141
4342
|
"svg",
|
|
4142
4343
|
{
|
|
4143
4344
|
"aria-label": "Check Mark",
|
|
@@ -4148,9 +4349,9 @@ var HawaStepper = ({
|
|
|
4148
4349
|
height: "0.60em",
|
|
4149
4350
|
width: "0.60em"
|
|
4150
4351
|
},
|
|
4151
|
-
/* @__PURE__ */
|
|
4352
|
+
/* @__PURE__ */ React32.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" })
|
|
4152
4353
|
) : i + 1
|
|
4153
|
-
), /* @__PURE__ */
|
|
4354
|
+
), /* @__PURE__ */ React32.createElement("div", { className: "whitespace-nowrap" }, step))
|
|
4154
4355
|
)
|
|
4155
4356
|
);
|
|
4156
4357
|
})
|
|
@@ -4158,12 +4359,12 @@ var HawaStepper = ({
|
|
|
4158
4359
|
};
|
|
4159
4360
|
|
|
4160
4361
|
// src/elements/HawaStats.tsx
|
|
4161
|
-
import
|
|
4362
|
+
import React35 from "react";
|
|
4162
4363
|
|
|
4163
4364
|
// src/elements/Card.tsx
|
|
4164
|
-
import * as
|
|
4165
|
-
var Card =
|
|
4166
|
-
({ className, clickable = false, ...props }, ref) => /* @__PURE__ */
|
|
4365
|
+
import * as React33 from "react";
|
|
4366
|
+
var Card = React33.forwardRef(
|
|
4367
|
+
({ className, clickable = false, ...props }, ref) => /* @__PURE__ */ React33.createElement(
|
|
4167
4368
|
"div",
|
|
4168
4369
|
{
|
|
4169
4370
|
ref,
|
|
@@ -4177,7 +4378,7 @@ var Card = React32.forwardRef(
|
|
|
4177
4378
|
)
|
|
4178
4379
|
);
|
|
4179
4380
|
Card.displayName = "Card";
|
|
4180
|
-
var CardHeader =
|
|
4381
|
+
var CardHeader = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React33.createElement(
|
|
4181
4382
|
"div",
|
|
4182
4383
|
{
|
|
4183
4384
|
ref,
|
|
@@ -4186,7 +4387,7 @@ var CardHeader = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
4186
4387
|
}
|
|
4187
4388
|
));
|
|
4188
4389
|
CardHeader.displayName = "CardHeader";
|
|
4189
|
-
var CardTitle =
|
|
4390
|
+
var CardTitle = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React33.createElement(
|
|
4190
4391
|
"h3",
|
|
4191
4392
|
{
|
|
4192
4393
|
ref,
|
|
@@ -4198,7 +4399,7 @@ var CardTitle = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4198
4399
|
}
|
|
4199
4400
|
));
|
|
4200
4401
|
CardTitle.displayName = "CardTitle";
|
|
4201
|
-
var CardDescription =
|
|
4402
|
+
var CardDescription = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React33.createElement(
|
|
4202
4403
|
"p",
|
|
4203
4404
|
{
|
|
4204
4405
|
ref,
|
|
@@ -4207,7 +4408,7 @@ var CardDescription = React32.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
4207
4408
|
}
|
|
4208
4409
|
));
|
|
4209
4410
|
CardDescription.displayName = "CardDescription";
|
|
4210
|
-
var CardContent =
|
|
4411
|
+
var CardContent = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React33.createElement(
|
|
4211
4412
|
"div",
|
|
4212
4413
|
{
|
|
4213
4414
|
ref,
|
|
@@ -4216,7 +4417,7 @@ var CardContent = React32.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4216
4417
|
}
|
|
4217
4418
|
));
|
|
4218
4419
|
CardContent.displayName = "CardContent";
|
|
4219
|
-
var CardFooter =
|
|
4420
|
+
var CardFooter = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React33.createElement(
|
|
4220
4421
|
"div",
|
|
4221
4422
|
{
|
|
4222
4423
|
ref,
|
|
@@ -4227,12 +4428,12 @@ var CardFooter = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
4227
4428
|
CardFooter.displayName = "CardFooter";
|
|
4228
4429
|
|
|
4229
4430
|
// src/elements/Skeleton.tsx
|
|
4230
|
-
import
|
|
4431
|
+
import React34 from "react";
|
|
4231
4432
|
function Skeleton({
|
|
4232
4433
|
className,
|
|
4233
4434
|
...props
|
|
4234
4435
|
}) {
|
|
4235
|
-
return /* @__PURE__ */
|
|
4436
|
+
return /* @__PURE__ */ React34.createElement(
|
|
4236
4437
|
"div",
|
|
4237
4438
|
{
|
|
4238
4439
|
className: cn("animate-pulse rounded-md bg-muted", className),
|
|
@@ -4243,16 +4444,16 @@ function Skeleton({
|
|
|
4243
4444
|
|
|
4244
4445
|
// src/elements/HawaStats.tsx
|
|
4245
4446
|
var HawaStats = ({ variant = "default", ...props }) => {
|
|
4246
|
-
return /* @__PURE__ */
|
|
4447
|
+
return /* @__PURE__ */ React35.createElement(Card, { onClick: props.handleClick, clickable: Boolean(props.handleClick) }, /* @__PURE__ */ React35.createElement(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2" }, /* @__PURE__ */ React35.createElement(CardTitle, { className: "text-sm font-medium" }, props.label), props.icon && props.icon), /* @__PURE__ */ React35.createElement(CardContent, null, props.isLoading ? /* @__PURE__ */ React35.createElement(Skeleton, { className: "h-8 w-3/4" }) : /* @__PURE__ */ React35.createElement("div", { className: "text-2xl font-bold" }, props.number), props.isLoading && props.helperText ? /* @__PURE__ */ React35.createElement(Skeleton, { className: "mt-2 h-4 w-1/2" }) : props.helperText && /* @__PURE__ */ React35.createElement("p", { className: "text-xs text-muted-foreground" }, props.helperText)));
|
|
4247
4448
|
};
|
|
4248
4449
|
|
|
4249
4450
|
// src/elements/HawaCodeBlock.tsx
|
|
4250
|
-
import
|
|
4451
|
+
import React37, { useState as useState17 } from "react";
|
|
4251
4452
|
|
|
4252
4453
|
// src/elements/Tooltip.tsx
|
|
4253
|
-
import
|
|
4454
|
+
import React36 from "react";
|
|
4254
4455
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
4255
|
-
var TooltipContent =
|
|
4456
|
+
var TooltipContent = React36.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React36.createElement(
|
|
4256
4457
|
TooltipPrimitive.Content,
|
|
4257
4458
|
{
|
|
4258
4459
|
ref,
|
|
@@ -4265,7 +4466,7 @@ var TooltipContent = React35.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
4265
4466
|
}
|
|
4266
4467
|
));
|
|
4267
4468
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
4268
|
-
var TooltipArrow =
|
|
4469
|
+
var TooltipArrow = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React36.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
|
|
4269
4470
|
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
|
4270
4471
|
var Tooltip = ({
|
|
4271
4472
|
side,
|
|
@@ -4277,15 +4478,15 @@ var Tooltip = ({
|
|
|
4277
4478
|
delayDuration = 300,
|
|
4278
4479
|
...props
|
|
4279
4480
|
}) => {
|
|
4280
|
-
return /* @__PURE__ */
|
|
4481
|
+
return /* @__PURE__ */ React36.createElement(TooltipPrimitive.TooltipProvider, { delayDuration }, /* @__PURE__ */ React36.createElement(
|
|
4281
4482
|
TooltipPrimitive.Root,
|
|
4282
4483
|
{
|
|
4283
4484
|
open,
|
|
4284
4485
|
defaultOpen,
|
|
4285
4486
|
onOpenChange
|
|
4286
4487
|
},
|
|
4287
|
-
/* @__PURE__ */
|
|
4288
|
-
/* @__PURE__ */
|
|
4488
|
+
/* @__PURE__ */ React36.createElement(TooltipPrimitive.Trigger, { asChild: true }, children),
|
|
4489
|
+
/* @__PURE__ */ React36.createElement(TooltipContent, { side, align: "center", ...props }, content)
|
|
4289
4490
|
));
|
|
4290
4491
|
};
|
|
4291
4492
|
|
|
@@ -4312,7 +4513,7 @@ var HawaCodeBlock = ({
|
|
|
4312
4513
|
}, 2e3);
|
|
4313
4514
|
}
|
|
4314
4515
|
};
|
|
4315
|
-
return /* @__PURE__ */
|
|
4516
|
+
return /* @__PURE__ */ React37.createElement(
|
|
4316
4517
|
"div",
|
|
4317
4518
|
{
|
|
4318
4519
|
className: cn(
|
|
@@ -4321,14 +4522,14 @@ var HawaCodeBlock = ({
|
|
|
4321
4522
|
)
|
|
4322
4523
|
},
|
|
4323
4524
|
" ",
|
|
4324
|
-
tabs && /* @__PURE__ */
|
|
4525
|
+
tabs && /* @__PURE__ */ React37.createElement("div", { className: "flex flex-row gap-2 rounded-t bg-gray-100 p-2 pb-0 text-black dark:bg-gray-700 dark:text-white" }, tabs.map((tab, i) => /* @__PURE__ */ React37.createElement(
|
|
4325
4526
|
"div",
|
|
4326
4527
|
{
|
|
4327
4528
|
className: cn(
|
|
4328
4529
|
selectedTab === i ? " border-b-2 border-primary" : "bg-transparent"
|
|
4329
4530
|
)
|
|
4330
4531
|
},
|
|
4331
|
-
/* @__PURE__ */
|
|
4532
|
+
/* @__PURE__ */ React37.createElement(
|
|
4332
4533
|
"div",
|
|
4333
4534
|
{
|
|
4334
4535
|
onClick: () => setSelectedTab(i),
|
|
@@ -4339,7 +4540,7 @@ var HawaCodeBlock = ({
|
|
|
4339
4540
|
tab.title
|
|
4340
4541
|
)
|
|
4341
4542
|
))),
|
|
4342
|
-
fileName && /* @__PURE__ */
|
|
4543
|
+
fileName && /* @__PURE__ */ React37.createElement("div", { className: "flex flex-row gap-2 rounded-t bg-gray-100 p-2 pb-0 text-black dark:bg-gray-700 dark:text-white" }, /* @__PURE__ */ React37.createElement(
|
|
4343
4544
|
"div",
|
|
4344
4545
|
{
|
|
4345
4546
|
className: cn(
|
|
@@ -4348,22 +4549,22 @@ var HawaCodeBlock = ({
|
|
|
4348
4549
|
},
|
|
4349
4550
|
fileName
|
|
4350
4551
|
)),
|
|
4351
|
-
/* @__PURE__ */
|
|
4552
|
+
/* @__PURE__ */ React37.createElement("pre", null, /* @__PURE__ */ React37.createElement(
|
|
4352
4553
|
"code",
|
|
4353
4554
|
{
|
|
4354
4555
|
className: cn(
|
|
4355
4556
|
"flex w-full flex-row items-start justify-between rounded bg-gray-200 p-2 text-left text-sm text-black dark:bg-gray-800 dark:text-white sm:text-base"
|
|
4356
4557
|
)
|
|
4357
4558
|
},
|
|
4358
|
-
/* @__PURE__ */
|
|
4359
|
-
/* @__PURE__ */
|
|
4559
|
+
/* @__PURE__ */ React37.createElement("div", { className: "flex min-h-[37.75px] w-full flex-col justify-center p-4 " }, tabs ? tabs[selectedTab].code : code),
|
|
4560
|
+
/* @__PURE__ */ React37.createElement("div", { className: "flex w-fit flex-row items-center gap-2 p-2" }, /* @__PURE__ */ React37.createElement(
|
|
4360
4561
|
Tooltip,
|
|
4361
4562
|
{
|
|
4362
4563
|
open: copyClicked,
|
|
4363
4564
|
side: "left",
|
|
4364
|
-
content: /* @__PURE__ */
|
|
4565
|
+
content: /* @__PURE__ */ React37.createElement("div", null, "Copied!")
|
|
4365
4566
|
},
|
|
4366
|
-
/* @__PURE__ */
|
|
4567
|
+
/* @__PURE__ */ React37.createElement(
|
|
4367
4568
|
Button,
|
|
4368
4569
|
{
|
|
4369
4570
|
size: "icon",
|
|
@@ -4374,7 +4575,7 @@ var HawaCodeBlock = ({
|
|
|
4374
4575
|
);
|
|
4375
4576
|
}
|
|
4376
4577
|
},
|
|
4377
|
-
/* @__PURE__ */
|
|
4578
|
+
/* @__PURE__ */ React37.createElement(
|
|
4378
4579
|
"svg",
|
|
4379
4580
|
{
|
|
4380
4581
|
"aria-label": "Copy Icon",
|
|
@@ -4387,8 +4588,8 @@ var HawaCodeBlock = ({
|
|
|
4387
4588
|
height: "1em",
|
|
4388
4589
|
width: "1em"
|
|
4389
4590
|
},
|
|
4390
|
-
/* @__PURE__ */
|
|
4391
|
-
/* @__PURE__ */
|
|
4591
|
+
/* @__PURE__ */ React37.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
|
4592
|
+
/* @__PURE__ */ React37.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
|
4392
4593
|
)
|
|
4393
4594
|
)
|
|
4394
4595
|
))
|
|
@@ -4397,13 +4598,13 @@ var HawaCodeBlock = ({
|
|
|
4397
4598
|
};
|
|
4398
4599
|
|
|
4399
4600
|
// src/elements/HawaDatepicker.tsx
|
|
4400
|
-
import
|
|
4601
|
+
import React38, { useState as useState18 } from "react";
|
|
4401
4602
|
var HawaDatepicker = () => {
|
|
4402
4603
|
const [selectedDate, setSelectedDate] = useState18("");
|
|
4403
4604
|
const handleDateChange = (event) => {
|
|
4404
4605
|
setSelectedDate(event.target.value);
|
|
4405
4606
|
};
|
|
4406
|
-
return /* @__PURE__ */
|
|
4607
|
+
return /* @__PURE__ */ React38.createElement("div", { className: "relative inline-block text-left" }, /* @__PURE__ */ React38.createElement("span", { className: "rounded-md shadow-sm" }, /* @__PURE__ */ React38.createElement(
|
|
4407
4608
|
"input",
|
|
4408
4609
|
{
|
|
4409
4610
|
type: "date",
|
|
@@ -4415,7 +4616,7 @@ var HawaDatepicker = () => {
|
|
|
4415
4616
|
};
|
|
4416
4617
|
|
|
4417
4618
|
// src/elements/DragDropImages.tsx
|
|
4418
|
-
import
|
|
4619
|
+
import React39, { useEffect as useEffect11, useState as useState19 } from "react";
|
|
4419
4620
|
import { useDropzone } from "react-dropzone";
|
|
4420
4621
|
import clsx17 from "clsx";
|
|
4421
4622
|
var DragDropImages = ({
|
|
@@ -4489,7 +4690,7 @@ var DragDropImages = ({
|
|
|
4489
4690
|
const errs = fileRejections.map((rej, i) => {
|
|
4490
4691
|
switch (rej.errors[0].code) {
|
|
4491
4692
|
case "file-too-large":
|
|
4492
|
-
return /* @__PURE__ */
|
|
4693
|
+
return /* @__PURE__ */ React39.createElement(
|
|
4493
4694
|
HawaAlert,
|
|
4494
4695
|
{
|
|
4495
4696
|
text: rej.file.name,
|
|
@@ -4498,7 +4699,7 @@ var DragDropImages = ({
|
|
|
4498
4699
|
}
|
|
4499
4700
|
);
|
|
4500
4701
|
case "too-many-files":
|
|
4501
|
-
return /* @__PURE__ */
|
|
4702
|
+
return /* @__PURE__ */ React39.createElement(
|
|
4502
4703
|
HawaAlert,
|
|
4503
4704
|
{
|
|
4504
4705
|
text: rej.file.name,
|
|
@@ -4507,7 +4708,7 @@ var DragDropImages = ({
|
|
|
4507
4708
|
}
|
|
4508
4709
|
);
|
|
4509
4710
|
case "file-invalid-type":
|
|
4510
|
-
return /* @__PURE__ */
|
|
4711
|
+
return /* @__PURE__ */ React39.createElement(
|
|
4511
4712
|
HawaAlert,
|
|
4512
4713
|
{
|
|
4513
4714
|
text: rej.file.name,
|
|
@@ -4516,7 +4717,7 @@ var DragDropImages = ({
|
|
|
4516
4717
|
}
|
|
4517
4718
|
);
|
|
4518
4719
|
default:
|
|
4519
|
-
return /* @__PURE__ */
|
|
4720
|
+
return /* @__PURE__ */ React39.createElement(
|
|
4520
4721
|
HawaAlert,
|
|
4521
4722
|
{
|
|
4522
4723
|
text: rej.file.name,
|
|
@@ -4526,7 +4727,7 @@ var DragDropImages = ({
|
|
|
4526
4727
|
);
|
|
4527
4728
|
}
|
|
4528
4729
|
});
|
|
4529
|
-
const thumbs = files?.map((file, index) => /* @__PURE__ */
|
|
4730
|
+
const thumbs = files?.map((file, index) => /* @__PURE__ */ React39.createElement("div", { className: "relative rounded" }, /* @__PURE__ */ React39.createElement(
|
|
4530
4731
|
"button",
|
|
4531
4732
|
{
|
|
4532
4733
|
onClick: (e) => {
|
|
@@ -4539,7 +4740,7 @@ var DragDropImages = ({
|
|
|
4539
4740
|
className: "absolute left-0 ml-auto inline-flex items-center rounded-inner rounded-bl-none rounded-tr-none bg-gray-900 p-1.5 text-sm text-gray-400 transition-all hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white",
|
|
4540
4741
|
"data-modal-toggle": "defaultModal"
|
|
4541
4742
|
},
|
|
4542
|
-
/* @__PURE__ */
|
|
4743
|
+
/* @__PURE__ */ React39.createElement(
|
|
4543
4744
|
"svg",
|
|
4544
4745
|
{
|
|
4545
4746
|
"aria-hidden": "true",
|
|
@@ -4547,7 +4748,7 @@ var DragDropImages = ({
|
|
|
4547
4748
|
fill: "currentColor",
|
|
4548
4749
|
viewBox: "0 0 20 20"
|
|
4549
4750
|
},
|
|
4550
|
-
/* @__PURE__ */
|
|
4751
|
+
/* @__PURE__ */ React39.createElement(
|
|
4551
4752
|
"path",
|
|
4552
4753
|
{
|
|
4553
4754
|
fillRule: "evenodd",
|
|
@@ -4556,8 +4757,8 @@ var DragDropImages = ({
|
|
|
4556
4757
|
}
|
|
4557
4758
|
)
|
|
4558
4759
|
),
|
|
4559
|
-
/* @__PURE__ */
|
|
4560
|
-
), /* @__PURE__ */
|
|
4760
|
+
/* @__PURE__ */ React39.createElement("span", { className: "sr-only" }, "Close modal")
|
|
4761
|
+
), /* @__PURE__ */ React39.createElement(
|
|
4561
4762
|
"div",
|
|
4562
4763
|
{
|
|
4563
4764
|
style: {
|
|
@@ -4576,7 +4777,7 @@ var DragDropImages = ({
|
|
|
4576
4777
|
key: file.name
|
|
4577
4778
|
}
|
|
4578
4779
|
)));
|
|
4579
|
-
return /* @__PURE__ */
|
|
4780
|
+
return /* @__PURE__ */ React39.createElement("div", null, label && /* @__PURE__ */ React39.createElement("div", { className: "mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300" }, label), /* @__PURE__ */ React39.createElement(
|
|
4580
4781
|
"div",
|
|
4581
4782
|
{
|
|
4582
4783
|
className: clsx17(
|
|
@@ -4584,7 +4785,7 @@ var DragDropImages = ({
|
|
|
4584
4785
|
isDragActive ? "bg-gray-200 dark:bg-gray-700" : "bg-background"
|
|
4585
4786
|
)
|
|
4586
4787
|
},
|
|
4587
|
-
/* @__PURE__ */
|
|
4788
|
+
/* @__PURE__ */ React39.createElement("div", { ...getRootProps({}) }, /* @__PURE__ */ React39.createElement("p", { ...getInputProps() }), /* @__PURE__ */ React39.createElement("div", { className: "flex flex-col items-center justify-center gap-2 pt-4 text-center" }, /* @__PURE__ */ React39.createElement(
|
|
4588
4789
|
"svg",
|
|
4589
4790
|
{
|
|
4590
4791
|
stroke: "currentColor",
|
|
@@ -4596,33 +4797,33 @@ var DragDropImages = ({
|
|
|
4596
4797
|
height: "1.5em",
|
|
4597
4798
|
width: "1.5em"
|
|
4598
4799
|
},
|
|
4599
|
-
/* @__PURE__ */
|
|
4600
|
-
/* @__PURE__ */
|
|
4601
|
-
/* @__PURE__ */
|
|
4602
|
-
/* @__PURE__ */
|
|
4603
|
-
/* @__PURE__ */
|
|
4604
|
-
/* @__PURE__ */
|
|
4605
|
-
/* @__PURE__ */
|
|
4606
|
-
/* @__PURE__ */
|
|
4607
|
-
/* @__PURE__ */
|
|
4608
|
-
/* @__PURE__ */
|
|
4609
|
-
), /* @__PURE__ */
|
|
4610
|
-
acceptedFiles.length > 0 && /* @__PURE__ */
|
|
4611
|
-
acceptedFiles.length > 0 && thumbs && showPreview ? /* @__PURE__ */
|
|
4612
|
-
/* @__PURE__ */
|
|
4800
|
+
/* @__PURE__ */ React39.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
|
|
4801
|
+
/* @__PURE__ */ React39.createElement("path", { d: "M19 11v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2" }),
|
|
4802
|
+
/* @__PURE__ */ React39.createElement("path", { d: "M13 13l9 3l-4 2l-2 4l-3 -9" }),
|
|
4803
|
+
/* @__PURE__ */ React39.createElement("path", { d: "M3 3l0 .01" }),
|
|
4804
|
+
/* @__PURE__ */ React39.createElement("path", { d: "M7 3l0 .01" }),
|
|
4805
|
+
/* @__PURE__ */ React39.createElement("path", { d: "M11 3l0 .01" }),
|
|
4806
|
+
/* @__PURE__ */ React39.createElement("path", { d: "M15 3l0 .01" }),
|
|
4807
|
+
/* @__PURE__ */ React39.createElement("path", { d: "M3 7l0 .01" }),
|
|
4808
|
+
/* @__PURE__ */ React39.createElement("path", { d: "M3 11l0 .01" }),
|
|
4809
|
+
/* @__PURE__ */ React39.createElement("path", { d: "M3 15l0 .01" })
|
|
4810
|
+
), /* @__PURE__ */ React39.createElement(texts.clickHereToUpload, null)), /* @__PURE__ */ React39.createElement("div", { className: "pt-2 text-center text-xs" }, texts.acceptedFileTypes, " ", accept.split(",")), /* @__PURE__ */ React39.createElement("div", { className: "pb-2 pt-1 text-center text-xs" }, texts.maxFileSize, " ", max)),
|
|
4811
|
+
acceptedFiles.length > 0 && /* @__PURE__ */ React39.createElement("div", { className: "flex justify-center rounded-lg p-2 " }, /* @__PURE__ */ React39.createElement(Button, { onClick: clearAllFiles }, "Clear All")),
|
|
4812
|
+
acceptedFiles.length > 0 && thumbs && showPreview ? /* @__PURE__ */ React39.createElement("aside", { className: "flex flex-row flex-wrap justify-center gap-2 rounded-lg p-2" }, thumbs) : null,
|
|
4813
|
+
/* @__PURE__ */ React39.createElement("div", { className: "px-4" }, fileRejections[0]?.errors[0]?.code && errs)
|
|
4613
4814
|
));
|
|
4614
4815
|
};
|
|
4615
4816
|
|
|
4616
4817
|
// src/elements/DraggableCard.tsx
|
|
4617
|
-
import
|
|
4818
|
+
import React40 from "react";
|
|
4618
4819
|
var DraggableCard = (props) => {
|
|
4619
|
-
return /* @__PURE__ */
|
|
4820
|
+
return /* @__PURE__ */ React40.createElement("div", { className: "flex flex-row rounded bg-layoutPrimary-500 p-4" }, /* @__PURE__ */ React40.createElement(
|
|
4620
4821
|
"button",
|
|
4621
4822
|
{
|
|
4622
4823
|
className: "inline-flex items-center rounded bg-white p-2 text-center text-sm font-medium text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-50 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-600",
|
|
4623
4824
|
type: "button"
|
|
4624
4825
|
},
|
|
4625
|
-
/* @__PURE__ */
|
|
4826
|
+
/* @__PURE__ */ React40.createElement(
|
|
4626
4827
|
"svg",
|
|
4627
4828
|
{
|
|
4628
4829
|
className: "h-6 w-6",
|
|
@@ -4630,20 +4831,20 @@ var DraggableCard = (props) => {
|
|
|
4630
4831
|
fill: "currentColor",
|
|
4631
4832
|
viewBox: "0 0 20 20"
|
|
4632
4833
|
},
|
|
4633
|
-
/* @__PURE__ */
|
|
4834
|
+
/* @__PURE__ */ React40.createElement("path", { d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" })
|
|
4634
4835
|
)
|
|
4635
|
-
), /* @__PURE__ */
|
|
4836
|
+
), /* @__PURE__ */ React40.createElement("div", { className: "p-4" }, props.children));
|
|
4636
4837
|
};
|
|
4637
4838
|
|
|
4638
4839
|
// src/elements/Breadcrumb.tsx
|
|
4639
|
-
import
|
|
4840
|
+
import React41 from "react";
|
|
4640
4841
|
|
|
4641
4842
|
// src/elements/SubsectionList.tsx
|
|
4642
|
-
import
|
|
4843
|
+
import React42, { useState as useState20 } from "react";
|
|
4643
4844
|
import clsx18 from "clsx";
|
|
4644
4845
|
var SubsectionList = ({ subsections }) => {
|
|
4645
4846
|
const [selectedSection, setSelectedSection] = useState20(null);
|
|
4646
|
-
return /* @__PURE__ */
|
|
4847
|
+
return /* @__PURE__ */ React42.createElement("div", { className: "w-full max-w-2xs rounded bg-layoutPrimary-500 p-4 " }, subsections.map((ss, i) => /* @__PURE__ */ React42.createElement("div", { key: i, className: "my-0" }, ss.title && /* @__PURE__ */ React42.createElement("div", { className: "my-4 font-bold" }, ss.title), ss.sections.map((s, i2) => /* @__PURE__ */ React42.createElement(
|
|
4647
4848
|
SubsectionItem,
|
|
4648
4849
|
{
|
|
4649
4850
|
key: i2,
|
|
@@ -4664,7 +4865,7 @@ var SubsectionItem = ({
|
|
|
4664
4865
|
selected,
|
|
4665
4866
|
onItemClick
|
|
4666
4867
|
}) => {
|
|
4667
|
-
return /* @__PURE__ */
|
|
4868
|
+
return /* @__PURE__ */ React42.createElement(
|
|
4668
4869
|
"div",
|
|
4669
4870
|
{
|
|
4670
4871
|
onClick: onItemClick,
|
|
@@ -4673,16 +4874,16 @@ var SubsectionItem = ({
|
|
|
4673
4874
|
selected === value ? "bg-primary text-white hover:bg-primary" : "hover:bg-layoutPrimary-300"
|
|
4674
4875
|
)
|
|
4675
4876
|
},
|
|
4676
|
-
/* @__PURE__ */
|
|
4677
|
-
chip && /* @__PURE__ */
|
|
4877
|
+
/* @__PURE__ */ React42.createElement("div", { className: "flex w-full flex-row items-center justify-start gap-2" }, icon, " ", /* @__PURE__ */ React42.createElement("span", null, title)),
|
|
4878
|
+
chip && /* @__PURE__ */ React42.createElement(HawaChip, { label: "Upgrade", size: "normal" }),
|
|
4678
4879
|
" "
|
|
4679
4880
|
);
|
|
4680
4881
|
};
|
|
4681
4882
|
|
|
4682
4883
|
// src/elements/UsageCard.tsx
|
|
4683
|
-
import
|
|
4884
|
+
import React43 from "react";
|
|
4684
4885
|
var UsageCard = (props) => {
|
|
4685
|
-
return /* @__PURE__ */
|
|
4886
|
+
return /* @__PURE__ */ React43.createElement("div", { className: "flex w-full flex-col gap-0 border p-4" }, /* @__PURE__ */ React43.createElement("div", { className: "flex flex-row items-center gap-2" }, /* @__PURE__ */ React43.createElement("span", { className: "bg-white-200" }, props.title), props.tooltip && /* @__PURE__ */ React43.createElement(Tooltip, { content: props.tooltip, side: "right" }, /* @__PURE__ */ React43.createElement(
|
|
4686
4887
|
"svg",
|
|
4687
4888
|
{
|
|
4688
4889
|
stroke: "currentColor",
|
|
@@ -4693,8 +4894,8 @@ var UsageCard = (props) => {
|
|
|
4693
4894
|
height: "1em",
|
|
4694
4895
|
width: "1em"
|
|
4695
4896
|
},
|
|
4696
|
-
/* @__PURE__ */
|
|
4697
|
-
))), /* @__PURE__ */
|
|
4897
|
+
/* @__PURE__ */ React43.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
|
|
4898
|
+
))), /* @__PURE__ */ React43.createElement("div", { className: "bg-white-100 flex flex-row" }, /* @__PURE__ */ React43.createElement("div", null, props.currentUsage), /* @__PURE__ */ React43.createElement("div", null, " (", props.percent, "%)")), /* @__PURE__ */ React43.createElement("div", { className: "mt-2 h-2.5 w-full rounded-full bg-gray-200 dark:bg-gray-700" }, /* @__PURE__ */ React43.createElement(
|
|
4698
4899
|
"div",
|
|
4699
4900
|
{
|
|
4700
4901
|
className: "h-2.5 rounded-full bg-primary",
|
|
@@ -4706,7 +4907,7 @@ var UsageCard = (props) => {
|
|
|
4706
4907
|
};
|
|
4707
4908
|
|
|
4708
4909
|
// src/elements/InvoiceAccordion.tsx
|
|
4709
|
-
import
|
|
4910
|
+
import React44, { useState as useState21 } from "react";
|
|
4710
4911
|
import clsx19 from "clsx";
|
|
4711
4912
|
var InvoiceAccordion = ({
|
|
4712
4913
|
direction = "ltr",
|
|
@@ -4719,7 +4920,7 @@ var InvoiceAccordion = ({
|
|
|
4719
4920
|
},
|
|
4720
4921
|
...props
|
|
4721
4922
|
}) => {
|
|
4722
|
-
const InvoiceItemProp = (props2) => /* @__PURE__ */
|
|
4923
|
+
const InvoiceItemProp = (props2) => /* @__PURE__ */ React44.createElement(
|
|
4723
4924
|
"div",
|
|
4724
4925
|
{
|
|
4725
4926
|
className: clsx19(
|
|
@@ -4727,11 +4928,11 @@ var InvoiceAccordion = ({
|
|
|
4727
4928
|
"flex w-full flex-col"
|
|
4728
4929
|
)
|
|
4729
4930
|
},
|
|
4730
|
-
/* @__PURE__ */
|
|
4731
|
-
/* @__PURE__ */
|
|
4931
|
+
/* @__PURE__ */ React44.createElement("div", { className: " text-sm text-gray-500" }, props2.label),
|
|
4932
|
+
/* @__PURE__ */ React44.createElement("div", { className: " whitespace-nowrap" }, props2.text)
|
|
4732
4933
|
);
|
|
4733
4934
|
const [expanded, setExpanded] = useState21(false);
|
|
4734
|
-
return /* @__PURE__ */
|
|
4935
|
+
return /* @__PURE__ */ React44.createElement("div", { className: "flex w-full flex-col" }, /* @__PURE__ */ React44.createElement("div", { className: "flex w-full flex-row items-center gap-2 border p-4 " }, props.invoiceActions && /* @__PURE__ */ React44.createElement(
|
|
4735
4936
|
"div",
|
|
4736
4937
|
{
|
|
4737
4938
|
className: clsx19(
|
|
@@ -4741,7 +4942,7 @@ var InvoiceAccordion = ({
|
|
|
4741
4942
|
),
|
|
4742
4943
|
onClick: () => setExpanded(!expanded)
|
|
4743
4944
|
},
|
|
4744
|
-
/* @__PURE__ */
|
|
4945
|
+
/* @__PURE__ */ React44.createElement(
|
|
4745
4946
|
"svg",
|
|
4746
4947
|
{
|
|
4747
4948
|
stroke: "currentColor",
|
|
@@ -4752,7 +4953,7 @@ var InvoiceAccordion = ({
|
|
|
4752
4953
|
height: "2em",
|
|
4753
4954
|
width: "2em"
|
|
4754
4955
|
},
|
|
4755
|
-
/* @__PURE__ */
|
|
4956
|
+
/* @__PURE__ */ React44.createElement(
|
|
4756
4957
|
"path",
|
|
4757
4958
|
{
|
|
4758
4959
|
"fill-rule": "evenodd",
|
|
@@ -4761,22 +4962,22 @@ var InvoiceAccordion = ({
|
|
|
4761
4962
|
}
|
|
4762
4963
|
)
|
|
4763
4964
|
)
|
|
4764
|
-
), /* @__PURE__ */
|
|
4965
|
+
), /* @__PURE__ */ React44.createElement(
|
|
4765
4966
|
"div",
|
|
4766
4967
|
{
|
|
4767
4968
|
className: "flex w-full cursor-pointer flex-col gap-0",
|
|
4768
4969
|
onClick: () => setExpanded(!expanded)
|
|
4769
4970
|
},
|
|
4770
|
-
/* @__PURE__ */
|
|
4771
|
-
/* @__PURE__ */
|
|
4772
|
-
), /* @__PURE__ */
|
|
4971
|
+
/* @__PURE__ */ React44.createElement("div", { className: "flex flex-row items-center gap-2" }, /* @__PURE__ */ React44.createElement("span", { className: "bg-white-200" }, props.invoiceTitle), props.status && /* @__PURE__ */ React44.createElement(HawaChip, { size: "small", label: props.status })),
|
|
4972
|
+
/* @__PURE__ */ React44.createElement("div", { className: "font-sm text-gray-400" }, props.invoiceSubtitle)
|
|
4973
|
+
), /* @__PURE__ */ React44.createElement("div", { className: "flex flex-row items-center gap-2" }, /* @__PURE__ */ React44.createElement("div", { className: "whitespace-nowrap" }, props.total), /* @__PURE__ */ React44.createElement(
|
|
4773
4974
|
HawaMenu,
|
|
4774
4975
|
{
|
|
4775
4976
|
direction,
|
|
4776
4977
|
position: direction === "rtl" ? "bottom-right" : "bottom-left",
|
|
4777
4978
|
menuItems: props.invoiceActions
|
|
4778
4979
|
},
|
|
4779
|
-
/* @__PURE__ */
|
|
4980
|
+
/* @__PURE__ */ React44.createElement("div", { className: " p-2" }, /* @__PURE__ */ React44.createElement(
|
|
4780
4981
|
"svg",
|
|
4781
4982
|
{
|
|
4782
4983
|
stroke: "currentColor",
|
|
@@ -4786,9 +4987,9 @@ var InvoiceAccordion = ({
|
|
|
4786
4987
|
height: "1em",
|
|
4787
4988
|
width: "1em"
|
|
4788
4989
|
},
|
|
4789
|
-
/* @__PURE__ */
|
|
4990
|
+
/* @__PURE__ */ React44.createElement("path", { d: "M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z" })
|
|
4790
4991
|
))
|
|
4791
|
-
))), expanded && /* @__PURE__ */
|
|
4992
|
+
))), expanded && /* @__PURE__ */ React44.createElement(
|
|
4792
4993
|
"div",
|
|
4793
4994
|
{
|
|
4794
4995
|
className: clsx19(
|
|
@@ -4796,32 +4997,32 @@ var InvoiceAccordion = ({
|
|
|
4796
4997
|
"flex h-auto flex-col gap-4 overflow-clip border border-t-0 bg-gray-50 p-4 transition-all"
|
|
4797
4998
|
)
|
|
4798
4999
|
},
|
|
4799
|
-
/* @__PURE__ */
|
|
4800
|
-
props.products?.map((product, i) => /* @__PURE__ */
|
|
5000
|
+
/* @__PURE__ */ React44.createElement("div", { className: "border-b pb-2" }, props.invoiceDescription),
|
|
5001
|
+
props.products?.map((product, i) => /* @__PURE__ */ React44.createElement("div", { key: i, className: "flex flex-row border-b pb-4" }, /* @__PURE__ */ React44.createElement("div", { className: "w-full" }, /* @__PURE__ */ React44.createElement(InvoiceItemProp, { start: true, label: texts.plan, text: product.plan })), /* @__PURE__ */ React44.createElement("div", { className: "flex w-full flex-row gap-20 " }, /* @__PURE__ */ React44.createElement(
|
|
4801
5002
|
InvoiceItemProp,
|
|
4802
5003
|
{
|
|
4803
5004
|
label: texts.usage,
|
|
4804
5005
|
text: `${product.usage} SAR`
|
|
4805
5006
|
}
|
|
4806
|
-
), /* @__PURE__ */
|
|
5007
|
+
), /* @__PURE__ */ React44.createElement(
|
|
4807
5008
|
InvoiceItemProp,
|
|
4808
5009
|
{
|
|
4809
5010
|
label: texts.price,
|
|
4810
5011
|
text: `${product.price} SAR`
|
|
4811
5012
|
}
|
|
4812
|
-
), /* @__PURE__ */
|
|
5013
|
+
), /* @__PURE__ */ React44.createElement(
|
|
4813
5014
|
InvoiceItemProp,
|
|
4814
5015
|
{
|
|
4815
5016
|
label: texts.amount,
|
|
4816
5017
|
text: `${product.amount} SAR`
|
|
4817
5018
|
}
|
|
4818
5019
|
)))),
|
|
4819
|
-
/* @__PURE__ */
|
|
5020
|
+
/* @__PURE__ */ React44.createElement("div", { className: "flex flex-row justify-between" }, /* @__PURE__ */ React44.createElement("div", null, texts.total), " ", /* @__PURE__ */ React44.createElement("div", null, props.total))
|
|
4820
5021
|
));
|
|
4821
5022
|
};
|
|
4822
5023
|
|
|
4823
5024
|
// src/elements/UserFeedback.tsx
|
|
4824
|
-
import
|
|
5025
|
+
import React45, { useEffect as useEffect12, useRef as useRef7, useState as useState22 } from "react";
|
|
4825
5026
|
import clsx20 from "clsx";
|
|
4826
5027
|
var UserFeedback = ({
|
|
4827
5028
|
position = "bottom-right",
|
|
@@ -4850,13 +5051,13 @@ var UserFeedback = ({
|
|
|
4850
5051
|
popUpRef.current.removeChild(popUpRef.current.children[0]);
|
|
4851
5052
|
}, 200);
|
|
4852
5053
|
};
|
|
4853
|
-
return /* @__PURE__ */
|
|
5054
|
+
return /* @__PURE__ */ React45.createElement(
|
|
4854
5055
|
"div",
|
|
4855
5056
|
{
|
|
4856
5057
|
ref: popUpRef,
|
|
4857
5058
|
className: clsx20("fixed bottom-4 ", boxPosition[position])
|
|
4858
5059
|
},
|
|
4859
|
-
/* @__PURE__ */
|
|
5060
|
+
/* @__PURE__ */ React45.createElement(
|
|
4860
5061
|
"div",
|
|
4861
5062
|
{
|
|
4862
5063
|
className: clsx20(
|
|
@@ -4864,8 +5065,8 @@ var UserFeedback = ({
|
|
|
4864
5065
|
closed ? "opacity-0" : "opacity-100"
|
|
4865
5066
|
)
|
|
4866
5067
|
},
|
|
4867
|
-
/* @__PURE__ */
|
|
4868
|
-
/* @__PURE__ */
|
|
5068
|
+
/* @__PURE__ */ React45.createElement("div", { className: "absolute left-2 top-2 p-1.5 text-sm" }, props.title),
|
|
5069
|
+
/* @__PURE__ */ React45.createElement(
|
|
4869
5070
|
"button",
|
|
4870
5071
|
{
|
|
4871
5072
|
type: "button",
|
|
@@ -4874,7 +5075,7 @@ var UserFeedback = ({
|
|
|
4874
5075
|
"aria-label": "Close",
|
|
4875
5076
|
onClick: () => slowClose()
|
|
4876
5077
|
},
|
|
4877
|
-
/* @__PURE__ */
|
|
5078
|
+
/* @__PURE__ */ React45.createElement(
|
|
4878
5079
|
"svg",
|
|
4879
5080
|
{
|
|
4880
5081
|
"aria-hidden": "true",
|
|
@@ -4882,7 +5083,7 @@ var UserFeedback = ({
|
|
|
4882
5083
|
fill: "currentColor",
|
|
4883
5084
|
viewBox: "0 0 20 20"
|
|
4884
5085
|
},
|
|
4885
|
-
/* @__PURE__ */
|
|
5086
|
+
/* @__PURE__ */ React45.createElement(
|
|
4886
5087
|
"path",
|
|
4887
5088
|
{
|
|
4888
5089
|
fillRule: "evenodd",
|
|
@@ -4892,8 +5093,8 @@ var UserFeedback = ({
|
|
|
4892
5093
|
)
|
|
4893
5094
|
)
|
|
4894
5095
|
),
|
|
4895
|
-
/* @__PURE__ */
|
|
4896
|
-
/* @__PURE__ */
|
|
5096
|
+
/* @__PURE__ */ React45.createElement("div", { className: "mt-8" }, props.question),
|
|
5097
|
+
/* @__PURE__ */ React45.createElement("div", { className: "flex w-full flex-row gap-1 rounded" }, props.options.map((op) => /* @__PURE__ */ React45.createElement(
|
|
4897
5098
|
"span",
|
|
4898
5099
|
{
|
|
4899
5100
|
onClick: () => {
|
|
@@ -4915,17 +5116,17 @@ var UserFeedback = ({
|
|
|
4915
5116
|
},
|
|
4916
5117
|
op
|
|
4917
5118
|
))),
|
|
4918
|
-
props.texts && /* @__PURE__ */
|
|
4919
|
-
answered && /* @__PURE__ */
|
|
5119
|
+
props.texts && /* @__PURE__ */ React45.createElement("div", { className: " flex flex-row justify-between text-xs" }, /* @__PURE__ */ React45.createElement("span", null, props.texts.least), /* @__PURE__ */ React45.createElement("span", null, props.texts.most)),
|
|
5120
|
+
answered && /* @__PURE__ */ React45.createElement("div", { className: "absolute left-0 top-0 flex h-full w-full flex-col items-center justify-center rounded bg-black bg-opacity-80 p-4 text-center transition-all" }, /* @__PURE__ */ React45.createElement("span", { className: "font-bold text-white" }, "Thank you for your answer. This box will disappear in", " " + closingTimer, " seconds"), /* @__PURE__ */ React45.createElement("div", { className: "flex flex-row gap-2" }, /* @__PURE__ */ React45.createElement(HawaButton, { onClick: () => slowClose() }, "Close")))
|
|
4920
5121
|
)
|
|
4921
5122
|
);
|
|
4922
5123
|
};
|
|
4923
5124
|
|
|
4924
5125
|
// src/elements/ArrowCarousel.tsx
|
|
4925
|
-
import
|
|
5126
|
+
import React46, { useEffect as useEffect13, useState as useState23 } from "react";
|
|
4926
5127
|
import clsx21 from "clsx";
|
|
4927
5128
|
var Arrow3 = (props) => {
|
|
4928
|
-
return /* @__PURE__ */
|
|
5129
|
+
return /* @__PURE__ */ React46.createElement(
|
|
4929
5130
|
"svg",
|
|
4930
5131
|
{
|
|
4931
5132
|
onClick: props.onClick || (() => {
|
|
@@ -4938,7 +5139,7 @@ var Arrow3 = (props) => {
|
|
|
4938
5139
|
fill: props.disabled && "grey",
|
|
4939
5140
|
viewBox: "0 0 20 20"
|
|
4940
5141
|
},
|
|
4941
|
-
/* @__PURE__ */
|
|
5142
|
+
/* @__PURE__ */ React46.createElement(
|
|
4942
5143
|
"path",
|
|
4943
5144
|
{
|
|
4944
5145
|
fillRule: "evenodd",
|
|
@@ -4958,7 +5159,7 @@ var ArrowCarousel = (props) => {
|
|
|
4958
5159
|
medium: ["2", -11],
|
|
4959
5160
|
big: ["3", -16]
|
|
4960
5161
|
};
|
|
4961
|
-
return /* @__PURE__ */
|
|
5162
|
+
return /* @__PURE__ */ React46.createElement("div", { className: "align-center box-boorder relative flex h-min w-min flex-row items-center justify-center rounded bg-layoutPrimary-500 p-4 py-0 pb-2 pt-2 shadow-md" }, /* @__PURE__ */ React46.createElement(
|
|
4962
5163
|
Arrow3,
|
|
4963
5164
|
{
|
|
4964
5165
|
direction: "left",
|
|
@@ -4968,20 +5169,20 @@ var ArrowCarousel = (props) => {
|
|
|
4968
5169
|
setIndex(index - 1);
|
|
4969
5170
|
}
|
|
4970
5171
|
}
|
|
4971
|
-
), /* @__PURE__ */
|
|
5172
|
+
), /* @__PURE__ */ React46.createElement(
|
|
4972
5173
|
"div",
|
|
4973
5174
|
{
|
|
4974
5175
|
className: `relative m-5 my-0 box-border flex h-full flex-col items-center justify-center py-6 pt-0 `
|
|
4975
5176
|
},
|
|
4976
|
-
/* @__PURE__ */
|
|
4977
|
-
/* @__PURE__ */
|
|
5177
|
+
/* @__PURE__ */ React46.createElement("div", null, props.items[index].icon),
|
|
5178
|
+
/* @__PURE__ */ React46.createElement(
|
|
4978
5179
|
"div",
|
|
4979
5180
|
{
|
|
4980
5181
|
className: "absolute bottom-1 mb-0 mt-2 select-none"
|
|
4981
5182
|
},
|
|
4982
5183
|
props.items[index].label
|
|
4983
5184
|
)
|
|
4984
|
-
), /* @__PURE__ */
|
|
5185
|
+
), /* @__PURE__ */ React46.createElement(
|
|
4985
5186
|
Arrow3,
|
|
4986
5187
|
{
|
|
4987
5188
|
direction: "right",
|
|
@@ -4995,10 +5196,10 @@ var ArrowCarousel = (props) => {
|
|
|
4995
5196
|
};
|
|
4996
5197
|
|
|
4997
5198
|
// src/elements/FloatingComment.tsx
|
|
4998
|
-
import
|
|
5199
|
+
import React47, { useRef as useRef8, useState as useState24, useEffect as useEffect14 } from "react";
|
|
4999
5200
|
import clsx22 from "clsx";
|
|
5000
5201
|
var Property = (props) => {
|
|
5001
|
-
return /* @__PURE__ */
|
|
5202
|
+
return /* @__PURE__ */ React47.createElement(
|
|
5002
5203
|
"div",
|
|
5003
5204
|
{
|
|
5004
5205
|
className: "border-box mr-[10px] flex h-[32px] w-[32px] items-center justify-center rounded bg-gray-300 p-2",
|
|
@@ -5485,8 +5686,8 @@ var FloatingComment = (props) => {
|
|
|
5485
5686
|
return "ltr";
|
|
5486
5687
|
}
|
|
5487
5688
|
};
|
|
5488
|
-
return /* @__PURE__ */
|
|
5489
|
-
return /* @__PURE__ */
|
|
5689
|
+
return /* @__PURE__ */ React47.createElement("div", { className: "align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded shadow-md" }, /* @__PURE__ */ React47.createElement("div", { className: clsx22("flex w-full flex-row justify-start p-2") }, Object.entries(stylers).map(([id, data]) => {
|
|
5690
|
+
return /* @__PURE__ */ React47.createElement(
|
|
5490
5691
|
Property,
|
|
5491
5692
|
{
|
|
5492
5693
|
name: data.content,
|
|
@@ -5497,7 +5698,7 @@ var FloatingComment = (props) => {
|
|
|
5497
5698
|
}
|
|
5498
5699
|
}
|
|
5499
5700
|
);
|
|
5500
|
-
})), /* @__PURE__ */
|
|
5701
|
+
})), /* @__PURE__ */ React47.createElement("div", { className: "h-[1px] w-full bg-slate-600" }, "\xA0"), /* @__PURE__ */ React47.createElement("div", { className: "selection-ignore box-border w-full p-2" }, /* @__PURE__ */ React47.createElement(
|
|
5501
5702
|
"div",
|
|
5502
5703
|
{
|
|
5503
5704
|
ref: field,
|
|
@@ -5586,7 +5787,7 @@ var FloatingComment = (props) => {
|
|
|
5586
5787
|
});
|
|
5587
5788
|
}
|
|
5588
5789
|
}
|
|
5589
|
-
)), /* @__PURE__ */
|
|
5790
|
+
)), /* @__PURE__ */ React47.createElement("div", { className: "h-[1px] w-full bg-slate-600" }, "\xA0"), /* @__PURE__ */ React47.createElement(
|
|
5590
5791
|
"button",
|
|
5591
5792
|
{
|
|
5592
5793
|
className: "my-1 rounded bg-cyan-800 p-2 py-1 text-white",
|
|
@@ -5601,7 +5802,7 @@ var FloatingComment = (props) => {
|
|
|
5601
5802
|
};
|
|
5602
5803
|
|
|
5603
5804
|
// src/elements/FloatingCommentSlate.tsx
|
|
5604
|
-
import
|
|
5805
|
+
import React48, { useState as useState25, useCallback } from "react";
|
|
5605
5806
|
import { Editor, createEditor } from "slate";
|
|
5606
5807
|
import { Slate, Editable, withReact } from "slate-react";
|
|
5607
5808
|
var initialValue = [
|
|
@@ -5628,10 +5829,10 @@ var Leaf = (props) => {
|
|
|
5628
5829
|
});
|
|
5629
5830
|
});
|
|
5630
5831
|
}
|
|
5631
|
-
return /* @__PURE__ */
|
|
5832
|
+
return /* @__PURE__ */ React48.createElement("span", { ...props.attributes, style: types }, props.children);
|
|
5632
5833
|
};
|
|
5633
5834
|
var Property2 = (props) => {
|
|
5634
|
-
return /* @__PURE__ */
|
|
5835
|
+
return /* @__PURE__ */ React48.createElement(
|
|
5635
5836
|
"div",
|
|
5636
5837
|
{
|
|
5637
5838
|
className: "border-box mr-[5px] flex h-[32px] w-[32px] items-center justify-center rounded bg-gray-400 p-2",
|
|
@@ -5643,7 +5844,7 @@ var Property2 = (props) => {
|
|
|
5643
5844
|
var FloatingCommentSlate = () => {
|
|
5644
5845
|
const [editor] = useState25(() => withReact(createEditor()));
|
|
5645
5846
|
const renderLeaf = useCallback((props) => {
|
|
5646
|
-
return /* @__PURE__ */
|
|
5847
|
+
return /* @__PURE__ */ React48.createElement(Leaf, { ...props });
|
|
5647
5848
|
}, []);
|
|
5648
5849
|
const perform = (event, type) => {
|
|
5649
5850
|
event.preventDefault();
|
|
@@ -5651,7 +5852,7 @@ var FloatingCommentSlate = () => {
|
|
|
5651
5852
|
console.log(Editor.marks(editor));
|
|
5652
5853
|
Editor.addMark(editor, type, !current);
|
|
5653
5854
|
};
|
|
5654
|
-
return /* @__PURE__ */
|
|
5855
|
+
return /* @__PURE__ */ React48.createElement("div", { className: "align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded bg-blue-300 shadow-md" }, /* @__PURE__ */ React48.createElement("div", { className: "flex w-full flex-row justify-start p-2" }, /* @__PURE__ */ React48.createElement(
|
|
5655
5856
|
Property2,
|
|
5656
5857
|
{
|
|
5657
5858
|
name: "B",
|
|
@@ -5659,7 +5860,7 @@ var FloatingCommentSlate = () => {
|
|
|
5659
5860
|
perform(event, "bold");
|
|
5660
5861
|
}
|
|
5661
5862
|
}
|
|
5662
|
-
), /* @__PURE__ */
|
|
5863
|
+
), /* @__PURE__ */ React48.createElement(
|
|
5663
5864
|
Property2,
|
|
5664
5865
|
{
|
|
5665
5866
|
name: "I",
|
|
@@ -5667,7 +5868,7 @@ var FloatingCommentSlate = () => {
|
|
|
5667
5868
|
perform(event, "italic");
|
|
5668
5869
|
}
|
|
5669
5870
|
}
|
|
5670
|
-
), /* @__PURE__ */
|
|
5871
|
+
), /* @__PURE__ */ React48.createElement(
|
|
5671
5872
|
Property2,
|
|
5672
5873
|
{
|
|
5673
5874
|
name: "U",
|
|
@@ -5675,7 +5876,7 @@ var FloatingCommentSlate = () => {
|
|
|
5675
5876
|
perform(event, "underline");
|
|
5676
5877
|
}
|
|
5677
5878
|
}
|
|
5678
|
-
), /* @__PURE__ */
|
|
5879
|
+
), /* @__PURE__ */ React48.createElement(
|
|
5679
5880
|
Property2,
|
|
5680
5881
|
{
|
|
5681
5882
|
name: "S",
|
|
@@ -5683,7 +5884,7 @@ var FloatingCommentSlate = () => {
|
|
|
5683
5884
|
perform(event, "strikethrough");
|
|
5684
5885
|
}
|
|
5685
5886
|
}
|
|
5686
|
-
)), /* @__PURE__ */
|
|
5887
|
+
)), /* @__PURE__ */ React48.createElement("div", { className: "h-[1px] w-full bg-slate-600" }, "\xA0"), /* @__PURE__ */ React48.createElement("div", { className: "w-full" }, /* @__PURE__ */ React48.createElement(Slate, { editor, initialValue }, /* @__PURE__ */ React48.createElement(
|
|
5687
5888
|
Editable,
|
|
5688
5889
|
{
|
|
5689
5890
|
renderLeaf,
|
|
@@ -5701,16 +5902,16 @@ var FloatingCommentSlate = () => {
|
|
|
5701
5902
|
}
|
|
5702
5903
|
}
|
|
5703
5904
|
}
|
|
5704
|
-
))), /* @__PURE__ */
|
|
5905
|
+
))), /* @__PURE__ */ React48.createElement("div", { className: "h-[1px] w-full bg-slate-600" }, "\xA0"), /* @__PURE__ */ React48.createElement("button", { className: "my-1 rounded bg-cyan-800 p-2 py-1 text-white" }, "Submit"));
|
|
5705
5906
|
};
|
|
5706
5907
|
|
|
5707
5908
|
// src/elements/FloatingCommentExec.tsx
|
|
5708
|
-
import
|
|
5909
|
+
import React49 from "react";
|
|
5709
5910
|
import ReactDOMServer from "react-dom/server";
|
|
5710
5911
|
import { AiOutlineClose } from "react-icons/ai";
|
|
5711
5912
|
var base64 = "iVBORw0KGgoAAAANSUhEUgAAANUAAABhCAYAAABBG+TgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACEgSURBVHhe7Z0HWFRXFsfPG1SaFKWDgBUsWLH3lthN1cQYY5ItiellN9mYxGQ3m2rcbDYxuiamJ2qqaa4NK/aOFaWIIgqKIE1Rmbf3f+eNvJl5b2DgDWK8v++bj3nDlDdw/++ce+4550pl5ZdlEggEhmFSfgoEAoMQohIIDEaISiAwGCEqgcBghKgEAoMRohIIDEaISiAwGCEqgcBg6p2oZJmowkx0qULmN9wXCK4l6lVGRckFmbIKJcotluliheWxhh5EjT0tP70bSOTbiP1sKJOfp0SeDWSSJMnyRIGgnlBvRFVWTrQqXaYf98qUUyRzi2XFxHTjw8QU6CVRkC9RMLuF+xGF+UsU5idRqK9MIY0laiCcWUE9oF6ICidw8BTRrDVmOsEEVV18G0lMTDJFMnHFNpGoTQhR21CJmnizLyYMmOAqUS9EdZnNm9akyVxUNT2ZRsw9DPaVKDKAqGMEUb8WEkUFSCS0Jahr6o2oVqe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* @__PURE__ */ React49.createElement(
|
|
5714
5915
|
"div",
|
|
5715
5916
|
{
|
|
5716
5917
|
className: "border-box mr-[10px] flex h-[32px] w-fit min-w-[32px] items-center justify-center rounded bg-gray-300 p-2 transition-all hover:opacity-50",
|
|
@@ -5720,7 +5921,7 @@ var Property3 = (props) => {
|
|
|
5720
5921
|
);
|
|
5721
5922
|
};
|
|
5722
5923
|
var Image = (props) => {
|
|
5723
|
-
return /* @__PURE__ */
|
|
5924
|
+
return /* @__PURE__ */ React49.createElement("div", { className: "group relative w-fit" }, /* @__PURE__ */ React49.createElement("img", { src: `data:image/pngg;charset=utf-8;base64,${base64}` }), /* @__PURE__ */ React49.createElement("div", { className: "absolute right-0 top-0 text-red-900 opacity-0 transition-all hover:opacity-50 group-hover:opacity-100" }, /* @__PURE__ */ React49.createElement(AiOutlineClose, null)));
|
|
5724
5925
|
};
|
|
5725
5926
|
var styles2 = {
|
|
5726
5927
|
bold: "B",
|
|
@@ -5732,8 +5933,8 @@ var styles2 = {
|
|
|
5732
5933
|
removeFormat: "Plain"
|
|
5733
5934
|
};
|
|
5734
5935
|
var FloatingCommentExec = (props) => {
|
|
5735
|
-
return /* @__PURE__ */
|
|
5736
|
-
return /* @__PURE__ */
|
|
5936
|
+
return /* @__PURE__ */ React49.createElement("div", { className: "align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded shadow-md" }, /* @__PURE__ */ React49.createElement("div", { className: "flex w-full flex-row justify-start p-2" }, Object.entries(styles2).map(([id, acronym]) => {
|
|
5937
|
+
return /* @__PURE__ */ React49.createElement(
|
|
5737
5938
|
Property3,
|
|
5738
5939
|
{
|
|
5739
5940
|
name: acronym,
|
|
@@ -5745,24 +5946,24 @@ var FloatingCommentExec = (props) => {
|
|
|
5745
5946
|
}
|
|
5746
5947
|
}
|
|
5747
5948
|
);
|
|
5748
|
-
}), /* @__PURE__ */
|
|
5949
|
+
}), /* @__PURE__ */ React49.createElement(
|
|
5749
5950
|
Property3,
|
|
5750
5951
|
{
|
|
5751
5952
|
name: "Image",
|
|
5752
5953
|
key: `property-insertImage`,
|
|
5753
5954
|
onMouseDown: (event) => {
|
|
5754
5955
|
event.preventDefault();
|
|
5755
|
-
let html = ReactDOMServer.renderToString(/* @__PURE__ */
|
|
5956
|
+
let html = ReactDOMServer.renderToString(/* @__PURE__ */ React49.createElement(Image, null));
|
|
5756
5957
|
document.execCommand("insertHTML", false, html);
|
|
5757
5958
|
}
|
|
5758
5959
|
}
|
|
5759
|
-
)), /* @__PURE__ */
|
|
5960
|
+
)), /* @__PURE__ */ React49.createElement("div", { className: "h-[1px] w-full bg-slate-600" }, "\xA0"), /* @__PURE__ */ React49.createElement("div", { className: " box-border w-full p-2" }, /* @__PURE__ */ React49.createElement(
|
|
5760
5961
|
"div",
|
|
5761
5962
|
{
|
|
5762
5963
|
contentEditable: "true",
|
|
5763
5964
|
className: "rtl h-[150px] w-full resize-none overflow-auto overflow-x-hidden border-none font-['Arial'] text-[16px] outline-none"
|
|
5764
5965
|
}
|
|
5765
|
-
)), /* @__PURE__ */
|
|
5966
|
+
)), /* @__PURE__ */ React49.createElement("div", { className: "h-[1px] w-full bg-slate-600" }, "\xA0"), /* @__PURE__ */ React49.createElement(
|
|
5766
5967
|
"button",
|
|
5767
5968
|
{
|
|
5768
5969
|
className: "my-1 rounded bg-cyan-800 p-2 py-1 text-white",
|
|
@@ -5774,7 +5975,7 @@ var FloatingCommentExec = (props) => {
|
|
|
5774
5975
|
};
|
|
5775
5976
|
|
|
5776
5977
|
// src/elements/BackToTop.tsx
|
|
5777
|
-
import
|
|
5978
|
+
import React50, { useState as useState27, useEffect as useEffect16, useRef as useRef10 } from "react";
|
|
5778
5979
|
import { clsx as clsx23 } from "clsx";
|
|
5779
5980
|
var BackToTop = ({ ...props }) => {
|
|
5780
5981
|
const [visible, setVisible] = useState27(false);
|
|
@@ -5831,7 +6032,7 @@ var BackToTop = ({ ...props }) => {
|
|
|
5831
6032
|
};
|
|
5832
6033
|
return style;
|
|
5833
6034
|
};
|
|
5834
|
-
return /* @__PURE__ */
|
|
6035
|
+
return /* @__PURE__ */ React50.createElement(
|
|
5835
6036
|
Button,
|
|
5836
6037
|
{
|
|
5837
6038
|
className: cn(
|
|
@@ -5846,7 +6047,7 @@ var BackToTop = ({ ...props }) => {
|
|
|
5846
6047
|
ref: self,
|
|
5847
6048
|
size: "icon"
|
|
5848
6049
|
},
|
|
5849
|
-
/* @__PURE__ */
|
|
6050
|
+
/* @__PURE__ */ React50.createElement(
|
|
5850
6051
|
"svg",
|
|
5851
6052
|
{
|
|
5852
6053
|
className: clsx23(
|
|
@@ -5856,25 +6057,25 @@ var BackToTop = ({ ...props }) => {
|
|
|
5856
6057
|
viewBox: "0 0 20 20",
|
|
5857
6058
|
fill: "currentColor"
|
|
5858
6059
|
},
|
|
5859
|
-
/* @__PURE__ */
|
|
6060
|
+
/* @__PURE__ */ React50.createElement("path", { d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" })
|
|
5860
6061
|
)
|
|
5861
6062
|
);
|
|
5862
6063
|
};
|
|
5863
6064
|
|
|
5864
6065
|
// src/elements/HawaInlineCode.tsx
|
|
5865
|
-
import
|
|
6066
|
+
import React51 from "react";
|
|
5866
6067
|
var HawaInlineCode = (props) => {
|
|
5867
|
-
return /* @__PURE__ */
|
|
6068
|
+
return /* @__PURE__ */ React51.createElement("code", { className: "inline-code" }, props.text);
|
|
5868
6069
|
};
|
|
5869
6070
|
|
|
5870
6071
|
// src/elements/Timeline.tsx
|
|
5871
|
-
import
|
|
6072
|
+
import React52 from "react";
|
|
5872
6073
|
var Timeline = (props) => {
|
|
5873
|
-
return /* @__PURE__ */
|
|
6074
|
+
return /* @__PURE__ */ React52.createElement("div", null, /* @__PURE__ */ React52.createElement("ol", { className: "relative border-l border-gray-200 dark:border-gray-700" }, props.steps.map((step) => /* @__PURE__ */ React52.createElement("li", { className: "mb-10 ml-4" }, /* @__PURE__ */ React52.createElement("div", { className: "absolute -left-1.5 mt-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700" }), /* @__PURE__ */ React52.createElement("time", { className: "mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500" }, step.date), /* @__PURE__ */ React52.createElement("h3", { className: "text-lg font-semibold text-gray-900 dark:text-white" }, step.title), /* @__PURE__ */ React52.createElement("p", { className: "mb-4 text-base font-normal text-gray-500 dark:text-gray-400" }, step.description), step.actions))));
|
|
5874
6075
|
};
|
|
5875
6076
|
|
|
5876
6077
|
// src/elements/HawaPinInput.tsx
|
|
5877
|
-
import
|
|
6078
|
+
import React53, { useEffect as useEffect17, useState as useState28 } from "react";
|
|
5878
6079
|
import clsx24 from "clsx";
|
|
5879
6080
|
var HawaPinInput = ({
|
|
5880
6081
|
label,
|
|
@@ -5918,7 +6119,7 @@ var HawaPinInput = ({
|
|
|
5918
6119
|
}
|
|
5919
6120
|
}
|
|
5920
6121
|
};
|
|
5921
|
-
return /* @__PURE__ */
|
|
6122
|
+
return /* @__PURE__ */ React53.createElement("div", { className: "flex w-full flex-row justify-center gap-2" }, pin.map((value, index) => /* @__PURE__ */ React53.createElement(
|
|
5922
6123
|
"input",
|
|
5923
6124
|
{
|
|
5924
6125
|
key: index,
|
|
@@ -5940,7 +6141,7 @@ var HawaPinInput = ({
|
|
|
5940
6141
|
};
|
|
5941
6142
|
|
|
5942
6143
|
// src/elements/HawaItemCard.tsx
|
|
5943
|
-
import
|
|
6144
|
+
import React54, { useEffect as useEffect18, useState as useState29 } from "react";
|
|
5944
6145
|
import clsx25 from "clsx";
|
|
5945
6146
|
var HawaItemCard = ({
|
|
5946
6147
|
actions,
|
|
@@ -5982,13 +6183,13 @@ var HawaItemCard = ({
|
|
|
5982
6183
|
};
|
|
5983
6184
|
return () => window.onclick = null;
|
|
5984
6185
|
}, [openActionHeader]);
|
|
5985
|
-
return /* @__PURE__ */
|
|
6186
|
+
return /* @__PURE__ */ React54.createElement(
|
|
5986
6187
|
"div",
|
|
5987
6188
|
{
|
|
5988
6189
|
className: clsx25(defaultStyle, orientationStyles[orientation]),
|
|
5989
6190
|
...props
|
|
5990
6191
|
},
|
|
5991
|
-
cardImage && /* @__PURE__ */
|
|
6192
|
+
cardImage && /* @__PURE__ */ React54.createElement("div", { className: "group relative overflow-clip" }, /* @__PURE__ */ React54.createElement(
|
|
5992
6193
|
"img",
|
|
5993
6194
|
{
|
|
5994
6195
|
src: "https://via.placeholder.com/50",
|
|
@@ -5997,7 +6198,7 @@ var HawaItemCard = ({
|
|
|
5997
6198
|
clickableImage ? "overflow-clip transition-all group-hover:blur-lg" : ""
|
|
5998
6199
|
)
|
|
5999
6200
|
}
|
|
6000
|
-
), clickableImage && /* @__PURE__ */
|
|
6201
|
+
), clickableImage && /* @__PURE__ */ React54.createElement("div", { className: "absolute left-0 top-0 flex h-full w-full items-center justify-center opacity-0 transition-all group-hover:opacity-100 " }, /* @__PURE__ */ React54.createElement(
|
|
6001
6202
|
HawaButton,
|
|
6002
6203
|
{
|
|
6003
6204
|
startIcon: clickableImageActionIcon,
|
|
@@ -6006,14 +6207,14 @@ var HawaItemCard = ({
|
|
|
6006
6207
|
},
|
|
6007
6208
|
clickableImageActionText
|
|
6008
6209
|
))),
|
|
6009
|
-
/* @__PURE__ */
|
|
6210
|
+
/* @__PURE__ */ React54.createElement("div", { className: "relative w-full p-6" }, headerActions && /* @__PURE__ */ React54.createElement("div", { className: "max-h- bg-red absolute right-0 top-0 flex justify-end pr-3 pt-3" }, /* @__PURE__ */ React54.createElement(HawaMenu, { position: "top-right", menuItems: headerActions }, /* @__PURE__ */ React54.createElement(
|
|
6010
6211
|
"div",
|
|
6011
6212
|
{
|
|
6012
6213
|
className: clsx25(headerActionsButtonStyle),
|
|
6013
6214
|
onClick: handleOpenActionHeader
|
|
6014
6215
|
},
|
|
6015
|
-
/* @__PURE__ */
|
|
6016
|
-
/* @__PURE__ */
|
|
6216
|
+
/* @__PURE__ */ React54.createElement("span", { className: "sr-only" }, "Open dropdown"),
|
|
6217
|
+
/* @__PURE__ */ React54.createElement(
|
|
6017
6218
|
"svg",
|
|
6018
6219
|
{
|
|
6019
6220
|
className: "h-6 w-6",
|
|
@@ -6021,9 +6222,9 @@ var HawaItemCard = ({
|
|
|
6021
6222
|
fill: "currentColor",
|
|
6022
6223
|
viewBox: "0 0 20 20"
|
|
6023
6224
|
},
|
|
6024
|
-
/* @__PURE__ */
|
|
6225
|
+
/* @__PURE__ */ React54.createElement("path", { d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" })
|
|
6025
6226
|
)
|
|
6026
|
-
))), header && /* @__PURE__ */
|
|
6227
|
+
))), header && /* @__PURE__ */ React54.createElement("h5", { className: "mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white" }, header), content && /* @__PURE__ */ React54.createElement("p", { className: "w-full font-normal text-gray-700 dark:text-gray-400" }, content), actions || counts ? /* @__PURE__ */ React54.createElement(
|
|
6027
6228
|
"div",
|
|
6028
6229
|
{
|
|
6029
6230
|
className: clsx25(
|
|
@@ -6039,7 +6240,7 @@ var HawaItemCard = ({
|
|
|
6039
6240
|
|
|
6040
6241
|
// src/elements/HawaPricingCard.tsx
|
|
6041
6242
|
import clsx26 from "clsx";
|
|
6042
|
-
import
|
|
6243
|
+
import React55 from "react";
|
|
6043
6244
|
var HawaPricingCard = ({
|
|
6044
6245
|
size = "medium",
|
|
6045
6246
|
direction = "ltr",
|
|
@@ -6052,7 +6253,7 @@ var HawaPricingCard = ({
|
|
|
6052
6253
|
medium: "mx-1 w-full rounded min-w-fit border dark:border-gray-700 bg-background ",
|
|
6053
6254
|
large: "mx-1 w-full max-w-lg rounded border dark:border-gray-700 bg-background "
|
|
6054
6255
|
};
|
|
6055
|
-
return /* @__PURE__ */
|
|
6256
|
+
return /* @__PURE__ */ React55.createElement(
|
|
6056
6257
|
"div",
|
|
6057
6258
|
{
|
|
6058
6259
|
dir: isArabic ? "rtl" : "ltr",
|
|
@@ -6062,11 +6263,11 @@ var HawaPricingCard = ({
|
|
|
6062
6263
|
"flex flex-col gap-4 rounded border-2 p-4"
|
|
6063
6264
|
)
|
|
6064
6265
|
},
|
|
6065
|
-
/* @__PURE__ */
|
|
6066
|
-
/* @__PURE__ */
|
|
6067
|
-
/* @__PURE__ */
|
|
6068
|
-
props.features && /* @__PURE__ */
|
|
6069
|
-
return /* @__PURE__ */
|
|
6266
|
+
/* @__PURE__ */ React55.createElement("h5", { className: "text-md 0 font-bold text-primary/70" }, props.texts.title),
|
|
6267
|
+
/* @__PURE__ */ React55.createElement("div", { className: " text-primary/ flex items-baseline" }, /* @__PURE__ */ React55.createElement(React55.Fragment, null, /* @__PURE__ */ React55.createElement("span", { className: "text-5xl font-extrabold tracking-tight" }, props.price), /* @__PURE__ */ React55.createElement("span", { className: "mx-1 text-sm font-semibold" }, props.texts.currencyText)), /* @__PURE__ */ React55.createElement("span", { className: "ml-1 text-xl font-normal text-primary/70" }, "/ ", props.texts.cycleText)),
|
|
6268
|
+
/* @__PURE__ */ React55.createElement("h5", { className: "text-md font-normal text-primary/70" }, props.texts.subtitle),
|
|
6269
|
+
props.features && /* @__PURE__ */ React55.createElement("ul", { role: "list", className: "space-y-0 " }, props.features?.map((feature, o) => {
|
|
6270
|
+
return /* @__PURE__ */ React55.createElement("li", { key: o, className: "flex " }, /* @__PURE__ */ React55.createElement(
|
|
6070
6271
|
"svg",
|
|
6071
6272
|
{
|
|
6072
6273
|
"aria-label": "Check Icon",
|
|
@@ -6075,7 +6276,7 @@ var HawaPricingCard = ({
|
|
|
6075
6276
|
fill: "currentColor",
|
|
6076
6277
|
viewBox: "0 0 20 20"
|
|
6077
6278
|
},
|
|
6078
|
-
/* @__PURE__ */
|
|
6279
|
+
/* @__PURE__ */ React55.createElement(
|
|
6079
6280
|
"path",
|
|
6080
6281
|
{
|
|
6081
6282
|
fillRule: "evenodd",
|
|
@@ -6083,9 +6284,9 @@ var HawaPricingCard = ({
|
|
|
6083
6284
|
clipRule: "evenodd"
|
|
6084
6285
|
}
|
|
6085
6286
|
)
|
|
6086
|
-
), /* @__PURE__ */
|
|
6287
|
+
), /* @__PURE__ */ React55.createElement("span", { className: "flex items-center text-center font-normal leading-tight text-primary/70 " }, feature.text));
|
|
6087
6288
|
})),
|
|
6088
|
-
/* @__PURE__ */
|
|
6289
|
+
/* @__PURE__ */ React55.createElement(
|
|
6089
6290
|
Button,
|
|
6090
6291
|
{
|
|
6091
6292
|
onClick: props.onPlanClicked,
|
|
@@ -6099,7 +6300,7 @@ var HawaPricingCard = ({
|
|
|
6099
6300
|
|
|
6100
6301
|
// src/elements/HawaAdCard.tsx
|
|
6101
6302
|
import clsx27 from "clsx";
|
|
6102
|
-
import
|
|
6303
|
+
import React56 from "react";
|
|
6103
6304
|
var HawaAdCard = ({ orientation, ...props }) => {
|
|
6104
6305
|
let cardStyles = {
|
|
6105
6306
|
horizontal: "flex flex-row max-w-xl rounded border-gray-200 bg-gray-100 shadow-md p-2 gap-2 items-center relative dark:border-gray-700 dark:bg-gray-800 ",
|
|
@@ -6109,21 +6310,21 @@ var HawaAdCard = ({ orientation, ...props }) => {
|
|
|
6109
6310
|
horizontal: "w-auto h-full bg-blue-500 rounded-inner",
|
|
6110
6311
|
vertical: "bg-blue-500 rounded-inner w-auto "
|
|
6111
6312
|
};
|
|
6112
|
-
return /* @__PURE__ */
|
|
6313
|
+
return /* @__PURE__ */ React56.createElement(
|
|
6113
6314
|
"div",
|
|
6114
6315
|
{
|
|
6115
6316
|
className: clsx27(cardStyles[orientation], "dark:text-white"),
|
|
6116
6317
|
...props
|
|
6117
6318
|
},
|
|
6118
|
-
/* @__PURE__ */
|
|
6319
|
+
/* @__PURE__ */ React56.createElement("div", { className: "flex aspect-square w-full max-w-fit items-start " }, /* @__PURE__ */ React56.createElement(
|
|
6119
6320
|
"img",
|
|
6120
6321
|
{
|
|
6121
6322
|
src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
|
|
6122
6323
|
className: imageStyles[orientation]
|
|
6123
6324
|
}
|
|
6124
6325
|
)),
|
|
6125
|
-
/* @__PURE__ */
|
|
6126
|
-
/* @__PURE__ */
|
|
6326
|
+
/* @__PURE__ */ React56.createElement("div", { className: "w-full text-xs" }, /* @__PURE__ */ React56.createElement("div", { className: "font-bold" }, props.title), /* @__PURE__ */ React56.createElement("div", { className: "text-[12px]" }, props.description)),
|
|
6327
|
+
/* @__PURE__ */ React56.createElement(
|
|
6127
6328
|
"span",
|
|
6128
6329
|
{
|
|
6129
6330
|
onClick: props.handleHide,
|
|
@@ -6136,7 +6337,7 @@ var HawaAdCard = ({ orientation, ...props }) => {
|
|
|
6136
6337
|
|
|
6137
6338
|
// src/elements/HawaLandingCard.tsx
|
|
6138
6339
|
import clsx28 from "clsx";
|
|
6139
|
-
import
|
|
6340
|
+
import React57 from "react";
|
|
6140
6341
|
var HawaLandingCard = ({
|
|
6141
6342
|
orientation = "horizontal",
|
|
6142
6343
|
...props
|
|
@@ -6149,7 +6350,7 @@ var HawaLandingCard = ({
|
|
|
6149
6350
|
horizontal: "w-8 h-8 rounded",
|
|
6150
6351
|
vertical: "w-14 h-14 rounded"
|
|
6151
6352
|
};
|
|
6152
|
-
return /* @__PURE__ */
|
|
6353
|
+
return /* @__PURE__ */ React57.createElement(
|
|
6153
6354
|
"div",
|
|
6154
6355
|
{
|
|
6155
6356
|
className: clsx28(
|
|
@@ -6160,94 +6361,94 @@ var HawaLandingCard = ({
|
|
|
6160
6361
|
),
|
|
6161
6362
|
...props
|
|
6162
6363
|
},
|
|
6163
|
-
props.texts?.titleTip && /* @__PURE__ */
|
|
6164
|
-
props.imageURL && /* @__PURE__ */
|
|
6364
|
+
props.texts?.titleTip && /* @__PURE__ */ React57.createElement("div", { className: "text-sm text-red-600" }, props.texts?.titleTip),
|
|
6365
|
+
props.imageURL && /* @__PURE__ */ React57.createElement(
|
|
6165
6366
|
"img",
|
|
6166
6367
|
{
|
|
6167
6368
|
className: "absolute -bottom-10 -right-10 h-40 w-auto ",
|
|
6168
6369
|
src: props.imageURL
|
|
6169
6370
|
}
|
|
6170
6371
|
),
|
|
6171
|
-
props.texts?.title && /* @__PURE__ */
|
|
6172
|
-
props.texts?.description && /* @__PURE__ */
|
|
6173
|
-
props.texts?.linkText && /* @__PURE__ */
|
|
6372
|
+
props.texts?.title && /* @__PURE__ */ React57.createElement("div", { className: "mt-2 text-lg font-medium" }, props.texts?.title, " "),
|
|
6373
|
+
props.texts?.description && /* @__PURE__ */ React57.createElement("div", { className: "z-10 mt-4 text-sm" }, props.texts?.description),
|
|
6374
|
+
props.texts?.linkText && /* @__PURE__ */ React57.createElement("div", { className: "z-10 mt-6 text-sm underline underline-offset-8" }, props.texts?.linkText)
|
|
6174
6375
|
);
|
|
6175
6376
|
};
|
|
6176
6377
|
|
|
6177
6378
|
// src/elements/HawaStoreButtons.tsx
|
|
6178
|
-
import
|
|
6379
|
+
import React58 from "react";
|
|
6179
6380
|
var HawaStoreButtons = (props) => {
|
|
6180
|
-
return /* @__PURE__ */
|
|
6381
|
+
return /* @__PURE__ */ React58.createElement("div", { className: "flex justify-center" }, /* @__PURE__ */ React58.createElement("div", null, props.store === "apple" ? props.mode === "dark" ? /* @__PURE__ */ React58.createElement("div", { className: "mt-3 flex h-14 w-48 items-center justify-center rounded-lg bg-black text-white" }, /* @__PURE__ */ React58.createElement("div", { className: "mr-3" }, /* @__PURE__ */ React58.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ React58.createElement(
|
|
6181
6382
|
"path",
|
|
6182
6383
|
{
|
|
6183
6384
|
fill: "currentColor",
|
|
6184
6385
|
d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
|
|
6185
6386
|
}
|
|
6186
|
-
))), /* @__PURE__ */
|
|
6387
|
+
))), /* @__PURE__ */ React58.createElement("div", null, /* @__PURE__ */ React58.createElement("div", { className: "text-xs" }, "Download on the"), /* @__PURE__ */ React58.createElement("div", { className: "font-sans -mt-1 text-2xl font-semibold" }, "App Store"))) : /* @__PURE__ */ React58.createElement("div", { className: "mt-3 flex h-14 w-48 items-center justify-center rounded-lg border border-black bg-transparent text-black" }, /* @__PURE__ */ React58.createElement("div", { className: "mr-3" }, /* @__PURE__ */ React58.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ React58.createElement(
|
|
6187
6388
|
"path",
|
|
6188
6389
|
{
|
|
6189
6390
|
fill: "currentColor",
|
|
6190
6391
|
d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
|
|
6191
6392
|
}
|
|
6192
|
-
))), /* @__PURE__ */
|
|
6393
|
+
))), /* @__PURE__ */ React58.createElement("div", null, /* @__PURE__ */ React58.createElement("div", { className: "text-xs" }, "Download on the"), /* @__PURE__ */ React58.createElement("div", { className: "font-sans -mt-1 text-2xl font-semibold" }, "App Store"))) : props.mode === "dark" ? /* @__PURE__ */ React58.createElement("div", { className: "mt-3 flex h-14 w-48 items-center justify-center rounded-lg bg-black text-white" }, /* @__PURE__ */ React58.createElement("div", { className: "mr-3" }, /* @__PURE__ */ React58.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ React58.createElement(
|
|
6193
6394
|
"path",
|
|
6194
6395
|
{
|
|
6195
6396
|
fill: "#FFD400",
|
|
6196
6397
|
d: "M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"
|
|
6197
6398
|
}
|
|
6198
|
-
), /* @__PURE__ */
|
|
6399
|
+
), /* @__PURE__ */ React58.createElement(
|
|
6199
6400
|
"path",
|
|
6200
6401
|
{
|
|
6201
6402
|
fill: "#FF3333",
|
|
6202
6403
|
d: "M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"
|
|
6203
6404
|
}
|
|
6204
|
-
), /* @__PURE__ */
|
|
6405
|
+
), /* @__PURE__ */ React58.createElement(
|
|
6205
6406
|
"path",
|
|
6206
6407
|
{
|
|
6207
6408
|
fill: "#48FF48",
|
|
6208
6409
|
d: "M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"
|
|
6209
6410
|
}
|
|
6210
|
-
), /* @__PURE__ */
|
|
6411
|
+
), /* @__PURE__ */ React58.createElement(
|
|
6211
6412
|
"path",
|
|
6212
6413
|
{
|
|
6213
6414
|
fill: "#3BCCFF",
|
|
6214
6415
|
d: "M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"
|
|
6215
6416
|
}
|
|
6216
|
-
))), /* @__PURE__ */
|
|
6417
|
+
))), /* @__PURE__ */ React58.createElement("div", null, /* @__PURE__ */ React58.createElement("div", { className: "text-xs" }, "GET IT ON"), /* @__PURE__ */ React58.createElement("div", { className: "font-sans -mt-1 text-xl font-semibold" }, "Google Play"))) : /* @__PURE__ */ React58.createElement("div", { className: "mt-3 flex h-14 w-48 items-center justify-center rounded-lg border border-black bg-white text-black" }, /* @__PURE__ */ React58.createElement("div", { className: "mr-3" }, /* @__PURE__ */ React58.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ React58.createElement(
|
|
6217
6418
|
"path",
|
|
6218
6419
|
{
|
|
6219
6420
|
fill: "#FFD400",
|
|
6220
6421
|
d: "M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"
|
|
6221
6422
|
}
|
|
6222
|
-
), /* @__PURE__ */
|
|
6423
|
+
), /* @__PURE__ */ React58.createElement(
|
|
6223
6424
|
"path",
|
|
6224
6425
|
{
|
|
6225
6426
|
fill: "#FF3333",
|
|
6226
6427
|
d: "M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"
|
|
6227
6428
|
}
|
|
6228
|
-
), /* @__PURE__ */
|
|
6429
|
+
), /* @__PURE__ */ React58.createElement(
|
|
6229
6430
|
"path",
|
|
6230
6431
|
{
|
|
6231
6432
|
fill: "#48FF48",
|
|
6232
6433
|
d: "M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"
|
|
6233
6434
|
}
|
|
6234
|
-
), /* @__PURE__ */
|
|
6435
|
+
), /* @__PURE__ */ React58.createElement(
|
|
6235
6436
|
"path",
|
|
6236
6437
|
{
|
|
6237
6438
|
fill: "#3BCCFF",
|
|
6238
6439
|
d: "M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"
|
|
6239
6440
|
}
|
|
6240
|
-
))), /* @__PURE__ */
|
|
6441
|
+
))), /* @__PURE__ */ React58.createElement("div", null, /* @__PURE__ */ React58.createElement("div", { className: "text-xs" }, "GET IT ON"), /* @__PURE__ */ React58.createElement("div", { className: "font-sans -mt-1 text-xl font-semibold" }, "Google Play")))));
|
|
6241
6442
|
};
|
|
6242
6443
|
|
|
6243
6444
|
// src/elements/HawaLogoButton.tsx
|
|
6244
|
-
import
|
|
6445
|
+
import React59 from "react";
|
|
6245
6446
|
var HawaLogoButton = (props) => {
|
|
6246
6447
|
let isArabic = props.lang === "ar";
|
|
6247
6448
|
let logoElement = "";
|
|
6248
6449
|
switch (props.logo?.toLowerCase()) {
|
|
6249
6450
|
case "google":
|
|
6250
|
-
logoElement = /* @__PURE__ */
|
|
6451
|
+
logoElement = /* @__PURE__ */ React59.createElement(
|
|
6251
6452
|
"img",
|
|
6252
6453
|
{
|
|
6253
6454
|
src: "https://upload.wikimedia.org/wikipedia/commons/5/53/Google_%22G%22_Logo.svg",
|
|
@@ -6256,10 +6457,10 @@ var HawaLogoButton = (props) => {
|
|
|
6256
6457
|
);
|
|
6257
6458
|
break;
|
|
6258
6459
|
case "github":
|
|
6259
|
-
logoElement = /* @__PURE__ */
|
|
6460
|
+
logoElement = /* @__PURE__ */ React59.createElement("svg", { width: "32px", height: "32px", viewBox: "0 0 32 32", className: "h-7 w-7" }, /* @__PURE__ */ React59.createElement("path", { d: "M16 0.396c-8.839 0-16 7.167-16 16 0 7.073 4.584 13.068 10.937 15.183 0.803 0.151 1.093-0.344 1.093-0.772 0-0.38-0.009-1.385-0.015-2.719-4.453 0.964-5.391-2.151-5.391-2.151-0.729-1.844-1.781-2.339-1.781-2.339-1.448-0.989 0.115-0.968 0.115-0.968 1.604 0.109 2.448 1.645 2.448 1.645 1.427 2.448 3.744 1.74 4.661 1.328 0.14-1.031 0.557-1.74 1.011-2.135-3.552-0.401-7.287-1.776-7.287-7.907 0-1.751 0.62-3.177 1.645-4.297-0.177-0.401-0.719-2.031 0.141-4.235 0 0 1.339-0.427 4.4 1.641 1.281-0.355 2.641-0.532 4-0.541 1.36 0.009 2.719 0.187 4 0.541 3.043-2.068 4.381-1.641 4.381-1.641 0.859 2.204 0.317 3.833 0.161 4.235 1.015 1.12 1.635 2.547 1.635 4.297 0 6.145-3.74 7.5-7.296 7.891 0.556 0.479 1.077 1.464 1.077 2.959 0 2.14-0.020 3.864-0.020 4.385 0 0.416 0.28 0.916 1.104 0.755 6.4-2.093 10.979-8.093 10.979-15.156 0-8.833-7.161-16-16-16z" }));
|
|
6260
6461
|
break;
|
|
6261
6462
|
case "twitter":
|
|
6262
|
-
logoElement = /* @__PURE__ */
|
|
6463
|
+
logoElement = /* @__PURE__ */ React59.createElement(
|
|
6263
6464
|
"svg",
|
|
6264
6465
|
{
|
|
6265
6466
|
version: "1.1",
|
|
@@ -6268,7 +6469,7 @@ var HawaLogoButton = (props) => {
|
|
|
6268
6469
|
className: "h-5 w-5",
|
|
6269
6470
|
viewBox: "0 0 512.002 512.002"
|
|
6270
6471
|
},
|
|
6271
|
-
/* @__PURE__ */
|
|
6472
|
+
/* @__PURE__ */ React59.createElement(
|
|
6272
6473
|
"path",
|
|
6273
6474
|
{
|
|
6274
6475
|
d: "M500.398,94.784c-8.043,3.567-16.313,6.578-24.763,9.023c10.004-11.314,17.631-24.626,22.287-39.193\n c1.044-3.265-0.038-6.839-2.722-8.975c-2.681-2.137-6.405-2.393-9.356-0.644c-17.945,10.643-37.305,18.292-57.605,22.764\n c-20.449-19.981-48.222-31.353-76.934-31.353c-60.606,0-109.913,49.306-109.913,109.91c0,4.773,0.302,9.52,0.9,14.201\n c-75.206-6.603-145.124-43.568-193.136-102.463c-1.711-2.099-4.347-3.231-7.046-3.014c-2.7,0.211-5.127,1.734-6.491,4.075\n c-9.738,16.709-14.886,35.82-14.886,55.265c0,26.484,9.455,51.611,26.158,71.246c-5.079-1.759-10.007-3.957-14.711-6.568\n c-2.525-1.406-5.607-1.384-8.116,0.054c-2.51,1.439-4.084,4.084-4.151,6.976c-0.012,0.487-0.012,0.974-0.012,1.468\n c0,39.531,21.276,75.122,53.805,94.52c-2.795-0.279-5.587-0.684-8.362-1.214c-2.861-0.547-5.802,0.456-7.731,2.638\n c-1.932,2.18-2.572,5.219-1.681,7.994c12.04,37.591,43.039,65.24,80.514,73.67c-31.082,19.468-66.626,29.665-103.939,29.665\n c-7.786,0-15.616-0.457-23.279-1.364c-3.807-0.453-7.447,1.795-8.744,5.416c-1.297,3.622,0.078,7.66,3.316,9.736\n c47.935,30.735,103.361,46.98,160.284,46.98c111.903,0,181.907-52.769,220.926-97.037c48.657-55.199,76.562-128.261,76.562-200.451\n c0-3.016-0.046-6.061-0.139-9.097c19.197-14.463,35.724-31.967,49.173-52.085c2.043-3.055,1.822-7.094-0.545-9.906\n C507.7,94.204,503.76,93.294,500.398,94.784z"
|
|
@@ -6277,7 +6478,7 @@ var HawaLogoButton = (props) => {
|
|
|
6277
6478
|
);
|
|
6278
6479
|
break;
|
|
6279
6480
|
case "mada":
|
|
6280
|
-
logoElement = /* @__PURE__ */
|
|
6481
|
+
logoElement = /* @__PURE__ */ React59.createElement(
|
|
6281
6482
|
"img",
|
|
6282
6483
|
{
|
|
6283
6484
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/mada.png",
|
|
@@ -6286,7 +6487,7 @@ var HawaLogoButton = (props) => {
|
|
|
6286
6487
|
);
|
|
6287
6488
|
break;
|
|
6288
6489
|
case "stcpay":
|
|
6289
|
-
logoElement = /* @__PURE__ */
|
|
6490
|
+
logoElement = /* @__PURE__ */ React59.createElement(
|
|
6290
6491
|
"img",
|
|
6291
6492
|
{
|
|
6292
6493
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/stc-pay.png",
|
|
@@ -6295,7 +6496,7 @@ var HawaLogoButton = (props) => {
|
|
|
6295
6496
|
);
|
|
6296
6497
|
break;
|
|
6297
6498
|
case "visa/master":
|
|
6298
|
-
logoElement = /* @__PURE__ */
|
|
6499
|
+
logoElement = /* @__PURE__ */ React59.createElement(
|
|
6299
6500
|
"img",
|
|
6300
6501
|
{
|
|
6301
6502
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/visa-master.png",
|
|
@@ -6304,7 +6505,7 @@ var HawaLogoButton = (props) => {
|
|
|
6304
6505
|
);
|
|
6305
6506
|
break;
|
|
6306
6507
|
case "paypal":
|
|
6307
|
-
logoElement = /* @__PURE__ */
|
|
6508
|
+
logoElement = /* @__PURE__ */ React59.createElement(
|
|
6308
6509
|
"img",
|
|
6309
6510
|
{
|
|
6310
6511
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/paypal.png",
|
|
@@ -6313,7 +6514,7 @@ var HawaLogoButton = (props) => {
|
|
|
6313
6514
|
);
|
|
6314
6515
|
break;
|
|
6315
6516
|
case "googlepay":
|
|
6316
|
-
logoElement = /* @__PURE__ */
|
|
6517
|
+
logoElement = /* @__PURE__ */ React59.createElement(
|
|
6317
6518
|
"img",
|
|
6318
6519
|
{
|
|
6319
6520
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/google-pay.png",
|
|
@@ -6322,7 +6523,7 @@ var HawaLogoButton = (props) => {
|
|
|
6322
6523
|
);
|
|
6323
6524
|
break;
|
|
6324
6525
|
case "applepay":
|
|
6325
|
-
logoElement = /* @__PURE__ */
|
|
6526
|
+
logoElement = /* @__PURE__ */ React59.createElement(
|
|
6326
6527
|
"img",
|
|
6327
6528
|
{
|
|
6328
6529
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/apple-pay.png",
|
|
@@ -6331,12 +6532,12 @@ var HawaLogoButton = (props) => {
|
|
|
6331
6532
|
);
|
|
6332
6533
|
break;
|
|
6333
6534
|
case "wallet":
|
|
6334
|
-
logoElement = /* @__PURE__ */
|
|
6535
|
+
logoElement = /* @__PURE__ */ React59.createElement("svg", { version: "1.1", viewBox: "0 0 223 223", className: "h-6 w-6" }, /* @__PURE__ */ React59.createElement("g", null, /* @__PURE__ */ React59.createElement(
|
|
6335
6536
|
"path",
|
|
6336
6537
|
{
|
|
6337
6538
|
d: "M223,94.5c0-6.075-4.925-11-11-11h-63c-6.075,0-11,4.925-11,11v33c0,6.075,4.925,11,11,11h63c6.075,0,11-4.925,11-11V94.5z\n M169.515,123.967c-7.082,0-12.823-5.741-12.823-12.823c0-7.082,5.741-12.823,12.823-12.823c7.082,0,12.823,5.741,12.823,12.823\n C182.338,118.225,176.597,123.967,169.515,123.967z"
|
|
6338
6539
|
}
|
|
6339
|
-
), /* @__PURE__ */
|
|
6540
|
+
), /* @__PURE__ */ React59.createElement(
|
|
6340
6541
|
"path",
|
|
6341
6542
|
{
|
|
6342
6543
|
d: "M123.509,68.5H205v-33c0-8.271-6.395-15-14.667-15h-175C7.062,20.5,0,27.229,0,35.5v152c0,8.271,7.062,15,15.333,15h175\n c8.271,0,14.667-6.729,14.667-15v-34h-81.342L123.509,68.5z"
|
|
@@ -6346,21 +6547,21 @@ var HawaLogoButton = (props) => {
|
|
|
6346
6547
|
default:
|
|
6347
6548
|
break;
|
|
6348
6549
|
}
|
|
6349
|
-
return /* @__PURE__ */
|
|
6550
|
+
return /* @__PURE__ */ React59.createElement(
|
|
6350
6551
|
"button",
|
|
6351
6552
|
{
|
|
6352
6553
|
dir: props.direction,
|
|
6353
6554
|
onClick: props.onClick,
|
|
6354
6555
|
className: "my-2 flex h-11 w-full flex-row justify-center rounded border bg-white align-middle transition-all hover:ring-1 hover:ring-buttonPrimary-500 hover:brightness-90"
|
|
6355
6556
|
},
|
|
6356
|
-
/* @__PURE__ */
|
|
6357
|
-
/* @__PURE__ */
|
|
6358
|
-
/* @__PURE__ */
|
|
6557
|
+
/* @__PURE__ */ React59.createElement("div", { className: "flex h-full flex-row items-center justify-end" }, logoElement),
|
|
6558
|
+
/* @__PURE__ */ React59.createElement("div", { style: { width: 10 } }),
|
|
6559
|
+
/* @__PURE__ */ React59.createElement("div", { className: "flex h-full flex-col items-start justify-center dark:text-black" }, props.buttonText)
|
|
6359
6560
|
);
|
|
6360
6561
|
};
|
|
6361
6562
|
|
|
6362
6563
|
// src/elements/Carousel.tsx
|
|
6363
|
-
import
|
|
6564
|
+
import React60 from "react";
|
|
6364
6565
|
|
|
6365
6566
|
// src/hooks/useCarousel.ts
|
|
6366
6567
|
import { useState as useState30, useRef as useRef11 } from "react";
|
|
@@ -6423,7 +6624,7 @@ var Carousel = ({ images }) => {
|
|
|
6423
6624
|
handleMouseUp,
|
|
6424
6625
|
handleMouseMove
|
|
6425
6626
|
} = useCarousel_default(imageWidth);
|
|
6426
|
-
return /* @__PURE__ */
|
|
6627
|
+
return /* @__PURE__ */ React60.createElement(
|
|
6427
6628
|
"div",
|
|
6428
6629
|
{
|
|
6429
6630
|
className: "flex cursor-pointer snap-x gap-4 overflow-x-scroll",
|
|
@@ -6433,7 +6634,7 @@ var Carousel = ({ images }) => {
|
|
|
6433
6634
|
onMouseMove: handleMouseMove,
|
|
6434
6635
|
ref: containerRef
|
|
6435
6636
|
},
|
|
6436
|
-
images.map((image, index) => /* @__PURE__ */
|
|
6637
|
+
images.map((image, index) => /* @__PURE__ */ React60.createElement("div", { key: index, className: "h-40 w-60 flex-shrink-0" }, /* @__PURE__ */ React60.createElement(
|
|
6437
6638
|
"img",
|
|
6438
6639
|
{
|
|
6439
6640
|
src: image,
|
|
@@ -6445,10 +6646,10 @@ var Carousel = ({ images }) => {
|
|
|
6445
6646
|
};
|
|
6446
6647
|
|
|
6447
6648
|
// src/elements/Input.tsx
|
|
6448
|
-
import * as
|
|
6449
|
-
var Input =
|
|
6649
|
+
import * as React61 from "react";
|
|
6650
|
+
var Input = React61.forwardRef(
|
|
6450
6651
|
({ className, preview, type, ...props }, ref) => {
|
|
6451
|
-
return /* @__PURE__ */
|
|
6652
|
+
return /* @__PURE__ */ React61.createElement(
|
|
6452
6653
|
"input",
|
|
6453
6654
|
{
|
|
6454
6655
|
type,
|
|
@@ -6467,7 +6668,7 @@ var Input = React60.forwardRef(
|
|
|
6467
6668
|
Input.displayName = "Input";
|
|
6468
6669
|
|
|
6469
6670
|
// src/elements/InterfaceSettings.tsx
|
|
6470
|
-
import
|
|
6671
|
+
import React62, { useState as useState32 } from "react";
|
|
6471
6672
|
var InterfaceSettings = ({
|
|
6472
6673
|
orientation = "horizontal",
|
|
6473
6674
|
width = "default",
|
|
@@ -6479,7 +6680,7 @@ var InterfaceSettings = ({
|
|
|
6479
6680
|
horizontal: "flex flex-row justify-between",
|
|
6480
6681
|
vertical: "flex flex-col items-center gap-2"
|
|
6481
6682
|
};
|
|
6482
|
-
return /* @__PURE__ */
|
|
6683
|
+
return /* @__PURE__ */ React62.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ React62.createElement(
|
|
6483
6684
|
HawaRadio,
|
|
6484
6685
|
{
|
|
6485
6686
|
width,
|
|
@@ -6494,7 +6695,7 @@ var InterfaceSettings = ({
|
|
|
6494
6695
|
{ value: "en", label: "English" }
|
|
6495
6696
|
]
|
|
6496
6697
|
}
|
|
6497
|
-
), /* @__PURE__ */
|
|
6698
|
+
), /* @__PURE__ */ React62.createElement(
|
|
6498
6699
|
HawaRadio,
|
|
6499
6700
|
{
|
|
6500
6701
|
width,
|
|
@@ -6507,7 +6708,7 @@ var InterfaceSettings = ({
|
|
|
6507
6708
|
options: [
|
|
6508
6709
|
{
|
|
6509
6710
|
value: "light",
|
|
6510
|
-
label: /* @__PURE__ */
|
|
6711
|
+
label: /* @__PURE__ */ React62.createElement(
|
|
6511
6712
|
"svg",
|
|
6512
6713
|
{
|
|
6513
6714
|
width: "15",
|
|
@@ -6517,7 +6718,7 @@ var InterfaceSettings = ({
|
|
|
6517
6718
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6518
6719
|
className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90"
|
|
6519
6720
|
},
|
|
6520
|
-
/* @__PURE__ */
|
|
6721
|
+
/* @__PURE__ */ React62.createElement(
|
|
6521
6722
|
"path",
|
|
6522
6723
|
{
|
|
6523
6724
|
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",
|
|
@@ -6530,7 +6731,7 @@ var InterfaceSettings = ({
|
|
|
6530
6731
|
},
|
|
6531
6732
|
{
|
|
6532
6733
|
value: "dark",
|
|
6533
|
-
label: /* @__PURE__ */
|
|
6734
|
+
label: /* @__PURE__ */ React62.createElement(
|
|
6534
6735
|
"svg",
|
|
6535
6736
|
{
|
|
6536
6737
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6544,7 +6745,7 @@ var InterfaceSettings = ({
|
|
|
6544
6745
|
"stroke-linejoin": "round",
|
|
6545
6746
|
className: "h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100"
|
|
6546
6747
|
},
|
|
6547
|
-
/* @__PURE__ */
|
|
6748
|
+
/* @__PURE__ */ React62.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
|
6548
6749
|
)
|
|
6549
6750
|
}
|
|
6550
6751
|
]
|
|
@@ -6552,211 +6753,6 @@ var InterfaceSettings = ({
|
|
|
6552
6753
|
));
|
|
6553
6754
|
};
|
|
6554
6755
|
|
|
6555
|
-
// src/elements/DropdownMenu.tsx
|
|
6556
|
-
import * as React62 from "react";
|
|
6557
|
-
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
6558
|
-
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
|
6559
|
-
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
6560
|
-
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
6561
|
-
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
6562
|
-
var DropdownMenuSubTrigger = React62.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React62.createElement(
|
|
6563
|
-
DropdownMenuPrimitive.SubTrigger,
|
|
6564
|
-
{
|
|
6565
|
-
ref,
|
|
6566
|
-
className: cn(
|
|
6567
|
-
"flex cursor-default select-none items-center justify-between rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
|
|
6568
|
-
inset && "pl-8",
|
|
6569
|
-
className
|
|
6570
|
-
),
|
|
6571
|
-
...props
|
|
6572
|
-
},
|
|
6573
|
-
children,
|
|
6574
|
-
/* @__PURE__ */ React62.createElement(
|
|
6575
|
-
"svg",
|
|
6576
|
-
{
|
|
6577
|
-
"aria-label": "Chevron Right Icon",
|
|
6578
|
-
stroke: "currentColor",
|
|
6579
|
-
fill: "currentColor",
|
|
6580
|
-
"stroke-width": "0",
|
|
6581
|
-
viewBox: "0 0 16 16",
|
|
6582
|
-
height: "1em",
|
|
6583
|
-
width: "1em",
|
|
6584
|
-
className: cn(props.dir === "rtl" ? "rotate-180" : "")
|
|
6585
|
-
},
|
|
6586
|
-
/* @__PURE__ */ React62.createElement(
|
|
6587
|
-
"path",
|
|
6588
|
-
{
|
|
6589
|
-
"fill-rule": "evenodd",
|
|
6590
|
-
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"
|
|
6591
|
-
}
|
|
6592
|
-
)
|
|
6593
|
-
)
|
|
6594
|
-
));
|
|
6595
|
-
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
6596
|
-
var DropdownMenuSubContent = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React62.createElement(
|
|
6597
|
-
DropdownMenuPrimitive.SubContent,
|
|
6598
|
-
{
|
|
6599
|
-
ref,
|
|
6600
|
-
className: cn(
|
|
6601
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
6602
|
-
className
|
|
6603
|
-
),
|
|
6604
|
-
...props
|
|
6605
|
-
}
|
|
6606
|
-
));
|
|
6607
|
-
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
6608
|
-
var DropdownMenuContent = React62.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React62.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React62.createElement(
|
|
6609
|
-
DropdownMenuPrimitive.Content,
|
|
6610
|
-
{
|
|
6611
|
-
ref,
|
|
6612
|
-
sideOffset,
|
|
6613
|
-
className: cn(
|
|
6614
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
6615
|
-
className
|
|
6616
|
-
),
|
|
6617
|
-
...props
|
|
6618
|
-
}
|
|
6619
|
-
)));
|
|
6620
|
-
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
6621
|
-
var DropdownMenuItem = React62.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React62.createElement(
|
|
6622
|
-
DropdownMenuPrimitive.Item,
|
|
6623
|
-
{
|
|
6624
|
-
ref,
|
|
6625
|
-
className: cn(
|
|
6626
|
-
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
6627
|
-
inset && "pl-8",
|
|
6628
|
-
className
|
|
6629
|
-
),
|
|
6630
|
-
...props
|
|
6631
|
-
}
|
|
6632
|
-
));
|
|
6633
|
-
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
6634
|
-
var DropdownMenuCheckboxItem = React62.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React62.createElement(
|
|
6635
|
-
DropdownMenuPrimitive.CheckboxItem,
|
|
6636
|
-
{
|
|
6637
|
-
ref,
|
|
6638
|
-
className: cn(
|
|
6639
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
6640
|
-
className
|
|
6641
|
-
),
|
|
6642
|
-
checked,
|
|
6643
|
-
...props
|
|
6644
|
-
},
|
|
6645
|
-
/* @__PURE__ */ React62.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ React62.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React62.createElement(
|
|
6646
|
-
"svg",
|
|
6647
|
-
{
|
|
6648
|
-
"aria-label": "Check Mark",
|
|
6649
|
-
stroke: "currentColor",
|
|
6650
|
-
fill: "currentColor",
|
|
6651
|
-
"stroke-width": "0",
|
|
6652
|
-
viewBox: "0 0 512 512",
|
|
6653
|
-
height: "0.60em",
|
|
6654
|
-
width: "0.60em"
|
|
6655
|
-
},
|
|
6656
|
-
/* @__PURE__ */ React62.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" })
|
|
6657
|
-
), " ")),
|
|
6658
|
-
children
|
|
6659
|
-
));
|
|
6660
|
-
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
6661
|
-
var DropdownMenuRadioItem = React62.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React62.createElement(
|
|
6662
|
-
DropdownMenuPrimitive.RadioItem,
|
|
6663
|
-
{
|
|
6664
|
-
ref,
|
|
6665
|
-
className: cn(
|
|
6666
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
6667
|
-
className
|
|
6668
|
-
),
|
|
6669
|
-
...props
|
|
6670
|
-
},
|
|
6671
|
-
/* @__PURE__ */ React62.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ React62.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React62.createElement(
|
|
6672
|
-
"svg",
|
|
6673
|
-
{
|
|
6674
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6675
|
-
width: "24",
|
|
6676
|
-
"aria-label": "Circle",
|
|
6677
|
-
height: "24",
|
|
6678
|
-
viewBox: "0 0 24 24",
|
|
6679
|
-
fill: "none",
|
|
6680
|
-
stroke: "currentColor",
|
|
6681
|
-
"stroke-width": "2",
|
|
6682
|
-
"stroke-linecap": "round",
|
|
6683
|
-
"stroke-linejoin": "round",
|
|
6684
|
-
className: "h-2 w-2 fill-current"
|
|
6685
|
-
},
|
|
6686
|
-
/* @__PURE__ */ React62.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
|
6687
|
-
))),
|
|
6688
|
-
children
|
|
6689
|
-
));
|
|
6690
|
-
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
6691
|
-
var DropdownMenuLabel = React62.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React62.createElement(
|
|
6692
|
-
DropdownMenuPrimitive.Label,
|
|
6693
|
-
{
|
|
6694
|
-
ref,
|
|
6695
|
-
className: cn(
|
|
6696
|
-
"px-2 py-1.5 text-sm font-semibold",
|
|
6697
|
-
inset && "pl-8",
|
|
6698
|
-
className
|
|
6699
|
-
),
|
|
6700
|
-
...props
|
|
6701
|
-
}
|
|
6702
|
-
));
|
|
6703
|
-
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
6704
|
-
var DropdownMenuSeparator = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React62.createElement(
|
|
6705
|
-
DropdownMenuPrimitive.Separator,
|
|
6706
|
-
{
|
|
6707
|
-
ref,
|
|
6708
|
-
className: cn("-mx-1 my-1 h-px bg-muted", className),
|
|
6709
|
-
...props
|
|
6710
|
-
}
|
|
6711
|
-
));
|
|
6712
|
-
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
6713
|
-
var DropdownMenuShortcut = ({
|
|
6714
|
-
className,
|
|
6715
|
-
...props
|
|
6716
|
-
}) => {
|
|
6717
|
-
return /* @__PURE__ */ React62.createElement(
|
|
6718
|
-
"span",
|
|
6719
|
-
{
|
|
6720
|
-
className: cn("ml-auto text-xs tracking-widest opacity-60", className),
|
|
6721
|
-
...props
|
|
6722
|
-
}
|
|
6723
|
-
);
|
|
6724
|
-
};
|
|
6725
|
-
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
6726
|
-
var DropdownMenu2 = ({
|
|
6727
|
-
trigger,
|
|
6728
|
-
items,
|
|
6729
|
-
direction,
|
|
6730
|
-
onItemSelect,
|
|
6731
|
-
sideOffset,
|
|
6732
|
-
side,
|
|
6733
|
-
className,
|
|
6734
|
-
triggerClassname,
|
|
6735
|
-
align,
|
|
6736
|
-
alignOffset
|
|
6737
|
-
}) => {
|
|
6738
|
-
return /* @__PURE__ */ React62.createElement(DropdownMenuRoot, { dir: direction }, /* @__PURE__ */ React62.createElement(DropdownMenuTrigger, { className: triggerClassname }, trigger), /* @__PURE__ */ React62.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React62.createElement(
|
|
6739
|
-
DropdownMenuContent,
|
|
6740
|
-
{
|
|
6741
|
-
side,
|
|
6742
|
-
sideOffset,
|
|
6743
|
-
className: cn(className),
|
|
6744
|
-
align,
|
|
6745
|
-
alignOffset
|
|
6746
|
-
},
|
|
6747
|
-
items.map((item, index) => {
|
|
6748
|
-
return item.subitems ? /* @__PURE__ */ React62.createElement(DropdownMenuSub, null, /* @__PURE__ */ React62.createElement(DropdownMenuSubTrigger, { dir: direction }, item.label), /* @__PURE__ */ React62.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React62.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => /* @__PURE__ */ React62.createElement(
|
|
6749
|
-
DropdownMenuItem,
|
|
6750
|
-
{
|
|
6751
|
-
onSelect: () => subitem.action(),
|
|
6752
|
-
key: subIndex
|
|
6753
|
-
},
|
|
6754
|
-
subitem.label
|
|
6755
|
-
))))) : /* @__PURE__ */ React62.createElement(DropdownMenuItem, { key: index, onSelect: () => item.action() }, item.label);
|
|
6756
|
-
})
|
|
6757
|
-
)));
|
|
6758
|
-
};
|
|
6759
|
-
|
|
6760
6756
|
// src/elements/Popover.tsx
|
|
6761
6757
|
import * as React63 from "react";
|
|
6762
6758
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
@@ -7659,7 +7655,7 @@ var AppLayout = ({
|
|
|
7659
7655
|
/* @__PURE__ */ React76.createElement("div", null, props.email)
|
|
7660
7656
|
) : null,
|
|
7661
7657
|
/* @__PURE__ */ React76.createElement(
|
|
7662
|
-
|
|
7658
|
+
DropdownMenu,
|
|
7663
7659
|
{
|
|
7664
7660
|
triggerClassname: "mx-2",
|
|
7665
7661
|
align: "end",
|
|
@@ -8364,7 +8360,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8364
8360
|
/* @__PURE__ */ React78.createElement("div", null, props.email)
|
|
8365
8361
|
) : null,
|
|
8366
8362
|
/* @__PURE__ */ React78.createElement(
|
|
8367
|
-
|
|
8363
|
+
DropdownMenu,
|
|
8368
8364
|
{
|
|
8369
8365
|
triggerClassname: "mx-2",
|
|
8370
8366
|
align: "end",
|
|
@@ -10659,7 +10655,7 @@ export {
|
|
|
10659
10655
|
CreditCardForm,
|
|
10660
10656
|
DragDropImages,
|
|
10661
10657
|
DraggableCard,
|
|
10662
|
-
|
|
10658
|
+
DropdownMenu,
|
|
10663
10659
|
EmptyState,
|
|
10664
10660
|
FloatingComment,
|
|
10665
10661
|
FloatingCommentExec,
|