@sikka/hawa 0.1.55 → 0.1.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -781,7 +781,6 @@ var HawaRadio = ({
781
781
  const dir = window.getComputedStyle(ref.current.parentNode).direction;
782
782
  setParentDirection(dir);
783
783
  }
784
- console.log("how many times");
785
784
  });
786
785
  switch (design) {
787
786
  case "tabs":
@@ -1273,160 +1272,11 @@ var HawaAlert = ({
1273
1272
  };
1274
1273
 
1275
1274
  // src/elements/HawaTable.tsx
1276
- import React23, { useEffect as useEffect8, useState as useState12 } from "react";
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";
1275
+ import React23, { useEffect as useEffect7, useState as useState11 } from "react";
1281
1276
  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
1277
 
1428
1278
  // src/hooks/useTable.ts
1429
- import { useState as useState11, useEffect as useEffect7 } from "react";
1279
+ import { useState as useState10, useEffect as useEffect6 } from "react";
1430
1280
  var calculateRange = (data, rowsPerPage) => {
1431
1281
  const range = [];
1432
1282
  const num = Math.ceil(data?.length / rowsPerPage);
@@ -1462,9 +1312,9 @@ var sortData = (data, sortColumn, sortDirection) => {
1462
1312
  return data;
1463
1313
  };
1464
1314
  var useTable = (data, page, rowsPerPage, sortColumn, sortDirection) => {
1465
- const [tableRange, setTableRange] = useState11([]);
1466
- const [slice, setSlice] = useState11([]);
1467
- useEffect7(() => {
1315
+ const [tableRange, setTableRange] = useState10([]);
1316
+ const [slice, setSlice] = useState10([]);
1317
+ useEffect6(() => {
1468
1318
  if (data) {
1469
1319
  const range = calculateRange(data, rowsPerPage);
1470
1320
  setTableRange([...range]);
@@ -1477,33 +1327,261 @@ var useTable = (data, page, rowsPerPage, sortColumn, sortDirection) => {
1477
1327
  };
1478
1328
  var useTable_default = useTable;
1479
1329
 
1330
+ // src/elements/DropdownMenu.tsx
1331
+ import * as React22 from "react";
1332
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
1333
+ var DropdownMenuRoot = DropdownMenuPrimitive.Root;
1334
+ var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
1335
+ var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
1336
+ var DropdownMenuSub = DropdownMenuPrimitive.Sub;
1337
+ var DropdownMenuSubTrigger = React22.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React22.createElement(
1338
+ DropdownMenuPrimitive.SubTrigger,
1339
+ {
1340
+ ref,
1341
+ className: cn(
1342
+ "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",
1343
+ inset && "pl-8",
1344
+ className
1345
+ ),
1346
+ ...props
1347
+ },
1348
+ /* @__PURE__ */ React22.createElement("div", { className: "flex flex-row items-center gap-1" }, children),
1349
+ " ",
1350
+ /* @__PURE__ */ React22.createElement(
1351
+ "svg",
1352
+ {
1353
+ "aria-label": "Chevron Right Icon",
1354
+ stroke: "currentColor",
1355
+ fill: "currentColor",
1356
+ "stroke-width": "0",
1357
+ viewBox: "0 0 16 16",
1358
+ height: "1em",
1359
+ width: "1em",
1360
+ className: cn(props.dir === "rtl" ? "rotate-180" : "")
1361
+ },
1362
+ /* @__PURE__ */ React22.createElement(
1363
+ "path",
1364
+ {
1365
+ "fill-rule": "evenodd",
1366
+ 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"
1367
+ }
1368
+ )
1369
+ )
1370
+ ));
1371
+ DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
1372
+ var DropdownMenuSubContent = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement(
1373
+ DropdownMenuPrimitive.SubContent,
1374
+ {
1375
+ ref,
1376
+ className: cn(
1377
+ "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",
1378
+ className
1379
+ ),
1380
+ ...props
1381
+ }
1382
+ ));
1383
+ DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
1384
+ var DropdownMenuContent = React22.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React22.createElement(DropdownMenuPrimitive.Portal, null, /* @__PURE__ */ React22.createElement(
1385
+ DropdownMenuPrimitive.Content,
1386
+ {
1387
+ ref,
1388
+ sideOffset,
1389
+ className: cn(
1390
+ "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",
1391
+ className
1392
+ ),
1393
+ ...props
1394
+ }
1395
+ )));
1396
+ DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
1397
+ var DropdownMenuItem = React22.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React22.createElement(
1398
+ DropdownMenuPrimitive.Item,
1399
+ {
1400
+ ref,
1401
+ className: cn(
1402
+ "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",
1403
+ inset && "pl-8",
1404
+ className
1405
+ ),
1406
+ ...props
1407
+ }
1408
+ ));
1409
+ DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
1410
+ var DropdownMenuCheckboxItem = React22.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React22.createElement(
1411
+ DropdownMenuPrimitive.CheckboxItem,
1412
+ {
1413
+ ref,
1414
+ className: cn(
1415
+ "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",
1416
+ className
1417
+ ),
1418
+ checked,
1419
+ ...props
1420
+ },
1421
+ /* @__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(
1422
+ "svg",
1423
+ {
1424
+ "aria-label": "Check Mark",
1425
+ stroke: "currentColor",
1426
+ fill: "currentColor",
1427
+ "stroke-width": "0",
1428
+ viewBox: "0 0 512 512",
1429
+ height: "0.60em",
1430
+ width: "0.60em"
1431
+ },
1432
+ /* @__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" })
1433
+ ), " ")),
1434
+ children
1435
+ ));
1436
+ DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
1437
+ var DropdownMenuRadioItem = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React22.createElement(
1438
+ DropdownMenuPrimitive.RadioItem,
1439
+ {
1440
+ ref,
1441
+ className: cn(
1442
+ "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",
1443
+ className
1444
+ ),
1445
+ ...props
1446
+ },
1447
+ /* @__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(
1448
+ "svg",
1449
+ {
1450
+ xmlns: "http://www.w3.org/2000/svg",
1451
+ width: "24",
1452
+ "aria-label": "Circle",
1453
+ height: "24",
1454
+ viewBox: "0 0 24 24",
1455
+ fill: "none",
1456
+ stroke: "currentColor",
1457
+ "stroke-width": "2",
1458
+ "stroke-linecap": "round",
1459
+ "stroke-linejoin": "round",
1460
+ className: "h-2 w-2 fill-current"
1461
+ },
1462
+ /* @__PURE__ */ React22.createElement("circle", { cx: "12", cy: "12", r: "10" })
1463
+ ))),
1464
+ children
1465
+ ));
1466
+ DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
1467
+ var DropdownMenuLabel = React22.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React22.createElement(
1468
+ DropdownMenuPrimitive.Label,
1469
+ {
1470
+ ref,
1471
+ className: cn(
1472
+ "px-2 py-1.5 text-sm font-semibold",
1473
+ inset && "pl-8",
1474
+ className
1475
+ ),
1476
+ ...props
1477
+ }
1478
+ ));
1479
+ DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
1480
+ var DropdownMenuSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React22.createElement(
1481
+ DropdownMenuPrimitive.Separator,
1482
+ {
1483
+ ref,
1484
+ className: cn("-mx-1 my-1 h-px bg-muted", className),
1485
+ ...props
1486
+ }
1487
+ ));
1488
+ DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
1489
+ var DropdownMenuShortcut = ({
1490
+ className,
1491
+ ...props
1492
+ }) => {
1493
+ return /* @__PURE__ */ React22.createElement(
1494
+ "span",
1495
+ {
1496
+ className: cn("ml-auto text-xs tracking-widest opacity-60", className),
1497
+ ...props
1498
+ }
1499
+ );
1500
+ };
1501
+ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
1502
+ var DropdownMenu = ({
1503
+ trigger,
1504
+ items,
1505
+ direction,
1506
+ onItemSelect,
1507
+ sideOffset,
1508
+ side,
1509
+ className,
1510
+ triggerClassname,
1511
+ align,
1512
+ alignOffset
1513
+ }) => {
1514
+ return /* @__PURE__ */ React22.createElement(DropdownMenuRoot, { dir: direction }, /* @__PURE__ */ React22.createElement(DropdownMenuTrigger, { className: triggerClassname }, trigger), /* @__PURE__ */ React22.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React22.createElement(
1515
+ DropdownMenuContent,
1516
+ {
1517
+ side,
1518
+ sideOffset,
1519
+ className: cn(className, "flex flex-col gap-1"),
1520
+ align,
1521
+ alignOffset
1522
+ },
1523
+ items.map((item, index) => {
1524
+ 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(
1525
+ DropdownMenuItem,
1526
+ {
1527
+ className: "flex flex-row gap-1",
1528
+ onSelect: () => subitem.action(),
1529
+ key: subIndex
1530
+ },
1531
+ subitem.icon && subitem.icon,
1532
+ subitem.label
1533
+ ))))) : /* @__PURE__ */ React22.createElement(
1534
+ DropdownMenuItem,
1535
+ {
1536
+ className: "flex flex-row gap-1",
1537
+ key: index,
1538
+ onSelect: () => item.action()
1539
+ },
1540
+ item.icon && item.icon,
1541
+ item.label
1542
+ );
1543
+ })
1544
+ )));
1545
+ };
1546
+
1480
1547
  // src/elements/HawaTable.tsx
1548
+ var ChevronIcon = () => /* @__PURE__ */ React23.createElement(
1549
+ "svg",
1550
+ {
1551
+ "aria-label": "Chevron Right Icon",
1552
+ stroke: "currentColor",
1553
+ fill: "currentColor",
1554
+ "stroke-width": "0",
1555
+ viewBox: "0 0 16 16",
1556
+ height: "1em",
1557
+ width: "1em"
1558
+ },
1559
+ /* @__PURE__ */ React23.createElement(
1560
+ "path",
1561
+ {
1562
+ "fill-rule": "evenodd",
1563
+ 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"
1564
+ }
1565
+ )
1566
+ );
1481
1567
  var HawaTable = ({
1482
1568
  size = "normal",
1483
1569
  bodyColor = "white",
1484
1570
  headerColor = "gray-200",
1485
1571
  borders = "all",
1486
1572
  highlightFirst = false,
1487
- direction = "ltr",
1488
- bordersWidth = "1",
1489
- pagination = true,
1490
- ...props
1491
- }) => {
1492
- const [perPage, setPerPage] = useState12(10);
1493
- const [enteredPage, setEnteredPage] = useState12(null);
1494
- const [page, setPage] = useState12(1);
1495
- const [sortingCol, setSortingCol] = useState12(null);
1496
- const [sortedRows, setSortedRows] = useState12(props.rows);
1497
- const [sortColumn, setSortColumn] = useState12(null);
1498
- const [sortDirection, setSortDirection] = useState12(null);
1499
- const handleSort = (colIndex, sortable) => {
1500
- if (sortable) {
1501
- setSortColumn(colIndex);
1502
- setSortDirection(
1503
- (prevDirection) => prevDirection === "asc" ? "desc" : "asc"
1504
- );
1505
- }
1506
- };
1573
+ direction = "ltr",
1574
+ bordersWidth = "1",
1575
+ pagination = true,
1576
+ ...props
1577
+ }) => {
1578
+ const [perPage, setPerPage] = useState11(10);
1579
+ const [enteredPage, setEnteredPage] = useState11(null);
1580
+ const [page, setPage] = useState11(1);
1581
+ const [sortingCol, setSortingCol] = useState11(null);
1582
+ const [sortedRows, setSortedRows] = useState11(props.rows);
1583
+ const [sortColumn, setSortColumn] = useState11(null);
1584
+ const [sortDirection, setSortDirection] = useState11(null);
1507
1585
  const { slice, range } = useTable_default(
1508
1586
  props.rows,
1509
1587
  page,
@@ -1516,6 +1594,14 @@ var HawaTable = ({
1516
1594
  normal: "py-3 px-6",
1517
1595
  small: "px-3 py-1"
1518
1596
  };
1597
+ const handleSort = (colIndex, sortable) => {
1598
+ if (sortable) {
1599
+ setSortColumn(colIndex);
1600
+ setSortDirection(
1601
+ (prevDirection) => prevDirection === "asc" ? "desc" : "asc"
1602
+ );
1603
+ }
1604
+ };
1519
1605
  const changePage = () => {
1520
1606
  if (slice?.length < 1 && page !== 1) {
1521
1607
  setPage(page - 1);
@@ -1524,7 +1610,7 @@ var HawaTable = ({
1524
1610
  setPage(enteredPage);
1525
1611
  }
1526
1612
  };
1527
- useEffect8(() => {
1613
+ useEffect7(() => {
1528
1614
  changePage();
1529
1615
  }, [slice, page]);
1530
1616
  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 +1633,40 @@ var HawaTable = ({
1547
1633
  width: "full",
1548
1634
  margin: "none"
1549
1635
  }
1550
- ), /* @__PURE__ */ React23.createElement("div", { className: "flex flex-row items-center justify-between gap-2" }, /* @__PURE__ */ React23.createElement(
1551
- HawaButton,
1636
+ ), /* @__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(
1637
+ "svg",
1552
1638
  {
1553
- startIcon: /* @__PURE__ */ React23.createElement(
1554
- "svg",
1555
- {
1556
- "aria-label": "Filter Icon",
1557
- stroke: "currentColor",
1558
- fill: "currentColor",
1559
- "stroke-width": "0",
1560
- viewBox: "0 0 16 16",
1561
- height: "1em",
1562
- width: "1em"
1563
- },
1564
- /* @__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" })
1565
- ),
1566
- endIcon: /* @__PURE__ */ React23.createElement(
1567
- "svg",
1568
- {
1569
- "aria-label": "Chevron Right Icon",
1570
- stroke: "currentColor",
1571
- fill: "currentColor",
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
- )
1639
+ "aria-label": "Filter Icon",
1640
+ stroke: "currentColor",
1641
+ fill: "currentColor",
1642
+ "stroke-width": "0",
1643
+ viewBox: "0 0 16 16",
1644
+ height: "1em",
1645
+ width: "1em"
1646
+ },
1647
+ /* @__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" })
1648
+ ), props.texts?.filter ?? "Filter", /* @__PURE__ */ React23.createElement(
1649
+ "svg",
1650
+ {
1651
+ "aria-label": "Chevron Right Icon",
1652
+ stroke: "currentColor",
1653
+ fill: "currentColor",
1654
+ "stroke-width": "0",
1655
+ viewBox: "0 0 16 16",
1656
+ height: "1em",
1657
+ width: "1em"
1585
1658
  },
1586
- props.texts?.filter ?? "Filter"
1587
- ))), /* @__PURE__ */ React23.createElement(
1659
+ /* @__PURE__ */ React23.createElement(
1660
+ "path",
1661
+ {
1662
+ "fill-rule": "evenodd",
1663
+ 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"
1664
+ }
1665
+ )
1666
+ )))), /* @__PURE__ */ React23.createElement(
1588
1667
  "table",
1589
1668
  {
1590
- className: clsx13(
1669
+ className: clsx12(
1591
1670
  borders === "outer" || borders === "all" ? `outline outline-[${bordersWidth}px] -outline-offset-1 outline-gray-300 dark:outline-gray-700` : "",
1592
1671
  "w-full rounded text-left text-sm text-gray-500 dark:text-gray-400",
1593
1672
  `bg-${headerColor}`
@@ -1596,7 +1675,7 @@ var HawaTable = ({
1596
1675
  /* @__PURE__ */ React23.createElement(
1597
1676
  "thead",
1598
1677
  {
1599
- className: clsx13(
1678
+ className: clsx12(
1600
1679
  "text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400",
1601
1680
  borders === "rows" || borders === "all" || borders === "inner" ? "border-b " : ""
1602
1681
  )
@@ -1612,7 +1691,7 @@ var HawaTable = ({
1612
1691
  key: i,
1613
1692
  scope: "col",
1614
1693
  colSpan: 2,
1615
- className: clsx13(
1694
+ className: clsx12(
1616
1695
  col.sortable ? "cursor-pointer hover:bg-gray-300" : "",
1617
1696
  sizeStyles2[size],
1618
1697
  i !== 0 && (borders === "cols" || borders === "all" || borders === "inner") ? `border-r border-r-[${bordersWidth}px] border-l border-l-[${bordersWidth}px]` : ""
@@ -1626,7 +1705,7 @@ var HawaTable = ({
1626
1705
  "th",
1627
1706
  {
1628
1707
  scope: "col",
1629
- className: clsx13(sizeStyles2[size], "w-[calc(1%)] text-center")
1708
+ className: clsx12(sizeStyles2[size], "w-[calc(1%)] text-center")
1630
1709
  },
1631
1710
  props.texts?.actions ?? "Actions"
1632
1711
  ) : null)
@@ -1642,7 +1721,7 @@ var HawaTable = ({
1642
1721
  "tr",
1643
1722
  {
1644
1723
  key: rowIndex,
1645
- className: clsx13(
1724
+ className: clsx12(
1646
1725
  " dark:border-gray-700 dark:bg-gray-800",
1647
1726
  props.clickable ? "hover:bg-gray-100" : "",
1648
1727
  !lastRow && (borders === "all" || borders === "rows" || borders === "inner") ? `border-b border-b-[${bordersWidth}px]` : ""
@@ -1663,7 +1742,7 @@ var HawaTable = ({
1663
1742
  {
1664
1743
  colSpan: 2,
1665
1744
  key: i,
1666
- className: clsx13(
1745
+ className: clsx12(
1667
1746
  // borders === "outer" ? "border" : "",
1668
1747
  sizeStyles2[size],
1669
1748
  highlightFirst && firstCell ? "font-bold" : "font-normal",
@@ -1678,46 +1757,43 @@ var HawaTable = ({
1678
1757
  );
1679
1758
  }
1680
1759
  }),
1681
- props.actions ? size !== "small" ? /* @__PURE__ */ React23.createElement(
1760
+ props.actions && /* @__PURE__ */ React23.createElement(
1682
1761
  "td",
1683
1762
  {
1684
1763
  align: isRTL ? "right" : "left",
1685
- className: clsx13(
1686
- isRTL && lastRow ? "rounded-bl rounded-br-none" : "",
1687
- !isRTL && lastRow ? "rounded-bl-none rounded-br" : ""
1688
- // "w-fit bg-red-400"
1764
+ className: cn(
1765
+ isRTL && lastRow && "rounded-bl rounded-br-none",
1766
+ !isRTL && lastRow && "rounded-bl-none rounded-br"
1689
1767
  ),
1690
1768
  colSpan: 1
1691
1769
  },
1692
1770
  /* @__PURE__ */ React23.createElement("div", { className: "flex items-center justify-center" }, /* @__PURE__ */ React23.createElement(
1693
- HawaMenu,
1771
+ DropdownMenu,
1694
1772
  {
1695
- size: "small",
1696
- actionedItem: [rowIndex, singleRow],
1697
- menuItems: props.actions,
1698
- position: direction === "rtl" ? "right-bottom" : "left-bottom",
1699
- direction
1700
- },
1701
- /* @__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(
1702
- "svg",
1703
- {
1704
- "aria-label": "Vertical Three Dots Menu Icon",
1705
- stroke: "currentColor",
1706
- fill: "currentColor",
1707
- "stroke-width": "0",
1708
- viewBox: "0 0 16 16",
1709
- height: "1em",
1710
- width: "1em"
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
- ))
1773
+ direction,
1774
+ side: "right",
1775
+ items: props.actions,
1776
+ 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(
1777
+ "svg",
1778
+ {
1779
+ "aria-label": "Vertical Three Dots Menu Icon",
1780
+ stroke: "currentColor",
1781
+ fill: "currentColor",
1782
+ "stroke-width": "0",
1783
+ viewBox: "0 0 16 16",
1784
+ height: "1em",
1785
+ width: "1em"
1786
+ },
1787
+ /* @__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" })
1788
+ ))
1789
+ }
1714
1790
  ))
1715
- ) : /* @__PURE__ */ React23.createElement("div", { className: "flex flex-row items-center justify-center gap-2 p-1" }, props.actions[0].map((act) => /* @__PURE__ */ React23.createElement("div", { className: " p-1 transition-all hover:bg-gray-100" }, act.icon))) : null
1791
+ )
1716
1792
  );
1717
1793
  }) : /* @__PURE__ */ React23.createElement("tr", { className: "bg-transparent" }, /* @__PURE__ */ React23.createElement("td", { colSpan: 20 }, /* @__PURE__ */ React23.createElement(
1718
1794
  "div",
1719
1795
  {
1720
- className: clsx13(
1796
+ className: clsx12(
1721
1797
  "w-full rounded-b border p-5 text-center",
1722
1798
  // bodyColor ? `bg-${bodyColor}` : "bg-background"
1723
1799
  "bg-background"
@@ -1729,39 +1805,22 @@ var HawaTable = ({
1729
1805
  )), 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
1806
  "div",
1731
1807
  {
1732
- className: clsx13(
1733
- "flex h-6 w-6 rotate-180 cursor-pointer items-center justify-center rounded border bg-gray-100 p-1 text-xs hover:bg-layoutPrimary-700 dark:bg-background dark:hover:bg-gray-700 "
1808
+ className: cn(
1809
+ "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",
1810
+ direction === "rtl" && "rotate-0"
1734
1811
  ),
1735
1812
  onClick: () => page <= 1 ? setPage(range.length) : setPage(page - 1)
1736
1813
  },
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
- )
1814
+ /* @__PURE__ */ React23.createElement(ChevronIcon, null)
1756
1815
  ), /* @__PURE__ */ React23.createElement("div", { className: "flex flex-row items-center overflow-clip rounded transition-all" }, range.length > 6 && range.map((el, index) => {
1757
1816
  if (index <= 0) {
1758
1817
  return /* @__PURE__ */ React23.createElement(
1759
1818
  "button",
1760
1819
  {
1761
1820
  key: index,
1762
- className: clsx13(
1821
+ className: clsx12(
1763
1822
  "w-10 p-1 text-xs hover:bg-gray-200",
1764
- page === el ? "bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500" : "bg-gray-100"
1823
+ page === el ? "bg-primary text-primary-foreground hover:bg-primary" : "bg-gray-100"
1765
1824
  ),
1766
1825
  onClick: () => setPage(el)
1767
1826
  },
@@ -1789,9 +1848,9 @@ var HawaTable = ({
1789
1848
  "button",
1790
1849
  {
1791
1850
  key: index,
1792
- className: clsx13(
1851
+ className: clsx12(
1793
1852
  "w-10 p-1 text-xs hover:bg-gray-200",
1794
- page === el ? "bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500" : "bg-gray-100"
1853
+ page === el ? "bg-primary text-primary-foreground hover:bg-primary" : "bg-gray-100"
1795
1854
  ),
1796
1855
  onClick: () => setPage(el)
1797
1856
  },
@@ -1803,11 +1862,20 @@ var HawaTable = ({
1803
1862
  "button",
1804
1863
  {
1805
1864
  key: index,
1806
- className: clsx13(
1807
- "w-10 p-1 text-xs hover:bg-gray-200 dark:hover:bg-gray-700",
1808
- page === el ? "bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500" : "border bg-background",
1809
- index === 0 ? "rounded-l border-r-0" : "",
1810
- index === range.length - 1 ? "rounded-r border-l-0" : ""
1865
+ className: clsx12(
1866
+ "w-10 p-1 text-xs",
1867
+ page === el ? "bg-primary text-primary-foreground " : "border bg-background hover:bg-primary/10 dark:hover:bg-primary/10",
1868
+ // Check if the direction is 'rtl'
1869
+ direction === "rtl" ? (
1870
+ // If direction is 'rtl', then check for the index conditions
1871
+ // and apply respective classes along with the 'something' class
1872
+ index === 0 ? "rounded-r border-l-0" : index === range.length - 1 ? "rounded-l border-r-0" : ""
1873
+ ) : (
1874
+ // If direction is not 'rtl', then again check for the index conditions
1875
+ // and apply respective classes along with the 'something else' class
1876
+ index === 0 ? "rounded-l border-r-0" : index === range.length - 1 ? "rounded-r border-l-0" : ""
1877
+ )
1878
+ // Apply if index is other than 0 or last element and direction is not 'rtl'
1811
1879
  ),
1812
1880
  onClick: () => setPage(el)
1813
1881
  },
@@ -1817,29 +1885,12 @@ var HawaTable = ({
1817
1885
  "div",
1818
1886
  {
1819
1887
  onClick: () => page >= range.length ? setPage(1) : setPage(page + 1),
1820
- className: clsx13(
1821
- "flex h-6 w-6 cursor-pointer items-center justify-center rounded border bg-gray-100 p-1 text-xs hover:bg-layoutPrimary-700 dark:bg-background dark:hover:bg-gray-700 "
1888
+ className: cn(
1889
+ "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",
1890
+ direction === "rtl" && "rotate-180"
1822
1891
  )
1823
1892
  },
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
- )
1893
+ /* @__PURE__ */ React23.createElement(ChevronIcon, null)
1843
1894
  )) : /* @__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
1895
  "select",
1845
1896
  {
@@ -1864,16 +1915,16 @@ var HawaSearchBar = (props) => {
1864
1915
  };
1865
1916
 
1866
1917
  // src/elements/HawaAccordion.tsx
1867
- import React25, { useState as useState13 } from "react";
1868
- import clsx14 from "clsx";
1918
+ import React25, { useState as useState12 } from "react";
1919
+ import clsx13 from "clsx";
1869
1920
  var HawaAccordion = (props) => {
1870
- const [collapse, setCollapse] = useState13(false);
1921
+ const [collapse, setCollapse] = useState12(false);
1871
1922
  return /* @__PURE__ */ React25.createElement("div", { className: "h-fit w-full" }, /* @__PURE__ */ React25.createElement(
1872
1923
  "button",
1873
1924
  {
1874
1925
  id: "accordion-collapse-heading-" + props.index,
1875
1926
  type: "button",
1876
- className: clsx14(
1927
+ className: clsx13(
1877
1928
  collapse ? "rounded" : "rounded-t",
1878
1929
  "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
1930
  ),
@@ -1905,7 +1956,7 @@ var HawaAccordion = (props) => {
1905
1956
  {
1906
1957
  id: "accordion-collapse-body-" + props.index,
1907
1958
  "aria-labelledby": "accordion-collapse-heading-" + props.index,
1908
- className: clsx14(
1959
+ className: clsx13(
1909
1960
  collapse ? "invisible hidden h-0 p-0" : "visible h-full",
1910
1961
  "w-full rounded-b border border-t-0 border-gray-200 p-5 font-light dark:border-gray-700 dark:bg-gray-900"
1911
1962
  )
@@ -1915,7 +1966,7 @@ var HawaAccordion = (props) => {
1915
1966
  };
1916
1967
 
1917
1968
  // src/elements/HawaPhoneInput.tsx
1918
- import React26, { useState as useState14 } from "react";
1969
+ import React26, { useState as useState13 } from "react";
1919
1970
 
1920
1971
  // src/countries.ts
1921
1972
  var countries = [
@@ -3648,7 +3699,7 @@ var Option2 = ({
3648
3699
  children
3649
3700
  );
3650
3701
  var HawaPhoneInput = (props) => {
3651
- const [selectedCountry, setSelectedCountry] = useState14("+966");
3702
+ const [selectedCountry, setSelectedCountry] = useState13("+966");
3652
3703
  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
3704
  Select2,
3654
3705
  {
@@ -3732,7 +3783,7 @@ var HawaPhoneInput = (props) => {
3732
3783
  };
3733
3784
 
3734
3785
  // src/elements/HawaTabs.tsx
3735
- import React27, { useState as useState15 } from "react";
3786
+ import React27, { useState as useState14 } from "react";
3736
3787
  var HawaTabs = ({
3737
3788
  orientation = "horizontal",
3738
3789
  direction = "ltr",
@@ -3741,7 +3792,7 @@ var HawaTabs = ({
3741
3792
  pill = false,
3742
3793
  ...props
3743
3794
  }) => {
3744
- const [selectedOption, setSelectedOption] = useState15(props.options[0]?.value);
3795
+ const [selectedOption, setSelectedOption] = useState14(props.options[0]?.value);
3745
3796
  let activeTabStyle = {
3746
3797
  vertical: "inline-block py-2 px-4 text-white bg-primary active",
3747
3798
  horizontal: "inline-block py-2 px-4 text-white bg-primary active"
@@ -3837,8 +3888,8 @@ var HawaTabs = ({
3837
3888
  };
3838
3889
 
3839
3890
  // src/elements/HawaModal.tsx
3840
- import React28, { useEffect as useEffect9 } from "react";
3841
- import clsx15 from "clsx";
3891
+ import React28, { useEffect as useEffect8 } from "react";
3892
+ import clsx14 from "clsx";
3842
3893
  var HawaModal = ({
3843
3894
  open,
3844
3895
  title,
@@ -3847,7 +3898,7 @@ var HawaModal = ({
3847
3898
  ...props
3848
3899
  }) => {
3849
3900
  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
- useEffect9(() => {
3901
+ useEffect8(() => {
3851
3902
  if (closeOnClickOutside && open) {
3852
3903
  window.onclick = (e) => {
3853
3904
  e.stopPropagation();
@@ -3859,7 +3910,7 @@ var HawaModal = ({
3859
3910
  return /* @__PURE__ */ React28.createElement(
3860
3911
  "div",
3861
3912
  {
3862
- className: clsx15(
3913
+ className: clsx14(
3863
3914
  defaultStyle,
3864
3915
  open ? "z-10 opacity-100 " : "invisible -z-10 opacity-0"
3865
3916
  )
@@ -3867,7 +3918,7 @@ var HawaModal = ({
3867
3918
  /* @__PURE__ */ React28.createElement(
3868
3919
  "div",
3869
3920
  {
3870
- className: clsx15(
3921
+ className: clsx14(
3871
3922
  "absolute h-screen w-full bg-gray-500 opacity-50",
3872
3923
  open ? "opacity-50" : "opacity-0"
3873
3924
  )
@@ -3905,13 +3956,162 @@ var HawaModal = ({
3905
3956
  );
3906
3957
  };
3907
3958
 
3959
+ // src/elements/HawaMenu.tsx
3960
+ import React29, { useEffect as useEffect9, useRef as useRef5, useState as useState15 } from "react";
3961
+ import clsx15 from "clsx";
3962
+ var HawaMenu = ({
3963
+ menuItems,
3964
+ withHeader,
3965
+ direction = "ltr",
3966
+ headerTitle,
3967
+ headerSubtitle,
3968
+ size = "normal",
3969
+ children,
3970
+ onClickOutside,
3971
+ actionedItem,
3972
+ position = "top-right"
3973
+ }) => {
3974
+ const [menuOpened, setMenuOpened] = useState15(false);
3975
+ const childrenRef = useRef5(null);
3976
+ const [childrenHeight, setChildrenHeight] = useState15(null);
3977
+ const [childrenWidth, setChildrenWidth] = useState15(null);
3978
+ const menuRef = useRef5(null);
3979
+ const [menuWidth, setMenuWidth] = useState15(null);
3980
+ const [menuHeight, setMenuHeight] = useState15(null);
3981
+ useEffect9(() => {
3982
+ setMenuHeight(menuRef.current?.getBoundingClientRect().height);
3983
+ setMenuWidth(menuRef.current?.getBoundingClientRect().width);
3984
+ setChildrenHeight(childrenRef.current?.getBoundingClientRect().height);
3985
+ setChildrenWidth(childrenRef.current?.getBoundingClientRect().width);
3986
+ const handleClickOutside = (event) => {
3987
+ if (menuRef.current && !menuRef.current.contains(event.target)) {
3988
+ setMenuOpened(false);
3989
+ }
3990
+ };
3991
+ document.addEventListener("click", handleClickOutside, true);
3992
+ return () => {
3993
+ document.removeEventListener("click", handleClickOutside, true);
3994
+ };
3995
+ }, [onClickOutside]);
3996
+ 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";
3997
+ let sizeStyles2 = {
3998
+ small: "text-[11px] p-1 px-4 m-0",
3999
+ normal: "py-2 px-4",
4000
+ large: ""
4001
+ };
4002
+ let menuCoordinates;
4003
+ let spacing = 5;
4004
+ switch (position) {
4005
+ case "top-right":
4006
+ menuCoordinates = direction === "rtl" ? `${menuWidth - childrenWidth}px, -${menuHeight + childrenHeight + spacing}px` : `0px, -${menuHeight + childrenHeight + spacing}px`;
4007
+ break;
4008
+ case "top-left":
4009
+ menuCoordinates = direction === "rtl" ? `${0}px, -${menuHeight + childrenHeight + spacing}px` : `-${menuWidth - childrenWidth}px, -${menuHeight + childrenHeight + spacing}px`;
4010
+ break;
4011
+ case "bottom-right":
4012
+ menuCoordinates = direction === "rtl" ? `-${0}px, ${spacing}px` : `-${childrenWidth - menuWidth}px, ${spacing}px`;
4013
+ break;
4014
+ case "bottom-left":
4015
+ menuCoordinates = direction === "rtl" ? `0px, ${spacing}px` : `-${menuWidth - childrenWidth}px,${spacing}px`;
4016
+ break;
4017
+ case "right-bottom":
4018
+ menuCoordinates = direction === "rtl" ? `${menuWidth + spacing}px, -${childrenHeight}px` : `${childrenWidth + spacing}px, -${childrenHeight}px`;
4019
+ break;
4020
+ case "right-top":
4021
+ menuCoordinates = direction === "rtl" ? `${menuWidth + spacing}px, -${menuHeight}px` : `${childrenWidth + spacing}px, -${menuHeight}px`;
4022
+ break;
4023
+ case "left-bottom":
4024
+ menuCoordinates = direction === "rtl" ? `-${childrenWidth + spacing}px, -${childrenHeight}px` : `-${menuWidth + spacing}px, -${childrenHeight}px`;
4025
+ break;
4026
+ case "left-top":
4027
+ menuCoordinates = direction === "rtl" ? `-${childrenWidth + spacing}px, -${menuHeight}px` : `-${menuWidth + spacing}px, -${menuHeight}px`;
4028
+ break;
4029
+ default:
4030
+ menuCoordinates = `-${menuWidth / 2}px, -${childrenHeight + menuHeight / 2}px`;
4031
+ break;
4032
+ }
4033
+ return /* @__PURE__ */ React29.createElement(
4034
+ "div",
4035
+ {
4036
+ onClick: () => {
4037
+ if (menuOpened)
4038
+ setMenuOpened(false);
4039
+ else
4040
+ setMenuOpened(true);
4041
+ }
4042
+ },
4043
+ /* @__PURE__ */ React29.createElement("div", { ref: childrenRef }, children),
4044
+ /* @__PURE__ */ React29.createElement(
4045
+ "div",
4046
+ {
4047
+ ref: menuRef,
4048
+ style: {
4049
+ position: "absolute",
4050
+ width: "max-content",
4051
+ transform: `translate(${menuCoordinates})`,
4052
+ maxWidth: "200px"
4053
+ },
4054
+ className: clsx15(
4055
+ defaultStyles,
4056
+ menuOpened ? "opacity-100" : "invisible opacity-0"
4057
+ )
4058
+ },
4059
+ 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)),
4060
+ menuItems?.map((group, o) => {
4061
+ return /* @__PURE__ */ React29.createElement(
4062
+ "ul",
4063
+ {
4064
+ key: o,
4065
+ className: "bg-layout-1200 flex flex-col gap-1 p-1 text-gray-700 dark:text-gray-200"
4066
+ },
4067
+ group?.map((item, indx) => {
4068
+ return item.element ? /* @__PURE__ */ React29.createElement(
4069
+ "li",
4070
+ {
4071
+ key: indx,
4072
+ className: "cursor-pointer items-center rounded hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white"
4073
+ },
4074
+ item.element
4075
+ ) : /* @__PURE__ */ React29.createElement(
4076
+ "li",
4077
+ {
4078
+ key: indx,
4079
+ onClick: () => {
4080
+ if (item.disabled) {
4081
+ console.log("button is disabled");
4082
+ } else {
4083
+ item?.action(actionedItem);
4084
+ }
4085
+ },
4086
+ className: clsx15(
4087
+ "transition-all",
4088
+ 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 ",
4089
+ sizeStyles2[size]
4090
+ )
4091
+ },
4092
+ item.icon && /* @__PURE__ */ React29.createElement(
4093
+ "div",
4094
+ {
4095
+ className: size === "small" ? "mr-1 rtl:ml-1" : "mr-2 rtl:ml-2"
4096
+ },
4097
+ item.icon
4098
+ ),
4099
+ item.label
4100
+ );
4101
+ })
4102
+ );
4103
+ })
4104
+ )
4105
+ );
4106
+ };
4107
+
3908
4108
  // src/elements/HawaDropdownMenu.tsx
3909
- import React29 from "react";
3910
- import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
4109
+ import React30 from "react";
4110
+ import * as DropdownMenu2 from "@radix-ui/react-dropdown-menu";
3911
4111
  var HawaDropdownMenu = ({ children, direction }) => {
3912
- const [bookmarksChecked, setBookmarksChecked] = React29.useState(true);
3913
- const [urlsChecked, setUrlsChecked] = React29.useState(false);
3914
- const [person, setPerson] = React29.useState("pedro");
4112
+ const [bookmarksChecked, setBookmarksChecked] = React30.useState(true);
4113
+ const [urlsChecked, setUrlsChecked] = React30.useState(false);
4114
+ const [person, setPerson] = React30.useState("pedro");
3915
4115
  let dropdownData = {
3916
4116
  items: [
3917
4117
  {
@@ -3948,34 +4148,34 @@ var HawaDropdownMenu = ({ children, direction }) => {
3948
4148
  }
3949
4149
  ]
3950
4150
  };
3951
- return /* @__PURE__ */ React29.createElement(DropdownMenu.Root, { dir: direction }, /* @__PURE__ */ React29.createElement(DropdownMenu.Trigger, { asChild: true }, children), /* @__PURE__ */ React29.createElement(DropdownMenu.Portal, null, /* @__PURE__ */ React29.createElement(
3952
- DropdownMenu.Content,
4151
+ 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(
4152
+ DropdownMenu2.Content,
3953
4153
  {
3954
4154
  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
4155
  sideOffset: 5
3956
4156
  },
3957
- dropdownData.items.map((it, i) => /* @__PURE__ */ React29.createElement(
3958
- DropdownMenu.Item,
4157
+ dropdownData.items.map((it, i) => /* @__PURE__ */ React30.createElement(
4158
+ DropdownMenu2.Item,
3959
4159
  {
3960
4160
  key: i,
3961
4161
  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
4162
  disabled: it.disabled
3963
4163
  },
3964
4164
  it.label,
3965
- /* @__PURE__ */ React29.createElement("div", { className: " text-mauve-11 group-data-[disabled]:text-mauve-8 group-data-[highlighted]:text-white" }, it.shortcut)
4165
+ /* @__PURE__ */ React30.createElement("div", { className: " text-mauve-11 group-data-[disabled]:text-mauve-8 group-data-[highlighted]:text-white" }, it.shortcut)
3966
4166
  )),
3967
- /* @__PURE__ */ React29.createElement(DropdownMenu.Sub, null, /* @__PURE__ */ React29.createElement(
3968
- DropdownMenu.SubTrigger,
4167
+ /* @__PURE__ */ React30.createElement(DropdownMenu2.Sub, null, /* @__PURE__ */ React30.createElement(
4168
+ DropdownMenu2.SubTrigger,
3969
4169
  {
3970
4170
  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
4171
  },
3972
4172
  "More Tools",
3973
- /* @__PURE__ */ React29.createElement(
4173
+ /* @__PURE__ */ React30.createElement(
3974
4174
  "div",
3975
4175
  {
3976
4176
  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
4177
  },
3978
- /* @__PURE__ */ React29.createElement(
4178
+ /* @__PURE__ */ React30.createElement(
3979
4179
  "svg",
3980
4180
  {
3981
4181
  "aria-label": "Chevron Right Icon",
@@ -3986,7 +4186,7 @@ var HawaDropdownMenu = ({ children, direction }) => {
3986
4186
  height: "1em",
3987
4187
  width: "1em"
3988
4188
  },
3989
- /* @__PURE__ */ React29.createElement(
4189
+ /* @__PURE__ */ React30.createElement(
3990
4190
  "path",
3991
4191
  {
3992
4192
  "fill-rule": "evenodd",
@@ -3995,29 +4195,29 @@ var HawaDropdownMenu = ({ children, direction }) => {
3995
4195
  )
3996
4196
  )
3997
4197
  )
3998
- ), /* @__PURE__ */ React29.createElement(DropdownMenu.Portal, null, /* @__PURE__ */ React29.createElement(
3999
- DropdownMenu.SubContent,
4198
+ ), /* @__PURE__ */ React30.createElement(DropdownMenu2.Portal, null, /* @__PURE__ */ React30.createElement(
4199
+ DropdownMenu2.SubContent,
4000
4200
  {
4001
4201
  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
4202
  sideOffset: 2,
4003
4203
  alignOffset: -5
4004
4204
  },
4005
- /* @__PURE__ */ React29.createElement(DropdownMenu.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__ */ React29.createElement("div", { className: "ml-auto pl-[20px] text-mauve-11 group-data-[disabled]:text-mauve-8 group-data-[highlighted]:text-white" }, "\u2318+S")),
4006
- /* @__PURE__ */ React29.createElement(DropdownMenu.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"),
4007
- /* @__PURE__ */ React29.createElement(DropdownMenu.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"),
4008
- /* @__PURE__ */ React29.createElement(DropdownMenu.Separator, { className: "m-[5px] h-[1px] bg-violet-6" }),
4009
- /* @__PURE__ */ React29.createElement(DropdownMenu.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")
4205
+ /* @__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")),
4206
+ /* @__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"),
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" }, "Name Window\u2026"),
4208
+ /* @__PURE__ */ React30.createElement(DropdownMenu2.Separator, { className: "m-[5px] h-[1px] bg-violet-6" }),
4209
+ /* @__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
4210
  ))),
4011
- /* @__PURE__ */ React29.createElement(DropdownMenu.Separator, { className: "m-[5px] h-[1px] bg-violet-6" }),
4012
- dropdownData.checkboxes.map((ch, i) => /* @__PURE__ */ React29.createElement(
4013
- DropdownMenu.CheckboxItem,
4211
+ /* @__PURE__ */ React30.createElement(DropdownMenu2.Separator, { className: "m-[5px] h-[1px] bg-violet-6" }),
4212
+ dropdownData.checkboxes.map((ch, i) => /* @__PURE__ */ React30.createElement(
4213
+ DropdownMenu2.CheckboxItem,
4014
4214
  {
4015
4215
  key: i,
4016
4216
  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
4217
  checked: bookmarksChecked,
4018
4218
  onCheckedChange: setBookmarksChecked
4019
4219
  },
4020
- /* @__PURE__ */ React29.createElement(DropdownMenu.ItemIndicator, { className: "absolute inline-flex w-[25px] items-center justify-center ltr:left-0 rtl:right-0" }, /* @__PURE__ */ React29.createElement(
4220
+ /* @__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
4221
  "svg",
4022
4222
  {
4023
4223
  "aria-label": "Check Mark",
@@ -4028,20 +4228,20 @@ var HawaDropdownMenu = ({ children, direction }) => {
4028
4228
  height: "0.60em",
4029
4229
  width: "0.60em"
4030
4230
  },
4031
- /* @__PURE__ */ React29.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" })
4231
+ /* @__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
4232
  ), " "),
4033
4233
  ch.label,
4034
- /* @__PURE__ */ React29.createElement("div", { className: " text-mauve-11 group-data-[disabled]:text-mauve-8 group-data-[highlighted]:text-white" }, ch.shortcut)
4234
+ /* @__PURE__ */ React30.createElement("div", { className: " text-mauve-11 group-data-[disabled]:text-mauve-8 group-data-[highlighted]:text-white" }, ch.shortcut)
4035
4235
  )),
4036
- /* @__PURE__ */ React29.createElement(DropdownMenu.Separator, { className: "m-[5px] h-[1px] bg-violet-6" }),
4037
- /* @__PURE__ */ React29.createElement(DropdownMenu.Label, { className: "pl-[25px] text-xs leading-[25px] text-mauve-11" }, "People"),
4038
- /* @__PURE__ */ React29.createElement(DropdownMenu.RadioGroup, { value: person, onValueChange: setPerson }, /* @__PURE__ */ React29.createElement(
4039
- DropdownMenu.RadioItem,
4236
+ /* @__PURE__ */ React30.createElement(DropdownMenu2.Separator, { className: "m-[5px] h-[1px] bg-violet-6" }),
4237
+ /* @__PURE__ */ React30.createElement(DropdownMenu2.Label, { className: "pl-[25px] text-xs leading-[25px] text-mauve-11" }, "People"),
4238
+ /* @__PURE__ */ React30.createElement(DropdownMenu2.RadioGroup, { value: person, onValueChange: setPerson }, /* @__PURE__ */ React30.createElement(
4239
+ DropdownMenu2.RadioItem,
4040
4240
  {
4041
4241
  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
4242
  value: "pedro"
4043
4243
  },
4044
- /* @__PURE__ */ React29.createElement(DropdownMenu.ItemIndicator, { className: "absolute left-0 inline-flex w-[25px] items-center justify-center" }, /* @__PURE__ */ React29.createElement(
4244
+ /* @__PURE__ */ React30.createElement(DropdownMenu2.ItemIndicator, { className: "absolute left-0 inline-flex w-[25px] items-center justify-center" }, /* @__PURE__ */ React30.createElement(
4045
4245
  "svg",
4046
4246
  {
4047
4247
  "aria-label": "Filled Dot",
@@ -4050,7 +4250,7 @@ var HawaDropdownMenu = ({ children, direction }) => {
4050
4250
  viewBox: "0 0 15 15",
4051
4251
  fill: "none"
4052
4252
  },
4053
- /* @__PURE__ */ React29.createElement(
4253
+ /* @__PURE__ */ React30.createElement(
4054
4254
  "path",
4055
4255
  {
4056
4256
  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 +4259,13 @@ var HawaDropdownMenu = ({ children, direction }) => {
4059
4259
  )
4060
4260
  ), " "),
4061
4261
  "Pedro Duarte"
4062
- ), /* @__PURE__ */ React29.createElement(
4063
- DropdownMenu.RadioItem,
4262
+ ), /* @__PURE__ */ React30.createElement(
4263
+ DropdownMenu2.RadioItem,
4064
4264
  {
4065
4265
  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
4266
  value: "colm"
4067
4267
  },
4068
- /* @__PURE__ */ React29.createElement(DropdownMenu.ItemIndicator, { className: "absolute left-0 inline-flex w-[25px] items-center justify-center" }, /* @__PURE__ */ React29.createElement(
4268
+ /* @__PURE__ */ React30.createElement(DropdownMenu2.ItemIndicator, { className: "absolute left-0 inline-flex w-[25px] items-center justify-center" }, /* @__PURE__ */ React30.createElement(
4069
4269
  "svg",
4070
4270
  {
4071
4271
  "aria-label": "Filled Dot",
@@ -4074,7 +4274,7 @@ var HawaDropdownMenu = ({ children, direction }) => {
4074
4274
  viewBox: "0 0 15 15",
4075
4275
  fill: "none"
4076
4276
  },
4077
- /* @__PURE__ */ React29.createElement(
4277
+ /* @__PURE__ */ React30.createElement(
4078
4278
  "path",
4079
4279
  {
4080
4280
  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 +4284,18 @@ var HawaDropdownMenu = ({ children, direction }) => {
4084
4284
  ), " "),
4085
4285
  "Colm Tuite"
4086
4286
  )),
4087
- /* @__PURE__ */ React29.createElement(DropdownMenu.Arrow, { className: "fill-white" })
4287
+ /* @__PURE__ */ React30.createElement(DropdownMenu2.Arrow, { className: "fill-white" })
4088
4288
  )));
4089
4289
  };
4090
4290
 
4091
4291
  // src/elements/HawaCopyrights.tsx
4092
- import React30 from "react";
4292
+ import React31 from "react";
4093
4293
  var HawaCopyrights = (props) => {
4094
- return /* @__PURE__ */ React30.createElement("div", { className: "my-2 flex flex-col items-center justify-center gap-1 text-xs text-gray-400" }, props.withLogo ? /* @__PURE__ */ React30.createElement("a", { href: props.onLogoClicked }, /* @__PURE__ */ React30.createElement("div", { className: "cursor-pointer" }, /* @__PURE__ */ React30.createElement("image", { href: props.logoURL, width: 100, height: 50 }))) : null, /* @__PURE__ */ React30.createElement("div", null, props.version), props.credits ? props.credits : null);
4294
+ 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
4295
  };
4096
4296
 
4097
4297
  // src/elements/HawaStepper.tsx
4098
- import React31 from "react";
4298
+ import React32 from "react";
4099
4299
  import clsx16 from "clsx";
4100
4300
  var HawaStepper = ({
4101
4301
  orientation = "horizontal",
@@ -4109,7 +4309,7 @@ var HawaStepper = ({
4109
4309
  vertical: "w-1 h-32 rounded bg-red-200 ml-6 my-2",
4110
4310
  horizontal: "h-0.5 flex w-full rounded bg-red-200"
4111
4311
  };
4112
- return /* @__PURE__ */ React31.createElement(
4312
+ return /* @__PURE__ */ React32.createElement(
4113
4313
  "div",
4114
4314
  {
4115
4315
  className: clsx16(
@@ -4118,18 +4318,18 @@ var HawaStepper = ({
4118
4318
  )
4119
4319
  },
4120
4320
  props.steps.map((step, i) => {
4121
- return /* @__PURE__ */ React31.createElement(
4321
+ return /* @__PURE__ */ React32.createElement(
4122
4322
  "div",
4123
4323
  {
4124
4324
  key: i,
4125
4325
  className: "my-2 flex w-auto flex-row flex-wrap justify-start "
4126
4326
  },
4127
- /* @__PURE__ */ React31.createElement(
4327
+ /* @__PURE__ */ React32.createElement(
4128
4328
  "div",
4129
4329
  {
4130
4330
  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
4331
  },
4132
- /* @__PURE__ */ React31.createElement("div", { className: "flex flex-row gap-2 " }, /* @__PURE__ */ React31.createElement(
4332
+ /* @__PURE__ */ React32.createElement("div", { className: "flex flex-row gap-2 " }, /* @__PURE__ */ React32.createElement(
4133
4333
  "div",
4134
4334
  {
4135
4335
  className: clsx16(
@@ -4137,7 +4337,7 @@ var HawaStepper = ({
4137
4337
  i + 1 <= props.currentStep ? "bg-primary text-primary-foreground " : "bg-primary/20"
4138
4338
  )
4139
4339
  },
4140
- i + 1 <= props.currentStep ? /* @__PURE__ */ React31.createElement(
4340
+ i + 1 <= props.currentStep ? /* @__PURE__ */ React32.createElement(
4141
4341
  "svg",
4142
4342
  {
4143
4343
  "aria-label": "Check Mark",
@@ -4148,9 +4348,9 @@ var HawaStepper = ({
4148
4348
  height: "0.60em",
4149
4349
  width: "0.60em"
4150
4350
  },
4151
- /* @__PURE__ */ React31.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" })
4351
+ /* @__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
4352
  ) : i + 1
4153
- ), /* @__PURE__ */ React31.createElement("div", { className: "whitespace-nowrap" }, step))
4353
+ ), /* @__PURE__ */ React32.createElement("div", { className: "whitespace-nowrap" }, step))
4154
4354
  )
4155
4355
  );
4156
4356
  })
@@ -4158,12 +4358,12 @@ var HawaStepper = ({
4158
4358
  };
4159
4359
 
4160
4360
  // src/elements/HawaStats.tsx
4161
- import React34 from "react";
4361
+ import React35 from "react";
4162
4362
 
4163
4363
  // src/elements/Card.tsx
4164
- import * as React32 from "react";
4165
- var Card = React32.forwardRef(
4166
- ({ className, clickable = false, ...props }, ref) => /* @__PURE__ */ React32.createElement(
4364
+ import * as React33 from "react";
4365
+ var Card = React33.forwardRef(
4366
+ ({ className, clickable = false, ...props }, ref) => /* @__PURE__ */ React33.createElement(
4167
4367
  "div",
4168
4368
  {
4169
4369
  ref,
@@ -4177,7 +4377,7 @@ var Card = React32.forwardRef(
4177
4377
  )
4178
4378
  );
4179
4379
  Card.displayName = "Card";
4180
- var CardHeader = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React32.createElement(
4380
+ var CardHeader = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React33.createElement(
4181
4381
  "div",
4182
4382
  {
4183
4383
  ref,
@@ -4186,7 +4386,7 @@ var CardHeader = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE
4186
4386
  }
4187
4387
  ));
4188
4388
  CardHeader.displayName = "CardHeader";
4189
- var CardTitle = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React32.createElement(
4389
+ var CardTitle = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React33.createElement(
4190
4390
  "h3",
4191
4391
  {
4192
4392
  ref,
@@ -4198,7 +4398,7 @@ var CardTitle = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE_
4198
4398
  }
4199
4399
  ));
4200
4400
  CardTitle.displayName = "CardTitle";
4201
- var CardDescription = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React32.createElement(
4401
+ var CardDescription = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React33.createElement(
4202
4402
  "p",
4203
4403
  {
4204
4404
  ref,
@@ -4207,16 +4407,18 @@ var CardDescription = React32.forwardRef(({ className, ...props }, ref) => /* @_
4207
4407
  }
4208
4408
  ));
4209
4409
  CardDescription.displayName = "CardDescription";
4210
- var CardContent = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React32.createElement(
4211
- "div",
4212
- {
4213
- ref,
4214
- className: cn("p-6", props.headless ? "pt-6" : "pt-0", className),
4215
- ...props
4216
- }
4217
- ));
4410
+ var CardContent = React33.forwardRef(
4411
+ ({ headless, className, ...props }, ref) => /* @__PURE__ */ React33.createElement(
4412
+ "div",
4413
+ {
4414
+ ref,
4415
+ className: cn("p-6", headless ? "pt-6" : "pt-0", className),
4416
+ ...props
4417
+ }
4418
+ )
4419
+ );
4218
4420
  CardContent.displayName = "CardContent";
4219
- var CardFooter = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React32.createElement(
4421
+ var CardFooter = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React33.createElement(
4220
4422
  "div",
4221
4423
  {
4222
4424
  ref,
@@ -4227,12 +4429,12 @@ var CardFooter = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE
4227
4429
  CardFooter.displayName = "CardFooter";
4228
4430
 
4229
4431
  // src/elements/Skeleton.tsx
4230
- import React33 from "react";
4432
+ import React34 from "react";
4231
4433
  function Skeleton({
4232
4434
  className,
4233
4435
  ...props
4234
4436
  }) {
4235
- return /* @__PURE__ */ React33.createElement(
4437
+ return /* @__PURE__ */ React34.createElement(
4236
4438
  "div",
4237
4439
  {
4238
4440
  className: cn("animate-pulse rounded-md bg-muted", className),
@@ -4243,16 +4445,16 @@ function Skeleton({
4243
4445
 
4244
4446
  // src/elements/HawaStats.tsx
4245
4447
  var HawaStats = ({ variant = "default", ...props }) => {
4246
- return /* @__PURE__ */ React34.createElement(Card, { onClick: props.handleClick, clickable: Boolean(props.handleClick) }, /* @__PURE__ */ React34.createElement(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2" }, /* @__PURE__ */ React34.createElement(CardTitle, { className: "text-sm font-medium" }, props.label), props.icon && props.icon), /* @__PURE__ */ React34.createElement(CardContent, null, props.isLoading ? /* @__PURE__ */ React34.createElement(Skeleton, { className: "h-8 w-3/4" }) : /* @__PURE__ */ React34.createElement("div", { className: "text-2xl font-bold" }, props.number), props.isLoading && props.helperText ? /* @__PURE__ */ React34.createElement(Skeleton, { className: "mt-2 h-4 w-1/2" }) : props.helperText && /* @__PURE__ */ React34.createElement("p", { className: "text-xs text-muted-foreground" }, props.helperText)));
4448
+ 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
4449
  };
4248
4450
 
4249
4451
  // src/elements/HawaCodeBlock.tsx
4250
- import React36, { useState as useState17 } from "react";
4452
+ import React37, { useState as useState17 } from "react";
4251
4453
 
4252
4454
  // src/elements/Tooltip.tsx
4253
- import React35 from "react";
4455
+ import React36 from "react";
4254
4456
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
4255
- var TooltipContent = React35.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React35.createElement(
4457
+ var TooltipContent = React36.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React36.createElement(
4256
4458
  TooltipPrimitive.Content,
4257
4459
  {
4258
4460
  ref,
@@ -4265,7 +4467,7 @@ var TooltipContent = React35.forwardRef(({ className, sideOffset = 4, ...props }
4265
4467
  }
4266
4468
  ));
4267
4469
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
4268
- var TooltipArrow = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React35.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
4470
+ var TooltipArrow = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React36.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
4269
4471
  TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
4270
4472
  var Tooltip = ({
4271
4473
  side,
@@ -4277,15 +4479,15 @@ var Tooltip = ({
4277
4479
  delayDuration = 300,
4278
4480
  ...props
4279
4481
  }) => {
4280
- return /* @__PURE__ */ React35.createElement(TooltipPrimitive.TooltipProvider, { delayDuration }, /* @__PURE__ */ React35.createElement(
4482
+ return /* @__PURE__ */ React36.createElement(TooltipPrimitive.TooltipProvider, { delayDuration }, /* @__PURE__ */ React36.createElement(
4281
4483
  TooltipPrimitive.Root,
4282
4484
  {
4283
4485
  open,
4284
4486
  defaultOpen,
4285
4487
  onOpenChange
4286
4488
  },
4287
- /* @__PURE__ */ React35.createElement(TooltipPrimitive.Trigger, { asChild: true }, children),
4288
- /* @__PURE__ */ React35.createElement(TooltipContent, { side, align: "center", ...props }, content)
4489
+ /* @__PURE__ */ React36.createElement(TooltipPrimitive.Trigger, { asChild: true }, children),
4490
+ /* @__PURE__ */ React36.createElement(TooltipContent, { side, align: "center", ...props }, content)
4289
4491
  ));
4290
4492
  };
4291
4493
 
@@ -4312,7 +4514,7 @@ var HawaCodeBlock = ({
4312
4514
  }, 2e3);
4313
4515
  }
4314
4516
  };
4315
- return /* @__PURE__ */ React36.createElement(
4517
+ return /* @__PURE__ */ React37.createElement(
4316
4518
  "div",
4317
4519
  {
4318
4520
  className: cn(
@@ -4321,14 +4523,14 @@ var HawaCodeBlock = ({
4321
4523
  )
4322
4524
  },
4323
4525
  " ",
4324
- tabs && /* @__PURE__ */ React36.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__ */ React36.createElement(
4526
+ 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
4527
  "div",
4326
4528
  {
4327
4529
  className: cn(
4328
4530
  selectedTab === i ? " border-b-2 border-primary" : "bg-transparent"
4329
4531
  )
4330
4532
  },
4331
- /* @__PURE__ */ React36.createElement(
4533
+ /* @__PURE__ */ React37.createElement(
4332
4534
  "div",
4333
4535
  {
4334
4536
  onClick: () => setSelectedTab(i),
@@ -4339,7 +4541,7 @@ var HawaCodeBlock = ({
4339
4541
  tab.title
4340
4542
  )
4341
4543
  ))),
4342
- fileName && /* @__PURE__ */ React36.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__ */ React36.createElement(
4544
+ 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
4545
  "div",
4344
4546
  {
4345
4547
  className: cn(
@@ -4348,22 +4550,22 @@ var HawaCodeBlock = ({
4348
4550
  },
4349
4551
  fileName
4350
4552
  )),
4351
- /* @__PURE__ */ React36.createElement("pre", null, /* @__PURE__ */ React36.createElement(
4553
+ /* @__PURE__ */ React37.createElement("pre", null, /* @__PURE__ */ React37.createElement(
4352
4554
  "code",
4353
4555
  {
4354
4556
  className: cn(
4355
4557
  "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
4558
  )
4357
4559
  },
4358
- /* @__PURE__ */ React36.createElement("div", { className: "flex min-h-[37.75px] w-full flex-col justify-center p-4 " }, tabs ? tabs[selectedTab].code : code),
4359
- /* @__PURE__ */ React36.createElement("div", { className: "flex w-fit flex-row items-center gap-2 p-2" }, /* @__PURE__ */ React36.createElement(
4560
+ /* @__PURE__ */ React37.createElement("div", { className: "flex min-h-[37.75px] w-full flex-col justify-center p-4 " }, tabs ? tabs[selectedTab].code : code),
4561
+ /* @__PURE__ */ React37.createElement("div", { className: "flex w-fit flex-row items-center gap-2 p-2" }, /* @__PURE__ */ React37.createElement(
4360
4562
  Tooltip,
4361
4563
  {
4362
4564
  open: copyClicked,
4363
4565
  side: "left",
4364
- content: /* @__PURE__ */ React36.createElement("div", null, "Copied!")
4566
+ content: /* @__PURE__ */ React37.createElement("div", null, "Copied!")
4365
4567
  },
4366
- /* @__PURE__ */ React36.createElement(
4568
+ /* @__PURE__ */ React37.createElement(
4367
4569
  Button,
4368
4570
  {
4369
4571
  size: "icon",
@@ -4374,7 +4576,7 @@ var HawaCodeBlock = ({
4374
4576
  );
4375
4577
  }
4376
4578
  },
4377
- /* @__PURE__ */ React36.createElement(
4579
+ /* @__PURE__ */ React37.createElement(
4378
4580
  "svg",
4379
4581
  {
4380
4582
  "aria-label": "Copy Icon",
@@ -4387,8 +4589,8 @@ var HawaCodeBlock = ({
4387
4589
  height: "1em",
4388
4590
  width: "1em"
4389
4591
  },
4390
- /* @__PURE__ */ React36.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
4391
- /* @__PURE__ */ React36.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
4592
+ /* @__PURE__ */ React37.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
4593
+ /* @__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
4594
  )
4393
4595
  )
4394
4596
  ))
@@ -4397,13 +4599,13 @@ var HawaCodeBlock = ({
4397
4599
  };
4398
4600
 
4399
4601
  // src/elements/HawaDatepicker.tsx
4400
- import React37, { useState as useState18 } from "react";
4602
+ import React38, { useState as useState18 } from "react";
4401
4603
  var HawaDatepicker = () => {
4402
4604
  const [selectedDate, setSelectedDate] = useState18("");
4403
4605
  const handleDateChange = (event) => {
4404
4606
  setSelectedDate(event.target.value);
4405
4607
  };
4406
- return /* @__PURE__ */ React37.createElement("div", { className: "relative inline-block text-left" }, /* @__PURE__ */ React37.createElement("span", { className: "rounded-md shadow-sm" }, /* @__PURE__ */ React37.createElement(
4608
+ return /* @__PURE__ */ React38.createElement("div", { className: "relative inline-block text-left" }, /* @__PURE__ */ React38.createElement("span", { className: "rounded-md shadow-sm" }, /* @__PURE__ */ React38.createElement(
4407
4609
  "input",
4408
4610
  {
4409
4611
  type: "date",
@@ -4415,7 +4617,7 @@ var HawaDatepicker = () => {
4415
4617
  };
4416
4618
 
4417
4619
  // src/elements/DragDropImages.tsx
4418
- import React38, { useEffect as useEffect11, useState as useState19 } from "react";
4620
+ import React39, { useEffect as useEffect11, useState as useState19 } from "react";
4419
4621
  import { useDropzone } from "react-dropzone";
4420
4622
  import clsx17 from "clsx";
4421
4623
  var DragDropImages = ({
@@ -4489,7 +4691,7 @@ var DragDropImages = ({
4489
4691
  const errs = fileRejections.map((rej, i) => {
4490
4692
  switch (rej.errors[0].code) {
4491
4693
  case "file-too-large":
4492
- return /* @__PURE__ */ React38.createElement(
4694
+ return /* @__PURE__ */ React39.createElement(
4493
4695
  HawaAlert,
4494
4696
  {
4495
4697
  text: rej.file.name,
@@ -4498,7 +4700,7 @@ var DragDropImages = ({
4498
4700
  }
4499
4701
  );
4500
4702
  case "too-many-files":
4501
- return /* @__PURE__ */ React38.createElement(
4703
+ return /* @__PURE__ */ React39.createElement(
4502
4704
  HawaAlert,
4503
4705
  {
4504
4706
  text: rej.file.name,
@@ -4507,7 +4709,7 @@ var DragDropImages = ({
4507
4709
  }
4508
4710
  );
4509
4711
  case "file-invalid-type":
4510
- return /* @__PURE__ */ React38.createElement(
4712
+ return /* @__PURE__ */ React39.createElement(
4511
4713
  HawaAlert,
4512
4714
  {
4513
4715
  text: rej.file.name,
@@ -4516,7 +4718,7 @@ var DragDropImages = ({
4516
4718
  }
4517
4719
  );
4518
4720
  default:
4519
- return /* @__PURE__ */ React38.createElement(
4721
+ return /* @__PURE__ */ React39.createElement(
4520
4722
  HawaAlert,
4521
4723
  {
4522
4724
  text: rej.file.name,
@@ -4526,7 +4728,7 @@ var DragDropImages = ({
4526
4728
  );
4527
4729
  }
4528
4730
  });
4529
- const thumbs = files?.map((file, index) => /* @__PURE__ */ React38.createElement("div", { className: "relative rounded" }, /* @__PURE__ */ React38.createElement(
4731
+ const thumbs = files?.map((file, index) => /* @__PURE__ */ React39.createElement("div", { className: "relative rounded" }, /* @__PURE__ */ React39.createElement(
4530
4732
  "button",
4531
4733
  {
4532
4734
  onClick: (e) => {
@@ -4539,7 +4741,7 @@ var DragDropImages = ({
4539
4741
  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
4742
  "data-modal-toggle": "defaultModal"
4541
4743
  },
4542
- /* @__PURE__ */ React38.createElement(
4744
+ /* @__PURE__ */ React39.createElement(
4543
4745
  "svg",
4544
4746
  {
4545
4747
  "aria-hidden": "true",
@@ -4547,7 +4749,7 @@ var DragDropImages = ({
4547
4749
  fill: "currentColor",
4548
4750
  viewBox: "0 0 20 20"
4549
4751
  },
4550
- /* @__PURE__ */ React38.createElement(
4752
+ /* @__PURE__ */ React39.createElement(
4551
4753
  "path",
4552
4754
  {
4553
4755
  fillRule: "evenodd",
@@ -4556,8 +4758,8 @@ var DragDropImages = ({
4556
4758
  }
4557
4759
  )
4558
4760
  ),
4559
- /* @__PURE__ */ React38.createElement("span", { className: "sr-only" }, "Close modal")
4560
- ), /* @__PURE__ */ React38.createElement(
4761
+ /* @__PURE__ */ React39.createElement("span", { className: "sr-only" }, "Close modal")
4762
+ ), /* @__PURE__ */ React39.createElement(
4561
4763
  "div",
4562
4764
  {
4563
4765
  style: {
@@ -4576,7 +4778,7 @@ var DragDropImages = ({
4576
4778
  key: file.name
4577
4779
  }
4578
4780
  )));
4579
- return /* @__PURE__ */ React38.createElement("div", null, label && /* @__PURE__ */ React38.createElement("div", { className: "mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300" }, label), /* @__PURE__ */ React38.createElement(
4781
+ 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
4782
  "div",
4581
4783
  {
4582
4784
  className: clsx17(
@@ -4584,7 +4786,7 @@ var DragDropImages = ({
4584
4786
  isDragActive ? "bg-gray-200 dark:bg-gray-700" : "bg-background"
4585
4787
  )
4586
4788
  },
4587
- /* @__PURE__ */ React38.createElement("div", { ...getRootProps({}) }, /* @__PURE__ */ React38.createElement("p", { ...getInputProps() }), /* @__PURE__ */ React38.createElement("div", { className: "flex flex-col items-center justify-center gap-2 pt-4 text-center" }, /* @__PURE__ */ React38.createElement(
4789
+ /* @__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
4790
  "svg",
4589
4791
  {
4590
4792
  stroke: "currentColor",
@@ -4596,33 +4798,33 @@ var DragDropImages = ({
4596
4798
  height: "1.5em",
4597
4799
  width: "1.5em"
4598
4800
  },
4599
- /* @__PURE__ */ React38.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
4600
- /* @__PURE__ */ React38.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" }),
4601
- /* @__PURE__ */ React38.createElement("path", { d: "M13 13l9 3l-4 2l-2 4l-3 -9" }),
4602
- /* @__PURE__ */ React38.createElement("path", { d: "M3 3l0 .01" }),
4603
- /* @__PURE__ */ React38.createElement("path", { d: "M7 3l0 .01" }),
4604
- /* @__PURE__ */ React38.createElement("path", { d: "M11 3l0 .01" }),
4605
- /* @__PURE__ */ React38.createElement("path", { d: "M15 3l0 .01" }),
4606
- /* @__PURE__ */ React38.createElement("path", { d: "M3 7l0 .01" }),
4607
- /* @__PURE__ */ React38.createElement("path", { d: "M3 11l0 .01" }),
4608
- /* @__PURE__ */ React38.createElement("path", { d: "M3 15l0 .01" })
4609
- ), /* @__PURE__ */ React38.createElement(texts.clickHereToUpload, null)), /* @__PURE__ */ React38.createElement("div", { className: "pt-2 text-center text-xs" }, texts.acceptedFileTypes, " ", accept.split(",")), /* @__PURE__ */ React38.createElement("div", { className: "pb-2 pt-1 text-center text-xs" }, texts.maxFileSize, " ", max)),
4610
- acceptedFiles.length > 0 && /* @__PURE__ */ React38.createElement("div", { className: "flex justify-center rounded-lg p-2 " }, /* @__PURE__ */ React38.createElement(Button, { onClick: clearAllFiles }, "Clear All")),
4611
- acceptedFiles.length > 0 && thumbs && showPreview ? /* @__PURE__ */ React38.createElement("aside", { className: "flex flex-row flex-wrap justify-center gap-2 rounded-lg p-2" }, thumbs) : null,
4612
- /* @__PURE__ */ React38.createElement("div", { className: "px-4" }, fileRejections[0]?.errors[0]?.code && errs)
4801
+ /* @__PURE__ */ React39.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
4802
+ /* @__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" }),
4803
+ /* @__PURE__ */ React39.createElement("path", { d: "M13 13l9 3l-4 2l-2 4l-3 -9" }),
4804
+ /* @__PURE__ */ React39.createElement("path", { d: "M3 3l0 .01" }),
4805
+ /* @__PURE__ */ React39.createElement("path", { d: "M7 3l0 .01" }),
4806
+ /* @__PURE__ */ React39.createElement("path", { d: "M11 3l0 .01" }),
4807
+ /* @__PURE__ */ React39.createElement("path", { d: "M15 3l0 .01" }),
4808
+ /* @__PURE__ */ React39.createElement("path", { d: "M3 7l0 .01" }),
4809
+ /* @__PURE__ */ React39.createElement("path", { d: "M3 11l0 .01" }),
4810
+ /* @__PURE__ */ React39.createElement("path", { d: "M3 15l0 .01" })
4811
+ ), /* @__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)),
4812
+ acceptedFiles.length > 0 && /* @__PURE__ */ React39.createElement("div", { className: "flex justify-center rounded-lg p-2 " }, /* @__PURE__ */ React39.createElement(Button, { onClick: clearAllFiles }, "Clear All")),
4813
+ 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,
4814
+ /* @__PURE__ */ React39.createElement("div", { className: "px-4" }, fileRejections[0]?.errors[0]?.code && errs)
4613
4815
  ));
4614
4816
  };
4615
4817
 
4616
4818
  // src/elements/DraggableCard.tsx
4617
- import React39 from "react";
4819
+ import React40 from "react";
4618
4820
  var DraggableCard = (props) => {
4619
- return /* @__PURE__ */ React39.createElement("div", { className: "flex flex-row rounded bg-layoutPrimary-500 p-4" }, /* @__PURE__ */ React39.createElement(
4821
+ return /* @__PURE__ */ React40.createElement("div", { className: "flex flex-row rounded bg-layoutPrimary-500 p-4" }, /* @__PURE__ */ React40.createElement(
4620
4822
  "button",
4621
4823
  {
4622
4824
  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
4825
  type: "button"
4624
4826
  },
4625
- /* @__PURE__ */ React39.createElement(
4827
+ /* @__PURE__ */ React40.createElement(
4626
4828
  "svg",
4627
4829
  {
4628
4830
  className: "h-6 w-6",
@@ -4630,20 +4832,20 @@ var DraggableCard = (props) => {
4630
4832
  fill: "currentColor",
4631
4833
  viewBox: "0 0 20 20"
4632
4834
  },
4633
- /* @__PURE__ */ React39.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" })
4835
+ /* @__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
4836
  )
4635
- ), /* @__PURE__ */ React39.createElement("div", { className: "p-4" }, props.children));
4837
+ ), /* @__PURE__ */ React40.createElement("div", { className: "p-4" }, props.children));
4636
4838
  };
4637
4839
 
4638
4840
  // src/elements/Breadcrumb.tsx
4639
- import React40 from "react";
4841
+ import React41 from "react";
4640
4842
 
4641
4843
  // src/elements/SubsectionList.tsx
4642
- import React41, { useState as useState20 } from "react";
4844
+ import React42, { useState as useState20 } from "react";
4643
4845
  import clsx18 from "clsx";
4644
4846
  var SubsectionList = ({ subsections }) => {
4645
4847
  const [selectedSection, setSelectedSection] = useState20(null);
4646
- return /* @__PURE__ */ React41.createElement("div", { className: "w-full max-w-2xs rounded bg-layoutPrimary-500 p-4 " }, subsections.map((ss, i) => /* @__PURE__ */ React41.createElement("div", { key: i, className: "my-0" }, ss.title && /* @__PURE__ */ React41.createElement("div", { className: "my-4 font-bold" }, ss.title), ss.sections.map((s, i2) => /* @__PURE__ */ React41.createElement(
4848
+ 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
4849
  SubsectionItem,
4648
4850
  {
4649
4851
  key: i2,
@@ -4664,7 +4866,7 @@ var SubsectionItem = ({
4664
4866
  selected,
4665
4867
  onItemClick
4666
4868
  }) => {
4667
- return /* @__PURE__ */ React41.createElement(
4869
+ return /* @__PURE__ */ React42.createElement(
4668
4870
  "div",
4669
4871
  {
4670
4872
  onClick: onItemClick,
@@ -4673,16 +4875,16 @@ var SubsectionItem = ({
4673
4875
  selected === value ? "bg-primary text-white hover:bg-primary" : "hover:bg-layoutPrimary-300"
4674
4876
  )
4675
4877
  },
4676
- /* @__PURE__ */ React41.createElement("div", { className: "flex w-full flex-row items-center justify-start gap-2" }, icon, " ", /* @__PURE__ */ React41.createElement("span", null, title)),
4677
- chip && /* @__PURE__ */ React41.createElement(HawaChip, { label: "Upgrade", size: "normal" }),
4878
+ /* @__PURE__ */ React42.createElement("div", { className: "flex w-full flex-row items-center justify-start gap-2" }, icon, " ", /* @__PURE__ */ React42.createElement("span", null, title)),
4879
+ chip && /* @__PURE__ */ React42.createElement(HawaChip, { label: "Upgrade", size: "normal" }),
4678
4880
  " "
4679
4881
  );
4680
4882
  };
4681
4883
 
4682
4884
  // src/elements/UsageCard.tsx
4683
- import React42 from "react";
4885
+ import React43 from "react";
4684
4886
  var UsageCard = (props) => {
4685
- return /* @__PURE__ */ React42.createElement("div", { className: "flex w-full flex-col gap-0 border p-4" }, /* @__PURE__ */ React42.createElement("div", { className: "flex flex-row items-center gap-2" }, /* @__PURE__ */ React42.createElement("span", { className: "bg-white-200" }, props.title), props.tooltip && /* @__PURE__ */ React42.createElement(Tooltip, { content: props.tooltip, side: "right" }, /* @__PURE__ */ React42.createElement(
4887
+ 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
4888
  "svg",
4687
4889
  {
4688
4890
  stroke: "currentColor",
@@ -4693,8 +4895,8 @@ var UsageCard = (props) => {
4693
4895
  height: "1em",
4694
4896
  width: "1em"
4695
4897
  },
4696
- /* @__PURE__ */ React42.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" })
4697
- ))), /* @__PURE__ */ React42.createElement("div", { className: "bg-white-100 flex flex-row" }, /* @__PURE__ */ React42.createElement("div", null, props.currentUsage), /* @__PURE__ */ React42.createElement("div", null, " (", props.percent, "%)")), /* @__PURE__ */ React42.createElement("div", { className: "mt-2 h-2.5 w-full rounded-full bg-gray-200 dark:bg-gray-700" }, /* @__PURE__ */ React42.createElement(
4898
+ /* @__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" })
4899
+ ))), /* @__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
4900
  "div",
4699
4901
  {
4700
4902
  className: "h-2.5 rounded-full bg-primary",
@@ -4706,7 +4908,7 @@ var UsageCard = (props) => {
4706
4908
  };
4707
4909
 
4708
4910
  // src/elements/InvoiceAccordion.tsx
4709
- import React43, { useState as useState21 } from "react";
4911
+ import React44, { useState as useState21 } from "react";
4710
4912
  import clsx19 from "clsx";
4711
4913
  var InvoiceAccordion = ({
4712
4914
  direction = "ltr",
@@ -4719,7 +4921,7 @@ var InvoiceAccordion = ({
4719
4921
  },
4720
4922
  ...props
4721
4923
  }) => {
4722
- const InvoiceItemProp = (props2) => /* @__PURE__ */ React43.createElement(
4924
+ const InvoiceItemProp = (props2) => /* @__PURE__ */ React44.createElement(
4723
4925
  "div",
4724
4926
  {
4725
4927
  className: clsx19(
@@ -4727,11 +4929,11 @@ var InvoiceAccordion = ({
4727
4929
  "flex w-full flex-col"
4728
4930
  )
4729
4931
  },
4730
- /* @__PURE__ */ React43.createElement("div", { className: " text-sm text-gray-500" }, props2.label),
4731
- /* @__PURE__ */ React43.createElement("div", { className: " whitespace-nowrap" }, props2.text)
4932
+ /* @__PURE__ */ React44.createElement("div", { className: " text-sm text-gray-500" }, props2.label),
4933
+ /* @__PURE__ */ React44.createElement("div", { className: " whitespace-nowrap" }, props2.text)
4732
4934
  );
4733
4935
  const [expanded, setExpanded] = useState21(false);
4734
- return /* @__PURE__ */ React43.createElement("div", { className: "flex w-full flex-col" }, /* @__PURE__ */ React43.createElement("div", { className: "flex w-full flex-row items-center gap-2 border p-4 " }, props.invoiceActions && /* @__PURE__ */ React43.createElement(
4936
+ 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
4937
  "div",
4736
4938
  {
4737
4939
  className: clsx19(
@@ -4741,7 +4943,7 @@ var InvoiceAccordion = ({
4741
4943
  ),
4742
4944
  onClick: () => setExpanded(!expanded)
4743
4945
  },
4744
- /* @__PURE__ */ React43.createElement(
4946
+ /* @__PURE__ */ React44.createElement(
4745
4947
  "svg",
4746
4948
  {
4747
4949
  stroke: "currentColor",
@@ -4752,7 +4954,7 @@ var InvoiceAccordion = ({
4752
4954
  height: "2em",
4753
4955
  width: "2em"
4754
4956
  },
4755
- /* @__PURE__ */ React43.createElement(
4957
+ /* @__PURE__ */ React44.createElement(
4756
4958
  "path",
4757
4959
  {
4758
4960
  "fill-rule": "evenodd",
@@ -4761,22 +4963,22 @@ var InvoiceAccordion = ({
4761
4963
  }
4762
4964
  )
4763
4965
  )
4764
- ), /* @__PURE__ */ React43.createElement(
4966
+ ), /* @__PURE__ */ React44.createElement(
4765
4967
  "div",
4766
4968
  {
4767
4969
  className: "flex w-full cursor-pointer flex-col gap-0",
4768
4970
  onClick: () => setExpanded(!expanded)
4769
4971
  },
4770
- /* @__PURE__ */ React43.createElement("div", { className: "flex flex-row items-center gap-2" }, /* @__PURE__ */ React43.createElement("span", { className: "bg-white-200" }, props.invoiceTitle), props.status && /* @__PURE__ */ React43.createElement(HawaChip, { size: "small", label: props.status })),
4771
- /* @__PURE__ */ React43.createElement("div", { className: "font-sm text-gray-400" }, props.invoiceSubtitle)
4772
- ), /* @__PURE__ */ React43.createElement("div", { className: "flex flex-row items-center gap-2" }, /* @__PURE__ */ React43.createElement("div", { className: "whitespace-nowrap" }, props.total), /* @__PURE__ */ React43.createElement(
4972
+ /* @__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 })),
4973
+ /* @__PURE__ */ React44.createElement("div", { className: "font-sm text-gray-400" }, props.invoiceSubtitle)
4974
+ ), /* @__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
4975
  HawaMenu,
4774
4976
  {
4775
4977
  direction,
4776
4978
  position: direction === "rtl" ? "bottom-right" : "bottom-left",
4777
4979
  menuItems: props.invoiceActions
4778
4980
  },
4779
- /* @__PURE__ */ React43.createElement("div", { className: " p-2" }, /* @__PURE__ */ React43.createElement(
4981
+ /* @__PURE__ */ React44.createElement("div", { className: " p-2" }, /* @__PURE__ */ React44.createElement(
4780
4982
  "svg",
4781
4983
  {
4782
4984
  stroke: "currentColor",
@@ -4786,9 +4988,9 @@ var InvoiceAccordion = ({
4786
4988
  height: "1em",
4787
4989
  width: "1em"
4788
4990
  },
4789
- /* @__PURE__ */ React43.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" })
4991
+ /* @__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
4992
  ))
4791
- ))), expanded && /* @__PURE__ */ React43.createElement(
4993
+ ))), expanded && /* @__PURE__ */ React44.createElement(
4792
4994
  "div",
4793
4995
  {
4794
4996
  className: clsx19(
@@ -4796,32 +4998,32 @@ var InvoiceAccordion = ({
4796
4998
  "flex h-auto flex-col gap-4 overflow-clip border border-t-0 bg-gray-50 p-4 transition-all"
4797
4999
  )
4798
5000
  },
4799
- /* @__PURE__ */ React43.createElement("div", { className: "border-b pb-2" }, props.invoiceDescription),
4800
- props.products?.map((product, i) => /* @__PURE__ */ React43.createElement("div", { key: i, className: "flex flex-row border-b pb-4" }, /* @__PURE__ */ React43.createElement("div", { className: "w-full" }, /* @__PURE__ */ React43.createElement(InvoiceItemProp, { start: true, label: texts.plan, text: product.plan })), /* @__PURE__ */ React43.createElement("div", { className: "flex w-full flex-row gap-20 " }, /* @__PURE__ */ React43.createElement(
5001
+ /* @__PURE__ */ React44.createElement("div", { className: "border-b pb-2" }, props.invoiceDescription),
5002
+ 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
5003
  InvoiceItemProp,
4802
5004
  {
4803
5005
  label: texts.usage,
4804
5006
  text: `${product.usage} SAR`
4805
5007
  }
4806
- ), /* @__PURE__ */ React43.createElement(
5008
+ ), /* @__PURE__ */ React44.createElement(
4807
5009
  InvoiceItemProp,
4808
5010
  {
4809
5011
  label: texts.price,
4810
5012
  text: `${product.price} SAR`
4811
5013
  }
4812
- ), /* @__PURE__ */ React43.createElement(
5014
+ ), /* @__PURE__ */ React44.createElement(
4813
5015
  InvoiceItemProp,
4814
5016
  {
4815
5017
  label: texts.amount,
4816
5018
  text: `${product.amount} SAR`
4817
5019
  }
4818
5020
  )))),
4819
- /* @__PURE__ */ React43.createElement("div", { className: "flex flex-row justify-between" }, /* @__PURE__ */ React43.createElement("div", null, texts.total), " ", /* @__PURE__ */ React43.createElement("div", null, props.total))
5021
+ /* @__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
5022
  ));
4821
5023
  };
4822
5024
 
4823
5025
  // src/elements/UserFeedback.tsx
4824
- import React44, { useEffect as useEffect12, useRef as useRef7, useState as useState22 } from "react";
5026
+ import React45, { useEffect as useEffect12, useRef as useRef7, useState as useState22 } from "react";
4825
5027
  import clsx20 from "clsx";
4826
5028
  var UserFeedback = ({
4827
5029
  position = "bottom-right",
@@ -4850,13 +5052,13 @@ var UserFeedback = ({
4850
5052
  popUpRef.current.removeChild(popUpRef.current.children[0]);
4851
5053
  }, 200);
4852
5054
  };
4853
- return /* @__PURE__ */ React44.createElement(
5055
+ return /* @__PURE__ */ React45.createElement(
4854
5056
  "div",
4855
5057
  {
4856
5058
  ref: popUpRef,
4857
5059
  className: clsx20("fixed bottom-4 ", boxPosition[position])
4858
5060
  },
4859
- /* @__PURE__ */ React44.createElement(
5061
+ /* @__PURE__ */ React45.createElement(
4860
5062
  "div",
4861
5063
  {
4862
5064
  className: clsx20(
@@ -4864,8 +5066,8 @@ var UserFeedback = ({
4864
5066
  closed ? "opacity-0" : "opacity-100"
4865
5067
  )
4866
5068
  },
4867
- /* @__PURE__ */ React44.createElement("div", { className: "absolute left-2 top-2 p-1.5 text-sm" }, props.title),
4868
- /* @__PURE__ */ React44.createElement(
5069
+ /* @__PURE__ */ React45.createElement("div", { className: "absolute left-2 top-2 p-1.5 text-sm" }, props.title),
5070
+ /* @__PURE__ */ React45.createElement(
4869
5071
  "button",
4870
5072
  {
4871
5073
  type: "button",
@@ -4874,7 +5076,7 @@ var UserFeedback = ({
4874
5076
  "aria-label": "Close",
4875
5077
  onClick: () => slowClose()
4876
5078
  },
4877
- /* @__PURE__ */ React44.createElement(
5079
+ /* @__PURE__ */ React45.createElement(
4878
5080
  "svg",
4879
5081
  {
4880
5082
  "aria-hidden": "true",
@@ -4882,7 +5084,7 @@ var UserFeedback = ({
4882
5084
  fill: "currentColor",
4883
5085
  viewBox: "0 0 20 20"
4884
5086
  },
4885
- /* @__PURE__ */ React44.createElement(
5087
+ /* @__PURE__ */ React45.createElement(
4886
5088
  "path",
4887
5089
  {
4888
5090
  fillRule: "evenodd",
@@ -4892,8 +5094,8 @@ var UserFeedback = ({
4892
5094
  )
4893
5095
  )
4894
5096
  ),
4895
- /* @__PURE__ */ React44.createElement("div", { className: "mt-8" }, props.question),
4896
- /* @__PURE__ */ React44.createElement("div", { className: "flex w-full flex-row gap-1 rounded" }, props.options.map((op) => /* @__PURE__ */ React44.createElement(
5097
+ /* @__PURE__ */ React45.createElement("div", { className: "mt-8" }, props.question),
5098
+ /* @__PURE__ */ React45.createElement("div", { className: "flex w-full flex-row gap-1 rounded" }, props.options.map((op) => /* @__PURE__ */ React45.createElement(
4897
5099
  "span",
4898
5100
  {
4899
5101
  onClick: () => {
@@ -4915,17 +5117,17 @@ var UserFeedback = ({
4915
5117
  },
4916
5118
  op
4917
5119
  ))),
4918
- props.texts && /* @__PURE__ */ React44.createElement("div", { className: " flex flex-row justify-between text-xs" }, /* @__PURE__ */ React44.createElement("span", null, props.texts.least), /* @__PURE__ */ React44.createElement("span", null, props.texts.most)),
4919
- answered && /* @__PURE__ */ React44.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__ */ React44.createElement("span", { className: "font-bold text-white" }, "Thank you for your answer. This box will disappear in", " " + closingTimer, " seconds"), /* @__PURE__ */ React44.createElement("div", { className: "flex flex-row gap-2" }, /* @__PURE__ */ React44.createElement(HawaButton, { onClick: () => slowClose() }, "Close")))
5120
+ 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)),
5121
+ 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
5122
  )
4921
5123
  );
4922
5124
  };
4923
5125
 
4924
5126
  // src/elements/ArrowCarousel.tsx
4925
- import React45, { useEffect as useEffect13, useState as useState23 } from "react";
5127
+ import React46, { useEffect as useEffect13, useState as useState23 } from "react";
4926
5128
  import clsx21 from "clsx";
4927
5129
  var Arrow3 = (props) => {
4928
- return /* @__PURE__ */ React45.createElement(
5130
+ return /* @__PURE__ */ React46.createElement(
4929
5131
  "svg",
4930
5132
  {
4931
5133
  onClick: props.onClick || (() => {
@@ -4938,7 +5140,7 @@ var Arrow3 = (props) => {
4938
5140
  fill: props.disabled && "grey",
4939
5141
  viewBox: "0 0 20 20"
4940
5142
  },
4941
- /* @__PURE__ */ React45.createElement(
5143
+ /* @__PURE__ */ React46.createElement(
4942
5144
  "path",
4943
5145
  {
4944
5146
  fillRule: "evenodd",
@@ -4958,7 +5160,7 @@ var ArrowCarousel = (props) => {
4958
5160
  medium: ["2", -11],
4959
5161
  big: ["3", -16]
4960
5162
  };
4961
- return /* @__PURE__ */ React45.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__ */ React45.createElement(
5163
+ 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
5164
  Arrow3,
4963
5165
  {
4964
5166
  direction: "left",
@@ -4968,20 +5170,20 @@ var ArrowCarousel = (props) => {
4968
5170
  setIndex(index - 1);
4969
5171
  }
4970
5172
  }
4971
- ), /* @__PURE__ */ React45.createElement(
5173
+ ), /* @__PURE__ */ React46.createElement(
4972
5174
  "div",
4973
5175
  {
4974
5176
  className: `relative m-5 my-0 box-border flex h-full flex-col items-center justify-center py-6 pt-0 `
4975
5177
  },
4976
- /* @__PURE__ */ React45.createElement("div", null, props.items[index].icon),
4977
- /* @__PURE__ */ React45.createElement(
5178
+ /* @__PURE__ */ React46.createElement("div", null, props.items[index].icon),
5179
+ /* @__PURE__ */ React46.createElement(
4978
5180
  "div",
4979
5181
  {
4980
5182
  className: "absolute bottom-1 mb-0 mt-2 select-none"
4981
5183
  },
4982
5184
  props.items[index].label
4983
5185
  )
4984
- ), /* @__PURE__ */ React45.createElement(
5186
+ ), /* @__PURE__ */ React46.createElement(
4985
5187
  Arrow3,
4986
5188
  {
4987
5189
  direction: "right",
@@ -4995,10 +5197,10 @@ var ArrowCarousel = (props) => {
4995
5197
  };
4996
5198
 
4997
5199
  // src/elements/FloatingComment.tsx
4998
- import React46, { useRef as useRef8, useState as useState24, useEffect as useEffect14 } from "react";
5200
+ import React47, { useRef as useRef8, useState as useState24, useEffect as useEffect14 } from "react";
4999
5201
  import clsx22 from "clsx";
5000
5202
  var Property = (props) => {
5001
- return /* @__PURE__ */ React46.createElement(
5203
+ return /* @__PURE__ */ React47.createElement(
5002
5204
  "div",
5003
5205
  {
5004
5206
  className: "border-box mr-[10px] flex h-[32px] w-[32px] items-center justify-center rounded bg-gray-300 p-2",
@@ -5485,8 +5687,8 @@ var FloatingComment = (props) => {
5485
5687
  return "ltr";
5486
5688
  }
5487
5689
  };
5488
- return /* @__PURE__ */ React46.createElement("div", { className: "align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded shadow-md" }, /* @__PURE__ */ React46.createElement("div", { className: clsx22("flex w-full flex-row justify-start p-2") }, Object.entries(stylers).map(([id, data]) => {
5489
- return /* @__PURE__ */ React46.createElement(
5690
+ 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]) => {
5691
+ return /* @__PURE__ */ React47.createElement(
5490
5692
  Property,
5491
5693
  {
5492
5694
  name: data.content,
@@ -5497,7 +5699,7 @@ var FloatingComment = (props) => {
5497
5699
  }
5498
5700
  }
5499
5701
  );
5500
- })), /* @__PURE__ */ React46.createElement("div", { className: "h-[1px] w-full bg-slate-600" }, "\xA0"), /* @__PURE__ */ React46.createElement("div", { className: "selection-ignore box-border w-full p-2" }, /* @__PURE__ */ React46.createElement(
5702
+ })), /* @__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
5703
  "div",
5502
5704
  {
5503
5705
  ref: field,
@@ -5586,7 +5788,7 @@ var FloatingComment = (props) => {
5586
5788
  });
5587
5789
  }
5588
5790
  }
5589
- )), /* @__PURE__ */ React46.createElement("div", { className: "h-[1px] w-full bg-slate-600" }, "\xA0"), /* @__PURE__ */ React46.createElement(
5791
+ )), /* @__PURE__ */ React47.createElement("div", { className: "h-[1px] w-full bg-slate-600" }, "\xA0"), /* @__PURE__ */ React47.createElement(
5590
5792
  "button",
5591
5793
  {
5592
5794
  className: "my-1 rounded bg-cyan-800 p-2 py-1 text-white",
@@ -5601,7 +5803,7 @@ var FloatingComment = (props) => {
5601
5803
  };
5602
5804
 
5603
5805
  // src/elements/FloatingCommentSlate.tsx
5604
- import React47, { useState as useState25, useCallback } from "react";
5806
+ import React48, { useState as useState25, useCallback } from "react";
5605
5807
  import { Editor, createEditor } from "slate";
5606
5808
  import { Slate, Editable, withReact } from "slate-react";
5607
5809
  var initialValue = [
@@ -5628,10 +5830,10 @@ var Leaf = (props) => {
5628
5830
  });
5629
5831
  });
5630
5832
  }
5631
- return /* @__PURE__ */ React47.createElement("span", { ...props.attributes, style: types }, props.children);
5833
+ return /* @__PURE__ */ React48.createElement("span", { ...props.attributes, style: types }, props.children);
5632
5834
  };
5633
5835
  var Property2 = (props) => {
5634
- return /* @__PURE__ */ React47.createElement(
5836
+ return /* @__PURE__ */ React48.createElement(
5635
5837
  "div",
5636
5838
  {
5637
5839
  className: "border-box mr-[5px] flex h-[32px] w-[32px] items-center justify-center rounded bg-gray-400 p-2",
@@ -5643,7 +5845,7 @@ var Property2 = (props) => {
5643
5845
  var FloatingCommentSlate = () => {
5644
5846
  const [editor] = useState25(() => withReact(createEditor()));
5645
5847
  const renderLeaf = useCallback((props) => {
5646
- return /* @__PURE__ */ React47.createElement(Leaf, { ...props });
5848
+ return /* @__PURE__ */ React48.createElement(Leaf, { ...props });
5647
5849
  }, []);
5648
5850
  const perform = (event, type) => {
5649
5851
  event.preventDefault();
@@ -5651,7 +5853,7 @@ var FloatingCommentSlate = () => {
5651
5853
  console.log(Editor.marks(editor));
5652
5854
  Editor.addMark(editor, type, !current);
5653
5855
  };
5654
- return /* @__PURE__ */ React47.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__ */ React47.createElement("div", { className: "flex w-full flex-row justify-start p-2" }, /* @__PURE__ */ React47.createElement(
5856
+ 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
5857
  Property2,
5656
5858
  {
5657
5859
  name: "B",
@@ -5659,7 +5861,7 @@ var FloatingCommentSlate = () => {
5659
5861
  perform(event, "bold");
5660
5862
  }
5661
5863
  }
5662
- ), /* @__PURE__ */ React47.createElement(
5864
+ ), /* @__PURE__ */ React48.createElement(
5663
5865
  Property2,
5664
5866
  {
5665
5867
  name: "I",
@@ -5667,7 +5869,7 @@ var FloatingCommentSlate = () => {
5667
5869
  perform(event, "italic");
5668
5870
  }
5669
5871
  }
5670
- ), /* @__PURE__ */ React47.createElement(
5872
+ ), /* @__PURE__ */ React48.createElement(
5671
5873
  Property2,
5672
5874
  {
5673
5875
  name: "U",
@@ -5675,7 +5877,7 @@ var FloatingCommentSlate = () => {
5675
5877
  perform(event, "underline");
5676
5878
  }
5677
5879
  }
5678
- ), /* @__PURE__ */ React47.createElement(
5880
+ ), /* @__PURE__ */ React48.createElement(
5679
5881
  Property2,
5680
5882
  {
5681
5883
  name: "S",
@@ -5683,7 +5885,7 @@ var FloatingCommentSlate = () => {
5683
5885
  perform(event, "strikethrough");
5684
5886
  }
5685
5887
  }
5686
- )), /* @__PURE__ */ React47.createElement("div", { className: "h-[1px] w-full bg-slate-600" }, "\xA0"), /* @__PURE__ */ React47.createElement("div", { className: "w-full" }, /* @__PURE__ */ React47.createElement(Slate, { editor, initialValue }, /* @__PURE__ */ React47.createElement(
5888
+ )), /* @__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
5889
  Editable,
5688
5890
  {
5689
5891
  renderLeaf,
@@ -5701,16 +5903,16 @@ var FloatingCommentSlate = () => {
5701
5903
  }
5702
5904
  }
5703
5905
  }
5704
- ))), /* @__PURE__ */ React47.createElement("div", { className: "h-[1px] w-full bg-slate-600" }, "\xA0"), /* @__PURE__ */ React47.createElement("button", { className: "my-1 rounded bg-cyan-800 p-2 py-1 text-white" }, "Submit"));
5906
+ ))), /* @__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
5907
  };
5706
5908
 
5707
5909
  // src/elements/FloatingCommentExec.tsx
5708
- import React48 from "react";
5910
+ import React49 from "react";
5709
5911
  import ReactDOMServer from "react-dom/server";
5710
5912
  import { AiOutlineClose } from "react-icons/ai";
5711
5913
  var base64 = "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";
5712
5914
  var Property3 = (props) => {
5713
- return /* @__PURE__ */ React48.createElement(
5915
+ return /* @__PURE__ */ React49.createElement(
5714
5916
  "div",
5715
5917
  {
5716
5918
  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 +5922,7 @@ var Property3 = (props) => {
5720
5922
  );
5721
5923
  };
5722
5924
  var Image = (props) => {
5723
- return /* @__PURE__ */ React48.createElement("div", { className: "group relative w-fit" }, /* @__PURE__ */ React48.createElement("img", { src: `data:image/pngg;charset=utf-8;base64,${base64}` }), /* @__PURE__ */ React48.createElement("div", { className: "absolute right-0 top-0 text-red-900 opacity-0 transition-all hover:opacity-50 group-hover:opacity-100" }, /* @__PURE__ */ React48.createElement(AiOutlineClose, null)));
5925
+ 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
5926
  };
5725
5927
  var styles2 = {
5726
5928
  bold: "B",
@@ -5732,8 +5934,8 @@ var styles2 = {
5732
5934
  removeFormat: "Plain"
5733
5935
  };
5734
5936
  var FloatingCommentExec = (props) => {
5735
- return /* @__PURE__ */ React48.createElement("div", { className: "align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded shadow-md" }, /* @__PURE__ */ React48.createElement("div", { className: "flex w-full flex-row justify-start p-2" }, Object.entries(styles2).map(([id, acronym]) => {
5736
- return /* @__PURE__ */ React48.createElement(
5937
+ 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]) => {
5938
+ return /* @__PURE__ */ React49.createElement(
5737
5939
  Property3,
5738
5940
  {
5739
5941
  name: acronym,
@@ -5745,24 +5947,24 @@ var FloatingCommentExec = (props) => {
5745
5947
  }
5746
5948
  }
5747
5949
  );
5748
- }), /* @__PURE__ */ React48.createElement(
5950
+ }), /* @__PURE__ */ React49.createElement(
5749
5951
  Property3,
5750
5952
  {
5751
5953
  name: "Image",
5752
5954
  key: `property-insertImage`,
5753
5955
  onMouseDown: (event) => {
5754
5956
  event.preventDefault();
5755
- let html = ReactDOMServer.renderToString(/* @__PURE__ */ React48.createElement(Image, null));
5957
+ let html = ReactDOMServer.renderToString(/* @__PURE__ */ React49.createElement(Image, null));
5756
5958
  document.execCommand("insertHTML", false, html);
5757
5959
  }
5758
5960
  }
5759
- )), /* @__PURE__ */ React48.createElement("div", { className: "h-[1px] w-full bg-slate-600" }, "\xA0"), /* @__PURE__ */ React48.createElement("div", { className: " box-border w-full p-2" }, /* @__PURE__ */ React48.createElement(
5961
+ )), /* @__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
5962
  "div",
5761
5963
  {
5762
5964
  contentEditable: "true",
5763
5965
  className: "rtl h-[150px] w-full resize-none overflow-auto overflow-x-hidden border-none font-['Arial'] text-[16px] outline-none"
5764
5966
  }
5765
- )), /* @__PURE__ */ React48.createElement("div", { className: "h-[1px] w-full bg-slate-600" }, "\xA0"), /* @__PURE__ */ React48.createElement(
5967
+ )), /* @__PURE__ */ React49.createElement("div", { className: "h-[1px] w-full bg-slate-600" }, "\xA0"), /* @__PURE__ */ React49.createElement(
5766
5968
  "button",
5767
5969
  {
5768
5970
  className: "my-1 rounded bg-cyan-800 p-2 py-1 text-white",
@@ -5774,7 +5976,7 @@ var FloatingCommentExec = (props) => {
5774
5976
  };
5775
5977
 
5776
5978
  // src/elements/BackToTop.tsx
5777
- import React49, { useState as useState27, useEffect as useEffect16, useRef as useRef10 } from "react";
5979
+ import React50, { useState as useState27, useEffect as useEffect16, useRef as useRef10 } from "react";
5778
5980
  import { clsx as clsx23 } from "clsx";
5779
5981
  var BackToTop = ({ ...props }) => {
5780
5982
  const [visible, setVisible] = useState27(false);
@@ -5831,7 +6033,7 @@ var BackToTop = ({ ...props }) => {
5831
6033
  };
5832
6034
  return style;
5833
6035
  };
5834
- return /* @__PURE__ */ React49.createElement(
6036
+ return /* @__PURE__ */ React50.createElement(
5835
6037
  Button,
5836
6038
  {
5837
6039
  className: cn(
@@ -5846,7 +6048,7 @@ var BackToTop = ({ ...props }) => {
5846
6048
  ref: self,
5847
6049
  size: "icon"
5848
6050
  },
5849
- /* @__PURE__ */ React49.createElement(
6051
+ /* @__PURE__ */ React50.createElement(
5850
6052
  "svg",
5851
6053
  {
5852
6054
  className: clsx23(
@@ -5856,25 +6058,25 @@ var BackToTop = ({ ...props }) => {
5856
6058
  viewBox: "0 0 20 20",
5857
6059
  fill: "currentColor"
5858
6060
  },
5859
- /* @__PURE__ */ React49.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" })
6061
+ /* @__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
6062
  )
5861
6063
  );
5862
6064
  };
5863
6065
 
5864
6066
  // src/elements/HawaInlineCode.tsx
5865
- import React50 from "react";
6067
+ import React51 from "react";
5866
6068
  var HawaInlineCode = (props) => {
5867
- return /* @__PURE__ */ React50.createElement("code", { className: "inline-code" }, props.text);
6069
+ return /* @__PURE__ */ React51.createElement("code", { className: "inline-code" }, props.text);
5868
6070
  };
5869
6071
 
5870
6072
  // src/elements/Timeline.tsx
5871
- import React51 from "react";
6073
+ import React52 from "react";
5872
6074
  var Timeline = (props) => {
5873
- return /* @__PURE__ */ React51.createElement("div", null, /* @__PURE__ */ React51.createElement("ol", { className: "relative border-l border-gray-200 dark:border-gray-700" }, props.steps.map((step) => /* @__PURE__ */ React51.createElement("li", { className: "mb-10 ml-4" }, /* @__PURE__ */ React51.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__ */ React51.createElement("time", { className: "mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500" }, step.date), /* @__PURE__ */ React51.createElement("h3", { className: "text-lg font-semibold text-gray-900 dark:text-white" }, step.title), /* @__PURE__ */ React51.createElement("p", { className: "mb-4 text-base font-normal text-gray-500 dark:text-gray-400" }, step.description), step.actions))));
6075
+ 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
6076
  };
5875
6077
 
5876
6078
  // src/elements/HawaPinInput.tsx
5877
- import React52, { useEffect as useEffect17, useState as useState28 } from "react";
6079
+ import React53, { useEffect as useEffect17, useState as useState28 } from "react";
5878
6080
  import clsx24 from "clsx";
5879
6081
  var HawaPinInput = ({
5880
6082
  label,
@@ -5918,7 +6120,7 @@ var HawaPinInput = ({
5918
6120
  }
5919
6121
  }
5920
6122
  };
5921
- return /* @__PURE__ */ React52.createElement("div", { className: "flex w-full flex-row justify-center gap-2" }, pin.map((value, index) => /* @__PURE__ */ React52.createElement(
6123
+ return /* @__PURE__ */ React53.createElement("div", { className: "flex w-full flex-row justify-center gap-2" }, pin.map((value, index) => /* @__PURE__ */ React53.createElement(
5922
6124
  "input",
5923
6125
  {
5924
6126
  key: index,
@@ -5940,7 +6142,7 @@ var HawaPinInput = ({
5940
6142
  };
5941
6143
 
5942
6144
  // src/elements/HawaItemCard.tsx
5943
- import React53, { useEffect as useEffect18, useState as useState29 } from "react";
6145
+ import React54, { useEffect as useEffect18, useState as useState29 } from "react";
5944
6146
  import clsx25 from "clsx";
5945
6147
  var HawaItemCard = ({
5946
6148
  actions,
@@ -5982,13 +6184,13 @@ var HawaItemCard = ({
5982
6184
  };
5983
6185
  return () => window.onclick = null;
5984
6186
  }, [openActionHeader]);
5985
- return /* @__PURE__ */ React53.createElement(
6187
+ return /* @__PURE__ */ React54.createElement(
5986
6188
  "div",
5987
6189
  {
5988
6190
  className: clsx25(defaultStyle, orientationStyles[orientation]),
5989
6191
  ...props
5990
6192
  },
5991
- cardImage && /* @__PURE__ */ React53.createElement("div", { className: "group relative overflow-clip" }, /* @__PURE__ */ React53.createElement(
6193
+ cardImage && /* @__PURE__ */ React54.createElement("div", { className: "group relative overflow-clip" }, /* @__PURE__ */ React54.createElement(
5992
6194
  "img",
5993
6195
  {
5994
6196
  src: "https://via.placeholder.com/50",
@@ -5997,7 +6199,7 @@ var HawaItemCard = ({
5997
6199
  clickableImage ? "overflow-clip transition-all group-hover:blur-lg" : ""
5998
6200
  )
5999
6201
  }
6000
- ), clickableImage && /* @__PURE__ */ React53.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__ */ React53.createElement(
6202
+ ), 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
6203
  HawaButton,
6002
6204
  {
6003
6205
  startIcon: clickableImageActionIcon,
@@ -6006,14 +6208,14 @@ var HawaItemCard = ({
6006
6208
  },
6007
6209
  clickableImageActionText
6008
6210
  ))),
6009
- /* @__PURE__ */ React53.createElement("div", { className: "relative w-full p-6" }, headerActions && /* @__PURE__ */ React53.createElement("div", { className: "max-h- bg-red absolute right-0 top-0 flex justify-end pr-3 pt-3" }, /* @__PURE__ */ React53.createElement(HawaMenu, { position: "top-right", menuItems: headerActions }, /* @__PURE__ */ React53.createElement(
6211
+ /* @__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
6212
  "div",
6011
6213
  {
6012
6214
  className: clsx25(headerActionsButtonStyle),
6013
6215
  onClick: handleOpenActionHeader
6014
6216
  },
6015
- /* @__PURE__ */ React53.createElement("span", { className: "sr-only" }, "Open dropdown"),
6016
- /* @__PURE__ */ React53.createElement(
6217
+ /* @__PURE__ */ React54.createElement("span", { className: "sr-only" }, "Open dropdown"),
6218
+ /* @__PURE__ */ React54.createElement(
6017
6219
  "svg",
6018
6220
  {
6019
6221
  className: "h-6 w-6",
@@ -6021,9 +6223,9 @@ var HawaItemCard = ({
6021
6223
  fill: "currentColor",
6022
6224
  viewBox: "0 0 20 20"
6023
6225
  },
6024
- /* @__PURE__ */ React53.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" })
6226
+ /* @__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
6227
  )
6026
- ))), header && /* @__PURE__ */ React53.createElement("h5", { className: "mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white" }, header), content && /* @__PURE__ */ React53.createElement("p", { className: "w-full font-normal text-gray-700 dark:text-gray-400" }, content), actions || counts ? /* @__PURE__ */ React53.createElement(
6228
+ ))), 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("span", { className: "w-full font-normal text-gray-700 dark:text-gray-400" }, content), actions || counts ? /* @__PURE__ */ React54.createElement(
6027
6229
  "div",
6028
6230
  {
6029
6231
  className: clsx25(
@@ -6039,7 +6241,7 @@ var HawaItemCard = ({
6039
6241
 
6040
6242
  // src/elements/HawaPricingCard.tsx
6041
6243
  import clsx26 from "clsx";
6042
- import React54 from "react";
6244
+ import React55 from "react";
6043
6245
  var HawaPricingCard = ({
6044
6246
  size = "medium",
6045
6247
  direction = "ltr",
@@ -6052,7 +6254,7 @@ var HawaPricingCard = ({
6052
6254
  medium: "mx-1 w-full rounded min-w-fit border dark:border-gray-700 bg-background ",
6053
6255
  large: "mx-1 w-full max-w-lg rounded border dark:border-gray-700 bg-background "
6054
6256
  };
6055
- return /* @__PURE__ */ React54.createElement(
6257
+ return /* @__PURE__ */ React55.createElement(
6056
6258
  "div",
6057
6259
  {
6058
6260
  dir: isArabic ? "rtl" : "ltr",
@@ -6062,11 +6264,11 @@ var HawaPricingCard = ({
6062
6264
  "flex flex-col gap-4 rounded border-2 p-4"
6063
6265
  )
6064
6266
  },
6065
- /* @__PURE__ */ React54.createElement("h5", { className: "text-md 0 font-bold text-primary/70" }, props.texts.title),
6066
- /* @__PURE__ */ React54.createElement("div", { className: " text-primary/ flex items-baseline" }, /* @__PURE__ */ React54.createElement(React54.Fragment, null, /* @__PURE__ */ React54.createElement("span", { className: "text-5xl font-extrabold tracking-tight" }, props.price), /* @__PURE__ */ React54.createElement("span", { className: "mx-1 text-sm font-semibold" }, props.texts.currencyText)), /* @__PURE__ */ React54.createElement("span", { className: "ml-1 text-xl font-normal text-primary/70" }, "/ ", props.texts.cycleText)),
6067
- /* @__PURE__ */ React54.createElement("h5", { className: "text-md font-normal text-primary/70" }, props.texts.subtitle),
6068
- props.features && /* @__PURE__ */ React54.createElement("ul", { role: "list", className: "space-y-0 " }, props.features?.map((feature, o) => {
6069
- return /* @__PURE__ */ React54.createElement("li", { key: o, className: "flex " }, /* @__PURE__ */ React54.createElement(
6267
+ /* @__PURE__ */ React55.createElement("h5", { className: "text-md 0 font-bold text-primary/70" }, props.texts.title),
6268
+ /* @__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)),
6269
+ /* @__PURE__ */ React55.createElement("h5", { className: "text-md font-normal text-primary/70" }, props.texts.subtitle),
6270
+ props.features && /* @__PURE__ */ React55.createElement("ul", { role: "list", className: "space-y-0 " }, props.features?.map((feature, o) => {
6271
+ return /* @__PURE__ */ React55.createElement("li", { key: o, className: "flex " }, /* @__PURE__ */ React55.createElement(
6070
6272
  "svg",
6071
6273
  {
6072
6274
  "aria-label": "Check Icon",
@@ -6075,7 +6277,7 @@ var HawaPricingCard = ({
6075
6277
  fill: "currentColor",
6076
6278
  viewBox: "0 0 20 20"
6077
6279
  },
6078
- /* @__PURE__ */ React54.createElement(
6280
+ /* @__PURE__ */ React55.createElement(
6079
6281
  "path",
6080
6282
  {
6081
6283
  fillRule: "evenodd",
@@ -6083,9 +6285,9 @@ var HawaPricingCard = ({
6083
6285
  clipRule: "evenodd"
6084
6286
  }
6085
6287
  )
6086
- ), /* @__PURE__ */ React54.createElement("span", { className: "flex items-center text-center font-normal leading-tight text-primary/70 " }, feature.text));
6288
+ ), /* @__PURE__ */ React55.createElement("span", { className: "flex items-center text-center font-normal leading-tight text-primary/70 " }, feature.text));
6087
6289
  })),
6088
- /* @__PURE__ */ React54.createElement(
6290
+ /* @__PURE__ */ React55.createElement(
6089
6291
  Button,
6090
6292
  {
6091
6293
  onClick: props.onPlanClicked,
@@ -6099,7 +6301,7 @@ var HawaPricingCard = ({
6099
6301
 
6100
6302
  // src/elements/HawaAdCard.tsx
6101
6303
  import clsx27 from "clsx";
6102
- import React55 from "react";
6304
+ import React56 from "react";
6103
6305
  var HawaAdCard = ({ orientation, ...props }) => {
6104
6306
  let cardStyles = {
6105
6307
  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 +6311,21 @@ var HawaAdCard = ({ orientation, ...props }) => {
6109
6311
  horizontal: "w-auto h-full bg-blue-500 rounded-inner",
6110
6312
  vertical: "bg-blue-500 rounded-inner w-auto "
6111
6313
  };
6112
- return /* @__PURE__ */ React55.createElement(
6314
+ return /* @__PURE__ */ React56.createElement(
6113
6315
  "div",
6114
6316
  {
6115
6317
  className: clsx27(cardStyles[orientation], "dark:text-white"),
6116
6318
  ...props
6117
6319
  },
6118
- /* @__PURE__ */ React55.createElement("div", { className: "flex aspect-square w-full max-w-fit items-start " }, /* @__PURE__ */ React55.createElement(
6320
+ /* @__PURE__ */ React56.createElement("div", { className: "flex aspect-square w-full max-w-fit items-start " }, /* @__PURE__ */ React56.createElement(
6119
6321
  "img",
6120
6322
  {
6121
6323
  src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
6122
6324
  className: imageStyles[orientation]
6123
6325
  }
6124
6326
  )),
6125
- /* @__PURE__ */ React55.createElement("div", { className: "w-full text-xs" }, /* @__PURE__ */ React55.createElement("div", { className: "font-bold" }, props.title), /* @__PURE__ */ React55.createElement("div", { className: "text-[12px]" }, props.description)),
6126
- /* @__PURE__ */ React55.createElement(
6327
+ /* @__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)),
6328
+ /* @__PURE__ */ React56.createElement(
6127
6329
  "span",
6128
6330
  {
6129
6331
  onClick: props.handleHide,
@@ -6136,7 +6338,7 @@ var HawaAdCard = ({ orientation, ...props }) => {
6136
6338
 
6137
6339
  // src/elements/HawaLandingCard.tsx
6138
6340
  import clsx28 from "clsx";
6139
- import React56 from "react";
6341
+ import React57 from "react";
6140
6342
  var HawaLandingCard = ({
6141
6343
  orientation = "horizontal",
6142
6344
  ...props
@@ -6149,7 +6351,7 @@ var HawaLandingCard = ({
6149
6351
  horizontal: "w-8 h-8 rounded",
6150
6352
  vertical: "w-14 h-14 rounded"
6151
6353
  };
6152
- return /* @__PURE__ */ React56.createElement(
6354
+ return /* @__PURE__ */ React57.createElement(
6153
6355
  "div",
6154
6356
  {
6155
6357
  className: clsx28(
@@ -6160,94 +6362,94 @@ var HawaLandingCard = ({
6160
6362
  ),
6161
6363
  ...props
6162
6364
  },
6163
- props.texts?.titleTip && /* @__PURE__ */ React56.createElement("div", { className: "text-sm text-red-600" }, props.texts?.titleTip),
6164
- props.imageURL && /* @__PURE__ */ React56.createElement(
6365
+ props.texts?.titleTip && /* @__PURE__ */ React57.createElement("div", { className: "text-sm text-red-600" }, props.texts?.titleTip),
6366
+ props.imageURL && /* @__PURE__ */ React57.createElement(
6165
6367
  "img",
6166
6368
  {
6167
6369
  className: "absolute -bottom-10 -right-10 h-40 w-auto ",
6168
6370
  src: props.imageURL
6169
6371
  }
6170
6372
  ),
6171
- props.texts?.title && /* @__PURE__ */ React56.createElement("div", { className: "mt-2 text-lg font-medium" }, props.texts?.title, " "),
6172
- props.texts?.description && /* @__PURE__ */ React56.createElement("div", { className: "z-10 mt-4 text-sm" }, props.texts?.description),
6173
- props.texts?.linkText && /* @__PURE__ */ React56.createElement("div", { className: "z-10 mt-6 text-sm underline underline-offset-8" }, props.texts?.linkText)
6373
+ props.texts?.title && /* @__PURE__ */ React57.createElement("div", { className: "mt-2 text-lg font-medium" }, props.texts?.title, " "),
6374
+ props.texts?.description && /* @__PURE__ */ React57.createElement("div", { className: "z-10 mt-4 text-sm" }, props.texts?.description),
6375
+ props.texts?.linkText && /* @__PURE__ */ React57.createElement("div", { className: "z-10 mt-6 text-sm underline underline-offset-8" }, props.texts?.linkText)
6174
6376
  );
6175
6377
  };
6176
6378
 
6177
6379
  // src/elements/HawaStoreButtons.tsx
6178
- import React57 from "react";
6380
+ import React58 from "react";
6179
6381
  var HawaStoreButtons = (props) => {
6180
- return /* @__PURE__ */ React57.createElement("div", { className: "flex justify-center" }, /* @__PURE__ */ React57.createElement("div", null, props.store === "apple" ? props.mode === "dark" ? /* @__PURE__ */ React57.createElement("div", { className: "mt-3 flex h-14 w-48 items-center justify-center rounded-lg bg-black text-white" }, /* @__PURE__ */ React57.createElement("div", { className: "mr-3" }, /* @__PURE__ */ React57.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ React57.createElement(
6382
+ 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
6383
  "path",
6182
6384
  {
6183
6385
  fill: "currentColor",
6184
6386
  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
6387
  }
6186
- ))), /* @__PURE__ */ React57.createElement("div", null, /* @__PURE__ */ React57.createElement("div", { className: "text-xs" }, "Download on the"), /* @__PURE__ */ React57.createElement("div", { className: "font-sans -mt-1 text-2xl font-semibold" }, "App Store"))) : /* @__PURE__ */ React57.createElement("div", { className: "mt-3 flex h-14 w-48 items-center justify-center rounded-lg border border-black bg-transparent text-black" }, /* @__PURE__ */ React57.createElement("div", { className: "mr-3" }, /* @__PURE__ */ React57.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ React57.createElement(
6388
+ ))), /* @__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
6389
  "path",
6188
6390
  {
6189
6391
  fill: "currentColor",
6190
6392
  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
6393
  }
6192
- ))), /* @__PURE__ */ React57.createElement("div", null, /* @__PURE__ */ React57.createElement("div", { className: "text-xs" }, "Download on the"), /* @__PURE__ */ React57.createElement("div", { className: "font-sans -mt-1 text-2xl font-semibold" }, "App Store"))) : props.mode === "dark" ? /* @__PURE__ */ React57.createElement("div", { className: "mt-3 flex h-14 w-48 items-center justify-center rounded-lg bg-black text-white" }, /* @__PURE__ */ React57.createElement("div", { className: "mr-3" }, /* @__PURE__ */ React57.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ React57.createElement(
6394
+ ))), /* @__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
6395
  "path",
6194
6396
  {
6195
6397
  fill: "#FFD400",
6196
6398
  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
6399
  }
6198
- ), /* @__PURE__ */ React57.createElement(
6400
+ ), /* @__PURE__ */ React58.createElement(
6199
6401
  "path",
6200
6402
  {
6201
6403
  fill: "#FF3333",
6202
6404
  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
6405
  }
6204
- ), /* @__PURE__ */ React57.createElement(
6406
+ ), /* @__PURE__ */ React58.createElement(
6205
6407
  "path",
6206
6408
  {
6207
6409
  fill: "#48FF48",
6208
6410
  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
6411
  }
6210
- ), /* @__PURE__ */ React57.createElement(
6412
+ ), /* @__PURE__ */ React58.createElement(
6211
6413
  "path",
6212
6414
  {
6213
6415
  fill: "#3BCCFF",
6214
6416
  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
6417
  }
6216
- ))), /* @__PURE__ */ React57.createElement("div", null, /* @__PURE__ */ React57.createElement("div", { className: "text-xs" }, "GET IT ON"), /* @__PURE__ */ React57.createElement("div", { className: "font-sans -mt-1 text-xl font-semibold" }, "Google Play"))) : /* @__PURE__ */ React57.createElement("div", { className: "mt-3 flex h-14 w-48 items-center justify-center rounded-lg border border-black bg-white text-black" }, /* @__PURE__ */ React57.createElement("div", { className: "mr-3" }, /* @__PURE__ */ React57.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ React57.createElement(
6418
+ ))), /* @__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
6419
  "path",
6218
6420
  {
6219
6421
  fill: "#FFD400",
6220
6422
  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
6423
  }
6222
- ), /* @__PURE__ */ React57.createElement(
6424
+ ), /* @__PURE__ */ React58.createElement(
6223
6425
  "path",
6224
6426
  {
6225
6427
  fill: "#FF3333",
6226
6428
  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
6429
  }
6228
- ), /* @__PURE__ */ React57.createElement(
6430
+ ), /* @__PURE__ */ React58.createElement(
6229
6431
  "path",
6230
6432
  {
6231
6433
  fill: "#48FF48",
6232
6434
  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
6435
  }
6234
- ), /* @__PURE__ */ React57.createElement(
6436
+ ), /* @__PURE__ */ React58.createElement(
6235
6437
  "path",
6236
6438
  {
6237
6439
  fill: "#3BCCFF",
6238
6440
  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
6441
  }
6240
- ))), /* @__PURE__ */ React57.createElement("div", null, /* @__PURE__ */ React57.createElement("div", { className: "text-xs" }, "GET IT ON"), /* @__PURE__ */ React57.createElement("div", { className: "font-sans -mt-1 text-xl font-semibold" }, "Google Play")))));
6442
+ ))), /* @__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
6443
  };
6242
6444
 
6243
6445
  // src/elements/HawaLogoButton.tsx
6244
- import React58 from "react";
6446
+ import React59 from "react";
6245
6447
  var HawaLogoButton = (props) => {
6246
6448
  let isArabic = props.lang === "ar";
6247
6449
  let logoElement = "";
6248
6450
  switch (props.logo?.toLowerCase()) {
6249
6451
  case "google":
6250
- logoElement = /* @__PURE__ */ React58.createElement(
6452
+ logoElement = /* @__PURE__ */ React59.createElement(
6251
6453
  "img",
6252
6454
  {
6253
6455
  src: "https://upload.wikimedia.org/wikipedia/commons/5/53/Google_%22G%22_Logo.svg",
@@ -6256,10 +6458,10 @@ var HawaLogoButton = (props) => {
6256
6458
  );
6257
6459
  break;
6258
6460
  case "github":
6259
- logoElement = /* @__PURE__ */ React58.createElement("svg", { width: "32px", height: "32px", viewBox: "0 0 32 32", className: "h-7 w-7" }, /* @__PURE__ */ React58.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" }));
6461
+ 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
6462
  break;
6261
6463
  case "twitter":
6262
- logoElement = /* @__PURE__ */ React58.createElement(
6464
+ logoElement = /* @__PURE__ */ React59.createElement(
6263
6465
  "svg",
6264
6466
  {
6265
6467
  version: "1.1",
@@ -6268,7 +6470,7 @@ var HawaLogoButton = (props) => {
6268
6470
  className: "h-5 w-5",
6269
6471
  viewBox: "0 0 512.002 512.002"
6270
6472
  },
6271
- /* @__PURE__ */ React58.createElement(
6473
+ /* @__PURE__ */ React59.createElement(
6272
6474
  "path",
6273
6475
  {
6274
6476
  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 +6479,7 @@ var HawaLogoButton = (props) => {
6277
6479
  );
6278
6480
  break;
6279
6481
  case "mada":
6280
- logoElement = /* @__PURE__ */ React58.createElement(
6482
+ logoElement = /* @__PURE__ */ React59.createElement(
6281
6483
  "img",
6282
6484
  {
6283
6485
  src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/mada.png",
@@ -6286,7 +6488,7 @@ var HawaLogoButton = (props) => {
6286
6488
  );
6287
6489
  break;
6288
6490
  case "stcpay":
6289
- logoElement = /* @__PURE__ */ React58.createElement(
6491
+ logoElement = /* @__PURE__ */ React59.createElement(
6290
6492
  "img",
6291
6493
  {
6292
6494
  src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/stc-pay.png",
@@ -6295,7 +6497,7 @@ var HawaLogoButton = (props) => {
6295
6497
  );
6296
6498
  break;
6297
6499
  case "visa/master":
6298
- logoElement = /* @__PURE__ */ React58.createElement(
6500
+ logoElement = /* @__PURE__ */ React59.createElement(
6299
6501
  "img",
6300
6502
  {
6301
6503
  src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/visa-master.png",
@@ -6304,7 +6506,7 @@ var HawaLogoButton = (props) => {
6304
6506
  );
6305
6507
  break;
6306
6508
  case "paypal":
6307
- logoElement = /* @__PURE__ */ React58.createElement(
6509
+ logoElement = /* @__PURE__ */ React59.createElement(
6308
6510
  "img",
6309
6511
  {
6310
6512
  src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/paypal.png",
@@ -6313,7 +6515,7 @@ var HawaLogoButton = (props) => {
6313
6515
  );
6314
6516
  break;
6315
6517
  case "googlepay":
6316
- logoElement = /* @__PURE__ */ React58.createElement(
6518
+ logoElement = /* @__PURE__ */ React59.createElement(
6317
6519
  "img",
6318
6520
  {
6319
6521
  src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/google-pay.png",
@@ -6322,7 +6524,7 @@ var HawaLogoButton = (props) => {
6322
6524
  );
6323
6525
  break;
6324
6526
  case "applepay":
6325
- logoElement = /* @__PURE__ */ React58.createElement(
6527
+ logoElement = /* @__PURE__ */ React59.createElement(
6326
6528
  "img",
6327
6529
  {
6328
6530
  src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/apple-pay.png",
@@ -6331,12 +6533,12 @@ var HawaLogoButton = (props) => {
6331
6533
  );
6332
6534
  break;
6333
6535
  case "wallet":
6334
- logoElement = /* @__PURE__ */ React58.createElement("svg", { version: "1.1", viewBox: "0 0 223 223", className: "h-6 w-6" }, /* @__PURE__ */ React58.createElement("g", null, /* @__PURE__ */ React58.createElement(
6536
+ 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
6537
  "path",
6336
6538
  {
6337
6539
  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
6540
  }
6339
- ), /* @__PURE__ */ React58.createElement(
6541
+ ), /* @__PURE__ */ React59.createElement(
6340
6542
  "path",
6341
6543
  {
6342
6544
  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 +6548,21 @@ var HawaLogoButton = (props) => {
6346
6548
  default:
6347
6549
  break;
6348
6550
  }
6349
- return /* @__PURE__ */ React58.createElement(
6551
+ return /* @__PURE__ */ React59.createElement(
6350
6552
  "button",
6351
6553
  {
6352
6554
  dir: props.direction,
6353
6555
  onClick: props.onClick,
6354
6556
  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
6557
  },
6356
- /* @__PURE__ */ React58.createElement("div", { className: "flex h-full flex-row items-center justify-end" }, logoElement),
6357
- /* @__PURE__ */ React58.createElement("div", { style: { width: 10 } }),
6358
- /* @__PURE__ */ React58.createElement("div", { className: "flex h-full flex-col items-start justify-center dark:text-black" }, props.buttonText)
6558
+ /* @__PURE__ */ React59.createElement("div", { className: "flex h-full flex-row items-center justify-end" }, logoElement),
6559
+ /* @__PURE__ */ React59.createElement("div", { style: { width: 10 } }),
6560
+ /* @__PURE__ */ React59.createElement("div", { className: "flex h-full flex-col items-start justify-center dark:text-black" }, props.buttonText)
6359
6561
  );
6360
6562
  };
6361
6563
 
6362
6564
  // src/elements/Carousel.tsx
6363
- import React59 from "react";
6565
+ import React60 from "react";
6364
6566
 
6365
6567
  // src/hooks/useCarousel.ts
6366
6568
  import { useState as useState30, useRef as useRef11 } from "react";
@@ -6423,7 +6625,7 @@ var Carousel = ({ images }) => {
6423
6625
  handleMouseUp,
6424
6626
  handleMouseMove
6425
6627
  } = useCarousel_default(imageWidth);
6426
- return /* @__PURE__ */ React59.createElement(
6628
+ return /* @__PURE__ */ React60.createElement(
6427
6629
  "div",
6428
6630
  {
6429
6631
  className: "flex cursor-pointer snap-x gap-4 overflow-x-scroll",
@@ -6433,7 +6635,7 @@ var Carousel = ({ images }) => {
6433
6635
  onMouseMove: handleMouseMove,
6434
6636
  ref: containerRef
6435
6637
  },
6436
- images.map((image, index) => /* @__PURE__ */ React59.createElement("div", { key: index, className: "h-40 w-60 flex-shrink-0" }, /* @__PURE__ */ React59.createElement(
6638
+ images.map((image, index) => /* @__PURE__ */ React60.createElement("div", { key: index, className: "h-40 w-60 flex-shrink-0" }, /* @__PURE__ */ React60.createElement(
6437
6639
  "img",
6438
6640
  {
6439
6641
  src: image,
@@ -6445,10 +6647,10 @@ var Carousel = ({ images }) => {
6445
6647
  };
6446
6648
 
6447
6649
  // src/elements/Input.tsx
6448
- import * as React60 from "react";
6449
- var Input = React60.forwardRef(
6650
+ import * as React61 from "react";
6651
+ var Input = React61.forwardRef(
6450
6652
  ({ className, preview, type, ...props }, ref) => {
6451
- return /* @__PURE__ */ React60.createElement(
6653
+ return /* @__PURE__ */ React61.createElement(
6452
6654
  "input",
6453
6655
  {
6454
6656
  type,
@@ -6467,7 +6669,7 @@ var Input = React60.forwardRef(
6467
6669
  Input.displayName = "Input";
6468
6670
 
6469
6671
  // src/elements/InterfaceSettings.tsx
6470
- import React61, { useState as useState32 } from "react";
6672
+ import React62, { useState as useState32 } from "react";
6471
6673
  var InterfaceSettings = ({
6472
6674
  orientation = "horizontal",
6473
6675
  width = "default",
@@ -6479,7 +6681,7 @@ var InterfaceSettings = ({
6479
6681
  horizontal: "flex flex-row justify-between",
6480
6682
  vertical: "flex flex-col items-center gap-2"
6481
6683
  };
6482
- return /* @__PURE__ */ React61.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ React61.createElement(
6684
+ return /* @__PURE__ */ React62.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ React62.createElement(
6483
6685
  HawaRadio,
6484
6686
  {
6485
6687
  width,
@@ -6494,7 +6696,7 @@ var InterfaceSettings = ({
6494
6696
  { value: "en", label: "English" }
6495
6697
  ]
6496
6698
  }
6497
- ), /* @__PURE__ */ React61.createElement(
6699
+ ), /* @__PURE__ */ React62.createElement(
6498
6700
  HawaRadio,
6499
6701
  {
6500
6702
  width,
@@ -6507,7 +6709,7 @@ var InterfaceSettings = ({
6507
6709
  options: [
6508
6710
  {
6509
6711
  value: "light",
6510
- label: /* @__PURE__ */ React61.createElement(
6712
+ label: /* @__PURE__ */ React62.createElement(
6511
6713
  "svg",
6512
6714
  {
6513
6715
  width: "15",
@@ -6517,20 +6719,18 @@ var InterfaceSettings = ({
6517
6719
  xmlns: "http://www.w3.org/2000/svg",
6518
6720
  className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90"
6519
6721
  },
6520
- /* @__PURE__ */ React61.createElement(
6722
+ /* @__PURE__ */ React62.createElement(
6521
6723
  "path",
6522
6724
  {
6523
6725
  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",
6524
- fill: "currentColor",
6525
- "fill-rule": "evenodd",
6526
- "clip-rule": "evenodd"
6726
+ fill: "currentColor"
6527
6727
  }
6528
6728
  )
6529
6729
  )
6530
6730
  },
6531
6731
  {
6532
6732
  value: "dark",
6533
- label: /* @__PURE__ */ React61.createElement(
6733
+ label: /* @__PURE__ */ React62.createElement(
6534
6734
  "svg",
6535
6735
  {
6536
6736
  xmlns: "http://www.w3.org/2000/svg",
@@ -6539,12 +6739,9 @@ var InterfaceSettings = ({
6539
6739
  viewBox: "0 0 24 24",
6540
6740
  fill: "none",
6541
6741
  stroke: "currentColor",
6542
- "stroke-width": "2",
6543
- "stroke-linecap": "round",
6544
- "stroke-linejoin": "round",
6545
6742
  className: "h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100"
6546
6743
  },
6547
- /* @__PURE__ */ React61.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
6744
+ /* @__PURE__ */ React62.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
6548
6745
  )
6549
6746
  }
6550
6747
  ]
@@ -6552,211 +6749,6 @@ var InterfaceSettings = ({
6552
6749
  ));
6553
6750
  };
6554
6751
 
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
6752
  // src/elements/Popover.tsx
6761
6753
  import * as React63 from "react";
6762
6754
  import * as PopoverPrimitive from "@radix-ui/react-popover";
@@ -7659,7 +7651,7 @@ var AppLayout = ({
7659
7651
  /* @__PURE__ */ React76.createElement("div", null, props.email)
7660
7652
  ) : null,
7661
7653
  /* @__PURE__ */ React76.createElement(
7662
- DropdownMenu2,
7654
+ DropdownMenu,
7663
7655
  {
7664
7656
  triggerClassname: "mx-2",
7665
7657
  align: "end",
@@ -8364,7 +8356,7 @@ var HawaAppLayoutSimplified = ({
8364
8356
  /* @__PURE__ */ React78.createElement("div", null, props.email)
8365
8357
  ) : null,
8366
8358
  /* @__PURE__ */ React78.createElement(
8367
- DropdownMenu2,
8359
+ DropdownMenu,
8368
8360
  {
8369
8361
  triggerClassname: "mx-2",
8370
8362
  align: "end",
@@ -9383,6 +9375,7 @@ var SignUpForm = (props) => {
9383
9375
  return /* @__PURE__ */ React88.createElement(
9384
9376
  Controller4,
9385
9377
  {
9378
+ key: i,
9386
9379
  control,
9387
9380
  name: "email",
9388
9381
  render: ({ field }) => /* @__PURE__ */ React88.createElement(
@@ -9412,6 +9405,7 @@ var SignUpForm = (props) => {
9412
9405
  return /* @__PURE__ */ React88.createElement(
9413
9406
  Controller4,
9414
9407
  {
9408
+ key: i,
9415
9409
  control,
9416
9410
  name: "username",
9417
9411
  render: ({ field }) => /* @__PURE__ */ React88.createElement(
@@ -9483,7 +9477,6 @@ var SignUpForm = (props) => {
9483
9477
  {
9484
9478
  width: "full",
9485
9479
  type: "text",
9486
- defaultValue: field.value ?? "",
9487
9480
  label: props.texts.refCode,
9488
9481
  placeholder: props.texts.passwordPlaceholder,
9489
9482
  helpertext: errors.password?.message,
@@ -10659,7 +10652,7 @@ export {
10659
10652
  CreditCardForm,
10660
10653
  DragDropImages,
10661
10654
  DraggableCard,
10662
- DropdownMenu2 as DropdownMenu,
10655
+ DropdownMenu,
10663
10656
  EmptyState,
10664
10657
  FloatingComment,
10665
10658
  FloatingCommentExec,