@sikka/hawa 0.35.5-next → 0.36.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/{Chip-BtgTAs8x.d.mts → Chip-CGl24Kd9.d.mts} +2 -2
- package/dist/{Chip-DQsP5hFS.d.ts → Chip-Cato49ar.d.ts} +2 -2
- package/dist/accordion/index.d.mts +1 -1
- package/dist/accordion/index.d.ts +1 -1
- package/dist/accordion/index.js +6 -4
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs +6 -4
- package/dist/accordion/index.mjs.map +1 -1
- package/dist/appLayout/index.js +180 -172
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +201 -193
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +28 -5
- package/dist/blocks/auth/index.mjs +4 -4
- package/dist/blocks/feedback/index.js +0 -1
- package/dist/blocks/feedback/index.mjs +1 -1
- package/dist/blocks/index.js +94 -69
- package/dist/blocks/index.mjs +12 -12
- package/dist/blocks/misc/index.js +81 -56
- package/dist/blocks/misc/index.mjs +65 -65
- package/dist/blocks/pricing/index.js +6 -4
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/chip/index.d.mts +2 -2
- package/dist/chip/index.d.ts +2 -2
- package/dist/chip/index.js +6 -4
- package/dist/chip/index.js.map +1 -1
- package/dist/chip/index.mjs +6 -4
- package/dist/chip/index.mjs.map +1 -1
- package/dist/{chunk-HSRW7X3Z.mjs → chunk-6QIOEUE2.mjs} +1 -1
- package/dist/{chunk-JEZLVXSU.mjs → chunk-BXBSZD5X.mjs} +26 -2
- package/dist/{chunk-LVXG3SMD.mjs → chunk-CJ57JBYA.mjs} +6 -4
- package/dist/{chunk-CD6AQVU3.mjs → chunk-HLYAX77R.mjs} +0 -1
- package/dist/{chunk-G7JHUC5N.mjs → chunk-NNPNQK6F.mjs} +211 -4
- package/dist/chunk-SYGWSBJL.mjs +63 -0
- package/dist/{chunk-TERP5K6R.mjs → chunk-T33FXOHA.mjs} +29 -189
- package/dist/colorPicker/index.js +1 -1
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs +1 -1
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/dataTable/index.js +41 -5
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +41 -5
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.d.mts +1 -0
- package/dist/datePicker/index.d.ts +1 -0
- package/dist/datePicker/index.js +3 -2
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +3 -2
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +8 -4
- package/dist/elements/index.d.ts +8 -4
- package/dist/elements/index.js +124 -87
- package/dist/elements/index.mjs +25 -13
- package/dist/hooks/index.d.mts +4 -1
- package/dist/hooks/index.d.ts +4 -1
- package/dist/hooks/index.js +31 -2
- package/dist/hooks/index.mjs +4 -2
- package/dist/index.css +10 -0
- package/dist/index.d.mts +11 -5
- package/dist/index.d.ts +11 -5
- package/dist/index.js +225 -189
- package/dist/index.mjs +771 -736
- package/dist/input/index.d.mts +6 -2
- package/dist/input/index.d.ts +6 -2
- package/dist/input/index.js +26 -2
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +26 -2
- package/dist/input/index.mjs.map +1 -1
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +289 -281
- package/dist/layout/index.mjs +24 -56
- package/dist/passwordInput/index.js +26 -2
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +26 -2
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js +1 -2
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +1 -2
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/pinInput/index.js +1 -1
- package/dist/pinInput/index.js.map +1 -1
- package/dist/pinInput/index.mjs +1 -1
- package/dist/pinInput/index.mjs.map +1 -1
- package/dist/select/index.js +0 -1
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +0 -1
- package/dist/select/index.mjs.map +1 -1
- package/dist/sidebar/index.js +6 -4
- package/dist/sidebar/index.js.map +1 -1
- package/dist/sidebar/index.mjs +6 -4
- package/dist/sidebar/index.mjs.map +1 -1
- package/dist/tabs/index.d.mts +1 -1
- package/dist/tabs/index.d.ts +1 -1
- package/dist/tabs/index.js +26 -24
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +30 -28
- package/dist/tabs/index.mjs.map +1 -1
- package/package.json +7 -8
- package/dist/chunk-545D35G6.mjs +0 -54
package/dist/elements/index.mjs
CHANGED
@@ -1,10 +1,7 @@
|
|
1
1
|
"use client";
|
2
2
|
import {
|
3
3
|
Alert,
|
4
|
-
CheckMark,
|
5
4
|
Checkbox,
|
6
|
-
EyeIcon,
|
7
|
-
HiddenEyeIcon,
|
8
5
|
Input,
|
9
6
|
PhoneInput,
|
10
7
|
PinInput,
|
@@ -24,9 +21,8 @@ import {
|
|
24
21
|
TabsContent,
|
25
22
|
TabsList,
|
26
23
|
TabsTrigger,
|
27
|
-
Textarea
|
28
|
-
|
29
|
-
} from "../chunk-TERP5K6R.mjs";
|
24
|
+
Textarea
|
25
|
+
} from "../chunk-T33FXOHA.mjs";
|
30
26
|
import {
|
31
27
|
useClipboard
|
32
28
|
} from "../chunk-OPYDG34F.mjs";
|
@@ -41,7 +37,7 @@ import {
|
|
41
37
|
SheetPortal,
|
42
38
|
SheetTitle,
|
43
39
|
SheetTrigger
|
44
|
-
} from "../chunk-
|
40
|
+
} from "../chunk-6QIOEUE2.mjs";
|
45
41
|
import {
|
46
42
|
Button,
|
47
43
|
Card,
|
@@ -50,6 +46,7 @@ import {
|
|
50
46
|
CardFooter,
|
51
47
|
CardHeader,
|
52
48
|
CardTitle,
|
49
|
+
CheckMark,
|
53
50
|
Chip,
|
54
51
|
DropdownMenu,
|
55
52
|
DropdownMenuCheckboxItem,
|
@@ -68,18 +65,21 @@ import {
|
|
68
65
|
DropdownMenuSubContent,
|
69
66
|
DropdownMenuSubTrigger,
|
70
67
|
DropdownMenuTrigger,
|
68
|
+
EyeIcon,
|
69
|
+
HiddenEyeIcon,
|
71
70
|
Label,
|
72
71
|
Loading,
|
73
72
|
Logos,
|
74
73
|
Skeleton,
|
75
74
|
Tooltip,
|
75
|
+
UncheckMark,
|
76
76
|
buttonVariants,
|
77
77
|
calculateLuminance,
|
78
78
|
cn
|
79
|
-
} from "../chunk-
|
79
|
+
} from "../chunk-NNPNQK6F.mjs";
|
80
80
|
import {
|
81
81
|
__require
|
82
|
-
} from "../chunk-
|
82
|
+
} from "../chunk-SYGWSBJL.mjs";
|
83
83
|
|
84
84
|
// elements/accordion/Accordion.tsx
|
85
85
|
import * as React3 from "react";
|
@@ -906,6 +906,7 @@ TableHeader.displayName = "TableHeader";
|
|
906
906
|
TableCaption.displayName = "TableCaption";
|
907
907
|
|
908
908
|
// elements/dataTable/DataTable.tsx
|
909
|
+
var LOCAL_STORAGE_KEY = "datatable-column-visibility";
|
909
910
|
var DataTable = ({
|
910
911
|
columns,
|
911
912
|
data,
|
@@ -925,7 +926,10 @@ var DataTable = ({
|
|
925
926
|
);
|
926
927
|
const [globalFilter, setGlobalFilter] = React10.useState("");
|
927
928
|
const [expanded, setExpanded] = React10.useState({});
|
928
|
-
const [columnVisibility, setColumnVisibility] = React10.useState({
|
929
|
+
const [columnVisibility, setColumnVisibility] = React10.useState(() => {
|
930
|
+
const savedVisibility = localStorage.getItem(LOCAL_STORAGE_KEY);
|
931
|
+
return savedVisibility ? JSON.parse(savedVisibility) : {};
|
932
|
+
});
|
929
933
|
const [rowSelection, setRowSelection] = React10.useState({});
|
930
934
|
const table = useReactTable({
|
931
935
|
data,
|
@@ -955,12 +959,20 @@ var DataTable = ({
|
|
955
959
|
label: `${item} / ${pageText}`,
|
956
960
|
value: item
|
957
961
|
}));
|
962
|
+
React10.useEffect(() => {
|
963
|
+
localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(columnVisibility));
|
964
|
+
}, [columnVisibility]);
|
958
965
|
React10.useEffect(() => {
|
959
966
|
setColumnVisibility((prev) => {
|
960
967
|
let newColumnVisibility = {};
|
961
968
|
columns.forEach((column) => {
|
962
969
|
var _a2;
|
963
|
-
|
970
|
+
const savedVisibility = prev[column.accessorKey];
|
971
|
+
if (savedVisibility !== void 0) {
|
972
|
+
newColumnVisibility[column.accessorKey] = savedVisibility;
|
973
|
+
} else {
|
974
|
+
newColumnVisibility[column.accessorKey] = !((_a2 = column.meta) == null ? void 0 : _a2.hidden);
|
975
|
+
}
|
964
976
|
});
|
965
977
|
return newColumnVisibility;
|
966
978
|
});
|
@@ -1129,7 +1141,7 @@ var DataTable = ({
|
|
1129
1141
|
}
|
1130
1142
|
table.setPageIndex(page);
|
1131
1143
|
},
|
1132
|
-
className: "hawa-w-16 hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-text-sm"
|
1144
|
+
className: "hawa-w-16 hawa-rounded hawa-border hawa-p-1 hawa-px-2 hawa-text-sm placeholder:hawa-text-muted-foreground"
|
1133
1145
|
}
|
1134
1146
|
)), /* @__PURE__ */ React10.createElement(
|
1135
1147
|
DropdownMenu,
|
@@ -2219,7 +2231,7 @@ var ColorPicker = ({
|
|
2219
2231
|
value: selectedColor,
|
2220
2232
|
className: cn(
|
2221
2233
|
"hawa-block hawa-h-[40px] hawa-w-24 hawa-rounded hawa-rounded-l-none hawa-bg-background hawa-p-2 hawa-text-sm hawa-transition-all",
|
2222
|
-
"hawa-border hawa-border-l-0 hawa-border-l-transparent"
|
2234
|
+
"hawa-border hawa-border-l-0 hawa-border-l-transparent placeholder:hawa-text-muted-foreground"
|
2223
2235
|
// "hawa-border hawa-border-x-0 hawa-border-x-transparent hawa-border-b-0 hawa-rounded-tr-none"
|
2224
2236
|
),
|
2225
2237
|
style: {
|
package/dist/hooks/index.d.mts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import * as React$1 from 'react';
|
1
2
|
import React__default, { useLayoutEffect, RefObject } from 'react';
|
2
3
|
import { T as ToasterToastProps } from '../Toast-BcFD9aeQ.mjs';
|
3
4
|
import 'class-variance-authority/types';
|
@@ -106,4 +107,6 @@ interface ContentRect {
|
|
106
107
|
}
|
107
108
|
declare const useMeasureDirty: (ref: RefObject<HTMLElement>) => ContentRect;
|
108
109
|
|
109
|
-
|
110
|
+
declare function useClickOutside<T extends HTMLElement = any>(handler: () => void, events?: string[] | null, nodes?: (HTMLElement | null)[]): React$1.MutableRefObject<T | undefined>;
|
111
|
+
|
112
|
+
export { type ContentRect, type UseFocusWithinOptions, type UseMediaQueryOptions, reducer, toast, useBreakpoint, useClickOutside, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMeasureDirty, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|
package/dist/hooks/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import * as React$1 from 'react';
|
1
2
|
import React__default, { useLayoutEffect, RefObject } from 'react';
|
2
3
|
import { T as ToasterToastProps } from '../Toast-fy9tBz19.js';
|
3
4
|
import 'class-variance-authority/types';
|
@@ -106,4 +107,6 @@ interface ContentRect {
|
|
106
107
|
}
|
107
108
|
declare const useMeasureDirty: (ref: RefObject<HTMLElement>) => ContentRect;
|
108
109
|
|
109
|
-
|
110
|
+
declare function useClickOutside<T extends HTMLElement = any>(handler: () => void, events?: string[] | null, nodes?: (HTMLElement | null)[]): React$1.MutableRefObject<T | undefined>;
|
111
|
+
|
112
|
+
export { type ContentRect, type UseFocusWithinOptions, type UseMediaQueryOptions, reducer, toast, useBreakpoint, useClickOutside, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMeasureDirty, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|
package/dist/hooks/index.js
CHANGED
@@ -34,6 +34,7 @@ __export(hooks_exports, {
|
|
34
34
|
reducer: () => reducer,
|
35
35
|
toast: () => toast,
|
36
36
|
useBreakpoint: () => useBreakpoint,
|
37
|
+
useClickOutside: () => useClickOutside,
|
37
38
|
useClipboard: () => useClipboard,
|
38
39
|
useDialogCarousel: () => useDialogCarousel,
|
39
40
|
useFocusWithin: () => useFocusWithin,
|
@@ -461,13 +462,41 @@ var useMeasureDirty = (ref) => {
|
|
461
462
|
return rect;
|
462
463
|
};
|
463
464
|
|
464
|
-
// hooks/
|
465
|
-
var import_react16 =
|
465
|
+
// hooks/useClickOutside.ts
|
466
|
+
var import_react16 = require("react");
|
467
|
+
var DEFAULT_EVENTS = ["mousedown", "touchstart"];
|
468
|
+
function useClickOutside(handler, events, nodes) {
|
469
|
+
const ref = (0, import_react16.useRef)();
|
470
|
+
(0, import_react16.useEffect)(() => {
|
471
|
+
const listener = (event) => {
|
472
|
+
const { target } = event != null ? event : {};
|
473
|
+
if (Array.isArray(nodes)) {
|
474
|
+
const shouldIgnore = (target == null ? void 0 : target.hasAttribute("data-ignore-outside-clicks")) || !document.body.contains(target) && target.tagName !== "HTML";
|
475
|
+
const shouldTrigger = nodes.every(
|
476
|
+
(node) => !!node && !event.composedPath().includes(node)
|
477
|
+
);
|
478
|
+
shouldTrigger && !shouldIgnore && handler();
|
479
|
+
} else if (ref.current && !ref.current.contains(target)) {
|
480
|
+
handler();
|
481
|
+
}
|
482
|
+
};
|
483
|
+
(events || DEFAULT_EVENTS).forEach(
|
484
|
+
(fn) => document.addEventListener(fn, listener)
|
485
|
+
);
|
486
|
+
return () => {
|
487
|
+
(events || DEFAULT_EVENTS).forEach(
|
488
|
+
(fn) => document.removeEventListener(fn, listener)
|
489
|
+
);
|
490
|
+
};
|
491
|
+
}, [ref, handler, nodes]);
|
492
|
+
return ref;
|
493
|
+
}
|
466
494
|
// Annotate the CommonJS export names for ESM import in node:
|
467
495
|
0 && (module.exports = {
|
468
496
|
reducer,
|
469
497
|
toast,
|
470
498
|
useBreakpoint,
|
499
|
+
useClickOutside,
|
471
500
|
useClipboard,
|
472
501
|
useDialogCarousel,
|
473
502
|
useFocusWithin,
|
package/dist/hooks/index.mjs
CHANGED
@@ -14,12 +14,14 @@ import {
|
|
14
14
|
useWindowSize
|
15
15
|
} from "../chunk-OPYDG34F.mjs";
|
16
16
|
import {
|
17
|
-
useBreakpoint
|
18
|
-
|
17
|
+
useBreakpoint,
|
18
|
+
useClickOutside
|
19
|
+
} from "../chunk-SYGWSBJL.mjs";
|
19
20
|
export {
|
20
21
|
reducer,
|
21
22
|
toast,
|
22
23
|
useBreakpoint,
|
24
|
+
useClickOutside,
|
23
25
|
useClipboard,
|
24
26
|
useDialogCarousel,
|
25
27
|
useFocusWithin,
|
package/dist/index.css
CHANGED
@@ -1296,6 +1296,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
1296
1296
|
.hawa-ms-2 {
|
1297
1297
|
margin-inline-start: 0.5rem;
|
1298
1298
|
}
|
1299
|
+
.hawa-ms-auto {
|
1300
|
+
margin-inline-start: auto;
|
1301
|
+
}
|
1299
1302
|
.hawa-mt-0 {
|
1300
1303
|
margin-top: 0px;
|
1301
1304
|
}
|
@@ -2275,6 +2278,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
2275
2278
|
.hawa-border-t-transparent {
|
2276
2279
|
border-top-color: transparent;
|
2277
2280
|
}
|
2281
|
+
.\!hawa-bg-destructive\/\[0\.3\] {
|
2282
|
+
background-color: hsl(var(--destructive) / 0.3) !important;
|
2283
|
+
}
|
2278
2284
|
.\!hawa-bg-transparent {
|
2279
2285
|
background-color: transparent !important;
|
2280
2286
|
}
|
@@ -2896,6 +2902,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
2896
2902
|
--tw-text-opacity: 1;
|
2897
2903
|
color: rgb(14 116 144 / var(--tw-text-opacity));
|
2898
2904
|
}
|
2905
|
+
.hawa-text-destructive {
|
2906
|
+
--tw-text-opacity: 1;
|
2907
|
+
color: hsl(var(--destructive) / var(--tw-text-opacity));
|
2908
|
+
}
|
2899
2909
|
.hawa-text-destructive-foreground {
|
2900
2910
|
--tw-text-opacity: 1;
|
2901
2911
|
color: hsl(var(--destructive-foreground) / var(--tw-text-opacity));
|
package/dist/index.d.mts
CHANGED
@@ -206,7 +206,7 @@ type ChipTypes = React__default.HTMLAttributes<HTMLSpanElement> & {
|
|
206
206
|
/** Enable/Disable the dot before the label of the chip */
|
207
207
|
dot?: boolean;
|
208
208
|
/** Red/Green dot next to the label of the chip indicating online/offline or available/unavailable */
|
209
|
-
|
209
|
+
dotStatus?: "available" | "unavailable" | "none";
|
210
210
|
radius?: RadiusType;
|
211
211
|
};
|
212
212
|
declare const Chip: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLSpanElement> & {
|
@@ -221,7 +221,7 @@ declare const Chip: React__default.ForwardRefExoticComponent<React__default.HTML
|
|
221
221
|
/** Enable/Disable the dot before the label of the chip */
|
222
222
|
dot?: boolean | undefined;
|
223
223
|
/** Red/Green dot next to the label of the chip indicating online/offline or available/unavailable */
|
224
|
-
|
224
|
+
dotStatus?: "none" | "available" | "unavailable" | undefined;
|
225
225
|
radius?: RadiusType | undefined;
|
226
226
|
} & React__default.RefAttributes<HTMLSpanElement>>;
|
227
227
|
|
@@ -683,6 +683,7 @@ declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.
|
|
683
683
|
|
684
684
|
type TextFieldTypes = React__default.InputHTMLAttributes<HTMLInputElement> & {
|
685
685
|
isLoading?: boolean;
|
686
|
+
isLoadingError?: boolean;
|
686
687
|
containerClassName?: string;
|
687
688
|
margin?: "none" | "normal" | "large";
|
688
689
|
width?: "small" | "normal" | "full" | "auto";
|
@@ -692,6 +693,7 @@ type TextFieldTypes = React__default.InputHTMLAttributes<HTMLInputElement> & {
|
|
692
693
|
hideSeparator?: boolean;
|
693
694
|
/** The small red text under the input field to show validation. */
|
694
695
|
helperText?: any;
|
696
|
+
prefixText?: any;
|
695
697
|
forceHideHelperText?: boolean;
|
696
698
|
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
|
697
699
|
/** The icon inside the input field */
|
@@ -711,10 +713,11 @@ type TextFieldTypes = React__default.InputHTMLAttributes<HTMLInputElement> & {
|
|
711
713
|
popup?: boolean;
|
712
714
|
popupContent?: React__default.ReactNode;
|
713
715
|
outsidePrefix?: any;
|
714
|
-
|
716
|
+
loadingErrorMesssage?: string;
|
715
717
|
};
|
716
718
|
declare const Input: React__default.ForwardRefExoticComponent<React__default.InputHTMLAttributes<HTMLInputElement> & {
|
717
719
|
isLoading?: boolean | undefined;
|
720
|
+
isLoadingError?: boolean | undefined;
|
718
721
|
containerClassName?: string | undefined;
|
719
722
|
margin?: "none" | "normal" | "large" | undefined;
|
720
723
|
width?: "small" | "normal" | "full" | "auto" | undefined;
|
@@ -724,6 +727,7 @@ declare const Input: React__default.ForwardRefExoticComponent<React__default.Inp
|
|
724
727
|
hideSeparator?: boolean | undefined;
|
725
728
|
/** The small red text under the input field to show validation. */
|
726
729
|
helperText?: any;
|
730
|
+
prefixText?: any;
|
727
731
|
forceHideHelperText?: boolean | undefined;
|
728
732
|
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement> | undefined;
|
729
733
|
/** The icon inside the input field */
|
@@ -743,7 +747,7 @@ declare const Input: React__default.ForwardRefExoticComponent<React__default.Inp
|
|
743
747
|
popup?: boolean | undefined;
|
744
748
|
popupContent?: React__default.ReactNode;
|
745
749
|
outsidePrefix?: any;
|
746
|
-
|
750
|
+
loadingErrorMesssage?: string | undefined;
|
747
751
|
} & React__default.RefAttributes<HTMLInputElement>>;
|
748
752
|
|
749
753
|
declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
@@ -2157,4 +2161,6 @@ interface ContentRect {
|
|
2157
2161
|
}
|
2158
2162
|
declare const useMeasureDirty: (ref: RefObject<HTMLElement>) => ContentRect;
|
2159
2163
|
|
2160
|
-
|
2164
|
+
declare function useClickOutside<T extends HTMLElement = any>(handler: () => void, events?: string[] | null, nodes?: (HTMLElement | null)[]): React$1.MutableRefObject<T | undefined>;
|
2165
|
+
|
2166
|
+
export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, AuthButtons, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, type BreadcrumbItemProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, type ContentRect, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, type PhoneInputProps, PhoneMockup, PinInput, Popover, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, type TextFieldTypes, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, navigationMenuTriggerStyle, reducer, toast, useBreakpoint, useClickOutside, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMeasureDirty, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
@@ -206,7 +206,7 @@ type ChipTypes = React__default.HTMLAttributes<HTMLSpanElement> & {
|
|
206
206
|
/** Enable/Disable the dot before the label of the chip */
|
207
207
|
dot?: boolean;
|
208
208
|
/** Red/Green dot next to the label of the chip indicating online/offline or available/unavailable */
|
209
|
-
|
209
|
+
dotStatus?: "available" | "unavailable" | "none";
|
210
210
|
radius?: RadiusType;
|
211
211
|
};
|
212
212
|
declare const Chip: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLSpanElement> & {
|
@@ -221,7 +221,7 @@ declare const Chip: React__default.ForwardRefExoticComponent<React__default.HTML
|
|
221
221
|
/** Enable/Disable the dot before the label of the chip */
|
222
222
|
dot?: boolean | undefined;
|
223
223
|
/** Red/Green dot next to the label of the chip indicating online/offline or available/unavailable */
|
224
|
-
|
224
|
+
dotStatus?: "none" | "available" | "unavailable" | undefined;
|
225
225
|
radius?: RadiusType | undefined;
|
226
226
|
} & React__default.RefAttributes<HTMLSpanElement>>;
|
227
227
|
|
@@ -683,6 +683,7 @@ declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.
|
|
683
683
|
|
684
684
|
type TextFieldTypes = React__default.InputHTMLAttributes<HTMLInputElement> & {
|
685
685
|
isLoading?: boolean;
|
686
|
+
isLoadingError?: boolean;
|
686
687
|
containerClassName?: string;
|
687
688
|
margin?: "none" | "normal" | "large";
|
688
689
|
width?: "small" | "normal" | "full" | "auto";
|
@@ -692,6 +693,7 @@ type TextFieldTypes = React__default.InputHTMLAttributes<HTMLInputElement> & {
|
|
692
693
|
hideSeparator?: boolean;
|
693
694
|
/** The small red text under the input field to show validation. */
|
694
695
|
helperText?: any;
|
696
|
+
prefixText?: any;
|
695
697
|
forceHideHelperText?: boolean;
|
696
698
|
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
|
697
699
|
/** The icon inside the input field */
|
@@ -711,10 +713,11 @@ type TextFieldTypes = React__default.InputHTMLAttributes<HTMLInputElement> & {
|
|
711
713
|
popup?: boolean;
|
712
714
|
popupContent?: React__default.ReactNode;
|
713
715
|
outsidePrefix?: any;
|
714
|
-
|
716
|
+
loadingErrorMesssage?: string;
|
715
717
|
};
|
716
718
|
declare const Input: React__default.ForwardRefExoticComponent<React__default.InputHTMLAttributes<HTMLInputElement> & {
|
717
719
|
isLoading?: boolean | undefined;
|
720
|
+
isLoadingError?: boolean | undefined;
|
718
721
|
containerClassName?: string | undefined;
|
719
722
|
margin?: "none" | "normal" | "large" | undefined;
|
720
723
|
width?: "small" | "normal" | "full" | "auto" | undefined;
|
@@ -724,6 +727,7 @@ declare const Input: React__default.ForwardRefExoticComponent<React__default.Inp
|
|
724
727
|
hideSeparator?: boolean | undefined;
|
725
728
|
/** The small red text under the input field to show validation. */
|
726
729
|
helperText?: any;
|
730
|
+
prefixText?: any;
|
727
731
|
forceHideHelperText?: boolean | undefined;
|
728
732
|
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement> | undefined;
|
729
733
|
/** The icon inside the input field */
|
@@ -743,7 +747,7 @@ declare const Input: React__default.ForwardRefExoticComponent<React__default.Inp
|
|
743
747
|
popup?: boolean | undefined;
|
744
748
|
popupContent?: React__default.ReactNode;
|
745
749
|
outsidePrefix?: any;
|
746
|
-
|
750
|
+
loadingErrorMesssage?: string | undefined;
|
747
751
|
} & React__default.RefAttributes<HTMLInputElement>>;
|
748
752
|
|
749
753
|
declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
@@ -2157,4 +2161,6 @@ interface ContentRect {
|
|
2157
2161
|
}
|
2158
2162
|
declare const useMeasureDirty: (ref: RefObject<HTMLElement>) => ContentRect;
|
2159
2163
|
|
2160
|
-
|
2164
|
+
declare function useClickOutside<T extends HTMLElement = any>(handler: () => void, events?: string[] | null, nodes?: (HTMLElement | null)[]): React$1.MutableRefObject<T | undefined>;
|
2165
|
+
|
2166
|
+
export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, AuthButtons, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, type BreadcrumbItemProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, type ContentRect, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, type PhoneInputProps, PhoneMockup, PinInput, Popover, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, type TextFieldTypes, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, navigationMenuTriggerStyle, reducer, toast, useBreakpoint, useClickOutside, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMeasureDirty, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|