@sikka/hawa 0.38.14-next → 0.40.0-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DropdownMenu-B3cTLPDi.d.mts → DropdownMenu-FVVDS2rX.d.mts} +6 -1
- package/dist/{DropdownMenu-BO1TNMm5.d.ts → DropdownMenu-SFJtRGAw.d.ts} +6 -1
- package/dist/{Radio-lgoClQrv.d.ts → Radio-DlPwVCG4.d.ts} +6 -0
- package/dist/{Radio-uQ7DtzcI.d.mts → Radio-Dyvlywnk.d.mts} +6 -0
- package/dist/alert/index.js +2 -2
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs +2 -2
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.d.mts +2 -0
- package/dist/appLayout/index.d.ts +2 -0
- package/dist/appLayout/index.js +14 -3
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +14 -3
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/backToTop/index.js +2 -2
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs +2 -2
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +77 -2
- package/dist/blocks/auth/index.mjs +79 -4
- package/dist/blocks/feedback/index.js +162 -119
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.d.mts +5 -2
- package/dist/blocks/index.d.ts +5 -2
- package/dist/blocks/index.js +525 -450
- package/dist/blocks/index.mjs +12 -4
- package/dist/blocks/misc/index.d.mts +3 -0
- package/dist/blocks/misc/index.d.ts +3 -0
- package/dist/blocks/misc/index.js +246 -289
- package/dist/blocks/misc/index.mjs +155 -200
- package/dist/blocks/pricing/index.js +162 -119
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/button/index.d.mts +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.js +2 -2
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +2 -2
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.js +2 -2
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs +2 -2
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/{chunk-SL4ONYNR.mjs → chunk-27G5FKOP.mjs} +1 -1
- package/dist/{chunk-IC5WYNKN.mjs → chunk-AJTYKC5R.mjs} +1 -1
- package/dist/{chunk-UMOBOCED.mjs → chunk-CTNKKP2O.mjs} +2 -2
- package/dist/chunk-CTZRVSTI.mjs +346 -0
- package/dist/{chunk-XFSBC5VI.mjs → chunk-DYPGZ2IP.mjs} +1 -1
- package/dist/{chunk-UJ5SXC3M.mjs → chunk-GN7EIDTE.mjs} +1 -1
- package/dist/{chunk-VE7EQ6VH.mjs → chunk-GU2DOJ7Q.mjs} +106 -8
- package/dist/{chunk-RTK6REIK.mjs → chunk-QZIENYTE.mjs} +1 -1
- package/dist/{chunk-EZBHA2IL.mjs → chunk-RT2Q3SH7.mjs} +1 -1
- package/dist/{chunk-AONESDSB.mjs → chunk-UBUVHGW4.mjs} +238 -248
- package/dist/{chunk-ZBUBNKF6.mjs → chunk-XCW5YNMS.mjs} +34 -1
- package/dist/codeBlock/index.js +2 -2
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +2 -2
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/combobox/index.js +1 -1
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +1 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.js +1 -1
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +1 -1
- package/dist/command/index.mjs.map +1 -1
- package/dist/commonTypes-189mW5eB.d.mts +8 -0
- package/dist/commonTypes-189mW5eB.d.ts +8 -0
- package/dist/commonTypes-DUY2LJm1.d.mts +3 -0
- package/dist/commonTypes-DUY2LJm1.d.ts +3 -0
- package/dist/commonTypes-D_7LV7Ri.d.mts +5 -0
- package/dist/commonTypes-D_7LV7Ri.d.ts +5 -0
- package/dist/dataTable/index.d.mts +1 -0
- package/dist/dataTable/index.d.ts +1 -0
- package/dist/dataTable/index.js +3 -3
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +3 -3
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.d.mts +1 -1
- package/dist/datePicker/index.d.ts +1 -1
- package/dist/datePicker/index.js +3 -3
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +3 -3
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/dialog/index.js +1 -1
- package/dist/dialog/index.js.map +1 -1
- package/dist/dialog/index.mjs +1 -1
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/docsLayout/index.js +77 -2
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +77 -2
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.d.mts +6 -1
- package/dist/dropdownMenu/index.d.ts +6 -1
- package/dist/dropdownMenu/index.js +29 -6
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +29 -6
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +13 -5
- package/dist/elements/index.d.ts +13 -5
- package/dist/elements/index.js +622 -532
- package/dist/elements/index.mjs +6 -6
- package/dist/fileDropzone/index.d.mts +2 -2
- package/dist/fileDropzone/index.d.ts +2 -2
- package/dist/fileDropzone/index.js +2 -2
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +2 -2
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/fileUploader/index.d.mts +2 -2
- package/dist/fileUploader/index.d.ts +2 -2
- package/dist/glow/index.d.mts +3 -3
- package/dist/glow/index.d.ts +3 -3
- package/dist/hooks/index.d.mts +8 -1
- package/dist/hooks/index.d.ts +8 -1
- package/dist/hooks/index.js +35 -0
- package/dist/hooks/index.mjs +5 -1
- package/dist/index.css +0 -91
- package/dist/index.d.mts +35 -4
- package/dist/index.d.ts +35 -4
- package/dist/index.js +1104 -960
- package/dist/index.mjs +1055 -913
- package/dist/input/index.d.mts +2 -9
- package/dist/input/index.d.ts +2 -9
- package/dist/interfaceSettings/index.js +160 -117
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +160 -117
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/label/index.d.mts +1 -2
- package/dist/label/index.d.ts +1 -2
- package/dist/layout/index.d.mts +3 -1
- package/dist/layout/index.d.ts +3 -1
- package/dist/layout/index.js +89 -3
- package/dist/layout/index.mjs +14 -3
- package/dist/logos/index.d.mts +5 -0
- package/dist/logos/index.d.ts +5 -0
- package/dist/logos/index.js +75 -0
- package/dist/logos/index.js.map +1 -1
- package/dist/logos/index.mjs +75 -0
- package/dist/logos/index.mjs.map +1 -1
- package/dist/navigationMenu/index.d.mts +2 -1
- package/dist/navigationMenu/index.d.ts +2 -1
- package/dist/pagination/index.d.mts +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/phoneInput/index.d.mts +1 -1
- package/dist/phoneInput/index.d.ts +1 -1
- package/dist/progress/index.d.mts +8 -1
- package/dist/progress/index.d.ts +8 -1
- package/dist/radio/index.d.mts +15 -1
- package/dist/radio/index.d.ts +15 -1
- package/dist/radio/index.js +160 -117
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +160 -117
- package/dist/radio/index.mjs.map +1 -1
- package/dist/scrollArea/index.d.mts +1 -1
- package/dist/scrollArea/index.d.ts +1 -1
- package/dist/separator/index.d.mts +1 -1
- package/dist/separator/index.d.ts +1 -1
- package/dist/signature/index.d.mts +1 -2
- package/dist/signature/index.d.ts +1 -2
- package/dist/simpleTable/index.d.mts +1 -1
- package/dist/simpleTable/index.d.ts +1 -1
- package/dist/sonner/index.d.mts +1 -1
- package/dist/sonner/index.d.ts +1 -1
- package/dist/sortButton/index.js +2 -2
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs +2 -2
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.d.mts +3 -9
- package/dist/splitButton/index.d.ts +3 -9
- package/dist/splitButton/index.js +2 -2
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +2 -2
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/switch/index.d.mts +1 -1
- package/dist/switch/index.d.ts +1 -1
- package/dist/tabs/index.d.mts +4 -2
- package/dist/tabs/index.d.ts +4 -2
- package/dist/tabs/index.js +123 -174
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +118 -169
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/textarea/index.d.mts +1 -1
- package/dist/textarea/index.d.ts +1 -1
- package/dist/toast/index.d.mts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toaster/index.d.mts +4 -22
- package/dist/toaster/index.d.ts +4 -22
- package/dist/tooltip/index.d.mts +4 -3
- package/dist/tooltip/index.d.ts +4 -3
- package/package.json +1 -1
- package/dist/Label-UbMDLtJF.d.mts +0 -14
- package/dist/Label-UbMDLtJF.d.ts +0 -14
- package/dist/chunk-WDCKXU54.mjs +0 -303
- package/dist/commonTypes-CgDwjGvU.d.mts +0 -5
- package/dist/commonTypes-CgDwjGvU.d.ts +0 -5
- package/dist/commonTypes-DZdITB5m.d.mts +0 -4
- package/dist/commonTypes-DZdITB5m.d.ts +0 -4
- package/dist/floatBox/index.d.mts +0 -15
- package/dist/floatBox/index.d.ts +0 -15
- package/dist/floatBox/index.js +0 -105
- package/dist/floatBox/index.js.map +0 -1
- package/dist/floatBox/index.mjs +0 -69
- package/dist/floatBox/index.mjs.map +0 -1
package/dist/elements/index.js
CHANGED
@@ -1016,14 +1016,37 @@ var DropdownMenu = ({
|
|
1016
1016
|
);
|
1017
1017
|
};
|
1018
1018
|
var DropdownMenuRadio = (props) => {
|
1019
|
-
|
1020
|
-
|
1019
|
+
const ariaLabel = props.label ? `${props.label} radio group` : void 0;
|
1020
|
+
const ariaLabelledby = props.label ? `${props.label}-label` : void 0;
|
1021
|
+
return /* @__PURE__ */ React5.createElement(DropdownMenuRoot, null, /* @__PURE__ */ React5.createElement(DropdownMenuTrigger, { asChild: true }, props.trigger), /* @__PURE__ */ React5.createElement(
|
1022
|
+
DropdownMenuContent,
|
1021
1023
|
{
|
1022
|
-
|
1023
|
-
|
1024
|
+
align: props.align,
|
1025
|
+
side: props.side,
|
1026
|
+
"aria-label": ariaLabel,
|
1027
|
+
"aria-labelledby": ariaLabelledby,
|
1028
|
+
...props.contentProps
|
1024
1029
|
},
|
1025
|
-
props.
|
1026
|
-
|
1030
|
+
props.label && /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(DropdownMenuLabel, { id: `${props.label}-label` }, props.label), /* @__PURE__ */ React5.createElement(DropdownMenuSeparator, null)),
|
1031
|
+
/* @__PURE__ */ React5.createElement(
|
1032
|
+
DropdownMenuRadioGroup,
|
1033
|
+
{
|
1034
|
+
value: props.value,
|
1035
|
+
onValueChange: props.onValueChange,
|
1036
|
+
...props.radioGroupProps
|
1037
|
+
},
|
1038
|
+
props.options.map((opt, i) => /* @__PURE__ */ React5.createElement(
|
1039
|
+
DropdownMenuRadioItem,
|
1040
|
+
{
|
1041
|
+
key: i,
|
1042
|
+
...opt.props,
|
1043
|
+
value: opt.value,
|
1044
|
+
"aria-checked": props.value === opt.value
|
1045
|
+
},
|
1046
|
+
opt.label
|
1047
|
+
))
|
1048
|
+
)
|
1049
|
+
));
|
1027
1050
|
};
|
1028
1051
|
|
1029
1052
|
// elements/accordion/Accordion.tsx
|
@@ -1468,6 +1491,13 @@ var Logos = {
|
|
1468
1491
|
d: "M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148a13.98 13.98 0 0 0 10.15 5.144 4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 0 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z"
|
1469
1492
|
}
|
1470
1493
|
)),
|
1494
|
+
x: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react6.default.createElement("title", null, "X"), /* @__PURE__ */ import_react6.default.createElement(
|
1495
|
+
"path",
|
1496
|
+
{
|
1497
|
+
fill: "currentColor",
|
1498
|
+
d: "M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"
|
1499
|
+
}
|
1500
|
+
)),
|
1471
1501
|
instagram: (props) => /* @__PURE__ */ import_react6.default.createElement(
|
1472
1502
|
"svg",
|
1473
1503
|
{
|
@@ -1556,6 +1586,23 @@ var Logos = {
|
|
1556
1586
|
d: "M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
|
1557
1587
|
}
|
1558
1588
|
)),
|
1589
|
+
googleplay: (props) => /* @__PURE__ */ import_react6.default.createElement(
|
1590
|
+
"svg",
|
1591
|
+
{
|
1592
|
+
role: "img",
|
1593
|
+
viewBox: "0 0 24 24",
|
1594
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1595
|
+
...props
|
1596
|
+
},
|
1597
|
+
/* @__PURE__ */ import_react6.default.createElement("title", null, "Google Play"),
|
1598
|
+
/* @__PURE__ */ import_react6.default.createElement(
|
1599
|
+
"path",
|
1600
|
+
{
|
1601
|
+
fill: "currentColor",
|
1602
|
+
d: "M22.018 13.298l-3.919 2.218-3.515-3.493 3.543-3.521 3.891 2.202a1.49 1.49 0 0 1 0 2.594zM1.337.924a1.486 1.486 0 0 0-.112.568v21.017c0 .217.045.419.124.6l11.155-11.087L1.337.924zm12.207 10.065l3.258-3.238L3.45.195a1.466 1.466 0 0 0-.946-.179l11.04 10.973zm0 2.067l-11 10.933c.298.036.612-.016.906-.183l13.324-7.54-3.23-3.21z"
|
1603
|
+
}
|
1604
|
+
)
|
1605
|
+
),
|
1559
1606
|
apple: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react6.default.createElement(
|
1560
1607
|
"path",
|
1561
1608
|
{
|
@@ -1563,6 +1610,23 @@ var Logos = {
|
|
1563
1610
|
fill: "currentColor"
|
1564
1611
|
}
|
1565
1612
|
)),
|
1613
|
+
applestore: (props) => /* @__PURE__ */ import_react6.default.createElement(
|
1614
|
+
"svg",
|
1615
|
+
{
|
1616
|
+
role: "img",
|
1617
|
+
viewBox: "0 0 24 24",
|
1618
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1619
|
+
...props
|
1620
|
+
},
|
1621
|
+
/* @__PURE__ */ import_react6.default.createElement("title", null, "App Store"),
|
1622
|
+
/* @__PURE__ */ import_react6.default.createElement(
|
1623
|
+
"path",
|
1624
|
+
{
|
1625
|
+
fill: "currentColor",
|
1626
|
+
d: "M8.8086 14.9194l6.1107-11.0368c.0837-.1513.1682-.302.2437-.4584.0685-.142.1267-.2854.1646-.4403.0803-.3259.0588-.6656-.066-.9767-.1238-.3095-.3417-.5678-.6201-.7355a1.4175 1.4175 0 0 0-.921-.1924c-.3207.043-.6135.1935-.8443.4288-.1094.1118-.1996.2361-.2832.369-.092.1463-.175.2979-.259.4492l-.3864.6979-.3865-.6979c-.0837-.1515-.1667-.303-.2587-.4492-.0837-.1329-.1739-.2572-.2835-.369-.2305-.2353-.5233-.3857-.844-.429a1.4181 1.4181 0 0 0-.921.1926c-.2784.1677-.4964.426-.6203.7355-.1246.311-.1461.6508-.066.9767.038.155.0962.2984.1648.4403.0753.1564.1598.307.2437.4584l1.248 2.2543-4.8625 8.7825H2.0295c-.1676 0-.3351-.0007-.5026.0092-.1522.009-.3004.0284-.448.0714-.3108.0906-.5822.2798-.7783.548-.195.2665-.3006.5929-.3006.9279 0 .3352.1057.6612.3006.9277.196.2683.4675.4575.7782.548.1477.043.296.0623.4481.0715.1675.01.335.009.5026.009h13.0974c.0171-.0357.059-.1294.1-.2697.415-1.4151-.6156-2.843-2.0347-2.843zM3.113 18.5418l-.7922 1.5008c-.0818.1553-.1644.31-.2384.4705-.067.1458-.124.293-.1611.452-.0785.3346-.0576.6834.0645 1.0029.1212.3175.3346.583.607.7549.2727.172.5891.2416.9013.1975.3139-.044.6005-.1986.8263-.4402.1072-.1148.1954-.2424.2772-.3787.0902-.1503.1714-.3059.2535-.4612L6 19.4636c-.0896-.149-.9473-1.4704-2.887-.9218m20.5861-3.0056a1.4707 1.4707 0 0 0-.779-.5407c-.1476-.0425-.2961-.0616-.4483-.0705-.1678-.0099-.3352-.0091-.503-.0091H18.648l-4.3891-7.817c-.6655.7005-.9632 1.485-1.0773 2.1976-.1655 1.0333.0367 2.0934.546 3.0004l5.2741 9.3933c.084.1494.167.299.2591.4435.0837.131.1739.2537.2836.364.231.2323.5238.3809.8449.4232.3192.0424.643-.0244.9217-.1899.2784-.1653.4968-.4204.621-.7257.1246-.3072.146-.6425.0658-.9641-.0381-.1529-.0962-.2945-.165-.4346-.0753-.1543-.1598-.303-.2438-.4524l-1.216-2.1662h1.596c.1677 0 .3351.0009.5029-.009.1522-.009.3007-.028.4483-.0705a1.4707 1.4707 0 0 0 .779-.5407A1.5386 1.5386 0 0 0 24 16.452a1.539 1.539 0 0 0-.3009-.9158Z"
|
1627
|
+
}
|
1628
|
+
)
|
1629
|
+
),
|
1566
1630
|
paypal: (props) => /* @__PURE__ */ import_react6.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react6.default.createElement(
|
1567
1631
|
"path",
|
1568
1632
|
{
|
@@ -1595,6 +1659,40 @@ var Logos = {
|
|
1595
1659
|
...props
|
1596
1660
|
},
|
1597
1661
|
/* @__PURE__ */ import_react6.default.createElement("path", { d: "M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z" })
|
1662
|
+
),
|
1663
|
+
visa: (props) => /* @__PURE__ */ import_react6.default.createElement(
|
1664
|
+
"svg",
|
1665
|
+
{
|
1666
|
+
role: "img",
|
1667
|
+
viewBox: "0 0 24 24",
|
1668
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1669
|
+
...props
|
1670
|
+
},
|
1671
|
+
/* @__PURE__ */ import_react6.default.createElement("title", null, "Visa"),
|
1672
|
+
/* @__PURE__ */ import_react6.default.createElement(
|
1673
|
+
"path",
|
1674
|
+
{
|
1675
|
+
fill: "currentColor",
|
1676
|
+
d: "M9.112 8.262L5.97 15.758H3.92L2.374 9.775c-.094-.368-.175-.503-.461-.658C1.447 8.864.677 8.627 0 8.479l.046-.217h3.3a.904.904 0 01.894.764l.817 4.338 2.018-5.102zm8.033 5.049c.008-1.979-2.736-2.088-2.717-2.972.006-.269.262-.555.822-.628a3.66 3.66 0 011.913.336l.34-1.59a5.207 5.207 0 00-1.814-.333c-1.917 0-3.266 1.02-3.278 2.479-.012 1.079.963 1.68 1.698 2.04.756.367 1.01.603 1.006.931-.005.504-.602.725-1.16.734-.975.015-1.54-.263-1.992-.473l-.351 1.642c.453.208 1.289.39 2.156.398 2.037 0 3.37-1.006 3.377-2.564m5.061 2.447H24l-1.565-7.496h-1.656a.883.883 0 00-.826.55l-2.909 6.946h2.036l.405-1.12h2.488zm-2.163-2.656l1.02-2.815.588 2.815zm-8.16-4.84l-1.603 7.496H8.34l1.605-7.496z"
|
1677
|
+
}
|
1678
|
+
)
|
1679
|
+
),
|
1680
|
+
mastercard: (props) => /* @__PURE__ */ import_react6.default.createElement(
|
1681
|
+
"svg",
|
1682
|
+
{
|
1683
|
+
role: "img",
|
1684
|
+
viewBox: "0 0 24 24",
|
1685
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1686
|
+
...props
|
1687
|
+
},
|
1688
|
+
/* @__PURE__ */ import_react6.default.createElement("title", null, "MasterCard"),
|
1689
|
+
/* @__PURE__ */ import_react6.default.createElement(
|
1690
|
+
"path",
|
1691
|
+
{
|
1692
|
+
fill: "currentColor",
|
1693
|
+
d: "M11.343 18.031c.058.049.12.098.181.146-1.177.783-2.59 1.238-4.107 1.238C3.32 19.416 0 16.096 0 12c0-4.095 3.32-7.416 7.416-7.416 1.518 0 2.931.456 4.105 1.238-.06.051-.12.098-.165.15C9.6 7.489 8.595 9.688 8.595 12c0 2.311 1.001 4.51 2.748 6.031zm5.241-13.447c-1.52 0-2.931.456-4.105 1.238.06.051.12.098.165.15C14.4 7.489 15.405 9.688 15.405 12c0 2.31-1.001 4.507-2.748 6.031-.058.049-.12.098-.181.146 1.177.783 2.588 1.238 4.107 1.238C20.68 19.416 24 16.096 24 12c0-4.094-3.32-7.416-7.416-7.416zM12 6.174c-.096.075-.189.15-.28.231C10.156 7.764 9.169 9.765 9.169 12c0 2.236.987 4.236 2.551 5.595.09.08.185.158.28.232.096-.074.189-.152.28-.232 1.563-1.359 2.551-3.359 2.551-5.595 0-2.235-.987-4.236-2.551-5.595-.09-.08-.184-.156-.28-.231z"
|
1694
|
+
}
|
1695
|
+
)
|
1598
1696
|
)
|
1599
1697
|
};
|
1600
1698
|
|
@@ -2101,7 +2199,7 @@ var DialogFooter = ({
|
|
2101
2199
|
"div",
|
2102
2200
|
{
|
2103
2201
|
className: cn(
|
2104
|
-
"hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end
|
2202
|
+
"hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end hawa-gap-2",
|
2105
2203
|
className
|
2106
2204
|
),
|
2107
2205
|
...props
|
@@ -2309,12 +2407,12 @@ var Button = React17.forwardRef(
|
|
2309
2407
|
children,
|
2310
2408
|
labelProps,
|
2311
2409
|
showHelperText = false,
|
2312
|
-
|
2410
|
+
asInput = false,
|
2313
2411
|
...props
|
2314
2412
|
}, ref) => {
|
2315
2413
|
const Comp = "button";
|
2316
2414
|
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
2317
|
-
if (
|
2415
|
+
if (asInput) {
|
2318
2416
|
return /* @__PURE__ */ React17.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, label && /* @__PURE__ */ React17.createElement(Label2, { ...labelProps }, label), /* @__PURE__ */ React17.createElement(
|
2319
2417
|
Comp,
|
2320
2418
|
{
|
@@ -3059,7 +3157,7 @@ var DataTable = ({
|
|
3059
3157
|
paginationPosition === "top" ? "hawa-flex-col-reverse" : "hawa-flex-col"
|
3060
3158
|
)
|
3061
3159
|
},
|
3062
|
-
/* @__PURE__ */ React23.createElement("div", { className: "hawa-rounded-md" }, /* @__PURE__ */ React23.createElement(Table, null, table.getAllColumns().length > 0 && /* @__PURE__ */ React23.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React23.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
3160
|
+
/* @__PURE__ */ React23.createElement("div", { className: "hawa-rounded-md" }, /* @__PURE__ */ React23.createElement(Table, null, !props.hideHeader && table.getAllColumns().length > 0 && /* @__PURE__ */ React23.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React23.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
3063
3161
|
var _a2;
|
3064
3162
|
let isSortable = (_a2 = header.column.columnDef.meta) == null ? void 0 : _a2.sortable;
|
3065
3163
|
return /* @__PURE__ */ React23.createElement(
|
@@ -3454,6 +3552,7 @@ var Radio = (0, import_react13.forwardRef)(
|
|
3454
3552
|
tabsContainerClassName,
|
3455
3553
|
forceHideHelperText = false,
|
3456
3554
|
onChange,
|
3555
|
+
containerClassNames,
|
3457
3556
|
...props
|
3458
3557
|
}, ref) => {
|
3459
3558
|
var _a, _b, _c;
|
@@ -3509,161 +3608,203 @@ var Radio = (0, import_react13.forwardRef)(
|
|
3509
3608
|
];
|
3510
3609
|
switch (design) {
|
3511
3610
|
case "tabs":
|
3512
|
-
return /* @__PURE__ */ import_react13.default.createElement(
|
3513
|
-
"
|
3611
|
+
return /* @__PURE__ */ import_react13.default.createElement(
|
3612
|
+
"div",
|
3514
3613
|
{
|
3515
|
-
ref: parentRef,
|
3516
3614
|
className: cn(
|
3517
|
-
|
3518
|
-
|
3519
|
-
orientationStyle[orientation],
|
3520
|
-
widthStyle[width],
|
3521
|
-
tabsContainerClassName
|
3615
|
+
"hawa-gap-2 hawa-flex hawa-flex-col",
|
3616
|
+
containerClassNames == null ? void 0 : containerClassNames.tabs
|
3522
3617
|
)
|
3523
3618
|
},
|
3524
|
-
|
3525
|
-
|
3526
|
-
|
3527
|
-
|
3528
|
-
|
3529
|
-
|
3530
|
-
|
3531
|
-
|
3532
|
-
|
3533
|
-
|
3619
|
+
props.label && /* @__PURE__ */ import_react13.default.createElement(Label2, { ...labelProps }, props.label),
|
3620
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
3621
|
+
"ul",
|
3622
|
+
{
|
3623
|
+
ref: parentRef,
|
3624
|
+
className: cn(
|
3625
|
+
props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
|
3626
|
+
"hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium hawa-h-[40px]",
|
3627
|
+
orientationStyle[orientation],
|
3628
|
+
widthStyle[width],
|
3629
|
+
tabsContainerClassName
|
3630
|
+
)
|
3631
|
+
},
|
3632
|
+
(_b = props.options) == null ? void 0 : _b.map((opt, o) => {
|
3633
|
+
return opt.tooltip ? /* @__PURE__ */ import_react13.default.createElement(
|
3634
|
+
PopoverRoot,
|
3534
3635
|
{
|
3535
|
-
|
3536
|
-
|
3537
|
-
|
3636
|
+
key: o,
|
3637
|
+
open: o === openTooltip,
|
3638
|
+
onOpenChange: (bool) => setOpenTooltip(bool ? o : null)
|
3538
3639
|
},
|
3539
3640
|
/* @__PURE__ */ import_react13.default.createElement(
|
3540
|
-
|
3641
|
+
PopoverTrigger,
|
3541
3642
|
{
|
3542
|
-
|
3543
|
-
|
3544
|
-
|
3545
|
-
|
3546
|
-
|
3643
|
+
onMouseEnter: () => setOpenTooltip(o),
|
3644
|
+
onMouseLeave: () => setOpenTooltip(null),
|
3645
|
+
asChild: true
|
3646
|
+
},
|
3647
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
3648
|
+
"li",
|
3649
|
+
{
|
3650
|
+
"aria-current": "page",
|
3651
|
+
onClick: () => {
|
3652
|
+
if (props.disabled || opt.disabled)
|
3653
|
+
return;
|
3654
|
+
handleChange(opt);
|
3655
|
+
},
|
3656
|
+
className: cn(
|
3657
|
+
...radio_option_tabs_styling,
|
3658
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
3659
|
+
)
|
3547
3660
|
},
|
3548
|
-
|
3549
|
-
|
3550
|
-
|
3551
|
-
|
3661
|
+
opt.icon && opt.icon,
|
3662
|
+
opt.label
|
3663
|
+
)
|
3664
|
+
),
|
3665
|
+
/* @__PURE__ */ import_react13.default.createElement(PopoverContent, { ...opt.tooltipContentProps }, opt.tooltip)
|
3666
|
+
) : /* @__PURE__ */ import_react13.default.createElement(
|
3667
|
+
"li",
|
3668
|
+
{
|
3669
|
+
key: o,
|
3670
|
+
"aria-current": "page",
|
3671
|
+
onClick: () => {
|
3672
|
+
if (props.disabled || opt.disabled)
|
3673
|
+
return;
|
3674
|
+
handleChange(opt);
|
3552
3675
|
},
|
3553
|
-
|
3554
|
-
|
3555
|
-
|
3676
|
+
className: cn(
|
3677
|
+
...radio_option_tabs_styling,
|
3678
|
+
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
3679
|
+
)
|
3680
|
+
},
|
3681
|
+
opt.icon && opt.icon,
|
3682
|
+
opt.label
|
3683
|
+
);
|
3684
|
+
})
|
3685
|
+
),
|
3686
|
+
!forceHideHelperText && /* @__PURE__ */ import_react13.default.createElement(HelperText, { helperText: props.helperText })
|
3687
|
+
);
|
3688
|
+
case "bordered":
|
3689
|
+
return /* @__PURE__ */ import_react13.default.createElement(
|
3690
|
+
"div",
|
3691
|
+
{
|
3692
|
+
className: cn(
|
3693
|
+
orientationStyle[orientation],
|
3694
|
+
"hawa-gap-4",
|
3695
|
+
containerClassNames == null ? void 0 : containerClassNames.bordered
|
3696
|
+
)
|
3697
|
+
},
|
3698
|
+
props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react13.default.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ import_react13.default.createElement(
|
3699
|
+
"div",
|
3700
|
+
{
|
3701
|
+
className: cn(
|
3702
|
+
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
3703
|
+
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
3556
3704
|
),
|
3557
|
-
|
3558
|
-
|
3559
|
-
|
3705
|
+
key: i + 1
|
3706
|
+
},
|
3707
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
3708
|
+
"input",
|
3560
3709
|
{
|
3561
|
-
|
3562
|
-
|
3563
|
-
|
3564
|
-
|
3565
|
-
|
3566
|
-
|
3567
|
-
|
3710
|
+
disabled: opt.disabled,
|
3711
|
+
id: opt.value.toString(),
|
3712
|
+
type: "radio",
|
3713
|
+
value: opt.value,
|
3714
|
+
name,
|
3715
|
+
onChange: () => handleChange(opt)
|
3716
|
+
}
|
3717
|
+
),
|
3718
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
3719
|
+
"label",
|
3720
|
+
{
|
3721
|
+
htmlFor: opt.value.toString(),
|
3568
3722
|
className: cn(
|
3569
|
-
|
3570
|
-
|
3723
|
+
"hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium hawa-text-black dark:hawa-text-white",
|
3724
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
3571
3725
|
)
|
3572
3726
|
},
|
3573
|
-
opt.icon && opt.icon,
|
3574
3727
|
opt.label
|
3575
|
-
)
|
3576
|
-
|
3577
|
-
)
|
3578
|
-
case "
|
3579
|
-
return /* @__PURE__ */ import_react13.default.createElement(
|
3580
|
-
"
|
3728
|
+
)
|
3729
|
+
)))
|
3730
|
+
);
|
3731
|
+
case "cards":
|
3732
|
+
return /* @__PURE__ */ import_react13.default.createElement(
|
3733
|
+
"ul",
|
3581
3734
|
{
|
3582
3735
|
className: cn(
|
3583
|
-
|
3584
|
-
|
3585
|
-
|
3586
|
-
|
3736
|
+
orientationStyle[orientation],
|
3737
|
+
"hawa-gap-4",
|
3738
|
+
containerClassNames == null ? void 0 : containerClassNames.cards
|
3739
|
+
)
|
3587
3740
|
},
|
3588
|
-
/* @__PURE__ */ import_react13.default.createElement(
|
3741
|
+
(_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react13.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react13.default.createElement(
|
3589
3742
|
"input",
|
3590
3743
|
{
|
3591
|
-
disabled: opt.disabled,
|
3592
|
-
id: opt.value.toString(),
|
3593
3744
|
type: "radio",
|
3594
|
-
|
3745
|
+
id: opt.value.toString(),
|
3595
3746
|
name,
|
3596
|
-
|
3747
|
+
value: opt.value.toString(),
|
3748
|
+
className: "hawa-peer hawa-hidden",
|
3749
|
+
required: true,
|
3750
|
+
disabled: opt.disabled
|
3597
3751
|
}
|
3598
|
-
),
|
3599
|
-
/* @__PURE__ */ import_react13.default.createElement(
|
3752
|
+
), /* @__PURE__ */ import_react13.default.createElement(
|
3600
3753
|
"label",
|
3601
3754
|
{
|
3602
3755
|
htmlFor: opt.value.toString(),
|
3603
3756
|
className: cn(
|
3604
|
-
"hawa-
|
3605
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-
|
3757
|
+
"hawa-inline-flex hawa-h-full hawa-w-full hawa-transition-all hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-foreground/10 hawa-bg-background hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-primary peer-checked:hawa-text-primary dark:hawa-border-foreground/10 dark:hawa-bg-foreground/5 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
|
3758
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-foreground/10 hover:hawa-text-gray-600 dark:hover:hawa-bg-foreground/20 dark:hover:hawa-text-gray-300"
|
3606
3759
|
)
|
3607
3760
|
},
|
3608
|
-
opt.label
|
3609
|
-
)
|
3610
|
-
)
|
3611
|
-
case "cards":
|
3612
|
-
return /* @__PURE__ */ import_react13.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react13.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react13.default.createElement(
|
3613
|
-
"input",
|
3614
|
-
{
|
3615
|
-
type: "radio",
|
3616
|
-
id: opt.value.toString(),
|
3617
|
-
name,
|
3618
|
-
value: opt.value.toString(),
|
3619
|
-
className: "hawa-peer hawa-hidden",
|
3620
|
-
required: true,
|
3621
|
-
disabled: opt.disabled
|
3622
|
-
}
|
3623
|
-
), /* @__PURE__ */ import_react13.default.createElement(
|
3624
|
-
"label",
|
3625
|
-
{
|
3626
|
-
htmlFor: opt.value.toString(),
|
3627
|
-
className: cn(
|
3628
|
-
"hawa-inline-flex hawa-h-full hawa-w-full hawa-transition-all hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-foreground/10 hawa-bg-background hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-primary peer-checked:hawa-text-primary dark:hawa-border-foreground/10 dark:hawa-bg-foreground/5 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
|
3629
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-foreground/10 hover:hawa-text-gray-600 dark:hover:hawa-bg-foreground/20 dark:hover:hawa-text-gray-300"
|
3630
|
-
)
|
3631
|
-
},
|
3632
|
-
/* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
3633
|
-
))));
|
3761
|
+
/* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-block hawa-h-full hawa-w-full" }, /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-w-full hawa-text-lg hawa-font-semibold" }, opt.label), /* @__PURE__ */ import_react13.default.createElement("div", { className: "hawa-w-full" }, opt.sublabel))
|
3762
|
+
)))
|
3763
|
+
);
|
3634
3764
|
default:
|
3635
|
-
return /* @__PURE__ */ import_react13.default.createElement(
|
3765
|
+
return /* @__PURE__ */ import_react13.default.createElement(
|
3636
3766
|
"div",
|
3637
3767
|
{
|
3638
3768
|
className: cn(
|
3639
|
-
"
|
3640
|
-
|
3641
|
-
)
|
3642
|
-
key: i + 1
|
3769
|
+
"hawa-flex hawa-flex-col hawa-gap-2",
|
3770
|
+
containerClassNames == null ? void 0 : containerClassNames.default
|
3771
|
+
)
|
3643
3772
|
},
|
3644
|
-
/* @__PURE__ */ import_react13.default.createElement(
|
3645
|
-
|
3646
|
-
|
3647
|
-
disabled: opt.disabled,
|
3648
|
-
id: opt.value.toString(),
|
3649
|
-
type: "radio",
|
3650
|
-
value: opt.value,
|
3651
|
-
name,
|
3652
|
-
onChange: () => handleChange(opt)
|
3653
|
-
}
|
3654
|
-
),
|
3655
|
-
/* @__PURE__ */ import_react13.default.createElement(
|
3656
|
-
"label",
|
3773
|
+
props.label && /* @__PURE__ */ import_react13.default.createElement(Label2, { ...labelProps }, props.label),
|
3774
|
+
/* @__PURE__ */ import_react13.default.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-2") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ import_react13.default.createElement(
|
3775
|
+
"div",
|
3657
3776
|
{
|
3658
|
-
htmlFor: opt.value.toString(),
|
3659
3777
|
className: cn(
|
3660
|
-
"
|
3661
|
-
|
3662
|
-
)
|
3778
|
+
"radio-item radio-item-default hawa-flex hawa-items-center hawa-transition-all",
|
3779
|
+
props.direction === "rtl" ? "margin-left right-3px" : "margin-right left-3px"
|
3780
|
+
),
|
3781
|
+
key: i + 1
|
3663
3782
|
},
|
3664
|
-
|
3665
|
-
|
3666
|
-
|
3783
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
3784
|
+
"input",
|
3785
|
+
{
|
3786
|
+
disabled: opt.disabled,
|
3787
|
+
id: opt.value.toString(),
|
3788
|
+
type: "radio",
|
3789
|
+
value: opt.value,
|
3790
|
+
name,
|
3791
|
+
onChange: () => handleChange(opt)
|
3792
|
+
}
|
3793
|
+
),
|
3794
|
+
/* @__PURE__ */ import_react13.default.createElement(
|
3795
|
+
"label",
|
3796
|
+
{
|
3797
|
+
htmlFor: opt.value.toString(),
|
3798
|
+
className: cn(
|
3799
|
+
"hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
3800
|
+
opt.disabled ? "hawa-text-gray-400" : "hawa-cursor-pointer hawa-text-gray-900"
|
3801
|
+
)
|
3802
|
+
},
|
3803
|
+
opt.label
|
3804
|
+
)
|
3805
|
+
))),
|
3806
|
+
/* @__PURE__ */ import_react13.default.createElement(HelperText, { helperText: props.helperText })
|
3807
|
+
);
|
3667
3808
|
}
|
3668
3809
|
}
|
3669
3810
|
);
|
@@ -4320,7 +4461,7 @@ var SortButton = (props) => {
|
|
4320
4461
|
};
|
4321
4462
|
|
4322
4463
|
// elements/tabs/Tabs.tsx
|
4323
|
-
var
|
4464
|
+
var React41 = __toESM(require("react"));
|
4324
4465
|
|
4325
4466
|
// hooks/useIsomorphicEffect.ts
|
4326
4467
|
var import_react16 = require("react");
|
@@ -4394,37 +4535,6 @@ var import_react29 = require("react");
|
|
4394
4535
|
|
4395
4536
|
// hooks/useMeasureDirty.ts
|
4396
4537
|
var import_react30 = require("react");
|
4397
|
-
var useMeasureDirty = (ref) => {
|
4398
|
-
const frame = (0, import_react30.useRef)(0);
|
4399
|
-
const [rect, set] = (0, import_react30.useState)({
|
4400
|
-
width: 0,
|
4401
|
-
height: 0,
|
4402
|
-
top: 0,
|
4403
|
-
left: 0,
|
4404
|
-
bottom: 0,
|
4405
|
-
right: 0
|
4406
|
-
});
|
4407
|
-
const [observer] = (0, import_react30.useState)(
|
4408
|
-
() => new ResizeObserver((entries) => {
|
4409
|
-
const entry = entries[0];
|
4410
|
-
if (entry) {
|
4411
|
-
cancelAnimationFrame(frame.current);
|
4412
|
-
frame.current = requestAnimationFrame(() => {
|
4413
|
-
if (ref.current) {
|
4414
|
-
set(entry.contentRect);
|
4415
|
-
}
|
4416
|
-
});
|
4417
|
-
}
|
4418
|
-
})
|
4419
|
-
);
|
4420
|
-
(0, import_react30.useEffect)(() => {
|
4421
|
-
observer.disconnect();
|
4422
|
-
if (ref.current) {
|
4423
|
-
observer.observe(ref.current);
|
4424
|
-
}
|
4425
|
-
}, [ref]);
|
4426
|
-
return rect;
|
4427
|
-
};
|
4428
4538
|
|
4429
4539
|
// hooks/useClickOutside.ts
|
4430
4540
|
var import_react31 = require("react");
|
@@ -4432,75 +4542,52 @@ var import_react31 = require("react");
|
|
4432
4542
|
// hooks/useShortcuts.ts
|
4433
4543
|
var import_react32 = require("react");
|
4434
4544
|
|
4545
|
+
// hooks/useWindowEvent.ts
|
4546
|
+
var import_react33 = require("react");
|
4547
|
+
function useWindowEvent(type, listener, options) {
|
4548
|
+
(0, import_react33.useEffect)(() => {
|
4549
|
+
window.addEventListener(type, listener, options);
|
4550
|
+
return () => window.removeEventListener(type, listener, options);
|
4551
|
+
}, [type, listener]);
|
4552
|
+
}
|
4553
|
+
|
4554
|
+
// hooks/useViewportSize.ts
|
4555
|
+
var import_react34 = require("react");
|
4556
|
+
var eventListerOptions = {
|
4557
|
+
passive: true
|
4558
|
+
};
|
4559
|
+
function useViewportSize() {
|
4560
|
+
const [windowSize, setWindowSize] = (0, import_react34.useState)({
|
4561
|
+
width: 0,
|
4562
|
+
height: 0
|
4563
|
+
});
|
4564
|
+
const setSize = (0, import_react34.useCallback)(() => {
|
4565
|
+
setWindowSize({
|
4566
|
+
width: window.innerWidth || 0,
|
4567
|
+
height: window.innerHeight || 0
|
4568
|
+
});
|
4569
|
+
}, []);
|
4570
|
+
useWindowEvent("resize", setSize, eventListerOptions);
|
4571
|
+
useWindowEvent("orientationchange", setSize, eventListerOptions);
|
4572
|
+
(0, import_react34.useEffect)(setSize, []);
|
4573
|
+
return windowSize;
|
4574
|
+
}
|
4575
|
+
|
4435
4576
|
// elements/tabs/Tabs.tsx
|
4577
|
+
var Popover2 = __toESM(require("@radix-ui/react-popover"));
|
4436
4578
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
4437
4579
|
var import_tailwind_variants = require("tailwind-variants");
|
4438
4580
|
|
4439
|
-
// elements/floatBox/FloatBox.tsx
|
4440
|
-
var React40 = __toESM(require("react"));
|
4441
|
-
var FloatBox = ({
|
4442
|
-
className,
|
4443
|
-
open,
|
4444
|
-
side = "bottom",
|
4445
|
-
sideOffset = 40,
|
4446
|
-
align = "center",
|
4447
|
-
withArrow = false,
|
4448
|
-
...props
|
4449
|
-
}) => {
|
4450
|
-
let stylesMap = {
|
4451
|
-
bottom: {
|
4452
|
-
start: { top: sideOffset, insetInlineStart: 0 },
|
4453
|
-
center: { top: sideOffset },
|
4454
|
-
end: { top: sideOffset, insetInlineEnd: 0 }
|
4455
|
-
},
|
4456
|
-
top: {
|
4457
|
-
start: { bottom: sideOffset, insetInlineStart: 0 },
|
4458
|
-
center: { bottom: sideOffset },
|
4459
|
-
end: { bottom: sideOffset, insetInlineEnd: 0 }
|
4460
|
-
},
|
4461
|
-
right: {
|
4462
|
-
start: { left: sideOffset, top: -5 },
|
4463
|
-
center: { left: sideOffset },
|
4464
|
-
end: { left: sideOffset, bottom: 0 }
|
4465
|
-
},
|
4466
|
-
left: {
|
4467
|
-
start: { right: sideOffset, top: 0 },
|
4468
|
-
center: { right: sideOffset },
|
4469
|
-
end: { right: sideOffset, bottom: 0 }
|
4470
|
-
}
|
4471
|
-
};
|
4472
|
-
const arrowDirection = {
|
4473
|
-
top: "hawa-arrow-default-bottom",
|
4474
|
-
bottom: "hawa-arrow-default-top",
|
4475
|
-
right: "hawa-arrow-default-left",
|
4476
|
-
left: "hawa-arrow-default-right"
|
4477
|
-
};
|
4478
|
-
return /* @__PURE__ */ React40.createElement(
|
4479
|
-
"div",
|
4480
|
-
{
|
4481
|
-
className: cn(
|
4482
|
-
"data-[floatbox-state=closed]:hawa-invisible data-[floatbox-state=open]:hawa-visible hawa-absolute dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[floatbox-state=open]:hawa-animate-in data-[floatbox-state=closed]:hawa-animate-out data-[floatbox-state=closed]:hawa-fade-out-0 data-[floatbox-state=open]:hawa-fade-in-0 data-[floatbox-state=closed]:hawa-zoom-out-95 data-[floatbox-state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2 hawa-bg-popover",
|
4483
|
-
className
|
4484
|
-
),
|
4485
|
-
style: { ...stylesMap[side][align] },
|
4486
|
-
"data-side": side,
|
4487
|
-
"data-floatbox-state": open ? "open" : "closed"
|
4488
|
-
},
|
4489
|
-
withArrow && /* @__PURE__ */ React40.createElement("div", { className: cn(arrowDirection[side]) }),
|
4490
|
-
/* @__PURE__ */ React40.createElement("span", null, props.children)
|
4491
|
-
);
|
4492
|
-
};
|
4493
|
-
|
4494
4581
|
// elements/scrollArea/ScrollArea.tsx
|
4495
|
-
var
|
4582
|
+
var React40 = __toESM(require("react"));
|
4496
4583
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
4497
|
-
var ScrollArea =
|
4498
|
-
const scrollAreaRef =
|
4499
|
-
const isDragging =
|
4500
|
-
const startPos =
|
4501
|
-
const scrollPos =
|
4502
|
-
const [showLeftFade, setShowLeftFade] =
|
4503
|
-
const [showRightFade, setShowRightFade] =
|
4584
|
+
var ScrollArea = React40.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => {
|
4585
|
+
const scrollAreaRef = React40.useRef(null);
|
4586
|
+
const isDragging = React40.useRef(false);
|
4587
|
+
const startPos = React40.useRef({ x: 0, y: 0 });
|
4588
|
+
const scrollPos = React40.useRef({ top: 0, left: 0 });
|
4589
|
+
const [showLeftFade, setShowLeftFade] = React40.useState(false);
|
4590
|
+
const [showRightFade, setShowRightFade] = React40.useState(false);
|
4504
4591
|
const checkOverflow = () => {
|
4505
4592
|
if (scrollAreaRef.current) {
|
4506
4593
|
const { scrollLeft, scrollWidth, clientWidth } = scrollAreaRef.current;
|
@@ -4537,7 +4624,7 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
4537
4624
|
document.removeEventListener("mousemove", onMouseMove);
|
4538
4625
|
document.removeEventListener("mouseup", onMouseUp);
|
4539
4626
|
};
|
4540
|
-
|
4627
|
+
React40.useEffect(() => {
|
4541
4628
|
checkOverflow();
|
4542
4629
|
if (scrollAreaRef.current) {
|
4543
4630
|
scrollAreaRef.current.addEventListener("scroll", checkOverflow);
|
@@ -4550,14 +4637,14 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
4550
4637
|
window.removeEventListener("resize", checkOverflow);
|
4551
4638
|
};
|
4552
4639
|
}, []);
|
4553
|
-
return /* @__PURE__ */
|
4640
|
+
return /* @__PURE__ */ React40.createElement(
|
4554
4641
|
ScrollAreaPrimitive.Root,
|
4555
4642
|
{
|
4556
4643
|
ref,
|
4557
4644
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
4558
4645
|
...props
|
4559
4646
|
},
|
4560
|
-
/* @__PURE__ */
|
4647
|
+
/* @__PURE__ */ React40.createElement(
|
4561
4648
|
"div",
|
4562
4649
|
{
|
4563
4650
|
className: cn(
|
@@ -4566,7 +4653,7 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
4566
4653
|
)
|
4567
4654
|
}
|
4568
4655
|
),
|
4569
|
-
/* @__PURE__ */
|
4656
|
+
/* @__PURE__ */ React40.createElement(
|
4570
4657
|
"div",
|
4571
4658
|
{
|
4572
4659
|
className: cn(
|
@@ -4575,7 +4662,7 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
4575
4662
|
)
|
4576
4663
|
}
|
4577
4664
|
),
|
4578
|
-
/* @__PURE__ */
|
4665
|
+
/* @__PURE__ */ React40.createElement(
|
4579
4666
|
ScrollAreaPrimitive.Viewport,
|
4580
4667
|
{
|
4581
4668
|
ref: scrollAreaRef,
|
@@ -4584,12 +4671,12 @@ var ScrollArea = React41.forwardRef(({ className, children, orientation = "verti
|
|
4584
4671
|
},
|
4585
4672
|
children
|
4586
4673
|
),
|
4587
|
-
/* @__PURE__ */
|
4588
|
-
/* @__PURE__ */
|
4674
|
+
/* @__PURE__ */ React40.createElement(ScrollBar, { orientation }),
|
4675
|
+
/* @__PURE__ */ React40.createElement(ScrollAreaPrimitive.Corner, null)
|
4589
4676
|
);
|
4590
4677
|
});
|
4591
4678
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
4592
|
-
var ScrollBar =
|
4679
|
+
var ScrollBar = React40.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React40.createElement(
|
4593
4680
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
4594
4681
|
{
|
4595
4682
|
ref,
|
@@ -4602,7 +4689,7 @@ var ScrollBar = React41.forwardRef(({ className, orientation = "vertical", ...pr
|
|
4602
4689
|
),
|
4603
4690
|
...props
|
4604
4691
|
},
|
4605
|
-
/* @__PURE__ */
|
4692
|
+
/* @__PURE__ */ React40.createElement(
|
4606
4693
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
4607
4694
|
{
|
4608
4695
|
className: cn(
|
@@ -4673,39 +4760,27 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
4673
4760
|
],
|
4674
4761
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
4675
4762
|
});
|
4676
|
-
var TabsContext =
|
4677
|
-
var Tabs =
|
4678
|
-
|
4679
|
-
|
4680
|
-
|
4681
|
-
|
4682
|
-
|
4683
|
-
|
4684
|
-
|
4685
|
-
|
4686
|
-
|
4687
|
-
|
4688
|
-
|
4689
|
-
)
|
4690
|
-
|
4691
|
-
|
4692
|
-
|
4693
|
-
|
4694
|
-
);
|
4695
|
-
|
4696
|
-
|
4697
|
-
const resize = () => {
|
4698
|
-
setSize(window.innerWidth);
|
4699
|
-
};
|
4700
|
-
resize();
|
4701
|
-
window.addEventListener("resize", resize);
|
4702
|
-
return () => {
|
4703
|
-
window.removeEventListener("resize", resize);
|
4704
|
-
};
|
4705
|
-
}
|
4706
|
-
}, []);
|
4707
|
-
if (props.scrollable && size < 768 && orientation === "horizontal") {
|
4708
|
-
return /* @__PURE__ */ React42.createElement(ScrollArea, { orientation: "horizontal", className: classNames == null ? void 0 : classNames.scrollArea }, /* @__PURE__ */ React42.createElement(
|
4763
|
+
var TabsContext = React41.createContext({ orientation: "horizontal", variant: "default", scrollable: false });
|
4764
|
+
var Tabs = React41.forwardRef(
|
4765
|
+
({ className, orientation, scrollable, variant = "default", ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
4766
|
+
TabsPrimitive.Root,
|
4767
|
+
{
|
4768
|
+
ref,
|
4769
|
+
className: cn(
|
4770
|
+
"hawa-flex hawa-gap-2",
|
4771
|
+
orientation === "vertical" ? "hawa-flex-row" : "hawa-flex-col",
|
4772
|
+
className
|
4773
|
+
),
|
4774
|
+
...props
|
4775
|
+
},
|
4776
|
+
/* @__PURE__ */ React41.createElement(TabsContext.Provider, { value: { orientation, variant, scrollable } }, props.children)
|
4777
|
+
)
|
4778
|
+
);
|
4779
|
+
var TabsList = React41.forwardRef(({ className, classNames, ...props }, ref) => {
|
4780
|
+
const { orientation, variant, scrollable } = React41.useContext(TabsContext);
|
4781
|
+
const { width } = useViewportSize();
|
4782
|
+
if (scrollable && width < 768 && orientation === "horizontal") {
|
4783
|
+
return /* @__PURE__ */ React41.createElement(ScrollArea, { orientation: "horizontal", className: classNames == null ? void 0 : classNames.scrollArea }, /* @__PURE__ */ React41.createElement(
|
4709
4784
|
TabsPrimitive.List,
|
4710
4785
|
{
|
4711
4786
|
ref,
|
@@ -4718,7 +4793,7 @@ var TabsList = React42.forwardRef(({ className, classNames, ...props }, ref) =>
|
|
4718
4793
|
}
|
4719
4794
|
));
|
4720
4795
|
} else {
|
4721
|
-
return /* @__PURE__ */
|
4796
|
+
return /* @__PURE__ */ React41.createElement(
|
4722
4797
|
TabsPrimitive.List,
|
4723
4798
|
{
|
4724
4799
|
ref,
|
@@ -4733,37 +4808,52 @@ var TabsList = React42.forwardRef(({ className, classNames, ...props }, ref) =>
|
|
4733
4808
|
);
|
4734
4809
|
}
|
4735
4810
|
});
|
4736
|
-
var TabsTrigger =
|
4737
|
-
|
4738
|
-
|
4739
|
-
|
4740
|
-
|
4741
|
-
|
4742
|
-
|
4743
|
-
|
4744
|
-
|
4745
|
-
|
4746
|
-
|
4747
|
-
|
4748
|
-
|
4749
|
-
|
4750
|
-
|
4751
|
-
|
4752
|
-
|
4753
|
-
|
4754
|
-
|
4755
|
-
|
4756
|
-
|
4757
|
-
|
4758
|
-
|
4759
|
-
|
4760
|
-
|
4761
|
-
|
4762
|
-
|
4763
|
-
|
4764
|
-
|
4765
|
-
|
4766
|
-
|
4811
|
+
var TabsTrigger = React41.forwardRef(
|
4812
|
+
({ className, chipProps, withPopover = false, onPopoverClick, ...props }, ref) => {
|
4813
|
+
const { orientation, variant } = React41.useContext(TabsContext);
|
4814
|
+
if (withPopover) {
|
4815
|
+
return /* @__PURE__ */ React41.createElement(Popover2.Root, { open: props.showPopover }, /* @__PURE__ */ React41.createElement(Popover2.Anchor, { asChild: true }, /* @__PURE__ */ React41.createElement(
|
4816
|
+
TabsPrimitive.Trigger,
|
4817
|
+
{
|
4818
|
+
className: cn(
|
4819
|
+
tabsTriggerVariant({ variant, orientation }),
|
4820
|
+
"hawa-relative",
|
4821
|
+
className
|
4822
|
+
),
|
4823
|
+
...props
|
4824
|
+
},
|
4825
|
+
props.children,
|
4826
|
+
chipProps && /* @__PURE__ */ React41.createElement(Chip, { ...chipProps })
|
4827
|
+
)), /* @__PURE__ */ React41.createElement(
|
4828
|
+
Popover2.Content,
|
4829
|
+
{
|
4830
|
+
onClick: onPopoverClick,
|
4831
|
+
asChild: true,
|
4832
|
+
className: cn(
|
4833
|
+
"dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
4834
|
+
"hawa-arrow-default-top hawa-mt-2"
|
4835
|
+
)
|
4836
|
+
},
|
4837
|
+
/* @__PURE__ */ React41.createElement("div", { className: "hawa-p-2" }, " ", props.popoverContent)
|
4838
|
+
));
|
4839
|
+
} else {
|
4840
|
+
return /* @__PURE__ */ React41.createElement(
|
4841
|
+
TabsPrimitive.Trigger,
|
4842
|
+
{
|
4843
|
+
className: cn(
|
4844
|
+
tabsTriggerVariant({ variant, orientation }),
|
4845
|
+
"hawa-relative",
|
4846
|
+
className
|
4847
|
+
),
|
4848
|
+
...props
|
4849
|
+
},
|
4850
|
+
props.children,
|
4851
|
+
chipProps && /* @__PURE__ */ React41.createElement(Chip, { ...chipProps })
|
4852
|
+
);
|
4853
|
+
}
|
4854
|
+
}
|
4855
|
+
);
|
4856
|
+
var TabsContent = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
4767
4857
|
TabsPrimitive.Content,
|
4768
4858
|
{
|
4769
4859
|
ref,
|
@@ -4780,7 +4870,7 @@ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
4780
4870
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
4781
4871
|
|
4782
4872
|
// elements/select/Select.tsx
|
4783
|
-
var
|
4873
|
+
var import_react35 = __toESM(require("react"));
|
4784
4874
|
var import_react_select = __toESM(require("react-select"));
|
4785
4875
|
var import_creatable = __toESM(require("react-select/creatable"));
|
4786
4876
|
var import_clsx3 = __toESM(require("clsx"));
|
@@ -4791,10 +4881,10 @@ var Select = ({
|
|
4791
4881
|
}) => {
|
4792
4882
|
const NoOption = () => {
|
4793
4883
|
var _a, _b;
|
4794
|
-
return /* @__PURE__ */
|
4884
|
+
return /* @__PURE__ */ import_react35.default.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
|
4795
4885
|
};
|
4796
4886
|
const Control = ({ children, innerProps, innerRef }) => {
|
4797
|
-
return /* @__PURE__ */
|
4887
|
+
return /* @__PURE__ */ import_react35.default.createElement(
|
4798
4888
|
"div",
|
4799
4889
|
{
|
4800
4890
|
ref: innerRef,
|
@@ -4807,7 +4897,7 @@ var Select = ({
|
|
4807
4897
|
);
|
4808
4898
|
};
|
4809
4899
|
const Option = ({ children, innerProps, innerRef }) => {
|
4810
|
-
return /* @__PURE__ */
|
4900
|
+
return /* @__PURE__ */ import_react35.default.createElement(
|
4811
4901
|
"div",
|
4812
4902
|
{
|
4813
4903
|
ref: innerRef,
|
@@ -4828,7 +4918,7 @@ var Select = ({
|
|
4828
4918
|
...menuProps
|
4829
4919
|
}) => {
|
4830
4920
|
const menuOpen = menuProps.selectProps.menuIsOpen;
|
4831
|
-
return /* @__PURE__ */
|
4921
|
+
return /* @__PURE__ */ import_react35.default.createElement(
|
4832
4922
|
"div",
|
4833
4923
|
{
|
4834
4924
|
className: cn(
|
@@ -4846,7 +4936,7 @@ var Select = ({
|
|
4846
4936
|
let selectContainerStyles = "hawa-rounded hawa-block hawa-w-full hawa-border hawa-transition-all hawa-bg-background hawa-p-0 hawa-px-1 hawa-text-sm";
|
4847
4937
|
let selectPlaceholderStyles = "hawa-text-muted-foreground hawa-cursor-pointer hawa-px-1";
|
4848
4938
|
let selectIndicatorContainerStyles = "hawa-cursor-pointer hawa-text-muted-foreground hawa-absolute hawa-end-0 hawa-top-[50%] hawa-bottom-[50%] ";
|
4849
|
-
return /* @__PURE__ */
|
4939
|
+
return /* @__PURE__ */ import_react35.default.createElement(
|
4850
4940
|
"div",
|
4851
4941
|
{
|
4852
4942
|
className: cn(
|
@@ -4854,10 +4944,10 @@ var Select = ({
|
|
4854
4944
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
4855
4945
|
)
|
4856
4946
|
},
|
4857
|
-
props.label && /* @__PURE__ */
|
4858
|
-
props.isLoading ? /* @__PURE__ */
|
4947
|
+
props.label && /* @__PURE__ */ import_react35.default.createElement(Label2, { ...labelProps }, props.label),
|
4948
|
+
props.isLoading ? /* @__PURE__ */ import_react35.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
|
4859
4949
|
// TODO: enable keyboard to go to the next item in the list
|
4860
|
-
/* @__PURE__ */
|
4950
|
+
/* @__PURE__ */ import_react35.default.createElement(
|
4861
4951
|
import_react_select.default,
|
4862
4952
|
{
|
4863
4953
|
noOptionsMessage: NoOption,
|
@@ -4891,7 +4981,7 @@ var Select = ({
|
|
4891
4981
|
// {...e}
|
4892
4982
|
// />
|
4893
4983
|
// ),
|
4894
|
-
ValueContainer: (e) => /* @__PURE__ */
|
4984
|
+
ValueContainer: (e) => /* @__PURE__ */ import_react35.default.createElement(
|
4895
4985
|
"div",
|
4896
4986
|
{
|
4897
4987
|
className: cn(
|
@@ -4901,7 +4991,7 @@ var Select = ({
|
|
4901
4991
|
...e
|
4902
4992
|
}
|
4903
4993
|
),
|
4904
|
-
MultiValueContainer: (e) => /* @__PURE__ */
|
4994
|
+
MultiValueContainer: (e) => /* @__PURE__ */ import_react35.default.createElement(
|
4905
4995
|
"div",
|
4906
4996
|
{
|
4907
4997
|
className: "hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-flex hawa-flex-row",
|
@@ -4920,7 +5010,7 @@ var Select = ({
|
|
4920
5010
|
isSearchable: props.isSearchable
|
4921
5011
|
}
|
4922
5012
|
)
|
4923
|
-
) : /* @__PURE__ */
|
5013
|
+
) : /* @__PURE__ */ import_react35.default.createElement(
|
4924
5014
|
import_creatable.default,
|
4925
5015
|
{
|
4926
5016
|
formatCreateLabel: (inputValue) => {
|
@@ -4950,20 +5040,20 @@ var Select = ({
|
|
4950
5040
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
4951
5041
|
}
|
4952
5042
|
),
|
4953
|
-
!props.hideHelperText && /* @__PURE__ */
|
5043
|
+
!props.hideHelperText && /* @__PURE__ */ import_react35.default.createElement(HelperText, { helperText: props.helperText })
|
4954
5044
|
);
|
4955
5045
|
};
|
4956
5046
|
|
4957
5047
|
// elements/switch/Switch.tsx
|
4958
|
-
var
|
5048
|
+
var React43 = __toESM(require("react"));
|
4959
5049
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
4960
|
-
var Switch =
|
5050
|
+
var Switch = React43.forwardRef(
|
4961
5051
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
4962
|
-
const [parentDirection, setParentDirection] =
|
5052
|
+
const [parentDirection, setParentDirection] = React43.useState(
|
4963
5053
|
null
|
4964
5054
|
);
|
4965
|
-
const parentRef =
|
4966
|
-
|
5055
|
+
const parentRef = React43.useRef(null);
|
5056
|
+
React43.useEffect(() => {
|
4967
5057
|
var _a;
|
4968
5058
|
const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
|
4969
5059
|
if (parentNode) {
|
@@ -4991,13 +5081,13 @@ var Switch = React44.forwardRef(
|
|
4991
5081
|
full: "hawa-rounded-full",
|
4992
5082
|
inherit: "hawa-rounded-inner"
|
4993
5083
|
};
|
4994
|
-
return /* @__PURE__ */
|
5084
|
+
return /* @__PURE__ */ React43.createElement(
|
4995
5085
|
"div",
|
4996
5086
|
{
|
4997
5087
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
4998
5088
|
ref: parentRef
|
4999
5089
|
},
|
5000
|
-
/* @__PURE__ */
|
5090
|
+
/* @__PURE__ */ React43.createElement(
|
5001
5091
|
SwitchPrimitives.Root,
|
5002
5092
|
{
|
5003
5093
|
className: cn(
|
@@ -5011,7 +5101,7 @@ var Switch = React44.forwardRef(
|
|
5011
5101
|
...props,
|
5012
5102
|
ref
|
5013
5103
|
},
|
5014
|
-
/* @__PURE__ */
|
5104
|
+
/* @__PURE__ */ React43.createElement(
|
5015
5105
|
SwitchPrimitives.Thumb,
|
5016
5106
|
{
|
5017
5107
|
className: cn(
|
@@ -5025,14 +5115,14 @@ var Switch = React44.forwardRef(
|
|
5025
5115
|
}
|
5026
5116
|
)
|
5027
5117
|
),
|
5028
|
-
label && /* @__PURE__ */
|
5118
|
+
label && /* @__PURE__ */ React43.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
|
5029
5119
|
);
|
5030
5120
|
}
|
5031
5121
|
);
|
5032
5122
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
5033
5123
|
|
5034
5124
|
// elements/checkbox/Checkbox.tsx
|
5035
|
-
var
|
5125
|
+
var React44 = __toESM(require("react"));
|
5036
5126
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
5037
5127
|
var Checkbox = ({
|
5038
5128
|
id,
|
@@ -5052,7 +5142,7 @@ var Checkbox = ({
|
|
5052
5142
|
lg: 0.9,
|
5053
5143
|
xl: 1
|
5054
5144
|
};
|
5055
|
-
return /* @__PURE__ */
|
5145
|
+
return /* @__PURE__ */ React44.createElement(
|
5056
5146
|
"div",
|
5057
5147
|
{
|
5058
5148
|
className: cn(
|
@@ -5060,7 +5150,7 @@ var Checkbox = ({
|
|
5060
5150
|
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
5061
5151
|
)
|
5062
5152
|
},
|
5063
|
-
/* @__PURE__ */
|
5153
|
+
/* @__PURE__ */ React44.createElement(
|
5064
5154
|
CheckboxElement,
|
5065
5155
|
{
|
5066
5156
|
...props,
|
@@ -5070,7 +5160,7 @@ var Checkbox = ({
|
|
5070
5160
|
id
|
5071
5161
|
}
|
5072
5162
|
),
|
5073
|
-
(label || helperText) && /* @__PURE__ */
|
5163
|
+
(label || helperText) && /* @__PURE__ */ React44.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React44.createElement(
|
5074
5164
|
"label",
|
5075
5165
|
{
|
5076
5166
|
htmlFor: id,
|
@@ -5084,7 +5174,7 @@ var Checkbox = ({
|
|
5084
5174
|
}
|
5085
5175
|
},
|
5086
5176
|
label
|
5087
|
-
), sublabel && /* @__PURE__ */
|
5177
|
+
), sublabel && /* @__PURE__ */ React44.createElement(
|
5088
5178
|
"label",
|
5089
5179
|
{
|
5090
5180
|
htmlFor: id,
|
@@ -5094,7 +5184,7 @@ var Checkbox = ({
|
|
5094
5184
|
)
|
5095
5185
|
},
|
5096
5186
|
sublabel
|
5097
|
-
), helperText && !disabled && /* @__PURE__ */
|
5187
|
+
), helperText && !disabled && /* @__PURE__ */ React44.createElement(
|
5098
5188
|
"label",
|
5099
5189
|
{
|
5100
5190
|
htmlFor: id,
|
@@ -5107,7 +5197,7 @@ var Checkbox = ({
|
|
5107
5197
|
))
|
5108
5198
|
);
|
5109
5199
|
};
|
5110
|
-
var CheckboxElement =
|
5200
|
+
var CheckboxElement = React44.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
5111
5201
|
let checkboxRadius = {
|
5112
5202
|
none: "hawa-rounded-none",
|
5113
5203
|
inherit: "hawa-rounded-sm",
|
@@ -5129,7 +5219,7 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
5129
5219
|
lg: "1em",
|
5130
5220
|
xl: "1.25em"
|
5131
5221
|
};
|
5132
|
-
return /* @__PURE__ */
|
5222
|
+
return /* @__PURE__ */ React44.createElement(
|
5133
5223
|
CheckboxPrimitive.Root,
|
5134
5224
|
{
|
5135
5225
|
ref,
|
@@ -5141,14 +5231,14 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
5141
5231
|
),
|
5142
5232
|
...props
|
5143
5233
|
},
|
5144
|
-
/* @__PURE__ */
|
5234
|
+
/* @__PURE__ */ React44.createElement(
|
5145
5235
|
CheckboxPrimitive.Indicator,
|
5146
5236
|
{
|
5147
5237
|
className: cn(
|
5148
5238
|
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
5149
5239
|
)
|
5150
5240
|
},
|
5151
|
-
/* @__PURE__ */
|
5241
|
+
/* @__PURE__ */ React44.createElement(
|
5152
5242
|
"svg",
|
5153
5243
|
{
|
5154
5244
|
"aria-label": "Check Mark",
|
@@ -5159,7 +5249,7 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
5159
5249
|
height: checkboxIndicatorSizes[size],
|
5160
5250
|
width: checkboxIndicatorSizes[size]
|
5161
5251
|
},
|
5162
|
-
/* @__PURE__ */
|
5252
|
+
/* @__PURE__ */ React44.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" })
|
5163
5253
|
),
|
5164
5254
|
" "
|
5165
5255
|
)
|
@@ -5168,9 +5258,9 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
5168
5258
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
5169
5259
|
|
5170
5260
|
// elements/progress/Progress.tsx
|
5171
|
-
var
|
5261
|
+
var React45 = __toESM(require("react"));
|
5172
5262
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
5173
|
-
var Progress =
|
5263
|
+
var Progress = React45.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React45.createElement(Label2, { ...props.labelProps }, props.label), /* @__PURE__ */ React45.createElement(
|
5174
5264
|
ProgressPrimitive.Root,
|
5175
5265
|
{
|
5176
5266
|
ref,
|
@@ -5180,7 +5270,7 @@ var Progress = React46.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
5180
5270
|
),
|
5181
5271
|
...props
|
5182
5272
|
},
|
5183
|
-
/* @__PURE__ */
|
5273
|
+
/* @__PURE__ */ React45.createElement(
|
5184
5274
|
ProgressPrimitive.Indicator,
|
5185
5275
|
{
|
5186
5276
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
@@ -5191,7 +5281,7 @@ var Progress = React46.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
5191
5281
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
5192
5282
|
|
5193
5283
|
// elements/breadcrumb/Breadcrumb.tsx
|
5194
|
-
var
|
5284
|
+
var import_react36 = __toESM(require("react"));
|
5195
5285
|
var Breadcrumb = ({
|
5196
5286
|
breadcrumbLinks,
|
5197
5287
|
separator = ">",
|
@@ -5202,7 +5292,7 @@ var Breadcrumb = ({
|
|
5202
5292
|
small: "hawa-text-sm",
|
5203
5293
|
xs: "hawa-text-xs"
|
5204
5294
|
};
|
5205
|
-
return /* @__PURE__ */
|
5295
|
+
return /* @__PURE__ */ import_react36.default.createElement(
|
5206
5296
|
"div",
|
5207
5297
|
{
|
5208
5298
|
className: cn(
|
@@ -5210,13 +5300,13 @@ var Breadcrumb = ({
|
|
5210
5300
|
textStyles[size]
|
5211
5301
|
)
|
5212
5302
|
},
|
5213
|
-
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */
|
5303
|
+
breadcrumbLinks.map((singleBreadcrumbLink, index) => /* @__PURE__ */ import_react36.default.createElement(
|
5214
5304
|
"div",
|
5215
5305
|
{
|
5216
5306
|
key: index,
|
5217
5307
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2"
|
5218
5308
|
},
|
5219
|
-
/* @__PURE__ */
|
5309
|
+
/* @__PURE__ */ import_react36.default.createElement(
|
5220
5310
|
"a",
|
5221
5311
|
{
|
5222
5312
|
href: singleBreadcrumbLink.href,
|
@@ -5224,49 +5314,49 @@ var Breadcrumb = ({
|
|
5224
5314
|
},
|
5225
5315
|
singleBreadcrumbLink.label
|
5226
5316
|
),
|
5227
|
-
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */
|
5317
|
+
index != breadcrumbLinks.length - 1 ? typeof separator == "string" ? /* @__PURE__ */ import_react36.default.createElement("div", null, separator) : /* @__PURE__ */ import_react36.default.createElement("div", null, separator) : null
|
5228
5318
|
))
|
5229
5319
|
);
|
5230
5320
|
};
|
5231
5321
|
|
5232
5322
|
// elements/appStores/AppStores.tsx
|
5233
|
-
var
|
5323
|
+
var import_react37 = __toESM(require("react"));
|
5234
5324
|
var AppStores = (props) => {
|
5235
|
-
return /* @__PURE__ */
|
5325
|
+
return /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-flex hawa-justify-center" }, /* @__PURE__ */ import_react37.default.createElement("div", null, props.store === "apple" ? /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-bg-black hawa-text-white dark:hawa-bg-white dark:hawa-text-black" }, /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ import_react37.default.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ import_react37.default.createElement(
|
5236
5326
|
"path",
|
5237
5327
|
{
|
5238
5328
|
fill: "currentColor",
|
5239
5329
|
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"
|
5240
5330
|
}
|
5241
|
-
))), /* @__PURE__ */
|
5331
|
+
))), /* @__PURE__ */ import_react37.default.createElement("div", null, /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-text-xs" }, "Download on the"), /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-2xl hawa-font-semibold" }, "App Store"))) : /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-border hawa-border-black hawa-bg-black hawa-text-white dark:hawa-bg-white dark:hawa-text-black" }, /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ import_react37.default.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ import_react37.default.createElement(
|
5242
5332
|
"path",
|
5243
5333
|
{
|
5244
5334
|
fill: "#FFD400",
|
5245
5335
|
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"
|
5246
5336
|
}
|
5247
|
-
), /* @__PURE__ */
|
5337
|
+
), /* @__PURE__ */ import_react37.default.createElement(
|
5248
5338
|
"path",
|
5249
5339
|
{
|
5250
5340
|
fill: "#FF3333",
|
5251
5341
|
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"
|
5252
5342
|
}
|
5253
|
-
), /* @__PURE__ */
|
5343
|
+
), /* @__PURE__ */ import_react37.default.createElement(
|
5254
5344
|
"path",
|
5255
5345
|
{
|
5256
5346
|
fill: "#48FF48",
|
5257
5347
|
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"
|
5258
5348
|
}
|
5259
|
-
), /* @__PURE__ */
|
5349
|
+
), /* @__PURE__ */ import_react37.default.createElement(
|
5260
5350
|
"path",
|
5261
5351
|
{
|
5262
5352
|
fill: "#3BCCFF",
|
5263
5353
|
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"
|
5264
5354
|
}
|
5265
|
-
))), /* @__PURE__ */
|
5355
|
+
))), /* @__PURE__ */ import_react37.default.createElement("div", null, /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa-text-xs" }, "GET IT ON"), /* @__PURE__ */ import_react37.default.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-xl hawa-font-semibold" }, "Google Play")))));
|
5266
5356
|
};
|
5267
5357
|
|
5268
5358
|
// elements/badge/Badge.tsx
|
5269
|
-
var
|
5359
|
+
var import_react38 = __toESM(require("react"));
|
5270
5360
|
var Badge = ({
|
5271
5361
|
anchor,
|
5272
5362
|
position = "right",
|
@@ -5274,14 +5364,14 @@ var Badge = ({
|
|
5274
5364
|
text,
|
5275
5365
|
className
|
5276
5366
|
}) => {
|
5277
|
-
const [badgePosition, setBadgePosition] = (0,
|
5278
|
-
const indicatorRef = (0,
|
5367
|
+
const [badgePosition, setBadgePosition] = (0, import_react38.useState)(null);
|
5368
|
+
const indicatorRef = (0, import_react38.useRef)(null);
|
5279
5369
|
const sizeStyles2 = {
|
5280
5370
|
small: { top: 4, left: 6, right: 7, classes: "hawa-w-3 hawa-h-3" },
|
5281
5371
|
default: { top: 4, left: 7, right: 5, classes: "hawa-w-3 hawa-h-3" },
|
5282
5372
|
large: { top: 6, left: 12, right: 7, classes: "hawa-w-6 hawa-h-6" }
|
5283
5373
|
};
|
5284
|
-
(0,
|
5374
|
+
(0, import_react38.useEffect)(() => {
|
5285
5375
|
const handlePositioning = () => {
|
5286
5376
|
var _a;
|
5287
5377
|
if (anchor.current && indicatorRef.current) {
|
@@ -5304,7 +5394,7 @@ var Badge = ({
|
|
5304
5394
|
window.removeEventListener("resize", handlePositioning);
|
5305
5395
|
};
|
5306
5396
|
}, [anchor]);
|
5307
|
-
return /* @__PURE__ */
|
5397
|
+
return /* @__PURE__ */ import_react38.default.createElement("div", { ref: indicatorRef, className: cn("hawa-relative", className) }, badgePosition && /* @__PURE__ */ import_react38.default.createElement(
|
5308
5398
|
"div",
|
5309
5399
|
{
|
5310
5400
|
style: {
|
@@ -5329,8 +5419,8 @@ var BadgedComponent = ({
|
|
5329
5419
|
size,
|
5330
5420
|
text
|
5331
5421
|
}) => {
|
5332
|
-
const ref = (0,
|
5333
|
-
return /* @__PURE__ */
|
5422
|
+
const ref = (0, import_react38.useRef)(null);
|
5423
|
+
return /* @__PURE__ */ import_react38.default.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ import_react38.default.createElement(
|
5334
5424
|
Badge,
|
5335
5425
|
{
|
5336
5426
|
size,
|
@@ -5343,7 +5433,7 @@ var BadgedComponent = ({
|
|
5343
5433
|
};
|
5344
5434
|
|
5345
5435
|
// elements/phoneInput/PhoneInput.tsx
|
5346
|
-
var
|
5436
|
+
var import_react39 = __toESM(require("react"));
|
5347
5437
|
|
5348
5438
|
// countries.ts
|
5349
5439
|
var countries = [
|
@@ -7045,9 +7135,9 @@ var PhoneInput = ({
|
|
7045
7135
|
countryCodes,
|
7046
7136
|
...props
|
7047
7137
|
}) => {
|
7048
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
7049
|
-
const [countryCode, setCountryCode] = (0,
|
7050
|
-
const inputRef = (0,
|
7138
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react39.useState)("");
|
7139
|
+
const [countryCode, setCountryCode] = (0, import_react39.useState)(props.preferredCountry);
|
7140
|
+
const inputRef = (0, import_react39.useRef)(null);
|
7051
7141
|
const handleInputChange = (e) => {
|
7052
7142
|
console.log("test e ", e.target.value);
|
7053
7143
|
const validChars = /^[0-9-()]+$/;
|
@@ -7061,7 +7151,7 @@ var PhoneInput = ({
|
|
7061
7151
|
console.log("handleChange prop was not provided in <PhoneInput/>");
|
7062
7152
|
}
|
7063
7153
|
};
|
7064
|
-
return /* @__PURE__ */
|
7154
|
+
return /* @__PURE__ */ import_react39.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react39.default.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ import_react39.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react39.default.createElement(
|
7065
7155
|
Select,
|
7066
7156
|
{
|
7067
7157
|
phoneCode: true,
|
@@ -7077,7 +7167,7 @@ var PhoneInput = ({
|
|
7077
7167
|
value: countryCode == null ? void 0 : countryCode.label,
|
7078
7168
|
defaultValue: props.preferredCountry
|
7079
7169
|
}
|
7080
|
-
), /* @__PURE__ */
|
7170
|
+
), /* @__PURE__ */ import_react39.default.createElement("div", { className: "hawa-relative hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ import_react39.default.createElement(
|
7081
7171
|
"input",
|
7082
7172
|
{
|
7083
7173
|
type: "tel",
|
@@ -7091,15 +7181,15 @@ var PhoneInput = ({
|
|
7091
7181
|
),
|
7092
7182
|
...inputProps
|
7093
7183
|
}
|
7094
|
-
))), /* @__PURE__ */
|
7184
|
+
))), /* @__PURE__ */ import_react39.default.createElement(HelperText, { helperText: props.helperText }));
|
7095
7185
|
};
|
7096
7186
|
|
7097
7187
|
// elements/pinInput/PinInput.tsx
|
7098
|
-
var
|
7188
|
+
var React50 = __toESM(require("react"));
|
7099
7189
|
var import_input_otp = require("input-otp");
|
7100
7190
|
|
7101
7191
|
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7102
|
-
var
|
7192
|
+
var import_react41 = require("react");
|
7103
7193
|
|
7104
7194
|
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
7105
7195
|
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
@@ -7108,7 +7198,7 @@ var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
7108
7198
|
}).join(" ");
|
7109
7199
|
|
7110
7200
|
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7111
|
-
var
|
7201
|
+
var import_react40 = require("react");
|
7112
7202
|
|
7113
7203
|
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
7114
7204
|
var defaultAttributes = {
|
@@ -7124,7 +7214,7 @@ var defaultAttributes = {
|
|
7124
7214
|
};
|
7125
7215
|
|
7126
7216
|
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7127
|
-
var Icon = (0,
|
7217
|
+
var Icon = (0, import_react40.forwardRef)(
|
7128
7218
|
({
|
7129
7219
|
color = "currentColor",
|
7130
7220
|
size = 24,
|
@@ -7135,7 +7225,7 @@ var Icon = (0, import_react38.forwardRef)(
|
|
7135
7225
|
iconNode,
|
7136
7226
|
...rest
|
7137
7227
|
}, ref) => {
|
7138
|
-
return (0,
|
7228
|
+
return (0, import_react40.createElement)(
|
7139
7229
|
"svg",
|
7140
7230
|
{
|
7141
7231
|
ref,
|
@@ -7148,7 +7238,7 @@ var Icon = (0, import_react38.forwardRef)(
|
|
7148
7238
|
...rest
|
7149
7239
|
},
|
7150
7240
|
[
|
7151
|
-
...iconNode.map(([tag, attrs]) => (0,
|
7241
|
+
...iconNode.map(([tag, attrs]) => (0, import_react40.createElement)(tag, attrs)),
|
7152
7242
|
...Array.isArray(children) ? children : [children]
|
7153
7243
|
]
|
7154
7244
|
);
|
@@ -7157,8 +7247,8 @@ var Icon = (0, import_react38.forwardRef)(
|
|
7157
7247
|
|
7158
7248
|
// ../../node_modules/.pnpm/lucide-react@0.379.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7159
7249
|
var createLucideIcon = (iconName, iconNode) => {
|
7160
|
-
const Component = (0,
|
7161
|
-
({ className, ...props }, ref) => (0,
|
7250
|
+
const Component = (0, import_react41.forwardRef)(
|
7251
|
+
({ className, ...props }, ref) => (0, import_react41.createElement)(Icon, {
|
7162
7252
|
ref,
|
7163
7253
|
iconNode,
|
7164
7254
|
className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),
|
@@ -7175,7 +7265,7 @@ var Dot = createLucideIcon("Dot", [
|
|
7175
7265
|
]);
|
7176
7266
|
|
7177
7267
|
// elements/pinInput/PinInput.tsx
|
7178
|
-
var PinInputRoot =
|
7268
|
+
var PinInputRoot = React50.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ React50.createElement(
|
7179
7269
|
import_input_otp.OTPInput,
|
7180
7270
|
{
|
7181
7271
|
ref,
|
@@ -7188,7 +7278,7 @@ var PinInputRoot = React51.forwardRef(({ className, containerClassName, ...props
|
|
7188
7278
|
}
|
7189
7279
|
));
|
7190
7280
|
PinInputRoot.displayName = "PinInputRoot";
|
7191
|
-
var PinInputGroup =
|
7281
|
+
var PinInputGroup = React50.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React50.createElement(
|
7192
7282
|
"div",
|
7193
7283
|
{
|
7194
7284
|
ref,
|
@@ -7197,10 +7287,10 @@ var PinInputGroup = React51.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
7197
7287
|
}
|
7198
7288
|
));
|
7199
7289
|
PinInputGroup.displayName = "PinInputGroup";
|
7200
|
-
var PinInputSlot =
|
7201
|
-
const pinInputContext =
|
7290
|
+
var PinInputSlot = React50.forwardRef(({ index, className, ...props }, ref) => {
|
7291
|
+
const pinInputContext = React50.useContext(import_input_otp.OTPInputContext);
|
7202
7292
|
const { char, hasFakeCaret, isActive } = pinInputContext.slots[index];
|
7203
|
-
return /* @__PURE__ */
|
7293
|
+
return /* @__PURE__ */ React50.createElement(
|
7204
7294
|
"div",
|
7205
7295
|
{
|
7206
7296
|
ref,
|
@@ -7212,11 +7302,11 @@ var PinInputSlot = React51.forwardRef(({ index, className, ...props }, ref) => {
|
|
7212
7302
|
...props
|
7213
7303
|
},
|
7214
7304
|
char,
|
7215
|
-
hasFakeCaret && /* @__PURE__ */
|
7305
|
+
hasFakeCaret && /* @__PURE__ */ React50.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-inset-0 hawa-flex hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React50.createElement("div", { className: "hawa-animate-caret-blink hawa-bg-foreground hawa-h-4 hawa-w-px hawa-duration-1000" }))
|
7216
7306
|
);
|
7217
7307
|
});
|
7218
7308
|
PinInputSlot.displayName = "PinInputSlot";
|
7219
|
-
var PinInputSeperator =
|
7309
|
+
var PinInputSeperator = React50.forwardRef(({ ...props }, ref) => /* @__PURE__ */ React50.createElement("div", { ref, role: "separator", ...props }, /* @__PURE__ */ React50.createElement(Dot, null)));
|
7220
7310
|
PinInputSeperator.displayName = "PinInputSeperator";
|
7221
7311
|
var PinInput = ({
|
7222
7312
|
separatorPosition = 0,
|
@@ -7226,27 +7316,27 @@ var PinInput = ({
|
|
7226
7316
|
const clampedSeparatorPosition = Math.min(separatorPosition, maxLength);
|
7227
7317
|
const firstGroupLength = clampedSeparatorPosition > 0 ? clampedSeparatorPosition : 0;
|
7228
7318
|
const secondGroupLength = maxLength - firstGroupLength;
|
7229
|
-
return /* @__PURE__ */
|
7319
|
+
return /* @__PURE__ */ React50.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React50.createElement(PinInputRoot, { ...props }, firstGroupLength > 0 && /* @__PURE__ */ React50.createElement(PinInputGroup, { className: "hawa-w-full" }, [...Array(firstGroupLength)].map((_, index) => /* @__PURE__ */ React50.createElement(PinInputSlot, { key: index, index, className: "hawa-w-full" }))), separatorPosition > 0 && separatorPosition < props.maxLength && /* @__PURE__ */ React50.createElement(PinInputSeperator, null), secondGroupLength > 0 && /* @__PURE__ */ React50.createElement(PinInputGroup, { className: "hawa-w-full" }, [...Array(secondGroupLength)].map((_, index) => /* @__PURE__ */ React50.createElement(
|
7230
7320
|
PinInputSlot,
|
7231
7321
|
{
|
7232
7322
|
key: index + firstGroupLength,
|
7233
7323
|
index: index + firstGroupLength,
|
7234
7324
|
className: "hawa-w-full"
|
7235
7325
|
}
|
7236
|
-
)))), /* @__PURE__ */
|
7326
|
+
)))), /* @__PURE__ */ React50.createElement(HelperText, { helperText: props.helperText }));
|
7237
7327
|
};
|
7238
7328
|
|
7239
7329
|
// elements/stopPropagationWrapper/StopPropagationWrapper.tsx
|
7240
|
-
var
|
7330
|
+
var import_react42 = __toESM(require("react"));
|
7241
7331
|
var StopPropagationWrapper = (props) => {
|
7242
7332
|
const handleClick = (e) => {
|
7243
7333
|
e.stopPropagation();
|
7244
7334
|
};
|
7245
|
-
return /* @__PURE__ */
|
7335
|
+
return /* @__PURE__ */ import_react42.default.createElement("div", { onClick: handleClick }, props.children);
|
7246
7336
|
};
|
7247
7337
|
|
7248
7338
|
// elements/colorPicker/ColorPicker.tsx
|
7249
|
-
var
|
7339
|
+
var import_react43 = __toESM(require("react"));
|
7250
7340
|
var ColorPicker = ({
|
7251
7341
|
containerProps,
|
7252
7342
|
colorPickerProps,
|
@@ -7257,8 +7347,8 @@ var ColorPicker = ({
|
|
7257
7347
|
preview = false,
|
7258
7348
|
...props
|
7259
7349
|
}) => {
|
7260
|
-
const [selectedColor, setSelectedColor] = (0,
|
7261
|
-
(0,
|
7350
|
+
const [selectedColor, setSelectedColor] = (0, import_react43.useState)(props.color);
|
7351
|
+
(0, import_react43.useEffect)(() => {
|
7262
7352
|
if (selectedColor && selectedColor[0] !== "#") {
|
7263
7353
|
setSelectedColor(`#${selectedColor}`);
|
7264
7354
|
}
|
@@ -7275,13 +7365,13 @@ var ColorPicker = ({
|
|
7275
7365
|
props.handleChange(e);
|
7276
7366
|
}
|
7277
7367
|
};
|
7278
|
-
return /* @__PURE__ */
|
7368
|
+
return /* @__PURE__ */ import_react43.default.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react43.default.createElement(Label2, { ...labelProps }, props.label), isLoading ? /* @__PURE__ */ import_react43.default.createElement(Skeleton, { style: { height: 40, width: 148 } }) : /* @__PURE__ */ import_react43.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react43.default.createElement(
|
7279
7369
|
"div",
|
7280
7370
|
{
|
7281
7371
|
style: { height: 40, backgroundColor: selectedColor },
|
7282
7372
|
className: "hawa-rounded-bl-lg hawa-rounded-tl-lg hawa-border"
|
7283
7373
|
},
|
7284
|
-
/* @__PURE__ */
|
7374
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
7285
7375
|
"input",
|
7286
7376
|
{
|
7287
7377
|
disabled: preview,
|
@@ -7300,7 +7390,7 @@ var ColorPicker = ({
|
|
7300
7390
|
...colorPickerProps
|
7301
7391
|
}
|
7302
7392
|
)
|
7303
|
-
), /* @__PURE__ */
|
7393
|
+
), /* @__PURE__ */ import_react43.default.createElement("div", { className: "hawa-relative hawa-flex hawa-max-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ import_react43.default.createElement(
|
7304
7394
|
"input",
|
7305
7395
|
{
|
7306
7396
|
disabled: preview,
|
@@ -7319,11 +7409,11 @@ var ColorPicker = ({
|
|
7319
7409
|
},
|
7320
7410
|
...textInputProps
|
7321
7411
|
}
|
7322
|
-
))), !forceHideHelperText && /* @__PURE__ */
|
7412
|
+
))), !forceHideHelperText && /* @__PURE__ */ import_react43.default.createElement(HelperText, { helperText: props.helperText }));
|
7323
7413
|
};
|
7324
7414
|
|
7325
7415
|
// elements/progressCircle/ProgressCircle.tsx
|
7326
|
-
var
|
7416
|
+
var import_react44 = __toESM(require("react"));
|
7327
7417
|
var size2config = {
|
7328
7418
|
xs: { radius: 15, strokeWidth: 3 },
|
7329
7419
|
sm: { radius: 19, strokeWidth: 4 },
|
@@ -7340,7 +7430,7 @@ function getLimitedValue(input) {
|
|
7340
7430
|
return input;
|
7341
7431
|
}
|
7342
7432
|
}
|
7343
|
-
var ProgressCircle =
|
7433
|
+
var ProgressCircle = import_react44.default.forwardRef((props, ref) => {
|
7344
7434
|
const {
|
7345
7435
|
value: inputValue,
|
7346
7436
|
size = "md",
|
@@ -7360,7 +7450,7 @@ var ProgressCircle = import_react42.default.forwardRef((props, ref) => {
|
|
7360
7450
|
const circumference = normalizedRadius * 2 * Math.PI;
|
7361
7451
|
const strokeDashoffset = value / 100 * circumference;
|
7362
7452
|
const offset = circumference - strokeDashoffset;
|
7363
|
-
return /* @__PURE__ */
|
7453
|
+
return /* @__PURE__ */ import_react44.default.createElement(import_react44.default.Fragment, null, /* @__PURE__ */ import_react44.default.createElement(
|
7364
7454
|
"div",
|
7365
7455
|
{
|
7366
7456
|
ref,
|
@@ -7369,7 +7459,7 @@ var ProgressCircle = import_react42.default.forwardRef((props, ref) => {
|
|
7369
7459
|
className
|
7370
7460
|
)
|
7371
7461
|
},
|
7372
|
-
/* @__PURE__ */
|
7462
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7373
7463
|
"svg",
|
7374
7464
|
{
|
7375
7465
|
width: radius * 2,
|
@@ -7377,7 +7467,7 @@ var ProgressCircle = import_react42.default.forwardRef((props, ref) => {
|
|
7377
7467
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
7378
7468
|
className: "hawa-rotate-180 hawa-transform"
|
7379
7469
|
},
|
7380
|
-
/* @__PURE__ */
|
7470
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7381
7471
|
"circle",
|
7382
7472
|
{
|
7383
7473
|
r: normalizedRadius,
|
@@ -7393,7 +7483,7 @@ var ProgressCircle = import_react42.default.forwardRef((props, ref) => {
|
|
7393
7483
|
)
|
7394
7484
|
}
|
7395
7485
|
),
|
7396
|
-
value > 0 ? /* @__PURE__ */
|
7486
|
+
value > 0 ? /* @__PURE__ */ import_react44.default.createElement(
|
7397
7487
|
"circle",
|
7398
7488
|
{
|
7399
7489
|
r: normalizedRadius,
|
@@ -7413,24 +7503,24 @@ var ProgressCircle = import_react42.default.forwardRef((props, ref) => {
|
|
7413
7503
|
}
|
7414
7504
|
) : null
|
7415
7505
|
),
|
7416
|
-
/* @__PURE__ */
|
7506
|
+
/* @__PURE__ */ import_react44.default.createElement("div", { className: cn("hawa-absolute hawa-flex") }, children)
|
7417
7507
|
));
|
7418
7508
|
});
|
7419
7509
|
ProgressCircle.displayName = "ProgressCircle";
|
7420
7510
|
|
7421
7511
|
// elements/pagination/Pagination.tsx
|
7422
|
-
var
|
7512
|
+
var import_react45 = __toESM(require("react"));
|
7423
7513
|
var import_react_headless_pagination = require("react-headless-pagination");
|
7424
7514
|
var Pagination = ({
|
7425
7515
|
direction,
|
7426
7516
|
totalPages,
|
7427
7517
|
currentPage
|
7428
7518
|
}) => {
|
7429
|
-
const [page, setPage] =
|
7519
|
+
const [page, setPage] = import_react45.default.useState(currentPage || 0);
|
7430
7520
|
const handlePageChange = (page2) => {
|
7431
7521
|
setPage(page2);
|
7432
7522
|
};
|
7433
|
-
return /* @__PURE__ */
|
7523
|
+
return /* @__PURE__ */ import_react45.default.createElement(
|
7434
7524
|
import_react_headless_pagination.Pagination,
|
7435
7525
|
{
|
7436
7526
|
totalPages,
|
@@ -7442,10 +7532,10 @@ var Pagination = ({
|
|
7442
7532
|
truncableText: "...",
|
7443
7533
|
truncableClassName: "hawa-w-10 hawa-px-0.5 hawa-text-center"
|
7444
7534
|
},
|
7445
|
-
/* @__PURE__ */
|
7535
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7446
7536
|
import_react_headless_pagination.Pagination.PrevButton,
|
7447
7537
|
{
|
7448
|
-
as: /* @__PURE__ */
|
7538
|
+
as: /* @__PURE__ */ import_react45.default.createElement(
|
7449
7539
|
"button",
|
7450
7540
|
{
|
7451
7541
|
"aria-label": "Previous Table Page",
|
@@ -7455,7 +7545,7 @@ var Pagination = ({
|
|
7455
7545
|
),
|
7456
7546
|
style: { minWidth: 36 }
|
7457
7547
|
},
|
7458
|
-
/* @__PURE__ */
|
7548
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7459
7549
|
"svg",
|
7460
7550
|
{
|
7461
7551
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7468,7 +7558,7 @@ var Pagination = ({
|
|
7468
7558
|
strokeLinecap: "round",
|
7469
7559
|
strokeLinejoin: "round"
|
7470
7560
|
},
|
7471
|
-
/* @__PURE__ */
|
7561
|
+
/* @__PURE__ */ import_react45.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7472
7562
|
)
|
7473
7563
|
),
|
7474
7564
|
className: cn(
|
@@ -7481,17 +7571,17 @@ var Pagination = ({
|
|
7481
7571
|
},
|
7482
7572
|
"Previous"
|
7483
7573
|
),
|
7484
|
-
/* @__PURE__ */
|
7574
|
+
/* @__PURE__ */ import_react45.default.createElement("nav", { className: "hawa-flex hawa-flex-grow hawa-justify-center" }, /* @__PURE__ */ import_react45.default.createElement("ul", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ import_react45.default.createElement(
|
7485
7575
|
import_react_headless_pagination.Pagination.PageButton,
|
7486
7576
|
{
|
7487
7577
|
className: "hawa-tap-highlight-transparent hawa-text-default-foreground data-[focus-visible=true]:hawa-outline-focus data-[disabled=true]:hawa-text-default-300 hawa-min-w-9 hawa-text-small hawa-box-border hawa-flex hawa-h-9 hawa-w-9 hawa-cursor-pointer hawa-touch-none hawa-select-none hawa-flex-wrap hawa-items-center hawa-justify-center hawa-truncate hawa-rounded hawa-border hawa-bg-card hawa-outline-none hawa-transition-all hover:hawa-scale-[1.1] data-[disabled=true]:hawa-pointer-events-none data-[focus-visible=true]:hawa-z-10 data-[pressed=true]:hawa-scale-[0.97] data-[focus-visible=true]:hawa-outline-2 data-[focus-visible=true]:hawa-outline-offset-2",
|
7488
7578
|
activeClassName: "hawa-bg-primary hawa-text-primary-foreground hawa-transition-all"
|
7489
7579
|
}
|
7490
7580
|
))),
|
7491
|
-
/* @__PURE__ */
|
7581
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7492
7582
|
import_react_headless_pagination.Pagination.NextButton,
|
7493
7583
|
{
|
7494
|
-
as: /* @__PURE__ */
|
7584
|
+
as: /* @__PURE__ */ import_react45.default.createElement(
|
7495
7585
|
"button",
|
7496
7586
|
{
|
7497
7587
|
"aria-label": "Previous Table Page",
|
@@ -7501,7 +7591,7 @@ var Pagination = ({
|
|
7501
7591
|
),
|
7502
7592
|
style: { minWidth: 36 }
|
7503
7593
|
},
|
7504
|
-
/* @__PURE__ */
|
7594
|
+
/* @__PURE__ */ import_react45.default.createElement(
|
7505
7595
|
"svg",
|
7506
7596
|
{
|
7507
7597
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7514,7 +7604,7 @@ var Pagination = ({
|
|
7514
7604
|
strokeLinecap: "round",
|
7515
7605
|
strokeLinejoin: "round"
|
7516
7606
|
},
|
7517
|
-
/* @__PURE__ */
|
7607
|
+
/* @__PURE__ */ import_react45.default.createElement("path", { d: "m15 18-6-6 6-6" })
|
7518
7608
|
)
|
7519
7609
|
),
|
7520
7610
|
className: cn(
|
@@ -7531,14 +7621,14 @@ var Pagination = ({
|
|
7531
7621
|
};
|
7532
7622
|
|
7533
7623
|
// elements/passwordInput/PasswordInput.tsx
|
7534
|
-
var
|
7624
|
+
var import_react49 = __toESM(require("react"));
|
7535
7625
|
|
7536
7626
|
// icons/Emojis.tsx
|
7537
|
-
var
|
7627
|
+
var import_react46 = __toESM(require("react"));
|
7538
7628
|
|
7539
7629
|
// icons/InputIcons.tsx
|
7540
|
-
var
|
7541
|
-
var EyeIcon = (props) => /* @__PURE__ */
|
7630
|
+
var import_react47 = __toESM(require("react"));
|
7631
|
+
var EyeIcon = (props) => /* @__PURE__ */ import_react47.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react47.default.createElement(
|
7542
7632
|
"svg",
|
7543
7633
|
{
|
7544
7634
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7549,10 +7639,10 @@ var EyeIcon = (props) => /* @__PURE__ */ import_react45.default.createElement("d
|
|
7549
7639
|
strokeLinecap: "round",
|
7550
7640
|
strokeLinejoin: "round"
|
7551
7641
|
},
|
7552
|
-
/* @__PURE__ */
|
7553
|
-
/* @__PURE__ */
|
7642
|
+
/* @__PURE__ */ import_react47.default.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
7643
|
+
/* @__PURE__ */ import_react47.default.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
7554
7644
|
));
|
7555
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */
|
7645
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react47.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react47.default.createElement(
|
7556
7646
|
"svg",
|
7557
7647
|
{
|
7558
7648
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -7563,20 +7653,20 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react45.default.createElem
|
|
7563
7653
|
strokeLinecap: "round",
|
7564
7654
|
strokeLinejoin: "round"
|
7565
7655
|
},
|
7566
|
-
/* @__PURE__ */
|
7567
|
-
/* @__PURE__ */
|
7568
|
-
/* @__PURE__ */
|
7569
|
-
/* @__PURE__ */
|
7656
|
+
/* @__PURE__ */ import_react47.default.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
7657
|
+
/* @__PURE__ */ import_react47.default.createElement("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
|
7658
|
+
/* @__PURE__ */ import_react47.default.createElement("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
|
7659
|
+
/* @__PURE__ */ import_react47.default.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
7570
7660
|
));
|
7571
7661
|
|
7572
7662
|
// icons/CommonIcons.tsx
|
7573
|
-
var
|
7663
|
+
var import_react48 = __toESM(require("react"));
|
7574
7664
|
var CheckMark = ({ size = "default", className }) => {
|
7575
7665
|
let sizeStyles2 = {
|
7576
7666
|
default: "hawa-h-5 hawa-w-5",
|
7577
7667
|
sm: "hawa-h-3 hawa-w-3"
|
7578
7668
|
};
|
7579
|
-
return /* @__PURE__ */
|
7669
|
+
return /* @__PURE__ */ import_react48.default.createElement(
|
7580
7670
|
"svg",
|
7581
7671
|
{
|
7582
7672
|
className: cn(sizeStyles2[size], className),
|
@@ -7584,7 +7674,7 @@ var CheckMark = ({ size = "default", className }) => {
|
|
7584
7674
|
fill: "currentColor",
|
7585
7675
|
viewBox: "0 0 20 20"
|
7586
7676
|
},
|
7587
|
-
/* @__PURE__ */
|
7677
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7588
7678
|
"path",
|
7589
7679
|
{
|
7590
7680
|
fillRule: "evenodd",
|
@@ -7599,7 +7689,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7599
7689
|
default: "hawa-h-5 hawa-w-5",
|
7600
7690
|
sm: "hawa-h-3 hawa-w-3"
|
7601
7691
|
};
|
7602
|
-
return /* @__PURE__ */
|
7692
|
+
return /* @__PURE__ */ import_react48.default.createElement(
|
7603
7693
|
"svg",
|
7604
7694
|
{
|
7605
7695
|
className: cn(sizeStyles2[size], className),
|
@@ -7607,7 +7697,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7607
7697
|
fill: "currentColor",
|
7608
7698
|
viewBox: "0 0 20 20"
|
7609
7699
|
},
|
7610
|
-
/* @__PURE__ */
|
7700
|
+
/* @__PURE__ */ import_react48.default.createElement(
|
7611
7701
|
"path",
|
7612
7702
|
{
|
7613
7703
|
fillRule: "evenodd",
|
@@ -7645,7 +7735,7 @@ var PasswordStrengthIndicator = ({ strength }) => {
|
|
7645
7735
|
strong: "80%",
|
7646
7736
|
"very-strong": "100%"
|
7647
7737
|
}[currentStrengthLevel];
|
7648
|
-
return /* @__PURE__ */
|
7738
|
+
return /* @__PURE__ */ import_react49.default.createElement("div", { className: "hawa-mt-0.5 hawa-h-2 hawa-w-full hawa-rounded hawa-bg-gray-200" }, /* @__PURE__ */ import_react49.default.createElement(
|
7649
7739
|
"div",
|
7650
7740
|
{
|
7651
7741
|
className: `${strengthColors[currentStrengthLevel]} hawa-h-full hawa-rounded hawa-transition-all hawa-duration-300`,
|
@@ -7657,16 +7747,16 @@ var PasswordInput = ({
|
|
7657
7747
|
hidePopover,
|
7658
7748
|
...props
|
7659
7749
|
}) => {
|
7660
|
-
const [inputValue, setInputValue] = (0,
|
7661
|
-
const [isInputFocused, setIsInputFocused] = (0,
|
7662
|
-
const [currentStr, setCurrentStr] = (0,
|
7663
|
-
const [passwordVisible, setPasswordVisible] = (0,
|
7664
|
-
const [lengthCriteriaMet, setLengthCriteriaMet] = (0,
|
7665
|
-
const [numberCriteriaMet, setNumberCriteriaMet] = (0,
|
7666
|
-
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0,
|
7667
|
-
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0,
|
7668
|
-
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0,
|
7669
|
-
(0,
|
7750
|
+
const [inputValue, setInputValue] = (0, import_react49.useState)("");
|
7751
|
+
const [isInputFocused, setIsInputFocused] = (0, import_react49.useState)(false);
|
7752
|
+
const [currentStr, setCurrentStr] = (0, import_react49.useState)(0);
|
7753
|
+
const [passwordVisible, setPasswordVisible] = (0, import_react49.useState)(false);
|
7754
|
+
const [lengthCriteriaMet, setLengthCriteriaMet] = (0, import_react49.useState)(false);
|
7755
|
+
const [numberCriteriaMet, setNumberCriteriaMet] = (0, import_react49.useState)(false);
|
7756
|
+
const [specialCharCriteriaMet, setSpecialCharCriteriaMet] = (0, import_react49.useState)(false);
|
7757
|
+
const [lowercaseCriteriaMet, setLowercaseCriteriaMet] = (0, import_react49.useState)(false);
|
7758
|
+
const [uppercaseCriteriaMet, setUppercaseCriteriaMet] = (0, import_react49.useState)(false);
|
7759
|
+
(0, import_react49.useEffect)(() => {
|
7670
7760
|
const calculateStrength = () => {
|
7671
7761
|
let strengthScore = 0;
|
7672
7762
|
if (lengthCriteriaMet)
|
@@ -7705,7 +7795,7 @@ var PasswordInput = ({
|
|
7705
7795
|
setIsInputFocused(false);
|
7706
7796
|
};
|
7707
7797
|
const getCriteriaClass = (isMet) => isMet ? "hawa-flex hawa-flex-row hawa-gap-2 hawa-text-sm hawa-items-center hawa-text-green-500" : "hawa-flex hawa-flex-row hawa-gap-2 hawa-text-sm hawa-items-center hawa-text-red-600";
|
7708
|
-
return /* @__PURE__ */
|
7798
|
+
return /* @__PURE__ */ import_react49.default.createElement("div", null, /* @__PURE__ */ import_react49.default.createElement(
|
7709
7799
|
Popover,
|
7710
7800
|
{
|
7711
7801
|
width: "trigger",
|
@@ -7714,7 +7804,7 @@ var PasswordInput = ({
|
|
7714
7804
|
onOpenChange: setIsInputFocused,
|
7715
7805
|
triggerProps: { asChild: true },
|
7716
7806
|
contentProps: { onOpenAutoFocus: (e) => e.preventDefault() },
|
7717
|
-
trigger: /* @__PURE__ */
|
7807
|
+
trigger: /* @__PURE__ */ import_react49.default.createElement(
|
7718
7808
|
"div",
|
7719
7809
|
{
|
7720
7810
|
onClick: (e) => {
|
@@ -7724,7 +7814,7 @@ var PasswordInput = ({
|
|
7724
7814
|
}
|
7725
7815
|
}
|
7726
7816
|
},
|
7727
|
-
/* @__PURE__ */
|
7817
|
+
/* @__PURE__ */ import_react49.default.createElement(
|
7728
7818
|
Input,
|
7729
7819
|
{
|
7730
7820
|
width: "full",
|
@@ -7734,27 +7824,27 @@ var PasswordInput = ({
|
|
7734
7824
|
onFocus: handleInputFocus,
|
7735
7825
|
onBlur: handleInputBlur,
|
7736
7826
|
type: passwordVisible ? "text" : "password",
|
7737
|
-
endIcon: /* @__PURE__ */
|
7827
|
+
endIcon: /* @__PURE__ */ import_react49.default.createElement(
|
7738
7828
|
"div",
|
7739
7829
|
{
|
7740
7830
|
className: "hawa-cursor-pointer",
|
7741
7831
|
onClick: () => setPasswordVisible(!passwordVisible)
|
7742
7832
|
},
|
7743
|
-
passwordVisible ? /* @__PURE__ */
|
7833
|
+
passwordVisible ? /* @__PURE__ */ import_react49.default.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ import_react49.default.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
7744
7834
|
" "
|
7745
7835
|
)
|
7746
7836
|
}
|
7747
7837
|
)
|
7748
7838
|
)
|
7749
7839
|
},
|
7750
|
-
/* @__PURE__ */
|
7751
|
-
), /* @__PURE__ */
|
7840
|
+
/* @__PURE__ */ import_react49.default.createElement("div", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ import_react49.default.createElement("ul", { className: "hawa-rounded hawa-p-2" }, /* @__PURE__ */ import_react49.default.createElement("li", { className: getCriteriaClass(lengthCriteriaMet) }, lengthCriteriaMet ? /* @__PURE__ */ import_react49.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react49.default.createElement(UncheckMark, { size: "sm" }), "At least 8 characters long"), /* @__PURE__ */ import_react49.default.createElement("li", { className: getCriteriaClass(numberCriteriaMet) }, numberCriteriaMet ? /* @__PURE__ */ import_react49.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react49.default.createElement(UncheckMark, { size: "sm" }), "At least 1 number"), /* @__PURE__ */ import_react49.default.createElement("li", { className: getCriteriaClass(specialCharCriteriaMet) }, specialCharCriteriaMet ? /* @__PURE__ */ import_react49.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react49.default.createElement(UncheckMark, { size: "sm" }), "At least 1 special character"), /* @__PURE__ */ import_react49.default.createElement("li", { className: getCriteriaClass(lowercaseCriteriaMet) }, lowercaseCriteriaMet ? /* @__PURE__ */ import_react49.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react49.default.createElement(UncheckMark, { size: "sm" }), "At least 1 lowercase letter"), /* @__PURE__ */ import_react49.default.createElement("li", { className: getCriteriaClass(uppercaseCriteriaMet) }, uppercaseCriteriaMet ? /* @__PURE__ */ import_react49.default.createElement(CheckMark, { size: "sm" }) : /* @__PURE__ */ import_react49.default.createElement(UncheckMark, { size: "sm" }), "At least 1 uppercase letter")))
|
7841
|
+
), /* @__PURE__ */ import_react49.default.createElement(PasswordStrengthIndicator, { strength: currentStr }));
|
7752
7842
|
};
|
7753
7843
|
|
7754
7844
|
// elements/slider/Slider.tsx
|
7755
|
-
var
|
7845
|
+
var React59 = __toESM(require("react"));
|
7756
7846
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
7757
|
-
var Slider =
|
7847
|
+
var Slider = React59.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React59.createElement(
|
7758
7848
|
SliderPrimitive.Root,
|
7759
7849
|
{
|
7760
7850
|
ref,
|
@@ -7764,13 +7854,13 @@ var Slider = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
7764
7854
|
),
|
7765
7855
|
...props
|
7766
7856
|
},
|
7767
|
-
/* @__PURE__ */
|
7768
|
-
/* @__PURE__ */
|
7857
|
+
/* @__PURE__ */ React59.createElement(SliderPrimitive.Track, { className: "hawa-relative hawa-h-2 hawa-w-full hawa-grow hawa-overflow-hidden hawa-rounded-full hawa-border hawa-bg-background" }, /* @__PURE__ */ React59.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
|
7858
|
+
/* @__PURE__ */ React59.createElement(SliderPrimitive.Thumb, { className: "hawa-block hawa-h-5 hawa-w-5 hawa-rounded-full hawa-border-2 hawa-border-primary hawa-bg-background hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50" })
|
7769
7859
|
));
|
7770
7860
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
7771
7861
|
|
7772
7862
|
// elements/simpleTable/SimpleTable.tsx
|
7773
|
-
var
|
7863
|
+
var React60 = __toESM(require("react"));
|
7774
7864
|
var import_react_table2 = require("@tanstack/react-table");
|
7775
7865
|
var SimpleTable = ({
|
7776
7866
|
columns,
|
@@ -7785,7 +7875,7 @@ var SimpleTable = ({
|
|
7785
7875
|
columns,
|
7786
7876
|
getCoreRowModel: (0, import_react_table2.getCoreRowModel)()
|
7787
7877
|
});
|
7788
|
-
return /* @__PURE__ */
|
7878
|
+
return /* @__PURE__ */ React60.createElement(
|
7789
7879
|
"div",
|
7790
7880
|
{
|
7791
7881
|
className: cn(
|
@@ -7793,8 +7883,8 @@ var SimpleTable = ({
|
|
7793
7883
|
classNames
|
7794
7884
|
)
|
7795
7885
|
},
|
7796
|
-
props.isLoading ? /* @__PURE__ */
|
7797
|
-
return /* @__PURE__ */
|
7886
|
+
props.isLoading ? /* @__PURE__ */ React60.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React60.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React60.createElement(Table, null, !headerless && table.getAllColumns().length > 0 && /* @__PURE__ */ React60.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React60.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
7887
|
+
return /* @__PURE__ */ React60.createElement(
|
7798
7888
|
TableHead,
|
7799
7889
|
{
|
7800
7890
|
condensed: props.condensed,
|
@@ -7809,7 +7899,7 @@ var SimpleTable = ({
|
|
7809
7899
|
header.getContext()
|
7810
7900
|
)
|
7811
7901
|
);
|
7812
|
-
})))), /* @__PURE__ */
|
7902
|
+
})))), /* @__PURE__ */ React60.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React60.createElement(
|
7813
7903
|
TableRow,
|
7814
7904
|
{
|
7815
7905
|
key: row.id,
|
@@ -7817,7 +7907,7 @@ var SimpleTable = ({
|
|
7817
7907
|
},
|
7818
7908
|
row.getVisibleCells().map((cell) => {
|
7819
7909
|
var _a2;
|
7820
|
-
return /* @__PURE__ */
|
7910
|
+
return /* @__PURE__ */ React60.createElement(
|
7821
7911
|
TableCell,
|
7822
7912
|
{
|
7823
7913
|
dir: props.direction,
|
@@ -7833,7 +7923,7 @@ var SimpleTable = ({
|
|
7833
7923
|
)
|
7834
7924
|
);
|
7835
7925
|
})
|
7836
|
-
)) : /* @__PURE__ */
|
7926
|
+
)) : /* @__PURE__ */ React60.createElement(TableRow, null, /* @__PURE__ */ React60.createElement(
|
7837
7927
|
TableCell,
|
7838
7928
|
{
|
7839
7929
|
colSpan: columns.length,
|
@@ -7845,12 +7935,12 @@ var SimpleTable = ({
|
|
7845
7935
|
};
|
7846
7936
|
|
7847
7937
|
// elements/separator/Separator.tsx
|
7848
|
-
var
|
7938
|
+
var React61 = __toESM(require("react"));
|
7849
7939
|
var Separator2 = ({
|
7850
7940
|
className,
|
7851
7941
|
orientation = "horizontal",
|
7852
7942
|
...props
|
7853
|
-
}) => /* @__PURE__ */
|
7943
|
+
}) => /* @__PURE__ */ React61.createElement(
|
7854
7944
|
"div",
|
7855
7945
|
{
|
7856
7946
|
className: cn(
|
@@ -7863,12 +7953,12 @@ var Separator2 = ({
|
|
7863
7953
|
);
|
7864
7954
|
|
7865
7955
|
// elements/scrollIndicator/ScrollIndicator.tsx
|
7866
|
-
var
|
7956
|
+
var import_react50 = __toESM(require("react"));
|
7867
7957
|
var ScrollIndicator = ({
|
7868
7958
|
anchor,
|
7869
7959
|
inContainer = false
|
7870
7960
|
}) => {
|
7871
|
-
const [scrollPercentage, setScrollPercentage] = (0,
|
7961
|
+
const [scrollPercentage, setScrollPercentage] = (0, import_react50.useState)(0);
|
7872
7962
|
const onScroll = () => {
|
7873
7963
|
const scrollElement = anchor.current;
|
7874
7964
|
if (scrollElement) {
|
@@ -7879,7 +7969,7 @@ var ScrollIndicator = ({
|
|
7879
7969
|
setScrollPercentage(percentageScrolled);
|
7880
7970
|
}
|
7881
7971
|
};
|
7882
|
-
(0,
|
7972
|
+
(0, import_react50.useEffect)(() => {
|
7883
7973
|
if (!anchor.current)
|
7884
7974
|
return;
|
7885
7975
|
anchor.current.addEventListener("scroll", onScroll);
|
@@ -7888,7 +7978,7 @@ var ScrollIndicator = ({
|
|
7888
7978
|
(_a = anchor.current) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
|
7889
7979
|
};
|
7890
7980
|
}, [anchor]);
|
7891
|
-
return /* @__PURE__ */
|
7981
|
+
return /* @__PURE__ */ import_react50.default.createElement(
|
7892
7982
|
"div",
|
7893
7983
|
{
|
7894
7984
|
style: {
|
@@ -7904,11 +7994,11 @@ var ScrollIndicator = ({
|
|
7904
7994
|
};
|
7905
7995
|
|
7906
7996
|
// elements/codeBlock/CodeBlock.tsx
|
7907
|
-
var
|
7997
|
+
var import_react51 = __toESM(require("react"));
|
7908
7998
|
var import_prism_react_renderer = require("prism-react-renderer");
|
7909
7999
|
(typeof global !== "undefined" ? global : window).Prism = import_prism_react_renderer.Prism;
|
7910
8000
|
require("prismjs/components/prism-bash");
|
7911
|
-
var CopyIcon = () => /* @__PURE__ */
|
8001
|
+
var CopyIcon = () => /* @__PURE__ */ import_react51.default.createElement(
|
7912
8002
|
"svg",
|
7913
8003
|
{
|
7914
8004
|
"aria-label": "Copy",
|
@@ -7921,8 +8011,8 @@ var CopyIcon = () => /* @__PURE__ */ import_react49.default.createElement(
|
|
7921
8011
|
height: "1em",
|
7922
8012
|
width: "1em"
|
7923
8013
|
},
|
7924
|
-
/* @__PURE__ */
|
7925
|
-
/* @__PURE__ */
|
8014
|
+
/* @__PURE__ */ import_react51.default.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
8015
|
+
/* @__PURE__ */ import_react51.default.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
7926
8016
|
);
|
7927
8017
|
var CodeBlock = ({
|
7928
8018
|
tabs,
|
@@ -7936,7 +8026,7 @@ var CodeBlock = ({
|
|
7936
8026
|
...props
|
7937
8027
|
}) => {
|
7938
8028
|
const clipboard = useClipboard();
|
7939
|
-
const [selectedTab, setSelectedTab] = (0,
|
8029
|
+
const [selectedTab, setSelectedTab] = (0, import_react51.useState)(0);
|
7940
8030
|
const theme = import_prism_react_renderer.themes.oceanicNext;
|
7941
8031
|
let widthStyles = {
|
7942
8032
|
full: "hawa-w-full",
|
@@ -7944,7 +8034,7 @@ var CodeBlock = ({
|
|
7944
8034
|
sm: "hawa-w-full hawa-max-w-sm",
|
7945
8035
|
xs: "hawa-w-full hawa-max-w-xs"
|
7946
8036
|
};
|
7947
|
-
return /* @__PURE__ */
|
8037
|
+
return /* @__PURE__ */ import_react51.default.createElement(
|
7948
8038
|
"div",
|
7949
8039
|
{
|
7950
8040
|
className: cn(
|
@@ -7953,7 +8043,7 @@ var CodeBlock = ({
|
|
7953
8043
|
classNames == null ? void 0 : classNames.root
|
7954
8044
|
)
|
7955
8045
|
},
|
7956
|
-
fileName && /* @__PURE__ */
|
8046
|
+
fileName && /* @__PURE__ */ import_react51.default.createElement(
|
7957
8047
|
"div",
|
7958
8048
|
{
|
7959
8049
|
className: cn(
|
@@ -7962,7 +8052,7 @@ var CodeBlock = ({
|
|
7962
8052
|
classNames == null ? void 0 : classNames.fileName
|
7963
8053
|
)
|
7964
8054
|
},
|
7965
|
-
/* @__PURE__ */
|
8055
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
7966
8056
|
"div",
|
7967
8057
|
{
|
7968
8058
|
className: cn(
|
@@ -7972,7 +8062,7 @@ var CodeBlock = ({
|
|
7972
8062
|
fileName
|
7973
8063
|
)
|
7974
8064
|
),
|
7975
|
-
tabs && /* @__PURE__ */
|
8065
|
+
tabs && /* @__PURE__ */ import_react51.default.createElement(
|
7976
8066
|
"div",
|
7977
8067
|
{
|
7978
8068
|
className: cn(
|
@@ -7981,7 +8071,7 @@ var CodeBlock = ({
|
|
7981
8071
|
classNames == null ? void 0 : classNames.tabs
|
7982
8072
|
)
|
7983
8073
|
},
|
7984
|
-
tabs.map((tab, i) => /* @__PURE__ */
|
8074
|
+
tabs.map((tab, i) => /* @__PURE__ */ import_react51.default.createElement(
|
7985
8075
|
"div",
|
7986
8076
|
{
|
7987
8077
|
key: i,
|
@@ -7990,7 +8080,7 @@ var CodeBlock = ({
|
|
7990
8080
|
classNames == null ? void 0 : classNames.tab
|
7991
8081
|
)
|
7992
8082
|
},
|
7993
|
-
/* @__PURE__ */
|
8083
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
7994
8084
|
"div",
|
7995
8085
|
{
|
7996
8086
|
onClick: () => setSelectedTab(i),
|
@@ -8002,7 +8092,7 @@ var CodeBlock = ({
|
|
8002
8092
|
)
|
8003
8093
|
))
|
8004
8094
|
),
|
8005
|
-
/* @__PURE__ */
|
8095
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
8006
8096
|
"div",
|
8007
8097
|
{
|
8008
8098
|
className: cn(
|
@@ -8012,22 +8102,22 @@ var CodeBlock = ({
|
|
8012
8102
|
"hawa-overflow-y-auto"
|
8013
8103
|
)
|
8014
8104
|
},
|
8015
|
-
/* @__PURE__ */
|
8105
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
8016
8106
|
"div",
|
8017
8107
|
{
|
8018
8108
|
className: cn(
|
8019
8109
|
"hawa-flex hawa-absolute hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-z-50 hawa-right-3 hawa-top-3"
|
8020
8110
|
)
|
8021
8111
|
},
|
8022
|
-
/* @__PURE__ */
|
8112
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
8023
8113
|
Tooltip,
|
8024
8114
|
{
|
8025
8115
|
open: clipboard.copied,
|
8026
8116
|
side: "left",
|
8027
|
-
content: /* @__PURE__ */
|
8117
|
+
content: /* @__PURE__ */ import_react51.default.createElement("div", null, "Copied!"),
|
8028
8118
|
triggerProps: { asChild: true }
|
8029
8119
|
},
|
8030
|
-
/* @__PURE__ */
|
8120
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
8031
8121
|
Button,
|
8032
8122
|
{
|
8033
8123
|
size: "smallIcon",
|
@@ -8035,18 +8125,18 @@ var CodeBlock = ({
|
|
8035
8125
|
variant: "outline",
|
8036
8126
|
className: "hawa-text-gray-200 hawa-opacity-50 dark:hawa-border-gray-200 dark:hover:hawa-border-gray-400"
|
8037
8127
|
},
|
8038
|
-
/* @__PURE__ */
|
8128
|
+
/* @__PURE__ */ import_react51.default.createElement(CopyIcon, null)
|
8039
8129
|
)
|
8040
8130
|
)
|
8041
8131
|
),
|
8042
|
-
/* @__PURE__ */
|
8132
|
+
/* @__PURE__ */ import_react51.default.createElement(
|
8043
8133
|
import_prism_react_renderer.Highlight,
|
8044
8134
|
{
|
8045
8135
|
theme,
|
8046
8136
|
code: tabs ? tabs[selectedTab].code : code || "",
|
8047
8137
|
language
|
8048
8138
|
},
|
8049
|
-
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */
|
8139
|
+
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ import_react51.default.createElement(
|
8050
8140
|
"pre",
|
8051
8141
|
{
|
8052
8142
|
className: cn(
|
@@ -8056,7 +8146,7 @@ var CodeBlock = ({
|
|
8056
8146
|
wrapText && "hawa-text-wrap"
|
8057
8147
|
)
|
8058
8148
|
},
|
8059
|
-
tokens.map((line, i) => /* @__PURE__ */
|
8149
|
+
tokens.map((line, i) => /* @__PURE__ */ import_react51.default.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ import_react51.default.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ import_react51.default.createElement("span", { key, ...getTokenProps({ token }) }))))
|
8060
8150
|
)
|
8061
8151
|
)
|
8062
8152
|
)
|
@@ -8064,7 +8154,7 @@ var CodeBlock = ({
|
|
8064
8154
|
};
|
8065
8155
|
|
8066
8156
|
// elements/carousel/Carousel.tsx
|
8067
|
-
var
|
8157
|
+
var import_react52 = __toESM(require("react"));
|
8068
8158
|
var import_embla_carousel_react2 = __toESM(require("embla-carousel-react"));
|
8069
8159
|
var Carousel = ({
|
8070
8160
|
items,
|
@@ -8080,8 +8170,8 @@ var Carousel = ({
|
|
8080
8170
|
direction,
|
8081
8171
|
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
8082
8172
|
});
|
8083
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
8084
|
-
(0,
|
8173
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react52.useState)(0);
|
8174
|
+
(0, import_react52.useEffect)(() => {
|
8085
8175
|
function selectHandler() {
|
8086
8176
|
const index = emblaApi == null ? void 0 : emblaApi.selectedScrollSnap();
|
8087
8177
|
setSelectedIndex(index || 0);
|
@@ -8091,7 +8181,7 @@ var Carousel = ({
|
|
8091
8181
|
emblaApi == null ? void 0 : emblaApi.off("select", selectHandler);
|
8092
8182
|
};
|
8093
8183
|
}, [emblaApi]);
|
8094
|
-
(0,
|
8184
|
+
(0, import_react52.useEffect)(() => {
|
8095
8185
|
let autoplayTimer;
|
8096
8186
|
if (autoplay && emblaApi) {
|
8097
8187
|
autoplayTimer = setInterval(() => {
|
@@ -8103,17 +8193,17 @@ var Carousel = ({
|
|
8103
8193
|
clearInterval(autoplayTimer);
|
8104
8194
|
};
|
8105
8195
|
}, [emblaApi, autoplay, autoplayInterval]);
|
8106
|
-
const length =
|
8196
|
+
const length = import_react52.default.Children.count(items);
|
8107
8197
|
const canScrollNext = !!(emblaApi == null ? void 0 : emblaApi.canScrollNext());
|
8108
8198
|
const canScrollPrev = !!(emblaApi == null ? void 0 : emblaApi.canScrollPrev());
|
8109
|
-
return /* @__PURE__ */
|
8199
|
+
return /* @__PURE__ */ import_react52.default.createElement("div", { className: " hawa-relative hawa-h-full" }, /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-h-full hawa-overflow-hidden" }, /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-h-full", ref: emblaRef }, /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-flex hawa-h-full" }, items == null ? void 0 : items.map((item, i) => /* @__PURE__ */ import_react52.default.createElement(
|
8110
8200
|
"div",
|
8111
8201
|
{
|
8112
8202
|
key: i,
|
8113
8203
|
className: "hawa-flex hawa-h-full hawa-min-w-0 hawa-flex-[0_0_100%] hawa-items-center hawa-justify-center"
|
8114
8204
|
},
|
8115
8205
|
item
|
8116
|
-
))))), /* @__PURE__ */
|
8206
|
+
))))), /* @__PURE__ */ import_react52.default.createElement(
|
8117
8207
|
Dots,
|
8118
8208
|
{
|
8119
8209
|
direction,
|
@@ -8121,7 +8211,7 @@ var Carousel = ({
|
|
8121
8211
|
selectedIndex,
|
8122
8212
|
onDotClick: (index) => emblaApi == null ? void 0 : emblaApi.scrollTo(index)
|
8123
8213
|
}
|
8124
|
-
), showArrows && /* @__PURE__ */
|
8214
|
+
), showArrows && /* @__PURE__ */ import_react52.default.createElement(
|
8125
8215
|
CarouselControls,
|
8126
8216
|
{
|
8127
8217
|
canScrollNext,
|
@@ -8138,7 +8228,7 @@ var Dots = ({
|
|
8138
8228
|
direction
|
8139
8229
|
}) => {
|
8140
8230
|
const arr = new Array(itemsLength).fill(0);
|
8141
|
-
return /* @__PURE__ */
|
8231
|
+
return /* @__PURE__ */ import_react52.default.createElement(
|
8142
8232
|
"div",
|
8143
8233
|
{
|
8144
8234
|
dir: direction,
|
@@ -8146,7 +8236,7 @@ var Dots = ({
|
|
8146
8236
|
},
|
8147
8237
|
arr.map((_, index) => {
|
8148
8238
|
const selected = index === selectedIndex;
|
8149
|
-
return /* @__PURE__ */
|
8239
|
+
return /* @__PURE__ */ import_react52.default.createElement(
|
8150
8240
|
"div",
|
8151
8241
|
{
|
8152
8242
|
key: index,
|
@@ -8161,7 +8251,7 @@ var Dots = ({
|
|
8161
8251
|
);
|
8162
8252
|
};
|
8163
8253
|
var CarouselControls = (props) => {
|
8164
|
-
return /* @__PURE__ */
|
8254
|
+
return /* @__PURE__ */ import_react52.default.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ import_react52.default.createElement(
|
8165
8255
|
"button",
|
8166
8256
|
{
|
8167
8257
|
onClick: () => props.canScrollPrev && props.onPrev(),
|
@@ -8172,7 +8262,7 @@ var CarouselControls = (props) => {
|
|
8172
8262
|
props.canScrollPrev && "hawa-bg-primary"
|
8173
8263
|
)
|
8174
8264
|
},
|
8175
|
-
/* @__PURE__ */
|
8265
|
+
/* @__PURE__ */ import_react52.default.createElement(
|
8176
8266
|
"svg",
|
8177
8267
|
{
|
8178
8268
|
"aria-label": "Chevron Right Icon",
|
@@ -8181,9 +8271,9 @@ var CarouselControls = (props) => {
|
|
8181
8271
|
viewBox: "0 0 16 16",
|
8182
8272
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-rotate-180 hawa-transition-transform hawa-duration-200 "
|
8183
8273
|
},
|
8184
|
-
/* @__PURE__ */
|
8274
|
+
/* @__PURE__ */ import_react52.default.createElement("path", { 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" })
|
8185
8275
|
)
|
8186
|
-
), /* @__PURE__ */
|
8276
|
+
), /* @__PURE__ */ import_react52.default.createElement(
|
8187
8277
|
"button",
|
8188
8278
|
{
|
8189
8279
|
onClick: () => props.canScrollNext && props.onNext(),
|
@@ -8194,7 +8284,7 @@ var CarouselControls = (props) => {
|
|
8194
8284
|
props.canScrollNext && "hawa-bg-primary"
|
8195
8285
|
)
|
8196
8286
|
},
|
8197
|
-
/* @__PURE__ */
|
8287
|
+
/* @__PURE__ */ import_react52.default.createElement(
|
8198
8288
|
"svg",
|
8199
8289
|
{
|
8200
8290
|
"aria-label": "Chevron Right Icon",
|
@@ -8203,19 +8293,19 @@ var CarouselControls = (props) => {
|
|
8203
8293
|
viewBox: "0 0 16 16",
|
8204
8294
|
className: "hawa-h-2 hawa-w-2 hawa-shrink-0 hawa-transition-transform hawa-duration-200 "
|
8205
8295
|
},
|
8206
|
-
/* @__PURE__ */
|
8296
|
+
/* @__PURE__ */ import_react52.default.createElement("path", { 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" })
|
8207
8297
|
)
|
8208
8298
|
));
|
8209
8299
|
};
|
8210
8300
|
|
8211
8301
|
// elements/count/Count.tsx
|
8212
|
-
var
|
8302
|
+
var import_react53 = __toESM(require("react"));
|
8213
8303
|
var Count = (props) => {
|
8214
|
-
return /* @__PURE__ */
|
8304
|
+
return /* @__PURE__ */ import_react53.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-px-2" }, /* @__PURE__ */ import_react53.default.createElement("div", null, props.icon), /* @__PURE__ */ import_react53.default.createElement("div", { className: "hawa-text-sm" }, props.count));
|
8215
8305
|
};
|
8216
8306
|
|
8217
8307
|
// elements/toast/Toast.tsx
|
8218
|
-
var
|
8308
|
+
var React66 = __toESM(require("react"));
|
8219
8309
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
8220
8310
|
var import_class_variance_authority4 = require("class-variance-authority");
|
8221
8311
|
var toastVariants = (0, import_class_variance_authority4.cva)(
|
@@ -8243,7 +8333,7 @@ var sizeStyles = {
|
|
8243
8333
|
sm: "hawa-text-xs"
|
8244
8334
|
};
|
8245
8335
|
var ToastProvider = ToastPrimitives.Provider;
|
8246
|
-
var ToastViewport =
|
8336
|
+
var ToastViewport = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
8247
8337
|
ToastPrimitives.Viewport,
|
8248
8338
|
{
|
8249
8339
|
ref,
|
@@ -8255,8 +8345,8 @@ var ToastViewport = React67.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
8255
8345
|
}
|
8256
8346
|
));
|
8257
8347
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
8258
|
-
var Toast =
|
8259
|
-
return /* @__PURE__ */
|
8348
|
+
var Toast = React66.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
8349
|
+
return /* @__PURE__ */ React66.createElement(
|
8260
8350
|
ToastPrimitives.Root,
|
8261
8351
|
{
|
8262
8352
|
ref,
|
@@ -8271,8 +8361,8 @@ var Toast = React67.forwardRef(({ className, variant, severity = "none", directi
|
|
8271
8361
|
);
|
8272
8362
|
});
|
8273
8363
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
8274
|
-
var ToastAction =
|
8275
|
-
return /* @__PURE__ */
|
8364
|
+
var ToastAction = React66.forwardRef(({ className, ...props }, ref) => {
|
8365
|
+
return /* @__PURE__ */ React66.createElement(
|
8276
8366
|
ToastPrimitives.Action,
|
8277
8367
|
{
|
8278
8368
|
ref,
|
@@ -8290,7 +8380,7 @@ var ToastAction = React67.forwardRef(({ className, ...props }, ref) => {
|
|
8290
8380
|
);
|
8291
8381
|
});
|
8292
8382
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
8293
|
-
var ToastClose =
|
8383
|
+
var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
8294
8384
|
ToastPrimitives.Close,
|
8295
8385
|
{
|
8296
8386
|
ref,
|
@@ -8304,7 +8394,7 @@ var ToastClose = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8304
8394
|
"toast-close": "",
|
8305
8395
|
...props
|
8306
8396
|
},
|
8307
|
-
/* @__PURE__ */
|
8397
|
+
/* @__PURE__ */ React66.createElement(
|
8308
8398
|
"svg",
|
8309
8399
|
{
|
8310
8400
|
"aria-label": "Close Icon",
|
@@ -8313,7 +8403,7 @@ var ToastClose = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8313
8403
|
fill: "currentColor",
|
8314
8404
|
viewBox: "0 0 20 20"
|
8315
8405
|
},
|
8316
|
-
/* @__PURE__ */
|
8406
|
+
/* @__PURE__ */ React66.createElement(
|
8317
8407
|
"path",
|
8318
8408
|
{
|
8319
8409
|
fillRule: "evenodd",
|
@@ -8324,7 +8414,7 @@ var ToastClose = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8324
8414
|
)
|
8325
8415
|
));
|
8326
8416
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
8327
|
-
var ToastTitle =
|
8417
|
+
var ToastTitle = React66.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
8328
8418
|
ToastPrimitives.Title,
|
8329
8419
|
{
|
8330
8420
|
ref,
|
@@ -8337,7 +8427,7 @@ var ToastTitle = React67.forwardRef(({ className, size = "default", ...props },
|
|
8337
8427
|
}
|
8338
8428
|
));
|
8339
8429
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
8340
|
-
var ToastDescription =
|
8430
|
+
var ToastDescription = React66.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
8341
8431
|
ToastPrimitives.Description,
|
8342
8432
|
{
|
8343
8433
|
ref,
|
@@ -8352,11 +8442,11 @@ var ToastDescription = React67.forwardRef(({ className, size = "default", ...pro
|
|
8352
8442
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
8353
8443
|
|
8354
8444
|
// elements/toaster/Toaster.tsx
|
8355
|
-
var
|
8445
|
+
var import_react54 = __toESM(require("react"));
|
8356
8446
|
function Toaster(props) {
|
8357
8447
|
var _a;
|
8358
8448
|
let isRTL = props.direction === "rtl";
|
8359
|
-
return /* @__PURE__ */
|
8449
|
+
return /* @__PURE__ */ import_react54.default.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, (_a = props.toasts) == null ? void 0 : _a.map(function({
|
8360
8450
|
id,
|
8361
8451
|
title,
|
8362
8452
|
description,
|
@@ -8364,7 +8454,7 @@ function Toaster(props) {
|
|
8364
8454
|
action,
|
8365
8455
|
...toastProps
|
8366
8456
|
}) {
|
8367
|
-
return /* @__PURE__ */
|
8457
|
+
return /* @__PURE__ */ import_react54.default.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ import_react54.default.createElement(
|
8368
8458
|
"div",
|
8369
8459
|
{
|
8370
8460
|
className: cn(
|
@@ -8372,9 +8462,9 @@ function Toaster(props) {
|
|
8372
8462
|
action && "hawa-justify-between"
|
8373
8463
|
)
|
8374
8464
|
},
|
8375
|
-
/* @__PURE__ */
|
8376
|
-
/* @__PURE__ */
|
8377
|
-
/* @__PURE__ */
|
8465
|
+
/* @__PURE__ */ import_react54.default.createElement("div", { className: "hawa-flex hawa-h-full hawa-flex-col hawa-p-2 hawa-pe-0" }, /* @__PURE__ */ import_react54.default.createElement(ToastClose, null)),
|
8466
|
+
/* @__PURE__ */ import_react54.default.createElement("div", { className: "hawa-mx-0 hawa-h-auto hawa-max-h-full hawa-w-px hawa-bg-primary-foreground/10" }),
|
8467
|
+
/* @__PURE__ */ import_react54.default.createElement(
|
8378
8468
|
"div",
|
8379
8469
|
{
|
8380
8470
|
className: cn(
|
@@ -8382,11 +8472,11 @@ function Toaster(props) {
|
|
8382
8472
|
{ "hawa-p-4": size === "default", "hawa-p-2": size === "sm" }
|
8383
8473
|
)
|
8384
8474
|
},
|
8385
|
-
/* @__PURE__ */
|
8386
|
-
action && /* @__PURE__ */
|
8475
|
+
/* @__PURE__ */ import_react54.default.createElement("div", { className: "hawa-grid hawa-gap-1 hawa-text-start" }, title && /* @__PURE__ */ import_react54.default.createElement(ToastTitle, { size }, title), description && /* @__PURE__ */ import_react54.default.createElement(ToastDescription, { size }, description)),
|
8476
|
+
action && /* @__PURE__ */ import_react54.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-justify-center" }, action)
|
8387
8477
|
)
|
8388
8478
|
));
|
8389
|
-
}), /* @__PURE__ */
|
8479
|
+
}), /* @__PURE__ */ import_react54.default.createElement(
|
8390
8480
|
ToastViewport,
|
8391
8481
|
{
|
8392
8482
|
className: cn("hawa-gap-2", isRTL && "hawa-fixed hawa-left-0")
|
@@ -8395,20 +8485,20 @@ function Toaster(props) {
|
|
8395
8485
|
}
|
8396
8486
|
|
8397
8487
|
// elements/destroyableCard/DestroyableCard.tsx
|
8398
|
-
var
|
8488
|
+
var import_react55 = __toESM(require("react"));
|
8399
8489
|
var DestroyableCard = ({
|
8400
8490
|
position = "bottom-right",
|
8401
8491
|
fixed,
|
8402
8492
|
direction,
|
8403
8493
|
...props
|
8404
8494
|
}) => {
|
8405
|
-
const [closed, setClosed] = (0,
|
8406
|
-
const popUpRef = (0,
|
8495
|
+
const [closed, setClosed] = (0, import_react55.useState)(false);
|
8496
|
+
const popUpRef = (0, import_react55.useRef)(null);
|
8407
8497
|
const boxPosition = {
|
8408
8498
|
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
8409
8499
|
"bottom-left": "hawa-left-4 hawa-bottom-4"
|
8410
8500
|
};
|
8411
|
-
return /* @__PURE__ */
|
8501
|
+
return /* @__PURE__ */ import_react55.default.createElement(
|
8412
8502
|
"div",
|
8413
8503
|
{
|
8414
8504
|
className: cn(
|
@@ -8417,7 +8507,7 @@ var DestroyableCard = ({
|
|
8417
8507
|
),
|
8418
8508
|
ref: popUpRef
|
8419
8509
|
},
|
8420
|
-
/* @__PURE__ */
|
8510
|
+
/* @__PURE__ */ import_react55.default.createElement(
|
8421
8511
|
Card,
|
8422
8512
|
{
|
8423
8513
|
className: cn(
|
@@ -8426,7 +8516,7 @@ var DestroyableCard = ({
|
|
8426
8516
|
),
|
8427
8517
|
dir: direction
|
8428
8518
|
},
|
8429
|
-
/* @__PURE__ */
|
8519
|
+
/* @__PURE__ */ import_react55.default.createElement(
|
8430
8520
|
"button",
|
8431
8521
|
{
|
8432
8522
|
type: "button",
|
@@ -8445,7 +8535,7 @@ var DestroyableCard = ({
|
|
8445
8535
|
}, 200);
|
8446
8536
|
}
|
8447
8537
|
},
|
8448
|
-
/* @__PURE__ */
|
8538
|
+
/* @__PURE__ */ import_react55.default.createElement(
|
8449
8539
|
"svg",
|
8450
8540
|
{
|
8451
8541
|
"aria-hidden": "true",
|
@@ -8453,7 +8543,7 @@ var DestroyableCard = ({
|
|
8453
8543
|
fill: "currentColor",
|
8454
8544
|
viewBox: "0 0 20 20"
|
8455
8545
|
},
|
8456
|
-
/* @__PURE__ */
|
8546
|
+
/* @__PURE__ */ import_react55.default.createElement(
|
8457
8547
|
"path",
|
8458
8548
|
{
|
8459
8549
|
fillRule: "evenodd",
|
@@ -8463,13 +8553,13 @@ var DestroyableCard = ({
|
|
8463
8553
|
)
|
8464
8554
|
)
|
8465
8555
|
),
|
8466
|
-
/* @__PURE__ */
|
8556
|
+
/* @__PURE__ */ import_react55.default.createElement(CardContent, { headless: true }, props.children)
|
8467
8557
|
)
|
8468
8558
|
);
|
8469
8559
|
};
|
8470
8560
|
|
8471
8561
|
// elements/interfaceSettings/InterfaceSettings.tsx
|
8472
|
-
var
|
8562
|
+
var import_react56 = __toESM(require("react"));
|
8473
8563
|
var InterfaceSettings = ({
|
8474
8564
|
orientation = "horizontal",
|
8475
8565
|
width = "default",
|
@@ -8477,13 +8567,13 @@ var InterfaceSettings = ({
|
|
8477
8567
|
handleLanguage,
|
8478
8568
|
...props
|
8479
8569
|
}) => {
|
8480
|
-
const [color, setColor] = (0,
|
8481
|
-
const [language, setLanguage] = (0,
|
8570
|
+
const [color, setColor] = (0, import_react56.useState)(props.currentColorMode);
|
8571
|
+
const [language, setLanguage] = (0, import_react56.useState)(props.currentLanguage);
|
8482
8572
|
let orientationStyle = {
|
8483
8573
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
8484
8574
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
8485
8575
|
};
|
8486
|
-
return /* @__PURE__ */
|
8576
|
+
return /* @__PURE__ */ import_react56.default.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ import_react56.default.createElement(
|
8487
8577
|
Radio,
|
8488
8578
|
{
|
8489
8579
|
name: "language",
|
@@ -8501,7 +8591,7 @@ var InterfaceSettings = ({
|
|
8501
8591
|
{ value: "en", label: "English" }
|
8502
8592
|
]
|
8503
8593
|
}
|
8504
|
-
), /* @__PURE__ */
|
8594
|
+
), /* @__PURE__ */ import_react56.default.createElement(
|
8505
8595
|
Radio,
|
8506
8596
|
{
|
8507
8597
|
name: "theme",
|
@@ -8517,7 +8607,7 @@ var InterfaceSettings = ({
|
|
8517
8607
|
options: [
|
8518
8608
|
{
|
8519
8609
|
value: "light",
|
8520
|
-
label: /* @__PURE__ */
|
8610
|
+
label: /* @__PURE__ */ import_react56.default.createElement(
|
8521
8611
|
"svg",
|
8522
8612
|
{
|
8523
8613
|
width: "15",
|
@@ -8527,7 +8617,7 @@ var InterfaceSettings = ({
|
|
8527
8617
|
xmlns: "http://www.w3.org/2000/svg",
|
8528
8618
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
8529
8619
|
},
|
8530
|
-
/* @__PURE__ */
|
8620
|
+
/* @__PURE__ */ import_react56.default.createElement(
|
8531
8621
|
"path",
|
8532
8622
|
{
|
8533
8623
|
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",
|
@@ -8538,7 +8628,7 @@ var InterfaceSettings = ({
|
|
8538
8628
|
},
|
8539
8629
|
{
|
8540
8630
|
value: "dark",
|
8541
|
-
label: /* @__PURE__ */
|
8631
|
+
label: /* @__PURE__ */ import_react56.default.createElement(
|
8542
8632
|
"svg",
|
8543
8633
|
{
|
8544
8634
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -8549,7 +8639,7 @@ var InterfaceSettings = ({
|
|
8549
8639
|
stroke: "currentColor",
|
8550
8640
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
8551
8641
|
},
|
8552
|
-
/* @__PURE__ */
|
8642
|
+
/* @__PURE__ */ import_react56.default.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
8553
8643
|
)
|
8554
8644
|
}
|
8555
8645
|
]
|
@@ -8558,14 +8648,14 @@ var InterfaceSettings = ({
|
|
8558
8648
|
};
|
8559
8649
|
|
8560
8650
|
// elements/phoneMockup/PhoneMockup.tsx
|
8561
|
-
var
|
8651
|
+
var import_react57 = __toESM(require("react"));
|
8562
8652
|
var PhoneMockup = ({
|
8563
8653
|
children,
|
8564
8654
|
upperOverlayGradiant,
|
8565
8655
|
lowerOverlayGradiant,
|
8566
8656
|
phone,
|
8567
8657
|
hideButtons
|
8568
|
-
}) => /* @__PURE__ */
|
8658
|
+
}) => /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-relative hawa-mx-auto hawa-h-[600px] hawa-w-[300px] hawa-rounded-[2.5rem] hawa-border-[14px] hawa-border-gray-800 hawa-bg-gray-800 hawa-dark:border-gray-800" }, !hideButtons && /* @__PURE__ */ import_react57.default.createElement(import_react57.default.Fragment, null, /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[72px] hawa-h-[32px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[124px] hawa-h-[46px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-absolute hawa--left-[16px] hawa-top-[178px] hawa-h-[46px] hawa-w-[3px] hawa-rounded-l-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" }), /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-absolute hawa--right-[16px] hawa-top-[142px] hawa-h-[64px] hawa-w-[3px] hawa-rounded-r-lg hawa-bg-gray-800 hawa-dark:bg-gray-800" })), /* @__PURE__ */ import_react57.default.createElement("div", { className: "no-scrollbar hawa-left-0 hawa-h-[572px] hawa-w-[272px] hawa-overflow-y-scroll hawa-rounded-[2rem] hawa-bg-white hawa-[clip-path:inset(0px_-1px_0px_0px_round_2rem)] hawa-dark:bg-gray-800" }, children), upperOverlayGradiant && /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-left-0 hawa-top-0 hawa-h-[72px] hawa-w-[272px] hawa-rounded-t-[2rem] hawa-bg-gradient-to-t hawa-from-transparent hawa-to-black hawa-opacity-50 hawa-[clip-path:inset(0px_0px_0px_0px_round_0rem)]" }), lowerOverlayGradiant && /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-pointer-events-none hawa-absolute hawa-bottom-0 hawa-left-0 hawa-h-[72px] hawa-w-[272px] hawa-rounded-b-[2rem] hawa-bg-gradient-to-t hawa-from-black hawa-to-transparent hawa-opacity-50 hawa-[clip-path:inset(0px_0px_0px_0px_round_0rem)]" }));
|
8569
8659
|
// Annotate the CommonJS export names for ESM import in node:
|
8570
8660
|
0 && (module.exports = {
|
8571
8661
|
Accordion,
|