@sikka/hawa 0.26.18-next → 0.26.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/index.js +10 -12
- package/dist/accordion/index.mjs +8 -8
- package/dist/alert/index.js +8 -7
- package/dist/alert/index.mjs +7 -6
- package/dist/appLayout/index.js +13 -12
- package/dist/appLayout/index.mjs +12 -11
- package/dist/appMenubar/index.js +4 -4
- package/dist/appMenubar/index.mjs +2 -2
- package/dist/appStores/index.js +2 -2
- package/dist/appStores/index.mjs +1 -1
- package/dist/appTabs/index.js +4 -4
- package/dist/appTabs/index.mjs +2 -2
- package/dist/appTopbar/index.js +6 -6
- package/dist/appTopbar/index.mjs +4 -4
- package/dist/avatar/index.js +5 -5
- package/dist/avatar/index.mjs +4 -4
- package/dist/backToTop/index.js +8 -7
- package/dist/backToTop/index.mjs +7 -6
- package/dist/badge/index.js +4 -4
- package/dist/badge/index.mjs +2 -2
- package/dist/blocks/auth/index.js +38 -37
- package/dist/blocks/auth/index.mjs +24 -24
- package/dist/blocks/feedback/index.js +27 -26
- package/dist/blocks/feedback/index.mjs +11 -11
- package/dist/blocks/index.js +77 -76
- package/dist/blocks/index.mjs +34 -34
- package/dist/blocks/misc/index.js +31 -30
- package/dist/blocks/misc/index.mjs +14 -14
- package/dist/blocks/pricing/index.js +123 -122
- package/dist/blocks/pricing/index.mjs +18 -18
- package/dist/breadcrumb/index.js +2 -2
- package/dist/breadcrumb/index.mjs +1 -1
- package/dist/button/index.js +6 -5
- package/dist/button/index.mjs +5 -4
- package/dist/card/index.js +4 -4
- package/dist/card/index.mjs +2 -2
- package/dist/carousel/index.d.mts +1 -1
- package/dist/carousel/index.d.ts +1 -1
- package/dist/carousel/index.js +9 -18
- package/dist/carousel/index.mjs +7 -16
- package/dist/checkbox/index.js +4 -4
- package/dist/checkbox/index.mjs +2 -2
- package/dist/chip/index.js +4 -4
- package/dist/chip/index.mjs +2 -2
- package/dist/{chunk-343SRWR4.mjs → chunk-3GBITBPL.mjs} +2 -2
- package/dist/{chunk-TTKRRN7S.mjs → chunk-4IOG44R3.mjs} +2 -2
- package/dist/{chunk-3N6JJKMN.mjs → chunk-65TG6EVD.mjs} +5 -4
- package/dist/{chunk-LT3VHLAG.mjs → chunk-APZM24KK.mjs} +2 -2
- package/dist/{chunk-FYH74ZRQ.mjs → chunk-AREFDTXK.mjs} +9 -8
- package/dist/{chunk-FNVYY7ND.mjs → chunk-D22AALLE.mjs} +1 -1
- package/dist/{chunk-OD5WIQGQ.mjs → chunk-FDKCMEMD.mjs} +2 -2
- package/dist/{chunk-KNHT2UBG.mjs → chunk-KMCIHW76.mjs} +2 -2
- package/dist/{chunk-M2ZS3EDT.mjs → chunk-OAXF3RCQ.mjs} +2 -2
- package/dist/chunk-OTGCLEKC.mjs +62 -0
- package/dist/{chunk-OE23TTPS.mjs → chunk-POIP5U4M.mjs} +3 -3
- package/dist/{chunk-EYUG3GRC.mjs → chunk-SJ2Z6ZOG.mjs} +4 -4
- package/dist/{chunk-WRZFWCOQ.mjs → chunk-TGZRVRLP.mjs} +4 -4
- package/dist/{chunk-TE3BKEXL.mjs → chunk-TWNGV3RE.mjs} +1 -1
- package/dist/{chunk-ATUSR6VI.mjs → chunk-U3TZWNDZ.mjs} +4 -4
- package/dist/{chunk-W77KCP35.mjs → chunk-VQQ6MUX5.mjs} +2 -2
- package/dist/{chunk-SUS6O2PO.mjs → chunk-WPSUV4AD.mjs} +21 -21
- package/dist/{chunk-3KMBSNM3.mjs → chunk-Z5SL5QTQ.mjs} +11 -10
- package/dist/{chunk-ZCZ3WARS.mjs → chunk-ZS3FB3PO.mjs} +1 -1
- package/dist/codeBlock/index.js +153 -2454
- package/dist/codeBlock/index.mjs +129 -2393
- package/dist/collapsible/index.js +2 -2
- package/dist/collapsible/index.mjs +1 -1
- package/dist/colorPicker/index.js +7 -7
- package/dist/colorPicker/index.mjs +126 -2
- package/dist/combobox/index.js +193 -193
- package/dist/combobox/index.mjs +8 -8
- package/dist/command/index.js +5 -5
- package/dist/command/index.mjs +1 -1
- package/dist/copyrights/index.js +2 -2
- package/dist/copyrights/index.mjs +1 -1
- package/dist/count/index.js +2 -2
- package/dist/count/index.mjs +1 -1
- package/dist/dataTable/index.d.mts +1 -0
- package/dist/dataTable/index.d.ts +1 -0
- package/dist/dataTable/index.js +23 -16
- package/dist/dataTable/index.mjs +22 -15
- package/dist/destroyableCard/index.js +6 -8
- package/dist/destroyableCard/index.mjs +4 -4
- package/dist/dialog/index.js +4 -4
- package/dist/dialog/index.mjs +2 -2
- package/dist/docsLayout/index.js +12 -11
- package/dist/docsLayout/index.mjs +11 -10
- package/dist/docsSidebar/index.js +4 -4
- package/dist/docsSidebar/index.mjs +2 -2
- package/dist/dropdownMenu/index.js +4 -4
- package/dist/dropdownMenu/index.mjs +2 -2
- package/dist/elements/index.d.mts +2 -1
- package/dist/elements/index.d.ts +2 -1
- package/dist/elements/index.js +162 -164
- package/dist/elements/index.mjs +54 -57
- package/dist/fileDropzone/index.js +10 -9
- package/dist/fileDropzone/index.mjs +9 -8
- package/dist/fileUploader/index.js +2 -2
- package/dist/fileUploader/index.mjs +1 -1
- package/dist/glow/index.js +2 -2
- package/dist/glow/index.mjs +1 -1
- package/dist/hooks/index.d.mts +7 -7
- package/dist/hooks/index.d.ts +7 -7
- package/dist/hooks/index.js +16 -16
- package/dist/hooks/index.mjs +14 -14
- package/dist/index.css +0 -465
- package/dist/index.d.mts +9 -8
- package/dist/index.d.ts +9 -8
- package/dist/index.js +220 -222
- package/dist/index.mjs +219 -221
- package/dist/input/index.js +8 -8
- package/dist/input/index.mjs +4 -4
- package/dist/interfaceSettings/index.js +9 -9
- package/dist/interfaceSettings/index.mjs +4 -4
- package/dist/label/index.js +5 -5
- package/dist/label/index.mjs +4 -4
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +31 -30
- package/dist/layout/index.mjs +16 -16
- package/dist/loading/index.js +4 -4
- package/dist/loading/index.mjs +2 -2
- package/dist/logos/index.js +2 -2
- package/dist/logos/index.mjs +1 -1
- package/dist/navbar/index.js +5 -5
- package/dist/navbar/index.mjs +4 -4
- package/dist/navigationMenu/index.js +4 -4
- package/dist/navigationMenu/index.mjs +2 -2
- package/dist/pagination/index.js +4 -4
- package/dist/pagination/index.mjs +2 -2
- package/dist/passwordInput/index.js +15 -15
- package/dist/passwordInput/index.mjs +13 -13
- package/dist/phoneInput/index.js +11 -11
- package/dist/phoneInput/index.mjs +10 -10
- package/dist/pinInput/index.js +4 -4
- package/dist/pinInput/index.mjs +2 -2
- package/dist/popover/index.js +4 -4
- package/dist/popover/index.mjs +2 -2
- package/dist/progress/index.js +4 -4
- package/dist/progress/index.mjs +2 -2
- package/dist/progressCircle/index.js +4 -4
- package/dist/progressCircle/index.mjs +2 -2
- package/dist/radio/index.js +7 -7
- package/dist/radio/index.mjs +6 -6
- package/dist/scrollArea/index.js +4 -4
- package/dist/scrollArea/index.mjs +2 -2
- package/dist/scrollIndicator/index.js +2 -2
- package/dist/scrollIndicator/index.mjs +1 -1
- package/dist/select/index.js +8 -8
- package/dist/select/index.mjs +7 -7
- package/dist/separator/index.js +4 -4
- package/dist/separator/index.mjs +2 -2
- package/dist/sheet/index.js +4 -4
- package/dist/sheet/index.mjs +2 -2
- package/dist/sidebar/index.js +6 -6
- package/dist/sidebar/index.mjs +4 -4
- package/dist/signature/index.js +8 -8
- package/dist/signature/index.mjs +6 -6
- package/dist/simpleTable/index.js +6 -6
- package/dist/simpleTable/index.mjs +5 -5
- package/dist/skeleton/index.js +4 -4
- package/dist/skeleton/index.mjs +2 -2
- package/dist/slider/index.js +4 -4
- package/dist/slider/index.mjs +2 -2
- package/dist/sortButton/index.js +8 -7
- package/dist/sortButton/index.mjs +2 -2
- package/dist/splitButton/index.js +9 -8
- package/dist/splitButton/index.mjs +4 -4
- package/dist/stats/index.js +7 -7
- package/dist/stats/index.mjs +6 -6
- package/dist/stopPropagationWrapper/index.js +2 -2
- package/dist/stopPropagationWrapper/index.mjs +1 -1
- package/dist/switch/index.js +4 -4
- package/dist/switch/index.mjs +2 -2
- package/dist/table/index.js +4 -4
- package/dist/table/index.mjs +2 -2
- package/dist/tabs/index.js +5 -5
- package/dist/tabs/index.mjs +4 -4
- package/dist/textarea/index.js +7 -7
- package/dist/textarea/index.mjs +6 -6
- package/dist/toast/index.js +4 -4
- package/dist/toast/index.mjs +2 -2
- package/dist/toaster/index.js +6 -6
- package/dist/toaster/index.mjs +5 -5
- package/dist/tooltip/index.js +4 -4
- package/dist/tooltip/index.mjs +3 -3
- package/dist/types/index.js +1 -1
- package/package.json +16 -42
- package/README.md +0 -107
- package/dist/chunk-S36W2LDN.mjs +0 -189
package/dist/elements/index.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import {
|
2
2
|
useClipboard,
|
3
3
|
useToast
|
4
|
-
} from "../chunk-
|
4
|
+
} from "../chunk-3GBITBPL.mjs";
|
5
5
|
import {
|
6
6
|
Alert,
|
7
7
|
CheckMark,
|
@@ -28,7 +28,7 @@ import {
|
|
28
28
|
TabsTrigger,
|
29
29
|
Textarea,
|
30
30
|
UncheckMark
|
31
|
-
} from "../chunk-
|
31
|
+
} from "../chunk-WPSUV4AD.mjs";
|
32
32
|
import {
|
33
33
|
Sheet,
|
34
34
|
SheetClose,
|
@@ -40,7 +40,7 @@ import {
|
|
40
40
|
SheetPortal,
|
41
41
|
SheetTitle,
|
42
42
|
SheetTrigger
|
43
|
-
} from "../chunk-
|
43
|
+
} from "../chunk-VQQ6MUX5.mjs";
|
44
44
|
import {
|
45
45
|
Button,
|
46
46
|
Card,
|
@@ -73,13 +73,13 @@ import {
|
|
73
73
|
Tooltip,
|
74
74
|
buttonVariants,
|
75
75
|
cn
|
76
|
-
} from "../chunk-
|
76
|
+
} from "../chunk-Z5SL5QTQ.mjs";
|
77
77
|
|
78
|
-
//
|
78
|
+
// elements/accordion/Accordion.tsx
|
79
79
|
import * as React3 from "react";
|
80
80
|
import * as AccordionPrimitive3 from "@radix-ui/react-accordion";
|
81
81
|
|
82
|
-
//
|
82
|
+
// elements/accordion/AccordionContent.tsx
|
83
83
|
import * as React from "react";
|
84
84
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
85
85
|
var AccordionContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
@@ -96,7 +96,7 @@ var AccordionContent = React.forwardRef(({ className, children, ...props }, ref)
|
|
96
96
|
));
|
97
97
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
98
98
|
|
99
|
-
//
|
99
|
+
// elements/accordion/AccordionTrigger.tsx
|
100
100
|
import * as React2 from "react";
|
101
101
|
import * as AccordionPrimitive2 from "@radix-ui/react-accordion";
|
102
102
|
var AccordionTrigger = React2.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React2.createElement(AccordionPrimitive2.Header, { className: "hawa-flex" }, /* @__PURE__ */ React2.createElement(
|
@@ -130,7 +130,7 @@ var AccordionTrigger = React2.forwardRef(({ className, children, ...props }, ref
|
|
130
130
|
)));
|
131
131
|
AccordionTrigger.displayName = AccordionPrimitive2.Trigger.displayName;
|
132
132
|
|
133
|
-
//
|
133
|
+
// elements/accordion/Accordion.tsx
|
134
134
|
var Accordion = React3.forwardRef(
|
135
135
|
({
|
136
136
|
items,
|
@@ -201,17 +201,17 @@ var Accordion = React3.forwardRef(
|
|
201
201
|
);
|
202
202
|
Accordion.displayName = "Accordion";
|
203
203
|
|
204
|
-
//
|
204
|
+
// elements/accordion/AccordionItem.tsx
|
205
205
|
import * as React4 from "react";
|
206
206
|
import * as AccordionPrimitive4 from "@radix-ui/react-accordion";
|
207
207
|
var AccordionItem = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React4.createElement(AccordionPrimitive4.Item, { ref, className: cn(className), ...props }));
|
208
208
|
AccordionItem.displayName = "AccordionItem";
|
209
209
|
|
210
|
-
//
|
210
|
+
// elements/accordion/AccordionRoot.tsx
|
211
211
|
import * as AccordionPrimitive5 from "@radix-ui/react-accordion";
|
212
212
|
var AccordionRoot = AccordionPrimitive5.Root;
|
213
213
|
|
214
|
-
//
|
214
|
+
// elements/navigationMenu/NavigationMenu.tsx
|
215
215
|
import * as React5 from "react";
|
216
216
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
217
217
|
import { cva } from "class-variance-authority";
|
@@ -364,7 +364,7 @@ NavigationMenuRoot.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
364
364
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
365
365
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
366
366
|
|
367
|
-
//
|
367
|
+
// elements/dialog/Dialog.tsx
|
368
368
|
import * as React6 from "react";
|
369
369
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
370
370
|
var Dialog = DialogPrimitive.Root;
|
@@ -660,10 +660,10 @@ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
660
660
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
661
661
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
662
662
|
|
663
|
-
//
|
663
|
+
// elements/avatar/Avatar.tsx
|
664
664
|
import React8 from "react";
|
665
665
|
|
666
|
-
//
|
666
|
+
// elements/fileUploader/FileUploader.tsx
|
667
667
|
import React7, { useRef } from "react";
|
668
668
|
var FileUploader = ({ handleFile, className }) => {
|
669
669
|
const hiddenFileInput = useRef(null);
|
@@ -686,7 +686,7 @@ var FileUploader = ({ handleFile, className }) => {
|
|
686
686
|
));
|
687
687
|
};
|
688
688
|
|
689
|
-
//
|
689
|
+
// elements/avatar/Avatar.tsx
|
690
690
|
var Avatar = ({
|
691
691
|
isUploadable,
|
692
692
|
src,
|
@@ -776,7 +776,7 @@ var Avatar = ({
|
|
776
776
|
);
|
777
777
|
};
|
778
778
|
|
779
|
-
//
|
779
|
+
// elements/dataTable/DataTable.tsx
|
780
780
|
import * as React10 from "react";
|
781
781
|
import {
|
782
782
|
flexRender,
|
@@ -788,7 +788,7 @@ import {
|
|
788
788
|
useReactTable
|
789
789
|
} from "@tanstack/react-table";
|
790
790
|
|
791
|
-
//
|
791
|
+
// elements/table/Table.tsx
|
792
792
|
import * as React9 from "react";
|
793
793
|
var Table = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React9.createElement("div", { className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border" }, /* @__PURE__ */ React9.createElement(
|
794
794
|
"table",
|
@@ -898,7 +898,7 @@ var TableCaption = React9.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
898
898
|
));
|
899
899
|
TableCaption.displayName = "TableCaption";
|
900
900
|
|
901
|
-
//
|
901
|
+
// elements/dataTable/DataTable.tsx
|
902
902
|
var DataTable = ({
|
903
903
|
columns,
|
904
904
|
data,
|
@@ -920,9 +920,15 @@ var DataTable = ({
|
|
920
920
|
const [expanded, setExpanded] = React10.useState({});
|
921
921
|
const [columnVisibility, setColumnVisibility] = React10.useState({});
|
922
922
|
const [rowSelection, setRowSelection] = React10.useState({});
|
923
|
+
const visibleColumns = columns.filter(
|
924
|
+
(column) => {
|
925
|
+
var _a2;
|
926
|
+
return ((_a2 = column.meta) == null ? void 0 : _a2.hidden) !== true;
|
927
|
+
}
|
928
|
+
);
|
923
929
|
const table = useReactTable({
|
924
930
|
data,
|
925
|
-
columns,
|
931
|
+
columns: visibleColumns,
|
926
932
|
onExpandedChange: setExpanded,
|
927
933
|
getExpandedRowModel: getExpandedRowModel(),
|
928
934
|
onGlobalFilterChange: setGlobalFilter,
|
@@ -1217,7 +1223,7 @@ var DataTable = ({
|
|
1217
1223
|
));
|
1218
1224
|
};
|
1219
1225
|
|
1220
|
-
//
|
1226
|
+
// elements/backToTop/BackToTop.tsx
|
1221
1227
|
import React11, { useState as useState3, useEffect as useEffect2, useRef as useRef2 } from "react";
|
1222
1228
|
var BackToTop = ({ ...props }) => {
|
1223
1229
|
const [visible, setVisible] = useState3(false);
|
@@ -1314,11 +1320,11 @@ var BackToTop = ({ ...props }) => {
|
|
1314
1320
|
);
|
1315
1321
|
};
|
1316
1322
|
|
1317
|
-
//
|
1323
|
+
// elements/combobox/Combobox.tsx
|
1318
1324
|
import * as React13 from "react";
|
1319
1325
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
1320
1326
|
|
1321
|
-
//
|
1327
|
+
// elements/command/Command.tsx
|
1322
1328
|
import * as React12 from "react";
|
1323
1329
|
import { Command as CommandPrimitive } from "cmdk";
|
1324
1330
|
var Command = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12.createElement(
|
@@ -1444,7 +1450,7 @@ var CommandShortcut = ({
|
|
1444
1450
|
};
|
1445
1451
|
CommandShortcut.displayName = "CommandShortcut";
|
1446
1452
|
|
1447
|
-
//
|
1453
|
+
// elements/combobox/Combobox.tsx
|
1448
1454
|
var Combobox = React13.forwardRef(
|
1449
1455
|
({
|
1450
1456
|
labelKey = "label",
|
@@ -1582,7 +1588,7 @@ var Combobox = React13.forwardRef(
|
|
1582
1588
|
}
|
1583
1589
|
);
|
1584
1590
|
|
1585
|
-
//
|
1591
|
+
// elements/fileDropzone/FileDropzone.tsx
|
1586
1592
|
import React14, { useEffect as useEffect3, useState as useState5 } from "react";
|
1587
1593
|
import { useDropzone } from "react-dropzone";
|
1588
1594
|
import clsx from "clsx";
|
@@ -1803,7 +1809,7 @@ var FileDropzone = ({
|
|
1803
1809
|
)));
|
1804
1810
|
};
|
1805
1811
|
|
1806
|
-
//
|
1812
|
+
// elements/sortButton/SortButton.tsx
|
1807
1813
|
import React15 from "react";
|
1808
1814
|
var SortButton = (props) => {
|
1809
1815
|
return /* @__PURE__ */ React15.createElement(
|
@@ -1838,7 +1844,7 @@ var SortButton = (props) => {
|
|
1838
1844
|
);
|
1839
1845
|
};
|
1840
1846
|
|
1841
|
-
//
|
1847
|
+
// elements/switch/Switch.tsx
|
1842
1848
|
import * as React16 from "react";
|
1843
1849
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
1844
1850
|
var Switch = React16.forwardRef(
|
@@ -1915,7 +1921,7 @@ var Switch = React16.forwardRef(
|
|
1915
1921
|
);
|
1916
1922
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
1917
1923
|
|
1918
|
-
//
|
1924
|
+
// elements/breadcrumb/Breadcrumb.tsx
|
1919
1925
|
import React17 from "react";
|
1920
1926
|
var Breadcrumb = ({
|
1921
1927
|
breadcrumbLinks,
|
@@ -1939,7 +1945,7 @@ var Breadcrumb = ({
|
|
1939
1945
|
)));
|
1940
1946
|
};
|
1941
1947
|
|
1942
|
-
//
|
1948
|
+
// elements/appStores/AppStores.tsx
|
1943
1949
|
import React18 from "react";
|
1944
1950
|
var AppStores = (props) => {
|
1945
1951
|
return /* @__PURE__ */ React18.createElement("div", { className: "hawa-flex hawa-justify-center" }, /* @__PURE__ */ React18.createElement("div", null, props.store === "apple" ? /* @__PURE__ */ React18.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__ */ React18.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React18.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ React18.createElement(
|
@@ -1975,7 +1981,7 @@ var AppStores = (props) => {
|
|
1975
1981
|
))), /* @__PURE__ */ React18.createElement("div", null, /* @__PURE__ */ React18.createElement("div", { className: "hawa-text-xs" }, "GET IT ON"), /* @__PURE__ */ React18.createElement("div", { className: "hawa--mt-1 hawa-font-sans hawa-text-xl hawa-font-semibold" }, "Google Play")))));
|
1976
1982
|
};
|
1977
1983
|
|
1978
|
-
//
|
1984
|
+
// elements/badge/Badge.tsx
|
1979
1985
|
import React19, { useEffect as useEffect5, useState as useState7, useRef as useRef4 } from "react";
|
1980
1986
|
var Badge = ({
|
1981
1987
|
anchor,
|
@@ -2052,7 +2058,7 @@ var BadgedComponent = ({
|
|
2052
2058
|
), children);
|
2053
2059
|
};
|
2054
2060
|
|
2055
|
-
//
|
2061
|
+
// elements/colorPicker/ColorPicker.tsx
|
2056
2062
|
import React20, {
|
2057
2063
|
useState as useState8,
|
2058
2064
|
useEffect as useEffect6
|
@@ -2130,7 +2136,7 @@ var ColorPicker = ({
|
|
2130
2136
|
));
|
2131
2137
|
};
|
2132
2138
|
|
2133
|
-
//
|
2139
|
+
// elements/progressCircle/ProgressCircle.tsx
|
2134
2140
|
import React21 from "react";
|
2135
2141
|
var size2config = {
|
2136
2142
|
xs: {
|
@@ -2241,7 +2247,7 @@ var ProgressCircle = React21.forwardRef((props, ref) => {
|
|
2241
2247
|
});
|
2242
2248
|
ProgressCircle.displayName = "ProgressCircle";
|
2243
2249
|
|
2244
|
-
//
|
2250
|
+
// elements/pagination/Pagination.tsx
|
2245
2251
|
import React22 from "react";
|
2246
2252
|
import { Pagination as PaginationPrimitive } from "react-headless-pagination";
|
2247
2253
|
var Pagination = ({
|
@@ -2353,7 +2359,7 @@ var Pagination = ({
|
|
2353
2359
|
);
|
2354
2360
|
};
|
2355
2361
|
|
2356
|
-
//
|
2362
|
+
// elements/passwordInput/PasswordInput.tsx
|
2357
2363
|
import React23, { useEffect as useEffect7, useState as useState9 } from "react";
|
2358
2364
|
var PasswordStrengthIndicator = ({ strength }) => {
|
2359
2365
|
const strengthLevels = [
|
@@ -2487,7 +2493,7 @@ var PasswordInput = ({
|
|
2487
2493
|
), /* @__PURE__ */ React23.createElement(PasswordStrengthIndicator, { strength: currentStr }));
|
2488
2494
|
};
|
2489
2495
|
|
2490
|
-
//
|
2496
|
+
// elements/slider/Slider.tsx
|
2491
2497
|
import * as React24 from "react";
|
2492
2498
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
2493
2499
|
var Slider = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React24.createElement(
|
@@ -2505,7 +2511,7 @@ var Slider = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
2505
2511
|
));
|
2506
2512
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
2507
2513
|
|
2508
|
-
//
|
2514
|
+
// elements/simpleTable/SimpleTable.tsx
|
2509
2515
|
import * as React25 from "react";
|
2510
2516
|
import {
|
2511
2517
|
flexRender as flexRender2,
|
@@ -2577,7 +2583,7 @@ var SimpleTable = ({
|
|
2577
2583
|
);
|
2578
2584
|
};
|
2579
2585
|
|
2580
|
-
//
|
2586
|
+
// elements/scrollIndicator/ScrollIndicator.tsx
|
2581
2587
|
import React26, { useState as useState10, useEffect as useEffect8 } from "react";
|
2582
2588
|
var ScrollIndicator = ({
|
2583
2589
|
anchor,
|
@@ -2618,7 +2624,7 @@ var ScrollIndicator = ({
|
|
2618
2624
|
);
|
2619
2625
|
};
|
2620
2626
|
|
2621
|
-
//
|
2627
|
+
// elements/codeBlock/CodeBlock.tsx
|
2622
2628
|
import React27, { useState as useState11 } from "react";
|
2623
2629
|
import { Highlight, themes } from "prism-react-renderer";
|
2624
2630
|
var CodeBlock = ({
|
@@ -2753,7 +2759,7 @@ var CodeBlock = ({
|
|
2753
2759
|
);
|
2754
2760
|
};
|
2755
2761
|
|
2756
|
-
//
|
2762
|
+
// elements/carousel/Carousel.tsx
|
2757
2763
|
import React28, { useEffect as useEffect10, useState as useState12 } from "react";
|
2758
2764
|
import useEmblaCarousel from "embla-carousel-react";
|
2759
2765
|
var Carousel = ({
|
@@ -2764,10 +2770,9 @@ var Carousel = ({
|
|
2764
2770
|
autoplayInterval = 3e3,
|
2765
2771
|
...props
|
2766
2772
|
}) => {
|
2767
|
-
const { loop } = options;
|
2768
2773
|
const [emblaRef, emblaApi] = useEmblaCarousel({
|
2769
2774
|
...options,
|
2770
|
-
loop: autoplay ? true : loop || false
|
2775
|
+
loop: autoplay ? true : (options == null ? void 0 : options.loop) || false
|
2771
2776
|
});
|
2772
2777
|
const [selectedIndex, setSelectedIndex] = useState12(0);
|
2773
2778
|
useEffect10(() => {
|
@@ -2826,12 +2831,12 @@ var Dots = ({ onDotClick, itemsLength, selectedIndex }) => {
|
|
2826
2831
|
return /* @__PURE__ */ React28.createElement(
|
2827
2832
|
"div",
|
2828
2833
|
{
|
2834
|
+
key: index,
|
2829
2835
|
onClick: () => onDotClick(index),
|
2830
2836
|
className: cn(
|
2831
2837
|
"hawa-h-2 hawa-rounded-full hawa-bg-primary hawa-transition-all hawa-duration-300 hover:hawa-cursor-pointer",
|
2832
2838
|
!selected ? "hawa-w-2 hawa-opacity-50" : "hawa-w-6 hawa-opacity-100"
|
2833
|
-
)
|
2834
|
-
key: index
|
2839
|
+
)
|
2835
2840
|
}
|
2836
2841
|
);
|
2837
2842
|
}));
|
@@ -2840,11 +2845,7 @@ var CarouselControls = (props) => {
|
|
2840
2845
|
return /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-justify-end hawa-gap-2 " }, /* @__PURE__ */ React28.createElement(
|
2841
2846
|
"button",
|
2842
2847
|
{
|
2843
|
-
onClick: () =>
|
2844
|
-
if (props.canScrollPrev) {
|
2845
|
-
props.onPrev();
|
2846
|
-
}
|
2847
|
-
},
|
2848
|
+
onClick: () => props.canScrollPrev && props.onPrev(),
|
2848
2849
|
disabled: !props.canScrollPrev,
|
2849
2850
|
className: cn(
|
2850
2851
|
"hawa-absolute hawa-start-0 hawa-top-1/2 -hawa-translate-y-2 hawa-rounded-full hawa-p-2 hawa-text-white ",
|
@@ -2866,11 +2867,7 @@ var CarouselControls = (props) => {
|
|
2866
2867
|
), /* @__PURE__ */ React28.createElement(
|
2867
2868
|
"button",
|
2868
2869
|
{
|
2869
|
-
onClick: () =>
|
2870
|
-
if (props.canScrollNext) {
|
2871
|
-
props.onNext();
|
2872
|
-
}
|
2873
|
-
},
|
2870
|
+
onClick: () => props.canScrollNext && props.onNext(),
|
2874
2871
|
disabled: !props.canScrollNext,
|
2875
2872
|
className: cn(
|
2876
2873
|
"hawa-absolute hawa-end-0 hawa-top-1/2 -hawa-translate-y-2 hawa-rounded-full hawa-p-2 hawa-text-white ",
|
@@ -2892,13 +2889,13 @@ var CarouselControls = (props) => {
|
|
2892
2889
|
));
|
2893
2890
|
};
|
2894
2891
|
|
2895
|
-
//
|
2892
|
+
// elements/count/Count.tsx
|
2896
2893
|
import React29 from "react";
|
2897
2894
|
var Count = (props) => {
|
2898
2895
|
return /* @__PURE__ */ React29.createElement("div", { className: "hawa-flex hawa-h-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-px-2" }, /* @__PURE__ */ React29.createElement("div", null, props.icon), /* @__PURE__ */ React29.createElement("div", { className: "hawa-text-sm" }, props.count));
|
2899
2896
|
};
|
2900
2897
|
|
2901
|
-
//
|
2898
|
+
// elements/toast/Toast.tsx
|
2902
2899
|
import * as React30 from "react";
|
2903
2900
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
2904
2901
|
import { cva as cva2 } from "class-variance-authority";
|
@@ -3035,7 +3032,7 @@ var ToastDescription = React30.forwardRef(({ className, size = "default", ...pro
|
|
3035
3032
|
));
|
3036
3033
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
3037
3034
|
|
3038
|
-
//
|
3035
|
+
// elements/toaster/Toaster.tsx
|
3039
3036
|
import React31 from "react";
|
3040
3037
|
function Toaster(props) {
|
3041
3038
|
const { toasts } = useToast();
|
@@ -3078,7 +3075,7 @@ function Toaster(props) {
|
|
3078
3075
|
));
|
3079
3076
|
}
|
3080
3077
|
|
3081
|
-
//
|
3078
|
+
// elements/destroyableCard/DestroyableCard.tsx
|
3082
3079
|
import React32, { useRef as useRef5, useState as useState13 } from "react";
|
3083
3080
|
var DestroyableCard = ({
|
3084
3081
|
position = "bottom-right",
|
@@ -3152,7 +3149,7 @@ var DestroyableCard = ({
|
|
3152
3149
|
);
|
3153
3150
|
};
|
3154
3151
|
|
3155
|
-
//
|
3152
|
+
// elements/interfaceSettings/InterfaceSettings.tsx
|
3156
3153
|
import React33, { useState as useState14 } from "react";
|
3157
3154
|
var InterfaceSettings = ({
|
3158
3155
|
orientation = "horizontal",
|
@@ -27,33 +27,33 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
29
|
|
30
|
-
//
|
30
|
+
// elements/fileDropzone/index.ts
|
31
31
|
var fileDropzone_exports = {};
|
32
32
|
__export(fileDropzone_exports, {
|
33
33
|
FileDropzone: () => FileDropzone
|
34
34
|
});
|
35
35
|
module.exports = __toCommonJS(fileDropzone_exports);
|
36
36
|
|
37
|
-
//
|
37
|
+
// elements/fileDropzone/FileDropzone.tsx
|
38
38
|
var import_react3 = __toESM(require("react"));
|
39
39
|
var import_react_dropzone = require("react-dropzone");
|
40
40
|
var import_clsx2 = __toESM(require("clsx"));
|
41
41
|
|
42
|
-
//
|
42
|
+
// elements/alert/Alert.tsx
|
43
43
|
var import_react2 = __toESM(require("react"));
|
44
44
|
|
45
|
-
//
|
45
|
+
// util/index.ts
|
46
46
|
var import_clsx = require("clsx");
|
47
47
|
var import_tailwind_merge = require("tailwind-merge");
|
48
48
|
function cn(...inputs) {
|
49
49
|
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
50
50
|
}
|
51
51
|
|
52
|
-
//
|
52
|
+
// elements/button/Button.tsx
|
53
53
|
var React2 = __toESM(require("react"));
|
54
54
|
var import_class_variance_authority = require("class-variance-authority");
|
55
55
|
|
56
|
-
//
|
56
|
+
// elements/loading/Loading.tsx
|
57
57
|
var import_react = __toESM(require("react"));
|
58
58
|
var Loading = ({
|
59
59
|
design = "spinner",
|
@@ -230,7 +230,7 @@ var Loading = ({
|
|
230
230
|
}
|
231
231
|
};
|
232
232
|
|
233
|
-
//
|
233
|
+
// elements/button/Button.tsx
|
234
234
|
var buttonVariants = (0, import_class_variance_authority.cva)(
|
235
235
|
"hawa-inline-flex hawa-items-center hawa-select-none hawa-rounded-md hawa-text-sm hawa-font-medium 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",
|
236
236
|
{
|
@@ -283,6 +283,7 @@ var Button = React2.forwardRef(
|
|
283
283
|
className: cn(
|
284
284
|
buttonVariants({ variant, size, className }),
|
285
285
|
centered && "hawa-justify-center"
|
286
|
+
// "hawa-bg-red-500"
|
286
287
|
),
|
287
288
|
ref,
|
288
289
|
...props
|
@@ -301,7 +302,7 @@ var Button = React2.forwardRef(
|
|
301
302
|
);
|
302
303
|
Button.displayName = "Button";
|
303
304
|
|
304
|
-
//
|
305
|
+
// elements/alert/Alert.tsx
|
305
306
|
var Alert = ({
|
306
307
|
variant = "normal",
|
307
308
|
direction = "ltr",
|
@@ -441,7 +442,7 @@ var Alert = ({
|
|
441
442
|
));
|
442
443
|
};
|
443
444
|
|
444
|
-
//
|
445
|
+
// elements/fileDropzone/FileDropzone.tsx
|
445
446
|
var FileDropzone = ({
|
446
447
|
texts,
|
447
448
|
files,
|
@@ -1,20 +1,20 @@
|
|
1
1
|
import {
|
2
2
|
cn
|
3
|
-
} from "../chunk-
|
3
|
+
} from "../chunk-TWNGV3RE.mjs";
|
4
4
|
|
5
|
-
//
|
5
|
+
// elements/fileDropzone/FileDropzone.tsx
|
6
6
|
import React4, { useEffect as useEffect2, useState as useState2 } from "react";
|
7
7
|
import { useDropzone } from "react-dropzone";
|
8
8
|
import clsx from "clsx";
|
9
9
|
|
10
|
-
//
|
10
|
+
// elements/alert/Alert.tsx
|
11
11
|
import React3, { useRef, useState, useEffect } from "react";
|
12
12
|
|
13
|
-
//
|
13
|
+
// elements/button/Button.tsx
|
14
14
|
import * as React2 from "react";
|
15
15
|
import { cva } from "class-variance-authority";
|
16
16
|
|
17
|
-
//
|
17
|
+
// elements/loading/Loading.tsx
|
18
18
|
import React from "react";
|
19
19
|
var Loading = ({
|
20
20
|
design = "spinner",
|
@@ -191,7 +191,7 @@ var Loading = ({
|
|
191
191
|
}
|
192
192
|
};
|
193
193
|
|
194
|
-
//
|
194
|
+
// elements/button/Button.tsx
|
195
195
|
var buttonVariants = cva(
|
196
196
|
"hawa-inline-flex hawa-items-center hawa-select-none hawa-rounded-md hawa-text-sm hawa-font-medium 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",
|
197
197
|
{
|
@@ -244,6 +244,7 @@ var Button = React2.forwardRef(
|
|
244
244
|
className: cn(
|
245
245
|
buttonVariants({ variant, size, className }),
|
246
246
|
centered && "hawa-justify-center"
|
247
|
+
// "hawa-bg-red-500"
|
247
248
|
),
|
248
249
|
ref,
|
249
250
|
...props
|
@@ -262,7 +263,7 @@ var Button = React2.forwardRef(
|
|
262
263
|
);
|
263
264
|
Button.displayName = "Button";
|
264
265
|
|
265
|
-
//
|
266
|
+
// elements/alert/Alert.tsx
|
266
267
|
var Alert = ({
|
267
268
|
variant = "normal",
|
268
269
|
direction = "ltr",
|
@@ -402,7 +403,7 @@ var Alert = ({
|
|
402
403
|
));
|
403
404
|
};
|
404
405
|
|
405
|
-
//
|
406
|
+
// elements/fileDropzone/FileDropzone.tsx
|
406
407
|
var FileDropzone = ({
|
407
408
|
texts,
|
408
409
|
files,
|
@@ -27,14 +27,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
29
|
|
30
|
-
//
|
30
|
+
// elements/fileUploader/index.ts
|
31
31
|
var fileUploader_exports = {};
|
32
32
|
__export(fileUploader_exports, {
|
33
33
|
FileUploader: () => FileUploader
|
34
34
|
});
|
35
35
|
module.exports = __toCommonJS(fileUploader_exports);
|
36
36
|
|
37
|
-
//
|
37
|
+
// elements/fileUploader/FileUploader.tsx
|
38
38
|
var import_react = __toESM(require("react"));
|
39
39
|
var FileUploader = ({ handleFile, className }) => {
|
40
40
|
const hiddenFileInput = (0, import_react.useRef)(null);
|
package/dist/glow/index.js
CHANGED
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
29
|
|
30
|
-
//
|
30
|
+
// elements/glow/index.ts
|
31
31
|
var glow_exports = {};
|
32
32
|
__export(glow_exports, {
|
33
33
|
Glow: () => Glow,
|
@@ -35,7 +35,7 @@ __export(glow_exports, {
|
|
35
35
|
});
|
36
36
|
module.exports = __toCommonJS(glow_exports);
|
37
37
|
|
38
|
-
//
|
38
|
+
// elements/glow/Glow.tsx
|
39
39
|
var import_react = __toESM(require("react"));
|
40
40
|
var GlowCapture = ({ className = "", size = 400, ...rest }) => {
|
41
41
|
const element = (0, import_react.useRef)(null);
|
package/dist/glow/index.mjs
CHANGED
package/dist/hooks/index.d.mts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import * as React$1 from 'react';
|
2
2
|
import React__default, { useLayoutEffect } from 'react';
|
3
3
|
import { T as ToastProps, a as ToastActionElement } from '../Toast-VBd4UvlM.mjs';
|
4
|
-
import * as embla_carousel from 'embla-carousel';
|
5
4
|
import 'class-variance-authority/types';
|
6
5
|
import '@radix-ui/react-toast';
|
7
6
|
import 'class-variance-authority';
|
@@ -53,13 +52,14 @@ declare function useToast(): {
|
|
53
52
|
toasts: ToasterToast[];
|
54
53
|
};
|
55
54
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
55
|
+
type DialogCarouselType = {
|
56
|
+
canScrollPrev?: any;
|
57
|
+
emblaRef?: any;
|
58
|
+
emblaApi?: any;
|
59
|
+
nextStep?: any;
|
60
|
+
prevStep?: any;
|
62
61
|
};
|
62
|
+
declare const useDialogCarousel: (options?: any) => DialogCarouselType;
|
63
63
|
|
64
64
|
declare const useMultiStepDialog: (initialStep: any, stepIds: any[], setOpenDialog: any) => {
|
65
65
|
currentStep: any;
|
package/dist/hooks/index.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import * as React$1 from 'react';
|
2
2
|
import React__default, { useLayoutEffect } from 'react';
|
3
3
|
import { T as ToastProps, a as ToastActionElement } from '../Toast-pOd4uGZz.js';
|
4
|
-
import * as embla_carousel from 'embla-carousel';
|
5
4
|
import 'class-variance-authority/types';
|
6
5
|
import '@radix-ui/react-toast';
|
7
6
|
import 'class-variance-authority';
|
@@ -53,13 +52,14 @@ declare function useToast(): {
|
|
53
52
|
toasts: ToasterToast[];
|
54
53
|
};
|
55
54
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
55
|
+
type DialogCarouselType = {
|
56
|
+
canScrollPrev?: any;
|
57
|
+
emblaRef?: any;
|
58
|
+
emblaApi?: any;
|
59
|
+
nextStep?: any;
|
60
|
+
prevStep?: any;
|
62
61
|
};
|
62
|
+
declare const useDialogCarousel: (options?: any) => DialogCarouselType;
|
63
63
|
|
64
64
|
declare const useMultiStepDialog: (initialStep: any, stepIds: any[], setOpenDialog: any) => {
|
65
65
|
currentStep: any;
|