@lglab/compose-ui 0.38.1 → 0.39.0
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.d.ts +6 -6
- package/dist/accordion.d.ts.map +1 -1
- package/dist/alert-dialog.d.ts +10 -10
- package/dist/alert.d.ts +8 -8
- package/dist/autocomplete.d.ts +13 -13
- package/dist/autocomplete.d.ts.map +1 -1
- package/dist/avatar.d.ts +5 -5
- package/dist/badge.d.ts +4 -4
- package/dist/breadcrumb.d.ts +6 -6
- package/dist/button.d.ts +2 -2
- package/dist/calendar.d.ts +2 -2
- package/dist/card.d.ts +8 -8
- package/dist/checkbox-group.d.ts +2 -2
- package/dist/checkbox.d.ts +3 -3
- package/dist/collapsible.d.ts +4 -4
- package/dist/collapsible.d.ts.map +1 -1
- package/dist/combobox.d.ts +25 -25
- package/dist/combobox.d.ts.map +1 -1
- package/dist/components/chart/context.d.ts +2 -2
- package/dist/components/chart/tooltip.d.ts +2 -2
- package/dist/components/table/primitives.d.ts +5 -1
- package/dist/components/table/primitives.d.ts.map +1 -1
- package/dist/components/table/primitives.js +12 -10
- package/dist/components/table/primitives.js.map +1 -1
- package/dist/components/table/types.d.ts +15 -1
- package/dist/components/table/types.d.ts.map +1 -1
- package/dist/context-menu.d.ts +20 -20
- package/dist/dialog.d.ts +11 -11
- package/dist/drawer.d.ts +12 -12
- package/dist/empty.d.ts +7 -7
- package/dist/field.d.ts +8 -8
- package/dist/field.d.ts.map +1 -1
- package/dist/fieldset.d.ts +3 -3
- package/dist/fieldset.d.ts.map +1 -1
- package/dist/form.d.ts +2 -2
- package/dist/form.d.ts.map +1 -1
- package/dist/group.d.ts +3 -3
- package/dist/group.d.ts.map +1 -1
- package/dist/input.d.ts +2 -2
- package/dist/input.d.ts.map +1 -1
- package/dist/menu.d.ts +20 -20
- package/dist/menubar.d.ts +21 -21
- package/dist/menubar.d.ts.map +1 -1
- package/dist/meter.d.ts +6 -6
- package/dist/navigation-menu.d.ts +14 -14
- package/dist/navigation-menu.d.ts.map +1 -1
- package/dist/number-field.d.ts +8 -8
- package/dist/number-field.d.ts.map +1 -1
- package/dist/pagination.d.ts +10 -10
- package/dist/pagination.d.ts.map +1 -1
- package/dist/popover.d.ts +12 -12
- package/dist/preview-card.d.ts +8 -8
- package/dist/progress.d.ts +7 -7
- package/dist/radio-group.d.ts +2 -2
- package/dist/radio.d.ts +3 -3
- package/dist/radio.d.ts.map +1 -1
- package/dist/scroll-area.d.ts +7 -7
- package/dist/select.d.ts +19 -19
- package/dist/select.d.ts.map +1 -1
- package/dist/separator.d.ts +2 -2
- package/dist/skeleton.d.ts +2 -2
- package/dist/slider.d.ts +7 -7
- package/dist/switch.d.ts +3 -3
- package/dist/table/index.d.ts +2 -2
- package/dist/table/use-table.d.ts.map +1 -1
- package/dist/table/use-table.js +50 -2
- package/dist/table/use-table.js.map +1 -1
- package/dist/tabs.d.ts +6 -6
- package/dist/textarea.d.ts +2 -2
- package/dist/timeline.d.ts +9 -9
- package/dist/toast.d.ts +10 -10
- package/dist/toggle-group.d.ts +3 -3
- package/dist/toggle.d.ts +2 -2
- package/dist/toolbar.d.ts +7 -7
- package/dist/tooltip.d.ts +8 -8
- package/package.json +1 -1
package/dist/preview-card.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime229 from "react/jsx-runtime";
|
|
3
3
|
import { PreviewCard } from "@base-ui/react/preview-card";
|
|
4
4
|
|
|
5
5
|
//#region src/components/preview-card.d.ts
|
|
6
6
|
type PreviewCardRootProps = React.ComponentProps<typeof PreviewCard.Root>;
|
|
7
7
|
declare const PreviewCardRoot: {
|
|
8
|
-
(props: PreviewCardRootProps):
|
|
8
|
+
(props: PreviewCardRootProps): react_jsx_runtime229.JSX.Element;
|
|
9
9
|
displayName: string;
|
|
10
10
|
};
|
|
11
11
|
type PreviewCardTriggerProps = React.ComponentProps<typeof PreviewCard.Trigger>;
|
|
@@ -13,12 +13,12 @@ declare const PreviewCardTrigger: {
|
|
|
13
13
|
({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: PreviewCardTriggerProps):
|
|
16
|
+
}: PreviewCardTriggerProps): react_jsx_runtime229.JSX.Element;
|
|
17
17
|
displayName: string;
|
|
18
18
|
};
|
|
19
19
|
type PreviewCardPortalProps = React.ComponentProps<typeof PreviewCard.Portal>;
|
|
20
20
|
declare const PreviewCardPortal: {
|
|
21
|
-
(props: PreviewCardPortalProps):
|
|
21
|
+
(props: PreviewCardPortalProps): react_jsx_runtime229.JSX.Element;
|
|
22
22
|
displayName: string;
|
|
23
23
|
};
|
|
24
24
|
type PreviewCardBackdropProps = React.ComponentProps<typeof PreviewCard.Backdrop>;
|
|
@@ -26,7 +26,7 @@ declare const PreviewCardBackdrop: {
|
|
|
26
26
|
({
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: PreviewCardBackdropProps):
|
|
29
|
+
}: PreviewCardBackdropProps): react_jsx_runtime229.JSX.Element;
|
|
30
30
|
displayName: string;
|
|
31
31
|
};
|
|
32
32
|
type PreviewCardPositionerProps = React.ComponentProps<typeof PreviewCard.Positioner>;
|
|
@@ -34,7 +34,7 @@ declare const PreviewCardPositioner: {
|
|
|
34
34
|
({
|
|
35
35
|
className,
|
|
36
36
|
...props
|
|
37
|
-
}: PreviewCardPositionerProps):
|
|
37
|
+
}: PreviewCardPositionerProps): react_jsx_runtime229.JSX.Element;
|
|
38
38
|
displayName: string;
|
|
39
39
|
};
|
|
40
40
|
type PreviewCardPopupProps = React.ComponentProps<typeof PreviewCard.Popup>;
|
|
@@ -42,7 +42,7 @@ declare const PreviewCardPopup: {
|
|
|
42
42
|
({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: PreviewCardPopupProps):
|
|
45
|
+
}: PreviewCardPopupProps): react_jsx_runtime229.JSX.Element;
|
|
46
46
|
displayName: string;
|
|
47
47
|
};
|
|
48
48
|
type PreviewCardArrowProps = React.ComponentProps<typeof PreviewCard.Arrow>;
|
|
@@ -50,7 +50,7 @@ declare const PreviewCardArrow: {
|
|
|
50
50
|
({
|
|
51
51
|
className,
|
|
52
52
|
...props
|
|
53
|
-
}: PreviewCardArrowProps):
|
|
53
|
+
}: PreviewCardArrowProps): react_jsx_runtime229.JSX.Element;
|
|
54
54
|
displayName: string;
|
|
55
55
|
};
|
|
56
56
|
//#endregion
|
package/dist/progress.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime290 from "react/jsx-runtime";
|
|
3
3
|
import { Progress } from "@base-ui/react/progress";
|
|
4
4
|
|
|
5
5
|
//#region src/components/progress.d.ts
|
|
@@ -8,7 +8,7 @@ declare const ProgressRoot: {
|
|
|
8
8
|
({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: ProgressRootProps):
|
|
11
|
+
}: ProgressRootProps): react_jsx_runtime290.JSX.Element;
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
14
14
|
type ProgressTrackProps = React.ComponentProps<typeof Progress.Track>;
|
|
@@ -16,7 +16,7 @@ declare const ProgressTrack: {
|
|
|
16
16
|
({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: ProgressTrackProps):
|
|
19
|
+
}: ProgressTrackProps): react_jsx_runtime290.JSX.Element;
|
|
20
20
|
displayName: string;
|
|
21
21
|
};
|
|
22
22
|
type ProgressIndicatorProps = React.ComponentProps<typeof Progress.Indicator>;
|
|
@@ -24,7 +24,7 @@ declare const ProgressIndicator: {
|
|
|
24
24
|
({
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
|
-
}: ProgressIndicatorProps):
|
|
27
|
+
}: ProgressIndicatorProps): react_jsx_runtime290.JSX.Element;
|
|
28
28
|
displayName: string;
|
|
29
29
|
};
|
|
30
30
|
type ProgressValueProps = React.ComponentProps<typeof Progress.Value>;
|
|
@@ -32,7 +32,7 @@ declare const ProgressValue: {
|
|
|
32
32
|
({
|
|
33
33
|
className,
|
|
34
34
|
...props
|
|
35
|
-
}: ProgressValueProps):
|
|
35
|
+
}: ProgressValueProps): react_jsx_runtime290.JSX.Element;
|
|
36
36
|
displayName: string;
|
|
37
37
|
};
|
|
38
38
|
type ProgressLabelProps = React.ComponentProps<typeof Progress.Label>;
|
|
@@ -40,7 +40,7 @@ declare const ProgressLabel: {
|
|
|
40
40
|
({
|
|
41
41
|
className,
|
|
42
42
|
...props
|
|
43
|
-
}: ProgressLabelProps):
|
|
43
|
+
}: ProgressLabelProps): react_jsx_runtime290.JSX.Element;
|
|
44
44
|
displayName: string;
|
|
45
45
|
};
|
|
46
46
|
type ProgressCircleProps = {
|
|
@@ -63,7 +63,7 @@ declare const ProgressCircle: {
|
|
|
63
63
|
className,
|
|
64
64
|
trackClassName,
|
|
65
65
|
children
|
|
66
|
-
}: ProgressCircleProps):
|
|
66
|
+
}: ProgressCircleProps): react_jsx_runtime290.JSX.Element;
|
|
67
67
|
displayName: string;
|
|
68
68
|
};
|
|
69
69
|
//#endregion
|
package/dist/radio-group.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime228 from "react/jsx-runtime";
|
|
3
3
|
import { RadioGroup } from "@base-ui/react/radio-group";
|
|
4
4
|
|
|
5
5
|
//#region src/components/radio-group.d.ts
|
|
@@ -8,7 +8,7 @@ declare const RadioGroupRoot: {
|
|
|
8
8
|
({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: RadioGroupRootProps):
|
|
11
|
+
}: RadioGroupRootProps): react_jsx_runtime228.JSX.Element;
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
14
14
|
//#endregion
|
package/dist/radio.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime41 from "react/jsx-runtime";
|
|
3
3
|
import { Radio } from "@base-ui/react/radio";
|
|
4
4
|
|
|
5
5
|
//#region src/components/radio.d.ts
|
|
@@ -8,7 +8,7 @@ declare const RadioRoot: {
|
|
|
8
8
|
({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: RadioRootProps):
|
|
11
|
+
}: RadioRootProps): react_jsx_runtime41.JSX.Element;
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
14
14
|
type RadioIndicatorProps = React.ComponentProps<typeof Radio.Indicator>;
|
|
@@ -16,7 +16,7 @@ declare const RadioIndicator: {
|
|
|
16
16
|
({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: RadioIndicatorProps):
|
|
19
|
+
}: RadioIndicatorProps): react_jsx_runtime41.JSX.Element;
|
|
20
20
|
displayName: string;
|
|
21
21
|
};
|
|
22
22
|
//#endregion
|
package/dist/radio.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.d.ts","names":[],"sources":["../src/components/radio.tsx"],"sourcesContent":[],"mappings":";;;;;KAWK,cAAA,GAAiB,KAAA,CAAM,sBAAsB,KAAA,CAAU;cAEtD;;;;KAAsC,iBAAc,
|
|
1
|
+
{"version":3,"file":"radio.d.ts","names":[],"sources":["../src/components/radio.tsx"],"sourcesContent":[],"mappings":";;;;;KAWK,cAAA,GAAiB,KAAA,CAAM,sBAAsB,KAAA,CAAU;cAEtD;;;;KAAsC,iBAAc,mBAAA,CAAA,GAAA,CAAA;EAFrD,WAAA,EAAA,MAAc;CAAA;KAwBd,mBAAA,GAAsB,KAAA,CAAM,cAxB2B,CAAA,OAwBL,KAAA,CAAU,SAxBL,CAAA;cA0BtD,cA1BsB,EAAA;EAAc,CAAA;IAAA,SAAA;IAAA,GAAA;EAAA,CAAA,EA0BO,mBA1BP,CAAA,EA0B0B,mBAAA,CAAA,GAAA,CAAA,OA1B1B;EAEpC,WAAA,EAcL,MAAA;CAAA"}
|
package/dist/scroll-area.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime296 from "react/jsx-runtime";
|
|
3
3
|
import { ScrollArea } from "@base-ui/react/scroll-area";
|
|
4
4
|
|
|
5
5
|
//#region src/components/scroll-area.d.ts
|
|
@@ -8,7 +8,7 @@ declare const ScrollAreaRoot: {
|
|
|
8
8
|
({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: ScrollAreaRootProps):
|
|
11
|
+
}: ScrollAreaRootProps): react_jsx_runtime296.JSX.Element;
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
14
14
|
type ScrollAreaViewportProps = React.ComponentProps<typeof ScrollArea.Viewport>;
|
|
@@ -16,7 +16,7 @@ declare const ScrollAreaViewport: {
|
|
|
16
16
|
({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: ScrollAreaViewportProps):
|
|
19
|
+
}: ScrollAreaViewportProps): react_jsx_runtime296.JSX.Element;
|
|
20
20
|
displayName: string;
|
|
21
21
|
};
|
|
22
22
|
type ScrollAreaContentProps = React.ComponentProps<typeof ScrollArea.Content>;
|
|
@@ -24,7 +24,7 @@ declare const ScrollAreaContent: {
|
|
|
24
24
|
({
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
|
-
}: ScrollAreaContentProps):
|
|
27
|
+
}: ScrollAreaContentProps): react_jsx_runtime296.JSX.Element;
|
|
28
28
|
displayName: string;
|
|
29
29
|
};
|
|
30
30
|
type ScrollAreaScrollbarProps = React.ComponentProps<typeof ScrollArea.Scrollbar>;
|
|
@@ -33,7 +33,7 @@ declare const ScrollAreaScrollbar: {
|
|
|
33
33
|
className,
|
|
34
34
|
orientation,
|
|
35
35
|
...props
|
|
36
|
-
}: ScrollAreaScrollbarProps):
|
|
36
|
+
}: ScrollAreaScrollbarProps): react_jsx_runtime296.JSX.Element;
|
|
37
37
|
displayName: string;
|
|
38
38
|
};
|
|
39
39
|
type ScrollAreaThumbProps = React.ComponentProps<typeof ScrollArea.Thumb>;
|
|
@@ -41,7 +41,7 @@ declare const ScrollAreaThumb: {
|
|
|
41
41
|
({
|
|
42
42
|
className,
|
|
43
43
|
...props
|
|
44
|
-
}: ScrollAreaThumbProps):
|
|
44
|
+
}: ScrollAreaThumbProps): react_jsx_runtime296.JSX.Element;
|
|
45
45
|
displayName: string;
|
|
46
46
|
};
|
|
47
47
|
type ScrollAreaCornerProps = React.ComponentProps<typeof ScrollArea.Corner>;
|
|
@@ -49,7 +49,7 @@ declare const ScrollAreaCorner: {
|
|
|
49
49
|
({
|
|
50
50
|
className,
|
|
51
51
|
...props
|
|
52
|
-
}: ScrollAreaCornerProps):
|
|
52
|
+
}: ScrollAreaCornerProps): react_jsx_runtime296.JSX.Element;
|
|
53
53
|
displayName: string;
|
|
54
54
|
};
|
|
55
55
|
//#endregion
|
package/dist/select.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
3
3
|
import { Select, SelectRootProps as SelectRootProps$1 } from "@base-ui/react/select";
|
|
4
4
|
|
|
5
5
|
//#region src/components/select.d.ts
|
|
6
|
-
declare function SelectRoot<Value, Multiple extends boolean | undefined = false>(props: SelectRootProps$1<Value, Multiple>):
|
|
6
|
+
declare function SelectRoot<Value, Multiple extends boolean | undefined = false>(props: SelectRootProps$1<Value, Multiple>): react_jsx_runtime23.JSX.Element;
|
|
7
7
|
declare namespace SelectRoot {
|
|
8
8
|
var displayName: string;
|
|
9
9
|
}
|
|
@@ -13,7 +13,7 @@ declare const SelectTrigger: {
|
|
|
13
13
|
({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: SelectTriggerProps):
|
|
16
|
+
}: SelectTriggerProps): react_jsx_runtime23.JSX.Element;
|
|
17
17
|
displayName: string;
|
|
18
18
|
};
|
|
19
19
|
type SelectValueProps = React.ComponentProps<typeof Select.Value>;
|
|
@@ -21,7 +21,7 @@ declare const SelectValue: {
|
|
|
21
21
|
({
|
|
22
22
|
className,
|
|
23
23
|
...props
|
|
24
|
-
}: SelectValueProps):
|
|
24
|
+
}: SelectValueProps): react_jsx_runtime23.JSX.Element;
|
|
25
25
|
displayName: string;
|
|
26
26
|
};
|
|
27
27
|
type SelectIconProps = React.ComponentProps<typeof Select.Icon>;
|
|
@@ -29,7 +29,7 @@ declare const SelectIcon: {
|
|
|
29
29
|
({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: SelectIconProps):
|
|
32
|
+
}: SelectIconProps): react_jsx_runtime23.JSX.Element;
|
|
33
33
|
displayName: string;
|
|
34
34
|
};
|
|
35
35
|
type SelectBackdropProps = React.ComponentProps<typeof Select.Backdrop>;
|
|
@@ -37,12 +37,12 @@ declare const SelectBackdrop: {
|
|
|
37
37
|
({
|
|
38
38
|
className,
|
|
39
39
|
...props
|
|
40
|
-
}: SelectBackdropProps):
|
|
40
|
+
}: SelectBackdropProps): react_jsx_runtime23.JSX.Element;
|
|
41
41
|
displayName: string;
|
|
42
42
|
};
|
|
43
43
|
type SelectPortalProps = React.ComponentProps<typeof Select.Portal>;
|
|
44
44
|
declare const SelectPortal: {
|
|
45
|
-
(props: SelectPortalProps):
|
|
45
|
+
(props: SelectPortalProps): react_jsx_runtime23.JSX.Element;
|
|
46
46
|
displayName: string;
|
|
47
47
|
};
|
|
48
48
|
type SelectPositionerProps = React.ComponentProps<typeof Select.Positioner>;
|
|
@@ -50,7 +50,7 @@ declare const SelectPositioner: {
|
|
|
50
50
|
({
|
|
51
51
|
className,
|
|
52
52
|
...props
|
|
53
|
-
}: SelectPositionerProps):
|
|
53
|
+
}: SelectPositionerProps): react_jsx_runtime23.JSX.Element;
|
|
54
54
|
displayName: string;
|
|
55
55
|
};
|
|
56
56
|
type SelectPopupProps = React.ComponentProps<typeof Select.Popup>;
|
|
@@ -58,7 +58,7 @@ declare const SelectPopup: {
|
|
|
58
58
|
({
|
|
59
59
|
className,
|
|
60
60
|
...props
|
|
61
|
-
}: SelectPopupProps):
|
|
61
|
+
}: SelectPopupProps): react_jsx_runtime23.JSX.Element;
|
|
62
62
|
displayName: string;
|
|
63
63
|
};
|
|
64
64
|
type SelectListProps = React.ComponentProps<typeof Select.List>;
|
|
@@ -66,7 +66,7 @@ declare const SelectList: {
|
|
|
66
66
|
({
|
|
67
67
|
className,
|
|
68
68
|
...props
|
|
69
|
-
}: SelectListProps):
|
|
69
|
+
}: SelectListProps): react_jsx_runtime23.JSX.Element;
|
|
70
70
|
displayName: string;
|
|
71
71
|
};
|
|
72
72
|
type SelectArrowProps = React.ComponentProps<typeof Select.Arrow>;
|
|
@@ -74,7 +74,7 @@ declare const SelectArrow: {
|
|
|
74
74
|
({
|
|
75
75
|
className,
|
|
76
76
|
...props
|
|
77
|
-
}: SelectArrowProps):
|
|
77
|
+
}: SelectArrowProps): react_jsx_runtime23.JSX.Element;
|
|
78
78
|
displayName: string;
|
|
79
79
|
};
|
|
80
80
|
type SelectItemProps = React.ComponentProps<typeof Select.Item>;
|
|
@@ -82,7 +82,7 @@ declare const SelectItem: {
|
|
|
82
82
|
({
|
|
83
83
|
className,
|
|
84
84
|
...props
|
|
85
|
-
}: SelectItemProps):
|
|
85
|
+
}: SelectItemProps): react_jsx_runtime23.JSX.Element;
|
|
86
86
|
displayName: string;
|
|
87
87
|
};
|
|
88
88
|
type SelectItemTextProps = React.ComponentProps<typeof Select.ItemText>;
|
|
@@ -90,7 +90,7 @@ declare const SelectItemText: {
|
|
|
90
90
|
({
|
|
91
91
|
className,
|
|
92
92
|
...props
|
|
93
|
-
}: SelectItemTextProps):
|
|
93
|
+
}: SelectItemTextProps): react_jsx_runtime23.JSX.Element;
|
|
94
94
|
displayName: string;
|
|
95
95
|
};
|
|
96
96
|
type SelectItemIndicatorProps = React.ComponentProps<typeof Select.ItemIndicator>;
|
|
@@ -98,7 +98,7 @@ declare const SelectItemIndicator: {
|
|
|
98
98
|
({
|
|
99
99
|
className,
|
|
100
100
|
...props
|
|
101
|
-
}: SelectItemIndicatorProps):
|
|
101
|
+
}: SelectItemIndicatorProps): react_jsx_runtime23.JSX.Element;
|
|
102
102
|
displayName: string;
|
|
103
103
|
};
|
|
104
104
|
type SelectGroupProps = React.ComponentProps<typeof Select.Group>;
|
|
@@ -106,7 +106,7 @@ declare const SelectGroup: {
|
|
|
106
106
|
({
|
|
107
107
|
className,
|
|
108
108
|
...props
|
|
109
|
-
}: SelectGroupProps):
|
|
109
|
+
}: SelectGroupProps): react_jsx_runtime23.JSX.Element;
|
|
110
110
|
displayName: string;
|
|
111
111
|
};
|
|
112
112
|
type SelectGroupLabelProps = React.ComponentProps<typeof Select.GroupLabel>;
|
|
@@ -114,7 +114,7 @@ declare const SelectGroupLabel: {
|
|
|
114
114
|
({
|
|
115
115
|
className,
|
|
116
116
|
...props
|
|
117
|
-
}: SelectGroupLabelProps):
|
|
117
|
+
}: SelectGroupLabelProps): react_jsx_runtime23.JSX.Element;
|
|
118
118
|
displayName: string;
|
|
119
119
|
};
|
|
120
120
|
type SelectScrollUpArrowProps = React.ComponentProps<typeof Select.ScrollUpArrow>;
|
|
@@ -122,7 +122,7 @@ declare const SelectScrollUpArrow: {
|
|
|
122
122
|
({
|
|
123
123
|
className,
|
|
124
124
|
...props
|
|
125
|
-
}: SelectScrollUpArrowProps):
|
|
125
|
+
}: SelectScrollUpArrowProps): react_jsx_runtime23.JSX.Element;
|
|
126
126
|
displayName: string;
|
|
127
127
|
};
|
|
128
128
|
type SelectScrollDownArrowProps = React.ComponentProps<typeof Select.ScrollDownArrow>;
|
|
@@ -130,7 +130,7 @@ declare const SelectScrollDownArrow: {
|
|
|
130
130
|
({
|
|
131
131
|
className,
|
|
132
132
|
...props
|
|
133
|
-
}: SelectScrollDownArrowProps):
|
|
133
|
+
}: SelectScrollDownArrowProps): react_jsx_runtime23.JSX.Element;
|
|
134
134
|
displayName: string;
|
|
135
135
|
};
|
|
136
136
|
type SelectSeparatorProps = React.ComponentProps<typeof Select.Separator>;
|
|
@@ -138,7 +138,7 @@ declare const SelectSeparator: {
|
|
|
138
138
|
({
|
|
139
139
|
className,
|
|
140
140
|
...props
|
|
141
|
-
}: SelectSeparatorProps):
|
|
141
|
+
}: SelectSeparatorProps): react_jsx_runtime23.JSX.Element;
|
|
142
142
|
displayName: string;
|
|
143
143
|
};
|
|
144
144
|
//#endregion
|
package/dist/select.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","names":[],"sources":["../src/components/select.tsx"],"sourcesContent":[],"mappings":";;;;;iBAeS,uEACA,kBAAoB,OAAO,YAAS,
|
|
1
|
+
{"version":3,"file":"select.d.ts","names":[],"sources":["../src/components/select.tsx"],"sourcesContent":[],"mappings":";;;;;iBAeS,uEACA,kBAAoB,OAAO,YAAS,mBAAA,CAAA,GAAA,CAAA;kBADpC,UAAA;;AATqB;KAezB,eANc,CAAA,KAAA,EAAA,iBAAA,OAAA,GAAA,SAAA,GAAA,KAAA,CAAA,GASf,iBATe,CASK,KATL,EASY,QATZ,CAAA;KAiBd,kBAAA,GAAqB,KAAA,CAAM,cAhBH,CAAA,OAgByB,MAAA,CAAW,OAhBpC,CAAA;cAkBvB,aAlB8B,EAAA;;IAA3B,SAAA;IAAA,GAAA;EAAA,CAAA,EAkBuC,kBAlBvC,CAAA,EAkByD,mBAAA,CAAA,GAAA,CAAA,OAlBzD;aAAoC,EAAA,MAAA;CAAA;AAAA,KAoCxC,gBAAA,GAAmB,KAAA,CAAM,cArCX,CAAA,OAqCiC,MAAA,CAAW,KArC5C,CAAA;AAAA,cAuCb,WAjCc,EAAA;EAAA,CAAA;IAAA,SAAA;IAAA,GAAA;EAAA,CAAA,EAiC0B,gBAjC1B,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time280 from "react/jsx-runtime";
|
|
3
3
|
import { Separator as Separator$1 } from "@base-ui/react/separator";
|
|
4
4
|
|
|
5
5
|
//#region src/components/separator.d.ts
|
|
@@ -9,7 +9,7 @@ declare const Separator: {
|
|
|
9
9
|
className,
|
|
10
10
|
orientation,
|
|
11
11
|
...props
|
|
12
|
-
}: SeparatorProps):
|
|
12
|
+
}: SeparatorProps): react_jsx_runtime280.JSX.Element;
|
|
13
13
|
displayName: string;
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
package/dist/skeleton.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime281 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/skeleton.d.ts
|
|
5
5
|
type SkeletonAnimation = 'pulse' | 'shimmer' | 'none';
|
|
@@ -12,7 +12,7 @@ declare const Skeleton: {
|
|
|
12
12
|
className,
|
|
13
13
|
animation,
|
|
14
14
|
...props
|
|
15
|
-
}: SkeletonProps):
|
|
15
|
+
}: SkeletonProps): react_jsx_runtime281.JSX.Element;
|
|
16
16
|
displayName: string;
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
package/dist/slider.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime282 from "react/jsx-runtime";
|
|
3
3
|
import { Slider } from "@base-ui/react/slider";
|
|
4
4
|
|
|
5
5
|
//#region src/components/slider.d.ts
|
|
@@ -8,7 +8,7 @@ declare const SliderRoot: {
|
|
|
8
8
|
({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: SliderRootProps):
|
|
11
|
+
}: SliderRootProps): react_jsx_runtime282.JSX.Element;
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
14
14
|
type SliderValueProps = React.ComponentProps<typeof Slider.Value>;
|
|
@@ -16,7 +16,7 @@ declare const SliderValue: {
|
|
|
16
16
|
({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: SliderValueProps):
|
|
19
|
+
}: SliderValueProps): react_jsx_runtime282.JSX.Element;
|
|
20
20
|
displayName: string;
|
|
21
21
|
};
|
|
22
22
|
type SliderControlProps = React.ComponentProps<typeof Slider.Control>;
|
|
@@ -24,7 +24,7 @@ declare const SliderControl: {
|
|
|
24
24
|
({
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
|
-
}: SliderControlProps):
|
|
27
|
+
}: SliderControlProps): react_jsx_runtime282.JSX.Element;
|
|
28
28
|
displayName: string;
|
|
29
29
|
};
|
|
30
30
|
type SliderTrackProps = React.ComponentProps<typeof Slider.Track>;
|
|
@@ -32,7 +32,7 @@ declare const SliderTrack: {
|
|
|
32
32
|
({
|
|
33
33
|
className,
|
|
34
34
|
...props
|
|
35
|
-
}: SliderTrackProps):
|
|
35
|
+
}: SliderTrackProps): react_jsx_runtime282.JSX.Element;
|
|
36
36
|
displayName: string;
|
|
37
37
|
};
|
|
38
38
|
type SliderIndicatorProps = React.ComponentProps<typeof Slider.Indicator>;
|
|
@@ -40,7 +40,7 @@ declare const SliderIndicator: {
|
|
|
40
40
|
({
|
|
41
41
|
className,
|
|
42
42
|
...props
|
|
43
|
-
}: SliderIndicatorProps):
|
|
43
|
+
}: SliderIndicatorProps): react_jsx_runtime282.JSX.Element;
|
|
44
44
|
displayName: string;
|
|
45
45
|
};
|
|
46
46
|
type SliderThumbProps = React.ComponentProps<typeof Slider.Thumb>;
|
|
@@ -48,7 +48,7 @@ declare const SliderThumb: {
|
|
|
48
48
|
({
|
|
49
49
|
className,
|
|
50
50
|
...props
|
|
51
|
-
}: SliderThumbProps):
|
|
51
|
+
}: SliderThumbProps): react_jsx_runtime282.JSX.Element;
|
|
52
52
|
displayName: string;
|
|
53
53
|
};
|
|
54
54
|
//#endregion
|
package/dist/switch.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime288 from "react/jsx-runtime";
|
|
3
3
|
import { Switch } from "@base-ui/react/switch";
|
|
4
4
|
|
|
5
5
|
//#region src/components/switch.d.ts
|
|
@@ -8,7 +8,7 @@ declare const SwitchRoot: {
|
|
|
8
8
|
({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: SwitchRootProps):
|
|
11
|
+
}: SwitchRootProps): react_jsx_runtime288.JSX.Element;
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
14
14
|
type SwitchThumbProps = React.ComponentProps<typeof Switch.Thumb>;
|
|
@@ -16,7 +16,7 @@ declare const SwitchThumb: {
|
|
|
16
16
|
({
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: SwitchThumbProps):
|
|
19
|
+
}: SwitchThumbProps): react_jsx_runtime288.JSX.Element;
|
|
20
20
|
displayName: string;
|
|
21
21
|
};
|
|
22
22
|
//#endregion
|
package/dist/table/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ColumnDef, FilterDef, FilterPredicate, FilterValues, FiltersConfig, PaginationConfig, ProcessedColumn, RowKeyGetter, SearchConfig, SelectionConfig, SelectionState, SortDirection, UseTableOptions, UseTableReturn } from "../components/table/types.js";
|
|
1
|
+
import { ColumnDef, ExpansionConfig, ExpansionState, FilterDef, FilterPredicate, FilterValues, FiltersConfig, PaginationConfig, ProcessedColumn, RowKeyGetter, SearchConfig, SelectionConfig, SelectionState, SortDirection, UseTableOptions, UseTableReturn } from "../components/table/types.js";
|
|
2
2
|
import { TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableFooter, TableFooterProps, TableHead, TableHeadProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, TableSize, TableVariant } from "../components/table/primitives.js";
|
|
3
3
|
import { useTable } from "./use-table.js";
|
|
4
4
|
import { containsFilter, equalsFilter, includesFilter, rangeFilter } from "../components/table/filters.js";
|
|
5
|
-
export { ColumnDef, type FilterDef, type FilterPredicate, type FilterValues, type FiltersConfig, PaginationConfig, ProcessedColumn, type RowKeyGetter, type SearchConfig, type SelectionConfig, type SelectionState, type SortDirection, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableFooter, TableFooterProps, TableHead, TableHeadProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, TableSize, TableVariant, UseTableOptions, UseTableReturn, containsFilter, equalsFilter, includesFilter, rangeFilter, useTable };
|
|
5
|
+
export { ColumnDef, type ExpansionConfig, type ExpansionState, type FilterDef, type FilterPredicate, type FilterValues, type FiltersConfig, PaginationConfig, ProcessedColumn, type RowKeyGetter, type SearchConfig, type SelectionConfig, type SelectionState, type SortDirection, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableFooter, TableFooterProps, TableHead, TableHeadProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, TableSize, TableVariant, UseTableOptions, UseTableReturn, containsFilter, equalsFilter, includesFilter, rangeFilter, useTable };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-table.d.ts","names":[],"sources":["../../src/components/table/use-table.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"use-table.d.ts","names":[],"sources":["../../src/components/table/use-table.ts"],"sourcesContent":[],"mappings":";;;iBAkBgB,qBAAqB,gBAAgB,KAAK,eAAe"}
|
package/dist/table/use-table.js
CHANGED
|
@@ -11,7 +11,7 @@ const DEFAULT_PAGE_SIZE_OPTIONS = [
|
|
|
11
11
|
100
|
|
12
12
|
];
|
|
13
13
|
function useTable(options) {
|
|
14
|
-
const { data, columns: columnDefs, pagination, sort, search, filters, selection: selectionConfig } = options;
|
|
14
|
+
const { data, columns: columnDefs, pagination, sort, search, filters, selection: selectionConfig, expansion: expansionConfig } = options;
|
|
15
15
|
const [currentPage, setCurrentPage] = useState(1);
|
|
16
16
|
const [pageSize, setPageSize] = useState(pagination?.pageSize ?? DEFAULT_PAGE_SIZE);
|
|
17
17
|
const [sortState, setSortState] = useState({
|
|
@@ -198,6 +198,53 @@ function useTable(options) {
|
|
|
198
198
|
clearSelection,
|
|
199
199
|
pageSelectionState
|
|
200
200
|
]);
|
|
201
|
+
const [expandedKeysSet, setExpandedKeysSet] = useState(/* @__PURE__ */ new Set());
|
|
202
|
+
const expansionResetKey = `${effectivePage}-${String(sortKey)}-${sortDirection}-${activeFilterCount}`;
|
|
203
|
+
const [prevExpansionResetKey, setPrevExpansionResetKey] = useState(expansionResetKey);
|
|
204
|
+
if (expansionConfig && expansionResetKey !== prevExpansionResetKey) {
|
|
205
|
+
setPrevExpansionResetKey(expansionResetKey);
|
|
206
|
+
if (expandedKeysSet.size > 0) setExpandedKeysSet(/* @__PURE__ */ new Set());
|
|
207
|
+
}
|
|
208
|
+
const isExpanded = useCallback((key) => expandedKeysSet.has(key), [expandedKeysSet]);
|
|
209
|
+
const toggleExpansion = useCallback((key) => {
|
|
210
|
+
setExpandedKeysSet((prev) => {
|
|
211
|
+
const next = new Set(prev);
|
|
212
|
+
if (next.has(key)) next.delete(key);
|
|
213
|
+
else next.add(key);
|
|
214
|
+
return next;
|
|
215
|
+
});
|
|
216
|
+
}, []);
|
|
217
|
+
const isRowExpanded = useCallback((row) => {
|
|
218
|
+
if (!expansionConfig) return false;
|
|
219
|
+
return expandedKeysSet.has(expansionConfig.rowKey(row));
|
|
220
|
+
}, [expandedKeysSet, expansionConfig]);
|
|
221
|
+
const toggleRowExpansion = useCallback((row) => {
|
|
222
|
+
if (!expansionConfig) return;
|
|
223
|
+
toggleExpansion(expansionConfig.rowKey(row));
|
|
224
|
+
}, [toggleExpansion, expansionConfig]);
|
|
225
|
+
const collapseAll = useCallback(() => {
|
|
226
|
+
setExpandedKeysSet(/* @__PURE__ */ new Set());
|
|
227
|
+
}, []);
|
|
228
|
+
const expansion = useMemo(() => {
|
|
229
|
+
if (!expansionConfig) return void 0;
|
|
230
|
+
return {
|
|
231
|
+
expandedKeys: Array.from(expandedKeysSet),
|
|
232
|
+
expandedCount: expandedKeysSet.size,
|
|
233
|
+
isExpanded,
|
|
234
|
+
toggleExpansion,
|
|
235
|
+
isRowExpanded,
|
|
236
|
+
toggleRowExpansion,
|
|
237
|
+
collapseAll
|
|
238
|
+
};
|
|
239
|
+
}, [
|
|
240
|
+
expansionConfig,
|
|
241
|
+
expandedKeysSet,
|
|
242
|
+
isExpanded,
|
|
243
|
+
toggleExpansion,
|
|
244
|
+
isRowExpanded,
|
|
245
|
+
toggleRowExpansion,
|
|
246
|
+
collapseAll
|
|
247
|
+
]);
|
|
201
248
|
return {
|
|
202
249
|
columns: useMemo(() => {
|
|
203
250
|
return columnDefs.map((def) => {
|
|
@@ -247,7 +294,8 @@ function useTable(options) {
|
|
|
247
294
|
setFilterValue,
|
|
248
295
|
clearFilters,
|
|
249
296
|
activeFilterCount,
|
|
250
|
-
selection
|
|
297
|
+
selection,
|
|
298
|
+
expansion
|
|
251
299
|
};
|
|
252
300
|
}
|
|
253
301
|
|